@oxidezap/whatsapp-rust-bridge 0.15.0 → 0.16.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 DO=Object.defineProperty;var FO=($)=>$;function LO($,Q){this[$]=FO.bind(null,Q)}var xO=($,Q)=>{for(var q in Q)DO($,q,{get:Q[q],enumerable:!0,configurable:!0,set:LO.bind(Q,q)})};import{readFileSync as hA}from"node:fs";class oY{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,WO.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return z.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();z.intounderlyingbytesource_cancel($)}pull($){let Q=z.intounderlyingbytesource_pull(this.__wbg_ptr,N($));return C(Q)}start($){z.intounderlyingbytesource_start(this.__wbg_ptr,N($))}get type(){let $=z.intounderlyingbytesource_type(this.__wbg_ptr);return MO[$]}}if(Symbol.dispose)oY.prototype[Symbol.dispose]=oY.prototype.free;class iY{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,SO.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsink_free($,0)}abort($){let Q=this.__destroy_into_raw(),q=z.intounderlyingsink_abort(Q,N($));return C(q)}close(){let $=this.__destroy_into_raw(),Q=z.intounderlyingsink_close($);return C(Q)}write($){let Q=z.intounderlyingsink_write(this.__wbg_ptr,N($));return C(Q)}}if(Symbol.dispose)iY.prototype[Symbol.dispose]=iY.prototype.free;class r${static __wrap($){let Q=Object.create(r$.prototype);return Q.__wbg_ptr=$,CV.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,CV.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();z.intounderlyingsource_cancel($)}pull($){let Q=z.intounderlyingsource_pull(this.__wbg_ptr,N($));return C(Q)}}if(Symbol.dispose)r$.prototype[Symbol.dispose]=r$.prototype.free;class t${static __wrap($){let Q=Object.create(t$.prototype);return Q.__wbg_ptr=$,PV.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,PV.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let Q=z.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,N($));return C(Q)}addChatLabel($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_addChatLabel(this.__wbg_ptr,q,Z,X,K);return C(J)}addLidPnMappings($){let Q=z.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,N($));return C(Q)}addMessageLabel($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_addMessageLabel(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}archiveChat($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_archiveChat(this.__wbg_ptr,q,Z,Q);return C(X)}assertSessions($,Q){let q=r($,z.__wbindgen_export),Z=U,X=z.wasmwhatsappclient_assertSessions(this.__wbg_ptr,q,Z,Q);return C(X)}cleanDirtyBits($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_cleanDirtyBits(this.__wbg_ptr,q,Z,!d(Q),d(Q)?0:Q);return C(X)}clearChat($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=z.wasmwhatsappclient_clearChat(this.__wbg_ptr,Z,X,Q,q);return C(K)}communityFetchAllParticipating(){let $=z.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return C($)}communityParticipantsUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}connect(){let $=z.wasmwhatsappclient_connect(this.__wbg_ptr);return C($)}createCommunity($,Q,q,Z,X){let K=F($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var V=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_createCommunity(this.__wbg_ptr,K,J,V,P,q,Z,X);return C(D)}createCommunitySubgroup($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}createGroup($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=r(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_createGroup(this.__wbg_ptr,q,Z,X,K);return C(J)}createLabel($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=z.wasmwhatsappclient_createLabel(this.__wbg_ptr,Z,X,K,J,q);return C(V)}createParticipantNodesBytes($,Q,q){let Z=r($,z.__wbindgen_export),X=U,K=u(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}createPoll($,Q,q,Z){let X=F($,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=F(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=r(q,z.__wbindgen_export),D=U,O=z.wasmwhatsappclient_createPoll(this.__wbg_ptr,X,K,J,V,P,D,Z);return C(O)}deactivateCommunity($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,Q,q);return C(Z)}deleteChat($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_deleteChat(this.__wbg_ptr,Q,q);return C(Z)}deleteLabel($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_deleteLabel(this.__wbg_ptr,Q,q);return C(Z)}deleteMessageForMe($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=z.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,Z,X,K,J,q);return C(V)}deleteQuickReply($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_deleteQuickReply(this.__wbg_ptr,Q,q);return C(Z)}disconnect(){let $=z.wasmwhatsappclient_disconnect(this.__wbg_ptr);return C($)}downloadMedia($,Q,q,Z,X,K){let J=F($,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=u(Q,z.__wbindgen_export),D=U,O=u(q,z.__wbindgen_export),W=U,f=u(Z,z.__wbindgen_export),I=U,S=z.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,J,V,P,D,O,W,f,I,X,N(K));return C(S)}downloadMediaStream($,Q,q,Z,X,K){try{let D=z.__wbindgen_add_to_stack_pointer(-16),O=F($,z.__wbindgen_export,z.__wbindgen_export2),W=U,f=u(Q,z.__wbindgen_export),I=U,S=u(q,z.__wbindgen_export),p=U,A=u(Z,z.__wbindgen_export),z0=U;z.wasmwhatsappclient_downloadMediaStream(D,this.__wbg_ptr,O,W,f,I,S,p,A,z0,X,N(K));var J=v().getInt32(D+0,!0),V=v().getInt32(D+4,!0),P=v().getInt32(D+8,!0);if(P)throw C(V);return C(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,Q,q,Z){let X=F($,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=F(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=u(q,z.__wbindgen_export),D=U;var O=d(Z)?0:F(Z,z.__wbindgen_export,z.__wbindgen_export2),W=U;let f=z.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,X,K,J,V,P,D,O,W);return C(f)}encryptMediaStream($,Q,q){let Z=z.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,N($),N(Q),N(q));return C(Z)}ensurePreKeys(){let $=z.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return C($)}fetchBlocklist(){let $=z.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return C($)}fetchMessageHistory($,Q,q,Z,X){let K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,K,J,V,P,Z,X);return C(D)}fetchNewChatMessageCappingInfo(){let $=z.wasmwhatsappclient_fetchNewChatMessageCappingInfo(this.__wbg_ptr);return C($)}fetchPrivacySettings(){let $=z.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return C($)}fetchReachoutTimelock(){let $=z.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return C($)}fetchStatus($){let Q=r($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,Q,q);return C(Z)}fetchUserInfo($){let Q=r($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,Q,q);return C(Z)}getAccount(){let $=z.wasmwhatsappclient_getAccount(this.__wbg_ptr);return C($)}getBotList(){let $=z.wasmwhatsappclient_getBotList(this.__wbg_ptr);return C($)}getBusinessProfile($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,Q,q);return C(Z)}getCatalog($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_getCatalog(this.__wbg_ptr,q,Z,N(Q));return C(X)}getCollections($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_getCollections(this.__wbg_ptr,q,Z,N(Q));return C(X)}getCommunitySubgroups($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,Q,q);return C(Z)}getCoreAllocationSnapshot(){let $=z.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return C($)}getGroupMetadata($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,Q,q);return C(Z)}getJid(){let $=z.wasmwhatsappclient_getJid(this.__wbg_ptr);return C($)}getLid(){let $=z.wasmwhatsappclient_getLid(this.__wbg_ptr);return C($)}getMediaConn($){let Q=z.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return C(Q)}getMemoryDiagnostics(){let $=z.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return C($)}getOrder($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_getOrder(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}getPushName(){let $=z.wasmwhatsappclient_getPushName(this.__wbg_ptr);return C($)}getUSyncDevices($,Q,q){let Z=r($,z.__wbindgen_export),X=U,K=z.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,Z,X,Q,q);return C(K)}groupAcceptInvite($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,Q,q);return C(Z)}groupAcceptInviteV4($,Q,q,Z){let X=F($,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=F(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=F(Z,z.__wbindgen_export,z.__wbindgen_export2),D=U,O=z.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,X,K,J,V,q,P,D);return C(O)}groupFetchAllParticipating(){let $=z.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return C($)}groupGetInviteInfo($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,Q,q);return C(Z)}groupInviteCode($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,Q,q);return C(Z)}groupLeave($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupLeave(this.__wbg_ptr,Q,q);return C(Z)}groupMemberAddMode($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,q,Z,N(Q));return C(X)}groupParticipantsUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}groupRequestParticipantsList($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,Q,q);return C(Z)}groupRequestParticipantsUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}groupRevokeInvite($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,Q,q);return C(Z)}groupRevokeInviteV4($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,q,Z,X,K);return C(J)}groupSettingUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=z.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,Z,X,N(Q),q);return C(K)}groupToggleEphemeral($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,q,Z,Q);return C(X)}groupUpdateDescription($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U;var X=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;let J=z.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,q,Z,X,K);return C(J)}groupUpdateSubject($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,q,Z,X,K);return C(J)}isConnected(){return z.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return z.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let Q=r($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,Q,q);return C(Z)}jidToSignalProtocolAddress($){let Q,q;try{let D=z.__wbindgen_add_to_stack_pointer(-16),O=F($,z.__wbindgen_export,z.__wbindgen_export2),W=U;z.wasmwhatsappclient_jidToSignalProtocolAddress(D,this.__wbg_ptr,O,W);var Z=v().getInt32(D+0,!0),X=v().getInt32(D+4,!0),K=v().getInt32(D+8,!0),J=v().getInt32(D+12,!0),V=Z,P=X;if(J)throw V=0,P=0,C(K);return Q=V,q=P,H0(V,P)}finally{z.__wbindgen_add_to_stack_pointer(16),z.__wbindgen_export4(Q,q,1)}}lidForPn($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_lidForPn(this.__wbg_ptr,Q,q);return C(Z)}linkCommunitySubgroups($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=r(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,q,Z,X,K);return C(J)}logout(){let $=z.wasmwhatsappclient_logout(this.__wbg_ptr);return C($)}markChatAsRead($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,q,Z,Q);return C(X)}markPlayed($){let Q=z.wasmwhatsappclient_markPlayed(this.__wbg_ptr,N($));return C(Q)}muteChat($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_muteChat(this.__wbg_ptr,q,Z,!d(Q),d(Q)?0:Q);return C(X)}newsletterAdminInfo($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterAdminInfo(this.__wbg_ptr,Q,q);return C(Z)}newsletterAdminMute($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_newsletterAdminMute(this.__wbg_ptr,q,Z,Q);return C(X)}newsletterChangeOwner($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_newsletterChangeOwner(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterCreate($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U;var X=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;let J=z.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterDelete($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterDelete(this.__wbg_ptr,Q,q);return C(Z)}newsletterDemoteAdmin($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_newsletterDemoteAdmin(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterEditMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=u(q,z.__wbindgen_export),P=U,D=z.wasmwhatsappclient_newsletterEditMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}newsletterFollowerMute($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_newsletterFollowerMute(this.__wbg_ptr,q,Z,Q);return C(X)}newsletterFollowers($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_newsletterFollowers(this.__wbg_ptr,q,Z,Q);return C(X)}newsletterList(){let $=z.wasmwhatsappclient_newsletterList(this.__wbg_ptr);return C($)}newsletterMessages($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var K=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),J=U;let V=z.wasmwhatsappclient_newsletterMessages(this.__wbg_ptr,Z,X,Q,K,J);return C(V)}newsletterMetadata($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,Q,q);return C(Z)}newsletterMetadataByInvite($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterMetadataByInvite(this.__wbg_ptr,Q,q);return C(Z)}newsletterMute($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,q,Z,Q);return C(X)}newsletterReactMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U;var V=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}newsletterRemovePicture($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterRemovePicture(this.__wbg_ptr,Q,q);return C(Z)}newsletterRevokeMessage($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_newsletterRevokeMessage(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterSetPicture($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=u(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_newsletterSetPicture(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterSubscribe($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,Q,q);return C(Z)}newsletterSubscribeLiveUpdates($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterSubscribeLiveUpdates(this.__wbg_ptr,Q,q);return C(Z)}newsletterUnsubscribe($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,Q,q);return C(Z)}newsletterUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var K=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_newsletterUpdate(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}pinChat($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_pinChat(this.__wbg_ptr,q,Z,Q);return C(X)}pnForLid($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_pnForLid(this.__wbg_ptr,Q,q);return C(Z)}presenceSubscribe($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,Q,q);return C(Z)}profilePictureUrl($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=z.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,Z,X,N(Q),!d(q),d(q)?0:q);return C(K)}queryNode($,Q){let q=z.wasmwhatsappclient_queryNode(this.__wbg_ptr,N($),!d(Q),d(Q)?0:Q);return C(q)}queryUsync($){let Q=z.wasmwhatsappclient_queryUsync(this.__wbg_ptr,N($));return C(Q)}readMessages($){let Q=z.wasmwhatsappclient_readMessages(this.__wbg_ptr,N($));return C(Q)}reconnect(){let $=z.wasmwhatsappclient_reconnect(this.__wbg_ptr);return C($)}refreshPreKeys($){let Q=z.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,d($)?Number.MAX_SAFE_INTEGER:$>>>0);return C(Q)}rejectCall($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_rejectCall(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}rejectStanza($,Q,q){let Z=z.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,N($),Q,d(q)?Number.MAX_SAFE_INTEGER:q>>0);return C(Z)}relayMessageBytes($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=u(Q,z.__wbindgen_export),J=U;var V=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}relayMessageBytesWithOptions($,Q,q,Z,X,K){let J=F($,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=u(Q,z.__wbindgen_export),D=U;var O=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),W=U;let f=z.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,J,V,P,D,O,W,N(Z),X,K);return C(f)}removeBusinessCoverPhoto($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_removeBusinessCoverPhoto(this.__wbg_ptr,Q,q);return C(Z)}removeChatLabel($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_removeChatLabel(this.__wbg_ptr,q,Z,X,K);return C(J)}removeContact($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_removeContact(this.__wbg_ptr,Q,q);return C(Z)}removeGroupProfilePicture($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,Q,q);return C(Z)}removeMessageLabel($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_removeMessageLabel(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}removeProfilePicture(){let $=z.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return C($)}requestMediaReupload($,Q,q,Z,X){let K=F($,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(Q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=u(q,z.__wbindgen_export),O=U;var W=d(X)?0:F(X,z.__wbindgen_export,z.__wbindgen_export2),f=U;let I=z.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,K,J,V,P,D,O,Z,W,f);return C(I)}requestMessageRetry($,Q){let q=z.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,N($),d(Q)?16777215:Q?1:0);return C(q)}requestPairingCode($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U;var X=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;let J=z.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,q,Z,X,K);return C(J)}retransmitMessageBytes($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=u(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}revokeMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U;var V=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}rotateSignedKey(){let $=z.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return C($)}run(){try{let q=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_run(q,this.__wbg_ptr);var $=v().getInt32(q+0,!0),Q=v().getInt32(q+4,!0);if(Q)throw C($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}saveContact($,Q,q,Z){let X=F($,z.__wbindgen_export,z.__wbindgen_export2),K=U;var J=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),D=U;let O=z.wasmwhatsappclient_saveContact(this.__wbg_ptr,X,K,J,V,P,D,Z);return C(O)}sendChatState($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_sendChatState(this.__wbg_ptr,q,Z,N(Q));return C(X)}sendCommentBytes($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=u(q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,Z,X,N(Q),K,J);return C(V)}sendMessageBytes($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=u(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,q,Z,X,K);return C(J)}sendNode($){let Q=z.wasmwhatsappclient_sendNode(this.__wbg_ptr,N($));return C(Q)}sendPresence($){let Q=z.wasmwhatsappclient_sendPresence(this.__wbg_ptr,N($));return C(Q)}sendRawMessage($){let Q=u($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,Q,q);return C(Z)}sendReaction($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var K=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),J=U;let V=z.wasmwhatsappclient_sendReaction(this.__wbg_ptr,Z,X,N(Q),K,J);return C(V)}sendStatusMessageBytes($,Q){let q=u($,z.__wbindgen_export),Z=U,X=r(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,q,Z,X,K);return C(J)}sendStatusMessageBytesWithOptions($,Q,q,Z,X){let K=u($,z.__wbindgen_export),J=U,V=r(Q,z.__wbindgen_export),P=U;var D=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),O=U;let W=z.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,K,J,V,P,D,O,N(Z),X);return C(W)}setAutoReconnect($){z.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setBusinessCoverPhoto($){let Q=z.wasmwhatsappclient_setBusinessCoverPhoto(this.__wbg_ptr,N($));return C(Q)}setClientProfile($){let Q=z.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,N($));return C(Q)}setDeviceProps($){let Q=z.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,N($));return C(Q)}setGroupProfilePicture($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=u(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,q,Z,X,K);return C(J)}setInitialPushName($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,Q,q);return C(Z)}setLinkPreviewsDisabled($){let Q=z.wasmwhatsappclient_setLinkPreviewsDisabled(this.__wbg_ptr,$);return C(Q)}setPushName($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_setPushName(this.__wbg_ptr,Q,q);return C(Z)}setQuickReply($,Q,q,Z,X){let K=F($,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(Q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=F(q,z.__wbindgen_export,z.__wbindgen_export2),O=U,W=r(Z,z.__wbindgen_export),f=U,I=z.wasmwhatsappclient_setQuickReply(this.__wbg_ptr,K,J,V,P,D,O,W,f,X);return C(I)}setRawNodeForwarding($){z.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}setUserStatusMute($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_setUserStatusMute(this.__wbg_ptr,q,Z,Q);return C(X)}signalDecryptGroupMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=u(q,z.__wbindgen_export),P=U,D=z.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}signalDecryptMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=u(q,z.__wbindgen_export),P=U,D=z.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}signalDeleteSenderKey($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,q,Z,X,K);return C(J)}signalDeleteSessions($){let Q=r($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,Q,q);return C(Z)}signalEncryptGroupMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=u(Q,z.__wbindgen_export),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}signalEncryptMessage($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=u(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,q,Z,X,K);return C(J)}signalGetSenderKeyDistribution($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,q,Z,X,K);return C(J)}signalGetSessionInfo($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,Q,q);return C(Z)}signalHasSenderKey($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,q,Z,X,K);return C(J)}signalInstallPreKeyBundle($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,q,Z,N(Q));return C(X)}signalMigrateSessions($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,q,Z,X,K);return C(J)}signalProcessSenderKeyDistribution($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=u(q,z.__wbindgen_export),P=U,D=z.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}signalValidateSession($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,Q,q);return C(Z)}starMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=z.wasmwhatsappclient_starMessage(this.__wbg_ptr,Z,X,K,J,q);return C(V)}unlinkCommunitySubgroups($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,Z,X,K,J,q);return C(V)}updateBlockStatus($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,q,Z,N(Q));return C(X)}updateBusinessProfile($){let Q=z.wasmwhatsappclient_updateBusinessProfile(this.__wbg_ptr,N($));return C(Q)}updateDefaultDisappearingMode($){let Q=z.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return C(Q)}updateMemberLabel($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,q,Z,X,K);return C(J)}updatePrivacySetting($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,q,Z,X,K);return C(J)}updateProfilePicture($){let Q=u($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,Q,q);return C(Z)}updateProfileStatus($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,Q,q);return C(Z)}uploadEncryptedMediaStream($,Q,q,Z,X,K){let J=u(Q,z.__wbindgen_export),V=U,P=u(q,z.__wbindgen_export),D=U,O=u(Z,z.__wbindgen_export),W=U,f=z.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,N($),J,V,P,D,O,W,X,N(K));return C(f)}uploadMedia($,Q){let q=u($,z.__wbindgen_export),Z=U,X=z.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,q,Z,N(Q));return C(X)}validateKeyBundle(){let $=z.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return C($)}votePoll($,Q,q,Z,X){let K=F($,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(Q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=F(q,z.__wbindgen_export,z.__wbindgen_export2),O=U,W=u(Z,z.__wbindgen_export),f=U,I=r(X,z.__wbindgen_export),S=U,p=z.wasmwhatsappclient_votePoll(this.__wbg_ptr,K,J,V,P,D,O,W,f,I,S);return C(p)}waitForConnected($){let Q=z.wasmwhatsappclient_waitForConnected(this.__wbg_ptr,$);return C(Q)}waitForSocket($){let Q=z.wasmwhatsappclient_waitForSocket(this.__wbg_ptr,$);return C(Q)}}if(Symbol.dispose)t$.prototype[Symbol.dispose]=t$.prototype.free;function wA(){z.beginWasmAllocationProfile()}function jA($,Q){try{let K=z.__wbindgen_add_to_stack_pointer(-16),J=u($,z.__wbindgen_export),V=U,P=u(Q,z.__wbindgen_export),D=U;z.calculateAgreement(K,J,V,P,D);var q=v().getInt32(K+0,!0),Z=v().getInt32(K+4,!0),X=v().getInt32(K+8,!0);if(X)throw C(Z);return C(q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function dA($,Q){try{let K=z.__wbindgen_add_to_stack_pointer(-16),J=u($,z.__wbindgen_export),V=U,P=u(Q,z.__wbindgen_export),D=U;z.calculateSignature(K,J,V,P,D);var q=v().getInt32(K+0,!0),Z=v().getInt32(K+4,!0),X=v().getInt32(K+8,!0);if(X)throw C(Z);return C(q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function FV($,Q,q,Z,X,K,J){let V=z.createWhatsAppClient(N($),N(Q),d(q)?0:N(q),d(Z)?0:N(Z),d(X)?0:N(X),d(K)?0:N(K),d(J)?0:N(J));return C(V)}function cA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),K=u($,z.__wbindgen_export),J=U;z.decodeSenderKeyRecordComponents(X,K,J);var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function nA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),K=u($,z.__wbindgen_export),J=U;z.decodeSessionRecordComponents(X,K,J);var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function bA($,Q,q,Z,X,K){try{let D=z.__wbindgen_add_to_stack_pointer(-16),O=u($,z.__wbindgen_export),W=U,f=u(Q,z.__wbindgen_export),I=U,S=u(q,z.__wbindgen_export),p=U,A=F(Z,z.__wbindgen_export,z.__wbindgen_export2),z0=U,w=F(X,z.__wbindgen_export,z.__wbindgen_export2),c=U,$0=F(K,z.__wbindgen_export,z.__wbindgen_export2),o=U;z.decryptEventResponsePayload(D,O,W,f,I,S,p,A,z0,w,c,$0,o);var J=v().getInt32(D+0,!0),V=v().getInt32(D+4,!0),P=v().getInt32(D+8,!0);if(P)throw C(V);return C(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function oA($,Q,q,Z,X,K,J){try{let f=z.__wbindgen_add_to_stack_pointer(-16),I=u($,z.__wbindgen_export),S=U,p=u(Q,z.__wbindgen_export),A=U,z0=u(q,z.__wbindgen_export),w=U,c=F(Z,z.__wbindgen_export,z.__wbindgen_export2),$0=U,o=F(X,z.__wbindgen_export,z.__wbindgen_export2),l=U,c$=F(K,z.__wbindgen_export,z.__wbindgen_export2),n$=U,VY=r(J,z.__wbindgen_export),J0=U;z.decryptPollVote(f,I,S,p,A,z0,w,c,$0,o,l,c$,n$,VY,J0);var V=v().getInt32(f+0,!0),P=v().getInt32(f+4,!0),D=v().getInt32(f+8,!0),O=v().getInt32(f+12,!0);if(O)throw C(D);var W=M0(V,P).slice();return z.__wbindgen_export4(V,P*4,4),W}finally{z.__wbindgen_add_to_stack_pointer(16)}}function iA($,Q,q,Z,X,K){try{let D=z.__wbindgen_add_to_stack_pointer(-16),O=u($,z.__wbindgen_export),W=U,f=u(Q,z.__wbindgen_export),I=U,S=u(q,z.__wbindgen_export),p=U,A=F(Z,z.__wbindgen_export,z.__wbindgen_export2),z0=U,w=F(X,z.__wbindgen_export,z.__wbindgen_export2),c=U,$0=F(K,z.__wbindgen_export,z.__wbindgen_export2),o=U;z.decryptPollVotePayload(D,O,W,f,I,S,p,A,z0,w,c,$0,o);var J=v().getInt32(D+0,!0),V=v().getInt32(D+4,!0),P=v().getInt32(D+8,!0);if(P)throw C(V);return C(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function mA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSenderKeyRecordComponents(X,N($));var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function gA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSessionRecordComponents(X,N($));var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function rA(){let $=z.generateKeyPair();return C($)}function tA(){let $=z.getEnabledFeatures();return C($)}function aA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),K=u($,z.__wbindgen_export),J=U;z.getPublicFromPrivateKey(X,K,J);var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function sA(){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.getWasmAllocationSnapshot(Z);var $=v().getInt32(Z+0,!0),Q=v().getInt32(Z+4,!0),q=v().getInt32(Z+8,!0);if(q)throw C(Q);return C($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function eA(){return z.getWasmMemoryBytes()}function $3(){return z.hasLogger()!==0}function Q3($,Q,q){try{let J=z.__wbindgen_add_to_stack_pointer(-16),V=u($,z.__wbindgen_export),P=U;z.hkdf(J,V,P,Q,N(q));var Z=v().getInt32(J+0,!0),X=v().getInt32(J+4,!0),K=v().getInt32(J+8,!0);if(K)throw C(X);return C(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function Z3($,Q){try{let K=z.__wbindgen_add_to_stack_pointer(-16);z.importLegacySessionRecordV1(K,N($),N(Q));var q=v().getInt32(K+0,!0),Z=v().getInt32(K+4,!0),X=v().getInt32(K+8,!0);if(X)throw C(Z);return C(q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function J3($,Q){try{let K=z.__wbindgen_add_to_stack_pointer(-16),J=u($,z.__wbindgen_export),V=U;z.inflateZlib(K,J,V,!d(Q),d(Q)?0:Q);var q=v().getInt32(K+0,!0),Z=v().getInt32(K+4,!0),X=v().getInt32(K+8,!0);if(X)throw C(Z);return C(q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function LV($,Q){z.initWasmEngine(N($),N(Q))}function K3($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;z.logMessage(q,Z,X,K)}function q3($){let Q=u($,z.__wbindgen_export),q=U,Z=z.md5(Q,q);return C(Z)}function X3($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),K=u($,z.__wbindgen_export),J=U;z.projectLegacySessionRecordV1(X,K,J);var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function Y3($){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.setLogger(Z,N($));var Q=v().getInt32(Z+0,!0),q=v().getInt32(Z+4,!0);if(q)throw C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function V3($){z.updateLogger(N($))}function z3($,Q,q){try{let J=z.__wbindgen_add_to_stack_pointer(-16),V=u($,z.__wbindgen_export),P=U,D=u(Q,z.__wbindgen_export),O=U,W=u(q,z.__wbindgen_export),f=U;z.verifySignature(J,V,P,D,O,W,f);var Z=v().getInt32(J+0,!0),X=v().getInt32(J+4,!0),K=v().getInt32(J+8,!0);if(K)throw C(X);return Z!==0}finally{z.__wbindgen_add_to_stack_pointer(16)}}function kO(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(Q,q){let Z=Error(H0(Q,q));return N(Z)},__wbg_Number_9a4e0ecb0fa16705:function(Q){return Number(x(Q))},__wbg_String_8564e559799eccda:function(Q,q){let Z=String(x(q)),X=F(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;v().setInt32(Q+4,K,!0),v().setInt32(Q+0,X,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(Q,q){let Z=x(q),X=typeof Z==="bigint"?Z:void 0;v().setBigInt64(Q+8,d(X)?BigInt(0):X,!0),v().setInt32(Q+0,!d(X),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(Q){let q=x(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=mY(x(q)),X=F(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;v().setInt32(Q+4,K,!0),v().setInt32(Q+0,X,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(Q,q){return x(Q)in x(q)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(Q){return typeof x(Q)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(Q){return typeof x(Q)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(Q){return x(Q)===null},__wbg___wbindgen_is_object_a27215656b807791:function(Q){let q=x(Q);return typeof q==="object"&&q!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(Q){return typeof x(Q)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(Q){return x(Q)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(Q,q){return x(Q)===x(q)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(Q,q){return x(Q)==x(q)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(Q,q){let Z=x(q),X=typeof Z==="number"?Z:void 0;v().setFloat64(Q+8,d(X)?0:X,!0),v().setInt32(Q+0,!d(X),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(Q,q){let Z=x(q),X=typeof Z==="string"?Z:void 0;var K=d(X)?0:F(X,z.__wbindgen_export,z.__wbindgen_export2),J=U;v().setInt32(Q+4,J,!0),v().setInt32(Q+0,K,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(Q,q){throw Error(H0(Q,q))},__wbg__wbg_cb_unref_fffb441def202758:function(Q){x(Q)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return e(function(Q,q,Z){let X=x(Q).apply(x(q),x(Z));return N(X)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(Q,q,Z,X){let K=x(Q).bind(x(q),x(Z),x(X));return N(K)},__wbg_buffer_54b87055582c8a81:function(Q){let q=x(Q).buffer;return N(q)},__wbg_byobRequest_06b654bb15590436:function(Q){let q=x(Q).byobRequest;return d(q)?0:N(q)},__wbg_byteLength_41862ca4020b9c43:function(Q){return x(Q).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(Q){return x(Q).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return e(function(Q,q,Z,X,K){let J=x(Q).call(x(q),x(Z),x(X),x(K));return N(J)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return e(function(Q,q){let Z=x(Q).call(x(q));return N(Z)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return e(function(Q,q,Z){let X=x(Q).call(x(q),x(Z));return N(X)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return e(function(Q,q,Z,X,K,J){let V=x(Q).call(x(q),x(Z),x(X),x(K),x(J));return N(V)},arguments)},__wbg_call_e3b662382210db98:function(){return e(function(Q,q,Z,X){let K=x(Q).call(x(q),x(Z),x(X));return N(K)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(Q){let q=x(Q).cancel();return N(q)},__wbg_catch_c1a60df4c30d76d3:function(Q,q){let Z=x(Q).catch(x(q));return N(Z)},__wbg_close_1e6096d41f7ce5d0:function(Q){let q=x(Q).close();return N(q)},__wbg_close_249a23304523681b:function(){return e(function(Q){x(Q).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return e(function(Q){x(Q).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(Q,q,Z,X){x(Q).debug(x(q),Z===0?void 0:H0(Z,X))},__wbg_debug_cf53e2612c84e4ee:function(Q,q,Z,X){console.debug(x(Q),x(q),x(Z),x(X))},__wbg_done_89b2b13e91a60321:function(Q){return x(Q).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return e(function(Q,q){x(Q).enqueue(x(q))},arguments)},__wbg_entries_015dc610cd81ede0:function(Q){let q=Object.entries(x(Q));return N(q)},__wbg_error_657700d53a73881f:function(Q,q,Z,X){console.error(x(Q),x(q),x(Z),x(X))},__wbg_error_9cce413345f88385:function(Q,q,Z,X){x(Q).error(x(q),Z===0?void 0:H0(Z,X))},__wbg_error_a6fa202b58aa1cd3:function(Q,q){let Z,X;try{Z=Q,X=q,console.error(H0(Q,q))}finally{z.__wbindgen_export4(Z,X,1)}},__wbg_from_13e323c65fc8f464:function(Q){let q=Array.from(x(Q));return N(q)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return e(function(Q,q){globalThis.crypto.getRandomValues(l$(Q,q))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return e(function(Q){let q=x(Q).getReader();return N(q)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return e(function(Q){let q=x(Q).getWriter();return N(q)},arguments)},__wbg_get_507a50627bffa49b:function(Q,q){let Z=x(Q)[q>>>0];return N(Z)},__wbg_get_78f252d074a84d0b:function(){return e(function(Q,q){let Z=Reflect.get(x(Q),x(q));return N(Z)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return e(function(Q,q){let Z=Reflect.get(x(Q),x(q));return N(Z)},arguments)},__wbg_get_done_670108eb06ecbe46:function(Q){let q=x(Q).done;return d(q)?16777215:q?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(Q,q){let Z=x(Q)[q>>>0];return N(Z)},__wbg_get_value_f465f5be30aa0963:function(Q){let q=x(Q).value;return N(q)},__wbg_get_with_ref_key_6412cf3094599694:function(Q,q){let Z=x(Q)[x(q)];return N(Z)},__wbg_info_79f5309d69d9c70e:function(Q,q,Z,X){console.info(x(Q),x(q),x(Z),x(X))},__wbg_info_b728e87a346ff6a2:function(Q,q,Z,X){x(Q).info(x(q),Z===0?void 0:H0(Z,X))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(Q){let q;try{q=x(Q)instanceof ArrayBuffer}catch(X){q=!1}return q},__wbg_instanceof_Array_de0fa65266a8c7c0:function(Q){let q;try{q=x(Q)instanceof Array}catch(X){q=!1}return q},__wbg_instanceof_Error_1fdac9f13a8181ba:function(Q){let q;try{q=x(Q)instanceof Error}catch(X){q=!1}return q},__wbg_instanceof_Map_e5b5e3db98422fcc:function(Q){let q;try{q=x(Q)instanceof Map}catch(X){q=!1}return q},__wbg_instanceof_Object_33f20e6f12439f3e:function(Q){let q;try{q=x(Q)instanceof Object}catch(X){q=!1}return q},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(Q){let q;try{q=x(Q)instanceof Promise}catch(X){q=!1}return q},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(Q){let q;try{q=x(Q)instanceof Uint8Array}catch(X){q=!1}return q},__wbg_isArray_0677c962b281d01a:function(Q){return Array.isArray(x(Q))},__wbg_isSafeInteger_04f36e4056f1b851:function(Q){return Number.isSafeInteger(x(Q))},__wbg_iterator_6f722e4a93058b71:function(){return N(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(Q){let q=Object.keys(x(Q));return N(q)},__wbg_length_1f0964f4a5e2c6d8:function(Q){return x(Q).length},__wbg_length_370319915dc99107:function(Q){return x(Q).length},__wbg_level_4b50b181832c5acf:function(Q,q){let Z=x(q).level,X=F(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;v().setInt32(Q+4,K,!0),v().setInt32(Q+0,X,!0)},__wbg_log_a45418e25b210a4c:function(Q,q,Z,X){console.log(x(Q),x(q),x(Z),x(X))},__wbg_message_8326fb1d549bebc5:function(Q){let q=x(Q).message;return N(q)},__wbg_new_227d7c05414eb861:function(){let Q=Error();return N(Q)},__wbg_new_32b398fb48b6d94a:function(){return N([])},__wbg_new_7796ffc7ed656783:function(){return N(new Map)},__wbg_new_b667d279fd5aa943:function(Q,q){let Z=Error(H0(Q,q));return N(Z)},__wbg_new_cd45aabdf6073e84:function(Q){let q=new Uint8Array(x(Q));return N(q)},__wbg_new_da52cf8fe3429cb2:function(){return N({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(Q,q){let Z=new Uint32Array(TO(Q,q));return N(Z)},__wbg_new_from_slice_77cdfb7977362f3c:function(Q,q){let Z=new Uint8Array(l$(Q,q));return N(Z)},__wbg_new_typed_1824d93f294193e5:function(Q,q){try{var Z={a:Q,b:q},X=(J,V)=>{let P=Z.a;Z.a=0;try{return AO(P,Z.b,J,V)}finally{Z.a=P}};let K=new Promise(X);return N(K)}finally{Z.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(Q,q,Z){let X=new Uint8Array(x(Q),q>>>0,Z>>>0);return N(X)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(Q,q){let Z=new ReadableStream(r$.__wrap(Q),C(q));return N(Z)},__wbg_new_with_length_e6785c33c8e4cce8:function(Q){let q=new Uint8Array(Q>>>0);return N(q)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(Q){let q=Array(Q>>>0);return N(q)},__wbg_next_6dbf2c0ac8cde20f:function(Q){let q=x(Q).next;return N(q)},__wbg_next_71f2aa1cb3d1e37e:function(){return e(function(Q){let q=x(Q).next();return N(q)},arguments)},__wbg_now_44881ed1d5dba857:function(){return e(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(x(Q),x(q),x(Z),x(X));return N(K)},__wbg_prototypesetcall_2592ffff58ff115d:function(Q,q,Z){Uint8Array.prototype.set.call(l$(Q,q),x(Z))},__wbg_prototypesetcall_4770620bbe4688a0:function(Q,q,Z){Uint8Array.prototype.set.call(l$(Q,q),x(Z))},__wbg_push_d2ae3af0c1217ae6:function(Q,q){return x(Q).push(x(q))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(Q){let q=x(Q).queueMicrotask;return N(q)},__wbg_queueMicrotask_6a09b7bc46549209:function(Q){queueMicrotask(x(Q))},__wbg_read_8afa15f12a160ef8:function(Q){let q=x(Q).read();return N(q)},__wbg_ready_68b537848a5c627a:function(Q){let q=x(Q).ready;return N(q)},__wbg_releaseLock_33c25ace78b2d4c6:function(Q){x(Q).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(Q){x(Q).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(Q){let q=Promise.resolve(x(Q));return N(q)},__wbg_respond_510e32df8aeb6817:function(){return e(function(Q,q){x(Q).respond(q>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(Q,q,Z){x(Q).set(l$(q,Z))},__wbg_set_575dd786d51585f8:function(Q,q,Z){let X=x(Q).set(x(q),x(Z));return N(X)},__wbg_set_6be42768c690e380:function(Q,q,Z){x(Q)[C(q)]=C(Z)},__wbg_set_8535240470bf2500:function(){return e(function(Q,q,Z){return Reflect.set(x(Q),x(q),x(Z))},arguments)},__wbg_set_8a16b38e4805b298:function(Q,q,Z){x(Q)[q>>>0]=C(Z)},__wbg_set_high_water_mark_44d043cd607dd13a:function(Q,q){x(Q).highWaterMark=q},__wbg_set_name_3bbc583faefa4193:function(Q,q,Z){x(Q).name=H0(q,Z)},__wbg_stack_3b0d974bbf31e44f:function(Q,q){let Z=x(q).stack,X=F(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;v().setInt32(Q+4,K,!0),v().setInt32(Q+0,X,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let Q=typeof global>"u"?null:global;return d(Q)?0:N(Q)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let Q=typeof globalThis>"u"?null:globalThis;return d(Q)?0:N(Q)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let Q=typeof self>"u"?null:self;return d(Q)?0:N(Q)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let Q=typeof window>"u"?null:window;return d(Q)?0:N(Q)},__wbg_subarray_3ed232c8a6baee09:function(Q,q,Z){let X=x(Q).subarray(q>>>0,Z>>>0);return N(X)},__wbg_then_16d107c451e9905d:function(Q,q,Z){let X=x(Q).then(x(q),x(Z));return N(X)},__wbg_then_6ec10ae38b3e92f7:function(Q,q){let Z=x(Q).then(x(q));return N(Z)},__wbg_trace_58264fbce2ceb5e6:function(Q,q,Z,X){x(Q).trace(x(q),Z===0?void 0:H0(Z,X))},__wbg_value_a5d5488a9589444a:function(Q){let q=x(Q).value;return N(q)},__wbg_view_21f1d4a4f175dfa9:function(Q){let q=x(Q).view;return d(q)?0:N(q)},__wbg_warn_77c4eb4a21e10a21:function(Q,q,Z,X){console.warn(x(Q),x(q),x(Z),x(X))},__wbg_warn_db531770752932a9:function(Q,q,Z,X){x(Q).warn(x(q),Z===0?void 0:H0(Z,X))},__wbg_wasmwhatsappclient_new:function(Q){let q=t$.__wrap(Q);return N(q)},__wbg_write_f6dc0059c3feedce:function(Q,q){let Z=x(Q).write(x(q));return N(Z)},__wbindgen_cast_0000000000000001:function(Q,q){let Z=b$(Q,q,BO);return N(Z)},__wbindgen_cast_0000000000000002:function(Q,q){let Z=b$(Q,q,OO);return N(Z)},__wbindgen_cast_0000000000000003:function(Q,q){let Z=b$(Q,q,EO);return N(Z)},__wbindgen_cast_0000000000000004:function(Q,q){let Z=b$(Q,q,RO);return N(Z)},__wbindgen_cast_0000000000000005:function(Q,q){let Z=b$(Q,q,NO);return N(Z)},__wbindgen_cast_0000000000000006:function(Q){return N(Q)},__wbindgen_cast_0000000000000007:function(Q){return N(Q)},__wbindgen_cast_0000000000000008:function(Q,q){let Z=l$(Q,q);return N(Z)},__wbindgen_cast_0000000000000009:function(Q,q){let Z=H0(Q,q);return N(Z)},__wbindgen_cast_000000000000000a:function(Q){let q=BigInt.asUintN(64,Q);return N(q)},__wbindgen_cast_000000000000000b:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_000000000000000c:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_000000000000000d:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_000000000000000e:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_000000000000000f:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_0000000000000010:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_0000000000000011:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_0000000000000012:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_0000000000000013:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_object_clone_ref:function(Q){let q=x(Q);return N(q)},__wbindgen_object_drop_ref:function(Q){C(Q)}}}}function NO($,Q){z.__wasm_bindgen_func_elem_4359($,Q)}function BO($,Q,q){z.__wasm_bindgen_func_elem_9308($,Q,N(q))}function RO($,Q,q){z.__wasm_bindgen_func_elem_4360($,Q,N(q))}function OO($,Q,q){try{let K=z.__wbindgen_add_to_stack_pointer(-16);z.__wasm_bindgen_func_elem_26598(K,$,Q,N(q));var Z=v().getInt32(K+0,!0),X=v().getInt32(K+4,!0);if(X)throw C(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function AO($,Q,q,Z){z.__wasm_bindgen_func_elem_26600($,Q,N(q),N(Z))}function EO($,Q,q){z.__wasm_bindgen_func_elem_4361($,Q,q)}var MO=["bytes"],WO=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingbytesource_free($,1)),SO=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsink_free($,1)),CV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsource_free($,1)),PV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_wasmwhatsappclient_free($,1));function N($){if(m$===_0.length)_0.push(_0.length+1);let Q=m$;return m$=_0[Q],_0[Q]=$,Q}var DV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbindgen_export5($.a,$.b));function mY($){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+=mY($[0]);for(let J=1;J<X;J++)K+=", "+mY($[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 DO=Object.defineProperty;var FO=($)=>$;function LO($,Q){this[$]=FO.bind(null,Q)}var xO=($,Q)=>{for(var q in Q)DO($,q,{get:Q[q],enumerable:!0,configurable:!0,set:LO.bind(Q,q)})};import{readFileSync as hA}from"node:fs";class oY{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,WO.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return z.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();z.intounderlyingbytesource_cancel($)}pull($){let Q=z.intounderlyingbytesource_pull(this.__wbg_ptr,N($));return C(Q)}start($){z.intounderlyingbytesource_start(this.__wbg_ptr,N($))}get type(){let $=z.intounderlyingbytesource_type(this.__wbg_ptr);return MO[$]}}if(Symbol.dispose)oY.prototype[Symbol.dispose]=oY.prototype.free;class iY{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,SO.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsink_free($,0)}abort($){let Q=this.__destroy_into_raw(),q=z.intounderlyingsink_abort(Q,N($));return C(q)}close(){let $=this.__destroy_into_raw(),Q=z.intounderlyingsink_close($);return C(Q)}write($){let Q=z.intounderlyingsink_write(this.__wbg_ptr,N($));return C(Q)}}if(Symbol.dispose)iY.prototype[Symbol.dispose]=iY.prototype.free;class r${static __wrap($){let Q=Object.create(r$.prototype);return Q.__wbg_ptr=$,CV.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,CV.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();z.intounderlyingsource_cancel($)}pull($){let Q=z.intounderlyingsource_pull(this.__wbg_ptr,N($));return C(Q)}}if(Symbol.dispose)r$.prototype[Symbol.dispose]=r$.prototype.free;class t${static __wrap($){let Q=Object.create(t$.prototype);return Q.__wbg_ptr=$,PV.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,PV.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let Q=z.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,N($));return C(Q)}addChatLabel($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_addChatLabel(this.__wbg_ptr,q,Z,X,K);return C(J)}addLidPnMappings($){let Q=z.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,N($));return C(Q)}addMessageLabel($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_addMessageLabel(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}archiveChat($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_archiveChat(this.__wbg_ptr,q,Z,Q);return C(X)}assertSessions($,Q){let q=r($,z.__wbindgen_export),Z=U,X=z.wasmwhatsappclient_assertSessions(this.__wbg_ptr,q,Z,Q);return C(X)}cleanDirtyBits($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_cleanDirtyBits(this.__wbg_ptr,q,Z,!d(Q),d(Q)?0:Q);return C(X)}clearChat($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=z.wasmwhatsappclient_clearChat(this.__wbg_ptr,Z,X,Q,q);return C(K)}communityFetchAllParticipating(){let $=z.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return C($)}communityParticipantsUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}connect(){let $=z.wasmwhatsappclient_connect(this.__wbg_ptr);return C($)}createCommunity($,Q,q,Z,X){let K=F($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var V=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_createCommunity(this.__wbg_ptr,K,J,V,P,q,Z,X);return C(D)}createCommunitySubgroup($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}createGroup($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=r(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_createGroup(this.__wbg_ptr,q,Z,X,K);return C(J)}createLabel($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=z.wasmwhatsappclient_createLabel(this.__wbg_ptr,Z,X,K,J,q);return C(V)}createParticipantNodesBytes($,Q,q){let Z=r($,z.__wbindgen_export),X=U,K=u(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}createPoll($,Q,q,Z){let X=F($,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=F(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=r(q,z.__wbindgen_export),D=U,O=z.wasmwhatsappclient_createPoll(this.__wbg_ptr,X,K,J,V,P,D,Z);return C(O)}deactivateCommunity($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,Q,q);return C(Z)}deleteChat($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_deleteChat(this.__wbg_ptr,Q,q);return C(Z)}deleteLabel($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_deleteLabel(this.__wbg_ptr,Q,q);return C(Z)}deleteMessageForMe($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=z.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,Z,X,K,J,q);return C(V)}deleteQuickReply($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_deleteQuickReply(this.__wbg_ptr,Q,q);return C(Z)}disconnect(){let $=z.wasmwhatsappclient_disconnect(this.__wbg_ptr);return C($)}downloadMedia($,Q,q,Z,X,K){let J=F($,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=u(Q,z.__wbindgen_export),D=U,O=u(q,z.__wbindgen_export),W=U,f=u(Z,z.__wbindgen_export),I=U,S=z.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,J,V,P,D,O,W,f,I,X,N(K));return C(S)}downloadMediaStream($,Q,q,Z,X,K){try{let D=z.__wbindgen_add_to_stack_pointer(-16),O=F($,z.__wbindgen_export,z.__wbindgen_export2),W=U,f=u(Q,z.__wbindgen_export),I=U,S=u(q,z.__wbindgen_export),p=U,A=u(Z,z.__wbindgen_export),z0=U;z.wasmwhatsappclient_downloadMediaStream(D,this.__wbg_ptr,O,W,f,I,S,p,A,z0,X,N(K));var J=v().getInt32(D+0,!0),V=v().getInt32(D+4,!0),P=v().getInt32(D+8,!0);if(P)throw C(V);return C(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,Q,q,Z){let X=F($,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=F(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=u(q,z.__wbindgen_export),D=U;var O=d(Z)?0:F(Z,z.__wbindgen_export,z.__wbindgen_export2),W=U;let f=z.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,X,K,J,V,P,D,O,W);return C(f)}encryptMediaStream($,Q,q){let Z=z.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,N($),N(Q),N(q));return C(Z)}ensurePreKeys(){let $=z.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return C($)}fetchBlocklist(){let $=z.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return C($)}fetchMessageHistory($,Q,q,Z,X){let K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,K,J,V,P,Z,X);return C(D)}fetchNewChatMessageCappingInfo(){let $=z.wasmwhatsappclient_fetchNewChatMessageCappingInfo(this.__wbg_ptr);return C($)}fetchPrivacySettings(){let $=z.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return C($)}fetchReachoutTimelock(){let $=z.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return C($)}fetchStatus($){let Q=r($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,Q,q);return C(Z)}fetchUserInfo($){let Q=r($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,Q,q);return C(Z)}getAccount(){let $=z.wasmwhatsappclient_getAccount(this.__wbg_ptr);return C($)}getBotList(){let $=z.wasmwhatsappclient_getBotList(this.__wbg_ptr);return C($)}getBusinessProfile($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,Q,q);return C(Z)}getCatalog($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_getCatalog(this.__wbg_ptr,q,Z,N(Q));return C(X)}getCollections($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_getCollections(this.__wbg_ptr,q,Z,N(Q));return C(X)}getCommunitySubgroups($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,Q,q);return C(Z)}getCoreAllocationSnapshot(){let $=z.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return C($)}getGroupMetadata($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,Q,q);return C(Z)}getJid(){let $=z.wasmwhatsappclient_getJid(this.__wbg_ptr);return C($)}getLid(){let $=z.wasmwhatsappclient_getLid(this.__wbg_ptr);return C($)}getMediaConn($){let Q=z.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return C(Q)}getMemoryDiagnostics(){let $=z.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return C($)}getOrder($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_getOrder(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}getPushName(){let $=z.wasmwhatsappclient_getPushName(this.__wbg_ptr);return C($)}getUSyncDevices($,Q,q){let Z=r($,z.__wbindgen_export),X=U,K=z.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,Z,X,Q,q);return C(K)}groupAcceptInvite($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,Q,q);return C(Z)}groupAcceptInviteV4($,Q,q,Z){let X=F($,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=F(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=F(Z,z.__wbindgen_export,z.__wbindgen_export2),D=U,O=z.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,X,K,J,V,q,P,D);return C(O)}groupFetchAllParticipating(){let $=z.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return C($)}groupGetInviteInfo($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,Q,q);return C(Z)}groupInviteCode($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,Q,q);return C(Z)}groupLeave($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupLeave(this.__wbg_ptr,Q,q);return C(Z)}groupMemberAddMode($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,q,Z,N(Q));return C(X)}groupParticipantsUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}groupRequestParticipantsList($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,Q,q);return C(Z)}groupRequestParticipantsUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}groupRevokeInvite($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,Q,q);return C(Z)}groupRevokeInviteV4($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,q,Z,X,K);return C(J)}groupSettingUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=z.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,Z,X,N(Q),q);return C(K)}groupToggleEphemeral($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,q,Z,Q);return C(X)}groupUpdateDescription($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U;var X=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;let J=z.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,q,Z,X,K);return C(J)}groupUpdateSubject($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,q,Z,X,K);return C(J)}isConnected(){return z.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return z.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let Q=r($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,Q,q);return C(Z)}jidToSignalProtocolAddress($){let Q,q;try{let D=z.__wbindgen_add_to_stack_pointer(-16),O=F($,z.__wbindgen_export,z.__wbindgen_export2),W=U;z.wasmwhatsappclient_jidToSignalProtocolAddress(D,this.__wbg_ptr,O,W);var Z=v().getInt32(D+0,!0),X=v().getInt32(D+4,!0),K=v().getInt32(D+8,!0),J=v().getInt32(D+12,!0),V=Z,P=X;if(J)throw V=0,P=0,C(K);return Q=V,q=P,H0(V,P)}finally{z.__wbindgen_add_to_stack_pointer(16),z.__wbindgen_export4(Q,q,1)}}lidForPn($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_lidForPn(this.__wbg_ptr,Q,q);return C(Z)}linkCommunitySubgroups($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=r(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,q,Z,X,K);return C(J)}logout(){let $=z.wasmwhatsappclient_logout(this.__wbg_ptr);return C($)}markChatAsRead($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,q,Z,Q);return C(X)}markPlayed($){let Q=z.wasmwhatsappclient_markPlayed(this.__wbg_ptr,N($));return C(Q)}muteChat($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_muteChat(this.__wbg_ptr,q,Z,!d(Q),d(Q)?0:Q);return C(X)}newsletterAdminInfo($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterAdminInfo(this.__wbg_ptr,Q,q);return C(Z)}newsletterAdminMute($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_newsletterAdminMute(this.__wbg_ptr,q,Z,Q);return C(X)}newsletterChangeOwner($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_newsletterChangeOwner(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterCreate($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U;var X=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;let J=z.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterDelete($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterDelete(this.__wbg_ptr,Q,q);return C(Z)}newsletterDemoteAdmin($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_newsletterDemoteAdmin(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterEditMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=u(q,z.__wbindgen_export),P=U,D=z.wasmwhatsappclient_newsletterEditMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}newsletterFollowerMute($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_newsletterFollowerMute(this.__wbg_ptr,q,Z,Q);return C(X)}newsletterFollowers($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_newsletterFollowers(this.__wbg_ptr,q,Z,Q);return C(X)}newsletterList(){let $=z.wasmwhatsappclient_newsletterList(this.__wbg_ptr);return C($)}newsletterMessages($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var K=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),J=U;let V=z.wasmwhatsappclient_newsletterMessages(this.__wbg_ptr,Z,X,Q,K,J);return C(V)}newsletterMetadata($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,Q,q);return C(Z)}newsletterMetadataByInvite($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterMetadataByInvite(this.__wbg_ptr,Q,q);return C(Z)}newsletterMute($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,q,Z,Q);return C(X)}newsletterReactMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U;var V=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}newsletterRemovePicture($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterRemovePicture(this.__wbg_ptr,Q,q);return C(Z)}newsletterRevokeMessage($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_newsletterRevokeMessage(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterSetPicture($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=u(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_newsletterSetPicture(this.__wbg_ptr,q,Z,X,K);return C(J)}newsletterSubscribe($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,Q,q);return C(Z)}newsletterSubscribeLiveUpdates($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterSubscribeLiveUpdates(this.__wbg_ptr,Q,q);return C(Z)}newsletterUnsubscribe($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,Q,q);return C(Z)}newsletterUpdate($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var K=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_newsletterUpdate(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}pinChat($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_pinChat(this.__wbg_ptr,q,Z,Q);return C(X)}pnForLid($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_pnForLid(this.__wbg_ptr,Q,q);return C(Z)}presenceSubscribe($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,Q,q);return C(Z)}profilePictureUrl($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=z.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,Z,X,N(Q),!d(q),d(q)?0:q);return C(K)}queryNode($,Q){let q=z.wasmwhatsappclient_queryNode(this.__wbg_ptr,N($),!d(Q),d(Q)?0:Q);return C(q)}queryUsync($){let Q=z.wasmwhatsappclient_queryUsync(this.__wbg_ptr,N($));return C(Q)}readMessages($){let Q=z.wasmwhatsappclient_readMessages(this.__wbg_ptr,N($));return C(Q)}reconnect(){let $=z.wasmwhatsappclient_reconnect(this.__wbg_ptr);return C($)}refreshPreKeys($){let Q=z.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,d($)?Number.MAX_SAFE_INTEGER:$>>>0);return C(Q)}rejectCall($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_rejectCall(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}rejectStanza($,Q,q){let Z=z.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,N($),Q,d(q)?Number.MAX_SAFE_INTEGER:q>>0);return C(Z)}relayMessageBytes($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=u(Q,z.__wbindgen_export),J=U;var V=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}relayMessageBytesWithOptions($,Q,q,Z,X,K){let J=F($,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=u(Q,z.__wbindgen_export),D=U;var O=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),W=U;let f=z.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,J,V,P,D,O,W,N(Z),X,K);return C(f)}removeBusinessCoverPhoto($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_removeBusinessCoverPhoto(this.__wbg_ptr,Q,q);return C(Z)}removeChatLabel($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_removeChatLabel(this.__wbg_ptr,q,Z,X,K);return C(J)}removeContact($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_removeContact(this.__wbg_ptr,Q,q);return C(Z)}removeGroupProfilePicture($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,Q,q);return C(Z)}removeMessageLabel($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_removeMessageLabel(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}removeProfilePicture(){let $=z.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return C($)}requestMediaReupload($,Q,q,Z,X){let K=F($,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(Q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=u(q,z.__wbindgen_export),O=U;var W=d(X)?0:F(X,z.__wbindgen_export,z.__wbindgen_export2),f=U;let I=z.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,K,J,V,P,D,O,Z,W,f);return C(I)}requestMessageRetry($,Q){let q=z.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,N($),d(Q)?16777215:Q?1:0);return C(q)}requestPairingCode($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U;var X=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;let J=z.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,q,Z,X,K);return C(J)}retransmitMessageBytes($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=u(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,Z,X,K,J,N(q));return C(V)}revokeMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U;var V=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U;let D=z.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}rotateSignedKey(){let $=z.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return C($)}run(){try{let q=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_run(q,this.__wbg_ptr);var $=v().getInt32(q+0,!0),Q=v().getInt32(q+4,!0);if(Q)throw C($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}saveContact($,Q,q,Z){let X=F($,z.__wbindgen_export,z.__wbindgen_export2),K=U;var J=d(Q)?0:F(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,P=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),D=U;let O=z.wasmwhatsappclient_saveContact(this.__wbg_ptr,X,K,J,V,P,D,Z);return C(O)}sendChatState($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_sendChatState(this.__wbg_ptr,q,Z,N(Q));return C(X)}sendCommentBytes($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=u(q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,Z,X,N(Q),K,J);return C(V)}sendMessageBytes($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=u(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,q,Z,X,K);return C(J)}sendNode($){let Q=z.wasmwhatsappclient_sendNode(this.__wbg_ptr,N($));return C(Q)}sendPresence($){let Q=z.wasmwhatsappclient_sendPresence(this.__wbg_ptr,N($));return C(Q)}sendRawMessage($){let Q=u($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,Q,q);return C(Z)}sendReaction($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var K=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),J=U;let V=z.wasmwhatsappclient_sendReaction(this.__wbg_ptr,Z,X,N(Q),K,J);return C(V)}sendStatusMessageBytes($,Q){let q=u($,z.__wbindgen_export),Z=U,X=r(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,q,Z,X,K);return C(J)}sendStatusMessageBytesWithOptions($,Q,q,Z,X){let K=u($,z.__wbindgen_export),J=U,V=r(Q,z.__wbindgen_export),P=U;var D=d(q)?0:F(q,z.__wbindgen_export,z.__wbindgen_export2),O=U;let W=z.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,K,J,V,P,D,O,N(Z),X);return C(W)}setAutoReconnect($){z.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setBusinessCoverPhoto($){let Q=z.wasmwhatsappclient_setBusinessCoverPhoto(this.__wbg_ptr,N($));return C(Q)}setClientProfile($){let Q=z.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,N($));return C(Q)}setDeviceProps($){let Q=z.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,N($));return C(Q)}setGroupProfilePicture($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=u(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,q,Z,X,K);return C(J)}setInitialPushName($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,Q,q);return C(Z)}setLinkPreviewsDisabled($){let Q=z.wasmwhatsappclient_setLinkPreviewsDisabled(this.__wbg_ptr,$);return C(Q)}setPushName($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_setPushName(this.__wbg_ptr,Q,q);return C(Z)}setQuickReply($,Q,q,Z,X){let K=F($,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(Q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=F(q,z.__wbindgen_export,z.__wbindgen_export2),O=U,W=r(Z,z.__wbindgen_export),f=U,I=z.wasmwhatsappclient_setQuickReply(this.__wbg_ptr,K,J,V,P,D,O,W,f,X);return C(I)}setRawNodeForwarding($){z.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}setUserStatusMute($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_setUserStatusMute(this.__wbg_ptr,q,Z,Q);return C(X)}signalDecryptGroupMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=u(q,z.__wbindgen_export),P=U,D=z.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}signalDecryptMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=u(q,z.__wbindgen_export),P=U,D=z.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}signalDeleteSenderKey($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,q,Z,X,K);return C(J)}signalDeleteSessions($){let Q=r($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,Q,q);return C(Z)}signalEncryptGroupMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=u(Q,z.__wbindgen_export),J=U,V=F(q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=z.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}signalEncryptMessage($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=u(Q,z.__wbindgen_export),K=U,J=z.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,q,Z,X,K);return C(J)}signalGetSenderKeyDistribution($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,q,Z,X,K);return C(J)}signalGetSessionInfo($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,Q,q);return C(Z)}signalHasSenderKey($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,q,Z,X,K);return C(J)}signalInstallPreKeyBundle($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,q,Z,N(Q));return C(X)}signalMigrateSessions($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,q,Z,X,K);return C(J)}signalProcessSenderKeyDistribution($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=u(q,z.__wbindgen_export),P=U,D=z.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,Z,X,K,J,V,P);return C(D)}signalValidateSession($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,Q,q);return C(Z)}starMessage($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=F(Q,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=z.wasmwhatsappclient_starMessage(this.__wbg_ptr,Z,X,K,J,q);return C(V)}unlinkCommunitySubgroups($,Q,q){let Z=F($,z.__wbindgen_export,z.__wbindgen_export2),X=U,K=r(Q,z.__wbindgen_export),J=U,V=z.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,Z,X,K,J,q);return C(V)}updateBlockStatus($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=z.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,q,Z,N(Q));return C(X)}updateBusinessProfile($){let Q=z.wasmwhatsappclient_updateBusinessProfile(this.__wbg_ptr,N($));return C(Q)}updateDefaultDisappearingMode($){let Q=z.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return C(Q)}updateMemberLabel($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,q,Z,X,K);return C(J)}updatePrivacySetting($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,J=z.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,q,Z,X,K);return C(J)}updateProfilePicture($){let Q=u($,z.__wbindgen_export),q=U,Z=z.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,Q,q);return C(Z)}updateProfileStatus($){let Q=F($,z.__wbindgen_export,z.__wbindgen_export2),q=U,Z=z.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,Q,q);return C(Z)}uploadEncryptedMediaStream($,Q,q,Z,X,K){let J=u(Q,z.__wbindgen_export),V=U,P=u(q,z.__wbindgen_export),D=U,O=u(Z,z.__wbindgen_export),W=U,f=z.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,N($),J,V,P,D,O,W,X,N(K));return C(f)}uploadMedia($,Q){let q=u($,z.__wbindgen_export),Z=U,X=z.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,q,Z,N(Q));return C(X)}validateKeyBundle(){let $=z.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return C($)}votePoll($,Q,q,Z,X){let K=F($,z.__wbindgen_export,z.__wbindgen_export2),J=U,V=F(Q,z.__wbindgen_export,z.__wbindgen_export2),P=U,D=F(q,z.__wbindgen_export,z.__wbindgen_export2),O=U,W=u(Z,z.__wbindgen_export),f=U,I=r(X,z.__wbindgen_export),S=U,p=z.wasmwhatsappclient_votePoll(this.__wbg_ptr,K,J,V,P,D,O,W,f,I,S);return C(p)}waitForConnected($){let Q=z.wasmwhatsappclient_waitForConnected(this.__wbg_ptr,$);return C(Q)}waitForSocket($){let Q=z.wasmwhatsappclient_waitForSocket(this.__wbg_ptr,$);return C(Q)}}if(Symbol.dispose)t$.prototype[Symbol.dispose]=t$.prototype.free;function wA(){z.beginWasmAllocationProfile()}function jA($,Q){try{let K=z.__wbindgen_add_to_stack_pointer(-16),J=u($,z.__wbindgen_export),V=U,P=u(Q,z.__wbindgen_export),D=U;z.calculateAgreement(K,J,V,P,D);var q=v().getInt32(K+0,!0),Z=v().getInt32(K+4,!0),X=v().getInt32(K+8,!0);if(X)throw C(Z);return C(q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function dA($,Q){try{let K=z.__wbindgen_add_to_stack_pointer(-16),J=u($,z.__wbindgen_export),V=U,P=u(Q,z.__wbindgen_export),D=U;z.calculateSignature(K,J,V,P,D);var q=v().getInt32(K+0,!0),Z=v().getInt32(K+4,!0),X=v().getInt32(K+8,!0);if(X)throw C(Z);return C(q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function FV($,Q,q,Z,X,K,J){let V=z.createWhatsAppClient(N($),N(Q),d(q)?0:N(q),d(Z)?0:N(Z),d(X)?0:N(X),d(K)?0:N(K),d(J)?0:N(J));return C(V)}function cA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),K=u($,z.__wbindgen_export),J=U;z.decodeSenderKeyRecordComponents(X,K,J);var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function nA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),K=u($,z.__wbindgen_export),J=U;z.decodeSessionRecordComponents(X,K,J);var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function bA($,Q,q,Z,X,K){try{let D=z.__wbindgen_add_to_stack_pointer(-16),O=u($,z.__wbindgen_export),W=U,f=u(Q,z.__wbindgen_export),I=U,S=u(q,z.__wbindgen_export),p=U,A=F(Z,z.__wbindgen_export,z.__wbindgen_export2),z0=U,w=F(X,z.__wbindgen_export,z.__wbindgen_export2),c=U,$0=F(K,z.__wbindgen_export,z.__wbindgen_export2),o=U;z.decryptEventResponsePayload(D,O,W,f,I,S,p,A,z0,w,c,$0,o);var J=v().getInt32(D+0,!0),V=v().getInt32(D+4,!0),P=v().getInt32(D+8,!0);if(P)throw C(V);return C(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function oA($,Q,q,Z,X,K,J){try{let f=z.__wbindgen_add_to_stack_pointer(-16),I=u($,z.__wbindgen_export),S=U,p=u(Q,z.__wbindgen_export),A=U,z0=u(q,z.__wbindgen_export),w=U,c=F(Z,z.__wbindgen_export,z.__wbindgen_export2),$0=U,o=F(X,z.__wbindgen_export,z.__wbindgen_export2),l=U,c$=F(K,z.__wbindgen_export,z.__wbindgen_export2),n$=U,VY=r(J,z.__wbindgen_export),J0=U;z.decryptPollVote(f,I,S,p,A,z0,w,c,$0,o,l,c$,n$,VY,J0);var V=v().getInt32(f+0,!0),P=v().getInt32(f+4,!0),D=v().getInt32(f+8,!0),O=v().getInt32(f+12,!0);if(O)throw C(D);var W=M0(V,P).slice();return z.__wbindgen_export4(V,P*4,4),W}finally{z.__wbindgen_add_to_stack_pointer(16)}}function iA($,Q,q,Z,X,K){try{let D=z.__wbindgen_add_to_stack_pointer(-16),O=u($,z.__wbindgen_export),W=U,f=u(Q,z.__wbindgen_export),I=U,S=u(q,z.__wbindgen_export),p=U,A=F(Z,z.__wbindgen_export,z.__wbindgen_export2),z0=U,w=F(X,z.__wbindgen_export,z.__wbindgen_export2),c=U,$0=F(K,z.__wbindgen_export,z.__wbindgen_export2),o=U;z.decryptPollVotePayload(D,O,W,f,I,S,p,A,z0,w,c,$0,o);var J=v().getInt32(D+0,!0),V=v().getInt32(D+4,!0),P=v().getInt32(D+8,!0);if(P)throw C(V);return C(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function mA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSenderKeyRecordComponents(X,N($));var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function gA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSessionRecordComponents(X,N($));var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function rA(){let $=z.generateKeyPair();return C($)}function tA(){let $=z.getEnabledFeatures();return C($)}function aA($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),K=u($,z.__wbindgen_export),J=U;z.getPublicFromPrivateKey(X,K,J);var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function sA(){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.getWasmAllocationSnapshot(Z);var $=v().getInt32(Z+0,!0),Q=v().getInt32(Z+4,!0),q=v().getInt32(Z+8,!0);if(q)throw C(Q);return C($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function eA(){return z.getWasmMemoryBytes()}function $3(){return z.hasLogger()!==0}function Q3($,Q,q){try{let J=z.__wbindgen_add_to_stack_pointer(-16),V=u($,z.__wbindgen_export),P=U;z.hkdf(J,V,P,Q,N(q));var Z=v().getInt32(J+0,!0),X=v().getInt32(J+4,!0),K=v().getInt32(J+8,!0);if(K)throw C(X);return C(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function Z3($,Q){try{let K=z.__wbindgen_add_to_stack_pointer(-16);z.importLegacySessionRecordV1(K,N($),N(Q));var q=v().getInt32(K+0,!0),Z=v().getInt32(K+4,!0),X=v().getInt32(K+8,!0);if(X)throw C(Z);return C(q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function J3($,Q){try{let K=z.__wbindgen_add_to_stack_pointer(-16),J=u($,z.__wbindgen_export),V=U;z.inflateZlib(K,J,V,!d(Q),d(Q)?0:Q);var q=v().getInt32(K+0,!0),Z=v().getInt32(K+4,!0),X=v().getInt32(K+8,!0);if(X)throw C(Z);return C(q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function LV($,Q){z.initWasmEngine(N($),N(Q))}function K3($,Q){let q=F($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,X=F(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;z.logMessage(q,Z,X,K)}function q3($){let Q=u($,z.__wbindgen_export),q=U,Z=z.md5(Q,q);return C(Z)}function X3($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),K=u($,z.__wbindgen_export),J=U;z.projectLegacySessionRecordV1(X,K,J);var Q=v().getInt32(X+0,!0),q=v().getInt32(X+4,!0),Z=v().getInt32(X+8,!0);if(Z)throw C(q);return C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function Y3($){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.setLogger(Z,N($));var Q=v().getInt32(Z+0,!0),q=v().getInt32(Z+4,!0);if(q)throw C(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function V3($){z.updateLogger(N($))}function z3($,Q,q){try{let J=z.__wbindgen_add_to_stack_pointer(-16),V=u($,z.__wbindgen_export),P=U,D=u(Q,z.__wbindgen_export),O=U,W=u(q,z.__wbindgen_export),f=U;z.verifySignature(J,V,P,D,O,W,f);var Z=v().getInt32(J+0,!0),X=v().getInt32(J+4,!0),K=v().getInt32(J+8,!0);if(K)throw C(X);return Z!==0}finally{z.__wbindgen_add_to_stack_pointer(16)}}function kO(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(Q,q){let Z=Error(H0(Q,q));return N(Z)},__wbg_Number_9a4e0ecb0fa16705:function(Q){return Number(x(Q))},__wbg_String_8564e559799eccda:function(Q,q){let Z=String(x(q)),X=F(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;v().setInt32(Q+4,K,!0),v().setInt32(Q+0,X,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(Q,q){let Z=x(q),X=typeof Z==="bigint"?Z:void 0;v().setBigInt64(Q+8,d(X)?BigInt(0):X,!0),v().setInt32(Q+0,!d(X),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(Q){let q=x(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=mY(x(q)),X=F(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;v().setInt32(Q+4,K,!0),v().setInt32(Q+0,X,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(Q,q){return x(Q)in x(q)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(Q){return typeof x(Q)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(Q){return typeof x(Q)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(Q){return x(Q)===null},__wbg___wbindgen_is_object_a27215656b807791:function(Q){let q=x(Q);return typeof q==="object"&&q!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(Q){return typeof x(Q)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(Q){return x(Q)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(Q,q){return x(Q)===x(q)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(Q,q){return x(Q)==x(q)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(Q,q){let Z=x(q),X=typeof Z==="number"?Z:void 0;v().setFloat64(Q+8,d(X)?0:X,!0),v().setInt32(Q+0,!d(X),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(Q,q){let Z=x(q),X=typeof Z==="string"?Z:void 0;var K=d(X)?0:F(X,z.__wbindgen_export,z.__wbindgen_export2),J=U;v().setInt32(Q+4,J,!0),v().setInt32(Q+0,K,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(Q,q){throw Error(H0(Q,q))},__wbg__wbg_cb_unref_fffb441def202758:function(Q){x(Q)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return e(function(Q,q,Z){let X=x(Q).apply(x(q),x(Z));return N(X)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(Q,q,Z,X){let K=x(Q).bind(x(q),x(Z),x(X));return N(K)},__wbg_buffer_54b87055582c8a81:function(Q){let q=x(Q).buffer;return N(q)},__wbg_byobRequest_06b654bb15590436:function(Q){let q=x(Q).byobRequest;return d(q)?0:N(q)},__wbg_byteLength_41862ca4020b9c43:function(Q){return x(Q).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(Q){return x(Q).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return e(function(Q,q,Z,X,K){let J=x(Q).call(x(q),x(Z),x(X),x(K));return N(J)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return e(function(Q,q){let Z=x(Q).call(x(q));return N(Z)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return e(function(Q,q,Z){let X=x(Q).call(x(q),x(Z));return N(X)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return e(function(Q,q,Z,X,K,J){let V=x(Q).call(x(q),x(Z),x(X),x(K),x(J));return N(V)},arguments)},__wbg_call_e3b662382210db98:function(){return e(function(Q,q,Z,X){let K=x(Q).call(x(q),x(Z),x(X));return N(K)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(Q){let q=x(Q).cancel();return N(q)},__wbg_catch_c1a60df4c30d76d3:function(Q,q){let Z=x(Q).catch(x(q));return N(Z)},__wbg_close_1e6096d41f7ce5d0:function(Q){let q=x(Q).close();return N(q)},__wbg_close_249a23304523681b:function(){return e(function(Q){x(Q).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return e(function(Q){x(Q).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(Q,q,Z,X){x(Q).debug(x(q),Z===0?void 0:H0(Z,X))},__wbg_debug_cf53e2612c84e4ee:function(Q,q,Z,X){console.debug(x(Q),x(q),x(Z),x(X))},__wbg_done_89b2b13e91a60321:function(Q){return x(Q).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return e(function(Q,q){x(Q).enqueue(x(q))},arguments)},__wbg_entries_015dc610cd81ede0:function(Q){let q=Object.entries(x(Q));return N(q)},__wbg_error_657700d53a73881f:function(Q,q,Z,X){console.error(x(Q),x(q),x(Z),x(X))},__wbg_error_9cce413345f88385:function(Q,q,Z,X){x(Q).error(x(q),Z===0?void 0:H0(Z,X))},__wbg_error_a6fa202b58aa1cd3:function(Q,q){let Z,X;try{Z=Q,X=q,console.error(H0(Q,q))}finally{z.__wbindgen_export4(Z,X,1)}},__wbg_from_13e323c65fc8f464:function(Q){let q=Array.from(x(Q));return N(q)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return e(function(Q,q){globalThis.crypto.getRandomValues(l$(Q,q))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return e(function(Q){let q=x(Q).getReader();return N(q)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return e(function(Q){let q=x(Q).getWriter();return N(q)},arguments)},__wbg_get_507a50627bffa49b:function(Q,q){let Z=x(Q)[q>>>0];return N(Z)},__wbg_get_78f252d074a84d0b:function(){return e(function(Q,q){let Z=Reflect.get(x(Q),x(q));return N(Z)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return e(function(Q,q){let Z=Reflect.get(x(Q),x(q));return N(Z)},arguments)},__wbg_get_done_670108eb06ecbe46:function(Q){let q=x(Q).done;return d(q)?16777215:q?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(Q,q){let Z=x(Q)[q>>>0];return N(Z)},__wbg_get_value_f465f5be30aa0963:function(Q){let q=x(Q).value;return N(q)},__wbg_get_with_ref_key_6412cf3094599694:function(Q,q){let Z=x(Q)[x(q)];return N(Z)},__wbg_info_79f5309d69d9c70e:function(Q,q,Z,X){console.info(x(Q),x(q),x(Z),x(X))},__wbg_info_b728e87a346ff6a2:function(Q,q,Z,X){x(Q).info(x(q),Z===0?void 0:H0(Z,X))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(Q){let q;try{q=x(Q)instanceof ArrayBuffer}catch(X){q=!1}return q},__wbg_instanceof_Array_de0fa65266a8c7c0:function(Q){let q;try{q=x(Q)instanceof Array}catch(X){q=!1}return q},__wbg_instanceof_Error_1fdac9f13a8181ba:function(Q){let q;try{q=x(Q)instanceof Error}catch(X){q=!1}return q},__wbg_instanceof_Map_e5b5e3db98422fcc:function(Q){let q;try{q=x(Q)instanceof Map}catch(X){q=!1}return q},__wbg_instanceof_Object_33f20e6f12439f3e:function(Q){let q;try{q=x(Q)instanceof Object}catch(X){q=!1}return q},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(Q){let q;try{q=x(Q)instanceof Promise}catch(X){q=!1}return q},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(Q){let q;try{q=x(Q)instanceof Uint8Array}catch(X){q=!1}return q},__wbg_isArray_0677c962b281d01a:function(Q){return Array.isArray(x(Q))},__wbg_isSafeInteger_04f36e4056f1b851:function(Q){return Number.isSafeInteger(x(Q))},__wbg_iterator_6f722e4a93058b71:function(){return N(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(Q){let q=Object.keys(x(Q));return N(q)},__wbg_length_1f0964f4a5e2c6d8:function(Q){return x(Q).length},__wbg_length_370319915dc99107:function(Q){return x(Q).length},__wbg_level_4b50b181832c5acf:function(Q,q){let Z=x(q).level,X=F(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;v().setInt32(Q+4,K,!0),v().setInt32(Q+0,X,!0)},__wbg_log_a45418e25b210a4c:function(Q,q,Z,X){console.log(x(Q),x(q),x(Z),x(X))},__wbg_message_8326fb1d549bebc5:function(Q){let q=x(Q).message;return N(q)},__wbg_new_227d7c05414eb861:function(){let Q=Error();return N(Q)},__wbg_new_32b398fb48b6d94a:function(){return N([])},__wbg_new_7796ffc7ed656783:function(){return N(new Map)},__wbg_new_b667d279fd5aa943:function(Q,q){let Z=Error(H0(Q,q));return N(Z)},__wbg_new_cd45aabdf6073e84:function(Q){let q=new Uint8Array(x(Q));return N(q)},__wbg_new_da52cf8fe3429cb2:function(){return N({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(Q,q){let Z=new Uint32Array(TO(Q,q));return N(Z)},__wbg_new_from_slice_77cdfb7977362f3c:function(Q,q){let Z=new Uint8Array(l$(Q,q));return N(Z)},__wbg_new_typed_1824d93f294193e5:function(Q,q){try{var Z={a:Q,b:q},X=(J,V)=>{let P=Z.a;Z.a=0;try{return AO(P,Z.b,J,V)}finally{Z.a=P}};let K=new Promise(X);return N(K)}finally{Z.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(Q,q,Z){let X=new Uint8Array(x(Q),q>>>0,Z>>>0);return N(X)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(Q,q){let Z=new ReadableStream(r$.__wrap(Q),C(q));return N(Z)},__wbg_new_with_length_e6785c33c8e4cce8:function(Q){let q=new Uint8Array(Q>>>0);return N(q)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(Q){let q=Array(Q>>>0);return N(q)},__wbg_next_6dbf2c0ac8cde20f:function(Q){let q=x(Q).next;return N(q)},__wbg_next_71f2aa1cb3d1e37e:function(){return e(function(Q){let q=x(Q).next();return N(q)},arguments)},__wbg_now_44881ed1d5dba857:function(){return e(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(x(Q),x(q),x(Z),x(X));return N(K)},__wbg_prototypesetcall_2592ffff58ff115d:function(Q,q,Z){Uint8Array.prototype.set.call(l$(Q,q),x(Z))},__wbg_prototypesetcall_4770620bbe4688a0:function(Q,q,Z){Uint8Array.prototype.set.call(l$(Q,q),x(Z))},__wbg_push_d2ae3af0c1217ae6:function(Q,q){return x(Q).push(x(q))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(Q){let q=x(Q).queueMicrotask;return N(q)},__wbg_queueMicrotask_6a09b7bc46549209:function(Q){queueMicrotask(x(Q))},__wbg_read_8afa15f12a160ef8:function(Q){let q=x(Q).read();return N(q)},__wbg_ready_68b537848a5c627a:function(Q){let q=x(Q).ready;return N(q)},__wbg_releaseLock_33c25ace78b2d4c6:function(Q){x(Q).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(Q){x(Q).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(Q){let q=Promise.resolve(x(Q));return N(q)},__wbg_respond_510e32df8aeb6817:function(){return e(function(Q,q){x(Q).respond(q>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(Q,q,Z){x(Q).set(l$(q,Z))},__wbg_set_575dd786d51585f8:function(Q,q,Z){let X=x(Q).set(x(q),x(Z));return N(X)},__wbg_set_6be42768c690e380:function(Q,q,Z){x(Q)[C(q)]=C(Z)},__wbg_set_8535240470bf2500:function(){return e(function(Q,q,Z){return Reflect.set(x(Q),x(q),x(Z))},arguments)},__wbg_set_8a16b38e4805b298:function(Q,q,Z){x(Q)[q>>>0]=C(Z)},__wbg_set_high_water_mark_44d043cd607dd13a:function(Q,q){x(Q).highWaterMark=q},__wbg_set_name_3bbc583faefa4193:function(Q,q,Z){x(Q).name=H0(q,Z)},__wbg_stack_3b0d974bbf31e44f:function(Q,q){let Z=x(q).stack,X=F(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;v().setInt32(Q+4,K,!0),v().setInt32(Q+0,X,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let Q=typeof global>"u"?null:global;return d(Q)?0:N(Q)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let Q=typeof globalThis>"u"?null:globalThis;return d(Q)?0:N(Q)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let Q=typeof self>"u"?null:self;return d(Q)?0:N(Q)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let Q=typeof window>"u"?null:window;return d(Q)?0:N(Q)},__wbg_subarray_3ed232c8a6baee09:function(Q,q,Z){let X=x(Q).subarray(q>>>0,Z>>>0);return N(X)},__wbg_then_16d107c451e9905d:function(Q,q,Z){let X=x(Q).then(x(q),x(Z));return N(X)},__wbg_then_6ec10ae38b3e92f7:function(Q,q){let Z=x(Q).then(x(q));return N(Z)},__wbg_trace_58264fbce2ceb5e6:function(Q,q,Z,X){x(Q).trace(x(q),Z===0?void 0:H0(Z,X))},__wbg_value_a5d5488a9589444a:function(Q){let q=x(Q).value;return N(q)},__wbg_view_21f1d4a4f175dfa9:function(Q){let q=x(Q).view;return d(q)?0:N(q)},__wbg_warn_77c4eb4a21e10a21:function(Q,q,Z,X){console.warn(x(Q),x(q),x(Z),x(X))},__wbg_warn_db531770752932a9:function(Q,q,Z,X){x(Q).warn(x(q),Z===0?void 0:H0(Z,X))},__wbg_wasmwhatsappclient_new:function(Q){let q=t$.__wrap(Q);return N(q)},__wbg_write_f6dc0059c3feedce:function(Q,q){let Z=x(Q).write(x(q));return N(Z)},__wbindgen_cast_0000000000000001:function(Q,q){let Z=b$(Q,q,BO);return N(Z)},__wbindgen_cast_0000000000000002:function(Q,q){let Z=b$(Q,q,OO);return N(Z)},__wbindgen_cast_0000000000000003:function(Q,q){let Z=b$(Q,q,EO);return N(Z)},__wbindgen_cast_0000000000000004:function(Q,q){let Z=b$(Q,q,RO);return N(Z)},__wbindgen_cast_0000000000000005:function(Q,q){let Z=b$(Q,q,NO);return N(Z)},__wbindgen_cast_0000000000000006:function(Q){return N(Q)},__wbindgen_cast_0000000000000007:function(Q){return N(Q)},__wbindgen_cast_0000000000000008:function(Q,q){let Z=l$(Q,q);return N(Z)},__wbindgen_cast_0000000000000009:function(Q,q){let Z=H0(Q,q);return N(Z)},__wbindgen_cast_000000000000000a:function(Q){let q=BigInt.asUintN(64,Q);return N(q)},__wbindgen_cast_000000000000000b:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_000000000000000c:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_000000000000000d:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_000000000000000e:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_000000000000000f:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_0000000000000010:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_0000000000000011:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_0000000000000012:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_cast_0000000000000013:function(Q,q){var Z=M0(Q,q).slice();return z.__wbindgen_export4(Q,q*4,4),N(Z)},__wbindgen_object_clone_ref:function(Q){let q=x(Q);return N(q)},__wbindgen_object_drop_ref:function(Q){C(Q)}}}}function NO($,Q){z.__wasm_bindgen_func_elem_4356($,Q)}function BO($,Q,q){z.__wasm_bindgen_func_elem_9303($,Q,N(q))}function RO($,Q,q){z.__wasm_bindgen_func_elem_4357($,Q,N(q))}function OO($,Q,q){try{let K=z.__wbindgen_add_to_stack_pointer(-16);z.__wasm_bindgen_func_elem_26619(K,$,Q,N(q));var Z=v().getInt32(K+0,!0),X=v().getInt32(K+4,!0);if(X)throw C(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function AO($,Q,q,Z){z.__wasm_bindgen_func_elem_26621($,Q,N(q),N(Z))}function EO($,Q,q){z.__wasm_bindgen_func_elem_4358($,Q,q)}var MO=["bytes"],WO=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingbytesource_free($,1)),SO=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsink_free($,1)),CV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsource_free($,1)),PV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_wasmwhatsappclient_free($,1));function N($){if(m$===_0.length)_0.push(_0.length+1);let Q=m$;return m$=_0[Q],_0[Q]=$,Q}var DV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbindgen_export5($.a,$.b));function mY($){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+=mY($[0]);for(let J=1;J<X;J++)K+=", "+mY($[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 IO($){if($<1028)return;_0[$]=m$,m$=$}function M0($,Q){$=$>>>0;let q=v(),Z=[];for(let X=$;X<$+4*Q;X+=4)Z.push(C(q.getUint32(X,!0)));return Z}function TO($,Q){return $=$>>>0,yO().subarray($/4,$/4+Q)}function l$($,Q){return $=$>>>0,p$().subarray($/1,$/1+Q)}var T$=null;function v(){if(T$===null||T$.buffer.detached===!0||T$.buffer.detached===void 0&&T$.buffer!==z.memory.buffer)T$=new DataView(z.memory.buffer);return T$}function H0($,Q){return fO($>>>0,Q)}var o$=null;function yO(){if(o$===null||o$.byteLength===0)o$=new Uint32Array(z.memory.buffer);return o$}var i$=null;function p$(){if(i$===null||i$.byteLength===0)i$=new Uint8Array(z.memory.buffer);return i$}function x($){return _0[$]}function e($,Q){try{return $.apply(this,Q)}catch(q){z.__wbindgen_export3(N(q))}}var _0=Array(1024).fill(void 0);_0.push(void 0,null,!0,!1);var m$=_0.length;function d($){return $===void 0||$===null}function b$($,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)z.__wbindgen_export5(Z.a,Z.b),Z.a=0,DV.unregister(Z)},DV.register(X,Z,Z),X}function u($,Q){let q=Q($.length*1,1)>>>0;return p$().set($,q/1),U=$.length,q}function r($,Q){let q=Q($.length*4,4)>>>0,Z=v();for(let X=0;X<$.length;X++)Z.setUint32(q+4*X,N($[X]),!0);return U=$.length,q}function F($,Q,q){if(q===void 0){let V=g$.encode($),P=Q(V.length,1)>>>0;return p$().subarray(P,P+V.length).set(V),U=V.length,P}let Z=$.length,X=Q(Z,1)>>>0,K=p$(),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=p$().subarray(X+J,X+Z),P=g$.encodeInto($,V);J+=P.written,X=q(X,Z,J,1)>>>0}return U=J,X}function C($){let Q=x($);return IO($),Q}var zY=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});zY.decode();var vO=2146435072,bY=0;function fO($,Q){if(bY+=Q,bY>=vO)zY=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),zY.decode(),bY=Q;return zY.decode(p$().subarray($,$+Q))}var g$=new TextEncoder;if(!("encodeInto"in g$))g$.encodeInto=function($,Q){let q=g$.encode($);return Q.set(q),{read:$.length,written:q.length}};var U=0,_O,hO,z;function lO($,Q){return hO=$,z=$.exports,_O=Q,T$=null,o$=null,i$=null,z}function xV($){if(z!==void 0)return z;if($!==void 0)if(Object.getPrototypeOf($)===Object.prototype)({module:$}=$);else console.warn("using deprecated parameters for `initSync()`; pass a single object instead");let Q=kO();if(!($ instanceof WebAssembly.Module))$=new WebAssembly.Module($);let q=new WebAssembly.Instance($,Q);return lO(q,$)}var XY={};xO(XY,{protobufPackage:()=>ZA,mentionMentionType:()=>Kx,futureProofBehavior:()=>Zx,consumerApplicationStatusTextMesageFontType:()=>$x,consumerApplicationMetadataSpecialTextSize:()=>eL,commandCommandType:()=>sL,WebNotificationsInfo:()=>jR,WebMessageInfo_StubType:()=>jB,WebMessageInfo_Status:()=>wB,WebMessageInfo_BizPrivacyStatus:()=>uB,WebMessageInfoWithMessageBytes:()=>K0,WebMessageInfo:()=>i,WebLinkRenderConfig:()=>Hx,WebFeatures_Flag:()=>pB,WebFeatures:()=>wR,WallpaperSettings:()=>L0,VirtualDeviceOutput:()=>qY,VerifiedNameCertificate_Details:()=>pY,VerifiedNameCertificate:()=>f0,UserReceipt:()=>KY,UserPassword_TransformerArg_Value:()=>JY,UserPassword_TransformerArg:()=>ZY,UserPassword_Transformer:()=>lB,UserPassword_Encoding:()=>hB,UserPassword:()=>QY,UrlTrackingMap_UrlTrackingMapElement:()=>$Y,UrlTrackingMap:()=>S$,UnCountedAssociatedMessageListWithMessageBytes:()=>e6,UnCountedAssociatedMessageList:()=>s6,ThreadID_ThreadType:()=>_B,ThreadID:()=>a6,TemplateButton_URLButton:()=>t6,TemplateButton_QuickReplyButton:()=>r6,TemplateButton_CallButton:()=>g6,TemplateButton:()=>m6,TapLinkAction:()=>i6,SyncdVersion:()=>E0,SyncdValue:()=>W$,SyncdSnapshotRecovery:()=>uR,SyncdSnapshot:()=>lY,SyncdRecord:()=>v0,SyncdPlainTextRecord:()=>o6,SyncdPatch:()=>hY,SyncdMutations:()=>_Y,SyncdMutation_SyncdOperation:()=>fB,SyncdMutation:()=>y0,SyncdIndex:()=>M$,SyncActionValue_WamoUserIdentifierAction:()=>b6,SyncActionValue_WaffleAccountLinkStateAction_AccountLinkState:()=>vB,SyncActionValue_WaffleAccountLinkStateAction:()=>n6,SyncActionValue_WASARootSecretAction_RootSecretEntry_Status:()=>yB,SyncActionValue_WASARootSecretAction_RootSecretEntry:()=>c6,SyncActionValue_WASARootSecretAction:()=>d6,SyncActionValue_UsernameChatStartModeAction_ChatStartMode:()=>TB,SyncActionValue_UsernameChatStartModeAction:()=>j6,SyncActionValue_UserStatusMuteAction:()=>w6,SyncActionValue_UnarchiveChatsSetting:()=>u6,SyncActionValue_UGCBot:()=>p6,SyncActionValue_TimeFormatAction:()=>l6,SyncActionValue_ThreadPinAction:()=>h6,SyncActionValue_SyncActionMessageRange:()=>Y0,SyncActionValue_SyncActionMessage:()=>_6,SyncActionValue_SubscriptionsSyncV2Action_SubscriptionInfo:()=>f6,SyncActionValue_SubscriptionsSyncV2Action_PaidFeature:()=>v6,SyncActionValue_SubscriptionsSyncV2Action:()=>y6,SyncActionValue_SubscriptionAction:()=>T6,SyncActionValue_StickerAction:()=>E$,SyncActionValue_StatusPrivacyAction_StatusDistributionMode:()=>IB,SyncActionValue_StatusPrivacyAction_CustomList:()=>I6,SyncActionValue_StatusPrivacyAction:()=>S6,SyncActionValue_StatusPostOptInNotificationPreferencesAction:()=>W6,SyncActionValue_StarAction:()=>M6,SyncActionValue_SettingsSyncAction_SettingPlatform:()=>SB,SyncActionValue_SettingsSyncAction_SettingKey:()=>WB,SyncActionValue_SettingsSyncAction_MediaQualitySetting:()=>MB,SyncActionValue_SettingsSyncAction_DisplayMode:()=>EB,SyncActionValue_SettingsSyncAction:()=>E6,SyncActionValue_RemoveRecentStickerAction:()=>A6,SyncActionValue_RecentEmojiWeightsAction:()=>O6,SyncActionValue_QuickReplyAction:()=>R6,SyncActionValue_PushNameSetting:()=>B6,SyncActionValue_PrivateProcessingSettingAction_PrivateProcessingStatus:()=>AB,SyncActionValue_PrivateProcessingSettingAction:()=>N6,SyncActionValue_PrivacySettingRelayAllCalls:()=>k6,SyncActionValue_PrivacySettingDisableLinkPreviewsAction:()=>x6,SyncActionValue_PrivacySettingChannelsPersonalisedRecommendationAction:()=>L6,SyncActionValue_PrimaryVersionAction:()=>F6,SyncActionValue_PrimaryFeature:()=>D6,SyncActionValue_PnForLidChatAction:()=>P6,SyncActionValue_PinAction:()=>C6,SyncActionValue_PaymentTosAction_PaymentNotice:()=>OB,SyncActionValue_PaymentTosAction:()=>U6,SyncActionValue_PaymentInfoAction:()=>G6,SyncActionValue_OutContactAction:()=>H6,SyncActionValue_NuxAction:()=>z6,SyncActionValue_NotificationActivitySettingAction_NotificationActivitySetting:()=>RB,SyncActionValue_NotificationActivitySettingAction:()=>V6,SyncActionValue_NoteEditAction_NoteType:()=>BB,SyncActionValue_NoteEditAction:()=>Y6,SyncActionValue_NewsletterSavedInterestsAction:()=>X6,SyncActionValue_NctSaltSyncAction:()=>q6,SyncActionValue_MuteAction:()=>K6,SyncActionValue_MusicUserIdAction_MusicUserIdMapEntry:()=>xY,SyncActionValue_MusicUserIdAction:()=>J6,SyncActionValue_MerchantPaymentPartnerAction_Status:()=>NB,SyncActionValue_MerchantPaymentPartnerAction:()=>Z6,SyncActionValue_MarketingMessageBroadcastAction:()=>Q6,SyncActionValue_MarketingMessageAction_MarketingMessagePrototypeType:()=>kB,SyncActionValue_MarketingMessageAction:()=>$6,SyncActionValue_MarkChatAsReadAction:()=>e9,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIReplyMode:()=>xB,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIFeatureStatus:()=>LB,SyncActionValue_MaibaAIFeaturesControlAction:()=>s9,SyncActionValue_LockChatAction:()=>a9,SyncActionValue_LocaleSetting:()=>t9,SyncActionValue_LidContactAction:()=>r9,SyncActionValue_LabelSublistAction:()=>g9,SyncActionValue_LabelReorderingAction:()=>m9,SyncActionValue_LabelEditAction_ListType:()=>FB,SyncActionValue_LabelEditAction:()=>i9,SyncActionValue_LabelAssociationAction:()=>o9,SyncActionValue_KeyExpiration:()=>b9,SyncActionValue_InteractiveMessageAction_InteractiveMessageActionMode:()=>DB,SyncActionValue_InteractiveMessageAction:()=>n9,SyncActionValue_FavoritesAction_Favorite:()=>c9,SyncActionValue_FavoritesAction:()=>d9,SyncActionValue_ExternalWebBetaAction:()=>j9,SyncActionValue_DetectedOutcomesStatusAction:()=>w9,SyncActionValue_DeleteMessageForMeAction:()=>u9,SyncActionValue_DeleteIndividualCallLogAction:()=>p9,SyncActionValue_DeleteChatAction:()=>l9,SyncActionValue_CustomerDataAction:()=>h9,SyncActionValue_CustomPaymentMethodsAction:()=>_9,SyncActionValue_CustomPaymentMethodMetadata:()=>f9,SyncActionValue_CustomPaymentMethod:()=>v9,SyncActionValue_CtwaPerCustomerDataSharingAction:()=>y9,SyncActionValue_ContactAction:()=>T9,SyncActionValue_CoexV2VersionAction:()=>I9,SyncActionValue_ClearChatAction:()=>S9,SyncActionValue_ChatAssignmentOpenedStatusAction:()=>W9,SyncActionValue_ChatAssignmentAction:()=>M9,SyncActionValue_CallLogAction:()=>E9,SyncActionValue_BusinessBroadcastListAction:()=>A9,SyncActionValue_BusinessBroadcastInsightsAction:()=>O9,SyncActionValue_BusinessBroadcastCampaignStatus:()=>UB,SyncActionValue_BusinessBroadcastCampaignAction:()=>R9,SyncActionValue_BusinessBroadcastAssociationAction:()=>pR,SyncActionValue_BubbleLockMessageAction:()=>B9,SyncActionValue_BroadcastListParticipant:()=>N9,SyncActionValue_BotWelcomeRequestAction:()=>k9,SyncActionValue_BizAISettingsNudgeAction_BizAISettingsCategory:()=>PB,SyncActionValue_BizAISettingsNudgeAction:()=>x9,SyncActionValue_AvatarUpdatedAction_AvatarEventType:()=>CB,SyncActionValue_AvatarUpdatedAction:()=>L9,SyncActionValue_AutoOrganizeBusinessChatSetting:()=>F9,SyncActionValue_ArchiveChatAction:()=>D9,SyncActionValue_AndroidUnsupportedActions:()=>P9,SyncActionValue_AiThreadRenameAction:()=>C9,SyncActionValue_AgentAction:()=>U9,SyncActionValue:()=>_$,SyncActionData:()=>f$,SubProtocol:()=>b,StickerMetadata:()=>G9,StatusPSA:()=>H9,StatusMentionMessage:()=>z9,StatusAttribution_Type:()=>YB,StatusAttribution_StatusReshare_Source:()=>GB,StatusAttribution_StatusReshare_Metadata:()=>V9,StatusAttribution_StatusReshare:()=>Y9,StatusAttribution_RLAttribution_Source:()=>HB,StatusAttribution_RLAttribution:()=>X9,StatusAttribution_Music:()=>q9,StatusAttribution_GroupStatus:()=>K9,StatusAttribution_ExternalShare_Source:()=>zB,StatusAttribution_ExternalShare:()=>J9,StatusAttribution_AiCreatedAttribution_Source:()=>VB,StatusAttribution_AiCreatedAttribution:()=>Z9,StatusAttribution:()=>Q9,SignedPreKeyRecordStructure:()=>lR,SignalMessage:()=>hR,SessionTransparencyType:()=>zx,SessionTransparencyMetadata:()=>$9,SessionStructure_PendingPreKey:()=>eX,SessionStructure_PendingKeyExchange:()=>sX,SessionStructure_Chain_MessageKey:()=>aX,SessionStructure_Chain_ChainKey:()=>tX,SessionStructure_Chain:()=>t0,SessionStructure:()=>r0,ServerErrorReceipt:()=>fY,SenderKeyStateStructure_SenderSigningKey:()=>rX,SenderKeyStateStructure_SenderMessageKey:()=>gX,SenderKeyStateStructure_SenderChainKey:()=>mX,SenderKeyStateStructure:()=>iX,SenderKeyRecordStructure:()=>_R,SenderKeyMessage:()=>vY,SenderKeyDistributionMessage:()=>yY,ScheduledMessageMetadata:()=>oX,RoutingInfo:()=>fR,RotateEpochOutput:()=>vR,RotateEpochMemberInput:()=>bX,RotateEpochMemberEdge:()=>nX,RotateEpochInput:()=>cX,ReportingTokenInfo:()=>dX,Reportable:()=>yR,RecordStructure:()=>TR,RecentEmojiWeight:()=>jX,Reaction:()=>wX,QuarantinedMessage:()=>uX,QP_FilterResult:()=>XB,QP_FilterParameters:()=>pX,QP_FilterClientNotSupportedConfig:()=>qB,QP_FilterClause:()=>QQ,QP_Filter:()=>lX,QP_ClauseType:()=>KB,QP:()=>IR,Pushname:()=>hX,ProloguePayload:()=>SR,ProcessedVideo_VideoQuality:()=>JB,ProcessedVideo:()=>_X,PrivacySystemMessage:()=>Vx,PrimaryEphemeralIdentity:()=>WR,PremiumMessageInfo:()=>fX,PreKeySignalMessage:()=>MR,PreKeyRecordStructure:()=>ER,PollUpdate:()=>vX,PollEncValue:()=>yX,PollAdditionalMetadata_PollNameHashHistoryEntry:()=>TX,PollAdditionalMetadata:()=>IX,Point:()=>SX,PinInChat_Type:()=>ZB,PinInChat:()=>WX,PhotoChange:()=>MX,PhoneNumberToLIDMapping:()=>EX,PaymentInfo_TxnStatus:()=>QB,PaymentInfo_Status:()=>$B,PaymentInfo_Currency:()=>eN,PaymentInfo:()=>g0,PaymentBackground_Type:()=>sN,PaymentBackground_MediaData:()=>AX,PaymentBackground:()=>A$,PatchDebugData_Platform:()=>aN,PatchDebugData:()=>AR,PastParticipants:()=>OX,PastParticipant_LeaveReason:()=>tN,PastParticipant:()=>RX,PairingRequest:()=>OR,OrfThreadIdOutput:()=>RR,OrfThreadIdInput:()=>BX,NotificationSettings:()=>m0,NotificationMessageInfo:()=>BR,NonE2EEAttestation_AccountType:()=>rN,NonE2EEAttestation:()=>NX,NoiseCertificate_Details:()=>NR,NoiseCertificate:()=>kR,MutationProps:()=>Yx,MsgRowOpaqueData:()=>xR,MsgOpaqueData_PollVotesSnapshot:()=>kX,MsgOpaqueData_PollVoteSnapshot:()=>xX,MsgOpaqueData_PollType:()=>gN,MsgOpaqueData_PollOption:()=>O$,MsgOpaqueData_PollContentType:()=>mN,MsgOpaqueData_EventLocation:()=>LX,MsgOpaqueData:()=>i0,Money:()=>a,Message_VideoMessage_VideoSourceType:()=>nN,Message_VideoMessage_Attribution:()=>cN,Message_VideoMessage:()=>t,Message_VideoEndCard:()=>PX,Message_URLMetadata:()=>CX,Message_TemplateMessage_HydratedFourRowTemplate:()=>o0,Message_TemplateMessage_FourRowTemplate:()=>UX,Message_TemplateMessage:()=>N$,Message_TemplateButtonReplyMessage:()=>GX,Message_StickerSyncRMRMessage:()=>HX,Message_StickerPackMessage_StickerPackOrigin:()=>dN,Message_StickerPackMessage_Sticker:()=>zX,Message_StickerPackMessage:()=>VX,Message_StickerMessage:()=>k$,Message_StatusStickerInteractionMessage_StatusStickerType:()=>jN,Message_StatusStickerInteractionMessage:()=>YX,Message_StatusQuotedMessage_StatusQuotedMessageType:()=>wN,Message_StatusQuotedMessage:()=>XX,Message_StatusQuestionAnswerMessage:()=>qX,Message_StatusNotificationMessage_StatusNotificationType:()=>uN,Message_StatusNotificationMessage:()=>KX,Message_StatusLinkPreviewMetadata_Style:()=>pN,Message_StatusLinkPreviewMetadata:()=>JX,Message_SplitPaymentUpdateMessage:()=>ZX,Message_SplitPaymentParticipant_SplitPaymentStatus:()=>lN,Message_SplitPaymentParticipant:()=>QX,Message_SplitPaymentMessage:()=>$X,Message_SenderKeyDistributionMessage:()=>b0,Message_SendPaymentMessage:()=>eq,Message_SecretEncryptedMessage_SecretEncType:()=>hN,Message_SecretEncryptedMessage:()=>sq,Message_ScheduledCallEditMessage_EditType:()=>_N,Message_ScheduledCallEditMessage:()=>aq,Message_ScheduledCallCreationMessage_CallType:()=>fN,Message_ScheduledCallCreationMessage:()=>tq,Message_RootSecretDistributeMessage:()=>rq,Message_RequestWelcomeMessageMetadata_WelcomeTrigger:()=>vN,Message_RequestWelcomeMessageMetadata_LocalChatState:()=>yN,Message_RequestWelcomeMessageMetadata:()=>gq,Message_RequestPhoneNumberMessage:()=>mq,Message_RequestPaymentMessage:()=>iq,Message_ReactionMessage:()=>oq,Message_QuestionResponseMessage:()=>bq,Message_ProtocolMessage_Type:()=>TN,Message_ProtocolMessage:()=>nq,Message_ProductMessage_ProductSnapshot:()=>cq,Message_ProductMessage_CatalogSnapshot:()=>dq,Message_ProductMessage:()=>x$,Message_PollVoteMessage:()=>T0,Message_PollUpdateMessageMetadata:()=>A0,Message_PollUpdateMessage:()=>jq,Message_PollType:()=>mk,Message_PollResultSnapshotMessage_PollVote:()=>wq,Message_PollResultSnapshotMessage:()=>n0,Message_PollEncValue:()=>uq,Message_PollCreationMessage_Option:()=>F0,Message_PollCreationMessage:()=>Q0,Message_PollContentType:()=>ik,Message_PollAddOptionMessage:()=>pq,Message_PlaceholderMessage_PlaceholderType:()=>IN,Message_PlaceholderMessage:()=>lq,Message_PinInChatMessage_Type:()=>SN,Message_PinInChatMessage:()=>hq,Message_PeerDataOperationRequestType:()=>ok,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_WaffleNonceFetchResponse:()=>_q,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_SyncDSnapshotFatalRecoveryResponse:()=>fq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_PlaceholderMessageResendResponse:()=>vq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_PaymentLinkPreviewMetadata:()=>yq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_LinkPreviewHighQualityThumbnail:()=>Tq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse:()=>Iq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponseCode:()=>WN,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponse:()=>Sq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandResponseCode:()=>MN,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandRequestResponse:()=>Wq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FlowResponsesCsvBundle:()=>Mq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_ContactRefreshResponse:()=>Eq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionMetaNonceFetchResponse:()=>Aq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionCanonicalUserNonceFetchResponse:()=>Oq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactState:()=>Rq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactListResponse:()=>Bq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult:()=>Nq,Message_PeerDataOperationRequestResponseMessage:()=>kq,Message_PeerDataOperationRequestMessage_SyncDCollectionFatalRecoveryRequest:()=>xq,Message_PeerDataOperationRequestMessage_RequestUrlPreview:()=>Lq,Message_PeerDataOperationRequestMessage_RequestStickerReupload:()=>Fq,Message_PeerDataOperationRequestMessage_PlaceholderMessageResendRequest:()=>Dq,Message_PeerDataOperationRequestMessage_HistorySyncOnDemandRequest:()=>Pq,Message_PeerDataOperationRequestMessage_HistorySyncChunkRetryRequest:()=>Cq,Message_PeerDataOperationRequestMessage_GalaxyFlowAction_GalaxyFlowActionType:()=>EN,Message_PeerDataOperationRequestMessage_GalaxyFlowAction:()=>Uq,Message_PeerDataOperationRequestMessage_FullHistorySyncOnDemandRequest:()=>Gq,Message_PeerDataOperationRequestMessage_CompanionCanonicalUserNonceFetchRequest:()=>Hq,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsRefreshRequest:()=>zq,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsContactListRequest:()=>Vq,Message_PeerDataOperationRequestMessage:()=>Yq,Message_PaymentReminderMessage_ReminderStatus:()=>AN,Message_PaymentReminderMessage_ReminderFrequency:()=>ON,Message_PaymentReminderMessage:()=>Xq,Message_PaymentLinkMetadata_PaymentLinkProvider:()=>qq,Message_PaymentLinkMetadata_PaymentLinkHeader_PaymentLinkHeaderType:()=>RN,Message_PaymentLinkMetadata_PaymentLinkHeader:()=>Kq,Message_PaymentLinkMetadata_PaymentLinkButton:()=>Jq,Message_PaymentLinkMetadata:()=>L$,Message_PaymentInviteMessage_ServiceType:()=>BN,Message_PaymentInviteMessage_InviteType:()=>NN,Message_PaymentInviteMessage:()=>Zq,Message_PaymentExtendedMetadata:()=>Qq,Message_OrderMessage_OrderSurface:()=>kN,Message_OrderMessage_OrderStatus:()=>xN,Message_OrderMessage:()=>$q,Message_NewsletterFollowerInviteMessage:()=>e8,Message_NewsletterAdminInviteMessage:()=>s8,Message_MusicMessage_MusicMessageStyle:()=>LN,Message_MusicMessage:()=>a8,Message_MessageHistoryNotice:()=>t8,Message_MessageHistoryMetadata:()=>F$,Message_MessageHistoryBundle:()=>D$,Message_MarkAsVerifiedAction:()=>r8,Message_MMSThumbnailMetadata:()=>g8,Message_LocationMessage:()=>s,Message_LiveLocationMessage:()=>P$,Message_ListResponseMessage_SingleSelectReply:()=>m8,Message_ListResponseMessage_ListType:()=>FN,Message_ListResponseMessage:()=>i8,Message_ListMessage_Section:()=>o8,Message_ListMessage_Row:()=>b8,Message_ListMessage_ProductSection:()=>n8,Message_ListMessage_ProductListInfo:()=>c8,Message_ListMessage_ProductListHeaderImage:()=>d8,Message_ListMessage_Product:()=>j8,Message_ListMessage_ListType:()=>DN,Message_ListMessage:()=>w8,Message_LinkPreviewMetadata_SocialMediaPostType:()=>PN,Message_LinkPreviewMetadata:()=>u8,Message_KeepInChatMessage:()=>p8,Message_InvoiceMessage_AttachmentType:()=>CN,Message_InvoiceMessage:()=>l8,Message_InteractiveResponseMessage_NativeFlowResponseMessage:()=>h8,Message_InteractiveResponseMessage_Body_Format:()=>UN,Message_InteractiveResponseMessage_Body:()=>_8,Message_InteractiveResponseMessage:()=>f8,Message_InteractiveMessage_ShopMessage_Surface:()=>GN,Message_InteractiveMessage_ShopMessage:()=>v8,Message_InteractiveMessage_NativeFlowMessage_NativeFlowButton:()=>y8,Message_InteractiveMessage_NativeFlowMessage:()=>T8,Message_InteractiveMessage_Header:()=>I8,Message_InteractiveMessage_Footer:()=>S8,Message_InteractiveMessage_CollectionMessage:()=>W8,Message_InteractiveMessage_CarouselMessage_CarouselCardType:()=>HN,Message_InteractiveMessage_CarouselMessage:()=>M8,Message_InteractiveMessage_Body:()=>E8,Message_InteractiveMessage_BloksWidget:()=>C$,Message_InteractiveMessage:()=>O0,Message_InsightDeliveryState:()=>bk,Message_InitialSecurityNotificationSettingSync:()=>A8,Message_ImageMessage_ImageSourceType:()=>zN,Message_ImageMessage:()=>m,Message_HistorySyncType:()=>nk,Message_HistorySyncNotification:()=>O8,Message_HistorySyncMessageAccessStatus:()=>R8,Message_HistoryShareMessageEntry:()=>B8,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeUnixEpoch:()=>N8,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_DayOfWeekType:()=>VN,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_CalendarType:()=>YN,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent:()=>k8,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime:()=>x8,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMCurrency:()=>L8,Message_HighlyStructuredMessage_HSMLocalizableParameter:()=>F8,Message_HighlyStructuredMessage:()=>n,Message_GroupInviteMessage_GroupType:()=>XN,Message_GroupInviteMessage:()=>D8,Message_FutureProofMessage:()=>T,Message_FullHistorySyncOnDemandRequestMetadata:()=>R0,Message_FullHistorySyncOnDemandConfig:()=>P8,Message_ExtendedTextMessage_PreviewType:()=>qN,Message_ExtendedTextMessage_InviteLinkGroupType:()=>KN,Message_ExtendedTextMessage_FontType:()=>JN,Message_ExtendedTextMessage:()=>C8,Message_EventResponseMessage_EventResponseType:()=>ZN,Message_EventResponseMessage:()=>I0,Message_EventMessage:()=>U8,Message_EventInviteMessage:()=>G8,Message_EncReactionMessage:()=>H8,Message_EncEventResponseMessage:()=>z8,Message_EncCommentMessage:()=>V8,Message_DocumentMessage:()=>Z0,Message_DeviceSentMessage:()=>Y8,Message_DeclinePaymentRequestMessage:()=>X8,Message_ContactsArrayMessage:()=>q8,Message_ContactMessage:()=>U$,Message_ConditionalRevealMessage_ConditionalRevealMessageType:()=>QN,Message_ConditionalRevealMessage:()=>K8,Message_CommentMessage:()=>J8,Message_CloudAPIThreadControlNotification_CloudAPIThreadControlNotificationContent:()=>Z8,Message_CloudAPIThreadControlNotification_CloudAPIThreadControl:()=>$N,Message_CloudAPIThreadControlNotification:()=>Q8,Message_ChatThemeSetting:()=>$8,Message_ChatStockImageWallpaper:()=>eK,Message_ChatSolidColorWallpaper:()=>sK,Message_ChatDefaultWallpaper:()=>aK,Message_ChatCustomImageWallpaper:()=>tK,Message_Chat:()=>rK,Message_CancelPaymentRequestMessage:()=>gK,Message_CallLogMessage_CallType:()=>ek,Message_CallLogMessage_CallParticipant:()=>mK,Message_CallLogMessage_CallOutcome:()=>sk,Message_CallLogMessage:()=>iK,Message_Call:()=>oK,Message_ButtonsResponseMessage_Type:()=>ak,Message_ButtonsResponseMessage:()=>bK,Message_ButtonsMessage_HeaderType:()=>rk,Message_ButtonsMessage_Button_Type:()=>tk,Message_ButtonsMessage_Button_NativeFlowInfo:()=>nK,Message_ButtonsMessage_Button_ButtonText:()=>cK,Message_ButtonsMessage_Button:()=>dK,Message_ButtonsMessage:()=>jK,Message_BotHistoryShareSyncMetadata:()=>wK,Message_BCallMessage_MediaType:()=>gk,Message_BCallMessage:()=>uK,Message_AudioMessage:()=>G$,Message_AppStateSyncKeyShare:()=>pK,Message_AppStateSyncKeyRequest:()=>lK,Message_AppStateSyncKeyId:()=>H$,Message_AppStateSyncKeyFingerprint:()=>hK,Message_AppStateSyncKeyData:()=>_K,Message_AppStateSyncKey:()=>fK,Message_AppStateFatalExceptionNotification:()=>vK,Message_AlbumMessage:()=>yK,MessageText:()=>g,MessageSecretMessage:()=>LR,MessageKey:()=>k,MessageContextInfo_MessageAddonExpiryType:()=>iN,MessageContextInfo:()=>R$,MessageAssociation_AssociationType:()=>oN,MessageAssociation:()=>FX,MessageAddOn_MessageAddOnType:()=>bN,MessageAddOnContextInfo:()=>B$,MessageAddOn:()=>DX,Message:()=>j,Mention:()=>TK,MemberLabel:()=>B0,MediaVisibility:()=>Xx,MediaRetryNotification_ResultType:()=>ck,MediaRetryNotification:()=>TY,MediaNotifyMessage:()=>IK,MediaKeyDomain:()=>qx,MediaEntry_ProgressiveJpegDetails:()=>SK,MediaEntry_DownloadableThumbnail:()=>WK,MediaEntry:()=>FR,MediaDomainInfo:()=>MK,MediaData:()=>c0,Location:()=>EK,LocalizedName:()=>AK,LimitSharing_TriggerType:()=>dk,LimitSharing:()=>D0,LegacyMessage:()=>OK,LabyrinthWaCommand:()=>DR,LIDMigrationMappingSyncPayload:()=>IY,LIDMigrationMappingSyncMessage:()=>BK,LIDMigrationMapping:()=>RK,KeyId:()=>N0,KeyExchangeMessage:()=>PR,KeepType:()=>Jx,KeepInChat:()=>NK,InteractiveMessageAdditionalMetadata:()=>kK,InteractiveAnnotation_StatusLinkType:()=>jk,InteractiveAnnotation:()=>q0,InlineContact:()=>xK,InThreadSurveyMetadata_InThreadSurveyQuestion:()=>LK,InThreadSurveyMetadata_InThreadSurveyPrivacyStatementPart:()=>FK,InThreadSurveyMetadata_InThreadSurveyOption:()=>DK,InThreadSurveyMetadata:()=>PK,IdentityVerificationState:()=>CK,IdentityKeyPairStructure:()=>CR,HydratedTemplateButton_HydratedURLButton_WebviewPresentationType:()=>wk,HydratedTemplateButton_HydratedURLButton:()=>UK,HydratedTemplateButton_HydratedQuickReplyButton:()=>GK,HydratedTemplateButton_HydratedCallButton:()=>HK,HydratedTemplateButton:()=>zK,HistorySync_HistorySyncType:()=>uk,HistorySync_BotAIWaitListState:()=>pk,HistorySyncMsg:()=>VK,HistorySync:()=>SY,HatchMetadataSync:()=>YK,HandshakeMessage_ServerHello:()=>XK,HandshakeMessage_HandshakePqMode:()=>lk,HandshakeMessage_ClientHello:()=>qK,HandshakeMessage_ClientFinish:()=>KK,HandshakeMessage:()=>WY,GroupRootKeyShareEntry:()=>JK,GroupRootKeyShare:()=>ZK,GroupParticipant_Rank:()=>hk,GroupParticipant:()=>QK,GroupMention:()=>$K,GroupHistoryWithMessageBytes:()=>UR,GroupHistoryIndividualMessageInfo:()=>eJ,GroupHistoryBundleInfo_ProcessState:()=>_k,GroupHistoryBundleInfo:()=>sJ,GroupHistory:()=>GR,GlobalSettings:()=>aJ,ForwardedAIBotMessageInfo:()=>tJ,FingerprintData_HostedState:()=>fk,FingerprintData:()=>d0,Field_SubfieldEntry:()=>LY,Field:()=>S0,ExternalBlobReference:()=>v$,ExitCode:()=>y$,EventResponse:()=>rJ,EventAdditionalMetadata:()=>gJ,Epoch0Output:()=>mJ,EphemeralSetting:()=>HR,EncryptedSecretValuesOutput:()=>iJ,EncryptedPairingRequest:()=>zR,EncryptMessageOutput:()=>VR,EncryptMessageInput:()=>oJ,EmbeddedMusic:()=>X0,EmbeddedMessage:()=>bJ,EmbeddedContent:()=>nJ,DisappearingMode_Trigger:()=>vk,DisappearingMode_Initiator:()=>yk,DisappearingMode:()=>k0,DeviceProps_PlatformType:()=>Tk,DeviceProps_HistorySyncConfig:()=>z$,DeviceProps_AppVersion:()=>cJ,DeviceProps:()=>MY,DeviceOutput:()=>dJ,DeviceListMetadata:()=>jJ,DeviceConsistencyCodeMessage:()=>YR,DeviceCapabilities_UserHasAvatar:()=>wJ,DeviceCapabilities_MemberNameTagPrimarySupport:()=>Sk,DeviceCapabilities_LIDMigration:()=>uJ,DeviceCapabilities_ChatLockSupportLevel:()=>Wk,DeviceCapabilities_BusinessBroadcast:()=>pJ,DeviceCapabilities_AiThread_SupportLevel:()=>Ik,DeviceCapabilities_AiThread:()=>lJ,DeviceCapabilities_AiFbidMigration:()=>hJ,DeviceCapabilities:()=>j0,DeriveMessageKeyOutput:()=>XR,DeriveMessageKeyInput:()=>_J,DecryptMessageOutput:()=>qR,DecryptMessageInput:()=>fJ,CreateBackupOutput:()=>KR,CreateBackupInput:()=>vJ,Conversation_GroupAppealStatus:()=>Mk,Conversation_EndOfHistoryTransferType:()=>Ek,Conversation:()=>yJ,ContextInfo_UTMInfo:()=>TJ,ContextInfo_StatusSourceType:()=>Fk,ContextInfo_StatusAudienceMetadata_AudienceType:()=>Ak,ContextInfo_StatusAudienceMetadata:()=>IJ,ContextInfo_StatusAttributionType:()=>Dk,ContextInfo_QuotedType:()=>Pk,ContextInfo_QuestionReplyQuotedMessage:()=>SJ,ContextInfo_PartiallySelectedContent:()=>WJ,ContextInfo_PairedMediaType:()=>Ck,ContextInfo_InstagramThreadLink:()=>MJ,ContextInfo_ForwardedNewsletterMessageInfo_ContentType:()=>Ok,ContextInfo_ForwardedNewsletterMessageInfo:()=>V$,ContextInfo_ForwardOrigin:()=>Uk,ContextInfo_FeatureEligibilities:()=>EJ,ContextInfo_ExternalAdReplyInfo_MediaType:()=>Rk,ContextInfo_ExternalAdReplyInfo_AdType:()=>Bk,ContextInfo_ExternalAdReplyInfo:()=>AJ,ContextInfo_DataSharingContext_Parameters:()=>a0,ContextInfo_DataSharingContext_DataSharingFlags:()=>Nk,ContextInfo_DataSharingContext:()=>OJ,ContextInfo_CrossAppSource:()=>Gk,ContextInfo_BusinessMessageForwardInfo:()=>RJ,ContextInfo_BusinessInteractionPills_UnauthenticatedBusinessMetadata:()=>BJ,ContextInfo_BusinessInteractionPills_SignedPayload:()=>JR,ContextInfo_BusinessInteractionPills_PillType:()=>kk,ContextInfo_BusinessInteractionPills_Pill:()=>Y$,ContextInfo_BusinessInteractionPills_EntryPoint:()=>xk,ContextInfo_BusinessInteractionPills:()=>NJ,ContextInfo_AdReplyInfo_MediaType:()=>Lk,ContextInfo_AdReplyInfo:()=>kJ,ContextInfo:()=>E,ConsumerApplication_consumerApplicationExtendedTextMessagePreviewType:()=>Hk,ConsumerApplication_ViewOnceMessage:()=>xJ,ConsumerApplication_VideoMessage:()=>X$,ConsumerApplication_SubProtocolPayload:()=>LJ,ConsumerApplication_StickerMessage:()=>FJ,ConsumerApplication_StatusTextMesage:()=>DJ,ConsumerApplication_Signal:()=>PJ,ConsumerApplication_RevokeMessage:()=>CJ,ConsumerApplication_ReactionMessage:()=>UJ,ConsumerApplication_PollVoteMessage:()=>ZR,ConsumerApplication_PollUpdateMessage:()=>GJ,ConsumerApplication_PollEncValue:()=>w0,ConsumerApplication_PollCreationMessage:()=>HJ,ConsumerApplication_PollAddOptionMessage:()=>QR,ConsumerApplication_Point:()=>zJ,ConsumerApplication_Payload:()=>VJ,ConsumerApplication_Option:()=>q$,ConsumerApplication_Metadata:()=>YJ,ConsumerApplication_MediaPayload:()=>$R,ConsumerApplication_LocationMessage:()=>XJ,ConsumerApplication_Location:()=>x0,ConsumerApplication_LiveLocationMessage:()=>qJ,ConsumerApplication_InteractiveAnnotation:()=>eB,ConsumerApplication_ImageMessage:()=>K$,ConsumerApplication_GroupInviteMessage:()=>KJ,ConsumerApplication_ExtendedTextMessage:()=>J$,ConsumerApplication_EditMessage:()=>JJ,ConsumerApplication_DocumentMessage:()=>ZJ,ConsumerApplication_Content:()=>QJ,ConsumerApplication_ContactsArrayMessage:()=>$J,ConsumerApplication_ContactMessage:()=>Z$,ConsumerApplication_AudioMessage:()=>eZ,ConsumerApplication_ApplicationData:()=>sZ,ConsumerApplication:()=>sB,Config_FieldEntry:()=>FY,Config:()=>aB,CompanionEphemeralIdentity:()=>tB,CompanionCommitment:()=>aZ,CommentMetadata:()=>tZ,Command:()=>rZ,CombinedFingerprint:()=>rB,CollectionName:()=>Qx,CoexStateSync_Mutation:()=>gZ,CoexStateSync_CollectionMutations:()=>mZ,CoexStateSync:()=>iZ,ClientPayload_WebInfo_WebdPayload:()=>oZ,ClientPayload_WebInfo_WebSubPlatform:()=>zk,ClientPayload_WebInfo:()=>bZ,ClientPayload_UserAgent_ReleaseChannel:()=>Vk,ClientPayload_UserAgent_Platform:()=>Yk,ClientPayload_UserAgent_DistributionChannel:()=>Xk,ClientPayload_UserAgent_DeviceType:()=>qk,ClientPayload_UserAgent_AppVersion:()=>nZ,ClientPayload_UserAgent:()=>cZ,ClientPayload_TrafficAnonymization:()=>Jk,ClientPayload_Product:()=>Zk,ClientPayload_InteropData:()=>dZ,ClientPayload_IOSAppExtension:()=>Qk,ClientPayload_DevicePairingRegistrationData:()=>jZ,ClientPayload_DNSSource_DNSResolutionMethod:()=>Kk,ClientPayload_DNSSource:()=>wZ,ClientPayload_ConnectType:()=>$k,ClientPayload_ConnectReason:()=>ex,ClientPayload_AccountType:()=>sx,ClientPayload:()=>EY,ClientPairingProps:()=>gB,Citation:()=>uZ,ChatRowOpaqueData_DraftMessage_CtwaContextLinkData:()=>pZ,ChatRowOpaqueData_DraftMessage_CtwaContextData_ContextInfoExternalAdReplyInfoMediaType:()=>ax,ChatRowOpaqueData_DraftMessage_CtwaContextData:()=>lZ,ChatRowOpaqueData_DraftMessage:()=>hZ,ChatRowOpaqueData:()=>mB,ChatLockSettings:()=>Q$,CertChain_NoiseCertificate_Details:()=>AY,CertChain_NoiseCertificate:()=>W0,CertChain:()=>OY,CallLogRecord_SilenceReason:()=>tx,CallLogRecord_ParticipantInfo:()=>_Z,CallLogRecord_CallType:()=>rx,CallLogRecord_CallResult:()=>gx,CallLogRecord:()=>$$,BotUnifiedResponseMutation_SideBySideMetadata:()=>fZ,BotUnifiedResponseMutation_MediaDetailsMetadata:()=>vZ,BotUnifiedResponseMutation:()=>yZ,BotSuggestedPromptMetadata:()=>TZ,BotSourcesMetadata_BotSourceItem_SourceProvider:()=>mx,BotSourcesMetadata_BotSourceItem:()=>IZ,BotSourcesMetadata:()=>SZ,BotSignatureVerificationUseCaseProof_CertificateSKI:()=>WZ,BotSignatureVerificationUseCaseProof_BotSignatureUseCase:()=>ix,BotSignatureVerificationUseCaseProof:()=>MZ,BotSignatureVerificationMetadata:()=>e0,BotSessionSource:()=>aL,BotSessionMetadata:()=>EZ,BotResolvedToolCallMetadata:()=>AZ,BotRenderingMetadata_Keyword:()=>OZ,BotRenderingMetadata:()=>RZ,BotRenderingConfigMetadata:()=>BZ,BotReminderMetadata_ReminderFrequency:()=>ox,BotReminderMetadata_ReminderAction:()=>bx,BotReminderMetadata:()=>NZ,BotQuotaMetadata_BotFeatureQuotaMetadata_BotFeatureType:()=>nx,BotQuotaMetadata_BotFeatureQuotaMetadata:()=>kZ,BotQuotaMetadata:()=>xZ,BotPttPromptMetadata:()=>LZ,BotPromptSuggestions:()=>FZ,BotPromptSuggestion:()=>DZ,BotPromotionMessageMetadata_BotPromotionType:()=>cx,BotPromotionMessageMetadata:()=>PZ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_PlanningStepStatus:()=>jx,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotSearchSourceProvider:()=>wx,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningStepSectionMetadata:()=>CZ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata_BotPlanningSearchSourceProvider:()=>dx,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata:()=>UZ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourceMetadata:()=>GZ,BotProgressIndicatorMetadata_BotPlanningStepMetadata:()=>HZ,BotProgressIndicatorMetadata:()=>zZ,BotPluginMetadata_SearchProvider:()=>ux,BotPluginMetadata_PluginType:()=>px,BotPluginMetadata:()=>VZ,BotModelMetadata_PremiumModelStatus:()=>lx,BotModelMetadata_ModelType:()=>hx,BotModelMetadata:()=>YZ,BotModeSelectionMetadata_BotUserSelectionMode:()=>_x,BotModeSelectionMetadata:()=>XZ,BotMetricsThreadEntryPoint:()=>tL,BotMetricsMetadata:()=>qZ,BotMetricsEntryPoint:()=>rL,BotMetadata:()=>KZ,BotMessageSharingInfo:()=>JZ,BotMessageOrigin_BotMessageOriginType:()=>fx,BotMessageOriginMetadata:()=>ZZ,BotMessageOrigin:()=>QZ,BotMemuMetadata:()=>$Z,BotMemoryMetadata:()=>eQ,BotMemoryFact:()=>u0,BotMediaMetadata_OrientationType:()=>vx,BotMediaMetadata:()=>P0,BotLinkedAccountsMetadata:()=>sQ,BotLinkedAccount_BotLinkedAccountType:()=>yx,BotLinkedAccount:()=>aQ,BotInfrastructureDiagnostics_BotBackend:()=>Tx,BotInfrastructureDiagnostics:()=>tQ,BotImagineMetadata_ImagineType:()=>Ix,BotImagineMetadata:()=>rQ,BotHistoryShareMetadata:()=>gQ,BotGroupParticipantMetadata:()=>s0,BotGroupMetadata:()=>mQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyResponseEventData:()=>iQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCardImpressionEventData:()=>oQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAImpressionEventData:()=>bQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAClickEventData:()=>nQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyAbandonEventData:()=>cQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData:()=>dQ,BotFeedbackMessage_SideBySideSurveyMetadata_SideBySideSurveyAnalyticsData:()=>jQ,BotFeedbackMessage_SideBySideSurveyMetadata:()=>wQ,BotFeedbackMessage_ReportKind:()=>Sx,BotFeedbackMessage_BotFeedbackKindMultiplePositive:()=>Wx,BotFeedbackMessage_BotFeedbackKindMultipleNegative:()=>Mx,BotFeedbackMessage_BotFeedbackKind:()=>Ex,BotFeedbackMessage:()=>uQ,BotDocumentMessageMetadata_DocumentPluginType:()=>Ax,BotDocumentMessageMetadata:()=>pQ,BotCommandMetadata:()=>lQ,BotCapabilityMetadata_BotCapabilityType:()=>Ox,BotCapabilityMetadata:()=>hQ,BotAgentMetadata:()=>_Q,BotAgentDeepLinkMetadata:()=>fQ,BotAgeCollectionMetadata_AgeCollectionType:()=>Rx,BotAgeCollectionMetadata:()=>vQ,BizIdentityInfo_VerifiedLevelValue:()=>Bx,BizIdentityInfo_HostStorageType:()=>Nx,BizIdentityInfo_ActualActorsType:()=>kx,BizIdentityInfo:()=>iB,BizAccountPayload:()=>oB,BizAccountLinkInfo_HostStorageType:()=>xx,BizAccountLinkInfo_AccountType:()=>Lx,BizAccountLinkInfo:()=>bB,AvatarUserSettings:()=>yQ,AutoDownloadSettings:()=>U0,ActionLink:()=>TQ,AccountLinkingOpaqueData:()=>nB,Account:()=>IQ,AIThreadInfo_AIThreadServerInfo:()=>SQ,AIThreadInfo_AIThreadClientInfo_AIThreadType:()=>Fx,AIThreadInfo_AIThreadClientInfo:()=>WQ,AIThreadInfo:()=>MQ,AISubscriptionUpsellMetadata:()=>EQ,AISubscriptionRequestType:()=>gL,AIRichResponseUnifiedResponse:()=>AQ,AIRichResponseTableMetadata_AIRichResponseTableRow:()=>OQ,AIRichResponseTableMetadata:()=>RQ,AIRichResponseSubMessageType:()=>mL,AIRichResponseSubMessage:()=>BQ,AIRichResponseMessageType:()=>iL,AIRichResponseMessage:()=>NQ,AIRichResponseMapMetadata_AIRichResponseMapAnnotation:()=>kQ,AIRichResponseMapMetadata:()=>xQ,AIRichResponseLatexMetadata_AIRichResponseLatexExpression:()=>LQ,AIRichResponseLatexMetadata:()=>FQ,AIRichResponseInlineImageMetadata_AIRichResponseImageAlignment:()=>Dx,AIRichResponseInlineImageMetadata:()=>DQ,AIRichResponseImageURL:()=>C0,AIRichResponseGridImageMetadata:()=>PQ,AIRichResponseDynamicMetadata_AIRichResponseDynamicMetadataType:()=>Px,AIRichResponseDynamicMetadata:()=>CQ,AIRichResponseContentItemsMetadata_ContentType:()=>Cx,AIRichResponseContentItemsMetadata_AIRichResponseReelItem:()=>UQ,AIRichResponseContentItemsMetadata_AIRichResponseContentItemMetadata:()=>GQ,AIRichResponseContentItemsMetadata:()=>HQ,AIRichResponseCodeMetadata_AIRichResponseCodeHighlightType:()=>Ux,AIRichResponseCodeMetadata_AIRichResponseCodeBlock:()=>zQ,AIRichResponseCodeMetadata:()=>VQ,AIRegenerateMetadata:()=>YQ,AIQueryFanout:()=>XQ,AIProvenance_Metadata:()=>p0,AIProvenance:()=>qQ,AIMetadataOperation:()=>KQ,AIMediaCollectionMetadata:()=>JQ,AIMediaCollectionMessage:()=>ZQ,AIHomeState_AIHomeOption_AIHomeActionType:()=>Gx,AIHomeState_AIHomeOption:()=>l0,AIHomeState:()=>cB,ADVSignedKeyIndexList:()=>RY,ADVSignedDeviceIdentityHMAC:()=>BY,ADVSignedDeviceIdentity:()=>NY,ADVKeyIndexList:()=>dB,ADVEncryptionType:()=>oL,ADVDeviceIdentity:()=>kY});function NV(){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 GY($,Q,q){for(let K=0;K<28;K=K+7){let J=$>>>K,V=!(J>>>7==0&&Q==0),P=(V?J|128:J)&255;if(q.push(P),!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,P=(V?J|128:J)&255;if(q.push(P),!V)return}q.push(Q>>>31&1)}var HY=4294967296;function gY($){let Q=$[0]==="-";if(Q)$=$.slice(1);let q=1e6,Z=0,X=0;function K(J,V){let P=Number($.slice(J,V));if(X*=q,Z=Z*q+P,Z>=HY)X=X+(Z/HY|0),Z=Z%HY}return K(-24,-18),K(-18,-12),K(-12,-6),K(-6),Q?RV(Z,X):tY(Z,X)}function BV($,Q){let q=tY($,Q),Z=q.hi&2147483648;if(Z)q=RV(q.lo,q.hi);let X=rY(q.lo,q.hi);return Z?"-"+X:X}function rY($,Q){if({lo:$,hi:Q}=pO($,Q),Q<=2097151)return String(HY*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,P=1e7;if(K>=P)J+=Math.floor(K/P),K%=P;if(J>=P)V+=Math.floor(J/P),J%=P;return V.toString()+kV(J)+kV(K)}function pO($,Q){return{lo:$>>>0,hi:Q>>>0}}function tY($,Q){return{lo:$|0,hi:Q|0}}function RV($,Q){if(Q=~Q,$)$=~$+1;else Q+=1;return tY($,Q)}var kV=($)=>{let Q=String($);return"0000000".slice(Q.length)+Q};function aY($,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 OV(){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 G0=uO();function uO(){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 AV(q),q},uParse(q){if(typeof q!="string")q=q.toString();return EV(q),q},enc(q){if(typeof q!="string")q=q.toString();return AV(q),gY(q)},uEnc(q){if(typeof q!="string")q=q.toString();return EV(q),gY(q)},dec(q,Z){return BV(q,Z)},uDec(q,Z){return rY(q,Z)}}}function AV($){if(!/^-?[0-9]+$/.test($))throw Error("invalid int64: "+$)}function EV($){if(!/^[0-9]+$/.test($))throw Error("invalid uint64: "+$)}var sY=Symbol.for("@bufbuild/protobuf/text-encoding");function eY(){if(globalThis[sY]==null){let $=new globalThis.TextEncoder,Q=new globalThis.TextDecoder,q;globalThis[sY]={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[sY]}var h0;(function($){$[$.Varint=0]="Varint",$[$.Bit64=1]="Bit64",$[$.LengthDelimited=2]="LengthDelimited",$[$.StartGroup=3]="StartGroup",$[$.EndGroup=4]="EndGroup",$[$.Bit32=5]="Bit32"})(h0||(h0={}));var wO=340282346638528860000000000000000000000,jO=-340282346638528860000000000000000000000,dO=4294967295,cO=2147483647,nO=-2147483648;class QV{constructor($=eY().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($){MV($);while($>127)this.buf.push($&127|128),$=$>>>7;return this.buf.push($),this}int32($){return $V($),aY($,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($){bO($);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($){MV($);let Q=new Uint8Array(4);return new DataView(Q.buffer).setUint32(0,$,!0),this.raw(Q)}sfixed32($){$V($);let Q=new Uint8Array(4);return new DataView(Q.buffer).setInt32(0,$,!0),this.raw(Q)}sint32($){return $V($),$=($<<1^$>>31)>>>0,aY($,this.buf),this}sfixed64($){let Q=new Uint8Array(8),q=new DataView(Q.buffer),Z=G0.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=G0.uEnc($);return q.setInt32(0,Z.lo,!0),q.setInt32(4,Z.hi,!0),this.raw(Q)}int64($){let Q=G0.enc($);return GY(Q.lo,Q.hi,this.buf),this}sint64($){let Q=G0.enc($),q=Q.hi>>31,Z=Q.lo<<1^q,X=(Q.hi<<1|Q.lo>>>31)^q;return GY(Z,X,this.buf),this}uint64($){let Q=G0.uEnc($);return GY(Q.lo,Q.hi,this.buf),this}}class ZV{constructor($,Q=eY().decodeUtf8){this.decodeUtf8=Q,this.varint64=NV,this.uint32=OV,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 h0.Varint:while(this.buf[this.pos++]&128);break;case h0.Bit64:this.pos+=4;case h0.Bit32:this.pos+=4;break;case h0.LengthDelimited:let Z=this.uint32();this.pos+=Z;break;case h0.StartGroup:for(;;){let[X,K]=this.tag();if(K===h0.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 G0.dec(...this.varint64())}uint64(){return G0.uDec(...this.varint64())}sint64(){let[$,Q]=this.varint64(),q=-($&1);return $=($>>>1|(Q&1)<<31)^q,Q=Q>>>1^q,G0.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 G0.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return G0.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 $V($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid int32: "+typeof $);if(!Number.isInteger($)||$>cO||$<nO)throw Error("invalid int32: "+$)}function MV($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid uint32: "+typeof $);if(!Number.isInteger($)||$>dO||$<0)throw Error("invalid uint32: "+$)}function bO($){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($)&&($>wO||$<jO))throw Error("invalid float32: "+$)}import{Buffer as vV}from"node:buffer";var fV=32,qV=2**fV,CY=7,UY=1<<CY,oO=UY-1,KV="utf8",iO="�",mO=55296,WV=56319,SV=57343,gO=4,rO=Math.floor(Math.log2(Number.MAX_SAFE_INTEGER)/CY)*CY;function PY($){for(let Q=0;Q<$.length;Q++){let q=$.charCodeAt(Q);if(q<mO||q>SV)continue;if(q>WV)return Q;let Z=$.charCodeAt(Q+1);if(Number.isNaN(Z)||Z<=WV||Z>SV)return Q;Q++}return-1}class w$ extends RangeError{index;codeUnit;path;constructor($,Q,q){super(`unpaired surrogate U+${Q.toString(16).toUpperCase().padStart(gO,"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 _V=($,Q,q)=>({low:$>>>0,high:Q|0,unsigned:q}),IV=($,Q)=>{let q=(Q>>>0)*qV+($>>>0);return q<=Number.MAX_SAFE_INTEGER?q:_V($,Q,!0)},JV=($,Q)=>{let q=(Q|0)*qV+($>>>0);return q>=Number.MIN_SAFE_INTEGER&&q<=Number.MAX_SAFE_INTEGER?q:_V($,Q,!1)},e$=($)=>{let Q=BigInt($.low>>>0);return($.unsigned?BigInt($.high>>>0):BigInt($.high|0))*BigInt(qV)+Q},TV=($)=>typeof $==="number"&&Number.isInteger($)&&$>=-2147483648&&$<=4294967295,DY=($)=>typeof $==="object"&&$!==null&&typeof $.unsigned==="boolean"&&TV($.low)&&TV($.high),tO=($)=>typeof $==="string"?JSON.stringify($):typeof $==="number"||typeof $==="bigint"?String($):typeof $,s$=($,Q)=>Error(`invalid ${$}: ${tO(Q)}`);function hV($,Q){let q=typeof $;if(q==="number"||q==="bigint")return $;if(q==="string"&&$.trim()!=="")return $;throw s$(Q,$)}var aO=/^\s*[+-]?Infinity\s*$/,sO=/^\s*NaN\s*$/;function yV($,Q){if(DY($))return Number(e$($));let q=hV($,Q);if(typeof q==="number")return q;let Z=Number(q);if(Number.isNaN(Z)){if(!sO.test(String(q)))throw s$(Q,$)}else if(!Number.isFinite(Z)&&!aO.test(String(q)))throw s$(Q,$);return Z}var eO=/^\s*([+-]?)(\d*)(?:\.(\d*))?(?:[eE]([+-]?\d+))?\s*$/,$A=40;function QA($){let Q=eO.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,P=J.slice(V),D=Z.length+(K?Number(K):0)-V;if(D<=0||D>$A)return;let O;if(D>=P.length)O=P+"0".repeat(D-P.length);else{if(!/^0*$/.test(P.slice(D)))return;O=P.slice(0,D)}let W=BigInt(O);return q==="-"?-W:W}function u$($,Q){if(DY($))return e$($);let q=hV($,Q);if(typeof q==="bigint")return q;if(typeof q==="number"){if(!Number.isInteger(q))throw s$(Q,$);return q}try{return BigInt(q)}catch{let Z=QA(q);if(Z===void 0)throw s$(Q,$);return Z}}function a$($,Q){let q=u$($,Q);return typeof q==="bigint"?Number(q):q}class H extends QV{string($){if(!$.isWellFormed()){let Q=PY($);throw new w$(Q,$.charCodeAt(Q))}return super.string($)}uint32($){return super.uint32(typeof $==="number"?$:a$($,"uint32"))}int32($){return super.int32(typeof $==="number"?$:a$($,"int32"))}sint32($){return super.sint32(typeof $==="number"?$:a$($,"sint32"))}fixed32($){return super.fixed32(typeof $==="number"?$:a$($,"fixed32"))}sfixed32($){return super.sfixed32(typeof $==="number"?$:a$($,"sfixed32"))}float($){return super.float(typeof $==="number"?$:yV($,"float"))}double($){return super.double(typeof $==="number"?$:yV($,"double"))}int64($){return super.int64(u$($,"int64"))}uint64($){return super.uint64(u$($,"uint64"))}sint64($){return super.sint64(u$($,"sint64"))}fixed64($){return super.fixed64(u$($,"fixed64"))}sfixed64($){return super.sfixed64(u$($,"sfixed64"))}}class Y extends ZV{utf8Buffer;constructor($){super($);this.utf8Buffer=vV.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(KV,q,this.pos)}bool(){let $=this.buf[this.pos++];if(($&UY)===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<=rO;Z+=CY){let X=this.buf[this.pos++];if(Q+=(X&oO)*q,(X&UY)===0){if(this.assertBounds(),Q<=Number.MAX_SAFE_INTEGER)return Q;break}q*=UY}this.pos=$;return}uint64Value(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[Q,q]=this.varint64();return IV(Q,q)}int64Value(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[Q,q]=this.varint64();return JV(Q,q)}sint64Value(){let[$,Q]=this.varint64(),q=-($&1);return $=($>>>1|(Q&1)<<fV-1)^q,Q=Q>>>1^q,JV($,Q)}fixed64Value(){return IV(this.sfixed32(),this.sfixed32())}sfixed64Value(){return JV(this.sfixed32(),this.sfixed32())}}class $Q 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(KV,q,this.pos);if(Z.includes(iO)&&!this.decodedExactly(Z,q,this.pos))this.invalidUtf8Fields++;return Z}decodedExactly($,Q,q){let Z=vV.from($,KV);return this.utf8Buffer.compare(Z,0,Z.length,Q,q)===0}}var ZA="whatsapp",oL;((X)=>{X[X.E2EE=0]="E2EE";X[X.HOSTED=1]="HOSTED";X[X.NON_E2EE=2]="NON_E2EE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oL||={});var iL;((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"})(iL||={});var mL;((W)=>{W[W.AI_RICH_RESPONSE_UNKNOWN=0]="AI_RICH_RESPONSE_UNKNOWN";W[W.AI_RICH_RESPONSE_GRID_IMAGE=1]="AI_RICH_RESPONSE_GRID_IMAGE";W[W.AI_RICH_RESPONSE_TEXT=2]="AI_RICH_RESPONSE_TEXT";W[W.AI_RICH_RESPONSE_INLINE_IMAGE=3]="AI_RICH_RESPONSE_INLINE_IMAGE";W[W.AI_RICH_RESPONSE_TABLE=4]="AI_RICH_RESPONSE_TABLE";W[W.AI_RICH_RESPONSE_CODE=5]="AI_RICH_RESPONSE_CODE";W[W.AI_RICH_RESPONSE_DYNAMIC=6]="AI_RICH_RESPONSE_DYNAMIC";W[W.AI_RICH_RESPONSE_MAP=7]="AI_RICH_RESPONSE_MAP";W[W.AI_RICH_RESPONSE_LATEX=8]="AI_RICH_RESPONSE_LATEX";W[W.AI_RICH_RESPONSE_CONTENT_ITEMS=9]="AI_RICH_RESPONSE_CONTENT_ITEMS";W[W.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mL||={});var gL;((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"})(gL||={});var rL;((M)=>{M[M.UNDEFINED_ENTRY_POINT=0]="UNDEFINED_ENTRY_POINT";M[M.FAVICON=1]="FAVICON";M[M.CHATLIST=2]="CHATLIST";M[M.AISEARCH_NULL_STATE_PAPER_PLANE=3]="AISEARCH_NULL_STATE_PAPER_PLANE";M[M.AISEARCH_NULL_STATE_SUGGESTION=4]="AISEARCH_NULL_STATE_SUGGESTION";M[M.AISEARCH_TYPE_AHEAD_SUGGESTION=5]="AISEARCH_TYPE_AHEAD_SUGGESTION";M[M.AISEARCH_TYPE_AHEAD_PAPER_PLANE=6]="AISEARCH_TYPE_AHEAD_PAPER_PLANE";M[M.AISEARCH_TYPE_AHEAD_RESULT_CHATLIST=7]="AISEARCH_TYPE_AHEAD_RESULT_CHATLIST";M[M.AISEARCH_TYPE_AHEAD_RESULT_MESSAGES=8]="AISEARCH_TYPE_AHEAD_RESULT_MESSAGES";M[M.AIVOICE_SEARCH_BAR=9]="AIVOICE_SEARCH_BAR";M[M.AIVOICE_FAVICON=10]="AIVOICE_FAVICON";M[M.AISTUDIO=11]="AISTUDIO";M[M.DEEPLINK=12]="DEEPLINK";M[M.NOTIFICATION=13]="NOTIFICATION";M[M.PROFILE_MESSAGE_BUTTON=14]="PROFILE_MESSAGE_BUTTON";M[M.FORWARD=15]="FORWARD";M[M.APP_SHORTCUT=16]="APP_SHORTCUT";M[M.FF_FAMILY=17]="FF_FAMILY";M[M.AI_TAB=18]="AI_TAB";M[M.AI_HOME=19]="AI_HOME";M[M.AI_DEEPLINK_IMMERSIVE=20]="AI_DEEPLINK_IMMERSIVE";M[M.AI_DEEPLINK=21]="AI_DEEPLINK";M[M.META_AI_CHAT_SHORTCUT_AI_STUDIO=22]="META_AI_CHAT_SHORTCUT_AI_STUDIO";M[M.UGC_CHAT_SHORTCUT_AI_STUDIO=23]="UGC_CHAT_SHORTCUT_AI_STUDIO";M[M.NEW_CHAT_AI_STUDIO=24]="NEW_CHAT_AI_STUDIO";M[M.AIVOICE_FAVICON_CALL_HISTORY=25]="AIVOICE_FAVICON_CALL_HISTORY";M[M.ASK_META_AI_CONTEXT_MENU=26]="ASK_META_AI_CONTEXT_MENU";M[M.ASK_META_AI_CONTEXT_MENU_1ON1=27]="ASK_META_AI_CONTEXT_MENU_1ON1";M[M.ASK_META_AI_CONTEXT_MENU_GROUP=28]="ASK_META_AI_CONTEXT_MENU_GROUP";M[M.INVOKE_META_AI_1ON1=29]="INVOKE_META_AI_1ON1";M[M.INVOKE_META_AI_GROUP=30]="INVOKE_META_AI_GROUP";M[M.META_AI_FORWARD=31]="META_AI_FORWARD";M[M.NEW_CHAT_AI_CONTACT=32]="NEW_CHAT_AI_CONTACT";M[M.MESSAGE_QUICK_ACTION_1_ON_1_CHAT=33]="MESSAGE_QUICK_ACTION_1_ON_1_CHAT";M[M.MESSAGE_QUICK_ACTION_GROUP_CHAT=34]="MESSAGE_QUICK_ACTION_GROUP_CHAT";M[M.ATTACHMENT_TRAY_1_ON_1_CHAT=35]="ATTACHMENT_TRAY_1_ON_1_CHAT";M[M.ATTACHMENT_TRAY_GROUP_CHAT=36]="ATTACHMENT_TRAY_GROUP_CHAT";M[M.ASK_META_AI_MEDIA_VIEWER_1ON1=37]="ASK_META_AI_MEDIA_VIEWER_1ON1";M[M.ASK_META_AI_MEDIA_VIEWER_GROUP=38]="ASK_META_AI_MEDIA_VIEWER_GROUP";M[M.MEDIA_PICKER_1_ON_1_CHAT=39]="MEDIA_PICKER_1_ON_1_CHAT";M[M.MEDIA_PICKER_GROUP_CHAT=40]="MEDIA_PICKER_GROUP_CHAT";M[M.ASK_META_AI_NO_SEARCH_RESULTS=41]="ASK_META_AI_NO_SEARCH_RESULTS";M[M.META_AI_SETTINGS=45]="META_AI_SETTINGS";M[M.WEB_INTRO_PANEL=46]="WEB_INTRO_PANEL";M[M.WEB_NAVIGATION_BAR=47]="WEB_NAVIGATION_BAR";M[M.GROUP_MEMBER=54]="GROUP_MEMBER";M[M.CHATLIST_SEARCH=55]="CHATLIST_SEARCH";M[M.NEW_CHAT_LIST=56]="NEW_CHAT_LIST";M[M.CONTACTS_TAB=57]="CONTACTS_TAB";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rL||={});var tL;((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"})(tL||={});var aL;((D)=>{D[D.NONE=0]="NONE";D[D.NULL_STATE=1]="NULL_STATE";D[D.TYPEAHEAD=2]="TYPEAHEAD";D[D.USER_INPUT=3]="USER_INPUT";D[D.EMU_FLASH=4]="EMU_FLASH";D[D.EMU_FLASH_FOLLOWUP=5]="EMU_FLASH_FOLLOWUP";D[D.VOICE=6]="VOICE";D[D.AI_HOME_SESSION=7]="AI_HOME_SESSION";D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aL||={});var sL;((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"})(sL||={});var eL;((X)=>{X[X.SMALL=1]="SMALL";X[X.MEDIUM=2]="MEDIUM";X[X.LARGE=3]="LARGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eL||={});var $x;((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"})($x||={});var Qx;((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"})(Qx||={});var Zx;((X)=>{X[X.PLACEHOLDER=0]="PLACEHOLDER";X[X.NO_PLACEHOLDER=1]="NO_PLACEHOLDER";X[X.IGNORE=2]="IGNORE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zx||={});var Jx;((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"})(Jx||={});var Kx;((q)=>{q[q.PROFILE=0]="PROFILE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Kx||={});var qx;((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"})(qx||={});var Xx;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.OFF=1]="OFF";X[X.ON=2]="ON";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Xx||={});var Yx;((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.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"})(Yx||={});var Vx;((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"})(Vx||={});var zx;((Z)=>{Z[Z.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";Z[Z.NY_AI_SAFETY_DISCLAIMER=1]="NY_AI_SAFETY_DISCLAIMER";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zx||={});var Hx;((Z)=>{Z[Z.WEBVIEW=0]="WEBVIEW";Z[Z.SYSTEM=1]="SYSTEM";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Hx||={});var Gx;((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"})(Gx||={});var Ux;((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"})(Ux||={});var Cx;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.CAROUSEL=1]="CAROUSEL";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Cx||={});var Px;((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"})(Px||={});var Dx;((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"})(Dx||={});var Fx;((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"})(Fx||={});var Lx;((q)=>{q[q.ENTERPRISE=0]="ENTERPRISE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Lx||={});var xx;((Z)=>{Z[Z.ON_PREMISE=0]="ON_PREMISE";Z[Z.FACEBOOK=1]="FACEBOOK";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xx||={});var kx;((Z)=>{Z[Z.SELF=0]="SELF";Z[Z.BSP=1]="BSP";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kx||={});var Nx;((Z)=>{Z[Z.ON_PREMISE=0]="ON_PREMISE";Z[Z.FACEBOOK=1]="FACEBOOK";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Nx||={});var Bx;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.LOW=1]="LOW";X[X.HIGH=2]="HIGH";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Bx||={});var Rx;((Z)=>{Z[Z.O18_BINARY=0]="O18_BINARY";Z[Z.WAFFLE=1]="WAFFLE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rx||={});var Ox;((B)=>{B[B.UNKNOWN=0]="UNKNOWN";B[B.PROGRESS_INDICATOR=1]="PROGRESS_INDICATOR";B[B.RICH_RESPONSE_HEADING=2]="RICH_RESPONSE_HEADING";B[B.RICH_RESPONSE_NESTED_LIST=3]="RICH_RESPONSE_NESTED_LIST";B[B.AI_MEMORY=4]="AI_MEMORY";B[B.RICH_RESPONSE_THREAD_SURFING=5]="RICH_RESPONSE_THREAD_SURFING";B[B.RICH_RESPONSE_TABLE=6]="RICH_RESPONSE_TABLE";B[B.RICH_RESPONSE_CODE=7]="RICH_RESPONSE_CODE";B[B.RICH_RESPONSE_STRUCTURED_RESPONSE=8]="RICH_RESPONSE_STRUCTURED_RESPONSE";B[B.RICH_RESPONSE_INLINE_IMAGE=9]="RICH_RESPONSE_INLINE_IMAGE";B[B.WA_IG_1P_PLUGIN_RANKING_CONTROL=10]="WA_IG_1P_PLUGIN_RANKING_CONTROL";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11]="WA_IG_1P_PLUGIN_RANKING_UPDATE_1";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12]="WA_IG_1P_PLUGIN_RANKING_UPDATE_2";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_3=13]="WA_IG_1P_PLUGIN_RANKING_UPDATE_3";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_4=14]="WA_IG_1P_PLUGIN_RANKING_UPDATE_4";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_5=15]="WA_IG_1P_PLUGIN_RANKING_UPDATE_5";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_6=16]="WA_IG_1P_PLUGIN_RANKING_UPDATE_6";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_7=17]="WA_IG_1P_PLUGIN_RANKING_UPDATE_7";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18]="WA_IG_1P_PLUGIN_RANKING_UPDATE_8";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19]="WA_IG_1P_PLUGIN_RANKING_UPDATE_9";B[B.WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20]="WA_IG_1P_PLUGIN_RANKING_UPDATE_10";B[B.RICH_RESPONSE_SUB_HEADING=21]="RICH_RESPONSE_SUB_HEADING";B[B.RICH_RESPONSE_GRID_IMAGE=22]="RICH_RESPONSE_GRID_IMAGE";B[B.AI_STUDIO_UGC_MEMORY=23]="AI_STUDIO_UGC_MEMORY";B[B.RICH_RESPONSE_LATEX=24]="RICH_RESPONSE_LATEX";B[B.RICH_RESPONSE_MAPS=25]="RICH_RESPONSE_MAPS";B[B.RICH_RESPONSE_INLINE_REELS=26]="RICH_RESPONSE_INLINE_REELS";B[B.AGENTIC_PLANNING=27]="AGENTIC_PLANNING";B[B.ACCOUNT_LINKING=28]="ACCOUNT_LINKING";B[B.STREAMING_DISAGGREGATION=29]="STREAMING_DISAGGREGATION";B[B.RICH_RESPONSE_GRID_IMAGE_3P=30]="RICH_RESPONSE_GRID_IMAGE_3P";B[B.RICH_RESPONSE_LATEX_INLINE=31]="RICH_RESPONSE_LATEX_INLINE";B[B.QUERY_PLAN=32]="QUERY_PLAN";B[B.PROACTIVE_MESSAGE=33]="PROACTIVE_MESSAGE";B[B.RICH_RESPONSE_UNIFIED_RESPONSE=34]="RICH_RESPONSE_UNIFIED_RESPONSE";B[B.PROMOTION_MESSAGE=35]="PROMOTION_MESSAGE";B[B.SIMPLIFIED_PROFILE_PAGE=36]="SIMPLIFIED_PROFILE_PAGE";B[B.RICH_RESPONSE_SOURCES_IN_MESSAGE=37]="RICH_RESPONSE_SOURCES_IN_MESSAGE";B[B.RICH_RESPONSE_SIDE_BY_SIDE_SURVEY=38]="RICH_RESPONSE_SIDE_BY_SIDE_SURVEY";B[B.RICH_RESPONSE_UNIFIED_TEXT_COMPONENT=39]="RICH_RESPONSE_UNIFIED_TEXT_COMPONENT";B[B.AI_SHARED_MEMORY=40]="AI_SHARED_MEMORY";B[B.RICH_RESPONSE_UNIFIED_SOURCES=41]="RICH_RESPONSE_UNIFIED_SOURCES";B[B.RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS=42]="RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS";B[B.RICH_RESPONSE_UR_INLINE_REELS_ENABLED=43]="RICH_RESPONSE_UR_INLINE_REELS_ENABLED";B[B.RICH_RESPONSE_UR_MEDIA_GRID_ENABLED=44]="RICH_RESPONSE_UR_MEDIA_GRID_ENABLED";B[B.RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER=45]="RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER";B[B.RICH_RESPONSE_IN_APP_SURVEY=46]="RICH_RESPONSE_IN_APP_SURVEY";B[B.AI_RESPONSE_MODEL_BRANDING=47]="AI_RESPONSE_MODEL_BRANDING";B[B.SESSION_TRANSPARENCY_SYSTEM_MESSAGE=48]="SESSION_TRANSPARENCY_SYSTEM_MESSAGE";B[B.RICH_RESPONSE_UR_REASONING=49]="RICH_RESPONSE_UR_REASONING";B[B.RICH_RESPONSE_UR_ZEITGEIST_CITATIONS=50]="RICH_RESPONSE_UR_ZEITGEIST_CITATIONS";B[B.RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL=51]="RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL";B[B.AI_IMAGINE_LOADING_INDICATOR=52]="AI_IMAGINE_LOADING_INDICATOR";B[B.RICH_RESPONSE_UR_IMAGINE=53]="RICH_RESPONSE_UR_IMAGINE";B[B.AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR=54]="AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR";B[B.RICH_RESPONSE_UR_BLOKS_ENABLED=55]="RICH_RESPONSE_UR_BLOKS_ENABLED";B[B.RICH_RESPONSE_INLINE_LINKS_ENABLED=56]="RICH_RESPONSE_INLINE_LINKS_ENABLED";B[B.RICH_RESPONSE_UR_IMAGINE_VIDEO=57]="RICH_RESPONSE_UR_IMAGINE_VIDEO";B[B.JSON_PATCH_STREAMING=58]="JSON_PATCH_STREAMING";B[B.AI_TAB_FORCE_CLIPPY=59]="AI_TAB_FORCE_CLIPPY";B[B.UNIFIED_RESPONSE_EMBEDDED_SCREENS=60]="UNIFIED_RESPONSE_EMBEDDED_SCREENS";B[B.AI_SUBSCRIPTION_ENABLED=61]="AI_SUBSCRIPTION_ENABLED";B[B.UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED=62]="UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED";B[B.UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED=63]="UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED";B[B.AI_RICH_RESPONSE_MAPS_V2_ENABLED=64]="AI_RICH_RESPONSE_MAPS_V2_ENABLED";B[B.AI_SUBSCRIPTION_METERING_ENABLED=65]="AI_SUBSCRIPTION_METERING_ENABLED";B[B.RICH_RESPONSE_SPORTS_WIDGET_ENABLED=66]="RICH_RESPONSE_SPORTS_WIDGET_ENABLED";B[B.AI_RICH_RESPONSE_ARTIFACTS_ENABLED=67]="AI_RICH_RESPONSE_ARTIFACTS_ENABLED";B[B.AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED=68]="AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED";B[B.AI_RICH_RESPONSE_REMINDERS_ENABLED=69]="AI_RICH_RESPONSE_REMINDERS_ENABLED";B[B.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ox||={});var Ax;((Z)=>{Z[Z.TEXT_EXTRACTION=0]="TEXT_EXTRACTION";Z[Z.OCR_AND_IMAGES=1]="OCR_AND_IMAGES";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ax||={});var Ex;((A)=>{A[A.BOT_FEEDBACK_POSITIVE=0]="BOT_FEEDBACK_POSITIVE";A[A.BOT_FEEDBACK_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_NEGATIVE_GENERIC";A[A.BOT_FEEDBACK_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_NEGATIVE_HELPFUL";A[A.BOT_FEEDBACK_NEGATIVE_INTERESTING=3]="BOT_FEEDBACK_NEGATIVE_INTERESTING";A[A.BOT_FEEDBACK_NEGATIVE_ACCURATE=4]="BOT_FEEDBACK_NEGATIVE_ACCURATE";A[A.BOT_FEEDBACK_NEGATIVE_SAFE=5]="BOT_FEEDBACK_NEGATIVE_SAFE";A[A.BOT_FEEDBACK_NEGATIVE_OTHER=6]="BOT_FEEDBACK_NEGATIVE_OTHER";A[A.BOT_FEEDBACK_NEGATIVE_REFUSED=7]="BOT_FEEDBACK_NEGATIVE_REFUSED";A[A.BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING=8]="BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING";A[A.BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT=9]="BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT";A[A.BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10]="BOT_FEEDBACK_NEGATIVE_PERSONALIZED";A[A.BOT_FEEDBACK_NEGATIVE_CLARITY=11]="BOT_FEEDBACK_NEGATIVE_CLARITY";A[A.BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12]="BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON";A[A.BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY=13]="BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY";A[A.BOT_FEEDBACK_NEGATIVE=14]="BOT_FEEDBACK_NEGATIVE";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ex||={});var Mx;((O)=>{O[O.BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC";O[O.BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL";O[O.BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING=4]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING";O[O.BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE=8]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE";O[O.BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE=16]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE";O[O.BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER=32]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER";O[O.BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED=64]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED";O[O.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING=128]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING";O[O.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT=256]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Mx||={});var Wx;((q)=>{q[q.BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Wx||={});var Sx;((Z)=>{Z[Z.NONE=0]="NONE";Z[Z.GENERIC=1]="GENERIC";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Sx||={});var Ix;((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"})(Ix||={});var Tx;((Z)=>{Z[Z.AAPI=0]="AAPI";Z[Z.CLIPPY=1]="CLIPPY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Tx||={});var yx;((q)=>{q[q.BOT_LINKED_ACCOUNT_TYPE_1P=0]="BOT_LINKED_ACCOUNT_TYPE_1P";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yx||={});var vx;((X)=>{X[X.CENTER=1]="CENTER";X[X.LEFT=2]="LEFT";X[X.RIGHT=3]="RIGHT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vx||={});var fx;((q)=>{q[q.BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED=0]="BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fx||={});var _x;((Z)=>{Z[Z.DEFAULT_MODE=0]="DEFAULT_MODE";Z[Z.THINK_HARD_MODE=1]="THINK_HARD_MODE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_x||={});var hx;((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"})(hx||={});var lx;((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"})(lx||={});var px;((X)=>{X[X.UNKNOWN_PLUGIN=0]="UNKNOWN_PLUGIN";X[X.REELS=1]="REELS";X[X.SEARCH=2]="SEARCH";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(px||={});var ux;((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"})(ux||={});var wx;((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"})(wx||={});var jx;((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"})(jx||={});var dx;((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"})(dx||={});var cx;((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"})(cx||={});var nx;((Z)=>{Z[Z.UNKNOWN_FEATURE=0]="UNKNOWN_FEATURE";Z[Z.REASONING_FEATURE=1]="REASONING_FEATURE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nx||={});var bx;((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"})(bx||={});var ox;((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"})(ox||={});var ix;((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"})(ix||={});var mx;((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"})(mx||={});var gx;((f)=>{f[f.CONNECTED=0]="CONNECTED";f[f.REJECTED=1]="REJECTED";f[f.CANCELLED=2]="CANCELLED";f[f.ACCEPTEDELSEWHERE=3]="ACCEPTEDELSEWHERE";f[f.MISSED=4]="MISSED";f[f.INVALID=5]="INVALID";f[f.UNAVAILABLE=6]="UNAVAILABLE";f[f.UPCOMING=7]="UPCOMING";f[f.FAILED=8]="FAILED";f[f.ABANDONED=9]="ABANDONED";f[f.ONGOING=10]="ONGOING";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gx||={});var rx;((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"})(rx||={});var tx;((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"})(tx||={});var ax;((X)=>{X[X.NONE=0]="NONE";X[X.IMAGE=1]="IMAGE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ax||={});var sx;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.GUEST=1]="GUEST";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sx||={});var ex;((P)=>{P[P.PUSH=0]="PUSH";P[P.USER_ACTIVATED=1]="USER_ACTIVATED";P[P.SCHEDULED=2]="SCHEDULED";P[P.ERROR_RECONNECT=3]="ERROR_RECONNECT";P[P.NETWORK_SWITCH=4]="NETWORK_SWITCH";P[P.PING_RECONNECT=5]="PING_RECONNECT";P[P.UNKNOWN=6]="UNKNOWN";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ex||={});var $k;((A)=>{A[A.CELLULAR_UNKNOWN=0]="CELLULAR_UNKNOWN";A[A.WIFI_UNKNOWN=1]="WIFI_UNKNOWN";A[A.CELLULAR_EDGE=100]="CELLULAR_EDGE";A[A.CELLULAR_IDEN=101]="CELLULAR_IDEN";A[A.CELLULAR_UMTS=102]="CELLULAR_UMTS";A[A.CELLULAR_EVDO=103]="CELLULAR_EVDO";A[A.CELLULAR_GPRS=104]="CELLULAR_GPRS";A[A.CELLULAR_HSDPA=105]="CELLULAR_HSDPA";A[A.CELLULAR_HSUPA=106]="CELLULAR_HSUPA";A[A.CELLULAR_HSPA=107]="CELLULAR_HSPA";A[A.CELLULAR_CDMA=108]="CELLULAR_CDMA";A[A.CELLULAR_1XRTT=109]="CELLULAR_1XRTT";A[A.CELLULAR_EHRPD=110]="CELLULAR_EHRPD";A[A.CELLULAR_LTE=111]="CELLULAR_LTE";A[A.CELLULAR_HSPAP=112]="CELLULAR_HSPAP";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})($k||={});var Qk;((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"})(Qk||={});var Zk;((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"})(Zk||={});var Jk;((Z)=>{Z[Z.OFF=0]="OFF";Z[Z.STANDARD=1]="STANDARD";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jk||={});var Kk;((D)=>{D[D.SYSTEM=0]="SYSTEM";D[D.GOOGLE=1]="GOOGLE";D[D.HARDCODED=2]="HARDCODED";D[D.OVERRIDE=3]="OVERRIDE";D[D.FALLBACK=4]="FALLBACK";D[D.MNS=5]="MNS";D[D.MNS_SECONDARY=6]="MNS_SECONDARY";D[D.SOCKS_PROXY=7]="SOCKS_PROXY";D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Kk||={});var qk;((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"})(qk||={});var Xk;((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"})(Xk||={});var Yk;((y)=>{y[y.ANDROID=0]="ANDROID";y[y.IOS=1]="IOS";y[y.WINDOWS_PHONE=2]="WINDOWS_PHONE";y[y.BLACKBERRY=3]="BLACKBERRY";y[y.BLACKBERRYX=4]="BLACKBERRYX";y[y.S40=5]="S40";y[y.S60=6]="S60";y[y.PYTHON_CLIENT=7]="PYTHON_CLIENT";y[y.TIZEN=8]="TIZEN";y[y.ENTERPRISE=9]="ENTERPRISE";y[y.SMB_ANDROID=10]="SMB_ANDROID";y[y.KAIOS=11]="KAIOS";y[y.SMB_IOS=12]="SMB_IOS";y[y.WINDOWS=13]="WINDOWS";y[y.WEB=14]="WEB";y[y.PORTAL=15]="PORTAL";y[y.GREEN_ANDROID=16]="GREEN_ANDROID";y[y.GREEN_IPHONE=17]="GREEN_IPHONE";y[y.BLUE_ANDROID=18]="BLUE_ANDROID";y[y.BLUE_IPHONE=19]="BLUE_IPHONE";y[y.FBLITE_ANDROID=20]="FBLITE_ANDROID";y[y.MLITE_ANDROID=21]="MLITE_ANDROID";y[y.IGLITE_ANDROID=22]="IGLITE_ANDROID";y[y.PAGE=23]="PAGE";y[y.MACOS=24]="MACOS";y[y.OCULUS_MSG=25]="OCULUS_MSG";y[y.OCULUS_CALL=26]="OCULUS_CALL";y[y.MILAN=27]="MILAN";y[y.CAPI=28]="CAPI";y[y.WEAROS=29]="WEAROS";y[y.ARDEVICE=30]="ARDEVICE";y[y.VRDEVICE=31]="VRDEVICE";y[y.BLUE_WEB=32]="BLUE_WEB";y[y.IPAD=33]="IPAD";y[y.TEST=34]="TEST";y[y.SMART_GLASSES=35]="SMART_GLASSES";y[y.BLUE_VR=36]="BLUE_VR";y[y.AR_WRIST=37]="AR_WRIST";y[y.WAIL=38]="WAIL";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Yk||={});var Vk;((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"})(Vk||={});var zk;((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"})(zk||={});var Hk;((Z)=>{Z[Z.NONE=0]="NONE";Z[Z.VIDEO=1]="VIDEO";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Hk||={});var Gk;((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"})(Gk||={});var Uk;((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"})(Uk||={});var Ck;((O)=>{O[O.NOT_PAIRED_MEDIA=0]="NOT_PAIRED_MEDIA";O[O.SD_VIDEO_PARENT=1]="SD_VIDEO_PARENT";O[O.HD_VIDEO_CHILD=2]="HD_VIDEO_CHILD";O[O.SD_IMAGE_PARENT=3]="SD_IMAGE_PARENT";O[O.HD_IMAGE_CHILD=4]="HD_IMAGE_CHILD";O[O.MOTION_PHOTO_PARENT=5]="MOTION_PHOTO_PARENT";O[O.MOTION_PHOTO_CHILD=6]="MOTION_PHOTO_CHILD";O[O.HEVC_VIDEO_PARENT=7]="HEVC_VIDEO_PARENT";O[O.HEVC_VIDEO_CHILD=8]="HEVC_VIDEO_CHILD";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ck||={});var Pk;((Z)=>{Z[Z.EXPLICIT=0]="EXPLICIT";Z[Z.AUTO=1]="AUTO";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Pk||={});var Dk;((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"})(Dk||={});var Fk;((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"})(Fk||={});var Lk;((X)=>{X[X.NONE=0]="NONE";X[X.IMAGE=1]="IMAGE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Lk||={});var xk;((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"})(xk||={});var kk;((S)=>{S[S.UNKNOWN=0]="UNKNOWN";S[S.VIEW_BUSINESS=1]="VIEW_BUSINESS";S[S.CHAT=2]="CHAT";S[S.CALL=3]="CALL";S[S.CATALOG=4]="CATALOG";S[S.CHANNEL=5]="CHANNEL";S[S.BOOK_APPOINTMENT=6]="BOOK_APPOINTMENT";S[S.OFFERS=7]="OFFERS";S[S.BESTSELLERS=8]="BESTSELLERS";S[S.MENU=9]="MENU";S[S.ABOUT=10]="ABOUT";S[S.SHOP=11]="SHOP";S[S.ORDER=12]="ORDER";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kk||={});var Nk;((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"})(Nk||={});var Bk;((Z)=>{Z[Z.CTWA=0]="CTWA";Z[Z.CAWC=1]="CAWC";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Bk||={});var Rk;((X)=>{X[X.NONE=0]="NONE";X[X.IMAGE=1]="IMAGE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rk||={});var Ok;((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"})(Ok||={});var Ak;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.CLOSE_FRIENDS=1]="CLOSE_FRIENDS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ak||={});var Ek;((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"})(Ek||={});var Mk;((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"})(Mk||={});var Wk;((X)=>{X[X.NONE=0]="NONE";X[X.MINIMAL=1]="MINIMAL";X[X.FULL=2]="FULL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Wk||={});var Sk;((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"})(Sk||={});var Ik;((X)=>{X[X.NONE=0]="NONE";X[X.INFRA=1]="INFRA";X[X.FULL=2]="FULL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ik||={});var Tk;((h)=>{h[h.UNKNOWN=0]="UNKNOWN";h[h.CHROME=1]="CHROME";h[h.FIREFOX=2]="FIREFOX";h[h.IE=3]="IE";h[h.OPERA=4]="OPERA";h[h.SAFARI=5]="SAFARI";h[h.EDGE=6]="EDGE";h[h.DESKTOP=7]="DESKTOP";h[h.IPAD=8]="IPAD";h[h.ANDROID_TABLET=9]="ANDROID_TABLET";h[h.OHANA=10]="OHANA";h[h.ALOHA=11]="ALOHA";h[h.CATALINA=12]="CATALINA";h[h.TCL_TV=13]="TCL_TV";h[h.IOS_PHONE=14]="IOS_PHONE";h[h.IOS_CATALYST=15]="IOS_CATALYST";h[h.ANDROID_PHONE=16]="ANDROID_PHONE";h[h.ANDROID_AMBIGUOUS=17]="ANDROID_AMBIGUOUS";h[h.WEAR_OS=18]="WEAR_OS";h[h.AR_WRIST=19]="AR_WRIST";h[h.AR_DEVICE=20]="AR_DEVICE";h[h.UWP=21]="UWP";h[h.VR=22]="VR";h[h.CLOUD_API=23]="CLOUD_API";h[h.SMARTGLASSES=24]="SMARTGLASSES";h[h.WAIL=25]="WAIL";h[h.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Tk||={});var yk;((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"})(yk||={});var vk;((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"})(vk||={});var fk;((Z)=>{Z[Z.E2EE=0]="E2EE";Z[Z.HOSTED=1]="HOSTED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fk||={});var _k;((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"})(_k||={});var hk;((X)=>{X[X.REGULAR=0]="REGULAR";X[X.ADMIN=1]="ADMIN";X[X.SUPERADMIN=2]="SUPERADMIN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hk||={});var lk;((W)=>{W[W.HANDSHAKE_PQ_MODE_UNKNOWN=0]="HANDSHAKE_PQ_MODE_UNKNOWN";W[W.XXKEM=1]="XXKEM";W[W.XXKEM_FS=2]="XXKEM_FS";W[W.XXKEM_EPH=9]="XXKEM_EPH";W[W.WA_CLASSICAL=3]="WA_CLASSICAL";W[W.WA_PQ=4]="WA_PQ";W[W.IKKEM=5]="IKKEM";W[W.IKKEM_FS=6]="IKKEM_FS";W[W.XXKEM_2=7]="XXKEM_2";W[W.IKKEM_2=8]="IKKEM_2";W[W.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lk||={});var pk;((Z)=>{Z[Z.IN_WAITLIST=0]="IN_WAITLIST";Z[Z.AI_AVAILABLE=1]="AI_AVAILABLE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pk||={});var uk;((P)=>{P[P.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";P[P.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";P[P.FULL=2]="FULL";P[P.RECENT=3]="RECENT";P[P.PUSH_NAME=4]="PUSH_NAME";P[P.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";P[P.ON_DEMAND=6]="ON_DEMAND";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uk||={});var wk;((X)=>{X[X.FULL=1]="FULL";X[X.TALL=2]="TALL";X[X.COMPACT=3]="COMPACT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wk||={});var jk;((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"})(jk||={});var dk;((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"})(dk||={});var ck;((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"})(ck||={});var nk;((O)=>{O[O.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";O[O.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";O[O.FULL=2]="FULL";O[O.RECENT=3]="RECENT";O[O.PUSH_NAME=4]="PUSH_NAME";O[O.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";O[O.ON_DEMAND=6]="ON_DEMAND";O[O.NO_HISTORY=7]="NO_HISTORY";O[O.MESSAGE_ACCESS_STATUS=8]="MESSAGE_ACCESS_STATUS";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nk||={});var bk;((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"})(bk||={});var ok;((A)=>{A[A.UPLOAD_STICKER=0]="UPLOAD_STICKER";A[A.SEND_RECENT_STICKER_BOOTSTRAP=1]="SEND_RECENT_STICKER_BOOTSTRAP";A[A.GENERATE_LINK_PREVIEW=2]="GENERATE_LINK_PREVIEW";A[A.HISTORY_SYNC_ON_DEMAND=3]="HISTORY_SYNC_ON_DEMAND";A[A.PLACEHOLDER_MESSAGE_RESEND=4]="PLACEHOLDER_MESSAGE_RESEND";A[A.WAFFLE_LINKING_NONCE_FETCH=5]="WAFFLE_LINKING_NONCE_FETCH";A[A.FULL_HISTORY_SYNC_ON_DEMAND=6]="FULL_HISTORY_SYNC_ON_DEMAND";A[A.COMPANION_META_NONCE_FETCH=7]="COMPANION_META_NONCE_FETCH";A[A.COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8]="COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY";A[A.COMPANION_CANONICAL_USER_NONCE_FETCH=9]="COMPANION_CANONICAL_USER_NONCE_FETCH";A[A.HISTORY_SYNC_CHUNK_RETRY=10]="HISTORY_SYNC_CHUNK_RETRY";A[A.GALAXY_FLOW_ACTION=11]="GALAXY_FLOW_ACTION";A[A.BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO=12]="BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO";A[A.BUSINESS_BROADCAST_INSIGHTS_REFRESH=13]="BUSINESS_BROADCAST_INSIGHTS_REFRESH";A[A.CONTACT_REFRESH_REQUEST=14]="CONTACT_REFRESH_REQUEST";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ok||={});var ik;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.TEXT=1]="TEXT";X[X.IMAGE=2]="IMAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ik||={});var mk;((Z)=>{Z[Z.POLL=0]="POLL";Z[Z.QUIZ=1]="QUIZ";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mk||={});var gk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.AUDIO=1]="AUDIO";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gk||={});var rk;((P)=>{P[P.UNKNOWN=0]="UNKNOWN";P[P.EMPTY=1]="EMPTY";P[P.TEXT=2]="TEXT";P[P.DOCUMENT=3]="DOCUMENT";P[P.IMAGE=4]="IMAGE";P[P.VIDEO=5]="VIDEO";P[P.LOCATION=6]="LOCATION";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rk||={});var tk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.RESPONSE=1]="RESPONSE";X[X.NATIVE_FLOW=2]="NATIVE_FLOW";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tk||={});var ak;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.DISPLAY_TEXT=1]="DISPLAY_TEXT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ak||={});var sk;((D)=>{D[D.CONNECTED=0]="CONNECTED";D[D.MISSED=1]="MISSED";D[D.FAILED=2]="FAILED";D[D.REJECTED=3]="REJECTED";D[D.ACCEPTED_ELSEWHERE=4]="ACCEPTED_ELSEWHERE";D[D.ONGOING=5]="ONGOING";D[D.SILENCED_BY_DND=6]="SILENCED_BY_DND";D[D.SILENCED_UNKNOWN_CALLER=7]="SILENCED_UNKNOWN_CALLER";D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sk||={});var ek;((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"})(ek||={});var $N;((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"})($N||={});var QN;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.SCHEDULED_MESSAGE=1]="SCHEDULED_MESSAGE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QN||={});var ZN;((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"})(ZN||={});var JN;((D)=>{D[D.SYSTEM=0]="SYSTEM";D[D.SYSTEM_TEXT=1]="SYSTEM_TEXT";D[D.FB_SCRIPT=2]="FB_SCRIPT";D[D.SYSTEM_BOLD=6]="SYSTEM_BOLD";D[D.MORNINGBREEZE_REGULAR=7]="MORNINGBREEZE_REGULAR";D[D.CALISTOGA_REGULAR=8]="CALISTOGA_REGULAR";D[D.EXO2_EXTRABOLD=9]="EXO2_EXTRABOLD";D[D.COURIERPRIME_BOLD=10]="COURIERPRIME_BOLD";D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JN||={});var KN;((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"})(KN||={});var qN;((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"})(qN||={});var XN;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.PARENT=1]="PARENT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XN||={});var YN;((Z)=>{Z[Z.GREGORIAN=1]="GREGORIAN";Z[Z.SOLAR_HIJRI=2]="SOLAR_HIJRI";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YN||={});var VN;((P)=>{P[P.MONDAY=1]="MONDAY";P[P.TUESDAY=2]="TUESDAY";P[P.WEDNESDAY=3]="WEDNESDAY";P[P.THURSDAY=4]="THURSDAY";P[P.FRIDAY=5]="FRIDAY";P[P.SATURDAY=6]="SATURDAY";P[P.SUNDAY=7]="SUNDAY";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VN||={});var zN;((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"})(zN||={});var HN;((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"})(HN||={});var GN;((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"})(GN||={});var UN;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.EXTENSIONS_1=1]="EXTENSIONS_1";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UN||={});var CN;((Z)=>{Z[Z.IMAGE=0]="IMAGE";Z[Z.PDF=1]="PDF";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CN||={});var PN;((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"})(PN||={});var DN;((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"})(DN||={});var FN;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.SINGLE_SELECT=1]="SINGLE_SELECT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FN||={});var LN;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LN||={});var xN;((X)=>{X[X.INQUIRY=1]="INQUIRY";X[X.ACCEPTED=2]="ACCEPTED";X[X.DECLINED=3]="DECLINED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xN||={});var kN;((q)=>{q[q.CATALOG=1]="CATALOG";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kN||={});var NN;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.MAPPER=1]="MAPPER";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NN||={});var BN;((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"})(BN||={});var RN;((Z)=>{Z[Z.LINK_PREVIEW=0]="LINK_PREVIEW";Z[Z.ORDER=1]="ORDER";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RN||={});var ON;((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"})(ON||={});var AN;((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"})(AN||={});var EN;((Z)=>{Z[Z.NOTIFY_LAUNCH=1]="NOTIFY_LAUNCH";Z[Z.DOWNLOAD_RESPONSES=2]="DOWNLOAD_RESPONSES";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EN||={});var MN;((D)=>{D[D.REQUEST_SUCCESS=0]="REQUEST_SUCCESS";D[D.REQUEST_TIME_EXPIRED=1]="REQUEST_TIME_EXPIRED";D[D.DECLINED_SHARING_HISTORY=2]="DECLINED_SHARING_HISTORY";D[D.GENERIC_ERROR=3]="GENERIC_ERROR";D[D.ERROR_REQUEST_ON_NON_SMB_PRIMARY=4]="ERROR_REQUEST_ON_NON_SMB_PRIMARY";D[D.ERROR_HOSTED_DEVICE_NOT_CONNECTED=5]="ERROR_HOSTED_DEVICE_NOT_CONNECTED";D[D.ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET=6]="ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET";D[D.ERROR_MULTI_PROVIDER_NOT_CONFIGURED=7]="ERROR_MULTI_PROVIDER_NOT_CONFIGURED";D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MN||={});var WN;((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"})(WN||={});var SN;((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"})(SN||={});var IN;((q)=>{q[q.MASK_LINKED_DEVICES=0]="MASK_LINKED_DEVICES";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IN||={});var TN;((R)=>{R[R.REVOKE=0]="REVOKE";R[R.EPHEMERAL_SETTING=3]="EPHEMERAL_SETTING";R[R.EPHEMERAL_SYNC_RESPONSE=4]="EPHEMERAL_SYNC_RESPONSE";R[R.HISTORY_SYNC_NOTIFICATION=5]="HISTORY_SYNC_NOTIFICATION";R[R.APP_STATE_SYNC_KEY_SHARE=6]="APP_STATE_SYNC_KEY_SHARE";R[R.APP_STATE_SYNC_KEY_REQUEST=7]="APP_STATE_SYNC_KEY_REQUEST";R[R.MSG_FANOUT_BACKFILL_REQUEST=8]="MSG_FANOUT_BACKFILL_REQUEST";R[R.INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC=9]="INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC";R[R.APP_STATE_FATAL_EXCEPTION_NOTIFICATION=10]="APP_STATE_FATAL_EXCEPTION_NOTIFICATION";R[R.SHARE_PHONE_NUMBER=11]="SHARE_PHONE_NUMBER";R[R.MESSAGE_EDIT=14]="MESSAGE_EDIT";R[R.PEER_DATA_OPERATION_REQUEST_MESSAGE=16]="PEER_DATA_OPERATION_REQUEST_MESSAGE";R[R.PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE=17]="PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE";R[R.REQUEST_WELCOME_MESSAGE=18]="REQUEST_WELCOME_MESSAGE";R[R.BOT_FEEDBACK_MESSAGE=19]="BOT_FEEDBACK_MESSAGE";R[R.MEDIA_NOTIFY_MESSAGE=20]="MEDIA_NOTIFY_MESSAGE";R[R.CLOUD_API_THREAD_CONTROL_NOTIFICATION=21]="CLOUD_API_THREAD_CONTROL_NOTIFICATION";R[R.LID_MIGRATION_MAPPING_SYNC=22]="LID_MIGRATION_MAPPING_SYNC";R[R.REMINDER_MESSAGE=23]="REMINDER_MESSAGE";R[R.BOT_MEMU_ONBOARDING_MESSAGE=24]="BOT_MEMU_ONBOARDING_MESSAGE";R[R.STATUS_MENTION_MESSAGE=25]="STATUS_MENTION_MESSAGE";R[R.STOP_GENERATION_MESSAGE=26]="STOP_GENERATION_MESSAGE";R[R.LIMIT_SHARING=27]="LIMIT_SHARING";R[R.AI_PSI_METADATA=28]="AI_PSI_METADATA";R[R.AI_QUERY_FANOUT=29]="AI_QUERY_FANOUT";R[R.GROUP_MEMBER_LABEL_CHANGE=30]="GROUP_MEMBER_LABEL_CHANGE";R[R.AI_MEDIA_COLLECTION_MESSAGE=31]="AI_MEDIA_COLLECTION_MESSAGE";R[R.MESSAGE_UNSCHEDULE=32]="MESSAGE_UNSCHEDULE";R[R.CHAT_THEME_SETTING=34]="CHAT_THEME_SETTING";R[R.AI_METADATA_OPERATION=35]="AI_METADATA_OPERATION";R[R.MARK_AS_VERIFIED_ACTION=36]="MARK_AS_VERIFIED_ACTION";R[R.COEX_STATE_SYNC=37]="COEX_STATE_SYNC";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TN||={});var yN;((Z)=>{Z[Z.EMPTY=0]="EMPTY";Z[Z.NON_EMPTY=1]="NON_EMPTY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yN||={});var vN;((Z)=>{Z[Z.CHAT_OPEN=0]="CHAT_OPEN";Z[Z.COMPANION_PAIRING=1]="COMPANION_PAIRING";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vN||={});var fN;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.VOICE=1]="VOICE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fN||={});var _N;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.CANCEL=1]="CANCEL";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_N||={});var hN;((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"})(hN||={});var lN;((Z)=>{Z[Z.PENDING=0]="PENDING";Z[Z.PAID=1]="PAID";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lN||={});var pN;((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"})(pN||={});var uN;((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"})(uN||={});var wN;((q)=>{q[q.QUESTION_ANSWER=1]="QUESTION_ANSWER";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wN||={});var jN;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.REACTION=1]="REACTION";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jN||={});var dN;((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"})(dN||={});var cN;((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"})(cN||={});var nN;((Z)=>{Z[Z.USER_VIDEO=0]="USER_VIDEO";Z[Z.AI_GENERATED=1]="AI_GENERATED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nN||={});var bN;((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"})(bN||={});var oN;((l)=>{l[l.UNKNOWN=0]="UNKNOWN";l[l.MEDIA_ALBUM=1]="MEDIA_ALBUM";l[l.BOT_PLUGIN=2]="BOT_PLUGIN";l[l.EVENT_COVER_IMAGE=3]="EVENT_COVER_IMAGE";l[l.STATUS_POLL=4]="STATUS_POLL";l[l.HD_VIDEO_DUAL_UPLOAD=5]="HD_VIDEO_DUAL_UPLOAD";l[l.STATUS_EXTERNAL_RESHARE=6]="STATUS_EXTERNAL_RESHARE";l[l.MEDIA_POLL=7]="MEDIA_POLL";l[l.STATUS_ADD_YOURS=8]="STATUS_ADD_YOURS";l[l.STATUS_NOTIFICATION=9]="STATUS_NOTIFICATION";l[l.HD_IMAGE_DUAL_UPLOAD=10]="HD_IMAGE_DUAL_UPLOAD";l[l.STICKER_ANNOTATION=11]="STICKER_ANNOTATION";l[l.MOTION_PHOTO=12]="MOTION_PHOTO";l[l.STATUS_LINK_ACTION=13]="STATUS_LINK_ACTION";l[l.VIEW_ALL_REPLIES=14]="VIEW_ALL_REPLIES";l[l.STATUS_ADD_YOURS_AI_IMAGINE=15]="STATUS_ADD_YOURS_AI_IMAGINE";l[l.STATUS_QUESTION=16]="STATUS_QUESTION";l[l.STATUS_ADD_YOURS_DIWALI=17]="STATUS_ADD_YOURS_DIWALI";l[l.STATUS_REACTION=18]="STATUS_REACTION";l[l.HEVC_VIDEO_DUAL_UPLOAD=19]="HEVC_VIDEO_DUAL_UPLOAD";l[l.POLL_ADD_OPTION=20]="POLL_ADD_OPTION";l[l.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oN||={});var iN;((Z)=>{Z[Z.STATIC=1]="STATIC";Z[Z.DEPENDENT_ON_PARENT=2]="DEPENDENT_ON_PARENT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iN||={});var mN;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.TEXT=1]="TEXT";X[X.IMAGE=2]="IMAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mN||={});var gN;((Z)=>{Z[Z.POLL=0]="POLL";Z[Z.QUIZ=1]="QUIZ";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gN||={});var rN;((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"})(rN||={});var tN;((Z)=>{Z[Z.LEFT=0]="LEFT";Z[Z.REMOVED=1]="REMOVED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tN||={});var aN;((I)=>{I[I.ANDROID=0]="ANDROID";I[I.SMBA=1]="SMBA";I[I.IPHONE=2]="IPHONE";I[I.SMBI=3]="SMBI";I[I.WEB=4]="WEB";I[I.UWP=5]="UWP";I[I.DARWIN=6]="DARWIN";I[I.IPAD=7]="IPAD";I[I.WEAROS=8]="WEAROS";I[I.WASG=9]="WASG";I[I.WEARM=10]="WEARM";I[I.CAPI=11]="CAPI";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aN||={});var sN;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.DEFAULT=1]="DEFAULT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sN||={});var eN;((Z)=>{Z[Z.UNKNOWN_CURRENCY=0]="UNKNOWN_CURRENCY";Z[Z.INR=1]="INR";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eN||={});var $B;((I)=>{I[I.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";I[I.PROCESSING=1]="PROCESSING";I[I.SENT=2]="SENT";I[I.NEED_TO_ACCEPT=3]="NEED_TO_ACCEPT";I[I.COMPLETE=4]="COMPLETE";I[I.COULD_NOT_COMPLETE=5]="COULD_NOT_COMPLETE";I[I.REFUNDED=6]="REFUNDED";I[I.EXPIRED=7]="EXPIRED";I[I.REJECTED=8]="REJECTED";I[I.CANCELLED=9]="CANCELLED";I[I.WAITING_FOR_PAYER=10]="WAITING_FOR_PAYER";I[I.WAITING=11]="WAITING";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})($B||={});var QB;((R)=>{R[R.UNKNOWN=0]="UNKNOWN";R[R.PENDING_SETUP=1]="PENDING_SETUP";R[R.PENDING_RECEIVER_SETUP=2]="PENDING_RECEIVER_SETUP";R[R.INIT=3]="INIT";R[R.SUCCESS=4]="SUCCESS";R[R.COMPLETED=5]="COMPLETED";R[R.FAILED=6]="FAILED";R[R.FAILED_RISK=7]="FAILED_RISK";R[R.FAILED_PROCESSING=8]="FAILED_PROCESSING";R[R.FAILED_RECEIVER_PROCESSING=9]="FAILED_RECEIVER_PROCESSING";R[R.FAILED_DA=10]="FAILED_DA";R[R.FAILED_DA_FINAL=11]="FAILED_DA_FINAL";R[R.REFUNDED_TXN=12]="REFUNDED_TXN";R[R.REFUND_FAILED=13]="REFUND_FAILED";R[R.REFUND_FAILED_PROCESSING=14]="REFUND_FAILED_PROCESSING";R[R.REFUND_FAILED_DA=15]="REFUND_FAILED_DA";R[R.EXPIRED_TXN=16]="EXPIRED_TXN";R[R.AUTH_CANCELED=17]="AUTH_CANCELED";R[R.AUTH_CANCEL_FAILED_PROCESSING=18]="AUTH_CANCEL_FAILED_PROCESSING";R[R.AUTH_CANCEL_FAILED=19]="AUTH_CANCEL_FAILED";R[R.COLLECT_INIT=20]="COLLECT_INIT";R[R.COLLECT_SUCCESS=21]="COLLECT_SUCCESS";R[R.COLLECT_FAILED=22]="COLLECT_FAILED";R[R.COLLECT_FAILED_RISK=23]="COLLECT_FAILED_RISK";R[R.COLLECT_REJECTED=24]="COLLECT_REJECTED";R[R.COLLECT_EXPIRED=25]="COLLECT_EXPIRED";R[R.COLLECT_CANCELED=26]="COLLECT_CANCELED";R[R.COLLECT_CANCELLING=27]="COLLECT_CANCELLING";R[R.IN_REVIEW=28]="IN_REVIEW";R[R.REVERSAL_SUCCESS=29]="REVERSAL_SUCCESS";R[R.REVERSAL_PENDING=30]="REVERSAL_PENDING";R[R.REFUND_PENDING=31]="REFUND_PENDING";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QB||={});var ZB;((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"})(ZB||={});var JB;((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"})(JB||={});var KB;((X)=>{X[X.AND=1]="AND";X[X.OR=2]="OR";X[X.NOR=3]="NOR";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KB||={});var qB;((Z)=>{Z[Z.PASS_BY_DEFAULT=1]="PASS_BY_DEFAULT";Z[Z.FAIL_BY_DEFAULT=2]="FAIL_BY_DEFAULT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qB||={});var XB;((X)=>{X[X.TRUE=1]="TRUE";X[X.FALSE=2]="FALSE";X[X.UNKNOWN=3]="UNKNOWN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XB||={});var YB;((S)=>{S[S.UNKNOWN=0]="UNKNOWN";S[S.RESHARE=1]="RESHARE";S[S.EXTERNAL_SHARE=2]="EXTERNAL_SHARE";S[S.MUSIC=3]="MUSIC";S[S.STATUS_MENTION=4]="STATUS_MENTION";S[S.GROUP_STATUS=5]="GROUP_STATUS";S[S.RL_ATTRIBUTION=6]="RL_ATTRIBUTION";S[S.AI_CREATED=7]="AI_CREATED";S[S.LAYOUTS=8]="LAYOUTS";S[S.NEWSLETTER_STATUS=9]="NEWSLETTER_STATUS";S[S.STATUS_CLOSE_SHARING=10]="STATUS_CLOSE_SHARING";S[S.PAID_PARTNERSHIP=11]="PAID_PARTNERSHIP";S[S.USERNAME_STATUS=12]="USERNAME_STATUS";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YB||={});var VB;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.STATUS_MIMICRY=1]="STATUS_MIMICRY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VB||={});var zB;((p)=>{p[p.UNKNOWN=0]="UNKNOWN";p[p.INSTAGRAM=1]="INSTAGRAM";p[p.FACEBOOK=2]="FACEBOOK";p[p.MESSENGER=3]="MESSENGER";p[p.SPOTIFY=4]="SPOTIFY";p[p.YOUTUBE=5]="YOUTUBE";p[p.PINTEREST=6]="PINTEREST";p[p.THREADS=7]="THREADS";p[p.APPLE_MUSIC=8]="APPLE_MUSIC";p[p.SHARECHAT=9]="SHARECHAT";p[p.GOOGLE_PHOTOS=10]="GOOGLE_PHOTOS";p[p.SOUNDCLOUD=11]="SOUNDCLOUD";p[p.SHAZAM=12]="SHAZAM";p[p.PICSART=13]="PICSART";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zB||={});var HB;((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"})(HB||={});var GB;((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"})(GB||={});var UB;((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"})(UB||={});var CB;((X)=>{X[X.UPDATED=0]="UPDATED";X[X.CREATED=1]="CREATED";X[X.DELETED=2]="DELETED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CB||={});var PB;((P)=>{P[P.UNKNOWN=0]="UNKNOWN";P[P.INSTRUCTIONS=1]="INSTRUCTIONS";P[P.RESPONSE_SETTINGS=2]="RESPONSE_SETTINGS";P[P.EXAMPLE_RESPONSES=3]="EXAMPLE_RESPONSES";P[P.KNOWLEDGE=4]="KNOWLEDGE";P[P.LEAD_GEN=5]="LEAD_GEN";P[P.HANDOFF_REMOVAL_TIMING=6]="HANDOFF_REMOVAL_TIMING";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PB||={});var DB;((q)=>{q[q.DISABLE_CTA=1]="DISABLE_CTA";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DB||={});var FB;((w)=>{w[w.NONE=0]="NONE";w[w.UNREAD=1]="UNREAD";w[w.GROUPS=2]="GROUPS";w[w.FAVORITES=3]="FAVORITES";w[w.PREDEFINED=4]="PREDEFINED";w[w.CUSTOM=5]="CUSTOM";w[w.COMMUNITY=6]="COMMUNITY";w[w.SERVER_ASSIGNED=7]="SERVER_ASSIGNED";w[w.DRAFTED=8]="DRAFTED";w[w.AI_HANDOFF=9]="AI_HANDOFF";w[w.CHANNELS=10]="CHANNELS";w[w.AI_RESPONDING=11]="AI_RESPONDING";w[w.ARCHIVED=12]="ARCHIVED";w[w.LOCKED=13]="LOCKED";w[w.INVITES=14]="INVITES";w[w.THIRD_PARTY=15]="THIRD_PARTY";w[w.LEAD=16]="LEAD";w[w.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FB||={});var LB;((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"})(LB||={});var xB;((X)=>{X[X.MUTED=0]="MUTED";X[X.AI_AGENT=1]="AI_AGENT";X[X.SUGGESTIONS=2]="SUGGESTIONS";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xB||={});var kB;((q)=>{q[q.PERSONALIZED=0]="PERSONALIZED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kB||={});var NB;((Z)=>{Z[Z.ACTIVE=0]="ACTIVE";Z[Z.INACTIVE=1]="INACTIVE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NB||={});var BB;((Z)=>{Z[Z.UNSTRUCTURED=1]="UNSTRUCTURED";Z[Z.STRUCTURED=2]="STRUCTURED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BB||={});var RB;((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"})(RB||={});var OB;((q)=>{q[q.BR_PAY_PRIVACY_POLICY=0]="BR_PAY_PRIVACY_POLICY";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OB||={});var AB;((X)=>{X[X.UNDEFINED=0]="UNDEFINED";X[X.ENABLED=1]="ENABLED";X[X.DISABLED=2]="DISABLED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AB||={});var EB;((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"})(EB||={});var MB;((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"})(MB||={});var WB;((_)=>{_[_.SETTING_KEY_UNKNOWN=0]="SETTING_KEY_UNKNOWN";_[_.START_AT_LOGIN=1]="START_AT_LOGIN";_[_.MINIMIZE_TO_TRAY=2]="MINIMIZE_TO_TRAY";_[_.LANGUAGE=3]="LANGUAGE";_[_.REPLACE_TEXT_WITH_EMOJI=4]="REPLACE_TEXT_WITH_EMOJI";_[_.BANNER_NOTIFICATION_DISPLAY_MODE=5]="BANNER_NOTIFICATION_DISPLAY_MODE";_[_.UNREAD_COUNTER_BADGE_DISPLAY_MODE=6]="UNREAD_COUNTER_BADGE_DISPLAY_MODE";_[_.IS_MESSAGES_NOTIFICATION_ENABLED=7]="IS_MESSAGES_NOTIFICATION_ENABLED";_[_.IS_CALLS_NOTIFICATION_ENABLED=8]="IS_CALLS_NOTIFICATION_ENABLED";_[_.IS_REACTIONS_NOTIFICATION_ENABLED=9]="IS_REACTIONS_NOTIFICATION_ENABLED";_[_.IS_STATUS_REACTIONS_NOTIFICATION_ENABLED=10]="IS_STATUS_REACTIONS_NOTIFICATION_ENABLED";_[_.IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED=11]="IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED";_[_.DEFAULT_NOTIFICATION_TONE_ID=12]="DEFAULT_NOTIFICATION_TONE_ID";_[_.GROUP_DEFAULT_NOTIFICATION_TONE_ID=13]="GROUP_DEFAULT_NOTIFICATION_TONE_ID";_[_.APP_THEME=14]="APP_THEME";_[_.WALLPAPER_ID=15]="WALLPAPER_ID";_[_.IS_DOODLE_WALLPAPER_ENABLED=16]="IS_DOODLE_WALLPAPER_ENABLED";_[_.FONT_SIZE=17]="FONT_SIZE";_[_.IS_PHOTOS_AUTODOWNLOAD_ENABLED=18]="IS_PHOTOS_AUTODOWNLOAD_ENABLED";_[_.IS_AUDIOS_AUTODOWNLOAD_ENABLED=19]="IS_AUDIOS_AUTODOWNLOAD_ENABLED";_[_.IS_VIDEOS_AUTODOWNLOAD_ENABLED=20]="IS_VIDEOS_AUTODOWNLOAD_ENABLED";_[_.IS_DOCUMENTS_AUTODOWNLOAD_ENABLED=21]="IS_DOCUMENTS_AUTODOWNLOAD_ENABLED";_[_.DISABLE_LINK_PREVIEWS=22]="DISABLE_LINK_PREVIEWS";_[_.NOTIFICATION_TONE_ID=23]="NOTIFICATION_TONE_ID";_[_.MEDIA_UPLOAD_QUALITY=24]="MEDIA_UPLOAD_QUALITY";_[_.IS_SPELL_CHECK_ENABLED=25]="IS_SPELL_CHECK_ENABLED";_[_.IS_ENTER_TO_SEND_ENABLED=26]="IS_ENTER_TO_SEND_ENABLED";_[_.IS_GROUP_MESSAGE_NOTIFICATION_ENABLED=27]="IS_GROUP_MESSAGE_NOTIFICATION_ENABLED";_[_.IS_GROUP_REACTIONS_NOTIFICATION_ENABLED=28]="IS_GROUP_REACTIONS_NOTIFICATION_ENABLED";_[_.IS_STATUS_NOTIFICATION_ENABLED=29]="IS_STATUS_NOTIFICATION_ENABLED";_[_.STATUS_NOTIFICATION_TONE_ID=30]="STATUS_NOTIFICATION_TONE_ID";_[_.SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION=31]="SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION";_[_.CHAT_THEME_ID=32]="CHAT_THEME_ID";_[_.COLOR_SCHEME_ID=33]="COLOR_SCHEME_ID";_[_.STOCK_WALLPAPER_IMAGE_ID=34]="STOCK_WALLPAPER_IMAGE_ID";_[_.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WB||={});var SB;((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"})(SB||={});var IB;((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"})(IB||={});var TB;((Z)=>{Z[Z.LID=1]="LID";Z[Z.PN=2]="PN";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TB||={});var yB;((Z)=>{Z[Z.INACTIVE=0]="INACTIVE";Z[Z.ACTIVE=1]="ACTIVE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yB||={});var vB;((X)=>{X[X.ACTIVE=0]="ACTIVE";X[X.PAUSED=1]="PAUSED";X[X.UNLINKED=2]="UNLINKED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vB||={});var fB;((Z)=>{Z[Z.SET=0]="SET";Z[Z.REMOVE=1]="REMOVE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fB||={});var _B;((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"})(_B||={});var hB;((Z)=>{Z[Z.UTF8=0]="UTF8";Z[Z.UTF8_BROKEN=1]="UTF8_BROKEN";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hB||={});var lB;((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"})(lB||={});var pB;((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"})(pB||={});var uB;((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"})(uB||={});var wB;((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"})(wB||={});var jB;((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"})(jB||={});function lV(){return{}}var kY={encode($,Q=new H){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??lV();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 kY.fromPartial($??{})},fromPartial($){let Q=lV();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 pV(){return{}}var dB={encode($,Q=new H){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??pV();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 dB.fromPartial($??{})},fromPartial($){let Q=pV();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 uV(){return{}}var NY={encode($,Q=new H){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??uV();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 NY.fromPartial($??{})},fromPartial($){let Q=uV();return Q.details=$.details??void 0,Q.accountSignatureKey=$.accountSignatureKey??void 0,Q.accountSignature=$.accountSignature??void 0,Q.deviceSignature=$.deviceSignature??void 0,Q}};function wV(){return{}}var BY={encode($,Q=new H){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??wV();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 BY.fromPartial($??{})},fromPartial($){let Q=wV();return Q.details=$.details??void 0,Q.hmac=$.hmac??void 0,Q.accountType=$.accountType??void 0,Q}};function jV(){return{}}var RY={encode($,Q=new H){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??jV();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 RY.fromPartial($??{})},fromPartial($){let Q=jV();return Q.details=$.details??void 0,Q.accountSignature=$.accountSignature??void 0,Q.accountSignatureKey=$.accountSignatureKey??void 0,Q}};function dV(){return{}}var cB={encode($,Q=new H){if($.lastFetchTime!==void 0)Q.uint32(8).int64($.lastFetchTime);if($.capabilityOptions!==void 0&&$.capabilityOptions.length!==0)for(let q of $.capabilityOptions)l0.encode(q,Q.uint32(18).fork()).join();if($.conversationOptions!==void 0&&$.conversationOptions.length!==0)for(let q of $.conversationOptions)l0.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??dV();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=l0.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=l0.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 cB.fromPartial($??{})},fromPartial($){let Q=dV();return Q.lastFetchTime=$.lastFetchTime??void 0,Q.capabilityOptions=$.capabilityOptions?.map((q)=>l0.fromPartial(q))||void 0,Q.conversationOptions=$.conversationOptions?.map((q)=>l0.fromPartial(q))||void 0,Q}};function cV(){return{}}var l0={encode($,Q=new H){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??cV();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 l0.fromPartial($??{})},fromPartial($){let Q=cV();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 nV(){return{}}var ZQ={encode($,Q=new H){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??nV();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 ZQ.fromPartial($??{})},fromPartial($){let Q=nV();return Q.collectionId=$.collectionId??void 0,Q.expectedMediaCount=$.expectedMediaCount??void 0,Q.hasGlobalCaption=$.hasGlobalCaption??void 0,Q}};function bV(){return{}}var JQ={encode($,Q=new H){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??bV();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 JQ.fromPartial($??{})},fromPartial($){let Q=bV();return Q.collectionId=$.collectionId??void 0,Q.uploadOrderIndex=$.uploadOrderIndex??void 0,Q}};function oV(){return{}}var KQ={encode($,Q=new H){if($.hatchMetadataSync!==void 0)YK.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??oV();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.hatchMetadataSync=YK.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 KQ.fromPartial($??{})},fromPartial($){let Q=oV();return Q.hatchMetadataSync=$.hatchMetadataSync!==void 0&&$.hatchMetadataSync!==null?YK.fromPartial($.hatchMetadataSync):void 0,Q}};function iV(){return{}}var qQ={encode($,Q=new H){if($.c2PaMetadata!==void 0)p0.encode($.c2PaMetadata,Q.uint32(10).fork()).join();if($.iptcMetadata!==void 0)p0.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??iV();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.c2PaMetadata=p0.decode(Z,Z.uint32(),K.c2PaMetadata);continue}case 2:{if(J!==18)break;K.iptcMetadata=p0.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 qQ.fromPartial($??{})},fromPartial($){let Q=iV();return Q.c2PaMetadata=$.c2PaMetadata!==void 0&&$.c2PaMetadata!==null?p0.fromPartial($.c2PaMetadata):void 0,Q.iptcMetadata=$.iptcMetadata!==void 0&&$.iptcMetadata!==null?p0.fromPartial($.iptcMetadata):void 0,Q}};function mV(){return{}}var p0={encode($,Q=new H){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??mV();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 p0.fromPartial($??{})},fromPartial($){let Q=mV();return Q.createdWithGenAi=$.createdWithGenAi??void 0,Q.editedWithGenAi=$.editedWithGenAi??void 0,Q}};function gV(){return{}}var XQ={encode($,Q=new H){if($.messageKey!==void 0)k.encode($.messageKey,Q.uint32(10).fork()).join();if($.message!==void 0)j.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??gV();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=k.decode(Z,Z.uint32(),K.messageKey);continue}case 2:{if(J!==18)break;K.message=j.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=gV();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?k.fromPartial($.messageKey):void 0,Q.message=$.message!==void 0&&$.message!==null?j.fromPartial($.message):void 0,Q.timestamp=$.timestamp??void 0,Q}};function rV(){return{}}var YQ={encode($,Q=new H){if($.messageKey!==void 0)k.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??rV();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=k.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 YQ.fromPartial($??{})},fromPartial($){let Q=rV();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?k.fromPartial($.messageKey):void 0,Q.responseTimestampMs=$.responseTimestampMs??void 0,Q}};function tV(){return{}}var VQ={encode($,Q=new H){if($.codeLanguage!==void 0)Q.uint32(10).string($.codeLanguage);if($.codeBlocks!==void 0&&$.codeBlocks.length!==0)for(let q of $.codeBlocks)zQ.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??tV();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=zQ.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 VQ.fromPartial($??{})},fromPartial($){let Q=tV();return Q.codeLanguage=$.codeLanguage??void 0,Q.codeBlocks=$.codeBlocks?.map((q)=>zQ.fromPartial(q))||void 0,Q}};function aV(){return{}}var zQ={encode($,Q=new H){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??aV();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 zQ.fromPartial($??{})},fromPartial($){let Q=aV();return Q.highlightType=$.highlightType??void 0,Q.codeContent=$.codeContent??void 0,Q}};function sV(){return{}}var HQ={encode($,Q=new H){if($.itemsMetadata!==void 0&&$.itemsMetadata.length!==0)for(let q of $.itemsMetadata)GQ.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??sV();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=GQ.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 HQ.fromPartial($??{})},fromPartial($){let Q=sV();return Q.itemsMetadata=$.itemsMetadata?.map((q)=>GQ.fromPartial(q))||void 0,Q.contentType=$.contentType??void 0,Q}};function eV(){return{}}var GQ={encode($,Q=new H){if($.reelItem!==void 0)UQ.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??eV();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.reelItem=UQ.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 GQ.fromPartial($??{})},fromPartial($){let Q=eV();return Q.reelItem=$.reelItem!==void 0&&$.reelItem!==null?UQ.fromPartial($.reelItem):void 0,Q}};function $z(){return{}}var UQ={encode($,Q=new H){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??$z();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 UQ.fromPartial($??{})},fromPartial($){let Q=$z();return Q.title=$.title??void 0,Q.profileIconUrl=$.profileIconUrl??void 0,Q.thumbnailUrl=$.thumbnailUrl??void 0,Q.videoUrl=$.videoUrl??void 0,Q}};function Qz(){return{}}var CQ={encode($,Q=new H){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??Qz();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 CQ.fromPartial($??{})},fromPartial($){let Q=Qz();return Q.type=$.type??void 0,Q.version=$.version??void 0,Q.url=$.url??void 0,Q.loopCount=$.loopCount??void 0,Q}};function Zz(){return{}}var PQ={encode($,Q=new H){if($.gridImageUrl!==void 0)C0.encode($.gridImageUrl,Q.uint32(10).fork()).join();if($.imageUrls!==void 0&&$.imageUrls.length!==0)for(let q of $.imageUrls)C0.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??Zz();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.gridImageUrl=C0.decode(Z,Z.uint32(),K.gridImageUrl);continue}case 2:{if(J!==18)break;if(K.imageUrls===void 0)K.imageUrls=[];let V=C0.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 PQ.fromPartial($??{})},fromPartial($){let Q=Zz();return Q.gridImageUrl=$.gridImageUrl!==void 0&&$.gridImageUrl!==null?C0.fromPartial($.gridImageUrl):void 0,Q.imageUrls=$.imageUrls?.map((q)=>C0.fromPartial(q))||void 0,Q}};function Jz(){return{}}var C0={encode($,Q=new H){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??Jz();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 C0.fromPartial($??{})},fromPartial($){let Q=Jz();return Q.imagePreviewUrl=$.imagePreviewUrl??void 0,Q.imageHighResUrl=$.imageHighResUrl??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q}};function Kz(){return{}}var DQ={encode($,Q=new H){if($.imageUrl!==void 0)C0.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??Kz();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.imageUrl=C0.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 DQ.fromPartial($??{})},fromPartial($){let Q=Kz();return Q.imageUrl=$.imageUrl!==void 0&&$.imageUrl!==null?C0.fromPartial($.imageUrl):void 0,Q.imageText=$.imageText??void 0,Q.alignment=$.alignment??void 0,Q.tapLinkUrl=$.tapLinkUrl??void 0,Q}};function qz(){return{}}var FQ={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);if($.expressions!==void 0&&$.expressions.length!==0)for(let q of $.expressions)LQ.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??qz();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=LQ.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 FQ.fromPartial($??{})},fromPartial($){let Q=qz();return Q.text=$.text??void 0,Q.expressions=$.expressions?.map((q)=>LQ.fromPartial(q))||void 0,Q}};function Xz(){return{}}var LQ={encode($,Q=new H){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??Xz();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 LQ.fromPartial($??{})},fromPartial($){let Q=Xz();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 Yz(){return{}}var xQ={encode($,Q=new H){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)kQ.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??Yz();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=kQ.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 xQ.fromPartial($??{})},fromPartial($){let Q=Yz();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)=>kQ.fromPartial(q))||void 0,Q.showInfoList=$.showInfoList??void 0,Q}};function Vz(){return{}}var kQ={encode($,Q=new H){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??Vz();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 kQ.fromPartial($??{})},fromPartial($){let Q=Vz();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 zz(){return{}}var NQ={encode($,Q=new H){if($.messageType!==void 0)Q.uint32(8).int32($.messageType);if($.submessages!==void 0&&$.submessages.length!==0)for(let q of $.submessages)BQ.encode(q,Q.uint32(18).fork()).join();if($.unifiedResponse!==void 0)AQ.encode($.unifiedResponse,Q.uint32(26).fork()).join();if($.contextInfo!==void 0)E.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??zz();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=BQ.decode(Z,Z.uint32());if(V!==void 0)K.submessages.push(V);continue}case 3:{if(J!==26)break;K.unifiedResponse=AQ.decode(Z,Z.uint32(),K.unifiedResponse);continue}case 4:{if(J!==34)break;K.contextInfo=E.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 NQ.fromPartial($??{})},fromPartial($){let Q=zz();return Q.messageType=$.messageType??void 0,Q.submessages=$.submessages?.map((q)=>BQ.fromPartial(q))||void 0,Q.unifiedResponse=$.unifiedResponse!==void 0&&$.unifiedResponse!==null?AQ.fromPartial($.unifiedResponse):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q}};function Hz(){return{}}var BQ={encode($,Q=new H){if($.messageType!==void 0)Q.uint32(8).int32($.messageType);if($.gridImageMetadata!==void 0)PQ.encode($.gridImageMetadata,Q.uint32(18).fork()).join();if($.messageText!==void 0)Q.uint32(26).string($.messageText);if($.imageMetadata!==void 0)DQ.encode($.imageMetadata,Q.uint32(34).fork()).join();if($.codeMetadata!==void 0)VQ.encode($.codeMetadata,Q.uint32(42).fork()).join();if($.tableMetadata!==void 0)RQ.encode($.tableMetadata,Q.uint32(50).fork()).join();if($.dynamicMetadata!==void 0)CQ.encode($.dynamicMetadata,Q.uint32(58).fork()).join();if($.latexMetadata!==void 0)FQ.encode($.latexMetadata,Q.uint32(66).fork()).join();if($.mapMetadata!==void 0)xQ.encode($.mapMetadata,Q.uint32(74).fork()).join();if($.contentItemsMetadata!==void 0)HQ.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??Hz();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=PQ.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=DQ.decode(Z,Z.uint32(),K.imageMetadata);continue}case 5:{if(J!==42)break;K.codeMetadata=VQ.decode(Z,Z.uint32(),K.codeMetadata);continue}case 6:{if(J!==50)break;K.tableMetadata=RQ.decode(Z,Z.uint32(),K.tableMetadata);continue}case 7:{if(J!==58)break;K.dynamicMetadata=CQ.decode(Z,Z.uint32(),K.dynamicMetadata);continue}case 8:{if(J!==66)break;K.latexMetadata=FQ.decode(Z,Z.uint32(),K.latexMetadata);continue}case 9:{if(J!==74)break;K.mapMetadata=xQ.decode(Z,Z.uint32(),K.mapMetadata);continue}case 10:{if(J!==82)break;K.contentItemsMetadata=HQ.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 BQ.fromPartial($??{})},fromPartial($){let Q=Hz();return Q.messageType=$.messageType??void 0,Q.gridImageMetadata=$.gridImageMetadata!==void 0&&$.gridImageMetadata!==null?PQ.fromPartial($.gridImageMetadata):void 0,Q.messageText=$.messageText??void 0,Q.imageMetadata=$.imageMetadata!==void 0&&$.imageMetadata!==null?DQ.fromPartial($.imageMetadata):void 0,Q.codeMetadata=$.codeMetadata!==void 0&&$.codeMetadata!==null?VQ.fromPartial($.codeMetadata):void 0,Q.tableMetadata=$.tableMetadata!==void 0&&$.tableMetadata!==null?RQ.fromPartial($.tableMetadata):void 0,Q.dynamicMetadata=$.dynamicMetadata!==void 0&&$.dynamicMetadata!==null?CQ.fromPartial($.dynamicMetadata):void 0,Q.latexMetadata=$.latexMetadata!==void 0&&$.latexMetadata!==null?FQ.fromPartial($.latexMetadata):void 0,Q.mapMetadata=$.mapMetadata!==void 0&&$.mapMetadata!==null?xQ.fromPartial($.mapMetadata):void 0,Q.contentItemsMetadata=$.contentItemsMetadata!==void 0&&$.contentItemsMetadata!==null?HQ.fromPartial($.contentItemsMetadata):void 0,Q}};function Gz(){return{}}var RQ={encode($,Q=new H){if($.rows!==void 0&&$.rows.length!==0)for(let q of $.rows)OQ.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??Gz();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=OQ.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 RQ.fromPartial($??{})},fromPartial($){let Q=Gz();return Q.rows=$.rows?.map((q)=>OQ.fromPartial(q))||void 0,Q.title=$.title??void 0,Q}};function Uz(){return{}}var OQ={encode($,Q=new H){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??Uz();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 OQ.fromPartial($??{})},fromPartial($){let Q=Uz();return Q.items=$.items?.map((q)=>q)||void 0,Q.isHeading=$.isHeading??void 0,Q}};function Cz(){return{}}var AQ={encode($,Q=new H){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??Cz();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 AQ.fromPartial($??{})},fromPartial($){let Q=Cz();return Q.data=$.data??void 0,Q}};function Pz(){return{}}var EQ={encode($,Q=new H){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??Pz();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 EQ.fromPartial($??{})},fromPartial($){let Q=Pz();return Q.requestType=$.requestType??void 0,Q}};function Dz(){return{}}var MQ={encode($,Q=new H){if($.serverInfo!==void 0)SQ.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??Dz();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.serverInfo=SQ.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 MQ.fromPartial($??{})},fromPartial($){let Q=Dz();return Q.serverInfo=$.serverInfo!==void 0&&$.serverInfo!==null?SQ.fromPartial($.serverInfo):void 0,Q.clientInfo=$.clientInfo!==void 0&&$.clientInfo!==null?WQ.fromPartial($.clientInfo):void 0,Q}};function Fz(){return{}}var WQ={encode($,Q=new H){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??Fz();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=Fz();return Q.type=$.type??void 0,Q.sourceChatJid=$.sourceChatJid??void 0,Q}};function Lz(){return{}}var SQ={encode($,Q=new H){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??Lz();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 SQ.fromPartial($??{})},fromPartial($){let Q=Lz();return Q.title=$.title??void 0,Q}};function xz(){return{}}var IQ={encode($,Q=new H){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??xz();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 IQ.fromPartial($??{})},fromPartial($){let Q=xz();return Q.lid=$.lid??void 0,Q.username=$.username??void 0,Q.countryCode=$.countryCode??void 0,Q.isUsernameDeleted=$.isUsernameDeleted??void 0,Q}};function kz(){return{}}var nB={encode($,Q=new H){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??kz();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 nB.fromPartial($??{})},fromPartial($){let Q=kz();return Q.accesstoken=$.accesstoken??void 0,Q.fbid=$.fbid??void 0,Q.nonce=$.nonce??void 0,Q.encryptedPassword=$.encryptedPassword??void 0,Q}};function Nz(){return{}}var TQ={encode($,Q=new H){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??Nz();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 TQ.fromPartial($??{})},fromPartial($){let Q=Nz();return Q.url=$.url??void 0,Q.buttonTitle=$.buttonTitle??void 0,Q}};function Bz(){return{}}var U0={encode($,Q=new H){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??Bz();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 U0.fromPartial($??{})},fromPartial($){let Q=Bz();return Q.downloadImages=$.downloadImages??void 0,Q.downloadAudio=$.downloadAudio??void 0,Q.downloadVideo=$.downloadVideo??void 0,Q.downloadDocuments=$.downloadDocuments??void 0,Q}};function Rz(){return{}}var yQ={encode($,Q=new H){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??Rz();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 yQ.fromPartial($??{})},fromPartial($){let Q=Rz();return Q.fbid=$.fbid??void 0,Q.password=$.password??void 0,Q}};function Oz(){return{}}var bB={encode($,Q=new H){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??Oz();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 bB.fromPartial($??{})},fromPartial($){let Q=Oz();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 Az(){return{}}var oB={encode($,Q=new H){if($.vnameCert!==void 0)f0.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??Az();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.vnameCert=f0.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 oB.fromPartial($??{})},fromPartial($){let Q=Az();return Q.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?f0.fromPartial($.vnameCert):void 0,Q.bizAcctLinkInfo=$.bizAcctLinkInfo??void 0,Q}};function Ez(){return{}}var iB={encode($,Q=new H){if($.vlevel!==void 0)Q.uint32(8).int32($.vlevel);if($.vnameCert!==void 0)f0.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??Ez();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=f0.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 iB.fromPartial($??{})},fromPartial($){let Q=Ez();return Q.vlevel=$.vlevel??void 0,Q.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?f0.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 Mz(){return{}}var vQ={encode($,Q=new H){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??Mz();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 vQ.fromPartial($??{})},fromPartial($){let Q=Mz();return Q.ageCollectionEligible=$.ageCollectionEligible??void 0,Q.shouldTriggerAgeCollectionOnClient=$.shouldTriggerAgeCollectionOnClient??void 0,Q.ageCollectionType=$.ageCollectionType??void 0,Q}};function Wz(){return{}}var fQ={encode($,Q=new H){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??Wz();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 fQ.fromPartial($??{})},fromPartial($){let Q=Wz();return Q.token=$.token??void 0,Q.clientPublicKey=$.clientPublicKey??void 0,Q}};function Sz(){return{}}var _Q={encode($,Q=new H){if($.deepLinkMetadata!==void 0)fQ.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??Sz();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deepLinkMetadata=fQ.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 _Q.fromPartial($??{})},fromPartial($){let Q=Sz();return Q.deepLinkMetadata=$.deepLinkMetadata!==void 0&&$.deepLinkMetadata!==null?fQ.fromPartial($.deepLinkMetadata):void 0,Q}};function Iz(){return{}}var hQ={encode($,Q=new H){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??Iz();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 hQ.fromPartial($??{})},fromPartial($){let Q=Iz();return Q.capabilities=$.capabilities?.map((q)=>q)||void 0,Q}};function Tz(){return{}}var lQ={encode($,Q=new H){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??Tz();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 lQ.fromPartial($??{})},fromPartial($){let Q=Tz();return Q.commandName=$.commandName??void 0,Q.commandDescription=$.commandDescription??void 0,Q.commandPrompt=$.commandPrompt??void 0,Q}};function yz(){return{}}var pQ={encode($,Q=new H){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??yz();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 pQ.fromPartial($??{})},fromPartial($){let Q=yz();return Q.pluginType=$.pluginType??void 0,Q}};function vz(){return{}}var uQ={encode($,Q=new H){if($.messageKey!==void 0)k.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)wQ.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??vz();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=k.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=wQ.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 uQ.fromPartial($??{})},fromPartial($){let Q=vz();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?k.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?wQ.fromPartial($.sideBySideSurveyMetadata):void 0,Q}};function fz(){return{}}var wQ={encode($,Q=new H){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)jQ.encode($.analyticsData,Q.uint32(66).fork()).join();if($.metaAiAnalyticsData!==void 0)dQ.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??fz();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=jQ.decode(Z,Z.uint32(),K.analyticsData);continue}case 9:{if(J!==74)break;K.metaAiAnalyticsData=dQ.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 wQ.fromPartial($??{})},fromPartial($){let Q=fz();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?jQ.fromPartial($.analyticsData):void 0,Q.metaAiAnalyticsData=$.metaAiAnalyticsData!==void 0&&$.metaAiAnalyticsData!==null?dQ.fromPartial($.metaAiAnalyticsData):void 0,Q}};function _z(){return{}}var jQ={encode($,Q=new H){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??_z();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 jQ.fromPartial($??{})},fromPartial($){let Q=_z();return Q.tessaEvent=$.tessaEvent??void 0,Q.tessaSessionFbid=$.tessaSessionFbid??void 0,Q.simonSessionFbid=$.simonSessionFbid??void 0,Q}};function hz(){return{}}var dQ={encode($,Q=new H){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)bQ.encode($.ctaImpressionEvent,Q.uint32(42).fork()).join();if($.ctaClickEvent!==void 0)nQ.encode($.ctaClickEvent,Q.uint32(50).fork()).join();if($.cardImpressionEvent!==void 0)oQ.encode($.cardImpressionEvent,Q.uint32(58).fork()).join();if($.responseEvent!==void 0)iQ.encode($.responseEvent,Q.uint32(66).fork()).join();if($.abandonEvent!==void 0)cQ.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??hz();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=bQ.decode(Z,Z.uint32(),K.ctaImpressionEvent);continue}case 6:{if(J!==50)break;K.ctaClickEvent=nQ.decode(Z,Z.uint32(),K.ctaClickEvent);continue}case 7:{if(J!==58)break;K.cardImpressionEvent=oQ.decode(Z,Z.uint32(),K.cardImpressionEvent);continue}case 8:{if(J!==66)break;K.responseEvent=iQ.decode(Z,Z.uint32(),K.responseEvent);continue}case 9:{if(J!==74)break;K.abandonEvent=cQ.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 dQ.fromPartial($??{})},fromPartial($){let Q=hz();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?bQ.fromPartial($.ctaImpressionEvent):void 0,Q.ctaClickEvent=$.ctaClickEvent!==void 0&&$.ctaClickEvent!==null?nQ.fromPartial($.ctaClickEvent):void 0,Q.cardImpressionEvent=$.cardImpressionEvent!==void 0&&$.cardImpressionEvent!==null?oQ.fromPartial($.cardImpressionEvent):void 0,Q.responseEvent=$.responseEvent!==void 0&&$.responseEvent!==null?iQ.fromPartial($.responseEvent):void 0,Q.abandonEvent=$.abandonEvent!==void 0&&$.abandonEvent!==null?cQ.fromPartial($.abandonEvent):void 0,Q}};function lz(){return{}}var cQ={encode($,Q=new H){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??lz();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 cQ.fromPartial($??{})},fromPartial($){let Q=lz();return Q.abandonDwellTimeMsString=$.abandonDwellTimeMsString??void 0,Q}};function pz(){return{}}var nQ={encode($,Q=new H){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??pz();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 nQ.fromPartial($??{})},fromPartial($){let Q=pz();return Q.isSurveyExpired=$.isSurveyExpired??void 0,Q.clickDwellTimeMsString=$.clickDwellTimeMsString??void 0,Q}};function uz(){return{}}var bQ={encode($,Q=new H){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??uz();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 bQ.fromPartial($??{})},fromPartial($){let Q=uz();return Q.isSurveyExpired=$.isSurveyExpired??void 0,Q}};function wz(){return{}}var oQ={encode($,Q=new H){return Q},decode($,Q,q){let Z=$ instanceof Y?$:new Y($),X=Q===void 0?Z.len:Z.pos+Q,K=q??wz();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 oQ.fromPartial($??{})},fromPartial($){return wz()}};function jz(){return{}}var iQ={encode($,Q=new H){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??jz();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 iQ.fromPartial($??{})},fromPartial($){let Q=jz();return Q.responseDwellTimeMsString=$.responseDwellTimeMsString??void 0,Q.selectedResponseId=$.selectedResponseId??void 0,Q}};function dz(){return{}}var mQ={encode($,Q=new H){if($.participantsMetadata!==void 0&&$.participantsMetadata.length!==0)for(let q of $.participantsMetadata)s0.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??dz();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=s0.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 mQ.fromPartial($??{})},fromPartial($){let Q=dz();return Q.participantsMetadata=$.participantsMetadata?.map((q)=>s0.fromPartial(q))||void 0,Q}};function cz(){return{}}var s0={encode($,Q=new H){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??cz();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 s0.fromPartial($??{})},fromPartial($){let Q=cz();return Q.botFbid=$.botFbid??void 0,Q}};function nz(){return{}}var gQ={encode($,Q=new H){if($.participantsMetadata!==void 0&&$.participantsMetadata.length!==0)for(let q of $.participantsMetadata)s0.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??nz();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=s0.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 gQ.fromPartial($??{})},fromPartial($){let Q=nz();return Q.participantsMetadata=$.participantsMetadata?.map((q)=>s0.fromPartial(q))||void 0,Q}};function bz(){return{}}var rQ={encode($,Q=new H){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??bz();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 rQ.fromPartial($??{})},fromPartial($){let Q=bz();return Q.imagineType=$.imagineType??void 0,Q.shortPrompt=$.shortPrompt??void 0,Q}};function oz(){return{}}var tQ={encode($,Q=new H){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??oz();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 tQ.fromPartial($??{})},fromPartial($){let Q=oz();return Q.botBackend=$.botBackend??void 0,Q.toolsUsed=$.toolsUsed?.map((q)=>q)||void 0,Q.isThinking=$.isThinking??void 0,Q}};function iz(){return{}}var aQ={encode($,Q=new H){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??iz();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 aQ.fromPartial($??{})},fromPartial($){let Q=iz();return Q.type=$.type??void 0,Q}};function mz(){return{}}var sQ={encode($,Q=new H){if($.accounts!==void 0&&$.accounts.length!==0)for(let q of $.accounts)aQ.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??mz();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=aQ.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 sQ.fromPartial($??{})},fromPartial($){let Q=mz();return Q.accounts=$.accounts?.map((q)=>aQ.fromPartial(q))||void 0,Q.acAuthTokens=$.acAuthTokens??void 0,Q.acErrorCode=$.acErrorCode??void 0,Q}};function gz(){return{}}var P0={encode($,Q=new H){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??gz();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 P0.fromPartial($??{})},fromPartial($){let Q=gz();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 rz(){return{}}var u0={encode($,Q=new H){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??rz();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 u0.fromPartial($??{})},fromPartial($){let Q=rz();return Q.fact=$.fact??void 0,Q.factId=$.factId??void 0,Q}};function tz(){return{}}var eQ={encode($,Q=new H){if($.addedFacts!==void 0&&$.addedFacts.length!==0)for(let q of $.addedFacts)u0.encode(q,Q.uint32(10).fork()).join();if($.removedFacts!==void 0&&$.removedFacts.length!==0)for(let q of $.removedFacts)u0.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??tz();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=u0.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=u0.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 eQ.fromPartial($??{})},fromPartial($){let Q=tz();return Q.addedFacts=$.addedFacts?.map((q)=>u0.fromPartial(q))||void 0,Q.removedFacts=$.removedFacts?.map((q)=>u0.fromPartial(q))||void 0,Q.disclaimer=$.disclaimer??void 0,Q}};function az(){return{}}var $Z={encode($,Q=new H){if($.faceImages!==void 0&&$.faceImages.length!==0)for(let q of $.faceImages)P0.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??az();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=P0.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 $Z.fromPartial($??{})},fromPartial($){let Q=az();return Q.faceImages=$.faceImages?.map((q)=>P0.fromPartial(q))||void 0,Q}};function sz(){return{}}var QZ={encode($,Q=new H){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??sz();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 QZ.fromPartial($??{})},fromPartial($){let Q=sz();return Q.type=$.type??void 0,Q}};function ez(){return{}}var ZZ={encode($,Q=new H){if($.origins!==void 0&&$.origins.length!==0)for(let q of $.origins)QZ.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??ez();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=QZ.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 ZZ.fromPartial($??{})},fromPartial($){let Q=ez();return Q.origins=$.origins?.map((q)=>QZ.fromPartial(q))||void 0,Q}};function $5(){return{}}var JZ={encode($,Q=new H){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??$5();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 JZ.fromPartial($??{})},fromPartial($){let Q=$5();return Q.botEntryPointOrigin=$.botEntryPointOrigin??void 0,Q.forwardScore=$.forwardScore??void 0,Q}};function Q5(){return{}}var KZ={encode($,Q=new H){if($.personaId!==void 0)Q.uint32(18).string($.personaId);if($.pluginMetadata!==void 0)VZ.encode($.pluginMetadata,Q.uint32(26).fork()).join();if($.suggestedPromptMetadata!==void 0)TZ.encode($.suggestedPromptMetadata,Q.uint32(34).fork()).join();if($.invokerJid!==void 0)Q.uint32(42).string($.invokerJid);if($.sessionMetadata!==void 0)EZ.encode($.sessionMetadata,Q.uint32(50).fork()).join();if($.memuMetadata!==void 0)$Z.encode($.memuMetadata,Q.uint32(58).fork()).join();if($.timezone!==void 0)Q.uint32(66).string($.timezone);if($.reminderMetadata!==void 0)NZ.encode($.reminderMetadata,Q.uint32(74).fork()).join();if($.modelMetadata!==void 0)YZ.encode($.modelMetadata,Q.uint32(82).fork()).join();if($.messageDisclaimerText!==void 0)Q.uint32(90).string($.messageDisclaimerText);if($.progressIndicatorMetadata!==void 0)zZ.encode($.progressIndicatorMetadata,Q.uint32(98).fork()).join();if($.capabilityMetadata!==void 0)hQ.encode($.capabilityMetadata,Q.uint32(106).fork()).join();if($.imagineMetadata!==void 0)rQ.encode($.imagineMetadata,Q.uint32(114).fork()).join();if($.memoryMetadata!==void 0)eQ.encode($.memoryMetadata,Q.uint32(122).fork()).join();if($.renderingMetadata!==void 0)RZ.encode($.renderingMetadata,Q.uint32(130).fork()).join();if($.botMetricsMetadata!==void 0)qZ.encode($.botMetricsMetadata,Q.uint32(138).fork()).join();if($.botLinkedAccountsMetadata!==void 0)sQ.encode($.botLinkedAccountsMetadata,Q.uint32(146).fork()).join();if($.richResponseSourcesMetadata!==void 0)SZ.encode($.richResponseSourcesMetadata,Q.uint32(154).fork()).join();if($.aiConversationContext!==void 0)Q.uint32(162).bytes($.aiConversationContext);if($.botPromotionMessageMetadata!==void 0)PZ.encode($.botPromotionMessageMetadata,Q.uint32(170).fork()).join();if($.botModeSelectionMetadata!==void 0)XZ.encode($.botModeSelectionMetadata,Q.uint32(178).fork()).join();if($.botQuotaMetadata!==void 0)xZ.encode($.botQuotaMetadata,Q.uint32(186).fork()).join();if($.botAgeCollectionMetadata!==void 0)vQ.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)e0.encode($.verificationMetadata,Q.uint32(218).fork()).join();if($.unifiedResponseMutation!==void 0)yZ.encode($.unifiedResponseMutation,Q.uint32(226).fork()).join();if($.botMessageOriginMetadata!==void 0)ZZ.encode($.botMessageOriginMetadata,Q.uint32(234).fork()).join();if($.inThreadSurveyMetadata!==void 0)PK.encode($.inThreadSurveyMetadata,Q.uint32(242).fork()).join();if($.botThreadInfo!==void 0)MQ.encode($.botThreadInfo,Q.uint32(250).fork()).join();if($.regenerateMetadata!==void 0)YQ.encode($.regenerateMetadata,Q.uint32(258).fork()).join();if($.sessionTransparencyMetadata!==void 0)$9.encode($.sessionTransparencyMetadata,Q.uint32(266).fork()).join();if($.botDocumentMessageMetadata!==void 0)pQ.encode($.botDocumentMessageMetadata,Q.uint32(274).fork()).join();if($.botGroupMetadata!==void 0)mQ.encode($.botGroupMetadata,Q.uint32(282).fork()).join();if($.botRenderingConfigMetadata!==void 0)BZ.encode($.botRenderingConfigMetadata,Q.uint32(290).fork()).join();if($.botInfrastructureDiagnostics!==void 0)tQ.encode($.botInfrastructureDiagnostics,Q.uint32(298).fork()).join();if($.aiMediaCollectionMetadata!==void 0)JQ.encode($.aiMediaCollectionMetadata,Q.uint32(306).fork()).join();if($.commandMetadata!==void 0)lQ.encode($.commandMetadata,Q.uint32(314).fork()).join();if($.resolvedToolCallMetadata!==void 0)AZ.encode($.resolvedToolCallMetadata,Q.uint32(322).fork()).join();if($.subscriptionUpsellMetadata!==void 0)EQ.encode($.subscriptionUpsellMetadata,Q.uint32(330).fork()).join();if($.pttPromptMetadata!==void 0)LZ.encode($.pttPromptMetadata,Q.uint32(338).fork()).join();if($.botHistoryShareMetadata!==void 0)gQ.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??Q5();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=VZ.decode(Z,Z.uint32(),K.pluginMetadata);continue}case 4:{if(J!==34)break;K.suggestedPromptMetadata=TZ.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=EZ.decode(Z,Z.uint32(),K.sessionMetadata);continue}case 7:{if(J!==58)break;K.memuMetadata=$Z.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=NZ.decode(Z,Z.uint32(),K.reminderMetadata);continue}case 10:{if(J!==82)break;K.modelMetadata=YZ.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=zZ.decode(Z,Z.uint32(),K.progressIndicatorMetadata);continue}case 13:{if(J!==106)break;K.capabilityMetadata=hQ.decode(Z,Z.uint32(),K.capabilityMetadata);continue}case 14:{if(J!==114)break;K.imagineMetadata=rQ.decode(Z,Z.uint32(),K.imagineMetadata);continue}case 15:{if(J!==122)break;K.memoryMetadata=eQ.decode(Z,Z.uint32(),K.memoryMetadata);continue}case 16:{if(J!==130)break;K.renderingMetadata=RZ.decode(Z,Z.uint32(),K.renderingMetadata);continue}case 17:{if(J!==138)break;K.botMetricsMetadata=qZ.decode(Z,Z.uint32(),K.botMetricsMetadata);continue}case 18:{if(J!==146)break;K.botLinkedAccountsMetadata=sQ.decode(Z,Z.uint32(),K.botLinkedAccountsMetadata);continue}case 19:{if(J!==154)break;K.richResponseSourcesMetadata=SZ.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=PZ.decode(Z,Z.uint32(),K.botPromotionMessageMetadata);continue}case 22:{if(J!==178)break;K.botModeSelectionMetadata=XZ.decode(Z,Z.uint32(),K.botModeSelectionMetadata);continue}case 23:{if(J!==186)break;K.botQuotaMetadata=xZ.decode(Z,Z.uint32(),K.botQuotaMetadata);continue}case 24:{if(J!==194)break;K.botAgeCollectionMetadata=vQ.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=e0.decode(Z,Z.uint32(),K.verificationMetadata);continue}case 28:{if(J!==226)break;K.unifiedResponseMutation=yZ.decode(Z,Z.uint32(),K.unifiedResponseMutation);continue}case 29:{if(J!==234)break;K.botMessageOriginMetadata=ZZ.decode(Z,Z.uint32(),K.botMessageOriginMetadata);continue}case 30:{if(J!==242)break;K.inThreadSurveyMetadata=PK.decode(Z,Z.uint32(),K.inThreadSurveyMetadata);continue}case 31:{if(J!==250)break;K.botThreadInfo=MQ.decode(Z,Z.uint32(),K.botThreadInfo);continue}case 32:{if(J!==258)break;K.regenerateMetadata=YQ.decode(Z,Z.uint32(),K.regenerateMetadata);continue}case 33:{if(J!==266)break;K.sessionTransparencyMetadata=$9.decode(Z,Z.uint32(),K.sessionTransparencyMetadata);continue}case 34:{if(J!==274)break;K.botDocumentMessageMetadata=pQ.decode(Z,Z.uint32(),K.botDocumentMessageMetadata);continue}case 35:{if(J!==282)break;K.botGroupMetadata=mQ.decode(Z,Z.uint32(),K.botGroupMetadata);continue}case 36:{if(J!==290)break;K.botRenderingConfigMetadata=BZ.decode(Z,Z.uint32(),K.botRenderingConfigMetadata);continue}case 37:{if(J!==298)break;K.botInfrastructureDiagnostics=tQ.decode(Z,Z.uint32(),K.botInfrastructureDiagnostics);continue}case 38:{if(J!==306)break;K.aiMediaCollectionMetadata=JQ.decode(Z,Z.uint32(),K.aiMediaCollectionMetadata);continue}case 39:{if(J!==314)break;K.commandMetadata=lQ.decode(Z,Z.uint32(),K.commandMetadata);continue}case 40:{if(J!==322)break;K.resolvedToolCallMetadata=AZ.decode(Z,Z.uint32(),K.resolvedToolCallMetadata);continue}case 41:{if(J!==330)break;K.subscriptionUpsellMetadata=EQ.decode(Z,Z.uint32(),K.subscriptionUpsellMetadata);continue}case 42:{if(J!==338)break;K.pttPromptMetadata=LZ.decode(Z,Z.uint32(),K.pttPromptMetadata);continue}case 43:{if(J!==346)break;K.botHistoryShareMetadata=gQ.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 KZ.fromPartial($??{})},fromPartial($){let Q=Q5();return Q.personaId=$.personaId??void 0,Q.pluginMetadata=$.pluginMetadata!==void 0&&$.pluginMetadata!==null?VZ.fromPartial($.pluginMetadata):void 0,Q.suggestedPromptMetadata=$.suggestedPromptMetadata!==void 0&&$.suggestedPromptMetadata!==null?TZ.fromPartial($.suggestedPromptMetadata):void 0,Q.invokerJid=$.invokerJid??void 0,Q.sessionMetadata=$.sessionMetadata!==void 0&&$.sessionMetadata!==null?EZ.fromPartial($.sessionMetadata):void 0,Q.memuMetadata=$.memuMetadata!==void 0&&$.memuMetadata!==null?$Z.fromPartial($.memuMetadata):void 0,Q.timezone=$.timezone??void 0,Q.reminderMetadata=$.reminderMetadata!==void 0&&$.reminderMetadata!==null?NZ.fromPartial($.reminderMetadata):void 0,Q.modelMetadata=$.modelMetadata!==void 0&&$.modelMetadata!==null?YZ.fromPartial($.modelMetadata):void 0,Q.messageDisclaimerText=$.messageDisclaimerText??void 0,Q.progressIndicatorMetadata=$.progressIndicatorMetadata!==void 0&&$.progressIndicatorMetadata!==null?zZ.fromPartial($.progressIndicatorMetadata):void 0,Q.capabilityMetadata=$.capabilityMetadata!==void 0&&$.capabilityMetadata!==null?hQ.fromPartial($.capabilityMetadata):void 0,Q.imagineMetadata=$.imagineMetadata!==void 0&&$.imagineMetadata!==null?rQ.fromPartial($.imagineMetadata):void 0,Q.memoryMetadata=$.memoryMetadata!==void 0&&$.memoryMetadata!==null?eQ.fromPartial($.memoryMetadata):void 0,Q.renderingMetadata=$.renderingMetadata!==void 0&&$.renderingMetadata!==null?RZ.fromPartial($.renderingMetadata):void 0,Q.botMetricsMetadata=$.botMetricsMetadata!==void 0&&$.botMetricsMetadata!==null?qZ.fromPartial($.botMetricsMetadata):void 0,Q.botLinkedAccountsMetadata=$.botLinkedAccountsMetadata!==void 0&&$.botLinkedAccountsMetadata!==null?sQ.fromPartial($.botLinkedAccountsMetadata):void 0,Q.richResponseSourcesMetadata=$.richResponseSourcesMetadata!==void 0&&$.richResponseSourcesMetadata!==null?SZ.fromPartial($.richResponseSourcesMetadata):void 0,Q.aiConversationContext=$.aiConversationContext??void 0,Q.botPromotionMessageMetadata=$.botPromotionMessageMetadata!==void 0&&$.botPromotionMessageMetadata!==null?PZ.fromPartial($.botPromotionMessageMetadata):void 0,Q.botModeSelectionMetadata=$.botModeSelectionMetadata!==void 0&&$.botModeSelectionMetadata!==null?XZ.fromPartial($.botModeSelectionMetadata):void 0,Q.botQuotaMetadata=$.botQuotaMetadata!==void 0&&$.botQuotaMetadata!==null?xZ.fromPartial($.botQuotaMetadata):void 0,Q.botAgeCollectionMetadata=$.botAgeCollectionMetadata!==void 0&&$.botAgeCollectionMetadata!==null?vQ.fromPartial($.botAgeCollectionMetadata):void 0,Q.conversationStarterPromptId=$.conversationStarterPromptId??void 0,Q.botResponseId=$.botResponseId??void 0,Q.verificationMetadata=$.verificationMetadata!==void 0&&$.verificationMetadata!==null?e0.fromPartial($.verificationMetadata):void 0,Q.unifiedResponseMutation=$.unifiedResponseMutation!==void 0&&$.unifiedResponseMutation!==null?yZ.fromPartial($.unifiedResponseMutation):void 0,Q.botMessageOriginMetadata=$.botMessageOriginMetadata!==void 0&&$.botMessageOriginMetadata!==null?ZZ.fromPartial($.botMessageOriginMetadata):void 0,Q.inThreadSurveyMetadata=$.inThreadSurveyMetadata!==void 0&&$.inThreadSurveyMetadata!==null?PK.fromPartial($.inThreadSurveyMetadata):void 0,Q.botThreadInfo=$.botThreadInfo!==void 0&&$.botThreadInfo!==null?MQ.fromPartial($.botThreadInfo):void 0,Q.regenerateMetadata=$.regenerateMetadata!==void 0&&$.regenerateMetadata!==null?YQ.fromPartial($.regenerateMetadata):void 0,Q.sessionTransparencyMetadata=$.sessionTransparencyMetadata!==void 0&&$.sessionTransparencyMetadata!==null?$9.fromPartial($.sessionTransparencyMetadata):void 0,Q.botDocumentMessageMetadata=$.botDocumentMessageMetadata!==void 0&&$.botDocumentMessageMetadata!==null?pQ.fromPartial($.botDocumentMessageMetadata):void 0,Q.botGroupMetadata=$.botGroupMetadata!==void 0&&$.botGroupMetadata!==null?mQ.fromPartial($.botGroupMetadata):void 0,Q.botRenderingConfigMetadata=$.botRenderingConfigMetadata!==void 0&&$.botRenderingConfigMetadata!==null?BZ.fromPartial($.botRenderingConfigMetadata):void 0,Q.botInfrastructureDiagnostics=$.botInfrastructureDiagnostics!==void 0&&$.botInfrastructureDiagnostics!==null?tQ.fromPartial($.botInfrastructureDiagnostics):void 0,Q.aiMediaCollectionMetadata=$.aiMediaCollectionMetadata!==void 0&&$.aiMediaCollectionMetadata!==null?JQ.fromPartial($.aiMediaCollectionMetadata):void 0,Q.commandMetadata=$.commandMetadata!==void 0&&$.commandMetadata!==null?lQ.fromPartial($.commandMetadata):void 0,Q.resolvedToolCallMetadata=$.resolvedToolCallMetadata!==void 0&&$.resolvedToolCallMetadata!==null?AZ.fromPartial($.resolvedToolCallMetadata):void 0,Q.subscriptionUpsellMetadata=$.subscriptionUpsellMetadata!==void 0&&$.subscriptionUpsellMetadata!==null?EQ.fromPartial($.subscriptionUpsellMetadata):void 0,Q.pttPromptMetadata=$.pttPromptMetadata!==void 0&&$.pttPromptMetadata!==null?LZ.fromPartial($.pttPromptMetadata):void 0,Q.botHistoryShareMetadata=$.botHistoryShareMetadata!==void 0&&$.botHistoryShareMetadata!==null?gQ.fromPartial($.botHistoryShareMetadata):void 0,Q.internalMetadata=$.internalMetadata??void 0,Q}};function Z5(){return{}}var qZ={encode($,Q=new H){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??Z5();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 qZ.fromPartial($??{})},fromPartial($){let Q=Z5();return Q.destinationId=$.destinationId??void 0,Q.destinationEntryPoint=$.destinationEntryPoint??void 0,Q.threadOrigin=$.threadOrigin??void 0,Q}};function J5(){return{}}var XZ={encode($,Q=new H){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??J5();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 XZ.fromPartial($??{})},fromPartial($){let Q=J5();return Q.mode=$.mode?.map((q)=>q)||void 0,Q.overrideMode=$.overrideMode?.map((q)=>q)||void 0,Q}};function K5(){return{}}var YZ={encode($,Q=new H){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??K5();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 YZ.fromPartial($??{})},fromPartial($){let Q=K5();return Q.modelType=$.modelType??void 0,Q.premiumModelStatus=$.premiumModelStatus??void 0,Q.modelNameOverride=$.modelNameOverride??void 0,Q}};function q5(){return{}}var VZ={encode($,Q=new H){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)k.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??q5();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=k.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 VZ.fromPartial($??{})},fromPartial($){let Q=q5();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?k.fromPartial($.parentPluginMessageKey):void 0,Q.deprecatedField=$.deprecatedField??void 0,Q.parentPluginType=$.parentPluginType??void 0,Q.faviconCdnUrl=$.faviconCdnUrl??void 0,Q}};function X5(){return{}}var zZ={encode($,Q=new H){if($.progressDescription!==void 0)Q.uint32(10).string($.progressDescription);if($.stepsMetadata!==void 0&&$.stepsMetadata.length!==0)for(let q of $.stepsMetadata)HZ.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??X5();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=HZ.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 zZ.fromPartial($??{})},fromPartial($){let Q=X5();return Q.progressDescription=$.progressDescription??void 0,Q.stepsMetadata=$.stepsMetadata?.map((q)=>HZ.fromPartial(q))||void 0,Q.estimatedCompletionTime=$.estimatedCompletionTime??void 0,Q}};function Y5(){return{}}var HZ={encode($,Q=new H){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)UZ.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)CZ.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??Y5();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=UZ.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=CZ.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 HZ.fromPartial($??{})},fromPartial($){let Q=Y5();return Q.statusTitle=$.statusTitle??void 0,Q.statusBody=$.statusBody??void 0,Q.sourcesMetadata=$.sourcesMetadata?.map((q)=>UZ.fromPartial(q))||void 0,Q.status=$.status??void 0,Q.isReasoning=$.isReasoning??void 0,Q.isEnhancedSearch=$.isEnhancedSearch??void 0,Q.sections=$.sections?.map((q)=>CZ.fromPartial(q))||void 0,Q}};function V5(){return{}}var GZ={encode($,Q=new H){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??V5();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 GZ.fromPartial($??{})},fromPartial($){let Q=V5();return Q.title=$.title??void 0,Q.provider=$.provider??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.favIconUrl=$.favIconUrl??void 0,Q}};function z5(){return{}}var UZ={encode($,Q=new H){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??z5();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 UZ.fromPartial($??{})},fromPartial($){let Q=z5();return Q.sourceTitle=$.sourceTitle??void 0,Q.provider=$.provider??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q}};function H5(){return{}}var CZ={encode($,Q=new H){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)GZ.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??H5();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=GZ.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 CZ.fromPartial($??{})},fromPartial($){let Q=H5();return Q.sectionTitle=$.sectionTitle??void 0,Q.sectionBody=$.sectionBody??void 0,Q.sourcesMetadata=$.sourcesMetadata?.map((q)=>GZ.fromPartial(q))||void 0,Q}};function G5(){return{}}var PZ={encode($,Q=new H){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??G5();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 PZ.fromPartial($??{})},fromPartial($){let Q=G5();return Q.promotionType=$.promotionType??void 0,Q.buttonTitle=$.buttonTitle??void 0,Q}};function U5(){return{}}var DZ={encode($,Q=new H){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??U5();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 DZ.fromPartial($??{})},fromPartial($){let Q=U5();return Q.prompt=$.prompt??void 0,Q.promptId=$.promptId??void 0,Q}};function C5(){return{}}var FZ={encode($,Q=new H){if($.suggestions!==void 0&&$.suggestions.length!==0)for(let q of $.suggestions)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??C5();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=DZ.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 FZ.fromPartial($??{})},fromPartial($){let Q=C5();return Q.suggestions=$.suggestions?.map((q)=>DZ.fromPartial(q))||void 0,Q}};function P5(){return{}}var LZ={encode($,Q=new H){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??P5();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 LZ.fromPartial($??{})},fromPartial($){let Q=P5();return Q.transcript=$.transcript??void 0,Q}};function D5(){return{}}var xZ={encode($,Q=new H){if($.botFeatureQuotaMetadata!==void 0&&$.botFeatureQuotaMetadata.length!==0)for(let q of $.botFeatureQuotaMetadata)kZ.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??D5();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=kZ.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 xZ.fromPartial($??{})},fromPartial($){let Q=D5();return Q.botFeatureQuotaMetadata=$.botFeatureQuotaMetadata?.map((q)=>kZ.fromPartial(q))||void 0,Q}};function F5(){return{}}var kZ={encode($,Q=new H){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??F5();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 kZ.fromPartial($??{})},fromPartial($){let Q=F5();return Q.featureType=$.featureType??void 0,Q.remainingQuota=$.remainingQuota??void 0,Q.expirationTimestamp=$.expirationTimestamp??void 0,Q}};function L5(){return{}}var NZ={encode($,Q=new H){if($.requestMessageKey!==void 0)k.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??L5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestMessageKey=k.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 NZ.fromPartial($??{})},fromPartial($){let Q=L5();return Q.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?k.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 x5(){return{}}var BZ={encode($,Q=new H){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??x5();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 BZ.fromPartial($??{})},fromPartial($){let Q=x5();return Q.bloksVersioningId=$.bloksVersioningId??void 0,Q.pixelDensity=$.pixelDensity??void 0,Q}};function k5(){return{}}var RZ={encode($,Q=new H){if($.keywords!==void 0&&$.keywords.length!==0)for(let q of $.keywords)OZ.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??k5();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=OZ.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 RZ.fromPartial($??{})},fromPartial($){let Q=k5();return Q.keywords=$.keywords?.map((q)=>OZ.fromPartial(q))||void 0,Q}};function N5(){return{}}var OZ={encode($,Q=new H){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??N5();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 OZ.fromPartial($??{})},fromPartial($){let Q=N5();return Q.value=$.value??void 0,Q.associatedPrompts=$.associatedPrompts?.map((q)=>q)||void 0,Q}};function B5(){return{}}var AZ={encode($,Q=new H){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??B5();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 AZ.fromPartial($??{})},fromPartial($){let Q=B5();return Q.toolCallId=$.toolCallId??void 0,Q.resolutionDataSerialized=$.resolutionDataSerialized??void 0,Q}};function R5(){return{}}var EZ={encode($,Q=new H){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??R5();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 EZ.fromPartial($??{})},fromPartial($){let Q=R5();return Q.sessionId=$.sessionId??void 0,Q.sessionSource=$.sessionSource??void 0,Q}};function O5(){return{}}var e0={encode($,Q=new H){if($.proofs!==void 0&&$.proofs.length!==0)for(let q of $.proofs)MZ.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??O5();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=MZ.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 e0.fromPartial($??{})},fromPartial($){let Q=O5();return Q.proofs=$.proofs?.map((q)=>MZ.fromPartial(q))||void 0,Q}};function A5(){return{}}var MZ={encode($,Q=new H){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)WZ.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??A5();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=WZ.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 MZ.fromPartial($??{})},fromPartial($){let Q=A5();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)=>WZ.fromPartial(q))||void 0,Q}};function E5(){return{}}var WZ={encode($,Q=new H){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??E5();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 WZ.fromPartial($??{})},fromPartial($){let Q=E5();return Q.useCase=$.useCase??void 0,Q.ski=$.ski??void 0,Q}};function M5(){return{}}var SZ={encode($,Q=new H){if($.sources!==void 0&&$.sources.length!==0)for(let q of $.sources)IZ.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??M5();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=IZ.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 SZ.fromPartial($??{})},fromPartial($){let Q=M5();return Q.sources=$.sources?.map((q)=>IZ.fromPartial(q))||void 0,Q}};function W5(){return{}}var IZ={encode($,Q=new H){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??W5();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 IZ.fromPartial($??{})},fromPartial($){let Q=W5();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 S5(){return{}}var TZ={encode($,Q=new H){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)FZ.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??S5();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=FZ.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 TZ.fromPartial($??{})},fromPartial($){let Q=S5();return Q.suggestedPrompts=$.suggestedPrompts?.map((q)=>q)||void 0,Q.selectedPromptIndex=$.selectedPromptIndex??void 0,Q.promptSuggestions=$.promptSuggestions!==void 0&&$.promptSuggestions!==null?FZ.fromPartial($.promptSuggestions):void 0,Q.selectedPromptId=$.selectedPromptId??void 0,Q}};function I5(){return{}}var yZ={encode($,Q=new H){if($.sbsMetadata!==void 0)fZ.encode($.sbsMetadata,Q.uint32(10).fork()).join();if($.mediaDetailsMetadataList!==void 0&&$.mediaDetailsMetadataList.length!==0)for(let q of $.mediaDetailsMetadataList)vZ.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??I5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sbsMetadata=fZ.decode(Z,Z.uint32(),K.sbsMetadata);continue}case 2:{if(J!==18)break;if(K.mediaDetailsMetadataList===void 0)K.mediaDetailsMetadataList=[];let V=vZ.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 yZ.fromPartial($??{})},fromPartial($){let Q=I5();return Q.sbsMetadata=$.sbsMetadata!==void 0&&$.sbsMetadata!==null?fZ.fromPartial($.sbsMetadata):void 0,Q.mediaDetailsMetadataList=$.mediaDetailsMetadataList?.map((q)=>vZ.fromPartial(q))||void 0,Q}};function T5(){return{}}var vZ={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);if($.highResMedia!==void 0)P0.encode($.highResMedia,Q.uint32(18).fork()).join();if($.previewMedia!==void 0)P0.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??T5();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=P0.decode(Z,Z.uint32(),K.highResMedia);continue}case 3:{if(J!==26)break;K.previewMedia=P0.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 vZ.fromPartial($??{})},fromPartial($){let Q=T5();return Q.id=$.id??void 0,Q.highResMedia=$.highResMedia!==void 0&&$.highResMedia!==null?P0.fromPartial($.highResMedia):void 0,Q.previewMedia=$.previewMedia!==void 0&&$.previewMedia!==null?P0.fromPartial($.previewMedia):void 0,Q}};function y5(){return{}}var fZ={encode($,Q=new H){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??y5();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 fZ.fromPartial($??{})},fromPartial($){let Q=y5();return Q.primaryResponseId=$.primaryResponseId??void 0,Q.surveyCtaHasRendered=$.surveyCtaHasRendered??void 0,Q}};function v5(){return{}}var $$={encode($,Q=new H){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)_Z.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??v5();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=_Z.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 $$.fromPartial($??{})},fromPartial($){let Q=v5();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)=>_Z.fromPartial(q))||void 0,Q.callType=$.callType??void 0,Q}};function f5(){return{}}var _Z={encode($,Q=new H){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??f5();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 _Z.fromPartial($??{})},fromPartial($){let Q=f5();return Q.userJid=$.userJid??void 0,Q.callResult=$.callResult??void 0,Q}};function _5(){return{}}var OY={encode($,Q=new H){if($.leaf!==void 0)W0.encode($.leaf,Q.uint32(10).fork()).join();if($.intermediate!==void 0)W0.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??_5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.leaf=W0.decode(Z,Z.uint32(),K.leaf);continue}case 2:{if(J!==18)break;K.intermediate=W0.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 OY.fromPartial($??{})},fromPartial($){let Q=_5();return Q.leaf=$.leaf!==void 0&&$.leaf!==null?W0.fromPartial($.leaf):void 0,Q.intermediate=$.intermediate!==void 0&&$.intermediate!==null?W0.fromPartial($.intermediate):void 0,Q}};function h5(){return{}}var W0={encode($,Q=new H){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??h5();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 W0.fromPartial($??{})},fromPartial($){let Q=h5();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q}};function l5(){return{}}var AY={encode($,Q=new H){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??l5();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 AY.fromPartial($??{})},fromPartial($){let Q=l5();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 p5(){return{}}var Q$={encode($,Q=new H){if($.hideLockedChats!==void 0)Q.uint32(8).bool($.hideLockedChats);if($.secretCode!==void 0)QY.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??p5();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=QY.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 Q$.fromPartial($??{})},fromPartial($){let Q=p5();return Q.hideLockedChats=$.hideLockedChats??void 0,Q.secretCode=$.secretCode!==void 0&&$.secretCode!==null?QY.fromPartial($.secretCode):void 0,Q}};function u5(){return{}}var mB={encode($,Q=new H){if($.draftMessage!==void 0)hZ.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??u5();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.draftMessage=hZ.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 mB.fromPartial($??{})},fromPartial($){let Q=u5();return Q.draftMessage=$.draftMessage!==void 0&&$.draftMessage!==null?hZ.fromPartial($.draftMessage):void 0,Q}};function w5(){return{}}var hZ={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);if($.omittedUrl!==void 0)Q.uint32(18).string($.omittedUrl);if($.ctwaContextLinkData!==void 0)pZ.encode($.ctwaContextLinkData,Q.uint32(26).fork()).join();if($.ctwaContext!==void 0)lZ.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??w5();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=pZ.decode(Z,Z.uint32(),K.ctwaContextLinkData);continue}case 4:{if(J!==34)break;K.ctwaContext=lZ.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 hZ.fromPartial($??{})},fromPartial($){let Q=w5();return Q.text=$.text??void 0,Q.omittedUrl=$.omittedUrl??void 0,Q.ctwaContextLinkData=$.ctwaContextLinkData!==void 0&&$.ctwaContextLinkData!==null?pZ.fromPartial($.ctwaContextLinkData):void 0,Q.ctwaContext=$.ctwaContext!==void 0&&$.ctwaContext!==null?lZ.fromPartial($.ctwaContext):void 0,Q.timestamp=$.timestamp??void 0,Q}};function j5(){return{}}var lZ={encode($,Q=new H){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??j5();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 lZ.fromPartial($??{})},fromPartial($){let Q=j5();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 d5(){return{}}var pZ={encode($,Q=new H){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??d5();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 pZ.fromPartial($??{})},fromPartial($){let Q=d5();return Q.context=$.context??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.icebreaker=$.icebreaker??void 0,Q.phone=$.phone??void 0,Q}};function c5(){return{}}var uZ={encode($,Q=new H){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??c5();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 uZ.fromPartial($??{})},fromPartial($){let Q=c5();return Q.title=$.title??void 0,Q.subtitle=$.subtitle??void 0,Q.cmsId=$.cmsId??void 0,Q.imageUrl=$.imageUrl??void 0,Q}};function n5(){return{}}var gB={encode($,Q=new H){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??n5();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 gB.fromPartial($??{})},fromPartial($){let Q=n5();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 b5(){return{}}var EY={encode($,Q=new H){if($.username!==void 0)Q.uint32(8).uint64($.username);if($.passive!==void 0)Q.uint32(24).bool($.passive);if($.userAgent!==void 0)cZ.encode($.userAgent,Q.uint32(42).fork()).join();if($.webInfo!==void 0)bZ.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)wZ.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)jZ.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)dZ.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??b5();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=cZ.decode(Z,Z.uint32(),K.userAgent);continue}case 6:{if(J!==50)break;K.webInfo=bZ.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=wZ.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=jZ.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=dZ.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 EY.fromPartial($??{})},fromPartial($){let Q=b5();return Q.username=$.username??void 0,Q.passive=$.passive??void 0,Q.userAgent=$.userAgent!==void 0&&$.userAgent!==null?cZ.fromPartial($.userAgent):void 0,Q.webInfo=$.webInfo!==void 0&&$.webInfo!==null?bZ.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?wZ.fromPartial($.dnsSource):void 0,Q.connectAttemptCount=$.connectAttemptCount??void 0,Q.device=$.device??void 0,Q.devicePairingData=$.devicePairingData!==void 0&&$.devicePairingData!==null?jZ.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?dZ.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 o5(){return{}}var wZ={encode($,Q=new H){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??o5();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 wZ.fromPartial($??{})},fromPartial($){let Q=o5();return Q.dnsMethod=$.dnsMethod??void 0,Q.appCached=$.appCached??void 0,Q}};function i5(){return{}}var jZ={encode($,Q=new H){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??i5();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 jZ.fromPartial($??{})},fromPartial($){let Q=i5();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 m5(){return{}}var dZ={encode($,Q=new H){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??m5();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 dZ.fromPartial($??{})},fromPartial($){let Q=m5();return Q.accountId=$.accountId??void 0,Q.token=$.token??void 0,Q.enableReadReceipts=$.enableReadReceipts??void 0,Q}};function g5(){return{}}var cZ={encode($,Q=new H){if($.platform!==void 0)Q.uint32(8).int32($.platform);if($.appVersion!==void 0)nZ.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??g5();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=nZ.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 cZ.fromPartial($??{})},fromPartial($){let Q=g5();return Q.platform=$.platform??void 0,Q.appVersion=$.appVersion!==void 0&&$.appVersion!==null?nZ.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 r5(){return{}}var nZ={encode($,Q=new H){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??r5();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 nZ.fromPartial($??{})},fromPartial($){let Q=r5();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 t5(){return{}}var bZ={encode($,Q=new H){if($.refToken!==void 0)Q.uint32(10).string($.refToken);if($.version!==void 0)Q.uint32(18).string($.version);if($.webdPayload!==void 0)oZ.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??t5();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=oZ.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 bZ.fromPartial($??{})},fromPartial($){let Q=t5();return Q.refToken=$.refToken??void 0,Q.version=$.version??void 0,Q.webdPayload=$.webdPayload!==void 0&&$.webdPayload!==null?oZ.fromPartial($.webdPayload):void 0,Q.webSubPlatform=$.webSubPlatform??void 0,Q.browser=$.browser??void 0,Q.browserVersion=$.browserVersion??void 0,Q}};function a5(){return{}}var oZ={encode($,Q=new H){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??a5();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 oZ.fromPartial($??{})},fromPartial($){let Q=a5();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 s5(){return{}}var iZ={encode($,Q=new H){if($.collectionMutations!==void 0&&$.collectionMutations.length!==0)for(let q of $.collectionMutations)mZ.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??s5();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=mZ.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 iZ.fromPartial($??{})},fromPartial($){let Q=s5();return Q.collectionMutations=$.collectionMutations?.map((q)=>mZ.fromPartial(q))||void 0,Q}};function e5(){return{}}var mZ={encode($,Q=new H){if($.collection!==void 0)Q.uint32(10).string($.collection);if($.mutations!==void 0&&$.mutations.length!==0)for(let q of $.mutations)gZ.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??e5();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=gZ.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 mZ.fromPartial($??{})},fromPartial($){let Q=e5();return Q.collection=$.collection??void 0,Q.mutations=$.mutations?.map((q)=>gZ.fromPartial(q))||void 0,Q}};function $H(){return{}}var gZ={encode($,Q=new H){if($.index!==void 0)M$.encode($.index,Q.uint32(10).fork()).join();if($.value!==void 0)W$.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??$H();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.index=M$.decode(Z,Z.uint32(),K.index);continue}case 2:{if(J!==18)break;K.value=W$.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 gZ.fromPartial($??{})},fromPartial($){let Q=$H();return Q.index=$.index!==void 0&&$.index!==null?M$.fromPartial($.index):void 0,Q.value=$.value!==void 0&&$.value!==null?W$.fromPartial($.value):void 0,Q.dirtyVersion=$.dirtyVersion??void 0,Q.operation=$.operation??void 0,Q}};function QH(){return{}}var rB={encode($,Q=new H){if($.version!==void 0)Q.uint32(8).uint32($.version);if($.localFingerprint!==void 0)d0.encode($.localFingerprint,Q.uint32(18).fork()).join();if($.remoteFingerprint!==void 0)d0.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??QH();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=d0.decode(Z,Z.uint32(),K.localFingerprint);continue}case 3:{if(J!==26)break;K.remoteFingerprint=d0.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 rB.fromPartial($??{})},fromPartial($){let Q=QH();return Q.version=$.version??void 0,Q.localFingerprint=$.localFingerprint!==void 0&&$.localFingerprint!==null?d0.fromPartial($.localFingerprint):void 0,Q.remoteFingerprint=$.remoteFingerprint!==void 0&&$.remoteFingerprint!==null?d0.fromPartial($.remoteFingerprint):void 0,Q}};function ZH(){return{}}var rZ={encode($,Q=new H){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??ZH();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 rZ.fromPartial($??{})},fromPartial($){let Q=ZH();return Q.commandType=$.commandType??void 0,Q.offset=$.offset??void 0,Q.length=$.length??void 0,Q.validationToken=$.validationToken??void 0,Q}};function JH(){return{}}var tZ={encode($,Q=new H){if($.commentParentKey!==void 0)k.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??JH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.commentParentKey=k.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 tZ.fromPartial($??{})},fromPartial($){let Q=JH();return Q.commentParentKey=$.commentParentKey!==void 0&&$.commentParentKey!==null?k.fromPartial($.commentParentKey):void 0,Q.replyCount=$.replyCount??void 0,Q}};function KH(){return{}}var aZ={encode($,Q=new H){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??KH();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 aZ.fromPartial($??{})},fromPartial($){let Q=KH();return Q.hash=$.hash??void 0,Q}};function qH(){return{}}var tB={encode($,Q=new H){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??qH();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 tB.fromPartial($??{})},fromPartial($){let Q=qH();return Q.publicKey=$.publicKey??void 0,Q.deviceType=$.deviceType??void 0,Q.ref=$.ref??void 0,Q}};function XH(){return{}}var aB={encode($,Q=new H){if(globalThis.Object.entries($.field||{}).forEach(([q,Z])=>{FY.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??XH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;let V=FY.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 aB.fromPartial($??{})},fromPartial($){let Q=XH();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)]=S0.fromPartial(X);return q},{}),Q.version=$.version??void 0,Q}};function YH(){return{}}var FY={encode($,Q=new H){if($.key!==void 0)Q.uint32(8).uint32($.key);if($.value!==void 0)S0.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??YH();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=S0.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 FY.fromPartial($??{})},fromPartial($){let Q=YH();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?S0.fromPartial($.value):void 0,Q}};function VH(){return{}}var sB={encode($,Q=new H){if($.payload!==void 0)VJ.encode($.payload,Q.uint32(10).fork()).join();if($.metadata!==void 0)YJ.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??VH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.payload=VJ.decode(Z,Z.uint32(),K.payload);continue}case 2:{if(J!==18)break;K.metadata=YJ.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 sB.fromPartial($??{})},fromPartial($){let Q=VH();return Q.payload=$.payload!==void 0&&$.payload!==null?VJ.fromPartial($.payload):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?YJ.fromPartial($.metadata):void 0,Q}};function zH(){return{}}var sZ={encode($,Q=new H){if($.revoke!==void 0)CJ.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??zH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.revoke=CJ.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 sZ.fromPartial($??{})},fromPartial($){let Q=zH();return Q.revoke=$.revoke!==void 0&&$.revoke!==null?CJ.fromPartial($.revoke):void 0,Q}};function HH(){return{}}var eZ={encode($,Q=new H){if($.audio!==void 0)b.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??HH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.audio=b.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 eZ.fromPartial($??{})},fromPartial($){let Q=HH();return Q.audio=$.audio!==void 0&&$.audio!==null?b.fromPartial($.audio):void 0,Q.ptt=$.ptt??void 0,Q}};function GH(){return{}}var Z$={encode($,Q=new H){if($.contact!==void 0)b.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??GH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contact=b.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 Z$.fromPartial($??{})},fromPartial($){let Q=GH();return Q.contact=$.contact!==void 0&&$.contact!==null?b.fromPartial($.contact):void 0,Q}};function UH(){return{}}var $J={encode($,Q=new H){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let q of $.contacts)Z$.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??UH();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=Z$.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 $J.fromPartial($??{})},fromPartial($){let Q=UH();return Q.displayName=$.displayName??void 0,Q.contacts=$.contacts?.map((q)=>Z$.fromPartial(q))||void 0,Q}};function CH(){return{}}var QJ={encode($,Q=new H){if($.messageText!==void 0)g.encode($.messageText,Q.uint32(10).fork()).join();if($.imageMessage!==void 0)K$.encode($.imageMessage,Q.uint32(18).fork()).join();if($.contactMessage!==void 0)Z$.encode($.contactMessage,Q.uint32(26).fork()).join();if($.locationMessage!==void 0)XJ.encode($.locationMessage,Q.uint32(34).fork()).join();if($.extendedTextMessage!==void 0)J$.encode($.extendedTextMessage,Q.uint32(42).fork()).join();if($.statusTextMessage!==void 0)DJ.encode($.statusTextMessage,Q.uint32(50).fork()).join();if($.documentMessage!==void 0)ZJ.encode($.documentMessage,Q.uint32(58).fork()).join();if($.audioMessage!==void 0)eZ.encode($.audioMessage,Q.uint32(66).fork()).join();if($.videoMessage!==void 0)X$.encode($.videoMessage,Q.uint32(74).fork()).join();if($.contactsArrayMessage!==void 0)$J.encode($.contactsArrayMessage,Q.uint32(82).fork()).join();if($.liveLocationMessage!==void 0)qJ.encode($.liveLocationMessage,Q.uint32(90).fork()).join();if($.stickerMessage!==void 0)FJ.encode($.stickerMessage,Q.uint32(98).fork()).join();if($.groupInviteMessage!==void 0)KJ.encode($.groupInviteMessage,Q.uint32(106).fork()).join();if($.viewOnceMessage!==void 0)xJ.encode($.viewOnceMessage,Q.uint32(114).fork()).join();if($.reactionMessage!==void 0)UJ.encode($.reactionMessage,Q.uint32(130).fork()).join();if($.pollCreationMessage!==void 0)HJ.encode($.pollCreationMessage,Q.uint32(138).fork()).join();if($.pollUpdateMessage!==void 0)GJ.encode($.pollUpdateMessage,Q.uint32(146).fork()).join();if($.editMessage!==void 0)JJ.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??CH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageText=g.decode(Z,Z.uint32(),K.messageText);continue}case 2:{if(J!==18)break;K.imageMessage=K$.decode(Z,Z.uint32(),K.imageMessage);continue}case 3:{if(J!==26)break;K.contactMessage=Z$.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=J$.decode(Z,Z.uint32(),K.extendedTextMessage);continue}case 6:{if(J!==50)break;K.statusTextMessage=DJ.decode(Z,Z.uint32(),K.statusTextMessage);continue}case 7:{if(J!==58)break;K.documentMessage=ZJ.decode(Z,Z.uint32(),K.documentMessage);continue}case 8:{if(J!==66)break;K.audioMessage=eZ.decode(Z,Z.uint32(),K.audioMessage);continue}case 9:{if(J!==74)break;K.videoMessage=X$.decode(Z,Z.uint32(),K.videoMessage);continue}case 10:{if(J!==82)break;K.contactsArrayMessage=$J.decode(Z,Z.uint32(),K.contactsArrayMessage);continue}case 11:{if(J!==90)break;K.liveLocationMessage=qJ.decode(Z,Z.uint32(),K.liveLocationMessage);continue}case 12:{if(J!==98)break;K.stickerMessage=FJ.decode(Z,Z.uint32(),K.stickerMessage);continue}case 13:{if(J!==106)break;K.groupInviteMessage=KJ.decode(Z,Z.uint32(),K.groupInviteMessage);continue}case 14:{if(J!==114)break;K.viewOnceMessage=xJ.decode(Z,Z.uint32(),K.viewOnceMessage);continue}case 16:{if(J!==130)break;K.reactionMessage=UJ.decode(Z,Z.uint32(),K.reactionMessage);continue}case 17:{if(J!==138)break;K.pollCreationMessage=HJ.decode(Z,Z.uint32(),K.pollCreationMessage);continue}case 18:{if(J!==146)break;K.pollUpdateMessage=GJ.decode(Z,Z.uint32(),K.pollUpdateMessage);continue}case 19:{if(J!==154)break;K.editMessage=JJ.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 QJ.fromPartial($??{})},fromPartial($){let Q=CH();return Q.messageText=$.messageText!==void 0&&$.messageText!==null?g.fromPartial($.messageText):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?K$.fromPartial($.imageMessage):void 0,Q.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?Z$.fromPartial($.contactMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?XJ.fromPartial($.locationMessage):void 0,Q.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?J$.fromPartial($.extendedTextMessage):void 0,Q.statusTextMessage=$.statusTextMessage!==void 0&&$.statusTextMessage!==null?DJ.fromPartial($.statusTextMessage):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?ZJ.fromPartial($.documentMessage):void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?eZ.fromPartial($.audioMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?X$.fromPartial($.videoMessage):void 0,Q.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?$J.fromPartial($.contactsArrayMessage):void 0,Q.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?qJ.fromPartial($.liveLocationMessage):void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?FJ.fromPartial($.stickerMessage):void 0,Q.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?KJ.fromPartial($.groupInviteMessage):void 0,Q.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?xJ.fromPartial($.viewOnceMessage):void 0,Q.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?UJ.fromPartial($.reactionMessage):void 0,Q.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?HJ.fromPartial($.pollCreationMessage):void 0,Q.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?GJ.fromPartial($.pollUpdateMessage):void 0,Q.editMessage=$.editMessage!==void 0&&$.editMessage!==null?JJ.fromPartial($.editMessage):void 0,Q}};function PH(){return{}}var ZJ={encode($,Q=new H){if($.document!==void 0)b.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??PH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.document=b.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 ZJ.fromPartial($??{})},fromPartial($){let Q=PH();return Q.document=$.document!==void 0&&$.document!==null?b.fromPartial($.document):void 0,Q.fileName=$.fileName??void 0,Q}};function DH(){return{}}var JJ={encode($,Q=new H){if($.key!==void 0)k.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)g.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??DH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.message=g.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 JJ.fromPartial($??{})},fromPartial($){let Q=DH();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?g.fromPartial($.message):void 0,Q.timestampMs=$.timestampMs??void 0,Q}};function FH(){return{}}var J$={encode($,Q=new H){if($.text!==void 0)g.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)b.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??FH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=g.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=b.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 J$.fromPartial($??{})},fromPartial($){let Q=FH();return Q.text=$.text!==void 0&&$.text!==null?g.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?b.fromPartial($.thumbnail):void 0,Q.previewType=$.previewType??void 0,Q}};function LH(){return{}}var KJ={encode($,Q=new H){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)g.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??LH();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=g.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 KJ.fromPartial($??{})},fromPartial($){let Q=LH();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?g.fromPartial($.caption):void 0,Q}};function xH(){return{}}var K$={encode($,Q=new H){if($.image!==void 0)b.encode($.image,Q.uint32(10).fork()).join();if($.caption!==void 0)g.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??xH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.image=b.decode(Z,Z.uint32(),K.image);continue}case 2:{if(J!==18)break;K.caption=g.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 K$.fromPartial($??{})},fromPartial($){let Q=xH();return Q.image=$.image!==void 0&&$.image!==null?b.fromPartial($.image):void 0,Q.caption=$.caption!==void 0&&$.caption!==null?g.fromPartial($.caption):void 0,Q}};function kH(){return{}}var eB={encode($,Q=new H){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let q of $.polygonVertices)zJ.encode(q,Q.uint32(10).fork()).join();if($.location!==void 0)x0.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??kH();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=zJ.decode(Z,Z.uint32());if(V!==void 0)K.polygonVertices.push(V);continue}case 2:{if(J!==18)break;K.location=x0.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 eB.fromPartial($??{})},fromPartial($){let Q=kH();return Q.polygonVertices=$.polygonVertices?.map((q)=>zJ.fromPartial(q))||void 0,Q.location=$.location!==void 0&&$.location!==null?x0.fromPartial($.location):void 0,Q}};function NH(){return{}}var qJ={encode($,Q=new H){if($.location!==void 0)x0.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)g.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??NH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.location=x0.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=g.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 qJ.fromPartial($??{})},fromPartial($){let Q=NH();return Q.location=$.location!==void 0&&$.location!==null?x0.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?g.fromPartial($.caption):void 0,Q.sequenceNumber=$.sequenceNumber??void 0,Q.timeOffset=$.timeOffset??void 0,Q}};function BH(){return{}}var x0={encode($,Q=new H){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??BH();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 x0.fromPartial($??{})},fromPartial($){let Q=BH();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q}};function RH(){return{}}var XJ={encode($,Q=new H){if($.location!==void 0)x0.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??RH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.location=x0.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=RH();return Q.location=$.location!==void 0&&$.location!==null?x0.fromPartial($.location):void 0,Q.address=$.address??void 0,Q}};function OH(){return{}}var $R={encode($,Q=new H){if($.protocol!==void 0)b.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??OH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.protocol=b.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 $R.fromPartial($??{})},fromPartial($){let Q=OH();return Q.protocol=$.protocol!==void 0&&$.protocol!==null?b.fromPartial($.protocol):void 0,Q}};function AH(){return{}}var YJ={encode($,Q=new H){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??AH();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 YJ.fromPartial($??{})},fromPartial($){let Q=AH();return Q.specialTextSize=$.specialTextSize??void 0,Q}};function EH(){return{}}var q$={encode($,Q=new H){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??EH();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 q$.fromPartial($??{})},fromPartial($){let Q=EH();return Q.optionName=$.optionName??void 0,Q}};function MH(){return{}}var VJ={encode($,Q=new H){if($.content!==void 0)QJ.encode($.content,Q.uint32(10).fork()).join();if($.applicationData!==void 0)sZ.encode($.applicationData,Q.uint32(18).fork()).join();if($.signal!==void 0)PJ.encode($.signal,Q.uint32(26).fork()).join();if($.subProtocol!==void 0)LJ.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??MH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.content=QJ.decode(Z,Z.uint32(),K.content);continue}case 2:{if(J!==18)break;K.applicationData=sZ.decode(Z,Z.uint32(),K.applicationData);continue}case 3:{if(J!==26)break;K.signal=PJ.decode(Z,Z.uint32(),K.signal);continue}case 4:{if(J!==34)break;K.subProtocol=LJ.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 VJ.fromPartial($??{})},fromPartial($){let Q=MH();return Q.content=$.content!==void 0&&$.content!==null?QJ.fromPartial($.content):void 0,Q.applicationData=$.applicationData!==void 0&&$.applicationData!==null?sZ.fromPartial($.applicationData):void 0,Q.signal=$.signal!==void 0&&$.signal!==null?PJ.fromPartial($.signal):void 0,Q.subProtocol=$.subProtocol!==void 0&&$.subProtocol!==null?LJ.fromPartial($.subProtocol):void 0,Q}};function WH(){return{}}var zJ={encode($,Q=new H){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??WH();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 zJ.fromPartial($??{})},fromPartial($){let Q=WH();return Q.x=$.x??void 0,Q.y=$.y??void 0,Q}};function SH(){return{}}var QR={encode($,Q=new H){if($.pollOption!==void 0&&$.pollOption.length!==0)for(let q of $.pollOption)q$.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??SH();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=q$.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 QR.fromPartial($??{})},fromPartial($){let Q=SH();return Q.pollOption=$.pollOption?.map((q)=>q$.fromPartial(q))||void 0,Q}};function IH(){return{}}var HJ={encode($,Q=new H){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)q$.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??IH();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=q$.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 HJ.fromPartial($??{})},fromPartial($){let Q=IH();return Q.encKey=$.encKey??void 0,Q.name=$.name??void 0,Q.options=$.options?.map((q)=>q$.fromPartial(q))||void 0,Q.selectableOptionsCount=$.selectableOptionsCount??void 0,Q}};function TH(){return{}}var w0={encode($,Q=new H){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??TH();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 w0.fromPartial($??{})},fromPartial($){let Q=TH();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function yH(){return{}}var GJ={encode($,Q=new H){if($.pollCreationMessageKey!==void 0)k.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)w0.encode($.vote,Q.uint32(18).fork()).join();if($.addOption!==void 0)w0.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??yH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollCreationMessageKey=k.decode(Z,Z.uint32(),K.pollCreationMessageKey);continue}case 2:{if(J!==18)break;K.vote=w0.decode(Z,Z.uint32(),K.vote);continue}case 3:{if(J!==26)break;K.addOption=w0.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 GJ.fromPartial($??{})},fromPartial($){let Q=yH();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?k.fromPartial($.pollCreationMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?w0.fromPartial($.vote):void 0,Q.addOption=$.addOption!==void 0&&$.addOption!==null?w0.fromPartial($.addOption):void 0,Q}};function vH(){return{}}var ZR={encode($,Q=new H){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??vH();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 ZR.fromPartial($??{})},fromPartial($){let Q=vH();return Q.selectedOptions=$.selectedOptions?.map((q)=>q)||void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function fH(){return{}}var UJ={encode($,Q=new H){if($.key!==void 0)k.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??fH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 UJ.fromPartial($??{})},fromPartial($){let Q=fH();return Q.key=$.key!==void 0&&$.key!==null?k.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 _H(){return{}}var CJ={encode($,Q=new H){if($.key!==void 0)k.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??_H();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 CJ.fromPartial($??{})},fromPartial($){let Q=_H();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q}};function hH(){return{}}var PJ={encode($,Q=new H){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){}if(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($){return hH()}};function lH(){return{}}var DJ={encode($,Q=new H){if($.text!==void 0)J$.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??lH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=J$.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 DJ.fromPartial($??{})},fromPartial($){let Q=lH();return Q.text=$.text!==void 0&&$.text!==null?J$.fromPartial($.text):void 0,Q.textArgb=$.textArgb??void 0,Q.backgroundArgb=$.backgroundArgb??void 0,Q.font=$.font??void 0,Q}};function pH(){return{}}var FJ={encode($,Q=new H){if($.sticker!==void 0)b.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??pH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sticker=b.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 FJ.fromPartial($??{})},fromPartial($){let Q=pH();return Q.sticker=$.sticker!==void 0&&$.sticker!==null?b.fromPartial($.sticker):void 0,Q}};function uH(){return{}}var LJ={encode($,Q=new H){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??uH();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 LJ.fromPartial($??{})},fromPartial($){let Q=uH();return Q.futureProof=$.futureProof??void 0,Q}};function wH(){return{}}var X$={encode($,Q=new H){if($.video!==void 0)b.encode($.video,Q.uint32(10).fork()).join();if($.caption!==void 0)g.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??wH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.video=b.decode(Z,Z.uint32(),K.video);continue}case 2:{if(J!==18)break;K.caption=g.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 X$.fromPartial($??{})},fromPartial($){let Q=wH();return Q.video=$.video!==void 0&&$.video!==null?b.fromPartial($.video):void 0,Q.caption=$.caption!==void 0&&$.caption!==null?g.fromPartial($.caption):void 0,Q}};function jH(){return{}}var xJ={encode($,Q=new H){if($.imageMessage!==void 0)K$.encode($.imageMessage,Q.uint32(10).fork()).join();if($.videoMessage!==void 0)X$.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??jH();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.imageMessage=K$.decode(Z,Z.uint32(),K.imageMessage);continue}case 2:{if(J!==18)break;K.videoMessage=X$.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 xJ.fromPartial($??{})},fromPartial($){let Q=jH();return Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?K$.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?X$.fromPartial($.videoMessage):void 0,Q}};function dH(){return{}}var E={encode($,Q=new H){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.participant!==void 0)Q.uint32(18).string($.participant);if($.quotedMessage!==void 0)j.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)kJ.encode($.quotedAd,Q.uint32(186).fork()).join();if($.placeholderKey!==void 0)k.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)AJ.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)k0.encode($.disappearingMode,Q.uint32(258).fork()).join();if($.actionLink!==void 0)TQ.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)$K.encode(q,Q.uint32(322).fork()).join();if($.utm!==void 0)TJ.encode($.utm,Q.uint32(330).fork()).join();if($.forwardedNewsletterMessageInfo!==void 0)V$.encode($.forwardedNewsletterMessageInfo,Q.uint32(346).fork()).join();if($.businessMessageForwardInfo!==void 0)RJ.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)OJ.encode($.dataSharingContext,Q.uint32(378).fork()).join();if($.alwaysShowAdAttribution!==void 0)Q.uint32(384).bool($.alwaysShowAdAttribution);if($.featureEligibilities!==void 0)EJ.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)tJ.encode($.forwardedAiBotMessageInfo,Q.uint32(450).fork()).join();if($.statusAttributionType!==void 0)Q.uint32(456).int32($.statusAttributionType);if($.urlTrackingMap!==void 0)S$.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)B0.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)Q9.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)SJ.encode($.questionReplyQuotedMessage,Q.uint32(546).fork()).join();if($.statusAudienceMetadata!==void 0)IJ.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)JZ.encode($.botMessageSharingInfo,Q.uint32(578).fork()).join();if($.isSpoiler!==void 0)Q.uint32(584).bool($.isSpoiler);if($.mediaDomainInfo!==void 0)MK.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)NJ.encode($.businessInteractionPills,Q.uint32(626).fork()).join();if($.posterStatusId!==void 0)Q.uint32(634).string($.posterStatusId);if($.instagramThreadLink!==void 0)MJ.encode($.instagramThreadLink,Q.uint32(642).fork()).join();if($.aiProvenance!==void 0)qQ.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??dH();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=j.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=kJ.decode(Z,Z.uint32(),K.quotedAd);continue}case 24:{if(J!==194)break;K.placeholderKey=k.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=AJ.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=k0.decode(Z,Z.uint32(),K.disappearingMode);continue}case 33:{if(J!==266)break;K.actionLink=TQ.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=$K.decode(Z,Z.uint32());if(V!==void 0)K.groupMentions.push(V);continue}case 41:{if(J!==330)break;K.utm=TJ.decode(Z,Z.uint32(),K.utm);continue}case 43:{if(J!==346)break;K.forwardedNewsletterMessageInfo=V$.decode(Z,Z.uint32(),K.forwardedNewsletterMessageInfo);continue}case 44:{if(J!==354)break;K.businessMessageForwardInfo=RJ.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=OJ.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=EJ.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=tJ.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=S$.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=B0.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=Q9.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=SJ.decode(Z,Z.uint32(),K.questionReplyQuotedMessage);continue}case 69:{if(J!==554)break;K.statusAudienceMetadata=IJ.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=JZ.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=MK.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=NJ.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=MJ.decode(Z,Z.uint32(),K.instagramThreadLink);continue}case 81:{if(J!==650)break;K.aiProvenance=qQ.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 E.fromPartial($??{})},fromPartial($){let Q=dH();return Q.stanzaId=$.stanzaId??void 0,Q.participant=$.participant??void 0,Q.quotedMessage=$.quotedMessage!==void 0&&$.quotedMessage!==null?j.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?kJ.fromPartial($.quotedAd):void 0,Q.placeholderKey=$.placeholderKey!==void 0&&$.placeholderKey!==null?k.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?AJ.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?k0.fromPartial($.disappearingMode):void 0,Q.actionLink=$.actionLink!==void 0&&$.actionLink!==null?TQ.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)=>$K.fromPartial(q))||void 0,Q.utm=$.utm!==void 0&&$.utm!==null?TJ.fromPartial($.utm):void 0,Q.forwardedNewsletterMessageInfo=$.forwardedNewsletterMessageInfo!==void 0&&$.forwardedNewsletterMessageInfo!==null?V$.fromPartial($.forwardedNewsletterMessageInfo):void 0,Q.businessMessageForwardInfo=$.businessMessageForwardInfo!==void 0&&$.businessMessageForwardInfo!==null?RJ.fromPartial($.businessMessageForwardInfo):void 0,Q.smbClientCampaignId=$.smbClientCampaignId??void 0,Q.smbServerCampaignId=$.smbServerCampaignId??void 0,Q.dataSharingContext=$.dataSharingContext!==void 0&&$.dataSharingContext!==null?OJ.fromPartial($.dataSharingContext):void 0,Q.alwaysShowAdAttribution=$.alwaysShowAdAttribution??void 0,Q.featureEligibilities=$.featureEligibilities!==void 0&&$.featureEligibilities!==null?EJ.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?tJ.fromPartial($.forwardedAiBotMessageInfo):void 0,Q.statusAttributionType=$.statusAttributionType??void 0,Q.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?S$.fromPartial($.urlTrackingMap):void 0,Q.pairedMediaType=$.pairedMediaType??void 0,Q.rankingVersion=$.rankingVersion??void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?B0.fromPartial($.memberLabel):void 0,Q.isQuestion=$.isQuestion??void 0,Q.statusSourceType=$.statusSourceType??void 0,Q.statusAttributions=$.statusAttributions?.map((q)=>Q9.fromPartial(q))||void 0,Q.isGroupStatus=$.isGroupStatus??void 0,Q.forwardOrigin=$.forwardOrigin??void 0,Q.questionReplyQuotedMessage=$.questionReplyQuotedMessage!==void 0&&$.questionReplyQuotedMessage!==null?SJ.fromPartial($.questionReplyQuotedMessage):void 0,Q.statusAudienceMetadata=$.statusAudienceMetadata!==void 0&&$.statusAudienceMetadata!==null?IJ.fromPartial($.statusAudienceMetadata):void 0,Q.nonJidMentions=$.nonJidMentions??void 0,Q.quotedType=$.quotedType??void 0,Q.botMessageSharingInfo=$.botMessageSharingInfo!==void 0&&$.botMessageSharingInfo!==null?JZ.fromPartial($.botMessageSharingInfo):void 0,Q.isSpoiler=$.isSpoiler??void 0,Q.mediaDomainInfo=$.mediaDomainInfo!==void 0&&$.mediaDomainInfo!==null?MK.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?NJ.fromPartial($.businessInteractionPills):void 0,Q.posterStatusId=$.posterStatusId??void 0,Q.instagramThreadLink=$.instagramThreadLink!==void 0&&$.instagramThreadLink!==null?MJ.fromPartial($.instagramThreadLink):void 0,Q.aiProvenance=$.aiProvenance!==void 0&&$.aiProvenance!==null?qQ.fromPartial($.aiProvenance):void 0,Q}};function cH(){return{}}var kJ={encode($,Q=new H){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??cH();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 kJ.fromPartial($??{})},fromPartial($){let Q=cH();return Q.advertiserName=$.advertiserName??void 0,Q.mediaType=$.mediaType??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q}};function nH(){return{}}var NJ={encode($,Q=new H){if($.businessJid!==void 0)Q.uint32(10).string($.businessJid);if($.pills!==void 0&&$.pills.length!==0)for(let q of $.pills)Y$.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)e0.encode($.signatureEnvelope,Q.uint32(42).fork()).join();if($.unauthenticatedBusinessMetadata!==void 0)BJ.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??nH();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=Y$.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=e0.decode(Z,Z.uint32(),K.signatureEnvelope);continue}case 6:{if(J!==50)break;K.unauthenticatedBusinessMetadata=BJ.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 NJ.fromPartial($??{})},fromPartial($){let Q=nH();return Q.businessJid=$.businessJid??void 0,Q.pills=$.pills?.map((q)=>Y$.fromPartial(q))||void 0,Q.entryPoint=$.entryPoint??void 0,Q.signedPayload=$.signedPayload??void 0,Q.signatureEnvelope=$.signatureEnvelope!==void 0&&$.signatureEnvelope!==null?e0.fromPartial($.signatureEnvelope):void 0,Q.unauthenticatedBusinessMetadata=$.unauthenticatedBusinessMetadata!==void 0&&$.unauthenticatedBusinessMetadata!==null?BJ.fromPartial($.unauthenticatedBusinessMetadata):void 0,Q}};function bH(){return{}}var Y$={encode($,Q=new H){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??bH();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 Y$.fromPartial($??{})},fromPartial($){let Q=bH();return Q.pillType=$.pillType??void 0,Q.actionUrl=$.actionUrl??void 0,Q}};function oH(){return{}}var JR={encode($,Q=new H){if($.verifiedName!==void 0)Q.uint32(10).string($.verifiedName);if($.pills!==void 0&&$.pills.length!==0)for(let q of $.pills)Y$.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??oH();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=Y$.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 JR.fromPartial($??{})},fromPartial($){let Q=oH();return Q.verifiedName=$.verifiedName??void 0,Q.pills=$.pills?.map((q)=>Y$.fromPartial(q))||void 0,Q}};function iH(){return{}}var BJ={encode($,Q=new H){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??iH();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 BJ.fromPartial($??{})},fromPartial($){let Q=iH();return Q.businessName=$.businessName??void 0,Q.businessCategory=$.businessCategory??void 0,Q.businessIsOpen=$.businessIsOpen??void 0,Q.businessIsOpenSnapshotMs=$.businessIsOpenSnapshotMs??void 0,Q}};function mH(){return{}}var RJ={encode($,Q=new H){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??mH();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 RJ.fromPartial($??{})},fromPartial($){let Q=mH();return Q.businessOwnerJid=$.businessOwnerJid??void 0,Q}};function gH(){return{}}var OJ={encode($,Q=new H){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)a0.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??gH();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=a0.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 OJ.fromPartial($??{})},fromPartial($){let Q=gH();return Q.showMmDisclosure=$.showMmDisclosure??void 0,Q.encryptedSignalTokenConsented=$.encryptedSignalTokenConsented??void 0,Q.parameters=$.parameters?.map((q)=>a0.fromPartial(q))||void 0,Q.dataSharingFlags=$.dataSharingFlags??void 0,Q}};function rH(){return{}}var a0={encode($,Q=new H){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)a0.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??rH();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=a0.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 a0.fromPartial($??{})},fromPartial($){let Q=rH();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?a0.fromPartial($.contents):void 0,Q}};function tH(){return{}}var AJ={encode($,Q=new H){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??tH();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 AJ.fromPartial($??{})},fromPartial($){let Q=tH();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 aH(){return{}}var EJ={encode($,Q=new H){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??aH();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 EJ.fromPartial($??{})},fromPartial($){let Q=aH();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 sH(){return{}}var V$={encode($,Q=new H){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??sH();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 V$.fromPartial($??{})},fromPartial($){let Q=sH();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 eH(){return{}}var MJ={encode($,Q=new H){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??eH();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 MJ.fromPartial($??{})},fromPartial($){let Q=eH();return Q.url=$.url??void 0,Q}};function $7(){return{}}var WJ={encode($,Q=new H){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??$7();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=$7();return Q.text=$.text??void 0,Q}};function Q7(){return{}}var SJ={encode($,Q=new H){if($.serverQuestionId!==void 0)Q.uint32(8).int32($.serverQuestionId);if($.quotedQuestion!==void 0)j.encode($.quotedQuestion,Q.uint32(18).fork()).join();if($.quotedResponse!==void 0)j.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??Q7();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=j.decode(Z,Z.uint32(),K.quotedQuestion);continue}case 3:{if(J!==26)break;K.quotedResponse=j.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 SJ.fromPartial($??{})},fromPartial($){let Q=Q7();return Q.serverQuestionId=$.serverQuestionId??void 0,Q.quotedQuestion=$.quotedQuestion!==void 0&&$.quotedQuestion!==null?j.fromPartial($.quotedQuestion):void 0,Q.quotedResponse=$.quotedResponse!==void 0&&$.quotedResponse!==null?j.fromPartial($.quotedResponse):void 0,Q}};function Z7(){return{}}var IJ={encode($,Q=new H){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??Z7();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 IJ.fromPartial($??{})},fromPartial($){let Q=Z7();return Q.audienceType=$.audienceType??void 0,Q.listName=$.listName??void 0,Q.listEmoji=$.listEmoji??void 0,Q}};function J7(){return{}}var TJ={encode($,Q=new H){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??J7();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 TJ.fromPartial($??{})},fromPartial($){let Q=J7();return Q.utmSource=$.utmSource??void 0,Q.utmCampaign=$.utmCampaign??void 0,Q}};function K7(){return{}}var yJ={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)VK.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)k0.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)QK.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)L0.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)CK.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??K7();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=VK.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=k0.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=QK.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=L0.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=CK.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 yJ.fromPartial($??{})},fromPartial($){let Q=K7();return Q.id=$.id??void 0,Q.messages=$.messages?.map((q)=>VK.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?k0.fromPartial($.disappearingMode):void 0,Q.unreadMentionCount=$.unreadMentionCount??void 0,Q.markedAsUnread=$.markedAsUnread??void 0,Q.participant=$.participant?.map((q)=>QK.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?L0.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?CK.fromPartial($.identityVerification):void 0,Q}};function q7(){return{}}var vJ={encode($,Q=new H){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??q7();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 vJ.fromPartial($??{})},fromPartial($){let Q=q7();return Q.recoveryCode=$.recoveryCode??void 0,Q.userId=$.userId??void 0,Q}};function X7(){return{}}var KR={encode($,Q=new H){if($.device!==void 0)dJ.encode($.device,Q.uint32(10).fork()).join();if($.virtualDevice!==void 0)qY.encode($.virtualDevice,Q.uint32(18).fork()).join();if($.epoch0!==void 0)mJ.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??X7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.device=dJ.decode(Z,Z.uint32(),K.device);continue}case 2:{if(J!==18)break;K.virtualDevice=qY.decode(Z,Z.uint32(),K.virtualDevice);continue}case 3:{if(J!==26)break;K.epoch0=mJ.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 KR.fromPartial($??{})},fromPartial($){let Q=X7();return Q.device=$.device!==void 0&&$.device!==null?dJ.fromPartial($.device):void 0,Q.virtualDevice=$.virtualDevice!==void 0&&$.virtualDevice!==null?qY.fromPartial($.virtualDevice):void 0,Q.epoch0=$.epoch0!==void 0&&$.epoch0!==null?mJ.fromPartial($.epoch0):void 0,Q.mailboxRootKey=$.mailboxRootKey??void 0,Q.error=$.error??void 0,Q}};function Y7(){return{}}var fJ={encode($,Q=new H){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??Y7();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 fJ.fromPartial($??{})},fromPartial($){let Q=Y7();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 V7(){return{}}var qR={encode($,Q=new H){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??V7();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 qR.fromPartial($??{})},fromPartial($){let Q=V7();return Q.plaintextPayload=$.plaintextPayload??void 0,Q.error=$.error??void 0,Q}};function z7(){return{}}var _J={encode($,Q=new H){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??z7();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 _J.fromPartial($??{})},fromPartial($){let Q=z7();return Q.epochRootKey=$.epochRootKey??void 0,Q.epochAnonId=$.epochAnonId??void 0,Q.threadId=$.threadId??void 0,Q}};function H7(){return{}}var XR={encode($,Q=new H){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??H7();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 XR.fromPartial($??{})},fromPartial($){let Q=H7();return Q.messageKey=$.messageKey??void 0,Q.error=$.error??void 0,Q}};function G7(){return{}}var j0={encode($,Q=new H){if($.chatLockSupportLevel!==void 0)Q.uint32(8).int32($.chatLockSupportLevel);if($.lidMigration!==void 0)uJ.encode($.lidMigration,Q.uint32(18).fork()).join();if($.businessBroadcast!==void 0)pJ.encode($.businessBroadcast,Q.uint32(26).fork()).join();if($.userHasAvatar!==void 0)wJ.encode($.userHasAvatar,Q.uint32(34).fork()).join();if($.memberNameTagPrimarySupport!==void 0)Q.uint32(40).int32($.memberNameTagPrimarySupport);if($.aiThread!==void 0)lJ.encode($.aiThread,Q.uint32(50).fork()).join();if($.aiFbidMigration!==void 0)hJ.encode($.aiFbidMigration,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??G7();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=uJ.decode(Z,Z.uint32(),K.lidMigration);continue}case 3:{if(J!==26)break;K.businessBroadcast=pJ.decode(Z,Z.uint32(),K.businessBroadcast);continue}case 4:{if(J!==34)break;K.userHasAvatar=wJ.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=lJ.decode(Z,Z.uint32(),K.aiThread);continue}case 7:{if(J!==58)break;K.aiFbidMigration=hJ.decode(Z,Z.uint32(),K.aiFbidMigration);continue}}if(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=G7();return Q.chatLockSupportLevel=$.chatLockSupportLevel??void 0,Q.lidMigration=$.lidMigration!==void 0&&$.lidMigration!==null?uJ.fromPartial($.lidMigration):void 0,Q.businessBroadcast=$.businessBroadcast!==void 0&&$.businessBroadcast!==null?pJ.fromPartial($.businessBroadcast):void 0,Q.userHasAvatar=$.userHasAvatar!==void 0&&$.userHasAvatar!==null?wJ.fromPartial($.userHasAvatar):void 0,Q.memberNameTagPrimarySupport=$.memberNameTagPrimarySupport??void 0,Q.aiThread=$.aiThread!==void 0&&$.aiThread!==null?lJ.fromPartial($.aiThread):void 0,Q.aiFbidMigration=$.aiFbidMigration!==void 0&&$.aiFbidMigration!==null?hJ.fromPartial($.aiFbidMigration):void 0,Q}};function U7(){return{}}var hJ={encode($,Q=new H){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??U7();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 hJ.fromPartial($??{})},fromPartial($){let Q=U7();return Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function C7(){return{}}var lJ={encode($,Q=new H){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??C7();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 lJ.fromPartial($??{})},fromPartial($){let Q=C7();return Q.supportLevel=$.supportLevel??void 0,Q}};function P7(){return{}}var pJ={encode($,Q=new H){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??P7();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 pJ.fromPartial($??{})},fromPartial($){let Q=P7();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 D7(){return{}}var uJ={encode($,Q=new H){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??D7();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 uJ.fromPartial($??{})},fromPartial($){let Q=D7();return Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function F7(){return{}}var wJ={encode($,Q=new H){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??F7();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 wJ.fromPartial($??{})},fromPartial($){let Q=F7();return Q.userHasAvatar=$.userHasAvatar??void 0,Q}};function L7(){return{}}var YR={encode($,Q=new H){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??L7();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 YR.fromPartial($??{})},fromPartial($){let Q=L7();return Q.generation=$.generation??void 0,Q.signature=$.signature??void 0,Q}};function x7(){return{}}var jJ={encode($,Q=new H){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??x7();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 jJ.fromPartial($??{})},fromPartial($){let Q=x7();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 k7(){return{}}var dJ={encode($,Q=new H){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);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.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}}if(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=k7();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}};function N7(){return{}}var MY={encode($,Q=new H){if($.os!==void 0)Q.uint32(10).string($.os);if($.version!==void 0)cJ.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)z$.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??N7();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=cJ.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=z$.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 MY.fromPartial($??{})},fromPartial($){let Q=N7();return Q.os=$.os??void 0,Q.version=$.version!==void 0&&$.version!==null?cJ.fromPartial($.version):void 0,Q.platformType=$.platformType??void 0,Q.requireFullSync=$.requireFullSync??void 0,Q.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?z$.fromPartial($.historySyncConfig):void 0,Q}};function B7(){return{}}var cJ={encode($,Q=new H){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??B7();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 cJ.fromPartial($??{})},fromPartial($){let Q=B7();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 R7(){return{}}var z$={encode($,Q=new H){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??R7();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 z$.fromPartial($??{})},fromPartial($){let Q=R7();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 O7(){return{}}var k0={encode($,Q=new H){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??O7();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 k0.fromPartial($??{})},fromPartial($){let Q=O7();return Q.initiator=$.initiator??void 0,Q.trigger=$.trigger??void 0,Q.initiatorDeviceJid=$.initiatorDeviceJid??void 0,Q.initiatedByMe=$.initiatedByMe??void 0,Q}};function A7(){return{}}var nJ={encode($,Q=new H){if($.embeddedMessage!==void 0)bJ.encode($.embeddedMessage,Q.uint32(10).fork()).join();if($.embeddedMusic!==void 0)X0.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??A7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.embeddedMessage=bJ.decode(Z,Z.uint32(),K.embeddedMessage);continue}case 2:{if(J!==18)break;K.embeddedMusic=X0.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 nJ.fromPartial($??{})},fromPartial($){let Q=A7();return Q.embeddedMessage=$.embeddedMessage!==void 0&&$.embeddedMessage!==null?bJ.fromPartial($.embeddedMessage):void 0,Q.embeddedMusic=$.embeddedMusic!==void 0&&$.embeddedMusic!==null?X0.fromPartial($.embeddedMusic):void 0,Q}};function E7(){return{}}var bJ={encode($,Q=new H){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.message!==void 0)j.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??E7();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=j.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 bJ.fromPartial($??{})},fromPartial($){let Q=E7();return Q.stanzaId=$.stanzaId??void 0,Q.message=$.message!==void 0&&$.message!==null?j.fromPartial($.message):void 0,Q}};function M7(){return{}}var X0={encode($,Q=new H){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??M7();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 X0.fromPartial($??{})},fromPartial($){let Q=M7();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 W7(){return{}}var oJ={encode($,Q=new H){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??W7();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 oJ.fromPartial($??{})},fromPartial($){let Q=W7();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 S7(){return{}}var VR={encode($,Q=new H){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??S7();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 VR.fromPartial($??{})},fromPartial($){let Q=S7();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 I7(){return{}}var zR={encode($,Q=new H){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??I7();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 zR.fromPartial($??{})},fromPartial($){let Q=I7();return Q.encryptedPayload=$.encryptedPayload??void 0,Q.iv=$.iv??void 0,Q}};function T7(){return{}}var iJ={encode($,Q=new H){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??T7();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 iJ.fromPartial($??{})},fromPartial($){let Q=T7();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 y7(){return{}}var HR={encode($,Q=new H){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??y7();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 HR.fromPartial($??{})},fromPartial($){let Q=y7();return Q.duration=$.duration??void 0,Q.timestamp=$.timestamp??void 0,Q}};function v7(){return{}}var mJ={encode($,Q=new H){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??v7();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 mJ.fromPartial($??{})},fromPartial($){let Q=v7();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 f7(){return{}}var gJ={encode($,Q=new H){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??f7();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 gJ.fromPartial($??{})},fromPartial($){let Q=f7();return Q.isStale=$.isStale??void 0,Q}};function _7(){return{}}var rJ={encode($,Q=new H){if($.eventResponseMessageKey!==void 0)k.encode($.eventResponseMessageKey,Q.uint32(10).fork()).join();if($.timestampMs!==void 0)Q.uint32(16).int64($.timestampMs);if($.eventResponseMessage!==void 0)I0.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??_7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eventResponseMessageKey=k.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=I0.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 rJ.fromPartial($??{})},fromPartial($){let Q=_7();return Q.eventResponseMessageKey=$.eventResponseMessageKey!==void 0&&$.eventResponseMessageKey!==null?k.fromPartial($.eventResponseMessageKey):void 0,Q.timestampMs=$.timestampMs??void 0,Q.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?I0.fromPartial($.eventResponseMessage):void 0,Q.unread=$.unread??void 0,Q}};function h7(){return{}}var y$={encode($,Q=new H){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??h7();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 y$.fromPartial($??{})},fromPartial($){let Q=h7();return Q.code=$.code??void 0,Q.text=$.text??void 0,Q}};function l7(){return{}}var v$={encode($,Q=new H){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??l7();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 v$.fromPartial($??{})},fromPartial($){let Q=l7();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 p7(){return{}}var S0={encode($,Q=new H){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])=>{LY.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??p7();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=LY.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 S0.fromPartial($??{})},fromPartial($){let Q=p7();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)]=S0.fromPartial(X);return q},{}),Q}};function u7(){return{}}var LY={encode($,Q=new H){if($.key!==void 0)Q.uint32(8).uint32($.key);if($.value!==void 0)S0.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??u7();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=S0.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 LY.fromPartial($??{})},fromPartial($){let Q=u7();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?S0.fromPartial($.value):void 0,Q}};function w7(){return{}}var d0={encode($,Q=new H){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??w7();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 d0.fromPartial($??{})},fromPartial($){let Q=w7();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 j7(){return{}}var tJ={encode($,Q=new H){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??j7();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 tJ.fromPartial($??{})},fromPartial($){let Q=j7();return Q.botName=$.botName??void 0,Q.botJid=$.botJid??void 0,Q.creatorName=$.creatorName??void 0,Q}};function d7(){return{}}var aJ={encode($,Q=new H){if($.lightThemeWallpaper!==void 0)L0.encode($.lightThemeWallpaper,Q.uint32(10).fork()).join();if($.mediaVisibility!==void 0)Q.uint32(16).int32($.mediaVisibility);if($.darkThemeWallpaper!==void 0)L0.encode($.darkThemeWallpaper,Q.uint32(26).fork()).join();if($.autoDownloadWiFi!==void 0)U0.encode($.autoDownloadWiFi,Q.uint32(34).fork()).join();if($.autoDownloadCellular!==void 0)U0.encode($.autoDownloadCellular,Q.uint32(42).fork()).join();if($.autoDownloadRoaming!==void 0)U0.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)yQ.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)m0.encode($.individualNotificationSettings,Q.uint32(138).fork()).join();if($.groupNotificationSettings!==void 0)m0.encode($.groupNotificationSettings,Q.uint32(146).fork()).join();if($.chatLockSettings!==void 0)Q$.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??d7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.lightThemeWallpaper=L0.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=L0.decode(Z,Z.uint32(),K.darkThemeWallpaper);continue}case 4:{if(J!==34)break;K.autoDownloadWiFi=U0.decode(Z,Z.uint32(),K.autoDownloadWiFi);continue}case 5:{if(J!==42)break;K.autoDownloadCellular=U0.decode(Z,Z.uint32(),K.autoDownloadCellular);continue}case 6:{if(J!==50)break;K.autoDownloadRoaming=U0.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=yQ.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=m0.decode(Z,Z.uint32(),K.individualNotificationSettings);continue}case 18:{if(J!==146)break;K.groupNotificationSettings=m0.decode(Z,Z.uint32(),K.groupNotificationSettings);continue}case 19:{if(J!==154)break;K.chatLockSettings=Q$.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 aJ.fromPartial($??{})},fromPartial($){let Q=d7();return Q.lightThemeWallpaper=$.lightThemeWallpaper!==void 0&&$.lightThemeWallpaper!==null?L0.fromPartial($.lightThemeWallpaper):void 0,Q.mediaVisibility=$.mediaVisibility??void 0,Q.darkThemeWallpaper=$.darkThemeWallpaper!==void 0&&$.darkThemeWallpaper!==null?L0.fromPartial($.darkThemeWallpaper):void 0,Q.autoDownloadWiFi=$.autoDownloadWiFi!==void 0&&$.autoDownloadWiFi!==null?U0.fromPartial($.autoDownloadWiFi):void 0,Q.autoDownloadCellular=$.autoDownloadCellular!==void 0&&$.autoDownloadCellular!==null?U0.fromPartial($.autoDownloadCellular):void 0,Q.autoDownloadRoaming=$.autoDownloadRoaming!==void 0&&$.autoDownloadRoaming!==null?U0.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?yQ.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?m0.fromPartial($.individualNotificationSettings):void 0,Q.groupNotificationSettings=$.groupNotificationSettings!==void 0&&$.groupNotificationSettings!==null?m0.fromPartial($.groupNotificationSettings):void 0,Q.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?Q$.fromPartial($.chatLockSettings):void 0,Q.chatDbLidMigrationTimestamp=$.chatDbLidMigrationTimestamp??void 0,Q}};function c7(){return{}}var GR={encode($,Q=new H){if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)i.encode(q,Q.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let q of $.uncountedAssociatedMessageLists)s6.encode(q,Q.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let q of $.commentMessages)i.encode(q,Q.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let q of $.outOfWindowPinnedMessages)i.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??c7();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=i.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=s6.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=i.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=i.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 GR.fromPartial($??{})},fromPartial($){let Q=c7();return Q.messages=$.messages?.map((q)=>i.fromPartial(q))||void 0,Q.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((q)=>s6.fromPartial(q))||void 0,Q.commentMessages=$.commentMessages?.map((q)=>i.fromPartial(q))||void 0,Q.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((q)=>i.fromPartial(q))||void 0,Q}};function n7(){return{}}var sJ={encode($,Q=new H){if($.deprecatedMessageHistoryBundle!==void 0)D$.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??n7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deprecatedMessageHistoryBundle=D$.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 sJ.fromPartial($??{})},fromPartial($){let Q=n7();return Q.deprecatedMessageHistoryBundle=$.deprecatedMessageHistoryBundle!==void 0&&$.deprecatedMessageHistoryBundle!==null?D$.fromPartial($.deprecatedMessageHistoryBundle):void 0,Q.processState=$.processState??void 0,Q}};function b7(){return{}}var eJ={encode($,Q=new H){if($.bundleMessageKey!==void 0)k.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??b7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.bundleMessageKey=k.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 eJ.fromPartial($??{})},fromPartial($){let Q=b7();return Q.bundleMessageKey=$.bundleMessageKey!==void 0&&$.bundleMessageKey!==null?k.fromPartial($.bundleMessageKey):void 0,Q.editedAfterReceivedAsHistory=$.editedAfterReceivedAsHistory??void 0,Q}};function o7(){return{}}var UR={encode($,Q=new H){if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)K0.encode(q,Q.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let q of $.uncountedAssociatedMessageLists)e6.encode(q,Q.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let q of $.commentMessages)K0.encode(q,Q.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let q of $.outOfWindowPinnedMessages)K0.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??o7();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=K0.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=e6.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=K0.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=K0.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 UR.fromPartial($??{})},fromPartial($){let Q=o7();return Q.messages=$.messages?.map((q)=>K0.fromPartial(q))||void 0,Q.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((q)=>e6.fromPartial(q))||void 0,Q.commentMessages=$.commentMessages?.map((q)=>K0.fromPartial(q))||void 0,Q.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((q)=>K0.fromPartial(q))||void 0,Q}};function i7(){return{}}var $K={encode($,Q=new H){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??i7();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 $K.fromPartial($??{})},fromPartial($){let Q=i7();return Q.groupJid=$.groupJid??void 0,Q.groupSubject=$.groupSubject??void 0,Q}};function m7(){return{}}var QK={encode($,Q=new H){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.rank!==void 0)Q.uint32(16).int32($.rank);if($.memberLabel!==void 0)B0.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??m7();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=B0.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 QK.fromPartial($??{})},fromPartial($){let Q=m7();return Q.userJid=$.userJid??void 0,Q.rank=$.rank??void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?B0.fromPartial($.memberLabel):void 0,Q}};function g7(){return{}}var ZK={encode($,Q=new H){if($.keys!==void 0&&$.keys.length!==0)for(let q of $.keys)JK.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??g7();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=JK.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 ZK.fromPartial($??{})},fromPartial($){let Q=g7();return Q.keys=$.keys?.map((q)=>JK.fromPartial(q))||void 0,Q}};function r7(){return{}}var JK={encode($,Q=new H){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??r7();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 JK.fromPartial($??{})},fromPartial($){let Q=r7();return Q.groupRootKey=$.groupRootKey??void 0,Q.keyId=$.keyId??void 0,Q.expiryTimestampMs=$.expiryTimestampMs??void 0,Q.createdTimestampMs=$.createdTimestampMs??void 0,Q}};function t7(){return{}}var WY={encode($,Q=new H){if($.clientHello!==void 0)qK.encode($.clientHello,Q.uint32(18).fork()).join();if($.serverHello!==void 0)XK.encode($.serverHello,Q.uint32(26).fork()).join();if($.clientFinish!==void 0)KK.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??t7();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==18)break;K.clientHello=qK.decode(Z,Z.uint32(),K.clientHello);continue}case 3:{if(J!==26)break;K.serverHello=XK.decode(Z,Z.uint32(),K.serverHello);continue}case 4:{if(J!==34)break;K.clientFinish=KK.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 WY.fromPartial($??{})},fromPartial($){let Q=t7();return Q.clientHello=$.clientHello!==void 0&&$.clientHello!==null?qK.fromPartial($.clientHello):void 0,Q.serverHello=$.serverHello!==void 0&&$.serverHello!==null?XK.fromPartial($.serverHello):void 0,Q.clientFinish=$.clientFinish!==void 0&&$.clientFinish!==null?KK.fromPartial($.clientFinish):void 0,Q}};function a7(){return{}}var KK={encode($,Q=new H){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??a7();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 KK.fromPartial($??{})},fromPartial($){let Q=a7();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 s7(){return{}}var qK={encode($,Q=new H){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??s7();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 qK.fromPartial($??{})},fromPartial($){let Q=s7();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 e7(){return{}}var XK={encode($,Q=new H){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??e7();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 XK.fromPartial($??{})},fromPartial($){let Q=e7();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 $G(){return{}}var YK={encode($,Q=new H){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??$G();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 YK.fromPartial($??{})},fromPartial($){let Q=$G();return Q.data=$.data??void 0,Q.timestampMs=$.timestampMs??void 0,Q.requestId=$.requestId??void 0,Q}};function QG(){return{}}var SY={encode($,Q=new H){if($.syncType!==void 0)Q.uint32(8).int32($.syncType);if($.conversations!==void 0&&$.conversations.length!==0)for(let q of $.conversations)yJ.encode(q,Q.uint32(18).fork()).join();if($.statusV3Messages!==void 0&&$.statusV3Messages.length!==0)for(let q of $.statusV3Messages)i.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)hX.encode(q,Q.uint32(58).fork()).join();if($.globalSettings!==void 0)aJ.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)G9.encode(q,Q.uint32(90).fork()).join();if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let q of $.pastParticipants)OX.encode(q,Q.uint32(98).fork()).join();if($.callLogRecords!==void 0&&$.callLogRecords.length!==0)for(let q of $.callLogRecords)$$.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)EX.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)IQ.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)xK.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??QG();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=yJ.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=i.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=hX.decode(Z,Z.uint32());if(V!==void 0)K.pushnames.push(V);continue}case 8:{if(J!==66)break;K.globalSettings=aJ.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=G9.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=OX.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=$$.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=EX.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=IQ.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=xK.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 SY.fromPartial($??{})},fromPartial($){let Q=QG();return Q.syncType=$.syncType??void 0,Q.conversations=$.conversations?.map((q)=>yJ.fromPartial(q))||void 0,Q.statusV3Messages=$.statusV3Messages?.map((q)=>i.fromPartial(q))||void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.progress=$.progress??void 0,Q.pushnames=$.pushnames?.map((q)=>hX.fromPartial(q))||void 0,Q.globalSettings=$.globalSettings!==void 0&&$.globalSettings!==null?aJ.fromPartial($.globalSettings):void 0,Q.threadIdUserSecret=$.threadIdUserSecret??void 0,Q.threadDsTimeframeOffset=$.threadDsTimeframeOffset??void 0,Q.recentStickers=$.recentStickers?.map((q)=>G9.fromPartial(q))||void 0,Q.pastParticipants=$.pastParticipants?.map((q)=>OX.fromPartial(q))||void 0,Q.callLogRecords=$.callLogRecords?.map((q)=>$$.fromPartial(q))||void 0,Q.aiWaitListState=$.aiWaitListState??void 0,Q.phoneNumberToLidMappings=$.phoneNumberToLidMappings?.map((q)=>EX.fromPartial(q))||void 0,Q.companionMetaNonce=$.companionMetaNonce??void 0,Q.shareableChatIdentifierEncryptionKey=$.shareableChatIdentifierEncryptionKey??void 0,Q.accounts=$.accounts?.map((q)=>IQ.fromPartial(q))||void 0,Q.nctSalt=$.nctSalt??void 0,Q.inlineContacts=$.inlineContacts?.map((q)=>xK.fromPartial(q))||void 0,Q.inlineContactsProvided=$.inlineContactsProvided??void 0,Q}};function ZG(){return{}}var VK={encode($,Q=new H){if($.message!==void 0)i.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??ZG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.message=i.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 VK.fromPartial($??{})},fromPartial($){let Q=ZG();return Q.message=$.message!==void 0&&$.message!==null?i.fromPartial($.message):void 0,Q.msgOrderId=$.msgOrderId??void 0,Q}};function JG(){return{}}var zK={encode($,Q=new H){if($.index!==void 0)Q.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)GK.encode($.quickReplyButton,Q.uint32(10).fork()).join();if($.urlButton!==void 0)UK.encode($.urlButton,Q.uint32(18).fork()).join();if($.callButton!==void 0)HK.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??JG();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=GK.decode(Z,Z.uint32(),K.quickReplyButton);continue}case 2:{if(J!==18)break;K.urlButton=UK.decode(Z,Z.uint32(),K.urlButton);continue}case 3:{if(J!==26)break;K.callButton=HK.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 zK.fromPartial($??{})},fromPartial($){let Q=JG();return Q.index=$.index??void 0,Q.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?GK.fromPartial($.quickReplyButton):void 0,Q.urlButton=$.urlButton!==void 0&&$.urlButton!==null?UK.fromPartial($.urlButton):void 0,Q.callButton=$.callButton!==void 0&&$.callButton!==null?HK.fromPartial($.callButton):void 0,Q}};function KG(){return{}}var HK={encode($,Q=new H){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??KG();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 HK.fromPartial($??{})},fromPartial($){let Q=KG();return Q.displayText=$.displayText??void 0,Q.phoneNumber=$.phoneNumber??void 0,Q}};function qG(){return{}}var GK={encode($,Q=new H){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??qG();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 GK.fromPartial($??{})},fromPartial($){let Q=qG();return Q.displayText=$.displayText??void 0,Q.id=$.id??void 0,Q}};function XG(){return{}}var UK={encode($,Q=new H){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??XG();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 UK.fromPartial($??{})},fromPartial($){let Q=XG();return Q.displayText=$.displayText??void 0,Q.url=$.url??void 0,Q.consentedUsersUrl=$.consentedUsersUrl??void 0,Q.webviewPresentation=$.webviewPresentation??void 0,Q}};function YG(){return{}}var CR={encode($,Q=new H){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??YG();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 CR.fromPartial($??{})},fromPartial($){let Q=YG();return Q.publicKey=$.publicKey??void 0,Q.privateKey=$.privateKey??void 0,Q}};function VG(){return{}}var CK={encode($,Q=new H){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??VG();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 CK.fromPartial($??{})},fromPartial($){let Q=VG();return Q.verified=$.verified??void 0,Q.actionSeq=$.actionSeq??void 0,Q}};function zG(){return{}}var PK={encode($,Q=new H){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)LK.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)FK.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??zG();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=LK.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=FK.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 PK.fromPartial($??{})},fromPartial($){let Q=zG();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)=>LK.fromPartial(q))||void 0,Q.surveyContinueButtonText=$.surveyContinueButtonText??void 0,Q.surveySubmitButtonText=$.surveySubmitButtonText??void 0,Q.privacyStatementFull=$.privacyStatementFull??void 0,Q.privacyStatementParts=$.privacyStatementParts?.map((q)=>FK.fromPartial(q))||void 0,Q.feedbackToastText=$.feedbackToastText??void 0,Q.startQuestionIndex=$.startQuestionIndex??void 0,Q}};function HG(){return{}}var DK={encode($,Q=new H){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??HG();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 DK.fromPartial($??{})},fromPartial($){let Q=HG();return Q.stringValue=$.stringValue??void 0,Q.numericValue=$.numericValue??void 0,Q.textTranslated=$.textTranslated??void 0,Q}};function GG(){return{}}var FK={encode($,Q=new H){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??GG();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 FK.fromPartial($??{})},fromPartial($){let Q=GG();return Q.text=$.text??void 0,Q.url=$.url??void 0,Q}};function UG(){return{}}var LK={encode($,Q=new H){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)DK.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??UG();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=DK.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 LK.fromPartial($??{})},fromPartial($){let Q=UG();return Q.questionText=$.questionText??void 0,Q.questionId=$.questionId??void 0,Q.questionOptions=$.questionOptions?.map((q)=>DK.fromPartial(q))||void 0,Q}};function CG(){return{}}var xK={encode($,Q=new H){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??CG();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 xK.fromPartial($??{})},fromPartial($){let Q=CG();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 PG(){return{}}var q0={encode($,Q=new H){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let q of $.polygonVertices)SX.encode(q,Q.uint32(10).fork()).join();if($.shouldSkipConfirmation!==void 0)Q.uint32(32).bool($.shouldSkipConfirmation);if($.embeddedContent!==void 0)nJ.encode($.embeddedContent,Q.uint32(42).fork()).join();if($.statusLinkType!==void 0)Q.uint32(64).int32($.statusLinkType);if($.location!==void 0)EK.encode($.location,Q.uint32(18).fork()).join();if($.newsletter!==void 0)V$.encode($.newsletter,Q.uint32(26).fork()).join();if($.embeddedAction!==void 0)Q.uint32(48).bool($.embeddedAction);if($.tapAction!==void 0)i6.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??PG();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=SX.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=nJ.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=EK.decode(Z,Z.uint32(),K.location);continue}case 3:{if(J!==26)break;K.newsletter=V$.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=i6.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 q0.fromPartial($??{})},fromPartial($){let Q=PG();return Q.polygonVertices=$.polygonVertices?.map((q)=>SX.fromPartial(q))||void 0,Q.shouldSkipConfirmation=$.shouldSkipConfirmation??void 0,Q.embeddedContent=$.embeddedContent!==void 0&&$.embeddedContent!==null?nJ.fromPartial($.embeddedContent):void 0,Q.statusLinkType=$.statusLinkType??void 0,Q.location=$.location!==void 0&&$.location!==null?EK.fromPartial($.location):void 0,Q.newsletter=$.newsletter!==void 0&&$.newsletter!==null?V$.fromPartial($.newsletter):void 0,Q.embeddedAction=$.embeddedAction??void 0,Q.tapAction=$.tapAction!==void 0&&$.tapAction!==null?i6.fromPartial($.tapAction):void 0,Q}};function DG(){return{}}var kK={encode($,Q=new H){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??DG();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 kK.fromPartial($??{})},fromPartial($){let Q=DG();return Q.isGalaxyFlowCompleted=$.isGalaxyFlowCompleted??void 0,Q}};function FG(){return{}}var NK={encode($,Q=new H){if($.keepType!==void 0)Q.uint32(8).int32($.keepType);if($.serverTimestamp!==void 0)Q.uint32(16).int64($.serverTimestamp);if($.key!==void 0)k.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??FG();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=k.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 NK.fromPartial($??{})},fromPartial($){let Q=FG();return Q.keepType=$.keepType??void 0,Q.serverTimestamp=$.serverTimestamp??void 0,Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.deviceJid=$.deviceJid??void 0,Q.clientTimestampMs=$.clientTimestampMs??void 0,Q.serverTimestampMs=$.serverTimestampMs??void 0,Q}};function LG(){return{}}var PR={encode($,Q=new H){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??LG();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 PR.fromPartial($??{})},fromPartial($){let Q=LG();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 xG(){return{}}var N0={encode($,Q=new H){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??xG();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 N0.fromPartial($??{})},fromPartial($){let Q=xG();return Q.id=$.id??void 0,Q}};function kG(){return{}}var BK={encode($,Q=new H){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??kG();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 BK.fromPartial($??{})},fromPartial($){let Q=kG();return Q.encodedMappingPayload=$.encodedMappingPayload??void 0,Q}};function NG(){return{}}var RK={encode($,Q=new H){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??NG();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 RK.fromPartial($??{})},fromPartial($){let Q=NG();return Q.pn=$.pn??void 0,Q.assignedLid=$.assignedLid??void 0,Q.latestLid=$.latestLid??void 0,Q}};function BG(){return{}}var IY={encode($,Q=new H){if($.pnToLidMappings!==void 0&&$.pnToLidMappings.length!==0)for(let q of $.pnToLidMappings)RK.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??BG();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=RK.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 IY.fromPartial($??{})},fromPartial($){let Q=BG();return Q.pnToLidMappings=$.pnToLidMappings?.map((q)=>RK.fromPartial(q))||void 0,Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function RG(){return{}}var DR={encode($,Q=new H){if($.createBackupInput!==void 0)vJ.encode($.createBackupInput,Q.uint32(10).fork()).join();if($.encryptMessageInput!==void 0)oJ.encode($.encryptMessageInput,Q.uint32(18).fork()).join();if($.decryptMessageInput!==void 0)fJ.encode($.decryptMessageInput,Q.uint32(26).fork()).join();if($.orfThreadIdInput!==void 0)BX.encode($.orfThreadIdInput,Q.uint32(34).fork()).join();if($.deriveMessageKeyInput!==void 0)_J.encode($.deriveMessageKeyInput,Q.uint32(42).fork()).join();if($.rotateEpochInput!==void 0)cX.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??RG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.createBackupInput=vJ.decode(Z,Z.uint32(),K.createBackupInput);continue}case 2:{if(J!==18)break;K.encryptMessageInput=oJ.decode(Z,Z.uint32(),K.encryptMessageInput);continue}case 3:{if(J!==26)break;K.decryptMessageInput=fJ.decode(Z,Z.uint32(),K.decryptMessageInput);continue}case 4:{if(J!==34)break;K.orfThreadIdInput=BX.decode(Z,Z.uint32(),K.orfThreadIdInput);continue}case 5:{if(J!==42)break;K.deriveMessageKeyInput=_J.decode(Z,Z.uint32(),K.deriveMessageKeyInput);continue}case 6:{if(J!==50)break;K.rotateEpochInput=cX.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 DR.fromPartial($??{})},fromPartial($){let Q=RG();return Q.createBackupInput=$.createBackupInput!==void 0&&$.createBackupInput!==null?vJ.fromPartial($.createBackupInput):void 0,Q.encryptMessageInput=$.encryptMessageInput!==void 0&&$.encryptMessageInput!==null?oJ.fromPartial($.encryptMessageInput):void 0,Q.decryptMessageInput=$.decryptMessageInput!==void 0&&$.decryptMessageInput!==null?fJ.fromPartial($.decryptMessageInput):void 0,Q.orfThreadIdInput=$.orfThreadIdInput!==void 0&&$.orfThreadIdInput!==null?BX.fromPartial($.orfThreadIdInput):void 0,Q.deriveMessageKeyInput=$.deriveMessageKeyInput!==void 0&&$.deriveMessageKeyInput!==null?_J.fromPartial($.deriveMessageKeyInput):void 0,Q.rotateEpochInput=$.rotateEpochInput!==void 0&&$.rotateEpochInput!==null?cX.fromPartial($.rotateEpochInput):void 0,Q}};function OG(){return{}}var OK={encode($,Q=new H){if($.eventResponseMessage!==void 0)I0.encode($.eventResponseMessage,Q.uint32(10).fork()).join();if($.pollVote!==void 0)T0.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??OG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eventResponseMessage=I0.decode(Z,Z.uint32(),K.eventResponseMessage);continue}case 2:{if(J!==18)break;K.pollVote=T0.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 OK.fromPartial($??{})},fromPartial($){let Q=OG();return Q.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?I0.fromPartial($.eventResponseMessage):void 0,Q.pollVote=$.pollVote!==void 0&&$.pollVote!==null?T0.fromPartial($.pollVote):void 0,Q}};function AG(){return{}}var D0={encode($,Q=new H){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??AG();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 D0.fromPartial($??{})},fromPartial($){let Q=AG();return Q.sharingLimited=$.sharingLimited??void 0,Q.trigger=$.trigger??void 0,Q.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,Q.initiatedByMe=$.initiatedByMe??void 0,Q}};function EG(){return{}}var AK={encode($,Q=new H){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??EG();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 AK.fromPartial($??{})},fromPartial($){let Q=EG();return Q.lg=$.lg??void 0,Q.lc=$.lc??void 0,Q.verifiedName=$.verifiedName??void 0,Q}};function MG(){return{}}var EK={encode($,Q=new H){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??MG();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 EK.fromPartial($??{})},fromPartial($){let Q=MG();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q}};function WG(){return{}}var c0={encode($,Q=new H){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??WG();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 c0.fromPartial($??{})},fromPartial($){let Q=WG();return Q.localPath=$.localPath??void 0,Q}};function SG(){return{}}var MK={encode($,Q=new H){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??SG();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 MK.fromPartial($??{})},fromPartial($){let Q=SG();return Q.mediaKeyDomain=$.mediaKeyDomain??void 0,Q.e2EeMediaKey=$.e2EeMediaKey??void 0,Q}};function IG(){return{}}var FR={encode($,Q=new H){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)WK.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)SK.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??IG();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=WK.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=SK.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 FR.fromPartial($??{})},fromPartial($){let Q=IG();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?WK.fromPartial($.downloadableThumbnail):void 0,Q.handle=$.handle??void 0,Q.filename=$.filename??void 0,Q.progressiveJpegDetails=$.progressiveJpegDetails!==void 0&&$.progressiveJpegDetails!==null?SK.fromPartial($.progressiveJpegDetails):void 0,Q.size=$.size??void 0,Q.lastDownloadAttemptTimestamp=$.lastDownloadAttemptTimestamp??void 0,Q}};function TG(){return{}}var WK={encode($,Q=new H){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??TG();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 WK.fromPartial($??{})},fromPartial($){let Q=TG();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 yG(){return{}}var SK={encode($,Q=new H){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??yG();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 SK.fromPartial($??{})},fromPartial($){let Q=yG();return Q.scanLengths=$.scanLengths?.map((q)=>q)||void 0,Q.sidecar=$.sidecar??void 0,Q}};function vG(){return{}}var IK={encode($,Q=new H){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??vG();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 IK.fromPartial($??{})},fromPartial($){let Q=vG();return Q.expressPathUrl=$.expressPathUrl??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.fileLength=$.fileLength??void 0,Q}};function fG(){return{}}var TY={encode($,Q=new H){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??fG();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 TY.fromPartial($??{})},fromPartial($){let Q=fG();return Q.stanzaId=$.stanzaId??void 0,Q.directPath=$.directPath??void 0,Q.result=$.result??void 0,Q.messageSecret=$.messageSecret??void 0,Q}};function _G(){return{}}var B0={encode($,Q=new H){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??_G();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 B0.fromPartial($??{})},fromPartial($){let Q=_G();return Q.label=$.label??void 0,Q.labelTimestamp=$.labelTimestamp??void 0,Q}};function hG(){return{}}var TK={encode($,Q=new H){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??hG();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 TK.fromPartial($??{})},fromPartial($){let Q=hG();return Q.mentionType=$.mentionType??void 0,Q.mentionedJid=$.mentionedJid??void 0,Q.offset=$.offset??void 0,Q.length=$.length??void 0,Q}};function lG(){return{}}var j={encode($,Q=new H){if($.conversation!==void 0)Q.uint32(10).string($.conversation);if($.senderKeyDistributionMessage!==void 0)b0.encode($.senderKeyDistributionMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)m.encode($.imageMessage,Q.uint32(26).fork()).join();if($.contactMessage!==void 0)U$.encode($.contactMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)s.encode($.locationMessage,Q.uint32(42).fork()).join();if($.extendedTextMessage!==void 0)C8.encode($.extendedTextMessage,Q.uint32(50).fork()).join();if($.documentMessage!==void 0)Z0.encode($.documentMessage,Q.uint32(58).fork()).join();if($.audioMessage!==void 0)G$.encode($.audioMessage,Q.uint32(66).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,Q.uint32(74).fork()).join();if($.call!==void 0)oK.encode($.call,Q.uint32(82).fork()).join();if($.chat!==void 0)rK.encode($.chat,Q.uint32(90).fork()).join();if($.protocolMessage!==void 0)nq.encode($.protocolMessage,Q.uint32(98).fork()).join();if($.contactsArrayMessage!==void 0)q8.encode($.contactsArrayMessage,Q.uint32(106).fork()).join();if($.highlyStructuredMessage!==void 0)n.encode($.highlyStructuredMessage,Q.uint32(114).fork()).join();if($.fastRatchetKeySenderKeyDistributionMessage!==void 0)b0.encode($.fastRatchetKeySenderKeyDistributionMessage,Q.uint32(122).fork()).join();if($.sendPaymentMessage!==void 0)eq.encode($.sendPaymentMessage,Q.uint32(130).fork()).join();if($.liveLocationMessage!==void 0)P$.encode($.liveLocationMessage,Q.uint32(146).fork()).join();if($.requestPaymentMessage!==void 0)iq.encode($.requestPaymentMessage,Q.uint32(178).fork()).join();if($.declinePaymentRequestMessage!==void 0)X8.encode($.declinePaymentRequestMessage,Q.uint32(186).fork()).join();if($.cancelPaymentRequestMessage!==void 0)gK.encode($.cancelPaymentRequestMessage,Q.uint32(194).fork()).join();if($.templateMessage!==void 0)N$.encode($.templateMessage,Q.uint32(202).fork()).join();if($.stickerMessage!==void 0)k$.encode($.stickerMessage,Q.uint32(210).fork()).join();if($.groupInviteMessage!==void 0)D8.encode($.groupInviteMessage,Q.uint32(226).fork()).join();if($.templateButtonReplyMessage!==void 0)GX.encode($.templateButtonReplyMessage,Q.uint32(234).fork()).join();if($.productMessage!==void 0)x$.encode($.productMessage,Q.uint32(242).fork()).join();if($.deviceSentMessage!==void 0)Y8.encode($.deviceSentMessage,Q.uint32(250).fork()).join();if($.messageContextInfo!==void 0)R$.encode($.messageContextInfo,Q.uint32(282).fork()).join();if($.listMessage!==void 0)w8.encode($.listMessage,Q.uint32(290).fork()).join();if($.viewOnceMessage!==void 0)T.encode($.viewOnceMessage,Q.uint32(298).fork()).join();if($.orderMessage!==void 0)$q.encode($.orderMessage,Q.uint32(306).fork()).join();if($.listResponseMessage!==void 0)i8.encode($.listResponseMessage,Q.uint32(314).fork()).join();if($.ephemeralMessage!==void 0)T.encode($.ephemeralMessage,Q.uint32(322).fork()).join();if($.invoiceMessage!==void 0)l8.encode($.invoiceMessage,Q.uint32(330).fork()).join();if($.buttonsMessage!==void 0)jK.encode($.buttonsMessage,Q.uint32(338).fork()).join();if($.buttonsResponseMessage!==void 0)bK.encode($.buttonsResponseMessage,Q.uint32(346).fork()).join();if($.paymentInviteMessage!==void 0)Zq.encode($.paymentInviteMessage,Q.uint32(354).fork()).join();if($.interactiveMessage!==void 0)O0.encode($.interactiveMessage,Q.uint32(362).fork()).join();if($.reactionMessage!==void 0)oq.encode($.reactionMessage,Q.uint32(370).fork()).join();if($.stickerSyncRmrMessage!==void 0)HX.encode($.stickerSyncRmrMessage,Q.uint32(378).fork()).join();if($.interactiveResponseMessage!==void 0)f8.encode($.interactiveResponseMessage,Q.uint32(386).fork()).join();if($.pollCreationMessage!==void 0)Q0.encode($.pollCreationMessage,Q.uint32(394).fork()).join();if($.pollUpdateMessage!==void 0)jq.encode($.pollUpdateMessage,Q.uint32(402).fork()).join();if($.keepInChatMessage!==void 0)p8.encode($.keepInChatMessage,Q.uint32(410).fork()).join();if($.documentWithCaptionMessage!==void 0)T.encode($.documentWithCaptionMessage,Q.uint32(426).fork()).join();if($.requestPhoneNumberMessage!==void 0)mq.encode($.requestPhoneNumberMessage,Q.uint32(434).fork()).join();if($.viewOnceMessageV2!==void 0)T.encode($.viewOnceMessageV2,Q.uint32(442).fork()).join();if($.encReactionMessage!==void 0)H8.encode($.encReactionMessage,Q.uint32(450).fork()).join();if($.editedMessage!==void 0)T.encode($.editedMessage,Q.uint32(466).fork()).join();if($.viewOnceMessageV2Extension!==void 0)T.encode($.viewOnceMessageV2Extension,Q.uint32(474).fork()).join();if($.pollCreationMessageV2!==void 0)Q0.encode($.pollCreationMessageV2,Q.uint32(482).fork()).join();if($.scheduledCallCreationMessage!==void 0)tq.encode($.scheduledCallCreationMessage,Q.uint32(490).fork()).join();if($.groupMentionedMessage!==void 0)T.encode($.groupMentionedMessage,Q.uint32(498).fork()).join();if($.pinInChatMessage!==void 0)hq.encode($.pinInChatMessage,Q.uint32(506).fork()).join();if($.pollCreationMessageV3!==void 0)Q0.encode($.pollCreationMessageV3,Q.uint32(514).fork()).join();if($.scheduledCallEditMessage!==void 0)aq.encode($.scheduledCallEditMessage,Q.uint32(522).fork()).join();if($.ptvMessage!==void 0)t.encode($.ptvMessage,Q.uint32(530).fork()).join();if($.botInvokeMessage!==void 0)T.encode($.botInvokeMessage,Q.uint32(538).fork()).join();if($.callLogMesssage!==void 0)iK.encode($.callLogMesssage,Q.uint32(554).fork()).join();if($.messageHistoryBundle!==void 0)D$.encode($.messageHistoryBundle,Q.uint32(562).fork()).join();if($.encCommentMessage!==void 0)V8.encode($.encCommentMessage,Q.uint32(570).fork()).join();if($.bcallMessage!==void 0)uK.encode($.bcallMessage,Q.uint32(578).fork()).join();if($.lottieStickerMessage!==void 0)T.encode($.lottieStickerMessage,Q.uint32(594).fork()).join();if($.eventMessage!==void 0)U8.encode($.eventMessage,Q.uint32(602).fork()).join();if($.encEventResponseMessage!==void 0)z8.encode($.encEventResponseMessage,Q.uint32(610).fork()).join();if($.commentMessage!==void 0)J8.encode($.commentMessage,Q.uint32(618).fork()).join();if($.newsletterAdminInviteMessage!==void 0)s8.encode($.newsletterAdminInviteMessage,Q.uint32(626).fork()).join();if($.placeholderMessage!==void 0)lq.encode($.placeholderMessage,Q.uint32(642).fork()).join();if($.secretEncryptedMessage!==void 0)sq.encode($.secretEncryptedMessage,Q.uint32(658).fork()).join();if($.albumMessage!==void 0)yK.encode($.albumMessage,Q.uint32(666).fork()).join();if($.eventCoverImage!==void 0)T.encode($.eventCoverImage,Q.uint32(682).fork()).join();if($.stickerPackMessage!==void 0)VX.encode($.stickerPackMessage,Q.uint32(690).fork()).join();if($.statusMentionMessage!==void 0)T.encode($.statusMentionMessage,Q.uint32(698).fork()).join();if($.pollResultSnapshotMessage!==void 0)n0.encode($.pollResultSnapshotMessage,Q.uint32(706).fork()).join();if($.pollCreationOptionImageMessage!==void 0)T.encode($.pollCreationOptionImageMessage,Q.uint32(722).fork()).join();if($.associatedChildMessage!==void 0)T.encode($.associatedChildMessage,Q.uint32(730).fork()).join();if($.groupStatusMentionMessage!==void 0)T.encode($.groupStatusMentionMessage,Q.uint32(738).fork()).join();if($.pollCreationMessageV4!==void 0)T.encode($.pollCreationMessageV4,Q.uint32(746).fork()).join();if($.statusAddYours!==void 0)T.encode($.statusAddYours,Q.uint32(762).fork()).join();if($.groupStatusMessage!==void 0)T.encode($.groupStatusMessage,Q.uint32(770).fork()).join();if($.richResponseMessage!==void 0)NQ.encode($.richResponseMessage,Q.uint32(778).fork()).join();if($.statusNotificationMessage!==void 0)KX.encode($.statusNotificationMessage,Q.uint32(786).fork()).join();if($.limitSharingMessage!==void 0)T.encode($.limitSharingMessage,Q.uint32(794).fork()).join();if($.botTaskMessage!==void 0)T.encode($.botTaskMessage,Q.uint32(802).fork()).join();if($.questionMessage!==void 0)T.encode($.questionMessage,Q.uint32(810).fork()).join();if($.messageHistoryNotice!==void 0)t8.encode($.messageHistoryNotice,Q.uint32(818).fork()).join();if($.groupStatusMessageV2!==void 0)T.encode($.groupStatusMessageV2,Q.uint32(826).fork()).join();if($.botForwardedMessage!==void 0)T.encode($.botForwardedMessage,Q.uint32(834).fork()).join();if($.statusQuestionAnswerMessage!==void 0)qX.encode($.statusQuestionAnswerMessage,Q.uint32(842).fork()).join();if($.questionReplyMessage!==void 0)T.encode($.questionReplyMessage,Q.uint32(850).fork()).join();if($.questionResponseMessage!==void 0)bq.encode($.questionResponseMessage,Q.uint32(858).fork()).join();if($.statusQuotedMessage!==void 0)XX.encode($.statusQuotedMessage,Q.uint32(874).fork()).join();if($.statusStickerInteractionMessage!==void 0)YX.encode($.statusStickerInteractionMessage,Q.uint32(882).fork()).join();if($.pollCreationMessageV5!==void 0)Q0.encode($.pollCreationMessageV5,Q.uint32(890).fork()).join();if($.newsletterFollowerInviteMessageV2!==void 0)e8.encode($.newsletterFollowerInviteMessageV2,Q.uint32(906).fork()).join();if($.pollResultSnapshotMessageV3!==void 0)n0.encode($.pollResultSnapshotMessageV3,Q.uint32(922).fork()).join();if($.newsletterAdminProfileMessage!==void 0)T.encode($.newsletterAdminProfileMessage,Q.uint32(930).fork()).join();if($.newsletterAdminProfileMessageV2!==void 0)T.encode($.newsletterAdminProfileMessageV2,Q.uint32(938).fork()).join();if($.spoilerMessage!==void 0)T.encode($.spoilerMessage,Q.uint32(946).fork()).join();if($.pollCreationMessageV6!==void 0)Q0.encode($.pollCreationMessageV6,Q.uint32(954).fork()).join();if($.conditionalRevealMessage!==void 0)K8.encode($.conditionalRevealMessage,Q.uint32(962).fork()).join();if($.pollAddOptionMessage!==void 0)pq.encode($.pollAddOptionMessage,Q.uint32(970).fork()).join();if($.eventInviteMessage!==void 0)G8.encode($.eventInviteMessage,Q.uint32(978).fork()).join();if($.groupRootKeyShare!==void 0)ZK.encode($.groupRootKeyShare,Q.uint32(986).fork()).join();if($.paymentReminderMessage!==void 0)Xq.encode($.paymentReminderMessage,Q.uint32(994).fork()).join();if($.splitPaymentMessage!==void 0)$X.encode($.splitPaymentMessage,Q.uint32(1002).fork()).join();if($.newsletterAdminProfileStatusMessage!==void 0)T.encode($.newsletterAdminProfileStatusMessage,Q.uint32(1010).fork()).join();if($.rootSecretDistributeMessage!==void 0)rq.encode($.rootSecretDistributeMessage,Q.uint32(1018).fork()).join();if($.splitPaymentUpdateMessage!==void 0)ZX.encode($.splitPaymentUpdateMessage,Q.uint32(1026).fork()).join();if($.musicMessage!==void 0)a8.encode($.musicMessage,Q.uint32(1034).fork()).join();if($.statusLinkPreviewMetadata!==void 0)JX.encode($.statusLinkPreviewMetadata,Q.uint32(1042).fork()).join();if($.botPlatformRegistrationSuccessMessage!==void 0)T.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??lG();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=b0.decode(Z,Z.uint32(),K.senderKeyDistributionMessage);continue}case 3:{if(J!==26)break;K.imageMessage=m.decode(Z,Z.uint32(),K.imageMessage);continue}case 4:{if(J!==34)break;K.contactMessage=U$.decode(Z,Z.uint32(),K.contactMessage);continue}case 5:{if(J!==42)break;K.locationMessage=s.decode(Z,Z.uint32(),K.locationMessage);continue}case 6:{if(J!==50)break;K.extendedTextMessage=C8.decode(Z,Z.uint32(),K.extendedTextMessage);continue}case 7:{if(J!==58)break;K.documentMessage=Z0.decode(Z,Z.uint32(),K.documentMessage);continue}case 8:{if(J!==66)break;K.audioMessage=G$.decode(Z,Z.uint32(),K.audioMessage);continue}case 9:{if(J!==74)break;K.videoMessage=t.decode(Z,Z.uint32(),K.videoMessage);continue}case 10:{if(J!==82)break;K.call=oK.decode(Z,Z.uint32(),K.call);continue}case 11:{if(J!==90)break;K.chat=rK.decode(Z,Z.uint32(),K.chat);continue}case 12:{if(J!==98)break;K.protocolMessage=nq.decode(Z,Z.uint32(),K.protocolMessage);continue}case 13:{if(J!==106)break;K.contactsArrayMessage=q8.decode(Z,Z.uint32(),K.contactsArrayMessage);continue}case 14:{if(J!==114)break;K.highlyStructuredMessage=n.decode(Z,Z.uint32(),K.highlyStructuredMessage);continue}case 15:{if(J!==122)break;K.fastRatchetKeySenderKeyDistributionMessage=b0.decode(Z,Z.uint32(),K.fastRatchetKeySenderKeyDistributionMessage);continue}case 16:{if(J!==130)break;K.sendPaymentMessage=eq.decode(Z,Z.uint32(),K.sendPaymentMessage);continue}case 18:{if(J!==146)break;K.liveLocationMessage=P$.decode(Z,Z.uint32(),K.liveLocationMessage);continue}case 22:{if(J!==178)break;K.requestPaymentMessage=iq.decode(Z,Z.uint32(),K.requestPaymentMessage);continue}case 23:{if(J!==186)break;K.declinePaymentRequestMessage=X8.decode(Z,Z.uint32(),K.declinePaymentRequestMessage);continue}case 24:{if(J!==194)break;K.cancelPaymentRequestMessage=gK.decode(Z,Z.uint32(),K.cancelPaymentRequestMessage);continue}case 25:{if(J!==202)break;K.templateMessage=N$.decode(Z,Z.uint32(),K.templateMessage);continue}case 26:{if(J!==210)break;K.stickerMessage=k$.decode(Z,Z.uint32(),K.stickerMessage);continue}case 28:{if(J!==226)break;K.groupInviteMessage=D8.decode(Z,Z.uint32(),K.groupInviteMessage);continue}case 29:{if(J!==234)break;K.templateButtonReplyMessage=GX.decode(Z,Z.uint32(),K.templateButtonReplyMessage);continue}case 30:{if(J!==242)break;K.productMessage=x$.decode(Z,Z.uint32(),K.productMessage);continue}case 31:{if(J!==250)break;K.deviceSentMessage=Y8.decode(Z,Z.uint32(),K.deviceSentMessage);continue}case 35:{if(J!==282)break;K.messageContextInfo=R$.decode(Z,Z.uint32(),K.messageContextInfo);continue}case 36:{if(J!==290)break;K.listMessage=w8.decode(Z,Z.uint32(),K.listMessage);continue}case 37:{if(J!==298)break;K.viewOnceMessage=T.decode(Z,Z.uint32(),K.viewOnceMessage);continue}case 38:{if(J!==306)break;K.orderMessage=$q.decode(Z,Z.uint32(),K.orderMessage);continue}case 39:{if(J!==314)break;K.listResponseMessage=i8.decode(Z,Z.uint32(),K.listResponseMessage);continue}case 40:{if(J!==322)break;K.ephemeralMessage=T.decode(Z,Z.uint32(),K.ephemeralMessage);continue}case 41:{if(J!==330)break;K.invoiceMessage=l8.decode(Z,Z.uint32(),K.invoiceMessage);continue}case 42:{if(J!==338)break;K.buttonsMessage=jK.decode(Z,Z.uint32(),K.buttonsMessage);continue}case 43:{if(J!==346)break;K.buttonsResponseMessage=bK.decode(Z,Z.uint32(),K.buttonsResponseMessage);continue}case 44:{if(J!==354)break;K.paymentInviteMessage=Zq.decode(Z,Z.uint32(),K.paymentInviteMessage);continue}case 45:{if(J!==362)break;K.interactiveMessage=O0.decode(Z,Z.uint32(),K.interactiveMessage);continue}case 46:{if(J!==370)break;K.reactionMessage=oq.decode(Z,Z.uint32(),K.reactionMessage);continue}case 47:{if(J!==378)break;K.stickerSyncRmrMessage=HX.decode(Z,Z.uint32(),K.stickerSyncRmrMessage);continue}case 48:{if(J!==386)break;K.interactiveResponseMessage=f8.decode(Z,Z.uint32(),K.interactiveResponseMessage);continue}case 49:{if(J!==394)break;K.pollCreationMessage=Q0.decode(Z,Z.uint32(),K.pollCreationMessage);continue}case 50:{if(J!==402)break;K.pollUpdateMessage=jq.decode(Z,Z.uint32(),K.pollUpdateMessage);continue}case 51:{if(J!==410)break;K.keepInChatMessage=p8.decode(Z,Z.uint32(),K.keepInChatMessage);continue}case 53:{if(J!==426)break;K.documentWithCaptionMessage=T.decode(Z,Z.uint32(),K.documentWithCaptionMessage);continue}case 54:{if(J!==434)break;K.requestPhoneNumberMessage=mq.decode(Z,Z.uint32(),K.requestPhoneNumberMessage);continue}case 55:{if(J!==442)break;K.viewOnceMessageV2=T.decode(Z,Z.uint32(),K.viewOnceMessageV2);continue}case 56:{if(J!==450)break;K.encReactionMessage=H8.decode(Z,Z.uint32(),K.encReactionMessage);continue}case 58:{if(J!==466)break;K.editedMessage=T.decode(Z,Z.uint32(),K.editedMessage);continue}case 59:{if(J!==474)break;K.viewOnceMessageV2Extension=T.decode(Z,Z.uint32(),K.viewOnceMessageV2Extension);continue}case 60:{if(J!==482)break;K.pollCreationMessageV2=Q0.decode(Z,Z.uint32(),K.pollCreationMessageV2);continue}case 61:{if(J!==490)break;K.scheduledCallCreationMessage=tq.decode(Z,Z.uint32(),K.scheduledCallCreationMessage);continue}case 62:{if(J!==498)break;K.groupMentionedMessage=T.decode(Z,Z.uint32(),K.groupMentionedMessage);continue}case 63:{if(J!==506)break;K.pinInChatMessage=hq.decode(Z,Z.uint32(),K.pinInChatMessage);continue}case 64:{if(J!==514)break;K.pollCreationMessageV3=Q0.decode(Z,Z.uint32(),K.pollCreationMessageV3);continue}case 65:{if(J!==522)break;K.scheduledCallEditMessage=aq.decode(Z,Z.uint32(),K.scheduledCallEditMessage);continue}case 66:{if(J!==530)break;K.ptvMessage=t.decode(Z,Z.uint32(),K.ptvMessage);continue}case 67:{if(J!==538)break;K.botInvokeMessage=T.decode(Z,Z.uint32(),K.botInvokeMessage);continue}case 69:{if(J!==554)break;K.callLogMesssage=iK.decode(Z,Z.uint32(),K.callLogMesssage);continue}case 70:{if(J!==562)break;K.messageHistoryBundle=D$.decode(Z,Z.uint32(),K.messageHistoryBundle);continue}case 71:{if(J!==570)break;K.encCommentMessage=V8.decode(Z,Z.uint32(),K.encCommentMessage);continue}case 72:{if(J!==578)break;K.bcallMessage=uK.decode(Z,Z.uint32(),K.bcallMessage);continue}case 74:{if(J!==594)break;K.lottieStickerMessage=T.decode(Z,Z.uint32(),K.lottieStickerMessage);continue}case 75:{if(J!==602)break;K.eventMessage=U8.decode(Z,Z.uint32(),K.eventMessage);continue}case 76:{if(J!==610)break;K.encEventResponseMessage=z8.decode(Z,Z.uint32(),K.encEventResponseMessage);continue}case 77:{if(J!==618)break;K.commentMessage=J8.decode(Z,Z.uint32(),K.commentMessage);continue}case 78:{if(J!==626)break;K.newsletterAdminInviteMessage=s8.decode(Z,Z.uint32(),K.newsletterAdminInviteMessage);continue}case 80:{if(J!==642)break;K.placeholderMessage=lq.decode(Z,Z.uint32(),K.placeholderMessage);continue}case 82:{if(J!==658)break;K.secretEncryptedMessage=sq.decode(Z,Z.uint32(),K.secretEncryptedMessage);continue}case 83:{if(J!==666)break;K.albumMessage=yK.decode(Z,Z.uint32(),K.albumMessage);continue}case 85:{if(J!==682)break;K.eventCoverImage=T.decode(Z,Z.uint32(),K.eventCoverImage);continue}case 86:{if(J!==690)break;K.stickerPackMessage=VX.decode(Z,Z.uint32(),K.stickerPackMessage);continue}case 87:{if(J!==698)break;K.statusMentionMessage=T.decode(Z,Z.uint32(),K.statusMentionMessage);continue}case 88:{if(J!==706)break;K.pollResultSnapshotMessage=n0.decode(Z,Z.uint32(),K.pollResultSnapshotMessage);continue}case 90:{if(J!==722)break;K.pollCreationOptionImageMessage=T.decode(Z,Z.uint32(),K.pollCreationOptionImageMessage);continue}case 91:{if(J!==730)break;K.associatedChildMessage=T.decode(Z,Z.uint32(),K.associatedChildMessage);continue}case 92:{if(J!==738)break;K.groupStatusMentionMessage=T.decode(Z,Z.uint32(),K.groupStatusMentionMessage);continue}case 93:{if(J!==746)break;K.pollCreationMessageV4=T.decode(Z,Z.uint32(),K.pollCreationMessageV4);continue}case 95:{if(J!==762)break;K.statusAddYours=T.decode(Z,Z.uint32(),K.statusAddYours);continue}case 96:{if(J!==770)break;K.groupStatusMessage=T.decode(Z,Z.uint32(),K.groupStatusMessage);continue}case 97:{if(J!==778)break;K.richResponseMessage=NQ.decode(Z,Z.uint32(),K.richResponseMessage);continue}case 98:{if(J!==786)break;K.statusNotificationMessage=KX.decode(Z,Z.uint32(),K.statusNotificationMessage);continue}case 99:{if(J!==794)break;K.limitSharingMessage=T.decode(Z,Z.uint32(),K.limitSharingMessage);continue}case 100:{if(J!==802)break;K.botTaskMessage=T.decode(Z,Z.uint32(),K.botTaskMessage);continue}case 101:{if(J!==810)break;K.questionMessage=T.decode(Z,Z.uint32(),K.questionMessage);continue}case 102:{if(J!==818)break;K.messageHistoryNotice=t8.decode(Z,Z.uint32(),K.messageHistoryNotice);continue}case 103:{if(J!==826)break;K.groupStatusMessageV2=T.decode(Z,Z.uint32(),K.groupStatusMessageV2);continue}case 104:{if(J!==834)break;K.botForwardedMessage=T.decode(Z,Z.uint32(),K.botForwardedMessage);continue}case 105:{if(J!==842)break;K.statusQuestionAnswerMessage=qX.decode(Z,Z.uint32(),K.statusQuestionAnswerMessage);continue}case 106:{if(J!==850)break;K.questionReplyMessage=T.decode(Z,Z.uint32(),K.questionReplyMessage);continue}case 107:{if(J!==858)break;K.questionResponseMessage=bq.decode(Z,Z.uint32(),K.questionResponseMessage);continue}case 109:{if(J!==874)break;K.statusQuotedMessage=XX.decode(Z,Z.uint32(),K.statusQuotedMessage);continue}case 110:{if(J!==882)break;K.statusStickerInteractionMessage=YX.decode(Z,Z.uint32(),K.statusStickerInteractionMessage);continue}case 111:{if(J!==890)break;K.pollCreationMessageV5=Q0.decode(Z,Z.uint32(),K.pollCreationMessageV5);continue}case 113:{if(J!==906)break;K.newsletterFollowerInviteMessageV2=e8.decode(Z,Z.uint32(),K.newsletterFollowerInviteMessageV2);continue}case 115:{if(J!==922)break;K.pollResultSnapshotMessageV3=n0.decode(Z,Z.uint32(),K.pollResultSnapshotMessageV3);continue}case 116:{if(J!==930)break;K.newsletterAdminProfileMessage=T.decode(Z,Z.uint32(),K.newsletterAdminProfileMessage);continue}case 117:{if(J!==938)break;K.newsletterAdminProfileMessageV2=T.decode(Z,Z.uint32(),K.newsletterAdminProfileMessageV2);continue}case 118:{if(J!==946)break;K.spoilerMessage=T.decode(Z,Z.uint32(),K.spoilerMessage);continue}case 119:{if(J!==954)break;K.pollCreationMessageV6=Q0.decode(Z,Z.uint32(),K.pollCreationMessageV6);continue}case 120:{if(J!==962)break;K.conditionalRevealMessage=K8.decode(Z,Z.uint32(),K.conditionalRevealMessage);continue}case 121:{if(J!==970)break;K.pollAddOptionMessage=pq.decode(Z,Z.uint32(),K.pollAddOptionMessage);continue}case 122:{if(J!==978)break;K.eventInviteMessage=G8.decode(Z,Z.uint32(),K.eventInviteMessage);continue}case 123:{if(J!==986)break;K.groupRootKeyShare=ZK.decode(Z,Z.uint32(),K.groupRootKeyShare);continue}case 124:{if(J!==994)break;K.paymentReminderMessage=Xq.decode(Z,Z.uint32(),K.paymentReminderMessage);continue}case 125:{if(J!==1002)break;K.splitPaymentMessage=$X.decode(Z,Z.uint32(),K.splitPaymentMessage);continue}case 126:{if(J!==1010)break;K.newsletterAdminProfileStatusMessage=T.decode(Z,Z.uint32(),K.newsletterAdminProfileStatusMessage);continue}case 127:{if(J!==1018)break;K.rootSecretDistributeMessage=rq.decode(Z,Z.uint32(),K.rootSecretDistributeMessage);continue}case 128:{if(J!==1026)break;K.splitPaymentUpdateMessage=ZX.decode(Z,Z.uint32(),K.splitPaymentUpdateMessage);continue}case 129:{if(J!==1034)break;K.musicMessage=a8.decode(Z,Z.uint32(),K.musicMessage);continue}case 130:{if(J!==1042)break;K.statusLinkPreviewMetadata=JX.decode(Z,Z.uint32(),K.statusLinkPreviewMetadata);continue}case 131:{if(J!==1050)break;K.botPlatformRegistrationSuccessMessage=T.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 j.fromPartial($??{})},fromPartial($){let Q=lG();return Q.conversation=$.conversation??void 0,Q.senderKeyDistributionMessage=$.senderKeyDistributionMessage!==void 0&&$.senderKeyDistributionMessage!==null?b0.fromPartial($.senderKeyDistributionMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?m.fromPartial($.imageMessage):void 0,Q.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?U$.fromPartial($.contactMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?s.fromPartial($.locationMessage):void 0,Q.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?C8.fromPartial($.extendedTextMessage):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?Z0.fromPartial($.documentMessage):void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?G$.fromPartial($.audioMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,Q.call=$.call!==void 0&&$.call!==null?oK.fromPartial($.call):void 0,Q.chat=$.chat!==void 0&&$.chat!==null?rK.fromPartial($.chat):void 0,Q.protocolMessage=$.protocolMessage!==void 0&&$.protocolMessage!==null?nq.fromPartial($.protocolMessage):void 0,Q.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?q8.fromPartial($.contactsArrayMessage):void 0,Q.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?n.fromPartial($.highlyStructuredMessage):void 0,Q.fastRatchetKeySenderKeyDistributionMessage=$.fastRatchetKeySenderKeyDistributionMessage!==void 0&&$.fastRatchetKeySenderKeyDistributionMessage!==null?b0.fromPartial($.fastRatchetKeySenderKeyDistributionMessage):void 0,Q.sendPaymentMessage=$.sendPaymentMessage!==void 0&&$.sendPaymentMessage!==null?eq.fromPartial($.sendPaymentMessage):void 0,Q.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?P$.fromPartial($.liveLocationMessage):void 0,Q.requestPaymentMessage=$.requestPaymentMessage!==void 0&&$.requestPaymentMessage!==null?iq.fromPartial($.requestPaymentMessage):void 0,Q.declinePaymentRequestMessage=$.declinePaymentRequestMessage!==void 0&&$.declinePaymentRequestMessage!==null?X8.fromPartial($.declinePaymentRequestMessage):void 0,Q.cancelPaymentRequestMessage=$.cancelPaymentRequestMessage!==void 0&&$.cancelPaymentRequestMessage!==null?gK.fromPartial($.cancelPaymentRequestMessage):void 0,Q.templateMessage=$.templateMessage!==void 0&&$.templateMessage!==null?N$.fromPartial($.templateMessage):void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?k$.fromPartial($.stickerMessage):void 0,Q.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?D8.fromPartial($.groupInviteMessage):void 0,Q.templateButtonReplyMessage=$.templateButtonReplyMessage!==void 0&&$.templateButtonReplyMessage!==null?GX.fromPartial($.templateButtonReplyMessage):void 0,Q.productMessage=$.productMessage!==void 0&&$.productMessage!==null?x$.fromPartial($.productMessage):void 0,Q.deviceSentMessage=$.deviceSentMessage!==void 0&&$.deviceSentMessage!==null?Y8.fromPartial($.deviceSentMessage):void 0,Q.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?R$.fromPartial($.messageContextInfo):void 0,Q.listMessage=$.listMessage!==void 0&&$.listMessage!==null?w8.fromPartial($.listMessage):void 0,Q.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?T.fromPartial($.viewOnceMessage):void 0,Q.orderMessage=$.orderMessage!==void 0&&$.orderMessage!==null?$q.fromPartial($.orderMessage):void 0,Q.listResponseMessage=$.listResponseMessage!==void 0&&$.listResponseMessage!==null?i8.fromPartial($.listResponseMessage):void 0,Q.ephemeralMessage=$.ephemeralMessage!==void 0&&$.ephemeralMessage!==null?T.fromPartial($.ephemeralMessage):void 0,Q.invoiceMessage=$.invoiceMessage!==void 0&&$.invoiceMessage!==null?l8.fromPartial($.invoiceMessage):void 0,Q.buttonsMessage=$.buttonsMessage!==void 0&&$.buttonsMessage!==null?jK.fromPartial($.buttonsMessage):void 0,Q.buttonsResponseMessage=$.buttonsResponseMessage!==void 0&&$.buttonsResponseMessage!==null?bK.fromPartial($.buttonsResponseMessage):void 0,Q.paymentInviteMessage=$.paymentInviteMessage!==void 0&&$.paymentInviteMessage!==null?Zq.fromPartial($.paymentInviteMessage):void 0,Q.interactiveMessage=$.interactiveMessage!==void 0&&$.interactiveMessage!==null?O0.fromPartial($.interactiveMessage):void 0,Q.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?oq.fromPartial($.reactionMessage):void 0,Q.stickerSyncRmrMessage=$.stickerSyncRmrMessage!==void 0&&$.stickerSyncRmrMessage!==null?HX.fromPartial($.stickerSyncRmrMessage):void 0,Q.interactiveResponseMessage=$.interactiveResponseMessage!==void 0&&$.interactiveResponseMessage!==null?f8.fromPartial($.interactiveResponseMessage):void 0,Q.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?Q0.fromPartial($.pollCreationMessage):void 0,Q.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?jq.fromPartial($.pollUpdateMessage):void 0,Q.keepInChatMessage=$.keepInChatMessage!==void 0&&$.keepInChatMessage!==null?p8.fromPartial($.keepInChatMessage):void 0,Q.documentWithCaptionMessage=$.documentWithCaptionMessage!==void 0&&$.documentWithCaptionMessage!==null?T.fromPartial($.documentWithCaptionMessage):void 0,Q.requestPhoneNumberMessage=$.requestPhoneNumberMessage!==void 0&&$.requestPhoneNumberMessage!==null?mq.fromPartial($.requestPhoneNumberMessage):void 0,Q.viewOnceMessageV2=$.viewOnceMessageV2!==void 0&&$.viewOnceMessageV2!==null?T.fromPartial($.viewOnceMessageV2):void 0,Q.encReactionMessage=$.encReactionMessage!==void 0&&$.encReactionMessage!==null?H8.fromPartial($.encReactionMessage):void 0,Q.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?T.fromPartial($.editedMessage):void 0,Q.viewOnceMessageV2Extension=$.viewOnceMessageV2Extension!==void 0&&$.viewOnceMessageV2Extension!==null?T.fromPartial($.viewOnceMessageV2Extension):void 0,Q.pollCreationMessageV2=$.pollCreationMessageV2!==void 0&&$.pollCreationMessageV2!==null?Q0.fromPartial($.pollCreationMessageV2):void 0,Q.scheduledCallCreationMessage=$.scheduledCallCreationMessage!==void 0&&$.scheduledCallCreationMessage!==null?tq.fromPartial($.scheduledCallCreationMessage):void 0,Q.groupMentionedMessage=$.groupMentionedMessage!==void 0&&$.groupMentionedMessage!==null?T.fromPartial($.groupMentionedMessage):void 0,Q.pinInChatMessage=$.pinInChatMessage!==void 0&&$.pinInChatMessage!==null?hq.fromPartial($.pinInChatMessage):void 0,Q.pollCreationMessageV3=$.pollCreationMessageV3!==void 0&&$.pollCreationMessageV3!==null?Q0.fromPartial($.pollCreationMessageV3):void 0,Q.scheduledCallEditMessage=$.scheduledCallEditMessage!==void 0&&$.scheduledCallEditMessage!==null?aq.fromPartial($.scheduledCallEditMessage):void 0,Q.ptvMessage=$.ptvMessage!==void 0&&$.ptvMessage!==null?t.fromPartial($.ptvMessage):void 0,Q.botInvokeMessage=$.botInvokeMessage!==void 0&&$.botInvokeMessage!==null?T.fromPartial($.botInvokeMessage):void 0,Q.callLogMesssage=$.callLogMesssage!==void 0&&$.callLogMesssage!==null?iK.fromPartial($.callLogMesssage):void 0,Q.messageHistoryBundle=$.messageHistoryBundle!==void 0&&$.messageHistoryBundle!==null?D$.fromPartial($.messageHistoryBundle):void 0,Q.encCommentMessage=$.encCommentMessage!==void 0&&$.encCommentMessage!==null?V8.fromPartial($.encCommentMessage):void 0,Q.bcallMessage=$.bcallMessage!==void 0&&$.bcallMessage!==null?uK.fromPartial($.bcallMessage):void 0,Q.lottieStickerMessage=$.lottieStickerMessage!==void 0&&$.lottieStickerMessage!==null?T.fromPartial($.lottieStickerMessage):void 0,Q.eventMessage=$.eventMessage!==void 0&&$.eventMessage!==null?U8.fromPartial($.eventMessage):void 0,Q.encEventResponseMessage=$.encEventResponseMessage!==void 0&&$.encEventResponseMessage!==null?z8.fromPartial($.encEventResponseMessage):void 0,Q.commentMessage=$.commentMessage!==void 0&&$.commentMessage!==null?J8.fromPartial($.commentMessage):void 0,Q.newsletterAdminInviteMessage=$.newsletterAdminInviteMessage!==void 0&&$.newsletterAdminInviteMessage!==null?s8.fromPartial($.newsletterAdminInviteMessage):void 0,Q.placeholderMessage=$.placeholderMessage!==void 0&&$.placeholderMessage!==null?lq.fromPartial($.placeholderMessage):void 0,Q.secretEncryptedMessage=$.secretEncryptedMessage!==void 0&&$.secretEncryptedMessage!==null?sq.fromPartial($.secretEncryptedMessage):void 0,Q.albumMessage=$.albumMessage!==void 0&&$.albumMessage!==null?yK.fromPartial($.albumMessage):void 0,Q.eventCoverImage=$.eventCoverImage!==void 0&&$.eventCoverImage!==null?T.fromPartial($.eventCoverImage):void 0,Q.stickerPackMessage=$.stickerPackMessage!==void 0&&$.stickerPackMessage!==null?VX.fromPartial($.stickerPackMessage):void 0,Q.statusMentionMessage=$.statusMentionMessage!==void 0&&$.statusMentionMessage!==null?T.fromPartial($.statusMentionMessage):void 0,Q.pollResultSnapshotMessage=$.pollResultSnapshotMessage!==void 0&&$.pollResultSnapshotMessage!==null?n0.fromPartial($.pollResultSnapshotMessage):void 0,Q.pollCreationOptionImageMessage=$.pollCreationOptionImageMessage!==void 0&&$.pollCreationOptionImageMessage!==null?T.fromPartial($.pollCreationOptionImageMessage):void 0,Q.associatedChildMessage=$.associatedChildMessage!==void 0&&$.associatedChildMessage!==null?T.fromPartial($.associatedChildMessage):void 0,Q.groupStatusMentionMessage=$.groupStatusMentionMessage!==void 0&&$.groupStatusMentionMessage!==null?T.fromPartial($.groupStatusMentionMessage):void 0,Q.pollCreationMessageV4=$.pollCreationMessageV4!==void 0&&$.pollCreationMessageV4!==null?T.fromPartial($.pollCreationMessageV4):void 0,Q.statusAddYours=$.statusAddYours!==void 0&&$.statusAddYours!==null?T.fromPartial($.statusAddYours):void 0,Q.groupStatusMessage=$.groupStatusMessage!==void 0&&$.groupStatusMessage!==null?T.fromPartial($.groupStatusMessage):void 0,Q.richResponseMessage=$.richResponseMessage!==void 0&&$.richResponseMessage!==null?NQ.fromPartial($.richResponseMessage):void 0,Q.statusNotificationMessage=$.statusNotificationMessage!==void 0&&$.statusNotificationMessage!==null?KX.fromPartial($.statusNotificationMessage):void 0,Q.limitSharingMessage=$.limitSharingMessage!==void 0&&$.limitSharingMessage!==null?T.fromPartial($.limitSharingMessage):void 0,Q.botTaskMessage=$.botTaskMessage!==void 0&&$.botTaskMessage!==null?T.fromPartial($.botTaskMessage):void 0,Q.questionMessage=$.questionMessage!==void 0&&$.questionMessage!==null?T.fromPartial($.questionMessage):void 0,Q.messageHistoryNotice=$.messageHistoryNotice!==void 0&&$.messageHistoryNotice!==null?t8.fromPartial($.messageHistoryNotice):void 0,Q.groupStatusMessageV2=$.groupStatusMessageV2!==void 0&&$.groupStatusMessageV2!==null?T.fromPartial($.groupStatusMessageV2):void 0,Q.botForwardedMessage=$.botForwardedMessage!==void 0&&$.botForwardedMessage!==null?T.fromPartial($.botForwardedMessage):void 0,Q.statusQuestionAnswerMessage=$.statusQuestionAnswerMessage!==void 0&&$.statusQuestionAnswerMessage!==null?qX.fromPartial($.statusQuestionAnswerMessage):void 0,Q.questionReplyMessage=$.questionReplyMessage!==void 0&&$.questionReplyMessage!==null?T.fromPartial($.questionReplyMessage):void 0,Q.questionResponseMessage=$.questionResponseMessage!==void 0&&$.questionResponseMessage!==null?bq.fromPartial($.questionResponseMessage):void 0,Q.statusQuotedMessage=$.statusQuotedMessage!==void 0&&$.statusQuotedMessage!==null?XX.fromPartial($.statusQuotedMessage):void 0,Q.statusStickerInteractionMessage=$.statusStickerInteractionMessage!==void 0&&$.statusStickerInteractionMessage!==null?YX.fromPartial($.statusStickerInteractionMessage):void 0,Q.pollCreationMessageV5=$.pollCreationMessageV5!==void 0&&$.pollCreationMessageV5!==null?Q0.fromPartial($.pollCreationMessageV5):void 0,Q.newsletterFollowerInviteMessageV2=$.newsletterFollowerInviteMessageV2!==void 0&&$.newsletterFollowerInviteMessageV2!==null?e8.fromPartial($.newsletterFollowerInviteMessageV2):void 0,Q.pollResultSnapshotMessageV3=$.pollResultSnapshotMessageV3!==void 0&&$.pollResultSnapshotMessageV3!==null?n0.fromPartial($.pollResultSnapshotMessageV3):void 0,Q.newsletterAdminProfileMessage=$.newsletterAdminProfileMessage!==void 0&&$.newsletterAdminProfileMessage!==null?T.fromPartial($.newsletterAdminProfileMessage):void 0,Q.newsletterAdminProfileMessageV2=$.newsletterAdminProfileMessageV2!==void 0&&$.newsletterAdminProfileMessageV2!==null?T.fromPartial($.newsletterAdminProfileMessageV2):void 0,Q.spoilerMessage=$.spoilerMessage!==void 0&&$.spoilerMessage!==null?T.fromPartial($.spoilerMessage):void 0,Q.pollCreationMessageV6=$.pollCreationMessageV6!==void 0&&$.pollCreationMessageV6!==null?Q0.fromPartial($.pollCreationMessageV6):void 0,Q.conditionalRevealMessage=$.conditionalRevealMessage!==void 0&&$.conditionalRevealMessage!==null?K8.fromPartial($.conditionalRevealMessage):void 0,Q.pollAddOptionMessage=$.pollAddOptionMessage!==void 0&&$.pollAddOptionMessage!==null?pq.fromPartial($.pollAddOptionMessage):void 0,Q.eventInviteMessage=$.eventInviteMessage!==void 0&&$.eventInviteMessage!==null?G8.fromPartial($.eventInviteMessage):void 0,Q.groupRootKeyShare=$.groupRootKeyShare!==void 0&&$.groupRootKeyShare!==null?ZK.fromPartial($.groupRootKeyShare):void 0,Q.paymentReminderMessage=$.paymentReminderMessage!==void 0&&$.paymentReminderMessage!==null?Xq.fromPartial($.paymentReminderMessage):void 0,Q.splitPaymentMessage=$.splitPaymentMessage!==void 0&&$.splitPaymentMessage!==null?$X.fromPartial($.splitPaymentMessage):void 0,Q.newsletterAdminProfileStatusMessage=$.newsletterAdminProfileStatusMessage!==void 0&&$.newsletterAdminProfileStatusMessage!==null?T.fromPartial($.newsletterAdminProfileStatusMessage):void 0,Q.rootSecretDistributeMessage=$.rootSecretDistributeMessage!==void 0&&$.rootSecretDistributeMessage!==null?rq.fromPartial($.rootSecretDistributeMessage):void 0,Q.splitPaymentUpdateMessage=$.splitPaymentUpdateMessage!==void 0&&$.splitPaymentUpdateMessage!==null?ZX.fromPartial($.splitPaymentUpdateMessage):void 0,Q.musicMessage=$.musicMessage!==void 0&&$.musicMessage!==null?a8.fromPartial($.musicMessage):void 0,Q.statusLinkPreviewMetadata=$.statusLinkPreviewMetadata!==void 0&&$.statusLinkPreviewMetadata!==null?JX.fromPartial($.statusLinkPreviewMetadata):void 0,Q.botPlatformRegistrationSuccessMessage=$.botPlatformRegistrationSuccessMessage!==void 0&&$.botPlatformRegistrationSuccessMessage!==null?T.fromPartial($.botPlatformRegistrationSuccessMessage):void 0,Q}};function pG(){return{}}var yK={encode($,Q=new H){if($.expectedImageCount!==void 0)Q.uint32(16).uint32($.expectedImageCount);if($.expectedVideoCount!==void 0)Q.uint32(24).uint32($.expectedVideoCount);if($.contextInfo!==void 0)E.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??pG();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=E.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 yK.fromPartial($??{})},fromPartial($){let Q=pG();return Q.expectedImageCount=$.expectedImageCount??void 0,Q.expectedVideoCount=$.expectedVideoCount??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q}};function uG(){return{}}var vK={encode($,Q=new H){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??uG();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 vK.fromPartial($??{})},fromPartial($){let Q=uG();return Q.collectionNames=$.collectionNames?.map((q)=>q)||void 0,Q.timestamp=$.timestamp??void 0,Q}};function wG(){return{}}var fK={encode($,Q=new H){if($.keyId!==void 0)H$.encode($.keyId,Q.uint32(10).fork()).join();if($.keyData!==void 0)_K.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??wG();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.keyId=H$.decode(Z,Z.uint32(),K.keyId);continue}case 2:{if(J!==18)break;K.keyData=_K.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 fK.fromPartial($??{})},fromPartial($){let Q=wG();return Q.keyId=$.keyId!==void 0&&$.keyId!==null?H$.fromPartial($.keyId):void 0,Q.keyData=$.keyData!==void 0&&$.keyData!==null?_K.fromPartial($.keyData):void 0,Q}};function jG(){return{}}var _K={encode($,Q=new H){if($.keyData!==void 0)Q.uint32(10).bytes($.keyData);if($.fingerprint!==void 0)hK.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??jG();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=hK.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 _K.fromPartial($??{})},fromPartial($){let Q=jG();return Q.keyData=$.keyData??void 0,Q.fingerprint=$.fingerprint!==void 0&&$.fingerprint!==null?hK.fromPartial($.fingerprint):void 0,Q.timestamp=$.timestamp??void 0,Q}};function dG(){return{}}var hK={encode($,Q=new H){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??dG();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 hK.fromPartial($??{})},fromPartial($){let Q=dG();return Q.rawId=$.rawId??void 0,Q.currentIndex=$.currentIndex??void 0,Q.deviceIndexes=$.deviceIndexes?.map((q)=>q)||void 0,Q}};function cG(){return{}}var H$={encode($,Q=new H){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??cG();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 H$.fromPartial($??{})},fromPartial($){let Q=cG();return Q.keyId=$.keyId??void 0,Q}};function nG(){return{}}var lK={encode($,Q=new H){if($.keyIds!==void 0&&$.keyIds.length!==0)for(let q of $.keyIds)H$.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??nG();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=H$.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 lK.fromPartial($??{})},fromPartial($){let Q=nG();return Q.keyIds=$.keyIds?.map((q)=>H$.fromPartial(q))||void 0,Q}};function bG(){return{}}var pK={encode($,Q=new H){if($.keys!==void 0&&$.keys.length!==0)for(let q of $.keys)fK.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??bG();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=fK.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 pK.fromPartial($??{})},fromPartial($){let Q=bG();return Q.keys=$.keys?.map((q)=>fK.fromPartial(q))||void 0,Q}};function oG(){return{}}var G$={encode($,Q=new H){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)E.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??oG();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=E.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 G$.fromPartial($??{})},fromPartial($){let Q=oG();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?E.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 iG(){return{}}var uK={encode($,Q=new H){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??iG();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 uK.fromPartial($??{})},fromPartial($){let Q=iG();return Q.sessionId=$.sessionId??void 0,Q.mediaType=$.mediaType??void 0,Q.masterKey=$.masterKey??void 0,Q.caption=$.caption??void 0,Q}};function mG(){return{}}var wK={encode($,Q=new H){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)B8.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??mG();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=B8.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 wK.fromPartial($??{})},fromPartial($){let Q=mG();return Q.botJid=$.botJid??void 0,Q.historyShareCutoffTimestamp=$.historyShareCutoffTimestamp??void 0,Q.historyShareMessages=$.historyShareMessages?.map((q)=>B8.fromPartial(q))||void 0,Q}};function gG(){return{}}var jK={encode($,Q=new H){if($.contentText!==void 0)Q.uint32(50).string($.contentText);if($.footerText!==void 0)Q.uint32(58).string($.footerText);if($.contextInfo!==void 0)E.encode($.contextInfo,Q.uint32(66).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let q of $.buttons)dK.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)Z0.encode($.documentMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)m.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)s.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??gG();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=E.decode(Z,Z.uint32(),K.contextInfo);continue}case 9:{if(J!==74)break;if(K.buttons===void 0)K.buttons=[];let V=dK.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=Z0.decode(Z,Z.uint32(),K.documentMessage);continue}case 3:{if(J!==26)break;K.imageMessage=m.decode(Z,Z.uint32(),K.imageMessage);continue}case 4:{if(J!==34)break;K.videoMessage=t.decode(Z,Z.uint32(),K.videoMessage);continue}case 5:{if(J!==42)break;K.locationMessage=s.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 jK.fromPartial($??{})},fromPartial($){let Q=gG();return Q.contentText=$.contentText??void 0,Q.footerText=$.footerText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.buttons=$.buttons?.map((q)=>dK.fromPartial(q))||void 0,Q.headerType=$.headerType??void 0,Q.text=$.text??void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?Z0.fromPartial($.documentMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?m.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?s.fromPartial($.locationMessage):void 0,Q}};function rG(){return{}}var dK={encode($,Q=new H){if($.buttonId!==void 0)Q.uint32(10).string($.buttonId);if($.buttonText!==void 0)cK.encode($.buttonText,Q.uint32(18).fork()).join();if($.type!==void 0)Q.uint32(24).int32($.type);if($.nativeFlowInfo!==void 0)nK.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??rG();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=cK.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=nK.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 dK.fromPartial($??{})},fromPartial($){let Q=rG();return Q.buttonId=$.buttonId??void 0,Q.buttonText=$.buttonText!==void 0&&$.buttonText!==null?cK.fromPartial($.buttonText):void 0,Q.type=$.type??void 0,Q.nativeFlowInfo=$.nativeFlowInfo!==void 0&&$.nativeFlowInfo!==null?nK.fromPartial($.nativeFlowInfo):void 0,Q}};function tG(){return{}}var cK={encode($,Q=new H){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??tG();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 cK.fromPartial($??{})},fromPartial($){let Q=tG();return Q.displayText=$.displayText??void 0,Q}};function aG(){return{}}var nK={encode($,Q=new H){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??aG();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 nK.fromPartial($??{})},fromPartial($){let Q=aG();return Q.name=$.name??void 0,Q.paramsJson=$.paramsJson??void 0,Q}};function sG(){return{}}var bK={encode($,Q=new H){if($.selectedButtonId!==void 0)Q.uint32(10).string($.selectedButtonId);if($.contextInfo!==void 0)E.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??sG();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=E.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 bK.fromPartial($??{})},fromPartial($){let Q=sG();return Q.selectedButtonId=$.selectedButtonId??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.type=$.type??void 0,Q.selectedDisplayText=$.selectedDisplayText??void 0,Q}};function eG(){return{}}var oK={encode($,Q=new H){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)E.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)R$.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??eG();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=E.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=R$.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 oK.fromPartial($??{})},fromPartial($){let Q=eG();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?E.fromPartial($.contextInfo):void 0,Q.nativeFlowCallButtonPayload=$.nativeFlowCallButtonPayload??void 0,Q.deeplinkPayload=$.deeplinkPayload??void 0,Q.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?R$.fromPartial($.messageContextInfo):void 0,Q.callEntryPoint=$.callEntryPoint??void 0,Q.callReason=$.callReason??void 0,Q}};function $U(){return{}}var iK={encode($,Q=new H){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)mK.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??$U();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=mK.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 iK.fromPartial($??{})},fromPartial($){let Q=$U();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)=>mK.fromPartial(q))||void 0,Q}};function QU(){return{}}var mK={encode($,Q=new H){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??QU();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 mK.fromPartial($??{})},fromPartial($){let Q=QU();return Q.jid=$.jid??void 0,Q.callOutcome=$.callOutcome??void 0,Q}};function ZU(){return{}}var gK={encode($,Q=new H){if($.key!==void 0)k.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??ZU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 gK.fromPartial($??{})},fromPartial($){let Q=ZU();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q}};function JU(){return{}}var rK={encode($,Q=new H){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??JU();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 rK.fromPartial($??{})},fromPartial($){let Q=JU();return Q.displayName=$.displayName??void 0,Q.id=$.id??void 0,Q}};function KU(){return{}}var tK={encode($,Q=new H){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??KU();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 tK.fromPartial($??{})},fromPartial($){let Q=KU();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 qU(){return{}}var aK={encode($,Q=new H){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??qU();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 aK.fromPartial($??{})},fromPartial($){let Q=qU();return Q.isDoodleEnabled=$.isDoodleEnabled??void 0,Q}};function XU(){return{}}var sK={encode($,Q=new H){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??XU();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 sK.fromPartial($??{})},fromPartial($){let Q=XU();return Q.colorLight=$.colorLight??void 0,Q.colorDark=$.colorDark??void 0,Q.isDoodleEnabled=$.isDoodleEnabled??void 0,Q}};function YU(){return{}}var eK={encode($,Q=new H){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??YU();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 eK.fromPartial($??{})},fromPartial($){let Q=YU();return Q.stockImageId=$.stockImageId??void 0,Q.dimLevel=$.dimLevel??void 0,Q}};function VU(){return{}}var $8={encode($,Q=new H){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)aK.encode($.defaultWallpaper,Q.uint32(82).fork()).join();if($.solidColor!==void 0)sK.encode($.solidColor,Q.uint32(90).fork()).join();if($.stockImage!==void 0)eK.encode($.stockImage,Q.uint32(98).fork()).join();if($.customImage!==void 0)tK.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??VU();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=aK.decode(Z,Z.uint32(),K.defaultWallpaper);continue}case 11:{if(J!==90)break;K.solidColor=sK.decode(Z,Z.uint32(),K.solidColor);continue}case 12:{if(J!==98)break;K.stockImage=eK.decode(Z,Z.uint32(),K.stockImage);continue}case 13:{if(J!==106)break;K.customImage=tK.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 $8.fromPartial($??{})},fromPartial($){let Q=VU();return Q.settingTimestampMs=$.settingTimestampMs??void 0,Q.clearTheme=$.clearTheme??void 0,Q.colorSchemeId=$.colorSchemeId??void 0,Q.defaultWallpaper=$.defaultWallpaper!==void 0&&$.defaultWallpaper!==null?aK.fromPartial($.defaultWallpaper):void 0,Q.solidColor=$.solidColor!==void 0&&$.solidColor!==null?sK.fromPartial($.solidColor):void 0,Q.stockImage=$.stockImage!==void 0&&$.stockImage!==null?eK.fromPartial($.stockImage):void 0,Q.customImage=$.customImage!==void 0&&$.customImage!==null?tK.fromPartial($.customImage):void 0,Q}};function zU(){return{}}var Q8={encode($,Q=new H){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)Z8.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??zU();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=Z8.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 Q8.fromPartial($??{})},fromPartial($){let Q=zU();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?Z8.fromPartial($.notificationContent):void 0,Q.shouldSuppressNotification=$.shouldSuppressNotification??void 0,Q}};function HU(){return{}}var Z8={encode($,Q=new H){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??HU();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 Z8.fromPartial($??{})},fromPartial($){let Q=HU();return Q.handoffNotificationText=$.handoffNotificationText??void 0,Q.extraJson=$.extraJson??void 0,Q}};function GU(){return{}}var J8={encode($,Q=new H){if($.message!==void 0)j.encode($.message,Q.uint32(10).fork()).join();if($.targetMessageKey!==void 0)k.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??GU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.message=j.decode(Z,Z.uint32(),K.message);continue}case 2:{if(J!==18)break;K.targetMessageKey=k.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 J8.fromPartial($??{})},fromPartial($){let Q=GU();return Q.message=$.message!==void 0&&$.message!==null?j.fromPartial($.message):void 0,Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?k.fromPartial($.targetMessageKey):void 0,Q}};function UU(){return{}}var K8={encode($,Q=new H){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??UU();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 K8.fromPartial($??{})},fromPartial($){let Q=UU();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q.conditionalRevealMessageType=$.conditionalRevealMessageType??void 0,Q.revealKeyId=$.revealKeyId??void 0,Q}};function CU(){return{}}var U$={encode($,Q=new H){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.vcard!==void 0)Q.uint32(130).string($.vcard);if($.contextInfo!==void 0)E.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??CU();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=E.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 U$.fromPartial($??{})},fromPartial($){let Q=CU();return Q.displayName=$.displayName??void 0,Q.vcard=$.vcard??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.isSelfContact=$.isSelfContact??void 0,Q}};function PU(){return{}}var q8={encode($,Q=new H){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let q of $.contacts)U$.encode(q,Q.uint32(18).fork()).join();if($.contextInfo!==void 0)E.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??PU();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=U$.decode(Z,Z.uint32());if(V!==void 0)K.contacts.push(V);continue}case 17:{if(J!==138)break;K.contextInfo=E.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 q8.fromPartial($??{})},fromPartial($){let Q=PU();return Q.displayName=$.displayName??void 0,Q.contacts=$.contacts?.map((q)=>U$.fromPartial(q))||void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q}};function DU(){return{}}var X8={encode($,Q=new H){if($.key!==void 0)k.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??DU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 X8.fromPartial($??{})},fromPartial($){let Q=DU();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q}};function FU(){return{}}var Y8={encode($,Q=new H){if($.destinationJid!==void 0)Q.uint32(10).string($.destinationJid);if($.message!==void 0)j.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??FU();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=j.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 Y8.fromPartial($??{})},fromPartial($){let Q=FU();return Q.destinationJid=$.destinationJid??void 0,Q.message=$.message!==void 0&&$.message!==null?j.fromPartial($.message):void 0,Q.phash=$.phash??void 0,Q}};function LU(){return{}}var Z0={encode($,Q=new H){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)E.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??LU();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=E.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 Z0.fromPartial($??{})},fromPartial($){let Q=LU();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?E.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 xU(){return{}}var V8={encode($,Q=new H){if($.targetMessageKey!==void 0)k.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??xU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.targetMessageKey=k.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 V8.fromPartial($??{})},fromPartial($){let Q=xU();return Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?k.fromPartial($.targetMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function kU(){return{}}var z8={encode($,Q=new H){if($.eventCreationMessageKey!==void 0)k.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??kU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eventCreationMessageKey=k.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 z8.fromPartial($??{})},fromPartial($){let Q=kU();return Q.eventCreationMessageKey=$.eventCreationMessageKey!==void 0&&$.eventCreationMessageKey!==null?k.fromPartial($.eventCreationMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function NU(){return{}}var H8={encode($,Q=new H){if($.targetMessageKey!==void 0)k.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??NU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.targetMessageKey=k.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 H8.fromPartial($??{})},fromPartial($){let Q=NU();return Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?k.fromPartial($.targetMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function BU(){return{}}var G8={encode($,Q=new H){if($.contextInfo!==void 0)E.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??BU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=E.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 G8.fromPartial($??{})},fromPartial($){let Q=BU();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.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 RU(){return{}}var U8={encode($,Q=new H){if($.contextInfo!==void 0)E.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)s.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??RU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=E.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=s.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 U8.fromPartial($??{})},fromPartial($){let Q=RU();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.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?s.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 OU(){return{}}var I0={encode($,Q=new H){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??OU();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 I0.fromPartial($??{})},fromPartial($){let Q=OU();return Q.response=$.response??void 0,Q.timestampMs=$.timestampMs??void 0,Q.extraGuestCount=$.extraGuestCount??void 0,Q}};function AU(){return{}}var C8={encode($,Q=new H){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)E.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)g8.encode($.faviconMmsMetadata,Q.uint32(266).fork()).join();if($.linkPreviewMetadata!==void 0)u8.encode($.linkPreviewMetadata,Q.uint32(274).fork()).join();if($.paymentLinkMetadata!==void 0)L$.encode($.paymentLinkMetadata,Q.uint32(282).fork()).join();if($.endCardTiles!==void 0&&$.endCardTiles.length!==0)for(let q of $.endCardTiles)PX.encode(q,Q.uint32(290).fork()).join();if($.videoContentUrl!==void 0)Q.uint32(298).string($.videoContentUrl);if($.musicMetadata!==void 0)X0.encode($.musicMetadata,Q.uint32(306).fork()).join();if($.paymentExtendedMetadata!==void 0)Qq.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??AU();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=E.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=g8.decode(Z,Z.uint32(),K.faviconMmsMetadata);continue}case 34:{if(J!==274)break;K.linkPreviewMetadata=u8.decode(Z,Z.uint32(),K.linkPreviewMetadata);continue}case 35:{if(J!==282)break;K.paymentLinkMetadata=L$.decode(Z,Z.uint32(),K.paymentLinkMetadata);continue}case 36:{if(J!==290)break;if(K.endCardTiles===void 0)K.endCardTiles=[];let V=PX.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=X0.decode(Z,Z.uint32(),K.musicMetadata);continue}case 39:{if(J!==314)break;K.paymentExtendedMetadata=Qq.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 C8.fromPartial($??{})},fromPartial($){let Q=AU();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?E.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?g8.fromPartial($.faviconMmsMetadata):void 0,Q.linkPreviewMetadata=$.linkPreviewMetadata!==void 0&&$.linkPreviewMetadata!==null?u8.fromPartial($.linkPreviewMetadata):void 0,Q.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?L$.fromPartial($.paymentLinkMetadata):void 0,Q.endCardTiles=$.endCardTiles?.map((q)=>PX.fromPartial(q))||void 0,Q.videoContentUrl=$.videoContentUrl??void 0,Q.musicMetadata=$.musicMetadata!==void 0&&$.musicMetadata!==null?X0.fromPartial($.musicMetadata):void 0,Q.paymentExtendedMetadata=$.paymentExtendedMetadata!==void 0&&$.paymentExtendedMetadata!==null?Qq.fromPartial($.paymentExtendedMetadata):void 0,Q}};function EU(){return{}}var P8={encode($,Q=new H){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??EU();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 P8.fromPartial($??{})},fromPartial($){let Q=EU();return Q.historyFromTimestamp=$.historyFromTimestamp??void 0,Q.historyDurationDays=$.historyDurationDays??void 0,Q}};function MU(){return{}}var R0={encode($,Q=new H){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??MU();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 R0.fromPartial($??{})},fromPartial($){let Q=MU();return Q.requestId=$.requestId??void 0,Q.businessProduct=$.businessProduct??void 0,Q.opaqueClientData=$.opaqueClientData??void 0,Q}};function WU(){return{}}var T={encode($,Q=new H){if($.message!==void 0)j.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??WU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.message=j.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 T.fromPartial($??{})},fromPartial($){let Q=WU();return Q.message=$.message!==void 0&&$.message!==null?j.fromPartial($.message):void 0,Q}};function SU(){return{}}var D8={encode($,Q=new H){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)E.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??SU();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=E.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 D8.fromPartial($??{})},fromPartial($){let Q=SU();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?E.fromPartial($.contextInfo):void 0,Q.groupType=$.groupType??void 0,Q}};function IU(){return{}}var n={encode($,Q=new H){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)F8.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)N$.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??IU();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=F8.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=N$.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 n.fromPartial($??{})},fromPartial($){let Q=IU();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)=>F8.fromPartial(q))||void 0,Q.deterministicLg=$.deterministicLg??void 0,Q.deterministicLc=$.deterministicLc??void 0,Q.hydratedHsm=$.hydratedHsm!==void 0&&$.hydratedHsm!==null?N$.fromPartial($.hydratedHsm):void 0,Q}};function TU(){return{}}var F8={encode($,Q=new H){if($.default!==void 0)Q.uint32(10).string($.default);if($.currency!==void 0)L8.encode($.currency,Q.uint32(18).fork()).join();if($.dateTime!==void 0)x8.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??TU();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=L8.decode(Z,Z.uint32(),K.currency);continue}case 3:{if(J!==26)break;K.dateTime=x8.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 F8.fromPartial($??{})},fromPartial($){let Q=TU();return Q.default=$.default??void 0,Q.currency=$.currency!==void 0&&$.currency!==null?L8.fromPartial($.currency):void 0,Q.dateTime=$.dateTime!==void 0&&$.dateTime!==null?x8.fromPartial($.dateTime):void 0,Q}};function yU(){return{}}var L8={encode($,Q=new H){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??yU();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 L8.fromPartial($??{})},fromPartial($){let Q=yU();return Q.currencyCode=$.currencyCode??void 0,Q.amount1000=$.amount1000??void 0,Q}};function vU(){return{}}var x8={encode($,Q=new H){if($.component!==void 0)k8.encode($.component,Q.uint32(10).fork()).join();if($.unixEpoch!==void 0)N8.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??vU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.component=k8.decode(Z,Z.uint32(),K.component);continue}case 2:{if(J!==18)break;K.unixEpoch=N8.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 x8.fromPartial($??{})},fromPartial($){let Q=vU();return Q.component=$.component!==void 0&&$.component!==null?k8.fromPartial($.component):void 0,Q.unixEpoch=$.unixEpoch!==void 0&&$.unixEpoch!==null?N8.fromPartial($.unixEpoch):void 0,Q}};function fU(){return{}}var k8={encode($,Q=new H){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??fU();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 k8.fromPartial($??{})},fromPartial($){let Q=fU();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 _U(){return{}}var N8={encode($,Q=new H){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??_U();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 N8.fromPartial($??{})},fromPartial($){let Q=_U();return Q.timestamp=$.timestamp??void 0,Q}};function hU(){return{}}var B8={encode($,Q=new H){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??hU();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 B8.fromPartial($??{})},fromPartial($){let Q=hU();return Q.stanzaId=$.stanzaId??void 0,Q.messageSecretProof=$.messageSecretProof??void 0,Q}};function lU(){return{}}var R8={encode($,Q=new H){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??lU();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 R8.fromPartial($??{})},fromPartial($){let Q=lU();return Q.completeAccessGranted=$.completeAccessGranted??void 0,Q}};function pU(){return{}}var O8={encode($,Q=new H){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)R0.encode($.fullHistorySyncOnDemandRequestMetadata,Q.uint32(106).fork()).join();if($.encHandle!==void 0)Q.uint32(114).string($.encHandle);if($.messageAccessStatus!==void 0)R8.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??pU();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=R0.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=R8.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 O8.fromPartial($??{})},fromPartial($){let Q=pU();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?R0.fromPartial($.fullHistorySyncOnDemandRequestMetadata):void 0,Q.encHandle=$.encHandle??void 0,Q.messageAccessStatus=$.messageAccessStatus!==void 0&&$.messageAccessStatus!==null?R8.fromPartial($.messageAccessStatus):void 0,Q}};function uU(){return{}}var m={encode($,Q=new H){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)q0.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)E.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)q0.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??uU();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=q0.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=E.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=q0.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 m.fromPartial($??{})},fromPartial($){let Q=uU();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)=>q0.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?E.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)=>q0.fromPartial(q))||void 0,Q.imageSourceType=$.imageSourceType??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.qrUrl=$.qrUrl??void 0,Q}};function wU(){return{}}var A8={encode($,Q=new H){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??wU();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 A8.fromPartial($??{})},fromPartial($){let Q=wU();return Q.securityNotificationEnabled=$.securityNotificationEnabled??void 0,Q}};function jU(){return{}}var O0={encode($,Q=new H){if($.header!==void 0)I8.encode($.header,Q.uint32(10).fork()).join();if($.body!==void 0)E8.encode($.body,Q.uint32(18).fork()).join();if($.footer!==void 0)S8.encode($.footer,Q.uint32(26).fork()).join();if($.bloksWidget!==void 0)C$.encode($.bloksWidget,Q.uint32(66).fork()).join();if($.contextInfo!==void 0)E.encode($.contextInfo,Q.uint32(122).fork()).join();if($.urlTrackingMap!==void 0)S$.encode($.urlTrackingMap,Q.uint32(130).fork()).join();if($.shopStorefrontMessage!==void 0)v8.encode($.shopStorefrontMessage,Q.uint32(34).fork()).join();if($.collectionMessage!==void 0)W8.encode($.collectionMessage,Q.uint32(42).fork()).join();if($.nativeFlowMessage!==void 0)T8.encode($.nativeFlowMessage,Q.uint32(50).fork()).join();if($.carouselMessage!==void 0)M8.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??jU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.header=I8.decode(Z,Z.uint32(),K.header);continue}case 2:{if(J!==18)break;K.body=E8.decode(Z,Z.uint32(),K.body);continue}case 3:{if(J!==26)break;K.footer=S8.decode(Z,Z.uint32(),K.footer);continue}case 8:{if(J!==66)break;K.bloksWidget=C$.decode(Z,Z.uint32(),K.bloksWidget);continue}case 15:{if(J!==122)break;K.contextInfo=E.decode(Z,Z.uint32(),K.contextInfo);continue}case 16:{if(J!==130)break;K.urlTrackingMap=S$.decode(Z,Z.uint32(),K.urlTrackingMap);continue}case 4:{if(J!==34)break;K.shopStorefrontMessage=v8.decode(Z,Z.uint32(),K.shopStorefrontMessage);continue}case 5:{if(J!==42)break;K.collectionMessage=W8.decode(Z,Z.uint32(),K.collectionMessage);continue}case 6:{if(J!==50)break;K.nativeFlowMessage=T8.decode(Z,Z.uint32(),K.nativeFlowMessage);continue}case 7:{if(J!==58)break;K.carouselMessage=M8.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 O0.fromPartial($??{})},fromPartial($){let Q=jU();return Q.header=$.header!==void 0&&$.header!==null?I8.fromPartial($.header):void 0,Q.body=$.body!==void 0&&$.body!==null?E8.fromPartial($.body):void 0,Q.footer=$.footer!==void 0&&$.footer!==null?S8.fromPartial($.footer):void 0,Q.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?C$.fromPartial($.bloksWidget):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?S$.fromPartial($.urlTrackingMap):void 0,Q.shopStorefrontMessage=$.shopStorefrontMessage!==void 0&&$.shopStorefrontMessage!==null?v8.fromPartial($.shopStorefrontMessage):void 0,Q.collectionMessage=$.collectionMessage!==void 0&&$.collectionMessage!==null?W8.fromPartial($.collectionMessage):void 0,Q.nativeFlowMessage=$.nativeFlowMessage!==void 0&&$.nativeFlowMessage!==null?T8.fromPartial($.nativeFlowMessage):void 0,Q.carouselMessage=$.carouselMessage!==void 0&&$.carouselMessage!==null?M8.fromPartial($.carouselMessage):void 0,Q}};function dU(){return{}}var C$={encode($,Q=new H){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??dU();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 C$.fromPartial($??{})},fromPartial($){let Q=dU();return Q.uuid=$.uuid??void 0,Q.data=$.data??void 0,Q.type=$.type??void 0,Q.fallback=$.fallback??void 0,Q}};function cU(){return{}}var E8={encode($,Q=new H){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??cU();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 E8.fromPartial($??{})},fromPartial($){let Q=cU();return Q.text=$.text??void 0,Q}};function nU(){return{}}var M8={encode($,Q=new H){if($.cards!==void 0&&$.cards.length!==0)for(let q of $.cards)O0.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??nU();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=O0.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 M8.fromPartial($??{})},fromPartial($){let Q=nU();return Q.cards=$.cards?.map((q)=>O0.fromPartial(q))||void 0,Q.messageVersion=$.messageVersion??void 0,Q.carouselCardType=$.carouselCardType??void 0,Q}};function bU(){return{}}var W8={encode($,Q=new H){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??bU();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 W8.fromPartial($??{})},fromPartial($){let Q=bU();return Q.bizJid=$.bizJid??void 0,Q.id=$.id??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function oU(){return{}}var S8={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);if($.hasMediaAttachment!==void 0)Q.uint32(24).bool($.hasMediaAttachment);if($.audioMessage!==void 0)G$.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??oU();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=G$.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 S8.fromPartial($??{})},fromPartial($){let Q=oU();return Q.text=$.text??void 0,Q.hasMediaAttachment=$.hasMediaAttachment??void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?G$.fromPartial($.audioMessage):void 0,Q}};function iU(){return{}}var I8={encode($,Q=new H){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)C$.encode($.bloksWidget,Q.uint32(82).fork()).join();if($.documentMessage!==void 0)Z0.encode($.documentMessage,Q.uint32(26).fork()).join();if($.imageMessage!==void 0)m.encode($.imageMessage,Q.uint32(34).fork()).join();if($.jpegThumbnail!==void 0)Q.uint32(50).bytes($.jpegThumbnail);if($.videoMessage!==void 0)t.encode($.videoMessage,Q.uint32(58).fork()).join();if($.locationMessage!==void 0)s.encode($.locationMessage,Q.uint32(66).fork()).join();if($.productMessage!==void 0)x$.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??iU();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=C$.decode(Z,Z.uint32(),K.bloksWidget);continue}case 3:{if(J!==26)break;K.documentMessage=Z0.decode(Z,Z.uint32(),K.documentMessage);continue}case 4:{if(J!==34)break;K.imageMessage=m.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=t.decode(Z,Z.uint32(),K.videoMessage);continue}case 8:{if(J!==66)break;K.locationMessage=s.decode(Z,Z.uint32(),K.locationMessage);continue}case 9:{if(J!==74)break;K.productMessage=x$.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 I8.fromPartial($??{})},fromPartial($){let Q=iU();return Q.title=$.title??void 0,Q.subtitle=$.subtitle??void 0,Q.hasMediaAttachment=$.hasMediaAttachment??void 0,Q.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?C$.fromPartial($.bloksWidget):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?Z0.fromPartial($.documentMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?m.fromPartial($.imageMessage):void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?s.fromPartial($.locationMessage):void 0,Q.productMessage=$.productMessage!==void 0&&$.productMessage!==null?x$.fromPartial($.productMessage):void 0,Q}};function mU(){return{}}var T8={encode($,Q=new H){if($.buttons!==void 0&&$.buttons.length!==0)for(let q of $.buttons)y8.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??mU();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=y8.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 T8.fromPartial($??{})},fromPartial($){let Q=mU();return Q.buttons=$.buttons?.map((q)=>y8.fromPartial(q))||void 0,Q.messageParamsJson=$.messageParamsJson??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function gU(){return{}}var y8={encode($,Q=new H){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??gU();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 y8.fromPartial($??{})},fromPartial($){let Q=gU();return Q.name=$.name??void 0,Q.buttonParamsJson=$.buttonParamsJson??void 0,Q}};function rU(){return{}}var v8={encode($,Q=new H){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??rU();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 v8.fromPartial($??{})},fromPartial($){let Q=rU();return Q.id=$.id??void 0,Q.surface=$.surface??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function tU(){return{}}var f8={encode($,Q=new H){if($.body!==void 0)_8.encode($.body,Q.uint32(10).fork()).join();if($.contextInfo!==void 0)E.encode($.contextInfo,Q.uint32(122).fork()).join();if($.nativeFlowResponseMessage!==void 0)h8.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??tU();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.body=_8.decode(Z,Z.uint32(),K.body);continue}case 15:{if(J!==122)break;K.contextInfo=E.decode(Z,Z.uint32(),K.contextInfo);continue}case 2:{if(J!==18)break;K.nativeFlowResponseMessage=h8.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 f8.fromPartial($??{})},fromPartial($){let Q=tU();return Q.body=$.body!==void 0&&$.body!==null?_8.fromPartial($.body):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.nativeFlowResponseMessage=$.nativeFlowResponseMessage!==void 0&&$.nativeFlowResponseMessage!==null?h8.fromPartial($.nativeFlowResponseMessage):void 0,Q}};function aU(){return{}}var _8={encode($,Q=new H){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??aU();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 _8.fromPartial($??{})},fromPartial($){let Q=aU();return Q.text=$.text??void 0,Q.format=$.format??void 0,Q}};function sU(){return{}}var h8={encode($,Q=new H){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??sU();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 h8.fromPartial($??{})},fromPartial($){let Q=sU();return Q.name=$.name??void 0,Q.paramsJson=$.paramsJson??void 0,Q.version=$.version??void 0,Q}};function eU(){return{}}var l8={encode($,Q=new H){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??eU();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 l8.fromPartial($??{})},fromPartial($){let Q=eU();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 $C(){return{}}var p8={encode($,Q=new H){if($.key!==void 0)k.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??$C();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 p8.fromPartial($??{})},fromPartial($){let Q=$C();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.keepType=$.keepType??void 0,Q.timestampMs=$.timestampMs??void 0,Q}};function QC(){return{}}var u8={encode($,Q=new H){if($.paymentLinkMetadata!==void 0)L$.encode($.paymentLinkMetadata,Q.uint32(10).fork()).join();if($.urlMetadata!==void 0)CX.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)X0.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??QC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.paymentLinkMetadata=L$.decode(Z,Z.uint32(),K.paymentLinkMetadata);continue}case 2:{if(J!==18)break;K.urlMetadata=CX.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=X0.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 u8.fromPartial($??{})},fromPartial($){let Q=QC();return Q.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?L$.fromPartial($.paymentLinkMetadata):void 0,Q.urlMetadata=$.urlMetadata!==void 0&&$.urlMetadata!==null?CX.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?X0.fromPartial($.musicMetadata):void 0,Q.videoContentCaption=$.videoContentCaption??void 0,Q}};function ZC(){return{}}var w8={encode($,Q=new H){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)o8.encode(q,Q.uint32(42).fork()).join();if($.productListInfo!==void 0)c8.encode($.productListInfo,Q.uint32(50).fork()).join();if($.footerText!==void 0)Q.uint32(58).string($.footerText);if($.contextInfo!==void 0)E.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??ZC();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=o8.decode(Z,Z.uint32());if(V!==void 0)K.sections.push(V);continue}case 6:{if(J!==50)break;K.productListInfo=c8.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=E.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 w8.fromPartial($??{})},fromPartial($){let Q=ZC();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)=>o8.fromPartial(q))||void 0,Q.productListInfo=$.productListInfo!==void 0&&$.productListInfo!==null?c8.fromPartial($.productListInfo):void 0,Q.footerText=$.footerText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q}};function JC(){return{}}var j8={encode($,Q=new H){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??JC();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 j8.fromPartial($??{})},fromPartial($){let Q=JC();return Q.productId=$.productId??void 0,Q}};function KC(){return{}}var d8={encode($,Q=new H){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??KC();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 d8.fromPartial($??{})},fromPartial($){let Q=KC();return Q.productId=$.productId??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q}};function qC(){return{}}var c8={encode($,Q=new H){if($.productSections!==void 0&&$.productSections.length!==0)for(let q of $.productSections)n8.encode(q,Q.uint32(10).fork()).join();if($.headerImage!==void 0)d8.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??qC();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=n8.decode(Z,Z.uint32());if(V!==void 0)K.productSections.push(V);continue}case 2:{if(J!==18)break;K.headerImage=d8.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 c8.fromPartial($??{})},fromPartial($){let Q=qC();return Q.productSections=$.productSections?.map((q)=>n8.fromPartial(q))||void 0,Q.headerImage=$.headerImage!==void 0&&$.headerImage!==null?d8.fromPartial($.headerImage):void 0,Q.businessOwnerJid=$.businessOwnerJid??void 0,Q}};function XC(){return{}}var n8={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.products!==void 0&&$.products.length!==0)for(let q of $.products)j8.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??XC();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=j8.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 n8.fromPartial($??{})},fromPartial($){let Q=XC();return Q.title=$.title??void 0,Q.products=$.products?.map((q)=>j8.fromPartial(q))||void 0,Q}};function YC(){return{}}var b8={encode($,Q=new H){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??YC();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 b8.fromPartial($??{})},fromPartial($){let Q=YC();return Q.title=$.title??void 0,Q.description=$.description??void 0,Q.rowId=$.rowId??void 0,Q}};function VC(){return{}}var o8={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.rows!==void 0&&$.rows.length!==0)for(let q of $.rows)b8.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??VC();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=b8.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 o8.fromPartial($??{})},fromPartial($){let Q=VC();return Q.title=$.title??void 0,Q.rows=$.rows?.map((q)=>b8.fromPartial(q))||void 0,Q}};function zC(){return{}}var i8={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.listType!==void 0)Q.uint32(16).int32($.listType);if($.singleSelectReply!==void 0)m8.encode($.singleSelectReply,Q.uint32(26).fork()).join();if($.contextInfo!==void 0)E.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??zC();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=m8.decode(Z,Z.uint32(),K.singleSelectReply);continue}case 4:{if(J!==34)break;K.contextInfo=E.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 i8.fromPartial($??{})},fromPartial($){let Q=zC();return Q.title=$.title??void 0,Q.listType=$.listType??void 0,Q.singleSelectReply=$.singleSelectReply!==void 0&&$.singleSelectReply!==null?m8.fromPartial($.singleSelectReply):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.description=$.description??void 0,Q}};function HC(){return{}}var m8={encode($,Q=new H){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??HC();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 m8.fromPartial($??{})},fromPartial($){let Q=HC();return Q.selectedRowId=$.selectedRowId??void 0,Q}};function GC(){return{}}var P$={encode($,Q=new H){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)E.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??GC();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=E.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 P$.fromPartial($??{})},fromPartial($){let Q=GC();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?E.fromPartial($.contextInfo):void 0,Q}};function UC(){return{}}var s={encode($,Q=new H){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)E.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??UC();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=E.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 s.fromPartial($??{})},fromPartial($){let Q=UC();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?E.fromPartial($.contextInfo):void 0,Q}};function CC(){return{}}var g8={encode($,Q=new H){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??CC();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 g8.fromPartial($??{})},fromPartial($){let Q=CC();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 PC(){return{}}var r8={encode($,Q=new H){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??PC();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 r8.fromPartial($??{})},fromPartial($){let Q=PC();return Q.userJidString=$.userJidString??void 0,Q.verified=$.verified??void 0,Q.verifiedIdentityKey=$.verifiedIdentityKey??void 0,Q.actionSeq=$.actionSeq??void 0,Q}};function DC(){return{}}var D$={encode($,Q=new H){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)E.encode($.contextInfo,Q.uint32(58).fork()).join();if($.messageHistoryMetadata!==void 0)F$.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??DC();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=E.decode(Z,Z.uint32(),K.contextInfo);continue}case 8:{if(J!==66)break;K.messageHistoryMetadata=F$.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 D$.fromPartial($??{})},fromPartial($){let Q=DC();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?E.fromPartial($.contextInfo):void 0,Q.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?F$.fromPartial($.messageHistoryMetadata):void 0,Q}};function FC(){return{}}var F$={encode($,Q=new H){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??FC();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 F$.fromPartial($??{})},fromPartial($){let Q=FC();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 LC(){return{}}var t8={encode($,Q=new H){if($.contextInfo!==void 0)E.encode($.contextInfo,Q.uint32(10).fork()).join();if($.messageHistoryMetadata!==void 0)F$.encode($.messageHistoryMetadata,Q.uint32(18).fork()).join();if($.botHistoryShareSyncMetadata!==void 0)wK.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??LC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=E.decode(Z,Z.uint32(),K.contextInfo);continue}case 2:{if(J!==18)break;K.messageHistoryMetadata=F$.decode(Z,Z.uint32(),K.messageHistoryMetadata);continue}case 3:{if(J!==26)break;K.botHistoryShareSyncMetadata=wK.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 t8.fromPartial($??{})},fromPartial($){let Q=LC();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?F$.fromPartial($.messageHistoryMetadata):void 0,Q.botHistoryShareSyncMetadata=$.botHistoryShareSyncMetadata!==void 0&&$.botHistoryShareSyncMetadata!==null?wK.fromPartial($.botHistoryShareSyncMetadata):void 0,Q}};function xC(){return{}}var a8={encode($,Q=new H){if($.embeddedMusic!==void 0)X0.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)E.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??xC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.embeddedMusic=X0.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=E.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 a8.fromPartial($??{})},fromPartial($){let Q=xC();return Q.embeddedMusic=$.embeddedMusic!==void 0&&$.embeddedMusic!==null?X0.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?E.fromPartial($.contextInfo):void 0,Q}};function kC(){return{}}var s8={encode($,Q=new H){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)E.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??kC();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=E.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=kC();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?E.fromPartial($.contextInfo):void 0,Q}};function NC(){return{}}var e8={encode($,Q=new H){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)E.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??NC();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=E.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 e8.fromPartial($??{})},fromPartial($){let Q=NC();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?E.fromPartial($.contextInfo):void 0,Q}};function BC(){return{}}var $q={encode($,Q=new H){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)E.encode($.contextInfo,Q.uint32(138).fork()).join();if($.messageVersion!==void 0)Q.uint32(96).int32($.messageVersion);if($.orderRequestMessageId!==void 0)k.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??BC();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=E.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=k.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 $q.fromPartial($??{})},fromPartial($){let Q=BC();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?E.fromPartial($.contextInfo):void 0,Q.messageVersion=$.messageVersion??void 0,Q.orderRequestMessageId=$.orderRequestMessageId!==void 0&&$.orderRequestMessageId!==null?k.fromPartial($.orderRequestMessageId):void 0,Q.catalogType=$.catalogType??void 0,Q}};function RC(){return{}}var Qq={encode($,Q=new H){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??RC();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 Qq.fromPartial($??{})},fromPartial($){let Q=RC();return Q.type=$.type??void 0,Q.platform=$.platform??void 0,Q.messageParamsJson=$.messageParamsJson??void 0,Q}};function OC(){return{}}var Zq={encode($,Q=new H){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??OC();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 Zq.fromPartial($??{})},fromPartial($){let Q=OC();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 AC(){return{}}var L$={encode($,Q=new H){if($.button!==void 0)Jq.encode($.button,Q.uint32(10).fork()).join();if($.header!==void 0)Kq.encode($.header,Q.uint32(18).fork()).join();if($.provider!==void 0)qq.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??AC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.button=Jq.decode(Z,Z.uint32(),K.button);continue}case 2:{if(J!==18)break;K.header=Kq.decode(Z,Z.uint32(),K.header);continue}case 3:{if(J!==26)break;K.provider=qq.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 L$.fromPartial($??{})},fromPartial($){let Q=AC();return Q.button=$.button!==void 0&&$.button!==null?Jq.fromPartial($.button):void 0,Q.header=$.header!==void 0&&$.header!==null?Kq.fromPartial($.header):void 0,Q.provider=$.provider!==void 0&&$.provider!==null?qq.fromPartial($.provider):void 0,Q}};function EC(){return{}}var Jq={encode($,Q=new H){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??EC();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 Jq.fromPartial($??{})},fromPartial($){let Q=EC();return Q.displayText=$.displayText??void 0,Q}};function MC(){return{}}var Kq={encode($,Q=new H){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??MC();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 Kq.fromPartial($??{})},fromPartial($){let Q=MC();return Q.headerType=$.headerType??void 0,Q}};function WC(){return{}}var qq={encode($,Q=new H){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??WC();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 qq.fromPartial($??{})},fromPartial($){let Q=WC();return Q.paramsJson=$.paramsJson??void 0,Q}};function SC(){return{}}var Xq={encode($,Q=new H){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)a.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??SC();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=a.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 Xq.fromPartial($??{})},fromPartial($){let Q=SC();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?a.fromPartial($.amount):void 0,Q}};function IC(){return{}}var Yq={encode($,Q=new H){if($.peerDataOperationRequestType!==void 0)Q.uint32(8).int32($.peerDataOperationRequestType);if($.requestStickerReupload!==void 0&&$.requestStickerReupload.length!==0)for(let q of $.requestStickerReupload)Fq.encode(q,Q.uint32(18).fork()).join();if($.requestUrlPreview!==void 0&&$.requestUrlPreview.length!==0)for(let q of $.requestUrlPreview)Lq.encode(q,Q.uint32(26).fork()).join();if($.historySyncOnDemandRequest!==void 0)Pq.encode($.historySyncOnDemandRequest,Q.uint32(34).fork()).join();if($.placeholderMessageResendRequest!==void 0&&$.placeholderMessageResendRequest.length!==0)for(let q of $.placeholderMessageResendRequest)Dq.encode(q,Q.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequest!==void 0)Gq.encode($.fullHistorySyncOnDemandRequest,Q.uint32(50).fork()).join();if($.syncdCollectionFatalRecoveryRequest!==void 0)xq.encode($.syncdCollectionFatalRecoveryRequest,Q.uint32(58).fork()).join();if($.historySyncChunkRetryRequest!==void 0)Cq.encode($.historySyncChunkRetryRequest,Q.uint32(66).fork()).join();if($.galaxyFlowAction!==void 0)Uq.encode($.galaxyFlowAction,Q.uint32(74).fork()).join();if($.companionCanonicalUserNonceFetchRequest!==void 0)Hq.encode($.companionCanonicalUserNonceFetchRequest,Q.uint32(82).fork()).join();if($.bizBroadcastInsightsContactListRequest!==void 0)Vq.encode($.bizBroadcastInsightsContactListRequest,Q.uint32(90).fork()).join();if($.bizBroadcastInsightsRefreshRequest!==void 0)zq.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??IC();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=Fq.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=Lq.decode(Z,Z.uint32());if(V!==void 0)K.requestUrlPreview.push(V);continue}case 4:{if(J!==34)break;K.historySyncOnDemandRequest=Pq.decode(Z,Z.uint32(),K.historySyncOnDemandRequest);continue}case 5:{if(J!==42)break;if(K.placeholderMessageResendRequest===void 0)K.placeholderMessageResendRequest=[];let V=Dq.decode(Z,Z.uint32());if(V!==void 0)K.placeholderMessageResendRequest.push(V);continue}case 6:{if(J!==50)break;K.fullHistorySyncOnDemandRequest=Gq.decode(Z,Z.uint32(),K.fullHistorySyncOnDemandRequest);continue}case 7:{if(J!==58)break;K.syncdCollectionFatalRecoveryRequest=xq.decode(Z,Z.uint32(),K.syncdCollectionFatalRecoveryRequest);continue}case 8:{if(J!==66)break;K.historySyncChunkRetryRequest=Cq.decode(Z,Z.uint32(),K.historySyncChunkRetryRequest);continue}case 9:{if(J!==74)break;K.galaxyFlowAction=Uq.decode(Z,Z.uint32(),K.galaxyFlowAction);continue}case 10:{if(J!==82)break;K.companionCanonicalUserNonceFetchRequest=Hq.decode(Z,Z.uint32(),K.companionCanonicalUserNonceFetchRequest);continue}case 11:{if(J!==90)break;K.bizBroadcastInsightsContactListRequest=Vq.decode(Z,Z.uint32(),K.bizBroadcastInsightsContactListRequest);continue}case 12:{if(J!==98)break;K.bizBroadcastInsightsRefreshRequest=zq.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 Yq.fromPartial($??{})},fromPartial($){let Q=IC();return Q.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,Q.requestStickerReupload=$.requestStickerReupload?.map((q)=>Fq.fromPartial(q))||void 0,Q.requestUrlPreview=$.requestUrlPreview?.map((q)=>Lq.fromPartial(q))||void 0,Q.historySyncOnDemandRequest=$.historySyncOnDemandRequest!==void 0&&$.historySyncOnDemandRequest!==null?Pq.fromPartial($.historySyncOnDemandRequest):void 0,Q.placeholderMessageResendRequest=$.placeholderMessageResendRequest?.map((q)=>Dq.fromPartial(q))||void 0,Q.fullHistorySyncOnDemandRequest=$.fullHistorySyncOnDemandRequest!==void 0&&$.fullHistorySyncOnDemandRequest!==null?Gq.fromPartial($.fullHistorySyncOnDemandRequest):void 0,Q.syncdCollectionFatalRecoveryRequest=$.syncdCollectionFatalRecoveryRequest!==void 0&&$.syncdCollectionFatalRecoveryRequest!==null?xq.fromPartial($.syncdCollectionFatalRecoveryRequest):void 0,Q.historySyncChunkRetryRequest=$.historySyncChunkRetryRequest!==void 0&&$.historySyncChunkRetryRequest!==null?Cq.fromPartial($.historySyncChunkRetryRequest):void 0,Q.galaxyFlowAction=$.galaxyFlowAction!==void 0&&$.galaxyFlowAction!==null?Uq.fromPartial($.galaxyFlowAction):void 0,Q.companionCanonicalUserNonceFetchRequest=$.companionCanonicalUserNonceFetchRequest!==void 0&&$.companionCanonicalUserNonceFetchRequest!==null?Hq.fromPartial($.companionCanonicalUserNonceFetchRequest):void 0,Q.bizBroadcastInsightsContactListRequest=$.bizBroadcastInsightsContactListRequest!==void 0&&$.bizBroadcastInsightsContactListRequest!==null?Vq.fromPartial($.bizBroadcastInsightsContactListRequest):void 0,Q.bizBroadcastInsightsRefreshRequest=$.bizBroadcastInsightsRefreshRequest!==void 0&&$.bizBroadcastInsightsRefreshRequest!==null?zq.fromPartial($.bizBroadcastInsightsRefreshRequest):void 0,Q}};function TC(){return{}}var Vq={encode($,Q=new H){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??TC();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 Vq.fromPartial($??{})},fromPartial($){let Q=TC();return Q.campaignId=$.campaignId??void 0,Q}};function yC(){return{}}var zq={encode($,Q=new H){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??yC();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 zq.fromPartial($??{})},fromPartial($){let Q=yC();return Q.campaignId=$.campaignId??void 0,Q}};function vC(){return{}}var Hq={encode($,Q=new H){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??vC();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 Hq.fromPartial($??{})},fromPartial($){let Q=vC();return Q.registrationTraceId=$.registrationTraceId??void 0,Q}};function fC(){return{}}var Gq={encode($,Q=new H){if($.requestMetadata!==void 0)R0.encode($.requestMetadata,Q.uint32(10).fork()).join();if($.historySyncConfig!==void 0)z$.encode($.historySyncConfig,Q.uint32(18).fork()).join();if($.fullHistorySyncOnDemandConfig!==void 0)P8.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??fC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestMetadata=R0.decode(Z,Z.uint32(),K.requestMetadata);continue}case 2:{if(J!==18)break;K.historySyncConfig=z$.decode(Z,Z.uint32(),K.historySyncConfig);continue}case 3:{if(J!==26)break;K.fullHistorySyncOnDemandConfig=P8.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 Gq.fromPartial($??{})},fromPartial($){let Q=fC();return Q.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?R0.fromPartial($.requestMetadata):void 0,Q.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?z$.fromPartial($.historySyncConfig):void 0,Q.fullHistorySyncOnDemandConfig=$.fullHistorySyncOnDemandConfig!==void 0&&$.fullHistorySyncOnDemandConfig!==null?P8.fromPartial($.fullHistorySyncOnDemandConfig):void 0,Q}};function _C(){return{}}var Uq={encode($,Q=new H){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??_C();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 Uq.fromPartial($??{})},fromPartial($){let Q=_C();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 hC(){return{}}var Cq={encode($,Q=new H){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??hC();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 Cq.fromPartial($??{})},fromPartial($){let Q=hC();return Q.syncType=$.syncType??void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.chunkNotificationId=$.chunkNotificationId??void 0,Q.regenerateChunk=$.regenerateChunk??void 0,Q}};function lC(){return{}}var Pq={encode($,Q=new H){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??lC();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 Pq.fromPartial($??{})},fromPartial($){let Q=lC();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 pC(){return{}}var Dq={encode($,Q=new H){if($.messageKey!==void 0)k.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??pC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=k.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 Dq.fromPartial($??{})},fromPartial($){let Q=pC();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?k.fromPartial($.messageKey):void 0,Q}};function uC(){return{}}var Fq={encode($,Q=new H){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??uC();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 Fq.fromPartial($??{})},fromPartial($){let Q=uC();return Q.fileSha256=$.fileSha256??void 0,Q}};function wC(){return{}}var Lq={encode($,Q=new H){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??wC();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 Lq.fromPartial($??{})},fromPartial($){let Q=wC();return Q.url=$.url??void 0,Q.includeHqThumbnail=$.includeHqThumbnail??void 0,Q}};function jC(){return{}}var xq={encode($,Q=new H){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??jC();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 xq.fromPartial($??{})},fromPartial($){let Q=jC();return Q.collectionName=$.collectionName??void 0,Q.timestamp=$.timestamp??void 0,Q}};function dC(){return{}}var kq={encode($,Q=new H){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)Nq.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??dC();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=Nq.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 kq.fromPartial($??{})},fromPartial($){let Q=dC();return Q.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,Q.stanzaId=$.stanzaId??void 0,Q.peerDataOperationResult=$.peerDataOperationResult?.map((q)=>Nq.fromPartial(q))||void 0,Q}};function cC(){return{}}var Nq={encode($,Q=new H){if($.mediaUploadResult!==void 0)Q.uint32(8).int32($.mediaUploadResult);if($.stickerMessage!==void 0)k$.encode($.stickerMessage,Q.uint32(18).fork()).join();if($.linkPreviewResponse!==void 0)Iq.encode($.linkPreviewResponse,Q.uint32(26).fork()).join();if($.placeholderMessageResendResponse!==void 0)vq.encode($.placeholderMessageResendResponse,Q.uint32(34).fork()).join();if($.waffleNonceFetchRequestResponse!==void 0)_q.encode($.waffleNonceFetchRequestResponse,Q.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequestResponse!==void 0)Wq.encode($.fullHistorySyncOnDemandRequestResponse,Q.uint32(50).fork()).join();if($.companionMetaNonceFetchRequestResponse!==void 0)Aq.encode($.companionMetaNonceFetchRequestResponse,Q.uint32(58).fork()).join();if($.syncdSnapshotFatalRecoveryResponse!==void 0)fq.encode($.syncdSnapshotFatalRecoveryResponse,Q.uint32(66).fork()).join();if($.companionCanonicalUserNonceFetchRequestResponse!==void 0)Oq.encode($.companionCanonicalUserNonceFetchRequestResponse,Q.uint32(74).fork()).join();if($.historySyncChunkRetryResponse!==void 0)Sq.encode($.historySyncChunkRetryResponse,Q.uint32(82).fork()).join();if($.flowResponsesCsvBundle!==void 0)Mq.encode($.flowResponsesCsvBundle,Q.uint32(90).fork()).join();if($.bizBroadcastInsightsContactListResponse!==void 0)Bq.encode($.bizBroadcastInsightsContactListResponse,Q.uint32(98).fork()).join();if($.contactRefreshResponse!==void 0)Eq.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??cC();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=k$.decode(Z,Z.uint32(),K.stickerMessage);continue}case 3:{if(J!==26)break;K.linkPreviewResponse=Iq.decode(Z,Z.uint32(),K.linkPreviewResponse);continue}case 4:{if(J!==34)break;K.placeholderMessageResendResponse=vq.decode(Z,Z.uint32(),K.placeholderMessageResendResponse);continue}case 5:{if(J!==42)break;K.waffleNonceFetchRequestResponse=_q.decode(Z,Z.uint32(),K.waffleNonceFetchRequestResponse);continue}case 6:{if(J!==50)break;K.fullHistorySyncOnDemandRequestResponse=Wq.decode(Z,Z.uint32(),K.fullHistorySyncOnDemandRequestResponse);continue}case 7:{if(J!==58)break;K.companionMetaNonceFetchRequestResponse=Aq.decode(Z,Z.uint32(),K.companionMetaNonceFetchRequestResponse);continue}case 8:{if(J!==66)break;K.syncdSnapshotFatalRecoveryResponse=fq.decode(Z,Z.uint32(),K.syncdSnapshotFatalRecoveryResponse);continue}case 9:{if(J!==74)break;K.companionCanonicalUserNonceFetchRequestResponse=Oq.decode(Z,Z.uint32(),K.companionCanonicalUserNonceFetchRequestResponse);continue}case 10:{if(J!==82)break;K.historySyncChunkRetryResponse=Sq.decode(Z,Z.uint32(),K.historySyncChunkRetryResponse);continue}case 11:{if(J!==90)break;K.flowResponsesCsvBundle=Mq.decode(Z,Z.uint32(),K.flowResponsesCsvBundle);continue}case 12:{if(J!==98)break;K.bizBroadcastInsightsContactListResponse=Bq.decode(Z,Z.uint32(),K.bizBroadcastInsightsContactListResponse);continue}case 13:{if(J!==106)break;K.contactRefreshResponse=Eq.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 Nq.fromPartial($??{})},fromPartial($){let Q=cC();return Q.mediaUploadResult=$.mediaUploadResult??void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?k$.fromPartial($.stickerMessage):void 0,Q.linkPreviewResponse=$.linkPreviewResponse!==void 0&&$.linkPreviewResponse!==null?Iq.fromPartial($.linkPreviewResponse):void 0,Q.placeholderMessageResendResponse=$.placeholderMessageResendResponse!==void 0&&$.placeholderMessageResendResponse!==null?vq.fromPartial($.placeholderMessageResendResponse):void 0,Q.waffleNonceFetchRequestResponse=$.waffleNonceFetchRequestResponse!==void 0&&$.waffleNonceFetchRequestResponse!==null?_q.fromPartial($.waffleNonceFetchRequestResponse):void 0,Q.fullHistorySyncOnDemandRequestResponse=$.fullHistorySyncOnDemandRequestResponse!==void 0&&$.fullHistorySyncOnDemandRequestResponse!==null?Wq.fromPartial($.fullHistorySyncOnDemandRequestResponse):void 0,Q.companionMetaNonceFetchRequestResponse=$.companionMetaNonceFetchRequestResponse!==void 0&&$.companionMetaNonceFetchRequestResponse!==null?Aq.fromPartial($.companionMetaNonceFetchRequestResponse):void 0,Q.syncdSnapshotFatalRecoveryResponse=$.syncdSnapshotFatalRecoveryResponse!==void 0&&$.syncdSnapshotFatalRecoveryResponse!==null?fq.fromPartial($.syncdSnapshotFatalRecoveryResponse):void 0,Q.companionCanonicalUserNonceFetchRequestResponse=$.companionCanonicalUserNonceFetchRequestResponse!==void 0&&$.companionCanonicalUserNonceFetchRequestResponse!==null?Oq.fromPartial($.companionCanonicalUserNonceFetchRequestResponse):void 0,Q.historySyncChunkRetryResponse=$.historySyncChunkRetryResponse!==void 0&&$.historySyncChunkRetryResponse!==null?Sq.fromPartial($.historySyncChunkRetryResponse):void 0,Q.flowResponsesCsvBundle=$.flowResponsesCsvBundle!==void 0&&$.flowResponsesCsvBundle!==null?Mq.fromPartial($.flowResponsesCsvBundle):void 0,Q.bizBroadcastInsightsContactListResponse=$.bizBroadcastInsightsContactListResponse!==void 0&&$.bizBroadcastInsightsContactListResponse!==null?Bq.fromPartial($.bizBroadcastInsightsContactListResponse):void 0,Q.contactRefreshResponse=$.contactRefreshResponse!==void 0&&$.contactRefreshResponse!==null?Eq.fromPartial($.contactRefreshResponse):void 0,Q}};function nC(){return{}}var Bq={encode($,Q=new H){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)Rq.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??nC();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=Rq.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 Bq.fromPartial($??{})},fromPartial($){let Q=nC();return Q.campaignId=$.campaignId??void 0,Q.timestampMs=$.timestampMs??void 0,Q.contacts=$.contacts?.map((q)=>Rq.fromPartial(q))||void 0,Q}};function bC(){return{}}var Rq={encode($,Q=new H){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??bC();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 Rq.fromPartial($??{})},fromPartial($){let Q=bC();return Q.contactJid=$.contactJid??void 0,Q.state=$.state??void 0,Q}};function oC(){return{}}var Oq={encode($,Q=new H){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??oC();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 Oq.fromPartial($??{})},fromPartial($){let Q=oC();return Q.nonce=$.nonce??void 0,Q.waFbid=$.waFbid??void 0,Q.forceRefresh=$.forceRefresh??void 0,Q}};function iC(){return{}}var Aq={encode($,Q=new H){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??iC();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 Aq.fromPartial($??{})},fromPartial($){let Q=iC();return Q.nonce=$.nonce??void 0,Q}};function mC(){return{}}var Eq={encode($,Q=new H){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??mC();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 Eq.fromPartial($??{})},fromPartial($){let Q=mC();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 gC(){return{}}var Mq={encode($,Q=new H){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??gC();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 Mq.fromPartial($??{})},fromPartial($){let Q=gC();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 rC(){return{}}var Wq={encode($,Q=new H){if($.requestMetadata!==void 0)R0.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??rC();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestMetadata=R0.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 Wq.fromPartial($??{})},fromPartial($){let Q=rC();return Q.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?R0.fromPartial($.requestMetadata):void 0,Q.responseCode=$.responseCode??void 0,Q}};function tC(){return{}}var Sq={encode($,Q=new H){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??tC();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 Sq.fromPartial($??{})},fromPartial($){let Q=tC();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 aC(){return{}}var Iq={encode($,Q=new H){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)Tq.encode($.hqThumbnail,Q.uint32(66).fork()).join();if($.previewMetadata!==void 0)yq.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??aC();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=Tq.decode(Z,Z.uint32(),K.hqThumbnail);continue}case 9:{if(J!==74)break;K.previewMetadata=yq.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 Iq.fromPartial($??{})},fromPartial($){let Q=aC();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?Tq.fromPartial($.hqThumbnail):void 0,Q.previewMetadata=$.previewMetadata!==void 0&&$.previewMetadata!==null?yq.fromPartial($.previewMetadata):void 0,Q}};function sC(){return{}}var Tq={encode($,Q=new H){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??sC();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 Tq.fromPartial($??{})},fromPartial($){let Q=sC();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 eC(){return{}}var yq={encode($,Q=new H){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??eC();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 yq.fromPartial($??{})},fromPartial($){let Q=eC();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 $4(){return{}}var vq={encode($,Q=new H){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??$4();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 vq.fromPartial($??{})},fromPartial($){let Q=$4();return Q.webMessageInfoBytes=$.webMessageInfoBytes??void 0,Q}};function Q4(){return{}}var fq={encode($,Q=new H){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??Q4();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 fq.fromPartial($??{})},fromPartial($){let Q=Q4();return Q.collectionSnapshot=$.collectionSnapshot??void 0,Q.isCompressed=$.isCompressed??void 0,Q}};function Z4(){return{}}var _q={encode($,Q=new H){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??Z4();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 _q.fromPartial($??{})},fromPartial($){let Q=Z4();return Q.nonce=$.nonce??void 0,Q.waEntFbid=$.waEntFbid??void 0,Q}};function J4(){return{}}var hq={encode($,Q=new H){if($.key!==void 0)k.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??J4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 hq.fromPartial($??{})},fromPartial($){let Q=J4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.type=$.type??void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function K4(){return{}}var lq={encode($,Q=new H){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??K4();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 lq.fromPartial($??{})},fromPartial($){let Q=K4();return Q.type=$.type??void 0,Q}};function q4(){return{}}var pq={encode($,Q=new H){if($.pollCreationMessageKey!==void 0)k.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.addOption!==void 0)F0.encode($.addOption,Q.uint32(18).fork()).join();if($.metadata!==void 0)A0.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??q4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollCreationMessageKey=k.decode(Z,Z.uint32(),K.pollCreationMessageKey);continue}case 2:{if(J!==18)break;K.addOption=F0.decode(Z,Z.uint32(),K.addOption);continue}case 3:{if(J!==26)break;K.metadata=A0.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 pq.fromPartial($??{})},fromPartial($){let Q=q4();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?k.fromPartial($.pollCreationMessageKey):void 0,Q.addOption=$.addOption!==void 0&&$.addOption!==null?F0.fromPartial($.addOption):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?A0.fromPartial($.metadata):void 0,Q}};function X4(){return{}}var Q0={encode($,Q=new H){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)F0.encode(q,Q.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)Q.uint32(32).uint32($.selectableOptionsCount);if($.contextInfo!==void 0)E.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)F0.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??X4();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=F0.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=E.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=F0.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 Q0.fromPartial($??{})},fromPartial($){let Q=X4();return Q.encKey=$.encKey??void 0,Q.name=$.name??void 0,Q.options=$.options?.map((q)=>F0.fromPartial(q))||void 0,Q.selectableOptionsCount=$.selectableOptionsCount??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.pollContentType=$.pollContentType??void 0,Q.pollType=$.pollType??void 0,Q.correctAnswer=$.correctAnswer!==void 0&&$.correctAnswer!==null?F0.fromPartial($.correctAnswer):void 0,Q.endTime=$.endTime??void 0,Q.hideParticipantName=$.hideParticipantName??void 0,Q.allowAddOption=$.allowAddOption??void 0,Q}};function Y4(){return{}}var F0={encode($,Q=new H){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??Y4();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 F0.fromPartial($??{})},fromPartial($){let Q=Y4();return Q.optionName=$.optionName??void 0,Q.optionHash=$.optionHash??void 0,Q}};function V4(){return{}}var uq={encode($,Q=new H){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??V4();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 uq.fromPartial($??{})},fromPartial($){let Q=V4();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function z4(){return{}}var n0={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let q of $.pollVotes)wq.encode(q,Q.uint32(18).fork()).join();if($.contextInfo!==void 0)E.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??z4();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=wq.decode(Z,Z.uint32());if(V!==void 0)K.pollVotes.push(V);continue}case 3:{if(J!==26)break;K.contextInfo=E.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 n0.fromPartial($??{})},fromPartial($){let Q=z4();return Q.name=$.name??void 0,Q.pollVotes=$.pollVotes?.map((q)=>wq.fromPartial(q))||void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.pollType=$.pollType??void 0,Q}};function H4(){return{}}var wq={encode($,Q=new H){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??H4();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 wq.fromPartial($??{})},fromPartial($){let Q=H4();return Q.optionName=$.optionName??void 0,Q.optionVoteCount=$.optionVoteCount??void 0,Q}};function G4(){return{}}var jq={encode($,Q=new H){if($.pollCreationMessageKey!==void 0)k.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)uq.encode($.vote,Q.uint32(18).fork()).join();if($.metadata!==void 0)A0.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??G4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollCreationMessageKey=k.decode(Z,Z.uint32(),K.pollCreationMessageKey);continue}case 2:{if(J!==18)break;K.vote=uq.decode(Z,Z.uint32(),K.vote);continue}case 3:{if(J!==26)break;K.metadata=A0.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 jq.fromPartial($??{})},fromPartial($){let Q=G4();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?k.fromPartial($.pollCreationMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?uq.fromPartial($.vote):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?A0.fromPartial($.metadata):void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function U4(){return{}}var A0={encode($,Q=new H){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??U4();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 A0.fromPartial($??{})},fromPartial($){let Q=U4();return Q.pollNameHash=$.pollNameHash??void 0,Q.lastEditStanzaId=$.lastEditStanzaId??void 0,Q}};function C4(){return{}}var T0={encode($,Q=new H){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??C4();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 T0.fromPartial($??{})},fromPartial($){let Q=C4();return Q.selectedOptions=$.selectedOptions?.map((q)=>q)||void 0,Q}};function P4(){return{}}var x$={encode($,Q=new H){if($.product!==void 0)cq.encode($.product,Q.uint32(10).fork()).join();if($.businessOwnerJid!==void 0)Q.uint32(18).string($.businessOwnerJid);if($.catalog!==void 0)dq.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)E.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??P4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.product=cq.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=dq.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=E.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 x$.fromPartial($??{})},fromPartial($){let Q=P4();return Q.product=$.product!==void 0&&$.product!==null?cq.fromPartial($.product):void 0,Q.businessOwnerJid=$.businessOwnerJid??void 0,Q.catalog=$.catalog!==void 0&&$.catalog!==null?dq.fromPartial($.catalog):void 0,Q.body=$.body??void 0,Q.footer=$.footer??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q}};function D4(){return{}}var dq={encode($,Q=new H){if($.catalogImage!==void 0)m.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??D4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.catalogImage=m.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 dq.fromPartial($??{})},fromPartial($){let Q=D4();return Q.catalogImage=$.catalogImage!==void 0&&$.catalogImage!==null?m.fromPartial($.catalogImage):void 0,Q.title=$.title??void 0,Q.description=$.description??void 0,Q}};function F4(){return{}}var cq={encode($,Q=new H){if($.productImage!==void 0)m.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??F4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.productImage=m.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 cq.fromPartial($??{})},fromPartial($){let Q=F4();return Q.productImage=$.productImage!==void 0&&$.productImage!==null?m.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 L4(){return{}}var nq={encode($,Q=new H){if($.key!==void 0)k.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)O8.encode($.historySyncNotification,Q.uint32(50).fork()).join();if($.appStateSyncKeyShare!==void 0)pK.encode($.appStateSyncKeyShare,Q.uint32(58).fork()).join();if($.appStateSyncKeyRequest!==void 0)lK.encode($.appStateSyncKeyRequest,Q.uint32(66).fork()).join();if($.initialSecurityNotificationSettingSync!==void 0)A8.encode($.initialSecurityNotificationSettingSync,Q.uint32(74).fork()).join();if($.appStateFatalExceptionNotification!==void 0)vK.encode($.appStateFatalExceptionNotification,Q.uint32(82).fork()).join();if($.disappearingMode!==void 0)k0.encode($.disappearingMode,Q.uint32(90).fork()).join();if($.editedMessage!==void 0)j.encode($.editedMessage,Q.uint32(114).fork()).join();if($.timestampMs!==void 0)Q.uint32(120).int64($.timestampMs);if($.peerDataOperationRequestMessage!==void 0)Yq.encode($.peerDataOperationRequestMessage,Q.uint32(130).fork()).join();if($.peerDataOperationRequestResponseMessage!==void 0)kq.encode($.peerDataOperationRequestResponseMessage,Q.uint32(138).fork()).join();if($.botFeedbackMessage!==void 0)uQ.encode($.botFeedbackMessage,Q.uint32(146).fork()).join();if($.invokerJid!==void 0)Q.uint32(154).string($.invokerJid);if($.requestWelcomeMessageMetadata!==void 0)gq.encode($.requestWelcomeMessageMetadata,Q.uint32(162).fork()).join();if($.mediaNotifyMessage!==void 0)IK.encode($.mediaNotifyMessage,Q.uint32(170).fork()).join();if($.cloudApiThreadControlNotification!==void 0)Q8.encode($.cloudApiThreadControlNotification,Q.uint32(178).fork()).join();if($.lidMigrationMappingSyncMessage!==void 0)BK.encode($.lidMigrationMappingSyncMessage,Q.uint32(186).fork()).join();if($.limitSharing!==void 0)D0.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)B0.encode($.memberLabel,Q.uint32(218).fork()).join();if($.aiMediaCollectionMessage!==void 0)ZQ.encode($.aiMediaCollectionMessage,Q.uint32(226).fork()).join();if($.afterReadDuration!==void 0)Q.uint32(232).uint32($.afterReadDuration);if($.chatThemeSetting!==void 0)$8.encode($.chatThemeSetting,Q.uint32(242).fork()).join();if($.aiMetadataOperation!==void 0)KQ.encode($.aiMetadataOperation,Q.uint32(250).fork()).join();if($.markAsVerifiedAction!==void 0)r8.encode($.markAsVerifiedAction,Q.uint32(258).fork()).join();if($.coexStateSync!==void 0)iZ.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??L4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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=O8.decode(Z,Z.uint32(),K.historySyncNotification);continue}case 7:{if(J!==58)break;K.appStateSyncKeyShare=pK.decode(Z,Z.uint32(),K.appStateSyncKeyShare);continue}case 8:{if(J!==66)break;K.appStateSyncKeyRequest=lK.decode(Z,Z.uint32(),K.appStateSyncKeyRequest);continue}case 9:{if(J!==74)break;K.initialSecurityNotificationSettingSync=A8.decode(Z,Z.uint32(),K.initialSecurityNotificationSettingSync);continue}case 10:{if(J!==82)break;K.appStateFatalExceptionNotification=vK.decode(Z,Z.uint32(),K.appStateFatalExceptionNotification);continue}case 11:{if(J!==90)break;K.disappearingMode=k0.decode(Z,Z.uint32(),K.disappearingMode);continue}case 14:{if(J!==114)break;K.editedMessage=j.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=Yq.decode(Z,Z.uint32(),K.peerDataOperationRequestMessage);continue}case 17:{if(J!==138)break;K.peerDataOperationRequestResponseMessage=kq.decode(Z,Z.uint32(),K.peerDataOperationRequestResponseMessage);continue}case 18:{if(J!==146)break;K.botFeedbackMessage=uQ.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=gq.decode(Z,Z.uint32(),K.requestWelcomeMessageMetadata);continue}case 21:{if(J!==170)break;K.mediaNotifyMessage=IK.decode(Z,Z.uint32(),K.mediaNotifyMessage);continue}case 22:{if(J!==178)break;K.cloudApiThreadControlNotification=Q8.decode(Z,Z.uint32(),K.cloudApiThreadControlNotification);continue}case 23:{if(J!==186)break;K.lidMigrationMappingSyncMessage=BK.decode(Z,Z.uint32(),K.lidMigrationMappingSyncMessage);continue}case 24:{if(J!==194)break;K.limitSharing=D0.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=B0.decode(Z,Z.uint32(),K.memberLabel);continue}case 28:{if(J!==226)break;K.aiMediaCollectionMessage=ZQ.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=$8.decode(Z,Z.uint32(),K.chatThemeSetting);continue}case 31:{if(J!==250)break;K.aiMetadataOperation=KQ.decode(Z,Z.uint32(),K.aiMetadataOperation);continue}case 32:{if(J!==258)break;K.markAsVerifiedAction=r8.decode(Z,Z.uint32(),K.markAsVerifiedAction);continue}case 33:{if(J!==266)break;K.coexStateSync=iZ.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 nq.fromPartial($??{})},fromPartial($){let Q=L4();return Q.key=$.key!==void 0&&$.key!==null?k.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?O8.fromPartial($.historySyncNotification):void 0,Q.appStateSyncKeyShare=$.appStateSyncKeyShare!==void 0&&$.appStateSyncKeyShare!==null?pK.fromPartial($.appStateSyncKeyShare):void 0,Q.appStateSyncKeyRequest=$.appStateSyncKeyRequest!==void 0&&$.appStateSyncKeyRequest!==null?lK.fromPartial($.appStateSyncKeyRequest):void 0,Q.initialSecurityNotificationSettingSync=$.initialSecurityNotificationSettingSync!==void 0&&$.initialSecurityNotificationSettingSync!==null?A8.fromPartial($.initialSecurityNotificationSettingSync):void 0,Q.appStateFatalExceptionNotification=$.appStateFatalExceptionNotification!==void 0&&$.appStateFatalExceptionNotification!==null?vK.fromPartial($.appStateFatalExceptionNotification):void 0,Q.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?k0.fromPartial($.disappearingMode):void 0,Q.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?j.fromPartial($.editedMessage):void 0,Q.timestampMs=$.timestampMs??void 0,Q.peerDataOperationRequestMessage=$.peerDataOperationRequestMessage!==void 0&&$.peerDataOperationRequestMessage!==null?Yq.fromPartial($.peerDataOperationRequestMessage):void 0,Q.peerDataOperationRequestResponseMessage=$.peerDataOperationRequestResponseMessage!==void 0&&$.peerDataOperationRequestResponseMessage!==null?kq.fromPartial($.peerDataOperationRequestResponseMessage):void 0,Q.botFeedbackMessage=$.botFeedbackMessage!==void 0&&$.botFeedbackMessage!==null?uQ.fromPartial($.botFeedbackMessage):void 0,Q.invokerJid=$.invokerJid??void 0,Q.requestWelcomeMessageMetadata=$.requestWelcomeMessageMetadata!==void 0&&$.requestWelcomeMessageMetadata!==null?gq.fromPartial($.requestWelcomeMessageMetadata):void 0,Q.mediaNotifyMessage=$.mediaNotifyMessage!==void 0&&$.mediaNotifyMessage!==null?IK.fromPartial($.mediaNotifyMessage):void 0,Q.cloudApiThreadControlNotification=$.cloudApiThreadControlNotification!==void 0&&$.cloudApiThreadControlNotification!==null?Q8.fromPartial($.cloudApiThreadControlNotification):void 0,Q.lidMigrationMappingSyncMessage=$.lidMigrationMappingSyncMessage!==void 0&&$.lidMigrationMappingSyncMessage!==null?BK.fromPartial($.lidMigrationMappingSyncMessage):void 0,Q.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?D0.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?B0.fromPartial($.memberLabel):void 0,Q.aiMediaCollectionMessage=$.aiMediaCollectionMessage!==void 0&&$.aiMediaCollectionMessage!==null?ZQ.fromPartial($.aiMediaCollectionMessage):void 0,Q.afterReadDuration=$.afterReadDuration??void 0,Q.chatThemeSetting=$.chatThemeSetting!==void 0&&$.chatThemeSetting!==null?$8.fromPartial($.chatThemeSetting):void 0,Q.aiMetadataOperation=$.aiMetadataOperation!==void 0&&$.aiMetadataOperation!==null?KQ.fromPartial($.aiMetadataOperation):void 0,Q.markAsVerifiedAction=$.markAsVerifiedAction!==void 0&&$.markAsVerifiedAction!==null?r8.fromPartial($.markAsVerifiedAction):void 0,Q.coexStateSync=$.coexStateSync!==void 0&&$.coexStateSync!==null?iZ.fromPartial($.coexStateSync):void 0,Q}};function x4(){return{}}var bq={encode($,Q=new H){if($.key!==void 0)k.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??x4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 bq.fromPartial($??{})},fromPartial($){let Q=x4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.text=$.text??void 0,Q}};function k4(){return{}}var oq={encode($,Q=new H){if($.key!==void 0)k.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??k4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 oq.fromPartial($??{})},fromPartial($){let Q=k4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.text=$.text??void 0,Q.groupingKey=$.groupingKey??void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function N4(){return{}}var iq={encode($,Q=new H){if($.noteMessage!==void 0)j.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)a.encode($.amount,Q.uint32(50).fork()).join();if($.background!==void 0)A$.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??N4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 4:{if(J!==34)break;K.noteMessage=j.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=a.decode(Z,Z.uint32(),K.amount);continue}case 7:{if(J!==58)break;K.background=A$.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 iq.fromPartial($??{})},fromPartial($){let Q=N4();return Q.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?j.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?a.fromPartial($.amount):void 0,Q.background=$.background!==void 0&&$.background!==null?A$.fromPartial($.background):void 0,Q}};function B4(){return{}}var mq={encode($,Q=new H){if($.contextInfo!==void 0)E.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??B4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=E.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 mq.fromPartial($??{})},fromPartial($){let Q=B4();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q}};function R4(){return{}}var gq={encode($,Q=new H){if($.localChatState!==void 0)Q.uint32(8).int32($.localChatState);if($.welcomeTrigger!==void 0)Q.uint32(16).int32($.welcomeTrigger);if($.botAgentMetadata!==void 0)_Q.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??R4();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=_Q.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 gq.fromPartial($??{})},fromPartial($){let Q=R4();return Q.localChatState=$.localChatState??void 0,Q.welcomeTrigger=$.welcomeTrigger??void 0,Q.botAgentMetadata=$.botAgentMetadata!==void 0&&$.botAgentMetadata!==null?_Q.fromPartial($.botAgentMetadata):void 0,Q}};function O4(){return{}}var rq={encode($,Q=new H){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??O4();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 rq.fromPartial($??{})},fromPartial($){let Q=O4();return Q.chatJid=$.chatJid??void 0,Q}};function A4(){return{}}var tq={encode($,Q=new H){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??A4();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 tq.fromPartial($??{})},fromPartial($){let Q=A4();return Q.scheduledTimestampMs=$.scheduledTimestampMs??void 0,Q.callType=$.callType??void 0,Q.title=$.title??void 0,Q}};function E4(){return{}}var aq={encode($,Q=new H){if($.key!==void 0)k.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??E4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 aq.fromPartial($??{})},fromPartial($){let Q=E4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.editType=$.editType??void 0,Q}};function M4(){return{}}var sq={encode($,Q=new H){if($.targetMessageKey!==void 0)k.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??M4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.targetMessageKey=k.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 sq.fromPartial($??{})},fromPartial($){let Q=M4();return Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?k.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 W4(){return{}}var eq={encode($,Q=new H){if($.noteMessage!==void 0)j.encode($.noteMessage,Q.uint32(18).fork()).join();if($.requestMessageKey!==void 0)k.encode($.requestMessageKey,Q.uint32(26).fork()).join();if($.background!==void 0)A$.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??W4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==18)break;K.noteMessage=j.decode(Z,Z.uint32(),K.noteMessage);continue}case 3:{if(J!==26)break;K.requestMessageKey=k.decode(Z,Z.uint32(),K.requestMessageKey);continue}case 4:{if(J!==34)break;K.background=A$.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 eq.fromPartial($??{})},fromPartial($){let Q=W4();return Q.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?j.fromPartial($.noteMessage):void 0,Q.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?k.fromPartial($.requestMessageKey):void 0,Q.background=$.background!==void 0&&$.background!==null?A$.fromPartial($.background):void 0,Q.transactionData=$.transactionData??void 0,Q}};function S4(){return{}}var b0={encode($,Q=new H){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??S4();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 b0.fromPartial($??{})},fromPartial($){let Q=S4();return Q.groupId=$.groupId??void 0,Q.axolotlSenderKeyDistributionMessage=$.axolotlSenderKeyDistributionMessage??void 0,Q}};function I4(){return{}}var $X={encode($,Q=new H){if($.splitId!==void 0)Q.uint32(10).string($.splitId);if($.totalAmount!==void 0)a.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)QX.encode(q,Q.uint32(42).fork()).join();if($.createdAtMs!==void 0)Q.uint32(48).int64($.createdAtMs);if($.contextInfo!==void 0)E.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??I4();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=a.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=QX.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=E.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 $X.fromPartial($??{})},fromPartial($){let Q=I4();return Q.splitId=$.splitId??void 0,Q.totalAmount=$.totalAmount!==void 0&&$.totalAmount!==null?a.fromPartial($.totalAmount):void 0,Q.description=$.description??void 0,Q.requesterJid=$.requesterJid??void 0,Q.participants=$.participants?.map((q)=>QX.fromPartial(q))||void 0,Q.createdAtMs=$.createdAtMs??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q}};function T4(){return{}}var QX={encode($,Q=new H){if($.jid!==void 0)Q.uint32(10).string($.jid);if($.amount!==void 0)a.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??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!==18)break;K.amount=a.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 QX.fromPartial($??{})},fromPartial($){let Q=T4();return Q.jid=$.jid??void 0,Q.amount=$.amount!==void 0&&$.amount!==null?a.fromPartial($.amount):void 0,Q.status=$.status??void 0,Q}};function y4(){return{}}var ZX={encode($,Q=new H){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??y4();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 ZX.fromPartial($??{})},fromPartial($){let Q=y4();return Q.splitId=$.splitId??void 0,Q.participantJid=$.participantJid??void 0,Q}};function v4(){return{}}var JX={encode($,Q=new H){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??v4();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 JX.fromPartial($??{})},fromPartial($){let Q=v4();return Q.style=$.style??void 0,Q}};function f4(){return{}}var KX={encode($,Q=new H){if($.responseMessageKey!==void 0)k.encode($.responseMessageKey,Q.uint32(10).fork()).join();if($.originalMessageKey!==void 0)k.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??f4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.responseMessageKey=k.decode(Z,Z.uint32(),K.responseMessageKey);continue}case 2:{if(J!==18)break;K.originalMessageKey=k.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 KX.fromPartial($??{})},fromPartial($){let Q=f4();return Q.responseMessageKey=$.responseMessageKey!==void 0&&$.responseMessageKey!==null?k.fromPartial($.responseMessageKey):void 0,Q.originalMessageKey=$.originalMessageKey!==void 0&&$.originalMessageKey!==null?k.fromPartial($.originalMessageKey):void 0,Q.type=$.type??void 0,Q}};function _4(){return{}}var qX={encode($,Q=new H){if($.key!==void 0)k.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??_4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 qX.fromPartial($??{})},fromPartial($){let Q=_4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.text=$.text??void 0,Q}};function h4(){return{}}var XX={encode($,Q=new H){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)k.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??h4();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=k.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 XX.fromPartial($??{})},fromPartial($){let Q=h4();return Q.type=$.type??void 0,Q.text=$.text??void 0,Q.thumbnail=$.thumbnail??void 0,Q.originalStatusId=$.originalStatusId!==void 0&&$.originalStatusId!==null?k.fromPartial($.originalStatusId):void 0,Q}};function l4(){return{}}var YX={encode($,Q=new H){if($.key!==void 0)k.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??l4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 YX.fromPartial($??{})},fromPartial($){let Q=l4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.stickerKey=$.stickerKey??void 0,Q.type=$.type??void 0,Q}};function p4(){return{}}var k$={encode($,Q=new H){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)E.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??p4();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=E.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 k$.fromPartial($??{})},fromPartial($){let Q=p4();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?E.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 u4(){return{}}var VX={encode($,Q=new H){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)zX.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)E.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??u4();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=zX.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=E.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 VX.fromPartial($??{})},fromPartial($){let Q=u4();return Q.stickerPackId=$.stickerPackId??void 0,Q.name=$.name??void 0,Q.publisher=$.publisher??void 0,Q.stickers=$.stickers?.map((q)=>zX.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?E.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 w4(){return{}}var zX={encode($,Q=new H){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??w4();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 zX.fromPartial($??{})},fromPartial($){let Q=w4();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 j4(){return{}}var HX={encode($,Q=new H){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??j4();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 HX.fromPartial($??{})},fromPartial($){let Q=j4();return Q.filehash=$.filehash?.map((q)=>q)||void 0,Q.rmrSource=$.rmrSource??void 0,Q.requestTimestamp=$.requestTimestamp??void 0,Q}};function d4(){return{}}var GX={encode($,Q=new H){if($.selectedId!==void 0)Q.uint32(10).string($.selectedId);if($.selectedDisplayText!==void 0)Q.uint32(18).string($.selectedDisplayText);if($.contextInfo!==void 0)E.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??d4();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=E.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 GX.fromPartial($??{})},fromPartial($){let Q=d4();return Q.selectedId=$.selectedId??void 0,Q.selectedDisplayText=$.selectedDisplayText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.selectedIndex=$.selectedIndex??void 0,Q.selectedCarouselCardIndex=$.selectedCarouselCardIndex??void 0,Q}};function c4(){return{}}var N$={encode($,Q=new H){if($.contextInfo!==void 0)E.encode($.contextInfo,Q.uint32(26).fork()).join();if($.hydratedTemplate!==void 0)o0.encode($.hydratedTemplate,Q.uint32(34).fork()).join();if($.templateId!==void 0)Q.uint32(74).string($.templateId);if($.fourRowTemplate!==void 0)UX.encode($.fourRowTemplate,Q.uint32(10).fork()).join();if($.hydratedFourRowTemplate!==void 0)o0.encode($.hydratedFourRowTemplate,Q.uint32(18).fork()).join();if($.interactiveMessageTemplate!==void 0)O0.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??c4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 3:{if(J!==26)break;K.contextInfo=E.decode(Z,Z.uint32(),K.contextInfo);continue}case 4:{if(J!==34)break;K.hydratedTemplate=o0.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=UX.decode(Z,Z.uint32(),K.fourRowTemplate);continue}case 2:{if(J!==18)break;K.hydratedFourRowTemplate=o0.decode(Z,Z.uint32(),K.hydratedFourRowTemplate);continue}case 5:{if(J!==42)break;K.interactiveMessageTemplate=O0.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 N$.fromPartial($??{})},fromPartial($){let Q=c4();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?E.fromPartial($.contextInfo):void 0,Q.hydratedTemplate=$.hydratedTemplate!==void 0&&$.hydratedTemplate!==null?o0.fromPartial($.hydratedTemplate):void 0,Q.templateId=$.templateId??void 0,Q.fourRowTemplate=$.fourRowTemplate!==void 0&&$.fourRowTemplate!==null?UX.fromPartial($.fourRowTemplate):void 0,Q.hydratedFourRowTemplate=$.hydratedFourRowTemplate!==void 0&&$.hydratedFourRowTemplate!==null?o0.fromPartial($.hydratedFourRowTemplate):void 0,Q.interactiveMessageTemplate=$.interactiveMessageTemplate!==void 0&&$.interactiveMessageTemplate!==null?O0.fromPartial($.interactiveMessageTemplate):void 0,Q}};function n4(){return{}}var UX={encode($,Q=new H){if($.content!==void 0)n.encode($.content,Q.uint32(50).fork()).join();if($.footer!==void 0)n.encode($.footer,Q.uint32(58).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let q of $.buttons)m6.encode(q,Q.uint32(66).fork()).join();if($.documentMessage!==void 0)Z0.encode($.documentMessage,Q.uint32(10).fork()).join();if($.highlyStructuredMessage!==void 0)n.encode($.highlyStructuredMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)m.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)s.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??n4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 6:{if(J!==50)break;K.content=n.decode(Z,Z.uint32(),K.content);continue}case 7:{if(J!==58)break;K.footer=n.decode(Z,Z.uint32(),K.footer);continue}case 8:{if(J!==66)break;if(K.buttons===void 0)K.buttons=[];let V=m6.decode(Z,Z.uint32());if(V!==void 0)K.buttons.push(V);continue}case 1:{if(J!==10)break;K.documentMessage=Z0.decode(Z,Z.uint32(),K.documentMessage);continue}case 2:{if(J!==18)break;K.highlyStructuredMessage=n.decode(Z,Z.uint32(),K.highlyStructuredMessage);continue}case 3:{if(J!==26)break;K.imageMessage=m.decode(Z,Z.uint32(),K.imageMessage);continue}case 4:{if(J!==34)break;K.videoMessage=t.decode(Z,Z.uint32(),K.videoMessage);continue}case 5:{if(J!==42)break;K.locationMessage=s.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 UX.fromPartial($??{})},fromPartial($){let Q=n4();return Q.content=$.content!==void 0&&$.content!==null?n.fromPartial($.content):void 0,Q.footer=$.footer!==void 0&&$.footer!==null?n.fromPartial($.footer):void 0,Q.buttons=$.buttons?.map((q)=>m6.fromPartial(q))||void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?Z0.fromPartial($.documentMessage):void 0,Q.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?n.fromPartial($.highlyStructuredMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?m.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?s.fromPartial($.locationMessage):void 0,Q}};function b4(){return{}}var o0={encode($,Q=new H){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)zK.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)Z0.encode($.documentMessage,Q.uint32(10).fork()).join();if($.hydratedTitleText!==void 0)Q.uint32(18).string($.hydratedTitleText);if($.imageMessage!==void 0)m.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)s.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??b4();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=zK.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=Z0.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=m.decode(Z,Z.uint32(),K.imageMessage);continue}case 4:{if(J!==34)break;K.videoMessage=t.decode(Z,Z.uint32(),K.videoMessage);continue}case 5:{if(J!==42)break;K.locationMessage=s.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 o0.fromPartial($??{})},fromPartial($){let Q=b4();return Q.hydratedContentText=$.hydratedContentText??void 0,Q.hydratedFooterText=$.hydratedFooterText??void 0,Q.hydratedButtons=$.hydratedButtons?.map((q)=>zK.fromPartial(q))||void 0,Q.templateId=$.templateId??void 0,Q.maskLinkedDevices=$.maskLinkedDevices??void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?Z0.fromPartial($.documentMessage):void 0,Q.hydratedTitleText=$.hydratedTitleText??void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?m.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?s.fromPartial($.locationMessage):void 0,Q}};function o4(){return{}}var CX={encode($,Q=new H){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??o4();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 CX.fromPartial($??{})},fromPartial($){let Q=o4();return Q.fbExperimentId=$.fbExperimentId??void 0,Q}};function i4(){return{}}var PX={encode($,Q=new H){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??i4();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 PX.fromPartial($??{})},fromPartial($){let Q=i4();return Q.username=$.username??void 0,Q.caption=$.caption??void 0,Q.thumbnailImageUrl=$.thumbnailImageUrl??void 0,Q.profilePictureUrl=$.profilePictureUrl??void 0,Q}};function m4(){return{}}var t={encode($,Q=new H){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)q0.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)E.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)q0.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)_X.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??m4();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=q0.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=E.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=q0.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=_X.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 t.fromPartial($??{})},fromPartial($){let Q=m4();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)=>q0.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?E.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)=>q0.fromPartial(q))||void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.processedVideos=$.processedVideos?.map((q)=>_X.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 g4(){return{}}var DX={encode($,Q=new H){if($.messageAddOnType!==void 0)Q.uint32(8).int32($.messageAddOnType);if($.messageAddOn!==void 0)j.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)B$.encode($.addOnContextInfo,Q.uint32(50).fork()).join();if($.messageAddOnKey!==void 0)k.encode($.messageAddOnKey,Q.uint32(58).fork()).join();if($.legacyMessage!==void 0)OK.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??g4();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=j.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=B$.decode(Z,Z.uint32(),K.addOnContextInfo);continue}case 7:{if(J!==58)break;K.messageAddOnKey=k.decode(Z,Z.uint32(),K.messageAddOnKey);continue}case 8:{if(J!==66)break;K.legacyMessage=OK.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 DX.fromPartial($??{})},fromPartial($){let Q=g4();return Q.messageAddOnType=$.messageAddOnType??void 0,Q.messageAddOn=$.messageAddOn!==void 0&&$.messageAddOn!==null?j.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?B$.fromPartial($.addOnContextInfo):void 0,Q.messageAddOnKey=$.messageAddOnKey!==void 0&&$.messageAddOnKey!==null?k.fromPartial($.messageAddOnKey):void 0,Q.legacyMessage=$.legacyMessage!==void 0&&$.legacyMessage!==null?OK.fromPartial($.legacyMessage):void 0,Q}};function r4(){return{}}var B$={encode($,Q=new H){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??r4();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 B$.fromPartial($??{})},fromPartial($){let Q=r4();return Q.messageAddOnDurationInSecs=$.messageAddOnDurationInSecs??void 0,Q.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,Q}};function t4(){return{}}var FX={encode($,Q=new H){if($.associationType!==void 0)Q.uint32(8).int32($.associationType);if($.parentMessageKey!==void 0)k.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??t4();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=k.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 FX.fromPartial($??{})},fromPartial($){let Q=t4();return Q.associationType=$.associationType??void 0,Q.parentMessageKey=$.parentMessageKey!==void 0&&$.parentMessageKey!==null?k.fromPartial($.parentMessageKey):void 0,Q.messageIndex=$.messageIndex??void 0,Q}};function a4(){return{}}var R$={encode($,Q=new H){if($.deviceListMetadata!==void 0)jJ.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)KZ.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)FX.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)D0.encode($.limitSharing,Q.uint32(106).fork()).join();if($.limitSharingV2!==void 0)D0.encode($.limitSharingV2,Q.uint32(114).fork()).join();if($.threadId!==void 0&&$.threadId.length!==0)for(let q of $.threadId)a6.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)NX.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??a4();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deviceListMetadata=jJ.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=KZ.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=FX.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=D0.decode(Z,Z.uint32(),K.limitSharing);continue}case 14:{if(J!==114)break;K.limitSharingV2=D0.decode(Z,Z.uint32(),K.limitSharingV2);continue}case 15:{if(J!==122)break;if(K.threadId===void 0)K.threadId=[];let V=a6.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=NX.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 R$.fromPartial($??{})},fromPartial($){let Q=a4();return Q.deviceListMetadata=$.deviceListMetadata!==void 0&&$.deviceListMetadata!==null?jJ.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?KZ.fromPartial($.botMetadata):void 0,Q.reportingTokenVersion=$.reportingTokenVersion??void 0,Q.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,Q.messageAssociation=$.messageAssociation!==void 0&&$.messageAssociation!==null?FX.fromPartial($.messageAssociation):void 0,Q.capiCreatedGroup=$.capiCreatedGroup??void 0,Q.supportPayload=$.supportPayload??void 0,Q.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?D0.fromPartial($.limitSharing):void 0,Q.limitSharingV2=$.limitSharingV2!==void 0&&$.limitSharingV2!==null?D0.fromPartial($.limitSharingV2):void 0,Q.threadId=$.threadId?.map((q)=>a6.fromPartial(q))||void 0,Q.weblinkRenderConfig=$.weblinkRenderConfig??void 0,Q.teeBotMetadata=$.teeBotMetadata??void 0,Q.accountEncryptionAttestation=$.accountEncryptionAttestation!==void 0&&$.accountEncryptionAttestation!==null?NX.fromPartial($.accountEncryptionAttestation):void 0,Q.associatedPrimaryIdentityKey=$.associatedPrimaryIdentityKey??void 0,Q}};function s4(){return{}}var k={encode($,Q=new H){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??s4();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 k.fromPartial($??{})},fromPartial($){let Q=s4();return Q.remoteJid=$.remoteJid??void 0,Q.fromMe=$.fromMe??void 0,Q.id=$.id??void 0,Q.participant=$.participant??void 0,Q}};function e4(){return{}}var LR={encode($,Q=new H){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??e4();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 LR.fromPartial($??{})},fromPartial($){let Q=e4();return Q.version=$.version??void 0,Q.encIv=$.encIv??void 0,Q.encPayload=$.encPayload??void 0,Q}};function $P(){return{}}var g={encode($,Q=new H){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)rZ.encode(q,Q.uint32(26).fork()).join();if($.mentions!==void 0&&$.mentions.length!==0)for(let q of $.mentions)TK.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??$P();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=rZ.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=TK.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 g.fromPartial($??{})},fromPartial($){let Q=$P();return Q.text=$.text??void 0,Q.mentionedJid=$.mentionedJid?.map((q)=>q)||void 0,Q.commands=$.commands?.map((q)=>rZ.fromPartial(q))||void 0,Q.mentions=$.mentions?.map((q)=>TK.fromPartial(q))||void 0,Q}};function QP(){return{}}var a={encode($,Q=new H){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??QP();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 a.fromPartial($??{})},fromPartial($){let Q=QP();return Q.value=$.value??void 0,Q.offset=$.offset??void 0,Q.currencyCode=$.currencyCode??void 0,Q}};function ZP(){return{}}var i0={encode($,Q=new H){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)O$.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)yX.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)kX.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)LX.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??ZP();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=O$.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=yX.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=kX.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=LX.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 i0.fromPartial($??{})},fromPartial($){let Q=ZP();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)=>O$.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?yX.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?kX.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?LX.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 JP(){return{}}var LX={encode($,Q=new H){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??JP();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 LX.fromPartial($??{})},fromPartial($){let Q=JP();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 KP(){return{}}var O$={encode($,Q=new H){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??KP();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 O$.fromPartial($??{})},fromPartial($){let Q=KP();return Q.name=$.name??void 0,Q.hash=$.hash??void 0,Q}};function qP(){return{}}var xX={encode($,Q=new H){if($.option!==void 0)O$.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??qP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.option=O$.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 xX.fromPartial($??{})},fromPartial($){let Q=qP();return Q.option=$.option!==void 0&&$.option!==null?O$.fromPartial($.option):void 0,Q.optionVoteCount=$.optionVoteCount??void 0,Q}};function XP(){return{}}var kX={encode($,Q=new H){if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let q of $.pollVotes)xX.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??XP();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=xX.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 kX.fromPartial($??{})},fromPartial($){let Q=XP();return Q.pollVotes=$.pollVotes?.map((q)=>xX.fromPartial(q))||void 0,Q}};function YP(){return{}}var xR={encode($,Q=new H){if($.currentMsg!==void 0)i0.encode($.currentMsg,Q.uint32(10).fork()).join();if($.quotedMsg!==void 0)i0.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??YP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.currentMsg=i0.decode(Z,Z.uint32(),K.currentMsg);continue}case 2:{if(J!==18)break;K.quotedMsg=i0.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 xR.fromPartial($??{})},fromPartial($){let Q=YP();return Q.currentMsg=$.currentMsg!==void 0&&$.currentMsg!==null?i0.fromPartial($.currentMsg):void 0,Q.quotedMsg=$.quotedMsg!==void 0&&$.quotedMsg!==null?i0.fromPartial($.quotedMsg):void 0,Q}};function VP(){return{}}var kR={encode($,Q=new H){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??VP();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 kR.fromPartial($??{})},fromPartial($){let Q=VP();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q}};function zP(){return{}}var NR={encode($,Q=new H){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??zP();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 NR.fromPartial($??{})},fromPartial($){let Q=zP();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 HP(){return{}}var NX={encode($,Q=new H){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??HP();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 NX.fromPartial($??{})},fromPartial($){let Q=HP();return Q.accountType=$.accountType??void 0,Q}};function GP(){return{}}var BR={encode($,Q=new H){if($.key!==void 0)k.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)j.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??GP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.message=j.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 BR.fromPartial($??{})},fromPartial($){let Q=GP();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?j.fromPartial($.message):void 0,Q.messageTimestamp=$.messageTimestamp??void 0,Q.participant=$.participant??void 0,Q}};function UP(){return{}}var m0={encode($,Q=new H){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??UP();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 m0.fromPartial($??{})},fromPartial($){let Q=UP();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 CP(){return{}}var BX={encode($,Q=new H){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??CP();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 BX.fromPartial($??{})},fromPartial($){let Q=CP();return Q.orfClientState=$.orfClientState??void 0,Q.threadId=$.threadId??void 0,Q}};function PP(){return{}}var RR={encode($,Q=new H){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??PP();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 RR.fromPartial($??{})},fromPartial($){let Q=PP();return Q.orfThreadId=$.orfThreadId??void 0,Q.error=$.error??void 0,Q}};function DP(){return{}}var OR={encode($,Q=new H){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??DP();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 OR.fromPartial($??{})},fromPartial($){let Q=DP();return Q.companionPublicKey=$.companionPublicKey??void 0,Q.companionIdentityKey=$.companionIdentityKey??void 0,Q.advSecret=$.advSecret??void 0,Q}};function FP(){return{}}var RX={encode($,Q=new H){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??FP();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 RX.fromPartial($??{})},fromPartial($){let Q=FP();return Q.userJid=$.userJid??void 0,Q.leaveReason=$.leaveReason??void 0,Q.leaveTs=$.leaveTs??void 0,Q}};function LP(){return{}}var OX={encode($,Q=new H){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let q of $.pastParticipants)RX.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??LP();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=RX.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 OX.fromPartial($??{})},fromPartial($){let Q=LP();return Q.groupJid=$.groupJid??void 0,Q.pastParticipants=$.pastParticipants?.map((q)=>RX.fromPartial(q))||void 0,Q}};function xP(){return{}}var AR={encode($,Q=new H){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??xP();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 AR.fromPartial($??{})},fromPartial($){let Q=xP();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 kP(){return{}}var A$={encode($,Q=new H){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)AX.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??kP();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=AX.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 A$.fromPartial($??{})},fromPartial($){let Q=kP();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?AX.fromPartial($.mediaData):void 0,Q.type=$.type??void 0,Q}};function NP(){return{}}var AX={encode($,Q=new H){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??NP();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 AX.fromPartial($??{})},fromPartial($){let Q=NP();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 BP(){return{}}var g0={encode($,Q=new H){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)k.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)a.encode($.primaryAmount,Q.uint32(98).fork()).join();if($.exchangeAmount!==void 0)a.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??BP();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=k.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=a.decode(Z,Z.uint32(),K.primaryAmount);continue}case 13:{if(J!==106)break;K.exchangeAmount=a.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 g0.fromPartial($??{})},fromPartial($){let Q=BP();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?k.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?a.fromPartial($.primaryAmount):void 0,Q.exchangeAmount=$.exchangeAmount!==void 0&&$.exchangeAmount!==null?a.fromPartial($.exchangeAmount):void 0,Q}};function RP(){return{}}var EX={encode($,Q=new H){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??RP();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 EX.fromPartial($??{})},fromPartial($){let Q=RP();return Q.pnJid=$.pnJid??void 0,Q.lidJid=$.lidJid??void 0,Q}};function OP(){return{}}var MX={encode($,Q=new H){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??OP();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 MX.fromPartial($??{})},fromPartial($){let Q=OP();return Q.oldPhoto=$.oldPhoto??void 0,Q.newPhoto=$.newPhoto??void 0,Q.newPhotoId=$.newPhotoId??void 0,Q}};function AP(){return{}}var WX={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.key!==void 0)k.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)B$.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??AP();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=k.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=B$.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 WX.fromPartial($??{})},fromPartial($){let Q=AP();return Q.type=$.type??void 0,Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q.serverTimestampMs=$.serverTimestampMs??void 0,Q.messageAddOnContextInfo=$.messageAddOnContextInfo!==void 0&&$.messageAddOnContextInfo!==null?B$.fromPartial($.messageAddOnContextInfo):void 0,Q}};function EP(){return{}}var SX={encode($,Q=new H){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??EP();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 SX.fromPartial($??{})},fromPartial($){let Q=EP();return Q.xDeprecated=$.xDeprecated??void 0,Q.yDeprecated=$.yDeprecated??void 0,Q.x=$.x??void 0,Q.y=$.y??void 0,Q}};function MP(){return{}}var IX={encode($,Q=new H){if($.pollInvalidated!==void 0)Q.uint32(8).bool($.pollInvalidated);if($.pollNameHashHistory!==void 0&&$.pollNameHashHistory.length!==0)for(let q of $.pollNameHashHistory)TX.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??MP();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=TX.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 IX.fromPartial($??{})},fromPartial($){let Q=MP();return Q.pollInvalidated=$.pollInvalidated??void 0,Q.pollNameHashHistory=$.pollNameHashHistory?.map((q)=>TX.fromPartial(q))||void 0,Q}};function WP(){return{}}var TX={encode($,Q=new H){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??WP();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 TX.fromPartial($??{})},fromPartial($){let Q=WP();return Q.editStanzaId=$.editStanzaId??void 0,Q.pollNameHash=$.pollNameHash??void 0,Q}};function SP(){return{}}var yX={encode($,Q=new H){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??SP();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 yX.fromPartial($??{})},fromPartial($){let Q=SP();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function IP(){return{}}var vX={encode($,Q=new H){if($.pollUpdateMessageKey!==void 0)k.encode($.pollUpdateMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)T0.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)A0.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??IP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollUpdateMessageKey=k.decode(Z,Z.uint32(),K.pollUpdateMessageKey);continue}case 2:{if(J!==18)break;K.vote=T0.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=A0.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 vX.fromPartial($??{})},fromPartial($){let Q=IP();return Q.pollUpdateMessageKey=$.pollUpdateMessageKey!==void 0&&$.pollUpdateMessageKey!==null?k.fromPartial($.pollUpdateMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?T0.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?A0.fromPartial($.metadata):void 0,Q}};function TP(){return{}}var ER={encode($,Q=new H){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??TP();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 ER.fromPartial($??{})},fromPartial($){let Q=TP();return Q.id=$.id??void 0,Q.publicKey=$.publicKey??void 0,Q.privateKey=$.privateKey??void 0,Q}};function yP(){return{}}var MR={encode($,Q=new H){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??yP();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 MR.fromPartial($??{})},fromPartial($){let Q=yP();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 vP(){return{}}var fX={encode($,Q=new H){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??vP();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 fX.fromPartial($??{})},fromPartial($){let Q=vP();return Q.serverCampaignId=$.serverCampaignId??void 0,Q}};function fP(){return{}}var WR={encode($,Q=new H){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??fP();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 WR.fromPartial($??{})},fromPartial($){let Q=fP();return Q.publicKey=$.publicKey??void 0,Q.nonce=$.nonce??void 0,Q}};function _P(){return{}}var _X={encode($,Q=new H){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??_P();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 _X.fromPartial($??{})},fromPartial($){let Q=_P();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 hP(){return{}}var SR={encode($,Q=new H){if($.companionEphemeralIdentity!==void 0)Q.uint32(10).bytes($.companionEphemeralIdentity);if($.commitment!==void 0)aZ.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??hP();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=aZ.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 SR.fromPartial($??{})},fromPartial($){let Q=hP();return Q.companionEphemeralIdentity=$.companionEphemeralIdentity??void 0,Q.commitment=$.commitment!==void 0&&$.commitment!==null?aZ.fromPartial($.commitment):void 0,Q}};function lP(){return{}}var hX={encode($,Q=new H){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??lP();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 hX.fromPartial($??{})},fromPartial($){let Q=lP();return Q.id=$.id??void 0,Q.pushname=$.pushname??void 0,Q}};function pP(){return{}}var IR={encode($,Q=new H){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){}if(J>>>3===0||(J&7)===4)throw RangeError(`illegal protobuf tag ${J} at offset ${Z.pos}`);Z.skip(J&7)}return K},create($){return IR.fromPartial($??{})},fromPartial($){return pP()}};function uP(){return{}}var lX={encode($,Q=new H){if($.filterName!==void 0)Q.uint32(10).string($.filterName);if($.parameters!==void 0&&$.parameters.length!==0)for(let q of $.parameters)pX.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??uP();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=pX.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 lX.fromPartial($??{})},fromPartial($){let Q=uP();return Q.filterName=$.filterName??void 0,Q.parameters=$.parameters?.map((q)=>pX.fromPartial(q))||void 0,Q.filterResult=$.filterResult??void 0,Q.clientNotSupportedConfig=$.clientNotSupportedConfig??void 0,Q}};function wP(){return{}}var QQ={encode($,Q=new H){if($.clauseType!==void 0)Q.uint32(8).int32($.clauseType);if($.clauses!==void 0&&$.clauses.length!==0)for(let q of $.clauses)QQ.encode(q,Q.uint32(18).fork()).join();if($.filters!==void 0&&$.filters.length!==0)for(let q of $.filters)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??wP();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=QQ.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=lX.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 QQ.fromPartial($??{})},fromPartial($){let Q=wP();return Q.clauseType=$.clauseType??void 0,Q.clauses=$.clauses?.map((q)=>QQ.fromPartial(q))||void 0,Q.filters=$.filters?.map((q)=>lX.fromPartial(q))||void 0,Q}};function jP(){return{}}var pX={encode($,Q=new H){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??jP();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 pX.fromPartial($??{})},fromPartial($){let Q=jP();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function dP(){return{}}var uX={encode($,Q=new H){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??dP();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 uX.fromPartial($??{})},fromPartial($){let Q=dP();return Q.originalData=$.originalData??void 0,Q.extractedText=$.extractedText??void 0,Q}};function cP(){return{}}var wX={encode($,Q=new H){if($.key!==void 0)k.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??cP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 wX.fromPartial($??{})},fromPartial($){let Q=cP();return Q.key=$.key!==void 0&&$.key!==null?k.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 nP(){return{}}var jX={encode($,Q=new H){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??nP();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 jX.fromPartial($??{})},fromPartial($){let Q=nP();return Q.emoji=$.emoji??void 0,Q.weight=$.weight??void 0,Q}};function bP(){return{}}var TR={encode($,Q=new H){if($.currentSession!==void 0)r0.encode($.currentSession,Q.uint32(10).fork()).join();if($.previousSessions!==void 0&&$.previousSessions.length!==0)for(let q of $.previousSessions)r0.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??bP();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.currentSession=r0.decode(Z,Z.uint32(),K.currentSession);continue}case 2:{if(J!==18)break;if(K.previousSessions===void 0)K.previousSessions=[];let V=r0.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 TR.fromPartial($??{})},fromPartial($){let Q=bP();return Q.currentSession=$.currentSession!==void 0&&$.currentSession!==null?r0.fromPartial($.currentSession):void 0,Q.previousSessions=$.previousSessions?.map((q)=>r0.fromPartial(q))||void 0,Q}};function oP(){return{}}var yR={encode($,Q=new H){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??oP();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 yR.fromPartial($??{})},fromPartial($){let Q=oP();return Q.minVersion=$.minVersion??void 0,Q.maxVersion=$.maxVersion??void 0,Q.notReportableMinVersion=$.notReportableMinVersion??void 0,Q.never=$.never??void 0,Q}};function iP(){return{}}var dX={encode($,Q=new H){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??iP();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 dX.fromPartial($??{})},fromPartial($){let Q=iP();return Q.reportingTag=$.reportingTag??void 0,Q.reportingTagTimestamp=$.reportingTagTimestamp??void 0,Q}};function mP(){return{}}var cX={encode($,Q=new H){if($.currentEpochRootKey!==void 0)Q.uint32(10).bytes($.currentEpochRootKey);if($.currentEpochAnonId!==void 0)Q.uint32(16).uint64($.currentEpochAnonId);if($.currentEpochFbid!==void 0)Q.uint32(24).uint64($.currentEpochFbid);if($.newEpochFbid!==void 0)Q.uint32(32).uint64($.newEpochFbid);if($.epochStoragePrivateKey!==void 0)Q.uint32(42).bytes($.epochStoragePrivateKey);if($.members!==void 0&&$.members.length!==0)for(let q of $.members)bX.encode(q,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??mP();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!==16)break;K.currentEpochAnonId=Z.uint64Value();continue}case 3:{if(J!==24)break;K.currentEpochFbid=Z.uint64Value();continue}case 4:{if(J!==32)break;K.newEpochFbid=Z.uint64Value();continue}case 5:{if(J!==42)break;K.epochStoragePrivateKey=Z.bytes();continue}case 6:{if(J!==50)break;if(K.members===void 0)K.members=[];let V=bX.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 cX.fromPartial($??{})},fromPartial($){let Q=mP();return Q.currentEpochRootKey=$.currentEpochRootKey??void 0,Q.currentEpochAnonId=$.currentEpochAnonId??void 0,Q.currentEpochFbid=$.currentEpochFbid??void 0,Q.newEpochFbid=$.newEpochFbid??void 0,Q.epochStoragePrivateKey=$.epochStoragePrivateKey??void 0,Q.members=$.members?.map((q)=>bX.fromPartial(q))||void 0,Q}};function gP(){return{}}var nX={encode($,Q=new H){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??gP();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 nX.fromPartial($??{})},fromPartial($){let Q=gP();return Q.deviceId=$.deviceId??void 0,Q.encryptedEpochKey=$.encryptedEpochKey??void 0,Q.deviceEpochHmac=$.deviceEpochHmac??void 0,Q}};function rP(){return{}}var bX={encode($,Q=new H){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??rP();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 bX.fromPartial($??{})},fromPartial($){let Q=rP();return Q.deviceId=$.deviceId??void 0,Q.epochStoragePublicKey=$.epochStoragePublicKey??void 0,Q.devicePublicKey=$.devicePublicKey??void 0,Q}};function tP(){return{}}var vR={encode($,Q=new H){if($.newEpochRootKey!==void 0)Q.uint32(10).bytes($.newEpochRootKey);if($.newEpochAnonId!==void 0)Q.uint32(16).uint64($.newEpochAnonId);if($.epochAnonId!==void 0)Q.uint32(26).bytes($.epochAnonId);if($.epochData!==void 0)Q.uint32(34).bytes($.epochData);if($.memberEdges!==void 0&&$.memberEdges.length!==0)for(let q of $.memberEdges)nX.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??tP();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 3:{if(J!==26)break;K.epochAnonId=Z.bytes();continue}case 4:{if(J!==34)break;K.epochData=Z.bytes();continue}case 5:{if(J!==42)break;if(K.memberEdges===void 0)K.memberEdges=[];let V=nX.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 vR.fromPartial($??{})},fromPartial($){let Q=tP();return Q.newEpochRootKey=$.newEpochRootKey??void 0,Q.newEpochAnonId=$.newEpochAnonId??void 0,Q.epochAnonId=$.epochAnonId??void 0,Q.epochData=$.epochData??void 0,Q.memberEdges=$.memberEdges?.map((q)=>nX.fromPartial(q))||void 0,Q.epochRootKeyFingerprint=$.epochRootKeyFingerprint??void 0,Q.error=$.error??void 0,Q}};function aP(){return{}}var fR={encode($,Q=new H){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??aP();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 fR.fromPartial($??{})},fromPartial($){let Q=aP();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 sP(){return{}}var oX={encode($,Q=new H){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??sP();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 oX.fromPartial($??{})},fromPartial($){let Q=sP();return Q.revealKeyId=$.revealKeyId??void 0,Q.revealKey=$.revealKey??void 0,Q.scheduledTime=$.scheduledTime??void 0,Q}};function eP(){return{}}var yY={encode($,Q=new H){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??eP();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 yY.fromPartial($??{})},fromPartial($){let Q=eP();return Q.id=$.id??void 0,Q.iteration=$.iteration??void 0,Q.chainKey=$.chainKey??void 0,Q.signingKey=$.signingKey??void 0,Q}};function $D(){return{}}var vY={encode($,Q=new H){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??$D();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 vY.fromPartial($??{})},fromPartial($){let Q=$D();return Q.id=$.id??void 0,Q.iteration=$.iteration??void 0,Q.ciphertext=$.ciphertext??void 0,Q}};function QD(){return{}}var _R={encode($,Q=new H){if($.senderKeyStates!==void 0&&$.senderKeyStates.length!==0)for(let q of $.senderKeyStates)iX.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??QD();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=iX.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 _R.fromPartial($??{})},fromPartial($){let Q=QD();return Q.senderKeyStates=$.senderKeyStates?.map((q)=>iX.fromPartial(q))||void 0,Q}};function ZD(){return{}}var iX={encode($,Q=new H){if($.senderKeyId!==void 0)Q.uint32(8).uint32($.senderKeyId);if($.senderChainKey!==void 0)mX.encode($.senderChainKey,Q.uint32(18).fork()).join();if($.senderSigningKey!==void 0)rX.encode($.senderSigningKey,Q.uint32(26).fork()).join();if($.senderMessageKeys!==void 0&&$.senderMessageKeys.length!==0)for(let q of $.senderMessageKeys)gX.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??ZD();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=mX.decode(Z,Z.uint32(),K.senderChainKey);continue}case 3:{if(J!==26)break;K.senderSigningKey=rX.decode(Z,Z.uint32(),K.senderSigningKey);continue}case 4:{if(J!==34)break;if(K.senderMessageKeys===void 0)K.senderMessageKeys=[];let V=gX.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 iX.fromPartial($??{})},fromPartial($){let Q=ZD();return Q.senderKeyId=$.senderKeyId??void 0,Q.senderChainKey=$.senderChainKey!==void 0&&$.senderChainKey!==null?mX.fromPartial($.senderChainKey):void 0,Q.senderSigningKey=$.senderSigningKey!==void 0&&$.senderSigningKey!==null?rX.fromPartial($.senderSigningKey):void 0,Q.senderMessageKeys=$.senderMessageKeys?.map((q)=>gX.fromPartial(q))||void 0,Q}};function JD(){return{}}var mX={encode($,Q=new H){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??JD();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 mX.fromPartial($??{})},fromPartial($){let Q=JD();return Q.iteration=$.iteration??void 0,Q.seed=$.seed??void 0,Q}};function KD(){return{}}var gX={encode($,Q=new H){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??KD();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 gX.fromPartial($??{})},fromPartial($){let Q=KD();return Q.iteration=$.iteration??void 0,Q.seed=$.seed??void 0,Q}};function qD(){return{}}var rX={encode($,Q=new H){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??qD();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 rX.fromPartial($??{})},fromPartial($){let Q=qD();return Q.public=$.public??void 0,Q.private=$.private??void 0,Q}};function XD(){return{}}var fY={encode($,Q=new H){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??XD();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 fY.fromPartial($??{})},fromPartial($){let Q=XD();return Q.stanzaId=$.stanzaId??void 0,Q}};function YD(){return{}}var r0={encode($,Q=new H){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)t0.encode($.senderChain,Q.uint32(50).fork()).join();if($.receiverChains!==void 0&&$.receiverChains.length!==0)for(let q of $.receiverChains)t0.encode(q,Q.uint32(58).fork()).join();if($.pendingKeyExchange!==void 0)sX.encode($.pendingKeyExchange,Q.uint32(66).fork()).join();if($.pendingPreKey!==void 0)eX.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??YD();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=t0.decode(Z,Z.uint32(),K.senderChain);continue}case 7:{if(J!==58)break;if(K.receiverChains===void 0)K.receiverChains=[];let V=t0.decode(Z,Z.uint32());if(V!==void 0)K.receiverChains.push(V);continue}case 8:{if(J!==66)break;K.pendingKeyExchange=sX.decode(Z,Z.uint32(),K.pendingKeyExchange);continue}case 9:{if(J!==74)break;K.pendingPreKey=eX.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 r0.fromPartial($??{})},fromPartial($){let Q=YD();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?t0.fromPartial($.senderChain):void 0,Q.receiverChains=$.receiverChains?.map((q)=>t0.fromPartial(q))||void 0,Q.pendingKeyExchange=$.pendingKeyExchange!==void 0&&$.pendingKeyExchange!==null?sX.fromPartial($.pendingKeyExchange):void 0,Q.pendingPreKey=$.pendingPreKey!==void 0&&$.pendingPreKey!==null?eX.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 VD(){return{}}var t0={encode($,Q=new H){if($.senderRatchetKey!==void 0)Q.uint32(10).bytes($.senderRatchetKey);if($.senderRatchetKeyPrivate!==void 0)Q.uint32(18).bytes($.senderRatchetKeyPrivate);if($.chainKey!==void 0)tX.encode($.chainKey,Q.uint32(26).fork()).join();if($.messageKeys!==void 0&&$.messageKeys.length!==0)for(let q of $.messageKeys)aX.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??VD();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=tX.decode(Z,Z.uint32(),K.chainKey);continue}case 4:{if(J!==34)break;if(K.messageKeys===void 0)K.messageKeys=[];let V=aX.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 t0.fromPartial($??{})},fromPartial($){let Q=VD();return Q.senderRatchetKey=$.senderRatchetKey??void 0,Q.senderRatchetKeyPrivate=$.senderRatchetKeyPrivate??void 0,Q.chainKey=$.chainKey!==void 0&&$.chainKey!==null?tX.fromPartial($.chainKey):void 0,Q.messageKeys=$.messageKeys?.map((q)=>aX.fromPartial(q))||void 0,Q}};function zD(){return{}}var tX={encode($,Q=new H){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??zD();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 tX.fromPartial($??{})},fromPartial($){let Q=zD();return Q.index=$.index??void 0,Q.key=$.key??void 0,Q}};function HD(){return{}}var aX={encode($,Q=new H){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??HD();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 aX.fromPartial($??{})},fromPartial($){let Q=HD();return Q.index=$.index??void 0,Q.cipherKey=$.cipherKey??void 0,Q.macKey=$.macKey??void 0,Q.iv=$.iv??void 0,Q}};function GD(){return{}}var sX={encode($,Q=new H){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??GD();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 sX.fromPartial($??{})},fromPartial($){let Q=GD();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 UD(){return{}}var eX={encode($,Q=new H){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??UD();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 eX.fromPartial($??{})},fromPartial($){let Q=UD();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 CD(){return{}}var $9={encode($,Q=new H){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??CD();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 $9.fromPartial($??{})},fromPartial($){let Q=CD();return Q.disclaimerText=$.disclaimerText??void 0,Q.hcaId=$.hcaId??void 0,Q.sessionTransparencyType=$.sessionTransparencyType??void 0,Q}};function PD(){return{}}var hR={encode($,Q=new H){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??PD();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 hR.fromPartial($??{})},fromPartial($){let Q=PD();return Q.ratchetKey=$.ratchetKey??void 0,Q.counter=$.counter??void 0,Q.previousCounter=$.previousCounter??void 0,Q.ciphertext=$.ciphertext??void 0,Q}};function DD(){return{}}var lR={encode($,Q=new H){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??DD();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 lR.fromPartial($??{})},fromPartial($){let Q=DD();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 FD(){return{}}var Q9={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.actionUrl!==void 0)Q.uint32(18).string($.actionUrl);if($.statusReshare!==void 0)Y9.encode($.statusReshare,Q.uint32(26).fork()).join();if($.externalShare!==void 0)J9.encode($.externalShare,Q.uint32(34).fork()).join();if($.music!==void 0)q9.encode($.music,Q.uint32(42).fork()).join();if($.groupStatus!==void 0)K9.encode($.groupStatus,Q.uint32(50).fork()).join();if($.rlAttribution!==void 0)X9.encode($.rlAttribution,Q.uint32(58).fork()).join();if($.aiCreatedAttribution!==void 0)Z9.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??FD();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=Y9.decode(Z,Z.uint32(),K.statusReshare);continue}case 4:{if(J!==34)break;K.externalShare=J9.decode(Z,Z.uint32(),K.externalShare);continue}case 5:{if(J!==42)break;K.music=q9.decode(Z,Z.uint32(),K.music);continue}case 6:{if(J!==50)break;K.groupStatus=K9.decode(Z,Z.uint32(),K.groupStatus);continue}case 7:{if(J!==58)break;K.rlAttribution=X9.decode(Z,Z.uint32(),K.rlAttribution);continue}case 8:{if(J!==66)break;K.aiCreatedAttribution=Z9.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 Q9.fromPartial($??{})},fromPartial($){let Q=FD();return Q.type=$.type??void 0,Q.actionUrl=$.actionUrl??void 0,Q.statusReshare=$.statusReshare!==void 0&&$.statusReshare!==null?Y9.fromPartial($.statusReshare):void 0,Q.externalShare=$.externalShare!==void 0&&$.externalShare!==null?J9.fromPartial($.externalShare):void 0,Q.music=$.music!==void 0&&$.music!==null?q9.fromPartial($.music):void 0,Q.groupStatus=$.groupStatus!==void 0&&$.groupStatus!==null?K9.fromPartial($.groupStatus):void 0,Q.rlAttribution=$.rlAttribution!==void 0&&$.rlAttribution!==null?X9.fromPartial($.rlAttribution):void 0,Q.aiCreatedAttribution=$.aiCreatedAttribution!==void 0&&$.aiCreatedAttribution!==null?Z9.fromPartial($.aiCreatedAttribution):void 0,Q}};function LD(){return{}}var Z9={encode($,Q=new H){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??LD();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 Z9.fromPartial($??{})},fromPartial($){let Q=LD();return Q.source=$.source??void 0,Q}};function xD(){return{}}var J9={encode($,Q=new H){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??xD();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 J9.fromPartial($??{})},fromPartial($){let Q=xD();return Q.actionUrl=$.actionUrl??void 0,Q.source=$.source??void 0,Q.duration=$.duration??void 0,Q.actionFallbackUrl=$.actionFallbackUrl??void 0,Q}};function kD(){return{}}var K9={encode($,Q=new H){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??kD();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 K9.fromPartial($??{})},fromPartial($){let Q=kD();return Q.authorJid=$.authorJid??void 0,Q}};function ND(){return{}}var q9={encode($,Q=new H){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??ND();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 q9.fromPartial($??{})},fromPartial($){let Q=ND();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 BD(){return{}}var X9={encode($,Q=new H){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??BD();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 X9.fromPartial($??{})},fromPartial($){let Q=BD();return Q.source=$.source??void 0,Q}};function RD(){return{}}var Y9={encode($,Q=new H){if($.source!==void 0)Q.uint32(8).int32($.source);if($.metadata!==void 0)V9.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??RD();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=V9.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 Y9.fromPartial($??{})},fromPartial($){let Q=RD();return Q.source=$.source??void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?V9.fromPartial($.metadata):void 0,Q}};function OD(){return{}}var V9={encode($,Q=new H){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??OD();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 V9.fromPartial($??{})},fromPartial($){let Q=OD();return Q.duration=$.duration??void 0,Q.channelJid=$.channelJid??void 0,Q.channelMessageId=$.channelMessageId??void 0,Q.hasMultipleReshares=$.hasMultipleReshares??void 0,Q}};function AD(){return{}}var z9={encode($,Q=new H){if($.quotedStatus!==void 0)j.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??AD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.quotedStatus=j.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 z9.fromPartial($??{})},fromPartial($){let Q=AD();return Q.quotedStatus=$.quotedStatus!==void 0&&$.quotedStatus!==null?j.fromPartial($.quotedStatus):void 0,Q}};function ED(){return{}}var H9={encode($,Q=new H){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??ED();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 H9.fromPartial($??{})},fromPartial($){let Q=ED();return Q.campaignId=$.campaignId??void 0,Q.campaignExpirationTimestamp=$.campaignExpirationTimestamp??void 0,Q}};function MD(){return{}}var G9={encode($,Q=new H){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??MD();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 G9.fromPartial($??{})},fromPartial($){let Q=MD();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 WD(){return{}}var b={encode($,Q=new H){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??WD();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 b.fromPartial($??{})},fromPartial($){let Q=WD();return Q.payload=$.payload??void 0,Q.version=$.version??void 0,Q}};function SD(){return{}}var f$={encode($,Q=new H){if($.index!==void 0)Q.uint32(10).bytes($.index);if($.value!==void 0)_$.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??SD();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=_$.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 f$.fromPartial($??{})},fromPartial($){let Q=SD();return Q.index=$.index??void 0,Q.value=$.value!==void 0&&$.value!==null?_$.fromPartial($.value):void 0,Q.padding=$.padding??void 0,Q.version=$.version??void 0,Q}};function ID(){return{}}var _$={encode($,Q=new H){if($.timestamp!==void 0)Q.uint32(8).int64($.timestamp);if($.starAction!==void 0)M6.encode($.starAction,Q.uint32(18).fork()).join();if($.contactAction!==void 0)T9.encode($.contactAction,Q.uint32(26).fork()).join();if($.muteAction!==void 0)K6.encode($.muteAction,Q.uint32(34).fork()).join();if($.pinAction!==void 0)C6.encode($.pinAction,Q.uint32(42).fork()).join();if($.pushNameSetting!==void 0)B6.encode($.pushNameSetting,Q.uint32(58).fork()).join();if($.quickReplyAction!==void 0)R6.encode($.quickReplyAction,Q.uint32(66).fork()).join();if($.recentEmojiWeightsAction!==void 0)O6.encode($.recentEmojiWeightsAction,Q.uint32(90).fork()).join();if($.labelEditAction!==void 0)i9.encode($.labelEditAction,Q.uint32(114).fork()).join();if($.labelAssociationAction!==void 0)o9.encode($.labelAssociationAction,Q.uint32(122).fork()).join();if($.localeSetting!==void 0)t9.encode($.localeSetting,Q.uint32(130).fork()).join();if($.archiveChatAction!==void 0)D9.encode($.archiveChatAction,Q.uint32(138).fork()).join();if($.deleteMessageForMeAction!==void 0)u9.encode($.deleteMessageForMeAction,Q.uint32(146).fork()).join();if($.keyExpiration!==void 0)b9.encode($.keyExpiration,Q.uint32(154).fork()).join();if($.markChatAsReadAction!==void 0)e9.encode($.markChatAsReadAction,Q.uint32(162).fork()).join();if($.clearChatAction!==void 0)S9.encode($.clearChatAction,Q.uint32(170).fork()).join();if($.deleteChatAction!==void 0)l9.encode($.deleteChatAction,Q.uint32(178).fork()).join();if($.unarchiveChatsSetting!==void 0)u6.encode($.unarchiveChatsSetting,Q.uint32(186).fork()).join();if($.primaryFeature!==void 0)D6.encode($.primaryFeature,Q.uint32(194).fork()).join();if($.androidUnsupportedActions!==void 0)P9.encode($.androidUnsupportedActions,Q.uint32(210).fork()).join();if($.agentAction!==void 0)U9.encode($.agentAction,Q.uint32(218).fork()).join();if($.subscriptionAction!==void 0)T6.encode($.subscriptionAction,Q.uint32(226).fork()).join();if($.userStatusMuteAction!==void 0)w6.encode($.userStatusMuteAction,Q.uint32(234).fork()).join();if($.timeFormatAction!==void 0)l6.encode($.timeFormatAction,Q.uint32(242).fork()).join();if($.nuxAction!==void 0)z6.encode($.nuxAction,Q.uint32(250).fork()).join();if($.primaryVersionAction!==void 0)F6.encode($.primaryVersionAction,Q.uint32(258).fork()).join();if($.stickerAction!==void 0)E$.encode($.stickerAction,Q.uint32(266).fork()).join();if($.removeRecentStickerAction!==void 0)A6.encode($.removeRecentStickerAction,Q.uint32(274).fork()).join();if($.chatAssignment!==void 0)M9.encode($.chatAssignment,Q.uint32(282).fork()).join();if($.chatAssignmentOpenedStatus!==void 0)W9.encode($.chatAssignmentOpenedStatus,Q.uint32(290).fork()).join();if($.pnForLidChatAction!==void 0)P6.encode($.pnForLidChatAction,Q.uint32(298).fork()).join();if($.marketingMessageAction!==void 0)$6.encode($.marketingMessageAction,Q.uint32(306).fork()).join();if($.marketingMessageBroadcastAction!==void 0)Q6.encode($.marketingMessageBroadcastAction,Q.uint32(314).fork()).join();if($.externalWebBetaAction!==void 0)j9.encode($.externalWebBetaAction,Q.uint32(322).fork()).join();if($.privacySettingRelayAllCalls!==void 0)k6.encode($.privacySettingRelayAllCalls,Q.uint32(330).fork()).join();if($.callLogAction!==void 0)E9.encode($.callLogAction,Q.uint32(338).fork()).join();if($.ugcBot!==void 0)p6.encode($.ugcBot,Q.uint32(346).fork()).join();if($.statusPrivacy!==void 0)S6.encode($.statusPrivacy,Q.uint32(354).fork()).join();if($.botWelcomeRequestAction!==void 0)k9.encode($.botWelcomeRequestAction,Q.uint32(362).fork()).join();if($.deleteIndividualCallLog!==void 0)p9.encode($.deleteIndividualCallLog,Q.uint32(370).fork()).join();if($.labelReorderingAction!==void 0)m9.encode($.labelReorderingAction,Q.uint32(378).fork()).join();if($.paymentInfoAction!==void 0)G6.encode($.paymentInfoAction,Q.uint32(386).fork()).join();if($.customPaymentMethodsAction!==void 0)_9.encode($.customPaymentMethodsAction,Q.uint32(394).fork()).join();if($.lockChatAction!==void 0)a9.encode($.lockChatAction,Q.uint32(402).fork()).join();if($.chatLockSettings!==void 0)Q$.encode($.chatLockSettings,Q.uint32(410).fork()).join();if($.wamoUserIdentifierAction!==void 0)b6.encode($.wamoUserIdentifierAction,Q.uint32(418).fork()).join();if($.privacySettingDisableLinkPreviewsAction!==void 0)x6.encode($.privacySettingDisableLinkPreviewsAction,Q.uint32(426).fork()).join();if($.deviceCapabilities!==void 0)j0.encode($.deviceCapabilities,Q.uint32(434).fork()).join();if($.noteEditAction!==void 0)Y6.encode($.noteEditAction,Q.uint32(442).fork()).join();if($.favoritesAction!==void 0)d9.encode($.favoritesAction,Q.uint32(450).fork()).join();if($.merchantPaymentPartnerAction!==void 0)Z6.encode($.merchantPaymentPartnerAction,Q.uint32(458).fork()).join();if($.waffleAccountLinkStateAction!==void 0)n6.encode($.waffleAccountLinkStateAction,Q.uint32(466).fork()).join();if($.usernameChatStartMode!==void 0)j6.encode($.usernameChatStartMode,Q.uint32(474).fork()).join();if($.notificationActivitySettingAction!==void 0)V6.encode($.notificationActivitySettingAction,Q.uint32(482).fork()).join();if($.lidContactAction!==void 0)r9.encode($.lidContactAction,Q.uint32(490).fork()).join();if($.ctwaPerCustomerDataSharingAction!==void 0)y9.encode($.ctwaPerCustomerDataSharingAction,Q.uint32(498).fork()).join();if($.paymentTosAction!==void 0)U6.encode($.paymentTosAction,Q.uint32(506).fork()).join();if($.privacySettingChannelsPersonalisedRecommendationAction!==void 0)L6.encode($.privacySettingChannelsPersonalisedRecommendationAction,Q.uint32(514).fork()).join();if($.detectedOutcomesStatusAction!==void 0)w9.encode($.detectedOutcomesStatusAction,Q.uint32(530).fork()).join();if($.maibaAiFeaturesControlAction!==void 0)s9.encode($.maibaAiFeaturesControlAction,Q.uint32(546).fork()).join();if($.businessBroadcastListAction!==void 0)A9.encode($.businessBroadcastListAction,Q.uint32(554).fork()).join();if($.musicUserIdAction!==void 0)J6.encode($.musicUserIdAction,Q.uint32(562).fork()).join();if($.statusPostOptInNotificationPreferencesAction!==void 0)W6.encode($.statusPostOptInNotificationPreferencesAction,Q.uint32(570).fork()).join();if($.avatarUpdatedAction!==void 0)L9.encode($.avatarUpdatedAction,Q.uint32(578).fork()).join();if($.privateProcessingSettingAction!==void 0)N6.encode($.privateProcessingSettingAction,Q.uint32(594).fork()).join();if($.newsletterSavedInterestsAction!==void 0)X6.encode($.newsletterSavedInterestsAction,Q.uint32(602).fork()).join();if($.aiThreadRenameAction!==void 0)C9.encode($.aiThreadRenameAction,Q.uint32(610).fork()).join();if($.interactiveMessageAction!==void 0)n9.encode($.interactiveMessageAction,Q.uint32(618).fork()).join();if($.settingsSyncAction!==void 0)E6.encode($.settingsSyncAction,Q.uint32(626).fork()).join();if($.outContactAction!==void 0)H6.encode($.outContactAction,Q.uint32(634).fork()).join();if($.nctSaltSyncAction!==void 0)q6.encode($.nctSaltSyncAction,Q.uint32(642).fork()).join();if($.businessBroadcastCampaignAction!==void 0)R9.encode($.businessBroadcastCampaignAction,Q.uint32(650).fork()).join();if($.businessBroadcastInsightsAction!==void 0)O9.encode($.businessBroadcastInsightsAction,Q.uint32(658).fork()).join();if($.customerDataAction!==void 0)h9.encode($.customerDataAction,Q.uint32(666).fork()).join();if($.subscriptionsSyncV2Action!==void 0)y6.encode($.subscriptionsSyncV2Action,Q.uint32(674).fork()).join();if($.threadPinAction!==void 0)h6.encode($.threadPinAction,Q.uint32(682).fork()).join();if($.autoOrganizeBusinessChatSetting!==void 0)F9.encode($.autoOrganizeBusinessChatSetting,Q.uint32(690).fork()).join();if($.bizAiSettingsNudgeAction!==void 0)x9.encode($.bizAiSettingsNudgeAction,Q.uint32(698).fork()).join();if($.coexV2VersionAction!==void 0)I9.encode($.coexV2VersionAction,Q.uint32(706).fork()).join();if($.wasaRootSecretAction!==void 0)d6.encode($.wasaRootSecretAction,Q.uint32(714).fork()).join();if($.bubbleLockMessageAction!==void 0)B9.encode($.bubbleLockMessageAction,Q.uint32(722).fork()).join();if($.labelSublistAction!==void 0)g9.encode($.labelSublistAction,Q.uint32(730).fork()).join();if($.deviceCapabilitiesV2!==void 0)j0.encode($.deviceCapabilitiesV2,Q.uint32(738).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!==8)break;K.timestamp=Z.int64Value();continue}case 2:{if(J!==18)break;K.starAction=M6.decode(Z,Z.uint32(),K.starAction);continue}case 3:{if(J!==26)break;K.contactAction=T9.decode(Z,Z.uint32(),K.contactAction);continue}case 4:{if(J!==34)break;K.muteAction=K6.decode(Z,Z.uint32(),K.muteAction);continue}case 5:{if(J!==42)break;K.pinAction=C6.decode(Z,Z.uint32(),K.pinAction);continue}case 7:{if(J!==58)break;K.pushNameSetting=B6.decode(Z,Z.uint32(),K.pushNameSetting);continue}case 8:{if(J!==66)break;K.quickReplyAction=R6.decode(Z,Z.uint32(),K.quickReplyAction);continue}case 11:{if(J!==90)break;K.recentEmojiWeightsAction=O6.decode(Z,Z.uint32(),K.recentEmojiWeightsAction);continue}case 14:{if(J!==114)break;K.labelEditAction=i9.decode(Z,Z.uint32(),K.labelEditAction);continue}case 15:{if(J!==122)break;K.labelAssociationAction=o9.decode(Z,Z.uint32(),K.labelAssociationAction);continue}case 16:{if(J!==130)break;K.localeSetting=t9.decode(Z,Z.uint32(),K.localeSetting);continue}case 17:{if(J!==138)break;K.archiveChatAction=D9.decode(Z,Z.uint32(),K.archiveChatAction);continue}case 18:{if(J!==146)break;K.deleteMessageForMeAction=u9.decode(Z,Z.uint32(),K.deleteMessageForMeAction);continue}case 19:{if(J!==154)break;K.keyExpiration=b9.decode(Z,Z.uint32(),K.keyExpiration);continue}case 20:{if(J!==162)break;K.markChatAsReadAction=e9.decode(Z,Z.uint32(),K.markChatAsReadAction);continue}case 21:{if(J!==170)break;K.clearChatAction=S9.decode(Z,Z.uint32(),K.clearChatAction);continue}case 22:{if(J!==178)break;K.deleteChatAction=l9.decode(Z,Z.uint32(),K.deleteChatAction);continue}case 23:{if(J!==186)break;K.unarchiveChatsSetting=u6.decode(Z,Z.uint32(),K.unarchiveChatsSetting);continue}case 24:{if(J!==194)break;K.primaryFeature=D6.decode(Z,Z.uint32(),K.primaryFeature);continue}case 26:{if(J!==210)break;K.androidUnsupportedActions=P9.decode(Z,Z.uint32(),K.androidUnsupportedActions);continue}case 27:{if(J!==218)break;K.agentAction=U9.decode(Z,Z.uint32(),K.agentAction);continue}case 28:{if(J!==226)break;K.subscriptionAction=T6.decode(Z,Z.uint32(),K.subscriptionAction);continue}case 29:{if(J!==234)break;K.userStatusMuteAction=w6.decode(Z,Z.uint32(),K.userStatusMuteAction);continue}case 30:{if(J!==242)break;K.timeFormatAction=l6.decode(Z,Z.uint32(),K.timeFormatAction);continue}case 31:{if(J!==250)break;K.nuxAction=z6.decode(Z,Z.uint32(),K.nuxAction);continue}case 32:{if(J!==258)break;K.primaryVersionAction=F6.decode(Z,Z.uint32(),K.primaryVersionAction);continue}case 33:{if(J!==266)break;K.stickerAction=E$.decode(Z,Z.uint32(),K.stickerAction);continue}case 34:{if(J!==274)break;K.removeRecentStickerAction=A6.decode(Z,Z.uint32(),K.removeRecentStickerAction);continue}case 35:{if(J!==282)break;K.chatAssignment=M9.decode(Z,Z.uint32(),K.chatAssignment);continue}case 36:{if(J!==290)break;K.chatAssignmentOpenedStatus=W9.decode(Z,Z.uint32(),K.chatAssignmentOpenedStatus);continue}case 37:{if(J!==298)break;K.pnForLidChatAction=P6.decode(Z,Z.uint32(),K.pnForLidChatAction);continue}case 38:{if(J!==306)break;K.marketingMessageAction=$6.decode(Z,Z.uint32(),K.marketingMessageAction);continue}case 39:{if(J!==314)break;K.marketingMessageBroadcastAction=Q6.decode(Z,Z.uint32(),K.marketingMessageBroadcastAction);continue}case 40:{if(J!==322)break;K.externalWebBetaAction=j9.decode(Z,Z.uint32(),K.externalWebBetaAction);continue}case 41:{if(J!==330)break;K.privacySettingRelayAllCalls=k6.decode(Z,Z.uint32(),K.privacySettingRelayAllCalls);continue}case 42:{if(J!==338)break;K.callLogAction=E9.decode(Z,Z.uint32(),K.callLogAction);continue}case 43:{if(J!==346)break;K.ugcBot=p6.decode(Z,Z.uint32(),K.ugcBot);continue}case 44:{if(J!==354)break;K.statusPrivacy=S6.decode(Z,Z.uint32(),K.statusPrivacy);continue}case 45:{if(J!==362)break;K.botWelcomeRequestAction=k9.decode(Z,Z.uint32(),K.botWelcomeRequestAction);continue}case 46:{if(J!==370)break;K.deleteIndividualCallLog=p9.decode(Z,Z.uint32(),K.deleteIndividualCallLog);continue}case 47:{if(J!==378)break;K.labelReorderingAction=m9.decode(Z,Z.uint32(),K.labelReorderingAction);continue}case 48:{if(J!==386)break;K.paymentInfoAction=G6.decode(Z,Z.uint32(),K.paymentInfoAction);continue}case 49:{if(J!==394)break;K.customPaymentMethodsAction=_9.decode(Z,Z.uint32(),K.customPaymentMethodsAction);continue}case 50:{if(J!==402)break;K.lockChatAction=a9.decode(Z,Z.uint32(),K.lockChatAction);continue}case 51:{if(J!==410)break;K.chatLockSettings=Q$.decode(Z,Z.uint32(),K.chatLockSettings);continue}case 52:{if(J!==418)break;K.wamoUserIdentifierAction=b6.decode(Z,Z.uint32(),K.wamoUserIdentifierAction);continue}case 53:{if(J!==426)break;K.privacySettingDisableLinkPreviewsAction=x6.decode(Z,Z.uint32(),K.privacySettingDisableLinkPreviewsAction);continue}case 54:{if(J!==434)break;K.deviceCapabilities=j0.decode(Z,Z.uint32(),K.deviceCapabilities);continue}case 55:{if(J!==442)break;K.noteEditAction=Y6.decode(Z,Z.uint32(),K.noteEditAction);continue}case 56:{if(J!==450)break;K.favoritesAction=d9.decode(Z,Z.uint32(),K.favoritesAction);continue}case 57:{if(J!==458)break;K.merchantPaymentPartnerAction=Z6.decode(Z,Z.uint32(),K.merchantPaymentPartnerAction);continue}case 58:{if(J!==466)break;K.waffleAccountLinkStateAction=n6.decode(Z,Z.uint32(),K.waffleAccountLinkStateAction);continue}case 59:{if(J!==474)break;K.usernameChatStartMode=j6.decode(Z,Z.uint32(),K.usernameChatStartMode);continue}case 60:{if(J!==482)break;K.notificationActivitySettingAction=V6.decode(Z,Z.uint32(),K.notificationActivitySettingAction);continue}case 61:{if(J!==490)break;K.lidContactAction=r9.decode(Z,Z.uint32(),K.lidContactAction);continue}case 62:{if(J!==498)break;K.ctwaPerCustomerDataSharingAction=y9.decode(Z,Z.uint32(),K.ctwaPerCustomerDataSharingAction);continue}case 63:{if(J!==506)break;K.paymentTosAction=U6.decode(Z,Z.uint32(),K.paymentTosAction);continue}case 64:{if(J!==514)break;K.privacySettingChannelsPersonalisedRecommendationAction=L6.decode(Z,Z.uint32(),K.privacySettingChannelsPersonalisedRecommendationAction);continue}case 66:{if(J!==530)break;K.detectedOutcomesStatusAction=w9.decode(Z,Z.uint32(),K.detectedOutcomesStatusAction);continue}case 68:{if(J!==546)break;K.maibaAiFeaturesControlAction=s9.decode(Z,Z.uint32(),K.maibaAiFeaturesControlAction);continue}case 69:{if(J!==554)break;K.businessBroadcastListAction=A9.decode(Z,Z.uint32(),K.businessBroadcastListAction);continue}case 70:{if(J!==562)break;K.musicUserIdAction=J6.decode(Z,Z.uint32(),K.musicUserIdAction);continue}case 71:{if(J!==570)break;K.statusPostOptInNotificationPreferencesAction=W6.decode(Z,Z.uint32(),K.statusPostOptInNotificationPreferencesAction);continue}case 72:{if(J!==578)break;K.avatarUpdatedAction=L9.decode(Z,Z.uint32(),K.avatarUpdatedAction);continue}case 74:{if(J!==594)break;K.privateProcessingSettingAction=N6.decode(Z,Z.uint32(),K.privateProcessingSettingAction);continue}case 75:{if(J!==602)break;K.newsletterSavedInterestsAction=X6.decode(Z,Z.uint32(),K.newsletterSavedInterestsAction);continue}case 76:{if(J!==610)break;K.aiThreadRenameAction=C9.decode(Z,Z.uint32(),K.aiThreadRenameAction);continue}case 77:{if(J!==618)break;K.interactiveMessageAction=n9.decode(Z,Z.uint32(),K.interactiveMessageAction);continue}case 78:{if(J!==626)break;K.settingsSyncAction=E6.decode(Z,Z.uint32(),K.settingsSyncAction);continue}case 79:{if(J!==634)break;K.outContactAction=H6.decode(Z,Z.uint32(),K.outContactAction);continue}case 80:{if(J!==642)break;K.nctSaltSyncAction=q6.decode(Z,Z.uint32(),K.nctSaltSyncAction);continue}case 81:{if(J!==650)break;K.businessBroadcastCampaignAction=R9.decode(Z,Z.uint32(),K.businessBroadcastCampaignAction);continue}case 82:{if(J!==658)break;K.businessBroadcastInsightsAction=O9.decode(Z,Z.uint32(),K.businessBroadcastInsightsAction);continue}case 83:{if(J!==666)break;K.customerDataAction=h9.decode(Z,Z.uint32(),K.customerDataAction);continue}case 84:{if(J!==674)break;K.subscriptionsSyncV2Action=y6.decode(Z,Z.uint32(),K.subscriptionsSyncV2Action);continue}case 85:{if(J!==682)break;K.threadPinAction=h6.decode(Z,Z.uint32(),K.threadPinAction);continue}case 86:{if(J!==690)break;K.autoOrganizeBusinessChatSetting=F9.decode(Z,Z.uint32(),K.autoOrganizeBusinessChatSetting);continue}case 87:{if(J!==698)break;K.bizAiSettingsNudgeAction=x9.decode(Z,Z.uint32(),K.bizAiSettingsNudgeAction);continue}case 88:{if(J!==706)break;K.coexV2VersionAction=I9.decode(Z,Z.uint32(),K.coexV2VersionAction);continue}case 89:{if(J!==714)break;K.wasaRootSecretAction=d6.decode(Z,Z.uint32(),K.wasaRootSecretAction);continue}case 90:{if(J!==722)break;K.bubbleLockMessageAction=B9.decode(Z,Z.uint32(),K.bubbleLockMessageAction);continue}case 91:{if(J!==730)break;K.labelSublistAction=g9.decode(Z,Z.uint32(),K.labelSublistAction);continue}case 92:{if(J!==738)break;K.deviceCapabilitiesV2=j0.decode(Z,Z.uint32(),K.deviceCapabilitiesV2);continue}}if(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=ID();return Q.timestamp=$.timestamp??void 0,Q.starAction=$.starAction!==void 0&&$.starAction!==null?M6.fromPartial($.starAction):void 0,Q.contactAction=$.contactAction!==void 0&&$.contactAction!==null?T9.fromPartial($.contactAction):void 0,Q.muteAction=$.muteAction!==void 0&&$.muteAction!==null?K6.fromPartial($.muteAction):void 0,Q.pinAction=$.pinAction!==void 0&&$.pinAction!==null?C6.fromPartial($.pinAction):void 0,Q.pushNameSetting=$.pushNameSetting!==void 0&&$.pushNameSetting!==null?B6.fromPartial($.pushNameSetting):void 0,Q.quickReplyAction=$.quickReplyAction!==void 0&&$.quickReplyAction!==null?R6.fromPartial($.quickReplyAction):void 0,Q.recentEmojiWeightsAction=$.recentEmojiWeightsAction!==void 0&&$.recentEmojiWeightsAction!==null?O6.fromPartial($.recentEmojiWeightsAction):void 0,Q.labelEditAction=$.labelEditAction!==void 0&&$.labelEditAction!==null?i9.fromPartial($.labelEditAction):void 0,Q.labelAssociationAction=$.labelAssociationAction!==void 0&&$.labelAssociationAction!==null?o9.fromPartial($.labelAssociationAction):void 0,Q.localeSetting=$.localeSetting!==void 0&&$.localeSetting!==null?t9.fromPartial($.localeSetting):void 0,Q.archiveChatAction=$.archiveChatAction!==void 0&&$.archiveChatAction!==null?D9.fromPartial($.archiveChatAction):void 0,Q.deleteMessageForMeAction=$.deleteMessageForMeAction!==void 0&&$.deleteMessageForMeAction!==null?u9.fromPartial($.deleteMessageForMeAction):void 0,Q.keyExpiration=$.keyExpiration!==void 0&&$.keyExpiration!==null?b9.fromPartial($.keyExpiration):void 0,Q.markChatAsReadAction=$.markChatAsReadAction!==void 0&&$.markChatAsReadAction!==null?e9.fromPartial($.markChatAsReadAction):void 0,Q.clearChatAction=$.clearChatAction!==void 0&&$.clearChatAction!==null?S9.fromPartial($.clearChatAction):void 0,Q.deleteChatAction=$.deleteChatAction!==void 0&&$.deleteChatAction!==null?l9.fromPartial($.deleteChatAction):void 0,Q.unarchiveChatsSetting=$.unarchiveChatsSetting!==void 0&&$.unarchiveChatsSetting!==null?u6.fromPartial($.unarchiveChatsSetting):void 0,Q.primaryFeature=$.primaryFeature!==void 0&&$.primaryFeature!==null?D6.fromPartial($.primaryFeature):void 0,Q.androidUnsupportedActions=$.androidUnsupportedActions!==void 0&&$.androidUnsupportedActions!==null?P9.fromPartial($.androidUnsupportedActions):void 0,Q.agentAction=$.agentAction!==void 0&&$.agentAction!==null?U9.fromPartial($.agentAction):void 0,Q.subscriptionAction=$.subscriptionAction!==void 0&&$.subscriptionAction!==null?T6.fromPartial($.subscriptionAction):void 0,Q.userStatusMuteAction=$.userStatusMuteAction!==void 0&&$.userStatusMuteAction!==null?w6.fromPartial($.userStatusMuteAction):void 0,Q.timeFormatAction=$.timeFormatAction!==void 0&&$.timeFormatAction!==null?l6.fromPartial($.timeFormatAction):void 0,Q.nuxAction=$.nuxAction!==void 0&&$.nuxAction!==null?z6.fromPartial($.nuxAction):void 0,Q.primaryVersionAction=$.primaryVersionAction!==void 0&&$.primaryVersionAction!==null?F6.fromPartial($.primaryVersionAction):void 0,Q.stickerAction=$.stickerAction!==void 0&&$.stickerAction!==null?E$.fromPartial($.stickerAction):void 0,Q.removeRecentStickerAction=$.removeRecentStickerAction!==void 0&&$.removeRecentStickerAction!==null?A6.fromPartial($.removeRecentStickerAction):void 0,Q.chatAssignment=$.chatAssignment!==void 0&&$.chatAssignment!==null?M9.fromPartial($.chatAssignment):void 0,Q.chatAssignmentOpenedStatus=$.chatAssignmentOpenedStatus!==void 0&&$.chatAssignmentOpenedStatus!==null?W9.fromPartial($.chatAssignmentOpenedStatus):void 0,Q.pnForLidChatAction=$.pnForLidChatAction!==void 0&&$.pnForLidChatAction!==null?P6.fromPartial($.pnForLidChatAction):void 0,Q.marketingMessageAction=$.marketingMessageAction!==void 0&&$.marketingMessageAction!==null?$6.fromPartial($.marketingMessageAction):void 0,Q.marketingMessageBroadcastAction=$.marketingMessageBroadcastAction!==void 0&&$.marketingMessageBroadcastAction!==null?Q6.fromPartial($.marketingMessageBroadcastAction):void 0,Q.externalWebBetaAction=$.externalWebBetaAction!==void 0&&$.externalWebBetaAction!==null?j9.fromPartial($.externalWebBetaAction):void 0,Q.privacySettingRelayAllCalls=$.privacySettingRelayAllCalls!==void 0&&$.privacySettingRelayAllCalls!==null?k6.fromPartial($.privacySettingRelayAllCalls):void 0,Q.callLogAction=$.callLogAction!==void 0&&$.callLogAction!==null?E9.fromPartial($.callLogAction):void 0,Q.ugcBot=$.ugcBot!==void 0&&$.ugcBot!==null?p6.fromPartial($.ugcBot):void 0,Q.statusPrivacy=$.statusPrivacy!==void 0&&$.statusPrivacy!==null?S6.fromPartial($.statusPrivacy):void 0,Q.botWelcomeRequestAction=$.botWelcomeRequestAction!==void 0&&$.botWelcomeRequestAction!==null?k9.fromPartial($.botWelcomeRequestAction):void 0,Q.deleteIndividualCallLog=$.deleteIndividualCallLog!==void 0&&$.deleteIndividualCallLog!==null?p9.fromPartial($.deleteIndividualCallLog):void 0,Q.labelReorderingAction=$.labelReorderingAction!==void 0&&$.labelReorderingAction!==null?m9.fromPartial($.labelReorderingAction):void 0,Q.paymentInfoAction=$.paymentInfoAction!==void 0&&$.paymentInfoAction!==null?G6.fromPartial($.paymentInfoAction):void 0,Q.customPaymentMethodsAction=$.customPaymentMethodsAction!==void 0&&$.customPaymentMethodsAction!==null?_9.fromPartial($.customPaymentMethodsAction):void 0,Q.lockChatAction=$.lockChatAction!==void 0&&$.lockChatAction!==null?a9.fromPartial($.lockChatAction):void 0,Q.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?Q$.fromPartial($.chatLockSettings):void 0,Q.wamoUserIdentifierAction=$.wamoUserIdentifierAction!==void 0&&$.wamoUserIdentifierAction!==null?b6.fromPartial($.wamoUserIdentifierAction):void 0,Q.privacySettingDisableLinkPreviewsAction=$.privacySettingDisableLinkPreviewsAction!==void 0&&$.privacySettingDisableLinkPreviewsAction!==null?x6.fromPartial($.privacySettingDisableLinkPreviewsAction):void 0,Q.deviceCapabilities=$.deviceCapabilities!==void 0&&$.deviceCapabilities!==null?j0.fromPartial($.deviceCapabilities):void 0,Q.noteEditAction=$.noteEditAction!==void 0&&$.noteEditAction!==null?Y6.fromPartial($.noteEditAction):void 0,Q.favoritesAction=$.favoritesAction!==void 0&&$.favoritesAction!==null?d9.fromPartial($.favoritesAction):void 0,Q.merchantPaymentPartnerAction=$.merchantPaymentPartnerAction!==void 0&&$.merchantPaymentPartnerAction!==null?Z6.fromPartial($.merchantPaymentPartnerAction):void 0,Q.waffleAccountLinkStateAction=$.waffleAccountLinkStateAction!==void 0&&$.waffleAccountLinkStateAction!==null?n6.fromPartial($.waffleAccountLinkStateAction):void 0,Q.usernameChatStartMode=$.usernameChatStartMode!==void 0&&$.usernameChatStartMode!==null?j6.fromPartial($.usernameChatStartMode):void 0,Q.notificationActivitySettingAction=$.notificationActivitySettingAction!==void 0&&$.notificationActivitySettingAction!==null?V6.fromPartial($.notificationActivitySettingAction):void 0,Q.lidContactAction=$.lidContactAction!==void 0&&$.lidContactAction!==null?r9.fromPartial($.lidContactAction):void 0,Q.ctwaPerCustomerDataSharingAction=$.ctwaPerCustomerDataSharingAction!==void 0&&$.ctwaPerCustomerDataSharingAction!==null?y9.fromPartial($.ctwaPerCustomerDataSharingAction):void 0,Q.paymentTosAction=$.paymentTosAction!==void 0&&$.paymentTosAction!==null?U6.fromPartial($.paymentTosAction):void 0,Q.privacySettingChannelsPersonalisedRecommendationAction=$.privacySettingChannelsPersonalisedRecommendationAction!==void 0&&$.privacySettingChannelsPersonalisedRecommendationAction!==null?L6.fromPartial($.privacySettingChannelsPersonalisedRecommendationAction):void 0,Q.detectedOutcomesStatusAction=$.detectedOutcomesStatusAction!==void 0&&$.detectedOutcomesStatusAction!==null?w9.fromPartial($.detectedOutcomesStatusAction):void 0,Q.maibaAiFeaturesControlAction=$.maibaAiFeaturesControlAction!==void 0&&$.maibaAiFeaturesControlAction!==null?s9.fromPartial($.maibaAiFeaturesControlAction):void 0,Q.businessBroadcastListAction=$.businessBroadcastListAction!==void 0&&$.businessBroadcastListAction!==null?A9.fromPartial($.businessBroadcastListAction):void 0,Q.musicUserIdAction=$.musicUserIdAction!==void 0&&$.musicUserIdAction!==null?J6.fromPartial($.musicUserIdAction):void 0,Q.statusPostOptInNotificationPreferencesAction=$.statusPostOptInNotificationPreferencesAction!==void 0&&$.statusPostOptInNotificationPreferencesAction!==null?W6.fromPartial($.statusPostOptInNotificationPreferencesAction):void 0,Q.avatarUpdatedAction=$.avatarUpdatedAction!==void 0&&$.avatarUpdatedAction!==null?L9.fromPartial($.avatarUpdatedAction):void 0,Q.privateProcessingSettingAction=$.privateProcessingSettingAction!==void 0&&$.privateProcessingSettingAction!==null?N6.fromPartial($.privateProcessingSettingAction):void 0,Q.newsletterSavedInterestsAction=$.newsletterSavedInterestsAction!==void 0&&$.newsletterSavedInterestsAction!==null?X6.fromPartial($.newsletterSavedInterestsAction):void 0,Q.aiThreadRenameAction=$.aiThreadRenameAction!==void 0&&$.aiThreadRenameAction!==null?C9.fromPartial($.aiThreadRenameAction):void 0,Q.interactiveMessageAction=$.interactiveMessageAction!==void 0&&$.interactiveMessageAction!==null?n9.fromPartial($.interactiveMessageAction):void 0,Q.settingsSyncAction=$.settingsSyncAction!==void 0&&$.settingsSyncAction!==null?E6.fromPartial($.settingsSyncAction):void 0,Q.outContactAction=$.outContactAction!==void 0&&$.outContactAction!==null?H6.fromPartial($.outContactAction):void 0,Q.nctSaltSyncAction=$.nctSaltSyncAction!==void 0&&$.nctSaltSyncAction!==null?q6.fromPartial($.nctSaltSyncAction):void 0,Q.businessBroadcastCampaignAction=$.businessBroadcastCampaignAction!==void 0&&$.businessBroadcastCampaignAction!==null?R9.fromPartial($.businessBroadcastCampaignAction):void 0,Q.businessBroadcastInsightsAction=$.businessBroadcastInsightsAction!==void 0&&$.businessBroadcastInsightsAction!==null?O9.fromPartial($.businessBroadcastInsightsAction):void 0,Q.customerDataAction=$.customerDataAction!==void 0&&$.customerDataAction!==null?h9.fromPartial($.customerDataAction):void 0,Q.subscriptionsSyncV2Action=$.subscriptionsSyncV2Action!==void 0&&$.subscriptionsSyncV2Action!==null?y6.fromPartial($.subscriptionsSyncV2Action):void 0,Q.threadPinAction=$.threadPinAction!==void 0&&$.threadPinAction!==null?h6.fromPartial($.threadPinAction):void 0,Q.autoOrganizeBusinessChatSetting=$.autoOrganizeBusinessChatSetting!==void 0&&$.autoOrganizeBusinessChatSetting!==null?F9.fromPartial($.autoOrganizeBusinessChatSetting):void 0,Q.bizAiSettingsNudgeAction=$.bizAiSettingsNudgeAction!==void 0&&$.bizAiSettingsNudgeAction!==null?x9.fromPartial($.bizAiSettingsNudgeAction):void 0,Q.coexV2VersionAction=$.coexV2VersionAction!==void 0&&$.coexV2VersionAction!==null?I9.fromPartial($.coexV2VersionAction):void 0,Q.wasaRootSecretAction=$.wasaRootSecretAction!==void 0&&$.wasaRootSecretAction!==null?d6.fromPartial($.wasaRootSecretAction):void 0,Q.bubbleLockMessageAction=$.bubbleLockMessageAction!==void 0&&$.bubbleLockMessageAction!==null?B9.fromPartial($.bubbleLockMessageAction):void 0,Q.labelSublistAction=$.labelSublistAction!==void 0&&$.labelSublistAction!==null?g9.fromPartial($.labelSublistAction):void 0,Q.deviceCapabilitiesV2=$.deviceCapabilitiesV2!==void 0&&$.deviceCapabilitiesV2!==null?j0.fromPartial($.deviceCapabilitiesV2):void 0,Q}};function TD(){return{}}var U9={encode($,Q=new H){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??TD();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 U9.fromPartial($??{})},fromPartial($){let Q=TD();return Q.name=$.name??void 0,Q.deviceId=$.deviceId??void 0,Q.isDeleted=$.isDeleted??void 0,Q}};function yD(){return{}}var C9={encode($,Q=new H){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??yD();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 C9.fromPartial($??{})},fromPartial($){let Q=yD();return Q.newTitle=$.newTitle??void 0,Q}};function vD(){return{}}var P9={encode($,Q=new H){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??vD();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 P9.fromPartial($??{})},fromPartial($){let Q=vD();return Q.allowed=$.allowed??void 0,Q}};function fD(){return{}}var D9={encode($,Q=new H){if($.archived!==void 0)Q.uint32(8).bool($.archived);if($.messageRange!==void 0)Y0.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??fD();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=Y0.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 D9.fromPartial($??{})},fromPartial($){let Q=fD();return Q.archived=$.archived??void 0,Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Y0.fromPartial($.messageRange):void 0,Q}};function _D(){return{}}var F9={encode($,Q=new H){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??_D();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 F9.fromPartial($??{})},fromPartial($){let Q=_D();return Q.autoOrganize=$.autoOrganize??void 0,Q}};function hD(){return{}}var L9={encode($,Q=new H){if($.eventType!==void 0)Q.uint32(8).int32($.eventType);if($.recentAvatarStickers!==void 0&&$.recentAvatarStickers.length!==0)for(let q of $.recentAvatarStickers)E$.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!==8)break;K.eventType=Z.int32();continue}case 2:{if(J!==18)break;if(K.recentAvatarStickers===void 0)K.recentAvatarStickers=[];let V=E$.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 L9.fromPartial($??{})},fromPartial($){let Q=hD();return Q.eventType=$.eventType??void 0,Q.recentAvatarStickers=$.recentAvatarStickers?.map((q)=>E$.fromPartial(q))||void 0,Q}};function lD(){return{}}var x9={encode($,Q=new H){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??lD();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 x9.fromPartial($??{})},fromPartial($){let Q=lD();return Q.category=$.category??void 0,Q.version=$.version??void 0,Q.updatedAtMs=$.updatedAtMs??void 0,Q}};function pD(){return{}}var k9={encode($,Q=new H){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??pD();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 k9.fromPartial($??{})},fromPartial($){let Q=pD();return Q.isSent=$.isSent??void 0,Q}};function uD(){return{}}var N9={encode($,Q=new H){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??uD();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 N9.fromPartial($??{})},fromPartial($){let Q=uD();return Q.lidJid=$.lidJid??void 0,Q.pnJid=$.pnJid??void 0,Q}};function wD(){return{}}var B9={encode($,Q=new H){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??wD();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 B9.fromPartial($??{})},fromPartial($){let Q=wD();return Q.locked=$.locked??void 0,Q}};function jD(){return{}}var pR={encode($,Q=new H){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??jD();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 pR.fromPartial($??{})},fromPartial($){let Q=jD();return Q.deleted=$.deleted??void 0,Q}};function dD(){return{}}var R9={encode($,Q=new H){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??dD();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 R9.fromPartial($??{})},fromPartial($){let Q=dD();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 cD(){return{}}var O9={encode($,Q=new H){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??cD();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 O9.fromPartial($??{})},fromPartial($){let Q=cD();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 nD(){return{}}var A9={encode($,Q=new H){if($.deleted!==void 0)Q.uint32(8).bool($.deleted);if($.participants!==void 0&&$.participants.length!==0)for(let q of $.participants)N9.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??nD();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=N9.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 A9.fromPartial($??{})},fromPartial($){let Q=nD();return Q.deleted=$.deleted??void 0,Q.participants=$.participants?.map((q)=>N9.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 bD(){return{}}var E9={encode($,Q=new H){if($.callLogRecord!==void 0)$$.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??bD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.callLogRecord=$$.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 E9.fromPartial($??{})},fromPartial($){let Q=bD();return Q.callLogRecord=$.callLogRecord!==void 0&&$.callLogRecord!==null?$$.fromPartial($.callLogRecord):void 0,Q}};function oD(){return{}}var M9={encode($,Q=new H){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??oD();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 M9.fromPartial($??{})},fromPartial($){let Q=oD();return Q.deviceAgentId=$.deviceAgentId??void 0,Q}};function iD(){return{}}var W9={encode($,Q=new H){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??iD();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 W9.fromPartial($??{})},fromPartial($){let Q=iD();return Q.chatOpened=$.chatOpened??void 0,Q}};function mD(){return{}}var S9={encode($,Q=new H){if($.messageRange!==void 0)Y0.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??mD();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageRange=Y0.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 S9.fromPartial($??{})},fromPartial($){let Q=mD();return Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Y0.fromPartial($.messageRange):void 0,Q}};function gD(){return{}}var I9={encode($,Q=new H){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??gD();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 I9.fromPartial($??{})},fromPartial($){let Q=gD();return Q.version=$.version??void 0,Q}};function rD(){return{}}var T9={encode($,Q=new H){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??rD();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 T9.fromPartial($??{})},fromPartial($){let Q=rD();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 tD(){return{}}var y9={encode($,Q=new H){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??tD();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 y9.fromPartial($??{})},fromPartial($){let Q=tD();return Q.isCtwaPerCustomerDataSharingEnabled=$.isCtwaPerCustomerDataSharingEnabled??void 0,Q}};function aD(){return{}}var v9={encode($,Q=new H){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)f9.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??aD();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=f9.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 v9.fromPartial($??{})},fromPartial($){let Q=aD();return Q.credentialId=$.credentialId??void 0,Q.country=$.country??void 0,Q.type=$.type??void 0,Q.metadata=$.metadata?.map((q)=>f9.fromPartial(q))||void 0,Q}};function sD(){return{}}var f9={encode($,Q=new H){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??sD();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 f9.fromPartial($??{})},fromPartial($){let Q=sD();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function eD(){return{}}var _9={encode($,Q=new H){if($.customPaymentMethods!==void 0&&$.customPaymentMethods.length!==0)for(let q of $.customPaymentMethods)v9.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??eD();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=v9.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 _9.fromPartial($??{})},fromPartial($){let Q=eD();return Q.customPaymentMethods=$.customPaymentMethods?.map((q)=>v9.fromPartial(q))||void 0,Q}};function $F(){return{}}var h9={encode($,Q=new H){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??$F();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 h9.fromPartial($??{})},fromPartial($){let Q=$F();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 QF(){return{}}var l9={encode($,Q=new H){if($.messageRange!==void 0)Y0.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??QF();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageRange=Y0.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 l9.fromPartial($??{})},fromPartial($){let Q=QF();return Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Y0.fromPartial($.messageRange):void 0,Q}};function ZF(){return{}}var p9={encode($,Q=new H){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??ZF();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 p9.fromPartial($??{})},fromPartial($){let Q=ZF();return Q.peerJid=$.peerJid??void 0,Q.isIncoming=$.isIncoming??void 0,Q}};function JF(){return{}}var u9={encode($,Q=new H){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??JF();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 u9.fromPartial($??{})},fromPartial($){let Q=JF();return Q.deleteMedia=$.deleteMedia??void 0,Q.messageTimestamp=$.messageTimestamp??void 0,Q}};function KF(){return{}}var w9={encode($,Q=new H){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??KF();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 w9.fromPartial($??{})},fromPartial($){let Q=KF();return Q.isEnabled=$.isEnabled??void 0,Q}};function qF(){return{}}var j9={encode($,Q=new H){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??qF();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 j9.fromPartial($??{})},fromPartial($){let Q=qF();return Q.isOptIn=$.isOptIn??void 0,Q}};function XF(){return{}}var d9={encode($,Q=new H){if($.favorites!==void 0&&$.favorites.length!==0)for(let q of $.favorites)c9.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??XF();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=c9.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 d9.fromPartial($??{})},fromPartial($){let Q=XF();return Q.favorites=$.favorites?.map((q)=>c9.fromPartial(q))||void 0,Q}};function YF(){return{}}var c9={encode($,Q=new H){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??YF();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 c9.fromPartial($??{})},fromPartial($){let Q=YF();return Q.id=$.id??void 0,Q}};function VF(){return{}}var n9={encode($,Q=new H){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??VF();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 n9.fromPartial($??{})},fromPartial($){let Q=VF();return Q.type=$.type??void 0,Q.agmId=$.agmId??void 0,Q}};function zF(){return{}}var b9={encode($,Q=new H){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??zF();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 b9.fromPartial($??{})},fromPartial($){let Q=zF();return Q.expiredKeyEpoch=$.expiredKeyEpoch??void 0,Q}};function HF(){return{}}var o9={encode($,Q=new H){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??HF();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 o9.fromPartial($??{})},fromPartial($){let Q=HF();return Q.labeled=$.labeled??void 0,Q.modelMetaData=$.modelMetaData??void 0,Q}};function GF(){return{}}var i9={encode($,Q=new H){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??GF();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 i9.fromPartial($??{})},fromPartial($){let Q=GF();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 UF(){return{}}var m9={encode($,Q=new H){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??UF();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 m9.fromPartial($??{})},fromPartial($){let Q=UF();return Q.sortedLabelIds=$.sortedLabelIds?.map((q)=>q)||void 0,Q}};function CF(){return{}}var g9={encode($,Q=new H){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??CF();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 g9.fromPartial($??{})},fromPartial($){let Q=CF();return Q.subListId=$.subListId??void 0,Q}};function PF(){return{}}var r9={encode($,Q=new H){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??PF();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 r9.fromPartial($??{})},fromPartial($){let Q=PF();return Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q.username=$.username??void 0,Q}};function DF(){return{}}var t9={encode($,Q=new H){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??DF();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 t9.fromPartial($??{})},fromPartial($){let Q=DF();return Q.locale=$.locale??void 0,Q}};function FF(){return{}}var a9={encode($,Q=new H){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??FF();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 a9.fromPartial($??{})},fromPartial($){let Q=FF();return Q.locked=$.locked??void 0,Q}};function LF(){return{}}var s9={encode($,Q=new H){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??LF();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 s9.fromPartial($??{})},fromPartial($){let Q=LF();return Q.aiFeatureStatus=$.aiFeatureStatus??void 0,Q.aiReplyMode=$.aiReplyMode??void 0,Q}};function xF(){return{}}var e9={encode($,Q=new H){if($.read!==void 0)Q.uint32(8).bool($.read);if($.messageRange!==void 0)Y0.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??xF();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=Y0.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 e9.fromPartial($??{})},fromPartial($){let Q=xF();return Q.read=$.read??void 0,Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Y0.fromPartial($.messageRange):void 0,Q}};function kF(){return{}}var $6={encode($,Q=new H){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??kF();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 $6.fromPartial($??{})},fromPartial($){let Q=kF();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 NF(){return{}}var Q6={encode($,Q=new H){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??NF();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 Q6.fromPartial($??{})},fromPartial($){let Q=NF();return Q.repliedCount=$.repliedCount??void 0,Q}};function BF(){return{}}var Z6={encode($,Q=new H){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??BF();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 Z6.fromPartial($??{})},fromPartial($){let Q=BF();return Q.status=$.status??void 0,Q.country=$.country??void 0,Q.gatewayName=$.gatewayName??void 0,Q.credentialId=$.credentialId??void 0,Q}};function RF(){return{}}var J6={encode($,Q=new H){if($.musicUserId!==void 0)Q.uint32(10).string($.musicUserId);return globalThis.Object.entries($.musicUserIdMap||{}).forEach(([q,Z])=>{xY.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??RF();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=xY.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 J6.fromPartial($??{})},fromPartial($){let Q=RF();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 OF(){return{}}var xY={encode($,Q=new H){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??OF();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 xY.fromPartial($??{})},fromPartial($){let Q=OF();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function AF(){return{}}var K6={encode($,Q=new H){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??AF();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 K6.fromPartial($??{})},fromPartial($){let Q=AF();return Q.muted=$.muted??void 0,Q.muteEndTimestamp=$.muteEndTimestamp??void 0,Q.autoMuted=$.autoMuted??void 0,Q.muteEveryoneMentionEndTimestamp=$.muteEveryoneMentionEndTimestamp??void 0,Q}};function EF(){return{}}var q6={encode($,Q=new H){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??EF();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 q6.fromPartial($??{})},fromPartial($){let Q=EF();return Q.salt=$.salt??void 0,Q}};function MF(){return{}}var X6={encode($,Q=new H){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??MF();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 X6.fromPartial($??{})},fromPartial($){let Q=MF();return Q.newsletterSavedInterests=$.newsletterSavedInterests??void 0,Q}};function WF(){return{}}var Y6={encode($,Q=new H){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??WF();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 Y6.fromPartial($??{})},fromPartial($){let Q=WF();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 SF(){return{}}var V6={encode($,Q=new H){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??SF();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 V6.fromPartial($??{})},fromPartial($){let Q=SF();return Q.notificationActivitySetting=$.notificationActivitySetting??void 0,Q}};function IF(){return{}}var z6={encode($,Q=new H){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??IF();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 z6.fromPartial($??{})},fromPartial($){let Q=IF();return Q.acknowledged=$.acknowledged??void 0,Q}};function TF(){return{}}var H6={encode($,Q=new H){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??TF();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 H6.fromPartial($??{})},fromPartial($){let Q=TF();return Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q}};function yF(){return{}}var G6={encode($,Q=new H){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??yF();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 G6.fromPartial($??{})},fromPartial($){let Q=yF();return Q.cpi=$.cpi??void 0,Q}};function vF(){return{}}var U6={encode($,Q=new H){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??vF();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 U6.fromPartial($??{})},fromPartial($){let Q=vF();return Q.paymentNotice=$.paymentNotice??void 0,Q.accepted=$.accepted??void 0,Q}};function fF(){return{}}var C6={encode($,Q=new H){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??fF();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 C6.fromPartial($??{})},fromPartial($){let Q=fF();return Q.pinned=$.pinned??void 0,Q}};function _F(){return{}}var P6={encode($,Q=new H){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??_F();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 P6.fromPartial($??{})},fromPartial($){let Q=_F();return Q.pnJid=$.pnJid??void 0,Q}};function hF(){return{}}var D6={encode($,Q=new H){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??hF();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 D6.fromPartial($??{})},fromPartial($){let Q=hF();return Q.flags=$.flags?.map((q)=>q)||void 0,Q}};function lF(){return{}}var F6={encode($,Q=new H){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??lF();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 F6.fromPartial($??{})},fromPartial($){let Q=lF();return Q.version=$.version??void 0,Q}};function pF(){return{}}var L6={encode($,Q=new H){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??pF();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 L6.fromPartial($??{})},fromPartial($){let Q=pF();return Q.isUserOptedOut=$.isUserOptedOut??void 0,Q}};function uF(){return{}}var x6={encode($,Q=new H){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??uF();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 x6.fromPartial($??{})},fromPartial($){let Q=uF();return Q.isPreviewsDisabled=$.isPreviewsDisabled??void 0,Q}};function wF(){return{}}var k6={encode($,Q=new H){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??wF();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 k6.fromPartial($??{})},fromPartial($){let Q=wF();return Q.isEnabled=$.isEnabled??void 0,Q}};function jF(){return{}}var N6={encode($,Q=new H){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??jF();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 N6.fromPartial($??{})},fromPartial($){let Q=jF();return Q.privateProcessingStatus=$.privateProcessingStatus??void 0,Q}};function dF(){return{}}var B6={encode($,Q=new H){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??dF();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 B6.fromPartial($??{})},fromPartial($){let Q=dF();return Q.name=$.name??void 0,Q}};function cF(){return{}}var R6={encode($,Q=new H){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??cF();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 R6.fromPartial($??{})},fromPartial($){let Q=cF();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 nF(){return{}}var O6={encode($,Q=new H){if($.weights!==void 0&&$.weights.length!==0)for(let q of $.weights)jX.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??nF();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=jX.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 O6.fromPartial($??{})},fromPartial($){let Q=nF();return Q.weights=$.weights?.map((q)=>jX.fromPartial(q))||void 0,Q}};function bF(){return{}}var A6={encode($,Q=new H){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??bF();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 A6.fromPartial($??{})},fromPartial($){let Q=bF();return Q.lastStickerSentTs=$.lastStickerSentTs??void 0,Q}};function oF(){return{}}var E6={encode($,Q=new H){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??oF();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 E6.fromPartial($??{})},fromPartial($){let Q=oF();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 iF(){return{}}var M6={encode($,Q=new H){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??iF();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 M6.fromPartial($??{})},fromPartial($){let Q=iF();return Q.starred=$.starred??void 0,Q}};function mF(){return{}}var W6={encode($,Q=new H){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??mF();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 W6.fromPartial($??{})},fromPartial($){let Q=mF();return Q.enabled=$.enabled??void 0,Q}};function gF(){return{}}var S6={encode($,Q=new H){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)I6.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??gF();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=I6.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 S6.fromPartial($??{})},fromPartial($){let Q=gF();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)=>I6.fromPartial(q))||void 0,Q.modes=$.modes?.map((q)=>q)||void 0,Q}};function rF(){return{}}var I6={encode($,Q=new H){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??rF();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 I6.fromPartial($??{})},fromPartial($){let Q=rF();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 tF(){return{}}var E$={encode($,Q=new H){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??tF();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 E$.fromPartial($??{})},fromPartial($){let Q=tF();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 aF(){return{}}var T6={encode($,Q=new H){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??aF();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 T6.fromPartial($??{})},fromPartial($){let Q=aF();return Q.isDeactivated=$.isDeactivated??void 0,Q.isAutoRenewing=$.isAutoRenewing??void 0,Q.expirationDate=$.expirationDate??void 0,Q}};function sF(){return{}}var y6={encode($,Q=new H){if($.subscriptions!==void 0&&$.subscriptions.length!==0)for(let q of $.subscriptions)f6.encode(q,Q.uint32(10).fork()).join();if($.paidFeature!==void 0&&$.paidFeature.length!==0)for(let q of $.paidFeature)v6.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??sF();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=f6.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=v6.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 y6.fromPartial($??{})},fromPartial($){let Q=sF();return Q.subscriptions=$.subscriptions?.map((q)=>f6.fromPartial(q))||void 0,Q.paidFeature=$.paidFeature?.map((q)=>v6.fromPartial(q))||void 0,Q}};function eF(){return{}}var v6={encode($,Q=new H){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??eF();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 v6.fromPartial($??{})},fromPartial($){let Q=eF();return Q.name=$.name??void 0,Q.enabled=$.enabled??void 0,Q.limit=$.limit??void 0,Q.expirationTime=$.expirationTime??void 0,Q}};function $L(){return{}}var f6={encode($,Q=new H){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??$L();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 f6.fromPartial($??{})},fromPartial($){let Q=$L();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 QL(){return{}}var _6={encode($,Q=new H){if($.key!==void 0)k.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??QL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 _6.fromPartial($??{})},fromPartial($){let Q=QL();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.timestamp=$.timestamp??void 0,Q}};function ZL(){return{}}var Y0={encode($,Q=new H){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)_6.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??ZL();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=_6.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 Y0.fromPartial($??{})},fromPartial($){let Q=ZL();return Q.lastMessageTimestamp=$.lastMessageTimestamp??void 0,Q.lastSystemMessageTimestamp=$.lastSystemMessageTimestamp??void 0,Q.messages=$.messages?.map((q)=>_6.fromPartial(q))||void 0,Q}};function JL(){return{}}var h6={encode($,Q=new H){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??JL();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 h6.fromPartial($??{})},fromPartial($){let Q=JL();return Q.pinned=$.pinned??void 0,Q}};function KL(){return{}}var l6={encode($,Q=new H){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??KL();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 l6.fromPartial($??{})},fromPartial($){let Q=KL();return Q.isTwentyFourHourFormatEnabled=$.isTwentyFourHourFormatEnabled??void 0,Q}};function qL(){return{}}var p6={encode($,Q=new H){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??qL();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 p6.fromPartial($??{})},fromPartial($){let Q=qL();return Q.definition=$.definition??void 0,Q}};function XL(){return{}}var u6={encode($,Q=new H){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??XL();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 u6.fromPartial($??{})},fromPartial($){let Q=XL();return Q.unarchiveChats=$.unarchiveChats??void 0,Q}};function YL(){return{}}var w6={encode($,Q=new H){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??YL();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 w6.fromPartial($??{})},fromPartial($){let Q=YL();return Q.muted=$.muted??void 0,Q}};function VL(){return{}}var j6={encode($,Q=new H){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??VL();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 j6.fromPartial($??{})},fromPartial($){let Q=VL();return Q.chatStartMode=$.chatStartMode??void 0,Q}};function zL(){return{}}var d6={encode($,Q=new H){if($.secrets!==void 0&&$.secrets.length!==0)for(let q of $.secrets)c6.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??zL();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=c6.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 d6.fromPartial($??{})},fromPartial($){let Q=zL();return Q.secrets=$.secrets?.map((q)=>c6.fromPartial(q))||void 0,Q}};function HL(){return{}}var c6={encode($,Q=new H){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??HL();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 c6.fromPartial($??{})},fromPartial($){let Q=HL();return Q.id=$.id??void 0,Q.rootSecret=$.rootSecret??void 0,Q.epoch=$.epoch??void 0,Q.status=$.status??void 0,Q}};function GL(){return{}}var n6={encode($,Q=new H){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??GL();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 n6.fromPartial($??{})},fromPartial($){let Q=GL();return Q.linkState=$.linkState??void 0,Q}};function UL(){return{}}var b6={encode($,Q=new H){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??UL();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 b6.fromPartial($??{})},fromPartial($){let Q=UL();return Q.identifier=$.identifier??void 0,Q}};function CL(){return{}}var M$={encode($,Q=new H){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??CL();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 M$.fromPartial($??{})},fromPartial($){let Q=CL();return Q.blob=$.blob??void 0,Q}};function PL(){return{}}var y0={encode($,Q=new H){if($.operation!==void 0)Q.uint32(8).int32($.operation);if($.record!==void 0)v0.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??PL();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=v0.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 y0.fromPartial($??{})},fromPartial($){let Q=PL();return Q.operation=$.operation??void 0,Q.record=$.record!==void 0&&$.record!==null?v0.fromPartial($.record):void 0,Q}};function DL(){return{}}var _Y={encode($,Q=new H){if($.mutations!==void 0&&$.mutations.length!==0)for(let q of $.mutations)y0.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??DL();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=y0.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 _Y.fromPartial($??{})},fromPartial($){let Q=DL();return Q.mutations=$.mutations?.map((q)=>y0.fromPartial(q))||void 0,Q}};function FL(){return{}}var hY={encode($,Q=new H){if($.version!==void 0)E0.encode($.version,Q.uint32(10).fork()).join();if($.mutations!==void 0&&$.mutations.length!==0)for(let q of $.mutations)y0.encode(q,Q.uint32(18).fork()).join();if($.externalMutations!==void 0)v$.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)N0.encode($.keyId,Q.uint32(50).fork()).join();if($.exitCode!==void 0)y$.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??FL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=E0.decode(Z,Z.uint32(),K.version);continue}case 2:{if(J!==18)break;if(K.mutations===void 0)K.mutations=[];let V=y0.decode(Z,Z.uint32());if(V!==void 0)K.mutations.push(V);continue}case 3:{if(J!==26)break;K.externalMutations=v$.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=N0.decode(Z,Z.uint32(),K.keyId);continue}case 7:{if(J!==58)break;K.exitCode=y$.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 hY.fromPartial($??{})},fromPartial($){let Q=FL();return Q.version=$.version!==void 0&&$.version!==null?E0.fromPartial($.version):void 0,Q.mutations=$.mutations?.map((q)=>y0.fromPartial(q))||void 0,Q.externalMutations=$.externalMutations!==void 0&&$.externalMutations!==null?v$.fromPartial($.externalMutations):void 0,Q.snapshotMac=$.snapshotMac??void 0,Q.patchMac=$.patchMac??void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?N0.fromPartial($.keyId):void 0,Q.exitCode=$.exitCode!==void 0&&$.exitCode!==null?y$.fromPartial($.exitCode):void 0,Q.deviceIndex=$.deviceIndex??void 0,Q.clientDebugData=$.clientDebugData??void 0,Q}};function LL(){return{}}var o6={encode($,Q=new H){if($.value!==void 0)f$.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??LL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.value=f$.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 o6.fromPartial($??{})},fromPartial($){let Q=LL();return Q.value=$.value!==void 0&&$.value!==null?f$.fromPartial($.value):void 0,Q.keyId=$.keyId??void 0,Q.mac=$.mac??void 0,Q}};function xL(){return{}}var v0={encode($,Q=new H){if($.index!==void 0)M$.encode($.index,Q.uint32(10).fork()).join();if($.value!==void 0)W$.encode($.value,Q.uint32(18).fork()).join();if($.keyId!==void 0)N0.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??xL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.index=M$.decode(Z,Z.uint32(),K.index);continue}case 2:{if(J!==18)break;K.value=W$.decode(Z,Z.uint32(),K.value);continue}case 3:{if(J!==26)break;K.keyId=N0.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 v0.fromPartial($??{})},fromPartial($){let Q=xL();return Q.index=$.index!==void 0&&$.index!==null?M$.fromPartial($.index):void 0,Q.value=$.value!==void 0&&$.value!==null?W$.fromPartial($.value):void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?N0.fromPartial($.keyId):void 0,Q}};function kL(){return{}}var lY={encode($,Q=new H){if($.version!==void 0)E0.encode($.version,Q.uint32(10).fork()).join();if($.records!==void 0&&$.records.length!==0)for(let q of $.records)v0.encode(q,Q.uint32(18).fork()).join();if($.mac!==void 0)Q.uint32(26).bytes($.mac);if($.keyId!==void 0)N0.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??kL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=E0.decode(Z,Z.uint32(),K.version);continue}case 2:{if(J!==18)break;if(K.records===void 0)K.records=[];let V=v0.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=N0.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 lY.fromPartial($??{})},fromPartial($){let Q=kL();return Q.version=$.version!==void 0&&$.version!==null?E0.fromPartial($.version):void 0,Q.records=$.records?.map((q)=>v0.fromPartial(q))||void 0,Q.mac=$.mac??void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?N0.fromPartial($.keyId):void 0,Q}};function NL(){return{}}var uR={encode($,Q=new H){if($.version!==void 0)E0.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)o6.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??NL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=E0.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=o6.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 uR.fromPartial($??{})},fromPartial($){let Q=NL();return Q.version=$.version!==void 0&&$.version!==null?E0.fromPartial($.version):void 0,Q.collectionName=$.collectionName??void 0,Q.mutationRecords=$.mutationRecords?.map((q)=>o6.fromPartial(q))||void 0,Q.collectionLthash=$.collectionLthash??void 0,Q}};function BL(){return{}}var W$={encode($,Q=new H){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??BL();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=BL();return Q.blob=$.blob??void 0,Q}};function RL(){return{}}var E0={encode($,Q=new H){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??RL();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 E0.fromPartial($??{})},fromPartial($){let Q=RL();return Q.version=$.version??void 0,Q}};function OL(){return{}}var i6={encode($,Q=new H){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??OL();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 i6.fromPartial($??{})},fromPartial($){let Q=OL();return Q.title=$.title??void 0,Q.tapUrl=$.tapUrl??void 0,Q}};function AL(){return{}}var m6={encode($,Q=new H){if($.index!==void 0)Q.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)r6.encode($.quickReplyButton,Q.uint32(10).fork()).join();if($.urlButton!==void 0)t6.encode($.urlButton,Q.uint32(18).fork()).join();if($.callButton!==void 0)g6.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??AL();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=r6.decode(Z,Z.uint32(),K.quickReplyButton);continue}case 2:{if(J!==18)break;K.urlButton=t6.decode(Z,Z.uint32(),K.urlButton);continue}case 3:{if(J!==26)break;K.callButton=g6.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 m6.fromPartial($??{})},fromPartial($){let Q=AL();return Q.index=$.index??void 0,Q.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?r6.fromPartial($.quickReplyButton):void 0,Q.urlButton=$.urlButton!==void 0&&$.urlButton!==null?t6.fromPartial($.urlButton):void 0,Q.callButton=$.callButton!==void 0&&$.callButton!==null?g6.fromPartial($.callButton):void 0,Q}};function EL(){return{}}var g6={encode($,Q=new H){if($.displayText!==void 0)n.encode($.displayText,Q.uint32(10).fork()).join();if($.phoneNumber!==void 0)n.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??EL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=n.decode(Z,Z.uint32(),K.displayText);continue}case 2:{if(J!==18)break;K.phoneNumber=n.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 g6.fromPartial($??{})},fromPartial($){let Q=EL();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?n.fromPartial($.displayText):void 0,Q.phoneNumber=$.phoneNumber!==void 0&&$.phoneNumber!==null?n.fromPartial($.phoneNumber):void 0,Q}};function ML(){return{}}var r6={encode($,Q=new H){if($.displayText!==void 0)n.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??ML();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=n.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 r6.fromPartial($??{})},fromPartial($){let Q=ML();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?n.fromPartial($.displayText):void 0,Q.id=$.id??void 0,Q}};function WL(){return{}}var t6={encode($,Q=new H){if($.displayText!==void 0)n.encode($.displayText,Q.uint32(10).fork()).join();if($.url!==void 0)n.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??WL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=n.decode(Z,Z.uint32(),K.displayText);continue}case 2:{if(J!==18)break;K.url=n.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 t6.fromPartial($??{})},fromPartial($){let Q=WL();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?n.fromPartial($.displayText):void 0,Q.url=$.url!==void 0&&$.url!==null?n.fromPartial($.url):void 0,Q}};function SL(){return{}}var a6={encode($,Q=new H){if($.threadType!==void 0)Q.uint32(8).int32($.threadType);if($.threadKey!==void 0)k.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??SL();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=k.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 a6.fromPartial($??{})},fromPartial($){let Q=SL();return Q.threadType=$.threadType??void 0,Q.threadKey=$.threadKey!==void 0&&$.threadKey!==null?k.fromPartial($.threadKey):void 0,Q}};function IL(){return{}}var s6={encode($,Q=new H){if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)i.encode(q,Q.uint32(10).fork()).join();if($.parentMessage!==void 0)k.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??IL();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=i.decode(Z,Z.uint32());if(V!==void 0)K.messages.push(V);continue}case 2:{if(J!==18)break;K.parentMessage=k.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 s6.fromPartial($??{})},fromPartial($){let Q=IL();return Q.messages=$.messages?.map((q)=>i.fromPartial(q))||void 0,Q.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?k.fromPartial($.parentMessage):void 0,Q.associationType=$.associationType??void 0,Q}};function TL(){return{}}var e6={encode($,Q=new H){if($.messages!==void 0&&$.messages.length!==0)for(let q of $.messages)K0.encode(q,Q.uint32(10).fork()).join();if($.parentMessage!==void 0)k.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??TL();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=K0.decode(Z,Z.uint32());if(V!==void 0)K.messages.push(V);continue}case 2:{if(J!==18)break;K.parentMessage=k.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 e6.fromPartial($??{})},fromPartial($){let Q=TL();return Q.messages=$.messages?.map((q)=>K0.fromPartial(q))||void 0,Q.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?k.fromPartial($.parentMessage):void 0,Q}};function yL(){return{}}var S$={encode($,Q=new H){if($.urlTrackingMapElements!==void 0&&$.urlTrackingMapElements.length!==0)for(let q of $.urlTrackingMapElements)$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??yL();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=$Y.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 S$.fromPartial($??{})},fromPartial($){let Q=yL();return Q.urlTrackingMapElements=$.urlTrackingMapElements?.map((q)=>$Y.fromPartial(q))||void 0,Q}};function vL(){return{}}var $Y={encode($,Q=new H){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??vL();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 $Y.fromPartial($??{})},fromPartial($){let Q=vL();return Q.originalUrl=$.originalUrl??void 0,Q.unconsentedUsersUrl=$.unconsentedUsersUrl??void 0,Q.consentedUsersUrl=$.consentedUsersUrl??void 0,Q.cardIndex=$.cardIndex??void 0,Q}};function fL(){return{}}var QY={encode($,Q=new H){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)ZY.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??fL();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=ZY.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 QY.fromPartial($??{})},fromPartial($){let Q=fL();return Q.encoding=$.encoding??void 0,Q.transformer=$.transformer??void 0,Q.transformerArg=$.transformerArg?.map((q)=>ZY.fromPartial(q))||void 0,Q.transformedData=$.transformedData??void 0,Q}};function _L(){return{}}var ZY={encode($,Q=new H){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)JY.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??_L();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=JY.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 ZY.fromPartial($??{})},fromPartial($){let Q=_L();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?JY.fromPartial($.value):void 0,Q}};function hL(){return{}}var JY={encode($,Q=new H){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??hL();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 JY.fromPartial($??{})},fromPartial($){let Q=hL();return Q.asBlob=$.asBlob??void 0,Q.asUnsignedInteger=$.asUnsignedInteger??void 0,Q}};function lL(){return{}}var KY={encode($,Q=new H){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??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.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 KY.fromPartial($??{})},fromPartial($){let Q=lL();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 pL(){return{}}var f0={encode($,Q=new H){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??pL();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 f0.fromPartial($??{})},fromPartial($){let Q=pL();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q.serverSignature=$.serverSignature??void 0,Q}};function uL(){return{}}var pY={encode($,Q=new H){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)AK.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??uL();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=AK.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 pY.fromPartial($??{})},fromPartial($){let Q=uL();return Q.serial=$.serial??void 0,Q.issuer=$.issuer??void 0,Q.verifiedName=$.verifiedName??void 0,Q.localizedNames=$.localizedNames?.map((q)=>AK.fromPartial(q))||void 0,Q.issueTime=$.issueTime??void 0,Q}};function wL(){return{}}var qY={encode($,Q=new H){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)iJ.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??wL();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=iJ.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 qY.fromPartial($??{})},fromPartial($){let Q=wL();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?iJ.fromPartial($.encryptedSecretValues):void 0,Q}};function jL(){return{}}var L0={encode($,Q=new H){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??jL();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 L0.fromPartial($??{})},fromPartial($){let Q=jL();return Q.filename=$.filename??void 0,Q.opacity=$.opacity??void 0,Q.isGenAi=$.isGenAi??void 0,Q}};function dL(){return{}}var wR={encode($,Q=new H){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??dL();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 wR.fromPartial($??{})},fromPartial($){let Q=dL();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 cL(){return{}}var i={encode($,Q=new H){if($.key!==void 0)k.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)j.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)g0.encode($.paymentInfo,Q.uint32(234).fork()).join();if($.finalLiveLocation!==void 0)P$.encode($.finalLiveLocation,Q.uint32(242).fork()).join();if($.quotedPaymentInfo!==void 0)g0.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)c0.encode($.mediaData,Q.uint32(306).fork()).join();if($.photoChange!==void 0)MX.encode($.photoChange,Q.uint32(314).fork()).join();if($.userReceipt!==void 0&&$.userReceipt.length!==0)for(let q of $.userReceipt)KY.encode(q,Q.uint32(322).fork()).join();if($.reactions!==void 0&&$.reactions.length!==0)for(let q of $.reactions)wX.encode(q,Q.uint32(330).fork()).join();if($.quotedStickerData!==void 0)c0.encode($.quotedStickerData,Q.uint32(338).fork()).join();if($.futureproofData!==void 0)Q.uint32(346).bytes($.futureproofData);if($.statusPsa!==void 0)H9.encode($.statusPsa,Q.uint32(354).fork()).join();if($.pollUpdates!==void 0&&$.pollUpdates.length!==0)for(let q of $.pollUpdates)vX.encode(q,Q.uint32(362).fork()).join();if($.pollAdditionalMetadata!==void 0)IX.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)NK.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)WX.encode($.pinInChat,Q.uint32(434).fork()).join();if($.premiumMessageInfo!==void 0)fX.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)tZ.encode($.commentMetadata,Q.uint32(474).fork()).join();if($.eventResponses!==void 0&&$.eventResponses.length!==0)for(let q of $.eventResponses)rJ.encode(q,Q.uint32(490).fork()).join();if($.reportingTokenInfo!==void 0)dX.encode($.reportingTokenInfo,Q.uint32(498).fork()).join();if($.newsletterServerId!==void 0)Q.uint32(504).uint64($.newsletterServerId);if($.eventAdditionalMetadata!==void 0)gJ.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)k.encode($.targetMessageId,Q.uint32(538).fork()).join();if($.messageAddOns!==void 0&&$.messageAddOns.length!==0)for(let q of $.messageAddOns)DX.encode(q,Q.uint32(546).fork()).join();if($.statusMentionMessageInfo!==void 0)z9.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)uZ.encode(q,Q.uint32(578).fork()).join();if($.botTargetId!==void 0)Q.uint32(586).string($.botTargetId);if($.groupHistoryIndividualMessageInfo!==void 0)eJ.encode($.groupHistoryIndividualMessageInfo,Q.uint32(594).fork()).join();if($.groupHistoryBundleInfo!==void 0)sJ.encode($.groupHistoryBundleInfo,Q.uint32(602).fork()).join();if($.interactiveMessageAdditionalMetadata!==void 0)kK.encode($.interactiveMessageAdditionalMetadata,Q.uint32(610).fork()).join();if($.quarantinedMessage!==void 0)uX.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)oX.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??cL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32(),K.key);continue}case 2:{if(J!==18)break;K.message=j.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=g0.decode(Z,Z.uint32(),K.paymentInfo);continue}case 30:{if(J!==242)break;K.finalLiveLocation=P$.decode(Z,Z.uint32(),K.finalLiveLocation);continue}case 31:{if(J!==250)break;K.quotedPaymentInfo=g0.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=c0.decode(Z,Z.uint32(),K.mediaData);continue}case 39:{if(J!==314)break;K.photoChange=MX.decode(Z,Z.uint32(),K.photoChange);continue}case 40:{if(J!==322)break;if(K.userReceipt===void 0)K.userReceipt=[];let V=KY.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=wX.decode(Z,Z.uint32());if(V!==void 0)K.reactions.push(V);continue}case 42:{if(J!==338)break;K.quotedStickerData=c0.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=H9.decode(Z,Z.uint32(),K.statusPsa);continue}case 45:{if(J!==362)break;if(K.pollUpdates===void 0)K.pollUpdates=[];let V=vX.decode(Z,Z.uint32());if(V!==void 0)K.pollUpdates.push(V);continue}case 46:{if(J!==370)break;K.pollAdditionalMetadata=IX.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=NK.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=WX.decode(Z,Z.uint32(),K.pinInChat);continue}case 55:{if(J!==442)break;K.premiumMessageInfo=fX.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=tZ.decode(Z,Z.uint32(),K.commentMetadata);continue}case 61:{if(J!==490)break;if(K.eventResponses===void 0)K.eventResponses=[];let V=rJ.decode(Z,Z.uint32());if(V!==void 0)K.eventResponses.push(V);continue}case 62:{if(J!==498)break;K.reportingTokenInfo=dX.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=gJ.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=k.decode(Z,Z.uint32(),K.targetMessageId);continue}case 68:{if(J!==546)break;if(K.messageAddOns===void 0)K.messageAddOns=[];let V=DX.decode(Z,Z.uint32());if(V!==void 0)K.messageAddOns.push(V);continue}case 69:{if(J!==554)break;K.statusMentionMessageInfo=z9.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=uZ.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=eJ.decode(Z,Z.uint32(),K.groupHistoryIndividualMessageInfo);continue}case 75:{if(J!==602)break;K.groupHistoryBundleInfo=sJ.decode(Z,Z.uint32(),K.groupHistoryBundleInfo);continue}case 76:{if(J!==610)break;K.interactiveMessageAdditionalMetadata=kK.decode(Z,Z.uint32(),K.interactiveMessageAdditionalMetadata);continue}case 77:{if(J!==618)break;K.quarantinedMessage=uX.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=oX.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 i.fromPartial($??{})},fromPartial($){let Q=cL();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?j.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?g0.fromPartial($.paymentInfo):void 0,Q.finalLiveLocation=$.finalLiveLocation!==void 0&&$.finalLiveLocation!==null?P$.fromPartial($.finalLiveLocation):void 0,Q.quotedPaymentInfo=$.quotedPaymentInfo!==void 0&&$.quotedPaymentInfo!==null?g0.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?c0.fromPartial($.mediaData):void 0,Q.photoChange=$.photoChange!==void 0&&$.photoChange!==null?MX.fromPartial($.photoChange):void 0,Q.userReceipt=$.userReceipt?.map((q)=>KY.fromPartial(q))||void 0,Q.reactions=$.reactions?.map((q)=>wX.fromPartial(q))||void 0,Q.quotedStickerData=$.quotedStickerData!==void 0&&$.quotedStickerData!==null?c0.fromPartial($.quotedStickerData):void 0,Q.futureproofData=$.futureproofData??void 0,Q.statusPsa=$.statusPsa!==void 0&&$.statusPsa!==null?H9.fromPartial($.statusPsa):void 0,Q.pollUpdates=$.pollUpdates?.map((q)=>vX.fromPartial(q))||void 0,Q.pollAdditionalMetadata=$.pollAdditionalMetadata!==void 0&&$.pollAdditionalMetadata!==null?IX.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?NK.fromPartial($.keepInChat):void 0,Q.originalSelfAuthorUserJidString=$.originalSelfAuthorUserJidString??void 0,Q.revokeMessageTimestamp=$.revokeMessageTimestamp??void 0,Q.pinInChat=$.pinInChat!==void 0&&$.pinInChat!==null?WX.fromPartial($.pinInChat):void 0,Q.premiumMessageInfo=$.premiumMessageInfo!==void 0&&$.premiumMessageInfo!==null?fX.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?tZ.fromPartial($.commentMetadata):void 0,Q.eventResponses=$.eventResponses?.map((q)=>rJ.fromPartial(q))||void 0,Q.reportingTokenInfo=$.reportingTokenInfo!==void 0&&$.reportingTokenInfo!==null?dX.fromPartial($.reportingTokenInfo):void 0,Q.newsletterServerId=$.newsletterServerId??void 0,Q.eventAdditionalMetadata=$.eventAdditionalMetadata!==void 0&&$.eventAdditionalMetadata!==null?gJ.fromPartial($.eventAdditionalMetadata):void 0,Q.isMentionedInStatus=$.isMentionedInStatus??void 0,Q.statusMentions=$.statusMentions?.map((q)=>q)||void 0,Q.targetMessageId=$.targetMessageId!==void 0&&$.targetMessageId!==null?k.fromPartial($.targetMessageId):void 0,Q.messageAddOns=$.messageAddOns?.map((q)=>DX.fromPartial(q))||void 0,Q.statusMentionMessageInfo=$.statusMentionMessageInfo!==void 0&&$.statusMentionMessageInfo!==null?z9.fromPartial($.statusMentionMessageInfo):void 0,Q.isSupportAiMessage=$.isSupportAiMessage??void 0,Q.statusMentionSources=$.statusMentionSources?.map((q)=>q)||void 0,Q.supportAiCitations=$.supportAiCitations?.map((q)=>uZ.fromPartial(q))||void 0,Q.botTargetId=$.botTargetId??void 0,Q.groupHistoryIndividualMessageInfo=$.groupHistoryIndividualMessageInfo!==void 0&&$.groupHistoryIndividualMessageInfo!==null?eJ.fromPartial($.groupHistoryIndividualMessageInfo):void 0,Q.groupHistoryBundleInfo=$.groupHistoryBundleInfo!==void 0&&$.groupHistoryBundleInfo!==null?sJ.fromPartial($.groupHistoryBundleInfo):void 0,Q.interactiveMessageAdditionalMetadata=$.interactiveMessageAdditionalMetadata!==void 0&&$.interactiveMessageAdditionalMetadata!==null?kK.fromPartial($.interactiveMessageAdditionalMetadata):void 0,Q.quarantinedMessage=$.quarantinedMessage!==void 0&&$.quarantinedMessage!==null?uX.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?oX.fromPartial($.scheduledMessageMetadata):void 0,Q.decisionId=$.decisionId??void 0,Q.decisionSources=$.decisionSources?.map((q)=>q)||void 0,Q}};function nL(){return{}}var K0={encode($,Q=new H){if($.key!==void 0)k.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??nL();while(Z.pos<X){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.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 K0.fromPartial($??{})},fromPartial($){let Q=nL();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.messageBytes=$.messageBytes??void 0,Q}};function bL(){return{}}var jR={encode($,Q=new H){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)i.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??bL();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=i.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 jR.fromPartial($??{})},fromPartial($){let Q=bL();return Q.timestamp=$.timestamp??void 0,Q.unreadChats=$.unreadChats??void 0,Q.notifyMessageCount=$.notifyMessageCount??void 0,Q.notifyMessages=$.notifyMessages?.map((q)=>i.fromPartial(q))||void 0,Q}};var JA={Message:j,WebMessageInfo:i,HistorySync:SY,SyncActionData:f$,ClientPayload:EY,AdvSignedDeviceIdentity:NY,AdvSignedKeyIndexList:RY,AdvDeviceIdentity:kY,AdvSignedDeviceIdentityHmac:BY,HandshakeMessage:WY,SyncdRecord:v0,SyncdMutation:y0,SyncdMutations:_Y,SyncdPatch:hY,SyncdSnapshot:lY,ExitCode:y$,SyncActionValue:_$,DeviceProps:MY,SenderKeyDistributionMessage:yY,SenderKeyMessage:vY,ServerErrorReceipt:fY,CertChain:OY,"CertChain.NoiseCertificate":W0,"CertChain.NoiseCertificate.Details":AY,ExternalBlobReference:v$,LidMigrationMappingSyncPayload:IY,MediaRetryNotification:TY,VerifiedNameCertificate:f0,"VerifiedNameCertificate.Details":pY,"Message.PollVoteMessage":T0,"Message.EventResponseMessage":I0};var KA=XY;function YV($){let Q=JA[$];if(Q)return Q;let q=$.replace(/\./g,"_"),Z=KA[q];if(Z&&typeof Z==="object"&&"encode"in Z)return Z;throw Error(`unknown proto type: ${$}`)}function uY($){if($===null)return;if(DY($))return e$($);if(typeof $!=="object")return $;if(ArrayBuffer.isView($)||$ instanceof ArrayBuffer)return $;if(Array.isArray($)){let X;for(let K=0;K<$.length;K++){let J=uY($[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=uY(Q[K]);if(J!==void 0)X[K]=J}return X}let Z;for(let X in Q){let K=uY(Q[X]);if(K!==Q[X])(Z??={...Q})[X]=K}return Z??$}function XV($,Q,q){if(typeof $==="string"){let Z=PY($);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++)XV($[Z],`${Q}[${Z}]`,q);return}for(let[Z,X]of Object.entries($)){if(Q!==""){let K=PY(Z);if(K>=0)q.push({path:`${Q} (map key)`,index:K,codeUnit:Z.charCodeAt(K)})}XV(X,Q===""?Z:`${Q}.${Z}`,q)}}function qA($,Q){try{return $.fromPartial(Q)}catch{return Q}}function XA($,Q){let q=[];XV($,"",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 VV($,Q){let q=YV($),Z=uY(Q??{});try{return q.encode(Z).finish()}catch(X){if(X instanceof w$&&X.path===void 0){let K=XA(qA(q,Z),X);if(K!==void 0)throw new w$(X.index,X.codeUnit,K)}throw X}}function YA($,Q,q){let Z=YV($);if(q===void 0)return Z.decode(Q);let X=new $Q(Q),K=Z.decode(X,Q.length);return q.invalidUtf8Fields=X.invalidUtf8Fields,K}var dR=1;function VA($,Q,q,Z){if(q.length<dR)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-dR;for(let P=0;P<X;P++)if(q[P+1]<q[P])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=YV($),J=Z===void 0?new Y(Q):new $Q(Q),V=Array(X);for(let P=0;P<X;P++){let D=q[P],O=q[P+1];if(J.pos=D,V[P]=K.decode(J,O-D),J.pos!==O)throw RangeError("protobuf decoder did not consume the delimited entry")}if(Z!==void 0)Z.invalidUtf8Fields=J.invalidUtf8Fields;return V}var jY=new TextDecoder("utf-8",{ignoreBOM:!0}),YY=new TextEncoder;function zA($){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 d$=10,cR=0,nR=1,bR=2,oR=3,iR=4,mR=5,gR=6,rR=7,tR=8,aR=9,sR=1,eR=2,$O=4,QO=8,I$=24,ZO=0,JO=4,KO=8,qO=12,XO=16,YO=20;function HA($){return($.byteOffset+I$)%8===0?$:new Uint8Array($)}var wY=[];function GA($){let Q=HA($);if(Q.byteLength<I$)throw RangeError("message wire batch is shorter than its header");let q=new DataView(Q.buffer,Q.byteOffset,I$),Z=q.getUint32(ZO,!0),X=q.getUint32(JO,!0),K=q.getUint32(KO,!0),J=q.getUint32(qO,!0),V=q.getUint32(XO,!0),P=q.getUint32(YO,!0);if(V!==d$)throw RangeError(`message wire batch record width ${V} does not match the expected ${d$}`);let D=Z*V*8,O=(Z+1)*4,W=(X+1)*4,f=I$+D+O+W+K+J;if(Q.byteLength<f)throw RangeError(`message wire batch is truncated: ${Q.byteLength} bytes, expected ${f}`);let I=I$,S=new Float64Array(Q.buffer,Q.byteOffset+I,Z*V);I+=D;let p=new Uint32Array(Q.buffer,Q.byteOffset+I,Z+1);I+=O;let A=new Uint32Array(Q.buffer,Q.byteOffset+I,X+1);I+=W;let z0=Q.subarray(I,I+K);I+=K;let w=Q.subarray(I,I+J);if((P&1)!==0)wY.length=0;let c=A[X];if(c>J)throw RangeError("message wire batch string definitions run past its string region");for(let J0=0;J0<X;J0++)wY.push(jY.decode(w.subarray(A[J0],A[J0+1])));let $0=c,o=(J0)=>{let h=$0+J0;if(h>J)throw RangeError("message wire batch inline value runs past its string region");let h$=jY.decode(w.subarray($0,h));return $0=h,h$},l=(J0)=>J0===0?void 0:o(J0-1),{required:c$,optional:n$}=zA(wY),VY=Array(Z);for(let J0=0;J0<Z;J0++){let h=J0*V,h$=S[h+rR];VY[J0]={chat:c$(S[h+cR]),sender:c$(S[h+nR]),senderAlt:n$(S[h+bR]),recipientAlt:n$(S[h+oR]),isFromMe:(h$&sR)!==0,isGroup:(h$&eR)!==0,id:o(S[h+iR]),timestamp:S[h+gR],pushName:c$(S[h+mR]),isViewOnce:(h$&$O)!==0,isOffline:(h$&QO)!==0,unavailableRequestId:l(S[h+tR]),edit:n$(S[h+aR])}}if((P&2)!==0)wY.length=0;return{messageData:z0,messageOffsets:p,infos:VY}}class VO{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=(c)=>{let $0=this.cache.get(c);if($0!==void 0)return $0;let o=this.held+Q.length,l=YY.encode(c);return this.cache.set(c,o),this.cacheBytes+=l.byteLength,Q.push(l),o},X=(c)=>c===void 0?0:Z(c)+1,K=(c)=>{let $0=YY.encode(c);return q.push($0),$0.byteLength},J=(c)=>c===void 0?0:K(c)+1,V=new Float64Array($.length*d$),P=new Uint32Array($.length+1),D=0;for(let c=0;c<$.length;c++){let{payload:$0,info:o}=$[c];D+=$0.byteLength,P[c+1]=D;let l=c*d$;V[l+cR]=Z(o.chat),V[l+nR]=Z(o.sender),V[l+bR]=X(o.senderAlt),V[l+oR]=X(o.recipientAlt),V[l+mR]=Z(o.pushName),V[l+gR]=o.timestamp,V[l+aR]=X(o.edit),V[l+rR]=(o.isFromMe?sR:0)|(o.isGroup?eR:0)|(o.isViewOnce?$O:0)|(o.isOffline?QO:0),V[l+iR]=K(o.id),V[l+tR]=J(o.unavailableRequestId)}let O=new Uint32Array(Q.length+1),W=0;for(let c=0;c<Q.length;c++)W+=Q[c].byteLength,O[c+1]=W;let f=W;for(let c of q)f+=c.byteLength;let I=I$+V.byteLength+P.byteLength+O.byteLength+D+f,S=new Uint8Array(I),p=new DataView(S.buffer,0,I$);p.setUint32(ZO,$.length,!0),p.setUint32(JO,Q.length,!0),p.setUint32(KO,D,!0),p.setUint32(qO,f,!0),p.setUint32(XO,d$,!0);let A=this.cache.size>=4096||this.cacheBytes>=65536;p.setUint32(YO,this.flags|(A?2:0),!0);let z0=I$,w=(c)=>{S.set(c,z0),z0+=c.byteLength};w(new Uint8Array(V.buffer,V.byteOffset,V.byteLength)),w(new Uint8Array(P.buffer,P.byteOffset,P.byteLength)),w(new Uint8Array(O.buffer,O.byteOffset,O.byteLength));for(let{payload:c}of $)w(c);for(let c of Q)w(c);for(let c of q)w(c);if(this.held+=Q.length,this.flags=0,A)this.cache.clear(),this.held=0,this.cacheBytes=0,this.flags=1;return S}}function UA($){return new VO().encode($)}var dY=20,CA=100,zO=1,HO=2,GO=4,UO=8;class zV{strings=[];jids=[];view;bytes;cursor=0;inlineCursor=0;region="";regionUnits=0;regionIsAscii=!0;begin($){if(this.bytes=$,this.view=new DataView($.buffer,$.byteOffset,$.byteLength),$.byteLength<dY)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=dY,V=J;J+=q*4;let P=J;J+=Z*11;let D=J,O=$.byteLength-X;if(O<D)throw RangeError("packed batch regions overlap");this.readRegion(O,X);for(let W=0;W<q;W++){let f=V+W*4,I=this.view.getUint16(f,!0);this.strings[I]=this.take(this.view.getUint16(f+2,!0))}for(let W=0;W<Z;W++){let f=P+W*11,I=this.view.getUint16(f,!0),S=this.strings[this.view.getUint16(f+2,!0)],p=this.strings[this.view.getUint16(f+4,!0)];if(S===void 0||p===void 0)throw RangeError("packed jid references a missing string slot");this.jids[I]=Object.freeze({user:S,server:p,agent:this.view.getUint8(f+6),device:this.view.getUint16(f+7,!0),integrator:this.view.getUint16(f+9,!0)})}return this.cursor=D,Q}take($){let Q=this.inlineCursor;if(this.inlineCursor+=$,this.regionIsAscii)return this.region.substring(Q,this.inlineCursor);let q=this.region,Z=this.regionUnits,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.regionUnits=X,q.substring(Z,X)}readRegion($,Q){if(this.inlineCursor=0,this.regionUnits=0,this.region="",this.regionIsAscii=!0,Q===0)return;if(Q>=CA){this.region=jY.decode(this.bytes.subarray($,$+Q)),this.regionIsAscii=this.region.length===Q;return}let q="",Z=$,X=$+(Q/4|0)*4;while(Z<X){let K=this.view.getUint32(Z,!0);if((K&2155905152)!==0)break;q+=String.fromCharCode(K&255,K>>8&255,K>>16&255,K>>>24),Z+=4}if(Z===X)while(Z<$+Q){let K=this.view.getUint8(Z);if(K>=128)break;q+=String.fromCharCode(K),Z++}if(Z===$+Q){this.region=q;return}this.regionIsAscii=!1,this.region=jY.decode(this.bytes.subarray($,$+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.take($)}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 V0=new zV,j$=new zV;function PA($){let Q=V0.begin($),q=Array(Q);for(let Z=0;Z<Q;Z++){let X=V0.u8(),K=V0.jid(),J=V0.jid(),V=V0.jidOptional(),P=V0.jidOptional(),D=V0.jidOptional(),O=V0.jidOptional(),W=V0.strOptional(),f=V0.str(),I=V0.f64(),S=V0.u8(),p=Array(S);for(let A=0;A<S;A++)p[A]=V0.inline();q[Z]={source:{chat:K,sender:J,is_from_me:(X&zO)!==0,is_group:(X&HO)!==0,addressing_mode:W,sender_alt:V,recipient_alt:P,broadcast_list_owner:D,recipient:O},message_ids:p,timestamp:I,type:(X&UO)!==0?{Other:f}:f,offline:(X&GO)!==0}}return q}function DA($){let Q=j$.begin($),q=Array(Q);for(let Z=0;Z<Q;Z++){let X=j$.strOptional(),K=j$.jidOptional(),J=j$.strOptional(),V=j$.f64();q[Z]={id:j$.inline(),class:X,from:K,timestamp:Number.isNaN(V)?void 0:V,error:J}}return q}class HV{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,YY.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=YY.encode($).length;this.records.push(Q&255,Q>>8&255),this.inline.push($)}endRecord(){this.recordCount++}finish(){let $=YY.encode(this.definitions.join("")+this.inline.join("")),Q=dY+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=dY;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,P,D,O]of this.newJids)Z.setUint16(X,K,!0),Z.setUint16(X+2,J,!0),Z.setUint16(X+4,V,!0),Z.setUint8(X+6,P),Z.setUint16(X+7,D,!0),Z.setUint16(X+9,O,!0),X+=11;return q.set(this.records,X),X+=this.records.length,q.set($,X),q}}function FA($){let Q=new HV;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),P=Q.cacheJidOptional(q.source.broadcast_list_owner),D=Q.cacheJidOptional(q.source.recipient),O=Q.cacheStrOptional(q.source.addressing_mode),W=Q.cacheStr(typeof q.type==="string"?q.type:q.type.Other);Q.u8((q.source.is_from_me?zO:0)|(q.source.is_group?HO:0)|(q.offline?GO:0)|(Z?UO:0));for(let f of[X,K,J,V,P,D,O,W])Q.slot(f);Q.f64(q.timestamp),Q.u8(q.message_ids.length);for(let f of q.message_ids)Q.writeInline(f);Q.endRecord()}return Q.finish()}function LA($){let Q=new HV;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 xA=1,kA=2,NA=3,cY=8,nY=8;function BA($){if($.byteLength<cY)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=cY;for(let K=0;K<q;K++){if(X+nY>$.byteLength)throw RangeError("event wire envelope is truncated");let J=Q.getUint32(X,!0),V=Q.getUint32(X+4,!0);if(X+=nY,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 RA($){let Q=cY;for(let{batch:K}of $)Q=Q+nY+K.byteLength+7&-8;let q=new Uint8Array(Q),Z=new DataView(q.buffer);Z.setUint32(0,$.length,!0);let X=cY;for(let{kind:K,batch:J}of $)Z.setUint32(X,K,!0),Z.setUint32(X+4,J.byteLength,!0),X+=nY,q.set(J,X),X=X+J.byteLength+7&-8;return q}var UV=($)=>typeof $==="object"&&$!==null&&typeof $.encode==="function"&&typeof $.decode==="function",PO=($)=>typeof $==="object"&&$!==null&&!UV($);function OA(){return this}var CO=($)=>{if($&&typeof $==="object"&&!("toJSON"in $))Object.defineProperty($,"toJSON",{value:OA,enumerable:!1,writable:!0,configurable:!0})},AA=($,Q)=>({encode(q){return{finish(){return VV($,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 CO(K),K},create(q){return q||{}},fromObject(q){if(q&&typeof q==="object")CO(q);return q||{}},toObject(q){return q},fromPartial:Q.fromPartial?.bind(Q)??((q)=>q||{})}),EA=()=>({create($){return $||{}},fromObject($){return $||{}}}),GV="_",MA=".",WA="protobufPackage",SA={ADVKeyIndexList:"ADVSignedKeyIndexList"},IA=["Message","WebMessageInfo","ContextInfo","SyncActionValue"],TA=($,Q)=>$!==WA&&!$.startsWith(GV)&&typeof Q!=="function"&&(UV(Q)||PO(Q)),yA=($)=>{let Q=$.at(0);return Q!==void 0&&Q===Q.toUpperCase()&&Q!==Q.toLowerCase()},vA=($)=>new Proxy($,{get(Q,q,Z){let X=Reflect.get(Q,q,Z);if(X!==void 0||typeof q!=="string"||!yA(q))return X;let K=EA();return Reflect.set(Q,q,K),K}}),fA=()=>{let $={};for(let[Q,q]of Object.entries(XY)){if(!TA(Q,q))continue;let Z=Q.split(GV),X=Z.pop(),K=$;for(let J of Z)K[J]??={},K=K[J];if(UV(q)){let J=AA(Q.replaceAll(GV,MA),q);K[X]=Object.assign(J,K[X]??{})}else if(PO(q))K[X]=Object.assign({},K[X]??{},q)}for(let[Q,q]of Object.entries(SA))if($[q]&&!$[Q])$[Q]=$[q];for(let Q of IA)if($[Q])$[Q]=vA($[Q]);return $},_A=fA();var lA=new URL("whatsapp_rust_bridge_bg.wasm",import.meta.url),pA=hA(lA);xV({module:pA});var f3=LV,_3=FV;export{z3 as verifySignature,V3 as updateLogger,Y3 as setLogger,_A as proto,X3 as projectLegacySessionRecordV1,q3 as md5,e$ as longToBigInt,K3 as logMessage,f3 as initWasmEngine,xV as initSync,J3 as inflateZlib,Z3 as importLegacySessionRecordV1,Q3 as hkdf,$3 as hasLogger,eA as getWasmMemoryBytes,sA as getWasmAllocationSnapshot,aA as getPublicFromPrivateKey,tA as getEnabledFeatures,rA as generateKeyPair,gA as encodeSessionRecordComponents,LA as encodeServerAckWireBatch,mA as encodeSenderKeyRecordComponents,FA as encodeReceiptWireBatch,VV as encodeProto,UA as encodeMessageWireBatch,RA as encodeEventWireEnvelope,iA as decryptPollVotePayload,oA as decryptPollVote,bA as decryptEventResponsePayload,nA as decodeSessionRecordComponents,DA as decodeServerAckWireBatch,cA as decodeSenderKeyRecordComponents,PA as decodeReceiptWireBatch,VA as decodeProtoBatch,YA as decodeProto,GA as decodeMessageWireBatch,BA as decodeEventWireEnvelope,_3 as createWhatsAppClient,dA as calculateSignature,jA as calculateAgreement,wA as beginWasmAllocationProfile,t$ as WasmWhatsAppClient,w$ as UnpairedSurrogateError,d$ as MESSAGE_WIRE_INFO_RECORD_WIDTH,$Q as InvalidUtf8CountingReader,r$ as IntoUnderlyingSource,iY as IntoUnderlyingSink,oY as IntoUnderlyingByteSource,NA as EVENT_SEGMENT_KIND_SERVER_ACK,kA as EVENT_SEGMENT_KIND_RECEIPT,xA as EVENT_SEGMENT_KIND_MESSAGE,Y as BinaryReader};