@oxidezap/whatsapp-rust-bridge 0.7.0 → 0.7.2

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 iB=Object.defineProperty;var mB=($)=>$;function gB($,Q){this[$]=mB.bind(null,Q)}var tB=($,Q)=>{for(var Z in Q)iB($,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:gB.bind(Q,Z)})};import{readFileSync as XO}from"node:fs";class Xz{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,KR.unregister(this),$}free(){let $=this.__destroy_into_raw();Y.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return Y.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();Y.intounderlyingbytesource_cancel($)}pull($){let Q=Y.intounderlyingbytesource_pull(this.__wbg_ptr,N($));return C(Q)}start($){Y.intounderlyingbytesource_start(this.__wbg_ptr,N($))}get type(){let $=Y.intounderlyingbytesource_type(this.__wbg_ptr);return JR[$]}}if(Symbol.dispose)Xz.prototype[Symbol.dispose]=Xz.prototype.free;class zz{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,qR.unregister(this),$}free(){let $=this.__destroy_into_raw();Y.__wbg_intounderlyingsink_free($,0)}abort($){let Q=this.__destroy_into_raw(),Z=Y.intounderlyingsink_abort(Q,N($));return C(Z)}close(){let $=this.__destroy_into_raw(),Q=Y.intounderlyingsink_close($);return C(Q)}write($){let Q=Y.intounderlyingsink_write(this.__wbg_ptr,N($));return C(Q)}}if(Symbol.dispose)zz.prototype[Symbol.dispose]=zz.prototype.free;class n${static __wrap($){let Q=Object.create(n$.prototype);return Q.__wbg_ptr=$,Mz.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,Mz.unregister(this),$}free(){let $=this.__destroy_into_raw();Y.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();Y.intounderlyingsource_cancel($)}pull($){let Q=Y.intounderlyingsource_pull(this.__wbg_ptr,N($));return C(Q)}}if(Symbol.dispose)n$.prototype[Symbol.dispose]=n$.prototype.free;class d${static __wrap($){let Q=Object.create(d$.prototype);return Q.__wbg_ptr=$,Wz.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,Wz.unregister(this),$}free(){let $=this.__destroy_into_raw();Y.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let Q=Y.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,N($));return C(Q)}addChatLabel($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_addChatLabel(this.__wbg_ptr,Z,q,K,J);return C(z)}addLidPnMappings($){let Q=Y.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,N($));return C(Q)}addMessageLabel($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_addMessageLabel(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}archiveChat($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_archiveChat(this.__wbg_ptr,Z,q,Q);return C(K)}assertSessions($,Q){let Z=g($,Y.__wbindgen_export),q=U,K=Y.wasmwhatsappclient_assertSessions(this.__wbg_ptr,Z,q,Q);return C(K)}cleanDirtyBits($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_cleanDirtyBits(this.__wbg_ptr,Z,q,!d(Q),d(Q)?0:Q);return C(K)}clearChat($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=Y.wasmwhatsappclient_clearChat(this.__wbg_ptr,q,K,Q,Z);return C(J)}communityFetchAllParticipating(){let $=Y.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return C($)}communityParticipantsUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}connect(){let $=Y.wasmwhatsappclient_connect(this.__wbg_ptr);return C($)}createCommunity($,Q,Z,q,K){let J=L($,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;var G=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_createCommunity(this.__wbg_ptr,J,z,G,D,Z,q,K);return C(x)}createCommunitySubgroup($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}createGroup($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=g(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_createGroup(this.__wbg_ptr,Z,q,K,J);return C(z)}createLabel($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=Y.wasmwhatsappclient_createLabel(this.__wbg_ptr,q,K,J,z,Z);return C(G)}createParticipantNodesBytes($,Q,Z){let q=g($,Y.__wbindgen_export),K=U,J=p(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}createPoll($,Q,Z,q){let K=L($,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=g(Z,Y.__wbindgen_export),x=U,B=Y.wasmwhatsappclient_createPoll(this.__wbg_ptr,K,J,z,G,D,x,q);return C(B)}deactivateCommunity($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,Q,Z);return C(q)}deleteChat($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_deleteChat(this.__wbg_ptr,Q,Z);return C(q)}deleteLabel($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_deleteLabel(this.__wbg_ptr,Q,Z);return C(q)}deleteMessageForMe($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=Y.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,q,K,J,z,Z);return C(G)}deleteQuickReply($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_deleteQuickReply(this.__wbg_ptr,Q,Z);return C(q)}disconnect(){let $=Y.wasmwhatsappclient_disconnect(this.__wbg_ptr);return C($)}downloadMedia($,Q,Z,q,K,J){let z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=p(Q,Y.__wbindgen_export),x=U,B=p(Z,Y.__wbindgen_export),y=U,I=p(q,Y.__wbindgen_export),O=U,M=Y.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,z,G,D,x,B,y,I,O,K,N(J));return C(M)}downloadMediaStream($,Q,Z,q,K,J){try{let x=Y.__wbindgen_add_to_stack_pointer(-16),B=L($,Y.__wbindgen_export,Y.__wbindgen_export2),y=U,I=p(Q,Y.__wbindgen_export),O=U,M=p(Z,Y.__wbindgen_export),n=U,S=p(q,Y.__wbindgen_export),j=U;Y.wasmwhatsappclient_downloadMediaStream(x,this.__wbg_ptr,B,y,I,O,M,n,S,j,K,N(J));var z=T().getInt32(x+0,!0),G=T().getInt32(x+4,!0),D=T().getInt32(x+8,!0);if(D)throw C(G);return C(z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}encryptMediaStream($,Q,Z){let q=Y.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,N($),N(Q),N(Z));return C(q)}ensurePreKeys(){let $=Y.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return C($)}fetchBlocklist(){let $=Y.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return C($)}fetchMessageHistory($,Q,Z,q,K){let J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,J,z,G,D,q,K);return C(x)}fetchNewChatMessageCappingInfo(){let $=Y.wasmwhatsappclient_fetchNewChatMessageCappingInfo(this.__wbg_ptr);return C($)}fetchPrivacySettings(){let $=Y.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return C($)}fetchReachoutTimelock(){let $=Y.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return C($)}fetchStatus($){let Q=g($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,Q,Z);return C(q)}fetchUserInfo($){let Q=g($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,Q,Z);return C(q)}getAccount(){let $=Y.wasmwhatsappclient_getAccount(this.__wbg_ptr);return C($)}getBotList(){let $=Y.wasmwhatsappclient_getBotList(this.__wbg_ptr);return C($)}getBusinessProfile($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,Q,Z);return C(q)}getCatalog($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_getCatalog(this.__wbg_ptr,Z,q,N(Q));return C(K)}getCollections($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_getCollections(this.__wbg_ptr,Z,q,N(Q));return C(K)}getCommunitySubgroups($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,Q,Z);return C(q)}getCoreAllocationSnapshot(){let $=Y.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return C($)}getGroupMetadata($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,Q,Z);return C(q)}getJid(){let $=Y.wasmwhatsappclient_getJid(this.__wbg_ptr);return C($)}getLid(){let $=Y.wasmwhatsappclient_getLid(this.__wbg_ptr);return C($)}getMediaConn($){let Q=Y.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return C(Q)}getMemoryDiagnostics(){let $=Y.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return C($)}getOrder($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_getOrder(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}getPushName(){let $=Y.wasmwhatsappclient_getPushName(this.__wbg_ptr);return C($)}getUSyncDevices($,Q,Z){let q=g($,Y.__wbindgen_export),K=U,J=Y.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,q,K,Q,Z);return C(J)}groupAcceptInvite($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,Q,Z);return C(q)}groupAcceptInviteV4($,Q,Z,q){let K=L($,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),x=U,B=Y.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,K,J,z,G,Z,D,x);return C(B)}groupFetchAllParticipating(){let $=Y.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return C($)}groupGetInviteInfo($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,Q,Z);return C(q)}groupInviteCode($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,Q,Z);return C(q)}groupLeave($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupLeave(this.__wbg_ptr,Q,Z);return C(q)}groupMemberAddMode($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,Z,q,N(Q));return C(K)}groupParticipantsUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}groupRequestParticipantsList($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,Q,Z);return C(q)}groupRequestParticipantsUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}groupRevokeInvite($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,Q,Z);return C(q)}groupRevokeInviteV4($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,Z,q,K,J);return C(z)}groupSettingUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=Y.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,q,K,N(Q),Z);return C(J)}groupToggleEphemeral($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,Z,q,Q);return C(K)}groupUpdateDescription($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U;var K=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;let z=Y.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,Z,q,K,J);return C(z)}groupUpdateSubject($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,Z,q,K,J);return C(z)}isConnected(){return Y.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return Y.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let Q=g($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,Q,Z);return C(q)}jidToSignalProtocolAddress($){let Q,Z;try{let x=Y.__wbindgen_add_to_stack_pointer(-16),B=L($,Y.__wbindgen_export,Y.__wbindgen_export2),y=U;Y.wasmwhatsappclient_jidToSignalProtocolAddress(x,this.__wbg_ptr,B,y);var q=T().getInt32(x+0,!0),K=T().getInt32(x+4,!0),J=T().getInt32(x+8,!0),z=T().getInt32(x+12,!0),G=q,D=K;if(z)throw G=0,D=0,C(J);return Q=G,Z=D,q0(G,D)}finally{Y.__wbindgen_add_to_stack_pointer(16),Y.__wbindgen_export4(Q,Z,1)}}lidForPn($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_lidForPn(this.__wbg_ptr,Q,Z);return C(q)}linkCommunitySubgroups($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=g(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,Z,q,K,J);return C(z)}logout(){let $=Y.wasmwhatsappclient_logout(this.__wbg_ptr);return C($)}markChatAsRead($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,Z,q,Q);return C(K)}markPlayed($){let Q=Y.wasmwhatsappclient_markPlayed(this.__wbg_ptr,N($));return C(Q)}muteChat($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_muteChat(this.__wbg_ptr,Z,q,!d(Q),d(Q)?0:Q);return C(K)}newsletterAdminInfo($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterAdminInfo(this.__wbg_ptr,Q,Z);return C(q)}newsletterAdminMute($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_newsletterAdminMute(this.__wbg_ptr,Z,q,Q);return C(K)}newsletterChangeOwner($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_newsletterChangeOwner(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterCreate($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U;var K=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;let z=Y.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterDelete($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterDelete(this.__wbg_ptr,Q,Z);return C(q)}newsletterDemoteAdmin($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_newsletterDemoteAdmin(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterEditMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_newsletterEditMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}newsletterFollowerMute($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_newsletterFollowerMute(this.__wbg_ptr,Z,q,Q);return C(K)}newsletterFollowers($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_newsletterFollowers(this.__wbg_ptr,Z,q,Q);return C(K)}newsletterList(){let $=Y.wasmwhatsappclient_newsletterList(this.__wbg_ptr);return C($)}newsletterMessages($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U;var J=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;let G=Y.wasmwhatsappclient_newsletterMessages(this.__wbg_ptr,q,K,Q,J,z);return C(G)}newsletterMetadata($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,Q,Z);return C(q)}newsletterMetadataByInvite($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterMetadataByInvite(this.__wbg_ptr,Q,Z);return C(q)}newsletterMute($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,Z,q,Q);return C(K)}newsletterReactMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;var G=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}newsletterRemovePicture($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterRemovePicture(this.__wbg_ptr,Q,Z);return C(q)}newsletterRevokeMessage($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_newsletterRevokeMessage(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterSetPicture($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=p(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_newsletterSetPicture(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterSubscribe($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,Q,Z);return C(q)}newsletterSubscribeLiveUpdates($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterSubscribeLiveUpdates(this.__wbg_ptr,Q,Z);return C(q)}newsletterUnsubscribe($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,Q,Z);return C(q)}newsletterUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U;var J=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_newsletterUpdate(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}pinChat($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_pinChat(this.__wbg_ptr,Z,q,Q);return C(K)}pnForLid($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_pnForLid(this.__wbg_ptr,Q,Z);return C(q)}presenceSubscribe($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,Q,Z);return C(q)}profilePictureUrl($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=Y.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,q,K,N(Q),!d(Z),d(Z)?0:Z);return C(J)}queryNode($,Q){let Z=Y.wasmwhatsappclient_queryNode(this.__wbg_ptr,N($),!d(Q),d(Q)?0:Q);return C(Z)}queryUsync($){let Q=Y.wasmwhatsappclient_queryUsync(this.__wbg_ptr,N($));return C(Q)}readMessages($){let Q=Y.wasmwhatsappclient_readMessages(this.__wbg_ptr,N($));return C(Q)}reconnect(){let $=Y.wasmwhatsappclient_reconnect(this.__wbg_ptr);return C($)}refreshPreKeys($){let Q=Y.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,d($)?Number.MAX_SAFE_INTEGER:$>>>0);return C(Q)}rejectCall($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_rejectCall(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}rejectStanza($,Q,Z){let q=Y.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,N($),Q,d(Z)?Number.MAX_SAFE_INTEGER:Z>>0);return C(q)}relayMessageBytes($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=p(Q,Y.__wbindgen_export),z=U;var G=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}relayMessageBytesWithOptions($,Q,Z,q,K,J){let z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=p(Q,Y.__wbindgen_export),x=U;var B=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),y=U;let I=Y.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,z,G,D,x,B,y,N(q),K,J);return C(I)}removeBusinessCoverPhoto($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_removeBusinessCoverPhoto(this.__wbg_ptr,Q,Z);return C(q)}removeChatLabel($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_removeChatLabel(this.__wbg_ptr,Z,q,K,J);return C(z)}removeContact($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_removeContact(this.__wbg_ptr,Q,Z);return C(q)}removeGroupProfilePicture($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,Q,Z);return C(q)}removeMessageLabel($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_removeMessageLabel(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}removeProfilePicture(){let $=Y.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return C($)}requestMediaReupload($,Q,Z,q,K){let J=L($,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=p(Z,Y.__wbindgen_export),B=U;var y=d(K)?0:L(K,Y.__wbindgen_export,Y.__wbindgen_export2),I=U;let O=Y.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,J,z,G,D,x,B,q,y,I);return C(O)}requestMessageRetry($,Q){let Z=Y.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,N($),d(Q)?16777215:Q?1:0);return C(Z)}requestPairingCode($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U;var K=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;let z=Y.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,Z,q,K,J);return C(z)}retransmitMessageBytes($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=p(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}revokeMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;var G=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}rotateSignedKey(){let $=Y.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return C($)}run(){try{let Z=Y.__wbindgen_add_to_stack_pointer(-16);Y.wasmwhatsappclient_run(Z,this.__wbg_ptr);var $=T().getInt32(Z+0,!0),Q=T().getInt32(Z+4,!0);if(Q)throw C($)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}saveContact($,Q,Z,q){let K=L($,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;var z=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),x=U;let B=Y.wasmwhatsappclient_saveContact(this.__wbg_ptr,K,J,z,G,D,x,q);return C(B)}sendChatState($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_sendChatState(this.__wbg_ptr,Z,q,N(Q));return C(K)}sendCommentBytes($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=p(Z,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,q,K,N(Q),J,z);return C(G)}sendMessageBytes($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=p(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,Z,q,K,J);return C(z)}sendNode($){let Q=Y.wasmwhatsappclient_sendNode(this.__wbg_ptr,N($));return C(Q)}sendPresence($){let Q=Y.wasmwhatsappclient_sendPresence(this.__wbg_ptr,N($));return C(Q)}sendRawMessage($){let Q=p($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,Q,Z);return C(q)}sendReaction($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U;var J=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;let G=Y.wasmwhatsappclient_sendReaction(this.__wbg_ptr,q,K,N(Q),J,z);return C(G)}sendStatusMessageBytes($,Q){let Z=p($,Y.__wbindgen_export),q=U,K=g(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,Z,q,K,J);return C(z)}sendStatusMessageBytesWithOptions($,Q,Z,q,K){let J=p($,Y.__wbindgen_export),z=U,G=g(Q,Y.__wbindgen_export),D=U;var x=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),B=U;let y=Y.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,J,z,G,D,x,B,N(q),K);return C(y)}setAutoReconnect($){Y.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setBusinessCoverPhoto($){let Q=Y.wasmwhatsappclient_setBusinessCoverPhoto(this.__wbg_ptr,N($));return C(Q)}setClientProfile($){let Q=Y.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,N($));return C(Q)}setDeviceProps($){let Q=Y.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,N($));return C(Q)}setGroupProfilePicture($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=p(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,Z,q,K,J);return C(z)}setInitialPushName($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,Q,Z);return C(q)}setLinkPreviewsDisabled($){let Q=Y.wasmwhatsappclient_setLinkPreviewsDisabled(this.__wbg_ptr,$);return C(Q)}setPushName($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_setPushName(this.__wbg_ptr,Q,Z);return C(q)}setQuickReply($,Q,Z,q,K){let J=L($,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),B=U,y=g(q,Y.__wbindgen_export),I=U,O=Y.wasmwhatsappclient_setQuickReply(this.__wbg_ptr,J,z,G,D,x,B,y,I,K);return C(O)}setRawNodeForwarding($){Y.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}setUserStatusMute($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_setUserStatusMute(this.__wbg_ptr,Z,q,Q);return C(K)}signalDecryptGroupMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}signalDecryptMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}signalDeleteSenderKey($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,Z,q,K,J);return C(z)}signalDeleteSessions($){let Q=g($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,Q,Z);return C(q)}signalEncryptGroupMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=p(Q,Y.__wbindgen_export),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}signalEncryptMessage($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=p(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,Z,q,K,J);return C(z)}signalGetSenderKeyDistribution($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,Z,q,K,J);return C(z)}signalGetSessionInfo($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,Q,Z);return C(q)}signalHasSenderKey($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,Z,q,K,J);return C(z)}signalInstallPreKeyBundle($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,Z,q,N(Q));return C(K)}signalMigrateSessions($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,Z,q,K,J);return C(z)}signalProcessSenderKeyDistribution($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}signalValidateSession($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,Q,Z);return C(q)}starMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=Y.wasmwhatsappclient_starMessage(this.__wbg_ptr,q,K,J,z,Z);return C(G)}unlinkCommunitySubgroups($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,q,K,J,z,Z);return C(G)}updateBlockStatus($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,Z,q,N(Q));return C(K)}updateBusinessProfile($){let Q=Y.wasmwhatsappclient_updateBusinessProfile(this.__wbg_ptr,N($));return C(Q)}updateDefaultDisappearingMode($){let Q=Y.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return C(Q)}updateMemberLabel($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,Z,q,K,J);return C(z)}updatePrivacySetting($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,Z,q,K,J);return C(z)}updateProfilePicture($){let Q=p($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,Q,Z);return C(q)}updateProfileStatus($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,Q,Z);return C(q)}uploadEncryptedMediaStream($,Q,Z,q,K,J){let z=p(Q,Y.__wbindgen_export),G=U,D=p(Z,Y.__wbindgen_export),x=U,B=p(q,Y.__wbindgen_export),y=U,I=Y.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,N($),z,G,D,x,B,y,K,N(J));return C(I)}uploadMedia($,Q){let Z=p($,Y.__wbindgen_export),q=U,K=Y.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,Z,q,N(Q));return C(K)}validateKeyBundle(){let $=Y.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return C($)}votePoll($,Q,Z,q,K){let J=L($,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),B=U,y=p(q,Y.__wbindgen_export),I=U,O=g(K,Y.__wbindgen_export),M=U,n=Y.wasmwhatsappclient_votePoll(this.__wbg_ptr,J,z,G,D,x,B,y,I,O,M);return C(n)}waitForConnected($){let Q=Y.wasmwhatsappclient_waitForConnected(this.__wbg_ptr,$);return C(Q)}waitForSocket($){let Q=Y.wasmwhatsappclient_waitForSocket(this.__wbg_ptr,$);return C(Q)}}if(Symbol.dispose)d$.prototype[Symbol.dispose]=d$.prototype.free;function HO(){Y.beginWasmAllocationProfile()}function GO($,Q){try{let J=Y.__wbindgen_add_to_stack_pointer(-16),z=p($,Y.__wbindgen_export),G=U,D=p(Q,Y.__wbindgen_export),x=U;Y.calculateAgreement(J,z,G,D,x);var Z=T().getInt32(J+0,!0),q=T().getInt32(J+4,!0),K=T().getInt32(J+8,!0);if(K)throw C(q);return C(Z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function UO($,Q){try{let J=Y.__wbindgen_add_to_stack_pointer(-16),z=p($,Y.__wbindgen_export),G=U,D=p(Q,Y.__wbindgen_export),x=U;Y.calculateSignature(J,z,G,D,x);var Z=T().getInt32(J+0,!0),q=T().getInt32(J+4,!0),K=T().getInt32(J+8,!0);if(K)throw C(q);return C(Z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function Sz($,Q,Z,q,K,J,z){let G=Y.createWhatsAppClient(N($),N(Q),d(Z)?0:N(Z),d(q)?0:N(q),d(K)?0:N(K),d(J)?0:N(J),d(z)?0:N(z));return C(G)}function CO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16),J=p($,Y.__wbindgen_export),z=U;Y.decodeSenderKeyRecordComponents(K,J,z);var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function xO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16),J=p($,Y.__wbindgen_export),z=U;Y.decodeSessionRecordComponents(K,J,z);var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function DO($,Q,Z,q,K,J){try{let x=Y.__wbindgen_add_to_stack_pointer(-16),B=p($,Y.__wbindgen_export),y=U,I=p(Q,Y.__wbindgen_export),O=U,M=p(Z,Y.__wbindgen_export),n=U,S=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),j=U,R0=L(K,Y.__wbindgen_export,Y.__wbindgen_export2),O0=U,_0=L(J,Y.__wbindgen_export,Y.__wbindgen_export2),A0=U;Y.decryptEventResponsePayload(x,B,y,I,O,M,n,S,j,R0,O0,_0,A0);var z=T().getInt32(x+0,!0),G=T().getInt32(x+4,!0),D=T().getInt32(x+8,!0);if(D)throw C(G);return C(z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function LO($,Q,Z,q,K,J,z){try{let I=Y.__wbindgen_add_to_stack_pointer(-16),O=p($,Y.__wbindgen_export),M=U,n=p(Q,Y.__wbindgen_export),S=U,j=p(Z,Y.__wbindgen_export),R0=U,O0=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),_0=U,A0=L(K,Y.__wbindgen_export,Y.__wbindgen_export2),l=U,v$=L(J,Y.__wbindgen_export,Y.__wbindgen_export2),oB=U,bB=g(z,Y.__wbindgen_export),u=U;Y.decryptPollVote(I,O,M,n,S,j,R0,O0,_0,A0,l,v$,oB,bB,u);var G=T().getInt32(I+0,!0),D=T().getInt32(I+4,!0),x=T().getInt32(I+8,!0),B=T().getInt32(I+12,!0);if(B)throw C(x);var y=E0(G,D).slice();return Y.__wbindgen_export4(G,D*4,4),y}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function FO($,Q,Z,q,K,J){try{let x=Y.__wbindgen_add_to_stack_pointer(-16),B=p($,Y.__wbindgen_export),y=U,I=p(Q,Y.__wbindgen_export),O=U,M=p(Z,Y.__wbindgen_export),n=U,S=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),j=U,R0=L(K,Y.__wbindgen_export,Y.__wbindgen_export2),O0=U,_0=L(J,Y.__wbindgen_export,Y.__wbindgen_export2),A0=U;Y.decryptPollVotePayload(x,B,y,I,O,M,n,S,j,R0,O0,_0,A0);var z=T().getInt32(x+0,!0),G=T().getInt32(x+4,!0),D=T().getInt32(x+8,!0);if(D)throw C(G);return C(z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function PO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16);Y.encodeSenderKeyRecordComponents(K,N($));var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function kO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16);Y.encodeSessionRecordComponents(K,N($));var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function NO(){let $=Y.generateKeyPair();return C($)}function BO(){let $=Y.getEnabledFeatures();return C($)}function RO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16),J=p($,Y.__wbindgen_export),z=U;Y.getPublicFromPrivateKey(K,J,z);var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function OO(){try{let q=Y.__wbindgen_add_to_stack_pointer(-16);Y.getWasmAllocationSnapshot(q);var $=T().getInt32(q+0,!0),Q=T().getInt32(q+4,!0),Z=T().getInt32(q+8,!0);if(Z)throw C(Q);return C($)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function AO(){return Y.getWasmMemoryBytes()}function EO(){return Y.hasLogger()!==0}function MO($,Q,Z){try{let z=Y.__wbindgen_add_to_stack_pointer(-16),G=p($,Y.__wbindgen_export),D=U;Y.hkdf(z,G,D,Q,N(Z));var q=T().getInt32(z+0,!0),K=T().getInt32(z+4,!0),J=T().getInt32(z+8,!0);if(J)throw C(K);return C(q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function WO($,Q){try{let J=Y.__wbindgen_add_to_stack_pointer(-16);Y.importLegacySessionRecordV1(J,N($),N(Q));var Z=T().getInt32(J+0,!0),q=T().getInt32(J+4,!0),K=T().getInt32(J+8,!0);if(K)throw C(q);return C(Z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function IO($,Q){try{let J=Y.__wbindgen_add_to_stack_pointer(-16),z=p($,Y.__wbindgen_export),G=U;Y.inflateZlib(J,z,G,!d(Q),d(Q)?0:Q);var Z=T().getInt32(J+0,!0),q=T().getInt32(J+4,!0),K=T().getInt32(J+8,!0);if(K)throw C(q);return C(Z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function vz($,Q){Y.initWasmEngine(N($),N(Q))}function SO($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;Y.logMessage(Z,q,K,J)}function vO($){let Q=p($,Y.__wbindgen_export),Z=U,q=Y.md5(Q,Z);return C(q)}function TO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16),J=p($,Y.__wbindgen_export),z=U;Y.projectLegacySessionRecordV1(K,J,z);var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function yO($){try{let q=Y.__wbindgen_add_to_stack_pointer(-16);Y.setLogger(q,N($));var Q=T().getInt32(q+0,!0),Z=T().getInt32(q+4,!0);if(Z)throw C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function fO($){Y.updateLogger(N($))}function _O($,Q,Z){try{let z=Y.__wbindgen_add_to_stack_pointer(-16),G=p($,Y.__wbindgen_export),D=U,x=p(Q,Y.__wbindgen_export),B=U,y=p(Z,Y.__wbindgen_export),I=U;Y.verifySignature(z,G,D,x,B,y,I);var q=T().getInt32(z+0,!0),K=T().getInt32(z+4,!0),J=T().getInt32(z+8,!0);if(J)throw C(K);return q!==0}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function rB(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(Q,Z){let q=Error(q0(Q,Z));return N(q)},__wbg_Number_9a4e0ecb0fa16705:function(Q){return Number(P(Q))},__wbg_String_8564e559799eccda:function(Q,Z){let q=String(P(Z)),K=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;T().setInt32(Q+4,J,!0),T().setInt32(Q+0,K,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(Q,Z){let q=P(Z),K=typeof q==="bigint"?q:void 0;T().setBigInt64(Q+8,d(K)?BigInt(0):K,!0),T().setInt32(Q+0,!d(K),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(Q){let Z=P(Q),q=typeof Z==="boolean"?Z:void 0;return d(q)?16777215:q?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(Q,Z){let q=Yz(P(Z)),K=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;T().setInt32(Q+4,J,!0),T().setInt32(Q+0,K,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(Q,Z){return P(Q)in P(Z)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(Q){return typeof P(Q)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(Q){return typeof P(Q)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(Q){return P(Q)===null},__wbg___wbindgen_is_object_a27215656b807791:function(Q){let Z=P(Q);return typeof Z==="object"&&Z!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(Q){return typeof P(Q)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(Q){return P(Q)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(Q,Z){return P(Q)===P(Z)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(Q,Z){return P(Q)==P(Z)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(Q,Z){let q=P(Z),K=typeof q==="number"?q:void 0;T().setFloat64(Q+8,d(K)?0:K,!0),T().setInt32(Q+0,!d(K),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(Q,Z){let q=P(Z),K=typeof q==="string"?q:void 0;var J=d(K)?0:L(K,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;T().setInt32(Q+4,z,!0),T().setInt32(Q+0,J,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(Q,Z){throw Error(q0(Q,Z))},__wbg__wbg_cb_unref_fffb441def202758:function(Q){P(Q)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return s(function(Q,Z,q){let K=P(Q).apply(P(Z),P(q));return N(K)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(Q,Z,q,K){let J=P(Q).bind(P(Z),P(q),P(K));return N(J)},__wbg_buffer_54b87055582c8a81:function(Q){let Z=P(Q).buffer;return N(Z)},__wbg_byobRequest_06b654bb15590436:function(Q){let Z=P(Q).byobRequest;return d(Z)?0:N(Z)},__wbg_byteLength_41862ca4020b9c43:function(Q){return P(Q).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(Q){return P(Q).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return s(function(Q,Z,q,K,J){let z=P(Q).call(P(Z),P(q),P(K),P(J));return N(z)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return s(function(Q,Z){let q=P(Q).call(P(Z));return N(q)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return s(function(Q,Z,q){let K=P(Q).call(P(Z),P(q));return N(K)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return s(function(Q,Z,q,K,J,z){let G=P(Q).call(P(Z),P(q),P(K),P(J),P(z));return N(G)},arguments)},__wbg_call_e3b662382210db98:function(){return s(function(Q,Z,q,K){let J=P(Q).call(P(Z),P(q),P(K));return N(J)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(Q){let Z=P(Q).cancel();return N(Z)},__wbg_catch_c1a60df4c30d76d3:function(Q,Z){let q=P(Q).catch(P(Z));return N(q)},__wbg_close_1e6096d41f7ce5d0:function(Q){let Z=P(Q).close();return N(Z)},__wbg_close_249a23304523681b:function(){return s(function(Q){P(Q).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return s(function(Q){P(Q).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(Q,Z,q,K){P(Q).debug(P(Z),q===0?void 0:q0(q,K))},__wbg_debug_cf53e2612c84e4ee:function(Q,Z,q,K){console.debug(P(Q),P(Z),P(q),P(K))},__wbg_done_89b2b13e91a60321:function(Q){return P(Q).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return s(function(Q,Z){P(Q).enqueue(P(Z))},arguments)},__wbg_entries_015dc610cd81ede0:function(Q){let Z=Object.entries(P(Q));return N(Z)},__wbg_error_657700d53a73881f:function(Q,Z,q,K){console.error(P(Q),P(Z),P(q),P(K))},__wbg_error_9cce413345f88385:function(Q,Z,q,K){P(Q).error(P(Z),q===0?void 0:q0(q,K))},__wbg_error_a6fa202b58aa1cd3:function(Q,Z){let q,K;try{q=Q,K=Z,console.error(q0(Q,Z))}finally{Y.__wbindgen_export4(q,K,1)}},__wbg_from_13e323c65fc8f464:function(Q){let Z=Array.from(P(Q));return N(Z)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return s(function(Q,Z){globalThis.crypto.getRandomValues(T$(Q,Z))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return s(function(Q){let Z=P(Q).getReader();return N(Z)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return s(function(Q){let Z=P(Q).getWriter();return N(Z)},arguments)},__wbg_get_507a50627bffa49b:function(Q,Z){let q=P(Q)[Z>>>0];return N(q)},__wbg_get_78f252d074a84d0b:function(){return s(function(Q,Z){let q=Reflect.get(P(Q),P(Z));return N(q)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return s(function(Q,Z){let q=Reflect.get(P(Q),P(Z));return N(q)},arguments)},__wbg_get_done_670108eb06ecbe46:function(Q){let Z=P(Q).done;return d(Z)?16777215:Z?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(Q,Z){let q=P(Q)[Z>>>0];return N(q)},__wbg_get_value_f465f5be30aa0963:function(Q){let Z=P(Q).value;return N(Z)},__wbg_get_with_ref_key_6412cf3094599694:function(Q,Z){let q=P(Q)[P(Z)];return N(q)},__wbg_info_79f5309d69d9c70e:function(Q,Z,q,K){console.info(P(Q),P(Z),P(q),P(K))},__wbg_info_b728e87a346ff6a2:function(Q,Z,q,K){P(Q).info(P(Z),q===0?void 0:q0(q,K))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(Q){let Z;try{Z=P(Q)instanceof ArrayBuffer}catch(K){Z=!1}return Z},__wbg_instanceof_Array_de0fa65266a8c7c0:function(Q){let Z;try{Z=P(Q)instanceof Array}catch(K){Z=!1}return Z},__wbg_instanceof_Error_1fdac9f13a8181ba:function(Q){let Z;try{Z=P(Q)instanceof Error}catch(K){Z=!1}return Z},__wbg_instanceof_Map_e5b5e3db98422fcc:function(Q){let Z;try{Z=P(Q)instanceof Map}catch(K){Z=!1}return Z},__wbg_instanceof_Object_33f20e6f12439f3e:function(Q){let Z;try{Z=P(Q)instanceof Object}catch(K){Z=!1}return Z},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(Q){let Z;try{Z=P(Q)instanceof Promise}catch(K){Z=!1}return Z},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(Q){let Z;try{Z=P(Q)instanceof Uint8Array}catch(K){Z=!1}return Z},__wbg_isArray_0677c962b281d01a:function(Q){return Array.isArray(P(Q))},__wbg_isSafeInteger_04f36e4056f1b851:function(Q){return Number.isSafeInteger(P(Q))},__wbg_iterator_6f722e4a93058b71:function(){return N(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(Q){let Z=Object.keys(P(Q));return N(Z)},__wbg_length_1f0964f4a5e2c6d8:function(Q){return P(Q).length},__wbg_length_370319915dc99107:function(Q){return P(Q).length},__wbg_level_4b50b181832c5acf:function(Q,Z){let q=P(Z).level,K=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;T().setInt32(Q+4,J,!0),T().setInt32(Q+0,K,!0)},__wbg_log_a45418e25b210a4c:function(Q,Z,q,K){console.log(P(Q),P(Z),P(q),P(K))},__wbg_message_8326fb1d549bebc5:function(Q){let Z=P(Q).message;return N(Z)},__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,Z){let q=Error(q0(Q,Z));return N(q)},__wbg_new_cd45aabdf6073e84:function(Q){let Z=new Uint8Array(P(Q));return N(Z)},__wbg_new_da52cf8fe3429cb2:function(){return N({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(Q,Z){let q=new Uint32Array(zR(Q,Z));return N(q)},__wbg_new_from_slice_77cdfb7977362f3c:function(Q,Z){let q=new Uint8Array(T$(Q,Z));return N(q)},__wbg_new_typed_1824d93f294193e5:function(Q,Z){try{var q={a:Q,b:Z},K=(z,G)=>{let D=q.a;q.a=0;try{return QR(D,q.b,z,G)}finally{q.a=D}};let J=new Promise(K);return N(J)}finally{q.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(Q,Z,q){let K=new Uint8Array(P(Q),Z>>>0,q>>>0);return N(K)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(Q,Z){let q=new ReadableStream(n$.__wrap(Q),C(Z));return N(q)},__wbg_new_with_length_e6785c33c8e4cce8:function(Q){let Z=new Uint8Array(Q>>>0);return N(Z)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(Q){let Z=Array(Q>>>0);return N(Z)},__wbg_next_6dbf2c0ac8cde20f:function(Q){let Z=P(Q).next;return N(Z)},__wbg_next_71f2aa1cb3d1e37e:function(){return s(function(Q){let Z=P(Q).next();return N(Z)},arguments)},__wbg_now_44881ed1d5dba857:function(){return s(function(){return performance.now()},arguments)},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_now_fefb743ab429013f:function(){return performance.now()},__wbg_of_2bf3ed8a776ff19a:function(Q,Z,q,K){let J=Array.of(P(Q),P(Z),P(q),P(K));return N(J)},__wbg_prototypesetcall_2592ffff58ff115d:function(Q,Z,q){Uint8Array.prototype.set.call(T$(Q,Z),P(q))},__wbg_prototypesetcall_4770620bbe4688a0:function(Q,Z,q){Uint8Array.prototype.set.call(T$(Q,Z),P(q))},__wbg_push_d2ae3af0c1217ae6:function(Q,Z){return P(Q).push(P(Z))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(Q){let Z=P(Q).queueMicrotask;return N(Z)},__wbg_queueMicrotask_6a09b7bc46549209:function(Q){queueMicrotask(P(Q))},__wbg_read_8afa15f12a160ef8:function(Q){let Z=P(Q).read();return N(Z)},__wbg_ready_68b537848a5c627a:function(Q){let Z=P(Q).ready;return N(Z)},__wbg_releaseLock_33c25ace78b2d4c6:function(Q){P(Q).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(Q){P(Q).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(Q){let Z=Promise.resolve(P(Q));return N(Z)},__wbg_respond_510e32df8aeb6817:function(){return s(function(Q,Z){P(Q).respond(Z>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(Q,Z,q){P(Q).set(T$(Z,q))},__wbg_set_575dd786d51585f8:function(Q,Z,q){let K=P(Q).set(P(Z),P(q));return N(K)},__wbg_set_6be42768c690e380:function(Q,Z,q){P(Q)[C(Z)]=C(q)},__wbg_set_8535240470bf2500:function(){return s(function(Q,Z,q){return Reflect.set(P(Q),P(Z),P(q))},arguments)},__wbg_set_8a16b38e4805b298:function(Q,Z,q){P(Q)[Z>>>0]=C(q)},__wbg_set_high_water_mark_44d043cd607dd13a:function(Q,Z){P(Q).highWaterMark=Z},__wbg_set_name_3bbc583faefa4193:function(Q,Z,q){P(Q).name=q0(Z,q)},__wbg_stack_3b0d974bbf31e44f:function(Q,Z){let q=P(Z).stack,K=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;T().setInt32(Q+4,J,!0),T().setInt32(Q+0,K,!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,Z,q){let K=P(Q).subarray(Z>>>0,q>>>0);return N(K)},__wbg_then_16d107c451e9905d:function(Q,Z,q){let K=P(Q).then(P(Z),P(q));return N(K)},__wbg_then_6ec10ae38b3e92f7:function(Q,Z){let q=P(Q).then(P(Z));return N(q)},__wbg_trace_58264fbce2ceb5e6:function(Q,Z,q,K){P(Q).trace(P(Z),q===0?void 0:q0(q,K))},__wbg_value_a5d5488a9589444a:function(Q){let Z=P(Q).value;return N(Z)},__wbg_view_21f1d4a4f175dfa9:function(Q){let Z=P(Q).view;return d(Z)?0:N(Z)},__wbg_warn_77c4eb4a21e10a21:function(Q,Z,q,K){console.warn(P(Q),P(Z),P(q),P(K))},__wbg_warn_db531770752932a9:function(Q,Z,q,K){P(Q).warn(P(Z),q===0?void 0:q0(q,K))},__wbg_wasmwhatsappclient_new:function(Q){let Z=d$.__wrap(Q);return N(Z)},__wbg_write_f6dc0059c3feedce:function(Q,Z){let q=P(Q).write(P(Z));return N(q)},__wbindgen_cast_0000000000000001:function(Q,Z){let q=h$(Q,Z,sB);return N(q)},__wbindgen_cast_0000000000000002:function(Q,Z){let q=h$(Q,Z,$R);return N(q)},__wbindgen_cast_0000000000000003:function(Q,Z){let q=h$(Q,Z,ZR);return N(q)},__wbindgen_cast_0000000000000004:function(Q,Z){let q=h$(Q,Z,eB);return N(q)},__wbindgen_cast_0000000000000005:function(Q,Z){let q=h$(Q,Z,aB);return N(q)},__wbindgen_cast_0000000000000006:function(Q){return N(Q)},__wbindgen_cast_0000000000000007:function(Q){return N(Q)},__wbindgen_cast_0000000000000008:function(Q,Z){let q=T$(Q,Z);return N(q)},__wbindgen_cast_0000000000000009:function(Q,Z){let q=q0(Q,Z);return N(q)},__wbindgen_cast_000000000000000a:function(Q){let Z=BigInt.asUintN(64,Q);return N(Z)},__wbindgen_cast_000000000000000b:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_000000000000000c:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_000000000000000d:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_000000000000000e:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_000000000000000f:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_0000000000000010:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_0000000000000011:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_0000000000000012:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_0000000000000013:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_object_clone_ref:function(Q){let Z=P(Q);return N(Z)},__wbindgen_object_drop_ref:function(Q){C(Q)}}}}function aB($,Q){Y.__wasm_bindgen_func_elem_4241($,Q)}function sB($,Q,Z){Y.__wasm_bindgen_func_elem_9064($,Q,N(Z))}function eB($,Q,Z){Y.__wasm_bindgen_func_elem_4242($,Q,N(Z))}function $R($,Q,Z){try{let J=Y.__wbindgen_add_to_stack_pointer(-16);Y.__wasm_bindgen_func_elem_25775(J,$,Q,N(Z));var q=T().getInt32(J+0,!0),K=T().getInt32(J+4,!0);if(K)throw C(q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function QR($,Q,Z,q){Y.__wasm_bindgen_func_elem_25777($,Q,N(Z),N(q))}function ZR($,Q,Z){Y.__wasm_bindgen_func_elem_4243($,Q,Z)}var JR=["bytes"],KR=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbg_intounderlyingbytesource_free($,1)),qR=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbg_intounderlyingsink_free($,1)),Mz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbg_intounderlyingsource_free($,1)),Wz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbg_wasmwhatsappclient_free($,1));function N($){if(p$===f0.length)f0.push(f0.length+1);let Q=p$;return p$=f0[Q],f0[Q]=$,Q}var Iz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbindgen_export5($.a,$.b));function Yz($){let Q=typeof $;if(Q=="number"||Q=="boolean"||$==null)return`${$}`;if(Q=="string")return`"${$}"`;if(Q=="symbol"){let K=$.description;if(K==null)return"Symbol";else return`Symbol(${K})`}if(Q=="function"){let K=$.name;if(typeof K=="string"&&K.length>0)return`Function(${K})`;else return"Function"}if(Array.isArray($)){let K=$.length,J="[";if(K>0)J+=Yz($[0]);for(let z=1;z<K;z++)J+=", "+Yz($[z]);return J+="]",J}let Z=/\[object ([^\]]+)\]/.exec(toString.call($)),q;if(Z&&Z.length>1)q=Z[1];else return toString.call($);if(q=="Object")try{return"Object("+JSON.stringify($)+")"}catch(K){return"Object"}if($ instanceof Error)return`${$.name}: ${$.message}
1
+ var iB=Object.defineProperty;var mB=($)=>$;function gB($,Q){this[$]=mB.bind(null,Q)}var tB=($,Q)=>{for(var Z in Q)iB($,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:gB.bind(Q,Z)})};import{readFileSync as XO}from"node:fs";class Xz{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,KR.unregister(this),$}free(){let $=this.__destroy_into_raw();Y.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return Y.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();Y.intounderlyingbytesource_cancel($)}pull($){let Q=Y.intounderlyingbytesource_pull(this.__wbg_ptr,N($));return C(Q)}start($){Y.intounderlyingbytesource_start(this.__wbg_ptr,N($))}get type(){let $=Y.intounderlyingbytesource_type(this.__wbg_ptr);return JR[$]}}if(Symbol.dispose)Xz.prototype[Symbol.dispose]=Xz.prototype.free;class zz{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,qR.unregister(this),$}free(){let $=this.__destroy_into_raw();Y.__wbg_intounderlyingsink_free($,0)}abort($){let Q=this.__destroy_into_raw(),Z=Y.intounderlyingsink_abort(Q,N($));return C(Z)}close(){let $=this.__destroy_into_raw(),Q=Y.intounderlyingsink_close($);return C(Q)}write($){let Q=Y.intounderlyingsink_write(this.__wbg_ptr,N($));return C(Q)}}if(Symbol.dispose)zz.prototype[Symbol.dispose]=zz.prototype.free;class n${static __wrap($){let Q=Object.create(n$.prototype);return Q.__wbg_ptr=$,Mz.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,Mz.unregister(this),$}free(){let $=this.__destroy_into_raw();Y.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();Y.intounderlyingsource_cancel($)}pull($){let Q=Y.intounderlyingsource_pull(this.__wbg_ptr,N($));return C(Q)}}if(Symbol.dispose)n$.prototype[Symbol.dispose]=n$.prototype.free;class d${static __wrap($){let Q=Object.create(d$.prototype);return Q.__wbg_ptr=$,Wz.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,Wz.unregister(this),$}free(){let $=this.__destroy_into_raw();Y.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let Q=Y.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,N($));return C(Q)}addChatLabel($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_addChatLabel(this.__wbg_ptr,Z,q,K,J);return C(z)}addLidPnMappings($){let Q=Y.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,N($));return C(Q)}addMessageLabel($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_addMessageLabel(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}archiveChat($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_archiveChat(this.__wbg_ptr,Z,q,Q);return C(K)}assertSessions($,Q){let Z=g($,Y.__wbindgen_export),q=U,K=Y.wasmwhatsappclient_assertSessions(this.__wbg_ptr,Z,q,Q);return C(K)}cleanDirtyBits($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_cleanDirtyBits(this.__wbg_ptr,Z,q,!d(Q),d(Q)?0:Q);return C(K)}clearChat($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=Y.wasmwhatsappclient_clearChat(this.__wbg_ptr,q,K,Q,Z);return C(J)}communityFetchAllParticipating(){let $=Y.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return C($)}communityParticipantsUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}connect(){let $=Y.wasmwhatsappclient_connect(this.__wbg_ptr);return C($)}createCommunity($,Q,Z,q,K){let J=L($,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;var G=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_createCommunity(this.__wbg_ptr,J,z,G,D,Z,q,K);return C(x)}createCommunitySubgroup($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}createGroup($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=g(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_createGroup(this.__wbg_ptr,Z,q,K,J);return C(z)}createLabel($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=Y.wasmwhatsappclient_createLabel(this.__wbg_ptr,q,K,J,z,Z);return C(G)}createParticipantNodesBytes($,Q,Z){let q=g($,Y.__wbindgen_export),K=U,J=p(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}createPoll($,Q,Z,q){let K=L($,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=g(Z,Y.__wbindgen_export),x=U,B=Y.wasmwhatsappclient_createPoll(this.__wbg_ptr,K,J,z,G,D,x,q);return C(B)}deactivateCommunity($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,Q,Z);return C(q)}deleteChat($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_deleteChat(this.__wbg_ptr,Q,Z);return C(q)}deleteLabel($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_deleteLabel(this.__wbg_ptr,Q,Z);return C(q)}deleteMessageForMe($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=Y.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,q,K,J,z,Z);return C(G)}deleteQuickReply($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_deleteQuickReply(this.__wbg_ptr,Q,Z);return C(q)}disconnect(){let $=Y.wasmwhatsappclient_disconnect(this.__wbg_ptr);return C($)}downloadMedia($,Q,Z,q,K,J){let z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=p(Q,Y.__wbindgen_export),x=U,B=p(Z,Y.__wbindgen_export),y=U,I=p(q,Y.__wbindgen_export),O=U,M=Y.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,z,G,D,x,B,y,I,O,K,N(J));return C(M)}downloadMediaStream($,Q,Z,q,K,J){try{let x=Y.__wbindgen_add_to_stack_pointer(-16),B=L($,Y.__wbindgen_export,Y.__wbindgen_export2),y=U,I=p(Q,Y.__wbindgen_export),O=U,M=p(Z,Y.__wbindgen_export),n=U,S=p(q,Y.__wbindgen_export),j=U;Y.wasmwhatsappclient_downloadMediaStream(x,this.__wbg_ptr,B,y,I,O,M,n,S,j,K,N(J));var z=T().getInt32(x+0,!0),G=T().getInt32(x+4,!0),D=T().getInt32(x+8,!0);if(D)throw C(G);return C(z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}encryptMediaStream($,Q,Z){let q=Y.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,N($),N(Q),N(Z));return C(q)}ensurePreKeys(){let $=Y.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return C($)}fetchBlocklist(){let $=Y.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return C($)}fetchMessageHistory($,Q,Z,q,K){let J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,J,z,G,D,q,K);return C(x)}fetchNewChatMessageCappingInfo(){let $=Y.wasmwhatsappclient_fetchNewChatMessageCappingInfo(this.__wbg_ptr);return C($)}fetchPrivacySettings(){let $=Y.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return C($)}fetchReachoutTimelock(){let $=Y.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return C($)}fetchStatus($){let Q=g($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,Q,Z);return C(q)}fetchUserInfo($){let Q=g($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,Q,Z);return C(q)}getAccount(){let $=Y.wasmwhatsappclient_getAccount(this.__wbg_ptr);return C($)}getBotList(){let $=Y.wasmwhatsappclient_getBotList(this.__wbg_ptr);return C($)}getBusinessProfile($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,Q,Z);return C(q)}getCatalog($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_getCatalog(this.__wbg_ptr,Z,q,N(Q));return C(K)}getCollections($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_getCollections(this.__wbg_ptr,Z,q,N(Q));return C(K)}getCommunitySubgroups($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,Q,Z);return C(q)}getCoreAllocationSnapshot(){let $=Y.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return C($)}getGroupMetadata($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,Q,Z);return C(q)}getJid(){let $=Y.wasmwhatsappclient_getJid(this.__wbg_ptr);return C($)}getLid(){let $=Y.wasmwhatsappclient_getLid(this.__wbg_ptr);return C($)}getMediaConn($){let Q=Y.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return C(Q)}getMemoryDiagnostics(){let $=Y.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return C($)}getOrder($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_getOrder(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}getPushName(){let $=Y.wasmwhatsappclient_getPushName(this.__wbg_ptr);return C($)}getUSyncDevices($,Q,Z){let q=g($,Y.__wbindgen_export),K=U,J=Y.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,q,K,Q,Z);return C(J)}groupAcceptInvite($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,Q,Z);return C(q)}groupAcceptInviteV4($,Q,Z,q){let K=L($,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),x=U,B=Y.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,K,J,z,G,Z,D,x);return C(B)}groupFetchAllParticipating(){let $=Y.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return C($)}groupGetInviteInfo($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,Q,Z);return C(q)}groupInviteCode($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,Q,Z);return C(q)}groupLeave($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupLeave(this.__wbg_ptr,Q,Z);return C(q)}groupMemberAddMode($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,Z,q,N(Q));return C(K)}groupParticipantsUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}groupRequestParticipantsList($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,Q,Z);return C(q)}groupRequestParticipantsUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}groupRevokeInvite($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,Q,Z);return C(q)}groupRevokeInviteV4($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,Z,q,K,J);return C(z)}groupSettingUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=Y.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,q,K,N(Q),Z);return C(J)}groupToggleEphemeral($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,Z,q,Q);return C(K)}groupUpdateDescription($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U;var K=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;let z=Y.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,Z,q,K,J);return C(z)}groupUpdateSubject($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,Z,q,K,J);return C(z)}isConnected(){return Y.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return Y.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let Q=g($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,Q,Z);return C(q)}jidToSignalProtocolAddress($){let Q,Z;try{let x=Y.__wbindgen_add_to_stack_pointer(-16),B=L($,Y.__wbindgen_export,Y.__wbindgen_export2),y=U;Y.wasmwhatsappclient_jidToSignalProtocolAddress(x,this.__wbg_ptr,B,y);var q=T().getInt32(x+0,!0),K=T().getInt32(x+4,!0),J=T().getInt32(x+8,!0),z=T().getInt32(x+12,!0),G=q,D=K;if(z)throw G=0,D=0,C(J);return Q=G,Z=D,q0(G,D)}finally{Y.__wbindgen_add_to_stack_pointer(16),Y.__wbindgen_export4(Q,Z,1)}}lidForPn($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_lidForPn(this.__wbg_ptr,Q,Z);return C(q)}linkCommunitySubgroups($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=g(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,Z,q,K,J);return C(z)}logout(){let $=Y.wasmwhatsappclient_logout(this.__wbg_ptr);return C($)}markChatAsRead($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,Z,q,Q);return C(K)}markPlayed($){let Q=Y.wasmwhatsappclient_markPlayed(this.__wbg_ptr,N($));return C(Q)}muteChat($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_muteChat(this.__wbg_ptr,Z,q,!d(Q),d(Q)?0:Q);return C(K)}newsletterAdminInfo($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterAdminInfo(this.__wbg_ptr,Q,Z);return C(q)}newsletterAdminMute($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_newsletterAdminMute(this.__wbg_ptr,Z,q,Q);return C(K)}newsletterChangeOwner($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_newsletterChangeOwner(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterCreate($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U;var K=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;let z=Y.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterDelete($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterDelete(this.__wbg_ptr,Q,Z);return C(q)}newsletterDemoteAdmin($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_newsletterDemoteAdmin(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterEditMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_newsletterEditMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}newsletterFollowerMute($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_newsletterFollowerMute(this.__wbg_ptr,Z,q,Q);return C(K)}newsletterFollowers($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_newsletterFollowers(this.__wbg_ptr,Z,q,Q);return C(K)}newsletterList(){let $=Y.wasmwhatsappclient_newsletterList(this.__wbg_ptr);return C($)}newsletterMessages($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U;var J=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;let G=Y.wasmwhatsappclient_newsletterMessages(this.__wbg_ptr,q,K,Q,J,z);return C(G)}newsletterMetadata($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,Q,Z);return C(q)}newsletterMetadataByInvite($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterMetadataByInvite(this.__wbg_ptr,Q,Z);return C(q)}newsletterMute($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,Z,q,Q);return C(K)}newsletterReactMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;var G=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}newsletterRemovePicture($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterRemovePicture(this.__wbg_ptr,Q,Z);return C(q)}newsletterRevokeMessage($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_newsletterRevokeMessage(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterSetPicture($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=p(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_newsletterSetPicture(this.__wbg_ptr,Z,q,K,J);return C(z)}newsletterSubscribe($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,Q,Z);return C(q)}newsletterSubscribeLiveUpdates($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterSubscribeLiveUpdates(this.__wbg_ptr,Q,Z);return C(q)}newsletterUnsubscribe($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,Q,Z);return C(q)}newsletterUpdate($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U;var J=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_newsletterUpdate(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}pinChat($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_pinChat(this.__wbg_ptr,Z,q,Q);return C(K)}pnForLid($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_pnForLid(this.__wbg_ptr,Q,Z);return C(q)}presenceSubscribe($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,Q,Z);return C(q)}profilePictureUrl($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=Y.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,q,K,N(Q),!d(Z),d(Z)?0:Z);return C(J)}queryNode($,Q){let Z=Y.wasmwhatsappclient_queryNode(this.__wbg_ptr,N($),!d(Q),d(Q)?0:Q);return C(Z)}queryUsync($){let Q=Y.wasmwhatsappclient_queryUsync(this.__wbg_ptr,N($));return C(Q)}readMessages($){let Q=Y.wasmwhatsappclient_readMessages(this.__wbg_ptr,N($));return C(Q)}reconnect(){let $=Y.wasmwhatsappclient_reconnect(this.__wbg_ptr);return C($)}refreshPreKeys($){let Q=Y.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,d($)?Number.MAX_SAFE_INTEGER:$>>>0);return C(Q)}rejectCall($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_rejectCall(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}rejectStanza($,Q,Z){let q=Y.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,N($),Q,d(Z)?Number.MAX_SAFE_INTEGER:Z>>0);return C(q)}relayMessageBytes($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=p(Q,Y.__wbindgen_export),z=U;var G=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}relayMessageBytesWithOptions($,Q,Z,q,K,J){let z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=p(Q,Y.__wbindgen_export),x=U;var B=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),y=U;let I=Y.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,z,G,D,x,B,y,N(q),K,J);return C(I)}removeBusinessCoverPhoto($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_removeBusinessCoverPhoto(this.__wbg_ptr,Q,Z);return C(q)}removeChatLabel($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_removeChatLabel(this.__wbg_ptr,Z,q,K,J);return C(z)}removeContact($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_removeContact(this.__wbg_ptr,Q,Z);return C(q)}removeGroupProfilePicture($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,Q,Z);return C(q)}removeMessageLabel($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_removeMessageLabel(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}removeProfilePicture(){let $=Y.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return C($)}requestMediaReupload($,Q,Z,q,K){let J=L($,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=p(Z,Y.__wbindgen_export),B=U;var y=d(K)?0:L(K,Y.__wbindgen_export,Y.__wbindgen_export2),I=U;let O=Y.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,J,z,G,D,x,B,q,y,I);return C(O)}requestMessageRetry($,Q){let Z=Y.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,N($),d(Q)?16777215:Q?1:0);return C(Z)}requestPairingCode($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U;var K=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;let z=Y.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,Z,q,K,J);return C(z)}retransmitMessageBytes($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=p(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,q,K,J,z,N(Z));return C(G)}revokeMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;var G=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U;let x=Y.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}rotateSignedKey(){let $=Y.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return C($)}run(){try{let Z=Y.__wbindgen_add_to_stack_pointer(-16);Y.wasmwhatsappclient_run(Z,this.__wbg_ptr);var $=T().getInt32(Z+0,!0),Q=T().getInt32(Z+4,!0);if(Q)throw C($)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}saveContact($,Q,Z,q){let K=L($,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;var z=d(Q)?0:L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),G=U,D=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),x=U;let B=Y.wasmwhatsappclient_saveContact(this.__wbg_ptr,K,J,z,G,D,x,q);return C(B)}sendChatState($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_sendChatState(this.__wbg_ptr,Z,q,N(Q));return C(K)}sendCommentBytes($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=p(Z,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,q,K,N(Q),J,z);return C(G)}sendMessageBytes($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=p(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,Z,q,K,J);return C(z)}sendNode($){let Q=Y.wasmwhatsappclient_sendNode(this.__wbg_ptr,N($));return C(Q)}sendPresence($){let Q=Y.wasmwhatsappclient_sendPresence(this.__wbg_ptr,N($));return C(Q)}sendRawMessage($){let Q=p($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,Q,Z);return C(q)}sendReaction($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U;var J=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;let G=Y.wasmwhatsappclient_sendReaction(this.__wbg_ptr,q,K,N(Q),J,z);return C(G)}sendStatusMessageBytes($,Q){let Z=p($,Y.__wbindgen_export),q=U,K=g(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,Z,q,K,J);return C(z)}sendStatusMessageBytesWithOptions($,Q,Z,q,K){let J=p($,Y.__wbindgen_export),z=U,G=g(Q,Y.__wbindgen_export),D=U;var x=d(Z)?0:L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),B=U;let y=Y.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,J,z,G,D,x,B,N(q),K);return C(y)}setAutoReconnect($){Y.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setBusinessCoverPhoto($){let Q=Y.wasmwhatsappclient_setBusinessCoverPhoto(this.__wbg_ptr,N($));return C(Q)}setClientProfile($){let Q=Y.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,N($));return C(Q)}setDeviceProps($){let Q=Y.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,N($));return C(Q)}setGroupProfilePicture($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=p(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,Z,q,K,J);return C(z)}setInitialPushName($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,Q,Z);return C(q)}setLinkPreviewsDisabled($){let Q=Y.wasmwhatsappclient_setLinkPreviewsDisabled(this.__wbg_ptr,$);return C(Q)}setPushName($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_setPushName(this.__wbg_ptr,Q,Z);return C(q)}setQuickReply($,Q,Z,q,K){let J=L($,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),B=U,y=g(q,Y.__wbindgen_export),I=U,O=Y.wasmwhatsappclient_setQuickReply(this.__wbg_ptr,J,z,G,D,x,B,y,I,K);return C(O)}setRawNodeForwarding($){Y.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}setUserStatusMute($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_setUserStatusMute(this.__wbg_ptr,Z,q,Q);return C(K)}signalDecryptGroupMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}signalDecryptMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}signalDeleteSenderKey($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,Z,q,K,J);return C(z)}signalDeleteSessions($){let Q=g($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,Q,Z);return C(q)}signalEncryptGroupMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=p(Q,Y.__wbindgen_export),z=U,G=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=Y.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}signalEncryptMessage($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=p(Q,Y.__wbindgen_export),J=U,z=Y.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,Z,q,K,J);return C(z)}signalGetSenderKeyDistribution($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,Z,q,K,J);return C(z)}signalGetSessionInfo($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,Q,Z);return C(q)}signalHasSenderKey($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,Z,q,K,J);return C(z)}signalInstallPreKeyBundle($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,Z,q,N(Q));return C(K)}signalMigrateSessions($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,Z,q,K,J);return C(z)}signalProcessSenderKeyDistribution($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=p(Z,Y.__wbindgen_export),D=U,x=Y.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,q,K,J,z,G,D);return C(x)}signalValidateSession($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,Q,Z);return C(q)}starMessage($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=Y.wasmwhatsappclient_starMessage(this.__wbg_ptr,q,K,J,z,Z);return C(G)}unlinkCommunitySubgroups($,Q,Z){let q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),K=U,J=g(Q,Y.__wbindgen_export),z=U,G=Y.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,q,K,J,z,Z);return C(G)}updateBlockStatus($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=Y.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,Z,q,N(Q));return C(K)}updateBusinessProfile($){let Q=Y.wasmwhatsappclient_updateBusinessProfile(this.__wbg_ptr,N($));return C(Q)}updateDefaultDisappearingMode($){let Q=Y.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return C(Q)}updateMemberLabel($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,Z,q,K,J);return C(z)}updatePrivacySetting($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U,z=Y.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,Z,q,K,J);return C(z)}updateProfilePicture($){let Q=p($,Y.__wbindgen_export),Z=U,q=Y.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,Q,Z);return C(q)}updateProfileStatus($){let Q=L($,Y.__wbindgen_export,Y.__wbindgen_export2),Z=U,q=Y.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,Q,Z);return C(q)}uploadEncryptedMediaStream($,Q,Z,q,K,J){let z=p(Q,Y.__wbindgen_export),G=U,D=p(Z,Y.__wbindgen_export),x=U,B=p(q,Y.__wbindgen_export),y=U,I=Y.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,N($),z,G,D,x,B,y,K,N(J));return C(I)}uploadMedia($,Q){let Z=p($,Y.__wbindgen_export),q=U,K=Y.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,Z,q,N(Q));return C(K)}validateKeyBundle(){let $=Y.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return C($)}votePoll($,Q,Z,q,K){let J=L($,Y.__wbindgen_export,Y.__wbindgen_export2),z=U,G=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),D=U,x=L(Z,Y.__wbindgen_export,Y.__wbindgen_export2),B=U,y=p(q,Y.__wbindgen_export),I=U,O=g(K,Y.__wbindgen_export),M=U,n=Y.wasmwhatsappclient_votePoll(this.__wbg_ptr,J,z,G,D,x,B,y,I,O,M);return C(n)}waitForConnected($){let Q=Y.wasmwhatsappclient_waitForConnected(this.__wbg_ptr,$);return C(Q)}waitForSocket($){let Q=Y.wasmwhatsappclient_waitForSocket(this.__wbg_ptr,$);return C(Q)}}if(Symbol.dispose)d$.prototype[Symbol.dispose]=d$.prototype.free;function HO(){Y.beginWasmAllocationProfile()}function GO($,Q){try{let J=Y.__wbindgen_add_to_stack_pointer(-16),z=p($,Y.__wbindgen_export),G=U,D=p(Q,Y.__wbindgen_export),x=U;Y.calculateAgreement(J,z,G,D,x);var Z=T().getInt32(J+0,!0),q=T().getInt32(J+4,!0),K=T().getInt32(J+8,!0);if(K)throw C(q);return C(Z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function UO($,Q){try{let J=Y.__wbindgen_add_to_stack_pointer(-16),z=p($,Y.__wbindgen_export),G=U,D=p(Q,Y.__wbindgen_export),x=U;Y.calculateSignature(J,z,G,D,x);var Z=T().getInt32(J+0,!0),q=T().getInt32(J+4,!0),K=T().getInt32(J+8,!0);if(K)throw C(q);return C(Z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function Sz($,Q,Z,q,K,J,z){let G=Y.createWhatsAppClient(N($),N(Q),d(Z)?0:N(Z),d(q)?0:N(q),d(K)?0:N(K),d(J)?0:N(J),d(z)?0:N(z));return C(G)}function CO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16),J=p($,Y.__wbindgen_export),z=U;Y.decodeSenderKeyRecordComponents(K,J,z);var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function xO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16),J=p($,Y.__wbindgen_export),z=U;Y.decodeSessionRecordComponents(K,J,z);var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function DO($,Q,Z,q,K,J){try{let x=Y.__wbindgen_add_to_stack_pointer(-16),B=p($,Y.__wbindgen_export),y=U,I=p(Q,Y.__wbindgen_export),O=U,M=p(Z,Y.__wbindgen_export),n=U,S=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),j=U,R0=L(K,Y.__wbindgen_export,Y.__wbindgen_export2),O0=U,_0=L(J,Y.__wbindgen_export,Y.__wbindgen_export2),A0=U;Y.decryptEventResponsePayload(x,B,y,I,O,M,n,S,j,R0,O0,_0,A0);var z=T().getInt32(x+0,!0),G=T().getInt32(x+4,!0),D=T().getInt32(x+8,!0);if(D)throw C(G);return C(z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function LO($,Q,Z,q,K,J,z){try{let I=Y.__wbindgen_add_to_stack_pointer(-16),O=p($,Y.__wbindgen_export),M=U,n=p(Q,Y.__wbindgen_export),S=U,j=p(Z,Y.__wbindgen_export),R0=U,O0=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),_0=U,A0=L(K,Y.__wbindgen_export,Y.__wbindgen_export2),l=U,v$=L(J,Y.__wbindgen_export,Y.__wbindgen_export2),oB=U,bB=g(z,Y.__wbindgen_export),u=U;Y.decryptPollVote(I,O,M,n,S,j,R0,O0,_0,A0,l,v$,oB,bB,u);var G=T().getInt32(I+0,!0),D=T().getInt32(I+4,!0),x=T().getInt32(I+8,!0),B=T().getInt32(I+12,!0);if(B)throw C(x);var y=E0(G,D).slice();return Y.__wbindgen_export4(G,D*4,4),y}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function FO($,Q,Z,q,K,J){try{let x=Y.__wbindgen_add_to_stack_pointer(-16),B=p($,Y.__wbindgen_export),y=U,I=p(Q,Y.__wbindgen_export),O=U,M=p(Z,Y.__wbindgen_export),n=U,S=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),j=U,R0=L(K,Y.__wbindgen_export,Y.__wbindgen_export2),O0=U,_0=L(J,Y.__wbindgen_export,Y.__wbindgen_export2),A0=U;Y.decryptPollVotePayload(x,B,y,I,O,M,n,S,j,R0,O0,_0,A0);var z=T().getInt32(x+0,!0),G=T().getInt32(x+4,!0),D=T().getInt32(x+8,!0);if(D)throw C(G);return C(z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function PO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16);Y.encodeSenderKeyRecordComponents(K,N($));var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function kO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16);Y.encodeSessionRecordComponents(K,N($));var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function NO(){let $=Y.generateKeyPair();return C($)}function BO(){let $=Y.getEnabledFeatures();return C($)}function RO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16),J=p($,Y.__wbindgen_export),z=U;Y.getPublicFromPrivateKey(K,J,z);var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function OO(){try{let q=Y.__wbindgen_add_to_stack_pointer(-16);Y.getWasmAllocationSnapshot(q);var $=T().getInt32(q+0,!0),Q=T().getInt32(q+4,!0),Z=T().getInt32(q+8,!0);if(Z)throw C(Q);return C($)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function AO(){return Y.getWasmMemoryBytes()}function EO(){return Y.hasLogger()!==0}function MO($,Q,Z){try{let z=Y.__wbindgen_add_to_stack_pointer(-16),G=p($,Y.__wbindgen_export),D=U;Y.hkdf(z,G,D,Q,N(Z));var q=T().getInt32(z+0,!0),K=T().getInt32(z+4,!0),J=T().getInt32(z+8,!0);if(J)throw C(K);return C(q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function WO($,Q){try{let J=Y.__wbindgen_add_to_stack_pointer(-16);Y.importLegacySessionRecordV1(J,N($),N(Q));var Z=T().getInt32(J+0,!0),q=T().getInt32(J+4,!0),K=T().getInt32(J+8,!0);if(K)throw C(q);return C(Z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function IO($,Q){try{let J=Y.__wbindgen_add_to_stack_pointer(-16),z=p($,Y.__wbindgen_export),G=U;Y.inflateZlib(J,z,G,!d(Q),d(Q)?0:Q);var Z=T().getInt32(J+0,!0),q=T().getInt32(J+4,!0),K=T().getInt32(J+8,!0);if(K)throw C(q);return C(Z)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function vz($,Q){Y.initWasmEngine(N($),N(Q))}function SO($,Q){let Z=L($,Y.__wbindgen_export,Y.__wbindgen_export2),q=U,K=L(Q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;Y.logMessage(Z,q,K,J)}function vO($){let Q=p($,Y.__wbindgen_export),Z=U,q=Y.md5(Q,Z);return C(q)}function TO($){try{let K=Y.__wbindgen_add_to_stack_pointer(-16),J=p($,Y.__wbindgen_export),z=U;Y.projectLegacySessionRecordV1(K,J,z);var Q=T().getInt32(K+0,!0),Z=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw C(Z);return C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function yO($){try{let q=Y.__wbindgen_add_to_stack_pointer(-16);Y.setLogger(q,N($));var Q=T().getInt32(q+0,!0),Z=T().getInt32(q+4,!0);if(Z)throw C(Q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function fO($){Y.updateLogger(N($))}function _O($,Q,Z){try{let z=Y.__wbindgen_add_to_stack_pointer(-16),G=p($,Y.__wbindgen_export),D=U,x=p(Q,Y.__wbindgen_export),B=U,y=p(Z,Y.__wbindgen_export),I=U;Y.verifySignature(z,G,D,x,B,y,I);var q=T().getInt32(z+0,!0),K=T().getInt32(z+4,!0),J=T().getInt32(z+8,!0);if(J)throw C(K);return q!==0}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function rB(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(Q,Z){let q=Error(q0(Q,Z));return N(q)},__wbg_Number_9a4e0ecb0fa16705:function(Q){return Number(P(Q))},__wbg_String_8564e559799eccda:function(Q,Z){let q=String(P(Z)),K=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;T().setInt32(Q+4,J,!0),T().setInt32(Q+0,K,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(Q,Z){let q=P(Z),K=typeof q==="bigint"?q:void 0;T().setBigInt64(Q+8,d(K)?BigInt(0):K,!0),T().setInt32(Q+0,!d(K),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(Q){let Z=P(Q),q=typeof Z==="boolean"?Z:void 0;return d(q)?16777215:q?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(Q,Z){let q=Yz(P(Z)),K=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;T().setInt32(Q+4,J,!0),T().setInt32(Q+0,K,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(Q,Z){return P(Q)in P(Z)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(Q){return typeof P(Q)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(Q){return typeof P(Q)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(Q){return P(Q)===null},__wbg___wbindgen_is_object_a27215656b807791:function(Q){let Z=P(Q);return typeof Z==="object"&&Z!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(Q){return typeof P(Q)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(Q){return P(Q)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(Q,Z){return P(Q)===P(Z)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(Q,Z){return P(Q)==P(Z)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(Q,Z){let q=P(Z),K=typeof q==="number"?q:void 0;T().setFloat64(Q+8,d(K)?0:K,!0),T().setInt32(Q+0,!d(K),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(Q,Z){let q=P(Z),K=typeof q==="string"?q:void 0;var J=d(K)?0:L(K,Y.__wbindgen_export,Y.__wbindgen_export2),z=U;T().setInt32(Q+4,z,!0),T().setInt32(Q+0,J,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(Q,Z){throw Error(q0(Q,Z))},__wbg__wbg_cb_unref_fffb441def202758:function(Q){P(Q)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return s(function(Q,Z,q){let K=P(Q).apply(P(Z),P(q));return N(K)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(Q,Z,q,K){let J=P(Q).bind(P(Z),P(q),P(K));return N(J)},__wbg_buffer_54b87055582c8a81:function(Q){let Z=P(Q).buffer;return N(Z)},__wbg_byobRequest_06b654bb15590436:function(Q){let Z=P(Q).byobRequest;return d(Z)?0:N(Z)},__wbg_byteLength_41862ca4020b9c43:function(Q){return P(Q).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(Q){return P(Q).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return s(function(Q,Z,q,K,J){let z=P(Q).call(P(Z),P(q),P(K),P(J));return N(z)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return s(function(Q,Z){let q=P(Q).call(P(Z));return N(q)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return s(function(Q,Z,q){let K=P(Q).call(P(Z),P(q));return N(K)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return s(function(Q,Z,q,K,J,z){let G=P(Q).call(P(Z),P(q),P(K),P(J),P(z));return N(G)},arguments)},__wbg_call_e3b662382210db98:function(){return s(function(Q,Z,q,K){let J=P(Q).call(P(Z),P(q),P(K));return N(J)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(Q){let Z=P(Q).cancel();return N(Z)},__wbg_catch_c1a60df4c30d76d3:function(Q,Z){let q=P(Q).catch(P(Z));return N(q)},__wbg_close_1e6096d41f7ce5d0:function(Q){let Z=P(Q).close();return N(Z)},__wbg_close_249a23304523681b:function(){return s(function(Q){P(Q).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return s(function(Q){P(Q).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(Q,Z,q,K){P(Q).debug(P(Z),q===0?void 0:q0(q,K))},__wbg_debug_cf53e2612c84e4ee:function(Q,Z,q,K){console.debug(P(Q),P(Z),P(q),P(K))},__wbg_done_89b2b13e91a60321:function(Q){return P(Q).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return s(function(Q,Z){P(Q).enqueue(P(Z))},arguments)},__wbg_entries_015dc610cd81ede0:function(Q){let Z=Object.entries(P(Q));return N(Z)},__wbg_error_657700d53a73881f:function(Q,Z,q,K){console.error(P(Q),P(Z),P(q),P(K))},__wbg_error_9cce413345f88385:function(Q,Z,q,K){P(Q).error(P(Z),q===0?void 0:q0(q,K))},__wbg_error_a6fa202b58aa1cd3:function(Q,Z){let q,K;try{q=Q,K=Z,console.error(q0(Q,Z))}finally{Y.__wbindgen_export4(q,K,1)}},__wbg_from_13e323c65fc8f464:function(Q){let Z=Array.from(P(Q));return N(Z)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return s(function(Q,Z){globalThis.crypto.getRandomValues(T$(Q,Z))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return s(function(Q){let Z=P(Q).getReader();return N(Z)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return s(function(Q){let Z=P(Q).getWriter();return N(Z)},arguments)},__wbg_get_507a50627bffa49b:function(Q,Z){let q=P(Q)[Z>>>0];return N(q)},__wbg_get_78f252d074a84d0b:function(){return s(function(Q,Z){let q=Reflect.get(P(Q),P(Z));return N(q)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return s(function(Q,Z){let q=Reflect.get(P(Q),P(Z));return N(q)},arguments)},__wbg_get_done_670108eb06ecbe46:function(Q){let Z=P(Q).done;return d(Z)?16777215:Z?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(Q,Z){let q=P(Q)[Z>>>0];return N(q)},__wbg_get_value_f465f5be30aa0963:function(Q){let Z=P(Q).value;return N(Z)},__wbg_get_with_ref_key_6412cf3094599694:function(Q,Z){let q=P(Q)[P(Z)];return N(q)},__wbg_info_79f5309d69d9c70e:function(Q,Z,q,K){console.info(P(Q),P(Z),P(q),P(K))},__wbg_info_b728e87a346ff6a2:function(Q,Z,q,K){P(Q).info(P(Z),q===0?void 0:q0(q,K))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(Q){let Z;try{Z=P(Q)instanceof ArrayBuffer}catch(K){Z=!1}return Z},__wbg_instanceof_Array_de0fa65266a8c7c0:function(Q){let Z;try{Z=P(Q)instanceof Array}catch(K){Z=!1}return Z},__wbg_instanceof_Error_1fdac9f13a8181ba:function(Q){let Z;try{Z=P(Q)instanceof Error}catch(K){Z=!1}return Z},__wbg_instanceof_Map_e5b5e3db98422fcc:function(Q){let Z;try{Z=P(Q)instanceof Map}catch(K){Z=!1}return Z},__wbg_instanceof_Object_33f20e6f12439f3e:function(Q){let Z;try{Z=P(Q)instanceof Object}catch(K){Z=!1}return Z},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(Q){let Z;try{Z=P(Q)instanceof Promise}catch(K){Z=!1}return Z},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(Q){let Z;try{Z=P(Q)instanceof Uint8Array}catch(K){Z=!1}return Z},__wbg_isArray_0677c962b281d01a:function(Q){return Array.isArray(P(Q))},__wbg_isSafeInteger_04f36e4056f1b851:function(Q){return Number.isSafeInteger(P(Q))},__wbg_iterator_6f722e4a93058b71:function(){return N(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(Q){let Z=Object.keys(P(Q));return N(Z)},__wbg_length_1f0964f4a5e2c6d8:function(Q){return P(Q).length},__wbg_length_370319915dc99107:function(Q){return P(Q).length},__wbg_level_4b50b181832c5acf:function(Q,Z){let q=P(Z).level,K=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;T().setInt32(Q+4,J,!0),T().setInt32(Q+0,K,!0)},__wbg_log_a45418e25b210a4c:function(Q,Z,q,K){console.log(P(Q),P(Z),P(q),P(K))},__wbg_message_8326fb1d549bebc5:function(Q){let Z=P(Q).message;return N(Z)},__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,Z){let q=Error(q0(Q,Z));return N(q)},__wbg_new_cd45aabdf6073e84:function(Q){let Z=new Uint8Array(P(Q));return N(Z)},__wbg_new_da52cf8fe3429cb2:function(){return N({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(Q,Z){let q=new Uint32Array(zR(Q,Z));return N(q)},__wbg_new_from_slice_77cdfb7977362f3c:function(Q,Z){let q=new Uint8Array(T$(Q,Z));return N(q)},__wbg_new_typed_1824d93f294193e5:function(Q,Z){try{var q={a:Q,b:Z},K=(z,G)=>{let D=q.a;q.a=0;try{return QR(D,q.b,z,G)}finally{q.a=D}};let J=new Promise(K);return N(J)}finally{q.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(Q,Z,q){let K=new Uint8Array(P(Q),Z>>>0,q>>>0);return N(K)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(Q,Z){let q=new ReadableStream(n$.__wrap(Q),C(Z));return N(q)},__wbg_new_with_length_e6785c33c8e4cce8:function(Q){let Z=new Uint8Array(Q>>>0);return N(Z)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(Q){let Z=Array(Q>>>0);return N(Z)},__wbg_next_6dbf2c0ac8cde20f:function(Q){let Z=P(Q).next;return N(Z)},__wbg_next_71f2aa1cb3d1e37e:function(){return s(function(Q){let Z=P(Q).next();return N(Z)},arguments)},__wbg_now_44881ed1d5dba857:function(){return s(function(){return performance.now()},arguments)},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_now_fefb743ab429013f:function(){return performance.now()},__wbg_of_2bf3ed8a776ff19a:function(Q,Z,q,K){let J=Array.of(P(Q),P(Z),P(q),P(K));return N(J)},__wbg_prototypesetcall_2592ffff58ff115d:function(Q,Z,q){Uint8Array.prototype.set.call(T$(Q,Z),P(q))},__wbg_prototypesetcall_4770620bbe4688a0:function(Q,Z,q){Uint8Array.prototype.set.call(T$(Q,Z),P(q))},__wbg_push_d2ae3af0c1217ae6:function(Q,Z){return P(Q).push(P(Z))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(Q){let Z=P(Q).queueMicrotask;return N(Z)},__wbg_queueMicrotask_6a09b7bc46549209:function(Q){queueMicrotask(P(Q))},__wbg_read_8afa15f12a160ef8:function(Q){let Z=P(Q).read();return N(Z)},__wbg_ready_68b537848a5c627a:function(Q){let Z=P(Q).ready;return N(Z)},__wbg_releaseLock_33c25ace78b2d4c6:function(Q){P(Q).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(Q){P(Q).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(Q){let Z=Promise.resolve(P(Q));return N(Z)},__wbg_respond_510e32df8aeb6817:function(){return s(function(Q,Z){P(Q).respond(Z>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(Q,Z,q){P(Q).set(T$(Z,q))},__wbg_set_575dd786d51585f8:function(Q,Z,q){let K=P(Q).set(P(Z),P(q));return N(K)},__wbg_set_6be42768c690e380:function(Q,Z,q){P(Q)[C(Z)]=C(q)},__wbg_set_8535240470bf2500:function(){return s(function(Q,Z,q){return Reflect.set(P(Q),P(Z),P(q))},arguments)},__wbg_set_8a16b38e4805b298:function(Q,Z,q){P(Q)[Z>>>0]=C(q)},__wbg_set_high_water_mark_44d043cd607dd13a:function(Q,Z){P(Q).highWaterMark=Z},__wbg_set_name_3bbc583faefa4193:function(Q,Z,q){P(Q).name=q0(Z,q)},__wbg_stack_3b0d974bbf31e44f:function(Q,Z){let q=P(Z).stack,K=L(q,Y.__wbindgen_export,Y.__wbindgen_export2),J=U;T().setInt32(Q+4,J,!0),T().setInt32(Q+0,K,!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,Z,q){let K=P(Q).subarray(Z>>>0,q>>>0);return N(K)},__wbg_then_16d107c451e9905d:function(Q,Z,q){let K=P(Q).then(P(Z),P(q));return N(K)},__wbg_then_6ec10ae38b3e92f7:function(Q,Z){let q=P(Q).then(P(Z));return N(q)},__wbg_trace_58264fbce2ceb5e6:function(Q,Z,q,K){P(Q).trace(P(Z),q===0?void 0:q0(q,K))},__wbg_value_a5d5488a9589444a:function(Q){let Z=P(Q).value;return N(Z)},__wbg_view_21f1d4a4f175dfa9:function(Q){let Z=P(Q).view;return d(Z)?0:N(Z)},__wbg_warn_77c4eb4a21e10a21:function(Q,Z,q,K){console.warn(P(Q),P(Z),P(q),P(K))},__wbg_warn_db531770752932a9:function(Q,Z,q,K){P(Q).warn(P(Z),q===0?void 0:q0(q,K))},__wbg_wasmwhatsappclient_new:function(Q){let Z=d$.__wrap(Q);return N(Z)},__wbg_write_f6dc0059c3feedce:function(Q,Z){let q=P(Q).write(P(Z));return N(q)},__wbindgen_cast_0000000000000001:function(Q,Z){let q=h$(Q,Z,sB);return N(q)},__wbindgen_cast_0000000000000002:function(Q,Z){let q=h$(Q,Z,$R);return N(q)},__wbindgen_cast_0000000000000003:function(Q,Z){let q=h$(Q,Z,ZR);return N(q)},__wbindgen_cast_0000000000000004:function(Q,Z){let q=h$(Q,Z,eB);return N(q)},__wbindgen_cast_0000000000000005:function(Q,Z){let q=h$(Q,Z,aB);return N(q)},__wbindgen_cast_0000000000000006:function(Q){return N(Q)},__wbindgen_cast_0000000000000007:function(Q){return N(Q)},__wbindgen_cast_0000000000000008:function(Q,Z){let q=T$(Q,Z);return N(q)},__wbindgen_cast_0000000000000009:function(Q,Z){let q=q0(Q,Z);return N(q)},__wbindgen_cast_000000000000000a:function(Q){let Z=BigInt.asUintN(64,Q);return N(Z)},__wbindgen_cast_000000000000000b:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_000000000000000c:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_000000000000000d:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_000000000000000e:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_000000000000000f:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_0000000000000010:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_0000000000000011:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_0000000000000012:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_cast_0000000000000013:function(Q,Z){var q=E0(Q,Z).slice();return Y.__wbindgen_export4(Q,Z*4,4),N(q)},__wbindgen_object_clone_ref:function(Q){let Z=P(Q);return N(Z)},__wbindgen_object_drop_ref:function(Q){C(Q)}}}}function aB($,Q){Y.__wasm_bindgen_func_elem_4243($,Q)}function sB($,Q,Z){Y.__wasm_bindgen_func_elem_9069($,Q,N(Z))}function eB($,Q,Z){Y.__wasm_bindgen_func_elem_4244($,Q,N(Z))}function $R($,Q,Z){try{let J=Y.__wbindgen_add_to_stack_pointer(-16);Y.__wasm_bindgen_func_elem_25789(J,$,Q,N(Z));var q=T().getInt32(J+0,!0),K=T().getInt32(J+4,!0);if(K)throw C(q)}finally{Y.__wbindgen_add_to_stack_pointer(16)}}function QR($,Q,Z,q){Y.__wasm_bindgen_func_elem_25791($,Q,N(Z),N(q))}function ZR($,Q,Z){Y.__wasm_bindgen_func_elem_4245($,Q,Z)}var JR=["bytes"],KR=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbg_intounderlyingbytesource_free($,1)),qR=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbg_intounderlyingsink_free($,1)),Mz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbg_intounderlyingsource_free($,1)),Wz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbg_wasmwhatsappclient_free($,1));function N($){if(p$===f0.length)f0.push(f0.length+1);let Q=p$;return p$=f0[Q],f0[Q]=$,Q}var Iz=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>Y.__wbindgen_export5($.a,$.b));function Yz($){let Q=typeof $;if(Q=="number"||Q=="boolean"||$==null)return`${$}`;if(Q=="string")return`"${$}"`;if(Q=="symbol"){let K=$.description;if(K==null)return"Symbol";else return`Symbol(${K})`}if(Q=="function"){let K=$.name;if(typeof K=="string"&&K.length>0)return`Function(${K})`;else return"Function"}if(Array.isArray($)){let K=$.length,J="[";if(K>0)J+=Yz($[0]);for(let z=1;z<K;z++)J+=", "+Yz($[z]);return J+="]",J}let Z=/\[object ([^\]]+)\]/.exec(toString.call($)),q;if(Z&&Z.length>1)q=Z[1];else return toString.call($);if(q=="Object")try{return"Object("+JSON.stringify($)+")"}catch(K){return"Object"}if($ instanceof Error)return`${$.name}: ${$.message}
2
2
  ${$.stack}`;return q}function XR($){if($<1028)return;f0[$]=p$,p$=$}function E0($,Q){$=$>>>0;let Z=T(),q=[];for(let K=$;K<$+4*Q;K+=4)q.push(C(Z.getUint32(K,!0)));return q}function zR($,Q){return $=$>>>0,YR().subarray($/4,$/4+Q)}function T$($,Q){return $=$>>>0,y$().subarray($/1,$/1+Q)}var E$=null;function T(){if(E$===null||E$.buffer.detached===!0||E$.buffer.detached===void 0&&E$.buffer!==Y.memory.buffer)E$=new DataView(Y.memory.buffer);return E$}function q0($,Q){return HR($>>>0,Q)}var l$=null;function YR(){if(l$===null||l$.byteLength===0)l$=new Uint32Array(Y.memory.buffer);return l$}var u$=null;function y$(){if(u$===null||u$.byteLength===0)u$=new Uint8Array(Y.memory.buffer);return u$}function P($){return f0[$]}function s($,Q){try{return $.apply(this,Q)}catch(Z){Y.__wbindgen_export3(N(Z))}}var f0=Array(1024).fill(void 0);f0.push(void 0,null,!0,!1);var p$=f0.length;function d($){return $===void 0||$===null}function h$($,Q,Z){let q={a:$,b:Q,cnt:1},K=(...J)=>{q.cnt++;let z=q.a;q.a=0;try{return Z(z,q.b,...J)}finally{q.a=z,K._wbg_cb_unref()}};return K._wbg_cb_unref=()=>{if(--q.cnt===0)Y.__wbindgen_export5(q.a,q.b),q.a=0,Iz.unregister(q)},Iz.register(K,q,q),K}function p($,Q){let Z=Q($.length*1,1)>>>0;return y$().set($,Z/1),U=$.length,Z}function g($,Q){let Z=Q($.length*4,4)>>>0,q=T();for(let K=0;K<$.length;K++)q.setUint32(Z+4*K,N($[K]),!0);return U=$.length,Z}function L($,Q,Z){if(Z===void 0){let G=w$.encode($),D=Q(G.length,1)>>>0;return y$().subarray(D,D+G.length).set(G),U=G.length,D}let q=$.length,K=Q(q,1)>>>0,J=y$(),z=0;for(;z<q;z++){let G=$.charCodeAt(z);if(G>127)break;J[K+z]=G}if(z!==q){if(z!==0)$=$.slice(z);K=Z(K,q,q=z+$.length*3,1)>>>0;let G=y$().subarray(K+z,K+q),D=w$.encodeInto($,G);z+=D.written,K=Z(K,q,z,1)>>>0}return U=z,K}function C($){let Q=P($);return XR($),Q}var I6=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});I6.decode();var VR=2146435072,qz=0;function HR($,Q){if(qz+=Q,qz>=VR)I6=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),I6.decode(),qz=Q;return I6.decode(y$().subarray($,$+Q))}var w$=new TextEncoder;if(!("encodeInto"in w$))w$.encodeInto=function($,Q){let Z=w$.encode($);return Q.set(Z),{read:$.length,written:Z.length}};var U=0,GR,UR,Y;function CR($,Q){return UR=$,Y=$.exports,GR=Q,E$=null,l$=null,u$=null,Y}function Tz($){if(Y!==void 0)return Y;if($!==void 0)if(Object.getPrototypeOf($)===Object.prototype)({module:$}=$);else console.warn("using deprecated parameters for `initSync()`; pass a single object instead");let Q=rB();if(!($ instanceof WebAssembly.Module))$=new WebAssembly.Module($);let Z=new WebAssembly.Instance($,Q);return CR(Z,$)}var W6={};tB(W6,{protobufPackage:()=>MR,mentionMentionType:()=>pL,futureProofBehavior:()=>lL,consumerApplicationStatusTextMesageFontType:()=>_L,consumerApplicationMetadataSpecialTextSize:()=>fL,commandCommandType:()=>yL,WebNotificationsInfo:()=>xB,WebMessageInfo_StubType:()=>LN,WebMessageInfo_Status:()=>DN,WebMessageInfo_BizPrivacyStatus:()=>xN,WebMessageInfoWithMessageBytes:()=>Q0,WebMessageInfo:()=>b,WebLinkRenderConfig:()=>oL,WebFeatures_Flag:()=>CN,WebFeatures:()=>CB,WallpaperSettings:()=>U0,VirtualDeviceOutput:()=>M6,VerifiedNameCertificate_Details:()=>$z,VerifiedNameCertificate:()=>y0,UserReceipt:()=>E6,UserPassword_TransformerArg_Value:()=>A6,UserPassword_TransformerArg:()=>O6,UserPassword_Transformer:()=>UN,UserPassword_Encoding:()=>GN,UserPassword:()=>R6,UrlTrackingMap_UrlTrackingMapElement:()=>B6,UrlTrackingMap:()=>O$,UnCountedAssociatedMessageListWithMessageBytes:()=>N6,UnCountedAssociatedMessageList:()=>k6,ThreadID_ThreadType:()=>HN,ThreadID:()=>P6,TemplateButton_URLButton:()=>F6,TemplateButton_QuickReplyButton:()=>L6,TemplateButton_CallButton:()=>D6,TemplateButton:()=>x6,TapLinkAction:()=>C6,SyncdVersion:()=>B0,SyncdValue:()=>U6,SyncdSnapshotRecovery:()=>UB,SyncdSnapshot:()=>e6,SyncdRecord:()=>T0,SyncdPlainTextRecord:()=>G6,SyncdPatch:()=>s6,SyncdMutations:()=>a6,SyncdMutation_SyncdOperation:()=>VN,SyncdMutation:()=>v0,SyncdIndex:()=>H6,SyncActionValue_WamoUserIdentifierAction:()=>V6,SyncActionValue_WaffleAccountLinkStateAction_AccountLinkState:()=>YN,SyncActionValue_WaffleAccountLinkStateAction:()=>Y6,SyncActionValue_WASARootSecretAction_RootSecretEntry:()=>z6,SyncActionValue_WASARootSecretAction:()=>X6,SyncActionValue_UsernameChatStartModeAction_ChatStartMode:()=>zN,SyncActionValue_UsernameChatStartModeAction:()=>q6,SyncActionValue_UserStatusMuteAction:()=>K6,SyncActionValue_UnarchiveChatsSetting:()=>J6,SyncActionValue_UGCBot:()=>Z6,SyncActionValue_TimeFormatAction:()=>Q6,SyncActionValue_ThreadPinAction:()=>$6,SyncActionValue_SyncActionMessageRange:()=>J0,SyncActionValue_SyncActionMessage:()=>e9,SyncActionValue_SubscriptionsSyncV2Action_SubscriptionInfo:()=>s9,SyncActionValue_SubscriptionsSyncV2Action_PaidFeature:()=>a9,SyncActionValue_SubscriptionsSyncV2Action:()=>r9,SyncActionValue_SubscriptionAction:()=>t9,SyncActionValue_StickerAction:()=>R$,SyncActionValue_StatusPrivacyAction_StatusDistributionMode:()=>XN,SyncActionValue_StatusPrivacyAction_CustomList:()=>g9,SyncActionValue_StatusPrivacyAction:()=>m9,SyncActionValue_StatusPostOptInNotificationPreferencesAction:()=>i9,SyncActionValue_StarAction:()=>b9,SyncActionValue_SettingsSyncAction_SettingPlatform:()=>qN,SyncActionValue_SettingsSyncAction_SettingKey:()=>KN,SyncActionValue_SettingsSyncAction_MediaQualitySetting:()=>JN,SyncActionValue_SettingsSyncAction_DisplayMode:()=>ZN,SyncActionValue_SettingsSyncAction:()=>o9,SyncActionValue_RemoveRecentStickerAction:()=>c9,SyncActionValue_RecentEmojiWeightsAction:()=>j9,SyncActionValue_QuickReplyAction:()=>d9,SyncActionValue_PushNameSetting:()=>n9,SyncActionValue_PrivateProcessingSettingAction_PrivateProcessingStatus:()=>QN,SyncActionValue_PrivateProcessingSettingAction:()=>w9,SyncActionValue_PrivacySettingRelayAllCalls:()=>p9,SyncActionValue_PrivacySettingDisableLinkPreviewsAction:()=>u9,SyncActionValue_PrivacySettingChannelsPersonalisedRecommendationAction:()=>l9,SyncActionValue_PrimaryVersionAction:()=>h9,SyncActionValue_PrimaryFeature:()=>_9,SyncActionValue_PnForLidChatAction:()=>f9,SyncActionValue_PinAction:()=>y9,SyncActionValue_PaymentTosAction_PaymentNotice:()=>$N,SyncActionValue_PaymentTosAction:()=>T9,SyncActionValue_PaymentInfoAction:()=>v9,SyncActionValue_OutContactAction:()=>S9,SyncActionValue_NuxAction:()=>I9,SyncActionValue_NotificationActivitySettingAction_NotificationActivitySetting:()=>ek,SyncActionValue_NotificationActivitySettingAction:()=>W9,SyncActionValue_NoteEditAction_NoteType:()=>sk,SyncActionValue_NoteEditAction:()=>M9,SyncActionValue_NewsletterSavedInterestsAction:()=>E9,SyncActionValue_NctSaltSyncAction:()=>A9,SyncActionValue_MuteAction:()=>O9,SyncActionValue_MusicUserIdAction_MusicUserIdMapEntry:()=>h6,SyncActionValue_MusicUserIdAction:()=>R9,SyncActionValue_MerchantPaymentPartnerAction_Status:()=>ak,SyncActionValue_MerchantPaymentPartnerAction:()=>B9,SyncActionValue_MarketingMessageBroadcastAction:()=>N9,SyncActionValue_MarketingMessageAction_MarketingMessagePrototypeType:()=>rk,SyncActionValue_MarketingMessageAction:()=>k9,SyncActionValue_MarkChatAsReadAction:()=>P9,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIReplyMode:()=>tk,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIFeatureStatus:()=>gk,SyncActionValue_MaibaAIFeaturesControlAction:()=>F9,SyncActionValue_LockChatAction:()=>L9,SyncActionValue_LocaleSetting:()=>D9,SyncActionValue_LidContactAction:()=>x9,SyncActionValue_LabelReorderingAction:()=>C9,SyncActionValue_LabelEditAction_ListType:()=>mk,SyncActionValue_LabelEditAction:()=>U9,SyncActionValue_LabelAssociationAction:()=>G9,SyncActionValue_KeyExpiration:()=>H9,SyncActionValue_InteractiveMessageAction_InteractiveMessageActionMode:()=>ik,SyncActionValue_InteractiveMessageAction:()=>V9,SyncActionValue_FavoritesAction_Favorite:()=>Y9,SyncActionValue_FavoritesAction:()=>z9,SyncActionValue_ExternalWebBetaAction:()=>X9,SyncActionValue_DetectedOutcomesStatusAction:()=>q9,SyncActionValue_DeleteMessageForMeAction:()=>K9,SyncActionValue_DeleteIndividualCallLogAction:()=>J9,SyncActionValue_DeleteChatAction:()=>Z9,SyncActionValue_CustomerDataAction:()=>Q9,SyncActionValue_CustomPaymentMethodsAction:()=>$9,SyncActionValue_CustomPaymentMethodMetadata:()=>eX,SyncActionValue_CustomPaymentMethod:()=>sX,SyncActionValue_CtwaPerCustomerDataSharingAction:()=>aX,SyncActionValue_ContactAction:()=>rX,SyncActionValue_CoexV2VersionAction:()=>tX,SyncActionValue_ClearChatAction:()=>gX,SyncActionValue_ChatAssignmentOpenedStatusAction:()=>mX,SyncActionValue_ChatAssignmentAction:()=>iX,SyncActionValue_CallLogAction:()=>bX,SyncActionValue_BusinessBroadcastListAction:()=>oX,SyncActionValue_BusinessBroadcastInsightsAction:()=>cX,SyncActionValue_BusinessBroadcastCampaignStatus:()=>ck,SyncActionValue_BusinessBroadcastCampaignAction:()=>jX,SyncActionValue_BusinessBroadcastAssociationAction:()=>GB,SyncActionValue_BroadcastListParticipant:()=>dX,SyncActionValue_BotWelcomeRequestAction:()=>nX,SyncActionValue_BizAISettingsNudgeAction_BizAISettingsCategory:()=>bk,SyncActionValue_BizAISettingsNudgeAction:()=>wX,SyncActionValue_AvatarUpdatedAction_AvatarEventType:()=>ok,SyncActionValue_AvatarUpdatedAction:()=>pX,SyncActionValue_AutoOrganizeBusinessChatSetting:()=>uX,SyncActionValue_ArchiveChatAction:()=>lX,SyncActionValue_AndroidUnsupportedActions:()=>hX,SyncActionValue_AiThreadRenameAction:()=>_X,SyncActionValue_AgentAction:()=>fX,SyncActionValue:()=>S$,SyncActionData:()=>I$,SubProtocol:()=>o,StickerMetadata:()=>yX,StatusPSA:()=>TX,StatusMentionMessage:()=>vX,StatusAttribution_Type:()=>pk,StatusAttribution_StatusReshare_Source:()=>jk,StatusAttribution_StatusReshare_Metadata:()=>SX,StatusAttribution_StatusReshare:()=>IX,StatusAttribution_RLAttribution_Source:()=>dk,StatusAttribution_RLAttribution:()=>WX,StatusAttribution_Music:()=>MX,StatusAttribution_GroupStatus:()=>EX,StatusAttribution_ExternalShare_Source:()=>nk,StatusAttribution_ExternalShare:()=>AX,StatusAttribution_AiCreatedAttribution_Source:()=>wk,StatusAttribution_AiCreatedAttribution:()=>OX,StatusAttribution:()=>RX,SignedPreKeyRecordStructure:()=>HB,SignalMessage:()=>VB,SessionTransparencyType:()=>cL,SessionTransparencyMetadata:()=>BX,SessionStructure_PendingPreKey:()=>NX,SessionStructure_PendingKeyExchange:()=>kX,SessionStructure_Chain_MessageKey:()=>PX,SessionStructure_Chain_ChainKey:()=>FX,SessionStructure_Chain:()=>g0,SessionStructure:()=>m0,ServerErrorReceipt:()=>r6,SenderKeyStateStructure_SenderSigningKey:()=>LX,SenderKeyStateStructure_SenderMessageKey:()=>DX,SenderKeyStateStructure_SenderChainKey:()=>xX,SenderKeyStateStructure:()=>CX,SenderKeyRecordStructure:()=>YB,SenderKeyMessage:()=>t6,SenderKeyDistributionMessage:()=>g6,ScheduledMessageMetadata:()=>UX,RoutingInfo:()=>zB,ReportingTokenInfo:()=>GX,Reportable:()=>XB,RecordStructure:()=>qB,RecentEmojiWeight:()=>HX,Reaction:()=>VX,QuarantinedMessage:()=>YX,QP_FilterResult:()=>uk,QP_FilterParameters:()=>zX,QP_FilterClientNotSupportedConfig:()=>lk,QP_FilterClause:()=>j$,QP_Filter:()=>XX,QP_ClauseType:()=>hk,QP:()=>KB,Pushname:()=>qX,ProloguePayload:()=>JB,ProcessedVideo_VideoQuality:()=>_k,ProcessedVideo:()=>KX,PrivacySystemMessage:()=>jL,PrimaryEphemeralIdentity:()=>ZB,PremiumMessageInfo:()=>JX,PreKeySignalMessage:()=>QB,PreKeyRecordStructure:()=>$B,PollUpdate:()=>ZX,PollEncValue:()=>QX,PollAdditionalMetadata_PollNameHashHistoryEntry:()=>$X,PollAdditionalMetadata:()=>eq,Point:()=>sq,PinInChat_Type:()=>fk,PinInChat:()=>aq,PhotoChange:()=>rq,PhoneNumberToLIDMapping:()=>tq,PaymentInfo_TxnStatus:()=>yk,PaymentInfo_Status:()=>Tk,PaymentInfo_Currency:()=>vk,PaymentInfo:()=>i0,PaymentBackground_Type:()=>Sk,PaymentBackground_MediaData:()=>gq,PaymentBackground:()=>B$,PatchDebugData_Platform:()=>Ik,PatchDebugData:()=>eN,PastParticipants:()=>mq,PastParticipant_LeaveReason:()=>Wk,PastParticipant:()=>iq,PairingRequest:()=>sN,OrfThreadIdOutput:()=>aN,OrfThreadIdInput:()=>bq,NotificationSettings:()=>b0,NotificationMessageInfo:()=>rN,NoiseCertificate_Details:()=>tN,NoiseCertificate:()=>gN,MutationProps:()=>dL,MsgRowOpaqueData:()=>mN,MsgOpaqueData_PollVotesSnapshot:()=>oq,MsgOpaqueData_PollVoteSnapshot:()=>cq,MsgOpaqueData_PollType:()=>Mk,MsgOpaqueData_PollOption:()=>N$,MsgOpaqueData_PollContentType:()=>Ek,MsgOpaqueData_EventLocation:()=>jq,MsgOpaqueData:()=>o0,Money:()=>r,Message_VideoMessage_VideoSourceType:()=>Bk,Message_VideoMessage_Attribution:()=>Nk,Message_VideoMessage:()=>t,Message_VideoEndCard:()=>wq,Message_URLMetadata:()=>pq,Message_TemplateMessage_HydratedFourRowTemplate:()=>c0,Message_TemplateMessage_FourRowTemplate:()=>uq,Message_TemplateMessage:()=>F$,Message_TemplateButtonReplyMessage:()=>lq,Message_StickerSyncRMRMessage:()=>hq,Message_StickerPackMessage_StickerPackOrigin:()=>kk,Message_StickerPackMessage_Sticker:()=>_q,Message_StickerPackMessage:()=>fq,Message_StickerMessage:()=>L$,Message_StatusStickerInteractionMessage_StatusStickerType:()=>Pk,Message_StatusStickerInteractionMessage:()=>yq,Message_StatusQuotedMessage_StatusQuotedMessageType:()=>Fk,Message_StatusQuotedMessage:()=>Tq,Message_StatusQuestionAnswerMessage:()=>vq,Message_StatusNotificationMessage_StatusNotificationType:()=>Lk,Message_StatusNotificationMessage:()=>Sq,Message_SplitPaymentParticipant_SplitPaymentStatus:()=>Dk,Message_SplitPaymentParticipant:()=>Iq,Message_SplitPaymentMessage:()=>Wq,Message_SenderKeyDistributionMessage:()=>j0,Message_SendPaymentMessage:()=>Mq,Message_SecretEncryptedMessage_SecretEncType:()=>xk,Message_SecretEncryptedMessage:()=>Eq,Message_ScheduledCallEditMessage_EditType:()=>Ck,Message_ScheduledCallEditMessage:()=>Aq,Message_ScheduledCallCreationMessage_CallType:()=>Uk,Message_ScheduledCallCreationMessage:()=>Oq,Message_RootSecretDistributeMessage:()=>Rq,Message_RequestWelcomeMessageMetadata_WelcomeTrigger:()=>Gk,Message_RequestWelcomeMessageMetadata_LocalChatState:()=>Hk,Message_RequestWelcomeMessageMetadata:()=>Bq,Message_RequestPhoneNumberMessage:()=>Nq,Message_RequestPaymentMessage:()=>kq,Message_ReactionMessage:()=>Pq,Message_QuestionResponseMessage:()=>Fq,Message_ProtocolMessage_Type:()=>Vk,Message_ProtocolMessage:()=>Lq,Message_ProductMessage_ProductSnapshot:()=>Dq,Message_ProductMessage_CatalogSnapshot:()=>xq,Message_ProductMessage:()=>D$,Message_PollVoteMessage:()=>S0,Message_PollUpdateMessageMetadata:()=>N0,Message_PollUpdateMessage:()=>Cq,Message_PollType:()=>WP,Message_PollResultSnapshotMessage_PollVote:()=>Uq,Message_PollResultSnapshotMessage:()=>d0,Message_PollEncValue:()=>Gq,Message_PollCreationMessage_Option:()=>G0,Message_PollCreationMessage:()=>e,Message_PollContentType:()=>MP,Message_PollAddOptionMessage:()=>Hq,Message_PlaceholderMessage_PlaceholderType:()=>Yk,Message_PlaceholderMessage:()=>Vq,Message_PinInChatMessage_Type:()=>zk,Message_PinInChatMessage:()=>Yq,Message_PeerDataOperationRequestType:()=>EP,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_WaffleNonceFetchResponse:()=>zq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_SyncDSnapshotFatalRecoveryResponse:()=>Xq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_PlaceholderMessageResendResponse:()=>qq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_PaymentLinkPreviewMetadata:()=>Kq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_LinkPreviewHighQualityThumbnail:()=>Jq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse:()=>Zq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponseCode:()=>Xk,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponse:()=>Qq,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandResponseCode:()=>qk,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandRequestResponse:()=>$q,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FlowResponsesCsvBundle:()=>eK,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionMetaNonceFetchResponse:()=>sK,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionCanonicalUserNonceFetchResponse:()=>aK,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactState:()=>rK,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactListResponse:()=>tK,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult:()=>gK,Message_PeerDataOperationRequestResponseMessage:()=>mK,Message_PeerDataOperationRequestMessage_SyncDCollectionFatalRecoveryRequest:()=>iK,Message_PeerDataOperationRequestMessage_RequestUrlPreview:()=>bK,Message_PeerDataOperationRequestMessage_RequestStickerReupload:()=>oK,Message_PeerDataOperationRequestMessage_PlaceholderMessageResendRequest:()=>cK,Message_PeerDataOperationRequestMessage_HistorySyncOnDemandRequest:()=>jK,Message_PeerDataOperationRequestMessage_HistorySyncChunkRetryRequest:()=>dK,Message_PeerDataOperationRequestMessage_GalaxyFlowAction_GalaxyFlowActionType:()=>Kk,Message_PeerDataOperationRequestMessage_GalaxyFlowAction:()=>nK,Message_PeerDataOperationRequestMessage_FullHistorySyncOnDemandRequest:()=>wK,Message_PeerDataOperationRequestMessage_CompanionCanonicalUserNonceFetchRequest:()=>pK,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsRefreshRequest:()=>uK,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsContactListRequest:()=>lK,Message_PeerDataOperationRequestMessage:()=>hK,Message_PaymentReminderMessage_ReminderStatus:()=>Jk,Message_PaymentReminderMessage_ReminderFrequency:()=>Zk,Message_PaymentReminderMessage:()=>_K,Message_PaymentLinkMetadata_PaymentLinkProvider:()=>fK,Message_PaymentLinkMetadata_PaymentLinkHeader_PaymentLinkHeaderType:()=>Qk,Message_PaymentLinkMetadata_PaymentLinkHeader:()=>yK,Message_PaymentLinkMetadata_PaymentLinkButton:()=>TK,Message_PaymentLinkMetadata:()=>x$,Message_PaymentInviteMessage_ServiceType:()=>$k,Message_PaymentInviteMessage_InviteType:()=>eP,Message_PaymentInviteMessage:()=>vK,Message_PaymentExtendedMetadata:()=>SK,Message_OrderMessage_OrderSurface:()=>sP,Message_OrderMessage_OrderStatus:()=>aP,Message_OrderMessage:()=>IK,Message_NewsletterFollowerInviteMessage:()=>WK,Message_NewsletterAdminInviteMessage:()=>MK,Message_MessageHistoryNotice:()=>EK,Message_MessageHistoryMetadata:()=>C$,Message_MessageHistoryBundle:()=>U$,Message_MMSThumbnailMetadata:()=>AK,Message_LocationMessage:()=>a,Message_LiveLocationMessage:()=>G$,Message_ListResponseMessage_SingleSelectReply:()=>OK,Message_ListResponseMessage_ListType:()=>rP,Message_ListResponseMessage:()=>RK,Message_ListMessage_Section:()=>BK,Message_ListMessage_Row:()=>NK,Message_ListMessage_ProductSection:()=>kK,Message_ListMessage_ProductListInfo:()=>PK,Message_ListMessage_ProductListHeaderImage:()=>FK,Message_ListMessage_Product:()=>LK,Message_ListMessage_ListType:()=>tP,Message_ListMessage:()=>DK,Message_LinkPreviewMetadata_SocialMediaPostType:()=>gP,Message_LinkPreviewMetadata:()=>xK,Message_KeepInChatMessage:()=>CK,Message_InvoiceMessage_AttachmentType:()=>mP,Message_InvoiceMessage:()=>UK,Message_InteractiveResponseMessage_NativeFlowResponseMessage:()=>GK,Message_InteractiveResponseMessage_Body_Format:()=>iP,Message_InteractiveResponseMessage_Body:()=>HK,Message_InteractiveResponseMessage:()=>VK,Message_InteractiveMessage_ShopMessage_Surface:()=>bP,Message_InteractiveMessage_ShopMessage:()=>YK,Message_InteractiveMessage_NativeFlowMessage_NativeFlowButton:()=>zK,Message_InteractiveMessage_NativeFlowMessage:()=>XK,Message_InteractiveMessage_Header:()=>qK,Message_InteractiveMessage_Footer:()=>KK,Message_InteractiveMessage_CollectionMessage:()=>JK,Message_InteractiveMessage_CarouselMessage_CarouselCardType:()=>oP,Message_InteractiveMessage_CarouselMessage:()=>ZK,Message_InteractiveMessage_Body:()=>QK,Message_InteractiveMessage_BloksWidget:()=>H$,Message_InteractiveMessage:()=>k0,Message_InsightDeliveryState:()=>AP,Message_InitialSecurityNotificationSettingSync:()=>$K,Message_ImageMessage_ImageSourceType:()=>cP,Message_ImageMessage:()=>i,Message_HistorySyncType:()=>OP,Message_HistorySyncNotification:()=>e8,Message_HistorySyncMessageAccessStatus:()=>s8,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeUnixEpoch:()=>a8,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_DayOfWeekType:()=>jP,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_CalendarType:()=>dP,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent:()=>r8,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime:()=>t8,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMCurrency:()=>g8,Message_HighlyStructuredMessage_HSMLocalizableParameter:()=>m8,Message_HighlyStructuredMessage:()=>c,Message_GroupInviteMessage_GroupType:()=>nP,Message_GroupInviteMessage:()=>i8,Message_FutureProofMessage:()=>W,Message_FullHistorySyncOnDemandRequestMetadata:()=>P0,Message_FullHistorySyncOnDemandConfig:()=>b8,Message_ExtendedTextMessage_PreviewType:()=>wP,Message_ExtendedTextMessage_InviteLinkGroupType:()=>pP,Message_ExtendedTextMessage_FontType:()=>uP,Message_ExtendedTextMessage:()=>o8,Message_EventResponseMessage_EventResponseType:()=>lP,Message_EventResponseMessage:()=>I0,Message_EventMessage:()=>c8,Message_EventInviteMessage:()=>j8,Message_EncReactionMessage:()=>d8,Message_EncEventResponseMessage:()=>n8,Message_EncCommentMessage:()=>w8,Message_DocumentMessage:()=>$0,Message_DeviceSentMessage:()=>p8,Message_DeclinePaymentRequestMessage:()=>u8,Message_ContactsArrayMessage:()=>l8,Message_ContactMessage:()=>V$,Message_ConditionalRevealMessage_ConditionalRevealMessageType:()=>hP,Message_ConditionalRevealMessage:()=>h8,Message_CommentMessage:()=>_8,Message_CloudAPIThreadControlNotification_CloudAPIThreadControlNotificationContent:()=>f8,Message_CloudAPIThreadControlNotification_CloudAPIThreadControl:()=>_P,Message_CloudAPIThreadControlNotification:()=>y8,Message_ChatThemeSetting:()=>T8,Message_ChatStockImageWallpaper:()=>v8,Message_ChatSolidColorWallpaper:()=>S8,Message_ChatDefaultWallpaper:()=>I8,Message_ChatCustomImageWallpaper:()=>W8,Message_Chat:()=>M8,Message_CancelPaymentRequestMessage:()=>E8,Message_CallLogMessage_CallType:()=>fP,Message_CallLogMessage_CallParticipant:()=>A8,Message_CallLogMessage_CallOutcome:()=>yP,Message_CallLogMessage:()=>O8,Message_Call:()=>R8,Message_ButtonsResponseMessage_Type:()=>TP,Message_ButtonsResponseMessage:()=>B8,Message_ButtonsMessage_HeaderType:()=>SP,Message_ButtonsMessage_Button_Type:()=>vP,Message_ButtonsMessage_Button_NativeFlowInfo:()=>N8,Message_ButtonsMessage_Button_ButtonText:()=>k8,Message_ButtonsMessage_Button:()=>P8,Message_ButtonsMessage:()=>F8,Message_BCallMessage_MediaType:()=>IP,Message_BCallMessage:()=>L8,Message_AudioMessage:()=>Y$,Message_AppStateSyncKeyShare:()=>D8,Message_AppStateSyncKeyRequest:()=>x8,Message_AppStateSyncKeyId:()=>z$,Message_AppStateSyncKeyFingerprint:()=>C8,Message_AppStateSyncKeyData:()=>U8,Message_AppStateSyncKey:()=>G8,Message_AppStateFatalExceptionNotification:()=>H8,Message_AlbumMessage:()=>V8,MessageText:()=>m,MessageSecretMessage:()=>iN,MessageKey:()=>k,MessageContextInfo_MessageAddonExpiryType:()=>Ak,MessageContextInfo:()=>k$,MessageAssociation_AssociationType:()=>Ok,MessageAssociation:()=>dq,MessageAddOn_MessageAddOnType:()=>Rk,MessageAddOnContextInfo:()=>P$,MessageAddOn:()=>nq,Message:()=>w,Mention:()=>Y8,MemberLabel:()=>F0,MediaVisibility:()=>nL,MediaRetryNotification_ResultType:()=>RP,MediaRetryNotification:()=>m6,MediaNotifyMessage:()=>z8,MediaKeyDomain:()=>wL,MediaEntry_ProgressiveJpegDetails:()=>X8,MediaEntry_DownloadableThumbnail:()=>q8,MediaEntry:()=>bN,MediaDomainInfo:()=>K8,MediaData:()=>n0,Location:()=>J8,LocalizedName:()=>Z8,LimitSharing_TriggerType:()=>BP,LimitSharing:()=>H0,LegacyMessage:()=>Q8,LabyrinthWaCommand:()=>oN,LIDMigrationMappingSyncPayload:()=>i6,LIDMigrationMappingSyncMessage:()=>eJ,LIDMigrationMapping:()=>$8,KeyId:()=>L0,KeyExchangeMessage:()=>cN,KeepType:()=>uL,KeepInChat:()=>sJ,InteractiveMessageAdditionalMetadata:()=>aJ,InteractiveAnnotation_StatusLinkType:()=>NP,InteractiveAnnotation:()=>Z0,InlineContact:()=>rJ,InThreadSurveyMetadata_InThreadSurveyQuestion:()=>tJ,InThreadSurveyMetadata_InThreadSurveyPrivacyStatementPart:()=>gJ,InThreadSurveyMetadata_InThreadSurveyOption:()=>mJ,InThreadSurveyMetadata:()=>iJ,IdentityKeyPairStructure:()=>jN,HydratedTemplateButton_HydratedURLButton_WebviewPresentationType:()=>kP,HydratedTemplateButton_HydratedURLButton:()=>bJ,HydratedTemplateButton_HydratedQuickReplyButton:()=>oJ,HydratedTemplateButton_HydratedCallButton:()=>cJ,HydratedTemplateButton:()=>jJ,HistorySync_HistorySyncType:()=>PP,HistorySync_BotAIWaitListState:()=>FP,HistorySyncMsg:()=>dJ,HistorySync:()=>b6,HatchMetadataSync:()=>nJ,HandshakeMessage_ServerHello:()=>wJ,HandshakeMessage_HandshakePqMode:()=>LP,HandshakeMessage_ClientHello:()=>pJ,HandshakeMessage_ClientFinish:()=>uJ,HandshakeMessage:()=>o6,GroupRootKeyShareEntry:()=>lJ,GroupRootKeyShare:()=>hJ,GroupParticipant_Rank:()=>DP,GroupParticipant:()=>_J,GroupMention:()=>fJ,GroupHistoryWithMessageBytes:()=>dN,GroupHistoryIndividualMessageInfo:()=>yJ,GroupHistoryBundleInfo_ProcessState:()=>xP,GroupHistoryBundleInfo:()=>TJ,GroupHistory:()=>nN,GlobalSettings:()=>vJ,ForwardedAIBotMessageInfo:()=>SJ,FingerprintData_HostedState:()=>CP,FingerprintData:()=>w0,Field_SubfieldEntry:()=>_6,Field:()=>W0,ExternalBlobReference:()=>W$,ExitCode:()=>M$,EventResponse:()=>IJ,EventAdditionalMetadata:()=>WJ,Epoch0Output:()=>MJ,EphemeralSetting:()=>wN,EncryptedSecretValuesOutput:()=>EJ,EncryptedPairingRequest:()=>pN,EncryptMessageOutput:()=>uN,EncryptMessageInput:()=>AJ,EmbeddedMusic:()=>D0,EmbeddedMessage:()=>OJ,EmbeddedContent:()=>RJ,DisappearingMode_Trigger:()=>UP,DisappearingMode_Initiator:()=>GP,DisappearingMode:()=>x0,DeviceProps_PlatformType:()=>HP,DeviceProps_HistorySyncConfig:()=>X$,DeviceProps_AppVersion:()=>BJ,DeviceProps:()=>c6,DeviceOutput:()=>NJ,DeviceListMetadata:()=>kJ,DeviceConsistencyCodeMessage:()=>lN,DeviceCapabilities_UserHasAvatar:()=>PJ,DeviceCapabilities_MemberNameTagPrimarySupport:()=>YP,DeviceCapabilities_LIDMigration:()=>FJ,DeviceCapabilities_ChatLockSupportLevel:()=>zP,DeviceCapabilities_BusinessBroadcast:()=>LJ,DeviceCapabilities_AiThread_SupportLevel:()=>VP,DeviceCapabilities_AiThread:()=>DJ,DeviceCapabilities:()=>xJ,DecryptMessageOutput:()=>hN,DecryptMessageInput:()=>CJ,CreateBackupOutput:()=>_N,CreateBackupInput:()=>UJ,Conversation_GroupAppealStatus:()=>XP,Conversation_EndOfHistoryTransferType:()=>qP,Conversation:()=>GJ,ContextInfo_UTMInfo:()=>HJ,ContextInfo_StatusSourceType:()=>rF,ContextInfo_StatusAudienceMetadata_AudienceType:()=>KP,ContextInfo_StatusAudienceMetadata:()=>VJ,ContextInfo_StatusAttributionType:()=>tF,ContextInfo_QuotedType:()=>gF,ContextInfo_QuestionReplyQuotedMessage:()=>YJ,ContextInfo_PartiallySelectedContent:()=>zJ,ContextInfo_PairedMediaType:()=>mF,ContextInfo_ForwardedNewsletterMessageInfo_ContentType:()=>JP,ContextInfo_ForwardedNewsletterMessageInfo:()=>q$,ContextInfo_ForwardOrigin:()=>iF,ContextInfo_FeatureEligibilities:()=>XJ,ContextInfo_ExternalAdReplyInfo_MediaType:()=>ZP,ContextInfo_ExternalAdReplyInfo_AdType:()=>QP,ContextInfo_ExternalAdReplyInfo:()=>qJ,ContextInfo_DataSharingContext_Parameters:()=>t0,ContextInfo_DataSharingContext_DataSharingFlags:()=>$P,ContextInfo_DataSharingContext:()=>KJ,ContextInfo_CrossAppSource:()=>bF,ContextInfo_BusinessMessageForwardInfo:()=>JJ,ContextInfo_BusinessInteractionPills_SignedPayload:()=>fN,ContextInfo_BusinessInteractionPills_PillType:()=>eF,ContextInfo_BusinessInteractionPills_Pill:()=>K$,ContextInfo_BusinessInteractionPills_EntryPoint:()=>sF,ContextInfo_BusinessInteractionPills:()=>ZJ,ContextInfo_AdReplyInfo_MediaType:()=>aF,ContextInfo_AdReplyInfo:()=>QJ,ContextInfo:()=>A,ConsumerApplication_consumerApplicationExtendedTextMessagePreviewType:()=>oF,ConsumerApplication_ViewOnceMessage:()=>$J,ConsumerApplication_VideoMessage:()=>J$,ConsumerApplication_SubProtocolPayload:()=>eZ,ConsumerApplication_StickerMessage:()=>sZ,ConsumerApplication_StatusTextMesage:()=>aZ,ConsumerApplication_Signal:()=>rZ,ConsumerApplication_RevokeMessage:()=>tZ,ConsumerApplication_ReactionMessage:()=>gZ,ConsumerApplication_PollVoteMessage:()=>yN,ConsumerApplication_PollUpdateMessage:()=>mZ,ConsumerApplication_PollEncValue:()=>p0,ConsumerApplication_PollCreationMessage:()=>iZ,ConsumerApplication_PollAddOptionMessage:()=>TN,ConsumerApplication_Point:()=>bZ,ConsumerApplication_Payload:()=>oZ,ConsumerApplication_Option:()=>Z$,ConsumerApplication_Metadata:()=>cZ,ConsumerApplication_MediaPayload:()=>vN,ConsumerApplication_LocationMessage:()=>jZ,ConsumerApplication_Location:()=>C0,ConsumerApplication_LiveLocationMessage:()=>dZ,ConsumerApplication_InteractiveAnnotation:()=>SN,ConsumerApplication_ImageMessage:()=>Q$,ConsumerApplication_GroupInviteMessage:()=>nZ,ConsumerApplication_ExtendedTextMessage:()=>$$,ConsumerApplication_EditMessage:()=>wZ,ConsumerApplication_DocumentMessage:()=>pZ,ConsumerApplication_Content:()=>uZ,ConsumerApplication_ContactsArrayMessage:()=>lZ,ConsumerApplication_ContactMessage:()=>e0,ConsumerApplication_AudioMessage:()=>hZ,ConsumerApplication_ApplicationData:()=>_Z,ConsumerApplication:()=>IN,Config_FieldEntry:()=>f6,Config:()=>WN,CompanionEphemeralIdentity:()=>MN,CompanionCommitment:()=>fZ,CommentMetadata:()=>yZ,Command:()=>TZ,CombinedFingerprint:()=>EN,CollectionName:()=>hL,ClientPayload_WebInfo_WebdPayload:()=>vZ,ClientPayload_WebInfo_WebSubPlatform:()=>cF,ClientPayload_WebInfo:()=>SZ,ClientPayload_UserAgent_ReleaseChannel:()=>jF,ClientPayload_UserAgent_Platform:()=>dF,ClientPayload_UserAgent_DistributionChannel:()=>nF,ClientPayload_UserAgent_DeviceType:()=>wF,ClientPayload_UserAgent_AppVersion:()=>IZ,ClientPayload_UserAgent:()=>WZ,ClientPayload_TrafficAnonymization:()=>uF,ClientPayload_Product:()=>lF,ClientPayload_InteropData:()=>MZ,ClientPayload_IOSAppExtension:()=>hF,ClientPayload_DevicePairingRegistrationData:()=>EZ,ClientPayload_DNSSource_DNSResolutionMethod:()=>pF,ClientPayload_DNSSource:()=>AZ,ClientPayload_ConnectType:()=>_F,ClientPayload_ConnectReason:()=>fF,ClientPayload_AccountType:()=>yF,ClientPayload:()=>j6,ClientPairingProps:()=>AN,Citation:()=>OZ,ChatRowOpaqueData_DraftMessage_CtwaContextLinkData:()=>RZ,ChatRowOpaqueData_DraftMessage_CtwaContextData_ContextInfoExternalAdReplyInfoMediaType:()=>TF,ChatRowOpaqueData_DraftMessage_CtwaContextData:()=>BZ,ChatRowOpaqueData_DraftMessage:()=>NZ,ChatRowOpaqueData:()=>ON,ChatLockSettings:()=>s0,CertChain_NoiseCertificate_Details:()=>d6,CertChain_NoiseCertificate:()=>M0,CertChain:()=>n6,CallLogRecord_SilenceReason:()=>vF,CallLogRecord_ParticipantInfo:()=>kZ,CallLogRecord_CallType:()=>SF,CallLogRecord_CallResult:()=>IF,CallLogRecord:()=>a0,BotUnifiedResponseMutation_SideBySideMetadata:()=>PZ,BotUnifiedResponseMutation_MediaDetailsMetadata:()=>FZ,BotUnifiedResponseMutation:()=>LZ,BotSuggestedPromptMetadata:()=>DZ,BotSourcesMetadata_BotSourceItem_SourceProvider:()=>WF,BotSourcesMetadata_BotSourceItem:()=>xZ,BotSourcesMetadata:()=>CZ,BotSignatureVerificationUseCaseProof_BotSignatureUseCase:()=>MF,BotSignatureVerificationUseCaseProof:()=>UZ,BotSignatureVerificationMetadata:()=>r0,BotSessionSource:()=>TL,BotSessionMetadata:()=>GZ,BotResolvedToolCallMetadata:()=>HZ,BotRenderingMetadata_Keyword:()=>VZ,BotRenderingMetadata:()=>YZ,BotRenderingConfigMetadata:()=>zZ,BotReminderMetadata_ReminderFrequency:()=>EF,BotReminderMetadata_ReminderAction:()=>AF,BotReminderMetadata:()=>XZ,BotQuotaMetadata_BotFeatureQuotaMetadata_BotFeatureType:()=>OF,BotQuotaMetadata_BotFeatureQuotaMetadata:()=>qZ,BotQuotaMetadata:()=>KZ,BotPttPromptMetadata:()=>JZ,BotPromptSuggestions:()=>ZZ,BotPromptSuggestion:()=>QZ,BotPromotionMessageMetadata_BotPromotionType:()=>RF,BotPromotionMessageMetadata:()=>$Z,BotProgressIndicatorMetadata_BotPlanningStepMetadata_PlanningStepStatus:()=>NF,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotSearchSourceProvider:()=>kF,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningStepSectionMetadata:()=>eQ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata_BotPlanningSearchSourceProvider:()=>BF,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata:()=>sQ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourceMetadata:()=>aQ,BotProgressIndicatorMetadata_BotPlanningStepMetadata:()=>rQ,BotProgressIndicatorMetadata:()=>tQ,BotPluginMetadata_SearchProvider:()=>PF,BotPluginMetadata_PluginType:()=>FF,BotPluginMetadata:()=>gQ,BotModelMetadata_PremiumModelStatus:()=>LF,BotModelMetadata_ModelType:()=>DF,BotModelMetadata:()=>mQ,BotModeSelectionMetadata_BotUserSelectionMode:()=>xF,BotModeSelectionMetadata:()=>iQ,BotMetricsThreadEntryPoint:()=>vL,BotMetricsMetadata:()=>bQ,BotMetricsEntryPoint:()=>SL,BotMetadata:()=>oQ,BotMessageSharingInfo:()=>cQ,BotMessageOrigin_BotMessageOriginType:()=>CF,BotMessageOriginMetadata:()=>jQ,BotMessageOrigin:()=>dQ,BotMemuMetadata:()=>nQ,BotMemoryMetadata:()=>wQ,BotMemoryFact:()=>u0,BotMediaMetadata_OrientationType:()=>UF,BotMediaMetadata:()=>V0,BotLinkedAccountsMetadata:()=>pQ,BotLinkedAccount_BotLinkedAccountType:()=>GF,BotLinkedAccount:()=>uQ,BotInfrastructureDiagnostics_BotBackend:()=>HF,BotInfrastructureDiagnostics:()=>lQ,BotImagineMetadata_ImagineType:()=>VF,BotImagineMetadata:()=>hQ,BotGroupParticipantMetadata:()=>_Q,BotGroupMetadata:()=>fQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyResponseEventData:()=>yQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCardImpressionEventData:()=>TQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAImpressionEventData:()=>vQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAClickEventData:()=>SQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyAbandonEventData:()=>IQ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData:()=>WQ,BotFeedbackMessage_SideBySideSurveyMetadata_SideBySideSurveyAnalyticsData:()=>MQ,BotFeedbackMessage_SideBySideSurveyMetadata:()=>EQ,BotFeedbackMessage_ReportKind:()=>YF,BotFeedbackMessage_BotFeedbackKindMultiplePositive:()=>zF,BotFeedbackMessage_BotFeedbackKindMultipleNegative:()=>XF,BotFeedbackMessage_BotFeedbackKind:()=>qF,BotFeedbackMessage:()=>AQ,BotDocumentMessageMetadata_DocumentPluginType:()=>KF,BotDocumentMessageMetadata:()=>OQ,BotCommandMetadata:()=>RQ,BotCapabilityMetadata_BotCapabilityType:()=>JF,BotCapabilityMetadata:()=>BQ,BotAgentMetadata:()=>NQ,BotAgentDeepLinkMetadata:()=>kQ,BotAgeCollectionMetadata_AgeCollectionType:()=>ZF,BotAgeCollectionMetadata:()=>PQ,BizIdentityInfo_VerifiedLevelValue:()=>QF,BizIdentityInfo_HostStorageType:()=>$F,BizIdentityInfo_ActualActorsType:()=>eL,BizIdentityInfo:()=>RN,BizAccountPayload:()=>BN,BizAccountLinkInfo_HostStorageType:()=>sL,BizAccountLinkInfo_AccountType:()=>aL,BizAccountLinkInfo:()=>NN,AvatarUserSettings:()=>FQ,AutoDownloadSettings:()=>z0,ActionLink:()=>LQ,AccountLinkingOpaqueData:()=>kN,Account:()=>DQ,AIThreadInfo_AIThreadServerInfo:()=>xQ,AIThreadInfo_AIThreadClientInfo_AIThreadType:()=>rL,AIThreadInfo_AIThreadClientInfo:()=>CQ,AIThreadInfo:()=>UQ,AISubscriptionUpsellMetadata:()=>GQ,AISubscriptionRequestType:()=>IL,AIRichResponseUnifiedResponse:()=>HQ,AIRichResponseTableMetadata_AIRichResponseTableRow:()=>VQ,AIRichResponseTableMetadata:()=>YQ,AIRichResponseSubMessageType:()=>WL,AIRichResponseSubMessage:()=>zQ,AIRichResponseMessageType:()=>ML,AIRichResponseMessage:()=>XQ,AIRichResponseMapMetadata_AIRichResponseMapAnnotation:()=>qQ,AIRichResponseMapMetadata:()=>KQ,AIRichResponseLatexMetadata_AIRichResponseLatexExpression:()=>JQ,AIRichResponseLatexMetadata:()=>ZQ,AIRichResponseInlineImageMetadata_AIRichResponseImageAlignment:()=>tL,AIRichResponseInlineImageMetadata:()=>QQ,AIRichResponseImageURL:()=>Y0,AIRichResponseGridImageMetadata:()=>$Q,AIRichResponseDynamicMetadata_AIRichResponseDynamicMetadataType:()=>gL,AIRichResponseDynamicMetadata:()=>e$,AIRichResponseContentItemsMetadata_ContentType:()=>mL,AIRichResponseContentItemsMetadata_AIRichResponseReelItem:()=>s$,AIRichResponseContentItemsMetadata_AIRichResponseContentItemMetadata:()=>a$,AIRichResponseContentItemsMetadata:()=>r$,AIRichResponseCodeMetadata_AIRichResponseCodeHighlightType:()=>iL,AIRichResponseCodeMetadata_AIRichResponseCodeBlock:()=>t$,AIRichResponseCodeMetadata:()=>g$,AIRegenerateMetadata:()=>m$,AIQueryFanout:()=>i$,AIMetadataOperation:()=>b$,AIMediaCollectionMetadata:()=>o$,AIMediaCollectionMessage:()=>c$,AIHomeState_AIHomeOption_AIHomeActionType:()=>bL,AIHomeState_AIHomeOption:()=>l0,AIHomeState:()=>PN,ADVSignedKeyIndexList:()=>w6,ADVSignedDeviceIdentityHMAC:()=>p6,ADVSignedDeviceIdentity:()=>u6,ADVKeyIndexList:()=>FN,ADVEncryptionType:()=>EL,ADVDeviceIdentity:()=>l6});function fz(){let $=0,Q=0;for(let q=0;q<28;q+=7){let K=this.buf[this.pos++];if($|=(K&127)<<q,(K&128)==0)return this.assertBounds(),[$,Q]}let Z=this.buf[this.pos++];if($|=(Z&15)<<28,Q=(Z&112)>>4,(Z&128)==0)return this.assertBounds(),[$,Q];for(let q=3;q<=31;q+=7){let K=this.buf[this.pos++];if(Q|=(K&127)<<q,(K&128)==0)return this.assertBounds(),[$,Q]}throw Error("invalid varint")}function v6($,Q,Z){for(let J=0;J<28;J=J+7){let z=$>>>J,G=!(z>>>7==0&&Q==0),D=(G?z|128:z)&255;if(Z.push(D),!G)return}let q=$>>>28&15|(Q&7)<<4,K=Q>>3!=0;if(Z.push((K?q|128:q)&255),!K)return;for(let J=3;J<31;J=J+7){let z=Q>>>J,G=z>>>7!=0,D=(G?z|128:z)&255;if(Z.push(D),!G)return}Z.push(Q>>>31&1)}var S6=4294967296;function Vz($){let Q=$[0]==="-";if(Q)$=$.slice(1);let Z=1e6,q=0,K=0;function J(z,G){let D=Number($.slice(z,G));if(K*=Z,q=q*Z+D,q>=S6)K=K+(q/S6|0),q=q%S6}return J(-24,-18),J(-18,-12),J(-12,-6),J(-6),Q?hz(q,K):Gz(q,K)}function _z($,Q){let Z=Gz($,Q),q=Z.hi&2147483648;if(q)Z=hz(Z.lo,Z.hi);let K=Hz(Z.lo,Z.hi);return q?"-"+K:K}function Hz($,Q){if({lo:$,hi:Q}=xR($,Q),Q<=2097151)return String(S6*Q+$);let Z=$&16777215,q=($>>>24|Q<<8)&16777215,K=Q>>16&65535,J=Z+q*6777216+K*6710656,z=q+K*8147497,G=K*2,D=1e7;if(J>=D)z+=Math.floor(J/D),J%=D;if(z>=D)G+=Math.floor(z/D),z%=D;return G.toString()+yz(z)+yz(J)}function xR($,Q){return{lo:$>>>0,hi:Q>>>0}}function Gz($,Q){return{lo:$|0,hi:Q|0}}function hz($,Q){if(Q=~Q,$)$=~$+1;else Q+=1;return Gz($,Q)}var yz=($)=>{let Q=String($);return"0000000".slice(Q.length)+Q};function Uz($,Q){if($>=0){while($>127)Q.push($&127|128),$=$>>>7;Q.push($)}else{for(let Z=0;Z<9;Z++)Q.push($&127|128),$=$>>7;Q.push(1)}}function lz(){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 Z=5;($&128)!==0&&Z<10;Z++)$=this.buf[this.pos++];if(($&128)!=0)throw Error("invalid varint");return this.assertBounds(),Q>>>0}var X0=DR();function DR(){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 Z=BigInt("-9223372036854775808"),q=BigInt("9223372036854775807"),K=BigInt("0"),J=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(z){let G=typeof z=="bigint"?z:BigInt(z);if(G>q||G<Z)throw Error(`invalid int64: ${z}`);return G},uParse(z){let G=typeof z=="bigint"?z:BigInt(z);if(G>J||G<K)throw Error(`invalid uint64: ${z}`);return G},enc(z){return $.setBigInt64(0,this.parse(z),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},uEnc(z){return $.setBigInt64(0,this.uParse(z),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},dec(z,G){return $.setInt32(0,z,!0),$.setInt32(4,G,!0),$.getBigInt64(0,!0)},uDec(z,G){return $.setInt32(0,z,!0),$.setInt32(4,G,!0),$.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(Z){if(typeof Z!="string")Z=Z.toString();return uz(Z),Z},uParse(Z){if(typeof Z!="string")Z=Z.toString();return pz(Z),Z},enc(Z){if(typeof Z!="string")Z=Z.toString();return uz(Z),Vz(Z)},uEnc(Z){if(typeof Z!="string")Z=Z.toString();return pz(Z),Vz(Z)},dec(Z,q){return _z(Z,q)},uDec(Z,q){return Hz(Z,q)}}}function uz($){if(!/^-?[0-9]+$/.test($))throw Error("invalid int64: "+$)}function pz($){if(!/^[0-9]+$/.test($))throw Error("invalid uint64: "+$)}var Cz=Symbol.for("@bufbuild/protobuf/text-encoding");function xz(){if(globalThis[Cz]==null){let $=new globalThis.TextEncoder,Q=new globalThis.TextDecoder,Z;globalThis[Cz]={encodeUtf8(q){return $.encode(q)},decodeUtf8(q,K){if(K){if(Z===void 0)Z=new globalThis.TextDecoder("utf-8",{fatal:!0});return Z.decode(q)}return Q.decode(q)},checkUtf8(q){try{return encodeURIComponent(q),!0}catch(K){return!1}}}}return globalThis[Cz]}var h0;(function($){$[$.Varint=0]="Varint",$[$.Bit64=1]="Bit64",$[$.LengthDelimited=2]="LengthDelimited",$[$.StartGroup=3]="StartGroup",$[$.EndGroup=4]="EndGroup",$[$.Bit32=5]="Bit32"})(h0||(h0={}));var LR=340282346638528860000000000000000000000,FR=-340282346638528860000000000000000000000,PR=4294967295,kR=2147483647,NR=-2147483648;class V{constructor($=xz().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 q=0;q<this.chunks.length;q++)$+=this.chunks[q].length;let Q=new Uint8Array($),Z=0;for(let q=0;q<this.chunks.length;q++)Q.set(this.chunks[q],Z),Z+=this.chunks[q].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($){wz($);while($>127)this.buf.push($&127|128),$=$>>>7;return this.buf.push($),this}int32($){return Dz($),Uz($,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($){BR($);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($){wz($);let Q=new Uint8Array(4);return new DataView(Q.buffer).setUint32(0,$,!0),this.raw(Q)}sfixed32($){Dz($);let Q=new Uint8Array(4);return new DataView(Q.buffer).setInt32(0,$,!0),this.raw(Q)}sint32($){return Dz($),$=($<<1^$>>31)>>>0,Uz($,this.buf),this}sfixed64($){let Q=new Uint8Array(8),Z=new DataView(Q.buffer),q=X0.enc($);return Z.setInt32(0,q.lo,!0),Z.setInt32(4,q.hi,!0),this.raw(Q)}fixed64($){let Q=new Uint8Array(8),Z=new DataView(Q.buffer),q=X0.uEnc($);return Z.setInt32(0,q.lo,!0),Z.setInt32(4,q.hi,!0),this.raw(Q)}int64($){let Q=X0.enc($);return v6(Q.lo,Q.hi,this.buf),this}sint64($){let Q=X0.enc($),Z=Q.hi>>31,q=Q.lo<<1^Z,K=(Q.hi<<1|Q.lo>>>31)^Z;return v6(q,K,this.buf),this}uint64($){let Q=X0.uEnc($);return v6(Q.lo,Q.hi,this.buf),this}}class Lz{constructor($,Q=xz().decodeUtf8){this.decodeUtf8=Q,this.varint64=fz,this.uint32=lz,this.buf=$,this.len=$.length,this.pos=0,this.view=new DataView($.buffer,$.byteOffset,$.byteLength)}tag(){let $=this.pos,Q=this.uint32(),Z=this.pos-$;if(Z>5||Z==5&&this.buf[this.pos-1]>15)throw Error("illegal tag: varint overflows uint32");let q=Q>>>3,K=Q&7;if(q<=0||K>5)throw Error("illegal tag: field no "+q+" wire type "+K);return[q,K]}skip($,Q){let Z=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 q=this.uint32();this.pos+=q;break;case h0.StartGroup:for(;;){let[K,J]=this.tag();if(J===h0.EndGroup){if(Q!==void 0&&K!==Q)throw Error("invalid end group tag");break}this.skip(J,K)}break;default:throw Error("cant skip wire type "+$)}return this.assertBounds(),this.buf.subarray(Z,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 X0.dec(...this.varint64())}uint64(){return X0.uDec(...this.varint64())}sint64(){let[$,Q]=this.varint64(),Z=-($&1);return $=($>>>1|(Q&1)<<31)^Z,Q=Q>>>1^Z,X0.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 X0.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return X0.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 Dz($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid int32: "+typeof $);if(!Number.isInteger($)||$>kR||$<NR)throw Error("invalid int32: "+$)}function wz($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid uint32: "+typeof $);if(!Number.isInteger($)||$>PR||$<0)throw Error("invalid uint32: "+$)}function BR($){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($)&&($>LR||$<FR))throw Error("invalid float32: "+$)}import{Buffer as RR}from"node:buffer";var dz=32,jz=2**dz,y6=7,T6=1<<y6,OR=T6-1,AR="utf8",ER=Math.floor(Math.log2(Number.MAX_SAFE_INTEGER)/y6)*y6,Pz=($)=>{if($>Number.MAX_SAFE_INTEGER)throw Error("Value is larger than Number.MAX_SAFE_INTEGER");if($<Number.MIN_SAFE_INTEGER)throw Error("Value is smaller than Number.MIN_SAFE_INTEGER");return $},nz=($,Q)=>Pz((Q>>>0)*jz+($>>>0)),Fz=($,Q)=>Pz((Q|0)*jz+($>>>0));class X extends Lz{utf8Buffer;constructor($){super($);this.utf8Buffer=RR.from($.buffer,$.byteOffset,$.byteLength)}string($){if($)return super.string(!0);let Q=this.uint32(),Z=this.pos;return this.pos+=Q,this.assertBounds(),this.utf8Buffer.toString(AR,Z,this.pos)}bool(){let $=this.buf[this.pos++];if(($&T6)===0)return this.assertBounds(),$!==0;this.pos--;let[Q,Z]=this.varint64();return Q!==0||Z!==0}positiveSafeVarint(){let $=this.pos,Q=0,Z=1;for(let q=0;q<=ER;q+=y6){let K=this.buf[this.pos++];if(Q+=(K&OR)*Z,(K&T6)===0)return this.assertBounds(),Pz(Q);Z*=T6}this.pos=$;return}uint64Number(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[Q,Z]=this.varint64();return nz(Q,Z)}int64Number(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[Q,Z]=this.varint64();return Fz(Q,Z)}sint64Number(){let[$,Q]=this.varint64(),Z=-($&1);return $=($>>>1|(Q&1)<<dz-1)^Z,Q=Q>>>1^Z,Fz($,Q)}fixed64Number(){return nz(this.sfixed32(),this.sfixed32())}sfixed64Number(){return Fz(this.sfixed32(),this.sfixed32())}}var MR="whatsapp",EL;((K)=>{K[K.E2EE=0]="E2EE";K[K.HOSTED=1]="HOSTED";K[K.NON_E2EE=2]="NON_E2EE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EL||={});var ML;((q)=>{q[q.AI_RICH_RESPONSE_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_TYPE_UNKNOWN";q[q.AI_RICH_RESPONSE_TYPE_STANDARD=1]="AI_RICH_RESPONSE_TYPE_STANDARD";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ML||={});var WL;((y)=>{y[y.AI_RICH_RESPONSE_UNKNOWN=0]="AI_RICH_RESPONSE_UNKNOWN";y[y.AI_RICH_RESPONSE_GRID_IMAGE=1]="AI_RICH_RESPONSE_GRID_IMAGE";y[y.AI_RICH_RESPONSE_TEXT=2]="AI_RICH_RESPONSE_TEXT";y[y.AI_RICH_RESPONSE_INLINE_IMAGE=3]="AI_RICH_RESPONSE_INLINE_IMAGE";y[y.AI_RICH_RESPONSE_TABLE=4]="AI_RICH_RESPONSE_TABLE";y[y.AI_RICH_RESPONSE_CODE=5]="AI_RICH_RESPONSE_CODE";y[y.AI_RICH_RESPONSE_DYNAMIC=6]="AI_RICH_RESPONSE_DYNAMIC";y[y.AI_RICH_RESPONSE_MAP=7]="AI_RICH_RESPONSE_MAP";y[y.AI_RICH_RESPONSE_LATEX=8]="AI_RICH_RESPONSE_LATEX";y[y.AI_RICH_RESPONSE_CONTENT_ITEMS=9]="AI_RICH_RESPONSE_CONTENT_ITEMS";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WL||={});var IL;((J)=>{J[J.UNSPECIFIED=0]="UNSPECIFIED";J[J.THINK_HARD=1]="THINK_HARD";J[J.IMAGE_GEN=2]="IMAGE_GEN";J[J.VIDEO_GEN=3]="VIDEO_GEN";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IL||={});var SL;((E)=>{E[E.UNDEFINED_ENTRY_POINT=0]="UNDEFINED_ENTRY_POINT";E[E.FAVICON=1]="FAVICON";E[E.CHATLIST=2]="CHATLIST";E[E.AISEARCH_NULL_STATE_PAPER_PLANE=3]="AISEARCH_NULL_STATE_PAPER_PLANE";E[E.AISEARCH_NULL_STATE_SUGGESTION=4]="AISEARCH_NULL_STATE_SUGGESTION";E[E.AISEARCH_TYPE_AHEAD_SUGGESTION=5]="AISEARCH_TYPE_AHEAD_SUGGESTION";E[E.AISEARCH_TYPE_AHEAD_PAPER_PLANE=6]="AISEARCH_TYPE_AHEAD_PAPER_PLANE";E[E.AISEARCH_TYPE_AHEAD_RESULT_CHATLIST=7]="AISEARCH_TYPE_AHEAD_RESULT_CHATLIST";E[E.AISEARCH_TYPE_AHEAD_RESULT_MESSAGES=8]="AISEARCH_TYPE_AHEAD_RESULT_MESSAGES";E[E.AIVOICE_SEARCH_BAR=9]="AIVOICE_SEARCH_BAR";E[E.AIVOICE_FAVICON=10]="AIVOICE_FAVICON";E[E.AISTUDIO=11]="AISTUDIO";E[E.DEEPLINK=12]="DEEPLINK";E[E.NOTIFICATION=13]="NOTIFICATION";E[E.PROFILE_MESSAGE_BUTTON=14]="PROFILE_MESSAGE_BUTTON";E[E.FORWARD=15]="FORWARD";E[E.APP_SHORTCUT=16]="APP_SHORTCUT";E[E.FF_FAMILY=17]="FF_FAMILY";E[E.AI_TAB=18]="AI_TAB";E[E.AI_HOME=19]="AI_HOME";E[E.AI_DEEPLINK_IMMERSIVE=20]="AI_DEEPLINK_IMMERSIVE";E[E.AI_DEEPLINK=21]="AI_DEEPLINK";E[E.META_AI_CHAT_SHORTCUT_AI_STUDIO=22]="META_AI_CHAT_SHORTCUT_AI_STUDIO";E[E.UGC_CHAT_SHORTCUT_AI_STUDIO=23]="UGC_CHAT_SHORTCUT_AI_STUDIO";E[E.NEW_CHAT_AI_STUDIO=24]="NEW_CHAT_AI_STUDIO";E[E.AIVOICE_FAVICON_CALL_HISTORY=25]="AIVOICE_FAVICON_CALL_HISTORY";E[E.ASK_META_AI_CONTEXT_MENU=26]="ASK_META_AI_CONTEXT_MENU";E[E.ASK_META_AI_CONTEXT_MENU_1ON1=27]="ASK_META_AI_CONTEXT_MENU_1ON1";E[E.ASK_META_AI_CONTEXT_MENU_GROUP=28]="ASK_META_AI_CONTEXT_MENU_GROUP";E[E.INVOKE_META_AI_1ON1=29]="INVOKE_META_AI_1ON1";E[E.INVOKE_META_AI_GROUP=30]="INVOKE_META_AI_GROUP";E[E.META_AI_FORWARD=31]="META_AI_FORWARD";E[E.NEW_CHAT_AI_CONTACT=32]="NEW_CHAT_AI_CONTACT";E[E.MESSAGE_QUICK_ACTION_1_ON_1_CHAT=33]="MESSAGE_QUICK_ACTION_1_ON_1_CHAT";E[E.MESSAGE_QUICK_ACTION_GROUP_CHAT=34]="MESSAGE_QUICK_ACTION_GROUP_CHAT";E[E.ATTACHMENT_TRAY_1_ON_1_CHAT=35]="ATTACHMENT_TRAY_1_ON_1_CHAT";E[E.ATTACHMENT_TRAY_GROUP_CHAT=36]="ATTACHMENT_TRAY_GROUP_CHAT";E[E.ASK_META_AI_MEDIA_VIEWER_1ON1=37]="ASK_META_AI_MEDIA_VIEWER_1ON1";E[E.ASK_META_AI_MEDIA_VIEWER_GROUP=38]="ASK_META_AI_MEDIA_VIEWER_GROUP";E[E.MEDIA_PICKER_1_ON_1_CHAT=39]="MEDIA_PICKER_1_ON_1_CHAT";E[E.MEDIA_PICKER_GROUP_CHAT=40]="MEDIA_PICKER_GROUP_CHAT";E[E.ASK_META_AI_NO_SEARCH_RESULTS=41]="ASK_META_AI_NO_SEARCH_RESULTS";E[E.META_AI_SETTINGS=45]="META_AI_SETTINGS";E[E.WEB_INTRO_PANEL=46]="WEB_INTRO_PANEL";E[E.WEB_NAVIGATION_BAR=47]="WEB_NAVIGATION_BAR";E[E.GROUP_MEMBER=54]="GROUP_MEMBER";E[E.CHATLIST_SEARCH=55]="CHATLIST_SEARCH";E[E.NEW_CHAT_LIST=56]="NEW_CHAT_LIST";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SL||={});var vL;((z)=>{z[z.AI_TAB_THREAD=1]="AI_TAB_THREAD";z[z.AI_HOME_THREAD=2]="AI_HOME_THREAD";z[z.AI_DEEPLINK_IMMERSIVE_THREAD=3]="AI_DEEPLINK_IMMERSIVE_THREAD";z[z.AI_DEEPLINK_THREAD=4]="AI_DEEPLINK_THREAD";z[z.ASK_META_AI_CONTEXT_MENU_THREAD=5]="ASK_META_AI_CONTEXT_MENU_THREAD";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vL||={});var TL;((x)=>{x[x.NONE=0]="NONE";x[x.NULL_STATE=1]="NULL_STATE";x[x.TYPEAHEAD=2]="TYPEAHEAD";x[x.USER_INPUT=3]="USER_INPUT";x[x.EMU_FLASH=4]="EMU_FLASH";x[x.EMU_FLASH_FOLLOWUP=5]="EMU_FLASH_FOLLOWUP";x[x.VOICE=6]="VOICE";x[x.AI_HOME_SESSION=7]="AI_HOME_SESSION";x[x.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TL||={});var yL;((J)=>{J[J.EVERYONE=1]="EVERYONE";J[J.SILENT=2]="SILENT";J[J.AI=3]="AI";J[J.AI_IMAGINE=4]="AI_IMAGINE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yL||={});var fL;((K)=>{K[K.SMALL=1]="SMALL";K[K.MEDIUM=2]="MEDIUM";K[K.LARGE=3]="LARGE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fL||={});var _L;((G)=>{G[G.SANS_SERIF=0]="SANS_SERIF";G[G.SERIF=1]="SERIF";G[G.NORICAN_REGULAR=2]="NORICAN_REGULAR";G[G.BRYNDAN_WRITE=3]="BRYNDAN_WRITE";G[G.BEBASNEUE_REGULAR=4]="BEBASNEUE_REGULAR";G[G.OSWALD_HEAVY=5]="OSWALD_HEAVY";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_L||={});var hL;((G)=>{G[G.COLLECTION_NAME_UNKNOWN=0]="COLLECTION_NAME_UNKNOWN";G[G.REGULAR=1]="REGULAR";G[G.REGULAR_LOW=2]="REGULAR_LOW";G[G.REGULAR_HIGH=3]="REGULAR_HIGH";G[G.CRITICAL_BLOCK=4]="CRITICAL_BLOCK";G[G.CRITICAL_UNBLOCK_LOW=5]="CRITICAL_UNBLOCK_LOW";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hL||={});var lL;((K)=>{K[K.PLACEHOLDER=0]="PLACEHOLDER";K[K.NO_PLACEHOLDER=1]="NO_PLACEHOLDER";K[K.IGNORE=2]="IGNORE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lL||={});var uL;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.KEEP_FOR_ALL=1]="KEEP_FOR_ALL";K[K.UNDO_KEEP_FOR_ALL=2]="UNDO_KEEP_FOR_ALL";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uL||={});var pL;((Z)=>{Z[Z.PROFILE=0]="PROFILE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pL||={});var wL;((K)=>{K[K.MEDIA_KEY_DOMAIN_UNKNOWN=0]="MEDIA_KEY_DOMAIN_UNKNOWN";K[K.MEDIA_KEY_DOMAIN_E2EE=1]="MEDIA_KEY_DOMAIN_E2EE";K[K.MEDIA_KEY_DOMAIN_NON_E2EE=2]="MEDIA_KEY_DOMAIN_NON_E2EE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wL||={});var nL;((K)=>{K[K.DEFAULT=0]="DEFAULT";K[K.OFF=1]="OFF";K[K.ON=2]="ON";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nL||={});var dL;((F)=>{F[F.STAR_ACTION=2]="STAR_ACTION";F[F.CONTACT_ACTION=3]="CONTACT_ACTION";F[F.MUTE_ACTION=4]="MUTE_ACTION";F[F.PIN_ACTION=5]="PIN_ACTION";F[F.SECURITY_NOTIFICATION_SETTING=6]="SECURITY_NOTIFICATION_SETTING";F[F.PUSH_NAME_SETTING=7]="PUSH_NAME_SETTING";F[F.QUICK_REPLY_ACTION=8]="QUICK_REPLY_ACTION";F[F.RECENT_EMOJI_WEIGHTS_ACTION=11]="RECENT_EMOJI_WEIGHTS_ACTION";F[F.LABEL_MESSAGE_ACTION=13]="LABEL_MESSAGE_ACTION";F[F.LABEL_EDIT_ACTION=14]="LABEL_EDIT_ACTION";F[F.LABEL_ASSOCIATION_ACTION=15]="LABEL_ASSOCIATION_ACTION";F[F.LOCALE_SETTING=16]="LOCALE_SETTING";F[F.ARCHIVE_CHAT_ACTION=17]="ARCHIVE_CHAT_ACTION";F[F.DELETE_MESSAGE_FOR_ME_ACTION=18]="DELETE_MESSAGE_FOR_ME_ACTION";F[F.KEY_EXPIRATION=19]="KEY_EXPIRATION";F[F.MARK_CHAT_AS_READ_ACTION=20]="MARK_CHAT_AS_READ_ACTION";F[F.CLEAR_CHAT_ACTION=21]="CLEAR_CHAT_ACTION";F[F.DELETE_CHAT_ACTION=22]="DELETE_CHAT_ACTION";F[F.UNARCHIVE_CHATS_SETTING=23]="UNARCHIVE_CHATS_SETTING";F[F.PRIMARY_FEATURE=24]="PRIMARY_FEATURE";F[F.ANDROID_UNSUPPORTED_ACTIONS=26]="ANDROID_UNSUPPORTED_ACTIONS";F[F.AGENT_ACTION=27]="AGENT_ACTION";F[F.SUBSCRIPTION_ACTION=28]="SUBSCRIPTION_ACTION";F[F.USER_STATUS_MUTE_ACTION=29]="USER_STATUS_MUTE_ACTION";F[F.TIME_FORMAT_ACTION=30]="TIME_FORMAT_ACTION";F[F.NUX_ACTION=31]="NUX_ACTION";F[F.PRIMARY_VERSION_ACTION=32]="PRIMARY_VERSION_ACTION";F[F.STICKER_ACTION=33]="STICKER_ACTION";F[F.REMOVE_RECENT_STICKER_ACTION=34]="REMOVE_RECENT_STICKER_ACTION";F[F.CHAT_ASSIGNMENT=35]="CHAT_ASSIGNMENT";F[F.CHAT_ASSIGNMENT_OPENED_STATUS=36]="CHAT_ASSIGNMENT_OPENED_STATUS";F[F.PN_FOR_LID_CHAT_ACTION=37]="PN_FOR_LID_CHAT_ACTION";F[F.MARKETING_MESSAGE_ACTION=38]="MARKETING_MESSAGE_ACTION";F[F.MARKETING_MESSAGE_BROADCAST_ACTION=39]="MARKETING_MESSAGE_BROADCAST_ACTION";F[F.EXTERNAL_WEB_BETA_ACTION=40]="EXTERNAL_WEB_BETA_ACTION";F[F.PRIVACY_SETTING_RELAY_ALL_CALLS=41]="PRIVACY_SETTING_RELAY_ALL_CALLS";F[F.CALL_LOG_ACTION=42]="CALL_LOG_ACTION";F[F.UGC_BOT=43]="UGC_BOT";F[F.STATUS_PRIVACY=44]="STATUS_PRIVACY";F[F.BOT_WELCOME_REQUEST_ACTION=45]="BOT_WELCOME_REQUEST_ACTION";F[F.DELETE_INDIVIDUAL_CALL_LOG=46]="DELETE_INDIVIDUAL_CALL_LOG";F[F.LABEL_REORDERING_ACTION=47]="LABEL_REORDERING_ACTION";F[F.PAYMENT_INFO_ACTION=48]="PAYMENT_INFO_ACTION";F[F.CUSTOM_PAYMENT_METHODS_ACTION=49]="CUSTOM_PAYMENT_METHODS_ACTION";F[F.LOCK_CHAT_ACTION=50]="LOCK_CHAT_ACTION";F[F.CHAT_LOCK_SETTINGS=51]="CHAT_LOCK_SETTINGS";F[F.WAMO_USER_IDENTIFIER_ACTION=52]="WAMO_USER_IDENTIFIER_ACTION";F[F.PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION=53]="PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION";F[F.DEVICE_CAPABILITIES=54]="DEVICE_CAPABILITIES";F[F.NOTE_EDIT_ACTION=55]="NOTE_EDIT_ACTION";F[F.FAVORITES_ACTION=56]="FAVORITES_ACTION";F[F.MERCHANT_PAYMENT_PARTNER_ACTION=57]="MERCHANT_PAYMENT_PARTNER_ACTION";F[F.WAFFLE_ACCOUNT_LINK_STATE_ACTION=58]="WAFFLE_ACCOUNT_LINK_STATE_ACTION";F[F.USERNAME_CHAT_START_MODE=59]="USERNAME_CHAT_START_MODE";F[F.NOTIFICATION_ACTIVITY_SETTING_ACTION=60]="NOTIFICATION_ACTIVITY_SETTING_ACTION";F[F.LID_CONTACT_ACTION=61]="LID_CONTACT_ACTION";F[F.CTWA_PER_CUSTOMER_DATA_SHARING_ACTION=62]="CTWA_PER_CUSTOMER_DATA_SHARING_ACTION";F[F.PAYMENT_TOS_ACTION=63]="PAYMENT_TOS_ACTION";F[F.PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION=64]="PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION";F[F.BUSINESS_BROADCAST_ASSOCIATION_ACTION=65]="BUSINESS_BROADCAST_ASSOCIATION_ACTION";F[F.DETECTED_OUTCOMES_STATUS_ACTION=66]="DETECTED_OUTCOMES_STATUS_ACTION";F[F.MAIBA_AI_FEATURES_CONTROL_ACTION=68]="MAIBA_AI_FEATURES_CONTROL_ACTION";F[F.BUSINESS_BROADCAST_LIST_ACTION=69]="BUSINESS_BROADCAST_LIST_ACTION";F[F.MUSIC_USER_ID_ACTION=70]="MUSIC_USER_ID_ACTION";F[F.STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION=71]="STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION";F[F.AVATAR_UPDATED_ACTION=72]="AVATAR_UPDATED_ACTION";F[F.GALAXY_FLOW_ACTION=73]="GALAXY_FLOW_ACTION";F[F.PRIVATE_PROCESSING_SETTING_ACTION=74]="PRIVATE_PROCESSING_SETTING_ACTION";F[F.NEWSLETTER_SAVED_INTERESTS_ACTION=75]="NEWSLETTER_SAVED_INTERESTS_ACTION";F[F.AI_THREAD_RENAME_ACTION=76]="AI_THREAD_RENAME_ACTION";F[F.INTERACTIVE_MESSAGE_ACTION=77]="INTERACTIVE_MESSAGE_ACTION";F[F.SETTINGS_SYNC_ACTION=78]="SETTINGS_SYNC_ACTION";F[F.OUT_CONTACT_ACTION=79]="OUT_CONTACT_ACTION";F[F.NCT_SALT_SYNC_ACTION=80]="NCT_SALT_SYNC_ACTION";F[F.BUSINESS_BROADCAST_CAMPAIGN_ACTION=81]="BUSINESS_BROADCAST_CAMPAIGN_ACTION";F[F.BUSINESS_BROADCAST_INSIGHTS_ACTION=82]="BUSINESS_BROADCAST_INSIGHTS_ACTION";F[F.CUSTOMER_DATA_ACTION=83]="CUSTOMER_DATA_ACTION";F[F.SUBSCRIPTIONS_SYNC_V2_ACTION=84]="SUBSCRIPTIONS_SYNC_V2_ACTION";F[F.THREAD_PIN_ACTION=85]="THREAD_PIN_ACTION";F[F.AUTO_ORGANIZE_BUSINESS_CHAT_SETTING=86]="AUTO_ORGANIZE_BUSINESS_CHAT_SETTING";F[F.BIZ_AI_SETTINGS_NUDGE_ACTION=87]="BIZ_AI_SETTINGS_NUDGE_ACTION";F[F.COEX_V2_VERSION_ACTION=88]="COEX_V2_VERSION_ACTION";F[F.WASA_ROOT_SECRET_ACTION=89]="WASA_ROOT_SECRET_ACTION";F[F.SHARE_OWN_PN=10001]="SHARE_OWN_PN";F[F.BUSINESS_BROADCAST_ACTION=10002]="BUSINESS_BROADCAST_ACTION";F[F.AI_THREAD_DELETE_ACTION=10003]="AI_THREAD_DELETE_ACTION";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dL||={});var jL;((K)=>{K[K.E2EE_MSG=1]="E2EE_MSG";K[K.NE2EE_SELF=2]="NE2EE_SELF";K[K.NE2EE_OTHER=3]="NE2EE_OTHER";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jL||={});var cL;((q)=>{q[q.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";q[q.NY_AI_SAFETY_DISCLAIMER=1]="NY_AI_SAFETY_DISCLAIMER";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cL||={});var oL;((q)=>{q[q.WEBVIEW=0]="WEBVIEW";q[q.SYSTEM=1]="SYSTEM";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oL||={});var bL;((G)=>{G[G.PROMPT=0]="PROMPT";G[G.CREATE_IMAGE=1]="CREATE_IMAGE";G[G.ANIMATE_PHOTO=2]="ANIMATE_PHOTO";G[G.ANALYZE_FILE=3]="ANALYZE_FILE";G[G.COLLABORATE=4]="COLLABORATE";G[G.OPEN_GREETING_CARD=5]="OPEN_GREETING_CARD";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bL||={});var iL;((G)=>{G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT=0]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD=1]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD=2]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING=3]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER=4]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT=5]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iL||={});var mL;((q)=>{q[q.DEFAULT=0]="DEFAULT";q[q.CAROUSEL=1]="CAROUSEL";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mL||={});var gL;((K)=>{K[K.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN";K[K.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE=1]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE";K[K.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF=2]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gL||={});var tL;((K)=>{K[K.AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED=0]="AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED";K[K.AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED=1]="AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED";K[K.AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED=2]="AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tL||={});var rL;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.DEFAULT=1]="DEFAULT";J[J.INCOGNITO=2]="INCOGNITO";J[J.SIDE_CHAT=3]="SIDE_CHAT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rL||={});var aL;((Z)=>{Z[Z.ENTERPRISE=0]="ENTERPRISE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aL||={});var sL;((q)=>{q[q.ON_PREMISE=0]="ON_PREMISE";q[q.FACEBOOK=1]="FACEBOOK";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sL||={});var eL;((q)=>{q[q.SELF=0]="SELF";q[q.BSP=1]="BSP";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eL||={});var $F;((q)=>{q[q.ON_PREMISE=0]="ON_PREMISE";q[q.FACEBOOK=1]="FACEBOOK";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})($F||={});var QF;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.LOW=1]="LOW";K[K.HIGH=2]="HIGH";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QF||={});var ZF;((q)=>{q[q.O18_BINARY=0]="O18_BINARY";q[q.WAFFLE=1]="WAFFLE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZF||={});var JF;((R)=>{R[R.UNKNOWN=0]="UNKNOWN";R[R.PROGRESS_INDICATOR=1]="PROGRESS_INDICATOR";R[R.RICH_RESPONSE_HEADING=2]="RICH_RESPONSE_HEADING";R[R.RICH_RESPONSE_NESTED_LIST=3]="RICH_RESPONSE_NESTED_LIST";R[R.AI_MEMORY=4]="AI_MEMORY";R[R.RICH_RESPONSE_THREAD_SURFING=5]="RICH_RESPONSE_THREAD_SURFING";R[R.RICH_RESPONSE_TABLE=6]="RICH_RESPONSE_TABLE";R[R.RICH_RESPONSE_CODE=7]="RICH_RESPONSE_CODE";R[R.RICH_RESPONSE_STRUCTURED_RESPONSE=8]="RICH_RESPONSE_STRUCTURED_RESPONSE";R[R.RICH_RESPONSE_INLINE_IMAGE=9]="RICH_RESPONSE_INLINE_IMAGE";R[R.WA_IG_1P_PLUGIN_RANKING_CONTROL=10]="WA_IG_1P_PLUGIN_RANKING_CONTROL";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11]="WA_IG_1P_PLUGIN_RANKING_UPDATE_1";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12]="WA_IG_1P_PLUGIN_RANKING_UPDATE_2";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_3=13]="WA_IG_1P_PLUGIN_RANKING_UPDATE_3";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_4=14]="WA_IG_1P_PLUGIN_RANKING_UPDATE_4";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_5=15]="WA_IG_1P_PLUGIN_RANKING_UPDATE_5";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_6=16]="WA_IG_1P_PLUGIN_RANKING_UPDATE_6";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_7=17]="WA_IG_1P_PLUGIN_RANKING_UPDATE_7";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18]="WA_IG_1P_PLUGIN_RANKING_UPDATE_8";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19]="WA_IG_1P_PLUGIN_RANKING_UPDATE_9";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20]="WA_IG_1P_PLUGIN_RANKING_UPDATE_10";R[R.RICH_RESPONSE_SUB_HEADING=21]="RICH_RESPONSE_SUB_HEADING";R[R.RICH_RESPONSE_GRID_IMAGE=22]="RICH_RESPONSE_GRID_IMAGE";R[R.AI_STUDIO_UGC_MEMORY=23]="AI_STUDIO_UGC_MEMORY";R[R.RICH_RESPONSE_LATEX=24]="RICH_RESPONSE_LATEX";R[R.RICH_RESPONSE_MAPS=25]="RICH_RESPONSE_MAPS";R[R.RICH_RESPONSE_INLINE_REELS=26]="RICH_RESPONSE_INLINE_REELS";R[R.AGENTIC_PLANNING=27]="AGENTIC_PLANNING";R[R.ACCOUNT_LINKING=28]="ACCOUNT_LINKING";R[R.STREAMING_DISAGGREGATION=29]="STREAMING_DISAGGREGATION";R[R.RICH_RESPONSE_GRID_IMAGE_3P=30]="RICH_RESPONSE_GRID_IMAGE_3P";R[R.RICH_RESPONSE_LATEX_INLINE=31]="RICH_RESPONSE_LATEX_INLINE";R[R.QUERY_PLAN=32]="QUERY_PLAN";R[R.PROACTIVE_MESSAGE=33]="PROACTIVE_MESSAGE";R[R.RICH_RESPONSE_UNIFIED_RESPONSE=34]="RICH_RESPONSE_UNIFIED_RESPONSE";R[R.PROMOTION_MESSAGE=35]="PROMOTION_MESSAGE";R[R.SIMPLIFIED_PROFILE_PAGE=36]="SIMPLIFIED_PROFILE_PAGE";R[R.RICH_RESPONSE_SOURCES_IN_MESSAGE=37]="RICH_RESPONSE_SOURCES_IN_MESSAGE";R[R.RICH_RESPONSE_SIDE_BY_SIDE_SURVEY=38]="RICH_RESPONSE_SIDE_BY_SIDE_SURVEY";R[R.RICH_RESPONSE_UNIFIED_TEXT_COMPONENT=39]="RICH_RESPONSE_UNIFIED_TEXT_COMPONENT";R[R.AI_SHARED_MEMORY=40]="AI_SHARED_MEMORY";R[R.RICH_RESPONSE_UNIFIED_SOURCES=41]="RICH_RESPONSE_UNIFIED_SOURCES";R[R.RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS=42]="RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS";R[R.RICH_RESPONSE_UR_INLINE_REELS_ENABLED=43]="RICH_RESPONSE_UR_INLINE_REELS_ENABLED";R[R.RICH_RESPONSE_UR_MEDIA_GRID_ENABLED=44]="RICH_RESPONSE_UR_MEDIA_GRID_ENABLED";R[R.RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER=45]="RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER";R[R.RICH_RESPONSE_IN_APP_SURVEY=46]="RICH_RESPONSE_IN_APP_SURVEY";R[R.AI_RESPONSE_MODEL_BRANDING=47]="AI_RESPONSE_MODEL_BRANDING";R[R.SESSION_TRANSPARENCY_SYSTEM_MESSAGE=48]="SESSION_TRANSPARENCY_SYSTEM_MESSAGE";R[R.RICH_RESPONSE_UR_REASONING=49]="RICH_RESPONSE_UR_REASONING";R[R.RICH_RESPONSE_UR_ZEITGEIST_CITATIONS=50]="RICH_RESPONSE_UR_ZEITGEIST_CITATIONS";R[R.RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL=51]="RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL";R[R.AI_IMAGINE_LOADING_INDICATOR=52]="AI_IMAGINE_LOADING_INDICATOR";R[R.RICH_RESPONSE_UR_IMAGINE=53]="RICH_RESPONSE_UR_IMAGINE";R[R.AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR=54]="AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR";R[R.RICH_RESPONSE_UR_BLOKS_ENABLED=55]="RICH_RESPONSE_UR_BLOKS_ENABLED";R[R.RICH_RESPONSE_INLINE_LINKS_ENABLED=56]="RICH_RESPONSE_INLINE_LINKS_ENABLED";R[R.RICH_RESPONSE_UR_IMAGINE_VIDEO=57]="RICH_RESPONSE_UR_IMAGINE_VIDEO";R[R.JSON_PATCH_STREAMING=58]="JSON_PATCH_STREAMING";R[R.AI_TAB_FORCE_CLIPPY=59]="AI_TAB_FORCE_CLIPPY";R[R.UNIFIED_RESPONSE_EMBEDDED_SCREENS=60]="UNIFIED_RESPONSE_EMBEDDED_SCREENS";R[R.AI_SUBSCRIPTION_ENABLED=61]="AI_SUBSCRIPTION_ENABLED";R[R.UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED=62]="UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED";R[R.UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED=63]="UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED";R[R.AI_RICH_RESPONSE_MAPS_V2_ENABLED=64]="AI_RICH_RESPONSE_MAPS_V2_ENABLED";R[R.AI_SUBSCRIPTION_METERING_ENABLED=65]="AI_SUBSCRIPTION_METERING_ENABLED";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JF||={});var KF;((q)=>{q[q.TEXT_EXTRACTION=0]="TEXT_EXTRACTION";q[q.OCR_AND_IMAGES=1]="OCR_AND_IMAGES";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KF||={});var qF;((S)=>{S[S.BOT_FEEDBACK_POSITIVE=0]="BOT_FEEDBACK_POSITIVE";S[S.BOT_FEEDBACK_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_NEGATIVE_GENERIC";S[S.BOT_FEEDBACK_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_NEGATIVE_HELPFUL";S[S.BOT_FEEDBACK_NEGATIVE_INTERESTING=3]="BOT_FEEDBACK_NEGATIVE_INTERESTING";S[S.BOT_FEEDBACK_NEGATIVE_ACCURATE=4]="BOT_FEEDBACK_NEGATIVE_ACCURATE";S[S.BOT_FEEDBACK_NEGATIVE_SAFE=5]="BOT_FEEDBACK_NEGATIVE_SAFE";S[S.BOT_FEEDBACK_NEGATIVE_OTHER=6]="BOT_FEEDBACK_NEGATIVE_OTHER";S[S.BOT_FEEDBACK_NEGATIVE_REFUSED=7]="BOT_FEEDBACK_NEGATIVE_REFUSED";S[S.BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING=8]="BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING";S[S.BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT=9]="BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT";S[S.BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10]="BOT_FEEDBACK_NEGATIVE_PERSONALIZED";S[S.BOT_FEEDBACK_NEGATIVE_CLARITY=11]="BOT_FEEDBACK_NEGATIVE_CLARITY";S[S.BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12]="BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON";S[S.BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY=13]="BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY";S[S.BOT_FEEDBACK_NEGATIVE=14]="BOT_FEEDBACK_NEGATIVE";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qF||={});var XF;((B)=>{B[B.BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC";B[B.BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL";B[B.BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING=4]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING";B[B.BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE=8]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE";B[B.BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE=16]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE";B[B.BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER=32]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER";B[B.BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED=64]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED";B[B.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING=128]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING";B[B.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT=256]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT";B[B.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XF||={});var zF;((Z)=>{Z[Z.BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zF||={});var YF;((q)=>{q[q.NONE=0]="NONE";q[q.GENERIC=1]="GENERIC";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YF||={});var VF;((z)=>{z[z.UNKNOWN=0]="UNKNOWN";z[z.IMAGINE=1]="IMAGINE";z[z.MEMU=2]="MEMU";z[z.FLASH=3]="FLASH";z[z.EDIT=4]="EDIT";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VF||={});var HF;((q)=>{q[q.AAPI=0]="AAPI";q[q.CLIPPY=1]="CLIPPY";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HF||={});var GF;((Z)=>{Z[Z.BOT_LINKED_ACCOUNT_TYPE_1P=0]="BOT_LINKED_ACCOUNT_TYPE_1P";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GF||={});var UF;((K)=>{K[K.CENTER=1]="CENTER";K[K.LEFT=2]="LEFT";K[K.RIGHT=3]="RIGHT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UF||={});var CF;((Z)=>{Z[Z.BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED=0]="BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CF||={});var xF;((q)=>{q[q.DEFAULT_MODE=0]="DEFAULT_MODE";q[q.THINK_HARD_MODE=1]="THINK_HARD_MODE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xF||={});var DF;((K)=>{K[K.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";K[K.LLAMA_PROD=1]="LLAMA_PROD";K[K.LLAMA_PROD_PREMIUM=2]="LLAMA_PROD_PREMIUM";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DF||={});var LF;((K)=>{K[K.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";K[K.AVAILABLE=1]="AVAILABLE";K[K.QUOTA_EXCEED_LIMIT=2]="QUOTA_EXCEED_LIMIT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LF||={});var FF;((K)=>{K[K.UNKNOWN_PLUGIN=0]="UNKNOWN_PLUGIN";K[K.REELS=1]="REELS";K[K.SEARCH=2]="SEARCH";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FF||={});var PF;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.BING=1]="BING";J[J.GOOGLE=2]="GOOGLE";J[J.SUPPORT=3]="SUPPORT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PF||={});var kF;((J)=>{J[J.UNKNOWN_PROVIDER=0]="UNKNOWN_PROVIDER";J[J.OTHER=1]="OTHER";J[J.GOOGLE=2]="GOOGLE";J[J.BING=3]="BING";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kF||={});var NF;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.PLANNED=1]="PLANNED";J[J.EXECUTING=2]="EXECUTING";J[J.FINISHED=3]="FINISHED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NF||={});var BF;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.OTHER=1]="OTHER";J[J.GOOGLE=2]="GOOGLE";J[J.BING=3]="BING";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BF||={});var RF;((K)=>{K[K.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";K[K.C50=1]="C50";K[K.SURVEY_PLATFORM=2]="SURVEY_PLATFORM";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RF||={});var OF;((q)=>{q[q.UNKNOWN_FEATURE=0]="UNKNOWN_FEATURE";q[q.REASONING_FEATURE=1]="REASONING_FEATURE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OF||={});var AF;((J)=>{J[J.NOTIFY=1]="NOTIFY";J[J.CREATE=2]="CREATE";J[J.DELETE=3]="DELETE";J[J.UPDATE=4]="UPDATE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AF||={});var EF;((z)=>{z[z.ONCE=1]="ONCE";z[z.DAILY=2]="DAILY";z[z.WEEKLY=3]="WEEKLY";z[z.BIWEEKLY=4]="BIWEEKLY";z[z.MONTHLY=5]="MONTHLY";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EF||={});var MF;((J)=>{J[J.UNSPECIFIED=0]="UNSPECIFIED";J[J.WA_BOT_MSG=1]="WA_BOT_MSG";J[J.WA_TEE_BOT_MSG=2]="WA_TEE_BOT_MSG";J[J.P2P_PILLS=3]="P2P_PILLS";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MF||={});var WF;((z)=>{z[z.UNKNOWN=0]="UNKNOWN";z[z.BING=1]="BING";z[z.GOOGLE=2]="GOOGLE";z[z.SUPPORT=3]="SUPPORT";z[z.OTHER=4]="OTHER";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WF||={});var IF;((I)=>{I[I.CONNECTED=0]="CONNECTED";I[I.REJECTED=1]="REJECTED";I[I.CANCELLED=2]="CANCELLED";I[I.ACCEPTEDELSEWHERE=3]="ACCEPTEDELSEWHERE";I[I.MISSED=4]="MISSED";I[I.INVALID=5]="INVALID";I[I.UNAVAILABLE=6]="UNAVAILABLE";I[I.UPCOMING=7]="UPCOMING";I[I.FAILED=8]="FAILED";I[I.ABANDONED=9]="ABANDONED";I[I.ONGOING=10]="ONGOING";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IF||={});var SF;((K)=>{K[K.REGULAR=0]="REGULAR";K[K.SCHEDULED_CALL=1]="SCHEDULED_CALL";K[K.VOICE_CHAT=2]="VOICE_CHAT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SF||={});var vF;((J)=>{J[J.NONE=0]="NONE";J[J.SCHEDULED=1]="SCHEDULED";J[J.PRIVACY=2]="PRIVACY";J[J.LIGHTWEIGHT=3]="LIGHTWEIGHT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vF||={});var TF;((K)=>{K[K.NONE=0]="NONE";K[K.IMAGE=1]="IMAGE";K[K.VIDEO=2]="VIDEO";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TF||={});var yF;((q)=>{q[q.DEFAULT=0]="DEFAULT";q[q.GUEST=1]="GUEST";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yF||={});var fF;((D)=>{D[D.PUSH=0]="PUSH";D[D.USER_ACTIVATED=1]="USER_ACTIVATED";D[D.SCHEDULED=2]="SCHEDULED";D[D.ERROR_RECONNECT=3]="ERROR_RECONNECT";D[D.NETWORK_SWITCH=4]="NETWORK_SWITCH";D[D.PING_RECONNECT=5]="PING_RECONNECT";D[D.UNKNOWN=6]="UNKNOWN";D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fF||={});var _F;((S)=>{S[S.CELLULAR_UNKNOWN=0]="CELLULAR_UNKNOWN";S[S.WIFI_UNKNOWN=1]="WIFI_UNKNOWN";S[S.CELLULAR_EDGE=100]="CELLULAR_EDGE";S[S.CELLULAR_IDEN=101]="CELLULAR_IDEN";S[S.CELLULAR_UMTS=102]="CELLULAR_UMTS";S[S.CELLULAR_EVDO=103]="CELLULAR_EVDO";S[S.CELLULAR_GPRS=104]="CELLULAR_GPRS";S[S.CELLULAR_HSDPA=105]="CELLULAR_HSDPA";S[S.CELLULAR_HSUPA=106]="CELLULAR_HSUPA";S[S.CELLULAR_HSPA=107]="CELLULAR_HSPA";S[S.CELLULAR_CDMA=108]="CELLULAR_CDMA";S[S.CELLULAR_1XRTT=109]="CELLULAR_1XRTT";S[S.CELLULAR_EHRPD=110]="CELLULAR_EHRPD";S[S.CELLULAR_LTE=111]="CELLULAR_LTE";S[S.CELLULAR_HSPAP=112]="CELLULAR_HSPAP";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_F||={});var hF;((K)=>{K[K.SHARE_EXTENSION=0]="SHARE_EXTENSION";K[K.SERVICE_EXTENSION=1]="SERVICE_EXTENSION";K[K.INTENTS_EXTENSION=2]="INTENTS_EXTENSION";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hF||={});var lF;((z)=>{z[z.WHATSAPP=0]="WHATSAPP";z[z.MESSENGER=1]="MESSENGER";z[z.INTEROP=2]="INTEROP";z[z.INTEROP_MSGR=3]="INTEROP_MSGR";z[z.WHATSAPP_LID=4]="WHATSAPP_LID";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lF||={});var uF;((q)=>{q[q.OFF=0]="OFF";q[q.STANDARD=1]="STANDARD";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uF||={});var pF;((x)=>{x[x.SYSTEM=0]="SYSTEM";x[x.GOOGLE=1]="GOOGLE";x[x.HARDCODED=2]="HARDCODED";x[x.OVERRIDE=3]="OVERRIDE";x[x.FALLBACK=4]="FALLBACK";x[x.MNS=5]="MNS";x[x.MNS_SECONDARY=6]="MNS_SECONDARY";x[x.SOCKS_PROXY=7]="SOCKS_PROXY";x[x.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pF||={});var wF;((z)=>{z[z.PHONE=0]="PHONE";z[z.TABLET=1]="TABLET";z[z.DESKTOP=2]="DESKTOP";z[z.WEARABLE=3]="WEARABLE";z[z.VR=4]="VR";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wF||={});var nF;((J)=>{J[J.APPSTORE=0]="APPSTORE";J[J.WEBSITE=1]="WEBSITE";J[J.TESTFLIGHT=2]="TESTFLIGHT";J[J.INTERNAL=3]="INTERNAL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nF||={});var dF;((v)=>{v[v.ANDROID=0]="ANDROID";v[v.IOS=1]="IOS";v[v.WINDOWS_PHONE=2]="WINDOWS_PHONE";v[v.BLACKBERRY=3]="BLACKBERRY";v[v.BLACKBERRYX=4]="BLACKBERRYX";v[v.S40=5]="S40";v[v.S60=6]="S60";v[v.PYTHON_CLIENT=7]="PYTHON_CLIENT";v[v.TIZEN=8]="TIZEN";v[v.ENTERPRISE=9]="ENTERPRISE";v[v.SMB_ANDROID=10]="SMB_ANDROID";v[v.KAIOS=11]="KAIOS";v[v.SMB_IOS=12]="SMB_IOS";v[v.WINDOWS=13]="WINDOWS";v[v.WEB=14]="WEB";v[v.PORTAL=15]="PORTAL";v[v.GREEN_ANDROID=16]="GREEN_ANDROID";v[v.GREEN_IPHONE=17]="GREEN_IPHONE";v[v.BLUE_ANDROID=18]="BLUE_ANDROID";v[v.BLUE_IPHONE=19]="BLUE_IPHONE";v[v.FBLITE_ANDROID=20]="FBLITE_ANDROID";v[v.MLITE_ANDROID=21]="MLITE_ANDROID";v[v.IGLITE_ANDROID=22]="IGLITE_ANDROID";v[v.PAGE=23]="PAGE";v[v.MACOS=24]="MACOS";v[v.OCULUS_MSG=25]="OCULUS_MSG";v[v.OCULUS_CALL=26]="OCULUS_CALL";v[v.MILAN=27]="MILAN";v[v.CAPI=28]="CAPI";v[v.WEAROS=29]="WEAROS";v[v.ARDEVICE=30]="ARDEVICE";v[v.VRDEVICE=31]="VRDEVICE";v[v.BLUE_WEB=32]="BLUE_WEB";v[v.IPAD=33]="IPAD";v[v.TEST=34]="TEST";v[v.SMART_GLASSES=35]="SMART_GLASSES";v[v.BLUE_VR=36]="BLUE_VR";v[v.AR_WRIST=37]="AR_WRIST";v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dF||={});var jF;((J)=>{J[J.RELEASE=0]="RELEASE";J[J.BETA=1]="BETA";J[J.ALPHA=2]="ALPHA";J[J.DEBUG=3]="DEBUG";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jF||={});var cF;((G)=>{G[G.WEB_BROWSER=0]="WEB_BROWSER";G[G.APP_STORE=1]="APP_STORE";G[G.WIN_STORE=2]="WIN_STORE";G[G.DARWIN=3]="DARWIN";G[G.WIN32=4]="WIN32";G[G.WIN_HYBRID=5]="WIN_HYBRID";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cF||={});var oF;((q)=>{q[q.NONE=0]="NONE";q[q.VIDEO=1]="VIDEO";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oF||={});var bF;((K)=>{K[K.CROSS_APP_SOURCE_UNKNOWN=0]="CROSS_APP_SOURCE_UNKNOWN";K[K.CROSS_APP_SOURCE_INSTAGRAM=1]="CROSS_APP_SOURCE_INSTAGRAM";K[K.CROSS_APP_SOURCE_FACEBOOK=2]="CROSS_APP_SOURCE_FACEBOOK";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bF||={});var iF;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.CHAT=1]="CHAT";G[G.STATUS=2]="STATUS";G[G.CHANNELS=3]="CHANNELS";G[G.META_AI=4]="META_AI";G[G.UGC=5]="UGC";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iF||={});var mF;((B)=>{B[B.NOT_PAIRED_MEDIA=0]="NOT_PAIRED_MEDIA";B[B.SD_VIDEO_PARENT=1]="SD_VIDEO_PARENT";B[B.HD_VIDEO_CHILD=2]="HD_VIDEO_CHILD";B[B.SD_IMAGE_PARENT=3]="SD_IMAGE_PARENT";B[B.HD_IMAGE_CHILD=4]="HD_IMAGE_CHILD";B[B.MOTION_PHOTO_PARENT=5]="MOTION_PHOTO_PARENT";B[B.MOTION_PHOTO_CHILD=6]="MOTION_PHOTO_CHILD";B[B.HEVC_VIDEO_PARENT=7]="HEVC_VIDEO_PARENT";B[B.HEVC_VIDEO_CHILD=8]="HEVC_VIDEO_CHILD";B[B.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mF||={});var gF;((q)=>{q[q.EXPLICIT=0]="EXPLICIT";q[q.AUTO=1]="AUTO";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gF||={});var tF;((z)=>{z[z.NONE=0]="NONE";z[z.RESHARED_FROM_MENTION=1]="RESHARED_FROM_MENTION";z[z.RESHARED_FROM_POST=2]="RESHARED_FROM_POST";z[z.RESHARED_FROM_POST_MANY_TIMES=3]="RESHARED_FROM_POST_MANY_TIMES";z[z.FORWARDED_FROM_STATUS=4]="FORWARDED_FROM_STATUS";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tF||={});var rF;((G)=>{G[G.IMAGE=0]="IMAGE";G[G.VIDEO=1]="VIDEO";G[G.GIF=2]="GIF";G[G.AUDIO=3]="AUDIO";G[G.TEXT=4]="TEXT";G[G.MUSIC_STANDALONE=5]="MUSIC_STANDALONE";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rF||={});var aF;((K)=>{K[K.NONE=0]="NONE";K[K.IMAGE=1]="IMAGE";K[K.VIDEO=2]="VIDEO";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aF||={});var sF;((G)=>{G[G.ENTRY_POINT_UNKNOWN=0]="ENTRY_POINT_UNKNOWN";G[G.P2P_LINK_SHARE=1]="P2P_LINK_SHARE";G[G.CONTACT_CARD_SHARING=2]="CONTACT_CARD_SHARING";G[G.PHONE_NUMBER=3]="PHONE_NUMBER";G[G.STATUS=4]="STATUS";G[G.IN_THREAD_CONTEXT_CARD=5]="IN_THREAD_CONTEXT_CARD";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sF||={});var eF;((M)=>{M[M.UNKNOWN=0]="UNKNOWN";M[M.VIEW_BUSINESS=1]="VIEW_BUSINESS";M[M.CHAT=2]="CHAT";M[M.CALL=3]="CALL";M[M.CATALOG=4]="CATALOG";M[M.CHANNEL=5]="CHANNEL";M[M.BOOK_APPOINTMENT=6]="BOOK_APPOINTMENT";M[M.OFFERS=7]="OFFERS";M[M.BESTSELLERS=8]="BESTSELLERS";M[M.MENU=9]="MENU";M[M.ABOUT=10]="ABOUT";M[M.SHOP=11]="SHOP";M[M.ORDER=12]="ORDER";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eF||={});var $P;((q)=>{q[q.SHOW_MM_DISCLOSURE_ON_CLICK=1]="SHOW_MM_DISCLOSURE_ON_CLICK";q[q.SHOW_MM_DISCLOSURE_ON_READ=2]="SHOW_MM_DISCLOSURE_ON_READ";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})($P||={});var QP;((q)=>{q[q.CTWA=0]="CTWA";q[q.CAWC=1]="CAWC";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QP||={});var ZP;((K)=>{K[K.NONE=0]="NONE";K[K.IMAGE=1]="IMAGE";K[K.VIDEO=2]="VIDEO";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZP||={});var JP;((K)=>{K[K.UPDATE=1]="UPDATE";K[K.UPDATE_CARD=2]="UPDATE_CARD";K[K.LINK_CARD=3]="LINK_CARD";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JP||={});var KP;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.CLOSE_FRIENDS=1]="CLOSE_FRIENDS";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KP||={});var qP;((J)=>{J[J.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY=0]="COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY";J[J.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY=1]="COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY";J[J.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY=2]="COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY";J[J.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";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qP||={});var XP;((J)=>{J[J.NO_APPEAL=0]="NO_APPEAL";J[J.APPEAL_IN_REVIEW=1]="APPEAL_IN_REVIEW";J[J.APPEAL_APPROVED=2]="APPEAL_APPROVED";J[J.APPEAL_REJECTED=3]="APPEAL_REJECTED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XP||={});var zP;((K)=>{K[K.NONE=0]="NONE";K[K.MINIMAL=1]="MINIMAL";K[K.FULL=2]="FULL";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zP||={});var YP;((K)=>{K[K.DISABLED=0]="DISABLED";K[K.RECEIVER_ENABLED=1]="RECEIVER_ENABLED";K[K.SENDER_ENABLED=2]="SENDER_ENABLED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YP||={});var VP;((K)=>{K[K.NONE=0]="NONE";K[K.INFRA=1]="INFRA";K[K.FULL=2]="FULL";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VP||={});var HP;((u)=>{u[u.UNKNOWN=0]="UNKNOWN";u[u.CHROME=1]="CHROME";u[u.FIREFOX=2]="FIREFOX";u[u.IE=3]="IE";u[u.OPERA=4]="OPERA";u[u.SAFARI=5]="SAFARI";u[u.EDGE=6]="EDGE";u[u.DESKTOP=7]="DESKTOP";u[u.IPAD=8]="IPAD";u[u.ANDROID_TABLET=9]="ANDROID_TABLET";u[u.OHANA=10]="OHANA";u[u.ALOHA=11]="ALOHA";u[u.CATALINA=12]="CATALINA";u[u.TCL_TV=13]="TCL_TV";u[u.IOS_PHONE=14]="IOS_PHONE";u[u.IOS_CATALYST=15]="IOS_CATALYST";u[u.ANDROID_PHONE=16]="ANDROID_PHONE";u[u.ANDROID_AMBIGUOUS=17]="ANDROID_AMBIGUOUS";u[u.WEAR_OS=18]="WEAR_OS";u[u.AR_WRIST=19]="AR_WRIST";u[u.AR_DEVICE=20]="AR_DEVICE";u[u.UWP=21]="UWP";u[u.VR=22]="VR";u[u.CLOUD_API=23]="CLOUD_API";u[u.SMARTGLASSES=24]="SMARTGLASSES";u[u.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HP||={});var GP;((J)=>{J[J.CHANGED_IN_CHAT=0]="CHANGED_IN_CHAT";J[J.INITIATED_BY_ME=1]="INITIATED_BY_ME";J[J.INITIATED_BY_OTHER=2]="INITIATED_BY_OTHER";J[J.BIZ_UPGRADE_FB_HOSTING=3]="BIZ_UPGRADE_FB_HOSTING";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GP||={});var UP;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.CHAT_SETTING=1]="CHAT_SETTING";G[G.ACCOUNT_SETTING=2]="ACCOUNT_SETTING";G[G.BULK_CHANGE=3]="BULK_CHANGE";G[G.BIZ_SUPPORTS_FB_HOSTING=4]="BIZ_SUPPORTS_FB_HOSTING";G[G.UNKNOWN_GROUPS=5]="UNKNOWN_GROUPS";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UP||={});var CP;((q)=>{q[q.E2EE=0]="E2EE";q[q.HOSTED=1]="HOSTED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CP||={});var xP;((G)=>{G[G.NOT_INJECTED=0]="NOT_INJECTED";G[G.INJECTED=1]="INJECTED";G[G.INJECTED_PARTIAL=2]="INJECTED_PARTIAL";G[G.INJECTION_FAILED=3]="INJECTION_FAILED";G[G.INJECTION_FAILED_NO_RETRY=4]="INJECTION_FAILED_NO_RETRY";G[G.DEDUPED=5]="DEDUPED";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xP||={});var DP;((K)=>{K[K.REGULAR=0]="REGULAR";K[K.ADMIN=1]="ADMIN";K[K.SUPERADMIN=2]="SUPERADMIN";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DP||={});var LP;((B)=>{B[B.HANDSHAKE_PQ_MODE_UNKNOWN=0]="HANDSHAKE_PQ_MODE_UNKNOWN";B[B.XXKEM=1]="XXKEM";B[B.XXKEM_FS=2]="XXKEM_FS";B[B.WA_CLASSICAL=3]="WA_CLASSICAL";B[B.WA_PQ=4]="WA_PQ";B[B.IKKEM=5]="IKKEM";B[B.IKKEM_FS=6]="IKKEM_FS";B[B.XXKEM_2=7]="XXKEM_2";B[B.IKKEM_2=8]="IKKEM_2";B[B.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LP||={});var FP;((q)=>{q[q.IN_WAITLIST=0]="IN_WAITLIST";q[q.AI_AVAILABLE=1]="AI_AVAILABLE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FP||={});var PP;((D)=>{D[D.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";D[D.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";D[D.FULL=2]="FULL";D[D.RECENT=3]="RECENT";D[D.PUSH_NAME=4]="PUSH_NAME";D[D.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";D[D.ON_DEMAND=6]="ON_DEMAND";D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PP||={});var kP;((K)=>{K[K.FULL=1]="FULL";K[K.TALL=2]="TALL";K[K.COMPACT=3]="COMPACT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kP||={});var NP;((K)=>{K[K.RASTERIZED_LINK_PREVIEW=1]="RASTERIZED_LINK_PREVIEW";K[K.RASTERIZED_LINK_TRUNCATED=2]="RASTERIZED_LINK_TRUNCATED";K[K.RASTERIZED_LINK_FULL_URL=3]="RASTERIZED_LINK_FULL_URL";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NP||={});var BP;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.CHAT_SETTING=1]="CHAT_SETTING";J[J.BIZ_SUPPORTS_FB_HOSTING=2]="BIZ_SUPPORTS_FB_HOSTING";J[J.UNKNOWN_GROUP=3]="UNKNOWN_GROUP";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BP||={});var RP;((J)=>{J[J.GENERAL_ERROR=0]="GENERAL_ERROR";J[J.SUCCESS=1]="SUCCESS";J[J.NOT_FOUND=2]="NOT_FOUND";J[J.DECRYPTION_ERROR=3]="DECRYPTION_ERROR";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RP||={});var OP;((B)=>{B[B.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";B[B.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";B[B.FULL=2]="FULL";B[B.RECENT=3]="RECENT";B[B.PUSH_NAME=4]="PUSH_NAME";B[B.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";B[B.ON_DEMAND=6]="ON_DEMAND";B[B.NO_HISTORY=7]="NO_HISTORY";B[B.MESSAGE_ACCESS_STATUS=8]="MESSAGE_ACCESS_STATUS";B[B.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OP||={});var AP;((z)=>{z[z.SENT=0]="SENT";z[z.DELIVERED=1]="DELIVERED";z[z.READ=2]="READ";z[z.REPLIED=3]="REPLIED";z[z.QUICK_REPLIED=4]="QUICK_REPLIED";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AP||={});var EP;((n)=>{n[n.UPLOAD_STICKER=0]="UPLOAD_STICKER";n[n.SEND_RECENT_STICKER_BOOTSTRAP=1]="SEND_RECENT_STICKER_BOOTSTRAP";n[n.GENERATE_LINK_PREVIEW=2]="GENERATE_LINK_PREVIEW";n[n.HISTORY_SYNC_ON_DEMAND=3]="HISTORY_SYNC_ON_DEMAND";n[n.PLACEHOLDER_MESSAGE_RESEND=4]="PLACEHOLDER_MESSAGE_RESEND";n[n.WAFFLE_LINKING_NONCE_FETCH=5]="WAFFLE_LINKING_NONCE_FETCH";n[n.FULL_HISTORY_SYNC_ON_DEMAND=6]="FULL_HISTORY_SYNC_ON_DEMAND";n[n.COMPANION_META_NONCE_FETCH=7]="COMPANION_META_NONCE_FETCH";n[n.COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8]="COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY";n[n.COMPANION_CANONICAL_USER_NONCE_FETCH=9]="COMPANION_CANONICAL_USER_NONCE_FETCH";n[n.HISTORY_SYNC_CHUNK_RETRY=10]="HISTORY_SYNC_CHUNK_RETRY";n[n.GALAXY_FLOW_ACTION=11]="GALAXY_FLOW_ACTION";n[n.BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO=12]="BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO";n[n.BUSINESS_BROADCAST_INSIGHTS_REFRESH=13]="BUSINESS_BROADCAST_INSIGHTS_REFRESH";n[n.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EP||={});var MP;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.TEXT=1]="TEXT";K[K.IMAGE=2]="IMAGE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MP||={});var WP;((q)=>{q[q.POLL=0]="POLL";q[q.QUIZ=1]="QUIZ";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WP||={});var IP;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.AUDIO=1]="AUDIO";K[K.VIDEO=2]="VIDEO";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IP||={});var SP;((D)=>{D[D.UNKNOWN=0]="UNKNOWN";D[D.EMPTY=1]="EMPTY";D[D.TEXT=2]="TEXT";D[D.DOCUMENT=3]="DOCUMENT";D[D.IMAGE=4]="IMAGE";D[D.VIDEO=5]="VIDEO";D[D.LOCATION=6]="LOCATION";D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SP||={});var vP;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.RESPONSE=1]="RESPONSE";K[K.NATIVE_FLOW=2]="NATIVE_FLOW";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vP||={});var TP;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.DISPLAY_TEXT=1]="DISPLAY_TEXT";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TP||={});var yP;((x)=>{x[x.CONNECTED=0]="CONNECTED";x[x.MISSED=1]="MISSED";x[x.FAILED=2]="FAILED";x[x.REJECTED=3]="REJECTED";x[x.ACCEPTED_ELSEWHERE=4]="ACCEPTED_ELSEWHERE";x[x.ONGOING=5]="ONGOING";x[x.SILENCED_BY_DND=6]="SILENCED_BY_DND";x[x.SILENCED_UNKNOWN_CALLER=7]="SILENCED_UNKNOWN_CALLER";x[x.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yP||={});var fP;((K)=>{K[K.REGULAR=0]="REGULAR";K[K.SCHEDULED_CALL=1]="SCHEDULED_CALL";K[K.VOICE_CHAT=2]="VOICE_CHAT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fP||={});var _P;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.CONTROL_PASSED=1]="CONTROL_PASSED";J[J.CONTROL_TAKEN=2]="CONTROL_TAKEN";J[J.INFO=3]="INFO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_P||={});var hP;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.SCHEDULED_MESSAGE=1]="SCHEDULED_MESSAGE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hP||={});var lP;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.GOING=1]="GOING";J[J.NOT_GOING=2]="NOT_GOING";J[J.MAYBE=3]="MAYBE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lP||={});var uP;((x)=>{x[x.SYSTEM=0]="SYSTEM";x[x.SYSTEM_TEXT=1]="SYSTEM_TEXT";x[x.FB_SCRIPT=2]="FB_SCRIPT";x[x.SYSTEM_BOLD=6]="SYSTEM_BOLD";x[x.MORNINGBREEZE_REGULAR=7]="MORNINGBREEZE_REGULAR";x[x.CALISTOGA_REGULAR=8]="CALISTOGA_REGULAR";x[x.EXO2_EXTRABOLD=9]="EXO2_EXTRABOLD";x[x.COURIERPRIME_BOLD=10]="COURIERPRIME_BOLD";x[x.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uP||={});var pP;((J)=>{J[J.DEFAULT=0]="DEFAULT";J[J.PARENT=1]="PARENT";J[J.SUB=2]="SUB";J[J.DEFAULT_SUB=3]="DEFAULT_SUB";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pP||={});var wP;((G)=>{G[G.NONE=0]="NONE";G[G.VIDEO=1]="VIDEO";G[G.PLACEHOLDER=4]="PLACEHOLDER";G[G.IMAGE=5]="IMAGE";G[G.PAYMENT_LINKS=6]="PAYMENT_LINKS";G[G.PROFILE=7]="PROFILE";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wP||={});var nP;((q)=>{q[q.DEFAULT=0]="DEFAULT";q[q.PARENT=1]="PARENT";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nP||={});var dP;((q)=>{q[q.GREGORIAN=1]="GREGORIAN";q[q.SOLAR_HIJRI=2]="SOLAR_HIJRI";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dP||={});var jP;((D)=>{D[D.MONDAY=1]="MONDAY";D[D.TUESDAY=2]="TUESDAY";D[D.WEDNESDAY=3]="WEDNESDAY";D[D.THURSDAY=4]="THURSDAY";D[D.FRIDAY=5]="FRIDAY";D[D.SATURDAY=6]="SATURDAY";D[D.SUNDAY=7]="SUNDAY";D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jP||={});var cP;((J)=>{J[J.USER_IMAGE=0]="USER_IMAGE";J[J.AI_GENERATED=1]="AI_GENERATED";J[J.AI_MODIFIED=2]="AI_MODIFIED";J[J.RASTERIZED_TEXT_STATUS=3]="RASTERIZED_TEXT_STATUS";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cP||={});var oP;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.HSCROLL_CARDS=1]="HSCROLL_CARDS";K[K.ALBUM_IMAGE=2]="ALBUM_IMAGE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oP||={});var bP;((J)=>{J[J.UNKNOWN_SURFACE=0]="UNKNOWN_SURFACE";J[J.FB=1]="FB";J[J.IG=2]="IG";J[J.WA=3]="WA";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bP||={});var iP;((q)=>{q[q.DEFAULT=0]="DEFAULT";q[q.EXTENSIONS_1=1]="EXTENSIONS_1";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iP||={});var mP;((q)=>{q[q.IMAGE=0]="IMAGE";q[q.PDF=1]="PDF";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mP||={});var gP;((G)=>{G[G.NONE=0]="NONE";G[G.REEL=1]="REEL";G[G.LIVE_VIDEO=2]="LIVE_VIDEO";G[G.LONG_VIDEO=3]="LONG_VIDEO";G[G.SINGLE_IMAGE=4]="SINGLE_IMAGE";G[G.CAROUSEL=5]="CAROUSEL";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gP||={});var tP;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.SINGLE_SELECT=1]="SINGLE_SELECT";K[K.PRODUCT_LIST=2]="PRODUCT_LIST";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tP||={});var rP;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.SINGLE_SELECT=1]="SINGLE_SELECT";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rP||={});var aP;((K)=>{K[K.INQUIRY=1]="INQUIRY";K[K.ACCEPTED=2]="ACCEPTED";K[K.DECLINED=3]="DECLINED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aP||={});var sP;((Z)=>{Z[Z.CATALOG=1]="CATALOG";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sP||={});var eP;((q)=>{q[q.DEFAULT=0]="DEFAULT";q[q.MAPPER=1]="MAPPER";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eP||={});var $k;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.FBPAY=1]="FBPAY";J[J.NOVI=2]="NOVI";J[J.UPI=3]="UPI";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})($k||={});var Qk;((q)=>{q[q.LINK_PREVIEW=0]="LINK_PREVIEW";q[q.ORDER=1]="ORDER";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Qk||={});var Zk;((z)=>{z[z.REMINDER_FREQUENCY_UNKNOWN=0]="REMINDER_FREQUENCY_UNKNOWN";z[z.WEEKLY=1]="WEEKLY";z[z.BI_WEEKLY=2]="BI_WEEKLY";z[z.MONTHLY=3]="MONTHLY";z[z.QUARTERLY=4]="QUARTERLY";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zk||={});var Jk;((G)=>{G[G.REMINDER_STATUS_UNKNOWN=0]="REMINDER_STATUS_UNKNOWN";G[G.ACTIVE=1]="ACTIVE";G[G.CANCELLED_BY_CREATOR=2]="CANCELLED_BY_CREATOR";G[G.STOPPED_BY_RECEIVER=3]="STOPPED_BY_RECEIVER";G[G.EXPIRED=4]="EXPIRED";G[G.PAID=5]="PAID";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jk||={});var Kk;((q)=>{q[q.NOTIFY_LAUNCH=1]="NOTIFY_LAUNCH";q[q.DOWNLOAD_RESPONSES=2]="DOWNLOAD_RESPONSES";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Kk||={});var qk;((x)=>{x[x.REQUEST_SUCCESS=0]="REQUEST_SUCCESS";x[x.REQUEST_TIME_EXPIRED=1]="REQUEST_TIME_EXPIRED";x[x.DECLINED_SHARING_HISTORY=2]="DECLINED_SHARING_HISTORY";x[x.GENERIC_ERROR=3]="GENERIC_ERROR";x[x.ERROR_REQUEST_ON_NON_SMB_PRIMARY=4]="ERROR_REQUEST_ON_NON_SMB_PRIMARY";x[x.ERROR_HOSTED_DEVICE_NOT_CONNECTED=5]="ERROR_HOSTED_DEVICE_NOT_CONNECTED";x[x.ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET=6]="ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET";x[x.ERROR_MULTI_PROVIDER_NOT_CONFIGURED=7]="ERROR_MULTI_PROVIDER_NOT_CONFIGURED";x[x.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qk||={});var Xk;((G)=>{G[G.GENERATION_ERROR=1]="GENERATION_ERROR";G[G.CHUNK_CONSUMED=2]="CHUNK_CONSUMED";G[G.TIMEOUT=3]="TIMEOUT";G[G.SESSION_EXHAUSTED=4]="SESSION_EXHAUSTED";G[G.CHUNK_EXHAUSTED=5]="CHUNK_EXHAUSTED";G[G.DUPLICATED_REQUEST=6]="DUPLICATED_REQUEST";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Xk||={});var zk;((K)=>{K[K.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";K[K.PIN_FOR_ALL=1]="PIN_FOR_ALL";K[K.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zk||={});var Yk;((Z)=>{Z[Z.MASK_LINKED_DEVICES=0]="MASK_LINKED_DEVICES";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Yk||={});var Vk;((h)=>{h[h.REVOKE=0]="REVOKE";h[h.EPHEMERAL_SETTING=3]="EPHEMERAL_SETTING";h[h.EPHEMERAL_SYNC_RESPONSE=4]="EPHEMERAL_SYNC_RESPONSE";h[h.HISTORY_SYNC_NOTIFICATION=5]="HISTORY_SYNC_NOTIFICATION";h[h.APP_STATE_SYNC_KEY_SHARE=6]="APP_STATE_SYNC_KEY_SHARE";h[h.APP_STATE_SYNC_KEY_REQUEST=7]="APP_STATE_SYNC_KEY_REQUEST";h[h.MSG_FANOUT_BACKFILL_REQUEST=8]="MSG_FANOUT_BACKFILL_REQUEST";h[h.INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC=9]="INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC";h[h.APP_STATE_FATAL_EXCEPTION_NOTIFICATION=10]="APP_STATE_FATAL_EXCEPTION_NOTIFICATION";h[h.SHARE_PHONE_NUMBER=11]="SHARE_PHONE_NUMBER";h[h.MESSAGE_EDIT=14]="MESSAGE_EDIT";h[h.PEER_DATA_OPERATION_REQUEST_MESSAGE=16]="PEER_DATA_OPERATION_REQUEST_MESSAGE";h[h.PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE=17]="PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE";h[h.REQUEST_WELCOME_MESSAGE=18]="REQUEST_WELCOME_MESSAGE";h[h.BOT_FEEDBACK_MESSAGE=19]="BOT_FEEDBACK_MESSAGE";h[h.MEDIA_NOTIFY_MESSAGE=20]="MEDIA_NOTIFY_MESSAGE";h[h.CLOUD_API_THREAD_CONTROL_NOTIFICATION=21]="CLOUD_API_THREAD_CONTROL_NOTIFICATION";h[h.LID_MIGRATION_MAPPING_SYNC=22]="LID_MIGRATION_MAPPING_SYNC";h[h.REMINDER_MESSAGE=23]="REMINDER_MESSAGE";h[h.BOT_MEMU_ONBOARDING_MESSAGE=24]="BOT_MEMU_ONBOARDING_MESSAGE";h[h.STATUS_MENTION_MESSAGE=25]="STATUS_MENTION_MESSAGE";h[h.STOP_GENERATION_MESSAGE=26]="STOP_GENERATION_MESSAGE";h[h.LIMIT_SHARING=27]="LIMIT_SHARING";h[h.AI_PSI_METADATA=28]="AI_PSI_METADATA";h[h.AI_QUERY_FANOUT=29]="AI_QUERY_FANOUT";h[h.GROUP_MEMBER_LABEL_CHANGE=30]="GROUP_MEMBER_LABEL_CHANGE";h[h.AI_MEDIA_COLLECTION_MESSAGE=31]="AI_MEDIA_COLLECTION_MESSAGE";h[h.MESSAGE_UNSCHEDULE=32]="MESSAGE_UNSCHEDULE";h[h.CHAT_THEME_SETTING=34]="CHAT_THEME_SETTING";h[h.AI_METADATA_OPERATION=35]="AI_METADATA_OPERATION";h[h.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Vk||={});var Hk;((q)=>{q[q.EMPTY=0]="EMPTY";q[q.NON_EMPTY=1]="NON_EMPTY";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Hk||={});var Gk;((q)=>{q[q.CHAT_OPEN=0]="CHAT_OPEN";q[q.COMPANION_PAIRING=1]="COMPANION_PAIRING";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Gk||={});var Uk;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.VOICE=1]="VOICE";K[K.VIDEO=2]="VIDEO";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Uk||={});var Ck;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.CANCEL=1]="CANCEL";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ck||={});var xk;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.EVENT_EDIT=1]="EVENT_EDIT";G[G.MESSAGE_EDIT=2]="MESSAGE_EDIT";G[G.MESSAGE_SCHEDULE=3]="MESSAGE_SCHEDULE";G[G.POLL_EDIT=4]="POLL_EDIT";G[G.POLL_ADD_OPTION=5]="POLL_ADD_OPTION";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xk||={});var Dk;((q)=>{q[q.PENDING=0]="PENDING";q[q.PAID=1]="PAID";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Dk||={});var Lk;((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.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Lk||={});var Fk;((Z)=>{Z[Z.QUESTION_ANSWER=1]="QUESTION_ANSWER";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Fk||={});var Pk;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.REACTION=1]="REACTION";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Pk||={});var kk;((K)=>{K[K.FIRST_PARTY=0]="FIRST_PARTY";K[K.THIRD_PARTY=1]="THIRD_PARTY";K[K.USER_CREATED=2]="USER_CREATED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kk||={});var Nk;((J)=>{J[J.NONE=0]="NONE";J[J.GIPHY=1]="GIPHY";J[J.TENOR=2]="TENOR";J[J.KLIPY=3]="KLIPY";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Nk||={});var Bk;((q)=>{q[q.USER_VIDEO=0]="USER_VIDEO";q[q.AI_GENERATED=1]="AI_GENERATED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Bk||={});var Rk;((z)=>{z[z.UNDEFINED=0]="UNDEFINED";z[z.REACTION=1]="REACTION";z[z.EVENT_RESPONSE=2]="EVENT_RESPONSE";z[z.POLL_UPDATE=3]="POLL_UPDATE";z[z.PIN_IN_CHAT=4]="PIN_IN_CHAT";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rk||={});var Ok;((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"})(Ok||={});var Ak;((q)=>{q[q.STATIC=1]="STATIC";q[q.DEPENDENT_ON_PARENT=2]="DEPENDENT_ON_PARENT";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ak||={});var Ek;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.TEXT=1]="TEXT";K[K.IMAGE=2]="IMAGE";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ek||={});var Mk;((q)=>{q[q.POLL=0]="POLL";q[q.QUIZ=1]="QUIZ";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Mk||={});var Wk;((q)=>{q[q.LEFT=0]="LEFT";q[q.REMOVED=1]="REMOVED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Wk||={});var Ik;((O)=>{O[O.ANDROID=0]="ANDROID";O[O.SMBA=1]="SMBA";O[O.IPHONE=2]="IPHONE";O[O.SMBI=3]="SMBI";O[O.WEB=4]="WEB";O[O.UWP=5]="UWP";O[O.DARWIN=6]="DARWIN";O[O.IPAD=7]="IPAD";O[O.WEAROS=8]="WEAROS";O[O.WASG=9]="WASG";O[O.WEARM=10]="WEARM";O[O.CAPI=11]="CAPI";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ik||={});var Sk;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.DEFAULT=1]="DEFAULT";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Sk||={});var vk;((q)=>{q[q.UNKNOWN_CURRENCY=0]="UNKNOWN_CURRENCY";q[q.INR=1]="INR";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vk||={});var Tk;((O)=>{O[O.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";O[O.PROCESSING=1]="PROCESSING";O[O.SENT=2]="SENT";O[O.NEED_TO_ACCEPT=3]="NEED_TO_ACCEPT";O[O.COMPLETE=4]="COMPLETE";O[O.COULD_NOT_COMPLETE=5]="COULD_NOT_COMPLETE";O[O.REFUNDED=6]="REFUNDED";O[O.EXPIRED=7]="EXPIRED";O[O.REJECTED=8]="REJECTED";O[O.CANCELLED=9]="CANCELLED";O[O.WAITING_FOR_PAYER=10]="WAITING_FOR_PAYER";O[O.WAITING=11]="WAITING";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Tk||={});var yk;((_)=>{_[_.UNKNOWN=0]="UNKNOWN";_[_.PENDING_SETUP=1]="PENDING_SETUP";_[_.PENDING_RECEIVER_SETUP=2]="PENDING_RECEIVER_SETUP";_[_.INIT=3]="INIT";_[_.SUCCESS=4]="SUCCESS";_[_.COMPLETED=5]="COMPLETED";_[_.FAILED=6]="FAILED";_[_.FAILED_RISK=7]="FAILED_RISK";_[_.FAILED_PROCESSING=8]="FAILED_PROCESSING";_[_.FAILED_RECEIVER_PROCESSING=9]="FAILED_RECEIVER_PROCESSING";_[_.FAILED_DA=10]="FAILED_DA";_[_.FAILED_DA_FINAL=11]="FAILED_DA_FINAL";_[_.REFUNDED_TXN=12]="REFUNDED_TXN";_[_.REFUND_FAILED=13]="REFUND_FAILED";_[_.REFUND_FAILED_PROCESSING=14]="REFUND_FAILED_PROCESSING";_[_.REFUND_FAILED_DA=15]="REFUND_FAILED_DA";_[_.EXPIRED_TXN=16]="EXPIRED_TXN";_[_.AUTH_CANCELED=17]="AUTH_CANCELED";_[_.AUTH_CANCEL_FAILED_PROCESSING=18]="AUTH_CANCEL_FAILED_PROCESSING";_[_.AUTH_CANCEL_FAILED=19]="AUTH_CANCEL_FAILED";_[_.COLLECT_INIT=20]="COLLECT_INIT";_[_.COLLECT_SUCCESS=21]="COLLECT_SUCCESS";_[_.COLLECT_FAILED=22]="COLLECT_FAILED";_[_.COLLECT_FAILED_RISK=23]="COLLECT_FAILED_RISK";_[_.COLLECT_REJECTED=24]="COLLECT_REJECTED";_[_.COLLECT_EXPIRED=25]="COLLECT_EXPIRED";_[_.COLLECT_CANCELED=26]="COLLECT_CANCELED";_[_.COLLECT_CANCELLING=27]="COLLECT_CANCELLING";_[_.IN_REVIEW=28]="IN_REVIEW";_[_.REVERSAL_SUCCESS=29]="REVERSAL_SUCCESS";_[_.REVERSAL_PENDING=30]="REVERSAL_PENDING";_[_.REFUND_PENDING=31]="REFUND_PENDING";_[_.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yk||={});var fk;((K)=>{K[K.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";K[K.PIN_FOR_ALL=1]="PIN_FOR_ALL";K[K.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fk||={});var _k;((J)=>{J[J.UNDEFINED=0]="UNDEFINED";J[J.LOW=1]="LOW";J[J.MID=2]="MID";J[J.HIGH=3]="HIGH";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_k||={});var hk;((K)=>{K[K.AND=1]="AND";K[K.OR=2]="OR";K[K.NOR=3]="NOR";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hk||={});var lk;((q)=>{q[q.PASS_BY_DEFAULT=1]="PASS_BY_DEFAULT";q[q.FAIL_BY_DEFAULT=2]="FAIL_BY_DEFAULT";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lk||={});var uk;((K)=>{K[K.TRUE=1]="TRUE";K[K.FALSE=2]="FALSE";K[K.UNKNOWN=3]="UNKNOWN";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uk||={});var pk;((O)=>{O[O.UNKNOWN=0]="UNKNOWN";O[O.RESHARE=1]="RESHARE";O[O.EXTERNAL_SHARE=2]="EXTERNAL_SHARE";O[O.MUSIC=3]="MUSIC";O[O.STATUS_MENTION=4]="STATUS_MENTION";O[O.GROUP_STATUS=5]="GROUP_STATUS";O[O.RL_ATTRIBUTION=6]="RL_ATTRIBUTION";O[O.AI_CREATED=7]="AI_CREATED";O[O.LAYOUTS=8]="LAYOUTS";O[O.NEWSLETTER_STATUS=9]="NEWSLETTER_STATUS";O[O.STATUS_CLOSE_SHARING=10]="STATUS_CLOSE_SHARING";O[O.PAID_PARTNERSHIP=11]="PAID_PARTNERSHIP";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pk||={});var wk;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.STATUS_MIMICRY=1]="STATUS_MIMICRY";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wk||={});var nk;((M)=>{M[M.UNKNOWN=0]="UNKNOWN";M[M.INSTAGRAM=1]="INSTAGRAM";M[M.FACEBOOK=2]="FACEBOOK";M[M.MESSENGER=3]="MESSENGER";M[M.SPOTIFY=4]="SPOTIFY";M[M.YOUTUBE=5]="YOUTUBE";M[M.PINTEREST=6]="PINTEREST";M[M.THREADS=7]="THREADS";M[M.APPLE_MUSIC=8]="APPLE_MUSIC";M[M.SHARECHAT=9]="SHARECHAT";M[M.GOOGLE_PHOTOS=10]="GOOGLE_PHOTOS";M[M.SOUNDCLOUD=11]="SOUNDCLOUD";M[M.SHAZAM=12]="SHAZAM";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nk||={});var dk;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.RAY_BAN_META_GLASSES=1]="RAY_BAN_META_GLASSES";J[J.OAKLEY_META_GLASSES=2]="OAKLEY_META_GLASSES";J[J.HYPERNOVA_GLASSES=3]="HYPERNOVA_GLASSES";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dk||={});var jk;((z)=>{z[z.UNKNOWN=0]="UNKNOWN";z[z.INTERNAL_RESHARE=1]="INTERNAL_RESHARE";z[z.MENTION_RESHARE=2]="MENTION_RESHARE";z[z.CHANNEL_RESHARE=3]="CHANNEL_RESHARE";z[z.FORWARD=4]="FORWARD";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jk||={});var ck;((z)=>{z[z.DRAFT=1]="DRAFT";z[z.SCHEDULED=2]="SCHEDULED";z[z.PROCESSING=3]="PROCESSING";z[z.FAILED=4]="FAILED";z[z.SENT=5]="SENT";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ck||={});var ok;((K)=>{K[K.UPDATED=0]="UPDATED";K[K.CREATED=1]="CREATED";K[K.DELETED=2]="DELETED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ok||={});var bk;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.INSTRUCTIONS=1]="INSTRUCTIONS";G[G.RESPONSE_SETTINGS=2]="RESPONSE_SETTINGS";G[G.EXAMPLE_RESPONSES=3]="EXAMPLE_RESPONSES";G[G.KNOWLEDGE=4]="KNOWLEDGE";G[G.LEAD_GEN=5]="LEAD_GEN";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bk||={});var ik;((Z)=>{Z[Z.DISABLE_CTA=1]="DISABLE_CTA";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ik||={});var mk;((j)=>{j[j.NONE=0]="NONE";j[j.UNREAD=1]="UNREAD";j[j.GROUPS=2]="GROUPS";j[j.FAVORITES=3]="FAVORITES";j[j.PREDEFINED=4]="PREDEFINED";j[j.CUSTOM=5]="CUSTOM";j[j.COMMUNITY=6]="COMMUNITY";j[j.SERVER_ASSIGNED=7]="SERVER_ASSIGNED";j[j.DRAFTED=8]="DRAFTED";j[j.AI_HANDOFF=9]="AI_HANDOFF";j[j.CHANNELS=10]="CHANNELS";j[j.AI_RESPONDING=11]="AI_RESPONDING";j[j.ARCHIVED=12]="ARCHIVED";j[j.LOCKED=13]="LOCKED";j[j.INVITES=14]="INVITES";j[j.THIRD_PARTY=15]="THIRD_PARTY";j[j.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mk||={});var gk;((K)=>{K[K.ENABLED=0]="ENABLED";K[K.ENABLED_HAS_LEARNING=1]="ENABLED_HAS_LEARNING";K[K.DISABLED=2]="DISABLED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gk||={});var tk;((K)=>{K[K.MUTED=0]="MUTED";K[K.AI_AGENT=1]="AI_AGENT";K[K.SUGGESTIONS=2]="SUGGESTIONS";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tk||={});var rk;((Z)=>{Z[Z.PERSONALIZED=0]="PERSONALIZED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rk||={});var ak;((q)=>{q[q.ACTIVE=0]="ACTIVE";q[q.INACTIVE=1]="INACTIVE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ak||={});var sk;((q)=>{q[q.UNSTRUCTURED=1]="UNSTRUCTURED";q[q.STRUCTURED=2]="STRUCTURED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sk||={});var ek;((J)=>{J[J.DEFAULT_ALL_MESSAGES=0]="DEFAULT_ALL_MESSAGES";J[J.ALL_MESSAGES=1]="ALL_MESSAGES";J[J.HIGHLIGHTS=2]="HIGHLIGHTS";J[J.DEFAULT_HIGHLIGHTS=3]="DEFAULT_HIGHLIGHTS";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ek||={});var $N;((Z)=>{Z[Z.BR_PAY_PRIVACY_POLICY=0]="BR_PAY_PRIVACY_POLICY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})($N||={});var QN;((K)=>{K[K.UNDEFINED=0]="UNDEFINED";K[K.ENABLED=1]="ENABLED";K[K.DISABLED=2]="DISABLED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QN||={});var ZN;((J)=>{J[J.DISPLAY_MODE_UNKNOWN=0]="DISPLAY_MODE_UNKNOWN";J[J.ALWAYS=1]="ALWAYS";J[J.NEVER=2]="NEVER";J[J.ONLY_WHEN_APP_IS_OPEN=3]="ONLY_WHEN_APP_IS_OPEN";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZN||={});var JN;((K)=>{K[K.MEDIA_QUALITY_UNKNOWN=0]="MEDIA_QUALITY_UNKNOWN";K[K.STANDARD=1]="STANDARD";K[K.HD=2]="HD";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JN||={});var KN;((f)=>{f[f.SETTING_KEY_UNKNOWN=0]="SETTING_KEY_UNKNOWN";f[f.START_AT_LOGIN=1]="START_AT_LOGIN";f[f.MINIMIZE_TO_TRAY=2]="MINIMIZE_TO_TRAY";f[f.LANGUAGE=3]="LANGUAGE";f[f.REPLACE_TEXT_WITH_EMOJI=4]="REPLACE_TEXT_WITH_EMOJI";f[f.BANNER_NOTIFICATION_DISPLAY_MODE=5]="BANNER_NOTIFICATION_DISPLAY_MODE";f[f.UNREAD_COUNTER_BADGE_DISPLAY_MODE=6]="UNREAD_COUNTER_BADGE_DISPLAY_MODE";f[f.IS_MESSAGES_NOTIFICATION_ENABLED=7]="IS_MESSAGES_NOTIFICATION_ENABLED";f[f.IS_CALLS_NOTIFICATION_ENABLED=8]="IS_CALLS_NOTIFICATION_ENABLED";f[f.IS_REACTIONS_NOTIFICATION_ENABLED=9]="IS_REACTIONS_NOTIFICATION_ENABLED";f[f.IS_STATUS_REACTIONS_NOTIFICATION_ENABLED=10]="IS_STATUS_REACTIONS_NOTIFICATION_ENABLED";f[f.IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED=11]="IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED";f[f.DEFAULT_NOTIFICATION_TONE_ID=12]="DEFAULT_NOTIFICATION_TONE_ID";f[f.GROUP_DEFAULT_NOTIFICATION_TONE_ID=13]="GROUP_DEFAULT_NOTIFICATION_TONE_ID";f[f.APP_THEME=14]="APP_THEME";f[f.WALLPAPER_ID=15]="WALLPAPER_ID";f[f.IS_DOODLE_WALLPAPER_ENABLED=16]="IS_DOODLE_WALLPAPER_ENABLED";f[f.FONT_SIZE=17]="FONT_SIZE";f[f.IS_PHOTOS_AUTODOWNLOAD_ENABLED=18]="IS_PHOTOS_AUTODOWNLOAD_ENABLED";f[f.IS_AUDIOS_AUTODOWNLOAD_ENABLED=19]="IS_AUDIOS_AUTODOWNLOAD_ENABLED";f[f.IS_VIDEOS_AUTODOWNLOAD_ENABLED=20]="IS_VIDEOS_AUTODOWNLOAD_ENABLED";f[f.IS_DOCUMENTS_AUTODOWNLOAD_ENABLED=21]="IS_DOCUMENTS_AUTODOWNLOAD_ENABLED";f[f.DISABLE_LINK_PREVIEWS=22]="DISABLE_LINK_PREVIEWS";f[f.NOTIFICATION_TONE_ID=23]="NOTIFICATION_TONE_ID";f[f.MEDIA_UPLOAD_QUALITY=24]="MEDIA_UPLOAD_QUALITY";f[f.IS_SPELL_CHECK_ENABLED=25]="IS_SPELL_CHECK_ENABLED";f[f.IS_ENTER_TO_SEND_ENABLED=26]="IS_ENTER_TO_SEND_ENABLED";f[f.IS_GROUP_MESSAGE_NOTIFICATION_ENABLED=27]="IS_GROUP_MESSAGE_NOTIFICATION_ENABLED";f[f.IS_GROUP_REACTIONS_NOTIFICATION_ENABLED=28]="IS_GROUP_REACTIONS_NOTIFICATION_ENABLED";f[f.IS_STATUS_NOTIFICATION_ENABLED=29]="IS_STATUS_NOTIFICATION_ENABLED";f[f.STATUS_NOTIFICATION_TONE_ID=30]="STATUS_NOTIFICATION_TONE_ID";f[f.SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION=31]="SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION";f[f.CHAT_THEME_ID=32]="CHAT_THEME_ID";f[f.COLOR_SCHEME_ID=33]="COLOR_SCHEME_ID";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KN||={});var qN;((z)=>{z[z.PLATFORM_UNKNOWN=0]="PLATFORM_UNKNOWN";z[z.WEB=1]="WEB";z[z.HYBRID=2]="HYBRID";z[z.WINDOWS=3]="WINDOWS";z[z.MAC=4]="MAC";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qN||={});var XN;((z)=>{z[z.ALLOW_LIST=0]="ALLOW_LIST";z[z.DENY_LIST=1]="DENY_LIST";z[z.CONTACTS=2]="CONTACTS";z[z.CLOSE_FRIENDS=3]="CLOSE_FRIENDS";z[z.CUSTOM_LIST=4]="CUSTOM_LIST";z[z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XN||={});var zN;((q)=>{q[q.LID=1]="LID";q[q.PN=2]="PN";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zN||={});var YN;((K)=>{K[K.ACTIVE=0]="ACTIVE";K[K.PAUSED=1]="PAUSED";K[K.UNLINKED=2]="UNLINKED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YN||={});var VN;((q)=>{q[q.SET=0]="SET";q[q.REMOVE=1]="REMOVE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VN||={});var HN;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.VIEW_REPLIES=1]="VIEW_REPLIES";K[K.AI_THREAD=2]="AI_THREAD";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HN||={});var GN;((q)=>{q[q.UTF8=0]="UTF8";q[q.UTF8_BROKEN=1]="UTF8_BROKEN";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GN||={});var UN;((K)=>{K[K.NONE=0]="NONE";K[K.PBKDF2_HMAC_SHA512=1]="PBKDF2_HMAC_SHA512";K[K.PBKDF2_HMAC_SHA384=2]="PBKDF2_HMAC_SHA384";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UN||={});var CN;((J)=>{J[J.NOT_STARTED=0]="NOT_STARTED";J[J.FORCE_UPGRADE=1]="FORCE_UPGRADE";J[J.DEVELOPMENT=2]="DEVELOPMENT";J[J.PRODUCTION=3]="PRODUCTION";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CN||={});var xN;((J)=>{J[J.E2EE=0]="E2EE";J[J.FB=2]="FB";J[J.BSP=1]="BSP";J[J.BSP_AND_FB=3]="BSP_AND_FB";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xN||={});var DN;((G)=>{G[G.ERROR=0]="ERROR";G[G.PENDING=1]="PENDING";G[G.SERVER_ACK=2]="SERVER_ACK";G[G.DELIVERY_ACK=3]="DELIVERY_ACK";G[G.READ=4]="READ";G[G.PLAYED=5]="PLAYED";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DN||={});var LN;((H)=>{H[H.UNKNOWN=0]="UNKNOWN";H[H.REVOKE=1]="REVOKE";H[H.CIPHERTEXT=2]="CIPHERTEXT";H[H.FUTUREPROOF=3]="FUTUREPROOF";H[H.NON_VERIFIED_TRANSITION=4]="NON_VERIFIED_TRANSITION";H[H.UNVERIFIED_TRANSITION=5]="UNVERIFIED_TRANSITION";H[H.VERIFIED_TRANSITION=6]="VERIFIED_TRANSITION";H[H.VERIFIED_LOW_UNKNOWN=7]="VERIFIED_LOW_UNKNOWN";H[H.VERIFIED_HIGH=8]="VERIFIED_HIGH";H[H.VERIFIED_INITIAL_UNKNOWN=9]="VERIFIED_INITIAL_UNKNOWN";H[H.VERIFIED_INITIAL_LOW=10]="VERIFIED_INITIAL_LOW";H[H.VERIFIED_INITIAL_HIGH=11]="VERIFIED_INITIAL_HIGH";H[H.VERIFIED_TRANSITION_ANY_TO_NONE=12]="VERIFIED_TRANSITION_ANY_TO_NONE";H[H.VERIFIED_TRANSITION_ANY_TO_HIGH=13]="VERIFIED_TRANSITION_ANY_TO_HIGH";H[H.VERIFIED_TRANSITION_HIGH_TO_LOW=14]="VERIFIED_TRANSITION_HIGH_TO_LOW";H[H.VERIFIED_TRANSITION_HIGH_TO_UNKNOWN=15]="VERIFIED_TRANSITION_HIGH_TO_UNKNOWN";H[H.VERIFIED_TRANSITION_UNKNOWN_TO_LOW=16]="VERIFIED_TRANSITION_UNKNOWN_TO_LOW";H[H.VERIFIED_TRANSITION_LOW_TO_UNKNOWN=17]="VERIFIED_TRANSITION_LOW_TO_UNKNOWN";H[H.VERIFIED_TRANSITION_NONE_TO_LOW=18]="VERIFIED_TRANSITION_NONE_TO_LOW";H[H.VERIFIED_TRANSITION_NONE_TO_UNKNOWN=19]="VERIFIED_TRANSITION_NONE_TO_UNKNOWN";H[H.GROUP_CREATE=20]="GROUP_CREATE";H[H.GROUP_CHANGE_SUBJECT=21]="GROUP_CHANGE_SUBJECT";H[H.GROUP_CHANGE_ICON=22]="GROUP_CHANGE_ICON";H[H.GROUP_CHANGE_INVITE_LINK=23]="GROUP_CHANGE_INVITE_LINK";H[H.GROUP_CHANGE_DESCRIPTION=24]="GROUP_CHANGE_DESCRIPTION";H[H.GROUP_CHANGE_RESTRICT=25]="GROUP_CHANGE_RESTRICT";H[H.GROUP_CHANGE_ANNOUNCE=26]="GROUP_CHANGE_ANNOUNCE";H[H.GROUP_PARTICIPANT_ADD=27]="GROUP_PARTICIPANT_ADD";H[H.GROUP_PARTICIPANT_REMOVE=28]="GROUP_PARTICIPANT_REMOVE";H[H.GROUP_PARTICIPANT_PROMOTE=29]="GROUP_PARTICIPANT_PROMOTE";H[H.GROUP_PARTICIPANT_DEMOTE=30]="GROUP_PARTICIPANT_DEMOTE";H[H.GROUP_PARTICIPANT_INVITE=31]="GROUP_PARTICIPANT_INVITE";H[H.GROUP_PARTICIPANT_LEAVE=32]="GROUP_PARTICIPANT_LEAVE";H[H.GROUP_PARTICIPANT_CHANGE_NUMBER=33]="GROUP_PARTICIPANT_CHANGE_NUMBER";H[H.BROADCAST_CREATE=34]="BROADCAST_CREATE";H[H.BROADCAST_ADD=35]="BROADCAST_ADD";H[H.BROADCAST_REMOVE=36]="BROADCAST_REMOVE";H[H.GENERIC_NOTIFICATION=37]="GENERIC_NOTIFICATION";H[H.E2E_IDENTITY_CHANGED=38]="E2E_IDENTITY_CHANGED";H[H.E2E_ENCRYPTED=39]="E2E_ENCRYPTED";H[H.CALL_MISSED_VOICE=40]="CALL_MISSED_VOICE";H[H.CALL_MISSED_VIDEO=41]="CALL_MISSED_VIDEO";H[H.INDIVIDUAL_CHANGE_NUMBER=42]="INDIVIDUAL_CHANGE_NUMBER";H[H.GROUP_DELETE=43]="GROUP_DELETE";H[H.GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE=44]="GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE";H[H.CALL_MISSED_GROUP_VOICE=45]="CALL_MISSED_GROUP_VOICE";H[H.CALL_MISSED_GROUP_VIDEO=46]="CALL_MISSED_GROUP_VIDEO";H[H.PAYMENT_CIPHERTEXT=47]="PAYMENT_CIPHERTEXT";H[H.PAYMENT_FUTUREPROOF=48]="PAYMENT_FUTUREPROOF";H[H.PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED=49]="PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED";H[H.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED=50]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED";H[H.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED=51]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED";H[H.PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP=52]="PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP";H[H.PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP=53]="PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP";H[H.PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER=54]="PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER";H[H.PAYMENT_ACTION_SEND_PAYMENT_REMINDER=55]="PAYMENT_ACTION_SEND_PAYMENT_REMINDER";H[H.PAYMENT_ACTION_SEND_PAYMENT_INVITATION=56]="PAYMENT_ACTION_SEND_PAYMENT_INVITATION";H[H.PAYMENT_ACTION_REQUEST_DECLINED=57]="PAYMENT_ACTION_REQUEST_DECLINED";H[H.PAYMENT_ACTION_REQUEST_EXPIRED=58]="PAYMENT_ACTION_REQUEST_EXPIRED";H[H.PAYMENT_ACTION_REQUEST_CANCELLED=59]="PAYMENT_ACTION_REQUEST_CANCELLED";H[H.BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM=60]="BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM";H[H.BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP=61]="BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP";H[H.BIZ_INTRO_TOP=62]="BIZ_INTRO_TOP";H[H.BIZ_INTRO_BOTTOM=63]="BIZ_INTRO_BOTTOM";H[H.BIZ_NAME_CHANGE=64]="BIZ_NAME_CHANGE";H[H.BIZ_MOVE_TO_CONSUMER_APP=65]="BIZ_MOVE_TO_CONSUMER_APP";H[H.BIZ_TWO_TIER_MIGRATION_TOP=66]="BIZ_TWO_TIER_MIGRATION_TOP";H[H.BIZ_TWO_TIER_MIGRATION_BOTTOM=67]="BIZ_TWO_TIER_MIGRATION_BOTTOM";H[H.OVERSIZED=68]="OVERSIZED";H[H.GROUP_CHANGE_NO_FREQUENTLY_FORWARDED=69]="GROUP_CHANGE_NO_FREQUENTLY_FORWARDED";H[H.GROUP_V4_ADD_INVITE_SENT=70]="GROUP_V4_ADD_INVITE_SENT";H[H.GROUP_PARTICIPANT_ADD_REQUEST_JOIN=71]="GROUP_PARTICIPANT_ADD_REQUEST_JOIN";H[H.CHANGE_EPHEMERAL_SETTING=72]="CHANGE_EPHEMERAL_SETTING";H[H.E2E_DEVICE_CHANGED=73]="E2E_DEVICE_CHANGED";H[H.VIEWED_ONCE=74]="VIEWED_ONCE";H[H.E2E_ENCRYPTED_NOW=75]="E2E_ENCRYPTED_NOW";H[H.BLUE_MSG_BSP_FB_TO_BSP_PREMISE=76]="BLUE_MSG_BSP_FB_TO_BSP_PREMISE";H[H.BLUE_MSG_BSP_FB_TO_SELF_FB=77]="BLUE_MSG_BSP_FB_TO_SELF_FB";H[H.BLUE_MSG_BSP_FB_TO_SELF_PREMISE=78]="BLUE_MSG_BSP_FB_TO_SELF_PREMISE";H[H.BLUE_MSG_BSP_FB_UNVERIFIED=79]="BLUE_MSG_BSP_FB_UNVERIFIED";H[H.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=80]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";H[H.BLUE_MSG_BSP_FB_VERIFIED=81]="BLUE_MSG_BSP_FB_VERIFIED";H[H.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=82]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";H[H.BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE=83]="BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE";H[H.BLUE_MSG_BSP_PREMISE_UNVERIFIED=84]="BLUE_MSG_BSP_PREMISE_UNVERIFIED";H[H.BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=85]="BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";H[H.BLUE_MSG_BSP_PREMISE_VERIFIED=86]="BLUE_MSG_BSP_PREMISE_VERIFIED";H[H.BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=87]="BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";H[H.BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED=88]="BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED";H[H.BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED=89]="BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED";H[H.BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED=90]="BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED";H[H.BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED=91]="BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED";H[H.BLUE_MSG_SELF_FB_TO_BSP_PREMISE=92]="BLUE_MSG_SELF_FB_TO_BSP_PREMISE";H[H.BLUE_MSG_SELF_FB_TO_SELF_PREMISE=93]="BLUE_MSG_SELF_FB_TO_SELF_PREMISE";H[H.BLUE_MSG_SELF_FB_UNVERIFIED=94]="BLUE_MSG_SELF_FB_UNVERIFIED";H[H.BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=95]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";H[H.BLUE_MSG_SELF_FB_VERIFIED=96]="BLUE_MSG_SELF_FB_VERIFIED";H[H.BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=97]="BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";H[H.BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE=98]="BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE";H[H.BLUE_MSG_SELF_PREMISE_UNVERIFIED=99]="BLUE_MSG_SELF_PREMISE_UNVERIFIED";H[H.BLUE_MSG_SELF_PREMISE_VERIFIED=100]="BLUE_MSG_SELF_PREMISE_VERIFIED";H[H.BLUE_MSG_TO_BSP_FB=101]="BLUE_MSG_TO_BSP_FB";H[H.BLUE_MSG_TO_CONSUMER=102]="BLUE_MSG_TO_CONSUMER";H[H.BLUE_MSG_TO_SELF_FB=103]="BLUE_MSG_TO_SELF_FB";H[H.BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED=104]="BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED";H[H.BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=105]="BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";H[H.BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED=106]="BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED";H[H.BLUE_MSG_UNVERIFIED_TO_VERIFIED=107]="BLUE_MSG_UNVERIFIED_TO_VERIFIED";H[H.BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED=108]="BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED";H[H.BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=109]="BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";H[H.BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED=110]="BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED";H[H.BLUE_MSG_VERIFIED_TO_UNVERIFIED=111]="BLUE_MSG_VERIFIED_TO_UNVERIFIED";H[H.BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=112]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";H[H.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED=113]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED";H[H.BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=114]="BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";H[H.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED=115]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED";H[H.BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=116]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";H[H.BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=117]="BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";H[H.E2E_IDENTITY_UNAVAILABLE=118]="E2E_IDENTITY_UNAVAILABLE";H[H.GROUP_CREATING=119]="GROUP_CREATING";H[H.GROUP_CREATE_FAILED=120]="GROUP_CREATE_FAILED";H[H.GROUP_BOUNCED=121]="GROUP_BOUNCED";H[H.BLOCK_CONTACT=122]="BLOCK_CONTACT";H[H.EPHEMERAL_SETTING_NOT_APPLIED=123]="EPHEMERAL_SETTING_NOT_APPLIED";H[H.SYNC_FAILED=124]="SYNC_FAILED";H[H.SYNCING=125]="SYNCING";H[H.BIZ_PRIVACY_MODE_INIT_FB=126]="BIZ_PRIVACY_MODE_INIT_FB";H[H.BIZ_PRIVACY_MODE_INIT_BSP=127]="BIZ_PRIVACY_MODE_INIT_BSP";H[H.BIZ_PRIVACY_MODE_TO_FB=128]="BIZ_PRIVACY_MODE_TO_FB";H[H.BIZ_PRIVACY_MODE_TO_BSP=129]="BIZ_PRIVACY_MODE_TO_BSP";H[H.DISAPPEARING_MODE=130]="DISAPPEARING_MODE";H[H.E2E_DEVICE_FETCH_FAILED=131]="E2E_DEVICE_FETCH_FAILED";H[H.ADMIN_REVOKE=132]="ADMIN_REVOKE";H[H.GROUP_INVITE_LINK_GROWTH_LOCKED=133]="GROUP_INVITE_LINK_GROWTH_LOCKED";H[H.COMMUNITY_LINK_PARENT_GROUP=134]="COMMUNITY_LINK_PARENT_GROUP";H[H.COMMUNITY_LINK_SIBLING_GROUP=135]="COMMUNITY_LINK_SIBLING_GROUP";H[H.COMMUNITY_LINK_SUB_GROUP=136]="COMMUNITY_LINK_SUB_GROUP";H[H.COMMUNITY_UNLINK_PARENT_GROUP=137]="COMMUNITY_UNLINK_PARENT_GROUP";H[H.COMMUNITY_UNLINK_SIBLING_GROUP=138]="COMMUNITY_UNLINK_SIBLING_GROUP";H[H.COMMUNITY_UNLINK_SUB_GROUP=139]="COMMUNITY_UNLINK_SUB_GROUP";H[H.GROUP_PARTICIPANT_ACCEPT=140]="GROUP_PARTICIPANT_ACCEPT";H[H.GROUP_PARTICIPANT_LINKED_GROUP_JOIN=141]="GROUP_PARTICIPANT_LINKED_GROUP_JOIN";H[H.COMMUNITY_CREATE=142]="COMMUNITY_CREATE";H[H.EPHEMERAL_KEEP_IN_CHAT=143]="EPHEMERAL_KEEP_IN_CHAT";H[H.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST=144]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST";H[H.GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE=145]="GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE";H[H.INTEGRITY_UNLINK_PARENT_GROUP=146]="INTEGRITY_UNLINK_PARENT_GROUP";H[H.COMMUNITY_PARTICIPANT_PROMOTE=147]="COMMUNITY_PARTICIPANT_PROMOTE";H[H.COMMUNITY_PARTICIPANT_DEMOTE=148]="COMMUNITY_PARTICIPANT_DEMOTE";H[H.COMMUNITY_PARENT_GROUP_DELETED=149]="COMMUNITY_PARENT_GROUP_DELETED";H[H.COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL=150]="COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL";H[H.GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP=151]="GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP";H[H.MASKED_THREAD_CREATED=152]="MASKED_THREAD_CREATED";H[H.MASKED_THREAD_UNMASKED=153]="MASKED_THREAD_UNMASKED";H[H.BIZ_CHAT_ASSIGNMENT=154]="BIZ_CHAT_ASSIGNMENT";H[H.CHAT_PSA=155]="CHAT_PSA";H[H.CHAT_POLL_CREATION_MESSAGE=156]="CHAT_POLL_CREATION_MESSAGE";H[H.CAG_MASKED_THREAD_CREATED=157]="CAG_MASKED_THREAD_CREATED";H[H.COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED=158]="COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED";H[H.CAG_INVITE_AUTO_ADD=159]="CAG_INVITE_AUTO_ADD";H[H.BIZ_CHAT_ASSIGNMENT_UNASSIGN=160]="BIZ_CHAT_ASSIGNMENT_UNASSIGN";H[H.CAG_INVITE_AUTO_JOINED=161]="CAG_INVITE_AUTO_JOINED";H[H.SCHEDULED_CALL_START_MESSAGE=162]="SCHEDULED_CALL_START_MESSAGE";H[H.COMMUNITY_INVITE_RICH=163]="COMMUNITY_INVITE_RICH";H[H.COMMUNITY_INVITE_AUTO_ADD_RICH=164]="COMMUNITY_INVITE_AUTO_ADD_RICH";H[H.SUB_GROUP_INVITE_RICH=165]="SUB_GROUP_INVITE_RICH";H[H.SUB_GROUP_PARTICIPANT_ADD_RICH=166]="SUB_GROUP_PARTICIPANT_ADD_RICH";H[H.COMMUNITY_LINK_PARENT_GROUP_RICH=167]="COMMUNITY_LINK_PARENT_GROUP_RICH";H[H.COMMUNITY_PARTICIPANT_ADD_RICH=168]="COMMUNITY_PARTICIPANT_ADD_RICH";H[H.SILENCED_UNKNOWN_CALLER_AUDIO=169]="SILENCED_UNKNOWN_CALLER_AUDIO";H[H.SILENCED_UNKNOWN_CALLER_VIDEO=170]="SILENCED_UNKNOWN_CALLER_VIDEO";H[H.GROUP_MEMBER_ADD_MODE=171]="GROUP_MEMBER_ADD_MODE";H[H.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD=172]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD";H[H.COMMUNITY_CHANGE_DESCRIPTION=173]="COMMUNITY_CHANGE_DESCRIPTION";H[H.SENDER_INVITE=174]="SENDER_INVITE";H[H.RECEIVER_INVITE=175]="RECEIVER_INVITE";H[H.COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS=176]="COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS";H[H.PINNED_MESSAGE_IN_CHAT=177]="PINNED_MESSAGE_IN_CHAT";H[H.PAYMENT_INVITE_SETUP_INVITER=178]="PAYMENT_INVITE_SETUP_INVITER";H[H.PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY=179]="PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY";H[H.PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE=180]="PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE";H[H.LINKED_GROUP_CALL_START=181]="LINKED_GROUP_CALL_START";H[H.REPORT_TO_ADMIN_ENABLED_STATUS=182]="REPORT_TO_ADMIN_ENABLED_STATUS";H[H.EMPTY_SUBGROUP_CREATE=183]="EMPTY_SUBGROUP_CREATE";H[H.SCHEDULED_CALL_CANCEL=184]="SCHEDULED_CALL_CANCEL";H[H.SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH=185]="SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH";H[H.GROUP_CHANGE_RECENT_HISTORY_SHARING=186]="GROUP_CHANGE_RECENT_HISTORY_SHARING";H[H.PAID_MESSAGE_SERVER_CAMPAIGN_ID=187]="PAID_MESSAGE_SERVER_CAMPAIGN_ID";H[H.GENERAL_CHAT_CREATE=188]="GENERAL_CHAT_CREATE";H[H.GENERAL_CHAT_ADD=189]="GENERAL_CHAT_ADD";H[H.GENERAL_CHAT_AUTO_ADD_DISABLED=190]="GENERAL_CHAT_AUTO_ADD_DISABLED";H[H.SUGGESTED_SUBGROUP_ANNOUNCE=191]="SUGGESTED_SUBGROUP_ANNOUNCE";H[H.BIZ_BOT_1P_MESSAGING_ENABLED=192]="BIZ_BOT_1P_MESSAGING_ENABLED";H[H.CHANGE_USERNAME=193]="CHANGE_USERNAME";H[H.BIZ_COEX_PRIVACY_INIT_SELF=194]="BIZ_COEX_PRIVACY_INIT_SELF";H[H.BIZ_COEX_PRIVACY_TRANSITION_SELF=195]="BIZ_COEX_PRIVACY_TRANSITION_SELF";H[H.SUPPORT_AI_EDUCATION=196]="SUPPORT_AI_EDUCATION";H[H.BIZ_BOT_3P_MESSAGING_ENABLED=197]="BIZ_BOT_3P_MESSAGING_ENABLED";H[H.REMINDER_SETUP_MESSAGE=198]="REMINDER_SETUP_MESSAGE";H[H.REMINDER_SENT_MESSAGE=199]="REMINDER_SENT_MESSAGE";H[H.REMINDER_CANCEL_MESSAGE=200]="REMINDER_CANCEL_MESSAGE";H[H.BIZ_COEX_PRIVACY_INIT=201]="BIZ_COEX_PRIVACY_INIT";H[H.BIZ_COEX_PRIVACY_TRANSITION=202]="BIZ_COEX_PRIVACY_TRANSITION";H[H.GROUP_DEACTIVATED=203]="GROUP_DEACTIVATED";H[H.COMMUNITY_DEACTIVATE_SIBLING_GROUP=204]="COMMUNITY_DEACTIVATE_SIBLING_GROUP";H[H.EVENT_UPDATED=205]="EVENT_UPDATED";H[H.EVENT_CANCELED=206]="EVENT_CANCELED";H[H.COMMUNITY_OWNER_UPDATED=207]="COMMUNITY_OWNER_UPDATED";H[H.COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN=208]="COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN";H[H.CAPI_GROUP_NE2EE_SYSTEM_MESSAGE=209]="CAPI_GROUP_NE2EE_SYSTEM_MESSAGE";H[H.STATUS_MENTION=210]="STATUS_MENTION";H[H.USER_CONTROLS_SYSTEM_MESSAGE=211]="USER_CONTROLS_SYSTEM_MESSAGE";H[H.SUPPORT_SYSTEM_MESSAGE=212]="SUPPORT_SYSTEM_MESSAGE";H[H.CHANGE_LID=213]="CHANGE_LID";H[H.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE=214]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE";H[H.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE=215]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE";H[H.CHANGE_LIMIT_SHARING=216]="CHANGE_LIMIT_SHARING";H[H.GROUP_MEMBER_LINK_MODE=217]="GROUP_MEMBER_LINK_MODE";H[H.BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE=218]="BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE";H[H.PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE=219]="PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE";H[H.QUARANTINED_MESSAGE=220]="QUARANTINED_MESSAGE";H[H.GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE=221]="GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE";H[H.GROUP_OPEN_BOT_ADDED=222]="GROUP_OPEN_BOT_ADDED";H[H.GROUP_TEE_BOT_ADDED=223]="GROUP_TEE_BOT_ADDED";H[H.CONTACT_INFO=224]="CONTACT_INFO";H[H.SCHEDULED_MESSAGE_CREATED=225]="SCHEDULED_MESSAGE_CREATED";H[H.IDENTITY_TRUST_MARKED=226]="IDENTITY_TRUST_MARKED";H[H.IDENTITY_TRUST_UNMARKED=227]="IDENTITY_TRUST_UNMARKED";H[H.IDENTITY_TRUST_REVOKED=228]="IDENTITY_TRUST_REVOKED";H[H.CTWA_CONSUMER_DISCLOSURE=230]="CTWA_CONSUMER_DISCLOSURE";H[H.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LN||={});function cz(){return{}}var l6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=cz();while(Z.pos<q){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.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return l6.fromPartial($??{})},fromPartial($){let Q=cz();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 oz(){return{}}var FN={encode($,Q=new V){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 Z of $.validIndexes)Q.uint32(Z);Q.join()}if($.accountType!==void 0)Q.uint32(40).int32($.accountType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=oz();while(Z.pos<q){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.uint64Number();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 z=Z.uint32()+Z.pos;while(Z.pos<z)K.validIndexes.push(Z.uint32());continue}break}case 5:{if(J!==40)break;K.accountType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return FN.fromPartial($??{})},fromPartial($){let Q=oz();return Q.rawId=$.rawId??void 0,Q.timestamp=$.timestamp??void 0,Q.currentIndex=$.currentIndex??void 0,Q.validIndexes=$.validIndexes?.map((Z)=>Z)||void 0,Q.accountType=$.accountType??void 0,Q}};function bz(){return{}}var u6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=bz();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return u6.fromPartial($??{})},fromPartial($){let Q=bz();return Q.details=$.details??void 0,Q.accountSignatureKey=$.accountSignatureKey??void 0,Q.accountSignature=$.accountSignature??void 0,Q.deviceSignature=$.deviceSignature??void 0,Q}};function iz(){return{}}var p6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=iz();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return p6.fromPartial($??{})},fromPartial($){let Q=iz();return Q.details=$.details??void 0,Q.hmac=$.hmac??void 0,Q.accountType=$.accountType??void 0,Q}};function mz(){return{}}var w6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=mz();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return w6.fromPartial($??{})},fromPartial($){let Q=mz();return Q.details=$.details??void 0,Q.accountSignature=$.accountSignature??void 0,Q.accountSignatureKey=$.accountSignatureKey??void 0,Q}};function gz(){return{}}var PN={encode($,Q=new V){if($.lastFetchTime!==void 0)Q.uint32(8).int64($.lastFetchTime);if($.capabilityOptions!==void 0&&$.capabilityOptions.length!==0)for(let Z of $.capabilityOptions)l0.encode(Z,Q.uint32(18).fork()).join();if($.conversationOptions!==void 0&&$.conversationOptions.length!==0)for(let Z of $.conversationOptions)l0.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=gz();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.lastFetchTime=Z.int64Number();continue}case 2:{if(J!==18)break;if(K.capabilityOptions===void 0)K.capabilityOptions=[];let z=l0.decode(Z,Z.uint32());if(z!==void 0)K.capabilityOptions.push(z);continue}case 3:{if(J!==26)break;if(K.conversationOptions===void 0)K.conversationOptions=[];let z=l0.decode(Z,Z.uint32());if(z!==void 0)K.conversationOptions.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return PN.fromPartial($??{})},fromPartial($){let Q=gz();return Q.lastFetchTime=$.lastFetchTime??void 0,Q.capabilityOptions=$.capabilityOptions?.map((Z)=>l0.fromPartial(Z))||void 0,Q.conversationOptions=$.conversationOptions?.map((Z)=>l0.fromPartial(Z))||void 0,Q}};function tz(){return{}}var l0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=tz();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return l0.fromPartial($??{})},fromPartial($){let Q=tz();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 rz(){return{}}var c$={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=rz();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return c$.fromPartial($??{})},fromPartial($){let Q=rz();return Q.collectionId=$.collectionId??void 0,Q.expectedMediaCount=$.expectedMediaCount??void 0,Q.hasGlobalCaption=$.hasGlobalCaption??void 0,Q}};function az(){return{}}var o$={encode($,Q=new V){if($.collectionId!==void 0)Q.uint32(10).string($.collectionId);if($.uploadOrderIndex!==void 0)Q.uint32(16).uint32($.uploadOrderIndex);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=az();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return o$.fromPartial($??{})},fromPartial($){let Q=az();return Q.collectionId=$.collectionId??void 0,Q.uploadOrderIndex=$.uploadOrderIndex??void 0,Q}};function sz(){return{}}var b$={encode($,Q=new V){if($.hatchMetadataSync!==void 0)nJ.encode($.hatchMetadataSync,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=sz();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.hatchMetadataSync=nJ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return b$.fromPartial($??{})},fromPartial($){let Q=sz();return Q.hatchMetadataSync=$.hatchMetadataSync!==void 0&&$.hatchMetadataSync!==null?nJ.fromPartial($.hatchMetadataSync):void 0,Q}};function ez(){return{}}var i$={encode($,Q=new V){if($.messageKey!==void 0)k.encode($.messageKey,Q.uint32(10).fork()).join();if($.message!==void 0)w.encode($.message,Q.uint32(18).fork()).join();if($.timestamp!==void 0)Q.uint32(24).int64($.timestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ez();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.message=w.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.timestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return i$.fromPartial($??{})},fromPartial($){let Q=ez();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?k.fromPartial($.messageKey):void 0,Q.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,Q.timestamp=$.timestamp??void 0,Q}};function $Y(){return{}}var m$={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$Y();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.responseTimestampMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return m$.fromPartial($??{})},fromPartial($){let Q=$Y();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?k.fromPartial($.messageKey):void 0,Q.responseTimestampMs=$.responseTimestampMs??void 0,Q}};function QY(){return{}}var g$={encode($,Q=new V){if($.codeLanguage!==void 0)Q.uint32(10).string($.codeLanguage);if($.codeBlocks!==void 0&&$.codeBlocks.length!==0)for(let Z of $.codeBlocks)t$.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=QY();while(Z.pos<q){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 z=t$.decode(Z,Z.uint32());if(z!==void 0)K.codeBlocks.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return g$.fromPartial($??{})},fromPartial($){let Q=QY();return Q.codeLanguage=$.codeLanguage??void 0,Q.codeBlocks=$.codeBlocks?.map((Z)=>t$.fromPartial(Z))||void 0,Q}};function ZY(){return{}}var t$={encode($,Q=new V){if($.highlightType!==void 0)Q.uint32(8).int32($.highlightType);if($.codeContent!==void 0)Q.uint32(18).string($.codeContent);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ZY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return t$.fromPartial($??{})},fromPartial($){let Q=ZY();return Q.highlightType=$.highlightType??void 0,Q.codeContent=$.codeContent??void 0,Q}};function JY(){return{}}var r$={encode($,Q=new V){if($.itemsMetadata!==void 0&&$.itemsMetadata.length!==0)for(let Z of $.itemsMetadata)a$.encode(Z,Q.uint32(10).fork()).join();if($.contentType!==void 0)Q.uint32(16).int32($.contentType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=JY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.itemsMetadata===void 0)K.itemsMetadata=[];let z=a$.decode(Z,Z.uint32());if(z!==void 0)K.itemsMetadata.push(z);continue}case 2:{if(J!==16)break;K.contentType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return r$.fromPartial($??{})},fromPartial($){let Q=JY();return Q.itemsMetadata=$.itemsMetadata?.map((Z)=>a$.fromPartial(Z))||void 0,Q.contentType=$.contentType??void 0,Q}};function KY(){return{}}var a$={encode($,Q=new V){if($.reelItem!==void 0)s$.encode($.reelItem,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=KY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.reelItem=s$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return a$.fromPartial($??{})},fromPartial($){let Q=KY();return Q.reelItem=$.reelItem!==void 0&&$.reelItem!==null?s$.fromPartial($.reelItem):void 0,Q}};function qY(){return{}}var s$={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=qY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return s$.fromPartial($??{})},fromPartial($){let Q=qY();return Q.title=$.title??void 0,Q.profileIconUrl=$.profileIconUrl??void 0,Q.thumbnailUrl=$.thumbnailUrl??void 0,Q.videoUrl=$.videoUrl??void 0,Q}};function XY(){return{}}var e$={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=XY();while(Z.pos<q){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.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return e$.fromPartial($??{})},fromPartial($){let Q=XY();return Q.type=$.type??void 0,Q.version=$.version??void 0,Q.url=$.url??void 0,Q.loopCount=$.loopCount??void 0,Q}};function zY(){return{}}var $Q={encode($,Q=new V){if($.gridImageUrl!==void 0)Y0.encode($.gridImageUrl,Q.uint32(10).fork()).join();if($.imageUrls!==void 0&&$.imageUrls.length!==0)for(let Z of $.imageUrls)Y0.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=zY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.gridImageUrl=Y0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;if(K.imageUrls===void 0)K.imageUrls=[];let z=Y0.decode(Z,Z.uint32());if(z!==void 0)K.imageUrls.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $Q.fromPartial($??{})},fromPartial($){let Q=zY();return Q.gridImageUrl=$.gridImageUrl!==void 0&&$.gridImageUrl!==null?Y0.fromPartial($.gridImageUrl):void 0,Q.imageUrls=$.imageUrls?.map((Z)=>Y0.fromPartial(Z))||void 0,Q}};function YY(){return{}}var Y0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=YY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Y0.fromPartial($??{})},fromPartial($){let Q=YY();return Q.imagePreviewUrl=$.imagePreviewUrl??void 0,Q.imageHighResUrl=$.imageHighResUrl??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q}};function VY(){return{}}var QQ={encode($,Q=new V){if($.imageUrl!==void 0)Y0.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=VY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.imageUrl=Y0.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return QQ.fromPartial($??{})},fromPartial($){let Q=VY();return Q.imageUrl=$.imageUrl!==void 0&&$.imageUrl!==null?Y0.fromPartial($.imageUrl):void 0,Q.imageText=$.imageText??void 0,Q.alignment=$.alignment??void 0,Q.tapLinkUrl=$.tapLinkUrl??void 0,Q}};function HY(){return{}}var ZQ={encode($,Q=new V){if($.text!==void 0)Q.uint32(10).string($.text);if($.expressions!==void 0&&$.expressions.length!==0)for(let Z of $.expressions)JQ.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=HY();while(Z.pos<q){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 z=JQ.decode(Z,Z.uint32());if(z!==void 0)K.expressions.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return ZQ.fromPartial($??{})},fromPartial($){let Q=HY();return Q.text=$.text??void 0,Q.expressions=$.expressions?.map((Z)=>JQ.fromPartial(Z))||void 0,Q}};function GY(){return{}}var JQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=GY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return JQ.fromPartial($??{})},fromPartial($){let Q=GY();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 UY(){return{}}var KQ={encode($,Q=new V){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 Z of $.annotations)qQ.encode(Z,Q.uint32(42).fork()).join();if($.showInfoList!==void 0)Q.uint32(48).bool($.showInfoList);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=UY();while(Z.pos<q){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 z=qQ.decode(Z,Z.uint32());if(z!==void 0)K.annotations.push(z);continue}case 6:{if(J!==48)break;K.showInfoList=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return KQ.fromPartial($??{})},fromPartial($){let Q=UY();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((Z)=>qQ.fromPartial(Z))||void 0,Q.showInfoList=$.showInfoList??void 0,Q}};function CY(){return{}}var qQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=CY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return qQ.fromPartial($??{})},fromPartial($){let Q=CY();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 xY(){return{}}var XQ={encode($,Q=new V){if($.messageType!==void 0)Q.uint32(8).int32($.messageType);if($.submessages!==void 0&&$.submessages.length!==0)for(let Z of $.submessages)zQ.encode(Z,Q.uint32(18).fork()).join();if($.unifiedResponse!==void 0)HQ.encode($.unifiedResponse,Q.uint32(26).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=xY();while(Z.pos<q){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 z=zQ.decode(Z,Z.uint32());if(z!==void 0)K.submessages.push(z);continue}case 3:{if(J!==26)break;K.unifiedResponse=HQ.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.contextInfo=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return XQ.fromPartial($??{})},fromPartial($){let Q=xY();return Q.messageType=$.messageType??void 0,Q.submessages=$.submessages?.map((Z)=>zQ.fromPartial(Z))||void 0,Q.unifiedResponse=$.unifiedResponse!==void 0&&$.unifiedResponse!==null?HQ.fromPartial($.unifiedResponse):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q}};function DY(){return{}}var zQ={encode($,Q=new V){if($.messageType!==void 0)Q.uint32(8).int32($.messageType);if($.gridImageMetadata!==void 0)$Q.encode($.gridImageMetadata,Q.uint32(18).fork()).join();if($.messageText!==void 0)Q.uint32(26).string($.messageText);if($.imageMetadata!==void 0)QQ.encode($.imageMetadata,Q.uint32(34).fork()).join();if($.codeMetadata!==void 0)g$.encode($.codeMetadata,Q.uint32(42).fork()).join();if($.tableMetadata!==void 0)YQ.encode($.tableMetadata,Q.uint32(50).fork()).join();if($.dynamicMetadata!==void 0)e$.encode($.dynamicMetadata,Q.uint32(58).fork()).join();if($.latexMetadata!==void 0)ZQ.encode($.latexMetadata,Q.uint32(66).fork()).join();if($.mapMetadata!==void 0)KQ.encode($.mapMetadata,Q.uint32(74).fork()).join();if($.contentItemsMetadata!==void 0)r$.encode($.contentItemsMetadata,Q.uint32(82).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=DY();while(Z.pos<q){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=$Q.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.messageText=Z.string();continue}case 4:{if(J!==34)break;K.imageMetadata=QQ.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.codeMetadata=g$.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.tableMetadata=YQ.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.dynamicMetadata=e$.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.latexMetadata=ZQ.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.mapMetadata=KQ.decode(Z,Z.uint32());continue}case 10:{if(J!==82)break;K.contentItemsMetadata=r$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return zQ.fromPartial($??{})},fromPartial($){let Q=DY();return Q.messageType=$.messageType??void 0,Q.gridImageMetadata=$.gridImageMetadata!==void 0&&$.gridImageMetadata!==null?$Q.fromPartial($.gridImageMetadata):void 0,Q.messageText=$.messageText??void 0,Q.imageMetadata=$.imageMetadata!==void 0&&$.imageMetadata!==null?QQ.fromPartial($.imageMetadata):void 0,Q.codeMetadata=$.codeMetadata!==void 0&&$.codeMetadata!==null?g$.fromPartial($.codeMetadata):void 0,Q.tableMetadata=$.tableMetadata!==void 0&&$.tableMetadata!==null?YQ.fromPartial($.tableMetadata):void 0,Q.dynamicMetadata=$.dynamicMetadata!==void 0&&$.dynamicMetadata!==null?e$.fromPartial($.dynamicMetadata):void 0,Q.latexMetadata=$.latexMetadata!==void 0&&$.latexMetadata!==null?ZQ.fromPartial($.latexMetadata):void 0,Q.mapMetadata=$.mapMetadata!==void 0&&$.mapMetadata!==null?KQ.fromPartial($.mapMetadata):void 0,Q.contentItemsMetadata=$.contentItemsMetadata!==void 0&&$.contentItemsMetadata!==null?r$.fromPartial($.contentItemsMetadata):void 0,Q}};function LY(){return{}}var YQ={encode($,Q=new V){if($.rows!==void 0&&$.rows.length!==0)for(let Z of $.rows)VQ.encode(Z,Q.uint32(10).fork()).join();if($.title!==void 0)Q.uint32(18).string($.title);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=LY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.rows===void 0)K.rows=[];let z=VQ.decode(Z,Z.uint32());if(z!==void 0)K.rows.push(z);continue}case 2:{if(J!==18)break;K.title=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return YQ.fromPartial($??{})},fromPartial($){let Q=LY();return Q.rows=$.rows?.map((Z)=>VQ.fromPartial(Z))||void 0,Q.title=$.title??void 0,Q}};function FY(){return{}}var VQ={encode($,Q=new V){if($.items!==void 0&&$.items.length!==0)for(let Z of $.items)Q.uint32(10).string(Z);if($.isHeading!==void 0)Q.uint32(16).bool($.isHeading);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=FY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.items===void 0)K.items=[];let z=Z.string();if(z!==void 0)K.items.push(z);continue}case 2:{if(J!==16)break;K.isHeading=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return VQ.fromPartial($??{})},fromPartial($){let Q=FY();return Q.items=$.items?.map((Z)=>Z)||void 0,Q.isHeading=$.isHeading??void 0,Q}};function PY(){return{}}var HQ={encode($,Q=new V){if($.data!==void 0)Q.uint32(10).bytes($.data);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=PY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.data=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return HQ.fromPartial($??{})},fromPartial($){let Q=PY();return Q.data=$.data??void 0,Q}};function kY(){return{}}var GQ={encode($,Q=new V){if($.requestType!==void 0)Q.uint32(8).int32($.requestType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=kY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.requestType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return GQ.fromPartial($??{})},fromPartial($){let Q=kY();return Q.requestType=$.requestType??void 0,Q}};function NY(){return{}}var UQ={encode($,Q=new V){if($.serverInfo!==void 0)xQ.encode($.serverInfo,Q.uint32(10).fork()).join();if($.clientInfo!==void 0)CQ.encode($.clientInfo,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=NY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.serverInfo=xQ.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.clientInfo=CQ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return UQ.fromPartial($??{})},fromPartial($){let Q=NY();return Q.serverInfo=$.serverInfo!==void 0&&$.serverInfo!==null?xQ.fromPartial($.serverInfo):void 0,Q.clientInfo=$.clientInfo!==void 0&&$.clientInfo!==null?CQ.fromPartial($.clientInfo):void 0,Q}};function BY(){return{}}var CQ={encode($,Q=new V){if($.type!==void 0)Q.uint32(8).int32($.type);if($.sourceChatJid!==void 0)Q.uint32(18).string($.sourceChatJid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=BY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return CQ.fromPartial($??{})},fromPartial($){let Q=BY();return Q.type=$.type??void 0,Q.sourceChatJid=$.sourceChatJid??void 0,Q}};function RY(){return{}}var xQ={encode($,Q=new V){if($.title!==void 0)Q.uint32(10).string($.title);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=RY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.title=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return xQ.fromPartial($??{})},fromPartial($){let Q=RY();return Q.title=$.title??void 0,Q}};function OY(){return{}}var DQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=OY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return DQ.fromPartial($??{})},fromPartial($){let Q=OY();return Q.lid=$.lid??void 0,Q.username=$.username??void 0,Q.countryCode=$.countryCode??void 0,Q.isUsernameDeleted=$.isUsernameDeleted??void 0,Q}};function AY(){return{}}var kN={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=AY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return kN.fromPartial($??{})},fromPartial($){let Q=AY();return Q.accesstoken=$.accesstoken??void 0,Q.fbid=$.fbid??void 0,Q.nonce=$.nonce??void 0,Q.encryptedPassword=$.encryptedPassword??void 0,Q}};function EY(){return{}}var LQ={encode($,Q=new V){if($.url!==void 0)Q.uint32(10).string($.url);if($.buttonTitle!==void 0)Q.uint32(18).string($.buttonTitle);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=EY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return LQ.fromPartial($??{})},fromPartial($){let Q=EY();return Q.url=$.url??void 0,Q.buttonTitle=$.buttonTitle??void 0,Q}};function MY(){return{}}var z0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=MY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return z0.fromPartial($??{})},fromPartial($){let Q=MY();return Q.downloadImages=$.downloadImages??void 0,Q.downloadAudio=$.downloadAudio??void 0,Q.downloadVideo=$.downloadVideo??void 0,Q.downloadDocuments=$.downloadDocuments??void 0,Q}};function WY(){return{}}var FQ={encode($,Q=new V){if($.fbid!==void 0)Q.uint32(10).string($.fbid);if($.password!==void 0)Q.uint32(18).string($.password);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=WY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return FQ.fromPartial($??{})},fromPartial($){let Q=WY();return Q.fbid=$.fbid??void 0,Q.password=$.password??void 0,Q}};function IY(){return{}}var NN={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=IY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.whatsappBizAcctFbid=Z.uint64Number();continue}case 2:{if(J!==18)break;K.whatsappAcctNumber=Z.string();continue}case 3:{if(J!==24)break;K.issueTime=Z.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return NN.fromPartial($??{})},fromPartial($){let Q=IY();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 SY(){return{}}var BN={encode($,Q=new V){if($.vnameCert!==void 0)y0.encode($.vnameCert,Q.uint32(10).fork()).join();if($.bizAcctLinkInfo!==void 0)Q.uint32(18).bytes($.bizAcctLinkInfo);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=SY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.vnameCert=y0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.bizAcctLinkInfo=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return BN.fromPartial($??{})},fromPartial($){let Q=SY();return Q.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?y0.fromPartial($.vnameCert):void 0,Q.bizAcctLinkInfo=$.bizAcctLinkInfo??void 0,Q}};function vY(){return{}}var RN={encode($,Q=new V){if($.vlevel!==void 0)Q.uint32(8).int32($.vlevel);if($.vnameCert!==void 0)y0.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=vY();while(Z.pos<q){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=y0.decode(Z,Z.uint32());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.uint64Number();continue}case 8:{if(J!==64)break;K.featureControls=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return RN.fromPartial($??{})},fromPartial($){let Q=vY();return Q.vlevel=$.vlevel??void 0,Q.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?y0.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 TY(){return{}}var PQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=TY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return PQ.fromPartial($??{})},fromPartial($){let Q=TY();return Q.ageCollectionEligible=$.ageCollectionEligible??void 0,Q.shouldTriggerAgeCollectionOnClient=$.shouldTriggerAgeCollectionOnClient??void 0,Q.ageCollectionType=$.ageCollectionType??void 0,Q}};function yY(){return{}}var kQ={encode($,Q=new V){if($.token!==void 0)Q.uint32(10).string($.token);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=yY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.token=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return kQ.fromPartial($??{})},fromPartial($){let Q=yY();return Q.token=$.token??void 0,Q}};function fY(){return{}}var NQ={encode($,Q=new V){if($.deepLinkMetadata!==void 0)kQ.encode($.deepLinkMetadata,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=fY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deepLinkMetadata=kQ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return NQ.fromPartial($??{})},fromPartial($){let Q=fY();return Q.deepLinkMetadata=$.deepLinkMetadata!==void 0&&$.deepLinkMetadata!==null?kQ.fromPartial($.deepLinkMetadata):void 0,Q}};function _Y(){return{}}var BQ={encode($,Q=new V){if($.capabilities!==void 0&&$.capabilities.length!==0)for(let Z of $.capabilities)Q.uint32(8).int32(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_Y();while(Z.pos<q){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 z=Z.uint32()+Z.pos;while(Z.pos<z)K.capabilities.push(Z.int32());continue}break}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return BQ.fromPartial($??{})},fromPartial($){let Q=_Y();return Q.capabilities=$.capabilities?.map((Z)=>Z)||void 0,Q}};function hY(){return{}}var RQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=hY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return RQ.fromPartial($??{})},fromPartial($){let Q=hY();return Q.commandName=$.commandName??void 0,Q.commandDescription=$.commandDescription??void 0,Q.commandPrompt=$.commandPrompt??void 0,Q}};function lY(){return{}}var OQ={encode($,Q=new V){if($.pluginType!==void 0)Q.uint32(8).int32($.pluginType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=lY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pluginType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return OQ.fromPartial($??{})},fromPartial($){let Q=lY();return Q.pluginType=$.pluginType??void 0,Q}};function uY(){return{}}var AQ={encode($,Q=new V){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)EQ.encode($.sideBySideSurveyMetadata,Q.uint32(58).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=uY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=k.decode(Z,Z.uint32());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.uint64Number();continue}case 5:{if(J!==40)break;K.kindPositive=Z.uint64Number();continue}case 6:{if(J!==48)break;K.kindReport=Z.int32();continue}case 7:{if(J!==58)break;K.sideBySideSurveyMetadata=EQ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return AQ.fromPartial($??{})},fromPartial($){let Q=uY();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?EQ.fromPartial($.sideBySideSurveyMetadata):void 0,Q}};function pY(){return{}}var EQ={encode($,Q=new V){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)MQ.encode($.analyticsData,Q.uint32(66).fork()).join();if($.metaAiAnalyticsData!==void 0)WQ.encode($.metaAiAnalyticsData,Q.uint32(74).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=pY();while(Z.pos<q){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=MQ.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.metaAiAnalyticsData=WQ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return EQ.fromPartial($??{})},fromPartial($){let Q=pY();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?MQ.fromPartial($.analyticsData):void 0,Q.metaAiAnalyticsData=$.metaAiAnalyticsData!==void 0&&$.metaAiAnalyticsData!==null?WQ.fromPartial($.metaAiAnalyticsData):void 0,Q}};function wY(){return{}}var MQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=wY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return MQ.fromPartial($??{})},fromPartial($){let Q=wY();return Q.tessaEvent=$.tessaEvent??void 0,Q.tessaSessionFbid=$.tessaSessionFbid??void 0,Q.simonSessionFbid=$.simonSessionFbid??void 0,Q}};function nY(){return{}}var WQ={encode($,Q=new V){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)vQ.encode($.ctaImpressionEvent,Q.uint32(42).fork()).join();if($.ctaClickEvent!==void 0)SQ.encode($.ctaClickEvent,Q.uint32(50).fork()).join();if($.cardImpressionEvent!==void 0)TQ.encode($.cardImpressionEvent,Q.uint32(58).fork()).join();if($.responseEvent!==void 0)yQ.encode($.responseEvent,Q.uint32(66).fork()).join();if($.abandonEvent!==void 0)IQ.encode($.abandonEvent,Q.uint32(74).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=nY();while(Z.pos<q){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=vQ.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.ctaClickEvent=SQ.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.cardImpressionEvent=TQ.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.responseEvent=yQ.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.abandonEvent=IQ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return WQ.fromPartial($??{})},fromPartial($){let Q=nY();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?vQ.fromPartial($.ctaImpressionEvent):void 0,Q.ctaClickEvent=$.ctaClickEvent!==void 0&&$.ctaClickEvent!==null?SQ.fromPartial($.ctaClickEvent):void 0,Q.cardImpressionEvent=$.cardImpressionEvent!==void 0&&$.cardImpressionEvent!==null?TQ.fromPartial($.cardImpressionEvent):void 0,Q.responseEvent=$.responseEvent!==void 0&&$.responseEvent!==null?yQ.fromPartial($.responseEvent):void 0,Q.abandonEvent=$.abandonEvent!==void 0&&$.abandonEvent!==null?IQ.fromPartial($.abandonEvent):void 0,Q}};function dY(){return{}}var IQ={encode($,Q=new V){if($.abandonDwellTimeMsString!==void 0)Q.uint32(10).string($.abandonDwellTimeMsString);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=dY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.abandonDwellTimeMsString=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return IQ.fromPartial($??{})},fromPartial($){let Q=dY();return Q.abandonDwellTimeMsString=$.abandonDwellTimeMsString??void 0,Q}};function jY(){return{}}var SQ={encode($,Q=new V){if($.isSurveyExpired!==void 0)Q.uint32(8).bool($.isSurveyExpired);if($.clickDwellTimeMsString!==void 0)Q.uint32(18).string($.clickDwellTimeMsString);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=jY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return SQ.fromPartial($??{})},fromPartial($){let Q=jY();return Q.isSurveyExpired=$.isSurveyExpired??void 0,Q.clickDwellTimeMsString=$.clickDwellTimeMsString??void 0,Q}};function cY(){return{}}var vQ={encode($,Q=new V){if($.isSurveyExpired!==void 0)Q.uint32(8).bool($.isSurveyExpired);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=cY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isSurveyExpired=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return vQ.fromPartial($??{})},fromPartial($){let Q=cY();return Q.isSurveyExpired=$.isSurveyExpired??void 0,Q}};function oY(){return{}}var TQ={encode($,Q=new V){return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=oY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return TQ.fromPartial($??{})},fromPartial($){return oY()}};function bY(){return{}}var yQ={encode($,Q=new V){if($.responseDwellTimeMsString!==void 0)Q.uint32(10).string($.responseDwellTimeMsString);if($.selectedResponseId!==void 0)Q.uint32(18).string($.selectedResponseId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=bY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return yQ.fromPartial($??{})},fromPartial($){let Q=bY();return Q.responseDwellTimeMsString=$.responseDwellTimeMsString??void 0,Q.selectedResponseId=$.selectedResponseId??void 0,Q}};function iY(){return{}}var fQ={encode($,Q=new V){if($.participantsMetadata!==void 0&&$.participantsMetadata.length!==0)for(let Z of $.participantsMetadata)_Q.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=iY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.participantsMetadata===void 0)K.participantsMetadata=[];let z=_Q.decode(Z,Z.uint32());if(z!==void 0)K.participantsMetadata.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return fQ.fromPartial($??{})},fromPartial($){let Q=iY();return Q.participantsMetadata=$.participantsMetadata?.map((Z)=>_Q.fromPartial(Z))||void 0,Q}};function mY(){return{}}var _Q={encode($,Q=new V){if($.botFbid!==void 0)Q.uint32(10).string($.botFbid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=mY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.botFbid=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _Q.fromPartial($??{})},fromPartial($){let Q=mY();return Q.botFbid=$.botFbid??void 0,Q}};function gY(){return{}}var hQ={encode($,Q=new V){if($.imagineType!==void 0)Q.uint32(8).int32($.imagineType);if($.shortPrompt!==void 0)Q.uint32(18).string($.shortPrompt);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=gY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return hQ.fromPartial($??{})},fromPartial($){let Q=gY();return Q.imagineType=$.imagineType??void 0,Q.shortPrompt=$.shortPrompt??void 0,Q}};function tY(){return{}}var lQ={encode($,Q=new V){if($.botBackend!==void 0)Q.uint32(8).int32($.botBackend);if($.toolsUsed!==void 0&&$.toolsUsed.length!==0)for(let Z of $.toolsUsed)Q.uint32(18).string(Z);if($.isThinking!==void 0)Q.uint32(24).bool($.isThinking);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=tY();while(Z.pos<q){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 z=Z.string();if(z!==void 0)K.toolsUsed.push(z);continue}case 3:{if(J!==24)break;K.isThinking=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return lQ.fromPartial($??{})},fromPartial($){let Q=tY();return Q.botBackend=$.botBackend??void 0,Q.toolsUsed=$.toolsUsed?.map((Z)=>Z)||void 0,Q.isThinking=$.isThinking??void 0,Q}};function rY(){return{}}var uQ={encode($,Q=new V){if($.type!==void 0)Q.uint32(8).int32($.type);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=rY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return uQ.fromPartial($??{})},fromPartial($){let Q=rY();return Q.type=$.type??void 0,Q}};function aY(){return{}}var pQ={encode($,Q=new V){if($.accounts!==void 0&&$.accounts.length!==0)for(let Z of $.accounts)uQ.encode(Z,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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=aY();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.accounts===void 0)K.accounts=[];let z=uQ.decode(Z,Z.uint32());if(z!==void 0)K.accounts.push(z);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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return pQ.fromPartial($??{})},fromPartial($){let Q=aY();return Q.accounts=$.accounts?.map((Z)=>uQ.fromPartial(Z))||void 0,Q.acAuthTokens=$.acAuthTokens??void 0,Q.acErrorCode=$.acErrorCode??void 0,Q}};function sY(){return{}}var V0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=sY();while(Z.pos<q){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.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return V0.fromPartial($??{})},fromPartial($){let Q=sY();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 eY(){return{}}var u0={encode($,Q=new V){if($.fact!==void 0)Q.uint32(10).string($.fact);if($.factId!==void 0)Q.uint32(18).string($.factId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=eY();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return u0.fromPartial($??{})},fromPartial($){let Q=eY();return Q.fact=$.fact??void 0,Q.factId=$.factId??void 0,Q}};function $V(){return{}}var wQ={encode($,Q=new V){if($.addedFacts!==void 0&&$.addedFacts.length!==0)for(let Z of $.addedFacts)u0.encode(Z,Q.uint32(10).fork()).join();if($.removedFacts!==void 0&&$.removedFacts.length!==0)for(let Z of $.removedFacts)u0.encode(Z,Q.uint32(18).fork()).join();if($.disclaimer!==void 0)Q.uint32(26).string($.disclaimer);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$V();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.addedFacts===void 0)K.addedFacts=[];let z=u0.decode(Z,Z.uint32());if(z!==void 0)K.addedFacts.push(z);continue}case 2:{if(J!==18)break;if(K.removedFacts===void 0)K.removedFacts=[];let z=u0.decode(Z,Z.uint32());if(z!==void 0)K.removedFacts.push(z);continue}case 3:{if(J!==26)break;K.disclaimer=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return wQ.fromPartial($??{})},fromPartial($){let Q=$V();return Q.addedFacts=$.addedFacts?.map((Z)=>u0.fromPartial(Z))||void 0,Q.removedFacts=$.removedFacts?.map((Z)=>u0.fromPartial(Z))||void 0,Q.disclaimer=$.disclaimer??void 0,Q}};function QV(){return{}}var nQ={encode($,Q=new V){if($.faceImages!==void 0&&$.faceImages.length!==0)for(let Z of $.faceImages)V0.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=QV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.faceImages===void 0)K.faceImages=[];let z=V0.decode(Z,Z.uint32());if(z!==void 0)K.faceImages.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return nQ.fromPartial($??{})},fromPartial($){let Q=QV();return Q.faceImages=$.faceImages?.map((Z)=>V0.fromPartial(Z))||void 0,Q}};function ZV(){return{}}var dQ={encode($,Q=new V){if($.type!==void 0)Q.uint32(8).int32($.type);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ZV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return dQ.fromPartial($??{})},fromPartial($){let Q=ZV();return Q.type=$.type??void 0,Q}};function JV(){return{}}var jQ={encode($,Q=new V){if($.origins!==void 0&&$.origins.length!==0)for(let Z of $.origins)dQ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=JV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.origins===void 0)K.origins=[];let z=dQ.decode(Z,Z.uint32());if(z!==void 0)K.origins.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return jQ.fromPartial($??{})},fromPartial($){let Q=JV();return Q.origins=$.origins?.map((Z)=>dQ.fromPartial(Z))||void 0,Q}};function KV(){return{}}var cQ={encode($,Q=new V){if($.botEntryPointOrigin!==void 0)Q.uint32(8).int32($.botEntryPointOrigin);if($.forwardScore!==void 0)Q.uint32(16).uint32($.forwardScore);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=KV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return cQ.fromPartial($??{})},fromPartial($){let Q=KV();return Q.botEntryPointOrigin=$.botEntryPointOrigin??void 0,Q.forwardScore=$.forwardScore??void 0,Q}};function qV(){return{}}var oQ={encode($,Q=new V){if($.personaId!==void 0)Q.uint32(18).string($.personaId);if($.pluginMetadata!==void 0)gQ.encode($.pluginMetadata,Q.uint32(26).fork()).join();if($.suggestedPromptMetadata!==void 0)DZ.encode($.suggestedPromptMetadata,Q.uint32(34).fork()).join();if($.invokerJid!==void 0)Q.uint32(42).string($.invokerJid);if($.sessionMetadata!==void 0)GZ.encode($.sessionMetadata,Q.uint32(50).fork()).join();if($.memuMetadata!==void 0)nQ.encode($.memuMetadata,Q.uint32(58).fork()).join();if($.timezone!==void 0)Q.uint32(66).string($.timezone);if($.reminderMetadata!==void 0)XZ.encode($.reminderMetadata,Q.uint32(74).fork()).join();if($.modelMetadata!==void 0)mQ.encode($.modelMetadata,Q.uint32(82).fork()).join();if($.messageDisclaimerText!==void 0)Q.uint32(90).string($.messageDisclaimerText);if($.progressIndicatorMetadata!==void 0)tQ.encode($.progressIndicatorMetadata,Q.uint32(98).fork()).join();if($.capabilityMetadata!==void 0)BQ.encode($.capabilityMetadata,Q.uint32(106).fork()).join();if($.imagineMetadata!==void 0)hQ.encode($.imagineMetadata,Q.uint32(114).fork()).join();if($.memoryMetadata!==void 0)wQ.encode($.memoryMetadata,Q.uint32(122).fork()).join();if($.renderingMetadata!==void 0)YZ.encode($.renderingMetadata,Q.uint32(130).fork()).join();if($.botMetricsMetadata!==void 0)bQ.encode($.botMetricsMetadata,Q.uint32(138).fork()).join();if($.botLinkedAccountsMetadata!==void 0)pQ.encode($.botLinkedAccountsMetadata,Q.uint32(146).fork()).join();if($.richResponseSourcesMetadata!==void 0)CZ.encode($.richResponseSourcesMetadata,Q.uint32(154).fork()).join();if($.aiConversationContext!==void 0)Q.uint32(162).bytes($.aiConversationContext);if($.botPromotionMessageMetadata!==void 0)$Z.encode($.botPromotionMessageMetadata,Q.uint32(170).fork()).join();if($.botModeSelectionMetadata!==void 0)iQ.encode($.botModeSelectionMetadata,Q.uint32(178).fork()).join();if($.botQuotaMetadata!==void 0)KZ.encode($.botQuotaMetadata,Q.uint32(186).fork()).join();if($.botAgeCollectionMetadata!==void 0)PQ.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)r0.encode($.verificationMetadata,Q.uint32(218).fork()).join();if($.unifiedResponseMutation!==void 0)LZ.encode($.unifiedResponseMutation,Q.uint32(226).fork()).join();if($.botMessageOriginMetadata!==void 0)jQ.encode($.botMessageOriginMetadata,Q.uint32(234).fork()).join();if($.inThreadSurveyMetadata!==void 0)iJ.encode($.inThreadSurveyMetadata,Q.uint32(242).fork()).join();if($.botThreadInfo!==void 0)UQ.encode($.botThreadInfo,Q.uint32(250).fork()).join();if($.regenerateMetadata!==void 0)m$.encode($.regenerateMetadata,Q.uint32(258).fork()).join();if($.sessionTransparencyMetadata!==void 0)BX.encode($.sessionTransparencyMetadata,Q.uint32(266).fork()).join();if($.botDocumentMessageMetadata!==void 0)OQ.encode($.botDocumentMessageMetadata,Q.uint32(274).fork()).join();if($.botGroupMetadata!==void 0)fQ.encode($.botGroupMetadata,Q.uint32(282).fork()).join();if($.botRenderingConfigMetadata!==void 0)zZ.encode($.botRenderingConfigMetadata,Q.uint32(290).fork()).join();if($.botInfrastructureDiagnostics!==void 0)lQ.encode($.botInfrastructureDiagnostics,Q.uint32(298).fork()).join();if($.aiMediaCollectionMetadata!==void 0)o$.encode($.aiMediaCollectionMetadata,Q.uint32(306).fork()).join();if($.commandMetadata!==void 0)RQ.encode($.commandMetadata,Q.uint32(314).fork()).join();if($.resolvedToolCallMetadata!==void 0)HZ.encode($.resolvedToolCallMetadata,Q.uint32(322).fork()).join();if($.subscriptionUpsellMetadata!==void 0)GQ.encode($.subscriptionUpsellMetadata,Q.uint32(330).fork()).join();if($.pttPromptMetadata!==void 0)JZ.encode($.pttPromptMetadata,Q.uint32(338).fork()).join();if($.internalMetadata!==void 0)Q.uint32(7994).bytes($.internalMetadata);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=qV();while(Z.pos<q){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=gQ.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.suggestedPromptMetadata=DZ.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.invokerJid=Z.string();continue}case 6:{if(J!==50)break;K.sessionMetadata=GZ.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.memuMetadata=nQ.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.timezone=Z.string();continue}case 9:{if(J!==74)break;K.reminderMetadata=XZ.decode(Z,Z.uint32());continue}case 10:{if(J!==82)break;K.modelMetadata=mQ.decode(Z,Z.uint32());continue}case 11:{if(J!==90)break;K.messageDisclaimerText=Z.string();continue}case 12:{if(J!==98)break;K.progressIndicatorMetadata=tQ.decode(Z,Z.uint32());continue}case 13:{if(J!==106)break;K.capabilityMetadata=BQ.decode(Z,Z.uint32());continue}case 14:{if(J!==114)break;K.imagineMetadata=hQ.decode(Z,Z.uint32());continue}case 15:{if(J!==122)break;K.memoryMetadata=wQ.decode(Z,Z.uint32());continue}case 16:{if(J!==130)break;K.renderingMetadata=YZ.decode(Z,Z.uint32());continue}case 17:{if(J!==138)break;K.botMetricsMetadata=bQ.decode(Z,Z.uint32());continue}case 18:{if(J!==146)break;K.botLinkedAccountsMetadata=pQ.decode(Z,Z.uint32());continue}case 19:{if(J!==154)break;K.richResponseSourcesMetadata=CZ.decode(Z,Z.uint32());continue}case 20:{if(J!==162)break;K.aiConversationContext=Z.bytes();continue}case 21:{if(J!==170)break;K.botPromotionMessageMetadata=$Z.decode(Z,Z.uint32());continue}case 22:{if(J!==178)break;K.botModeSelectionMetadata=iQ.decode(Z,Z.uint32());continue}case 23:{if(J!==186)break;K.botQuotaMetadata=KZ.decode(Z,Z.uint32());continue}case 24:{if(J!==194)break;K.botAgeCollectionMetadata=PQ.decode(Z,Z.uint32());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=r0.decode(Z,Z.uint32());continue}case 28:{if(J!==226)break;K.unifiedResponseMutation=LZ.decode(Z,Z.uint32());continue}case 29:{if(J!==234)break;K.botMessageOriginMetadata=jQ.decode(Z,Z.uint32());continue}case 30:{if(J!==242)break;K.inThreadSurveyMetadata=iJ.decode(Z,Z.uint32());continue}case 31:{if(J!==250)break;K.botThreadInfo=UQ.decode(Z,Z.uint32());continue}case 32:{if(J!==258)break;K.regenerateMetadata=m$.decode(Z,Z.uint32());continue}case 33:{if(J!==266)break;K.sessionTransparencyMetadata=BX.decode(Z,Z.uint32());continue}case 34:{if(J!==274)break;K.botDocumentMessageMetadata=OQ.decode(Z,Z.uint32());continue}case 35:{if(J!==282)break;K.botGroupMetadata=fQ.decode(Z,Z.uint32());continue}case 36:{if(J!==290)break;K.botRenderingConfigMetadata=zZ.decode(Z,Z.uint32());continue}case 37:{if(J!==298)break;K.botInfrastructureDiagnostics=lQ.decode(Z,Z.uint32());continue}case 38:{if(J!==306)break;K.aiMediaCollectionMetadata=o$.decode(Z,Z.uint32());continue}case 39:{if(J!==314)break;K.commandMetadata=RQ.decode(Z,Z.uint32());continue}case 40:{if(J!==322)break;K.resolvedToolCallMetadata=HZ.decode(Z,Z.uint32());continue}case 41:{if(J!==330)break;K.subscriptionUpsellMetadata=GQ.decode(Z,Z.uint32());continue}case 42:{if(J!==338)break;K.pttPromptMetadata=JZ.decode(Z,Z.uint32());continue}case 999:{if(J!==7994)break;K.internalMetadata=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return oQ.fromPartial($??{})},fromPartial($){let Q=qV();return Q.personaId=$.personaId??void 0,Q.pluginMetadata=$.pluginMetadata!==void 0&&$.pluginMetadata!==null?gQ.fromPartial($.pluginMetadata):void 0,Q.suggestedPromptMetadata=$.suggestedPromptMetadata!==void 0&&$.suggestedPromptMetadata!==null?DZ.fromPartial($.suggestedPromptMetadata):void 0,Q.invokerJid=$.invokerJid??void 0,Q.sessionMetadata=$.sessionMetadata!==void 0&&$.sessionMetadata!==null?GZ.fromPartial($.sessionMetadata):void 0,Q.memuMetadata=$.memuMetadata!==void 0&&$.memuMetadata!==null?nQ.fromPartial($.memuMetadata):void 0,Q.timezone=$.timezone??void 0,Q.reminderMetadata=$.reminderMetadata!==void 0&&$.reminderMetadata!==null?XZ.fromPartial($.reminderMetadata):void 0,Q.modelMetadata=$.modelMetadata!==void 0&&$.modelMetadata!==null?mQ.fromPartial($.modelMetadata):void 0,Q.messageDisclaimerText=$.messageDisclaimerText??void 0,Q.progressIndicatorMetadata=$.progressIndicatorMetadata!==void 0&&$.progressIndicatorMetadata!==null?tQ.fromPartial($.progressIndicatorMetadata):void 0,Q.capabilityMetadata=$.capabilityMetadata!==void 0&&$.capabilityMetadata!==null?BQ.fromPartial($.capabilityMetadata):void 0,Q.imagineMetadata=$.imagineMetadata!==void 0&&$.imagineMetadata!==null?hQ.fromPartial($.imagineMetadata):void 0,Q.memoryMetadata=$.memoryMetadata!==void 0&&$.memoryMetadata!==null?wQ.fromPartial($.memoryMetadata):void 0,Q.renderingMetadata=$.renderingMetadata!==void 0&&$.renderingMetadata!==null?YZ.fromPartial($.renderingMetadata):void 0,Q.botMetricsMetadata=$.botMetricsMetadata!==void 0&&$.botMetricsMetadata!==null?bQ.fromPartial($.botMetricsMetadata):void 0,Q.botLinkedAccountsMetadata=$.botLinkedAccountsMetadata!==void 0&&$.botLinkedAccountsMetadata!==null?pQ.fromPartial($.botLinkedAccountsMetadata):void 0,Q.richResponseSourcesMetadata=$.richResponseSourcesMetadata!==void 0&&$.richResponseSourcesMetadata!==null?CZ.fromPartial($.richResponseSourcesMetadata):void 0,Q.aiConversationContext=$.aiConversationContext??void 0,Q.botPromotionMessageMetadata=$.botPromotionMessageMetadata!==void 0&&$.botPromotionMessageMetadata!==null?$Z.fromPartial($.botPromotionMessageMetadata):void 0,Q.botModeSelectionMetadata=$.botModeSelectionMetadata!==void 0&&$.botModeSelectionMetadata!==null?iQ.fromPartial($.botModeSelectionMetadata):void 0,Q.botQuotaMetadata=$.botQuotaMetadata!==void 0&&$.botQuotaMetadata!==null?KZ.fromPartial($.botQuotaMetadata):void 0,Q.botAgeCollectionMetadata=$.botAgeCollectionMetadata!==void 0&&$.botAgeCollectionMetadata!==null?PQ.fromPartial($.botAgeCollectionMetadata):void 0,Q.conversationStarterPromptId=$.conversationStarterPromptId??void 0,Q.botResponseId=$.botResponseId??void 0,Q.verificationMetadata=$.verificationMetadata!==void 0&&$.verificationMetadata!==null?r0.fromPartial($.verificationMetadata):void 0,Q.unifiedResponseMutation=$.unifiedResponseMutation!==void 0&&$.unifiedResponseMutation!==null?LZ.fromPartial($.unifiedResponseMutation):void 0,Q.botMessageOriginMetadata=$.botMessageOriginMetadata!==void 0&&$.botMessageOriginMetadata!==null?jQ.fromPartial($.botMessageOriginMetadata):void 0,Q.inThreadSurveyMetadata=$.inThreadSurveyMetadata!==void 0&&$.inThreadSurveyMetadata!==null?iJ.fromPartial($.inThreadSurveyMetadata):void 0,Q.botThreadInfo=$.botThreadInfo!==void 0&&$.botThreadInfo!==null?UQ.fromPartial($.botThreadInfo):void 0,Q.regenerateMetadata=$.regenerateMetadata!==void 0&&$.regenerateMetadata!==null?m$.fromPartial($.regenerateMetadata):void 0,Q.sessionTransparencyMetadata=$.sessionTransparencyMetadata!==void 0&&$.sessionTransparencyMetadata!==null?BX.fromPartial($.sessionTransparencyMetadata):void 0,Q.botDocumentMessageMetadata=$.botDocumentMessageMetadata!==void 0&&$.botDocumentMessageMetadata!==null?OQ.fromPartial($.botDocumentMessageMetadata):void 0,Q.botGroupMetadata=$.botGroupMetadata!==void 0&&$.botGroupMetadata!==null?fQ.fromPartial($.botGroupMetadata):void 0,Q.botRenderingConfigMetadata=$.botRenderingConfigMetadata!==void 0&&$.botRenderingConfigMetadata!==null?zZ.fromPartial($.botRenderingConfigMetadata):void 0,Q.botInfrastructureDiagnostics=$.botInfrastructureDiagnostics!==void 0&&$.botInfrastructureDiagnostics!==null?lQ.fromPartial($.botInfrastructureDiagnostics):void 0,Q.aiMediaCollectionMetadata=$.aiMediaCollectionMetadata!==void 0&&$.aiMediaCollectionMetadata!==null?o$.fromPartial($.aiMediaCollectionMetadata):void 0,Q.commandMetadata=$.commandMetadata!==void 0&&$.commandMetadata!==null?RQ.fromPartial($.commandMetadata):void 0,Q.resolvedToolCallMetadata=$.resolvedToolCallMetadata!==void 0&&$.resolvedToolCallMetadata!==null?HZ.fromPartial($.resolvedToolCallMetadata):void 0,Q.subscriptionUpsellMetadata=$.subscriptionUpsellMetadata!==void 0&&$.subscriptionUpsellMetadata!==null?GQ.fromPartial($.subscriptionUpsellMetadata):void 0,Q.pttPromptMetadata=$.pttPromptMetadata!==void 0&&$.pttPromptMetadata!==null?JZ.fromPartial($.pttPromptMetadata):void 0,Q.internalMetadata=$.internalMetadata??void 0,Q}};function XV(){return{}}var bQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=XV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return bQ.fromPartial($??{})},fromPartial($){let Q=XV();return Q.destinationId=$.destinationId??void 0,Q.destinationEntryPoint=$.destinationEntryPoint??void 0,Q.threadOrigin=$.threadOrigin??void 0,Q}};function zV(){return{}}var iQ={encode($,Q=new V){if($.mode!==void 0&&$.mode.length!==0)for(let Z of $.mode)Q.uint32(8).int32(Z);if($.overrideMode!==void 0&&$.overrideMode.length!==0)for(let Z of $.overrideMode)Q.uint32(16).uint32(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=zV();while(Z.pos<q){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 z=Z.uint32()+Z.pos;while(Z.pos<z)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 z=Z.uint32()+Z.pos;while(Z.pos<z)K.overrideMode.push(Z.uint32());continue}break}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return iQ.fromPartial($??{})},fromPartial($){let Q=zV();return Q.mode=$.mode?.map((Z)=>Z)||void 0,Q.overrideMode=$.overrideMode?.map((Z)=>Z)||void 0,Q}};function YV(){return{}}var mQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=YV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return mQ.fromPartial($??{})},fromPartial($){let Q=YV();return Q.modelType=$.modelType??void 0,Q.premiumModelStatus=$.premiumModelStatus??void 0,Q.modelNameOverride=$.modelNameOverride??void 0,Q}};function VV(){return{}}var gQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=VV();while(Z.pos<q){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());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return gQ.fromPartial($??{})},fromPartial($){let Q=VV();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 HV(){return{}}var tQ={encode($,Q=new V){if($.progressDescription!==void 0)Q.uint32(10).string($.progressDescription);if($.stepsMetadata!==void 0&&$.stepsMetadata.length!==0)for(let Z of $.stepsMetadata)rQ.encode(Z,Q.uint32(18).fork()).join();if($.estimatedCompletionTime!==void 0)Q.uint32(24).int64($.estimatedCompletionTime);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=HV();while(Z.pos<q){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 z=rQ.decode(Z,Z.uint32());if(z!==void 0)K.stepsMetadata.push(z);continue}case 3:{if(J!==24)break;K.estimatedCompletionTime=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return tQ.fromPartial($??{})},fromPartial($){let Q=HV();return Q.progressDescription=$.progressDescription??void 0,Q.stepsMetadata=$.stepsMetadata?.map((Z)=>rQ.fromPartial(Z))||void 0,Q.estimatedCompletionTime=$.estimatedCompletionTime??void 0,Q}};function GV(){return{}}var rQ={encode($,Q=new V){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 Z of $.sourcesMetadata)sQ.encode(Z,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 Z of $.sections)eQ.encode(Z,Q.uint32(58).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=GV();while(Z.pos<q){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 z=sQ.decode(Z,Z.uint32());if(z!==void 0)K.sourcesMetadata.push(z);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 z=eQ.decode(Z,Z.uint32());if(z!==void 0)K.sections.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return rQ.fromPartial($??{})},fromPartial($){let Q=GV();return Q.statusTitle=$.statusTitle??void 0,Q.statusBody=$.statusBody??void 0,Q.sourcesMetadata=$.sourcesMetadata?.map((Z)=>sQ.fromPartial(Z))||void 0,Q.status=$.status??void 0,Q.isReasoning=$.isReasoning??void 0,Q.isEnhancedSearch=$.isEnhancedSearch??void 0,Q.sections=$.sections?.map((Z)=>eQ.fromPartial(Z))||void 0,Q}};function UV(){return{}}var aQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=UV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return aQ.fromPartial($??{})},fromPartial($){let Q=UV();return Q.title=$.title??void 0,Q.provider=$.provider??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.favIconUrl=$.favIconUrl??void 0,Q}};function CV(){return{}}var sQ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=CV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return sQ.fromPartial($??{})},fromPartial($){let Q=CV();return Q.sourceTitle=$.sourceTitle??void 0,Q.provider=$.provider??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q}};function xV(){return{}}var eQ={encode($,Q=new V){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 Z of $.sourcesMetadata)aQ.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=xV();while(Z.pos<q){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 z=aQ.decode(Z,Z.uint32());if(z!==void 0)K.sourcesMetadata.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return eQ.fromPartial($??{})},fromPartial($){let Q=xV();return Q.sectionTitle=$.sectionTitle??void 0,Q.sectionBody=$.sectionBody??void 0,Q.sourcesMetadata=$.sourcesMetadata?.map((Z)=>aQ.fromPartial(Z))||void 0,Q}};function DV(){return{}}var $Z={encode($,Q=new V){if($.promotionType!==void 0)Q.uint32(8).int32($.promotionType);if($.buttonTitle!==void 0)Q.uint32(18).string($.buttonTitle);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=DV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $Z.fromPartial($??{})},fromPartial($){let Q=DV();return Q.promotionType=$.promotionType??void 0,Q.buttonTitle=$.buttonTitle??void 0,Q}};function LV(){return{}}var QZ={encode($,Q=new V){if($.prompt!==void 0)Q.uint32(10).string($.prompt);if($.promptId!==void 0)Q.uint32(18).string($.promptId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=LV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return QZ.fromPartial($??{})},fromPartial($){let Q=LV();return Q.prompt=$.prompt??void 0,Q.promptId=$.promptId??void 0,Q}};function FV(){return{}}var ZZ={encode($,Q=new V){if($.suggestions!==void 0&&$.suggestions.length!==0)for(let Z of $.suggestions)QZ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=FV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.suggestions===void 0)K.suggestions=[];let z=QZ.decode(Z,Z.uint32());if(z!==void 0)K.suggestions.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return ZZ.fromPartial($??{})},fromPartial($){let Q=FV();return Q.suggestions=$.suggestions?.map((Z)=>QZ.fromPartial(Z))||void 0,Q}};function PV(){return{}}var JZ={encode($,Q=new V){if($.transcript!==void 0)Q.uint32(10).string($.transcript);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=PV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.transcript=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return JZ.fromPartial($??{})},fromPartial($){let Q=PV();return Q.transcript=$.transcript??void 0,Q}};function kV(){return{}}var KZ={encode($,Q=new V){if($.botFeatureQuotaMetadata!==void 0&&$.botFeatureQuotaMetadata.length!==0)for(let Z of $.botFeatureQuotaMetadata)qZ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=kV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.botFeatureQuotaMetadata===void 0)K.botFeatureQuotaMetadata=[];let z=qZ.decode(Z,Z.uint32());if(z!==void 0)K.botFeatureQuotaMetadata.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return KZ.fromPartial($??{})},fromPartial($){let Q=kV();return Q.botFeatureQuotaMetadata=$.botFeatureQuotaMetadata?.map((Z)=>qZ.fromPartial(Z))||void 0,Q}};function NV(){return{}}var qZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=NV();while(Z.pos<q){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.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return qZ.fromPartial($??{})},fromPartial($){let Q=NV();return Q.featureType=$.featureType??void 0,Q.remainingQuota=$.remainingQuota??void 0,Q.expirationTimestamp=$.expirationTimestamp??void 0,Q}};function BV(){return{}}var XZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=BV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestMessageKey=k.decode(Z,Z.uint32());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.uint64Number();continue}case 5:{if(J!==40)break;K.frequency=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return XZ.fromPartial($??{})},fromPartial($){let Q=BV();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 RV(){return{}}var zZ={encode($,Q=new V){if($.bloksVersioningId!==void 0)Q.uint32(10).string($.bloksVersioningId);if($.pixelDensity!==void 0)Q.uint32(17).double($.pixelDensity);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=RV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return zZ.fromPartial($??{})},fromPartial($){let Q=RV();return Q.bloksVersioningId=$.bloksVersioningId??void 0,Q.pixelDensity=$.pixelDensity??void 0,Q}};function OV(){return{}}var YZ={encode($,Q=new V){if($.keywords!==void 0&&$.keywords.length!==0)for(let Z of $.keywords)VZ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=OV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.keywords===void 0)K.keywords=[];let z=VZ.decode(Z,Z.uint32());if(z!==void 0)K.keywords.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return YZ.fromPartial($??{})},fromPartial($){let Q=OV();return Q.keywords=$.keywords?.map((Z)=>VZ.fromPartial(Z))||void 0,Q}};function AV(){return{}}var VZ={encode($,Q=new V){if($.value!==void 0)Q.uint32(10).string($.value);if($.associatedPrompts!==void 0&&$.associatedPrompts.length!==0)for(let Z of $.associatedPrompts)Q.uint32(18).string(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=AV();while(Z.pos<q){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 z=Z.string();if(z!==void 0)K.associatedPrompts.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return VZ.fromPartial($??{})},fromPartial($){let Q=AV();return Q.value=$.value??void 0,Q.associatedPrompts=$.associatedPrompts?.map((Z)=>Z)||void 0,Q}};function EV(){return{}}var HZ={encode($,Q=new V){if($.toolCallId!==void 0)Q.uint32(10).string($.toolCallId);if($.resolutionDataSerialized!==void 0)Q.uint32(18).string($.resolutionDataSerialized);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=EV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return HZ.fromPartial($??{})},fromPartial($){let Q=EV();return Q.toolCallId=$.toolCallId??void 0,Q.resolutionDataSerialized=$.resolutionDataSerialized??void 0,Q}};function MV(){return{}}var GZ={encode($,Q=new V){if($.sessionId!==void 0)Q.uint32(10).string($.sessionId);if($.sessionSource!==void 0)Q.uint32(16).int32($.sessionSource);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=MV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return GZ.fromPartial($??{})},fromPartial($){let Q=MV();return Q.sessionId=$.sessionId??void 0,Q.sessionSource=$.sessionSource??void 0,Q}};function WV(){return{}}var r0={encode($,Q=new V){if($.proofs!==void 0&&$.proofs.length!==0)for(let Z of $.proofs)UZ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=WV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.proofs===void 0)K.proofs=[];let z=UZ.decode(Z,Z.uint32());if(z!==void 0)K.proofs.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return r0.fromPartial($??{})},fromPartial($){let Q=WV();return Q.proofs=$.proofs?.map((Z)=>UZ.fromPartial(Z))||void 0,Q}};function IV(){return{}}var UZ={encode($,Q=new V){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 Z of $.certificateChain)Q.uint32(34).bytes(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=IV();while(Z.pos<q){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 z=Z.bytes();if(z!==void 0)K.certificateChain.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return UZ.fromPartial($??{})},fromPartial($){let Q=IV();return Q.version=$.version??void 0,Q.useCase=$.useCase??void 0,Q.signature=$.signature??void 0,Q.certificateChain=$.certificateChain?.map((Z)=>Z)||void 0,Q}};function SV(){return{}}var CZ={encode($,Q=new V){if($.sources!==void 0&&$.sources.length!==0)for(let Z of $.sources)xZ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=SV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.sources===void 0)K.sources=[];let z=xZ.decode(Z,Z.uint32());if(z!==void 0)K.sources.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return CZ.fromPartial($??{})},fromPartial($){let Q=SV();return Q.sources=$.sources?.map((Z)=>xZ.fromPartial(Z))||void 0,Q}};function vV(){return{}}var xZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=vV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return xZ.fromPartial($??{})},fromPartial($){let Q=vV();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 TV(){return{}}var DZ={encode($,Q=new V){if($.suggestedPrompts!==void 0&&$.suggestedPrompts.length!==0)for(let Z of $.suggestedPrompts)Q.uint32(10).string(Z);if($.selectedPromptIndex!==void 0)Q.uint32(16).uint32($.selectedPromptIndex);if($.promptSuggestions!==void 0)ZZ.encode($.promptSuggestions,Q.uint32(26).fork()).join();if($.selectedPromptId!==void 0)Q.uint32(34).string($.selectedPromptId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=TV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.suggestedPrompts===void 0)K.suggestedPrompts=[];let z=Z.string();if(z!==void 0)K.suggestedPrompts.push(z);continue}case 2:{if(J!==16)break;K.selectedPromptIndex=Z.uint32();continue}case 3:{if(J!==26)break;K.promptSuggestions=ZZ.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.selectedPromptId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return DZ.fromPartial($??{})},fromPartial($){let Q=TV();return Q.suggestedPrompts=$.suggestedPrompts?.map((Z)=>Z)||void 0,Q.selectedPromptIndex=$.selectedPromptIndex??void 0,Q.promptSuggestions=$.promptSuggestions!==void 0&&$.promptSuggestions!==null?ZZ.fromPartial($.promptSuggestions):void 0,Q.selectedPromptId=$.selectedPromptId??void 0,Q}};function yV(){return{}}var LZ={encode($,Q=new V){if($.sbsMetadata!==void 0)PZ.encode($.sbsMetadata,Q.uint32(10).fork()).join();if($.mediaDetailsMetadataList!==void 0&&$.mediaDetailsMetadataList.length!==0)for(let Z of $.mediaDetailsMetadataList)FZ.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=yV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sbsMetadata=PZ.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;if(K.mediaDetailsMetadataList===void 0)K.mediaDetailsMetadataList=[];let z=FZ.decode(Z,Z.uint32());if(z!==void 0)K.mediaDetailsMetadataList.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return LZ.fromPartial($??{})},fromPartial($){let Q=yV();return Q.sbsMetadata=$.sbsMetadata!==void 0&&$.sbsMetadata!==null?PZ.fromPartial($.sbsMetadata):void 0,Q.mediaDetailsMetadataList=$.mediaDetailsMetadataList?.map((Z)=>FZ.fromPartial(Z))||void 0,Q}};function fV(){return{}}var FZ={encode($,Q=new V){if($.id!==void 0)Q.uint32(10).string($.id);if($.highResMedia!==void 0)V0.encode($.highResMedia,Q.uint32(18).fork()).join();if($.previewMedia!==void 0)V0.encode($.previewMedia,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=fV();while(Z.pos<q){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=V0.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.previewMedia=V0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return FZ.fromPartial($??{})},fromPartial($){let Q=fV();return Q.id=$.id??void 0,Q.highResMedia=$.highResMedia!==void 0&&$.highResMedia!==null?V0.fromPartial($.highResMedia):void 0,Q.previewMedia=$.previewMedia!==void 0&&$.previewMedia!==null?V0.fromPartial($.previewMedia):void 0,Q}};function _V(){return{}}var PZ={encode($,Q=new V){if($.primaryResponseId!==void 0)Q.uint32(10).string($.primaryResponseId);if($.surveyCtaHasRendered!==void 0)Q.uint32(16).bool($.surveyCtaHasRendered);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_V();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return PZ.fromPartial($??{})},fromPartial($){let Q=_V();return Q.primaryResponseId=$.primaryResponseId??void 0,Q.surveyCtaHasRendered=$.surveyCtaHasRendered??void 0,Q}};function hV(){return{}}var a0={encode($,Q=new V){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 Z of $.participants)kZ.encode(Z,Q.uint32(114).fork()).join();if($.callType!==void 0)Q.uint32(120).int32($.callType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=hV();while(Z.pos<q){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.int64Number();continue}case 5:{if(J!==40)break;K.startTime=Z.int64Number();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 z=kZ.decode(Z,Z.uint32());if(z!==void 0)K.participants.push(z);continue}case 15:{if(J!==120)break;K.callType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return a0.fromPartial($??{})},fromPartial($){let Q=hV();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((Z)=>kZ.fromPartial(Z))||void 0,Q.callType=$.callType??void 0,Q}};function lV(){return{}}var kZ={encode($,Q=new V){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.callResult!==void 0)Q.uint32(16).int32($.callResult);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=lV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return kZ.fromPartial($??{})},fromPartial($){let Q=lV();return Q.userJid=$.userJid??void 0,Q.callResult=$.callResult??void 0,Q}};function uV(){return{}}var n6={encode($,Q=new V){if($.leaf!==void 0)M0.encode($.leaf,Q.uint32(10).fork()).join();if($.intermediate!==void 0)M0.encode($.intermediate,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=uV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.leaf=M0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.intermediate=M0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return n6.fromPartial($??{})},fromPartial($){let Q=uV();return Q.leaf=$.leaf!==void 0&&$.leaf!==null?M0.fromPartial($.leaf):void 0,Q.intermediate=$.intermediate!==void 0&&$.intermediate!==null?M0.fromPartial($.intermediate):void 0,Q}};function pV(){return{}}var M0={encode($,Q=new V){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=pV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return M0.fromPartial($??{})},fromPartial($){let Q=pV();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q}};function wV(){return{}}var d6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=wV();while(Z.pos<q){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.uint64Number();continue}case 5:{if(J!==40)break;K.notAfter=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return d6.fromPartial($??{})},fromPartial($){let Q=wV();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 nV(){return{}}var s0={encode($,Q=new V){if($.hideLockedChats!==void 0)Q.uint32(8).bool($.hideLockedChats);if($.secretCode!==void 0)R6.encode($.secretCode,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=nV();while(Z.pos<q){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=R6.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return s0.fromPartial($??{})},fromPartial($){let Q=nV();return Q.hideLockedChats=$.hideLockedChats??void 0,Q.secretCode=$.secretCode!==void 0&&$.secretCode!==null?R6.fromPartial($.secretCode):void 0,Q}};function dV(){return{}}var ON={encode($,Q=new V){if($.draftMessage!==void 0)NZ.encode($.draftMessage,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=dV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.draftMessage=NZ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return ON.fromPartial($??{})},fromPartial($){let Q=dV();return Q.draftMessage=$.draftMessage!==void 0&&$.draftMessage!==null?NZ.fromPartial($.draftMessage):void 0,Q}};function jV(){return{}}var NZ={encode($,Q=new V){if($.text!==void 0)Q.uint32(10).string($.text);if($.omittedUrl!==void 0)Q.uint32(18).string($.omittedUrl);if($.ctwaContextLinkData!==void 0)RZ.encode($.ctwaContextLinkData,Q.uint32(26).fork()).join();if($.ctwaContext!==void 0)BZ.encode($.ctwaContext,Q.uint32(34).fork()).join();if($.timestamp!==void 0)Q.uint32(40).int64($.timestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=jV();while(Z.pos<q){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=RZ.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.ctwaContext=BZ.decode(Z,Z.uint32());continue}case 5:{if(J!==40)break;K.timestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return NZ.fromPartial($??{})},fromPartial($){let Q=jV();return Q.text=$.text??void 0,Q.omittedUrl=$.omittedUrl??void 0,Q.ctwaContextLinkData=$.ctwaContextLinkData!==void 0&&$.ctwaContextLinkData!==null?RZ.fromPartial($.ctwaContextLinkData):void 0,Q.ctwaContext=$.ctwaContext!==void 0&&$.ctwaContext!==null?BZ.fromPartial($.ctwaContext):void 0,Q.timestamp=$.timestamp??void 0,Q}};function cV(){return{}}var BZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=cV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return BZ.fromPartial($??{})},fromPartial($){let Q=cV();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 oV(){return{}}var RZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=oV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return RZ.fromPartial($??{})},fromPartial($){let Q=oV();return Q.context=$.context??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.icebreaker=$.icebreaker??void 0,Q.phone=$.phone??void 0,Q}};function bV(){return{}}var OZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=bV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return OZ.fromPartial($??{})},fromPartial($){let Q=bV();return Q.title=$.title??void 0,Q.subtitle=$.subtitle??void 0,Q.cmsId=$.cmsId??void 0,Q.imageUrl=$.imageUrl??void 0,Q}};function iV(){return{}}var AN={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=iV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return AN.fromPartial($??{})},fromPartial($){let Q=iV();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 mV(){return{}}var j6={encode($,Q=new V){if($.username!==void 0)Q.uint32(8).uint64($.username);if($.passive!==void 0)Q.uint32(24).bool($.passive);if($.userAgent!==void 0)WZ.encode($.userAgent,Q.uint32(42).fork()).join();if($.webInfo!==void 0)SZ.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 Z of $.shards)Q.uint32(112).int32(Z);if($.dnsSource!==void 0)AZ.encode($.dnsSource,Q.uint32(122).fork()).join();if($.connectAttemptCount!==void 0)Q.uint32(128).uint32($.connectAttemptCount);if($.device!==void 0)Q.uint32(144).uint32($.device);if($.devicePairingData!==void 0)EZ.encode($.devicePairingData,Q.uint32(154).fork()).join();if($.product!==void 0)Q.uint32(160).int32($.product);if($.fbCat!==void 0)Q.uint32(170).bytes($.fbCat);if($.fbUserAgent!==void 0)Q.uint32(178).bytes($.fbUserAgent);if($.oc!==void 0)Q.uint32(184).bool($.oc);if($.lc!==void 0)Q.uint32(192).int32($.lc);if($.iosAppExtension!==void 0)Q.uint32(240).int32($.iosAppExtension);if($.fbAppId!==void 0)Q.uint32(248).uint64($.fbAppId);if($.fbDeviceId!==void 0)Q.uint32(258).bytes($.fbDeviceId);if($.pull!==void 0)Q.uint32(264).bool($.pull);if($.paddingBytes!==void 0)Q.uint32(274).bytes($.paddingBytes);if($.yearClass!==void 0)Q.uint32(288).int32($.yearClass);if($.memClass!==void 0)Q.uint32(296).int32($.memClass);if($.interopData!==void 0)MZ.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 Z of $.pairedPeripherals)Q.uint32(378).string(Z);if($.testIsolationId!==void 0)Q.uint32(386).bytes($.testIsolationId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=mV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.username=Z.uint64Number();continue}case 3:{if(J!==24)break;K.passive=Z.bool();continue}case 5:{if(J!==42)break;K.userAgent=WZ.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.webInfo=SZ.decode(Z,Z.uint32());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 z=Z.uint32()+Z.pos;while(Z.pos<z)K.shards.push(Z.int32());continue}break}case 15:{if(J!==122)break;K.dnsSource=AZ.decode(Z,Z.uint32());continue}case 16:{if(J!==128)break;K.connectAttemptCount=Z.uint32();continue}case 18:{if(J!==144)break;K.device=Z.uint32();continue}case 19:{if(J!==154)break;K.devicePairingData=EZ.decode(Z,Z.uint32());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.uint64Number();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=MZ.decode(Z,Z.uint32());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 z=Z.string();if(z!==void 0)K.pairedPeripherals.push(z);continue}case 48:{if(J!==386)break;K.testIsolationId=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return j6.fromPartial($??{})},fromPartial($){let Q=mV();return Q.username=$.username??void 0,Q.passive=$.passive??void 0,Q.userAgent=$.userAgent!==void 0&&$.userAgent!==null?WZ.fromPartial($.userAgent):void 0,Q.webInfo=$.webInfo!==void 0&&$.webInfo!==null?SZ.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((Z)=>Z)||void 0,Q.dnsSource=$.dnsSource!==void 0&&$.dnsSource!==null?AZ.fromPartial($.dnsSource):void 0,Q.connectAttemptCount=$.connectAttemptCount??void 0,Q.device=$.device??void 0,Q.devicePairingData=$.devicePairingData!==void 0&&$.devicePairingData!==null?EZ.fromPartial($.devicePairingData):void 0,Q.product=$.product??void 0,Q.fbCat=$.fbCat??void 0,Q.fbUserAgent=$.fbUserAgent??void 0,Q.oc=$.oc??void 0,Q.lc=$.lc??void 0,Q.iosAppExtension=$.iosAppExtension??void 0,Q.fbAppId=$.fbAppId??void 0,Q.fbDeviceId=$.fbDeviceId??void 0,Q.pull=$.pull??void 0,Q.paddingBytes=$.paddingBytes??void 0,Q.yearClass=$.yearClass??void 0,Q.memClass=$.memClass??void 0,Q.interopData=$.interopData!==void 0&&$.interopData!==null?MZ.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((Z)=>Z)||void 0,Q.testIsolationId=$.testIsolationId??void 0,Q}};function gV(){return{}}var AZ={encode($,Q=new V){if($.dnsMethod!==void 0)Q.uint32(120).int32($.dnsMethod);if($.appCached!==void 0)Q.uint32(128).bool($.appCached);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=gV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return AZ.fromPartial($??{})},fromPartial($){let Q=gV();return Q.dnsMethod=$.dnsMethod??void 0,Q.appCached=$.appCached??void 0,Q}};function tV(){return{}}var EZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=tV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return EZ.fromPartial($??{})},fromPartial($){let Q=tV();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 rV(){return{}}var MZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=rV();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.accountId=Z.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return MZ.fromPartial($??{})},fromPartial($){let Q=rV();return Q.accountId=$.accountId??void 0,Q.token=$.token??void 0,Q.enableReadReceipts=$.enableReadReceipts??void 0,Q}};function aV(){return{}}var WZ={encode($,Q=new V){if($.platform!==void 0)Q.uint32(8).int32($.platform);if($.appVersion!==void 0)IZ.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=aV();while(Z.pos<q){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=IZ.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return WZ.fromPartial($??{})},fromPartial($){let Q=aV();return Q.platform=$.platform??void 0,Q.appVersion=$.appVersion!==void 0&&$.appVersion!==null?IZ.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 sV(){return{}}var IZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=sV();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return IZ.fromPartial($??{})},fromPartial($){let Q=sV();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 eV(){return{}}var SZ={encode($,Q=new V){if($.refToken!==void 0)Q.uint32(10).string($.refToken);if($.version!==void 0)Q.uint32(18).string($.version);if($.webdPayload!==void 0)vZ.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=eV();while(Z.pos<q){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=vZ.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return SZ.fromPartial($??{})},fromPartial($){let Q=eV();return Q.refToken=$.refToken??void 0,Q.version=$.version??void 0,Q.webdPayload=$.webdPayload!==void 0&&$.webdPayload!==null?vZ.fromPartial($.webdPayload):void 0,Q.webSubPlatform=$.webSubPlatform??void 0,Q.browser=$.browser??void 0,Q.browserVersion=$.browserVersion??void 0,Q}};function $H(){return{}}var vZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$H();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return vZ.fromPartial($??{})},fromPartial($){let Q=$H();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 QH(){return{}}var EN={encode($,Q=new V){if($.version!==void 0)Q.uint32(8).uint32($.version);if($.localFingerprint!==void 0)w0.encode($.localFingerprint,Q.uint32(18).fork()).join();if($.remoteFingerprint!==void 0)w0.encode($.remoteFingerprint,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=QH();while(Z.pos<q){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=w0.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.remoteFingerprint=w0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return EN.fromPartial($??{})},fromPartial($){let Q=QH();return Q.version=$.version??void 0,Q.localFingerprint=$.localFingerprint!==void 0&&$.localFingerprint!==null?w0.fromPartial($.localFingerprint):void 0,Q.remoteFingerprint=$.remoteFingerprint!==void 0&&$.remoteFingerprint!==null?w0.fromPartial($.remoteFingerprint):void 0,Q}};function ZH(){return{}}var TZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ZH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return TZ.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 yZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=JH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.commentParentKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.replyCount=Z.uint32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return yZ.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 fZ={encode($,Q=new V){if($.hash!==void 0)Q.uint32(10).bytes($.hash);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=KH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.hash=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return fZ.fromPartial($??{})},fromPartial($){let Q=KH();return Q.hash=$.hash??void 0,Q}};function qH(){return{}}var MN={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=qH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return MN.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 WN={encode($,Q=new V){if(globalThis.Object.entries($.field||{}).forEach(([Z,q])=>{f6.encode({key:Z,value:q},Q.uint32(10).fork()).join()}),$.version!==void 0)Q.uint32(16).uint32($.version);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=XH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;let z=f6.decode(Z,Z.uint32());if(z.value!==void 0&&z.key!==void 0){if(K.field===void 0)K.field={};K.field[z.key]=z.value}continue}case 2:{if(J!==16)break;K.version=Z.uint32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return WN.fromPartial($??{})},fromPartial($){let Q=XH();return Q.field=$.field===void 0||$.field===null?void 0:globalThis.Object.entries($.field??{}).reduce((Z,[q,K])=>{if(K!==void 0)Z[globalThis.Number(q)]=W0.fromPartial(K);return Z},{}),Q.version=$.version??void 0,Q}};function zH(){return{}}var f6={encode($,Q=new V){if($.key!==void 0)Q.uint32(8).uint32($.key);if($.value!==void 0)W0.encode($.value,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=zH();while(Z.pos<q){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=W0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return f6.fromPartial($??{})},fromPartial($){let Q=zH();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?W0.fromPartial($.value):void 0,Q}};function YH(){return{}}var IN={encode($,Q=new V){if($.payload!==void 0)oZ.encode($.payload,Q.uint32(10).fork()).join();if($.metadata!==void 0)cZ.encode($.metadata,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=YH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.payload=oZ.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.metadata=cZ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return IN.fromPartial($??{})},fromPartial($){let Q=YH();return Q.payload=$.payload!==void 0&&$.payload!==null?oZ.fromPartial($.payload):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?cZ.fromPartial($.metadata):void 0,Q}};function VH(){return{}}var _Z={encode($,Q=new V){if($.revoke!==void 0)tZ.encode($.revoke,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=VH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.revoke=tZ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _Z.fromPartial($??{})},fromPartial($){let Q=VH();return Q.revoke=$.revoke!==void 0&&$.revoke!==null?tZ.fromPartial($.revoke):void 0,Q}};function HH(){return{}}var hZ={encode($,Q=new V){if($.audio!==void 0)o.encode($.audio,Q.uint32(10).fork()).join();if($.ptt!==void 0)Q.uint32(16).bool($.ptt);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=HH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.audio=o.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.ptt=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return hZ.fromPartial($??{})},fromPartial($){let Q=HH();return Q.audio=$.audio!==void 0&&$.audio!==null?o.fromPartial($.audio):void 0,Q.ptt=$.ptt??void 0,Q}};function GH(){return{}}var e0={encode($,Q=new V){if($.contact!==void 0)o.encode($.contact,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=GH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contact=o.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return e0.fromPartial($??{})},fromPartial($){let Q=GH();return Q.contact=$.contact!==void 0&&$.contact!==null?o.fromPartial($.contact):void 0,Q}};function UH(){return{}}var lZ={encode($,Q=new V){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let Z of $.contacts)e0.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=UH();while(Z.pos<q){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 z=e0.decode(Z,Z.uint32());if(z!==void 0)K.contacts.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return lZ.fromPartial($??{})},fromPartial($){let Q=UH();return Q.displayName=$.displayName??void 0,Q.contacts=$.contacts?.map((Z)=>e0.fromPartial(Z))||void 0,Q}};function CH(){return{}}var uZ={encode($,Q=new V){if($.messageText!==void 0)m.encode($.messageText,Q.uint32(10).fork()).join();if($.imageMessage!==void 0)Q$.encode($.imageMessage,Q.uint32(18).fork()).join();if($.contactMessage!==void 0)e0.encode($.contactMessage,Q.uint32(26).fork()).join();if($.locationMessage!==void 0)jZ.encode($.locationMessage,Q.uint32(34).fork()).join();if($.extendedTextMessage!==void 0)$$.encode($.extendedTextMessage,Q.uint32(42).fork()).join();if($.statusTextMessage!==void 0)aZ.encode($.statusTextMessage,Q.uint32(50).fork()).join();if($.documentMessage!==void 0)pZ.encode($.documentMessage,Q.uint32(58).fork()).join();if($.audioMessage!==void 0)hZ.encode($.audioMessage,Q.uint32(66).fork()).join();if($.videoMessage!==void 0)J$.encode($.videoMessage,Q.uint32(74).fork()).join();if($.contactsArrayMessage!==void 0)lZ.encode($.contactsArrayMessage,Q.uint32(82).fork()).join();if($.liveLocationMessage!==void 0)dZ.encode($.liveLocationMessage,Q.uint32(90).fork()).join();if($.stickerMessage!==void 0)sZ.encode($.stickerMessage,Q.uint32(98).fork()).join();if($.groupInviteMessage!==void 0)nZ.encode($.groupInviteMessage,Q.uint32(106).fork()).join();if($.viewOnceMessage!==void 0)$J.encode($.viewOnceMessage,Q.uint32(114).fork()).join();if($.reactionMessage!==void 0)gZ.encode($.reactionMessage,Q.uint32(130).fork()).join();if($.pollCreationMessage!==void 0)iZ.encode($.pollCreationMessage,Q.uint32(138).fork()).join();if($.pollUpdateMessage!==void 0)mZ.encode($.pollUpdateMessage,Q.uint32(146).fork()).join();if($.editMessage!==void 0)wZ.encode($.editMessage,Q.uint32(154).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=CH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageText=m.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.imageMessage=Q$.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.contactMessage=e0.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.locationMessage=jZ.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.extendedTextMessage=$$.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.statusTextMessage=aZ.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.documentMessage=pZ.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.audioMessage=hZ.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.videoMessage=J$.decode(Z,Z.uint32());continue}case 10:{if(J!==82)break;K.contactsArrayMessage=lZ.decode(Z,Z.uint32());continue}case 11:{if(J!==90)break;K.liveLocationMessage=dZ.decode(Z,Z.uint32());continue}case 12:{if(J!==98)break;K.stickerMessage=sZ.decode(Z,Z.uint32());continue}case 13:{if(J!==106)break;K.groupInviteMessage=nZ.decode(Z,Z.uint32());continue}case 14:{if(J!==114)break;K.viewOnceMessage=$J.decode(Z,Z.uint32());continue}case 16:{if(J!==130)break;K.reactionMessage=gZ.decode(Z,Z.uint32());continue}case 17:{if(J!==138)break;K.pollCreationMessage=iZ.decode(Z,Z.uint32());continue}case 18:{if(J!==146)break;K.pollUpdateMessage=mZ.decode(Z,Z.uint32());continue}case 19:{if(J!==154)break;K.editMessage=wZ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return uZ.fromPartial($??{})},fromPartial($){let Q=CH();return Q.messageText=$.messageText!==void 0&&$.messageText!==null?m.fromPartial($.messageText):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?Q$.fromPartial($.imageMessage):void 0,Q.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?e0.fromPartial($.contactMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?jZ.fromPartial($.locationMessage):void 0,Q.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?$$.fromPartial($.extendedTextMessage):void 0,Q.statusTextMessage=$.statusTextMessage!==void 0&&$.statusTextMessage!==null?aZ.fromPartial($.statusTextMessage):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?pZ.fromPartial($.documentMessage):void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?hZ.fromPartial($.audioMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?J$.fromPartial($.videoMessage):void 0,Q.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?lZ.fromPartial($.contactsArrayMessage):void 0,Q.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?dZ.fromPartial($.liveLocationMessage):void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?sZ.fromPartial($.stickerMessage):void 0,Q.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?nZ.fromPartial($.groupInviteMessage):void 0,Q.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?$J.fromPartial($.viewOnceMessage):void 0,Q.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?gZ.fromPartial($.reactionMessage):void 0,Q.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?iZ.fromPartial($.pollCreationMessage):void 0,Q.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?mZ.fromPartial($.pollUpdateMessage):void 0,Q.editMessage=$.editMessage!==void 0&&$.editMessage!==null?wZ.fromPartial($.editMessage):void 0,Q}};function xH(){return{}}var pZ={encode($,Q=new V){if($.document!==void 0)o.encode($.document,Q.uint32(10).fork()).join();if($.fileName!==void 0)Q.uint32(18).string($.fileName);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=xH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.document=o.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.fileName=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return pZ.fromPartial($??{})},fromPartial($){let Q=xH();return Q.document=$.document!==void 0&&$.document!==null?o.fromPartial($.document):void 0,Q.fileName=$.fileName??void 0,Q}};function DH(){return{}}var wZ={encode($,Q=new V){if($.key!==void 0)k.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)m.encode($.message,Q.uint32(18).fork()).join();if($.timestampMs!==void 0)Q.uint32(24).int64($.timestampMs);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=DH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.message=m.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.timestampMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return wZ.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?m.fromPartial($.message):void 0,Q.timestampMs=$.timestampMs??void 0,Q}};function LH(){return{}}var $$={encode($,Q=new V){if($.text!==void 0)m.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)o.encode($.thumbnail,Q.uint32(50).fork()).join();if($.previewType!==void 0)Q.uint32(56).int32($.previewType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=LH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=m.decode(Z,Z.uint32());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=o.decode(Z,Z.uint32());continue}case 7:{if(J!==56)break;K.previewType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $$.fromPartial($??{})},fromPartial($){let Q=LH();return Q.text=$.text!==void 0&&$.text!==null?m.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?o.fromPartial($.thumbnail):void 0,Q.previewType=$.previewType??void 0,Q}};function FH(){return{}}var nZ={encode($,Q=new V){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)m.encode($.caption,Q.uint32(50).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=FH();while(Z.pos<q){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.int64Number();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=m.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return nZ.fromPartial($??{})},fromPartial($){let Q=FH();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?m.fromPartial($.caption):void 0,Q}};function PH(){return{}}var Q$={encode($,Q=new V){if($.image!==void 0)o.encode($.image,Q.uint32(10).fork()).join();if($.caption!==void 0)m.encode($.caption,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=PH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.image=o.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.caption=m.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Q$.fromPartial($??{})},fromPartial($){let Q=PH();return Q.image=$.image!==void 0&&$.image!==null?o.fromPartial($.image):void 0,Q.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,Q}};function kH(){return{}}var SN={encode($,Q=new V){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let Z of $.polygonVertices)bZ.encode(Z,Q.uint32(10).fork()).join();if($.location!==void 0)C0.encode($.location,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=kH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.polygonVertices===void 0)K.polygonVertices=[];let z=bZ.decode(Z,Z.uint32());if(z!==void 0)K.polygonVertices.push(z);continue}case 2:{if(J!==18)break;K.location=C0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return SN.fromPartial($??{})},fromPartial($){let Q=kH();return Q.polygonVertices=$.polygonVertices?.map((Z)=>bZ.fromPartial(Z))||void 0,Q.location=$.location!==void 0&&$.location!==null?C0.fromPartial($.location):void 0,Q}};function NH(){return{}}var dZ={encode($,Q=new V){if($.location!==void 0)C0.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)m.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=NH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.location=C0.decode(Z,Z.uint32());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=m.decode(Z,Z.uint32());continue}case 6:{if(J!==48)break;K.sequenceNumber=Z.int64Number();continue}case 7:{if(J!==56)break;K.timeOffset=Z.uint32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return dZ.fromPartial($??{})},fromPartial($){let Q=NH();return Q.location=$.location!==void 0&&$.location!==null?C0.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?m.fromPartial($.caption):void 0,Q.sequenceNumber=$.sequenceNumber??void 0,Q.timeOffset=$.timeOffset??void 0,Q}};function BH(){return{}}var C0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=BH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return C0.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 jZ={encode($,Q=new V){if($.location!==void 0)C0.encode($.location,Q.uint32(10).fork()).join();if($.address!==void 0)Q.uint32(18).string($.address);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=RH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.location=C0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.address=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return jZ.fromPartial($??{})},fromPartial($){let Q=RH();return Q.location=$.location!==void 0&&$.location!==null?C0.fromPartial($.location):void 0,Q.address=$.address??void 0,Q}};function OH(){return{}}var vN={encode($,Q=new V){if($.protocol!==void 0)o.encode($.protocol,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=OH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.protocol=o.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return vN.fromPartial($??{})},fromPartial($){let Q=OH();return Q.protocol=$.protocol!==void 0&&$.protocol!==null?o.fromPartial($.protocol):void 0,Q}};function AH(){return{}}var cZ={encode($,Q=new V){if($.specialTextSize!==void 0)Q.uint32(8).int32($.specialTextSize);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=AH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.specialTextSize=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return cZ.fromPartial($??{})},fromPartial($){let Q=AH();return Q.specialTextSize=$.specialTextSize??void 0,Q}};function EH(){return{}}var Z$={encode($,Q=new V){if($.optionName!==void 0)Q.uint32(10).string($.optionName);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=EH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.optionName=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Z$.fromPartial($??{})},fromPartial($){let Q=EH();return Q.optionName=$.optionName??void 0,Q}};function MH(){return{}}var oZ={encode($,Q=new V){if($.content!==void 0)uZ.encode($.content,Q.uint32(10).fork()).join();if($.applicationData!==void 0)_Z.encode($.applicationData,Q.uint32(18).fork()).join();if($.signal!==void 0)rZ.encode($.signal,Q.uint32(26).fork()).join();if($.subProtocol!==void 0)eZ.encode($.subProtocol,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=MH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.content=uZ.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.applicationData=_Z.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.signal=rZ.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.subProtocol=eZ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return oZ.fromPartial($??{})},fromPartial($){let Q=MH();return Q.content=$.content!==void 0&&$.content!==null?uZ.fromPartial($.content):void 0,Q.applicationData=$.applicationData!==void 0&&$.applicationData!==null?_Z.fromPartial($.applicationData):void 0,Q.signal=$.signal!==void 0&&$.signal!==null?rZ.fromPartial($.signal):void 0,Q.subProtocol=$.subProtocol!==void 0&&$.subProtocol!==null?eZ.fromPartial($.subProtocol):void 0,Q}};function WH(){return{}}var bZ={encode($,Q=new V){if($.x!==void 0)Q.uint32(9).double($.x);if($.y!==void 0)Q.uint32(17).double($.y);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=WH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return bZ.fromPartial($??{})},fromPartial($){let Q=WH();return Q.x=$.x??void 0,Q.y=$.y??void 0,Q}};function IH(){return{}}var TN={encode($,Q=new V){if($.pollOption!==void 0&&$.pollOption.length!==0)for(let Z of $.pollOption)Z$.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=IH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.pollOption===void 0)K.pollOption=[];let z=Z$.decode(Z,Z.uint32());if(z!==void 0)K.pollOption.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return TN.fromPartial($??{})},fromPartial($){let Q=IH();return Q.pollOption=$.pollOption?.map((Z)=>Z$.fromPartial(Z))||void 0,Q}};function SH(){return{}}var iZ={encode($,Q=new V){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 Z of $.options)Z$.encode(Z,Q.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)Q.uint32(32).uint32($.selectableOptionsCount);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=SH();while(Z.pos<q){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 z=Z$.decode(Z,Z.uint32());if(z!==void 0)K.options.push(z);continue}case 4:{if(J!==32)break;K.selectableOptionsCount=Z.uint32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return iZ.fromPartial($??{})},fromPartial($){let Q=SH();return Q.encKey=$.encKey??void 0,Q.name=$.name??void 0,Q.options=$.options?.map((Z)=>Z$.fromPartial(Z))||void 0,Q.selectableOptionsCount=$.selectableOptionsCount??void 0,Q}};function vH(){return{}}var p0={encode($,Q=new V){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=vH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return p0.fromPartial($??{})},fromPartial($){let Q=vH();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function TH(){return{}}var mZ={encode($,Q=new V){if($.pollCreationMessageKey!==void 0)k.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)p0.encode($.vote,Q.uint32(18).fork()).join();if($.addOption!==void 0)p0.encode($.addOption,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=TH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollCreationMessageKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.vote=p0.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.addOption=p0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return mZ.fromPartial($??{})},fromPartial($){let Q=TH();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?k.fromPartial($.pollCreationMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?p0.fromPartial($.vote):void 0,Q.addOption=$.addOption!==void 0&&$.addOption!==null?p0.fromPartial($.addOption):void 0,Q}};function yH(){return{}}var yN={encode($,Q=new V){if($.selectedOptions!==void 0&&$.selectedOptions.length!==0)for(let Z of $.selectedOptions)Q.uint32(10).bytes(Z);if($.senderTimestampMs!==void 0)Q.uint32(16).int64($.senderTimestampMs);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=yH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.selectedOptions===void 0)K.selectedOptions=[];let z=Z.bytes();if(z!==void 0)K.selectedOptions.push(z);continue}case 2:{if(J!==16)break;K.senderTimestampMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return yN.fromPartial($??{})},fromPartial($){let Q=yH();return Q.selectedOptions=$.selectedOptions?.map((Z)=>Z)||void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function fH(){return{}}var gZ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=fH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());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.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return gZ.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 tZ={encode($,Q=new V){if($.key!==void 0)k.encode($.key,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_H();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return tZ.fromPartial($??{})},fromPartial($){let Q=_H();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q}};function hH(){return{}}var rZ={encode($,Q=new V){return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=hH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return rZ.fromPartial($??{})},fromPartial($){return hH()}};function lH(){return{}}var aZ={encode($,Q=new V){if($.text!==void 0)$$.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=lH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=$$.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return aZ.fromPartial($??{})},fromPartial($){let Q=lH();return Q.text=$.text!==void 0&&$.text!==null?$$.fromPartial($.text):void 0,Q.textArgb=$.textArgb??void 0,Q.backgroundArgb=$.backgroundArgb??void 0,Q.font=$.font??void 0,Q}};function uH(){return{}}var sZ={encode($,Q=new V){if($.sticker!==void 0)o.encode($.sticker,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=uH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.sticker=o.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return sZ.fromPartial($??{})},fromPartial($){let Q=uH();return Q.sticker=$.sticker!==void 0&&$.sticker!==null?o.fromPartial($.sticker):void 0,Q}};function pH(){return{}}var eZ={encode($,Q=new V){if($.futureProof!==void 0)Q.uint32(8).int32($.futureProof);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=pH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.futureProof=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return eZ.fromPartial($??{})},fromPartial($){let Q=pH();return Q.futureProof=$.futureProof??void 0,Q}};function wH(){return{}}var J$={encode($,Q=new V){if($.video!==void 0)o.encode($.video,Q.uint32(10).fork()).join();if($.caption!==void 0)m.encode($.caption,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=wH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.video=o.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.caption=m.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return J$.fromPartial($??{})},fromPartial($){let Q=wH();return Q.video=$.video!==void 0&&$.video!==null?o.fromPartial($.video):void 0,Q.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,Q}};function nH(){return{}}var $J={encode($,Q=new V){if($.imageMessage!==void 0)Q$.encode($.imageMessage,Q.uint32(10).fork()).join();if($.videoMessage!==void 0)J$.encode($.videoMessage,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=nH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.imageMessage=Q$.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.videoMessage=J$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $J.fromPartial($??{})},fromPartial($){let Q=nH();return Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?Q$.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?J$.fromPartial($.videoMessage):void 0,Q}};function dH(){return{}}var A={encode($,Q=new V){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.participant!==void 0)Q.uint32(18).string($.participant);if($.quotedMessage!==void 0)w.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 Z of $.mentionedJid)Q.uint32(122).string(Z);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)QJ.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)qJ.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)x0.encode($.disappearingMode,Q.uint32(258).fork()).join();if($.actionLink!==void 0)LQ.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 Z of $.groupMentions)fJ.encode(Z,Q.uint32(322).fork()).join();if($.utm!==void 0)HJ.encode($.utm,Q.uint32(330).fork()).join();if($.forwardedNewsletterMessageInfo!==void 0)q$.encode($.forwardedNewsletterMessageInfo,Q.uint32(346).fork()).join();if($.businessMessageForwardInfo!==void 0)JJ.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)KJ.encode($.dataSharingContext,Q.uint32(378).fork()).join();if($.alwaysShowAdAttribution!==void 0)Q.uint32(384).bool($.alwaysShowAdAttribution);if($.featureEligibilities!==void 0)XJ.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)SJ.encode($.forwardedAiBotMessageInfo,Q.uint32(450).fork()).join();if($.statusAttributionType!==void 0)Q.uint32(456).int32($.statusAttributionType);if($.urlTrackingMap!==void 0)O$.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)F0.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 Z of $.statusAttributions)RX.encode(Z,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)YJ.encode($.questionReplyQuotedMessage,Q.uint32(546).fork()).join();if($.statusAudienceMetadata!==void 0)VJ.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)cQ.encode($.botMessageSharingInfo,Q.uint32(578).fork()).join();if($.isSpoiler!==void 0)Q.uint32(584).bool($.isSpoiler);if($.mediaDomainInfo!==void 0)K8.encode($.mediaDomainInfo,Q.uint32(594).fork()).join();if($.partiallySelectedContent!==void 0)zJ.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)ZJ.encode($.businessInteractionPills,Q.uint32(626).fork()).join();if($.posterStatusId!==void 0)Q.uint32(634).string($.posterStatusId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=dH();while(Z.pos<q){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=w.decode(Z,Z.uint32());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 z=Z.string();if(z!==void 0)K.mentionedJid.push(z);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=QJ.decode(Z,Z.uint32());continue}case 24:{if(J!==194)break;K.placeholderKey=k.decode(Z,Z.uint32());continue}case 25:{if(J!==200)break;K.expiration=Z.uint32();continue}case 26:{if(J!==208)break;K.ephemeralSettingTimestamp=Z.int64Number();continue}case 27:{if(J!==218)break;K.ephemeralSharedSecret=Z.bytes();continue}case 28:{if(J!==226)break;K.externalAdReply=qJ.decode(Z,Z.uint32());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=x0.decode(Z,Z.uint32());continue}case 33:{if(J!==266)break;K.actionLink=LQ.decode(Z,Z.uint32());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 z=fJ.decode(Z,Z.uint32());if(z!==void 0)K.groupMentions.push(z);continue}case 41:{if(J!==330)break;K.utm=HJ.decode(Z,Z.uint32());continue}case 43:{if(J!==346)break;K.forwardedNewsletterMessageInfo=q$.decode(Z,Z.uint32());continue}case 44:{if(J!==354)break;K.businessMessageForwardInfo=JJ.decode(Z,Z.uint32());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=KJ.decode(Z,Z.uint32());continue}case 48:{if(J!==384)break;K.alwaysShowAdAttribution=Z.bool();continue}case 49:{if(J!==394)break;K.featureEligibilities=XJ.decode(Z,Z.uint32());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=SJ.decode(Z,Z.uint32());continue}case 57:{if(J!==456)break;K.statusAttributionType=Z.int32();continue}case 58:{if(J!==466)break;K.urlTrackingMap=O$.decode(Z,Z.uint32());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=F0.decode(Z,Z.uint32());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 z=RX.decode(Z,Z.uint32());if(z!==void 0)K.statusAttributions.push(z);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=YJ.decode(Z,Z.uint32());continue}case 69:{if(J!==554)break;K.statusAudienceMetadata=VJ.decode(Z,Z.uint32());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=cQ.decode(Z,Z.uint32());continue}case 73:{if(J!==584)break;K.isSpoiler=Z.bool();continue}case 74:{if(J!==594)break;K.mediaDomainInfo=K8.decode(Z,Z.uint32());continue}case 75:{if(J!==602)break;K.partiallySelectedContent=zJ.decode(Z,Z.uint32());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=ZJ.decode(Z,Z.uint32());continue}case 79:{if(J!==634)break;K.posterStatusId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return A.fromPartial($??{})},fromPartial($){let Q=dH();return Q.stanzaId=$.stanzaId??void 0,Q.participant=$.participant??void 0,Q.quotedMessage=$.quotedMessage!==void 0&&$.quotedMessage!==null?w.fromPartial($.quotedMessage):void 0,Q.remoteJid=$.remoteJid??void 0,Q.mentionedJid=$.mentionedJid?.map((Z)=>Z)||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?QJ.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?qJ.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?x0.fromPartial($.disappearingMode):void 0,Q.actionLink=$.actionLink!==void 0&&$.actionLink!==null?LQ.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((Z)=>fJ.fromPartial(Z))||void 0,Q.utm=$.utm!==void 0&&$.utm!==null?HJ.fromPartial($.utm):void 0,Q.forwardedNewsletterMessageInfo=$.forwardedNewsletterMessageInfo!==void 0&&$.forwardedNewsletterMessageInfo!==null?q$.fromPartial($.forwardedNewsletterMessageInfo):void 0,Q.businessMessageForwardInfo=$.businessMessageForwardInfo!==void 0&&$.businessMessageForwardInfo!==null?JJ.fromPartial($.businessMessageForwardInfo):void 0,Q.smbClientCampaignId=$.smbClientCampaignId??void 0,Q.smbServerCampaignId=$.smbServerCampaignId??void 0,Q.dataSharingContext=$.dataSharingContext!==void 0&&$.dataSharingContext!==null?KJ.fromPartial($.dataSharingContext):void 0,Q.alwaysShowAdAttribution=$.alwaysShowAdAttribution??void 0,Q.featureEligibilities=$.featureEligibilities!==void 0&&$.featureEligibilities!==null?XJ.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?SJ.fromPartial($.forwardedAiBotMessageInfo):void 0,Q.statusAttributionType=$.statusAttributionType??void 0,Q.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?O$.fromPartial($.urlTrackingMap):void 0,Q.pairedMediaType=$.pairedMediaType??void 0,Q.rankingVersion=$.rankingVersion??void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?F0.fromPartial($.memberLabel):void 0,Q.isQuestion=$.isQuestion??void 0,Q.statusSourceType=$.statusSourceType??void 0,Q.statusAttributions=$.statusAttributions?.map((Z)=>RX.fromPartial(Z))||void 0,Q.isGroupStatus=$.isGroupStatus??void 0,Q.forwardOrigin=$.forwardOrigin??void 0,Q.questionReplyQuotedMessage=$.questionReplyQuotedMessage!==void 0&&$.questionReplyQuotedMessage!==null?YJ.fromPartial($.questionReplyQuotedMessage):void 0,Q.statusAudienceMetadata=$.statusAudienceMetadata!==void 0&&$.statusAudienceMetadata!==null?VJ.fromPartial($.statusAudienceMetadata):void 0,Q.nonJidMentions=$.nonJidMentions??void 0,Q.quotedType=$.quotedType??void 0,Q.botMessageSharingInfo=$.botMessageSharingInfo!==void 0&&$.botMessageSharingInfo!==null?cQ.fromPartial($.botMessageSharingInfo):void 0,Q.isSpoiler=$.isSpoiler??void 0,Q.mediaDomainInfo=$.mediaDomainInfo!==void 0&&$.mediaDomainInfo!==null?K8.fromPartial($.mediaDomainInfo):void 0,Q.partiallySelectedContent=$.partiallySelectedContent!==void 0&&$.partiallySelectedContent!==null?zJ.fromPartial($.partiallySelectedContent):void 0,Q.afterReadDuration=$.afterReadDuration??void 0,Q.crossAppSource=$.crossAppSource??void 0,Q.businessInteractionPills=$.businessInteractionPills!==void 0&&$.businessInteractionPills!==null?ZJ.fromPartial($.businessInteractionPills):void 0,Q.posterStatusId=$.posterStatusId??void 0,Q}};function jH(){return{}}var QJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=jH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return QJ.fromPartial($??{})},fromPartial($){let Q=jH();return Q.advertiserName=$.advertiserName??void 0,Q.mediaType=$.mediaType??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q}};function cH(){return{}}var ZJ={encode($,Q=new V){if($.businessJid!==void 0)Q.uint32(10).string($.businessJid);if($.pills!==void 0&&$.pills.length!==0)for(let Z of $.pills)K$.encode(Z,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)r0.encode($.signatureEnvelope,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=cH();while(Z.pos<q){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 z=K$.decode(Z,Z.uint32());if(z!==void 0)K.pills.push(z);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=r0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return ZJ.fromPartial($??{})},fromPartial($){let Q=cH();return Q.businessJid=$.businessJid??void 0,Q.pills=$.pills?.map((Z)=>K$.fromPartial(Z))||void 0,Q.entryPoint=$.entryPoint??void 0,Q.signedPayload=$.signedPayload??void 0,Q.signatureEnvelope=$.signatureEnvelope!==void 0&&$.signatureEnvelope!==null?r0.fromPartial($.signatureEnvelope):void 0,Q}};function oH(){return{}}var K$={encode($,Q=new V){if($.pillType!==void 0)Q.uint32(8).int32($.pillType);if($.actionUrl!==void 0)Q.uint32(18).string($.actionUrl);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=oH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return K$.fromPartial($??{})},fromPartial($){let Q=oH();return Q.pillType=$.pillType??void 0,Q.actionUrl=$.actionUrl??void 0,Q}};function bH(){return{}}var fN={encode($,Q=new V){if($.verifiedName!==void 0)Q.uint32(10).string($.verifiedName);if($.pills!==void 0&&$.pills.length!==0)for(let Z of $.pills)K$.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=bH();while(Z.pos<q){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 z=K$.decode(Z,Z.uint32());if(z!==void 0)K.pills.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return fN.fromPartial($??{})},fromPartial($){let Q=bH();return Q.verifiedName=$.verifiedName??void 0,Q.pills=$.pills?.map((Z)=>K$.fromPartial(Z))||void 0,Q}};function iH(){return{}}var JJ={encode($,Q=new V){if($.businessOwnerJid!==void 0)Q.uint32(10).string($.businessOwnerJid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=iH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.businessOwnerJid=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return JJ.fromPartial($??{})},fromPartial($){let Q=iH();return Q.businessOwnerJid=$.businessOwnerJid??void 0,Q}};function mH(){return{}}var KJ={encode($,Q=new V){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 Z of $.parameters)t0.encode(Z,Q.uint32(26).fork()).join();if($.dataSharingFlags!==void 0)Q.uint32(32).int32($.dataSharingFlags);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=mH();while(Z.pos<q){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 z=t0.decode(Z,Z.uint32());if(z!==void 0)K.parameters.push(z);continue}case 4:{if(J!==32)break;K.dataSharingFlags=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return KJ.fromPartial($??{})},fromPartial($){let Q=mH();return Q.showMmDisclosure=$.showMmDisclosure??void 0,Q.encryptedSignalTokenConsented=$.encryptedSignalTokenConsented??void 0,Q.parameters=$.parameters?.map((Z)=>t0.fromPartial(Z))||void 0,Q.dataSharingFlags=$.dataSharingFlags??void 0,Q}};function gH(){return{}}var t0={encode($,Q=new V){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)t0.encode($.contents,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=gH();while(Z.pos<q){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.int64Number();continue}case 4:{if(J!==37)break;K.floatData=Z.float();continue}case 5:{if(J!==42)break;K.contents=t0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return t0.fromPartial($??{})},fromPartial($){let Q=gH();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?t0.fromPartial($.contents):void 0,Q}};function tH(){return{}}var qJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=tH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return qJ.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 rH(){return{}}var XJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=rH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return XJ.fromPartial($??{})},fromPartial($){let Q=rH();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 aH(){return{}}var q$={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=aH();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return q$.fromPartial($??{})},fromPartial($){let Q=aH();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 sH(){return{}}var zJ={encode($,Q=new V){if($.text!==void 0)Q.uint32(10).string($.text);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=sH();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return zJ.fromPartial($??{})},fromPartial($){let Q=sH();return Q.text=$.text??void 0,Q}};function eH(){return{}}var YJ={encode($,Q=new V){if($.serverQuestionId!==void 0)Q.uint32(8).int32($.serverQuestionId);if($.quotedQuestion!==void 0)w.encode($.quotedQuestion,Q.uint32(18).fork()).join();if($.quotedResponse!==void 0)w.encode($.quotedResponse,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=eH();while(Z.pos<q){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=w.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.quotedResponse=w.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return YJ.fromPartial($??{})},fromPartial($){let Q=eH();return Q.serverQuestionId=$.serverQuestionId??void 0,Q.quotedQuestion=$.quotedQuestion!==void 0&&$.quotedQuestion!==null?w.fromPartial($.quotedQuestion):void 0,Q.quotedResponse=$.quotedResponse!==void 0&&$.quotedResponse!==null?w.fromPartial($.quotedResponse):void 0,Q}};function $5(){return{}}var VJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return VJ.fromPartial($??{})},fromPartial($){let Q=$5();return Q.audienceType=$.audienceType??void 0,Q.listName=$.listName??void 0,Q.listEmoji=$.listEmoji??void 0,Q}};function Q5(){return{}}var HJ={encode($,Q=new V){if($.utmSource!==void 0)Q.uint32(10).string($.utmSource);if($.utmCampaign!==void 0)Q.uint32(18).string($.utmCampaign);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Q5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return HJ.fromPartial($??{})},fromPartial($){let Q=Q5();return Q.utmSource=$.utmSource??void 0,Q.utmCampaign=$.utmCampaign??void 0,Q}};function Z5(){return{}}var GJ={encode($,Q=new V){if($.id!==void 0)Q.uint32(10).string($.id);if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)dJ.encode(Z,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)x0.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 Z of $.participant)_J.encode(Z,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)U0.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);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Z5();while(Z.pos<q){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 z=dJ.decode(Z,Z.uint32());if(z!==void 0)K.messages.push(z);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.uint64Number();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.int64Number();continue}case 11:{if(J!==88)break;K.endOfHistoryTransferType=Z.int32();continue}case 12:{if(J!==96)break;K.conversationTimestamp=Z.uint64Number();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=x0.decode(Z,Z.uint32());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 z=_J.decode(Z,Z.uint32());if(z!==void 0)K.participant.push(z);continue}case 21:{if(J!==170)break;K.tcToken=Z.bytes();continue}case 22:{if(J!==176)break;K.tcTokenTimestamp=Z.uint64Number();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.uint64Number();continue}case 26:{if(J!==210)break;K.wallpaper=U0.decode(Z,Z.uint32());continue}case 27:{if(J!==216)break;K.mediaVisibility=Z.int32();continue}case 28:{if(J!==224)break;K.tcTokenSenderTimestamp=Z.uint64Number();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.uint64Number();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.int64Number();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.uint64Number();continue}case 61:{if(J!==490)break;K.authAgentParentCompanyName=Z.string();continue}case 62:{if(J!==498)break;K.authAgentObaPhoneNumber=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return GJ.fromPartial($??{})},fromPartial($){let Q=Z5();return Q.id=$.id??void 0,Q.messages=$.messages?.map((Z)=>dJ.fromPartial(Z))||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?x0.fromPartial($.disappearingMode):void 0,Q.unreadMentionCount=$.unreadMentionCount??void 0,Q.markedAsUnread=$.markedAsUnread??void 0,Q.participant=$.participant?.map((Z)=>_J.fromPartial(Z))||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?U0.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}};function J5(){return{}}var UJ={encode($,Q=new V){if($.recoveryCode!==void 0)Q.uint32(10).string($.recoveryCode);if($.userId!==void 0)Q.uint32(16).uint64($.userId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=J5();while(Z.pos<q){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.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return UJ.fromPartial($??{})},fromPartial($){let Q=J5();return Q.recoveryCode=$.recoveryCode??void 0,Q.userId=$.userId??void 0,Q}};function K5(){return{}}var _N={encode($,Q=new V){if($.device!==void 0)NJ.encode($.device,Q.uint32(10).fork()).join();if($.virtualDevice!==void 0)M6.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=K5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.device=NJ.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.virtualDevice=M6.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.epoch0=MJ.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _N.fromPartial($??{})},fromPartial($){let Q=K5();return Q.device=$.device!==void 0&&$.device!==null?NJ.fromPartial($.device):void 0,Q.virtualDevice=$.virtualDevice!==void 0&&$.virtualDevice!==null?M6.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 q5(){return{}}var CJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=q5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return CJ.fromPartial($??{})},fromPartial($){let Q=q5();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 X5(){return{}}var hN={encode($,Q=new V){if($.plaintextPayload!==void 0)Q.uint32(10).bytes($.plaintextPayload);if($.error!==void 0)Q.uint32(18).string($.error);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=X5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return hN.fromPartial($??{})},fromPartial($){let Q=X5();return Q.plaintextPayload=$.plaintextPayload??void 0,Q.error=$.error??void 0,Q}};function z5(){return{}}var xJ={encode($,Q=new V){if($.chatLockSupportLevel!==void 0)Q.uint32(8).int32($.chatLockSupportLevel);if($.lidMigration!==void 0)FJ.encode($.lidMigration,Q.uint32(18).fork()).join();if($.businessBroadcast!==void 0)LJ.encode($.businessBroadcast,Q.uint32(26).fork()).join();if($.userHasAvatar!==void 0)PJ.encode($.userHasAvatar,Q.uint32(34).fork()).join();if($.memberNameTagPrimarySupport!==void 0)Q.uint32(40).int32($.memberNameTagPrimarySupport);if($.aiThread!==void 0)DJ.encode($.aiThread,Q.uint32(50).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=z5();while(Z.pos<q){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=FJ.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.businessBroadcast=LJ.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.userHasAvatar=PJ.decode(Z,Z.uint32());continue}case 5:{if(J!==40)break;K.memberNameTagPrimarySupport=Z.int32();continue}case 6:{if(J!==50)break;K.aiThread=DJ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return xJ.fromPartial($??{})},fromPartial($){let Q=z5();return Q.chatLockSupportLevel=$.chatLockSupportLevel??void 0,Q.lidMigration=$.lidMigration!==void 0&&$.lidMigration!==null?FJ.fromPartial($.lidMigration):void 0,Q.businessBroadcast=$.businessBroadcast!==void 0&&$.businessBroadcast!==null?LJ.fromPartial($.businessBroadcast):void 0,Q.userHasAvatar=$.userHasAvatar!==void 0&&$.userHasAvatar!==null?PJ.fromPartial($.userHasAvatar):void 0,Q.memberNameTagPrimarySupport=$.memberNameTagPrimarySupport??void 0,Q.aiThread=$.aiThread!==void 0&&$.aiThread!==null?DJ.fromPartial($.aiThread):void 0,Q}};function Y5(){return{}}var DJ={encode($,Q=new V){if($.supportLevel!==void 0)Q.uint32(8).int32($.supportLevel);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Y5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.supportLevel=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return DJ.fromPartial($??{})},fromPartial($){let Q=Y5();return Q.supportLevel=$.supportLevel??void 0,Q}};function V5(){return{}}var LJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=V5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return LJ.fromPartial($??{})},fromPartial($){let Q=V5();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 H5(){return{}}var FJ={encode($,Q=new V){if($.chatDbMigrationTimestamp!==void 0)Q.uint32(8).uint64($.chatDbMigrationTimestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=H5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.chatDbMigrationTimestamp=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return FJ.fromPartial($??{})},fromPartial($){let Q=H5();return Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function G5(){return{}}var PJ={encode($,Q=new V){if($.userHasAvatar!==void 0)Q.uint32(8).bool($.userHasAvatar);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=G5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.userHasAvatar=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return PJ.fromPartial($??{})},fromPartial($){let Q=G5();return Q.userHasAvatar=$.userHasAvatar??void 0,Q}};function U5(){return{}}var lN={encode($,Q=new V){if($.generation!==void 0)Q.uint32(8).uint32($.generation);if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=U5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return lN.fromPartial($??{})},fromPartial($){let Q=U5();return Q.generation=$.generation??void 0,Q.signature=$.signature??void 0,Q}};function C5(){return{}}var kJ={encode($,Q=new V){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 Z of $.senderKeyIndexes)Q.uint32(Z);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 Z of $.recipientKeyIndexes)Q.uint32(Z);Q.join()}return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=C5();while(Z.pos<q){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.uint64Number();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 z=Z.uint32()+Z.pos;while(Z.pos<z)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.uint64Number();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 z=Z.uint32()+Z.pos;while(Z.pos<z)K.recipientKeyIndexes.push(Z.uint32());continue}break}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return kJ.fromPartial($??{})},fromPartial($){let Q=C5();return Q.senderKeyHash=$.senderKeyHash??void 0,Q.senderTimestamp=$.senderTimestamp??void 0,Q.senderKeyIndexes=$.senderKeyIndexes?.map((Z)=>Z)||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((Z)=>Z)||void 0,Q}};function x5(){return{}}var NJ={encode($,Q=new V){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 Z of $.supportedEncryptionVersions)Q.uint32(48).int32(Z);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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=x5();while(Z.pos<q){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 z=Z.uint32()+Z.pos;while(Z.pos<z)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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return NJ.fromPartial($??{})},fromPartial($){let Q=x5();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((Z)=>Z)||void 0,Q.encryptionVersionSignature=$.encryptionVersionSignature??void 0,Q.clientVersion=$.clientVersion??void 0,Q.ocmfClientState=$.ocmfClientState??void 0,Q}};function D5(){return{}}var c6={encode($,Q=new V){if($.os!==void 0)Q.uint32(10).string($.os);if($.version!==void 0)BJ.encode($.version,Q.uint32(18).fork()).join();if($.platformType!==void 0)Q.uint32(24).int32($.platformType);if($.requireFullSync!==void 0)Q.uint32(32).bool($.requireFullSync);if($.historySyncConfig!==void 0)X$.encode($.historySyncConfig,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=D5();while(Z.pos<q){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=BJ.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.platformType=Z.int32();continue}case 4:{if(J!==32)break;K.requireFullSync=Z.bool();continue}case 5:{if(J!==42)break;K.historySyncConfig=X$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return c6.fromPartial($??{})},fromPartial($){let Q=D5();return Q.os=$.os??void 0,Q.version=$.version!==void 0&&$.version!==null?BJ.fromPartial($.version):void 0,Q.platformType=$.platformType??void 0,Q.requireFullSync=$.requireFullSync??void 0,Q.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?X$.fromPartial($.historySyncConfig):void 0,Q}};function L5(){return{}}var BJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=L5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return BJ.fromPartial($??{})},fromPartial($){let Q=L5();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 F5(){return{}}var X$={encode($,Q=new V){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 Z of $.supportedBotChannelFbids)Q.uint32(186).string(Z);if($.supportInlineContacts!==void 0)Q.uint32(192).bool($.supportInlineContacts);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=F5();while(Z.pos<q){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 z=Z.string();if(z!==void 0)K.supportedBotChannelFbids.push(z);continue}case 24:{if(J!==192)break;K.supportInlineContacts=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return X$.fromPartial($??{})},fromPartial($){let Q=F5();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((Z)=>Z)||void 0,Q.supportInlineContacts=$.supportInlineContacts??void 0,Q}};function P5(){return{}}var x0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=P5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return x0.fromPartial($??{})},fromPartial($){let Q=P5();return Q.initiator=$.initiator??void 0,Q.trigger=$.trigger??void 0,Q.initiatorDeviceJid=$.initiatorDeviceJid??void 0,Q.initiatedByMe=$.initiatedByMe??void 0,Q}};function k5(){return{}}var RJ={encode($,Q=new V){if($.embeddedMessage!==void 0)OJ.encode($.embeddedMessage,Q.uint32(10).fork()).join();if($.embeddedMusic!==void 0)D0.encode($.embeddedMusic,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=k5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.embeddedMessage=OJ.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.embeddedMusic=D0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return RJ.fromPartial($??{})},fromPartial($){let Q=k5();return Q.embeddedMessage=$.embeddedMessage!==void 0&&$.embeddedMessage!==null?OJ.fromPartial($.embeddedMessage):void 0,Q.embeddedMusic=$.embeddedMusic!==void 0&&$.embeddedMusic!==null?D0.fromPartial($.embeddedMusic):void 0,Q}};function N5(){return{}}var OJ={encode($,Q=new V){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.message!==void 0)w.encode($.message,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=N5();while(Z.pos<q){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=w.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return OJ.fromPartial($??{})},fromPartial($){let Q=N5();return Q.stanzaId=$.stanzaId??void 0,Q.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,Q}};function B5(){return{}}var D0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=B5();while(Z.pos<q){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.int64Number();continue}case 13:{if(J!==104)break;K.derivedContentStartTimeInMs=Z.int64Number();continue}case 14:{if(J!==112)break;K.overlapDurationInMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return D0.fromPartial($??{})},fromPartial($){let Q=B5();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 R5(){return{}}var AJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=R5();while(Z.pos<q){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.uint64Number();continue}case 6:{if(J!==50)break;K.threadId=Z.string();continue}case 7:{if(J!==56)break;K.waCanonicalUserFbid=Z.uint64Number();continue}case 8:{if(J!==64)break;K.timestampMs=Z.uint64Number();continue}case 9:{if(J!==72)break;K.backupId=Z.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return AJ.fromPartial($??{})},fromPartial($){let Q=R5();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 O5(){return{}}var uN={encode($,Q=new V){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($.messageKey!==void 0)Q.uint32(50).bytes($.messageKey);if($.error!==void 0)Q.uint32(58).string($.error);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=O5();while(Z.pos<q){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.uint64Number();continue}case 5:{if(J!==40)break;K.timestampMs=Z.uint64Number();continue}case 6:{if(J!==50)break;K.messageKey=Z.bytes();continue}case 7:{if(J!==58)break;K.error=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return uN.fromPartial($??{})},fromPartial($){let Q=O5();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.messageKey=$.messageKey??void 0,Q.error=$.error??void 0,Q}};function A5(){return{}}var pN={encode($,Q=new V){if($.encryptedPayload!==void 0)Q.uint32(10).bytes($.encryptedPayload);if($.iv!==void 0)Q.uint32(18).bytes($.iv);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=A5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return pN.fromPartial($??{})},fromPartial($){let Q=A5();return Q.encryptedPayload=$.encryptedPayload??void 0,Q.iv=$.iv??void 0,Q}};function E5(){return{}}var EJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=E5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return EJ.fromPartial($??{})},fromPartial($){let Q=E5();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 M5(){return{}}var wN={encode($,Q=new V){if($.duration!==void 0)Q.uint32(13).sfixed32($.duration);if($.timestamp!==void 0)Q.uint32(17).sfixed64($.timestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=M5();while(Z.pos<q){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.sfixed64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return wN.fromPartial($??{})},fromPartial($){let Q=M5();return Q.duration=$.duration??void 0,Q.timestamp=$.timestamp??void 0,Q}};function W5(){return{}}var MJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=W5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.epochFbid=Z.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return MJ.fromPartial($??{})},fromPartial($){let Q=W5();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 I5(){return{}}var WJ={encode($,Q=new V){if($.isStale!==void 0)Q.uint32(8).bool($.isStale);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=I5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isStale=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return WJ.fromPartial($??{})},fromPartial($){let Q=I5();return Q.isStale=$.isStale??void 0,Q}};function S5(){return{}}var IJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=S5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eventResponseMessageKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.timestampMs=Z.int64Number();continue}case 3:{if(J!==26)break;K.eventResponseMessage=I0.decode(Z,Z.uint32());continue}case 4:{if(J!==32)break;K.unread=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return IJ.fromPartial($??{})},fromPartial($){let Q=S5();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 v5(){return{}}var M$={encode($,Q=new V){if($.code!==void 0)Q.uint32(8).uint64($.code);if($.text!==void 0)Q.uint32(18).string($.text);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=v5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.code=Z.uint64Number();continue}case 2:{if(J!==18)break;K.text=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return M$.fromPartial($??{})},fromPartial($){let Q=v5();return Q.code=$.code??void 0,Q.text=$.text??void 0,Q}};function T5(){return{}}var W$={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=T5();while(Z.pos<q){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.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return W$.fromPartial($??{})},fromPartial($){let Q=T5();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 y5(){return{}}var W0={encode($,Q=new V){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(([Z,q])=>{_6.encode({key:Z,value:q},Q.uint32(42).fork()).join()}),Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=y5();while(Z.pos<q){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 z=_6.decode(Z,Z.uint32());if(z.value!==void 0&&z.key!==void 0){if(K.subfield===void 0)K.subfield={};K.subfield[z.key]=z.value}continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return W0.fromPartial($??{})},fromPartial($){let Q=y5();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((Z,[q,K])=>{if(K!==void 0)Z[globalThis.Number(q)]=W0.fromPartial(K);return Z},{}),Q}};function f5(){return{}}var _6={encode($,Q=new V){if($.key!==void 0)Q.uint32(8).uint32($.key);if($.value!==void 0)W0.encode($.value,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=f5();while(Z.pos<q){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=W0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _6.fromPartial($??{})},fromPartial($){let Q=f5();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?W0.fromPartial($.value):void 0,Q}};function _5(){return{}}var w0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return w0.fromPartial($??{})},fromPartial($){let Q=_5();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 h5(){return{}}var SJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=h5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return SJ.fromPartial($??{})},fromPartial($){let Q=h5();return Q.botName=$.botName??void 0,Q.botJid=$.botJid??void 0,Q.creatorName=$.creatorName??void 0,Q}};function l5(){return{}}var vJ={encode($,Q=new V){if($.lightThemeWallpaper!==void 0)U0.encode($.lightThemeWallpaper,Q.uint32(10).fork()).join();if($.mediaVisibility!==void 0)Q.uint32(16).int32($.mediaVisibility);if($.darkThemeWallpaper!==void 0)U0.encode($.darkThemeWallpaper,Q.uint32(26).fork()).join();if($.autoDownloadWiFi!==void 0)z0.encode($.autoDownloadWiFi,Q.uint32(34).fork()).join();if($.autoDownloadCellular!==void 0)z0.encode($.autoDownloadCellular,Q.uint32(42).fork()).join();if($.autoDownloadRoaming!==void 0)z0.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)FQ.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)b0.encode($.individualNotificationSettings,Q.uint32(138).fork()).join();if($.groupNotificationSettings!==void 0)b0.encode($.groupNotificationSettings,Q.uint32(146).fork()).join();if($.chatLockSettings!==void 0)s0.encode($.chatLockSettings,Q.uint32(154).fork()).join();if($.chatDbLidMigrationTimestamp!==void 0)Q.uint32(160).int64($.chatDbLidMigrationTimestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=l5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.lightThemeWallpaper=U0.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.mediaVisibility=Z.int32();continue}case 3:{if(J!==26)break;K.darkThemeWallpaper=U0.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.autoDownloadWiFi=z0.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.autoDownloadCellular=z0.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.autoDownloadRoaming=z0.decode(Z,Z.uint32());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.int64Number();continue}case 11:{if(J!==90)break;K.avatarUserSettings=FQ.decode(Z,Z.uint32());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=b0.decode(Z,Z.uint32());continue}case 18:{if(J!==146)break;K.groupNotificationSettings=b0.decode(Z,Z.uint32());continue}case 19:{if(J!==154)break;K.chatLockSettings=s0.decode(Z,Z.uint32());continue}case 20:{if(J!==160)break;K.chatDbLidMigrationTimestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return vJ.fromPartial($??{})},fromPartial($){let Q=l5();return Q.lightThemeWallpaper=$.lightThemeWallpaper!==void 0&&$.lightThemeWallpaper!==null?U0.fromPartial($.lightThemeWallpaper):void 0,Q.mediaVisibility=$.mediaVisibility??void 0,Q.darkThemeWallpaper=$.darkThemeWallpaper!==void 0&&$.darkThemeWallpaper!==null?U0.fromPartial($.darkThemeWallpaper):void 0,Q.autoDownloadWiFi=$.autoDownloadWiFi!==void 0&&$.autoDownloadWiFi!==null?z0.fromPartial($.autoDownloadWiFi):void 0,Q.autoDownloadCellular=$.autoDownloadCellular!==void 0&&$.autoDownloadCellular!==null?z0.fromPartial($.autoDownloadCellular):void 0,Q.autoDownloadRoaming=$.autoDownloadRoaming!==void 0&&$.autoDownloadRoaming!==null?z0.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?FQ.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?b0.fromPartial($.individualNotificationSettings):void 0,Q.groupNotificationSettings=$.groupNotificationSettings!==void 0&&$.groupNotificationSettings!==null?b0.fromPartial($.groupNotificationSettings):void 0,Q.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?s0.fromPartial($.chatLockSettings):void 0,Q.chatDbLidMigrationTimestamp=$.chatDbLidMigrationTimestamp??void 0,Q}};function u5(){return{}}var nN={encode($,Q=new V){if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)b.encode(Z,Q.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let Z of $.uncountedAssociatedMessageLists)k6.encode(Z,Q.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let Z of $.commentMessages)b.encode(Z,Q.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let Z of $.outOfWindowPinnedMessages)b.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=u5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.messages===void 0)K.messages=[];let z=b.decode(Z,Z.uint32());if(z!==void 0)K.messages.push(z);continue}case 2:{if(J!==18)break;if(K.uncountedAssociatedMessageLists===void 0)K.uncountedAssociatedMessageLists=[];let z=k6.decode(Z,Z.uint32());if(z!==void 0)K.uncountedAssociatedMessageLists.push(z);continue}case 3:{if(J!==26)break;if(K.commentMessages===void 0)K.commentMessages=[];let z=b.decode(Z,Z.uint32());if(z!==void 0)K.commentMessages.push(z);continue}case 4:{if(J!==34)break;if(K.outOfWindowPinnedMessages===void 0)K.outOfWindowPinnedMessages=[];let z=b.decode(Z,Z.uint32());if(z!==void 0)K.outOfWindowPinnedMessages.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return nN.fromPartial($??{})},fromPartial($){let Q=u5();return Q.messages=$.messages?.map((Z)=>b.fromPartial(Z))||void 0,Q.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((Z)=>k6.fromPartial(Z))||void 0,Q.commentMessages=$.commentMessages?.map((Z)=>b.fromPartial(Z))||void 0,Q.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((Z)=>b.fromPartial(Z))||void 0,Q}};function p5(){return{}}var TJ={encode($,Q=new V){if($.deprecatedMessageHistoryBundle!==void 0)U$.encode($.deprecatedMessageHistoryBundle,Q.uint32(10).fork()).join();if($.processState!==void 0)Q.uint32(16).int32($.processState);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=p5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deprecatedMessageHistoryBundle=U$.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.processState=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return TJ.fromPartial($??{})},fromPartial($){let Q=p5();return Q.deprecatedMessageHistoryBundle=$.deprecatedMessageHistoryBundle!==void 0&&$.deprecatedMessageHistoryBundle!==null?U$.fromPartial($.deprecatedMessageHistoryBundle):void 0,Q.processState=$.processState??void 0,Q}};function w5(){return{}}var yJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=w5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.bundleMessageKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.editedAfterReceivedAsHistory=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return yJ.fromPartial($??{})},fromPartial($){let Q=w5();return Q.bundleMessageKey=$.bundleMessageKey!==void 0&&$.bundleMessageKey!==null?k.fromPartial($.bundleMessageKey):void 0,Q.editedAfterReceivedAsHistory=$.editedAfterReceivedAsHistory??void 0,Q}};function n5(){return{}}var dN={encode($,Q=new V){if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)Q0.encode(Z,Q.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let Z of $.uncountedAssociatedMessageLists)N6.encode(Z,Q.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let Z of $.commentMessages)Q0.encode(Z,Q.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let Z of $.outOfWindowPinnedMessages)Q0.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=n5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.messages===void 0)K.messages=[];let z=Q0.decode(Z,Z.uint32());if(z!==void 0)K.messages.push(z);continue}case 2:{if(J!==18)break;if(K.uncountedAssociatedMessageLists===void 0)K.uncountedAssociatedMessageLists=[];let z=N6.decode(Z,Z.uint32());if(z!==void 0)K.uncountedAssociatedMessageLists.push(z);continue}case 3:{if(J!==26)break;if(K.commentMessages===void 0)K.commentMessages=[];let z=Q0.decode(Z,Z.uint32());if(z!==void 0)K.commentMessages.push(z);continue}case 4:{if(J!==34)break;if(K.outOfWindowPinnedMessages===void 0)K.outOfWindowPinnedMessages=[];let z=Q0.decode(Z,Z.uint32());if(z!==void 0)K.outOfWindowPinnedMessages.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return dN.fromPartial($??{})},fromPartial($){let Q=n5();return Q.messages=$.messages?.map((Z)=>Q0.fromPartial(Z))||void 0,Q.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((Z)=>N6.fromPartial(Z))||void 0,Q.commentMessages=$.commentMessages?.map((Z)=>Q0.fromPartial(Z))||void 0,Q.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((Z)=>Q0.fromPartial(Z))||void 0,Q}};function d5(){return{}}var fJ={encode($,Q=new V){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.groupSubject!==void 0)Q.uint32(18).string($.groupSubject);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=d5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return fJ.fromPartial($??{})},fromPartial($){let Q=d5();return Q.groupJid=$.groupJid??void 0,Q.groupSubject=$.groupSubject??void 0,Q}};function j5(){return{}}var _J={encode($,Q=new V){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.rank!==void 0)Q.uint32(16).int32($.rank);if($.memberLabel!==void 0)F0.encode($.memberLabel,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=j5();while(Z.pos<q){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=F0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _J.fromPartial($??{})},fromPartial($){let Q=j5();return Q.userJid=$.userJid??void 0,Q.rank=$.rank??void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?F0.fromPartial($.memberLabel):void 0,Q}};function c5(){return{}}var hJ={encode($,Q=new V){if($.keys!==void 0&&$.keys.length!==0)for(let Z of $.keys)lJ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=c5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.keys===void 0)K.keys=[];let z=lJ.decode(Z,Z.uint32());if(z!==void 0)K.keys.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return hJ.fromPartial($??{})},fromPartial($){let Q=c5();return Q.keys=$.keys?.map((Z)=>lJ.fromPartial(Z))||void 0,Q}};function o5(){return{}}var lJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=o5();while(Z.pos<q){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.int64Number();continue}case 4:{if(J!==32)break;K.createdTimestampMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return lJ.fromPartial($??{})},fromPartial($){let Q=o5();return Q.groupRootKey=$.groupRootKey??void 0,Q.keyId=$.keyId??void 0,Q.expiryTimestampMs=$.expiryTimestampMs??void 0,Q.createdTimestampMs=$.createdTimestampMs??void 0,Q}};function b5(){return{}}var o6={encode($,Q=new V){if($.clientHello!==void 0)pJ.encode($.clientHello,Q.uint32(18).fork()).join();if($.serverHello!==void 0)wJ.encode($.serverHello,Q.uint32(26).fork()).join();if($.clientFinish!==void 0)uJ.encode($.clientFinish,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=b5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==18)break;K.clientHello=pJ.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.serverHello=wJ.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.clientFinish=uJ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return o6.fromPartial($??{})},fromPartial($){let Q=b5();return Q.clientHello=$.clientHello!==void 0&&$.clientHello!==null?pJ.fromPartial($.clientHello):void 0,Q.serverHello=$.serverHello!==void 0&&$.serverHello!==null?wJ.fromPartial($.serverHello):void 0,Q.clientFinish=$.clientFinish!==void 0&&$.clientFinish!==null?uJ.fromPartial($.clientFinish):void 0,Q}};function i5(){return{}}var uJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=i5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return uJ.fromPartial($??{})},fromPartial($){let Q=i5();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 m5(){return{}}var pJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=m5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return pJ.fromPartial($??{})},fromPartial($){let Q=m5();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 g5(){return{}}var wJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=g5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return wJ.fromPartial($??{})},fromPartial($){let Q=g5();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 t5(){return{}}var nJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=t5();while(Z.pos<q){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.int64Number();continue}case 3:{if(J!==26)break;K.requestId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return nJ.fromPartial($??{})},fromPartial($){let Q=t5();return Q.data=$.data??void 0,Q.timestampMs=$.timestampMs??void 0,Q.requestId=$.requestId??void 0,Q}};function r5(){return{}}var b6={encode($,Q=new V){if($.syncType!==void 0)Q.uint32(8).int32($.syncType);if($.conversations!==void 0&&$.conversations.length!==0)for(let Z of $.conversations)GJ.encode(Z,Q.uint32(18).fork()).join();if($.statusV3Messages!==void 0&&$.statusV3Messages.length!==0)for(let Z of $.statusV3Messages)b.encode(Z,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 Z of $.pushnames)qX.encode(Z,Q.uint32(58).fork()).join();if($.globalSettings!==void 0)vJ.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 Z of $.recentStickers)yX.encode(Z,Q.uint32(90).fork()).join();if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let Z of $.pastParticipants)mq.encode(Z,Q.uint32(98).fork()).join();if($.callLogRecords!==void 0&&$.callLogRecords.length!==0)for(let Z of $.callLogRecords)a0.encode(Z,Q.uint32(106).fork()).join();if($.aiWaitListState!==void 0)Q.uint32(112).int32($.aiWaitListState);if($.phoneNumberToLidMappings!==void 0&&$.phoneNumberToLidMappings.length!==0)for(let Z of $.phoneNumberToLidMappings)tq.encode(Z,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 Z of $.accounts)DQ.encode(Z,Q.uint32(146).fork()).join();if($.nctSalt!==void 0)Q.uint32(154).bytes($.nctSalt);if($.inlineContacts!==void 0&&$.inlineContacts.length!==0)for(let Z of $.inlineContacts)rJ.encode(Z,Q.uint32(162).fork()).join();if($.inlineContactsProvided!==void 0)Q.uint32(168).bool($.inlineContactsProvided);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=r5();while(Z.pos<q){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 z=GJ.decode(Z,Z.uint32());if(z!==void 0)K.conversations.push(z);continue}case 3:{if(J!==26)break;if(K.statusV3Messages===void 0)K.statusV3Messages=[];let z=b.decode(Z,Z.uint32());if(z!==void 0)K.statusV3Messages.push(z);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 z=qX.decode(Z,Z.uint32());if(z!==void 0)K.pushnames.push(z);continue}case 8:{if(J!==66)break;K.globalSettings=vJ.decode(Z,Z.uint32());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 z=yX.decode(Z,Z.uint32());if(z!==void 0)K.recentStickers.push(z);continue}case 12:{if(J!==98)break;if(K.pastParticipants===void 0)K.pastParticipants=[];let z=mq.decode(Z,Z.uint32());if(z!==void 0)K.pastParticipants.push(z);continue}case 13:{if(J!==106)break;if(K.callLogRecords===void 0)K.callLogRecords=[];let z=a0.decode(Z,Z.uint32());if(z!==void 0)K.callLogRecords.push(z);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 z=tq.decode(Z,Z.uint32());if(z!==void 0)K.phoneNumberToLidMappings.push(z);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 z=DQ.decode(Z,Z.uint32());if(z!==void 0)K.accounts.push(z);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 z=rJ.decode(Z,Z.uint32());if(z!==void 0)K.inlineContacts.push(z);continue}case 21:{if(J!==168)break;K.inlineContactsProvided=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return b6.fromPartial($??{})},fromPartial($){let Q=r5();return Q.syncType=$.syncType??void 0,Q.conversations=$.conversations?.map((Z)=>GJ.fromPartial(Z))||void 0,Q.statusV3Messages=$.statusV3Messages?.map((Z)=>b.fromPartial(Z))||void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.progress=$.progress??void 0,Q.pushnames=$.pushnames?.map((Z)=>qX.fromPartial(Z))||void 0,Q.globalSettings=$.globalSettings!==void 0&&$.globalSettings!==null?vJ.fromPartial($.globalSettings):void 0,Q.threadIdUserSecret=$.threadIdUserSecret??void 0,Q.threadDsTimeframeOffset=$.threadDsTimeframeOffset??void 0,Q.recentStickers=$.recentStickers?.map((Z)=>yX.fromPartial(Z))||void 0,Q.pastParticipants=$.pastParticipants?.map((Z)=>mq.fromPartial(Z))||void 0,Q.callLogRecords=$.callLogRecords?.map((Z)=>a0.fromPartial(Z))||void 0,Q.aiWaitListState=$.aiWaitListState??void 0,Q.phoneNumberToLidMappings=$.phoneNumberToLidMappings?.map((Z)=>tq.fromPartial(Z))||void 0,Q.companionMetaNonce=$.companionMetaNonce??void 0,Q.shareableChatIdentifierEncryptionKey=$.shareableChatIdentifierEncryptionKey??void 0,Q.accounts=$.accounts?.map((Z)=>DQ.fromPartial(Z))||void 0,Q.nctSalt=$.nctSalt??void 0,Q.inlineContacts=$.inlineContacts?.map((Z)=>rJ.fromPartial(Z))||void 0,Q.inlineContactsProvided=$.inlineContactsProvided??void 0,Q}};function a5(){return{}}var dJ={encode($,Q=new V){if($.message!==void 0)b.encode($.message,Q.uint32(10).fork()).join();if($.msgOrderId!==void 0)Q.uint32(16).uint64($.msgOrderId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=a5();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.message=b.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.msgOrderId=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return dJ.fromPartial($??{})},fromPartial($){let Q=a5();return Q.message=$.message!==void 0&&$.message!==null?b.fromPartial($.message):void 0,Q.msgOrderId=$.msgOrderId??void 0,Q}};function s5(){return{}}var jJ={encode($,Q=new V){if($.index!==void 0)Q.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)oJ.encode($.quickReplyButton,Q.uint32(10).fork()).join();if($.urlButton!==void 0)bJ.encode($.urlButton,Q.uint32(18).fork()).join();if($.callButton!==void 0)cJ.encode($.callButton,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=s5();while(Z.pos<q){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=oJ.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.urlButton=bJ.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.callButton=cJ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return jJ.fromPartial($??{})},fromPartial($){let Q=s5();return Q.index=$.index??void 0,Q.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?oJ.fromPartial($.quickReplyButton):void 0,Q.urlButton=$.urlButton!==void 0&&$.urlButton!==null?bJ.fromPartial($.urlButton):void 0,Q.callButton=$.callButton!==void 0&&$.callButton!==null?cJ.fromPartial($.callButton):void 0,Q}};function e5(){return{}}var cJ={encode($,Q=new V){if($.displayText!==void 0)Q.uint32(10).string($.displayText);if($.phoneNumber!==void 0)Q.uint32(18).string($.phoneNumber);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=e5();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return cJ.fromPartial($??{})},fromPartial($){let Q=e5();return Q.displayText=$.displayText??void 0,Q.phoneNumber=$.phoneNumber??void 0,Q}};function $G(){return{}}var oJ={encode($,Q=new V){if($.displayText!==void 0)Q.uint32(10).string($.displayText);if($.id!==void 0)Q.uint32(18).string($.id);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$G();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return oJ.fromPartial($??{})},fromPartial($){let Q=$G();return Q.displayText=$.displayText??void 0,Q.id=$.id??void 0,Q}};function QG(){return{}}var bJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=QG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return bJ.fromPartial($??{})},fromPartial($){let Q=QG();return Q.displayText=$.displayText??void 0,Q.url=$.url??void 0,Q.consentedUsersUrl=$.consentedUsersUrl??void 0,Q.webviewPresentation=$.webviewPresentation??void 0,Q}};function ZG(){return{}}var jN={encode($,Q=new V){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.privateKey!==void 0)Q.uint32(18).bytes($.privateKey);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ZG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return jN.fromPartial($??{})},fromPartial($){let Q=ZG();return Q.publicKey=$.publicKey??void 0,Q.privateKey=$.privateKey??void 0,Q}};function JG(){return{}}var iJ={encode($,Q=new V){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 Z of $.questions)tJ.encode(Z,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 Z of $.privacyStatementParts)gJ.encode(Z,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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=JG();while(Z.pos<q){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 z=tJ.decode(Z,Z.uint32());if(z!==void 0)K.questions.push(z);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 z=gJ.decode(Z,Z.uint32());if(z!==void 0)K.privacyStatementParts.push(z);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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return iJ.fromPartial($??{})},fromPartial($){let Q=JG();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((Z)=>tJ.fromPartial(Z))||void 0,Q.surveyContinueButtonText=$.surveyContinueButtonText??void 0,Q.surveySubmitButtonText=$.surveySubmitButtonText??void 0,Q.privacyStatementFull=$.privacyStatementFull??void 0,Q.privacyStatementParts=$.privacyStatementParts?.map((Z)=>gJ.fromPartial(Z))||void 0,Q.feedbackToastText=$.feedbackToastText??void 0,Q.startQuestionIndex=$.startQuestionIndex??void 0,Q}};function KG(){return{}}var mJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=KG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return mJ.fromPartial($??{})},fromPartial($){let Q=KG();return Q.stringValue=$.stringValue??void 0,Q.numericValue=$.numericValue??void 0,Q.textTranslated=$.textTranslated??void 0,Q}};function qG(){return{}}var gJ={encode($,Q=new V){if($.text!==void 0)Q.uint32(10).string($.text);if($.url!==void 0)Q.uint32(18).string($.url);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=qG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return gJ.fromPartial($??{})},fromPartial($){let Q=qG();return Q.text=$.text??void 0,Q.url=$.url??void 0,Q}};function XG(){return{}}var tJ={encode($,Q=new V){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 Z of $.questionOptions)mJ.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=XG();while(Z.pos<q){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 z=mJ.decode(Z,Z.uint32());if(z!==void 0)K.questionOptions.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return tJ.fromPartial($??{})},fromPartial($){let Q=XG();return Q.questionText=$.questionText??void 0,Q.questionId=$.questionId??void 0,Q.questionOptions=$.questionOptions?.map((Z)=>mJ.fromPartial(Z))||void 0,Q}};function zG(){return{}}var rJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=zG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return rJ.fromPartial($??{})},fromPartial($){let Q=zG();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 YG(){return{}}var Z0={encode($,Q=new V){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let Z of $.polygonVertices)sq.encode(Z,Q.uint32(10).fork()).join();if($.shouldSkipConfirmation!==void 0)Q.uint32(32).bool($.shouldSkipConfirmation);if($.embeddedContent!==void 0)RJ.encode($.embeddedContent,Q.uint32(42).fork()).join();if($.statusLinkType!==void 0)Q.uint32(64).int32($.statusLinkType);if($.location!==void 0)J8.encode($.location,Q.uint32(18).fork()).join();if($.newsletter!==void 0)q$.encode($.newsletter,Q.uint32(26).fork()).join();if($.embeddedAction!==void 0)Q.uint32(48).bool($.embeddedAction);if($.tapAction!==void 0)C6.encode($.tapAction,Q.uint32(58).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=YG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.polygonVertices===void 0)K.polygonVertices=[];let z=sq.decode(Z,Z.uint32());if(z!==void 0)K.polygonVertices.push(z);continue}case 4:{if(J!==32)break;K.shouldSkipConfirmation=Z.bool();continue}case 5:{if(J!==42)break;K.embeddedContent=RJ.decode(Z,Z.uint32());continue}case 8:{if(J!==64)break;K.statusLinkType=Z.int32();continue}case 2:{if(J!==18)break;K.location=J8.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.newsletter=q$.decode(Z,Z.uint32());continue}case 6:{if(J!==48)break;K.embeddedAction=Z.bool();continue}case 7:{if(J!==58)break;K.tapAction=C6.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Z0.fromPartial($??{})},fromPartial($){let Q=YG();return Q.polygonVertices=$.polygonVertices?.map((Z)=>sq.fromPartial(Z))||void 0,Q.shouldSkipConfirmation=$.shouldSkipConfirmation??void 0,Q.embeddedContent=$.embeddedContent!==void 0&&$.embeddedContent!==null?RJ.fromPartial($.embeddedContent):void 0,Q.statusLinkType=$.statusLinkType??void 0,Q.location=$.location!==void 0&&$.location!==null?J8.fromPartial($.location):void 0,Q.newsletter=$.newsletter!==void 0&&$.newsletter!==null?q$.fromPartial($.newsletter):void 0,Q.embeddedAction=$.embeddedAction??void 0,Q.tapAction=$.tapAction!==void 0&&$.tapAction!==null?C6.fromPartial($.tapAction):void 0,Q}};function VG(){return{}}var aJ={encode($,Q=new V){if($.isGalaxyFlowCompleted!==void 0)Q.uint32(8).bool($.isGalaxyFlowCompleted);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=VG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isGalaxyFlowCompleted=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return aJ.fromPartial($??{})},fromPartial($){let Q=VG();return Q.isGalaxyFlowCompleted=$.isGalaxyFlowCompleted??void 0,Q}};function HG(){return{}}var sJ={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=HG();while(Z.pos<q){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.int64Number();continue}case 3:{if(J!==26)break;K.key=k.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.deviceJid=Z.string();continue}case 5:{if(J!==40)break;K.clientTimestampMs=Z.int64Number();continue}case 6:{if(J!==48)break;K.serverTimestampMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return sJ.fromPartial($??{})},fromPartial($){let Q=HG();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 GG(){return{}}var cN={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=GG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return cN.fromPartial($??{})},fromPartial($){let Q=GG();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 UG(){return{}}var L0={encode($,Q=new V){if($.id!==void 0)Q.uint32(10).bytes($.id);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=UG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return L0.fromPartial($??{})},fromPartial($){let Q=UG();return Q.id=$.id??void 0,Q}};function CG(){return{}}var eJ={encode($,Q=new V){if($.encodedMappingPayload!==void 0)Q.uint32(10).bytes($.encodedMappingPayload);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=CG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.encodedMappingPayload=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return eJ.fromPartial($??{})},fromPartial($){let Q=CG();return Q.encodedMappingPayload=$.encodedMappingPayload??void 0,Q}};function xG(){return{}}var $8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=xG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pn=Z.uint64Number();continue}case 2:{if(J!==16)break;K.assignedLid=Z.uint64Number();continue}case 3:{if(J!==24)break;K.latestLid=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $8.fromPartial($??{})},fromPartial($){let Q=xG();return Q.pn=$.pn??void 0,Q.assignedLid=$.assignedLid??void 0,Q.latestLid=$.latestLid??void 0,Q}};function DG(){return{}}var i6={encode($,Q=new V){if($.pnToLidMappings!==void 0&&$.pnToLidMappings.length!==0)for(let Z of $.pnToLidMappings)$8.encode(Z,Q.uint32(10).fork()).join();if($.chatDbMigrationTimestamp!==void 0)Q.uint32(16).uint64($.chatDbMigrationTimestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=DG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.pnToLidMappings===void 0)K.pnToLidMappings=[];let z=$8.decode(Z,Z.uint32());if(z!==void 0)K.pnToLidMappings.push(z);continue}case 2:{if(J!==16)break;K.chatDbMigrationTimestamp=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return i6.fromPartial($??{})},fromPartial($){let Q=DG();return Q.pnToLidMappings=$.pnToLidMappings?.map((Z)=>$8.fromPartial(Z))||void 0,Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function LG(){return{}}var oN={encode($,Q=new V){if($.createBackupInput!==void 0)UJ.encode($.createBackupInput,Q.uint32(10).fork()).join();if($.encryptMessageInput!==void 0)AJ.encode($.encryptMessageInput,Q.uint32(18).fork()).join();if($.decryptMessageInput!==void 0)CJ.encode($.decryptMessageInput,Q.uint32(26).fork()).join();if($.orfThreadIdInput!==void 0)bq.encode($.orfThreadIdInput,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=LG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.createBackupInput=UJ.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.encryptMessageInput=AJ.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.decryptMessageInput=CJ.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.orfThreadIdInput=bq.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return oN.fromPartial($??{})},fromPartial($){let Q=LG();return Q.createBackupInput=$.createBackupInput!==void 0&&$.createBackupInput!==null?UJ.fromPartial($.createBackupInput):void 0,Q.encryptMessageInput=$.encryptMessageInput!==void 0&&$.encryptMessageInput!==null?AJ.fromPartial($.encryptMessageInput):void 0,Q.decryptMessageInput=$.decryptMessageInput!==void 0&&$.decryptMessageInput!==null?CJ.fromPartial($.decryptMessageInput):void 0,Q.orfThreadIdInput=$.orfThreadIdInput!==void 0&&$.orfThreadIdInput!==null?bq.fromPartial($.orfThreadIdInput):void 0,Q}};function FG(){return{}}var Q8={encode($,Q=new V){if($.eventResponseMessage!==void 0)I0.encode($.eventResponseMessage,Q.uint32(10).fork()).join();if($.pollVote!==void 0)S0.encode($.pollVote,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=FG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eventResponseMessage=I0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.pollVote=S0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Q8.fromPartial($??{})},fromPartial($){let Q=FG();return Q.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?I0.fromPartial($.eventResponseMessage):void 0,Q.pollVote=$.pollVote!==void 0&&$.pollVote!==null?S0.fromPartial($.pollVote):void 0,Q}};function PG(){return{}}var H0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=PG();while(Z.pos<q){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.int64Number();continue}case 4:{if(J!==32)break;K.initiatedByMe=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return H0.fromPartial($??{})},fromPartial($){let Q=PG();return Q.sharingLimited=$.sharingLimited??void 0,Q.trigger=$.trigger??void 0,Q.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,Q.initiatedByMe=$.initiatedByMe??void 0,Q}};function kG(){return{}}var Z8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=kG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Z8.fromPartial($??{})},fromPartial($){let Q=kG();return Q.lg=$.lg??void 0,Q.lc=$.lc??void 0,Q.verifiedName=$.verifiedName??void 0,Q}};function NG(){return{}}var J8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=NG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return J8.fromPartial($??{})},fromPartial($){let Q=NG();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q}};function BG(){return{}}var n0={encode($,Q=new V){if($.localPath!==void 0)Q.uint32(10).string($.localPath);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=BG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.localPath=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return n0.fromPartial($??{})},fromPartial($){let Q=BG();return Q.localPath=$.localPath??void 0,Q}};function RG(){return{}}var K8={encode($,Q=new V){if($.mediaKeyDomain!==void 0)Q.uint32(8).int32($.mediaKeyDomain);if($.e2EeMediaKey!==void 0)Q.uint32(18).bytes($.e2EeMediaKey);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=RG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return K8.fromPartial($??{})},fromPartial($){let Q=RG();return Q.mediaKeyDomain=$.mediaKeyDomain??void 0,Q.e2EeMediaKey=$.e2EeMediaKey??void 0,Q}};function OG(){return{}}var bN={encode($,Q=new V){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)q8.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)X8.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=OG();while(Z.pos<q){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.int64Number();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=q8.decode(Z,Z.uint32());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=X8.decode(Z,Z.uint32());continue}case 16:{if(J!==128)break;K.size=Z.int64Number();continue}case 17:{if(J!==136)break;K.lastDownloadAttemptTimestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return bN.fromPartial($??{})},fromPartial($){let Q=OG();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?q8.fromPartial($.downloadableThumbnail):void 0,Q.handle=$.handle??void 0,Q.filename=$.filename??void 0,Q.progressiveJpegDetails=$.progressiveJpegDetails!==void 0&&$.progressiveJpegDetails!==null?X8.fromPartial($.progressiveJpegDetails):void 0,Q.size=$.size??void 0,Q.lastDownloadAttemptTimestamp=$.lastDownloadAttemptTimestamp??void 0,Q}};function AG(){return{}}var q8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=AG();while(Z.pos<q){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.int64Number();continue}case 6:{if(J!==50)break;K.objectId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return q8.fromPartial($??{})},fromPartial($){let Q=AG();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 EG(){return{}}var X8={encode($,Q=new V){if($.scanLengths!==void 0&&$.scanLengths.length!==0)for(let Z of $.scanLengths)Q.uint32(8).uint32(Z);if($.sidecar!==void 0)Q.uint32(18).bytes($.sidecar);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=EG();while(Z.pos<q){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 z=Z.uint32()+Z.pos;while(Z.pos<z)K.scanLengths.push(Z.uint32());continue}break}case 2:{if(J!==18)break;K.sidecar=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return X8.fromPartial($??{})},fromPartial($){let Q=EG();return Q.scanLengths=$.scanLengths?.map((Z)=>Z)||void 0,Q.sidecar=$.sidecar??void 0,Q}};function MG(){return{}}var z8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=MG();while(Z.pos<q){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.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return z8.fromPartial($??{})},fromPartial($){let Q=MG();return Q.expressPathUrl=$.expressPathUrl??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.fileLength=$.fileLength??void 0,Q}};function WG(){return{}}var m6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=WG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return m6.fromPartial($??{})},fromPartial($){let Q=WG();return Q.stanzaId=$.stanzaId??void 0,Q.directPath=$.directPath??void 0,Q.result=$.result??void 0,Q.messageSecret=$.messageSecret??void 0,Q}};function IG(){return{}}var F0={encode($,Q=new V){if($.label!==void 0)Q.uint32(10).string($.label);if($.labelTimestamp!==void 0)Q.uint32(16).int64($.labelTimestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=IG();while(Z.pos<q){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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return F0.fromPartial($??{})},fromPartial($){let Q=IG();return Q.label=$.label??void 0,Q.labelTimestamp=$.labelTimestamp??void 0,Q}};function SG(){return{}}var Y8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=SG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Y8.fromPartial($??{})},fromPartial($){let Q=SG();return Q.mentionType=$.mentionType??void 0,Q.mentionedJid=$.mentionedJid??void 0,Q.offset=$.offset??void 0,Q.length=$.length??void 0,Q}};function vG(){return{}}var w={encode($,Q=new V){if($.conversation!==void 0)Q.uint32(10).string($.conversation);if($.senderKeyDistributionMessage!==void 0)j0.encode($.senderKeyDistributionMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,Q.uint32(26).fork()).join();if($.contactMessage!==void 0)V$.encode($.contactMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,Q.uint32(42).fork()).join();if($.extendedTextMessage!==void 0)o8.encode($.extendedTextMessage,Q.uint32(50).fork()).join();if($.documentMessage!==void 0)$0.encode($.documentMessage,Q.uint32(58).fork()).join();if($.audioMessage!==void 0)Y$.encode($.audioMessage,Q.uint32(66).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,Q.uint32(74).fork()).join();if($.call!==void 0)R8.encode($.call,Q.uint32(82).fork()).join();if($.chat!==void 0)M8.encode($.chat,Q.uint32(90).fork()).join();if($.protocolMessage!==void 0)Lq.encode($.protocolMessage,Q.uint32(98).fork()).join();if($.contactsArrayMessage!==void 0)l8.encode($.contactsArrayMessage,Q.uint32(106).fork()).join();if($.highlyStructuredMessage!==void 0)c.encode($.highlyStructuredMessage,Q.uint32(114).fork()).join();if($.fastRatchetKeySenderKeyDistributionMessage!==void 0)j0.encode($.fastRatchetKeySenderKeyDistributionMessage,Q.uint32(122).fork()).join();if($.sendPaymentMessage!==void 0)Mq.encode($.sendPaymentMessage,Q.uint32(130).fork()).join();if($.liveLocationMessage!==void 0)G$.encode($.liveLocationMessage,Q.uint32(146).fork()).join();if($.requestPaymentMessage!==void 0)kq.encode($.requestPaymentMessage,Q.uint32(178).fork()).join();if($.declinePaymentRequestMessage!==void 0)u8.encode($.declinePaymentRequestMessage,Q.uint32(186).fork()).join();if($.cancelPaymentRequestMessage!==void 0)E8.encode($.cancelPaymentRequestMessage,Q.uint32(194).fork()).join();if($.templateMessage!==void 0)F$.encode($.templateMessage,Q.uint32(202).fork()).join();if($.stickerMessage!==void 0)L$.encode($.stickerMessage,Q.uint32(210).fork()).join();if($.groupInviteMessage!==void 0)i8.encode($.groupInviteMessage,Q.uint32(226).fork()).join();if($.templateButtonReplyMessage!==void 0)lq.encode($.templateButtonReplyMessage,Q.uint32(234).fork()).join();if($.productMessage!==void 0)D$.encode($.productMessage,Q.uint32(242).fork()).join();if($.deviceSentMessage!==void 0)p8.encode($.deviceSentMessage,Q.uint32(250).fork()).join();if($.messageContextInfo!==void 0)k$.encode($.messageContextInfo,Q.uint32(282).fork()).join();if($.listMessage!==void 0)DK.encode($.listMessage,Q.uint32(290).fork()).join();if($.viewOnceMessage!==void 0)W.encode($.viewOnceMessage,Q.uint32(298).fork()).join();if($.orderMessage!==void 0)IK.encode($.orderMessage,Q.uint32(306).fork()).join();if($.listResponseMessage!==void 0)RK.encode($.listResponseMessage,Q.uint32(314).fork()).join();if($.ephemeralMessage!==void 0)W.encode($.ephemeralMessage,Q.uint32(322).fork()).join();if($.invoiceMessage!==void 0)UK.encode($.invoiceMessage,Q.uint32(330).fork()).join();if($.buttonsMessage!==void 0)F8.encode($.buttonsMessage,Q.uint32(338).fork()).join();if($.buttonsResponseMessage!==void 0)B8.encode($.buttonsResponseMessage,Q.uint32(346).fork()).join();if($.paymentInviteMessage!==void 0)vK.encode($.paymentInviteMessage,Q.uint32(354).fork()).join();if($.interactiveMessage!==void 0)k0.encode($.interactiveMessage,Q.uint32(362).fork()).join();if($.reactionMessage!==void 0)Pq.encode($.reactionMessage,Q.uint32(370).fork()).join();if($.stickerSyncRmrMessage!==void 0)hq.encode($.stickerSyncRmrMessage,Q.uint32(378).fork()).join();if($.interactiveResponseMessage!==void 0)VK.encode($.interactiveResponseMessage,Q.uint32(386).fork()).join();if($.pollCreationMessage!==void 0)e.encode($.pollCreationMessage,Q.uint32(394).fork()).join();if($.pollUpdateMessage!==void 0)Cq.encode($.pollUpdateMessage,Q.uint32(402).fork()).join();if($.keepInChatMessage!==void 0)CK.encode($.keepInChatMessage,Q.uint32(410).fork()).join();if($.documentWithCaptionMessage!==void 0)W.encode($.documentWithCaptionMessage,Q.uint32(426).fork()).join();if($.requestPhoneNumberMessage!==void 0)Nq.encode($.requestPhoneNumberMessage,Q.uint32(434).fork()).join();if($.viewOnceMessageV2!==void 0)W.encode($.viewOnceMessageV2,Q.uint32(442).fork()).join();if($.encReactionMessage!==void 0)d8.encode($.encReactionMessage,Q.uint32(450).fork()).join();if($.editedMessage!==void 0)W.encode($.editedMessage,Q.uint32(466).fork()).join();if($.viewOnceMessageV2Extension!==void 0)W.encode($.viewOnceMessageV2Extension,Q.uint32(474).fork()).join();if($.pollCreationMessageV2!==void 0)e.encode($.pollCreationMessageV2,Q.uint32(482).fork()).join();if($.scheduledCallCreationMessage!==void 0)Oq.encode($.scheduledCallCreationMessage,Q.uint32(490).fork()).join();if($.groupMentionedMessage!==void 0)W.encode($.groupMentionedMessage,Q.uint32(498).fork()).join();if($.pinInChatMessage!==void 0)Yq.encode($.pinInChatMessage,Q.uint32(506).fork()).join();if($.pollCreationMessageV3!==void 0)e.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)W.encode($.botInvokeMessage,Q.uint32(538).fork()).join();if($.callLogMesssage!==void 0)O8.encode($.callLogMesssage,Q.uint32(554).fork()).join();if($.messageHistoryBundle!==void 0)U$.encode($.messageHistoryBundle,Q.uint32(562).fork()).join();if($.encCommentMessage!==void 0)w8.encode($.encCommentMessage,Q.uint32(570).fork()).join();if($.bcallMessage!==void 0)L8.encode($.bcallMessage,Q.uint32(578).fork()).join();if($.lottieStickerMessage!==void 0)W.encode($.lottieStickerMessage,Q.uint32(594).fork()).join();if($.eventMessage!==void 0)c8.encode($.eventMessage,Q.uint32(602).fork()).join();if($.encEventResponseMessage!==void 0)n8.encode($.encEventResponseMessage,Q.uint32(610).fork()).join();if($.commentMessage!==void 0)_8.encode($.commentMessage,Q.uint32(618).fork()).join();if($.newsletterAdminInviteMessage!==void 0)MK.encode($.newsletterAdminInviteMessage,Q.uint32(626).fork()).join();if($.placeholderMessage!==void 0)Vq.encode($.placeholderMessage,Q.uint32(642).fork()).join();if($.secretEncryptedMessage!==void 0)Eq.encode($.secretEncryptedMessage,Q.uint32(658).fork()).join();if($.albumMessage!==void 0)V8.encode($.albumMessage,Q.uint32(666).fork()).join();if($.eventCoverImage!==void 0)W.encode($.eventCoverImage,Q.uint32(682).fork()).join();if($.stickerPackMessage!==void 0)fq.encode($.stickerPackMessage,Q.uint32(690).fork()).join();if($.statusMentionMessage!==void 0)W.encode($.statusMentionMessage,Q.uint32(698).fork()).join();if($.pollResultSnapshotMessage!==void 0)d0.encode($.pollResultSnapshotMessage,Q.uint32(706).fork()).join();if($.pollCreationOptionImageMessage!==void 0)W.encode($.pollCreationOptionImageMessage,Q.uint32(722).fork()).join();if($.associatedChildMessage!==void 0)W.encode($.associatedChildMessage,Q.uint32(730).fork()).join();if($.groupStatusMentionMessage!==void 0)W.encode($.groupStatusMentionMessage,Q.uint32(738).fork()).join();if($.pollCreationMessageV4!==void 0)W.encode($.pollCreationMessageV4,Q.uint32(746).fork()).join();if($.statusAddYours!==void 0)W.encode($.statusAddYours,Q.uint32(762).fork()).join();if($.groupStatusMessage!==void 0)W.encode($.groupStatusMessage,Q.uint32(770).fork()).join();if($.richResponseMessage!==void 0)XQ.encode($.richResponseMessage,Q.uint32(778).fork()).join();if($.statusNotificationMessage!==void 0)Sq.encode($.statusNotificationMessage,Q.uint32(786).fork()).join();if($.limitSharingMessage!==void 0)W.encode($.limitSharingMessage,Q.uint32(794).fork()).join();if($.botTaskMessage!==void 0)W.encode($.botTaskMessage,Q.uint32(802).fork()).join();if($.questionMessage!==void 0)W.encode($.questionMessage,Q.uint32(810).fork()).join();if($.messageHistoryNotice!==void 0)EK.encode($.messageHistoryNotice,Q.uint32(818).fork()).join();if($.groupStatusMessageV2!==void 0)W.encode($.groupStatusMessageV2,Q.uint32(826).fork()).join();if($.botForwardedMessage!==void 0)W.encode($.botForwardedMessage,Q.uint32(834).fork()).join();if($.statusQuestionAnswerMessage!==void 0)vq.encode($.statusQuestionAnswerMessage,Q.uint32(842).fork()).join();if($.questionReplyMessage!==void 0)W.encode($.questionReplyMessage,Q.uint32(850).fork()).join();if($.questionResponseMessage!==void 0)Fq.encode($.questionResponseMessage,Q.uint32(858).fork()).join();if($.statusQuotedMessage!==void 0)Tq.encode($.statusQuotedMessage,Q.uint32(874).fork()).join();if($.statusStickerInteractionMessage!==void 0)yq.encode($.statusStickerInteractionMessage,Q.uint32(882).fork()).join();if($.pollCreationMessageV5!==void 0)e.encode($.pollCreationMessageV5,Q.uint32(890).fork()).join();if($.newsletterFollowerInviteMessageV2!==void 0)WK.encode($.newsletterFollowerInviteMessageV2,Q.uint32(906).fork()).join();if($.pollResultSnapshotMessageV3!==void 0)d0.encode($.pollResultSnapshotMessageV3,Q.uint32(922).fork()).join();if($.newsletterAdminProfileMessage!==void 0)W.encode($.newsletterAdminProfileMessage,Q.uint32(930).fork()).join();if($.newsletterAdminProfileMessageV2!==void 0)W.encode($.newsletterAdminProfileMessageV2,Q.uint32(938).fork()).join();if($.spoilerMessage!==void 0)W.encode($.spoilerMessage,Q.uint32(946).fork()).join();if($.pollCreationMessageV6!==void 0)e.encode($.pollCreationMessageV6,Q.uint32(954).fork()).join();if($.conditionalRevealMessage!==void 0)h8.encode($.conditionalRevealMessage,Q.uint32(962).fork()).join();if($.pollAddOptionMessage!==void 0)Hq.encode($.pollAddOptionMessage,Q.uint32(970).fork()).join();if($.eventInviteMessage!==void 0)j8.encode($.eventInviteMessage,Q.uint32(978).fork()).join();if($.groupRootKeyShare!==void 0)hJ.encode($.groupRootKeyShare,Q.uint32(986).fork()).join();if($.paymentReminderMessage!==void 0)_K.encode($.paymentReminderMessage,Q.uint32(994).fork()).join();if($.splitPaymentMessage!==void 0)Wq.encode($.splitPaymentMessage,Q.uint32(1002).fork()).join();if($.newsletterAdminProfileStatusMessage!==void 0)W.encode($.newsletterAdminProfileStatusMessage,Q.uint32(1010).fork()).join();if($.rootSecretDistributeMessage!==void 0)Rq.encode($.rootSecretDistributeMessage,Q.uint32(1018).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=vG();while(Z.pos<q){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=j0.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.imageMessage=i.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.contactMessage=V$.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.locationMessage=a.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.extendedTextMessage=o8.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.documentMessage=$0.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.audioMessage=Y$.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.videoMessage=t.decode(Z,Z.uint32());continue}case 10:{if(J!==82)break;K.call=R8.decode(Z,Z.uint32());continue}case 11:{if(J!==90)break;K.chat=M8.decode(Z,Z.uint32());continue}case 12:{if(J!==98)break;K.protocolMessage=Lq.decode(Z,Z.uint32());continue}case 13:{if(J!==106)break;K.contactsArrayMessage=l8.decode(Z,Z.uint32());continue}case 14:{if(J!==114)break;K.highlyStructuredMessage=c.decode(Z,Z.uint32());continue}case 15:{if(J!==122)break;K.fastRatchetKeySenderKeyDistributionMessage=j0.decode(Z,Z.uint32());continue}case 16:{if(J!==130)break;K.sendPaymentMessage=Mq.decode(Z,Z.uint32());continue}case 18:{if(J!==146)break;K.liveLocationMessage=G$.decode(Z,Z.uint32());continue}case 22:{if(J!==178)break;K.requestPaymentMessage=kq.decode(Z,Z.uint32());continue}case 23:{if(J!==186)break;K.declinePaymentRequestMessage=u8.decode(Z,Z.uint32());continue}case 24:{if(J!==194)break;K.cancelPaymentRequestMessage=E8.decode(Z,Z.uint32());continue}case 25:{if(J!==202)break;K.templateMessage=F$.decode(Z,Z.uint32());continue}case 26:{if(J!==210)break;K.stickerMessage=L$.decode(Z,Z.uint32());continue}case 28:{if(J!==226)break;K.groupInviteMessage=i8.decode(Z,Z.uint32());continue}case 29:{if(J!==234)break;K.templateButtonReplyMessage=lq.decode(Z,Z.uint32());continue}case 30:{if(J!==242)break;K.productMessage=D$.decode(Z,Z.uint32());continue}case 31:{if(J!==250)break;K.deviceSentMessage=p8.decode(Z,Z.uint32());continue}case 35:{if(J!==282)break;K.messageContextInfo=k$.decode(Z,Z.uint32());continue}case 36:{if(J!==290)break;K.listMessage=DK.decode(Z,Z.uint32());continue}case 37:{if(J!==298)break;K.viewOnceMessage=W.decode(Z,Z.uint32());continue}case 38:{if(J!==306)break;K.orderMessage=IK.decode(Z,Z.uint32());continue}case 39:{if(J!==314)break;K.listResponseMessage=RK.decode(Z,Z.uint32());continue}case 40:{if(J!==322)break;K.ephemeralMessage=W.decode(Z,Z.uint32());continue}case 41:{if(J!==330)break;K.invoiceMessage=UK.decode(Z,Z.uint32());continue}case 42:{if(J!==338)break;K.buttonsMessage=F8.decode(Z,Z.uint32());continue}case 43:{if(J!==346)break;K.buttonsResponseMessage=B8.decode(Z,Z.uint32());continue}case 44:{if(J!==354)break;K.paymentInviteMessage=vK.decode(Z,Z.uint32());continue}case 45:{if(J!==362)break;K.interactiveMessage=k0.decode(Z,Z.uint32());continue}case 46:{if(J!==370)break;K.reactionMessage=Pq.decode(Z,Z.uint32());continue}case 47:{if(J!==378)break;K.stickerSyncRmrMessage=hq.decode(Z,Z.uint32());continue}case 48:{if(J!==386)break;K.interactiveResponseMessage=VK.decode(Z,Z.uint32());continue}case 49:{if(J!==394)break;K.pollCreationMessage=e.decode(Z,Z.uint32());continue}case 50:{if(J!==402)break;K.pollUpdateMessage=Cq.decode(Z,Z.uint32());continue}case 51:{if(J!==410)break;K.keepInChatMessage=CK.decode(Z,Z.uint32());continue}case 53:{if(J!==426)break;K.documentWithCaptionMessage=W.decode(Z,Z.uint32());continue}case 54:{if(J!==434)break;K.requestPhoneNumberMessage=Nq.decode(Z,Z.uint32());continue}case 55:{if(J!==442)break;K.viewOnceMessageV2=W.decode(Z,Z.uint32());continue}case 56:{if(J!==450)break;K.encReactionMessage=d8.decode(Z,Z.uint32());continue}case 58:{if(J!==466)break;K.editedMessage=W.decode(Z,Z.uint32());continue}case 59:{if(J!==474)break;K.viewOnceMessageV2Extension=W.decode(Z,Z.uint32());continue}case 60:{if(J!==482)break;K.pollCreationMessageV2=e.decode(Z,Z.uint32());continue}case 61:{if(J!==490)break;K.scheduledCallCreationMessage=Oq.decode(Z,Z.uint32());continue}case 62:{if(J!==498)break;K.groupMentionedMessage=W.decode(Z,Z.uint32());continue}case 63:{if(J!==506)break;K.pinInChatMessage=Yq.decode(Z,Z.uint32());continue}case 64:{if(J!==514)break;K.pollCreationMessageV3=e.decode(Z,Z.uint32());continue}case 65:{if(J!==522)break;K.scheduledCallEditMessage=Aq.decode(Z,Z.uint32());continue}case 66:{if(J!==530)break;K.ptvMessage=t.decode(Z,Z.uint32());continue}case 67:{if(J!==538)break;K.botInvokeMessage=W.decode(Z,Z.uint32());continue}case 69:{if(J!==554)break;K.callLogMesssage=O8.decode(Z,Z.uint32());continue}case 70:{if(J!==562)break;K.messageHistoryBundle=U$.decode(Z,Z.uint32());continue}case 71:{if(J!==570)break;K.encCommentMessage=w8.decode(Z,Z.uint32());continue}case 72:{if(J!==578)break;K.bcallMessage=L8.decode(Z,Z.uint32());continue}case 74:{if(J!==594)break;K.lottieStickerMessage=W.decode(Z,Z.uint32());continue}case 75:{if(J!==602)break;K.eventMessage=c8.decode(Z,Z.uint32());continue}case 76:{if(J!==610)break;K.encEventResponseMessage=n8.decode(Z,Z.uint32());continue}case 77:{if(J!==618)break;K.commentMessage=_8.decode(Z,Z.uint32());continue}case 78:{if(J!==626)break;K.newsletterAdminInviteMessage=MK.decode(Z,Z.uint32());continue}case 80:{if(J!==642)break;K.placeholderMessage=Vq.decode(Z,Z.uint32());continue}case 82:{if(J!==658)break;K.secretEncryptedMessage=Eq.decode(Z,Z.uint32());continue}case 83:{if(J!==666)break;K.albumMessage=V8.decode(Z,Z.uint32());continue}case 85:{if(J!==682)break;K.eventCoverImage=W.decode(Z,Z.uint32());continue}case 86:{if(J!==690)break;K.stickerPackMessage=fq.decode(Z,Z.uint32());continue}case 87:{if(J!==698)break;K.statusMentionMessage=W.decode(Z,Z.uint32());continue}case 88:{if(J!==706)break;K.pollResultSnapshotMessage=d0.decode(Z,Z.uint32());continue}case 90:{if(J!==722)break;K.pollCreationOptionImageMessage=W.decode(Z,Z.uint32());continue}case 91:{if(J!==730)break;K.associatedChildMessage=W.decode(Z,Z.uint32());continue}case 92:{if(J!==738)break;K.groupStatusMentionMessage=W.decode(Z,Z.uint32());continue}case 93:{if(J!==746)break;K.pollCreationMessageV4=W.decode(Z,Z.uint32());continue}case 95:{if(J!==762)break;K.statusAddYours=W.decode(Z,Z.uint32());continue}case 96:{if(J!==770)break;K.groupStatusMessage=W.decode(Z,Z.uint32());continue}case 97:{if(J!==778)break;K.richResponseMessage=XQ.decode(Z,Z.uint32());continue}case 98:{if(J!==786)break;K.statusNotificationMessage=Sq.decode(Z,Z.uint32());continue}case 99:{if(J!==794)break;K.limitSharingMessage=W.decode(Z,Z.uint32());continue}case 100:{if(J!==802)break;K.botTaskMessage=W.decode(Z,Z.uint32());continue}case 101:{if(J!==810)break;K.questionMessage=W.decode(Z,Z.uint32());continue}case 102:{if(J!==818)break;K.messageHistoryNotice=EK.decode(Z,Z.uint32());continue}case 103:{if(J!==826)break;K.groupStatusMessageV2=W.decode(Z,Z.uint32());continue}case 104:{if(J!==834)break;K.botForwardedMessage=W.decode(Z,Z.uint32());continue}case 105:{if(J!==842)break;K.statusQuestionAnswerMessage=vq.decode(Z,Z.uint32());continue}case 106:{if(J!==850)break;K.questionReplyMessage=W.decode(Z,Z.uint32());continue}case 107:{if(J!==858)break;K.questionResponseMessage=Fq.decode(Z,Z.uint32());continue}case 109:{if(J!==874)break;K.statusQuotedMessage=Tq.decode(Z,Z.uint32());continue}case 110:{if(J!==882)break;K.statusStickerInteractionMessage=yq.decode(Z,Z.uint32());continue}case 111:{if(J!==890)break;K.pollCreationMessageV5=e.decode(Z,Z.uint32());continue}case 113:{if(J!==906)break;K.newsletterFollowerInviteMessageV2=WK.decode(Z,Z.uint32());continue}case 115:{if(J!==922)break;K.pollResultSnapshotMessageV3=d0.decode(Z,Z.uint32());continue}case 116:{if(J!==930)break;K.newsletterAdminProfileMessage=W.decode(Z,Z.uint32());continue}case 117:{if(J!==938)break;K.newsletterAdminProfileMessageV2=W.decode(Z,Z.uint32());continue}case 118:{if(J!==946)break;K.spoilerMessage=W.decode(Z,Z.uint32());continue}case 119:{if(J!==954)break;K.pollCreationMessageV6=e.decode(Z,Z.uint32());continue}case 120:{if(J!==962)break;K.conditionalRevealMessage=h8.decode(Z,Z.uint32());continue}case 121:{if(J!==970)break;K.pollAddOptionMessage=Hq.decode(Z,Z.uint32());continue}case 122:{if(J!==978)break;K.eventInviteMessage=j8.decode(Z,Z.uint32());continue}case 123:{if(J!==986)break;K.groupRootKeyShare=hJ.decode(Z,Z.uint32());continue}case 124:{if(J!==994)break;K.paymentReminderMessage=_K.decode(Z,Z.uint32());continue}case 125:{if(J!==1002)break;K.splitPaymentMessage=Wq.decode(Z,Z.uint32());continue}case 126:{if(J!==1010)break;K.newsletterAdminProfileStatusMessage=W.decode(Z,Z.uint32());continue}case 127:{if(J!==1018)break;K.rootSecretDistributeMessage=Rq.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return w.fromPartial($??{})},fromPartial($){let Q=vG();return Q.conversation=$.conversation??void 0,Q.senderKeyDistributionMessage=$.senderKeyDistributionMessage!==void 0&&$.senderKeyDistributionMessage!==null?j0.fromPartial($.senderKeyDistributionMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,Q.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?V$.fromPartial($.contactMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,Q.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?o8.fromPartial($.extendedTextMessage):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?Y$.fromPartial($.audioMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,Q.call=$.call!==void 0&&$.call!==null?R8.fromPartial($.call):void 0,Q.chat=$.chat!==void 0&&$.chat!==null?M8.fromPartial($.chat):void 0,Q.protocolMessage=$.protocolMessage!==void 0&&$.protocolMessage!==null?Lq.fromPartial($.protocolMessage):void 0,Q.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?l8.fromPartial($.contactsArrayMessage):void 0,Q.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?c.fromPartial($.highlyStructuredMessage):void 0,Q.fastRatchetKeySenderKeyDistributionMessage=$.fastRatchetKeySenderKeyDistributionMessage!==void 0&&$.fastRatchetKeySenderKeyDistributionMessage!==null?j0.fromPartial($.fastRatchetKeySenderKeyDistributionMessage):void 0,Q.sendPaymentMessage=$.sendPaymentMessage!==void 0&&$.sendPaymentMessage!==null?Mq.fromPartial($.sendPaymentMessage):void 0,Q.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?G$.fromPartial($.liveLocationMessage):void 0,Q.requestPaymentMessage=$.requestPaymentMessage!==void 0&&$.requestPaymentMessage!==null?kq.fromPartial($.requestPaymentMessage):void 0,Q.declinePaymentRequestMessage=$.declinePaymentRequestMessage!==void 0&&$.declinePaymentRequestMessage!==null?u8.fromPartial($.declinePaymentRequestMessage):void 0,Q.cancelPaymentRequestMessage=$.cancelPaymentRequestMessage!==void 0&&$.cancelPaymentRequestMessage!==null?E8.fromPartial($.cancelPaymentRequestMessage):void 0,Q.templateMessage=$.templateMessage!==void 0&&$.templateMessage!==null?F$.fromPartial($.templateMessage):void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?L$.fromPartial($.stickerMessage):void 0,Q.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?i8.fromPartial($.groupInviteMessage):void 0,Q.templateButtonReplyMessage=$.templateButtonReplyMessage!==void 0&&$.templateButtonReplyMessage!==null?lq.fromPartial($.templateButtonReplyMessage):void 0,Q.productMessage=$.productMessage!==void 0&&$.productMessage!==null?D$.fromPartial($.productMessage):void 0,Q.deviceSentMessage=$.deviceSentMessage!==void 0&&$.deviceSentMessage!==null?p8.fromPartial($.deviceSentMessage):void 0,Q.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?k$.fromPartial($.messageContextInfo):void 0,Q.listMessage=$.listMessage!==void 0&&$.listMessage!==null?DK.fromPartial($.listMessage):void 0,Q.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?W.fromPartial($.viewOnceMessage):void 0,Q.orderMessage=$.orderMessage!==void 0&&$.orderMessage!==null?IK.fromPartial($.orderMessage):void 0,Q.listResponseMessage=$.listResponseMessage!==void 0&&$.listResponseMessage!==null?RK.fromPartial($.listResponseMessage):void 0,Q.ephemeralMessage=$.ephemeralMessage!==void 0&&$.ephemeralMessage!==null?W.fromPartial($.ephemeralMessage):void 0,Q.invoiceMessage=$.invoiceMessage!==void 0&&$.invoiceMessage!==null?UK.fromPartial($.invoiceMessage):void 0,Q.buttonsMessage=$.buttonsMessage!==void 0&&$.buttonsMessage!==null?F8.fromPartial($.buttonsMessage):void 0,Q.buttonsResponseMessage=$.buttonsResponseMessage!==void 0&&$.buttonsResponseMessage!==null?B8.fromPartial($.buttonsResponseMessage):void 0,Q.paymentInviteMessage=$.paymentInviteMessage!==void 0&&$.paymentInviteMessage!==null?vK.fromPartial($.paymentInviteMessage):void 0,Q.interactiveMessage=$.interactiveMessage!==void 0&&$.interactiveMessage!==null?k0.fromPartial($.interactiveMessage):void 0,Q.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?Pq.fromPartial($.reactionMessage):void 0,Q.stickerSyncRmrMessage=$.stickerSyncRmrMessage!==void 0&&$.stickerSyncRmrMessage!==null?hq.fromPartial($.stickerSyncRmrMessage):void 0,Q.interactiveResponseMessage=$.interactiveResponseMessage!==void 0&&$.interactiveResponseMessage!==null?VK.fromPartial($.interactiveResponseMessage):void 0,Q.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?e.fromPartial($.pollCreationMessage):void 0,Q.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?Cq.fromPartial($.pollUpdateMessage):void 0,Q.keepInChatMessage=$.keepInChatMessage!==void 0&&$.keepInChatMessage!==null?CK.fromPartial($.keepInChatMessage):void 0,Q.documentWithCaptionMessage=$.documentWithCaptionMessage!==void 0&&$.documentWithCaptionMessage!==null?W.fromPartial($.documentWithCaptionMessage):void 0,Q.requestPhoneNumberMessage=$.requestPhoneNumberMessage!==void 0&&$.requestPhoneNumberMessage!==null?Nq.fromPartial($.requestPhoneNumberMessage):void 0,Q.viewOnceMessageV2=$.viewOnceMessageV2!==void 0&&$.viewOnceMessageV2!==null?W.fromPartial($.viewOnceMessageV2):void 0,Q.encReactionMessage=$.encReactionMessage!==void 0&&$.encReactionMessage!==null?d8.fromPartial($.encReactionMessage):void 0,Q.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?W.fromPartial($.editedMessage):void 0,Q.viewOnceMessageV2Extension=$.viewOnceMessageV2Extension!==void 0&&$.viewOnceMessageV2Extension!==null?W.fromPartial($.viewOnceMessageV2Extension):void 0,Q.pollCreationMessageV2=$.pollCreationMessageV2!==void 0&&$.pollCreationMessageV2!==null?e.fromPartial($.pollCreationMessageV2):void 0,Q.scheduledCallCreationMessage=$.scheduledCallCreationMessage!==void 0&&$.scheduledCallCreationMessage!==null?Oq.fromPartial($.scheduledCallCreationMessage):void 0,Q.groupMentionedMessage=$.groupMentionedMessage!==void 0&&$.groupMentionedMessage!==null?W.fromPartial($.groupMentionedMessage):void 0,Q.pinInChatMessage=$.pinInChatMessage!==void 0&&$.pinInChatMessage!==null?Yq.fromPartial($.pinInChatMessage):void 0,Q.pollCreationMessageV3=$.pollCreationMessageV3!==void 0&&$.pollCreationMessageV3!==null?e.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?W.fromPartial($.botInvokeMessage):void 0,Q.callLogMesssage=$.callLogMesssage!==void 0&&$.callLogMesssage!==null?O8.fromPartial($.callLogMesssage):void 0,Q.messageHistoryBundle=$.messageHistoryBundle!==void 0&&$.messageHistoryBundle!==null?U$.fromPartial($.messageHistoryBundle):void 0,Q.encCommentMessage=$.encCommentMessage!==void 0&&$.encCommentMessage!==null?w8.fromPartial($.encCommentMessage):void 0,Q.bcallMessage=$.bcallMessage!==void 0&&$.bcallMessage!==null?L8.fromPartial($.bcallMessage):void 0,Q.lottieStickerMessage=$.lottieStickerMessage!==void 0&&$.lottieStickerMessage!==null?W.fromPartial($.lottieStickerMessage):void 0,Q.eventMessage=$.eventMessage!==void 0&&$.eventMessage!==null?c8.fromPartial($.eventMessage):void 0,Q.encEventResponseMessage=$.encEventResponseMessage!==void 0&&$.encEventResponseMessage!==null?n8.fromPartial($.encEventResponseMessage):void 0,Q.commentMessage=$.commentMessage!==void 0&&$.commentMessage!==null?_8.fromPartial($.commentMessage):void 0,Q.newsletterAdminInviteMessage=$.newsletterAdminInviteMessage!==void 0&&$.newsletterAdminInviteMessage!==null?MK.fromPartial($.newsletterAdminInviteMessage):void 0,Q.placeholderMessage=$.placeholderMessage!==void 0&&$.placeholderMessage!==null?Vq.fromPartial($.placeholderMessage):void 0,Q.secretEncryptedMessage=$.secretEncryptedMessage!==void 0&&$.secretEncryptedMessage!==null?Eq.fromPartial($.secretEncryptedMessage):void 0,Q.albumMessage=$.albumMessage!==void 0&&$.albumMessage!==null?V8.fromPartial($.albumMessage):void 0,Q.eventCoverImage=$.eventCoverImage!==void 0&&$.eventCoverImage!==null?W.fromPartial($.eventCoverImage):void 0,Q.stickerPackMessage=$.stickerPackMessage!==void 0&&$.stickerPackMessage!==null?fq.fromPartial($.stickerPackMessage):void 0,Q.statusMentionMessage=$.statusMentionMessage!==void 0&&$.statusMentionMessage!==null?W.fromPartial($.statusMentionMessage):void 0,Q.pollResultSnapshotMessage=$.pollResultSnapshotMessage!==void 0&&$.pollResultSnapshotMessage!==null?d0.fromPartial($.pollResultSnapshotMessage):void 0,Q.pollCreationOptionImageMessage=$.pollCreationOptionImageMessage!==void 0&&$.pollCreationOptionImageMessage!==null?W.fromPartial($.pollCreationOptionImageMessage):void 0,Q.associatedChildMessage=$.associatedChildMessage!==void 0&&$.associatedChildMessage!==null?W.fromPartial($.associatedChildMessage):void 0,Q.groupStatusMentionMessage=$.groupStatusMentionMessage!==void 0&&$.groupStatusMentionMessage!==null?W.fromPartial($.groupStatusMentionMessage):void 0,Q.pollCreationMessageV4=$.pollCreationMessageV4!==void 0&&$.pollCreationMessageV4!==null?W.fromPartial($.pollCreationMessageV4):void 0,Q.statusAddYours=$.statusAddYours!==void 0&&$.statusAddYours!==null?W.fromPartial($.statusAddYours):void 0,Q.groupStatusMessage=$.groupStatusMessage!==void 0&&$.groupStatusMessage!==null?W.fromPartial($.groupStatusMessage):void 0,Q.richResponseMessage=$.richResponseMessage!==void 0&&$.richResponseMessage!==null?XQ.fromPartial($.richResponseMessage):void 0,Q.statusNotificationMessage=$.statusNotificationMessage!==void 0&&$.statusNotificationMessage!==null?Sq.fromPartial($.statusNotificationMessage):void 0,Q.limitSharingMessage=$.limitSharingMessage!==void 0&&$.limitSharingMessage!==null?W.fromPartial($.limitSharingMessage):void 0,Q.botTaskMessage=$.botTaskMessage!==void 0&&$.botTaskMessage!==null?W.fromPartial($.botTaskMessage):void 0,Q.questionMessage=$.questionMessage!==void 0&&$.questionMessage!==null?W.fromPartial($.questionMessage):void 0,Q.messageHistoryNotice=$.messageHistoryNotice!==void 0&&$.messageHistoryNotice!==null?EK.fromPartial($.messageHistoryNotice):void 0,Q.groupStatusMessageV2=$.groupStatusMessageV2!==void 0&&$.groupStatusMessageV2!==null?W.fromPartial($.groupStatusMessageV2):void 0,Q.botForwardedMessage=$.botForwardedMessage!==void 0&&$.botForwardedMessage!==null?W.fromPartial($.botForwardedMessage):void 0,Q.statusQuestionAnswerMessage=$.statusQuestionAnswerMessage!==void 0&&$.statusQuestionAnswerMessage!==null?vq.fromPartial($.statusQuestionAnswerMessage):void 0,Q.questionReplyMessage=$.questionReplyMessage!==void 0&&$.questionReplyMessage!==null?W.fromPartial($.questionReplyMessage):void 0,Q.questionResponseMessage=$.questionResponseMessage!==void 0&&$.questionResponseMessage!==null?Fq.fromPartial($.questionResponseMessage):void 0,Q.statusQuotedMessage=$.statusQuotedMessage!==void 0&&$.statusQuotedMessage!==null?Tq.fromPartial($.statusQuotedMessage):void 0,Q.statusStickerInteractionMessage=$.statusStickerInteractionMessage!==void 0&&$.statusStickerInteractionMessage!==null?yq.fromPartial($.statusStickerInteractionMessage):void 0,Q.pollCreationMessageV5=$.pollCreationMessageV5!==void 0&&$.pollCreationMessageV5!==null?e.fromPartial($.pollCreationMessageV5):void 0,Q.newsletterFollowerInviteMessageV2=$.newsletterFollowerInviteMessageV2!==void 0&&$.newsletterFollowerInviteMessageV2!==null?WK.fromPartial($.newsletterFollowerInviteMessageV2):void 0,Q.pollResultSnapshotMessageV3=$.pollResultSnapshotMessageV3!==void 0&&$.pollResultSnapshotMessageV3!==null?d0.fromPartial($.pollResultSnapshotMessageV3):void 0,Q.newsletterAdminProfileMessage=$.newsletterAdminProfileMessage!==void 0&&$.newsletterAdminProfileMessage!==null?W.fromPartial($.newsletterAdminProfileMessage):void 0,Q.newsletterAdminProfileMessageV2=$.newsletterAdminProfileMessageV2!==void 0&&$.newsletterAdminProfileMessageV2!==null?W.fromPartial($.newsletterAdminProfileMessageV2):void 0,Q.spoilerMessage=$.spoilerMessage!==void 0&&$.spoilerMessage!==null?W.fromPartial($.spoilerMessage):void 0,Q.pollCreationMessageV6=$.pollCreationMessageV6!==void 0&&$.pollCreationMessageV6!==null?e.fromPartial($.pollCreationMessageV6):void 0,Q.conditionalRevealMessage=$.conditionalRevealMessage!==void 0&&$.conditionalRevealMessage!==null?h8.fromPartial($.conditionalRevealMessage):void 0,Q.pollAddOptionMessage=$.pollAddOptionMessage!==void 0&&$.pollAddOptionMessage!==null?Hq.fromPartial($.pollAddOptionMessage):void 0,Q.eventInviteMessage=$.eventInviteMessage!==void 0&&$.eventInviteMessage!==null?j8.fromPartial($.eventInviteMessage):void 0,Q.groupRootKeyShare=$.groupRootKeyShare!==void 0&&$.groupRootKeyShare!==null?hJ.fromPartial($.groupRootKeyShare):void 0,Q.paymentReminderMessage=$.paymentReminderMessage!==void 0&&$.paymentReminderMessage!==null?_K.fromPartial($.paymentReminderMessage):void 0,Q.splitPaymentMessage=$.splitPaymentMessage!==void 0&&$.splitPaymentMessage!==null?Wq.fromPartial($.splitPaymentMessage):void 0,Q.newsletterAdminProfileStatusMessage=$.newsletterAdminProfileStatusMessage!==void 0&&$.newsletterAdminProfileStatusMessage!==null?W.fromPartial($.newsletterAdminProfileStatusMessage):void 0,Q.rootSecretDistributeMessage=$.rootSecretDistributeMessage!==void 0&&$.rootSecretDistributeMessage!==null?Rq.fromPartial($.rootSecretDistributeMessage):void 0,Q}};function TG(){return{}}var V8={encode($,Q=new V){if($.expectedImageCount!==void 0)Q.uint32(16).uint32($.expectedImageCount);if($.expectedVideoCount!==void 0)Q.uint32(24).uint32($.expectedVideoCount);if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=TG();while(Z.pos<q){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=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return V8.fromPartial($??{})},fromPartial($){let Q=TG();return Q.expectedImageCount=$.expectedImageCount??void 0,Q.expectedVideoCount=$.expectedVideoCount??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q}};function yG(){return{}}var H8={encode($,Q=new V){if($.collectionNames!==void 0&&$.collectionNames.length!==0)for(let Z of $.collectionNames)Q.uint32(10).string(Z);if($.timestamp!==void 0)Q.uint32(16).int64($.timestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=yG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.collectionNames===void 0)K.collectionNames=[];let z=Z.string();if(z!==void 0)K.collectionNames.push(z);continue}case 2:{if(J!==16)break;K.timestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return H8.fromPartial($??{})},fromPartial($){let Q=yG();return Q.collectionNames=$.collectionNames?.map((Z)=>Z)||void 0,Q.timestamp=$.timestamp??void 0,Q}};function fG(){return{}}var G8={encode($,Q=new V){if($.keyId!==void 0)z$.encode($.keyId,Q.uint32(10).fork()).join();if($.keyData!==void 0)U8.encode($.keyData,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=fG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.keyId=z$.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.keyData=U8.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return G8.fromPartial($??{})},fromPartial($){let Q=fG();return Q.keyId=$.keyId!==void 0&&$.keyId!==null?z$.fromPartial($.keyId):void 0,Q.keyData=$.keyData!==void 0&&$.keyData!==null?U8.fromPartial($.keyData):void 0,Q}};function _G(){return{}}var U8={encode($,Q=new V){if($.keyData!==void 0)Q.uint32(10).bytes($.keyData);if($.fingerprint!==void 0)C8.encode($.fingerprint,Q.uint32(18).fork()).join();if($.timestamp!==void 0)Q.uint32(24).int64($.timestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_G();while(Z.pos<q){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=C8.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.timestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return U8.fromPartial($??{})},fromPartial($){let Q=_G();return Q.keyData=$.keyData??void 0,Q.fingerprint=$.fingerprint!==void 0&&$.fingerprint!==null?C8.fromPartial($.fingerprint):void 0,Q.timestamp=$.timestamp??void 0,Q}};function hG(){return{}}var C8={encode($,Q=new V){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 Z of $.deviceIndexes)Q.uint32(Z);Q.join()}return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=hG();while(Z.pos<q){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 z=Z.uint32()+Z.pos;while(Z.pos<z)K.deviceIndexes.push(Z.uint32());continue}break}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return C8.fromPartial($??{})},fromPartial($){let Q=hG();return Q.rawId=$.rawId??void 0,Q.currentIndex=$.currentIndex??void 0,Q.deviceIndexes=$.deviceIndexes?.map((Z)=>Z)||void 0,Q}};function lG(){return{}}var z$={encode($,Q=new V){if($.keyId!==void 0)Q.uint32(10).bytes($.keyId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=lG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.keyId=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return z$.fromPartial($??{})},fromPartial($){let Q=lG();return Q.keyId=$.keyId??void 0,Q}};function uG(){return{}}var x8={encode($,Q=new V){if($.keyIds!==void 0&&$.keyIds.length!==0)for(let Z of $.keyIds)z$.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=uG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.keyIds===void 0)K.keyIds=[];let z=z$.decode(Z,Z.uint32());if(z!==void 0)K.keyIds.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return x8.fromPartial($??{})},fromPartial($){let Q=uG();return Q.keyIds=$.keyIds?.map((Z)=>z$.fromPartial(Z))||void 0,Q}};function pG(){return{}}var D8={encode($,Q=new V){if($.keys!==void 0&&$.keys.length!==0)for(let Z of $.keys)G8.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=pG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.keys===void 0)K.keys=[];let z=G8.decode(Z,Z.uint32());if(z!==void 0)K.keys.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return D8.fromPartial($??{})},fromPartial($){let Q=pG();return Q.keys=$.keys?.map((Z)=>G8.fromPartial(Z))||void 0,Q}};function wG(){return{}}var Y$={encode($,Q=new V){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)A.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=wG();while(Z.pos<q){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.uint64Number();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.int64Number();continue}case 17:{if(J!==138)break;K.contextInfo=A.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Y$.fromPartial($??{})},fromPartial($){let Q=wG();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?A.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 nG(){return{}}var L8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=nG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return L8.fromPartial($??{})},fromPartial($){let Q=nG();return Q.sessionId=$.sessionId??void 0,Q.mediaType=$.mediaType??void 0,Q.masterKey=$.masterKey??void 0,Q.caption=$.caption??void 0,Q}};function dG(){return{}}var F8={encode($,Q=new V){if($.contentText!==void 0)Q.uint32(50).string($.contentText);if($.footerText!==void 0)Q.uint32(58).string($.footerText);if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(66).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let Z of $.buttons)P8.encode(Z,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)$0.encode($.documentMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=dG();while(Z.pos<q){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=A.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;if(K.buttons===void 0)K.buttons=[];let z=P8.decode(Z,Z.uint32());if(z!==void 0)K.buttons.push(z);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=$0.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.imageMessage=i.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.videoMessage=t.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.locationMessage=a.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return F8.fromPartial($??{})},fromPartial($){let Q=dG();return Q.contentText=$.contentText??void 0,Q.footerText=$.footerText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.buttons=$.buttons?.map((Z)=>P8.fromPartial(Z))||void 0,Q.headerType=$.headerType??void 0,Q.text=$.text??void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,Q}};function jG(){return{}}var P8={encode($,Q=new V){if($.buttonId!==void 0)Q.uint32(10).string($.buttonId);if($.buttonText!==void 0)k8.encode($.buttonText,Q.uint32(18).fork()).join();if($.type!==void 0)Q.uint32(24).int32($.type);if($.nativeFlowInfo!==void 0)N8.encode($.nativeFlowInfo,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=jG();while(Z.pos<q){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=k8.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.type=Z.int32();continue}case 4:{if(J!==34)break;K.nativeFlowInfo=N8.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return P8.fromPartial($??{})},fromPartial($){let Q=jG();return Q.buttonId=$.buttonId??void 0,Q.buttonText=$.buttonText!==void 0&&$.buttonText!==null?k8.fromPartial($.buttonText):void 0,Q.type=$.type??void 0,Q.nativeFlowInfo=$.nativeFlowInfo!==void 0&&$.nativeFlowInfo!==null?N8.fromPartial($.nativeFlowInfo):void 0,Q}};function cG(){return{}}var k8={encode($,Q=new V){if($.displayText!==void 0)Q.uint32(10).string($.displayText);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=cG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return k8.fromPartial($??{})},fromPartial($){let Q=cG();return Q.displayText=$.displayText??void 0,Q}};function oG(){return{}}var N8={encode($,Q=new V){if($.name!==void 0)Q.uint32(10).string($.name);if($.paramsJson!==void 0)Q.uint32(18).string($.paramsJson);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=oG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return N8.fromPartial($??{})},fromPartial($){let Q=oG();return Q.name=$.name??void 0,Q.paramsJson=$.paramsJson??void 0,Q}};function bG(){return{}}var B8={encode($,Q=new V){if($.selectedButtonId!==void 0)Q.uint32(10).string($.selectedButtonId);if($.contextInfo!==void 0)A.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=bG();while(Z.pos<q){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=A.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return B8.fromPartial($??{})},fromPartial($){let Q=bG();return Q.selectedButtonId=$.selectedButtonId??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.type=$.type??void 0,Q.selectedDisplayText=$.selectedDisplayText??void 0,Q}};function iG(){return{}}var R8={encode($,Q=new V){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)A.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)k$.encode($.messageContextInfo,Q.uint32(82).fork()).join();if($.callEntryPoint!==void 0)Q.uint32(88).uint32($.callEntryPoint);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=iG();while(Z.pos<q){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=A.decode(Z,Z.uint32());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=k$.decode(Z,Z.uint32());continue}case 11:{if(J!==88)break;K.callEntryPoint=Z.uint32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return R8.fromPartial($??{})},fromPartial($){let Q=iG();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?A.fromPartial($.contextInfo):void 0,Q.nativeFlowCallButtonPayload=$.nativeFlowCallButtonPayload??void 0,Q.deeplinkPayload=$.deeplinkPayload??void 0,Q.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?k$.fromPartial($.messageContextInfo):void 0,Q.callEntryPoint=$.callEntryPoint??void 0,Q}};function mG(){return{}}var O8={encode($,Q=new V){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 Z of $.participants)A8.encode(Z,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=mG();while(Z.pos<q){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.int64Number();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 z=A8.decode(Z,Z.uint32());if(z!==void 0)K.participants.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return O8.fromPartial($??{})},fromPartial($){let Q=mG();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((Z)=>A8.fromPartial(Z))||void 0,Q}};function gG(){return{}}var A8={encode($,Q=new V){if($.jid!==void 0)Q.uint32(10).string($.jid);if($.callOutcome!==void 0)Q.uint32(16).int32($.callOutcome);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=gG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return A8.fromPartial($??{})},fromPartial($){let Q=gG();return Q.jid=$.jid??void 0,Q.callOutcome=$.callOutcome??void 0,Q}};function tG(){return{}}var E8={encode($,Q=new V){if($.key!==void 0)k.encode($.key,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=tG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return E8.fromPartial($??{})},fromPartial($){let Q=tG();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q}};function rG(){return{}}var M8={encode($,Q=new V){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.id!==void 0)Q.uint32(18).string($.id);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=rG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return M8.fromPartial($??{})},fromPartial($){let Q=rG();return Q.displayName=$.displayName??void 0,Q.id=$.id??void 0,Q}};function aG(){return{}}var W8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=aG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return W8.fromPartial($??{})},fromPartial($){let Q=aG();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 sG(){return{}}var I8={encode($,Q=new V){if($.isDoodleEnabled!==void 0)Q.uint32(8).bool($.isDoodleEnabled);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=sG();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isDoodleEnabled=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return I8.fromPartial($??{})},fromPartial($){let Q=sG();return Q.isDoodleEnabled=$.isDoodleEnabled??void 0,Q}};function eG(){return{}}var S8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=eG();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return S8.fromPartial($??{})},fromPartial($){let Q=eG();return Q.colorLight=$.colorLight??void 0,Q.colorDark=$.colorDark??void 0,Q.isDoodleEnabled=$.isDoodleEnabled??void 0,Q}};function $U(){return{}}var v8={encode($,Q=new V){if($.stockImageId!==void 0)Q.uint32(10).string($.stockImageId);if($.dimLevel!==void 0)Q.uint32(21).float($.dimLevel);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$U();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return v8.fromPartial($??{})},fromPartial($){let Q=$U();return Q.stockImageId=$.stockImageId??void 0,Q.dimLevel=$.dimLevel??void 0,Q}};function QU(){return{}}var T8={encode($,Q=new V){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)I8.encode($.defaultWallpaper,Q.uint32(82).fork()).join();if($.solidColor!==void 0)S8.encode($.solidColor,Q.uint32(90).fork()).join();if($.stockImage!==void 0)v8.encode($.stockImage,Q.uint32(98).fork()).join();if($.customImage!==void 0)W8.encode($.customImage,Q.uint32(106).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=QU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.settingTimestampMs=Z.int64Number();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=I8.decode(Z,Z.uint32());continue}case 11:{if(J!==90)break;K.solidColor=S8.decode(Z,Z.uint32());continue}case 12:{if(J!==98)break;K.stockImage=v8.decode(Z,Z.uint32());continue}case 13:{if(J!==106)break;K.customImage=W8.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return T8.fromPartial($??{})},fromPartial($){let Q=QU();return Q.settingTimestampMs=$.settingTimestampMs??void 0,Q.clearTheme=$.clearTheme??void 0,Q.colorSchemeId=$.colorSchemeId??void 0,Q.defaultWallpaper=$.defaultWallpaper!==void 0&&$.defaultWallpaper!==null?I8.fromPartial($.defaultWallpaper):void 0,Q.solidColor=$.solidColor!==void 0&&$.solidColor!==null?S8.fromPartial($.solidColor):void 0,Q.stockImage=$.stockImage!==void 0&&$.stockImage!==null?v8.fromPartial($.stockImage):void 0,Q.customImage=$.customImage!==void 0&&$.customImage!==null?W8.fromPartial($.customImage):void 0,Q}};function ZU(){return{}}var y8={encode($,Q=new V){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)f8.encode($.notificationContent,Q.uint32(42).fork()).join();if($.shouldSuppressNotification!==void 0)Q.uint32(48).bool($.shouldSuppressNotification);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ZU();while(Z.pos<q){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.int64Number();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=f8.decode(Z,Z.uint32());continue}case 6:{if(J!==48)break;K.shouldSuppressNotification=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return y8.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?f8.fromPartial($.notificationContent):void 0,Q.shouldSuppressNotification=$.shouldSuppressNotification??void 0,Q}};function JU(){return{}}var f8={encode($,Q=new V){if($.handoffNotificationText!==void 0)Q.uint32(10).string($.handoffNotificationText);if($.extraJson!==void 0)Q.uint32(18).string($.extraJson);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=JU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return f8.fromPartial($??{})},fromPartial($){let Q=JU();return Q.handoffNotificationText=$.handoffNotificationText??void 0,Q.extraJson=$.extraJson??void 0,Q}};function KU(){return{}}var _8={encode($,Q=new V){if($.message!==void 0)w.encode($.message,Q.uint32(10).fork()).join();if($.targetMessageKey!==void 0)k.encode($.targetMessageKey,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=KU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.message=w.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.targetMessageKey=k.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _8.fromPartial($??{})},fromPartial($){let Q=KU();return Q.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?k.fromPartial($.targetMessageKey):void 0,Q}};function qU(){return{}}var h8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=qU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return h8.fromPartial($??{})},fromPartial($){let Q=qU();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q.conditionalRevealMessageType=$.conditionalRevealMessageType??void 0,Q.revealKeyId=$.revealKeyId??void 0,Q}};function XU(){return{}}var V$={encode($,Q=new V){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.vcard!==void 0)Q.uint32(130).string($.vcard);if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(138).fork()).join();if($.isSelfContact!==void 0)Q.uint32(144).bool($.isSelfContact);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=XU();while(Z.pos<q){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=A.decode(Z,Z.uint32());continue}case 18:{if(J!==144)break;K.isSelfContact=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return V$.fromPartial($??{})},fromPartial($){let Q=XU();return Q.displayName=$.displayName??void 0,Q.vcard=$.vcard??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.isSelfContact=$.isSelfContact??void 0,Q}};function zU(){return{}}var l8={encode($,Q=new V){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let Z of $.contacts)V$.encode(Z,Q.uint32(18).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=zU();while(Z.pos<q){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 z=V$.decode(Z,Z.uint32());if(z!==void 0)K.contacts.push(z);continue}case 17:{if(J!==138)break;K.contextInfo=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return l8.fromPartial($??{})},fromPartial($){let Q=zU();return Q.displayName=$.displayName??void 0,Q.contacts=$.contacts?.map((Z)=>V$.fromPartial(Z))||void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q}};function YU(){return{}}var u8={encode($,Q=new V){if($.key!==void 0)k.encode($.key,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=YU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return u8.fromPartial($??{})},fromPartial($){let Q=YU();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q}};function VU(){return{}}var p8={encode($,Q=new V){if($.destinationJid!==void 0)Q.uint32(10).string($.destinationJid);if($.message!==void 0)w.encode($.message,Q.uint32(18).fork()).join();if($.phash!==void 0)Q.uint32(26).string($.phash);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=VU();while(Z.pos<q){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=w.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.phash=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return p8.fromPartial($??{})},fromPartial($){let Q=VU();return Q.destinationJid=$.destinationJid??void 0,Q.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,Q.phash=$.phash??void 0,Q}};function HU(){return{}}var $0={encode($,Q=new V){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)A.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=HU();while(Z.pos<q){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.uint64Number();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.int64Number();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=A.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $0.fromPartial($??{})},fromPartial($){let Q=HU();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?A.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 GU(){return{}}var w8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=GU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.targetMessageKey=k.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return w8.fromPartial($??{})},fromPartial($){let Q=GU();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 UU(){return{}}var n8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=UU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.eventCreationMessageKey=k.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return n8.fromPartial($??{})},fromPartial($){let Q=UU();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 CU(){return{}}var d8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=CU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.targetMessageKey=k.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return d8.fromPartial($??{})},fromPartial($){let Q=CU();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 xU(){return{}}var j8={encode($,Q=new V){if($.contextInfo!==void 0)A.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=xU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=A.decode(Z,Z.uint32());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.int64Number();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.int64Number();continue}case 9:{if(J!==74)break;K.callLink=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return j8.fromPartial($??{})},fromPartial($){let Q=xU();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.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 DU(){return{}}var c8={encode($,Q=new V){if($.contextInfo!==void 0)A.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)a.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=DU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=A.decode(Z,Z.uint32());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=a.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.joinLink=Z.string();continue}case 7:{if(J!==56)break;K.startTime=Z.int64Number();continue}case 8:{if(J!==64)break;K.endTime=Z.int64Number();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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return c8.fromPartial($??{})},fromPartial($){let Q=DU();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.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?a.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 LU(){return{}}var I0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=LU();while(Z.pos<q){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.int64Number();continue}case 3:{if(J!==24)break;K.extraGuestCount=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return I0.fromPartial($??{})},fromPartial($){let Q=LU();return Q.response=$.response??void 0,Q.timestampMs=$.timestampMs??void 0,Q.extraGuestCount=$.extraGuestCount??void 0,Q}};function FU(){return{}}var o8={encode($,Q=new V){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)A.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)AK.encode($.faviconMMSMetadata,Q.uint32(266).fork()).join();if($.linkPreviewMetadata!==void 0)xK.encode($.linkPreviewMetadata,Q.uint32(274).fork()).join();if($.paymentLinkMetadata!==void 0)x$.encode($.paymentLinkMetadata,Q.uint32(282).fork()).join();if($.endCardTiles!==void 0&&$.endCardTiles.length!==0)for(let Z of $.endCardTiles)wq.encode(Z,Q.uint32(290).fork()).join();if($.videoContentUrl!==void 0)Q.uint32(298).string($.videoContentUrl);if($.musicMetadata!==void 0)D0.encode($.musicMetadata,Q.uint32(306).fork()).join();if($.paymentExtendedMetadata!==void 0)SK.encode($.paymentExtendedMetadata,Q.uint32(314).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=FU();while(Z.pos<q){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=A.decode(Z,Z.uint32());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.int64Number();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=AK.decode(Z,Z.uint32());continue}case 34:{if(J!==274)break;K.linkPreviewMetadata=xK.decode(Z,Z.uint32());continue}case 35:{if(J!==282)break;K.paymentLinkMetadata=x$.decode(Z,Z.uint32());continue}case 36:{if(J!==290)break;if(K.endCardTiles===void 0)K.endCardTiles=[];let z=wq.decode(Z,Z.uint32());if(z!==void 0)K.endCardTiles.push(z);continue}case 37:{if(J!==298)break;K.videoContentUrl=Z.string();continue}case 38:{if(J!==306)break;K.musicMetadata=D0.decode(Z,Z.uint32());continue}case 39:{if(J!==314)break;K.paymentExtendedMetadata=SK.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return o8.fromPartial($??{})},fromPartial($){let Q=FU();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?A.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?AK.fromPartial($.faviconMMSMetadata):void 0,Q.linkPreviewMetadata=$.linkPreviewMetadata!==void 0&&$.linkPreviewMetadata!==null?xK.fromPartial($.linkPreviewMetadata):void 0,Q.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?x$.fromPartial($.paymentLinkMetadata):void 0,Q.endCardTiles=$.endCardTiles?.map((Z)=>wq.fromPartial(Z))||void 0,Q.videoContentUrl=$.videoContentUrl??void 0,Q.musicMetadata=$.musicMetadata!==void 0&&$.musicMetadata!==null?D0.fromPartial($.musicMetadata):void 0,Q.paymentExtendedMetadata=$.paymentExtendedMetadata!==void 0&&$.paymentExtendedMetadata!==null?SK.fromPartial($.paymentExtendedMetadata):void 0,Q}};function PU(){return{}}var b8={encode($,Q=new V){if($.historyFromTimestamp!==void 0)Q.uint32(8).uint64($.historyFromTimestamp);if($.historyDurationDays!==void 0)Q.uint32(16).uint32($.historyDurationDays);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=PU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.historyFromTimestamp=Z.uint64Number();continue}case 2:{if(J!==16)break;K.historyDurationDays=Z.uint32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return b8.fromPartial($??{})},fromPartial($){let Q=PU();return Q.historyFromTimestamp=$.historyFromTimestamp??void 0,Q.historyDurationDays=$.historyDurationDays??void 0,Q}};function kU(){return{}}var P0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=kU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return P0.fromPartial($??{})},fromPartial($){let Q=kU();return Q.requestId=$.requestId??void 0,Q.businessProduct=$.businessProduct??void 0,Q.opaqueClientData=$.opaqueClientData??void 0,Q}};function NU(){return{}}var W={encode($,Q=new V){if($.message!==void 0)w.encode($.message,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=NU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.message=w.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return W.fromPartial($??{})},fromPartial($){let Q=NU();return Q.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,Q}};function BU(){return{}}var i8={encode($,Q=new V){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)A.encode($.contextInfo,Q.uint32(58).fork()).join();if($.groupType!==void 0)Q.uint32(64).int32($.groupType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=BU();while(Z.pos<q){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.int64Number();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=A.decode(Z,Z.uint32());continue}case 8:{if(J!==64)break;K.groupType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return i8.fromPartial($??{})},fromPartial($){let Q=BU();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?A.fromPartial($.contextInfo):void 0,Q.groupType=$.groupType??void 0,Q}};function RU(){return{}}var c={encode($,Q=new V){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 Z of $.params)Q.uint32(26).string(Z);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 Z of $.localizableParams)m8.encode(Z,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)F$.encode($.hydratedHsm,Q.uint32(74).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=RU();while(Z.pos<q){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 z=Z.string();if(z!==void 0)K.params.push(z);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 z=m8.decode(Z,Z.uint32());if(z!==void 0)K.localizableParams.push(z);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=F$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return c.fromPartial($??{})},fromPartial($){let Q=RU();return Q.namespace=$.namespace??void 0,Q.elementName=$.elementName??void 0,Q.params=$.params?.map((Z)=>Z)||void 0,Q.fallbackLg=$.fallbackLg??void 0,Q.fallbackLc=$.fallbackLc??void 0,Q.localizableParams=$.localizableParams?.map((Z)=>m8.fromPartial(Z))||void 0,Q.deterministicLg=$.deterministicLg??void 0,Q.deterministicLc=$.deterministicLc??void 0,Q.hydratedHsm=$.hydratedHsm!==void 0&&$.hydratedHsm!==null?F$.fromPartial($.hydratedHsm):void 0,Q}};function OU(){return{}}var m8={encode($,Q=new V){if($.default!==void 0)Q.uint32(10).string($.default);if($.currency!==void 0)g8.encode($.currency,Q.uint32(18).fork()).join();if($.dateTime!==void 0)t8.encode($.dateTime,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=OU();while(Z.pos<q){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=g8.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.dateTime=t8.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return m8.fromPartial($??{})},fromPartial($){let Q=OU();return Q.default=$.default??void 0,Q.currency=$.currency!==void 0&&$.currency!==null?g8.fromPartial($.currency):void 0,Q.dateTime=$.dateTime!==void 0&&$.dateTime!==null?t8.fromPartial($.dateTime):void 0,Q}};function AU(){return{}}var g8={encode($,Q=new V){if($.currencyCode!==void 0)Q.uint32(10).string($.currencyCode);if($.amount1000!==void 0)Q.uint32(16).int64($.amount1000);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=AU();while(Z.pos<q){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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return g8.fromPartial($??{})},fromPartial($){let Q=AU();return Q.currencyCode=$.currencyCode??void 0,Q.amount1000=$.amount1000??void 0,Q}};function EU(){return{}}var t8={encode($,Q=new V){if($.component!==void 0)r8.encode($.component,Q.uint32(10).fork()).join();if($.unixEpoch!==void 0)a8.encode($.unixEpoch,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=EU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.component=r8.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.unixEpoch=a8.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return t8.fromPartial($??{})},fromPartial($){let Q=EU();return Q.component=$.component!==void 0&&$.component!==null?r8.fromPartial($.component):void 0,Q.unixEpoch=$.unixEpoch!==void 0&&$.unixEpoch!==null?a8.fromPartial($.unixEpoch):void 0,Q}};function MU(){return{}}var r8={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=MU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return r8.fromPartial($??{})},fromPartial($){let Q=MU();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 WU(){return{}}var a8={encode($,Q=new V){if($.timestamp!==void 0)Q.uint32(8).int64($.timestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=WU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.timestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return a8.fromPartial($??{})},fromPartial($){let Q=WU();return Q.timestamp=$.timestamp??void 0,Q}};function IU(){return{}}var s8={encode($,Q=new V){if($.completeAccessGranted!==void 0)Q.uint32(8).bool($.completeAccessGranted);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=IU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.completeAccessGranted=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return s8.fromPartial($??{})},fromPartial($){let Q=IU();return Q.completeAccessGranted=$.completeAccessGranted??void 0,Q}};function SU(){return{}}var e8={encode($,Q=new V){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)P0.encode($.fullHistorySyncOnDemandRequestMetadata,Q.uint32(106).fork()).join();if($.encHandle!==void 0)Q.uint32(114).string($.encHandle);if($.messageAccessStatus!==void 0)s8.encode($.messageAccessStatus,Q.uint32(122).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=SU();while(Z.pos<q){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.uint64Number();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.int64Number();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=P0.decode(Z,Z.uint32());continue}case 14:{if(J!==114)break;K.encHandle=Z.string();continue}case 15:{if(J!==122)break;K.messageAccessStatus=s8.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return e8.fromPartial($??{})},fromPartial($){let Q=SU();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?P0.fromPartial($.fullHistorySyncOnDemandRequestMetadata):void 0,Q.encHandle=$.encHandle??void 0,Q.messageAccessStatus=$.messageAccessStatus!==void 0&&$.messageAccessStatus!==null?s8.fromPartial($.messageAccessStatus):void 0,Q}};function vU(){return{}}var i={encode($,Q=new V){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 Z of $.interactiveAnnotations)Z0.encode(Z,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)A.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 Z of $.scanLengths)Q.uint32(176).uint32(Z);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 Z of $.annotations)Z0.encode(Z,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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=vU();while(Z.pos<q){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.uint64Number();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 z=Z0.decode(Z,Z.uint32());if(z!==void 0)K.interactiveAnnotations.push(z);continue}case 11:{if(J!==90)break;K.directPath=Z.string();continue}case 12:{if(J!==96)break;K.mediaKeyTimestamp=Z.int64Number();continue}case 16:{if(J!==130)break;K.jpegThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.contextInfo=A.decode(Z,Z.uint32());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 z=Z.uint32()+Z.pos;while(Z.pos<z)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 z=Z0.decode(Z,Z.uint32());if(z!==void 0)K.annotations.push(z);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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return i.fromPartial($??{})},fromPartial($){let Q=vU();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((Z)=>Z0.fromPartial(Z))||void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.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((Z)=>Z)||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((Z)=>Z0.fromPartial(Z))||void 0,Q.imageSourceType=$.imageSourceType??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.qrUrl=$.qrUrl??void 0,Q}};function TU(){return{}}var $K={encode($,Q=new V){if($.securityNotificationEnabled!==void 0)Q.uint32(8).bool($.securityNotificationEnabled);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=TU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.securityNotificationEnabled=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $K.fromPartial($??{})},fromPartial($){let Q=TU();return Q.securityNotificationEnabled=$.securityNotificationEnabled??void 0,Q}};function yU(){return{}}var k0={encode($,Q=new V){if($.header!==void 0)qK.encode($.header,Q.uint32(10).fork()).join();if($.body!==void 0)QK.encode($.body,Q.uint32(18).fork()).join();if($.footer!==void 0)KK.encode($.footer,Q.uint32(26).fork()).join();if($.bloksWidget!==void 0)H$.encode($.bloksWidget,Q.uint32(66).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(122).fork()).join();if($.urlTrackingMap!==void 0)O$.encode($.urlTrackingMap,Q.uint32(130).fork()).join();if($.shopStorefrontMessage!==void 0)YK.encode($.shopStorefrontMessage,Q.uint32(34).fork()).join();if($.collectionMessage!==void 0)JK.encode($.collectionMessage,Q.uint32(42).fork()).join();if($.nativeFlowMessage!==void 0)XK.encode($.nativeFlowMessage,Q.uint32(50).fork()).join();if($.carouselMessage!==void 0)ZK.encode($.carouselMessage,Q.uint32(58).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=yU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.header=qK.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.body=QK.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.footer=KK.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.bloksWidget=H$.decode(Z,Z.uint32());continue}case 15:{if(J!==122)break;K.contextInfo=A.decode(Z,Z.uint32());continue}case 16:{if(J!==130)break;K.urlTrackingMap=O$.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.shopStorefrontMessage=YK.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.collectionMessage=JK.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.nativeFlowMessage=XK.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.carouselMessage=ZK.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return k0.fromPartial($??{})},fromPartial($){let Q=yU();return Q.header=$.header!==void 0&&$.header!==null?qK.fromPartial($.header):void 0,Q.body=$.body!==void 0&&$.body!==null?QK.fromPartial($.body):void 0,Q.footer=$.footer!==void 0&&$.footer!==null?KK.fromPartial($.footer):void 0,Q.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?H$.fromPartial($.bloksWidget):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?O$.fromPartial($.urlTrackingMap):void 0,Q.shopStorefrontMessage=$.shopStorefrontMessage!==void 0&&$.shopStorefrontMessage!==null?YK.fromPartial($.shopStorefrontMessage):void 0,Q.collectionMessage=$.collectionMessage!==void 0&&$.collectionMessage!==null?JK.fromPartial($.collectionMessage):void 0,Q.nativeFlowMessage=$.nativeFlowMessage!==void 0&&$.nativeFlowMessage!==null?XK.fromPartial($.nativeFlowMessage):void 0,Q.carouselMessage=$.carouselMessage!==void 0&&$.carouselMessage!==null?ZK.fromPartial($.carouselMessage):void 0,Q}};function fU(){return{}}var H$={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=fU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return H$.fromPartial($??{})},fromPartial($){let Q=fU();return Q.uuid=$.uuid??void 0,Q.data=$.data??void 0,Q.type=$.type??void 0,Q.fallback=$.fallback??void 0,Q}};function _U(){return{}}var QK={encode($,Q=new V){if($.text!==void 0)Q.uint32(10).string($.text);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_U();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.text=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return QK.fromPartial($??{})},fromPartial($){let Q=_U();return Q.text=$.text??void 0,Q}};function hU(){return{}}var ZK={encode($,Q=new V){if($.cards!==void 0&&$.cards.length!==0)for(let Z of $.cards)k0.encode(Z,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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=hU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.cards===void 0)K.cards=[];let z=k0.decode(Z,Z.uint32());if(z!==void 0)K.cards.push(z);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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return ZK.fromPartial($??{})},fromPartial($){let Q=hU();return Q.cards=$.cards?.map((Z)=>k0.fromPartial(Z))||void 0,Q.messageVersion=$.messageVersion??void 0,Q.carouselCardType=$.carouselCardType??void 0,Q}};function lU(){return{}}var JK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=lU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return JK.fromPartial($??{})},fromPartial($){let Q=lU();return Q.bizJid=$.bizJid??void 0,Q.id=$.id??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function uU(){return{}}var KK={encode($,Q=new V){if($.text!==void 0)Q.uint32(10).string($.text);if($.hasMediaAttachment!==void 0)Q.uint32(24).bool($.hasMediaAttachment);if($.audioMessage!==void 0)Y$.encode($.audioMessage,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=uU();while(Z.pos<q){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=Y$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return KK.fromPartial($??{})},fromPartial($){let Q=uU();return Q.text=$.text??void 0,Q.hasMediaAttachment=$.hasMediaAttachment??void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?Y$.fromPartial($.audioMessage):void 0,Q}};function pU(){return{}}var qK={encode($,Q=new V){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)H$.encode($.bloksWidget,Q.uint32(82).fork()).join();if($.documentMessage!==void 0)$0.encode($.documentMessage,Q.uint32(26).fork()).join();if($.imageMessage!==void 0)i.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)a.encode($.locationMessage,Q.uint32(66).fork()).join();if($.productMessage!==void 0)D$.encode($.productMessage,Q.uint32(74).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=pU();while(Z.pos<q){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=H$.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.documentMessage=$0.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.imageMessage=i.decode(Z,Z.uint32());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());continue}case 8:{if(J!==66)break;K.locationMessage=a.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.productMessage=D$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return qK.fromPartial($??{})},fromPartial($){let Q=pU();return Q.title=$.title??void 0,Q.subtitle=$.subtitle??void 0,Q.hasMediaAttachment=$.hasMediaAttachment??void 0,Q.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?H$.fromPartial($.bloksWidget):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.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?a.fromPartial($.locationMessage):void 0,Q.productMessage=$.productMessage!==void 0&&$.productMessage!==null?D$.fromPartial($.productMessage):void 0,Q}};function wU(){return{}}var XK={encode($,Q=new V){if($.buttons!==void 0&&$.buttons.length!==0)for(let Z of $.buttons)zK.encode(Z,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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=wU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.buttons===void 0)K.buttons=[];let z=zK.decode(Z,Z.uint32());if(z!==void 0)K.buttons.push(z);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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return XK.fromPartial($??{})},fromPartial($){let Q=wU();return Q.buttons=$.buttons?.map((Z)=>zK.fromPartial(Z))||void 0,Q.messageParamsJson=$.messageParamsJson??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function nU(){return{}}var zK={encode($,Q=new V){if($.name!==void 0)Q.uint32(10).string($.name);if($.buttonParamsJson!==void 0)Q.uint32(18).string($.buttonParamsJson);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=nU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return zK.fromPartial($??{})},fromPartial($){let Q=nU();return Q.name=$.name??void 0,Q.buttonParamsJson=$.buttonParamsJson??void 0,Q}};function dU(){return{}}var YK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=dU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return YK.fromPartial($??{})},fromPartial($){let Q=dU();return Q.id=$.id??void 0,Q.surface=$.surface??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function jU(){return{}}var VK={encode($,Q=new V){if($.body!==void 0)HK.encode($.body,Q.uint32(10).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(122).fork()).join();if($.nativeFlowResponseMessage!==void 0)GK.encode($.nativeFlowResponseMessage,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=jU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.body=HK.decode(Z,Z.uint32());continue}case 15:{if(J!==122)break;K.contextInfo=A.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.nativeFlowResponseMessage=GK.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return VK.fromPartial($??{})},fromPartial($){let Q=jU();return Q.body=$.body!==void 0&&$.body!==null?HK.fromPartial($.body):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.nativeFlowResponseMessage=$.nativeFlowResponseMessage!==void 0&&$.nativeFlowResponseMessage!==null?GK.fromPartial($.nativeFlowResponseMessage):void 0,Q}};function cU(){return{}}var HK={encode($,Q=new V){if($.text!==void 0)Q.uint32(10).string($.text);if($.format!==void 0)Q.uint32(16).int32($.format);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=cU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return HK.fromPartial($??{})},fromPartial($){let Q=cU();return Q.text=$.text??void 0,Q.format=$.format??void 0,Q}};function oU(){return{}}var GK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=oU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return GK.fromPartial($??{})},fromPartial($){let Q=oU();return Q.name=$.name??void 0,Q.paramsJson=$.paramsJson??void 0,Q.version=$.version??void 0,Q}};function bU(){return{}}var UK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=bU();while(Z.pos<q){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.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return UK.fromPartial($??{})},fromPartial($){let Q=bU();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 iU(){return{}}var CK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=iU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.keepType=Z.int32();continue}case 3:{if(J!==24)break;K.timestampMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return CK.fromPartial($??{})},fromPartial($){let Q=iU();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 mU(){return{}}var xK={encode($,Q=new V){if($.paymentLinkMetadata!==void 0)x$.encode($.paymentLinkMetadata,Q.uint32(10).fork()).join();if($.urlMetadata!==void 0)pq.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)D0.encode($.musicMetadata,Q.uint32(66).fork()).join();if($.videoContentCaption!==void 0)Q.uint32(74).string($.videoContentCaption);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=mU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.paymentLinkMetadata=x$.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.urlMetadata=pq.decode(Z,Z.uint32());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=D0.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.videoContentCaption=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return xK.fromPartial($??{})},fromPartial($){let Q=mU();return Q.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?x$.fromPartial($.paymentLinkMetadata):void 0,Q.urlMetadata=$.urlMetadata!==void 0&&$.urlMetadata!==null?pq.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?D0.fromPartial($.musicMetadata):void 0,Q.videoContentCaption=$.videoContentCaption??void 0,Q}};function gU(){return{}}var DK={encode($,Q=new V){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 Z of $.sections)BK.encode(Z,Q.uint32(42).fork()).join();if($.productListInfo!==void 0)PK.encode($.productListInfo,Q.uint32(50).fork()).join();if($.footerText!==void 0)Q.uint32(58).string($.footerText);if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(66).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=gU();while(Z.pos<q){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 z=BK.decode(Z,Z.uint32());if(z!==void 0)K.sections.push(z);continue}case 6:{if(J!==50)break;K.productListInfo=PK.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.footerText=Z.string();continue}case 8:{if(J!==66)break;K.contextInfo=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return DK.fromPartial($??{})},fromPartial($){let Q=gU();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((Z)=>BK.fromPartial(Z))||void 0,Q.productListInfo=$.productListInfo!==void 0&&$.productListInfo!==null?PK.fromPartial($.productListInfo):void 0,Q.footerText=$.footerText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q}};function tU(){return{}}var LK={encode($,Q=new V){if($.productId!==void 0)Q.uint32(10).string($.productId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=tU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.productId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return LK.fromPartial($??{})},fromPartial($){let Q=tU();return Q.productId=$.productId??void 0,Q}};function rU(){return{}}var FK={encode($,Q=new V){if($.productId!==void 0)Q.uint32(10).string($.productId);if($.jpegThumbnail!==void 0)Q.uint32(18).bytes($.jpegThumbnail);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=rU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return FK.fromPartial($??{})},fromPartial($){let Q=rU();return Q.productId=$.productId??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q}};function aU(){return{}}var PK={encode($,Q=new V){if($.productSections!==void 0&&$.productSections.length!==0)for(let Z of $.productSections)kK.encode(Z,Q.uint32(10).fork()).join();if($.headerImage!==void 0)FK.encode($.headerImage,Q.uint32(18).fork()).join();if($.businessOwnerJid!==void 0)Q.uint32(26).string($.businessOwnerJid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=aU();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.productSections===void 0)K.productSections=[];let z=kK.decode(Z,Z.uint32());if(z!==void 0)K.productSections.push(z);continue}case 2:{if(J!==18)break;K.headerImage=FK.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.businessOwnerJid=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return PK.fromPartial($??{})},fromPartial($){let Q=aU();return Q.productSections=$.productSections?.map((Z)=>kK.fromPartial(Z))||void 0,Q.headerImage=$.headerImage!==void 0&&$.headerImage!==null?FK.fromPartial($.headerImage):void 0,Q.businessOwnerJid=$.businessOwnerJid??void 0,Q}};function sU(){return{}}var kK={encode($,Q=new V){if($.title!==void 0)Q.uint32(10).string($.title);if($.products!==void 0&&$.products.length!==0)for(let Z of $.products)LK.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=sU();while(Z.pos<q){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 z=LK.decode(Z,Z.uint32());if(z!==void 0)K.products.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return kK.fromPartial($??{})},fromPartial($){let Q=sU();return Q.title=$.title??void 0,Q.products=$.products?.map((Z)=>LK.fromPartial(Z))||void 0,Q}};function eU(){return{}}var NK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=eU();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return NK.fromPartial($??{})},fromPartial($){let Q=eU();return Q.title=$.title??void 0,Q.description=$.description??void 0,Q.rowId=$.rowId??void 0,Q}};function $7(){return{}}var BK={encode($,Q=new V){if($.title!==void 0)Q.uint32(10).string($.title);if($.rows!==void 0&&$.rows.length!==0)for(let Z of $.rows)NK.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$7();while(Z.pos<q){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 z=NK.decode(Z,Z.uint32());if(z!==void 0)K.rows.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return BK.fromPartial($??{})},fromPartial($){let Q=$7();return Q.title=$.title??void 0,Q.rows=$.rows?.map((Z)=>NK.fromPartial(Z))||void 0,Q}};function Q7(){return{}}var RK={encode($,Q=new V){if($.title!==void 0)Q.uint32(10).string($.title);if($.listType!==void 0)Q.uint32(16).int32($.listType);if($.singleSelectReply!==void 0)OK.encode($.singleSelectReply,Q.uint32(26).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(34).fork()).join();if($.description!==void 0)Q.uint32(42).string($.description);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Q7();while(Z.pos<q){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=OK.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.contextInfo=A.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.description=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return RK.fromPartial($??{})},fromPartial($){let Q=Q7();return Q.title=$.title??void 0,Q.listType=$.listType??void 0,Q.singleSelectReply=$.singleSelectReply!==void 0&&$.singleSelectReply!==null?OK.fromPartial($.singleSelectReply):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.description=$.description??void 0,Q}};function Z7(){return{}}var OK={encode($,Q=new V){if($.selectedRowId!==void 0)Q.uint32(10).string($.selectedRowId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Z7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.selectedRowId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return OK.fromPartial($??{})},fromPartial($){let Q=Z7();return Q.selectedRowId=$.selectedRowId??void 0,Q}};function J7(){return{}}var G$={encode($,Q=new V){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)A.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=J7();while(Z.pos<q){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.int64Number();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=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return G$.fromPartial($??{})},fromPartial($){let Q=J7();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?A.fromPartial($.contextInfo):void 0,Q}};function K7(){return{}}var a={encode($,Q=new V){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)A.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=K7();while(Z.pos<q){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=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return a.fromPartial($??{})},fromPartial($){let Q=K7();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?A.fromPartial($.contextInfo):void 0,Q}};function q7(){return{}}var AK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=q7();while(Z.pos<q){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.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return AK.fromPartial($??{})},fromPartial($){let Q=q7();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 X7(){return{}}var U$={encode($,Q=new V){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)A.encode($.contextInfo,Q.uint32(58).fork()).join();if($.messageHistoryMetadata!==void 0)C$.encode($.messageHistoryMetadata,Q.uint32(66).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=X7();while(Z.pos<q){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.int64Number();continue}case 7:{if(J!==58)break;K.contextInfo=A.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.messageHistoryMetadata=C$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return U$.fromPartial($??{})},fromPartial($){let Q=X7();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?A.fromPartial($.contextInfo):void 0,Q.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?C$.fromPartial($.messageHistoryMetadata):void 0,Q}};function z7(){return{}}var C$={encode($,Q=new V){if($.historyReceivers!==void 0&&$.historyReceivers.length!==0)for(let Z of $.historyReceivers)Q.uint32(10).string(Z);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 Z of $.nonHistoryReceivers)Q.uint32(34).string(Z);if($.oldestMessageTimestampInBundle!==void 0)Q.uint32(40).int64($.oldestMessageTimestampInBundle);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=z7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.historyReceivers===void 0)K.historyReceivers=[];let z=Z.string();if(z!==void 0)K.historyReceivers.push(z);continue}case 2:{if(J!==16)break;K.oldestMessageTimestampInWindow=Z.int64Number();continue}case 3:{if(J!==24)break;K.messageCount=Z.int64Number();continue}case 4:{if(J!==34)break;if(K.nonHistoryReceivers===void 0)K.nonHistoryReceivers=[];let z=Z.string();if(z!==void 0)K.nonHistoryReceivers.push(z);continue}case 5:{if(J!==40)break;K.oldestMessageTimestampInBundle=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return C$.fromPartial($??{})},fromPartial($){let Q=z7();return Q.historyReceivers=$.historyReceivers?.map((Z)=>Z)||void 0,Q.oldestMessageTimestampInWindow=$.oldestMessageTimestampInWindow??void 0,Q.messageCount=$.messageCount??void 0,Q.nonHistoryReceivers=$.nonHistoryReceivers?.map((Z)=>Z)||void 0,Q.oldestMessageTimestampInBundle=$.oldestMessageTimestampInBundle??void 0,Q}};function Y7(){return{}}var EK={encode($,Q=new V){if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(10).fork()).join();if($.messageHistoryMetadata!==void 0)C$.encode($.messageHistoryMetadata,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Y7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=A.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.messageHistoryMetadata=C$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return EK.fromPartial($??{})},fromPartial($){let Q=Y7();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?C$.fromPartial($.messageHistoryMetadata):void 0,Q}};function V7(){return{}}var MK={encode($,Q=new V){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)A.encode($.contextInfo,Q.uint32(50).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=V7();while(Z.pos<q){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.int64Number();continue}case 6:{if(J!==50)break;K.contextInfo=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return MK.fromPartial($??{})},fromPartial($){let Q=V7();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?A.fromPartial($.contextInfo):void 0,Q}};function H7(){return{}}var WK={encode($,Q=new V){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)A.encode($.contextInfo,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=H7();while(Z.pos<q){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=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return WK.fromPartial($??{})},fromPartial($){let Q=H7();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?A.fromPartial($.contextInfo):void 0,Q}};function G7(){return{}}var IK={encode($,Q=new V){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)A.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=G7();while(Z.pos<q){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.int64Number();continue}case 11:{if(J!==90)break;K.totalCurrencyCode=Z.string();continue}case 17:{if(J!==138)break;K.contextInfo=A.decode(Z,Z.uint32());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());continue}case 15:{if(J!==122)break;K.catalogType=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return IK.fromPartial($??{})},fromPartial($){let Q=G7();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?A.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 U7(){return{}}var SK={encode($,Q=new V){if($.type!==void 0)Q.uint32(8).uint32($.type);if($.platform!==void 0)Q.uint32(18).string($.platform);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=U7();while(Z.pos<q){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}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return SK.fromPartial($??{})},fromPartial($){let Q=U7();return Q.type=$.type??void 0,Q.platform=$.platform??void 0,Q}};function C7(){return{}}var vK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=C7();while(Z.pos<q){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.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return vK.fromPartial($??{})},fromPartial($){let Q=C7();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 x7(){return{}}var x$={encode($,Q=new V){if($.button!==void 0)TK.encode($.button,Q.uint32(10).fork()).join();if($.header!==void 0)yK.encode($.header,Q.uint32(18).fork()).join();if($.provider!==void 0)fK.encode($.provider,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=x7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.button=TK.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.header=yK.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.provider=fK.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return x$.fromPartial($??{})},fromPartial($){let Q=x7();return Q.button=$.button!==void 0&&$.button!==null?TK.fromPartial($.button):void 0,Q.header=$.header!==void 0&&$.header!==null?yK.fromPartial($.header):void 0,Q.provider=$.provider!==void 0&&$.provider!==null?fK.fromPartial($.provider):void 0,Q}};function D7(){return{}}var TK={encode($,Q=new V){if($.displayText!==void 0)Q.uint32(10).string($.displayText);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=D7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return TK.fromPartial($??{})},fromPartial($){let Q=D7();return Q.displayText=$.displayText??void 0,Q}};function L7(){return{}}var yK={encode($,Q=new V){if($.headerType!==void 0)Q.uint32(8).int32($.headerType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=L7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.headerType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return yK.fromPartial($??{})},fromPartial($){let Q=L7();return Q.headerType=$.headerType??void 0,Q}};function F7(){return{}}var fK={encode($,Q=new V){if($.paramsJson!==void 0)Q.uint32(10).string($.paramsJson);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=F7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.paramsJson=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return fK.fromPartial($??{})},fromPartial($){let Q=F7();return Q.paramsJson=$.paramsJson??void 0,Q}};function P7(){return{}}var _K={encode($,Q=new V){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)r.encode($.amount,Q.uint32(74).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=P7();while(Z.pos<q){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=r.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _K.fromPartial($??{})},fromPartial($){let Q=P7();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?r.fromPartial($.amount):void 0,Q}};function k7(){return{}}var hK={encode($,Q=new V){if($.peerDataOperationRequestType!==void 0)Q.uint32(8).int32($.peerDataOperationRequestType);if($.requestStickerReupload!==void 0&&$.requestStickerReupload.length!==0)for(let Z of $.requestStickerReupload)oK.encode(Z,Q.uint32(18).fork()).join();if($.requestUrlPreview!==void 0&&$.requestUrlPreview.length!==0)for(let Z of $.requestUrlPreview)bK.encode(Z,Q.uint32(26).fork()).join();if($.historySyncOnDemandRequest!==void 0)jK.encode($.historySyncOnDemandRequest,Q.uint32(34).fork()).join();if($.placeholderMessageResendRequest!==void 0&&$.placeholderMessageResendRequest.length!==0)for(let Z of $.placeholderMessageResendRequest)cK.encode(Z,Q.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequest!==void 0)wK.encode($.fullHistorySyncOnDemandRequest,Q.uint32(50).fork()).join();if($.syncdCollectionFatalRecoveryRequest!==void 0)iK.encode($.syncdCollectionFatalRecoveryRequest,Q.uint32(58).fork()).join();if($.historySyncChunkRetryRequest!==void 0)dK.encode($.historySyncChunkRetryRequest,Q.uint32(66).fork()).join();if($.galaxyFlowAction!==void 0)nK.encode($.galaxyFlowAction,Q.uint32(74).fork()).join();if($.companionCanonicalUserNonceFetchRequest!==void 0)pK.encode($.companionCanonicalUserNonceFetchRequest,Q.uint32(82).fork()).join();if($.bizBroadcastInsightsContactListRequest!==void 0)lK.encode($.bizBroadcastInsightsContactListRequest,Q.uint32(90).fork()).join();if($.bizBroadcastInsightsRefreshRequest!==void 0)uK.encode($.bizBroadcastInsightsRefreshRequest,Q.uint32(98).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=k7();while(Z.pos<q){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 z=oK.decode(Z,Z.uint32());if(z!==void 0)K.requestStickerReupload.push(z);continue}case 3:{if(J!==26)break;if(K.requestUrlPreview===void 0)K.requestUrlPreview=[];let z=bK.decode(Z,Z.uint32());if(z!==void 0)K.requestUrlPreview.push(z);continue}case 4:{if(J!==34)break;K.historySyncOnDemandRequest=jK.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;if(K.placeholderMessageResendRequest===void 0)K.placeholderMessageResendRequest=[];let z=cK.decode(Z,Z.uint32());if(z!==void 0)K.placeholderMessageResendRequest.push(z);continue}case 6:{if(J!==50)break;K.fullHistorySyncOnDemandRequest=wK.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.syncdCollectionFatalRecoveryRequest=iK.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.historySyncChunkRetryRequest=dK.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.galaxyFlowAction=nK.decode(Z,Z.uint32());continue}case 10:{if(J!==82)break;K.companionCanonicalUserNonceFetchRequest=pK.decode(Z,Z.uint32());continue}case 11:{if(J!==90)break;K.bizBroadcastInsightsContactListRequest=lK.decode(Z,Z.uint32());continue}case 12:{if(J!==98)break;K.bizBroadcastInsightsRefreshRequest=uK.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return hK.fromPartial($??{})},fromPartial($){let Q=k7();return Q.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,Q.requestStickerReupload=$.requestStickerReupload?.map((Z)=>oK.fromPartial(Z))||void 0,Q.requestUrlPreview=$.requestUrlPreview?.map((Z)=>bK.fromPartial(Z))||void 0,Q.historySyncOnDemandRequest=$.historySyncOnDemandRequest!==void 0&&$.historySyncOnDemandRequest!==null?jK.fromPartial($.historySyncOnDemandRequest):void 0,Q.placeholderMessageResendRequest=$.placeholderMessageResendRequest?.map((Z)=>cK.fromPartial(Z))||void 0,Q.fullHistorySyncOnDemandRequest=$.fullHistorySyncOnDemandRequest!==void 0&&$.fullHistorySyncOnDemandRequest!==null?wK.fromPartial($.fullHistorySyncOnDemandRequest):void 0,Q.syncdCollectionFatalRecoveryRequest=$.syncdCollectionFatalRecoveryRequest!==void 0&&$.syncdCollectionFatalRecoveryRequest!==null?iK.fromPartial($.syncdCollectionFatalRecoveryRequest):void 0,Q.historySyncChunkRetryRequest=$.historySyncChunkRetryRequest!==void 0&&$.historySyncChunkRetryRequest!==null?dK.fromPartial($.historySyncChunkRetryRequest):void 0,Q.galaxyFlowAction=$.galaxyFlowAction!==void 0&&$.galaxyFlowAction!==null?nK.fromPartial($.galaxyFlowAction):void 0,Q.companionCanonicalUserNonceFetchRequest=$.companionCanonicalUserNonceFetchRequest!==void 0&&$.companionCanonicalUserNonceFetchRequest!==null?pK.fromPartial($.companionCanonicalUserNonceFetchRequest):void 0,Q.bizBroadcastInsightsContactListRequest=$.bizBroadcastInsightsContactListRequest!==void 0&&$.bizBroadcastInsightsContactListRequest!==null?lK.fromPartial($.bizBroadcastInsightsContactListRequest):void 0,Q.bizBroadcastInsightsRefreshRequest=$.bizBroadcastInsightsRefreshRequest!==void 0&&$.bizBroadcastInsightsRefreshRequest!==null?uK.fromPartial($.bizBroadcastInsightsRefreshRequest):void 0,Q}};function N7(){return{}}var lK={encode($,Q=new V){if($.campaignId!==void 0)Q.uint32(10).string($.campaignId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=N7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.campaignId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return lK.fromPartial($??{})},fromPartial($){let Q=N7();return Q.campaignId=$.campaignId??void 0,Q}};function B7(){return{}}var uK={encode($,Q=new V){if($.campaignId!==void 0)Q.uint32(10).string($.campaignId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=B7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.campaignId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return uK.fromPartial($??{})},fromPartial($){let Q=B7();return Q.campaignId=$.campaignId??void 0,Q}};function R7(){return{}}var pK={encode($,Q=new V){if($.registrationTraceId!==void 0)Q.uint32(10).string($.registrationTraceId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=R7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.registrationTraceId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return pK.fromPartial($??{})},fromPartial($){let Q=R7();return Q.registrationTraceId=$.registrationTraceId??void 0,Q}};function O7(){return{}}var wK={encode($,Q=new V){if($.requestMetadata!==void 0)P0.encode($.requestMetadata,Q.uint32(10).fork()).join();if($.historySyncConfig!==void 0)X$.encode($.historySyncConfig,Q.uint32(18).fork()).join();if($.fullHistorySyncOnDemandConfig!==void 0)b8.encode($.fullHistorySyncOnDemandConfig,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=O7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestMetadata=P0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.historySyncConfig=X$.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.fullHistorySyncOnDemandConfig=b8.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return wK.fromPartial($??{})},fromPartial($){let Q=O7();return Q.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?P0.fromPartial($.requestMetadata):void 0,Q.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?X$.fromPartial($.historySyncConfig):void 0,Q.fullHistorySyncOnDemandConfig=$.fullHistorySyncOnDemandConfig!==void 0&&$.fullHistorySyncOnDemandConfig!==null?b8.fromPartial($.fullHistorySyncOnDemandConfig):void 0,Q}};function A7(){return{}}var nK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=A7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return nK.fromPartial($??{})},fromPartial($){let Q=A7();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 E7(){return{}}var dK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=E7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return dK.fromPartial($??{})},fromPartial($){let Q=E7();return Q.syncType=$.syncType??void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.chunkNotificationId=$.chunkNotificationId??void 0,Q.regenerateChunk=$.regenerateChunk??void 0,Q}};function M7(){return{}}var jK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=M7();while(Z.pos<q){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.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return jK.fromPartial($??{})},fromPartial($){let Q=M7();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 W7(){return{}}var cK={encode($,Q=new V){if($.messageKey!==void 0)k.encode($.messageKey,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=W7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageKey=k.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return cK.fromPartial($??{})},fromPartial($){let Q=W7();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?k.fromPartial($.messageKey):void 0,Q}};function I7(){return{}}var oK={encode($,Q=new V){if($.fileSha256!==void 0)Q.uint32(10).string($.fileSha256);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=I7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.fileSha256=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return oK.fromPartial($??{})},fromPartial($){let Q=I7();return Q.fileSha256=$.fileSha256??void 0,Q}};function S7(){return{}}var bK={encode($,Q=new V){if($.url!==void 0)Q.uint32(10).string($.url);if($.includeHqThumbnail!==void 0)Q.uint32(16).bool($.includeHqThumbnail);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=S7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return bK.fromPartial($??{})},fromPartial($){let Q=S7();return Q.url=$.url??void 0,Q.includeHqThumbnail=$.includeHqThumbnail??void 0,Q}};function v7(){return{}}var iK={encode($,Q=new V){if($.collectionName!==void 0)Q.uint32(10).string($.collectionName);if($.timestamp!==void 0)Q.uint32(16).int64($.timestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=v7();while(Z.pos<q){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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return iK.fromPartial($??{})},fromPartial($){let Q=v7();return Q.collectionName=$.collectionName??void 0,Q.timestamp=$.timestamp??void 0,Q}};function T7(){return{}}var mK={encode($,Q=new V){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 Z of $.peerDataOperationResult)gK.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=T7();while(Z.pos<q){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 z=gK.decode(Z,Z.uint32());if(z!==void 0)K.peerDataOperationResult.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return mK.fromPartial($??{})},fromPartial($){let Q=T7();return Q.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,Q.stanzaId=$.stanzaId??void 0,Q.peerDataOperationResult=$.peerDataOperationResult?.map((Z)=>gK.fromPartial(Z))||void 0,Q}};function y7(){return{}}var gK={encode($,Q=new V){if($.mediaUploadResult!==void 0)Q.uint32(8).int32($.mediaUploadResult);if($.stickerMessage!==void 0)L$.encode($.stickerMessage,Q.uint32(18).fork()).join();if($.linkPreviewResponse!==void 0)Zq.encode($.linkPreviewResponse,Q.uint32(26).fork()).join();if($.placeholderMessageResendResponse!==void 0)qq.encode($.placeholderMessageResendResponse,Q.uint32(34).fork()).join();if($.waffleNonceFetchRequestResponse!==void 0)zq.encode($.waffleNonceFetchRequestResponse,Q.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequestResponse!==void 0)$q.encode($.fullHistorySyncOnDemandRequestResponse,Q.uint32(50).fork()).join();if($.companionMetaNonceFetchRequestResponse!==void 0)sK.encode($.companionMetaNonceFetchRequestResponse,Q.uint32(58).fork()).join();if($.syncdSnapshotFatalRecoveryResponse!==void 0)Xq.encode($.syncdSnapshotFatalRecoveryResponse,Q.uint32(66).fork()).join();if($.companionCanonicalUserNonceFetchRequestResponse!==void 0)aK.encode($.companionCanonicalUserNonceFetchRequestResponse,Q.uint32(74).fork()).join();if($.historySyncChunkRetryResponse!==void 0)Qq.encode($.historySyncChunkRetryResponse,Q.uint32(82).fork()).join();if($.flowResponsesCsvBundle!==void 0)eK.encode($.flowResponsesCsvBundle,Q.uint32(90).fork()).join();if($.bizBroadcastInsightsContactListResponse!==void 0)tK.encode($.bizBroadcastInsightsContactListResponse,Q.uint32(98).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=y7();while(Z.pos<q){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=L$.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.linkPreviewResponse=Zq.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.placeholderMessageResendResponse=qq.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.waffleNonceFetchRequestResponse=zq.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.fullHistorySyncOnDemandRequestResponse=$q.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.companionMetaNonceFetchRequestResponse=sK.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.syncdSnapshotFatalRecoveryResponse=Xq.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.companionCanonicalUserNonceFetchRequestResponse=aK.decode(Z,Z.uint32());continue}case 10:{if(J!==82)break;K.historySyncChunkRetryResponse=Qq.decode(Z,Z.uint32());continue}case 11:{if(J!==90)break;K.flowResponsesCsvBundle=eK.decode(Z,Z.uint32());continue}case 12:{if(J!==98)break;K.bizBroadcastInsightsContactListResponse=tK.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return gK.fromPartial($??{})},fromPartial($){let Q=y7();return Q.mediaUploadResult=$.mediaUploadResult??void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?L$.fromPartial($.stickerMessage):void 0,Q.linkPreviewResponse=$.linkPreviewResponse!==void 0&&$.linkPreviewResponse!==null?Zq.fromPartial($.linkPreviewResponse):void 0,Q.placeholderMessageResendResponse=$.placeholderMessageResendResponse!==void 0&&$.placeholderMessageResendResponse!==null?qq.fromPartial($.placeholderMessageResendResponse):void 0,Q.waffleNonceFetchRequestResponse=$.waffleNonceFetchRequestResponse!==void 0&&$.waffleNonceFetchRequestResponse!==null?zq.fromPartial($.waffleNonceFetchRequestResponse):void 0,Q.fullHistorySyncOnDemandRequestResponse=$.fullHistorySyncOnDemandRequestResponse!==void 0&&$.fullHistorySyncOnDemandRequestResponse!==null?$q.fromPartial($.fullHistorySyncOnDemandRequestResponse):void 0,Q.companionMetaNonceFetchRequestResponse=$.companionMetaNonceFetchRequestResponse!==void 0&&$.companionMetaNonceFetchRequestResponse!==null?sK.fromPartial($.companionMetaNonceFetchRequestResponse):void 0,Q.syncdSnapshotFatalRecoveryResponse=$.syncdSnapshotFatalRecoveryResponse!==void 0&&$.syncdSnapshotFatalRecoveryResponse!==null?Xq.fromPartial($.syncdSnapshotFatalRecoveryResponse):void 0,Q.companionCanonicalUserNonceFetchRequestResponse=$.companionCanonicalUserNonceFetchRequestResponse!==void 0&&$.companionCanonicalUserNonceFetchRequestResponse!==null?aK.fromPartial($.companionCanonicalUserNonceFetchRequestResponse):void 0,Q.historySyncChunkRetryResponse=$.historySyncChunkRetryResponse!==void 0&&$.historySyncChunkRetryResponse!==null?Qq.fromPartial($.historySyncChunkRetryResponse):void 0,Q.flowResponsesCsvBundle=$.flowResponsesCsvBundle!==void 0&&$.flowResponsesCsvBundle!==null?eK.fromPartial($.flowResponsesCsvBundle):void 0,Q.bizBroadcastInsightsContactListResponse=$.bizBroadcastInsightsContactListResponse!==void 0&&$.bizBroadcastInsightsContactListResponse!==null?tK.fromPartial($.bizBroadcastInsightsContactListResponse):void 0,Q}};function f7(){return{}}var tK={encode($,Q=new V){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 Z of $.contacts)rK.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=f7();while(Z.pos<q){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.int64Number();continue}case 3:{if(J!==26)break;if(K.contacts===void 0)K.contacts=[];let z=rK.decode(Z,Z.uint32());if(z!==void 0)K.contacts.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return tK.fromPartial($??{})},fromPartial($){let Q=f7();return Q.campaignId=$.campaignId??void 0,Q.timestampMs=$.timestampMs??void 0,Q.contacts=$.contacts?.map((Z)=>rK.fromPartial(Z))||void 0,Q}};function _7(){return{}}var rK={encode($,Q=new V){if($.contactJid!==void 0)Q.uint32(10).string($.contactJid);if($.state!==void 0)Q.uint32(16).int32($.state);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return rK.fromPartial($??{})},fromPartial($){let Q=_7();return Q.contactJid=$.contactJid??void 0,Q.state=$.state??void 0,Q}};function h7(){return{}}var aK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=h7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return aK.fromPartial($??{})},fromPartial($){let Q=h7();return Q.nonce=$.nonce??void 0,Q.waFbid=$.waFbid??void 0,Q.forceRefresh=$.forceRefresh??void 0,Q}};function l7(){return{}}var sK={encode($,Q=new V){if($.nonce!==void 0)Q.uint32(10).string($.nonce);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=l7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.nonce=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return sK.fromPartial($??{})},fromPartial($){let Q=l7();return Q.nonce=$.nonce??void 0,Q}};function u7(){return{}}var eK={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=u7();while(Z.pos<q){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.int64Number();continue}case 10:{if(J!==80)break;K.fileLength=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return eK.fromPartial($??{})},fromPartial($){let Q=u7();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 p7(){return{}}var $q={encode($,Q=new V){if($.requestMetadata!==void 0)P0.encode($.requestMetadata,Q.uint32(10).fork()).join();if($.responseCode!==void 0)Q.uint32(16).int32($.responseCode);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=p7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.requestMetadata=P0.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.responseCode=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $q.fromPartial($??{})},fromPartial($){let Q=p7();return Q.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?P0.fromPartial($.requestMetadata):void 0,Q.responseCode=$.responseCode??void 0,Q}};function w7(){return{}}var Qq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=w7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Qq.fromPartial($??{})},fromPartial($){let Q=w7();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 n7(){return{}}var Zq={encode($,Q=new V){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)Jq.encode($.hqThumbnail,Q.uint32(66).fork()).join();if($.previewMetadata!==void 0)Kq.encode($.previewMetadata,Q.uint32(74).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=n7();while(Z.pos<q){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=Jq.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.previewMetadata=Kq.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Zq.fromPartial($??{})},fromPartial($){let Q=n7();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?Jq.fromPartial($.hqThumbnail):void 0,Q.previewMetadata=$.previewMetadata!==void 0&&$.previewMetadata!==null?Kq.fromPartial($.previewMetadata):void 0,Q}};function d7(){return{}}var Jq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=d7();while(Z.pos<q){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.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Jq.fromPartial($??{})},fromPartial($){let Q=d7();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 j7(){return{}}var Kq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=j7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Kq.fromPartial($??{})},fromPartial($){let Q=j7();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 c7(){return{}}var qq={encode($,Q=new V){if($.webMessageInfoBytes!==void 0)Q.uint32(10).bytes($.webMessageInfoBytes);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=c7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.webMessageInfoBytes=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return qq.fromPartial($??{})},fromPartial($){let Q=c7();return Q.webMessageInfoBytes=$.webMessageInfoBytes??void 0,Q}};function o7(){return{}}var Xq={encode($,Q=new V){if($.collectionSnapshot!==void 0)Q.uint32(10).bytes($.collectionSnapshot);if($.isCompressed!==void 0)Q.uint32(16).bool($.isCompressed);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=o7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Xq.fromPartial($??{})},fromPartial($){let Q=o7();return Q.collectionSnapshot=$.collectionSnapshot??void 0,Q.isCompressed=$.isCompressed??void 0,Q}};function b7(){return{}}var zq={encode($,Q=new V){if($.nonce!==void 0)Q.uint32(10).string($.nonce);if($.waEntFbid!==void 0)Q.uint32(18).string($.waEntFbid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=b7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return zq.fromPartial($??{})},fromPartial($){let Q=b7();return Q.nonce=$.nonce??void 0,Q.waEntFbid=$.waEntFbid??void 0,Q}};function i7(){return{}}var Yq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=i7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.type=Z.int32();continue}case 3:{if(J!==24)break;K.senderTimestampMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Yq.fromPartial($??{})},fromPartial($){let Q=i7();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 m7(){return{}}var Vq={encode($,Q=new V){if($.type!==void 0)Q.uint32(8).int32($.type);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=m7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.type=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Vq.fromPartial($??{})},fromPartial($){let Q=m7();return Q.type=$.type??void 0,Q}};function g7(){return{}}var Hq={encode($,Q=new V){if($.pollCreationMessageKey!==void 0)k.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.addOption!==void 0)G0.encode($.addOption,Q.uint32(18).fork()).join();if($.metadata!==void 0)N0.encode($.metadata,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=g7();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollCreationMessageKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.addOption=G0.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.metadata=N0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Hq.fromPartial($??{})},fromPartial($){let Q=g7();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?k.fromPartial($.pollCreationMessageKey):void 0,Q.addOption=$.addOption!==void 0&&$.addOption!==null?G0.fromPartial($.addOption):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?N0.fromPartial($.metadata):void 0,Q}};function t7(){return{}}var e={encode($,Q=new V){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 Z of $.options)G0.encode(Z,Q.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)Q.uint32(32).uint32($.selectableOptionsCount);if($.contextInfo!==void 0)A.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)G0.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=t7();while(Z.pos<q){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 z=G0.decode(Z,Z.uint32());if(z!==void 0)K.options.push(z);continue}case 4:{if(J!==32)break;K.selectableOptionsCount=Z.uint32();continue}case 5:{if(J!==42)break;K.contextInfo=A.decode(Z,Z.uint32());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=G0.decode(Z,Z.uint32());continue}case 9:{if(J!==72)break;K.endTime=Z.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return e.fromPartial($??{})},fromPartial($){let Q=t7();return Q.encKey=$.encKey??void 0,Q.name=$.name??void 0,Q.options=$.options?.map((Z)=>G0.fromPartial(Z))||void 0,Q.selectableOptionsCount=$.selectableOptionsCount??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.pollContentType=$.pollContentType??void 0,Q.pollType=$.pollType??void 0,Q.correctAnswer=$.correctAnswer!==void 0&&$.correctAnswer!==null?G0.fromPartial($.correctAnswer):void 0,Q.endTime=$.endTime??void 0,Q.hideParticipantName=$.hideParticipantName??void 0,Q.allowAddOption=$.allowAddOption??void 0,Q}};function r7(){return{}}var G0={encode($,Q=new V){if($.optionName!==void 0)Q.uint32(10).string($.optionName);if($.optionHash!==void 0)Q.uint32(18).string($.optionHash);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=r7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return G0.fromPartial($??{})},fromPartial($){let Q=r7();return Q.optionName=$.optionName??void 0,Q.optionHash=$.optionHash??void 0,Q}};function a7(){return{}}var Gq={encode($,Q=new V){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=a7();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Gq.fromPartial($??{})},fromPartial($){let Q=a7();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function s7(){return{}}var d0={encode($,Q=new V){if($.name!==void 0)Q.uint32(10).string($.name);if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let Z of $.pollVotes)Uq.encode(Z,Q.uint32(18).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(26).fork()).join();if($.pollType!==void 0)Q.uint32(32).int32($.pollType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=s7();while(Z.pos<q){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 z=Uq.decode(Z,Z.uint32());if(z!==void 0)K.pollVotes.push(z);continue}case 3:{if(J!==26)break;K.contextInfo=A.decode(Z,Z.uint32());continue}case 4:{if(J!==32)break;K.pollType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return d0.fromPartial($??{})},fromPartial($){let Q=s7();return Q.name=$.name??void 0,Q.pollVotes=$.pollVotes?.map((Z)=>Uq.fromPartial(Z))||void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.pollType=$.pollType??void 0,Q}};function e7(){return{}}var Uq={encode($,Q=new V){if($.optionName!==void 0)Q.uint32(10).string($.optionName);if($.optionVoteCount!==void 0)Q.uint32(16).int64($.optionVoteCount);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=e7();while(Z.pos<q){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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Uq.fromPartial($??{})},fromPartial($){let Q=e7();return Q.optionName=$.optionName??void 0,Q.optionVoteCount=$.optionVoteCount??void 0,Q}};function $4(){return{}}var Cq={encode($,Q=new V){if($.pollCreationMessageKey!==void 0)k.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)Gq.encode($.vote,Q.uint32(18).fork()).join();if($.metadata!==void 0)N0.encode($.metadata,Q.uint32(26).fork()).join();if($.senderTimestampMs!==void 0)Q.uint32(32).int64($.senderTimestampMs);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollCreationMessageKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.vote=Gq.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.metadata=N0.decode(Z,Z.uint32());continue}case 4:{if(J!==32)break;K.senderTimestampMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Cq.fromPartial($??{})},fromPartial($){let Q=$4();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?k.fromPartial($.pollCreationMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?Gq.fromPartial($.vote):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?N0.fromPartial($.metadata):void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function Q4(){return{}}var N0={encode($,Q=new V){if($.pollNameHash!==void 0)Q.uint32(10).bytes($.pollNameHash);if($.lastEditStanzaId!==void 0)Q.uint32(18).string($.lastEditStanzaId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Q4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return N0.fromPartial($??{})},fromPartial($){let Q=Q4();return Q.pollNameHash=$.pollNameHash??void 0,Q.lastEditStanzaId=$.lastEditStanzaId??void 0,Q}};function Z4(){return{}}var S0={encode($,Q=new V){if($.selectedOptions!==void 0&&$.selectedOptions.length!==0)for(let Z of $.selectedOptions)Q.uint32(10).bytes(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Z4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.selectedOptions===void 0)K.selectedOptions=[];let z=Z.bytes();if(z!==void 0)K.selectedOptions.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return S0.fromPartial($??{})},fromPartial($){let Q=Z4();return Q.selectedOptions=$.selectedOptions?.map((Z)=>Z)||void 0,Q}};function J4(){return{}}var D$={encode($,Q=new V){if($.product!==void 0)Dq.encode($.product,Q.uint32(10).fork()).join();if($.businessOwnerJid!==void 0)Q.uint32(18).string($.businessOwnerJid);if($.catalog!==void 0)xq.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)A.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=J4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.product=Dq.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.businessOwnerJid=Z.string();continue}case 4:{if(J!==34)break;K.catalog=xq.decode(Z,Z.uint32());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=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return D$.fromPartial($??{})},fromPartial($){let Q=J4();return Q.product=$.product!==void 0&&$.product!==null?Dq.fromPartial($.product):void 0,Q.businessOwnerJid=$.businessOwnerJid??void 0,Q.catalog=$.catalog!==void 0&&$.catalog!==null?xq.fromPartial($.catalog):void 0,Q.body=$.body??void 0,Q.footer=$.footer??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q}};function K4(){return{}}var xq={encode($,Q=new V){if($.catalogImage!==void 0)i.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=K4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.catalogImage=i.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return xq.fromPartial($??{})},fromPartial($){let Q=K4();return Q.catalogImage=$.catalogImage!==void 0&&$.catalogImage!==null?i.fromPartial($.catalogImage):void 0,Q.title=$.title??void 0,Q.description=$.description??void 0,Q}};function q4(){return{}}var Dq={encode($,Q=new V){if($.productImage!==void 0)i.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=q4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.productImage=i.decode(Z,Z.uint32());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.int64Number();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.int64Number();continue}case 13:{if(J!==106)break;K.signedUrl=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Dq.fromPartial($??{})},fromPartial($){let Q=q4();return Q.productImage=$.productImage!==void 0&&$.productImage!==null?i.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 X4(){return{}}var Lq={encode($,Q=new V){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)e8.encode($.historySyncNotification,Q.uint32(50).fork()).join();if($.appStateSyncKeyShare!==void 0)D8.encode($.appStateSyncKeyShare,Q.uint32(58).fork()).join();if($.appStateSyncKeyRequest!==void 0)x8.encode($.appStateSyncKeyRequest,Q.uint32(66).fork()).join();if($.initialSecurityNotificationSettingSync!==void 0)$K.encode($.initialSecurityNotificationSettingSync,Q.uint32(74).fork()).join();if($.appStateFatalExceptionNotification!==void 0)H8.encode($.appStateFatalExceptionNotification,Q.uint32(82).fork()).join();if($.disappearingMode!==void 0)x0.encode($.disappearingMode,Q.uint32(90).fork()).join();if($.editedMessage!==void 0)w.encode($.editedMessage,Q.uint32(114).fork()).join();if($.timestampMs!==void 0)Q.uint32(120).int64($.timestampMs);if($.peerDataOperationRequestMessage!==void 0)hK.encode($.peerDataOperationRequestMessage,Q.uint32(130).fork()).join();if($.peerDataOperationRequestResponseMessage!==void 0)mK.encode($.peerDataOperationRequestResponseMessage,Q.uint32(138).fork()).join();if($.botFeedbackMessage!==void 0)AQ.encode($.botFeedbackMessage,Q.uint32(146).fork()).join();if($.invokerJid!==void 0)Q.uint32(154).string($.invokerJid);if($.requestWelcomeMessageMetadata!==void 0)Bq.encode($.requestWelcomeMessageMetadata,Q.uint32(162).fork()).join();if($.mediaNotifyMessage!==void 0)z8.encode($.mediaNotifyMessage,Q.uint32(170).fork()).join();if($.cloudApiThreadControlNotification!==void 0)y8.encode($.cloudApiThreadControlNotification,Q.uint32(178).fork()).join();if($.lidMigrationMappingSyncMessage!==void 0)eJ.encode($.lidMigrationMappingSyncMessage,Q.uint32(186).fork()).join();if($.limitSharing!==void 0)H0.encode($.limitSharing,Q.uint32(194).fork()).join();if($.aiPsiMetadata!==void 0)Q.uint32(202).bytes($.aiPsiMetadata);if($.aiQueryFanout!==void 0)i$.encode($.aiQueryFanout,Q.uint32(210).fork()).join();if($.memberLabel!==void 0)F0.encode($.memberLabel,Q.uint32(218).fork()).join();if($.aiMediaCollectionMessage!==void 0)c$.encode($.aiMediaCollectionMessage,Q.uint32(226).fork()).join();if($.afterReadDuration!==void 0)Q.uint32(232).uint32($.afterReadDuration);if($.chatThemeSetting!==void 0)T8.encode($.chatThemeSetting,Q.uint32(242).fork()).join();if($.aiMetadataOperation!==void 0)b$.encode($.aiMetadataOperation,Q.uint32(250).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=X4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());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.int64Number();continue}case 6:{if(J!==50)break;K.historySyncNotification=e8.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.appStateSyncKeyShare=D8.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.appStateSyncKeyRequest=x8.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.initialSecurityNotificationSettingSync=$K.decode(Z,Z.uint32());continue}case 10:{if(J!==82)break;K.appStateFatalExceptionNotification=H8.decode(Z,Z.uint32());continue}case 11:{if(J!==90)break;K.disappearingMode=x0.decode(Z,Z.uint32());continue}case 14:{if(J!==114)break;K.editedMessage=w.decode(Z,Z.uint32());continue}case 15:{if(J!==120)break;K.timestampMs=Z.int64Number();continue}case 16:{if(J!==130)break;K.peerDataOperationRequestMessage=hK.decode(Z,Z.uint32());continue}case 17:{if(J!==138)break;K.peerDataOperationRequestResponseMessage=mK.decode(Z,Z.uint32());continue}case 18:{if(J!==146)break;K.botFeedbackMessage=AQ.decode(Z,Z.uint32());continue}case 19:{if(J!==154)break;K.invokerJid=Z.string();continue}case 20:{if(J!==162)break;K.requestWelcomeMessageMetadata=Bq.decode(Z,Z.uint32());continue}case 21:{if(J!==170)break;K.mediaNotifyMessage=z8.decode(Z,Z.uint32());continue}case 22:{if(J!==178)break;K.cloudApiThreadControlNotification=y8.decode(Z,Z.uint32());continue}case 23:{if(J!==186)break;K.lidMigrationMappingSyncMessage=eJ.decode(Z,Z.uint32());continue}case 24:{if(J!==194)break;K.limitSharing=H0.decode(Z,Z.uint32());continue}case 25:{if(J!==202)break;K.aiPsiMetadata=Z.bytes();continue}case 26:{if(J!==210)break;K.aiQueryFanout=i$.decode(Z,Z.uint32());continue}case 27:{if(J!==218)break;K.memberLabel=F0.decode(Z,Z.uint32());continue}case 28:{if(J!==226)break;K.aiMediaCollectionMessage=c$.decode(Z,Z.uint32());continue}case 29:{if(J!==232)break;K.afterReadDuration=Z.uint32();continue}case 30:{if(J!==242)break;K.chatThemeSetting=T8.decode(Z,Z.uint32());continue}case 31:{if(J!==250)break;K.aiMetadataOperation=b$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Lq.fromPartial($??{})},fromPartial($){let Q=X4();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?e8.fromPartial($.historySyncNotification):void 0,Q.appStateSyncKeyShare=$.appStateSyncKeyShare!==void 0&&$.appStateSyncKeyShare!==null?D8.fromPartial($.appStateSyncKeyShare):void 0,Q.appStateSyncKeyRequest=$.appStateSyncKeyRequest!==void 0&&$.appStateSyncKeyRequest!==null?x8.fromPartial($.appStateSyncKeyRequest):void 0,Q.initialSecurityNotificationSettingSync=$.initialSecurityNotificationSettingSync!==void 0&&$.initialSecurityNotificationSettingSync!==null?$K.fromPartial($.initialSecurityNotificationSettingSync):void 0,Q.appStateFatalExceptionNotification=$.appStateFatalExceptionNotification!==void 0&&$.appStateFatalExceptionNotification!==null?H8.fromPartial($.appStateFatalExceptionNotification):void 0,Q.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?x0.fromPartial($.disappearingMode):void 0,Q.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?w.fromPartial($.editedMessage):void 0,Q.timestampMs=$.timestampMs??void 0,Q.peerDataOperationRequestMessage=$.peerDataOperationRequestMessage!==void 0&&$.peerDataOperationRequestMessage!==null?hK.fromPartial($.peerDataOperationRequestMessage):void 0,Q.peerDataOperationRequestResponseMessage=$.peerDataOperationRequestResponseMessage!==void 0&&$.peerDataOperationRequestResponseMessage!==null?mK.fromPartial($.peerDataOperationRequestResponseMessage):void 0,Q.botFeedbackMessage=$.botFeedbackMessage!==void 0&&$.botFeedbackMessage!==null?AQ.fromPartial($.botFeedbackMessage):void 0,Q.invokerJid=$.invokerJid??void 0,Q.requestWelcomeMessageMetadata=$.requestWelcomeMessageMetadata!==void 0&&$.requestWelcomeMessageMetadata!==null?Bq.fromPartial($.requestWelcomeMessageMetadata):void 0,Q.mediaNotifyMessage=$.mediaNotifyMessage!==void 0&&$.mediaNotifyMessage!==null?z8.fromPartial($.mediaNotifyMessage):void 0,Q.cloudApiThreadControlNotification=$.cloudApiThreadControlNotification!==void 0&&$.cloudApiThreadControlNotification!==null?y8.fromPartial($.cloudApiThreadControlNotification):void 0,Q.lidMigrationMappingSyncMessage=$.lidMigrationMappingSyncMessage!==void 0&&$.lidMigrationMappingSyncMessage!==null?eJ.fromPartial($.lidMigrationMappingSyncMessage):void 0,Q.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?H0.fromPartial($.limitSharing):void 0,Q.aiPsiMetadata=$.aiPsiMetadata??void 0,Q.aiQueryFanout=$.aiQueryFanout!==void 0&&$.aiQueryFanout!==null?i$.fromPartial($.aiQueryFanout):void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?F0.fromPartial($.memberLabel):void 0,Q.aiMediaCollectionMessage=$.aiMediaCollectionMessage!==void 0&&$.aiMediaCollectionMessage!==null?c$.fromPartial($.aiMediaCollectionMessage):void 0,Q.afterReadDuration=$.afterReadDuration??void 0,Q.chatThemeSetting=$.chatThemeSetting!==void 0&&$.chatThemeSetting!==null?T8.fromPartial($.chatThemeSetting):void 0,Q.aiMetadataOperation=$.aiMetadataOperation!==void 0&&$.aiMetadataOperation!==null?b$.fromPartial($.aiMetadataOperation):void 0,Q}};function z4(){return{}}var Fq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=z4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.text=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Fq.fromPartial($??{})},fromPartial($){let Q=z4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.text=$.text??void 0,Q}};function Y4(){return{}}var Pq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Y4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Pq.fromPartial($??{})},fromPartial($){let Q=Y4();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 V4(){return{}}var kq={encode($,Q=new V){if($.noteMessage!==void 0)w.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)r.encode($.amount,Q.uint32(50).fork()).join();if($.background!==void 0)B$.encode($.background,Q.uint32(58).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=V4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 4:{if(J!==34)break;K.noteMessage=w.decode(Z,Z.uint32());continue}case 1:{if(J!==10)break;K.currencyCodeIso4217=Z.string();continue}case 2:{if(J!==16)break;K.amount1000=Z.uint64Number();continue}case 3:{if(J!==26)break;K.requestFrom=Z.string();continue}case 5:{if(J!==40)break;K.expiryTimestamp=Z.int64Number();continue}case 6:{if(J!==50)break;K.amount=r.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.background=B$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return kq.fromPartial($??{})},fromPartial($){let Q=V4();return Q.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?w.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?r.fromPartial($.amount):void 0,Q.background=$.background!==void 0&&$.background!==null?B$.fromPartial($.background):void 0,Q}};function H4(){return{}}var Nq={encode($,Q=new V){if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=H4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.contextInfo=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Nq.fromPartial($??{})},fromPartial($){let Q=H4();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q}};function G4(){return{}}var Bq={encode($,Q=new V){if($.localChatState!==void 0)Q.uint32(8).int32($.localChatState);if($.welcomeTrigger!==void 0)Q.uint32(16).int32($.welcomeTrigger);if($.botAgentMetadata!==void 0)NQ.encode($.botAgentMetadata,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=G4();while(Z.pos<q){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=NQ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Bq.fromPartial($??{})},fromPartial($){let Q=G4();return Q.localChatState=$.localChatState??void 0,Q.welcomeTrigger=$.welcomeTrigger??void 0,Q.botAgentMetadata=$.botAgentMetadata!==void 0&&$.botAgentMetadata!==null?NQ.fromPartial($.botAgentMetadata):void 0,Q}};function U4(){return{}}var Rq={encode($,Q=new V){if($.chatJid!==void 0)Q.uint32(10).string($.chatJid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=U4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.chatJid=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Rq.fromPartial($??{})},fromPartial($){let Q=U4();return Q.chatJid=$.chatJid??void 0,Q}};function C4(){return{}}var Oq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=C4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.scheduledTimestampMs=Z.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Oq.fromPartial($??{})},fromPartial($){let Q=C4();return Q.scheduledTimestampMs=$.scheduledTimestampMs??void 0,Q.callType=$.callType??void 0,Q.title=$.title??void 0,Q}};function x4(){return{}}var Aq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=x4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.editType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Aq.fromPartial($??{})},fromPartial($){let Q=x4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.editType=$.editType??void 0,Q}};function D4(){return{}}var Eq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=D4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.targetMessageKey=k.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Eq.fromPartial($??{})},fromPartial($){let Q=D4();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 L4(){return{}}var Mq={encode($,Q=new V){if($.noteMessage!==void 0)w.encode($.noteMessage,Q.uint32(18).fork()).join();if($.requestMessageKey!==void 0)k.encode($.requestMessageKey,Q.uint32(26).fork()).join();if($.background!==void 0)B$.encode($.background,Q.uint32(34).fork()).join();if($.transactionData!==void 0)Q.uint32(42).string($.transactionData);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=L4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==18)break;K.noteMessage=w.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.requestMessageKey=k.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.background=B$.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.transactionData=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Mq.fromPartial($??{})},fromPartial($){let Q=L4();return Q.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?w.fromPartial($.noteMessage):void 0,Q.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?k.fromPartial($.requestMessageKey):void 0,Q.background=$.background!==void 0&&$.background!==null?B$.fromPartial($.background):void 0,Q.transactionData=$.transactionData??void 0,Q}};function F4(){return{}}var j0={encode($,Q=new V){if($.groupId!==void 0)Q.uint32(10).string($.groupId);if($.axolotlSenderKeyDistributionMessage!==void 0)Q.uint32(18).bytes($.axolotlSenderKeyDistributionMessage);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=F4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return j0.fromPartial($??{})},fromPartial($){let Q=F4();return Q.groupId=$.groupId??void 0,Q.axolotlSenderKeyDistributionMessage=$.axolotlSenderKeyDistributionMessage??void 0,Q}};function P4(){return{}}var Wq={encode($,Q=new V){if($.splitId!==void 0)Q.uint32(10).string($.splitId);if($.totalAmount!==void 0)r.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 Z of $.participants)Iq.encode(Z,Q.uint32(42).fork()).join();if($.createdAtMs!==void 0)Q.uint32(48).int64($.createdAtMs);if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=P4();while(Z.pos<q){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=r.decode(Z,Z.uint32());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 z=Iq.decode(Z,Z.uint32());if(z!==void 0)K.participants.push(z);continue}case 6:{if(J!==48)break;K.createdAtMs=Z.int64Number();continue}case 17:{if(J!==138)break;K.contextInfo=A.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Wq.fromPartial($??{})},fromPartial($){let Q=P4();return Q.splitId=$.splitId??void 0,Q.totalAmount=$.totalAmount!==void 0&&$.totalAmount!==null?r.fromPartial($.totalAmount):void 0,Q.description=$.description??void 0,Q.requesterJid=$.requesterJid??void 0,Q.participants=$.participants?.map((Z)=>Iq.fromPartial(Z))||void 0,Q.createdAtMs=$.createdAtMs??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q}};function k4(){return{}}var Iq={encode($,Q=new V){if($.jid!==void 0)Q.uint32(10).string($.jid);if($.amount!==void 0)r.encode($.amount,Q.uint32(18).fork()).join();if($.status!==void 0)Q.uint32(24).int32($.status);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=k4();while(Z.pos<q){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=r.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.status=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Iq.fromPartial($??{})},fromPartial($){let Q=k4();return Q.jid=$.jid??void 0,Q.amount=$.amount!==void 0&&$.amount!==null?r.fromPartial($.amount):void 0,Q.status=$.status??void 0,Q}};function N4(){return{}}var Sq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=N4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.responseMessageKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.originalMessageKey=k.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.type=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Sq.fromPartial($??{})},fromPartial($){let Q=N4();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 B4(){return{}}var vq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=B4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.text=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return vq.fromPartial($??{})},fromPartial($){let Q=B4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.text=$.text??void 0,Q}};function R4(){return{}}var Tq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=R4();while(Z.pos<q){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());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Tq.fromPartial($??{})},fromPartial($){let Q=R4();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 O4(){return{}}var yq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=O4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return yq.fromPartial($??{})},fromPartial($){let Q=O4();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 A4(){return{}}var L$={encode($,Q=new V){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)A.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=A4();while(Z.pos<q){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.uint64Number();continue}case 10:{if(J!==80)break;K.mediaKeyTimestamp=Z.int64Number();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=A.decode(Z,Z.uint32());continue}case 18:{if(J!==144)break;K.stickerSentTs=Z.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return L$.fromPartial($??{})},fromPartial($){let Q=A4();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?A.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 E4(){return{}}var fq={encode($,Q=new V){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 Z of $.stickers)_q.encode(Z,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)A.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=E4();while(Z.pos<q){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 z=_q.decode(Z,Z.uint32());if(z!==void 0)K.stickers.push(z);continue}case 5:{if(J!==40)break;K.fileLength=Z.uint64Number();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=A.decode(Z,Z.uint32());continue}case 12:{if(J!==98)break;K.packDescription=Z.string();continue}case 13:{if(J!==104)break;K.mediaKeyTimestamp=Z.int64Number();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.uint64Number();continue}case 22:{if(J!==176)break;K.stickerPackOrigin=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return fq.fromPartial($??{})},fromPartial($){let Q=E4();return Q.stickerPackId=$.stickerPackId??void 0,Q.name=$.name??void 0,Q.publisher=$.publisher??void 0,Q.stickers=$.stickers?.map((Z)=>_q.fromPartial(Z))||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?A.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 M4(){return{}}var _q={encode($,Q=new V){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 Z of $.emojis)Q.uint32(26).string(Z);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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=M4();while(Z.pos<q){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 z=Z.string();if(z!==void 0)K.emojis.push(z);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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _q.fromPartial($??{})},fromPartial($){let Q=M4();return Q.fileName=$.fileName??void 0,Q.isAnimated=$.isAnimated??void 0,Q.emojis=$.emojis?.map((Z)=>Z)||void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.isLottie=$.isLottie??void 0,Q.mimetype=$.mimetype??void 0,Q.premium=$.premium??void 0,Q}};function W4(){return{}}var hq={encode($,Q=new V){if($.filehash!==void 0&&$.filehash.length!==0)for(let Z of $.filehash)Q.uint32(10).string(Z);if($.rmrSource!==void 0)Q.uint32(18).string($.rmrSource);if($.requestTimestamp!==void 0)Q.uint32(24).int64($.requestTimestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=W4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.filehash===void 0)K.filehash=[];let z=Z.string();if(z!==void 0)K.filehash.push(z);continue}case 2:{if(J!==18)break;K.rmrSource=Z.string();continue}case 3:{if(J!==24)break;K.requestTimestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return hq.fromPartial($??{})},fromPartial($){let Q=W4();return Q.filehash=$.filehash?.map((Z)=>Z)||void 0,Q.rmrSource=$.rmrSource??void 0,Q.requestTimestamp=$.requestTimestamp??void 0,Q}};function I4(){return{}}var lq={encode($,Q=new V){if($.selectedId!==void 0)Q.uint32(10).string($.selectedId);if($.selectedDisplayText!==void 0)Q.uint32(18).string($.selectedDisplayText);if($.contextInfo!==void 0)A.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=I4();while(Z.pos<q){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=A.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return lq.fromPartial($??{})},fromPartial($){let Q=I4();return Q.selectedId=$.selectedId??void 0,Q.selectedDisplayText=$.selectedDisplayText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.selectedIndex=$.selectedIndex??void 0,Q.selectedCarouselCardIndex=$.selectedCarouselCardIndex??void 0,Q}};function S4(){return{}}var F$={encode($,Q=new V){if($.contextInfo!==void 0)A.encode($.contextInfo,Q.uint32(26).fork()).join();if($.hydratedTemplate!==void 0)c0.encode($.hydratedTemplate,Q.uint32(34).fork()).join();if($.templateId!==void 0)Q.uint32(74).string($.templateId);if($.fourRowTemplate!==void 0)uq.encode($.fourRowTemplate,Q.uint32(10).fork()).join();if($.hydratedFourRowTemplate!==void 0)c0.encode($.hydratedFourRowTemplate,Q.uint32(18).fork()).join();if($.interactiveMessageTemplate!==void 0)k0.encode($.interactiveMessageTemplate,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=S4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 3:{if(J!==26)break;K.contextInfo=A.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.hydratedTemplate=c0.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.templateId=Z.string();continue}case 1:{if(J!==10)break;K.fourRowTemplate=uq.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.hydratedFourRowTemplate=c0.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.interactiveMessageTemplate=k0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return F$.fromPartial($??{})},fromPartial($){let Q=S4();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,Q.hydratedTemplate=$.hydratedTemplate!==void 0&&$.hydratedTemplate!==null?c0.fromPartial($.hydratedTemplate):void 0,Q.templateId=$.templateId??void 0,Q.fourRowTemplate=$.fourRowTemplate!==void 0&&$.fourRowTemplate!==null?uq.fromPartial($.fourRowTemplate):void 0,Q.hydratedFourRowTemplate=$.hydratedFourRowTemplate!==void 0&&$.hydratedFourRowTemplate!==null?c0.fromPartial($.hydratedFourRowTemplate):void 0,Q.interactiveMessageTemplate=$.interactiveMessageTemplate!==void 0&&$.interactiveMessageTemplate!==null?k0.fromPartial($.interactiveMessageTemplate):void 0,Q}};function v4(){return{}}var uq={encode($,Q=new V){if($.content!==void 0)c.encode($.content,Q.uint32(50).fork()).join();if($.footer!==void 0)c.encode($.footer,Q.uint32(58).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let Z of $.buttons)x6.encode(Z,Q.uint32(66).fork()).join();if($.documentMessage!==void 0)$0.encode($.documentMessage,Q.uint32(10).fork()).join();if($.highlyStructuredMessage!==void 0)c.encode($.highlyStructuredMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=v4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 6:{if(J!==50)break;K.content=c.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.footer=c.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;if(K.buttons===void 0)K.buttons=[];let z=x6.decode(Z,Z.uint32());if(z!==void 0)K.buttons.push(z);continue}case 1:{if(J!==10)break;K.documentMessage=$0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.highlyStructuredMessage=c.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.imageMessage=i.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.videoMessage=t.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.locationMessage=a.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return uq.fromPartial($??{})},fromPartial($){let Q=v4();return Q.content=$.content!==void 0&&$.content!==null?c.fromPartial($.content):void 0,Q.footer=$.footer!==void 0&&$.footer!==null?c.fromPartial($.footer):void 0,Q.buttons=$.buttons?.map((Z)=>x6.fromPartial(Z))||void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,Q.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?c.fromPartial($.highlyStructuredMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,Q}};function T4(){return{}}var c0={encode($,Q=new V){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 Z of $.hydratedButtons)jJ.encode(Z,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)$0.encode($.documentMessage,Q.uint32(10).fork()).join();if($.hydratedTitleText!==void 0)Q.uint32(18).string($.hydratedTitleText);if($.imageMessage!==void 0)i.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=T4();while(Z.pos<q){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 z=jJ.decode(Z,Z.uint32());if(z!==void 0)K.hydratedButtons.push(z);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=$0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.hydratedTitleText=Z.string();continue}case 3:{if(J!==26)break;K.imageMessage=i.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.videoMessage=t.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.locationMessage=a.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return c0.fromPartial($??{})},fromPartial($){let Q=T4();return Q.hydratedContentText=$.hydratedContentText??void 0,Q.hydratedFooterText=$.hydratedFooterText??void 0,Q.hydratedButtons=$.hydratedButtons?.map((Z)=>jJ.fromPartial(Z))||void 0,Q.templateId=$.templateId??void 0,Q.maskLinkedDevices=$.maskLinkedDevices??void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,Q.hydratedTitleText=$.hydratedTitleText??void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,Q}};function y4(){return{}}var pq={encode($,Q=new V){if($.fbExperimentId!==void 0)Q.uint32(8).uint32($.fbExperimentId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=y4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.fbExperimentId=Z.uint32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return pq.fromPartial($??{})},fromPartial($){let Q=y4();return Q.fbExperimentId=$.fbExperimentId??void 0,Q}};function f4(){return{}}var wq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=f4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return wq.fromPartial($??{})},fromPartial($){let Q=f4();return Q.username=$.username??void 0,Q.caption=$.caption??void 0,Q.thumbnailImageUrl=$.thumbnailImageUrl??void 0,Q.profilePictureUrl=$.profilePictureUrl??void 0,Q}};function _4(){return{}}var t={encode($,Q=new V){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 Z of $.interactiveAnnotations)Z0.encode(Z,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)A.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 Z of $.annotations)Z0.encode(Z,Q.uint32(202).fork()).join();if($.accessibilityLabel!==void 0)Q.uint32(210).string($.accessibilityLabel);if($.processedVideos!==void 0&&$.processedVideos.length!==0)for(let Z of $.processedVideos)KX.encode(Z,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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_4();while(Z.pos<q){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.uint64Number();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 z=Z0.decode(Z,Z.uint32());if(z!==void 0)K.interactiveAnnotations.push(z);continue}case 13:{if(J!==106)break;K.directPath=Z.string();continue}case 14:{if(J!==112)break;K.mediaKeyTimestamp=Z.int64Number();continue}case 16:{if(J!==130)break;K.jpegThumbnail=Z.bytes();continue}case 17:{if(J!==138)break;K.contextInfo=A.decode(Z,Z.uint32());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 z=Z0.decode(Z,Z.uint32());if(z!==void 0)K.annotations.push(z);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 z=KX.decode(Z,Z.uint32());if(z!==void 0)K.processedVideos.push(z);continue}case 28:{if(J!==224)break;K.externalShareFullVideoDurationInSeconds=Z.uint32();continue}case 29:{if(J!==232)break;K.motionPhotoPresentationOffsetMs=Z.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return t.fromPartial($??{})},fromPartial($){let Q=_4();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((Z)=>Z0.fromPartial(Z))||void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.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((Z)=>Z0.fromPartial(Z))||void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.processedVideos=$.processedVideos?.map((Z)=>KX.fromPartial(Z))||void 0,Q.externalShareFullVideoDurationInSeconds=$.externalShareFullVideoDurationInSeconds??void 0,Q.motionPhotoPresentationOffsetMs=$.motionPhotoPresentationOffsetMs??void 0,Q.metadataUrl=$.metadataUrl??void 0,Q.videoSourceType=$.videoSourceType??void 0,Q}};function h4(){return{}}var nq={encode($,Q=new V){if($.messageAddOnType!==void 0)Q.uint32(8).int32($.messageAddOnType);if($.messageAddOn!==void 0)w.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)P$.encode($.addOnContextInfo,Q.uint32(50).fork()).join();if($.messageAddOnKey!==void 0)k.encode($.messageAddOnKey,Q.uint32(58).fork()).join();if($.legacyMessage!==void 0)Q8.encode($.legacyMessage,Q.uint32(66).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=h4();while(Z.pos<q){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=w.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.senderTimestampMs=Z.int64Number();continue}case 4:{if(J!==32)break;K.serverTimestampMs=Z.int64Number();continue}case 5:{if(J!==40)break;K.status=Z.int32();continue}case 6:{if(J!==50)break;K.addOnContextInfo=P$.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.messageAddOnKey=k.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.legacyMessage=Q8.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return nq.fromPartial($??{})},fromPartial($){let Q=h4();return Q.messageAddOnType=$.messageAddOnType??void 0,Q.messageAddOn=$.messageAddOn!==void 0&&$.messageAddOn!==null?w.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?P$.fromPartial($.addOnContextInfo):void 0,Q.messageAddOnKey=$.messageAddOnKey!==void 0&&$.messageAddOnKey!==null?k.fromPartial($.messageAddOnKey):void 0,Q.legacyMessage=$.legacyMessage!==void 0&&$.legacyMessage!==null?Q8.fromPartial($.legacyMessage):void 0,Q}};function l4(){return{}}var P$={encode($,Q=new V){if($.messageAddOnDurationInSecs!==void 0)Q.uint32(8).uint32($.messageAddOnDurationInSecs);if($.messageAddOnExpiryType!==void 0)Q.uint32(16).int32($.messageAddOnExpiryType);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=l4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return P$.fromPartial($??{})},fromPartial($){let Q=l4();return Q.messageAddOnDurationInSecs=$.messageAddOnDurationInSecs??void 0,Q.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,Q}};function u4(){return{}}var dq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=u4();while(Z.pos<q){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());continue}case 3:{if(J!==24)break;K.messageIndex=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return dq.fromPartial($??{})},fromPartial($){let Q=u4();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 p4(){return{}}var k$={encode($,Q=new V){if($.deviceListMetadata!==void 0)kJ.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)oQ.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)dq.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)H0.encode($.limitSharing,Q.uint32(106).fork()).join();if($.limitSharingV2!==void 0)H0.encode($.limitSharingV2,Q.uint32(114).fork()).join();if($.threadId!==void 0&&$.threadId.length!==0)for(let Z of $.threadId)P6.encode(Z,Q.uint32(122).fork()).join();if($.weblinkRenderConfig!==void 0)Q.uint32(128).int32($.weblinkRenderConfig);if($.teeBotMetadata!==void 0)Q.uint32(138).bytes($.teeBotMetadata);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=p4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deviceListMetadata=kJ.decode(Z,Z.uint32());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=oQ.decode(Z,Z.uint32());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=dq.decode(Z,Z.uint32());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=H0.decode(Z,Z.uint32());continue}case 14:{if(J!==114)break;K.limitSharingV2=H0.decode(Z,Z.uint32());continue}case 15:{if(J!==122)break;if(K.threadId===void 0)K.threadId=[];let z=P6.decode(Z,Z.uint32());if(z!==void 0)K.threadId.push(z);continue}case 16:{if(J!==128)break;K.weblinkRenderConfig=Z.int32();continue}case 17:{if(J!==138)break;K.teeBotMetadata=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return k$.fromPartial($??{})},fromPartial($){let Q=p4();return Q.deviceListMetadata=$.deviceListMetadata!==void 0&&$.deviceListMetadata!==null?kJ.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?oQ.fromPartial($.botMetadata):void 0,Q.reportingTokenVersion=$.reportingTokenVersion??void 0,Q.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,Q.messageAssociation=$.messageAssociation!==void 0&&$.messageAssociation!==null?dq.fromPartial($.messageAssociation):void 0,Q.capiCreatedGroup=$.capiCreatedGroup??void 0,Q.supportPayload=$.supportPayload??void 0,Q.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?H0.fromPartial($.limitSharing):void 0,Q.limitSharingV2=$.limitSharingV2!==void 0&&$.limitSharingV2!==null?H0.fromPartial($.limitSharingV2):void 0,Q.threadId=$.threadId?.map((Z)=>P6.fromPartial(Z))||void 0,Q.weblinkRenderConfig=$.weblinkRenderConfig??void 0,Q.teeBotMetadata=$.teeBotMetadata??void 0,Q}};function w4(){return{}}var k={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=w4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return k.fromPartial($??{})},fromPartial($){let Q=w4();return Q.remoteJid=$.remoteJid??void 0,Q.fromMe=$.fromMe??void 0,Q.id=$.id??void 0,Q.participant=$.participant??void 0,Q}};function n4(){return{}}var iN={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=n4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return iN.fromPartial($??{})},fromPartial($){let Q=n4();return Q.version=$.version??void 0,Q.encIv=$.encIv??void 0,Q.encPayload=$.encPayload??void 0,Q}};function d4(){return{}}var m={encode($,Q=new V){if($.text!==void 0)Q.uint32(10).string($.text);if($.mentionedJid!==void 0&&$.mentionedJid.length!==0)for(let Z of $.mentionedJid)Q.uint32(18).string(Z);if($.commands!==void 0&&$.commands.length!==0)for(let Z of $.commands)TZ.encode(Z,Q.uint32(26).fork()).join();if($.mentions!==void 0&&$.mentions.length!==0)for(let Z of $.mentions)Y8.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=d4();while(Z.pos<q){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 z=Z.string();if(z!==void 0)K.mentionedJid.push(z);continue}case 3:{if(J!==26)break;if(K.commands===void 0)K.commands=[];let z=TZ.decode(Z,Z.uint32());if(z!==void 0)K.commands.push(z);continue}case 4:{if(J!==34)break;if(K.mentions===void 0)K.mentions=[];let z=Y8.decode(Z,Z.uint32());if(z!==void 0)K.mentions.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return m.fromPartial($??{})},fromPartial($){let Q=d4();return Q.text=$.text??void 0,Q.mentionedJid=$.mentionedJid?.map((Z)=>Z)||void 0,Q.commands=$.commands?.map((Z)=>TZ.fromPartial(Z))||void 0,Q.mentions=$.mentions?.map((Z)=>Y8.fromPartial(Z))||void 0,Q}};function j4(){return{}}var r={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=j4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.value=Z.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return r.fromPartial($??{})},fromPartial($){let Q=j4();return Q.value=$.value??void 0,Q.offset=$.offset??void 0,Q.currencyCode=$.currencyCode??void 0,Q}};function c4(){return{}}var o0={encode($,Q=new V){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 Z of $.pollOptions)N$.encode(Z,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)QX.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)oq.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)jq.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=c4();while(Z.pos<q){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 z=N$.decode(Z,Z.uint32());if(z!==void 0)K.pollOptions.push(z);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.int64Number();continue}case 23:{if(J!==186)break;K.pollUpdateParentKey=Z.string();continue}case 24:{if(J!==194)break;K.encPollVote=QX.decode(Z,Z.uint32());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=oq.decode(Z,Z.uint32());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.int64Number();continue}case 38:{if(J!==306)break;K.eventLocation=jq.decode(Z,Z.uint32());continue}case 40:{if(J!==320)break;K.eventEndTime=Z.int64Number();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.int64Number();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.int64Number();continue}case 56:{if(J!==448)break;K.sharableEventInviteEndTime=Z.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return o0.fromPartial($??{})},fromPartial($){let Q=c4();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((Z)=>N$.fromPartial(Z))||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?QX.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?oq.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?jq.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 o4(){return{}}var jq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=o4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return jq.fromPartial($??{})},fromPartial($){let Q=o4();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 b4(){return{}}var N$={encode($,Q=new V){if($.name!==void 0)Q.uint32(10).string($.name);if($.hash!==void 0)Q.uint32(18).string($.hash);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=b4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return N$.fromPartial($??{})},fromPartial($){let Q=b4();return Q.name=$.name??void 0,Q.hash=$.hash??void 0,Q}};function i4(){return{}}var cq={encode($,Q=new V){if($.option!==void 0)N$.encode($.option,Q.uint32(10).fork()).join();if($.optionVoteCount!==void 0)Q.uint32(16).int32($.optionVoteCount);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=i4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.option=N$.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.optionVoteCount=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return cq.fromPartial($??{})},fromPartial($){let Q=i4();return Q.option=$.option!==void 0&&$.option!==null?N$.fromPartial($.option):void 0,Q.optionVoteCount=$.optionVoteCount??void 0,Q}};function m4(){return{}}var oq={encode($,Q=new V){if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let Z of $.pollVotes)cq.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=m4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.pollVotes===void 0)K.pollVotes=[];let z=cq.decode(Z,Z.uint32());if(z!==void 0)K.pollVotes.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return oq.fromPartial($??{})},fromPartial($){let Q=m4();return Q.pollVotes=$.pollVotes?.map((Z)=>cq.fromPartial(Z))||void 0,Q}};function g4(){return{}}var mN={encode($,Q=new V){if($.currentMsg!==void 0)o0.encode($.currentMsg,Q.uint32(10).fork()).join();if($.quotedMsg!==void 0)o0.encode($.quotedMsg,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=g4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.currentMsg=o0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.quotedMsg=o0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return mN.fromPartial($??{})},fromPartial($){let Q=g4();return Q.currentMsg=$.currentMsg!==void 0&&$.currentMsg!==null?o0.fromPartial($.currentMsg):void 0,Q.quotedMsg=$.quotedMsg!==void 0&&$.quotedMsg!==null?o0.fromPartial($.quotedMsg):void 0,Q}};function t4(){return{}}var gN={encode($,Q=new V){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=t4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return gN.fromPartial($??{})},fromPartial($){let Q=t4();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q}};function r4(){return{}}var tN={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=r4();while(Z.pos<q){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.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return tN.fromPartial($??{})},fromPartial($){let Q=r4();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 a4(){return{}}var rN={encode($,Q=new V){if($.key!==void 0)k.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)w.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=a4();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.message=w.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.messageTimestamp=Z.uint64Number();continue}case 4:{if(J!==34)break;K.participant=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return rN.fromPartial($??{})},fromPartial($){let Q=a4();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,Q.messageTimestamp=$.messageTimestamp??void 0,Q.participant=$.participant??void 0,Q}};function s4(){return{}}var b0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=s4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return b0.fromPartial($??{})},fromPartial($){let Q=s4();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 e4(){return{}}var bq={encode($,Q=new V){if($.orfClientState!==void 0)Q.uint32(10).bytes($.orfClientState);if($.threadId!==void 0)Q.uint32(18).string($.threadId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=e4();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return bq.fromPartial($??{})},fromPartial($){let Q=e4();return Q.orfClientState=$.orfClientState??void 0,Q.threadId=$.threadId??void 0,Q}};function $C(){return{}}var aN={encode($,Q=new V){if($.orfThreadId!==void 0)Q.uint32(10).bytes($.orfThreadId);if($.error!==void 0)Q.uint32(18).string($.error);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$C();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return aN.fromPartial($??{})},fromPartial($){let Q=$C();return Q.orfThreadId=$.orfThreadId??void 0,Q.error=$.error??void 0,Q}};function QC(){return{}}var sN={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=QC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return sN.fromPartial($??{})},fromPartial($){let Q=QC();return Q.companionPublicKey=$.companionPublicKey??void 0,Q.companionIdentityKey=$.companionIdentityKey??void 0,Q.advSecret=$.advSecret??void 0,Q}};function ZC(){return{}}var iq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ZC();while(Z.pos<q){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.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return iq.fromPartial($??{})},fromPartial($){let Q=ZC();return Q.userJid=$.userJid??void 0,Q.leaveReason=$.leaveReason??void 0,Q.leaveTs=$.leaveTs??void 0,Q}};function JC(){return{}}var mq={encode($,Q=new V){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let Z of $.pastParticipants)iq.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=JC();while(Z.pos<q){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 z=iq.decode(Z,Z.uint32());if(z!==void 0)K.pastParticipants.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return mq.fromPartial($??{})},fromPartial($){let Q=JC();return Q.groupJid=$.groupJid??void 0,Q.pastParticipants=$.pastParticipants?.map((Z)=>iq.fromPartial(Z))||void 0,Q}};function KC(){return{}}var eN={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=KC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return eN.fromPartial($??{})},fromPartial($){let Q=KC();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 qC(){return{}}var B$={encode($,Q=new V){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)gq.encode($.mediaData,Q.uint32(74).fork()).join();if($.type!==void 0)Q.uint32(80).int32($.type);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=qC();while(Z.pos<q){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.uint64Number();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=gq.decode(Z,Z.uint32());continue}case 10:{if(J!==80)break;K.type=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return B$.fromPartial($??{})},fromPartial($){let Q=qC();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?gq.fromPartial($.mediaData):void 0,Q.type=$.type??void 0,Q}};function XC(){return{}}var gq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=XC();while(Z.pos<q){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.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return gq.fromPartial($??{})},fromPartial($){let Q=XC();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 zC(){return{}}var i0={encode($,Q=new V){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)r.encode($.primaryAmount,Q.uint32(98).fork()).join();if($.exchangeAmount!==void 0)r.encode($.exchangeAmount,Q.uint32(106).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=zC();while(Z.pos<q){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.uint64Number();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.uint64Number();continue}case 6:{if(J!==50)break;K.requestMessageKey=k.decode(Z,Z.uint32());continue}case 7:{if(J!==56)break;K.expiryTimestamp=Z.uint64Number();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=r.decode(Z,Z.uint32());continue}case 13:{if(J!==106)break;K.exchangeAmount=r.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return i0.fromPartial($??{})},fromPartial($){let Q=zC();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?r.fromPartial($.primaryAmount):void 0,Q.exchangeAmount=$.exchangeAmount!==void 0&&$.exchangeAmount!==null?r.fromPartial($.exchangeAmount):void 0,Q}};function YC(){return{}}var tq={encode($,Q=new V){if($.pnJid!==void 0)Q.uint32(10).string($.pnJid);if($.lidJid!==void 0)Q.uint32(18).string($.lidJid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=YC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return tq.fromPartial($??{})},fromPartial($){let Q=YC();return Q.pnJid=$.pnJid??void 0,Q.lidJid=$.lidJid??void 0,Q}};function VC(){return{}}var rq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=VC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return rq.fromPartial($??{})},fromPartial($){let Q=VC();return Q.oldPhoto=$.oldPhoto??void 0,Q.newPhoto=$.newPhoto??void 0,Q.newPhotoId=$.newPhotoId??void 0,Q}};function HC(){return{}}var aq={encode($,Q=new V){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)P$.encode($.messageAddOnContextInfo,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=HC();while(Z.pos<q){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());continue}case 3:{if(J!==24)break;K.senderTimestampMs=Z.int64Number();continue}case 4:{if(J!==32)break;K.serverTimestampMs=Z.int64Number();continue}case 5:{if(J!==42)break;K.messageAddOnContextInfo=P$.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return aq.fromPartial($??{})},fromPartial($){let Q=HC();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?P$.fromPartial($.messageAddOnContextInfo):void 0,Q}};function GC(){return{}}var sq={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=GC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return sq.fromPartial($??{})},fromPartial($){let Q=GC();return Q.xDeprecated=$.xDeprecated??void 0,Q.yDeprecated=$.yDeprecated??void 0,Q.x=$.x??void 0,Q.y=$.y??void 0,Q}};function UC(){return{}}var eq={encode($,Q=new V){if($.pollInvalidated!==void 0)Q.uint32(8).bool($.pollInvalidated);if($.pollNameHashHistory!==void 0&&$.pollNameHashHistory.length!==0)for(let Z of $.pollNameHashHistory)$X.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=UC();while(Z.pos<q){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 z=$X.decode(Z,Z.uint32());if(z!==void 0)K.pollNameHashHistory.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return eq.fromPartial($??{})},fromPartial($){let Q=UC();return Q.pollInvalidated=$.pollInvalidated??void 0,Q.pollNameHashHistory=$.pollNameHashHistory?.map((Z)=>$X.fromPartial(Z))||void 0,Q}};function CC(){return{}}var $X={encode($,Q=new V){if($.editStanzaId!==void 0)Q.uint32(10).string($.editStanzaId);if($.pollNameHash!==void 0)Q.uint32(18).bytes($.pollNameHash);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=CC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $X.fromPartial($??{})},fromPartial($){let Q=CC();return Q.editStanzaId=$.editStanzaId??void 0,Q.pollNameHash=$.pollNameHash??void 0,Q}};function xC(){return{}}var QX={encode($,Q=new V){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=xC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return QX.fromPartial($??{})},fromPartial($){let Q=xC();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function DC(){return{}}var ZX={encode($,Q=new V){if($.pollUpdateMessageKey!==void 0)k.encode($.pollUpdateMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)S0.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)N0.encode($.metadata,Q.uint32(50).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=DC();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pollUpdateMessageKey=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.vote=S0.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.senderTimestampMs=Z.int64Number();continue}case 4:{if(J!==32)break;K.serverTimestampMs=Z.int64Number();continue}case 5:{if(J!==40)break;K.unread=Z.bool();continue}case 6:{if(J!==50)break;K.metadata=N0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return ZX.fromPartial($??{})},fromPartial($){let Q=DC();return Q.pollUpdateMessageKey=$.pollUpdateMessageKey!==void 0&&$.pollUpdateMessageKey!==null?k.fromPartial($.pollUpdateMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?S0.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?N0.fromPartial($.metadata):void 0,Q}};function LC(){return{}}var $B={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=LC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $B.fromPartial($??{})},fromPartial($){let Q=LC();return Q.id=$.id??void 0,Q.publicKey=$.publicKey??void 0,Q.privateKey=$.privateKey??void 0,Q}};function FC(){return{}}var QB={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=FC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return QB.fromPartial($??{})},fromPartial($){let Q=FC();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 PC(){return{}}var JX={encode($,Q=new V){if($.serverCampaignId!==void 0)Q.uint32(10).string($.serverCampaignId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=PC();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.serverCampaignId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return JX.fromPartial($??{})},fromPartial($){let Q=PC();return Q.serverCampaignId=$.serverCampaignId??void 0,Q}};function kC(){return{}}var ZB={encode($,Q=new V){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.nonce!==void 0)Q.uint32(18).bytes($.nonce);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=kC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return ZB.fromPartial($??{})},fromPartial($){let Q=kC();return Q.publicKey=$.publicKey??void 0,Q.nonce=$.nonce??void 0,Q}};function NC(){return{}}var KX={encode($,Q=new V){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 Z of $.capabilities)Q.uint32(66).string(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=NC();while(Z.pos<q){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.uint64Number();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 z=Z.string();if(z!==void 0)K.capabilities.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return KX.fromPartial($??{})},fromPartial($){let Q=NC();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((Z)=>Z)||void 0,Q}};function BC(){return{}}var JB={encode($,Q=new V){if($.companionEphemeralIdentity!==void 0)Q.uint32(10).bytes($.companionEphemeralIdentity);if($.commitment!==void 0)fZ.encode($.commitment,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=BC();while(Z.pos<q){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=fZ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return JB.fromPartial($??{})},fromPartial($){let Q=BC();return Q.companionEphemeralIdentity=$.companionEphemeralIdentity??void 0,Q.commitment=$.commitment!==void 0&&$.commitment!==null?fZ.fromPartial($.commitment):void 0,Q}};function RC(){return{}}var qX={encode($,Q=new V){if($.id!==void 0)Q.uint32(10).string($.id);if($.pushname!==void 0)Q.uint32(18).string($.pushname);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=RC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return qX.fromPartial($??{})},fromPartial($){let Q=RC();return Q.id=$.id??void 0,Q.pushname=$.pushname??void 0,Q}};function OC(){return{}}var KB={encode($,Q=new V){return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=OC();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return KB.fromPartial($??{})},fromPartial($){return OC()}};function AC(){return{}}var XX={encode($,Q=new V){if($.filterName!==void 0)Q.uint32(10).string($.filterName);if($.parameters!==void 0&&$.parameters.length!==0)for(let Z of $.parameters)zX.encode(Z,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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=AC();while(Z.pos<q){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 z=zX.decode(Z,Z.uint32());if(z!==void 0)K.parameters.push(z);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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return XX.fromPartial($??{})},fromPartial($){let Q=AC();return Q.filterName=$.filterName??void 0,Q.parameters=$.parameters?.map((Z)=>zX.fromPartial(Z))||void 0,Q.filterResult=$.filterResult??void 0,Q.clientNotSupportedConfig=$.clientNotSupportedConfig??void 0,Q}};function EC(){return{}}var j$={encode($,Q=new V){if($.clauseType!==void 0)Q.uint32(8).int32($.clauseType);if($.clauses!==void 0&&$.clauses.length!==0)for(let Z of $.clauses)j$.encode(Z,Q.uint32(18).fork()).join();if($.filters!==void 0&&$.filters.length!==0)for(let Z of $.filters)XX.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=EC();while(Z.pos<q){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 z=j$.decode(Z,Z.uint32());if(z!==void 0)K.clauses.push(z);continue}case 3:{if(J!==26)break;if(K.filters===void 0)K.filters=[];let z=XX.decode(Z,Z.uint32());if(z!==void 0)K.filters.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return j$.fromPartial($??{})},fromPartial($){let Q=EC();return Q.clauseType=$.clauseType??void 0,Q.clauses=$.clauses?.map((Z)=>j$.fromPartial(Z))||void 0,Q.filters=$.filters?.map((Z)=>XX.fromPartial(Z))||void 0,Q}};function MC(){return{}}var zX={encode($,Q=new V){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)Q.uint32(18).string($.value);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=MC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return zX.fromPartial($??{})},fromPartial($){let Q=MC();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function WC(){return{}}var YX={encode($,Q=new V){if($.originalData!==void 0)Q.uint32(10).bytes($.originalData);if($.extractedText!==void 0)Q.uint32(18).string($.extractedText);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=WC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return YX.fromPartial($??{})},fromPartial($){let Q=WC();return Q.originalData=$.originalData??void 0,Q.extractedText=$.extractedText??void 0,Q}};function IC(){return{}}var VX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=IC();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());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.int64Number();continue}case 5:{if(J!==40)break;K.unread=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return VX.fromPartial($??{})},fromPartial($){let Q=IC();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 SC(){return{}}var HX={encode($,Q=new V){if($.emoji!==void 0)Q.uint32(10).string($.emoji);if($.weight!==void 0)Q.uint32(21).float($.weight);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=SC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return HX.fromPartial($??{})},fromPartial($){let Q=SC();return Q.emoji=$.emoji??void 0,Q.weight=$.weight??void 0,Q}};function vC(){return{}}var qB={encode($,Q=new V){if($.currentSession!==void 0)m0.encode($.currentSession,Q.uint32(10).fork()).join();if($.previousSessions!==void 0&&$.previousSessions.length!==0)for(let Z of $.previousSessions)m0.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=vC();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.currentSession=m0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;if(K.previousSessions===void 0)K.previousSessions=[];let z=m0.decode(Z,Z.uint32());if(z!==void 0)K.previousSessions.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return qB.fromPartial($??{})},fromPartial($){let Q=vC();return Q.currentSession=$.currentSession!==void 0&&$.currentSession!==null?m0.fromPartial($.currentSession):void 0,Q.previousSessions=$.previousSessions?.map((Z)=>m0.fromPartial(Z))||void 0,Q}};function TC(){return{}}var XB={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=TC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return XB.fromPartial($??{})},fromPartial($){let Q=TC();return Q.minVersion=$.minVersion??void 0,Q.maxVersion=$.maxVersion??void 0,Q.notReportableMinVersion=$.notReportableMinVersion??void 0,Q.never=$.never??void 0,Q}};function yC(){return{}}var GX={encode($,Q=new V){if($.reportingTag!==void 0)Q.uint32(10).bytes($.reportingTag);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=yC();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.reportingTag=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return GX.fromPartial($??{})},fromPartial($){let Q=yC();return Q.reportingTag=$.reportingTag??void 0,Q}};function fC(){return{}}var zB={encode($,Q=new V){if($.regionId!==void 0&&$.regionId.length!==0)for(let Z of $.regionId)Q.uint32(8).int32(Z);if($.clusterId!==void 0&&$.clusterId.length!==0)for(let Z of $.clusterId)Q.uint32(16).int32(Z);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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=fC();while(Z.pos<q){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 z=Z.uint32()+Z.pos;while(Z.pos<z)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 z=Z.uint32()+Z.pos;while(Z.pos<z)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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return zB.fromPartial($??{})},fromPartial($){let Q=fC();return Q.regionId=$.regionId?.map((Z)=>Z)||void 0,Q.clusterId=$.clusterId?.map((Z)=>Z)||void 0,Q.taskId=$.taskId??void 0,Q.debug=$.debug??void 0,Q.tcpBbr=$.tcpBbr??void 0,Q.tcpKeepalive=$.tcpKeepalive??void 0,Q}};function _C(){return{}}var UX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_C();while(Z.pos<q){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.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return UX.fromPartial($??{})},fromPartial($){let Q=_C();return Q.revealKeyId=$.revealKeyId??void 0,Q.revealKey=$.revealKey??void 0,Q.scheduledTime=$.scheduledTime??void 0,Q}};function hC(){return{}}var g6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=hC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return g6.fromPartial($??{})},fromPartial($){let Q=hC();return Q.id=$.id??void 0,Q.iteration=$.iteration??void 0,Q.chainKey=$.chainKey??void 0,Q.signingKey=$.signingKey??void 0,Q}};function lC(){return{}}var t6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=lC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return t6.fromPartial($??{})},fromPartial($){let Q=lC();return Q.id=$.id??void 0,Q.iteration=$.iteration??void 0,Q.ciphertext=$.ciphertext??void 0,Q}};function uC(){return{}}var YB={encode($,Q=new V){if($.senderKeyStates!==void 0&&$.senderKeyStates.length!==0)for(let Z of $.senderKeyStates)CX.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=uC();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.senderKeyStates===void 0)K.senderKeyStates=[];let z=CX.decode(Z,Z.uint32());if(z!==void 0)K.senderKeyStates.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return YB.fromPartial($??{})},fromPartial($){let Q=uC();return Q.senderKeyStates=$.senderKeyStates?.map((Z)=>CX.fromPartial(Z))||void 0,Q}};function pC(){return{}}var CX={encode($,Q=new V){if($.senderKeyId!==void 0)Q.uint32(8).uint32($.senderKeyId);if($.senderChainKey!==void 0)xX.encode($.senderChainKey,Q.uint32(18).fork()).join();if($.senderSigningKey!==void 0)LX.encode($.senderSigningKey,Q.uint32(26).fork()).join();if($.senderMessageKeys!==void 0&&$.senderMessageKeys.length!==0)for(let Z of $.senderMessageKeys)DX.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=pC();while(Z.pos<q){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=xX.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.senderSigningKey=LX.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;if(K.senderMessageKeys===void 0)K.senderMessageKeys=[];let z=DX.decode(Z,Z.uint32());if(z!==void 0)K.senderMessageKeys.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return CX.fromPartial($??{})},fromPartial($){let Q=pC();return Q.senderKeyId=$.senderKeyId??void 0,Q.senderChainKey=$.senderChainKey!==void 0&&$.senderChainKey!==null?xX.fromPartial($.senderChainKey):void 0,Q.senderSigningKey=$.senderSigningKey!==void 0&&$.senderSigningKey!==null?LX.fromPartial($.senderSigningKey):void 0,Q.senderMessageKeys=$.senderMessageKeys?.map((Z)=>DX.fromPartial(Z))||void 0,Q}};function wC(){return{}}var xX={encode($,Q=new V){if($.iteration!==void 0)Q.uint32(8).uint32($.iteration);if($.seed!==void 0)Q.uint32(18).bytes($.seed);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=wC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return xX.fromPartial($??{})},fromPartial($){let Q=wC();return Q.iteration=$.iteration??void 0,Q.seed=$.seed??void 0,Q}};function nC(){return{}}var DX={encode($,Q=new V){if($.iteration!==void 0)Q.uint32(8).uint32($.iteration);if($.seed!==void 0)Q.uint32(18).bytes($.seed);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=nC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return DX.fromPartial($??{})},fromPartial($){let Q=nC();return Q.iteration=$.iteration??void 0,Q.seed=$.seed??void 0,Q}};function dC(){return{}}var LX={encode($,Q=new V){if($.public!==void 0)Q.uint32(10).bytes($.public);if($.private!==void 0)Q.uint32(18).bytes($.private);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=dC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return LX.fromPartial($??{})},fromPartial($){let Q=dC();return Q.public=$.public??void 0,Q.private=$.private??void 0,Q}};function jC(){return{}}var r6={encode($,Q=new V){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=jC();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.stanzaId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return r6.fromPartial($??{})},fromPartial($){let Q=jC();return Q.stanzaId=$.stanzaId??void 0,Q}};function cC(){return{}}var m0={encode($,Q=new V){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)g0.encode($.senderChain,Q.uint32(50).fork()).join();if($.receiverChains!==void 0&&$.receiverChains.length!==0)for(let Z of $.receiverChains)g0.encode(Z,Q.uint32(58).fork()).join();if($.pendingKeyExchange!==void 0)kX.encode($.pendingKeyExchange,Q.uint32(66).fork()).join();if($.pendingPreKey!==void 0)NX.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=cC();while(Z.pos<q){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=g0.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;if(K.receiverChains===void 0)K.receiverChains=[];let z=g0.decode(Z,Z.uint32());if(z!==void 0)K.receiverChains.push(z);continue}case 8:{if(J!==66)break;K.pendingKeyExchange=kX.decode(Z,Z.uint32());continue}case 9:{if(J!==74)break;K.pendingPreKey=NX.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return m0.fromPartial($??{})},fromPartial($){let Q=cC();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?g0.fromPartial($.senderChain):void 0,Q.receiverChains=$.receiverChains?.map((Z)=>g0.fromPartial(Z))||void 0,Q.pendingKeyExchange=$.pendingKeyExchange!==void 0&&$.pendingKeyExchange!==null?kX.fromPartial($.pendingKeyExchange):void 0,Q.pendingPreKey=$.pendingPreKey!==void 0&&$.pendingPreKey!==null?NX.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 oC(){return{}}var g0={encode($,Q=new V){if($.senderRatchetKey!==void 0)Q.uint32(10).bytes($.senderRatchetKey);if($.senderRatchetKeyPrivate!==void 0)Q.uint32(18).bytes($.senderRatchetKeyPrivate);if($.chainKey!==void 0)FX.encode($.chainKey,Q.uint32(26).fork()).join();if($.messageKeys!==void 0&&$.messageKeys.length!==0)for(let Z of $.messageKeys)PX.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=oC();while(Z.pos<q){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=FX.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;if(K.messageKeys===void 0)K.messageKeys=[];let z=PX.decode(Z,Z.uint32());if(z!==void 0)K.messageKeys.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return g0.fromPartial($??{})},fromPartial($){let Q=oC();return Q.senderRatchetKey=$.senderRatchetKey??void 0,Q.senderRatchetKeyPrivate=$.senderRatchetKeyPrivate??void 0,Q.chainKey=$.chainKey!==void 0&&$.chainKey!==null?FX.fromPartial($.chainKey):void 0,Q.messageKeys=$.messageKeys?.map((Z)=>PX.fromPartial(Z))||void 0,Q}};function bC(){return{}}var FX={encode($,Q=new V){if($.index!==void 0)Q.uint32(8).uint32($.index);if($.key!==void 0)Q.uint32(18).bytes($.key);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=bC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return FX.fromPartial($??{})},fromPartial($){let Q=bC();return Q.index=$.index??void 0,Q.key=$.key??void 0,Q}};function iC(){return{}}var PX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=iC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return PX.fromPartial($??{})},fromPartial($){let Q=iC();return Q.index=$.index??void 0,Q.cipherKey=$.cipherKey??void 0,Q.macKey=$.macKey??void 0,Q.iv=$.iv??void 0,Q}};function mC(){return{}}var kX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=mC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return kX.fromPartial($??{})},fromPartial($){let Q=mC();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 gC(){return{}}var NX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=gC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return NX.fromPartial($??{})},fromPartial($){let Q=gC();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 tC(){return{}}var BX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=tC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return BX.fromPartial($??{})},fromPartial($){let Q=tC();return Q.disclaimerText=$.disclaimerText??void 0,Q.hcaId=$.hcaId??void 0,Q.sessionTransparencyType=$.sessionTransparencyType??void 0,Q}};function rC(){return{}}var VB={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=rC();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return VB.fromPartial($??{})},fromPartial($){let Q=rC();return Q.ratchetKey=$.ratchetKey??void 0,Q.counter=$.counter??void 0,Q.previousCounter=$.previousCounter??void 0,Q.ciphertext=$.ciphertext??void 0,Q}};function aC(){return{}}var HB={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=aC();while(Z.pos<q){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.fixed64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return HB.fromPartial($??{})},fromPartial($){let Q=aC();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 sC(){return{}}var RX={encode($,Q=new V){if($.type!==void 0)Q.uint32(8).int32($.type);if($.actionUrl!==void 0)Q.uint32(18).string($.actionUrl);if($.statusReshare!==void 0)IX.encode($.statusReshare,Q.uint32(26).fork()).join();if($.externalShare!==void 0)AX.encode($.externalShare,Q.uint32(34).fork()).join();if($.music!==void 0)MX.encode($.music,Q.uint32(42).fork()).join();if($.groupStatus!==void 0)EX.encode($.groupStatus,Q.uint32(50).fork()).join();if($.rlAttribution!==void 0)WX.encode($.rlAttribution,Q.uint32(58).fork()).join();if($.aiCreatedAttribution!==void 0)OX.encode($.aiCreatedAttribution,Q.uint32(66).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=sC();while(Z.pos<q){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=IX.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.externalShare=AX.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.music=MX.decode(Z,Z.uint32());continue}case 6:{if(J!==50)break;K.groupStatus=EX.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.rlAttribution=WX.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.aiCreatedAttribution=OX.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return RX.fromPartial($??{})},fromPartial($){let Q=sC();return Q.type=$.type??void 0,Q.actionUrl=$.actionUrl??void 0,Q.statusReshare=$.statusReshare!==void 0&&$.statusReshare!==null?IX.fromPartial($.statusReshare):void 0,Q.externalShare=$.externalShare!==void 0&&$.externalShare!==null?AX.fromPartial($.externalShare):void 0,Q.music=$.music!==void 0&&$.music!==null?MX.fromPartial($.music):void 0,Q.groupStatus=$.groupStatus!==void 0&&$.groupStatus!==null?EX.fromPartial($.groupStatus):void 0,Q.rlAttribution=$.rlAttribution!==void 0&&$.rlAttribution!==null?WX.fromPartial($.rlAttribution):void 0,Q.aiCreatedAttribution=$.aiCreatedAttribution!==void 0&&$.aiCreatedAttribution!==null?OX.fromPartial($.aiCreatedAttribution):void 0,Q}};function eC(){return{}}var OX={encode($,Q=new V){if($.source!==void 0)Q.uint32(8).int32($.source);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=eC();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.source=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return OX.fromPartial($??{})},fromPartial($){let Q=eC();return Q.source=$.source??void 0,Q}};function $x(){return{}}var AX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$x();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return AX.fromPartial($??{})},fromPartial($){let Q=$x();return Q.actionUrl=$.actionUrl??void 0,Q.source=$.source??void 0,Q.duration=$.duration??void 0,Q.actionFallbackUrl=$.actionFallbackUrl??void 0,Q}};function Qx(){return{}}var EX={encode($,Q=new V){if($.authorJid!==void 0)Q.uint32(10).string($.authorJid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Qx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.authorJid=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return EX.fromPartial($??{})},fromPartial($){let Q=Qx();return Q.authorJid=$.authorJid??void 0,Q}};function Zx(){return{}}var MX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Zx();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return MX.fromPartial($??{})},fromPartial($){let Q=Zx();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 Jx(){return{}}var WX={encode($,Q=new V){if($.source!==void 0)Q.uint32(8).int32($.source);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Jx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.source=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return WX.fromPartial($??{})},fromPartial($){let Q=Jx();return Q.source=$.source??void 0,Q}};function Kx(){return{}}var IX={encode($,Q=new V){if($.source!==void 0)Q.uint32(8).int32($.source);if($.metadata!==void 0)SX.encode($.metadata,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Kx();while(Z.pos<q){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=SX.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return IX.fromPartial($??{})},fromPartial($){let Q=Kx();return Q.source=$.source??void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?SX.fromPartial($.metadata):void 0,Q}};function qx(){return{}}var SX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=qx();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return SX.fromPartial($??{})},fromPartial($){let Q=qx();return Q.duration=$.duration??void 0,Q.channelJid=$.channelJid??void 0,Q.channelMessageId=$.channelMessageId??void 0,Q.hasMultipleReshares=$.hasMultipleReshares??void 0,Q}};function Xx(){return{}}var vX={encode($,Q=new V){if($.quotedStatus!==void 0)w.encode($.quotedStatus,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Xx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.quotedStatus=w.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return vX.fromPartial($??{})},fromPartial($){let Q=Xx();return Q.quotedStatus=$.quotedStatus!==void 0&&$.quotedStatus!==null?w.fromPartial($.quotedStatus):void 0,Q}};function zx(){return{}}var TX={encode($,Q=new V){if($.campaignId!==void 0)Q.uint32(352).uint64($.campaignId);if($.campaignExpirationTimestamp!==void 0)Q.uint32(360).uint64($.campaignExpirationTimestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=zx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 44:{if(J!==352)break;K.campaignId=Z.uint64Number();continue}case 45:{if(J!==360)break;K.campaignExpirationTimestamp=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return TX.fromPartial($??{})},fromPartial($){let Q=zx();return Q.campaignId=$.campaignId??void 0,Q.campaignExpirationTimestamp=$.campaignExpirationTimestamp??void 0,Q}};function Yx(){return{}}var yX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Yx();while(Z.pos<q){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.uint64Number();continue}case 10:{if(J!==85)break;K.weight=Z.float();continue}case 11:{if(J!==88)break;K.lastStickerSentTs=Z.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return yX.fromPartial($??{})},fromPartial($){let Q=Yx();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 Vx(){return{}}var o={encode($,Q=new V){if($.payload!==void 0)Q.uint32(10).bytes($.payload);if($.version!==void 0)Q.uint32(16).int32($.version);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Vx();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return o.fromPartial($??{})},fromPartial($){let Q=Vx();return Q.payload=$.payload??void 0,Q.version=$.version??void 0,Q}};function Hx(){return{}}var I$={encode($,Q=new V){if($.index!==void 0)Q.uint32(10).bytes($.index);if($.value!==void 0)S$.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Hx();while(Z.pos<q){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=S$.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return I$.fromPartial($??{})},fromPartial($){let Q=Hx();return Q.index=$.index??void 0,Q.value=$.value!==void 0&&$.value!==null?S$.fromPartial($.value):void 0,Q.padding=$.padding??void 0,Q.version=$.version??void 0,Q}};function Gx(){return{}}var S$={encode($,Q=new V){if($.timestamp!==void 0)Q.uint32(8).int64($.timestamp);if($.starAction!==void 0)b9.encode($.starAction,Q.uint32(18).fork()).join();if($.contactAction!==void 0)rX.encode($.contactAction,Q.uint32(26).fork()).join();if($.muteAction!==void 0)O9.encode($.muteAction,Q.uint32(34).fork()).join();if($.pinAction!==void 0)y9.encode($.pinAction,Q.uint32(42).fork()).join();if($.pushNameSetting!==void 0)n9.encode($.pushNameSetting,Q.uint32(58).fork()).join();if($.quickReplyAction!==void 0)d9.encode($.quickReplyAction,Q.uint32(66).fork()).join();if($.recentEmojiWeightsAction!==void 0)j9.encode($.recentEmojiWeightsAction,Q.uint32(90).fork()).join();if($.labelEditAction!==void 0)U9.encode($.labelEditAction,Q.uint32(114).fork()).join();if($.labelAssociationAction!==void 0)G9.encode($.labelAssociationAction,Q.uint32(122).fork()).join();if($.localeSetting!==void 0)D9.encode($.localeSetting,Q.uint32(130).fork()).join();if($.archiveChatAction!==void 0)lX.encode($.archiveChatAction,Q.uint32(138).fork()).join();if($.deleteMessageForMeAction!==void 0)K9.encode($.deleteMessageForMeAction,Q.uint32(146).fork()).join();if($.keyExpiration!==void 0)H9.encode($.keyExpiration,Q.uint32(154).fork()).join();if($.markChatAsReadAction!==void 0)P9.encode($.markChatAsReadAction,Q.uint32(162).fork()).join();if($.clearChatAction!==void 0)gX.encode($.clearChatAction,Q.uint32(170).fork()).join();if($.deleteChatAction!==void 0)Z9.encode($.deleteChatAction,Q.uint32(178).fork()).join();if($.unarchiveChatsSetting!==void 0)J6.encode($.unarchiveChatsSetting,Q.uint32(186).fork()).join();if($.primaryFeature!==void 0)_9.encode($.primaryFeature,Q.uint32(194).fork()).join();if($.androidUnsupportedActions!==void 0)hX.encode($.androidUnsupportedActions,Q.uint32(210).fork()).join();if($.agentAction!==void 0)fX.encode($.agentAction,Q.uint32(218).fork()).join();if($.subscriptionAction!==void 0)t9.encode($.subscriptionAction,Q.uint32(226).fork()).join();if($.userStatusMuteAction!==void 0)K6.encode($.userStatusMuteAction,Q.uint32(234).fork()).join();if($.timeFormatAction!==void 0)Q6.encode($.timeFormatAction,Q.uint32(242).fork()).join();if($.nuxAction!==void 0)I9.encode($.nuxAction,Q.uint32(250).fork()).join();if($.primaryVersionAction!==void 0)h9.encode($.primaryVersionAction,Q.uint32(258).fork()).join();if($.stickerAction!==void 0)R$.encode($.stickerAction,Q.uint32(266).fork()).join();if($.removeRecentStickerAction!==void 0)c9.encode($.removeRecentStickerAction,Q.uint32(274).fork()).join();if($.chatAssignment!==void 0)iX.encode($.chatAssignment,Q.uint32(282).fork()).join();if($.chatAssignmentOpenedStatus!==void 0)mX.encode($.chatAssignmentOpenedStatus,Q.uint32(290).fork()).join();if($.pnForLidChatAction!==void 0)f9.encode($.pnForLidChatAction,Q.uint32(298).fork()).join();if($.marketingMessageAction!==void 0)k9.encode($.marketingMessageAction,Q.uint32(306).fork()).join();if($.marketingMessageBroadcastAction!==void 0)N9.encode($.marketingMessageBroadcastAction,Q.uint32(314).fork()).join();if($.externalWebBetaAction!==void 0)X9.encode($.externalWebBetaAction,Q.uint32(322).fork()).join();if($.privacySettingRelayAllCalls!==void 0)p9.encode($.privacySettingRelayAllCalls,Q.uint32(330).fork()).join();if($.callLogAction!==void 0)bX.encode($.callLogAction,Q.uint32(338).fork()).join();if($.ugcBot!==void 0)Z6.encode($.ugcBot,Q.uint32(346).fork()).join();if($.statusPrivacy!==void 0)m9.encode($.statusPrivacy,Q.uint32(354).fork()).join();if($.botWelcomeRequestAction!==void 0)nX.encode($.botWelcomeRequestAction,Q.uint32(362).fork()).join();if($.deleteIndividualCallLog!==void 0)J9.encode($.deleteIndividualCallLog,Q.uint32(370).fork()).join();if($.labelReorderingAction!==void 0)C9.encode($.labelReorderingAction,Q.uint32(378).fork()).join();if($.paymentInfoAction!==void 0)v9.encode($.paymentInfoAction,Q.uint32(386).fork()).join();if($.customPaymentMethodsAction!==void 0)$9.encode($.customPaymentMethodsAction,Q.uint32(394).fork()).join();if($.lockChatAction!==void 0)L9.encode($.lockChatAction,Q.uint32(402).fork()).join();if($.chatLockSettings!==void 0)s0.encode($.chatLockSettings,Q.uint32(410).fork()).join();if($.wamoUserIdentifierAction!==void 0)V6.encode($.wamoUserIdentifierAction,Q.uint32(418).fork()).join();if($.privacySettingDisableLinkPreviewsAction!==void 0)u9.encode($.privacySettingDisableLinkPreviewsAction,Q.uint32(426).fork()).join();if($.deviceCapabilities!==void 0)xJ.encode($.deviceCapabilities,Q.uint32(434).fork()).join();if($.noteEditAction!==void 0)M9.encode($.noteEditAction,Q.uint32(442).fork()).join();if($.favoritesAction!==void 0)z9.encode($.favoritesAction,Q.uint32(450).fork()).join();if($.merchantPaymentPartnerAction!==void 0)B9.encode($.merchantPaymentPartnerAction,Q.uint32(458).fork()).join();if($.waffleAccountLinkStateAction!==void 0)Y6.encode($.waffleAccountLinkStateAction,Q.uint32(466).fork()).join();if($.usernameChatStartMode!==void 0)q6.encode($.usernameChatStartMode,Q.uint32(474).fork()).join();if($.notificationActivitySettingAction!==void 0)W9.encode($.notificationActivitySettingAction,Q.uint32(482).fork()).join();if($.lidContactAction!==void 0)x9.encode($.lidContactAction,Q.uint32(490).fork()).join();if($.ctwaPerCustomerDataSharingAction!==void 0)aX.encode($.ctwaPerCustomerDataSharingAction,Q.uint32(498).fork()).join();if($.paymentTosAction!==void 0)T9.encode($.paymentTosAction,Q.uint32(506).fork()).join();if($.privacySettingChannelsPersonalisedRecommendationAction!==void 0)l9.encode($.privacySettingChannelsPersonalisedRecommendationAction,Q.uint32(514).fork()).join();if($.detectedOutcomesStatusAction!==void 0)q9.encode($.detectedOutcomesStatusAction,Q.uint32(530).fork()).join();if($.maibaAiFeaturesControlAction!==void 0)F9.encode($.maibaAiFeaturesControlAction,Q.uint32(546).fork()).join();if($.businessBroadcastListAction!==void 0)oX.encode($.businessBroadcastListAction,Q.uint32(554).fork()).join();if($.musicUserIdAction!==void 0)R9.encode($.musicUserIdAction,Q.uint32(562).fork()).join();if($.statusPostOptInNotificationPreferencesAction!==void 0)i9.encode($.statusPostOptInNotificationPreferencesAction,Q.uint32(570).fork()).join();if($.avatarUpdatedAction!==void 0)pX.encode($.avatarUpdatedAction,Q.uint32(578).fork()).join();if($.privateProcessingSettingAction!==void 0)w9.encode($.privateProcessingSettingAction,Q.uint32(594).fork()).join();if($.newsletterSavedInterestsAction!==void 0)E9.encode($.newsletterSavedInterestsAction,Q.uint32(602).fork()).join();if($.aiThreadRenameAction!==void 0)_X.encode($.aiThreadRenameAction,Q.uint32(610).fork()).join();if($.interactiveMessageAction!==void 0)V9.encode($.interactiveMessageAction,Q.uint32(618).fork()).join();if($.settingsSyncAction!==void 0)o9.encode($.settingsSyncAction,Q.uint32(626).fork()).join();if($.outContactAction!==void 0)S9.encode($.outContactAction,Q.uint32(634).fork()).join();if($.nctSaltSyncAction!==void 0)A9.encode($.nctSaltSyncAction,Q.uint32(642).fork()).join();if($.businessBroadcastCampaignAction!==void 0)jX.encode($.businessBroadcastCampaignAction,Q.uint32(650).fork()).join();if($.businessBroadcastInsightsAction!==void 0)cX.encode($.businessBroadcastInsightsAction,Q.uint32(658).fork()).join();if($.customerDataAction!==void 0)Q9.encode($.customerDataAction,Q.uint32(666).fork()).join();if($.subscriptionsSyncV2Action!==void 0)r9.encode($.subscriptionsSyncV2Action,Q.uint32(674).fork()).join();if($.threadPinAction!==void 0)$6.encode($.threadPinAction,Q.uint32(682).fork()).join();if($.autoOrganizeBusinessChatSetting!==void 0)uX.encode($.autoOrganizeBusinessChatSetting,Q.uint32(690).fork()).join();if($.bizAiSettingsNudgeAction!==void 0)wX.encode($.bizAiSettingsNudgeAction,Q.uint32(698).fork()).join();if($.coexV2VersionAction!==void 0)tX.encode($.coexV2VersionAction,Q.uint32(706).fork()).join();if($.wasaRootSecretAction!==void 0)X6.encode($.wasaRootSecretAction,Q.uint32(714).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Gx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.timestamp=Z.int64Number();continue}case 2:{if(J!==18)break;K.starAction=b9.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.contactAction=rX.decode(Z,Z.uint32());continue}case 4:{if(J!==34)break;K.muteAction=O9.decode(Z,Z.uint32());continue}case 5:{if(J!==42)break;K.pinAction=y9.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.pushNameSetting=n9.decode(Z,Z.uint32());continue}case 8:{if(J!==66)break;K.quickReplyAction=d9.decode(Z,Z.uint32());continue}case 11:{if(J!==90)break;K.recentEmojiWeightsAction=j9.decode(Z,Z.uint32());continue}case 14:{if(J!==114)break;K.labelEditAction=U9.decode(Z,Z.uint32());continue}case 15:{if(J!==122)break;K.labelAssociationAction=G9.decode(Z,Z.uint32());continue}case 16:{if(J!==130)break;K.localeSetting=D9.decode(Z,Z.uint32());continue}case 17:{if(J!==138)break;K.archiveChatAction=lX.decode(Z,Z.uint32());continue}case 18:{if(J!==146)break;K.deleteMessageForMeAction=K9.decode(Z,Z.uint32());continue}case 19:{if(J!==154)break;K.keyExpiration=H9.decode(Z,Z.uint32());continue}case 20:{if(J!==162)break;K.markChatAsReadAction=P9.decode(Z,Z.uint32());continue}case 21:{if(J!==170)break;K.clearChatAction=gX.decode(Z,Z.uint32());continue}case 22:{if(J!==178)break;K.deleteChatAction=Z9.decode(Z,Z.uint32());continue}case 23:{if(J!==186)break;K.unarchiveChatsSetting=J6.decode(Z,Z.uint32());continue}case 24:{if(J!==194)break;K.primaryFeature=_9.decode(Z,Z.uint32());continue}case 26:{if(J!==210)break;K.androidUnsupportedActions=hX.decode(Z,Z.uint32());continue}case 27:{if(J!==218)break;K.agentAction=fX.decode(Z,Z.uint32());continue}case 28:{if(J!==226)break;K.subscriptionAction=t9.decode(Z,Z.uint32());continue}case 29:{if(J!==234)break;K.userStatusMuteAction=K6.decode(Z,Z.uint32());continue}case 30:{if(J!==242)break;K.timeFormatAction=Q6.decode(Z,Z.uint32());continue}case 31:{if(J!==250)break;K.nuxAction=I9.decode(Z,Z.uint32());continue}case 32:{if(J!==258)break;K.primaryVersionAction=h9.decode(Z,Z.uint32());continue}case 33:{if(J!==266)break;K.stickerAction=R$.decode(Z,Z.uint32());continue}case 34:{if(J!==274)break;K.removeRecentStickerAction=c9.decode(Z,Z.uint32());continue}case 35:{if(J!==282)break;K.chatAssignment=iX.decode(Z,Z.uint32());continue}case 36:{if(J!==290)break;K.chatAssignmentOpenedStatus=mX.decode(Z,Z.uint32());continue}case 37:{if(J!==298)break;K.pnForLidChatAction=f9.decode(Z,Z.uint32());continue}case 38:{if(J!==306)break;K.marketingMessageAction=k9.decode(Z,Z.uint32());continue}case 39:{if(J!==314)break;K.marketingMessageBroadcastAction=N9.decode(Z,Z.uint32());continue}case 40:{if(J!==322)break;K.externalWebBetaAction=X9.decode(Z,Z.uint32());continue}case 41:{if(J!==330)break;K.privacySettingRelayAllCalls=p9.decode(Z,Z.uint32());continue}case 42:{if(J!==338)break;K.callLogAction=bX.decode(Z,Z.uint32());continue}case 43:{if(J!==346)break;K.ugcBot=Z6.decode(Z,Z.uint32());continue}case 44:{if(J!==354)break;K.statusPrivacy=m9.decode(Z,Z.uint32());continue}case 45:{if(J!==362)break;K.botWelcomeRequestAction=nX.decode(Z,Z.uint32());continue}case 46:{if(J!==370)break;K.deleteIndividualCallLog=J9.decode(Z,Z.uint32());continue}case 47:{if(J!==378)break;K.labelReorderingAction=C9.decode(Z,Z.uint32());continue}case 48:{if(J!==386)break;K.paymentInfoAction=v9.decode(Z,Z.uint32());continue}case 49:{if(J!==394)break;K.customPaymentMethodsAction=$9.decode(Z,Z.uint32());continue}case 50:{if(J!==402)break;K.lockChatAction=L9.decode(Z,Z.uint32());continue}case 51:{if(J!==410)break;K.chatLockSettings=s0.decode(Z,Z.uint32());continue}case 52:{if(J!==418)break;K.wamoUserIdentifierAction=V6.decode(Z,Z.uint32());continue}case 53:{if(J!==426)break;K.privacySettingDisableLinkPreviewsAction=u9.decode(Z,Z.uint32());continue}case 54:{if(J!==434)break;K.deviceCapabilities=xJ.decode(Z,Z.uint32());continue}case 55:{if(J!==442)break;K.noteEditAction=M9.decode(Z,Z.uint32());continue}case 56:{if(J!==450)break;K.favoritesAction=z9.decode(Z,Z.uint32());continue}case 57:{if(J!==458)break;K.merchantPaymentPartnerAction=B9.decode(Z,Z.uint32());continue}case 58:{if(J!==466)break;K.waffleAccountLinkStateAction=Y6.decode(Z,Z.uint32());continue}case 59:{if(J!==474)break;K.usernameChatStartMode=q6.decode(Z,Z.uint32());continue}case 60:{if(J!==482)break;K.notificationActivitySettingAction=W9.decode(Z,Z.uint32());continue}case 61:{if(J!==490)break;K.lidContactAction=x9.decode(Z,Z.uint32());continue}case 62:{if(J!==498)break;K.ctwaPerCustomerDataSharingAction=aX.decode(Z,Z.uint32());continue}case 63:{if(J!==506)break;K.paymentTosAction=T9.decode(Z,Z.uint32());continue}case 64:{if(J!==514)break;K.privacySettingChannelsPersonalisedRecommendationAction=l9.decode(Z,Z.uint32());continue}case 66:{if(J!==530)break;K.detectedOutcomesStatusAction=q9.decode(Z,Z.uint32());continue}case 68:{if(J!==546)break;K.maibaAiFeaturesControlAction=F9.decode(Z,Z.uint32());continue}case 69:{if(J!==554)break;K.businessBroadcastListAction=oX.decode(Z,Z.uint32());continue}case 70:{if(J!==562)break;K.musicUserIdAction=R9.decode(Z,Z.uint32());continue}case 71:{if(J!==570)break;K.statusPostOptInNotificationPreferencesAction=i9.decode(Z,Z.uint32());continue}case 72:{if(J!==578)break;K.avatarUpdatedAction=pX.decode(Z,Z.uint32());continue}case 74:{if(J!==594)break;K.privateProcessingSettingAction=w9.decode(Z,Z.uint32());continue}case 75:{if(J!==602)break;K.newsletterSavedInterestsAction=E9.decode(Z,Z.uint32());continue}case 76:{if(J!==610)break;K.aiThreadRenameAction=_X.decode(Z,Z.uint32());continue}case 77:{if(J!==618)break;K.interactiveMessageAction=V9.decode(Z,Z.uint32());continue}case 78:{if(J!==626)break;K.settingsSyncAction=o9.decode(Z,Z.uint32());continue}case 79:{if(J!==634)break;K.outContactAction=S9.decode(Z,Z.uint32());continue}case 80:{if(J!==642)break;K.nctSaltSyncAction=A9.decode(Z,Z.uint32());continue}case 81:{if(J!==650)break;K.businessBroadcastCampaignAction=jX.decode(Z,Z.uint32());continue}case 82:{if(J!==658)break;K.businessBroadcastInsightsAction=cX.decode(Z,Z.uint32());continue}case 83:{if(J!==666)break;K.customerDataAction=Q9.decode(Z,Z.uint32());continue}case 84:{if(J!==674)break;K.subscriptionsSyncV2Action=r9.decode(Z,Z.uint32());continue}case 85:{if(J!==682)break;K.threadPinAction=$6.decode(Z,Z.uint32());continue}case 86:{if(J!==690)break;K.autoOrganizeBusinessChatSetting=uX.decode(Z,Z.uint32());continue}case 87:{if(J!==698)break;K.bizAiSettingsNudgeAction=wX.decode(Z,Z.uint32());continue}case 88:{if(J!==706)break;K.coexV2VersionAction=tX.decode(Z,Z.uint32());continue}case 89:{if(J!==714)break;K.wasaRootSecretAction=X6.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return S$.fromPartial($??{})},fromPartial($){let Q=Gx();return Q.timestamp=$.timestamp??void 0,Q.starAction=$.starAction!==void 0&&$.starAction!==null?b9.fromPartial($.starAction):void 0,Q.contactAction=$.contactAction!==void 0&&$.contactAction!==null?rX.fromPartial($.contactAction):void 0,Q.muteAction=$.muteAction!==void 0&&$.muteAction!==null?O9.fromPartial($.muteAction):void 0,Q.pinAction=$.pinAction!==void 0&&$.pinAction!==null?y9.fromPartial($.pinAction):void 0,Q.pushNameSetting=$.pushNameSetting!==void 0&&$.pushNameSetting!==null?n9.fromPartial($.pushNameSetting):void 0,Q.quickReplyAction=$.quickReplyAction!==void 0&&$.quickReplyAction!==null?d9.fromPartial($.quickReplyAction):void 0,Q.recentEmojiWeightsAction=$.recentEmojiWeightsAction!==void 0&&$.recentEmojiWeightsAction!==null?j9.fromPartial($.recentEmojiWeightsAction):void 0,Q.labelEditAction=$.labelEditAction!==void 0&&$.labelEditAction!==null?U9.fromPartial($.labelEditAction):void 0,Q.labelAssociationAction=$.labelAssociationAction!==void 0&&$.labelAssociationAction!==null?G9.fromPartial($.labelAssociationAction):void 0,Q.localeSetting=$.localeSetting!==void 0&&$.localeSetting!==null?D9.fromPartial($.localeSetting):void 0,Q.archiveChatAction=$.archiveChatAction!==void 0&&$.archiveChatAction!==null?lX.fromPartial($.archiveChatAction):void 0,Q.deleteMessageForMeAction=$.deleteMessageForMeAction!==void 0&&$.deleteMessageForMeAction!==null?K9.fromPartial($.deleteMessageForMeAction):void 0,Q.keyExpiration=$.keyExpiration!==void 0&&$.keyExpiration!==null?H9.fromPartial($.keyExpiration):void 0,Q.markChatAsReadAction=$.markChatAsReadAction!==void 0&&$.markChatAsReadAction!==null?P9.fromPartial($.markChatAsReadAction):void 0,Q.clearChatAction=$.clearChatAction!==void 0&&$.clearChatAction!==null?gX.fromPartial($.clearChatAction):void 0,Q.deleteChatAction=$.deleteChatAction!==void 0&&$.deleteChatAction!==null?Z9.fromPartial($.deleteChatAction):void 0,Q.unarchiveChatsSetting=$.unarchiveChatsSetting!==void 0&&$.unarchiveChatsSetting!==null?J6.fromPartial($.unarchiveChatsSetting):void 0,Q.primaryFeature=$.primaryFeature!==void 0&&$.primaryFeature!==null?_9.fromPartial($.primaryFeature):void 0,Q.androidUnsupportedActions=$.androidUnsupportedActions!==void 0&&$.androidUnsupportedActions!==null?hX.fromPartial($.androidUnsupportedActions):void 0,Q.agentAction=$.agentAction!==void 0&&$.agentAction!==null?fX.fromPartial($.agentAction):void 0,Q.subscriptionAction=$.subscriptionAction!==void 0&&$.subscriptionAction!==null?t9.fromPartial($.subscriptionAction):void 0,Q.userStatusMuteAction=$.userStatusMuteAction!==void 0&&$.userStatusMuteAction!==null?K6.fromPartial($.userStatusMuteAction):void 0,Q.timeFormatAction=$.timeFormatAction!==void 0&&$.timeFormatAction!==null?Q6.fromPartial($.timeFormatAction):void 0,Q.nuxAction=$.nuxAction!==void 0&&$.nuxAction!==null?I9.fromPartial($.nuxAction):void 0,Q.primaryVersionAction=$.primaryVersionAction!==void 0&&$.primaryVersionAction!==null?h9.fromPartial($.primaryVersionAction):void 0,Q.stickerAction=$.stickerAction!==void 0&&$.stickerAction!==null?R$.fromPartial($.stickerAction):void 0,Q.removeRecentStickerAction=$.removeRecentStickerAction!==void 0&&$.removeRecentStickerAction!==null?c9.fromPartial($.removeRecentStickerAction):void 0,Q.chatAssignment=$.chatAssignment!==void 0&&$.chatAssignment!==null?iX.fromPartial($.chatAssignment):void 0,Q.chatAssignmentOpenedStatus=$.chatAssignmentOpenedStatus!==void 0&&$.chatAssignmentOpenedStatus!==null?mX.fromPartial($.chatAssignmentOpenedStatus):void 0,Q.pnForLidChatAction=$.pnForLidChatAction!==void 0&&$.pnForLidChatAction!==null?f9.fromPartial($.pnForLidChatAction):void 0,Q.marketingMessageAction=$.marketingMessageAction!==void 0&&$.marketingMessageAction!==null?k9.fromPartial($.marketingMessageAction):void 0,Q.marketingMessageBroadcastAction=$.marketingMessageBroadcastAction!==void 0&&$.marketingMessageBroadcastAction!==null?N9.fromPartial($.marketingMessageBroadcastAction):void 0,Q.externalWebBetaAction=$.externalWebBetaAction!==void 0&&$.externalWebBetaAction!==null?X9.fromPartial($.externalWebBetaAction):void 0,Q.privacySettingRelayAllCalls=$.privacySettingRelayAllCalls!==void 0&&$.privacySettingRelayAllCalls!==null?p9.fromPartial($.privacySettingRelayAllCalls):void 0,Q.callLogAction=$.callLogAction!==void 0&&$.callLogAction!==null?bX.fromPartial($.callLogAction):void 0,Q.ugcBot=$.ugcBot!==void 0&&$.ugcBot!==null?Z6.fromPartial($.ugcBot):void 0,Q.statusPrivacy=$.statusPrivacy!==void 0&&$.statusPrivacy!==null?m9.fromPartial($.statusPrivacy):void 0,Q.botWelcomeRequestAction=$.botWelcomeRequestAction!==void 0&&$.botWelcomeRequestAction!==null?nX.fromPartial($.botWelcomeRequestAction):void 0,Q.deleteIndividualCallLog=$.deleteIndividualCallLog!==void 0&&$.deleteIndividualCallLog!==null?J9.fromPartial($.deleteIndividualCallLog):void 0,Q.labelReorderingAction=$.labelReorderingAction!==void 0&&$.labelReorderingAction!==null?C9.fromPartial($.labelReorderingAction):void 0,Q.paymentInfoAction=$.paymentInfoAction!==void 0&&$.paymentInfoAction!==null?v9.fromPartial($.paymentInfoAction):void 0,Q.customPaymentMethodsAction=$.customPaymentMethodsAction!==void 0&&$.customPaymentMethodsAction!==null?$9.fromPartial($.customPaymentMethodsAction):void 0,Q.lockChatAction=$.lockChatAction!==void 0&&$.lockChatAction!==null?L9.fromPartial($.lockChatAction):void 0,Q.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?s0.fromPartial($.chatLockSettings):void 0,Q.wamoUserIdentifierAction=$.wamoUserIdentifierAction!==void 0&&$.wamoUserIdentifierAction!==null?V6.fromPartial($.wamoUserIdentifierAction):void 0,Q.privacySettingDisableLinkPreviewsAction=$.privacySettingDisableLinkPreviewsAction!==void 0&&$.privacySettingDisableLinkPreviewsAction!==null?u9.fromPartial($.privacySettingDisableLinkPreviewsAction):void 0,Q.deviceCapabilities=$.deviceCapabilities!==void 0&&$.deviceCapabilities!==null?xJ.fromPartial($.deviceCapabilities):void 0,Q.noteEditAction=$.noteEditAction!==void 0&&$.noteEditAction!==null?M9.fromPartial($.noteEditAction):void 0,Q.favoritesAction=$.favoritesAction!==void 0&&$.favoritesAction!==null?z9.fromPartial($.favoritesAction):void 0,Q.merchantPaymentPartnerAction=$.merchantPaymentPartnerAction!==void 0&&$.merchantPaymentPartnerAction!==null?B9.fromPartial($.merchantPaymentPartnerAction):void 0,Q.waffleAccountLinkStateAction=$.waffleAccountLinkStateAction!==void 0&&$.waffleAccountLinkStateAction!==null?Y6.fromPartial($.waffleAccountLinkStateAction):void 0,Q.usernameChatStartMode=$.usernameChatStartMode!==void 0&&$.usernameChatStartMode!==null?q6.fromPartial($.usernameChatStartMode):void 0,Q.notificationActivitySettingAction=$.notificationActivitySettingAction!==void 0&&$.notificationActivitySettingAction!==null?W9.fromPartial($.notificationActivitySettingAction):void 0,Q.lidContactAction=$.lidContactAction!==void 0&&$.lidContactAction!==null?x9.fromPartial($.lidContactAction):void 0,Q.ctwaPerCustomerDataSharingAction=$.ctwaPerCustomerDataSharingAction!==void 0&&$.ctwaPerCustomerDataSharingAction!==null?aX.fromPartial($.ctwaPerCustomerDataSharingAction):void 0,Q.paymentTosAction=$.paymentTosAction!==void 0&&$.paymentTosAction!==null?T9.fromPartial($.paymentTosAction):void 0,Q.privacySettingChannelsPersonalisedRecommendationAction=$.privacySettingChannelsPersonalisedRecommendationAction!==void 0&&$.privacySettingChannelsPersonalisedRecommendationAction!==null?l9.fromPartial($.privacySettingChannelsPersonalisedRecommendationAction):void 0,Q.detectedOutcomesStatusAction=$.detectedOutcomesStatusAction!==void 0&&$.detectedOutcomesStatusAction!==null?q9.fromPartial($.detectedOutcomesStatusAction):void 0,Q.maibaAiFeaturesControlAction=$.maibaAiFeaturesControlAction!==void 0&&$.maibaAiFeaturesControlAction!==null?F9.fromPartial($.maibaAiFeaturesControlAction):void 0,Q.businessBroadcastListAction=$.businessBroadcastListAction!==void 0&&$.businessBroadcastListAction!==null?oX.fromPartial($.businessBroadcastListAction):void 0,Q.musicUserIdAction=$.musicUserIdAction!==void 0&&$.musicUserIdAction!==null?R9.fromPartial($.musicUserIdAction):void 0,Q.statusPostOptInNotificationPreferencesAction=$.statusPostOptInNotificationPreferencesAction!==void 0&&$.statusPostOptInNotificationPreferencesAction!==null?i9.fromPartial($.statusPostOptInNotificationPreferencesAction):void 0,Q.avatarUpdatedAction=$.avatarUpdatedAction!==void 0&&$.avatarUpdatedAction!==null?pX.fromPartial($.avatarUpdatedAction):void 0,Q.privateProcessingSettingAction=$.privateProcessingSettingAction!==void 0&&$.privateProcessingSettingAction!==null?w9.fromPartial($.privateProcessingSettingAction):void 0,Q.newsletterSavedInterestsAction=$.newsletterSavedInterestsAction!==void 0&&$.newsletterSavedInterestsAction!==null?E9.fromPartial($.newsletterSavedInterestsAction):void 0,Q.aiThreadRenameAction=$.aiThreadRenameAction!==void 0&&$.aiThreadRenameAction!==null?_X.fromPartial($.aiThreadRenameAction):void 0,Q.interactiveMessageAction=$.interactiveMessageAction!==void 0&&$.interactiveMessageAction!==null?V9.fromPartial($.interactiveMessageAction):void 0,Q.settingsSyncAction=$.settingsSyncAction!==void 0&&$.settingsSyncAction!==null?o9.fromPartial($.settingsSyncAction):void 0,Q.outContactAction=$.outContactAction!==void 0&&$.outContactAction!==null?S9.fromPartial($.outContactAction):void 0,Q.nctSaltSyncAction=$.nctSaltSyncAction!==void 0&&$.nctSaltSyncAction!==null?A9.fromPartial($.nctSaltSyncAction):void 0,Q.businessBroadcastCampaignAction=$.businessBroadcastCampaignAction!==void 0&&$.businessBroadcastCampaignAction!==null?jX.fromPartial($.businessBroadcastCampaignAction):void 0,Q.businessBroadcastInsightsAction=$.businessBroadcastInsightsAction!==void 0&&$.businessBroadcastInsightsAction!==null?cX.fromPartial($.businessBroadcastInsightsAction):void 0,Q.customerDataAction=$.customerDataAction!==void 0&&$.customerDataAction!==null?Q9.fromPartial($.customerDataAction):void 0,Q.subscriptionsSyncV2Action=$.subscriptionsSyncV2Action!==void 0&&$.subscriptionsSyncV2Action!==null?r9.fromPartial($.subscriptionsSyncV2Action):void 0,Q.threadPinAction=$.threadPinAction!==void 0&&$.threadPinAction!==null?$6.fromPartial($.threadPinAction):void 0,Q.autoOrganizeBusinessChatSetting=$.autoOrganizeBusinessChatSetting!==void 0&&$.autoOrganizeBusinessChatSetting!==null?uX.fromPartial($.autoOrganizeBusinessChatSetting):void 0,Q.bizAiSettingsNudgeAction=$.bizAiSettingsNudgeAction!==void 0&&$.bizAiSettingsNudgeAction!==null?wX.fromPartial($.bizAiSettingsNudgeAction):void 0,Q.coexV2VersionAction=$.coexV2VersionAction!==void 0&&$.coexV2VersionAction!==null?tX.fromPartial($.coexV2VersionAction):void 0,Q.wasaRootSecretAction=$.wasaRootSecretAction!==void 0&&$.wasaRootSecretAction!==null?X6.fromPartial($.wasaRootSecretAction):void 0,Q}};function Ux(){return{}}var fX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Ux();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return fX.fromPartial($??{})},fromPartial($){let Q=Ux();return Q.name=$.name??void 0,Q.deviceId=$.deviceId??void 0,Q.isDeleted=$.isDeleted??void 0,Q}};function Cx(){return{}}var _X={encode($,Q=new V){if($.newTitle!==void 0)Q.uint32(10).string($.newTitle);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Cx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.newTitle=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _X.fromPartial($??{})},fromPartial($){let Q=Cx();return Q.newTitle=$.newTitle??void 0,Q}};function xx(){return{}}var hX={encode($,Q=new V){if($.allowed!==void 0)Q.uint32(8).bool($.allowed);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=xx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.allowed=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return hX.fromPartial($??{})},fromPartial($){let Q=xx();return Q.allowed=$.allowed??void 0,Q}};function Dx(){return{}}var lX={encode($,Q=new V){if($.archived!==void 0)Q.uint32(8).bool($.archived);if($.messageRange!==void 0)J0.encode($.messageRange,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Dx();while(Z.pos<q){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=J0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return lX.fromPartial($??{})},fromPartial($){let Q=Dx();return Q.archived=$.archived??void 0,Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?J0.fromPartial($.messageRange):void 0,Q}};function Lx(){return{}}var uX={encode($,Q=new V){if($.autoOrganize!==void 0)Q.uint32(8).bool($.autoOrganize);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Lx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.autoOrganize=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return uX.fromPartial($??{})},fromPartial($){let Q=Lx();return Q.autoOrganize=$.autoOrganize??void 0,Q}};function Fx(){return{}}var pX={encode($,Q=new V){if($.eventType!==void 0)Q.uint32(8).int32($.eventType);if($.recentAvatarStickers!==void 0&&$.recentAvatarStickers.length!==0)for(let Z of $.recentAvatarStickers)R$.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Fx();while(Z.pos<q){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 z=R$.decode(Z,Z.uint32());if(z!==void 0)K.recentAvatarStickers.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return pX.fromPartial($??{})},fromPartial($){let Q=Fx();return Q.eventType=$.eventType??void 0,Q.recentAvatarStickers=$.recentAvatarStickers?.map((Z)=>R$.fromPartial(Z))||void 0,Q}};function Px(){return{}}var wX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Px();while(Z.pos<q){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.int64Number();continue}case 3:{if(J!==24)break;K.updatedAtMs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return wX.fromPartial($??{})},fromPartial($){let Q=Px();return Q.category=$.category??void 0,Q.version=$.version??void 0,Q.updatedAtMs=$.updatedAtMs??void 0,Q}};function kx(){return{}}var nX={encode($,Q=new V){if($.isSent!==void 0)Q.uint32(8).bool($.isSent);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=kx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isSent=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return nX.fromPartial($??{})},fromPartial($){let Q=kx();return Q.isSent=$.isSent??void 0,Q}};function Nx(){return{}}var dX={encode($,Q=new V){if($.lidJid!==void 0)Q.uint32(10).string($.lidJid);if($.pnJid!==void 0)Q.uint32(18).string($.pnJid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Nx();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return dX.fromPartial($??{})},fromPartial($){let Q=Nx();return Q.lidJid=$.lidJid??void 0,Q.pnJid=$.pnJid??void 0,Q}};function Bx(){return{}}var GB={encode($,Q=new V){if($.deleted!==void 0)Q.uint32(8).bool($.deleted);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Bx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.deleted=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return GB.fromPartial($??{})},fromPartial($){let Q=Bx();return Q.deleted=$.deleted??void 0,Q}};function Rx(){return{}}var jX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Rx();while(Z.pos<q){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.int64Number();continue}case 8:{if(J!==64)break;K.createTimestamp=Z.int64Number();continue}case 9:{if(J!==72)break;K.status=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return jX.fromPartial($??{})},fromPartial($){let Q=Rx();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 Ox(){return{}}var cX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Ox();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return cX.fromPartial($??{})},fromPartial($){let Q=Ox();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 Ax(){return{}}var oX={encode($,Q=new V){if($.deleted!==void 0)Q.uint32(8).bool($.deleted);if($.participants!==void 0&&$.participants.length!==0)for(let Z of $.participants)dX.encode(Z,Q.uint32(18).fork()).join();if($.listName!==void 0)Q.uint32(26).string($.listName);if($.labelIds!==void 0&&$.labelIds.length!==0)for(let Z of $.labelIds)Q.uint32(34).string(Z);if($.audienceExpression!==void 0)Q.uint32(42).string($.audienceExpression);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Ax();while(Z.pos<q){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 z=dX.decode(Z,Z.uint32());if(z!==void 0)K.participants.push(z);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 z=Z.string();if(z!==void 0)K.labelIds.push(z);continue}case 5:{if(J!==42)break;K.audienceExpression=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return oX.fromPartial($??{})},fromPartial($){let Q=Ax();return Q.deleted=$.deleted??void 0,Q.participants=$.participants?.map((Z)=>dX.fromPartial(Z))||void 0,Q.listName=$.listName??void 0,Q.labelIds=$.labelIds?.map((Z)=>Z)||void 0,Q.audienceExpression=$.audienceExpression??void 0,Q}};function Ex(){return{}}var bX={encode($,Q=new V){if($.callLogRecord!==void 0)a0.encode($.callLogRecord,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Ex();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.callLogRecord=a0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return bX.fromPartial($??{})},fromPartial($){let Q=Ex();return Q.callLogRecord=$.callLogRecord!==void 0&&$.callLogRecord!==null?a0.fromPartial($.callLogRecord):void 0,Q}};function Mx(){return{}}var iX={encode($,Q=new V){if($.deviceAgentId!==void 0)Q.uint32(10).string($.deviceAgentId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Mx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.deviceAgentId=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return iX.fromPartial($??{})},fromPartial($){let Q=Mx();return Q.deviceAgentId=$.deviceAgentId??void 0,Q}};function Wx(){return{}}var mX={encode($,Q=new V){if($.chatOpened!==void 0)Q.uint32(8).bool($.chatOpened);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Wx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.chatOpened=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return mX.fromPartial($??{})},fromPartial($){let Q=Wx();return Q.chatOpened=$.chatOpened??void 0,Q}};function Ix(){return{}}var gX={encode($,Q=new V){if($.messageRange!==void 0)J0.encode($.messageRange,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Ix();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageRange=J0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return gX.fromPartial($??{})},fromPartial($){let Q=Ix();return Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?J0.fromPartial($.messageRange):void 0,Q}};function Sx(){return{}}var tX={encode($,Q=new V){if($.version!==void 0)Q.uint32(8).uint64($.version);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Sx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.version=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return tX.fromPartial($??{})},fromPartial($){let Q=Sx();return Q.version=$.version??void 0,Q}};function vx(){return{}}var rX={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=vx();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return rX.fromPartial($??{})},fromPartial($){let Q=vx();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 Tx(){return{}}var aX={encode($,Q=new V){if($.isCtwaPerCustomerDataSharingEnabled!==void 0)Q.uint32(8).bool($.isCtwaPerCustomerDataSharingEnabled);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=Tx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isCtwaPerCustomerDataSharingEnabled=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return aX.fromPartial($??{})},fromPartial($){let Q=Tx();return Q.isCtwaPerCustomerDataSharingEnabled=$.isCtwaPerCustomerDataSharingEnabled??void 0,Q}};function yx(){return{}}var sX={encode($,Q=new V){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 Z of $.metadata)eX.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=yx();while(Z.pos<q){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 z=eX.decode(Z,Z.uint32());if(z!==void 0)K.metadata.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return sX.fromPartial($??{})},fromPartial($){let Q=yx();return Q.credentialId=$.credentialId??void 0,Q.country=$.country??void 0,Q.type=$.type??void 0,Q.metadata=$.metadata?.map((Z)=>eX.fromPartial(Z))||void 0,Q}};function fx(){return{}}var eX={encode($,Q=new V){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)Q.uint32(18).string($.value);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=fx();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return eX.fromPartial($??{})},fromPartial($){let Q=fx();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function _x(){return{}}var $9={encode($,Q=new V){if($.customPaymentMethods!==void 0&&$.customPaymentMethods.length!==0)for(let Z of $.customPaymentMethods)sX.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_x();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.customPaymentMethods===void 0)K.customPaymentMethods=[];let z=sX.decode(Z,Z.uint32());if(z!==void 0)K.customPaymentMethods.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $9.fromPartial($??{})},fromPartial($){let Q=_x();return Q.customPaymentMethods=$.customPaymentMethods?.map((Z)=>sX.fromPartial(Z))||void 0,Q}};function hx(){return{}}var Q9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=hx();while(Z.pos<q){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.int64Number();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.int64Number();continue}case 10:{if(J!==80)break;K.createdAt=Z.int64Number();continue}case 11:{if(J!==88)break;K.modifiedAt=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Q9.fromPartial($??{})},fromPartial($){let Q=hx();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 lx(){return{}}var Z9={encode($,Q=new V){if($.messageRange!==void 0)J0.encode($.messageRange,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=lx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.messageRange=J0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Z9.fromPartial($??{})},fromPartial($){let Q=lx();return Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?J0.fromPartial($.messageRange):void 0,Q}};function ux(){return{}}var J9={encode($,Q=new V){if($.peerJid!==void 0)Q.uint32(10).string($.peerJid);if($.isIncoming!==void 0)Q.uint32(16).bool($.isIncoming);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ux();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return J9.fromPartial($??{})},fromPartial($){let Q=ux();return Q.peerJid=$.peerJid??void 0,Q.isIncoming=$.isIncoming??void 0,Q}};function px(){return{}}var K9={encode($,Q=new V){if($.deleteMedia!==void 0)Q.uint32(8).bool($.deleteMedia);if($.messageTimestamp!==void 0)Q.uint32(16).int64($.messageTimestamp);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=px();while(Z.pos<q){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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return K9.fromPartial($??{})},fromPartial($){let Q=px();return Q.deleteMedia=$.deleteMedia??void 0,Q.messageTimestamp=$.messageTimestamp??void 0,Q}};function wx(){return{}}var q9={encode($,Q=new V){if($.isEnabled!==void 0)Q.uint32(8).bool($.isEnabled);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=wx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isEnabled=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return q9.fromPartial($??{})},fromPartial($){let Q=wx();return Q.isEnabled=$.isEnabled??void 0,Q}};function nx(){return{}}var X9={encode($,Q=new V){if($.isOptIn!==void 0)Q.uint32(8).bool($.isOptIn);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=nx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isOptIn=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return X9.fromPartial($??{})},fromPartial($){let Q=nx();return Q.isOptIn=$.isOptIn??void 0,Q}};function dx(){return{}}var z9={encode($,Q=new V){if($.favorites!==void 0&&$.favorites.length!==0)for(let Z of $.favorites)Y9.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=dx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.favorites===void 0)K.favorites=[];let z=Y9.decode(Z,Z.uint32());if(z!==void 0)K.favorites.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return z9.fromPartial($??{})},fromPartial($){let Q=dx();return Q.favorites=$.favorites?.map((Z)=>Y9.fromPartial(Z))||void 0,Q}};function jx(){return{}}var Y9={encode($,Q=new V){if($.id!==void 0)Q.uint32(10).string($.id);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=jx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.id=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Y9.fromPartial($??{})},fromPartial($){let Q=jx();return Q.id=$.id??void 0,Q}};function cx(){return{}}var V9={encode($,Q=new V){if($.type!==void 0)Q.uint32(8).int32($.type);if($.agmId!==void 0)Q.uint32(18).string($.agmId);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=cx();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return V9.fromPartial($??{})},fromPartial($){let Q=cx();return Q.type=$.type??void 0,Q.agmId=$.agmId??void 0,Q}};function ox(){return{}}var H9={encode($,Q=new V){if($.expiredKeyEpoch!==void 0)Q.uint32(8).int32($.expiredKeyEpoch);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ox();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.expiredKeyEpoch=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return H9.fromPartial($??{})},fromPartial($){let Q=ox();return Q.expiredKeyEpoch=$.expiredKeyEpoch??void 0,Q}};function bx(){return{}}var G9={encode($,Q=new V){if($.labeled!==void 0)Q.uint32(8).bool($.labeled);if($.modelMetaData!==void 0)Q.uint32(18).string($.modelMetaData);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=bx();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return G9.fromPartial($??{})},fromPartial($){let Q=bx();return Q.labeled=$.labeled??void 0,Q.modelMetaData=$.modelMetaData??void 0,Q}};function ix(){return{}}var U9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ix();while(Z.pos<q){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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return U9.fromPartial($??{})},fromPartial($){let Q=ix();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 mx(){return{}}var C9={encode($,Q=new V){if($.sortedLabelIds!==void 0&&$.sortedLabelIds.length!==0)for(let Z of $.sortedLabelIds)Q.uint32(8).int32(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=mx();while(Z.pos<q){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 z=Z.uint32()+Z.pos;while(Z.pos<z)K.sortedLabelIds.push(Z.int32());continue}break}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return C9.fromPartial($??{})},fromPartial($){let Q=mx();return Q.sortedLabelIds=$.sortedLabelIds?.map((Z)=>Z)||void 0,Q}};function gx(){return{}}var x9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=gx();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return x9.fromPartial($??{})},fromPartial($){let Q=gx();return Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q.username=$.username??void 0,Q}};function tx(){return{}}var D9={encode($,Q=new V){if($.locale!==void 0)Q.uint32(10).string($.locale);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=tx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.locale=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return D9.fromPartial($??{})},fromPartial($){let Q=tx();return Q.locale=$.locale??void 0,Q}};function rx(){return{}}var L9={encode($,Q=new V){if($.locked!==void 0)Q.uint32(8).bool($.locked);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=rx();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.locked=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return L9.fromPartial($??{})},fromPartial($){let Q=rx();return Q.locked=$.locked??void 0,Q}};function ax(){return{}}var F9={encode($,Q=new V){if($.aiFeatureStatus!==void 0)Q.uint32(8).int32($.aiFeatureStatus);if($.aiReplyMode!==void 0)Q.uint32(16).int32($.aiReplyMode);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ax();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return F9.fromPartial($??{})},fromPartial($){let Q=ax();return Q.aiFeatureStatus=$.aiFeatureStatus??void 0,Q.aiReplyMode=$.aiReplyMode??void 0,Q}};function sx(){return{}}var P9={encode($,Q=new V){if($.read!==void 0)Q.uint32(8).bool($.read);if($.messageRange!==void 0)J0.encode($.messageRange,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=sx();while(Z.pos<q){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=J0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return P9.fromPartial($??{})},fromPartial($){let Q=sx();return Q.read=$.read??void 0,Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?J0.fromPartial($.messageRange):void 0,Q}};function ex(){return{}}var k9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ex();while(Z.pos<q){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.int64Number();continue}case 5:{if(J!==40)break;K.lastSentAt=Z.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return k9.fromPartial($??{})},fromPartial($){let Q=ex();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 $D(){return{}}var N9={encode($,Q=new V){if($.repliedCount!==void 0)Q.uint32(8).int32($.repliedCount);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$D();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.repliedCount=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return N9.fromPartial($??{})},fromPartial($){let Q=$D();return Q.repliedCount=$.repliedCount??void 0,Q}};function QD(){return{}}var B9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=QD();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return B9.fromPartial($??{})},fromPartial($){let Q=QD();return Q.status=$.status??void 0,Q.country=$.country??void 0,Q.gatewayName=$.gatewayName??void 0,Q.credentialId=$.credentialId??void 0,Q}};function ZD(){return{}}var R9={encode($,Q=new V){if($.musicUserId!==void 0)Q.uint32(10).string($.musicUserId);return globalThis.Object.entries($.musicUserIdMap||{}).forEach(([Z,q])=>{h6.encode({key:Z,value:q},Q.uint32(18).fork()).join()}),Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ZD();while(Z.pos<q){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 z=h6.decode(Z,Z.uint32());if(z.value!==void 0&&z.key!==void 0){if(K.musicUserIdMap===void 0)K.musicUserIdMap={};K.musicUserIdMap[z.key]=z.value}continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return R9.fromPartial($??{})},fromPartial($){let Q=ZD();return Q.musicUserId=$.musicUserId??void 0,Q.musicUserIdMap=$.musicUserIdMap===void 0||$.musicUserIdMap===null?void 0:globalThis.Object.entries($.musicUserIdMap??{}).reduce((Z,[q,K])=>{if(K!==void 0)Z[q]=globalThis.String(K);return Z},{}),Q}};function JD(){return{}}var h6={encode($,Q=new V){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)Q.uint32(18).string($.value);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=JD();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return h6.fromPartial($??{})},fromPartial($){let Q=JD();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function KD(){return{}}var O9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=KD();while(Z.pos<q){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.int64Number();continue}case 3:{if(J!==24)break;K.autoMuted=Z.bool();continue}case 4:{if(J!==32)break;K.muteEveryoneMentionEndTimestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return O9.fromPartial($??{})},fromPartial($){let Q=KD();return Q.muted=$.muted??void 0,Q.muteEndTimestamp=$.muteEndTimestamp??void 0,Q.autoMuted=$.autoMuted??void 0,Q.muteEveryoneMentionEndTimestamp=$.muteEveryoneMentionEndTimestamp??void 0,Q}};function qD(){return{}}var A9={encode($,Q=new V){if($.salt!==void 0)Q.uint32(10).bytes($.salt);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=qD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.salt=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return A9.fromPartial($??{})},fromPartial($){let Q=qD();return Q.salt=$.salt??void 0,Q}};function XD(){return{}}var E9={encode($,Q=new V){if($.newsletterSavedInterests!==void 0)Q.uint32(10).string($.newsletterSavedInterests);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=XD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.newsletterSavedInterests=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return E9.fromPartial($??{})},fromPartial($){let Q=XD();return Q.newsletterSavedInterests=$.newsletterSavedInterests??void 0,Q}};function zD(){return{}}var M9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=zD();while(Z.pos<q){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.int64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return M9.fromPartial($??{})},fromPartial($){let Q=zD();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 YD(){return{}}var W9={encode($,Q=new V){if($.notificationActivitySetting!==void 0)Q.uint32(8).int32($.notificationActivitySetting);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=YD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.notificationActivitySetting=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return W9.fromPartial($??{})},fromPartial($){let Q=YD();return Q.notificationActivitySetting=$.notificationActivitySetting??void 0,Q}};function VD(){return{}}var I9={encode($,Q=new V){if($.acknowledged!==void 0)Q.uint32(8).bool($.acknowledged);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=VD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.acknowledged=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return I9.fromPartial($??{})},fromPartial($){let Q=VD();return Q.acknowledged=$.acknowledged??void 0,Q}};function HD(){return{}}var S9={encode($,Q=new V){if($.fullName!==void 0)Q.uint32(10).string($.fullName);if($.firstName!==void 0)Q.uint32(18).string($.firstName);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=HD();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return S9.fromPartial($??{})},fromPartial($){let Q=HD();return Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q}};function GD(){return{}}var v9={encode($,Q=new V){if($.cpi!==void 0)Q.uint32(10).string($.cpi);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=GD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.cpi=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return v9.fromPartial($??{})},fromPartial($){let Q=GD();return Q.cpi=$.cpi??void 0,Q}};function UD(){return{}}var T9={encode($,Q=new V){if($.paymentNotice!==void 0)Q.uint32(8).int32($.paymentNotice);if($.accepted!==void 0)Q.uint32(16).bool($.accepted);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=UD();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return T9.fromPartial($??{})},fromPartial($){let Q=UD();return Q.paymentNotice=$.paymentNotice??void 0,Q.accepted=$.accepted??void 0,Q}};function CD(){return{}}var y9={encode($,Q=new V){if($.pinned!==void 0)Q.uint32(8).bool($.pinned);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=CD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pinned=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return y9.fromPartial($??{})},fromPartial($){let Q=CD();return Q.pinned=$.pinned??void 0,Q}};function xD(){return{}}var f9={encode($,Q=new V){if($.pnJid!==void 0)Q.uint32(10).string($.pnJid);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=xD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.pnJid=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return f9.fromPartial($??{})},fromPartial($){let Q=xD();return Q.pnJid=$.pnJid??void 0,Q}};function DD(){return{}}var _9={encode($,Q=new V){if($.flags!==void 0&&$.flags.length!==0)for(let Z of $.flags)Q.uint32(10).string(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=DD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.flags===void 0)K.flags=[];let z=Z.string();if(z!==void 0)K.flags.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return _9.fromPartial($??{})},fromPartial($){let Q=DD();return Q.flags=$.flags?.map((Z)=>Z)||void 0,Q}};function LD(){return{}}var h9={encode($,Q=new V){if($.version!==void 0)Q.uint32(10).string($.version);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=LD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return h9.fromPartial($??{})},fromPartial($){let Q=LD();return Q.version=$.version??void 0,Q}};function FD(){return{}}var l9={encode($,Q=new V){if($.isUserOptedOut!==void 0)Q.uint32(8).bool($.isUserOptedOut);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=FD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isUserOptedOut=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return l9.fromPartial($??{})},fromPartial($){let Q=FD();return Q.isUserOptedOut=$.isUserOptedOut??void 0,Q}};function PD(){return{}}var u9={encode($,Q=new V){if($.isPreviewsDisabled!==void 0)Q.uint32(8).bool($.isPreviewsDisabled);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=PD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isPreviewsDisabled=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return u9.fromPartial($??{})},fromPartial($){let Q=PD();return Q.isPreviewsDisabled=$.isPreviewsDisabled??void 0,Q}};function kD(){return{}}var p9={encode($,Q=new V){if($.isEnabled!==void 0)Q.uint32(8).bool($.isEnabled);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=kD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isEnabled=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return p9.fromPartial($??{})},fromPartial($){let Q=kD();return Q.isEnabled=$.isEnabled??void 0,Q}};function ND(){return{}}var w9={encode($,Q=new V){if($.privateProcessingStatus!==void 0)Q.uint32(8).int32($.privateProcessingStatus);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ND();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.privateProcessingStatus=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return w9.fromPartial($??{})},fromPartial($){let Q=ND();return Q.privateProcessingStatus=$.privateProcessingStatus??void 0,Q}};function BD(){return{}}var n9={encode($,Q=new V){if($.name!==void 0)Q.uint32(10).string($.name);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=BD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.name=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return n9.fromPartial($??{})},fromPartial($){let Q=BD();return Q.name=$.name??void 0,Q}};function RD(){return{}}var d9={encode($,Q=new V){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 Z of $.keywords)Q.uint32(26).string(Z);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 Z of $.associatedLabelIds)Q.uint32(50).string(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=RD();while(Z.pos<q){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 z=Z.string();if(z!==void 0)K.keywords.push(z);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 z=Z.string();if(z!==void 0)K.associatedLabelIds.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return d9.fromPartial($??{})},fromPartial($){let Q=RD();return Q.shortcut=$.shortcut??void 0,Q.message=$.message??void 0,Q.keywords=$.keywords?.map((Z)=>Z)||void 0,Q.count=$.count??void 0,Q.deleted=$.deleted??void 0,Q.associatedLabelIds=$.associatedLabelIds?.map((Z)=>Z)||void 0,Q}};function OD(){return{}}var j9={encode($,Q=new V){if($.weights!==void 0&&$.weights.length!==0)for(let Z of $.weights)HX.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=OD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.weights===void 0)K.weights=[];let z=HX.decode(Z,Z.uint32());if(z!==void 0)K.weights.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return j9.fromPartial($??{})},fromPartial($){let Q=OD();return Q.weights=$.weights?.map((Z)=>HX.fromPartial(Z))||void 0,Q}};function AD(){return{}}var c9={encode($,Q=new V){if($.lastStickerSentTs!==void 0)Q.uint32(8).int64($.lastStickerSentTs);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=AD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.lastStickerSentTs=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return c9.fromPartial($??{})},fromPartial($){let Q=AD();return Q.lastStickerSentTs=$.lastStickerSentTs??void 0,Q}};function ED(){return{}}var o9={encode($,Q=new V){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);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ED();while(Z.pos<q){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}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return o9.fromPartial($??{})},fromPartial($){let Q=ED();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}};function MD(){return{}}var b9={encode($,Q=new V){if($.starred!==void 0)Q.uint32(8).bool($.starred);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=MD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.starred=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return b9.fromPartial($??{})},fromPartial($){let Q=MD();return Q.starred=$.starred??void 0,Q}};function WD(){return{}}var i9={encode($,Q=new V){if($.enabled!==void 0)Q.uint32(8).bool($.enabled);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=WD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.enabled=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return i9.fromPartial($??{})},fromPartial($){let Q=WD();return Q.enabled=$.enabled??void 0,Q}};function ID(){return{}}var m9={encode($,Q=new V){if($.mode!==void 0)Q.uint32(8).int32($.mode);if($.userJid!==void 0&&$.userJid.length!==0)for(let Z of $.userJid)Q.uint32(18).string(Z);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 Z of $.customLists)g9.encode(Z,Q.uint32(42).fork()).join();if($.modes!==void 0&&$.modes.length!==0)for(let Z of $.modes)Q.uint32(48).int32(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ID();while(Z.pos<q){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 z=Z.string();if(z!==void 0)K.userJid.push(z);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 z=g9.decode(Z,Z.uint32());if(z!==void 0)K.customLists.push(z);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 z=Z.uint32()+Z.pos;while(Z.pos<z)K.modes.push(Z.int32());continue}break}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return m9.fromPartial($??{})},fromPartial($){let Q=ID();return Q.mode=$.mode??void 0,Q.userJid=$.userJid?.map((Z)=>Z)||void 0,Q.shareToFb=$.shareToFb??void 0,Q.shareToIg=$.shareToIg??void 0,Q.customLists=$.customLists?.map((Z)=>g9.fromPartial(Z))||void 0,Q.modes=$.modes?.map((Z)=>Z)||void 0,Q}};function SD(){return{}}var g9={encode($,Q=new V){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 Z of $.userJid)Q.uint32(42).string(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=SD();while(Z.pos<q){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 z=Z.string();if(z!==void 0)K.userJid.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return g9.fromPartial($??{})},fromPartial($){let Q=SD();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((Z)=>Z)||void 0,Q}};function vD(){return{}}var R$={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=vD();while(Z.pos<q){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.uint64Number();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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return R$.fromPartial($??{})},fromPartial($){let Q=vD();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 TD(){return{}}var t9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=TD();while(Z.pos<q){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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return t9.fromPartial($??{})},fromPartial($){let Q=TD();return Q.isDeactivated=$.isDeactivated??void 0,Q.isAutoRenewing=$.isAutoRenewing??void 0,Q.expirationDate=$.expirationDate??void 0,Q}};function yD(){return{}}var r9={encode($,Q=new V){if($.subscriptions!==void 0&&$.subscriptions.length!==0)for(let Z of $.subscriptions)s9.encode(Z,Q.uint32(10).fork()).join();if($.paidFeature!==void 0&&$.paidFeature.length!==0)for(let Z of $.paidFeature)a9.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=yD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.subscriptions===void 0)K.subscriptions=[];let z=s9.decode(Z,Z.uint32());if(z!==void 0)K.subscriptions.push(z);continue}case 2:{if(J!==18)break;if(K.paidFeature===void 0)K.paidFeature=[];let z=a9.decode(Z,Z.uint32());if(z!==void 0)K.paidFeature.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return r9.fromPartial($??{})},fromPartial($){let Q=yD();return Q.subscriptions=$.subscriptions?.map((Z)=>s9.fromPartial(Z))||void 0,Q.paidFeature=$.paidFeature?.map((Z)=>a9.fromPartial(Z))||void 0,Q}};function fD(){return{}}var a9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=fD();while(Z.pos<q){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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return a9.fromPartial($??{})},fromPartial($){let Q=fD();return Q.name=$.name??void 0,Q.enabled=$.enabled??void 0,Q.limit=$.limit??void 0,Q.expirationTime=$.expirationTime??void 0,Q}};function _D(){return{}}var s9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=_D();while(Z.pos<q){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.int64Number();continue}case 5:{if(J!==40)break;K.endTime=Z.int64Number();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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return s9.fromPartial($??{})},fromPartial($){let Q=_D();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 hD(){return{}}var e9={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=hD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==16)break;K.timestamp=Z.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return e9.fromPartial($??{})},fromPartial($){let Q=hD();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.timestamp=$.timestamp??void 0,Q}};function lD(){return{}}var J0={encode($,Q=new V){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 Z of $.messages)e9.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=lD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.lastMessageTimestamp=Z.int64Number();continue}case 2:{if(J!==16)break;K.lastSystemMessageTimestamp=Z.int64Number();continue}case 3:{if(J!==26)break;if(K.messages===void 0)K.messages=[];let z=e9.decode(Z,Z.uint32());if(z!==void 0)K.messages.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return J0.fromPartial($??{})},fromPartial($){let Q=lD();return Q.lastMessageTimestamp=$.lastMessageTimestamp??void 0,Q.lastSystemMessageTimestamp=$.lastSystemMessageTimestamp??void 0,Q.messages=$.messages?.map((Z)=>e9.fromPartial(Z))||void 0,Q}};function uD(){return{}}var $6={encode($,Q=new V){if($.pinned!==void 0)Q.uint32(8).bool($.pinned);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=uD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.pinned=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $6.fromPartial($??{})},fromPartial($){let Q=uD();return Q.pinned=$.pinned??void 0,Q}};function pD(){return{}}var Q6={encode($,Q=new V){if($.isTwentyFourHourFormatEnabled!==void 0)Q.uint32(8).bool($.isTwentyFourHourFormatEnabled);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=pD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.isTwentyFourHourFormatEnabled=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Q6.fromPartial($??{})},fromPartial($){let Q=pD();return Q.isTwentyFourHourFormatEnabled=$.isTwentyFourHourFormatEnabled??void 0,Q}};function wD(){return{}}var Z6={encode($,Q=new V){if($.definition!==void 0)Q.uint32(10).bytes($.definition);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=wD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.definition=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Z6.fromPartial($??{})},fromPartial($){let Q=wD();return Q.definition=$.definition??void 0,Q}};function nD(){return{}}var J6={encode($,Q=new V){if($.unarchiveChats!==void 0)Q.uint32(8).bool($.unarchiveChats);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=nD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.unarchiveChats=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return J6.fromPartial($??{})},fromPartial($){let Q=nD();return Q.unarchiveChats=$.unarchiveChats??void 0,Q}};function dD(){return{}}var K6={encode($,Q=new V){if($.muted!==void 0)Q.uint32(8).bool($.muted);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=dD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.muted=Z.bool();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return K6.fromPartial($??{})},fromPartial($){let Q=dD();return Q.muted=$.muted??void 0,Q}};function jD(){return{}}var q6={encode($,Q=new V){if($.chatStartMode!==void 0)Q.uint32(8).int32($.chatStartMode);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=jD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.chatStartMode=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return q6.fromPartial($??{})},fromPartial($){let Q=jD();return Q.chatStartMode=$.chatStartMode??void 0,Q}};function cD(){return{}}var X6={encode($,Q=new V){if($.secrets!==void 0&&$.secrets.length!==0)for(let Z of $.secrets)z6.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=cD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.secrets===void 0)K.secrets=[];let z=z6.decode(Z,Z.uint32());if(z!==void 0)K.secrets.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return X6.fromPartial($??{})},fromPartial($){let Q=cD();return Q.secrets=$.secrets?.map((Z)=>z6.fromPartial(Z))||void 0,Q}};function oD(){return{}}var z6={encode($,Q=new V){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);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=oD();while(Z.pos<q){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.int64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return z6.fromPartial($??{})},fromPartial($){let Q=oD();return Q.id=$.id??void 0,Q.rootSecret=$.rootSecret??void 0,Q.epoch=$.epoch??void 0,Q}};function bD(){return{}}var Y6={encode($,Q=new V){if($.linkState!==void 0)Q.uint32(16).int32($.linkState);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=bD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==16)break;K.linkState=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Y6.fromPartial($??{})},fromPartial($){let Q=bD();return Q.linkState=$.linkState??void 0,Q}};function iD(){return{}}var V6={encode($,Q=new V){if($.identifier!==void 0)Q.uint32(10).string($.identifier);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=iD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.identifier=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return V6.fromPartial($??{})},fromPartial($){let Q=iD();return Q.identifier=$.identifier??void 0,Q}};function mD(){return{}}var H6={encode($,Q=new V){if($.blob!==void 0)Q.uint32(10).bytes($.blob);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=mD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.blob=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return H6.fromPartial($??{})},fromPartial($){let Q=mD();return Q.blob=$.blob??void 0,Q}};function gD(){return{}}var v0={encode($,Q=new V){if($.operation!==void 0)Q.uint32(8).int32($.operation);if($.record!==void 0)T0.encode($.record,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=gD();while(Z.pos<q){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=T0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return v0.fromPartial($??{})},fromPartial($){let Q=gD();return Q.operation=$.operation??void 0,Q.record=$.record!==void 0&&$.record!==null?T0.fromPartial($.record):void 0,Q}};function tD(){return{}}var a6={encode($,Q=new V){if($.mutations!==void 0&&$.mutations.length!==0)for(let Z of $.mutations)v0.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=tD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.mutations===void 0)K.mutations=[];let z=v0.decode(Z,Z.uint32());if(z!==void 0)K.mutations.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return a6.fromPartial($??{})},fromPartial($){let Q=tD();return Q.mutations=$.mutations?.map((Z)=>v0.fromPartial(Z))||void 0,Q}};function rD(){return{}}var s6={encode($,Q=new V){if($.version!==void 0)B0.encode($.version,Q.uint32(10).fork()).join();if($.mutations!==void 0&&$.mutations.length!==0)for(let Z of $.mutations)v0.encode(Z,Q.uint32(18).fork()).join();if($.externalMutations!==void 0)W$.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)L0.encode($.keyId,Q.uint32(50).fork()).join();if($.exitCode!==void 0)M$.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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=rD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=B0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;if(K.mutations===void 0)K.mutations=[];let z=v0.decode(Z,Z.uint32());if(z!==void 0)K.mutations.push(z);continue}case 3:{if(J!==26)break;K.externalMutations=W$.decode(Z,Z.uint32());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=L0.decode(Z,Z.uint32());continue}case 7:{if(J!==58)break;K.exitCode=M$.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return s6.fromPartial($??{})},fromPartial($){let Q=rD();return Q.version=$.version!==void 0&&$.version!==null?B0.fromPartial($.version):void 0,Q.mutations=$.mutations?.map((Z)=>v0.fromPartial(Z))||void 0,Q.externalMutations=$.externalMutations!==void 0&&$.externalMutations!==null?W$.fromPartial($.externalMutations):void 0,Q.snapshotMac=$.snapshotMac??void 0,Q.patchMac=$.patchMac??void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?L0.fromPartial($.keyId):void 0,Q.exitCode=$.exitCode!==void 0&&$.exitCode!==null?M$.fromPartial($.exitCode):void 0,Q.deviceIndex=$.deviceIndex??void 0,Q.clientDebugData=$.clientDebugData??void 0,Q}};function aD(){return{}}var G6={encode($,Q=new V){if($.value!==void 0)I$.encode($.value,Q.uint32(10).fork()).join();if($.keyId!==void 0)Q.uint32(18).bytes($.keyId);if($.mac!==void 0)Q.uint32(26).bytes($.mac);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=aD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.value=I$.decode(Z,Z.uint32());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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return G6.fromPartial($??{})},fromPartial($){let Q=aD();return Q.value=$.value!==void 0&&$.value!==null?I$.fromPartial($.value):void 0,Q.keyId=$.keyId??void 0,Q.mac=$.mac??void 0,Q}};function sD(){return{}}var T0={encode($,Q=new V){if($.index!==void 0)H6.encode($.index,Q.uint32(10).fork()).join();if($.value!==void 0)U6.encode($.value,Q.uint32(18).fork()).join();if($.keyId!==void 0)L0.encode($.keyId,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=sD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.index=H6.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.value=U6.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.keyId=L0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return T0.fromPartial($??{})},fromPartial($){let Q=sD();return Q.index=$.index!==void 0&&$.index!==null?H6.fromPartial($.index):void 0,Q.value=$.value!==void 0&&$.value!==null?U6.fromPartial($.value):void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?L0.fromPartial($.keyId):void 0,Q}};function eD(){return{}}var e6={encode($,Q=new V){if($.version!==void 0)B0.encode($.version,Q.uint32(10).fork()).join();if($.records!==void 0&&$.records.length!==0)for(let Z of $.records)T0.encode(Z,Q.uint32(18).fork()).join();if($.mac!==void 0)Q.uint32(26).bytes($.mac);if($.keyId!==void 0)L0.encode($.keyId,Q.uint32(34).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=eD();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=B0.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;if(K.records===void 0)K.records=[];let z=T0.decode(Z,Z.uint32());if(z!==void 0)K.records.push(z);continue}case 3:{if(J!==26)break;K.mac=Z.bytes();continue}case 4:{if(J!==34)break;K.keyId=L0.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return e6.fromPartial($??{})},fromPartial($){let Q=eD();return Q.version=$.version!==void 0&&$.version!==null?B0.fromPartial($.version):void 0,Q.records=$.records?.map((Z)=>T0.fromPartial(Z))||void 0,Q.mac=$.mac??void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?L0.fromPartial($.keyId):void 0,Q}};function $L(){return{}}var UB={encode($,Q=new V){if($.version!==void 0)B0.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 Z of $.mutationRecords)G6.encode(Z,Q.uint32(26).fork()).join();if($.collectionLthash!==void 0)Q.uint32(34).bytes($.collectionLthash);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=$L();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.version=B0.decode(Z,Z.uint32());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 z=G6.decode(Z,Z.uint32());if(z!==void 0)K.mutationRecords.push(z);continue}case 4:{if(J!==34)break;K.collectionLthash=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return UB.fromPartial($??{})},fromPartial($){let Q=$L();return Q.version=$.version!==void 0&&$.version!==null?B0.fromPartial($.version):void 0,Q.collectionName=$.collectionName??void 0,Q.mutationRecords=$.mutationRecords?.map((Z)=>G6.fromPartial(Z))||void 0,Q.collectionLthash=$.collectionLthash??void 0,Q}};function QL(){return{}}var U6={encode($,Q=new V){if($.blob!==void 0)Q.uint32(10).bytes($.blob);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=QL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.blob=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return U6.fromPartial($??{})},fromPartial($){let Q=QL();return Q.blob=$.blob??void 0,Q}};function ZL(){return{}}var B0={encode($,Q=new V){if($.version!==void 0)Q.uint32(8).uint64($.version);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=ZL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.version=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return B0.fromPartial($??{})},fromPartial($){let Q=ZL();return Q.version=$.version??void 0,Q}};function JL(){return{}}var C6={encode($,Q=new V){if($.title!==void 0)Q.uint32(10).string($.title);if($.tapUrl!==void 0)Q.uint32(18).string($.tapUrl);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=JL();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return C6.fromPartial($??{})},fromPartial($){let Q=JL();return Q.title=$.title??void 0,Q.tapUrl=$.tapUrl??void 0,Q}};function KL(){return{}}var x6={encode($,Q=new V){if($.index!==void 0)Q.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)L6.encode($.quickReplyButton,Q.uint32(10).fork()).join();if($.urlButton!==void 0)F6.encode($.urlButton,Q.uint32(18).fork()).join();if($.callButton!==void 0)D6.encode($.callButton,Q.uint32(26).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=KL();while(Z.pos<q){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=L6.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.urlButton=F6.decode(Z,Z.uint32());continue}case 3:{if(J!==26)break;K.callButton=D6.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return x6.fromPartial($??{})},fromPartial($){let Q=KL();return Q.index=$.index??void 0,Q.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?L6.fromPartial($.quickReplyButton):void 0,Q.urlButton=$.urlButton!==void 0&&$.urlButton!==null?F6.fromPartial($.urlButton):void 0,Q.callButton=$.callButton!==void 0&&$.callButton!==null?D6.fromPartial($.callButton):void 0,Q}};function qL(){return{}}var D6={encode($,Q=new V){if($.displayText!==void 0)c.encode($.displayText,Q.uint32(10).fork()).join();if($.phoneNumber!==void 0)c.encode($.phoneNumber,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=qL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=c.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.phoneNumber=c.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return D6.fromPartial($??{})},fromPartial($){let Q=qL();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?c.fromPartial($.displayText):void 0,Q.phoneNumber=$.phoneNumber!==void 0&&$.phoneNumber!==null?c.fromPartial($.phoneNumber):void 0,Q}};function XL(){return{}}var L6={encode($,Q=new V){if($.displayText!==void 0)c.encode($.displayText,Q.uint32(10).fork()).join();if($.id!==void 0)Q.uint32(18).string($.id);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=XL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=c.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.id=Z.string();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return L6.fromPartial($??{})},fromPartial($){let Q=XL();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?c.fromPartial($.displayText):void 0,Q.id=$.id??void 0,Q}};function zL(){return{}}var F6={encode($,Q=new V){if($.displayText!==void 0)c.encode($.displayText,Q.uint32(10).fork()).join();if($.url!==void 0)c.encode($.url,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=zL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.displayText=c.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.url=c.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return F6.fromPartial($??{})},fromPartial($){let Q=zL();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?c.fromPartial($.displayText):void 0,Q.url=$.url!==void 0&&$.url!==null?c.fromPartial($.url):void 0,Q}};function YL(){return{}}var P6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=YL();while(Z.pos<q){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());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return P6.fromPartial($??{})},fromPartial($){let Q=YL();return Q.threadType=$.threadType??void 0,Q.threadKey=$.threadKey!==void 0&&$.threadKey!==null?k.fromPartial($.threadKey):void 0,Q}};function VL(){return{}}var k6={encode($,Q=new V){if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)b.encode(Z,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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=VL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.messages===void 0)K.messages=[];let z=b.decode(Z,Z.uint32());if(z!==void 0)K.messages.push(z);continue}case 2:{if(J!==18)break;K.parentMessage=k.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.associationType=Z.int32();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return k6.fromPartial($??{})},fromPartial($){let Q=VL();return Q.messages=$.messages?.map((Z)=>b.fromPartial(Z))||void 0,Q.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?k.fromPartial($.parentMessage):void 0,Q.associationType=$.associationType??void 0,Q}};function HL(){return{}}var N6={encode($,Q=new V){if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)Q0.encode(Z,Q.uint32(10).fork()).join();if($.parentMessage!==void 0)k.encode($.parentMessage,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=HL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.messages===void 0)K.messages=[];let z=Q0.decode(Z,Z.uint32());if(z!==void 0)K.messages.push(z);continue}case 2:{if(J!==18)break;K.parentMessage=k.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return N6.fromPartial($??{})},fromPartial($){let Q=HL();return Q.messages=$.messages?.map((Z)=>Q0.fromPartial(Z))||void 0,Q.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?k.fromPartial($.parentMessage):void 0,Q}};function GL(){return{}}var O$={encode($,Q=new V){if($.urlTrackingMapElements!==void 0&&$.urlTrackingMapElements.length!==0)for(let Z of $.urlTrackingMapElements)B6.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=GL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;if(K.urlTrackingMapElements===void 0)K.urlTrackingMapElements=[];let z=B6.decode(Z,Z.uint32());if(z!==void 0)K.urlTrackingMapElements.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return O$.fromPartial($??{})},fromPartial($){let Q=GL();return Q.urlTrackingMapElements=$.urlTrackingMapElements?.map((Z)=>B6.fromPartial(Z))||void 0,Q}};function UL(){return{}}var B6={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=UL();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return B6.fromPartial($??{})},fromPartial($){let Q=UL();return Q.originalUrl=$.originalUrl??void 0,Q.unconsentedUsersUrl=$.unconsentedUsersUrl??void 0,Q.consentedUsersUrl=$.consentedUsersUrl??void 0,Q.cardIndex=$.cardIndex??void 0,Q}};function CL(){return{}}var R6={encode($,Q=new V){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 Z of $.transformerArg)O6.encode(Z,Q.uint32(26).fork()).join();if($.transformedData!==void 0)Q.uint32(34).bytes($.transformedData);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=CL();while(Z.pos<q){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 z=O6.decode(Z,Z.uint32());if(z!==void 0)K.transformerArg.push(z);continue}case 4:{if(J!==34)break;K.transformedData=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return R6.fromPartial($??{})},fromPartial($){let Q=CL();return Q.encoding=$.encoding??void 0,Q.transformer=$.transformer??void 0,Q.transformerArg=$.transformerArg?.map((Z)=>O6.fromPartial(Z))||void 0,Q.transformedData=$.transformedData??void 0,Q}};function xL(){return{}}var O6={encode($,Q=new V){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)A6.encode($.value,Q.uint32(18).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=xL();while(Z.pos<q){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=A6.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return O6.fromPartial($??{})},fromPartial($){let Q=xL();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?A6.fromPartial($.value):void 0,Q}};function DL(){return{}}var A6={encode($,Q=new V){if($.asBlob!==void 0)Q.uint32(10).bytes($.asBlob);if($.asUnsignedInteger!==void 0)Q.uint32(16).uint32($.asUnsignedInteger);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=DL();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return A6.fromPartial($??{})},fromPartial($){let Q=DL();return Q.asBlob=$.asBlob??void 0,Q.asUnsignedInteger=$.asUnsignedInteger??void 0,Q}};function LL(){return{}}var E6={encode($,Q=new V){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 Z of $.pendingDeviceJid)Q.uint32(42).string(Z);if($.deliveredDeviceJid!==void 0&&$.deliveredDeviceJid.length!==0)for(let Z of $.deliveredDeviceJid)Q.uint32(50).string(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=LL();while(Z.pos<q){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.int64Number();continue}case 3:{if(J!==24)break;K.readTimestamp=Z.int64Number();continue}case 4:{if(J!==32)break;K.playedTimestamp=Z.int64Number();continue}case 5:{if(J!==42)break;if(K.pendingDeviceJid===void 0)K.pendingDeviceJid=[];let z=Z.string();if(z!==void 0)K.pendingDeviceJid.push(z);continue}case 6:{if(J!==50)break;if(K.deliveredDeviceJid===void 0)K.deliveredDeviceJid=[];let z=Z.string();if(z!==void 0)K.deliveredDeviceJid.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return E6.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((Z)=>Z)||void 0,Q.deliveredDeviceJid=$.deliveredDeviceJid?.map((Z)=>Z)||void 0,Q}};function FL(){return{}}var y0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=FL();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return y0.fromPartial($??{})},fromPartial($){let Q=FL();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q.serverSignature=$.serverSignature??void 0,Q}};function PL(){return{}}var $z={encode($,Q=new V){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 Z of $.localizedNames)Z8.encode(Z,Q.uint32(66).fork()).join();if($.issueTime!==void 0)Q.uint32(80).uint64($.issueTime);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=PL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==8)break;K.serial=Z.uint64Number();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 z=Z8.decode(Z,Z.uint32());if(z!==void 0)K.localizedNames.push(z);continue}case 10:{if(J!==80)break;K.issueTime=Z.uint64Number();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return $z.fromPartial($??{})},fromPartial($){let Q=PL();return Q.serial=$.serial??void 0,Q.issuer=$.issuer??void 0,Q.verifiedName=$.verifiedName??void 0,Q.localizedNames=$.localizedNames?.map((Z)=>Z8.fromPartial(Z))||void 0,Q.issueTime=$.issueTime??void 0,Q}};function kL(){return{}}var M6={encode($,Q=new V){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)EJ.encode($.encryptedSecretValues,Q.uint32(58).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=kL();while(Z.pos<q){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=EJ.decode(Z,Z.uint32());continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return M6.fromPartial($??{})},fromPartial($){let Q=kL();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?EJ.fromPartial($.encryptedSecretValues):void 0,Q}};function NL(){return{}}var U0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=NL();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return U0.fromPartial($??{})},fromPartial($){let Q=NL();return Q.filename=$.filename??void 0,Q.opacity=$.opacity??void 0,Q.isGenAi=$.isGenAi??void 0,Q}};function BL(){return{}}var CB={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=BL();while(Z.pos<q){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&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return CB.fromPartial($??{})},fromPartial($){let Q=BL();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 RL(){return{}}var b={encode($,Q=new V){if($.key!==void 0)k.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)w.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 Z of $.messageStubParameters)Q.uint32(210).string(Z);if($.duration!==void 0)Q.uint32(216).uint32($.duration);if($.labels!==void 0&&$.labels.length!==0)for(let Z of $.labels)Q.uint32(226).string(Z);if($.paymentInfo!==void 0)i0.encode($.paymentInfo,Q.uint32(234).fork()).join();if($.finalLiveLocation!==void 0)G$.encode($.finalLiveLocation,Q.uint32(242).fork()).join();if($.quotedPaymentInfo!==void 0)i0.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)n0.encode($.mediaData,Q.uint32(306).fork()).join();if($.photoChange!==void 0)rq.encode($.photoChange,Q.uint32(314).fork()).join();if($.userReceipt!==void 0&&$.userReceipt.length!==0)for(let Z of $.userReceipt)E6.encode(Z,Q.uint32(322).fork()).join();if($.reactions!==void 0&&$.reactions.length!==0)for(let Z of $.reactions)VX.encode(Z,Q.uint32(330).fork()).join();if($.quotedStickerData!==void 0)n0.encode($.quotedStickerData,Q.uint32(338).fork()).join();if($.futureproofData!==void 0)Q.uint32(346).bytes($.futureproofData);if($.statusPsa!==void 0)TX.encode($.statusPsa,Q.uint32(354).fork()).join();if($.pollUpdates!==void 0&&$.pollUpdates.length!==0)for(let Z of $.pollUpdates)ZX.encode(Z,Q.uint32(362).fork()).join();if($.pollAdditionalMetadata!==void 0)eq.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)sJ.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)aq.encode($.pinInChat,Q.uint32(434).fork()).join();if($.premiumMessageInfo!==void 0)JX.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)yZ.encode($.commentMetadata,Q.uint32(474).fork()).join();if($.eventResponses!==void 0&&$.eventResponses.length!==0)for(let Z of $.eventResponses)IJ.encode(Z,Q.uint32(490).fork()).join();if($.reportingTokenInfo!==void 0)GX.encode($.reportingTokenInfo,Q.uint32(498).fork()).join();if($.newsletterServerId!==void 0)Q.uint32(504).uint64($.newsletterServerId);if($.eventAdditionalMetadata!==void 0)WJ.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 Z of $.statusMentions)Q.uint32(530).string(Z);if($.targetMessageId!==void 0)k.encode($.targetMessageId,Q.uint32(538).fork()).join();if($.messageAddOns!==void 0&&$.messageAddOns.length!==0)for(let Z of $.messageAddOns)nq.encode(Z,Q.uint32(546).fork()).join();if($.statusMentionMessageInfo!==void 0)vX.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 Z of $.statusMentionSources)Q.uint32(570).string(Z);if($.supportAiCitations!==void 0&&$.supportAiCitations.length!==0)for(let Z of $.supportAiCitations)OZ.encode(Z,Q.uint32(578).fork()).join();if($.botTargetId!==void 0)Q.uint32(586).string($.botTargetId);if($.groupHistoryIndividualMessageInfo!==void 0)yJ.encode($.groupHistoryIndividualMessageInfo,Q.uint32(594).fork()).join();if($.groupHistoryBundleInfo!==void 0)TJ.encode($.groupHistoryBundleInfo,Q.uint32(602).fork()).join();if($.interactiveMessageAdditionalMetadata!==void 0)aJ.encode($.interactiveMessageAdditionalMetadata,Q.uint32(610).fork()).join();if($.quarantinedMessage!==void 0)YX.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)UX.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 Z of $.decisionSources)Q.uint32(666).string(Z);return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=RL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.message=w.decode(Z,Z.uint32());continue}case 3:{if(J!==24)break;K.messageTimestamp=Z.uint64Number();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.uint64Number();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 z=Z.string();if(z!==void 0)K.messageStubParameters.push(z);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 z=Z.string();if(z!==void 0)K.labels.push(z);continue}case 29:{if(J!==234)break;K.paymentInfo=i0.decode(Z,Z.uint32());continue}case 30:{if(J!==242)break;K.finalLiveLocation=G$.decode(Z,Z.uint32());continue}case 31:{if(J!==250)break;K.quotedPaymentInfo=i0.decode(Z,Z.uint32());continue}case 32:{if(J!==256)break;K.ephemeralStartTimestamp=Z.uint64Number();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=n0.decode(Z,Z.uint32());continue}case 39:{if(J!==314)break;K.photoChange=rq.decode(Z,Z.uint32());continue}case 40:{if(J!==322)break;if(K.userReceipt===void 0)K.userReceipt=[];let z=E6.decode(Z,Z.uint32());if(z!==void 0)K.userReceipt.push(z);continue}case 41:{if(J!==330)break;if(K.reactions===void 0)K.reactions=[];let z=VX.decode(Z,Z.uint32());if(z!==void 0)K.reactions.push(z);continue}case 42:{if(J!==338)break;K.quotedStickerData=n0.decode(Z,Z.uint32());continue}case 43:{if(J!==346)break;K.futureproofData=Z.bytes();continue}case 44:{if(J!==354)break;K.statusPsa=TX.decode(Z,Z.uint32());continue}case 45:{if(J!==362)break;if(K.pollUpdates===void 0)K.pollUpdates=[];let z=ZX.decode(Z,Z.uint32());if(z!==void 0)K.pollUpdates.push(z);continue}case 46:{if(J!==370)break;K.pollAdditionalMetadata=eq.decode(Z,Z.uint32());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=sJ.decode(Z,Z.uint32());continue}case 51:{if(J!==410)break;K.originalSelfAuthorUserJidString=Z.string();continue}case 52:{if(J!==416)break;K.revokeMessageTimestamp=Z.uint64Number();continue}case 54:{if(J!==434)break;K.pinInChat=aq.decode(Z,Z.uint32());continue}case 55:{if(J!==442)break;K.premiumMessageInfo=JX.decode(Z,Z.uint32());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=yZ.decode(Z,Z.uint32());continue}case 61:{if(J!==490)break;if(K.eventResponses===void 0)K.eventResponses=[];let z=IJ.decode(Z,Z.uint32());if(z!==void 0)K.eventResponses.push(z);continue}case 62:{if(J!==498)break;K.reportingTokenInfo=GX.decode(Z,Z.uint32());continue}case 63:{if(J!==504)break;K.newsletterServerId=Z.uint64Number();continue}case 64:{if(J!==514)break;K.eventAdditionalMetadata=WJ.decode(Z,Z.uint32());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 z=Z.string();if(z!==void 0)K.statusMentions.push(z);continue}case 67:{if(J!==538)break;K.targetMessageId=k.decode(Z,Z.uint32());continue}case 68:{if(J!==546)break;if(K.messageAddOns===void 0)K.messageAddOns=[];let z=nq.decode(Z,Z.uint32());if(z!==void 0)K.messageAddOns.push(z);continue}case 69:{if(J!==554)break;K.statusMentionMessageInfo=vX.decode(Z,Z.uint32());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 z=Z.string();if(z!==void 0)K.statusMentionSources.push(z);continue}case 72:{if(J!==578)break;if(K.supportAiCitations===void 0)K.supportAiCitations=[];let z=OZ.decode(Z,Z.uint32());if(z!==void 0)K.supportAiCitations.push(z);continue}case 73:{if(J!==586)break;K.botTargetId=Z.string();continue}case 74:{if(J!==594)break;K.groupHistoryIndividualMessageInfo=yJ.decode(Z,Z.uint32());continue}case 75:{if(J!==602)break;K.groupHistoryBundleInfo=TJ.decode(Z,Z.uint32());continue}case 76:{if(J!==610)break;K.interactiveMessageAdditionalMetadata=aJ.decode(Z,Z.uint32());continue}case 77:{if(J!==618)break;K.quarantinedMessage=YX.decode(Z,Z.uint32());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.uint64Number();continue}case 81:{if(J!==650)break;K.scheduledMessageMetadata=UX.decode(Z,Z.uint32());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 z=Z.string();if(z!==void 0)K.decisionSources.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return b.fromPartial($??{})},fromPartial($){let Q=RL();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?w.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((Z)=>Z)||void 0,Q.duration=$.duration??void 0,Q.labels=$.labels?.map((Z)=>Z)||void 0,Q.paymentInfo=$.paymentInfo!==void 0&&$.paymentInfo!==null?i0.fromPartial($.paymentInfo):void 0,Q.finalLiveLocation=$.finalLiveLocation!==void 0&&$.finalLiveLocation!==null?G$.fromPartial($.finalLiveLocation):void 0,Q.quotedPaymentInfo=$.quotedPaymentInfo!==void 0&&$.quotedPaymentInfo!==null?i0.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?n0.fromPartial($.mediaData):void 0,Q.photoChange=$.photoChange!==void 0&&$.photoChange!==null?rq.fromPartial($.photoChange):void 0,Q.userReceipt=$.userReceipt?.map((Z)=>E6.fromPartial(Z))||void 0,Q.reactions=$.reactions?.map((Z)=>VX.fromPartial(Z))||void 0,Q.quotedStickerData=$.quotedStickerData!==void 0&&$.quotedStickerData!==null?n0.fromPartial($.quotedStickerData):void 0,Q.futureproofData=$.futureproofData??void 0,Q.statusPsa=$.statusPsa!==void 0&&$.statusPsa!==null?TX.fromPartial($.statusPsa):void 0,Q.pollUpdates=$.pollUpdates?.map((Z)=>ZX.fromPartial(Z))||void 0,Q.pollAdditionalMetadata=$.pollAdditionalMetadata!==void 0&&$.pollAdditionalMetadata!==null?eq.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?sJ.fromPartial($.keepInChat):void 0,Q.originalSelfAuthorUserJidString=$.originalSelfAuthorUserJidString??void 0,Q.revokeMessageTimestamp=$.revokeMessageTimestamp??void 0,Q.pinInChat=$.pinInChat!==void 0&&$.pinInChat!==null?aq.fromPartial($.pinInChat):void 0,Q.premiumMessageInfo=$.premiumMessageInfo!==void 0&&$.premiumMessageInfo!==null?JX.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?yZ.fromPartial($.commentMetadata):void 0,Q.eventResponses=$.eventResponses?.map((Z)=>IJ.fromPartial(Z))||void 0,Q.reportingTokenInfo=$.reportingTokenInfo!==void 0&&$.reportingTokenInfo!==null?GX.fromPartial($.reportingTokenInfo):void 0,Q.newsletterServerId=$.newsletterServerId??void 0,Q.eventAdditionalMetadata=$.eventAdditionalMetadata!==void 0&&$.eventAdditionalMetadata!==null?WJ.fromPartial($.eventAdditionalMetadata):void 0,Q.isMentionedInStatus=$.isMentionedInStatus??void 0,Q.statusMentions=$.statusMentions?.map((Z)=>Z)||void 0,Q.targetMessageId=$.targetMessageId!==void 0&&$.targetMessageId!==null?k.fromPartial($.targetMessageId):void 0,Q.messageAddOns=$.messageAddOns?.map((Z)=>nq.fromPartial(Z))||void 0,Q.statusMentionMessageInfo=$.statusMentionMessageInfo!==void 0&&$.statusMentionMessageInfo!==null?vX.fromPartial($.statusMentionMessageInfo):void 0,Q.isSupportAiMessage=$.isSupportAiMessage??void 0,Q.statusMentionSources=$.statusMentionSources?.map((Z)=>Z)||void 0,Q.supportAiCitations=$.supportAiCitations?.map((Z)=>OZ.fromPartial(Z))||void 0,Q.botTargetId=$.botTargetId??void 0,Q.groupHistoryIndividualMessageInfo=$.groupHistoryIndividualMessageInfo!==void 0&&$.groupHistoryIndividualMessageInfo!==null?yJ.fromPartial($.groupHistoryIndividualMessageInfo):void 0,Q.groupHistoryBundleInfo=$.groupHistoryBundleInfo!==void 0&&$.groupHistoryBundleInfo!==null?TJ.fromPartial($.groupHistoryBundleInfo):void 0,Q.interactiveMessageAdditionalMetadata=$.interactiveMessageAdditionalMetadata!==void 0&&$.interactiveMessageAdditionalMetadata!==null?aJ.fromPartial($.interactiveMessageAdditionalMetadata):void 0,Q.quarantinedMessage=$.quarantinedMessage!==void 0&&$.quarantinedMessage!==null?YX.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?UX.fromPartial($.scheduledMessageMetadata):void 0,Q.decisionId=$.decisionId??void 0,Q.decisionSources=$.decisionSources?.map((Z)=>Z)||void 0,Q}};function OL(){return{}}var Q0={encode($,Q=new V){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){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=OL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 1:{if(J!==10)break;K.key=k.decode(Z,Z.uint32());continue}case 2:{if(J!==18)break;K.messageBytes=Z.bytes();continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return Q0.fromPartial($??{})},fromPartial($){let Q=OL();return Q.key=$.key!==void 0&&$.key!==null?k.fromPartial($.key):void 0,Q.messageBytes=$.messageBytes??void 0,Q}};function AL(){return{}}var xB={encode($,Q=new V){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 Z of $.notifyMessages)b.encode(Z,Q.uint32(42).fork()).join();return Q},decode($,Q){let Z=$ instanceof X?$:new X($),q=Q===void 0?Z.len:Z.pos+Q,K=AL();while(Z.pos<q){let J=Z.uint32();switch(J>>>3){case 2:{if(J!==16)break;K.timestamp=Z.uint64Number();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 z=b.decode(Z,Z.uint32());if(z!==void 0)K.notifyMessages.push(z);continue}}if((J&7)===4||J===0)break;Z.skip(J&7)}return K},create($){return xB.fromPartial($??{})},fromPartial($){let Q=AL();return Q.timestamp=$.timestamp??void 0,Q.unreadChats=$.unreadChats??void 0,Q.notifyMessageCount=$.notifyMessageCount??void 0,Q.notifyMessages=$.notifyMessages?.map((Z)=>b.fromPartial(Z))||void 0,Q}};var WR={Message:w,WebMessageInfo:b,HistorySync:b6,SyncActionData:I$,ClientPayload:j6,AdvSignedDeviceIdentity:u6,AdvSignedKeyIndexList:w6,AdvDeviceIdentity:l6,AdvSignedDeviceIdentityHmac:p6,HandshakeMessage:o6,SyncdRecord:T0,SyncdMutation:v0,SyncdMutations:a6,SyncdPatch:s6,SyncdSnapshot:e6,ExitCode:M$,SyncActionValue:S$,DeviceProps:c6,SenderKeyDistributionMessage:g6,SenderKeyMessage:t6,ServerErrorReceipt:r6,CertChain:n6,"CertChain.NoiseCertificate":M0,"CertChain.NoiseCertificate.Details":d6,ExternalBlobReference:W$,LidMigrationMappingSyncPayload:i6,MediaRetryNotification:m6,VerifiedNameCertificate:y0,"VerifiedNameCertificate.Details":$z,"Message.PollVoteMessage":S0,"Message.EventResponseMessage":I0},IR=W6;function kz($){let Q=WR[$];if(Q)return Q;let Z=$.replace(/\./g,"_"),q=IR[Z];if(q&&typeof q==="object"&&"encode"in q)return q;throw Error(`unknown proto type: ${$}`)}function SR($){return typeof $==="object"&&$!==null&&typeof $.unsigned==="boolean"&&typeof $.low==="number"&&typeof $.high==="number"}function vR($){let Q=BigInt($.low>>>0);return($.unsigned?BigInt($.high>>>0):BigInt($.high|0))*4294967296n+Q}function Qz($){if($===null)return;if(SR($))return vR($);if(typeof $!=="object")return $;if(ArrayBuffer.isView($)||$ instanceof ArrayBuffer)return $;if(Array.isArray($)){let K;for(let J=0;J<$.length;J++){let z=Qz($[J]);if(z!==$[J])(K??=$.slice())[J]=z}return K??$}let Q=$,Z=Object.getPrototypeOf(Q);if(Z!==Object.prototype&&Z!==null){let K={};for(let J of Object.keys(Q)){let z=Qz(Q[J]);if(z!==void 0)K[J]=z}return K}let q;for(let K in Q){let J=Qz(Q[K]);if(J!==Q[K])(q??={...Q})[K]=J}return q??$}function Nz($,Q){return kz($).encode(Qz(Q??{})).finish()}function TR($,Q){return kz($).decode(Q)}var DB=1;function yR($,Q,Z){if(Z.length<DB)throw RangeError("protobuf batch offsets must contain the leading sentinel");if(Z[0]!==0)throw RangeError("protobuf batch offsets must start at zero");let q=Z.length-DB;for(let G=0;G<q;G++)if(Z[G+1]<Z[G])throw RangeError("protobuf batch offsets must be monotonic");if(Z[q]!==Q.length)throw RangeError("protobuf batch offsets must end at the data length");let K=kz($),J=new X(Q),z=Array(q);for(let G=0;G<q;G++){let D=Z[G],x=Z[G+1];if(J.pos=D,z[G]=K.decode(J,x-D),J.pos!==x)throw RangeError("protobuf decoder did not consume the delimited entry")}return z}var LB=new TextDecoder,Bz=new TextEncoder;function fR($,Q){let Z=Array(Math.max(0,Q.length-1));for(let q=0;q+1<Q.length;q++)Z[q]=LB.decode($.subarray(Q[q],Q[q+1]));return Z}function _R($){let Q=(q)=>{let K=$[q];if(K===void 0)throw RangeError("packed record references a missing table entry");return K};return{required:Q,optional:(q)=>q===0?void 0:Q(q-1)}}class FB{table=[];indexByValue=new Map;intern($){let Q=this.indexByValue.get($);if(Q!==void 0)return Q;let Z=this.table.length;return this.table.push($),this.indexByValue.set($,Z),Z}internOptional($){return $===void 0?0:this.intern($)+1}pack(){let $=new TextEncoder,Q=this.table.map((J)=>$.encode(J)),Z=new Uint32Array(Q.length+1),q=0;for(let J=0;J<Q.length;J++)q+=Q[J].length,Z[J+1]=q;let K=new Uint8Array(q);for(let J=0;J<Q.length;J++)K.set(Q[J],Z[J]);return{data:K,offsets:Z}}}var _$=10,PB=0,kB=1,NB=2,BB=3,RB=4,OB=5,AB=6,EB=7,MB=8,WB=9,IB=1,SB=2,vB=4,TB=8,A$=24,yB=0,fB=4,_B=8,hB=12,lB=16;function hR($){return($.byteOffset+A$)%8===0?$:new Uint8Array($)}function lR($){let Q=hR($);if(Q.byteLength<A$)throw RangeError("message wire batch is shorter than its header");let Z=new DataView(Q.buffer,Q.byteOffset,A$),q=Z.getUint32(yB,!0),K=Z.getUint32(fB,!0),J=Z.getUint32(_B,!0),z=Z.getUint32(hB,!0),G=Z.getUint32(lB,!0);if(G!==_$)throw RangeError(`message wire batch record width ${G} does not match the expected ${_$}`);let D=q*G*8,x=(q+1)*4,B=(K+1)*4,y=A$+D+x+B+J+z;if(Q.byteLength<y)throw RangeError(`message wire batch is truncated: ${Q.byteLength} bytes, expected ${y}`);let I=A$,O=new Float64Array(Q.buffer,Q.byteOffset+I,q*G);I+=D;let M=new Uint32Array(Q.buffer,Q.byteOffset+I,q+1);I+=x;let n=new Uint32Array(Q.buffer,Q.byteOffset+I,K+1);I+=B;let S=Q.subarray(I,I+J);I+=J;let j=Q.subarray(I,I+z),{required:R0,optional:O0}=_R(fR(j,n)),_0=Array(q);for(let A0=0;A0<q;A0++){let l=A0*G,v$=O[l+EB];_0[A0]={chat:R0(O[l+PB]),sender:R0(O[l+kB]),senderAlt:O0(O[l+NB]),recipientAlt:O0(O[l+BB]),isFromMe:(v$&IB)!==0,isGroup:(v$&SB)!==0,id:R0(O[l+RB]),timestamp:O[l+AB],pushName:R0(O[l+OB]),isViewOnce:(v$&vB)!==0,isOffline:(v$&TB)!==0,unavailableRequestId:O0(O[l+MB]),edit:O0(O[l+WB])}}return{messageData:S,messageOffsets:M,infos:_0}}function uR($){let Q=new FB,Z=new Float64Array($.length*_$),q=new Uint32Array($.length+1),K=0;for(let y=0;y<$.length;y++){let{payload:I,info:O}=$[y];K+=I.byteLength,q[y+1]=K;let M=y*_$;Z[M+PB]=Q.intern(O.chat),Z[M+kB]=Q.intern(O.sender),Z[M+NB]=Q.internOptional(O.senderAlt),Z[M+BB]=Q.internOptional(O.recipientAlt),Z[M+RB]=Q.intern(O.id),Z[M+OB]=Q.intern(O.pushName),Z[M+AB]=O.timestamp,Z[M+EB]=(O.isFromMe?IB:0)|(O.isGroup?SB:0)|(O.isViewOnce?vB:0)|(O.isOffline?TB:0),Z[M+MB]=Q.internOptional(O.unavailableRequestId),Z[M+WB]=Q.internOptional(O.edit)}let{data:J,offsets:z}=Q.pack(),G=A$+Z.byteLength+q.byteLength+z.byteLength+K+J.byteLength,D=new Uint8Array(G),x=new DataView(D.buffer,0,A$);x.setUint32(yB,$.length,!0),x.setUint32(fB,Math.max(0,z.length-1),!0),x.setUint32(_B,K,!0),x.setUint32(hB,J.byteLength,!0),x.setUint32(lB,_$,!0);let B=A$;D.set(new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength),B),B+=Z.byteLength,D.set(new Uint8Array(q.buffer,q.byteOffset,q.byteLength),B),B+=q.byteLength,D.set(new Uint8Array(z.buffer,z.byteOffset,z.byteLength),B),B+=z.byteLength;for(let{payload:y}of $)D.set(y,B),B+=y.byteLength;return D.set(J,B),D}var Zz=20,uB=1,pR=100,pB=1,wB=2,nB=4,dB=8;class Rz{strings=[];jids=[];view;bytes;cursor=0;inlineCursor=0;region="";begin($){if(this.bytes=$,this.view=new DataView($.buffer,$.byteOffset,$.byteLength),$.byteLength<Zz)throw RangeError("packed batch is shorter than its header");let Q=this.view.getUint32(0,!0),Z=this.view.getUint32(4,!0),q=this.view.getUint32(8,!0),K=this.view.getUint32(12,!0);if((this.view.getUint32(16,!0)&uB)!==0)this.strings.length=0,this.jids.length=0;let z=Zz,G=z;z+=Z*4;let D=z;z+=q*11;let x=z,B=$.byteLength-K;if(B<x)throw RangeError("packed batch regions overlap");this.region=K===0?"":this.decodeRegion(B,K),this.inlineCursor=0;for(let y=0;y<Z;y++){let I=G+y*4,O=this.view.getUint16(I,!0),M=this.view.getUint16(I+2,!0);this.strings[O]=this.region.substring(this.inlineCursor,this.inlineCursor+=M)}for(let y=0;y<q;y++){let I=D+y*11,O=this.view.getUint16(I,!0),M=this.strings[this.view.getUint16(I+2,!0)],n=this.strings[this.view.getUint16(I+4,!0)];if(M===void 0||n===void 0)throw RangeError("packed jid references a missing string slot");this.jids[O]=Object.freeze({user:M,server:n,agent:this.view.getUint8(I+6),device:this.view.getUint16(I+7,!0),integrator:this.view.getUint16(I+9,!0)})}return this.cursor=x,Q}decodeRegion($,Q){if(Q>=pR)return LB.decode(this.bytes.subarray($,$+Q));let Z="",q=$,K=$+(Q/4|0)*4;while(q<K){let J=this.view.getUint32(q,!0);Z+=String.fromCharCode(J&255,J>>8&255,J>>16&255,J>>>24),q+=4}while(q<$+Q)Z+=String.fromCharCode(this.view.getUint8(q++));return Z}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.region.substring(this.inlineCursor,this.inlineCursor+=$)}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 K0=new Rz,f$=new Rz;function wR($){let Q=K0.begin($),Z=Array(Q);for(let q=0;q<Q;q++){let K=K0.u8(),J=K0.jid(),z=K0.jid(),G=K0.jidOptional(),D=K0.jidOptional(),x=K0.jidOptional(),B=K0.jidOptional(),y=K0.strOptional(),I=K0.str(),O=K0.f64(),M=K0.u8(),n=Array(M);for(let S=0;S<M;S++)n[S]=K0.inline();Z[q]={source:{chat:J,sender:z,is_from_me:(K&pB)!==0,is_group:(K&wB)!==0,addressing_mode:y,sender_alt:G,recipient_alt:D,broadcast_list_owner:x,recipient:B},message_ids:n,timestamp:O,type:(K&dB)!==0?{Other:I}:I,offline:(K&nB)!==0}}return Z}function nR($){let Q=f$.begin($),Z=Array(Q);for(let q=0;q<Q;q++){let K=f$.strOptional(),J=f$.jidOptional(),z=f$.strOptional(),G=f$.f64();Z[q]={id:f$.inline(),class:K,from:J,timestamp:Number.isNaN(G)?void 0:G,error:z}}return Z}class Oz{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 Z=this.stringSlots.size;return this.stringSlots.set($,Z),this.newStrings.push([Z,Bz.encode($).length]),this.definitions.push($),Z}cacheStrOptional($){return $===void 0?0:this.cacheStr($)+1}cacheJid($){let Q=[$.user,$.server,$.agent,$.device,$.integrator].join(" "),Z=this.jidSlots.get(Q);if(Z!==void 0)return Z;let q=this.cacheStr($.user),K=this.cacheStr($.server),J=this.jidSlots.size;return this.jidSlots.set(Q,J),this.newJids.push([J,q,K,$.agent,$.device,$.integrator]),J}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 Z=0;Z<8;Z++)this.records.push(Q.getUint8(Z))}writeInline($){let Q=Bz.encode($).length;this.records.push(Q&255,Q>>8&255),this.inline.push($)}endRecord(){this.recordCount++}finish(){let $=Bz.encode(this.definitions.join("")+this.inline.join("")),Q=Zz+this.newStrings.length*4+this.newJids.length*11+this.records.length+$.length,Z=new Uint8Array(Q),q=new DataView(Z.buffer);q.setUint32(0,this.recordCount,!0),q.setUint32(4,this.newStrings.length,!0),q.setUint32(8,this.newJids.length,!0),q.setUint32(12,$.length,!0),q.setUint32(16,uB,!0);let K=Zz;for(let[J,z]of this.newStrings)q.setUint16(K,J,!0),q.setUint16(K+2,z,!0),K+=4;for(let[J,z,G,D,x,B]of this.newJids)q.setUint16(K,J,!0),q.setUint16(K+2,z,!0),q.setUint16(K+4,G,!0),q.setUint8(K+6,D),q.setUint16(K+7,x,!0),q.setUint16(K+9,B,!0),K+=11;return Z.set(this.records,K),K+=this.records.length,Z.set($,K),Z}}function dR($){let Q=new Oz;for(let Z of $){let q=typeof Z.type!=="string",K=Q.cacheJid(Z.source.chat),J=Q.cacheJid(Z.source.sender),z=Q.cacheJidOptional(Z.source.sender_alt),G=Q.cacheJidOptional(Z.source.recipient_alt),D=Q.cacheJidOptional(Z.source.broadcast_list_owner),x=Q.cacheJidOptional(Z.source.recipient),B=Q.cacheStrOptional(Z.source.addressing_mode),y=Q.cacheStr(typeof Z.type==="string"?Z.type:Z.type.Other);Q.u8((Z.source.is_from_me?pB:0)|(Z.source.is_group?wB:0)|(Z.offline?nB:0)|(q?dB:0));for(let I of[K,J,z,G,D,x,B,y])Q.slot(I);Q.f64(Z.timestamp),Q.u8(Z.message_ids.length);for(let I of Z.message_ids)Q.writeInline(I);Q.endRecord()}return Q.finish()}function jR($){let Q=new Oz;for(let Z of $)Q.slot(Q.cacheStrOptional(Z.class)),Q.slot(Q.cacheJidOptional(Z.from)),Q.slot(Q.cacheStrOptional(Z.error)),Q.f64(Z.timestamp??Number.NaN),Q.writeInline(Z.id),Q.endRecord();return Q.finish()}var cR=1,oR=2,bR=3,Jz=8,Kz=8;function iR($){if($.byteLength<Jz)throw RangeError("event wire envelope is shorter than its header");let Q=new DataView($.buffer,$.byteOffset,$.byteLength),Z=Q.getUint32(0,!0),q=Array(Z),K=Jz;for(let J=0;J<Z;J++){if(K+Kz>$.byteLength)throw RangeError("event wire envelope is truncated");let z=Q.getUint32(K,!0),G=Q.getUint32(K+4,!0);if(K+=Kz,K+G>$.byteLength)throw RangeError("event wire envelope segment is truncated");q[J]={kind:z,batch:$.subarray(K,K+G)},K=K+G+7&-8}return q}function mR($){let Q=Jz;for(let{batch:J}of $)Q=Q+Kz+J.byteLength+7&-8;let Z=new Uint8Array(Q),q=new DataView(Z.buffer);q.setUint32(0,$.length,!0);let K=Jz;for(let{kind:J,batch:z}of $)q.setUint32(K,J,!0),q.setUint32(K+4,z.byteLength,!0),K+=Kz,Z.set(z,K),K=K+z.byteLength+7&-8;return Z}var Ez=($)=>typeof $==="object"&&$!==null&&typeof $.encode==="function"&&typeof $.decode==="function",cB=($)=>typeof $==="object"&&$!==null&&!Ez($);function gR(){return this}var jB=($)=>{if($&&typeof $==="object"&&!("toJSON"in $))Object.defineProperty($,"toJSON",{value:gR,enumerable:!1,writable:!0,configurable:!0})},tR=($,Q)=>({encode(Z){return{finish(){return Nz($,Z)}}},decode(Z,q){let K=Z instanceof X?Z:new X(Z instanceof Uint8Array?Z:ArrayBuffer.isView(Z)?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z)),J=Q.decode(K,q);return jB(J),J},create(Z){return Z||{}},fromObject(Z){if(Z&&typeof Z==="object")jB(Z);return Z||{}},toObject(Z){return Z},fromPartial:Q.fromPartial?.bind(Q)??((Z)=>Z||{})}),rR=()=>({create($){return $||{}},fromObject($){return $||{}}}),Az="_",aR=".",sR="protobufPackage",eR={ADVKeyIndexList:"ADVSignedKeyIndexList"},$O=["Message","WebMessageInfo","ContextInfo","SyncActionValue"],QO=($,Q)=>$!==sR&&!$.startsWith(Az)&&typeof Q!=="function"&&(Ez(Q)||cB(Q)),ZO=($)=>{let Q=$.at(0);return Q!==void 0&&Q===Q.toUpperCase()&&Q!==Q.toLowerCase()},JO=($)=>new Proxy($,{get(Q,Z,q){let K=Reflect.get(Q,Z,q);if(K!==void 0||typeof Z!=="string"||!ZO(Z))return K;let J=rR();return Reflect.set(Q,Z,J),J}}),KO=()=>{let $={};for(let[Q,Z]of Object.entries(W6)){if(!QO(Q,Z))continue;let q=Q.split(Az),K=q.pop(),J=$;for(let z of q)J[z]??={},J=J[z];if(Ez(Z)){let z=tR(Q.replaceAll(Az,aR),Z);J[K]=Object.assign(z,J[K]??{})}else if(cB(Z))J[K]=Object.assign({},J[K]??{},Z)}for(let[Q,Z]of Object.entries(eR))if($[Z]&&!$[Q])$[Q]=$[Z];for(let Q of $O)if($[Q])$[Q]=JO($[Q]);return $},qO=KO();var zO=new URL("whatsapp_rust_bridge_bg.wasm",import.meta.url),YO=XO(zO);Tz({module:YO});var KA=vz,qA=Sz;export{_O as verifySignature,fO as updateLogger,yO as setLogger,qO as proto,TO as projectLegacySessionRecordV1,vO as md5,SO as logMessage,KA as initWasmEngine,Tz as initSync,IO as inflateZlib,WO as importLegacySessionRecordV1,MO as hkdf,EO as hasLogger,AO as getWasmMemoryBytes,OO as getWasmAllocationSnapshot,RO as getPublicFromPrivateKey,BO as getEnabledFeatures,NO as generateKeyPair,kO as encodeSessionRecordComponents,jR as encodeServerAckWireBatch,PO as encodeSenderKeyRecordComponents,dR as encodeReceiptWireBatch,Nz as encodeProto,uR as encodeMessageWireBatch,mR as encodeEventWireEnvelope,FO as decryptPollVotePayload,LO as decryptPollVote,DO as decryptEventResponsePayload,xO as decodeSessionRecordComponents,nR as decodeServerAckWireBatch,CO as decodeSenderKeyRecordComponents,wR as decodeReceiptWireBatch,yR as decodeProtoBatch,TR as decodeProto,lR as decodeMessageWireBatch,iR as decodeEventWireEnvelope,qA as createWhatsAppClient,UO as calculateSignature,GO as calculateAgreement,HO as beginWasmAllocationProfile,d$ as WasmWhatsAppClient,_$ as MESSAGE_WIRE_INFO_RECORD_WIDTH,n$ as IntoUnderlyingSource,zz as IntoUnderlyingSink,Xz as IntoUnderlyingByteSource,bR as EVENT_SEGMENT_KIND_SERVER_ACK,oR as EVENT_SEGMENT_KIND_RECEIPT,cR as EVENT_SEGMENT_KIND_MESSAGE,X as BinaryReader};