@oxidezap/whatsapp-rust-bridge 0.21.2 → 0.21.4

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 V2=Object.defineProperty;var H2=($)=>$;function z2($,Q){this[$]=H2.bind(null,Q)}var G2=($,Q)=>{for(var Z in Q)V2($,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:z2.bind(Q,Z)})};import{readFileSync as vM}from"node:fs";class YV{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,B2.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return z.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();z.intounderlyingbytesource_cancel($)}pull($){let Q=z.intounderlyingbytesource_pull(this.__wbg_ptr,N($));return D(Q)}start($){z.intounderlyingbytesource_start(this.__wbg_ptr,N($))}get type(){let $=z.intounderlyingbytesource_type(this.__wbg_ptr);return x2[$]}}if(Symbol.dispose)YV.prototype[Symbol.dispose]=YV.prototype.free;class VV{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,N2.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsink_free($,0)}abort($){let Q=this.__destroy_into_raw(),Z=z.intounderlyingsink_abort(Q,N($));return D(Z)}close(){let $=this.__destroy_into_raw(),Q=z.intounderlyingsink_close($);return D(Q)}write($){let Q=z.intounderlyingsink_write(this.__wbg_ptr,N($));return D(Q)}}if(Symbol.dispose)VV.prototype[Symbol.dispose]=VV.prototype.free;class H0{static __wrap($){let Q=Object.create(H0.prototype);return Q.__wbg_ptr=$,vV.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,vV.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();z.intounderlyingsource_cancel($)}pull($){let Q=z.intounderlyingsource_pull(this.__wbg_ptr,N($));return D(Q)}}if(Symbol.dispose)H0.prototype[Symbol.dispose]=H0.prototype.free;class z0{static __wrap($){let Q=Object.create(z0.prototype);return Q.__wbg_ptr=$,fV.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,fV.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let Q=z.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,N($));return D(Q)}addChatLabel($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_addChatLabel(this.__wbg_ptr,Z,J,X,q);return D(K)}addLidPnMappings($){let Q=z.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,N($));return D(Q)}addMessageLabel($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_addMessageLabel(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}archiveChat($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_archiveChat(this.__wbg_ptr,Z,J,Q);return D(X)}assertSessions($,Q){let Z=s($,z.__wbindgen_export),J=U,X=z.wasmwhatsappclient_assertSessions(this.__wbg_ptr,Z,J,Q);return D(X)}cleanDirtyBits($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_cleanDirtyBits(this.__wbg_ptr,Z,J,!c(Q),c(Q)?0:Q);return D(X)}clearChat($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=z.wasmwhatsappclient_clearChat(this.__wbg_ptr,J,X,Q,Z);return D(q)}communityFetchAllParticipating(){let $=z.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return D($)}communityParticipantsUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}connect(){let $=z.wasmwhatsappclient_connect(this.__wbg_ptr);return D($)}createCommunity($,Q,Z,J,X){let q=L($,z.__wbindgen_export,z.__wbindgen_export2),K=U;var V=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_createCommunity(this.__wbg_ptr,q,K,V,C,Z,J,X);return D(F)}createCommunitySubgroup($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}createGroup($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=s(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_createGroup(this.__wbg_ptr,Z,J,X,q);return D(K)}createLabel($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=z.wasmwhatsappclient_createLabel(this.__wbg_ptr,J,X,q,K,Z);return D(V)}createParticipantNodesBytes($,Q,Z){let J=s($,z.__wbindgen_export),X=U,q=j(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}createPoll($,Q,Z,J){let X=L($,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=L(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=s(Z,z.__wbindgen_export),F=U,A=z.wasmwhatsappclient_createPoll(this.__wbg_ptr,X,q,K,V,C,F,J);return D(A)}deactivateCommunity($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,Q,Z);return D(J)}deleteChat($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_deleteChat(this.__wbg_ptr,Q,Z);return D(J)}deleteLabel($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_deleteLabel(this.__wbg_ptr,Q,Z);return D(J)}deleteMessageForMe($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=z.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,J,X,q,K,Z);return D(V)}deleteQuickReply($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_deleteQuickReply(this.__wbg_ptr,Q,Z);return D(J)}disconnect(){let $=z.wasmwhatsappclient_disconnect(this.__wbg_ptr);return D($)}downloadMedia($,Q,Z,J,X,q){let K=L($,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=j(Q,z.__wbindgen_export),F=U,A=j(Z,z.__wbindgen_export),E=U,h=j(J,z.__wbindgen_export),y=U,I=z.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,K,V,C,F,A,E,h,y,X,N(q));return D(I)}downloadMediaStream($,Q,Z,J,X,q){try{let F=z.__wbindgen_add_to_stack_pointer(-16),A=L($,z.__wbindgen_export,z.__wbindgen_export2),E=U,h=j(Q,z.__wbindgen_export),y=U,I=j(Z,z.__wbindgen_export),w=U,M=j(J,z.__wbindgen_export),D$=U;z.wasmwhatsappclient_downloadMediaStream(F,this.__wbg_ptr,A,E,h,y,I,w,M,D$,X,N(q));var K=T().getInt32(F+0,!0),V=T().getInt32(F+4,!0),C=T().getInt32(F+8,!0);if(C)throw D(V);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,Q,Z,J){let X=L($,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=L(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=j(Z,z.__wbindgen_export),F=U;var A=c(J)?0:L(J,z.__wbindgen_export,z.__wbindgen_export2),E=U;let h=z.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,X,q,K,V,C,F,A,E);return D(h)}encryptMediaStream($,Q,Z){let J=z.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,N($),N(Q),N(Z));return D(J)}ensurePreKeys(){let $=z.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return D($)}fetchBlocklist(){let $=z.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return D($)}fetchMessageHistory($,Q,Z,J,X){let q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,q,K,V,C,J,X);return D(F)}fetchNewChatMessageCappingInfo(){let $=z.wasmwhatsappclient_fetchNewChatMessageCappingInfo(this.__wbg_ptr);return D($)}fetchPrivacySettings(){let $=z.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return D($)}fetchReachoutTimelock(){let $=z.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return D($)}fetchStatus($){let Q=s($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,Q,Z);return D(J)}fetchUserInfo($){let Q=s($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,Q,Z);return D(J)}findByUsername($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var X=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;let K=z.wasmwhatsappclient_findByUsername(this.__wbg_ptr,Z,J,X,q);return D(K)}getAccount(){let $=z.wasmwhatsappclient_getAccount(this.__wbg_ptr);return D($)}getBotList(){let $=z.wasmwhatsappclient_getBotList(this.__wbg_ptr);return D($)}getBusinessProfile($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,Q,Z);return D(J)}getCatalog($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_getCatalog(this.__wbg_ptr,Z,J,N(Q));return D(X)}getCollections($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_getCollections(this.__wbg_ptr,Z,J,N(Q));return D(X)}getCommunitySubgroups($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,Q,Z);return D(J)}getCoreAllocationSnapshot(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_getCoreAllocationSnapshot(J,this.__wbg_ptr);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}getGroupMetadata($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,Q,Z);return D(J)}getJid(){let $=z.wasmwhatsappclient_getJid(this.__wbg_ptr);return D($)}getLid(){let $=z.wasmwhatsappclient_getLid(this.__wbg_ptr);return D($)}getMediaConn($){let Q=z.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return D(Q)}getMemoryDiagnostics(){let $=z.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return D($)}getOrder($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_getOrder(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}getPushName(){let $=z.wasmwhatsappclient_getPushName(this.__wbg_ptr);return D($)}getUSyncDevices($,Q,Z){let J=s($,z.__wbindgen_export),X=U,q=z.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,J,X,Q,Z);return D(q)}getUsername(){let $=z.wasmwhatsappclient_getUsername(this.__wbg_ptr);return D($)}groupAcceptInvite($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,Q,Z);return D(J)}groupAcceptInviteV4($,Q,Z,J){let X=L($,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=L(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=L(J,z.__wbindgen_export,z.__wbindgen_export2),F=U,A=z.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,X,q,K,V,Z,C,F);return D(A)}groupFetchAllParticipating(){let $=z.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return D($)}groupGetInviteInfo($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,Q,Z);return D(J)}groupInviteCode($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,Q,Z);return D(J)}groupLeave($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupLeave(this.__wbg_ptr,Q,Z);return D(J)}groupMemberAddMode($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,Z,J,N(Q));return D(X)}groupParticipantsUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}groupRequestParticipantsList($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,Q,Z);return D(J)}groupRequestParticipantsUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}groupRevokeInvite($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,Q,Z);return D(J)}groupRevokeInviteV4($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,Z,J,X,q);return D(K)}groupSettingUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=z.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,J,X,N(Q),Z);return D(q)}groupToggleEphemeral($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,Z,J,Q);return D(X)}groupUpdateDescription($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var X=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;let K=z.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,Z,J,X,q);return D(K)}groupUpdateSubject($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,Z,J,X,q);return D(K)}isConnected(){return z.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return z.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let Q=s($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,Q,Z);return D(J)}jidToSignalProtocolAddress($){let Q,Z;try{let F=z.__wbindgen_add_to_stack_pointer(-16),A=L($,z.__wbindgen_export,z.__wbindgen_export2),E=U;z.wasmwhatsappclient_jidToSignalProtocolAddress(F,this.__wbg_ptr,A,E);var J=T().getInt32(F+0,!0),X=T().getInt32(F+4,!0),q=T().getInt32(F+8,!0),K=T().getInt32(F+12,!0),V=J,C=X;if(K)throw V=0,C=0,D(q);return Q=V,Z=C,F$(V,C)}finally{z.__wbindgen_add_to_stack_pointer(16),z.__wbindgen_export4(Q,Z,1)}}lidForPn($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_lidForPn(this.__wbg_ptr,Q,Z);return D(J)}linkCommunitySubgroups($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=s(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,Z,J,X,q);return D(K)}logout(){let $=z.wasmwhatsappclient_logout(this.__wbg_ptr);return D($)}markChatAsRead($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,Z,J,Q);return D(X)}markPlayed($){let Q=z.wasmwhatsappclient_markPlayed(this.__wbg_ptr,N($));return D(Q)}muteChat($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_muteChat(this.__wbg_ptr,Z,J,!c(Q),c(Q)?0:Q);return D(X)}newsletterAdminInfo($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterAdminInfo(this.__wbg_ptr,Q,Z);return D(J)}newsletterAdminMute($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_newsletterAdminMute(this.__wbg_ptr,Z,J,Q);return D(X)}newsletterChangeOwner($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_newsletterChangeOwner(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterCreate($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var X=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;let K=z.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterDelete($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterDelete(this.__wbg_ptr,Q,Z);return D(J)}newsletterDemoteAdmin($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_newsletterDemoteAdmin(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterEditMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=j(Z,z.__wbindgen_export),C=U,F=z.wasmwhatsappclient_newsletterEditMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}newsletterFollowerMute($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_newsletterFollowerMute(this.__wbg_ptr,Z,J,Q);return D(X)}newsletterFollowers($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_newsletterFollowers(this.__wbg_ptr,Z,J,Q);return D(X)}newsletterList(){let $=z.wasmwhatsappclient_newsletterList(this.__wbg_ptr);return D($)}newsletterMessages($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var q=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;let V=z.wasmwhatsappclient_newsletterMessages(this.__wbg_ptr,J,X,Q,q,K);return D(V)}newsletterMetadata($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,Q,Z);return D(J)}newsletterMetadataByInvite($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterMetadataByInvite(this.__wbg_ptr,Q,Z);return D(J)}newsletterMute($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,Z,J,Q);return D(X)}newsletterReactMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;var V=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}newsletterRemovePicture($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterRemovePicture(this.__wbg_ptr,Q,Z);return D(J)}newsletterRevokeMessage($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_newsletterRevokeMessage(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterSetPicture($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=j(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_newsletterSetPicture(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterSubscribe($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,Q,Z);return D(J)}newsletterSubscribeLiveUpdates($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterSubscribeLiveUpdates(this.__wbg_ptr,Q,Z);return D(J)}newsletterUnsubscribe($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,Q,Z);return D(J)}newsletterUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var q=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_newsletterUpdate(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}pinChat($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_pinChat(this.__wbg_ptr,Z,J,Q);return D(X)}pnForLid($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_pnForLid(this.__wbg_ptr,Q,Z);return D(J)}presenceSubscribe($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,Q,Z);return D(J)}profilePictureUrl($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=z.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,J,X,N(Q),!c(Z),c(Z)?0:Z);return D(q)}queryNode($,Q){let Z=z.wasmwhatsappclient_queryNode(this.__wbg_ptr,N($),!c(Q),c(Q)?0:Q);return D(Z)}queryUsync($){let Q=z.wasmwhatsappclient_queryUsync(this.__wbg_ptr,N($));return D(Q)}reachability(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_reachability(J,this.__wbg_ptr);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}readMessages($){let Q=z.wasmwhatsappclient_readMessages(this.__wbg_ptr,N($));return D(Q)}reconnect(){let $=z.wasmwhatsappclient_reconnect(this.__wbg_ptr);return D($)}refreshPreKeys($){let Q=z.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,c($)?Number.MAX_SAFE_INTEGER:$>>>0);return D(Q)}rejectCall($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_rejectCall(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}rejectStanza($,Q,Z){let J=z.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,N($),Q,c(Z)?Number.MAX_SAFE_INTEGER:Z>>0);return D(J)}relayMessageBytes($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=j(Q,z.__wbindgen_export),K=U;var V=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}relayMessageBytesWithOptions($,Q,Z,J,X,q){let K=L($,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=j(Q,z.__wbindgen_export),F=U;var A=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),E=U;let h=z.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,K,V,C,F,A,E,N(J),X,q);return D(h)}removeBusinessCoverPhoto($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_removeBusinessCoverPhoto(this.__wbg_ptr,Q,Z);return D(J)}removeChatLabel($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_removeChatLabel(this.__wbg_ptr,Z,J,X,q);return D(K)}removeContact($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_removeContact(this.__wbg_ptr,Q,Z);return D(J)}removeGroupProfilePicture($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,Q,Z);return D(J)}removeMessageLabel($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_removeMessageLabel(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}removeProfilePicture(){let $=z.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return D($)}requestMediaReupload($,Q,Z,J,X){let q=L($,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=j(Z,z.__wbindgen_export),A=U;var E=c(X)?0:L(X,z.__wbindgen_export,z.__wbindgen_export2),h=U;let y=z.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,q,K,V,C,F,A,J,E,h);return D(y)}requestMessageRetry($,Q){let Z=z.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,N($),c(Q)?16777215:Q?1:0);return D(Z)}requestPairingCode($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var X=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;let K=z.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,Z,J,X,q);return D(K)}retransmitMessageBytes($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=j(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}revokeMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;var V=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}rotateSignedKey(){let $=z.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return D($)}run(){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_run(Z,this.__wbg_ptr);var $=T().getInt32(Z+0,!0),Q=T().getInt32(Z+4,!0);if(Q)throw D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}saveContact($,Q,Z,J){let X=L($,z.__wbindgen_export,z.__wbindgen_export2),q=U;var K=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),F=U;let A=z.wasmwhatsappclient_saveContact(this.__wbg_ptr,X,q,K,V,C,F,J);return D(A)}sendChatState($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_sendChatState(this.__wbg_ptr,Z,J,N(Q));return D(X)}sendCommentBytes($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=j(Z,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,J,X,N(Q),q,K);return D(V)}sendMessageBytes($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=j(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,Z,J,X,q);return D(K)}sendNode($){let Q=z.wasmwhatsappclient_sendNode(this.__wbg_ptr,N($));return D(Q)}sendPresence($){let Q=z.wasmwhatsappclient_sendPresence(this.__wbg_ptr,N($));return D(Q)}sendRawMessage($){let Q=j($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,Q,Z);return D(J)}sendReaction($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var q=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;let V=z.wasmwhatsappclient_sendReaction(this.__wbg_ptr,J,X,N(Q),q,K);return D(V)}sendStatusMessageBytes($,Q){let Z=j($,z.__wbindgen_export),J=U,X=s(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,Z,J,X,q);return D(K)}sendStatusMessageBytesWithOptions($,Q,Z,J,X){let q=j($,z.__wbindgen_export),K=U,V=s(Q,z.__wbindgen_export),C=U;var F=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),A=U;let E=z.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,q,K,V,C,F,A,N(J),X);return D(E)}setAutoReconnect($){z.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setBusinessCoverPhoto($){let Q=z.wasmwhatsappclient_setBusinessCoverPhoto(this.__wbg_ptr,N($));return D(Q)}setClientProfile($){let Q=z.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,N($));return D(Q)}setDeviceProps($){let Q=z.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,N($));return D(Q)}setGroupProfilePicture($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=j(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,Z,J,X,q);return D(K)}setInitialPushName($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,Q,Z);return D(J)}setLinkPreviewsDisabled($){let Q=z.wasmwhatsappclient_setLinkPreviewsDisabled(this.__wbg_ptr,$);return D(Q)}setPushName($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_setPushName(this.__wbg_ptr,Q,Z);return D(J)}setQuickReply($,Q,Z,J,X){let q=L($,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=L(Z,z.__wbindgen_export,z.__wbindgen_export2),A=U,E=s(J,z.__wbindgen_export),h=U,y=z.wasmwhatsappclient_setQuickReply(this.__wbg_ptr,q,K,V,C,F,A,E,h,X);return D(y)}setRawNodeForwarding($){z.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}setUserStatusMute($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_setUserStatusMute(this.__wbg_ptr,Z,J,Q);return D(X)}signalDecryptGroupMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=j(Z,z.__wbindgen_export),C=U,F=z.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}signalDecryptMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=j(Z,z.__wbindgen_export),C=U,F=z.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}signalDeleteSenderKey($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,Z,J,X,q);return D(K)}signalDeleteSessions($){let Q=s($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,Q,Z);return D(J)}signalEncryptGroupMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=j(Q,z.__wbindgen_export),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}signalEncryptMessage($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=j(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,Z,J,X,q);return D(K)}signalGetSenderKeyDistribution($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,Z,J,X,q);return D(K)}signalGetSessionInfo($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,Q,Z);return D(J)}signalHasSenderKey($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,Z,J,X,q);return D(K)}signalInstallPreKeyBundle($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,Z,J,N(Q));return D(X)}signalMigrateSessions($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,Z,J,X,q);return D(K)}signalProcessSenderKeyDistribution($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=j(Z,z.__wbindgen_export),C=U,F=z.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}signalValidateSession($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,Q,Z);return D(J)}starMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=z.wasmwhatsappclient_starMessage(this.__wbg_ptr,J,X,q,K,Z);return D(V)}unlinkCommunitySubgroups($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,J,X,q,K,Z);return D(V)}updateBlockStatus($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,Z,J,N(Q));return D(X)}updateBusinessProfile($){let Q=z.wasmwhatsappclient_updateBusinessProfile(this.__wbg_ptr,N($));return D(Q)}updateDefaultDisappearingMode($){let Q=z.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return D(Q)}updateMemberLabel($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,Z,J,X,q);return D(K)}updatePrivacySetting($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,Z,J,X,q);return D(K)}updateProfilePicture($){let Q=j($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,Q,Z);return D(J)}updateProfileStatus($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,Q,Z);return D(J)}uploadEncryptedMediaStream($,Q,Z,J,X,q){let K=j(Q,z.__wbindgen_export),V=U,C=j(Z,z.__wbindgen_export),F=U,A=j(J,z.__wbindgen_export),E=U,h=z.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,N($),K,V,C,F,A,E,X,N(q));return D(h)}uploadMedia($,Q){let Z=j($,z.__wbindgen_export),J=U,X=z.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,Z,J,N(Q));return D(X)}validateKeyBundle(){let $=z.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return D($)}votePoll($,Q,Z,J,X){let q=L($,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=L(Z,z.__wbindgen_export,z.__wbindgen_export2),A=U,E=j(J,z.__wbindgen_export),h=U,y=s(X,z.__wbindgen_export),I=U,w=z.wasmwhatsappclient_votePoll(this.__wbg_ptr,q,K,V,C,F,A,E,h,y,I);return D(w)}waitForConnected($){let Q=z.wasmwhatsappclient_waitForConnected(this.__wbg_ptr,$);return D(Q)}waitForRunCompletion(){let $=z.wasmwhatsappclient_waitForRunCompletion(this.__wbg_ptr);return D($)}waitForSocket($){let Q=z.wasmwhatsappclient_waitForSocket(this.__wbg_ptr,$);return D(Q)}waitUntilReachable(){let $=z.wasmwhatsappclient_waitUntilReachable(this.__wbg_ptr);return D($)}withdrawParkedCalls(){return z.wasmwhatsappclient_withdrawParkedCalls(this.__wbg_ptr)>>>0}}if(Symbol.dispose)z0.prototype[Symbol.dispose]=z0.prototype.free;function lM(){z.beginWasmAllocationProfile()}function pM($,Q){try{let q=z.__wbindgen_add_to_stack_pointer(-16),K=j($,z.__wbindgen_export),V=U,C=j(Q,z.__wbindgen_export),F=U;z.calculateAgreement(q,K,V,C,F);var Z=T().getInt32(q+0,!0),J=T().getInt32(q+4,!0),X=T().getInt32(q+8,!0);if(X)throw D(J);return D(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function uM($,Q){try{let q=z.__wbindgen_add_to_stack_pointer(-16),K=j($,z.__wbindgen_export),V=U,C=j(Q,z.__wbindgen_export),F=U;z.calculateSignature(q,K,V,C,F);var Z=T().getInt32(q+0,!0),J=T().getInt32(q+4,!0),X=T().getInt32(q+8,!0);if(X)throw D(J);return D(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function hV($,Q,Z,J,X,q,K,V){let C=z.createWhatsAppClient(N($),N(Q),c(Z)?0:N(Z),c(J)?0:N(J),c(X)?0:N(X),c(q)?0:N(q),c(K)?0:N(K),c(V)?0:N(V));return D(C)}function wM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),q=j($,z.__wbindgen_export),K=U;z.decodeSenderKeyRecordComponents(X,q,K);var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function jM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),q=j($,z.__wbindgen_export),K=U;z.decodeSessionRecordComponents(X,q,K);var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function cM($,Q,Z,J,X,q){try{let F=z.__wbindgen_add_to_stack_pointer(-16),A=j($,z.__wbindgen_export),E=U,h=j(Q,z.__wbindgen_export),y=U,I=j(Z,z.__wbindgen_export),w=U,M=L(J,z.__wbindgen_export,z.__wbindgen_export2),D$=U,Z$=L(X,z.__wbindgen_export,z.__wbindgen_export2),f=U,X$=L(q,z.__wbindgen_export,z.__wbindgen_export2),m=U;z.decryptEventResponsePayload(F,A,E,h,y,I,w,M,D$,Z$,f,X$,m);var K=T().getInt32(F+0,!0),V=T().getInt32(F+4,!0),C=T().getInt32(F+8,!0);if(C)throw D(V);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function dM($,Q,Z,J,X,q,K){try{let h=z.__wbindgen_add_to_stack_pointer(-16),y=j($,z.__wbindgen_export),I=U,w=j(Q,z.__wbindgen_export),M=U,D$=j(Z,z.__wbindgen_export),Z$=U,f=L(J,z.__wbindgen_export,z.__wbindgen_export2),X$=U,m=L(X,z.__wbindgen_export,z.__wbindgen_export2),u=U,ZV=L(q,z.__wbindgen_export,z.__wbindgen_export2),J0=U,K0=s(K,z.__wbindgen_export),E5=U;z.decryptPollVote(h,y,I,w,M,D$,Z$,f,X$,m,u,ZV,J0,K0,E5);var V=T().getInt32(h+0,!0),C=T().getInt32(h+4,!0),F=T().getInt32(h+8,!0),A=T().getInt32(h+12,!0);if(A)throw D(F);var E=_$(V,C).slice();return z.__wbindgen_export4(V,C*4,4),E}finally{z.__wbindgen_add_to_stack_pointer(16)}}function nM($,Q,Z,J,X,q){try{let F=z.__wbindgen_add_to_stack_pointer(-16),A=j($,z.__wbindgen_export),E=U,h=j(Q,z.__wbindgen_export),y=U,I=j(Z,z.__wbindgen_export),w=U,M=L(J,z.__wbindgen_export,z.__wbindgen_export2),D$=U,Z$=L(X,z.__wbindgen_export,z.__wbindgen_export2),f=U,X$=L(q,z.__wbindgen_export,z.__wbindgen_export2),m=U;z.decryptPollVotePayload(F,A,E,h,y,I,w,M,D$,Z$,f,X$,m);var K=T().getInt32(F+0,!0),V=T().getInt32(F+4,!0),C=T().getInt32(F+8,!0);if(C)throw D(V);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function bM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSenderKeyRecordComponents(X,N($));var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function oM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSessionRecordComponents(X,N($));var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function iM(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.generateKeyPair(J);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function mM(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.getEnabledFeatures(J);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function gM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),q=j($,z.__wbindgen_export),K=U;z.getPublicFromPrivateKey(X,q,K);var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function rM(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.getWasmAllocationSnapshot(J);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function tM(){return z.getWasmMemoryBytes()}function aM(){return z.hasLogger()!==0}function sM($,Q,Z){try{let K=z.__wbindgen_add_to_stack_pointer(-16),V=j($,z.__wbindgen_export),C=U;z.hkdf(K,V,C,Q,N(Z));var J=T().getInt32(K+0,!0),X=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw D(X);return D(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function eM($,Q){try{let q=z.__wbindgen_add_to_stack_pointer(-16);z.importLegacySessionRecordV1(q,N($),N(Q));var Z=T().getInt32(q+0,!0),J=T().getInt32(q+4,!0),X=T().getInt32(q+8,!0);if(X)throw D(J);return D(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function $W($,Q){try{let q=z.__wbindgen_add_to_stack_pointer(-16),K=j($,z.__wbindgen_export),V=U;z.inflateZlib(q,K,V,!c(Q),c(Q)?0:Q);var Z=T().getInt32(q+0,!0),J=T().getInt32(q+4,!0),X=T().getInt32(q+8,!0);if(X)throw D(J);return D(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function lV($,Q){z.initWasmEngine(N($),N(Q))}function QW($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;z.logMessage(Z,J,X,q)}function JW($){let Q=j($,z.__wbindgen_export),Z=U,J=z.md5(Q,Z);return D(J)}function KW($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),q=j($,z.__wbindgen_export),K=U;z.projectLegacySessionRecordV1(X,q,K);var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function qW($){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.setLogger(J,N($));var Q=T().getInt32(J+0,!0),Z=T().getInt32(J+4,!0);if(Z)throw D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function ZW($){z.updateLogger(N($))}function XW($,Q,Z){try{let K=z.__wbindgen_add_to_stack_pointer(-16),V=j($,z.__wbindgen_export),C=U,F=j(Q,z.__wbindgen_export),A=U,E=j(Z,z.__wbindgen_export),h=U;z.verifySignature(K,V,C,F,A,E,h);var J=T().getInt32(K+0,!0),X=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw D(X);return J!==0}finally{z.__wbindgen_add_to_stack_pointer(16)}}function U2(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(Q,Z){let J=Error(F$(Q,Z));return N(J)},__wbg_Number_9a4e0ecb0fa16705:function(Q){return Number(x(Q))},__wbg_String_8564e559799eccda:function(Q,Z){let J=String(x(Z)),X=L(J,z.__wbindgen_export,z.__wbindgen_export2),q=U;T().setInt32(Q+4,q,!0),T().setInt32(Q+0,X,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(Q,Z){let J=x(Z),X=typeof J==="bigint"?J:void 0;T().setBigInt64(Q+8,c(X)?BigInt(0):X,!0),T().setInt32(Q+0,!c(X),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(Q){let Z=x(Q),J=typeof Z==="boolean"?Z:void 0;return c(J)?16777215:J?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(Q,Z){let J=HV(x(Z)),X=L(J,z.__wbindgen_export,z.__wbindgen_export2),q=U;T().setInt32(Q+4,q,!0),T().setInt32(Q+0,X,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(Q,Z){return x(Q)in x(Z)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(Q){return typeof x(Q)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(Q){return typeof x(Q)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(Q){return x(Q)===null},__wbg___wbindgen_is_object_a27215656b807791:function(Q){let Z=x(Q);return typeof Z==="object"&&Z!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(Q){return typeof x(Q)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(Q){return x(Q)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(Q,Z){return x(Q)===x(Z)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(Q,Z){return x(Q)==x(Z)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(Q,Z){let J=x(Z),X=typeof J==="number"?J:void 0;T().setFloat64(Q+8,c(X)?0:X,!0),T().setInt32(Q+0,!c(X),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(Q,Z){let J=x(Z),X=typeof J==="string"?J:void 0;var q=c(X)?0:L(X,z.__wbindgen_export,z.__wbindgen_export2),K=U;T().setInt32(Q+4,K,!0),T().setInt32(Q+0,q,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(Q,Z){throw Error(F$(Q,Z))},__wbg__wbg_cb_unref_fffb441def202758:function(Q){x(Q)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return J$(function(Q,Z,J){let X=x(Q).apply(x(Z),x(J));return N(X)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(Q,Z,J,X){let q=x(Q).bind(x(Z),x(J),x(X));return N(q)},__wbg_buffer_54b87055582c8a81:function(Q){let Z=x(Q).buffer;return N(Z)},__wbg_byobRequest_06b654bb15590436:function(Q){let Z=x(Q).byobRequest;return c(Z)?0:N(Z)},__wbg_byteLength_41862ca4020b9c43:function(Q){return x(Q).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(Q){return x(Q).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return J$(function(Q,Z,J,X,q){let K=x(Q).call(x(Z),x(J),x(X),x(q));return N(K)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return J$(function(Q,Z){let J=x(Q).call(x(Z));return N(J)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return J$(function(Q,Z,J){let X=x(Q).call(x(Z),x(J));return N(X)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return J$(function(Q,Z,J,X,q,K){let V=x(Q).call(x(Z),x(J),x(X),x(q),x(K));return N(V)},arguments)},__wbg_call_e3b662382210db98:function(){return J$(function(Q,Z,J,X){let q=x(Q).call(x(Z),x(J),x(X));return N(q)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(Q){let Z=x(Q).cancel();return N(Z)},__wbg_catch_c1a60df4c30d76d3:function(Q,Z){let J=x(Q).catch(x(Z));return N(J)},__wbg_close_1e6096d41f7ce5d0:function(Q){let Z=x(Q).close();return N(Z)},__wbg_close_249a23304523681b:function(){return J$(function(Q){x(Q).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return J$(function(Q){x(Q).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(Q,Z,J,X){x(Q).debug(x(Z),J===0?void 0:F$(J,X))},__wbg_debug_cf53e2612c84e4ee:function(Q,Z,J,X){console.debug(x(Q),x(Z),x(J),x(X))},__wbg_done_89b2b13e91a60321:function(Q){return x(Q).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return J$(function(Q,Z){x(Q).enqueue(x(Z))},arguments)},__wbg_entries_015dc610cd81ede0:function(Q){let Z=Object.entries(x(Q));return N(Z)},__wbg_error_657700d53a73881f:function(Q,Z,J,X){console.error(x(Q),x(Z),x(J),x(X))},__wbg_error_9cce413345f88385:function(Q,Z,J,X){x(Q).error(x(Z),J===0?void 0:F$(J,X))},__wbg_error_a6fa202b58aa1cd3:function(Q,Z){let J,X;try{J=Q,X=Z,console.error(F$(Q,Z))}finally{z.__wbindgen_export4(J,X,1)}},__wbg_from_13e323c65fc8f464:function(Q){let Z=Array.from(x(Q));return N(Z)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return J$(function(Q,Z){globalThis.crypto.getRandomValues(rQ(Q,Z))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return J$(function(Q){let Z=x(Q).getReader();return N(Z)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return J$(function(Q){let Z=x(Q).getWriter();return N(Z)},arguments)},__wbg_get_507a50627bffa49b:function(Q,Z){let J=x(Q)[Z>>>0];return N(J)},__wbg_get_78f252d074a84d0b:function(){return J$(function(Q,Z){let J=Reflect.get(x(Q),x(Z));return N(J)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return J$(function(Q,Z){let J=Reflect.get(x(Q),x(Z));return N(J)},arguments)},__wbg_get_done_670108eb06ecbe46:function(Q){let Z=x(Q).done;return c(Z)?16777215:Z?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(Q,Z){let J=x(Q)[Z>>>0];return N(J)},__wbg_get_value_f465f5be30aa0963:function(Q){let Z=x(Q).value;return N(Z)},__wbg_get_with_ref_key_6412cf3094599694:function(Q,Z){let J=x(Q)[x(Z)];return N(J)},__wbg_info_79f5309d69d9c70e:function(Q,Z,J,X){console.info(x(Q),x(Z),x(J),x(X))},__wbg_info_b728e87a346ff6a2:function(Q,Z,J,X){x(Q).info(x(Z),J===0?void 0:F$(J,X))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(Q){let Z;try{Z=x(Q)instanceof ArrayBuffer}catch(X){Z=!1}return Z},__wbg_instanceof_Array_de0fa65266a8c7c0:function(Q){let Z;try{Z=x(Q)instanceof Array}catch(X){Z=!1}return Z},__wbg_instanceof_Error_1fdac9f13a8181ba:function(Q){let Z;try{Z=x(Q)instanceof Error}catch(X){Z=!1}return Z},__wbg_instanceof_Map_e5b5e3db98422fcc:function(Q){let Z;try{Z=x(Q)instanceof Map}catch(X){Z=!1}return Z},__wbg_instanceof_Object_33f20e6f12439f3e:function(Q){let Z;try{Z=x(Q)instanceof Object}catch(X){Z=!1}return Z},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(Q){let Z;try{Z=x(Q)instanceof Promise}catch(X){Z=!1}return Z},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(Q){let Z;try{Z=x(Q)instanceof Uint8Array}catch(X){Z=!1}return Z},__wbg_isArray_0677c962b281d01a:function(Q){return Array.isArray(x(Q))},__wbg_isSafeInteger_04f36e4056f1b851:function(Q){return Number.isSafeInteger(x(Q))},__wbg_iterator_6f722e4a93058b71:function(){return N(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(Q){let Z=Object.keys(x(Q));return N(Z)},__wbg_length_1f0964f4a5e2c6d8:function(Q){return x(Q).length},__wbg_length_370319915dc99107:function(Q){return x(Q).length},__wbg_level_4b50b181832c5acf:function(Q,Z){let J=x(Z).level,X=L(J,z.__wbindgen_export,z.__wbindgen_export2),q=U;T().setInt32(Q+4,q,!0),T().setInt32(Q+0,X,!0)},__wbg_log_a45418e25b210a4c:function(Q,Z,J,X){console.log(x(Q),x(Z),x(J),x(X))},__wbg_message_8326fb1d549bebc5:function(Q){let Z=x(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 J=Error(F$(Q,Z));return N(J)},__wbg_new_cd45aabdf6073e84:function(Q){let Z=new Uint8Array(x(Q));return N(Z)},__wbg_new_da52cf8fe3429cb2:function(){return N({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(Q,Z){let J=new Uint32Array(R2(Q,Z));return N(J)},__wbg_new_from_slice_77cdfb7977362f3c:function(Q,Z){let J=new Uint8Array(rQ(Q,Z));return N(J)},__wbg_new_typed_1824d93f294193e5:function(Q,Z){try{var J={a:Q,b:Z},X=(K,V)=>{let C=J.a;J.a=0;try{return P2(C,J.b,K,V)}finally{J.a=C}};let q=new Promise(X);return N(q)}finally{J.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(Q,Z,J){let X=new Uint8Array(x(Q),Z>>>0,J>>>0);return N(X)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(Q,Z){let J=new ReadableStream(H0.__wrap(Q),D(Z));return N(J)},__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=x(Q).next;return N(Z)},__wbg_next_71f2aa1cb3d1e37e:function(){return J$(function(Q){let Z=x(Q).next();return N(Z)},arguments)},__wbg_now_44881ed1d5dba857:function(){return J$(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,J,X){let q=Array.of(x(Q),x(Z),x(J),x(X));return N(q)},__wbg_prototypesetcall_2592ffff58ff115d:function(Q,Z,J){Uint8Array.prototype.set.call(rQ(Q,Z),x(J))},__wbg_prototypesetcall_4770620bbe4688a0:function(Q,Z,J){Uint8Array.prototype.set.call(rQ(Q,Z),x(J))},__wbg_push_d2ae3af0c1217ae6:function(Q,Z){return x(Q).push(x(Z))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(Q){let Z=x(Q).queueMicrotask;return N(Z)},__wbg_queueMicrotask_6a09b7bc46549209:function(Q){queueMicrotask(x(Q))},__wbg_read_8afa15f12a160ef8:function(Q){let Z=x(Q).read();return N(Z)},__wbg_ready_68b537848a5c627a:function(Q){let Z=x(Q).ready;return N(Z)},__wbg_releaseLock_33c25ace78b2d4c6:function(Q){x(Q).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(Q){x(Q).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(Q){let Z=Promise.resolve(x(Q));return N(Z)},__wbg_respond_510e32df8aeb6817:function(){return J$(function(Q,Z){x(Q).respond(Z>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(Q,Z,J){x(Q).set(rQ(Z,J))},__wbg_set_575dd786d51585f8:function(Q,Z,J){let X=x(Q).set(x(Z),x(J));return N(X)},__wbg_set_6be42768c690e380:function(Q,Z,J){x(Q)[D(Z)]=D(J)},__wbg_set_8535240470bf2500:function(){return J$(function(Q,Z,J){return Reflect.set(x(Q),x(Z),x(J))},arguments)},__wbg_set_8a16b38e4805b298:function(Q,Z,J){x(Q)[Z>>>0]=D(J)},__wbg_set_high_water_mark_44d043cd607dd13a:function(Q,Z){x(Q).highWaterMark=Z},__wbg_set_name_3bbc583faefa4193:function(Q,Z,J){x(Q).name=F$(Z,J)},__wbg_stack_3b0d974bbf31e44f:function(Q,Z){let J=x(Z).stack,X=L(J,z.__wbindgen_export,z.__wbindgen_export2),q=U;T().setInt32(Q+4,q,!0),T().setInt32(Q+0,X,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let Q=typeof global>"u"?null:global;return c(Q)?0:N(Q)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let Q=typeof globalThis>"u"?null:globalThis;return c(Q)?0:N(Q)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let Q=typeof self>"u"?null:self;return c(Q)?0:N(Q)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let Q=typeof window>"u"?null:window;return c(Q)?0:N(Q)},__wbg_subarray_3ed232c8a6baee09:function(Q,Z,J){let X=x(Q).subarray(Z>>>0,J>>>0);return N(X)},__wbg_then_16d107c451e9905d:function(Q,Z,J){let X=x(Q).then(x(Z),x(J));return N(X)},__wbg_then_6ec10ae38b3e92f7:function(Q,Z){let J=x(Q).then(x(Z));return N(J)},__wbg_trace_58264fbce2ceb5e6:function(Q,Z,J,X){x(Q).trace(x(Z),J===0?void 0:F$(J,X))},__wbg_value_a5d5488a9589444a:function(Q){let Z=x(Q).value;return N(Z)},__wbg_view_21f1d4a4f175dfa9:function(Q){let Z=x(Q).view;return c(Z)?0:N(Z)},__wbg_warn_77c4eb4a21e10a21:function(Q,Z,J,X){console.warn(x(Q),x(Z),x(J),x(X))},__wbg_warn_db531770752932a9:function(Q,Z,J,X){x(Q).warn(x(Z),J===0?void 0:F$(J,X))},__wbg_wasmwhatsappclient_new:function(Q){let Z=z0.__wrap(Q);return N(Z)},__wbg_write_f6dc0059c3feedce:function(Q,Z){let J=x(Q).write(x(Z));return N(J)},__wbindgen_cast_0000000000000001:function(Q,Z){let J=q0(Q,Z,D2);return N(J)},__wbindgen_cast_0000000000000002:function(Q,Z){let J=q0(Q,Z,L2);return N(J)},__wbindgen_cast_0000000000000003:function(Q,Z){let J=q0(Q,Z,k2);return N(J)},__wbindgen_cast_0000000000000004:function(Q,Z){let J=q0(Q,Z,F2);return N(J)},__wbindgen_cast_0000000000000005:function(Q,Z){let J=q0(Q,Z,C2);return N(J)},__wbindgen_cast_0000000000000006:function(Q){return N(Q)},__wbindgen_cast_0000000000000007:function(Q){return N(Q)},__wbindgen_cast_0000000000000008:function(Q,Z){let J=rQ(Q,Z);return N(J)},__wbindgen_cast_0000000000000009:function(Q,Z){let J=F$(Q,Z);return N(J)},__wbindgen_cast_000000000000000a:function(Q){let Z=BigInt.asUintN(64,Q);return N(Z)},__wbindgen_cast_000000000000000b:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_000000000000000c:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_000000000000000d:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_000000000000000e:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_000000000000000f:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_0000000000000010:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_0000000000000011:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_0000000000000012:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_0000000000000013:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_object_clone_ref:function(Q){let Z=x(Q);return N(Z)},__wbindgen_object_drop_ref:function(Q){D(Q)}}}}function C2($,Q){z.__wasm_bindgen_func_elem_4638($,Q)}function D2($,Q,Z){z.__wasm_bindgen_func_elem_9820($,Q,N(Z))}function F2($,Q,Z){z.__wasm_bindgen_func_elem_4639($,Q,N(Z))}function L2($,Q,Z){try{let q=z.__wbindgen_add_to_stack_pointer(-16);z.__wasm_bindgen_func_elem_28069(q,$,Q,N(Z));var J=T().getInt32(q+0,!0),X=T().getInt32(q+4,!0);if(X)throw D(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function P2($,Q,Z,J){z.__wasm_bindgen_func_elem_28071($,Q,N(Z),N(J))}function k2($,Q,Z){z.__wasm_bindgen_func_elem_4640($,Q,Z)}var x2=["bytes"],B2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingbytesource_free($,1)),N2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsink_free($,1)),vV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsource_free($,1)),fV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_wasmwhatsappclient_free($,1));function N($){if(Y0===d$.length)d$.push(d$.length+1);let Q=Y0;return Y0=d$[Q],d$[Q]=$,Q}var _V=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbindgen_export5($.a,$.b));function HV($){let Q=typeof $;if(Q=="number"||Q=="boolean"||$==null)return`${$}`;if(Q=="string")return`"${$}"`;if(Q=="symbol"){let X=$.description;if(X==null)return"Symbol";else return`Symbol(${X})`}if(Q=="function"){let X=$.name;if(typeof X=="string"&&X.length>0)return`Function(${X})`;else return"Function"}if(Array.isArray($)){let X=$.length,q="[";if(X>0)q+=HV($[0]);for(let K=1;K<X;K++)q+=", "+HV($[K]);return q+="]",q}let Z=/\[object ([^\]]+)\]/.exec(toString.call($)),J;if(Z&&Z.length>1)J=Z[1];else return toString.call($);if(J=="Object")try{return"Object("+JSON.stringify($)+")"}catch(X){return"Object"}if($ instanceof Error)return`${$.name}: ${$.message}
1
+ var V2=Object.defineProperty;var H2=($)=>$;function z2($,Q){this[$]=H2.bind(null,Q)}var G2=($,Q)=>{for(var Z in Q)V2($,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:z2.bind(Q,Z)})};import{readFileSync as vM}from"node:fs";class YV{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,B2.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return z.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();z.intounderlyingbytesource_cancel($)}pull($){let Q=z.intounderlyingbytesource_pull(this.__wbg_ptr,N($));return D(Q)}start($){z.intounderlyingbytesource_start(this.__wbg_ptr,N($))}get type(){let $=z.intounderlyingbytesource_type(this.__wbg_ptr);return x2[$]}}if(Symbol.dispose)YV.prototype[Symbol.dispose]=YV.prototype.free;class VV{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,N2.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsink_free($,0)}abort($){let Q=this.__destroy_into_raw(),Z=z.intounderlyingsink_abort(Q,N($));return D(Z)}close(){let $=this.__destroy_into_raw(),Q=z.intounderlyingsink_close($);return D(Q)}write($){let Q=z.intounderlyingsink_write(this.__wbg_ptr,N($));return D(Q)}}if(Symbol.dispose)VV.prototype[Symbol.dispose]=VV.prototype.free;class H0{static __wrap($){let Q=Object.create(H0.prototype);return Q.__wbg_ptr=$,vV.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,vV.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();z.intounderlyingsource_cancel($)}pull($){let Q=z.intounderlyingsource_pull(this.__wbg_ptr,N($));return D(Q)}}if(Symbol.dispose)H0.prototype[Symbol.dispose]=H0.prototype.free;class z0{static __wrap($){let Q=Object.create(z0.prototype);return Q.__wbg_ptr=$,fV.register(Q,Q.__wbg_ptr,Q),Q}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,fV.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let Q=z.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,N($));return D(Q)}addChatLabel($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_addChatLabel(this.__wbg_ptr,Z,J,X,q);return D(K)}addLidPnMappings($){let Q=z.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,N($));return D(Q)}addMessageLabel($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_addMessageLabel(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}archiveChat($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_archiveChat(this.__wbg_ptr,Z,J,Q);return D(X)}assertSessions($,Q){let Z=s($,z.__wbindgen_export),J=U,X=z.wasmwhatsappclient_assertSessions(this.__wbg_ptr,Z,J,Q);return D(X)}cleanDirtyBits($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_cleanDirtyBits(this.__wbg_ptr,Z,J,!c(Q),c(Q)?0:Q);return D(X)}clearChat($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=z.wasmwhatsappclient_clearChat(this.__wbg_ptr,J,X,Q,Z);return D(q)}communityFetchAllParticipating(){let $=z.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return D($)}communityParticipantsUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}connect(){let $=z.wasmwhatsappclient_connect(this.__wbg_ptr);return D($)}createCommunity($,Q,Z,J,X){let q=L($,z.__wbindgen_export,z.__wbindgen_export2),K=U;var V=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_createCommunity(this.__wbg_ptr,q,K,V,C,Z,J,X);return D(F)}createCommunitySubgroup($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}createGroup($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=s(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_createGroup(this.__wbg_ptr,Z,J,X,q);return D(K)}createLabel($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=z.wasmwhatsappclient_createLabel(this.__wbg_ptr,J,X,q,K,Z);return D(V)}createParticipantNodesBytes($,Q,Z){let J=s($,z.__wbindgen_export),X=U,q=j(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}createPoll($,Q,Z,J){let X=L($,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=L(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=s(Z,z.__wbindgen_export),F=U,A=z.wasmwhatsappclient_createPoll(this.__wbg_ptr,X,q,K,V,C,F,J);return D(A)}deactivateCommunity($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,Q,Z);return D(J)}deleteChat($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_deleteChat(this.__wbg_ptr,Q,Z);return D(J)}deleteLabel($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_deleteLabel(this.__wbg_ptr,Q,Z);return D(J)}deleteMessageForMe($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=z.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,J,X,q,K,Z);return D(V)}deleteQuickReply($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_deleteQuickReply(this.__wbg_ptr,Q,Z);return D(J)}disconnect(){let $=z.wasmwhatsappclient_disconnect(this.__wbg_ptr);return D($)}downloadMedia($,Q,Z,J,X,q){let K=L($,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=j(Q,z.__wbindgen_export),F=U,A=j(Z,z.__wbindgen_export),E=U,h=j(J,z.__wbindgen_export),y=U,I=z.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,K,V,C,F,A,E,h,y,X,N(q));return D(I)}downloadMediaStream($,Q,Z,J,X,q){try{let F=z.__wbindgen_add_to_stack_pointer(-16),A=L($,z.__wbindgen_export,z.__wbindgen_export2),E=U,h=j(Q,z.__wbindgen_export),y=U,I=j(Z,z.__wbindgen_export),w=U,M=j(J,z.__wbindgen_export),D$=U;z.wasmwhatsappclient_downloadMediaStream(F,this.__wbg_ptr,A,E,h,y,I,w,M,D$,X,N(q));var K=T().getInt32(F+0,!0),V=T().getInt32(F+4,!0),C=T().getInt32(F+8,!0);if(C)throw D(V);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,Q,Z,J){let X=L($,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=L(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=j(Z,z.__wbindgen_export),F=U;var A=c(J)?0:L(J,z.__wbindgen_export,z.__wbindgen_export2),E=U;let h=z.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,X,q,K,V,C,F,A,E);return D(h)}encryptMediaStream($,Q,Z){let J=z.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,N($),N(Q),N(Z));return D(J)}ensurePreKeys(){let $=z.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return D($)}fetchBlocklist(){let $=z.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return D($)}fetchMessageHistory($,Q,Z,J,X){let q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,q,K,V,C,J,X);return D(F)}fetchNewChatMessageCappingInfo(){let $=z.wasmwhatsappclient_fetchNewChatMessageCappingInfo(this.__wbg_ptr);return D($)}fetchPrivacySettings(){let $=z.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return D($)}fetchReachoutTimelock(){let $=z.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return D($)}fetchStatus($){let Q=s($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,Q,Z);return D(J)}fetchUserInfo($){let Q=s($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,Q,Z);return D(J)}findByUsername($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var X=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;let K=z.wasmwhatsappclient_findByUsername(this.__wbg_ptr,Z,J,X,q);return D(K)}getAccount(){let $=z.wasmwhatsappclient_getAccount(this.__wbg_ptr);return D($)}getBotList(){let $=z.wasmwhatsappclient_getBotList(this.__wbg_ptr);return D($)}getBusinessProfile($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,Q,Z);return D(J)}getCatalog($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_getCatalog(this.__wbg_ptr,Z,J,N(Q));return D(X)}getCollections($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_getCollections(this.__wbg_ptr,Z,J,N(Q));return D(X)}getCommunitySubgroups($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,Q,Z);return D(J)}getCoreAllocationSnapshot(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_getCoreAllocationSnapshot(J,this.__wbg_ptr);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}getGroupMetadata($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,Q,Z);return D(J)}getJid(){let $=z.wasmwhatsappclient_getJid(this.__wbg_ptr);return D($)}getLid(){let $=z.wasmwhatsappclient_getLid(this.__wbg_ptr);return D($)}getMediaConn($){let Q=z.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return D(Q)}getMemoryDiagnostics(){let $=z.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return D($)}getOrder($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_getOrder(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}getPushName(){let $=z.wasmwhatsappclient_getPushName(this.__wbg_ptr);return D($)}getUSyncDevices($,Q,Z){let J=s($,z.__wbindgen_export),X=U,q=z.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,J,X,Q,Z);return D(q)}getUsername(){let $=z.wasmwhatsappclient_getUsername(this.__wbg_ptr);return D($)}groupAcceptInvite($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,Q,Z);return D(J)}groupAcceptInviteV4($,Q,Z,J){let X=L($,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=L(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=L(J,z.__wbindgen_export,z.__wbindgen_export2),F=U,A=z.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,X,q,K,V,Z,C,F);return D(A)}groupFetchAllParticipating(){let $=z.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return D($)}groupGetInviteInfo($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,Q,Z);return D(J)}groupInviteCode($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,Q,Z);return D(J)}groupLeave($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupLeave(this.__wbg_ptr,Q,Z);return D(J)}groupMemberAddMode($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,Z,J,N(Q));return D(X)}groupParticipantsUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}groupRequestParticipantsList($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,Q,Z);return D(J)}groupRequestParticipantsUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}groupRevokeInvite($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,Q,Z);return D(J)}groupRevokeInviteV4($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,Z,J,X,q);return D(K)}groupSettingUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=z.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,J,X,N(Q),Z);return D(q)}groupToggleEphemeral($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,Z,J,Q);return D(X)}groupUpdateDescription($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var X=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;let K=z.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,Z,J,X,q);return D(K)}groupUpdateSubject($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,Z,J,X,q);return D(K)}isConnected(){return z.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return z.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let Q=s($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,Q,Z);return D(J)}jidToSignalProtocolAddress($){let Q,Z;try{let F=z.__wbindgen_add_to_stack_pointer(-16),A=L($,z.__wbindgen_export,z.__wbindgen_export2),E=U;z.wasmwhatsappclient_jidToSignalProtocolAddress(F,this.__wbg_ptr,A,E);var J=T().getInt32(F+0,!0),X=T().getInt32(F+4,!0),q=T().getInt32(F+8,!0),K=T().getInt32(F+12,!0),V=J,C=X;if(K)throw V=0,C=0,D(q);return Q=V,Z=C,F$(V,C)}finally{z.__wbindgen_add_to_stack_pointer(16),z.__wbindgen_export4(Q,Z,1)}}lidForPn($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_lidForPn(this.__wbg_ptr,Q,Z);return D(J)}linkCommunitySubgroups($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=s(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,Z,J,X,q);return D(K)}logout(){let $=z.wasmwhatsappclient_logout(this.__wbg_ptr);return D($)}markChatAsRead($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,Z,J,Q);return D(X)}markPlayed($){let Q=z.wasmwhatsappclient_markPlayed(this.__wbg_ptr,N($));return D(Q)}muteChat($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_muteChat(this.__wbg_ptr,Z,J,!c(Q),c(Q)?0:Q);return D(X)}newsletterAdminInfo($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterAdminInfo(this.__wbg_ptr,Q,Z);return D(J)}newsletterAdminMute($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_newsletterAdminMute(this.__wbg_ptr,Z,J,Q);return D(X)}newsletterChangeOwner($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_newsletterChangeOwner(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterCreate($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var X=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;let K=z.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterDelete($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterDelete(this.__wbg_ptr,Q,Z);return D(J)}newsletterDemoteAdmin($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_newsletterDemoteAdmin(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterEditMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=j(Z,z.__wbindgen_export),C=U,F=z.wasmwhatsappclient_newsletterEditMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}newsletterFollowerMute($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_newsletterFollowerMute(this.__wbg_ptr,Z,J,Q);return D(X)}newsletterFollowers($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_newsletterFollowers(this.__wbg_ptr,Z,J,Q);return D(X)}newsletterList(){let $=z.wasmwhatsappclient_newsletterList(this.__wbg_ptr);return D($)}newsletterMessages($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var q=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;let V=z.wasmwhatsappclient_newsletterMessages(this.__wbg_ptr,J,X,Q,q,K);return D(V)}newsletterMetadata($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,Q,Z);return D(J)}newsletterMetadataByInvite($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterMetadataByInvite(this.__wbg_ptr,Q,Z);return D(J)}newsletterMute($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,Z,J,Q);return D(X)}newsletterReactMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;var V=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}newsletterRemovePicture($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterRemovePicture(this.__wbg_ptr,Q,Z);return D(J)}newsletterRevokeMessage($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_newsletterRevokeMessage(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterSetPicture($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=j(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_newsletterSetPicture(this.__wbg_ptr,Z,J,X,q);return D(K)}newsletterSubscribe($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,Q,Z);return D(J)}newsletterSubscribeLiveUpdates($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterSubscribeLiveUpdates(this.__wbg_ptr,Q,Z);return D(J)}newsletterUnsubscribe($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,Q,Z);return D(J)}newsletterUpdate($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var q=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_newsletterUpdate(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}pinChat($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_pinChat(this.__wbg_ptr,Z,J,Q);return D(X)}pnForLid($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_pnForLid(this.__wbg_ptr,Q,Z);return D(J)}presenceSubscribe($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,Q,Z);return D(J)}profilePictureUrl($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=z.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,J,X,N(Q),!c(Z),c(Z)?0:Z);return D(q)}queryNode($,Q){let Z=z.wasmwhatsappclient_queryNode(this.__wbg_ptr,N($),!c(Q),c(Q)?0:Q);return D(Z)}queryUsync($){let Q=z.wasmwhatsappclient_queryUsync(this.__wbg_ptr,N($));return D(Q)}reachability(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_reachability(J,this.__wbg_ptr);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}readMessages($){let Q=z.wasmwhatsappclient_readMessages(this.__wbg_ptr,N($));return D(Q)}reconnect(){let $=z.wasmwhatsappclient_reconnect(this.__wbg_ptr);return D($)}refreshPreKeys($){let Q=z.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,c($)?Number.MAX_SAFE_INTEGER:$>>>0);return D(Q)}rejectCall($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_rejectCall(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}rejectStanza($,Q,Z){let J=z.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,N($),Q,c(Z)?Number.MAX_SAFE_INTEGER:Z>>0);return D(J)}relayMessageBytes($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=j(Q,z.__wbindgen_export),K=U;var V=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}relayMessageBytesWithOptions($,Q,Z,J,X,q){let K=L($,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=j(Q,z.__wbindgen_export),F=U;var A=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),E=U;let h=z.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,K,V,C,F,A,E,N(J),X,q);return D(h)}removeBusinessCoverPhoto($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_removeBusinessCoverPhoto(this.__wbg_ptr,Q,Z);return D(J)}removeChatLabel($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_removeChatLabel(this.__wbg_ptr,Z,J,X,q);return D(K)}removeContact($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_removeContact(this.__wbg_ptr,Q,Z);return D(J)}removeGroupProfilePicture($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,Q,Z);return D(J)}removeMessageLabel($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_removeMessageLabel(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}removeProfilePicture(){let $=z.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return D($)}requestMediaReupload($,Q,Z,J,X){let q=L($,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=j(Z,z.__wbindgen_export),A=U;var E=c(X)?0:L(X,z.__wbindgen_export,z.__wbindgen_export2),h=U;let y=z.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,q,K,V,C,F,A,J,E,h);return D(y)}requestMessageRetry($,Q){let Z=z.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,N($),c(Q)?16777215:Q?1:0);return D(Z)}requestPairingCode($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var X=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;let K=z.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,Z,J,X,q);return D(K)}retransmitMessageBytes($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=j(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,J,X,q,K,N(Z));return D(V)}revokeMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U;var V=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U;let F=z.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}rotateSignedKey(){let $=z.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return D($)}run(){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_run(Z,this.__wbg_ptr);var $=T().getInt32(Z+0,!0),Q=T().getInt32(Z+4,!0);if(Q)throw D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}saveContact($,Q,Z,J){let X=L($,z.__wbindgen_export,z.__wbindgen_export2),q=U;var K=c(Q)?0:L(Q,z.__wbindgen_export,z.__wbindgen_export2),V=U,C=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),F=U;let A=z.wasmwhatsappclient_saveContact(this.__wbg_ptr,X,q,K,V,C,F,J);return D(A)}sendChatState($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_sendChatState(this.__wbg_ptr,Z,J,N(Q));return D(X)}sendCommentBytes($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=j(Z,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,J,X,N(Q),q,K);return D(V)}sendMessageBytes($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=j(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,Z,J,X,q);return D(K)}sendNode($){let Q=z.wasmwhatsappclient_sendNode(this.__wbg_ptr,N($));return D(Q)}sendPresence($){let Q=z.wasmwhatsappclient_sendPresence(this.__wbg_ptr,N($));return D(Q)}sendRawMessage($){let Q=j($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,Q,Z);return D(J)}sendReaction($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var q=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),K=U;let V=z.wasmwhatsappclient_sendReaction(this.__wbg_ptr,J,X,N(Q),q,K);return D(V)}sendStatusMessageBytes($,Q){let Z=j($,z.__wbindgen_export),J=U,X=s(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,Z,J,X,q);return D(K)}sendStatusMessageBytesWithOptions($,Q,Z,J,X){let q=j($,z.__wbindgen_export),K=U,V=s(Q,z.__wbindgen_export),C=U;var F=c(Z)?0:L(Z,z.__wbindgen_export,z.__wbindgen_export2),A=U;let E=z.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,q,K,V,C,F,A,N(J),X);return D(E)}setAutoReconnect($){z.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setBusinessCoverPhoto($){let Q=z.wasmwhatsappclient_setBusinessCoverPhoto(this.__wbg_ptr,N($));return D(Q)}setClientProfile($){let Q=z.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,N($));return D(Q)}setDeviceProps($){let Q=z.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,N($));return D(Q)}setGroupProfilePicture($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=j(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,Z,J,X,q);return D(K)}setInitialPushName($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,Q,Z);return D(J)}setLinkPreviewsDisabled($){let Q=z.wasmwhatsappclient_setLinkPreviewsDisabled(this.__wbg_ptr,$);return D(Q)}setPushName($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_setPushName(this.__wbg_ptr,Q,Z);return D(J)}setQuickReply($,Q,Z,J,X){let q=L($,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=L(Z,z.__wbindgen_export,z.__wbindgen_export2),A=U,E=s(J,z.__wbindgen_export),h=U,y=z.wasmwhatsappclient_setQuickReply(this.__wbg_ptr,q,K,V,C,F,A,E,h,X);return D(y)}setRawNodeForwarding($){z.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}setUserStatusMute($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_setUserStatusMute(this.__wbg_ptr,Z,J,Q);return D(X)}signalDecryptGroupMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=j(Z,z.__wbindgen_export),C=U,F=z.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}signalDecryptMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=j(Z,z.__wbindgen_export),C=U,F=z.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}signalDeleteSenderKey($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,Z,J,X,q);return D(K)}signalDeleteSessions($){let Q=s($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,Q,Z);return D(J)}signalEncryptGroupMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=j(Q,z.__wbindgen_export),K=U,V=L(Z,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=z.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}signalEncryptMessage($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=j(Q,z.__wbindgen_export),q=U,K=z.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,Z,J,X,q);return D(K)}signalGetSenderKeyDistribution($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,Z,J,X,q);return D(K)}signalGetSessionInfo($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,Q,Z);return D(J)}signalHasSenderKey($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,Z,J,X,q);return D(K)}signalInstallPreKeyBundle($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,Z,J,N(Q));return D(X)}signalMigrateSessions($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,Z,J,X,q);return D(K)}signalProcessSenderKeyDistribution($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=j(Z,z.__wbindgen_export),C=U,F=z.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,J,X,q,K,V,C);return D(F)}signalValidateSession($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,Q,Z);return D(J)}starMessage($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=L(Q,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=z.wasmwhatsappclient_starMessage(this.__wbg_ptr,J,X,q,K,Z);return D(V)}unlinkCommunitySubgroups($,Q,Z){let J=L($,z.__wbindgen_export,z.__wbindgen_export2),X=U,q=s(Q,z.__wbindgen_export),K=U,V=z.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,J,X,q,K,Z);return D(V)}updateBlockStatus($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=z.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,Z,J,N(Q));return D(X)}updateBusinessProfile($){let Q=z.wasmwhatsappclient_updateBusinessProfile(this.__wbg_ptr,N($));return D(Q)}updateDefaultDisappearingMode($){let Q=z.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return D(Q)}updateMemberLabel($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,Z,J,X,q);return D(K)}updatePrivacySetting($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U,K=z.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,Z,J,X,q);return D(K)}updateProfilePicture($){let Q=j($,z.__wbindgen_export),Z=U,J=z.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,Q,Z);return D(J)}updateProfileStatus($){let Q=L($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,J=z.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,Q,Z);return D(J)}uploadEncryptedMediaStream($,Q,Z,J,X,q){let K=j(Q,z.__wbindgen_export),V=U,C=j(Z,z.__wbindgen_export),F=U,A=j(J,z.__wbindgen_export),E=U,h=z.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,N($),K,V,C,F,A,E,X,N(q));return D(h)}uploadMedia($,Q){let Z=j($,z.__wbindgen_export),J=U,X=z.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,Z,J,N(Q));return D(X)}validateKeyBundle(){let $=z.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return D($)}votePoll($,Q,Z,J,X){let q=L($,z.__wbindgen_export,z.__wbindgen_export2),K=U,V=L(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U,F=L(Z,z.__wbindgen_export,z.__wbindgen_export2),A=U,E=j(J,z.__wbindgen_export),h=U,y=s(X,z.__wbindgen_export),I=U,w=z.wasmwhatsappclient_votePoll(this.__wbg_ptr,q,K,V,C,F,A,E,h,y,I);return D(w)}waitForConnected($){let Q=z.wasmwhatsappclient_waitForConnected(this.__wbg_ptr,$);return D(Q)}waitForRunCompletion(){let $=z.wasmwhatsappclient_waitForRunCompletion(this.__wbg_ptr);return D($)}waitForSocket($){let Q=z.wasmwhatsappclient_waitForSocket(this.__wbg_ptr,$);return D(Q)}waitUntilReachable(){let $=z.wasmwhatsappclient_waitUntilReachable(this.__wbg_ptr);return D($)}withdrawParkedCalls(){return z.wasmwhatsappclient_withdrawParkedCalls(this.__wbg_ptr)>>>0}}if(Symbol.dispose)z0.prototype[Symbol.dispose]=z0.prototype.free;function lM(){z.beginWasmAllocationProfile()}function pM($,Q){try{let q=z.__wbindgen_add_to_stack_pointer(-16),K=j($,z.__wbindgen_export),V=U,C=j(Q,z.__wbindgen_export),F=U;z.calculateAgreement(q,K,V,C,F);var Z=T().getInt32(q+0,!0),J=T().getInt32(q+4,!0),X=T().getInt32(q+8,!0);if(X)throw D(J);return D(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function uM($,Q){try{let q=z.__wbindgen_add_to_stack_pointer(-16),K=j($,z.__wbindgen_export),V=U,C=j(Q,z.__wbindgen_export),F=U;z.calculateSignature(q,K,V,C,F);var Z=T().getInt32(q+0,!0),J=T().getInt32(q+4,!0),X=T().getInt32(q+8,!0);if(X)throw D(J);return D(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function hV($,Q,Z,J,X,q,K,V){let C=z.createWhatsAppClient(N($),N(Q),c(Z)?0:N(Z),c(J)?0:N(J),c(X)?0:N(X),c(q)?0:N(q),c(K)?0:N(K),c(V)?0:N(V));return D(C)}function wM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),q=j($,z.__wbindgen_export),K=U;z.decodeSenderKeyRecordComponents(X,q,K);var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function jM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),q=j($,z.__wbindgen_export),K=U;z.decodeSessionRecordComponents(X,q,K);var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function cM($,Q,Z,J,X,q){try{let F=z.__wbindgen_add_to_stack_pointer(-16),A=j($,z.__wbindgen_export),E=U,h=j(Q,z.__wbindgen_export),y=U,I=j(Z,z.__wbindgen_export),w=U,M=L(J,z.__wbindgen_export,z.__wbindgen_export2),D$=U,Z$=L(X,z.__wbindgen_export,z.__wbindgen_export2),f=U,X$=L(q,z.__wbindgen_export,z.__wbindgen_export2),m=U;z.decryptEventResponsePayload(F,A,E,h,y,I,w,M,D$,Z$,f,X$,m);var K=T().getInt32(F+0,!0),V=T().getInt32(F+4,!0),C=T().getInt32(F+8,!0);if(C)throw D(V);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function dM($,Q,Z,J,X,q,K){try{let h=z.__wbindgen_add_to_stack_pointer(-16),y=j($,z.__wbindgen_export),I=U,w=j(Q,z.__wbindgen_export),M=U,D$=j(Z,z.__wbindgen_export),Z$=U,f=L(J,z.__wbindgen_export,z.__wbindgen_export2),X$=U,m=L(X,z.__wbindgen_export,z.__wbindgen_export2),u=U,ZV=L(q,z.__wbindgen_export,z.__wbindgen_export2),J0=U,K0=s(K,z.__wbindgen_export),E5=U;z.decryptPollVote(h,y,I,w,M,D$,Z$,f,X$,m,u,ZV,J0,K0,E5);var V=T().getInt32(h+0,!0),C=T().getInt32(h+4,!0),F=T().getInt32(h+8,!0),A=T().getInt32(h+12,!0);if(A)throw D(F);var E=_$(V,C).slice();return z.__wbindgen_export4(V,C*4,4),E}finally{z.__wbindgen_add_to_stack_pointer(16)}}function nM($,Q,Z,J,X,q){try{let F=z.__wbindgen_add_to_stack_pointer(-16),A=j($,z.__wbindgen_export),E=U,h=j(Q,z.__wbindgen_export),y=U,I=j(Z,z.__wbindgen_export),w=U,M=L(J,z.__wbindgen_export,z.__wbindgen_export2),D$=U,Z$=L(X,z.__wbindgen_export,z.__wbindgen_export2),f=U,X$=L(q,z.__wbindgen_export,z.__wbindgen_export2),m=U;z.decryptPollVotePayload(F,A,E,h,y,I,w,M,D$,Z$,f,X$,m);var K=T().getInt32(F+0,!0),V=T().getInt32(F+4,!0),C=T().getInt32(F+8,!0);if(C)throw D(V);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function bM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSenderKeyRecordComponents(X,N($));var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function oM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSessionRecordComponents(X,N($));var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function iM(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.generateKeyPair(J);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function mM(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.getEnabledFeatures(J);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function gM($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),q=j($,z.__wbindgen_export),K=U;z.getPublicFromPrivateKey(X,q,K);var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function rM(){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.getWasmAllocationSnapshot(J);var $=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),Z=T().getInt32(J+8,!0);if(Z)throw D(Q);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function tM(){return z.getWasmMemoryBytes()}function aM(){return z.hasLogger()!==0}function sM($,Q,Z){try{let K=z.__wbindgen_add_to_stack_pointer(-16),V=j($,z.__wbindgen_export),C=U;z.hkdf(K,V,C,Q,N(Z));var J=T().getInt32(K+0,!0),X=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw D(X);return D(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function eM($,Q){try{let q=z.__wbindgen_add_to_stack_pointer(-16);z.importLegacySessionRecordV1(q,N($),N(Q));var Z=T().getInt32(q+0,!0),J=T().getInt32(q+4,!0),X=T().getInt32(q+8,!0);if(X)throw D(J);return D(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function $W($,Q){try{let q=z.__wbindgen_add_to_stack_pointer(-16),K=j($,z.__wbindgen_export),V=U;z.inflateZlib(q,K,V,!c(Q),c(Q)?0:Q);var Z=T().getInt32(q+0,!0),J=T().getInt32(q+4,!0),X=T().getInt32(q+8,!0);if(X)throw D(J);return D(Z)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function lV($,Q){z.initWasmEngine(N($),N(Q))}function QW($,Q){let Z=L($,z.__wbindgen_export,z.__wbindgen_export2),J=U,X=L(Q,z.__wbindgen_export,z.__wbindgen_export2),q=U;z.logMessage(Z,J,X,q)}function JW($){let Q=j($,z.__wbindgen_export),Z=U,J=z.md5(Q,Z);return D(J)}function KW($){try{let X=z.__wbindgen_add_to_stack_pointer(-16),q=j($,z.__wbindgen_export),K=U;z.projectLegacySessionRecordV1(X,q,K);var Q=T().getInt32(X+0,!0),Z=T().getInt32(X+4,!0),J=T().getInt32(X+8,!0);if(J)throw D(Z);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function qW($){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.setLogger(J,N($));var Q=T().getInt32(J+0,!0),Z=T().getInt32(J+4,!0);if(Z)throw D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function ZW($){z.updateLogger(N($))}function XW($,Q,Z){try{let K=z.__wbindgen_add_to_stack_pointer(-16),V=j($,z.__wbindgen_export),C=U,F=j(Q,z.__wbindgen_export),A=U,E=j(Z,z.__wbindgen_export),h=U;z.verifySignature(K,V,C,F,A,E,h);var J=T().getInt32(K+0,!0),X=T().getInt32(K+4,!0),q=T().getInt32(K+8,!0);if(q)throw D(X);return J!==0}finally{z.__wbindgen_add_to_stack_pointer(16)}}function U2(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(Q,Z){let J=Error(F$(Q,Z));return N(J)},__wbg_Number_9a4e0ecb0fa16705:function(Q){return Number(x(Q))},__wbg_String_8564e559799eccda:function(Q,Z){let J=String(x(Z)),X=L(J,z.__wbindgen_export,z.__wbindgen_export2),q=U;T().setInt32(Q+4,q,!0),T().setInt32(Q+0,X,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(Q,Z){let J=x(Z),X=typeof J==="bigint"?J:void 0;T().setBigInt64(Q+8,c(X)?BigInt(0):X,!0),T().setInt32(Q+0,!c(X),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(Q){let Z=x(Q),J=typeof Z==="boolean"?Z:void 0;return c(J)?16777215:J?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(Q,Z){let J=HV(x(Z)),X=L(J,z.__wbindgen_export,z.__wbindgen_export2),q=U;T().setInt32(Q+4,q,!0),T().setInt32(Q+0,X,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(Q,Z){return x(Q)in x(Z)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(Q){return typeof x(Q)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(Q){return typeof x(Q)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(Q){return x(Q)===null},__wbg___wbindgen_is_object_a27215656b807791:function(Q){let Z=x(Q);return typeof Z==="object"&&Z!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(Q){return typeof x(Q)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(Q){return x(Q)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(Q,Z){return x(Q)===x(Z)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(Q,Z){return x(Q)==x(Z)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(Q,Z){let J=x(Z),X=typeof J==="number"?J:void 0;T().setFloat64(Q+8,c(X)?0:X,!0),T().setInt32(Q+0,!c(X),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(Q,Z){let J=x(Z),X=typeof J==="string"?J:void 0;var q=c(X)?0:L(X,z.__wbindgen_export,z.__wbindgen_export2),K=U;T().setInt32(Q+4,K,!0),T().setInt32(Q+0,q,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(Q,Z){throw Error(F$(Q,Z))},__wbg__wbg_cb_unref_fffb441def202758:function(Q){x(Q)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return J$(function(Q,Z,J){let X=x(Q).apply(x(Z),x(J));return N(X)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(Q,Z,J,X){let q=x(Q).bind(x(Z),x(J),x(X));return N(q)},__wbg_buffer_54b87055582c8a81:function(Q){let Z=x(Q).buffer;return N(Z)},__wbg_byobRequest_06b654bb15590436:function(Q){let Z=x(Q).byobRequest;return c(Z)?0:N(Z)},__wbg_byteLength_41862ca4020b9c43:function(Q){return x(Q).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(Q){return x(Q).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return J$(function(Q,Z,J,X,q){let K=x(Q).call(x(Z),x(J),x(X),x(q));return N(K)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return J$(function(Q,Z){let J=x(Q).call(x(Z));return N(J)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return J$(function(Q,Z,J){let X=x(Q).call(x(Z),x(J));return N(X)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return J$(function(Q,Z,J,X,q,K){let V=x(Q).call(x(Z),x(J),x(X),x(q),x(K));return N(V)},arguments)},__wbg_call_e3b662382210db98:function(){return J$(function(Q,Z,J,X){let q=x(Q).call(x(Z),x(J),x(X));return N(q)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(Q){let Z=x(Q).cancel();return N(Z)},__wbg_catch_c1a60df4c30d76d3:function(Q,Z){let J=x(Q).catch(x(Z));return N(J)},__wbg_close_1e6096d41f7ce5d0:function(Q){let Z=x(Q).close();return N(Z)},__wbg_close_249a23304523681b:function(){return J$(function(Q){x(Q).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return J$(function(Q){x(Q).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(Q,Z,J,X){x(Q).debug(x(Z),J===0?void 0:F$(J,X))},__wbg_debug_cf53e2612c84e4ee:function(Q,Z,J,X){console.debug(x(Q),x(Z),x(J),x(X))},__wbg_done_89b2b13e91a60321:function(Q){return x(Q).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return J$(function(Q,Z){x(Q).enqueue(x(Z))},arguments)},__wbg_entries_015dc610cd81ede0:function(Q){let Z=Object.entries(x(Q));return N(Z)},__wbg_error_657700d53a73881f:function(Q,Z,J,X){console.error(x(Q),x(Z),x(J),x(X))},__wbg_error_9cce413345f88385:function(Q,Z,J,X){x(Q).error(x(Z),J===0?void 0:F$(J,X))},__wbg_error_a6fa202b58aa1cd3:function(Q,Z){let J,X;try{J=Q,X=Z,console.error(F$(Q,Z))}finally{z.__wbindgen_export4(J,X,1)}},__wbg_from_13e323c65fc8f464:function(Q){let Z=Array.from(x(Q));return N(Z)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return J$(function(Q,Z){globalThis.crypto.getRandomValues(rQ(Q,Z))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return J$(function(Q){let Z=x(Q).getReader();return N(Z)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return J$(function(Q){let Z=x(Q).getWriter();return N(Z)},arguments)},__wbg_get_507a50627bffa49b:function(Q,Z){let J=x(Q)[Z>>>0];return N(J)},__wbg_get_78f252d074a84d0b:function(){return J$(function(Q,Z){let J=Reflect.get(x(Q),x(Z));return N(J)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return J$(function(Q,Z){let J=Reflect.get(x(Q),x(Z));return N(J)},arguments)},__wbg_get_done_670108eb06ecbe46:function(Q){let Z=x(Q).done;return c(Z)?16777215:Z?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(Q,Z){let J=x(Q)[Z>>>0];return N(J)},__wbg_get_value_f465f5be30aa0963:function(Q){let Z=x(Q).value;return N(Z)},__wbg_get_with_ref_key_6412cf3094599694:function(Q,Z){let J=x(Q)[x(Z)];return N(J)},__wbg_info_79f5309d69d9c70e:function(Q,Z,J,X){console.info(x(Q),x(Z),x(J),x(X))},__wbg_info_b728e87a346ff6a2:function(Q,Z,J,X){x(Q).info(x(Z),J===0?void 0:F$(J,X))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(Q){let Z;try{Z=x(Q)instanceof ArrayBuffer}catch(X){Z=!1}return Z},__wbg_instanceof_Array_de0fa65266a8c7c0:function(Q){let Z;try{Z=x(Q)instanceof Array}catch(X){Z=!1}return Z},__wbg_instanceof_Error_1fdac9f13a8181ba:function(Q){let Z;try{Z=x(Q)instanceof Error}catch(X){Z=!1}return Z},__wbg_instanceof_Map_e5b5e3db98422fcc:function(Q){let Z;try{Z=x(Q)instanceof Map}catch(X){Z=!1}return Z},__wbg_instanceof_Object_33f20e6f12439f3e:function(Q){let Z;try{Z=x(Q)instanceof Object}catch(X){Z=!1}return Z},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(Q){let Z;try{Z=x(Q)instanceof Promise}catch(X){Z=!1}return Z},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(Q){let Z;try{Z=x(Q)instanceof Uint8Array}catch(X){Z=!1}return Z},__wbg_isArray_0677c962b281d01a:function(Q){return Array.isArray(x(Q))},__wbg_isSafeInteger_04f36e4056f1b851:function(Q){return Number.isSafeInteger(x(Q))},__wbg_iterator_6f722e4a93058b71:function(){return N(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(Q){let Z=Object.keys(x(Q));return N(Z)},__wbg_length_1f0964f4a5e2c6d8:function(Q){return x(Q).length},__wbg_length_370319915dc99107:function(Q){return x(Q).length},__wbg_level_4b50b181832c5acf:function(Q,Z){let J=x(Z).level,X=L(J,z.__wbindgen_export,z.__wbindgen_export2),q=U;T().setInt32(Q+4,q,!0),T().setInt32(Q+0,X,!0)},__wbg_log_a45418e25b210a4c:function(Q,Z,J,X){console.log(x(Q),x(Z),x(J),x(X))},__wbg_message_8326fb1d549bebc5:function(Q){let Z=x(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 J=Error(F$(Q,Z));return N(J)},__wbg_new_cd45aabdf6073e84:function(Q){let Z=new Uint8Array(x(Q));return N(Z)},__wbg_new_da52cf8fe3429cb2:function(){return N({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(Q,Z){let J=new Uint32Array(R2(Q,Z));return N(J)},__wbg_new_from_slice_77cdfb7977362f3c:function(Q,Z){let J=new Uint8Array(rQ(Q,Z));return N(J)},__wbg_new_typed_1824d93f294193e5:function(Q,Z){try{var J={a:Q,b:Z},X=(K,V)=>{let C=J.a;J.a=0;try{return P2(C,J.b,K,V)}finally{J.a=C}};let q=new Promise(X);return N(q)}finally{J.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(Q,Z,J){let X=new Uint8Array(x(Q),Z>>>0,J>>>0);return N(X)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(Q,Z){let J=new ReadableStream(H0.__wrap(Q),D(Z));return N(J)},__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=x(Q).next;return N(Z)},__wbg_next_71f2aa1cb3d1e37e:function(){return J$(function(Q){let Z=x(Q).next();return N(Z)},arguments)},__wbg_now_44881ed1d5dba857:function(){return J$(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,J,X){let q=Array.of(x(Q),x(Z),x(J),x(X));return N(q)},__wbg_prototypesetcall_2592ffff58ff115d:function(Q,Z,J){Uint8Array.prototype.set.call(rQ(Q,Z),x(J))},__wbg_prototypesetcall_4770620bbe4688a0:function(Q,Z,J){Uint8Array.prototype.set.call(rQ(Q,Z),x(J))},__wbg_push_d2ae3af0c1217ae6:function(Q,Z){return x(Q).push(x(Z))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(Q){let Z=x(Q).queueMicrotask;return N(Z)},__wbg_queueMicrotask_6a09b7bc46549209:function(Q){queueMicrotask(x(Q))},__wbg_read_8afa15f12a160ef8:function(Q){let Z=x(Q).read();return N(Z)},__wbg_ready_68b537848a5c627a:function(Q){let Z=x(Q).ready;return N(Z)},__wbg_releaseLock_33c25ace78b2d4c6:function(Q){x(Q).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(Q){x(Q).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(Q){let Z=Promise.resolve(x(Q));return N(Z)},__wbg_respond_510e32df8aeb6817:function(){return J$(function(Q,Z){x(Q).respond(Z>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(Q,Z,J){x(Q).set(rQ(Z,J))},__wbg_set_575dd786d51585f8:function(Q,Z,J){let X=x(Q).set(x(Z),x(J));return N(X)},__wbg_set_6be42768c690e380:function(Q,Z,J){x(Q)[D(Z)]=D(J)},__wbg_set_8535240470bf2500:function(){return J$(function(Q,Z,J){return Reflect.set(x(Q),x(Z),x(J))},arguments)},__wbg_set_8a16b38e4805b298:function(Q,Z,J){x(Q)[Z>>>0]=D(J)},__wbg_set_high_water_mark_44d043cd607dd13a:function(Q,Z){x(Q).highWaterMark=Z},__wbg_set_name_3bbc583faefa4193:function(Q,Z,J){x(Q).name=F$(Z,J)},__wbg_stack_3b0d974bbf31e44f:function(Q,Z){let J=x(Z).stack,X=L(J,z.__wbindgen_export,z.__wbindgen_export2),q=U;T().setInt32(Q+4,q,!0),T().setInt32(Q+0,X,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let Q=typeof global>"u"?null:global;return c(Q)?0:N(Q)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let Q=typeof globalThis>"u"?null:globalThis;return c(Q)?0:N(Q)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let Q=typeof self>"u"?null:self;return c(Q)?0:N(Q)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let Q=typeof window>"u"?null:window;return c(Q)?0:N(Q)},__wbg_subarray_3ed232c8a6baee09:function(Q,Z,J){let X=x(Q).subarray(Z>>>0,J>>>0);return N(X)},__wbg_then_16d107c451e9905d:function(Q,Z,J){let X=x(Q).then(x(Z),x(J));return N(X)},__wbg_then_6ec10ae38b3e92f7:function(Q,Z){let J=x(Q).then(x(Z));return N(J)},__wbg_trace_58264fbce2ceb5e6:function(Q,Z,J,X){x(Q).trace(x(Z),J===0?void 0:F$(J,X))},__wbg_value_a5d5488a9589444a:function(Q){let Z=x(Q).value;return N(Z)},__wbg_view_21f1d4a4f175dfa9:function(Q){let Z=x(Q).view;return c(Z)?0:N(Z)},__wbg_warn_77c4eb4a21e10a21:function(Q,Z,J,X){console.warn(x(Q),x(Z),x(J),x(X))},__wbg_warn_db531770752932a9:function(Q,Z,J,X){x(Q).warn(x(Z),J===0?void 0:F$(J,X))},__wbg_wasmwhatsappclient_new:function(Q){let Z=z0.__wrap(Q);return N(Z)},__wbg_write_f6dc0059c3feedce:function(Q,Z){let J=x(Q).write(x(Z));return N(J)},__wbindgen_cast_0000000000000001:function(Q,Z){let J=q0(Q,Z,D2);return N(J)},__wbindgen_cast_0000000000000002:function(Q,Z){let J=q0(Q,Z,L2);return N(J)},__wbindgen_cast_0000000000000003:function(Q,Z){let J=q0(Q,Z,k2);return N(J)},__wbindgen_cast_0000000000000004:function(Q,Z){let J=q0(Q,Z,F2);return N(J)},__wbindgen_cast_0000000000000005:function(Q,Z){let J=q0(Q,Z,C2);return N(J)},__wbindgen_cast_0000000000000006:function(Q){return N(Q)},__wbindgen_cast_0000000000000007:function(Q){return N(Q)},__wbindgen_cast_0000000000000008:function(Q,Z){let J=rQ(Q,Z);return N(J)},__wbindgen_cast_0000000000000009:function(Q,Z){let J=F$(Q,Z);return N(J)},__wbindgen_cast_000000000000000a:function(Q){let Z=BigInt.asUintN(64,Q);return N(Z)},__wbindgen_cast_000000000000000b:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_000000000000000c:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_000000000000000d:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_000000000000000e:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_000000000000000f:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_0000000000000010:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_0000000000000011:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_0000000000000012:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_cast_0000000000000013:function(Q,Z){var J=_$(Q,Z).slice();return z.__wbindgen_export4(Q,Z*4,4),N(J)},__wbindgen_object_clone_ref:function(Q){let Z=x(Q);return N(Z)},__wbindgen_object_drop_ref:function(Q){D(Q)}}}}function C2($,Q){z.__wasm_bindgen_func_elem_4654($,Q)}function D2($,Q,Z){z.__wasm_bindgen_func_elem_9893($,Q,N(Z))}function F2($,Q,Z){z.__wasm_bindgen_func_elem_4655($,Q,N(Z))}function L2($,Q,Z){try{let q=z.__wbindgen_add_to_stack_pointer(-16);z.__wasm_bindgen_func_elem_28598(q,$,Q,N(Z));var J=T().getInt32(q+0,!0),X=T().getInt32(q+4,!0);if(X)throw D(J)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function P2($,Q,Z,J){z.__wasm_bindgen_func_elem_28600($,Q,N(Z),N(J))}function k2($,Q,Z){z.__wasm_bindgen_func_elem_4656($,Q,Z)}var x2=["bytes"],B2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingbytesource_free($,1)),N2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsink_free($,1)),vV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsource_free($,1)),fV=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_wasmwhatsappclient_free($,1));function N($){if(Y0===d$.length)d$.push(d$.length+1);let Q=Y0;return Y0=d$[Q],d$[Q]=$,Q}var _V=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbindgen_export5($.a,$.b));function HV($){let Q=typeof $;if(Q=="number"||Q=="boolean"||$==null)return`${$}`;if(Q=="string")return`"${$}"`;if(Q=="symbol"){let X=$.description;if(X==null)return"Symbol";else return`Symbol(${X})`}if(Q=="function"){let X=$.name;if(typeof X=="string"&&X.length>0)return`Function(${X})`;else return"Function"}if(Array.isArray($)){let X=$.length,q="[";if(X>0)q+=HV($[0]);for(let K=1;K<X;K++)q+=", "+HV($[K]);return q+="]",q}let Z=/\[object ([^\]]+)\]/.exec(toString.call($)),J;if(Z&&Z.length>1)J=Z[1];else return toString.call($);if(J=="Object")try{return"Object("+JSON.stringify($)+")"}catch(X){return"Object"}if($ instanceof Error)return`${$.name}: ${$.message}
2
2
  ${$.stack}`;return J}function O2($){if($<1028)return;d$[$]=Y0,Y0=$}function _$($,Q){$=$>>>0;let Z=T(),J=[];for(let X=$;X<$+4*Q;X+=4)J.push(D(Z.getUint32(X,!0)));return J}function R2($,Q){return $=$>>>0,A2().subarray($/4,$/4+Q)}function rQ($,Q){return $=$>>>0,tQ().subarray($/1,$/1+Q)}var nQ=null;function T(){if(nQ===null||nQ.buffer.detached===!0||nQ.buffer.detached===void 0&&nQ.buffer!==z.memory.buffer)nQ=new DataView(z.memory.buffer);return nQ}function F$($,Q){return M2($>>>0,Q)}var Z0=null;function A2(){if(Z0===null||Z0.byteLength===0)Z0=new Uint32Array(z.memory.buffer);return Z0}var X0=null;function tQ(){if(X0===null||X0.byteLength===0)X0=new Uint8Array(z.memory.buffer);return X0}function x($){return d$[$]}function J$($,Q){try{return $.apply(this,Q)}catch(Z){z.__wbindgen_export3(N(Z))}}var d$=Array(1024).fill(void 0);d$.push(void 0,null,!0,!1);var Y0=d$.length;function c($){return $===void 0||$===null}function q0($,Q,Z){let J={a:$,b:Q,cnt:1},X=(...q)=>{J.cnt++;let K=J.a;J.a=0;try{return Z(K,J.b,...q)}finally{J.a=K,X._wbg_cb_unref()}};return X._wbg_cb_unref=()=>{if(--J.cnt===0)z.__wbindgen_export5(J.a,J.b),J.a=0,_V.unregister(J)},_V.register(X,J,J),X}function j($,Q){let Z=Q($.length*1,1)>>>0;return tQ().set($,Z/1),U=$.length,Z}function s($,Q){let Z=Q($.length*4,4)>>>0,J=T();for(let X=0;X<$.length;X++)J.setUint32(Z+4*X,N($[X]),!0);return U=$.length,Z}function L($,Q,Z){if(Z===void 0){let V=V0.encode($),C=Q(V.length,1)>>>0;return tQ().subarray(C,C+V.length).set(V),U=V.length,C}let J=$.length,X=Q(J,1)>>>0,q=tQ(),K=0;for(;K<J;K++){let V=$.charCodeAt(K);if(V>127)break;q[X+K]=V}if(K!==J){if(K!==0)$=$.slice(K);X=Z(X,J,J=K+$.length*3,1)>>>0;let V=tQ().subarray(X+K,X+J),C=V0.encodeInto($,V);K+=C.written,X=Z(X,J,K,1)>>>0}return U=K,X}function D($){let Q=x($);return O2($),Q}var W5=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});W5.decode();var E2=2146435072,XV=0;function M2($,Q){if(XV+=Q,XV>=E2)W5=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),W5.decode(),XV=Q;return W5.decode(tQ().subarray($,$+Q))}var V0=new TextEncoder;if(!("encodeInto"in V0))V0.encodeInto=function($,Q){let Z=V0.encode($);return Q.set(Z),{read:$.length,written:Z.length}};var U=0,W2,S2,z;function I2($,Q){return S2=$,z=$.exports,W2=Q,nQ=null,Z0=null,X0=null,z}function pV($){if(z!==void 0)return z;if($!==void 0)if(Object.getPrototypeOf($)===Object.prototype)({module:$}=$);else console.warn("using deprecated parameters for `initSync()`; pass a single object instead");let Q=U2();if(!($ instanceof WebAssembly.Module))$=new WebAssembly.Module($);let Z=new WebAssembly.Instance($,Q);return I2(Z,$)}var R5={};G2(R5,{protobufPackage:()=>a2,mentionMentionType:()=>xN,futureProofBehavior:()=>PN,extendedContentMessageXmaLayoutType:()=>LN,extendedContentMessageXmaDataclassType:()=>FN,extendedContentMessageExtendedContentType:()=>DN,extendedContentMessageCtaButtonType:()=>CN,consumerApplicationStatusTextMesageFontType:()=>GN,consumerApplicationMetadataSpecialTextSize:()=>zN,commandCommandType:()=>HN,WrapTransportSigningSecretKeyResult:()=>vE,WrapTransportSigningSecretKeyInput:()=>O5,WrapTransportSigningPublicKeyResult:()=>yE,WrapTransportSigningPublicKeyInput:()=>N5,WebNotificationsInfo:()=>TE,WebMessageInfo_StubType:()=>JA,WebMessageInfo_Status:()=>QA,WebMessageInfo_BizPrivacyStatus:()=>$A,WebMessageInfoWithMessageBytes:()=>Y$,WebMessageInfo:()=>g,WebLinkRenderConfig:()=>EN,WebFeatures_Flag:()=>e3,WebFeatures:()=>IE,WallpaperSettings:()=>O$,VirtualDeviceOutput:()=>B5,VerifiedNameCertificate_Details:()=>s5,VerifiedNameCertificate:()=>c$,UserReceipt:()=>x5,UserPassword_TransformerArg_Value:()=>k5,UserPassword_TransformerArg:()=>P5,UserPassword_Transformer:()=>s3,UserPassword_Encoding:()=>a3,UserPassword:()=>L5,UrlTrackingMap_UrlTrackingMapElement:()=>F5,UrlTrackingMap:()=>cQ,UnCountedAssociatedMessageListWithMessageBytes:()=>D5,UnCountedAssociatedMessageList:()=>C5,ThreadID_ThreadType:()=>t3,ThreadID:()=>U5,TemplateButton_URLButton:()=>G5,TemplateButton_QuickReplyButton:()=>z5,TemplateButton_CallButton:()=>H5,TemplateButton:()=>V5,TapLinkAction:()=>Y5,SyncdVersion:()=>f$,SyncdValue:()=>jQ,SyncdSnapshotRecovery:()=>SE,SyncdSnapshot:()=>a5,SyncdRecord:()=>j$,SyncdPlainTextRecord:()=>X5,SyncdPatch:()=>t5,SyncdMutations:()=>r5,SyncdMutation_SyncdOperation:()=>r3,SyncdMutation:()=>w$,SyncdIndex:()=>wQ,SyncActionValue_WamoUserIdentifierAction:()=>Z5,SyncActionValue_WaffleAccountLinkStateAction_AccountLinkState:()=>g3,SyncActionValue_WaffleAccountLinkStateAction:()=>q5,SyncActionValue_WASARootSecretAction_RootSecretEntry_Status:()=>m3,SyncActionValue_WASARootSecretAction_RootSecretEntry:()=>K5,SyncActionValue_WASARootSecretAction:()=>J5,SyncActionValue_UsernameChatStartModeAction_ChatStartMode:()=>i3,SyncActionValue_UsernameChatStartModeAction:()=>Q5,SyncActionValue_UserStatusMuteAction:()=>$5,SyncActionValue_UnarchiveChatsSetting:()=>eY,SyncActionValue_UGCBot:()=>sY,SyncActionValue_TimeFormatAction:()=>aY,SyncActionValue_ThreadPinAction:()=>tY,SyncActionValue_SyncActionMessageRange:()=>G$,SyncActionValue_SyncActionMessage:()=>rY,SyncActionValue_SubscriptionsSyncV2Action_SubscriptionInfo:()=>gY,SyncActionValue_SubscriptionsSyncV2Action_PaidFeature:()=>mY,SyncActionValue_SubscriptionsSyncV2Action:()=>iY,SyncActionValue_SubscriptionAction:()=>oY,SyncActionValue_StickerAction:()=>uQ,SyncActionValue_StatusPrivacyAction_StatusDistributionMode:()=>o3,SyncActionValue_StatusPrivacyAction_CustomList:()=>bY,SyncActionValue_StatusPrivacyAction:()=>nY,SyncActionValue_StatusPostOptInNotificationPreferencesAction:()=>dY,SyncActionValue_StarAction:()=>cY,SyncActionValue_SettingsSyncAction_SettingPlatform:()=>b3,SyncActionValue_SettingsSyncAction_SettingKey:()=>n3,SyncActionValue_SettingsSyncAction_MediaQualitySetting:()=>d3,SyncActionValue_SettingsSyncAction_DisplayMode:()=>c3,SyncActionValue_SettingsSyncAction:()=>jY,SyncActionValue_RemoveRecentStickerAction:()=>wY,SyncActionValue_RecentEmojiWeightsAction:()=>uY,SyncActionValue_QuickReplyAction:()=>pY,SyncActionValue_PushNameSetting:()=>lY,SyncActionValue_PrivateProcessingSettingAction_PrivateProcessingStatus:()=>j3,SyncActionValue_PrivateProcessingSettingAction:()=>hY,SyncActionValue_PrivacySettingRelayAllCalls:()=>_Y,SyncActionValue_PrivacySettingDisableLinkPreviewsAction:()=>fY,SyncActionValue_PrivacySettingChannelsPersonalisedRecommendationAction:()=>vY,SyncActionValue_PrimaryVersionAction:()=>yY,SyncActionValue_PrimaryFeature:()=>TY,SyncActionValue_PnForLidChatAction:()=>IY,SyncActionValue_PinAction:()=>SY,SyncActionValue_PaymentTosAction_PaymentNotice:()=>w3,SyncActionValue_PaymentTosAction:()=>WY,SyncActionValue_PaymentInfoAction:()=>MY,SyncActionValue_OutContactAction:()=>EY,SyncActionValue_NuxAction:()=>AY,SyncActionValue_NotificationActivitySettingAction_NotificationActivitySetting:()=>u3,SyncActionValue_NotificationActivitySettingAction:()=>RY,SyncActionValue_NoteEditAction_NoteType:()=>p3,SyncActionValue_NoteEditAction:()=>OY,SyncActionValue_NewsletterSavedInterestsAction:()=>NY,SyncActionValue_NctSaltSyncAction:()=>BY,SyncActionValue_MuteAction:()=>xY,SyncActionValue_MusicUserIdAction_MusicUserIdMapEntry:()=>f5,SyncActionValue_MusicUserIdAction:()=>kY,SyncActionValue_MerchantPaymentPartnerAction_Status:()=>l3,SyncActionValue_MerchantPaymentPartnerAction:()=>PY,SyncActionValue_MarketingMessageBroadcastAction:()=>LY,SyncActionValue_MarketingMessageAction_MarketingMessagePrototypeType:()=>h3,SyncActionValue_MarketingMessageAction:()=>FY,SyncActionValue_MarkChatAsReadAction:()=>DY,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIReplyMode:()=>_3,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIFeatureStatus:()=>f3,SyncActionValue_MaibaAIFeaturesControlAction:()=>CY,SyncActionValue_LockChatAction:()=>UY,SyncActionValue_LocaleSetting:()=>GY,SyncActionValue_LidContactAction:()=>zY,SyncActionValue_LabelSublistAction:()=>HY,SyncActionValue_LabelReorderingAction:()=>VY,SyncActionValue_LabelEditAction_ListType:()=>v3,SyncActionValue_LabelEditAction:()=>YY,SyncActionValue_LabelAssociationAction:()=>XY,SyncActionValue_KeyExpiration:()=>ZY,SyncActionValue_InteractiveMessageAction_InteractiveMessageActionMode:()=>y3,SyncActionValue_InteractiveMessageAction:()=>qY,SyncActionValue_FavoritesAction_Favorite:()=>KY,SyncActionValue_FavoritesAction:()=>JY,SyncActionValue_ExternalWebBetaAction:()=>QY,SyncActionValue_DetectedOutcomesStatusAction:()=>$Y,SyncActionValue_DeleteMessageForMeAction:()=>e9,SyncActionValue_DeleteIndividualCallLogAction:()=>s9,SyncActionValue_DeleteChatAction:()=>a9,SyncActionValue_CustomerDataAction:()=>t9,SyncActionValue_CustomPaymentMethodsAction:()=>r9,SyncActionValue_CustomPaymentMethodMetadata:()=>g9,SyncActionValue_CustomPaymentMethod:()=>m9,SyncActionValue_CtwaPerCustomerDataSharingAction:()=>i9,SyncActionValue_CtwaMessageReceivedAction:()=>o9,SyncActionValue_ContactAction:()=>b9,SyncActionValue_CoexV2VersionAction:()=>n9,SyncActionValue_ClearChatAction:()=>d9,SyncActionValue_ChatAssignmentOpenedStatusAction:()=>c9,SyncActionValue_ChatAssignmentAction:()=>j9,SyncActionValue_CallLogAction:()=>w9,SyncActionValue_BusinessBroadcastListAction:()=>u9,SyncActionValue_BusinessBroadcastInsightsAction:()=>p9,SyncActionValue_BusinessBroadcastCampaignStatus:()=>S3,SyncActionValue_BusinessBroadcastCampaignAction:()=>l9,SyncActionValue_BusinessBroadcastAssociationAction:()=>WE,SyncActionValue_BubbleLockMessageAction:()=>h9,SyncActionValue_BroadcastListParticipant:()=>_9,SyncActionValue_BotWelcomeRequestAction:()=>f9,SyncActionValue_BizAISettingsNudgeAction_BizAISettingsCategory:()=>T3,SyncActionValue_BizAISettingsNudgeAction:()=>v9,SyncActionValue_AvatarUpdatedAction_AvatarEventType:()=>I3,SyncActionValue_AvatarUpdatedAction:()=>y9,SyncActionValue_AutoOrganizeBusinessChatSetting:()=>T9,SyncActionValue_ArchiveChatAction:()=>I9,SyncActionValue_AndroidUnsupportedActions:()=>S9,SyncActionValue_AiThreadRenameAction:()=>W9,SyncActionValue_AgentAction:()=>M9,SyncActionValue:()=>gQ,SyncActionData:()=>mQ,SubProtocol:()=>n,StickerMetadata:()=>E9,StatusPSA:()=>A9,StatusMentionMessage:()=>R9,StatusAttribution_Type:()=>R3,StatusAttribution_StatusReshare_Source:()=>W3,StatusAttribution_StatusReshare_Metadata:()=>O9,StatusAttribution_StatusReshare:()=>N9,StatusAttribution_RLAttribution_Source:()=>M3,StatusAttribution_RLAttribution:()=>B9,StatusAttribution_Music:()=>x9,StatusAttribution_GroupStatus:()=>k9,StatusAttribution_ExternalShare_Source:()=>E3,StatusAttribution_ExternalShare:()=>P9,StatusAttribution_AiCreatedAttribution_Source:()=>A3,StatusAttribution_AiCreatedAttribution:()=>L9,StatusAttribution:()=>F9,SignedPreKeyRecordStructure:()=>ME,SignedMmkDistributionFromMailbox:()=>D9,SignalMessage:()=>EE,SessionTransparencyType:()=>AN,SessionTransparencyMetadata:()=>C9,SessionStructure_PendingPreKey:()=>U9,SessionStructure_PendingKeyExchange:()=>G9,SessionStructure_Chain_MessageKey:()=>z9,SessionStructure_Chain_ChainKey:()=>H9,SessionStructure_Chain:()=>qQ,SessionStructure:()=>KQ,ServerErrorReceipt:()=>g5,SenderKeyStateStructure_SenderSigningKey:()=>V9,SenderKeyStateStructure_SenderMessageKey:()=>Y9,SenderKeyStateStructure_SenderChainKey:()=>X9,SenderKeyStateStructure:()=>Z9,SenderKeyRecordStructure:()=>AE,SenderKeyMessage:()=>m5,SenderKeyDistributionMessage:()=>i5,ScheduledMessageMetadata:()=>q9,RoutingInfo:()=>RE,RotateEpochOutput:()=>OE,RotateEpochMemberInput:()=>K9,RotateEpochMemberEdge:()=>J9,RotateEpochInput:()=>Q9,ReportingTokenInfo:()=>$9,Reportable:()=>NE,RecordStructure:()=>BE,RecentEmojiWeight:()=>e6,Reaction:()=>s6,QuarantinedMessage:()=>a6,QP_FilterResult:()=>O3,QP_FilterParameters:()=>t6,QP_FilterClientNotSupportedConfig:()=>N3,QP_FilterClause:()=>L0,QP_Filter:()=>r6,QP_ClauseType:()=>B3,QP:()=>xE,Pushname:()=>g6,ProloguePayload:()=>kE,ProcessedVideo_VideoQuality:()=>x3,ProcessedVideo:()=>m6,PrivacySystemMessage:()=>RN,PrimaryEphemeralIdentity:()=>PE,PremiumMessageInfo:()=>i6,PreKeySignalMessage:()=>LE,PreKeyRecordStructure:()=>FE,PollUpdate:()=>o6,PollEncValue:()=>b6,PollAdditionalMetadata_PollNameHashHistoryEntry:()=>n6,PollAdditionalMetadata:()=>d6,Point:()=>c6,PinInChat_Type:()=>k3,PinInChat:()=>j6,PhotoChange:()=>w6,PhoneNumberToLIDMapping:()=>u6,PaymentInfo_TxnStatus:()=>P3,PaymentInfo_Status:()=>L3,PaymentInfo_Currency:()=>F3,PaymentInfo:()=>JQ,PaymentBackground_Type:()=>D3,PaymentBackground_MediaData:()=>p6,PaymentBackground:()=>pQ,PatchDebugData_Platform:()=>C3,PatchDebugData:()=>DE,PastParticipants:()=>l6,PastParticipant_LeaveReason:()=>U3,PastParticipant:()=>h6,PairingRequest:()=>CE,OrfThreadIdOutput:()=>UE,OrfThreadIdInput:()=>_6,NotificationSettings:()=>QQ,NotificationMessageInfo:()=>GE,NonE2EEAttestation_AccountType:()=>G3,NonE2EEAttestation:()=>f6,NoiseCertificate_Details:()=>zE,NoiseCertificate:()=>HE,MutationProps:()=>ON,MsgRowOpaqueData:()=>VE,MsgOpaqueData_PollVotesSnapshot:()=>v6,MsgOpaqueData_PollVoteSnapshot:()=>y6,MsgOpaqueData_PollType:()=>z3,MsgOpaqueData_PollOption:()=>lQ,MsgOpaqueData_PollContentType:()=>H3,MsgOpaqueData_EventLocation:()=>T6,MsgOpaqueData:()=>$Q,Money:()=>$$,MmkFromDetachedDevice:()=>I6,MmkDistributionToMailbox:()=>S6,MmkDistributionToDetachedDevice:()=>W6,MmkDistribution:()=>M6,MinosVerifySingleEpochResult:()=>YE,MinosVerifySingleEpochInput:()=>E6,MinosValidateEpochResult:()=>XE,MinosValidateEpochInput:()=>A6,MinosThreadIdFromOneToOneThreadResult:()=>ZE,MinosThreadIdFromOneToOneThreadInput:()=>R6,MinosThreadIdFromActThreadIdResult:()=>qE,MinosThreadIdFromActThreadIdInput:()=>O6,MinosSignedEpoch:()=>v$,MinosOpenInitialEpochResult:()=>KE,MinosOpenInitialEpochInput:()=>N6,MinosOpenEpochResult:()=>JE,MinosOpenEpochInput:()=>B6,MinosMessageMetadata:()=>hQ,MinosEncryptAndSignMessageResult:()=>QE,MinosEncryptAndSignMessageInput:()=>x6,MinosDecryptAndVerifyMessageSuccess:()=>k6,MinosDecryptAndVerifyMessageResult:()=>$E,MinosDecryptAndVerifyMessageInput:()=>P6,MinosCommand:()=>eA,MinosClientConfig:()=>i,MessagingMailboxPublicData:()=>b,Message_VideoMessage_VideoSourceType:()=>Z3,Message_VideoMessage_Attribution:()=>q3,Message_VideoMessage:()=>e,Message_VideoEndCard:()=>D6,Message_URLMetadata:()=>C6,Message_TemplateMessage_HydratedFourRowTemplate:()=>e$,Message_TemplateMessage_FourRowTemplate:()=>U6,Message_TemplateMessage:()=>vQ,Message_TemplateButtonReplyMessage:()=>G6,Message_StickerSyncRMRMessage:()=>z6,Message_StickerPackMessage_StickerPackOrigin:()=>K3,Message_StickerPackMessage_Sticker:()=>H6,Message_StickerPackMessage:()=>V6,Message_StickerMessage:()=>yQ,Message_StatusStickerInteractionMessage_StatusStickerType:()=>J3,Message_StatusStickerInteractionMessage:()=>Y6,Message_StatusQuotedMessage_StatusQuotedMessageType:()=>Q3,Message_StatusQuotedMessage:()=>X6,Message_StatusQuestionAnswerMessage:()=>Z6,Message_StatusNotificationMessage_StatusNotificationType:()=>$3,Message_StatusNotificationMessage:()=>q6,Message_StatusLinkPreviewMetadata_Style:()=>eR,Message_StatusLinkPreviewMetadata:()=>K6,Message_SplitPaymentUpdateMessage:()=>J6,Message_SplitPaymentParticipant_SplitPaymentStatus:()=>sR,Message_SplitPaymentParticipant:()=>Q6,Message_SplitPaymentMessage:()=>$6,Message_SenderKeyDistributionMessage:()=>s$,Message_SendPaymentMessage:()=>eX,Message_SecretEncryptedMessage_SecretEncType:()=>aR,Message_SecretEncryptedMessage:()=>sX,Message_ScheduledCallEditMessage_EditType:()=>tR,Message_ScheduledCallEditMessage:()=>aX,Message_ScheduledCallCreationMessage_CallType:()=>rR,Message_ScheduledCallCreationMessage:()=>tX,Message_RootSecretDistributeMessage:()=>rX,Message_RequestWelcomeMessageMetadata_WelcomeTrigger:()=>gR,Message_RequestWelcomeMessageMetadata_LocalChatState:()=>mR,Message_RequestWelcomeMessageMetadata:()=>gX,Message_RequestPhoneNumberMessage:()=>mX,Message_RequestPaymentMessage:()=>iX,Message_ReactionMessage:()=>oX,Message_QuestionResponseMessage:()=>bX,Message_ProtocolMessage_Type:()=>iR,Message_ProtocolMessage:()=>nX,Message_ProductMessage_ProductSnapshot:()=>dX,Message_ProductMessage_CatalogSnapshot:()=>cX,Message_ProductMessage:()=>TQ,Message_PollVoteMessage:()=>u$,Message_PollUpdateMessageMetadata:()=>y$,Message_PollUpdateMessage:()=>jX,Message_PollType:()=>HR,Message_PollResultSnapshotMessage_PollVote:()=>wX,Message_PollResultSnapshotMessage:()=>a$,Message_PollEncValue:()=>uX,Message_PollCreationMessage_Option:()=>N$,Message_PollCreationMessage:()=>K$,Message_PollContentType:()=>VR,Message_PollAddOptionMessage:()=>pX,Message_PlaceholderMessage_PlaceholderType:()=>oR,Message_PlaceholderMessage:()=>lX,Message_PinInChatMessage_Type:()=>bR,Message_PinInChatMessage:()=>hX,Message_PeerDataOperationRequestType:()=>YR,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_WaffleNonceFetchResponse:()=>_X,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_SyncDSnapshotFatalRecoveryResponse:()=>fX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_PlaceholderMessageResendResponse:()=>vX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_PaymentLinkPreviewMetadata:()=>yX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_LinkPreviewHighQualityThumbnail:()=>TX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse:()=>IX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponseCode:()=>nR,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponse:()=>SX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandResponseCode:()=>dR,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandRequestResponse:()=>WX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FlowResponsesCsvBundle:()=>MX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_ContactRefreshResponse:()=>EX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionMetaNonceFetchResponse:()=>AX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionCanonicalUserNonceFetchResponse:()=>RX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactState:()=>OX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactListResponse:()=>NX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult:()=>BX,Message_PeerDataOperationRequestResponseMessage:()=>xX,Message_PeerDataOperationRequestMessage_SyncDCollectionFatalRecoveryRequest:()=>kX,Message_PeerDataOperationRequestMessage_RequestUrlPreview:()=>PX,Message_PeerDataOperationRequestMessage_RequestStickerReupload:()=>LX,Message_PeerDataOperationRequestMessage_PlaceholderMessageResendRequest:()=>FX,Message_PeerDataOperationRequestMessage_HistorySyncOnDemandRequest:()=>DX,Message_PeerDataOperationRequestMessage_HistorySyncChunkRetryRequest:()=>CX,Message_PeerDataOperationRequestMessage_GalaxyFlowAction_GalaxyFlowActionType:()=>cR,Message_PeerDataOperationRequestMessage_GalaxyFlowAction:()=>UX,Message_PeerDataOperationRequestMessage_FullHistorySyncOnDemandRequest:()=>GX,Message_PeerDataOperationRequestMessage_CompanionCanonicalUserNonceFetchRequest:()=>zX,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsRefreshRequest:()=>HX,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsContactListRequest:()=>VX,Message_PeerDataOperationRequestMessage:()=>YX,Message_PaymentReminderMessage_ReminderStatus:()=>jR,Message_PaymentReminderMessage_ReminderFrequency:()=>wR,Message_PaymentReminderMessage:()=>XX,Message_PaymentLinkMetadata_PaymentLinkProvider:()=>ZX,Message_PaymentLinkMetadata_PaymentLinkHeader_PaymentLinkHeaderType:()=>uR,Message_PaymentLinkMetadata_PaymentLinkHeader:()=>qX,Message_PaymentLinkMetadata_PaymentLinkButton:()=>KX,Message_PaymentLinkMetadata:()=>IQ,Message_PaymentInviteMessage_ServiceType:()=>pR,Message_PaymentInviteMessage_InviteType:()=>lR,Message_PaymentInviteMessage:()=>JX,Message_PaymentExtendedMetadata:()=>QX,Message_OrderMessage_OrderSurface:()=>hR,Message_OrderMessage_OrderStatus:()=>_R,Message_OrderMessage:()=>$X,Message_NewsletterFollowerInviteMessage:()=>eZ,Message_NewsletterAdminInviteMessage:()=>sZ,Message_MusicMessage_MusicMessageStyle:()=>fR,Message_MusicMessage:()=>aZ,Message_MessageHistoryNotice:()=>tZ,Message_MessageHistoryMetadata:()=>SQ,Message_MessageHistoryBundle:()=>WQ,Message_MarkAsVerifiedAction:()=>rZ,Message_MMSThumbnailMetadata:()=>gZ,Message_LocationMessage:()=>Q$,Message_LiveLocationMessage:()=>MQ,Message_ListResponseMessage_SingleSelectReply:()=>mZ,Message_ListResponseMessage_ListType:()=>vR,Message_ListResponseMessage:()=>iZ,Message_ListMessage_Section:()=>oZ,Message_ListMessage_Row:()=>bZ,Message_ListMessage_ProductSection:()=>nZ,Message_ListMessage_ProductListInfo:()=>dZ,Message_ListMessage_ProductListHeaderImage:()=>cZ,Message_ListMessage_Product:()=>jZ,Message_ListMessage_ListType:()=>yR,Message_ListMessage:()=>wZ,Message_LinkPreviewMetadata_SocialMediaPostType:()=>TR,Message_LinkPreviewMetadata:()=>uZ,Message_KeepInChatMessage:()=>pZ,Message_InvoiceMessage_AttachmentType:()=>IR,Message_InvoiceMessage:()=>lZ,Message_InteractiveResponseMessage_NativeFlowResponseMessage:()=>hZ,Message_InteractiveResponseMessage_Body_Format:()=>SR,Message_InteractiveResponseMessage_Body:()=>_Z,Message_InteractiveResponseMessage:()=>fZ,Message_InteractiveMessage_ShopMessage_Surface:()=>WR,Message_InteractiveMessage_ShopMessage:()=>vZ,Message_InteractiveMessage_NativeFlowMessage_NativeFlowButton:()=>yZ,Message_InteractiveMessage_NativeFlowMessage:()=>TZ,Message_InteractiveMessage_Header:()=>IZ,Message_InteractiveMessage_Footer:()=>SZ,Message_InteractiveMessage_CollectionMessage:()=>WZ,Message_InteractiveMessage_CarouselMessage_CarouselCardType:()=>MR,Message_InteractiveMessage_CarouselMessage:()=>MZ,Message_InteractiveMessage_Body:()=>EZ,Message_InteractiveMessage_BloksWidget:()=>EQ,Message_InteractiveMessage:()=>T$,Message_InsightDeliveryState:()=>XR,Message_InitialSecurityNotificationSettingSync:()=>AZ,Message_ImageMessage_ImageSourceType:()=>ER,Message_ImageMessage:()=>t,Message_HistorySyncType:()=>ZR,Message_HistorySyncNotification:()=>RZ,Message_HistorySyncMessageAccessStatus:()=>OZ,Message_HistoryShareMessageEntry:()=>NZ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeUnixEpoch:()=>BZ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_DayOfWeekType:()=>AR,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_CalendarType:()=>RR,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent:()=>xZ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime:()=>kZ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMCurrency:()=>PZ,Message_HighlyStructuredMessage_HSMLocalizableParameter:()=>LZ,Message_HighlyStructuredMessage:()=>o,Message_GroupInviteMessage_GroupType:()=>OR,Message_GroupInviteMessage:()=>FZ,Message_FutureProofMessage:()=>v,Message_FullHistorySyncOnDemandRequestMetadata:()=>I$,Message_FullHistorySyncOnDemandConfig:()=>DZ,Message_ExtendedTextMessage_PreviewType:()=>NR,Message_ExtendedTextMessage_InviteLinkGroupType:()=>BR,Message_ExtendedTextMessage_FontType:()=>xR,Message_ExtendedTextMessage:()=>CZ,Message_EventResponseMessage_EventResponseType:()=>kR,Message_EventResponseMessage:()=>p$,Message_EventMessage:()=>UZ,Message_EventInviteMessage:()=>GZ,Message_EncReactionMessage:()=>zZ,Message_EncEventResponseMessage:()=>HZ,Message_EncCommentMessage:()=>VZ,Message_DocumentMessage:()=>q$,Message_DeviceSentMessage:()=>YZ,Message_DeclinePaymentRequestMessage:()=>XZ,Message_ContactsArrayMessage:()=>ZZ,Message_ContactMessage:()=>AQ,Message_ConditionalRevealMessage_ConditionalRevealMessageType:()=>PR,Message_ConditionalRevealMessage:()=>qZ,Message_CommentMessage:()=>KZ,Message_CloudAPIThreadControlNotification_CloudAPIThreadControlNotificationContent:()=>JZ,Message_CloudAPIThreadControlNotification_CloudAPIThreadControl:()=>LR,Message_CloudAPIThreadControlNotification:()=>QZ,Message_ChatThemeSetting:()=>$Z,Message_ChatStockImageWallpaper:()=>eq,Message_ChatSolidColorWallpaper:()=>sq,Message_ChatDefaultWallpaper:()=>aq,Message_ChatCustomImageWallpaper:()=>tq,Message_Chat:()=>rq,Message_CancelPaymentRequestMessage:()=>gq,Message_CallLogMessage_CallType:()=>FR,Message_CallLogMessage_CallParticipant:()=>mq,Message_CallLogMessage_CallOutcome:()=>DR,Message_CallLogMessage:()=>iq,Message_Call:()=>oq,Message_ButtonsResponseMessage_Type:()=>CR,Message_ButtonsResponseMessage:()=>bq,Message_ButtonsMessage_HeaderType:()=>GR,Message_ButtonsMessage_Button_Type:()=>UR,Message_ButtonsMessage_Button_NativeFlowInfo:()=>nq,Message_ButtonsMessage_Button_ButtonText:()=>dq,Message_ButtonsMessage_Button:()=>cq,Message_ButtonsMessage:()=>jq,Message_BotHistoryShareSyncMetadata:()=>wq,Message_BCallMessage_MediaType:()=>zR,Message_BCallMessage:()=>uq,Message_AudioMessage:()=>RQ,Message_AppStateSyncKeyShare:()=>pq,Message_AppStateSyncKeyRequest:()=>lq,Message_AppStateSyncKeyId:()=>OQ,Message_AppStateSyncKeyFingerprint:()=>hq,Message_AppStateSyncKeyData:()=>_q,Message_AppStateSyncKey:()=>fq,Message_AppStateFatalExceptionNotification:()=>vq,Message_AlbumMessage:()=>yq,MessageText:()=>a,MessageSecretMessage:()=>sA,MessageKey:()=>B,MessageContextInfo_MessageAddonExpiryType:()=>V3,MessageContextInfo:()=>_Q,MessageAssociation_AssociationType:()=>Y3,MessageAssociation:()=>L6,MessageAddOn_MessageAddOnType:()=>X3,MessageAddOnContextInfo:()=>fQ,MessageAddOn:()=>F6,Message:()=>d,MerkleMembershipProof:()=>S$,Mention:()=>NQ,MemberLabel:()=>W$,MekBundle:()=>M$,MediaVisibility:()=>NN,MediaRetryNotification_ResultType:()=>qR,MediaRetryNotification:()=>o5,MediaNotifyMessage:()=>Tq,MediaKeyDomain:()=>BN,MediaEntry_ProgressiveJpegDetails:()=>Iq,MediaEntry_DownloadableThumbnail:()=>Sq,MediaEntry:()=>aA,MediaDomainInfo:()=>Wq,MediaData:()=>t$,MandrakeValidateNewMmkResult:()=>tA,MandrakeValidateNewMmkFromMailboxInput:()=>Mq,MandrakeValidateNewMmkFromDetachedDeviceInput:()=>Eq,MandrakeOpenInitialEpochResult:()=>rA,MandrakeOpenInitialEpochInput:()=>Aq,MandrakeOpenEpochSuccess:()=>BQ,MandrakeOpenEpochResult:()=>gA,MandrakeOpenEpochInput:()=>Rq,MandrakeMekBundle:()=>Oq,MandrakeEncryptMekSuccess_MekDistributionSingleRecipient:()=>Nq,MandrakeEncryptMekSuccess:()=>Bq,MandrakeEncryptMekResult:()=>mA,MandrakeEncryptMekInput_MmkSender:()=>xq,MandrakeEncryptMekInput_EpochSender:()=>kq,MandrakeEncryptMekInput_DetachedDeviceSender:()=>Pq,MandrakeEncryptMekInput:()=>Lq,MandrakeDecryptMekSuccess:()=>Fq,MandrakeDecryptMekResult:()=>iA,MandrakeDecryptMekInput_PrecomputedEpochSenderPublicData:()=>Dq,MandrakeDecryptMekInput_MmkSenderPublicData:()=>Cq,MandrakeDecryptMekInput_EpochSenderPublicData:()=>Uq,MandrakeDecryptMekInput:()=>Gq,Location:()=>zq,LocalizedName:()=>Hq,LimitSharing_TriggerType:()=>KR,LimitSharing:()=>B$,LegacyMessage:()=>Vq,LabyrinthWaCommand:()=>oA,LIDMigrationMappingSyncPayload:()=>b5,LIDMigrationMappingSyncMessage:()=>Xq,LIDMigrationMapping:()=>Yq,KeyId:()=>E$,KeyExchangeMessage:()=>bA,KeepType:()=>kN,KeepInChat:()=>Zq,InteractiveMessageAdditionalMetadata:()=>qq,InteractiveAnnotation_StatusLinkType:()=>JR,InteractiveAnnotation:()=>V$,InlineContact:()=>Kq,InThreadSurveyMetadata_InThreadSurveyQuestion:()=>Jq,InThreadSurveyMetadata_InThreadSurveyPrivacyStatementPart:()=>Qq,InThreadSurveyMetadata_InThreadSurveyOption:()=>$q,InThreadSurveyMetadata:()=>e8,IdentityVerificationState:()=>s8,IdentityKeyPairStructure:()=>nA,HydratedTemplateButton_HydratedURLButton_WebviewPresentationType:()=>QR,HydratedTemplateButton_HydratedURLButton:()=>a8,HydratedTemplateButton_HydratedQuickReplyButton:()=>t8,HydratedTemplateButton_HydratedCallButton:()=>r8,HydratedTemplateButton:()=>g8,HistorySync_HistorySyncType:()=>$R,HistorySync_BotAIWaitListState:()=>eO,HistorySyncMsg:()=>m8,HistorySync:()=>n5,HatchMetadataSync:()=>i8,HandshakeMessage_ServerHello:()=>o8,HandshakeMessage_HandshakePqMode:()=>sO,HandshakeMessage_ClientHello:()=>b8,HandshakeMessage_ClientFinish:()=>n8,HandshakeMessage:()=>d5,GroupRootKeyShareEntry:()=>d8,GroupRootKeyShare:()=>c8,GroupParticipant_Rank:()=>aO,GroupParticipant:()=>j8,GroupMention:()=>w8,GroupHistoryWithMessageBytes:()=>dA,GroupHistoryIndividualMessageInfo:()=>u8,GroupHistoryBundleInfo_ProcessState:()=>tO,GroupHistoryBundleInfo:()=>p8,GroupHistory:()=>cA,GlobalSettings:()=>l8,GenerateMekRosterHashResult:()=>jA,GenerateMekRosterHashInput:()=>h8,GenerateMekResult:()=>wA,GenerateMekInput:()=>_8,ForwardedAIBotMessageInfo:()=>f8,FingerprintData_HostedState:()=>rO,FingerprintData:()=>r$,Field_SubfieldEntry:()=>v5,Field:()=>l$,ExternalBlobReference:()=>iQ,ExtendedContentMessage_extendedContentMessageOverlayIconGlyph:()=>gO,ExtendedContentMessage_CTA:()=>v8,ExtendedContentMessage:()=>uA,ExitCode:()=>oQ,EventResponse:()=>y8,EventAdditionalMetadata:()=>T8,EpochSignatures:()=>xQ,EpochPublicData:()=>r,Epoch0Output:()=>I8,EphemeralSetting:()=>pA,EncryptedSecretValuesOutput:()=>S8,EncryptedPairingRequest:()=>lA,EncryptMessageOutput:()=>hA,EncryptMessageInput:()=>W8,EncryptMeksForDistributionFromTransportSenderResult:()=>_A,EncryptMeksForDistributionFromTransportSenderInput_TransportSigningKP:()=>M8,EncryptMeksForDistributionFromTransportSenderInput:()=>E8,EncryptMekForDistributionResult:()=>fA,EncryptMekForDistributionInput_MailboxAuthKP:()=>A8,EncryptMekForDistributionInput:()=>R8,EmbeddedMusic:()=>z$,EmbeddedMessage:()=>O8,EmbeddedContent:()=>N8,DisappearingMode_Trigger:()=>mO,DisappearingMode_Initiator:()=>iO,DisappearingMode:()=>A$,DeviceProps_PlatformType:()=>oO,DeviceProps_HistorySyncConfig:()=>kQ,DeviceProps_AppVersion:()=>B8,DeviceProps:()=>c5,DeviceOutput:()=>x8,DeviceListMetadata:()=>k8,DeviceConsistencyCodeMessage:()=>vA,DeviceCapabilities_UserHasAvatar:()=>P8,DeviceCapabilities_MemberNameTagPrimarySupport:()=>nO,DeviceCapabilities_LIDMigration:()=>L8,DeviceCapabilities_ContactRefresh:()=>F8,DeviceCapabilities_ChatLockSupportLevel:()=>dO,DeviceCapabilities_BusinessBroadcast:()=>D8,DeviceCapabilities_BizAiSettingsSync:()=>C8,DeviceCapabilities_AiThread_SupportLevel:()=>bO,DeviceCapabilities_AiThread:()=>U8,DeviceCapabilities_AiFbidMigration:()=>G8,DeviceCapabilities:()=>g$,DetachedDevicePublicData:()=>H$,DeriveMessagingMailboxKeypairsSuccess:()=>z8,DeriveMessagingMailboxKeypairsResult:()=>yA,DeriveMessagingMailboxKeypairsInput:()=>H8,DeriveMessageKeyOutput:()=>TA,DeriveMessageKeyInput:()=>V8,DeriveMailboxSigningKeypairSuccess:()=>Y8,DeriveMailboxSigningKeypairResult:()=>IA,DeriveMailboxSigningKeypairInput:()=>X8,DeriveMailboxEncryptionKeypairResult:()=>SA,DeriveMailboxEncryptionKeypairInput:()=>Z8,DeriveMailboxAuthKeypairResult:()=>WA,DeriveMailboxAuthKeypairInput:()=>q8,DeriveAttachmentPrimaryKeySecretResult:()=>MA,DeriveAttachmentPrimaryKeySecretInput:()=>K8,DeriveAttachmentAccessTokenSecretResult:()=>EA,DeriveAttachmentAccessTokenSecretInput:()=>J8,DecryptSelfMmkDistributionSuccess:()=>Q8,DecryptSelfMmkDistributionResult:()=>AA,DecryptSelfMmkDistributionInput:()=>$8,DecryptMessageOutput:()=>RA,DecryptMessageInput:()=>eK,DecryptMekForDistributionSuccess:()=>sK,DecryptMekForDistributionResult:()=>OA,DecryptMekForDistributionInput:()=>aK,DecryptMekForDistributionFromTransportSenderSuccess:()=>tK,DecryptMekForDistributionFromTransportSenderResult:()=>NA,DecryptMekForDistributionFromTransportSenderInput_TransportSenderMEKDistributionSingleRecipient:()=>rK,DecryptMekForDistributionFromTransportSenderInput:()=>gK,CreateBackupOutput:()=>BA,CreateBackupInput:()=>mK,Conversation_GroupAppealStatus:()=>cO,Conversation_EndOfHistoryTransferType:()=>jO,Conversation:()=>iK,ContextInfo_UTMInfo:()=>oK,ContextInfo_StatusSourceType:()=>yO,ContextInfo_StatusAudienceMetadata_AudienceType:()=>wO,ContextInfo_StatusAudienceMetadata:()=>bK,ContextInfo_StatusAttributionType:()=>TO,ContextInfo_QuotedType:()=>IO,ContextInfo_QuestionReplyQuotedMessage:()=>nK,ContextInfo_PartiallySelectedContent:()=>dK,ContextInfo_PairedMediaType:()=>SO,ContextInfo_InstagramThreadLink:()=>cK,ContextInfo_ForwardedNewsletterMessageInfo_ContentType:()=>uO,ContextInfo_ForwardedNewsletterMessageInfo:()=>PQ,ContextInfo_ForwardOrigin:()=>WO,ContextInfo_FeatureEligibilities:()=>jK,ContextInfo_ExternalAdReplyInfo_MediaType:()=>pO,ContextInfo_ExternalAdReplyInfo_AdType:()=>lO,ContextInfo_ExternalAdReplyInfo:()=>wK,ContextInfo_DataSharingContext_Parameters:()=>ZQ,ContextInfo_DataSharingContext_DataSharingFlags:()=>hO,ContextInfo_DataSharingContext:()=>uK,ContextInfo_CrossAppSource:()=>MO,ContextInfo_BusinessMessageForwardInfo:()=>pK,ContextInfo_BusinessInteractionPills_UnauthenticatedBusinessMetadata:()=>lK,ContextInfo_BusinessInteractionPills_SignedPayload:()=>xA,ContextInfo_BusinessInteractionPills_PillType:()=>_O,ContextInfo_BusinessInteractionPills_Pill:()=>LQ,ContextInfo_BusinessInteractionPills_EntryPoint:()=>fO,ContextInfo_BusinessInteractionPills:()=>hK,ContextInfo_AdReplyInfo_MediaType:()=>vO,ContextInfo_AdReplyInfo:()=>_K,ContextInfo:()=>W,ConsumerApplication_consumerApplicationExtendedTextMessagePreviewType:()=>EO,ConsumerApplication_ViewOnceMessage:()=>fK,ConsumerApplication_VideoMessage:()=>FQ,ConsumerApplication_SubProtocolPayload:()=>vK,ConsumerApplication_StickerMessage:()=>yK,ConsumerApplication_StatusTextMesage:()=>TK,ConsumerApplication_Signal:()=>IK,ConsumerApplication_RevokeMessage:()=>SK,ConsumerApplication_ReactionMessage:()=>WK,ConsumerApplication_PollVoteMessage:()=>kA,ConsumerApplication_PollUpdateMessage:()=>MK,ConsumerApplication_PollEncValue:()=>m$,ConsumerApplication_PollCreationMessage:()=>EK,ConsumerApplication_PollAddOptionMessage:()=>PA,ConsumerApplication_Point:()=>AK,ConsumerApplication_Payload:()=>RK,ConsumerApplication_Option:()=>DQ,ConsumerApplication_Metadata:()=>OK,ConsumerApplication_MediaPayload:()=>LA,ConsumerApplication_LocationMessage:()=>NK,ConsumerApplication_Location:()=>R$,ConsumerApplication_LiveLocationMessage:()=>BK,ConsumerApplication_InteractiveAnnotation:()=>FA,ConsumerApplication_ImageMessage:()=>CQ,ConsumerApplication_GroupInviteMessage:()=>xK,ConsumerApplication_ExtendedTextMessage:()=>UQ,ConsumerApplication_EditMessage:()=>kK,ConsumerApplication_DocumentMessage:()=>PK,ConsumerApplication_Content:()=>LK,ConsumerApplication_ContactsArrayMessage:()=>FK,ConsumerApplication_ContactMessage:()=>GQ,ConsumerApplication_AudioMessage:()=>DK,ConsumerApplication_ApplicationData:()=>CK,ConsumerApplication:()=>DA,Config_FieldEntry:()=>y5,Config:()=>CA,CompanionEphemeralIdentity:()=>UA,CompanionCommitment:()=>UK,CommentMetadata:()=>GK,Command:()=>zQ,CombinedFingerprint:()=>GA,CollectionName:()=>UN,CoexStateSync_Mutation:()=>zK,CoexStateSync_CollectionMutations:()=>HK,CoexStateSync:()=>VK,ClientPayload_WebInfo_WebdPayload:()=>YK,ClientPayload_WebInfo_WebSubPlatform:()=>AO,ClientPayload_WebInfo:()=>XK,ClientPayload_UserAgent_ReleaseChannel:()=>RO,ClientPayload_UserAgent_Platform:()=>OO,ClientPayload_UserAgent_DistributionChannel:()=>NO,ClientPayload_UserAgent_DeviceType:()=>BO,ClientPayload_UserAgent_AppVersion:()=>ZK,ClientPayload_UserAgent:()=>qK,ClientPayload_TrafficAnonymization:()=>kO,ClientPayload_Product:()=>PO,ClientPayload_InteropData:()=>KK,ClientPayload_IOSAppExtension:()=>LO,ClientPayload_DevicePairingRegistrationData:()=>JK,ClientPayload_DNSSource_DNSResolutionMethod:()=>xO,ClientPayload_DNSSource:()=>QK,ClientPayload_ConnectType:()=>FO,ClientPayload_ConnectReason:()=>DO,ClientPayload_AccountType:()=>CO,ClientPayload:()=>j5,ClientPairingProps:()=>zA,Citation:()=>$K,ChatRowOpaqueData_DraftMessage_CtwaContextLinkData:()=>eJ,ChatRowOpaqueData_DraftMessage_CtwaContextData_ContextInfoExternalAdReplyInfoMediaType:()=>UO,ChatRowOpaqueData_DraftMessage_CtwaContextData:()=>sJ,ChatRowOpaqueData_DraftMessage:()=>aJ,ChatRowOpaqueData:()=>HA,ChatLockSettings:()=>HQ,CertChain_NoiseCertificate_Details:()=>w5,CertChain_NoiseCertificate:()=>h$,CertChain:()=>u5,CallLogRecord_SilenceReason:()=>GO,CallLogRecord_ParticipantInfo:()=>tJ,CallLogRecord_CallType:()=>zO,CallLogRecord_CallResult:()=>HO,CallLogRecord:()=>VQ,BotUnifiedResponseMutation_SideBySideMetadata:()=>rJ,BotUnifiedResponseMutation_MediaDetailsMetadata:()=>gJ,BotUnifiedResponseMutation:()=>mJ,BotSuggestedPromptMetadata:()=>iJ,BotSourcesMetadata_BotSourceItem_SourceProvider:()=>VO,BotSourcesMetadata_BotSourceItem:()=>oJ,BotSourcesMetadata:()=>bJ,BotSignatureVerificationUseCaseProof_CertificateSKI:()=>nJ,BotSignatureVerificationUseCaseProof_BotSignatureUseCase:()=>YO,BotSignatureVerificationUseCaseProof:()=>dJ,BotSignatureVerificationMetadata:()=>YQ,BotSessionSource:()=>VN,BotSessionMetadata:()=>cJ,BotResolvedToolCallMetadata:()=>jJ,BotRenderingMetadata_Keyword:()=>wJ,BotRenderingMetadata:()=>uJ,BotRenderingConfigMetadata:()=>pJ,BotReminderMetadata_ReminderFrequency:()=>XO,BotReminderMetadata_ReminderAction:()=>ZO,BotReminderMetadata:()=>lJ,BotQuotaMetadata_BotFeatureQuotaMetadata_BotFeatureType:()=>qO,BotQuotaMetadata_BotFeatureQuotaMetadata:()=>hJ,BotQuotaMetadata:()=>_J,BotPttPromptMetadata:()=>fJ,BotPromptSuggestions:()=>vJ,BotPromptSuggestion:()=>yJ,BotPromotionMessageMetadata_BotPromotionType:()=>KO,BotPromotionMessageMetadata:()=>TJ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_PlanningStepStatus:()=>QO,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotSearchSourceProvider:()=>$O,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningStepSectionMetadata:()=>IJ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata_BotPlanningSearchSourceProvider:()=>JO,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata:()=>SJ,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourceMetadata:()=>WJ,BotProgressIndicatorMetadata_BotPlanningStepMetadata:()=>MJ,BotProgressIndicatorMetadata:()=>EJ,BotPluginMetadata_SearchProvider:()=>eN,BotPluginMetadata_PluginType:()=>sN,BotPluginMetadata:()=>AJ,BotModelMetadata_PremiumModelStatus:()=>aN,BotModelMetadata_ModelType:()=>tN,BotModelMetadata:()=>RJ,BotModeSelectionMetadata_BotUserSelectionMode:()=>rN,BotModeSelectionMetadata:()=>OJ,BotMetricsThreadEntryPoint:()=>YN,BotMetricsMetadata:()=>NJ,BotMetricsEntryPoint:()=>XN,BotMetadata:()=>BJ,BotMessageSharingInfo:()=>xJ,BotMessageOrigin_BotMessageOriginType:()=>gN,BotMessageOriginMetadata:()=>kJ,BotMessageOrigin:()=>PJ,BotMemuMetadata:()=>LJ,BotMemoryMetadata:()=>FJ,BotMemoryFact:()=>i$,BotMediaMetadata_OrientationType:()=>mN,BotMediaMetadata:()=>x$,BotLinkedAccountsMetadata:()=>DJ,BotLinkedAccount_BotLinkedAccountType:()=>iN,BotLinkedAccount:()=>CJ,BotInfrastructureDiagnostics_BotBackend:()=>oN,BotInfrastructureDiagnostics:()=>UJ,BotImagineMetadata_ImagineType:()=>bN,BotImagineMetadata:()=>GJ,BotHistoryShareMetadata:()=>zJ,BotGroupParticipantMetadata:()=>XQ,BotGroupMetadata:()=>HJ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyResponseEventData:()=>VJ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCardImpressionEventData:()=>YJ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAImpressionEventData:()=>XJ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAClickEventData:()=>ZJ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyAbandonEventData:()=>qJ,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData:()=>KJ,BotFeedbackMessage_SideBySideSurveyMetadata_SideBySideSurveyAnalyticsData:()=>JJ,BotFeedbackMessage_SideBySideSurveyMetadata:()=>QJ,BotFeedbackMessage_ReportKind:()=>nN,BotFeedbackMessage_BotFeedbackKindMultiplePositive:()=>dN,BotFeedbackMessage_BotFeedbackKindMultipleNegative:()=>cN,BotFeedbackMessage_BotFeedbackKind:()=>jN,BotFeedbackMessage:()=>$J,BotDocumentMessageMetadata_DocumentPluginType:()=>wN,BotDocumentMessageMetadata:()=>e0,BotCommandMetadata:()=>s0,BotCapabilityMetadata_BotCapabilityType:()=>uN,BotCapabilityMetadata:()=>a0,BotAgentMetadata:()=>t0,BotAgentDeepLinkMetadata:()=>r0,BotAgeCollectionMetadata_AgeCollectionType:()=>pN,BotAgeCollectionMetadata:()=>g0,BizIdentityInfo_VerifiedLevelValue:()=>lN,BizIdentityInfo_HostStorageType:()=>hN,BizIdentityInfo_ActualActorsType:()=>_N,BizIdentityInfo:()=>VA,BizAccountPayload:()=>YA,BizAccountLinkInfo_HostStorageType:()=>fN,BizAccountLinkInfo_AccountType:()=>vN,BizAccountLinkInfo:()=>XA,BackwardEdge:()=>m0,AvatarUserSettings:()=>i0,AutoDownloadSettings:()=>P$,ActionLink:()=>o0,AccountLinkingOpaqueData:()=>ZA,Account:()=>b0,AIThreadInfo_AIThreadServerInfo:()=>n0,AIThreadInfo_AIThreadClientInfo_AIThreadType:()=>yN,AIThreadInfo_AIThreadClientInfo:()=>d0,AIThreadInfo:()=>c0,AISubscriptionUpsellMetadata:()=>j0,AISubscriptionRequestType:()=>ZN,AIRichResponseUnifiedResponse:()=>w0,AIRichResponseTableMetadata_AIRichResponseTableRow:()=>u0,AIRichResponseTableMetadata:()=>p0,AIRichResponseSubMessageType:()=>qN,AIRichResponseSubMessage:()=>l0,AIRichResponseMessageType:()=>KN,AIRichResponseMessage:()=>h0,AIRichResponseMapMetadata_AIRichResponseMapAnnotation:()=>_0,AIRichResponseMapMetadata:()=>f0,AIRichResponseLatexMetadata_AIRichResponseLatexExpression:()=>v0,AIRichResponseLatexMetadata:()=>y0,AIRichResponseInlineImageMetadata_AIRichResponseImageAlignment:()=>TN,AIRichResponseInlineImageMetadata:()=>T0,AIRichResponseImageURL:()=>k$,AIRichResponseGridImageMetadata:()=>I0,AIRichResponseDynamicMetadata_AIRichResponseDynamicMetadataType:()=>IN,AIRichResponseDynamicMetadata:()=>S0,AIRichResponseContentItemsMetadata_ContentType:()=>SN,AIRichResponseContentItemsMetadata_AIRichResponseReelItem:()=>W0,AIRichResponseContentItemsMetadata_AIRichResponseContentItemMetadata:()=>M0,AIRichResponseContentItemsMetadata:()=>E0,AIRichResponseCodeMetadata_AIRichResponseCodeHighlightType:()=>WN,AIRichResponseCodeMetadata_AIRichResponseCodeBlock:()=>A0,AIRichResponseCodeMetadata:()=>R0,AIRegenerateMetadata:()=>O0,AIQueryFanout:()=>N0,AIProvenance_Metadata:()=>o$,AIProvenance:()=>B0,AIMetadataOperation:()=>x0,AIMediaCollectionMetadata:()=>k0,AIMediaCollectionMessage:()=>P0,AIHomeState_AIHomeOption_AIHomeActionType:()=>MN,AIHomeState_AIHomeOption:()=>b$,AIHomeState:()=>qA,ADVSignedKeyIndexList:()=>p5,ADVSignedDeviceIdentityHMAC:()=>l5,ADVSignedDeviceIdentity:()=>h5,ADVKeyIndexList:()=>KA,ADVEncryptionType:()=>JN,ADVDeviceIdentity:()=>_5});function wV(){let $=this.buf,Q=this.pos,Z=0,J=0;for(let q=0;q<28;q+=7){let K=$[Q++];if(Z|=(K&127)<<q,(K&128)==0){this.pos=Q,this.assertBounds(),this.varint64Lo=Z,this.varint64Hi=J;return}}let X=$[Q++];if(Z|=(X&15)<<28,J=(X&112)>>4,(X&128)==0){this.pos=Q,this.assertBounds(),this.varint64Lo=Z,this.varint64Hi=J;return}for(let q=3;q<=31;q+=7){let K=$[Q++];if(J|=(K&127)<<q,(K&128)==0){this.pos=Q,this.assertBounds(),this.varint64Lo=Z,this.varint64Hi=J;return}}throw Error("invalid varint")}var S5=4294967296;function zV($){let Q=$[0]==="-";if(Q)$=$.slice(1);let Z=1e6,J=0,X=0;function q(K,V){let C=Number($.slice(K,V));if(X*=Z,J=J*Z+C,J>=S5)X=X+(J/S5|0),J=J%S5}return q(-24,-18),q(-18,-12),q(-12,-6),q(-6),Q?cV(J,X):UV(J,X)}function jV($,Q){let Z=UV($,Q),J=Z.hi&2147483648;if(J)Z=cV(Z.lo,Z.hi);let X=GV(Z.lo,Z.hi);return J?"-"+X:X}function GV($,Q){if({lo:$,hi:Q}=T2($,Q),Q<=2097151)return String(S5*Q+$);let Z=$&16777215,J=($>>>24|Q<<8)&16777215,X=Q>>16&65535,q=Z+J*6777216+X*6710656,K=J+X*8147497,V=X*2,C=1e7;if(q>=C)K+=Math.floor(q/C),q%=C;if(K>=C)V+=Math.floor(K/C),K%=C;return V.toString()+uV(K)+uV(q)}function T2($,Q){return{lo:$>>>0,hi:Q>>>0}}function UV($,Q){return{lo:$|0,hi:Q|0}}function cV($,Q){if(Q=~Q,$)$=~$+1;else Q+=1;return UV($,Q)}var uV=($)=>{let Q=String($);return"0000000".slice(Q.length)+Q};function dV(){let $=this.buf[this.pos++];if(($&128)===0)return this.assertBounds(),$;let Q=$&127;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 L$=y2();function y2(){let $=new DataView(new ArrayBuffer(8));if(typeof BigInt==="function"&&typeof $.getBigInt64==="function"&&typeof $.getBigUint64==="function"&&typeof $.setBigInt64==="function"&&typeof $.setBigUint64==="function"&&(!!globalThis.Deno||!!globalThis.Bun||typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){let Z=BigInt("-9223372036854775808"),J=BigInt("9223372036854775807"),X=BigInt("0"),q=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(K){let V=typeof K=="bigint"?K:BigInt(K);if(V>J||V<Z)throw Error(`invalid int64: ${K}`);return V},uParse(K){let V=typeof K=="bigint"?K:BigInt(K);if(V>q||V<X)throw Error(`invalid uint64: ${K}`);return V},enc(K){return $.setBigInt64(0,this.parse(K),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},uEnc(K){return $.setBigInt64(0,this.uParse(K),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},dec(K,V){return $.setInt32(0,K,!0),$.setInt32(4,V,!0),$.getBigInt64(0,!0)},uDec(K,V){return $.setInt32(0,K,!0),$.setInt32(4,V,!0),$.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(Z){if(typeof Z!="string")Z=Z.toString();return nV(Z),Z},uParse(Z){if(typeof Z!="string")Z=Z.toString();return bV(Z),Z},enc(Z){if(typeof Z!="string")Z=Z.toString();return nV(Z),zV(Z)},uEnc(Z){if(typeof Z!="string")Z=Z.toString();return bV(Z),zV(Z)},dec(Z,J){return jV(Z,J)},uDec(Z,J){return GV(Z,J)}}}function nV($){if(!/^-?[0-9]+$/.test($))throw Error("invalid int64: "+$)}function bV($){if(!/^[0-9]+$/.test($))throw Error("invalid uint64: "+$)}var CV;function v2($){var Q;CV=Object.assign(Object.assign({},$),{encodeUtf8Into:(Q=$.encodeUtf8Into)!==null&&Q!==void 0?Q:FV($.encodeUtf8.bind($))})}function DV(){if(!CV){let $=globalThis;if(!$.TextEncoder||!$.TextDecoder)throw Error("encoding API missing: install TextEncoder and TextDecoder on globalThis");let Q=new $.TextEncoder,Z=new $.TextDecoder,J,X={encodeUtf8(K){return Q.encode(K)},decodeUtf8(K,V){if(V){if(!J)J=new $.TextDecoder("utf-8",{fatal:!0});return J.decode(K)}return Z.decode(K)},checkUtf8(K){try{return encodeURIComponent(K),!0}catch(V){return!1}}};if(Q.encodeInto)X.encodeUtf8Into=Q.encodeInto.bind(Q);let q=String.prototype.isWellFormed;if(q)X.checkUtf8=(K)=>{return q.call(K)};v2(X)}return CV}function FV($){return(Q,Z)=>{let J=$(Q);return Z.set(J),{written:J.byteLength}}}var n$;(function($){$[$.Varint=0]="Varint",$[$.Bit64=1]="Bit64",$[$.LengthDelimited=2]="LengthDelimited",$[$.StartGroup=3]="StartGroup",$[$.EndGroup=4]="EndGroup",$[$.Bit32=5]="Bit32"})(n$||(n$={}));var f2=340282346638528860000000000000000000000,_2=-340282346638528860000000000000000000000,h2=4294967295,l2=2147483647,p2=-2147483648;class kV{constructor($){this.stackPos=[],this.encodeUtf8Into=$?FV($):DV().encodeUtf8Into,this.buffer=iV,this.viewCache=w2,this.pos=0}ensureCapacity($){let Q=this.pos+$;if(Q>this.buffer.length){let Z=this.buffer.length||u2;while(Z<Q)Z*=2;let J=new Uint8Array(Z);if(this.pos>0)J.set(this.buffer);this.buffer=J}}view(){let $=this.buffer,Q=this.viewCache;if(Q.byteLength===$.byteLength)return Q;let Z=new DataView($.buffer);return this.viewCache=Z,Z}finish(){let $=this.buffer.slice(0,this.pos);return this.pos=0,this.stackPos=[],$}fork(){return this.stackPos.push(this.pos),this.ensureCapacity(G0),this.buffer[this.pos++]=0,this}join(){let $=this.stackPos.pop();if($===void 0)throw Error("invalid state, fork stack empty");let Q=this.pos-$-G0,Z=LV(Q);if(Z>G0)this.ensureCapacity(Z-G0),this.buffer.copyWithin($+Z,$+G0,this.pos);return this.pos=$,this.uint32(Q),this.pos+=Q,this}tag($,Q){return this.uint32(($<<3|Q)>>>0)}raw($){return this.ensureCapacity($.length),this.buffer.set($,this.pos),this.pos+=$.length,this}uint32($){if(oV($),this.ensureCapacity(5),$<128)return this.buffer[this.pos++]=$,this;while($>127)this.buffer[this.pos++]=$&127|128,$>>>=7;return this.buffer[this.pos++]=$,this}int32($){if(PV($),$>=0)return this.uint32($);this.ensureCapacity(10);for(let Q=0;Q<9;Q++)this.buffer[this.pos++]=$&127|128,$>>=7;return this.buffer[this.pos++]=1,this}bool($){return this.ensureCapacity(1),this.buffer[this.pos++]=$?1:0,this}bytes($){return this.uint32($.byteLength),this.raw($)}string($){if(typeof $!=="string")$=String($);let Q=$.length;if(Q<=mV){this.ensureCapacity(Q+1);let V=this.buffer,C=this.pos;V[C++]=Q;let F=0;for(;F<Q;F++){let A=$.charCodeAt(F);if(A>127)break;V[C++]=A}if(F==Q)return this.pos=C,this}this.ensureCapacity(Q*3+5);let Z=LV(Q),J=this.buffer,X=this.pos,{written:q}=this.encodeUtf8Into($,J.subarray(X+Z)),K=LV(q);if(K!=Z)J.copyWithin(X+K,X+Z,X+Z+q);return this.uint32(q),this.pos+=q,this}float($){return j2($),this.ensureCapacity(4),this.view().setFloat32(this.pos,$,!0),this.pos+=4,this}double($){return this.ensureCapacity(8),this.view().setFloat64(this.pos,$,!0),this.pos+=8,this}fixed32($){return oV($),this.ensureCapacity(4),this.view().setUint32(this.pos,$,!0),this.pos+=4,this}sfixed32($){return PV($),this.ensureCapacity(4),this.view().setInt32(this.pos,$,!0),this.pos+=4,this}sint32($){return PV($),this.uint32(($<<1^$>>31)>>>0)}sfixed64($){let Q=L$.enc($);this.ensureCapacity(8);let Z=this.view();return Z.setInt32(this.pos,Q.lo,!0),Z.setInt32(this.pos+4,Q.hi,!0),this.pos+=8,this}fixed64($){let Q=L$.uEnc($);this.ensureCapacity(8);let Z=this.view();return Z.setInt32(this.pos,Q.lo,!0),Z.setInt32(this.pos+4,Q.hi,!0),this.pos+=8,this}int64($){let Q=L$.enc($);return this.writeVarint64(Q.lo,Q.hi)}sint64($){let Q=L$.enc($),Z=Q.hi>>31,J=Q.lo<<1^Z,X=(Q.hi<<1|Q.lo>>>31)^Z;return this.writeVarint64(J,X)}uint64($){let Q=L$.uEnc($);return this.writeVarint64(Q.lo,Q.hi)}writeVarint64($,Q){this.ensureCapacity(10);let Z=this.buffer,J=this.pos;for(let K=0;K<28;K=K+7){let V=$>>>K,C=!(V>>>7==0&&Q==0);if(Z[J++]=(C?V|128:V)&255,!C)return this.pos=J,this}let X=$>>>28&15|(Q&7)<<4,q=Q>>3!=0;if(Z[J++]=(q?X|128:X)&255,!q)return this.pos=J,this;for(let K=3;K<31;K=K+7){let V=Q>>>K,C=V>>>7!=0;if(Z[J++]=(C?V|128:V)&255,!C)return this.pos=J,this}return Z[J++]=Q>>>31&1,this.pos=J,this}}var u2=128,G0=1,iV=new Uint8Array(0),w2=new DataView(iV.buffer),mV=32;function LV($){if($<128)return 1;if($<16384)return 2;if($<2097152)return 3;if($<268435456)return 4;return 5}class xV{constructor($,Q=DV().decodeUtf8){this.decodeUtf8=Q,this.varint64Lo=0,this.varint64Hi=0,this.varint64=wV,this.uint32=dV,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 J=Q>>>3,X=Q&7;if(J<=0||X>5)throw Error("illegal tag: field no "+J+" wire type "+X);return[J,X]}skip($,Q,Z=100){let J=this.pos;switch($){case n$.Varint:while(this.buf[this.pos++]&128);break;case n$.Bit64:this.pos+=4;case n$.Bit32:this.pos+=4;break;case n$.LengthDelimited:let X=this.uint32();this.pos+=X;break;case n$.StartGroup:if(Z<=0)throw Error("maximum recursion depth reached");for(;;){let[q,K]=this.tag();if(K===n$.EndGroup){if(Q!==void 0&&q!==Q)throw Error("invalid end group tag");break}this.skip(K,q,Z-1)}break;default:throw Error("cant skip wire type "+$)}return this.assertBounds(),this.buf.subarray(J,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 this.varint64(),L$.dec(this.varint64Lo,this.varint64Hi)}uint64(){return this.varint64(),L$.uDec(this.varint64Lo,this.varint64Hi)}sint64(){this.varint64();let $=this.varint64Lo,Q=this.varint64Hi,Z=-($&1);return $=($>>>1|(Q&1)<<31)^Z,Q=Q>>>1^Z,L$.dec($,Q)}bool(){let $=this.buf[this.pos];if($<128)return this.pos++,$!==0;return this.varint64(),this.varint64Lo!==0||this.varint64Hi!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return L$.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return L$.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($){let Q=this.bytes(),Z=Q.length;if(Z<=mV){let J=Array(Z);for(let X=0;X<Z;X++){let q=Q[X];if(q>127)return this.decodeUtf8(Q,$);J[X]=q}return String.fromCharCode.apply(String,J)}return this.decodeUtf8(Q,$)}}function PV($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid int32: "+typeof $);if(!Number.isInteger($)||$>l2||$<p2)throw Error("invalid int32: "+$)}function oV($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid uint32: "+typeof $);if(!Number.isInteger($)||$>h2||$<0)throw Error("invalid uint32: "+$)}function j2($){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($)&&($>f2||$<_2))throw Error("invalid float32: "+$)}import{Buffer as eV}from"node:buffer";var $H=32,RV=2**$H,sQ=7,bQ=1<<sQ,BV=bQ-1,OV="utf8",c2="�",d2=55296,gV=56319,rV=57343,n2=4,b2=Math.floor(Math.log2(Number.MAX_SAFE_INTEGER)/sQ)*sQ;function I5($){for(let Q=0;Q<$.length;Q++){let Z=$.charCodeAt(Q);if(Z<d2||Z>rV)continue;if(Z>gV)return Q;let J=$.charCodeAt(Q+1);if(Number.isNaN(J)||J<=gV||J>rV)return Q;Q++}return-1}class eQ extends RangeError{index;codeUnit;path;constructor($,Q,Z){super(`unpaired surrogate U+${Q.toString(16).toUpperCase().padStart(n2,"0")} at index ${$} in ${Z===void 0?"a protobuf string field":`protobuf field ${Z}`}`);this.index=$;this.codeUnit=Q;this.path=Z;this.name="UnpairedSurrogateError"}}var QH=($,Q,Z)=>({low:$>>>0,high:Q|0,unsigned:Z}),tV=($,Q)=>{let Z=(Q>>>0)*RV+($>>>0);return Z<=Number.MAX_SAFE_INTEGER?Z:QH($,Q,!0)},NV=($,Q)=>{let Z=(Q|0)*RV+($>>>0);return Z>=Number.MIN_SAFE_INTEGER&&Z<=Number.MAX_SAFE_INTEGER?Z:QH($,Q,!1)},D0=($)=>{let Q=BigInt($.low>>>0);return($.unsigned?BigInt($.high>>>0):BigInt($.high|0))*BigInt(RV)+Q},aV=($)=>typeof $==="number"&&Number.isInteger($)&&$>=-2147483648&&$<=4294967295,T5=($)=>typeof $==="object"&&$!==null&&typeof $.unsigned==="boolean"&&aV($.low)&&aV($.high),o2=($)=>typeof $==="string"?JSON.stringify($):typeof $==="number"||typeof $==="bigint"?String($):typeof $,C0=($,Q)=>Error(`invalid ${$}: ${o2(Q)}`);function JH($,Q){let Z=typeof $;if(Z==="number"||Z==="bigint")return $;if(Z==="string"&&$.trim()!=="")return $;throw C0(Q,$)}var i2=/^\s*[+-]?Infinity\s*$/,m2=/^\s*NaN\s*$/;function sV($,Q){if(T5($))return Number(D0($));let Z=JH($,Q);if(typeof Z==="number")return Z;let J=Number(Z);if(Number.isNaN(J)){if(!m2.test(String(Z)))throw C0(Q,$)}else if(!Number.isFinite(J)&&!i2.test(String(Z)))throw C0(Q,$);return J}var g2=/^\s*([+-]?)(\d*)(?:\.(\d*))?(?:[eE]([+-]?\d+))?\s*$/,r2=40;function t2($){let Q=g2.exec($);if(!Q)return;let[,Z,J="",X="",q]=Q;if(J===""&&X==="")return;let K=J+X;if(/^0*$/.test(K))return 0n;let V=K.length-K.replace(/^0+/,"").length,C=K.slice(V),F=J.length+(q?Number(q):0)-V;if(F<=0||F>r2)return;let A;if(F>=C.length)A=C+"0".repeat(F-C.length);else{if(!/^0*$/.test(C.slice(F)))return;A=C.slice(0,F)}let E=BigInt(A);return Z==="-"?-E:E}function aQ($,Q){if(T5($))return D0($);let Z=JH($,Q);if(typeof Z==="bigint")return Z;if(typeof Z==="number"){if(!Number.isInteger(Z))throw C0(Q,$);return Z}try{return BigInt(Z)}catch{let J=t2(Z);if(J===void 0)throw C0(Q,$);return J}}function U0($,Q){let Z=aQ($,Q);return typeof Z==="bigint"?Number(Z):Z}class H extends kV{string($){if(!$.isWellFormed()){let Q=I5($);throw new eQ(Q,$.charCodeAt(Q))}return super.string($)}uint32($){return super.uint32(typeof $==="number"?$:U0($,"uint32"))}int32($){return super.int32(typeof $==="number"?$:U0($,"int32"))}sint32($){return super.sint32(typeof $==="number"?$:U0($,"sint32"))}fixed32($){return super.fixed32(typeof $==="number"?$:U0($,"fixed32"))}sfixed32($){return super.sfixed32(typeof $==="number"?$:U0($,"sfixed32"))}float($){return super.float(typeof $==="number"?$:sV($,"float"))}double($){return super.double(typeof $==="number"?$:sV($,"double"))}int64($){return super.int64(aQ($,"int64"))}uint64($){return super.uint64(aQ($,"uint64"))}sint64($){return super.sint64(aQ($,"sint64"))}fixed64($){return super.fixed64(aQ($,"fixed64"))}sfixed64($){return super.sfixed64(aQ($,"sfixed64"))}}class Y extends xV{utf8Buffer;wireBytes;constructor($){super($);this.utf8Buffer=eV.from($.buffer,$.byteOffset,$.byteLength),this.wireBytes=$}checkBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}readVarintWords(){let $=this.pos,Q=this.wireBytes,Z=0,J=0;for(let q=0;q<28;q+=sQ){let K=Q[$++];if(Z|=(K&BV)<<q,(K&bQ)===0)return this.pos=$,this.checkBounds(),[Z,J]}let X=Q[$++];if(Z|=(X&15)<<28,J=(X&112)>>4,(X&bQ)===0)return this.pos=$,this.checkBounds(),[Z,J];for(let q=3;q<=31;q+=sQ){let K=Q[$++];if(J|=(K&BV)<<q,(K&bQ)===0)return this.pos=$,this.checkBounds(),[Z,J]}throw Error("invalid varint")}string($){if($)return super.string(!0);let Q=this.uint32(),Z=this.pos;return this.pos+=Q,this.checkBounds(),this.utf8Buffer.toString(OV,Z,this.pos)}bool(){let $=this.wireBytes[this.pos++];if(($&bQ)===0)return this.checkBounds(),$!==0;this.pos--;let[Q,Z]=this.readVarintWords();return Q!==0||Z!==0}positiveSafeVarint(){let $=this.pos,Q=0,Z=1;for(let J=0;J<=b2;J+=sQ){let X=this.wireBytes[this.pos++];if(Q+=(X&BV)*Z,(X&bQ)===0){if(this.checkBounds(),Q<=Number.MAX_SAFE_INTEGER)return Q;break}Z*=bQ}this.pos=$;return}uint64Value(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[Q,Z]=this.readVarintWords();return tV(Q,Z)}int64Value(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[Q,Z]=this.readVarintWords();return NV(Q,Z)}sint64Value(){let[$,Q]=this.readVarintWords(),Z=-($&1);return $=($>>>1|(Q&1)<<$H-1)^Z,Q=Q>>>1^Z,NV($,Q)}fixed64Value(){return tV(this.sfixed32(),this.sfixed32())}sfixed64Value(){return NV(this.sfixed32(),this.sfixed32())}}class F0 extends Y{invalidUtf8Fields=0;string($){if($)return super.string(!0);let Q=this.uint32(),Z=this.pos;this.pos+=Q,this.checkBounds();let J=this.utf8Buffer.toString(OV,Z,this.pos);if(J.includes(c2)&&!this.decodedExactly(J,Z,this.pos))this.invalidUtf8Fields++;return J}decodedExactly($,Q,Z){let J=eV.from($,OV);return this.utf8Buffer.compare(J,0,J.length,Q,Z)===0}}var a2="whatsapp",JN;((X)=>{X[X.E2EE=0]="E2EE";X[X.HOSTED=1]="HOSTED";X[X.NON_E2EE=2]="NON_E2EE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JN||={});var KN;((J)=>{J[J.AI_RICH_RESPONSE_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_TYPE_UNKNOWN";J[J.AI_RICH_RESPONSE_TYPE_STANDARD=1]="AI_RICH_RESPONSE_TYPE_STANDARD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KN||={});var qN;((E)=>{E[E.AI_RICH_RESPONSE_UNKNOWN=0]="AI_RICH_RESPONSE_UNKNOWN";E[E.AI_RICH_RESPONSE_GRID_IMAGE=1]="AI_RICH_RESPONSE_GRID_IMAGE";E[E.AI_RICH_RESPONSE_TEXT=2]="AI_RICH_RESPONSE_TEXT";E[E.AI_RICH_RESPONSE_INLINE_IMAGE=3]="AI_RICH_RESPONSE_INLINE_IMAGE";E[E.AI_RICH_RESPONSE_TABLE=4]="AI_RICH_RESPONSE_TABLE";E[E.AI_RICH_RESPONSE_CODE=5]="AI_RICH_RESPONSE_CODE";E[E.AI_RICH_RESPONSE_DYNAMIC=6]="AI_RICH_RESPONSE_DYNAMIC";E[E.AI_RICH_RESPONSE_MAP=7]="AI_RICH_RESPONSE_MAP";E[E.AI_RICH_RESPONSE_LATEX=8]="AI_RICH_RESPONSE_LATEX";E[E.AI_RICH_RESPONSE_CONTENT_ITEMS=9]="AI_RICH_RESPONSE_CONTENT_ITEMS";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qN||={});var ZN;((q)=>{q[q.UNSPECIFIED=0]="UNSPECIFIED";q[q.THINK_HARD=1]="THINK_HARD";q[q.IMAGE_GEN=2]="IMAGE_GEN";q[q.VIDEO_GEN=3]="VIDEO_GEN";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZN||={});var XN;((S)=>{S[S.UNDEFINED_ENTRY_POINT=0]="UNDEFINED_ENTRY_POINT";S[S.FAVICON=1]="FAVICON";S[S.CHATLIST=2]="CHATLIST";S[S.AISEARCH_NULL_STATE_PAPER_PLANE=3]="AISEARCH_NULL_STATE_PAPER_PLANE";S[S.AISEARCH_NULL_STATE_SUGGESTION=4]="AISEARCH_NULL_STATE_SUGGESTION";S[S.AISEARCH_TYPE_AHEAD_SUGGESTION=5]="AISEARCH_TYPE_AHEAD_SUGGESTION";S[S.AISEARCH_TYPE_AHEAD_PAPER_PLANE=6]="AISEARCH_TYPE_AHEAD_PAPER_PLANE";S[S.AISEARCH_TYPE_AHEAD_RESULT_CHATLIST=7]="AISEARCH_TYPE_AHEAD_RESULT_CHATLIST";S[S.AISEARCH_TYPE_AHEAD_RESULT_MESSAGES=8]="AISEARCH_TYPE_AHEAD_RESULT_MESSAGES";S[S.AIVOICE_SEARCH_BAR=9]="AIVOICE_SEARCH_BAR";S[S.AIVOICE_FAVICON=10]="AIVOICE_FAVICON";S[S.AISTUDIO=11]="AISTUDIO";S[S.DEEPLINK=12]="DEEPLINK";S[S.NOTIFICATION=13]="NOTIFICATION";S[S.PROFILE_MESSAGE_BUTTON=14]="PROFILE_MESSAGE_BUTTON";S[S.FORWARD=15]="FORWARD";S[S.APP_SHORTCUT=16]="APP_SHORTCUT";S[S.FF_FAMILY=17]="FF_FAMILY";S[S.AI_TAB=18]="AI_TAB";S[S.AI_HOME=19]="AI_HOME";S[S.AI_DEEPLINK_IMMERSIVE=20]="AI_DEEPLINK_IMMERSIVE";S[S.AI_DEEPLINK=21]="AI_DEEPLINK";S[S.META_AI_CHAT_SHORTCUT_AI_STUDIO=22]="META_AI_CHAT_SHORTCUT_AI_STUDIO";S[S.UGC_CHAT_SHORTCUT_AI_STUDIO=23]="UGC_CHAT_SHORTCUT_AI_STUDIO";S[S.NEW_CHAT_AI_STUDIO=24]="NEW_CHAT_AI_STUDIO";S[S.AIVOICE_FAVICON_CALL_HISTORY=25]="AIVOICE_FAVICON_CALL_HISTORY";S[S.ASK_META_AI_CONTEXT_MENU=26]="ASK_META_AI_CONTEXT_MENU";S[S.ASK_META_AI_CONTEXT_MENU_1ON1=27]="ASK_META_AI_CONTEXT_MENU_1ON1";S[S.ASK_META_AI_CONTEXT_MENU_GROUP=28]="ASK_META_AI_CONTEXT_MENU_GROUP";S[S.INVOKE_META_AI_1ON1=29]="INVOKE_META_AI_1ON1";S[S.INVOKE_META_AI_GROUP=30]="INVOKE_META_AI_GROUP";S[S.META_AI_FORWARD=31]="META_AI_FORWARD";S[S.NEW_CHAT_AI_CONTACT=32]="NEW_CHAT_AI_CONTACT";S[S.MESSAGE_QUICK_ACTION_1_ON_1_CHAT=33]="MESSAGE_QUICK_ACTION_1_ON_1_CHAT";S[S.MESSAGE_QUICK_ACTION_GROUP_CHAT=34]="MESSAGE_QUICK_ACTION_GROUP_CHAT";S[S.ATTACHMENT_TRAY_1_ON_1_CHAT=35]="ATTACHMENT_TRAY_1_ON_1_CHAT";S[S.ATTACHMENT_TRAY_GROUP_CHAT=36]="ATTACHMENT_TRAY_GROUP_CHAT";S[S.ASK_META_AI_MEDIA_VIEWER_1ON1=37]="ASK_META_AI_MEDIA_VIEWER_1ON1";S[S.ASK_META_AI_MEDIA_VIEWER_GROUP=38]="ASK_META_AI_MEDIA_VIEWER_GROUP";S[S.MEDIA_PICKER_1_ON_1_CHAT=39]="MEDIA_PICKER_1_ON_1_CHAT";S[S.MEDIA_PICKER_GROUP_CHAT=40]="MEDIA_PICKER_GROUP_CHAT";S[S.ASK_META_AI_NO_SEARCH_RESULTS=41]="ASK_META_AI_NO_SEARCH_RESULTS";S[S.META_AI_SETTINGS=45]="META_AI_SETTINGS";S[S.WEB_INTRO_PANEL=46]="WEB_INTRO_PANEL";S[S.WEB_NAVIGATION_BAR=47]="WEB_NAVIGATION_BAR";S[S.GROUP_MEMBER=54]="GROUP_MEMBER";S[S.CHATLIST_SEARCH=55]="CHATLIST_SEARCH";S[S.NEW_CHAT_LIST=56]="NEW_CHAT_LIST";S[S.CONTACTS_TAB=57]="CONTACTS_TAB";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XN||={});var YN;((K)=>{K[K.AI_TAB_THREAD=1]="AI_TAB_THREAD";K[K.AI_HOME_THREAD=2]="AI_HOME_THREAD";K[K.AI_DEEPLINK_IMMERSIVE_THREAD=3]="AI_DEEPLINK_IMMERSIVE_THREAD";K[K.AI_DEEPLINK_THREAD=4]="AI_DEEPLINK_THREAD";K[K.ASK_META_AI_CONTEXT_MENU_THREAD=5]="ASK_META_AI_CONTEXT_MENU_THREAD";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YN||={});var VN;((F)=>{F[F.NONE=0]="NONE";F[F.NULL_STATE=1]="NULL_STATE";F[F.TYPEAHEAD=2]="TYPEAHEAD";F[F.USER_INPUT=3]="USER_INPUT";F[F.EMU_FLASH=4]="EMU_FLASH";F[F.EMU_FLASH_FOLLOWUP=5]="EMU_FLASH_FOLLOWUP";F[F.VOICE=6]="VOICE";F[F.AI_HOME_SESSION=7]="AI_HOME_SESSION";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VN||={});var HN;((q)=>{q[q.EVERYONE=1]="EVERYONE";q[q.SILENT=2]="SILENT";q[q.AI=3]="AI";q[q.AI_IMAGINE=4]="AI_IMAGINE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HN||={});var zN;((X)=>{X[X.SMALL=1]="SMALL";X[X.MEDIUM=2]="MEDIUM";X[X.LARGE=3]="LARGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zN||={});var GN;((V)=>{V[V.SANS_SERIF=0]="SANS_SERIF";V[V.SERIF=1]="SERIF";V[V.NORICAN_REGULAR=2]="NORICAN_REGULAR";V[V.BRYNDAN_WRITE=3]="BRYNDAN_WRITE";V[V.BEBASNEUE_REGULAR=4]="BEBASNEUE_REGULAR";V[V.OSWALD_HEAVY=5]="OSWALD_HEAVY";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GN||={});var UN;((V)=>{V[V.COLLECTION_NAME_UNKNOWN=0]="COLLECTION_NAME_UNKNOWN";V[V.REGULAR=1]="REGULAR";V[V.REGULAR_LOW=2]="REGULAR_LOW";V[V.REGULAR_HIGH=3]="REGULAR_HIGH";V[V.CRITICAL_BLOCK=4]="CRITICAL_BLOCK";V[V.CRITICAL_UNBLOCK_LOW=5]="CRITICAL_UNBLOCK_LOW";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UN||={});var CN;((Z)=>{Z[Z.OPEN_NATIVE=11]="OPEN_NATIVE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CN||={});var DN;((k)=>{k[k.UNSUPPORTED=-1]="UNSUPPORTED";k[k.IG_STORY_PHOTO_MENTION=4]="IG_STORY_PHOTO_MENTION";k[k.IG_SINGLE_IMAGE_POST_SHARE=9]="IG_SINGLE_IMAGE_POST_SHARE";k[k.IG_MULTIPOST_SHARE=10]="IG_MULTIPOST_SHARE";k[k.IG_SINGLE_VIDEO_POST_SHARE=11]="IG_SINGLE_VIDEO_POST_SHARE";k[k.IG_STORY_PHOTO_SHARE=12]="IG_STORY_PHOTO_SHARE";k[k.IG_STORY_VIDEO_SHARE=13]="IG_STORY_VIDEO_SHARE";k[k.IG_CLIPS_SHARE=14]="IG_CLIPS_SHARE";k[k.IG_IGTV_SHARE=15]="IG_IGTV_SHARE";k[k.IG_SHOP_SHARE=16]="IG_SHOP_SHARE";k[k.IG_PROFILE_SHARE=19]="IG_PROFILE_SHARE";k[k.IG_STORY_PHOTO_HIGHLIGHT_SHARE=20]="IG_STORY_PHOTO_HIGHLIGHT_SHARE";k[k.IG_STORY_VIDEO_HIGHLIGHT_SHARE=21]="IG_STORY_VIDEO_HIGHLIGHT_SHARE";k[k.IG_STORY_REPLY=22]="IG_STORY_REPLY";k[k.IG_STORY_REACTION=23]="IG_STORY_REACTION";k[k.IG_STORY_VIDEO_MENTION=24]="IG_STORY_VIDEO_MENTION";k[k.IG_STORY_HIGHLIGHT_REPLY=25]="IG_STORY_HIGHLIGHT_REPLY";k[k.IG_STORY_HIGHLIGHT_REACTION=26]="IG_STORY_HIGHLIGHT_REACTION";k[k.IG_EXTERNAL_LINK=27]="IG_EXTERNAL_LINK";k[k.IG_RECEIVER_FETCH=28]="IG_RECEIVER_FETCH";k[k.FB_FEED_SHARE=1000]="FB_FEED_SHARE";k[k.FB_STORY_REPLY=1001]="FB_STORY_REPLY";k[k.FB_STORY_SHARE=1002]="FB_STORY_SHARE";k[k.FB_STORY_MENTION=1003]="FB_STORY_MENTION";k[k.FB_FEED_VIDEO_SHARE=1004]="FB_FEED_VIDEO_SHARE";k[k.FB_GAMING_CUSTOM_UPDATE=1005]="FB_GAMING_CUSTOM_UPDATE";k[k.FB_PRODUCER_STORY_REPLY=1006]="FB_PRODUCER_STORY_REPLY";k[k.FB_EVENT=1007]="FB_EVENT";k[k.FB_FEED_POST_PRIVATE_REPLY=1008]="FB_FEED_POST_PRIVATE_REPLY";k[k.FB_SHORT=1009]="FB_SHORT";k[k.FB_COMMENT_MENTION_SHARE=1010]="FB_COMMENT_MENTION_SHARE";k[k.FB_POST_MENTION=1011]="FB_POST_MENTION";k[k.FB_PROFILE_DIRECTORY_ITEM=1013]="FB_PROFILE_DIRECTORY_ITEM";k[k.FB_FEED_POST_REACTION_REPLY=1014]="FB_FEED_POST_REACTION_REPLY";k[k.FB_QUICKSNAP_REPLY=1015]="FB_QUICKSNAP_REPLY";k[k.MSG_EXTERNAL_LINK_SHARE=2000]="MSG_EXTERNAL_LINK_SHARE";k[k.MSG_P2P_PAYMENT=2001]="MSG_P2P_PAYMENT";k[k.MSG_LOCATION_SHARING=2002]="MSG_LOCATION_SHARING";k[k.MSG_LOCATION_SHARING_V2=2003]="MSG_LOCATION_SHARING_V2";k[k.MSG_HIGHLIGHTS_TAB_FRIEND_UPDATES_REPLY=2004]="MSG_HIGHLIGHTS_TAB_FRIEND_UPDATES_REPLY";k[k.MSG_HIGHLIGHTS_TAB_LOCAL_EVENT_REPLY=2005]="MSG_HIGHLIGHTS_TAB_LOCAL_EVENT_REPLY";k[k.MSG_RECEIVER_FETCH=2006]="MSG_RECEIVER_FETCH";k[k.MSG_IG_MEDIA_SHARE=2007]="MSG_IG_MEDIA_SHARE";k[k.MSG_GEN_AI_SEARCH_PLUGIN_RESPONSE=2008]="MSG_GEN_AI_SEARCH_PLUGIN_RESPONSE";k[k.MSG_REELS_LIST=2009]="MSG_REELS_LIST";k[k.MSG_CONTACT=2010]="MSG_CONTACT";k[k.MSG_THREADS_POST_SHARE=2011]="MSG_THREADS_POST_SHARE";k[k.MSG_FILE=2012]="MSG_FILE";k[k.MSG_AVATAR_DETAILS=2013]="MSG_AVATAR_DETAILS";k[k.MSG_AI_CONTACT=2014]="MSG_AI_CONTACT";k[k.MSG_MEMORIES_SHARE=2015]="MSG_MEMORIES_SHARE";k[k.MSG_SHARED_ALBUM_REPLY=2016]="MSG_SHARED_ALBUM_REPLY";k[k.MSG_SHARED_ALBUM=2017]="MSG_SHARED_ALBUM";k[k.MSG_OCCAMADILLO_XMA=2018]="MSG_OCCAMADILLO_XMA";k[k.MSG_GEN_AI_SUBSCRIPTION=2021]="MSG_GEN_AI_SUBSCRIPTION";k[k.MSG_GEN_AI_REMINDER=2022]="MSG_GEN_AI_REMINDER";k[k.MSG_GEN_AI_MEMU_ONBOARDING_RESPONSE=2023]="MSG_GEN_AI_MEMU_ONBOARDING_RESPONSE";k[k.MSG_NOTE_REPLY=2024]="MSG_NOTE_REPLY";k[k.MSG_NOTE_MENTION=2025]="MSG_NOTE_MENTION";k[k.GEN_AI_ENTITY=2026]="GEN_AI_ENTITY";k[k.MSG_OPG_P2P_PAYMENT=2027]="MSG_OPG_P2P_PAYMENT";k[k.GEN_AI_RICH_RESPONSE=2028]="GEN_AI_RICH_RESPONSE";k[k.MSG_MUSIC_STICKER=2029]="MSG_MUSIC_STICKER";k[k.MSG_PHONE_NUMBER=2030]="MSG_PHONE_NUMBER";k[k.AI_ACTIVITY_SHARE=2031]="AI_ACTIVITY_SHARE";k[k.MSG_PRIVATE_XMA=2032]="MSG_PRIVATE_XMA";k[k.MSG_SOCIAL_CUE_MEMORIES=2033]="MSG_SOCIAL_CUE_MEMORIES";k[k.MSG_MANUS_GROWTH_REFERRAL=2060]="MSG_MANUS_GROWTH_REFERRAL";k[k.MSG_MOMENT_LINK=2061]="MSG_MOMENT_LINK";k[k.MSG_HORIZON_WEEL=2062]="MSG_HORIZON_WEEL";k[k.MSG_MOMENT_ADDED=2063]="MSG_MOMENT_ADDED";k[k.RTC_AUDIO_CALL=3000]="RTC_AUDIO_CALL";k[k.RTC_VIDEO_CALL=3001]="RTC_VIDEO_CALL";k[k.RTC_MISSED_AUDIO_CALL=3002]="RTC_MISSED_AUDIO_CALL";k[k.RTC_MISSED_VIDEO_CALL=3003]="RTC_MISSED_VIDEO_CALL";k[k.RTC_GROUP_AUDIO_CALL=3004]="RTC_GROUP_AUDIO_CALL";k[k.RTC_GROUP_VIDEO_CALL=3005]="RTC_GROUP_VIDEO_CALL";k[k.RTC_MISSED_GROUP_AUDIO_CALL=3006]="RTC_MISSED_GROUP_AUDIO_CALL";k[k.RTC_MISSED_GROUP_VIDEO_CALL=3007]="RTC_MISSED_GROUP_VIDEO_CALL";k[k.RTC_ONGOING_AUDIO_CALL=3008]="RTC_ONGOING_AUDIO_CALL";k[k.RTC_ONGOING_VIDEO_CALL=3009]="RTC_ONGOING_VIDEO_CALL";k[k.MSG_RECEIVER_FETCH_FALLBACK=3025]="MSG_RECEIVER_FETCH_FALLBACK";k[k.DATACLASS_SENDER_COPY=4000]="DATACLASS_SENDER_COPY"})(DN||={});var FN;((X)=>{X[X.SENDER_COPY=0]="SENDER_COPY";X[X.SERVER=1]="SERVER";X[X.SIGNED_CLIENT=2]="SIGNED_CLIENT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FN||={});var LN;((V)=>{V[V.SINGLE=0]="SINGLE";V[V.HSCROLL=1]="HSCROLL";V[V.PORTRAIT=3]="PORTRAIT";V[V.STANDARD_DXMA=12]="STANDARD_DXMA";V[V.LIST_DXMA=15]="LIST_DXMA";V[V.GRID=16]="GRID";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LN||={});var PN;((X)=>{X[X.PLACEHOLDER=0]="PLACEHOLDER";X[X.NO_PLACEHOLDER=1]="NO_PLACEHOLDER";X[X.IGNORE=2]="IGNORE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PN||={});var kN;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.KEEP_FOR_ALL=1]="KEEP_FOR_ALL";X[X.UNDO_KEEP_FOR_ALL=2]="UNDO_KEEP_FOR_ALL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kN||={});var xN;((Z)=>{Z[Z.PROFILE=0]="PROFILE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xN||={});var BN;((X)=>{X[X.MEDIA_KEY_DOMAIN_UNKNOWN=0]="MEDIA_KEY_DOMAIN_UNKNOWN";X[X.MEDIA_KEY_DOMAIN_E2EE=1]="MEDIA_KEY_DOMAIN_E2EE";X[X.MEDIA_KEY_DOMAIN_NON_E2EE=2]="MEDIA_KEY_DOMAIN_NON_E2EE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BN||={});var NN;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.OFF=1]="OFF";X[X.ON=2]="ON";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NN||={});var ON;((P)=>{P[P.STAR_ACTION=2]="STAR_ACTION";P[P.CONTACT_ACTION=3]="CONTACT_ACTION";P[P.MUTE_ACTION=4]="MUTE_ACTION";P[P.PIN_ACTION=5]="PIN_ACTION";P[P.SECURITY_NOTIFICATION_SETTING=6]="SECURITY_NOTIFICATION_SETTING";P[P.PUSH_NAME_SETTING=7]="PUSH_NAME_SETTING";P[P.QUICK_REPLY_ACTION=8]="QUICK_REPLY_ACTION";P[P.RECENT_EMOJI_WEIGHTS_ACTION=11]="RECENT_EMOJI_WEIGHTS_ACTION";P[P.LABEL_MESSAGE_ACTION=13]="LABEL_MESSAGE_ACTION";P[P.LABEL_EDIT_ACTION=14]="LABEL_EDIT_ACTION";P[P.LABEL_ASSOCIATION_ACTION=15]="LABEL_ASSOCIATION_ACTION";P[P.LOCALE_SETTING=16]="LOCALE_SETTING";P[P.ARCHIVE_CHAT_ACTION=17]="ARCHIVE_CHAT_ACTION";P[P.DELETE_MESSAGE_FOR_ME_ACTION=18]="DELETE_MESSAGE_FOR_ME_ACTION";P[P.KEY_EXPIRATION=19]="KEY_EXPIRATION";P[P.MARK_CHAT_AS_READ_ACTION=20]="MARK_CHAT_AS_READ_ACTION";P[P.CLEAR_CHAT_ACTION=21]="CLEAR_CHAT_ACTION";P[P.DELETE_CHAT_ACTION=22]="DELETE_CHAT_ACTION";P[P.UNARCHIVE_CHATS_SETTING=23]="UNARCHIVE_CHATS_SETTING";P[P.PRIMARY_FEATURE=24]="PRIMARY_FEATURE";P[P.ANDROID_UNSUPPORTED_ACTIONS=26]="ANDROID_UNSUPPORTED_ACTIONS";P[P.AGENT_ACTION=27]="AGENT_ACTION";P[P.SUBSCRIPTION_ACTION=28]="SUBSCRIPTION_ACTION";P[P.USER_STATUS_MUTE_ACTION=29]="USER_STATUS_MUTE_ACTION";P[P.TIME_FORMAT_ACTION=30]="TIME_FORMAT_ACTION";P[P.NUX_ACTION=31]="NUX_ACTION";P[P.PRIMARY_VERSION_ACTION=32]="PRIMARY_VERSION_ACTION";P[P.STICKER_ACTION=33]="STICKER_ACTION";P[P.REMOVE_RECENT_STICKER_ACTION=34]="REMOVE_RECENT_STICKER_ACTION";P[P.CHAT_ASSIGNMENT=35]="CHAT_ASSIGNMENT";P[P.CHAT_ASSIGNMENT_OPENED_STATUS=36]="CHAT_ASSIGNMENT_OPENED_STATUS";P[P.PN_FOR_LID_CHAT_ACTION=37]="PN_FOR_LID_CHAT_ACTION";P[P.MARKETING_MESSAGE_ACTION=38]="MARKETING_MESSAGE_ACTION";P[P.MARKETING_MESSAGE_BROADCAST_ACTION=39]="MARKETING_MESSAGE_BROADCAST_ACTION";P[P.EXTERNAL_WEB_BETA_ACTION=40]="EXTERNAL_WEB_BETA_ACTION";P[P.PRIVACY_SETTING_RELAY_ALL_CALLS=41]="PRIVACY_SETTING_RELAY_ALL_CALLS";P[P.CALL_LOG_ACTION=42]="CALL_LOG_ACTION";P[P.UGC_BOT=43]="UGC_BOT";P[P.STATUS_PRIVACY=44]="STATUS_PRIVACY";P[P.BOT_WELCOME_REQUEST_ACTION=45]="BOT_WELCOME_REQUEST_ACTION";P[P.DELETE_INDIVIDUAL_CALL_LOG=46]="DELETE_INDIVIDUAL_CALL_LOG";P[P.LABEL_REORDERING_ACTION=47]="LABEL_REORDERING_ACTION";P[P.PAYMENT_INFO_ACTION=48]="PAYMENT_INFO_ACTION";P[P.CUSTOM_PAYMENT_METHODS_ACTION=49]="CUSTOM_PAYMENT_METHODS_ACTION";P[P.LOCK_CHAT_ACTION=50]="LOCK_CHAT_ACTION";P[P.CHAT_LOCK_SETTINGS=51]="CHAT_LOCK_SETTINGS";P[P.WAMO_USER_IDENTIFIER_ACTION=52]="WAMO_USER_IDENTIFIER_ACTION";P[P.PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION=53]="PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION";P[P.DEVICE_CAPABILITIES=54]="DEVICE_CAPABILITIES";P[P.NOTE_EDIT_ACTION=55]="NOTE_EDIT_ACTION";P[P.FAVORITES_ACTION=56]="FAVORITES_ACTION";P[P.MERCHANT_PAYMENT_PARTNER_ACTION=57]="MERCHANT_PAYMENT_PARTNER_ACTION";P[P.WAFFLE_ACCOUNT_LINK_STATE_ACTION=58]="WAFFLE_ACCOUNT_LINK_STATE_ACTION";P[P.USERNAME_CHAT_START_MODE=59]="USERNAME_CHAT_START_MODE";P[P.NOTIFICATION_ACTIVITY_SETTING_ACTION=60]="NOTIFICATION_ACTIVITY_SETTING_ACTION";P[P.LID_CONTACT_ACTION=61]="LID_CONTACT_ACTION";P[P.CTWA_PER_CUSTOMER_DATA_SHARING_ACTION=62]="CTWA_PER_CUSTOMER_DATA_SHARING_ACTION";P[P.PAYMENT_TOS_ACTION=63]="PAYMENT_TOS_ACTION";P[P.PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION=64]="PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION";P[P.BUSINESS_BROADCAST_ASSOCIATION_ACTION=65]="BUSINESS_BROADCAST_ASSOCIATION_ACTION";P[P.DETECTED_OUTCOMES_STATUS_ACTION=66]="DETECTED_OUTCOMES_STATUS_ACTION";P[P.MAIBA_AI_FEATURES_CONTROL_ACTION=68]="MAIBA_AI_FEATURES_CONTROL_ACTION";P[P.BUSINESS_BROADCAST_LIST_ACTION=69]="BUSINESS_BROADCAST_LIST_ACTION";P[P.MUSIC_USER_ID_ACTION=70]="MUSIC_USER_ID_ACTION";P[P.STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION=71]="STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION";P[P.AVATAR_UPDATED_ACTION=72]="AVATAR_UPDATED_ACTION";P[P.GALAXY_FLOW_ACTION=73]="GALAXY_FLOW_ACTION";P[P.PRIVATE_PROCESSING_SETTING_ACTION=74]="PRIVATE_PROCESSING_SETTING_ACTION";P[P.NEWSLETTER_SAVED_INTERESTS_ACTION=75]="NEWSLETTER_SAVED_INTERESTS_ACTION";P[P.AI_THREAD_RENAME_ACTION=76]="AI_THREAD_RENAME_ACTION";P[P.INTERACTIVE_MESSAGE_ACTION=77]="INTERACTIVE_MESSAGE_ACTION";P[P.SETTINGS_SYNC_ACTION=78]="SETTINGS_SYNC_ACTION";P[P.OUT_CONTACT_ACTION=79]="OUT_CONTACT_ACTION";P[P.NCT_SALT_SYNC_ACTION=80]="NCT_SALT_SYNC_ACTION";P[P.BUSINESS_BROADCAST_CAMPAIGN_ACTION=81]="BUSINESS_BROADCAST_CAMPAIGN_ACTION";P[P.BUSINESS_BROADCAST_INSIGHTS_ACTION=82]="BUSINESS_BROADCAST_INSIGHTS_ACTION";P[P.CUSTOMER_DATA_ACTION=83]="CUSTOMER_DATA_ACTION";P[P.SUBSCRIPTIONS_SYNC_V2_ACTION=84]="SUBSCRIPTIONS_SYNC_V2_ACTION";P[P.THREAD_PIN_ACTION=85]="THREAD_PIN_ACTION";P[P.AUTO_ORGANIZE_BUSINESS_CHAT_SETTING=86]="AUTO_ORGANIZE_BUSINESS_CHAT_SETTING";P[P.BIZ_AI_SETTINGS_NUDGE_ACTION=87]="BIZ_AI_SETTINGS_NUDGE_ACTION";P[P.COEX_V2_VERSION_ACTION=88]="COEX_V2_VERSION_ACTION";P[P.WASA_ROOT_SECRET_ACTION=89]="WASA_ROOT_SECRET_ACTION";P[P.BUBBLE_LOCK_MESSAGE_ACTION=90]="BUBBLE_LOCK_MESSAGE_ACTION";P[P.LABEL_SUBLIST_ACTION=91]="LABEL_SUBLIST_ACTION";P[P.DEVICE_CAPABILITIES_V2=92]="DEVICE_CAPABILITIES_V2";P[P.CTWA_MESSAGE_RECEIVED_ACTION=93]="CTWA_MESSAGE_RECEIVED_ACTION";P[P.SHARE_OWN_PN=10001]="SHARE_OWN_PN";P[P.BUSINESS_BROADCAST_ACTION=10002]="BUSINESS_BROADCAST_ACTION";P[P.AI_THREAD_DELETE_ACTION=10003]="AI_THREAD_DELETE_ACTION";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ON||={});var RN;((X)=>{X[X.E2EE_MSG=1]="E2EE_MSG";X[X.NE2EE_SELF=2]="NE2EE_SELF";X[X.NE2EE_OTHER=3]="NE2EE_OTHER";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RN||={});var AN;((J)=>{J[J.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";J[J.NY_AI_SAFETY_DISCLAIMER=1]="NY_AI_SAFETY_DISCLAIMER";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AN||={});var EN;((J)=>{J[J.WEBVIEW=0]="WEBVIEW";J[J.SYSTEM=1]="SYSTEM";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EN||={});var MN;((V)=>{V[V.PROMPT=0]="PROMPT";V[V.CREATE_IMAGE=1]="CREATE_IMAGE";V[V.ANIMATE_PHOTO=2]="ANIMATE_PHOTO";V[V.ANALYZE_FILE=3]="ANALYZE_FILE";V[V.COLLABORATE=4]="COLLABORATE";V[V.OPEN_GREETING_CARD=5]="OPEN_GREETING_CARD";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MN||={});var WN;((V)=>{V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT=0]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD=1]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD=2]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING=3]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER=4]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER";V[V.AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT=5]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WN||={});var SN;((J)=>{J[J.DEFAULT=0]="DEFAULT";J[J.CAROUSEL=1]="CAROUSEL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SN||={});var IN;((X)=>{X[X.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN";X[X.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE=1]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE";X[X.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF=2]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IN||={});var TN;((X)=>{X[X.AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED=0]="AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED";X[X.AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED=1]="AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED";X[X.AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED=2]="AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TN||={});var yN;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.DEFAULT=1]="DEFAULT";q[q.INCOGNITO=2]="INCOGNITO";q[q.SIDE_CHAT=3]="SIDE_CHAT";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yN||={});var vN;((Z)=>{Z[Z.ENTERPRISE=0]="ENTERPRISE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vN||={});var fN;((J)=>{J[J.ON_PREMISE=0]="ON_PREMISE";J[J.FACEBOOK=1]="FACEBOOK";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fN||={});var _N;((J)=>{J[J.SELF=0]="SELF";J[J.BSP=1]="BSP";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_N||={});var hN;((J)=>{J[J.ON_PREMISE=0]="ON_PREMISE";J[J.FACEBOOK=1]="FACEBOOK";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hN||={});var lN;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.LOW=1]="LOW";X[X.HIGH=2]="HIGH";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lN||={});var pN;((J)=>{J[J.O18_BINARY=0]="O18_BINARY";J[J.WAFFLE=1]="WAFFLE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pN||={});var uN;((O)=>{O[O.UNKNOWN=0]="UNKNOWN";O[O.PROGRESS_INDICATOR=1]="PROGRESS_INDICATOR";O[O.RICH_RESPONSE_HEADING=2]="RICH_RESPONSE_HEADING";O[O.RICH_RESPONSE_NESTED_LIST=3]="RICH_RESPONSE_NESTED_LIST";O[O.AI_MEMORY=4]="AI_MEMORY";O[O.RICH_RESPONSE_THREAD_SURFING=5]="RICH_RESPONSE_THREAD_SURFING";O[O.RICH_RESPONSE_TABLE=6]="RICH_RESPONSE_TABLE";O[O.RICH_RESPONSE_CODE=7]="RICH_RESPONSE_CODE";O[O.RICH_RESPONSE_STRUCTURED_RESPONSE=8]="RICH_RESPONSE_STRUCTURED_RESPONSE";O[O.RICH_RESPONSE_INLINE_IMAGE=9]="RICH_RESPONSE_INLINE_IMAGE";O[O.WA_IG_1P_PLUGIN_RANKING_CONTROL=10]="WA_IG_1P_PLUGIN_RANKING_CONTROL";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11]="WA_IG_1P_PLUGIN_RANKING_UPDATE_1";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12]="WA_IG_1P_PLUGIN_RANKING_UPDATE_2";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_3=13]="WA_IG_1P_PLUGIN_RANKING_UPDATE_3";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_4=14]="WA_IG_1P_PLUGIN_RANKING_UPDATE_4";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_5=15]="WA_IG_1P_PLUGIN_RANKING_UPDATE_5";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_6=16]="WA_IG_1P_PLUGIN_RANKING_UPDATE_6";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_7=17]="WA_IG_1P_PLUGIN_RANKING_UPDATE_7";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18]="WA_IG_1P_PLUGIN_RANKING_UPDATE_8";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19]="WA_IG_1P_PLUGIN_RANKING_UPDATE_9";O[O.WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20]="WA_IG_1P_PLUGIN_RANKING_UPDATE_10";O[O.RICH_RESPONSE_SUB_HEADING=21]="RICH_RESPONSE_SUB_HEADING";O[O.RICH_RESPONSE_GRID_IMAGE=22]="RICH_RESPONSE_GRID_IMAGE";O[O.AI_STUDIO_UGC_MEMORY=23]="AI_STUDIO_UGC_MEMORY";O[O.RICH_RESPONSE_LATEX=24]="RICH_RESPONSE_LATEX";O[O.RICH_RESPONSE_MAPS=25]="RICH_RESPONSE_MAPS";O[O.RICH_RESPONSE_INLINE_REELS=26]="RICH_RESPONSE_INLINE_REELS";O[O.AGENTIC_PLANNING=27]="AGENTIC_PLANNING";O[O.ACCOUNT_LINKING=28]="ACCOUNT_LINKING";O[O.STREAMING_DISAGGREGATION=29]="STREAMING_DISAGGREGATION";O[O.RICH_RESPONSE_GRID_IMAGE_3P=30]="RICH_RESPONSE_GRID_IMAGE_3P";O[O.RICH_RESPONSE_LATEX_INLINE=31]="RICH_RESPONSE_LATEX_INLINE";O[O.QUERY_PLAN=32]="QUERY_PLAN";O[O.PROACTIVE_MESSAGE=33]="PROACTIVE_MESSAGE";O[O.RICH_RESPONSE_UNIFIED_RESPONSE=34]="RICH_RESPONSE_UNIFIED_RESPONSE";O[O.PROMOTION_MESSAGE=35]="PROMOTION_MESSAGE";O[O.SIMPLIFIED_PROFILE_PAGE=36]="SIMPLIFIED_PROFILE_PAGE";O[O.RICH_RESPONSE_SOURCES_IN_MESSAGE=37]="RICH_RESPONSE_SOURCES_IN_MESSAGE";O[O.RICH_RESPONSE_SIDE_BY_SIDE_SURVEY=38]="RICH_RESPONSE_SIDE_BY_SIDE_SURVEY";O[O.RICH_RESPONSE_UNIFIED_TEXT_COMPONENT=39]="RICH_RESPONSE_UNIFIED_TEXT_COMPONENT";O[O.AI_SHARED_MEMORY=40]="AI_SHARED_MEMORY";O[O.RICH_RESPONSE_UNIFIED_SOURCES=41]="RICH_RESPONSE_UNIFIED_SOURCES";O[O.RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS=42]="RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS";O[O.RICH_RESPONSE_UR_INLINE_REELS_ENABLED=43]="RICH_RESPONSE_UR_INLINE_REELS_ENABLED";O[O.RICH_RESPONSE_UR_MEDIA_GRID_ENABLED=44]="RICH_RESPONSE_UR_MEDIA_GRID_ENABLED";O[O.RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER=45]="RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER";O[O.RICH_RESPONSE_IN_APP_SURVEY=46]="RICH_RESPONSE_IN_APP_SURVEY";O[O.AI_RESPONSE_MODEL_BRANDING=47]="AI_RESPONSE_MODEL_BRANDING";O[O.SESSION_TRANSPARENCY_SYSTEM_MESSAGE=48]="SESSION_TRANSPARENCY_SYSTEM_MESSAGE";O[O.RICH_RESPONSE_UR_REASONING=49]="RICH_RESPONSE_UR_REASONING";O[O.RICH_RESPONSE_UR_ZEITGEIST_CITATIONS=50]="RICH_RESPONSE_UR_ZEITGEIST_CITATIONS";O[O.RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL=51]="RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL";O[O.AI_IMAGINE_LOADING_INDICATOR=52]="AI_IMAGINE_LOADING_INDICATOR";O[O.RICH_RESPONSE_UR_IMAGINE=53]="RICH_RESPONSE_UR_IMAGINE";O[O.AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR=54]="AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR";O[O.RICH_RESPONSE_UR_BLOKS_ENABLED=55]="RICH_RESPONSE_UR_BLOKS_ENABLED";O[O.RICH_RESPONSE_INLINE_LINKS_ENABLED=56]="RICH_RESPONSE_INLINE_LINKS_ENABLED";O[O.RICH_RESPONSE_UR_IMAGINE_VIDEO=57]="RICH_RESPONSE_UR_IMAGINE_VIDEO";O[O.JSON_PATCH_STREAMING=58]="JSON_PATCH_STREAMING";O[O.AI_TAB_FORCE_CLIPPY=59]="AI_TAB_FORCE_CLIPPY";O[O.UNIFIED_RESPONSE_EMBEDDED_SCREENS=60]="UNIFIED_RESPONSE_EMBEDDED_SCREENS";O[O.AI_SUBSCRIPTION_ENABLED=61]="AI_SUBSCRIPTION_ENABLED";O[O.UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED=62]="UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED";O[O.UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED=63]="UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED";O[O.AI_RICH_RESPONSE_MAPS_V2_ENABLED=64]="AI_RICH_RESPONSE_MAPS_V2_ENABLED";O[O.AI_SUBSCRIPTION_METERING_ENABLED=65]="AI_SUBSCRIPTION_METERING_ENABLED";O[O.RICH_RESPONSE_SPORTS_WIDGET_ENABLED=66]="RICH_RESPONSE_SPORTS_WIDGET_ENABLED";O[O.AI_RICH_RESPONSE_ARTIFACTS_ENABLED=67]="AI_RICH_RESPONSE_ARTIFACTS_ENABLED";O[O.AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED=68]="AI_RICH_RESPONSE_EMAIL_CALENDAR_ENABLED";O[O.AI_RICH_RESPONSE_REMINDERS_ENABLED=69]="AI_RICH_RESPONSE_REMINDERS_ENABLED";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uN||={});var wN;((J)=>{J[J.TEXT_EXTRACTION=0]="TEXT_EXTRACTION";J[J.OCR_AND_IMAGES=1]="OCR_AND_IMAGES";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wN||={});var jN;((M)=>{M[M.BOT_FEEDBACK_POSITIVE=0]="BOT_FEEDBACK_POSITIVE";M[M.BOT_FEEDBACK_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_NEGATIVE_GENERIC";M[M.BOT_FEEDBACK_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_NEGATIVE_HELPFUL";M[M.BOT_FEEDBACK_NEGATIVE_INTERESTING=3]="BOT_FEEDBACK_NEGATIVE_INTERESTING";M[M.BOT_FEEDBACK_NEGATIVE_ACCURATE=4]="BOT_FEEDBACK_NEGATIVE_ACCURATE";M[M.BOT_FEEDBACK_NEGATIVE_SAFE=5]="BOT_FEEDBACK_NEGATIVE_SAFE";M[M.BOT_FEEDBACK_NEGATIVE_OTHER=6]="BOT_FEEDBACK_NEGATIVE_OTHER";M[M.BOT_FEEDBACK_NEGATIVE_REFUSED=7]="BOT_FEEDBACK_NEGATIVE_REFUSED";M[M.BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING=8]="BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING";M[M.BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT=9]="BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT";M[M.BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10]="BOT_FEEDBACK_NEGATIVE_PERSONALIZED";M[M.BOT_FEEDBACK_NEGATIVE_CLARITY=11]="BOT_FEEDBACK_NEGATIVE_CLARITY";M[M.BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12]="BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON";M[M.BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY=13]="BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY";M[M.BOT_FEEDBACK_NEGATIVE=14]="BOT_FEEDBACK_NEGATIVE";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jN||={});var cN;((A)=>{A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING=4]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE=8]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE=16]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER=32]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED=64]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING=128]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING";A[A.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT=256]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cN||={});var dN;((Z)=>{Z[Z.BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dN||={});var nN;((J)=>{J[J.NONE=0]="NONE";J[J.GENERIC=1]="GENERIC";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nN||={});var bN;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.IMAGINE=1]="IMAGINE";K[K.MEMU=2]="MEMU";K[K.FLASH=3]="FLASH";K[K.EDIT=4]="EDIT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bN||={});var oN;((J)=>{J[J.AAPI=0]="AAPI";J[J.CLIPPY=1]="CLIPPY";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oN||={});var iN;((Z)=>{Z[Z.BOT_LINKED_ACCOUNT_TYPE_1P=0]="BOT_LINKED_ACCOUNT_TYPE_1P";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iN||={});var mN;((X)=>{X[X.CENTER=1]="CENTER";X[X.LEFT=2]="LEFT";X[X.RIGHT=3]="RIGHT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mN||={});var gN;((Z)=>{Z[Z.BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED=0]="BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gN||={});var rN;((J)=>{J[J.DEFAULT_MODE=0]="DEFAULT_MODE";J[J.THINK_HARD_MODE=1]="THINK_HARD_MODE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rN||={});var tN;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.LLAMA_PROD=1]="LLAMA_PROD";X[X.LLAMA_PROD_PREMIUM=2]="LLAMA_PROD_PREMIUM";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tN||={});var aN;((X)=>{X[X.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";X[X.AVAILABLE=1]="AVAILABLE";X[X.QUOTA_EXCEED_LIMIT=2]="QUOTA_EXCEED_LIMIT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aN||={});var sN;((X)=>{X[X.UNKNOWN_PLUGIN=0]="UNKNOWN_PLUGIN";X[X.REELS=1]="REELS";X[X.SEARCH=2]="SEARCH";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sN||={});var eN;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.BING=1]="BING";q[q.GOOGLE=2]="GOOGLE";q[q.SUPPORT=3]="SUPPORT";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eN||={});var $O;((q)=>{q[q.UNKNOWN_PROVIDER=0]="UNKNOWN_PROVIDER";q[q.OTHER=1]="OTHER";q[q.GOOGLE=2]="GOOGLE";q[q.BING=3]="BING";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})($O||={});var QO;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.PLANNED=1]="PLANNED";q[q.EXECUTING=2]="EXECUTING";q[q.FINISHED=3]="FINISHED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QO||={});var JO;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.OTHER=1]="OTHER";q[q.GOOGLE=2]="GOOGLE";q[q.BING=3]="BING";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JO||={});var KO;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.C50=1]="C50";X[X.SURVEY_PLATFORM=2]="SURVEY_PLATFORM";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KO||={});var qO;((J)=>{J[J.UNKNOWN_FEATURE=0]="UNKNOWN_FEATURE";J[J.REASONING_FEATURE=1]="REASONING_FEATURE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qO||={});var ZO;((q)=>{q[q.NOTIFY=1]="NOTIFY";q[q.CREATE=2]="CREATE";q[q.DELETE=3]="DELETE";q[q.UPDATE=4]="UPDATE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZO||={});var XO;((K)=>{K[K.ONCE=1]="ONCE";K[K.DAILY=2]="DAILY";K[K.WEEKLY=3]="WEEKLY";K[K.BIWEEKLY=4]="BIWEEKLY";K[K.MONTHLY=5]="MONTHLY";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XO||={});var YO;((V)=>{V[V.UNSPECIFIED=0]="UNSPECIFIED";V[V.WA_BOT_MSG=1]="WA_BOT_MSG";V[V.WA_TEE_BOT_MSG=2]="WA_TEE_BOT_MSG";V[V.P2P_PILLS=3]="P2P_PILLS";V[V.WA_WAFFLE=4]="WA_WAFFLE";V[V.WA_FEATURE_PKI=5]="WA_FEATURE_PKI";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YO||={});var VO;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.BING=1]="BING";K[K.GOOGLE=2]="GOOGLE";K[K.SUPPORT=3]="SUPPORT";K[K.OTHER=4]="OTHER";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VO||={});var HO;((h)=>{h[h.CONNECTED=0]="CONNECTED";h[h.REJECTED=1]="REJECTED";h[h.CANCELLED=2]="CANCELLED";h[h.ACCEPTEDELSEWHERE=3]="ACCEPTEDELSEWHERE";h[h.MISSED=4]="MISSED";h[h.INVALID=5]="INVALID";h[h.UNAVAILABLE=6]="UNAVAILABLE";h[h.UPCOMING=7]="UPCOMING";h[h.FAILED=8]="FAILED";h[h.ABANDONED=9]="ABANDONED";h[h.ONGOING=10]="ONGOING";h[h.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HO||={});var zO;((X)=>{X[X.REGULAR=0]="REGULAR";X[X.SCHEDULED_CALL=1]="SCHEDULED_CALL";X[X.VOICE_CHAT=2]="VOICE_CHAT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zO||={});var GO;((q)=>{q[q.NONE=0]="NONE";q[q.SCHEDULED=1]="SCHEDULED";q[q.PRIVACY=2]="PRIVACY";q[q.LIGHTWEIGHT=3]="LIGHTWEIGHT";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GO||={});var UO;((X)=>{X[X.NONE=0]="NONE";X[X.IMAGE=1]="IMAGE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UO||={});var CO;((J)=>{J[J.DEFAULT=0]="DEFAULT";J[J.GUEST=1]="GUEST";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CO||={});var DO;((C)=>{C[C.PUSH=0]="PUSH";C[C.USER_ACTIVATED=1]="USER_ACTIVATED";C[C.SCHEDULED=2]="SCHEDULED";C[C.ERROR_RECONNECT=3]="ERROR_RECONNECT";C[C.NETWORK_SWITCH=4]="NETWORK_SWITCH";C[C.PING_RECONNECT=5]="PING_RECONNECT";C[C.UNKNOWN=6]="UNKNOWN";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DO||={});var FO;((M)=>{M[M.CELLULAR_UNKNOWN=0]="CELLULAR_UNKNOWN";M[M.WIFI_UNKNOWN=1]="WIFI_UNKNOWN";M[M.CELLULAR_EDGE=100]="CELLULAR_EDGE";M[M.CELLULAR_IDEN=101]="CELLULAR_IDEN";M[M.CELLULAR_UMTS=102]="CELLULAR_UMTS";M[M.CELLULAR_EVDO=103]="CELLULAR_EVDO";M[M.CELLULAR_GPRS=104]="CELLULAR_GPRS";M[M.CELLULAR_HSDPA=105]="CELLULAR_HSDPA";M[M.CELLULAR_HSUPA=106]="CELLULAR_HSUPA";M[M.CELLULAR_HSPA=107]="CELLULAR_HSPA";M[M.CELLULAR_CDMA=108]="CELLULAR_CDMA";M[M.CELLULAR_1XRTT=109]="CELLULAR_1XRTT";M[M.CELLULAR_EHRPD=110]="CELLULAR_EHRPD";M[M.CELLULAR_LTE=111]="CELLULAR_LTE";M[M.CELLULAR_HSPAP=112]="CELLULAR_HSPAP";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FO||={});var LO;((X)=>{X[X.SHARE_EXTENSION=0]="SHARE_EXTENSION";X[X.SERVICE_EXTENSION=1]="SERVICE_EXTENSION";X[X.INTENTS_EXTENSION=2]="INTENTS_EXTENSION";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LO||={});var PO;((K)=>{K[K.WHATSAPP=0]="WHATSAPP";K[K.MESSENGER=1]="MESSENGER";K[K.INTEROP=2]="INTEROP";K[K.INTEROP_MSGR=3]="INTEROP_MSGR";K[K.WHATSAPP_LID=4]="WHATSAPP_LID";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PO||={});var kO;((J)=>{J[J.OFF=0]="OFF";J[J.STANDARD=1]="STANDARD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kO||={});var xO;((F)=>{F[F.SYSTEM=0]="SYSTEM";F[F.GOOGLE=1]="GOOGLE";F[F.HARDCODED=2]="HARDCODED";F[F.OVERRIDE=3]="OVERRIDE";F[F.FALLBACK=4]="FALLBACK";F[F.MNS=5]="MNS";F[F.MNS_SECONDARY=6]="MNS_SECONDARY";F[F.SOCKS_PROXY=7]="SOCKS_PROXY";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xO||={});var BO;((K)=>{K[K.PHONE=0]="PHONE";K[K.TABLET=1]="TABLET";K[K.DESKTOP=2]="DESKTOP";K[K.WEARABLE=3]="WEARABLE";K[K.VR=4]="VR";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BO||={});var NO;((q)=>{q[q.APPSTORE=0]="APPSTORE";q[q.WEBSITE=1]="WEBSITE";q[q.TESTFLIGHT=2]="TESTFLIGHT";q[q.INTERNAL=3]="INTERNAL";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NO||={});var OO;((_)=>{_[_.ANDROID=0]="ANDROID";_[_.IOS=1]="IOS";_[_.WINDOWS_PHONE=2]="WINDOWS_PHONE";_[_.BLACKBERRY=3]="BLACKBERRY";_[_.BLACKBERRYX=4]="BLACKBERRYX";_[_.S40=5]="S40";_[_.S60=6]="S60";_[_.PYTHON_CLIENT=7]="PYTHON_CLIENT";_[_.TIZEN=8]="TIZEN";_[_.ENTERPRISE=9]="ENTERPRISE";_[_.SMB_ANDROID=10]="SMB_ANDROID";_[_.KAIOS=11]="KAIOS";_[_.SMB_IOS=12]="SMB_IOS";_[_.WINDOWS=13]="WINDOWS";_[_.WEB=14]="WEB";_[_.PORTAL=15]="PORTAL";_[_.GREEN_ANDROID=16]="GREEN_ANDROID";_[_.GREEN_IPHONE=17]="GREEN_IPHONE";_[_.BLUE_ANDROID=18]="BLUE_ANDROID";_[_.BLUE_IPHONE=19]="BLUE_IPHONE";_[_.FBLITE_ANDROID=20]="FBLITE_ANDROID";_[_.MLITE_ANDROID=21]="MLITE_ANDROID";_[_.IGLITE_ANDROID=22]="IGLITE_ANDROID";_[_.PAGE=23]="PAGE";_[_.MACOS=24]="MACOS";_[_.OCULUS_MSG=25]="OCULUS_MSG";_[_.OCULUS_CALL=26]="OCULUS_CALL";_[_.MILAN=27]="MILAN";_[_.CAPI=28]="CAPI";_[_.WEAROS=29]="WEAROS";_[_.ARDEVICE=30]="ARDEVICE";_[_.VRDEVICE=31]="VRDEVICE";_[_.BLUE_WEB=32]="BLUE_WEB";_[_.IPAD=33]="IPAD";_[_.TEST=34]="TEST";_[_.SMART_GLASSES=35]="SMART_GLASSES";_[_.BLUE_VR=36]="BLUE_VR";_[_.AR_WRIST=37]="AR_WRIST";_[_.WAIL=38]="WAIL";_[_.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OO||={});var RO;((q)=>{q[q.RELEASE=0]="RELEASE";q[q.BETA=1]="BETA";q[q.ALPHA=2]="ALPHA";q[q.DEBUG=3]="DEBUG";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RO||={});var AO;((V)=>{V[V.WEB_BROWSER=0]="WEB_BROWSER";V[V.APP_STORE=1]="APP_STORE";V[V.WIN_STORE=2]="WIN_STORE";V[V.DARWIN=3]="DARWIN";V[V.WIN32=4]="WIN32";V[V.WIN_HYBRID=5]="WIN_HYBRID";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AO||={});var EO;((J)=>{J[J.NONE=0]="NONE";J[J.VIDEO=1]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EO||={});var MO;((X)=>{X[X.CROSS_APP_SOURCE_UNKNOWN=0]="CROSS_APP_SOURCE_UNKNOWN";X[X.CROSS_APP_SOURCE_INSTAGRAM=1]="CROSS_APP_SOURCE_INSTAGRAM";X[X.CROSS_APP_SOURCE_FACEBOOK=2]="CROSS_APP_SOURCE_FACEBOOK";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MO||={});var WO;((V)=>{V[V.UNKNOWN=0]="UNKNOWN";V[V.CHAT=1]="CHAT";V[V.STATUS=2]="STATUS";V[V.CHANNELS=3]="CHANNELS";V[V.META_AI=4]="META_AI";V[V.UGC=5]="UGC";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WO||={});var SO;((A)=>{A[A.NOT_PAIRED_MEDIA=0]="NOT_PAIRED_MEDIA";A[A.SD_VIDEO_PARENT=1]="SD_VIDEO_PARENT";A[A.HD_VIDEO_CHILD=2]="HD_VIDEO_CHILD";A[A.SD_IMAGE_PARENT=3]="SD_IMAGE_PARENT";A[A.HD_IMAGE_CHILD=4]="HD_IMAGE_CHILD";A[A.MOTION_PHOTO_PARENT=5]="MOTION_PHOTO_PARENT";A[A.MOTION_PHOTO_CHILD=6]="MOTION_PHOTO_CHILD";A[A.HEVC_VIDEO_PARENT=7]="HEVC_VIDEO_PARENT";A[A.HEVC_VIDEO_CHILD=8]="HEVC_VIDEO_CHILD";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SO||={});var IO;((J)=>{J[J.EXPLICIT=0]="EXPLICIT";J[J.AUTO=1]="AUTO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IO||={});var TO;((K)=>{K[K.NONE=0]="NONE";K[K.RESHARED_FROM_MENTION=1]="RESHARED_FROM_MENTION";K[K.RESHARED_FROM_POST=2]="RESHARED_FROM_POST";K[K.RESHARED_FROM_POST_MANY_TIMES=3]="RESHARED_FROM_POST_MANY_TIMES";K[K.FORWARDED_FROM_STATUS=4]="FORWARDED_FROM_STATUS";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TO||={});var yO;((V)=>{V[V.IMAGE=0]="IMAGE";V[V.VIDEO=1]="VIDEO";V[V.GIF=2]="GIF";V[V.AUDIO=3]="AUDIO";V[V.TEXT=4]="TEXT";V[V.MUSIC_STANDALONE=5]="MUSIC_STANDALONE";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yO||={});var vO;((X)=>{X[X.NONE=0]="NONE";X[X.IMAGE=1]="IMAGE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vO||={});var fO;((V)=>{V[V.ENTRY_POINT_UNKNOWN=0]="ENTRY_POINT_UNKNOWN";V[V.P2P_LINK_SHARE=1]="P2P_LINK_SHARE";V[V.CONTACT_CARD_SHARING=2]="CONTACT_CARD_SHARING";V[V.PHONE_NUMBER=3]="PHONE_NUMBER";V[V.STATUS=4]="STATUS";V[V.IN_THREAD_CONTEXT_CARD=5]="IN_THREAD_CONTEXT_CARD";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fO||={});var _O;((I)=>{I[I.UNKNOWN=0]="UNKNOWN";I[I.VIEW_BUSINESS=1]="VIEW_BUSINESS";I[I.CHAT=2]="CHAT";I[I.CALL=3]="CALL";I[I.CATALOG=4]="CATALOG";I[I.CHANNEL=5]="CHANNEL";I[I.BOOK_APPOINTMENT=6]="BOOK_APPOINTMENT";I[I.OFFERS=7]="OFFERS";I[I.BESTSELLERS=8]="BESTSELLERS";I[I.MENU=9]="MENU";I[I.ABOUT=10]="ABOUT";I[I.SHOP=11]="SHOP";I[I.ORDER=12]="ORDER";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_O||={});var hO;((J)=>{J[J.SHOW_MM_DISCLOSURE_ON_CLICK=1]="SHOW_MM_DISCLOSURE_ON_CLICK";J[J.SHOW_MM_DISCLOSURE_ON_READ=2]="SHOW_MM_DISCLOSURE_ON_READ";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hO||={});var lO;((J)=>{J[J.CTWA=0]="CTWA";J[J.CAWC=1]="CAWC";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lO||={});var pO;((X)=>{X[X.NONE=0]="NONE";X[X.IMAGE=1]="IMAGE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pO||={});var uO;((X)=>{X[X.UPDATE=1]="UPDATE";X[X.UPDATE_CARD=2]="UPDATE_CARD";X[X.LINK_CARD=3]="LINK_CARD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uO||={});var wO;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.CLOSE_FRIENDS=1]="CLOSE_FRIENDS";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wO||={});var jO;((q)=>{q[q.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY=0]="COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY";q[q.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY=1]="COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY";q[q.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY=2]="COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY";q[q.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";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jO||={});var cO;((q)=>{q[q.NO_APPEAL=0]="NO_APPEAL";q[q.APPEAL_IN_REVIEW=1]="APPEAL_IN_REVIEW";q[q.APPEAL_APPROVED=2]="APPEAL_APPROVED";q[q.APPEAL_REJECTED=3]="APPEAL_REJECTED";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cO||={});var dO;((X)=>{X[X.NONE=0]="NONE";X[X.MINIMAL=1]="MINIMAL";X[X.FULL=2]="FULL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dO||={});var nO;((X)=>{X[X.DISABLED=0]="DISABLED";X[X.RECEIVER_ENABLED=1]="RECEIVER_ENABLED";X[X.SENDER_ENABLED=2]="SENDER_ENABLED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nO||={});var bO;((X)=>{X[X.NONE=0]="NONE";X[X.INFRA=1]="INFRA";X[X.FULL=2]="FULL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bO||={});var oO;((l)=>{l[l.UNKNOWN=0]="UNKNOWN";l[l.CHROME=1]="CHROME";l[l.FIREFOX=2]="FIREFOX";l[l.IE=3]="IE";l[l.OPERA=4]="OPERA";l[l.SAFARI=5]="SAFARI";l[l.EDGE=6]="EDGE";l[l.DESKTOP=7]="DESKTOP";l[l.IPAD=8]="IPAD";l[l.ANDROID_TABLET=9]="ANDROID_TABLET";l[l.OHANA=10]="OHANA";l[l.ALOHA=11]="ALOHA";l[l.CATALINA=12]="CATALINA";l[l.TCL_TV=13]="TCL_TV";l[l.IOS_PHONE=14]="IOS_PHONE";l[l.IOS_CATALYST=15]="IOS_CATALYST";l[l.ANDROID_PHONE=16]="ANDROID_PHONE";l[l.ANDROID_AMBIGUOUS=17]="ANDROID_AMBIGUOUS";l[l.WEAR_OS=18]="WEAR_OS";l[l.AR_WRIST=19]="AR_WRIST";l[l.AR_DEVICE=20]="AR_DEVICE";l[l.UWP=21]="UWP";l[l.VR=22]="VR";l[l.CLOUD_API=23]="CLOUD_API";l[l.SMARTGLASSES=24]="SMARTGLASSES";l[l.WAIL=25]="WAIL";l[l.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oO||={});var iO;((q)=>{q[q.CHANGED_IN_CHAT=0]="CHANGED_IN_CHAT";q[q.INITIATED_BY_ME=1]="INITIATED_BY_ME";q[q.INITIATED_BY_OTHER=2]="INITIATED_BY_OTHER";q[q.BIZ_UPGRADE_FB_HOSTING=3]="BIZ_UPGRADE_FB_HOSTING";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iO||={});var mO;((V)=>{V[V.UNKNOWN=0]="UNKNOWN";V[V.CHAT_SETTING=1]="CHAT_SETTING";V[V.ACCOUNT_SETTING=2]="ACCOUNT_SETTING";V[V.BULK_CHANGE=3]="BULK_CHANGE";V[V.BIZ_SUPPORTS_FB_HOSTING=4]="BIZ_SUPPORTS_FB_HOSTING";V[V.UNKNOWN_GROUPS=5]="UNKNOWN_GROUPS";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mO||={});var gO;((E)=>{E[E.INFO=0]="INFO";E[E.EYE_OFF=1]="EYE_OFF";E[E.NEWS_OFF=2]="NEWS_OFF";E[E.WARNING=3]="WARNING";E[E.PRIVATE=4]="PRIVATE";E[E.NONE=5]="NONE";E[E.MEDIA_LABEL=6]="MEDIA_LABEL";E[E.POST_COVER=7]="POST_COVER";E[E.POST_LABEL=8]="POST_LABEL";E[E.WARNING_SCREENS=9]="WARNING_SCREENS";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gO||={});var rO;((J)=>{J[J.E2EE=0]="E2EE";J[J.HOSTED=1]="HOSTED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rO||={});var tO;((V)=>{V[V.NOT_INJECTED=0]="NOT_INJECTED";V[V.INJECTED=1]="INJECTED";V[V.INJECTED_PARTIAL=2]="INJECTED_PARTIAL";V[V.INJECTION_FAILED=3]="INJECTION_FAILED";V[V.INJECTION_FAILED_NO_RETRY=4]="INJECTION_FAILED_NO_RETRY";V[V.DEDUPED=5]="DEDUPED";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tO||={});var aO;((X)=>{X[X.REGULAR=0]="REGULAR";X[X.ADMIN=1]="ADMIN";X[X.SUPERADMIN=2]="SUPERADMIN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aO||={});var sO;((E)=>{E[E.HANDSHAKE_PQ_MODE_UNKNOWN=0]="HANDSHAKE_PQ_MODE_UNKNOWN";E[E.XXKEM=1]="XXKEM";E[E.XXKEM_FS=2]="XXKEM_FS";E[E.XXKEM_EPH=9]="XXKEM_EPH";E[E.WA_CLASSICAL=3]="WA_CLASSICAL";E[E.WA_PQ=4]="WA_PQ";E[E.IKKEM=5]="IKKEM";E[E.IKKEM_FS=6]="IKKEM_FS";E[E.XXKEM_2=7]="XXKEM_2";E[E.IKKEM_2=8]="IKKEM_2";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sO||={});var eO;((J)=>{J[J.IN_WAITLIST=0]="IN_WAITLIST";J[J.AI_AVAILABLE=1]="AI_AVAILABLE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eO||={});var $R;((C)=>{C[C.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";C[C.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";C[C.FULL=2]="FULL";C[C.RECENT=3]="RECENT";C[C.PUSH_NAME=4]="PUSH_NAME";C[C.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";C[C.ON_DEMAND=6]="ON_DEMAND";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})($R||={});var QR;((X)=>{X[X.FULL=1]="FULL";X[X.TALL=2]="TALL";X[X.COMPACT=3]="COMPACT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QR||={});var JR;((X)=>{X[X.RASTERIZED_LINK_PREVIEW=1]="RASTERIZED_LINK_PREVIEW";X[X.RASTERIZED_LINK_TRUNCATED=2]="RASTERIZED_LINK_TRUNCATED";X[X.RASTERIZED_LINK_FULL_URL=3]="RASTERIZED_LINK_FULL_URL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JR||={});var KR;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.CHAT_SETTING=1]="CHAT_SETTING";q[q.BIZ_SUPPORTS_FB_HOSTING=2]="BIZ_SUPPORTS_FB_HOSTING";q[q.UNKNOWN_GROUP=3]="UNKNOWN_GROUP";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KR||={});var qR;((q)=>{q[q.GENERAL_ERROR=0]="GENERAL_ERROR";q[q.SUCCESS=1]="SUCCESS";q[q.NOT_FOUND=2]="NOT_FOUND";q[q.DECRYPTION_ERROR=3]="DECRYPTION_ERROR";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qR||={});var ZR;((A)=>{A[A.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";A[A.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";A[A.FULL=2]="FULL";A[A.RECENT=3]="RECENT";A[A.PUSH_NAME=4]="PUSH_NAME";A[A.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";A[A.ON_DEMAND=6]="ON_DEMAND";A[A.NO_HISTORY=7]="NO_HISTORY";A[A.MESSAGE_ACCESS_STATUS=8]="MESSAGE_ACCESS_STATUS";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZR||={});var XR;((K)=>{K[K.SENT=0]="SENT";K[K.DELIVERED=1]="DELIVERED";K[K.READ=2]="READ";K[K.REPLIED=3]="REPLIED";K[K.QUICK_REPLIED=4]="QUICK_REPLIED";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XR||={});var YR;((M)=>{M[M.UPLOAD_STICKER=0]="UPLOAD_STICKER";M[M.SEND_RECENT_STICKER_BOOTSTRAP=1]="SEND_RECENT_STICKER_BOOTSTRAP";M[M.GENERATE_LINK_PREVIEW=2]="GENERATE_LINK_PREVIEW";M[M.HISTORY_SYNC_ON_DEMAND=3]="HISTORY_SYNC_ON_DEMAND";M[M.PLACEHOLDER_MESSAGE_RESEND=4]="PLACEHOLDER_MESSAGE_RESEND";M[M.WAFFLE_LINKING_NONCE_FETCH=5]="WAFFLE_LINKING_NONCE_FETCH";M[M.FULL_HISTORY_SYNC_ON_DEMAND=6]="FULL_HISTORY_SYNC_ON_DEMAND";M[M.COMPANION_META_NONCE_FETCH=7]="COMPANION_META_NONCE_FETCH";M[M.COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8]="COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY";M[M.COMPANION_CANONICAL_USER_NONCE_FETCH=9]="COMPANION_CANONICAL_USER_NONCE_FETCH";M[M.HISTORY_SYNC_CHUNK_RETRY=10]="HISTORY_SYNC_CHUNK_RETRY";M[M.GALAXY_FLOW_ACTION=11]="GALAXY_FLOW_ACTION";M[M.BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO=12]="BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO";M[M.BUSINESS_BROADCAST_INSIGHTS_REFRESH=13]="BUSINESS_BROADCAST_INSIGHTS_REFRESH";M[M.CONTACT_REFRESH_REQUEST=14]="CONTACT_REFRESH_REQUEST";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YR||={});var VR;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.TEXT=1]="TEXT";X[X.IMAGE=2]="IMAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VR||={});var HR;((J)=>{J[J.POLL=0]="POLL";J[J.QUIZ=1]="QUIZ";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HR||={});var zR;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.AUDIO=1]="AUDIO";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zR||={});var GR;((C)=>{C[C.UNKNOWN=0]="UNKNOWN";C[C.EMPTY=1]="EMPTY";C[C.TEXT=2]="TEXT";C[C.DOCUMENT=3]="DOCUMENT";C[C.IMAGE=4]="IMAGE";C[C.VIDEO=5]="VIDEO";C[C.LOCATION=6]="LOCATION";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GR||={});var UR;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.RESPONSE=1]="RESPONSE";X[X.NATIVE_FLOW=2]="NATIVE_FLOW";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UR||={});var CR;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.DISPLAY_TEXT=1]="DISPLAY_TEXT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CR||={});var DR;((F)=>{F[F.CONNECTED=0]="CONNECTED";F[F.MISSED=1]="MISSED";F[F.FAILED=2]="FAILED";F[F.REJECTED=3]="REJECTED";F[F.ACCEPTED_ELSEWHERE=4]="ACCEPTED_ELSEWHERE";F[F.ONGOING=5]="ONGOING";F[F.SILENCED_BY_DND=6]="SILENCED_BY_DND";F[F.SILENCED_UNKNOWN_CALLER=7]="SILENCED_UNKNOWN_CALLER";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DR||={});var FR;((X)=>{X[X.REGULAR=0]="REGULAR";X[X.SCHEDULED_CALL=1]="SCHEDULED_CALL";X[X.VOICE_CHAT=2]="VOICE_CHAT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FR||={});var LR;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.CONTROL_PASSED=1]="CONTROL_PASSED";q[q.CONTROL_TAKEN=2]="CONTROL_TAKEN";q[q.INFO=3]="INFO";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LR||={});var PR;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.SCHEDULED_MESSAGE=1]="SCHEDULED_MESSAGE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PR||={});var kR;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.GOING=1]="GOING";q[q.NOT_GOING=2]="NOT_GOING";q[q.MAYBE=3]="MAYBE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kR||={});var xR;((F)=>{F[F.SYSTEM=0]="SYSTEM";F[F.SYSTEM_TEXT=1]="SYSTEM_TEXT";F[F.FB_SCRIPT=2]="FB_SCRIPT";F[F.SYSTEM_BOLD=6]="SYSTEM_BOLD";F[F.MORNINGBREEZE_REGULAR=7]="MORNINGBREEZE_REGULAR";F[F.CALISTOGA_REGULAR=8]="CALISTOGA_REGULAR";F[F.EXO2_EXTRABOLD=9]="EXO2_EXTRABOLD";F[F.COURIERPRIME_BOLD=10]="COURIERPRIME_BOLD";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xR||={});var BR;((q)=>{q[q.DEFAULT=0]="DEFAULT";q[q.PARENT=1]="PARENT";q[q.SUB=2]="SUB";q[q.DEFAULT_SUB=3]="DEFAULT_SUB";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BR||={});var NR;((V)=>{V[V.NONE=0]="NONE";V[V.VIDEO=1]="VIDEO";V[V.PLACEHOLDER=4]="PLACEHOLDER";V[V.IMAGE=5]="IMAGE";V[V.PAYMENT_LINKS=6]="PAYMENT_LINKS";V[V.PROFILE=7]="PROFILE";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NR||={});var OR;((J)=>{J[J.DEFAULT=0]="DEFAULT";J[J.PARENT=1]="PARENT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OR||={});var RR;((J)=>{J[J.GREGORIAN=1]="GREGORIAN";J[J.SOLAR_HIJRI=2]="SOLAR_HIJRI";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RR||={});var AR;((C)=>{C[C.MONDAY=1]="MONDAY";C[C.TUESDAY=2]="TUESDAY";C[C.WEDNESDAY=3]="WEDNESDAY";C[C.THURSDAY=4]="THURSDAY";C[C.FRIDAY=5]="FRIDAY";C[C.SATURDAY=6]="SATURDAY";C[C.SUNDAY=7]="SUNDAY";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AR||={});var ER;((q)=>{q[q.USER_IMAGE=0]="USER_IMAGE";q[q.AI_GENERATED=1]="AI_GENERATED";q[q.AI_MODIFIED=2]="AI_MODIFIED";q[q.RASTERIZED_TEXT_STATUS=3]="RASTERIZED_TEXT_STATUS";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ER||={});var MR;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.HSCROLL_CARDS=1]="HSCROLL_CARDS";X[X.ALBUM_IMAGE=2]="ALBUM_IMAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MR||={});var WR;((q)=>{q[q.UNKNOWN_SURFACE=0]="UNKNOWN_SURFACE";q[q.FB=1]="FB";q[q.IG=2]="IG";q[q.WA=3]="WA";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WR||={});var SR;((J)=>{J[J.DEFAULT=0]="DEFAULT";J[J.EXTENSIONS_1=1]="EXTENSIONS_1";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SR||={});var IR;((J)=>{J[J.IMAGE=0]="IMAGE";J[J.PDF=1]="PDF";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IR||={});var TR;((V)=>{V[V.NONE=0]="NONE";V[V.REEL=1]="REEL";V[V.LIVE_VIDEO=2]="LIVE_VIDEO";V[V.LONG_VIDEO=3]="LONG_VIDEO";V[V.SINGLE_IMAGE=4]="SINGLE_IMAGE";V[V.CAROUSEL=5]="CAROUSEL";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TR||={});var yR;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.SINGLE_SELECT=1]="SINGLE_SELECT";X[X.PRODUCT_LIST=2]="PRODUCT_LIST";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yR||={});var vR;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.SINGLE_SELECT=1]="SINGLE_SELECT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vR||={});var fR;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.VINYL=1]="VINYL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fR||={});var _R;((X)=>{X[X.INQUIRY=1]="INQUIRY";X[X.ACCEPTED=2]="ACCEPTED";X[X.DECLINED=3]="DECLINED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_R||={});var hR;((Z)=>{Z[Z.CATALOG=1]="CATALOG";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hR||={});var lR;((J)=>{J[J.DEFAULT=0]="DEFAULT";J[J.MAPPER=1]="MAPPER";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lR||={});var pR;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.FBPAY=1]="FBPAY";K[K.NOVI=2]="NOVI";K[K.UPI=3]="UPI";K[K.PIX=4]="PIX";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pR||={});var uR;((J)=>{J[J.LINK_PREVIEW=0]="LINK_PREVIEW";J[J.ORDER=1]="ORDER";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uR||={});var wR;((K)=>{K[K.REMINDER_FREQUENCY_UNKNOWN=0]="REMINDER_FREQUENCY_UNKNOWN";K[K.WEEKLY=1]="WEEKLY";K[K.BI_WEEKLY=2]="BI_WEEKLY";K[K.MONTHLY=3]="MONTHLY";K[K.QUARTERLY=4]="QUARTERLY";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wR||={});var jR;((V)=>{V[V.REMINDER_STATUS_UNKNOWN=0]="REMINDER_STATUS_UNKNOWN";V[V.ACTIVE=1]="ACTIVE";V[V.CANCELLED_BY_CREATOR=2]="CANCELLED_BY_CREATOR";V[V.STOPPED_BY_RECEIVER=3]="STOPPED_BY_RECEIVER";V[V.EXPIRED=4]="EXPIRED";V[V.PAID=5]="PAID";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jR||={});var cR;((J)=>{J[J.NOTIFY_LAUNCH=1]="NOTIFY_LAUNCH";J[J.DOWNLOAD_RESPONSES=2]="DOWNLOAD_RESPONSES";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cR||={});var dR;((F)=>{F[F.REQUEST_SUCCESS=0]="REQUEST_SUCCESS";F[F.REQUEST_TIME_EXPIRED=1]="REQUEST_TIME_EXPIRED";F[F.DECLINED_SHARING_HISTORY=2]="DECLINED_SHARING_HISTORY";F[F.GENERIC_ERROR=3]="GENERIC_ERROR";F[F.ERROR_REQUEST_ON_NON_SMB_PRIMARY=4]="ERROR_REQUEST_ON_NON_SMB_PRIMARY";F[F.ERROR_HOSTED_DEVICE_NOT_CONNECTED=5]="ERROR_HOSTED_DEVICE_NOT_CONNECTED";F[F.ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET=6]="ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET";F[F.ERROR_MULTI_PROVIDER_NOT_CONFIGURED=7]="ERROR_MULTI_PROVIDER_NOT_CONFIGURED";F[F.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dR||={});var nR;((V)=>{V[V.GENERATION_ERROR=1]="GENERATION_ERROR";V[V.CHUNK_CONSUMED=2]="CHUNK_CONSUMED";V[V.TIMEOUT=3]="TIMEOUT";V[V.SESSION_EXHAUSTED=4]="SESSION_EXHAUSTED";V[V.CHUNK_EXHAUSTED=5]="CHUNK_EXHAUSTED";V[V.DUPLICATED_REQUEST=6]="DUPLICATED_REQUEST";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nR||={});var bR;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.PIN_FOR_ALL=1]="PIN_FOR_ALL";X[X.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bR||={});var oR;((Z)=>{Z[Z.MASK_LINKED_DEVICES=0]="MASK_LINKED_DEVICES";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oR||={});var iR;((R)=>{R[R.REVOKE=0]="REVOKE";R[R.EPHEMERAL_SETTING=3]="EPHEMERAL_SETTING";R[R.EPHEMERAL_SYNC_RESPONSE=4]="EPHEMERAL_SYNC_RESPONSE";R[R.HISTORY_SYNC_NOTIFICATION=5]="HISTORY_SYNC_NOTIFICATION";R[R.APP_STATE_SYNC_KEY_SHARE=6]="APP_STATE_SYNC_KEY_SHARE";R[R.APP_STATE_SYNC_KEY_REQUEST=7]="APP_STATE_SYNC_KEY_REQUEST";R[R.MSG_FANOUT_BACKFILL_REQUEST=8]="MSG_FANOUT_BACKFILL_REQUEST";R[R.INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC=9]="INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC";R[R.APP_STATE_FATAL_EXCEPTION_NOTIFICATION=10]="APP_STATE_FATAL_EXCEPTION_NOTIFICATION";R[R.SHARE_PHONE_NUMBER=11]="SHARE_PHONE_NUMBER";R[R.MESSAGE_EDIT=14]="MESSAGE_EDIT";R[R.PEER_DATA_OPERATION_REQUEST_MESSAGE=16]="PEER_DATA_OPERATION_REQUEST_MESSAGE";R[R.PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE=17]="PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE";R[R.REQUEST_WELCOME_MESSAGE=18]="REQUEST_WELCOME_MESSAGE";R[R.BOT_FEEDBACK_MESSAGE=19]="BOT_FEEDBACK_MESSAGE";R[R.MEDIA_NOTIFY_MESSAGE=20]="MEDIA_NOTIFY_MESSAGE";R[R.CLOUD_API_THREAD_CONTROL_NOTIFICATION=21]="CLOUD_API_THREAD_CONTROL_NOTIFICATION";R[R.LID_MIGRATION_MAPPING_SYNC=22]="LID_MIGRATION_MAPPING_SYNC";R[R.REMINDER_MESSAGE=23]="REMINDER_MESSAGE";R[R.BOT_MEMU_ONBOARDING_MESSAGE=24]="BOT_MEMU_ONBOARDING_MESSAGE";R[R.STATUS_MENTION_MESSAGE=25]="STATUS_MENTION_MESSAGE";R[R.STOP_GENERATION_MESSAGE=26]="STOP_GENERATION_MESSAGE";R[R.LIMIT_SHARING=27]="LIMIT_SHARING";R[R.AI_PSI_METADATA=28]="AI_PSI_METADATA";R[R.AI_QUERY_FANOUT=29]="AI_QUERY_FANOUT";R[R.GROUP_MEMBER_LABEL_CHANGE=30]="GROUP_MEMBER_LABEL_CHANGE";R[R.AI_MEDIA_COLLECTION_MESSAGE=31]="AI_MEDIA_COLLECTION_MESSAGE";R[R.MESSAGE_UNSCHEDULE=32]="MESSAGE_UNSCHEDULE";R[R.CHAT_THEME_SETTING=34]="CHAT_THEME_SETTING";R[R.AI_METADATA_OPERATION=35]="AI_METADATA_OPERATION";R[R.MARK_AS_VERIFIED_ACTION=36]="MARK_AS_VERIFIED_ACTION";R[R.COEX_STATE_SYNC=37]="COEX_STATE_SYNC";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iR||={});var mR;((J)=>{J[J.EMPTY=0]="EMPTY";J[J.NON_EMPTY=1]="NON_EMPTY";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mR||={});var gR;((J)=>{J[J.CHAT_OPEN=0]="CHAT_OPEN";J[J.COMPANION_PAIRING=1]="COMPANION_PAIRING";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gR||={});var rR;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.VOICE=1]="VOICE";X[X.VIDEO=2]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rR||={});var tR;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.CANCEL=1]="CANCEL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tR||={});var aR;((V)=>{V[V.UNKNOWN=0]="UNKNOWN";V[V.EVENT_EDIT=1]="EVENT_EDIT";V[V.MESSAGE_EDIT=2]="MESSAGE_EDIT";V[V.MESSAGE_SCHEDULE=3]="MESSAGE_SCHEDULE";V[V.POLL_EDIT=4]="POLL_EDIT";V[V.POLL_ADD_OPTION=5]="POLL_ADD_OPTION";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aR||={});var sR;((J)=>{J[J.PENDING=0]="PENDING";J[J.PAID=1]="PAID";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sR||={});var eR;((q)=>{q[q.AUTO=0]="AUTO";q[q.COMPACT=1]="COMPACT";q[q.FULL=2]="FULL";q[q.IMMERSIVE=3]="IMMERSIVE";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eR||={});var $3;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.STATUS_ADD_YOURS=1]="STATUS_ADD_YOURS";K[K.STATUS_RESHARE=2]="STATUS_RESHARE";K[K.STATUS_QUESTION_ANSWER_RESHARE=3]="STATUS_QUESTION_ANSWER_RESHARE";K[K.STATUS_GROUP_STATUS_REPLY=4]="STATUS_GROUP_STATUS_REPLY";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})($3||={});var Q3;((Z)=>{Z[Z.QUESTION_ANSWER=1]="QUESTION_ANSWER";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Q3||={});var J3;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.REACTION=1]="REACTION";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(J3||={});var K3;((X)=>{X[X.FIRST_PARTY=0]="FIRST_PARTY";X[X.THIRD_PARTY=1]="THIRD_PARTY";X[X.USER_CREATED=2]="USER_CREATED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(K3||={});var q3;((q)=>{q[q.NONE=0]="NONE";q[q.GIPHY=1]="GIPHY";q[q.TENOR=2]="TENOR";q[q.KLIPY=3]="KLIPY";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(q3||={});var Z3;((J)=>{J[J.USER_VIDEO=0]="USER_VIDEO";J[J.AI_GENERATED=1]="AI_GENERATED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Z3||={});var X3;((K)=>{K[K.UNDEFINED=0]="UNDEFINED";K[K.REACTION=1]="REACTION";K[K.EVENT_RESPONSE=2]="EVENT_RESPONSE";K[K.POLL_UPDATE=3]="POLL_UPDATE";K[K.PIN_IN_CHAT=4]="PIN_IN_CHAT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(X3||={});var Y3;((u)=>{u[u.UNKNOWN=0]="UNKNOWN";u[u.MEDIA_ALBUM=1]="MEDIA_ALBUM";u[u.BOT_PLUGIN=2]="BOT_PLUGIN";u[u.EVENT_COVER_IMAGE=3]="EVENT_COVER_IMAGE";u[u.STATUS_POLL=4]="STATUS_POLL";u[u.HD_VIDEO_DUAL_UPLOAD=5]="HD_VIDEO_DUAL_UPLOAD";u[u.STATUS_EXTERNAL_RESHARE=6]="STATUS_EXTERNAL_RESHARE";u[u.MEDIA_POLL=7]="MEDIA_POLL";u[u.STATUS_ADD_YOURS=8]="STATUS_ADD_YOURS";u[u.STATUS_NOTIFICATION=9]="STATUS_NOTIFICATION";u[u.HD_IMAGE_DUAL_UPLOAD=10]="HD_IMAGE_DUAL_UPLOAD";u[u.STICKER_ANNOTATION=11]="STICKER_ANNOTATION";u[u.MOTION_PHOTO=12]="MOTION_PHOTO";u[u.STATUS_LINK_ACTION=13]="STATUS_LINK_ACTION";u[u.VIEW_ALL_REPLIES=14]="VIEW_ALL_REPLIES";u[u.STATUS_ADD_YOURS_AI_IMAGINE=15]="STATUS_ADD_YOURS_AI_IMAGINE";u[u.STATUS_QUESTION=16]="STATUS_QUESTION";u[u.STATUS_ADD_YOURS_DIWALI=17]="STATUS_ADD_YOURS_DIWALI";u[u.STATUS_REACTION=18]="STATUS_REACTION";u[u.HEVC_VIDEO_DUAL_UPLOAD=19]="HEVC_VIDEO_DUAL_UPLOAD";u[u.POLL_ADD_OPTION=20]="POLL_ADD_OPTION";u[u.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Y3||={});var V3;((J)=>{J[J.STATIC=1]="STATIC";J[J.DEPENDENT_ON_PARENT=2]="DEPENDENT_ON_PARENT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(V3||={});var H3;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.TEXT=1]="TEXT";X[X.IMAGE=2]="IMAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(H3||={});var z3;((J)=>{J[J.POLL=0]="POLL";J[J.QUIZ=1]="QUIZ";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(z3||={});var G3;((X)=>{X[X.E2EE=0]="E2EE";X[X.HYBRID_E2EE=1]="HYBRID_E2EE";X[X.NON_E2EE=2]="NON_E2EE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(G3||={});var U3;((J)=>{J[J.LEFT=0]="LEFT";J[J.REMOVED=1]="REMOVED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(U3||={});var C3;((y)=>{y[y.ANDROID=0]="ANDROID";y[y.SMBA=1]="SMBA";y[y.IPHONE=2]="IPHONE";y[y.SMBI=3]="SMBI";y[y.WEB=4]="WEB";y[y.UWP=5]="UWP";y[y.DARWIN=6]="DARWIN";y[y.IPAD=7]="IPAD";y[y.WEAROS=8]="WEAROS";y[y.WASG=9]="WASG";y[y.WEARM=10]="WEARM";y[y.CAPI=11]="CAPI";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(C3||={});var D3;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.DEFAULT=1]="DEFAULT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(D3||={});var F3;((J)=>{J[J.UNKNOWN_CURRENCY=0]="UNKNOWN_CURRENCY";J[J.INR=1]="INR";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(F3||={});var L3;((y)=>{y[y.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";y[y.PROCESSING=1]="PROCESSING";y[y.SENT=2]="SENT";y[y.NEED_TO_ACCEPT=3]="NEED_TO_ACCEPT";y[y.COMPLETE=4]="COMPLETE";y[y.COULD_NOT_COMPLETE=5]="COULD_NOT_COMPLETE";y[y.REFUNDED=6]="REFUNDED";y[y.EXPIRED=7]="EXPIRED";y[y.REJECTED=8]="REJECTED";y[y.CANCELLED=9]="CANCELLED";y[y.WAITING_FOR_PAYER=10]="WAITING_FOR_PAYER";y[y.WAITING=11]="WAITING";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(L3||={});var P3;((R)=>{R[R.UNKNOWN=0]="UNKNOWN";R[R.PENDING_SETUP=1]="PENDING_SETUP";R[R.PENDING_RECEIVER_SETUP=2]="PENDING_RECEIVER_SETUP";R[R.INIT=3]="INIT";R[R.SUCCESS=4]="SUCCESS";R[R.COMPLETED=5]="COMPLETED";R[R.FAILED=6]="FAILED";R[R.FAILED_RISK=7]="FAILED_RISK";R[R.FAILED_PROCESSING=8]="FAILED_PROCESSING";R[R.FAILED_RECEIVER_PROCESSING=9]="FAILED_RECEIVER_PROCESSING";R[R.FAILED_DA=10]="FAILED_DA";R[R.FAILED_DA_FINAL=11]="FAILED_DA_FINAL";R[R.REFUNDED_TXN=12]="REFUNDED_TXN";R[R.REFUND_FAILED=13]="REFUND_FAILED";R[R.REFUND_FAILED_PROCESSING=14]="REFUND_FAILED_PROCESSING";R[R.REFUND_FAILED_DA=15]="REFUND_FAILED_DA";R[R.EXPIRED_TXN=16]="EXPIRED_TXN";R[R.AUTH_CANCELED=17]="AUTH_CANCELED";R[R.AUTH_CANCEL_FAILED_PROCESSING=18]="AUTH_CANCEL_FAILED_PROCESSING";R[R.AUTH_CANCEL_FAILED=19]="AUTH_CANCEL_FAILED";R[R.COLLECT_INIT=20]="COLLECT_INIT";R[R.COLLECT_SUCCESS=21]="COLLECT_SUCCESS";R[R.COLLECT_FAILED=22]="COLLECT_FAILED";R[R.COLLECT_FAILED_RISK=23]="COLLECT_FAILED_RISK";R[R.COLLECT_REJECTED=24]="COLLECT_REJECTED";R[R.COLLECT_EXPIRED=25]="COLLECT_EXPIRED";R[R.COLLECT_CANCELED=26]="COLLECT_CANCELED";R[R.COLLECT_CANCELLING=27]="COLLECT_CANCELLING";R[R.IN_REVIEW=28]="IN_REVIEW";R[R.REVERSAL_SUCCESS=29]="REVERSAL_SUCCESS";R[R.REVERSAL_PENDING=30]="REVERSAL_PENDING";R[R.REFUND_PENDING=31]="REFUND_PENDING";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(P3||={});var k3;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.PIN_FOR_ALL=1]="PIN_FOR_ALL";X[X.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(k3||={});var x3;((q)=>{q[q.UNDEFINED=0]="UNDEFINED";q[q.LOW=1]="LOW";q[q.MID=2]="MID";q[q.HIGH=3]="HIGH";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(x3||={});var B3;((X)=>{X[X.AND=1]="AND";X[X.OR=2]="OR";X[X.NOR=3]="NOR";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(B3||={});var N3;((J)=>{J[J.PASS_BY_DEFAULT=1]="PASS_BY_DEFAULT";J[J.FAIL_BY_DEFAULT=2]="FAIL_BY_DEFAULT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(N3||={});var O3;((X)=>{X[X.TRUE=1]="TRUE";X[X.FALSE=2]="FALSE";X[X.UNKNOWN=3]="UNKNOWN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(O3||={});var R3;((I)=>{I[I.UNKNOWN=0]="UNKNOWN";I[I.RESHARE=1]="RESHARE";I[I.EXTERNAL_SHARE=2]="EXTERNAL_SHARE";I[I.MUSIC=3]="MUSIC";I[I.STATUS_MENTION=4]="STATUS_MENTION";I[I.GROUP_STATUS=5]="GROUP_STATUS";I[I.RL_ATTRIBUTION=6]="RL_ATTRIBUTION";I[I.AI_CREATED=7]="AI_CREATED";I[I.LAYOUTS=8]="LAYOUTS";I[I.NEWSLETTER_STATUS=9]="NEWSLETTER_STATUS";I[I.STATUS_CLOSE_SHARING=10]="STATUS_CLOSE_SHARING";I[I.PAID_PARTNERSHIP=11]="PAID_PARTNERSHIP";I[I.USERNAME_STATUS=12]="USERNAME_STATUS";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})(R3||={});var A3;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.STATUS_MIMICRY=1]="STATUS_MIMICRY";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(A3||={});var E3;((w)=>{w[w.UNKNOWN=0]="UNKNOWN";w[w.INSTAGRAM=1]="INSTAGRAM";w[w.FACEBOOK=2]="FACEBOOK";w[w.MESSENGER=3]="MESSENGER";w[w.SPOTIFY=4]="SPOTIFY";w[w.YOUTUBE=5]="YOUTUBE";w[w.PINTEREST=6]="PINTEREST";w[w.THREADS=7]="THREADS";w[w.APPLE_MUSIC=8]="APPLE_MUSIC";w[w.SHARECHAT=9]="SHARECHAT";w[w.GOOGLE_PHOTOS=10]="GOOGLE_PHOTOS";w[w.SOUNDCLOUD=11]="SOUNDCLOUD";w[w.SHAZAM=12]="SHAZAM";w[w.PICSART=13]="PICSART";w[w.UNRECOGNIZED=-1]="UNRECOGNIZED"})(E3||={});var M3;((q)=>{q[q.UNKNOWN=0]="UNKNOWN";q[q.RAY_BAN_META_GLASSES=1]="RAY_BAN_META_GLASSES";q[q.OAKLEY_META_GLASSES=2]="OAKLEY_META_GLASSES";q[q.HYPERNOVA_GLASSES=3]="HYPERNOVA_GLASSES";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(M3||={});var W3;((K)=>{K[K.UNKNOWN=0]="UNKNOWN";K[K.INTERNAL_RESHARE=1]="INTERNAL_RESHARE";K[K.MENTION_RESHARE=2]="MENTION_RESHARE";K[K.CHANNEL_RESHARE=3]="CHANNEL_RESHARE";K[K.FORWARD=4]="FORWARD";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(W3||={});var S3;((K)=>{K[K.DRAFT=1]="DRAFT";K[K.SCHEDULED=2]="SCHEDULED";K[K.PROCESSING=3]="PROCESSING";K[K.FAILED=4]="FAILED";K[K.SENT=5]="SENT";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(S3||={});var I3;((X)=>{X[X.UPDATED=0]="UPDATED";X[X.CREATED=1]="CREATED";X[X.DELETED=2]="DELETED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(I3||={});var T3;((C)=>{C[C.UNKNOWN=0]="UNKNOWN";C[C.INSTRUCTIONS=1]="INSTRUCTIONS";C[C.RESPONSE_SETTINGS=2]="RESPONSE_SETTINGS";C[C.EXAMPLE_RESPONSES=3]="EXAMPLE_RESPONSES";C[C.KNOWLEDGE=4]="KNOWLEDGE";C[C.LEAD_GEN=5]="LEAD_GEN";C[C.HANDOFF_REMOVAL_TIMING=6]="HANDOFF_REMOVAL_TIMING";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(T3||={});var y3;((Z)=>{Z[Z.DISABLE_CTA=1]="DISABLE_CTA";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(y3||={});var v3;((f)=>{f[f.NONE=0]="NONE";f[f.UNREAD=1]="UNREAD";f[f.GROUPS=2]="GROUPS";f[f.FAVORITES=3]="FAVORITES";f[f.PREDEFINED=4]="PREDEFINED";f[f.CUSTOM=5]="CUSTOM";f[f.COMMUNITY=6]="COMMUNITY";f[f.SERVER_ASSIGNED=7]="SERVER_ASSIGNED";f[f.DRAFTED=8]="DRAFTED";f[f.AI_HANDOFF=9]="AI_HANDOFF";f[f.CHANNELS=10]="CHANNELS";f[f.AI_RESPONDING=11]="AI_RESPONDING";f[f.ARCHIVED=12]="ARCHIVED";f[f.LOCKED=13]="LOCKED";f[f.INVITES=14]="INVITES";f[f.THIRD_PARTY=15]="THIRD_PARTY";f[f.LEAD=16]="LEAD";f[f.MENTIONS_AND_REPLIES=17]="MENTIONS_AND_REPLIES";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(v3||={});var f3;((X)=>{X[X.ENABLED=0]="ENABLED";X[X.ENABLED_HAS_LEARNING=1]="ENABLED_HAS_LEARNING";X[X.DISABLED=2]="DISABLED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(f3||={});var _3;((X)=>{X[X.MUTED=0]="MUTED";X[X.AI_AGENT=1]="AI_AGENT";X[X.SUGGESTIONS=2]="SUGGESTIONS";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_3||={});var h3;((Z)=>{Z[Z.PERSONALIZED=0]="PERSONALIZED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(h3||={});var l3;((J)=>{J[J.ACTIVE=0]="ACTIVE";J[J.INACTIVE=1]="INACTIVE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(l3||={});var p3;((J)=>{J[J.UNSTRUCTURED=1]="UNSTRUCTURED";J[J.STRUCTURED=2]="STRUCTURED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(p3||={});var u3;((q)=>{q[q.DEFAULT_ALL_MESSAGES=0]="DEFAULT_ALL_MESSAGES";q[q.ALL_MESSAGES=1]="ALL_MESSAGES";q[q.HIGHLIGHTS=2]="HIGHLIGHTS";q[q.DEFAULT_HIGHLIGHTS=3]="DEFAULT_HIGHLIGHTS";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(u3||={});var w3;((Z)=>{Z[Z.BR_PAY_PRIVACY_POLICY=0]="BR_PAY_PRIVACY_POLICY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(w3||={});var j3;((X)=>{X[X.UNDEFINED=0]="UNDEFINED";X[X.ENABLED=1]="ENABLED";X[X.DISABLED=2]="DISABLED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(j3||={});var c3;((q)=>{q[q.DISPLAY_MODE_UNKNOWN=0]="DISPLAY_MODE_UNKNOWN";q[q.ALWAYS=1]="ALWAYS";q[q.NEVER=2]="NEVER";q[q.ONLY_WHEN_APP_IS_OPEN=3]="ONLY_WHEN_APP_IS_OPEN";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(c3||={});var d3;((X)=>{X[X.MEDIA_QUALITY_UNKNOWN=0]="MEDIA_QUALITY_UNKNOWN";X[X.STANDARD=1]="STANDARD";X[X.HD=2]="HD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(d3||={});var n3;((p)=>{p[p.SETTING_KEY_UNKNOWN=0]="SETTING_KEY_UNKNOWN";p[p.START_AT_LOGIN=1]="START_AT_LOGIN";p[p.MINIMIZE_TO_TRAY=2]="MINIMIZE_TO_TRAY";p[p.LANGUAGE=3]="LANGUAGE";p[p.REPLACE_TEXT_WITH_EMOJI=4]="REPLACE_TEXT_WITH_EMOJI";p[p.BANNER_NOTIFICATION_DISPLAY_MODE=5]="BANNER_NOTIFICATION_DISPLAY_MODE";p[p.UNREAD_COUNTER_BADGE_DISPLAY_MODE=6]="UNREAD_COUNTER_BADGE_DISPLAY_MODE";p[p.IS_MESSAGES_NOTIFICATION_ENABLED=7]="IS_MESSAGES_NOTIFICATION_ENABLED";p[p.IS_CALLS_NOTIFICATION_ENABLED=8]="IS_CALLS_NOTIFICATION_ENABLED";p[p.IS_REACTIONS_NOTIFICATION_ENABLED=9]="IS_REACTIONS_NOTIFICATION_ENABLED";p[p.IS_STATUS_REACTIONS_NOTIFICATION_ENABLED=10]="IS_STATUS_REACTIONS_NOTIFICATION_ENABLED";p[p.IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED=11]="IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED";p[p.DEFAULT_NOTIFICATION_TONE_ID=12]="DEFAULT_NOTIFICATION_TONE_ID";p[p.GROUP_DEFAULT_NOTIFICATION_TONE_ID=13]="GROUP_DEFAULT_NOTIFICATION_TONE_ID";p[p.APP_THEME=14]="APP_THEME";p[p.WALLPAPER_ID=15]="WALLPAPER_ID";p[p.IS_DOODLE_WALLPAPER_ENABLED=16]="IS_DOODLE_WALLPAPER_ENABLED";p[p.FONT_SIZE=17]="FONT_SIZE";p[p.IS_PHOTOS_AUTODOWNLOAD_ENABLED=18]="IS_PHOTOS_AUTODOWNLOAD_ENABLED";p[p.IS_AUDIOS_AUTODOWNLOAD_ENABLED=19]="IS_AUDIOS_AUTODOWNLOAD_ENABLED";p[p.IS_VIDEOS_AUTODOWNLOAD_ENABLED=20]="IS_VIDEOS_AUTODOWNLOAD_ENABLED";p[p.IS_DOCUMENTS_AUTODOWNLOAD_ENABLED=21]="IS_DOCUMENTS_AUTODOWNLOAD_ENABLED";p[p.DISABLE_LINK_PREVIEWS=22]="DISABLE_LINK_PREVIEWS";p[p.NOTIFICATION_TONE_ID=23]="NOTIFICATION_TONE_ID";p[p.MEDIA_UPLOAD_QUALITY=24]="MEDIA_UPLOAD_QUALITY";p[p.IS_SPELL_CHECK_ENABLED=25]="IS_SPELL_CHECK_ENABLED";p[p.IS_ENTER_TO_SEND_ENABLED=26]="IS_ENTER_TO_SEND_ENABLED";p[p.IS_GROUP_MESSAGE_NOTIFICATION_ENABLED=27]="IS_GROUP_MESSAGE_NOTIFICATION_ENABLED";p[p.IS_GROUP_REACTIONS_NOTIFICATION_ENABLED=28]="IS_GROUP_REACTIONS_NOTIFICATION_ENABLED";p[p.IS_STATUS_NOTIFICATION_ENABLED=29]="IS_STATUS_NOTIFICATION_ENABLED";p[p.STATUS_NOTIFICATION_TONE_ID=30]="STATUS_NOTIFICATION_TONE_ID";p[p.SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION=31]="SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION";p[p.CHAT_THEME_ID=32]="CHAT_THEME_ID";p[p.COLOR_SCHEME_ID=33]="COLOR_SCHEME_ID";p[p.STOCK_WALLPAPER_IMAGE_ID=34]="STOCK_WALLPAPER_IMAGE_ID";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(n3||={});var b3;((K)=>{K[K.PLATFORM_UNKNOWN=0]="PLATFORM_UNKNOWN";K[K.WEB=1]="WEB";K[K.HYBRID=2]="HYBRID";K[K.WINDOWS=3]="WINDOWS";K[K.MAC=4]="MAC";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(b3||={});var o3;((K)=>{K[K.ALLOW_LIST=0]="ALLOW_LIST";K[K.DENY_LIST=1]="DENY_LIST";K[K.CONTACTS=2]="CONTACTS";K[K.CLOSE_FRIENDS=3]="CLOSE_FRIENDS";K[K.CUSTOM_LIST=4]="CUSTOM_LIST";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(o3||={});var i3;((J)=>{J[J.LID=1]="LID";J[J.PN=2]="PN";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(i3||={});var m3;((J)=>{J[J.INACTIVE=0]="INACTIVE";J[J.ACTIVE=1]="ACTIVE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(m3||={});var g3;((X)=>{X[X.ACTIVE=0]="ACTIVE";X[X.PAUSED=1]="PAUSED";X[X.UNLINKED=2]="UNLINKED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(g3||={});var r3;((J)=>{J[J.SET=0]="SET";J[J.REMOVE=1]="REMOVE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(r3||={});var t3;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.VIEW_REPLIES=1]="VIEW_REPLIES";X[X.AI_THREAD=2]="AI_THREAD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(t3||={});var a3;((J)=>{J[J.UTF8=0]="UTF8";J[J.UTF8_BROKEN=1]="UTF8_BROKEN";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(a3||={});var s3;((X)=>{X[X.NONE=0]="NONE";X[X.PBKDF2_HMAC_SHA512=1]="PBKDF2_HMAC_SHA512";X[X.PBKDF2_HMAC_SHA384=2]="PBKDF2_HMAC_SHA384";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(s3||={});var e3;((q)=>{q[q.NOT_STARTED=0]="NOT_STARTED";q[q.FORCE_UPGRADE=1]="FORCE_UPGRADE";q[q.DEVELOPMENT=2]="DEVELOPMENT";q[q.PRODUCTION=3]="PRODUCTION";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(e3||={});var $A;((q)=>{q[q.E2EE=0]="E2EE";q[q.FB=2]="FB";q[q.BSP=1]="BSP";q[q.BSP_AND_FB=3]="BSP_AND_FB";q[q.UNRECOGNIZED=-1]="UNRECOGNIZED"})($A||={});var QA;((V)=>{V[V.ERROR=0]="ERROR";V[V.PENDING=1]="PENDING";V[V.SERVER_ACK=2]="SERVER_ACK";V[V.DELIVERY_ACK=3]="DELIVERY_ACK";V[V.READ=4]="READ";V[V.PLAYED=5]="PLAYED";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QA||={});var JA;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.REVOKE=1]="REVOKE";G[G.CIPHERTEXT=2]="CIPHERTEXT";G[G.FUTUREPROOF=3]="FUTUREPROOF";G[G.NON_VERIFIED_TRANSITION=4]="NON_VERIFIED_TRANSITION";G[G.UNVERIFIED_TRANSITION=5]="UNVERIFIED_TRANSITION";G[G.VERIFIED_TRANSITION=6]="VERIFIED_TRANSITION";G[G.VERIFIED_LOW_UNKNOWN=7]="VERIFIED_LOW_UNKNOWN";G[G.VERIFIED_HIGH=8]="VERIFIED_HIGH";G[G.VERIFIED_INITIAL_UNKNOWN=9]="VERIFIED_INITIAL_UNKNOWN";G[G.VERIFIED_INITIAL_LOW=10]="VERIFIED_INITIAL_LOW";G[G.VERIFIED_INITIAL_HIGH=11]="VERIFIED_INITIAL_HIGH";G[G.VERIFIED_TRANSITION_ANY_TO_NONE=12]="VERIFIED_TRANSITION_ANY_TO_NONE";G[G.VERIFIED_TRANSITION_ANY_TO_HIGH=13]="VERIFIED_TRANSITION_ANY_TO_HIGH";G[G.VERIFIED_TRANSITION_HIGH_TO_LOW=14]="VERIFIED_TRANSITION_HIGH_TO_LOW";G[G.VERIFIED_TRANSITION_HIGH_TO_UNKNOWN=15]="VERIFIED_TRANSITION_HIGH_TO_UNKNOWN";G[G.VERIFIED_TRANSITION_UNKNOWN_TO_LOW=16]="VERIFIED_TRANSITION_UNKNOWN_TO_LOW";G[G.VERIFIED_TRANSITION_LOW_TO_UNKNOWN=17]="VERIFIED_TRANSITION_LOW_TO_UNKNOWN";G[G.VERIFIED_TRANSITION_NONE_TO_LOW=18]="VERIFIED_TRANSITION_NONE_TO_LOW";G[G.VERIFIED_TRANSITION_NONE_TO_UNKNOWN=19]="VERIFIED_TRANSITION_NONE_TO_UNKNOWN";G[G.GROUP_CREATE=20]="GROUP_CREATE";G[G.GROUP_CHANGE_SUBJECT=21]="GROUP_CHANGE_SUBJECT";G[G.GROUP_CHANGE_ICON=22]="GROUP_CHANGE_ICON";G[G.GROUP_CHANGE_INVITE_LINK=23]="GROUP_CHANGE_INVITE_LINK";G[G.GROUP_CHANGE_DESCRIPTION=24]="GROUP_CHANGE_DESCRIPTION";G[G.GROUP_CHANGE_RESTRICT=25]="GROUP_CHANGE_RESTRICT";G[G.GROUP_CHANGE_ANNOUNCE=26]="GROUP_CHANGE_ANNOUNCE";G[G.GROUP_PARTICIPANT_ADD=27]="GROUP_PARTICIPANT_ADD";G[G.GROUP_PARTICIPANT_REMOVE=28]="GROUP_PARTICIPANT_REMOVE";G[G.GROUP_PARTICIPANT_PROMOTE=29]="GROUP_PARTICIPANT_PROMOTE";G[G.GROUP_PARTICIPANT_DEMOTE=30]="GROUP_PARTICIPANT_DEMOTE";G[G.GROUP_PARTICIPANT_INVITE=31]="GROUP_PARTICIPANT_INVITE";G[G.GROUP_PARTICIPANT_LEAVE=32]="GROUP_PARTICIPANT_LEAVE";G[G.GROUP_PARTICIPANT_CHANGE_NUMBER=33]="GROUP_PARTICIPANT_CHANGE_NUMBER";G[G.BROADCAST_CREATE=34]="BROADCAST_CREATE";G[G.BROADCAST_ADD=35]="BROADCAST_ADD";G[G.BROADCAST_REMOVE=36]="BROADCAST_REMOVE";G[G.GENERIC_NOTIFICATION=37]="GENERIC_NOTIFICATION";G[G.E2E_IDENTITY_CHANGED=38]="E2E_IDENTITY_CHANGED";G[G.E2E_ENCRYPTED=39]="E2E_ENCRYPTED";G[G.CALL_MISSED_VOICE=40]="CALL_MISSED_VOICE";G[G.CALL_MISSED_VIDEO=41]="CALL_MISSED_VIDEO";G[G.INDIVIDUAL_CHANGE_NUMBER=42]="INDIVIDUAL_CHANGE_NUMBER";G[G.GROUP_DELETE=43]="GROUP_DELETE";G[G.GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE=44]="GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE";G[G.CALL_MISSED_GROUP_VOICE=45]="CALL_MISSED_GROUP_VOICE";G[G.CALL_MISSED_GROUP_VIDEO=46]="CALL_MISSED_GROUP_VIDEO";G[G.PAYMENT_CIPHERTEXT=47]="PAYMENT_CIPHERTEXT";G[G.PAYMENT_FUTUREPROOF=48]="PAYMENT_FUTUREPROOF";G[G.PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED=49]="PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED";G[G.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED=50]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED";G[G.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED=51]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED";G[G.PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP=52]="PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP";G[G.PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP=53]="PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP";G[G.PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER=54]="PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER";G[G.PAYMENT_ACTION_SEND_PAYMENT_REMINDER=55]="PAYMENT_ACTION_SEND_PAYMENT_REMINDER";G[G.PAYMENT_ACTION_SEND_PAYMENT_INVITATION=56]="PAYMENT_ACTION_SEND_PAYMENT_INVITATION";G[G.PAYMENT_ACTION_REQUEST_DECLINED=57]="PAYMENT_ACTION_REQUEST_DECLINED";G[G.PAYMENT_ACTION_REQUEST_EXPIRED=58]="PAYMENT_ACTION_REQUEST_EXPIRED";G[G.PAYMENT_ACTION_REQUEST_CANCELLED=59]="PAYMENT_ACTION_REQUEST_CANCELLED";G[G.BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM=60]="BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM";G[G.BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP=61]="BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP";G[G.BIZ_INTRO_TOP=62]="BIZ_INTRO_TOP";G[G.BIZ_INTRO_BOTTOM=63]="BIZ_INTRO_BOTTOM";G[G.BIZ_NAME_CHANGE=64]="BIZ_NAME_CHANGE";G[G.BIZ_MOVE_TO_CONSUMER_APP=65]="BIZ_MOVE_TO_CONSUMER_APP";G[G.BIZ_TWO_TIER_MIGRATION_TOP=66]="BIZ_TWO_TIER_MIGRATION_TOP";G[G.BIZ_TWO_TIER_MIGRATION_BOTTOM=67]="BIZ_TWO_TIER_MIGRATION_BOTTOM";G[G.OVERSIZED=68]="OVERSIZED";G[G.GROUP_CHANGE_NO_FREQUENTLY_FORWARDED=69]="GROUP_CHANGE_NO_FREQUENTLY_FORWARDED";G[G.GROUP_V4_ADD_INVITE_SENT=70]="GROUP_V4_ADD_INVITE_SENT";G[G.GROUP_PARTICIPANT_ADD_REQUEST_JOIN=71]="GROUP_PARTICIPANT_ADD_REQUEST_JOIN";G[G.CHANGE_EPHEMERAL_SETTING=72]="CHANGE_EPHEMERAL_SETTING";G[G.E2E_DEVICE_CHANGED=73]="E2E_DEVICE_CHANGED";G[G.VIEWED_ONCE=74]="VIEWED_ONCE";G[G.E2E_ENCRYPTED_NOW=75]="E2E_ENCRYPTED_NOW";G[G.BLUE_MSG_BSP_FB_TO_BSP_PREMISE=76]="BLUE_MSG_BSP_FB_TO_BSP_PREMISE";G[G.BLUE_MSG_BSP_FB_TO_SELF_FB=77]="BLUE_MSG_BSP_FB_TO_SELF_FB";G[G.BLUE_MSG_BSP_FB_TO_SELF_PREMISE=78]="BLUE_MSG_BSP_FB_TO_SELF_PREMISE";G[G.BLUE_MSG_BSP_FB_UNVERIFIED=79]="BLUE_MSG_BSP_FB_UNVERIFIED";G[G.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=80]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";G[G.BLUE_MSG_BSP_FB_VERIFIED=81]="BLUE_MSG_BSP_FB_VERIFIED";G[G.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=82]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE=83]="BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE";G[G.BLUE_MSG_BSP_PREMISE_UNVERIFIED=84]="BLUE_MSG_BSP_PREMISE_UNVERIFIED";G[G.BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=85]="BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";G[G.BLUE_MSG_BSP_PREMISE_VERIFIED=86]="BLUE_MSG_BSP_PREMISE_VERIFIED";G[G.BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=87]="BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED=88]="BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED";G[G.BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED=89]="BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED";G[G.BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED=90]="BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED";G[G.BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED=91]="BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_SELF_FB_TO_BSP_PREMISE=92]="BLUE_MSG_SELF_FB_TO_BSP_PREMISE";G[G.BLUE_MSG_SELF_FB_TO_SELF_PREMISE=93]="BLUE_MSG_SELF_FB_TO_SELF_PREMISE";G[G.BLUE_MSG_SELF_FB_UNVERIFIED=94]="BLUE_MSG_SELF_FB_UNVERIFIED";G[G.BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=95]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";G[G.BLUE_MSG_SELF_FB_VERIFIED=96]="BLUE_MSG_SELF_FB_VERIFIED";G[G.BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=97]="BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE=98]="BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE";G[G.BLUE_MSG_SELF_PREMISE_UNVERIFIED=99]="BLUE_MSG_SELF_PREMISE_UNVERIFIED";G[G.BLUE_MSG_SELF_PREMISE_VERIFIED=100]="BLUE_MSG_SELF_PREMISE_VERIFIED";G[G.BLUE_MSG_TO_BSP_FB=101]="BLUE_MSG_TO_BSP_FB";G[G.BLUE_MSG_TO_CONSUMER=102]="BLUE_MSG_TO_CONSUMER";G[G.BLUE_MSG_TO_SELF_FB=103]="BLUE_MSG_TO_SELF_FB";G[G.BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED=104]="BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED";G[G.BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=105]="BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";G[G.BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED=106]="BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED";G[G.BLUE_MSG_UNVERIFIED_TO_VERIFIED=107]="BLUE_MSG_UNVERIFIED_TO_VERIFIED";G[G.BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED=108]="BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED";G[G.BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=109]="BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";G[G.BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED=110]="BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED";G[G.BLUE_MSG_VERIFIED_TO_UNVERIFIED=111]="BLUE_MSG_VERIFIED_TO_UNVERIFIED";G[G.BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=112]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";G[G.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED=113]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED";G[G.BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=114]="BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";G[G.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED=115]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED";G[G.BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=116]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";G[G.BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=117]="BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";G[G.E2E_IDENTITY_UNAVAILABLE=118]="E2E_IDENTITY_UNAVAILABLE";G[G.GROUP_CREATING=119]="GROUP_CREATING";G[G.GROUP_CREATE_FAILED=120]="GROUP_CREATE_FAILED";G[G.GROUP_BOUNCED=121]="GROUP_BOUNCED";G[G.BLOCK_CONTACT=122]="BLOCK_CONTACT";G[G.EPHEMERAL_SETTING_NOT_APPLIED=123]="EPHEMERAL_SETTING_NOT_APPLIED";G[G.SYNC_FAILED=124]="SYNC_FAILED";G[G.SYNCING=125]="SYNCING";G[G.BIZ_PRIVACY_MODE_INIT_FB=126]="BIZ_PRIVACY_MODE_INIT_FB";G[G.BIZ_PRIVACY_MODE_INIT_BSP=127]="BIZ_PRIVACY_MODE_INIT_BSP";G[G.BIZ_PRIVACY_MODE_TO_FB=128]="BIZ_PRIVACY_MODE_TO_FB";G[G.BIZ_PRIVACY_MODE_TO_BSP=129]="BIZ_PRIVACY_MODE_TO_BSP";G[G.DISAPPEARING_MODE=130]="DISAPPEARING_MODE";G[G.E2E_DEVICE_FETCH_FAILED=131]="E2E_DEVICE_FETCH_FAILED";G[G.ADMIN_REVOKE=132]="ADMIN_REVOKE";G[G.GROUP_INVITE_LINK_GROWTH_LOCKED=133]="GROUP_INVITE_LINK_GROWTH_LOCKED";G[G.COMMUNITY_LINK_PARENT_GROUP=134]="COMMUNITY_LINK_PARENT_GROUP";G[G.COMMUNITY_LINK_SIBLING_GROUP=135]="COMMUNITY_LINK_SIBLING_GROUP";G[G.COMMUNITY_LINK_SUB_GROUP=136]="COMMUNITY_LINK_SUB_GROUP";G[G.COMMUNITY_UNLINK_PARENT_GROUP=137]="COMMUNITY_UNLINK_PARENT_GROUP";G[G.COMMUNITY_UNLINK_SIBLING_GROUP=138]="COMMUNITY_UNLINK_SIBLING_GROUP";G[G.COMMUNITY_UNLINK_SUB_GROUP=139]="COMMUNITY_UNLINK_SUB_GROUP";G[G.GROUP_PARTICIPANT_ACCEPT=140]="GROUP_PARTICIPANT_ACCEPT";G[G.GROUP_PARTICIPANT_LINKED_GROUP_JOIN=141]="GROUP_PARTICIPANT_LINKED_GROUP_JOIN";G[G.COMMUNITY_CREATE=142]="COMMUNITY_CREATE";G[G.EPHEMERAL_KEEP_IN_CHAT=143]="EPHEMERAL_KEEP_IN_CHAT";G[G.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST=144]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST";G[G.GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE=145]="GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE";G[G.INTEGRITY_UNLINK_PARENT_GROUP=146]="INTEGRITY_UNLINK_PARENT_GROUP";G[G.COMMUNITY_PARTICIPANT_PROMOTE=147]="COMMUNITY_PARTICIPANT_PROMOTE";G[G.COMMUNITY_PARTICIPANT_DEMOTE=148]="COMMUNITY_PARTICIPANT_DEMOTE";G[G.COMMUNITY_PARENT_GROUP_DELETED=149]="COMMUNITY_PARENT_GROUP_DELETED";G[G.COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL=150]="COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL";G[G.GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP=151]="GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP";G[G.MASKED_THREAD_CREATED=152]="MASKED_THREAD_CREATED";G[G.MASKED_THREAD_UNMASKED=153]="MASKED_THREAD_UNMASKED";G[G.BIZ_CHAT_ASSIGNMENT=154]="BIZ_CHAT_ASSIGNMENT";G[G.CHAT_PSA=155]="CHAT_PSA";G[G.CHAT_POLL_CREATION_MESSAGE=156]="CHAT_POLL_CREATION_MESSAGE";G[G.CAG_MASKED_THREAD_CREATED=157]="CAG_MASKED_THREAD_CREATED";G[G.COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED=158]="COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED";G[G.CAG_INVITE_AUTO_ADD=159]="CAG_INVITE_AUTO_ADD";G[G.BIZ_CHAT_ASSIGNMENT_UNASSIGN=160]="BIZ_CHAT_ASSIGNMENT_UNASSIGN";G[G.CAG_INVITE_AUTO_JOINED=161]="CAG_INVITE_AUTO_JOINED";G[G.SCHEDULED_CALL_START_MESSAGE=162]="SCHEDULED_CALL_START_MESSAGE";G[G.COMMUNITY_INVITE_RICH=163]="COMMUNITY_INVITE_RICH";G[G.COMMUNITY_INVITE_AUTO_ADD_RICH=164]="COMMUNITY_INVITE_AUTO_ADD_RICH";G[G.SUB_GROUP_INVITE_RICH=165]="SUB_GROUP_INVITE_RICH";G[G.SUB_GROUP_PARTICIPANT_ADD_RICH=166]="SUB_GROUP_PARTICIPANT_ADD_RICH";G[G.COMMUNITY_LINK_PARENT_GROUP_RICH=167]="COMMUNITY_LINK_PARENT_GROUP_RICH";G[G.COMMUNITY_PARTICIPANT_ADD_RICH=168]="COMMUNITY_PARTICIPANT_ADD_RICH";G[G.SILENCED_UNKNOWN_CALLER_AUDIO=169]="SILENCED_UNKNOWN_CALLER_AUDIO";G[G.SILENCED_UNKNOWN_CALLER_VIDEO=170]="SILENCED_UNKNOWN_CALLER_VIDEO";G[G.GROUP_MEMBER_ADD_MODE=171]="GROUP_MEMBER_ADD_MODE";G[G.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD=172]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD";G[G.COMMUNITY_CHANGE_DESCRIPTION=173]="COMMUNITY_CHANGE_DESCRIPTION";G[G.SENDER_INVITE=174]="SENDER_INVITE";G[G.RECEIVER_INVITE=175]="RECEIVER_INVITE";G[G.COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS=176]="COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS";G[G.PINNED_MESSAGE_IN_CHAT=177]="PINNED_MESSAGE_IN_CHAT";G[G.PAYMENT_INVITE_SETUP_INVITER=178]="PAYMENT_INVITE_SETUP_INVITER";G[G.PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY=179]="PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY";G[G.PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE=180]="PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE";G[G.LINKED_GROUP_CALL_START=181]="LINKED_GROUP_CALL_START";G[G.REPORT_TO_ADMIN_ENABLED_STATUS=182]="REPORT_TO_ADMIN_ENABLED_STATUS";G[G.EMPTY_SUBGROUP_CREATE=183]="EMPTY_SUBGROUP_CREATE";G[G.SCHEDULED_CALL_CANCEL=184]="SCHEDULED_CALL_CANCEL";G[G.SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH=185]="SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH";G[G.GROUP_CHANGE_RECENT_HISTORY_SHARING=186]="GROUP_CHANGE_RECENT_HISTORY_SHARING";G[G.PAID_MESSAGE_SERVER_CAMPAIGN_ID=187]="PAID_MESSAGE_SERVER_CAMPAIGN_ID";G[G.GENERAL_CHAT_CREATE=188]="GENERAL_CHAT_CREATE";G[G.GENERAL_CHAT_ADD=189]="GENERAL_CHAT_ADD";G[G.GENERAL_CHAT_AUTO_ADD_DISABLED=190]="GENERAL_CHAT_AUTO_ADD_DISABLED";G[G.SUGGESTED_SUBGROUP_ANNOUNCE=191]="SUGGESTED_SUBGROUP_ANNOUNCE";G[G.BIZ_BOT_1P_MESSAGING_ENABLED=192]="BIZ_BOT_1P_MESSAGING_ENABLED";G[G.CHANGE_USERNAME=193]="CHANGE_USERNAME";G[G.BIZ_COEX_PRIVACY_INIT_SELF=194]="BIZ_COEX_PRIVACY_INIT_SELF";G[G.BIZ_COEX_PRIVACY_TRANSITION_SELF=195]="BIZ_COEX_PRIVACY_TRANSITION_SELF";G[G.SUPPORT_AI_EDUCATION=196]="SUPPORT_AI_EDUCATION";G[G.BIZ_BOT_3P_MESSAGING_ENABLED=197]="BIZ_BOT_3P_MESSAGING_ENABLED";G[G.REMINDER_SETUP_MESSAGE=198]="REMINDER_SETUP_MESSAGE";G[G.REMINDER_SENT_MESSAGE=199]="REMINDER_SENT_MESSAGE";G[G.REMINDER_CANCEL_MESSAGE=200]="REMINDER_CANCEL_MESSAGE";G[G.BIZ_COEX_PRIVACY_INIT=201]="BIZ_COEX_PRIVACY_INIT";G[G.BIZ_COEX_PRIVACY_TRANSITION=202]="BIZ_COEX_PRIVACY_TRANSITION";G[G.GROUP_DEACTIVATED=203]="GROUP_DEACTIVATED";G[G.COMMUNITY_DEACTIVATE_SIBLING_GROUP=204]="COMMUNITY_DEACTIVATE_SIBLING_GROUP";G[G.EVENT_UPDATED=205]="EVENT_UPDATED";G[G.EVENT_CANCELED=206]="EVENT_CANCELED";G[G.COMMUNITY_OWNER_UPDATED=207]="COMMUNITY_OWNER_UPDATED";G[G.COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN=208]="COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN";G[G.CAPI_GROUP_NE2EE_SYSTEM_MESSAGE=209]="CAPI_GROUP_NE2EE_SYSTEM_MESSAGE";G[G.STATUS_MENTION=210]="STATUS_MENTION";G[G.USER_CONTROLS_SYSTEM_MESSAGE=211]="USER_CONTROLS_SYSTEM_MESSAGE";G[G.SUPPORT_SYSTEM_MESSAGE=212]="SUPPORT_SYSTEM_MESSAGE";G[G.CHANGE_LID=213]="CHANGE_LID";G[G.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE=214]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE";G[G.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE=215]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE";G[G.CHANGE_LIMIT_SHARING=216]="CHANGE_LIMIT_SHARING";G[G.GROUP_MEMBER_LINK_MODE=217]="GROUP_MEMBER_LINK_MODE";G[G.BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE=218]="BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE";G[G.PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE=219]="PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE";G[G.QUARANTINED_MESSAGE=220]="QUARANTINED_MESSAGE";G[G.GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE=221]="GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE";G[G.GROUP_OPEN_BOT_ADDED=222]="GROUP_OPEN_BOT_ADDED";G[G.GROUP_TEE_BOT_ADDED=223]="GROUP_TEE_BOT_ADDED";G[G.CONTACT_INFO=224]="CONTACT_INFO";G[G.SCHEDULED_MESSAGE_CREATED=225]="SCHEDULED_MESSAGE_CREATED";G[G.IDENTITY_TRUST_MARKED=226]="IDENTITY_TRUST_MARKED";G[G.IDENTITY_TRUST_UNMARKED=227]="IDENTITY_TRUST_UNMARKED";G[G.IDENTITY_TRUST_REVOKED=228]="IDENTITY_TRUST_REVOKED";G[G.CTWA_CONSUMER_DISCLOSURE=230]="CTWA_CONSUMER_DISCLOSURE";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JA||={});function KH(){return{}}var _5={encode($,Q=new H){if($.rawId!==void 0)Q.uint32(8).uint32($.rawId);if($.timestamp!==void 0)Q.uint32(16).uint64($.timestamp);if($.keyIndex!==void 0)Q.uint32(24).uint32($.keyIndex);if($.accountType!==void 0)Q.uint32(32).int32($.accountType);if($.deviceType!==void 0)Q.uint32(40).int32($.deviceType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??KH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.rawId=J.uint32();continue}case 2:{if(K!==16)break;q.timestamp=J.uint64Value();continue}case 3:{if(K!==24)break;q.keyIndex=J.uint32();continue}case 4:{if(K!==32)break;q.accountType=J.int32();continue}case 5:{if(K!==40)break;q.deviceType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _5.fromPartial($??{})},fromPartial($){let Q=KH();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 qH(){return{}}var KA={encode($,Q=new H){if($.rawId!==void 0)Q.uint32(8).uint32($.rawId);if($.timestamp!==void 0)Q.uint32(16).uint64($.timestamp);if($.currentIndex!==void 0)Q.uint32(24).uint32($.currentIndex);if($.validIndexes!==void 0&&$.validIndexes.length!==0){Q.uint32(34).fork();for(let Z of $.validIndexes)Q.uint32(Z);Q.join()}if($.accountType!==void 0)Q.uint32(40).int32($.accountType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.rawId=J.uint32();continue}case 2:{if(K!==16)break;q.timestamp=J.uint64Value();continue}case 3:{if(K!==24)break;q.currentIndex=J.uint32();continue}case 4:{if(K===32){if(q.validIndexes===void 0)q.validIndexes=[];q.validIndexes.push(J.uint32());continue}if(K===34){if(q.validIndexes===void 0)q.validIndexes=[];let V=J.uint32()+J.pos;while(J.pos<V)q.validIndexes.push(J.uint32());continue}break}case 5:{if(K!==40)break;q.accountType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return KA.fromPartial($??{})},fromPartial($){let Q=qH();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 ZH(){return{}}var h5={encode($,Q=new H){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.accountSignatureKey!==void 0)Q.uint32(18).bytes($.accountSignatureKey);if($.accountSignature!==void 0)Q.uint32(26).bytes($.accountSignature);if($.deviceSignature!==void 0)Q.uint32(34).bytes($.deviceSignature);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ZH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.details=J.bytes();continue}case 2:{if(K!==18)break;q.accountSignatureKey=J.bytes();continue}case 3:{if(K!==26)break;q.accountSignature=J.bytes();continue}case 4:{if(K!==34)break;q.deviceSignature=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return h5.fromPartial($??{})},fromPartial($){let Q=ZH();return Q.details=$.details??void 0,Q.accountSignatureKey=$.accountSignatureKey??void 0,Q.accountSignature=$.accountSignature??void 0,Q.deviceSignature=$.deviceSignature??void 0,Q}};function XH(){return{}}var l5={encode($,Q=new H){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.hmac!==void 0)Q.uint32(18).bytes($.hmac);if($.accountType!==void 0)Q.uint32(24).int32($.accountType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??XH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.details=J.bytes();continue}case 2:{if(K!==18)break;q.hmac=J.bytes();continue}case 3:{if(K!==24)break;q.accountType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return l5.fromPartial($??{})},fromPartial($){let Q=XH();return Q.details=$.details??void 0,Q.hmac=$.hmac??void 0,Q.accountType=$.accountType??void 0,Q}};function YH(){return{}}var p5={encode($,Q=new H){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.accountSignature!==void 0)Q.uint32(18).bytes($.accountSignature);if($.accountSignatureKey!==void 0)Q.uint32(26).bytes($.accountSignatureKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??YH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.details=J.bytes();continue}case 2:{if(K!==18)break;q.accountSignature=J.bytes();continue}case 3:{if(K!==26)break;q.accountSignatureKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return p5.fromPartial($??{})},fromPartial($){let Q=YH();return Q.details=$.details??void 0,Q.accountSignature=$.accountSignature??void 0,Q.accountSignatureKey=$.accountSignatureKey??void 0,Q}};function VH(){return{}}var qA={encode($,Q=new H){if($.lastFetchTime!==void 0)Q.uint32(8).int64($.lastFetchTime);if($.capabilityOptions!==void 0&&$.capabilityOptions.length!==0)for(let Z of $.capabilityOptions)b$.encode(Z,Q.uint32(18).fork()).join();if($.conversationOptions!==void 0&&$.conversationOptions.length!==0)for(let Z of $.conversationOptions)b$.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??VH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.lastFetchTime=J.int64Value();continue}case 2:{if(K!==18)break;if(q.capabilityOptions===void 0)q.capabilityOptions=[];let V=b$.decode(J,J.uint32());if(V!==void 0)q.capabilityOptions.push(V);continue}case 3:{if(K!==26)break;if(q.conversationOptions===void 0)q.conversationOptions=[];let V=b$.decode(J,J.uint32());if(V!==void 0)q.conversationOptions.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return qA.fromPartial($??{})},fromPartial($){let Q=VH();return Q.lastFetchTime=$.lastFetchTime??void 0,Q.capabilityOptions=$.capabilityOptions?.map((Z)=>b$.fromPartial(Z))||void 0,Q.conversationOptions=$.conversationOptions?.map((Z)=>b$.fromPartial(Z))||void 0,Q}};function HH(){return{}}var b$={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.title!==void 0)Q.uint32(18).string($.title);if($.promptText!==void 0)Q.uint32(26).string($.promptText);if($.sessionId!==void 0)Q.uint32(34).string($.sessionId);if($.imageWdsIdentifier!==void 0)Q.uint32(42).string($.imageWdsIdentifier);if($.imageTintColor!==void 0)Q.uint32(50).string($.imageTintColor);if($.imageBackgroundColor!==void 0)Q.uint32(58).string($.imageBackgroundColor);if($.cardTypeId!==void 0)Q.uint32(66).string($.cardTypeId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??HH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}case 2:{if(K!==18)break;q.title=J.string();continue}case 3:{if(K!==26)break;q.promptText=J.string();continue}case 4:{if(K!==34)break;q.sessionId=J.string();continue}case 5:{if(K!==42)break;q.imageWdsIdentifier=J.string();continue}case 6:{if(K!==50)break;q.imageTintColor=J.string();continue}case 7:{if(K!==58)break;q.imageBackgroundColor=J.string();continue}case 8:{if(K!==66)break;q.cardTypeId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return b$.fromPartial($??{})},fromPartial($){let Q=HH();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 zH(){return{}}var P0={encode($,Q=new H){if($.collectionId!==void 0)Q.uint32(10).string($.collectionId);if($.expectedMediaCount!==void 0)Q.uint32(16).uint32($.expectedMediaCount);if($.hasGlobalCaption!==void 0)Q.uint32(24).bool($.hasGlobalCaption);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.collectionId=J.string();continue}case 2:{if(K!==16)break;q.expectedMediaCount=J.uint32();continue}case 3:{if(K!==24)break;q.hasGlobalCaption=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return P0.fromPartial($??{})},fromPartial($){let Q=zH();return Q.collectionId=$.collectionId??void 0,Q.expectedMediaCount=$.expectedMediaCount??void 0,Q.hasGlobalCaption=$.hasGlobalCaption??void 0,Q}};function GH(){return{}}var k0={encode($,Q=new H){if($.collectionId!==void 0)Q.uint32(10).string($.collectionId);if($.uploadOrderIndex!==void 0)Q.uint32(16).uint32($.uploadOrderIndex);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??GH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.collectionId=J.string();continue}case 2:{if(K!==16)break;q.uploadOrderIndex=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return k0.fromPartial($??{})},fromPartial($){let Q=GH();return Q.collectionId=$.collectionId??void 0,Q.uploadOrderIndex=$.uploadOrderIndex??void 0,Q}};function UH(){return{}}var x0={encode($,Q=new H){if($.hatchMetadataSync!==void 0)i8.encode($.hatchMetadataSync,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??UH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.hatchMetadataSync=i8.decode(J,J.uint32(),q.hatchMetadataSync);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return x0.fromPartial($??{})},fromPartial($){let Q=UH();return Q.hatchMetadataSync=$.hatchMetadataSync!==void 0&&$.hatchMetadataSync!==null?i8.fromPartial($.hatchMetadataSync):void 0,Q}};function CH(){return{}}var B0={encode($,Q=new H){if($.c2PaMetadata!==void 0)o$.encode($.c2PaMetadata,Q.uint32(10).fork()).join();if($.iptcMetadata!==void 0)o$.encode($.iptcMetadata,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??CH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.c2PaMetadata=o$.decode(J,J.uint32(),q.c2PaMetadata);continue}case 2:{if(K!==18)break;q.iptcMetadata=o$.decode(J,J.uint32(),q.iptcMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return B0.fromPartial($??{})},fromPartial($){let Q=CH();return Q.c2PaMetadata=$.c2PaMetadata!==void 0&&$.c2PaMetadata!==null?o$.fromPartial($.c2PaMetadata):void 0,Q.iptcMetadata=$.iptcMetadata!==void 0&&$.iptcMetadata!==null?o$.fromPartial($.iptcMetadata):void 0,Q}};function DH(){return{}}var o$={encode($,Q=new H){if($.createdWithGenAi!==void 0)Q.uint32(8).bool($.createdWithGenAi);if($.editedWithGenAi!==void 0)Q.uint32(16).bool($.editedWithGenAi);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??DH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.createdWithGenAi=J.bool();continue}case 2:{if(K!==16)break;q.editedWithGenAi=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return o$.fromPartial($??{})},fromPartial($){let Q=DH();return Q.createdWithGenAi=$.createdWithGenAi??void 0,Q.editedWithGenAi=$.editedWithGenAi??void 0,Q}};function FH(){return{}}var N0={encode($,Q=new H){if($.messageKey!==void 0)B.encode($.messageKey,Q.uint32(10).fork()).join();if($.message!==void 0)d.encode($.message,Q.uint32(18).fork()).join();if($.timestamp!==void 0)Q.uint32(24).int64($.timestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??FH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.messageKey=B.decode(J,J.uint32(),q.messageKey);continue}case 2:{if(K!==18)break;q.message=d.decode(J,J.uint32(),q.message);continue}case 3:{if(K!==24)break;q.timestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return N0.fromPartial($??{})},fromPartial($){let Q=FH();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?B.fromPartial($.messageKey):void 0,Q.message=$.message!==void 0&&$.message!==null?d.fromPartial($.message):void 0,Q.timestamp=$.timestamp??void 0,Q}};function LH(){return{}}var O0={encode($,Q=new H){if($.messageKey!==void 0)B.encode($.messageKey,Q.uint32(10).fork()).join();if($.responseTimestampMs!==void 0)Q.uint32(16).int64($.responseTimestampMs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??LH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.messageKey=B.decode(J,J.uint32(),q.messageKey);continue}case 2:{if(K!==16)break;q.responseTimestampMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return O0.fromPartial($??{})},fromPartial($){let Q=LH();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?B.fromPartial($.messageKey):void 0,Q.responseTimestampMs=$.responseTimestampMs??void 0,Q}};function PH(){return{}}var R0={encode($,Q=new H){if($.codeLanguage!==void 0)Q.uint32(10).string($.codeLanguage);if($.codeBlocks!==void 0&&$.codeBlocks.length!==0)for(let Z of $.codeBlocks)A0.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??PH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.codeLanguage=J.string();continue}case 2:{if(K!==18)break;if(q.codeBlocks===void 0)q.codeBlocks=[];let V=A0.decode(J,J.uint32());if(V!==void 0)q.codeBlocks.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return R0.fromPartial($??{})},fromPartial($){let Q=PH();return Q.codeLanguage=$.codeLanguage??void 0,Q.codeBlocks=$.codeBlocks?.map((Z)=>A0.fromPartial(Z))||void 0,Q}};function kH(){return{}}var A0={encode($,Q=new H){if($.highlightType!==void 0)Q.uint32(8).int32($.highlightType);if($.codeContent!==void 0)Q.uint32(18).string($.codeContent);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.highlightType=J.int32();continue}case 2:{if(K!==18)break;q.codeContent=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return A0.fromPartial($??{})},fromPartial($){let Q=kH();return Q.highlightType=$.highlightType??void 0,Q.codeContent=$.codeContent??void 0,Q}};function xH(){return{}}var E0={encode($,Q=new H){if($.itemsMetadata!==void 0&&$.itemsMetadata.length!==0)for(let Z of $.itemsMetadata)M0.encode(Z,Q.uint32(10).fork()).join();if($.contentType!==void 0)Q.uint32(16).int32($.contentType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.itemsMetadata===void 0)q.itemsMetadata=[];let V=M0.decode(J,J.uint32());if(V!==void 0)q.itemsMetadata.push(V);continue}case 2:{if(K!==16)break;q.contentType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return E0.fromPartial($??{})},fromPartial($){let Q=xH();return Q.itemsMetadata=$.itemsMetadata?.map((Z)=>M0.fromPartial(Z))||void 0,Q.contentType=$.contentType??void 0,Q}};function BH(){return{}}var M0={encode($,Q=new H){if($.reelItem!==void 0)W0.encode($.reelItem,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??BH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.reelItem=W0.decode(J,J.uint32(),q.reelItem);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return M0.fromPartial($??{})},fromPartial($){let Q=BH();return Q.reelItem=$.reelItem!==void 0&&$.reelItem!==null?W0.fromPartial($.reelItem):void 0,Q}};function NH(){return{}}var W0={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.profileIconUrl!==void 0)Q.uint32(18).string($.profileIconUrl);if($.thumbnailUrl!==void 0)Q.uint32(26).string($.thumbnailUrl);if($.videoUrl!==void 0)Q.uint32(34).string($.videoUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??NH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==18)break;q.profileIconUrl=J.string();continue}case 3:{if(K!==26)break;q.thumbnailUrl=J.string();continue}case 4:{if(K!==34)break;q.videoUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return W0.fromPartial($??{})},fromPartial($){let Q=NH();return Q.title=$.title??void 0,Q.profileIconUrl=$.profileIconUrl??void 0,Q.thumbnailUrl=$.thumbnailUrl??void 0,Q.videoUrl=$.videoUrl??void 0,Q}};function OH(){return{}}var S0={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.version!==void 0)Q.uint32(16).uint64($.version);if($.url!==void 0)Q.uint32(26).string($.url);if($.loopCount!==void 0)Q.uint32(32).uint32($.loopCount);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??OH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}case 2:{if(K!==16)break;q.version=J.uint64Value();continue}case 3:{if(K!==26)break;q.url=J.string();continue}case 4:{if(K!==32)break;q.loopCount=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return S0.fromPartial($??{})},fromPartial($){let Q=OH();return Q.type=$.type??void 0,Q.version=$.version??void 0,Q.url=$.url??void 0,Q.loopCount=$.loopCount??void 0,Q}};function RH(){return{}}var I0={encode($,Q=new H){if($.gridImageUrl!==void 0)k$.encode($.gridImageUrl,Q.uint32(10).fork()).join();if($.imageUrls!==void 0&&$.imageUrls.length!==0)for(let Z of $.imageUrls)k$.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??RH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.gridImageUrl=k$.decode(J,J.uint32(),q.gridImageUrl);continue}case 2:{if(K!==18)break;if(q.imageUrls===void 0)q.imageUrls=[];let V=k$.decode(J,J.uint32());if(V!==void 0)q.imageUrls.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return I0.fromPartial($??{})},fromPartial($){let Q=RH();return Q.gridImageUrl=$.gridImageUrl!==void 0&&$.gridImageUrl!==null?k$.fromPartial($.gridImageUrl):void 0,Q.imageUrls=$.imageUrls?.map((Z)=>k$.fromPartial(Z))||void 0,Q}};function AH(){return{}}var k$={encode($,Q=new H){if($.imagePreviewUrl!==void 0)Q.uint32(10).string($.imagePreviewUrl);if($.imageHighResUrl!==void 0)Q.uint32(18).string($.imageHighResUrl);if($.sourceUrl!==void 0)Q.uint32(26).string($.sourceUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??AH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.imagePreviewUrl=J.string();continue}case 2:{if(K!==18)break;q.imageHighResUrl=J.string();continue}case 3:{if(K!==26)break;q.sourceUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return k$.fromPartial($??{})},fromPartial($){let Q=AH();return Q.imagePreviewUrl=$.imagePreviewUrl??void 0,Q.imageHighResUrl=$.imageHighResUrl??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q}};function EH(){return{}}var T0={encode($,Q=new H){if($.imageUrl!==void 0)k$.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??EH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.imageUrl=k$.decode(J,J.uint32(),q.imageUrl);continue}case 2:{if(K!==18)break;q.imageText=J.string();continue}case 3:{if(K!==24)break;q.alignment=J.int32();continue}case 4:{if(K!==34)break;q.tapLinkUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return T0.fromPartial($??{})},fromPartial($){let Q=EH();return Q.imageUrl=$.imageUrl!==void 0&&$.imageUrl!==null?k$.fromPartial($.imageUrl):void 0,Q.imageText=$.imageText??void 0,Q.alignment=$.alignment??void 0,Q.tapLinkUrl=$.tapLinkUrl??void 0,Q}};function MH(){return{}}var y0={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);if($.expressions!==void 0&&$.expressions.length!==0)for(let Z of $.expressions)v0.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??MH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=J.string();continue}case 2:{if(K!==18)break;if(q.expressions===void 0)q.expressions=[];let V=v0.decode(J,J.uint32());if(V!==void 0)q.expressions.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return y0.fromPartial($??{})},fromPartial($){let Q=MH();return Q.text=$.text??void 0,Q.expressions=$.expressions?.map((Z)=>v0.fromPartial(Z))||void 0,Q}};function WH(){return{}}var v0={encode($,Q=new H){if($.latexExpression!==void 0)Q.uint32(10).string($.latexExpression);if($.url!==void 0)Q.uint32(18).string($.url);if($.width!==void 0)Q.uint32(25).double($.width);if($.height!==void 0)Q.uint32(33).double($.height);if($.fontHeight!==void 0)Q.uint32(41).double($.fontHeight);if($.imageTopPadding!==void 0)Q.uint32(49).double($.imageTopPadding);if($.imageLeadingPadding!==void 0)Q.uint32(57).double($.imageLeadingPadding);if($.imageBottomPadding!==void 0)Q.uint32(65).double($.imageBottomPadding);if($.imageTrailingPadding!==void 0)Q.uint32(73).double($.imageTrailingPadding);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??WH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.latexExpression=J.string();continue}case 2:{if(K!==18)break;q.url=J.string();continue}case 3:{if(K!==25)break;q.width=J.double();continue}case 4:{if(K!==33)break;q.height=J.double();continue}case 5:{if(K!==41)break;q.fontHeight=J.double();continue}case 6:{if(K!==49)break;q.imageTopPadding=J.double();continue}case 7:{if(K!==57)break;q.imageLeadingPadding=J.double();continue}case 8:{if(K!==65)break;q.imageBottomPadding=J.double();continue}case 9:{if(K!==73)break;q.imageTrailingPadding=J.double();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return v0.fromPartial($??{})},fromPartial($){let Q=WH();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 SH(){return{}}var f0={encode($,Q=new H){if($.centerLatitude!==void 0)Q.uint32(9).double($.centerLatitude);if($.centerLongitude!==void 0)Q.uint32(17).double($.centerLongitude);if($.latitudeDelta!==void 0)Q.uint32(25).double($.latitudeDelta);if($.longitudeDelta!==void 0)Q.uint32(33).double($.longitudeDelta);if($.annotations!==void 0&&$.annotations.length!==0)for(let Z of $.annotations)_0.encode(Z,Q.uint32(42).fork()).join();if($.showInfoList!==void 0)Q.uint32(48).bool($.showInfoList);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??SH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==9)break;q.centerLatitude=J.double();continue}case 2:{if(K!==17)break;q.centerLongitude=J.double();continue}case 3:{if(K!==25)break;q.latitudeDelta=J.double();continue}case 4:{if(K!==33)break;q.longitudeDelta=J.double();continue}case 5:{if(K!==42)break;if(q.annotations===void 0)q.annotations=[];let V=_0.decode(J,J.uint32());if(V!==void 0)q.annotations.push(V);continue}case 6:{if(K!==48)break;q.showInfoList=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return f0.fromPartial($??{})},fromPartial($){let Q=SH();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)=>_0.fromPartial(Z))||void 0,Q.showInfoList=$.showInfoList??void 0,Q}};function IH(){return{}}var _0={encode($,Q=new H){if($.annotationNumber!==void 0)Q.uint32(8).uint32($.annotationNumber);if($.latitude!==void 0)Q.uint32(17).double($.latitude);if($.longitude!==void 0)Q.uint32(25).double($.longitude);if($.title!==void 0)Q.uint32(34).string($.title);if($.body!==void 0)Q.uint32(42).string($.body);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??IH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.annotationNumber=J.uint32();continue}case 2:{if(K!==17)break;q.latitude=J.double();continue}case 3:{if(K!==25)break;q.longitude=J.double();continue}case 4:{if(K!==34)break;q.title=J.string();continue}case 5:{if(K!==42)break;q.body=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _0.fromPartial($??{})},fromPartial($){let Q=IH();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 TH(){return{}}var h0={encode($,Q=new H){if($.messageType!==void 0)Q.uint32(8).int32($.messageType);if($.submessages!==void 0&&$.submessages.length!==0)for(let Z of $.submessages)l0.encode(Z,Q.uint32(18).fork()).join();if($.unifiedResponse!==void 0)w0.encode($.unifiedResponse,Q.uint32(26).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??TH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.messageType=J.int32();continue}case 2:{if(K!==18)break;if(q.submessages===void 0)q.submessages=[];let V=l0.decode(J,J.uint32());if(V!==void 0)q.submessages.push(V);continue}case 3:{if(K!==26)break;q.unifiedResponse=w0.decode(J,J.uint32(),q.unifiedResponse);continue}case 4:{if(K!==34)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return h0.fromPartial($??{})},fromPartial($){let Q=TH();return Q.messageType=$.messageType??void 0,Q.submessages=$.submessages?.map((Z)=>l0.fromPartial(Z))||void 0,Q.unifiedResponse=$.unifiedResponse!==void 0&&$.unifiedResponse!==null?w0.fromPartial($.unifiedResponse):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function yH(){return{}}var l0={encode($,Q=new H){if($.messageType!==void 0)Q.uint32(8).int32($.messageType);if($.gridImageMetadata!==void 0)I0.encode($.gridImageMetadata,Q.uint32(18).fork()).join();if($.messageText!==void 0)Q.uint32(26).string($.messageText);if($.imageMetadata!==void 0)T0.encode($.imageMetadata,Q.uint32(34).fork()).join();if($.codeMetadata!==void 0)R0.encode($.codeMetadata,Q.uint32(42).fork()).join();if($.tableMetadata!==void 0)p0.encode($.tableMetadata,Q.uint32(50).fork()).join();if($.dynamicMetadata!==void 0)S0.encode($.dynamicMetadata,Q.uint32(58).fork()).join();if($.latexMetadata!==void 0)y0.encode($.latexMetadata,Q.uint32(66).fork()).join();if($.mapMetadata!==void 0)f0.encode($.mapMetadata,Q.uint32(74).fork()).join();if($.contentItemsMetadata!==void 0)E0.encode($.contentItemsMetadata,Q.uint32(82).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.messageType=J.int32();continue}case 2:{if(K!==18)break;q.gridImageMetadata=I0.decode(J,J.uint32(),q.gridImageMetadata);continue}case 3:{if(K!==26)break;q.messageText=J.string();continue}case 4:{if(K!==34)break;q.imageMetadata=T0.decode(J,J.uint32(),q.imageMetadata);continue}case 5:{if(K!==42)break;q.codeMetadata=R0.decode(J,J.uint32(),q.codeMetadata);continue}case 6:{if(K!==50)break;q.tableMetadata=p0.decode(J,J.uint32(),q.tableMetadata);continue}case 7:{if(K!==58)break;q.dynamicMetadata=S0.decode(J,J.uint32(),q.dynamicMetadata);continue}case 8:{if(K!==66)break;q.latexMetadata=y0.decode(J,J.uint32(),q.latexMetadata);continue}case 9:{if(K!==74)break;q.mapMetadata=f0.decode(J,J.uint32(),q.mapMetadata);continue}case 10:{if(K!==82)break;q.contentItemsMetadata=E0.decode(J,J.uint32(),q.contentItemsMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return l0.fromPartial($??{})},fromPartial($){let Q=yH();return Q.messageType=$.messageType??void 0,Q.gridImageMetadata=$.gridImageMetadata!==void 0&&$.gridImageMetadata!==null?I0.fromPartial($.gridImageMetadata):void 0,Q.messageText=$.messageText??void 0,Q.imageMetadata=$.imageMetadata!==void 0&&$.imageMetadata!==null?T0.fromPartial($.imageMetadata):void 0,Q.codeMetadata=$.codeMetadata!==void 0&&$.codeMetadata!==null?R0.fromPartial($.codeMetadata):void 0,Q.tableMetadata=$.tableMetadata!==void 0&&$.tableMetadata!==null?p0.fromPartial($.tableMetadata):void 0,Q.dynamicMetadata=$.dynamicMetadata!==void 0&&$.dynamicMetadata!==null?S0.fromPartial($.dynamicMetadata):void 0,Q.latexMetadata=$.latexMetadata!==void 0&&$.latexMetadata!==null?y0.fromPartial($.latexMetadata):void 0,Q.mapMetadata=$.mapMetadata!==void 0&&$.mapMetadata!==null?f0.fromPartial($.mapMetadata):void 0,Q.contentItemsMetadata=$.contentItemsMetadata!==void 0&&$.contentItemsMetadata!==null?E0.fromPartial($.contentItemsMetadata):void 0,Q}};function vH(){return{}}var p0={encode($,Q=new H){if($.rows!==void 0&&$.rows.length!==0)for(let Z of $.rows)u0.encode(Z,Q.uint32(10).fork()).join();if($.title!==void 0)Q.uint32(18).string($.title);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.rows===void 0)q.rows=[];let V=u0.decode(J,J.uint32());if(V!==void 0)q.rows.push(V);continue}case 2:{if(K!==18)break;q.title=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return p0.fromPartial($??{})},fromPartial($){let Q=vH();return Q.rows=$.rows?.map((Z)=>u0.fromPartial(Z))||void 0,Q.title=$.title??void 0,Q}};function fH(){return{}}var u0={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.items===void 0)q.items=[];let V=J.string();if(V!==void 0)q.items.push(V);continue}case 2:{if(K!==16)break;q.isHeading=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return u0.fromPartial($??{})},fromPartial($){let Q=fH();return Q.items=$.items?.map((Z)=>Z)||void 0,Q.isHeading=$.isHeading??void 0,Q}};function _H(){return{}}var w0={encode($,Q=new H){if($.data!==void 0)Q.uint32(10).bytes($.data);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_H();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.data=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return w0.fromPartial($??{})},fromPartial($){let Q=_H();return Q.data=$.data??void 0,Q}};function hH(){return{}}var j0={encode($,Q=new H){if($.requestType!==void 0)Q.uint32(8).int32($.requestType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.requestType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return j0.fromPartial($??{})},fromPartial($){let Q=hH();return Q.requestType=$.requestType??void 0,Q}};function lH(){return{}}var c0={encode($,Q=new H){if($.serverInfo!==void 0)n0.encode($.serverInfo,Q.uint32(10).fork()).join();if($.clientInfo!==void 0)d0.encode($.clientInfo,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.serverInfo=n0.decode(J,J.uint32(),q.serverInfo);continue}case 2:{if(K!==18)break;q.clientInfo=d0.decode(J,J.uint32(),q.clientInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return c0.fromPartial($??{})},fromPartial($){let Q=lH();return Q.serverInfo=$.serverInfo!==void 0&&$.serverInfo!==null?n0.fromPartial($.serverInfo):void 0,Q.clientInfo=$.clientInfo!==void 0&&$.clientInfo!==null?d0.fromPartial($.clientInfo):void 0,Q}};function pH(){return{}}var d0={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.sourceChatJid!==void 0)Q.uint32(18).string($.sourceChatJid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}case 2:{if(K!==18)break;q.sourceChatJid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return d0.fromPartial($??{})},fromPartial($){let Q=pH();return Q.type=$.type??void 0,Q.sourceChatJid=$.sourceChatJid??void 0,Q}};function uH(){return{}}var n0={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return n0.fromPartial($??{})},fromPartial($){let Q=uH();return Q.title=$.title??void 0,Q}};function wH(){return{}}var b0={encode($,Q=new H){if($.lid!==void 0)Q.uint32(10).string($.lid);if($.username!==void 0)Q.uint32(18).string($.username);if($.countryCode!==void 0)Q.uint32(26).string($.countryCode);if($.isUsernameDeleted!==void 0)Q.uint32(32).bool($.isUsernameDeleted);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.lid=J.string();continue}case 2:{if(K!==18)break;q.username=J.string();continue}case 3:{if(K!==26)break;q.countryCode=J.string();continue}case 4:{if(K!==32)break;q.isUsernameDeleted=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return b0.fromPartial($??{})},fromPartial($){let Q=wH();return Q.lid=$.lid??void 0,Q.username=$.username??void 0,Q.countryCode=$.countryCode??void 0,Q.isUsernameDeleted=$.isUsernameDeleted??void 0,Q}};function jH(){return{}}var ZA={encode($,Q=new H){if($.accesstoken!==void 0)Q.uint32(10).string($.accesstoken);if($.fbid!==void 0)Q.uint32(18).string($.fbid);if($.nonce!==void 0)Q.uint32(26).string($.nonce);if($.encryptedPassword!==void 0)Q.uint32(34).string($.encryptedPassword);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.accesstoken=J.string();continue}case 2:{if(K!==18)break;q.fbid=J.string();continue}case 3:{if(K!==26)break;q.nonce=J.string();continue}case 4:{if(K!==34)break;q.encryptedPassword=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return ZA.fromPartial($??{})},fromPartial($){let Q=jH();return Q.accesstoken=$.accesstoken??void 0,Q.fbid=$.fbid??void 0,Q.nonce=$.nonce??void 0,Q.encryptedPassword=$.encryptedPassword??void 0,Q}};function cH(){return{}}var o0={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.buttonTitle!==void 0)Q.uint32(18).string($.buttonTitle);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==18)break;q.buttonTitle=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return o0.fromPartial($??{})},fromPartial($){let Q=cH();return Q.url=$.url??void 0,Q.buttonTitle=$.buttonTitle??void 0,Q}};function dH(){return{}}var P$={encode($,Q=new H){if($.downloadImages!==void 0)Q.uint32(8).bool($.downloadImages);if($.downloadAudio!==void 0)Q.uint32(16).bool($.downloadAudio);if($.downloadVideo!==void 0)Q.uint32(24).bool($.downloadVideo);if($.downloadDocuments!==void 0)Q.uint32(32).bool($.downloadDocuments);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.downloadImages=J.bool();continue}case 2:{if(K!==16)break;q.downloadAudio=J.bool();continue}case 3:{if(K!==24)break;q.downloadVideo=J.bool();continue}case 4:{if(K!==32)break;q.downloadDocuments=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return P$.fromPartial($??{})},fromPartial($){let Q=dH();return Q.downloadImages=$.downloadImages??void 0,Q.downloadAudio=$.downloadAudio??void 0,Q.downloadVideo=$.downloadVideo??void 0,Q.downloadDocuments=$.downloadDocuments??void 0,Q}};function nH(){return{}}var i0={encode($,Q=new H){if($.fbid!==void 0)Q.uint32(10).string($.fbid);if($.password!==void 0)Q.uint32(18).string($.password);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fbid=J.string();continue}case 2:{if(K!==18)break;q.password=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return i0.fromPartial($??{})},fromPartial($){let Q=nH();return Q.fbid=$.fbid??void 0,Q.password=$.password??void 0,Q}};function bH(){return{}}var m0={encode($,Q=new H){if($.encryptedPrevEpochAnonId!==void 0)Q.uint32(10).bytes($.encryptedPrevEpochAnonId);if($.encryptedPrevEpochRootKey!==void 0)Q.uint32(18).bytes($.encryptedPrevEpochRootKey);if($.prevEpochRootKeyFingerprint!==void 0)Q.uint32(26).bytes($.prevEpochRootKeyFingerprint);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedPrevEpochAnonId=J.bytes();continue}case 2:{if(K!==18)break;q.encryptedPrevEpochRootKey=J.bytes();continue}case 3:{if(K!==26)break;q.prevEpochRootKeyFingerprint=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return m0.fromPartial($??{})},fromPartial($){let Q=bH();return Q.encryptedPrevEpochAnonId=$.encryptedPrevEpochAnonId??void 0,Q.encryptedPrevEpochRootKey=$.encryptedPrevEpochRootKey??void 0,Q.prevEpochRootKeyFingerprint=$.prevEpochRootKeyFingerprint??void 0,Q}};function oH(){return{}}var XA={encode($,Q=new H){if($.whatsappBizAcctFbid!==void 0)Q.uint32(8).uint64($.whatsappBizAcctFbid);if($.whatsappAcctNumber!==void 0)Q.uint32(18).string($.whatsappAcctNumber);if($.issueTime!==void 0)Q.uint32(24).uint64($.issueTime);if($.hostStorage!==void 0)Q.uint32(32).int32($.hostStorage);if($.accountType!==void 0)Q.uint32(40).int32($.accountType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.whatsappBizAcctFbid=J.uint64Value();continue}case 2:{if(K!==18)break;q.whatsappAcctNumber=J.string();continue}case 3:{if(K!==24)break;q.issueTime=J.uint64Value();continue}case 4:{if(K!==32)break;q.hostStorage=J.int32();continue}case 5:{if(K!==40)break;q.accountType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return XA.fromPartial($??{})},fromPartial($){let Q=oH();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 iH(){return{}}var YA={encode($,Q=new H){if($.vnameCert!==void 0)c$.encode($.vnameCert,Q.uint32(10).fork()).join();if($.bizAcctLinkInfo!==void 0)Q.uint32(18).bytes($.bizAcctLinkInfo);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.vnameCert=c$.decode(J,J.uint32(),q.vnameCert);continue}case 2:{if(K!==18)break;q.bizAcctLinkInfo=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return YA.fromPartial($??{})},fromPartial($){let Q=iH();return Q.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?c$.fromPartial($.vnameCert):void 0,Q.bizAcctLinkInfo=$.bizAcctLinkInfo??void 0,Q}};function mH(){return{}}var VA={encode($,Q=new H){if($.vlevel!==void 0)Q.uint32(8).int32($.vlevel);if($.vnameCert!==void 0)c$.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.vlevel=J.int32();continue}case 2:{if(K!==18)break;q.vnameCert=c$.decode(J,J.uint32(),q.vnameCert);continue}case 3:{if(K!==24)break;q.signed=J.bool();continue}case 4:{if(K!==32)break;q.revoked=J.bool();continue}case 5:{if(K!==40)break;q.hostStorage=J.int32();continue}case 6:{if(K!==48)break;q.actualActors=J.int32();continue}case 7:{if(K!==56)break;q.privacyModeTs=J.uint64Value();continue}case 8:{if(K!==64)break;q.featureControls=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return VA.fromPartial($??{})},fromPartial($){let Q=mH();return Q.vlevel=$.vlevel??void 0,Q.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?c$.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 gH(){return{}}var g0={encode($,Q=new H){if($.ageCollectionEligible!==void 0)Q.uint32(8).bool($.ageCollectionEligible);if($.shouldTriggerAgeCollectionOnClient!==void 0)Q.uint32(16).bool($.shouldTriggerAgeCollectionOnClient);if($.ageCollectionType!==void 0)Q.uint32(24).int32($.ageCollectionType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.ageCollectionEligible=J.bool();continue}case 2:{if(K!==16)break;q.shouldTriggerAgeCollectionOnClient=J.bool();continue}case 3:{if(K!==24)break;q.ageCollectionType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return g0.fromPartial($??{})},fromPartial($){let Q=gH();return Q.ageCollectionEligible=$.ageCollectionEligible??void 0,Q.shouldTriggerAgeCollectionOnClient=$.shouldTriggerAgeCollectionOnClient??void 0,Q.ageCollectionType=$.ageCollectionType??void 0,Q}};function rH(){return{}}var r0={encode($,Q=new H){if($.token!==void 0)Q.uint32(10).string($.token);if($.clientPublicKey!==void 0)Q.uint32(18).bytes($.clientPublicKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.token=J.string();continue}case 2:{if(K!==18)break;q.clientPublicKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return r0.fromPartial($??{})},fromPartial($){let Q=rH();return Q.token=$.token??void 0,Q.clientPublicKey=$.clientPublicKey??void 0,Q}};function tH(){return{}}var t0={encode($,Q=new H){if($.deepLinkMetadata!==void 0)r0.encode($.deepLinkMetadata,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.deepLinkMetadata=r0.decode(J,J.uint32(),q.deepLinkMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return t0.fromPartial($??{})},fromPartial($){let Q=tH();return Q.deepLinkMetadata=$.deepLinkMetadata!==void 0&&$.deepLinkMetadata!==null?r0.fromPartial($.deepLinkMetadata):void 0,Q}};function aH(){return{}}var a0={encode($,Q=new H){if($.capabilities!==void 0&&$.capabilities.length!==0)for(let Z of $.capabilities)Q.uint32(8).int32(Z);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??aH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K===8){if(q.capabilities===void 0)q.capabilities=[];q.capabilities.push(J.int32());continue}if(K===10){if(q.capabilities===void 0)q.capabilities=[];let V=J.uint32()+J.pos;while(J.pos<V)q.capabilities.push(J.int32());continue}break}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return a0.fromPartial($??{})},fromPartial($){let Q=aH();return Q.capabilities=$.capabilities?.map((Z)=>Z)||void 0,Q}};function sH(){return{}}var s0={encode($,Q=new H){if($.commandName!==void 0)Q.uint32(10).string($.commandName);if($.commandDescription!==void 0)Q.uint32(18).string($.commandDescription);if($.commandPrompt!==void 0)Q.uint32(26).string($.commandPrompt);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.commandName=J.string();continue}case 2:{if(K!==18)break;q.commandDescription=J.string();continue}case 3:{if(K!==26)break;q.commandPrompt=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return s0.fromPartial($??{})},fromPartial($){let Q=sH();return Q.commandName=$.commandName??void 0,Q.commandDescription=$.commandDescription??void 0,Q.commandPrompt=$.commandPrompt??void 0,Q}};function eH(){return{}}var e0={encode($,Q=new H){if($.pluginType!==void 0)Q.uint32(8).int32($.pluginType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??eH();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.pluginType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return e0.fromPartial($??{})},fromPartial($){let Q=eH();return Q.pluginType=$.pluginType??void 0,Q}};function $7(){return{}}var $J={encode($,Q=new H){if($.messageKey!==void 0)B.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)QJ.encode($.sideBySideSurveyMetadata,Q.uint32(58).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.messageKey=B.decode(J,J.uint32(),q.messageKey);continue}case 2:{if(K!==16)break;q.kind=J.int32();continue}case 3:{if(K!==26)break;q.text=J.string();continue}case 4:{if(K!==32)break;q.kindNegative=J.uint64Value();continue}case 5:{if(K!==40)break;q.kindPositive=J.uint64Value();continue}case 6:{if(K!==48)break;q.kindReport=J.int32();continue}case 7:{if(K!==58)break;q.sideBySideSurveyMetadata=QJ.decode(J,J.uint32(),q.sideBySideSurveyMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $J.fromPartial($??{})},fromPartial($){let Q=$7();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?B.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?QJ.fromPartial($.sideBySideSurveyMetadata):void 0,Q}};function Q7(){return{}}var QJ={encode($,Q=new H){if($.selectedRequestId!==void 0)Q.uint32(10).string($.selectedRequestId);if($.surveyId!==void 0)Q.uint32(16).uint32($.surveyId);if($.simonSessionFbid!==void 0)Q.uint32(26).string($.simonSessionFbid);if($.responseOtid!==void 0)Q.uint32(34).string($.responseOtid);if($.responseTimestampMsString!==void 0)Q.uint32(42).string($.responseTimestampMsString);if($.isSelectedResponsePrimary!==void 0)Q.uint32(48).bool($.isSelectedResponsePrimary);if($.messageIdToEdit!==void 0)Q.uint32(58).string($.messageIdToEdit);if($.analyticsData!==void 0)JJ.encode($.analyticsData,Q.uint32(66).fork()).join();if($.metaAiAnalyticsData!==void 0)KJ.encode($.metaAiAnalyticsData,Q.uint32(74).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Q7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.selectedRequestId=J.string();continue}case 2:{if(K!==16)break;q.surveyId=J.uint32();continue}case 3:{if(K!==26)break;q.simonSessionFbid=J.string();continue}case 4:{if(K!==34)break;q.responseOtid=J.string();continue}case 5:{if(K!==42)break;q.responseTimestampMsString=J.string();continue}case 6:{if(K!==48)break;q.isSelectedResponsePrimary=J.bool();continue}case 7:{if(K!==58)break;q.messageIdToEdit=J.string();continue}case 8:{if(K!==66)break;q.analyticsData=JJ.decode(J,J.uint32(),q.analyticsData);continue}case 9:{if(K!==74)break;q.metaAiAnalyticsData=KJ.decode(J,J.uint32(),q.metaAiAnalyticsData);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return QJ.fromPartial($??{})},fromPartial($){let Q=Q7();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?JJ.fromPartial($.analyticsData):void 0,Q.metaAiAnalyticsData=$.metaAiAnalyticsData!==void 0&&$.metaAiAnalyticsData!==null?KJ.fromPartial($.metaAiAnalyticsData):void 0,Q}};function J7(){return{}}var JJ={encode($,Q=new H){if($.tessaEvent!==void 0)Q.uint32(10).string($.tessaEvent);if($.tessaSessionFbid!==void 0)Q.uint32(18).string($.tessaSessionFbid);if($.simonSessionFbid!==void 0)Q.uint32(26).string($.simonSessionFbid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??J7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.tessaEvent=J.string();continue}case 2:{if(K!==18)break;q.tessaSessionFbid=J.string();continue}case 3:{if(K!==26)break;q.simonSessionFbid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return JJ.fromPartial($??{})},fromPartial($){let Q=J7();return Q.tessaEvent=$.tessaEvent??void 0,Q.tessaSessionFbid=$.tessaSessionFbid??void 0,Q.simonSessionFbid=$.simonSessionFbid??void 0,Q}};function K7(){return{}}var KJ={encode($,Q=new H){if($.surveyId!==void 0)Q.uint32(8).uint32($.surveyId);if($.primaryResponseId!==void 0)Q.uint32(18).string($.primaryResponseId);if($.testArmName!==void 0)Q.uint32(26).string($.testArmName);if($.timestampMsString!==void 0)Q.uint32(34).string($.timestampMsString);if($.ctaImpressionEvent!==void 0)XJ.encode($.ctaImpressionEvent,Q.uint32(42).fork()).join();if($.ctaClickEvent!==void 0)ZJ.encode($.ctaClickEvent,Q.uint32(50).fork()).join();if($.cardImpressionEvent!==void 0)YJ.encode($.cardImpressionEvent,Q.uint32(58).fork()).join();if($.responseEvent!==void 0)VJ.encode($.responseEvent,Q.uint32(66).fork()).join();if($.abandonEvent!==void 0)qJ.encode($.abandonEvent,Q.uint32(74).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??K7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.surveyId=J.uint32();continue}case 2:{if(K!==18)break;q.primaryResponseId=J.string();continue}case 3:{if(K!==26)break;q.testArmName=J.string();continue}case 4:{if(K!==34)break;q.timestampMsString=J.string();continue}case 5:{if(K!==42)break;q.ctaImpressionEvent=XJ.decode(J,J.uint32(),q.ctaImpressionEvent);continue}case 6:{if(K!==50)break;q.ctaClickEvent=ZJ.decode(J,J.uint32(),q.ctaClickEvent);continue}case 7:{if(K!==58)break;q.cardImpressionEvent=YJ.decode(J,J.uint32(),q.cardImpressionEvent);continue}case 8:{if(K!==66)break;q.responseEvent=VJ.decode(J,J.uint32(),q.responseEvent);continue}case 9:{if(K!==74)break;q.abandonEvent=qJ.decode(J,J.uint32(),q.abandonEvent);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return KJ.fromPartial($??{})},fromPartial($){let Q=K7();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?XJ.fromPartial($.ctaImpressionEvent):void 0,Q.ctaClickEvent=$.ctaClickEvent!==void 0&&$.ctaClickEvent!==null?ZJ.fromPartial($.ctaClickEvent):void 0,Q.cardImpressionEvent=$.cardImpressionEvent!==void 0&&$.cardImpressionEvent!==null?YJ.fromPartial($.cardImpressionEvent):void 0,Q.responseEvent=$.responseEvent!==void 0&&$.responseEvent!==null?VJ.fromPartial($.responseEvent):void 0,Q.abandonEvent=$.abandonEvent!==void 0&&$.abandonEvent!==null?qJ.fromPartial($.abandonEvent):void 0,Q}};function q7(){return{}}var qJ={encode($,Q=new H){if($.abandonDwellTimeMsString!==void 0)Q.uint32(10).string($.abandonDwellTimeMsString);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??q7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.abandonDwellTimeMsString=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return qJ.fromPartial($??{})},fromPartial($){let Q=q7();return Q.abandonDwellTimeMsString=$.abandonDwellTimeMsString??void 0,Q}};function Z7(){return{}}var ZJ={encode($,Q=new H){if($.isSurveyExpired!==void 0)Q.uint32(8).bool($.isSurveyExpired);if($.clickDwellTimeMsString!==void 0)Q.uint32(18).string($.clickDwellTimeMsString);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Z7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isSurveyExpired=J.bool();continue}case 2:{if(K!==18)break;q.clickDwellTimeMsString=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return ZJ.fromPartial($??{})},fromPartial($){let Q=Z7();return Q.isSurveyExpired=$.isSurveyExpired??void 0,Q.clickDwellTimeMsString=$.clickDwellTimeMsString??void 0,Q}};function X7(){return{}}var XJ={encode($,Q=new H){if($.isSurveyExpired!==void 0)Q.uint32(8).bool($.isSurveyExpired);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??X7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isSurveyExpired=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return XJ.fromPartial($??{})},fromPartial($){let Q=X7();return Q.isSurveyExpired=$.isSurveyExpired??void 0,Q}};function Y7(){return{}}var YJ={encode($,Q=new H){return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Y7();while(J.pos<X){let K=J.uint32();switch(K>>>3){}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return YJ.fromPartial($??{})},fromPartial($){return Y7()}};function V7(){return{}}var VJ={encode($,Q=new H){if($.responseDwellTimeMsString!==void 0)Q.uint32(10).string($.responseDwellTimeMsString);if($.selectedResponseId!==void 0)Q.uint32(18).string($.selectedResponseId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??V7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.responseDwellTimeMsString=J.string();continue}case 2:{if(K!==18)break;q.selectedResponseId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return VJ.fromPartial($??{})},fromPartial($){let Q=V7();return Q.responseDwellTimeMsString=$.responseDwellTimeMsString??void 0,Q.selectedResponseId=$.selectedResponseId??void 0,Q}};function H7(){return{}}var HJ={encode($,Q=new H){if($.participantsMetadata!==void 0&&$.participantsMetadata.length!==0)for(let Z of $.participantsMetadata)XQ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??H7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.participantsMetadata===void 0)q.participantsMetadata=[];let V=XQ.decode(J,J.uint32());if(V!==void 0)q.participantsMetadata.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return HJ.fromPartial($??{})},fromPartial($){let Q=H7();return Q.participantsMetadata=$.participantsMetadata?.map((Z)=>XQ.fromPartial(Z))||void 0,Q}};function z7(){return{}}var XQ={encode($,Q=new H){if($.botFbid!==void 0)Q.uint32(10).string($.botFbid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??z7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.botFbid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return XQ.fromPartial($??{})},fromPartial($){let Q=z7();return Q.botFbid=$.botFbid??void 0,Q}};function G7(){return{}}var zJ={encode($,Q=new H){if($.participantsMetadata!==void 0&&$.participantsMetadata.length!==0)for(let Z of $.participantsMetadata)XQ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??G7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.participantsMetadata===void 0)q.participantsMetadata=[];let V=XQ.decode(J,J.uint32());if(V!==void 0)q.participantsMetadata.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return zJ.fromPartial($??{})},fromPartial($){let Q=G7();return Q.participantsMetadata=$.participantsMetadata?.map((Z)=>XQ.fromPartial(Z))||void 0,Q}};function U7(){return{}}var GJ={encode($,Q=new H){if($.imagineType!==void 0)Q.uint32(8).int32($.imagineType);if($.shortPrompt!==void 0)Q.uint32(18).string($.shortPrompt);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??U7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.imagineType=J.int32();continue}case 2:{if(K!==18)break;q.shortPrompt=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return GJ.fromPartial($??{})},fromPartial($){let Q=U7();return Q.imagineType=$.imagineType??void 0,Q.shortPrompt=$.shortPrompt??void 0,Q}};function C7(){return{}}var UJ={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??C7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.botBackend=J.int32();continue}case 2:{if(K!==18)break;if(q.toolsUsed===void 0)q.toolsUsed=[];let V=J.string();if(V!==void 0)q.toolsUsed.push(V);continue}case 3:{if(K!==24)break;q.isThinking=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return UJ.fromPartial($??{})},fromPartial($){let Q=C7();return Q.botBackend=$.botBackend??void 0,Q.toolsUsed=$.toolsUsed?.map((Z)=>Z)||void 0,Q.isThinking=$.isThinking??void 0,Q}};function D7(){return{}}var CJ={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??D7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return CJ.fromPartial($??{})},fromPartial($){let Q=D7();return Q.type=$.type??void 0,Q}};function F7(){return{}}var DJ={encode($,Q=new H){if($.accounts!==void 0&&$.accounts.length!==0)for(let Z of $.accounts)CJ.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??F7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.accounts===void 0)q.accounts=[];let V=CJ.decode(J,J.uint32());if(V!==void 0)q.accounts.push(V);continue}case 2:{if(K!==18)break;q.acAuthTokens=J.bytes();continue}case 3:{if(K!==24)break;q.acErrorCode=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return DJ.fromPartial($??{})},fromPartial($){let Q=F7();return Q.accounts=$.accounts?.map((Z)=>CJ.fromPartial(Z))||void 0,Q.acAuthTokens=$.acAuthTokens??void 0,Q.acErrorCode=$.acErrorCode??void 0,Q}};function L7(){return{}}var x$={encode($,Q=new H){if($.fileSha256!==void 0)Q.uint32(10).string($.fileSha256);if($.mediaKey!==void 0)Q.uint32(18).string($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(26).string($.fileEncSha256);if($.directPath!==void 0)Q.uint32(34).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(40).int64($.mediaKeyTimestamp);if($.mimetype!==void 0)Q.uint32(50).string($.mimetype);if($.orientationType!==void 0)Q.uint32(56).int32($.orientationType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??L7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fileSha256=J.string();continue}case 2:{if(K!==18)break;q.mediaKey=J.string();continue}case 3:{if(K!==26)break;q.fileEncSha256=J.string();continue}case 4:{if(K!==34)break;q.directPath=J.string();continue}case 5:{if(K!==40)break;q.mediaKeyTimestamp=J.int64Value();continue}case 6:{if(K!==50)break;q.mimetype=J.string();continue}case 7:{if(K!==56)break;q.orientationType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return x$.fromPartial($??{})},fromPartial($){let Q=L7();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 P7(){return{}}var i$={encode($,Q=new H){if($.fact!==void 0)Q.uint32(10).string($.fact);if($.factId!==void 0)Q.uint32(18).string($.factId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??P7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fact=J.string();continue}case 2:{if(K!==18)break;q.factId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return i$.fromPartial($??{})},fromPartial($){let Q=P7();return Q.fact=$.fact??void 0,Q.factId=$.factId??void 0,Q}};function k7(){return{}}var FJ={encode($,Q=new H){if($.addedFacts!==void 0&&$.addedFacts.length!==0)for(let Z of $.addedFacts)i$.encode(Z,Q.uint32(10).fork()).join();if($.removedFacts!==void 0&&$.removedFacts.length!==0)for(let Z of $.removedFacts)i$.encode(Z,Q.uint32(18).fork()).join();if($.disclaimer!==void 0)Q.uint32(26).string($.disclaimer);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??k7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.addedFacts===void 0)q.addedFacts=[];let V=i$.decode(J,J.uint32());if(V!==void 0)q.addedFacts.push(V);continue}case 2:{if(K!==18)break;if(q.removedFacts===void 0)q.removedFacts=[];let V=i$.decode(J,J.uint32());if(V!==void 0)q.removedFacts.push(V);continue}case 3:{if(K!==26)break;q.disclaimer=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return FJ.fromPartial($??{})},fromPartial($){let Q=k7();return Q.addedFacts=$.addedFacts?.map((Z)=>i$.fromPartial(Z))||void 0,Q.removedFacts=$.removedFacts?.map((Z)=>i$.fromPartial(Z))||void 0,Q.disclaimer=$.disclaimer??void 0,Q}};function x7(){return{}}var LJ={encode($,Q=new H){if($.faceImages!==void 0&&$.faceImages.length!==0)for(let Z of $.faceImages)x$.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??x7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.faceImages===void 0)q.faceImages=[];let V=x$.decode(J,J.uint32());if(V!==void 0)q.faceImages.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return LJ.fromPartial($??{})},fromPartial($){let Q=x7();return Q.faceImages=$.faceImages?.map((Z)=>x$.fromPartial(Z))||void 0,Q}};function B7(){return{}}var PJ={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??B7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return PJ.fromPartial($??{})},fromPartial($){let Q=B7();return Q.type=$.type??void 0,Q}};function N7(){return{}}var kJ={encode($,Q=new H){if($.origins!==void 0&&$.origins.length!==0)for(let Z of $.origins)PJ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??N7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.origins===void 0)q.origins=[];let V=PJ.decode(J,J.uint32());if(V!==void 0)q.origins.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return kJ.fromPartial($??{})},fromPartial($){let Q=N7();return Q.origins=$.origins?.map((Z)=>PJ.fromPartial(Z))||void 0,Q}};function O7(){return{}}var xJ={encode($,Q=new H){if($.botEntryPointOrigin!==void 0)Q.uint32(8).int32($.botEntryPointOrigin);if($.forwardScore!==void 0)Q.uint32(16).uint32($.forwardScore);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??O7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.botEntryPointOrigin=J.int32();continue}case 2:{if(K!==16)break;q.forwardScore=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return xJ.fromPartial($??{})},fromPartial($){let Q=O7();return Q.botEntryPointOrigin=$.botEntryPointOrigin??void 0,Q.forwardScore=$.forwardScore??void 0,Q}};function R7(){return{}}var BJ={encode($,Q=new H){if($.personaId!==void 0)Q.uint32(18).string($.personaId);if($.pluginMetadata!==void 0)AJ.encode($.pluginMetadata,Q.uint32(26).fork()).join();if($.suggestedPromptMetadata!==void 0)iJ.encode($.suggestedPromptMetadata,Q.uint32(34).fork()).join();if($.invokerJid!==void 0)Q.uint32(42).string($.invokerJid);if($.sessionMetadata!==void 0)cJ.encode($.sessionMetadata,Q.uint32(50).fork()).join();if($.memuMetadata!==void 0)LJ.encode($.memuMetadata,Q.uint32(58).fork()).join();if($.timezone!==void 0)Q.uint32(66).string($.timezone);if($.reminderMetadata!==void 0)lJ.encode($.reminderMetadata,Q.uint32(74).fork()).join();if($.modelMetadata!==void 0)RJ.encode($.modelMetadata,Q.uint32(82).fork()).join();if($.messageDisclaimerText!==void 0)Q.uint32(90).string($.messageDisclaimerText);if($.progressIndicatorMetadata!==void 0)EJ.encode($.progressIndicatorMetadata,Q.uint32(98).fork()).join();if($.capabilityMetadata!==void 0)a0.encode($.capabilityMetadata,Q.uint32(106).fork()).join();if($.imagineMetadata!==void 0)GJ.encode($.imagineMetadata,Q.uint32(114).fork()).join();if($.memoryMetadata!==void 0)FJ.encode($.memoryMetadata,Q.uint32(122).fork()).join();if($.renderingMetadata!==void 0)uJ.encode($.renderingMetadata,Q.uint32(130).fork()).join();if($.botMetricsMetadata!==void 0)NJ.encode($.botMetricsMetadata,Q.uint32(138).fork()).join();if($.botLinkedAccountsMetadata!==void 0)DJ.encode($.botLinkedAccountsMetadata,Q.uint32(146).fork()).join();if($.richResponseSourcesMetadata!==void 0)bJ.encode($.richResponseSourcesMetadata,Q.uint32(154).fork()).join();if($.aiConversationContext!==void 0)Q.uint32(162).bytes($.aiConversationContext);if($.botPromotionMessageMetadata!==void 0)TJ.encode($.botPromotionMessageMetadata,Q.uint32(170).fork()).join();if($.botModeSelectionMetadata!==void 0)OJ.encode($.botModeSelectionMetadata,Q.uint32(178).fork()).join();if($.botQuotaMetadata!==void 0)_J.encode($.botQuotaMetadata,Q.uint32(186).fork()).join();if($.botAgeCollectionMetadata!==void 0)g0.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)YQ.encode($.verificationMetadata,Q.uint32(218).fork()).join();if($.unifiedResponseMutation!==void 0)mJ.encode($.unifiedResponseMutation,Q.uint32(226).fork()).join();if($.botMessageOriginMetadata!==void 0)kJ.encode($.botMessageOriginMetadata,Q.uint32(234).fork()).join();if($.inThreadSurveyMetadata!==void 0)e8.encode($.inThreadSurveyMetadata,Q.uint32(242).fork()).join();if($.botThreadInfo!==void 0)c0.encode($.botThreadInfo,Q.uint32(250).fork()).join();if($.regenerateMetadata!==void 0)O0.encode($.regenerateMetadata,Q.uint32(258).fork()).join();if($.sessionTransparencyMetadata!==void 0)C9.encode($.sessionTransparencyMetadata,Q.uint32(266).fork()).join();if($.botDocumentMessageMetadata!==void 0)e0.encode($.botDocumentMessageMetadata,Q.uint32(274).fork()).join();if($.botGroupMetadata!==void 0)HJ.encode($.botGroupMetadata,Q.uint32(282).fork()).join();if($.botRenderingConfigMetadata!==void 0)pJ.encode($.botRenderingConfigMetadata,Q.uint32(290).fork()).join();if($.botInfrastructureDiagnostics!==void 0)UJ.encode($.botInfrastructureDiagnostics,Q.uint32(298).fork()).join();if($.aiMediaCollectionMetadata!==void 0)k0.encode($.aiMediaCollectionMetadata,Q.uint32(306).fork()).join();if($.commandMetadata!==void 0)s0.encode($.commandMetadata,Q.uint32(314).fork()).join();if($.resolvedToolCallMetadata!==void 0)jJ.encode($.resolvedToolCallMetadata,Q.uint32(322).fork()).join();if($.subscriptionUpsellMetadata!==void 0)j0.encode($.subscriptionUpsellMetadata,Q.uint32(330).fork()).join();if($.pttPromptMetadata!==void 0)fJ.encode($.pttPromptMetadata,Q.uint32(338).fork()).join();if($.botHistoryShareMetadata!==void 0)zJ.encode($.botHistoryShareMetadata,Q.uint32(346).fork()).join();if($.internalMetadata!==void 0)Q.uint32(7994).bytes($.internalMetadata);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??R7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 2:{if(K!==18)break;q.personaId=J.string();continue}case 3:{if(K!==26)break;q.pluginMetadata=AJ.decode(J,J.uint32(),q.pluginMetadata);continue}case 4:{if(K!==34)break;q.suggestedPromptMetadata=iJ.decode(J,J.uint32(),q.suggestedPromptMetadata);continue}case 5:{if(K!==42)break;q.invokerJid=J.string();continue}case 6:{if(K!==50)break;q.sessionMetadata=cJ.decode(J,J.uint32(),q.sessionMetadata);continue}case 7:{if(K!==58)break;q.memuMetadata=LJ.decode(J,J.uint32(),q.memuMetadata);continue}case 8:{if(K!==66)break;q.timezone=J.string();continue}case 9:{if(K!==74)break;q.reminderMetadata=lJ.decode(J,J.uint32(),q.reminderMetadata);continue}case 10:{if(K!==82)break;q.modelMetadata=RJ.decode(J,J.uint32(),q.modelMetadata);continue}case 11:{if(K!==90)break;q.messageDisclaimerText=J.string();continue}case 12:{if(K!==98)break;q.progressIndicatorMetadata=EJ.decode(J,J.uint32(),q.progressIndicatorMetadata);continue}case 13:{if(K!==106)break;q.capabilityMetadata=a0.decode(J,J.uint32(),q.capabilityMetadata);continue}case 14:{if(K!==114)break;q.imagineMetadata=GJ.decode(J,J.uint32(),q.imagineMetadata);continue}case 15:{if(K!==122)break;q.memoryMetadata=FJ.decode(J,J.uint32(),q.memoryMetadata);continue}case 16:{if(K!==130)break;q.renderingMetadata=uJ.decode(J,J.uint32(),q.renderingMetadata);continue}case 17:{if(K!==138)break;q.botMetricsMetadata=NJ.decode(J,J.uint32(),q.botMetricsMetadata);continue}case 18:{if(K!==146)break;q.botLinkedAccountsMetadata=DJ.decode(J,J.uint32(),q.botLinkedAccountsMetadata);continue}case 19:{if(K!==154)break;q.richResponseSourcesMetadata=bJ.decode(J,J.uint32(),q.richResponseSourcesMetadata);continue}case 20:{if(K!==162)break;q.aiConversationContext=J.bytes();continue}case 21:{if(K!==170)break;q.botPromotionMessageMetadata=TJ.decode(J,J.uint32(),q.botPromotionMessageMetadata);continue}case 22:{if(K!==178)break;q.botModeSelectionMetadata=OJ.decode(J,J.uint32(),q.botModeSelectionMetadata);continue}case 23:{if(K!==186)break;q.botQuotaMetadata=_J.decode(J,J.uint32(),q.botQuotaMetadata);continue}case 24:{if(K!==194)break;q.botAgeCollectionMetadata=g0.decode(J,J.uint32(),q.botAgeCollectionMetadata);continue}case 25:{if(K!==202)break;q.conversationStarterPromptId=J.string();continue}case 26:{if(K!==210)break;q.botResponseId=J.string();continue}case 27:{if(K!==218)break;q.verificationMetadata=YQ.decode(J,J.uint32(),q.verificationMetadata);continue}case 28:{if(K!==226)break;q.unifiedResponseMutation=mJ.decode(J,J.uint32(),q.unifiedResponseMutation);continue}case 29:{if(K!==234)break;q.botMessageOriginMetadata=kJ.decode(J,J.uint32(),q.botMessageOriginMetadata);continue}case 30:{if(K!==242)break;q.inThreadSurveyMetadata=e8.decode(J,J.uint32(),q.inThreadSurveyMetadata);continue}case 31:{if(K!==250)break;q.botThreadInfo=c0.decode(J,J.uint32(),q.botThreadInfo);continue}case 32:{if(K!==258)break;q.regenerateMetadata=O0.decode(J,J.uint32(),q.regenerateMetadata);continue}case 33:{if(K!==266)break;q.sessionTransparencyMetadata=C9.decode(J,J.uint32(),q.sessionTransparencyMetadata);continue}case 34:{if(K!==274)break;q.botDocumentMessageMetadata=e0.decode(J,J.uint32(),q.botDocumentMessageMetadata);continue}case 35:{if(K!==282)break;q.botGroupMetadata=HJ.decode(J,J.uint32(),q.botGroupMetadata);continue}case 36:{if(K!==290)break;q.botRenderingConfigMetadata=pJ.decode(J,J.uint32(),q.botRenderingConfigMetadata);continue}case 37:{if(K!==298)break;q.botInfrastructureDiagnostics=UJ.decode(J,J.uint32(),q.botInfrastructureDiagnostics);continue}case 38:{if(K!==306)break;q.aiMediaCollectionMetadata=k0.decode(J,J.uint32(),q.aiMediaCollectionMetadata);continue}case 39:{if(K!==314)break;q.commandMetadata=s0.decode(J,J.uint32(),q.commandMetadata);continue}case 40:{if(K!==322)break;q.resolvedToolCallMetadata=jJ.decode(J,J.uint32(),q.resolvedToolCallMetadata);continue}case 41:{if(K!==330)break;q.subscriptionUpsellMetadata=j0.decode(J,J.uint32(),q.subscriptionUpsellMetadata);continue}case 42:{if(K!==338)break;q.pttPromptMetadata=fJ.decode(J,J.uint32(),q.pttPromptMetadata);continue}case 43:{if(K!==346)break;q.botHistoryShareMetadata=zJ.decode(J,J.uint32(),q.botHistoryShareMetadata);continue}case 999:{if(K!==7994)break;q.internalMetadata=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return BJ.fromPartial($??{})},fromPartial($){let Q=R7();return Q.personaId=$.personaId??void 0,Q.pluginMetadata=$.pluginMetadata!==void 0&&$.pluginMetadata!==null?AJ.fromPartial($.pluginMetadata):void 0,Q.suggestedPromptMetadata=$.suggestedPromptMetadata!==void 0&&$.suggestedPromptMetadata!==null?iJ.fromPartial($.suggestedPromptMetadata):void 0,Q.invokerJid=$.invokerJid??void 0,Q.sessionMetadata=$.sessionMetadata!==void 0&&$.sessionMetadata!==null?cJ.fromPartial($.sessionMetadata):void 0,Q.memuMetadata=$.memuMetadata!==void 0&&$.memuMetadata!==null?LJ.fromPartial($.memuMetadata):void 0,Q.timezone=$.timezone??void 0,Q.reminderMetadata=$.reminderMetadata!==void 0&&$.reminderMetadata!==null?lJ.fromPartial($.reminderMetadata):void 0,Q.modelMetadata=$.modelMetadata!==void 0&&$.modelMetadata!==null?RJ.fromPartial($.modelMetadata):void 0,Q.messageDisclaimerText=$.messageDisclaimerText??void 0,Q.progressIndicatorMetadata=$.progressIndicatorMetadata!==void 0&&$.progressIndicatorMetadata!==null?EJ.fromPartial($.progressIndicatorMetadata):void 0,Q.capabilityMetadata=$.capabilityMetadata!==void 0&&$.capabilityMetadata!==null?a0.fromPartial($.capabilityMetadata):void 0,Q.imagineMetadata=$.imagineMetadata!==void 0&&$.imagineMetadata!==null?GJ.fromPartial($.imagineMetadata):void 0,Q.memoryMetadata=$.memoryMetadata!==void 0&&$.memoryMetadata!==null?FJ.fromPartial($.memoryMetadata):void 0,Q.renderingMetadata=$.renderingMetadata!==void 0&&$.renderingMetadata!==null?uJ.fromPartial($.renderingMetadata):void 0,Q.botMetricsMetadata=$.botMetricsMetadata!==void 0&&$.botMetricsMetadata!==null?NJ.fromPartial($.botMetricsMetadata):void 0,Q.botLinkedAccountsMetadata=$.botLinkedAccountsMetadata!==void 0&&$.botLinkedAccountsMetadata!==null?DJ.fromPartial($.botLinkedAccountsMetadata):void 0,Q.richResponseSourcesMetadata=$.richResponseSourcesMetadata!==void 0&&$.richResponseSourcesMetadata!==null?bJ.fromPartial($.richResponseSourcesMetadata):void 0,Q.aiConversationContext=$.aiConversationContext??void 0,Q.botPromotionMessageMetadata=$.botPromotionMessageMetadata!==void 0&&$.botPromotionMessageMetadata!==null?TJ.fromPartial($.botPromotionMessageMetadata):void 0,Q.botModeSelectionMetadata=$.botModeSelectionMetadata!==void 0&&$.botModeSelectionMetadata!==null?OJ.fromPartial($.botModeSelectionMetadata):void 0,Q.botQuotaMetadata=$.botQuotaMetadata!==void 0&&$.botQuotaMetadata!==null?_J.fromPartial($.botQuotaMetadata):void 0,Q.botAgeCollectionMetadata=$.botAgeCollectionMetadata!==void 0&&$.botAgeCollectionMetadata!==null?g0.fromPartial($.botAgeCollectionMetadata):void 0,Q.conversationStarterPromptId=$.conversationStarterPromptId??void 0,Q.botResponseId=$.botResponseId??void 0,Q.verificationMetadata=$.verificationMetadata!==void 0&&$.verificationMetadata!==null?YQ.fromPartial($.verificationMetadata):void 0,Q.unifiedResponseMutation=$.unifiedResponseMutation!==void 0&&$.unifiedResponseMutation!==null?mJ.fromPartial($.unifiedResponseMutation):void 0,Q.botMessageOriginMetadata=$.botMessageOriginMetadata!==void 0&&$.botMessageOriginMetadata!==null?kJ.fromPartial($.botMessageOriginMetadata):void 0,Q.inThreadSurveyMetadata=$.inThreadSurveyMetadata!==void 0&&$.inThreadSurveyMetadata!==null?e8.fromPartial($.inThreadSurveyMetadata):void 0,Q.botThreadInfo=$.botThreadInfo!==void 0&&$.botThreadInfo!==null?c0.fromPartial($.botThreadInfo):void 0,Q.regenerateMetadata=$.regenerateMetadata!==void 0&&$.regenerateMetadata!==null?O0.fromPartial($.regenerateMetadata):void 0,Q.sessionTransparencyMetadata=$.sessionTransparencyMetadata!==void 0&&$.sessionTransparencyMetadata!==null?C9.fromPartial($.sessionTransparencyMetadata):void 0,Q.botDocumentMessageMetadata=$.botDocumentMessageMetadata!==void 0&&$.botDocumentMessageMetadata!==null?e0.fromPartial($.botDocumentMessageMetadata):void 0,Q.botGroupMetadata=$.botGroupMetadata!==void 0&&$.botGroupMetadata!==null?HJ.fromPartial($.botGroupMetadata):void 0,Q.botRenderingConfigMetadata=$.botRenderingConfigMetadata!==void 0&&$.botRenderingConfigMetadata!==null?pJ.fromPartial($.botRenderingConfigMetadata):void 0,Q.botInfrastructureDiagnostics=$.botInfrastructureDiagnostics!==void 0&&$.botInfrastructureDiagnostics!==null?UJ.fromPartial($.botInfrastructureDiagnostics):void 0,Q.aiMediaCollectionMetadata=$.aiMediaCollectionMetadata!==void 0&&$.aiMediaCollectionMetadata!==null?k0.fromPartial($.aiMediaCollectionMetadata):void 0,Q.commandMetadata=$.commandMetadata!==void 0&&$.commandMetadata!==null?s0.fromPartial($.commandMetadata):void 0,Q.resolvedToolCallMetadata=$.resolvedToolCallMetadata!==void 0&&$.resolvedToolCallMetadata!==null?jJ.fromPartial($.resolvedToolCallMetadata):void 0,Q.subscriptionUpsellMetadata=$.subscriptionUpsellMetadata!==void 0&&$.subscriptionUpsellMetadata!==null?j0.fromPartial($.subscriptionUpsellMetadata):void 0,Q.pttPromptMetadata=$.pttPromptMetadata!==void 0&&$.pttPromptMetadata!==null?fJ.fromPartial($.pttPromptMetadata):void 0,Q.botHistoryShareMetadata=$.botHistoryShareMetadata!==void 0&&$.botHistoryShareMetadata!==null?zJ.fromPartial($.botHistoryShareMetadata):void 0,Q.internalMetadata=$.internalMetadata??void 0,Q}};function A7(){return{}}var NJ={encode($,Q=new H){if($.destinationId!==void 0)Q.uint32(10).string($.destinationId);if($.destinationEntryPoint!==void 0)Q.uint32(16).int32($.destinationEntryPoint);if($.threadOrigin!==void 0)Q.uint32(24).int32($.threadOrigin);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??A7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.destinationId=J.string();continue}case 2:{if(K!==16)break;q.destinationEntryPoint=J.int32();continue}case 3:{if(K!==24)break;q.threadOrigin=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return NJ.fromPartial($??{})},fromPartial($){let Q=A7();return Q.destinationId=$.destinationId??void 0,Q.destinationEntryPoint=$.destinationEntryPoint??void 0,Q.threadOrigin=$.threadOrigin??void 0,Q}};function E7(){return{}}var OJ={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??E7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K===8){if(q.mode===void 0)q.mode=[];q.mode.push(J.int32());continue}if(K===10){if(q.mode===void 0)q.mode=[];let V=J.uint32()+J.pos;while(J.pos<V)q.mode.push(J.int32());continue}break}case 2:{if(K===16){if(q.overrideMode===void 0)q.overrideMode=[];q.overrideMode.push(J.uint32());continue}if(K===18){if(q.overrideMode===void 0)q.overrideMode=[];let V=J.uint32()+J.pos;while(J.pos<V)q.overrideMode.push(J.uint32());continue}break}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return OJ.fromPartial($??{})},fromPartial($){let Q=E7();return Q.mode=$.mode?.map((Z)=>Z)||void 0,Q.overrideMode=$.overrideMode?.map((Z)=>Z)||void 0,Q}};function M7(){return{}}var RJ={encode($,Q=new H){if($.modelType!==void 0)Q.uint32(8).int32($.modelType);if($.premiumModelStatus!==void 0)Q.uint32(16).int32($.premiumModelStatus);if($.modelNameOverride!==void 0)Q.uint32(26).string($.modelNameOverride);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??M7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.modelType=J.int32();continue}case 2:{if(K!==16)break;q.premiumModelStatus=J.int32();continue}case 3:{if(K!==26)break;q.modelNameOverride=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return RJ.fromPartial($??{})},fromPartial($){let Q=M7();return Q.modelType=$.modelType??void 0,Q.premiumModelStatus=$.premiumModelStatus??void 0,Q.modelNameOverride=$.modelNameOverride??void 0,Q}};function W7(){return{}}var AJ={encode($,Q=new H){if($.provider!==void 0)Q.uint32(8).int32($.provider);if($.pluginType!==void 0)Q.uint32(16).int32($.pluginType);if($.thumbnailCdnUrl!==void 0)Q.uint32(26).string($.thumbnailCdnUrl);if($.profilePhotoCdnUrl!==void 0)Q.uint32(34).string($.profilePhotoCdnUrl);if($.searchProviderUrl!==void 0)Q.uint32(42).string($.searchProviderUrl);if($.referenceIndex!==void 0)Q.uint32(48).uint32($.referenceIndex);if($.expectedLinksCount!==void 0)Q.uint32(56).uint32($.expectedLinksCount);if($.searchQuery!==void 0)Q.uint32(74).string($.searchQuery);if($.parentPluginMessageKey!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??W7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.provider=J.int32();continue}case 2:{if(K!==16)break;q.pluginType=J.int32();continue}case 3:{if(K!==26)break;q.thumbnailCdnUrl=J.string();continue}case 4:{if(K!==34)break;q.profilePhotoCdnUrl=J.string();continue}case 5:{if(K!==42)break;q.searchProviderUrl=J.string();continue}case 6:{if(K!==48)break;q.referenceIndex=J.uint32();continue}case 7:{if(K!==56)break;q.expectedLinksCount=J.uint32();continue}case 9:{if(K!==74)break;q.searchQuery=J.string();continue}case 10:{if(K!==82)break;q.parentPluginMessageKey=B.decode(J,J.uint32(),q.parentPluginMessageKey);continue}case 11:{if(K!==88)break;q.deprecatedField=J.int32();continue}case 12:{if(K!==96)break;q.parentPluginType=J.int32();continue}case 13:{if(K!==106)break;q.faviconCdnUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return AJ.fromPartial($??{})},fromPartial($){let Q=W7();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?B.fromPartial($.parentPluginMessageKey):void 0,Q.deprecatedField=$.deprecatedField??void 0,Q.parentPluginType=$.parentPluginType??void 0,Q.faviconCdnUrl=$.faviconCdnUrl??void 0,Q}};function S7(){return{}}var EJ={encode($,Q=new H){if($.progressDescription!==void 0)Q.uint32(10).string($.progressDescription);if($.stepsMetadata!==void 0&&$.stepsMetadata.length!==0)for(let Z of $.stepsMetadata)MJ.encode(Z,Q.uint32(18).fork()).join();if($.estimatedCompletionTime!==void 0)Q.uint32(24).int64($.estimatedCompletionTime);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??S7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.progressDescription=J.string();continue}case 2:{if(K!==18)break;if(q.stepsMetadata===void 0)q.stepsMetadata=[];let V=MJ.decode(J,J.uint32());if(V!==void 0)q.stepsMetadata.push(V);continue}case 3:{if(K!==24)break;q.estimatedCompletionTime=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return EJ.fromPartial($??{})},fromPartial($){let Q=S7();return Q.progressDescription=$.progressDescription??void 0,Q.stepsMetadata=$.stepsMetadata?.map((Z)=>MJ.fromPartial(Z))||void 0,Q.estimatedCompletionTime=$.estimatedCompletionTime??void 0,Q}};function I7(){return{}}var MJ={encode($,Q=new H){if($.statusTitle!==void 0)Q.uint32(10).string($.statusTitle);if($.statusBody!==void 0)Q.uint32(18).string($.statusBody);if($.sourcesMetadata!==void 0&&$.sourcesMetadata.length!==0)for(let Z of $.sourcesMetadata)SJ.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)IJ.encode(Z,Q.uint32(58).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??I7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.statusTitle=J.string();continue}case 2:{if(K!==18)break;q.statusBody=J.string();continue}case 3:{if(K!==26)break;if(q.sourcesMetadata===void 0)q.sourcesMetadata=[];let V=SJ.decode(J,J.uint32());if(V!==void 0)q.sourcesMetadata.push(V);continue}case 4:{if(K!==32)break;q.status=J.int32();continue}case 5:{if(K!==40)break;q.isReasoning=J.bool();continue}case 6:{if(K!==48)break;q.isEnhancedSearch=J.bool();continue}case 7:{if(K!==58)break;if(q.sections===void 0)q.sections=[];let V=IJ.decode(J,J.uint32());if(V!==void 0)q.sections.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return MJ.fromPartial($??{})},fromPartial($){let Q=I7();return Q.statusTitle=$.statusTitle??void 0,Q.statusBody=$.statusBody??void 0,Q.sourcesMetadata=$.sourcesMetadata?.map((Z)=>SJ.fromPartial(Z))||void 0,Q.status=$.status??void 0,Q.isReasoning=$.isReasoning??void 0,Q.isEnhancedSearch=$.isEnhancedSearch??void 0,Q.sections=$.sections?.map((Z)=>IJ.fromPartial(Z))||void 0,Q}};function T7(){return{}}var WJ={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.provider!==void 0)Q.uint32(16).int32($.provider);if($.sourceUrl!==void 0)Q.uint32(26).string($.sourceUrl);if($.favIconUrl!==void 0)Q.uint32(34).string($.favIconUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??T7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==16)break;q.provider=J.int32();continue}case 3:{if(K!==26)break;q.sourceUrl=J.string();continue}case 4:{if(K!==34)break;q.favIconUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return WJ.fromPartial($??{})},fromPartial($){let Q=T7();return Q.title=$.title??void 0,Q.provider=$.provider??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.favIconUrl=$.favIconUrl??void 0,Q}};function y7(){return{}}var SJ={encode($,Q=new H){if($.sourceTitle!==void 0)Q.uint32(10).string($.sourceTitle);if($.provider!==void 0)Q.uint32(16).int32($.provider);if($.sourceUrl!==void 0)Q.uint32(26).string($.sourceUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??y7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.sourceTitle=J.string();continue}case 2:{if(K!==16)break;q.provider=J.int32();continue}case 3:{if(K!==26)break;q.sourceUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return SJ.fromPartial($??{})},fromPartial($){let Q=y7();return Q.sourceTitle=$.sourceTitle??void 0,Q.provider=$.provider??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q}};function v7(){return{}}var IJ={encode($,Q=new H){if($.sectionTitle!==void 0)Q.uint32(10).string($.sectionTitle);if($.sectionBody!==void 0)Q.uint32(18).string($.sectionBody);if($.sourcesMetadata!==void 0&&$.sourcesMetadata.length!==0)for(let Z of $.sourcesMetadata)WJ.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??v7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.sectionTitle=J.string();continue}case 2:{if(K!==18)break;q.sectionBody=J.string();continue}case 3:{if(K!==26)break;if(q.sourcesMetadata===void 0)q.sourcesMetadata=[];let V=WJ.decode(J,J.uint32());if(V!==void 0)q.sourcesMetadata.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return IJ.fromPartial($??{})},fromPartial($){let Q=v7();return Q.sectionTitle=$.sectionTitle??void 0,Q.sectionBody=$.sectionBody??void 0,Q.sourcesMetadata=$.sourcesMetadata?.map((Z)=>WJ.fromPartial(Z))||void 0,Q}};function f7(){return{}}var TJ={encode($,Q=new H){if($.promotionType!==void 0)Q.uint32(8).int32($.promotionType);if($.buttonTitle!==void 0)Q.uint32(18).string($.buttonTitle);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??f7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.promotionType=J.int32();continue}case 2:{if(K!==18)break;q.buttonTitle=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return TJ.fromPartial($??{})},fromPartial($){let Q=f7();return Q.promotionType=$.promotionType??void 0,Q.buttonTitle=$.buttonTitle??void 0,Q}};function _7(){return{}}var yJ={encode($,Q=new H){if($.prompt!==void 0)Q.uint32(10).string($.prompt);if($.promptId!==void 0)Q.uint32(18).string($.promptId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.prompt=J.string();continue}case 2:{if(K!==18)break;q.promptId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return yJ.fromPartial($??{})},fromPartial($){let Q=_7();return Q.prompt=$.prompt??void 0,Q.promptId=$.promptId??void 0,Q}};function h7(){return{}}var vJ={encode($,Q=new H){if($.suggestions!==void 0&&$.suggestions.length!==0)for(let Z of $.suggestions)yJ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??h7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.suggestions===void 0)q.suggestions=[];let V=yJ.decode(J,J.uint32());if(V!==void 0)q.suggestions.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return vJ.fromPartial($??{})},fromPartial($){let Q=h7();return Q.suggestions=$.suggestions?.map((Z)=>yJ.fromPartial(Z))||void 0,Q}};function l7(){return{}}var fJ={encode($,Q=new H){if($.transcript!==void 0)Q.uint32(10).string($.transcript);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??l7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.transcript=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return fJ.fromPartial($??{})},fromPartial($){let Q=l7();return Q.transcript=$.transcript??void 0,Q}};function p7(){return{}}var _J={encode($,Q=new H){if($.botFeatureQuotaMetadata!==void 0&&$.botFeatureQuotaMetadata.length!==0)for(let Z of $.botFeatureQuotaMetadata)hJ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??p7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.botFeatureQuotaMetadata===void 0)q.botFeatureQuotaMetadata=[];let V=hJ.decode(J,J.uint32());if(V!==void 0)q.botFeatureQuotaMetadata.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _J.fromPartial($??{})},fromPartial($){let Q=p7();return Q.botFeatureQuotaMetadata=$.botFeatureQuotaMetadata?.map((Z)=>hJ.fromPartial(Z))||void 0,Q}};function u7(){return{}}var hJ={encode($,Q=new H){if($.featureType!==void 0)Q.uint32(8).int32($.featureType);if($.remainingQuota!==void 0)Q.uint32(16).uint32($.remainingQuota);if($.expirationTimestamp!==void 0)Q.uint32(24).uint64($.expirationTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??u7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.featureType=J.int32();continue}case 2:{if(K!==16)break;q.remainingQuota=J.uint32();continue}case 3:{if(K!==24)break;q.expirationTimestamp=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return hJ.fromPartial($??{})},fromPartial($){let Q=u7();return Q.featureType=$.featureType??void 0,Q.remainingQuota=$.remainingQuota??void 0,Q.expirationTimestamp=$.expirationTimestamp??void 0,Q}};function w7(){return{}}var lJ={encode($,Q=new H){if($.requestMessageKey!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??w7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.requestMessageKey=B.decode(J,J.uint32(),q.requestMessageKey);continue}case 2:{if(K!==16)break;q.action=J.int32();continue}case 3:{if(K!==26)break;q.name=J.string();continue}case 4:{if(K!==32)break;q.nextTriggerTimestamp=J.uint64Value();continue}case 5:{if(K!==40)break;q.frequency=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return lJ.fromPartial($??{})},fromPartial($){let Q=w7();return Q.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?B.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 j7(){return{}}var pJ={encode($,Q=new H){if($.bloksVersioningId!==void 0)Q.uint32(10).string($.bloksVersioningId);if($.pixelDensity!==void 0)Q.uint32(17).double($.pixelDensity);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??j7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.bloksVersioningId=J.string();continue}case 2:{if(K!==17)break;q.pixelDensity=J.double();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return pJ.fromPartial($??{})},fromPartial($){let Q=j7();return Q.bloksVersioningId=$.bloksVersioningId??void 0,Q.pixelDensity=$.pixelDensity??void 0,Q}};function c7(){return{}}var uJ={encode($,Q=new H){if($.keywords!==void 0&&$.keywords.length!==0)for(let Z of $.keywords)wJ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??c7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.keywords===void 0)q.keywords=[];let V=wJ.decode(J,J.uint32());if(V!==void 0)q.keywords.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return uJ.fromPartial($??{})},fromPartial($){let Q=c7();return Q.keywords=$.keywords?.map((Z)=>wJ.fromPartial(Z))||void 0,Q}};function d7(){return{}}var wJ={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??d7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.value=J.string();continue}case 2:{if(K!==18)break;if(q.associatedPrompts===void 0)q.associatedPrompts=[];let V=J.string();if(V!==void 0)q.associatedPrompts.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return wJ.fromPartial($??{})},fromPartial($){let Q=d7();return Q.value=$.value??void 0,Q.associatedPrompts=$.associatedPrompts?.map((Z)=>Z)||void 0,Q}};function n7(){return{}}var jJ={encode($,Q=new H){if($.toolCallId!==void 0)Q.uint32(10).string($.toolCallId);if($.resolutionDataSerialized!==void 0)Q.uint32(18).string($.resolutionDataSerialized);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??n7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.toolCallId=J.string();continue}case 2:{if(K!==18)break;q.resolutionDataSerialized=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return jJ.fromPartial($??{})},fromPartial($){let Q=n7();return Q.toolCallId=$.toolCallId??void 0,Q.resolutionDataSerialized=$.resolutionDataSerialized??void 0,Q}};function b7(){return{}}var cJ={encode($,Q=new H){if($.sessionId!==void 0)Q.uint32(10).string($.sessionId);if($.sessionSource!==void 0)Q.uint32(16).int32($.sessionSource);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??b7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.sessionId=J.string();continue}case 2:{if(K!==16)break;q.sessionSource=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return cJ.fromPartial($??{})},fromPartial($){let Q=b7();return Q.sessionId=$.sessionId??void 0,Q.sessionSource=$.sessionSource??void 0,Q}};function o7(){return{}}var YQ={encode($,Q=new H){if($.proofs!==void 0&&$.proofs.length!==0)for(let Z of $.proofs)dJ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??o7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.proofs===void 0)q.proofs=[];let V=dJ.decode(J,J.uint32());if(V!==void 0)q.proofs.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return YQ.fromPartial($??{})},fromPartial($){let Q=o7();return Q.proofs=$.proofs?.map((Z)=>dJ.fromPartial(Z))||void 0,Q}};function i7(){return{}}var dJ={encode($,Q=new H){if($.version!==void 0)Q.uint32(8).int32($.version);if($.useCase!==void 0)Q.uint32(16).int32($.useCase);if($.signature!==void 0)Q.uint32(26).bytes($.signature);if($.certificateChain!==void 0&&$.certificateChain.length!==0)for(let Z of $.certificateChain)Q.uint32(34).bytes(Z);if($.certificateChainSki!==void 0&&$.certificateChainSki.length!==0)for(let Z of $.certificateChainSki)nJ.encode(Z,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??i7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.version=J.int32();continue}case 2:{if(K!==16)break;q.useCase=J.int32();continue}case 3:{if(K!==26)break;q.signature=J.bytes();continue}case 4:{if(K!==34)break;if(q.certificateChain===void 0)q.certificateChain=[];let V=J.bytes();if(V!==void 0)q.certificateChain.push(V);continue}case 5:{if(K!==42)break;if(q.certificateChainSki===void 0)q.certificateChainSki=[];let V=nJ.decode(J,J.uint32());if(V!==void 0)q.certificateChainSki.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return dJ.fromPartial($??{})},fromPartial($){let Q=i7();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.certificateChainSki=$.certificateChainSki?.map((Z)=>nJ.fromPartial(Z))||void 0,Q}};function m7(){return{}}var nJ={encode($,Q=new H){if($.useCase!==void 0)Q.uint32(8).int32($.useCase);if($.ski!==void 0)Q.uint32(18).bytes($.ski);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??m7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.useCase=J.int32();continue}case 2:{if(K!==18)break;q.ski=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return nJ.fromPartial($??{})},fromPartial($){let Q=m7();return Q.useCase=$.useCase??void 0,Q.ski=$.ski??void 0,Q}};function g7(){return{}}var bJ={encode($,Q=new H){if($.sources!==void 0&&$.sources.length!==0)for(let Z of $.sources)oJ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??g7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.sources===void 0)q.sources=[];let V=oJ.decode(J,J.uint32());if(V!==void 0)q.sources.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return bJ.fromPartial($??{})},fromPartial($){let Q=g7();return Q.sources=$.sources?.map((Z)=>oJ.fromPartial(Z))||void 0,Q}};function r7(){return{}}var oJ={encode($,Q=new H){if($.provider!==void 0)Q.uint32(8).int32($.provider);if($.thumbnailCdnUrl!==void 0)Q.uint32(18).string($.thumbnailCdnUrl);if($.sourceProviderUrl!==void 0)Q.uint32(26).string($.sourceProviderUrl);if($.sourceQuery!==void 0)Q.uint32(34).string($.sourceQuery);if($.faviconCdnUrl!==void 0)Q.uint32(42).string($.faviconCdnUrl);if($.citationNumber!==void 0)Q.uint32(48).uint32($.citationNumber);if($.sourceTitle!==void 0)Q.uint32(58).string($.sourceTitle);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??r7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.provider=J.int32();continue}case 2:{if(K!==18)break;q.thumbnailCdnUrl=J.string();continue}case 3:{if(K!==26)break;q.sourceProviderUrl=J.string();continue}case 4:{if(K!==34)break;q.sourceQuery=J.string();continue}case 5:{if(K!==42)break;q.faviconCdnUrl=J.string();continue}case 6:{if(K!==48)break;q.citationNumber=J.uint32();continue}case 7:{if(K!==58)break;q.sourceTitle=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return oJ.fromPartial($??{})},fromPartial($){let Q=r7();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 t7(){return{}}var iJ={encode($,Q=new H){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)vJ.encode($.promptSuggestions,Q.uint32(26).fork()).join();if($.selectedPromptId!==void 0)Q.uint32(34).string($.selectedPromptId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??t7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.suggestedPrompts===void 0)q.suggestedPrompts=[];let V=J.string();if(V!==void 0)q.suggestedPrompts.push(V);continue}case 2:{if(K!==16)break;q.selectedPromptIndex=J.uint32();continue}case 3:{if(K!==26)break;q.promptSuggestions=vJ.decode(J,J.uint32(),q.promptSuggestions);continue}case 4:{if(K!==34)break;q.selectedPromptId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return iJ.fromPartial($??{})},fromPartial($){let Q=t7();return Q.suggestedPrompts=$.suggestedPrompts?.map((Z)=>Z)||void 0,Q.selectedPromptIndex=$.selectedPromptIndex??void 0,Q.promptSuggestions=$.promptSuggestions!==void 0&&$.promptSuggestions!==null?vJ.fromPartial($.promptSuggestions):void 0,Q.selectedPromptId=$.selectedPromptId??void 0,Q}};function a7(){return{}}var mJ={encode($,Q=new H){if($.sbsMetadata!==void 0)rJ.encode($.sbsMetadata,Q.uint32(10).fork()).join();if($.mediaDetailsMetadataList!==void 0&&$.mediaDetailsMetadataList.length!==0)for(let Z of $.mediaDetailsMetadataList)gJ.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??a7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.sbsMetadata=rJ.decode(J,J.uint32(),q.sbsMetadata);continue}case 2:{if(K!==18)break;if(q.mediaDetailsMetadataList===void 0)q.mediaDetailsMetadataList=[];let V=gJ.decode(J,J.uint32());if(V!==void 0)q.mediaDetailsMetadataList.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return mJ.fromPartial($??{})},fromPartial($){let Q=a7();return Q.sbsMetadata=$.sbsMetadata!==void 0&&$.sbsMetadata!==null?rJ.fromPartial($.sbsMetadata):void 0,Q.mediaDetailsMetadataList=$.mediaDetailsMetadataList?.map((Z)=>gJ.fromPartial(Z))||void 0,Q}};function s7(){return{}}var gJ={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);if($.highResMedia!==void 0)x$.encode($.highResMedia,Q.uint32(18).fork()).join();if($.previewMedia!==void 0)x$.encode($.previewMedia,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??s7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.id=J.string();continue}case 2:{if(K!==18)break;q.highResMedia=x$.decode(J,J.uint32(),q.highResMedia);continue}case 3:{if(K!==26)break;q.previewMedia=x$.decode(J,J.uint32(),q.previewMedia);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return gJ.fromPartial($??{})},fromPartial($){let Q=s7();return Q.id=$.id??void 0,Q.highResMedia=$.highResMedia!==void 0&&$.highResMedia!==null?x$.fromPartial($.highResMedia):void 0,Q.previewMedia=$.previewMedia!==void 0&&$.previewMedia!==null?x$.fromPartial($.previewMedia):void 0,Q}};function e7(){return{}}var rJ={encode($,Q=new H){if($.primaryResponseId!==void 0)Q.uint32(10).string($.primaryResponseId);if($.surveyCtaHasRendered!==void 0)Q.uint32(16).bool($.surveyCtaHasRendered);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??e7();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.primaryResponseId=J.string();continue}case 2:{if(K!==16)break;q.surveyCtaHasRendered=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return rJ.fromPartial($??{})},fromPartial($){let Q=e7();return Q.primaryResponseId=$.primaryResponseId??void 0,Q.surveyCtaHasRendered=$.surveyCtaHasRendered??void 0,Q}};function $z(){return{}}var VQ={encode($,Q=new H){if($.callResult!==void 0)Q.uint32(8).int32($.callResult);if($.isDndMode!==void 0)Q.uint32(16).bool($.isDndMode);if($.silenceReason!==void 0)Q.uint32(24).int32($.silenceReason);if($.duration!==void 0)Q.uint32(32).int64($.duration);if($.startTime!==void 0)Q.uint32(40).int64($.startTime);if($.isIncoming!==void 0)Q.uint32(48).bool($.isIncoming);if($.isVideo!==void 0)Q.uint32(56).bool($.isVideo);if($.isCallLink!==void 0)Q.uint32(64).bool($.isCallLink);if($.callLinkToken!==void 0)Q.uint32(74).string($.callLinkToken);if($.scheduledCallId!==void 0)Q.uint32(82).string($.scheduledCallId);if($.callId!==void 0)Q.uint32(90).string($.callId);if($.callCreatorJid!==void 0)Q.uint32(98).string($.callCreatorJid);if($.groupJid!==void 0)Q.uint32(106).string($.groupJid);if($.participants!==void 0&&$.participants.length!==0)for(let Z of $.participants)tJ.encode(Z,Q.uint32(114).fork()).join();if($.callType!==void 0)Q.uint32(120).int32($.callType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$z();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.callResult=J.int32();continue}case 2:{if(K!==16)break;q.isDndMode=J.bool();continue}case 3:{if(K!==24)break;q.silenceReason=J.int32();continue}case 4:{if(K!==32)break;q.duration=J.int64Value();continue}case 5:{if(K!==40)break;q.startTime=J.int64Value();continue}case 6:{if(K!==48)break;q.isIncoming=J.bool();continue}case 7:{if(K!==56)break;q.isVideo=J.bool();continue}case 8:{if(K!==64)break;q.isCallLink=J.bool();continue}case 9:{if(K!==74)break;q.callLinkToken=J.string();continue}case 10:{if(K!==82)break;q.scheduledCallId=J.string();continue}case 11:{if(K!==90)break;q.callId=J.string();continue}case 12:{if(K!==98)break;q.callCreatorJid=J.string();continue}case 13:{if(K!==106)break;q.groupJid=J.string();continue}case 14:{if(K!==114)break;if(q.participants===void 0)q.participants=[];let V=tJ.decode(J,J.uint32());if(V!==void 0)q.participants.push(V);continue}case 15:{if(K!==120)break;q.callType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return VQ.fromPartial($??{})},fromPartial($){let Q=$z();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)=>tJ.fromPartial(Z))||void 0,Q.callType=$.callType??void 0,Q}};function Qz(){return{}}var tJ={encode($,Q=new H){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.callResult!==void 0)Q.uint32(16).int32($.callResult);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Qz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.userJid=J.string();continue}case 2:{if(K!==16)break;q.callResult=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return tJ.fromPartial($??{})},fromPartial($){let Q=Qz();return Q.userJid=$.userJid??void 0,Q.callResult=$.callResult??void 0,Q}};function Jz(){return{}}var u5={encode($,Q=new H){if($.leaf!==void 0)h$.encode($.leaf,Q.uint32(10).fork()).join();if($.intermediate!==void 0)h$.encode($.intermediate,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Jz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.leaf=h$.decode(J,J.uint32(),q.leaf);continue}case 2:{if(K!==18)break;q.intermediate=h$.decode(J,J.uint32(),q.intermediate);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return u5.fromPartial($??{})},fromPartial($){let Q=Jz();return Q.leaf=$.leaf!==void 0&&$.leaf!==null?h$.fromPartial($.leaf):void 0,Q.intermediate=$.intermediate!==void 0&&$.intermediate!==null?h$.fromPartial($.intermediate):void 0,Q}};function Kz(){return{}}var h$={encode($,Q=new H){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Kz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.details=J.bytes();continue}case 2:{if(K!==18)break;q.signature=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return h$.fromPartial($??{})},fromPartial($){let Q=Kz();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q}};function qz(){return{}}var w5={encode($,Q=new H){if($.serial!==void 0)Q.uint32(8).uint32($.serial);if($.issuerSerial!==void 0)Q.uint32(16).uint32($.issuerSerial);if($.key!==void 0)Q.uint32(26).bytes($.key);if($.notBefore!==void 0)Q.uint32(32).uint64($.notBefore);if($.notAfter!==void 0)Q.uint32(40).uint64($.notAfter);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.serial=J.uint32();continue}case 2:{if(K!==16)break;q.issuerSerial=J.uint32();continue}case 3:{if(K!==26)break;q.key=J.bytes();continue}case 4:{if(K!==32)break;q.notBefore=J.uint64Value();continue}case 5:{if(K!==40)break;q.notAfter=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return w5.fromPartial($??{})},fromPartial($){let Q=qz();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 Zz(){return{}}var HQ={encode($,Q=new H){if($.hideLockedChats!==void 0)Q.uint32(8).bool($.hideLockedChats);if($.secretCode!==void 0)L5.encode($.secretCode,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Zz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.hideLockedChats=J.bool();continue}case 2:{if(K!==18)break;q.secretCode=L5.decode(J,J.uint32(),q.secretCode);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return HQ.fromPartial($??{})},fromPartial($){let Q=Zz();return Q.hideLockedChats=$.hideLockedChats??void 0,Q.secretCode=$.secretCode!==void 0&&$.secretCode!==null?L5.fromPartial($.secretCode):void 0,Q}};function Xz(){return{}}var HA={encode($,Q=new H){if($.draftMessage!==void 0)aJ.encode($.draftMessage,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Xz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.draftMessage=aJ.decode(J,J.uint32(),q.draftMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return HA.fromPartial($??{})},fromPartial($){let Q=Xz();return Q.draftMessage=$.draftMessage!==void 0&&$.draftMessage!==null?aJ.fromPartial($.draftMessage):void 0,Q}};function Yz(){return{}}var aJ={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);if($.omittedUrl!==void 0)Q.uint32(18).string($.omittedUrl);if($.ctwaContextLinkData!==void 0)eJ.encode($.ctwaContextLinkData,Q.uint32(26).fork()).join();if($.ctwaContext!==void 0)sJ.encode($.ctwaContext,Q.uint32(34).fork()).join();if($.timestamp!==void 0)Q.uint32(40).int64($.timestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Yz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=J.string();continue}case 2:{if(K!==18)break;q.omittedUrl=J.string();continue}case 3:{if(K!==26)break;q.ctwaContextLinkData=eJ.decode(J,J.uint32(),q.ctwaContextLinkData);continue}case 4:{if(K!==34)break;q.ctwaContext=sJ.decode(J,J.uint32(),q.ctwaContext);continue}case 5:{if(K!==40)break;q.timestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return aJ.fromPartial($??{})},fromPartial($){let Q=Yz();return Q.text=$.text??void 0,Q.omittedUrl=$.omittedUrl??void 0,Q.ctwaContextLinkData=$.ctwaContextLinkData!==void 0&&$.ctwaContextLinkData!==null?eJ.fromPartial($.ctwaContextLinkData):void 0,Q.ctwaContext=$.ctwaContext!==void 0&&$.ctwaContext!==null?sJ.fromPartial($.ctwaContext):void 0,Q.timestamp=$.timestamp??void 0,Q}};function Vz(){return{}}var sJ={encode($,Q=new H){if($.conversionSource!==void 0)Q.uint32(10).string($.conversionSource);if($.conversionData!==void 0)Q.uint32(18).bytes($.conversionData);if($.sourceUrl!==void 0)Q.uint32(26).string($.sourceUrl);if($.sourceId!==void 0)Q.uint32(34).string($.sourceId);if($.sourceType!==void 0)Q.uint32(42).string($.sourceType);if($.title!==void 0)Q.uint32(50).string($.title);if($.description!==void 0)Q.uint32(58).string($.description);if($.thumbnail!==void 0)Q.uint32(66).string($.thumbnail);if($.thumbnailUrl!==void 0)Q.uint32(74).string($.thumbnailUrl);if($.mediaType!==void 0)Q.uint32(80).int32($.mediaType);if($.mediaUrl!==void 0)Q.uint32(90).string($.mediaUrl);if($.isSuspiciousLink!==void 0)Q.uint32(96).bool($.isSuspiciousLink);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Vz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.conversionSource=J.string();continue}case 2:{if(K!==18)break;q.conversionData=J.bytes();continue}case 3:{if(K!==26)break;q.sourceUrl=J.string();continue}case 4:{if(K!==34)break;q.sourceId=J.string();continue}case 5:{if(K!==42)break;q.sourceType=J.string();continue}case 6:{if(K!==50)break;q.title=J.string();continue}case 7:{if(K!==58)break;q.description=J.string();continue}case 8:{if(K!==66)break;q.thumbnail=J.string();continue}case 9:{if(K!==74)break;q.thumbnailUrl=J.string();continue}case 10:{if(K!==80)break;q.mediaType=J.int32();continue}case 11:{if(K!==90)break;q.mediaUrl=J.string();continue}case 12:{if(K!==96)break;q.isSuspiciousLink=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return sJ.fromPartial($??{})},fromPartial($){let Q=Vz();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 Hz(){return{}}var eJ={encode($,Q=new H){if($.context!==void 0)Q.uint32(10).string($.context);if($.sourceUrl!==void 0)Q.uint32(18).string($.sourceUrl);if($.icebreaker!==void 0)Q.uint32(26).string($.icebreaker);if($.phone!==void 0)Q.uint32(34).string($.phone);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Hz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.context=J.string();continue}case 2:{if(K!==18)break;q.sourceUrl=J.string();continue}case 3:{if(K!==26)break;q.icebreaker=J.string();continue}case 4:{if(K!==34)break;q.phone=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return eJ.fromPartial($??{})},fromPartial($){let Q=Hz();return Q.context=$.context??void 0,Q.sourceUrl=$.sourceUrl??void 0,Q.icebreaker=$.icebreaker??void 0,Q.phone=$.phone??void 0,Q}};function zz(){return{}}var $K={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.subtitle!==void 0)Q.uint32(18).string($.subtitle);if($.cmsId!==void 0)Q.uint32(26).string($.cmsId);if($.imageUrl!==void 0)Q.uint32(34).string($.imageUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==18)break;q.subtitle=J.string();continue}case 3:{if(K!==26)break;q.cmsId=J.string();continue}case 4:{if(K!==34)break;q.imageUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $K.fromPartial($??{})},fromPartial($){let Q=zz();return Q.title=$.title??void 0,Q.subtitle=$.subtitle??void 0,Q.cmsId=$.cmsId??void 0,Q.imageUrl=$.imageUrl??void 0,Q}};function Gz(){return{}}var zA={encode($,Q=new H){if($.isChatDbLidMigrated!==void 0)Q.uint32(8).bool($.isChatDbLidMigrated);if($.isSyncdPureLidSession!==void 0)Q.uint32(16).bool($.isSyncdPureLidSession);if($.isSyncdSnapshotRecoveryEnabled!==void 0)Q.uint32(24).bool($.isSyncdSnapshotRecoveryEnabled);if($.isHsThumbnailSyncEnabled!==void 0)Q.uint32(32).bool($.isHsThumbnailSyncEnabled);if($.subscriptionSyncPayload!==void 0)Q.uint32(42).bytes($.subscriptionSyncPayload);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Gz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isChatDbLidMigrated=J.bool();continue}case 2:{if(K!==16)break;q.isSyncdPureLidSession=J.bool();continue}case 3:{if(K!==24)break;q.isSyncdSnapshotRecoveryEnabled=J.bool();continue}case 4:{if(K!==32)break;q.isHsThumbnailSyncEnabled=J.bool();continue}case 5:{if(K!==42)break;q.subscriptionSyncPayload=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return zA.fromPartial($??{})},fromPartial($){let Q=Gz();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 Uz(){return{}}var j5={encode($,Q=new H){if($.username!==void 0)Q.uint32(8).uint64($.username);if($.passive!==void 0)Q.uint32(24).bool($.passive);if($.userAgent!==void 0)qK.encode($.userAgent,Q.uint32(42).fork()).join();if($.webInfo!==void 0)XK.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)QK.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)JK.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)KK.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Uz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.username=J.uint64Value();continue}case 3:{if(K!==24)break;q.passive=J.bool();continue}case 5:{if(K!==42)break;q.userAgent=qK.decode(J,J.uint32(),q.userAgent);continue}case 6:{if(K!==50)break;q.webInfo=XK.decode(J,J.uint32(),q.webInfo);continue}case 7:{if(K!==58)break;q.pushName=J.string();continue}case 9:{if(K!==77)break;q.sessionId=J.sfixed32();continue}case 10:{if(K!==80)break;q.shortConnect=J.bool();continue}case 12:{if(K!==96)break;q.connectType=J.int32();continue}case 13:{if(K!==104)break;q.connectReason=J.int32();continue}case 14:{if(K===112){if(q.shards===void 0)q.shards=[];q.shards.push(J.int32());continue}if(K===114){if(q.shards===void 0)q.shards=[];let V=J.uint32()+J.pos;while(J.pos<V)q.shards.push(J.int32());continue}break}case 15:{if(K!==122)break;q.dnsSource=QK.decode(J,J.uint32(),q.dnsSource);continue}case 16:{if(K!==128)break;q.connectAttemptCount=J.uint32();continue}case 18:{if(K!==144)break;q.device=J.uint32();continue}case 19:{if(K!==154)break;q.devicePairingData=JK.decode(J,J.uint32(),q.devicePairingData);continue}case 20:{if(K!==160)break;q.product=J.int32();continue}case 21:{if(K!==170)break;q.fbCat=J.bytes();continue}case 22:{if(K!==178)break;q.fbUserAgent=J.bytes();continue}case 23:{if(K!==184)break;q.oc=J.bool();continue}case 24:{if(K!==192)break;q.lc=J.int32();continue}case 30:{if(K!==240)break;q.iosAppExtension=J.int32();continue}case 31:{if(K!==248)break;q.fbAppId=J.uint64Value();continue}case 32:{if(K!==258)break;q.fbDeviceId=J.bytes();continue}case 33:{if(K!==264)break;q.pull=J.bool();continue}case 34:{if(K!==274)break;q.paddingBytes=J.bytes();continue}case 36:{if(K!==288)break;q.yearClass=J.int32();continue}case 37:{if(K!==296)break;q.memClass=J.int32();continue}case 38:{if(K!==306)break;q.interopData=KK.decode(J,J.uint32(),q.interopData);continue}case 40:{if(K!==320)break;q.trafficAnonymization=J.int32();continue}case 41:{if(K!==328)break;q.lidDbMigrated=J.bool();continue}case 42:{if(K!==336)break;q.accountType=J.int32();continue}case 43:{if(K!==349)break;q.connectionSequenceInfo=J.sfixed32();continue}case 44:{if(K!==352)break;q.paaLink=J.bool();continue}case 45:{if(K!==360)break;q.preacksCount=J.int32();continue}case 46:{if(K!==368)break;q.processingQueueSize=J.int32();continue}case 47:{if(K!==378)break;if(q.pairedPeripherals===void 0)q.pairedPeripherals=[];let V=J.string();if(V!==void 0)q.pairedPeripherals.push(V);continue}case 48:{if(K!==386)break;q.testIsolationId=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return j5.fromPartial($??{})},fromPartial($){let Q=Uz();return Q.username=$.username??void 0,Q.passive=$.passive??void 0,Q.userAgent=$.userAgent!==void 0&&$.userAgent!==null?qK.fromPartial($.userAgent):void 0,Q.webInfo=$.webInfo!==void 0&&$.webInfo!==null?XK.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?QK.fromPartial($.dnsSource):void 0,Q.connectAttemptCount=$.connectAttemptCount??void 0,Q.device=$.device??void 0,Q.devicePairingData=$.devicePairingData!==void 0&&$.devicePairingData!==null?JK.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?KK.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 Cz(){return{}}var QK={encode($,Q=new H){if($.dnsMethod!==void 0)Q.uint32(120).int32($.dnsMethod);if($.appCached!==void 0)Q.uint32(128).bool($.appCached);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Cz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 15:{if(K!==120)break;q.dnsMethod=J.int32();continue}case 16:{if(K!==128)break;q.appCached=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return QK.fromPartial($??{})},fromPartial($){let Q=Cz();return Q.dnsMethod=$.dnsMethod??void 0,Q.appCached=$.appCached??void 0,Q}};function Dz(){return{}}var JK={encode($,Q=new H){if($.eRegid!==void 0)Q.uint32(10).bytes($.eRegid);if($.eKeytype!==void 0)Q.uint32(18).bytes($.eKeytype);if($.eIdent!==void 0)Q.uint32(26).bytes($.eIdent);if($.eSkeyId!==void 0)Q.uint32(34).bytes($.eSkeyId);if($.eSkeyVal!==void 0)Q.uint32(42).bytes($.eSkeyVal);if($.eSkeySig!==void 0)Q.uint32(50).bytes($.eSkeySig);if($.buildHash!==void 0)Q.uint32(58).bytes($.buildHash);if($.deviceProps!==void 0)Q.uint32(66).bytes($.deviceProps);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Dz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.eRegid=J.bytes();continue}case 2:{if(K!==18)break;q.eKeytype=J.bytes();continue}case 3:{if(K!==26)break;q.eIdent=J.bytes();continue}case 4:{if(K!==34)break;q.eSkeyId=J.bytes();continue}case 5:{if(K!==42)break;q.eSkeyVal=J.bytes();continue}case 6:{if(K!==50)break;q.eSkeySig=J.bytes();continue}case 7:{if(K!==58)break;q.buildHash=J.bytes();continue}case 8:{if(K!==66)break;q.deviceProps=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return JK.fromPartial($??{})},fromPartial($){let Q=Dz();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 Fz(){return{}}var KK={encode($,Q=new H){if($.accountId!==void 0)Q.uint32(8).uint64($.accountId);if($.token!==void 0)Q.uint32(18).bytes($.token);if($.enableReadReceipts!==void 0)Q.uint32(24).bool($.enableReadReceipts);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Fz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.accountId=J.uint64Value();continue}case 2:{if(K!==18)break;q.token=J.bytes();continue}case 3:{if(K!==24)break;q.enableReadReceipts=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return KK.fromPartial($??{})},fromPartial($){let Q=Fz();return Q.accountId=$.accountId??void 0,Q.token=$.token??void 0,Q.enableReadReceipts=$.enableReadReceipts??void 0,Q}};function Lz(){return{}}var qK={encode($,Q=new H){if($.platform!==void 0)Q.uint32(8).int32($.platform);if($.appVersion!==void 0)ZK.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Lz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.platform=J.int32();continue}case 2:{if(K!==18)break;q.appVersion=ZK.decode(J,J.uint32(),q.appVersion);continue}case 3:{if(K!==26)break;q.mcc=J.string();continue}case 4:{if(K!==34)break;q.mnc=J.string();continue}case 5:{if(K!==42)break;q.osVersion=J.string();continue}case 6:{if(K!==50)break;q.manufacturer=J.string();continue}case 7:{if(K!==58)break;q.device=J.string();continue}case 8:{if(K!==66)break;q.osBuildNumber=J.string();continue}case 9:{if(K!==74)break;q.phoneId=J.string();continue}case 10:{if(K!==80)break;q.releaseChannel=J.int32();continue}case 11:{if(K!==90)break;q.localeLanguageIso6391=J.string();continue}case 12:{if(K!==98)break;q.localeCountryIso31661Alpha2=J.string();continue}case 13:{if(K!==106)break;q.deviceBoard=J.string();continue}case 14:{if(K!==114)break;q.deviceExpId=J.string();continue}case 15:{if(K!==120)break;q.deviceType=J.int32();continue}case 16:{if(K!==130)break;q.deviceModelType=J.string();continue}case 17:{if(K!==136)break;q.distributionChannel=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return qK.fromPartial($??{})},fromPartial($){let Q=Lz();return Q.platform=$.platform??void 0,Q.appVersion=$.appVersion!==void 0&&$.appVersion!==null?ZK.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 Pz(){return{}}var ZK={encode($,Q=new H){if($.primary!==void 0)Q.uint32(8).uint32($.primary);if($.secondary!==void 0)Q.uint32(16).uint32($.secondary);if($.tertiary!==void 0)Q.uint32(24).uint32($.tertiary);if($.quaternary!==void 0)Q.uint32(32).uint32($.quaternary);if($.quinary!==void 0)Q.uint32(40).uint32($.quinary);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Pz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.primary=J.uint32();continue}case 2:{if(K!==16)break;q.secondary=J.uint32();continue}case 3:{if(K!==24)break;q.tertiary=J.uint32();continue}case 4:{if(K!==32)break;q.quaternary=J.uint32();continue}case 5:{if(K!==40)break;q.quinary=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return ZK.fromPartial($??{})},fromPartial($){let Q=Pz();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 kz(){return{}}var XK={encode($,Q=new H){if($.refToken!==void 0)Q.uint32(10).string($.refToken);if($.version!==void 0)Q.uint32(18).string($.version);if($.webdPayload!==void 0)YK.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.refToken=J.string();continue}case 2:{if(K!==18)break;q.version=J.string();continue}case 3:{if(K!==26)break;q.webdPayload=YK.decode(J,J.uint32(),q.webdPayload);continue}case 4:{if(K!==32)break;q.webSubPlatform=J.int32();continue}case 5:{if(K!==42)break;q.browser=J.string();continue}case 6:{if(K!==50)break;q.browserVersion=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return XK.fromPartial($??{})},fromPartial($){let Q=kz();return Q.refToken=$.refToken??void 0,Q.version=$.version??void 0,Q.webdPayload=$.webdPayload!==void 0&&$.webdPayload!==null?YK.fromPartial($.webdPayload):void 0,Q.webSubPlatform=$.webSubPlatform??void 0,Q.browser=$.browser??void 0,Q.browserVersion=$.browserVersion??void 0,Q}};function xz(){return{}}var YK={encode($,Q=new H){if($.usesParticipantInKey!==void 0)Q.uint32(8).bool($.usesParticipantInKey);if($.supportsStarredMessages!==void 0)Q.uint32(16).bool($.supportsStarredMessages);if($.supportsDocumentMessages!==void 0)Q.uint32(24).bool($.supportsDocumentMessages);if($.supportsUrlMessages!==void 0)Q.uint32(32).bool($.supportsUrlMessages);if($.supportsMediaRetry!==void 0)Q.uint32(40).bool($.supportsMediaRetry);if($.supportsE2EImage!==void 0)Q.uint32(48).bool($.supportsE2EImage);if($.supportsE2EVideo!==void 0)Q.uint32(56).bool($.supportsE2EVideo);if($.supportsE2EAudio!==void 0)Q.uint32(64).bool($.supportsE2EAudio);if($.supportsE2EDocument!==void 0)Q.uint32(72).bool($.supportsE2EDocument);if($.documentTypes!==void 0)Q.uint32(82).string($.documentTypes);if($.features!==void 0)Q.uint32(90).bytes($.features);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.usesParticipantInKey=J.bool();continue}case 2:{if(K!==16)break;q.supportsStarredMessages=J.bool();continue}case 3:{if(K!==24)break;q.supportsDocumentMessages=J.bool();continue}case 4:{if(K!==32)break;q.supportsUrlMessages=J.bool();continue}case 5:{if(K!==40)break;q.supportsMediaRetry=J.bool();continue}case 6:{if(K!==48)break;q.supportsE2EImage=J.bool();continue}case 7:{if(K!==56)break;q.supportsE2EVideo=J.bool();continue}case 8:{if(K!==64)break;q.supportsE2EAudio=J.bool();continue}case 9:{if(K!==72)break;q.supportsE2EDocument=J.bool();continue}case 10:{if(K!==82)break;q.documentTypes=J.string();continue}case 11:{if(K!==90)break;q.features=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return YK.fromPartial($??{})},fromPartial($){let Q=xz();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 Bz(){return{}}var VK={encode($,Q=new H){if($.collectionMutations!==void 0&&$.collectionMutations.length!==0)for(let Z of $.collectionMutations)HK.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Bz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.collectionMutations===void 0)q.collectionMutations=[];let V=HK.decode(J,J.uint32());if(V!==void 0)q.collectionMutations.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return VK.fromPartial($??{})},fromPartial($){let Q=Bz();return Q.collectionMutations=$.collectionMutations?.map((Z)=>HK.fromPartial(Z))||void 0,Q}};function Nz(){return{}}var HK={encode($,Q=new H){if($.collection!==void 0)Q.uint32(10).string($.collection);if($.mutations!==void 0&&$.mutations.length!==0)for(let Z of $.mutations)zK.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Nz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.collection=J.string();continue}case 2:{if(K!==18)break;if(q.mutations===void 0)q.mutations=[];let V=zK.decode(J,J.uint32());if(V!==void 0)q.mutations.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return HK.fromPartial($??{})},fromPartial($){let Q=Nz();return Q.collection=$.collection??void 0,Q.mutations=$.mutations?.map((Z)=>zK.fromPartial(Z))||void 0,Q}};function Oz(){return{}}var zK={encode($,Q=new H){if($.index!==void 0)wQ.encode($.index,Q.uint32(10).fork()).join();if($.value!==void 0)jQ.encode($.value,Q.uint32(18).fork()).join();if($.dirtyVersion!==void 0)Q.uint32(24).uint64($.dirtyVersion);if($.operation!==void 0)Q.uint32(32).int32($.operation);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Oz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.index=wQ.decode(J,J.uint32(),q.index);continue}case 2:{if(K!==18)break;q.value=jQ.decode(J,J.uint32(),q.value);continue}case 3:{if(K!==24)break;q.dirtyVersion=J.uint64Value();continue}case 4:{if(K!==32)break;q.operation=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return zK.fromPartial($??{})},fromPartial($){let Q=Oz();return Q.index=$.index!==void 0&&$.index!==null?wQ.fromPartial($.index):void 0,Q.value=$.value!==void 0&&$.value!==null?jQ.fromPartial($.value):void 0,Q.dirtyVersion=$.dirtyVersion??void 0,Q.operation=$.operation??void 0,Q}};function Rz(){return{}}var GA={encode($,Q=new H){if($.version!==void 0)Q.uint32(8).uint32($.version);if($.localFingerprint!==void 0)r$.encode($.localFingerprint,Q.uint32(18).fork()).join();if($.remoteFingerprint!==void 0)r$.encode($.remoteFingerprint,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Rz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.version=J.uint32();continue}case 2:{if(K!==18)break;q.localFingerprint=r$.decode(J,J.uint32(),q.localFingerprint);continue}case 3:{if(K!==26)break;q.remoteFingerprint=r$.decode(J,J.uint32(),q.remoteFingerprint);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return GA.fromPartial($??{})},fromPartial($){let Q=Rz();return Q.version=$.version??void 0,Q.localFingerprint=$.localFingerprint!==void 0&&$.localFingerprint!==null?r$.fromPartial($.localFingerprint):void 0,Q.remoteFingerprint=$.remoteFingerprint!==void 0&&$.remoteFingerprint!==null?r$.fromPartial($.remoteFingerprint):void 0,Q}};function Az(){return{}}var zQ={encode($,Q=new H){if($.commandType!==void 0)Q.uint32(8).int32($.commandType);if($.offset!==void 0)Q.uint32(16).uint32($.offset);if($.length!==void 0)Q.uint32(24).uint32($.length);if($.validationToken!==void 0)Q.uint32(34).string($.validationToken);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Az();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.commandType=J.int32();continue}case 2:{if(K!==16)break;q.offset=J.uint32();continue}case 3:{if(K!==24)break;q.length=J.uint32();continue}case 4:{if(K!==34)break;q.validationToken=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return zQ.fromPartial($??{})},fromPartial($){let Q=Az();return Q.commandType=$.commandType??void 0,Q.offset=$.offset??void 0,Q.length=$.length??void 0,Q.validationToken=$.validationToken??void 0,Q}};function Ez(){return{}}var GK={encode($,Q=new H){if($.commentParentKey!==void 0)B.encode($.commentParentKey,Q.uint32(10).fork()).join();if($.replyCount!==void 0)Q.uint32(16).uint32($.replyCount);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ez();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.commentParentKey=B.decode(J,J.uint32(),q.commentParentKey);continue}case 2:{if(K!==16)break;q.replyCount=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return GK.fromPartial($??{})},fromPartial($){let Q=Ez();return Q.commentParentKey=$.commentParentKey!==void 0&&$.commentParentKey!==null?B.fromPartial($.commentParentKey):void 0,Q.replyCount=$.replyCount??void 0,Q}};function Mz(){return{}}var UK={encode($,Q=new H){if($.hash!==void 0)Q.uint32(10).bytes($.hash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Mz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.hash=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return UK.fromPartial($??{})},fromPartial($){let Q=Mz();return Q.hash=$.hash??void 0,Q}};function Wz(){return{}}var UA={encode($,Q=new H){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.deviceType!==void 0)Q.uint32(16).int32($.deviceType);if($.ref!==void 0)Q.uint32(26).string($.ref);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Wz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.publicKey=J.bytes();continue}case 2:{if(K!==16)break;q.deviceType=J.int32();continue}case 3:{if(K!==26)break;q.ref=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return UA.fromPartial($??{})},fromPartial($){let Q=Wz();return Q.publicKey=$.publicKey??void 0,Q.deviceType=$.deviceType??void 0,Q.ref=$.ref??void 0,Q}};function Sz(){return{}}var CA={encode($,Q=new H){if(globalThis.Object.entries($.field||{}).forEach(([Z,J])=>{y5.encode({key:Z,value:J},Q.uint32(10).fork()).join()}),$.version!==void 0)Q.uint32(16).uint32($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Sz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;let V=y5.decode(J,J.uint32());if(V.value!==void 0&&V.key!==void 0){if(q.field===void 0)q.field={};q.field[V.key]=V.value}continue}case 2:{if(K!==16)break;q.version=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return CA.fromPartial($??{})},fromPartial($){let Q=Sz();return Q.field=$.field===void 0||$.field===null?void 0:globalThis.Object.entries($.field??{}).reduce((Z,[J,X])=>{if(X!==void 0)Z[globalThis.Number(J)]=l$.fromPartial(X);return Z},{}),Q.version=$.version??void 0,Q}};function Iz(){return{}}var y5={encode($,Q=new H){if($.key!==void 0)Q.uint32(8).uint32($.key);if($.value!==void 0)l$.encode($.value,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Iz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.key=J.uint32();continue}case 2:{if(K!==18)break;q.value=l$.decode(J,J.uint32(),q.value);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return y5.fromPartial($??{})},fromPartial($){let Q=Iz();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?l$.fromPartial($.value):void 0,Q}};function Tz(){return{}}var DA={encode($,Q=new H){if($.payload!==void 0)RK.encode($.payload,Q.uint32(10).fork()).join();if($.metadata!==void 0)OK.encode($.metadata,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Tz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.payload=RK.decode(J,J.uint32(),q.payload);continue}case 2:{if(K!==18)break;q.metadata=OK.decode(J,J.uint32(),q.metadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return DA.fromPartial($??{})},fromPartial($){let Q=Tz();return Q.payload=$.payload!==void 0&&$.payload!==null?RK.fromPartial($.payload):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?OK.fromPartial($.metadata):void 0,Q}};function yz(){return{}}var CK={encode($,Q=new H){if($.revoke!==void 0)SK.encode($.revoke,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.revoke=SK.decode(J,J.uint32(),q.revoke);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return CK.fromPartial($??{})},fromPartial($){let Q=yz();return Q.revoke=$.revoke!==void 0&&$.revoke!==null?SK.fromPartial($.revoke):void 0,Q}};function vz(){return{}}var DK={encode($,Q=new H){if($.audio!==void 0)n.encode($.audio,Q.uint32(10).fork()).join();if($.ptt!==void 0)Q.uint32(16).bool($.ptt);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.audio=n.decode(J,J.uint32(),q.audio);continue}case 2:{if(K!==16)break;q.ptt=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return DK.fromPartial($??{})},fromPartial($){let Q=vz();return Q.audio=$.audio!==void 0&&$.audio!==null?n.fromPartial($.audio):void 0,Q.ptt=$.ptt??void 0,Q}};function fz(){return{}}var GQ={encode($,Q=new H){if($.contact!==void 0)n.encode($.contact,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.contact=n.decode(J,J.uint32(),q.contact);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return GQ.fromPartial($??{})},fromPartial($){let Q=fz();return Q.contact=$.contact!==void 0&&$.contact!==null?n.fromPartial($.contact):void 0,Q}};function _z(){return{}}var FK={encode($,Q=new H){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let Z of $.contacts)GQ.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_z();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayName=J.string();continue}case 2:{if(K!==18)break;if(q.contacts===void 0)q.contacts=[];let V=GQ.decode(J,J.uint32());if(V!==void 0)q.contacts.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return FK.fromPartial($??{})},fromPartial($){let Q=_z();return Q.displayName=$.displayName??void 0,Q.contacts=$.contacts?.map((Z)=>GQ.fromPartial(Z))||void 0,Q}};function hz(){return{}}var LK={encode($,Q=new H){if($.messageText!==void 0)a.encode($.messageText,Q.uint32(10).fork()).join();if($.imageMessage!==void 0)CQ.encode($.imageMessage,Q.uint32(18).fork()).join();if($.contactMessage!==void 0)GQ.encode($.contactMessage,Q.uint32(26).fork()).join();if($.locationMessage!==void 0)NK.encode($.locationMessage,Q.uint32(34).fork()).join();if($.extendedTextMessage!==void 0)UQ.encode($.extendedTextMessage,Q.uint32(42).fork()).join();if($.statusTextMessage!==void 0)TK.encode($.statusTextMessage,Q.uint32(50).fork()).join();if($.documentMessage!==void 0)PK.encode($.documentMessage,Q.uint32(58).fork()).join();if($.audioMessage!==void 0)DK.encode($.audioMessage,Q.uint32(66).fork()).join();if($.videoMessage!==void 0)FQ.encode($.videoMessage,Q.uint32(74).fork()).join();if($.contactsArrayMessage!==void 0)FK.encode($.contactsArrayMessage,Q.uint32(82).fork()).join();if($.liveLocationMessage!==void 0)BK.encode($.liveLocationMessage,Q.uint32(90).fork()).join();if($.stickerMessage!==void 0)yK.encode($.stickerMessage,Q.uint32(98).fork()).join();if($.groupInviteMessage!==void 0)xK.encode($.groupInviteMessage,Q.uint32(106).fork()).join();if($.viewOnceMessage!==void 0)fK.encode($.viewOnceMessage,Q.uint32(114).fork()).join();if($.reactionMessage!==void 0)WK.encode($.reactionMessage,Q.uint32(130).fork()).join();if($.pollCreationMessage!==void 0)EK.encode($.pollCreationMessage,Q.uint32(138).fork()).join();if($.pollUpdateMessage!==void 0)MK.encode($.pollUpdateMessage,Q.uint32(146).fork()).join();if($.editMessage!==void 0)kK.encode($.editMessage,Q.uint32(154).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.messageText=a.decode(J,J.uint32(),q.messageText);continue}case 2:{if(K!==18)break;q.imageMessage=CQ.decode(J,J.uint32(),q.imageMessage);continue}case 3:{if(K!==26)break;q.contactMessage=GQ.decode(J,J.uint32(),q.contactMessage);continue}case 4:{if(K!==34)break;q.locationMessage=NK.decode(J,J.uint32(),q.locationMessage);continue}case 5:{if(K!==42)break;q.extendedTextMessage=UQ.decode(J,J.uint32(),q.extendedTextMessage);continue}case 6:{if(K!==50)break;q.statusTextMessage=TK.decode(J,J.uint32(),q.statusTextMessage);continue}case 7:{if(K!==58)break;q.documentMessage=PK.decode(J,J.uint32(),q.documentMessage);continue}case 8:{if(K!==66)break;q.audioMessage=DK.decode(J,J.uint32(),q.audioMessage);continue}case 9:{if(K!==74)break;q.videoMessage=FQ.decode(J,J.uint32(),q.videoMessage);continue}case 10:{if(K!==82)break;q.contactsArrayMessage=FK.decode(J,J.uint32(),q.contactsArrayMessage);continue}case 11:{if(K!==90)break;q.liveLocationMessage=BK.decode(J,J.uint32(),q.liveLocationMessage);continue}case 12:{if(K!==98)break;q.stickerMessage=yK.decode(J,J.uint32(),q.stickerMessage);continue}case 13:{if(K!==106)break;q.groupInviteMessage=xK.decode(J,J.uint32(),q.groupInviteMessage);continue}case 14:{if(K!==114)break;q.viewOnceMessage=fK.decode(J,J.uint32(),q.viewOnceMessage);continue}case 16:{if(K!==130)break;q.reactionMessage=WK.decode(J,J.uint32(),q.reactionMessage);continue}case 17:{if(K!==138)break;q.pollCreationMessage=EK.decode(J,J.uint32(),q.pollCreationMessage);continue}case 18:{if(K!==146)break;q.pollUpdateMessage=MK.decode(J,J.uint32(),q.pollUpdateMessage);continue}case 19:{if(K!==154)break;q.editMessage=kK.decode(J,J.uint32(),q.editMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return LK.fromPartial($??{})},fromPartial($){let Q=hz();return Q.messageText=$.messageText!==void 0&&$.messageText!==null?a.fromPartial($.messageText):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?CQ.fromPartial($.imageMessage):void 0,Q.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?GQ.fromPartial($.contactMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?NK.fromPartial($.locationMessage):void 0,Q.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?UQ.fromPartial($.extendedTextMessage):void 0,Q.statusTextMessage=$.statusTextMessage!==void 0&&$.statusTextMessage!==null?TK.fromPartial($.statusTextMessage):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?PK.fromPartial($.documentMessage):void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?DK.fromPartial($.audioMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?FQ.fromPartial($.videoMessage):void 0,Q.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?FK.fromPartial($.contactsArrayMessage):void 0,Q.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?BK.fromPartial($.liveLocationMessage):void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?yK.fromPartial($.stickerMessage):void 0,Q.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?xK.fromPartial($.groupInviteMessage):void 0,Q.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?fK.fromPartial($.viewOnceMessage):void 0,Q.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?WK.fromPartial($.reactionMessage):void 0,Q.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?EK.fromPartial($.pollCreationMessage):void 0,Q.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?MK.fromPartial($.pollUpdateMessage):void 0,Q.editMessage=$.editMessage!==void 0&&$.editMessage!==null?kK.fromPartial($.editMessage):void 0,Q}};function lz(){return{}}var PK={encode($,Q=new H){if($.document!==void 0)n.encode($.document,Q.uint32(10).fork()).join();if($.fileName!==void 0)Q.uint32(18).string($.fileName);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.document=n.decode(J,J.uint32(),q.document);continue}case 2:{if(K!==18)break;q.fileName=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return PK.fromPartial($??{})},fromPartial($){let Q=lz();return Q.document=$.document!==void 0&&$.document!==null?n.fromPartial($.document):void 0,Q.fileName=$.fileName??void 0,Q}};function pz(){return{}}var kK={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)a.encode($.message,Q.uint32(18).fork()).join();if($.timestampMs!==void 0)Q.uint32(24).int64($.timestampMs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.message=a.decode(J,J.uint32(),q.message);continue}case 3:{if(K!==24)break;q.timestampMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return kK.fromPartial($??{})},fromPartial($){let Q=pz();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?a.fromPartial($.message):void 0,Q.timestampMs=$.timestampMs??void 0,Q}};function uz(){return{}}var UQ={encode($,Q=new H){if($.text!==void 0)a.encode($.text,Q.uint32(10).fork()).join();if($.matchedText!==void 0)Q.uint32(18).string($.matchedText);if($.canonicalUrl!==void 0)Q.uint32(26).string($.canonicalUrl);if($.description!==void 0)Q.uint32(34).string($.description);if($.title!==void 0)Q.uint32(42).string($.title);if($.thumbnail!==void 0)n.encode($.thumbnail,Q.uint32(50).fork()).join();if($.previewType!==void 0)Q.uint32(56).int32($.previewType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=a.decode(J,J.uint32(),q.text);continue}case 2:{if(K!==18)break;q.matchedText=J.string();continue}case 3:{if(K!==26)break;q.canonicalUrl=J.string();continue}case 4:{if(K!==34)break;q.description=J.string();continue}case 5:{if(K!==42)break;q.title=J.string();continue}case 6:{if(K!==50)break;q.thumbnail=n.decode(J,J.uint32(),q.thumbnail);continue}case 7:{if(K!==56)break;q.previewType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return UQ.fromPartial($??{})},fromPartial($){let Q=uz();return Q.text=$.text!==void 0&&$.text!==null?a.fromPartial($.text):void 0,Q.matchedText=$.matchedText??void 0,Q.canonicalUrl=$.canonicalUrl??void 0,Q.description=$.description??void 0,Q.title=$.title??void 0,Q.thumbnail=$.thumbnail!==void 0&&$.thumbnail!==null?n.fromPartial($.thumbnail):void 0,Q.previewType=$.previewType??void 0,Q}};function wz(){return{}}var xK={encode($,Q=new H){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.inviteCode!==void 0)Q.uint32(18).string($.inviteCode);if($.inviteExpiration!==void 0)Q.uint32(24).int64($.inviteExpiration);if($.groupName!==void 0)Q.uint32(34).string($.groupName);if($.jpegThumbnail!==void 0)Q.uint32(42).bytes($.jpegThumbnail);if($.caption!==void 0)a.encode($.caption,Q.uint32(50).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.groupJid=J.string();continue}case 2:{if(K!==18)break;q.inviteCode=J.string();continue}case 3:{if(K!==24)break;q.inviteExpiration=J.int64Value();continue}case 4:{if(K!==34)break;q.groupName=J.string();continue}case 5:{if(K!==42)break;q.jpegThumbnail=J.bytes();continue}case 6:{if(K!==50)break;q.caption=a.decode(J,J.uint32(),q.caption);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return xK.fromPartial($??{})},fromPartial($){let Q=wz();return Q.groupJid=$.groupJid??void 0,Q.inviteCode=$.inviteCode??void 0,Q.inviteExpiration=$.inviteExpiration??void 0,Q.groupName=$.groupName??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption!==void 0&&$.caption!==null?a.fromPartial($.caption):void 0,Q}};function jz(){return{}}var CQ={encode($,Q=new H){if($.image!==void 0)n.encode($.image,Q.uint32(10).fork()).join();if($.caption!==void 0)a.encode($.caption,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.image=n.decode(J,J.uint32(),q.image);continue}case 2:{if(K!==18)break;q.caption=a.decode(J,J.uint32(),q.caption);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return CQ.fromPartial($??{})},fromPartial($){let Q=jz();return Q.image=$.image!==void 0&&$.image!==null?n.fromPartial($.image):void 0,Q.caption=$.caption!==void 0&&$.caption!==null?a.fromPartial($.caption):void 0,Q}};function cz(){return{}}var FA={encode($,Q=new H){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let Z of $.polygonVertices)AK.encode(Z,Q.uint32(10).fork()).join();if($.location!==void 0)R$.encode($.location,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.polygonVertices===void 0)q.polygonVertices=[];let V=AK.decode(J,J.uint32());if(V!==void 0)q.polygonVertices.push(V);continue}case 2:{if(K!==18)break;q.location=R$.decode(J,J.uint32(),q.location);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return FA.fromPartial($??{})},fromPartial($){let Q=cz();return Q.polygonVertices=$.polygonVertices?.map((Z)=>AK.fromPartial(Z))||void 0,Q.location=$.location!==void 0&&$.location!==null?R$.fromPartial($.location):void 0,Q}};function dz(){return{}}var BK={encode($,Q=new H){if($.location!==void 0)R$.encode($.location,Q.uint32(10).fork()).join();if($.accuracyInMeters!==void 0)Q.uint32(16).uint32($.accuracyInMeters);if($.speedInMps!==void 0)Q.uint32(29).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)Q.uint32(32).uint32($.degreesClockwiseFromMagneticNorth);if($.caption!==void 0)a.encode($.caption,Q.uint32(42).fork()).join();if($.sequenceNumber!==void 0)Q.uint32(48).int64($.sequenceNumber);if($.timeOffset!==void 0)Q.uint32(56).uint32($.timeOffset);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.location=R$.decode(J,J.uint32(),q.location);continue}case 2:{if(K!==16)break;q.accuracyInMeters=J.uint32();continue}case 3:{if(K!==29)break;q.speedInMps=J.float();continue}case 4:{if(K!==32)break;q.degreesClockwiseFromMagneticNorth=J.uint32();continue}case 5:{if(K!==42)break;q.caption=a.decode(J,J.uint32(),q.caption);continue}case 6:{if(K!==48)break;q.sequenceNumber=J.int64Value();continue}case 7:{if(K!==56)break;q.timeOffset=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return BK.fromPartial($??{})},fromPartial($){let Q=dz();return Q.location=$.location!==void 0&&$.location!==null?R$.fromPartial($.location):void 0,Q.accuracyInMeters=$.accuracyInMeters??void 0,Q.speedInMps=$.speedInMps??void 0,Q.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,Q.caption=$.caption!==void 0&&$.caption!==null?a.fromPartial($.caption):void 0,Q.sequenceNumber=$.sequenceNumber??void 0,Q.timeOffset=$.timeOffset??void 0,Q}};function nz(){return{}}var R$={encode($,Q=new H){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.name!==void 0)Q.uint32(26).string($.name);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==9)break;q.degreesLatitude=J.double();continue}case 2:{if(K!==17)break;q.degreesLongitude=J.double();continue}case 3:{if(K!==26)break;q.name=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return R$.fromPartial($??{})},fromPartial($){let Q=nz();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q}};function bz(){return{}}var NK={encode($,Q=new H){if($.location!==void 0)R$.encode($.location,Q.uint32(10).fork()).join();if($.address!==void 0)Q.uint32(18).string($.address);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.location=R$.decode(J,J.uint32(),q.location);continue}case 2:{if(K!==18)break;q.address=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return NK.fromPartial($??{})},fromPartial($){let Q=bz();return Q.location=$.location!==void 0&&$.location!==null?R$.fromPartial($.location):void 0,Q.address=$.address??void 0,Q}};function oz(){return{}}var LA={encode($,Q=new H){if($.protocol!==void 0)n.encode($.protocol,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.protocol=n.decode(J,J.uint32(),q.protocol);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return LA.fromPartial($??{})},fromPartial($){let Q=oz();return Q.protocol=$.protocol!==void 0&&$.protocol!==null?n.fromPartial($.protocol):void 0,Q}};function iz(){return{}}var OK={encode($,Q=new H){if($.specialTextSize!==void 0)Q.uint32(8).int32($.specialTextSize);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.specialTextSize=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return OK.fromPartial($??{})},fromPartial($){let Q=iz();return Q.specialTextSize=$.specialTextSize??void 0,Q}};function mz(){return{}}var DQ={encode($,Q=new H){if($.optionName!==void 0)Q.uint32(10).string($.optionName);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.optionName=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return DQ.fromPartial($??{})},fromPartial($){let Q=mz();return Q.optionName=$.optionName??void 0,Q}};function gz(){return{}}var RK={encode($,Q=new H){if($.content!==void 0)LK.encode($.content,Q.uint32(10).fork()).join();if($.applicationData!==void 0)CK.encode($.applicationData,Q.uint32(18).fork()).join();if($.signal!==void 0)IK.encode($.signal,Q.uint32(26).fork()).join();if($.subProtocol!==void 0)vK.encode($.subProtocol,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.content=LK.decode(J,J.uint32(),q.content);continue}case 2:{if(K!==18)break;q.applicationData=CK.decode(J,J.uint32(),q.applicationData);continue}case 3:{if(K!==26)break;q.signal=IK.decode(J,J.uint32(),q.signal);continue}case 4:{if(K!==34)break;q.subProtocol=vK.decode(J,J.uint32(),q.subProtocol);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return RK.fromPartial($??{})},fromPartial($){let Q=gz();return Q.content=$.content!==void 0&&$.content!==null?LK.fromPartial($.content):void 0,Q.applicationData=$.applicationData!==void 0&&$.applicationData!==null?CK.fromPartial($.applicationData):void 0,Q.signal=$.signal!==void 0&&$.signal!==null?IK.fromPartial($.signal):void 0,Q.subProtocol=$.subProtocol!==void 0&&$.subProtocol!==null?vK.fromPartial($.subProtocol):void 0,Q}};function rz(){return{}}var AK={encode($,Q=new H){if($.x!==void 0)Q.uint32(9).double($.x);if($.y!==void 0)Q.uint32(17).double($.y);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==9)break;q.x=J.double();continue}case 2:{if(K!==17)break;q.y=J.double();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return AK.fromPartial($??{})},fromPartial($){let Q=rz();return Q.x=$.x??void 0,Q.y=$.y??void 0,Q}};function tz(){return{}}var PA={encode($,Q=new H){if($.pollOption!==void 0&&$.pollOption.length!==0)for(let Z of $.pollOption)DQ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.pollOption===void 0)q.pollOption=[];let V=DQ.decode(J,J.uint32());if(V!==void 0)q.pollOption.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return PA.fromPartial($??{})},fromPartial($){let Q=tz();return Q.pollOption=$.pollOption?.map((Z)=>DQ.fromPartial(Z))||void 0,Q}};function az(){return{}}var EK={encode($,Q=new H){if($.encKey!==void 0)Q.uint32(10).bytes($.encKey);if($.name!==void 0)Q.uint32(18).string($.name);if($.options!==void 0&&$.options.length!==0)for(let Z of $.options)DQ.encode(Z,Q.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)Q.uint32(32).uint32($.selectableOptionsCount);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??az();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encKey=J.bytes();continue}case 2:{if(K!==18)break;q.name=J.string();continue}case 3:{if(K!==26)break;if(q.options===void 0)q.options=[];let V=DQ.decode(J,J.uint32());if(V!==void 0)q.options.push(V);continue}case 4:{if(K!==32)break;q.selectableOptionsCount=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return EK.fromPartial($??{})},fromPartial($){let Q=az();return Q.encKey=$.encKey??void 0,Q.name=$.name??void 0,Q.options=$.options?.map((Z)=>DQ.fromPartial(Z))||void 0,Q.selectableOptionsCount=$.selectableOptionsCount??void 0,Q}};function sz(){return{}}var m$={encode($,Q=new H){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sz();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encPayload=J.bytes();continue}case 2:{if(K!==18)break;q.encIv=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return m$.fromPartial($??{})},fromPartial($){let Q=sz();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function ez(){return{}}var MK={encode($,Q=new H){if($.pollCreationMessageKey!==void 0)B.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)m$.encode($.vote,Q.uint32(18).fork()).join();if($.addOption!==void 0)m$.encode($.addOption,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ez();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.pollCreationMessageKey=B.decode(J,J.uint32(),q.pollCreationMessageKey);continue}case 2:{if(K!==18)break;q.vote=m$.decode(J,J.uint32(),q.vote);continue}case 3:{if(K!==26)break;q.addOption=m$.decode(J,J.uint32(),q.addOption);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return MK.fromPartial($??{})},fromPartial($){let Q=ez();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?B.fromPartial($.pollCreationMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?m$.fromPartial($.vote):void 0,Q.addOption=$.addOption!==void 0&&$.addOption!==null?m$.fromPartial($.addOption):void 0,Q}};function $G(){return{}}var kA={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$G();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.selectedOptions===void 0)q.selectedOptions=[];let V=J.bytes();if(V!==void 0)q.selectedOptions.push(V);continue}case 2:{if(K!==16)break;q.senderTimestampMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return kA.fromPartial($??{})},fromPartial($){let Q=$G();return Q.selectedOptions=$.selectedOptions?.map((Z)=>Z)||void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function QG(){return{}}var WK={encode($,Q=new H){if($.key!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??QG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.text=J.string();continue}case 3:{if(K!==26)break;q.groupingKey=J.string();continue}case 4:{if(K!==32)break;q.senderTimestampMs=J.int64Value();continue}case 5:{if(K!==42)break;q.reactionMetadataDataclassData=J.string();continue}case 6:{if(K!==48)break;q.style=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return WK.fromPartial($??{})},fromPartial($){let Q=QG();return Q.key=$.key!==void 0&&$.key!==null?B.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 JG(){return{}}var SK={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??JG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return SK.fromPartial($??{})},fromPartial($){let Q=JG();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q}};function KG(){return{}}var IK={encode($,Q=new H){return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??KG();while(J.pos<X){let K=J.uint32();switch(K>>>3){}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return IK.fromPartial($??{})},fromPartial($){return KG()}};function qG(){return{}}var TK={encode($,Q=new H){if($.text!==void 0)UQ.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=UQ.decode(J,J.uint32(),q.text);continue}case 6:{if(K!==53)break;q.textArgb=J.fixed32();continue}case 7:{if(K!==61)break;q.backgroundArgb=J.fixed32();continue}case 8:{if(K!==64)break;q.font=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return TK.fromPartial($??{})},fromPartial($){let Q=qG();return Q.text=$.text!==void 0&&$.text!==null?UQ.fromPartial($.text):void 0,Q.textArgb=$.textArgb??void 0,Q.backgroundArgb=$.backgroundArgb??void 0,Q.font=$.font??void 0,Q}};function ZG(){return{}}var yK={encode($,Q=new H){if($.sticker!==void 0)n.encode($.sticker,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ZG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.sticker=n.decode(J,J.uint32(),q.sticker);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return yK.fromPartial($??{})},fromPartial($){let Q=ZG();return Q.sticker=$.sticker!==void 0&&$.sticker!==null?n.fromPartial($.sticker):void 0,Q}};function XG(){return{}}var vK={encode($,Q=new H){if($.futureProof!==void 0)Q.uint32(8).int32($.futureProof);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??XG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.futureProof=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return vK.fromPartial($??{})},fromPartial($){let Q=XG();return Q.futureProof=$.futureProof??void 0,Q}};function YG(){return{}}var FQ={encode($,Q=new H){if($.video!==void 0)n.encode($.video,Q.uint32(10).fork()).join();if($.caption!==void 0)a.encode($.caption,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??YG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.video=n.decode(J,J.uint32(),q.video);continue}case 2:{if(K!==18)break;q.caption=a.decode(J,J.uint32(),q.caption);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return FQ.fromPartial($??{})},fromPartial($){let Q=YG();return Q.video=$.video!==void 0&&$.video!==null?n.fromPartial($.video):void 0,Q.caption=$.caption!==void 0&&$.caption!==null?a.fromPartial($.caption):void 0,Q}};function VG(){return{}}var fK={encode($,Q=new H){if($.imageMessage!==void 0)CQ.encode($.imageMessage,Q.uint32(10).fork()).join();if($.videoMessage!==void 0)FQ.encode($.videoMessage,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??VG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.imageMessage=CQ.decode(J,J.uint32(),q.imageMessage);continue}case 2:{if(K!==18)break;q.videoMessage=FQ.decode(J,J.uint32(),q.videoMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return fK.fromPartial($??{})},fromPartial($){let Q=VG();return Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?CQ.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?FQ.fromPartial($.videoMessage):void 0,Q}};function HG(){return{}}var W={encode($,Q=new H){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.participant!==void 0)Q.uint32(18).string($.participant);if($.quotedMessage!==void 0)d.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)_K.encode($.quotedAd,Q.uint32(186).fork()).join();if($.placeholderKey!==void 0)B.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)wK.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)A$.encode($.disappearingMode,Q.uint32(258).fork()).join();if($.actionLink!==void 0)o0.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)w8.encode(Z,Q.uint32(322).fork()).join();if($.utm!==void 0)oK.encode($.utm,Q.uint32(330).fork()).join();if($.forwardedNewsletterMessageInfo!==void 0)PQ.encode($.forwardedNewsletterMessageInfo,Q.uint32(346).fork()).join();if($.businessMessageForwardInfo!==void 0)pK.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)uK.encode($.dataSharingContext,Q.uint32(378).fork()).join();if($.alwaysShowAdAttribution!==void 0)Q.uint32(384).bool($.alwaysShowAdAttribution);if($.featureEligibilities!==void 0)jK.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)f8.encode($.forwardedAiBotMessageInfo,Q.uint32(450).fork()).join();if($.statusAttributionType!==void 0)Q.uint32(456).int32($.statusAttributionType);if($.urlTrackingMap!==void 0)cQ.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)W$.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)F9.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)nK.encode($.questionReplyQuotedMessage,Q.uint32(546).fork()).join();if($.statusAudienceMetadata!==void 0)bK.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)xJ.encode($.botMessageSharingInfo,Q.uint32(578).fork()).join();if($.isSpoiler!==void 0)Q.uint32(584).bool($.isSpoiler);if($.mediaDomainInfo!==void 0)Wq.encode($.mediaDomainInfo,Q.uint32(594).fork()).join();if($.partiallySelectedContent!==void 0)dK.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)hK.encode($.businessInteractionPills,Q.uint32(626).fork()).join();if($.posterStatusId!==void 0)Q.uint32(634).string($.posterStatusId);if($.instagramThreadLink!==void 0)cK.encode($.instagramThreadLink,Q.uint32(642).fork()).join();if($.aiProvenance!==void 0)B0.encode($.aiProvenance,Q.uint32(650).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??HG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.stanzaId=J.string();continue}case 2:{if(K!==18)break;q.participant=J.string();continue}case 3:{if(K!==26)break;q.quotedMessage=d.decode(J,J.uint32(),q.quotedMessage);continue}case 4:{if(K!==34)break;q.remoteJid=J.string();continue}case 15:{if(K!==122)break;if(q.mentionedJid===void 0)q.mentionedJid=[];let V=J.string();if(V!==void 0)q.mentionedJid.push(V);continue}case 18:{if(K!==146)break;q.conversionSource=J.string();continue}case 19:{if(K!==154)break;q.conversionData=J.bytes();continue}case 20:{if(K!==160)break;q.conversionDelaySeconds=J.uint32();continue}case 21:{if(K!==168)break;q.forwardingScore=J.uint32();continue}case 22:{if(K!==176)break;q.isForwarded=J.bool();continue}case 23:{if(K!==186)break;q.quotedAd=_K.decode(J,J.uint32(),q.quotedAd);continue}case 24:{if(K!==194)break;q.placeholderKey=B.decode(J,J.uint32(),q.placeholderKey);continue}case 25:{if(K!==200)break;q.expiration=J.uint32();continue}case 26:{if(K!==208)break;q.ephemeralSettingTimestamp=J.int64Value();continue}case 27:{if(K!==218)break;q.ephemeralSharedSecret=J.bytes();continue}case 28:{if(K!==226)break;q.externalAdReply=wK.decode(J,J.uint32(),q.externalAdReply);continue}case 29:{if(K!==234)break;q.entryPointConversionSource=J.string();continue}case 30:{if(K!==242)break;q.entryPointConversionApp=J.string();continue}case 31:{if(K!==248)break;q.entryPointConversionDelaySeconds=J.uint32();continue}case 32:{if(K!==258)break;q.disappearingMode=A$.decode(J,J.uint32(),q.disappearingMode);continue}case 33:{if(K!==266)break;q.actionLink=o0.decode(J,J.uint32(),q.actionLink);continue}case 34:{if(K!==274)break;q.groupSubject=J.string();continue}case 35:{if(K!==282)break;q.parentGroupJid=J.string();continue}case 37:{if(K!==298)break;q.trustBannerType=J.string();continue}case 38:{if(K!==304)break;q.trustBannerAction=J.uint32();continue}case 39:{if(K!==312)break;q.isSampled=J.bool();continue}case 40:{if(K!==322)break;if(q.groupMentions===void 0)q.groupMentions=[];let V=w8.decode(J,J.uint32());if(V!==void 0)q.groupMentions.push(V);continue}case 41:{if(K!==330)break;q.utm=oK.decode(J,J.uint32(),q.utm);continue}case 43:{if(K!==346)break;q.forwardedNewsletterMessageInfo=PQ.decode(J,J.uint32(),q.forwardedNewsletterMessageInfo);continue}case 44:{if(K!==354)break;q.businessMessageForwardInfo=pK.decode(J,J.uint32(),q.businessMessageForwardInfo);continue}case 45:{if(K!==362)break;q.smbClientCampaignId=J.string();continue}case 46:{if(K!==370)break;q.smbServerCampaignId=J.string();continue}case 47:{if(K!==378)break;q.dataSharingContext=uK.decode(J,J.uint32(),q.dataSharingContext);continue}case 48:{if(K!==384)break;q.alwaysShowAdAttribution=J.bool();continue}case 49:{if(K!==394)break;q.featureEligibilities=jK.decode(J,J.uint32(),q.featureEligibilities);continue}case 50:{if(K!==402)break;q.entryPointConversionExternalSource=J.string();continue}case 51:{if(K!==410)break;q.entryPointConversionExternalMedium=J.string();continue}case 54:{if(K!==434)break;q.ctwaSignals=J.string();continue}case 55:{if(K!==442)break;q.ctwaPayload=J.bytes();continue}case 56:{if(K!==450)break;q.forwardedAiBotMessageInfo=f8.decode(J,J.uint32(),q.forwardedAiBotMessageInfo);continue}case 57:{if(K!==456)break;q.statusAttributionType=J.int32();continue}case 58:{if(K!==466)break;q.urlTrackingMap=cQ.decode(J,J.uint32(),q.urlTrackingMap);continue}case 59:{if(K!==472)break;q.pairedMediaType=J.int32();continue}case 60:{if(K!==480)break;q.rankingVersion=J.uint32();continue}case 62:{if(K!==498)break;q.memberLabel=W$.decode(J,J.uint32(),q.memberLabel);continue}case 63:{if(K!==504)break;q.isQuestion=J.bool();continue}case 64:{if(K!==512)break;q.statusSourceType=J.int32();continue}case 65:{if(K!==522)break;if(q.statusAttributions===void 0)q.statusAttributions=[];let V=F9.decode(J,J.uint32());if(V!==void 0)q.statusAttributions.push(V);continue}case 66:{if(K!==528)break;q.isGroupStatus=J.bool();continue}case 67:{if(K!==536)break;q.forwardOrigin=J.int32();continue}case 68:{if(K!==546)break;q.questionReplyQuotedMessage=nK.decode(J,J.uint32(),q.questionReplyQuotedMessage);continue}case 69:{if(K!==554)break;q.statusAudienceMetadata=bK.decode(J,J.uint32(),q.statusAudienceMetadata);continue}case 70:{if(K!==560)break;q.nonJidMentions=J.uint32();continue}case 71:{if(K!==568)break;q.quotedType=J.int32();continue}case 72:{if(K!==578)break;q.botMessageSharingInfo=xJ.decode(J,J.uint32(),q.botMessageSharingInfo);continue}case 73:{if(K!==584)break;q.isSpoiler=J.bool();continue}case 74:{if(K!==594)break;q.mediaDomainInfo=Wq.decode(J,J.uint32(),q.mediaDomainInfo);continue}case 75:{if(K!==602)break;q.partiallySelectedContent=dK.decode(J,J.uint32(),q.partiallySelectedContent);continue}case 76:{if(K!==608)break;q.afterReadDuration=J.uint32();continue}case 77:{if(K!==616)break;q.crossAppSource=J.int32();continue}case 78:{if(K!==626)break;q.businessInteractionPills=hK.decode(J,J.uint32(),q.businessInteractionPills);continue}case 79:{if(K!==634)break;q.posterStatusId=J.string();continue}case 80:{if(K!==642)break;q.instagramThreadLink=cK.decode(J,J.uint32(),q.instagramThreadLink);continue}case 81:{if(K!==650)break;q.aiProvenance=B0.decode(J,J.uint32(),q.aiProvenance);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return W.fromPartial($??{})},fromPartial($){let Q=HG();return Q.stanzaId=$.stanzaId??void 0,Q.participant=$.participant??void 0,Q.quotedMessage=$.quotedMessage!==void 0&&$.quotedMessage!==null?d.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?_K.fromPartial($.quotedAd):void 0,Q.placeholderKey=$.placeholderKey!==void 0&&$.placeholderKey!==null?B.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?wK.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?A$.fromPartial($.disappearingMode):void 0,Q.actionLink=$.actionLink!==void 0&&$.actionLink!==null?o0.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)=>w8.fromPartial(Z))||void 0,Q.utm=$.utm!==void 0&&$.utm!==null?oK.fromPartial($.utm):void 0,Q.forwardedNewsletterMessageInfo=$.forwardedNewsletterMessageInfo!==void 0&&$.forwardedNewsletterMessageInfo!==null?PQ.fromPartial($.forwardedNewsletterMessageInfo):void 0,Q.businessMessageForwardInfo=$.businessMessageForwardInfo!==void 0&&$.businessMessageForwardInfo!==null?pK.fromPartial($.businessMessageForwardInfo):void 0,Q.smbClientCampaignId=$.smbClientCampaignId??void 0,Q.smbServerCampaignId=$.smbServerCampaignId??void 0,Q.dataSharingContext=$.dataSharingContext!==void 0&&$.dataSharingContext!==null?uK.fromPartial($.dataSharingContext):void 0,Q.alwaysShowAdAttribution=$.alwaysShowAdAttribution??void 0,Q.featureEligibilities=$.featureEligibilities!==void 0&&$.featureEligibilities!==null?jK.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?f8.fromPartial($.forwardedAiBotMessageInfo):void 0,Q.statusAttributionType=$.statusAttributionType??void 0,Q.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?cQ.fromPartial($.urlTrackingMap):void 0,Q.pairedMediaType=$.pairedMediaType??void 0,Q.rankingVersion=$.rankingVersion??void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?W$.fromPartial($.memberLabel):void 0,Q.isQuestion=$.isQuestion??void 0,Q.statusSourceType=$.statusSourceType??void 0,Q.statusAttributions=$.statusAttributions?.map((Z)=>F9.fromPartial(Z))||void 0,Q.isGroupStatus=$.isGroupStatus??void 0,Q.forwardOrigin=$.forwardOrigin??void 0,Q.questionReplyQuotedMessage=$.questionReplyQuotedMessage!==void 0&&$.questionReplyQuotedMessage!==null?nK.fromPartial($.questionReplyQuotedMessage):void 0,Q.statusAudienceMetadata=$.statusAudienceMetadata!==void 0&&$.statusAudienceMetadata!==null?bK.fromPartial($.statusAudienceMetadata):void 0,Q.nonJidMentions=$.nonJidMentions??void 0,Q.quotedType=$.quotedType??void 0,Q.botMessageSharingInfo=$.botMessageSharingInfo!==void 0&&$.botMessageSharingInfo!==null?xJ.fromPartial($.botMessageSharingInfo):void 0,Q.isSpoiler=$.isSpoiler??void 0,Q.mediaDomainInfo=$.mediaDomainInfo!==void 0&&$.mediaDomainInfo!==null?Wq.fromPartial($.mediaDomainInfo):void 0,Q.partiallySelectedContent=$.partiallySelectedContent!==void 0&&$.partiallySelectedContent!==null?dK.fromPartial($.partiallySelectedContent):void 0,Q.afterReadDuration=$.afterReadDuration??void 0,Q.crossAppSource=$.crossAppSource??void 0,Q.businessInteractionPills=$.businessInteractionPills!==void 0&&$.businessInteractionPills!==null?hK.fromPartial($.businessInteractionPills):void 0,Q.posterStatusId=$.posterStatusId??void 0,Q.instagramThreadLink=$.instagramThreadLink!==void 0&&$.instagramThreadLink!==null?cK.fromPartial($.instagramThreadLink):void 0,Q.aiProvenance=$.aiProvenance!==void 0&&$.aiProvenance!==null?B0.fromPartial($.aiProvenance):void 0,Q}};function zG(){return{}}var _K={encode($,Q=new H){if($.advertiserName!==void 0)Q.uint32(10).string($.advertiserName);if($.mediaType!==void 0)Q.uint32(16).int32($.mediaType);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.caption!==void 0)Q.uint32(138).string($.caption);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.advertiserName=J.string();continue}case 2:{if(K!==16)break;q.mediaType=J.int32();continue}case 16:{if(K!==130)break;q.jpegThumbnail=J.bytes();continue}case 17:{if(K!==138)break;q.caption=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _K.fromPartial($??{})},fromPartial($){let Q=zG();return Q.advertiserName=$.advertiserName??void 0,Q.mediaType=$.mediaType??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q}};function GG(){return{}}var hK={encode($,Q=new H){if($.businessJid!==void 0)Q.uint32(10).string($.businessJid);if($.pills!==void 0&&$.pills.length!==0)for(let Z of $.pills)LQ.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)YQ.encode($.signatureEnvelope,Q.uint32(42).fork()).join();if($.unauthenticatedBusinessMetadata!==void 0)lK.encode($.unauthenticatedBusinessMetadata,Q.uint32(50).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??GG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.businessJid=J.string();continue}case 2:{if(K!==18)break;if(q.pills===void 0)q.pills=[];let V=LQ.decode(J,J.uint32());if(V!==void 0)q.pills.push(V);continue}case 3:{if(K!==24)break;q.entryPoint=J.int32();continue}case 4:{if(K!==34)break;q.signedPayload=J.bytes();continue}case 5:{if(K!==42)break;q.signatureEnvelope=YQ.decode(J,J.uint32(),q.signatureEnvelope);continue}case 6:{if(K!==50)break;q.unauthenticatedBusinessMetadata=lK.decode(J,J.uint32(),q.unauthenticatedBusinessMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return hK.fromPartial($??{})},fromPartial($){let Q=GG();return Q.businessJid=$.businessJid??void 0,Q.pills=$.pills?.map((Z)=>LQ.fromPartial(Z))||void 0,Q.entryPoint=$.entryPoint??void 0,Q.signedPayload=$.signedPayload??void 0,Q.signatureEnvelope=$.signatureEnvelope!==void 0&&$.signatureEnvelope!==null?YQ.fromPartial($.signatureEnvelope):void 0,Q.unauthenticatedBusinessMetadata=$.unauthenticatedBusinessMetadata!==void 0&&$.unauthenticatedBusinessMetadata!==null?lK.fromPartial($.unauthenticatedBusinessMetadata):void 0,Q}};function UG(){return{}}var LQ={encode($,Q=new H){if($.pillType!==void 0)Q.uint32(8).int32($.pillType);if($.actionUrl!==void 0)Q.uint32(18).string($.actionUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??UG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.pillType=J.int32();continue}case 2:{if(K!==18)break;q.actionUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return LQ.fromPartial($??{})},fromPartial($){let Q=UG();return Q.pillType=$.pillType??void 0,Q.actionUrl=$.actionUrl??void 0,Q}};function CG(){return{}}var xA={encode($,Q=new H){if($.verifiedName!==void 0)Q.uint32(10).string($.verifiedName);if($.pills!==void 0&&$.pills.length!==0)for(let Z of $.pills)LQ.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??CG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.verifiedName=J.string();continue}case 2:{if(K!==18)break;if(q.pills===void 0)q.pills=[];let V=LQ.decode(J,J.uint32());if(V!==void 0)q.pills.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return xA.fromPartial($??{})},fromPartial($){let Q=CG();return Q.verifiedName=$.verifiedName??void 0,Q.pills=$.pills?.map((Z)=>LQ.fromPartial(Z))||void 0,Q}};function DG(){return{}}var lK={encode($,Q=new H){if($.businessName!==void 0)Q.uint32(10).string($.businessName);if($.businessCategory!==void 0)Q.uint32(18).string($.businessCategory);if($.businessIsOpen!==void 0)Q.uint32(24).bool($.businessIsOpen);if($.businessIsOpenSnapshotMs!==void 0)Q.uint32(32).int64($.businessIsOpenSnapshotMs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??DG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.businessName=J.string();continue}case 2:{if(K!==18)break;q.businessCategory=J.string();continue}case 3:{if(K!==24)break;q.businessIsOpen=J.bool();continue}case 4:{if(K!==32)break;q.businessIsOpenSnapshotMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return lK.fromPartial($??{})},fromPartial($){let Q=DG();return Q.businessName=$.businessName??void 0,Q.businessCategory=$.businessCategory??void 0,Q.businessIsOpen=$.businessIsOpen??void 0,Q.businessIsOpenSnapshotMs=$.businessIsOpenSnapshotMs??void 0,Q}};function FG(){return{}}var pK={encode($,Q=new H){if($.businessOwnerJid!==void 0)Q.uint32(10).string($.businessOwnerJid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??FG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.businessOwnerJid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return pK.fromPartial($??{})},fromPartial($){let Q=FG();return Q.businessOwnerJid=$.businessOwnerJid??void 0,Q}};function LG(){return{}}var uK={encode($,Q=new H){if($.showMmDisclosure!==void 0)Q.uint32(8).bool($.showMmDisclosure);if($.encryptedSignalTokenConsented!==void 0)Q.uint32(18).string($.encryptedSignalTokenConsented);if($.parameters!==void 0&&$.parameters.length!==0)for(let Z of $.parameters)ZQ.encode(Z,Q.uint32(26).fork()).join();if($.dataSharingFlags!==void 0)Q.uint32(32).int32($.dataSharingFlags);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??LG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.showMmDisclosure=J.bool();continue}case 2:{if(K!==18)break;q.encryptedSignalTokenConsented=J.string();continue}case 3:{if(K!==26)break;if(q.parameters===void 0)q.parameters=[];let V=ZQ.decode(J,J.uint32());if(V!==void 0)q.parameters.push(V);continue}case 4:{if(K!==32)break;q.dataSharingFlags=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return uK.fromPartial($??{})},fromPartial($){let Q=LG();return Q.showMmDisclosure=$.showMmDisclosure??void 0,Q.encryptedSignalTokenConsented=$.encryptedSignalTokenConsented??void 0,Q.parameters=$.parameters?.map((Z)=>ZQ.fromPartial(Z))||void 0,Q.dataSharingFlags=$.dataSharingFlags??void 0,Q}};function PG(){return{}}var ZQ={encode($,Q=new H){if($.key!==void 0)Q.uint32(10).string($.key);if($.stringData!==void 0)Q.uint32(18).string($.stringData);if($.intData!==void 0)Q.uint32(24).int64($.intData);if($.floatData!==void 0)Q.uint32(37).float($.floatData);if($.contents!==void 0)ZQ.encode($.contents,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??PG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=J.string();continue}case 2:{if(K!==18)break;q.stringData=J.string();continue}case 3:{if(K!==24)break;q.intData=J.int64Value();continue}case 4:{if(K!==37)break;q.floatData=J.float();continue}case 5:{if(K!==42)break;q.contents=ZQ.decode(J,J.uint32(),q.contents);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return ZQ.fromPartial($??{})},fromPartial($){let Q=PG();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?ZQ.fromPartial($.contents):void 0,Q}};function kG(){return{}}var wK={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.body!==void 0)Q.uint32(18).string($.body);if($.mediaType!==void 0)Q.uint32(24).int32($.mediaType);if($.thumbnailUrl!==void 0)Q.uint32(34).string($.thumbnailUrl);if($.mediaUrl!==void 0)Q.uint32(42).string($.mediaUrl);if($.thumbnail!==void 0)Q.uint32(50).bytes($.thumbnail);if($.sourceType!==void 0)Q.uint32(58).string($.sourceType);if($.sourceId!==void 0)Q.uint32(66).string($.sourceId);if($.sourceUrl!==void 0)Q.uint32(74).string($.sourceUrl);if($.containsAutoReply!==void 0)Q.uint32(80).bool($.containsAutoReply);if($.renderLargerThumbnail!==void 0)Q.uint32(88).bool($.renderLargerThumbnail);if($.showAdAttribution!==void 0)Q.uint32(96).bool($.showAdAttribution);if($.ctwaClid!==void 0)Q.uint32(106).string($.ctwaClid);if($.ref!==void 0)Q.uint32(114).string($.ref);if($.clickToWhatsappCall!==void 0)Q.uint32(120).bool($.clickToWhatsappCall);if($.adContextPreviewDismissed!==void 0)Q.uint32(128).bool($.adContextPreviewDismissed);if($.sourceApp!==void 0)Q.uint32(138).string($.sourceApp);if($.automatedGreetingMessageShown!==void 0)Q.uint32(144).bool($.automatedGreetingMessageShown);if($.greetingMessageBody!==void 0)Q.uint32(154).string($.greetingMessageBody);if($.ctaPayload!==void 0)Q.uint32(162).string($.ctaPayload);if($.disableNudge!==void 0)Q.uint32(168).bool($.disableNudge);if($.originalImageUrl!==void 0)Q.uint32(178).string($.originalImageUrl);if($.automatedGreetingMessageCtaType!==void 0)Q.uint32(186).string($.automatedGreetingMessageCtaType);if($.wtwaAdFormat!==void 0)Q.uint32(192).bool($.wtwaAdFormat);if($.adType!==void 0)Q.uint32(200).int32($.adType);if($.wtwaWebsiteUrl!==void 0)Q.uint32(210).string($.wtwaWebsiteUrl);if($.adPreviewUrl!==void 0)Q.uint32(218).string($.adPreviewUrl);if($.containsCtwaFlowsAutoReply!==void 0)Q.uint32(224).bool($.containsCtwaFlowsAutoReply);if($.agmThumbnailStrategy!==void 0)Q.uint32(232).int32($.agmThumbnailStrategy);if($.agmTitleStrategy!==void 0)Q.uint32(240).int32($.agmTitleStrategy);if($.agmSubtitleStrategy!==void 0)Q.uint32(248).int32($.agmSubtitleStrategy);if($.agmHeaderInteractionStrategy!==void 0)Q.uint32(256).int32($.agmHeaderInteractionStrategy);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==18)break;q.body=J.string();continue}case 3:{if(K!==24)break;q.mediaType=J.int32();continue}case 4:{if(K!==34)break;q.thumbnailUrl=J.string();continue}case 5:{if(K!==42)break;q.mediaUrl=J.string();continue}case 6:{if(K!==50)break;q.thumbnail=J.bytes();continue}case 7:{if(K!==58)break;q.sourceType=J.string();continue}case 8:{if(K!==66)break;q.sourceId=J.string();continue}case 9:{if(K!==74)break;q.sourceUrl=J.string();continue}case 10:{if(K!==80)break;q.containsAutoReply=J.bool();continue}case 11:{if(K!==88)break;q.renderLargerThumbnail=J.bool();continue}case 12:{if(K!==96)break;q.showAdAttribution=J.bool();continue}case 13:{if(K!==106)break;q.ctwaClid=J.string();continue}case 14:{if(K!==114)break;q.ref=J.string();continue}case 15:{if(K!==120)break;q.clickToWhatsappCall=J.bool();continue}case 16:{if(K!==128)break;q.adContextPreviewDismissed=J.bool();continue}case 17:{if(K!==138)break;q.sourceApp=J.string();continue}case 18:{if(K!==144)break;q.automatedGreetingMessageShown=J.bool();continue}case 19:{if(K!==154)break;q.greetingMessageBody=J.string();continue}case 20:{if(K!==162)break;q.ctaPayload=J.string();continue}case 21:{if(K!==168)break;q.disableNudge=J.bool();continue}case 22:{if(K!==178)break;q.originalImageUrl=J.string();continue}case 23:{if(K!==186)break;q.automatedGreetingMessageCtaType=J.string();continue}case 24:{if(K!==192)break;q.wtwaAdFormat=J.bool();continue}case 25:{if(K!==200)break;q.adType=J.int32();continue}case 26:{if(K!==210)break;q.wtwaWebsiteUrl=J.string();continue}case 27:{if(K!==218)break;q.adPreviewUrl=J.string();continue}case 28:{if(K!==224)break;q.containsCtwaFlowsAutoReply=J.bool();continue}case 29:{if(K!==232)break;q.agmThumbnailStrategy=J.int32();continue}case 30:{if(K!==240)break;q.agmTitleStrategy=J.int32();continue}case 31:{if(K!==248)break;q.agmSubtitleStrategy=J.int32();continue}case 32:{if(K!==256)break;q.agmHeaderInteractionStrategy=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return wK.fromPartial($??{})},fromPartial($){let Q=kG();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 xG(){return{}}var jK={encode($,Q=new H){if($.cannotBeReactedTo!==void 0)Q.uint32(8).bool($.cannotBeReactedTo);if($.cannotBeRanked!==void 0)Q.uint32(16).bool($.cannotBeRanked);if($.canRequestFeedback!==void 0)Q.uint32(24).bool($.canRequestFeedback);if($.canBeReshared!==void 0)Q.uint32(32).bool($.canBeReshared);if($.canReceiveMultiReact!==void 0)Q.uint32(40).bool($.canReceiveMultiReact);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.cannotBeReactedTo=J.bool();continue}case 2:{if(K!==16)break;q.cannotBeRanked=J.bool();continue}case 3:{if(K!==24)break;q.canRequestFeedback=J.bool();continue}case 4:{if(K!==32)break;q.canBeReshared=J.bool();continue}case 5:{if(K!==40)break;q.canReceiveMultiReact=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return jK.fromPartial($??{})},fromPartial($){let Q=xG();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 BG(){return{}}var PQ={encode($,Q=new H){if($.newsletterJid!==void 0)Q.uint32(10).string($.newsletterJid);if($.serverMessageId!==void 0)Q.uint32(16).int32($.serverMessageId);if($.newsletterName!==void 0)Q.uint32(26).string($.newsletterName);if($.contentType!==void 0)Q.uint32(32).int32($.contentType);if($.accessibilityText!==void 0)Q.uint32(42).string($.accessibilityText);if($.profileName!==void 0)Q.uint32(50).string($.profileName);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??BG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.newsletterJid=J.string();continue}case 2:{if(K!==16)break;q.serverMessageId=J.int32();continue}case 3:{if(K!==26)break;q.newsletterName=J.string();continue}case 4:{if(K!==32)break;q.contentType=J.int32();continue}case 5:{if(K!==42)break;q.accessibilityText=J.string();continue}case 6:{if(K!==50)break;q.profileName=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return PQ.fromPartial($??{})},fromPartial($){let Q=BG();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 NG(){return{}}var cK={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??NG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return cK.fromPartial($??{})},fromPartial($){let Q=NG();return Q.url=$.url??void 0,Q}};function OG(){return{}}var dK={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??OG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return dK.fromPartial($??{})},fromPartial($){let Q=OG();return Q.text=$.text??void 0,Q}};function RG(){return{}}var nK={encode($,Q=new H){if($.serverQuestionId!==void 0)Q.uint32(8).int32($.serverQuestionId);if($.quotedQuestion!==void 0)d.encode($.quotedQuestion,Q.uint32(18).fork()).join();if($.quotedResponse!==void 0)d.encode($.quotedResponse,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??RG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.serverQuestionId=J.int32();continue}case 2:{if(K!==18)break;q.quotedQuestion=d.decode(J,J.uint32(),q.quotedQuestion);continue}case 3:{if(K!==26)break;q.quotedResponse=d.decode(J,J.uint32(),q.quotedResponse);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return nK.fromPartial($??{})},fromPartial($){let Q=RG();return Q.serverQuestionId=$.serverQuestionId??void 0,Q.quotedQuestion=$.quotedQuestion!==void 0&&$.quotedQuestion!==null?d.fromPartial($.quotedQuestion):void 0,Q.quotedResponse=$.quotedResponse!==void 0&&$.quotedResponse!==null?d.fromPartial($.quotedResponse):void 0,Q}};function AG(){return{}}var bK={encode($,Q=new H){if($.audienceType!==void 0)Q.uint32(8).int32($.audienceType);if($.listName!==void 0)Q.uint32(18).string($.listName);if($.listEmoji!==void 0)Q.uint32(26).string($.listEmoji);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??AG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.audienceType=J.int32();continue}case 2:{if(K!==18)break;q.listName=J.string();continue}case 3:{if(K!==26)break;q.listEmoji=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return bK.fromPartial($??{})},fromPartial($){let Q=AG();return Q.audienceType=$.audienceType??void 0,Q.listName=$.listName??void 0,Q.listEmoji=$.listEmoji??void 0,Q}};function EG(){return{}}var oK={encode($,Q=new H){if($.utmSource!==void 0)Q.uint32(10).string($.utmSource);if($.utmCampaign!==void 0)Q.uint32(18).string($.utmCampaign);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??EG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.utmSource=J.string();continue}case 2:{if(K!==18)break;q.utmCampaign=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return oK.fromPartial($??{})},fromPartial($){let Q=EG();return Q.utmSource=$.utmSource??void 0,Q.utmCampaign=$.utmCampaign??void 0,Q}};function MG(){return{}}var iK={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)m8.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)A$.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)j8.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)O$.encode($.wallpaper,Q.uint32(210).fork()).join();if($.mediaVisibility!==void 0)Q.uint32(216).int32($.mediaVisibility);if($.tcTokenSenderTimestamp!==void 0)Q.uint32(224).uint64($.tcTokenSenderTimestamp);if($.suspended!==void 0)Q.uint32(232).bool($.suspended);if($.terminated!==void 0)Q.uint32(240).bool($.terminated);if($.createdAt!==void 0)Q.uint32(248).uint64($.createdAt);if($.createdBy!==void 0)Q.uint32(258).string($.createdBy);if($.description!==void 0)Q.uint32(266).string($.description);if($.support!==void 0)Q.uint32(272).bool($.support);if($.isParentGroup!==void 0)Q.uint32(280).bool($.isParentGroup);if($.parentGroupId!==void 0)Q.uint32(298).string($.parentGroupId);if($.isDefaultSubgroup!==void 0)Q.uint32(288).bool($.isDefaultSubgroup);if($.displayName!==void 0)Q.uint32(306).string($.displayName);if($.pnJid!==void 0)Q.uint32(314).string($.pnJid);if($.shareOwnPn!==void 0)Q.uint32(320).bool($.shareOwnPn);if($.pnhDuplicateLidThread!==void 0)Q.uint32(328).bool($.pnhDuplicateLidThread);if($.lidJid!==void 0)Q.uint32(338).string($.lidJid);if($.username!==void 0)Q.uint32(346).string($.username);if($.lidOriginType!==void 0)Q.uint32(354).string($.lidOriginType);if($.commentsCount!==void 0)Q.uint32(360).uint32($.commentsCount);if($.locked!==void 0)Q.uint32(368).bool($.locked);if($.systemMessageToInsert!==void 0)Q.uint32(376).int32($.systemMessageToInsert);if($.capiCreatedGroup!==void 0)Q.uint32(384).bool($.capiCreatedGroup);if($.accountLid!==void 0)Q.uint32(394).string($.accountLid);if($.limitSharing!==void 0)Q.uint32(400).bool($.limitSharing);if($.limitSharingSettingTimestamp!==void 0)Q.uint32(408).int64($.limitSharingSettingTimestamp);if($.limitSharingTrigger!==void 0)Q.uint32(416).int32($.limitSharingTrigger);if($.limitSharingInitiatedByMe!==void 0)Q.uint32(424).bool($.limitSharingInitiatedByMe);if($.maibaAiThreadEnabled!==void 0)Q.uint32(432).bool($.maibaAiThreadEnabled);if($.isMarketingMessageThread!==void 0)Q.uint32(440).bool($.isMarketingMessageThread);if($.isSenderNewAccount!==void 0)Q.uint32(448).bool($.isSenderNewAccount);if($.afterReadDuration!==void 0)Q.uint32(456).uint32($.afterReadDuration);if($.isSenderSuspicious!==void 0)Q.uint32(464).bool($.isSenderSuspicious);if($.appealStatus!==void 0)Q.uint32(472).int32($.appealStatus);if($.appealUpdateTime!==void 0)Q.uint32(480).uint64($.appealUpdateTime);if($.authAgentParentCompanyName!==void 0)Q.uint32(490).string($.authAgentParentCompanyName);if($.authAgentObaPhoneNumber!==void 0)Q.uint32(498).string($.authAgentObaPhoneNumber);if($.identityVerification!==void 0)s8.encode($.identityVerification,Q.uint32(506).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??MG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.id=J.string();continue}case 2:{if(K!==18)break;if(q.messages===void 0)q.messages=[];let V=m8.decode(J,J.uint32());if(V!==void 0)q.messages.push(V);continue}case 3:{if(K!==26)break;q.newJid=J.string();continue}case 4:{if(K!==34)break;q.oldJid=J.string();continue}case 5:{if(K!==40)break;q.lastMsgTimestamp=J.uint64Value();continue}case 6:{if(K!==48)break;q.unreadCount=J.uint32();continue}case 7:{if(K!==56)break;q.readOnly=J.bool();continue}case 8:{if(K!==64)break;q.endOfHistoryTransfer=J.bool();continue}case 9:{if(K!==72)break;q.ephemeralExpiration=J.uint32();continue}case 10:{if(K!==80)break;q.ephemeralSettingTimestamp=J.int64Value();continue}case 11:{if(K!==88)break;q.endOfHistoryTransferType=J.int32();continue}case 12:{if(K!==96)break;q.conversationTimestamp=J.uint64Value();continue}case 13:{if(K!==106)break;q.name=J.string();continue}case 14:{if(K!==114)break;q.pHash=J.string();continue}case 15:{if(K!==120)break;q.notSpam=J.bool();continue}case 16:{if(K!==128)break;q.archived=J.bool();continue}case 17:{if(K!==138)break;q.disappearingMode=A$.decode(J,J.uint32(),q.disappearingMode);continue}case 18:{if(K!==144)break;q.unreadMentionCount=J.uint32();continue}case 19:{if(K!==152)break;q.markedAsUnread=J.bool();continue}case 20:{if(K!==162)break;if(q.participant===void 0)q.participant=[];let V=j8.decode(J,J.uint32());if(V!==void 0)q.participant.push(V);continue}case 21:{if(K!==170)break;q.tcToken=J.bytes();continue}case 22:{if(K!==176)break;q.tcTokenTimestamp=J.uint64Value();continue}case 23:{if(K!==186)break;q.contactPrimaryIdentityKey=J.bytes();continue}case 24:{if(K!==192)break;q.pinned=J.uint32();continue}case 25:{if(K!==200)break;q.muteEndTime=J.uint64Value();continue}case 26:{if(K!==210)break;q.wallpaper=O$.decode(J,J.uint32(),q.wallpaper);continue}case 27:{if(K!==216)break;q.mediaVisibility=J.int32();continue}case 28:{if(K!==224)break;q.tcTokenSenderTimestamp=J.uint64Value();continue}case 29:{if(K!==232)break;q.suspended=J.bool();continue}case 30:{if(K!==240)break;q.terminated=J.bool();continue}case 31:{if(K!==248)break;q.createdAt=J.uint64Value();continue}case 32:{if(K!==258)break;q.createdBy=J.string();continue}case 33:{if(K!==266)break;q.description=J.string();continue}case 34:{if(K!==272)break;q.support=J.bool();continue}case 35:{if(K!==280)break;q.isParentGroup=J.bool();continue}case 37:{if(K!==298)break;q.parentGroupId=J.string();continue}case 36:{if(K!==288)break;q.isDefaultSubgroup=J.bool();continue}case 38:{if(K!==306)break;q.displayName=J.string();continue}case 39:{if(K!==314)break;q.pnJid=J.string();continue}case 40:{if(K!==320)break;q.shareOwnPn=J.bool();continue}case 41:{if(K!==328)break;q.pnhDuplicateLidThread=J.bool();continue}case 42:{if(K!==338)break;q.lidJid=J.string();continue}case 43:{if(K!==346)break;q.username=J.string();continue}case 44:{if(K!==354)break;q.lidOriginType=J.string();continue}case 45:{if(K!==360)break;q.commentsCount=J.uint32();continue}case 46:{if(K!==368)break;q.locked=J.bool();continue}case 47:{if(K!==376)break;q.systemMessageToInsert=J.int32();continue}case 48:{if(K!==384)break;q.capiCreatedGroup=J.bool();continue}case 49:{if(K!==394)break;q.accountLid=J.string();continue}case 50:{if(K!==400)break;q.limitSharing=J.bool();continue}case 51:{if(K!==408)break;q.limitSharingSettingTimestamp=J.int64Value();continue}case 52:{if(K!==416)break;q.limitSharingTrigger=J.int32();continue}case 53:{if(K!==424)break;q.limitSharingInitiatedByMe=J.bool();continue}case 54:{if(K!==432)break;q.maibaAiThreadEnabled=J.bool();continue}case 55:{if(K!==440)break;q.isMarketingMessageThread=J.bool();continue}case 56:{if(K!==448)break;q.isSenderNewAccount=J.bool();continue}case 57:{if(K!==456)break;q.afterReadDuration=J.uint32();continue}case 58:{if(K!==464)break;q.isSenderSuspicious=J.bool();continue}case 59:{if(K!==472)break;q.appealStatus=J.int32();continue}case 60:{if(K!==480)break;q.appealUpdateTime=J.uint64Value();continue}case 61:{if(K!==490)break;q.authAgentParentCompanyName=J.string();continue}case 62:{if(K!==498)break;q.authAgentObaPhoneNumber=J.string();continue}case 63:{if(K!==506)break;q.identityVerification=s8.decode(J,J.uint32(),q.identityVerification);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return iK.fromPartial($??{})},fromPartial($){let Q=MG();return Q.id=$.id??void 0,Q.messages=$.messages?.map((Z)=>m8.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?A$.fromPartial($.disappearingMode):void 0,Q.unreadMentionCount=$.unreadMentionCount??void 0,Q.markedAsUnread=$.markedAsUnread??void 0,Q.participant=$.participant?.map((Z)=>j8.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?O$.fromPartial($.wallpaper):void 0,Q.mediaVisibility=$.mediaVisibility??void 0,Q.tcTokenSenderTimestamp=$.tcTokenSenderTimestamp??void 0,Q.suspended=$.suspended??void 0,Q.terminated=$.terminated??void 0,Q.createdAt=$.createdAt??void 0,Q.createdBy=$.createdBy??void 0,Q.description=$.description??void 0,Q.support=$.support??void 0,Q.isParentGroup=$.isParentGroup??void 0,Q.parentGroupId=$.parentGroupId??void 0,Q.isDefaultSubgroup=$.isDefaultSubgroup??void 0,Q.displayName=$.displayName??void 0,Q.pnJid=$.pnJid??void 0,Q.shareOwnPn=$.shareOwnPn??void 0,Q.pnhDuplicateLidThread=$.pnhDuplicateLidThread??void 0,Q.lidJid=$.lidJid??void 0,Q.username=$.username??void 0,Q.lidOriginType=$.lidOriginType??void 0,Q.commentsCount=$.commentsCount??void 0,Q.locked=$.locked??void 0,Q.systemMessageToInsert=$.systemMessageToInsert??void 0,Q.capiCreatedGroup=$.capiCreatedGroup??void 0,Q.accountLid=$.accountLid??void 0,Q.limitSharing=$.limitSharing??void 0,Q.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,Q.limitSharingTrigger=$.limitSharingTrigger??void 0,Q.limitSharingInitiatedByMe=$.limitSharingInitiatedByMe??void 0,Q.maibaAiThreadEnabled=$.maibaAiThreadEnabled??void 0,Q.isMarketingMessageThread=$.isMarketingMessageThread??void 0,Q.isSenderNewAccount=$.isSenderNewAccount??void 0,Q.afterReadDuration=$.afterReadDuration??void 0,Q.isSenderSuspicious=$.isSenderSuspicious??void 0,Q.appealStatus=$.appealStatus??void 0,Q.appealUpdateTime=$.appealUpdateTime??void 0,Q.authAgentParentCompanyName=$.authAgentParentCompanyName??void 0,Q.authAgentObaPhoneNumber=$.authAgentObaPhoneNumber??void 0,Q.identityVerification=$.identityVerification!==void 0&&$.identityVerification!==null?s8.fromPartial($.identityVerification):void 0,Q}};function WG(){return{}}var mK={encode($,Q=new H){if($.recoveryCode!==void 0)Q.uint32(10).string($.recoveryCode);if($.userId!==void 0)Q.uint32(16).uint64($.userId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??WG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.recoveryCode=J.string();continue}case 2:{if(K!==16)break;q.userId=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return mK.fromPartial($??{})},fromPartial($){let Q=WG();return Q.recoveryCode=$.recoveryCode??void 0,Q.userId=$.userId??void 0,Q}};function SG(){return{}}var BA={encode($,Q=new H){if($.device!==void 0)x8.encode($.device,Q.uint32(10).fork()).join();if($.virtualDevice!==void 0)B5.encode($.virtualDevice,Q.uint32(18).fork()).join();if($.epoch0!==void 0)I8.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??SG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.device=x8.decode(J,J.uint32(),q.device);continue}case 2:{if(K!==18)break;q.virtualDevice=B5.decode(J,J.uint32(),q.virtualDevice);continue}case 3:{if(K!==26)break;q.epoch0=I8.decode(J,J.uint32(),q.epoch0);continue}case 4:{if(K!==34)break;q.mailboxRootKey=J.bytes();continue}case 5:{if(K!==42)break;q.error=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return BA.fromPartial($??{})},fromPartial($){let Q=SG();return Q.device=$.device!==void 0&&$.device!==null?x8.fromPartial($.device):void 0,Q.virtualDevice=$.virtualDevice!==void 0&&$.virtualDevice!==null?B5.fromPartial($.virtualDevice):void 0,Q.epoch0=$.epoch0!==void 0&&$.epoch0!==null?I8.fromPartial($.epoch0):void 0,Q.mailboxRootKey=$.mailboxRootKey??void 0,Q.error=$.error??void 0,Q}};function IG(){return{}}var gK={encode($,Q=new H){if($.mekDistribution!==void 0)rK.encode($.mekDistribution,Q.uint32(10).fork()).join();if($.mekId!==void 0)Q.uint32(18).bytes($.mekId);if($.rosterHash!==void 0)Q.uint32(26).bytes($.rosterHash);if($.recipientEncSk!==void 0)Q.uint32(34).bytes($.recipientEncSk);if($.version!==void 0)Q.uint32(40).uint64($.version);if($.conf!==void 0)i.encode($.conf,Q.uint32(50).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??IG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mekDistribution=rK.decode(J,J.uint32(),q.mekDistribution);continue}case 2:{if(K!==18)break;q.mekId=J.bytes();continue}case 3:{if(K!==26)break;q.rosterHash=J.bytes();continue}case 4:{if(K!==34)break;q.recipientEncSk=J.bytes();continue}case 5:{if(K!==40)break;q.version=J.uint64Value();continue}case 6:{if(K!==50)break;q.conf=i.decode(J,J.uint32(),q.conf);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return gK.fromPartial($??{})},fromPartial($){let Q=IG();return Q.mekDistribution=$.mekDistribution!==void 0&&$.mekDistribution!==null?rK.fromPartial($.mekDistribution):void 0,Q.mekId=$.mekId??void 0,Q.rosterHash=$.rosterHash??void 0,Q.recipientEncSk=$.recipientEncSk??void 0,Q.version=$.version??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function TG(){return{}}var rK={encode($,Q=new H){if($.encryptedMek!==void 0)Q.uint32(10).bytes($.encryptedMek);if($.ephemeralEncryptionPk!==void 0)Q.uint32(18).bytes($.ephemeralEncryptionPk);if($.signingPk!==void 0)Q.uint32(26).bytes($.signingPk);if($.signature!==void 0)Q.uint32(34).bytes($.signature);if($.recipientEpochHead!==void 0)Q.uint32(42).bytes($.recipientEpochHead);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??TG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedMek=J.bytes();continue}case 2:{if(K!==18)break;q.ephemeralEncryptionPk=J.bytes();continue}case 3:{if(K!==26)break;q.signingPk=J.bytes();continue}case 4:{if(K!==34)break;q.signature=J.bytes();continue}case 5:{if(K!==42)break;q.recipientEpochHead=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return rK.fromPartial($??{})},fromPartial($){let Q=TG();return Q.encryptedMek=$.encryptedMek??void 0,Q.ephemeralEncryptionPk=$.ephemeralEncryptionPk??void 0,Q.signingPk=$.signingPk??void 0,Q.signature=$.signature??void 0,Q.recipientEpochHead=$.recipientEpochHead??void 0,Q}};function yG(){return{}}var NA={encode($,Q=new H){if($.success!==void 0)tK.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=tK.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return NA.fromPartial($??{})},fromPartial($){let Q=yG();return Q.success=$.success!==void 0&&$.success!==null?tK.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function vG(){return{}}var tK={encode($,Q=new H){if($.mek!==void 0)Q.uint32(10).bytes($.mek);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mek=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return tK.fromPartial($??{})},fromPartial($){let Q=vG();return Q.mek=$.mek??void 0,Q}};function fG(){return{}}var aK={encode($,Q=new H){if($.toMailboxSk!==void 0)Q.uint32(10).bytes($.toMailboxSk);if($.fromPk!==void 0)Q.uint32(18).bytes($.fromPk);if($.mekId!==void 0)Q.uint32(26).bytes($.mekId);if($.senderEpochHead!==void 0)Q.uint32(34).bytes($.senderEpochHead);if($.rosterHash!==void 0)Q.uint32(42).bytes($.rosterHash);if($.ciphertext!==void 0)Q.uint32(50).bytes($.ciphertext);if($.toEpochHead!==void 0)Q.uint32(58).bytes($.toEpochHead);if($.mekEncryptionVersion!==void 0)Q.uint32(64).int32($.mekEncryptionVersion);if($.conf!==void 0)i.encode($.conf,Q.uint32(74).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.toMailboxSk=J.bytes();continue}case 2:{if(K!==18)break;q.fromPk=J.bytes();continue}case 3:{if(K!==26)break;q.mekId=J.bytes();continue}case 4:{if(K!==34)break;q.senderEpochHead=J.bytes();continue}case 5:{if(K!==42)break;q.rosterHash=J.bytes();continue}case 6:{if(K!==50)break;q.ciphertext=J.bytes();continue}case 7:{if(K!==58)break;q.toEpochHead=J.bytes();continue}case 8:{if(K!==64)break;q.mekEncryptionVersion=J.int32();continue}case 9:{if(K!==74)break;q.conf=i.decode(J,J.uint32(),q.conf);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return aK.fromPartial($??{})},fromPartial($){let Q=fG();return Q.toMailboxSk=$.toMailboxSk??void 0,Q.fromPk=$.fromPk??void 0,Q.mekId=$.mekId??void 0,Q.senderEpochHead=$.senderEpochHead??void 0,Q.rosterHash=$.rosterHash??void 0,Q.ciphertext=$.ciphertext??void 0,Q.toEpochHead=$.toEpochHead??void 0,Q.mekEncryptionVersion=$.mekEncryptionVersion??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function _G(){return{}}var OA={encode($,Q=new H){if($.success!==void 0)sK.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_G();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=sK.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return OA.fromPartial($??{})},fromPartial($){let Q=_G();return Q.success=$.success!==void 0&&$.success!==null?sK.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function hG(){return{}}var sK={encode($,Q=new H){if($.mek!==void 0)Q.uint32(10).bytes($.mek);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mek=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return sK.fromPartial($??{})},fromPartial($){let Q=hG();return Q.mek=$.mek??void 0,Q}};function lG(){return{}}var eK={encode($,Q=new H){if($.epochRootKey!==void 0)Q.uint32(10).bytes($.epochRootKey);if($.epochAnonId!==void 0)Q.uint32(18).bytes($.epochAnonId);if($.threadId!==void 0)Q.uint32(26).string($.threadId);if($.encryptionVersion!==void 0)Q.uint32(32).int32($.encryptionVersion);if($.ciphertext!==void 0)Q.uint32(42).bytes($.ciphertext);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.epochRootKey=J.bytes();continue}case 2:{if(K!==18)break;q.epochAnonId=J.bytes();continue}case 3:{if(K!==26)break;q.threadId=J.string();continue}case 4:{if(K!==32)break;q.encryptionVersion=J.int32();continue}case 5:{if(K!==42)break;q.ciphertext=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return eK.fromPartial($??{})},fromPartial($){let Q=lG();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 pG(){return{}}var RA={encode($,Q=new H){if($.plaintextPayload!==void 0)Q.uint32(10).bytes($.plaintextPayload);if($.error!==void 0)Q.uint32(18).string($.error);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.plaintextPayload=J.bytes();continue}case 2:{if(K!==18)break;q.error=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return RA.fromPartial($??{})},fromPartial($){let Q=pG();return Q.plaintextPayload=$.plaintextPayload??void 0,Q.error=$.error??void 0,Q}};function uG(){return{}}var $8={encode($,Q=new H){if($.encryptedMmk!==void 0)Q.uint32(10).bytes($.encryptedMmk);if($.exportRootKey!==void 0)Q.uint32(18).bytes($.exportRootKey);if($.mailboxHeadHash!==void 0)Q.uint32(26).bytes($.mailboxHeadHash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedMmk=J.bytes();continue}case 2:{if(K!==18)break;q.exportRootKey=J.bytes();continue}case 3:{if(K!==26)break;q.mailboxHeadHash=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $8.fromPartial($??{})},fromPartial($){let Q=uG();return Q.encryptedMmk=$.encryptedMmk??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q.mailboxHeadHash=$.mailboxHeadHash??void 0,Q}};function wG(){return{}}var AA={encode($,Q=new H){if($.success!==void 0)Q8.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=Q8.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return AA.fromPartial($??{})},fromPartial($){let Q=wG();return Q.success=$.success!==void 0&&$.success!==null?Q8.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function jG(){return{}}var Q8={encode($,Q=new H){if($.mmkSeed!==void 0)Q.uint32(10).bytes($.mmkSeed);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mmkSeed=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Q8.fromPartial($??{})},fromPartial($){let Q=jG();return Q.mmkSeed=$.mmkSeed??void 0,Q}};function cG(){return{}}var J8={encode($,Q=new H){if($.mediaKey!==void 0)Q.uint32(10).bytes($.mediaKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mediaKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return J8.fromPartial($??{})},fromPartial($){let Q=cG();return Q.mediaKey=$.mediaKey??void 0,Q}};function dG(){return{}}var EA={encode($,Q=new H){if($.attachmentAccessTokenSecret!==void 0)Q.uint32(10).bytes($.attachmentAccessTokenSecret);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.attachmentAccessTokenSecret=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return EA.fromPartial($??{})},fromPartial($){let Q=dG();return Q.attachmentAccessTokenSecret=$.attachmentAccessTokenSecret??void 0,Q}};function nG(){return{}}var K8={encode($,Q=new H){if($.mediaKey!==void 0)Q.uint32(10).bytes($.mediaKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mediaKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return K8.fromPartial($??{})},fromPartial($){let Q=nG();return Q.mediaKey=$.mediaKey??void 0,Q}};function bG(){return{}}var MA={encode($,Q=new H){if($.attachmentPrimaryKeySecret!==void 0)Q.uint32(10).bytes($.attachmentPrimaryKeySecret);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.attachmentPrimaryKeySecret=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return MA.fromPartial($??{})},fromPartial($){let Q=bG();return Q.attachmentPrimaryKeySecret=$.attachmentPrimaryKeySecret??void 0,Q}};function oG(){return{}}var q8={encode($,Q=new H){if($.exportRootKey!==void 0)Q.uint32(10).bytes($.exportRootKey);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.exportRootKey=J.bytes();continue}case 2:{if(K!==16)break;q.epochNumber=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return q8.fromPartial($??{})},fromPartial($){let Q=oG();return Q.exportRootKey=$.exportRootKey??void 0,Q.epochNumber=$.epochNumber??void 0,Q}};function iG(){return{}}var WA={encode($,Q=new H){if($.mailboxAuthPublicKey!==void 0)Q.uint32(10).bytes($.mailboxAuthPublicKey);if($.mailboxAuthPrivateKey!==void 0)Q.uint32(18).bytes($.mailboxAuthPrivateKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mailboxAuthPublicKey=J.bytes();continue}case 2:{if(K!==18)break;q.mailboxAuthPrivateKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return WA.fromPartial($??{})},fromPartial($){let Q=iG();return Q.mailboxAuthPublicKey=$.mailboxAuthPublicKey??void 0,Q.mailboxAuthPrivateKey=$.mailboxAuthPrivateKey??void 0,Q}};function mG(){return{}}var Z8={encode($,Q=new H){if($.exportRootKey!==void 0)Q.uint32(10).bytes($.exportRootKey);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.exportRootKey=J.bytes();continue}case 2:{if(K!==16)break;q.epochNumber=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Z8.fromPartial($??{})},fromPartial($){let Q=mG();return Q.exportRootKey=$.exportRootKey??void 0,Q.epochNumber=$.epochNumber??void 0,Q}};function gG(){return{}}var SA={encode($,Q=new H){if($.mailboxEncryptionPublicKey!==void 0)Q.uint32(10).bytes($.mailboxEncryptionPublicKey);if($.mailboxEncryptionPrivateKey!==void 0)Q.uint32(18).bytes($.mailboxEncryptionPrivateKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mailboxEncryptionPublicKey=J.bytes();continue}case 2:{if(K!==18)break;q.mailboxEncryptionPrivateKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return SA.fromPartial($??{})},fromPartial($){let Q=gG();return Q.mailboxEncryptionPublicKey=$.mailboxEncryptionPublicKey??void 0,Q.mailboxEncryptionPrivateKey=$.mailboxEncryptionPrivateKey??void 0,Q}};function rG(){return{}}var X8={encode($,Q=new H){if($.exportRootKey!==void 0)Q.uint32(10).bytes($.exportRootKey);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.exportRootKey=J.bytes();continue}case 2:{if(K!==16)break;q.epochNumber=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return X8.fromPartial($??{})},fromPartial($){let Q=rG();return Q.exportRootKey=$.exportRootKey??void 0,Q.epochNumber=$.epochNumber??void 0,Q}};function tG(){return{}}var IA={encode($,Q=new H){if($.success!==void 0)Y8.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=Y8.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return IA.fromPartial($??{})},fromPartial($){let Q=tG();return Q.success=$.success!==void 0&&$.success!==null?Y8.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function aG(){return{}}var Y8={encode($,Q=new H){if($.mailboxSigningPublicKey!==void 0)Q.uint32(10).bytes($.mailboxSigningPublicKey);if($.mailboxSigningPrivateKey!==void 0)Q.uint32(18).bytes($.mailboxSigningPrivateKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??aG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mailboxSigningPublicKey=J.bytes();continue}case 2:{if(K!==18)break;q.mailboxSigningPrivateKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Y8.fromPartial($??{})},fromPartial($){let Q=aG();return Q.mailboxSigningPublicKey=$.mailboxSigningPublicKey??void 0,Q.mailboxSigningPrivateKey=$.mailboxSigningPrivateKey??void 0,Q}};function sG(){return{}}var V8={encode($,Q=new H){if($.epochRootKey!==void 0)Q.uint32(10).bytes($.epochRootKey);if($.epochAnonId!==void 0)Q.uint32(18).bytes($.epochAnonId);if($.threadId!==void 0)Q.uint32(26).string($.threadId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.epochRootKey=J.bytes();continue}case 2:{if(K!==18)break;q.epochAnonId=J.bytes();continue}case 3:{if(K!==26)break;q.threadId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return V8.fromPartial($??{})},fromPartial($){let Q=sG();return Q.epochRootKey=$.epochRootKey??void 0,Q.epochAnonId=$.epochAnonId??void 0,Q.threadId=$.threadId??void 0,Q}};function eG(){return{}}var TA={encode($,Q=new H){if($.messageKey!==void 0)Q.uint32(10).bytes($.messageKey);if($.error!==void 0)Q.uint32(18).string($.error);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??eG();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.messageKey=J.bytes();continue}case 2:{if(K!==18)break;q.error=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return TA.fromPartial($??{})},fromPartial($){let Q=eG();return Q.messageKey=$.messageKey??void 0,Q.error=$.error??void 0,Q}};function $U(){return{}}var H8={encode($,Q=new H){if($.mmkSeed!==void 0)Q.uint32(10).bytes($.mmkSeed);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$U();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mmkSeed=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return H8.fromPartial($??{})},fromPartial($){let Q=$U();return Q.mmkSeed=$.mmkSeed??void 0,Q}};function QU(){return{}}var yA={encode($,Q=new H){if($.success!==void 0)z8.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??QU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=z8.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return yA.fromPartial($??{})},fromPartial($){let Q=QU();return Q.success=$.success!==void 0&&$.success!==null?z8.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function JU(){return{}}var z8={encode($,Q=new H){if($.encSk!==void 0)Q.uint32(10).bytes($.encSk);if($.encPk!==void 0)Q.uint32(18).bytes($.encPk);if($.authSk!==void 0)Q.uint32(26).bytes($.authSk);if($.authPk!==void 0)Q.uint32(34).bytes($.authPk);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??JU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encSk=J.bytes();continue}case 2:{if(K!==18)break;q.encPk=J.bytes();continue}case 3:{if(K!==26)break;q.authSk=J.bytes();continue}case 4:{if(K!==34)break;q.authPk=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return z8.fromPartial($??{})},fromPartial($){let Q=JU();return Q.encSk=$.encSk??void 0,Q.encPk=$.encPk??void 0,Q.authSk=$.authSk??void 0,Q.authPk=$.authPk??void 0,Q}};function KU(){return{}}var H$={encode($,Q=new H){if($.deviceId!==void 0)Q.uint32(8).uint64($.deviceId);if($.name!==void 0)Q.uint32(18).bytes($.name);if($.sigPk!==void 0)Q.uint32(26).bytes($.sigPk);if($.authPk!==void 0)Q.uint32(34).bytes($.authPk);if($.encPk!==void 0)Q.uint32(42).bytes($.encPk);if($.signature!==void 0)Q.uint32(50).bytes($.signature);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??KU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.deviceId=J.uint64Value();continue}case 2:{if(K!==18)break;q.name=J.bytes();continue}case 3:{if(K!==26)break;q.sigPk=J.bytes();continue}case 4:{if(K!==34)break;q.authPk=J.bytes();continue}case 5:{if(K!==42)break;q.encPk=J.bytes();continue}case 6:{if(K!==50)break;q.signature=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return H$.fromPartial($??{})},fromPartial($){let Q=KU();return Q.deviceId=$.deviceId??void 0,Q.name=$.name??void 0,Q.sigPk=$.sigPk??void 0,Q.authPk=$.authPk??void 0,Q.encPk=$.encPk??void 0,Q.signature=$.signature??void 0,Q}};function qU(){return{}}var g$={encode($,Q=new H){if($.chatLockSupportLevel!==void 0)Q.uint32(8).int32($.chatLockSupportLevel);if($.lidMigration!==void 0)L8.encode($.lidMigration,Q.uint32(18).fork()).join();if($.businessBroadcast!==void 0)D8.encode($.businessBroadcast,Q.uint32(26).fork()).join();if($.userHasAvatar!==void 0)P8.encode($.userHasAvatar,Q.uint32(34).fork()).join();if($.memberNameTagPrimarySupport!==void 0)Q.uint32(40).int32($.memberNameTagPrimarySupport);if($.aiThread!==void 0)U8.encode($.aiThread,Q.uint32(50).fork()).join();if($.aiFbidMigration!==void 0)G8.encode($.aiFbidMigration,Q.uint32(58).fork()).join();if($.bizAiSettingsSync!==void 0)C8.encode($.bizAiSettingsSync,Q.uint32(66).fork()).join();if($.contactRefresh!==void 0)F8.encode($.contactRefresh,Q.uint32(74).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.chatLockSupportLevel=J.int32();continue}case 2:{if(K!==18)break;q.lidMigration=L8.decode(J,J.uint32(),q.lidMigration);continue}case 3:{if(K!==26)break;q.businessBroadcast=D8.decode(J,J.uint32(),q.businessBroadcast);continue}case 4:{if(K!==34)break;q.userHasAvatar=P8.decode(J,J.uint32(),q.userHasAvatar);continue}case 5:{if(K!==40)break;q.memberNameTagPrimarySupport=J.int32();continue}case 6:{if(K!==50)break;q.aiThread=U8.decode(J,J.uint32(),q.aiThread);continue}case 7:{if(K!==58)break;q.aiFbidMigration=G8.decode(J,J.uint32(),q.aiFbidMigration);continue}case 8:{if(K!==66)break;q.bizAiSettingsSync=C8.decode(J,J.uint32(),q.bizAiSettingsSync);continue}case 9:{if(K!==74)break;q.contactRefresh=F8.decode(J,J.uint32(),q.contactRefresh);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return g$.fromPartial($??{})},fromPartial($){let Q=qU();return Q.chatLockSupportLevel=$.chatLockSupportLevel??void 0,Q.lidMigration=$.lidMigration!==void 0&&$.lidMigration!==null?L8.fromPartial($.lidMigration):void 0,Q.businessBroadcast=$.businessBroadcast!==void 0&&$.businessBroadcast!==null?D8.fromPartial($.businessBroadcast):void 0,Q.userHasAvatar=$.userHasAvatar!==void 0&&$.userHasAvatar!==null?P8.fromPartial($.userHasAvatar):void 0,Q.memberNameTagPrimarySupport=$.memberNameTagPrimarySupport??void 0,Q.aiThread=$.aiThread!==void 0&&$.aiThread!==null?U8.fromPartial($.aiThread):void 0,Q.aiFbidMigration=$.aiFbidMigration!==void 0&&$.aiFbidMigration!==null?G8.fromPartial($.aiFbidMigration):void 0,Q.bizAiSettingsSync=$.bizAiSettingsSync!==void 0&&$.bizAiSettingsSync!==null?C8.fromPartial($.bizAiSettingsSync):void 0,Q.contactRefresh=$.contactRefresh!==void 0&&$.contactRefresh!==null?F8.fromPartial($.contactRefresh):void 0,Q}};function ZU(){return{}}var G8={encode($,Q=new H){if($.chatDbMigrationTimestamp!==void 0)Q.uint32(8).uint64($.chatDbMigrationTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ZU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.chatDbMigrationTimestamp=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return G8.fromPartial($??{})},fromPartial($){let Q=ZU();return Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function XU(){return{}}var U8={encode($,Q=new H){if($.supportLevel!==void 0)Q.uint32(8).int32($.supportLevel);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??XU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.supportLevel=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return U8.fromPartial($??{})},fromPartial($){let Q=XU();return Q.supportLevel=$.supportLevel??void 0,Q}};function YU(){return{}}var C8={encode($,Q=new H){if($.handoffRemovalTimingEnabled!==void 0)Q.uint32(8).bool($.handoffRemovalTimingEnabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??YU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.handoffRemovalTimingEnabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return C8.fromPartial($??{})},fromPartial($){let Q=YU();return Q.handoffRemovalTimingEnabled=$.handoffRemovalTimingEnabled??void 0,Q}};function VU(){return{}}var D8={encode($,Q=new H){if($.importListEnabled!==void 0)Q.uint32(8).bool($.importListEnabled);if($.companionSupportEnabled!==void 0)Q.uint32(16).bool($.companionSupportEnabled);if($.campaignSyncEnabled!==void 0)Q.uint32(24).bool($.campaignSyncEnabled);if($.insightsSyncEnabled!==void 0)Q.uint32(32).bool($.insightsSyncEnabled);if($.recipientLimit!==void 0)Q.uint32(40).int32($.recipientLimit);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??VU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.importListEnabled=J.bool();continue}case 2:{if(K!==16)break;q.companionSupportEnabled=J.bool();continue}case 3:{if(K!==24)break;q.campaignSyncEnabled=J.bool();continue}case 4:{if(K!==32)break;q.insightsSyncEnabled=J.bool();continue}case 5:{if(K!==40)break;q.recipientLimit=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return D8.fromPartial($??{})},fromPartial($){let Q=VU();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 HU(){return{}}var F8={encode($,Q=new H){if($.refreshSupported!==void 0)Q.uint32(8).bool($.refreshSupported);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??HU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.refreshSupported=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return F8.fromPartial($??{})},fromPartial($){let Q=HU();return Q.refreshSupported=$.refreshSupported??void 0,Q}};function zU(){return{}}var L8={encode($,Q=new H){if($.chatDbMigrationTimestamp!==void 0)Q.uint32(8).uint64($.chatDbMigrationTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.chatDbMigrationTimestamp=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return L8.fromPartial($??{})},fromPartial($){let Q=zU();return Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function GU(){return{}}var P8={encode($,Q=new H){if($.userHasAvatar!==void 0)Q.uint32(8).bool($.userHasAvatar);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??GU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.userHasAvatar=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return P8.fromPartial($??{})},fromPartial($){let Q=GU();return Q.userHasAvatar=$.userHasAvatar??void 0,Q}};function UU(){return{}}var vA={encode($,Q=new H){if($.generation!==void 0)Q.uint32(8).uint32($.generation);if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??UU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.generation=J.uint32();continue}case 2:{if(K!==18)break;q.signature=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return vA.fromPartial($??{})},fromPartial($){let Q=UU();return Q.generation=$.generation??void 0,Q.signature=$.signature??void 0,Q}};function CU(){return{}}var k8={encode($,Q=new H){if($.senderKeyHash!==void 0)Q.uint32(10).bytes($.senderKeyHash);if($.senderTimestamp!==void 0)Q.uint32(16).uint64($.senderTimestamp);if($.senderKeyIndexes!==void 0&&$.senderKeyIndexes.length!==0){Q.uint32(26).fork();for(let 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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??CU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.senderKeyHash=J.bytes();continue}case 2:{if(K!==16)break;q.senderTimestamp=J.uint64Value();continue}case 3:{if(K===24){if(q.senderKeyIndexes===void 0)q.senderKeyIndexes=[];q.senderKeyIndexes.push(J.uint32());continue}if(K===26){if(q.senderKeyIndexes===void 0)q.senderKeyIndexes=[];let V=J.uint32()+J.pos;while(J.pos<V)q.senderKeyIndexes.push(J.uint32());continue}break}case 4:{if(K!==32)break;q.senderAccountType=J.int32();continue}case 5:{if(K!==40)break;q.receiverAccountType=J.int32();continue}case 8:{if(K!==66)break;q.recipientKeyHash=J.bytes();continue}case 9:{if(K!==72)break;q.recipientTimestamp=J.uint64Value();continue}case 10:{if(K===80){if(q.recipientKeyIndexes===void 0)q.recipientKeyIndexes=[];q.recipientKeyIndexes.push(J.uint32());continue}if(K===82){if(q.recipientKeyIndexes===void 0)q.recipientKeyIndexes=[];let V=J.uint32()+J.pos;while(J.pos<V)q.recipientKeyIndexes.push(J.uint32());continue}break}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return k8.fromPartial($??{})},fromPartial($){let Q=CU();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 DU(){return{}}var x8={encode($,Q=new H){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.epochAuthPublicKey!==void 0)Q.uint32(18).bytes($.epochAuthPublicKey);if($.epochAuthPublicKeySig!==void 0)Q.uint32(26).bytes($.epochAuthPublicKeySig);if($.epochStoragePublicKey!==void 0)Q.uint32(34).bytes($.epochStoragePublicKey);if($.epochStoragePublicKeySig!==void 0)Q.uint32(42).bytes($.epochStoragePublicKeySig);if($.supportedEncryptionVersions!==void 0&&$.supportedEncryptionVersions.length!==0)for(let 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);if($.epochStoragePrivateKey!==void 0)Q.uint32(82).bytes($.epochStoragePrivateKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??DU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.publicKey=J.bytes();continue}case 2:{if(K!==18)break;q.epochAuthPublicKey=J.bytes();continue}case 3:{if(K!==26)break;q.epochAuthPublicKeySig=J.bytes();continue}case 4:{if(K!==34)break;q.epochStoragePublicKey=J.bytes();continue}case 5:{if(K!==42)break;q.epochStoragePublicKeySig=J.bytes();continue}case 6:{if(K===48){if(q.supportedEncryptionVersions===void 0)q.supportedEncryptionVersions=[];q.supportedEncryptionVersions.push(J.int32());continue}if(K===50){if(q.supportedEncryptionVersions===void 0)q.supportedEncryptionVersions=[];let V=J.uint32()+J.pos;while(J.pos<V)q.supportedEncryptionVersions.push(J.int32());continue}break}case 7:{if(K!==58)break;q.encryptionVersionSignature=J.bytes();continue}case 8:{if(K!==64)break;q.clientVersion=J.int32();continue}case 9:{if(K!==74)break;q.ocmfClientState=J.bytes();continue}case 10:{if(K!==82)break;q.epochStoragePrivateKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return x8.fromPartial($??{})},fromPartial($){let Q=DU();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.epochStoragePrivateKey=$.epochStoragePrivateKey??void 0,Q}};function FU(){return{}}var c5={encode($,Q=new H){if($.os!==void 0)Q.uint32(10).string($.os);if($.version!==void 0)B8.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)kQ.encode($.historySyncConfig,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??FU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.os=J.string();continue}case 2:{if(K!==18)break;q.version=B8.decode(J,J.uint32(),q.version);continue}case 3:{if(K!==24)break;q.platformType=J.int32();continue}case 4:{if(K!==32)break;q.requireFullSync=J.bool();continue}case 5:{if(K!==42)break;q.historySyncConfig=kQ.decode(J,J.uint32(),q.historySyncConfig);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return c5.fromPartial($??{})},fromPartial($){let Q=FU();return Q.os=$.os??void 0,Q.version=$.version!==void 0&&$.version!==null?B8.fromPartial($.version):void 0,Q.platformType=$.platformType??void 0,Q.requireFullSync=$.requireFullSync??void 0,Q.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?kQ.fromPartial($.historySyncConfig):void 0,Q}};function LU(){return{}}var B8={encode($,Q=new H){if($.primary!==void 0)Q.uint32(8).uint32($.primary);if($.secondary!==void 0)Q.uint32(16).uint32($.secondary);if($.tertiary!==void 0)Q.uint32(24).uint32($.tertiary);if($.quaternary!==void 0)Q.uint32(32).uint32($.quaternary);if($.quinary!==void 0)Q.uint32(40).uint32($.quinary);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??LU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.primary=J.uint32();continue}case 2:{if(K!==16)break;q.secondary=J.uint32();continue}case 3:{if(K!==24)break;q.tertiary=J.uint32();continue}case 4:{if(K!==32)break;q.quaternary=J.uint32();continue}case 5:{if(K!==40)break;q.quinary=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return B8.fromPartial($??{})},fromPartial($){let Q=LU();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 PU(){return{}}var kQ={encode($,Q=new H){if($.fullSyncDaysLimit!==void 0)Q.uint32(8).uint32($.fullSyncDaysLimit);if($.fullSyncSizeMbLimit!==void 0)Q.uint32(16).uint32($.fullSyncSizeMbLimit);if($.storageQuotaMb!==void 0)Q.uint32(24).uint32($.storageQuotaMb);if($.inlineInitialPayloadInE2EeMsg!==void 0)Q.uint32(32).bool($.inlineInitialPayloadInE2EeMsg);if($.recentSyncDaysLimit!==void 0)Q.uint32(40).uint32($.recentSyncDaysLimit);if($.supportCallLogHistory!==void 0)Q.uint32(48).bool($.supportCallLogHistory);if($.supportBotUserAgentChatHistory!==void 0)Q.uint32(56).bool($.supportBotUserAgentChatHistory);if($.supportCagReactionsAndPolls!==void 0)Q.uint32(64).bool($.supportCagReactionsAndPolls);if($.supportBizHostedMsg!==void 0)Q.uint32(72).bool($.supportBizHostedMsg);if($.supportRecentSyncChunkMessageCountTuning!==void 0)Q.uint32(80).bool($.supportRecentSyncChunkMessageCountTuning);if($.supportHostedGroupMsg!==void 0)Q.uint32(88).bool($.supportHostedGroupMsg);if($.supportFbidBotChatHistory!==void 0)Q.uint32(96).bool($.supportFbidBotChatHistory);if($.supportAddOnHistorySyncMigration!==void 0)Q.uint32(104).bool($.supportAddOnHistorySyncMigration);if($.supportMessageAssociation!==void 0)Q.uint32(112).bool($.supportMessageAssociation);if($.supportGroupHistory!==void 0)Q.uint32(120).bool($.supportGroupHistory);if($.onDemandReady!==void 0)Q.uint32(128).bool($.onDemandReady);if($.supportGuestChat!==void 0)Q.uint32(136).bool($.supportGuestChat);if($.completeOnDemandReady!==void 0)Q.uint32(144).bool($.completeOnDemandReady);if($.thumbnailSyncDaysLimit!==void 0)Q.uint32(152).uint32($.thumbnailSyncDaysLimit);if($.initialSyncMaxMessagesPerChat!==void 0)Q.uint32(160).uint32($.initialSyncMaxMessagesPerChat);if($.supportManusHistory!==void 0)Q.uint32(168).bool($.supportManusHistory);if($.supportHatchHistory!==void 0)Q.uint32(176).bool($.supportHatchHistory);if($.supportedBotChannelFbids!==void 0&&$.supportedBotChannelFbids.length!==0)for(let Z of $.supportedBotChannelFbids)Q.uint32(186).string(Z);if($.supportInlineContacts!==void 0)Q.uint32(192).bool($.supportInlineContacts);if($.supportNewsletter!==void 0)Q.uint32(200).bool($.supportNewsletter);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??PU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.fullSyncDaysLimit=J.uint32();continue}case 2:{if(K!==16)break;q.fullSyncSizeMbLimit=J.uint32();continue}case 3:{if(K!==24)break;q.storageQuotaMb=J.uint32();continue}case 4:{if(K!==32)break;q.inlineInitialPayloadInE2EeMsg=J.bool();continue}case 5:{if(K!==40)break;q.recentSyncDaysLimit=J.uint32();continue}case 6:{if(K!==48)break;q.supportCallLogHistory=J.bool();continue}case 7:{if(K!==56)break;q.supportBotUserAgentChatHistory=J.bool();continue}case 8:{if(K!==64)break;q.supportCagReactionsAndPolls=J.bool();continue}case 9:{if(K!==72)break;q.supportBizHostedMsg=J.bool();continue}case 10:{if(K!==80)break;q.supportRecentSyncChunkMessageCountTuning=J.bool();continue}case 11:{if(K!==88)break;q.supportHostedGroupMsg=J.bool();continue}case 12:{if(K!==96)break;q.supportFbidBotChatHistory=J.bool();continue}case 13:{if(K!==104)break;q.supportAddOnHistorySyncMigration=J.bool();continue}case 14:{if(K!==112)break;q.supportMessageAssociation=J.bool();continue}case 15:{if(K!==120)break;q.supportGroupHistory=J.bool();continue}case 16:{if(K!==128)break;q.onDemandReady=J.bool();continue}case 17:{if(K!==136)break;q.supportGuestChat=J.bool();continue}case 18:{if(K!==144)break;q.completeOnDemandReady=J.bool();continue}case 19:{if(K!==152)break;q.thumbnailSyncDaysLimit=J.uint32();continue}case 20:{if(K!==160)break;q.initialSyncMaxMessagesPerChat=J.uint32();continue}case 21:{if(K!==168)break;q.supportManusHistory=J.bool();continue}case 22:{if(K!==176)break;q.supportHatchHistory=J.bool();continue}case 23:{if(K!==186)break;if(q.supportedBotChannelFbids===void 0)q.supportedBotChannelFbids=[];let V=J.string();if(V!==void 0)q.supportedBotChannelFbids.push(V);continue}case 24:{if(K!==192)break;q.supportInlineContacts=J.bool();continue}case 25:{if(K!==200)break;q.supportNewsletter=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return kQ.fromPartial($??{})},fromPartial($){let Q=PU();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.supportNewsletter=$.supportNewsletter??void 0,Q}};function kU(){return{}}var A$={encode($,Q=new H){if($.initiator!==void 0)Q.uint32(8).int32($.initiator);if($.trigger!==void 0)Q.uint32(16).int32($.trigger);if($.initiatorDeviceJid!==void 0)Q.uint32(26).string($.initiatorDeviceJid);if($.initiatedByMe!==void 0)Q.uint32(32).bool($.initiatedByMe);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.initiator=J.int32();continue}case 2:{if(K!==16)break;q.trigger=J.int32();continue}case 3:{if(K!==26)break;q.initiatorDeviceJid=J.string();continue}case 4:{if(K!==32)break;q.initiatedByMe=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return A$.fromPartial($??{})},fromPartial($){let Q=kU();return Q.initiator=$.initiator??void 0,Q.trigger=$.trigger??void 0,Q.initiatorDeviceJid=$.initiatorDeviceJid??void 0,Q.initiatedByMe=$.initiatedByMe??void 0,Q}};function xU(){return{}}var N8={encode($,Q=new H){if($.embeddedMessage!==void 0)O8.encode($.embeddedMessage,Q.uint32(10).fork()).join();if($.embeddedMusic!==void 0)z$.encode($.embeddedMusic,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.embeddedMessage=O8.decode(J,J.uint32(),q.embeddedMessage);continue}case 2:{if(K!==18)break;q.embeddedMusic=z$.decode(J,J.uint32(),q.embeddedMusic);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return N8.fromPartial($??{})},fromPartial($){let Q=xU();return Q.embeddedMessage=$.embeddedMessage!==void 0&&$.embeddedMessage!==null?O8.fromPartial($.embeddedMessage):void 0,Q.embeddedMusic=$.embeddedMusic!==void 0&&$.embeddedMusic!==null?z$.fromPartial($.embeddedMusic):void 0,Q}};function BU(){return{}}var O8={encode($,Q=new H){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.message!==void 0)d.encode($.message,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??BU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.stanzaId=J.string();continue}case 2:{if(K!==18)break;q.message=d.decode(J,J.uint32(),q.message);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return O8.fromPartial($??{})},fromPartial($){let Q=BU();return Q.stanzaId=$.stanzaId??void 0,Q.message=$.message!==void 0&&$.message!==null?d.fromPartial($.message):void 0,Q}};function NU(){return{}}var z$={encode($,Q=new H){if($.musicContentMediaId!==void 0)Q.uint32(10).string($.musicContentMediaId);if($.songId!==void 0)Q.uint32(18).string($.songId);if($.author!==void 0)Q.uint32(26).string($.author);if($.title!==void 0)Q.uint32(34).string($.title);if($.artworkDirectPath!==void 0)Q.uint32(42).string($.artworkDirectPath);if($.artworkSha256!==void 0)Q.uint32(50).bytes($.artworkSha256);if($.artworkEncSha256!==void 0)Q.uint32(58).bytes($.artworkEncSha256);if($.artistAttribution!==void 0)Q.uint32(66).string($.artistAttribution);if($.countryBlocklist!==void 0)Q.uint32(74).bytes($.countryBlocklist);if($.isExplicit!==void 0)Q.uint32(80).bool($.isExplicit);if($.artworkMediaKey!==void 0)Q.uint32(90).bytes($.artworkMediaKey);if($.musicSongStartTimeInMs!==void 0)Q.uint32(96).int64($.musicSongStartTimeInMs);if($.derivedContentStartTimeInMs!==void 0)Q.uint32(104).int64($.derivedContentStartTimeInMs);if($.overlapDurationInMs!==void 0)Q.uint32(112).int64($.overlapDurationInMs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??NU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.musicContentMediaId=J.string();continue}case 2:{if(K!==18)break;q.songId=J.string();continue}case 3:{if(K!==26)break;q.author=J.string();continue}case 4:{if(K!==34)break;q.title=J.string();continue}case 5:{if(K!==42)break;q.artworkDirectPath=J.string();continue}case 6:{if(K!==50)break;q.artworkSha256=J.bytes();continue}case 7:{if(K!==58)break;q.artworkEncSha256=J.bytes();continue}case 8:{if(K!==66)break;q.artistAttribution=J.string();continue}case 9:{if(K!==74)break;q.countryBlocklist=J.bytes();continue}case 10:{if(K!==80)break;q.isExplicit=J.bool();continue}case 11:{if(K!==90)break;q.artworkMediaKey=J.bytes();continue}case 12:{if(K!==96)break;q.musicSongStartTimeInMs=J.int64Value();continue}case 13:{if(K!==104)break;q.derivedContentStartTimeInMs=J.int64Value();continue}case 14:{if(K!==112)break;q.overlapDurationInMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return z$.fromPartial($??{})},fromPartial($){let Q=NU();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 OU(){return{}}var R8={encode($,Q=new H){if($.senderEpochHead!==void 0)Q.uint32(10).bytes($.senderEpochHead);if($.toMailboxPk!==void 0)Q.uint32(18).bytes($.toMailboxPk);if($.fromKeypair!==void 0)A8.encode($.fromKeypair,Q.uint32(26).fork()).join();if($.mek!==void 0)M$.encode($.mek,Q.uint32(34).fork()).join();if($.toEpochHead!==void 0)Q.uint32(42).bytes($.toEpochHead);if($.conf!==void 0)i.encode($.conf,Q.uint32(50).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??OU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.senderEpochHead=J.bytes();continue}case 2:{if(K!==18)break;q.toMailboxPk=J.bytes();continue}case 3:{if(K!==26)break;q.fromKeypair=A8.decode(J,J.uint32(),q.fromKeypair);continue}case 4:{if(K!==34)break;q.mek=M$.decode(J,J.uint32(),q.mek);continue}case 5:{if(K!==42)break;q.toEpochHead=J.bytes();continue}case 6:{if(K!==50)break;q.conf=i.decode(J,J.uint32(),q.conf);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return R8.fromPartial($??{})},fromPartial($){let Q=OU();return Q.senderEpochHead=$.senderEpochHead??void 0,Q.toMailboxPk=$.toMailboxPk??void 0,Q.fromKeypair=$.fromKeypair!==void 0&&$.fromKeypair!==null?A8.fromPartial($.fromKeypair):void 0,Q.mek=$.mek!==void 0&&$.mek!==null?M$.fromPartial($.mek):void 0,Q.toEpochHead=$.toEpochHead??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function RU(){return{}}var A8={encode($,Q=new H){if($.sk!==void 0)Q.uint32(10).bytes($.sk);if($.pk!==void 0)Q.uint32(18).bytes($.pk);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??RU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.sk=J.bytes();continue}case 2:{if(K!==18)break;q.pk=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return A8.fromPartial($??{})},fromPartial($){let Q=RU();return Q.sk=$.sk??void 0,Q.pk=$.pk??void 0,Q}};function AU(){return{}}var fA={encode($,Q=new H){if($.ciphertext!==void 0)Q.uint32(10).bytes($.ciphertext);if($.version!==void 0)Q.uint32(16).uint64($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??AU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.ciphertext=J.bytes();continue}case 2:{if(K!==16)break;q.version=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return fA.fromPartial($??{})},fromPartial($){let Q=AU();return Q.ciphertext=$.ciphertext??void 0,Q.version=$.version??void 0,Q}};function EU(){return{}}var E8={encode($,Q=new H){if($.mek!==void 0)M$.encode($.mek,Q.uint32(10).fork()).join();if($.transportSigningKp!==void 0)M8.encode($.transportSigningKp,Q.uint32(18).fork()).join();if($.recipientMailboxEncryptionPks!==void 0&&$.recipientMailboxEncryptionPks.length!==0)for(let Z of $.recipientMailboxEncryptionPks)Q.uint32(26).bytes(Z);if($.recipientEpochHeads!==void 0&&$.recipientEpochHeads.length!==0)for(let Z of $.recipientEpochHeads)Q.uint32(34).bytes(Z);if($.conf!==void 0)i.encode($.conf,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??EU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mek=M$.decode(J,J.uint32(),q.mek);continue}case 2:{if(K!==18)break;q.transportSigningKp=M8.decode(J,J.uint32(),q.transportSigningKp);continue}case 3:{if(K!==26)break;if(q.recipientMailboxEncryptionPks===void 0)q.recipientMailboxEncryptionPks=[];let V=J.bytes();if(V!==void 0)q.recipientMailboxEncryptionPks.push(V);continue}case 4:{if(K!==34)break;if(q.recipientEpochHeads===void 0)q.recipientEpochHeads=[];let V=J.bytes();if(V!==void 0)q.recipientEpochHeads.push(V);continue}case 5:{if(K!==42)break;q.conf=i.decode(J,J.uint32(),q.conf);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return E8.fromPartial($??{})},fromPartial($){let Q=EU();return Q.mek=$.mek!==void 0&&$.mek!==null?M$.fromPartial($.mek):void 0,Q.transportSigningKp=$.transportSigningKp!==void 0&&$.transportSigningKp!==null?M8.fromPartial($.transportSigningKp):void 0,Q.recipientMailboxEncryptionPks=$.recipientMailboxEncryptionPks?.map((Z)=>Z)||void 0,Q.recipientEpochHeads=$.recipientEpochHeads?.map((Z)=>Z)||void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function MU(){return{}}var M8={encode($,Q=new H){if($.sk!==void 0)Q.uint32(10).bytes($.sk);if($.pk!==void 0)Q.uint32(18).bytes($.pk);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??MU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.sk=J.bytes();continue}case 2:{if(K!==18)break;q.pk=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return M8.fromPartial($??{})},fromPartial($){let Q=MU();return Q.sk=$.sk??void 0,Q.pk=$.pk??void 0,Q}};function WU(){return{}}var _A={encode($,Q=new H){if($.encryptedMeks!==void 0&&$.encryptedMeks.length!==0)for(let Z of $.encryptedMeks)Q.uint32(10).bytes(Z);if($.ephemeralEncryptionPk!==void 0)Q.uint32(18).bytes($.ephemeralEncryptionPk);if($.signingPk!==void 0)Q.uint32(26).bytes($.signingPk);if($.signature!==void 0)Q.uint32(34).bytes($.signature);if($.version!==void 0)Q.uint32(40).uint64($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??WU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.encryptedMeks===void 0)q.encryptedMeks=[];let V=J.bytes();if(V!==void 0)q.encryptedMeks.push(V);continue}case 2:{if(K!==18)break;q.ephemeralEncryptionPk=J.bytes();continue}case 3:{if(K!==26)break;q.signingPk=J.bytes();continue}case 4:{if(K!==34)break;q.signature=J.bytes();continue}case 5:{if(K!==40)break;q.version=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _A.fromPartial($??{})},fromPartial($){let Q=WU();return Q.encryptedMeks=$.encryptedMeks?.map((Z)=>Z)||void 0,Q.ephemeralEncryptionPk=$.ephemeralEncryptionPk??void 0,Q.signingPk=$.signingPk??void 0,Q.signature=$.signature??void 0,Q.version=$.version??void 0,Q}};function SU(){return{}}var W8={encode($,Q=new H){if($.epochRootKey!==void 0)Q.uint32(10).bytes($.epochRootKey);if($.mailboxRootKey!==void 0)Q.uint32(18).bytes($.mailboxRootKey);if($.orfClientState!==void 0)Q.uint32(26).bytes($.orfClientState);if($.epochAnonId!==void 0)Q.uint32(34).bytes($.epochAnonId);if($.epochId!==void 0)Q.uint32(40).uint64($.epochId);if($.threadId!==void 0)Q.uint32(50).string($.threadId);if($.waCanonicalUserFbid!==void 0)Q.uint32(56).uint64($.waCanonicalUserFbid);if($.timestampMs!==void 0)Q.uint32(64).uint64($.timestampMs);if($.backupId!==void 0)Q.uint32(72).uint64($.backupId);if($.plaintextPayload!==void 0)Q.uint32(82).bytes($.plaintextPayload);if($.stanzaId!==void 0)Q.uint32(90).string($.stanzaId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??SU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.epochRootKey=J.bytes();continue}case 2:{if(K!==18)break;q.mailboxRootKey=J.bytes();continue}case 3:{if(K!==26)break;q.orfClientState=J.bytes();continue}case 4:{if(K!==34)break;q.epochAnonId=J.bytes();continue}case 5:{if(K!==40)break;q.epochId=J.uint64Value();continue}case 6:{if(K!==50)break;q.threadId=J.string();continue}case 7:{if(K!==56)break;q.waCanonicalUserFbid=J.uint64Value();continue}case 8:{if(K!==64)break;q.timestampMs=J.uint64Value();continue}case 9:{if(K!==72)break;q.backupId=J.uint64Value();continue}case 10:{if(K!==82)break;q.plaintextPayload=J.bytes();continue}case 11:{if(K!==90)break;q.stanzaId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return W8.fromPartial($??{})},fromPartial($){let Q=SU();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 IU(){return{}}var hA={encode($,Q=new H){if($.encryptedProtobuf!==void 0)Q.uint32(10).bytes($.encryptedProtobuf);if($.orfThreadId!==void 0)Q.uint32(18).bytes($.orfThreadId);if($.valueSecretRef!==void 0)Q.uint32(26).string($.valueSecretRef);if($.offlineThreadingId!==void 0)Q.uint32(32).uint64($.offlineThreadingId);if($.timestampMs!==void 0)Q.uint32(40).uint64($.timestampMs);if($.error!==void 0)Q.uint32(58).string($.error);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??IU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedProtobuf=J.bytes();continue}case 2:{if(K!==18)break;q.orfThreadId=J.bytes();continue}case 3:{if(K!==26)break;q.valueSecretRef=J.string();continue}case 4:{if(K!==32)break;q.offlineThreadingId=J.uint64Value();continue}case 5:{if(K!==40)break;q.timestampMs=J.uint64Value();continue}case 7:{if(K!==58)break;q.error=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return hA.fromPartial($??{})},fromPartial($){let Q=IU();return Q.encryptedProtobuf=$.encryptedProtobuf??void 0,Q.orfThreadId=$.orfThreadId??void 0,Q.valueSecretRef=$.valueSecretRef??void 0,Q.offlineThreadingId=$.offlineThreadingId??void 0,Q.timestampMs=$.timestampMs??void 0,Q.error=$.error??void 0,Q}};function TU(){return{}}var lA={encode($,Q=new H){if($.encryptedPayload!==void 0)Q.uint32(10).bytes($.encryptedPayload);if($.iv!==void 0)Q.uint32(18).bytes($.iv);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??TU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedPayload=J.bytes();continue}case 2:{if(K!==18)break;q.iv=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return lA.fromPartial($??{})},fromPartial($){let Q=TU();return Q.encryptedPayload=$.encryptedPayload??void 0,Q.iv=$.iv??void 0,Q}};function yU(){return{}}var S8={encode($,Q=new H){if($.encryptedDevicePrivateKey!==void 0)Q.uint32(10).bytes($.encryptedDevicePrivateKey);if($.encryptedObliviousValidationTokenBlob!==void 0)Q.uint32(18).bytes($.encryptedObliviousValidationTokenBlob);if($.encryptedEpochStoragePrivateKey!==void 0)Q.uint32(26).bytes($.encryptedEpochStoragePrivateKey);if($.encryptedOcmfClientState!==void 0)Q.uint32(34).bytes($.encryptedOcmfClientState);if($.encryptedOrfClientStateV2!==void 0)Q.uint32(42).bytes($.encryptedOrfClientStateV2);if($.encryptedMailboxRootKeyBlob!==void 0)Q.uint32(50).bytes($.encryptedMailboxRootKeyBlob);if($.encryptedEpochAnonId!==void 0)Q.uint32(58).bytes($.encryptedEpochAnonId);if($.encryptedEpochRootKey!==void 0)Q.uint32(66).bytes($.encryptedEpochRootKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedDevicePrivateKey=J.bytes();continue}case 2:{if(K!==18)break;q.encryptedObliviousValidationTokenBlob=J.bytes();continue}case 3:{if(K!==26)break;q.encryptedEpochStoragePrivateKey=J.bytes();continue}case 4:{if(K!==34)break;q.encryptedOcmfClientState=J.bytes();continue}case 5:{if(K!==42)break;q.encryptedOrfClientStateV2=J.bytes();continue}case 6:{if(K!==50)break;q.encryptedMailboxRootKeyBlob=J.bytes();continue}case 7:{if(K!==58)break;q.encryptedEpochAnonId=J.bytes();continue}case 8:{if(K!==66)break;q.encryptedEpochRootKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return S8.fromPartial($??{})},fromPartial($){let Q=yU();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 vU(){return{}}var pA={encode($,Q=new H){if($.duration!==void 0)Q.uint32(13).sfixed32($.duration);if($.timestamp!==void 0)Q.uint32(17).sfixed64($.timestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==13)break;q.duration=J.sfixed32();continue}case 2:{if(K!==17)break;q.timestamp=J.sfixed64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return pA.fromPartial($??{})},fromPartial($){let Q=vU();return Q.duration=$.duration??void 0,Q.timestamp=$.timestamp??void 0,Q}};function fU(){return{}}var I8={encode($,Q=new H){if($.epochFbid!==void 0)Q.uint32(8).uint64($.epochFbid);if($.epochAnonId!==void 0)Q.uint32(18).bytes($.epochAnonId);if($.epochData!==void 0)Q.uint32(26).bytes($.epochData);if($.wrappedRootKeyForSelf!==void 0)Q.uint32(34).bytes($.wrappedRootKeyForSelf);if($.epochSignature!==void 0)Q.uint32(42).bytes($.epochSignature);if($.epochRootKeyFingerprint!==void 0)Q.uint32(50).bytes($.epochRootKeyFingerprint);if($.epochRootKey!==void 0)Q.uint32(58).bytes($.epochRootKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.epochFbid=J.uint64Value();continue}case 2:{if(K!==18)break;q.epochAnonId=J.bytes();continue}case 3:{if(K!==26)break;q.epochData=J.bytes();continue}case 4:{if(K!==34)break;q.wrappedRootKeyForSelf=J.bytes();continue}case 5:{if(K!==42)break;q.epochSignature=J.bytes();continue}case 6:{if(K!==50)break;q.epochRootKeyFingerprint=J.bytes();continue}case 7:{if(K!==58)break;q.epochRootKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return I8.fromPartial($??{})},fromPartial($){let Q=fU();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 _U(){return{}}var r={encode($,Q=new H){if($.epochNumber!==void 0)Q.uint32(8).uint64($.epochNumber);if($.userFbid!==void 0)Q.uint32(18).string($.userFbid);if($.mailboxSigningPk!==void 0)Q.uint32(26).bytes($.mailboxSigningPk);if($.mailboxEncryptionPk!==void 0)Q.uint32(34).bytes($.mailboxEncryptionPk);if($.mailboxAuthPk!==void 0)Q.uint32(42).bytes($.mailboxAuthPk);if($.previousEpochHead!==void 0)Q.uint32(50).bytes($.previousEpochHead);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_U();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.epochNumber=J.uint64Value();continue}case 2:{if(K!==18)break;q.userFbid=J.string();continue}case 3:{if(K!==26)break;q.mailboxSigningPk=J.bytes();continue}case 4:{if(K!==34)break;q.mailboxEncryptionPk=J.bytes();continue}case 5:{if(K!==42)break;q.mailboxAuthPk=J.bytes();continue}case 6:{if(K!==50)break;q.previousEpochHead=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return r.fromPartial($??{})},fromPartial($){let Q=_U();return Q.epochNumber=$.epochNumber??void 0,Q.userFbid=$.userFbid??void 0,Q.mailboxSigningPk=$.mailboxSigningPk??void 0,Q.mailboxEncryptionPk=$.mailboxEncryptionPk??void 0,Q.mailboxAuthPk=$.mailboxAuthPk??void 0,Q.previousEpochHead=$.previousEpochHead??void 0,Q}};function hU(){return{}}var xQ={encode($,Q=new H){if($.selfSignature!==void 0)Q.uint32(10).bytes($.selfSignature);if($.prevSignature!==void 0)Q.uint32(18).bytes($.prevSignature);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.selfSignature=J.bytes();continue}case 2:{if(K!==18)break;q.prevSignature=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return xQ.fromPartial($??{})},fromPartial($){let Q=hU();return Q.selfSignature=$.selfSignature??void 0,Q.prevSignature=$.prevSignature??void 0,Q}};function lU(){return{}}var T8={encode($,Q=new H){if($.isStale!==void 0)Q.uint32(8).bool($.isStale);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isStale=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return T8.fromPartial($??{})},fromPartial($){let Q=lU();return Q.isStale=$.isStale??void 0,Q}};function pU(){return{}}var y8={encode($,Q=new H){if($.eventResponseMessageKey!==void 0)B.encode($.eventResponseMessageKey,Q.uint32(10).fork()).join();if($.timestampMs!==void 0)Q.uint32(16).int64($.timestampMs);if($.eventResponseMessage!==void 0)p$.encode($.eventResponseMessage,Q.uint32(26).fork()).join();if($.unread!==void 0)Q.uint32(32).bool($.unread);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.eventResponseMessageKey=B.decode(J,J.uint32(),q.eventResponseMessageKey);continue}case 2:{if(K!==16)break;q.timestampMs=J.int64Value();continue}case 3:{if(K!==26)break;q.eventResponseMessage=p$.decode(J,J.uint32(),q.eventResponseMessage);continue}case 4:{if(K!==32)break;q.unread=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return y8.fromPartial($??{})},fromPartial($){let Q=pU();return Q.eventResponseMessageKey=$.eventResponseMessageKey!==void 0&&$.eventResponseMessageKey!==null?B.fromPartial($.eventResponseMessageKey):void 0,Q.timestampMs=$.timestampMs??void 0,Q.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?p$.fromPartial($.eventResponseMessage):void 0,Q.unread=$.unread??void 0,Q}};function uU(){return{}}var oQ={encode($,Q=new H){if($.code!==void 0)Q.uint32(8).uint64($.code);if($.text!==void 0)Q.uint32(18).string($.text);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.code=J.uint64Value();continue}case 2:{if(K!==18)break;q.text=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return oQ.fromPartial($??{})},fromPartial($){let Q=uU();return Q.code=$.code??void 0,Q.text=$.text??void 0,Q}};function wU(){return{}}var uA={encode($,Q=new H){if($.associatedMessage!==void 0)n.encode($.associatedMessage,Q.uint32(10).fork()).join();if($.targetType!==void 0)Q.uint32(16).int32($.targetType);if($.targetUsername!==void 0)Q.uint32(26).string($.targetUsername);if($.targetId!==void 0)Q.uint32(34).string($.targetId);if($.targetExpiringAtSec!==void 0)Q.uint32(40).int64($.targetExpiringAtSec);if($.xmaLayoutType!==void 0)Q.uint32(48).int32($.xmaLayoutType);if($.ctas!==void 0&&$.ctas.length!==0)for(let Z of $.ctas)v8.encode(Z,Q.uint32(58).fork()).join();if($.previews!==void 0&&$.previews.length!==0)for(let Z of $.previews)n.encode(Z,Q.uint32(66).fork()).join();if($.titleText!==void 0)Q.uint32(74).string($.titleText);if($.subtitleText!==void 0)Q.uint32(82).string($.subtitleText);if($.maxTitleNumOfLines!==void 0)Q.uint32(88).uint32($.maxTitleNumOfLines);if($.maxSubtitleNumOfLines!==void 0)Q.uint32(96).uint32($.maxSubtitleNumOfLines);if($.favicon!==void 0)n.encode($.favicon,Q.uint32(106).fork()).join();if($.headerImage!==void 0)n.encode($.headerImage,Q.uint32(114).fork()).join();if($.headerTitle!==void 0)Q.uint32(122).string($.headerTitle);if($.overlayIconGlyph!==void 0)Q.uint32(128).int32($.overlayIconGlyph);if($.overlayTitle!==void 0)Q.uint32(138).string($.overlayTitle);if($.overlayDescription!==void 0)Q.uint32(146).string($.overlayDescription);if($.sentWithMessageId!==void 0)Q.uint32(154).string($.sentWithMessageId);if($.messageText!==void 0)Q.uint32(162).string($.messageText);if($.headerSubtitle!==void 0)Q.uint32(170).string($.headerSubtitle);if($.xmaDataclass!==void 0)Q.uint32(178).string($.xmaDataclass);if($.contentRef!==void 0)Q.uint32(186).string($.contentRef);if($.mentionedJid!==void 0&&$.mentionedJid.length!==0)for(let Z of $.mentionedJid)Q.uint32(194).string(Z);if($.commands!==void 0&&$.commands.length!==0)for(let Z of $.commands)zQ.encode(Z,Q.uint32(202).fork()).join();if($.mentions!==void 0&&$.mentions.length!==0)for(let Z of $.mentions)NQ.encode(Z,Q.uint32(210).fork()).join();if($.xmaDataclassType!==void 0)Q.uint32(216).int32($.xmaDataclassType);if($.signedXmaDataclassValidation!==void 0)Q.uint32(226).string($.signedXmaDataclassValidation);if($.featureSharedSessionId!==void 0)Q.uint32(234).string($.featureSharedSessionId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.associatedMessage=n.decode(J,J.uint32(),q.associatedMessage);continue}case 2:{if(K!==16)break;q.targetType=J.int32();continue}case 3:{if(K!==26)break;q.targetUsername=J.string();continue}case 4:{if(K!==34)break;q.targetId=J.string();continue}case 5:{if(K!==40)break;q.targetExpiringAtSec=J.int64Value();continue}case 6:{if(K!==48)break;q.xmaLayoutType=J.int32();continue}case 7:{if(K!==58)break;if(q.ctas===void 0)q.ctas=[];let V=v8.decode(J,J.uint32());if(V!==void 0)q.ctas.push(V);continue}case 8:{if(K!==66)break;if(q.previews===void 0)q.previews=[];let V=n.decode(J,J.uint32());if(V!==void 0)q.previews.push(V);continue}case 9:{if(K!==74)break;q.titleText=J.string();continue}case 10:{if(K!==82)break;q.subtitleText=J.string();continue}case 11:{if(K!==88)break;q.maxTitleNumOfLines=J.uint32();continue}case 12:{if(K!==96)break;q.maxSubtitleNumOfLines=J.uint32();continue}case 13:{if(K!==106)break;q.favicon=n.decode(J,J.uint32(),q.favicon);continue}case 14:{if(K!==114)break;q.headerImage=n.decode(J,J.uint32(),q.headerImage);continue}case 15:{if(K!==122)break;q.headerTitle=J.string();continue}case 16:{if(K!==128)break;q.overlayIconGlyph=J.int32();continue}case 17:{if(K!==138)break;q.overlayTitle=J.string();continue}case 18:{if(K!==146)break;q.overlayDescription=J.string();continue}case 19:{if(K!==154)break;q.sentWithMessageId=J.string();continue}case 20:{if(K!==162)break;q.messageText=J.string();continue}case 21:{if(K!==170)break;q.headerSubtitle=J.string();continue}case 22:{if(K!==178)break;q.xmaDataclass=J.string();continue}case 23:{if(K!==186)break;q.contentRef=J.string();continue}case 24:{if(K!==194)break;if(q.mentionedJid===void 0)q.mentionedJid=[];let V=J.string();if(V!==void 0)q.mentionedJid.push(V);continue}case 25:{if(K!==202)break;if(q.commands===void 0)q.commands=[];let V=zQ.decode(J,J.uint32());if(V!==void 0)q.commands.push(V);continue}case 26:{if(K!==210)break;if(q.mentions===void 0)q.mentions=[];let V=NQ.decode(J,J.uint32());if(V!==void 0)q.mentions.push(V);continue}case 27:{if(K!==216)break;q.xmaDataclassType=J.int32();continue}case 28:{if(K!==226)break;q.signedXmaDataclassValidation=J.string();continue}case 29:{if(K!==234)break;q.featureSharedSessionId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return uA.fromPartial($??{})},fromPartial($){let Q=wU();return Q.associatedMessage=$.associatedMessage!==void 0&&$.associatedMessage!==null?n.fromPartial($.associatedMessage):void 0,Q.targetType=$.targetType??void 0,Q.targetUsername=$.targetUsername??void 0,Q.targetId=$.targetId??void 0,Q.targetExpiringAtSec=$.targetExpiringAtSec??void 0,Q.xmaLayoutType=$.xmaLayoutType??void 0,Q.ctas=$.ctas?.map((Z)=>v8.fromPartial(Z))||void 0,Q.previews=$.previews?.map((Z)=>n.fromPartial(Z))||void 0,Q.titleText=$.titleText??void 0,Q.subtitleText=$.subtitleText??void 0,Q.maxTitleNumOfLines=$.maxTitleNumOfLines??void 0,Q.maxSubtitleNumOfLines=$.maxSubtitleNumOfLines??void 0,Q.favicon=$.favicon!==void 0&&$.favicon!==null?n.fromPartial($.favicon):void 0,Q.headerImage=$.headerImage!==void 0&&$.headerImage!==null?n.fromPartial($.headerImage):void 0,Q.headerTitle=$.headerTitle??void 0,Q.overlayIconGlyph=$.overlayIconGlyph??void 0,Q.overlayTitle=$.overlayTitle??void 0,Q.overlayDescription=$.overlayDescription??void 0,Q.sentWithMessageId=$.sentWithMessageId??void 0,Q.messageText=$.messageText??void 0,Q.headerSubtitle=$.headerSubtitle??void 0,Q.xmaDataclass=$.xmaDataclass??void 0,Q.contentRef=$.contentRef??void 0,Q.mentionedJid=$.mentionedJid?.map((Z)=>Z)||void 0,Q.commands=$.commands?.map((Z)=>zQ.fromPartial(Z))||void 0,Q.mentions=$.mentions?.map((Z)=>NQ.fromPartial(Z))||void 0,Q.xmaDataclassType=$.xmaDataclassType??void 0,Q.signedXmaDataclassValidation=$.signedXmaDataclassValidation??void 0,Q.featureSharedSessionId=$.featureSharedSessionId??void 0,Q}};function jU(){return{}}var v8={encode($,Q=new H){if($.buttonType!==void 0)Q.uint32(8).int32($.buttonType);if($.title!==void 0)Q.uint32(18).string($.title);if($.actionUrl!==void 0)Q.uint32(26).string($.actionUrl);if($.nativeUrl!==void 0)Q.uint32(34).string($.nativeUrl);if($.ctaType!==void 0)Q.uint32(42).string($.ctaType);if($.actionContentBlob!==void 0)Q.uint32(50).string($.actionContentBlob);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.buttonType=J.int32();continue}case 2:{if(K!==18)break;q.title=J.string();continue}case 3:{if(K!==26)break;q.actionUrl=J.string();continue}case 4:{if(K!==34)break;q.nativeUrl=J.string();continue}case 5:{if(K!==42)break;q.ctaType=J.string();continue}case 6:{if(K!==50)break;q.actionContentBlob=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return v8.fromPartial($??{})},fromPartial($){let Q=jU();return Q.buttonType=$.buttonType??void 0,Q.title=$.title??void 0,Q.actionUrl=$.actionUrl??void 0,Q.nativeUrl=$.nativeUrl??void 0,Q.ctaType=$.ctaType??void 0,Q.actionContentBlob=$.actionContentBlob??void 0,Q}};function cU(){return{}}var iQ={encode($,Q=new H){if($.mediaKey!==void 0)Q.uint32(10).bytes($.mediaKey);if($.directPath!==void 0)Q.uint32(18).string($.directPath);if($.handle!==void 0)Q.uint32(26).string($.handle);if($.fileSizeBytes!==void 0)Q.uint32(32).uint64($.fileSizeBytes);if($.fileSha256!==void 0)Q.uint32(42).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(50).bytes($.fileEncSha256);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mediaKey=J.bytes();continue}case 2:{if(K!==18)break;q.directPath=J.string();continue}case 3:{if(K!==26)break;q.handle=J.string();continue}case 4:{if(K!==32)break;q.fileSizeBytes=J.uint64Value();continue}case 5:{if(K!==42)break;q.fileSha256=J.bytes();continue}case 6:{if(K!==50)break;q.fileEncSha256=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return iQ.fromPartial($??{})},fromPartial($){let Q=cU();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 dU(){return{}}var l$={encode($,Q=new H){if($.minVersion!==void 0)Q.uint32(8).uint32($.minVersion);if($.maxVersion!==void 0)Q.uint32(16).uint32($.maxVersion);if($.notReportableMinVersion!==void 0)Q.uint32(24).uint32($.notReportableMinVersion);if($.isMessage!==void 0)Q.uint32(32).bool($.isMessage);return globalThis.Object.entries($.subfield||{}).forEach(([Z,J])=>{v5.encode({key:Z,value:J},Q.uint32(42).fork()).join()}),Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.minVersion=J.uint32();continue}case 2:{if(K!==16)break;q.maxVersion=J.uint32();continue}case 3:{if(K!==24)break;q.notReportableMinVersion=J.uint32();continue}case 4:{if(K!==32)break;q.isMessage=J.bool();continue}case 5:{if(K!==42)break;let V=v5.decode(J,J.uint32());if(V.value!==void 0&&V.key!==void 0){if(q.subfield===void 0)q.subfield={};q.subfield[V.key]=V.value}continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return l$.fromPartial($??{})},fromPartial($){let Q=dU();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,[J,X])=>{if(X!==void 0)Z[globalThis.Number(J)]=l$.fromPartial(X);return Z},{}),Q}};function nU(){return{}}var v5={encode($,Q=new H){if($.key!==void 0)Q.uint32(8).uint32($.key);if($.value!==void 0)l$.encode($.value,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.key=J.uint32();continue}case 2:{if(K!==18)break;q.value=l$.decode(J,J.uint32(),q.value);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return v5.fromPartial($??{})},fromPartial($){let Q=nU();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?l$.fromPartial($.value):void 0,Q}};function bU(){return{}}var r$={encode($,Q=new H){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.pnIdentifier!==void 0)Q.uint32(18).bytes($.pnIdentifier);if($.lidIdentifier!==void 0)Q.uint32(26).bytes($.lidIdentifier);if($.usernameIdentifier!==void 0)Q.uint32(34).bytes($.usernameIdentifier);if($.hostedState!==void 0)Q.uint32(40).int32($.hostedState);if($.hashedPublicKey!==void 0)Q.uint32(50).bytes($.hashedPublicKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.publicKey=J.bytes();continue}case 2:{if(K!==18)break;q.pnIdentifier=J.bytes();continue}case 3:{if(K!==26)break;q.lidIdentifier=J.bytes();continue}case 4:{if(K!==34)break;q.usernameIdentifier=J.bytes();continue}case 5:{if(K!==40)break;q.hostedState=J.int32();continue}case 6:{if(K!==50)break;q.hashedPublicKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return r$.fromPartial($??{})},fromPartial($){let Q=bU();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 oU(){return{}}var f8={encode($,Q=new H){if($.botName!==void 0)Q.uint32(10).string($.botName);if($.botJid!==void 0)Q.uint32(18).string($.botJid);if($.creatorName!==void 0)Q.uint32(26).string($.creatorName);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.botName=J.string();continue}case 2:{if(K!==18)break;q.botJid=J.string();continue}case 3:{if(K!==26)break;q.creatorName=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return f8.fromPartial($??{})},fromPartial($){let Q=oU();return Q.botName=$.botName??void 0,Q.botJid=$.botJid??void 0,Q.creatorName=$.creatorName??void 0,Q}};function iU(){return{}}var _8={encode($,Q=new H){if($.epochHeads!==void 0&&$.epochHeads.length!==0)for(let Z of $.epochHeads)Q.uint32(10).bytes(Z);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.epochHeads===void 0)q.epochHeads=[];let V=J.bytes();if(V!==void 0)q.epochHeads.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _8.fromPartial($??{})},fromPartial($){let Q=iU();return Q.epochHeads=$.epochHeads?.map((Z)=>Z)||void 0,Q}};function mU(){return{}}var wA={encode($,Q=new H){if($.mek!==void 0)M$.encode($.mek,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mek=M$.decode(J,J.uint32(),q.mek);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return wA.fromPartial($??{})},fromPartial($){let Q=mU();return Q.mek=$.mek!==void 0&&$.mek!==null?M$.fromPartial($.mek):void 0,Q}};function gU(){return{}}var h8={encode($,Q=new H){if($.epochHeads!==void 0&&$.epochHeads.length!==0)for(let Z of $.epochHeads)Q.uint32(10).bytes(Z);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.epochHeads===void 0)q.epochHeads=[];let V=J.bytes();if(V!==void 0)q.epochHeads.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return h8.fromPartial($??{})},fromPartial($){let Q=gU();return Q.epochHeads=$.epochHeads?.map((Z)=>Z)||void 0,Q}};function rU(){return{}}var jA={encode($,Q=new H){if($.rosterHash!==void 0)Q.uint32(10).bytes($.rosterHash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.rosterHash=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return jA.fromPartial($??{})},fromPartial($){let Q=rU();return Q.rosterHash=$.rosterHash??void 0,Q}};function tU(){return{}}var l8={encode($,Q=new H){if($.lightThemeWallpaper!==void 0)O$.encode($.lightThemeWallpaper,Q.uint32(10).fork()).join();if($.mediaVisibility!==void 0)Q.uint32(16).int32($.mediaVisibility);if($.darkThemeWallpaper!==void 0)O$.encode($.darkThemeWallpaper,Q.uint32(26).fork()).join();if($.autoDownloadWiFi!==void 0)P$.encode($.autoDownloadWiFi,Q.uint32(34).fork()).join();if($.autoDownloadCellular!==void 0)P$.encode($.autoDownloadCellular,Q.uint32(42).fork()).join();if($.autoDownloadRoaming!==void 0)P$.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)i0.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)QQ.encode($.individualNotificationSettings,Q.uint32(138).fork()).join();if($.groupNotificationSettings!==void 0)QQ.encode($.groupNotificationSettings,Q.uint32(146).fork()).join();if($.chatLockSettings!==void 0)HQ.encode($.chatLockSettings,Q.uint32(154).fork()).join();if($.chatDbLidMigrationTimestamp!==void 0)Q.uint32(160).int64($.chatDbLidMigrationTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.lightThemeWallpaper=O$.decode(J,J.uint32(),q.lightThemeWallpaper);continue}case 2:{if(K!==16)break;q.mediaVisibility=J.int32();continue}case 3:{if(K!==26)break;q.darkThemeWallpaper=O$.decode(J,J.uint32(),q.darkThemeWallpaper);continue}case 4:{if(K!==34)break;q.autoDownloadWiFi=P$.decode(J,J.uint32(),q.autoDownloadWiFi);continue}case 5:{if(K!==42)break;q.autoDownloadCellular=P$.decode(J,J.uint32(),q.autoDownloadCellular);continue}case 6:{if(K!==50)break;q.autoDownloadRoaming=P$.decode(J,J.uint32(),q.autoDownloadRoaming);continue}case 7:{if(K!==56)break;q.showIndividualNotificationsPreview=J.bool();continue}case 8:{if(K!==64)break;q.showGroupNotificationsPreview=J.bool();continue}case 9:{if(K!==72)break;q.disappearingModeDuration=J.int32();continue}case 10:{if(K!==80)break;q.disappearingModeTimestamp=J.int64Value();continue}case 11:{if(K!==90)break;q.avatarUserSettings=i0.decode(J,J.uint32(),q.avatarUserSettings);continue}case 12:{if(K!==96)break;q.fontSize=J.int32();continue}case 13:{if(K!==104)break;q.securityNotifications=J.bool();continue}case 14:{if(K!==112)break;q.autoUnarchiveChats=J.bool();continue}case 15:{if(K!==120)break;q.videoQualityMode=J.int32();continue}case 16:{if(K!==128)break;q.photoQualityMode=J.int32();continue}case 17:{if(K!==138)break;q.individualNotificationSettings=QQ.decode(J,J.uint32(),q.individualNotificationSettings);continue}case 18:{if(K!==146)break;q.groupNotificationSettings=QQ.decode(J,J.uint32(),q.groupNotificationSettings);continue}case 19:{if(K!==154)break;q.chatLockSettings=HQ.decode(J,J.uint32(),q.chatLockSettings);continue}case 20:{if(K!==160)break;q.chatDbLidMigrationTimestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return l8.fromPartial($??{})},fromPartial($){let Q=tU();return Q.lightThemeWallpaper=$.lightThemeWallpaper!==void 0&&$.lightThemeWallpaper!==null?O$.fromPartial($.lightThemeWallpaper):void 0,Q.mediaVisibility=$.mediaVisibility??void 0,Q.darkThemeWallpaper=$.darkThemeWallpaper!==void 0&&$.darkThemeWallpaper!==null?O$.fromPartial($.darkThemeWallpaper):void 0,Q.autoDownloadWiFi=$.autoDownloadWiFi!==void 0&&$.autoDownloadWiFi!==null?P$.fromPartial($.autoDownloadWiFi):void 0,Q.autoDownloadCellular=$.autoDownloadCellular!==void 0&&$.autoDownloadCellular!==null?P$.fromPartial($.autoDownloadCellular):void 0,Q.autoDownloadRoaming=$.autoDownloadRoaming!==void 0&&$.autoDownloadRoaming!==null?P$.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?i0.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?QQ.fromPartial($.individualNotificationSettings):void 0,Q.groupNotificationSettings=$.groupNotificationSettings!==void 0&&$.groupNotificationSettings!==null?QQ.fromPartial($.groupNotificationSettings):void 0,Q.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?HQ.fromPartial($.chatLockSettings):void 0,Q.chatDbLidMigrationTimestamp=$.chatDbLidMigrationTimestamp??void 0,Q}};function aU(){return{}}var cA={encode($,Q=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)g.encode(Z,Q.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let Z of $.uncountedAssociatedMessageLists)C5.encode(Z,Q.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let Z of $.commentMessages)g.encode(Z,Q.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let Z of $.outOfWindowPinnedMessages)g.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??aU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.messages===void 0)q.messages=[];let V=g.decode(J,J.uint32());if(V!==void 0)q.messages.push(V);continue}case 2:{if(K!==18)break;if(q.uncountedAssociatedMessageLists===void 0)q.uncountedAssociatedMessageLists=[];let V=C5.decode(J,J.uint32());if(V!==void 0)q.uncountedAssociatedMessageLists.push(V);continue}case 3:{if(K!==26)break;if(q.commentMessages===void 0)q.commentMessages=[];let V=g.decode(J,J.uint32());if(V!==void 0)q.commentMessages.push(V);continue}case 4:{if(K!==34)break;if(q.outOfWindowPinnedMessages===void 0)q.outOfWindowPinnedMessages=[];let V=g.decode(J,J.uint32());if(V!==void 0)q.outOfWindowPinnedMessages.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return cA.fromPartial($??{})},fromPartial($){let Q=aU();return Q.messages=$.messages?.map((Z)=>g.fromPartial(Z))||void 0,Q.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((Z)=>C5.fromPartial(Z))||void 0,Q.commentMessages=$.commentMessages?.map((Z)=>g.fromPartial(Z))||void 0,Q.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((Z)=>g.fromPartial(Z))||void 0,Q}};function sU(){return{}}var p8={encode($,Q=new H){if($.deprecatedMessageHistoryBundle!==void 0)WQ.encode($.deprecatedMessageHistoryBundle,Q.uint32(10).fork()).join();if($.processState!==void 0)Q.uint32(16).int32($.processState);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.deprecatedMessageHistoryBundle=WQ.decode(J,J.uint32(),q.deprecatedMessageHistoryBundle);continue}case 2:{if(K!==16)break;q.processState=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return p8.fromPartial($??{})},fromPartial($){let Q=sU();return Q.deprecatedMessageHistoryBundle=$.deprecatedMessageHistoryBundle!==void 0&&$.deprecatedMessageHistoryBundle!==null?WQ.fromPartial($.deprecatedMessageHistoryBundle):void 0,Q.processState=$.processState??void 0,Q}};function eU(){return{}}var u8={encode($,Q=new H){if($.bundleMessageKey!==void 0)B.encode($.bundleMessageKey,Q.uint32(10).fork()).join();if($.editedAfterReceivedAsHistory!==void 0)Q.uint32(16).bool($.editedAfterReceivedAsHistory);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??eU();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.bundleMessageKey=B.decode(J,J.uint32(),q.bundleMessageKey);continue}case 2:{if(K!==16)break;q.editedAfterReceivedAsHistory=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return u8.fromPartial($??{})},fromPartial($){let Q=eU();return Q.bundleMessageKey=$.bundleMessageKey!==void 0&&$.bundleMessageKey!==null?B.fromPartial($.bundleMessageKey):void 0,Q.editedAfterReceivedAsHistory=$.editedAfterReceivedAsHistory??void 0,Q}};function $C(){return{}}var dA={encode($,Q=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)Y$.encode(Z,Q.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let Z of $.uncountedAssociatedMessageLists)D5.encode(Z,Q.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let Z of $.commentMessages)Y$.encode(Z,Q.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let Z of $.outOfWindowPinnedMessages)Y$.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$C();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.messages===void 0)q.messages=[];let V=Y$.decode(J,J.uint32());if(V!==void 0)q.messages.push(V);continue}case 2:{if(K!==18)break;if(q.uncountedAssociatedMessageLists===void 0)q.uncountedAssociatedMessageLists=[];let V=D5.decode(J,J.uint32());if(V!==void 0)q.uncountedAssociatedMessageLists.push(V);continue}case 3:{if(K!==26)break;if(q.commentMessages===void 0)q.commentMessages=[];let V=Y$.decode(J,J.uint32());if(V!==void 0)q.commentMessages.push(V);continue}case 4:{if(K!==34)break;if(q.outOfWindowPinnedMessages===void 0)q.outOfWindowPinnedMessages=[];let V=Y$.decode(J,J.uint32());if(V!==void 0)q.outOfWindowPinnedMessages.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return dA.fromPartial($??{})},fromPartial($){let Q=$C();return Q.messages=$.messages?.map((Z)=>Y$.fromPartial(Z))||void 0,Q.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((Z)=>D5.fromPartial(Z))||void 0,Q.commentMessages=$.commentMessages?.map((Z)=>Y$.fromPartial(Z))||void 0,Q.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((Z)=>Y$.fromPartial(Z))||void 0,Q}};function QC(){return{}}var w8={encode($,Q=new H){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.groupSubject!==void 0)Q.uint32(18).string($.groupSubject);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??QC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.groupJid=J.string();continue}case 2:{if(K!==18)break;q.groupSubject=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return w8.fromPartial($??{})},fromPartial($){let Q=QC();return Q.groupJid=$.groupJid??void 0,Q.groupSubject=$.groupSubject??void 0,Q}};function JC(){return{}}var j8={encode($,Q=new H){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.rank!==void 0)Q.uint32(16).int32($.rank);if($.memberLabel!==void 0)W$.encode($.memberLabel,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??JC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.userJid=J.string();continue}case 2:{if(K!==16)break;q.rank=J.int32();continue}case 3:{if(K!==26)break;q.memberLabel=W$.decode(J,J.uint32(),q.memberLabel);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return j8.fromPartial($??{})},fromPartial($){let Q=JC();return Q.userJid=$.userJid??void 0,Q.rank=$.rank??void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?W$.fromPartial($.memberLabel):void 0,Q}};function KC(){return{}}var c8={encode($,Q=new H){if($.keys!==void 0&&$.keys.length!==0)for(let Z of $.keys)d8.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??KC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.keys===void 0)q.keys=[];let V=d8.decode(J,J.uint32());if(V!==void 0)q.keys.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return c8.fromPartial($??{})},fromPartial($){let Q=KC();return Q.keys=$.keys?.map((Z)=>d8.fromPartial(Z))||void 0,Q}};function qC(){return{}}var d8={encode($,Q=new H){if($.groupRootKey!==void 0)Q.uint32(10).bytes($.groupRootKey);if($.keyId!==void 0)Q.uint32(18).string($.keyId);if($.expiryTimestampMs!==void 0)Q.uint32(24).int64($.expiryTimestampMs);if($.createdTimestampMs!==void 0)Q.uint32(32).int64($.createdTimestampMs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.groupRootKey=J.bytes();continue}case 2:{if(K!==18)break;q.keyId=J.string();continue}case 3:{if(K!==24)break;q.expiryTimestampMs=J.int64Value();continue}case 4:{if(K!==32)break;q.createdTimestampMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return d8.fromPartial($??{})},fromPartial($){let Q=qC();return Q.groupRootKey=$.groupRootKey??void 0,Q.keyId=$.keyId??void 0,Q.expiryTimestampMs=$.expiryTimestampMs??void 0,Q.createdTimestampMs=$.createdTimestampMs??void 0,Q}};function ZC(){return{}}var d5={encode($,Q=new H){if($.clientHello!==void 0)b8.encode($.clientHello,Q.uint32(18).fork()).join();if($.serverHello!==void 0)o8.encode($.serverHello,Q.uint32(26).fork()).join();if($.clientFinish!==void 0)n8.encode($.clientFinish,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ZC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 2:{if(K!==18)break;q.clientHello=b8.decode(J,J.uint32(),q.clientHello);continue}case 3:{if(K!==26)break;q.serverHello=o8.decode(J,J.uint32(),q.serverHello);continue}case 4:{if(K!==34)break;q.clientFinish=n8.decode(J,J.uint32(),q.clientFinish);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return d5.fromPartial($??{})},fromPartial($){let Q=ZC();return Q.clientHello=$.clientHello!==void 0&&$.clientHello!==null?b8.fromPartial($.clientHello):void 0,Q.serverHello=$.serverHello!==void 0&&$.serverHello!==null?o8.fromPartial($.serverHello):void 0,Q.clientFinish=$.clientFinish!==void 0&&$.clientFinish!==null?n8.fromPartial($.clientFinish):void 0,Q}};function XC(){return{}}var n8={encode($,Q=new H){if($.static!==void 0)Q.uint32(10).bytes($.static);if($.payload!==void 0)Q.uint32(18).bytes($.payload);if($.extendedCiphertext!==void 0)Q.uint32(26).bytes($.extendedCiphertext);if($.paddedBytes!==void 0)Q.uint32(34).bytes($.paddedBytes);if($.simulateXxkemFs!==void 0)Q.uint32(40).bool($.simulateXxkemFs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??XC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.static=J.bytes();continue}case 2:{if(K!==18)break;q.payload=J.bytes();continue}case 3:{if(K!==26)break;q.extendedCiphertext=J.bytes();continue}case 4:{if(K!==34)break;q.paddedBytes=J.bytes();continue}case 5:{if(K!==40)break;q.simulateXxkemFs=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return n8.fromPartial($??{})},fromPartial($){let Q=XC();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 YC(){return{}}var b8={encode($,Q=new H){if($.ephemeral!==void 0)Q.uint32(10).bytes($.ephemeral);if($.static!==void 0)Q.uint32(18).bytes($.static);if($.payload!==void 0)Q.uint32(26).bytes($.payload);if($.useExtended!==void 0)Q.uint32(32).bool($.useExtended);if($.extendedCiphertext!==void 0)Q.uint32(42).bytes($.extendedCiphertext);if($.paddedBytes!==void 0)Q.uint32(50).bytes($.paddedBytes);if($.sendServerHelloPaddedBytes!==void 0)Q.uint32(56).bool($.sendServerHelloPaddedBytes);if($.simulateXxkemFs!==void 0)Q.uint32(64).bool($.simulateXxkemFs);if($.pqMode!==void 0)Q.uint32(72).int32($.pqMode);if($.extendedEphemeral!==void 0)Q.uint32(82).bytes($.extendedEphemeral);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??YC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.ephemeral=J.bytes();continue}case 2:{if(K!==18)break;q.static=J.bytes();continue}case 3:{if(K!==26)break;q.payload=J.bytes();continue}case 4:{if(K!==32)break;q.useExtended=J.bool();continue}case 5:{if(K!==42)break;q.extendedCiphertext=J.bytes();continue}case 6:{if(K!==50)break;q.paddedBytes=J.bytes();continue}case 7:{if(K!==56)break;q.sendServerHelloPaddedBytes=J.bool();continue}case 8:{if(K!==64)break;q.simulateXxkemFs=J.bool();continue}case 9:{if(K!==72)break;q.pqMode=J.int32();continue}case 10:{if(K!==82)break;q.extendedEphemeral=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return b8.fromPartial($??{})},fromPartial($){let Q=YC();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 VC(){return{}}var o8={encode($,Q=new H){if($.ephemeral!==void 0)Q.uint32(10).bytes($.ephemeral);if($.static!==void 0)Q.uint32(18).bytes($.static);if($.payload!==void 0)Q.uint32(26).bytes($.payload);if($.extendedStatic!==void 0)Q.uint32(34).bytes($.extendedStatic);if($.paddingBytes!==void 0)Q.uint32(42).bytes($.paddingBytes);if($.extendedCiphertext!==void 0)Q.uint32(50).bytes($.extendedCiphertext);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??VC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.ephemeral=J.bytes();continue}case 2:{if(K!==18)break;q.static=J.bytes();continue}case 3:{if(K!==26)break;q.payload=J.bytes();continue}case 4:{if(K!==34)break;q.extendedStatic=J.bytes();continue}case 5:{if(K!==42)break;q.paddingBytes=J.bytes();continue}case 6:{if(K!==50)break;q.extendedCiphertext=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return o8.fromPartial($??{})},fromPartial($){let Q=VC();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 HC(){return{}}var i8={encode($,Q=new H){if($.data!==void 0)Q.uint32(10).bytes($.data);if($.timestampMs!==void 0)Q.uint32(16).int64($.timestampMs);if($.requestId!==void 0)Q.uint32(26).string($.requestId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??HC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.data=J.bytes();continue}case 2:{if(K!==16)break;q.timestampMs=J.int64Value();continue}case 3:{if(K!==26)break;q.requestId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return i8.fromPartial($??{})},fromPartial($){let Q=HC();return Q.data=$.data??void 0,Q.timestampMs=$.timestampMs??void 0,Q.requestId=$.requestId??void 0,Q}};function zC(){return{}}var n5={encode($,Q=new H){if($.syncType!==void 0)Q.uint32(8).int32($.syncType);if($.conversations!==void 0&&$.conversations.length!==0)for(let Z of $.conversations)iK.encode(Z,Q.uint32(18).fork()).join();if($.statusV3Messages!==void 0&&$.statusV3Messages.length!==0)for(let Z of $.statusV3Messages)g.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)g6.encode(Z,Q.uint32(58).fork()).join();if($.globalSettings!==void 0)l8.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)E9.encode(Z,Q.uint32(90).fork()).join();if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let Z of $.pastParticipants)l6.encode(Z,Q.uint32(98).fork()).join();if($.callLogRecords!==void 0&&$.callLogRecords.length!==0)for(let Z of $.callLogRecords)VQ.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)u6.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)b0.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)Kq.encode(Z,Q.uint32(162).fork()).join();if($.inlineContactsProvided!==void 0)Q.uint32(168).bool($.inlineContactsProvided);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.syncType=J.int32();continue}case 2:{if(K!==18)break;if(q.conversations===void 0)q.conversations=[];let V=iK.decode(J,J.uint32());if(V!==void 0)q.conversations.push(V);continue}case 3:{if(K!==26)break;if(q.statusV3Messages===void 0)q.statusV3Messages=[];let V=g.decode(J,J.uint32());if(V!==void 0)q.statusV3Messages.push(V);continue}case 5:{if(K!==40)break;q.chunkOrder=J.uint32();continue}case 6:{if(K!==48)break;q.progress=J.uint32();continue}case 7:{if(K!==58)break;if(q.pushnames===void 0)q.pushnames=[];let V=g6.decode(J,J.uint32());if(V!==void 0)q.pushnames.push(V);continue}case 8:{if(K!==66)break;q.globalSettings=l8.decode(J,J.uint32(),q.globalSettings);continue}case 9:{if(K!==74)break;q.threadIdUserSecret=J.bytes();continue}case 10:{if(K!==80)break;q.threadDsTimeframeOffset=J.uint32();continue}case 11:{if(K!==90)break;if(q.recentStickers===void 0)q.recentStickers=[];let V=E9.decode(J,J.uint32());if(V!==void 0)q.recentStickers.push(V);continue}case 12:{if(K!==98)break;if(q.pastParticipants===void 0)q.pastParticipants=[];let V=l6.decode(J,J.uint32());if(V!==void 0)q.pastParticipants.push(V);continue}case 13:{if(K!==106)break;if(q.callLogRecords===void 0)q.callLogRecords=[];let V=VQ.decode(J,J.uint32());if(V!==void 0)q.callLogRecords.push(V);continue}case 14:{if(K!==112)break;q.aiWaitListState=J.int32();continue}case 15:{if(K!==122)break;if(q.phoneNumberToLidMappings===void 0)q.phoneNumberToLidMappings=[];let V=u6.decode(J,J.uint32());if(V!==void 0)q.phoneNumberToLidMappings.push(V);continue}case 16:{if(K!==130)break;q.companionMetaNonce=J.string();continue}case 17:{if(K!==138)break;q.shareableChatIdentifierEncryptionKey=J.bytes();continue}case 18:{if(K!==146)break;if(q.accounts===void 0)q.accounts=[];let V=b0.decode(J,J.uint32());if(V!==void 0)q.accounts.push(V);continue}case 19:{if(K!==154)break;q.nctSalt=J.bytes();continue}case 20:{if(K!==162)break;if(q.inlineContacts===void 0)q.inlineContacts=[];let V=Kq.decode(J,J.uint32());if(V!==void 0)q.inlineContacts.push(V);continue}case 21:{if(K!==168)break;q.inlineContactsProvided=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return n5.fromPartial($??{})},fromPartial($){let Q=zC();return Q.syncType=$.syncType??void 0,Q.conversations=$.conversations?.map((Z)=>iK.fromPartial(Z))||void 0,Q.statusV3Messages=$.statusV3Messages?.map((Z)=>g.fromPartial(Z))||void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.progress=$.progress??void 0,Q.pushnames=$.pushnames?.map((Z)=>g6.fromPartial(Z))||void 0,Q.globalSettings=$.globalSettings!==void 0&&$.globalSettings!==null?l8.fromPartial($.globalSettings):void 0,Q.threadIdUserSecret=$.threadIdUserSecret??void 0,Q.threadDsTimeframeOffset=$.threadDsTimeframeOffset??void 0,Q.recentStickers=$.recentStickers?.map((Z)=>E9.fromPartial(Z))||void 0,Q.pastParticipants=$.pastParticipants?.map((Z)=>l6.fromPartial(Z))||void 0,Q.callLogRecords=$.callLogRecords?.map((Z)=>VQ.fromPartial(Z))||void 0,Q.aiWaitListState=$.aiWaitListState??void 0,Q.phoneNumberToLidMappings=$.phoneNumberToLidMappings?.map((Z)=>u6.fromPartial(Z))||void 0,Q.companionMetaNonce=$.companionMetaNonce??void 0,Q.shareableChatIdentifierEncryptionKey=$.shareableChatIdentifierEncryptionKey??void 0,Q.accounts=$.accounts?.map((Z)=>b0.fromPartial(Z))||void 0,Q.nctSalt=$.nctSalt??void 0,Q.inlineContacts=$.inlineContacts?.map((Z)=>Kq.fromPartial(Z))||void 0,Q.inlineContactsProvided=$.inlineContactsProvided??void 0,Q}};function GC(){return{}}var m8={encode($,Q=new H){if($.message!==void 0)g.encode($.message,Q.uint32(10).fork()).join();if($.msgOrderId!==void 0)Q.uint32(16).uint64($.msgOrderId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??GC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.message=g.decode(J,J.uint32(),q.message);continue}case 2:{if(K!==16)break;q.msgOrderId=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return m8.fromPartial($??{})},fromPartial($){let Q=GC();return Q.message=$.message!==void 0&&$.message!==null?g.fromPartial($.message):void 0,Q.msgOrderId=$.msgOrderId??void 0,Q}};function UC(){return{}}var g8={encode($,Q=new H){if($.index!==void 0)Q.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)t8.encode($.quickReplyButton,Q.uint32(10).fork()).join();if($.urlButton!==void 0)a8.encode($.urlButton,Q.uint32(18).fork()).join();if($.callButton!==void 0)r8.encode($.callButton,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??UC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 4:{if(K!==32)break;q.index=J.uint32();continue}case 1:{if(K!==10)break;q.quickReplyButton=t8.decode(J,J.uint32(),q.quickReplyButton);continue}case 2:{if(K!==18)break;q.urlButton=a8.decode(J,J.uint32(),q.urlButton);continue}case 3:{if(K!==26)break;q.callButton=r8.decode(J,J.uint32(),q.callButton);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return g8.fromPartial($??{})},fromPartial($){let Q=UC();return Q.index=$.index??void 0,Q.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?t8.fromPartial($.quickReplyButton):void 0,Q.urlButton=$.urlButton!==void 0&&$.urlButton!==null?a8.fromPartial($.urlButton):void 0,Q.callButton=$.callButton!==void 0&&$.callButton!==null?r8.fromPartial($.callButton):void 0,Q}};function CC(){return{}}var r8={encode($,Q=new H){if($.displayText!==void 0)Q.uint32(10).string($.displayText);if($.phoneNumber!==void 0)Q.uint32(18).string($.phoneNumber);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??CC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayText=J.string();continue}case 2:{if(K!==18)break;q.phoneNumber=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return r8.fromPartial($??{})},fromPartial($){let Q=CC();return Q.displayText=$.displayText??void 0,Q.phoneNumber=$.phoneNumber??void 0,Q}};function DC(){return{}}var t8={encode($,Q=new H){if($.displayText!==void 0)Q.uint32(10).string($.displayText);if($.id!==void 0)Q.uint32(18).string($.id);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??DC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayText=J.string();continue}case 2:{if(K!==18)break;q.id=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return t8.fromPartial($??{})},fromPartial($){let Q=DC();return Q.displayText=$.displayText??void 0,Q.id=$.id??void 0,Q}};function FC(){return{}}var a8={encode($,Q=new H){if($.displayText!==void 0)Q.uint32(10).string($.displayText);if($.url!==void 0)Q.uint32(18).string($.url);if($.consentedUsersUrl!==void 0)Q.uint32(26).string($.consentedUsersUrl);if($.webviewPresentation!==void 0)Q.uint32(32).int32($.webviewPresentation);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??FC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayText=J.string();continue}case 2:{if(K!==18)break;q.url=J.string();continue}case 3:{if(K!==26)break;q.consentedUsersUrl=J.string();continue}case 4:{if(K!==32)break;q.webviewPresentation=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return a8.fromPartial($??{})},fromPartial($){let Q=FC();return Q.displayText=$.displayText??void 0,Q.url=$.url??void 0,Q.consentedUsersUrl=$.consentedUsersUrl??void 0,Q.webviewPresentation=$.webviewPresentation??void 0,Q}};function LC(){return{}}var nA={encode($,Q=new H){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.privateKey!==void 0)Q.uint32(18).bytes($.privateKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??LC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.publicKey=J.bytes();continue}case 2:{if(K!==18)break;q.privateKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return nA.fromPartial($??{})},fromPartial($){let Q=LC();return Q.publicKey=$.publicKey??void 0,Q.privateKey=$.privateKey??void 0,Q}};function PC(){return{}}var s8={encode($,Q=new H){if($.verified!==void 0)Q.uint32(8).bool($.verified);if($.actionSeq!==void 0)Q.uint32(16).uint64($.actionSeq);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??PC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.verified=J.bool();continue}case 2:{if(K!==16)break;q.actionSeq=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return s8.fromPartial($??{})},fromPartial($){let Q=PC();return Q.verified=$.verified??void 0,Q.actionSeq=$.actionSeq??void 0,Q}};function kC(){return{}}var e8={encode($,Q=new H){if($.tessaSessionId!==void 0)Q.uint32(10).string($.tessaSessionId);if($.simonSessionId!==void 0)Q.uint32(18).string($.simonSessionId);if($.simonSurveyId!==void 0)Q.uint32(26).string($.simonSurveyId);if($.tessaRootId!==void 0)Q.uint32(34).string($.tessaRootId);if($.requestId!==void 0)Q.uint32(42).string($.requestId);if($.tessaEvent!==void 0)Q.uint32(50).string($.tessaEvent);if($.invitationHeaderText!==void 0)Q.uint32(58).string($.invitationHeaderText);if($.invitationBodyText!==void 0)Q.uint32(66).string($.invitationBodyText);if($.invitationCtaText!==void 0)Q.uint32(74).string($.invitationCtaText);if($.invitationCtaUrl!==void 0)Q.uint32(82).string($.invitationCtaUrl);if($.surveyTitle!==void 0)Q.uint32(90).string($.surveyTitle);if($.questions!==void 0&&$.questions.length!==0)for(let Z of $.questions)Jq.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)Qq.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.tessaSessionId=J.string();continue}case 2:{if(K!==18)break;q.simonSessionId=J.string();continue}case 3:{if(K!==26)break;q.simonSurveyId=J.string();continue}case 4:{if(K!==34)break;q.tessaRootId=J.string();continue}case 5:{if(K!==42)break;q.requestId=J.string();continue}case 6:{if(K!==50)break;q.tessaEvent=J.string();continue}case 7:{if(K!==58)break;q.invitationHeaderText=J.string();continue}case 8:{if(K!==66)break;q.invitationBodyText=J.string();continue}case 9:{if(K!==74)break;q.invitationCtaText=J.string();continue}case 10:{if(K!==82)break;q.invitationCtaUrl=J.string();continue}case 11:{if(K!==90)break;q.surveyTitle=J.string();continue}case 12:{if(K!==98)break;if(q.questions===void 0)q.questions=[];let V=Jq.decode(J,J.uint32());if(V!==void 0)q.questions.push(V);continue}case 13:{if(K!==106)break;q.surveyContinueButtonText=J.string();continue}case 14:{if(K!==114)break;q.surveySubmitButtonText=J.string();continue}case 15:{if(K!==122)break;q.privacyStatementFull=J.string();continue}case 16:{if(K!==130)break;if(q.privacyStatementParts===void 0)q.privacyStatementParts=[];let V=Qq.decode(J,J.uint32());if(V!==void 0)q.privacyStatementParts.push(V);continue}case 17:{if(K!==138)break;q.feedbackToastText=J.string();continue}case 18:{if(K!==144)break;q.startQuestionIndex=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return e8.fromPartial($??{})},fromPartial($){let Q=kC();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)=>Jq.fromPartial(Z))||void 0,Q.surveyContinueButtonText=$.surveyContinueButtonText??void 0,Q.surveySubmitButtonText=$.surveySubmitButtonText??void 0,Q.privacyStatementFull=$.privacyStatementFull??void 0,Q.privacyStatementParts=$.privacyStatementParts?.map((Z)=>Qq.fromPartial(Z))||void 0,Q.feedbackToastText=$.feedbackToastText??void 0,Q.startQuestionIndex=$.startQuestionIndex??void 0,Q}};function xC(){return{}}var $q={encode($,Q=new H){if($.stringValue!==void 0)Q.uint32(10).string($.stringValue);if($.numericValue!==void 0)Q.uint32(16).uint32($.numericValue);if($.textTranslated!==void 0)Q.uint32(26).string($.textTranslated);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.stringValue=J.string();continue}case 2:{if(K!==16)break;q.numericValue=J.uint32();continue}case 3:{if(K!==26)break;q.textTranslated=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $q.fromPartial($??{})},fromPartial($){let Q=xC();return Q.stringValue=$.stringValue??void 0,Q.numericValue=$.numericValue??void 0,Q.textTranslated=$.textTranslated??void 0,Q}};function BC(){return{}}var Qq={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);if($.url!==void 0)Q.uint32(18).string($.url);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??BC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=J.string();continue}case 2:{if(K!==18)break;q.url=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Qq.fromPartial($??{})},fromPartial($){let Q=BC();return Q.text=$.text??void 0,Q.url=$.url??void 0,Q}};function NC(){return{}}var Jq={encode($,Q=new H){if($.questionText!==void 0)Q.uint32(10).string($.questionText);if($.questionId!==void 0)Q.uint32(18).string($.questionId);if($.questionOptions!==void 0&&$.questionOptions.length!==0)for(let Z of $.questionOptions)$q.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??NC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.questionText=J.string();continue}case 2:{if(K!==18)break;q.questionId=J.string();continue}case 3:{if(K!==26)break;if(q.questionOptions===void 0)q.questionOptions=[];let V=$q.decode(J,J.uint32());if(V!==void 0)q.questionOptions.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Jq.fromPartial($??{})},fromPartial($){let Q=NC();return Q.questionText=$.questionText??void 0,Q.questionId=$.questionId??void 0,Q.questionOptions=$.questionOptions?.map((Z)=>$q.fromPartial(Z))||void 0,Q}};function OC(){return{}}var Kq={encode($,Q=new H){if($.pnJid!==void 0)Q.uint32(10).string($.pnJid);if($.lidJid!==void 0)Q.uint32(18).string($.lidJid);if($.fullName!==void 0)Q.uint32(26).string($.fullName);if($.firstName!==void 0)Q.uint32(34).string($.firstName);if($.username!==void 0)Q.uint32(42).string($.username);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??OC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.pnJid=J.string();continue}case 2:{if(K!==18)break;q.lidJid=J.string();continue}case 3:{if(K!==26)break;q.fullName=J.string();continue}case 4:{if(K!==34)break;q.firstName=J.string();continue}case 5:{if(K!==42)break;q.username=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Kq.fromPartial($??{})},fromPartial($){let Q=OC();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 RC(){return{}}var V$={encode($,Q=new H){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let Z of $.polygonVertices)c6.encode(Z,Q.uint32(10).fork()).join();if($.shouldSkipConfirmation!==void 0)Q.uint32(32).bool($.shouldSkipConfirmation);if($.embeddedContent!==void 0)N8.encode($.embeddedContent,Q.uint32(42).fork()).join();if($.statusLinkType!==void 0)Q.uint32(64).int32($.statusLinkType);if($.location!==void 0)zq.encode($.location,Q.uint32(18).fork()).join();if($.newsletter!==void 0)PQ.encode($.newsletter,Q.uint32(26).fork()).join();if($.embeddedAction!==void 0)Q.uint32(48).bool($.embeddedAction);if($.tapAction!==void 0)Y5.encode($.tapAction,Q.uint32(58).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??RC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.polygonVertices===void 0)q.polygonVertices=[];let V=c6.decode(J,J.uint32());if(V!==void 0)q.polygonVertices.push(V);continue}case 4:{if(K!==32)break;q.shouldSkipConfirmation=J.bool();continue}case 5:{if(K!==42)break;q.embeddedContent=N8.decode(J,J.uint32(),q.embeddedContent);continue}case 8:{if(K!==64)break;q.statusLinkType=J.int32();continue}case 2:{if(K!==18)break;q.location=zq.decode(J,J.uint32(),q.location);continue}case 3:{if(K!==26)break;q.newsletter=PQ.decode(J,J.uint32(),q.newsletter);continue}case 6:{if(K!==48)break;q.embeddedAction=J.bool();continue}case 7:{if(K!==58)break;q.tapAction=Y5.decode(J,J.uint32(),q.tapAction);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return V$.fromPartial($??{})},fromPartial($){let Q=RC();return Q.polygonVertices=$.polygonVertices?.map((Z)=>c6.fromPartial(Z))||void 0,Q.shouldSkipConfirmation=$.shouldSkipConfirmation??void 0,Q.embeddedContent=$.embeddedContent!==void 0&&$.embeddedContent!==null?N8.fromPartial($.embeddedContent):void 0,Q.statusLinkType=$.statusLinkType??void 0,Q.location=$.location!==void 0&&$.location!==null?zq.fromPartial($.location):void 0,Q.newsletter=$.newsletter!==void 0&&$.newsletter!==null?PQ.fromPartial($.newsletter):void 0,Q.embeddedAction=$.embeddedAction??void 0,Q.tapAction=$.tapAction!==void 0&&$.tapAction!==null?Y5.fromPartial($.tapAction):void 0,Q}};function AC(){return{}}var qq={encode($,Q=new H){if($.isGalaxyFlowCompleted!==void 0)Q.uint32(8).bool($.isGalaxyFlowCompleted);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??AC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isGalaxyFlowCompleted=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return qq.fromPartial($??{})},fromPartial($){let Q=AC();return Q.isGalaxyFlowCompleted=$.isGalaxyFlowCompleted??void 0,Q}};function EC(){return{}}var Zq={encode($,Q=new H){if($.keepType!==void 0)Q.uint32(8).int32($.keepType);if($.serverTimestamp!==void 0)Q.uint32(16).int64($.serverTimestamp);if($.key!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??EC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.keepType=J.int32();continue}case 2:{if(K!==16)break;q.serverTimestamp=J.int64Value();continue}case 3:{if(K!==26)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 4:{if(K!==34)break;q.deviceJid=J.string();continue}case 5:{if(K!==40)break;q.clientTimestampMs=J.int64Value();continue}case 6:{if(K!==48)break;q.serverTimestampMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Zq.fromPartial($??{})},fromPartial($){let Q=EC();return Q.keepType=$.keepType??void 0,Q.serverTimestamp=$.serverTimestamp??void 0,Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.deviceJid=$.deviceJid??void 0,Q.clientTimestampMs=$.clientTimestampMs??void 0,Q.serverTimestampMs=$.serverTimestampMs??void 0,Q}};function MC(){return{}}var bA={encode($,Q=new H){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.baseKey!==void 0)Q.uint32(18).bytes($.baseKey);if($.ratchetKey!==void 0)Q.uint32(26).bytes($.ratchetKey);if($.identityKey!==void 0)Q.uint32(34).bytes($.identityKey);if($.baseKeySignature!==void 0)Q.uint32(42).bytes($.baseKeySignature);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??MC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.id=J.uint32();continue}case 2:{if(K!==18)break;q.baseKey=J.bytes();continue}case 3:{if(K!==26)break;q.ratchetKey=J.bytes();continue}case 4:{if(K!==34)break;q.identityKey=J.bytes();continue}case 5:{if(K!==42)break;q.baseKeySignature=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return bA.fromPartial($??{})},fromPartial($){let Q=MC();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 WC(){return{}}var E$={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).bytes($.id);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??WC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.id=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return E$.fromPartial($??{})},fromPartial($){let Q=WC();return Q.id=$.id??void 0,Q}};function SC(){return{}}var Xq={encode($,Q=new H){if($.encodedMappingPayload!==void 0)Q.uint32(10).bytes($.encodedMappingPayload);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??SC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encodedMappingPayload=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Xq.fromPartial($??{})},fromPartial($){let Q=SC();return Q.encodedMappingPayload=$.encodedMappingPayload??void 0,Q}};function IC(){return{}}var Yq={encode($,Q=new H){if($.pn!==void 0)Q.uint32(8).uint64($.pn);if($.assignedLid!==void 0)Q.uint32(16).uint64($.assignedLid);if($.latestLid!==void 0)Q.uint32(24).uint64($.latestLid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??IC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.pn=J.uint64Value();continue}case 2:{if(K!==16)break;q.assignedLid=J.uint64Value();continue}case 3:{if(K!==24)break;q.latestLid=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Yq.fromPartial($??{})},fromPartial($){let Q=IC();return Q.pn=$.pn??void 0,Q.assignedLid=$.assignedLid??void 0,Q.latestLid=$.latestLid??void 0,Q}};function TC(){return{}}var b5={encode($,Q=new H){if($.pnToLidMappings!==void 0&&$.pnToLidMappings.length!==0)for(let Z of $.pnToLidMappings)Yq.encode(Z,Q.uint32(10).fork()).join();if($.chatDbMigrationTimestamp!==void 0)Q.uint32(16).uint64($.chatDbMigrationTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??TC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.pnToLidMappings===void 0)q.pnToLidMappings=[];let V=Yq.decode(J,J.uint32());if(V!==void 0)q.pnToLidMappings.push(V);continue}case 2:{if(K!==16)break;q.chatDbMigrationTimestamp=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return b5.fromPartial($??{})},fromPartial($){let Q=TC();return Q.pnToLidMappings=$.pnToLidMappings?.map((Z)=>Yq.fromPartial(Z))||void 0,Q.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,Q}};function yC(){return{}}var oA={encode($,Q=new H){if($.createBackupInput!==void 0)mK.encode($.createBackupInput,Q.uint32(10).fork()).join();if($.encryptMessageInput!==void 0)W8.encode($.encryptMessageInput,Q.uint32(18).fork()).join();if($.decryptMessageInput!==void 0)eK.encode($.decryptMessageInput,Q.uint32(26).fork()).join();if($.orfThreadIdInput!==void 0)_6.encode($.orfThreadIdInput,Q.uint32(34).fork()).join();if($.deriveMessageKeyInput!==void 0)V8.encode($.deriveMessageKeyInput,Q.uint32(42).fork()).join();if($.rotateEpochInput!==void 0)Q9.encode($.rotateEpochInput,Q.uint32(50).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.createBackupInput=mK.decode(J,J.uint32(),q.createBackupInput);continue}case 2:{if(K!==18)break;q.encryptMessageInput=W8.decode(J,J.uint32(),q.encryptMessageInput);continue}case 3:{if(K!==26)break;q.decryptMessageInput=eK.decode(J,J.uint32(),q.decryptMessageInput);continue}case 4:{if(K!==34)break;q.orfThreadIdInput=_6.decode(J,J.uint32(),q.orfThreadIdInput);continue}case 5:{if(K!==42)break;q.deriveMessageKeyInput=V8.decode(J,J.uint32(),q.deriveMessageKeyInput);continue}case 6:{if(K!==50)break;q.rotateEpochInput=Q9.decode(J,J.uint32(),q.rotateEpochInput);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return oA.fromPartial($??{})},fromPartial($){let Q=yC();return Q.createBackupInput=$.createBackupInput!==void 0&&$.createBackupInput!==null?mK.fromPartial($.createBackupInput):void 0,Q.encryptMessageInput=$.encryptMessageInput!==void 0&&$.encryptMessageInput!==null?W8.fromPartial($.encryptMessageInput):void 0,Q.decryptMessageInput=$.decryptMessageInput!==void 0&&$.decryptMessageInput!==null?eK.fromPartial($.decryptMessageInput):void 0,Q.orfThreadIdInput=$.orfThreadIdInput!==void 0&&$.orfThreadIdInput!==null?_6.fromPartial($.orfThreadIdInput):void 0,Q.deriveMessageKeyInput=$.deriveMessageKeyInput!==void 0&&$.deriveMessageKeyInput!==null?V8.fromPartial($.deriveMessageKeyInput):void 0,Q.rotateEpochInput=$.rotateEpochInput!==void 0&&$.rotateEpochInput!==null?Q9.fromPartial($.rotateEpochInput):void 0,Q}};function vC(){return{}}var Vq={encode($,Q=new H){if($.eventResponseMessage!==void 0)p$.encode($.eventResponseMessage,Q.uint32(10).fork()).join();if($.pollVote!==void 0)u$.encode($.pollVote,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.eventResponseMessage=p$.decode(J,J.uint32(),q.eventResponseMessage);continue}case 2:{if(K!==18)break;q.pollVote=u$.decode(J,J.uint32(),q.pollVote);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Vq.fromPartial($??{})},fromPartial($){let Q=vC();return Q.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?p$.fromPartial($.eventResponseMessage):void 0,Q.pollVote=$.pollVote!==void 0&&$.pollVote!==null?u$.fromPartial($.pollVote):void 0,Q}};function fC(){return{}}var B$={encode($,Q=new H){if($.sharingLimited!==void 0)Q.uint32(8).bool($.sharingLimited);if($.trigger!==void 0)Q.uint32(16).int32($.trigger);if($.limitSharingSettingTimestamp!==void 0)Q.uint32(24).int64($.limitSharingSettingTimestamp);if($.initiatedByMe!==void 0)Q.uint32(32).bool($.initiatedByMe);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.sharingLimited=J.bool();continue}case 2:{if(K!==16)break;q.trigger=J.int32();continue}case 3:{if(K!==24)break;q.limitSharingSettingTimestamp=J.int64Value();continue}case 4:{if(K!==32)break;q.initiatedByMe=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return B$.fromPartial($??{})},fromPartial($){let Q=fC();return Q.sharingLimited=$.sharingLimited??void 0,Q.trigger=$.trigger??void 0,Q.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,Q.initiatedByMe=$.initiatedByMe??void 0,Q}};function _C(){return{}}var Hq={encode($,Q=new H){if($.lg!==void 0)Q.uint32(10).string($.lg);if($.lc!==void 0)Q.uint32(18).string($.lc);if($.verifiedName!==void 0)Q.uint32(26).string($.verifiedName);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_C();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.lg=J.string();continue}case 2:{if(K!==18)break;q.lc=J.string();continue}case 3:{if(K!==26)break;q.verifiedName=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Hq.fromPartial($??{})},fromPartial($){let Q=_C();return Q.lg=$.lg??void 0,Q.lc=$.lc??void 0,Q.verifiedName=$.verifiedName??void 0,Q}};function hC(){return{}}var zq={encode($,Q=new H){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.name!==void 0)Q.uint32(26).string($.name);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==9)break;q.degreesLatitude=J.double();continue}case 2:{if(K!==17)break;q.degreesLongitude=J.double();continue}case 3:{if(K!==26)break;q.name=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return zq.fromPartial($??{})},fromPartial($){let Q=hC();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q}};function lC(){return{}}var Gq={encode($,Q=new H){if($.encryptedMek!==void 0)Q.uint32(10).bytes($.encryptedMek);if($.recipientsHash!==void 0)Q.uint32(34).bytes($.recipientsHash);if($.recipientEncSk!==void 0)Q.uint32(42).bytes($.recipientEncSk);if($.mekEncryptionVersion!==void 0)Q.uint32(48).uint64($.mekEncryptionVersion);if($.conf!==void 0)i.encode($.conf,Q.uint32(58).fork()).join();if($.recipientMmk!==void 0)b.encode($.recipientMmk,Q.uint32(66).fork()).join();if($.mekId!==void 0)Q.uint32(74).bytes($.mekId);if($.recipientMembershipProof!==void 0)S$.encode($.recipientMembershipProof,Q.uint32(82).fork()).join();if($.mmkSender!==void 0)Cq.encode($.mmkSender,Q.uint32(18).fork()).join();if($.epochSender!==void 0)Uq.encode($.epochSender,Q.uint32(26).fork()).join();if($.precomputedEpochSender!==void 0)Dq.encode($.precomputedEpochSender,Q.uint32(90).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedMek=J.bytes();continue}case 4:{if(K!==34)break;q.recipientsHash=J.bytes();continue}case 5:{if(K!==42)break;q.recipientEncSk=J.bytes();continue}case 6:{if(K!==48)break;q.mekEncryptionVersion=J.uint64Value();continue}case 7:{if(K!==58)break;q.conf=i.decode(J,J.uint32(),q.conf);continue}case 8:{if(K!==66)break;q.recipientMmk=b.decode(J,J.uint32(),q.recipientMmk);continue}case 9:{if(K!==74)break;q.mekId=J.bytes();continue}case 10:{if(K!==82)break;q.recipientMembershipProof=S$.decode(J,J.uint32(),q.recipientMembershipProof);continue}case 2:{if(K!==18)break;q.mmkSender=Cq.decode(J,J.uint32(),q.mmkSender);continue}case 3:{if(K!==26)break;q.epochSender=Uq.decode(J,J.uint32(),q.epochSender);continue}case 11:{if(K!==90)break;q.precomputedEpochSender=Dq.decode(J,J.uint32(),q.precomputedEpochSender);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Gq.fromPartial($??{})},fromPartial($){let Q=lC();return Q.encryptedMek=$.encryptedMek??void 0,Q.recipientsHash=$.recipientsHash??void 0,Q.recipientEncSk=$.recipientEncSk??void 0,Q.mekEncryptionVersion=$.mekEncryptionVersion??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q.recipientMmk=$.recipientMmk!==void 0&&$.recipientMmk!==null?b.fromPartial($.recipientMmk):void 0,Q.mekId=$.mekId??void 0,Q.recipientMembershipProof=$.recipientMembershipProof!==void 0&&$.recipientMembershipProof!==null?S$.fromPartial($.recipientMembershipProof):void 0,Q.mmkSender=$.mmkSender!==void 0&&$.mmkSender!==null?Cq.fromPartial($.mmkSender):void 0,Q.epochSender=$.epochSender!==void 0&&$.epochSender!==null?Uq.fromPartial($.epochSender):void 0,Q.precomputedEpochSender=$.precomputedEpochSender!==void 0&&$.precomputedEpochSender!==null?Dq.fromPartial($.precomputedEpochSender):void 0,Q}};function pC(){return{}}var Uq={encode($,Q=new H){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.epochPublicData=r.decode(J,J.uint32(),q.epochPublicData);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Uq.fromPartial($??{})},fromPartial($){let Q=pC();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q}};function uC(){return{}}var Cq={encode($,Q=new H){if($.mmkPublicData!==void 0)b.encode($.mmkPublicData,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mmkPublicData=b.decode(J,J.uint32(),q.mmkPublicData);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Cq.fromPartial($??{})},fromPartial($){let Q=uC();return Q.mmkPublicData=$.mmkPublicData!==void 0&&$.mmkPublicData!==null?b.fromPartial($.mmkPublicData):void 0,Q}};function wC(){return{}}var Dq={encode($,Q=new H){if($.authPk!==void 0)Q.uint32(10).bytes($.authPk);if($.epochHead!==void 0)Q.uint32(18).bytes($.epochHead);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.authPk=J.bytes();continue}case 2:{if(K!==18)break;q.epochHead=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Dq.fromPartial($??{})},fromPartial($){let Q=wC();return Q.authPk=$.authPk??void 0,Q.epochHead=$.epochHead??void 0,Q}};function jC(){return{}}var iA={encode($,Q=new H){if($.success!==void 0)Fq.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=Fq.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return iA.fromPartial($??{})},fromPartial($){let Q=jC();return Q.success=$.success!==void 0&&$.success!==null?Fq.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function cC(){return{}}var Fq={encode($,Q=new H){if($.mek!==void 0)Q.uint32(10).bytes($.mek);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mek=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Fq.fromPartial($??{})},fromPartial($){let Q=cC();return Q.mek=$.mek??void 0,Q}};function dC(){return{}}var Lq={encode($,Q=new H){if($.mek!==void 0)Oq.encode($.mek,Q.uint32(10).fork()).join();if($.recipients!==void 0&&$.recipients.length!==0)for(let Z of $.recipients)b.encode(Z,Q.uint32(18).fork()).join();if($.conf!==void 0)i.encode($.conf,Q.uint32(42).fork()).join();if($.mmkSender!==void 0)xq.encode($.mmkSender,Q.uint32(26).fork()).join();if($.epochSender!==void 0)kq.encode($.epochSender,Q.uint32(34).fork()).join();if($.detachedDeviceSender!==void 0)Pq.encode($.detachedDeviceSender,Q.uint32(50).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mek=Oq.decode(J,J.uint32(),q.mek);continue}case 2:{if(K!==18)break;if(q.recipients===void 0)q.recipients=[];let V=b.decode(J,J.uint32());if(V!==void 0)q.recipients.push(V);continue}case 5:{if(K!==42)break;q.conf=i.decode(J,J.uint32(),q.conf);continue}case 3:{if(K!==26)break;q.mmkSender=xq.decode(J,J.uint32(),q.mmkSender);continue}case 4:{if(K!==34)break;q.epochSender=kq.decode(J,J.uint32(),q.epochSender);continue}case 6:{if(K!==50)break;q.detachedDeviceSender=Pq.decode(J,J.uint32(),q.detachedDeviceSender);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Lq.fromPartial($??{})},fromPartial($){let Q=dC();return Q.mek=$.mek!==void 0&&$.mek!==null?Oq.fromPartial($.mek):void 0,Q.recipients=$.recipients?.map((Z)=>b.fromPartial(Z))||void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q.mmkSender=$.mmkSender!==void 0&&$.mmkSender!==null?xq.fromPartial($.mmkSender):void 0,Q.epochSender=$.epochSender!==void 0&&$.epochSender!==null?kq.fromPartial($.epochSender):void 0,Q.detachedDeviceSender=$.detachedDeviceSender!==void 0&&$.detachedDeviceSender!==null?Pq.fromPartial($.detachedDeviceSender):void 0,Q}};function nC(){return{}}var Pq={encode($,Q=new H){if($.detachedDevicePublicData!==void 0)H$.encode($.detachedDevicePublicData,Q.uint32(10).fork()).join();if($.authSk!==void 0)Q.uint32(18).bytes($.authSk);if($.authPk!==void 0)Q.uint32(26).bytes($.authPk);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.detachedDevicePublicData=H$.decode(J,J.uint32(),q.detachedDevicePublicData);continue}case 2:{if(K!==18)break;q.authSk=J.bytes();continue}case 3:{if(K!==26)break;q.authPk=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Pq.fromPartial($??{})},fromPartial($){let Q=nC();return Q.detachedDevicePublicData=$.detachedDevicePublicData!==void 0&&$.detachedDevicePublicData!==null?H$.fromPartial($.detachedDevicePublicData):void 0,Q.authSk=$.authSk??void 0,Q.authPk=$.authPk??void 0,Q}};function bC(){return{}}var kq={encode($,Q=new H){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();if($.authSk!==void 0)Q.uint32(18).bytes($.authSk);if($.authPk!==void 0)Q.uint32(26).bytes($.authPk);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.epochPublicData=r.decode(J,J.uint32(),q.epochPublicData);continue}case 2:{if(K!==18)break;q.authSk=J.bytes();continue}case 3:{if(K!==26)break;q.authPk=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return kq.fromPartial($??{})},fromPartial($){let Q=bC();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q.authSk=$.authSk??void 0,Q.authPk=$.authPk??void 0,Q}};function oC(){return{}}var xq={encode($,Q=new H){if($.mmkPublicData!==void 0)b.encode($.mmkPublicData,Q.uint32(10).fork()).join();if($.authSk!==void 0)Q.uint32(18).bytes($.authSk);if($.authPk!==void 0)Q.uint32(26).bytes($.authPk);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mmkPublicData=b.decode(J,J.uint32(),q.mmkPublicData);continue}case 2:{if(K!==18)break;q.authSk=J.bytes();continue}case 3:{if(K!==26)break;q.authPk=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return xq.fromPartial($??{})},fromPartial($){let Q=oC();return Q.mmkPublicData=$.mmkPublicData!==void 0&&$.mmkPublicData!==null?b.fromPartial($.mmkPublicData):void 0,Q.authSk=$.authSk??void 0,Q.authPk=$.authPk??void 0,Q}};function iC(){return{}}var mA={encode($,Q=new H){if($.success!==void 0)Bq.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=Bq.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return mA.fromPartial($??{})},fromPartial($){let Q=iC();return Q.success=$.success!==void 0&&$.success!==null?Bq.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function mC(){return{}}var Bq={encode($,Q=new H){if($.distributions!==void 0&&$.distributions.length!==0)for(let Z of $.distributions)Nq.encode(Z,Q.uint32(10).fork()).join();if($.recipientsHash!==void 0)Q.uint32(18).bytes($.recipientsHash);if($.version!==void 0)Q.uint32(24).uint64($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.distributions===void 0)q.distributions=[];let V=Nq.decode(J,J.uint32());if(V!==void 0)q.distributions.push(V);continue}case 2:{if(K!==18)break;q.recipientsHash=J.bytes();continue}case 3:{if(K!==24)break;q.version=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Bq.fromPartial($??{})},fromPartial($){let Q=mC();return Q.distributions=$.distributions?.map((Z)=>Nq.fromPartial(Z))||void 0,Q.recipientsHash=$.recipientsHash??void 0,Q.version=$.version??void 0,Q}};function gC(){return{}}var Nq={encode($,Q=new H){if($.encryptedMek!==void 0)Q.uint32(10).bytes($.encryptedMek);if($.toMmk!==void 0)b.encode($.toMmk,Q.uint32(18).fork()).join();if($.recipientMembershipProof!==void 0)S$.encode($.recipientMembershipProof,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedMek=J.bytes();continue}case 2:{if(K!==18)break;q.toMmk=b.decode(J,J.uint32(),q.toMmk);continue}case 3:{if(K!==26)break;q.recipientMembershipProof=S$.decode(J,J.uint32(),q.recipientMembershipProof);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Nq.fromPartial($??{})},fromPartial($){let Q=gC();return Q.encryptedMek=$.encryptedMek??void 0,Q.toMmk=$.toMmk!==void 0&&$.toMmk!==null?b.fromPartial($.toMmk):void 0,Q.recipientMembershipProof=$.recipientMembershipProof!==void 0&&$.recipientMembershipProof!==null?S$.fromPartial($.recipientMembershipProof):void 0,Q}};function rC(){return{}}var Oq={encode($,Q=new H){if($.key!==void 0)Q.uint32(10).bytes($.key);if($.mekId!==void 0)Q.uint32(18).bytes($.mekId);if($.mailboxHeadHash!==void 0)Q.uint32(26).bytes($.mailboxHeadHash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=J.bytes();continue}case 2:{if(K!==18)break;q.mekId=J.bytes();continue}case 3:{if(K!==26)break;q.mailboxHeadHash=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Oq.fromPartial($??{})},fromPartial($){let Q=rC();return Q.key=$.key??void 0,Q.mekId=$.mekId??void 0,Q.mailboxHeadHash=$.mailboxHeadHash??void 0,Q}};function tC(){return{}}var Rq={encode($,Q=new H){if($.userFbid!==void 0)Q.uint32(10).string($.userFbid);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);if($.exportRootKey!==void 0)Q.uint32(26).bytes($.exportRootKey);if($.previousExportRootKey!==void 0)Q.uint32(34).bytes($.previousExportRootKey);if($.previousEpochNumber!==void 0)Q.uint32(40).uint64($.previousEpochNumber);if($.previousEpochHead!==void 0)Q.uint32(50).bytes($.previousEpochHead);if($.previousMmk!==void 0)b.encode($.previousMmk,Q.uint32(58).fork()).join();if($.detachedDevices!==void 0&&$.detachedDevices.length!==0)for(let Z of $.detachedDevices)H$.encode(Z,Q.uint32(66).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.userFbid=J.string();continue}case 2:{if(K!==16)break;q.epochNumber=J.uint64Value();continue}case 3:{if(K!==26)break;q.exportRootKey=J.bytes();continue}case 4:{if(K!==34)break;q.previousExportRootKey=J.bytes();continue}case 5:{if(K!==40)break;q.previousEpochNumber=J.uint64Value();continue}case 6:{if(K!==50)break;q.previousEpochHead=J.bytes();continue}case 7:{if(K!==58)break;q.previousMmk=b.decode(J,J.uint32(),q.previousMmk);continue}case 8:{if(K!==66)break;if(q.detachedDevices===void 0)q.detachedDevices=[];let V=H$.decode(J,J.uint32());if(V!==void 0)q.detachedDevices.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Rq.fromPartial($??{})},fromPartial($){let Q=tC();return Q.userFbid=$.userFbid??void 0,Q.epochNumber=$.epochNumber??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q.previousExportRootKey=$.previousExportRootKey??void 0,Q.previousEpochNumber=$.previousEpochNumber??void 0,Q.previousEpochHead=$.previousEpochHead??void 0,Q.previousMmk=$.previousMmk!==void 0&&$.previousMmk!==null?b.fromPartial($.previousMmk):void 0,Q.detachedDevices=$.detachedDevices?.map((Z)=>H$.fromPartial(Z))||void 0,Q}};function aC(){return{}}var gA={encode($,Q=new H){if($.success!==void 0)BQ.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??aC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=BQ.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return gA.fromPartial($??{})},fromPartial($){let Q=aC();return Q.success=$.success!==void 0&&$.success!==null?BQ.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function sC(){return{}}var BQ={encode($,Q=new H){if($.minosSignedEpoch!==void 0)v$.encode($.minosSignedEpoch,Q.uint32(10).fork()).join();if($.signedMmkDistribution!==void 0)D9.encode($.signedMmkDistribution,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.minosSignedEpoch=v$.decode(J,J.uint32(),q.minosSignedEpoch);continue}case 2:{if(K!==18)break;q.signedMmkDistribution=D9.decode(J,J.uint32(),q.signedMmkDistribution);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return BQ.fromPartial($??{})},fromPartial($){let Q=sC();return Q.minosSignedEpoch=$.minosSignedEpoch!==void 0&&$.minosSignedEpoch!==null?v$.fromPartial($.minosSignedEpoch):void 0,Q.signedMmkDistribution=$.signedMmkDistribution!==void 0&&$.signedMmkDistribution!==null?D9.fromPartial($.signedMmkDistribution):void 0,Q}};function eC(){return{}}var Aq={encode($,Q=new H){if($.userFbid!==void 0)Q.uint32(10).string($.userFbid);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);if($.exportRootKey!==void 0)Q.uint32(26).bytes($.exportRootKey);if($.detachedDevices!==void 0&&$.detachedDevices.length!==0)for(let Z of $.detachedDevices)H$.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??eC();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.userFbid=J.string();continue}case 2:{if(K!==16)break;q.epochNumber=J.uint64Value();continue}case 3:{if(K!==26)break;q.exportRootKey=J.bytes();continue}case 4:{if(K!==34)break;if(q.detachedDevices===void 0)q.detachedDevices=[];let V=H$.decode(J,J.uint32());if(V!==void 0)q.detachedDevices.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Aq.fromPartial($??{})},fromPartial($){let Q=eC();return Q.userFbid=$.userFbid??void 0,Q.epochNumber=$.epochNumber??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q.detachedDevices=$.detachedDevices?.map((Z)=>H$.fromPartial(Z))||void 0,Q}};function $4(){return{}}var rA={encode($,Q=new H){if($.success!==void 0)BQ.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=BQ.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return rA.fromPartial($??{})},fromPartial($){let Q=$4();return Q.success=$.success!==void 0&&$.success!==null?BQ.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function Q4(){return{}}var Eq={encode($,Q=new H){if($.mmkFromDevice!==void 0)I6.encode($.mmkFromDevice,Q.uint32(10).fork()).join();if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.prevMmk!==void 0)b.encode($.prevMmk,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Q4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mmkFromDevice=I6.decode(J,J.uint32(),q.mmkFromDevice);continue}case 2:{if(K!==18)break;q.signature=J.bytes();continue}case 3:{if(K!==26)break;q.prevMmk=b.decode(J,J.uint32(),q.prevMmk);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Eq.fromPartial($??{})},fromPartial($){let Q=Q4();return Q.mmkFromDevice=$.mmkFromDevice!==void 0&&$.mmkFromDevice!==null?I6.fromPartial($.mmkFromDevice):void 0,Q.signature=$.signature??void 0,Q.prevMmk=$.prevMmk!==void 0&&$.prevMmk!==null?b.fromPartial($.prevMmk):void 0,Q}};function J4(){return{}}var Mq={encode($,Q=new H){if($.newMmk!==void 0)b.encode($.newMmk,Q.uint32(10).fork()).join();if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.prevMmk!==void 0)b.encode($.prevMmk,Q.uint32(26).fork()).join();if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??J4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.newMmk=b.decode(J,J.uint32(),q.newMmk);continue}case 2:{if(K!==18)break;q.signature=J.bytes();continue}case 3:{if(K!==26)break;q.prevMmk=b.decode(J,J.uint32(),q.prevMmk);continue}case 4:{if(K!==34)break;q.epochPublicData=r.decode(J,J.uint32(),q.epochPublicData);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Mq.fromPartial($??{})},fromPartial($){let Q=J4();return Q.newMmk=$.newMmk!==void 0&&$.newMmk!==null?b.fromPartial($.newMmk):void 0,Q.signature=$.signature??void 0,Q.prevMmk=$.prevMmk!==void 0&&$.prevMmk!==null?b.fromPartial($.prevMmk):void 0,Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q}};function K4(){return{}}var tA={encode($,Q=new H){if($.valid!==void 0)Q.uint32(8).bool($.valid);if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??K4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.valid=J.bool();continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return tA.fromPartial($??{})},fromPartial($){let Q=K4();return Q.valid=$.valid??void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function q4(){return{}}var t$={encode($,Q=new H){if($.localPath!==void 0)Q.uint32(10).string($.localPath);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??q4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.localPath=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return t$.fromPartial($??{})},fromPartial($){let Q=q4();return Q.localPath=$.localPath??void 0,Q}};function Z4(){return{}}var Wq={encode($,Q=new H){if($.mediaKeyDomain!==void 0)Q.uint32(8).int32($.mediaKeyDomain);if($.e2EeMediaKey!==void 0)Q.uint32(18).bytes($.e2EeMediaKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Z4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.mediaKeyDomain=J.int32();continue}case 2:{if(K!==18)break;q.e2EeMediaKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Wq.fromPartial($??{})},fromPartial($){let Q=Z4();return Q.mediaKeyDomain=$.mediaKeyDomain??void 0,Q.e2EeMediaKey=$.e2EeMediaKey??void 0,Q}};function X4(){return{}}var aA={encode($,Q=new H){if($.fileSha256!==void 0)Q.uint32(10).bytes($.fileSha256);if($.mediaKey!==void 0)Q.uint32(18).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(26).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(34).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(40).int64($.mediaKeyTimestamp);if($.serverMediaType!==void 0)Q.uint32(50).string($.serverMediaType);if($.uploadToken!==void 0)Q.uint32(58).bytes($.uploadToken);if($.validatedTimestamp!==void 0)Q.uint32(66).bytes($.validatedTimestamp);if($.sidecar!==void 0)Q.uint32(74).bytes($.sidecar);if($.objectId!==void 0)Q.uint32(82).string($.objectId);if($.fbid!==void 0)Q.uint32(90).string($.fbid);if($.downloadableThumbnail!==void 0)Sq.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)Iq.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??X4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fileSha256=J.bytes();continue}case 2:{if(K!==18)break;q.mediaKey=J.bytes();continue}case 3:{if(K!==26)break;q.fileEncSha256=J.bytes();continue}case 4:{if(K!==34)break;q.directPath=J.string();continue}case 5:{if(K!==40)break;q.mediaKeyTimestamp=J.int64Value();continue}case 6:{if(K!==50)break;q.serverMediaType=J.string();continue}case 7:{if(K!==58)break;q.uploadToken=J.bytes();continue}case 8:{if(K!==66)break;q.validatedTimestamp=J.bytes();continue}case 9:{if(K!==74)break;q.sidecar=J.bytes();continue}case 10:{if(K!==82)break;q.objectId=J.string();continue}case 11:{if(K!==90)break;q.fbid=J.string();continue}case 12:{if(K!==98)break;q.downloadableThumbnail=Sq.decode(J,J.uint32(),q.downloadableThumbnail);continue}case 13:{if(K!==106)break;q.handle=J.string();continue}case 14:{if(K!==114)break;q.filename=J.string();continue}case 15:{if(K!==122)break;q.progressiveJpegDetails=Iq.decode(J,J.uint32(),q.progressiveJpegDetails);continue}case 16:{if(K!==128)break;q.size=J.int64Value();continue}case 17:{if(K!==136)break;q.lastDownloadAttemptTimestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return aA.fromPartial($??{})},fromPartial($){let Q=X4();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?Sq.fromPartial($.downloadableThumbnail):void 0,Q.handle=$.handle??void 0,Q.filename=$.filename??void 0,Q.progressiveJpegDetails=$.progressiveJpegDetails!==void 0&&$.progressiveJpegDetails!==null?Iq.fromPartial($.progressiveJpegDetails):void 0,Q.size=$.size??void 0,Q.lastDownloadAttemptTimestamp=$.lastDownloadAttemptTimestamp??void 0,Q}};function Y4(){return{}}var Sq={encode($,Q=new H){if($.fileSha256!==void 0)Q.uint32(10).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(18).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(26).string($.directPath);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)Q.uint32(40).int64($.mediaKeyTimestamp);if($.objectId!==void 0)Q.uint32(50).string($.objectId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Y4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fileSha256=J.bytes();continue}case 2:{if(K!==18)break;q.fileEncSha256=J.bytes();continue}case 3:{if(K!==26)break;q.directPath=J.string();continue}case 4:{if(K!==34)break;q.mediaKey=J.bytes();continue}case 5:{if(K!==40)break;q.mediaKeyTimestamp=J.int64Value();continue}case 6:{if(K!==50)break;q.objectId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Sq.fromPartial($??{})},fromPartial($){let Q=Y4();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 V4(){return{}}var Iq={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??V4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K===8){if(q.scanLengths===void 0)q.scanLengths=[];q.scanLengths.push(J.uint32());continue}if(K===10){if(q.scanLengths===void 0)q.scanLengths=[];let V=J.uint32()+J.pos;while(J.pos<V)q.scanLengths.push(J.uint32());continue}break}case 2:{if(K!==18)break;q.sidecar=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Iq.fromPartial($??{})},fromPartial($){let Q=V4();return Q.scanLengths=$.scanLengths?.map((Z)=>Z)||void 0,Q.sidecar=$.sidecar??void 0,Q}};function H4(){return{}}var Tq={encode($,Q=new H){if($.expressPathUrl!==void 0)Q.uint32(10).string($.expressPathUrl);if($.fileEncSha256!==void 0)Q.uint32(18).bytes($.fileEncSha256);if($.fileLength!==void 0)Q.uint32(24).uint64($.fileLength);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??H4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.expressPathUrl=J.string();continue}case 2:{if(K!==18)break;q.fileEncSha256=J.bytes();continue}case 3:{if(K!==24)break;q.fileLength=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Tq.fromPartial($??{})},fromPartial($){let Q=H4();return Q.expressPathUrl=$.expressPathUrl??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.fileLength=$.fileLength??void 0,Q}};function z4(){return{}}var o5={encode($,Q=new H){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.directPath!==void 0)Q.uint32(18).string($.directPath);if($.result!==void 0)Q.uint32(24).int32($.result);if($.messageSecret!==void 0)Q.uint32(34).bytes($.messageSecret);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??z4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.stanzaId=J.string();continue}case 2:{if(K!==18)break;q.directPath=J.string();continue}case 3:{if(K!==24)break;q.result=J.int32();continue}case 4:{if(K!==34)break;q.messageSecret=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return o5.fromPartial($??{})},fromPartial($){let Q=z4();return Q.stanzaId=$.stanzaId??void 0,Q.directPath=$.directPath??void 0,Q.result=$.result??void 0,Q.messageSecret=$.messageSecret??void 0,Q}};function G4(){return{}}var M$={encode($,Q=new H){if($.key!==void 0)Q.uint32(10).bytes($.key);if($.mekId!==void 0)Q.uint32(18).bytes($.mekId);if($.rosterHash!==void 0)Q.uint32(26).bytes($.rosterHash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??G4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=J.bytes();continue}case 2:{if(K!==18)break;q.mekId=J.bytes();continue}case 3:{if(K!==26)break;q.rosterHash=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return M$.fromPartial($??{})},fromPartial($){let Q=G4();return Q.key=$.key??void 0,Q.mekId=$.mekId??void 0,Q.rosterHash=$.rosterHash??void 0,Q}};function U4(){return{}}var W$={encode($,Q=new H){if($.label!==void 0)Q.uint32(10).string($.label);if($.labelTimestamp!==void 0)Q.uint32(16).int64($.labelTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??U4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.label=J.string();continue}case 2:{if(K!==16)break;q.labelTimestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return W$.fromPartial($??{})},fromPartial($){let Q=U4();return Q.label=$.label??void 0,Q.labelTimestamp=$.labelTimestamp??void 0,Q}};function C4(){return{}}var NQ={encode($,Q=new H){if($.mentionType!==void 0)Q.uint32(8).int32($.mentionType);if($.mentionedJid!==void 0)Q.uint32(18).string($.mentionedJid);if($.offset!==void 0)Q.uint32(24).uint32($.offset);if($.length!==void 0)Q.uint32(32).uint32($.length);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??C4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.mentionType=J.int32();continue}case 2:{if(K!==18)break;q.mentionedJid=J.string();continue}case 3:{if(K!==24)break;q.offset=J.uint32();continue}case 4:{if(K!==32)break;q.length=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return NQ.fromPartial($??{})},fromPartial($){let Q=C4();return Q.mentionType=$.mentionType??void 0,Q.mentionedJid=$.mentionedJid??void 0,Q.offset=$.offset??void 0,Q.length=$.length??void 0,Q}};function D4(){return{}}var S$={encode($,Q=new H){if($.proof!==void 0)Q.uint32(10).bytes($.proof);if($.root!==void 0)Q.uint32(18).bytes($.root);if($.leafIndex!==void 0)Q.uint32(24).uint64($.leafIndex);if($.totalLeaves!==void 0)Q.uint32(32).uint64($.totalLeaves);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??D4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.proof=J.bytes();continue}case 2:{if(K!==18)break;q.root=J.bytes();continue}case 3:{if(K!==24)break;q.leafIndex=J.uint64Value();continue}case 4:{if(K!==32)break;q.totalLeaves=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return S$.fromPartial($??{})},fromPartial($){let Q=D4();return Q.proof=$.proof??void 0,Q.root=$.root??void 0,Q.leafIndex=$.leafIndex??void 0,Q.totalLeaves=$.totalLeaves??void 0,Q}};function F4(){return{}}var d={encode($,Q=new H){if($.conversation!==void 0)Q.uint32(10).string($.conversation);if($.senderKeyDistributionMessage!==void 0)s$.encode($.senderKeyDistributionMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(26).fork()).join();if($.contactMessage!==void 0)AQ.encode($.contactMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)Q$.encode($.locationMessage,Q.uint32(42).fork()).join();if($.extendedTextMessage!==void 0)CZ.encode($.extendedTextMessage,Q.uint32(50).fork()).join();if($.documentMessage!==void 0)q$.encode($.documentMessage,Q.uint32(58).fork()).join();if($.audioMessage!==void 0)RQ.encode($.audioMessage,Q.uint32(66).fork()).join();if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(74).fork()).join();if($.call!==void 0)oq.encode($.call,Q.uint32(82).fork()).join();if($.chat!==void 0)rq.encode($.chat,Q.uint32(90).fork()).join();if($.protocolMessage!==void 0)nX.encode($.protocolMessage,Q.uint32(98).fork()).join();if($.contactsArrayMessage!==void 0)ZZ.encode($.contactsArrayMessage,Q.uint32(106).fork()).join();if($.highlyStructuredMessage!==void 0)o.encode($.highlyStructuredMessage,Q.uint32(114).fork()).join();if($.fastRatchetKeySenderKeyDistributionMessage!==void 0)s$.encode($.fastRatchetKeySenderKeyDistributionMessage,Q.uint32(122).fork()).join();if($.sendPaymentMessage!==void 0)eX.encode($.sendPaymentMessage,Q.uint32(130).fork()).join();if($.liveLocationMessage!==void 0)MQ.encode($.liveLocationMessage,Q.uint32(146).fork()).join();if($.requestPaymentMessage!==void 0)iX.encode($.requestPaymentMessage,Q.uint32(178).fork()).join();if($.declinePaymentRequestMessage!==void 0)XZ.encode($.declinePaymentRequestMessage,Q.uint32(186).fork()).join();if($.cancelPaymentRequestMessage!==void 0)gq.encode($.cancelPaymentRequestMessage,Q.uint32(194).fork()).join();if($.templateMessage!==void 0)vQ.encode($.templateMessage,Q.uint32(202).fork()).join();if($.stickerMessage!==void 0)yQ.encode($.stickerMessage,Q.uint32(210).fork()).join();if($.groupInviteMessage!==void 0)FZ.encode($.groupInviteMessage,Q.uint32(226).fork()).join();if($.templateButtonReplyMessage!==void 0)G6.encode($.templateButtonReplyMessage,Q.uint32(234).fork()).join();if($.productMessage!==void 0)TQ.encode($.productMessage,Q.uint32(242).fork()).join();if($.deviceSentMessage!==void 0)YZ.encode($.deviceSentMessage,Q.uint32(250).fork()).join();if($.messageContextInfo!==void 0)_Q.encode($.messageContextInfo,Q.uint32(282).fork()).join();if($.listMessage!==void 0)wZ.encode($.listMessage,Q.uint32(290).fork()).join();if($.viewOnceMessage!==void 0)v.encode($.viewOnceMessage,Q.uint32(298).fork()).join();if($.orderMessage!==void 0)$X.encode($.orderMessage,Q.uint32(306).fork()).join();if($.listResponseMessage!==void 0)iZ.encode($.listResponseMessage,Q.uint32(314).fork()).join();if($.ephemeralMessage!==void 0)v.encode($.ephemeralMessage,Q.uint32(322).fork()).join();if($.invoiceMessage!==void 0)lZ.encode($.invoiceMessage,Q.uint32(330).fork()).join();if($.buttonsMessage!==void 0)jq.encode($.buttonsMessage,Q.uint32(338).fork()).join();if($.buttonsResponseMessage!==void 0)bq.encode($.buttonsResponseMessage,Q.uint32(346).fork()).join();if($.paymentInviteMessage!==void 0)JX.encode($.paymentInviteMessage,Q.uint32(354).fork()).join();if($.interactiveMessage!==void 0)T$.encode($.interactiveMessage,Q.uint32(362).fork()).join();if($.reactionMessage!==void 0)oX.encode($.reactionMessage,Q.uint32(370).fork()).join();if($.stickerSyncRmrMessage!==void 0)z6.encode($.stickerSyncRmrMessage,Q.uint32(378).fork()).join();if($.interactiveResponseMessage!==void 0)fZ.encode($.interactiveResponseMessage,Q.uint32(386).fork()).join();if($.pollCreationMessage!==void 0)K$.encode($.pollCreationMessage,Q.uint32(394).fork()).join();if($.pollUpdateMessage!==void 0)jX.encode($.pollUpdateMessage,Q.uint32(402).fork()).join();if($.keepInChatMessage!==void 0)pZ.encode($.keepInChatMessage,Q.uint32(410).fork()).join();if($.documentWithCaptionMessage!==void 0)v.encode($.documentWithCaptionMessage,Q.uint32(426).fork()).join();if($.requestPhoneNumberMessage!==void 0)mX.encode($.requestPhoneNumberMessage,Q.uint32(434).fork()).join();if($.viewOnceMessageV2!==void 0)v.encode($.viewOnceMessageV2,Q.uint32(442).fork()).join();if($.encReactionMessage!==void 0)zZ.encode($.encReactionMessage,Q.uint32(450).fork()).join();if($.editedMessage!==void 0)v.encode($.editedMessage,Q.uint32(466).fork()).join();if($.viewOnceMessageV2Extension!==void 0)v.encode($.viewOnceMessageV2Extension,Q.uint32(474).fork()).join();if($.pollCreationMessageV2!==void 0)K$.encode($.pollCreationMessageV2,Q.uint32(482).fork()).join();if($.scheduledCallCreationMessage!==void 0)tX.encode($.scheduledCallCreationMessage,Q.uint32(490).fork()).join();if($.groupMentionedMessage!==void 0)v.encode($.groupMentionedMessage,Q.uint32(498).fork()).join();if($.pinInChatMessage!==void 0)hX.encode($.pinInChatMessage,Q.uint32(506).fork()).join();if($.pollCreationMessageV3!==void 0)K$.encode($.pollCreationMessageV3,Q.uint32(514).fork()).join();if($.scheduledCallEditMessage!==void 0)aX.encode($.scheduledCallEditMessage,Q.uint32(522).fork()).join();if($.ptvMessage!==void 0)e.encode($.ptvMessage,Q.uint32(530).fork()).join();if($.botInvokeMessage!==void 0)v.encode($.botInvokeMessage,Q.uint32(538).fork()).join();if($.callLogMesssage!==void 0)iq.encode($.callLogMesssage,Q.uint32(554).fork()).join();if($.messageHistoryBundle!==void 0)WQ.encode($.messageHistoryBundle,Q.uint32(562).fork()).join();if($.encCommentMessage!==void 0)VZ.encode($.encCommentMessage,Q.uint32(570).fork()).join();if($.bcallMessage!==void 0)uq.encode($.bcallMessage,Q.uint32(578).fork()).join();if($.lottieStickerMessage!==void 0)v.encode($.lottieStickerMessage,Q.uint32(594).fork()).join();if($.eventMessage!==void 0)UZ.encode($.eventMessage,Q.uint32(602).fork()).join();if($.encEventResponseMessage!==void 0)HZ.encode($.encEventResponseMessage,Q.uint32(610).fork()).join();if($.commentMessage!==void 0)KZ.encode($.commentMessage,Q.uint32(618).fork()).join();if($.newsletterAdminInviteMessage!==void 0)sZ.encode($.newsletterAdminInviteMessage,Q.uint32(626).fork()).join();if($.placeholderMessage!==void 0)lX.encode($.placeholderMessage,Q.uint32(642).fork()).join();if($.secretEncryptedMessage!==void 0)sX.encode($.secretEncryptedMessage,Q.uint32(658).fork()).join();if($.albumMessage!==void 0)yq.encode($.albumMessage,Q.uint32(666).fork()).join();if($.eventCoverImage!==void 0)v.encode($.eventCoverImage,Q.uint32(682).fork()).join();if($.stickerPackMessage!==void 0)V6.encode($.stickerPackMessage,Q.uint32(690).fork()).join();if($.statusMentionMessage!==void 0)v.encode($.statusMentionMessage,Q.uint32(698).fork()).join();if($.pollResultSnapshotMessage!==void 0)a$.encode($.pollResultSnapshotMessage,Q.uint32(706).fork()).join();if($.pollCreationOptionImageMessage!==void 0)v.encode($.pollCreationOptionImageMessage,Q.uint32(722).fork()).join();if($.associatedChildMessage!==void 0)v.encode($.associatedChildMessage,Q.uint32(730).fork()).join();if($.groupStatusMentionMessage!==void 0)v.encode($.groupStatusMentionMessage,Q.uint32(738).fork()).join();if($.pollCreationMessageV4!==void 0)v.encode($.pollCreationMessageV4,Q.uint32(746).fork()).join();if($.statusAddYours!==void 0)v.encode($.statusAddYours,Q.uint32(762).fork()).join();if($.groupStatusMessage!==void 0)v.encode($.groupStatusMessage,Q.uint32(770).fork()).join();if($.richResponseMessage!==void 0)h0.encode($.richResponseMessage,Q.uint32(778).fork()).join();if($.statusNotificationMessage!==void 0)q6.encode($.statusNotificationMessage,Q.uint32(786).fork()).join();if($.limitSharingMessage!==void 0)v.encode($.limitSharingMessage,Q.uint32(794).fork()).join();if($.botTaskMessage!==void 0)v.encode($.botTaskMessage,Q.uint32(802).fork()).join();if($.questionMessage!==void 0)v.encode($.questionMessage,Q.uint32(810).fork()).join();if($.messageHistoryNotice!==void 0)tZ.encode($.messageHistoryNotice,Q.uint32(818).fork()).join();if($.groupStatusMessageV2!==void 0)v.encode($.groupStatusMessageV2,Q.uint32(826).fork()).join();if($.botForwardedMessage!==void 0)v.encode($.botForwardedMessage,Q.uint32(834).fork()).join();if($.statusQuestionAnswerMessage!==void 0)Z6.encode($.statusQuestionAnswerMessage,Q.uint32(842).fork()).join();if($.questionReplyMessage!==void 0)v.encode($.questionReplyMessage,Q.uint32(850).fork()).join();if($.questionResponseMessage!==void 0)bX.encode($.questionResponseMessage,Q.uint32(858).fork()).join();if($.statusQuotedMessage!==void 0)X6.encode($.statusQuotedMessage,Q.uint32(874).fork()).join();if($.statusStickerInteractionMessage!==void 0)Y6.encode($.statusStickerInteractionMessage,Q.uint32(882).fork()).join();if($.pollCreationMessageV5!==void 0)K$.encode($.pollCreationMessageV5,Q.uint32(890).fork()).join();if($.newsletterFollowerInviteMessageV2!==void 0)eZ.encode($.newsletterFollowerInviteMessageV2,Q.uint32(906).fork()).join();if($.pollResultSnapshotMessageV3!==void 0)a$.encode($.pollResultSnapshotMessageV3,Q.uint32(922).fork()).join();if($.newsletterAdminProfileMessage!==void 0)v.encode($.newsletterAdminProfileMessage,Q.uint32(930).fork()).join();if($.newsletterAdminProfileMessageV2!==void 0)v.encode($.newsletterAdminProfileMessageV2,Q.uint32(938).fork()).join();if($.spoilerMessage!==void 0)v.encode($.spoilerMessage,Q.uint32(946).fork()).join();if($.pollCreationMessageV6!==void 0)K$.encode($.pollCreationMessageV6,Q.uint32(954).fork()).join();if($.conditionalRevealMessage!==void 0)qZ.encode($.conditionalRevealMessage,Q.uint32(962).fork()).join();if($.pollAddOptionMessage!==void 0)pX.encode($.pollAddOptionMessage,Q.uint32(970).fork()).join();if($.eventInviteMessage!==void 0)GZ.encode($.eventInviteMessage,Q.uint32(978).fork()).join();if($.groupRootKeyShare!==void 0)c8.encode($.groupRootKeyShare,Q.uint32(986).fork()).join();if($.paymentReminderMessage!==void 0)XX.encode($.paymentReminderMessage,Q.uint32(994).fork()).join();if($.splitPaymentMessage!==void 0)$6.encode($.splitPaymentMessage,Q.uint32(1002).fork()).join();if($.newsletterAdminProfileStatusMessage!==void 0)v.encode($.newsletterAdminProfileStatusMessage,Q.uint32(1010).fork()).join();if($.rootSecretDistributeMessage!==void 0)rX.encode($.rootSecretDistributeMessage,Q.uint32(1018).fork()).join();if($.splitPaymentUpdateMessage!==void 0)J6.encode($.splitPaymentUpdateMessage,Q.uint32(1026).fork()).join();if($.musicMessage!==void 0)aZ.encode($.musicMessage,Q.uint32(1034).fork()).join();if($.statusLinkPreviewMetadata!==void 0)K6.encode($.statusLinkPreviewMetadata,Q.uint32(1042).fork()).join();if($.botPlatformRegistrationSuccessMessage!==void 0)v.encode($.botPlatformRegistrationSuccessMessage,Q.uint32(1050).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??F4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.conversation=J.string();continue}case 2:{if(K!==18)break;q.senderKeyDistributionMessage=s$.decode(J,J.uint32(),q.senderKeyDistributionMessage);continue}case 3:{if(K!==26)break;q.imageMessage=t.decode(J,J.uint32(),q.imageMessage);continue}case 4:{if(K!==34)break;q.contactMessage=AQ.decode(J,J.uint32(),q.contactMessage);continue}case 5:{if(K!==42)break;q.locationMessage=Q$.decode(J,J.uint32(),q.locationMessage);continue}case 6:{if(K!==50)break;q.extendedTextMessage=CZ.decode(J,J.uint32(),q.extendedTextMessage);continue}case 7:{if(K!==58)break;q.documentMessage=q$.decode(J,J.uint32(),q.documentMessage);continue}case 8:{if(K!==66)break;q.audioMessage=RQ.decode(J,J.uint32(),q.audioMessage);continue}case 9:{if(K!==74)break;q.videoMessage=e.decode(J,J.uint32(),q.videoMessage);continue}case 10:{if(K!==82)break;q.call=oq.decode(J,J.uint32(),q.call);continue}case 11:{if(K!==90)break;q.chat=rq.decode(J,J.uint32(),q.chat);continue}case 12:{if(K!==98)break;q.protocolMessage=nX.decode(J,J.uint32(),q.protocolMessage);continue}case 13:{if(K!==106)break;q.contactsArrayMessage=ZZ.decode(J,J.uint32(),q.contactsArrayMessage);continue}case 14:{if(K!==114)break;q.highlyStructuredMessage=o.decode(J,J.uint32(),q.highlyStructuredMessage);continue}case 15:{if(K!==122)break;q.fastRatchetKeySenderKeyDistributionMessage=s$.decode(J,J.uint32(),q.fastRatchetKeySenderKeyDistributionMessage);continue}case 16:{if(K!==130)break;q.sendPaymentMessage=eX.decode(J,J.uint32(),q.sendPaymentMessage);continue}case 18:{if(K!==146)break;q.liveLocationMessage=MQ.decode(J,J.uint32(),q.liveLocationMessage);continue}case 22:{if(K!==178)break;q.requestPaymentMessage=iX.decode(J,J.uint32(),q.requestPaymentMessage);continue}case 23:{if(K!==186)break;q.declinePaymentRequestMessage=XZ.decode(J,J.uint32(),q.declinePaymentRequestMessage);continue}case 24:{if(K!==194)break;q.cancelPaymentRequestMessage=gq.decode(J,J.uint32(),q.cancelPaymentRequestMessage);continue}case 25:{if(K!==202)break;q.templateMessage=vQ.decode(J,J.uint32(),q.templateMessage);continue}case 26:{if(K!==210)break;q.stickerMessage=yQ.decode(J,J.uint32(),q.stickerMessage);continue}case 28:{if(K!==226)break;q.groupInviteMessage=FZ.decode(J,J.uint32(),q.groupInviteMessage);continue}case 29:{if(K!==234)break;q.templateButtonReplyMessage=G6.decode(J,J.uint32(),q.templateButtonReplyMessage);continue}case 30:{if(K!==242)break;q.productMessage=TQ.decode(J,J.uint32(),q.productMessage);continue}case 31:{if(K!==250)break;q.deviceSentMessage=YZ.decode(J,J.uint32(),q.deviceSentMessage);continue}case 35:{if(K!==282)break;q.messageContextInfo=_Q.decode(J,J.uint32(),q.messageContextInfo);continue}case 36:{if(K!==290)break;q.listMessage=wZ.decode(J,J.uint32(),q.listMessage);continue}case 37:{if(K!==298)break;q.viewOnceMessage=v.decode(J,J.uint32(),q.viewOnceMessage);continue}case 38:{if(K!==306)break;q.orderMessage=$X.decode(J,J.uint32(),q.orderMessage);continue}case 39:{if(K!==314)break;q.listResponseMessage=iZ.decode(J,J.uint32(),q.listResponseMessage);continue}case 40:{if(K!==322)break;q.ephemeralMessage=v.decode(J,J.uint32(),q.ephemeralMessage);continue}case 41:{if(K!==330)break;q.invoiceMessage=lZ.decode(J,J.uint32(),q.invoiceMessage);continue}case 42:{if(K!==338)break;q.buttonsMessage=jq.decode(J,J.uint32(),q.buttonsMessage);continue}case 43:{if(K!==346)break;q.buttonsResponseMessage=bq.decode(J,J.uint32(),q.buttonsResponseMessage);continue}case 44:{if(K!==354)break;q.paymentInviteMessage=JX.decode(J,J.uint32(),q.paymentInviteMessage);continue}case 45:{if(K!==362)break;q.interactiveMessage=T$.decode(J,J.uint32(),q.interactiveMessage);continue}case 46:{if(K!==370)break;q.reactionMessage=oX.decode(J,J.uint32(),q.reactionMessage);continue}case 47:{if(K!==378)break;q.stickerSyncRmrMessage=z6.decode(J,J.uint32(),q.stickerSyncRmrMessage);continue}case 48:{if(K!==386)break;q.interactiveResponseMessage=fZ.decode(J,J.uint32(),q.interactiveResponseMessage);continue}case 49:{if(K!==394)break;q.pollCreationMessage=K$.decode(J,J.uint32(),q.pollCreationMessage);continue}case 50:{if(K!==402)break;q.pollUpdateMessage=jX.decode(J,J.uint32(),q.pollUpdateMessage);continue}case 51:{if(K!==410)break;q.keepInChatMessage=pZ.decode(J,J.uint32(),q.keepInChatMessage);continue}case 53:{if(K!==426)break;q.documentWithCaptionMessage=v.decode(J,J.uint32(),q.documentWithCaptionMessage);continue}case 54:{if(K!==434)break;q.requestPhoneNumberMessage=mX.decode(J,J.uint32(),q.requestPhoneNumberMessage);continue}case 55:{if(K!==442)break;q.viewOnceMessageV2=v.decode(J,J.uint32(),q.viewOnceMessageV2);continue}case 56:{if(K!==450)break;q.encReactionMessage=zZ.decode(J,J.uint32(),q.encReactionMessage);continue}case 58:{if(K!==466)break;q.editedMessage=v.decode(J,J.uint32(),q.editedMessage);continue}case 59:{if(K!==474)break;q.viewOnceMessageV2Extension=v.decode(J,J.uint32(),q.viewOnceMessageV2Extension);continue}case 60:{if(K!==482)break;q.pollCreationMessageV2=K$.decode(J,J.uint32(),q.pollCreationMessageV2);continue}case 61:{if(K!==490)break;q.scheduledCallCreationMessage=tX.decode(J,J.uint32(),q.scheduledCallCreationMessage);continue}case 62:{if(K!==498)break;q.groupMentionedMessage=v.decode(J,J.uint32(),q.groupMentionedMessage);continue}case 63:{if(K!==506)break;q.pinInChatMessage=hX.decode(J,J.uint32(),q.pinInChatMessage);continue}case 64:{if(K!==514)break;q.pollCreationMessageV3=K$.decode(J,J.uint32(),q.pollCreationMessageV3);continue}case 65:{if(K!==522)break;q.scheduledCallEditMessage=aX.decode(J,J.uint32(),q.scheduledCallEditMessage);continue}case 66:{if(K!==530)break;q.ptvMessage=e.decode(J,J.uint32(),q.ptvMessage);continue}case 67:{if(K!==538)break;q.botInvokeMessage=v.decode(J,J.uint32(),q.botInvokeMessage);continue}case 69:{if(K!==554)break;q.callLogMesssage=iq.decode(J,J.uint32(),q.callLogMesssage);continue}case 70:{if(K!==562)break;q.messageHistoryBundle=WQ.decode(J,J.uint32(),q.messageHistoryBundle);continue}case 71:{if(K!==570)break;q.encCommentMessage=VZ.decode(J,J.uint32(),q.encCommentMessage);continue}case 72:{if(K!==578)break;q.bcallMessage=uq.decode(J,J.uint32(),q.bcallMessage);continue}case 74:{if(K!==594)break;q.lottieStickerMessage=v.decode(J,J.uint32(),q.lottieStickerMessage);continue}case 75:{if(K!==602)break;q.eventMessage=UZ.decode(J,J.uint32(),q.eventMessage);continue}case 76:{if(K!==610)break;q.encEventResponseMessage=HZ.decode(J,J.uint32(),q.encEventResponseMessage);continue}case 77:{if(K!==618)break;q.commentMessage=KZ.decode(J,J.uint32(),q.commentMessage);continue}case 78:{if(K!==626)break;q.newsletterAdminInviteMessage=sZ.decode(J,J.uint32(),q.newsletterAdminInviteMessage);continue}case 80:{if(K!==642)break;q.placeholderMessage=lX.decode(J,J.uint32(),q.placeholderMessage);continue}case 82:{if(K!==658)break;q.secretEncryptedMessage=sX.decode(J,J.uint32(),q.secretEncryptedMessage);continue}case 83:{if(K!==666)break;q.albumMessage=yq.decode(J,J.uint32(),q.albumMessage);continue}case 85:{if(K!==682)break;q.eventCoverImage=v.decode(J,J.uint32(),q.eventCoverImage);continue}case 86:{if(K!==690)break;q.stickerPackMessage=V6.decode(J,J.uint32(),q.stickerPackMessage);continue}case 87:{if(K!==698)break;q.statusMentionMessage=v.decode(J,J.uint32(),q.statusMentionMessage);continue}case 88:{if(K!==706)break;q.pollResultSnapshotMessage=a$.decode(J,J.uint32(),q.pollResultSnapshotMessage);continue}case 90:{if(K!==722)break;q.pollCreationOptionImageMessage=v.decode(J,J.uint32(),q.pollCreationOptionImageMessage);continue}case 91:{if(K!==730)break;q.associatedChildMessage=v.decode(J,J.uint32(),q.associatedChildMessage);continue}case 92:{if(K!==738)break;q.groupStatusMentionMessage=v.decode(J,J.uint32(),q.groupStatusMentionMessage);continue}case 93:{if(K!==746)break;q.pollCreationMessageV4=v.decode(J,J.uint32(),q.pollCreationMessageV4);continue}case 95:{if(K!==762)break;q.statusAddYours=v.decode(J,J.uint32(),q.statusAddYours);continue}case 96:{if(K!==770)break;q.groupStatusMessage=v.decode(J,J.uint32(),q.groupStatusMessage);continue}case 97:{if(K!==778)break;q.richResponseMessage=h0.decode(J,J.uint32(),q.richResponseMessage);continue}case 98:{if(K!==786)break;q.statusNotificationMessage=q6.decode(J,J.uint32(),q.statusNotificationMessage);continue}case 99:{if(K!==794)break;q.limitSharingMessage=v.decode(J,J.uint32(),q.limitSharingMessage);continue}case 100:{if(K!==802)break;q.botTaskMessage=v.decode(J,J.uint32(),q.botTaskMessage);continue}case 101:{if(K!==810)break;q.questionMessage=v.decode(J,J.uint32(),q.questionMessage);continue}case 102:{if(K!==818)break;q.messageHistoryNotice=tZ.decode(J,J.uint32(),q.messageHistoryNotice);continue}case 103:{if(K!==826)break;q.groupStatusMessageV2=v.decode(J,J.uint32(),q.groupStatusMessageV2);continue}case 104:{if(K!==834)break;q.botForwardedMessage=v.decode(J,J.uint32(),q.botForwardedMessage);continue}case 105:{if(K!==842)break;q.statusQuestionAnswerMessage=Z6.decode(J,J.uint32(),q.statusQuestionAnswerMessage);continue}case 106:{if(K!==850)break;q.questionReplyMessage=v.decode(J,J.uint32(),q.questionReplyMessage);continue}case 107:{if(K!==858)break;q.questionResponseMessage=bX.decode(J,J.uint32(),q.questionResponseMessage);continue}case 109:{if(K!==874)break;q.statusQuotedMessage=X6.decode(J,J.uint32(),q.statusQuotedMessage);continue}case 110:{if(K!==882)break;q.statusStickerInteractionMessage=Y6.decode(J,J.uint32(),q.statusStickerInteractionMessage);continue}case 111:{if(K!==890)break;q.pollCreationMessageV5=K$.decode(J,J.uint32(),q.pollCreationMessageV5);continue}case 113:{if(K!==906)break;q.newsletterFollowerInviteMessageV2=eZ.decode(J,J.uint32(),q.newsletterFollowerInviteMessageV2);continue}case 115:{if(K!==922)break;q.pollResultSnapshotMessageV3=a$.decode(J,J.uint32(),q.pollResultSnapshotMessageV3);continue}case 116:{if(K!==930)break;q.newsletterAdminProfileMessage=v.decode(J,J.uint32(),q.newsletterAdminProfileMessage);continue}case 117:{if(K!==938)break;q.newsletterAdminProfileMessageV2=v.decode(J,J.uint32(),q.newsletterAdminProfileMessageV2);continue}case 118:{if(K!==946)break;q.spoilerMessage=v.decode(J,J.uint32(),q.spoilerMessage);continue}case 119:{if(K!==954)break;q.pollCreationMessageV6=K$.decode(J,J.uint32(),q.pollCreationMessageV6);continue}case 120:{if(K!==962)break;q.conditionalRevealMessage=qZ.decode(J,J.uint32(),q.conditionalRevealMessage);continue}case 121:{if(K!==970)break;q.pollAddOptionMessage=pX.decode(J,J.uint32(),q.pollAddOptionMessage);continue}case 122:{if(K!==978)break;q.eventInviteMessage=GZ.decode(J,J.uint32(),q.eventInviteMessage);continue}case 123:{if(K!==986)break;q.groupRootKeyShare=c8.decode(J,J.uint32(),q.groupRootKeyShare);continue}case 124:{if(K!==994)break;q.paymentReminderMessage=XX.decode(J,J.uint32(),q.paymentReminderMessage);continue}case 125:{if(K!==1002)break;q.splitPaymentMessage=$6.decode(J,J.uint32(),q.splitPaymentMessage);continue}case 126:{if(K!==1010)break;q.newsletterAdminProfileStatusMessage=v.decode(J,J.uint32(),q.newsletterAdminProfileStatusMessage);continue}case 127:{if(K!==1018)break;q.rootSecretDistributeMessage=rX.decode(J,J.uint32(),q.rootSecretDistributeMessage);continue}case 128:{if(K!==1026)break;q.splitPaymentUpdateMessage=J6.decode(J,J.uint32(),q.splitPaymentUpdateMessage);continue}case 129:{if(K!==1034)break;q.musicMessage=aZ.decode(J,J.uint32(),q.musicMessage);continue}case 130:{if(K!==1042)break;q.statusLinkPreviewMetadata=K6.decode(J,J.uint32(),q.statusLinkPreviewMetadata);continue}case 131:{if(K!==1050)break;q.botPlatformRegistrationSuccessMessage=v.decode(J,J.uint32(),q.botPlatformRegistrationSuccessMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return d.fromPartial($??{})},fromPartial($){let Q=F4();return Q.conversation=$.conversation??void 0,Q.senderKeyDistributionMessage=$.senderKeyDistributionMessage!==void 0&&$.senderKeyDistributionMessage!==null?s$.fromPartial($.senderKeyDistributionMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?AQ.fromPartial($.contactMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q$.fromPartial($.locationMessage):void 0,Q.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?CZ.fromPartial($.extendedTextMessage):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?q$.fromPartial($.documentMessage):void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?RQ.fromPartial($.audioMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.call=$.call!==void 0&&$.call!==null?oq.fromPartial($.call):void 0,Q.chat=$.chat!==void 0&&$.chat!==null?rq.fromPartial($.chat):void 0,Q.protocolMessage=$.protocolMessage!==void 0&&$.protocolMessage!==null?nX.fromPartial($.protocolMessage):void 0,Q.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?ZZ.fromPartial($.contactsArrayMessage):void 0,Q.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?o.fromPartial($.highlyStructuredMessage):void 0,Q.fastRatchetKeySenderKeyDistributionMessage=$.fastRatchetKeySenderKeyDistributionMessage!==void 0&&$.fastRatchetKeySenderKeyDistributionMessage!==null?s$.fromPartial($.fastRatchetKeySenderKeyDistributionMessage):void 0,Q.sendPaymentMessage=$.sendPaymentMessage!==void 0&&$.sendPaymentMessage!==null?eX.fromPartial($.sendPaymentMessage):void 0,Q.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?MQ.fromPartial($.liveLocationMessage):void 0,Q.requestPaymentMessage=$.requestPaymentMessage!==void 0&&$.requestPaymentMessage!==null?iX.fromPartial($.requestPaymentMessage):void 0,Q.declinePaymentRequestMessage=$.declinePaymentRequestMessage!==void 0&&$.declinePaymentRequestMessage!==null?XZ.fromPartial($.declinePaymentRequestMessage):void 0,Q.cancelPaymentRequestMessage=$.cancelPaymentRequestMessage!==void 0&&$.cancelPaymentRequestMessage!==null?gq.fromPartial($.cancelPaymentRequestMessage):void 0,Q.templateMessage=$.templateMessage!==void 0&&$.templateMessage!==null?vQ.fromPartial($.templateMessage):void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?yQ.fromPartial($.stickerMessage):void 0,Q.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?FZ.fromPartial($.groupInviteMessage):void 0,Q.templateButtonReplyMessage=$.templateButtonReplyMessage!==void 0&&$.templateButtonReplyMessage!==null?G6.fromPartial($.templateButtonReplyMessage):void 0,Q.productMessage=$.productMessage!==void 0&&$.productMessage!==null?TQ.fromPartial($.productMessage):void 0,Q.deviceSentMessage=$.deviceSentMessage!==void 0&&$.deviceSentMessage!==null?YZ.fromPartial($.deviceSentMessage):void 0,Q.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?_Q.fromPartial($.messageContextInfo):void 0,Q.listMessage=$.listMessage!==void 0&&$.listMessage!==null?wZ.fromPartial($.listMessage):void 0,Q.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?v.fromPartial($.viewOnceMessage):void 0,Q.orderMessage=$.orderMessage!==void 0&&$.orderMessage!==null?$X.fromPartial($.orderMessage):void 0,Q.listResponseMessage=$.listResponseMessage!==void 0&&$.listResponseMessage!==null?iZ.fromPartial($.listResponseMessage):void 0,Q.ephemeralMessage=$.ephemeralMessage!==void 0&&$.ephemeralMessage!==null?v.fromPartial($.ephemeralMessage):void 0,Q.invoiceMessage=$.invoiceMessage!==void 0&&$.invoiceMessage!==null?lZ.fromPartial($.invoiceMessage):void 0,Q.buttonsMessage=$.buttonsMessage!==void 0&&$.buttonsMessage!==null?jq.fromPartial($.buttonsMessage):void 0,Q.buttonsResponseMessage=$.buttonsResponseMessage!==void 0&&$.buttonsResponseMessage!==null?bq.fromPartial($.buttonsResponseMessage):void 0,Q.paymentInviteMessage=$.paymentInviteMessage!==void 0&&$.paymentInviteMessage!==null?JX.fromPartial($.paymentInviteMessage):void 0,Q.interactiveMessage=$.interactiveMessage!==void 0&&$.interactiveMessage!==null?T$.fromPartial($.interactiveMessage):void 0,Q.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?oX.fromPartial($.reactionMessage):void 0,Q.stickerSyncRmrMessage=$.stickerSyncRmrMessage!==void 0&&$.stickerSyncRmrMessage!==null?z6.fromPartial($.stickerSyncRmrMessage):void 0,Q.interactiveResponseMessage=$.interactiveResponseMessage!==void 0&&$.interactiveResponseMessage!==null?fZ.fromPartial($.interactiveResponseMessage):void 0,Q.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?K$.fromPartial($.pollCreationMessage):void 0,Q.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?jX.fromPartial($.pollUpdateMessage):void 0,Q.keepInChatMessage=$.keepInChatMessage!==void 0&&$.keepInChatMessage!==null?pZ.fromPartial($.keepInChatMessage):void 0,Q.documentWithCaptionMessage=$.documentWithCaptionMessage!==void 0&&$.documentWithCaptionMessage!==null?v.fromPartial($.documentWithCaptionMessage):void 0,Q.requestPhoneNumberMessage=$.requestPhoneNumberMessage!==void 0&&$.requestPhoneNumberMessage!==null?mX.fromPartial($.requestPhoneNumberMessage):void 0,Q.viewOnceMessageV2=$.viewOnceMessageV2!==void 0&&$.viewOnceMessageV2!==null?v.fromPartial($.viewOnceMessageV2):void 0,Q.encReactionMessage=$.encReactionMessage!==void 0&&$.encReactionMessage!==null?zZ.fromPartial($.encReactionMessage):void 0,Q.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?v.fromPartial($.editedMessage):void 0,Q.viewOnceMessageV2Extension=$.viewOnceMessageV2Extension!==void 0&&$.viewOnceMessageV2Extension!==null?v.fromPartial($.viewOnceMessageV2Extension):void 0,Q.pollCreationMessageV2=$.pollCreationMessageV2!==void 0&&$.pollCreationMessageV2!==null?K$.fromPartial($.pollCreationMessageV2):void 0,Q.scheduledCallCreationMessage=$.scheduledCallCreationMessage!==void 0&&$.scheduledCallCreationMessage!==null?tX.fromPartial($.scheduledCallCreationMessage):void 0,Q.groupMentionedMessage=$.groupMentionedMessage!==void 0&&$.groupMentionedMessage!==null?v.fromPartial($.groupMentionedMessage):void 0,Q.pinInChatMessage=$.pinInChatMessage!==void 0&&$.pinInChatMessage!==null?hX.fromPartial($.pinInChatMessage):void 0,Q.pollCreationMessageV3=$.pollCreationMessageV3!==void 0&&$.pollCreationMessageV3!==null?K$.fromPartial($.pollCreationMessageV3):void 0,Q.scheduledCallEditMessage=$.scheduledCallEditMessage!==void 0&&$.scheduledCallEditMessage!==null?aX.fromPartial($.scheduledCallEditMessage):void 0,Q.ptvMessage=$.ptvMessage!==void 0&&$.ptvMessage!==null?e.fromPartial($.ptvMessage):void 0,Q.botInvokeMessage=$.botInvokeMessage!==void 0&&$.botInvokeMessage!==null?v.fromPartial($.botInvokeMessage):void 0,Q.callLogMesssage=$.callLogMesssage!==void 0&&$.callLogMesssage!==null?iq.fromPartial($.callLogMesssage):void 0,Q.messageHistoryBundle=$.messageHistoryBundle!==void 0&&$.messageHistoryBundle!==null?WQ.fromPartial($.messageHistoryBundle):void 0,Q.encCommentMessage=$.encCommentMessage!==void 0&&$.encCommentMessage!==null?VZ.fromPartial($.encCommentMessage):void 0,Q.bcallMessage=$.bcallMessage!==void 0&&$.bcallMessage!==null?uq.fromPartial($.bcallMessage):void 0,Q.lottieStickerMessage=$.lottieStickerMessage!==void 0&&$.lottieStickerMessage!==null?v.fromPartial($.lottieStickerMessage):void 0,Q.eventMessage=$.eventMessage!==void 0&&$.eventMessage!==null?UZ.fromPartial($.eventMessage):void 0,Q.encEventResponseMessage=$.encEventResponseMessage!==void 0&&$.encEventResponseMessage!==null?HZ.fromPartial($.encEventResponseMessage):void 0,Q.commentMessage=$.commentMessage!==void 0&&$.commentMessage!==null?KZ.fromPartial($.commentMessage):void 0,Q.newsletterAdminInviteMessage=$.newsletterAdminInviteMessage!==void 0&&$.newsletterAdminInviteMessage!==null?sZ.fromPartial($.newsletterAdminInviteMessage):void 0,Q.placeholderMessage=$.placeholderMessage!==void 0&&$.placeholderMessage!==null?lX.fromPartial($.placeholderMessage):void 0,Q.secretEncryptedMessage=$.secretEncryptedMessage!==void 0&&$.secretEncryptedMessage!==null?sX.fromPartial($.secretEncryptedMessage):void 0,Q.albumMessage=$.albumMessage!==void 0&&$.albumMessage!==null?yq.fromPartial($.albumMessage):void 0,Q.eventCoverImage=$.eventCoverImage!==void 0&&$.eventCoverImage!==null?v.fromPartial($.eventCoverImage):void 0,Q.stickerPackMessage=$.stickerPackMessage!==void 0&&$.stickerPackMessage!==null?V6.fromPartial($.stickerPackMessage):void 0,Q.statusMentionMessage=$.statusMentionMessage!==void 0&&$.statusMentionMessage!==null?v.fromPartial($.statusMentionMessage):void 0,Q.pollResultSnapshotMessage=$.pollResultSnapshotMessage!==void 0&&$.pollResultSnapshotMessage!==null?a$.fromPartial($.pollResultSnapshotMessage):void 0,Q.pollCreationOptionImageMessage=$.pollCreationOptionImageMessage!==void 0&&$.pollCreationOptionImageMessage!==null?v.fromPartial($.pollCreationOptionImageMessage):void 0,Q.associatedChildMessage=$.associatedChildMessage!==void 0&&$.associatedChildMessage!==null?v.fromPartial($.associatedChildMessage):void 0,Q.groupStatusMentionMessage=$.groupStatusMentionMessage!==void 0&&$.groupStatusMentionMessage!==null?v.fromPartial($.groupStatusMentionMessage):void 0,Q.pollCreationMessageV4=$.pollCreationMessageV4!==void 0&&$.pollCreationMessageV4!==null?v.fromPartial($.pollCreationMessageV4):void 0,Q.statusAddYours=$.statusAddYours!==void 0&&$.statusAddYours!==null?v.fromPartial($.statusAddYours):void 0,Q.groupStatusMessage=$.groupStatusMessage!==void 0&&$.groupStatusMessage!==null?v.fromPartial($.groupStatusMessage):void 0,Q.richResponseMessage=$.richResponseMessage!==void 0&&$.richResponseMessage!==null?h0.fromPartial($.richResponseMessage):void 0,Q.statusNotificationMessage=$.statusNotificationMessage!==void 0&&$.statusNotificationMessage!==null?q6.fromPartial($.statusNotificationMessage):void 0,Q.limitSharingMessage=$.limitSharingMessage!==void 0&&$.limitSharingMessage!==null?v.fromPartial($.limitSharingMessage):void 0,Q.botTaskMessage=$.botTaskMessage!==void 0&&$.botTaskMessage!==null?v.fromPartial($.botTaskMessage):void 0,Q.questionMessage=$.questionMessage!==void 0&&$.questionMessage!==null?v.fromPartial($.questionMessage):void 0,Q.messageHistoryNotice=$.messageHistoryNotice!==void 0&&$.messageHistoryNotice!==null?tZ.fromPartial($.messageHistoryNotice):void 0,Q.groupStatusMessageV2=$.groupStatusMessageV2!==void 0&&$.groupStatusMessageV2!==null?v.fromPartial($.groupStatusMessageV2):void 0,Q.botForwardedMessage=$.botForwardedMessage!==void 0&&$.botForwardedMessage!==null?v.fromPartial($.botForwardedMessage):void 0,Q.statusQuestionAnswerMessage=$.statusQuestionAnswerMessage!==void 0&&$.statusQuestionAnswerMessage!==null?Z6.fromPartial($.statusQuestionAnswerMessage):void 0,Q.questionReplyMessage=$.questionReplyMessage!==void 0&&$.questionReplyMessage!==null?v.fromPartial($.questionReplyMessage):void 0,Q.questionResponseMessage=$.questionResponseMessage!==void 0&&$.questionResponseMessage!==null?bX.fromPartial($.questionResponseMessage):void 0,Q.statusQuotedMessage=$.statusQuotedMessage!==void 0&&$.statusQuotedMessage!==null?X6.fromPartial($.statusQuotedMessage):void 0,Q.statusStickerInteractionMessage=$.statusStickerInteractionMessage!==void 0&&$.statusStickerInteractionMessage!==null?Y6.fromPartial($.statusStickerInteractionMessage):void 0,Q.pollCreationMessageV5=$.pollCreationMessageV5!==void 0&&$.pollCreationMessageV5!==null?K$.fromPartial($.pollCreationMessageV5):void 0,Q.newsletterFollowerInviteMessageV2=$.newsletterFollowerInviteMessageV2!==void 0&&$.newsletterFollowerInviteMessageV2!==null?eZ.fromPartial($.newsletterFollowerInviteMessageV2):void 0,Q.pollResultSnapshotMessageV3=$.pollResultSnapshotMessageV3!==void 0&&$.pollResultSnapshotMessageV3!==null?a$.fromPartial($.pollResultSnapshotMessageV3):void 0,Q.newsletterAdminProfileMessage=$.newsletterAdminProfileMessage!==void 0&&$.newsletterAdminProfileMessage!==null?v.fromPartial($.newsletterAdminProfileMessage):void 0,Q.newsletterAdminProfileMessageV2=$.newsletterAdminProfileMessageV2!==void 0&&$.newsletterAdminProfileMessageV2!==null?v.fromPartial($.newsletterAdminProfileMessageV2):void 0,Q.spoilerMessage=$.spoilerMessage!==void 0&&$.spoilerMessage!==null?v.fromPartial($.spoilerMessage):void 0,Q.pollCreationMessageV6=$.pollCreationMessageV6!==void 0&&$.pollCreationMessageV6!==null?K$.fromPartial($.pollCreationMessageV6):void 0,Q.conditionalRevealMessage=$.conditionalRevealMessage!==void 0&&$.conditionalRevealMessage!==null?qZ.fromPartial($.conditionalRevealMessage):void 0,Q.pollAddOptionMessage=$.pollAddOptionMessage!==void 0&&$.pollAddOptionMessage!==null?pX.fromPartial($.pollAddOptionMessage):void 0,Q.eventInviteMessage=$.eventInviteMessage!==void 0&&$.eventInviteMessage!==null?GZ.fromPartial($.eventInviteMessage):void 0,Q.groupRootKeyShare=$.groupRootKeyShare!==void 0&&$.groupRootKeyShare!==null?c8.fromPartial($.groupRootKeyShare):void 0,Q.paymentReminderMessage=$.paymentReminderMessage!==void 0&&$.paymentReminderMessage!==null?XX.fromPartial($.paymentReminderMessage):void 0,Q.splitPaymentMessage=$.splitPaymentMessage!==void 0&&$.splitPaymentMessage!==null?$6.fromPartial($.splitPaymentMessage):void 0,Q.newsletterAdminProfileStatusMessage=$.newsletterAdminProfileStatusMessage!==void 0&&$.newsletterAdminProfileStatusMessage!==null?v.fromPartial($.newsletterAdminProfileStatusMessage):void 0,Q.rootSecretDistributeMessage=$.rootSecretDistributeMessage!==void 0&&$.rootSecretDistributeMessage!==null?rX.fromPartial($.rootSecretDistributeMessage):void 0,Q.splitPaymentUpdateMessage=$.splitPaymentUpdateMessage!==void 0&&$.splitPaymentUpdateMessage!==null?J6.fromPartial($.splitPaymentUpdateMessage):void 0,Q.musicMessage=$.musicMessage!==void 0&&$.musicMessage!==null?aZ.fromPartial($.musicMessage):void 0,Q.statusLinkPreviewMetadata=$.statusLinkPreviewMetadata!==void 0&&$.statusLinkPreviewMetadata!==null?K6.fromPartial($.statusLinkPreviewMetadata):void 0,Q.botPlatformRegistrationSuccessMessage=$.botPlatformRegistrationSuccessMessage!==void 0&&$.botPlatformRegistrationSuccessMessage!==null?v.fromPartial($.botPlatformRegistrationSuccessMessage):void 0,Q}};function L4(){return{}}var yq={encode($,Q=new H){if($.expectedImageCount!==void 0)Q.uint32(16).uint32($.expectedImageCount);if($.expectedVideoCount!==void 0)Q.uint32(24).uint32($.expectedVideoCount);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??L4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 2:{if(K!==16)break;q.expectedImageCount=J.uint32();continue}case 3:{if(K!==24)break;q.expectedVideoCount=J.uint32();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return yq.fromPartial($??{})},fromPartial($){let Q=L4();return Q.expectedImageCount=$.expectedImageCount??void 0,Q.expectedVideoCount=$.expectedVideoCount??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function P4(){return{}}var vq={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??P4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.collectionNames===void 0)q.collectionNames=[];let V=J.string();if(V!==void 0)q.collectionNames.push(V);continue}case 2:{if(K!==16)break;q.timestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return vq.fromPartial($??{})},fromPartial($){let Q=P4();return Q.collectionNames=$.collectionNames?.map((Z)=>Z)||void 0,Q.timestamp=$.timestamp??void 0,Q}};function k4(){return{}}var fq={encode($,Q=new H){if($.keyId!==void 0)OQ.encode($.keyId,Q.uint32(10).fork()).join();if($.keyData!==void 0)_q.encode($.keyData,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??k4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.keyId=OQ.decode(J,J.uint32(),q.keyId);continue}case 2:{if(K!==18)break;q.keyData=_q.decode(J,J.uint32(),q.keyData);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return fq.fromPartial($??{})},fromPartial($){let Q=k4();return Q.keyId=$.keyId!==void 0&&$.keyId!==null?OQ.fromPartial($.keyId):void 0,Q.keyData=$.keyData!==void 0&&$.keyData!==null?_q.fromPartial($.keyData):void 0,Q}};function x4(){return{}}var _q={encode($,Q=new H){if($.keyData!==void 0)Q.uint32(10).bytes($.keyData);if($.fingerprint!==void 0)hq.encode($.fingerprint,Q.uint32(18).fork()).join();if($.timestamp!==void 0)Q.uint32(24).int64($.timestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??x4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.keyData=J.bytes();continue}case 2:{if(K!==18)break;q.fingerprint=hq.decode(J,J.uint32(),q.fingerprint);continue}case 3:{if(K!==24)break;q.timestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _q.fromPartial($??{})},fromPartial($){let Q=x4();return Q.keyData=$.keyData??void 0,Q.fingerprint=$.fingerprint!==void 0&&$.fingerprint!==null?hq.fromPartial($.fingerprint):void 0,Q.timestamp=$.timestamp??void 0,Q}};function B4(){return{}}var hq={encode($,Q=new H){if($.rawId!==void 0)Q.uint32(8).uint32($.rawId);if($.currentIndex!==void 0)Q.uint32(16).uint32($.currentIndex);if($.deviceIndexes!==void 0&&$.deviceIndexes.length!==0){Q.uint32(26).fork();for(let Z of $.deviceIndexes)Q.uint32(Z);Q.join()}return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??B4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.rawId=J.uint32();continue}case 2:{if(K!==16)break;q.currentIndex=J.uint32();continue}case 3:{if(K===24){if(q.deviceIndexes===void 0)q.deviceIndexes=[];q.deviceIndexes.push(J.uint32());continue}if(K===26){if(q.deviceIndexes===void 0)q.deviceIndexes=[];let V=J.uint32()+J.pos;while(J.pos<V)q.deviceIndexes.push(J.uint32());continue}break}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return hq.fromPartial($??{})},fromPartial($){let Q=B4();return Q.rawId=$.rawId??void 0,Q.currentIndex=$.currentIndex??void 0,Q.deviceIndexes=$.deviceIndexes?.map((Z)=>Z)||void 0,Q}};function N4(){return{}}var OQ={encode($,Q=new H){if($.keyId!==void 0)Q.uint32(10).bytes($.keyId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??N4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.keyId=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return OQ.fromPartial($??{})},fromPartial($){let Q=N4();return Q.keyId=$.keyId??void 0,Q}};function O4(){return{}}var lq={encode($,Q=new H){if($.keyIds!==void 0&&$.keyIds.length!==0)for(let Z of $.keyIds)OQ.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??O4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.keyIds===void 0)q.keyIds=[];let V=OQ.decode(J,J.uint32());if(V!==void 0)q.keyIds.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return lq.fromPartial($??{})},fromPartial($){let Q=O4();return Q.keyIds=$.keyIds?.map((Z)=>OQ.fromPartial(Z))||void 0,Q}};function R4(){return{}}var pq={encode($,Q=new H){if($.keys!==void 0&&$.keys.length!==0)for(let Z of $.keys)fq.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??R4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.keys===void 0)q.keys=[];let V=fq.decode(J,J.uint32());if(V!==void 0)q.keys.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return pq.fromPartial($??{})},fromPartial($){let Q=R4();return Q.keys=$.keys?.map((Z)=>fq.fromPartial(Z))||void 0,Q}};function A4(){return{}}var RQ={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.mimetype!==void 0)Q.uint32(18).string($.mimetype);if($.fileSha256!==void 0)Q.uint32(26).bytes($.fileSha256);if($.fileLength!==void 0)Q.uint32(32).uint64($.fileLength);if($.seconds!==void 0)Q.uint32(40).uint32($.seconds);if($.ptt!==void 0)Q.uint32(48).bool($.ptt);if($.mediaKey!==void 0)Q.uint32(58).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(66).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(74).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(80).int64($.mediaKeyTimestamp);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.streamingSidecar!==void 0)Q.uint32(146).bytes($.streamingSidecar);if($.waveform!==void 0)Q.uint32(154).bytes($.waveform);if($.backgroundArgb!==void 0)Q.uint32(165).fixed32($.backgroundArgb);if($.viewOnce!==void 0)Q.uint32(168).bool($.viewOnce);if($.accessibilityLabel!==void 0)Q.uint32(178).string($.accessibilityLabel);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??A4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==18)break;q.mimetype=J.string();continue}case 3:{if(K!==26)break;q.fileSha256=J.bytes();continue}case 4:{if(K!==32)break;q.fileLength=J.uint64Value();continue}case 5:{if(K!==40)break;q.seconds=J.uint32();continue}case 6:{if(K!==48)break;q.ptt=J.bool();continue}case 7:{if(K!==58)break;q.mediaKey=J.bytes();continue}case 8:{if(K!==66)break;q.fileEncSha256=J.bytes();continue}case 9:{if(K!==74)break;q.directPath=J.string();continue}case 10:{if(K!==80)break;q.mediaKeyTimestamp=J.int64Value();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 18:{if(K!==146)break;q.streamingSidecar=J.bytes();continue}case 19:{if(K!==154)break;q.waveform=J.bytes();continue}case 20:{if(K!==165)break;q.backgroundArgb=J.fixed32();continue}case 21:{if(K!==168)break;q.viewOnce=J.bool();continue}case 22:{if(K!==178)break;q.accessibilityLabel=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return RQ.fromPartial($??{})},fromPartial($){let Q=A4();return Q.url=$.url??void 0,Q.mimetype=$.mimetype??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileLength=$.fileLength??void 0,Q.seconds=$.seconds??void 0,Q.ptt=$.ptt??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.streamingSidecar=$.streamingSidecar??void 0,Q.waveform=$.waveform??void 0,Q.backgroundArgb=$.backgroundArgb??void 0,Q.viewOnce=$.viewOnce??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q}};function E4(){return{}}var uq={encode($,Q=new H){if($.sessionId!==void 0)Q.uint32(10).string($.sessionId);if($.mediaType!==void 0)Q.uint32(16).int32($.mediaType);if($.masterKey!==void 0)Q.uint32(26).bytes($.masterKey);if($.caption!==void 0)Q.uint32(34).string($.caption);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??E4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.sessionId=J.string();continue}case 2:{if(K!==16)break;q.mediaType=J.int32();continue}case 3:{if(K!==26)break;q.masterKey=J.bytes();continue}case 4:{if(K!==34)break;q.caption=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return uq.fromPartial($??{})},fromPartial($){let Q=E4();return Q.sessionId=$.sessionId??void 0,Q.mediaType=$.mediaType??void 0,Q.masterKey=$.masterKey??void 0,Q.caption=$.caption??void 0,Q}};function M4(){return{}}var wq={encode($,Q=new H){if($.botJid!==void 0)Q.uint32(10).string($.botJid);if($.historyShareCutoffTimestamp!==void 0)Q.uint32(16).int64($.historyShareCutoffTimestamp);if($.historyShareMessages!==void 0&&$.historyShareMessages.length!==0)for(let Z of $.historyShareMessages)NZ.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??M4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.botJid=J.string();continue}case 2:{if(K!==16)break;q.historyShareCutoffTimestamp=J.int64Value();continue}case 3:{if(K!==26)break;if(q.historyShareMessages===void 0)q.historyShareMessages=[];let V=NZ.decode(J,J.uint32());if(V!==void 0)q.historyShareMessages.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return wq.fromPartial($??{})},fromPartial($){let Q=M4();return Q.botJid=$.botJid??void 0,Q.historyShareCutoffTimestamp=$.historyShareCutoffTimestamp??void 0,Q.historyShareMessages=$.historyShareMessages?.map((Z)=>NZ.fromPartial(Z))||void 0,Q}};function W4(){return{}}var jq={encode($,Q=new H){if($.contentText!==void 0)Q.uint32(50).string($.contentText);if($.footerText!==void 0)Q.uint32(58).string($.footerText);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(66).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let Z of $.buttons)cq.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)q$.encode($.documentMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)Q$.encode($.locationMessage,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??W4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 6:{if(K!==50)break;q.contentText=J.string();continue}case 7:{if(K!==58)break;q.footerText=J.string();continue}case 8:{if(K!==66)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 9:{if(K!==74)break;if(q.buttons===void 0)q.buttons=[];let V=cq.decode(J,J.uint32());if(V!==void 0)q.buttons.push(V);continue}case 10:{if(K!==80)break;q.headerType=J.int32();continue}case 1:{if(K!==10)break;q.text=J.string();continue}case 2:{if(K!==18)break;q.documentMessage=q$.decode(J,J.uint32(),q.documentMessage);continue}case 3:{if(K!==26)break;q.imageMessage=t.decode(J,J.uint32(),q.imageMessage);continue}case 4:{if(K!==34)break;q.videoMessage=e.decode(J,J.uint32(),q.videoMessage);continue}case 5:{if(K!==42)break;q.locationMessage=Q$.decode(J,J.uint32(),q.locationMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return jq.fromPartial($??{})},fromPartial($){let Q=W4();return Q.contentText=$.contentText??void 0,Q.footerText=$.footerText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.buttons=$.buttons?.map((Z)=>cq.fromPartial(Z))||void 0,Q.headerType=$.headerType??void 0,Q.text=$.text??void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?q$.fromPartial($.documentMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q$.fromPartial($.locationMessage):void 0,Q}};function S4(){return{}}var cq={encode($,Q=new H){if($.buttonId!==void 0)Q.uint32(10).string($.buttonId);if($.buttonText!==void 0)dq.encode($.buttonText,Q.uint32(18).fork()).join();if($.type!==void 0)Q.uint32(24).int32($.type);if($.nativeFlowInfo!==void 0)nq.encode($.nativeFlowInfo,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??S4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.buttonId=J.string();continue}case 2:{if(K!==18)break;q.buttonText=dq.decode(J,J.uint32(),q.buttonText);continue}case 3:{if(K!==24)break;q.type=J.int32();continue}case 4:{if(K!==34)break;q.nativeFlowInfo=nq.decode(J,J.uint32(),q.nativeFlowInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return cq.fromPartial($??{})},fromPartial($){let Q=S4();return Q.buttonId=$.buttonId??void 0,Q.buttonText=$.buttonText!==void 0&&$.buttonText!==null?dq.fromPartial($.buttonText):void 0,Q.type=$.type??void 0,Q.nativeFlowInfo=$.nativeFlowInfo!==void 0&&$.nativeFlowInfo!==null?nq.fromPartial($.nativeFlowInfo):void 0,Q}};function I4(){return{}}var dq={encode($,Q=new H){if($.displayText!==void 0)Q.uint32(10).string($.displayText);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??I4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayText=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return dq.fromPartial($??{})},fromPartial($){let Q=I4();return Q.displayText=$.displayText??void 0,Q}};function T4(){return{}}var nq={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.paramsJson!==void 0)Q.uint32(18).string($.paramsJson);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??T4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}case 2:{if(K!==18)break;q.paramsJson=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return nq.fromPartial($??{})},fromPartial($){let Q=T4();return Q.name=$.name??void 0,Q.paramsJson=$.paramsJson??void 0,Q}};function y4(){return{}}var bq={encode($,Q=new H){if($.selectedButtonId!==void 0)Q.uint32(10).string($.selectedButtonId);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(26).fork()).join();if($.type!==void 0)Q.uint32(32).int32($.type);if($.selectedDisplayText!==void 0)Q.uint32(18).string($.selectedDisplayText);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??y4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.selectedButtonId=J.string();continue}case 3:{if(K!==26)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 4:{if(K!==32)break;q.type=J.int32();continue}case 2:{if(K!==18)break;q.selectedDisplayText=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return bq.fromPartial($??{})},fromPartial($){let Q=y4();return Q.selectedButtonId=$.selectedButtonId??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.type=$.type??void 0,Q.selectedDisplayText=$.selectedDisplayText??void 0,Q}};function v4(){return{}}var oq={encode($,Q=new H){if($.callKey!==void 0)Q.uint32(10).bytes($.callKey);if($.conversionSource!==void 0)Q.uint32(18).string($.conversionSource);if($.conversionData!==void 0)Q.uint32(26).bytes($.conversionData);if($.conversionDelaySeconds!==void 0)Q.uint32(32).uint32($.conversionDelaySeconds);if($.ctwaSignals!==void 0)Q.uint32(42).string($.ctwaSignals);if($.ctwaPayload!==void 0)Q.uint32(50).bytes($.ctwaPayload);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(58).fork()).join();if($.nativeFlowCallButtonPayload!==void 0)Q.uint32(66).string($.nativeFlowCallButtonPayload);if($.deeplinkPayload!==void 0)Q.uint32(74).string($.deeplinkPayload);if($.messageContextInfo!==void 0)_Q.encode($.messageContextInfo,Q.uint32(82).fork()).join();if($.callEntryPoint!==void 0)Q.uint32(88).uint32($.callEntryPoint);if($.callReason!==void 0)Q.uint32(98).string($.callReason);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??v4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.callKey=J.bytes();continue}case 2:{if(K!==18)break;q.conversionSource=J.string();continue}case 3:{if(K!==26)break;q.conversionData=J.bytes();continue}case 4:{if(K!==32)break;q.conversionDelaySeconds=J.uint32();continue}case 5:{if(K!==42)break;q.ctwaSignals=J.string();continue}case 6:{if(K!==50)break;q.ctwaPayload=J.bytes();continue}case 7:{if(K!==58)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 8:{if(K!==66)break;q.nativeFlowCallButtonPayload=J.string();continue}case 9:{if(K!==74)break;q.deeplinkPayload=J.string();continue}case 10:{if(K!==82)break;q.messageContextInfo=_Q.decode(J,J.uint32(),q.messageContextInfo);continue}case 11:{if(K!==88)break;q.callEntryPoint=J.uint32();continue}case 12:{if(K!==98)break;q.callReason=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return oq.fromPartial($??{})},fromPartial($){let Q=v4();return Q.callKey=$.callKey??void 0,Q.conversionSource=$.conversionSource??void 0,Q.conversionData=$.conversionData??void 0,Q.conversionDelaySeconds=$.conversionDelaySeconds??void 0,Q.ctwaSignals=$.ctwaSignals??void 0,Q.ctwaPayload=$.ctwaPayload??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.nativeFlowCallButtonPayload=$.nativeFlowCallButtonPayload??void 0,Q.deeplinkPayload=$.deeplinkPayload??void 0,Q.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?_Q.fromPartial($.messageContextInfo):void 0,Q.callEntryPoint=$.callEntryPoint??void 0,Q.callReason=$.callReason??void 0,Q}};function f4(){return{}}var iq={encode($,Q=new H){if($.isVideo!==void 0)Q.uint32(8).bool($.isVideo);if($.callOutcome!==void 0)Q.uint32(16).int32($.callOutcome);if($.durationSecs!==void 0)Q.uint32(24).int64($.durationSecs);if($.callType!==void 0)Q.uint32(32).int32($.callType);if($.participants!==void 0&&$.participants.length!==0)for(let Z of $.participants)mq.encode(Z,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??f4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isVideo=J.bool();continue}case 2:{if(K!==16)break;q.callOutcome=J.int32();continue}case 3:{if(K!==24)break;q.durationSecs=J.int64Value();continue}case 4:{if(K!==32)break;q.callType=J.int32();continue}case 5:{if(K!==42)break;if(q.participants===void 0)q.participants=[];let V=mq.decode(J,J.uint32());if(V!==void 0)q.participants.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return iq.fromPartial($??{})},fromPartial($){let Q=f4();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)=>mq.fromPartial(Z))||void 0,Q}};function _4(){return{}}var mq={encode($,Q=new H){if($.jid!==void 0)Q.uint32(10).string($.jid);if($.callOutcome!==void 0)Q.uint32(16).int32($.callOutcome);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.jid=J.string();continue}case 2:{if(K!==16)break;q.callOutcome=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return mq.fromPartial($??{})},fromPartial($){let Q=_4();return Q.jid=$.jid??void 0,Q.callOutcome=$.callOutcome??void 0,Q}};function h4(){return{}}var gq={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??h4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return gq.fromPartial($??{})},fromPartial($){let Q=h4();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q}};function l4(){return{}}var rq={encode($,Q=new H){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.id!==void 0)Q.uint32(18).string($.id);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??l4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayName=J.string();continue}case 2:{if(K!==18)break;q.id=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return rq.fromPartial($??{})},fromPartial($){let Q=l4();return Q.displayName=$.displayName??void 0,Q.id=$.id??void 0,Q}};function p4(){return{}}var tq={encode($,Q=new H){if($.directPath!==void 0)Q.uint32(10).string($.directPath);if($.mediaKey!==void 0)Q.uint32(18).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(26).bytes($.fileEncSha256);if($.fileSha256!==void 0)Q.uint32(34).bytes($.fileSha256);if($.dimLevel!==void 0)Q.uint32(45).float($.dimLevel);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??p4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.directPath=J.string();continue}case 2:{if(K!==18)break;q.mediaKey=J.bytes();continue}case 3:{if(K!==26)break;q.fileEncSha256=J.bytes();continue}case 4:{if(K!==34)break;q.fileSha256=J.bytes();continue}case 5:{if(K!==45)break;q.dimLevel=J.float();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return tq.fromPartial($??{})},fromPartial($){let Q=p4();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 u4(){return{}}var aq={encode($,Q=new H){if($.isDoodleEnabled!==void 0)Q.uint32(8).bool($.isDoodleEnabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??u4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isDoodleEnabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return aq.fromPartial($??{})},fromPartial($){let Q=u4();return Q.isDoodleEnabled=$.isDoodleEnabled??void 0,Q}};function w4(){return{}}var sq={encode($,Q=new H){if($.colorLight!==void 0)Q.uint32(10).string($.colorLight);if($.colorDark!==void 0)Q.uint32(18).string($.colorDark);if($.isDoodleEnabled!==void 0)Q.uint32(24).bool($.isDoodleEnabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??w4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.colorLight=J.string();continue}case 2:{if(K!==18)break;q.colorDark=J.string();continue}case 3:{if(K!==24)break;q.isDoodleEnabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return sq.fromPartial($??{})},fromPartial($){let Q=w4();return Q.colorLight=$.colorLight??void 0,Q.colorDark=$.colorDark??void 0,Q.isDoodleEnabled=$.isDoodleEnabled??void 0,Q}};function j4(){return{}}var eq={encode($,Q=new H){if($.stockImageId!==void 0)Q.uint32(10).string($.stockImageId);if($.dimLevel!==void 0)Q.uint32(21).float($.dimLevel);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??j4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.stockImageId=J.string();continue}case 2:{if(K!==21)break;q.dimLevel=J.float();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return eq.fromPartial($??{})},fromPartial($){let Q=j4();return Q.stockImageId=$.stockImageId??void 0,Q.dimLevel=$.dimLevel??void 0,Q}};function c4(){return{}}var $Z={encode($,Q=new H){if($.settingTimestampMs!==void 0)Q.uint32(8).int64($.settingTimestampMs);if($.clearTheme!==void 0)Q.uint32(16).bool($.clearTheme);if($.colorSchemeId!==void 0)Q.uint32(26).string($.colorSchemeId);if($.defaultWallpaper!==void 0)aq.encode($.defaultWallpaper,Q.uint32(82).fork()).join();if($.solidColor!==void 0)sq.encode($.solidColor,Q.uint32(90).fork()).join();if($.stockImage!==void 0)eq.encode($.stockImage,Q.uint32(98).fork()).join();if($.customImage!==void 0)tq.encode($.customImage,Q.uint32(106).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??c4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.settingTimestampMs=J.int64Value();continue}case 2:{if(K!==16)break;q.clearTheme=J.bool();continue}case 3:{if(K!==26)break;q.colorSchemeId=J.string();continue}case 10:{if(K!==82)break;q.defaultWallpaper=aq.decode(J,J.uint32(),q.defaultWallpaper);continue}case 11:{if(K!==90)break;q.solidColor=sq.decode(J,J.uint32(),q.solidColor);continue}case 12:{if(K!==98)break;q.stockImage=eq.decode(J,J.uint32(),q.stockImage);continue}case 13:{if(K!==106)break;q.customImage=tq.decode(J,J.uint32(),q.customImage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $Z.fromPartial($??{})},fromPartial($){let Q=c4();return Q.settingTimestampMs=$.settingTimestampMs??void 0,Q.clearTheme=$.clearTheme??void 0,Q.colorSchemeId=$.colorSchemeId??void 0,Q.defaultWallpaper=$.defaultWallpaper!==void 0&&$.defaultWallpaper!==null?aq.fromPartial($.defaultWallpaper):void 0,Q.solidColor=$.solidColor!==void 0&&$.solidColor!==null?sq.fromPartial($.solidColor):void 0,Q.stockImage=$.stockImage!==void 0&&$.stockImage!==null?eq.fromPartial($.stockImage):void 0,Q.customImage=$.customImage!==void 0&&$.customImage!==null?tq.fromPartial($.customImage):void 0,Q}};function d4(){return{}}var QZ={encode($,Q=new H){if($.status!==void 0)Q.uint32(8).int32($.status);if($.senderNotificationTimestampMs!==void 0)Q.uint32(16).int64($.senderNotificationTimestampMs);if($.consumerLid!==void 0)Q.uint32(26).string($.consumerLid);if($.consumerPhoneNumber!==void 0)Q.uint32(34).string($.consumerPhoneNumber);if($.notificationContent!==void 0)JZ.encode($.notificationContent,Q.uint32(42).fork()).join();if($.shouldSuppressNotification!==void 0)Q.uint32(48).bool($.shouldSuppressNotification);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??d4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.status=J.int32();continue}case 2:{if(K!==16)break;q.senderNotificationTimestampMs=J.int64Value();continue}case 3:{if(K!==26)break;q.consumerLid=J.string();continue}case 4:{if(K!==34)break;q.consumerPhoneNumber=J.string();continue}case 5:{if(K!==42)break;q.notificationContent=JZ.decode(J,J.uint32(),q.notificationContent);continue}case 6:{if(K!==48)break;q.shouldSuppressNotification=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return QZ.fromPartial($??{})},fromPartial($){let Q=d4();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?JZ.fromPartial($.notificationContent):void 0,Q.shouldSuppressNotification=$.shouldSuppressNotification??void 0,Q}};function n4(){return{}}var JZ={encode($,Q=new H){if($.handoffNotificationText!==void 0)Q.uint32(10).string($.handoffNotificationText);if($.extraJson!==void 0)Q.uint32(18).string($.extraJson);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??n4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.handoffNotificationText=J.string();continue}case 2:{if(K!==18)break;q.extraJson=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return JZ.fromPartial($??{})},fromPartial($){let Q=n4();return Q.handoffNotificationText=$.handoffNotificationText??void 0,Q.extraJson=$.extraJson??void 0,Q}};function b4(){return{}}var KZ={encode($,Q=new H){if($.message!==void 0)d.encode($.message,Q.uint32(10).fork()).join();if($.targetMessageKey!==void 0)B.encode($.targetMessageKey,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??b4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.message=d.decode(J,J.uint32(),q.message);continue}case 2:{if(K!==18)break;q.targetMessageKey=B.decode(J,J.uint32(),q.targetMessageKey);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return KZ.fromPartial($??{})},fromPartial($){let Q=b4();return Q.message=$.message!==void 0&&$.message!==null?d.fromPartial($.message):void 0,Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?B.fromPartial($.targetMessageKey):void 0,Q}};function o4(){return{}}var qZ={encode($,Q=new H){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);if($.conditionalRevealMessageType!==void 0)Q.uint32(24).int32($.conditionalRevealMessageType);if($.revealKeyId!==void 0)Q.uint32(34).string($.revealKeyId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??o4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encPayload=J.bytes();continue}case 2:{if(K!==18)break;q.encIv=J.bytes();continue}case 3:{if(K!==24)break;q.conditionalRevealMessageType=J.int32();continue}case 4:{if(K!==34)break;q.revealKeyId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return qZ.fromPartial($??{})},fromPartial($){let Q=o4();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q.conditionalRevealMessageType=$.conditionalRevealMessageType??void 0,Q.revealKeyId=$.revealKeyId??void 0,Q}};function i4(){return{}}var AQ={encode($,Q=new H){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.vcard!==void 0)Q.uint32(130).string($.vcard);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.isSelfContact!==void 0)Q.uint32(144).bool($.isSelfContact);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??i4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayName=J.string();continue}case 16:{if(K!==130)break;q.vcard=J.string();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 18:{if(K!==144)break;q.isSelfContact=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return AQ.fromPartial($??{})},fromPartial($){let Q=i4();return Q.displayName=$.displayName??void 0,Q.vcard=$.vcard??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.isSelfContact=$.isSelfContact??void 0,Q}};function m4(){return{}}var ZZ={encode($,Q=new H){if($.displayName!==void 0)Q.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let Z of $.contacts)AQ.encode(Z,Q.uint32(18).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??m4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayName=J.string();continue}case 2:{if(K!==18)break;if(q.contacts===void 0)q.contacts=[];let V=AQ.decode(J,J.uint32());if(V!==void 0)q.contacts.push(V);continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return ZZ.fromPartial($??{})},fromPartial($){let Q=m4();return Q.displayName=$.displayName??void 0,Q.contacts=$.contacts?.map((Z)=>AQ.fromPartial(Z))||void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function g4(){return{}}var XZ={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??g4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return XZ.fromPartial($??{})},fromPartial($){let Q=g4();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q}};function r4(){return{}}var YZ={encode($,Q=new H){if($.destinationJid!==void 0)Q.uint32(10).string($.destinationJid);if($.message!==void 0)d.encode($.message,Q.uint32(18).fork()).join();if($.phash!==void 0)Q.uint32(26).string($.phash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??r4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.destinationJid=J.string();continue}case 2:{if(K!==18)break;q.message=d.decode(J,J.uint32(),q.message);continue}case 3:{if(K!==26)break;q.phash=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return YZ.fromPartial($??{})},fromPartial($){let Q=r4();return Q.destinationJid=$.destinationJid??void 0,Q.message=$.message!==void 0&&$.message!==null?d.fromPartial($.message):void 0,Q.phash=$.phash??void 0,Q}};function t4(){return{}}var q$={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.mimetype!==void 0)Q.uint32(18).string($.mimetype);if($.title!==void 0)Q.uint32(26).string($.title);if($.fileSha256!==void 0)Q.uint32(34).bytes($.fileSha256);if($.fileLength!==void 0)Q.uint32(40).uint64($.fileLength);if($.pageCount!==void 0)Q.uint32(48).uint32($.pageCount);if($.mediaKey!==void 0)Q.uint32(58).bytes($.mediaKey);if($.fileName!==void 0)Q.uint32(66).string($.fileName);if($.fileEncSha256!==void 0)Q.uint32(74).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(82).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(88).int64($.mediaKeyTimestamp);if($.contactVcard!==void 0)Q.uint32(96).bool($.contactVcard);if($.thumbnailDirectPath!==void 0)Q.uint32(106).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(114).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(122).bytes($.thumbnailEncSha256);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.thumbnailHeight!==void 0)Q.uint32(144).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)Q.uint32(152).uint32($.thumbnailWidth);if($.caption!==void 0)Q.uint32(162).string($.caption);if($.accessibilityLabel!==void 0)Q.uint32(170).string($.accessibilityLabel);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??t4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==18)break;q.mimetype=J.string();continue}case 3:{if(K!==26)break;q.title=J.string();continue}case 4:{if(K!==34)break;q.fileSha256=J.bytes();continue}case 5:{if(K!==40)break;q.fileLength=J.uint64Value();continue}case 6:{if(K!==48)break;q.pageCount=J.uint32();continue}case 7:{if(K!==58)break;q.mediaKey=J.bytes();continue}case 8:{if(K!==66)break;q.fileName=J.string();continue}case 9:{if(K!==74)break;q.fileEncSha256=J.bytes();continue}case 10:{if(K!==82)break;q.directPath=J.string();continue}case 11:{if(K!==88)break;q.mediaKeyTimestamp=J.int64Value();continue}case 12:{if(K!==96)break;q.contactVcard=J.bool();continue}case 13:{if(K!==106)break;q.thumbnailDirectPath=J.string();continue}case 14:{if(K!==114)break;q.thumbnailSha256=J.bytes();continue}case 15:{if(K!==122)break;q.thumbnailEncSha256=J.bytes();continue}case 16:{if(K!==130)break;q.jpegThumbnail=J.bytes();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 18:{if(K!==144)break;q.thumbnailHeight=J.uint32();continue}case 19:{if(K!==152)break;q.thumbnailWidth=J.uint32();continue}case 20:{if(K!==162)break;q.caption=J.string();continue}case 21:{if(K!==170)break;q.accessibilityLabel=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return q$.fromPartial($??{})},fromPartial($){let Q=t4();return Q.url=$.url??void 0,Q.mimetype=$.mimetype??void 0,Q.title=$.title??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileLength=$.fileLength??void 0,Q.pageCount=$.pageCount??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileName=$.fileName??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.contactVcard=$.contactVcard??void 0,Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.thumbnailHeight=$.thumbnailHeight??void 0,Q.thumbnailWidth=$.thumbnailWidth??void 0,Q.caption=$.caption??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q}};function a4(){return{}}var VZ={encode($,Q=new H){if($.targetMessageKey!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??a4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.targetMessageKey=B.decode(J,J.uint32(),q.targetMessageKey);continue}case 2:{if(K!==18)break;q.encPayload=J.bytes();continue}case 3:{if(K!==26)break;q.encIv=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return VZ.fromPartial($??{})},fromPartial($){let Q=a4();return Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?B.fromPartial($.targetMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function s4(){return{}}var HZ={encode($,Q=new H){if($.eventCreationMessageKey!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??s4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.eventCreationMessageKey=B.decode(J,J.uint32(),q.eventCreationMessageKey);continue}case 2:{if(K!==18)break;q.encPayload=J.bytes();continue}case 3:{if(K!==26)break;q.encIv=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return HZ.fromPartial($??{})},fromPartial($){let Q=s4();return Q.eventCreationMessageKey=$.eventCreationMessageKey!==void 0&&$.eventCreationMessageKey!==null?B.fromPartial($.eventCreationMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function e4(){return{}}var zZ={encode($,Q=new H){if($.targetMessageKey!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??e4();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.targetMessageKey=B.decode(J,J.uint32(),q.targetMessageKey);continue}case 2:{if(K!==18)break;q.encPayload=J.bytes();continue}case 3:{if(K!==26)break;q.encIv=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return zZ.fromPartial($??{})},fromPartial($){let Q=e4();return Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?B.fromPartial($.targetMessageKey):void 0,Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function $D(){return{}}var GZ={encode($,Q=new H){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(10).fork()).join();if($.eventId!==void 0)Q.uint32(18).string($.eventId);if($.eventTitle!==void 0)Q.uint32(26).string($.eventTitle);if($.jpegThumbnail!==void 0)Q.uint32(34).bytes($.jpegThumbnail);if($.startTime!==void 0)Q.uint32(40).int64($.startTime);if($.caption!==void 0)Q.uint32(50).string($.caption);if($.isCanceled!==void 0)Q.uint32(56).bool($.isCanceled);if($.endTime!==void 0)Q.uint32(64).int64($.endTime);if($.callLink!==void 0)Q.uint32(74).string($.callLink);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$D();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 2:{if(K!==18)break;q.eventId=J.string();continue}case 3:{if(K!==26)break;q.eventTitle=J.string();continue}case 4:{if(K!==34)break;q.jpegThumbnail=J.bytes();continue}case 5:{if(K!==40)break;q.startTime=J.int64Value();continue}case 6:{if(K!==50)break;q.caption=J.string();continue}case 7:{if(K!==56)break;q.isCanceled=J.bool();continue}case 8:{if(K!==64)break;q.endTime=J.int64Value();continue}case 9:{if(K!==74)break;q.callLink=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return GZ.fromPartial($??{})},fromPartial($){let Q=$D();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.eventId=$.eventId??void 0,Q.eventTitle=$.eventTitle??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.startTime=$.startTime??void 0,Q.caption=$.caption??void 0,Q.isCanceled=$.isCanceled??void 0,Q.endTime=$.endTime??void 0,Q.callLink=$.callLink??void 0,Q}};function QD(){return{}}var UZ={encode($,Q=new H){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(10).fork()).join();if($.isCanceled!==void 0)Q.uint32(16).bool($.isCanceled);if($.name!==void 0)Q.uint32(26).string($.name);if($.description!==void 0)Q.uint32(34).string($.description);if($.location!==void 0)Q$.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??QD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 2:{if(K!==16)break;q.isCanceled=J.bool();continue}case 3:{if(K!==26)break;q.name=J.string();continue}case 4:{if(K!==34)break;q.description=J.string();continue}case 5:{if(K!==42)break;q.location=Q$.decode(J,J.uint32(),q.location);continue}case 6:{if(K!==50)break;q.joinLink=J.string();continue}case 7:{if(K!==56)break;q.startTime=J.int64Value();continue}case 8:{if(K!==64)break;q.endTime=J.int64Value();continue}case 9:{if(K!==72)break;q.extraGuestsAllowed=J.bool();continue}case 10:{if(K!==80)break;q.isScheduleCall=J.bool();continue}case 11:{if(K!==88)break;q.hasReminder=J.bool();continue}case 12:{if(K!==96)break;q.reminderOffsetSec=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return UZ.fromPartial($??{})},fromPartial($){let Q=QD();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.isCanceled=$.isCanceled??void 0,Q.name=$.name??void 0,Q.description=$.description??void 0,Q.location=$.location!==void 0&&$.location!==null?Q$.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 JD(){return{}}var p$={encode($,Q=new H){if($.response!==void 0)Q.uint32(8).int32($.response);if($.timestampMs!==void 0)Q.uint32(16).int64($.timestampMs);if($.extraGuestCount!==void 0)Q.uint32(24).int32($.extraGuestCount);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??JD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.response=J.int32();continue}case 2:{if(K!==16)break;q.timestampMs=J.int64Value();continue}case 3:{if(K!==24)break;q.extraGuestCount=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return p$.fromPartial($??{})},fromPartial($){let Q=JD();return Q.response=$.response??void 0,Q.timestampMs=$.timestampMs??void 0,Q.extraGuestCount=$.extraGuestCount??void 0,Q}};function KD(){return{}}var CZ={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);if($.matchedText!==void 0)Q.uint32(18).string($.matchedText);if($.description!==void 0)Q.uint32(42).string($.description);if($.title!==void 0)Q.uint32(50).string($.title);if($.textArgb!==void 0)Q.uint32(61).fixed32($.textArgb);if($.backgroundArgb!==void 0)Q.uint32(69).fixed32($.backgroundArgb);if($.font!==void 0)Q.uint32(72).int32($.font);if($.previewType!==void 0)Q.uint32(80).int32($.previewType);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.doNotPlayInline!==void 0)Q.uint32(144).bool($.doNotPlayInline);if($.thumbnailDirectPath!==void 0)Q.uint32(154).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(162).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(170).bytes($.thumbnailEncSha256);if($.mediaKey!==void 0)Q.uint32(178).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)Q.uint32(184).int64($.mediaKeyTimestamp);if($.thumbnailHeight!==void 0)Q.uint32(192).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)Q.uint32(200).uint32($.thumbnailWidth);if($.inviteLinkGroupType!==void 0)Q.uint32(208).int32($.inviteLinkGroupType);if($.inviteLinkParentGroupSubjectV2!==void 0)Q.uint32(218).string($.inviteLinkParentGroupSubjectV2);if($.inviteLinkParentGroupThumbnailV2!==void 0)Q.uint32(226).bytes($.inviteLinkParentGroupThumbnailV2);if($.inviteLinkGroupTypeV2!==void 0)Q.uint32(232).int32($.inviteLinkGroupTypeV2);if($.viewOnce!==void 0)Q.uint32(240).bool($.viewOnce);if($.videoHeight!==void 0)Q.uint32(248).uint32($.videoHeight);if($.videoWidth!==void 0)Q.uint32(256).uint32($.videoWidth);if($.faviconMmsMetadata!==void 0)gZ.encode($.faviconMmsMetadata,Q.uint32(266).fork()).join();if($.linkPreviewMetadata!==void 0)uZ.encode($.linkPreviewMetadata,Q.uint32(274).fork()).join();if($.paymentLinkMetadata!==void 0)IQ.encode($.paymentLinkMetadata,Q.uint32(282).fork()).join();if($.endCardTiles!==void 0&&$.endCardTiles.length!==0)for(let Z of $.endCardTiles)D6.encode(Z,Q.uint32(290).fork()).join();if($.videoContentUrl!==void 0)Q.uint32(298).string($.videoContentUrl);if($.musicMetadata!==void 0)z$.encode($.musicMetadata,Q.uint32(306).fork()).join();if($.paymentExtendedMetadata!==void 0)QX.encode($.paymentExtendedMetadata,Q.uint32(314).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??KD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=J.string();continue}case 2:{if(K!==18)break;q.matchedText=J.string();continue}case 5:{if(K!==42)break;q.description=J.string();continue}case 6:{if(K!==50)break;q.title=J.string();continue}case 7:{if(K!==61)break;q.textArgb=J.fixed32();continue}case 8:{if(K!==69)break;q.backgroundArgb=J.fixed32();continue}case 9:{if(K!==72)break;q.font=J.int32();continue}case 10:{if(K!==80)break;q.previewType=J.int32();continue}case 16:{if(K!==130)break;q.jpegThumbnail=J.bytes();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 18:{if(K!==144)break;q.doNotPlayInline=J.bool();continue}case 19:{if(K!==154)break;q.thumbnailDirectPath=J.string();continue}case 20:{if(K!==162)break;q.thumbnailSha256=J.bytes();continue}case 21:{if(K!==170)break;q.thumbnailEncSha256=J.bytes();continue}case 22:{if(K!==178)break;q.mediaKey=J.bytes();continue}case 23:{if(K!==184)break;q.mediaKeyTimestamp=J.int64Value();continue}case 24:{if(K!==192)break;q.thumbnailHeight=J.uint32();continue}case 25:{if(K!==200)break;q.thumbnailWidth=J.uint32();continue}case 26:{if(K!==208)break;q.inviteLinkGroupType=J.int32();continue}case 27:{if(K!==218)break;q.inviteLinkParentGroupSubjectV2=J.string();continue}case 28:{if(K!==226)break;q.inviteLinkParentGroupThumbnailV2=J.bytes();continue}case 29:{if(K!==232)break;q.inviteLinkGroupTypeV2=J.int32();continue}case 30:{if(K!==240)break;q.viewOnce=J.bool();continue}case 31:{if(K!==248)break;q.videoHeight=J.uint32();continue}case 32:{if(K!==256)break;q.videoWidth=J.uint32();continue}case 33:{if(K!==266)break;q.faviconMmsMetadata=gZ.decode(J,J.uint32(),q.faviconMmsMetadata);continue}case 34:{if(K!==274)break;q.linkPreviewMetadata=uZ.decode(J,J.uint32(),q.linkPreviewMetadata);continue}case 35:{if(K!==282)break;q.paymentLinkMetadata=IQ.decode(J,J.uint32(),q.paymentLinkMetadata);continue}case 36:{if(K!==290)break;if(q.endCardTiles===void 0)q.endCardTiles=[];let V=D6.decode(J,J.uint32());if(V!==void 0)q.endCardTiles.push(V);continue}case 37:{if(K!==298)break;q.videoContentUrl=J.string();continue}case 38:{if(K!==306)break;q.musicMetadata=z$.decode(J,J.uint32(),q.musicMetadata);continue}case 39:{if(K!==314)break;q.paymentExtendedMetadata=QX.decode(J,J.uint32(),q.paymentExtendedMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return CZ.fromPartial($??{})},fromPartial($){let Q=KD();return Q.text=$.text??void 0,Q.matchedText=$.matchedText??void 0,Q.description=$.description??void 0,Q.title=$.title??void 0,Q.textArgb=$.textArgb??void 0,Q.backgroundArgb=$.backgroundArgb??void 0,Q.font=$.font??void 0,Q.previewType=$.previewType??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.doNotPlayInline=$.doNotPlayInline??void 0,Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.thumbnailHeight=$.thumbnailHeight??void 0,Q.thumbnailWidth=$.thumbnailWidth??void 0,Q.inviteLinkGroupType=$.inviteLinkGroupType??void 0,Q.inviteLinkParentGroupSubjectV2=$.inviteLinkParentGroupSubjectV2??void 0,Q.inviteLinkParentGroupThumbnailV2=$.inviteLinkParentGroupThumbnailV2??void 0,Q.inviteLinkGroupTypeV2=$.inviteLinkGroupTypeV2??void 0,Q.viewOnce=$.viewOnce??void 0,Q.videoHeight=$.videoHeight??void 0,Q.videoWidth=$.videoWidth??void 0,Q.faviconMmsMetadata=$.faviconMmsMetadata!==void 0&&$.faviconMmsMetadata!==null?gZ.fromPartial($.faviconMmsMetadata):void 0,Q.linkPreviewMetadata=$.linkPreviewMetadata!==void 0&&$.linkPreviewMetadata!==null?uZ.fromPartial($.linkPreviewMetadata):void 0,Q.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?IQ.fromPartial($.paymentLinkMetadata):void 0,Q.endCardTiles=$.endCardTiles?.map((Z)=>D6.fromPartial(Z))||void 0,Q.videoContentUrl=$.videoContentUrl??void 0,Q.musicMetadata=$.musicMetadata!==void 0&&$.musicMetadata!==null?z$.fromPartial($.musicMetadata):void 0,Q.paymentExtendedMetadata=$.paymentExtendedMetadata!==void 0&&$.paymentExtendedMetadata!==null?QX.fromPartial($.paymentExtendedMetadata):void 0,Q}};function qD(){return{}}var DZ={encode($,Q=new H){if($.historyFromTimestamp!==void 0)Q.uint32(8).uint64($.historyFromTimestamp);if($.historyDurationDays!==void 0)Q.uint32(16).uint32($.historyDurationDays);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.historyFromTimestamp=J.uint64Value();continue}case 2:{if(K!==16)break;q.historyDurationDays=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return DZ.fromPartial($??{})},fromPartial($){let Q=qD();return Q.historyFromTimestamp=$.historyFromTimestamp??void 0,Q.historyDurationDays=$.historyDurationDays??void 0,Q}};function ZD(){return{}}var I$={encode($,Q=new H){if($.requestId!==void 0)Q.uint32(10).string($.requestId);if($.businessProduct!==void 0)Q.uint32(18).string($.businessProduct);if($.opaqueClientData!==void 0)Q.uint32(26).bytes($.opaqueClientData);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ZD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.requestId=J.string();continue}case 2:{if(K!==18)break;q.businessProduct=J.string();continue}case 3:{if(K!==26)break;q.opaqueClientData=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return I$.fromPartial($??{})},fromPartial($){let Q=ZD();return Q.requestId=$.requestId??void 0,Q.businessProduct=$.businessProduct??void 0,Q.opaqueClientData=$.opaqueClientData??void 0,Q}};function XD(){return{}}var v={encode($,Q=new H){if($.message!==void 0)d.encode($.message,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??XD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.message=d.decode(J,J.uint32(),q.message);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return v.fromPartial($??{})},fromPartial($){let Q=XD();return Q.message=$.message!==void 0&&$.message!==null?d.fromPartial($.message):void 0,Q}};function YD(){return{}}var FZ={encode($,Q=new H){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.inviteCode!==void 0)Q.uint32(18).string($.inviteCode);if($.inviteExpiration!==void 0)Q.uint32(24).int64($.inviteExpiration);if($.groupName!==void 0)Q.uint32(34).string($.groupName);if($.jpegThumbnail!==void 0)Q.uint32(42).bytes($.jpegThumbnail);if($.caption!==void 0)Q.uint32(50).string($.caption);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(58).fork()).join();if($.groupType!==void 0)Q.uint32(64).int32($.groupType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??YD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.groupJid=J.string();continue}case 2:{if(K!==18)break;q.inviteCode=J.string();continue}case 3:{if(K!==24)break;q.inviteExpiration=J.int64Value();continue}case 4:{if(K!==34)break;q.groupName=J.string();continue}case 5:{if(K!==42)break;q.jpegThumbnail=J.bytes();continue}case 6:{if(K!==50)break;q.caption=J.string();continue}case 7:{if(K!==58)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 8:{if(K!==64)break;q.groupType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return FZ.fromPartial($??{})},fromPartial($){let Q=YD();return Q.groupJid=$.groupJid??void 0,Q.inviteCode=$.inviteCode??void 0,Q.inviteExpiration=$.inviteExpiration??void 0,Q.groupName=$.groupName??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.groupType=$.groupType??void 0,Q}};function VD(){return{}}var o={encode($,Q=new H){if($.namespace!==void 0)Q.uint32(10).string($.namespace);if($.elementName!==void 0)Q.uint32(18).string($.elementName);if($.params!==void 0&&$.params.length!==0)for(let 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)LZ.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)vQ.encode($.hydratedHsm,Q.uint32(74).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??VD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.namespace=J.string();continue}case 2:{if(K!==18)break;q.elementName=J.string();continue}case 3:{if(K!==26)break;if(q.params===void 0)q.params=[];let V=J.string();if(V!==void 0)q.params.push(V);continue}case 4:{if(K!==34)break;q.fallbackLg=J.string();continue}case 5:{if(K!==42)break;q.fallbackLc=J.string();continue}case 6:{if(K!==50)break;if(q.localizableParams===void 0)q.localizableParams=[];let V=LZ.decode(J,J.uint32());if(V!==void 0)q.localizableParams.push(V);continue}case 7:{if(K!==58)break;q.deterministicLg=J.string();continue}case 8:{if(K!==66)break;q.deterministicLc=J.string();continue}case 9:{if(K!==74)break;q.hydratedHsm=vQ.decode(J,J.uint32(),q.hydratedHsm);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return o.fromPartial($??{})},fromPartial($){let Q=VD();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)=>LZ.fromPartial(Z))||void 0,Q.deterministicLg=$.deterministicLg??void 0,Q.deterministicLc=$.deterministicLc??void 0,Q.hydratedHsm=$.hydratedHsm!==void 0&&$.hydratedHsm!==null?vQ.fromPartial($.hydratedHsm):void 0,Q}};function HD(){return{}}var LZ={encode($,Q=new H){if($.default!==void 0)Q.uint32(10).string($.default);if($.currency!==void 0)PZ.encode($.currency,Q.uint32(18).fork()).join();if($.dateTime!==void 0)kZ.encode($.dateTime,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??HD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.default=J.string();continue}case 2:{if(K!==18)break;q.currency=PZ.decode(J,J.uint32(),q.currency);continue}case 3:{if(K!==26)break;q.dateTime=kZ.decode(J,J.uint32(),q.dateTime);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return LZ.fromPartial($??{})},fromPartial($){let Q=HD();return Q.default=$.default??void 0,Q.currency=$.currency!==void 0&&$.currency!==null?PZ.fromPartial($.currency):void 0,Q.dateTime=$.dateTime!==void 0&&$.dateTime!==null?kZ.fromPartial($.dateTime):void 0,Q}};function zD(){return{}}var PZ={encode($,Q=new H){if($.currencyCode!==void 0)Q.uint32(10).string($.currencyCode);if($.amount1000!==void 0)Q.uint32(16).int64($.amount1000);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.currencyCode=J.string();continue}case 2:{if(K!==16)break;q.amount1000=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return PZ.fromPartial($??{})},fromPartial($){let Q=zD();return Q.currencyCode=$.currencyCode??void 0,Q.amount1000=$.amount1000??void 0,Q}};function GD(){return{}}var kZ={encode($,Q=new H){if($.component!==void 0)xZ.encode($.component,Q.uint32(10).fork()).join();if($.unixEpoch!==void 0)BZ.encode($.unixEpoch,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??GD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.component=xZ.decode(J,J.uint32(),q.component);continue}case 2:{if(K!==18)break;q.unixEpoch=BZ.decode(J,J.uint32(),q.unixEpoch);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return kZ.fromPartial($??{})},fromPartial($){let Q=GD();return Q.component=$.component!==void 0&&$.component!==null?xZ.fromPartial($.component):void 0,Q.unixEpoch=$.unixEpoch!==void 0&&$.unixEpoch!==null?BZ.fromPartial($.unixEpoch):void 0,Q}};function UD(){return{}}var xZ={encode($,Q=new H){if($.dayOfWeek!==void 0)Q.uint32(8).int32($.dayOfWeek);if($.year!==void 0)Q.uint32(16).uint32($.year);if($.month!==void 0)Q.uint32(24).uint32($.month);if($.dayOfMonth!==void 0)Q.uint32(32).uint32($.dayOfMonth);if($.hour!==void 0)Q.uint32(40).uint32($.hour);if($.minute!==void 0)Q.uint32(48).uint32($.minute);if($.calendar!==void 0)Q.uint32(56).int32($.calendar);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??UD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.dayOfWeek=J.int32();continue}case 2:{if(K!==16)break;q.year=J.uint32();continue}case 3:{if(K!==24)break;q.month=J.uint32();continue}case 4:{if(K!==32)break;q.dayOfMonth=J.uint32();continue}case 5:{if(K!==40)break;q.hour=J.uint32();continue}case 6:{if(K!==48)break;q.minute=J.uint32();continue}case 7:{if(K!==56)break;q.calendar=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return xZ.fromPartial($??{})},fromPartial($){let Q=UD();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 CD(){return{}}var BZ={encode($,Q=new H){if($.timestamp!==void 0)Q.uint32(8).int64($.timestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??CD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.timestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return BZ.fromPartial($??{})},fromPartial($){let Q=CD();return Q.timestamp=$.timestamp??void 0,Q}};function DD(){return{}}var NZ={encode($,Q=new H){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);if($.messageSecretProof!==void 0)Q.uint32(18).bytes($.messageSecretProof);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??DD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.stanzaId=J.string();continue}case 2:{if(K!==18)break;q.messageSecretProof=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return NZ.fromPartial($??{})},fromPartial($){let Q=DD();return Q.stanzaId=$.stanzaId??void 0,Q.messageSecretProof=$.messageSecretProof??void 0,Q}};function FD(){return{}}var OZ={encode($,Q=new H){if($.completeAccessGranted!==void 0)Q.uint32(8).bool($.completeAccessGranted);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??FD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.completeAccessGranted=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return OZ.fromPartial($??{})},fromPartial($){let Q=FD();return Q.completeAccessGranted=$.completeAccessGranted??void 0,Q}};function LD(){return{}}var RZ={encode($,Q=new H){if($.fileSha256!==void 0)Q.uint32(10).bytes($.fileSha256);if($.fileLength!==void 0)Q.uint32(16).uint64($.fileLength);if($.mediaKey!==void 0)Q.uint32(26).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(42).string($.directPath);if($.syncType!==void 0)Q.uint32(48).int32($.syncType);if($.chunkOrder!==void 0)Q.uint32(56).uint32($.chunkOrder);if($.originalMessageId!==void 0)Q.uint32(66).string($.originalMessageId);if($.progress!==void 0)Q.uint32(72).uint32($.progress);if($.oldestMsgInChunkTimestampSec!==void 0)Q.uint32(80).int64($.oldestMsgInChunkTimestampSec);if($.initialHistBootstrapInlinePayload!==void 0)Q.uint32(90).bytes($.initialHistBootstrapInlinePayload);if($.peerDataRequestSessionId!==void 0)Q.uint32(98).string($.peerDataRequestSessionId);if($.fullHistorySyncOnDemandRequestMetadata!==void 0)I$.encode($.fullHistorySyncOnDemandRequestMetadata,Q.uint32(106).fork()).join();if($.encHandle!==void 0)Q.uint32(114).string($.encHandle);if($.messageAccessStatus!==void 0)OZ.encode($.messageAccessStatus,Q.uint32(122).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??LD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fileSha256=J.bytes();continue}case 2:{if(K!==16)break;q.fileLength=J.uint64Value();continue}case 3:{if(K!==26)break;q.mediaKey=J.bytes();continue}case 4:{if(K!==34)break;q.fileEncSha256=J.bytes();continue}case 5:{if(K!==42)break;q.directPath=J.string();continue}case 6:{if(K!==48)break;q.syncType=J.int32();continue}case 7:{if(K!==56)break;q.chunkOrder=J.uint32();continue}case 8:{if(K!==66)break;q.originalMessageId=J.string();continue}case 9:{if(K!==72)break;q.progress=J.uint32();continue}case 10:{if(K!==80)break;q.oldestMsgInChunkTimestampSec=J.int64Value();continue}case 11:{if(K!==90)break;q.initialHistBootstrapInlinePayload=J.bytes();continue}case 12:{if(K!==98)break;q.peerDataRequestSessionId=J.string();continue}case 13:{if(K!==106)break;q.fullHistorySyncOnDemandRequestMetadata=I$.decode(J,J.uint32(),q.fullHistorySyncOnDemandRequestMetadata);continue}case 14:{if(K!==114)break;q.encHandle=J.string();continue}case 15:{if(K!==122)break;q.messageAccessStatus=OZ.decode(J,J.uint32(),q.messageAccessStatus);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return RZ.fromPartial($??{})},fromPartial($){let Q=LD();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?I$.fromPartial($.fullHistorySyncOnDemandRequestMetadata):void 0,Q.encHandle=$.encHandle??void 0,Q.messageAccessStatus=$.messageAccessStatus!==void 0&&$.messageAccessStatus!==null?OZ.fromPartial($.messageAccessStatus):void 0,Q}};function PD(){return{}}var t={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.mimetype!==void 0)Q.uint32(18).string($.mimetype);if($.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)V$.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)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.firstScanSidecar!==void 0)Q.uint32(146).bytes($.firstScanSidecar);if($.firstScanLength!==void 0)Q.uint32(152).uint32($.firstScanLength);if($.experimentGroupId!==void 0)Q.uint32(160).uint32($.experimentGroupId);if($.scansSidecar!==void 0)Q.uint32(170).bytes($.scansSidecar);if($.scanLengths!==void 0&&$.scanLengths.length!==0)for(let 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)V$.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??PD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==18)break;q.mimetype=J.string();continue}case 3:{if(K!==26)break;q.caption=J.string();continue}case 4:{if(K!==34)break;q.fileSha256=J.bytes();continue}case 5:{if(K!==40)break;q.fileLength=J.uint64Value();continue}case 6:{if(K!==48)break;q.height=J.uint32();continue}case 7:{if(K!==56)break;q.width=J.uint32();continue}case 8:{if(K!==66)break;q.mediaKey=J.bytes();continue}case 9:{if(K!==74)break;q.fileEncSha256=J.bytes();continue}case 10:{if(K!==82)break;if(q.interactiveAnnotations===void 0)q.interactiveAnnotations=[];let V=V$.decode(J,J.uint32());if(V!==void 0)q.interactiveAnnotations.push(V);continue}case 11:{if(K!==90)break;q.directPath=J.string();continue}case 12:{if(K!==96)break;q.mediaKeyTimestamp=J.int64Value();continue}case 16:{if(K!==130)break;q.jpegThumbnail=J.bytes();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 18:{if(K!==146)break;q.firstScanSidecar=J.bytes();continue}case 19:{if(K!==152)break;q.firstScanLength=J.uint32();continue}case 20:{if(K!==160)break;q.experimentGroupId=J.uint32();continue}case 21:{if(K!==170)break;q.scansSidecar=J.bytes();continue}case 22:{if(K===176){if(q.scanLengths===void 0)q.scanLengths=[];q.scanLengths.push(J.uint32());continue}if(K===178){if(q.scanLengths===void 0)q.scanLengths=[];let V=J.uint32()+J.pos;while(J.pos<V)q.scanLengths.push(J.uint32());continue}break}case 23:{if(K!==186)break;q.midQualityFileSha256=J.bytes();continue}case 24:{if(K!==194)break;q.midQualityFileEncSha256=J.bytes();continue}case 25:{if(K!==200)break;q.viewOnce=J.bool();continue}case 26:{if(K!==210)break;q.thumbnailDirectPath=J.string();continue}case 27:{if(K!==218)break;q.thumbnailSha256=J.bytes();continue}case 28:{if(K!==226)break;q.thumbnailEncSha256=J.bytes();continue}case 29:{if(K!==234)break;q.staticUrl=J.string();continue}case 30:{if(K!==242)break;if(q.annotations===void 0)q.annotations=[];let V=V$.decode(J,J.uint32());if(V!==void 0)q.annotations.push(V);continue}case 31:{if(K!==248)break;q.imageSourceType=J.int32();continue}case 32:{if(K!==258)break;q.accessibilityLabel=J.string();continue}case 34:{if(K!==274)break;q.qrUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return t.fromPartial($??{})},fromPartial($){let Q=PD();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)=>V$.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?W.fromPartial($.contextInfo):void 0,Q.firstScanSidecar=$.firstScanSidecar??void 0,Q.firstScanLength=$.firstScanLength??void 0,Q.experimentGroupId=$.experimentGroupId??void 0,Q.scansSidecar=$.scansSidecar??void 0,Q.scanLengths=$.scanLengths?.map((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)=>V$.fromPartial(Z))||void 0,Q.imageSourceType=$.imageSourceType??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.qrUrl=$.qrUrl??void 0,Q}};function kD(){return{}}var AZ={encode($,Q=new H){if($.securityNotificationEnabled!==void 0)Q.uint32(8).bool($.securityNotificationEnabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.securityNotificationEnabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return AZ.fromPartial($??{})},fromPartial($){let Q=kD();return Q.securityNotificationEnabled=$.securityNotificationEnabled??void 0,Q}};function xD(){return{}}var T$={encode($,Q=new H){if($.header!==void 0)IZ.encode($.header,Q.uint32(10).fork()).join();if($.body!==void 0)EZ.encode($.body,Q.uint32(18).fork()).join();if($.footer!==void 0)SZ.encode($.footer,Q.uint32(26).fork()).join();if($.bloksWidget!==void 0)EQ.encode($.bloksWidget,Q.uint32(66).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(122).fork()).join();if($.urlTrackingMap!==void 0)cQ.encode($.urlTrackingMap,Q.uint32(130).fork()).join();if($.shopStorefrontMessage!==void 0)vZ.encode($.shopStorefrontMessage,Q.uint32(34).fork()).join();if($.collectionMessage!==void 0)WZ.encode($.collectionMessage,Q.uint32(42).fork()).join();if($.nativeFlowMessage!==void 0)TZ.encode($.nativeFlowMessage,Q.uint32(50).fork()).join();if($.carouselMessage!==void 0)MZ.encode($.carouselMessage,Q.uint32(58).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.header=IZ.decode(J,J.uint32(),q.header);continue}case 2:{if(K!==18)break;q.body=EZ.decode(J,J.uint32(),q.body);continue}case 3:{if(K!==26)break;q.footer=SZ.decode(J,J.uint32(),q.footer);continue}case 8:{if(K!==66)break;q.bloksWidget=EQ.decode(J,J.uint32(),q.bloksWidget);continue}case 15:{if(K!==122)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 16:{if(K!==130)break;q.urlTrackingMap=cQ.decode(J,J.uint32(),q.urlTrackingMap);continue}case 4:{if(K!==34)break;q.shopStorefrontMessage=vZ.decode(J,J.uint32(),q.shopStorefrontMessage);continue}case 5:{if(K!==42)break;q.collectionMessage=WZ.decode(J,J.uint32(),q.collectionMessage);continue}case 6:{if(K!==50)break;q.nativeFlowMessage=TZ.decode(J,J.uint32(),q.nativeFlowMessage);continue}case 7:{if(K!==58)break;q.carouselMessage=MZ.decode(J,J.uint32(),q.carouselMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return T$.fromPartial($??{})},fromPartial($){let Q=xD();return Q.header=$.header!==void 0&&$.header!==null?IZ.fromPartial($.header):void 0,Q.body=$.body!==void 0&&$.body!==null?EZ.fromPartial($.body):void 0,Q.footer=$.footer!==void 0&&$.footer!==null?SZ.fromPartial($.footer):void 0,Q.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?EQ.fromPartial($.bloksWidget):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?cQ.fromPartial($.urlTrackingMap):void 0,Q.shopStorefrontMessage=$.shopStorefrontMessage!==void 0&&$.shopStorefrontMessage!==null?vZ.fromPartial($.shopStorefrontMessage):void 0,Q.collectionMessage=$.collectionMessage!==void 0&&$.collectionMessage!==null?WZ.fromPartial($.collectionMessage):void 0,Q.nativeFlowMessage=$.nativeFlowMessage!==void 0&&$.nativeFlowMessage!==null?TZ.fromPartial($.nativeFlowMessage):void 0,Q.carouselMessage=$.carouselMessage!==void 0&&$.carouselMessage!==null?MZ.fromPartial($.carouselMessage):void 0,Q}};function BD(){return{}}var EQ={encode($,Q=new H){if($.uuid!==void 0)Q.uint32(10).string($.uuid);if($.data!==void 0)Q.uint32(18).string($.data);if($.type!==void 0)Q.uint32(26).string($.type);if($.fallback!==void 0)Q.uint32(34).string($.fallback);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??BD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.uuid=J.string();continue}case 2:{if(K!==18)break;q.data=J.string();continue}case 3:{if(K!==26)break;q.type=J.string();continue}case 4:{if(K!==34)break;q.fallback=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return EQ.fromPartial($??{})},fromPartial($){let Q=BD();return Q.uuid=$.uuid??void 0,Q.data=$.data??void 0,Q.type=$.type??void 0,Q.fallback=$.fallback??void 0,Q}};function ND(){return{}}var EZ={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ND();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return EZ.fromPartial($??{})},fromPartial($){let Q=ND();return Q.text=$.text??void 0,Q}};function OD(){return{}}var MZ={encode($,Q=new H){if($.cards!==void 0&&$.cards.length!==0)for(let Z of $.cards)T$.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??OD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.cards===void 0)q.cards=[];let V=T$.decode(J,J.uint32());if(V!==void 0)q.cards.push(V);continue}case 2:{if(K!==16)break;q.messageVersion=J.int32();continue}case 3:{if(K!==24)break;q.carouselCardType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return MZ.fromPartial($??{})},fromPartial($){let Q=OD();return Q.cards=$.cards?.map((Z)=>T$.fromPartial(Z))||void 0,Q.messageVersion=$.messageVersion??void 0,Q.carouselCardType=$.carouselCardType??void 0,Q}};function RD(){return{}}var WZ={encode($,Q=new H){if($.bizJid!==void 0)Q.uint32(10).string($.bizJid);if($.id!==void 0)Q.uint32(18).string($.id);if($.messageVersion!==void 0)Q.uint32(24).int32($.messageVersion);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??RD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.bizJid=J.string();continue}case 2:{if(K!==18)break;q.id=J.string();continue}case 3:{if(K!==24)break;q.messageVersion=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return WZ.fromPartial($??{})},fromPartial($){let Q=RD();return Q.bizJid=$.bizJid??void 0,Q.id=$.id??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function AD(){return{}}var SZ={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);if($.hasMediaAttachment!==void 0)Q.uint32(24).bool($.hasMediaAttachment);if($.audioMessage!==void 0)RQ.encode($.audioMessage,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??AD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=J.string();continue}case 3:{if(K!==24)break;q.hasMediaAttachment=J.bool();continue}case 2:{if(K!==18)break;q.audioMessage=RQ.decode(J,J.uint32(),q.audioMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return SZ.fromPartial($??{})},fromPartial($){let Q=AD();return Q.text=$.text??void 0,Q.hasMediaAttachment=$.hasMediaAttachment??void 0,Q.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?RQ.fromPartial($.audioMessage):void 0,Q}};function ED(){return{}}var IZ={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.subtitle!==void 0)Q.uint32(18).string($.subtitle);if($.hasMediaAttachment!==void 0)Q.uint32(40).bool($.hasMediaAttachment);if($.bloksWidget!==void 0)EQ.encode($.bloksWidget,Q.uint32(82).fork()).join();if($.documentMessage!==void 0)q$.encode($.documentMessage,Q.uint32(26).fork()).join();if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(34).fork()).join();if($.jpegThumbnail!==void 0)Q.uint32(50).bytes($.jpegThumbnail);if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(58).fork()).join();if($.locationMessage!==void 0)Q$.encode($.locationMessage,Q.uint32(66).fork()).join();if($.productMessage!==void 0)TQ.encode($.productMessage,Q.uint32(74).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ED();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==18)break;q.subtitle=J.string();continue}case 5:{if(K!==40)break;q.hasMediaAttachment=J.bool();continue}case 10:{if(K!==82)break;q.bloksWidget=EQ.decode(J,J.uint32(),q.bloksWidget);continue}case 3:{if(K!==26)break;q.documentMessage=q$.decode(J,J.uint32(),q.documentMessage);continue}case 4:{if(K!==34)break;q.imageMessage=t.decode(J,J.uint32(),q.imageMessage);continue}case 6:{if(K!==50)break;q.jpegThumbnail=J.bytes();continue}case 7:{if(K!==58)break;q.videoMessage=e.decode(J,J.uint32(),q.videoMessage);continue}case 8:{if(K!==66)break;q.locationMessage=Q$.decode(J,J.uint32(),q.locationMessage);continue}case 9:{if(K!==74)break;q.productMessage=TQ.decode(J,J.uint32(),q.productMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return IZ.fromPartial($??{})},fromPartial($){let Q=ED();return Q.title=$.title??void 0,Q.subtitle=$.subtitle??void 0,Q.hasMediaAttachment=$.hasMediaAttachment??void 0,Q.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?EQ.fromPartial($.bloksWidget):void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?q$.fromPartial($.documentMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q$.fromPartial($.locationMessage):void 0,Q.productMessage=$.productMessage!==void 0&&$.productMessage!==null?TQ.fromPartial($.productMessage):void 0,Q}};function MD(){return{}}var TZ={encode($,Q=new H){if($.buttons!==void 0&&$.buttons.length!==0)for(let Z of $.buttons)yZ.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??MD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.buttons===void 0)q.buttons=[];let V=yZ.decode(J,J.uint32());if(V!==void 0)q.buttons.push(V);continue}case 2:{if(K!==18)break;q.messageParamsJson=J.string();continue}case 3:{if(K!==24)break;q.messageVersion=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return TZ.fromPartial($??{})},fromPartial($){let Q=MD();return Q.buttons=$.buttons?.map((Z)=>yZ.fromPartial(Z))||void 0,Q.messageParamsJson=$.messageParamsJson??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function WD(){return{}}var yZ={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.buttonParamsJson!==void 0)Q.uint32(18).string($.buttonParamsJson);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??WD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}case 2:{if(K!==18)break;q.buttonParamsJson=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return yZ.fromPartial($??{})},fromPartial($){let Q=WD();return Q.name=$.name??void 0,Q.buttonParamsJson=$.buttonParamsJson??void 0,Q}};function SD(){return{}}var vZ={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);if($.surface!==void 0)Q.uint32(16).int32($.surface);if($.messageVersion!==void 0)Q.uint32(24).int32($.messageVersion);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??SD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.id=J.string();continue}case 2:{if(K!==16)break;q.surface=J.int32();continue}case 3:{if(K!==24)break;q.messageVersion=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return vZ.fromPartial($??{})},fromPartial($){let Q=SD();return Q.id=$.id??void 0,Q.surface=$.surface??void 0,Q.messageVersion=$.messageVersion??void 0,Q}};function ID(){return{}}var fZ={encode($,Q=new H){if($.body!==void 0)_Z.encode($.body,Q.uint32(10).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(122).fork()).join();if($.nativeFlowResponseMessage!==void 0)hZ.encode($.nativeFlowResponseMessage,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ID();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.body=_Z.decode(J,J.uint32(),q.body);continue}case 15:{if(K!==122)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 2:{if(K!==18)break;q.nativeFlowResponseMessage=hZ.decode(J,J.uint32(),q.nativeFlowResponseMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return fZ.fromPartial($??{})},fromPartial($){let Q=ID();return Q.body=$.body!==void 0&&$.body!==null?_Z.fromPartial($.body):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.nativeFlowResponseMessage=$.nativeFlowResponseMessage!==void 0&&$.nativeFlowResponseMessage!==null?hZ.fromPartial($.nativeFlowResponseMessage):void 0,Q}};function TD(){return{}}var _Z={encode($,Q=new H){if($.text!==void 0)Q.uint32(10).string($.text);if($.format!==void 0)Q.uint32(16).int32($.format);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??TD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=J.string();continue}case 2:{if(K!==16)break;q.format=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _Z.fromPartial($??{})},fromPartial($){let Q=TD();return Q.text=$.text??void 0,Q.format=$.format??void 0,Q}};function yD(){return{}}var hZ={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.paramsJson!==void 0)Q.uint32(18).string($.paramsJson);if($.version!==void 0)Q.uint32(24).int32($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}case 2:{if(K!==18)break;q.paramsJson=J.string();continue}case 3:{if(K!==24)break;q.version=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return hZ.fromPartial($??{})},fromPartial($){let Q=yD();return Q.name=$.name??void 0,Q.paramsJson=$.paramsJson??void 0,Q.version=$.version??void 0,Q}};function vD(){return{}}var lZ={encode($,Q=new H){if($.note!==void 0)Q.uint32(10).string($.note);if($.token!==void 0)Q.uint32(18).string($.token);if($.attachmentType!==void 0)Q.uint32(24).int32($.attachmentType);if($.attachmentMimetype!==void 0)Q.uint32(34).string($.attachmentMimetype);if($.attachmentMediaKey!==void 0)Q.uint32(42).bytes($.attachmentMediaKey);if($.attachmentMediaKeyTimestamp!==void 0)Q.uint32(48).int64($.attachmentMediaKeyTimestamp);if($.attachmentFileSha256!==void 0)Q.uint32(58).bytes($.attachmentFileSha256);if($.attachmentFileEncSha256!==void 0)Q.uint32(66).bytes($.attachmentFileEncSha256);if($.attachmentDirectPath!==void 0)Q.uint32(74).string($.attachmentDirectPath);if($.attachmentJpegThumbnail!==void 0)Q.uint32(82).bytes($.attachmentJpegThumbnail);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.note=J.string();continue}case 2:{if(K!==18)break;q.token=J.string();continue}case 3:{if(K!==24)break;q.attachmentType=J.int32();continue}case 4:{if(K!==34)break;q.attachmentMimetype=J.string();continue}case 5:{if(K!==42)break;q.attachmentMediaKey=J.bytes();continue}case 6:{if(K!==48)break;q.attachmentMediaKeyTimestamp=J.int64Value();continue}case 7:{if(K!==58)break;q.attachmentFileSha256=J.bytes();continue}case 8:{if(K!==66)break;q.attachmentFileEncSha256=J.bytes();continue}case 9:{if(K!==74)break;q.attachmentDirectPath=J.string();continue}case 10:{if(K!==82)break;q.attachmentJpegThumbnail=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return lZ.fromPartial($??{})},fromPartial($){let Q=vD();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 fD(){return{}}var pZ={encode($,Q=new H){if($.key!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==16)break;q.keepType=J.int32();continue}case 3:{if(K!==24)break;q.timestampMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return pZ.fromPartial($??{})},fromPartial($){let Q=fD();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.keepType=$.keepType??void 0,Q.timestampMs=$.timestampMs??void 0,Q}};function _D(){return{}}var uZ={encode($,Q=new H){if($.paymentLinkMetadata!==void 0)IQ.encode($.paymentLinkMetadata,Q.uint32(10).fork()).join();if($.urlMetadata!==void 0)C6.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)z$.encode($.musicMetadata,Q.uint32(66).fork()).join();if($.videoContentCaption!==void 0)Q.uint32(74).string($.videoContentCaption);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_D();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.paymentLinkMetadata=IQ.decode(J,J.uint32(),q.paymentLinkMetadata);continue}case 2:{if(K!==18)break;q.urlMetadata=C6.decode(J,J.uint32(),q.urlMetadata);continue}case 3:{if(K!==24)break;q.fbExperimentId=J.uint32();continue}case 4:{if(K!==32)break;q.linkMediaDuration=J.uint32();continue}case 5:{if(K!==40)break;q.socialMediaPostType=J.int32();continue}case 6:{if(K!==48)break;q.linkInlineVideoMuted=J.bool();continue}case 7:{if(K!==58)break;q.videoContentUrl=J.string();continue}case 8:{if(K!==66)break;q.musicMetadata=z$.decode(J,J.uint32(),q.musicMetadata);continue}case 9:{if(K!==74)break;q.videoContentCaption=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return uZ.fromPartial($??{})},fromPartial($){let Q=_D();return Q.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?IQ.fromPartial($.paymentLinkMetadata):void 0,Q.urlMetadata=$.urlMetadata!==void 0&&$.urlMetadata!==null?C6.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?z$.fromPartial($.musicMetadata):void 0,Q.videoContentCaption=$.videoContentCaption??void 0,Q}};function hD(){return{}}var wZ={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.description!==void 0)Q.uint32(18).string($.description);if($.buttonText!==void 0)Q.uint32(26).string($.buttonText);if($.listType!==void 0)Q.uint32(32).int32($.listType);if($.sections!==void 0&&$.sections.length!==0)for(let Z of $.sections)oZ.encode(Z,Q.uint32(42).fork()).join();if($.productListInfo!==void 0)dZ.encode($.productListInfo,Q.uint32(50).fork()).join();if($.footerText!==void 0)Q.uint32(58).string($.footerText);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(66).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==18)break;q.description=J.string();continue}case 3:{if(K!==26)break;q.buttonText=J.string();continue}case 4:{if(K!==32)break;q.listType=J.int32();continue}case 5:{if(K!==42)break;if(q.sections===void 0)q.sections=[];let V=oZ.decode(J,J.uint32());if(V!==void 0)q.sections.push(V);continue}case 6:{if(K!==50)break;q.productListInfo=dZ.decode(J,J.uint32(),q.productListInfo);continue}case 7:{if(K!==58)break;q.footerText=J.string();continue}case 8:{if(K!==66)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return wZ.fromPartial($??{})},fromPartial($){let Q=hD();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)=>oZ.fromPartial(Z))||void 0,Q.productListInfo=$.productListInfo!==void 0&&$.productListInfo!==null?dZ.fromPartial($.productListInfo):void 0,Q.footerText=$.footerText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function lD(){return{}}var jZ={encode($,Q=new H){if($.productId!==void 0)Q.uint32(10).string($.productId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.productId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return jZ.fromPartial($??{})},fromPartial($){let Q=lD();return Q.productId=$.productId??void 0,Q}};function pD(){return{}}var cZ={encode($,Q=new H){if($.productId!==void 0)Q.uint32(10).string($.productId);if($.jpegThumbnail!==void 0)Q.uint32(18).bytes($.jpegThumbnail);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.productId=J.string();continue}case 2:{if(K!==18)break;q.jpegThumbnail=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return cZ.fromPartial($??{})},fromPartial($){let Q=pD();return Q.productId=$.productId??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q}};function uD(){return{}}var dZ={encode($,Q=new H){if($.productSections!==void 0&&$.productSections.length!==0)for(let Z of $.productSections)nZ.encode(Z,Q.uint32(10).fork()).join();if($.headerImage!==void 0)cZ.encode($.headerImage,Q.uint32(18).fork()).join();if($.businessOwnerJid!==void 0)Q.uint32(26).string($.businessOwnerJid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.productSections===void 0)q.productSections=[];let V=nZ.decode(J,J.uint32());if(V!==void 0)q.productSections.push(V);continue}case 2:{if(K!==18)break;q.headerImage=cZ.decode(J,J.uint32(),q.headerImage);continue}case 3:{if(K!==26)break;q.businessOwnerJid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return dZ.fromPartial($??{})},fromPartial($){let Q=uD();return Q.productSections=$.productSections?.map((Z)=>nZ.fromPartial(Z))||void 0,Q.headerImage=$.headerImage!==void 0&&$.headerImage!==null?cZ.fromPartial($.headerImage):void 0,Q.businessOwnerJid=$.businessOwnerJid??void 0,Q}};function wD(){return{}}var nZ={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.products!==void 0&&$.products.length!==0)for(let Z of $.products)jZ.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==18)break;if(q.products===void 0)q.products=[];let V=jZ.decode(J,J.uint32());if(V!==void 0)q.products.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return nZ.fromPartial($??{})},fromPartial($){let Q=wD();return Q.title=$.title??void 0,Q.products=$.products?.map((Z)=>jZ.fromPartial(Z))||void 0,Q}};function jD(){return{}}var bZ={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.description!==void 0)Q.uint32(18).string($.description);if($.rowId!==void 0)Q.uint32(26).string($.rowId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==18)break;q.description=J.string();continue}case 3:{if(K!==26)break;q.rowId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return bZ.fromPartial($??{})},fromPartial($){let Q=jD();return Q.title=$.title??void 0,Q.description=$.description??void 0,Q.rowId=$.rowId??void 0,Q}};function cD(){return{}}var oZ={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.rows!==void 0&&$.rows.length!==0)for(let Z of $.rows)bZ.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==18)break;if(q.rows===void 0)q.rows=[];let V=bZ.decode(J,J.uint32());if(V!==void 0)q.rows.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return oZ.fromPartial($??{})},fromPartial($){let Q=cD();return Q.title=$.title??void 0,Q.rows=$.rows?.map((Z)=>bZ.fromPartial(Z))||void 0,Q}};function dD(){return{}}var iZ={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.listType!==void 0)Q.uint32(16).int32($.listType);if($.singleSelectReply!==void 0)mZ.encode($.singleSelectReply,Q.uint32(26).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(34).fork()).join();if($.description!==void 0)Q.uint32(42).string($.description);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==16)break;q.listType=J.int32();continue}case 3:{if(K!==26)break;q.singleSelectReply=mZ.decode(J,J.uint32(),q.singleSelectReply);continue}case 4:{if(K!==34)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 5:{if(K!==42)break;q.description=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return iZ.fromPartial($??{})},fromPartial($){let Q=dD();return Q.title=$.title??void 0,Q.listType=$.listType??void 0,Q.singleSelectReply=$.singleSelectReply!==void 0&&$.singleSelectReply!==null?mZ.fromPartial($.singleSelectReply):void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.description=$.description??void 0,Q}};function nD(){return{}}var mZ={encode($,Q=new H){if($.selectedRowId!==void 0)Q.uint32(10).string($.selectedRowId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.selectedRowId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return mZ.fromPartial($??{})},fromPartial($){let Q=nD();return Q.selectedRowId=$.selectedRowId??void 0,Q}};function bD(){return{}}var MQ={encode($,Q=new H){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.accuracyInMeters!==void 0)Q.uint32(24).uint32($.accuracyInMeters);if($.speedInMps!==void 0)Q.uint32(37).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)Q.uint32(40).uint32($.degreesClockwiseFromMagneticNorth);if($.caption!==void 0)Q.uint32(50).string($.caption);if($.sequenceNumber!==void 0)Q.uint32(56).int64($.sequenceNumber);if($.timeOffset!==void 0)Q.uint32(64).uint32($.timeOffset);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==9)break;q.degreesLatitude=J.double();continue}case 2:{if(K!==17)break;q.degreesLongitude=J.double();continue}case 3:{if(K!==24)break;q.accuracyInMeters=J.uint32();continue}case 4:{if(K!==37)break;q.speedInMps=J.float();continue}case 5:{if(K!==40)break;q.degreesClockwiseFromMagneticNorth=J.uint32();continue}case 6:{if(K!==50)break;q.caption=J.string();continue}case 7:{if(K!==56)break;q.sequenceNumber=J.int64Value();continue}case 8:{if(K!==64)break;q.timeOffset=J.uint32();continue}case 16:{if(K!==130)break;q.jpegThumbnail=J.bytes();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return MQ.fromPartial($??{})},fromPartial($){let Q=bD();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.accuracyInMeters=$.accuracyInMeters??void 0,Q.speedInMps=$.speedInMps??void 0,Q.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,Q.caption=$.caption??void 0,Q.sequenceNumber=$.sequenceNumber??void 0,Q.timeOffset=$.timeOffset??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function oD(){return{}}var Q$={encode($,Q=new H){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.name!==void 0)Q.uint32(26).string($.name);if($.address!==void 0)Q.uint32(34).string($.address);if($.url!==void 0)Q.uint32(42).string($.url);if($.isLive!==void 0)Q.uint32(48).bool($.isLive);if($.accuracyInMeters!==void 0)Q.uint32(56).uint32($.accuracyInMeters);if($.speedInMps!==void 0)Q.uint32(69).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)Q.uint32(72).uint32($.degreesClockwiseFromMagneticNorth);if($.comment!==void 0)Q.uint32(90).string($.comment);if($.jpegThumbnail!==void 0)Q.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==9)break;q.degreesLatitude=J.double();continue}case 2:{if(K!==17)break;q.degreesLongitude=J.double();continue}case 3:{if(K!==26)break;q.name=J.string();continue}case 4:{if(K!==34)break;q.address=J.string();continue}case 5:{if(K!==42)break;q.url=J.string();continue}case 6:{if(K!==48)break;q.isLive=J.bool();continue}case 7:{if(K!==56)break;q.accuracyInMeters=J.uint32();continue}case 8:{if(K!==69)break;q.speedInMps=J.float();continue}case 9:{if(K!==72)break;q.degreesClockwiseFromMagneticNorth=J.uint32();continue}case 11:{if(K!==90)break;q.comment=J.string();continue}case 16:{if(K!==130)break;q.jpegThumbnail=J.bytes();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Q$.fromPartial($??{})},fromPartial($){let Q=oD();return Q.degreesLatitude=$.degreesLatitude??void 0,Q.degreesLongitude=$.degreesLongitude??void 0,Q.name=$.name??void 0,Q.address=$.address??void 0,Q.url=$.url??void 0,Q.isLive=$.isLive??void 0,Q.accuracyInMeters=$.accuracyInMeters??void 0,Q.speedInMps=$.speedInMps??void 0,Q.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,Q.comment=$.comment??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function iD(){return{}}var gZ={encode($,Q=new H){if($.thumbnailDirectPath!==void 0)Q.uint32(10).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(18).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(26).bytes($.thumbnailEncSha256);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)Q.uint32(40).int64($.mediaKeyTimestamp);if($.thumbnailHeight!==void 0)Q.uint32(48).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)Q.uint32(56).uint32($.thumbnailWidth);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.thumbnailDirectPath=J.string();continue}case 2:{if(K!==18)break;q.thumbnailSha256=J.bytes();continue}case 3:{if(K!==26)break;q.thumbnailEncSha256=J.bytes();continue}case 4:{if(K!==34)break;q.mediaKey=J.bytes();continue}case 5:{if(K!==40)break;q.mediaKeyTimestamp=J.int64Value();continue}case 6:{if(K!==48)break;q.thumbnailHeight=J.uint32();continue}case 7:{if(K!==56)break;q.thumbnailWidth=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return gZ.fromPartial($??{})},fromPartial($){let Q=iD();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 mD(){return{}}var rZ={encode($,Q=new H){if($.userJidString!==void 0)Q.uint32(10).string($.userJidString);if($.verified!==void 0)Q.uint32(16).bool($.verified);if($.verifiedIdentityKey!==void 0)Q.uint32(26).bytes($.verifiedIdentityKey);if($.actionSeq!==void 0)Q.uint32(32).uint64($.actionSeq);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.userJidString=J.string();continue}case 2:{if(K!==16)break;q.verified=J.bool();continue}case 3:{if(K!==26)break;q.verifiedIdentityKey=J.bytes();continue}case 4:{if(K!==32)break;q.actionSeq=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return rZ.fromPartial($??{})},fromPartial($){let Q=mD();return Q.userJidString=$.userJidString??void 0,Q.verified=$.verified??void 0,Q.verifiedIdentityKey=$.verifiedIdentityKey??void 0,Q.actionSeq=$.actionSeq??void 0,Q}};function gD(){return{}}var WQ={encode($,Q=new H){if($.mimetype!==void 0)Q.uint32(10).string($.mimetype);if($.fileSha256!==void 0)Q.uint32(18).bytes($.fileSha256);if($.mediaKey!==void 0)Q.uint32(26).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(42).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(48).int64($.mediaKeyTimestamp);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(58).fork()).join();if($.messageHistoryMetadata!==void 0)SQ.encode($.messageHistoryMetadata,Q.uint32(66).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mimetype=J.string();continue}case 2:{if(K!==18)break;q.fileSha256=J.bytes();continue}case 3:{if(K!==26)break;q.mediaKey=J.bytes();continue}case 4:{if(K!==34)break;q.fileEncSha256=J.bytes();continue}case 5:{if(K!==42)break;q.directPath=J.string();continue}case 6:{if(K!==48)break;q.mediaKeyTimestamp=J.int64Value();continue}case 7:{if(K!==58)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 8:{if(K!==66)break;q.messageHistoryMetadata=SQ.decode(J,J.uint32(),q.messageHistoryMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return WQ.fromPartial($??{})},fromPartial($){let Q=gD();return Q.mimetype=$.mimetype??void 0,Q.fileSha256=$.fileSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.directPath=$.directPath??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?SQ.fromPartial($.messageHistoryMetadata):void 0,Q}};function rD(){return{}}var SQ={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.historyReceivers===void 0)q.historyReceivers=[];let V=J.string();if(V!==void 0)q.historyReceivers.push(V);continue}case 2:{if(K!==16)break;q.oldestMessageTimestampInWindow=J.int64Value();continue}case 3:{if(K!==24)break;q.messageCount=J.int64Value();continue}case 4:{if(K!==34)break;if(q.nonHistoryReceivers===void 0)q.nonHistoryReceivers=[];let V=J.string();if(V!==void 0)q.nonHistoryReceivers.push(V);continue}case 5:{if(K!==40)break;q.oldestMessageTimestampInBundle=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return SQ.fromPartial($??{})},fromPartial($){let Q=rD();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 tD(){return{}}var tZ={encode($,Q=new H){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(10).fork()).join();if($.messageHistoryMetadata!==void 0)SQ.encode($.messageHistoryMetadata,Q.uint32(18).fork()).join();if($.botHistoryShareSyncMetadata!==void 0)wq.encode($.botHistoryShareSyncMetadata,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 2:{if(K!==18)break;q.messageHistoryMetadata=SQ.decode(J,J.uint32(),q.messageHistoryMetadata);continue}case 3:{if(K!==26)break;q.botHistoryShareSyncMetadata=wq.decode(J,J.uint32(),q.botHistoryShareSyncMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return tZ.fromPartial($??{})},fromPartial($){let Q=tD();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?SQ.fromPartial($.messageHistoryMetadata):void 0,Q.botHistoryShareSyncMetadata=$.botHistoryShareSyncMetadata!==void 0&&$.botHistoryShareSyncMetadata!==null?wq.fromPartial($.botHistoryShareSyncMetadata):void 0,Q}};function aD(){return{}}var aZ={encode($,Q=new H){if($.embeddedMusic!==void 0)z$.encode($.embeddedMusic,Q.uint32(10).fork()).join();if($.songUri!==void 0)Q.uint32(18).string($.songUri);if($.artworkUri!==void 0)Q.uint32(26).string($.artworkUri);if($.style!==void 0)Q.uint32(32).int32($.style);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??aD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.embeddedMusic=z$.decode(J,J.uint32(),q.embeddedMusic);continue}case 2:{if(K!==18)break;q.songUri=J.string();continue}case 3:{if(K!==26)break;q.artworkUri=J.string();continue}case 4:{if(K!==32)break;q.style=J.int32();continue}case 5:{if(K!==42)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return aZ.fromPartial($??{})},fromPartial($){let Q=aD();return Q.embeddedMusic=$.embeddedMusic!==void 0&&$.embeddedMusic!==null?z$.fromPartial($.embeddedMusic):void 0,Q.songUri=$.songUri??void 0,Q.artworkUri=$.artworkUri??void 0,Q.style=$.style??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function sD(){return{}}var sZ={encode($,Q=new H){if($.newsletterJid!==void 0)Q.uint32(10).string($.newsletterJid);if($.newsletterName!==void 0)Q.uint32(18).string($.newsletterName);if($.jpegThumbnail!==void 0)Q.uint32(26).bytes($.jpegThumbnail);if($.caption!==void 0)Q.uint32(34).string($.caption);if($.inviteExpiration!==void 0)Q.uint32(40).int64($.inviteExpiration);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(50).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.newsletterJid=J.string();continue}case 2:{if(K!==18)break;q.newsletterName=J.string();continue}case 3:{if(K!==26)break;q.jpegThumbnail=J.bytes();continue}case 4:{if(K!==34)break;q.caption=J.string();continue}case 5:{if(K!==40)break;q.inviteExpiration=J.int64Value();continue}case 6:{if(K!==50)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return sZ.fromPartial($??{})},fromPartial($){let Q=sD();return Q.newsletterJid=$.newsletterJid??void 0,Q.newsletterName=$.newsletterName??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q.inviteExpiration=$.inviteExpiration??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function eD(){return{}}var eZ={encode($,Q=new H){if($.newsletterJid!==void 0)Q.uint32(10).string($.newsletterJid);if($.newsletterName!==void 0)Q.uint32(18).string($.newsletterName);if($.jpegThumbnail!==void 0)Q.uint32(26).bytes($.jpegThumbnail);if($.caption!==void 0)Q.uint32(34).string($.caption);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??eD();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.newsletterJid=J.string();continue}case 2:{if(K!==18)break;q.newsletterName=J.string();continue}case 3:{if(K!==26)break;q.jpegThumbnail=J.bytes();continue}case 4:{if(K!==34)break;q.caption=J.string();continue}case 5:{if(K!==42)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return eZ.fromPartial($??{})},fromPartial($){let Q=eD();return Q.newsletterJid=$.newsletterJid??void 0,Q.newsletterName=$.newsletterName??void 0,Q.jpegThumbnail=$.jpegThumbnail??void 0,Q.caption=$.caption??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function $F(){return{}}var $X={encode($,Q=new H){if($.orderId!==void 0)Q.uint32(10).string($.orderId);if($.thumbnail!==void 0)Q.uint32(18).bytes($.thumbnail);if($.itemCount!==void 0)Q.uint32(24).int32($.itemCount);if($.status!==void 0)Q.uint32(32).int32($.status);if($.surface!==void 0)Q.uint32(40).int32($.surface);if($.message!==void 0)Q.uint32(50).string($.message);if($.orderTitle!==void 0)Q.uint32(58).string($.orderTitle);if($.sellerJid!==void 0)Q.uint32(66).string($.sellerJid);if($.token!==void 0)Q.uint32(74).string($.token);if($.totalAmount1000!==void 0)Q.uint32(80).int64($.totalAmount1000);if($.totalCurrencyCode!==void 0)Q.uint32(90).string($.totalCurrencyCode);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.messageVersion!==void 0)Q.uint32(96).int32($.messageVersion);if($.orderRequestMessageId!==void 0)B.encode($.orderRequestMessageId,Q.uint32(106).fork()).join();if($.catalogType!==void 0)Q.uint32(122).string($.catalogType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$F();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.orderId=J.string();continue}case 2:{if(K!==18)break;q.thumbnail=J.bytes();continue}case 3:{if(K!==24)break;q.itemCount=J.int32();continue}case 4:{if(K!==32)break;q.status=J.int32();continue}case 5:{if(K!==40)break;q.surface=J.int32();continue}case 6:{if(K!==50)break;q.message=J.string();continue}case 7:{if(K!==58)break;q.orderTitle=J.string();continue}case 8:{if(K!==66)break;q.sellerJid=J.string();continue}case 9:{if(K!==74)break;q.token=J.string();continue}case 10:{if(K!==80)break;q.totalAmount1000=J.int64Value();continue}case 11:{if(K!==90)break;q.totalCurrencyCode=J.string();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 12:{if(K!==96)break;q.messageVersion=J.int32();continue}case 13:{if(K!==106)break;q.orderRequestMessageId=B.decode(J,J.uint32(),q.orderRequestMessageId);continue}case 15:{if(K!==122)break;q.catalogType=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $X.fromPartial($??{})},fromPartial($){let Q=$F();return Q.orderId=$.orderId??void 0,Q.thumbnail=$.thumbnail??void 0,Q.itemCount=$.itemCount??void 0,Q.status=$.status??void 0,Q.surface=$.surface??void 0,Q.message=$.message??void 0,Q.orderTitle=$.orderTitle??void 0,Q.sellerJid=$.sellerJid??void 0,Q.token=$.token??void 0,Q.totalAmount1000=$.totalAmount1000??void 0,Q.totalCurrencyCode=$.totalCurrencyCode??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.messageVersion=$.messageVersion??void 0,Q.orderRequestMessageId=$.orderRequestMessageId!==void 0&&$.orderRequestMessageId!==null?B.fromPartial($.orderRequestMessageId):void 0,Q.catalogType=$.catalogType??void 0,Q}};function QF(){return{}}var QX={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).uint32($.type);if($.platform!==void 0)Q.uint32(18).string($.platform);if($.messageParamsJson!==void 0)Q.uint32(26).string($.messageParamsJson);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??QF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.uint32();continue}case 2:{if(K!==18)break;q.platform=J.string();continue}case 3:{if(K!==26)break;q.messageParamsJson=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return QX.fromPartial($??{})},fromPartial($){let Q=QF();return Q.type=$.type??void 0,Q.platform=$.platform??void 0,Q.messageParamsJson=$.messageParamsJson??void 0,Q}};function JF(){return{}}var JX={encode($,Q=new H){if($.serviceType!==void 0)Q.uint32(8).int32($.serviceType);if($.expiryTimestamp!==void 0)Q.uint32(16).int64($.expiryTimestamp);if($.incentiveEligible!==void 0)Q.uint32(24).bool($.incentiveEligible);if($.referralId!==void 0)Q.uint32(34).string($.referralId);if($.inviteType!==void 0)Q.uint32(40).int32($.inviteType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??JF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.serviceType=J.int32();continue}case 2:{if(K!==16)break;q.expiryTimestamp=J.int64Value();continue}case 3:{if(K!==24)break;q.incentiveEligible=J.bool();continue}case 4:{if(K!==34)break;q.referralId=J.string();continue}case 5:{if(K!==40)break;q.inviteType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return JX.fromPartial($??{})},fromPartial($){let Q=JF();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 KF(){return{}}var IQ={encode($,Q=new H){if($.button!==void 0)KX.encode($.button,Q.uint32(10).fork()).join();if($.header!==void 0)qX.encode($.header,Q.uint32(18).fork()).join();if($.provider!==void 0)ZX.encode($.provider,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??KF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.button=KX.decode(J,J.uint32(),q.button);continue}case 2:{if(K!==18)break;q.header=qX.decode(J,J.uint32(),q.header);continue}case 3:{if(K!==26)break;q.provider=ZX.decode(J,J.uint32(),q.provider);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return IQ.fromPartial($??{})},fromPartial($){let Q=KF();return Q.button=$.button!==void 0&&$.button!==null?KX.fromPartial($.button):void 0,Q.header=$.header!==void 0&&$.header!==null?qX.fromPartial($.header):void 0,Q.provider=$.provider!==void 0&&$.provider!==null?ZX.fromPartial($.provider):void 0,Q}};function qF(){return{}}var KX={encode($,Q=new H){if($.displayText!==void 0)Q.uint32(10).string($.displayText);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayText=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return KX.fromPartial($??{})},fromPartial($){let Q=qF();return Q.displayText=$.displayText??void 0,Q}};function ZF(){return{}}var qX={encode($,Q=new H){if($.headerType!==void 0)Q.uint32(8).int32($.headerType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ZF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.headerType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return qX.fromPartial($??{})},fromPartial($){let Q=ZF();return Q.headerType=$.headerType??void 0,Q}};function XF(){return{}}var ZX={encode($,Q=new H){if($.paramsJson!==void 0)Q.uint32(10).string($.paramsJson);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??XF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.paramsJson=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return ZX.fromPartial($??{})},fromPartial($){let Q=XF();return Q.paramsJson=$.paramsJson??void 0,Q}};function YF(){return{}}var XX={encode($,Q=new H){if($.reminderId!==void 0)Q.uint32(10).string($.reminderId);if($.instanceId!==void 0)Q.uint32(18).string($.instanceId);if($.description!==void 0)Q.uint32(26).string($.description);if($.frequency!==void 0)Q.uint32(32).int32($.frequency);if($.status!==void 0)Q.uint32(40).int32($.status);if($.payeeVpa!==void 0)Q.uint32(50).string($.payeeVpa);if($.payeeJid!==void 0)Q.uint32(58).string($.payeeJid);if($.payerJid!==void 0)Q.uint32(66).string($.payerJid);if($.amount!==void 0)$$.encode($.amount,Q.uint32(74).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??YF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.reminderId=J.string();continue}case 2:{if(K!==18)break;q.instanceId=J.string();continue}case 3:{if(K!==26)break;q.description=J.string();continue}case 4:{if(K!==32)break;q.frequency=J.int32();continue}case 5:{if(K!==40)break;q.status=J.int32();continue}case 6:{if(K!==50)break;q.payeeVpa=J.string();continue}case 7:{if(K!==58)break;q.payeeJid=J.string();continue}case 8:{if(K!==66)break;q.payerJid=J.string();continue}case 9:{if(K!==74)break;q.amount=$$.decode(J,J.uint32(),q.amount);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return XX.fromPartial($??{})},fromPartial($){let Q=YF();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?$$.fromPartial($.amount):void 0,Q}};function VF(){return{}}var YX={encode($,Q=new H){if($.peerDataOperationRequestType!==void 0)Q.uint32(8).int32($.peerDataOperationRequestType);if($.requestStickerReupload!==void 0&&$.requestStickerReupload.length!==0)for(let Z of $.requestStickerReupload)LX.encode(Z,Q.uint32(18).fork()).join();if($.requestUrlPreview!==void 0&&$.requestUrlPreview.length!==0)for(let Z of $.requestUrlPreview)PX.encode(Z,Q.uint32(26).fork()).join();if($.historySyncOnDemandRequest!==void 0)DX.encode($.historySyncOnDemandRequest,Q.uint32(34).fork()).join();if($.placeholderMessageResendRequest!==void 0&&$.placeholderMessageResendRequest.length!==0)for(let Z of $.placeholderMessageResendRequest)FX.encode(Z,Q.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequest!==void 0)GX.encode($.fullHistorySyncOnDemandRequest,Q.uint32(50).fork()).join();if($.syncdCollectionFatalRecoveryRequest!==void 0)kX.encode($.syncdCollectionFatalRecoveryRequest,Q.uint32(58).fork()).join();if($.historySyncChunkRetryRequest!==void 0)CX.encode($.historySyncChunkRetryRequest,Q.uint32(66).fork()).join();if($.galaxyFlowAction!==void 0)UX.encode($.galaxyFlowAction,Q.uint32(74).fork()).join();if($.companionCanonicalUserNonceFetchRequest!==void 0)zX.encode($.companionCanonicalUserNonceFetchRequest,Q.uint32(82).fork()).join();if($.bizBroadcastInsightsContactListRequest!==void 0)VX.encode($.bizBroadcastInsightsContactListRequest,Q.uint32(90).fork()).join();if($.bizBroadcastInsightsRefreshRequest!==void 0)HX.encode($.bizBroadcastInsightsRefreshRequest,Q.uint32(98).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??VF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.peerDataOperationRequestType=J.int32();continue}case 2:{if(K!==18)break;if(q.requestStickerReupload===void 0)q.requestStickerReupload=[];let V=LX.decode(J,J.uint32());if(V!==void 0)q.requestStickerReupload.push(V);continue}case 3:{if(K!==26)break;if(q.requestUrlPreview===void 0)q.requestUrlPreview=[];let V=PX.decode(J,J.uint32());if(V!==void 0)q.requestUrlPreview.push(V);continue}case 4:{if(K!==34)break;q.historySyncOnDemandRequest=DX.decode(J,J.uint32(),q.historySyncOnDemandRequest);continue}case 5:{if(K!==42)break;if(q.placeholderMessageResendRequest===void 0)q.placeholderMessageResendRequest=[];let V=FX.decode(J,J.uint32());if(V!==void 0)q.placeholderMessageResendRequest.push(V);continue}case 6:{if(K!==50)break;q.fullHistorySyncOnDemandRequest=GX.decode(J,J.uint32(),q.fullHistorySyncOnDemandRequest);continue}case 7:{if(K!==58)break;q.syncdCollectionFatalRecoveryRequest=kX.decode(J,J.uint32(),q.syncdCollectionFatalRecoveryRequest);continue}case 8:{if(K!==66)break;q.historySyncChunkRetryRequest=CX.decode(J,J.uint32(),q.historySyncChunkRetryRequest);continue}case 9:{if(K!==74)break;q.galaxyFlowAction=UX.decode(J,J.uint32(),q.galaxyFlowAction);continue}case 10:{if(K!==82)break;q.companionCanonicalUserNonceFetchRequest=zX.decode(J,J.uint32(),q.companionCanonicalUserNonceFetchRequest);continue}case 11:{if(K!==90)break;q.bizBroadcastInsightsContactListRequest=VX.decode(J,J.uint32(),q.bizBroadcastInsightsContactListRequest);continue}case 12:{if(K!==98)break;q.bizBroadcastInsightsRefreshRequest=HX.decode(J,J.uint32(),q.bizBroadcastInsightsRefreshRequest);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return YX.fromPartial($??{})},fromPartial($){let Q=VF();return Q.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,Q.requestStickerReupload=$.requestStickerReupload?.map((Z)=>LX.fromPartial(Z))||void 0,Q.requestUrlPreview=$.requestUrlPreview?.map((Z)=>PX.fromPartial(Z))||void 0,Q.historySyncOnDemandRequest=$.historySyncOnDemandRequest!==void 0&&$.historySyncOnDemandRequest!==null?DX.fromPartial($.historySyncOnDemandRequest):void 0,Q.placeholderMessageResendRequest=$.placeholderMessageResendRequest?.map((Z)=>FX.fromPartial(Z))||void 0,Q.fullHistorySyncOnDemandRequest=$.fullHistorySyncOnDemandRequest!==void 0&&$.fullHistorySyncOnDemandRequest!==null?GX.fromPartial($.fullHistorySyncOnDemandRequest):void 0,Q.syncdCollectionFatalRecoveryRequest=$.syncdCollectionFatalRecoveryRequest!==void 0&&$.syncdCollectionFatalRecoveryRequest!==null?kX.fromPartial($.syncdCollectionFatalRecoveryRequest):void 0,Q.historySyncChunkRetryRequest=$.historySyncChunkRetryRequest!==void 0&&$.historySyncChunkRetryRequest!==null?CX.fromPartial($.historySyncChunkRetryRequest):void 0,Q.galaxyFlowAction=$.galaxyFlowAction!==void 0&&$.galaxyFlowAction!==null?UX.fromPartial($.galaxyFlowAction):void 0,Q.companionCanonicalUserNonceFetchRequest=$.companionCanonicalUserNonceFetchRequest!==void 0&&$.companionCanonicalUserNonceFetchRequest!==null?zX.fromPartial($.companionCanonicalUserNonceFetchRequest):void 0,Q.bizBroadcastInsightsContactListRequest=$.bizBroadcastInsightsContactListRequest!==void 0&&$.bizBroadcastInsightsContactListRequest!==null?VX.fromPartial($.bizBroadcastInsightsContactListRequest):void 0,Q.bizBroadcastInsightsRefreshRequest=$.bizBroadcastInsightsRefreshRequest!==void 0&&$.bizBroadcastInsightsRefreshRequest!==null?HX.fromPartial($.bizBroadcastInsightsRefreshRequest):void 0,Q}};function HF(){return{}}var VX={encode($,Q=new H){if($.campaignId!==void 0)Q.uint32(10).string($.campaignId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??HF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.campaignId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return VX.fromPartial($??{})},fromPartial($){let Q=HF();return Q.campaignId=$.campaignId??void 0,Q}};function zF(){return{}}var HX={encode($,Q=new H){if($.campaignId!==void 0)Q.uint32(10).string($.campaignId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.campaignId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return HX.fromPartial($??{})},fromPartial($){let Q=zF();return Q.campaignId=$.campaignId??void 0,Q}};function GF(){return{}}var zX={encode($,Q=new H){if($.registrationTraceId!==void 0)Q.uint32(10).string($.registrationTraceId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??GF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.registrationTraceId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return zX.fromPartial($??{})},fromPartial($){let Q=GF();return Q.registrationTraceId=$.registrationTraceId??void 0,Q}};function UF(){return{}}var GX={encode($,Q=new H){if($.requestMetadata!==void 0)I$.encode($.requestMetadata,Q.uint32(10).fork()).join();if($.historySyncConfig!==void 0)kQ.encode($.historySyncConfig,Q.uint32(18).fork()).join();if($.fullHistorySyncOnDemandConfig!==void 0)DZ.encode($.fullHistorySyncOnDemandConfig,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??UF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.requestMetadata=I$.decode(J,J.uint32(),q.requestMetadata);continue}case 2:{if(K!==18)break;q.historySyncConfig=kQ.decode(J,J.uint32(),q.historySyncConfig);continue}case 3:{if(K!==26)break;q.fullHistorySyncOnDemandConfig=DZ.decode(J,J.uint32(),q.fullHistorySyncOnDemandConfig);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return GX.fromPartial($??{})},fromPartial($){let Q=UF();return Q.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?I$.fromPartial($.requestMetadata):void 0,Q.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?kQ.fromPartial($.historySyncConfig):void 0,Q.fullHistorySyncOnDemandConfig=$.fullHistorySyncOnDemandConfig!==void 0&&$.fullHistorySyncOnDemandConfig!==null?DZ.fromPartial($.fullHistorySyncOnDemandConfig):void 0,Q}};function CF(){return{}}var UX={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.flowId!==void 0)Q.uint32(18).string($.flowId);if($.stanzaId!==void 0)Q.uint32(26).string($.stanzaId);if($.galaxyFlowDownloadRequestId!==void 0)Q.uint32(34).string($.galaxyFlowDownloadRequestId);if($.agmId!==void 0)Q.uint32(42).string($.agmId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??CF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}case 2:{if(K!==18)break;q.flowId=J.string();continue}case 3:{if(K!==26)break;q.stanzaId=J.string();continue}case 4:{if(K!==34)break;q.galaxyFlowDownloadRequestId=J.string();continue}case 5:{if(K!==42)break;q.agmId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return UX.fromPartial($??{})},fromPartial($){let Q=CF();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 DF(){return{}}var CX={encode($,Q=new H){if($.syncType!==void 0)Q.uint32(8).int32($.syncType);if($.chunkOrder!==void 0)Q.uint32(16).uint32($.chunkOrder);if($.chunkNotificationId!==void 0)Q.uint32(26).string($.chunkNotificationId);if($.regenerateChunk!==void 0)Q.uint32(32).bool($.regenerateChunk);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??DF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.syncType=J.int32();continue}case 2:{if(K!==16)break;q.chunkOrder=J.uint32();continue}case 3:{if(K!==26)break;q.chunkNotificationId=J.string();continue}case 4:{if(K!==32)break;q.regenerateChunk=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return CX.fromPartial($??{})},fromPartial($){let Q=DF();return Q.syncType=$.syncType??void 0,Q.chunkOrder=$.chunkOrder??void 0,Q.chunkNotificationId=$.chunkNotificationId??void 0,Q.regenerateChunk=$.regenerateChunk??void 0,Q}};function FF(){return{}}var DX={encode($,Q=new H){if($.chatJid!==void 0)Q.uint32(10).string($.chatJid);if($.oldestMsgId!==void 0)Q.uint32(18).string($.oldestMsgId);if($.oldestMsgFromMe!==void 0)Q.uint32(24).bool($.oldestMsgFromMe);if($.onDemandMsgCount!==void 0)Q.uint32(32).int32($.onDemandMsgCount);if($.oldestMsgTimestampMs!==void 0)Q.uint32(40).int64($.oldestMsgTimestampMs);if($.accountLid!==void 0)Q.uint32(50).string($.accountLid);if($.supportInlineResponse!==void 0)Q.uint32(56).bool($.supportInlineResponse);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??FF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.chatJid=J.string();continue}case 2:{if(K!==18)break;q.oldestMsgId=J.string();continue}case 3:{if(K!==24)break;q.oldestMsgFromMe=J.bool();continue}case 4:{if(K!==32)break;q.onDemandMsgCount=J.int32();continue}case 5:{if(K!==40)break;q.oldestMsgTimestampMs=J.int64Value();continue}case 6:{if(K!==50)break;q.accountLid=J.string();continue}case 7:{if(K!==56)break;q.supportInlineResponse=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return DX.fromPartial($??{})},fromPartial($){let Q=FF();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 LF(){return{}}var FX={encode($,Q=new H){if($.messageKey!==void 0)B.encode($.messageKey,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??LF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.messageKey=B.decode(J,J.uint32(),q.messageKey);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return FX.fromPartial($??{})},fromPartial($){let Q=LF();return Q.messageKey=$.messageKey!==void 0&&$.messageKey!==null?B.fromPartial($.messageKey):void 0,Q}};function PF(){return{}}var LX={encode($,Q=new H){if($.fileSha256!==void 0)Q.uint32(10).string($.fileSha256);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??PF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fileSha256=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return LX.fromPartial($??{})},fromPartial($){let Q=PF();return Q.fileSha256=$.fileSha256??void 0,Q}};function kF(){return{}}var PX={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.includeHqThumbnail!==void 0)Q.uint32(16).bool($.includeHqThumbnail);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==16)break;q.includeHqThumbnail=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return PX.fromPartial($??{})},fromPartial($){let Q=kF();return Q.url=$.url??void 0,Q.includeHqThumbnail=$.includeHqThumbnail??void 0,Q}};function xF(){return{}}var kX={encode($,Q=new H){if($.collectionName!==void 0)Q.uint32(10).string($.collectionName);if($.timestamp!==void 0)Q.uint32(16).int64($.timestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.collectionName=J.string();continue}case 2:{if(K!==16)break;q.timestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return kX.fromPartial($??{})},fromPartial($){let Q=xF();return Q.collectionName=$.collectionName??void 0,Q.timestamp=$.timestamp??void 0,Q}};function BF(){return{}}var xX={encode($,Q=new H){if($.peerDataOperationRequestType!==void 0)Q.uint32(8).int32($.peerDataOperationRequestType);if($.stanzaId!==void 0)Q.uint32(18).string($.stanzaId);if($.peerDataOperationResult!==void 0&&$.peerDataOperationResult.length!==0)for(let Z of $.peerDataOperationResult)BX.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??BF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.peerDataOperationRequestType=J.int32();continue}case 2:{if(K!==18)break;q.stanzaId=J.string();continue}case 3:{if(K!==26)break;if(q.peerDataOperationResult===void 0)q.peerDataOperationResult=[];let V=BX.decode(J,J.uint32());if(V!==void 0)q.peerDataOperationResult.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return xX.fromPartial($??{})},fromPartial($){let Q=BF();return Q.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,Q.stanzaId=$.stanzaId??void 0,Q.peerDataOperationResult=$.peerDataOperationResult?.map((Z)=>BX.fromPartial(Z))||void 0,Q}};function NF(){return{}}var BX={encode($,Q=new H){if($.mediaUploadResult!==void 0)Q.uint32(8).int32($.mediaUploadResult);if($.stickerMessage!==void 0)yQ.encode($.stickerMessage,Q.uint32(18).fork()).join();if($.linkPreviewResponse!==void 0)IX.encode($.linkPreviewResponse,Q.uint32(26).fork()).join();if($.placeholderMessageResendResponse!==void 0)vX.encode($.placeholderMessageResendResponse,Q.uint32(34).fork()).join();if($.waffleNonceFetchRequestResponse!==void 0)_X.encode($.waffleNonceFetchRequestResponse,Q.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequestResponse!==void 0)WX.encode($.fullHistorySyncOnDemandRequestResponse,Q.uint32(50).fork()).join();if($.companionMetaNonceFetchRequestResponse!==void 0)AX.encode($.companionMetaNonceFetchRequestResponse,Q.uint32(58).fork()).join();if($.syncdSnapshotFatalRecoveryResponse!==void 0)fX.encode($.syncdSnapshotFatalRecoveryResponse,Q.uint32(66).fork()).join();if($.companionCanonicalUserNonceFetchRequestResponse!==void 0)RX.encode($.companionCanonicalUserNonceFetchRequestResponse,Q.uint32(74).fork()).join();if($.historySyncChunkRetryResponse!==void 0)SX.encode($.historySyncChunkRetryResponse,Q.uint32(82).fork()).join();if($.flowResponsesCsvBundle!==void 0)MX.encode($.flowResponsesCsvBundle,Q.uint32(90).fork()).join();if($.bizBroadcastInsightsContactListResponse!==void 0)NX.encode($.bizBroadcastInsightsContactListResponse,Q.uint32(98).fork()).join();if($.contactRefreshResponse!==void 0)EX.encode($.contactRefreshResponse,Q.uint32(106).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??NF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.mediaUploadResult=J.int32();continue}case 2:{if(K!==18)break;q.stickerMessage=yQ.decode(J,J.uint32(),q.stickerMessage);continue}case 3:{if(K!==26)break;q.linkPreviewResponse=IX.decode(J,J.uint32(),q.linkPreviewResponse);continue}case 4:{if(K!==34)break;q.placeholderMessageResendResponse=vX.decode(J,J.uint32(),q.placeholderMessageResendResponse);continue}case 5:{if(K!==42)break;q.waffleNonceFetchRequestResponse=_X.decode(J,J.uint32(),q.waffleNonceFetchRequestResponse);continue}case 6:{if(K!==50)break;q.fullHistorySyncOnDemandRequestResponse=WX.decode(J,J.uint32(),q.fullHistorySyncOnDemandRequestResponse);continue}case 7:{if(K!==58)break;q.companionMetaNonceFetchRequestResponse=AX.decode(J,J.uint32(),q.companionMetaNonceFetchRequestResponse);continue}case 8:{if(K!==66)break;q.syncdSnapshotFatalRecoveryResponse=fX.decode(J,J.uint32(),q.syncdSnapshotFatalRecoveryResponse);continue}case 9:{if(K!==74)break;q.companionCanonicalUserNonceFetchRequestResponse=RX.decode(J,J.uint32(),q.companionCanonicalUserNonceFetchRequestResponse);continue}case 10:{if(K!==82)break;q.historySyncChunkRetryResponse=SX.decode(J,J.uint32(),q.historySyncChunkRetryResponse);continue}case 11:{if(K!==90)break;q.flowResponsesCsvBundle=MX.decode(J,J.uint32(),q.flowResponsesCsvBundle);continue}case 12:{if(K!==98)break;q.bizBroadcastInsightsContactListResponse=NX.decode(J,J.uint32(),q.bizBroadcastInsightsContactListResponse);continue}case 13:{if(K!==106)break;q.contactRefreshResponse=EX.decode(J,J.uint32(),q.contactRefreshResponse);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return BX.fromPartial($??{})},fromPartial($){let Q=NF();return Q.mediaUploadResult=$.mediaUploadResult??void 0,Q.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?yQ.fromPartial($.stickerMessage):void 0,Q.linkPreviewResponse=$.linkPreviewResponse!==void 0&&$.linkPreviewResponse!==null?IX.fromPartial($.linkPreviewResponse):void 0,Q.placeholderMessageResendResponse=$.placeholderMessageResendResponse!==void 0&&$.placeholderMessageResendResponse!==null?vX.fromPartial($.placeholderMessageResendResponse):void 0,Q.waffleNonceFetchRequestResponse=$.waffleNonceFetchRequestResponse!==void 0&&$.waffleNonceFetchRequestResponse!==null?_X.fromPartial($.waffleNonceFetchRequestResponse):void 0,Q.fullHistorySyncOnDemandRequestResponse=$.fullHistorySyncOnDemandRequestResponse!==void 0&&$.fullHistorySyncOnDemandRequestResponse!==null?WX.fromPartial($.fullHistorySyncOnDemandRequestResponse):void 0,Q.companionMetaNonceFetchRequestResponse=$.companionMetaNonceFetchRequestResponse!==void 0&&$.companionMetaNonceFetchRequestResponse!==null?AX.fromPartial($.companionMetaNonceFetchRequestResponse):void 0,Q.syncdSnapshotFatalRecoveryResponse=$.syncdSnapshotFatalRecoveryResponse!==void 0&&$.syncdSnapshotFatalRecoveryResponse!==null?fX.fromPartial($.syncdSnapshotFatalRecoveryResponse):void 0,Q.companionCanonicalUserNonceFetchRequestResponse=$.companionCanonicalUserNonceFetchRequestResponse!==void 0&&$.companionCanonicalUserNonceFetchRequestResponse!==null?RX.fromPartial($.companionCanonicalUserNonceFetchRequestResponse):void 0,Q.historySyncChunkRetryResponse=$.historySyncChunkRetryResponse!==void 0&&$.historySyncChunkRetryResponse!==null?SX.fromPartial($.historySyncChunkRetryResponse):void 0,Q.flowResponsesCsvBundle=$.flowResponsesCsvBundle!==void 0&&$.flowResponsesCsvBundle!==null?MX.fromPartial($.flowResponsesCsvBundle):void 0,Q.bizBroadcastInsightsContactListResponse=$.bizBroadcastInsightsContactListResponse!==void 0&&$.bizBroadcastInsightsContactListResponse!==null?NX.fromPartial($.bizBroadcastInsightsContactListResponse):void 0,Q.contactRefreshResponse=$.contactRefreshResponse!==void 0&&$.contactRefreshResponse!==null?EX.fromPartial($.contactRefreshResponse):void 0,Q}};function OF(){return{}}var NX={encode($,Q=new H){if($.campaignId!==void 0)Q.uint32(10).string($.campaignId);if($.timestampMs!==void 0)Q.uint32(16).int64($.timestampMs);if($.contacts!==void 0&&$.contacts.length!==0)for(let Z of $.contacts)OX.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??OF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.campaignId=J.string();continue}case 2:{if(K!==16)break;q.timestampMs=J.int64Value();continue}case 3:{if(K!==26)break;if(q.contacts===void 0)q.contacts=[];let V=OX.decode(J,J.uint32());if(V!==void 0)q.contacts.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return NX.fromPartial($??{})},fromPartial($){let Q=OF();return Q.campaignId=$.campaignId??void 0,Q.timestampMs=$.timestampMs??void 0,Q.contacts=$.contacts?.map((Z)=>OX.fromPartial(Z))||void 0,Q}};function RF(){return{}}var OX={encode($,Q=new H){if($.contactJid!==void 0)Q.uint32(10).string($.contactJid);if($.state!==void 0)Q.uint32(16).int32($.state);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??RF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.contactJid=J.string();continue}case 2:{if(K!==16)break;q.state=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return OX.fromPartial($??{})},fromPartial($){let Q=RF();return Q.contactJid=$.contactJid??void 0,Q.state=$.state??void 0,Q}};function AF(){return{}}var RX={encode($,Q=new H){if($.nonce!==void 0)Q.uint32(10).string($.nonce);if($.waFbid!==void 0)Q.uint32(18).string($.waFbid);if($.forceRefresh!==void 0)Q.uint32(24).bool($.forceRefresh);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??AF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.nonce=J.string();continue}case 2:{if(K!==18)break;q.waFbid=J.string();continue}case 3:{if(K!==24)break;q.forceRefresh=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return RX.fromPartial($??{})},fromPartial($){let Q=AF();return Q.nonce=$.nonce??void 0,Q.waFbid=$.waFbid??void 0,Q.forceRefresh=$.forceRefresh??void 0,Q}};function EF(){return{}}var AX={encode($,Q=new H){if($.nonce!==void 0)Q.uint32(10).string($.nonce);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??EF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.nonce=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return AX.fromPartial($??{})},fromPartial($){let Q=EF();return Q.nonce=$.nonce??void 0,Q}};function MF(){return{}}var EX={encode($,Q=new H){if($.coveredRequestIds!==void 0&&$.coveredRequestIds.length!==0)for(let Z of $.coveredRequestIds)Q.uint32(10).string(Z);if($.collectionVersion!==void 0)Q.uint32(16).uint64($.collectionVersion);if($.primaryDurationMs!==void 0)Q.uint32(24).int64($.primaryDurationMs);if($.uniqueContactCount!==void 0)Q.uint32(32).uint32($.uniqueContactCount);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??MF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.coveredRequestIds===void 0)q.coveredRequestIds=[];let V=J.string();if(V!==void 0)q.coveredRequestIds.push(V);continue}case 2:{if(K!==16)break;q.collectionVersion=J.uint64Value();continue}case 3:{if(K!==24)break;q.primaryDurationMs=J.int64Value();continue}case 4:{if(K!==32)break;q.uniqueContactCount=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return EX.fromPartial($??{})},fromPartial($){let Q=MF();return Q.coveredRequestIds=$.coveredRequestIds?.map((Z)=>Z)||void 0,Q.collectionVersion=$.collectionVersion??void 0,Q.primaryDurationMs=$.primaryDurationMs??void 0,Q.uniqueContactCount=$.uniqueContactCount??void 0,Q}};function WF(){return{}}var MX={encode($,Q=new H){if($.flowId!==void 0)Q.uint32(10).string($.flowId);if($.galaxyFlowDownloadRequestId!==void 0)Q.uint32(18).string($.galaxyFlowDownloadRequestId);if($.fileName!==void 0)Q.uint32(26).string($.fileName);if($.mimetype!==void 0)Q.uint32(34).string($.mimetype);if($.fileSha256!==void 0)Q.uint32(42).bytes($.fileSha256);if($.mediaKey!==void 0)Q.uint32(50).bytes($.mediaKey);if($.fileEncSha256!==void 0)Q.uint32(58).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(66).string($.directPath);if($.mediaKeyTimestamp!==void 0)Q.uint32(72).int64($.mediaKeyTimestamp);if($.fileLength!==void 0)Q.uint32(80).uint64($.fileLength);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??WF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.flowId=J.string();continue}case 2:{if(K!==18)break;q.galaxyFlowDownloadRequestId=J.string();continue}case 3:{if(K!==26)break;q.fileName=J.string();continue}case 4:{if(K!==34)break;q.mimetype=J.string();continue}case 5:{if(K!==42)break;q.fileSha256=J.bytes();continue}case 6:{if(K!==50)break;q.mediaKey=J.bytes();continue}case 7:{if(K!==58)break;q.fileEncSha256=J.bytes();continue}case 8:{if(K!==66)break;q.directPath=J.string();continue}case 9:{if(K!==72)break;q.mediaKeyTimestamp=J.int64Value();continue}case 10:{if(K!==80)break;q.fileLength=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return MX.fromPartial($??{})},fromPartial($){let Q=WF();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 SF(){return{}}var WX={encode($,Q=new H){if($.requestMetadata!==void 0)I$.encode($.requestMetadata,Q.uint32(10).fork()).join();if($.responseCode!==void 0)Q.uint32(16).int32($.responseCode);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??SF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.requestMetadata=I$.decode(J,J.uint32(),q.requestMetadata);continue}case 2:{if(K!==16)break;q.responseCode=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return WX.fromPartial($??{})},fromPartial($){let Q=SF();return Q.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?I$.fromPartial($.requestMetadata):void 0,Q.responseCode=$.responseCode??void 0,Q}};function IF(){return{}}var SX={encode($,Q=new H){if($.syncType!==void 0)Q.uint32(8).int32($.syncType);if($.chunkOrder!==void 0)Q.uint32(16).uint32($.chunkOrder);if($.requestId!==void 0)Q.uint32(26).string($.requestId);if($.responseCode!==void 0)Q.uint32(32).int32($.responseCode);if($.canRecover!==void 0)Q.uint32(40).bool($.canRecover);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??IF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.syncType=J.int32();continue}case 2:{if(K!==16)break;q.chunkOrder=J.uint32();continue}case 3:{if(K!==26)break;q.requestId=J.string();continue}case 4:{if(K!==32)break;q.responseCode=J.int32();continue}case 5:{if(K!==40)break;q.canRecover=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return SX.fromPartial($??{})},fromPartial($){let Q=IF();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 TF(){return{}}var IX={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.title!==void 0)Q.uint32(18).string($.title);if($.description!==void 0)Q.uint32(26).string($.description);if($.thumbData!==void 0)Q.uint32(34).bytes($.thumbData);if($.matchText!==void 0)Q.uint32(50).string($.matchText);if($.previewType!==void 0)Q.uint32(58).string($.previewType);if($.hqThumbnail!==void 0)TX.encode($.hqThumbnail,Q.uint32(66).fork()).join();if($.previewMetadata!==void 0)yX.encode($.previewMetadata,Q.uint32(74).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??TF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==18)break;q.title=J.string();continue}case 3:{if(K!==26)break;q.description=J.string();continue}case 4:{if(K!==34)break;q.thumbData=J.bytes();continue}case 6:{if(K!==50)break;q.matchText=J.string();continue}case 7:{if(K!==58)break;q.previewType=J.string();continue}case 8:{if(K!==66)break;q.hqThumbnail=TX.decode(J,J.uint32(),q.hqThumbnail);continue}case 9:{if(K!==74)break;q.previewMetadata=yX.decode(J,J.uint32(),q.previewMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return IX.fromPartial($??{})},fromPartial($){let Q=TF();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?TX.fromPartial($.hqThumbnail):void 0,Q.previewMetadata=$.previewMetadata!==void 0&&$.previewMetadata!==null?yX.fromPartial($.previewMetadata):void 0,Q}};function yF(){return{}}var TX={encode($,Q=new H){if($.directPath!==void 0)Q.uint32(10).string($.directPath);if($.thumbHash!==void 0)Q.uint32(18).string($.thumbHash);if($.encThumbHash!==void 0)Q.uint32(26).string($.encThumbHash);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestampMs!==void 0)Q.uint32(40).int64($.mediaKeyTimestampMs);if($.thumbWidth!==void 0)Q.uint32(48).int32($.thumbWidth);if($.thumbHeight!==void 0)Q.uint32(56).int32($.thumbHeight);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.directPath=J.string();continue}case 2:{if(K!==18)break;q.thumbHash=J.string();continue}case 3:{if(K!==26)break;q.encThumbHash=J.string();continue}case 4:{if(K!==34)break;q.mediaKey=J.bytes();continue}case 5:{if(K!==40)break;q.mediaKeyTimestampMs=J.int64Value();continue}case 6:{if(K!==48)break;q.thumbWidth=J.int32();continue}case 7:{if(K!==56)break;q.thumbHeight=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return TX.fromPartial($??{})},fromPartial($){let Q=yF();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 vF(){return{}}var yX={encode($,Q=new H){if($.isBusinessVerified!==void 0)Q.uint32(8).bool($.isBusinessVerified);if($.providerName!==void 0)Q.uint32(18).string($.providerName);if($.amount!==void 0)Q.uint32(26).string($.amount);if($.offset!==void 0)Q.uint32(34).string($.offset);if($.currency!==void 0)Q.uint32(42).string($.currency);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isBusinessVerified=J.bool();continue}case 2:{if(K!==18)break;q.providerName=J.string();continue}case 3:{if(K!==26)break;q.amount=J.string();continue}case 4:{if(K!==34)break;q.offset=J.string();continue}case 5:{if(K!==42)break;q.currency=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return yX.fromPartial($??{})},fromPartial($){let Q=vF();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 fF(){return{}}var vX={encode($,Q=new H){if($.webMessageInfoBytes!==void 0)Q.uint32(10).bytes($.webMessageInfoBytes);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.webMessageInfoBytes=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return vX.fromPartial($??{})},fromPartial($){let Q=fF();return Q.webMessageInfoBytes=$.webMessageInfoBytes??void 0,Q}};function _F(){return{}}var fX={encode($,Q=new H){if($.collectionSnapshot!==void 0)Q.uint32(10).bytes($.collectionSnapshot);if($.isCompressed!==void 0)Q.uint32(16).bool($.isCompressed);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_F();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.collectionSnapshot=J.bytes();continue}case 2:{if(K!==16)break;q.isCompressed=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return fX.fromPartial($??{})},fromPartial($){let Q=_F();return Q.collectionSnapshot=$.collectionSnapshot??void 0,Q.isCompressed=$.isCompressed??void 0,Q}};function hF(){return{}}var _X={encode($,Q=new H){if($.nonce!==void 0)Q.uint32(10).string($.nonce);if($.waEntFbid!==void 0)Q.uint32(18).string($.waEntFbid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.nonce=J.string();continue}case 2:{if(K!==18)break;q.waEntFbid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _X.fromPartial($??{})},fromPartial($){let Q=hF();return Q.nonce=$.nonce??void 0,Q.waEntFbid=$.waEntFbid??void 0,Q}};function lF(){return{}}var hX={encode($,Q=new H){if($.key!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==16)break;q.type=J.int32();continue}case 3:{if(K!==24)break;q.senderTimestampMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return hX.fromPartial($??{})},fromPartial($){let Q=lF();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.type=$.type??void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function pF(){return{}}var lX={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return lX.fromPartial($??{})},fromPartial($){let Q=pF();return Q.type=$.type??void 0,Q}};function uF(){return{}}var pX={encode($,Q=new H){if($.pollCreationMessageKey!==void 0)B.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.addOption!==void 0)N$.encode($.addOption,Q.uint32(18).fork()).join();if($.metadata!==void 0)y$.encode($.metadata,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.pollCreationMessageKey=B.decode(J,J.uint32(),q.pollCreationMessageKey);continue}case 2:{if(K!==18)break;q.addOption=N$.decode(J,J.uint32(),q.addOption);continue}case 3:{if(K!==26)break;q.metadata=y$.decode(J,J.uint32(),q.metadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return pX.fromPartial($??{})},fromPartial($){let Q=uF();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?B.fromPartial($.pollCreationMessageKey):void 0,Q.addOption=$.addOption!==void 0&&$.addOption!==null?N$.fromPartial($.addOption):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?y$.fromPartial($.metadata):void 0,Q}};function wF(){return{}}var K$={encode($,Q=new H){if($.encKey!==void 0)Q.uint32(10).bytes($.encKey);if($.name!==void 0)Q.uint32(18).string($.name);if($.options!==void 0&&$.options.length!==0)for(let Z of $.options)N$.encode(Z,Q.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)Q.uint32(32).uint32($.selectableOptionsCount);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(42).fork()).join();if($.pollContentType!==void 0)Q.uint32(48).int32($.pollContentType);if($.pollType!==void 0)Q.uint32(56).int32($.pollType);if($.correctAnswer!==void 0)N$.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encKey=J.bytes();continue}case 2:{if(K!==18)break;q.name=J.string();continue}case 3:{if(K!==26)break;if(q.options===void 0)q.options=[];let V=N$.decode(J,J.uint32());if(V!==void 0)q.options.push(V);continue}case 4:{if(K!==32)break;q.selectableOptionsCount=J.uint32();continue}case 5:{if(K!==42)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 6:{if(K!==48)break;q.pollContentType=J.int32();continue}case 7:{if(K!==56)break;q.pollType=J.int32();continue}case 8:{if(K!==66)break;q.correctAnswer=N$.decode(J,J.uint32(),q.correctAnswer);continue}case 9:{if(K!==72)break;q.endTime=J.int64Value();continue}case 10:{if(K!==80)break;q.hideParticipantName=J.bool();continue}case 11:{if(K!==88)break;q.allowAddOption=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return K$.fromPartial($??{})},fromPartial($){let Q=wF();return Q.encKey=$.encKey??void 0,Q.name=$.name??void 0,Q.options=$.options?.map((Z)=>N$.fromPartial(Z))||void 0,Q.selectableOptionsCount=$.selectableOptionsCount??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.pollContentType=$.pollContentType??void 0,Q.pollType=$.pollType??void 0,Q.correctAnswer=$.correctAnswer!==void 0&&$.correctAnswer!==null?N$.fromPartial($.correctAnswer):void 0,Q.endTime=$.endTime??void 0,Q.hideParticipantName=$.hideParticipantName??void 0,Q.allowAddOption=$.allowAddOption??void 0,Q}};function jF(){return{}}var N$={encode($,Q=new H){if($.optionName!==void 0)Q.uint32(10).string($.optionName);if($.optionHash!==void 0)Q.uint32(18).string($.optionHash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.optionName=J.string();continue}case 2:{if(K!==18)break;q.optionHash=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return N$.fromPartial($??{})},fromPartial($){let Q=jF();return Q.optionName=$.optionName??void 0,Q.optionHash=$.optionHash??void 0,Q}};function cF(){return{}}var uX={encode($,Q=new H){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encPayload=J.bytes();continue}case 2:{if(K!==18)break;q.encIv=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return uX.fromPartial($??{})},fromPartial($){let Q=cF();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function dF(){return{}}var a$={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let Z of $.pollVotes)wX.encode(Z,Q.uint32(18).fork()).join();if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(26).fork()).join();if($.pollType!==void 0)Q.uint32(32).int32($.pollType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}case 2:{if(K!==18)break;if(q.pollVotes===void 0)q.pollVotes=[];let V=wX.decode(J,J.uint32());if(V!==void 0)q.pollVotes.push(V);continue}case 3:{if(K!==26)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 4:{if(K!==32)break;q.pollType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return a$.fromPartial($??{})},fromPartial($){let Q=dF();return Q.name=$.name??void 0,Q.pollVotes=$.pollVotes?.map((Z)=>wX.fromPartial(Z))||void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.pollType=$.pollType??void 0,Q}};function nF(){return{}}var wX={encode($,Q=new H){if($.optionName!==void 0)Q.uint32(10).string($.optionName);if($.optionVoteCount!==void 0)Q.uint32(16).int64($.optionVoteCount);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.optionName=J.string();continue}case 2:{if(K!==16)break;q.optionVoteCount=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return wX.fromPartial($??{})},fromPartial($){let Q=nF();return Q.optionName=$.optionName??void 0,Q.optionVoteCount=$.optionVoteCount??void 0,Q}};function bF(){return{}}var jX={encode($,Q=new H){if($.pollCreationMessageKey!==void 0)B.encode($.pollCreationMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)uX.encode($.vote,Q.uint32(18).fork()).join();if($.metadata!==void 0)y$.encode($.metadata,Q.uint32(26).fork()).join();if($.senderTimestampMs!==void 0)Q.uint32(32).int64($.senderTimestampMs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.pollCreationMessageKey=B.decode(J,J.uint32(),q.pollCreationMessageKey);continue}case 2:{if(K!==18)break;q.vote=uX.decode(J,J.uint32(),q.vote);continue}case 3:{if(K!==26)break;q.metadata=y$.decode(J,J.uint32(),q.metadata);continue}case 4:{if(K!==32)break;q.senderTimestampMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return jX.fromPartial($??{})},fromPartial($){let Q=bF();return Q.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?B.fromPartial($.pollCreationMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?uX.fromPartial($.vote):void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?y$.fromPartial($.metadata):void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function oF(){return{}}var y$={encode($,Q=new H){if($.pollNameHash!==void 0)Q.uint32(10).bytes($.pollNameHash);if($.lastEditStanzaId!==void 0)Q.uint32(18).string($.lastEditStanzaId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.pollNameHash=J.bytes();continue}case 2:{if(K!==18)break;q.lastEditStanzaId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return y$.fromPartial($??{})},fromPartial($){let Q=oF();return Q.pollNameHash=$.pollNameHash??void 0,Q.lastEditStanzaId=$.lastEditStanzaId??void 0,Q}};function iF(){return{}}var u$={encode($,Q=new H){if($.selectedOptions!==void 0&&$.selectedOptions.length!==0)for(let Z of $.selectedOptions)Q.uint32(10).bytes(Z);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.selectedOptions===void 0)q.selectedOptions=[];let V=J.bytes();if(V!==void 0)q.selectedOptions.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return u$.fromPartial($??{})},fromPartial($){let Q=iF();return Q.selectedOptions=$.selectedOptions?.map((Z)=>Z)||void 0,Q}};function mF(){return{}}var TQ={encode($,Q=new H){if($.product!==void 0)dX.encode($.product,Q.uint32(10).fork()).join();if($.businessOwnerJid!==void 0)Q.uint32(18).string($.businessOwnerJid);if($.catalog!==void 0)cX.encode($.catalog,Q.uint32(34).fork()).join();if($.body!==void 0)Q.uint32(42).string($.body);if($.footer!==void 0)Q.uint32(50).string($.footer);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.product=dX.decode(J,J.uint32(),q.product);continue}case 2:{if(K!==18)break;q.businessOwnerJid=J.string();continue}case 4:{if(K!==34)break;q.catalog=cX.decode(J,J.uint32(),q.catalog);continue}case 5:{if(K!==42)break;q.body=J.string();continue}case 6:{if(K!==50)break;q.footer=J.string();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return TQ.fromPartial($??{})},fromPartial($){let Q=mF();return Q.product=$.product!==void 0&&$.product!==null?dX.fromPartial($.product):void 0,Q.businessOwnerJid=$.businessOwnerJid??void 0,Q.catalog=$.catalog!==void 0&&$.catalog!==null?cX.fromPartial($.catalog):void 0,Q.body=$.body??void 0,Q.footer=$.footer??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function gF(){return{}}var cX={encode($,Q=new H){if($.catalogImage!==void 0)t.encode($.catalogImage,Q.uint32(10).fork()).join();if($.title!==void 0)Q.uint32(18).string($.title);if($.description!==void 0)Q.uint32(26).string($.description);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.catalogImage=t.decode(J,J.uint32(),q.catalogImage);continue}case 2:{if(K!==18)break;q.title=J.string();continue}case 3:{if(K!==26)break;q.description=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return cX.fromPartial($??{})},fromPartial($){let Q=gF();return Q.catalogImage=$.catalogImage!==void 0&&$.catalogImage!==null?t.fromPartial($.catalogImage):void 0,Q.title=$.title??void 0,Q.description=$.description??void 0,Q}};function rF(){return{}}var dX={encode($,Q=new H){if($.productImage!==void 0)t.encode($.productImage,Q.uint32(10).fork()).join();if($.productId!==void 0)Q.uint32(18).string($.productId);if($.title!==void 0)Q.uint32(26).string($.title);if($.description!==void 0)Q.uint32(34).string($.description);if($.currencyCode!==void 0)Q.uint32(42).string($.currencyCode);if($.priceAmount1000!==void 0)Q.uint32(48).int64($.priceAmount1000);if($.retailerId!==void 0)Q.uint32(58).string($.retailerId);if($.url!==void 0)Q.uint32(66).string($.url);if($.productImageCount!==void 0)Q.uint32(72).uint32($.productImageCount);if($.firstImageId!==void 0)Q.uint32(90).string($.firstImageId);if($.salePriceAmount1000!==void 0)Q.uint32(96).int64($.salePriceAmount1000);if($.signedUrl!==void 0)Q.uint32(106).string($.signedUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.productImage=t.decode(J,J.uint32(),q.productImage);continue}case 2:{if(K!==18)break;q.productId=J.string();continue}case 3:{if(K!==26)break;q.title=J.string();continue}case 4:{if(K!==34)break;q.description=J.string();continue}case 5:{if(K!==42)break;q.currencyCode=J.string();continue}case 6:{if(K!==48)break;q.priceAmount1000=J.int64Value();continue}case 7:{if(K!==58)break;q.retailerId=J.string();continue}case 8:{if(K!==66)break;q.url=J.string();continue}case 9:{if(K!==72)break;q.productImageCount=J.uint32();continue}case 11:{if(K!==90)break;q.firstImageId=J.string();continue}case 12:{if(K!==96)break;q.salePriceAmount1000=J.int64Value();continue}case 13:{if(K!==106)break;q.signedUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return dX.fromPartial($??{})},fromPartial($){let Q=rF();return Q.productImage=$.productImage!==void 0&&$.productImage!==null?t.fromPartial($.productImage):void 0,Q.productId=$.productId??void 0,Q.title=$.title??void 0,Q.description=$.description??void 0,Q.currencyCode=$.currencyCode??void 0,Q.priceAmount1000=$.priceAmount1000??void 0,Q.retailerId=$.retailerId??void 0,Q.url=$.url??void 0,Q.productImageCount=$.productImageCount??void 0,Q.firstImageId=$.firstImageId??void 0,Q.salePriceAmount1000=$.salePriceAmount1000??void 0,Q.signedUrl=$.signedUrl??void 0,Q}};function tF(){return{}}var nX={encode($,Q=new H){if($.key!==void 0)B.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)RZ.encode($.historySyncNotification,Q.uint32(50).fork()).join();if($.appStateSyncKeyShare!==void 0)pq.encode($.appStateSyncKeyShare,Q.uint32(58).fork()).join();if($.appStateSyncKeyRequest!==void 0)lq.encode($.appStateSyncKeyRequest,Q.uint32(66).fork()).join();if($.initialSecurityNotificationSettingSync!==void 0)AZ.encode($.initialSecurityNotificationSettingSync,Q.uint32(74).fork()).join();if($.appStateFatalExceptionNotification!==void 0)vq.encode($.appStateFatalExceptionNotification,Q.uint32(82).fork()).join();if($.disappearingMode!==void 0)A$.encode($.disappearingMode,Q.uint32(90).fork()).join();if($.editedMessage!==void 0)d.encode($.editedMessage,Q.uint32(114).fork()).join();if($.timestampMs!==void 0)Q.uint32(120).int64($.timestampMs);if($.peerDataOperationRequestMessage!==void 0)YX.encode($.peerDataOperationRequestMessage,Q.uint32(130).fork()).join();if($.peerDataOperationRequestResponseMessage!==void 0)xX.encode($.peerDataOperationRequestResponseMessage,Q.uint32(138).fork()).join();if($.botFeedbackMessage!==void 0)$J.encode($.botFeedbackMessage,Q.uint32(146).fork()).join();if($.invokerJid!==void 0)Q.uint32(154).string($.invokerJid);if($.requestWelcomeMessageMetadata!==void 0)gX.encode($.requestWelcomeMessageMetadata,Q.uint32(162).fork()).join();if($.mediaNotifyMessage!==void 0)Tq.encode($.mediaNotifyMessage,Q.uint32(170).fork()).join();if($.cloudApiThreadControlNotification!==void 0)QZ.encode($.cloudApiThreadControlNotification,Q.uint32(178).fork()).join();if($.lidMigrationMappingSyncMessage!==void 0)Xq.encode($.lidMigrationMappingSyncMessage,Q.uint32(186).fork()).join();if($.limitSharing!==void 0)B$.encode($.limitSharing,Q.uint32(194).fork()).join();if($.aiPsiMetadata!==void 0)Q.uint32(202).bytes($.aiPsiMetadata);if($.aiQueryFanout!==void 0)N0.encode($.aiQueryFanout,Q.uint32(210).fork()).join();if($.memberLabel!==void 0)W$.encode($.memberLabel,Q.uint32(218).fork()).join();if($.aiMediaCollectionMessage!==void 0)P0.encode($.aiMediaCollectionMessage,Q.uint32(226).fork()).join();if($.afterReadDuration!==void 0)Q.uint32(232).uint32($.afterReadDuration);if($.chatThemeSetting!==void 0)$Z.encode($.chatThemeSetting,Q.uint32(242).fork()).join();if($.aiMetadataOperation!==void 0)x0.encode($.aiMetadataOperation,Q.uint32(250).fork()).join();if($.markAsVerifiedAction!==void 0)rZ.encode($.markAsVerifiedAction,Q.uint32(258).fork()).join();if($.coexStateSync!==void 0)VK.encode($.coexStateSync,Q.uint32(266).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==16)break;q.type=J.int32();continue}case 4:{if(K!==32)break;q.ephemeralExpiration=J.uint32();continue}case 5:{if(K!==40)break;q.ephemeralSettingTimestamp=J.int64Value();continue}case 6:{if(K!==50)break;q.historySyncNotification=RZ.decode(J,J.uint32(),q.historySyncNotification);continue}case 7:{if(K!==58)break;q.appStateSyncKeyShare=pq.decode(J,J.uint32(),q.appStateSyncKeyShare);continue}case 8:{if(K!==66)break;q.appStateSyncKeyRequest=lq.decode(J,J.uint32(),q.appStateSyncKeyRequest);continue}case 9:{if(K!==74)break;q.initialSecurityNotificationSettingSync=AZ.decode(J,J.uint32(),q.initialSecurityNotificationSettingSync);continue}case 10:{if(K!==82)break;q.appStateFatalExceptionNotification=vq.decode(J,J.uint32(),q.appStateFatalExceptionNotification);continue}case 11:{if(K!==90)break;q.disappearingMode=A$.decode(J,J.uint32(),q.disappearingMode);continue}case 14:{if(K!==114)break;q.editedMessage=d.decode(J,J.uint32(),q.editedMessage);continue}case 15:{if(K!==120)break;q.timestampMs=J.int64Value();continue}case 16:{if(K!==130)break;q.peerDataOperationRequestMessage=YX.decode(J,J.uint32(),q.peerDataOperationRequestMessage);continue}case 17:{if(K!==138)break;q.peerDataOperationRequestResponseMessage=xX.decode(J,J.uint32(),q.peerDataOperationRequestResponseMessage);continue}case 18:{if(K!==146)break;q.botFeedbackMessage=$J.decode(J,J.uint32(),q.botFeedbackMessage);continue}case 19:{if(K!==154)break;q.invokerJid=J.string();continue}case 20:{if(K!==162)break;q.requestWelcomeMessageMetadata=gX.decode(J,J.uint32(),q.requestWelcomeMessageMetadata);continue}case 21:{if(K!==170)break;q.mediaNotifyMessage=Tq.decode(J,J.uint32(),q.mediaNotifyMessage);continue}case 22:{if(K!==178)break;q.cloudApiThreadControlNotification=QZ.decode(J,J.uint32(),q.cloudApiThreadControlNotification);continue}case 23:{if(K!==186)break;q.lidMigrationMappingSyncMessage=Xq.decode(J,J.uint32(),q.lidMigrationMappingSyncMessage);continue}case 24:{if(K!==194)break;q.limitSharing=B$.decode(J,J.uint32(),q.limitSharing);continue}case 25:{if(K!==202)break;q.aiPsiMetadata=J.bytes();continue}case 26:{if(K!==210)break;q.aiQueryFanout=N0.decode(J,J.uint32(),q.aiQueryFanout);continue}case 27:{if(K!==218)break;q.memberLabel=W$.decode(J,J.uint32(),q.memberLabel);continue}case 28:{if(K!==226)break;q.aiMediaCollectionMessage=P0.decode(J,J.uint32(),q.aiMediaCollectionMessage);continue}case 29:{if(K!==232)break;q.afterReadDuration=J.uint32();continue}case 30:{if(K!==242)break;q.chatThemeSetting=$Z.decode(J,J.uint32(),q.chatThemeSetting);continue}case 31:{if(K!==250)break;q.aiMetadataOperation=x0.decode(J,J.uint32(),q.aiMetadataOperation);continue}case 32:{if(K!==258)break;q.markAsVerifiedAction=rZ.decode(J,J.uint32(),q.markAsVerifiedAction);continue}case 33:{if(K!==266)break;q.coexStateSync=VK.decode(J,J.uint32(),q.coexStateSync);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return nX.fromPartial($??{})},fromPartial($){let Q=tF();return Q.key=$.key!==void 0&&$.key!==null?B.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?RZ.fromPartial($.historySyncNotification):void 0,Q.appStateSyncKeyShare=$.appStateSyncKeyShare!==void 0&&$.appStateSyncKeyShare!==null?pq.fromPartial($.appStateSyncKeyShare):void 0,Q.appStateSyncKeyRequest=$.appStateSyncKeyRequest!==void 0&&$.appStateSyncKeyRequest!==null?lq.fromPartial($.appStateSyncKeyRequest):void 0,Q.initialSecurityNotificationSettingSync=$.initialSecurityNotificationSettingSync!==void 0&&$.initialSecurityNotificationSettingSync!==null?AZ.fromPartial($.initialSecurityNotificationSettingSync):void 0,Q.appStateFatalExceptionNotification=$.appStateFatalExceptionNotification!==void 0&&$.appStateFatalExceptionNotification!==null?vq.fromPartial($.appStateFatalExceptionNotification):void 0,Q.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?A$.fromPartial($.disappearingMode):void 0,Q.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?d.fromPartial($.editedMessage):void 0,Q.timestampMs=$.timestampMs??void 0,Q.peerDataOperationRequestMessage=$.peerDataOperationRequestMessage!==void 0&&$.peerDataOperationRequestMessage!==null?YX.fromPartial($.peerDataOperationRequestMessage):void 0,Q.peerDataOperationRequestResponseMessage=$.peerDataOperationRequestResponseMessage!==void 0&&$.peerDataOperationRequestResponseMessage!==null?xX.fromPartial($.peerDataOperationRequestResponseMessage):void 0,Q.botFeedbackMessage=$.botFeedbackMessage!==void 0&&$.botFeedbackMessage!==null?$J.fromPartial($.botFeedbackMessage):void 0,Q.invokerJid=$.invokerJid??void 0,Q.requestWelcomeMessageMetadata=$.requestWelcomeMessageMetadata!==void 0&&$.requestWelcomeMessageMetadata!==null?gX.fromPartial($.requestWelcomeMessageMetadata):void 0,Q.mediaNotifyMessage=$.mediaNotifyMessage!==void 0&&$.mediaNotifyMessage!==null?Tq.fromPartial($.mediaNotifyMessage):void 0,Q.cloudApiThreadControlNotification=$.cloudApiThreadControlNotification!==void 0&&$.cloudApiThreadControlNotification!==null?QZ.fromPartial($.cloudApiThreadControlNotification):void 0,Q.lidMigrationMappingSyncMessage=$.lidMigrationMappingSyncMessage!==void 0&&$.lidMigrationMappingSyncMessage!==null?Xq.fromPartial($.lidMigrationMappingSyncMessage):void 0,Q.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?B$.fromPartial($.limitSharing):void 0,Q.aiPsiMetadata=$.aiPsiMetadata??void 0,Q.aiQueryFanout=$.aiQueryFanout!==void 0&&$.aiQueryFanout!==null?N0.fromPartial($.aiQueryFanout):void 0,Q.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?W$.fromPartial($.memberLabel):void 0,Q.aiMediaCollectionMessage=$.aiMediaCollectionMessage!==void 0&&$.aiMediaCollectionMessage!==null?P0.fromPartial($.aiMediaCollectionMessage):void 0,Q.afterReadDuration=$.afterReadDuration??void 0,Q.chatThemeSetting=$.chatThemeSetting!==void 0&&$.chatThemeSetting!==null?$Z.fromPartial($.chatThemeSetting):void 0,Q.aiMetadataOperation=$.aiMetadataOperation!==void 0&&$.aiMetadataOperation!==null?x0.fromPartial($.aiMetadataOperation):void 0,Q.markAsVerifiedAction=$.markAsVerifiedAction!==void 0&&$.markAsVerifiedAction!==null?rZ.fromPartial($.markAsVerifiedAction):void 0,Q.coexStateSync=$.coexStateSync!==void 0&&$.coexStateSync!==null?VK.fromPartial($.coexStateSync):void 0,Q}};function aF(){return{}}var bX={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();if($.text!==void 0)Q.uint32(18).string($.text);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??aF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.text=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return bX.fromPartial($??{})},fromPartial($){let Q=aF();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.text=$.text??void 0,Q}};function sF(){return{}}var oX={encode($,Q=new H){if($.key!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.text=J.string();continue}case 3:{if(K!==26)break;q.groupingKey=J.string();continue}case 4:{if(K!==32)break;q.senderTimestampMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return oX.fromPartial($??{})},fromPartial($){let Q=sF();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.text=$.text??void 0,Q.groupingKey=$.groupingKey??void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q}};function eF(){return{}}var iX={encode($,Q=new H){if($.noteMessage!==void 0)d.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)$$.encode($.amount,Q.uint32(50).fork()).join();if($.background!==void 0)pQ.encode($.background,Q.uint32(58).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??eF();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 4:{if(K!==34)break;q.noteMessage=d.decode(J,J.uint32(),q.noteMessage);continue}case 1:{if(K!==10)break;q.currencyCodeIso4217=J.string();continue}case 2:{if(K!==16)break;q.amount1000=J.uint64Value();continue}case 3:{if(K!==26)break;q.requestFrom=J.string();continue}case 5:{if(K!==40)break;q.expiryTimestamp=J.int64Value();continue}case 6:{if(K!==50)break;q.amount=$$.decode(J,J.uint32(),q.amount);continue}case 7:{if(K!==58)break;q.background=pQ.decode(J,J.uint32(),q.background);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return iX.fromPartial($??{})},fromPartial($){let Q=eF();return Q.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?d.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?$$.fromPartial($.amount):void 0,Q.background=$.background!==void 0&&$.background!==null?pQ.fromPartial($.background):void 0,Q}};function $L(){return{}}var mX={encode($,Q=new H){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$L();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return mX.fromPartial($??{})},fromPartial($){let Q=$L();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function QL(){return{}}var gX={encode($,Q=new H){if($.localChatState!==void 0)Q.uint32(8).int32($.localChatState);if($.welcomeTrigger!==void 0)Q.uint32(16).int32($.welcomeTrigger);if($.botAgentMetadata!==void 0)t0.encode($.botAgentMetadata,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??QL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.localChatState=J.int32();continue}case 2:{if(K!==16)break;q.welcomeTrigger=J.int32();continue}case 3:{if(K!==26)break;q.botAgentMetadata=t0.decode(J,J.uint32(),q.botAgentMetadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return gX.fromPartial($??{})},fromPartial($){let Q=QL();return Q.localChatState=$.localChatState??void 0,Q.welcomeTrigger=$.welcomeTrigger??void 0,Q.botAgentMetadata=$.botAgentMetadata!==void 0&&$.botAgentMetadata!==null?t0.fromPartial($.botAgentMetadata):void 0,Q}};function JL(){return{}}var rX={encode($,Q=new H){if($.chatJid!==void 0)Q.uint32(10).string($.chatJid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??JL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.chatJid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return rX.fromPartial($??{})},fromPartial($){let Q=JL();return Q.chatJid=$.chatJid??void 0,Q}};function KL(){return{}}var tX={encode($,Q=new H){if($.scheduledTimestampMs!==void 0)Q.uint32(8).int64($.scheduledTimestampMs);if($.callType!==void 0)Q.uint32(16).int32($.callType);if($.title!==void 0)Q.uint32(26).string($.title);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??KL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.scheduledTimestampMs=J.int64Value();continue}case 2:{if(K!==16)break;q.callType=J.int32();continue}case 3:{if(K!==26)break;q.title=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return tX.fromPartial($??{})},fromPartial($){let Q=KL();return Q.scheduledTimestampMs=$.scheduledTimestampMs??void 0,Q.callType=$.callType??void 0,Q.title=$.title??void 0,Q}};function qL(){return{}}var aX={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();if($.editType!==void 0)Q.uint32(16).int32($.editType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==16)break;q.editType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return aX.fromPartial($??{})},fromPartial($){let Q=qL();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.editType=$.editType??void 0,Q}};function ZL(){return{}}var sX={encode($,Q=new H){if($.targetMessageKey!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ZL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.targetMessageKey=B.decode(J,J.uint32(),q.targetMessageKey);continue}case 2:{if(K!==18)break;q.encPayload=J.bytes();continue}case 3:{if(K!==26)break;q.encIv=J.bytes();continue}case 4:{if(K!==32)break;q.secretEncType=J.int32();continue}case 5:{if(K!==42)break;q.remoteKeyId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return sX.fromPartial($??{})},fromPartial($){let Q=ZL();return Q.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?B.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 XL(){return{}}var eX={encode($,Q=new H){if($.noteMessage!==void 0)d.encode($.noteMessage,Q.uint32(18).fork()).join();if($.requestMessageKey!==void 0)B.encode($.requestMessageKey,Q.uint32(26).fork()).join();if($.background!==void 0)pQ.encode($.background,Q.uint32(34).fork()).join();if($.transactionData!==void 0)Q.uint32(42).string($.transactionData);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??XL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 2:{if(K!==18)break;q.noteMessage=d.decode(J,J.uint32(),q.noteMessage);continue}case 3:{if(K!==26)break;q.requestMessageKey=B.decode(J,J.uint32(),q.requestMessageKey);continue}case 4:{if(K!==34)break;q.background=pQ.decode(J,J.uint32(),q.background);continue}case 5:{if(K!==42)break;q.transactionData=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return eX.fromPartial($??{})},fromPartial($){let Q=XL();return Q.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?d.fromPartial($.noteMessage):void 0,Q.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?B.fromPartial($.requestMessageKey):void 0,Q.background=$.background!==void 0&&$.background!==null?pQ.fromPartial($.background):void 0,Q.transactionData=$.transactionData??void 0,Q}};function YL(){return{}}var s$={encode($,Q=new H){if($.groupId!==void 0)Q.uint32(10).string($.groupId);if($.axolotlSenderKeyDistributionMessage!==void 0)Q.uint32(18).bytes($.axolotlSenderKeyDistributionMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??YL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.groupId=J.string();continue}case 2:{if(K!==18)break;q.axolotlSenderKeyDistributionMessage=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return s$.fromPartial($??{})},fromPartial($){let Q=YL();return Q.groupId=$.groupId??void 0,Q.axolotlSenderKeyDistributionMessage=$.axolotlSenderKeyDistributionMessage??void 0,Q}};function VL(){return{}}var $6={encode($,Q=new H){if($.splitId!==void 0)Q.uint32(10).string($.splitId);if($.totalAmount!==void 0)$$.encode($.totalAmount,Q.uint32(18).fork()).join();if($.description!==void 0)Q.uint32(26).string($.description);if($.requesterJid!==void 0)Q.uint32(34).string($.requesterJid);if($.participants!==void 0&&$.participants.length!==0)for(let Z of $.participants)Q6.encode(Z,Q.uint32(42).fork()).join();if($.createdAtMs!==void 0)Q.uint32(48).int64($.createdAtMs);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??VL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.splitId=J.string();continue}case 2:{if(K!==18)break;q.totalAmount=$$.decode(J,J.uint32(),q.totalAmount);continue}case 3:{if(K!==26)break;q.description=J.string();continue}case 4:{if(K!==34)break;q.requesterJid=J.string();continue}case 5:{if(K!==42)break;if(q.participants===void 0)q.participants=[];let V=Q6.decode(J,J.uint32());if(V!==void 0)q.participants.push(V);continue}case 6:{if(K!==48)break;q.createdAtMs=J.int64Value();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $6.fromPartial($??{})},fromPartial($){let Q=VL();return Q.splitId=$.splitId??void 0,Q.totalAmount=$.totalAmount!==void 0&&$.totalAmount!==null?$$.fromPartial($.totalAmount):void 0,Q.description=$.description??void 0,Q.requesterJid=$.requesterJid??void 0,Q.participants=$.participants?.map((Z)=>Q6.fromPartial(Z))||void 0,Q.createdAtMs=$.createdAtMs??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q}};function HL(){return{}}var Q6={encode($,Q=new H){if($.jid!==void 0)Q.uint32(10).string($.jid);if($.amount!==void 0)$$.encode($.amount,Q.uint32(18).fork()).join();if($.status!==void 0)Q.uint32(24).int32($.status);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??HL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.jid=J.string();continue}case 2:{if(K!==18)break;q.amount=$$.decode(J,J.uint32(),q.amount);continue}case 3:{if(K!==24)break;q.status=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Q6.fromPartial($??{})},fromPartial($){let Q=HL();return Q.jid=$.jid??void 0,Q.amount=$.amount!==void 0&&$.amount!==null?$$.fromPartial($.amount):void 0,Q.status=$.status??void 0,Q}};function zL(){return{}}var J6={encode($,Q=new H){if($.splitId!==void 0)Q.uint32(10).string($.splitId);if($.participantJid!==void 0)Q.uint32(18).string($.participantJid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.splitId=J.string();continue}case 2:{if(K!==18)break;q.participantJid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return J6.fromPartial($??{})},fromPartial($){let Q=zL();return Q.splitId=$.splitId??void 0,Q.participantJid=$.participantJid??void 0,Q}};function GL(){return{}}var K6={encode($,Q=new H){if($.style!==void 0)Q.uint32(8).int32($.style);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??GL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.style=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return K6.fromPartial($??{})},fromPartial($){let Q=GL();return Q.style=$.style??void 0,Q}};function UL(){return{}}var q6={encode($,Q=new H){if($.responseMessageKey!==void 0)B.encode($.responseMessageKey,Q.uint32(10).fork()).join();if($.originalMessageKey!==void 0)B.encode($.originalMessageKey,Q.uint32(18).fork()).join();if($.type!==void 0)Q.uint32(24).int32($.type);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??UL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.responseMessageKey=B.decode(J,J.uint32(),q.responseMessageKey);continue}case 2:{if(K!==18)break;q.originalMessageKey=B.decode(J,J.uint32(),q.originalMessageKey);continue}case 3:{if(K!==24)break;q.type=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return q6.fromPartial($??{})},fromPartial($){let Q=UL();return Q.responseMessageKey=$.responseMessageKey!==void 0&&$.responseMessageKey!==null?B.fromPartial($.responseMessageKey):void 0,Q.originalMessageKey=$.originalMessageKey!==void 0&&$.originalMessageKey!==null?B.fromPartial($.originalMessageKey):void 0,Q.type=$.type??void 0,Q}};function CL(){return{}}var Z6={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();if($.text!==void 0)Q.uint32(18).string($.text);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??CL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.text=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Z6.fromPartial($??{})},fromPartial($){let Q=CL();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.text=$.text??void 0,Q}};function DL(){return{}}var X6={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.text!==void 0)Q.uint32(18).string($.text);if($.thumbnail!==void 0)Q.uint32(26).bytes($.thumbnail);if($.originalStatusId!==void 0)B.encode($.originalStatusId,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??DL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}case 2:{if(K!==18)break;q.text=J.string();continue}case 3:{if(K!==26)break;q.thumbnail=J.bytes();continue}case 4:{if(K!==34)break;q.originalStatusId=B.decode(J,J.uint32(),q.originalStatusId);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return X6.fromPartial($??{})},fromPartial($){let Q=DL();return Q.type=$.type??void 0,Q.text=$.text??void 0,Q.thumbnail=$.thumbnail??void 0,Q.originalStatusId=$.originalStatusId!==void 0&&$.originalStatusId!==null?B.fromPartial($.originalStatusId):void 0,Q}};function FL(){return{}}var Y6={encode($,Q=new H){if($.key!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??FL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.stickerKey=J.string();continue}case 3:{if(K!==24)break;q.type=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Y6.fromPartial($??{})},fromPartial($){let Q=FL();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.stickerKey=$.stickerKey??void 0,Q.type=$.type??void 0,Q}};function LL(){return{}}var yQ={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.fileSha256!==void 0)Q.uint32(18).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(26).bytes($.fileEncSha256);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mimetype!==void 0)Q.uint32(42).string($.mimetype);if($.height!==void 0)Q.uint32(48).uint32($.height);if($.width!==void 0)Q.uint32(56).uint32($.width);if($.directPath!==void 0)Q.uint32(66).string($.directPath);if($.fileLength!==void 0)Q.uint32(72).uint64($.fileLength);if($.mediaKeyTimestamp!==void 0)Q.uint32(80).int64($.mediaKeyTimestamp);if($.firstFrameLength!==void 0)Q.uint32(88).uint32($.firstFrameLength);if($.firstFrameSidecar!==void 0)Q.uint32(98).bytes($.firstFrameSidecar);if($.isAnimated!==void 0)Q.uint32(104).bool($.isAnimated);if($.pngThumbnail!==void 0)Q.uint32(130).bytes($.pngThumbnail);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.stickerSentTs!==void 0)Q.uint32(144).int64($.stickerSentTs);if($.isAvatar!==void 0)Q.uint32(152).bool($.isAvatar);if($.isAiSticker!==void 0)Q.uint32(160).bool($.isAiSticker);if($.isLottie!==void 0)Q.uint32(168).bool($.isLottie);if($.accessibilityLabel!==void 0)Q.uint32(178).string($.accessibilityLabel);if($.premium!==void 0)Q.uint32(192).int32($.premium);if($.emojis!==void 0)Q.uint32(202).string($.emojis);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??LL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==18)break;q.fileSha256=J.bytes();continue}case 3:{if(K!==26)break;q.fileEncSha256=J.bytes();continue}case 4:{if(K!==34)break;q.mediaKey=J.bytes();continue}case 5:{if(K!==42)break;q.mimetype=J.string();continue}case 6:{if(K!==48)break;q.height=J.uint32();continue}case 7:{if(K!==56)break;q.width=J.uint32();continue}case 8:{if(K!==66)break;q.directPath=J.string();continue}case 9:{if(K!==72)break;q.fileLength=J.uint64Value();continue}case 10:{if(K!==80)break;q.mediaKeyTimestamp=J.int64Value();continue}case 11:{if(K!==88)break;q.firstFrameLength=J.uint32();continue}case 12:{if(K!==98)break;q.firstFrameSidecar=J.bytes();continue}case 13:{if(K!==104)break;q.isAnimated=J.bool();continue}case 16:{if(K!==130)break;q.pngThumbnail=J.bytes();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 18:{if(K!==144)break;q.stickerSentTs=J.int64Value();continue}case 19:{if(K!==152)break;q.isAvatar=J.bool();continue}case 20:{if(K!==160)break;q.isAiSticker=J.bool();continue}case 21:{if(K!==168)break;q.isLottie=J.bool();continue}case 22:{if(K!==178)break;q.accessibilityLabel=J.string();continue}case 24:{if(K!==192)break;q.premium=J.int32();continue}case 25:{if(K!==202)break;q.emojis=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return yQ.fromPartial($??{})},fromPartial($){let Q=LL();return Q.url=$.url??void 0,Q.fileSha256=$.fileSha256??void 0,Q.fileEncSha256=$.fileEncSha256??void 0,Q.mediaKey=$.mediaKey??void 0,Q.mimetype=$.mimetype??void 0,Q.height=$.height??void 0,Q.width=$.width??void 0,Q.directPath=$.directPath??void 0,Q.fileLength=$.fileLength??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.firstFrameLength=$.firstFrameLength??void 0,Q.firstFrameSidecar=$.firstFrameSidecar??void 0,Q.isAnimated=$.isAnimated??void 0,Q.pngThumbnail=$.pngThumbnail??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.stickerSentTs=$.stickerSentTs??void 0,Q.isAvatar=$.isAvatar??void 0,Q.isAiSticker=$.isAiSticker??void 0,Q.isLottie=$.isLottie??void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.premium=$.premium??void 0,Q.emojis=$.emojis??void 0,Q}};function PL(){return{}}var V6={encode($,Q=new H){if($.stickerPackId!==void 0)Q.uint32(10).string($.stickerPackId);if($.name!==void 0)Q.uint32(18).string($.name);if($.publisher!==void 0)Q.uint32(26).string($.publisher);if($.stickers!==void 0&&$.stickers.length!==0)for(let Z of $.stickers)H6.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)W.encode($.contextInfo,Q.uint32(90).fork()).join();if($.packDescription!==void 0)Q.uint32(98).string($.packDescription);if($.mediaKeyTimestamp!==void 0)Q.uint32(104).int64($.mediaKeyTimestamp);if($.trayIconFileName!==void 0)Q.uint32(114).string($.trayIconFileName);if($.thumbnailDirectPath!==void 0)Q.uint32(122).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(130).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(138).bytes($.thumbnailEncSha256);if($.thumbnailHeight!==void 0)Q.uint32(144).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)Q.uint32(152).uint32($.thumbnailWidth);if($.imageDataHash!==void 0)Q.uint32(162).string($.imageDataHash);if($.stickerPackSize!==void 0)Q.uint32(168).uint64($.stickerPackSize);if($.stickerPackOrigin!==void 0)Q.uint32(176).int32($.stickerPackOrigin);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??PL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.stickerPackId=J.string();continue}case 2:{if(K!==18)break;q.name=J.string();continue}case 3:{if(K!==26)break;q.publisher=J.string();continue}case 4:{if(K!==34)break;if(q.stickers===void 0)q.stickers=[];let V=H6.decode(J,J.uint32());if(V!==void 0)q.stickers.push(V);continue}case 5:{if(K!==40)break;q.fileLength=J.uint64Value();continue}case 6:{if(K!==50)break;q.fileSha256=J.bytes();continue}case 7:{if(K!==58)break;q.fileEncSha256=J.bytes();continue}case 8:{if(K!==66)break;q.mediaKey=J.bytes();continue}case 9:{if(K!==74)break;q.directPath=J.string();continue}case 10:{if(K!==82)break;q.caption=J.string();continue}case 11:{if(K!==90)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 12:{if(K!==98)break;q.packDescription=J.string();continue}case 13:{if(K!==104)break;q.mediaKeyTimestamp=J.int64Value();continue}case 14:{if(K!==114)break;q.trayIconFileName=J.string();continue}case 15:{if(K!==122)break;q.thumbnailDirectPath=J.string();continue}case 16:{if(K!==130)break;q.thumbnailSha256=J.bytes();continue}case 17:{if(K!==138)break;q.thumbnailEncSha256=J.bytes();continue}case 18:{if(K!==144)break;q.thumbnailHeight=J.uint32();continue}case 19:{if(K!==152)break;q.thumbnailWidth=J.uint32();continue}case 20:{if(K!==162)break;q.imageDataHash=J.string();continue}case 21:{if(K!==168)break;q.stickerPackSize=J.uint64Value();continue}case 22:{if(K!==176)break;q.stickerPackOrigin=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return V6.fromPartial($??{})},fromPartial($){let Q=PL();return Q.stickerPackId=$.stickerPackId??void 0,Q.name=$.name??void 0,Q.publisher=$.publisher??void 0,Q.stickers=$.stickers?.map((Z)=>H6.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?W.fromPartial($.contextInfo):void 0,Q.packDescription=$.packDescription??void 0,Q.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,Q.trayIconFileName=$.trayIconFileName??void 0,Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.thumbnailHeight=$.thumbnailHeight??void 0,Q.thumbnailWidth=$.thumbnailWidth??void 0,Q.imageDataHash=$.imageDataHash??void 0,Q.stickerPackSize=$.stickerPackSize??void 0,Q.stickerPackOrigin=$.stickerPackOrigin??void 0,Q}};function kL(){return{}}var H6={encode($,Q=new H){if($.fileName!==void 0)Q.uint32(10).string($.fileName);if($.isAnimated!==void 0)Q.uint32(16).bool($.isAnimated);if($.emojis!==void 0&&$.emojis.length!==0)for(let 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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fileName=J.string();continue}case 2:{if(K!==16)break;q.isAnimated=J.bool();continue}case 3:{if(K!==26)break;if(q.emojis===void 0)q.emojis=[];let V=J.string();if(V!==void 0)q.emojis.push(V);continue}case 4:{if(K!==34)break;q.accessibilityLabel=J.string();continue}case 5:{if(K!==40)break;q.isLottie=J.bool();continue}case 6:{if(K!==50)break;q.mimetype=J.string();continue}case 7:{if(K!==56)break;q.premium=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return H6.fromPartial($??{})},fromPartial($){let Q=kL();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 xL(){return{}}var z6={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.filehash===void 0)q.filehash=[];let V=J.string();if(V!==void 0)q.filehash.push(V);continue}case 2:{if(K!==18)break;q.rmrSource=J.string();continue}case 3:{if(K!==24)break;q.requestTimestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return z6.fromPartial($??{})},fromPartial($){let Q=xL();return Q.filehash=$.filehash?.map((Z)=>Z)||void 0,Q.rmrSource=$.rmrSource??void 0,Q.requestTimestamp=$.requestTimestamp??void 0,Q}};function BL(){return{}}var G6={encode($,Q=new H){if($.selectedId!==void 0)Q.uint32(10).string($.selectedId);if($.selectedDisplayText!==void 0)Q.uint32(18).string($.selectedDisplayText);if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(26).fork()).join();if($.selectedIndex!==void 0)Q.uint32(32).uint32($.selectedIndex);if($.selectedCarouselCardIndex!==void 0)Q.uint32(40).uint32($.selectedCarouselCardIndex);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??BL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.selectedId=J.string();continue}case 2:{if(K!==18)break;q.selectedDisplayText=J.string();continue}case 3:{if(K!==26)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 4:{if(K!==32)break;q.selectedIndex=J.uint32();continue}case 5:{if(K!==40)break;q.selectedCarouselCardIndex=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return G6.fromPartial($??{})},fromPartial($){let Q=BL();return Q.selectedId=$.selectedId??void 0,Q.selectedDisplayText=$.selectedDisplayText??void 0,Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.selectedIndex=$.selectedIndex??void 0,Q.selectedCarouselCardIndex=$.selectedCarouselCardIndex??void 0,Q}};function NL(){return{}}var vQ={encode($,Q=new H){if($.contextInfo!==void 0)W.encode($.contextInfo,Q.uint32(26).fork()).join();if($.hydratedTemplate!==void 0)e$.encode($.hydratedTemplate,Q.uint32(34).fork()).join();if($.templateId!==void 0)Q.uint32(74).string($.templateId);if($.fourRowTemplate!==void 0)U6.encode($.fourRowTemplate,Q.uint32(10).fork()).join();if($.hydratedFourRowTemplate!==void 0)e$.encode($.hydratedFourRowTemplate,Q.uint32(18).fork()).join();if($.interactiveMessageTemplate!==void 0)T$.encode($.interactiveMessageTemplate,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??NL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 3:{if(K!==26)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 4:{if(K!==34)break;q.hydratedTemplate=e$.decode(J,J.uint32(),q.hydratedTemplate);continue}case 9:{if(K!==74)break;q.templateId=J.string();continue}case 1:{if(K!==10)break;q.fourRowTemplate=U6.decode(J,J.uint32(),q.fourRowTemplate);continue}case 2:{if(K!==18)break;q.hydratedFourRowTemplate=e$.decode(J,J.uint32(),q.hydratedFourRowTemplate);continue}case 5:{if(K!==42)break;q.interactiveMessageTemplate=T$.decode(J,J.uint32(),q.interactiveMessageTemplate);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return vQ.fromPartial($??{})},fromPartial($){let Q=NL();return Q.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?W.fromPartial($.contextInfo):void 0,Q.hydratedTemplate=$.hydratedTemplate!==void 0&&$.hydratedTemplate!==null?e$.fromPartial($.hydratedTemplate):void 0,Q.templateId=$.templateId??void 0,Q.fourRowTemplate=$.fourRowTemplate!==void 0&&$.fourRowTemplate!==null?U6.fromPartial($.fourRowTemplate):void 0,Q.hydratedFourRowTemplate=$.hydratedFourRowTemplate!==void 0&&$.hydratedFourRowTemplate!==null?e$.fromPartial($.hydratedFourRowTemplate):void 0,Q.interactiveMessageTemplate=$.interactiveMessageTemplate!==void 0&&$.interactiveMessageTemplate!==null?T$.fromPartial($.interactiveMessageTemplate):void 0,Q}};function OL(){return{}}var U6={encode($,Q=new H){if($.content!==void 0)o.encode($.content,Q.uint32(50).fork()).join();if($.footer!==void 0)o.encode($.footer,Q.uint32(58).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let Z of $.buttons)V5.encode(Z,Q.uint32(66).fork()).join();if($.documentMessage!==void 0)q$.encode($.documentMessage,Q.uint32(10).fork()).join();if($.highlyStructuredMessage!==void 0)o.encode($.highlyStructuredMessage,Q.uint32(18).fork()).join();if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)Q$.encode($.locationMessage,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??OL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 6:{if(K!==50)break;q.content=o.decode(J,J.uint32(),q.content);continue}case 7:{if(K!==58)break;q.footer=o.decode(J,J.uint32(),q.footer);continue}case 8:{if(K!==66)break;if(q.buttons===void 0)q.buttons=[];let V=V5.decode(J,J.uint32());if(V!==void 0)q.buttons.push(V);continue}case 1:{if(K!==10)break;q.documentMessage=q$.decode(J,J.uint32(),q.documentMessage);continue}case 2:{if(K!==18)break;q.highlyStructuredMessage=o.decode(J,J.uint32(),q.highlyStructuredMessage);continue}case 3:{if(K!==26)break;q.imageMessage=t.decode(J,J.uint32(),q.imageMessage);continue}case 4:{if(K!==34)break;q.videoMessage=e.decode(J,J.uint32(),q.videoMessage);continue}case 5:{if(K!==42)break;q.locationMessage=Q$.decode(J,J.uint32(),q.locationMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return U6.fromPartial($??{})},fromPartial($){let Q=OL();return Q.content=$.content!==void 0&&$.content!==null?o.fromPartial($.content):void 0,Q.footer=$.footer!==void 0&&$.footer!==null?o.fromPartial($.footer):void 0,Q.buttons=$.buttons?.map((Z)=>V5.fromPartial(Z))||void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?q$.fromPartial($.documentMessage):void 0,Q.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?o.fromPartial($.highlyStructuredMessage):void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q$.fromPartial($.locationMessage):void 0,Q}};function RL(){return{}}var e$={encode($,Q=new H){if($.hydratedContentText!==void 0)Q.uint32(50).string($.hydratedContentText);if($.hydratedFooterText!==void 0)Q.uint32(58).string($.hydratedFooterText);if($.hydratedButtons!==void 0&&$.hydratedButtons.length!==0)for(let Z of $.hydratedButtons)g8.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)q$.encode($.documentMessage,Q.uint32(10).fork()).join();if($.hydratedTitleText!==void 0)Q.uint32(18).string($.hydratedTitleText);if($.imageMessage!==void 0)t.encode($.imageMessage,Q.uint32(26).fork()).join();if($.videoMessage!==void 0)e.encode($.videoMessage,Q.uint32(34).fork()).join();if($.locationMessage!==void 0)Q$.encode($.locationMessage,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??RL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 6:{if(K!==50)break;q.hydratedContentText=J.string();continue}case 7:{if(K!==58)break;q.hydratedFooterText=J.string();continue}case 8:{if(K!==66)break;if(q.hydratedButtons===void 0)q.hydratedButtons=[];let V=g8.decode(J,J.uint32());if(V!==void 0)q.hydratedButtons.push(V);continue}case 9:{if(K!==74)break;q.templateId=J.string();continue}case 10:{if(K!==80)break;q.maskLinkedDevices=J.bool();continue}case 1:{if(K!==10)break;q.documentMessage=q$.decode(J,J.uint32(),q.documentMessage);continue}case 2:{if(K!==18)break;q.hydratedTitleText=J.string();continue}case 3:{if(K!==26)break;q.imageMessage=t.decode(J,J.uint32(),q.imageMessage);continue}case 4:{if(K!==34)break;q.videoMessage=e.decode(J,J.uint32(),q.videoMessage);continue}case 5:{if(K!==42)break;q.locationMessage=Q$.decode(J,J.uint32(),q.locationMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return e$.fromPartial($??{})},fromPartial($){let Q=RL();return Q.hydratedContentText=$.hydratedContentText??void 0,Q.hydratedFooterText=$.hydratedFooterText??void 0,Q.hydratedButtons=$.hydratedButtons?.map((Z)=>g8.fromPartial(Z))||void 0,Q.templateId=$.templateId??void 0,Q.maskLinkedDevices=$.maskLinkedDevices??void 0,Q.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?q$.fromPartial($.documentMessage):void 0,Q.hydratedTitleText=$.hydratedTitleText??void 0,Q.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?t.fromPartial($.imageMessage):void 0,Q.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?e.fromPartial($.videoMessage):void 0,Q.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?Q$.fromPartial($.locationMessage):void 0,Q}};function AL(){return{}}var C6={encode($,Q=new H){if($.fbExperimentId!==void 0)Q.uint32(8).uint32($.fbExperimentId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??AL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.fbExperimentId=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return C6.fromPartial($??{})},fromPartial($){let Q=AL();return Q.fbExperimentId=$.fbExperimentId??void 0,Q}};function EL(){return{}}var D6={encode($,Q=new H){if($.username!==void 0)Q.uint32(10).string($.username);if($.caption!==void 0)Q.uint32(18).string($.caption);if($.thumbnailImageUrl!==void 0)Q.uint32(26).string($.thumbnailImageUrl);if($.profilePictureUrl!==void 0)Q.uint32(34).string($.profilePictureUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??EL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.username=J.string();continue}case 2:{if(K!==18)break;q.caption=J.string();continue}case 3:{if(K!==26)break;q.thumbnailImageUrl=J.string();continue}case 4:{if(K!==34)break;q.profilePictureUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return D6.fromPartial($??{})},fromPartial($){let Q=EL();return Q.username=$.username??void 0,Q.caption=$.caption??void 0,Q.thumbnailImageUrl=$.thumbnailImageUrl??void 0,Q.profilePictureUrl=$.profilePictureUrl??void 0,Q}};function ML(){return{}}var e={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.mimetype!==void 0)Q.uint32(18).string($.mimetype);if($.fileSha256!==void 0)Q.uint32(26).bytes($.fileSha256);if($.fileLength!==void 0)Q.uint32(32).uint64($.fileLength);if($.seconds!==void 0)Q.uint32(40).uint32($.seconds);if($.mediaKey!==void 0)Q.uint32(50).bytes($.mediaKey);if($.caption!==void 0)Q.uint32(58).string($.caption);if($.gifPlayback!==void 0)Q.uint32(64).bool($.gifPlayback);if($.height!==void 0)Q.uint32(72).uint32($.height);if($.width!==void 0)Q.uint32(80).uint32($.width);if($.fileEncSha256!==void 0)Q.uint32(90).bytes($.fileEncSha256);if($.interactiveAnnotations!==void 0&&$.interactiveAnnotations.length!==0)for(let Z of $.interactiveAnnotations)V$.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)W.encode($.contextInfo,Q.uint32(138).fork()).join();if($.streamingSidecar!==void 0)Q.uint32(146).bytes($.streamingSidecar);if($.gifAttribution!==void 0)Q.uint32(152).int32($.gifAttribution);if($.viewOnce!==void 0)Q.uint32(160).bool($.viewOnce);if($.thumbnailDirectPath!==void 0)Q.uint32(170).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)Q.uint32(178).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)Q.uint32(186).bytes($.thumbnailEncSha256);if($.staticUrl!==void 0)Q.uint32(194).string($.staticUrl);if($.annotations!==void 0&&$.annotations.length!==0)for(let Z of $.annotations)V$.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)m6.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ML();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==18)break;q.mimetype=J.string();continue}case 3:{if(K!==26)break;q.fileSha256=J.bytes();continue}case 4:{if(K!==32)break;q.fileLength=J.uint64Value();continue}case 5:{if(K!==40)break;q.seconds=J.uint32();continue}case 6:{if(K!==50)break;q.mediaKey=J.bytes();continue}case 7:{if(K!==58)break;q.caption=J.string();continue}case 8:{if(K!==64)break;q.gifPlayback=J.bool();continue}case 9:{if(K!==72)break;q.height=J.uint32();continue}case 10:{if(K!==80)break;q.width=J.uint32();continue}case 11:{if(K!==90)break;q.fileEncSha256=J.bytes();continue}case 12:{if(K!==98)break;if(q.interactiveAnnotations===void 0)q.interactiveAnnotations=[];let V=V$.decode(J,J.uint32());if(V!==void 0)q.interactiveAnnotations.push(V);continue}case 13:{if(K!==106)break;q.directPath=J.string();continue}case 14:{if(K!==112)break;q.mediaKeyTimestamp=J.int64Value();continue}case 16:{if(K!==130)break;q.jpegThumbnail=J.bytes();continue}case 17:{if(K!==138)break;q.contextInfo=W.decode(J,J.uint32(),q.contextInfo);continue}case 18:{if(K!==146)break;q.streamingSidecar=J.bytes();continue}case 19:{if(K!==152)break;q.gifAttribution=J.int32();continue}case 20:{if(K!==160)break;q.viewOnce=J.bool();continue}case 21:{if(K!==170)break;q.thumbnailDirectPath=J.string();continue}case 22:{if(K!==178)break;q.thumbnailSha256=J.bytes();continue}case 23:{if(K!==186)break;q.thumbnailEncSha256=J.bytes();continue}case 24:{if(K!==194)break;q.staticUrl=J.string();continue}case 25:{if(K!==202)break;if(q.annotations===void 0)q.annotations=[];let V=V$.decode(J,J.uint32());if(V!==void 0)q.annotations.push(V);continue}case 26:{if(K!==210)break;q.accessibilityLabel=J.string();continue}case 27:{if(K!==218)break;if(q.processedVideos===void 0)q.processedVideos=[];let V=m6.decode(J,J.uint32());if(V!==void 0)q.processedVideos.push(V);continue}case 28:{if(K!==224)break;q.externalShareFullVideoDurationInSeconds=J.uint32();continue}case 29:{if(K!==232)break;q.motionPhotoPresentationOffsetMs=J.uint64Value();continue}case 30:{if(K!==242)break;q.metadataUrl=J.string();continue}case 31:{if(K!==248)break;q.videoSourceType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return e.fromPartial($??{})},fromPartial($){let Q=ML();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)=>V$.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?W.fromPartial($.contextInfo):void 0,Q.streamingSidecar=$.streamingSidecar??void 0,Q.gifAttribution=$.gifAttribution??void 0,Q.viewOnce=$.viewOnce??void 0,Q.thumbnailDirectPath=$.thumbnailDirectPath??void 0,Q.thumbnailSha256=$.thumbnailSha256??void 0,Q.thumbnailEncSha256=$.thumbnailEncSha256??void 0,Q.staticUrl=$.staticUrl??void 0,Q.annotations=$.annotations?.map((Z)=>V$.fromPartial(Z))||void 0,Q.accessibilityLabel=$.accessibilityLabel??void 0,Q.processedVideos=$.processedVideos?.map((Z)=>m6.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 WL(){return{}}var F6={encode($,Q=new H){if($.messageAddOnType!==void 0)Q.uint32(8).int32($.messageAddOnType);if($.messageAddOn!==void 0)d.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)fQ.encode($.addOnContextInfo,Q.uint32(50).fork()).join();if($.messageAddOnKey!==void 0)B.encode($.messageAddOnKey,Q.uint32(58).fork()).join();if($.legacyMessage!==void 0)Vq.encode($.legacyMessage,Q.uint32(66).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??WL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.messageAddOnType=J.int32();continue}case 2:{if(K!==18)break;q.messageAddOn=d.decode(J,J.uint32(),q.messageAddOn);continue}case 3:{if(K!==24)break;q.senderTimestampMs=J.int64Value();continue}case 4:{if(K!==32)break;q.serverTimestampMs=J.int64Value();continue}case 5:{if(K!==40)break;q.status=J.int32();continue}case 6:{if(K!==50)break;q.addOnContextInfo=fQ.decode(J,J.uint32(),q.addOnContextInfo);continue}case 7:{if(K!==58)break;q.messageAddOnKey=B.decode(J,J.uint32(),q.messageAddOnKey);continue}case 8:{if(K!==66)break;q.legacyMessage=Vq.decode(J,J.uint32(),q.legacyMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return F6.fromPartial($??{})},fromPartial($){let Q=WL();return Q.messageAddOnType=$.messageAddOnType??void 0,Q.messageAddOn=$.messageAddOn!==void 0&&$.messageAddOn!==null?d.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?fQ.fromPartial($.addOnContextInfo):void 0,Q.messageAddOnKey=$.messageAddOnKey!==void 0&&$.messageAddOnKey!==null?B.fromPartial($.messageAddOnKey):void 0,Q.legacyMessage=$.legacyMessage!==void 0&&$.legacyMessage!==null?Vq.fromPartial($.legacyMessage):void 0,Q}};function SL(){return{}}var fQ={encode($,Q=new H){if($.messageAddOnDurationInSecs!==void 0)Q.uint32(8).uint32($.messageAddOnDurationInSecs);if($.messageAddOnExpiryType!==void 0)Q.uint32(16).int32($.messageAddOnExpiryType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??SL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.messageAddOnDurationInSecs=J.uint32();continue}case 2:{if(K!==16)break;q.messageAddOnExpiryType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return fQ.fromPartial($??{})},fromPartial($){let Q=SL();return Q.messageAddOnDurationInSecs=$.messageAddOnDurationInSecs??void 0,Q.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,Q}};function IL(){return{}}var L6={encode($,Q=new H){if($.associationType!==void 0)Q.uint32(8).int32($.associationType);if($.parentMessageKey!==void 0)B.encode($.parentMessageKey,Q.uint32(18).fork()).join();if($.messageIndex!==void 0)Q.uint32(24).int32($.messageIndex);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??IL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.associationType=J.int32();continue}case 2:{if(K!==18)break;q.parentMessageKey=B.decode(J,J.uint32(),q.parentMessageKey);continue}case 3:{if(K!==24)break;q.messageIndex=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return L6.fromPartial($??{})},fromPartial($){let Q=IL();return Q.associationType=$.associationType??void 0,Q.parentMessageKey=$.parentMessageKey!==void 0&&$.parentMessageKey!==null?B.fromPartial($.parentMessageKey):void 0,Q.messageIndex=$.messageIndex??void 0,Q}};function TL(){return{}}var _Q={encode($,Q=new H){if($.deviceListMetadata!==void 0)k8.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)BJ.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)L6.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)B$.encode($.limitSharing,Q.uint32(106).fork()).join();if($.limitSharingV2!==void 0)B$.encode($.limitSharingV2,Q.uint32(114).fork()).join();if($.threadId!==void 0&&$.threadId.length!==0)for(let Z of $.threadId)U5.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);if($.accountEncryptionAttestation!==void 0)f6.encode($.accountEncryptionAttestation,Q.uint32(146).fork()).join();if($.associatedPrimaryIdentityKey!==void 0)Q.uint32(154).bytes($.associatedPrimaryIdentityKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??TL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.deviceListMetadata=k8.decode(J,J.uint32(),q.deviceListMetadata);continue}case 2:{if(K!==16)break;q.deviceListMetadataVersion=J.int32();continue}case 3:{if(K!==26)break;q.messageSecret=J.bytes();continue}case 4:{if(K!==34)break;q.paddingBytes=J.bytes();continue}case 5:{if(K!==40)break;q.messageAddOnDurationInSecs=J.uint32();continue}case 6:{if(K!==50)break;q.botMessageSecret=J.bytes();continue}case 7:{if(K!==58)break;q.botMetadata=BJ.decode(J,J.uint32(),q.botMetadata);continue}case 8:{if(K!==64)break;q.reportingTokenVersion=J.int32();continue}case 9:{if(K!==72)break;q.messageAddOnExpiryType=J.int32();continue}case 10:{if(K!==82)break;q.messageAssociation=L6.decode(J,J.uint32(),q.messageAssociation);continue}case 11:{if(K!==88)break;q.capiCreatedGroup=J.bool();continue}case 12:{if(K!==98)break;q.supportPayload=J.string();continue}case 13:{if(K!==106)break;q.limitSharing=B$.decode(J,J.uint32(),q.limitSharing);continue}case 14:{if(K!==114)break;q.limitSharingV2=B$.decode(J,J.uint32(),q.limitSharingV2);continue}case 15:{if(K!==122)break;if(q.threadId===void 0)q.threadId=[];let V=U5.decode(J,J.uint32());if(V!==void 0)q.threadId.push(V);continue}case 16:{if(K!==128)break;q.weblinkRenderConfig=J.int32();continue}case 17:{if(K!==138)break;q.teeBotMetadata=J.bytes();continue}case 18:{if(K!==146)break;q.accountEncryptionAttestation=f6.decode(J,J.uint32(),q.accountEncryptionAttestation);continue}case 19:{if(K!==154)break;q.associatedPrimaryIdentityKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _Q.fromPartial($??{})},fromPartial($){let Q=TL();return Q.deviceListMetadata=$.deviceListMetadata!==void 0&&$.deviceListMetadata!==null?k8.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?BJ.fromPartial($.botMetadata):void 0,Q.reportingTokenVersion=$.reportingTokenVersion??void 0,Q.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,Q.messageAssociation=$.messageAssociation!==void 0&&$.messageAssociation!==null?L6.fromPartial($.messageAssociation):void 0,Q.capiCreatedGroup=$.capiCreatedGroup??void 0,Q.supportPayload=$.supportPayload??void 0,Q.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?B$.fromPartial($.limitSharing):void 0,Q.limitSharingV2=$.limitSharingV2!==void 0&&$.limitSharingV2!==null?B$.fromPartial($.limitSharingV2):void 0,Q.threadId=$.threadId?.map((Z)=>U5.fromPartial(Z))||void 0,Q.weblinkRenderConfig=$.weblinkRenderConfig??void 0,Q.teeBotMetadata=$.teeBotMetadata??void 0,Q.accountEncryptionAttestation=$.accountEncryptionAttestation!==void 0&&$.accountEncryptionAttestation!==null?f6.fromPartial($.accountEncryptionAttestation):void 0,Q.associatedPrimaryIdentityKey=$.associatedPrimaryIdentityKey??void 0,Q}};function yL(){return{}}var B={encode($,Q=new H){if($.remoteJid!==void 0)Q.uint32(10).string($.remoteJid);if($.fromMe!==void 0)Q.uint32(16).bool($.fromMe);if($.id!==void 0)Q.uint32(26).string($.id);if($.participant!==void 0)Q.uint32(34).string($.participant);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.remoteJid=J.string();continue}case 2:{if(K!==16)break;q.fromMe=J.bool();continue}case 3:{if(K!==26)break;q.id=J.string();continue}case 4:{if(K!==34)break;q.participant=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return B.fromPartial($??{})},fromPartial($){let Q=yL();return Q.remoteJid=$.remoteJid??void 0,Q.fromMe=$.fromMe??void 0,Q.id=$.id??void 0,Q.participant=$.participant??void 0,Q}};function vL(){return{}}var sA={encode($,Q=new H){if($.version!==void 0)Q.uint32(13).sfixed32($.version);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);if($.encPayload!==void 0)Q.uint32(26).bytes($.encPayload);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==13)break;q.version=J.sfixed32();continue}case 2:{if(K!==18)break;q.encIv=J.bytes();continue}case 3:{if(K!==26)break;q.encPayload=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return sA.fromPartial($??{})},fromPartial($){let Q=vL();return Q.version=$.version??void 0,Q.encIv=$.encIv??void 0,Q.encPayload=$.encPayload??void 0,Q}};function fL(){return{}}var a={encode($,Q=new H){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)zQ.encode(Z,Q.uint32(26).fork()).join();if($.mentions!==void 0&&$.mentions.length!==0)for(let Z of $.mentions)NQ.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.text=J.string();continue}case 2:{if(K!==18)break;if(q.mentionedJid===void 0)q.mentionedJid=[];let V=J.string();if(V!==void 0)q.mentionedJid.push(V);continue}case 3:{if(K!==26)break;if(q.commands===void 0)q.commands=[];let V=zQ.decode(J,J.uint32());if(V!==void 0)q.commands.push(V);continue}case 4:{if(K!==34)break;if(q.mentions===void 0)q.mentions=[];let V=NQ.decode(J,J.uint32());if(V!==void 0)q.mentions.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return a.fromPartial($??{})},fromPartial($){let Q=fL();return Q.text=$.text??void 0,Q.mentionedJid=$.mentionedJid?.map((Z)=>Z)||void 0,Q.commands=$.commands?.map((Z)=>zQ.fromPartial(Z))||void 0,Q.mentions=$.mentions?.map((Z)=>NQ.fromPartial(Z))||void 0,Q}};function _L(){return{}}var b={encode($,Q=new H){if($.epochHead!==void 0)Q.uint32(10).bytes($.epochHead);if($.deviceRosterHash!==void 0)Q.uint32(18).bytes($.deviceRosterHash);if($.sequenceNumber!==void 0)Q.uint32(24).uint64($.sequenceNumber);if($.sigPk!==void 0)Q.uint32(34).bytes($.sigPk);if($.encPk!==void 0)Q.uint32(42).bytes($.encPk);if($.authPk!==void 0)Q.uint32(50).bytes($.authPk);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_L();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.epochHead=J.bytes();continue}case 2:{if(K!==18)break;q.deviceRosterHash=J.bytes();continue}case 3:{if(K!==24)break;q.sequenceNumber=J.uint64Value();continue}case 4:{if(K!==34)break;q.sigPk=J.bytes();continue}case 5:{if(K!==42)break;q.encPk=J.bytes();continue}case 6:{if(K!==50)break;q.authPk=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return b.fromPartial($??{})},fromPartial($){let Q=_L();return Q.epochHead=$.epochHead??void 0,Q.deviceRosterHash=$.deviceRosterHash??void 0,Q.sequenceNumber=$.sequenceNumber??void 0,Q.sigPk=$.sigPk??void 0,Q.encPk=$.encPk??void 0,Q.authPk=$.authPk??void 0,Q}};function hL(){return{}}var i={encode($,Q=new H){if($.preferredMessageEncryptionVersion!==void 0)Q.uint32(8).int32($.preferredMessageEncryptionVersion);if($.preferredMekEncryptionVersion!==void 0)Q.uint32(16).int32($.preferredMekEncryptionVersion);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.preferredMessageEncryptionVersion=J.int32();continue}case 2:{if(K!==16)break;q.preferredMekEncryptionVersion=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return i.fromPartial($??{})},fromPartial($){let Q=hL();return Q.preferredMessageEncryptionVersion=$.preferredMessageEncryptionVersion??void 0,Q.preferredMekEncryptionVersion=$.preferredMekEncryptionVersion??void 0,Q}};function lL(){return{}}var eA={encode($,Q=new H){if($.encryptAndSignMessage!==void 0)x6.encode($.encryptAndSignMessage,Q.uint32(10).fork()).join();if($.decryptAndVerifyMessage!==void 0)P6.encode($.decryptAndVerifyMessage,Q.uint32(18).fork()).join();if($.generateMek!==void 0)_8.encode($.generateMek,Q.uint32(26).fork()).join();if($.generateMekRosterHash!==void 0)h8.encode($.generateMekRosterHash,Q.uint32(34).fork()).join();if($.encryptMekForDistribution!==void 0)R8.encode($.encryptMekForDistribution,Q.uint32(42).fork()).join();if($.decryptMekForDistribution!==void 0)aK.encode($.decryptMekForDistribution,Q.uint32(50).fork()).join();if($.encryptMeksForDistributionFromTransportSender!==void 0)E8.encode($.encryptMeksForDistributionFromTransportSender,Q.uint32(58).fork()).join();if($.decryptMekForDistributionFromTransportSender!==void 0)gK.encode($.decryptMekForDistributionFromTransportSender,Q.uint32(66).fork()).join();if($.wrapTransportSigningPublicKey!==void 0)N5.encode($.wrapTransportSigningPublicKey,Q.uint32(74).fork()).join();if($.wrapTransportSigningSecretKey!==void 0)O5.encode($.wrapTransportSigningSecretKey,Q.uint32(82).fork()).join();if($.deriveMailboxSigningKeypair!==void 0)X8.encode($.deriveMailboxSigningKeypair,Q.uint32(90).fork()).join();if($.deriveMailboxEncryptionKeypair!==void 0)Z8.encode($.deriveMailboxEncryptionKeypair,Q.uint32(98).fork()).join();if($.deriveMailboxAuthKeypair!==void 0)q8.encode($.deriveMailboxAuthKeypair,Q.uint32(106).fork()).join();if($.deriveAttachmentAccessTokenSecret!==void 0)J8.encode($.deriveAttachmentAccessTokenSecret,Q.uint32(114).fork()).join();if($.deriveAttachmentPrimaryKeySecret!==void 0)K8.encode($.deriveAttachmentPrimaryKeySecret,Q.uint32(122).fork()).join();if($.minosOpenInitialEpoch!==void 0)N6.encode($.minosOpenInitialEpoch,Q.uint32(130).fork()).join();if($.minosOpenEpoch!==void 0)B6.encode($.minosOpenEpoch,Q.uint32(138).fork()).join();if($.minosValidateEpoch!==void 0)A6.encode($.minosValidateEpoch,Q.uint32(146).fork()).join();if($.minosVerifySingleEpoch!==void 0)E6.encode($.minosVerifySingleEpoch,Q.uint32(154).fork()).join();if($.minosThreadIdFromOneToOneThread!==void 0)R6.encode($.minosThreadIdFromOneToOneThread,Q.uint32(162).fork()).join();if($.minosThreadIdFromActThreadId!==void 0)O6.encode($.minosThreadIdFromActThreadId,Q.uint32(170).fork()).join();if($.mandrakeOpenEpoch!==void 0)Rq.encode($.mandrakeOpenEpoch,Q.uint32(178).fork()).join();if($.mandrakeEncryptMek!==void 0)Lq.encode($.mandrakeEncryptMek,Q.uint32(186).fork()).join();if($.mandrakeDecryptMek!==void 0)Gq.encode($.mandrakeDecryptMek,Q.uint32(194).fork()).join();if($.mandrakeOpenInitialEpoch!==void 0)Aq.encode($.mandrakeOpenInitialEpoch,Q.uint32(202).fork()).join();if($.mandrakeValidateNewMmkFromMailbox!==void 0)Mq.encode($.mandrakeValidateNewMmkFromMailbox,Q.uint32(218).fork()).join();if($.mandrakeValidateNewMmkFromDetachedDevice!==void 0)Eq.encode($.mandrakeValidateNewMmkFromDetachedDevice,Q.uint32(226).fork()).join();if($.deriveMessagingMailboxKeypairs!==void 0)H8.encode($.deriveMessagingMailboxKeypairs,Q.uint32(234).fork()).join();if($.decryptSelfMmkDistribution!==void 0)$8.encode($.decryptSelfMmkDistribution,Q.uint32(242).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptAndSignMessage=x6.decode(J,J.uint32(),q.encryptAndSignMessage);continue}case 2:{if(K!==18)break;q.decryptAndVerifyMessage=P6.decode(J,J.uint32(),q.decryptAndVerifyMessage);continue}case 3:{if(K!==26)break;q.generateMek=_8.decode(J,J.uint32(),q.generateMek);continue}case 4:{if(K!==34)break;q.generateMekRosterHash=h8.decode(J,J.uint32(),q.generateMekRosterHash);continue}case 5:{if(K!==42)break;q.encryptMekForDistribution=R8.decode(J,J.uint32(),q.encryptMekForDistribution);continue}case 6:{if(K!==50)break;q.decryptMekForDistribution=aK.decode(J,J.uint32(),q.decryptMekForDistribution);continue}case 7:{if(K!==58)break;q.encryptMeksForDistributionFromTransportSender=E8.decode(J,J.uint32(),q.encryptMeksForDistributionFromTransportSender);continue}case 8:{if(K!==66)break;q.decryptMekForDistributionFromTransportSender=gK.decode(J,J.uint32(),q.decryptMekForDistributionFromTransportSender);continue}case 9:{if(K!==74)break;q.wrapTransportSigningPublicKey=N5.decode(J,J.uint32(),q.wrapTransportSigningPublicKey);continue}case 10:{if(K!==82)break;q.wrapTransportSigningSecretKey=O5.decode(J,J.uint32(),q.wrapTransportSigningSecretKey);continue}case 11:{if(K!==90)break;q.deriveMailboxSigningKeypair=X8.decode(J,J.uint32(),q.deriveMailboxSigningKeypair);continue}case 12:{if(K!==98)break;q.deriveMailboxEncryptionKeypair=Z8.decode(J,J.uint32(),q.deriveMailboxEncryptionKeypair);continue}case 13:{if(K!==106)break;q.deriveMailboxAuthKeypair=q8.decode(J,J.uint32(),q.deriveMailboxAuthKeypair);continue}case 14:{if(K!==114)break;q.deriveAttachmentAccessTokenSecret=J8.decode(J,J.uint32(),q.deriveAttachmentAccessTokenSecret);continue}case 15:{if(K!==122)break;q.deriveAttachmentPrimaryKeySecret=K8.decode(J,J.uint32(),q.deriveAttachmentPrimaryKeySecret);continue}case 16:{if(K!==130)break;q.minosOpenInitialEpoch=N6.decode(J,J.uint32(),q.minosOpenInitialEpoch);continue}case 17:{if(K!==138)break;q.minosOpenEpoch=B6.decode(J,J.uint32(),q.minosOpenEpoch);continue}case 18:{if(K!==146)break;q.minosValidateEpoch=A6.decode(J,J.uint32(),q.minosValidateEpoch);continue}case 19:{if(K!==154)break;q.minosVerifySingleEpoch=E6.decode(J,J.uint32(),q.minosVerifySingleEpoch);continue}case 20:{if(K!==162)break;q.minosThreadIdFromOneToOneThread=R6.decode(J,J.uint32(),q.minosThreadIdFromOneToOneThread);continue}case 21:{if(K!==170)break;q.minosThreadIdFromActThreadId=O6.decode(J,J.uint32(),q.minosThreadIdFromActThreadId);continue}case 22:{if(K!==178)break;q.mandrakeOpenEpoch=Rq.decode(J,J.uint32(),q.mandrakeOpenEpoch);continue}case 23:{if(K!==186)break;q.mandrakeEncryptMek=Lq.decode(J,J.uint32(),q.mandrakeEncryptMek);continue}case 24:{if(K!==194)break;q.mandrakeDecryptMek=Gq.decode(J,J.uint32(),q.mandrakeDecryptMek);continue}case 25:{if(K!==202)break;q.mandrakeOpenInitialEpoch=Aq.decode(J,J.uint32(),q.mandrakeOpenInitialEpoch);continue}case 27:{if(K!==218)break;q.mandrakeValidateNewMmkFromMailbox=Mq.decode(J,J.uint32(),q.mandrakeValidateNewMmkFromMailbox);continue}case 28:{if(K!==226)break;q.mandrakeValidateNewMmkFromDetachedDevice=Eq.decode(J,J.uint32(),q.mandrakeValidateNewMmkFromDetachedDevice);continue}case 29:{if(K!==234)break;q.deriveMessagingMailboxKeypairs=H8.decode(J,J.uint32(),q.deriveMessagingMailboxKeypairs);continue}case 30:{if(K!==242)break;q.decryptSelfMmkDistribution=$8.decode(J,J.uint32(),q.decryptSelfMmkDistribution);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return eA.fromPartial($??{})},fromPartial($){let Q=lL();return Q.encryptAndSignMessage=$.encryptAndSignMessage!==void 0&&$.encryptAndSignMessage!==null?x6.fromPartial($.encryptAndSignMessage):void 0,Q.decryptAndVerifyMessage=$.decryptAndVerifyMessage!==void 0&&$.decryptAndVerifyMessage!==null?P6.fromPartial($.decryptAndVerifyMessage):void 0,Q.generateMek=$.generateMek!==void 0&&$.generateMek!==null?_8.fromPartial($.generateMek):void 0,Q.generateMekRosterHash=$.generateMekRosterHash!==void 0&&$.generateMekRosterHash!==null?h8.fromPartial($.generateMekRosterHash):void 0,Q.encryptMekForDistribution=$.encryptMekForDistribution!==void 0&&$.encryptMekForDistribution!==null?R8.fromPartial($.encryptMekForDistribution):void 0,Q.decryptMekForDistribution=$.decryptMekForDistribution!==void 0&&$.decryptMekForDistribution!==null?aK.fromPartial($.decryptMekForDistribution):void 0,Q.encryptMeksForDistributionFromTransportSender=$.encryptMeksForDistributionFromTransportSender!==void 0&&$.encryptMeksForDistributionFromTransportSender!==null?E8.fromPartial($.encryptMeksForDistributionFromTransportSender):void 0,Q.decryptMekForDistributionFromTransportSender=$.decryptMekForDistributionFromTransportSender!==void 0&&$.decryptMekForDistributionFromTransportSender!==null?gK.fromPartial($.decryptMekForDistributionFromTransportSender):void 0,Q.wrapTransportSigningPublicKey=$.wrapTransportSigningPublicKey!==void 0&&$.wrapTransportSigningPublicKey!==null?N5.fromPartial($.wrapTransportSigningPublicKey):void 0,Q.wrapTransportSigningSecretKey=$.wrapTransportSigningSecretKey!==void 0&&$.wrapTransportSigningSecretKey!==null?O5.fromPartial($.wrapTransportSigningSecretKey):void 0,Q.deriveMailboxSigningKeypair=$.deriveMailboxSigningKeypair!==void 0&&$.deriveMailboxSigningKeypair!==null?X8.fromPartial($.deriveMailboxSigningKeypair):void 0,Q.deriveMailboxEncryptionKeypair=$.deriveMailboxEncryptionKeypair!==void 0&&$.deriveMailboxEncryptionKeypair!==null?Z8.fromPartial($.deriveMailboxEncryptionKeypair):void 0,Q.deriveMailboxAuthKeypair=$.deriveMailboxAuthKeypair!==void 0&&$.deriveMailboxAuthKeypair!==null?q8.fromPartial($.deriveMailboxAuthKeypair):void 0,Q.deriveAttachmentAccessTokenSecret=$.deriveAttachmentAccessTokenSecret!==void 0&&$.deriveAttachmentAccessTokenSecret!==null?J8.fromPartial($.deriveAttachmentAccessTokenSecret):void 0,Q.deriveAttachmentPrimaryKeySecret=$.deriveAttachmentPrimaryKeySecret!==void 0&&$.deriveAttachmentPrimaryKeySecret!==null?K8.fromPartial($.deriveAttachmentPrimaryKeySecret):void 0,Q.minosOpenInitialEpoch=$.minosOpenInitialEpoch!==void 0&&$.minosOpenInitialEpoch!==null?N6.fromPartial($.minosOpenInitialEpoch):void 0,Q.minosOpenEpoch=$.minosOpenEpoch!==void 0&&$.minosOpenEpoch!==null?B6.fromPartial($.minosOpenEpoch):void 0,Q.minosValidateEpoch=$.minosValidateEpoch!==void 0&&$.minosValidateEpoch!==null?A6.fromPartial($.minosValidateEpoch):void 0,Q.minosVerifySingleEpoch=$.minosVerifySingleEpoch!==void 0&&$.minosVerifySingleEpoch!==null?E6.fromPartial($.minosVerifySingleEpoch):void 0,Q.minosThreadIdFromOneToOneThread=$.minosThreadIdFromOneToOneThread!==void 0&&$.minosThreadIdFromOneToOneThread!==null?R6.fromPartial($.minosThreadIdFromOneToOneThread):void 0,Q.minosThreadIdFromActThreadId=$.minosThreadIdFromActThreadId!==void 0&&$.minosThreadIdFromActThreadId!==null?O6.fromPartial($.minosThreadIdFromActThreadId):void 0,Q.mandrakeOpenEpoch=$.mandrakeOpenEpoch!==void 0&&$.mandrakeOpenEpoch!==null?Rq.fromPartial($.mandrakeOpenEpoch):void 0,Q.mandrakeEncryptMek=$.mandrakeEncryptMek!==void 0&&$.mandrakeEncryptMek!==null?Lq.fromPartial($.mandrakeEncryptMek):void 0,Q.mandrakeDecryptMek=$.mandrakeDecryptMek!==void 0&&$.mandrakeDecryptMek!==null?Gq.fromPartial($.mandrakeDecryptMek):void 0,Q.mandrakeOpenInitialEpoch=$.mandrakeOpenInitialEpoch!==void 0&&$.mandrakeOpenInitialEpoch!==null?Aq.fromPartial($.mandrakeOpenInitialEpoch):void 0,Q.mandrakeValidateNewMmkFromMailbox=$.mandrakeValidateNewMmkFromMailbox!==void 0&&$.mandrakeValidateNewMmkFromMailbox!==null?Mq.fromPartial($.mandrakeValidateNewMmkFromMailbox):void 0,Q.mandrakeValidateNewMmkFromDetachedDevice=$.mandrakeValidateNewMmkFromDetachedDevice!==void 0&&$.mandrakeValidateNewMmkFromDetachedDevice!==null?Eq.fromPartial($.mandrakeValidateNewMmkFromDetachedDevice):void 0,Q.deriveMessagingMailboxKeypairs=$.deriveMessagingMailboxKeypairs!==void 0&&$.deriveMessagingMailboxKeypairs!==null?H8.fromPartial($.deriveMessagingMailboxKeypairs):void 0,Q.decryptSelfMmkDistribution=$.decryptSelfMmkDistribution!==void 0&&$.decryptSelfMmkDistribution!==null?$8.fromPartial($.decryptSelfMmkDistribution):void 0,Q}};function pL(){return{}}var P6={encode($,Q=new H){if($.transportSigningPk!==void 0)Q.uint32(10).bytes($.transportSigningPk);if($.mek!==void 0)Q.uint32(18).bytes($.mek);if($.encryptedMessageCiphertext!==void 0)Q.uint32(26).bytes($.encryptedMessageCiphertext);if($.encryptedMessageSignature!==void 0)Q.uint32(34).bytes($.encryptedMessageSignature);if($.metadata!==void 0)hQ.encode($.metadata,Q.uint32(42).fork()).join();if($.messageEncryptionVersion!==void 0)Q.uint32(48).int32($.messageEncryptionVersion);if($.conf!==void 0)i.encode($.conf,Q.uint32(58).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.transportSigningPk=J.bytes();continue}case 2:{if(K!==18)break;q.mek=J.bytes();continue}case 3:{if(K!==26)break;q.encryptedMessageCiphertext=J.bytes();continue}case 4:{if(K!==34)break;q.encryptedMessageSignature=J.bytes();continue}case 5:{if(K!==42)break;q.metadata=hQ.decode(J,J.uint32(),q.metadata);continue}case 6:{if(K!==48)break;q.messageEncryptionVersion=J.int32();continue}case 7:{if(K!==58)break;q.conf=i.decode(J,J.uint32(),q.conf);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return P6.fromPartial($??{})},fromPartial($){let Q=pL();return Q.transportSigningPk=$.transportSigningPk??void 0,Q.mek=$.mek??void 0,Q.encryptedMessageCiphertext=$.encryptedMessageCiphertext??void 0,Q.encryptedMessageSignature=$.encryptedMessageSignature??void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?hQ.fromPartial($.metadata):void 0,Q.messageEncryptionVersion=$.messageEncryptionVersion??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function uL(){return{}}var $E={encode($,Q=new H){if($.success!==void 0)k6.encode($.success,Q.uint32(10).fork()).join();if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.success=k6.decode(J,J.uint32(),q.success);continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $E.fromPartial($??{})},fromPartial($){let Q=uL();return Q.success=$.success!==void 0&&$.success!==null?k6.fromPartial($.success):void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function wL(){return{}}var k6={encode($,Q=new H){if($.plaintext!==void 0)Q.uint32(10).bytes($.plaintext);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.plaintext=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return k6.fromPartial($??{})},fromPartial($){let Q=wL();return Q.plaintext=$.plaintext??void 0,Q}};function jL(){return{}}var x6={encode($,Q=new H){if($.transportSigningSk!==void 0)Q.uint32(10).bytes($.transportSigningSk);if($.mek!==void 0)Q.uint32(18).bytes($.mek);if($.plaintext!==void 0)Q.uint32(26).bytes($.plaintext);if($.metadata!==void 0)hQ.encode($.metadata,Q.uint32(34).fork()).join();if($.transportSigningPk!==void 0)Q.uint32(42).bytes($.transportSigningPk);if($.conf!==void 0)i.encode($.conf,Q.uint32(50).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.transportSigningSk=J.bytes();continue}case 2:{if(K!==18)break;q.mek=J.bytes();continue}case 3:{if(K!==26)break;q.plaintext=J.bytes();continue}case 4:{if(K!==34)break;q.metadata=hQ.decode(J,J.uint32(),q.metadata);continue}case 5:{if(K!==42)break;q.transportSigningPk=J.bytes();continue}case 6:{if(K!==50)break;q.conf=i.decode(J,J.uint32(),q.conf);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return x6.fromPartial($??{})},fromPartial($){let Q=jL();return Q.transportSigningSk=$.transportSigningSk??void 0,Q.mek=$.mek??void 0,Q.plaintext=$.plaintext??void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?hQ.fromPartial($.metadata):void 0,Q.transportSigningPk=$.transportSigningPk??void 0,Q.conf=$.conf!==void 0&&$.conf!==null?i.fromPartial($.conf):void 0,Q}};function cL(){return{}}var QE={encode($,Q=new H){if($.ciphertext!==void 0)Q.uint32(10).bytes($.ciphertext);if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.version!==void 0)Q.uint32(24).int32($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.ciphertext=J.bytes();continue}case 2:{if(K!==18)break;q.signature=J.bytes();continue}case 3:{if(K!==24)break;q.version=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return QE.fromPartial($??{})},fromPartial($){let Q=cL();return Q.ciphertext=$.ciphertext??void 0,Q.signature=$.signature??void 0,Q.version=$.version??void 0,Q}};function dL(){return{}}var hQ={encode($,Q=new H){if($.mekId!==void 0)Q.uint32(10).bytes($.mekId);if($.timestamp!==void 0)Q.uint32(16).uint64($.timestamp);if($.messageId!==void 0)Q.uint32(26).string($.messageId);if($.threadId!==void 0)Q.uint32(34).bytes($.threadId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mekId=J.bytes();continue}case 2:{if(K!==16)break;q.timestamp=J.uint64Value();continue}case 3:{if(K!==26)break;q.messageId=J.string();continue}case 4:{if(K!==34)break;q.threadId=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return hQ.fromPartial($??{})},fromPartial($){let Q=dL();return Q.mekId=$.mekId??void 0,Q.timestamp=$.timestamp??void 0,Q.messageId=$.messageId??void 0,Q.threadId=$.threadId??void 0,Q}};function nL(){return{}}var B6={encode($,Q=new H){if($.userFbid!==void 0)Q.uint32(10).string($.userFbid);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);if($.exportRootKey!==void 0)Q.uint32(26).bytes($.exportRootKey);if($.previousExportRootKey!==void 0)Q.uint32(34).bytes($.previousExportRootKey);if($.previousEpochNumber!==void 0)Q.uint32(40).uint64($.previousEpochNumber);if($.previousEpochHead!==void 0)Q.uint32(50).bytes($.previousEpochHead);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.userFbid=J.string();continue}case 2:{if(K!==16)break;q.epochNumber=J.uint64Value();continue}case 3:{if(K!==26)break;q.exportRootKey=J.bytes();continue}case 4:{if(K!==34)break;q.previousExportRootKey=J.bytes();continue}case 5:{if(K!==40)break;q.previousEpochNumber=J.uint64Value();continue}case 6:{if(K!==50)break;q.previousEpochHead=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return B6.fromPartial($??{})},fromPartial($){let Q=nL();return Q.userFbid=$.userFbid??void 0,Q.epochNumber=$.epochNumber??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q.previousExportRootKey=$.previousExportRootKey??void 0,Q.previousEpochNumber=$.previousEpochNumber??void 0,Q.previousEpochHead=$.previousEpochHead??void 0,Q}};function bL(){return{}}var JE={encode($,Q=new H){if($.minosSignedEpoch!==void 0)v$.encode($.minosSignedEpoch,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.minosSignedEpoch=v$.decode(J,J.uint32(),q.minosSignedEpoch);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return JE.fromPartial($??{})},fromPartial($){let Q=bL();return Q.minosSignedEpoch=$.minosSignedEpoch!==void 0&&$.minosSignedEpoch!==null?v$.fromPartial($.minosSignedEpoch):void 0,Q}};function oL(){return{}}var N6={encode($,Q=new H){if($.userFbid!==void 0)Q.uint32(10).string($.userFbid);if($.epochNumber!==void 0)Q.uint32(16).uint64($.epochNumber);if($.exportRootKey!==void 0)Q.uint32(26).bytes($.exportRootKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.userFbid=J.string();continue}case 2:{if(K!==16)break;q.epochNumber=J.uint64Value();continue}case 3:{if(K!==26)break;q.exportRootKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return N6.fromPartial($??{})},fromPartial($){let Q=oL();return Q.userFbid=$.userFbid??void 0,Q.epochNumber=$.epochNumber??void 0,Q.exportRootKey=$.exportRootKey??void 0,Q}};function iL(){return{}}var KE={encode($,Q=new H){if($.minosSignedEpoch!==void 0)v$.encode($.minosSignedEpoch,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.minosSignedEpoch=v$.decode(J,J.uint32(),q.minosSignedEpoch);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return KE.fromPartial($??{})},fromPartial($){let Q=iL();return Q.minosSignedEpoch=$.minosSignedEpoch!==void 0&&$.minosSignedEpoch!==null?v$.fromPartial($.minosSignedEpoch):void 0,Q}};function mL(){return{}}var v$={encode($,Q=new H){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();if($.signatures!==void 0)xQ.encode($.signatures,Q.uint32(18).fork()).join();if($.epochHead!==void 0)Q.uint32(26).bytes($.epochHead);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.epochPublicData=r.decode(J,J.uint32(),q.epochPublicData);continue}case 2:{if(K!==18)break;q.signatures=xQ.decode(J,J.uint32(),q.signatures);continue}case 3:{if(K!==26)break;q.epochHead=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return v$.fromPartial($??{})},fromPartial($){let Q=mL();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q.signatures=$.signatures!==void 0&&$.signatures!==null?xQ.fromPartial($.signatures):void 0,Q.epochHead=$.epochHead??void 0,Q}};function gL(){return{}}var O6={encode($,Q=new H){if($.actThreadId!==void 0)Q.uint32(10).string($.actThreadId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.actThreadId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return O6.fromPartial($??{})},fromPartial($){let Q=gL();return Q.actThreadId=$.actThreadId??void 0,Q}};function rL(){return{}}var qE={encode($,Q=new H){if($.threadId!==void 0)Q.uint32(10).bytes($.threadId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.threadId=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return qE.fromPartial($??{})},fromPartial($){let Q=rL();return Q.threadId=$.threadId??void 0,Q}};function tL(){return{}}var R6={encode($,Q=new H){if($.actThreadId!==void 0)Q.uint32(10).string($.actThreadId);if($.selfFbid!==void 0)Q.uint32(18).string($.selfFbid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.actThreadId=J.string();continue}case 2:{if(K!==18)break;q.selfFbid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return R6.fromPartial($??{})},fromPartial($){let Q=tL();return Q.actThreadId=$.actThreadId??void 0,Q.selfFbid=$.selfFbid??void 0,Q}};function aL(){return{}}var ZE={encode($,Q=new H){if($.threadId!==void 0)Q.uint32(10).bytes($.threadId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??aL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.threadId=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return ZE.fromPartial($??{})},fromPartial($){let Q=aL();return Q.threadId=$.threadId??void 0,Q}};function sL(){return{}}var A6={encode($,Q=new H){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();if($.previousEpochPublicData!==void 0)r.encode($.previousEpochPublicData,Q.uint32(18).fork()).join();if($.signatures!==void 0)xQ.encode($.signatures,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.epochPublicData=r.decode(J,J.uint32(),q.epochPublicData);continue}case 2:{if(K!==18)break;q.previousEpochPublicData=r.decode(J,J.uint32(),q.previousEpochPublicData);continue}case 3:{if(K!==26)break;q.signatures=xQ.decode(J,J.uint32(),q.signatures);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return A6.fromPartial($??{})},fromPartial($){let Q=sL();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q.previousEpochPublicData=$.previousEpochPublicData!==void 0&&$.previousEpochPublicData!==null?r.fromPartial($.previousEpochPublicData):void 0,Q.signatures=$.signatures!==void 0&&$.signatures!==null?xQ.fromPartial($.signatures):void 0,Q}};function eL(){return{}}var XE={encode($,Q=new H){if($.valid!==void 0)Q.uint32(8).bool($.valid);if($.errorMessage!==void 0)Q.uint32(18).string($.errorMessage);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??eL();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.valid=J.bool();continue}case 2:{if(K!==18)break;q.errorMessage=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return XE.fromPartial($??{})},fromPartial($){let Q=eL();return Q.valid=$.valid??void 0,Q.errorMessage=$.errorMessage??void 0,Q}};function $P(){return{}}var E6={encode($,Q=new H){if($.epochPublicData!==void 0)r.encode($.epochPublicData,Q.uint32(10).fork()).join();if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$P();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.epochPublicData=r.decode(J,J.uint32(),q.epochPublicData);continue}case 2:{if(K!==18)break;q.signature=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return E6.fromPartial($??{})},fromPartial($){let Q=$P();return Q.epochPublicData=$.epochPublicData!==void 0&&$.epochPublicData!==null?r.fromPartial($.epochPublicData):void 0,Q.signature=$.signature??void 0,Q}};function QP(){return{}}var YE={encode($,Q=new H){if($.valid!==void 0)Q.uint32(8).bool($.valid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??QP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.valid=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return YE.fromPartial($??{})},fromPartial($){let Q=QP();return Q.valid=$.valid??void 0,Q}};function JP(){return{}}var M6={encode($,Q=new H){if($.toDetachedDevices!==void 0&&$.toDetachedDevices.length!==0)for(let Z of $.toDetachedDevices)W6.encode(Z,Q.uint32(10).fork()).join();if($.toMailbox!==void 0)S6.encode($.toMailbox,Q.uint32(18).fork()).join();if($.version!==void 0)Q.uint32(24).uint64($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??JP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.toDetachedDevices===void 0)q.toDetachedDevices=[];let V=W6.decode(J,J.uint32());if(V!==void 0)q.toDetachedDevices.push(V);continue}case 2:{if(K!==18)break;q.toMailbox=S6.decode(J,J.uint32(),q.toMailbox);continue}case 3:{if(K!==24)break;q.version=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return M6.fromPartial($??{})},fromPartial($){let Q=JP();return Q.toDetachedDevices=$.toDetachedDevices?.map((Z)=>W6.fromPartial(Z))||void 0,Q.toMailbox=$.toMailbox!==void 0&&$.toMailbox!==null?S6.fromPartial($.toMailbox):void 0,Q.version=$.version??void 0,Q}};function KP(){return{}}var W6={encode($,Q=new H){if($.encryptedMmk!==void 0)Q.uint32(10).bytes($.encryptedMmk);if($.recipDeviceHash!==void 0)Q.uint32(18).bytes($.recipDeviceHash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??KP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedMmk=J.bytes();continue}case 2:{if(K!==18)break;q.recipDeviceHash=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return W6.fromPartial($??{})},fromPartial($){let Q=KP();return Q.encryptedMmk=$.encryptedMmk??void 0,Q.recipDeviceHash=$.recipDeviceHash??void 0,Q}};function qP(){return{}}var S6={encode($,Q=new H){if($.encryptedMmk!==void 0)Q.uint32(10).bytes($.encryptedMmk);if($.recipMailboxHeadHash!==void 0)Q.uint32(18).bytes($.recipMailboxHeadHash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encryptedMmk=J.bytes();continue}case 2:{if(K!==18)break;q.recipMailboxHeadHash=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return S6.fromPartial($??{})},fromPartial($){let Q=qP();return Q.encryptedMmk=$.encryptedMmk??void 0,Q.recipMailboxHeadHash=$.recipMailboxHeadHash??void 0,Q}};function ZP(){return{}}var I6={encode($,Q=new H){if($.mmk!==void 0)b.encode($.mmk,Q.uint32(10).fork()).join();if($.fromDetachedDevice!==void 0)H$.encode($.fromDetachedDevice,Q.uint32(18).fork()).join();if($.membershipProof!==void 0)S$.encode($.membershipProof,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ZP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mmk=b.decode(J,J.uint32(),q.mmk);continue}case 2:{if(K!==18)break;q.fromDetachedDevice=H$.decode(J,J.uint32(),q.fromDetachedDevice);continue}case 3:{if(K!==26)break;q.membershipProof=S$.decode(J,J.uint32(),q.membershipProof);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return I6.fromPartial($??{})},fromPartial($){let Q=ZP();return Q.mmk=$.mmk!==void 0&&$.mmk!==null?b.fromPartial($.mmk):void 0,Q.fromDetachedDevice=$.fromDetachedDevice!==void 0&&$.fromDetachedDevice!==null?H$.fromPartial($.fromDetachedDevice):void 0,Q.membershipProof=$.membershipProof!==void 0&&$.membershipProof!==null?S$.fromPartial($.membershipProof):void 0,Q}};function XP(){return{}}var $$={encode($,Q=new H){if($.value!==void 0)Q.uint32(8).int64($.value);if($.offset!==void 0)Q.uint32(16).uint32($.offset);if($.currencyCode!==void 0)Q.uint32(26).string($.currencyCode);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??XP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.value=J.int64Value();continue}case 2:{if(K!==16)break;q.offset=J.uint32();continue}case 3:{if(K!==26)break;q.currencyCode=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $$.fromPartial($??{})},fromPartial($){let Q=XP();return Q.value=$.value??void 0,Q.offset=$.offset??void 0,Q.currencyCode=$.currencyCode??void 0,Q}};function YP(){return{}}var $Q={encode($,Q=new H){if($.body!==void 0)Q.uint32(10).string($.body);if($.caption!==void 0)Q.uint32(26).string($.caption);if($.lng!==void 0)Q.uint32(41).double($.lng);if($.isLive!==void 0)Q.uint32(48).bool($.isLive);if($.lat!==void 0)Q.uint32(57).double($.lat);if($.paymentAmount1000!==void 0)Q.uint32(64).int32($.paymentAmount1000);if($.paymentNoteMsgBody!==void 0)Q.uint32(74).string($.paymentNoteMsgBody);if($.matchedText!==void 0)Q.uint32(90).string($.matchedText);if($.title!==void 0)Q.uint32(98).string($.title);if($.description!==void 0)Q.uint32(106).string($.description);if($.futureproofBuffer!==void 0)Q.uint32(114).bytes($.futureproofBuffer);if($.clientUrl!==void 0)Q.uint32(122).string($.clientUrl);if($.loc!==void 0)Q.uint32(130).string($.loc);if($.pollName!==void 0)Q.uint32(138).string($.pollName);if($.pollOptions!==void 0&&$.pollOptions.length!==0)for(let Z of $.pollOptions)lQ.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)b6.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)v6.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)T6.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??YP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.body=J.string();continue}case 3:{if(K!==26)break;q.caption=J.string();continue}case 5:{if(K!==41)break;q.lng=J.double();continue}case 6:{if(K!==48)break;q.isLive=J.bool();continue}case 7:{if(K!==57)break;q.lat=J.double();continue}case 8:{if(K!==64)break;q.paymentAmount1000=J.int32();continue}case 9:{if(K!==74)break;q.paymentNoteMsgBody=J.string();continue}case 11:{if(K!==90)break;q.matchedText=J.string();continue}case 12:{if(K!==98)break;q.title=J.string();continue}case 13:{if(K!==106)break;q.description=J.string();continue}case 14:{if(K!==114)break;q.futureproofBuffer=J.bytes();continue}case 15:{if(K!==122)break;q.clientUrl=J.string();continue}case 16:{if(K!==130)break;q.loc=J.string();continue}case 17:{if(K!==138)break;q.pollName=J.string();continue}case 18:{if(K!==146)break;if(q.pollOptions===void 0)q.pollOptions=[];let V=lQ.decode(J,J.uint32());if(V!==void 0)q.pollOptions.push(V);continue}case 20:{if(K!==160)break;q.pollSelectableOptionsCount=J.uint32();continue}case 21:{if(K!==170)break;q.messageSecret=J.bytes();continue}case 51:{if(K!==410)break;q.originalSelfAuthor=J.string();continue}case 22:{if(K!==176)break;q.senderTimestampMs=J.int64Value();continue}case 23:{if(K!==186)break;q.pollUpdateParentKey=J.string();continue}case 24:{if(K!==194)break;q.encPollVote=b6.decode(J,J.uint32(),q.encPollVote);continue}case 28:{if(K!==224)break;q.isSentCagPollCreation=J.bool();continue}case 42:{if(K!==336)break;q.pollContentType=J.int32();continue}case 46:{if(K!==368)break;q.pollType=J.int32();continue}case 47:{if(K!==376)break;q.correctOptionIndex=J.int32();continue}case 41:{if(K!==330)break;q.pollVotesSnapshot=v6.decode(J,J.uint32(),q.pollVotesSnapshot);continue}case 25:{if(K!==202)break;q.encReactionTargetMessageKey=J.string();continue}case 26:{if(K!==210)break;q.encReactionEncPayload=J.bytes();continue}case 27:{if(K!==218)break;q.encReactionEncIv=J.bytes();continue}case 29:{if(K!==234)break;q.botMessageSecret=J.bytes();continue}case 30:{if(K!==242)break;q.targetMessageKey=J.string();continue}case 31:{if(K!==250)break;q.encPayload=J.bytes();continue}case 32:{if(K!==258)break;q.encIv=J.bytes();continue}case 33:{if(K!==266)break;q.eventName=J.string();continue}case 34:{if(K!==272)break;q.isEventCanceled=J.bool();continue}case 35:{if(K!==282)break;q.eventDescription=J.string();continue}case 36:{if(K!==290)break;q.eventJoinLink=J.string();continue}case 37:{if(K!==296)break;q.eventStartTime=J.int64Value();continue}case 38:{if(K!==306)break;q.eventLocation=T6.decode(J,J.uint32(),q.eventLocation);continue}case 40:{if(K!==320)break;q.eventEndTime=J.int64Value();continue}case 44:{if(K!==352)break;q.eventIsScheduledCall=J.bool();continue}case 45:{if(K!==360)break;q.eventExtraGuestsAllowed=J.bool();continue}case 43:{if(K!==346)break;q.plainProtobufBytes=J.bytes();continue}case 48:{if(K!==386)break;q.quarantineExtractedText=J.string();continue}case 49:{if(K!==392)break;q.pollEndTime=J.int64Value();continue}case 50:{if(K!==400)break;q.pollHideVoterNames=J.bool();continue}case 52:{if(K!==416)break;q.pollAllowAddOption=J.bool();continue}case 53:{if(K!==426)break;q.sharableEventInviteId=J.string();continue}case 54:{if(K!==434)break;q.sharableEventInviteTitle=J.string();continue}case 55:{if(K!==440)break;q.sharableEventInviteStartTime=J.int64Value();continue}case 56:{if(K!==448)break;q.sharableEventInviteEndTime=J.int64Value();continue}case 57:{if(K!==458)break;q.sharableEventInviteCaption=J.string();continue}case 58:{if(K!==464)break;q.sharableEventInviteIsCanceled=J.bool();continue}case 59:{if(K!==474)break;q.sharableEventInviteJpegThumbnail=J.bytes();continue}case 60:{if(K!==482)break;q.sharableEventInviteCallLink=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $Q.fromPartial($??{})},fromPartial($){let Q=YP();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)=>lQ.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?b6.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?v6.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?T6.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 VP(){return{}}var T6={encode($,Q=new H){if($.degreesLatitude!==void 0)Q.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)Q.uint32(17).double($.degreesLongitude);if($.name!==void 0)Q.uint32(26).string($.name);if($.address!==void 0)Q.uint32(34).string($.address);if($.url!==void 0)Q.uint32(42).string($.url);if($.jpegThumbnail!==void 0)Q.uint32(50).bytes($.jpegThumbnail);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??VP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==9)break;q.degreesLatitude=J.double();continue}case 2:{if(K!==17)break;q.degreesLongitude=J.double();continue}case 3:{if(K!==26)break;q.name=J.string();continue}case 4:{if(K!==34)break;q.address=J.string();continue}case 5:{if(K!==42)break;q.url=J.string();continue}case 6:{if(K!==50)break;q.jpegThumbnail=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return T6.fromPartial($??{})},fromPartial($){let Q=VP();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 HP(){return{}}var lQ={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.hash!==void 0)Q.uint32(18).string($.hash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??HP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}case 2:{if(K!==18)break;q.hash=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return lQ.fromPartial($??{})},fromPartial($){let Q=HP();return Q.name=$.name??void 0,Q.hash=$.hash??void 0,Q}};function zP(){return{}}var y6={encode($,Q=new H){if($.option!==void 0)lQ.encode($.option,Q.uint32(10).fork()).join();if($.optionVoteCount!==void 0)Q.uint32(16).int32($.optionVoteCount);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.option=lQ.decode(J,J.uint32(),q.option);continue}case 2:{if(K!==16)break;q.optionVoteCount=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return y6.fromPartial($??{})},fromPartial($){let Q=zP();return Q.option=$.option!==void 0&&$.option!==null?lQ.fromPartial($.option):void 0,Q.optionVoteCount=$.optionVoteCount??void 0,Q}};function GP(){return{}}var v6={encode($,Q=new H){if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let Z of $.pollVotes)y6.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??GP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.pollVotes===void 0)q.pollVotes=[];let V=y6.decode(J,J.uint32());if(V!==void 0)q.pollVotes.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return v6.fromPartial($??{})},fromPartial($){let Q=GP();return Q.pollVotes=$.pollVotes?.map((Z)=>y6.fromPartial(Z))||void 0,Q}};function UP(){return{}}var VE={encode($,Q=new H){if($.currentMsg!==void 0)$Q.encode($.currentMsg,Q.uint32(10).fork()).join();if($.quotedMsg!==void 0)$Q.encode($.quotedMsg,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??UP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.currentMsg=$Q.decode(J,J.uint32(),q.currentMsg);continue}case 2:{if(K!==18)break;q.quotedMsg=$Q.decode(J,J.uint32(),q.quotedMsg);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return VE.fromPartial($??{})},fromPartial($){let Q=UP();return Q.currentMsg=$.currentMsg!==void 0&&$.currentMsg!==null?$Q.fromPartial($.currentMsg):void 0,Q.quotedMsg=$.quotedMsg!==void 0&&$.quotedMsg!==null?$Q.fromPartial($.quotedMsg):void 0,Q}};function CP(){return{}}var HE={encode($,Q=new H){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.signature!==void 0)Q.uint32(18).bytes($.signature);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??CP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.details=J.bytes();continue}case 2:{if(K!==18)break;q.signature=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return HE.fromPartial($??{})},fromPartial($){let Q=CP();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q}};function DP(){return{}}var zE={encode($,Q=new H){if($.serial!==void 0)Q.uint32(8).uint32($.serial);if($.issuer!==void 0)Q.uint32(18).string($.issuer);if($.expires!==void 0)Q.uint32(24).uint64($.expires);if($.subject!==void 0)Q.uint32(34).string($.subject);if($.key!==void 0)Q.uint32(42).bytes($.key);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??DP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.serial=J.uint32();continue}case 2:{if(K!==18)break;q.issuer=J.string();continue}case 3:{if(K!==24)break;q.expires=J.uint64Value();continue}case 4:{if(K!==34)break;q.subject=J.string();continue}case 5:{if(K!==42)break;q.key=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return zE.fromPartial($??{})},fromPartial($){let Q=DP();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 FP(){return{}}var f6={encode($,Q=new H){if($.accountType!==void 0)Q.uint32(8).int32($.accountType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??FP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.accountType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return f6.fromPartial($??{})},fromPartial($){let Q=FP();return Q.accountType=$.accountType??void 0,Q}};function LP(){return{}}var GE={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)d.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??LP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.message=d.decode(J,J.uint32(),q.message);continue}case 3:{if(K!==24)break;q.messageTimestamp=J.uint64Value();continue}case 4:{if(K!==34)break;q.participant=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return GE.fromPartial($??{})},fromPartial($){let Q=LP();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?d.fromPartial($.message):void 0,Q.messageTimestamp=$.messageTimestamp??void 0,Q.participant=$.participant??void 0,Q}};function PP(){return{}}var QQ={encode($,Q=new H){if($.messageVibrate!==void 0)Q.uint32(10).string($.messageVibrate);if($.messagePopup!==void 0)Q.uint32(18).string($.messagePopup);if($.messageLight!==void 0)Q.uint32(26).string($.messageLight);if($.lowPriorityNotifications!==void 0)Q.uint32(32).bool($.lowPriorityNotifications);if($.reactionsMuted!==void 0)Q.uint32(40).bool($.reactionsMuted);if($.callVibrate!==void 0)Q.uint32(50).string($.callVibrate);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??PP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.messageVibrate=J.string();continue}case 2:{if(K!==18)break;q.messagePopup=J.string();continue}case 3:{if(K!==26)break;q.messageLight=J.string();continue}case 4:{if(K!==32)break;q.lowPriorityNotifications=J.bool();continue}case 5:{if(K!==40)break;q.reactionsMuted=J.bool();continue}case 6:{if(K!==50)break;q.callVibrate=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return QQ.fromPartial($??{})},fromPartial($){let Q=PP();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 kP(){return{}}var _6={encode($,Q=new H){if($.orfClientState!==void 0)Q.uint32(10).bytes($.orfClientState);if($.threadId!==void 0)Q.uint32(18).string($.threadId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.orfClientState=J.bytes();continue}case 2:{if(K!==18)break;q.threadId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _6.fromPartial($??{})},fromPartial($){let Q=kP();return Q.orfClientState=$.orfClientState??void 0,Q.threadId=$.threadId??void 0,Q}};function xP(){return{}}var UE={encode($,Q=new H){if($.orfThreadId!==void 0)Q.uint32(10).bytes($.orfThreadId);if($.error!==void 0)Q.uint32(18).string($.error);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.orfThreadId=J.bytes();continue}case 2:{if(K!==18)break;q.error=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return UE.fromPartial($??{})},fromPartial($){let Q=xP();return Q.orfThreadId=$.orfThreadId??void 0,Q.error=$.error??void 0,Q}};function BP(){return{}}var CE={encode($,Q=new H){if($.companionPublicKey!==void 0)Q.uint32(10).bytes($.companionPublicKey);if($.companionIdentityKey!==void 0)Q.uint32(18).bytes($.companionIdentityKey);if($.advSecret!==void 0)Q.uint32(26).bytes($.advSecret);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??BP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.companionPublicKey=J.bytes();continue}case 2:{if(K!==18)break;q.companionIdentityKey=J.bytes();continue}case 3:{if(K!==26)break;q.advSecret=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return CE.fromPartial($??{})},fromPartial($){let Q=BP();return Q.companionPublicKey=$.companionPublicKey??void 0,Q.companionIdentityKey=$.companionIdentityKey??void 0,Q.advSecret=$.advSecret??void 0,Q}};function NP(){return{}}var h6={encode($,Q=new H){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.leaveReason!==void 0)Q.uint32(16).int32($.leaveReason);if($.leaveTs!==void 0)Q.uint32(24).uint64($.leaveTs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??NP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.userJid=J.string();continue}case 2:{if(K!==16)break;q.leaveReason=J.int32();continue}case 3:{if(K!==24)break;q.leaveTs=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return h6.fromPartial($??{})},fromPartial($){let Q=NP();return Q.userJid=$.userJid??void 0,Q.leaveReason=$.leaveReason??void 0,Q.leaveTs=$.leaveTs??void 0,Q}};function OP(){return{}}var l6={encode($,Q=new H){if($.groupJid!==void 0)Q.uint32(10).string($.groupJid);if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let Z of $.pastParticipants)h6.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??OP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.groupJid=J.string();continue}case 2:{if(K!==18)break;if(q.pastParticipants===void 0)q.pastParticipants=[];let V=h6.decode(J,J.uint32());if(V!==void 0)q.pastParticipants.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return l6.fromPartial($??{})},fromPartial($){let Q=OP();return Q.groupJid=$.groupJid??void 0,Q.pastParticipants=$.pastParticipants?.map((Z)=>h6.fromPartial(Z))||void 0,Q}};function RP(){return{}}var DE={encode($,Q=new H){if($.currentLthash!==void 0)Q.uint32(10).bytes($.currentLthash);if($.newLthash!==void 0)Q.uint32(18).bytes($.newLthash);if($.patchVersion!==void 0)Q.uint32(26).bytes($.patchVersion);if($.collectionName!==void 0)Q.uint32(34).bytes($.collectionName);if($.firstFourBytesFromAHashOfSnapshotMacKey!==void 0)Q.uint32(42).bytes($.firstFourBytesFromAHashOfSnapshotMacKey);if($.newLthashSubtract!==void 0)Q.uint32(50).bytes($.newLthashSubtract);if($.numberAdd!==void 0)Q.uint32(56).int32($.numberAdd);if($.numberRemove!==void 0)Q.uint32(64).int32($.numberRemove);if($.numberOverride!==void 0)Q.uint32(72).int32($.numberOverride);if($.senderPlatform!==void 0)Q.uint32(80).int32($.senderPlatform);if($.isSenderPrimary!==void 0)Q.uint32(88).bool($.isSenderPrimary);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??RP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.currentLthash=J.bytes();continue}case 2:{if(K!==18)break;q.newLthash=J.bytes();continue}case 3:{if(K!==26)break;q.patchVersion=J.bytes();continue}case 4:{if(K!==34)break;q.collectionName=J.bytes();continue}case 5:{if(K!==42)break;q.firstFourBytesFromAHashOfSnapshotMacKey=J.bytes();continue}case 6:{if(K!==50)break;q.newLthashSubtract=J.bytes();continue}case 7:{if(K!==56)break;q.numberAdd=J.int32();continue}case 8:{if(K!==64)break;q.numberRemove=J.int32();continue}case 9:{if(K!==72)break;q.numberOverride=J.int32();continue}case 10:{if(K!==80)break;q.senderPlatform=J.int32();continue}case 11:{if(K!==88)break;q.isSenderPrimary=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return DE.fromPartial($??{})},fromPartial($){let Q=RP();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 AP(){return{}}var pQ={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);if($.fileLength!==void 0)Q.uint32(16).uint64($.fileLength);if($.width!==void 0)Q.uint32(24).uint32($.width);if($.height!==void 0)Q.uint32(32).uint32($.height);if($.mimetype!==void 0)Q.uint32(42).string($.mimetype);if($.placeholderArgb!==void 0)Q.uint32(53).fixed32($.placeholderArgb);if($.textArgb!==void 0)Q.uint32(61).fixed32($.textArgb);if($.subtextArgb!==void 0)Q.uint32(69).fixed32($.subtextArgb);if($.mediaData!==void 0)p6.encode($.mediaData,Q.uint32(74).fork()).join();if($.type!==void 0)Q.uint32(80).int32($.type);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??AP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.id=J.string();continue}case 2:{if(K!==16)break;q.fileLength=J.uint64Value();continue}case 3:{if(K!==24)break;q.width=J.uint32();continue}case 4:{if(K!==32)break;q.height=J.uint32();continue}case 5:{if(K!==42)break;q.mimetype=J.string();continue}case 6:{if(K!==53)break;q.placeholderArgb=J.fixed32();continue}case 7:{if(K!==61)break;q.textArgb=J.fixed32();continue}case 8:{if(K!==69)break;q.subtextArgb=J.fixed32();continue}case 9:{if(K!==74)break;q.mediaData=p6.decode(J,J.uint32(),q.mediaData);continue}case 10:{if(K!==80)break;q.type=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return pQ.fromPartial($??{})},fromPartial($){let Q=AP();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?p6.fromPartial($.mediaData):void 0,Q.type=$.type??void 0,Q}};function EP(){return{}}var p6={encode($,Q=new H){if($.mediaKey!==void 0)Q.uint32(10).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)Q.uint32(16).int64($.mediaKeyTimestamp);if($.fileSha256!==void 0)Q.uint32(26).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)Q.uint32(42).string($.directPath);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??EP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mediaKey=J.bytes();continue}case 2:{if(K!==16)break;q.mediaKeyTimestamp=J.int64Value();continue}case 3:{if(K!==26)break;q.fileSha256=J.bytes();continue}case 4:{if(K!==34)break;q.fileEncSha256=J.bytes();continue}case 5:{if(K!==42)break;q.directPath=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return p6.fromPartial($??{})},fromPartial($){let Q=EP();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 MP(){return{}}var JQ={encode($,Q=new H){if($.currencyDeprecated!==void 0)Q.uint32(8).int32($.currencyDeprecated);if($.amount1000!==void 0)Q.uint32(16).uint64($.amount1000);if($.receiverJid!==void 0)Q.uint32(26).string($.receiverJid);if($.status!==void 0)Q.uint32(32).int32($.status);if($.transactionTimestamp!==void 0)Q.uint32(40).uint64($.transactionTimestamp);if($.requestMessageKey!==void 0)B.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)$$.encode($.primaryAmount,Q.uint32(98).fork()).join();if($.exchangeAmount!==void 0)$$.encode($.exchangeAmount,Q.uint32(106).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??MP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.currencyDeprecated=J.int32();continue}case 2:{if(K!==16)break;q.amount1000=J.uint64Value();continue}case 3:{if(K!==26)break;q.receiverJid=J.string();continue}case 4:{if(K!==32)break;q.status=J.int32();continue}case 5:{if(K!==40)break;q.transactionTimestamp=J.uint64Value();continue}case 6:{if(K!==50)break;q.requestMessageKey=B.decode(J,J.uint32(),q.requestMessageKey);continue}case 7:{if(K!==56)break;q.expiryTimestamp=J.uint64Value();continue}case 8:{if(K!==64)break;q.futureproofed=J.bool();continue}case 9:{if(K!==74)break;q.currency=J.string();continue}case 10:{if(K!==80)break;q.txnStatus=J.int32();continue}case 11:{if(K!==88)break;q.useNoviFiatFormat=J.bool();continue}case 12:{if(K!==98)break;q.primaryAmount=$$.decode(J,J.uint32(),q.primaryAmount);continue}case 13:{if(K!==106)break;q.exchangeAmount=$$.decode(J,J.uint32(),q.exchangeAmount);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return JQ.fromPartial($??{})},fromPartial($){let Q=MP();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?B.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?$$.fromPartial($.primaryAmount):void 0,Q.exchangeAmount=$.exchangeAmount!==void 0&&$.exchangeAmount!==null?$$.fromPartial($.exchangeAmount):void 0,Q}};function WP(){return{}}var u6={encode($,Q=new H){if($.pnJid!==void 0)Q.uint32(10).string($.pnJid);if($.lidJid!==void 0)Q.uint32(18).string($.lidJid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??WP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.pnJid=J.string();continue}case 2:{if(K!==18)break;q.lidJid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return u6.fromPartial($??{})},fromPartial($){let Q=WP();return Q.pnJid=$.pnJid??void 0,Q.lidJid=$.lidJid??void 0,Q}};function SP(){return{}}var w6={encode($,Q=new H){if($.oldPhoto!==void 0)Q.uint32(10).bytes($.oldPhoto);if($.newPhoto!==void 0)Q.uint32(18).bytes($.newPhoto);if($.newPhotoId!==void 0)Q.uint32(24).uint32($.newPhotoId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??SP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.oldPhoto=J.bytes();continue}case 2:{if(K!==18)break;q.newPhoto=J.bytes();continue}case 3:{if(K!==24)break;q.newPhotoId=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return w6.fromPartial($??{})},fromPartial($){let Q=SP();return Q.oldPhoto=$.oldPhoto??void 0,Q.newPhoto=$.newPhoto??void 0,Q.newPhotoId=$.newPhotoId??void 0,Q}};function IP(){return{}}var j6={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.key!==void 0)B.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)fQ.encode($.messageAddOnContextInfo,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??IP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}case 2:{if(K!==18)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 3:{if(K!==24)break;q.senderTimestampMs=J.int64Value();continue}case 4:{if(K!==32)break;q.serverTimestampMs=J.int64Value();continue}case 5:{if(K!==42)break;q.messageAddOnContextInfo=fQ.decode(J,J.uint32(),q.messageAddOnContextInfo);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return j6.fromPartial($??{})},fromPartial($){let Q=IP();return Q.type=$.type??void 0,Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.senderTimestampMs=$.senderTimestampMs??void 0,Q.serverTimestampMs=$.serverTimestampMs??void 0,Q.messageAddOnContextInfo=$.messageAddOnContextInfo!==void 0&&$.messageAddOnContextInfo!==null?fQ.fromPartial($.messageAddOnContextInfo):void 0,Q}};function TP(){return{}}var c6={encode($,Q=new H){if($.xDeprecated!==void 0)Q.uint32(8).int32($.xDeprecated);if($.yDeprecated!==void 0)Q.uint32(16).int32($.yDeprecated);if($.x!==void 0)Q.uint32(25).double($.x);if($.y!==void 0)Q.uint32(33).double($.y);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??TP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.xDeprecated=J.int32();continue}case 2:{if(K!==16)break;q.yDeprecated=J.int32();continue}case 3:{if(K!==25)break;q.x=J.double();continue}case 4:{if(K!==33)break;q.y=J.double();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return c6.fromPartial($??{})},fromPartial($){let Q=TP();return Q.xDeprecated=$.xDeprecated??void 0,Q.yDeprecated=$.yDeprecated??void 0,Q.x=$.x??void 0,Q.y=$.y??void 0,Q}};function yP(){return{}}var d6={encode($,Q=new H){if($.pollInvalidated!==void 0)Q.uint32(8).bool($.pollInvalidated);if($.pollNameHashHistory!==void 0&&$.pollNameHashHistory.length!==0)for(let Z of $.pollNameHashHistory)n6.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.pollInvalidated=J.bool();continue}case 2:{if(K!==18)break;if(q.pollNameHashHistory===void 0)q.pollNameHashHistory=[];let V=n6.decode(J,J.uint32());if(V!==void 0)q.pollNameHashHistory.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return d6.fromPartial($??{})},fromPartial($){let Q=yP();return Q.pollInvalidated=$.pollInvalidated??void 0,Q.pollNameHashHistory=$.pollNameHashHistory?.map((Z)=>n6.fromPartial(Z))||void 0,Q}};function vP(){return{}}var n6={encode($,Q=new H){if($.editStanzaId!==void 0)Q.uint32(10).string($.editStanzaId);if($.pollNameHash!==void 0)Q.uint32(18).bytes($.pollNameHash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.editStanzaId=J.string();continue}case 2:{if(K!==18)break;q.pollNameHash=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return n6.fromPartial($??{})},fromPartial($){let Q=vP();return Q.editStanzaId=$.editStanzaId??void 0,Q.pollNameHash=$.pollNameHash??void 0,Q}};function fP(){return{}}var b6={encode($,Q=new H){if($.encPayload!==void 0)Q.uint32(10).bytes($.encPayload);if($.encIv!==void 0)Q.uint32(18).bytes($.encIv);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.encPayload=J.bytes();continue}case 2:{if(K!==18)break;q.encIv=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return b6.fromPartial($??{})},fromPartial($){let Q=fP();return Q.encPayload=$.encPayload??void 0,Q.encIv=$.encIv??void 0,Q}};function _P(){return{}}var o6={encode($,Q=new H){if($.pollUpdateMessageKey!==void 0)B.encode($.pollUpdateMessageKey,Q.uint32(10).fork()).join();if($.vote!==void 0)u$.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)y$.encode($.metadata,Q.uint32(50).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_P();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.pollUpdateMessageKey=B.decode(J,J.uint32(),q.pollUpdateMessageKey);continue}case 2:{if(K!==18)break;q.vote=u$.decode(J,J.uint32(),q.vote);continue}case 3:{if(K!==24)break;q.senderTimestampMs=J.int64Value();continue}case 4:{if(K!==32)break;q.serverTimestampMs=J.int64Value();continue}case 5:{if(K!==40)break;q.unread=J.bool();continue}case 6:{if(K!==50)break;q.metadata=y$.decode(J,J.uint32(),q.metadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return o6.fromPartial($??{})},fromPartial($){let Q=_P();return Q.pollUpdateMessageKey=$.pollUpdateMessageKey!==void 0&&$.pollUpdateMessageKey!==null?B.fromPartial($.pollUpdateMessageKey):void 0,Q.vote=$.vote!==void 0&&$.vote!==null?u$.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?y$.fromPartial($.metadata):void 0,Q}};function hP(){return{}}var FE={encode($,Q=new H){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.publicKey!==void 0)Q.uint32(18).bytes($.publicKey);if($.privateKey!==void 0)Q.uint32(26).bytes($.privateKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.id=J.uint32();continue}case 2:{if(K!==18)break;q.publicKey=J.bytes();continue}case 3:{if(K!==26)break;q.privateKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return FE.fromPartial($??{})},fromPartial($){let Q=hP();return Q.id=$.id??void 0,Q.publicKey=$.publicKey??void 0,Q.privateKey=$.privateKey??void 0,Q}};function lP(){return{}}var LE={encode($,Q=new H){if($.registrationId!==void 0)Q.uint32(40).uint32($.registrationId);if($.preKeyId!==void 0)Q.uint32(8).uint32($.preKeyId);if($.signedPreKeyId!==void 0)Q.uint32(48).uint32($.signedPreKeyId);if($.baseKey!==void 0)Q.uint32(18).bytes($.baseKey);if($.identityKey!==void 0)Q.uint32(26).bytes($.identityKey);if($.message!==void 0)Q.uint32(34).bytes($.message);if($.kyberPreKeyId!==void 0)Q.uint32(56).uint32($.kyberPreKeyId);if($.kyberCiphertext!==void 0)Q.uint32(66).bytes($.kyberCiphertext);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 5:{if(K!==40)break;q.registrationId=J.uint32();continue}case 1:{if(K!==8)break;q.preKeyId=J.uint32();continue}case 6:{if(K!==48)break;q.signedPreKeyId=J.uint32();continue}case 2:{if(K!==18)break;q.baseKey=J.bytes();continue}case 3:{if(K!==26)break;q.identityKey=J.bytes();continue}case 4:{if(K!==34)break;q.message=J.bytes();continue}case 7:{if(K!==56)break;q.kyberPreKeyId=J.uint32();continue}case 8:{if(K!==66)break;q.kyberCiphertext=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return LE.fromPartial($??{})},fromPartial($){let Q=lP();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 pP(){return{}}var i6={encode($,Q=new H){if($.serverCampaignId!==void 0)Q.uint32(10).string($.serverCampaignId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.serverCampaignId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return i6.fromPartial($??{})},fromPartial($){let Q=pP();return Q.serverCampaignId=$.serverCampaignId??void 0,Q}};function uP(){return{}}var PE={encode($,Q=new H){if($.publicKey!==void 0)Q.uint32(10).bytes($.publicKey);if($.nonce!==void 0)Q.uint32(18).bytes($.nonce);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.publicKey=J.bytes();continue}case 2:{if(K!==18)break;q.nonce=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return PE.fromPartial($??{})},fromPartial($){let Q=uP();return Q.publicKey=$.publicKey??void 0,Q.nonce=$.nonce??void 0,Q}};function wP(){return{}}var m6={encode($,Q=new H){if($.directPath!==void 0)Q.uint32(10).string($.directPath);if($.fileSha256!==void 0)Q.uint32(18).bytes($.fileSha256);if($.height!==void 0)Q.uint32(24).uint32($.height);if($.width!==void 0)Q.uint32(32).uint32($.width);if($.fileLength!==void 0)Q.uint32(40).uint64($.fileLength);if($.bitrate!==void 0)Q.uint32(48).uint32($.bitrate);if($.quality!==void 0)Q.uint32(56).int32($.quality);if($.capabilities!==void 0&&$.capabilities.length!==0)for(let Z of $.capabilities)Q.uint32(66).string(Z);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.directPath=J.string();continue}case 2:{if(K!==18)break;q.fileSha256=J.bytes();continue}case 3:{if(K!==24)break;q.height=J.uint32();continue}case 4:{if(K!==32)break;q.width=J.uint32();continue}case 5:{if(K!==40)break;q.fileLength=J.uint64Value();continue}case 6:{if(K!==48)break;q.bitrate=J.uint32();continue}case 7:{if(K!==56)break;q.quality=J.int32();continue}case 8:{if(K!==66)break;if(q.capabilities===void 0)q.capabilities=[];let V=J.string();if(V!==void 0)q.capabilities.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return m6.fromPartial($??{})},fromPartial($){let Q=wP();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 jP(){return{}}var kE={encode($,Q=new H){if($.companionEphemeralIdentity!==void 0)Q.uint32(10).bytes($.companionEphemeralIdentity);if($.commitment!==void 0)UK.encode($.commitment,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.companionEphemeralIdentity=J.bytes();continue}case 2:{if(K!==18)break;q.commitment=UK.decode(J,J.uint32(),q.commitment);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return kE.fromPartial($??{})},fromPartial($){let Q=jP();return Q.companionEphemeralIdentity=$.companionEphemeralIdentity??void 0,Q.commitment=$.commitment!==void 0&&$.commitment!==null?UK.fromPartial($.commitment):void 0,Q}};function cP(){return{}}var g6={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);if($.pushname!==void 0)Q.uint32(18).string($.pushname);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.id=J.string();continue}case 2:{if(K!==18)break;q.pushname=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return g6.fromPartial($??{})},fromPartial($){let Q=cP();return Q.id=$.id??void 0,Q.pushname=$.pushname??void 0,Q}};function dP(){return{}}var xE={encode($,Q=new H){return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dP();while(J.pos<X){let K=J.uint32();switch(K>>>3){}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return xE.fromPartial($??{})},fromPartial($){return dP()}};function nP(){return{}}var r6={encode($,Q=new H){if($.filterName!==void 0)Q.uint32(10).string($.filterName);if($.parameters!==void 0&&$.parameters.length!==0)for(let Z of $.parameters)t6.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.filterName=J.string();continue}case 2:{if(K!==18)break;if(q.parameters===void 0)q.parameters=[];let V=t6.decode(J,J.uint32());if(V!==void 0)q.parameters.push(V);continue}case 3:{if(K!==24)break;q.filterResult=J.int32();continue}case 4:{if(K!==32)break;q.clientNotSupportedConfig=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return r6.fromPartial($??{})},fromPartial($){let Q=nP();return Q.filterName=$.filterName??void 0,Q.parameters=$.parameters?.map((Z)=>t6.fromPartial(Z))||void 0,Q.filterResult=$.filterResult??void 0,Q.clientNotSupportedConfig=$.clientNotSupportedConfig??void 0,Q}};function bP(){return{}}var L0={encode($,Q=new H){if($.clauseType!==void 0)Q.uint32(8).int32($.clauseType);if($.clauses!==void 0&&$.clauses.length!==0)for(let Z of $.clauses)L0.encode(Z,Q.uint32(18).fork()).join();if($.filters!==void 0&&$.filters.length!==0)for(let Z of $.filters)r6.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.clauseType=J.int32();continue}case 2:{if(K!==18)break;if(q.clauses===void 0)q.clauses=[];let V=L0.decode(J,J.uint32());if(V!==void 0)q.clauses.push(V);continue}case 3:{if(K!==26)break;if(q.filters===void 0)q.filters=[];let V=r6.decode(J,J.uint32());if(V!==void 0)q.filters.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return L0.fromPartial($??{})},fromPartial($){let Q=bP();return Q.clauseType=$.clauseType??void 0,Q.clauses=$.clauses?.map((Z)=>L0.fromPartial(Z))||void 0,Q.filters=$.filters?.map((Z)=>r6.fromPartial(Z))||void 0,Q}};function oP(){return{}}var t6={encode($,Q=new H){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)Q.uint32(18).string($.value);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=J.string();continue}case 2:{if(K!==18)break;q.value=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return t6.fromPartial($??{})},fromPartial($){let Q=oP();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function iP(){return{}}var a6={encode($,Q=new H){if($.originalData!==void 0)Q.uint32(10).bytes($.originalData);if($.extractedText!==void 0)Q.uint32(18).string($.extractedText);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.originalData=J.bytes();continue}case 2:{if(K!==18)break;q.extractedText=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return a6.fromPartial($??{})},fromPartial($){let Q=iP();return Q.originalData=$.originalData??void 0,Q.extractedText=$.extractedText??void 0,Q}};function mP(){return{}}var s6={encode($,Q=new H){if($.key!==void 0)B.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.text=J.string();continue}case 3:{if(K!==26)break;q.groupingKey=J.string();continue}case 4:{if(K!==32)break;q.senderTimestampMs=J.int64Value();continue}case 5:{if(K!==40)break;q.unread=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return s6.fromPartial($??{})},fromPartial($){let Q=mP();return Q.key=$.key!==void 0&&$.key!==null?B.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 gP(){return{}}var e6={encode($,Q=new H){if($.emoji!==void 0)Q.uint32(10).string($.emoji);if($.weight!==void 0)Q.uint32(21).float($.weight);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.emoji=J.string();continue}case 2:{if(K!==21)break;q.weight=J.float();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return e6.fromPartial($??{})},fromPartial($){let Q=gP();return Q.emoji=$.emoji??void 0,Q.weight=$.weight??void 0,Q}};function rP(){return{}}var BE={encode($,Q=new H){if($.currentSession!==void 0)KQ.encode($.currentSession,Q.uint32(10).fork()).join();if($.previousSessions!==void 0&&$.previousSessions.length!==0)for(let Z of $.previousSessions)KQ.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.currentSession=KQ.decode(J,J.uint32(),q.currentSession);continue}case 2:{if(K!==18)break;if(q.previousSessions===void 0)q.previousSessions=[];let V=KQ.decode(J,J.uint32());if(V!==void 0)q.previousSessions.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return BE.fromPartial($??{})},fromPartial($){let Q=rP();return Q.currentSession=$.currentSession!==void 0&&$.currentSession!==null?KQ.fromPartial($.currentSession):void 0,Q.previousSessions=$.previousSessions?.map((Z)=>KQ.fromPartial(Z))||void 0,Q}};function tP(){return{}}var NE={encode($,Q=new H){if($.minVersion!==void 0)Q.uint32(8).uint32($.minVersion);if($.maxVersion!==void 0)Q.uint32(16).uint32($.maxVersion);if($.notReportableMinVersion!==void 0)Q.uint32(24).uint32($.notReportableMinVersion);if($.never!==void 0)Q.uint32(32).bool($.never);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.minVersion=J.uint32();continue}case 2:{if(K!==16)break;q.maxVersion=J.uint32();continue}case 3:{if(K!==24)break;q.notReportableMinVersion=J.uint32();continue}case 4:{if(K!==32)break;q.never=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return NE.fromPartial($??{})},fromPartial($){let Q=tP();return Q.minVersion=$.minVersion??void 0,Q.maxVersion=$.maxVersion??void 0,Q.notReportableMinVersion=$.notReportableMinVersion??void 0,Q.never=$.never??void 0,Q}};function aP(){return{}}var $9={encode($,Q=new H){if($.reportingTag!==void 0)Q.uint32(10).bytes($.reportingTag);if($.reportingTagTimestamp!==void 0)Q.uint32(16).uint64($.reportingTagTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??aP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.reportingTag=J.bytes();continue}case 2:{if(K!==16)break;q.reportingTagTimestamp=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $9.fromPartial($??{})},fromPartial($){let Q=aP();return Q.reportingTag=$.reportingTag??void 0,Q.reportingTagTimestamp=$.reportingTagTimestamp??void 0,Q}};function sP(){return{}}var Q9={encode($,Q=new H){if($.currentEpochRootKey!==void 0)Q.uint32(10).bytes($.currentEpochRootKey);if($.currentEpochAnonId!==void 0)Q.uint32(18).bytes($.currentEpochAnonId);if($.currentEpochFbid!==void 0)Q.uint32(24).uint64($.currentEpochFbid);if($.epochStoragePrivateKey!==void 0)Q.uint32(34).bytes($.epochStoragePrivateKey);if($.members!==void 0&&$.members.length!==0)for(let Z of $.members)K9.encode(Z,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.currentEpochRootKey=J.bytes();continue}case 2:{if(K!==18)break;q.currentEpochAnonId=J.bytes();continue}case 3:{if(K!==24)break;q.currentEpochFbid=J.uint64Value();continue}case 4:{if(K!==34)break;q.epochStoragePrivateKey=J.bytes();continue}case 5:{if(K!==42)break;if(q.members===void 0)q.members=[];let V=K9.decode(J,J.uint32());if(V!==void 0)q.members.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Q9.fromPartial($??{})},fromPartial($){let Q=sP();return Q.currentEpochRootKey=$.currentEpochRootKey??void 0,Q.currentEpochAnonId=$.currentEpochAnonId??void 0,Q.currentEpochFbid=$.currentEpochFbid??void 0,Q.epochStoragePrivateKey=$.epochStoragePrivateKey??void 0,Q.members=$.members?.map((Z)=>K9.fromPartial(Z))||void 0,Q}};function eP(){return{}}var J9={encode($,Q=new H){if($.deviceId!==void 0)Q.uint32(8).uint64($.deviceId);if($.encryptedEpochKey!==void 0)Q.uint32(18).bytes($.encryptedEpochKey);if($.deviceEpochHmac!==void 0)Q.uint32(26).bytes($.deviceEpochHmac);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??eP();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.deviceId=J.uint64Value();continue}case 2:{if(K!==18)break;q.encryptedEpochKey=J.bytes();continue}case 3:{if(K!==26)break;q.deviceEpochHmac=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return J9.fromPartial($??{})},fromPartial($){let Q=eP();return Q.deviceId=$.deviceId??void 0,Q.encryptedEpochKey=$.encryptedEpochKey??void 0,Q.deviceEpochHmac=$.deviceEpochHmac??void 0,Q}};function $k(){return{}}var K9={encode($,Q=new H){if($.deviceId!==void 0)Q.uint32(8).uint64($.deviceId);if($.epochStoragePublicKey!==void 0)Q.uint32(18).bytes($.epochStoragePublicKey);if($.devicePublicKey!==void 0)Q.uint32(26).bytes($.devicePublicKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$k();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.deviceId=J.uint64Value();continue}case 2:{if(K!==18)break;q.epochStoragePublicKey=J.bytes();continue}case 3:{if(K!==26)break;q.devicePublicKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return K9.fromPartial($??{})},fromPartial($){let Q=$k();return Q.deviceId=$.deviceId??void 0,Q.epochStoragePublicKey=$.epochStoragePublicKey??void 0,Q.devicePublicKey=$.devicePublicKey??void 0,Q}};function Qk(){return{}}var OE={encode($,Q=new H){if($.newEpochRootKey!==void 0)Q.uint32(10).bytes($.newEpochRootKey);if($.newEpochAnonId!==void 0)Q.uint32(16).uint64($.newEpochAnonId);if($.newEpochFbid!==void 0)Q.uint32(64).uint64($.newEpochFbid);if($.epochAnonId!==void 0)Q.uint32(26).bytes($.epochAnonId);if($.backwardEdge!==void 0)m0.encode($.backwardEdge,Q.uint32(34).fork()).join();if($.memberEdges!==void 0&&$.memberEdges.length!==0)for(let Z of $.memberEdges)J9.encode(Z,Q.uint32(42).fork()).join();if($.epochRootKeyFingerprint!==void 0)Q.uint32(50).bytes($.epochRootKeyFingerprint);if($.error!==void 0)Q.uint32(58).string($.error);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Qk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.newEpochRootKey=J.bytes();continue}case 2:{if(K!==16)break;q.newEpochAnonId=J.uint64Value();continue}case 8:{if(K!==64)break;q.newEpochFbid=J.uint64Value();continue}case 3:{if(K!==26)break;q.epochAnonId=J.bytes();continue}case 4:{if(K!==34)break;q.backwardEdge=m0.decode(J,J.uint32(),q.backwardEdge);continue}case 5:{if(K!==42)break;if(q.memberEdges===void 0)q.memberEdges=[];let V=J9.decode(J,J.uint32());if(V!==void 0)q.memberEdges.push(V);continue}case 6:{if(K!==50)break;q.epochRootKeyFingerprint=J.bytes();continue}case 7:{if(K!==58)break;q.error=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return OE.fromPartial($??{})},fromPartial($){let Q=Qk();return Q.newEpochRootKey=$.newEpochRootKey??void 0,Q.newEpochAnonId=$.newEpochAnonId??void 0,Q.newEpochFbid=$.newEpochFbid??void 0,Q.epochAnonId=$.epochAnonId??void 0,Q.backwardEdge=$.backwardEdge!==void 0&&$.backwardEdge!==null?m0.fromPartial($.backwardEdge):void 0,Q.memberEdges=$.memberEdges?.map((Z)=>J9.fromPartial(Z))||void 0,Q.epochRootKeyFingerprint=$.epochRootKeyFingerprint??void 0,Q.error=$.error??void 0,Q}};function Jk(){return{}}var RE={encode($,Q=new H){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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Jk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K===8){if(q.regionId===void 0)q.regionId=[];q.regionId.push(J.int32());continue}if(K===10){if(q.regionId===void 0)q.regionId=[];let V=J.uint32()+J.pos;while(J.pos<V)q.regionId.push(J.int32());continue}break}case 2:{if(K===16){if(q.clusterId===void 0)q.clusterId=[];q.clusterId.push(J.int32());continue}if(K===18){if(q.clusterId===void 0)q.clusterId=[];let V=J.uint32()+J.pos;while(J.pos<V)q.clusterId.push(J.int32());continue}break}case 3:{if(K!==24)break;q.taskId=J.int32();continue}case 4:{if(K!==32)break;q.debug=J.bool();continue}case 5:{if(K!==40)break;q.tcpBbr=J.bool();continue}case 6:{if(K!==48)break;q.tcpKeepalive=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return RE.fromPartial($??{})},fromPartial($){let Q=Jk();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 Kk(){return{}}var q9={encode($,Q=new H){if($.revealKeyId!==void 0)Q.uint32(10).string($.revealKeyId);if($.revealKey!==void 0)Q.uint32(18).bytes($.revealKey);if($.scheduledTime!==void 0)Q.uint32(24).uint64($.scheduledTime);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Kk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.revealKeyId=J.string();continue}case 2:{if(K!==18)break;q.revealKey=J.bytes();continue}case 3:{if(K!==24)break;q.scheduledTime=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return q9.fromPartial($??{})},fromPartial($){let Q=Kk();return Q.revealKeyId=$.revealKeyId??void 0,Q.revealKey=$.revealKey??void 0,Q.scheduledTime=$.scheduledTime??void 0,Q}};function qk(){return{}}var i5={encode($,Q=new H){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.iteration!==void 0)Q.uint32(16).uint32($.iteration);if($.chainKey!==void 0)Q.uint32(26).bytes($.chainKey);if($.signingKey!==void 0)Q.uint32(34).bytes($.signingKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.id=J.uint32();continue}case 2:{if(K!==16)break;q.iteration=J.uint32();continue}case 3:{if(K!==26)break;q.chainKey=J.bytes();continue}case 4:{if(K!==34)break;q.signingKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return i5.fromPartial($??{})},fromPartial($){let Q=qk();return Q.id=$.id??void 0,Q.iteration=$.iteration??void 0,Q.chainKey=$.chainKey??void 0,Q.signingKey=$.signingKey??void 0,Q}};function Zk(){return{}}var m5={encode($,Q=new H){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.iteration!==void 0)Q.uint32(16).uint32($.iteration);if($.ciphertext!==void 0)Q.uint32(26).bytes($.ciphertext);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Zk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.id=J.uint32();continue}case 2:{if(K!==16)break;q.iteration=J.uint32();continue}case 3:{if(K!==26)break;q.ciphertext=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return m5.fromPartial($??{})},fromPartial($){let Q=Zk();return Q.id=$.id??void 0,Q.iteration=$.iteration??void 0,Q.ciphertext=$.ciphertext??void 0,Q}};function Xk(){return{}}var AE={encode($,Q=new H){if($.senderKeyStates!==void 0&&$.senderKeyStates.length!==0)for(let Z of $.senderKeyStates)Z9.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Xk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.senderKeyStates===void 0)q.senderKeyStates=[];let V=Z9.decode(J,J.uint32());if(V!==void 0)q.senderKeyStates.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return AE.fromPartial($??{})},fromPartial($){let Q=Xk();return Q.senderKeyStates=$.senderKeyStates?.map((Z)=>Z9.fromPartial(Z))||void 0,Q}};function Yk(){return{}}var Z9={encode($,Q=new H){if($.senderKeyId!==void 0)Q.uint32(8).uint32($.senderKeyId);if($.senderChainKey!==void 0)X9.encode($.senderChainKey,Q.uint32(18).fork()).join();if($.senderSigningKey!==void 0)V9.encode($.senderSigningKey,Q.uint32(26).fork()).join();if($.senderMessageKeys!==void 0&&$.senderMessageKeys.length!==0)for(let Z of $.senderMessageKeys)Y9.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Yk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.senderKeyId=J.uint32();continue}case 2:{if(K!==18)break;q.senderChainKey=X9.decode(J,J.uint32(),q.senderChainKey);continue}case 3:{if(K!==26)break;q.senderSigningKey=V9.decode(J,J.uint32(),q.senderSigningKey);continue}case 4:{if(K!==34)break;if(q.senderMessageKeys===void 0)q.senderMessageKeys=[];let V=Y9.decode(J,J.uint32());if(V!==void 0)q.senderMessageKeys.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Z9.fromPartial($??{})},fromPartial($){let Q=Yk();return Q.senderKeyId=$.senderKeyId??void 0,Q.senderChainKey=$.senderChainKey!==void 0&&$.senderChainKey!==null?X9.fromPartial($.senderChainKey):void 0,Q.senderSigningKey=$.senderSigningKey!==void 0&&$.senderSigningKey!==null?V9.fromPartial($.senderSigningKey):void 0,Q.senderMessageKeys=$.senderMessageKeys?.map((Z)=>Y9.fromPartial(Z))||void 0,Q}};function Vk(){return{}}var X9={encode($,Q=new H){if($.iteration!==void 0)Q.uint32(8).uint32($.iteration);if($.seed!==void 0)Q.uint32(18).bytes($.seed);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Vk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.iteration=J.uint32();continue}case 2:{if(K!==18)break;q.seed=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return X9.fromPartial($??{})},fromPartial($){let Q=Vk();return Q.iteration=$.iteration??void 0,Q.seed=$.seed??void 0,Q}};function Hk(){return{}}var Y9={encode($,Q=new H){if($.iteration!==void 0)Q.uint32(8).uint32($.iteration);if($.seed!==void 0)Q.uint32(18).bytes($.seed);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Hk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.iteration=J.uint32();continue}case 2:{if(K!==18)break;q.seed=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Y9.fromPartial($??{})},fromPartial($){let Q=Hk();return Q.iteration=$.iteration??void 0,Q.seed=$.seed??void 0,Q}};function zk(){return{}}var V9={encode($,Q=new H){if($.public!==void 0)Q.uint32(10).bytes($.public);if($.private!==void 0)Q.uint32(18).bytes($.private);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.public=J.bytes();continue}case 2:{if(K!==18)break;q.private=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return V9.fromPartial($??{})},fromPartial($){let Q=zk();return Q.public=$.public??void 0,Q.private=$.private??void 0,Q}};function Gk(){return{}}var g5={encode($,Q=new H){if($.stanzaId!==void 0)Q.uint32(10).string($.stanzaId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Gk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.stanzaId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return g5.fromPartial($??{})},fromPartial($){let Q=Gk();return Q.stanzaId=$.stanzaId??void 0,Q}};function Uk(){return{}}var KQ={encode($,Q=new H){if($.sessionVersion!==void 0)Q.uint32(8).uint32($.sessionVersion);if($.localIdentityPublic!==void 0)Q.uint32(18).bytes($.localIdentityPublic);if($.remoteIdentityPublic!==void 0)Q.uint32(26).bytes($.remoteIdentityPublic);if($.rootKey!==void 0)Q.uint32(34).bytes($.rootKey);if($.previousCounter!==void 0)Q.uint32(40).uint32($.previousCounter);if($.senderChain!==void 0)qQ.encode($.senderChain,Q.uint32(50).fork()).join();if($.receiverChains!==void 0&&$.receiverChains.length!==0)for(let Z of $.receiverChains)qQ.encode(Z,Q.uint32(58).fork()).join();if($.pendingKeyExchange!==void 0)G9.encode($.pendingKeyExchange,Q.uint32(66).fork()).join();if($.pendingPreKey!==void 0)U9.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Uk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.sessionVersion=J.uint32();continue}case 2:{if(K!==18)break;q.localIdentityPublic=J.bytes();continue}case 3:{if(K!==26)break;q.remoteIdentityPublic=J.bytes();continue}case 4:{if(K!==34)break;q.rootKey=J.bytes();continue}case 5:{if(K!==40)break;q.previousCounter=J.uint32();continue}case 6:{if(K!==50)break;q.senderChain=qQ.decode(J,J.uint32(),q.senderChain);continue}case 7:{if(K!==58)break;if(q.receiverChains===void 0)q.receiverChains=[];let V=qQ.decode(J,J.uint32());if(V!==void 0)q.receiverChains.push(V);continue}case 8:{if(K!==66)break;q.pendingKeyExchange=G9.decode(J,J.uint32(),q.pendingKeyExchange);continue}case 9:{if(K!==74)break;q.pendingPreKey=U9.decode(J,J.uint32(),q.pendingPreKey);continue}case 10:{if(K!==80)break;q.remoteRegistrationId=J.uint32();continue}case 11:{if(K!==88)break;q.localRegistrationId=J.uint32();continue}case 12:{if(K!==96)break;q.needsRefresh=J.bool();continue}case 13:{if(K!==106)break;q.aliceBaseKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return KQ.fromPartial($??{})},fromPartial($){let Q=Uk();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?qQ.fromPartial($.senderChain):void 0,Q.receiverChains=$.receiverChains?.map((Z)=>qQ.fromPartial(Z))||void 0,Q.pendingKeyExchange=$.pendingKeyExchange!==void 0&&$.pendingKeyExchange!==null?G9.fromPartial($.pendingKeyExchange):void 0,Q.pendingPreKey=$.pendingPreKey!==void 0&&$.pendingPreKey!==null?U9.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 Ck(){return{}}var qQ={encode($,Q=new H){if($.senderRatchetKey!==void 0)Q.uint32(10).bytes($.senderRatchetKey);if($.senderRatchetKeyPrivate!==void 0)Q.uint32(18).bytes($.senderRatchetKeyPrivate);if($.chainKey!==void 0)H9.encode($.chainKey,Q.uint32(26).fork()).join();if($.messageKeys!==void 0&&$.messageKeys.length!==0)for(let Z of $.messageKeys)z9.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ck();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.senderRatchetKey=J.bytes();continue}case 2:{if(K!==18)break;q.senderRatchetKeyPrivate=J.bytes();continue}case 3:{if(K!==26)break;q.chainKey=H9.decode(J,J.uint32(),q.chainKey);continue}case 4:{if(K!==34)break;if(q.messageKeys===void 0)q.messageKeys=[];let V=z9.decode(J,J.uint32());if(V!==void 0)q.messageKeys.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return qQ.fromPartial($??{})},fromPartial($){let Q=Ck();return Q.senderRatchetKey=$.senderRatchetKey??void 0,Q.senderRatchetKeyPrivate=$.senderRatchetKeyPrivate??void 0,Q.chainKey=$.chainKey!==void 0&&$.chainKey!==null?H9.fromPartial($.chainKey):void 0,Q.messageKeys=$.messageKeys?.map((Z)=>z9.fromPartial(Z))||void 0,Q}};function Dk(){return{}}var H9={encode($,Q=new H){if($.index!==void 0)Q.uint32(8).uint32($.index);if($.key!==void 0)Q.uint32(18).bytes($.key);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Dk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.index=J.uint32();continue}case 2:{if(K!==18)break;q.key=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return H9.fromPartial($??{})},fromPartial($){let Q=Dk();return Q.index=$.index??void 0,Q.key=$.key??void 0,Q}};function Fk(){return{}}var z9={encode($,Q=new H){if($.index!==void 0)Q.uint32(8).uint32($.index);if($.cipherKey!==void 0)Q.uint32(18).bytes($.cipherKey);if($.macKey!==void 0)Q.uint32(26).bytes($.macKey);if($.iv!==void 0)Q.uint32(34).bytes($.iv);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Fk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.index=J.uint32();continue}case 2:{if(K!==18)break;q.cipherKey=J.bytes();continue}case 3:{if(K!==26)break;q.macKey=J.bytes();continue}case 4:{if(K!==34)break;q.iv=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return z9.fromPartial($??{})},fromPartial($){let Q=Fk();return Q.index=$.index??void 0,Q.cipherKey=$.cipherKey??void 0,Q.macKey=$.macKey??void 0,Q.iv=$.iv??void 0,Q}};function Lk(){return{}}var G9={encode($,Q=new H){if($.sequence!==void 0)Q.uint32(8).uint32($.sequence);if($.localBaseKey!==void 0)Q.uint32(18).bytes($.localBaseKey);if($.localBaseKeyPrivate!==void 0)Q.uint32(26).bytes($.localBaseKeyPrivate);if($.localRatchetKey!==void 0)Q.uint32(34).bytes($.localRatchetKey);if($.localRatchetKeyPrivate!==void 0)Q.uint32(42).bytes($.localRatchetKeyPrivate);if($.localIdentityKey!==void 0)Q.uint32(58).bytes($.localIdentityKey);if($.localIdentityKeyPrivate!==void 0)Q.uint32(66).bytes($.localIdentityKeyPrivate);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Lk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.sequence=J.uint32();continue}case 2:{if(K!==18)break;q.localBaseKey=J.bytes();continue}case 3:{if(K!==26)break;q.localBaseKeyPrivate=J.bytes();continue}case 4:{if(K!==34)break;q.localRatchetKey=J.bytes();continue}case 5:{if(K!==42)break;q.localRatchetKeyPrivate=J.bytes();continue}case 7:{if(K!==58)break;q.localIdentityKey=J.bytes();continue}case 8:{if(K!==66)break;q.localIdentityKeyPrivate=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return G9.fromPartial($??{})},fromPartial($){let Q=Lk();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 Pk(){return{}}var U9={encode($,Q=new H){if($.preKeyId!==void 0)Q.uint32(8).uint32($.preKeyId);if($.signedPreKeyId!==void 0)Q.uint32(24).int32($.signedPreKeyId);if($.baseKey!==void 0)Q.uint32(18).bytes($.baseKey);if($.kyberPreKeyId!==void 0)Q.uint32(32).uint32($.kyberPreKeyId);if($.kyberCiphertext!==void 0)Q.uint32(42).bytes($.kyberCiphertext);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Pk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.preKeyId=J.uint32();continue}case 3:{if(K!==24)break;q.signedPreKeyId=J.int32();continue}case 2:{if(K!==18)break;q.baseKey=J.bytes();continue}case 4:{if(K!==32)break;q.kyberPreKeyId=J.uint32();continue}case 5:{if(K!==42)break;q.kyberCiphertext=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return U9.fromPartial($??{})},fromPartial($){let Q=Pk();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 kk(){return{}}var C9={encode($,Q=new H){if($.disclaimerText!==void 0)Q.uint32(10).string($.disclaimerText);if($.hcaId!==void 0)Q.uint32(18).string($.hcaId);if($.sessionTransparencyType!==void 0)Q.uint32(24).int32($.sessionTransparencyType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.disclaimerText=J.string();continue}case 2:{if(K!==18)break;q.hcaId=J.string();continue}case 3:{if(K!==24)break;q.sessionTransparencyType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return C9.fromPartial($??{})},fromPartial($){let Q=kk();return Q.disclaimerText=$.disclaimerText??void 0,Q.hcaId=$.hcaId??void 0,Q.sessionTransparencyType=$.sessionTransparencyType??void 0,Q}};function xk(){return{}}var EE={encode($,Q=new H){if($.ratchetKey!==void 0)Q.uint32(10).bytes($.ratchetKey);if($.counter!==void 0)Q.uint32(16).uint32($.counter);if($.previousCounter!==void 0)Q.uint32(24).uint32($.previousCounter);if($.ciphertext!==void 0)Q.uint32(34).bytes($.ciphertext);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.ratchetKey=J.bytes();continue}case 2:{if(K!==16)break;q.counter=J.uint32();continue}case 3:{if(K!==24)break;q.previousCounter=J.uint32();continue}case 4:{if(K!==34)break;q.ciphertext=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return EE.fromPartial($??{})},fromPartial($){let Q=xk();return Q.ratchetKey=$.ratchetKey??void 0,Q.counter=$.counter??void 0,Q.previousCounter=$.previousCounter??void 0,Q.ciphertext=$.ciphertext??void 0,Q}};function Bk(){return{}}var D9={encode($,Q=new H){if($.mmkDistribution!==void 0)M6.encode($.mmkDistribution,Q.uint32(10).fork()).join();if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.fromMailbox!==void 0)b.encode($.fromMailbox,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Bk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.mmkDistribution=M6.decode(J,J.uint32(),q.mmkDistribution);continue}case 2:{if(K!==18)break;q.signature=J.bytes();continue}case 3:{if(K!==26)break;q.fromMailbox=b.decode(J,J.uint32(),q.fromMailbox);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return D9.fromPartial($??{})},fromPartial($){let Q=Bk();return Q.mmkDistribution=$.mmkDistribution!==void 0&&$.mmkDistribution!==null?M6.fromPartial($.mmkDistribution):void 0,Q.signature=$.signature??void 0,Q.fromMailbox=$.fromMailbox!==void 0&&$.fromMailbox!==null?b.fromPartial($.fromMailbox):void 0,Q}};function Nk(){return{}}var ME={encode($,Q=new H){if($.id!==void 0)Q.uint32(8).uint32($.id);if($.publicKey!==void 0)Q.uint32(18).bytes($.publicKey);if($.privateKey!==void 0)Q.uint32(26).bytes($.privateKey);if($.signature!==void 0)Q.uint32(34).bytes($.signature);if($.timestamp!==void 0)Q.uint32(41).fixed64($.timestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Nk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.id=J.uint32();continue}case 2:{if(K!==18)break;q.publicKey=J.bytes();continue}case 3:{if(K!==26)break;q.privateKey=J.bytes();continue}case 4:{if(K!==34)break;q.signature=J.bytes();continue}case 5:{if(K!==41)break;q.timestamp=J.fixed64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return ME.fromPartial($??{})},fromPartial($){let Q=Nk();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 Ok(){return{}}var F9={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.actionUrl!==void 0)Q.uint32(18).string($.actionUrl);if($.statusReshare!==void 0)N9.encode($.statusReshare,Q.uint32(26).fork()).join();if($.externalShare!==void 0)P9.encode($.externalShare,Q.uint32(34).fork()).join();if($.music!==void 0)x9.encode($.music,Q.uint32(42).fork()).join();if($.groupStatus!==void 0)k9.encode($.groupStatus,Q.uint32(50).fork()).join();if($.rlAttribution!==void 0)B9.encode($.rlAttribution,Q.uint32(58).fork()).join();if($.aiCreatedAttribution!==void 0)L9.encode($.aiCreatedAttribution,Q.uint32(66).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ok();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}case 2:{if(K!==18)break;q.actionUrl=J.string();continue}case 3:{if(K!==26)break;q.statusReshare=N9.decode(J,J.uint32(),q.statusReshare);continue}case 4:{if(K!==34)break;q.externalShare=P9.decode(J,J.uint32(),q.externalShare);continue}case 5:{if(K!==42)break;q.music=x9.decode(J,J.uint32(),q.music);continue}case 6:{if(K!==50)break;q.groupStatus=k9.decode(J,J.uint32(),q.groupStatus);continue}case 7:{if(K!==58)break;q.rlAttribution=B9.decode(J,J.uint32(),q.rlAttribution);continue}case 8:{if(K!==66)break;q.aiCreatedAttribution=L9.decode(J,J.uint32(),q.aiCreatedAttribution);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return F9.fromPartial($??{})},fromPartial($){let Q=Ok();return Q.type=$.type??void 0,Q.actionUrl=$.actionUrl??void 0,Q.statusReshare=$.statusReshare!==void 0&&$.statusReshare!==null?N9.fromPartial($.statusReshare):void 0,Q.externalShare=$.externalShare!==void 0&&$.externalShare!==null?P9.fromPartial($.externalShare):void 0,Q.music=$.music!==void 0&&$.music!==null?x9.fromPartial($.music):void 0,Q.groupStatus=$.groupStatus!==void 0&&$.groupStatus!==null?k9.fromPartial($.groupStatus):void 0,Q.rlAttribution=$.rlAttribution!==void 0&&$.rlAttribution!==null?B9.fromPartial($.rlAttribution):void 0,Q.aiCreatedAttribution=$.aiCreatedAttribution!==void 0&&$.aiCreatedAttribution!==null?L9.fromPartial($.aiCreatedAttribution):void 0,Q}};function Rk(){return{}}var L9={encode($,Q=new H){if($.source!==void 0)Q.uint32(8).int32($.source);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Rk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.source=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return L9.fromPartial($??{})},fromPartial($){let Q=Rk();return Q.source=$.source??void 0,Q}};function Ak(){return{}}var P9={encode($,Q=new H){if($.actionUrl!==void 0)Q.uint32(10).string($.actionUrl);if($.source!==void 0)Q.uint32(16).int32($.source);if($.duration!==void 0)Q.uint32(24).int32($.duration);if($.actionFallbackUrl!==void 0)Q.uint32(34).string($.actionFallbackUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ak();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.actionUrl=J.string();continue}case 2:{if(K!==16)break;q.source=J.int32();continue}case 3:{if(K!==24)break;q.duration=J.int32();continue}case 4:{if(K!==34)break;q.actionFallbackUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return P9.fromPartial($??{})},fromPartial($){let Q=Ak();return Q.actionUrl=$.actionUrl??void 0,Q.source=$.source??void 0,Q.duration=$.duration??void 0,Q.actionFallbackUrl=$.actionFallbackUrl??void 0,Q}};function Ek(){return{}}var k9={encode($,Q=new H){if($.authorJid!==void 0)Q.uint32(10).string($.authorJid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ek();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.authorJid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return k9.fromPartial($??{})},fromPartial($){let Q=Ek();return Q.authorJid=$.authorJid??void 0,Q}};function Mk(){return{}}var x9={encode($,Q=new H){if($.authorName!==void 0)Q.uint32(10).string($.authorName);if($.songId!==void 0)Q.uint32(18).string($.songId);if($.title!==void 0)Q.uint32(26).string($.title);if($.author!==void 0)Q.uint32(34).string($.author);if($.artistAttribution!==void 0)Q.uint32(42).string($.artistAttribution);if($.isExplicit!==void 0)Q.uint32(48).bool($.isExplicit);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Mk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.authorName=J.string();continue}case 2:{if(K!==18)break;q.songId=J.string();continue}case 3:{if(K!==26)break;q.title=J.string();continue}case 4:{if(K!==34)break;q.author=J.string();continue}case 5:{if(K!==42)break;q.artistAttribution=J.string();continue}case 6:{if(K!==48)break;q.isExplicit=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return x9.fromPartial($??{})},fromPartial($){let Q=Mk();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 Wk(){return{}}var B9={encode($,Q=new H){if($.source!==void 0)Q.uint32(8).int32($.source);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Wk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.source=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return B9.fromPartial($??{})},fromPartial($){let Q=Wk();return Q.source=$.source??void 0,Q}};function Sk(){return{}}var N9={encode($,Q=new H){if($.source!==void 0)Q.uint32(8).int32($.source);if($.metadata!==void 0)O9.encode($.metadata,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Sk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.source=J.int32();continue}case 2:{if(K!==18)break;q.metadata=O9.decode(J,J.uint32(),q.metadata);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return N9.fromPartial($??{})},fromPartial($){let Q=Sk();return Q.source=$.source??void 0,Q.metadata=$.metadata!==void 0&&$.metadata!==null?O9.fromPartial($.metadata):void 0,Q}};function Ik(){return{}}var O9={encode($,Q=new H){if($.duration!==void 0)Q.uint32(8).int32($.duration);if($.channelJid!==void 0)Q.uint32(18).string($.channelJid);if($.channelMessageId!==void 0)Q.uint32(24).int32($.channelMessageId);if($.hasMultipleReshares!==void 0)Q.uint32(32).bool($.hasMultipleReshares);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ik();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.duration=J.int32();continue}case 2:{if(K!==18)break;q.channelJid=J.string();continue}case 3:{if(K!==24)break;q.channelMessageId=J.int32();continue}case 4:{if(K!==32)break;q.hasMultipleReshares=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return O9.fromPartial($??{})},fromPartial($){let Q=Ik();return Q.duration=$.duration??void 0,Q.channelJid=$.channelJid??void 0,Q.channelMessageId=$.channelMessageId??void 0,Q.hasMultipleReshares=$.hasMultipleReshares??void 0,Q}};function Tk(){return{}}var R9={encode($,Q=new H){if($.quotedStatus!==void 0)d.encode($.quotedStatus,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Tk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.quotedStatus=d.decode(J,J.uint32(),q.quotedStatus);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return R9.fromPartial($??{})},fromPartial($){let Q=Tk();return Q.quotedStatus=$.quotedStatus!==void 0&&$.quotedStatus!==null?d.fromPartial($.quotedStatus):void 0,Q}};function yk(){return{}}var A9={encode($,Q=new H){if($.campaignId!==void 0)Q.uint32(352).uint64($.campaignId);if($.campaignExpirationTimestamp!==void 0)Q.uint32(360).uint64($.campaignExpirationTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 44:{if(K!==352)break;q.campaignId=J.uint64Value();continue}case 45:{if(K!==360)break;q.campaignExpirationTimestamp=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return A9.fromPartial($??{})},fromPartial($){let Q=yk();return Q.campaignId=$.campaignId??void 0,Q.campaignExpirationTimestamp=$.campaignExpirationTimestamp??void 0,Q}};function vk(){return{}}var E9={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.fileSha256!==void 0)Q.uint32(18).bytes($.fileSha256);if($.fileEncSha256!==void 0)Q.uint32(26).bytes($.fileEncSha256);if($.mediaKey!==void 0)Q.uint32(34).bytes($.mediaKey);if($.mimetype!==void 0)Q.uint32(42).string($.mimetype);if($.height!==void 0)Q.uint32(48).uint32($.height);if($.width!==void 0)Q.uint32(56).uint32($.width);if($.directPath!==void 0)Q.uint32(66).string($.directPath);if($.fileLength!==void 0)Q.uint32(72).uint64($.fileLength);if($.weight!==void 0)Q.uint32(85).float($.weight);if($.lastStickerSentTs!==void 0)Q.uint32(88).int64($.lastStickerSentTs);if($.isLottie!==void 0)Q.uint32(96).bool($.isLottie);if($.imageHash!==void 0)Q.uint32(106).string($.imageHash);if($.isAvatarSticker!==void 0)Q.uint32(112).bool($.isAvatarSticker);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==18)break;q.fileSha256=J.bytes();continue}case 3:{if(K!==26)break;q.fileEncSha256=J.bytes();continue}case 4:{if(K!==34)break;q.mediaKey=J.bytes();continue}case 5:{if(K!==42)break;q.mimetype=J.string();continue}case 6:{if(K!==48)break;q.height=J.uint32();continue}case 7:{if(K!==56)break;q.width=J.uint32();continue}case 8:{if(K!==66)break;q.directPath=J.string();continue}case 9:{if(K!==72)break;q.fileLength=J.uint64Value();continue}case 10:{if(K!==85)break;q.weight=J.float();continue}case 11:{if(K!==88)break;q.lastStickerSentTs=J.int64Value();continue}case 12:{if(K!==96)break;q.isLottie=J.bool();continue}case 13:{if(K!==106)break;q.imageHash=J.string();continue}case 14:{if(K!==112)break;q.isAvatarSticker=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return E9.fromPartial($??{})},fromPartial($){let Q=vk();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 fk(){return{}}var n={encode($,Q=new H){if($.payload!==void 0)Q.uint32(10).bytes($.payload);if($.version!==void 0)Q.uint32(16).int32($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.payload=J.bytes();continue}case 2:{if(K!==16)break;q.version=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return n.fromPartial($??{})},fromPartial($){let Q=fk();return Q.payload=$.payload??void 0,Q.version=$.version??void 0,Q}};function _k(){return{}}var mQ={encode($,Q=new H){if($.index!==void 0)Q.uint32(10).bytes($.index);if($.value!==void 0)gQ.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_k();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.index=J.bytes();continue}case 2:{if(K!==18)break;q.value=gQ.decode(J,J.uint32(),q.value);continue}case 3:{if(K!==26)break;q.padding=J.bytes();continue}case 4:{if(K!==32)break;q.version=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return mQ.fromPartial($??{})},fromPartial($){let Q=_k();return Q.index=$.index??void 0,Q.value=$.value!==void 0&&$.value!==null?gQ.fromPartial($.value):void 0,Q.padding=$.padding??void 0,Q.version=$.version??void 0,Q}};function hk(){return{}}var gQ={encode($,Q=new H){if($.timestamp!==void 0)Q.uint32(8).int64($.timestamp);if($.starAction!==void 0)cY.encode($.starAction,Q.uint32(18).fork()).join();if($.contactAction!==void 0)b9.encode($.contactAction,Q.uint32(26).fork()).join();if($.muteAction!==void 0)xY.encode($.muteAction,Q.uint32(34).fork()).join();if($.pinAction!==void 0)SY.encode($.pinAction,Q.uint32(42).fork()).join();if($.pushNameSetting!==void 0)lY.encode($.pushNameSetting,Q.uint32(58).fork()).join();if($.quickReplyAction!==void 0)pY.encode($.quickReplyAction,Q.uint32(66).fork()).join();if($.recentEmojiWeightsAction!==void 0)uY.encode($.recentEmojiWeightsAction,Q.uint32(90).fork()).join();if($.labelEditAction!==void 0)YY.encode($.labelEditAction,Q.uint32(114).fork()).join();if($.labelAssociationAction!==void 0)XY.encode($.labelAssociationAction,Q.uint32(122).fork()).join();if($.localeSetting!==void 0)GY.encode($.localeSetting,Q.uint32(130).fork()).join();if($.archiveChatAction!==void 0)I9.encode($.archiveChatAction,Q.uint32(138).fork()).join();if($.deleteMessageForMeAction!==void 0)e9.encode($.deleteMessageForMeAction,Q.uint32(146).fork()).join();if($.keyExpiration!==void 0)ZY.encode($.keyExpiration,Q.uint32(154).fork()).join();if($.markChatAsReadAction!==void 0)DY.encode($.markChatAsReadAction,Q.uint32(162).fork()).join();if($.clearChatAction!==void 0)d9.encode($.clearChatAction,Q.uint32(170).fork()).join();if($.deleteChatAction!==void 0)a9.encode($.deleteChatAction,Q.uint32(178).fork()).join();if($.unarchiveChatsSetting!==void 0)eY.encode($.unarchiveChatsSetting,Q.uint32(186).fork()).join();if($.primaryFeature!==void 0)TY.encode($.primaryFeature,Q.uint32(194).fork()).join();if($.androidUnsupportedActions!==void 0)S9.encode($.androidUnsupportedActions,Q.uint32(210).fork()).join();if($.agentAction!==void 0)M9.encode($.agentAction,Q.uint32(218).fork()).join();if($.subscriptionAction!==void 0)oY.encode($.subscriptionAction,Q.uint32(226).fork()).join();if($.userStatusMuteAction!==void 0)$5.encode($.userStatusMuteAction,Q.uint32(234).fork()).join();if($.timeFormatAction!==void 0)aY.encode($.timeFormatAction,Q.uint32(242).fork()).join();if($.nuxAction!==void 0)AY.encode($.nuxAction,Q.uint32(250).fork()).join();if($.primaryVersionAction!==void 0)yY.encode($.primaryVersionAction,Q.uint32(258).fork()).join();if($.stickerAction!==void 0)uQ.encode($.stickerAction,Q.uint32(266).fork()).join();if($.removeRecentStickerAction!==void 0)wY.encode($.removeRecentStickerAction,Q.uint32(274).fork()).join();if($.chatAssignment!==void 0)j9.encode($.chatAssignment,Q.uint32(282).fork()).join();if($.chatAssignmentOpenedStatus!==void 0)c9.encode($.chatAssignmentOpenedStatus,Q.uint32(290).fork()).join();if($.pnForLidChatAction!==void 0)IY.encode($.pnForLidChatAction,Q.uint32(298).fork()).join();if($.marketingMessageAction!==void 0)FY.encode($.marketingMessageAction,Q.uint32(306).fork()).join();if($.marketingMessageBroadcastAction!==void 0)LY.encode($.marketingMessageBroadcastAction,Q.uint32(314).fork()).join();if($.externalWebBetaAction!==void 0)QY.encode($.externalWebBetaAction,Q.uint32(322).fork()).join();if($.privacySettingRelayAllCalls!==void 0)_Y.encode($.privacySettingRelayAllCalls,Q.uint32(330).fork()).join();if($.callLogAction!==void 0)w9.encode($.callLogAction,Q.uint32(338).fork()).join();if($.ugcBot!==void 0)sY.encode($.ugcBot,Q.uint32(346).fork()).join();if($.statusPrivacy!==void 0)nY.encode($.statusPrivacy,Q.uint32(354).fork()).join();if($.botWelcomeRequestAction!==void 0)f9.encode($.botWelcomeRequestAction,Q.uint32(362).fork()).join();if($.deleteIndividualCallLog!==void 0)s9.encode($.deleteIndividualCallLog,Q.uint32(370).fork()).join();if($.labelReorderingAction!==void 0)VY.encode($.labelReorderingAction,Q.uint32(378).fork()).join();if($.paymentInfoAction!==void 0)MY.encode($.paymentInfoAction,Q.uint32(386).fork()).join();if($.customPaymentMethodsAction!==void 0)r9.encode($.customPaymentMethodsAction,Q.uint32(394).fork()).join();if($.lockChatAction!==void 0)UY.encode($.lockChatAction,Q.uint32(402).fork()).join();if($.chatLockSettings!==void 0)HQ.encode($.chatLockSettings,Q.uint32(410).fork()).join();if($.wamoUserIdentifierAction!==void 0)Z5.encode($.wamoUserIdentifierAction,Q.uint32(418).fork()).join();if($.privacySettingDisableLinkPreviewsAction!==void 0)fY.encode($.privacySettingDisableLinkPreviewsAction,Q.uint32(426).fork()).join();if($.deviceCapabilities!==void 0)g$.encode($.deviceCapabilities,Q.uint32(434).fork()).join();if($.noteEditAction!==void 0)OY.encode($.noteEditAction,Q.uint32(442).fork()).join();if($.favoritesAction!==void 0)JY.encode($.favoritesAction,Q.uint32(450).fork()).join();if($.merchantPaymentPartnerAction!==void 0)PY.encode($.merchantPaymentPartnerAction,Q.uint32(458).fork()).join();if($.waffleAccountLinkStateAction!==void 0)q5.encode($.waffleAccountLinkStateAction,Q.uint32(466).fork()).join();if($.usernameChatStartMode!==void 0)Q5.encode($.usernameChatStartMode,Q.uint32(474).fork()).join();if($.notificationActivitySettingAction!==void 0)RY.encode($.notificationActivitySettingAction,Q.uint32(482).fork()).join();if($.lidContactAction!==void 0)zY.encode($.lidContactAction,Q.uint32(490).fork()).join();if($.ctwaPerCustomerDataSharingAction!==void 0)i9.encode($.ctwaPerCustomerDataSharingAction,Q.uint32(498).fork()).join();if($.paymentTosAction!==void 0)WY.encode($.paymentTosAction,Q.uint32(506).fork()).join();if($.privacySettingChannelsPersonalisedRecommendationAction!==void 0)vY.encode($.privacySettingChannelsPersonalisedRecommendationAction,Q.uint32(514).fork()).join();if($.detectedOutcomesStatusAction!==void 0)$Y.encode($.detectedOutcomesStatusAction,Q.uint32(530).fork()).join();if($.maibaAiFeaturesControlAction!==void 0)CY.encode($.maibaAiFeaturesControlAction,Q.uint32(546).fork()).join();if($.businessBroadcastListAction!==void 0)u9.encode($.businessBroadcastListAction,Q.uint32(554).fork()).join();if($.musicUserIdAction!==void 0)kY.encode($.musicUserIdAction,Q.uint32(562).fork()).join();if($.statusPostOptInNotificationPreferencesAction!==void 0)dY.encode($.statusPostOptInNotificationPreferencesAction,Q.uint32(570).fork()).join();if($.avatarUpdatedAction!==void 0)y9.encode($.avatarUpdatedAction,Q.uint32(578).fork()).join();if($.privateProcessingSettingAction!==void 0)hY.encode($.privateProcessingSettingAction,Q.uint32(594).fork()).join();if($.newsletterSavedInterestsAction!==void 0)NY.encode($.newsletterSavedInterestsAction,Q.uint32(602).fork()).join();if($.aiThreadRenameAction!==void 0)W9.encode($.aiThreadRenameAction,Q.uint32(610).fork()).join();if($.interactiveMessageAction!==void 0)qY.encode($.interactiveMessageAction,Q.uint32(618).fork()).join();if($.settingsSyncAction!==void 0)jY.encode($.settingsSyncAction,Q.uint32(626).fork()).join();if($.outContactAction!==void 0)EY.encode($.outContactAction,Q.uint32(634).fork()).join();if($.nctSaltSyncAction!==void 0)BY.encode($.nctSaltSyncAction,Q.uint32(642).fork()).join();if($.businessBroadcastCampaignAction!==void 0)l9.encode($.businessBroadcastCampaignAction,Q.uint32(650).fork()).join();if($.businessBroadcastInsightsAction!==void 0)p9.encode($.businessBroadcastInsightsAction,Q.uint32(658).fork()).join();if($.customerDataAction!==void 0)t9.encode($.customerDataAction,Q.uint32(666).fork()).join();if($.subscriptionsSyncV2Action!==void 0)iY.encode($.subscriptionsSyncV2Action,Q.uint32(674).fork()).join();if($.threadPinAction!==void 0)tY.encode($.threadPinAction,Q.uint32(682).fork()).join();if($.autoOrganizeBusinessChatSetting!==void 0)T9.encode($.autoOrganizeBusinessChatSetting,Q.uint32(690).fork()).join();if($.bizAiSettingsNudgeAction!==void 0)v9.encode($.bizAiSettingsNudgeAction,Q.uint32(698).fork()).join();if($.coexV2VersionAction!==void 0)n9.encode($.coexV2VersionAction,Q.uint32(706).fork()).join();if($.wasaRootSecretAction!==void 0)J5.encode($.wasaRootSecretAction,Q.uint32(714).fork()).join();if($.bubbleLockMessageAction!==void 0)h9.encode($.bubbleLockMessageAction,Q.uint32(722).fork()).join();if($.labelSublistAction!==void 0)HY.encode($.labelSublistAction,Q.uint32(730).fork()).join();if($.deviceCapabilitiesV2!==void 0)g$.encode($.deviceCapabilitiesV2,Q.uint32(738).fork()).join();if($.ctwaMessageReceivedAction!==void 0)o9.encode($.ctwaMessageReceivedAction,Q.uint32(746).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.timestamp=J.int64Value();continue}case 2:{if(K!==18)break;q.starAction=cY.decode(J,J.uint32(),q.starAction);continue}case 3:{if(K!==26)break;q.contactAction=b9.decode(J,J.uint32(),q.contactAction);continue}case 4:{if(K!==34)break;q.muteAction=xY.decode(J,J.uint32(),q.muteAction);continue}case 5:{if(K!==42)break;q.pinAction=SY.decode(J,J.uint32(),q.pinAction);continue}case 7:{if(K!==58)break;q.pushNameSetting=lY.decode(J,J.uint32(),q.pushNameSetting);continue}case 8:{if(K!==66)break;q.quickReplyAction=pY.decode(J,J.uint32(),q.quickReplyAction);continue}case 11:{if(K!==90)break;q.recentEmojiWeightsAction=uY.decode(J,J.uint32(),q.recentEmojiWeightsAction);continue}case 14:{if(K!==114)break;q.labelEditAction=YY.decode(J,J.uint32(),q.labelEditAction);continue}case 15:{if(K!==122)break;q.labelAssociationAction=XY.decode(J,J.uint32(),q.labelAssociationAction);continue}case 16:{if(K!==130)break;q.localeSetting=GY.decode(J,J.uint32(),q.localeSetting);continue}case 17:{if(K!==138)break;q.archiveChatAction=I9.decode(J,J.uint32(),q.archiveChatAction);continue}case 18:{if(K!==146)break;q.deleteMessageForMeAction=e9.decode(J,J.uint32(),q.deleteMessageForMeAction);continue}case 19:{if(K!==154)break;q.keyExpiration=ZY.decode(J,J.uint32(),q.keyExpiration);continue}case 20:{if(K!==162)break;q.markChatAsReadAction=DY.decode(J,J.uint32(),q.markChatAsReadAction);continue}case 21:{if(K!==170)break;q.clearChatAction=d9.decode(J,J.uint32(),q.clearChatAction);continue}case 22:{if(K!==178)break;q.deleteChatAction=a9.decode(J,J.uint32(),q.deleteChatAction);continue}case 23:{if(K!==186)break;q.unarchiveChatsSetting=eY.decode(J,J.uint32(),q.unarchiveChatsSetting);continue}case 24:{if(K!==194)break;q.primaryFeature=TY.decode(J,J.uint32(),q.primaryFeature);continue}case 26:{if(K!==210)break;q.androidUnsupportedActions=S9.decode(J,J.uint32(),q.androidUnsupportedActions);continue}case 27:{if(K!==218)break;q.agentAction=M9.decode(J,J.uint32(),q.agentAction);continue}case 28:{if(K!==226)break;q.subscriptionAction=oY.decode(J,J.uint32(),q.subscriptionAction);continue}case 29:{if(K!==234)break;q.userStatusMuteAction=$5.decode(J,J.uint32(),q.userStatusMuteAction);continue}case 30:{if(K!==242)break;q.timeFormatAction=aY.decode(J,J.uint32(),q.timeFormatAction);continue}case 31:{if(K!==250)break;q.nuxAction=AY.decode(J,J.uint32(),q.nuxAction);continue}case 32:{if(K!==258)break;q.primaryVersionAction=yY.decode(J,J.uint32(),q.primaryVersionAction);continue}case 33:{if(K!==266)break;q.stickerAction=uQ.decode(J,J.uint32(),q.stickerAction);continue}case 34:{if(K!==274)break;q.removeRecentStickerAction=wY.decode(J,J.uint32(),q.removeRecentStickerAction);continue}case 35:{if(K!==282)break;q.chatAssignment=j9.decode(J,J.uint32(),q.chatAssignment);continue}case 36:{if(K!==290)break;q.chatAssignmentOpenedStatus=c9.decode(J,J.uint32(),q.chatAssignmentOpenedStatus);continue}case 37:{if(K!==298)break;q.pnForLidChatAction=IY.decode(J,J.uint32(),q.pnForLidChatAction);continue}case 38:{if(K!==306)break;q.marketingMessageAction=FY.decode(J,J.uint32(),q.marketingMessageAction);continue}case 39:{if(K!==314)break;q.marketingMessageBroadcastAction=LY.decode(J,J.uint32(),q.marketingMessageBroadcastAction);continue}case 40:{if(K!==322)break;q.externalWebBetaAction=QY.decode(J,J.uint32(),q.externalWebBetaAction);continue}case 41:{if(K!==330)break;q.privacySettingRelayAllCalls=_Y.decode(J,J.uint32(),q.privacySettingRelayAllCalls);continue}case 42:{if(K!==338)break;q.callLogAction=w9.decode(J,J.uint32(),q.callLogAction);continue}case 43:{if(K!==346)break;q.ugcBot=sY.decode(J,J.uint32(),q.ugcBot);continue}case 44:{if(K!==354)break;q.statusPrivacy=nY.decode(J,J.uint32(),q.statusPrivacy);continue}case 45:{if(K!==362)break;q.botWelcomeRequestAction=f9.decode(J,J.uint32(),q.botWelcomeRequestAction);continue}case 46:{if(K!==370)break;q.deleteIndividualCallLog=s9.decode(J,J.uint32(),q.deleteIndividualCallLog);continue}case 47:{if(K!==378)break;q.labelReorderingAction=VY.decode(J,J.uint32(),q.labelReorderingAction);continue}case 48:{if(K!==386)break;q.paymentInfoAction=MY.decode(J,J.uint32(),q.paymentInfoAction);continue}case 49:{if(K!==394)break;q.customPaymentMethodsAction=r9.decode(J,J.uint32(),q.customPaymentMethodsAction);continue}case 50:{if(K!==402)break;q.lockChatAction=UY.decode(J,J.uint32(),q.lockChatAction);continue}case 51:{if(K!==410)break;q.chatLockSettings=HQ.decode(J,J.uint32(),q.chatLockSettings);continue}case 52:{if(K!==418)break;q.wamoUserIdentifierAction=Z5.decode(J,J.uint32(),q.wamoUserIdentifierAction);continue}case 53:{if(K!==426)break;q.privacySettingDisableLinkPreviewsAction=fY.decode(J,J.uint32(),q.privacySettingDisableLinkPreviewsAction);continue}case 54:{if(K!==434)break;q.deviceCapabilities=g$.decode(J,J.uint32(),q.deviceCapabilities);continue}case 55:{if(K!==442)break;q.noteEditAction=OY.decode(J,J.uint32(),q.noteEditAction);continue}case 56:{if(K!==450)break;q.favoritesAction=JY.decode(J,J.uint32(),q.favoritesAction);continue}case 57:{if(K!==458)break;q.merchantPaymentPartnerAction=PY.decode(J,J.uint32(),q.merchantPaymentPartnerAction);continue}case 58:{if(K!==466)break;q.waffleAccountLinkStateAction=q5.decode(J,J.uint32(),q.waffleAccountLinkStateAction);continue}case 59:{if(K!==474)break;q.usernameChatStartMode=Q5.decode(J,J.uint32(),q.usernameChatStartMode);continue}case 60:{if(K!==482)break;q.notificationActivitySettingAction=RY.decode(J,J.uint32(),q.notificationActivitySettingAction);continue}case 61:{if(K!==490)break;q.lidContactAction=zY.decode(J,J.uint32(),q.lidContactAction);continue}case 62:{if(K!==498)break;q.ctwaPerCustomerDataSharingAction=i9.decode(J,J.uint32(),q.ctwaPerCustomerDataSharingAction);continue}case 63:{if(K!==506)break;q.paymentTosAction=WY.decode(J,J.uint32(),q.paymentTosAction);continue}case 64:{if(K!==514)break;q.privacySettingChannelsPersonalisedRecommendationAction=vY.decode(J,J.uint32(),q.privacySettingChannelsPersonalisedRecommendationAction);continue}case 66:{if(K!==530)break;q.detectedOutcomesStatusAction=$Y.decode(J,J.uint32(),q.detectedOutcomesStatusAction);continue}case 68:{if(K!==546)break;q.maibaAiFeaturesControlAction=CY.decode(J,J.uint32(),q.maibaAiFeaturesControlAction);continue}case 69:{if(K!==554)break;q.businessBroadcastListAction=u9.decode(J,J.uint32(),q.businessBroadcastListAction);continue}case 70:{if(K!==562)break;q.musicUserIdAction=kY.decode(J,J.uint32(),q.musicUserIdAction);continue}case 71:{if(K!==570)break;q.statusPostOptInNotificationPreferencesAction=dY.decode(J,J.uint32(),q.statusPostOptInNotificationPreferencesAction);continue}case 72:{if(K!==578)break;q.avatarUpdatedAction=y9.decode(J,J.uint32(),q.avatarUpdatedAction);continue}case 74:{if(K!==594)break;q.privateProcessingSettingAction=hY.decode(J,J.uint32(),q.privateProcessingSettingAction);continue}case 75:{if(K!==602)break;q.newsletterSavedInterestsAction=NY.decode(J,J.uint32(),q.newsletterSavedInterestsAction);continue}case 76:{if(K!==610)break;q.aiThreadRenameAction=W9.decode(J,J.uint32(),q.aiThreadRenameAction);continue}case 77:{if(K!==618)break;q.interactiveMessageAction=qY.decode(J,J.uint32(),q.interactiveMessageAction);continue}case 78:{if(K!==626)break;q.settingsSyncAction=jY.decode(J,J.uint32(),q.settingsSyncAction);continue}case 79:{if(K!==634)break;q.outContactAction=EY.decode(J,J.uint32(),q.outContactAction);continue}case 80:{if(K!==642)break;q.nctSaltSyncAction=BY.decode(J,J.uint32(),q.nctSaltSyncAction);continue}case 81:{if(K!==650)break;q.businessBroadcastCampaignAction=l9.decode(J,J.uint32(),q.businessBroadcastCampaignAction);continue}case 82:{if(K!==658)break;q.businessBroadcastInsightsAction=p9.decode(J,J.uint32(),q.businessBroadcastInsightsAction);continue}case 83:{if(K!==666)break;q.customerDataAction=t9.decode(J,J.uint32(),q.customerDataAction);continue}case 84:{if(K!==674)break;q.subscriptionsSyncV2Action=iY.decode(J,J.uint32(),q.subscriptionsSyncV2Action);continue}case 85:{if(K!==682)break;q.threadPinAction=tY.decode(J,J.uint32(),q.threadPinAction);continue}case 86:{if(K!==690)break;q.autoOrganizeBusinessChatSetting=T9.decode(J,J.uint32(),q.autoOrganizeBusinessChatSetting);continue}case 87:{if(K!==698)break;q.bizAiSettingsNudgeAction=v9.decode(J,J.uint32(),q.bizAiSettingsNudgeAction);continue}case 88:{if(K!==706)break;q.coexV2VersionAction=n9.decode(J,J.uint32(),q.coexV2VersionAction);continue}case 89:{if(K!==714)break;q.wasaRootSecretAction=J5.decode(J,J.uint32(),q.wasaRootSecretAction);continue}case 90:{if(K!==722)break;q.bubbleLockMessageAction=h9.decode(J,J.uint32(),q.bubbleLockMessageAction);continue}case 91:{if(K!==730)break;q.labelSublistAction=HY.decode(J,J.uint32(),q.labelSublistAction);continue}case 92:{if(K!==738)break;q.deviceCapabilitiesV2=g$.decode(J,J.uint32(),q.deviceCapabilitiesV2);continue}case 93:{if(K!==746)break;q.ctwaMessageReceivedAction=o9.decode(J,J.uint32(),q.ctwaMessageReceivedAction);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return gQ.fromPartial($??{})},fromPartial($){let Q=hk();return Q.timestamp=$.timestamp??void 0,Q.starAction=$.starAction!==void 0&&$.starAction!==null?cY.fromPartial($.starAction):void 0,Q.contactAction=$.contactAction!==void 0&&$.contactAction!==null?b9.fromPartial($.contactAction):void 0,Q.muteAction=$.muteAction!==void 0&&$.muteAction!==null?xY.fromPartial($.muteAction):void 0,Q.pinAction=$.pinAction!==void 0&&$.pinAction!==null?SY.fromPartial($.pinAction):void 0,Q.pushNameSetting=$.pushNameSetting!==void 0&&$.pushNameSetting!==null?lY.fromPartial($.pushNameSetting):void 0,Q.quickReplyAction=$.quickReplyAction!==void 0&&$.quickReplyAction!==null?pY.fromPartial($.quickReplyAction):void 0,Q.recentEmojiWeightsAction=$.recentEmojiWeightsAction!==void 0&&$.recentEmojiWeightsAction!==null?uY.fromPartial($.recentEmojiWeightsAction):void 0,Q.labelEditAction=$.labelEditAction!==void 0&&$.labelEditAction!==null?YY.fromPartial($.labelEditAction):void 0,Q.labelAssociationAction=$.labelAssociationAction!==void 0&&$.labelAssociationAction!==null?XY.fromPartial($.labelAssociationAction):void 0,Q.localeSetting=$.localeSetting!==void 0&&$.localeSetting!==null?GY.fromPartial($.localeSetting):void 0,Q.archiveChatAction=$.archiveChatAction!==void 0&&$.archiveChatAction!==null?I9.fromPartial($.archiveChatAction):void 0,Q.deleteMessageForMeAction=$.deleteMessageForMeAction!==void 0&&$.deleteMessageForMeAction!==null?e9.fromPartial($.deleteMessageForMeAction):void 0,Q.keyExpiration=$.keyExpiration!==void 0&&$.keyExpiration!==null?ZY.fromPartial($.keyExpiration):void 0,Q.markChatAsReadAction=$.markChatAsReadAction!==void 0&&$.markChatAsReadAction!==null?DY.fromPartial($.markChatAsReadAction):void 0,Q.clearChatAction=$.clearChatAction!==void 0&&$.clearChatAction!==null?d9.fromPartial($.clearChatAction):void 0,Q.deleteChatAction=$.deleteChatAction!==void 0&&$.deleteChatAction!==null?a9.fromPartial($.deleteChatAction):void 0,Q.unarchiveChatsSetting=$.unarchiveChatsSetting!==void 0&&$.unarchiveChatsSetting!==null?eY.fromPartial($.unarchiveChatsSetting):void 0,Q.primaryFeature=$.primaryFeature!==void 0&&$.primaryFeature!==null?TY.fromPartial($.primaryFeature):void 0,Q.androidUnsupportedActions=$.androidUnsupportedActions!==void 0&&$.androidUnsupportedActions!==null?S9.fromPartial($.androidUnsupportedActions):void 0,Q.agentAction=$.agentAction!==void 0&&$.agentAction!==null?M9.fromPartial($.agentAction):void 0,Q.subscriptionAction=$.subscriptionAction!==void 0&&$.subscriptionAction!==null?oY.fromPartial($.subscriptionAction):void 0,Q.userStatusMuteAction=$.userStatusMuteAction!==void 0&&$.userStatusMuteAction!==null?$5.fromPartial($.userStatusMuteAction):void 0,Q.timeFormatAction=$.timeFormatAction!==void 0&&$.timeFormatAction!==null?aY.fromPartial($.timeFormatAction):void 0,Q.nuxAction=$.nuxAction!==void 0&&$.nuxAction!==null?AY.fromPartial($.nuxAction):void 0,Q.primaryVersionAction=$.primaryVersionAction!==void 0&&$.primaryVersionAction!==null?yY.fromPartial($.primaryVersionAction):void 0,Q.stickerAction=$.stickerAction!==void 0&&$.stickerAction!==null?uQ.fromPartial($.stickerAction):void 0,Q.removeRecentStickerAction=$.removeRecentStickerAction!==void 0&&$.removeRecentStickerAction!==null?wY.fromPartial($.removeRecentStickerAction):void 0,Q.chatAssignment=$.chatAssignment!==void 0&&$.chatAssignment!==null?j9.fromPartial($.chatAssignment):void 0,Q.chatAssignmentOpenedStatus=$.chatAssignmentOpenedStatus!==void 0&&$.chatAssignmentOpenedStatus!==null?c9.fromPartial($.chatAssignmentOpenedStatus):void 0,Q.pnForLidChatAction=$.pnForLidChatAction!==void 0&&$.pnForLidChatAction!==null?IY.fromPartial($.pnForLidChatAction):void 0,Q.marketingMessageAction=$.marketingMessageAction!==void 0&&$.marketingMessageAction!==null?FY.fromPartial($.marketingMessageAction):void 0,Q.marketingMessageBroadcastAction=$.marketingMessageBroadcastAction!==void 0&&$.marketingMessageBroadcastAction!==null?LY.fromPartial($.marketingMessageBroadcastAction):void 0,Q.externalWebBetaAction=$.externalWebBetaAction!==void 0&&$.externalWebBetaAction!==null?QY.fromPartial($.externalWebBetaAction):void 0,Q.privacySettingRelayAllCalls=$.privacySettingRelayAllCalls!==void 0&&$.privacySettingRelayAllCalls!==null?_Y.fromPartial($.privacySettingRelayAllCalls):void 0,Q.callLogAction=$.callLogAction!==void 0&&$.callLogAction!==null?w9.fromPartial($.callLogAction):void 0,Q.ugcBot=$.ugcBot!==void 0&&$.ugcBot!==null?sY.fromPartial($.ugcBot):void 0,Q.statusPrivacy=$.statusPrivacy!==void 0&&$.statusPrivacy!==null?nY.fromPartial($.statusPrivacy):void 0,Q.botWelcomeRequestAction=$.botWelcomeRequestAction!==void 0&&$.botWelcomeRequestAction!==null?f9.fromPartial($.botWelcomeRequestAction):void 0,Q.deleteIndividualCallLog=$.deleteIndividualCallLog!==void 0&&$.deleteIndividualCallLog!==null?s9.fromPartial($.deleteIndividualCallLog):void 0,Q.labelReorderingAction=$.labelReorderingAction!==void 0&&$.labelReorderingAction!==null?VY.fromPartial($.labelReorderingAction):void 0,Q.paymentInfoAction=$.paymentInfoAction!==void 0&&$.paymentInfoAction!==null?MY.fromPartial($.paymentInfoAction):void 0,Q.customPaymentMethodsAction=$.customPaymentMethodsAction!==void 0&&$.customPaymentMethodsAction!==null?r9.fromPartial($.customPaymentMethodsAction):void 0,Q.lockChatAction=$.lockChatAction!==void 0&&$.lockChatAction!==null?UY.fromPartial($.lockChatAction):void 0,Q.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?HQ.fromPartial($.chatLockSettings):void 0,Q.wamoUserIdentifierAction=$.wamoUserIdentifierAction!==void 0&&$.wamoUserIdentifierAction!==null?Z5.fromPartial($.wamoUserIdentifierAction):void 0,Q.privacySettingDisableLinkPreviewsAction=$.privacySettingDisableLinkPreviewsAction!==void 0&&$.privacySettingDisableLinkPreviewsAction!==null?fY.fromPartial($.privacySettingDisableLinkPreviewsAction):void 0,Q.deviceCapabilities=$.deviceCapabilities!==void 0&&$.deviceCapabilities!==null?g$.fromPartial($.deviceCapabilities):void 0,Q.noteEditAction=$.noteEditAction!==void 0&&$.noteEditAction!==null?OY.fromPartial($.noteEditAction):void 0,Q.favoritesAction=$.favoritesAction!==void 0&&$.favoritesAction!==null?JY.fromPartial($.favoritesAction):void 0,Q.merchantPaymentPartnerAction=$.merchantPaymentPartnerAction!==void 0&&$.merchantPaymentPartnerAction!==null?PY.fromPartial($.merchantPaymentPartnerAction):void 0,Q.waffleAccountLinkStateAction=$.waffleAccountLinkStateAction!==void 0&&$.waffleAccountLinkStateAction!==null?q5.fromPartial($.waffleAccountLinkStateAction):void 0,Q.usernameChatStartMode=$.usernameChatStartMode!==void 0&&$.usernameChatStartMode!==null?Q5.fromPartial($.usernameChatStartMode):void 0,Q.notificationActivitySettingAction=$.notificationActivitySettingAction!==void 0&&$.notificationActivitySettingAction!==null?RY.fromPartial($.notificationActivitySettingAction):void 0,Q.lidContactAction=$.lidContactAction!==void 0&&$.lidContactAction!==null?zY.fromPartial($.lidContactAction):void 0,Q.ctwaPerCustomerDataSharingAction=$.ctwaPerCustomerDataSharingAction!==void 0&&$.ctwaPerCustomerDataSharingAction!==null?i9.fromPartial($.ctwaPerCustomerDataSharingAction):void 0,Q.paymentTosAction=$.paymentTosAction!==void 0&&$.paymentTosAction!==null?WY.fromPartial($.paymentTosAction):void 0,Q.privacySettingChannelsPersonalisedRecommendationAction=$.privacySettingChannelsPersonalisedRecommendationAction!==void 0&&$.privacySettingChannelsPersonalisedRecommendationAction!==null?vY.fromPartial($.privacySettingChannelsPersonalisedRecommendationAction):void 0,Q.detectedOutcomesStatusAction=$.detectedOutcomesStatusAction!==void 0&&$.detectedOutcomesStatusAction!==null?$Y.fromPartial($.detectedOutcomesStatusAction):void 0,Q.maibaAiFeaturesControlAction=$.maibaAiFeaturesControlAction!==void 0&&$.maibaAiFeaturesControlAction!==null?CY.fromPartial($.maibaAiFeaturesControlAction):void 0,Q.businessBroadcastListAction=$.businessBroadcastListAction!==void 0&&$.businessBroadcastListAction!==null?u9.fromPartial($.businessBroadcastListAction):void 0,Q.musicUserIdAction=$.musicUserIdAction!==void 0&&$.musicUserIdAction!==null?kY.fromPartial($.musicUserIdAction):void 0,Q.statusPostOptInNotificationPreferencesAction=$.statusPostOptInNotificationPreferencesAction!==void 0&&$.statusPostOptInNotificationPreferencesAction!==null?dY.fromPartial($.statusPostOptInNotificationPreferencesAction):void 0,Q.avatarUpdatedAction=$.avatarUpdatedAction!==void 0&&$.avatarUpdatedAction!==null?y9.fromPartial($.avatarUpdatedAction):void 0,Q.privateProcessingSettingAction=$.privateProcessingSettingAction!==void 0&&$.privateProcessingSettingAction!==null?hY.fromPartial($.privateProcessingSettingAction):void 0,Q.newsletterSavedInterestsAction=$.newsletterSavedInterestsAction!==void 0&&$.newsletterSavedInterestsAction!==null?NY.fromPartial($.newsletterSavedInterestsAction):void 0,Q.aiThreadRenameAction=$.aiThreadRenameAction!==void 0&&$.aiThreadRenameAction!==null?W9.fromPartial($.aiThreadRenameAction):void 0,Q.interactiveMessageAction=$.interactiveMessageAction!==void 0&&$.interactiveMessageAction!==null?qY.fromPartial($.interactiveMessageAction):void 0,Q.settingsSyncAction=$.settingsSyncAction!==void 0&&$.settingsSyncAction!==null?jY.fromPartial($.settingsSyncAction):void 0,Q.outContactAction=$.outContactAction!==void 0&&$.outContactAction!==null?EY.fromPartial($.outContactAction):void 0,Q.nctSaltSyncAction=$.nctSaltSyncAction!==void 0&&$.nctSaltSyncAction!==null?BY.fromPartial($.nctSaltSyncAction):void 0,Q.businessBroadcastCampaignAction=$.businessBroadcastCampaignAction!==void 0&&$.businessBroadcastCampaignAction!==null?l9.fromPartial($.businessBroadcastCampaignAction):void 0,Q.businessBroadcastInsightsAction=$.businessBroadcastInsightsAction!==void 0&&$.businessBroadcastInsightsAction!==null?p9.fromPartial($.businessBroadcastInsightsAction):void 0,Q.customerDataAction=$.customerDataAction!==void 0&&$.customerDataAction!==null?t9.fromPartial($.customerDataAction):void 0,Q.subscriptionsSyncV2Action=$.subscriptionsSyncV2Action!==void 0&&$.subscriptionsSyncV2Action!==null?iY.fromPartial($.subscriptionsSyncV2Action):void 0,Q.threadPinAction=$.threadPinAction!==void 0&&$.threadPinAction!==null?tY.fromPartial($.threadPinAction):void 0,Q.autoOrganizeBusinessChatSetting=$.autoOrganizeBusinessChatSetting!==void 0&&$.autoOrganizeBusinessChatSetting!==null?T9.fromPartial($.autoOrganizeBusinessChatSetting):void 0,Q.bizAiSettingsNudgeAction=$.bizAiSettingsNudgeAction!==void 0&&$.bizAiSettingsNudgeAction!==null?v9.fromPartial($.bizAiSettingsNudgeAction):void 0,Q.coexV2VersionAction=$.coexV2VersionAction!==void 0&&$.coexV2VersionAction!==null?n9.fromPartial($.coexV2VersionAction):void 0,Q.wasaRootSecretAction=$.wasaRootSecretAction!==void 0&&$.wasaRootSecretAction!==null?J5.fromPartial($.wasaRootSecretAction):void 0,Q.bubbleLockMessageAction=$.bubbleLockMessageAction!==void 0&&$.bubbleLockMessageAction!==null?h9.fromPartial($.bubbleLockMessageAction):void 0,Q.labelSublistAction=$.labelSublistAction!==void 0&&$.labelSublistAction!==null?HY.fromPartial($.labelSublistAction):void 0,Q.deviceCapabilitiesV2=$.deviceCapabilitiesV2!==void 0&&$.deviceCapabilitiesV2!==null?g$.fromPartial($.deviceCapabilitiesV2):void 0,Q.ctwaMessageReceivedAction=$.ctwaMessageReceivedAction!==void 0&&$.ctwaMessageReceivedAction!==null?o9.fromPartial($.ctwaMessageReceivedAction):void 0,Q}};function lk(){return{}}var M9={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.deviceId!==void 0)Q.uint32(16).int32($.deviceId);if($.isDeleted!==void 0)Q.uint32(24).bool($.isDeleted);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}case 2:{if(K!==16)break;q.deviceId=J.int32();continue}case 3:{if(K!==24)break;q.isDeleted=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return M9.fromPartial($??{})},fromPartial($){let Q=lk();return Q.name=$.name??void 0,Q.deviceId=$.deviceId??void 0,Q.isDeleted=$.isDeleted??void 0,Q}};function pk(){return{}}var W9={encode($,Q=new H){if($.newTitle!==void 0)Q.uint32(10).string($.newTitle);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.newTitle=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return W9.fromPartial($??{})},fromPartial($){let Q=pk();return Q.newTitle=$.newTitle??void 0,Q}};function uk(){return{}}var S9={encode($,Q=new H){if($.allowed!==void 0)Q.uint32(8).bool($.allowed);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.allowed=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return S9.fromPartial($??{})},fromPartial($){let Q=uk();return Q.allowed=$.allowed??void 0,Q}};function wk(){return{}}var I9={encode($,Q=new H){if($.archived!==void 0)Q.uint32(8).bool($.archived);if($.messageRange!==void 0)G$.encode($.messageRange,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.archived=J.bool();continue}case 2:{if(K!==18)break;q.messageRange=G$.decode(J,J.uint32(),q.messageRange);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return I9.fromPartial($??{})},fromPartial($){let Q=wk();return Q.archived=$.archived??void 0,Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?G$.fromPartial($.messageRange):void 0,Q}};function jk(){return{}}var T9={encode($,Q=new H){if($.autoOrganize!==void 0)Q.uint32(8).bool($.autoOrganize);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.autoOrganize=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return T9.fromPartial($??{})},fromPartial($){let Q=jk();return Q.autoOrganize=$.autoOrganize??void 0,Q}};function ck(){return{}}var y9={encode($,Q=new H){if($.eventType!==void 0)Q.uint32(8).int32($.eventType);if($.recentAvatarStickers!==void 0&&$.recentAvatarStickers.length!==0)for(let Z of $.recentAvatarStickers)uQ.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ck();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.eventType=J.int32();continue}case 2:{if(K!==18)break;if(q.recentAvatarStickers===void 0)q.recentAvatarStickers=[];let V=uQ.decode(J,J.uint32());if(V!==void 0)q.recentAvatarStickers.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return y9.fromPartial($??{})},fromPartial($){let Q=ck();return Q.eventType=$.eventType??void 0,Q.recentAvatarStickers=$.recentAvatarStickers?.map((Z)=>uQ.fromPartial(Z))||void 0,Q}};function dk(){return{}}var v9={encode($,Q=new H){if($.category!==void 0)Q.uint32(8).int32($.category);if($.version!==void 0)Q.uint32(16).int64($.version);if($.updatedAtMs!==void 0)Q.uint32(24).int64($.updatedAtMs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.category=J.int32();continue}case 2:{if(K!==16)break;q.version=J.int64Value();continue}case 3:{if(K!==24)break;q.updatedAtMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return v9.fromPartial($??{})},fromPartial($){let Q=dk();return Q.category=$.category??void 0,Q.version=$.version??void 0,Q.updatedAtMs=$.updatedAtMs??void 0,Q}};function nk(){return{}}var f9={encode($,Q=new H){if($.isSent!==void 0)Q.uint32(8).bool($.isSent);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isSent=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return f9.fromPartial($??{})},fromPartial($){let Q=nk();return Q.isSent=$.isSent??void 0,Q}};function bk(){return{}}var _9={encode($,Q=new H){if($.lidJid!==void 0)Q.uint32(10).string($.lidJid);if($.pnJid!==void 0)Q.uint32(18).string($.pnJid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.lidJid=J.string();continue}case 2:{if(K!==18)break;q.pnJid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _9.fromPartial($??{})},fromPartial($){let Q=bk();return Q.lidJid=$.lidJid??void 0,Q.pnJid=$.pnJid??void 0,Q}};function ok(){return{}}var h9={encode($,Q=new H){if($.locked!==void 0)Q.uint32(8).bool($.locked);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ok();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.locked=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return h9.fromPartial($??{})},fromPartial($){let Q=ok();return Q.locked=$.locked??void 0,Q}};function ik(){return{}}var WE={encode($,Q=new H){if($.deleted!==void 0)Q.uint32(8).bool($.deleted);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ik();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.deleted=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return WE.fromPartial($??{})},fromPartial($){let Q=ik();return Q.deleted=$.deleted??void 0,Q}};function mk(){return{}}var l9={encode($,Q=new H){if($.deviceId!==void 0)Q.uint32(8).int32($.deviceId);if($.adId!==void 0)Q.uint32(18).string($.adId);if($.name!==void 0)Q.uint32(26).string($.name);if($.msgId!==void 0)Q.uint32(34).string($.msgId);if($.broadcastJid!==void 0)Q.uint32(42).string($.broadcastJid);if($.reservedQuota!==void 0)Q.uint32(48).int32($.reservedQuota);if($.scheduledTimestamp!==void 0)Q.uint32(56).int64($.scheduledTimestamp);if($.createTimestamp!==void 0)Q.uint32(64).int64($.createTimestamp);if($.status!==void 0)Q.uint32(72).int32($.status);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.deviceId=J.int32();continue}case 2:{if(K!==18)break;q.adId=J.string();continue}case 3:{if(K!==26)break;q.name=J.string();continue}case 4:{if(K!==34)break;q.msgId=J.string();continue}case 5:{if(K!==42)break;q.broadcastJid=J.string();continue}case 6:{if(K!==48)break;q.reservedQuota=J.int32();continue}case 7:{if(K!==56)break;q.scheduledTimestamp=J.int64Value();continue}case 8:{if(K!==64)break;q.createTimestamp=J.int64Value();continue}case 9:{if(K!==72)break;q.status=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return l9.fromPartial($??{})},fromPartial($){let Q=mk();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 gk(){return{}}var p9={encode($,Q=new H){if($.recipientCount!==void 0)Q.uint32(8).int32($.recipientCount);if($.deliveredCount!==void 0)Q.uint32(16).int32($.deliveredCount);if($.readCount!==void 0)Q.uint32(24).int32($.readCount);if($.repliedCount!==void 0)Q.uint32(32).int32($.repliedCount);if($.quickReplyCount!==void 0)Q.uint32(40).int32($.quickReplyCount);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.recipientCount=J.int32();continue}case 2:{if(K!==16)break;q.deliveredCount=J.int32();continue}case 3:{if(K!==24)break;q.readCount=J.int32();continue}case 4:{if(K!==32)break;q.repliedCount=J.int32();continue}case 5:{if(K!==40)break;q.quickReplyCount=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return p9.fromPartial($??{})},fromPartial($){let Q=gk();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 rk(){return{}}var u9={encode($,Q=new H){if($.deleted!==void 0)Q.uint32(8).bool($.deleted);if($.participants!==void 0&&$.participants.length!==0)for(let Z of $.participants)_9.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);if($.customAudienceFbid!==void 0)Q.uint32(50).string($.customAudienceFbid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.deleted=J.bool();continue}case 2:{if(K!==18)break;if(q.participants===void 0)q.participants=[];let V=_9.decode(J,J.uint32());if(V!==void 0)q.participants.push(V);continue}case 3:{if(K!==26)break;q.listName=J.string();continue}case 4:{if(K!==34)break;if(q.labelIds===void 0)q.labelIds=[];let V=J.string();if(V!==void 0)q.labelIds.push(V);continue}case 5:{if(K!==42)break;q.audienceExpression=J.string();continue}case 6:{if(K!==50)break;q.customAudienceFbid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return u9.fromPartial($??{})},fromPartial($){let Q=rk();return Q.deleted=$.deleted??void 0,Q.participants=$.participants?.map((Z)=>_9.fromPartial(Z))||void 0,Q.listName=$.listName??void 0,Q.labelIds=$.labelIds?.map((Z)=>Z)||void 0,Q.audienceExpression=$.audienceExpression??void 0,Q.customAudienceFbid=$.customAudienceFbid??void 0,Q}};function tk(){return{}}var w9={encode($,Q=new H){if($.callLogRecord!==void 0)VQ.encode($.callLogRecord,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.callLogRecord=VQ.decode(J,J.uint32(),q.callLogRecord);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return w9.fromPartial($??{})},fromPartial($){let Q=tk();return Q.callLogRecord=$.callLogRecord!==void 0&&$.callLogRecord!==null?VQ.fromPartial($.callLogRecord):void 0,Q}};function ak(){return{}}var j9={encode($,Q=new H){if($.deviceAgentId!==void 0)Q.uint32(10).string($.deviceAgentId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ak();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.deviceAgentId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return j9.fromPartial($??{})},fromPartial($){let Q=ak();return Q.deviceAgentId=$.deviceAgentId??void 0,Q}};function sk(){return{}}var c9={encode($,Q=new H){if($.chatOpened!==void 0)Q.uint32(8).bool($.chatOpened);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sk();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.chatOpened=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return c9.fromPartial($??{})},fromPartial($){let Q=sk();return Q.chatOpened=$.chatOpened??void 0,Q}};function ek(){return{}}var d9={encode($,Q=new H){if($.messageRange!==void 0)G$.encode($.messageRange,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ek();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.messageRange=G$.decode(J,J.uint32(),q.messageRange);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return d9.fromPartial($??{})},fromPartial($){let Q=ek();return Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?G$.fromPartial($.messageRange):void 0,Q}};function $x(){return{}}var n9={encode($,Q=new H){if($.version!==void 0)Q.uint32(8).uint64($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$x();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.version=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return n9.fromPartial($??{})},fromPartial($){let Q=$x();return Q.version=$.version??void 0,Q}};function Qx(){return{}}var b9={encode($,Q=new H){if($.fullName!==void 0)Q.uint32(10).string($.fullName);if($.firstName!==void 0)Q.uint32(18).string($.firstName);if($.lidJid!==void 0)Q.uint32(26).string($.lidJid);if($.saveOnPrimaryAddressbook!==void 0)Q.uint32(32).bool($.saveOnPrimaryAddressbook);if($.pnJid!==void 0)Q.uint32(42).string($.pnJid);if($.username!==void 0)Q.uint32(50).string($.username);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Qx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fullName=J.string();continue}case 2:{if(K!==18)break;q.firstName=J.string();continue}case 3:{if(K!==26)break;q.lidJid=J.string();continue}case 4:{if(K!==32)break;q.saveOnPrimaryAddressbook=J.bool();continue}case 5:{if(K!==42)break;q.pnJid=J.string();continue}case 6:{if(K!==50)break;q.username=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return b9.fromPartial($??{})},fromPartial($){let Q=Qx();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 Jx(){return{}}var o9={encode($,Q=new H){if($.isCtwaMessageReceived!==void 0)Q.uint32(8).bool($.isCtwaMessageReceived);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Jx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isCtwaMessageReceived=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return o9.fromPartial($??{})},fromPartial($){let Q=Jx();return Q.isCtwaMessageReceived=$.isCtwaMessageReceived??void 0,Q}};function Kx(){return{}}var i9={encode($,Q=new H){if($.isCtwaPerCustomerDataSharingEnabled!==void 0)Q.uint32(8).bool($.isCtwaPerCustomerDataSharingEnabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Kx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isCtwaPerCustomerDataSharingEnabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return i9.fromPartial($??{})},fromPartial($){let Q=Kx();return Q.isCtwaPerCustomerDataSharingEnabled=$.isCtwaPerCustomerDataSharingEnabled??void 0,Q}};function qx(){return{}}var m9={encode($,Q=new H){if($.credentialId!==void 0)Q.uint32(10).string($.credentialId);if($.country!==void 0)Q.uint32(18).string($.country);if($.type!==void 0)Q.uint32(26).string($.type);if($.metadata!==void 0&&$.metadata.length!==0)for(let Z of $.metadata)g9.encode(Z,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.credentialId=J.string();continue}case 2:{if(K!==18)break;q.country=J.string();continue}case 3:{if(K!==26)break;q.type=J.string();continue}case 4:{if(K!==34)break;if(q.metadata===void 0)q.metadata=[];let V=g9.decode(J,J.uint32());if(V!==void 0)q.metadata.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return m9.fromPartial($??{})},fromPartial($){let Q=qx();return Q.credentialId=$.credentialId??void 0,Q.country=$.country??void 0,Q.type=$.type??void 0,Q.metadata=$.metadata?.map((Z)=>g9.fromPartial(Z))||void 0,Q}};function Zx(){return{}}var g9={encode($,Q=new H){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)Q.uint32(18).string($.value);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Zx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=J.string();continue}case 2:{if(K!==18)break;q.value=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return g9.fromPartial($??{})},fromPartial($){let Q=Zx();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function Xx(){return{}}var r9={encode($,Q=new H){if($.customPaymentMethods!==void 0&&$.customPaymentMethods.length!==0)for(let Z of $.customPaymentMethods)m9.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Xx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.customPaymentMethods===void 0)q.customPaymentMethods=[];let V=m9.decode(J,J.uint32());if(V!==void 0)q.customPaymentMethods.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return r9.fromPartial($??{})},fromPartial($){let Q=Xx();return Q.customPaymentMethods=$.customPaymentMethods?.map((Z)=>m9.fromPartial(Z))||void 0,Q}};function Yx(){return{}}var t9={encode($,Q=new H){if($.chatJid!==void 0)Q.uint32(10).string($.chatJid);if($.contactType!==void 0)Q.uint32(16).int32($.contactType);if($.email!==void 0)Q.uint32(26).string($.email);if($.altPhoneNumbers!==void 0)Q.uint32(34).string($.altPhoneNumbers);if($.birthday!==void 0)Q.uint32(40).int64($.birthday);if($.address!==void 0)Q.uint32(50).string($.address);if($.acquisitionSource!==void 0)Q.uint32(56).int32($.acquisitionSource);if($.leadStage!==void 0)Q.uint32(64).int32($.leadStage);if($.lastOrder!==void 0)Q.uint32(72).int64($.lastOrder);if($.createdAt!==void 0)Q.uint32(80).int64($.createdAt);if($.modifiedAt!==void 0)Q.uint32(88).int64($.modifiedAt);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Yx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.chatJid=J.string();continue}case 2:{if(K!==16)break;q.contactType=J.int32();continue}case 3:{if(K!==26)break;q.email=J.string();continue}case 4:{if(K!==34)break;q.altPhoneNumbers=J.string();continue}case 5:{if(K!==40)break;q.birthday=J.int64Value();continue}case 6:{if(K!==50)break;q.address=J.string();continue}case 7:{if(K!==56)break;q.acquisitionSource=J.int32();continue}case 8:{if(K!==64)break;q.leadStage=J.int32();continue}case 9:{if(K!==72)break;q.lastOrder=J.int64Value();continue}case 10:{if(K!==80)break;q.createdAt=J.int64Value();continue}case 11:{if(K!==88)break;q.modifiedAt=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return t9.fromPartial($??{})},fromPartial($){let Q=Yx();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 Vx(){return{}}var a9={encode($,Q=new H){if($.messageRange!==void 0)G$.encode($.messageRange,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Vx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.messageRange=G$.decode(J,J.uint32(),q.messageRange);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return a9.fromPartial($??{})},fromPartial($){let Q=Vx();return Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?G$.fromPartial($.messageRange):void 0,Q}};function Hx(){return{}}var s9={encode($,Q=new H){if($.peerJid!==void 0)Q.uint32(10).string($.peerJid);if($.isIncoming!==void 0)Q.uint32(16).bool($.isIncoming);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Hx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.peerJid=J.string();continue}case 2:{if(K!==16)break;q.isIncoming=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return s9.fromPartial($??{})},fromPartial($){let Q=Hx();return Q.peerJid=$.peerJid??void 0,Q.isIncoming=$.isIncoming??void 0,Q}};function zx(){return{}}var e9={encode($,Q=new H){if($.deleteMedia!==void 0)Q.uint32(8).bool($.deleteMedia);if($.messageTimestamp!==void 0)Q.uint32(16).int64($.messageTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.deleteMedia=J.bool();continue}case 2:{if(K!==16)break;q.messageTimestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return e9.fromPartial($??{})},fromPartial($){let Q=zx();return Q.deleteMedia=$.deleteMedia??void 0,Q.messageTimestamp=$.messageTimestamp??void 0,Q}};function Gx(){return{}}var $Y={encode($,Q=new H){if($.isEnabled!==void 0)Q.uint32(8).bool($.isEnabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Gx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isEnabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $Y.fromPartial($??{})},fromPartial($){let Q=Gx();return Q.isEnabled=$.isEnabled??void 0,Q}};function Ux(){return{}}var QY={encode($,Q=new H){if($.isOptIn!==void 0)Q.uint32(8).bool($.isOptIn);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ux();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isOptIn=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return QY.fromPartial($??{})},fromPartial($){let Q=Ux();return Q.isOptIn=$.isOptIn??void 0,Q}};function Cx(){return{}}var JY={encode($,Q=new H){if($.favorites!==void 0&&$.favorites.length!==0)for(let Z of $.favorites)KY.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Cx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.favorites===void 0)q.favorites=[];let V=KY.decode(J,J.uint32());if(V!==void 0)q.favorites.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return JY.fromPartial($??{})},fromPartial($){let Q=Cx();return Q.favorites=$.favorites?.map((Z)=>KY.fromPartial(Z))||void 0,Q}};function Dx(){return{}}var KY={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Dx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.id=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return KY.fromPartial($??{})},fromPartial($){let Q=Dx();return Q.id=$.id??void 0,Q}};function Fx(){return{}}var qY={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.agmId!==void 0)Q.uint32(18).string($.agmId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Fx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}case 2:{if(K!==18)break;q.agmId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return qY.fromPartial($??{})},fromPartial($){let Q=Fx();return Q.type=$.type??void 0,Q.agmId=$.agmId??void 0,Q}};function Lx(){return{}}var ZY={encode($,Q=new H){if($.expiredKeyEpoch!==void 0)Q.uint32(8).int32($.expiredKeyEpoch);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Lx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.expiredKeyEpoch=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return ZY.fromPartial($??{})},fromPartial($){let Q=Lx();return Q.expiredKeyEpoch=$.expiredKeyEpoch??void 0,Q}};function Px(){return{}}var XY={encode($,Q=new H){if($.labeled!==void 0)Q.uint32(8).bool($.labeled);if($.modelMetaData!==void 0)Q.uint32(18).string($.modelMetaData);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Px();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.labeled=J.bool();continue}case 2:{if(K!==18)break;q.modelMetaData=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return XY.fromPartial($??{})},fromPartial($){let Q=Px();return Q.labeled=$.labeled??void 0,Q.modelMetaData=$.modelMetaData??void 0,Q}};function kx(){return{}}var YY={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.color!==void 0)Q.uint32(16).int32($.color);if($.predefinedId!==void 0)Q.uint32(24).int32($.predefinedId);if($.deleted!==void 0)Q.uint32(32).bool($.deleted);if($.orderIndex!==void 0)Q.uint32(40).int32($.orderIndex);if($.isActive!==void 0)Q.uint32(48).bool($.isActive);if($.type!==void 0)Q.uint32(56).int32($.type);if($.isImmutable!==void 0)Q.uint32(64).bool($.isImmutable);if($.muteEndTimeMs!==void 0)Q.uint32(72).int64($.muteEndTimeMs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}case 2:{if(K!==16)break;q.color=J.int32();continue}case 3:{if(K!==24)break;q.predefinedId=J.int32();continue}case 4:{if(K!==32)break;q.deleted=J.bool();continue}case 5:{if(K!==40)break;q.orderIndex=J.int32();continue}case 6:{if(K!==48)break;q.isActive=J.bool();continue}case 7:{if(K!==56)break;q.type=J.int32();continue}case 8:{if(K!==64)break;q.isImmutable=J.bool();continue}case 9:{if(K!==72)break;q.muteEndTimeMs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return YY.fromPartial($??{})},fromPartial($){let Q=kx();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 xx(){return{}}var VY={encode($,Q=new H){if($.sortedLabelIds!==void 0&&$.sortedLabelIds.length!==0)for(let Z of $.sortedLabelIds)Q.uint32(8).int32(Z);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K===8){if(q.sortedLabelIds===void 0)q.sortedLabelIds=[];q.sortedLabelIds.push(J.int32());continue}if(K===10){if(q.sortedLabelIds===void 0)q.sortedLabelIds=[];let V=J.uint32()+J.pos;while(J.pos<V)q.sortedLabelIds.push(J.int32());continue}break}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return VY.fromPartial($??{})},fromPartial($){let Q=xx();return Q.sortedLabelIds=$.sortedLabelIds?.map((Z)=>Z)||void 0,Q}};function Bx(){return{}}var HY={encode($,Q=new H){if($.subListId!==void 0)Q.uint32(8).int32($.subListId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Bx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.subListId=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return HY.fromPartial($??{})},fromPartial($){let Q=Bx();return Q.subListId=$.subListId??void 0,Q}};function Nx(){return{}}var zY={encode($,Q=new H){if($.fullName!==void 0)Q.uint32(10).string($.fullName);if($.firstName!==void 0)Q.uint32(18).string($.firstName);if($.username!==void 0)Q.uint32(26).string($.username);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Nx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fullName=J.string();continue}case 2:{if(K!==18)break;q.firstName=J.string();continue}case 3:{if(K!==26)break;q.username=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return zY.fromPartial($??{})},fromPartial($){let Q=Nx();return Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q.username=$.username??void 0,Q}};function Ox(){return{}}var GY={encode($,Q=new H){if($.locale!==void 0)Q.uint32(10).string($.locale);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ox();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.locale=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return GY.fromPartial($??{})},fromPartial($){let Q=Ox();return Q.locale=$.locale??void 0,Q}};function Rx(){return{}}var UY={encode($,Q=new H){if($.locked!==void 0)Q.uint32(8).bool($.locked);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Rx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.locked=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return UY.fromPartial($??{})},fromPartial($){let Q=Rx();return Q.locked=$.locked??void 0,Q}};function Ax(){return{}}var CY={encode($,Q=new H){if($.aiFeatureStatus!==void 0)Q.uint32(8).int32($.aiFeatureStatus);if($.aiReplyMode!==void 0)Q.uint32(16).int32($.aiReplyMode);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ax();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.aiFeatureStatus=J.int32();continue}case 2:{if(K!==16)break;q.aiReplyMode=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return CY.fromPartial($??{})},fromPartial($){let Q=Ax();return Q.aiFeatureStatus=$.aiFeatureStatus??void 0,Q.aiReplyMode=$.aiReplyMode??void 0,Q}};function Ex(){return{}}var DY={encode($,Q=new H){if($.read!==void 0)Q.uint32(8).bool($.read);if($.messageRange!==void 0)G$.encode($.messageRange,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ex();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.read=J.bool();continue}case 2:{if(K!==18)break;q.messageRange=G$.decode(J,J.uint32(),q.messageRange);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return DY.fromPartial($??{})},fromPartial($){let Q=Ex();return Q.read=$.read??void 0,Q.messageRange=$.messageRange!==void 0&&$.messageRange!==null?G$.fromPartial($.messageRange):void 0,Q}};function Mx(){return{}}var FY={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.message!==void 0)Q.uint32(18).string($.message);if($.type!==void 0)Q.uint32(24).int32($.type);if($.createdAt!==void 0)Q.uint32(32).int64($.createdAt);if($.lastSentAt!==void 0)Q.uint32(40).int64($.lastSentAt);if($.isDeleted!==void 0)Q.uint32(48).bool($.isDeleted);if($.mediaId!==void 0)Q.uint32(58).string($.mediaId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Mx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}case 2:{if(K!==18)break;q.message=J.string();continue}case 3:{if(K!==24)break;q.type=J.int32();continue}case 4:{if(K!==32)break;q.createdAt=J.int64Value();continue}case 5:{if(K!==40)break;q.lastSentAt=J.int64Value();continue}case 6:{if(K!==48)break;q.isDeleted=J.bool();continue}case 7:{if(K!==58)break;q.mediaId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return FY.fromPartial($??{})},fromPartial($){let Q=Mx();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 Wx(){return{}}var LY={encode($,Q=new H){if($.repliedCount!==void 0)Q.uint32(8).int32($.repliedCount);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Wx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.repliedCount=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return LY.fromPartial($??{})},fromPartial($){let Q=Wx();return Q.repliedCount=$.repliedCount??void 0,Q}};function Sx(){return{}}var PY={encode($,Q=new H){if($.status!==void 0)Q.uint32(8).int32($.status);if($.country!==void 0)Q.uint32(18).string($.country);if($.gatewayName!==void 0)Q.uint32(26).string($.gatewayName);if($.credentialId!==void 0)Q.uint32(34).string($.credentialId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Sx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.status=J.int32();continue}case 2:{if(K!==18)break;q.country=J.string();continue}case 3:{if(K!==26)break;q.gatewayName=J.string();continue}case 4:{if(K!==34)break;q.credentialId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return PY.fromPartial($??{})},fromPartial($){let Q=Sx();return Q.status=$.status??void 0,Q.country=$.country??void 0,Q.gatewayName=$.gatewayName??void 0,Q.credentialId=$.credentialId??void 0,Q}};function Ix(){return{}}var kY={encode($,Q=new H){if($.musicUserId!==void 0)Q.uint32(10).string($.musicUserId);return globalThis.Object.entries($.musicUserIdMap||{}).forEach(([Z,J])=>{f5.encode({key:Z,value:J},Q.uint32(18).fork()).join()}),Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Ix();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.musicUserId=J.string();continue}case 2:{if(K!==18)break;let V=f5.decode(J,J.uint32());if(V.value!==void 0&&V.key!==void 0){if(q.musicUserIdMap===void 0)q.musicUserIdMap={};q.musicUserIdMap[V.key]=V.value}continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return kY.fromPartial($??{})},fromPartial($){let Q=Ix();return Q.musicUserId=$.musicUserId??void 0,Q.musicUserIdMap=$.musicUserIdMap===void 0||$.musicUserIdMap===null?void 0:globalThis.Object.entries($.musicUserIdMap??{}).reduce((Z,[J,X])=>{if(X!==void 0)Z[J]=globalThis.String(X);return Z},{}),Q}};function Tx(){return{}}var f5={encode($,Q=new H){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)Q.uint32(18).string($.value);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??Tx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=J.string();continue}case 2:{if(K!==18)break;q.value=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return f5.fromPartial($??{})},fromPartial($){let Q=Tx();return Q.key=$.key??void 0,Q.value=$.value??void 0,Q}};function yx(){return{}}var xY={encode($,Q=new H){if($.muted!==void 0)Q.uint32(8).bool($.muted);if($.muteEndTimestamp!==void 0)Q.uint32(16).int64($.muteEndTimestamp);if($.autoMuted!==void 0)Q.uint32(24).bool($.autoMuted);if($.muteEveryoneMentionEndTimestamp!==void 0)Q.uint32(32).int64($.muteEveryoneMentionEndTimestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.muted=J.bool();continue}case 2:{if(K!==16)break;q.muteEndTimestamp=J.int64Value();continue}case 3:{if(K!==24)break;q.autoMuted=J.bool();continue}case 4:{if(K!==32)break;q.muteEveryoneMentionEndTimestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return xY.fromPartial($??{})},fromPartial($){let Q=yx();return Q.muted=$.muted??void 0,Q.muteEndTimestamp=$.muteEndTimestamp??void 0,Q.autoMuted=$.autoMuted??void 0,Q.muteEveryoneMentionEndTimestamp=$.muteEveryoneMentionEndTimestamp??void 0,Q}};function vx(){return{}}var BY={encode($,Q=new H){if($.salt!==void 0)Q.uint32(10).bytes($.salt);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.salt=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return BY.fromPartial($??{})},fromPartial($){let Q=vx();return Q.salt=$.salt??void 0,Q}};function fx(){return{}}var NY={encode($,Q=new H){if($.newsletterSavedInterests!==void 0)Q.uint32(10).string($.newsletterSavedInterests);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.newsletterSavedInterests=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return NY.fromPartial($??{})},fromPartial($){let Q=fx();return Q.newsletterSavedInterests=$.newsletterSavedInterests??void 0,Q}};function _x(){return{}}var OY={encode($,Q=new H){if($.type!==void 0)Q.uint32(8).int32($.type);if($.chatJid!==void 0)Q.uint32(18).string($.chatJid);if($.createdAt!==void 0)Q.uint32(24).int64($.createdAt);if($.deleted!==void 0)Q.uint32(32).bool($.deleted);if($.unstructuredContent!==void 0)Q.uint32(42).string($.unstructuredContent);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_x();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.type=J.int32();continue}case 2:{if(K!==18)break;q.chatJid=J.string();continue}case 3:{if(K!==24)break;q.createdAt=J.int64Value();continue}case 4:{if(K!==32)break;q.deleted=J.bool();continue}case 5:{if(K!==42)break;q.unstructuredContent=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return OY.fromPartial($??{})},fromPartial($){let Q=_x();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 hx(){return{}}var RY={encode($,Q=new H){if($.notificationActivitySetting!==void 0)Q.uint32(8).int32($.notificationActivitySetting);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.notificationActivitySetting=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return RY.fromPartial($??{})},fromPartial($){let Q=hx();return Q.notificationActivitySetting=$.notificationActivitySetting??void 0,Q}};function lx(){return{}}var AY={encode($,Q=new H){if($.acknowledged!==void 0)Q.uint32(8).bool($.acknowledged);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.acknowledged=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return AY.fromPartial($??{})},fromPartial($){let Q=lx();return Q.acknowledged=$.acknowledged??void 0,Q}};function px(){return{}}var EY={encode($,Q=new H){if($.fullName!==void 0)Q.uint32(10).string($.fullName);if($.firstName!==void 0)Q.uint32(18).string($.firstName);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??px();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.fullName=J.string();continue}case 2:{if(K!==18)break;q.firstName=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return EY.fromPartial($??{})},fromPartial($){let Q=px();return Q.fullName=$.fullName??void 0,Q.firstName=$.firstName??void 0,Q}};function ux(){return{}}var MY={encode($,Q=new H){if($.cpi!==void 0)Q.uint32(10).string($.cpi);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ux();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.cpi=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return MY.fromPartial($??{})},fromPartial($){let Q=ux();return Q.cpi=$.cpi??void 0,Q}};function wx(){return{}}var WY={encode($,Q=new H){if($.paymentNotice!==void 0)Q.uint32(8).int32($.paymentNotice);if($.accepted!==void 0)Q.uint32(16).bool($.accepted);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.paymentNotice=J.int32();continue}case 2:{if(K!==16)break;q.accepted=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return WY.fromPartial($??{})},fromPartial($){let Q=wx();return Q.paymentNotice=$.paymentNotice??void 0,Q.accepted=$.accepted??void 0,Q}};function jx(){return{}}var SY={encode($,Q=new H){if($.pinned!==void 0)Q.uint32(8).bool($.pinned);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.pinned=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return SY.fromPartial($??{})},fromPartial($){let Q=jx();return Q.pinned=$.pinned??void 0,Q}};function cx(){return{}}var IY={encode($,Q=new H){if($.pnJid!==void 0)Q.uint32(10).string($.pnJid);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.pnJid=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return IY.fromPartial($??{})},fromPartial($){let Q=cx();return Q.pnJid=$.pnJid??void 0,Q}};function dx(){return{}}var TY={encode($,Q=new H){if($.flags!==void 0&&$.flags.length!==0)for(let Z of $.flags)Q.uint32(10).string(Z);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.flags===void 0)q.flags=[];let V=J.string();if(V!==void 0)q.flags.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return TY.fromPartial($??{})},fromPartial($){let Q=dx();return Q.flags=$.flags?.map((Z)=>Z)||void 0,Q}};function nx(){return{}}var yY={encode($,Q=new H){if($.version!==void 0)Q.uint32(10).string($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.version=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return yY.fromPartial($??{})},fromPartial($){let Q=nx();return Q.version=$.version??void 0,Q}};function bx(){return{}}var vY={encode($,Q=new H){if($.isUserOptedOut!==void 0)Q.uint32(8).bool($.isUserOptedOut);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isUserOptedOut=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return vY.fromPartial($??{})},fromPartial($){let Q=bx();return Q.isUserOptedOut=$.isUserOptedOut??void 0,Q}};function ox(){return{}}var fY={encode($,Q=new H){if($.isPreviewsDisabled!==void 0)Q.uint32(8).bool($.isPreviewsDisabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ox();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isPreviewsDisabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return fY.fromPartial($??{})},fromPartial($){let Q=ox();return Q.isPreviewsDisabled=$.isPreviewsDisabled??void 0,Q}};function ix(){return{}}var _Y={encode($,Q=new H){if($.isEnabled!==void 0)Q.uint32(8).bool($.isEnabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ix();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isEnabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return _Y.fromPartial($??{})},fromPartial($){let Q=ix();return Q.isEnabled=$.isEnabled??void 0,Q}};function mx(){return{}}var hY={encode($,Q=new H){if($.privateProcessingStatus!==void 0)Q.uint32(8).int32($.privateProcessingStatus);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.privateProcessingStatus=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return hY.fromPartial($??{})},fromPartial($){let Q=mx();return Q.privateProcessingStatus=$.privateProcessingStatus??void 0,Q}};function gx(){return{}}var lY={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return lY.fromPartial($??{})},fromPartial($){let Q=gx();return Q.name=$.name??void 0,Q}};function rx(){return{}}var pY={encode($,Q=new H){if($.shortcut!==void 0)Q.uint32(10).string($.shortcut);if($.message!==void 0)Q.uint32(18).string($.message);if($.keywords!==void 0&&$.keywords.length!==0)for(let 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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.shortcut=J.string();continue}case 2:{if(K!==18)break;q.message=J.string();continue}case 3:{if(K!==26)break;if(q.keywords===void 0)q.keywords=[];let V=J.string();if(V!==void 0)q.keywords.push(V);continue}case 4:{if(K!==32)break;q.count=J.int32();continue}case 5:{if(K!==40)break;q.deleted=J.bool();continue}case 6:{if(K!==50)break;if(q.associatedLabelIds===void 0)q.associatedLabelIds=[];let V=J.string();if(V!==void 0)q.associatedLabelIds.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return pY.fromPartial($??{})},fromPartial($){let Q=rx();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 tx(){return{}}var uY={encode($,Q=new H){if($.weights!==void 0&&$.weights.length!==0)for(let Z of $.weights)e6.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.weights===void 0)q.weights=[];let V=e6.decode(J,J.uint32());if(V!==void 0)q.weights.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return uY.fromPartial($??{})},fromPartial($){let Q=tx();return Q.weights=$.weights?.map((Z)=>e6.fromPartial(Z))||void 0,Q}};function ax(){return{}}var wY={encode($,Q=new H){if($.lastStickerSentTs!==void 0)Q.uint32(8).int64($.lastStickerSentTs);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ax();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.lastStickerSentTs=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return wY.fromPartial($??{})},fromPartial($){let Q=ax();return Q.lastStickerSentTs=$.lastStickerSentTs??void 0,Q}};function sx(){return{}}var jY={encode($,Q=new H){if($.startAtLogin!==void 0)Q.uint32(8).bool($.startAtLogin);if($.minimizeToTray!==void 0)Q.uint32(16).bool($.minimizeToTray);if($.language!==void 0)Q.uint32(26).string($.language);if($.replaceTextWithEmoji!==void 0)Q.uint32(32).bool($.replaceTextWithEmoji);if($.bannerNotificationDisplayMode!==void 0)Q.uint32(40).int32($.bannerNotificationDisplayMode);if($.unreadCounterBadgeDisplayMode!==void 0)Q.uint32(48).int32($.unreadCounterBadgeDisplayMode);if($.isMessagesNotificationEnabled!==void 0)Q.uint32(56).bool($.isMessagesNotificationEnabled);if($.isCallsNotificationEnabled!==void 0)Q.uint32(64).bool($.isCallsNotificationEnabled);if($.isReactionsNotificationEnabled!==void 0)Q.uint32(72).bool($.isReactionsNotificationEnabled);if($.isStatusReactionsNotificationEnabled!==void 0)Q.uint32(80).bool($.isStatusReactionsNotificationEnabled);if($.isTextPreviewForNotificationEnabled!==void 0)Q.uint32(88).bool($.isTextPreviewForNotificationEnabled);if($.defaultNotificationToneId!==void 0)Q.uint32(96).int32($.defaultNotificationToneId);if($.groupDefaultNotificationToneId!==void 0)Q.uint32(104).int32($.groupDefaultNotificationToneId);if($.appTheme!==void 0)Q.uint32(112).int32($.appTheme);if($.wallpaperId!==void 0)Q.uint32(120).int32($.wallpaperId);if($.isDoodleWallpaperEnabled!==void 0)Q.uint32(128).bool($.isDoodleWallpaperEnabled);if($.fontSize!==void 0)Q.uint32(136).int32($.fontSize);if($.isPhotosAutodownloadEnabled!==void 0)Q.uint32(144).bool($.isPhotosAutodownloadEnabled);if($.isAudiosAutodownloadEnabled!==void 0)Q.uint32(152).bool($.isAudiosAutodownloadEnabled);if($.isVideosAutodownloadEnabled!==void 0)Q.uint32(160).bool($.isVideosAutodownloadEnabled);if($.isDocumentsAutodownloadEnabled!==void 0)Q.uint32(168).bool($.isDocumentsAutodownloadEnabled);if($.disableLinkPreviews!==void 0)Q.uint32(176).bool($.disableLinkPreviews);if($.notificationToneId!==void 0)Q.uint32(184).int32($.notificationToneId);if($.mediaUploadQuality!==void 0)Q.uint32(192).int32($.mediaUploadQuality);if($.isSpellCheckEnabled!==void 0)Q.uint32(200).bool($.isSpellCheckEnabled);if($.isEnterToSendEnabled!==void 0)Q.uint32(208).bool($.isEnterToSendEnabled);if($.isGroupMessageNotificationEnabled!==void 0)Q.uint32(216).bool($.isGroupMessageNotificationEnabled);if($.isGroupReactionsNotificationEnabled!==void 0)Q.uint32(224).bool($.isGroupReactionsNotificationEnabled);if($.isStatusNotificationEnabled!==void 0)Q.uint32(232).bool($.isStatusNotificationEnabled);if($.statusNotificationToneId!==void 0)Q.uint32(240).int32($.statusNotificationToneId);if($.shouldPlaySoundForCallNotification!==void 0)Q.uint32(248).bool($.shouldPlaySoundForCallNotification);if($.chatThemeId!==void 0)Q.uint32(258).string($.chatThemeId);if($.colorSchemeId!==void 0)Q.uint32(266).string($.colorSchemeId);if($.stockWallpaperImageId!==void 0)Q.uint32(274).string($.stockWallpaperImageId);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sx();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.startAtLogin=J.bool();continue}case 2:{if(K!==16)break;q.minimizeToTray=J.bool();continue}case 3:{if(K!==26)break;q.language=J.string();continue}case 4:{if(K!==32)break;q.replaceTextWithEmoji=J.bool();continue}case 5:{if(K!==40)break;q.bannerNotificationDisplayMode=J.int32();continue}case 6:{if(K!==48)break;q.unreadCounterBadgeDisplayMode=J.int32();continue}case 7:{if(K!==56)break;q.isMessagesNotificationEnabled=J.bool();continue}case 8:{if(K!==64)break;q.isCallsNotificationEnabled=J.bool();continue}case 9:{if(K!==72)break;q.isReactionsNotificationEnabled=J.bool();continue}case 10:{if(K!==80)break;q.isStatusReactionsNotificationEnabled=J.bool();continue}case 11:{if(K!==88)break;q.isTextPreviewForNotificationEnabled=J.bool();continue}case 12:{if(K!==96)break;q.defaultNotificationToneId=J.int32();continue}case 13:{if(K!==104)break;q.groupDefaultNotificationToneId=J.int32();continue}case 14:{if(K!==112)break;q.appTheme=J.int32();continue}case 15:{if(K!==120)break;q.wallpaperId=J.int32();continue}case 16:{if(K!==128)break;q.isDoodleWallpaperEnabled=J.bool();continue}case 17:{if(K!==136)break;q.fontSize=J.int32();continue}case 18:{if(K!==144)break;q.isPhotosAutodownloadEnabled=J.bool();continue}case 19:{if(K!==152)break;q.isAudiosAutodownloadEnabled=J.bool();continue}case 20:{if(K!==160)break;q.isVideosAutodownloadEnabled=J.bool();continue}case 21:{if(K!==168)break;q.isDocumentsAutodownloadEnabled=J.bool();continue}case 22:{if(K!==176)break;q.disableLinkPreviews=J.bool();continue}case 23:{if(K!==184)break;q.notificationToneId=J.int32();continue}case 24:{if(K!==192)break;q.mediaUploadQuality=J.int32();continue}case 25:{if(K!==200)break;q.isSpellCheckEnabled=J.bool();continue}case 26:{if(K!==208)break;q.isEnterToSendEnabled=J.bool();continue}case 27:{if(K!==216)break;q.isGroupMessageNotificationEnabled=J.bool();continue}case 28:{if(K!==224)break;q.isGroupReactionsNotificationEnabled=J.bool();continue}case 29:{if(K!==232)break;q.isStatusNotificationEnabled=J.bool();continue}case 30:{if(K!==240)break;q.statusNotificationToneId=J.int32();continue}case 31:{if(K!==248)break;q.shouldPlaySoundForCallNotification=J.bool();continue}case 32:{if(K!==258)break;q.chatThemeId=J.string();continue}case 33:{if(K!==266)break;q.colorSchemeId=J.string();continue}case 34:{if(K!==274)break;q.stockWallpaperImageId=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return jY.fromPartial($??{})},fromPartial($){let Q=sx();return Q.startAtLogin=$.startAtLogin??void 0,Q.minimizeToTray=$.minimizeToTray??void 0,Q.language=$.language??void 0,Q.replaceTextWithEmoji=$.replaceTextWithEmoji??void 0,Q.bannerNotificationDisplayMode=$.bannerNotificationDisplayMode??void 0,Q.unreadCounterBadgeDisplayMode=$.unreadCounterBadgeDisplayMode??void 0,Q.isMessagesNotificationEnabled=$.isMessagesNotificationEnabled??void 0,Q.isCallsNotificationEnabled=$.isCallsNotificationEnabled??void 0,Q.isReactionsNotificationEnabled=$.isReactionsNotificationEnabled??void 0,Q.isStatusReactionsNotificationEnabled=$.isStatusReactionsNotificationEnabled??void 0,Q.isTextPreviewForNotificationEnabled=$.isTextPreviewForNotificationEnabled??void 0,Q.defaultNotificationToneId=$.defaultNotificationToneId??void 0,Q.groupDefaultNotificationToneId=$.groupDefaultNotificationToneId??void 0,Q.appTheme=$.appTheme??void 0,Q.wallpaperId=$.wallpaperId??void 0,Q.isDoodleWallpaperEnabled=$.isDoodleWallpaperEnabled??void 0,Q.fontSize=$.fontSize??void 0,Q.isPhotosAutodownloadEnabled=$.isPhotosAutodownloadEnabled??void 0,Q.isAudiosAutodownloadEnabled=$.isAudiosAutodownloadEnabled??void 0,Q.isVideosAutodownloadEnabled=$.isVideosAutodownloadEnabled??void 0,Q.isDocumentsAutodownloadEnabled=$.isDocumentsAutodownloadEnabled??void 0,Q.disableLinkPreviews=$.disableLinkPreviews??void 0,Q.notificationToneId=$.notificationToneId??void 0,Q.mediaUploadQuality=$.mediaUploadQuality??void 0,Q.isSpellCheckEnabled=$.isSpellCheckEnabled??void 0,Q.isEnterToSendEnabled=$.isEnterToSendEnabled??void 0,Q.isGroupMessageNotificationEnabled=$.isGroupMessageNotificationEnabled??void 0,Q.isGroupReactionsNotificationEnabled=$.isGroupReactionsNotificationEnabled??void 0,Q.isStatusNotificationEnabled=$.isStatusNotificationEnabled??void 0,Q.statusNotificationToneId=$.statusNotificationToneId??void 0,Q.shouldPlaySoundForCallNotification=$.shouldPlaySoundForCallNotification??void 0,Q.chatThemeId=$.chatThemeId??void 0,Q.colorSchemeId=$.colorSchemeId??void 0,Q.stockWallpaperImageId=$.stockWallpaperImageId??void 0,Q}};function ex(){return{}}var cY={encode($,Q=new H){if($.starred!==void 0)Q.uint32(8).bool($.starred);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ex();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.starred=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return cY.fromPartial($??{})},fromPartial($){let Q=ex();return Q.starred=$.starred??void 0,Q}};function $B(){return{}}var dY={encode($,Q=new H){if($.enabled!==void 0)Q.uint32(8).bool($.enabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$B();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.enabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return dY.fromPartial($??{})},fromPartial($){let Q=$B();return Q.enabled=$.enabled??void 0,Q}};function QB(){return{}}var nY={encode($,Q=new H){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)bY.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??QB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.mode=J.int32();continue}case 2:{if(K!==18)break;if(q.userJid===void 0)q.userJid=[];let V=J.string();if(V!==void 0)q.userJid.push(V);continue}case 3:{if(K!==24)break;q.shareToFb=J.bool();continue}case 4:{if(K!==32)break;q.shareToIg=J.bool();continue}case 5:{if(K!==42)break;if(q.customLists===void 0)q.customLists=[];let V=bY.decode(J,J.uint32());if(V!==void 0)q.customLists.push(V);continue}case 6:{if(K===48){if(q.modes===void 0)q.modes=[];q.modes.push(J.int32());continue}if(K===50){if(q.modes===void 0)q.modes=[];let V=J.uint32()+J.pos;while(J.pos<V)q.modes.push(J.int32());continue}break}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return nY.fromPartial($??{})},fromPartial($){let Q=QB();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)=>bY.fromPartial(Z))||void 0,Q.modes=$.modes?.map((Z)=>Z)||void 0,Q}};function JB(){return{}}var bY={encode($,Q=new H){if($.listId!==void 0)Q.uint32(10).string($.listId);if($.name!==void 0)Q.uint32(18).string($.name);if($.emoji!==void 0)Q.uint32(26).string($.emoji);if($.isSelected!==void 0)Q.uint32(32).bool($.isSelected);if($.userJid!==void 0&&$.userJid.length!==0)for(let Z of $.userJid)Q.uint32(42).string(Z);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??JB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.listId=J.string();continue}case 2:{if(K!==18)break;q.name=J.string();continue}case 3:{if(K!==26)break;q.emoji=J.string();continue}case 4:{if(K!==32)break;q.isSelected=J.bool();continue}case 5:{if(K!==42)break;if(q.userJid===void 0)q.userJid=[];let V=J.string();if(V!==void 0)q.userJid.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return bY.fromPartial($??{})},fromPartial($){let Q=JB();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 KB(){return{}}var uQ={encode($,Q=new H){if($.url!==void 0)Q.uint32(10).string($.url);if($.fileEncSha256!==void 0)Q.uint32(18).bytes($.fileEncSha256);if($.mediaKey!==void 0)Q.uint32(26).bytes($.mediaKey);if($.mimetype!==void 0)Q.uint32(34).string($.mimetype);if($.height!==void 0)Q.uint32(40).uint32($.height);if($.width!==void 0)Q.uint32(48).uint32($.width);if($.directPath!==void 0)Q.uint32(58).string($.directPath);if($.fileLength!==void 0)Q.uint32(64).uint64($.fileLength);if($.isFavorite!==void 0)Q.uint32(72).bool($.isFavorite);if($.deviceIdHint!==void 0)Q.uint32(80).uint32($.deviceIdHint);if($.isLottie!==void 0)Q.uint32(88).bool($.isLottie);if($.imageHash!==void 0)Q.uint32(98).string($.imageHash);if($.isAvatarSticker!==void 0)Q.uint32(104).bool($.isAvatarSticker);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??KB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.url=J.string();continue}case 2:{if(K!==18)break;q.fileEncSha256=J.bytes();continue}case 3:{if(K!==26)break;q.mediaKey=J.bytes();continue}case 4:{if(K!==34)break;q.mimetype=J.string();continue}case 5:{if(K!==40)break;q.height=J.uint32();continue}case 6:{if(K!==48)break;q.width=J.uint32();continue}case 7:{if(K!==58)break;q.directPath=J.string();continue}case 8:{if(K!==64)break;q.fileLength=J.uint64Value();continue}case 9:{if(K!==72)break;q.isFavorite=J.bool();continue}case 10:{if(K!==80)break;q.deviceIdHint=J.uint32();continue}case 11:{if(K!==88)break;q.isLottie=J.bool();continue}case 12:{if(K!==98)break;q.imageHash=J.string();continue}case 13:{if(K!==104)break;q.isAvatarSticker=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return uQ.fromPartial($??{})},fromPartial($){let Q=KB();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 qB(){return{}}var oY={encode($,Q=new H){if($.isDeactivated!==void 0)Q.uint32(8).bool($.isDeactivated);if($.isAutoRenewing!==void 0)Q.uint32(16).bool($.isAutoRenewing);if($.expirationDate!==void 0)Q.uint32(24).int64($.expirationDate);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??qB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isDeactivated=J.bool();continue}case 2:{if(K!==16)break;q.isAutoRenewing=J.bool();continue}case 3:{if(K!==24)break;q.expirationDate=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return oY.fromPartial($??{})},fromPartial($){let Q=qB();return Q.isDeactivated=$.isDeactivated??void 0,Q.isAutoRenewing=$.isAutoRenewing??void 0,Q.expirationDate=$.expirationDate??void 0,Q}};function ZB(){return{}}var iY={encode($,Q=new H){if($.subscriptions!==void 0&&$.subscriptions.length!==0)for(let Z of $.subscriptions)gY.encode(Z,Q.uint32(10).fork()).join();if($.paidFeature!==void 0&&$.paidFeature.length!==0)for(let Z of $.paidFeature)mY.encode(Z,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??ZB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.subscriptions===void 0)q.subscriptions=[];let V=gY.decode(J,J.uint32());if(V!==void 0)q.subscriptions.push(V);continue}case 2:{if(K!==18)break;if(q.paidFeature===void 0)q.paidFeature=[];let V=mY.decode(J,J.uint32());if(V!==void 0)q.paidFeature.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return iY.fromPartial($??{})},fromPartial($){let Q=ZB();return Q.subscriptions=$.subscriptions?.map((Z)=>gY.fromPartial(Z))||void 0,Q.paidFeature=$.paidFeature?.map((Z)=>mY.fromPartial(Z))||void 0,Q}};function XB(){return{}}var mY={encode($,Q=new H){if($.name!==void 0)Q.uint32(10).string($.name);if($.enabled!==void 0)Q.uint32(16).bool($.enabled);if($.limit!==void 0)Q.uint32(24).int32($.limit);if($.expirationTime!==void 0)Q.uint32(32).int64($.expirationTime);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??XB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.name=J.string();continue}case 2:{if(K!==16)break;q.enabled=J.bool();continue}case 3:{if(K!==24)break;q.limit=J.int32();continue}case 4:{if(K!==32)break;q.expirationTime=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return mY.fromPartial($??{})},fromPartial($){let Q=XB();return Q.name=$.name??void 0,Q.enabled=$.enabled??void 0,Q.limit=$.limit??void 0,Q.expirationTime=$.expirationTime??void 0,Q}};function YB(){return{}}var gY={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);if($.tier!==void 0)Q.uint32(16).int32($.tier);if($.status!==void 0)Q.uint32(26).string($.status);if($.startTime!==void 0)Q.uint32(32).int64($.startTime);if($.endTime!==void 0)Q.uint32(40).int64($.endTime);if($.isPlatformChanged!==void 0)Q.uint32(48).bool($.isPlatformChanged);if($.source!==void 0)Q.uint32(58).string($.source);if($.creationTime!==void 0)Q.uint32(64).int64($.creationTime);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??YB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.id=J.string();continue}case 2:{if(K!==16)break;q.tier=J.int32();continue}case 3:{if(K!==26)break;q.status=J.string();continue}case 4:{if(K!==32)break;q.startTime=J.int64Value();continue}case 5:{if(K!==40)break;q.endTime=J.int64Value();continue}case 6:{if(K!==48)break;q.isPlatformChanged=J.bool();continue}case 7:{if(K!==58)break;q.source=J.string();continue}case 8:{if(K!==64)break;q.creationTime=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return gY.fromPartial($??{})},fromPartial($){let Q=YB();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 VB(){return{}}var rY={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();if($.timestamp!==void 0)Q.uint32(16).int64($.timestamp);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??VB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==16)break;q.timestamp=J.int64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return rY.fromPartial($??{})},fromPartial($){let Q=VB();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.timestamp=$.timestamp??void 0,Q}};function HB(){return{}}var G$={encode($,Q=new H){if($.lastMessageTimestamp!==void 0)Q.uint32(8).int64($.lastMessageTimestamp);if($.lastSystemMessageTimestamp!==void 0)Q.uint32(16).int64($.lastSystemMessageTimestamp);if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)rY.encode(Z,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??HB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.lastMessageTimestamp=J.int64Value();continue}case 2:{if(K!==16)break;q.lastSystemMessageTimestamp=J.int64Value();continue}case 3:{if(K!==26)break;if(q.messages===void 0)q.messages=[];let V=rY.decode(J,J.uint32());if(V!==void 0)q.messages.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return G$.fromPartial($??{})},fromPartial($){let Q=HB();return Q.lastMessageTimestamp=$.lastMessageTimestamp??void 0,Q.lastSystemMessageTimestamp=$.lastSystemMessageTimestamp??void 0,Q.messages=$.messages?.map((Z)=>rY.fromPartial(Z))||void 0,Q}};function zB(){return{}}var tY={encode($,Q=new H){if($.pinned!==void 0)Q.uint32(8).bool($.pinned);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??zB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.pinned=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return tY.fromPartial($??{})},fromPartial($){let Q=zB();return Q.pinned=$.pinned??void 0,Q}};function GB(){return{}}var aY={encode($,Q=new H){if($.isTwentyFourHourFormatEnabled!==void 0)Q.uint32(8).bool($.isTwentyFourHourFormatEnabled);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??GB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.isTwentyFourHourFormatEnabled=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return aY.fromPartial($??{})},fromPartial($){let Q=GB();return Q.isTwentyFourHourFormatEnabled=$.isTwentyFourHourFormatEnabled??void 0,Q}};function UB(){return{}}var sY={encode($,Q=new H){if($.definition!==void 0)Q.uint32(10).bytes($.definition);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??UB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.definition=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return sY.fromPartial($??{})},fromPartial($){let Q=UB();return Q.definition=$.definition??void 0,Q}};function CB(){return{}}var eY={encode($,Q=new H){if($.unarchiveChats!==void 0)Q.uint32(8).bool($.unarchiveChats);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??CB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.unarchiveChats=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return eY.fromPartial($??{})},fromPartial($){let Q=CB();return Q.unarchiveChats=$.unarchiveChats??void 0,Q}};function DB(){return{}}var $5={encode($,Q=new H){if($.muted!==void 0)Q.uint32(8).bool($.muted);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??DB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.muted=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return $5.fromPartial($??{})},fromPartial($){let Q=DB();return Q.muted=$.muted??void 0,Q}};function FB(){return{}}var Q5={encode($,Q=new H){if($.chatStartMode!==void 0)Q.uint32(8).int32($.chatStartMode);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??FB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.chatStartMode=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Q5.fromPartial($??{})},fromPartial($){let Q=FB();return Q.chatStartMode=$.chatStartMode??void 0,Q}};function LB(){return{}}var J5={encode($,Q=new H){if($.secrets!==void 0&&$.secrets.length!==0)for(let Z of $.secrets)K5.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??LB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.secrets===void 0)q.secrets=[];let V=K5.decode(J,J.uint32());if(V!==void 0)q.secrets.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return J5.fromPartial($??{})},fromPartial($){let Q=LB();return Q.secrets=$.secrets?.map((Z)=>K5.fromPartial(Z))||void 0,Q}};function PB(){return{}}var K5={encode($,Q=new H){if($.id!==void 0)Q.uint32(10).string($.id);if($.rootSecret!==void 0)Q.uint32(18).bytes($.rootSecret);if($.epoch!==void 0)Q.uint32(24).int64($.epoch);if($.status!==void 0)Q.uint32(32).int32($.status);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??PB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.id=J.string();continue}case 2:{if(K!==18)break;q.rootSecret=J.bytes();continue}case 3:{if(K!==24)break;q.epoch=J.int64Value();continue}case 4:{if(K!==32)break;q.status=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return K5.fromPartial($??{})},fromPartial($){let Q=PB();return Q.id=$.id??void 0,Q.rootSecret=$.rootSecret??void 0,Q.epoch=$.epoch??void 0,Q.status=$.status??void 0,Q}};function kB(){return{}}var q5={encode($,Q=new H){if($.linkState!==void 0)Q.uint32(16).int32($.linkState);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??kB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 2:{if(K!==16)break;q.linkState=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return q5.fromPartial($??{})},fromPartial($){let Q=kB();return Q.linkState=$.linkState??void 0,Q}};function xB(){return{}}var Z5={encode($,Q=new H){if($.identifier!==void 0)Q.uint32(10).string($.identifier);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??xB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.identifier=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Z5.fromPartial($??{})},fromPartial($){let Q=xB();return Q.identifier=$.identifier??void 0,Q}};function BB(){return{}}var wQ={encode($,Q=new H){if($.blob!==void 0)Q.uint32(10).bytes($.blob);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??BB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.blob=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return wQ.fromPartial($??{})},fromPartial($){let Q=BB();return Q.blob=$.blob??void 0,Q}};function NB(){return{}}var w$={encode($,Q=new H){if($.operation!==void 0)Q.uint32(8).int32($.operation);if($.record!==void 0)j$.encode($.record,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??NB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.operation=J.int32();continue}case 2:{if(K!==18)break;q.record=j$.decode(J,J.uint32(),q.record);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return w$.fromPartial($??{})},fromPartial($){let Q=NB();return Q.operation=$.operation??void 0,Q.record=$.record!==void 0&&$.record!==null?j$.fromPartial($.record):void 0,Q}};function OB(){return{}}var r5={encode($,Q=new H){if($.mutations!==void 0&&$.mutations.length!==0)for(let Z of $.mutations)w$.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??OB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.mutations===void 0)q.mutations=[];let V=w$.decode(J,J.uint32());if(V!==void 0)q.mutations.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return r5.fromPartial($??{})},fromPartial($){let Q=OB();return Q.mutations=$.mutations?.map((Z)=>w$.fromPartial(Z))||void 0,Q}};function RB(){return{}}var t5={encode($,Q=new H){if($.version!==void 0)f$.encode($.version,Q.uint32(10).fork()).join();if($.mutations!==void 0&&$.mutations.length!==0)for(let Z of $.mutations)w$.encode(Z,Q.uint32(18).fork()).join();if($.externalMutations!==void 0)iQ.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)E$.encode($.keyId,Q.uint32(50).fork()).join();if($.exitCode!==void 0)oQ.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??RB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.version=f$.decode(J,J.uint32(),q.version);continue}case 2:{if(K!==18)break;if(q.mutations===void 0)q.mutations=[];let V=w$.decode(J,J.uint32());if(V!==void 0)q.mutations.push(V);continue}case 3:{if(K!==26)break;q.externalMutations=iQ.decode(J,J.uint32(),q.externalMutations);continue}case 4:{if(K!==34)break;q.snapshotMac=J.bytes();continue}case 5:{if(K!==42)break;q.patchMac=J.bytes();continue}case 6:{if(K!==50)break;q.keyId=E$.decode(J,J.uint32(),q.keyId);continue}case 7:{if(K!==58)break;q.exitCode=oQ.decode(J,J.uint32(),q.exitCode);continue}case 8:{if(K!==64)break;q.deviceIndex=J.uint32();continue}case 9:{if(K!==74)break;q.clientDebugData=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return t5.fromPartial($??{})},fromPartial($){let Q=RB();return Q.version=$.version!==void 0&&$.version!==null?f$.fromPartial($.version):void 0,Q.mutations=$.mutations?.map((Z)=>w$.fromPartial(Z))||void 0,Q.externalMutations=$.externalMutations!==void 0&&$.externalMutations!==null?iQ.fromPartial($.externalMutations):void 0,Q.snapshotMac=$.snapshotMac??void 0,Q.patchMac=$.patchMac??void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?E$.fromPartial($.keyId):void 0,Q.exitCode=$.exitCode!==void 0&&$.exitCode!==null?oQ.fromPartial($.exitCode):void 0,Q.deviceIndex=$.deviceIndex??void 0,Q.clientDebugData=$.clientDebugData??void 0,Q}};function AB(){return{}}var X5={encode($,Q=new H){if($.value!==void 0)mQ.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??AB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.value=mQ.decode(J,J.uint32(),q.value);continue}case 2:{if(K!==18)break;q.keyId=J.bytes();continue}case 3:{if(K!==26)break;q.mac=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return X5.fromPartial($??{})},fromPartial($){let Q=AB();return Q.value=$.value!==void 0&&$.value!==null?mQ.fromPartial($.value):void 0,Q.keyId=$.keyId??void 0,Q.mac=$.mac??void 0,Q}};function EB(){return{}}var j$={encode($,Q=new H){if($.index!==void 0)wQ.encode($.index,Q.uint32(10).fork()).join();if($.value!==void 0)jQ.encode($.value,Q.uint32(18).fork()).join();if($.keyId!==void 0)E$.encode($.keyId,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??EB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.index=wQ.decode(J,J.uint32(),q.index);continue}case 2:{if(K!==18)break;q.value=jQ.decode(J,J.uint32(),q.value);continue}case 3:{if(K!==26)break;q.keyId=E$.decode(J,J.uint32(),q.keyId);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return j$.fromPartial($??{})},fromPartial($){let Q=EB();return Q.index=$.index!==void 0&&$.index!==null?wQ.fromPartial($.index):void 0,Q.value=$.value!==void 0&&$.value!==null?jQ.fromPartial($.value):void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?E$.fromPartial($.keyId):void 0,Q}};function MB(){return{}}var a5={encode($,Q=new H){if($.version!==void 0)f$.encode($.version,Q.uint32(10).fork()).join();if($.records!==void 0&&$.records.length!==0)for(let Z of $.records)j$.encode(Z,Q.uint32(18).fork()).join();if($.mac!==void 0)Q.uint32(26).bytes($.mac);if($.keyId!==void 0)E$.encode($.keyId,Q.uint32(34).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??MB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.version=f$.decode(J,J.uint32(),q.version);continue}case 2:{if(K!==18)break;if(q.records===void 0)q.records=[];let V=j$.decode(J,J.uint32());if(V!==void 0)q.records.push(V);continue}case 3:{if(K!==26)break;q.mac=J.bytes();continue}case 4:{if(K!==34)break;q.keyId=E$.decode(J,J.uint32(),q.keyId);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return a5.fromPartial($??{})},fromPartial($){let Q=MB();return Q.version=$.version!==void 0&&$.version!==null?f$.fromPartial($.version):void 0,Q.records=$.records?.map((Z)=>j$.fromPartial(Z))||void 0,Q.mac=$.mac??void 0,Q.keyId=$.keyId!==void 0&&$.keyId!==null?E$.fromPartial($.keyId):void 0,Q}};function WB(){return{}}var SE={encode($,Q=new H){if($.version!==void 0)f$.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)X5.encode(Z,Q.uint32(26).fork()).join();if($.collectionLthash!==void 0)Q.uint32(34).bytes($.collectionLthash);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??WB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.version=f$.decode(J,J.uint32(),q.version);continue}case 2:{if(K!==18)break;q.collectionName=J.string();continue}case 3:{if(K!==26)break;if(q.mutationRecords===void 0)q.mutationRecords=[];let V=X5.decode(J,J.uint32());if(V!==void 0)q.mutationRecords.push(V);continue}case 4:{if(K!==34)break;q.collectionLthash=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return SE.fromPartial($??{})},fromPartial($){let Q=WB();return Q.version=$.version!==void 0&&$.version!==null?f$.fromPartial($.version):void 0,Q.collectionName=$.collectionName??void 0,Q.mutationRecords=$.mutationRecords?.map((Z)=>X5.fromPartial(Z))||void 0,Q.collectionLthash=$.collectionLthash??void 0,Q}};function SB(){return{}}var jQ={encode($,Q=new H){if($.blob!==void 0)Q.uint32(10).bytes($.blob);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??SB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.blob=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return jQ.fromPartial($??{})},fromPartial($){let Q=SB();return Q.blob=$.blob??void 0,Q}};function IB(){return{}}var f$={encode($,Q=new H){if($.version!==void 0)Q.uint32(8).uint64($.version);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??IB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.version=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return f$.fromPartial($??{})},fromPartial($){let Q=IB();return Q.version=$.version??void 0,Q}};function TB(){return{}}var Y5={encode($,Q=new H){if($.title!==void 0)Q.uint32(10).string($.title);if($.tapUrl!==void 0)Q.uint32(18).string($.tapUrl);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??TB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.title=J.string();continue}case 2:{if(K!==18)break;q.tapUrl=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Y5.fromPartial($??{})},fromPartial($){let Q=TB();return Q.title=$.title??void 0,Q.tapUrl=$.tapUrl??void 0,Q}};function yB(){return{}}var V5={encode($,Q=new H){if($.index!==void 0)Q.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)z5.encode($.quickReplyButton,Q.uint32(10).fork()).join();if($.urlButton!==void 0)G5.encode($.urlButton,Q.uint32(18).fork()).join();if($.callButton!==void 0)H5.encode($.callButton,Q.uint32(26).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??yB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 4:{if(K!==32)break;q.index=J.uint32();continue}case 1:{if(K!==10)break;q.quickReplyButton=z5.decode(J,J.uint32(),q.quickReplyButton);continue}case 2:{if(K!==18)break;q.urlButton=G5.decode(J,J.uint32(),q.urlButton);continue}case 3:{if(K!==26)break;q.callButton=H5.decode(J,J.uint32(),q.callButton);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return V5.fromPartial($??{})},fromPartial($){let Q=yB();return Q.index=$.index??void 0,Q.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?z5.fromPartial($.quickReplyButton):void 0,Q.urlButton=$.urlButton!==void 0&&$.urlButton!==null?G5.fromPartial($.urlButton):void 0,Q.callButton=$.callButton!==void 0&&$.callButton!==null?H5.fromPartial($.callButton):void 0,Q}};function vB(){return{}}var H5={encode($,Q=new H){if($.displayText!==void 0)o.encode($.displayText,Q.uint32(10).fork()).join();if($.phoneNumber!==void 0)o.encode($.phoneNumber,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??vB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayText=o.decode(J,J.uint32(),q.displayText);continue}case 2:{if(K!==18)break;q.phoneNumber=o.decode(J,J.uint32(),q.phoneNumber);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return H5.fromPartial($??{})},fromPartial($){let Q=vB();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?o.fromPartial($.displayText):void 0,Q.phoneNumber=$.phoneNumber!==void 0&&$.phoneNumber!==null?o.fromPartial($.phoneNumber):void 0,Q}};function fB(){return{}}var z5={encode($,Q=new H){if($.displayText!==void 0)o.encode($.displayText,Q.uint32(10).fork()).join();if($.id!==void 0)Q.uint32(18).string($.id);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??fB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayText=o.decode(J,J.uint32(),q.displayText);continue}case 2:{if(K!==18)break;q.id=J.string();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return z5.fromPartial($??{})},fromPartial($){let Q=fB();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?o.fromPartial($.displayText):void 0,Q.id=$.id??void 0,Q}};function _B(){return{}}var G5={encode($,Q=new H){if($.displayText!==void 0)o.encode($.displayText,Q.uint32(10).fork()).join();if($.url!==void 0)o.encode($.url,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??_B();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.displayText=o.decode(J,J.uint32(),q.displayText);continue}case 2:{if(K!==18)break;q.url=o.decode(J,J.uint32(),q.url);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return G5.fromPartial($??{})},fromPartial($){let Q=_B();return Q.displayText=$.displayText!==void 0&&$.displayText!==null?o.fromPartial($.displayText):void 0,Q.url=$.url!==void 0&&$.url!==null?o.fromPartial($.url):void 0,Q}};function hB(){return{}}var U5={encode($,Q=new H){if($.threadType!==void 0)Q.uint32(8).int32($.threadType);if($.threadKey!==void 0)B.encode($.threadKey,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??hB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.threadType=J.int32();continue}case 2:{if(K!==18)break;q.threadKey=B.decode(J,J.uint32(),q.threadKey);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return U5.fromPartial($??{})},fromPartial($){let Q=hB();return Q.threadType=$.threadType??void 0,Q.threadKey=$.threadKey!==void 0&&$.threadKey!==null?B.fromPartial($.threadKey):void 0,Q}};function lB(){return{}}var C5={encode($,Q=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)g.encode(Z,Q.uint32(10).fork()).join();if($.parentMessage!==void 0)B.encode($.parentMessage,Q.uint32(18).fork()).join();if($.associationType!==void 0)Q.uint32(24).int32($.associationType);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??lB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.messages===void 0)q.messages=[];let V=g.decode(J,J.uint32());if(V!==void 0)q.messages.push(V);continue}case 2:{if(K!==18)break;q.parentMessage=B.decode(J,J.uint32(),q.parentMessage);continue}case 3:{if(K!==24)break;q.associationType=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return C5.fromPartial($??{})},fromPartial($){let Q=lB();return Q.messages=$.messages?.map((Z)=>g.fromPartial(Z))||void 0,Q.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?B.fromPartial($.parentMessage):void 0,Q.associationType=$.associationType??void 0,Q}};function pB(){return{}}var D5={encode($,Q=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Z of $.messages)Y$.encode(Z,Q.uint32(10).fork()).join();if($.parentMessage!==void 0)B.encode($.parentMessage,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??pB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.messages===void 0)q.messages=[];let V=Y$.decode(J,J.uint32());if(V!==void 0)q.messages.push(V);continue}case 2:{if(K!==18)break;q.parentMessage=B.decode(J,J.uint32(),q.parentMessage);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return D5.fromPartial($??{})},fromPartial($){let Q=pB();return Q.messages=$.messages?.map((Z)=>Y$.fromPartial(Z))||void 0,Q.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?B.fromPartial($.parentMessage):void 0,Q}};function uB(){return{}}var cQ={encode($,Q=new H){if($.urlTrackingMapElements!==void 0&&$.urlTrackingMapElements.length!==0)for(let Z of $.urlTrackingMapElements)F5.encode(Z,Q.uint32(10).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??uB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;if(q.urlTrackingMapElements===void 0)q.urlTrackingMapElements=[];let V=F5.decode(J,J.uint32());if(V!==void 0)q.urlTrackingMapElements.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return cQ.fromPartial($??{})},fromPartial($){let Q=uB();return Q.urlTrackingMapElements=$.urlTrackingMapElements?.map((Z)=>F5.fromPartial(Z))||void 0,Q}};function wB(){return{}}var F5={encode($,Q=new H){if($.originalUrl!==void 0)Q.uint32(10).string($.originalUrl);if($.unconsentedUsersUrl!==void 0)Q.uint32(18).string($.unconsentedUsersUrl);if($.consentedUsersUrl!==void 0)Q.uint32(26).string($.consentedUsersUrl);if($.cardIndex!==void 0)Q.uint32(32).uint32($.cardIndex);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??wB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.originalUrl=J.string();continue}case 2:{if(K!==18)break;q.unconsentedUsersUrl=J.string();continue}case 3:{if(K!==26)break;q.consentedUsersUrl=J.string();continue}case 4:{if(K!==32)break;q.cardIndex=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return F5.fromPartial($??{})},fromPartial($){let Q=wB();return Q.originalUrl=$.originalUrl??void 0,Q.unconsentedUsersUrl=$.unconsentedUsersUrl??void 0,Q.consentedUsersUrl=$.consentedUsersUrl??void 0,Q.cardIndex=$.cardIndex??void 0,Q}};function jB(){return{}}var L5={encode($,Q=new H){if($.encoding!==void 0)Q.uint32(8).int32($.encoding);if($.transformer!==void 0)Q.uint32(16).int32($.transformer);if($.transformerArg!==void 0&&$.transformerArg.length!==0)for(let Z of $.transformerArg)P5.encode(Z,Q.uint32(26).fork()).join();if($.transformedData!==void 0)Q.uint32(34).bytes($.transformedData);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??jB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.encoding=J.int32();continue}case 2:{if(K!==16)break;q.transformer=J.int32();continue}case 3:{if(K!==26)break;if(q.transformerArg===void 0)q.transformerArg=[];let V=P5.decode(J,J.uint32());if(V!==void 0)q.transformerArg.push(V);continue}case 4:{if(K!==34)break;q.transformedData=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return L5.fromPartial($??{})},fromPartial($){let Q=jB();return Q.encoding=$.encoding??void 0,Q.transformer=$.transformer??void 0,Q.transformerArg=$.transformerArg?.map((Z)=>P5.fromPartial(Z))||void 0,Q.transformedData=$.transformedData??void 0,Q}};function cB(){return{}}var P5={encode($,Q=new H){if($.key!==void 0)Q.uint32(10).string($.key);if($.value!==void 0)k5.encode($.value,Q.uint32(18).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??cB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=J.string();continue}case 2:{if(K!==18)break;q.value=k5.decode(J,J.uint32(),q.value);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return P5.fromPartial($??{})},fromPartial($){let Q=cB();return Q.key=$.key??void 0,Q.value=$.value!==void 0&&$.value!==null?k5.fromPartial($.value):void 0,Q}};function dB(){return{}}var k5={encode($,Q=new H){if($.asBlob!==void 0)Q.uint32(10).bytes($.asBlob);if($.asUnsignedInteger!==void 0)Q.uint32(16).uint32($.asUnsignedInteger);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??dB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.asBlob=J.bytes();continue}case 2:{if(K!==16)break;q.asUnsignedInteger=J.uint32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return k5.fromPartial($??{})},fromPartial($){let Q=dB();return Q.asBlob=$.asBlob??void 0,Q.asUnsignedInteger=$.asUnsignedInteger??void 0,Q}};function nB(){return{}}var x5={encode($,Q=new H){if($.userJid!==void 0)Q.uint32(10).string($.userJid);if($.receiptTimestamp!==void 0)Q.uint32(16).int64($.receiptTimestamp);if($.readTimestamp!==void 0)Q.uint32(24).int64($.readTimestamp);if($.playedTimestamp!==void 0)Q.uint32(32).int64($.playedTimestamp);if($.pendingDeviceJid!==void 0&&$.pendingDeviceJid.length!==0)for(let 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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??nB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.userJid=J.string();continue}case 2:{if(K!==16)break;q.receiptTimestamp=J.int64Value();continue}case 3:{if(K!==24)break;q.readTimestamp=J.int64Value();continue}case 4:{if(K!==32)break;q.playedTimestamp=J.int64Value();continue}case 5:{if(K!==42)break;if(q.pendingDeviceJid===void 0)q.pendingDeviceJid=[];let V=J.string();if(V!==void 0)q.pendingDeviceJid.push(V);continue}case 6:{if(K!==50)break;if(q.deliveredDeviceJid===void 0)q.deliveredDeviceJid=[];let V=J.string();if(V!==void 0)q.deliveredDeviceJid.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return x5.fromPartial($??{})},fromPartial($){let Q=nB();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 bB(){return{}}var c$={encode($,Q=new H){if($.details!==void 0)Q.uint32(10).bytes($.details);if($.signature!==void 0)Q.uint32(18).bytes($.signature);if($.serverSignature!==void 0)Q.uint32(26).bytes($.serverSignature);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??bB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.details=J.bytes();continue}case 2:{if(K!==18)break;q.signature=J.bytes();continue}case 3:{if(K!==26)break;q.serverSignature=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return c$.fromPartial($??{})},fromPartial($){let Q=bB();return Q.details=$.details??void 0,Q.signature=$.signature??void 0,Q.serverSignature=$.serverSignature??void 0,Q}};function oB(){return{}}var s5={encode($,Q=new H){if($.serial!==void 0)Q.uint32(8).uint64($.serial);if($.issuer!==void 0)Q.uint32(18).string($.issuer);if($.verifiedName!==void 0)Q.uint32(34).string($.verifiedName);if($.localizedNames!==void 0&&$.localizedNames.length!==0)for(let Z of $.localizedNames)Hq.encode(Z,Q.uint32(66).fork()).join();if($.issueTime!==void 0)Q.uint32(80).uint64($.issueTime);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??oB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.serial=J.uint64Value();continue}case 2:{if(K!==18)break;q.issuer=J.string();continue}case 4:{if(K!==34)break;q.verifiedName=J.string();continue}case 8:{if(K!==66)break;if(q.localizedNames===void 0)q.localizedNames=[];let V=Hq.decode(J,J.uint32());if(V!==void 0)q.localizedNames.push(V);continue}case 10:{if(K!==80)break;q.issueTime=J.uint64Value();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return s5.fromPartial($??{})},fromPartial($){let Q=oB();return Q.serial=$.serial??void 0,Q.issuer=$.issuer??void 0,Q.verifiedName=$.verifiedName??void 0,Q.localizedNames=$.localizedNames?.map((Z)=>Hq.fromPartial(Z))||void 0,Q.issueTime=$.issueTime??void 0,Q}};function iB(){return{}}var B5={encode($,Q=new H){if($.vdId!==void 0)Q.uint32(10).bytes($.vdId);if($.vdPublicKey!==void 0)Q.uint32(18).bytes($.vdPublicKey);if($.vdEpochStoragePublicKey!==void 0)Q.uint32(26).bytes($.vdEpochStoragePublicKey);if($.vdEpochStoragePublicKeySig!==void 0)Q.uint32(34).bytes($.vdEpochStoragePublicKeySig);if($.ocmfRotationToken!==void 0)Q.uint32(42).bytes($.ocmfRotationToken);if($.deviceEpochHmac!==void 0)Q.uint32(50).bytes($.deviceEpochHmac);if($.encryptedSecretValues!==void 0)S8.encode($.encryptedSecretValues,Q.uint32(58).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??iB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.vdId=J.bytes();continue}case 2:{if(K!==18)break;q.vdPublicKey=J.bytes();continue}case 3:{if(K!==26)break;q.vdEpochStoragePublicKey=J.bytes();continue}case 4:{if(K!==34)break;q.vdEpochStoragePublicKeySig=J.bytes();continue}case 5:{if(K!==42)break;q.ocmfRotationToken=J.bytes();continue}case 6:{if(K!==50)break;q.deviceEpochHmac=J.bytes();continue}case 7:{if(K!==58)break;q.encryptedSecretValues=S8.decode(J,J.uint32(),q.encryptedSecretValues);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return B5.fromPartial($??{})},fromPartial($){let Q=iB();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?S8.fromPartial($.encryptedSecretValues):void 0,Q}};function mB(){return{}}var O$={encode($,Q=new H){if($.filename!==void 0)Q.uint32(10).string($.filename);if($.opacity!==void 0)Q.uint32(16).uint32($.opacity);if($.isGenAi!==void 0)Q.uint32(24).bool($.isGenAi);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??mB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.filename=J.string();continue}case 2:{if(K!==16)break;q.opacity=J.uint32();continue}case 3:{if(K!==24)break;q.isGenAi=J.bool();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return O$.fromPartial($??{})},fromPartial($){let Q=mB();return Q.filename=$.filename??void 0,Q.opacity=$.opacity??void 0,Q.isGenAi=$.isGenAi??void 0,Q}};function gB(){return{}}var IE={encode($,Q=new H){if($.labelsDisplay!==void 0)Q.uint32(8).int32($.labelsDisplay);if($.voipIndividualOutgoing!==void 0)Q.uint32(16).int32($.voipIndividualOutgoing);if($.groupsV3!==void 0)Q.uint32(24).int32($.groupsV3);if($.groupsV3Create!==void 0)Q.uint32(32).int32($.groupsV3Create);if($.changeNumberV2!==void 0)Q.uint32(40).int32($.changeNumberV2);if($.queryStatusV3Thumbnail!==void 0)Q.uint32(48).int32($.queryStatusV3Thumbnail);if($.liveLocations!==void 0)Q.uint32(56).int32($.liveLocations);if($.queryVname!==void 0)Q.uint32(64).int32($.queryVname);if($.voipIndividualIncoming!==void 0)Q.uint32(72).int32($.voipIndividualIncoming);if($.quickRepliesQuery!==void 0)Q.uint32(80).int32($.quickRepliesQuery);if($.payments!==void 0)Q.uint32(88).int32($.payments);if($.stickerPackQuery!==void 0)Q.uint32(96).int32($.stickerPackQuery);if($.liveLocationsFinal!==void 0)Q.uint32(104).int32($.liveLocationsFinal);if($.labelsEdit!==void 0)Q.uint32(112).int32($.labelsEdit);if($.mediaUpload!==void 0)Q.uint32(120).int32($.mediaUpload);if($.mediaUploadRichQuickReplies!==void 0)Q.uint32(144).int32($.mediaUploadRichQuickReplies);if($.vnameV2!==void 0)Q.uint32(152).int32($.vnameV2);if($.videoPlaybackUrl!==void 0)Q.uint32(160).int32($.videoPlaybackUrl);if($.statusRanking!==void 0)Q.uint32(168).int32($.statusRanking);if($.voipIndividualVideo!==void 0)Q.uint32(176).int32($.voipIndividualVideo);if($.thirdPartyStickers!==void 0)Q.uint32(184).int32($.thirdPartyStickers);if($.frequentlyForwardedSetting!==void 0)Q.uint32(192).int32($.frequentlyForwardedSetting);if($.groupsV4JoinPermission!==void 0)Q.uint32(200).int32($.groupsV4JoinPermission);if($.recentStickers!==void 0)Q.uint32(208).int32($.recentStickers);if($.catalog!==void 0)Q.uint32(216).int32($.catalog);if($.starredStickers!==void 0)Q.uint32(224).int32($.starredStickers);if($.voipGroupCall!==void 0)Q.uint32(232).int32($.voipGroupCall);if($.templateMessage!==void 0)Q.uint32(240).int32($.templateMessage);if($.templateMessageInteractivity!==void 0)Q.uint32(248).int32($.templateMessageInteractivity);if($.ephemeralMessages!==void 0)Q.uint32(256).int32($.ephemeralMessages);if($.e2ENotificationSync!==void 0)Q.uint32(264).int32($.e2ENotificationSync);if($.recentStickersV2!==void 0)Q.uint32(272).int32($.recentStickersV2);if($.recentStickersV3!==void 0)Q.uint32(288).int32($.recentStickersV3);if($.userNotice!==void 0)Q.uint32(296).int32($.userNotice);if($.support!==void 0)Q.uint32(312).int32($.support);if($.groupUiiCleanup!==void 0)Q.uint32(320).int32($.groupUiiCleanup);if($.groupDogfoodingInternalOnly!==void 0)Q.uint32(328).int32($.groupDogfoodingInternalOnly);if($.settingsSync!==void 0)Q.uint32(336).int32($.settingsSync);if($.archiveV2!==void 0)Q.uint32(344).int32($.archiveV2);if($.ephemeralAllowGroupMembers!==void 0)Q.uint32(352).int32($.ephemeralAllowGroupMembers);if($.ephemeral24HDuration!==void 0)Q.uint32(360).int32($.ephemeral24HDuration);if($.mdForceUpgrade!==void 0)Q.uint32(368).int32($.mdForceUpgrade);if($.disappearingMode!==void 0)Q.uint32(376).int32($.disappearingMode);if($.externalMdOptInAvailable!==void 0)Q.uint32(384).int32($.externalMdOptInAvailable);if($.noDeleteMessageTimeLimit!==void 0)Q.uint32(392).int32($.noDeleteMessageTimeLimit);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??gB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==8)break;q.labelsDisplay=J.int32();continue}case 2:{if(K!==16)break;q.voipIndividualOutgoing=J.int32();continue}case 3:{if(K!==24)break;q.groupsV3=J.int32();continue}case 4:{if(K!==32)break;q.groupsV3Create=J.int32();continue}case 5:{if(K!==40)break;q.changeNumberV2=J.int32();continue}case 6:{if(K!==48)break;q.queryStatusV3Thumbnail=J.int32();continue}case 7:{if(K!==56)break;q.liveLocations=J.int32();continue}case 8:{if(K!==64)break;q.queryVname=J.int32();continue}case 9:{if(K!==72)break;q.voipIndividualIncoming=J.int32();continue}case 10:{if(K!==80)break;q.quickRepliesQuery=J.int32();continue}case 11:{if(K!==88)break;q.payments=J.int32();continue}case 12:{if(K!==96)break;q.stickerPackQuery=J.int32();continue}case 13:{if(K!==104)break;q.liveLocationsFinal=J.int32();continue}case 14:{if(K!==112)break;q.labelsEdit=J.int32();continue}case 15:{if(K!==120)break;q.mediaUpload=J.int32();continue}case 18:{if(K!==144)break;q.mediaUploadRichQuickReplies=J.int32();continue}case 19:{if(K!==152)break;q.vnameV2=J.int32();continue}case 20:{if(K!==160)break;q.videoPlaybackUrl=J.int32();continue}case 21:{if(K!==168)break;q.statusRanking=J.int32();continue}case 22:{if(K!==176)break;q.voipIndividualVideo=J.int32();continue}case 23:{if(K!==184)break;q.thirdPartyStickers=J.int32();continue}case 24:{if(K!==192)break;q.frequentlyForwardedSetting=J.int32();continue}case 25:{if(K!==200)break;q.groupsV4JoinPermission=J.int32();continue}case 26:{if(K!==208)break;q.recentStickers=J.int32();continue}case 27:{if(K!==216)break;q.catalog=J.int32();continue}case 28:{if(K!==224)break;q.starredStickers=J.int32();continue}case 29:{if(K!==232)break;q.voipGroupCall=J.int32();continue}case 30:{if(K!==240)break;q.templateMessage=J.int32();continue}case 31:{if(K!==248)break;q.templateMessageInteractivity=J.int32();continue}case 32:{if(K!==256)break;q.ephemeralMessages=J.int32();continue}case 33:{if(K!==264)break;q.e2ENotificationSync=J.int32();continue}case 34:{if(K!==272)break;q.recentStickersV2=J.int32();continue}case 36:{if(K!==288)break;q.recentStickersV3=J.int32();continue}case 37:{if(K!==296)break;q.userNotice=J.int32();continue}case 39:{if(K!==312)break;q.support=J.int32();continue}case 40:{if(K!==320)break;q.groupUiiCleanup=J.int32();continue}case 41:{if(K!==328)break;q.groupDogfoodingInternalOnly=J.int32();continue}case 42:{if(K!==336)break;q.settingsSync=J.int32();continue}case 43:{if(K!==344)break;q.archiveV2=J.int32();continue}case 44:{if(K!==352)break;q.ephemeralAllowGroupMembers=J.int32();continue}case 45:{if(K!==360)break;q.ephemeral24HDuration=J.int32();continue}case 46:{if(K!==368)break;q.mdForceUpgrade=J.int32();continue}case 47:{if(K!==376)break;q.disappearingMode=J.int32();continue}case 48:{if(K!==384)break;q.externalMdOptInAvailable=J.int32();continue}case 49:{if(K!==392)break;q.noDeleteMessageTimeLimit=J.int32();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return IE.fromPartial($??{})},fromPartial($){let Q=gB();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 rB(){return{}}var g={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();if($.message!==void 0)d.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)JQ.encode($.paymentInfo,Q.uint32(234).fork()).join();if($.finalLiveLocation!==void 0)MQ.encode($.finalLiveLocation,Q.uint32(242).fork()).join();if($.quotedPaymentInfo!==void 0)JQ.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)t$.encode($.mediaData,Q.uint32(306).fork()).join();if($.photoChange!==void 0)w6.encode($.photoChange,Q.uint32(314).fork()).join();if($.userReceipt!==void 0&&$.userReceipt.length!==0)for(let Z of $.userReceipt)x5.encode(Z,Q.uint32(322).fork()).join();if($.reactions!==void 0&&$.reactions.length!==0)for(let Z of $.reactions)s6.encode(Z,Q.uint32(330).fork()).join();if($.quotedStickerData!==void 0)t$.encode($.quotedStickerData,Q.uint32(338).fork()).join();if($.futureproofData!==void 0)Q.uint32(346).bytes($.futureproofData);if($.statusPsa!==void 0)A9.encode($.statusPsa,Q.uint32(354).fork()).join();if($.pollUpdates!==void 0&&$.pollUpdates.length!==0)for(let Z of $.pollUpdates)o6.encode(Z,Q.uint32(362).fork()).join();if($.pollAdditionalMetadata!==void 0)d6.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)Zq.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)j6.encode($.pinInChat,Q.uint32(434).fork()).join();if($.premiumMessageInfo!==void 0)i6.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)GK.encode($.commentMetadata,Q.uint32(474).fork()).join();if($.eventResponses!==void 0&&$.eventResponses.length!==0)for(let Z of $.eventResponses)y8.encode(Z,Q.uint32(490).fork()).join();if($.reportingTokenInfo!==void 0)$9.encode($.reportingTokenInfo,Q.uint32(498).fork()).join();if($.newsletterServerId!==void 0)Q.uint32(504).uint64($.newsletterServerId);if($.eventAdditionalMetadata!==void 0)T8.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)B.encode($.targetMessageId,Q.uint32(538).fork()).join();if($.messageAddOns!==void 0&&$.messageAddOns.length!==0)for(let Z of $.messageAddOns)F6.encode(Z,Q.uint32(546).fork()).join();if($.statusMentionMessageInfo!==void 0)R9.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)$K.encode(Z,Q.uint32(578).fork()).join();if($.botTargetId!==void 0)Q.uint32(586).string($.botTargetId);if($.groupHistoryIndividualMessageInfo!==void 0)u8.encode($.groupHistoryIndividualMessageInfo,Q.uint32(594).fork()).join();if($.groupHistoryBundleInfo!==void 0)p8.encode($.groupHistoryBundleInfo,Q.uint32(602).fork()).join();if($.interactiveMessageAdditionalMetadata!==void 0)qq.encode($.interactiveMessageAdditionalMetadata,Q.uint32(610).fork()).join();if($.quarantinedMessage!==void 0)a6.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)q9.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,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??rB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.message=d.decode(J,J.uint32(),q.message);continue}case 3:{if(K!==24)break;q.messageTimestamp=J.uint64Value();continue}case 4:{if(K!==32)break;q.status=J.int32();continue}case 5:{if(K!==42)break;q.participant=J.string();continue}case 6:{if(K!==48)break;q.messageC2STimestamp=J.uint64Value();continue}case 16:{if(K!==128)break;q.ignore=J.bool();continue}case 17:{if(K!==136)break;q.starred=J.bool();continue}case 18:{if(K!==144)break;q.broadcast=J.bool();continue}case 19:{if(K!==154)break;q.pushName=J.string();continue}case 20:{if(K!==162)break;q.mediaCiphertextSha256=J.bytes();continue}case 21:{if(K!==168)break;q.multicast=J.bool();continue}case 22:{if(K!==176)break;q.urlText=J.bool();continue}case 23:{if(K!==184)break;q.urlNumber=J.bool();continue}case 24:{if(K!==192)break;q.messageStubType=J.int32();continue}case 25:{if(K!==200)break;q.clearMedia=J.bool();continue}case 26:{if(K!==210)break;if(q.messageStubParameters===void 0)q.messageStubParameters=[];let V=J.string();if(V!==void 0)q.messageStubParameters.push(V);continue}case 27:{if(K!==216)break;q.duration=J.uint32();continue}case 28:{if(K!==226)break;if(q.labels===void 0)q.labels=[];let V=J.string();if(V!==void 0)q.labels.push(V);continue}case 29:{if(K!==234)break;q.paymentInfo=JQ.decode(J,J.uint32(),q.paymentInfo);continue}case 30:{if(K!==242)break;q.finalLiveLocation=MQ.decode(J,J.uint32(),q.finalLiveLocation);continue}case 31:{if(K!==250)break;q.quotedPaymentInfo=JQ.decode(J,J.uint32(),q.quotedPaymentInfo);continue}case 32:{if(K!==256)break;q.ephemeralStartTimestamp=J.uint64Value();continue}case 33:{if(K!==264)break;q.ephemeralDuration=J.uint32();continue}case 34:{if(K!==272)break;q.ephemeralOffToOn=J.bool();continue}case 35:{if(K!==280)break;q.ephemeralOutOfSync=J.bool();continue}case 36:{if(K!==288)break;q.bizPrivacyStatus=J.int32();continue}case 37:{if(K!==298)break;q.verifiedBizName=J.string();continue}case 38:{if(K!==306)break;q.mediaData=t$.decode(J,J.uint32(),q.mediaData);continue}case 39:{if(K!==314)break;q.photoChange=w6.decode(J,J.uint32(),q.photoChange);continue}case 40:{if(K!==322)break;if(q.userReceipt===void 0)q.userReceipt=[];let V=x5.decode(J,J.uint32());if(V!==void 0)q.userReceipt.push(V);continue}case 41:{if(K!==330)break;if(q.reactions===void 0)q.reactions=[];let V=s6.decode(J,J.uint32());if(V!==void 0)q.reactions.push(V);continue}case 42:{if(K!==338)break;q.quotedStickerData=t$.decode(J,J.uint32(),q.quotedStickerData);continue}case 43:{if(K!==346)break;q.futureproofData=J.bytes();continue}case 44:{if(K!==354)break;q.statusPsa=A9.decode(J,J.uint32(),q.statusPsa);continue}case 45:{if(K!==362)break;if(q.pollUpdates===void 0)q.pollUpdates=[];let V=o6.decode(J,J.uint32());if(V!==void 0)q.pollUpdates.push(V);continue}case 46:{if(K!==370)break;q.pollAdditionalMetadata=d6.decode(J,J.uint32(),q.pollAdditionalMetadata);continue}case 47:{if(K!==378)break;q.agentId=J.string();continue}case 48:{if(K!==384)break;q.statusAlreadyViewed=J.bool();continue}case 49:{if(K!==394)break;q.messageSecret=J.bytes();continue}case 50:{if(K!==402)break;q.keepInChat=Zq.decode(J,J.uint32(),q.keepInChat);continue}case 51:{if(K!==410)break;q.originalSelfAuthorUserJidString=J.string();continue}case 52:{if(K!==416)break;q.revokeMessageTimestamp=J.uint64Value();continue}case 54:{if(K!==434)break;q.pinInChat=j6.decode(J,J.uint32(),q.pinInChat);continue}case 55:{if(K!==442)break;q.premiumMessageInfo=i6.decode(J,J.uint32(),q.premiumMessageInfo);continue}case 56:{if(K!==448)break;q.is1PBizBotMessage=J.bool();continue}case 57:{if(K!==456)break;q.isGroupHistoryMessage=J.bool();continue}case 58:{if(K!==466)break;q.botMessageInvokerJid=J.string();continue}case 59:{if(K!==474)break;q.commentMetadata=GK.decode(J,J.uint32(),q.commentMetadata);continue}case 61:{if(K!==490)break;if(q.eventResponses===void 0)q.eventResponses=[];let V=y8.decode(J,J.uint32());if(V!==void 0)q.eventResponses.push(V);continue}case 62:{if(K!==498)break;q.reportingTokenInfo=$9.decode(J,J.uint32(),q.reportingTokenInfo);continue}case 63:{if(K!==504)break;q.newsletterServerId=J.uint64Value();continue}case 64:{if(K!==514)break;q.eventAdditionalMetadata=T8.decode(J,J.uint32(),q.eventAdditionalMetadata);continue}case 65:{if(K!==520)break;q.isMentionedInStatus=J.bool();continue}case 66:{if(K!==530)break;if(q.statusMentions===void 0)q.statusMentions=[];let V=J.string();if(V!==void 0)q.statusMentions.push(V);continue}case 67:{if(K!==538)break;q.targetMessageId=B.decode(J,J.uint32(),q.targetMessageId);continue}case 68:{if(K!==546)break;if(q.messageAddOns===void 0)q.messageAddOns=[];let V=F6.decode(J,J.uint32());if(V!==void 0)q.messageAddOns.push(V);continue}case 69:{if(K!==554)break;q.statusMentionMessageInfo=R9.decode(J,J.uint32(),q.statusMentionMessageInfo);continue}case 70:{if(K!==560)break;q.isSupportAiMessage=J.bool();continue}case 71:{if(K!==570)break;if(q.statusMentionSources===void 0)q.statusMentionSources=[];let V=J.string();if(V!==void 0)q.statusMentionSources.push(V);continue}case 72:{if(K!==578)break;if(q.supportAiCitations===void 0)q.supportAiCitations=[];let V=$K.decode(J,J.uint32());if(V!==void 0)q.supportAiCitations.push(V);continue}case 73:{if(K!==586)break;q.botTargetId=J.string();continue}case 74:{if(K!==594)break;q.groupHistoryIndividualMessageInfo=u8.decode(J,J.uint32(),q.groupHistoryIndividualMessageInfo);continue}case 75:{if(K!==602)break;q.groupHistoryBundleInfo=p8.decode(J,J.uint32(),q.groupHistoryBundleInfo);continue}case 76:{if(K!==610)break;q.interactiveMessageAdditionalMetadata=qq.decode(J,J.uint32(),q.interactiveMessageAdditionalMetadata);continue}case 77:{if(K!==618)break;q.quarantinedMessage=a6.decode(J,J.uint32(),q.quarantinedMessage);continue}case 78:{if(K!==624)break;q.nonJidMentions=J.uint32();continue}case 79:{if(K!==634)break;q.hsmTag=J.string();continue}case 80:{if(K!==640)break;q.ephemeralExpirationTimestamp=J.uint64Value();continue}case 81:{if(K!==650)break;q.scheduledMessageMetadata=q9.decode(J,J.uint32(),q.scheduledMessageMetadata);continue}case 82:{if(K!==658)break;q.decisionId=J.string();continue}case 83:{if(K!==666)break;if(q.decisionSources===void 0)q.decisionSources=[];let V=J.string();if(V!==void 0)q.decisionSources.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return g.fromPartial($??{})},fromPartial($){let Q=rB();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.message=$.message!==void 0&&$.message!==null?d.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?JQ.fromPartial($.paymentInfo):void 0,Q.finalLiveLocation=$.finalLiveLocation!==void 0&&$.finalLiveLocation!==null?MQ.fromPartial($.finalLiveLocation):void 0,Q.quotedPaymentInfo=$.quotedPaymentInfo!==void 0&&$.quotedPaymentInfo!==null?JQ.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?t$.fromPartial($.mediaData):void 0,Q.photoChange=$.photoChange!==void 0&&$.photoChange!==null?w6.fromPartial($.photoChange):void 0,Q.userReceipt=$.userReceipt?.map((Z)=>x5.fromPartial(Z))||void 0,Q.reactions=$.reactions?.map((Z)=>s6.fromPartial(Z))||void 0,Q.quotedStickerData=$.quotedStickerData!==void 0&&$.quotedStickerData!==null?t$.fromPartial($.quotedStickerData):void 0,Q.futureproofData=$.futureproofData??void 0,Q.statusPsa=$.statusPsa!==void 0&&$.statusPsa!==null?A9.fromPartial($.statusPsa):void 0,Q.pollUpdates=$.pollUpdates?.map((Z)=>o6.fromPartial(Z))||void 0,Q.pollAdditionalMetadata=$.pollAdditionalMetadata!==void 0&&$.pollAdditionalMetadata!==null?d6.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?Zq.fromPartial($.keepInChat):void 0,Q.originalSelfAuthorUserJidString=$.originalSelfAuthorUserJidString??void 0,Q.revokeMessageTimestamp=$.revokeMessageTimestamp??void 0,Q.pinInChat=$.pinInChat!==void 0&&$.pinInChat!==null?j6.fromPartial($.pinInChat):void 0,Q.premiumMessageInfo=$.premiumMessageInfo!==void 0&&$.premiumMessageInfo!==null?i6.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?GK.fromPartial($.commentMetadata):void 0,Q.eventResponses=$.eventResponses?.map((Z)=>y8.fromPartial(Z))||void 0,Q.reportingTokenInfo=$.reportingTokenInfo!==void 0&&$.reportingTokenInfo!==null?$9.fromPartial($.reportingTokenInfo):void 0,Q.newsletterServerId=$.newsletterServerId??void 0,Q.eventAdditionalMetadata=$.eventAdditionalMetadata!==void 0&&$.eventAdditionalMetadata!==null?T8.fromPartial($.eventAdditionalMetadata):void 0,Q.isMentionedInStatus=$.isMentionedInStatus??void 0,Q.statusMentions=$.statusMentions?.map((Z)=>Z)||void 0,Q.targetMessageId=$.targetMessageId!==void 0&&$.targetMessageId!==null?B.fromPartial($.targetMessageId):void 0,Q.messageAddOns=$.messageAddOns?.map((Z)=>F6.fromPartial(Z))||void 0,Q.statusMentionMessageInfo=$.statusMentionMessageInfo!==void 0&&$.statusMentionMessageInfo!==null?R9.fromPartial($.statusMentionMessageInfo):void 0,Q.isSupportAiMessage=$.isSupportAiMessage??void 0,Q.statusMentionSources=$.statusMentionSources?.map((Z)=>Z)||void 0,Q.supportAiCitations=$.supportAiCitations?.map((Z)=>$K.fromPartial(Z))||void 0,Q.botTargetId=$.botTargetId??void 0,Q.groupHistoryIndividualMessageInfo=$.groupHistoryIndividualMessageInfo!==void 0&&$.groupHistoryIndividualMessageInfo!==null?u8.fromPartial($.groupHistoryIndividualMessageInfo):void 0,Q.groupHistoryBundleInfo=$.groupHistoryBundleInfo!==void 0&&$.groupHistoryBundleInfo!==null?p8.fromPartial($.groupHistoryBundleInfo):void 0,Q.interactiveMessageAdditionalMetadata=$.interactiveMessageAdditionalMetadata!==void 0&&$.interactiveMessageAdditionalMetadata!==null?qq.fromPartial($.interactiveMessageAdditionalMetadata):void 0,Q.quarantinedMessage=$.quarantinedMessage!==void 0&&$.quarantinedMessage!==null?a6.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?q9.fromPartial($.scheduledMessageMetadata):void 0,Q.decisionId=$.decisionId??void 0,Q.decisionSources=$.decisionSources?.map((Z)=>Z)||void 0,Q}};function tB(){return{}}var Y$={encode($,Q=new H){if($.key!==void 0)B.encode($.key,Q.uint32(10).fork()).join();if($.messageBytes!==void 0)Q.uint32(18).bytes($.messageBytes);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??tB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.key=B.decode(J,J.uint32(),q.key);continue}case 2:{if(K!==18)break;q.messageBytes=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return Y$.fromPartial($??{})},fromPartial($){let Q=tB();return Q.key=$.key!==void 0&&$.key!==null?B.fromPartial($.key):void 0,Q.messageBytes=$.messageBytes??void 0,Q}};function aB(){return{}}var TE={encode($,Q=new H){if($.timestamp!==void 0)Q.uint32(16).uint64($.timestamp);if($.unreadChats!==void 0)Q.uint32(24).uint32($.unreadChats);if($.notifyMessageCount!==void 0)Q.uint32(32).uint32($.notifyMessageCount);if($.notifyMessages!==void 0&&$.notifyMessages.length!==0)for(let Z of $.notifyMessages)g.encode(Z,Q.uint32(42).fork()).join();return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??aB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 2:{if(K!==16)break;q.timestamp=J.uint64Value();continue}case 3:{if(K!==24)break;q.unreadChats=J.uint32();continue}case 4:{if(K!==32)break;q.notifyMessageCount=J.uint32();continue}case 5:{if(K!==42)break;if(q.notifyMessages===void 0)q.notifyMessages=[];let V=g.decode(J,J.uint32());if(V!==void 0)q.notifyMessages.push(V);continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return TE.fromPartial($??{})},fromPartial($){let Q=aB();return Q.timestamp=$.timestamp??void 0,Q.unreadChats=$.unreadChats??void 0,Q.notifyMessageCount=$.notifyMessageCount??void 0,Q.notifyMessages=$.notifyMessages?.map((Z)=>g.fromPartial(Z))||void 0,Q}};function sB(){return{}}var N5={encode($,Q=new H){if($.keyBytes!==void 0)Q.uint32(10).bytes($.keyBytes);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??sB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.keyBytes=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return N5.fromPartial($??{})},fromPartial($){let Q=sB();return Q.keyBytes=$.keyBytes??void 0,Q}};function eB(){return{}}var yE={encode($,Q=new H){if($.prefixedKey!==void 0)Q.uint32(10).bytes($.prefixedKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??eB();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.prefixedKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return yE.fromPartial($??{})},fromPartial($){let Q=eB();return Q.prefixedKey=$.prefixedKey??void 0,Q}};function $N(){return{}}var O5={encode($,Q=new H){if($.keyBytes!==void 0)Q.uint32(10).bytes($.keyBytes);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??$N();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.keyBytes=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return O5.fromPartial($??{})},fromPartial($){let Q=$N();return Q.keyBytes=$.keyBytes??void 0,Q}};function QN(){return{}}var vE={encode($,Q=new H){if($.prefixedKey!==void 0)Q.uint32(10).bytes($.prefixedKey);return Q},decode($,Q,Z){let J=$ instanceof Y?$:new Y($),X=Q===void 0?J.len:J.pos+Q,q=Z??QN();while(J.pos<X){let K=J.uint32();switch(K>>>3){case 1:{if(K!==10)break;q.prefixedKey=J.bytes();continue}}if(K>>>3===0||(K&7)===4)throw RangeError(`illegal protobuf tag ${K} at offset ${J.pos}`);J.skip(K&7)}return q},create($){return vE.fromPartial($??{})},fromPartial($){let Q=QN();return Q.prefixedKey=$.prefixedKey??void 0,Q}};var s2={Message:d,WebMessageInfo:g,HistorySync:n5,SyncActionData:mQ,ClientPayload:j5,AdvSignedDeviceIdentity:h5,AdvSignedKeyIndexList:p5,AdvDeviceIdentity:_5,AdvSignedDeviceIdentityHmac:l5,HandshakeMessage:d5,SyncdRecord:j$,SyncdMutation:w$,SyncdMutations:r5,SyncdPatch:t5,SyncdSnapshot:a5,ExitCode:oQ,SyncActionValue:gQ,DeviceProps:c5,SenderKeyDistributionMessage:i5,SenderKeyMessage:m5,ServerErrorReceipt:g5,CertChain:u5,"CertChain.NoiseCertificate":h$,"CertChain.NoiseCertificate.Details":w5,ExternalBlobReference:iQ,LidMigrationMappingSyncPayload:b5,MediaRetryNotification:o5,VerifiedNameCertificate:c$,"VerifiedNameCertificate.Details":s5,"Message.PollVoteMessage":u$,"Message.EventResponseMessage":p$};var e2=R5;function EV($){let Q=s2[$];if(Q)return Q;let Z=$.replace(/\./g,"_"),J=e2[Z];if(J&&typeof J==="object"&&"encode"in J)return J;throw Error(`unknown proto type: ${$}`)}function e5($){if($===null)return;if(T5($))return D0($);if(typeof $!=="object")return $;if(ArrayBuffer.isView($)||$ instanceof ArrayBuffer)return $;if(Array.isArray($)){let X;for(let q=0;q<$.length;q++){let K=e5($[q]);if(K!==$[q])(X??=$.slice())[q]=K}return X??$}let Q=$,Z=Object.getPrototypeOf(Q);if(Z!==Object.prototype&&Z!==null){let X={};for(let q of Object.keys(Q)){let K=e5(Q[q]);if(K!==void 0)X[q]=K}return X}let J;for(let X in Q){let q=e5(Q[X]);if(q!==Q[X])(J??={...Q})[X]=q}return J??$}function AV($,Q,Z){if(typeof $==="string"){let J=I5($);if(J>=0)Z.push({path:Q,index:J,codeUnit:$.charCodeAt(J)});return}if(typeof $!=="object"||$===null)return;if(ArrayBuffer.isView($)||$ instanceof ArrayBuffer)return;if(Array.isArray($)){for(let J=0;J<$.length;J++)AV($[J],`${Q}[${J}]`,Z);return}for(let[J,X]of Object.entries($)){if(Q!==""){let q=I5(J);if(q>=0)Z.push({path:`${Q} (map key)`,index:q,codeUnit:J.charCodeAt(q)})}AV(X,Q===""?J:`${Q}.${J}`,Z)}}function $M($,Q){try{return $.fromPartial(Q)}catch{return Q}}function QM($,Q){let Z=[];AV($,"",Z);let J=Z.filter((q)=>q.index===Q.index&&q.codeUnit===Q.codeUnit);return new Set(J.map((q)=>q.path)).size===1?J[0].path:void 0}function MV($,Q){let Z=EV($),J=e5(Q??{});try{return Z.encode(J).finish()}catch(X){if(X instanceof eQ&&X.path===void 0){let q=QM($M(Z,J),X);if(q!==void 0)throw new eQ(X.index,X.codeUnit,q)}throw X}}function JM($,Q,Z){let J=EV($);if(Z===void 0)return J.decode(Q);let X=new F0(Q),q=J.decode(X,Q.length);return Z.invalidUtf8Fields=X.invalidUtf8Fields,q}var fE=1;function KM($,Q,Z,J){if(Z.length<fE)throw RangeError("protobuf batch offsets must contain the leading sentinel");if(Z[0]!==0)throw RangeError("protobuf batch offsets must start at zero");let X=Z.length-fE;for(let C=0;C<X;C++)if(Z[C+1]<Z[C])throw RangeError("protobuf batch offsets must be monotonic");if(Z[X]!==Q.length)throw RangeError("protobuf batch offsets must end at the data length");let q=EV($),K=J===void 0?new Y(Q):new F0(Q),V=Array(X);for(let C=0;C<X;C++){let F=Z[C],A=Z[C+1];if(K.pos=F,V[C]=q.decode(K,A-F),K.pos!==A)throw RangeError("protobuf decoder did not consume the delimited entry")}if(J!==void 0)J.invalidUtf8Fields=K.invalidUtf8Fields;return V}var QV=new TextDecoder("utf-8",{ignoreBOM:!0}),qM=new Uint8Array(0),A5=new TextEncoder;function ZM($){let Q=(J)=>{let X=$[J];if(X===void 0)throw RangeError("packed record references a missing table entry");return X};return{required:Q,optional:(J)=>J===0?void 0:Q(J-1)}}var Q0=10,hE=0,lE=1,pE=2,uE=3,wE=4,jE=5,cE=6,dE=7,nE=8,bE=9,oE=1,iE=2,mE=4,gE=8,dQ=24,rE=0,tE=4,aE=8,sE=12,eE=16,$2=20;class WV{region="";cursor=0;units=0;isAscii=!0;bytes=qM;at=0;length=0;whole=!1;read($,Q,Z,J){if(this.cursor=0,this.units=0,this.region="",this.isAscii=!0,this.bytes=$,this.at=Q,this.length=Z,this.whole=Z>0&&Z<=HM&&(J>1||Z>=_E),!this.whole)return;if(Z>=_E){this.region=QV.decode($.subarray(Q,Q+Z)),this.isAscii=this.region.length===Z;return}let X="",q=Q,K=Q+Z,V=Q+(Z/4|0)*4;while(q<V){let C=$[q],F=$[q+1],A=$[q+2],E=$[q+3];if(((C|F|A|E)&128)!==0)break;X+=String.fromCharCode(C,F,A,E),q+=4}if(q===V)while(q<K){let C=$[q];if(C>=128)break;X+=String.fromCharCode(C),q++}if(q===K){this.region=X;return}this.isAscii=!1,this.region=QV.decode($.subarray(Q,Q+Z))}take($){if($===0)return"";if(!Number.isInteger($)||$<0||this.cursor+$>this.length)throw RangeError("packed batch value runs past its string region");let Q=this.cursor;if(this.cursor+=$,!this.whole)return QV.decode(this.bytes.subarray(this.at+Q,this.at+this.cursor));if(this.isAscii)return this.region.substring(Q,this.cursor);let Z=this.region,J=this.units,X=J,q=0;while(q<$&&X<Z.length){let K=Z.charCodeAt(X);if(K<128)q+=1,X+=1;else if(K<2048)q+=2,X+=1;else if(K>=55296&&K<56320)q+=4,X+=2;else q+=3,X+=1}return this.units=X,Z.substring(J,X)}}function XM($){return($.byteOffset+dQ)%8===0?$:new Uint8Array($)}var $V=[];function YM($){let Q=XM($);if(Q.byteLength<dQ)throw RangeError("message wire batch is shorter than its header");let Z=new DataView(Q.buffer,Q.byteOffset,dQ),J=Z.getUint32(rE,!0),X=Z.getUint32(tE,!0),q=Z.getUint32(aE,!0),K=Z.getUint32(sE,!0),V=Z.getUint32(eE,!0),C=Z.getUint32($2,!0);if(V!==Q0)throw RangeError(`message wire batch record width ${V} does not match the expected ${Q0}`);let F=J*V*8,A=(J+1)*4,E=(X+1)*4,h=dQ+F+A+E+q+K;if(Q.byteLength<h)throw RangeError(`message wire batch is truncated: ${Q.byteLength} bytes, expected ${h}`);let y=dQ,I=new Float64Array(Q.buffer,Q.byteOffset+y,J*V);y+=F;let w=new Uint32Array(Q.buffer,Q.byteOffset+y,J+1);y+=A;let M=new Uint32Array(Q.buffer,Q.byteOffset+y,X+1);y+=E;let D$=Q.subarray(y,y+q);y+=q;let Z$=y,f=M[X];if(f>K)throw RangeError("message wire batch string definitions run past its string region");if(M[0]!==0)throw RangeError("message wire batch definition offsets must start at zero");for(let l=0;l<X;l++)if(M[l+1]<M[l])throw RangeError("message wire batch definition offsets do not ascend");if((C&1)!==0)$V.length=0;for(let l=0;l<X;l++)$V.push(QV.decode(Q.subarray(Z$+M[l],Z$+M[l+1])));let X$=new WV;X$.read(Q,Z$+f,K-f,J);let m=f,u=(l)=>{let U$=m+l;if(U$>K)throw RangeError("message wire batch inline value runs past its string region");return m=U$,X$.take(l)},ZV=(l)=>l===0?void 0:u(l-1),{required:J0,optional:K0}=ZM($V),E5=Array(J);for(let l=0;l<J;l++){let U$=l*V,M5=I[U$+dE];E5[l]={chat:J0(I[U$+hE]),sender:J0(I[U$+lE]),senderAlt:K0(I[U$+pE]),recipientAlt:K0(I[U$+uE]),isFromMe:(M5&oE)!==0,isGroup:(M5&iE)!==0,id:u(I[U$+wE]),timestamp:I[U$+cE],pushName:J0(I[U$+jE]),isViewOnce:(M5&mE)!==0,isOffline:(M5&gE)!==0,unavailableRequestId:ZV(I[U$+nE]),edit:K0(I[U$+bE])}}if((C&2)!==0)$V.length=0;return{messageData:D$,messageOffsets:w,infos:E5}}class Q2{cache=new Map;held=0;cacheBytes=0;flags=1;encode($){try{return this.encodeBatch($)}catch(Q){throw this.cache.clear(),this.held=0,this.cacheBytes=0,this.flags=1,Q}}encodeBatch($){let Q=[],Z=[],J=(f)=>{let X$=this.cache.get(f);if(X$!==void 0)return X$;let m=this.held+Q.length,u=A5.encode(f);return this.cache.set(f,m),this.cacheBytes+=u.byteLength,Q.push(u),m},X=(f)=>f===void 0?0:J(f)+1,q=(f)=>{let X$=A5.encode(f);return Z.push(X$),X$.byteLength},K=(f)=>f===void 0?0:q(f)+1,V=new Float64Array($.length*Q0),C=new Uint32Array($.length+1),F=0;for(let f=0;f<$.length;f++){let{payload:X$,info:m}=$[f];F+=X$.byteLength,C[f+1]=F;let u=f*Q0;V[u+hE]=J(m.chat),V[u+lE]=J(m.sender),V[u+pE]=X(m.senderAlt),V[u+uE]=X(m.recipientAlt),V[u+jE]=J(m.pushName),V[u+cE]=m.timestamp,V[u+bE]=X(m.edit),V[u+dE]=(m.isFromMe?oE:0)|(m.isGroup?iE:0)|(m.isViewOnce?mE:0)|(m.isOffline?gE:0),V[u+wE]=q(m.id),V[u+nE]=K(m.unavailableRequestId)}let A=new Uint32Array(Q.length+1),E=0;for(let f=0;f<Q.length;f++)E+=Q[f].byteLength,A[f+1]=E;let h=E;for(let f of Z)h+=f.byteLength;let y=dQ+V.byteLength+C.byteLength+A.byteLength+F+h,I=new Uint8Array(y),w=new DataView(I.buffer,0,dQ);w.setUint32(rE,$.length,!0),w.setUint32(tE,Q.length,!0),w.setUint32(aE,F,!0),w.setUint32(sE,h,!0),w.setUint32(eE,Q0,!0);let M=this.cache.size>=4096||this.cacheBytes>=65536;w.setUint32($2,this.flags|(M?2:0),!0);let D$=dQ,Z$=(f)=>{I.set(f,D$),D$+=f.byteLength};Z$(new Uint8Array(V.buffer,V.byteOffset,V.byteLength)),Z$(new Uint8Array(C.buffer,C.byteOffset,C.byteLength)),Z$(new Uint8Array(A.buffer,A.byteOffset,A.byteLength));for(let{payload:f}of $)Z$(f);for(let f of Q)Z$(f);for(let f of Z)Z$(f);if(this.held+=Q.length,this.flags=0,M)this.cache.clear(),this.held=0,this.cacheBytes=0,this.flags=1;return I}}function VM($){return new Q2().encode($)}var JV=20,_E=100,HM=4096,zM=65535,J2=1,K2=2,q2=4,Z2=8;class SV{strings=[];jids=[];view;cursor=0;stringRegion=new WV;begin($){if(this.view=new DataView($.buffer,$.byteOffset,$.byteLength),$.byteLength<JV)throw RangeError("packed batch is shorter than its header");let Q=this.view.getUint32(0,!0),Z=this.view.getUint32(4,!0),J=this.view.getUint32(8,!0),X=this.view.getUint32(12,!0);if((this.view.getUint32(16,!0)&1)!==0)this.strings.length=0,this.jids.length=0;let K=JV,V=K;K+=Z*4;let C=K;K+=J*11;let F=K,A=$.byteLength-X;if(A<F)throw RangeError("packed batch regions overlap");this.stringRegion.read($,A,X,Z+Q);for(let E=0;E<Z;E++){let h=V+E*4,y=this.view.getUint16(h,!0);this.strings[y]=this.stringRegion.take(this.view.getUint16(h+2,!0))}for(let E=0;E<J;E++){let h=C+E*11,y=this.view.getUint16(h,!0),I=this.strings[this.view.getUint16(h+2,!0)],w=this.strings[this.view.getUint16(h+4,!0)];if(I===void 0||w===void 0)throw RangeError("packed jid references a missing string slot");this.jids[y]=Object.freeze({user:I,server:w,agent:this.view.getUint8(h+6),device:this.view.getUint16(h+7,!0),integrator:this.view.getUint16(h+9,!0)})}return this.cursor=F,Q}u8(){return this.view.getUint8(this.cursor++)}f64(){let $=this.view.getFloat64(this.cursor,!0);return this.cursor+=8,$}inline(){let $=this.view.getUint16(this.cursor,!0);return this.cursor+=2,this.stringRegion.take($)}u16(){return this.slot()}slot(){let $=this.view.getUint16(this.cursor,!0);return this.cursor+=2,$}str(){let $=this.strings[this.slot()];if($===void 0)throw RangeError("packed record references a missing string slot");return $}strOptional(){let $=this.slot();if($===0)return;let Q=this.strings[$-1];if(Q===void 0)throw RangeError("packed record references a missing string slot");return Q}jid(){let $=this.jids[this.slot()];if($===void 0)throw RangeError("packed record references a missing jid slot");return $}jidOptional(){let $=this.slot();if($===0)return;let Q=this.jids[$-1];if(Q===void 0)throw RangeError("packed record references a missing jid slot");return Q}}var C$=new SV,$0=new SV;function GM($){let Q=C$.begin($),Z=Array(Q);for(let J=0;J<Q;J++){let X=C$.u8(),q=C$.jid(),K=C$.jid(),V=C$.jidOptional(),C=C$.jidOptional(),F=C$.jidOptional(),A=C$.jidOptional(),E=C$.strOptional(),h=C$.str(),y=C$.f64(),I=C$.u16(),w=Array(I);for(let M=0;M<I;M++)w[M]=C$.inline();Z[J]={source:{chat:q,sender:K,is_from_me:(X&J2)!==0,is_group:(X&K2)!==0,addressing_mode:E,sender_alt:V,recipient_alt:C,broadcast_list_owner:F,recipient:A},message_ids:w,timestamp:y,type:(X&Z2)!==0?{Other:h}:h,offline:(X&q2)!==0}}return Z}function UM($){let Q=$0.begin($),Z=Array(Q);for(let J=0;J<Q;J++){let X=$0.strOptional(),q=$0.jidOptional(),K=$0.strOptional(),V=$0.f64();Z[J]={id:$0.inline(),class:X,from:q,timestamp:Number.isNaN(V)?void 0:V,error:K}}return Z}class IV{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,A5.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 J=this.cacheStr($.user),X=this.cacheStr($.server),q=this.jidSlots.size;return this.jidSlots.set(Q,q),this.newJids.push([q,J,X,$.agent,$.device,$.integrator]),q}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=A5.encode($).length;this.records.push(Q&255,Q>>8&255),this.inline.push($)}endRecord(){this.recordCount++}finish(){let $=A5.encode(this.definitions.join("")+this.inline.join("")),Q=JV+this.newStrings.length*4+this.newJids.length*11+this.records.length+$.length,Z=new Uint8Array(Q),J=new DataView(Z.buffer);J.setUint32(0,this.recordCount,!0),J.setUint32(4,this.newStrings.length,!0),J.setUint32(8,this.newJids.length,!0),J.setUint32(12,$.length,!0),J.setUint32(16,1,!0);let X=JV;for(let[q,K]of this.newStrings)J.setUint16(X,q,!0),J.setUint16(X+2,K,!0),X+=4;for(let[q,K,V,C,F,A]of this.newJids)J.setUint16(X,q,!0),J.setUint16(X+2,K,!0),J.setUint16(X+4,V,!0),J.setUint8(X+6,C),J.setUint16(X+7,F,!0),J.setUint16(X+9,A,!0),X+=11;return Z.set(this.records,X),X+=this.records.length,Z.set($,X),Z}}function CM($){let Q=new IV;for(let Z of $){let J=typeof Z.type!=="string",X=Q.cacheJid(Z.source.chat),q=Q.cacheJid(Z.source.sender),K=Q.cacheJidOptional(Z.source.sender_alt),V=Q.cacheJidOptional(Z.source.recipient_alt),C=Q.cacheJidOptional(Z.source.broadcast_list_owner),F=Q.cacheJidOptional(Z.source.recipient),A=Q.cacheStrOptional(Z.source.addressing_mode),E=Q.cacheStr(typeof Z.type==="string"?Z.type:Z.type.Other);Q.u8((Z.source.is_from_me?J2:0)|(Z.source.is_group?K2:0)|(Z.offline?q2:0)|(J?Z2:0));for(let h of[X,q,K,V,C,F,A,E])Q.slot(h);if(Q.f64(Z.timestamp),Z.message_ids.length>zM)throw RangeError("receipt carries more message ids than the wire format holds");Q.slot(Z.message_ids.length);for(let h of Z.message_ids)Q.writeInline(h);Q.endRecord()}return Q.finish()}function DM($){let Q=new IV;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 FM=1,LM=2,PM=3,KV=8,qV=8;function kM($){if($.byteLength<KV)throw RangeError("event wire envelope is shorter than its header");let Q=new DataView($.buffer,$.byteOffset,$.byteLength),Z=Q.getUint32(0,!0),J=Array(Z),X=KV;for(let q=0;q<Z;q++){if(X+qV>$.byteLength)throw RangeError("event wire envelope is truncated");let K=Q.getUint32(X,!0),V=Q.getUint32(X+4,!0);if(X+=qV,X+V>$.byteLength)throw RangeError("event wire envelope segment is truncated");J[q]={kind:K,batch:$.subarray(X,X+V)},X=X+V+7&-8}return J}function xM($){let Q=KV;for(let{batch:q}of $)Q=Q+qV+q.byteLength+7&-8;let Z=new Uint8Array(Q),J=new DataView(Z.buffer);J.setUint32(0,$.length,!0);let X=KV;for(let{kind:q,batch:K}of $)J.setUint32(X,q,!0),J.setUint32(X+4,K.byteLength,!0),X+=qV,Z.set(K,X),X=X+K.byteLength+7&-8;return Z}var yV=($)=>typeof $==="object"&&$!==null&&typeof $.encode==="function"&&typeof $.decode==="function",Y2=($)=>typeof $==="object"&&$!==null&&!yV($);function BM(){return this}var X2=($)=>{if($&&typeof $==="object"&&!("toJSON"in $))Object.defineProperty($,"toJSON",{value:BM,enumerable:!1,writable:!0,configurable:!0})},NM=($,Q)=>({encode(Z){return{finish(){return MV($,Z)}}},decode(Z,J){let X=Z instanceof Y?Z:new Y(Z instanceof Uint8Array?Z:ArrayBuffer.isView(Z)?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z)),q=Q.decode(X,J);return X2(q),q},create(Z){return Z||{}},fromObject(Z){if(Z&&typeof Z==="object")X2(Z);return Z||{}},toObject(Z){return Z},fromPartial:Q.fromPartial?.bind(Q)??((Z)=>Z||{})}),OM=()=>({create($){return $||{}},fromObject($){return $||{}}}),TV="_",RM=".",AM="protobufPackage",EM={ADVKeyIndexList:"ADVSignedKeyIndexList"},MM=["Message","WebMessageInfo","ContextInfo","SyncActionValue"],WM=($,Q)=>$!==AM&&!$.startsWith(TV)&&typeof Q!=="function"&&(yV(Q)||Y2(Q)),SM=($)=>{let Q=$.at(0);return Q!==void 0&&Q===Q.toUpperCase()&&Q!==Q.toLowerCase()},IM=($)=>new Proxy($,{get(Q,Z,J){let X=Reflect.get(Q,Z,J);if(X!==void 0||typeof Z!=="string"||!SM(Z))return X;let q=OM();return Reflect.set(Q,Z,q),q}}),TM=()=>{let $={};for(let[Q,Z]of Object.entries(R5)){if(!WM(Q,Z))continue;let J=Q.split(TV),X=J.pop(),q=$;for(let K of J)q[K]??={},q=q[K];if(yV(Z)){let K=NM(Q.replaceAll(TV,RM),Z);q[X]=Object.assign(K,q[X]??{})}else if(Y2(Z))q[X]=Object.assign({},q[X]??{},Z)}for(let[Q,Z]of Object.entries(EM))if($[Z]&&!$[Q])$[Q]=$[Z];for(let Q of MM)if($[Q])$[Q]=IM($[Q]);return $},yM=TM();var fM=new URL("whatsapp_rust_bridge_bg.wasm",import.meta.url),_M=vM(fM);pV({module:_M});var TW=lV,yW=hV;export{XW as verifySignature,ZW as updateLogger,qW as setLogger,yM as proto,KW as projectLegacySessionRecordV1,JW as md5,D0 as longToBigInt,QW as logMessage,TW as initWasmEngine,pV as initSync,$W as inflateZlib,eM as importLegacySessionRecordV1,sM as hkdf,aM as hasLogger,tM as getWasmMemoryBytes,rM as getWasmAllocationSnapshot,gM as getPublicFromPrivateKey,mM as getEnabledFeatures,iM as generateKeyPair,oM as encodeSessionRecordComponents,DM as encodeServerAckWireBatch,bM as encodeSenderKeyRecordComponents,CM as encodeReceiptWireBatch,MV as encodeProto,VM as encodeMessageWireBatch,xM as encodeEventWireEnvelope,nM as decryptPollVotePayload,dM as decryptPollVote,cM as decryptEventResponsePayload,jM as decodeSessionRecordComponents,UM as decodeServerAckWireBatch,wM as decodeSenderKeyRecordComponents,GM as decodeReceiptWireBatch,KM as decodeProtoBatch,JM as decodeProto,YM as decodeMessageWireBatch,kM as decodeEventWireEnvelope,yW as createWhatsAppClient,uM as calculateSignature,pM as calculateAgreement,lM as beginWasmAllocationProfile,z0 as WasmWhatsAppClient,eQ as UnpairedSurrogateError,Q0 as MESSAGE_WIRE_INFO_RECORD_WIDTH,F0 as InvalidUtf8CountingReader,H0 as IntoUnderlyingSource,VV as IntoUnderlyingSink,YV as IntoUnderlyingByteSource,PM as EVENT_SEGMENT_KIND_SERVER_ACK,LM as EVENT_SEGMENT_KIND_RECEIPT,FM as EVENT_SEGMENT_KIND_MESSAGE,Y as BinaryReader};