@rongcloud/electron 5.48.0 → 5.48.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function e(e,t,i,r){return new(i||(i=Promise))((function(t,n){function E(e){try{I(r.next(e))}catch(e){n(e)}}function s(e){try{I(r.throw(e))}catch(e){n(e)}}function I(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(e){e(r)}))).then(E,s)}I((r=r.apply(e,[])).next())}))}function t(e,t,i,r){if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)}var i,r,n,E,s,I,o,_,a,R,f,h,l,T,A,u,N,O,S,M,c,g,d,C,p,L,P,D,U,y,v,V;!function(e){e[e.QINIU=1]="QINIU",e[e.ALI=2]="ALI",e[e.AWS=3]="AWS",e[e.STC=4]="STC",e[e.MINIO=5]="MINIO"}(i||(i={})),function(e){e[e.BOTH=2]="BOTH"}(r||(r={})),function(e){e[e.BOTH=2]="BOTH"}(n||(n={})),function(e){e[e.FREE=1]="FREE",e[e.NEED_VERIFY=2]="NEED_VERIFY",e[e.NO_ONE_ALLOWED=3]="NO_ONE_ALLOWED"}(E||(E={})),function(e){e[e.NONE=0]="NONE",e[e.IN_MY_FRIEND_LIST=1]="IN_MY_FRIEND_LIST",e[e.IN_OTHER_FRIEND_LIST=2]="IN_OTHER_FRIEND_LIST",e[e.BOTH_WAY=3]="BOTH_WAY"}(s||(s={})),function(e){e[e.SENT=1]="SENT",e[e.RECEIVED=2]="RECEIVED"}(I||(I={})),function(e){e[e.UNHANDLED=0]="UNHANDLED",e[e.ACCEPTED=1]="ACCEPTED",e[e.REFUSED=2]="REFUSED",e[e.EXPIRED=3]="EXPIRED"}(o||(o={})),function(e){e[e.FRIEND_APPLICATION=31]="FRIEND_APPLICATION"}(_||(_={})),function(e){e[e.FRIEND_APPLY=0]="FRIEND_APPLY",e[e.FRIEND_REFUSE=1]="FRIEND_REFUSE",e[e.FRIEND_USER_INFO=2]="FRIEND_USER_INFO",e[e.FRIENDS_INPUT=3]="FRIENDS_INPUT",e[e.FRIEND_CLEAR=4]="FRIEND_CLEAR",e[e.FRIEND_INFO_CHANGE=5]="FRIEND_INFO_CHANGE",e[e.FRIEND_INFO_CHANGE_SYNC=6]="FRIEND_INFO_CHANGE_SYNC"}(a||(a={})),function(e){e[e.OWNER_VERIFY=0]="OWNER_VERIFY",e[e.FREE=1]="FREE",e[e.OWNER_OR_MANAGER_VERIFY=2]="OWNER_OR_MANAGER_VERIFY",e[e.NO_ONE_ALLOWED=3]="NO_ONE_ALLOWED"}(R||(R={})),function(e){e[e.OWNER=0]="OWNER",e[e.OWNER_OR_MANAGER=1]="OWNER_OR_MANAGER",e[e.EVERYONE=2]="EVERYONE"}(f||(f={})),function(e){e[e.OWNER_OR_MANAGER_OR_SELF=0]="OWNER_OR_MANAGER_OR_SELF",e[e.OWNER_OR_SELF=1]="OWNER_OR_SELF",e[e.SELF=2]="SELF"}(h||(h={})),function(e){e[e.FREE=0]="FREE",e[e.INVITEE_VERIFY=1]="INVITEE_VERIFY"}(l||(l={})),function(e){e[e.UNDEF=0]="UNDEF",e[e.NORMAL=1]="NORMAL",e[e.MANAGER=2]="MANAGER",e[e.OWNER=3]="OWNER"}(T||(T={})),function(e){e[e.CREATE=0]="CREATE",e[e.JOIN=1]="JOIN",e[e.KICK=2]="KICK",e[e.QUIT=3]="QUIT",e[e.DISMISS=4]="DISMISS",e[e.ADD_MANAGER=5]="ADD_MANAGER",e[e.REMOVE_MANAGER=6]="REMOVE_MANAGER",e[e.TRANSFER_GROUP_OWNER=7]="TRANSFER_GROUP_OWNER"}(A||(A={})),function(e){e[e.GROUP_INFO_CHANGE=0]="GROUP_INFO_CHANGE",e[e.MEMBER_PROFILE_CHANGE=1]="MEMBER_PROFILE_CHANGE",e[e.GROUP_REMARK_SET=2]="GROUP_REMARK_SET",e[e.GROUP_REMARK_DELETE=3]="GROUP_REMARK_DELETE"}(u||(u={})),function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE"}(N||(N={})),function(e){e[e.MANAGER_UNHANDLED=0]="MANAGER_UNHANDLED",e[e.MANAGER_REFUSED=1]="MANAGER_REFUSED",e[e.INVITEE_UNHANDLED=2]="INVITEE_UNHANDLED",e[e.INVITEE_REFUSED=3]="INVITEE_REFUSED",e[e.JOINED=4]="JOINED",e[e.EXPIRED=5]="EXPIRED"}(O||(O={})),function(e){e[e.REFUSE=0]="REFUSE",e[e.ACCEPT=1]="ACCEPT"}(S||(S={})),function(e){e[e.APPLICANT=0]="APPLICANT",e[e.MANAGER=1]="MANAGER"}(M||(M={})),function(e){e[e.GROUP_OPERATION=11]="GROUP_OPERATION",e[e.GROUP_PROFILE_CHANGE=12]="GROUP_PROFILE_CHANGE",e[e.GROUP_APPLICATION_INVITATION=13]="GROUP_APPLICATION_INVITATION",e[e.GROUP_FOLLOW_USER_CHANGE=14]="GROUP_FOLLOW_USER_CHANGE"}(c||(c={})),function(e){e[e.APPLICATION=0]="APPLICATION",e[e.INVITATION=1]="INVITATION"}(g||(g={})),function(e){e[e.APPLICATION_SENT=0]="APPLICATION_SENT",e[e.INVITATION_SENT=1]="INVITATION_SENT",e[e.INVITATION_RECEIVED=2]="INVITATION_RECEIVED",e[e.APPLICATION_RECEIVED=3]="APPLICATION_RECEIVED"}(d||(d={})),function(e){e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE"}(C||(C={})),function(e){e[e.QUIT=0]="QUIT",e[e.JOIN=1]="JOIN"}(p||(p={})),function(e){e[e.LeaveOnMyOwn=1]="LeaveOnMyOwn",e[e.OtherDeviceLogin=2]="OtherDeviceLogin"}(L||(L={})),function(e){e[e.QUIT=0]="QUIT",e[e.JOIN=1]="JOIN"}(P||(P={})),function(e){e[e.UnmuteUsers=0]="UnmuteUsers",e[e.MuteUsers=1]="MuteUsers",e[e.UnmuteAll=2]="UnmuteAll",e[e.MuteAll=3]="MuteAll",e[e.RemoveWhitelist=4]="RemoveWhitelist",e[e.AddWhitelist=5]="AddWhitelist",e[e.UnmuteGloble=6]="UnmuteGloble",e[e.MuteGloble=7]="MuteGloble"}(D||(D={})),function(e){e[e.Deblock=0]="Deblock",e[e.Blocked=1]="Blocked"}(U||(U={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.ACTIVE_DISCONNECT=2]="ACTIVE_DISCONNECT",e[e.REJECTED_BY_BLACKLIST=405]="REJECTED_BY_BLACKLIST",e[e.NOT_IN_WHITELIST=407]="NOT_IN_WHITELIST",e[e.FORBIDDEN_IN_PRIVATE=20106]="FORBIDDEN_IN_PRIVATE",e[e.SYS_CONVERSATION_NOT_SUPPORT_MESSAGE=20109]="SYS_CONVERSATION_NOT_SUPPORT_MESSAGE",e[e.DANGEROUS_CONTENT=20112]="DANGEROUS_CONTENT",e[e.CONTENT_REVIEW_REJECTED=20113]="CONTENT_REVIEW_REJECTED",e[e.MESSAGE_OVER_MODIFY_TIME_FAIL=20114]="MESSAGE_OVER_MODIFY_TIME_FAIL",e[e.MESSAGE_SIZE_EXCEEDED=20115]="MESSAGE_SIZE_EXCEEDED",e[e.MESSAGE_UNSUPPORTED_MODIFY=20116]="MESSAGE_UNSUPPORTED_MODIFY",e[e.CLOUD_DATA_CENTER_INVALID=20512]="CLOUD_DATA_CENTER_INVALID",e[e.SEND_FREQUENCY_TOO_FAST=20604]="SEND_FREQUENCY_TOO_FAST",e[e.OPERATION_BLOCKED=20605]="OPERATION_BLOCKED",e[e.OPERATION_NOT_SUPPORT=20606]="OPERATION_NOT_SUPPORT",e[e.REQUEST_OVER_FREQUENCY=20607]="REQUEST_OVER_FREQUENCY",e[e.NOT_IN_DISCUSSION=21406]="NOT_IN_DISCUSSION",e[e.SENSITIVE_SHIELD=21501]="SENSITIVE_SHIELD",e[e.SENSITIVE_REPLACE=21502]="SENSITIVE_REPLACE",e[e.MESSAGE_EXPAND_NOT_EXIST=22201]="MESSAGE_EXPAND_NOT_EXIST",e[e.MESSAGE_EXPAND_NOT_SUPPORT=22202]="MESSAGE_EXPAND_NOT_SUPPORT",e[e.MESSAGE_EXPAND_FORMAT_ERROR=22203]="MESSAGE_EXPAND_FORMAT_ERROR",e[e.MESSAGE_EXPAND_NOT_AUTHORIZED=22204]="MESSAGE_EXPAND_NOT_AUTHORIZED",e[e.RC_MESSAGE_EXPANSION_DISABLED=22210]="RC_MESSAGE_EXPANSION_DISABLED",e[e.NOT_IN_GROUP=22406]="NOT_IN_GROUP",e[e.FORBIDDEN_IN_GROUP=22408]="FORBIDDEN_IN_GROUP",e[e.RC_GROUP_COUNT_EXCEED_LIMIT=22412]="RC_GROUP_COUNT_EXCEED_LIMIT",e[e.RC_GROUP_JOIN_COUNT_EXCEED_LIMIT=22413]="RC_GROUP_JOIN_COUNT_EXCEED_LIMIT",e[e.NOT_IN_CHATROOM=23406]="NOT_IN_CHATROOM",e[e.GET_USERINFO_ERROR=23407]="GET_USERINFO_ERROR",e[e.FORBIDDEN_IN_CHATROOM=23408]="FORBIDDEN_IN_CHATROOM",e[e.RC_CHATROOM_USER_KICKED=23409]="RC_CHATROOM_USER_KICKED",e[e.RC_CHATROOM_NOT_EXIST=23410]="RC_CHATROOM_NOT_EXIST",e[e.RC_CHATROOM_IS_FULL=23411]="RC_CHATROOM_IS_FULL",e[e.RC_CHATROOM_PATAMETER_INVALID=23412]="RC_CHATROOM_PATAMETER_INVALID",e[e.CHATROOM_GET_HISTORYMSG_ERROR=23413]="CHATROOM_GET_HISTORYMSG_ERROR",e[e.CHATROOM_NOT_OPEN_HISTORYMSG_STORE=23414]="CHATROOM_NOT_OPEN_HISTORYMSG_STORE",e[e.CHATROOM_KV_EXCEED=23423]="CHATROOM_KV_EXCEED",e[e.CHATROOM_KV_OVERWRITE_INVALID=23424]="CHATROOM_KV_OVERWRITE_INVALID",e[e.CHATROOM_SET_PROPERTY_OVER_FREQUENCY=23425]="CHATROOM_SET_PROPERTY_OVER_FREQUENCY",e[e.CHATROOM_KV_STORE_NOT_OPEN=23426]="CHATROOM_KV_STORE_NOT_OPEN",e[e.CHATROOM_KEY_NOT_EXIST=23427]="CHATROOM_KEY_NOT_EXIST",e[e.CHATROOM_KV_STORE_NOT_ALL_SUCCESS=23428]="CHATROOM_KV_STORE_NOT_ALL_SUCCESS",e[e.CHATROOM_KV_STORE_OUT_LIMIT=23429]="CHATROOM_KV_STORE_OUT_LIMIT",e[e.CHATROOM_KV_SET_ERROR=23431]="CHATROOM_KV_SET_ERROR",e[e.RC_CHATROOM_ACTIVE_COUNT_EXCEED_LIMIT=23450]="RC_CHATROOM_ACTIVE_COUNT_EXCEED_LIMIT",e[e.HAVNODEVICEID=24001]="HAVNODEVICEID",e[e.DEVICEIDISHAVE=24002]="DEVICEIDISHAVE",e[e.FEILD=24009]="FEILD",e[e.INTERNALERRROR=24015]="INTERNALERRROR",e[e.RC_USER_PROFILE_KEY_NOT_ALLOW_SDK_SET=24360]="RC_USER_PROFILE_KEY_NOT_ALLOW_SDK_SET",e[e.RC_USER_PROFILE_KEY_NOT_EXIST=24361]="RC_USER_PROFILE_KEY_NOT_EXIST",e[e.RC_USER_PROFILE_EXT_KEY_NOT_EXIST=24362]="RC_USER_PROFILE_EXT_KEY_NOT_EXIST",e[e.RC_USER_PROFILE_EXT_KV_COUNT_EXCEED_LIMIT=24363]="RC_USER_PROFILE_EXT_KV_COUNT_EXCEED_LIMIT",e[e.RC_USER_PROFILE_VALUE_LENGTH_EXCEED_LIMIT=24364]="RC_USER_PROFILE_VALUE_LENGTH_EXCEED_LIMIT",e[e.RC_USER_PROFILE_QUERY_COUNT_EXCEED_LIMIT=24365]="RC_USER_PROFILE_QUERY_COUNT_EXCEED_LIMIT",e[e.RC_USER_PROFILE_USER_NOT_EXIST=24366]="RC_USER_PROFILE_USER_NOT_EXIST",e[e.RC_USER_PROFILE_VALUE_CAN_ONLY_BE_NUMBERS=24367]="RC_USER_PROFILE_VALUE_CAN_ONLY_BE_NUMBERS",e[e.RC_USER_PROFILE_VALUE_EXCEED_RANGE=24368]="RC_USER_PROFILE_VALUE_EXCEED_RANGE",e[e.RC_USER_PROFILE_SERVICE_UNAVAILABLE=24369]="RC_USER_PROFILE_SERVICE_UNAVAILABLE",e[e.ULTRA_GROUP_SERVICE_UNAVAILABLE=24401]="ULTRA_GROUP_SERVICE_UNAVAILABLE",e[e.ULTRA_GROUP_SERVICE_ERROR=24402]="ULTRA_GROUP_SERVICE_ERROR",e[e.ULTRA_GROUP_PARAMETER_ERROR=24403]="ULTRA_GROUP_PARAMETER_ERROR",e[e.ULTRA_GROUP_UNKNOWN_ERROR=24404]="ULTRA_GROUP_UNKNOWN_ERROR",e[e.NOT_IN_ULTRA_GROUP=24406]="NOT_IN_ULTRA_GROUP",e[e.FORBIDDEN_IN_ULTRA_GROUP=24408]="FORBIDDEN_IN_ULTRA_GROUP",e[e.ULTRA_GROUP_NOT_EXIST=24410]="ULTRA_GROUP_NOT_EXIST",e[e.ULTRA_GROUP_MEMBERS_OVERSIZE=24411]="ULTRA_GROUP_MEMBERS_OVERSIZE",e[e.ULTRA_GROUP_JOINED_OVERSIZE=24412]="ULTRA_GROUP_JOINED_OVERSIZE",e[e.ULTRA_GROUP_CHANNELS_OVERSIZE=24413]="ULTRA_GROUP_CHANNELS_OVERSIZE",e[e.ULTRA_GROUP_CHANNEL_ID_NOT_EXIST=24414]="ULTRA_GROUP_CHANNEL_ID_NOT_EXIST",e[e.ULTRA_GROUP_MESSAGE_SENT_OVER_FREQUENCY=24415]="ULTRA_GROUP_MESSAGE_SENT_OVER_FREQUENCY",e[e.ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL=24416]="ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL",e[e.RECALL_MESSAGE=25101]="RECALL_MESSAGE",e[e.MESSAGE_STORAGE_SERVICE_UNAVAILABLE=25102]="MESSAGE_STORAGE_SERVICE_UNAVAILABLE",e[e.RC_SERVER_UNKOWN_ERROR=25104]="RC_SERVER_UNKOWN_ERROR",e[e.RECALL_MESSAGE_USER_INVALID=25107]="RECALL_MESSAGE_USER_INVALID",e[e.RC_ENTRUST_SERVER_ERROR=25402]="RC_ENTRUST_SERVER_ERROR",e[e.RC_ENTRUST_SERVER_PARAMETER_ERROR=25403]="RC_ENTRUST_SERVER_PARAMETER_ERROR",e[e.RC_GROUP_ILLEGAL_ERROR=25404]="RC_GROUP_ILLEGAL_ERROR",e[e.RC_GROUP_AUTHORITY_ERROR=25405]="RC_GROUP_AUTHORITY_ERROR",e[e.RC_GROUP_PARAMETER_LENGTH_EXCEED_LIMIT=25406]="RC_GROUP_PARAMETER_LENGTH_EXCEED_LIMIT",e[e.RC_GROUP_PARAMETER_FORMAT_ERROR=25407]="RC_GROUP_PARAMETER_FORMAT_ERROR",e[e.RC_GROUP_PARAMETER_VALUE_CAN_ONLY_BE_NUMBERS=25408]="RC_GROUP_PARAMETER_VALUE_CAN_ONLY_BE_NUMBERS",e[e.RC_GROUP_ID_ALREADY_EXIST=25409]="RC_GROUP_ID_ALREADY_EXIST",e[e.RC_GROUP_ID_NOT_EXIST=25410]="RC_GROUP_ID_NOT_EXIST",e[e.RC_GROUP_MEMBERS_COUNT_EXCEED_LIMIT=25411]="RC_GROUP_MEMBERS_COUNT_EXCEED_LIMIT",e[e.RC_GROUP_MEMBERS_ALREADY_IN_GROUP=25412]="RC_GROUP_MEMBERS_ALREADY_IN_GROUP",e[e.RC_GROUP_NOT_ALLOW_SDK_OPERATION=25413]="RC_GROUP_NOT_ALLOW_SDK_OPERATION",e[e.RC_GROUP_NOT_ALLOW_JOIN=25414]="RC_GROUP_NOT_ALLOW_JOIN",e[e.RC_GROUP_EXT_KEY_NOT_EXIST=25415]="RC_GROUP_EXT_KEY_NOT_EXIST",e[e.RC_GROUP_REQUEST_OVERFREQUENCY=25416]="RC_GROUP_REQUEST_OVERFREQUENCY",e[e.RC_GROUP_OWNER_NOT_ALLOW_QUIT_OR_KICK=25417]="RC_GROUP_OWNER_NOT_ALLOW_QUIT_OR_KICK",e[e.RC_GROUP_USER_NOT_IN_GROUP=25418]="RC_GROUP_USER_NOT_IN_GROUP",e[e.RC_GROUP_MANAGER_OR_FOLLOW_COUNT_EXCEED_LIMIT=25419]="RC_GROUP_MANAGER_OR_FOLLOW_COUNT_EXCEED_LIMIT",e[e.RC_GROUP_USER_IS_NOT_MANAGER_IN_GROUP=25420]="RC_GROUP_USER_IS_NOT_MANAGER_IN_GROUP",e[e.RC_GROUP_APPLICATION_NOT_EXIST=25421]="RC_GROUP_APPLICATION_NOT_EXIST",e[e.RC_GROUP_QUERY_GROUP_COUNT_EXCEED_LIMIT=25422]="RC_GROUP_QUERY_GROUP_COUNT_EXCEED_LIMIT",e[e.RC_GROUP_NAME_INVALID=25423]="RC_GROUP_NAME_INVALID",e[e.RC_GROUP_JOIN_GROUP_NEED_MANAGER_ACCEPT=25424]="RC_GROUP_JOIN_GROUP_NEED_MANAGER_ACCEPT",e[e.RC_GROUP_OWNER_NOT_ALLOW_BE_MANAGER=25425]="RC_GROUP_OWNER_NOT_ALLOW_BE_MANAGER",e[e.RC_GROUP_NO_INVITE_PERMISSION=25426]="RC_GROUP_NO_INVITE_PERMISSION",e[e.RC_GROUP_NEED_INVITEE_ACCEPT=25427]="RC_GROUP_NEED_INVITEE_ACCEPT",e[e.RC_GROUP_APPLICATION_ALREADY_HANDLE=25428]="RC_GROUP_APPLICATION_ALREADY_HANDLE",e[e.RC_GROUP_OLD_GROUP_NOT_ENTRUST=25429]="RC_GROUP_OLD_GROUP_NOT_ENTRUST",e[e.RC_GROUP_ID_INVALID=25430]="RC_GROUP_ID_INVALID",e[e.RC_PAGE_TOKEN_PARSING_FAILED=25432]="RC_PAGE_TOKEN_PARSING_FAILED",e[e.RC_FRIEND_ALREADY_FRIEND=25460]="RC_FRIEND_ALREADY_FRIEND",e[e.RC_FRIEND_NEED_ACCEPT=25461]="RC_FRIEND_NEED_ACCEPT",e[e.RC_FRIEND_IN_OTHER_BLACK_LIST=25462]="RC_FRIEND_IN_OTHER_BLACK_LIST",e[e.RC_FRIEND_NOT_IN_OTHER_WHITE_LIST=25463]="RC_FRIEND_NOT_IN_OTHER_WHITE_LIST",e[e.RC_FRIEND_IN_MY_BLACK_LIST=25464]="RC_FRIEND_IN_MY_BLACK_LIST",e[e.RC_FRIEND_NOT_IN_MY_WHITE_LIST=25465]="RC_FRIEND_NOT_IN_MY_WHITE_LIST",e[e.RC_FRIEND_APPLICATION_NOT_EXIST=25466]="RC_FRIEND_APPLICATION_NOT_EXIST",e[e.RC_FRIEND_MY_FRIEND_COUNT_EXCEED_LIMIT=25467]="RC_FRIEND_MY_FRIEND_COUNT_EXCEED_LIMIT",e[e.RC_FRIEND_OTHER_FRIEND_COUNT_EXCEED_LIMIT=25468]="RC_FRIEND_OTHER_FRIEND_COUNT_EXCEED_LIMIT",e[e.RC_FRIEND_NOT_FRIEND=25469]="RC_FRIEND_NOT_FRIEND",e[e.RC_FRIEND_FIELDS_LENGTH_EXCEED_LIMIT=25470]="RC_FRIEND_FIELDS_LENGTH_EXCEED_LIMIT",e[e.RC_FRIEND_OTHER_NOT_ALLOW_ADD_FRIEND=25471]="RC_FRIEND_OTHER_NOT_ALLOW_ADD_FRIEND",e[e.RC_FRIEND_NOT_EXIST=25472]="RC_FRIEND_NOT_EXIST",e[e.RC_FRIEND_NOT_ALLOW_ADD_SELF=25473]="RC_FRIEND_NOT_ALLOW_ADD_SELF",e[e.RC_FRIEND_NOT_SUPPORT_ROBOT=25474]="RC_FRIEND_NOT_SUPPORT_ROBOT",e[e.SERVICE_INFORMATION_AUDIT_FAILED=25480]="SERVICE_INFORMATION_AUDIT_FAILED",e[e.PUSH_PARAMETER_INVALID=26001]="PUSH_PARAMETER_INVALID",e[e.USER_SETTING_SYNCED_ERROR=26002]="USER_SETTING_SYNCED_ERROR",e[e.CONVERSATION_TAG_OVERSIZE=26004]="CONVERSATION_TAG_OVERSIZE",e[e.RC_READ_RECEIPT_V4_INVALID=26005]="RC_READ_RECEIPT_V4_INVALID",e[e.RC_SERVER_DRIVE_UNREAD_COUNT_INVALID=26006]="RC_SERVER_DRIVE_UNREAD_COUNT_INVALID",e[e.RC_SERVER_PARAMETER_MESSAGEUIDS_CONFUSED=26007]="RC_SERVER_PARAMETER_MESSAGEUIDS_CONFUSED",e[e.RC_SERVER_PARAMETER_MESSAGEUID_INVALID=26009]="RC_SERVER_PARAMETER_MESSAGEUID_INVALID",e[e.RC_SERVER_PARAMETER_INVALID=26010]="RC_SERVER_PARAMETER_INVALID",e[e.RC_SUBSCRIBE_ONLINE_SERVICE_UNAVAILABLE=26020]="RC_SUBSCRIBE_ONLINE_SERVICE_UNAVAILABLE",e[e.RC_BESUBSCRIBED_USERIDS_COUNT_EXCEED_LIMIT=26021]="RC_BESUBSCRIBED_USERIDS_COUNT_EXCEED_LIMIT",e[e.RC_SUBSCRIBED_USERIDS_EXCEED_LIMIT=26022]="RC_SUBSCRIBED_USERIDS_EXCEED_LIMIT",e[e.RC_FILE_SIZE_EXCEED_LIMIT=26106]="RC_FILE_SIZE_EXCEED_LIMIT",e[e.INVALID_PARAMETER_SIZE_NOT_FOUND=26107]="INVALID_PARAMETER_SIZE_NOT_FOUND",e[e.SERVICE_RRSV5_UNAVAILABLE=26314]="SERVICE_RRSV5_UNAVAILABLE",e[e.SERVICE_RRSV5_READ_RECEIPT_NOT_SUPPORT=26315]="SERVICE_RRSV5_READ_RECEIPT_NOT_SUPPORT",e[e.SERVICE_RRSV5_PARAM_LENGTH_EXCEED=26316]="SERVICE_RRSV5_PARAM_LENGTH_EXCEED",e[e.SERVICE_RRSV5_CONVERSATION_NOT_SUPPORT=26317]="SERVICE_RRSV5_CONVERSATION_NOT_SUPPORT",e[e.SERVICE_RRSV5_QUERY_NOT_SUPPORT=26318]="SERVICE_RRSV5_QUERY_NOT_SUPPORT",e[e.SERVICE_RRSV5_MESSAGE_SENDER_MISMATCH=26320]="SERVICE_RRSV5_MESSAGE_SENDER_MISMATCH",e[e.SERVICE_RRSV5_MESSAGE_RECEIPT_NEEDLESS=26321]="SERVICE_RRSV5_MESSAGE_RECEIPT_NEEDLESS",e[e.SERVICE_RRSV5_MESSAGE_NOT_EXIST=26322]="SERVICE_RRSV5_MESSAGE_NOT_EXIST",e[e.MSG_REACTION_LIMIT_REACHED=26323]="MSG_REACTION_LIMIT_REACHED",e[e.MSG_REACTION_USER_LIMIT_REACHED=26324]="MSG_REACTION_USER_LIMIT_REACHED",e[e.SERVICE_STT_UNAVAILABLE=28300]="SERVICE_STT_UNAVAILABLE",e[e.SERVICE_STT_CONVERTED_FAILED=28304]="SERVICE_STT_CONVERTED_FAILED",e[e.SERVICE_STT_INTERNAL_ERROR=28305]="SERVICE_STT_INTERNAL_ERROR",e[e.SERVICE_STT_PARAM_MISS=28306]="SERVICE_STT_PARAM_MISS",e[e.SERVICE_STT_USAGE_EXCEED=28307]="SERVICE_STT_USAGE_EXCEED",e[e.TRANS_SERVICE_NOT_OPEN=28400]="TRANS_SERVICE_NOT_OPEN",e[e.TRANS_FAILED=28401]="TRANS_FAILED",e[e.TRANS_INTERNAL_ERROR=28402]="TRANS_INTERNAL_ERROR",e[e.TRANS_PARAM_MISSING=28403]="TRANS_PARAM_MISSING",e[e.TRANS_PARAM_ERROR=28404]="TRANS_PARAM_ERROR",e[e.TRANS_QUOTA_LIMIT=28405]="TRANS_QUOTA_LIMIT",e[e.TRANS_TEXT_LENGTH_EXCEEDS_LIMIT=28406]="TRANS_TEXT_LENGTH_EXCEEDS_LIMIT",e[e.TRANS_LANGUAGE_NOT_SUPPORT=28407]="TRANS_LANGUAGE_NOT_SUPPORT",e[e.RC_NET_CHANNEL_INVALID=30001]="RC_NET_CHANNEL_INVALID",e[e.RC_NET_UNAVAILABLE=30002]="RC_NET_UNAVAILABLE",e[e.RC_MSG_RESP_TIMEOUT=30003]="RC_MSG_RESP_TIMEOUT",e[e.RC_HTTP_SEND_FAIL=30004]="RC_HTTP_SEND_FAIL",e[e.RC_HTTP_REQ_FAIL=30005]="RC_HTTP_REQ_FAIL",e[e.RC_HTTP_RECV_FAIL=30006]="RC_HTTP_RECV_FAIL",e[e.RC_NAVI_REQ_FAILED=30007]="RC_NAVI_REQ_FAILED",e[e.RC_NODE_NOT_FOUND=30008]="RC_NODE_NOT_FOUND",e[e.RC_DOMAIN_NOT_RESOLVE=30009]="RC_DOMAIN_NOT_RESOLVE",e[e.RC_SOCKET_NOT_CREATED=30010]="RC_SOCKET_NOT_CREATED",e[e.RC_SOCKET_DISCONNECTED=30011]="RC_SOCKET_DISCONNECTED",e[e.RC_PING_EXCEED_LIMIT=30012]="RC_PING_EXCEED_LIMIT",e[e.PONG_RECEIVED_ERROR=30013]="PONG_RECEIVED_ERROR",e[e.RC_MSG_SEND_FAIL=30014]="RC_MSG_SEND_FAIL",e[e.CONNECT_OVER_FREQUENCY=30015]="CONNECT_OVER_FREQUENCY",e[e.RC_MSG_CONTENT_EXCEED_LIMIT=30016]="RC_MSG_CONTENT_EXCEED_LIMIT",e[e.MESSAGE_NOT_SUPPORT_SENDING=30017]="MESSAGE_NOT_SUPPORT_SENDING",e[e.RC_NETWORK_DOWN=30019]="RC_NETWORK_DOWN",e[e.RC_TCP_DISCONNECTED_NO_RMTP=30021]="RC_TCP_DISCONNECTED_NO_RMTP",e[e.RC_CONN_ACK_TIMEOUT=31e3]="RC_CONN_ACK_TIMEOUT",e[e.RC_CONN_PROTO_VERSION_ERROR=31001]="RC_CONN_PROTO_VERSION_ERROR",e[e.RC_CONN_IDENTIFIER_REJECTED=31002]="RC_CONN_IDENTIFIER_REJECTED",e[e.RC_CONN_SERVER_UNAVAILABLE=31003]="RC_CONN_SERVER_UNAVAILABLE",e[e.RC_CONN_TOKEN_INCORRECT=31004]="RC_CONN_TOKEN_INCORRECT",e[e.RC_CONN_NOT_AUTHRORIZED=31005]="RC_CONN_NOT_AUTHRORIZED",e[e.RC_CONN_REDIRECTED=31006]="RC_CONN_REDIRECTED",e[e.RC_CONN_PACKAGE_NAME_INVALID=31007]="RC_CONN_PACKAGE_NAME_INVALID",e[e.RC_CONN_APP_BLOCKED_OR_DELETED=31008]="RC_CONN_APP_BLOCKED_OR_DELETED",e[e.RC_CONN_USER_BLOCKED=31009]="RC_CONN_USER_BLOCKED",e[e.RC_DISCONN_KICK=31010]="RC_DISCONN_KICK",e[e.RC_DISCONN_EXCEPTION=31011]="RC_DISCONN_EXCEPTION",e[e.CONNECTION_ENCRYPT_AUTHORIZED_ERROR=31012]="CONNECTION_ENCRYPT_AUTHORIZED_ERROR",e[e.RC_CONN_TOKEN_EXPIRED=31020]="RC_CONN_TOKEN_EXPIRED",e[e.RC_CONN_DEVICE_ERROR=31021]="RC_CONN_DEVICE_ERROR",e[e.RC_CONN_HOSTNAME_ERROR=31022]="RC_CONN_HOSTNAME_ERROR",e[e.RC_DISCONN_SAME_CLIENT_ON_LINE=31023]="RC_DISCONN_SAME_CLIENT_ON_LINE",e[e.RC_LISCENSE_COUNT_OUT_OF_LIMIT=31024]="RC_LISCENSE_COUNT_OUT_OF_LIMIT",e[e.RC_CONN_WRONG_CLUSTER=31025]="RC_CONN_WRONG_CLUSTER",e[e.RC_APP_AUTH_NOT_PASS=31026]="RC_APP_AUTH_NOT_PASS",e[e.RC_OTP_USED=31027]="RC_OTP_USED",e[e.RC_PLATFORM_ERROR=31028]="RC_PLATFORM_ERROR",e[e.RC_ACCOUNT_CANCELLATION=31029]="RC_ACCOUNT_CANCELLATION",e[e.RC_LICENSE_EXPIRED=31030]="RC_LICENSE_EXPIRED",e[e.RC_QUERY_ACK_NO_DATA=32001]="RC_QUERY_ACK_NO_DATA",e[e.RC_MSG_DATA_INCOMPLETE=32002]="RC_MSG_DATA_INCOMPLETE",e[e.RC_UDP_DISCONNECTED=32011]="RC_UDP_DISCONNECTED",e[e.RC_TCP_RESET=32054]="RC_TCP_RESET",e[e.CONNECTION_REFUSED=32061]="CONNECTION_REFUSED",e[e.PROTOCOL_DECODE_ERROR=32546]="PROTOCOL_DECODE_ERROR",e[e.PROTOCOL_MESSAGE_SAVED_ERROR=33e3]="PROTOCOL_MESSAGE_SAVED_ERROR",e[e.BIZ_ERROR_CLIENT_NOT_INIT=33001]="BIZ_ERROR_CLIENT_NOT_INIT",e[e.BIZ_ERROR_DATABASE_ERROR=33002]="BIZ_ERROR_DATABASE_ERROR",e[e.BIZ_ERROR_INVALID_PARAMETER=33003]="BIZ_ERROR_INVALID_PARAMETER",e[e.BIZ_ERROR_NO_CHANNEL=33004]="BIZ_ERROR_NO_CHANNEL",e[e.BIZ_ERROR_RECONNECT_SUCCESS=33005]="BIZ_ERROR_RECONNECT_SUCCESS",e[e.BIZ_ERROR_CONNECTING=33006]="BIZ_ERROR_CONNECTING",e[e.MSG_ROAMING_SERVICE_UNAVAILABLE=33007]="MSG_ROAMING_SERVICE_UNAVAILABLE",e[e.MSG_INSERT_ERROR=33008]="MSG_INSERT_ERROR",e[e.MSG_DEL_ERROR=33009]="MSG_DEL_ERROR",e[e.TAG_NOT_EXIST=33100]="TAG_NOT_EXIST",e[e.TAG_EXISTS=33101]="TAG_EXISTS",e[e.NO_TAG_IN_CONVER=33102]="NO_TAG_IN_CONVER",e[e.METHOD_BUSY=33103]="METHOD_BUSY",e[e.NOT_ALLOW_PULL_CONVERSATION=33301]="NOT_ALLOW_PULL_CONVERSATION",e[e.SDK_PULL_CONVERSATION=33302]="SDK_PULL_CONVERSATION",e[e.MODIFIED_MESSAGE_IS_NOT_SENT=33401]="MODIFIED_MESSAGE_IS_NOT_SENT",e[e.MODIFIED_MESSAGE_TIMEOUT=33402]="MODIFIED_MESSAGE_TIMEOUT",e[e.QUOTE_MSG_NOT_FOUND=33403]="QUOTE_MSG_NOT_FOUND",e[e.INVALID_PARAMETER_QUOTE_INFO=33404]="INVALID_PARAMETER_QUOTE_INFO",e[e.REACTION_ID_INVALID=33405]="REACTION_ID_INVALID",e[e.INVALID_PARAMETER_UNREAD_COUNT_FILTER=33406]="INVALID_PARAMETER_UNREAD_COUNT_FILTER",e[e.RC_CONNECTION_EXIST=34001]="RC_CONNECTION_EXIST",e[e.PACKAGE_ENVIRONMENT_ERROR=34005]="PACKAGE_ENVIRONMENT_ERROR",e[e.CONNECTION_TIMEOUT=34006]="CONNECTION_TIMEOUT",e[e.MESSAGE_KV_NOT_SUPPORT=34008]="MESSAGE_KV_NOT_SUPPORT",e[e.MESSAGE_EXPANDED_ERROR=34009]="MESSAGE_EXPANDED_ERROR",e[e.EXPANSION_LIMIT_EXCEET=34010]="EXPANSION_LIMIT_EXCEET",e[e.UPLOAD_FAIL=34011]="UPLOAD_FAIL",e[e.CONVER_OUT_LIMIT_ERROR=34013]="CONVER_OUT_LIMIT_ERROR",e[e.READ_RECEIPT_ERROR=34014]="READ_RECEIPT_ERROR",e[e.PUSH_CONTENT_CONFIG_SERVICE_UNAVAILABLE=34016]="PUSH_CONTENT_CONFIG_SERVICE_UNAVAILABLE",e[e.MESSAGE_INTERCEPTION_PRODUCED_NULL_MESSAGE=34017]="MESSAGE_INTERCEPTION_PRODUCED_NULL_MESSAGE",e[e.MEDIA_EXCEPTION=34018]="MEDIA_EXCEPTION",e[e.MESSAGE_NOT_REGISTERED=34021]="MESSAGE_NOT_REGISTERED",e[e.METHOD_NOT_SUPPORT=34022]="METHOD_NOT_SUPPORT",e[e.ULTRA_GROUP_CHANNEL_NOT_EXIST=34024]="ULTRA_GROUP_CHANNEL_NOT_EXIST",e[e.INCONSISTENT_CONVERSATION_TYPE=34025]="INCONSISTENT_CONVERSATION_TYPE",e[e.INVALID_PARAMETER_LAUGUAGE=34200]="INVALID_PARAMETER_LAUGUAGE",e[e.CONVERSATION_TYPE_NOT_SUPPORT=34201]="CONVERSATION_TYPE_NOT_SUPPORT",e[e.INVALID_PARAMETER_TIMESTAMP=34202]="INVALID_PARAMETER_TIMESTAMP",e[e.INVALID_PARAMETER_MESSAGE_UID=34203]="INVALID_PARAMETER_MESSAGE_UID",e[e.INVALID_PARAMETER_MESSAGE_ID=34204]="INVALID_PARAMETER_MESSAGE_ID",e[e.INVALID_PARAMETER_MESSAGE_CONTENT=34205]="INVALID_PARAMETER_MESSAGE_CONTENT",e[e.MSG_LIMIT_ERROR=34206]="MSG_LIMIT_ERROR",e[e.INVALID_PARAMETER_MEDIA_TYPE=34207]="INVALID_PARAMETER_MEDIA_TYPE",e[e.INVALID_PARAMETER_REQUEST_URL=34208]="INVALID_PARAMETER_REQUEST_URL",e[e.INVALID_PARAMETER_CONVERSATION_TYPE=34209]="INVALID_PARAMETER_CONVERSATION_TYPE",e[e.INVALID_PARAMETER_TARGET_ID=34210]="INVALID_PARAMETER_TARGET_ID",e[e.INVALID_PARAMETER_CHANNEL_ID=34211]="INVALID_PARAMETER_CHANNEL_ID",e[e.INVALID_PARAMETER_TAG_ID=34212]="INVALID_PARAMETER_TAG_ID",e[e.INVALID_PARAMETER_TAG_NAME=34213]="INVALID_PARAMETER_TAG_NAME",e[e.INVALID_PARAMETER_USER_ID=34214]="INVALID_PARAMETER_USER_ID",e[e.INVALID_PARAMETER_USERIDLIST=34215]="INVALID_PARAMETER_USERIDLIST",e[e.INVALID_PARAMETER_DOWNLOADMEDIAFILENAME=34217]="INVALID_PARAMETER_DOWNLOADMEDIAFILENAME",e[e.INVALID_PARAMETER_MESSAGE_EXPANSION=34220]="INVALID_PARAMETER_MESSAGE_EXPANSION",e[e.INVALID_PARAMETER_NOTMEDIAMESSAGE=34223]="INVALID_PARAMETER_NOTMEDIAMESSAGE",e[e.INVALID_PARAMETER_TIMESTRING=34224]="INVALID_PARAMETER_TIMESTRING",e[e.INVALID_PARAMETER_CONVERSATION=34225]="INVALID_PARAMETER_CONVERSATION",e[e.INVALID_PARAMETER_NOTIFICATION_LEVEL=34228]="INVALID_PARAMETER_NOTIFICATION_LEVEL",e[e.INVALID_PARAMETER_MESSAGE_ARRAY=34229]="INVALID_PARAMETER_MESSAGE_ARRAY",e[e.INVALID_PARAMETER_RECEIVED_STATUS=34230]="INVALID_PARAMETER_RECEIVED_STATUS",e[e.INVALID_PARAMETER_CHANNEL_TYPE=34231]="INVALID_PARAMETER_CHANNEL_TYPE",e[e.INVALID_PARAMETER_COUNT=34232]="INVALID_PARAMETER_COUNT",e[e.INVALID_PARAMETER_MEDIA_URL=34235]="INVALID_PARAMETER_MEDIA_URL",e[e.INVALID_PARAMETER_UNIQUE_ID=34236]="INVALID_PARAMETER_UNIQUE_ID",e[e.INVALID_PARAMETER_PROXY=34238]="INVALID_PARAMETER_PROXY",e[e.INVALID_PARAMETER_TESTHOST=34239]="INVALID_PARAMETER_TESTHOST",e[e.INVALID_CONNECT_TESTHOST_FAILED=34240]="INVALID_CONNECT_TESTHOST_FAILED",e[e.INVALID_PARAMETER_CONVERSATIONS=34242]="INVALID_PARAMETER_CONVERSATIONS",e[e.INVALID_PARAMETER_SENT_STATUS=34244]="INVALID_PARAMETER_SENT_STATUS",e[e.RC_CONN_PROXY_UNAVAILABLE=34245]="RC_CONN_PROXY_UNAVAILABLE",e[e.INVALID_PARAMETER_RTCROOMID=34259]="INVALID_PARAMETER_RTCROOMID",e[e.INVALID_PARAMETER_KEY=34260]="INVALID_PARAMETER_KEY",e[e.INVALID_PARAMETER_KEYS=34261]="INVALID_PARAMETER_KEYS",e[e.INVALID_PARAMETER_VALUE=34262]="INVALID_PARAMETER_VALUE",e[e.INVALID_PARAMETER_ENTRIES=34263]="INVALID_PARAMETER_ENTRIES",e[e.INVALID_PARAMETER_NOTIFICATION_EXTRA=34264]="INVALID_PARAMETER_NOTIFICATION_EXTRA",e[e.INVALID_PARAMETER_MESSAGE_OBJECT_NAME=34271]="INVALID_PARAMETER_MESSAGE_OBJECT_NAME",e[e.INVALID_PARAMETER_BEFORE=34272]="INVALID_PARAMETER_BEFORE",e[e.INVALID_PARAMETER_AFTER=34273]="INVALID_PARAMETER_AFTER",e[e.INVALID_PARAMETER_KEYWORD=34274]="INVALID_PARAMETER_KEYWORD",e[e.INVALID_PARAMETER_MESSAGE_OBJECT_NAME_LIST=34275]="INVALID_PARAMETER_MESSAGE_OBJECT_NAME_LIST",e[e.INVALID_PARAMETER_OFFSET=34276]="INVALID_PARAMETER_OFFSET",e[e.INVALID_PARAMETER_START_TIME=34277]="INVALID_PARAMETER_START_TIME",e[e.INVALID_PARAMETER_END_TIME=34278]="INVALID_PARAMETER_END_TIME",e[e.INVALID_PARAMETER_LIMIT=34279]="INVALID_PARAMETER_LIMIT",e[e.INVALID_MESSAGE_DIRECTION=34280]="INVALID_MESSAGE_DIRECTION",e[e.INVALID_MESSAGE_SENT_STATUS=34281]="INVALID_MESSAGE_SENT_STATUS",e[e.INVALID_PARAMETER_TARGETID_LIST=34282]="INVALID_PARAMETER_TARGETID_LIST",e[e.INVALID_PARAMETER_SPAN_MINUTES=34283]="INVALID_PARAMETER_SPAN_MINUTES",e[e.INVALID_PARAMETER_CONVERSATION_TYPE_LIST=34284]="INVALID_PARAMETER_CONVERSATION_TYPE_LIST",e[e.INVALID_PARAMETER_CONVERSATION_LIST=34287]="INVALID_PARAMETER_CONVERSATION_LIST",e[e.INVALID_PARAMETER_CLEAR_MESSAGE_OPTION_LIST=34288]="INVALID_PARAMETER_CLEAR_MESSAGE_OPTION_LIST",e[e.INVALID_PARAMETER_START_MESSAGE_UID=34289]="INVALID_PARAMETER_START_MESSAGE_UID",e[e.INVALID_PARAMETER_END_MESSAGE_UID=34290]="INVALID_PARAMETER_END_MESSAGE_UID",e[e.READ_RECEIPT_V4_NOT_SUPPORT=34291]="READ_RECEIPT_V4_NOT_SUPPORT",e[e.READ_RECEIPT_V4_UPDATE_NOT_SUPPORT=34292]="READ_RECEIPT_V4_UPDATE_NOT_SUPPORT",e[e.RC_DIRECTIONAL_MESSAGE_INVALID_CONVERSATION_TYPE=34296]="RC_DIRECTIONAL_MESSAGE_INVALID_CONVERSATION_TYPE",e[e.RC_DB_NOT_INIT=34301]="RC_DB_NOT_INIT",e[e.RC_DB_CORRUPT=34302]="RC_DB_CORRUPT",e[e.RC_DB_SQL_ERROR=34303]="RC_DB_SQL_ERROR",e[e.RC_DB_DATA_NOT_FOUND=34304]="RC_DB_DATA_NOT_FOUND",e[e.RC_NET_DATA_ERROR=34305]="RC_NET_DATA_ERROR",e[e.INVALID_PARAMETER_SUBSCRIBE_TYPE=34306]="INVALID_PARAMETER_SUBSCRIBE_TYPE",e[e.INVALID_PARAMETER_SUBSCRIBE_EXPIRY=34307]="INVALID_PARAMETER_SUBSCRIBE_EXPIRY",e[e.INVALID_PARAMETER_SUBSCRIBE_PUBLISHER_USERIDS=34308]="INVALID_PARAMETER_SUBSCRIBE_PUBLISHER_USERIDS",e[e.INVALID_PARAMETER_SUBSCRIBE_PAGESIZE=34309]="INVALID_PARAMETER_SUBSCRIBE_PAGESIZE",e[e.SUB_PROCESS_EXIT=34310]="SUB_PROCESS_EXIT",e[e.ADDON_NOT_EXIST=34311]="ADDON_NOT_EXIST",e[e.INVALID_PARAMETER_USER_PROFILE=34312]="INVALID_PARAMETER_USER_PROFILE",e[e.INVALID_PARAMETER_USER_PROFILE_VISIBILITY=34313]="INVALID_PARAMETER_USER_PROFILE_VISIBILITY",e[e.INVALID_PARAMETER_EXTRA=34314]="INVALID_PARAMETER_EXTRA",e[e.DB_UPGRADE_FAILED=34315]="DB_UPGRADE_FAILED",e[e.INVALID_PARAMETER_GROUP_INFO=34318]="INVALID_PARAMETER_GROUP_INFO",e[e.INVALID_PARAMETER_GROUP_ID=34319]="INVALID_PARAMETER_GROUP_ID",e[e.INVALID_PARAMETER_GROUP_NAME=34320]="INVALID_PARAMETER_GROUP_NAME",e[e.INVALID_PARAMETER_GROUP_IDS=34321]="INVALID_PARAMETER_GROUP_IDS",e[e.INVALID_PARAMETER_GROUP_MEMBER_ROLE=34322]="INVALID_PARAMETER_GROUP_MEMBER_ROLE",e[e.INVALID_PARAMETER_GROUP_APPLICATION_STATUS=34323]="INVALID_PARAMETER_GROUP_APPLICATION_STATUS",e[e.INVALID_PARAMETER_GROUP_APPLICATION_DIRECTION=34324]="INVALID_PARAMETER_GROUP_APPLICATION_DIRECTION",e[e.INVALID_PARAMETER_NICK_NAME=34325]="INVALID_PARAMETER_NICK_NAME",e[e.INVALID_PARAMETER_REASON=34326]="INVALID_PARAMETER_REASON",e[e.INVALID_PARAMETER_REMARK=34327]="INVALID_PARAMETER_REMARK",e[e.INVALID_PARAMETER_PAGING_QUERY_OPTION=34328]="INVALID_PARAMETER_PAGING_QUERY_OPTION",e[e.NET_DATA_IS_SYNCHRONIZING=34329]="NET_DATA_IS_SYNCHRONIZING",e[e.INVALID_PARAMETER_QUERY_FRIENDS_DIRECTION_TYPE=34330]="INVALID_PARAMETER_QUERY_FRIENDS_DIRECTION_TYPE",e[e.INVALID_PARAMETER_DIRECTION_TYPE=34331]="INVALID_PARAMETER_DIRECTION_TYPE",e[e.INVALID_PARAMETER_FRIEND_APPLICATION_TYPE=34332]="INVALID_PARAMETER_FRIEND_APPLICATION_TYPE",e[e.INVALID_PARAMETER_FRIEND_APPLICATION_STATUS=34333]="INVALID_PARAMETER_FRIEND_APPLICATION_STATUS",e[e.INVALID_PARAMETER_FRIEND_ADD_PERMISSION=34334]="INVALID_PARAMETER_FRIEND_ADD_PERMISSION",e[e.INVALID_PARAMETER_FRIEND_INFO_EXT_FIELDS=34335]="INVALID_PARAMETER_FRIEND_INFO_EXT_FIELDS",e[e.RC_REAL_TIME_CONVERSATION_UNAVAILABLE=34336]="RC_REAL_TIME_CONVERSATION_UNAVAILABLE",e[e.SERVER_DATA_ERROR=34344]="SERVER_DATA_ERROR",e[e.INVALID_PARAMETER_MESSAGE_INFO_MAP=34345]="INVALID_PARAMETER_MESSAGE_INFO_MAP",e[e.INVALID_PARAMETER_PAGE_TOKEN=34346]="INVALID_PARAMETER_PAGE_TOKEN",e[e.SERVER_RECORD_UNREAD_COUNT_ENABLED_FORBIDDEN=34435]="SERVER_RECORD_UNREAD_COUNT_ENABLED_FORBIDDEN",e[e.SERVER_RECORD_UNREAD_COUNT_DISABLED=34436]="SERVER_RECORD_UNREAD_COUNT_DISABLED",e[e.DATABASEDISKFULL=34439]="DATABASEDISKFULL",e[e.GROUP_SYNC_ERROR=35001]="GROUP_SYNC_ERROR",e[e.GROUP_MATCH_ERROR=35002]="GROUP_MATCH_ERROR",e[e.NOT_SUPPORT=35004]="NOT_SUPPORT",e[e.MAIN_PROCESS_ERROR=35005]="MAIN_PROCESS_ERROR",e[e.CAN_NOT_RECONNECT=35007]="CAN_NOT_RECONNECT",e[e.SERVER_UNAVAILABLE=35008]="SERVER_UNAVAILABLE",e[e.HOSTNAME_ERROR=35009]="HOSTNAME_ERROR",e[e.HAS_OHTER_SAME_CLIENT_ON_LINE=35010]="HAS_OHTER_SAME_CLIENT_ON_LINE",e[e.METHOD_NOT_AVAILABLE=35011]="METHOD_NOT_AVAILABLE",e[e.METHOD_ONLY_SUPPORT_ULTRA_GROUP=35014]="METHOD_ONLY_SUPPORT_ULTRA_GROUP",e[e.DRAFT_SAVE_ERROR=35015]="DRAFT_SAVE_ERROR",e[e.DRAFT_REMOVE_ERROR=35016]="DRAFT_REMOVE_ERROR",e[e.CONVER_REMOVE_ERROR=35020]="CONVER_REMOVE_ERROR",e[e.CONVER_GET_ERROR=35021]="CONVER_GET_ERROR",e[e.SEARCH_PROPS_LIMIT_ERROR=35022]="SEARCH_PROPS_LIMIT_ERROR",e[e.INVALID_PARAMETER_MESSAGE_TYPE=35024]="INVALID_PARAMETER_MESSAGE_TYPE",e[e.INVALID_PARAMETER_ORDER=35025]="INVALID_PARAMETER_ORDER",e[e.INVALID_PARAMETER_DRAFT=35028]="INVALID_PARAMETER_DRAFT",e[e.INVALID_PARAMETER_MESSAGE=35029]="INVALID_PARAMETER_MESSAGE",e[e.INVALID_PARAMETER_PUSH_CONTENT=35030]="INVALID_PARAMETER_PUSH_CONTENT",e[e.INVALID_PARAMETER_SENDOPTIONS=35031]="INVALID_PARAMETER_SENDOPTIONS",e[e.INVALID_PARAMETER_CONTENT_DISPOSITION=35032]="INVALID_PARAMETER_CONTENT_DISPOSITION",e[e.INVALID_PARAMETER_SAVE_NAME=35033]="INVALID_PARAMETER_SAVE_NAME",e[e.INVALID_PARAMETER_SERVER_TYPE=35034]="INVALID_PARAMETER_SERVER_TYPE",e[e.INVALID_PARAMETER_CLEAN_SPACE=35035]="INVALID_PARAMETER_CLEAN_SPACE",e[e.INVALID_PARAMETER_CAN_INCLUDE_EXPANSION=35036]="INVALID_PARAMETER_CAN_INCLUDE_EXPANSION",e[e.INVALID_PARAMETER_DISABLE_NOTIFICATION=35037]="INVALID_PARAMETER_DISABLE_NOTIFICATION",e[e.INVALID_PARAMETER_CHECK_DUPLICATE=35038]="INVALID_PARAMETER_CHECK_DUPLICATE",e[e.INVALID_PARAMETER_IS_AUTO_DELETE=35039]="INVALID_PARAMETER_IS_AUTO_DELETE",e[e.INVALID_PARAMETER_IS_SEND_NOTIFICATION=35040]="INVALID_PARAMETER_IS_SEND_NOTIFICATION",e[e.INVALID_PARAMETER_IS_FORCE=35041]="INVALID_PARAMETER_IS_FORCE",e[e.INVALID_PARAMETER_IS_TOP=35042]="INVALID_PARAMETER_IS_TOP",e[e.INVALID_PARAMETER_IS_UPDATE_TIME=35043]="INVALID_PARAMETER_IS_UPDATE_TIME",e[e.INVALID_PARAMETER_CONTAIN_MUTED=35044]="INVALID_PARAMETER_CONTAIN_MUTED",e[e.INVALID_PARAMETER_IS_STATUS_MESSAGE=35045]="INVALID_PARAMETER_IS_STATUS_MESSAGE",e[e.INVALID_PARAMETER_IS_MENTIONED=35046]="INVALID_PARAMETER_IS_MENTIONED",e[e.INVALID_PARAMETER_IS_VOIP_PUSH=35047]="INVALID_PARAMETER_IS_VOIP_PUSH",e[e.INVALID_PARAMETER_MENTIONED_TYPE=35048]="INVALID_PARAMETER_MENTIONED_TYPE",e[e.INVALID_PARAMETER_PUSH_CONFIG=35049]="INVALID_PARAMETER_PUSH_CONFIG",e[e.INVALID_PARAMETER_PUSH_DATA=35050]="INVALID_PARAMETER_PUSH_DATA",e[e.DNS_PROXY_TIMEOUT=35051]="DNS_PROXY_TIMEOUT",e[e.DNS_PROXY_ERROR=35052]="DNS_PROXY_ERROR",e[e.DNS_PROXY_DATA_ERROR=35053]="DNS_PROXY_DATA_ERROR",e[e.INVALID_DISABLE_UPDATE_LAST_MESSAGE=35054]="INVALID_DISABLE_UPDATE_LAST_MESSAGE",e[e.ONLY_DEFAULT_CHANNEL_SUPPORTS_PINNING=35055]="ONLY_DEFAULT_CHANNEL_SUPPORTS_PINNING",e[e.SEND_READ_RECEIPT_CONF_ERROR=35056]="SEND_READ_RECEIPT_CONF_ERROR",e[e.SPEECH_TO_TEXT_DISABLE=35057]="SPEECH_TO_TEXT_DISABLE",e[e.SPEECH_TO_TEXT_REQUEST_IN_PROCESS=35058]="SPEECH_TO_TEXT_REQUEST_IN_PROCESS",e[e.SPEECH_TO_TEXT_MESSAGE_CONTENT_UNSUPPORTED=35059]="SPEECH_TO_TEXT_MESSAGE_CONTENT_UNSUPPORTED",e[e.TRANSLATION_PARAMS_TYPE_INVALID=35060]="TRANSLATION_PARAMS_TYPE_INVALID",e[e.TRANSLATION_PARAMS_LIST_INVALID=35061]="TRANSLATION_PARAMS_LIST_INVALID",e[e.INVALID_PARAMETER_TRANSLATE_STRATEGY=35062]="INVALID_PARAMETER_TRANSLATE_STRATEGY",e[e.TRANSLATION_LANGUAGE_SAME=35063]="TRANSLATION_LANGUAGE_SAME",e[e.INVALID_PARAMETER_TRANSLATE_MODE=35064]="INVALID_PARAMETER_TRANSLATE_MODE",e[e.TRANSLATION_TEXT_INVALID=35065]="TRANSLATION_TEXT_INVALID",e[e.MSG_BLOCK_SEND=35066]="MSG_BLOCK_SEND",e[e.CHATROOM_ID_ISNULL=36001]="CHATROOM_ID_ISNULL",e[e.CHARTOOM_JOIN_ERROR=36002]="CHARTOOM_JOIN_ERROR",e[e.CHATROOM_HISMESSAGE_ERROR=36003]="CHATROOM_HISMESSAGE_ERROR",e[e.CHATROOM_KV_NOT_FOUND=36004]="CHATROOM_KV_NOT_FOUND",e[e.BLACK_ADD_ERROR=37001]="BLACK_ADD_ERROR",e[e.BLACK_GETSTATUS_ERROR=37002]="BLACK_GETSTATUS_ERROR",e[e.BLACK_REMOVE_ERROR=37003]="BLACK_REMOVE_ERROR",e[e.DRAF_GET_ERROR=38001]="DRAF_GET_ERROR",e[e.STREAM_MESSAGE_DISABLE=39001]="STREAM_MESSAGE_DISABLE",e[e.STREAM_MESSAGE_REQUEST_COUNT_LIMIT_EXCEEDED=39002]="STREAM_MESSAGE_REQUEST_COUNT_LIMIT_EXCEEDED",e[e.STREAM_MESSAGE_EXPANSION_KEY_ERROR=39003]="STREAM_MESSAGE_EXPANSION_KEY_ERROR",e[e.STREAM_MESSAGE_REQUEST_FAIL=39005]="STREAM_MESSAGE_REQUEST_FAIL",e[e.STREAM_MESSAGE_REQUEST_IN_PROCESS=39006]="STREAM_MESSAGE_REQUEST_IN_PROCESS",e[e.STREAM_MESSAGE_SYNCED=39007]="STREAM_MESSAGE_SYNCED",e[e.QNTKN_GET_ERROR=41002]="QNTKN_GET_ERROR",e[e.TIMEOUT=-1]="TIMEOUT"}(y||(y={})),function(e){e[e.NONE=0]="NONE",e[e.PRIVATE=1]="PRIVATE",e[e.DISCUSSION=2]="DISCUSSION",e[e.GROUP=3]="GROUP",e[e.CHATROOM=4]="CHATROOM",e[e.CUSTOMER_SERVICE=5]="CUSTOMER_SERVICE",e[e.SYSTEM=6]="SYSTEM",e[e.APP_PUBLIC_SERVICE=7]="APP_PUBLIC_SERVICE",e[e.PUBLIC_SERVICE=8]="PUBLIC_SERVICE",e[e.ULTRA_GROUP=10]="ULTRA_GROUP",e[e.RTC_ROOM=12]="RTC_ROOM"}(v||(v={})),function(e){e[e.RMTP=1]="RMTP",e[e.TLS=2]="TLS",e[e.RPP=3]="RPP",e[e.QUIC=4]="QUIC",e[e.WS=5]="WS",e[e.WSS=6]="WSS",e[e.HTTP=11]="HTTP",e[e.HTTPS=12]="HTTPS"}(V||(V={}));const b=function(){var e,t={},i=function(e){var t=function(e,i,n){if(void 0===e&&(e=t.DEFAULT_CAPACITY),void 0===i&&(i=t.DEFAULT_ENDIAN),void 0===n&&(n=t.DEFAULT_NOASSERT),!n){if((e|=0)<0)throw RangeError("Illegal capacity");i=!!i,n=!!n}this.buffer=0===e?r:new ArrayBuffer(e),this.view=0===e?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=i,this.noAssert=n};t.VERSION="5.0.1",t.LITTLE_ENDIAN=!0,t.BIG_ENDIAN=!1,t.DEFAULT_CAPACITY=16,t.DEFAULT_ENDIAN=t.BIG_ENDIAN,t.DEFAULT_NOASSERT=!1,t.Long=e||null;var i=t.prototype;i.__isByteBuffer__,Object.defineProperty(i,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var r=new ArrayBuffer(0),n=String.fromCharCode;function E(e){var t=0;return function(){return t<e.length?e.charCodeAt(t++):null}}function s(){var e=[],t=[];return function(){if(0===arguments.length)return t.join("")+n.apply(String,e);e.length+arguments.length>1024&&(t.push(n.apply(String,e)),e.length=0),Array.prototype.push.apply(e,arguments)}}function I(e,t,i,r,n){var E,s,I=8*n-r-1,o=(1<<I)-1,_=o>>1,a=-7,R=i?n-1:0,f=i?-1:1,h=e[t+R];for(R+=f,E=h&(1<<-a)-1,h>>=-a,a+=I;a>0;E=256*E+e[t+R],R+=f,a-=8);for(s=E&(1<<-a)-1,E>>=-a,a+=r;a>0;s=256*s+e[t+R],R+=f,a-=8);if(0===E)E=1-_;else{if(E===o)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),E-=_}return(h?-1:1)*s*Math.pow(2,E-r)}function o(e,t,i,r,n,E){var s,I,o,_=8*E-n-1,a=(1<<_)-1,R=a>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:E-1,l=r?1:-1,T=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(I=isNaN(t)?1:0,s=a):(s=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-s))<1&&(s--,o*=2),(t+=s+R>=1?f/o:f*Math.pow(2,1-R))*o>=2&&(s++,o/=2),s+R>=a?(I=0,s=a):s+R>=1?(I=(t*o-1)*Math.pow(2,n),s+=R):(I=t*Math.pow(2,R-1)*Math.pow(2,n),s=0));n>=8;e[i+h]=255&I,h+=l,I/=256,n-=8);for(s=s<<n|I,_+=n;_>0;e[i+h]=255&s,h+=l,s/=256,_-=8);e[i+h-l]|=128*T}t.accessor=function(){return Uint8Array},t.allocate=function(e,i,r){return new t(e,i,r)},t.concat=function(e,i,r,n){"boolean"!=typeof i&&"string"==typeof i||(n=r,r=i,i=void 0);for(var E,s=0,I=0,o=e.length;I<o;++I)t.isByteBuffer(e[I])||(e[I]=t.wrap(e[I],i)),(E=e[I].limit-e[I].offset)>0&&(s+=E);if(0===s)return new t(0,r,n);var _,a=new t(s,r,n);for(I=0;I<o;)(E=(_=e[I++]).limit-_.offset)<=0||(a.view.set(_.view.subarray(_.offset,_.limit),a.offset),a.offset+=E);return a.limit=a.offset,a.offset=0,a},t.isByteBuffer=function(e){return!0===(e&&e.__isByteBuffer__)},t.type=function(){return ArrayBuffer},t.wrap=function(e,r,n,E){if("string"!=typeof r&&(E=n,n=r,r=void 0),"string"==typeof e)switch(void 0===r&&(r="utf8"),r){case"base64":return t.fromBase64(e,n);case"hex":return t.fromHex(e,n);case"binary":return t.fromBinary(e,n);case"utf8":return t.fromUTF8(e,n);case"debug":return t.fromDebug(e,n);default:throw Error("Unsupported encoding: "+r)}if(null===e||"object"!=typeof e)throw TypeError("Illegal buffer");var s;if(t.isByteBuffer(e))return(s=i.clone.call(e)).markedOffset=-1,s;if(e instanceof Uint8Array)s=new t(0,n,E),e.length>0&&(s.buffer=e.buffer,s.offset=e.byteOffset,s.limit=e.byteOffset+e.byteLength,s.view=new Uint8Array(e.buffer));else if(e instanceof ArrayBuffer)s=new t(0,n,E),e.byteLength>0&&(s.buffer=e,s.offset=0,s.limit=e.byteLength,s.view=e.byteLength>0?new Uint8Array(e):null);else{if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Illegal buffer");(s=new t(e.length,n,E)).limit=e.length;for(var I=0;I<e.length;++I)s.view[I]=e[I]}return s},i.writeBitSet=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if(!(e instanceof Array))throw TypeError("Illegal BitSet: Not an array");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var r,n=t,E=e.length,s=E>>3,I=0;for(t+=this.writeVarint32(E,t);s--;)r=1&!!e[I++]|(1&!!e[I++])<<1|(1&!!e[I++])<<2|(1&!!e[I++])<<3|(1&!!e[I++])<<4|(1&!!e[I++])<<5|(1&!!e[I++])<<6|(1&!!e[I++])<<7,this.writeByte(r,t++);if(I<E){var o=0;for(r=0;I<E;)r|=(1&!!e[I++])<<o++;this.writeByte(r,t++)}return i?(this.offset=t,this):t-n},i.readBitSet=function(e){var t=void 0===e;t&&(e=this.offset);var i,r=this.readVarint32(e),n=r.value,E=n>>3,s=0,I=[];for(e+=r.length;E--;)i=this.readByte(e++),I[s++]=!!(1&i),I[s++]=!!(2&i),I[s++]=!!(4&i),I[s++]=!!(8&i),I[s++]=!!(16&i),I[s++]=!!(32&i),I[s++]=!!(64&i),I[s++]=!!(128&i);if(s<n){var o=0;for(i=this.readByte(e++);s<n;)I[s++]=!!(i>>o++&1)}return t&&(this.offset=e),I},i.readBytes=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+"+e+") <= "+this.buffer.byteLength)}var r=this.slice(t,t+e);return i&&(this.offset+=e),r},i.writeBytes=i.append,i.writeInt8=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=1,this.view[t]=e,i&&(this.offset+=1),this},i.writeByte=i.writeInt8,i.readInt8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i=this.view[e];return 128&~i||(i=-(255-i+1)),t&&(this.offset+=1),i},i.readByte=i.readInt8,i.writeUint8=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=1,this.view[t]=e,i&&(this.offset+=1),this},i.writeUInt8=i.writeUint8,i.readUint8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i=this.view[e];return t&&(this.offset+=1),i},i.readUInt8=i.readUint8,i.writeInt16=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),i&&(this.offset+=2),this},i.writeShort=i.writeInt16,i.readInt16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var i=0;return this.littleEndian?(i=this.view[e],i|=this.view[e+1]<<8):(i=this.view[e]<<8,i|=this.view[e+1]),32768&~i||(i=-(65535-i+1)),t&&(this.offset+=2),i},i.readShort=i.readInt16,i.writeUint16=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),i&&(this.offset+=2),this},i.writeUInt16=i.writeUint16,i.readUint16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var i=0;return this.littleEndian?(i=this.view[e],i|=this.view[e+1]<<8):(i=this.view[e]<<8,i|=this.view[e+1]),t&&(this.offset+=2),i},i.readUInt16=i.readUint16,i.writeInt32=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=4,this.littleEndian?(this.view[t+3]=e>>>24&255,this.view[t+2]=e>>>16&255,this.view[t+1]=e>>>8&255,this.view[t]=255&e):(this.view[t]=e>>>24&255,this.view[t+1]=e>>>16&255,this.view[t+2]=e>>>8&255,this.view[t+3]=255&e),i&&(this.offset+=4),this},i.writeInt=i.writeInt32,i.readInt32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var i=0;return this.littleEndian?(i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0),i|=0,t&&(this.offset+=4),i},i.readInt=i.readInt32,i.writeUint32=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=4,this.littleEndian?(this.view[t+3]=e>>>24&255,this.view[t+2]=e>>>16&255,this.view[t+1]=e>>>8&255,this.view[t]=255&e):(this.view[t]=e>>>24&255,this.view[t+1]=e>>>16&255,this.view[t+2]=e>>>8&255,this.view[t+3]=255&e),i&&(this.offset+=4),this},i.writeUInt32=i.writeUint32,i.readUint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var i=0;return this.littleEndian?(i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0),t&&(this.offset+=4),i},i.readUInt32=i.readUint32,e&&(i.writeInt64=function(t,i){var r=void 0===i;if(r&&(i=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),i+=8;var n=this.buffer.byteLength;i>n&&this.resize((n*=2)>i?n:i),i-=8;var E=t.low,s=t.high;return this.littleEndian?(this.view[i+3]=E>>>24&255,this.view[i+2]=E>>>16&255,this.view[i+1]=E>>>8&255,this.view[i]=255&E,i+=4,this.view[i+3]=s>>>24&255,this.view[i+2]=s>>>16&255,this.view[i+1]=s>>>8&255,this.view[i]=255&s):(this.view[i]=s>>>24&255,this.view[i+1]=s>>>16&255,this.view[i+2]=s>>>8&255,this.view[i+3]=255&s,i+=4,this.view[i]=E>>>24&255,this.view[i+1]=E>>>16&255,this.view[i+2]=E>>>8&255,this.view[i+3]=255&E),r&&(this.offset+=8),this},i.writeLong=i.writeInt64,i.readInt64=function(t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var r=0,n=0;this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0,t+=4,n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0):(n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0,t+=4,r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0);var E=new e(r,n,!1);return i&&(this.offset+=8),E},i.readLong=i.readInt64,i.writeUint64=function(t,i){var r=void 0===i;if(r&&(i=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),i+=8;var n=this.buffer.byteLength;i>n&&this.resize((n*=2)>i?n:i),i-=8;var E=t.low,s=t.high;return this.littleEndian?(this.view[i+3]=E>>>24&255,this.view[i+2]=E>>>16&255,this.view[i+1]=E>>>8&255,this.view[i]=255&E,i+=4,this.view[i+3]=s>>>24&255,this.view[i+2]=s>>>16&255,this.view[i+1]=s>>>8&255,this.view[i]=255&s):(this.view[i]=s>>>24&255,this.view[i+1]=s>>>16&255,this.view[i+2]=s>>>8&255,this.view[i+3]=255&s,i+=4,this.view[i]=E>>>24&255,this.view[i+1]=E>>>16&255,this.view[i+2]=E>>>8&255,this.view[i+3]=255&E),r&&(this.offset+=8),this},i.writeUInt64=i.writeUint64,i.readUint64=function(t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var r=0,n=0;this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0,t+=4,n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0):(n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0,t+=4,r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0);var E=new e(r,n,!0);return i&&(this.offset+=8),E},i.readUInt64=i.readUint64),i.writeFloat32=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=4,o(this.view,e,t,this.littleEndian,23,4),i&&(this.offset+=4),this},i.writeFloat=i.writeFloat32,i.readFloat32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var i=I(this.view,e,this.littleEndian,23,4);return t&&(this.offset+=4),i},i.readFloat=i.readFloat32,i.writeFloat64=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=8;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=8,o(this.view,e,t,this.littleEndian,52,8),i&&(this.offset+=8),this},i.writeDouble=i.writeFloat64,i.readFloat64=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var i=I(this.view,e,this.littleEndian,52,8);return t&&(this.offset+=8),i},i.readDouble=i.readFloat64,t.MAX_VARINT32_BYTES=5,t.calculateVarint32=function(e){return(e>>>=0)<128?1:e<16384?2:e<1<<21?3:e<1<<28?4:5},t.zigZagEncode32=function(e){return((e|=0)<<1^e>>31)>>>0},t.zigZagDecode32=function(e){return e>>>1^-(1&e)},i.writeVarint32=function(e,i){var r=void 0===i;if(r&&(i=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}var n,E=t.calculateVarint32(e);i+=E;var s=this.buffer.byteLength;for(i>s&&this.resize((s*=2)>i?s:i),i-=E,e>>>=0;e>=128;)n=127&e|128,this.view[i++]=n,e>>>=7;return this.view[i++]=e,r?(this.offset=i,this):E},i.writeVarint32ZigZag=function(e,i){return this.writeVarint32(t.zigZagEncode32(e),i)},i.readVarint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i,r=0,n=0;do{if(!this.noAssert&&e>this.limit){var E=Error("Truncated");throw E.truncated=!0,E}i=this.view[e++],r<5&&(n|=(127&i)<<7*r),++r}while(128&i);return n|=0,t?(this.offset=e,n):{value:n,length:r}},i.readVarint32ZigZag=function(e){var i=this.readVarint32(e);return"object"==typeof i?i.value=t.zigZagDecode32(i.value):i=t.zigZagDecode32(i),i},e&&(t.MAX_VARINT64_BYTES=10,t.calculateVarint64=function(t){"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t));var i=t.toInt()>>>0,r=t.shiftRightUnsigned(28).toInt()>>>0,n=t.shiftRightUnsigned(56).toInt()>>>0;return 0==n?0==r?i<16384?i<128?1:2:i<1<<21?3:4:r<16384?r<128?5:6:r<1<<21?7:8:n<128?9:10},t.zigZagEncode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftLeft(1).xor(t.shiftRight(63)).toUnsigned()},t.zigZagDecode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftRightUnsigned(1).xor(t.and(e.ONE).toSigned().negate()).toSigned()},i.writeVarint64=function(i,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"==typeof i)i=e.fromNumber(i);else if("string"==typeof i)i=e.fromString(i);else if(!(i&&i instanceof e))throw TypeError("Illegal value: "+i+" (not an integer or Long)");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}"number"==typeof i?i=e.fromNumber(i,!1):"string"==typeof i?i=e.fromString(i,!1):!1!==i.unsigned&&(i=i.toSigned());var E=t.calculateVarint64(i),s=i.toInt()>>>0,I=i.shiftRightUnsigned(28).toInt()>>>0,o=i.shiftRightUnsigned(56).toInt()>>>0;r+=E;var _=this.buffer.byteLength;switch(r>_&&this.resize((_*=2)>r?_:r),r-=E,E){case 10:this.view[r+9]=o>>>7&1;case 9:this.view[r+8]=9!==E?128|o:127&o;case 8:this.view[r+7]=8!==E?I>>>21|128:I>>>21&127;case 7:this.view[r+6]=7!==E?I>>>14|128:I>>>14&127;case 6:this.view[r+5]=6!==E?I>>>7|128:I>>>7&127;case 5:this.view[r+4]=5!==E?128|I:127&I;case 4:this.view[r+3]=4!==E?s>>>21|128:s>>>21&127;case 3:this.view[r+2]=3!==E?s>>>14|128:s>>>14&127;case 2:this.view[r+1]=2!==E?s>>>7|128:s>>>7&127;case 1:this.view[r]=1!==E?128|s:127&s}return n?(this.offset+=E,this):E},i.writeVarint64ZigZag=function(e,i){return this.writeVarint64(t.zigZagEncode64(e),i)},i.readVarint64=function(t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=t,n=0,E=0,s=0,I=0;if(n=127&(I=this.view[t++]),128&I&&(n|=(127&(I=this.view[t++]))<<7,(128&I||this.noAssert&&void 0===I)&&(n|=(127&(I=this.view[t++]))<<14,(128&I||this.noAssert&&void 0===I)&&(n|=(127&(I=this.view[t++]))<<21,(128&I||this.noAssert&&void 0===I)&&(E=127&(I=this.view[t++]),(128&I||this.noAssert&&void 0===I)&&(E|=(127&(I=this.view[t++]))<<7,(128&I||this.noAssert&&void 0===I)&&(E|=(127&(I=this.view[t++]))<<14,(128&I||this.noAssert&&void 0===I)&&(E|=(127&(I=this.view[t++]))<<21,(128&I||this.noAssert&&void 0===I)&&(s=127&(I=this.view[t++]),(128&I||this.noAssert&&void 0===I)&&(s|=(127&(I=this.view[t++]))<<7,128&I||this.noAssert&&void 0===I))))))))))throw Error("Buffer overrun");var o=e.fromBits(n|E<<28,E>>>4|s<<24,!1);return i?(this.offset=t,o):{value:o,length:t-r}},i.readVarint64ZigZag=function(i){var r=this.readVarint64(i);return r&&r.value instanceof e?r.value=t.zigZagDecode64(r.value):r=t.zigZagDecode64(r),r}),i.writeCString=function(e,t){var i=void 0===t;i&&(t=this.offset);var r,n=e.length;if(!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");for(r=0;r<n;++r)if(0===e.charCodeAt(r))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}n=a.calculateUTF16asUTF8(E(e))[1],t+=n+1;var s=this.buffer.byteLength;return t>s&&this.resize((s*=2)>t?s:t),t-=n+1,a.encodeUTF16toUTF8(E(e),function(e){this.view[t++]=e}.bind(this)),this.view[t++]=0,i?(this.offset=t,this):n},i.readCString=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i,r=e,n=-1;return a.decodeUTF8toUTF16(function(){if(0===n)return null;if(e>=this.limit)throw RangeError("Illegal range: Truncated data, "+e+" < "+this.limit);return 0===(n=this.view[e++])?null:n}.bind(this),i=s(),!0),t?(this.offset=e,i()):{string:i(),length:e-r}},i.writeIString=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var r,n=t;r=a.calculateUTF16asUTF8(E(e),this.noAssert)[1],t+=4+r;var s=this.buffer.byteLength;if(t>s&&this.resize((s*=2)>t?s:t),t-=4+r,this.littleEndian?(this.view[t+3]=r>>>24&255,this.view[t+2]=r>>>16&255,this.view[t+1]=r>>>8&255,this.view[t]=255&r):(this.view[t]=r>>>24&255,this.view[t+1]=r>>>16&255,this.view[t+2]=r>>>8&255,this.view[t+3]=255&r),t+=4,a.encodeUTF16toUTF8(E(e),function(e){this.view[t++]=e}.bind(this)),t!==n+4+r)throw RangeError("Illegal range: Truncated data, "+t+" == "+(t+4+r));return i?(this.offset=t,this):t-n},i.readIString=function(e){var i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var r=e,n=this.readUint32(e),E=this.readUTF8String(n,t.METRICS_BYTES,e+=4);return e+=E.length,i?(this.offset=e,E.string):{string:E.string,length:e-r}},t.METRICS_CHARS="c",t.METRICS_BYTES="b",i.writeUTF8String=function(e,t){var i,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var n=t;i=a.calculateUTF16asUTF8(E(e))[1],t+=i;var s=this.buffer.byteLength;return t>s&&this.resize((s*=2)>t?s:t),t-=i,a.encodeUTF16toUTF8(E(e),function(e){this.view[t++]=e}.bind(this)),r?(this.offset=t,this):t-n},i.writeString=i.writeUTF8String,t.calculateUTF8Chars=function(e){return a.calculateUTF16asUTF8(E(e))[0]},t.calculateUTF8Bytes=function(e){return a.calculateUTF16asUTF8(E(e))[1]},t.calculateString=t.calculateUTF8Bytes,i.readUTF8String=function(e,i,r){"number"==typeof i&&(r=i,i=void 0);var n=void 0===r;if(n&&(r=this.offset),void 0===i&&(i=t.METRICS_CHARS),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");if(e|=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var E,I=0,o=r;if(i===t.METRICS_CHARS){if(E=s(),a.decodeUTF8(function(){return I<e&&r<this.limit?this.view[r++]:null}.bind(this),(function(e){++I,a.UTF8toUTF16(e,E)})),I!==e)throw RangeError("Illegal range: Truncated data, "+I+" == "+e);return n?(this.offset=r,E()):{string:E(),length:r-o}}if(i===t.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+"+e+") <= "+this.buffer.byteLength)}var _=r+e;if(a.decodeUTF8toUTF16(function(){return r<_?this.view[r++]:null}.bind(this),E=s(),this.noAssert),r!==_)throw RangeError("Illegal range: Truncated data, "+r+" == "+_);return n?(this.offset=r,E()):{string:E(),length:r-o}}throw TypeError("Unsupported metrics: "+i)},i.readString=i.readUTF8String,i.writeVString=function(e,i){var r=void 0===i;if(r&&(i=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}var n,s,I=i;n=a.calculateUTF16asUTF8(E(e),this.noAssert)[1],s=t.calculateVarint32(n),i+=s+n;var o=this.buffer.byteLength;if(i>o&&this.resize((o*=2)>i?o:i),i-=s+n,i+=this.writeVarint32(n,i),a.encodeUTF16toUTF8(E(e),function(e){this.view[i++]=e}.bind(this)),i!==I+n+s)throw RangeError("Illegal range: Truncated data, "+i+" == "+(i+n+s));return r?(this.offset=i,this):i-I},i.readVString=function(e){var i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r=e,n=this.readVarint32(e),E=this.readUTF8String(n.value,t.METRICS_BYTES,e+=n.length);return e+=E.length,i?(this.offset=e,E.string):{string:E.string,length:e-r}},i.append=function(e,i,r){"number"!=typeof i&&"string"==typeof i||(r=i,i=void 0);var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}e instanceof t||(e=t.wrap(e,i));var E=e.limit-e.offset;if(E<=0)return this;r+=E;var s=this.buffer.byteLength;return r>s&&this.resize((s*=2)>r?s:r),r-=E,this.view.set(e.view.subarray(e.offset,e.limit),r),e.offset+=E,n&&(this.offset+=E),this},i.appendTo=function(e,t){return e.append(this,t),this},i.assert=function(e){return this.noAssert=!e,this},i.capacity=function(){return this.buffer.byteLength},i.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},i.clone=function(e){var i=new t(0,this.littleEndian,this.noAssert);return e?(i.buffer=new ArrayBuffer(this.buffer.byteLength),i.view=new Uint8Array(i.buffer)):(i.buffer=this.buffer,i.view=this.view),i.offset=this.offset,i.markedOffset=this.markedOffset,i.limit=this.limit,i},i.compact=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(0===e&&t===this.buffer.byteLength)return this;var i=t-e;if(0===i)return this.buffer=r,this.view=null,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=0,this;var n=new ArrayBuffer(i),E=new Uint8Array(n);return E.set(this.view.subarray(e,t)),this.buffer=n,this.view=E,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=i,this},i.copy=function(e,i){if(void 0===e&&(e=this.offset),void 0===i&&(i=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal end: Not an integer");if(i>>>=0,e<0||e>i||i>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+i+" <= "+this.buffer.byteLength)}if(e===i)return new t(0,this.littleEndian,this.noAssert);var r=i-e,n=new t(r,this.littleEndian,this.noAssert);return n.offset=0,n.limit=r,n.markedOffset>=0&&(n.markedOffset-=e),this.copyTo(n,0,e,i),n},i.copyTo=function(e,i,r,n){var E,s;if(!this.noAssert&&!t.isByteBuffer(e))throw TypeError("Illegal target: Not a ByteBuffer");if(i=(s=void 0===i)?e.offset:0|i,r=(E=void 0===r)?this.offset:0|r,n=void 0===n?this.limit:0|n,i<0||i>e.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+i+" <= "+e.buffer.byteLength);if(r<0||n>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+r+" <= "+this.buffer.byteLength);var I=n-r;return 0===I?e:(e.ensureCapacity(i+I),e.view.set(this.view.subarray(r,n),i),E&&(this.offset+=I),s&&(e.offset+=I),this)},i.ensureCapacity=function(e){var t=this.buffer.byteLength;return t<e?this.resize((t*=2)>e?t:e):this},i.fill=function(e,t,i){var r=void 0===t;if(r&&(t=this.offset),"string"==typeof e&&e.length>0&&(e=e.charCodeAt(0)),void 0===t&&(t=this.offset),void 0===i&&(i=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal end: Not an integer");if(i>>>=0,t<0||t>i||i>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+i+" <= "+this.buffer.byteLength)}if(t>=i)return this;for(;t<i;)this.view[t++]=e;return r&&(this.offset=t),this},i.flip=function(){return this.limit=this.offset,this.offset=0,this},i.mark=function(e){if(e=void 0===e?this.offset:e,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=e,this},i.order=function(e){if(!this.noAssert&&"boolean"!=typeof e)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!e,this},i.LE=function(e){return this.littleEndian=void 0===e||!!e,this},i.BE=function(e){return this.littleEndian=void 0!==e&&!e,this},i.prepend=function(e,i,r){"number"!=typeof i&&"string"==typeof i||(r=i,i=void 0);var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}e instanceof t||(e=t.wrap(e,i));var E=e.limit-e.offset;if(E<=0)return this;var s=E-r;if(s>0){var I=new ArrayBuffer(this.buffer.byteLength+s),o=new Uint8Array(I);o.set(this.view.subarray(r,this.buffer.byteLength),E),this.buffer=I,this.view=o,this.offset+=s,this.markedOffset>=0&&(this.markedOffset+=s),this.limit+=s,r+=s}else new Uint8Array(this.buffer);return this.view.set(e.view.subarray(e.offset,e.limit),r-E),e.offset=e.limit,n&&(this.offset-=E),this},i.prependTo=function(e,t){return e.prepend(this,t),this},i.printDebug=function(e){"function"!=typeof e&&(e=console.log.bind(console)),e(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},i.remaining=function(){return this.limit-this.offset},i.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},i.resize=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal capacity: "+e+" (not an integer)");if((e|=0)<0)throw RangeError("Illegal capacity: 0 <= "+e)}if(this.buffer.byteLength<e){var t=new ArrayBuffer(e),i=new Uint8Array(t);i.set(this.view),this.buffer=t,this.view=i}return this},i.reverse=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return e===t||Array.prototype.reverse.call(this.view.subarray(e,t)),this},i.skip=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");e|=0}var t=this.offset+e;if(!this.noAssert&&(t<0||t>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+e+" <= "+this.buffer.byteLength);return this.offset=t,this},i.slice=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var i=this.clone();return i.offset=e,i.limit=t,i},i.toBuffer=function(e){var t=this.offset,i=this.limit;if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: Not an integer");if(t>>>=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal limit: Not an integer");if(i>>>=0,t<0||t>i||i>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+i+" <= "+this.buffer.byteLength)}if(!e&&0===t&&i===this.buffer.byteLength)return this.buffer;if(t===i)return r;var n=new ArrayBuffer(i-t);return new Uint8Array(n).set(new Uint8Array(this.buffer).subarray(t,i),0),n},i.toArrayBuffer=i.toBuffer,i.toString=function(e,t,i){if(void 0===e)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof e&&(i=t=e="utf8"),e){case"utf8":return this.toUTF8(t,i);case"base64":return this.toBase64(t,i);case"hex":return this.toHex(t,i);case"binary":return this.toBinary(t,i);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+e)}};var _=function(){for(var e={},t=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],i=[],r=0,n=t.length;r<n;++r)i[t[r]]=r;return e.encode=function(e,i){for(var r,n;null!==(r=e());)i(t[r>>2&63]),n=(3&r)<<4,null!==(r=e())?(i(t[63&((n|=r>>4&15)|r>>4&15)]),n=(15&r)<<2,null!==(r=e())?(i(t[63&(n|r>>6&3)]),i(t[63&r])):(i(t[63&n]),i(61))):(i(t[63&n]),i(61),i(61))},e.decode=function(e,t){var r,n,E;function s(e){throw Error("Illegal character code: "+e)}for(;null!==(r=e());)if(void 0===(n=i[r])&&s(r),null!==(r=e())&&(void 0===(E=i[r])&&s(r),t(n<<2>>>0|(48&E)>>4),null!==(r=e()))){if(void 0===(n=i[r])){if(61===r)break;s(r)}if(t((15&E)<<4>>>0|(60&n)>>2),null!==(r=e())){if(void 0===(E=i[r])){if(61===r)break;s(r)}t((3&n)<<6>>>0|E)}}},e.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)},e}();i.toBase64=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity||e>t)throw RangeError("begin, end");var i;return _.encode(function(){return e<t?this.view[e++]:null}.bind(this),i=s()),i()},t.fromBase64=function(e,i){if("string"!=typeof e)throw TypeError("str");var r=new t(e.length/4*3,i),n=0;return _.decode(E(e),(function(e){r.view[n++]=e})),r.limit=n,r},t.btoa=function(e){return t.fromBinary(e).toBase64()},t.atob=function(e){return t.fromBase64(e).toBinary()},i.toBinary=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity()||e>t)throw RangeError("begin, end");if(e===t)return"";for(var i=[],r=[];e<t;)i.push(this.view[e++]),i.length>=1024&&(r.push(String.fromCharCode.apply(String,i)),i=[]);return r.join("")+String.fromCharCode.apply(String,i)},t.fromBinary=function(e,i){if("string"!=typeof e)throw TypeError("str");for(var r,n=0,E=e.length,s=new t(E,i);n<E;){if((r=e.charCodeAt(n))>255)throw RangeError("illegal char code: "+r);s.view[n++]=r}return s.limit=E,s},i.toDebug=function(e){for(var t,i=-1,r=this.buffer.byteLength,n="",E="",s="";i<r;){if(-1!==i&&(n+=(t=this.view[i])<16?"0"+t.toString(16).toUpperCase():t.toString(16).toUpperCase(),e&&(E+=t>32&&t<127?String.fromCharCode(t):".")),++i,e&&i>0&&i%16==0&&i!==r){for(;n.length<51;)n+=" ";s+=n+E+"\n",n=E=""}i===this.offset&&i===this.limit?n+=i===this.markedOffset?"!":"|":i===this.offset?n+=i===this.markedOffset?"[":"<":i===this.limit?n+=i===this.markedOffset?"]":">":n+=i===this.markedOffset?"'":e||0!==i&&i!==r?" ":""}if(e&&" "!==n){for(;n.length<51;)n+=" ";s+=n+E+"\n"}return e?s:n},t.fromDebug=function(e,i,r){for(var n,E,s=e.length,I=new t((s+1)/3|0,i,r),o=0,_=0,a=!1,R=!1,f=!1,h=!1,l=!1;o<s;){switch(n=e.charAt(o++)){case"!":if(!r){if(R||f||h){l=!0;break}R=f=h=!0}I.offset=I.markedOffset=I.limit=_,a=!1;break;case"|":if(!r){if(R||h){l=!0;break}R=h=!0}I.offset=I.limit=_,a=!1;break;case"[":if(!r){if(R||f){l=!0;break}R=f=!0}I.offset=I.markedOffset=_,a=!1;break;case"<":if(!r){if(R){l=!0;break}R=!0}I.offset=_,a=!1;break;case"]":if(!r){if(h||f){l=!0;break}h=f=!0}I.limit=I.markedOffset=_,a=!1;break;case">":if(!r){if(h){l=!0;break}h=!0}I.limit=_,a=!1;break;case"'":if(!r){if(f){l=!0;break}f=!0}I.markedOffset=_,a=!1;break;case" ":a=!1;break;default:if(!r&&a){l=!0;break}if(E=parseInt(n+e.charAt(o++),16),!r&&(isNaN(E)||E<0||E>255))throw TypeError("Illegal str: Not a debug encoded string");I.view[_++]=E,a=!0}if(l)throw TypeError("Illegal str: Invalid symbol at "+o)}if(!r){if(!R||!h)throw TypeError("Illegal str: Missing offset or limit");if(_<I.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+_+" < "+s)}return I},i.toHex=function(e,t){if(e=void 0===e?this.offset:e,t=void 0===t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}for(var i,r=new Array(t-e);e<t;)(i=this.view[e++])<16?r.push("0",i.toString(16)):r.push(i.toString(16));return r.join("")},t.fromHex=function(e,i,r){if(!r){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(var n,E=e.length,s=new t(E/2|0,i),I=0,o=0;I<E;I+=2){if(n=parseInt(e.substring(I,I+2),16),!r&&(!isFinite(n)||n<0||n>255))throw TypeError("Illegal str: Contains non-hex characters");s.view[o++]=n}return s.limit=o,s};var a=function(){var e={MAX_CODEPOINT:1114111,encodeUTF8:function(e,t){var i=null;for("number"==typeof e&&(i=e,e=function(){return null});null!==i||null!==(i=e());)i<128?t(127&i):i<2048?(t(i>>6&31|192),t(63&i|128)):i<65536?(t(i>>12&15|224),t(i>>6&63|128),t(63&i|128)):(t(i>>18&7|240),t(i>>12&63|128),t(i>>6&63|128),t(63&i|128)),i=null},decodeUTF8:function(e,t){for(var i,r,n,E,s=function(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};null!==(i=e());)if(128&i)if(192==(224&i))null===(r=e())&&s([i,r]),t((31&i)<<6|63&r);else if(224==(240&i))(null===(r=e())||null===(n=e()))&&s([i,r,n]),t((15&i)<<12|(63&r)<<6|63&n);else{if(240!=(248&i))throw RangeError("Illegal starting byte: "+i);(null===(r=e())||null===(n=e())||null===(E=e()))&&s([i,r,n,E]),t((7&i)<<18|(63&r)<<12|(63&n)<<6|63&E)}else t(i)},UTF16toUTF8:function(e,t){for(var i,r=null;null!==(i=null!==r?r:e());)i>=55296&&i<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(i-55296)+r-56320+65536),r=null):t(i);null!==r&&t(r)},UTF8toUTF16:function(e,t){var i=null;for("number"==typeof e&&(i=e,e=function(){return null});null!==i||null!==(i=e());)i<=65535?t(i):(t(55296+((i-=65536)>>10)),t(i%1024+56320)),i=null},encodeUTF16toUTF8:function(t,i){e.UTF16toUTF8(t,(function(t){e.encodeUTF8(t,i)}))},decodeUTF8toUTF16:function(t,i){e.decodeUTF8(t,(function(t){e.UTF8toUTF16(t,i)}))},calculateCodePoint:function(e){return e<128?1:e<2048?2:e<65536?3:4},calculateUTF8:function(e){for(var t,i=0;null!==(t=e());)i+=t<128?1:t<2048?2:t<65536?3:4;return i},calculateUTF16asUTF8:function(t){var i=0,r=0;return e.UTF16toUTF8(t,(function(e){++i,r+=e<128?1:e<2048?2:e<65536?3:4})),[i,r]}};return e}();return i.toUTF8=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var i;try{a.decodeUTF8toUTF16(function(){return e<t?this.view[e++]:null}.bind(this),i=s())}catch(i){if(e!==t)throw RangeError("Illegal range: Truncated data, "+e+" != "+t)}return i()},t.fromUTF8=function(e,i,r){if(!r&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");var n=new t(a.calculateUTF16asUTF8(E(e),!0)[1],i,r),s=0;return a.encodeUTF16toUTF8(E(e),(function(e){n.view[s++]=e})),n.limit=s,n},t}(function(){function e(e,t,i){this.low=0|e,this.high=0|t,this.unsigned=!!i}function t(e){return!0===(e&&e.__isLong__)}e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t;var i={},r={};function n(e,t){var n,E,I;return t?(I=0<=(e>>>=0)&&e<256)&&(E=r[e])?E:(n=s(e,(0|e)<0?-1:0,!0),I&&(r[e]=n),n):(I=-128<=(e|=0)&&e<128)&&(E=i[e])?E:(n=s(e,e<0?-1:0,!1),I&&(i[e]=n),n)}function E(e,t){if(isNaN(e)||!isFinite(e))return t?T:l;if(t){if(e<0)return T;if(e>=R)return S}else{if(e<=-f)return M;if(e+1>=f)return O}return e<0?E(-e,t).neg():s(e%a|0,e/a|0,t)}function s(t,i,r){return new e(t,i,r)}e.fromInt=n,e.fromNumber=E,e.fromBits=s;var I=Math.pow;function o(e,t,i){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return l;if("number"==typeof t?(i=t,t=!1):t=!!t,(i=i||10)<2||36<i)throw RangeError("radix");var r;if((r=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===r)return o(e.substring(1),t,i).neg();for(var n=E(I(i,8)),s=l,_=0;_<e.length;_+=8){var a=Math.min(8,e.length-_),R=parseInt(e.substring(_,_+a),i);if(a<8){var f=E(I(i,a));s=s.mul(f).add(E(R))}else s=(s=s.mul(n)).add(E(R))}return s.unsigned=t,s}function _(t){return t instanceof e?t:"number"==typeof t?E(t):"string"==typeof t?o(t):s(t.low,t.high,t.unsigned)}e.fromString=o,e.fromValue=_;var a=4294967296,R=a*a,f=R/2,h=n(1<<24),l=n(0);e.ZERO=l;var T=n(0,!0);e.UZERO=T;var A=n(1);e.ONE=A;var u=n(1,!0);e.UONE=u;var N=n(-1);e.NEG_ONE=N;var O=s(-1,2147483647,!1);e.MAX_VALUE=O;var S=s(-1,-1,!0);e.MAX_UNSIGNED_VALUE=S;var M=s(0,-2147483648,!1);e.MIN_VALUE=M;var c=e.prototype;return c.toInt=function(){return this.unsigned?this.low>>>0:this.low},c.toNumber=function(){return this.unsigned?(this.high>>>0)*a+(this.low>>>0):this.high*a+(this.low>>>0)},c.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(M)){var t=E(e),i=this.div(t),r=i.mul(t).sub(this);return i.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var n=E(I(e,6),this.unsigned),s=this,o="";;){var _=s.div(n),a=(s.sub(_.mul(n)).toInt()>>>0).toString(e);if((s=_).isZero())return a+o;for(;a.length<6;)a="0"+a;o=""+a+o}},c.getHighBits=function(){return this.high},c.getHighBitsUnsigned=function(){return this.high>>>0},c.getLowBits=function(){return this.low},c.getLowBitsUnsigned=function(){return this.low>>>0},c.getNumBitsAbs=function(){if(this.isNegative())return this.eq(M)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},c.isZero=function(){return 0===this.high&&0===this.low},c.isNegative=function(){return!this.unsigned&&this.high<0},c.isPositive=function(){return this.unsigned||this.high>=0},c.isOdd=function(){return!(1&~this.low)},c.isEven=function(){return!(1&this.low)},c.equals=function(e){return t(e)||(e=_(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},c.eq=c.equals,c.notEquals=function(e){return!this.eq(e)},c.neq=c.notEquals,c.lessThan=function(e){return this.comp(e)<0},c.lt=c.lessThan,c.lessThanOrEqual=function(e){return this.comp(e)<=0},c.lte=c.lessThanOrEqual,c.greaterThan=function(e){return this.comp(e)>0},c.gt=c.greaterThan,c.greaterThanOrEqual=function(e){return this.comp(e)>=0},c.gte=c.greaterThanOrEqual,c.compare=function(e){if(t(e)||(e=_(e)),this.eq(e))return 0;var i=this.isNegative(),r=e.isNegative();return i&&!r?-1:!i&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},c.comp=c.compare,c.negate=function(){return!this.unsigned&&this.eq(M)?M:this.not().add(A)},c.neg=c.negate,c.add=function(e){t(e)||(e=_(e));var i=this.high>>>16,r=65535&this.high,n=this.low>>>16,E=65535&this.low,I=e.high>>>16,o=65535&e.high,a=e.low>>>16,R=0,f=0,h=0,l=0;return h+=(l+=E+(65535&e.low))>>>16,f+=(h+=n+a)>>>16,R+=(f+=r+o)>>>16,R+=i+I,s((h&=65535)<<16|(l&=65535),(R&=65535)<<16|(f&=65535),this.unsigned)},c.subtract=function(e){return t(e)||(e=_(e)),this.add(e.neg())},c.sub=c.subtract,c.multiply=function(e){if(this.isZero())return l;if(t(e)||(e=_(e)),e.isZero())return l;if(this.eq(M))return e.isOdd()?M:l;if(e.eq(M))return this.isOdd()?M:l;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(h)&&e.lt(h))return E(this.toNumber()*e.toNumber(),this.unsigned);var i=this.high>>>16,r=65535&this.high,n=this.low>>>16,I=65535&this.low,o=e.high>>>16,a=65535&e.high,R=e.low>>>16,f=65535&e.low,T=0,A=0,u=0,N=0;return u+=(N+=I*f)>>>16,A+=(u+=n*f)>>>16,u&=65535,A+=(u+=I*R)>>>16,T+=(A+=r*f)>>>16,A&=65535,T+=(A+=n*R)>>>16,A&=65535,T+=(A+=I*a)>>>16,T+=i*f+r*R+n*a+I*o,s((u&=65535)<<16|(N&=65535),(T&=65535)<<16|(A&=65535),this.unsigned)},c.mul=c.multiply,c.divide=function(e){if(t(e)||(e=_(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?T:l;var i,r,n;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return T;if(e.gt(this.shru(1)))return u;n=T}else{if(this.eq(M))return e.eq(A)||e.eq(N)?M:e.eq(M)?A:(i=this.shr(1).div(e).shl(1)).eq(l)?e.isNegative()?A:N:(r=this.sub(e.mul(i)),n=i.add(r.div(e)));if(e.eq(M))return this.unsigned?T:l;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=l}for(r=this;r.gte(e);){i=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(i)/Math.LN2),o=s<=48?1:I(2,s-48),a=E(i),R=a.mul(e);R.isNegative()||R.gt(r);)R=(a=E(i-=o,this.unsigned)).mul(e);a.isZero()&&(a=A),n=n.add(a),r=r.sub(R)}return n},c.div=c.divide,c.modulo=function(e){return t(e)||(e=_(e)),this.sub(this.div(e).mul(e))},c.mod=c.modulo,c.not=function(){return s(~this.low,~this.high,this.unsigned)},c.and=function(e){return t(e)||(e=_(e)),s(this.low&e.low,this.high&e.high,this.unsigned)},c.or=function(e){return t(e)||(e=_(e)),s(this.low|e.low,this.high|e.high,this.unsigned)},c.xor=function(e){return t(e)||(e=_(e)),s(this.low^e.low,this.high^e.high,this.unsigned)},c.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?s(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):s(0,this.low<<e-32,this.unsigned)},c.shl=c.shiftLeft,c.shiftRight=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?s(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):s(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},c.shr=c.shiftRight,c.shiftRightUnsigned=function(e){if(t(e)&&(e=e.toInt()),0===(e&=63))return this;var i=this.high;return e<32?s(this.low>>>e|i<<32-e,i>>>e,this.unsigned):s(32===e?i:i>>>e-32,0,this.unsigned)},c.shru=c.shiftRightUnsigned,c.toSigned=function(){return this.unsigned?s(this.low,this.high,!1):this},c.toUnsigned=function(){return this.unsigned?this:s(this.low,this.high,!0)},c.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},c.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255]},c.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t]},e}());return t.ByteBuffer=i,t.Long=i.Long||null,t.VERSION="5.0.3",t.WIRE_TYPES={},t.WIRE_TYPES.VARINT=0,t.WIRE_TYPES.BITS64=1,t.WIRE_TYPES.LDELIM=2,t.WIRE_TYPES.STARTGROUP=3,t.WIRE_TYPES.ENDGROUP=4,t.WIRE_TYPES.BITS32=5,t.PACKABLE_WIRE_TYPES=[t.WIRE_TYPES.VARINT,t.WIRE_TYPES.BITS64,t.WIRE_TYPES.BITS32],t.TYPES={int32:{name:"int32",wireType:t.WIRE_TYPES.VARINT,defaultValue:0},uint32:{name:"uint32",wireType:t.WIRE_TYPES.VARINT,defaultValue:0},sint32:{name:"sint32",wireType:t.WIRE_TYPES.VARINT,defaultValue:0},int64:{name:"int64",wireType:t.WIRE_TYPES.VARINT,defaultValue:t.Long?t.Long.ZERO:void 0},uint64:{name:"uint64",wireType:t.WIRE_TYPES.VARINT,defaultValue:t.Long?t.Long.UZERO:void 0},sint64:{name:"sint64",wireType:t.WIRE_TYPES.VARINT,defaultValue:t.Long?t.Long.ZERO:void 0},bool:{name:"bool",wireType:t.WIRE_TYPES.VARINT,defaultValue:!1},double:{name:"double",wireType:t.WIRE_TYPES.BITS64,defaultValue:0},string:{name:"string",wireType:t.WIRE_TYPES.LDELIM,defaultValue:""},bytes:{name:"bytes",wireType:t.WIRE_TYPES.LDELIM,defaultValue:null},fixed32:{name:"fixed32",wireType:t.WIRE_TYPES.BITS32,defaultValue:0},sfixed32:{name:"sfixed32",wireType:t.WIRE_TYPES.BITS32,defaultValue:0},fixed64:{name:"fixed64",wireType:t.WIRE_TYPES.BITS64,defaultValue:t.Long?t.Long.UZERO:void 0},sfixed64:{name:"sfixed64",wireType:t.WIRE_TYPES.BITS64,defaultValue:t.Long?t.Long.ZERO:void 0},float:{name:"float",wireType:t.WIRE_TYPES.BITS32,defaultValue:0},enum:{name:"enum",wireType:t.WIRE_TYPES.VARINT,defaultValue:0},message:{name:"message",wireType:t.WIRE_TYPES.LDELIM,defaultValue:null},group:{name:"group",wireType:t.WIRE_TYPES.STARTGROUP,defaultValue:null}},t.MAP_KEY_TYPES=[t.TYPES.int32,t.TYPES.sint32,t.TYPES.sfixed32,t.TYPES.uint32,t.TYPES.fixed32,t.TYPES.int64,t.TYPES.sint64,t.TYPES.sfixed64,t.TYPES.uint64,t.TYPES.fixed64,t.TYPES.bool,t.TYPES.string,t.TYPES.bytes],t.ID_MIN=1,t.ID_MAX=536870911,t.convertFieldsToCamelCase=!1,t.populateAccessors=!0,t.populateDefaults=!0,t.Util=((e={}).IS_NODE=!("object"!=typeof process||process+""!="[object process]"||process.browser),e.toCamelCase=function(e){return e.replace(/_([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))},e),t.Lang={DELIM:/[\s\{\}=;:\[\],'"\(\)<>]/g,RULE:/^(?:required|optional|repeated|map)$/,TYPE:/^(?:double|float|int32|uint32|sint32|int64|uint64|sint64|fixed32|sfixed32|fixed64|sfixed64|bool|string|bytes)$/,NAME:/^[a-zA-Z_][a-zA-Z_0-9]*$/,TYPEDEF:/^[a-zA-Z][a-zA-Z_0-9]*$/,TYPEREF:/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,FQTYPEREF:/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/,NUMBER:/^-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+|([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?)|inf|nan)$/,NUMBER_DEC:/^(?:[1-9][0-9]*|0)$/,NUMBER_HEX:/^0[xX][0-9a-fA-F]+$/,NUMBER_OCT:/^0[0-7]+$/,NUMBER_FLT:/^([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?|inf|nan)$/,BOOL:/^(?:true|false)$/i,ID:/^(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,STRING_DQ:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,STRING_SQ:/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g},t.DotProto=function(e,t){var i={},r=function(e){this.source=e+"",this.index=0,this.line=1,this.stack=[],this._stringOpen=null},n=r.prototype;n._readString=function(){var e='"'===this._stringOpen?t.STRING_DQ:t.STRING_SQ;e.lastIndex=this.index-1;var i=e.exec(this.source);if(!i)throw Error("unterminated string");return this.index=e.lastIndex,this.stack.push(this._stringOpen),this._stringOpen=null,i[1]},n.next=function(){if(this.stack.length>0)return this.stack.shift();if(this.index>=this.source.length)return null;if(null!==this._stringOpen)return this._readString();var e,i,r;do{for(e=!1;t.WHITESPACE.test(r=this.source.charAt(this.index));)if("\n"===r&&++this.line,++this.index===this.source.length)return null;if("/"===this.source.charAt(this.index))if(++this.index,"/"===this.source.charAt(this.index)){for(;"\n"!==this.source.charAt(++this.index);)if(this.index==this.source.length)return null;++this.index,++this.line,e=!0}else{if("*"!==(r=this.source.charAt(this.index)))return"/";do{if("\n"===r&&++this.line,++this.index===this.source.length)return null;i=r,r=this.source.charAt(this.index)}while("*"!==i||"/"!==r);++this.index,e=!0}}while(e);if(this.index===this.source.length)return null;var n=this.index;if(t.DELIM.lastIndex=0,!t.DELIM.test(this.source.charAt(n++)))for(;n<this.source.length&&!t.DELIM.test(this.source.charAt(n));)++n;var E=this.source.substring(this.index,this.index=n);return'"'!==E&&"'"!==E||(this._stringOpen=E),E},n.peek=function(){if(0===this.stack.length){var e=this.next();if(null===e)return null;this.stack.push(e)}return this.stack[0]},n.skip=function(e){var t=this.next();if(t!==e)throw Error("illegal '"+t+"', '"+e+"' expected")},n.omit=function(e){return this.peek()===e&&(this.next(),!0)},n.toString=function(){return"Tokenizer ("+this.index+"/"+this.source.length+" at line "+this.line+")"},i.Tokenizer=r;var E=function(e){this.tn=new r(e),this.proto3=!1},s=E.prototype;function I(e,i){var r=-1,n=1;if("-"==e.charAt(0)&&(n=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))r=parseInt(e);else if(t.NUMBER_HEX.test(e))r=parseInt(e.substring(2),16);else{if(!t.NUMBER_OCT.test(e))throw Error("illegal id value: "+(n<0?"-":"")+e);r=parseInt(e.substring(1),8)}if(r=n*r|0,!i&&r<0)throw Error("illegal id value: "+(n<0?"-":"")+e);return r}function o(e){var i=1;if("-"==e.charAt(0)&&(i=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))return i*parseInt(e,10);if(t.NUMBER_HEX.test(e))return i*parseInt(e.substring(2),16);if(t.NUMBER_OCT.test(e))return i*parseInt(e.substring(1),8);if("inf"===e)return i*(1/0);if("nan"===e)return NaN;if(t.NUMBER_FLT.test(e))return i*parseFloat(e);throw Error("illegal number value: "+(i<0?"-":"")+e)}function _(e,t,i){void 0===e[t]?e[t]=i:(Array.isArray(e[t])||(e[t]=[e[t]]),e[t].push(i))}return s.parse=function(){var e,i,r={name:"[ROOT]",package:null,messages:[],enums:[],imports:[],options:{},services:[]},n=!0;try{for(;e=this.tn.next();)switch(e){case"package":if(!n||null!==r.package)throw Error("unexpected 'package'");if(e=this.tn.next(),!t.TYPEREF.test(e))throw Error("illegal package name: "+e);this.tn.skip(";"),r.package=e;break;case"import":if(!n)throw Error("unexpected 'import'");("public"===(e=this.tn.peek())||(i="weak"===e))&&this.tn.next(),e=this._readString(),this.tn.skip(";"),i||r.imports.push(e);break;case"syntax":if(!n)throw Error("unexpected 'syntax'");this.tn.skip("="),"proto3"===(r.syntax=this._readString())&&(this.proto3=!0),this.tn.skip(";");break;case"message":this._parseMessage(r,null),n=!1;break;case"enum":this._parseEnum(r),n=!1;break;case"option":this._parseOption(r);break;case"service":this._parseService(r);break;case"extend":this._parseExtend(r);break;default:throw Error("unexpected '"+e+"'")}}catch(e){throw e.message="Parse error at line "+this.tn.line+": "+e.message,e}return delete r.name,r},E.parse=function(e){return new E(e).parse()},s._readString=function(){var e,t,i="";do{if("'"!==(t=this.tn.next())&&'"'!==t)throw Error("illegal string delimiter: "+t);i+=this.tn.next(),this.tn.skip(t),e=this.tn.peek()}while('"'===e||'"'===e);return i},s._readValue=function(e){var i=this.tn.peek();if('"'===i||"'"===i)return this._readString();if(this.tn.next(),t.NUMBER.test(i))return o(i);if(t.BOOL.test(i))return"true"===i.toLowerCase();if(e&&t.TYPEREF.test(i))return i;throw Error("illegal value: "+i)},s._parseOption=function(e,i){var r=this.tn.next(),n=!1;if("("===r&&(n=!0,r=this.tn.next()),!t.TYPEREF.test(r))throw Error("illegal option name: "+r);var E=r;n&&(this.tn.skip(")"),E="("+E+")",r=this.tn.peek(),t.FQTYPEREF.test(r)&&(E+=r,this.tn.next())),this.tn.skip("="),this._parseOptionValue(e,E),i||this.tn.skip(";")},s._parseOptionValue=function(e,i){var r=this.tn.peek();if("{"!==r)_(e.options,i,this._readValue(!0));else for(this.tn.skip("{");"}"!==(r=this.tn.next());){if(!t.NAME.test(r))throw Error("illegal option name: "+i+"."+r);this.tn.omit(":")?_(e.options,i+"."+r,this._readValue(!0)):this._parseOptionValue(e,i+"."+r)}},s._parseService=function(e){var i=this.tn.next();if(!t.NAME.test(i))throw Error("illegal service name at line "+this.tn.line+": "+i);var r={name:i,rpc:{},options:{}};for(this.tn.skip("{");"}"!==(i=this.tn.next());)if("option"===i)this._parseOption(r);else{if("rpc"!==i)throw Error("illegal service token: "+i);this._parseServiceRPC(r)}this.tn.omit(";"),e.services.push(r)},s._parseServiceRPC=function(e){var i="rpc",r=this.tn.next();if(!t.NAME.test(r))throw Error("illegal rpc service method name: "+r);var n=r,E={request:null,response:null,request_stream:!1,response_stream:!1,options:{}};if(this.tn.skip("("),"stream"===(r=this.tn.next()).toLowerCase()&&(E.request_stream=!0,r=this.tn.next()),!t.TYPEREF.test(r))throw Error("illegal rpc service request type: "+r);if(E.request=r,this.tn.skip(")"),"returns"!==(r=this.tn.next()).toLowerCase())throw Error("illegal rpc service request type delimiter: "+r);if(this.tn.skip("("),"stream"===(r=this.tn.next()).toLowerCase()&&(E.response_stream=!0,r=this.tn.next()),E.response=r,this.tn.skip(")"),"{"===(r=this.tn.peek())){for(this.tn.next();"}"!==(r=this.tn.next());){if("option"!==r)throw Error("illegal rpc service token: "+r);this._parseOption(E)}this.tn.omit(";")}else this.tn.skip(";");void 0===e[i]&&(e[i]={}),e[i][n]=E},s._parseMessage=function(e,i){var r=!!i,n=this.tn.next(),E={name:"",fields:[],enums:[],messages:[],options:{},services:[],oneofs:{}};if(!t.NAME.test(n))throw Error("illegal "+(r?"group":"message")+" name: "+n);for(E.name=n,r&&(this.tn.skip("="),i.id=I(this.tn.next()),E.isGroup=!0),"["===(n=this.tn.peek())&&i&&this._parseFieldOptions(i),this.tn.skip("{");"}"!==(n=this.tn.next());)if(t.RULE.test(n))this._parseMessageField(E,n);else if("oneof"===n)this._parseMessageOneOf(E);else if("enum"===n)this._parseEnum(E);else if("message"===n)this._parseMessage(E);else if("option"===n)this._parseOption(E);else if("service"===n)this._parseService(E);else if("extensions"===n)E.hasOwnProperty("extensions")?E.extensions=E.extensions.concat(this._parseExtensionRanges()):E.extensions=this._parseExtensionRanges();else if("reserved"===n)this._parseIgnored();else if("extend"===n)this._parseExtend(E);else{if(!t.TYPEREF.test(n))throw Error("illegal message token: "+n);if(!this.proto3)throw Error("illegal field rule: "+n);this._parseMessageField(E,"optional",n)}return this.tn.omit(";"),e.messages.push(E),E},s._parseIgnored=function(){for(;";"!==this.tn.peek();)this.tn.next();this.tn.skip(";")},s._parseMessageField=function(e,i,r){if(!t.RULE.test(i))throw Error("illegal message field rule: "+i);var n,E={rule:i,type:"",name:"",options:{},id:0};if("map"===i){if(r)throw Error("illegal type: "+r);if(this.tn.skip("<"),n=this.tn.next(),!t.TYPE.test(n)&&!t.TYPEREF.test(n))throw Error("illegal message field type: "+n);if(E.keytype=n,this.tn.skip(","),n=this.tn.next(),!t.TYPE.test(n)&&!t.TYPEREF.test(n))throw Error("illegal message field: "+n);if(E.type=n,this.tn.skip(">"),n=this.tn.next(),!t.NAME.test(n))throw Error("illegal message field name: "+n);E.name=n,this.tn.skip("="),E.id=I(this.tn.next()),"["===(n=this.tn.peek())&&this._parseFieldOptions(E),this.tn.skip(";")}else if("group"===(r=void 0!==r?r:this.tn.next())){var s=this._parseMessage(e,E);if(!/^[A-Z]/.test(s.name))throw Error("illegal group name: "+s.name);E.type=s.name,E.name=s.name.toLowerCase(),this.tn.omit(";")}else{if(!t.TYPE.test(r)&&!t.TYPEREF.test(r))throw Error("illegal message field type: "+r);if(E.type=r,n=this.tn.next(),!t.NAME.test(n))throw Error("illegal message field name: "+n);E.name=n,this.tn.skip("="),E.id=I(this.tn.next()),"["===(n=this.tn.peek())&&this._parseFieldOptions(E),this.tn.skip(";")}return e.fields.push(E),E},s._parseMessageOneOf=function(e){var i=this.tn.next();if(!t.NAME.test(i))throw Error("illegal oneof name: "+i);var r,n=i,E=[];for(this.tn.skip("{");"}"!==(i=this.tn.next());)(r=this._parseMessageField(e,"optional",i)).oneof=n,E.push(r.id);this.tn.omit(";"),e.oneofs[n]=E},s._parseFieldOptions=function(e){this.tn.skip("[");for(var t=!0;"]"!==this.tn.peek();)t||this.tn.skip(","),this._parseOption(e,!0),t=!1;this.tn.next()},s._parseEnum=function(e){var i={name:"",values:[],options:{}},r=this.tn.next();if(!t.NAME.test(r))throw Error("illegal name: "+r);for(i.name=r,this.tn.skip("{");"}"!==(r=this.tn.next());)if("option"===r)this._parseOption(i);else{if(!t.NAME.test(r))throw Error("illegal name: "+r);this.tn.skip("=");var n={name:r,id:I(this.tn.next(),!0)};"["===(r=this.tn.peek())&&this._parseFieldOptions({options:{}}),this.tn.skip(";"),i.values.push(n)}this.tn.omit(";"),e.enums.push(i)},s._parseExtensionRanges=function(){var t,i,r,n=[];do{for(i=[];;){switch(t=this.tn.next()){case"min":r=e.ID_MIN;break;case"max":r=e.ID_MAX;break;default:r=o(t)}if(i.push(r),2===i.length)break;if("to"!==this.tn.peek()){i.push(r);break}this.tn.next()}n.push(i)}while(this.tn.omit(","));return this.tn.skip(";"),n},s._parseExtend=function(e){var i=this.tn.next();if(!t.TYPEREF.test(i))throw Error("illegal extend reference: "+i);var r={ref:i,fields:[]};for(this.tn.skip("{");"}"!==(i=this.tn.next());)if(t.RULE.test(i))this._parseMessageField(r,i);else{if(!t.TYPEREF.test(i))throw Error("illegal extend token: "+i);if(!this.proto3)throw Error("illegal field rule: "+i);this._parseMessageField(r,"optional",i)}return this.tn.omit(";"),e.messages.push(r),r},s.toString=function(){return"Parser at line "+this.tn.line},i.Parser=E,i}(t,t.Lang),t.Reflect=function(e){var t={},r=function(e,t,i){this.builder=e,this.parent=t,this.name=i,this.className},n=r.prototype;n.fqn=function(){for(var e=this.name,t=this;;){if(null==(t=t.parent))break;e=t.name+"."+e}return e},n.toString=function(e){return(e?this.className+" ":"")+this.fqn()},n.build=function(){throw Error(this.toString(!0)+" cannot be built directly")},t.T=r;var E=function(e,t,i,n,E){r.call(this,e,t,i),this.className="Namespace",this.children=[],this.options=n||{},this.syntax=E||"proto2"},s=E.prototype=Object.create(r.prototype);s.getChildren=function(e){if(null==(e=e||null))return this.children.slice();for(var t=[],i=0,r=this.children.length;i<r;++i)this.children[i]instanceof e&&t.push(this.children[i]);return t},s.addChild=function(e){var t;if(t=this.getChild(e.name))if(t instanceof a.Field&&t.name!==t.originalName&&null===this.getChild(t.originalName))t.name=t.originalName;else{if(!(e instanceof a.Field&&e.name!==e.originalName&&null===this.getChild(e.originalName)))throw Error("Duplicate name in namespace "+this.toString(!0)+": "+e.name);e.name=e.originalName}this.children.push(e)},s.getChild=function(e){for(var t="number"==typeof e?"id":"name",i=0,r=this.children.length;i<r;++i)if(this.children[i][t]===e)return this.children[i];return null},s.resolve=function(e,i){var r,n="string"==typeof e?e.split("."):e,E=this,s=0;if(""===n[s]){for(;null!==E.parent;)E=E.parent;s++}do{do{if(!(E instanceof t.Namespace)){E=null;break}if(!(r=E.getChild(n[s]))||!(r instanceof t.T)||i&&!(r instanceof t.Namespace)){E=null;break}E=r,s++}while(s<n.length);if(null!=E)break;if(null!==this.parent)return this.parent.resolve(e,i)}while(null!=E);return E},s.qn=function(e){var i=[],r=e;do{i.unshift(r.name),r=r.parent}while(null!==r);for(var n=1;n<=i.length;n++){var E=i.slice(i.length-n);if(e===this.resolve(E,e instanceof t.Namespace))return E.join(".")}return e.fqn()},s.build=function(){for(var e,t={},i=this.children,r=0,n=i.length;r<n;++r)(e=i[r])instanceof E&&(t[e.name]=e.build());return Object.defineProperty&&Object.defineProperty(t,"$options",{value:this.buildOpt()}),t},s.buildOpt=function(){for(var e={},t=Object.keys(this.options),i=0,r=t.length;i<r;++i){var n=t[i],E=this.options[t[i]];e[n]=E}return e},s.getOption=function(e){return void 0===e?this.options:void 0!==this.options[e]?this.options[e]:null},t.Namespace=E;var I=function(t,i,r,n,E){if(this.type=t,this.resolvedType=i,this.isMapKey=r,this.syntax=n,this.name=E,r&&e.MAP_KEY_TYPES.indexOf(t)<0)throw Error("Invalid map key type: "+t.name)},o=I.prototype;function _(t,i){if(t&&"number"==typeof t.low&&"number"==typeof t.high&&"boolean"==typeof t.unsigned&&t.low==t.low&&t.high==t.high)return new e.Long(t.low,t.high,void 0===i?t.unsigned:i);if("string"==typeof t)return e.Long.fromString(t,i||!1,10);if("number"==typeof t)return e.Long.fromNumber(t,i||!1);throw Error("not convertible to Long")}I.defaultFieldValue=function(t){if("string"==typeof t&&(t=e.TYPES[t]),void 0===t.defaultValue)throw Error("default value for type "+t.name+" is not supported");return t==e.TYPES.bytes?new i(0):t.defaultValue},o.toString=function(){return(this.name||"")+(this.isMapKey?"map":"value")+" element"},o.verifyValue=function(t){var r=this;function n(e,t){throw Error("Illegal value for "+r.toString(!0)+" of type "+r.type.name+": "+e+" ("+t+")")}switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:return("number"!=typeof t||t==t&&t%1!=0)&&n(typeof t,"not an integer"),t>4294967295?0|t:t;case e.TYPES.uint32:case e.TYPES.fixed32:return("number"!=typeof t||t==t&&t%1!=0)&&n(typeof t,"not an integer"),t<0?t>>>0:t;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:if(e.Long)try{return _(t,!1)}catch(e){n(typeof t,e.message)}else n(typeof t,"requires Long.js");case e.TYPES.uint64:case e.TYPES.fixed64:if(e.Long)try{return _(t,!0)}catch(e){n(typeof t,e.message)}else n(typeof t,"requires Long.js");case e.TYPES.bool:return"boolean"!=typeof t&&n(typeof t,"not a boolean"),t;case e.TYPES.float:case e.TYPES.double:return"number"!=typeof t&&n(typeof t,"not a number"),t;case e.TYPES.string:return"string"==typeof t||t&&t instanceof String||n(typeof t,"not a string"),""+t;case e.TYPES.bytes:return i.isByteBuffer(t)?t:i.wrap(t,"base64");case e.TYPES.enum:var E=this.resolvedType.getChildren(e.Reflect.Enum.Value);for(I=0;I<E.length;I++){if(E[I].name==t)return E[I].id;if(E[I].id==t)return E[I].id}if("proto3"===this.syntax)return("number"!=typeof t||t==t&&t%1!=0)&&n(typeof t,"not an integer"),(t>4294967295||t<0)&&n(typeof t,"not in range for uint32"),t;n(t,"not a valid enum value");case e.TYPES.group:case e.TYPES.message:if(t&&"object"==typeof t||n(typeof t,"object expected"),t instanceof this.resolvedType.clazz)return t;if(t instanceof e.Builder.Message){var s={};for(var I in t)t.hasOwnProperty(I)&&(s[I]=t[I]);t=s}return new this.resolvedType.clazz(t)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+t+" (undefined type "+this.type+")")},o.calculateLength=function(t,r){if(null===r)return 0;var n;switch(this.type){case e.TYPES.int32:return r<0?i.calculateVarint64(r):i.calculateVarint32(r);case e.TYPES.uint32:return i.calculateVarint32(r);case e.TYPES.sint32:return i.calculateVarint32(i.zigZagEncode32(r));case e.TYPES.fixed32:case e.TYPES.sfixed32:case e.TYPES.float:return 4;case e.TYPES.int64:case e.TYPES.uint64:return i.calculateVarint64(r);case e.TYPES.sint64:return i.calculateVarint64(i.zigZagEncode64(r));case e.TYPES.fixed64:case e.TYPES.sfixed64:return 8;case e.TYPES.bool:return 1;case e.TYPES.enum:return i.calculateVarint32(r);case e.TYPES.double:return 8;case e.TYPES.string:return n=i.calculateUTF8Bytes(r),i.calculateVarint32(n)+n;case e.TYPES.bytes:if(r.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+r.remaining()+" bytes remaining");return i.calculateVarint32(r.remaining())+r.remaining();case e.TYPES.message:return n=this.resolvedType.calculate(r),i.calculateVarint32(n)+n;case e.TYPES.group:return(n=this.resolvedType.calculate(r))+i.calculateVarint32(t<<3|e.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+r+" (unknown type)")},o.encodeValue=function(t,r,n){if(null===r)return n;switch(this.type){case e.TYPES.int32:r<0?n.writeVarint64(r):n.writeVarint32(r);break;case e.TYPES.uint32:n.writeVarint32(r);break;case e.TYPES.sint32:n.writeVarint32ZigZag(r);break;case e.TYPES.fixed32:n.writeUint32(r);break;case e.TYPES.sfixed32:n.writeInt32(r);break;case e.TYPES.int64:case e.TYPES.uint64:n.writeVarint64(r);break;case e.TYPES.sint64:n.writeVarint64ZigZag(r);break;case e.TYPES.fixed64:n.writeUint64(r);break;case e.TYPES.sfixed64:n.writeInt64(r);break;case e.TYPES.bool:"string"==typeof r?n.writeVarint32("false"===r.toLowerCase()?0:!!r):n.writeVarint32(r?1:0);break;case e.TYPES.enum:n.writeVarint32(r);break;case e.TYPES.float:n.writeFloat32(r);break;case e.TYPES.double:n.writeFloat64(r);break;case e.TYPES.string:n.writeVString(r);break;case e.TYPES.bytes:if(r.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+r.remaining()+" bytes remaining");var E=r.offset;n.writeVarint32(r.remaining()),n.append(r),r.offset=E;break;case e.TYPES.message:var s=(new i).LE();this.resolvedType.encode(r,s),n.writeVarint32(s.offset),n.append(s.flip());break;case e.TYPES.group:this.resolvedType.encode(r,n),n.writeVarint32(t<<3|e.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+r+" (unknown type)")}return n},o.decode=function(t,i,r){if(i!=this.type.wireType)throw Error("Unexpected wire type for element");var n,E;switch(this.type){case e.TYPES.int32:return 0|t.readVarint32();case e.TYPES.uint32:return t.readVarint32()>>>0;case e.TYPES.sint32:return 0|t.readVarint32ZigZag();case e.TYPES.fixed32:return t.readUint32()>>>0;case e.TYPES.sfixed32:return 0|t.readInt32();case e.TYPES.int64:return t.readVarint64();case e.TYPES.uint64:return t.readVarint64().toUnsigned();case e.TYPES.sint64:return t.readVarint64ZigZag();case e.TYPES.fixed64:return t.readUint64();case e.TYPES.sfixed64:return t.readInt64();case e.TYPES.bool:return!!t.readVarint32();case e.TYPES.enum:return t.readVarint32();case e.TYPES.float:return t.readFloat();case e.TYPES.double:return t.readDouble();case e.TYPES.string:return t.readVString();case e.TYPES.bytes:if(E=t.readVarint32(),t.remaining()<E)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+E+" required but got only "+t.remaining());return(n=t.clone()).limit=n.offset+E,t.offset+=E,n;case e.TYPES.message:return E=t.readVarint32(),this.resolvedType.decode(t,E);case e.TYPES.group:return this.resolvedType.decode(t,-1,r)}throw Error("[INTERNAL] Illegal decode type")},o.valueFromString=function(t){if(!this.isMapKey)throw Error("valueFromString() called on non-map-key element");switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return this.verifyValue(parseInt(t));case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return this.verifyValue(t);case e.TYPES.bool:return"true"===t;case e.TYPES.string:return this.verifyValue(t);case e.TYPES.bytes:return i.fromBinary(t)}},o.valueToString=function(t){if(!this.isMapKey)throw Error("valueToString() called on non-map-key element");return this.type===e.TYPES.bytes?t.toString("binary"):t.toString()},t.Element=I;var a=function(e,t,i,r,n,s){E.call(this,e,t,i,r,s),this.className="Message",this.extensions=void 0,this.clazz=null,this.isGroup=!!n,this._fields=null,this._fieldsById=null,this._fieldsByName=null},R=a.prototype=Object.create(E.prototype);function f(t,i){var r=i.readVarint32(),n=7&r,E=r>>>3;switch(n){case e.WIRE_TYPES.VARINT:do{r=i.readUint8()}while(!(128&~r));break;case e.WIRE_TYPES.BITS64:i.offset+=8;break;case e.WIRE_TYPES.LDELIM:r=i.readVarint32(),i.offset+=r;break;case e.WIRE_TYPES.STARTGROUP:f(E,i);break;case e.WIRE_TYPES.ENDGROUP:if(E===t)return!1;throw Error("Illegal GROUPEND after unknown group: "+E+" ("+t+" expected)");case e.WIRE_TYPES.BITS32:i.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+t+": "+n)}return!0}R.build=function(t){if(this.clazz&&!t)return this.clazz;var r=function(e,t){var r=t.getChildren(e.Reflect.Message.Field),n=t.getChildren(e.Reflect.Message.OneOf),E=function(s,I){e.Builder.Message.call(this);for(var o=0,_=n.length;o<_;++o)this[n[o].name]=null;for(o=0,_=r.length;o<_;++o){var a=r[o];this[a.name]=a.repeated?[]:a.map?new e.Map(a):null,!a.required&&"proto3"!==t.syntax||null===a.defaultValue||(this[a.name]=a.defaultValue)}var R;if(arguments.length>0)if(1!==arguments.length||null===s||"object"!=typeof s||!("function"!=typeof s.encode||s instanceof E)||Array.isArray(s)||s instanceof e.Map||i.isByteBuffer(s)||s instanceof ArrayBuffer||e.Long&&s instanceof e.Long)for(o=0,_=arguments.length;o<_;++o)void 0!==(R=arguments[o])&&this.$set(r[o].name,R);else this.$set(s)},s=E.prototype=Object.create(e.Builder.Message.prototype);s.add=function(i,r,n){var E=t._fieldsByName[i];if(!n){if(!E)throw Error(this+"#"+i+" is undefined");if(!(E instanceof e.Reflect.Message.Field))throw Error(this+"#"+i+" is not a field: "+E.toString(!0));if(!E.repeated)throw Error(this+"#"+i+" is not a repeated field");r=E.verifyValue(r,!0)}return null===this[i]&&(this[i]=[]),this[i].push(r),this},s.$add=s.add,s.set=function(i,r,n){if(i&&"object"==typeof i){for(var E in n=r,i)i.hasOwnProperty(E)&&void 0!==(r=i[E])&&void 0===t._oneofsByName[E]&&this.$set(E,r,n);return this}var s=t._fieldsByName[i];if(n)this[i]=r;else{if(!s)throw Error(this+"#"+i+" is not a field: undefined");if(!(s instanceof e.Reflect.Message.Field))throw Error(this+"#"+i+" is not a field: "+s.toString(!0));this[s.name]=r=s.verifyValue(r)}if(s&&s.oneof){var I=this[s.oneof.name];null!==r?(null!==I&&I!==s.name&&(this[I]=null),this[s.oneof.name]=s.name):I===i&&(this[s.oneof.name]=null)}return this},s.$set=s.set,s.get=function(i,r){if(r)return this[i];var n=t._fieldsByName[i];if(!(n&&n instanceof e.Reflect.Message.Field))throw Error(this+"#"+i+" is not a field: undefined");if(!(n instanceof e.Reflect.Message.Field))throw Error(this+"#"+i+" is not a field: "+n.toString(!0));return this[n.name]},s.$get=s.get;for(var I=0;I<r.length;I++){var o=r[I];o instanceof e.Reflect.Message.ExtensionField||t.builder.options.populateAccessors&&function(e){var i=e.originalName.replace(/(_[a-zA-Z])/g,(function(e){return e.toUpperCase().replace("_","")}));i=i.substring(0,1).toUpperCase()+i.substring(1);var r=e.originalName.replace(/([A-Z])/g,(function(e){return"_"+e})),n=function(t,i){return this[e.name]=i?t:e.verifyValue(t),this},E=function(){return this[e.name]};null===t.getChild("set"+i)&&(s["set"+i]=n),null===t.getChild("set_"+r)&&(s["set_"+r]=n),null===t.getChild("get"+i)&&(s["get"+i]=E),null===t.getChild("get_"+r)&&(s["get_"+r]=E)}(o)}function _(t,r,n,E){if(null===t||"object"!=typeof t){if(E&&E instanceof e.Reflect.Enum){var s=e.Reflect.Enum.getName(E.object,t);if(null!==s)return s}return t}if(i.isByteBuffer(t))return r?t.toBase64():t.toBuffer();if(e.Long.isLong(t))return n?t.toString():e.Long.fromValue(t);var I;if(Array.isArray(t))return I=[],t.forEach((function(e,t){I[t]=_(e,r,n,E)})),I;if(I={},t instanceof e.Map){for(var o=t.entries(),a=o.next();!a.done;a=o.next())I[t.keyElem.valueToString(a.value[0])]=_(a.value[1],r,n,t.valueElem.resolvedType);return I}var R=t.$type,f=void 0;for(var h in t)t.hasOwnProperty(h)&&(R&&(f=R.getChild(h))?I[h]=_(t[h],r,n,f.resolvedType):I[h]=_(t[h],r,n));return I}return s.encode=function(e,r){"boolean"==typeof e&&(r=e,e=void 0);var n=!1;e||(e=new i,n=!0);var E=e.littleEndian;try{return t.encode(this,e.LE(),r),(n?e.flip():e).LE(E)}catch(t){throw e.LE(E),t}},E.encode=function(e,t,i){return new E(e).encode(t,i)},s.calculate=function(){return t.calculate(this)},s.encodeDelimited=function(e,r){var n=!1;e||(e=new i,n=!0);var E=(new i).LE();return t.encode(this,E,r).flip(),e.writeVarint32(E.remaining()),e.append(E),n?e.flip():e},s.encodeAB=function(){try{return this.encode().toArrayBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toArrayBuffer()),e}},s.toArrayBuffer=s.encodeAB,s.encodeNB=function(){try{return this.encode().toBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBuffer()),e}},s.toBuffer=s.encodeNB,s.encode64=function(){try{return this.encode().toBase64()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBase64()),e}},s.toBase64=s.encode64,s.encodeHex=function(){try{return this.encode().toHex()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toHex()),e}},s.toHex=s.encodeHex,s.toRaw=function(e,t){return _(this,!!e,!!t,this.$type)},s.encodeJSON=function(){return JSON.stringify(_(this,!0,!0,this.$type))},E.decode=function(e,r,n){"string"==typeof r&&(n=r,r=-1),"string"==typeof e?e=i.wrap(e,n||"base64"):i.isByteBuffer(e)||(e=i.wrap(e));var E=e.littleEndian;try{var s=t.decode(e.LE(),r);return e.LE(E),s}catch(t){throw e.LE(E),t}},E.decodeDelimited=function(e,r){if("string"==typeof e?e=i.wrap(e,r||"base64"):i.isByteBuffer(e)||(e=i.wrap(e)),e.remaining()<1)return null;var n=e.offset,E=e.readVarint32();if(e.remaining()<E)return e.offset=n,null;try{var s=t.decode(e.slice(e.offset,e.offset+E).LE());return e.offset+=E,s}catch(t){throw e.offset+=E,t}},E.decode64=function(e){return E.decode(e,"base64")},E.decodeHex=function(e){return E.decode(e,"hex")},E.decodeJSON=function(e){return new E(JSON.parse(e))},s.toString=function(){return t.toString()},Object.defineProperty&&(Object.defineProperty(E,"$options",{value:t.buildOpt()}),Object.defineProperty(s,"$options",{value:E.$options}),Object.defineProperty(E,"$type",{value:t}),Object.defineProperty(s,"$type",{value:t})),E}(e,this);this._fields=[],this._fieldsById={},this._fieldsByName={},this._oneofsByName={};for(var n,E=0,s=this.children.length;E<s;E++)if((n=this.children[E])instanceof A||n instanceof a||n instanceof O){if(r.hasOwnProperty(n.name))throw Error("Illegal reflect child of "+this.toString(!0)+": "+n.toString(!0)+" cannot override static property '"+n.name+"'");r[n.name]=n.build()}else if(n instanceof a.Field)n.build(),this._fields.push(n),this._fieldsById[n.id]=n,this._fieldsByName[n.name]=n;else if(n instanceof a.OneOf)this._oneofsByName[n.name]=n;else if(!(n instanceof a.OneOf||n instanceof N))throw Error("Illegal reflect child of "+this.toString(!0)+": "+this.children[E].toString(!0));return this.clazz=r},R.encode=function(e,t,i){for(var r,n,E=null,s=0,I=this._fields.length;s<I;++s)n=e[(r=this._fields[s]).name],r.required&&null===n?null===E&&(E=r):r.encode(i?n:r.verifyValue(n),t,e);if(null!==E){var o=Error("Missing at least one required field for "+this.toString(!0)+": "+E);throw o.encoded=t,o}return t},R.calculate=function(e){for(var t,i,r=0,n=0,E=this._fields.length;n<E;++n){if(i=e[(t=this._fields[n]).name],t.required&&null===i)throw Error("Missing at least one required field for "+this.toString(!0)+": "+t);r+=t.calculate(i,e)}return r},R.decode=function(t,i,r){"number"!=typeof i&&(i=-1);for(var n,E,s,I,o=t.offset,_=new this.clazz;t.offset<o+i||-1===i&&t.remaining()>0;){if(s=(n=t.readVarint32())>>>3,(E=7&n)===e.WIRE_TYPES.ENDGROUP){if(s!==r)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+s+" ("+(r?r+" expected":"not a group")+")");break}if(I=this._fieldsById[s]){if(I.repeated&&!I.options.packed)_[I.name].push(I.decode(E,t));else if(I.map){var a=I.decode(E,t);_[I.name].set(a[0],a[1])}else if(_[I.name]=I.decode(E,t),I.oneof){var R=_[I.oneof.name];null!==R&&R!==I.name&&(_[R]=null),_[I.oneof.name]=I.name}}else switch(E){case e.WIRE_TYPES.VARINT:t.readVarint32();break;case e.WIRE_TYPES.BITS32:t.offset+=4;break;case e.WIRE_TYPES.BITS64:t.offset+=8;break;case e.WIRE_TYPES.LDELIM:var h=t.readVarint32();t.offset+=h;break;case e.WIRE_TYPES.STARTGROUP:for(;f(s,t););break;default:throw Error("Illegal wire type for unknown field "+s+" in "+this.toString(!0)+"#decode: "+E)}}for(var l=0,T=this._fields.length;l<T;++l)if(null===_[(I=this._fields[l]).name])if("proto3"===this.syntax)_[I.name]=I.defaultValue;else{if(I.required){var A=Error("Missing at least one required field for "+this.toString(!0)+": "+I.name);throw A.decoded=_,A}e.populateDefaults&&null!==I.defaultValue&&(_[I.name]=I.defaultValue)}return _},t.Message=a;var h=function(t,i,n,E,s,I,o,_,R,f){r.call(this,t,i,I),this.className="Message.Field",this.required="required"===n,this.repeated="repeated"===n,this.map="map"===n,this.keyType=E||null,this.type=s,this.resolvedType=null,this.id=o,this.options=_||{},this.defaultValue=null,this.oneof=R||null,this.syntax=f||"proto2",this.originalName=this.name,this.element=null,this.keyElement=null,!this.builder.options.convertFieldsToCamelCase||this instanceof a.ExtensionField||(this.name=e.Util.toCamelCase(this.name))},l=h.prototype=Object.create(r.prototype);l.build=function(){this.element=new I(this.type,this.resolvedType,!1,this.syntax,this.name),this.map&&(this.keyElement=new I(this.keyType,void 0,!0,this.syntax,this.name)),"proto3"!==this.syntax||this.repeated||this.map?void 0!==this.options.default&&(this.defaultValue=this.verifyValue(this.options.default)):this.defaultValue=I.defaultFieldValue(this.type)},l.verifyValue=function(t,i){i=i||!1;var r,n=this;function E(e,t){throw Error("Illegal value for "+n.toString(!0)+" of type "+n.type.name+": "+e+" ("+t+")")}if(null===t)return this.required&&E(typeof t,"required"),"proto3"===this.syntax&&this.type!==e.TYPES.message&&E(typeof t,"proto3 field without field presence cannot be null"),null;if(this.repeated&&!i){Array.isArray(t)||(t=[t]);var s=[];for(r=0;r<t.length;r++)s.push(this.element.verifyValue(t[r]));return s}return this.map&&!i?t instanceof e.Map?t:(t instanceof Object||E(typeof t,"expected ProtoBuf.Map or raw object for map field"),new e.Map(this,t)):(!this.repeated&&Array.isArray(t)&&E(typeof t,"no array expected"),this.element.verifyValue(t))},l.hasWirePresence=function(t,i){if("proto3"!==this.syntax)return null!==t;if(this.oneof&&i[this.oneof.name]===this.name)return!0;switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return 0!==t;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return 0!==t.low||0!==t.high;case e.TYPES.bool:return t;case e.TYPES.float:case e.TYPES.double:return 0!==t;case e.TYPES.string:return t.length>0;case e.TYPES.bytes:return t.remaining()>0;case e.TYPES.enum:return 0!==t;case e.TYPES.message:return null!==t;default:return!0}},l.encode=function(t,r,n){if(null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return r;try{var E;if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){r.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),r.ensureCapacity(r.offset+=1);var s=r.offset;for(E=0;E<t.length;E++)this.element.encodeValue(this.id,t[E],r);var I=r.offset-s,o=i.calculateVarint32(I);if(o>1){var _=r.slice(s,r.offset);s+=o-1,r.offset=s,r.append(_)}r.writeVarint32(I,s-o)}else for(E=0;E<t.length;E++)r.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t[E],r);else this.map?t.forEach((function(t,n,E){var s=i.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,n)+i.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);r.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),r.writeVarint32(s),r.writeVarint32(8|this.keyType.wireType),this.keyElement.encodeValue(1,n,r),r.writeVarint32(16|this.type.wireType),this.element.encodeValue(2,t,r)}),this):this.hasWirePresence(t,n)&&(r.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t,r))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return r},l.calculate=function(t,r){if(t=this.verifyValue(t),null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return 0;var n=0;try{var E,s;if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(n+=i.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),s=0,E=0;E<t.length;E++)s+=this.element.calculateLength(this.id,t[E]);n+=i.calculateVarint32(s),n+=s}else for(E=0;E<t.length;E++)n+=i.calculateVarint32(this.id<<3|this.type.wireType),n+=this.element.calculateLength(this.id,t[E]);else this.map?t.forEach((function(t,r,E){var s=i.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,r)+i.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);n+=i.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),n+=i.calculateVarint32(s),n+=s}),this):this.hasWirePresence(t,r)&&(n+=i.calculateVarint32(this.id<<3|this.type.wireType),n+=this.element.calculateLength(this.id,t))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return n},l.decode=function(t,i,r){var n,E;if(!(!this.map&&t==this.type.wireType||!r&&this.repeated&&this.options.packed&&t==e.WIRE_TYPES.LDELIM||this.map&&t==e.WIRE_TYPES.LDELIM))throw Error("Illegal wire type for field "+this.toString(!0)+": "+t+" ("+this.type.wireType+" expected)");if(t==e.WIRE_TYPES.LDELIM&&this.repeated&&this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0&&!r){E=i.readVarint32(),E=i.offset+E;for(var s=[];i.offset<E;)s.push(this.decode(this.type.wireType,i,!0));return s}if(this.map){var o=I.defaultFieldValue(this.keyType);if(n=I.defaultFieldValue(this.type),E=i.readVarint32(),i.remaining()<E)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+E+" required but got only "+i.remaining());var _=i.clone();for(_.limit=_.offset+E,i.offset+=E;_.remaining()>0;){var a=_.readVarint32();t=7&a;var R=a>>>3;if(1===R)o=this.keyElement.decode(_,t,R);else{if(2!==R)throw Error("Unexpected tag in map field key/value submessage");n=this.element.decode(_,t,R)}}return[o,n]}return this.element.decode(i,t,this.id)},t.Message.Field=h;var T=function(e,t,i,r,n,E,s){h.call(this,e,t,i,null,r,n,E,s),this.extension};T.prototype=Object.create(h.prototype),t.Message.ExtensionField=T;t.Message.OneOf=function(e,t,i){r.call(this,e,t,i),this.fields=[]};var A=function(e,t,i,r,n){E.call(this,e,t,i,r,n),this.className="Enum",this.object=null};A.getName=function(e,t){for(var i,r=Object.keys(e),n=0;n<r.length;++n)if(e[i=r[n]]===t)return i;return null},(A.prototype=Object.create(E.prototype)).build=function(t){if(this.object&&!t)return this.object;for(var i=new e.Builder.Enum,r=this.getChildren(A.Value),n=0,E=r.length;n<E;++n)i[r[n].name]=r[n].id;return Object.defineProperty&&Object.defineProperty(i,"$options",{value:this.buildOpt(),enumerable:!1}),this.object=i},t.Enum=A;var u=function(e,t,i,n){r.call(this,e,t,i),this.className="Enum.Value",this.id=n};u.prototype=Object.create(r.prototype),t.Enum.Value=u;var N=function(e,t,i,n){r.call(this,e,t,i),this.field=n};N.prototype=Object.create(r.prototype),t.Extension=N;var O=function(e,t,i,r){E.call(this,e,t,i,r),this.className="Service",this.clazz=null};(O.prototype=Object.create(E.prototype)).build=function(t){return this.clazz&&!t?this.clazz:this.clazz=function(e,t){for(var r=function(t){e.Builder.Service.call(this),this.rpcImpl=t||function(e,t,i){setTimeout(i.bind(this,Error("Not implemented, see: https://github.com/dcodeIO/ProtoBuf.js/wiki/Services")),0)}},n=r.prototype=Object.create(e.Builder.Service.prototype),E=t.getChildren(e.Reflect.Service.RPCMethod),s=0;s<E.length;s++)!function(e){n[e.name]=function(r,n){try{try{r=e.resolvedRequestType.clazz.decode(i.wrap(r))}catch(e){if(!(e instanceof TypeError))throw e}if(null===r||"object"!=typeof r)throw Error("Illegal arguments");r instanceof e.resolvedRequestType.clazz||(r=new e.resolvedRequestType.clazz(r)),this.rpcImpl(e.fqn(),r,(function(i,r){if(i)n(i);else{null===r&&(r="");try{r=e.resolvedResponseType.clazz.decode(r)}catch(e){}r&&r instanceof e.resolvedResponseType.clazz?n(null,r):n(Error("Illegal response type received in service method "+t.name+"#"+e.name))}}))}catch(e){setTimeout(n.bind(this,e),0)}},r[e.name]=function(t,i,n){new r(t)[e.name](i,n)},Object.defineProperty&&(Object.defineProperty(r[e.name],"$options",{value:e.buildOpt()}),Object.defineProperty(n[e.name],"$options",{value:r[e.name].$options}))}(E[s]);return Object.defineProperty&&(Object.defineProperty(r,"$options",{value:t.buildOpt()}),Object.defineProperty(n,"$options",{value:r.$options}),Object.defineProperty(r,"$type",{value:t}),Object.defineProperty(n,"$type",{value:t})),r}(e,this)},t.Service=O;var S=function(e,t,i,n){r.call(this,e,t,i),this.className="Service.Method",this.options=n||{}};(S.prototype=Object.create(r.prototype)).buildOpt=s.buildOpt,t.Service.Method=S;var M=function(e,t,i,r,n,E,s,I){S.call(this,e,t,i,I),this.className="Service.RPCMethod",this.requestName=r,this.responseName=n,this.requestStream=E,this.responseStream=s,this.resolvedRequestType=null,this.resolvedResponseType=null};return M.prototype=Object.create(S.prototype),t.Service.RPCMethod=M,t}(t),t.Builder=function(e,t,i){var r=function(e){this.ns=new i.Namespace(this,null,""),this.ptr=this.ns,this.resolved=!1,this.result=null,this.files={},this.importRoot=null,this.options=e||{}},n=r.prototype;function E(e){e.messages&&e.messages.forEach((function(t){t.syntax=e.syntax,E(t)})),e.enums&&e.enums.forEach((function(t){t.syntax=e.syntax}))}return r.isMessage=function(e){return"string"==typeof e.name&&(void 0===e.values&&void 0===e.rpc)},r.isMessageField=function(e){return"string"==typeof e.rule&&"string"==typeof e.name&&"string"==typeof e.type&&void 0!==e.id},r.isEnum=function(e){return"string"==typeof e.name&&!(void 0===e.values||!Array.isArray(e.values)||0===e.values.length)},r.isService=function(e){return!("string"!=typeof e.name||"object"!=typeof e.rpc||!e.rpc)},r.isExtend=function(e){return"string"==typeof e.ref},n.reset=function(){return this.ptr=this.ns,this},n.define=function(e){if("string"!=typeof e||!t.TYPEREF.test(e))throw Error("illegal namespace: "+e);return e.split(".").forEach((function(e){var t=this.ptr.getChild(e);null===t&&this.ptr.addChild(t=new i.Namespace(this,this.ptr,e)),this.ptr=t}),this),this},n.create=function(t){if(!t)return this;if(Array.isArray(t)){if(0===t.length)return this;t=t.slice()}else t=[t];for(var n=[t];n.length>0;){if(t=n.pop(),!Array.isArray(t))throw Error("not a valid namespace: "+JSON.stringify(t));for(;t.length>0;){var E=t.shift();if(r.isMessage(E)){var s=new i.Message(this,this.ptr,E.name,E.options,E.isGroup,E.syntax),I={};E.oneofs&&Object.keys(E.oneofs).forEach((function(e){s.addChild(I[e]=new i.Message.OneOf(this,s,e))}),this),E.fields&&E.fields.forEach((function(e){if(null!==s.getChild(0|e.id))throw Error("duplicate or invalid field id in "+s.name+": "+e.id);if(e.options&&"object"!=typeof e.options)throw Error("illegal field options in "+s.name+"#"+e.name);var t=null;if("string"==typeof e.oneof&&!(t=I[e.oneof]))throw Error("illegal oneof in "+s.name+"#"+e.name+": "+e.oneof);e=new i.Message.Field(this,s,e.rule,e.keytype,e.type,e.name,e.id,e.options,t,E.syntax),t&&t.fields.push(e),s.addChild(e)}),this);var o=[];if(E.enums&&E.enums.forEach((function(e){o.push(e)})),E.messages&&E.messages.forEach((function(e){o.push(e)})),E.services&&E.services.forEach((function(e){o.push(e)})),E.extensions&&("number"==typeof E.extensions[0]?s.extensions=[E.extensions]:s.extensions=E.extensions),this.ptr.addChild(s),o.length>0){n.push(t),t=o,o=null,this.ptr=s,s=null;continue}o=null}else if(r.isEnum(E))s=new i.Enum(this,this.ptr,E.name,E.options,E.syntax),E.values.forEach((function(e){s.addChild(new i.Enum.Value(this,s,e.name,e.id))}),this),this.ptr.addChild(s);else if(r.isService(E))s=new i.Service(this,this.ptr,E.name,E.options),Object.keys(E.rpc).forEach((function(e){var t=E.rpc[e];s.addChild(new i.Service.RPCMethod(this,s,e,t.request,t.response,!!t.request_stream,!!t.response_stream,t.options))}),this),this.ptr.addChild(s);else{if(!r.isExtend(E))throw Error("not a valid definition: "+JSON.stringify(E));if(s=this.ptr.resolve(E.ref,!0))E.fields.forEach((function(t){if(null!==s.getChild(0|t.id))throw Error("duplicate extended field id in "+s.name+": "+t.id);if(s.extensions){var r=!1;if(s.extensions.forEach((function(e){t.id>=e[0]&&t.id<=e[1]&&(r=!0)})),!r)throw Error("illegal extended field id in "+s.name+": "+t.id+" (not within valid ranges)")}var n=t.name;this.options.convertFieldsToCamelCase&&(n=e.Util.toCamelCase(n));var E=new i.Message.ExtensionField(this,s,t.rule,t.type,this.ptr.fqn()+"."+n,t.id,t.options),I=new i.Extension(this,this.ptr,t.name,E);E.extension=I,this.ptr.addChild(I),s.addChild(E)}),this);else if(!/\.?google\.protobuf\./.test(E.ref))throw Error("extended message "+E.ref+" is not defined")}E=null,s=null}t=null,this.ptr=this.ptr.parent}return this.resolved=!1,this.result=null,this},n.import=function(t,i){var r="/";if("string"==typeof i){if(e.Util.IS_NODE&&(i=require("path").resolve(i)),!0===this.files[i])return this.reset();this.files[i]=!0}else if("object"==typeof i){var n,s=i.root;if(e.Util.IS_NODE&&(s=require("path").resolve(s)),(s.indexOf("\\")>=0||i.file.indexOf("\\")>=0)&&(r="\\"),n=e.Util.IS_NODE?require("path").join(s,i.file):s+r+i.file,!0===this.files[n])return this.reset();this.files[n]=!0}if(t.imports&&t.imports.length>0){var I,o=!1;"object"==typeof i?(this.importRoot=i.root,o=!0,I=this.importRoot,i=i.file,(I.indexOf("\\")>=0||i.indexOf("\\")>=0)&&(r="\\")):"string"==typeof i?this.importRoot?I=this.importRoot:i.indexOf("/")>=0?""===(I=i.replace(/\/[^\/]*$/,""))&&(I="/"):i.indexOf("\\")>=0?(I=i.replace(/\\[^\\]*$/,""),r="\\"):I=".":I=null;for(var _=0;_<t.imports.length;_++)if("string"==typeof t.imports[_]){if(!I)throw Error("cannot determine import root");var a=t.imports[_];if("google/protobuf/descriptor.proto"===a)continue;if(a=e.Util.IS_NODE?require("path").join(I,a):I+r+a,!0===this.files[a])continue;/\.proto$/i.test(a)&&!e.DotProto&&(a=a.replace(/\.proto$/,".json"));var R=e.Util.fetch(a);if(null===R)throw Error("failed to import '"+a+"' in '"+i+"': file not found");/\.json$/i.test(a)?this.import(JSON.parse(R+""),a):this.import(e.DotProto.Parser.parse(R),a)}else i?/\.(\w+)$/.test(i)?this.import(t.imports[_],i.replace(/^(.+)\.(\w+)$/,(function(e,t,i){return t+"_import"+_+"."+i}))):this.import(t.imports[_],i+"_import"+_):this.import(t.imports[_]);o&&(this.importRoot=null)}t.package&&this.define(t.package),t.syntax&&E(t);var f=this.ptr;return t.options&&Object.keys(t.options).forEach((function(e){f.options[e]=t.options[e]})),t.messages&&(this.create(t.messages),this.ptr=f),t.enums&&(this.create(t.enums),this.ptr=f),t.services&&(this.create(t.services),this.ptr=f),t.extends&&this.create(t.extends),this.reset()},n.resolveAll=function(){var r;if(null==this.ptr||"object"==typeof this.ptr.type)return this;if(this.ptr instanceof i.Namespace)this.ptr.children.forEach((function(e){this.ptr=e,this.resolveAll()}),this);else if(this.ptr instanceof i.Message.Field){if(t.TYPE.test(this.ptr.type))this.ptr.type=e.TYPES[this.ptr.type];else{if(!t.TYPEREF.test(this.ptr.type))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(!(r=(this.ptr instanceof i.Message.ExtensionField?this.ptr.extension.parent:this.ptr.parent).resolve(this.ptr.type,!0)))throw Error("unresolvable type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(this.ptr.resolvedType=r,r instanceof i.Enum){if(this.ptr.type=e.TYPES.enum,"proto3"===this.ptr.syntax&&"proto3"!==r.syntax)throw Error("proto3 message cannot reference proto2 enum")}else{if(!(r instanceof i.Message))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);this.ptr.type=r.isGroup?e.TYPES.group:e.TYPES.message}}if(this.ptr.map){if(!t.TYPE.test(this.ptr.keyType))throw Error("illegal key type for map field in "+this.ptr.toString(!0)+": "+this.ptr.keyType);this.ptr.keyType=e.TYPES[this.ptr.keyType]}"proto3"===this.ptr.syntax&&this.ptr.repeated&&void 0===this.ptr.options.packed&&-1!==e.PACKABLE_WIRE_TYPES.indexOf(this.ptr.type.wireType)&&(this.ptr.options.packed=!0)}else if(this.ptr instanceof e.Reflect.Service.Method){if(!(this.ptr instanceof e.Reflect.Service.RPCMethod))throw Error("illegal service type in "+this.ptr.toString(!0));if(!((r=this.ptr.parent.resolve(this.ptr.requestName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.requestName);if(this.ptr.resolvedRequestType=r,!((r=this.ptr.parent.resolve(this.ptr.responseName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.responseName);this.ptr.resolvedResponseType=r}else if(!(this.ptr instanceof e.Reflect.Message.OneOf||this.ptr instanceof e.Reflect.Extension||this.ptr instanceof e.Reflect.Enum.Value))throw Error("illegal object in namespace: "+typeof this.ptr+": "+this.ptr);return this.reset()},n.build=function(e){if(this.reset(),this.resolved||(this.resolveAll(),this.resolved=!0,this.result=null),null===this.result&&(this.result=this.ns.build()),!e)return this.result;for(var t="string"==typeof e?e.split("."):e,i=this.result,r=0;r<t.length;r++){if(!i[t[r]]){i=null;break}i=i[t[r]]}return i},n.lookup=function(e,t){return e?this.ns.resolve(e,t):this.ns},n.toString=function(){return"Builder"},r.Message=function(){},r.Enum=function(){},r.Service=function(){},r}(t,t.Lang,t.Reflect),t.Map=function(e,t){var i=function(e,i){if(!e.map)throw Error("field is not a map");if(this.field=e,this.keyElem=new t.Element(e.keyType,null,!0,e.syntax),this.valueElem=new t.Element(e.type,e.resolvedType,!1,e.syntax),this.map={},Object.defineProperty(this,"size",{get:function(){return Object.keys(this.map).length}}),i)for(var r=Object.keys(i),n=0;n<r.length;n++){var E=this.keyElem.valueFromString(r[n]),s=this.valueElem.verifyValue(i[r[n]]);this.map[this.keyElem.valueToString(E)]={key:E,value:s}}},r=i.prototype;function n(e){var t=0;return{next:function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}}return r.clear=function(){this.map={}},r.delete=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e)),i=t in this.map;return delete this.map[t],i},r.entries=function(){for(var e,t=[],i=Object.keys(this.map),r=0;r<i.length;r++)t.push([(e=this.map[i[r]]).key,e.value]);return n(t)},r.keys=function(){for(var e=[],t=Object.keys(this.map),i=0;i<t.length;i++)e.push(this.map[t[i]].key);return n(e)},r.values=function(){for(var e=[],t=Object.keys(this.map),i=0;i<t.length;i++)e.push(this.map[t[i]].value);return n(e)},r.forEach=function(e,t){for(var i,r=Object.keys(this.map),n=0;n<r.length;n++)e.call(t,(i=this.map[r[n]]).value,i.key,this)},r.set=function(e,t){var i=this.keyElem.verifyValue(e),r=this.valueElem.verifyValue(t);return this.map[this.keyElem.valueToString(i)]={key:i,value:r},this},r.get=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e));if(t in this.map)return this.map[t].value},r.has=function(e){return this.keyElem.valueToString(this.keyElem.verifyValue(e))in this.map},i}(0,t.Reflect),t.loadProto=function(e,i,r){return("string"==typeof i||i&&"string"==typeof i.file&&"string"==typeof i.root)&&(r=i,i=void 0),t.loadJson(t.DotProto.Parser.parse(e),i,r)},t.newBuilder=function(e){return void 0===(e=e||{}).convertFieldsToCamelCase&&(e.convertFieldsToCamelCase=t.convertFieldsToCamelCase),void 0===e.populateAccessors&&(e.populateAccessors=t.populateAccessors),new t.Builder(e)},t.loadJson=function(e,i,r){return("string"==typeof i||i&&"string"==typeof i.file&&"string"==typeof i.root)&&(r=i,i=null),i&&"object"==typeof i||(i=t.newBuilder()),"string"==typeof e&&(e=JSON.parse(e)),i.import(e,r),i.resolveAll(),i},t}(),m=48,w=64,G=80,F=96,B=112,Y="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",H=(e,t,i)=>{const r={length:0,offset:-1};if(t.length,i>=t.length-1)return r;const n=e[t.charAt(i)+t.charAt(i+1)];if(n[0]===i)return r;const E=t.length-i;for(let e=0,s=n.length;e<s;e++){const s=n[e],I=i-s;if(I>238327)continue;const o=Math.min(E,I);if(o<=r.length)break;if(r.length>2&&t.charAt(s+r.length-1)!==t.charAt(i+r.length-1))continue;let _=2;for(let e=_;e<o&&t.charAt(s+e)===t.charAt(i+e);e++)_++;_>=r.length&&(r.length=_,r.offset=s)}return r},x=e=>{const t=[];let i=0;do{i=e%62,t.push(Y.charAt(i)),e=(e-i)/62}while(e>0);return t.join("")},k=e=>{let t=0,i=0;for(let r=e.length-1;r>=0;r--){if(i=Y.indexOf(e.charAt(r)),-1===i)throw new Error('decode number error, data is "'+e+'"');t=62*t+i}return t},K=(e=>{let t=0,i="";e:do{const r=e.charCodeAt(t++),n=r&B,E=15&r;let s;switch(n){case w:const r=E>>2,I=3&E;if(0===r||0===I)throw new Error("Data parsing error,at "+t);let o=k(e.substr(t,r));const _=k(e.substr(t+=r,I));if(o=i.length-o,o+_>i.length)throw new Error("Data parsing error,at "+t);t+=I,i+=i.substr(o,_);break;case m:if(s=k(e.substr(t,E)),s!==i.length)throw console.log(i.length),console.log(s),new Error("Data parsing error,at "+t);t+=E;break e;case G:s=k(e.substr(t,E)),i+=e.substr(t+=E,s),t+=s;break;case F:i+=e.substr(t,E),t+=E;break;case B:if(E>10)throw new Error("Data parsing error,at "+t);i+=e.substr(t,16+E),t+=16+E;break;default:throw new Error("Data parsing error,at "+t+" header:"+n)}}while(t<e.length);return i})("upackage Modules;\nmessEH4kprobuf {\n EJ8iNotifyMsgEM5QR required int32 type = 1;\nET4hoptionalET4k64 time = 2ETFostring chrmId=3ExIp32 destroyType=4EY4a}IO2BkSyncRequestIT2Mh64 syncTI426IX27EX9kbool ispollIC24Ib2IEX7cwebIY2HER7iPullSend=IW25EWIiKeeping=5IW4LgsendBoxID34Id24b=6EcLibroadcastEe9a7EeLcendIl37a8IH2KucompressioEnabled = 9IS5GiUpStreamMEG7Iw7LbseI814cnIdIU5JIY78flassnaI78CEZHiontent = Ic5GEX7gpushTexEY4Ie5GEY7jappData = Ig57frepeatIc1AltoUserIds = Id5MfdelMsgI257IY5GI817Ea6Ir35Ia5GIP46iconfigFlaIN94IU55Ig1HlclientUniqueI356a0Il1MfextraCIa49a1IiDGePushEEa4Ie45cExtEb4IqDNjbusChannelEb4In5NhsystemIdEZ4Ii4GEZ8lenderPortraiIp14a2I8GMEF6cBitIw54a2IP2GfExtMsgIz65cextEB8c= 2IT2NemetadEZ7IH8GiReferenceI615crefIE18IP85IeBCEgEIcB6Ii1HIi77IS3GEV7dfromIQ96IhJRI9CBIM35I82CI27AI42MetitleIeLMs32 templateIdNoUseI82PIX84Ie25IhDRfConfigIi64IkDNIl1AInD8IG3CdDownI4HDbs I5H8IME7EYHe listICHJIDNHIgMLffinishIJJ5IJPJI8LKIX3JIj18I1C4EZ7IzMMmcredibleStartEg7IQHMEg8bEnIXM8IVHGIXMPICNHeytes Eg8bedIXB7IANHdChrmIC6YIG16I06zIv2KIuSHIv2MIXVHIV8II7QFI0EKIx2GIhJ7I7X4IjY8IRCNegroupISCCIFRSIt87IFRQIAQ9I95DIuI4Ii8EIg5GetatusIZ8JIcV7IgG5IO8IInIFIwPJIQb4direcEI4IrPKEZ6kplantform =ImPHEY6gisRemovId75IkPOfsourceIgPKI9SOIpHNI9SGIMEGI3JEEc8IIEJIbUGa1If5GILTLIm5NILTEIoVMfextStaIP76a2Is57IcYSIGTKc32 IeA5bUnIO24IHTKIrTKIlNNgconvertIW36IETHISUPIy5NISUCIv5GISUPI065I1GCIu1BILSFIyi8aqIOULISjAIlICIS14eenum IJGCIQ16fPERSONIC1AEG6aSIiGAeGROUPIQGAdTEMPEJ8Ip47oCUSTOMERSERVICEI2GAfNOTIFYIlFAbMCI2l8cMP=IK97eULTRAIJ18INE6Io29dFileIl2BdIMAGIW14Ik27eAUDIOIi2AdVIDEEF4Ii27cFILEi4Id27eSIGHTIT2AlCOMBINE_HTMLIZ28IA6CrGetQNupTokenInput IBMFIU29IHuNIS87ckeyI1MQjhttpMethodIWYQhqueryStrIrs6IhGNburIAE4IZANICn6IgUMcsizIVUKIqJ7bpTIY36Ir65Ic4FIqQ4gloadUrlIe4iI6PGIe4TefileNIDfBIY3OITZNIY36INZJIY3CIA8TcOutIX3JIBr8eadlinIY3RetokenIa3QcbosId15Ia3QfbosDatI7dKICO8batIZK4c5;\nEVLfosskeyI8H5IdpNhossPolicIH64ILuNfossSigIg24IYONiossBucketIt67c9;\nInSMl3Credential IOuQms3Algorithm =INuIEc9IY47IZUPa3IV39IHuPa3IV34eatureIZURbs3Ia3DIZU4EeMltcAuthorizatICY7IfvObtcIGV7fSha256ImUKEhAIl38IB6NcstcIb2EIC6OeminioId2GIxU8EjLIf2GI6VHEjCIh27I5VHEaCIj2DIBV4MR41MIzH7Im24dInfoIIVKIGAAIdt6IRyLIDJEIhFMIs1FcUrlIlF8I7oGIFKLImH6dnothIFN6Ig4NInh8IAV9IR1CIAIPIS1aMAD1CICbMdjoinIDX7I8hNereateILvQl32 memberCouIVmCIOgGjhatroomBanIke4ILvNl32 whiteListEd8I6bHIU44dPullMbM1qIfi8Il26IR4JIgm4IU16IpO7MhM1LISuKIptHkRelationQryIk8CIC19IEtJIZiMIp2RIYr6Mo019M2S1MeorderIC7JMSP17hEraseMsgIgnAMd21MI9gAI87GIS4PIzXMcqryI0YCI1nBIR4CcchaEC9I8uOdbotTI457Ijf9IB6JgFilter Mq21FJC661Ie5BIrz9IJqFbagMCC1KI867fTagTopIjdQdpageIAX8I26TI3DKIA48asIcHFIb27EV8ImL5binIrL5I94GIh27bFiMaC19IPAMIED4IOANIBDRa Me71bIZ4eI34KIY35I7HFI88QIeOGbusMdM1NMk91Iemsg =IiLMdreadMgW17IahObunEb4IiL5Is3PMu01DIHmMcverIVO4MtG1NII28cminIj16MQY1PIj1AIQENbUnIR37Ig55dmsgIIH97Me81MIs16bMeIu18I8eHIv97bBoMOY1AMkf1DIn1DIYVMM6U1FI5PFcmsgIC66IYFMIb26MDn15IDlOMTF15IZZ7IROHiQryRemindIlR4cReqIe2NM6H1AIlVOIp7DI7EMIH37IUOPI4r7Ie2WbspImGGIZ7PIzUHgleanHisEh5IxHAIErJeargetIZ6CMvJ1SIr37MNE1KIlB4IkF5Il6DI95VIA4HIy25hMsgBatchIo6AI5PCIW3GbinE64IC49IP5ClueryChatRoomIo44IKfRIpP5IIQOIoP5IFf9Ia1SIrNDI81FIHJ4iTotalNumsIVCCIbS9drmMeIsd4IyJ6cnfoMGG15IfcKEe7IecLMF127IRLNaiINL9IG3DgHistoryI29FMIf1HI09HMF32cIZVCIEbnIB9KIjMGIuRPIGVLhignoreCmMPt1AIK4NbOuIJVJMTi1Mb=1MRc1Ta=MZz1GIw36bhaIVB4ICRNM7h1KIJRMM7h1IIf4wIYWMI2aHbSeIWq5dsAttIQkFIirUI61NMwA1SeinboxIIoQMSP17EaAIr5JIlA4INE4IhL6ITS8Mwt1HIL27gMsgReadIR3LIXZZIrOGMk72OIC16M5u1SINLUgDeleteSIF57Io2EI2B7ET7IPP5IWx7IVI9I14JJQd01IN3CIJTMIHcBIx3uIVM5Jw371IC1DeOutPuID1vIai8cDelImRFIhmHcOpIIv25breEG6IomObclI4T6IoOKIE1GIJaMIJVCMcs1XI2WGMZO1RIh6CISDHIeA6IvPOI2vZI33OIVD9IoM8Ih18I5E4IX64ITDxMl61AMHC2eI3G9I9L4Mh02NM4u1CIp4KI8W4iKVEntity IH7MMUY16IBENevalueIw1PMUx19IGQMIdV4estampMVd1RIjX5Ml51MIlq7IAvKcSetIW36IhHIIs3BeentryIKCOabMOc26IY3JMxU2GgnotificIaD8Io3GI4AJMkb2IIq28bS M661HJr2P2IR26Mr41MIt2HbieI1hBIv2FiFullUpdatIO9NMAJ1ENv41O1IV3IbSVIk96InCDIJAPMRq1YIheDIb17I75SET7IE58hrrorKeysIHmNIq2HdkeysEI7ITmOIc1GIVIMISGDIxFFIQ25dCodeIb1KIxp7IVEKISGIImQMIa7JIf1HnSetUserSettingIJfOIv6AIxjHIjJCIvj8I8mKIO5AI0eJI82CIOgSI92OIg15greserveI92MbupIwC4I92RdPullII4rIg1EI92OMUv1FI32WInBMIa2Chtem itemIfBDIi2LMuB1II91FIiRMIQw8MUR2iIoSMMrQ2GIiH6InS8MoQ2MI338MlQ2JIHT9MJB28IveGcTagIU35dtagsMt42JEc7MKD1JMu11IEuJMzf15MMZ2AIqAUIT2EMwg16I334MzG18IY1OJVmU1Ic37M7Y1GI32CI955Ii25EA5MG31hIN3OIx9KEWCIW35Ixl7EHAI2ceII8SI9cTIOVCMBK25IO2HMJK27esSileM4Q16IF16bIsMOc16I627cTagIi1BgAutoTraIDp5InZJIb1AfModifyIVAPIY9nIeMnaGMqV2AIcQ5IzRNMCY2EI71RcSetI41eIqFHbunI414dLeveM7R19Ie1NeResulIUsOMnS1AMmS1hIF2TMe51OIH7DMSS1BIXPgIDRGIx3HIOA4Iw36NI7101IucAIt3fIU9WIlBHIm2AI4WZIyZOIQ4XmGrpReadReceipMzO3DMsr1EIdv5I26HIGLOMP21EIX19MmP1rMUT3AM1T3PMAD1QMP837dreadIhK6b4 MUv1MIc35ds= 5EW7MXB3KMXQ2AIlgHId37IVIAIg3hIYDJIuaMIF47Mcy1NI836MyB2PMw22AMuB2MMYU17MYy1bMZl1JIg58Mzp1NMav15Mtp18b EZObSiMRj15MvT2OMiw1CMlp18IF4GduserIMe5IcnMIr67MgE1OEaCIZfGIS4PIi1TJW871MQ71NIX8iIlEEI4B7Mko1IIaBEbspIvW5cresI4sXMiC3KIUzDISz7MFM3OIf7BMCO1MI87EI03UEb9Ivm9J53F1MEn1IIw1LJA8q1IC7LMg725IV5UIt2VMMK1XMIK1TMjc15aCMQW1LMq92AEW6I6r9MNT19IZ25IHt4Ec5E95MDi3PMAY16dListMr92PMjY17Il15IQrGIl1CEe6In17MNw2IIlTDMU225IsZLI548M6u16cNumMz81JcGrpMhg17Im15MqQ37IcVKEdCIEXLIoM5MNv1TMoG2EIIdJeTagAdMvi1MIWkbIXwDMA71uIC1DMD11OILZRdnameIzTKMXf29Ik45MIy3OcTopMj04JIP29cDelJd412Mr51BMHQ15McP18NqB111IHPEgportSDKMQg1SgsdkInfoIT16Ib2DgltraGrpMa346MT318M0j2ZMhe2aMEA1IIm1BMkk2hM0K1pIC24ehangeMBL2QMQd3TIlOIIWoGIbpJMRd3NfmsgUIDMXC1JI0NGMBV2qMUe3HMc32HILu6IqI5IWK9I7PGEZ5I16NM6Z2NILcNI569Ih7nMl527eeedCoIdWPMBY37enlineMRa1NI97II3HHeEventIh26IrQ5IZZFEVBN9p301dhasNMzK36a3IIqNIg2GInDIIL4BIPr6IF3NM871QeinessILXLMjr2QMTH1aMq13IcngeI217Mo83OjriginalId Myp1PEa8Mov2NMq539hcondaryIMkv2KI657eAdminMGL4OdaddiEG6dMarkIMr6Iv2MgperatorMhF4MM8R17bubIJ66MUJ18IqBMIw29Ed8MyQ4NM9c26bMeMQL3BICcGcextILo6MLL3HMxg2GMrp3KIBk6eeventI8k7M9L36IkLLIyCKI8GAIwCzIxCHI52LMfZ1VMA14jMkW1MIfNGIfBQIEONMIa1PIFOAIWBNIFODIVBqeisDelMbs2JJLBK1MSu2HIMBxIsi4M3O15JSBa1MIS1CJM991IUC8Id16IZ15M8M25M5o35IY95c //IE2GEjGISTLI29AIQZNI5AAM0K2rIO48cAckM1O4oIH7EhnotExistMzb48IKXHbOpIFA4heStatus MW11XIMRTMzL1NMiG17M7t1DMcL2mIh2DMPC27IZj8MYO2ZIuRHMpC25IJO8MWx29I859In17MdG3CIXX8EcIjSummary suE86c= 4IILHIJ1CNH71N1I9yGMXr2NIH68Mxm2MEF4I1jAI634Eb4IJ6JIm37NXA1T1Mmu2WIF3DMMD1DfSetRtcMX035Mt11MI927b rEc8MU73KgallInfoMzL28MkT2QIbGPddataINt7I7wIIY18IkFAJa161IGJIaaMGq25MR216I42CbKvMp11RIanGEvEMEg1SIo17IqIJIp14IdDAIO4HEV7MWZ2RMTx1UMqf1SI1zJIEQyIwNYMgx3KcartImM8MPV4OcndMEY7Mas4JMsG1AMf01OMas4VM1t1TIO4II49HMBO1GMGE3Mdnum ID8IMkK1CMnI1CM6f1LM6O1BIB4JMGJ1BMYO1HEX5IpyNM7a3WM7G1BMLY1RMp15AIzvLimentionedIH7QcCntIK7DMNq2qMMD2RIeARMRe1LMQe1RIk28MWb1IMdP17Ir64fresultMzO3KEbBM3X1nImO4M5p3RbtmMiJ1MMGy15MoJ15bubIi5JIak9MJF2GMkR2ChubDetailEe4EH4Mi71NIPaSM3c27cxpiIFX6MQM1LIg19Ib4MI227If4AIl3RMzZ3JIG3OMAf4NcubTM9f4FMnW2HIS5OMxj2aMcl1CIa1IbUlIa1AIH3PIQz5I5jEIA2PMwB1WMHo1dMbv3JcullICNKIe2CIM6xInADMFs2NIs69I9AaI9BQI93HMLU15fubDataIs7WMjS1SgneedAllM8q48Iq5YMsg2LID29IV8IER7IQ57IX8aMXK1dJb8J1Ik2EI6GNItq5cStrMPN4RIfGBMBY2HIb16IQf5Mcr3QIb99I7kJI317IJLLhplatformMTr3CEbHMiC3RIF6HINYIcrySI8ASISNxIxEGgProfileIdJtIuXGI929IP17Ih45Eb4If18InUIEgGcExtEjAILPHEkCMo23iMEh2KMyy2JIX17Msc1QM083iIUYIpcensorFailedFielMKD15M2x2PIH29MNH2HIA6GI3TII11AMhQ5HI68CII8CI91UMqk3sI31BePermiM8u15ImDNEWAMju2LdarchI7BRMU629MEK5AMAC3IIBf5Mwd3DMZ21hMnH1ZIoACbseMhw15IHCccextIDCFIx1IdBaseEj5abE98MiA2QIIG7MtL17IC4IIE19IE4MMv225McQ18MCR1NbwnILoNMXj4JIjMMMXj4EInMIIy68ML74PMfA15M8A15Mvp1TafMvQ56Mts4OMtr15Ic2MiprocessCoM8K35Ia6NgsJoinedIP55Iep8Ig6MEn8IkR5IOK8Mi948MYY1GlFriendInviteEj5bfrEHFMoY1IEq6IX19Eo6EF9MJg4IIxISMji57IXqCdultiIA38IMugI74HISE6MSI2EMgz1HJBFR1EZ9dQuitIe18MsB27IJF8It47M4b1RMHj2QIcA8IagDMp41DIv1IIb3FIDc7Eg4Mtg4QMKv35IsmPEW5eWhiteM3w2PEY4cAttMQ216ITETMwa17JL6Q1If18jPageParam Iog4IC6QbidIA6QbroMNP57MSp2OMir4AI7LPID2BI9dMMOo27I6vdMR52hM2W2BMhX19M8N4PMK528I73JMuZ47Mo93AI51FIOE4IIgEMnl1FM8716Iu6nIgU4IjULIQJ4Mjd16INK6MGx4MEfHImqDIV1NI7K8IN1PIeK9IF1ZIvNAIH1PIUOBIJ1EIW2RIpZOMeN2FIm5HI214cExtIbX8MkH2QbpTMgH2TM416EMVJ1OMGJ56IOJIII2KIf9LIPE4IixPMNH5BMb93UdNickMod5UMEC2AIR3QfremarkIA17MyU4LcisBIgL5MFa6NbanM7D6VMjt48MDm27Iv4JMal26MjE16JfLS1Mzm1WIe5PMjZ6OIe5CMDB3NISSDMp22HI5DJI14eIdkcIMlSIdkDMW74NIdkKIkeOIECCI0e8Mu44MIgJNI48uIWHAILD4IMeBI2NOEZ9binI724El8MA81NMsI48I4UMMNF69I9UTIoF5IL8BMZh6KME615Mh95OdapplM4e28MuG2GIT3HIil7IT37MTC6MEa7Ion8MHO5HItEEgResponsJvET1IAD8IhU8Mfy1OIjV8IoEPIK89MtO4KIZb8I887MFu5RIS6EIY4QNX01T1IMJDMD81LIbr8Mrz4uM5a3XM8B28Ix1MMXi4MIy1qIU1JeCheckMd84MEY6EXCIbYPEhIIm4tIdG9Iq2NMIC1JMaB2oIAVDIgNkIM2PID5MIBzSMaC1HII16I7rQMJe37EW4I9kNIejPIdGMMG216MpI5BII2II6guMWz18Mnp46MCP3TIA2AIqIPM0917IdcqI8hEIgINI8hEM5P3GIY8PIKP7IGHNMa819I55lIs2EMjh1OIs2DI05MMrf4CI5EQMbw2NMYF1DI15NITJ7Mmn3MIb7DMtT3HIYI7IDw4J6KT1Mw145cSetIixNMQ247IrJOIwuPIpCFI0LVIQ8AIB1NIx8BI7wREi6aAIdZ4Mg635IQ3MI9a6Mxv5SIa6DI6RZJku71INWHIE35MqP2DMv11WI7B6MVe5PEt6IY45MAo1KIDeHcoptIRiBIpLOMvP1PIePGMvP1TIOnNIW1JdFullIYnCIfBII774MDx26IM8LMuQ39Ih95IIDQIM8IIiOJITw5If1SIcM6IW87IUsSIXLDIn1HcAddM0G46ePerioMMf2TMzC6CMUO4MispanMinutMMz45IdQMIQG8MJO3OgimezoneMeC5QIp2XMal1XIdW5J9191I91CMRQ6SbisM6179M332OIf5BMGD5NIf5DIjQMIf58MIP7OIf5AI1HHMvQ27I9ASN0y3U1MQa2DIpTMMnw3CMXg1GMYy3GMyx36MO61IMH676MqO5OMiC39MTU35M6P1TM4V39M6m2NmSpeechToTextIEa4M7a7sfobjectIDkEMyf3QMZ31NfampleRMKr6MM1L3AjnelNumber ISePfformatITZQMLd68I9xII469Myx5SI56jMZ019I76TMuW1MIlL9I517MMl6OIJ17MMe4KdransMK62JEO5I085ctraEA6MvR2QcmodMP33LM9c76dorceMPp48I8oHI427McO2IEP8IV34Ic36I42dIW1HIUkREe7Mkr36InfNI514IqaUbteM4Q2SI315dFileINa6Mow6OMYS75aLMnR15IBBNIYi6EZ6MDk6MMtA65aSMkT76IKBKIU5CIP4pIN3CICBEIM3UMnr3TEZ6IiFNMY226MgA7NIp3BMaR1JMB345MMx3Acq {Mqb4IMqZ67Mo84AMFS4dIvA9IJA9M1M3AMSK2LMZz3KM9t2AET8Mz627ICRMdnextMYp4FMFq7hIF3GMXa2HM3Y5dIm2AIXKLII4DMk24jMtW7DbacEB4I2W6creaM1h78M7K4OM4t6OMGS2WMpm6UIx4DM9K4HMBw1GMFK4PMGl6NEU7ET7MrD57Mrx1xIg7BMIs7uIN2ENSS3N1MoE4QI37MMyN8HMoD66IBs6EB5M5r1LEcBIxALMl536I0QNM8926Iid6IJfMEZ7cMeCMNd4RjclearTime=MrL6NeutOffEX5I8KGMCd6EgfirstUnEJ7IJKCMxK55Iqv4MpK5BgKICK = Mus37eREFUSMNf7BgCOEXISTMX55LgtcValueM6R3UMrg5ZIN1FIxpRdroomMXL15M5v3NMZ988Ea5I8HHIq2CI0e5eInnerM6s4NMYy29bSyIpA4MOE75IlKJbIdIf74btyMex3BbidEJHI8RIIH69MNk1IIwmAIr2CbinIm27MC45BEgMeouterEg8MXG1HcRtcIVhSIfv7Ih5KMPh5KIZ95IC4JIU16mAnchorToVieweMty2BEG6bToEW6Ik9KcBotM5J1SMUK26IHyHcBotIY36EsFIG15ffo botEuOEW4IdJMM0A65b1;MjH4MMVP1yIBL8MYA4FME249MXz76Mys66Mkz7AMcK8PMeP1QMht47Me915MJ72CMI34EIn1AM2x2UIH4MM3x2PIQV8NEg101JMP21MAW3KI2sKIm27MAt1KMtA8KMVa1OMPj8AMFh7NMPj8AMEh7NMbi4DM4Q8HIV58M484AMN35IMs226M5q3NI318M1955cQryJb6o1Mlc3TImZRMZJ2LcallMm457IS6OIMbBMLO7JIJ46M9t2NI62GMR21MIsbHMxH4HMwD15IYC7Mk876EG8MtI5tIK1FMFg3qIs88I3aDMlD1BIq2BInkSEf8JQ9r1J1GE1IU9VMAj2DIrFNIz6CMC39TIpFSJSAM1MUY3XI88ZMfr3JES6Iv44Jv2v1IrvHIv2fMsB1RIs8DMV12OICMDIOnMduserIJnMM6s56cserII25MgQ5KIa5AEe5Mr74MEbBMh42tIC3IIa1KMOX1SJvFf2Mrm3FI7lHIv5GMEp5QIY7AIskHePSelfMXu6QN501d1d32 pMaM18M4B1MIRg6M1r3IcSrsMrA1Mj64 lastMsgIt86IT9McdelIO9Eb}\n3TV9");var X,W;var J,Q,Z,j,q,z,$,ee,te,ie,re,ne,Ee,se,Ie,oe,_e,ae,Re,fe,he,le,Te,Ae,ue,Ne,Oe,Se,Me,ce,ge,de,Ce,pe,Le,Pe,De,Ue,ye;X=new WeakSet,W=function e(i,r){if(i instanceof Array)return i.map((i=>t(this,X,"m",e).call(this,i)));if(n=i,"[object Object]"!==Object.prototype.toString.call(n))return i;var n;if(i instanceof b.ByteBuffer)return i.toArrayBuffer();if(i instanceof b.Long)return r?i.toString():i.toNumber();const E={};return Object.keys(i).forEach((r=>{const n=i[r],s="ExtMsgData"===i.$type.name&&"seqId"===r;E[r]=t(this,X,"m",e).call(this,n,s)})),E},function(e){e[e.PERSON=1]="PERSON",e[e.PERSONS=2]="PERSONS",e[e.GROUP=3]="GROUP",e[e.TEMPGROUP=4]="TEMPGROUP",e[e.CUSTOMERSERVICE=5]="CUSTOMERSERVICE",e[e.NOTIFY=6]="NOTIFY",e[e.MC=7]="MC",e[e.MP=8]="MP",e[e.ULTRAGROUP=10]="ULTRAGROUP"}(J||(J={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.AUDIO=2]="AUDIO",e[e.VIDEO=3]="VIDEO",e[e.FILE=4]="FILE",e[e.SIGHT=5]="SIGHT",e[e.COMBINE_HTML=6]="COMBINE_HTML"}(Q||(Q={})),function(e){e[e.IsSilent=1]="IsSilent",e[e.IsTop=2]="IsTop",e[e.Tags=3]="Tags",e[e.AutoTrans=4]="AutoTrans"}(Z||(Z={})),function(e){e[e.KICK=0]="KICK",e[e.REFUSE=1]="REFUSE",e[e.COEXIST=2]="COEXIST"}(j||(j={})),function(e){e[e.AnchorToViewer=1]="AnchorToViewer",e[e.ViewerToAnchor=2]="ViewerToAnchor"}(q||(q={})),new class{constructor(e){X.add(this),Object.defineProperty(this,"pbModules",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=b.loadProto(e);this.pbModules=t.build("Modules").probuf}encode(e,t){return this.pbModules[e].encode(t).toArrayBuffer()}decode(e,i){try{const r=this.pbModules[e].decode(i);return t(this,X,"m",W).call(this,r)}catch(t){const i=`name: ${e}, stack: ${t.stack}`;throw null===console||void 0===console||console.error("pb decode error!",i),t}}}(K),function(e){e[e.IMAGE=1]="IMAGE",e[e.AUDIO=2]="AUDIO",e[e.VIDEO=3]="VIDEO",e[e.FILE=4]="FILE",e[e.SIGHT=5]="SIGHT",e[e.COMBINE_HTML=6]="COMBINE_HTML"}(z||(z={})),function(e){e[e.ALL=1]="ALL",e[e.SINGAL=2]="SINGAL"}($||($={})),function(e){e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE"}(ee||(ee={})),function(e){e[e.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",e[e.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",e[e.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(te||(te={})),function(e){e[e.MSG_EXPANSION=1]="MSG_EXPANSION",e[e.MSG_MODIFY=2]="MSG_MODIFY",e[e.MSG_RECALL=3]="MSG_RECALL",e[e.CHANNEL_CHANGE=4]="CHANNEL_CHANGE",e[e.USER_GROUP_CHANGE=5]="USER_GROUP_CHANGE",e[e.UG_DEL=6]="UG_DEL"}(ie||(ie={})),function(e){e[e.CHANNEL_DELETE=1]="CHANNEL_DELETE",e[e.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",e[e.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",e[e.PRIVATE_CHANNEL_USER_JOIN_PUBLIC=4]="PRIVATE_CHANNEL_USER_JOIN_PUBLIC",e[e.CHANNEL_USER_KICKED=5]="CHANNEL_USER_KICKED",e[e.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(re||(re={})),function(e){e[e.REMOVE_USER_GROUP=1]="REMOVE_USER_GROUP",e[e.JOIN_USER_GROUP=2]="JOIN_USER_GROUP",e[e.EXIT_USER_GROUP=3]="EXIT_USER_GROUP",e[e.CHANNEL_BIND_USER_GROUP=4]="CHANNEL_BIND_USER_GROUP",e[e.CHANNEL_UNBIND_USER_GROUP=5]="CHANNEL_UNBIND_USER_GROUP"}(ne||(ne={})),function(e){e[e.NOT_MENTIONED=0]="NOT_MENTIONED",e[e.ALL=1]="ALL",e[e.ME=2]="ME"}(Ee||(Ee={})),function(e){e[e.SENDING=10]="SENDING",e[e.FAILED=20]="FAILED",e[e.SENT=30]="SENT",e[e.RECEIVED=40]="RECEIVED",e[e.READ=50]="READ",e[e.DESTROYED=60]="DESTROYED"}(se||(se={})),function(e){e[e.typing=0]="typing"}(Ie||(Ie={})),function(e){e[e.ONLINE=1]="ONLINE",e[e.OFFLINE=0]="OFFLINE"}(oe||(oe={})),function(e){e[e.Other=0]="Other",e[e.iOS=1]="iOS",e[e.Android=2]="Android",e[e.Web=3]="Web",e[e.PC=4]="PC",e[e.Mini=5]="Mini",e[e.HarmonyOS=6]="HarmonyOS"}(_e||(_e={})),function(e){e[e.ONLINE_STATUS=1]="ONLINE_STATUS",e[e.USER_PROFILE=2]="USER_PROFILE",e[e.FRIEND_ONLINE_STATUS=3]="FRIEND_ONLINE_STATUS",e[e.FRIEND_USER_PROFILE=4]="FRIEND_USER_PROFILE"}(ae||(ae={})),function(e){e[e.SUBSCRIBE=0]="SUBSCRIBE",e[e.UNSUBSCRIBE=1]="UNSUBSCRIBE"}(Re||(Re={})),function(e){e[e.NOT_SET=0]="NOT_SET",e[e.INVISIBLE=1]="INVISIBLE",e[e.EVERYONE=2]="EVERYONE",e[e.FriendVisible=3]="FriendVisible"}(fe||(fe={})),function(e){e[e.CONNECTED=0]="CONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.DISCONNECTED=2]="DISCONNECTED",e[e.SUSPENDED=3]="SUSPENDED"}(he||(he={})),function(e){e[e.GLOBAL=1]="GLOBAL",e[e.CUSTOM=2]="CUSTOM",e[e.THIRD_PARTY=3]="THIRD_PARTY"}(le||(le={})),function(e){e[e.MSG_ORIGINAL=0]="MSG_ORIGINAL",e[e.MSG_EXPANSION=1]="MSG_EXPANSION",e[e.MSG_MODIFY=2]="MSG_MODIFY"}(Te||(Te={})),function(e){e[e.SEND=1]="SEND",e[e.RECEIVE=2]="RECEIVE"}(Ae||(Ae={})),function(e){e.NORMAL="NORMAL",e.LOW="LOW"}(ue||(ue={})),function(e){e.IM_NAVI="IM-stats_navi-S",e.IM_WEBSOCKET="IM-stats_websocket-S",e.IM_CONNECTION_DURATION="IM-stats_con_dur-S",e.IM_CMP="IM-stats_cmp-S",e.IM_CMP_RMTP="IM-stats_cmp_rmtp-S",e.IM_STATS_CS="IM-stats_cs-S",e.IM_NETWORK_CHANGE="IM-stats_network_change-S",e.L_CLOUD_INFO_FETCH_T="L-cloud_info_fetch-T",e.L_CLOUD_INFO_FETCH_R="L-cloud_info_fetch-R",e.IM_MSG_SEND="IM-msg_send-S",e.IM_MSG_RECEIVE="IM-msg_receive-S"}(Ne||(Ne={})),function(e){e[e.ALL_MESSAGE=-1]="ALL_MESSAGE",e[e.NOT_SET=0]="NOT_SET",e[e.AT_MESSAGE_NOTIFICATION=1]="AT_MESSAGE_NOTIFICATION",e[e.AT_USER_NOTIFICATION=2]="AT_USER_NOTIFICATION",e[e.AT_GROUP_ALL_USER_NOTIFICATION=4]="AT_GROUP_ALL_USER_NOTIFICATION",e[e.NOT_MESSAGE_NOTIFICATION=5]="NOT_MESSAGE_NOTIFICATION"}(Oe||(Oe={})),function(e){e[e.OPEN=1]="OPEN",e[e.CLOSE=2]="CLOSE"}(Se||(Se={})),function(e){e[e.READ=1]="READ",e[e.LISTENED=2]="LISTENED",e[e.DOWNLOADED=4]="DOWNLOADED",e[e.RETRIEVED=8]="RETRIEVED",e[e.UNREAD=0]="UNREAD"}(Me||(Me={})),function(e){e[e.PRIVATE=1]="PRIVATE",e[e.OPEN=0]="OPEN"}(ce||(ce={})),function(e){e[e.NAVI=1]="NAVI",e[e.TCP=2]="TCP",e[e.WS=3]="WS"}(ge||(ge={})),function(e){e[e.REQUEST=0]="REQUEST",e[e.LOCAL=1]="LOCAL"}(de||(de={})),function(e){e[e.CURRENT=2]="CURRENT"}(Ce||(Ce={})),function(e){e[e.CONNECT=0]="CONNECT",e[e.RECONNECT=1]="RECONNECT"}(pe||(pe={})),function(e){e[e.CONNECT=0]="CONNECT",e[e.RECONNECT=1]="RECONNECT",e[e.REDIRECTED=3]="REDIRECTED",e[e.TIMEOUT=4]="TIMEOUT"}(Le||(Le={})),function(e){e.PASSIVE="passive",e.ACTIVE="active",e.TIME_SENSITIVE="time-sensitive",e.CRITICAL="critical"}(Pe||(Pe={})),function(e){e[e.PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_DEFAULT=0]="PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_DEFAULT",e[e.PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_MENTION_MESSAGE=1]="PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_MENTION_MESSAGE",e[e.PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_BLOCKED=5]="PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_BLOCKED"}(De||(De={})),function(e){e.WIFI="wifi",e.FOUR_G="4g",e.THREE_G="3g",e.TWO_G="2g",e.FIVE_G="2g",e.THREE_GENT="3gnet",e.UNKONWN="unknown"}(Ue||(Ue={})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT"}(ye||(ye={}));("undefined"!=typeof window&&window?(window.__RCVersionInfo||(window.__RCVersionInfo={}),window.__RCVersionInfo):{}).engine="5.48.0";var ve,Ve,be,me;({gen:()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=Math.floor(36*Math.random());return("x"===e?t:3&t|8).toString(36)})),genWithLen(e=22){const t=Date.now(),i=t.toString(36),r=Math.floor(Math.random()*t).toString(36),n=e-i.length-r.length;var E;return[r,i,n>0?(E=n,Array.from({length:E}).map((()=>Math.floor(36*Math.random()).toString(36))).join("")):""].join("").slice(0,e)}}).genWithLen(22),function(e){e[e.add=1]="add",e[e.update=2]="update",e[e.delete=3]="delete"}(ve||(ve={})),function(e){e[e.BJ=1]="BJ",e[e.SG=2]="SG",e[e.NA=3]="NA",e[e.SG_A=4]="SG_A",e[e.SG_B=4]="SG_B",e[e.SA=5]="SA",e[e.OM=6]="OM"}(Ve||(Ve={})),Ve.BJ,V.HTTPS,Ve.SG,V.HTTPS,Ve.NA,V.HTTPS,Ve.SG_B,V.HTTPS,Ve.SA,V.HTTPS,Ve.OM,V.HTTPS,function(e){e[e.STATISTICS=-2]="STATISTICS",e[e.RECORD=-1]="RECORD",e[e.FATAL=0]="FATAL",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG"}(be||(be={})),function(e){e[e.ERROR=-1]="ERROR",e[e.RESPONSE=0]="RESPONSE",e[e.CALLBACK=1]="CALLBACK"}(me||(me={}));const{sendResponse:we}=(Ge=process,{sendError:e=>{Ge.send({type:me.ERROR,data:{msg:e}})},sendResponse:e=>{Ge.send({type:me.RESPONSE,data:e})},sendCallback:e=>{Ge.send({type:me.CALLBACK,data:e})}});var Ge;const Fe=e=>(e=>{const t={};for(let i=0;i<e.length-1;i++){const r=e.charAt(i)+e.charAt(i+1);t.hasOwnProperty(r)?t[r].push(i):t[r]=[i]}const i=[];let r=[];const n=function(){if(r.length>0){const e=r.join("");if(r=[],e.length>26){const t=x(e.length),r=String.fromCharCode(G|t.length);i.push(r+t)}else{const t=String.fromCharCode(F|e.length);i.push(t)}i.push(e)}};let E=0;for(;E<e.length;){const s=H(t,e,E);if(s.length<2){r.push(e.charAt(E++));continue}if(s.length<4){r.push(e.substr(E,s.length)),E+=s.length;continue}const I=x(E-s.offset),o=x(s.length);if(I.length+o.length>=s.length){r.push(e.substr(E,s.length)),E+=s.length;continue}n();const _=String.fromCharCode(w|I.length<<2|o.length);i.push(_+I+o),E+=s.length}n();const s=x(e.length),I=String.fromCharCode(m|s.length);return i.push(I+s),i.join("")})(e.map((e=>`${e.sessionId},${e.time},${e.type},${e.level},${e.tag},${e.content}`)).join(""));process.title=`${function(e){const t=e.lastIndexOf("/");return-1!==t?e.substring(t+1):e}(process.title)} CompressLog`,process.on("message",(t=>e(void 0,0,void 0,(function*(){const{reqId:e,method:i,args:r}=t;if("compressLogs"===i){const t=Fe(r[0]);we({reqId:e,success:!0,data:{data:t,code:y.SUCCESS}})}else"destroy"===i?process.exit(0):we({reqId:e,success:!1})}))));
15
+ ***************************************************************************** */function e(e,t,i,r){return new(i||(i=Promise))((function(t,n){function E(e){try{I(r.next(e))}catch(e){n(e)}}function s(e){try{I(r.throw(e))}catch(e){n(e)}}function I(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(e){e(r)}))).then(E,s)}I((r=r.apply(e,[])).next())}))}function t(e,t,i,r){if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)}var i,r,n,E,s,I,o,_,a,R,f,h,l,T,A,u,N,O,S,M,c,g,d,C,p,L,P,D,U,y,v,V;!function(e){e[e.QINIU=1]="QINIU",e[e.ALI=2]="ALI",e[e.AWS=3]="AWS",e[e.STC=4]="STC",e[e.MINIO=5]="MINIO"}(i||(i={})),function(e){e[e.BOTH=2]="BOTH"}(r||(r={})),function(e){e[e.BOTH=2]="BOTH"}(n||(n={})),function(e){e[e.FREE=1]="FREE",e[e.NEED_VERIFY=2]="NEED_VERIFY",e[e.NO_ONE_ALLOWED=3]="NO_ONE_ALLOWED"}(E||(E={})),function(e){e[e.NONE=0]="NONE",e[e.IN_MY_FRIEND_LIST=1]="IN_MY_FRIEND_LIST",e[e.IN_OTHER_FRIEND_LIST=2]="IN_OTHER_FRIEND_LIST",e[e.BOTH_WAY=3]="BOTH_WAY"}(s||(s={})),function(e){e[e.SENT=1]="SENT",e[e.RECEIVED=2]="RECEIVED"}(I||(I={})),function(e){e[e.UNHANDLED=0]="UNHANDLED",e[e.ACCEPTED=1]="ACCEPTED",e[e.REFUSED=2]="REFUSED",e[e.EXPIRED=3]="EXPIRED"}(o||(o={})),function(e){e[e.FRIEND_APPLICATION=31]="FRIEND_APPLICATION"}(_||(_={})),function(e){e[e.FRIEND_APPLY=0]="FRIEND_APPLY",e[e.FRIEND_REFUSE=1]="FRIEND_REFUSE",e[e.FRIEND_USER_INFO=2]="FRIEND_USER_INFO",e[e.FRIENDS_INPUT=3]="FRIENDS_INPUT",e[e.FRIEND_CLEAR=4]="FRIEND_CLEAR",e[e.FRIEND_INFO_CHANGE=5]="FRIEND_INFO_CHANGE",e[e.FRIEND_INFO_CHANGE_SYNC=6]="FRIEND_INFO_CHANGE_SYNC"}(a||(a={})),function(e){e[e.OWNER_VERIFY=0]="OWNER_VERIFY",e[e.FREE=1]="FREE",e[e.OWNER_OR_MANAGER_VERIFY=2]="OWNER_OR_MANAGER_VERIFY",e[e.NO_ONE_ALLOWED=3]="NO_ONE_ALLOWED"}(R||(R={})),function(e){e[e.OWNER=0]="OWNER",e[e.OWNER_OR_MANAGER=1]="OWNER_OR_MANAGER",e[e.EVERYONE=2]="EVERYONE"}(f||(f={})),function(e){e[e.OWNER_OR_MANAGER_OR_SELF=0]="OWNER_OR_MANAGER_OR_SELF",e[e.OWNER_OR_SELF=1]="OWNER_OR_SELF",e[e.SELF=2]="SELF"}(h||(h={})),function(e){e[e.FREE=0]="FREE",e[e.INVITEE_VERIFY=1]="INVITEE_VERIFY"}(l||(l={})),function(e){e[e.UNDEF=0]="UNDEF",e[e.NORMAL=1]="NORMAL",e[e.MANAGER=2]="MANAGER",e[e.OWNER=3]="OWNER"}(T||(T={})),function(e){e[e.CREATE=0]="CREATE",e[e.JOIN=1]="JOIN",e[e.KICK=2]="KICK",e[e.QUIT=3]="QUIT",e[e.DISMISS=4]="DISMISS",e[e.ADD_MANAGER=5]="ADD_MANAGER",e[e.REMOVE_MANAGER=6]="REMOVE_MANAGER",e[e.TRANSFER_GROUP_OWNER=7]="TRANSFER_GROUP_OWNER"}(A||(A={})),function(e){e[e.GROUP_INFO_CHANGE=0]="GROUP_INFO_CHANGE",e[e.MEMBER_PROFILE_CHANGE=1]="MEMBER_PROFILE_CHANGE",e[e.GROUP_REMARK_SET=2]="GROUP_REMARK_SET",e[e.GROUP_REMARK_DELETE=3]="GROUP_REMARK_DELETE"}(u||(u={})),function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE"}(N||(N={})),function(e){e[e.MANAGER_UNHANDLED=0]="MANAGER_UNHANDLED",e[e.MANAGER_REFUSED=1]="MANAGER_REFUSED",e[e.INVITEE_UNHANDLED=2]="INVITEE_UNHANDLED",e[e.INVITEE_REFUSED=3]="INVITEE_REFUSED",e[e.JOINED=4]="JOINED",e[e.EXPIRED=5]="EXPIRED"}(O||(O={})),function(e){e[e.REFUSE=0]="REFUSE",e[e.ACCEPT=1]="ACCEPT"}(S||(S={})),function(e){e[e.APPLICANT=0]="APPLICANT",e[e.MANAGER=1]="MANAGER"}(M||(M={})),function(e){e[e.GROUP_OPERATION=11]="GROUP_OPERATION",e[e.GROUP_PROFILE_CHANGE=12]="GROUP_PROFILE_CHANGE",e[e.GROUP_APPLICATION_INVITATION=13]="GROUP_APPLICATION_INVITATION",e[e.GROUP_FOLLOW_USER_CHANGE=14]="GROUP_FOLLOW_USER_CHANGE"}(c||(c={})),function(e){e[e.APPLICATION=0]="APPLICATION",e[e.INVITATION=1]="INVITATION"}(g||(g={})),function(e){e[e.APPLICATION_SENT=0]="APPLICATION_SENT",e[e.INVITATION_SENT=1]="INVITATION_SENT",e[e.INVITATION_RECEIVED=2]="INVITATION_RECEIVED",e[e.APPLICATION_RECEIVED=3]="APPLICATION_RECEIVED"}(d||(d={})),function(e){e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE"}(C||(C={})),function(e){e[e.QUIT=0]="QUIT",e[e.JOIN=1]="JOIN"}(p||(p={})),function(e){e[e.LeaveOnMyOwn=1]="LeaveOnMyOwn",e[e.OtherDeviceLogin=2]="OtherDeviceLogin"}(L||(L={})),function(e){e[e.QUIT=0]="QUIT",e[e.JOIN=1]="JOIN"}(P||(P={})),function(e){e[e.UnmuteUsers=0]="UnmuteUsers",e[e.MuteUsers=1]="MuteUsers",e[e.UnmuteAll=2]="UnmuteAll",e[e.MuteAll=3]="MuteAll",e[e.RemoveWhitelist=4]="RemoveWhitelist",e[e.AddWhitelist=5]="AddWhitelist",e[e.UnmuteGloble=6]="UnmuteGloble",e[e.MuteGloble=7]="MuteGloble"}(D||(D={})),function(e){e[e.Deblock=0]="Deblock",e[e.Blocked=1]="Blocked"}(U||(U={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.ACTIVE_DISCONNECT=2]="ACTIVE_DISCONNECT",e[e.REJECTED_BY_BLACKLIST=405]="REJECTED_BY_BLACKLIST",e[e.NOT_IN_WHITELIST=407]="NOT_IN_WHITELIST",e[e.FORBIDDEN_IN_PRIVATE=20106]="FORBIDDEN_IN_PRIVATE",e[e.SYS_CONVERSATION_NOT_SUPPORT_MESSAGE=20109]="SYS_CONVERSATION_NOT_SUPPORT_MESSAGE",e[e.DANGEROUS_CONTENT=20112]="DANGEROUS_CONTENT",e[e.CONTENT_REVIEW_REJECTED=20113]="CONTENT_REVIEW_REJECTED",e[e.MESSAGE_OVER_MODIFY_TIME_FAIL=20114]="MESSAGE_OVER_MODIFY_TIME_FAIL",e[e.MESSAGE_SIZE_EXCEEDED=20115]="MESSAGE_SIZE_EXCEEDED",e[e.MESSAGE_UNSUPPORTED_MODIFY=20116]="MESSAGE_UNSUPPORTED_MODIFY",e[e.CLOUD_DATA_CENTER_INVALID=20512]="CLOUD_DATA_CENTER_INVALID",e[e.SEND_FREQUENCY_TOO_FAST=20604]="SEND_FREQUENCY_TOO_FAST",e[e.OPERATION_BLOCKED=20605]="OPERATION_BLOCKED",e[e.OPERATION_NOT_SUPPORT=20606]="OPERATION_NOT_SUPPORT",e[e.REQUEST_OVER_FREQUENCY=20607]="REQUEST_OVER_FREQUENCY",e[e.NOT_IN_DISCUSSION=21406]="NOT_IN_DISCUSSION",e[e.SENSITIVE_SHIELD=21501]="SENSITIVE_SHIELD",e[e.SENSITIVE_REPLACE=21502]="SENSITIVE_REPLACE",e[e.MESSAGE_EXPAND_NOT_EXIST=22201]="MESSAGE_EXPAND_NOT_EXIST",e[e.MESSAGE_EXPAND_NOT_SUPPORT=22202]="MESSAGE_EXPAND_NOT_SUPPORT",e[e.MESSAGE_EXPAND_FORMAT_ERROR=22203]="MESSAGE_EXPAND_FORMAT_ERROR",e[e.MESSAGE_EXPAND_NOT_AUTHORIZED=22204]="MESSAGE_EXPAND_NOT_AUTHORIZED",e[e.RC_MESSAGE_EXPANSION_DISABLED=22210]="RC_MESSAGE_EXPANSION_DISABLED",e[e.NOT_IN_GROUP=22406]="NOT_IN_GROUP",e[e.FORBIDDEN_IN_GROUP=22408]="FORBIDDEN_IN_GROUP",e[e.RC_GROUP_COUNT_EXCEED_LIMIT=22412]="RC_GROUP_COUNT_EXCEED_LIMIT",e[e.RC_GROUP_JOIN_COUNT_EXCEED_LIMIT=22413]="RC_GROUP_JOIN_COUNT_EXCEED_LIMIT",e[e.NOT_IN_CHATROOM=23406]="NOT_IN_CHATROOM",e[e.GET_USERINFO_ERROR=23407]="GET_USERINFO_ERROR",e[e.FORBIDDEN_IN_CHATROOM=23408]="FORBIDDEN_IN_CHATROOM",e[e.RC_CHATROOM_USER_KICKED=23409]="RC_CHATROOM_USER_KICKED",e[e.RC_CHATROOM_NOT_EXIST=23410]="RC_CHATROOM_NOT_EXIST",e[e.RC_CHATROOM_IS_FULL=23411]="RC_CHATROOM_IS_FULL",e[e.RC_CHATROOM_PATAMETER_INVALID=23412]="RC_CHATROOM_PATAMETER_INVALID",e[e.CHATROOM_GET_HISTORYMSG_ERROR=23413]="CHATROOM_GET_HISTORYMSG_ERROR",e[e.CHATROOM_NOT_OPEN_HISTORYMSG_STORE=23414]="CHATROOM_NOT_OPEN_HISTORYMSG_STORE",e[e.CHATROOM_KV_EXCEED=23423]="CHATROOM_KV_EXCEED",e[e.CHATROOM_KV_OVERWRITE_INVALID=23424]="CHATROOM_KV_OVERWRITE_INVALID",e[e.CHATROOM_SET_PROPERTY_OVER_FREQUENCY=23425]="CHATROOM_SET_PROPERTY_OVER_FREQUENCY",e[e.CHATROOM_KV_STORE_NOT_OPEN=23426]="CHATROOM_KV_STORE_NOT_OPEN",e[e.CHATROOM_KEY_NOT_EXIST=23427]="CHATROOM_KEY_NOT_EXIST",e[e.CHATROOM_KV_STORE_NOT_ALL_SUCCESS=23428]="CHATROOM_KV_STORE_NOT_ALL_SUCCESS",e[e.CHATROOM_KV_STORE_OUT_LIMIT=23429]="CHATROOM_KV_STORE_OUT_LIMIT",e[e.CHATROOM_KV_SET_ERROR=23431]="CHATROOM_KV_SET_ERROR",e[e.RC_CHATROOM_ACTIVE_COUNT_EXCEED_LIMIT=23450]="RC_CHATROOM_ACTIVE_COUNT_EXCEED_LIMIT",e[e.HAVNODEVICEID=24001]="HAVNODEVICEID",e[e.DEVICEIDISHAVE=24002]="DEVICEIDISHAVE",e[e.FEILD=24009]="FEILD",e[e.INTERNALERRROR=24015]="INTERNALERRROR",e[e.RC_USER_PROFILE_KEY_NOT_ALLOW_SDK_SET=24360]="RC_USER_PROFILE_KEY_NOT_ALLOW_SDK_SET",e[e.RC_USER_PROFILE_KEY_NOT_EXIST=24361]="RC_USER_PROFILE_KEY_NOT_EXIST",e[e.RC_USER_PROFILE_EXT_KEY_NOT_EXIST=24362]="RC_USER_PROFILE_EXT_KEY_NOT_EXIST",e[e.RC_USER_PROFILE_EXT_KV_COUNT_EXCEED_LIMIT=24363]="RC_USER_PROFILE_EXT_KV_COUNT_EXCEED_LIMIT",e[e.RC_USER_PROFILE_VALUE_LENGTH_EXCEED_LIMIT=24364]="RC_USER_PROFILE_VALUE_LENGTH_EXCEED_LIMIT",e[e.RC_USER_PROFILE_QUERY_COUNT_EXCEED_LIMIT=24365]="RC_USER_PROFILE_QUERY_COUNT_EXCEED_LIMIT",e[e.RC_USER_PROFILE_USER_NOT_EXIST=24366]="RC_USER_PROFILE_USER_NOT_EXIST",e[e.RC_USER_PROFILE_VALUE_CAN_ONLY_BE_NUMBERS=24367]="RC_USER_PROFILE_VALUE_CAN_ONLY_BE_NUMBERS",e[e.RC_USER_PROFILE_VALUE_EXCEED_RANGE=24368]="RC_USER_PROFILE_VALUE_EXCEED_RANGE",e[e.RC_USER_PROFILE_SERVICE_UNAVAILABLE=24369]="RC_USER_PROFILE_SERVICE_UNAVAILABLE",e[e.ULTRA_GROUP_SERVICE_UNAVAILABLE=24401]="ULTRA_GROUP_SERVICE_UNAVAILABLE",e[e.ULTRA_GROUP_SERVICE_ERROR=24402]="ULTRA_GROUP_SERVICE_ERROR",e[e.ULTRA_GROUP_PARAMETER_ERROR=24403]="ULTRA_GROUP_PARAMETER_ERROR",e[e.ULTRA_GROUP_UNKNOWN_ERROR=24404]="ULTRA_GROUP_UNKNOWN_ERROR",e[e.NOT_IN_ULTRA_GROUP=24406]="NOT_IN_ULTRA_GROUP",e[e.FORBIDDEN_IN_ULTRA_GROUP=24408]="FORBIDDEN_IN_ULTRA_GROUP",e[e.ULTRA_GROUP_NOT_EXIST=24410]="ULTRA_GROUP_NOT_EXIST",e[e.ULTRA_GROUP_MEMBERS_OVERSIZE=24411]="ULTRA_GROUP_MEMBERS_OVERSIZE",e[e.ULTRA_GROUP_JOINED_OVERSIZE=24412]="ULTRA_GROUP_JOINED_OVERSIZE",e[e.ULTRA_GROUP_CHANNELS_OVERSIZE=24413]="ULTRA_GROUP_CHANNELS_OVERSIZE",e[e.ULTRA_GROUP_CHANNEL_ID_NOT_EXIST=24414]="ULTRA_GROUP_CHANNEL_ID_NOT_EXIST",e[e.ULTRA_GROUP_MESSAGE_SENT_OVER_FREQUENCY=24415]="ULTRA_GROUP_MESSAGE_SENT_OVER_FREQUENCY",e[e.ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL=24416]="ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL",e[e.RECALL_MESSAGE=25101]="RECALL_MESSAGE",e[e.MESSAGE_STORAGE_SERVICE_UNAVAILABLE=25102]="MESSAGE_STORAGE_SERVICE_UNAVAILABLE",e[e.RC_SERVER_UNKOWN_ERROR=25104]="RC_SERVER_UNKOWN_ERROR",e[e.RECALL_MESSAGE_USER_INVALID=25107]="RECALL_MESSAGE_USER_INVALID",e[e.RC_ENTRUST_SERVER_ERROR=25402]="RC_ENTRUST_SERVER_ERROR",e[e.RC_ENTRUST_SERVER_PARAMETER_ERROR=25403]="RC_ENTRUST_SERVER_PARAMETER_ERROR",e[e.RC_GROUP_ILLEGAL_ERROR=25404]="RC_GROUP_ILLEGAL_ERROR",e[e.RC_GROUP_AUTHORITY_ERROR=25405]="RC_GROUP_AUTHORITY_ERROR",e[e.RC_GROUP_PARAMETER_LENGTH_EXCEED_LIMIT=25406]="RC_GROUP_PARAMETER_LENGTH_EXCEED_LIMIT",e[e.RC_GROUP_PARAMETER_FORMAT_ERROR=25407]="RC_GROUP_PARAMETER_FORMAT_ERROR",e[e.RC_GROUP_PARAMETER_VALUE_CAN_ONLY_BE_NUMBERS=25408]="RC_GROUP_PARAMETER_VALUE_CAN_ONLY_BE_NUMBERS",e[e.RC_GROUP_ID_ALREADY_EXIST=25409]="RC_GROUP_ID_ALREADY_EXIST",e[e.RC_GROUP_ID_NOT_EXIST=25410]="RC_GROUP_ID_NOT_EXIST",e[e.RC_GROUP_MEMBERS_COUNT_EXCEED_LIMIT=25411]="RC_GROUP_MEMBERS_COUNT_EXCEED_LIMIT",e[e.RC_GROUP_MEMBERS_ALREADY_IN_GROUP=25412]="RC_GROUP_MEMBERS_ALREADY_IN_GROUP",e[e.RC_GROUP_NOT_ALLOW_SDK_OPERATION=25413]="RC_GROUP_NOT_ALLOW_SDK_OPERATION",e[e.RC_GROUP_NOT_ALLOW_JOIN=25414]="RC_GROUP_NOT_ALLOW_JOIN",e[e.RC_GROUP_EXT_KEY_NOT_EXIST=25415]="RC_GROUP_EXT_KEY_NOT_EXIST",e[e.RC_GROUP_REQUEST_OVERFREQUENCY=25416]="RC_GROUP_REQUEST_OVERFREQUENCY",e[e.RC_GROUP_OWNER_NOT_ALLOW_QUIT_OR_KICK=25417]="RC_GROUP_OWNER_NOT_ALLOW_QUIT_OR_KICK",e[e.RC_GROUP_USER_NOT_IN_GROUP=25418]="RC_GROUP_USER_NOT_IN_GROUP",e[e.RC_GROUP_MANAGER_OR_FOLLOW_COUNT_EXCEED_LIMIT=25419]="RC_GROUP_MANAGER_OR_FOLLOW_COUNT_EXCEED_LIMIT",e[e.RC_GROUP_USER_IS_NOT_MANAGER_IN_GROUP=25420]="RC_GROUP_USER_IS_NOT_MANAGER_IN_GROUP",e[e.RC_GROUP_APPLICATION_NOT_EXIST=25421]="RC_GROUP_APPLICATION_NOT_EXIST",e[e.RC_GROUP_QUERY_GROUP_COUNT_EXCEED_LIMIT=25422]="RC_GROUP_QUERY_GROUP_COUNT_EXCEED_LIMIT",e[e.RC_GROUP_NAME_INVALID=25423]="RC_GROUP_NAME_INVALID",e[e.RC_GROUP_JOIN_GROUP_NEED_MANAGER_ACCEPT=25424]="RC_GROUP_JOIN_GROUP_NEED_MANAGER_ACCEPT",e[e.RC_GROUP_OWNER_NOT_ALLOW_BE_MANAGER=25425]="RC_GROUP_OWNER_NOT_ALLOW_BE_MANAGER",e[e.RC_GROUP_NO_INVITE_PERMISSION=25426]="RC_GROUP_NO_INVITE_PERMISSION",e[e.RC_GROUP_NEED_INVITEE_ACCEPT=25427]="RC_GROUP_NEED_INVITEE_ACCEPT",e[e.RC_GROUP_APPLICATION_ALREADY_HANDLE=25428]="RC_GROUP_APPLICATION_ALREADY_HANDLE",e[e.RC_GROUP_OLD_GROUP_NOT_ENTRUST=25429]="RC_GROUP_OLD_GROUP_NOT_ENTRUST",e[e.RC_GROUP_ID_INVALID=25430]="RC_GROUP_ID_INVALID",e[e.RC_PAGE_TOKEN_PARSING_FAILED=25432]="RC_PAGE_TOKEN_PARSING_FAILED",e[e.RC_FRIEND_ALREADY_FRIEND=25460]="RC_FRIEND_ALREADY_FRIEND",e[e.RC_FRIEND_NEED_ACCEPT=25461]="RC_FRIEND_NEED_ACCEPT",e[e.RC_FRIEND_IN_OTHER_BLACK_LIST=25462]="RC_FRIEND_IN_OTHER_BLACK_LIST",e[e.RC_FRIEND_NOT_IN_OTHER_WHITE_LIST=25463]="RC_FRIEND_NOT_IN_OTHER_WHITE_LIST",e[e.RC_FRIEND_IN_MY_BLACK_LIST=25464]="RC_FRIEND_IN_MY_BLACK_LIST",e[e.RC_FRIEND_NOT_IN_MY_WHITE_LIST=25465]="RC_FRIEND_NOT_IN_MY_WHITE_LIST",e[e.RC_FRIEND_APPLICATION_NOT_EXIST=25466]="RC_FRIEND_APPLICATION_NOT_EXIST",e[e.RC_FRIEND_MY_FRIEND_COUNT_EXCEED_LIMIT=25467]="RC_FRIEND_MY_FRIEND_COUNT_EXCEED_LIMIT",e[e.RC_FRIEND_OTHER_FRIEND_COUNT_EXCEED_LIMIT=25468]="RC_FRIEND_OTHER_FRIEND_COUNT_EXCEED_LIMIT",e[e.RC_FRIEND_NOT_FRIEND=25469]="RC_FRIEND_NOT_FRIEND",e[e.RC_FRIEND_FIELDS_LENGTH_EXCEED_LIMIT=25470]="RC_FRIEND_FIELDS_LENGTH_EXCEED_LIMIT",e[e.RC_FRIEND_OTHER_NOT_ALLOW_ADD_FRIEND=25471]="RC_FRIEND_OTHER_NOT_ALLOW_ADD_FRIEND",e[e.RC_FRIEND_NOT_EXIST=25472]="RC_FRIEND_NOT_EXIST",e[e.RC_FRIEND_NOT_ALLOW_ADD_SELF=25473]="RC_FRIEND_NOT_ALLOW_ADD_SELF",e[e.RC_FRIEND_NOT_SUPPORT_ROBOT=25474]="RC_FRIEND_NOT_SUPPORT_ROBOT",e[e.SERVICE_INFORMATION_AUDIT_FAILED=25480]="SERVICE_INFORMATION_AUDIT_FAILED",e[e.PUSH_PARAMETER_INVALID=26001]="PUSH_PARAMETER_INVALID",e[e.USER_SETTING_SYNCED_ERROR=26002]="USER_SETTING_SYNCED_ERROR",e[e.CONVERSATION_TAG_OVERSIZE=26004]="CONVERSATION_TAG_OVERSIZE",e[e.RC_READ_RECEIPT_V4_INVALID=26005]="RC_READ_RECEIPT_V4_INVALID",e[e.RC_SERVER_DRIVE_UNREAD_COUNT_INVALID=26006]="RC_SERVER_DRIVE_UNREAD_COUNT_INVALID",e[e.RC_SERVER_PARAMETER_MESSAGEUIDS_CONFUSED=26007]="RC_SERVER_PARAMETER_MESSAGEUIDS_CONFUSED",e[e.RC_SERVER_PARAMETER_MESSAGEUID_INVALID=26009]="RC_SERVER_PARAMETER_MESSAGEUID_INVALID",e[e.RC_SERVER_PARAMETER_INVALID=26010]="RC_SERVER_PARAMETER_INVALID",e[e.RC_SUBSCRIBE_ONLINE_SERVICE_UNAVAILABLE=26020]="RC_SUBSCRIBE_ONLINE_SERVICE_UNAVAILABLE",e[e.RC_BESUBSCRIBED_USERIDS_COUNT_EXCEED_LIMIT=26021]="RC_BESUBSCRIBED_USERIDS_COUNT_EXCEED_LIMIT",e[e.RC_SUBSCRIBED_USERIDS_EXCEED_LIMIT=26022]="RC_SUBSCRIBED_USERIDS_EXCEED_LIMIT",e[e.RC_FILE_SIZE_EXCEED_LIMIT=26106]="RC_FILE_SIZE_EXCEED_LIMIT",e[e.INVALID_PARAMETER_SIZE_NOT_FOUND=26107]="INVALID_PARAMETER_SIZE_NOT_FOUND",e[e.SERVICE_RRSV5_UNAVAILABLE=26314]="SERVICE_RRSV5_UNAVAILABLE",e[e.SERVICE_RRSV5_READ_RECEIPT_NOT_SUPPORT=26315]="SERVICE_RRSV5_READ_RECEIPT_NOT_SUPPORT",e[e.SERVICE_RRSV5_PARAM_LENGTH_EXCEED=26316]="SERVICE_RRSV5_PARAM_LENGTH_EXCEED",e[e.SERVICE_RRSV5_CONVERSATION_NOT_SUPPORT=26317]="SERVICE_RRSV5_CONVERSATION_NOT_SUPPORT",e[e.SERVICE_RRSV5_QUERY_NOT_SUPPORT=26318]="SERVICE_RRSV5_QUERY_NOT_SUPPORT",e[e.SERVICE_RRSV5_MESSAGE_SENDER_MISMATCH=26320]="SERVICE_RRSV5_MESSAGE_SENDER_MISMATCH",e[e.SERVICE_RRSV5_MESSAGE_RECEIPT_NEEDLESS=26321]="SERVICE_RRSV5_MESSAGE_RECEIPT_NEEDLESS",e[e.SERVICE_RRSV5_MESSAGE_NOT_EXIST=26322]="SERVICE_RRSV5_MESSAGE_NOT_EXIST",e[e.MSG_REACTION_LIMIT_REACHED=26323]="MSG_REACTION_LIMIT_REACHED",e[e.MSG_REACTION_USER_LIMIT_REACHED=26324]="MSG_REACTION_USER_LIMIT_REACHED",e[e.SERVICE_STT_UNAVAILABLE=28300]="SERVICE_STT_UNAVAILABLE",e[e.SERVICE_STT_CONVERTED_FAILED=28304]="SERVICE_STT_CONVERTED_FAILED",e[e.SERVICE_STT_INTERNAL_ERROR=28305]="SERVICE_STT_INTERNAL_ERROR",e[e.SERVICE_STT_PARAM_MISS=28306]="SERVICE_STT_PARAM_MISS",e[e.SERVICE_STT_USAGE_EXCEED=28307]="SERVICE_STT_USAGE_EXCEED",e[e.TRANS_SERVICE_NOT_OPEN=28400]="TRANS_SERVICE_NOT_OPEN",e[e.TRANS_FAILED=28401]="TRANS_FAILED",e[e.TRANS_INTERNAL_ERROR=28402]="TRANS_INTERNAL_ERROR",e[e.TRANS_PARAM_MISSING=28403]="TRANS_PARAM_MISSING",e[e.TRANS_PARAM_ERROR=28404]="TRANS_PARAM_ERROR",e[e.TRANS_QUOTA_LIMIT=28405]="TRANS_QUOTA_LIMIT",e[e.TRANS_TEXT_LENGTH_EXCEEDS_LIMIT=28406]="TRANS_TEXT_LENGTH_EXCEEDS_LIMIT",e[e.TRANS_LANGUAGE_NOT_SUPPORT=28407]="TRANS_LANGUAGE_NOT_SUPPORT",e[e.RC_NET_CHANNEL_INVALID=30001]="RC_NET_CHANNEL_INVALID",e[e.RC_NET_UNAVAILABLE=30002]="RC_NET_UNAVAILABLE",e[e.RC_MSG_RESP_TIMEOUT=30003]="RC_MSG_RESP_TIMEOUT",e[e.RC_HTTP_SEND_FAIL=30004]="RC_HTTP_SEND_FAIL",e[e.RC_HTTP_REQ_FAIL=30005]="RC_HTTP_REQ_FAIL",e[e.RC_HTTP_RECV_FAIL=30006]="RC_HTTP_RECV_FAIL",e[e.RC_NAVI_REQ_FAILED=30007]="RC_NAVI_REQ_FAILED",e[e.RC_NODE_NOT_FOUND=30008]="RC_NODE_NOT_FOUND",e[e.RC_DOMAIN_NOT_RESOLVE=30009]="RC_DOMAIN_NOT_RESOLVE",e[e.RC_SOCKET_NOT_CREATED=30010]="RC_SOCKET_NOT_CREATED",e[e.RC_SOCKET_DISCONNECTED=30011]="RC_SOCKET_DISCONNECTED",e[e.RC_PING_EXCEED_LIMIT=30012]="RC_PING_EXCEED_LIMIT",e[e.PONG_RECEIVED_ERROR=30013]="PONG_RECEIVED_ERROR",e[e.RC_MSG_SEND_FAIL=30014]="RC_MSG_SEND_FAIL",e[e.CONNECT_OVER_FREQUENCY=30015]="CONNECT_OVER_FREQUENCY",e[e.RC_MSG_CONTENT_EXCEED_LIMIT=30016]="RC_MSG_CONTENT_EXCEED_LIMIT",e[e.MESSAGE_NOT_SUPPORT_SENDING=30017]="MESSAGE_NOT_SUPPORT_SENDING",e[e.RC_NETWORK_DOWN=30019]="RC_NETWORK_DOWN",e[e.RC_TCP_DISCONNECTED_NO_RMTP=30021]="RC_TCP_DISCONNECTED_NO_RMTP",e[e.RC_CONN_ACK_TIMEOUT=31e3]="RC_CONN_ACK_TIMEOUT",e[e.RC_CONN_PROTO_VERSION_ERROR=31001]="RC_CONN_PROTO_VERSION_ERROR",e[e.RC_CONN_IDENTIFIER_REJECTED=31002]="RC_CONN_IDENTIFIER_REJECTED",e[e.RC_CONN_SERVER_UNAVAILABLE=31003]="RC_CONN_SERVER_UNAVAILABLE",e[e.RC_CONN_TOKEN_INCORRECT=31004]="RC_CONN_TOKEN_INCORRECT",e[e.RC_CONN_NOT_AUTHRORIZED=31005]="RC_CONN_NOT_AUTHRORIZED",e[e.RC_CONN_REDIRECTED=31006]="RC_CONN_REDIRECTED",e[e.RC_CONN_PACKAGE_NAME_INVALID=31007]="RC_CONN_PACKAGE_NAME_INVALID",e[e.RC_CONN_APP_BLOCKED_OR_DELETED=31008]="RC_CONN_APP_BLOCKED_OR_DELETED",e[e.RC_CONN_USER_BLOCKED=31009]="RC_CONN_USER_BLOCKED",e[e.RC_DISCONN_KICK=31010]="RC_DISCONN_KICK",e[e.RC_DISCONN_EXCEPTION=31011]="RC_DISCONN_EXCEPTION",e[e.CONNECTION_ENCRYPT_AUTHORIZED_ERROR=31012]="CONNECTION_ENCRYPT_AUTHORIZED_ERROR",e[e.RC_CONN_TOKEN_EXPIRED=31020]="RC_CONN_TOKEN_EXPIRED",e[e.RC_CONN_DEVICE_ERROR=31021]="RC_CONN_DEVICE_ERROR",e[e.RC_CONN_HOSTNAME_ERROR=31022]="RC_CONN_HOSTNAME_ERROR",e[e.RC_DISCONN_SAME_CLIENT_ON_LINE=31023]="RC_DISCONN_SAME_CLIENT_ON_LINE",e[e.RC_LISCENSE_COUNT_OUT_OF_LIMIT=31024]="RC_LISCENSE_COUNT_OUT_OF_LIMIT",e[e.RC_CONN_WRONG_CLUSTER=31025]="RC_CONN_WRONG_CLUSTER",e[e.RC_APP_AUTH_NOT_PASS=31026]="RC_APP_AUTH_NOT_PASS",e[e.RC_OTP_USED=31027]="RC_OTP_USED",e[e.RC_PLATFORM_ERROR=31028]="RC_PLATFORM_ERROR",e[e.RC_ACCOUNT_CANCELLATION=31029]="RC_ACCOUNT_CANCELLATION",e[e.RC_LICENSE_EXPIRED=31030]="RC_LICENSE_EXPIRED",e[e.RC_QUERY_ACK_NO_DATA=32001]="RC_QUERY_ACK_NO_DATA",e[e.RC_MSG_DATA_INCOMPLETE=32002]="RC_MSG_DATA_INCOMPLETE",e[e.RC_UDP_DISCONNECTED=32011]="RC_UDP_DISCONNECTED",e[e.RC_TCP_RESET=32054]="RC_TCP_RESET",e[e.CONNECTION_REFUSED=32061]="CONNECTION_REFUSED",e[e.PROTOCOL_DECODE_ERROR=32546]="PROTOCOL_DECODE_ERROR",e[e.PROTOCOL_MESSAGE_SAVED_ERROR=33e3]="PROTOCOL_MESSAGE_SAVED_ERROR",e[e.BIZ_ERROR_CLIENT_NOT_INIT=33001]="BIZ_ERROR_CLIENT_NOT_INIT",e[e.BIZ_ERROR_DATABASE_ERROR=33002]="BIZ_ERROR_DATABASE_ERROR",e[e.BIZ_ERROR_INVALID_PARAMETER=33003]="BIZ_ERROR_INVALID_PARAMETER",e[e.BIZ_ERROR_NO_CHANNEL=33004]="BIZ_ERROR_NO_CHANNEL",e[e.BIZ_ERROR_RECONNECT_SUCCESS=33005]="BIZ_ERROR_RECONNECT_SUCCESS",e[e.BIZ_ERROR_CONNECTING=33006]="BIZ_ERROR_CONNECTING",e[e.MSG_ROAMING_SERVICE_UNAVAILABLE=33007]="MSG_ROAMING_SERVICE_UNAVAILABLE",e[e.MSG_INSERT_ERROR=33008]="MSG_INSERT_ERROR",e[e.MSG_DEL_ERROR=33009]="MSG_DEL_ERROR",e[e.TAG_NOT_EXIST=33100]="TAG_NOT_EXIST",e[e.TAG_EXISTS=33101]="TAG_EXISTS",e[e.NO_TAG_IN_CONVER=33102]="NO_TAG_IN_CONVER",e[e.METHOD_BUSY=33103]="METHOD_BUSY",e[e.NOT_ALLOW_PULL_CONVERSATION=33301]="NOT_ALLOW_PULL_CONVERSATION",e[e.SDK_PULL_CONVERSATION=33302]="SDK_PULL_CONVERSATION",e[e.MODIFIED_MESSAGE_IS_NOT_SENT=33401]="MODIFIED_MESSAGE_IS_NOT_SENT",e[e.MODIFIED_MESSAGE_TIMEOUT=33402]="MODIFIED_MESSAGE_TIMEOUT",e[e.QUOTE_MSG_NOT_FOUND=33403]="QUOTE_MSG_NOT_FOUND",e[e.INVALID_PARAMETER_QUOTE_INFO=33404]="INVALID_PARAMETER_QUOTE_INFO",e[e.REACTION_ID_INVALID=33405]="REACTION_ID_INVALID",e[e.INVALID_PARAMETER_UNREAD_COUNT_FILTER=33406]="INVALID_PARAMETER_UNREAD_COUNT_FILTER",e[e.RC_CONNECTION_EXIST=34001]="RC_CONNECTION_EXIST",e[e.PACKAGE_ENVIRONMENT_ERROR=34005]="PACKAGE_ENVIRONMENT_ERROR",e[e.CONNECTION_TIMEOUT=34006]="CONNECTION_TIMEOUT",e[e.MESSAGE_KV_NOT_SUPPORT=34008]="MESSAGE_KV_NOT_SUPPORT",e[e.MESSAGE_EXPANDED_ERROR=34009]="MESSAGE_EXPANDED_ERROR",e[e.EXPANSION_LIMIT_EXCEET=34010]="EXPANSION_LIMIT_EXCEET",e[e.UPLOAD_FAIL=34011]="UPLOAD_FAIL",e[e.CONVER_OUT_LIMIT_ERROR=34013]="CONVER_OUT_LIMIT_ERROR",e[e.READ_RECEIPT_ERROR=34014]="READ_RECEIPT_ERROR",e[e.PUSH_CONTENT_CONFIG_SERVICE_UNAVAILABLE=34016]="PUSH_CONTENT_CONFIG_SERVICE_UNAVAILABLE",e[e.MESSAGE_INTERCEPTION_PRODUCED_NULL_MESSAGE=34017]="MESSAGE_INTERCEPTION_PRODUCED_NULL_MESSAGE",e[e.MEDIA_EXCEPTION=34018]="MEDIA_EXCEPTION",e[e.MESSAGE_NOT_REGISTERED=34021]="MESSAGE_NOT_REGISTERED",e[e.METHOD_NOT_SUPPORT=34022]="METHOD_NOT_SUPPORT",e[e.ULTRA_GROUP_CHANNEL_NOT_EXIST=34024]="ULTRA_GROUP_CHANNEL_NOT_EXIST",e[e.INCONSISTENT_CONVERSATION_TYPE=34025]="INCONSISTENT_CONVERSATION_TYPE",e[e.INVALID_PARAMETER_LAUGUAGE=34200]="INVALID_PARAMETER_LAUGUAGE",e[e.CONVERSATION_TYPE_NOT_SUPPORT=34201]="CONVERSATION_TYPE_NOT_SUPPORT",e[e.INVALID_PARAMETER_TIMESTAMP=34202]="INVALID_PARAMETER_TIMESTAMP",e[e.INVALID_PARAMETER_MESSAGE_UID=34203]="INVALID_PARAMETER_MESSAGE_UID",e[e.INVALID_PARAMETER_MESSAGE_ID=34204]="INVALID_PARAMETER_MESSAGE_ID",e[e.INVALID_PARAMETER_MESSAGE_CONTENT=34205]="INVALID_PARAMETER_MESSAGE_CONTENT",e[e.MSG_LIMIT_ERROR=34206]="MSG_LIMIT_ERROR",e[e.INVALID_PARAMETER_MEDIA_TYPE=34207]="INVALID_PARAMETER_MEDIA_TYPE",e[e.INVALID_PARAMETER_REQUEST_URL=34208]="INVALID_PARAMETER_REQUEST_URL",e[e.INVALID_PARAMETER_CONVERSATION_TYPE=34209]="INVALID_PARAMETER_CONVERSATION_TYPE",e[e.INVALID_PARAMETER_TARGET_ID=34210]="INVALID_PARAMETER_TARGET_ID",e[e.INVALID_PARAMETER_CHANNEL_ID=34211]="INVALID_PARAMETER_CHANNEL_ID",e[e.INVALID_PARAMETER_TAG_ID=34212]="INVALID_PARAMETER_TAG_ID",e[e.INVALID_PARAMETER_TAG_NAME=34213]="INVALID_PARAMETER_TAG_NAME",e[e.INVALID_PARAMETER_USER_ID=34214]="INVALID_PARAMETER_USER_ID",e[e.INVALID_PARAMETER_USERIDLIST=34215]="INVALID_PARAMETER_USERIDLIST",e[e.INVALID_PARAMETER_DOWNLOADMEDIAFILENAME=34217]="INVALID_PARAMETER_DOWNLOADMEDIAFILENAME",e[e.INVALID_PARAMETER_MESSAGE_EXPANSION=34220]="INVALID_PARAMETER_MESSAGE_EXPANSION",e[e.INVALID_PARAMETER_NOTMEDIAMESSAGE=34223]="INVALID_PARAMETER_NOTMEDIAMESSAGE",e[e.INVALID_PARAMETER_TIMESTRING=34224]="INVALID_PARAMETER_TIMESTRING",e[e.INVALID_PARAMETER_CONVERSATION=34225]="INVALID_PARAMETER_CONVERSATION",e[e.INVALID_PARAMETER_NOTIFICATION_LEVEL=34228]="INVALID_PARAMETER_NOTIFICATION_LEVEL",e[e.INVALID_PARAMETER_MESSAGE_ARRAY=34229]="INVALID_PARAMETER_MESSAGE_ARRAY",e[e.INVALID_PARAMETER_RECEIVED_STATUS=34230]="INVALID_PARAMETER_RECEIVED_STATUS",e[e.INVALID_PARAMETER_CHANNEL_TYPE=34231]="INVALID_PARAMETER_CHANNEL_TYPE",e[e.INVALID_PARAMETER_COUNT=34232]="INVALID_PARAMETER_COUNT",e[e.INVALID_PARAMETER_MEDIA_URL=34235]="INVALID_PARAMETER_MEDIA_URL",e[e.INVALID_PARAMETER_UNIQUE_ID=34236]="INVALID_PARAMETER_UNIQUE_ID",e[e.INVALID_PARAMETER_PROXY=34238]="INVALID_PARAMETER_PROXY",e[e.INVALID_PARAMETER_TESTHOST=34239]="INVALID_PARAMETER_TESTHOST",e[e.INVALID_CONNECT_TESTHOST_FAILED=34240]="INVALID_CONNECT_TESTHOST_FAILED",e[e.INVALID_PARAMETER_CONVERSATIONS=34242]="INVALID_PARAMETER_CONVERSATIONS",e[e.INVALID_PARAMETER_SENT_STATUS=34244]="INVALID_PARAMETER_SENT_STATUS",e[e.RC_CONN_PROXY_UNAVAILABLE=34245]="RC_CONN_PROXY_UNAVAILABLE",e[e.INVALID_PARAMETER_RTCROOMID=34259]="INVALID_PARAMETER_RTCROOMID",e[e.INVALID_PARAMETER_KEY=34260]="INVALID_PARAMETER_KEY",e[e.INVALID_PARAMETER_KEYS=34261]="INVALID_PARAMETER_KEYS",e[e.INVALID_PARAMETER_VALUE=34262]="INVALID_PARAMETER_VALUE",e[e.INVALID_PARAMETER_ENTRIES=34263]="INVALID_PARAMETER_ENTRIES",e[e.INVALID_PARAMETER_NOTIFICATION_EXTRA=34264]="INVALID_PARAMETER_NOTIFICATION_EXTRA",e[e.INVALID_PARAMETER_MESSAGE_OBJECT_NAME=34271]="INVALID_PARAMETER_MESSAGE_OBJECT_NAME",e[e.INVALID_PARAMETER_BEFORE=34272]="INVALID_PARAMETER_BEFORE",e[e.INVALID_PARAMETER_AFTER=34273]="INVALID_PARAMETER_AFTER",e[e.INVALID_PARAMETER_KEYWORD=34274]="INVALID_PARAMETER_KEYWORD",e[e.INVALID_PARAMETER_MESSAGE_OBJECT_NAME_LIST=34275]="INVALID_PARAMETER_MESSAGE_OBJECT_NAME_LIST",e[e.INVALID_PARAMETER_OFFSET=34276]="INVALID_PARAMETER_OFFSET",e[e.INVALID_PARAMETER_START_TIME=34277]="INVALID_PARAMETER_START_TIME",e[e.INVALID_PARAMETER_END_TIME=34278]="INVALID_PARAMETER_END_TIME",e[e.INVALID_PARAMETER_LIMIT=34279]="INVALID_PARAMETER_LIMIT",e[e.INVALID_MESSAGE_DIRECTION=34280]="INVALID_MESSAGE_DIRECTION",e[e.INVALID_MESSAGE_SENT_STATUS=34281]="INVALID_MESSAGE_SENT_STATUS",e[e.INVALID_PARAMETER_TARGETID_LIST=34282]="INVALID_PARAMETER_TARGETID_LIST",e[e.INVALID_PARAMETER_SPAN_MINUTES=34283]="INVALID_PARAMETER_SPAN_MINUTES",e[e.INVALID_PARAMETER_CONVERSATION_TYPE_LIST=34284]="INVALID_PARAMETER_CONVERSATION_TYPE_LIST",e[e.INVALID_PARAMETER_CONVERSATION_LIST=34287]="INVALID_PARAMETER_CONVERSATION_LIST",e[e.INVALID_PARAMETER_CLEAR_MESSAGE_OPTION_LIST=34288]="INVALID_PARAMETER_CLEAR_MESSAGE_OPTION_LIST",e[e.INVALID_PARAMETER_START_MESSAGE_UID=34289]="INVALID_PARAMETER_START_MESSAGE_UID",e[e.INVALID_PARAMETER_END_MESSAGE_UID=34290]="INVALID_PARAMETER_END_MESSAGE_UID",e[e.READ_RECEIPT_V4_NOT_SUPPORT=34291]="READ_RECEIPT_V4_NOT_SUPPORT",e[e.READ_RECEIPT_V4_UPDATE_NOT_SUPPORT=34292]="READ_RECEIPT_V4_UPDATE_NOT_SUPPORT",e[e.RC_DIRECTIONAL_MESSAGE_INVALID_CONVERSATION_TYPE=34296]="RC_DIRECTIONAL_MESSAGE_INVALID_CONVERSATION_TYPE",e[e.RC_DB_NOT_INIT=34301]="RC_DB_NOT_INIT",e[e.RC_DB_CORRUPT=34302]="RC_DB_CORRUPT",e[e.RC_DB_SQL_ERROR=34303]="RC_DB_SQL_ERROR",e[e.RC_DB_DATA_NOT_FOUND=34304]="RC_DB_DATA_NOT_FOUND",e[e.RC_NET_DATA_ERROR=34305]="RC_NET_DATA_ERROR",e[e.INVALID_PARAMETER_SUBSCRIBE_TYPE=34306]="INVALID_PARAMETER_SUBSCRIBE_TYPE",e[e.INVALID_PARAMETER_SUBSCRIBE_EXPIRY=34307]="INVALID_PARAMETER_SUBSCRIBE_EXPIRY",e[e.INVALID_PARAMETER_SUBSCRIBE_PUBLISHER_USERIDS=34308]="INVALID_PARAMETER_SUBSCRIBE_PUBLISHER_USERIDS",e[e.INVALID_PARAMETER_SUBSCRIBE_PAGESIZE=34309]="INVALID_PARAMETER_SUBSCRIBE_PAGESIZE",e[e.SUB_PROCESS_EXIT=34310]="SUB_PROCESS_EXIT",e[e.ADDON_NOT_EXIST=34311]="ADDON_NOT_EXIST",e[e.INVALID_PARAMETER_USER_PROFILE=34312]="INVALID_PARAMETER_USER_PROFILE",e[e.INVALID_PARAMETER_USER_PROFILE_VISIBILITY=34313]="INVALID_PARAMETER_USER_PROFILE_VISIBILITY",e[e.INVALID_PARAMETER_EXTRA=34314]="INVALID_PARAMETER_EXTRA",e[e.DB_UPGRADE_FAILED=34315]="DB_UPGRADE_FAILED",e[e.INVALID_PARAMETER_GROUP_INFO=34318]="INVALID_PARAMETER_GROUP_INFO",e[e.INVALID_PARAMETER_GROUP_ID=34319]="INVALID_PARAMETER_GROUP_ID",e[e.INVALID_PARAMETER_GROUP_NAME=34320]="INVALID_PARAMETER_GROUP_NAME",e[e.INVALID_PARAMETER_GROUP_IDS=34321]="INVALID_PARAMETER_GROUP_IDS",e[e.INVALID_PARAMETER_GROUP_MEMBER_ROLE=34322]="INVALID_PARAMETER_GROUP_MEMBER_ROLE",e[e.INVALID_PARAMETER_GROUP_APPLICATION_STATUS=34323]="INVALID_PARAMETER_GROUP_APPLICATION_STATUS",e[e.INVALID_PARAMETER_GROUP_APPLICATION_DIRECTION=34324]="INVALID_PARAMETER_GROUP_APPLICATION_DIRECTION",e[e.INVALID_PARAMETER_NICK_NAME=34325]="INVALID_PARAMETER_NICK_NAME",e[e.INVALID_PARAMETER_REASON=34326]="INVALID_PARAMETER_REASON",e[e.INVALID_PARAMETER_REMARK=34327]="INVALID_PARAMETER_REMARK",e[e.INVALID_PARAMETER_PAGING_QUERY_OPTION=34328]="INVALID_PARAMETER_PAGING_QUERY_OPTION",e[e.NET_DATA_IS_SYNCHRONIZING=34329]="NET_DATA_IS_SYNCHRONIZING",e[e.INVALID_PARAMETER_QUERY_FRIENDS_DIRECTION_TYPE=34330]="INVALID_PARAMETER_QUERY_FRIENDS_DIRECTION_TYPE",e[e.INVALID_PARAMETER_DIRECTION_TYPE=34331]="INVALID_PARAMETER_DIRECTION_TYPE",e[e.INVALID_PARAMETER_FRIEND_APPLICATION_TYPE=34332]="INVALID_PARAMETER_FRIEND_APPLICATION_TYPE",e[e.INVALID_PARAMETER_FRIEND_APPLICATION_STATUS=34333]="INVALID_PARAMETER_FRIEND_APPLICATION_STATUS",e[e.INVALID_PARAMETER_FRIEND_ADD_PERMISSION=34334]="INVALID_PARAMETER_FRIEND_ADD_PERMISSION",e[e.INVALID_PARAMETER_FRIEND_INFO_EXT_FIELDS=34335]="INVALID_PARAMETER_FRIEND_INFO_EXT_FIELDS",e[e.RC_REAL_TIME_CONVERSATION_UNAVAILABLE=34336]="RC_REAL_TIME_CONVERSATION_UNAVAILABLE",e[e.SERVER_DATA_ERROR=34344]="SERVER_DATA_ERROR",e[e.INVALID_PARAMETER_MESSAGE_INFO_MAP=34345]="INVALID_PARAMETER_MESSAGE_INFO_MAP",e[e.INVALID_PARAMETER_PAGE_TOKEN=34346]="INVALID_PARAMETER_PAGE_TOKEN",e[e.SERVER_RECORD_UNREAD_COUNT_ENABLED_FORBIDDEN=34435]="SERVER_RECORD_UNREAD_COUNT_ENABLED_FORBIDDEN",e[e.SERVER_RECORD_UNREAD_COUNT_DISABLED=34436]="SERVER_RECORD_UNREAD_COUNT_DISABLED",e[e.DATABASEDISKFULL=34439]="DATABASEDISKFULL",e[e.GROUP_SYNC_ERROR=35001]="GROUP_SYNC_ERROR",e[e.GROUP_MATCH_ERROR=35002]="GROUP_MATCH_ERROR",e[e.NOT_SUPPORT=35004]="NOT_SUPPORT",e[e.MAIN_PROCESS_ERROR=35005]="MAIN_PROCESS_ERROR",e[e.CAN_NOT_RECONNECT=35007]="CAN_NOT_RECONNECT",e[e.SERVER_UNAVAILABLE=35008]="SERVER_UNAVAILABLE",e[e.HOSTNAME_ERROR=35009]="HOSTNAME_ERROR",e[e.HAS_OHTER_SAME_CLIENT_ON_LINE=35010]="HAS_OHTER_SAME_CLIENT_ON_LINE",e[e.METHOD_NOT_AVAILABLE=35011]="METHOD_NOT_AVAILABLE",e[e.METHOD_ONLY_SUPPORT_ULTRA_GROUP=35014]="METHOD_ONLY_SUPPORT_ULTRA_GROUP",e[e.DRAFT_SAVE_ERROR=35015]="DRAFT_SAVE_ERROR",e[e.DRAFT_REMOVE_ERROR=35016]="DRAFT_REMOVE_ERROR",e[e.CONVER_REMOVE_ERROR=35020]="CONVER_REMOVE_ERROR",e[e.CONVER_GET_ERROR=35021]="CONVER_GET_ERROR",e[e.SEARCH_PROPS_LIMIT_ERROR=35022]="SEARCH_PROPS_LIMIT_ERROR",e[e.INVALID_PARAMETER_MESSAGE_TYPE=35024]="INVALID_PARAMETER_MESSAGE_TYPE",e[e.INVALID_PARAMETER_ORDER=35025]="INVALID_PARAMETER_ORDER",e[e.INVALID_PARAMETER_DRAFT=35028]="INVALID_PARAMETER_DRAFT",e[e.INVALID_PARAMETER_MESSAGE=35029]="INVALID_PARAMETER_MESSAGE",e[e.INVALID_PARAMETER_PUSH_CONTENT=35030]="INVALID_PARAMETER_PUSH_CONTENT",e[e.INVALID_PARAMETER_SENDOPTIONS=35031]="INVALID_PARAMETER_SENDOPTIONS",e[e.INVALID_PARAMETER_CONTENT_DISPOSITION=35032]="INVALID_PARAMETER_CONTENT_DISPOSITION",e[e.INVALID_PARAMETER_SAVE_NAME=35033]="INVALID_PARAMETER_SAVE_NAME",e[e.INVALID_PARAMETER_SERVER_TYPE=35034]="INVALID_PARAMETER_SERVER_TYPE",e[e.INVALID_PARAMETER_CLEAN_SPACE=35035]="INVALID_PARAMETER_CLEAN_SPACE",e[e.INVALID_PARAMETER_CAN_INCLUDE_EXPANSION=35036]="INVALID_PARAMETER_CAN_INCLUDE_EXPANSION",e[e.INVALID_PARAMETER_DISABLE_NOTIFICATION=35037]="INVALID_PARAMETER_DISABLE_NOTIFICATION",e[e.INVALID_PARAMETER_CHECK_DUPLICATE=35038]="INVALID_PARAMETER_CHECK_DUPLICATE",e[e.INVALID_PARAMETER_IS_AUTO_DELETE=35039]="INVALID_PARAMETER_IS_AUTO_DELETE",e[e.INVALID_PARAMETER_IS_SEND_NOTIFICATION=35040]="INVALID_PARAMETER_IS_SEND_NOTIFICATION",e[e.INVALID_PARAMETER_IS_FORCE=35041]="INVALID_PARAMETER_IS_FORCE",e[e.INVALID_PARAMETER_IS_TOP=35042]="INVALID_PARAMETER_IS_TOP",e[e.INVALID_PARAMETER_IS_UPDATE_TIME=35043]="INVALID_PARAMETER_IS_UPDATE_TIME",e[e.INVALID_PARAMETER_CONTAIN_MUTED=35044]="INVALID_PARAMETER_CONTAIN_MUTED",e[e.INVALID_PARAMETER_IS_STATUS_MESSAGE=35045]="INVALID_PARAMETER_IS_STATUS_MESSAGE",e[e.INVALID_PARAMETER_IS_MENTIONED=35046]="INVALID_PARAMETER_IS_MENTIONED",e[e.INVALID_PARAMETER_IS_VOIP_PUSH=35047]="INVALID_PARAMETER_IS_VOIP_PUSH",e[e.INVALID_PARAMETER_MENTIONED_TYPE=35048]="INVALID_PARAMETER_MENTIONED_TYPE",e[e.INVALID_PARAMETER_PUSH_CONFIG=35049]="INVALID_PARAMETER_PUSH_CONFIG",e[e.INVALID_PARAMETER_PUSH_DATA=35050]="INVALID_PARAMETER_PUSH_DATA",e[e.DNS_PROXY_TIMEOUT=35051]="DNS_PROXY_TIMEOUT",e[e.DNS_PROXY_ERROR=35052]="DNS_PROXY_ERROR",e[e.DNS_PROXY_DATA_ERROR=35053]="DNS_PROXY_DATA_ERROR",e[e.INVALID_DISABLE_UPDATE_LAST_MESSAGE=35054]="INVALID_DISABLE_UPDATE_LAST_MESSAGE",e[e.ONLY_DEFAULT_CHANNEL_SUPPORTS_PINNING=35055]="ONLY_DEFAULT_CHANNEL_SUPPORTS_PINNING",e[e.SEND_READ_RECEIPT_CONF_ERROR=35056]="SEND_READ_RECEIPT_CONF_ERROR",e[e.SPEECH_TO_TEXT_DISABLE=35057]="SPEECH_TO_TEXT_DISABLE",e[e.SPEECH_TO_TEXT_REQUEST_IN_PROCESS=35058]="SPEECH_TO_TEXT_REQUEST_IN_PROCESS",e[e.SPEECH_TO_TEXT_MESSAGE_CONTENT_UNSUPPORTED=35059]="SPEECH_TO_TEXT_MESSAGE_CONTENT_UNSUPPORTED",e[e.TRANSLATION_PARAMS_TYPE_INVALID=35060]="TRANSLATION_PARAMS_TYPE_INVALID",e[e.TRANSLATION_PARAMS_LIST_INVALID=35061]="TRANSLATION_PARAMS_LIST_INVALID",e[e.INVALID_PARAMETER_TRANSLATE_STRATEGY=35062]="INVALID_PARAMETER_TRANSLATE_STRATEGY",e[e.TRANSLATION_LANGUAGE_SAME=35063]="TRANSLATION_LANGUAGE_SAME",e[e.INVALID_PARAMETER_TRANSLATE_MODE=35064]="INVALID_PARAMETER_TRANSLATE_MODE",e[e.TRANSLATION_TEXT_INVALID=35065]="TRANSLATION_TEXT_INVALID",e[e.MSG_BLOCK_SEND=35066]="MSG_BLOCK_SEND",e[e.CHATROOM_ID_ISNULL=36001]="CHATROOM_ID_ISNULL",e[e.CHARTOOM_JOIN_ERROR=36002]="CHARTOOM_JOIN_ERROR",e[e.CHATROOM_HISMESSAGE_ERROR=36003]="CHATROOM_HISMESSAGE_ERROR",e[e.CHATROOM_KV_NOT_FOUND=36004]="CHATROOM_KV_NOT_FOUND",e[e.BLACK_ADD_ERROR=37001]="BLACK_ADD_ERROR",e[e.BLACK_GETSTATUS_ERROR=37002]="BLACK_GETSTATUS_ERROR",e[e.BLACK_REMOVE_ERROR=37003]="BLACK_REMOVE_ERROR",e[e.DRAF_GET_ERROR=38001]="DRAF_GET_ERROR",e[e.STREAM_MESSAGE_DISABLE=39001]="STREAM_MESSAGE_DISABLE",e[e.STREAM_MESSAGE_REQUEST_COUNT_LIMIT_EXCEEDED=39002]="STREAM_MESSAGE_REQUEST_COUNT_LIMIT_EXCEEDED",e[e.STREAM_MESSAGE_EXPANSION_KEY_ERROR=39003]="STREAM_MESSAGE_EXPANSION_KEY_ERROR",e[e.STREAM_MESSAGE_REQUEST_FAIL=39005]="STREAM_MESSAGE_REQUEST_FAIL",e[e.STREAM_MESSAGE_REQUEST_IN_PROCESS=39006]="STREAM_MESSAGE_REQUEST_IN_PROCESS",e[e.STREAM_MESSAGE_SYNCED=39007]="STREAM_MESSAGE_SYNCED",e[e.QNTKN_GET_ERROR=41002]="QNTKN_GET_ERROR",e[e.TIMEOUT=-1]="TIMEOUT"}(y||(y={})),function(e){e[e.NONE=0]="NONE",e[e.PRIVATE=1]="PRIVATE",e[e.DISCUSSION=2]="DISCUSSION",e[e.GROUP=3]="GROUP",e[e.CHATROOM=4]="CHATROOM",e[e.CUSTOMER_SERVICE=5]="CUSTOMER_SERVICE",e[e.SYSTEM=6]="SYSTEM",e[e.APP_PUBLIC_SERVICE=7]="APP_PUBLIC_SERVICE",e[e.PUBLIC_SERVICE=8]="PUBLIC_SERVICE",e[e.ULTRA_GROUP=10]="ULTRA_GROUP",e[e.RTC_ROOM=12]="RTC_ROOM"}(v||(v={})),function(e){e[e.RMTP=1]="RMTP",e[e.TLS=2]="TLS",e[e.RPP=3]="RPP",e[e.QUIC=4]="QUIC",e[e.WS=5]="WS",e[e.WSS=6]="WSS",e[e.HTTP=11]="HTTP",e[e.HTTPS=12]="HTTPS"}(V||(V={}));const b=function(){var e,t={},i=function(e){var t=function(e,i,n){if(void 0===e&&(e=t.DEFAULT_CAPACITY),void 0===i&&(i=t.DEFAULT_ENDIAN),void 0===n&&(n=t.DEFAULT_NOASSERT),!n){if((e|=0)<0)throw RangeError("Illegal capacity");i=!!i,n=!!n}this.buffer=0===e?r:new ArrayBuffer(e),this.view=0===e?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=i,this.noAssert=n};t.VERSION="5.0.1",t.LITTLE_ENDIAN=!0,t.BIG_ENDIAN=!1,t.DEFAULT_CAPACITY=16,t.DEFAULT_ENDIAN=t.BIG_ENDIAN,t.DEFAULT_NOASSERT=!1,t.Long=e||null;var i=t.prototype;i.__isByteBuffer__,Object.defineProperty(i,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var r=new ArrayBuffer(0),n=String.fromCharCode;function E(e){var t=0;return function(){return t<e.length?e.charCodeAt(t++):null}}function s(){var e=[],t=[];return function(){if(0===arguments.length)return t.join("")+n.apply(String,e);e.length+arguments.length>1024&&(t.push(n.apply(String,e)),e.length=0),Array.prototype.push.apply(e,arguments)}}function I(e,t,i,r,n){var E,s,I=8*n-r-1,o=(1<<I)-1,_=o>>1,a=-7,R=i?n-1:0,f=i?-1:1,h=e[t+R];for(R+=f,E=h&(1<<-a)-1,h>>=-a,a+=I;a>0;E=256*E+e[t+R],R+=f,a-=8);for(s=E&(1<<-a)-1,E>>=-a,a+=r;a>0;s=256*s+e[t+R],R+=f,a-=8);if(0===E)E=1-_;else{if(E===o)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),E-=_}return(h?-1:1)*s*Math.pow(2,E-r)}function o(e,t,i,r,n,E){var s,I,o,_=8*E-n-1,a=(1<<_)-1,R=a>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:E-1,l=r?1:-1,T=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(I=isNaN(t)?1:0,s=a):(s=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-s))<1&&(s--,o*=2),(t+=s+R>=1?f/o:f*Math.pow(2,1-R))*o>=2&&(s++,o/=2),s+R>=a?(I=0,s=a):s+R>=1?(I=(t*o-1)*Math.pow(2,n),s+=R):(I=t*Math.pow(2,R-1)*Math.pow(2,n),s=0));n>=8;e[i+h]=255&I,h+=l,I/=256,n-=8);for(s=s<<n|I,_+=n;_>0;e[i+h]=255&s,h+=l,s/=256,_-=8);e[i+h-l]|=128*T}t.accessor=function(){return Uint8Array},t.allocate=function(e,i,r){return new t(e,i,r)},t.concat=function(e,i,r,n){"boolean"!=typeof i&&"string"==typeof i||(n=r,r=i,i=void 0);for(var E,s=0,I=0,o=e.length;I<o;++I)t.isByteBuffer(e[I])||(e[I]=t.wrap(e[I],i)),(E=e[I].limit-e[I].offset)>0&&(s+=E);if(0===s)return new t(0,r,n);var _,a=new t(s,r,n);for(I=0;I<o;)(E=(_=e[I++]).limit-_.offset)<=0||(a.view.set(_.view.subarray(_.offset,_.limit),a.offset),a.offset+=E);return a.limit=a.offset,a.offset=0,a},t.isByteBuffer=function(e){return!0===(e&&e.__isByteBuffer__)},t.type=function(){return ArrayBuffer},t.wrap=function(e,r,n,E){if("string"!=typeof r&&(E=n,n=r,r=void 0),"string"==typeof e)switch(void 0===r&&(r="utf8"),r){case"base64":return t.fromBase64(e,n);case"hex":return t.fromHex(e,n);case"binary":return t.fromBinary(e,n);case"utf8":return t.fromUTF8(e,n);case"debug":return t.fromDebug(e,n);default:throw Error("Unsupported encoding: "+r)}if(null===e||"object"!=typeof e)throw TypeError("Illegal buffer");var s;if(t.isByteBuffer(e))return(s=i.clone.call(e)).markedOffset=-1,s;if(e instanceof Uint8Array)s=new t(0,n,E),e.length>0&&(s.buffer=e.buffer,s.offset=e.byteOffset,s.limit=e.byteOffset+e.byteLength,s.view=new Uint8Array(e.buffer));else if(e instanceof ArrayBuffer)s=new t(0,n,E),e.byteLength>0&&(s.buffer=e,s.offset=0,s.limit=e.byteLength,s.view=e.byteLength>0?new Uint8Array(e):null);else{if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Illegal buffer");(s=new t(e.length,n,E)).limit=e.length;for(var I=0;I<e.length;++I)s.view[I]=e[I]}return s},i.writeBitSet=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if(!(e instanceof Array))throw TypeError("Illegal BitSet: Not an array");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var r,n=t,E=e.length,s=E>>3,I=0;for(t+=this.writeVarint32(E,t);s--;)r=1&!!e[I++]|(1&!!e[I++])<<1|(1&!!e[I++])<<2|(1&!!e[I++])<<3|(1&!!e[I++])<<4|(1&!!e[I++])<<5|(1&!!e[I++])<<6|(1&!!e[I++])<<7,this.writeByte(r,t++);if(I<E){var o=0;for(r=0;I<E;)r|=(1&!!e[I++])<<o++;this.writeByte(r,t++)}return i?(this.offset=t,this):t-n},i.readBitSet=function(e){var t=void 0===e;t&&(e=this.offset);var i,r=this.readVarint32(e),n=r.value,E=n>>3,s=0,I=[];for(e+=r.length;E--;)i=this.readByte(e++),I[s++]=!!(1&i),I[s++]=!!(2&i),I[s++]=!!(4&i),I[s++]=!!(8&i),I[s++]=!!(16&i),I[s++]=!!(32&i),I[s++]=!!(64&i),I[s++]=!!(128&i);if(s<n){var o=0;for(i=this.readByte(e++);s<n;)I[s++]=!!(i>>o++&1)}return t&&(this.offset=e),I},i.readBytes=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+"+e+") <= "+this.buffer.byteLength)}var r=this.slice(t,t+e);return i&&(this.offset+=e),r},i.writeBytes=i.append,i.writeInt8=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=1,this.view[t]=e,i&&(this.offset+=1),this},i.writeByte=i.writeInt8,i.readInt8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i=this.view[e];return 128&~i||(i=-(255-i+1)),t&&(this.offset+=1),i},i.readByte=i.readInt8,i.writeUint8=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=1,this.view[t]=e,i&&(this.offset+=1),this},i.writeUInt8=i.writeUint8,i.readUint8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i=this.view[e];return t&&(this.offset+=1),i},i.readUInt8=i.readUint8,i.writeInt16=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),i&&(this.offset+=2),this},i.writeShort=i.writeInt16,i.readInt16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var i=0;return this.littleEndian?(i=this.view[e],i|=this.view[e+1]<<8):(i=this.view[e]<<8,i|=this.view[e+1]),32768&~i||(i=-(65535-i+1)),t&&(this.offset+=2),i},i.readShort=i.readInt16,i.writeUint16=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),i&&(this.offset+=2),this},i.writeUInt16=i.writeUint16,i.readUint16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var i=0;return this.littleEndian?(i=this.view[e],i|=this.view[e+1]<<8):(i=this.view[e]<<8,i|=this.view[e+1]),t&&(this.offset+=2),i},i.readUInt16=i.readUint16,i.writeInt32=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=4,this.littleEndian?(this.view[t+3]=e>>>24&255,this.view[t+2]=e>>>16&255,this.view[t+1]=e>>>8&255,this.view[t]=255&e):(this.view[t]=e>>>24&255,this.view[t+1]=e>>>16&255,this.view[t+2]=e>>>8&255,this.view[t+3]=255&e),i&&(this.offset+=4),this},i.writeInt=i.writeInt32,i.readInt32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var i=0;return this.littleEndian?(i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0),i|=0,t&&(this.offset+=4),i},i.readInt=i.readInt32,i.writeUint32=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=4,this.littleEndian?(this.view[t+3]=e>>>24&255,this.view[t+2]=e>>>16&255,this.view[t+1]=e>>>8&255,this.view[t]=255&e):(this.view[t]=e>>>24&255,this.view[t+1]=e>>>16&255,this.view[t+2]=e>>>8&255,this.view[t+3]=255&e),i&&(this.offset+=4),this},i.writeUInt32=i.writeUint32,i.readUint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var i=0;return this.littleEndian?(i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0),t&&(this.offset+=4),i},i.readUInt32=i.readUint32,e&&(i.writeInt64=function(t,i){var r=void 0===i;if(r&&(i=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),i+=8;var n=this.buffer.byteLength;i>n&&this.resize((n*=2)>i?n:i),i-=8;var E=t.low,s=t.high;return this.littleEndian?(this.view[i+3]=E>>>24&255,this.view[i+2]=E>>>16&255,this.view[i+1]=E>>>8&255,this.view[i]=255&E,i+=4,this.view[i+3]=s>>>24&255,this.view[i+2]=s>>>16&255,this.view[i+1]=s>>>8&255,this.view[i]=255&s):(this.view[i]=s>>>24&255,this.view[i+1]=s>>>16&255,this.view[i+2]=s>>>8&255,this.view[i+3]=255&s,i+=4,this.view[i]=E>>>24&255,this.view[i+1]=E>>>16&255,this.view[i+2]=E>>>8&255,this.view[i+3]=255&E),r&&(this.offset+=8),this},i.writeLong=i.writeInt64,i.readInt64=function(t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var r=0,n=0;this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0,t+=4,n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0):(n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0,t+=4,r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0);var E=new e(r,n,!1);return i&&(this.offset+=8),E},i.readLong=i.readInt64,i.writeUint64=function(t,i){var r=void 0===i;if(r&&(i=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),i+=8;var n=this.buffer.byteLength;i>n&&this.resize((n*=2)>i?n:i),i-=8;var E=t.low,s=t.high;return this.littleEndian?(this.view[i+3]=E>>>24&255,this.view[i+2]=E>>>16&255,this.view[i+1]=E>>>8&255,this.view[i]=255&E,i+=4,this.view[i+3]=s>>>24&255,this.view[i+2]=s>>>16&255,this.view[i+1]=s>>>8&255,this.view[i]=255&s):(this.view[i]=s>>>24&255,this.view[i+1]=s>>>16&255,this.view[i+2]=s>>>8&255,this.view[i+3]=255&s,i+=4,this.view[i]=E>>>24&255,this.view[i+1]=E>>>16&255,this.view[i+2]=E>>>8&255,this.view[i+3]=255&E),r&&(this.offset+=8),this},i.writeUInt64=i.writeUint64,i.readUint64=function(t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var r=0,n=0;this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0,t+=4,n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0):(n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0,t+=4,r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0);var E=new e(r,n,!0);return i&&(this.offset+=8),E},i.readUInt64=i.readUint64),i.writeFloat32=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=4,o(this.view,e,t,this.littleEndian,23,4),i&&(this.offset+=4),this},i.writeFloat=i.writeFloat32,i.readFloat32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var i=I(this.view,e,this.littleEndian,23,4);return t&&(this.offset+=4),i},i.readFloat=i.readFloat32,i.writeFloat64=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=8;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=8,o(this.view,e,t,this.littleEndian,52,8),i&&(this.offset+=8),this},i.writeDouble=i.writeFloat64,i.readFloat64=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var i=I(this.view,e,this.littleEndian,52,8);return t&&(this.offset+=8),i},i.readDouble=i.readFloat64,t.MAX_VARINT32_BYTES=5,t.calculateVarint32=function(e){return(e>>>=0)<128?1:e<16384?2:e<1<<21?3:e<1<<28?4:5},t.zigZagEncode32=function(e){return((e|=0)<<1^e>>31)>>>0},t.zigZagDecode32=function(e){return e>>>1^-(1&e)},i.writeVarint32=function(e,i){var r=void 0===i;if(r&&(i=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}var n,E=t.calculateVarint32(e);i+=E;var s=this.buffer.byteLength;for(i>s&&this.resize((s*=2)>i?s:i),i-=E,e>>>=0;e>=128;)n=127&e|128,this.view[i++]=n,e>>>=7;return this.view[i++]=e,r?(this.offset=i,this):E},i.writeVarint32ZigZag=function(e,i){return this.writeVarint32(t.zigZagEncode32(e),i)},i.readVarint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i,r=0,n=0;do{if(!this.noAssert&&e>this.limit){var E=Error("Truncated");throw E.truncated=!0,E}i=this.view[e++],r<5&&(n|=(127&i)<<7*r),++r}while(128&i);return n|=0,t?(this.offset=e,n):{value:n,length:r}},i.readVarint32ZigZag=function(e){var i=this.readVarint32(e);return"object"==typeof i?i.value=t.zigZagDecode32(i.value):i=t.zigZagDecode32(i),i},e&&(t.MAX_VARINT64_BYTES=10,t.calculateVarint64=function(t){"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t));var i=t.toInt()>>>0,r=t.shiftRightUnsigned(28).toInt()>>>0,n=t.shiftRightUnsigned(56).toInt()>>>0;return 0==n?0==r?i<16384?i<128?1:2:i<1<<21?3:4:r<16384?r<128?5:6:r<1<<21?7:8:n<128?9:10},t.zigZagEncode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftLeft(1).xor(t.shiftRight(63)).toUnsigned()},t.zigZagDecode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftRightUnsigned(1).xor(t.and(e.ONE).toSigned().negate()).toSigned()},i.writeVarint64=function(i,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"==typeof i)i=e.fromNumber(i);else if("string"==typeof i)i=e.fromString(i);else if(!(i&&i instanceof e))throw TypeError("Illegal value: "+i+" (not an integer or Long)");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}"number"==typeof i?i=e.fromNumber(i,!1):"string"==typeof i?i=e.fromString(i,!1):!1!==i.unsigned&&(i=i.toSigned());var E=t.calculateVarint64(i),s=i.toInt()>>>0,I=i.shiftRightUnsigned(28).toInt()>>>0,o=i.shiftRightUnsigned(56).toInt()>>>0;r+=E;var _=this.buffer.byteLength;switch(r>_&&this.resize((_*=2)>r?_:r),r-=E,E){case 10:this.view[r+9]=o>>>7&1;case 9:this.view[r+8]=9!==E?128|o:127&o;case 8:this.view[r+7]=8!==E?I>>>21|128:I>>>21&127;case 7:this.view[r+6]=7!==E?I>>>14|128:I>>>14&127;case 6:this.view[r+5]=6!==E?I>>>7|128:I>>>7&127;case 5:this.view[r+4]=5!==E?128|I:127&I;case 4:this.view[r+3]=4!==E?s>>>21|128:s>>>21&127;case 3:this.view[r+2]=3!==E?s>>>14|128:s>>>14&127;case 2:this.view[r+1]=2!==E?s>>>7|128:s>>>7&127;case 1:this.view[r]=1!==E?128|s:127&s}return n?(this.offset+=E,this):E},i.writeVarint64ZigZag=function(e,i){return this.writeVarint64(t.zigZagEncode64(e),i)},i.readVarint64=function(t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=t,n=0,E=0,s=0,I=0;if(n=127&(I=this.view[t++]),128&I&&(n|=(127&(I=this.view[t++]))<<7,(128&I||this.noAssert&&void 0===I)&&(n|=(127&(I=this.view[t++]))<<14,(128&I||this.noAssert&&void 0===I)&&(n|=(127&(I=this.view[t++]))<<21,(128&I||this.noAssert&&void 0===I)&&(E=127&(I=this.view[t++]),(128&I||this.noAssert&&void 0===I)&&(E|=(127&(I=this.view[t++]))<<7,(128&I||this.noAssert&&void 0===I)&&(E|=(127&(I=this.view[t++]))<<14,(128&I||this.noAssert&&void 0===I)&&(E|=(127&(I=this.view[t++]))<<21,(128&I||this.noAssert&&void 0===I)&&(s=127&(I=this.view[t++]),(128&I||this.noAssert&&void 0===I)&&(s|=(127&(I=this.view[t++]))<<7,128&I||this.noAssert&&void 0===I))))))))))throw Error("Buffer overrun");var o=e.fromBits(n|E<<28,E>>>4|s<<24,!1);return i?(this.offset=t,o):{value:o,length:t-r}},i.readVarint64ZigZag=function(i){var r=this.readVarint64(i);return r&&r.value instanceof e?r.value=t.zigZagDecode64(r.value):r=t.zigZagDecode64(r),r}),i.writeCString=function(e,t){var i=void 0===t;i&&(t=this.offset);var r,n=e.length;if(!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");for(r=0;r<n;++r)if(0===e.charCodeAt(r))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}n=a.calculateUTF16asUTF8(E(e))[1],t+=n+1;var s=this.buffer.byteLength;return t>s&&this.resize((s*=2)>t?s:t),t-=n+1,a.encodeUTF16toUTF8(E(e),function(e){this.view[t++]=e}.bind(this)),this.view[t++]=0,i?(this.offset=t,this):n},i.readCString=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i,r=e,n=-1;return a.decodeUTF8toUTF16(function(){if(0===n)return null;if(e>=this.limit)throw RangeError("Illegal range: Truncated data, "+e+" < "+this.limit);return 0===(n=this.view[e++])?null:n}.bind(this),i=s(),!0),t?(this.offset=e,i()):{string:i(),length:e-r}},i.writeIString=function(e,t){var i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var r,n=t;r=a.calculateUTF16asUTF8(E(e),this.noAssert)[1],t+=4+r;var s=this.buffer.byteLength;if(t>s&&this.resize((s*=2)>t?s:t),t-=4+r,this.littleEndian?(this.view[t+3]=r>>>24&255,this.view[t+2]=r>>>16&255,this.view[t+1]=r>>>8&255,this.view[t]=255&r):(this.view[t]=r>>>24&255,this.view[t+1]=r>>>16&255,this.view[t+2]=r>>>8&255,this.view[t+3]=255&r),t+=4,a.encodeUTF16toUTF8(E(e),function(e){this.view[t++]=e}.bind(this)),t!==n+4+r)throw RangeError("Illegal range: Truncated data, "+t+" == "+(t+4+r));return i?(this.offset=t,this):t-n},i.readIString=function(e){var i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var r=e,n=this.readUint32(e),E=this.readUTF8String(n,t.METRICS_BYTES,e+=4);return e+=E.length,i?(this.offset=e,E.string):{string:E.string,length:e-r}},t.METRICS_CHARS="c",t.METRICS_BYTES="b",i.writeUTF8String=function(e,t){var i,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var n=t;i=a.calculateUTF16asUTF8(E(e))[1],t+=i;var s=this.buffer.byteLength;return t>s&&this.resize((s*=2)>t?s:t),t-=i,a.encodeUTF16toUTF8(E(e),function(e){this.view[t++]=e}.bind(this)),r?(this.offset=t,this):t-n},i.writeString=i.writeUTF8String,t.calculateUTF8Chars=function(e){return a.calculateUTF16asUTF8(E(e))[0]},t.calculateUTF8Bytes=function(e){return a.calculateUTF16asUTF8(E(e))[1]},t.calculateString=t.calculateUTF8Bytes,i.readUTF8String=function(e,i,r){"number"==typeof i&&(r=i,i=void 0);var n=void 0===r;if(n&&(r=this.offset),void 0===i&&(i=t.METRICS_CHARS),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");if(e|=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var E,I=0,o=r;if(i===t.METRICS_CHARS){if(E=s(),a.decodeUTF8(function(){return I<e&&r<this.limit?this.view[r++]:null}.bind(this),(function(e){++I,a.UTF8toUTF16(e,E)})),I!==e)throw RangeError("Illegal range: Truncated data, "+I+" == "+e);return n?(this.offset=r,E()):{string:E(),length:r-o}}if(i===t.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+"+e+") <= "+this.buffer.byteLength)}var _=r+e;if(a.decodeUTF8toUTF16(function(){return r<_?this.view[r++]:null}.bind(this),E=s(),this.noAssert),r!==_)throw RangeError("Illegal range: Truncated data, "+r+" == "+_);return n?(this.offset=r,E()):{string:E(),length:r-o}}throw TypeError("Unsupported metrics: "+i)},i.readString=i.readUTF8String,i.writeVString=function(e,i){var r=void 0===i;if(r&&(i=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}var n,s,I=i;n=a.calculateUTF16asUTF8(E(e),this.noAssert)[1],s=t.calculateVarint32(n),i+=s+n;var o=this.buffer.byteLength;if(i>o&&this.resize((o*=2)>i?o:i),i-=s+n,i+=this.writeVarint32(n,i),a.encodeUTF16toUTF8(E(e),function(e){this.view[i++]=e}.bind(this)),i!==I+n+s)throw RangeError("Illegal range: Truncated data, "+i+" == "+(i+n+s));return r?(this.offset=i,this):i-I},i.readVString=function(e){var i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r=e,n=this.readVarint32(e),E=this.readUTF8String(n.value,t.METRICS_BYTES,e+=n.length);return e+=E.length,i?(this.offset=e,E.string):{string:E.string,length:e-r}},i.append=function(e,i,r){"number"!=typeof i&&"string"==typeof i||(r=i,i=void 0);var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}e instanceof t||(e=t.wrap(e,i));var E=e.limit-e.offset;if(E<=0)return this;r+=E;var s=this.buffer.byteLength;return r>s&&this.resize((s*=2)>r?s:r),r-=E,this.view.set(e.view.subarray(e.offset,e.limit),r),e.offset+=E,n&&(this.offset+=E),this},i.appendTo=function(e,t){return e.append(this,t),this},i.assert=function(e){return this.noAssert=!e,this},i.capacity=function(){return this.buffer.byteLength},i.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},i.clone=function(e){var i=new t(0,this.littleEndian,this.noAssert);return e?(i.buffer=new ArrayBuffer(this.buffer.byteLength),i.view=new Uint8Array(i.buffer)):(i.buffer=this.buffer,i.view=this.view),i.offset=this.offset,i.markedOffset=this.markedOffset,i.limit=this.limit,i},i.compact=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(0===e&&t===this.buffer.byteLength)return this;var i=t-e;if(0===i)return this.buffer=r,this.view=null,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=0,this;var n=new ArrayBuffer(i),E=new Uint8Array(n);return E.set(this.view.subarray(e,t)),this.buffer=n,this.view=E,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=i,this},i.copy=function(e,i){if(void 0===e&&(e=this.offset),void 0===i&&(i=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal end: Not an integer");if(i>>>=0,e<0||e>i||i>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+i+" <= "+this.buffer.byteLength)}if(e===i)return new t(0,this.littleEndian,this.noAssert);var r=i-e,n=new t(r,this.littleEndian,this.noAssert);return n.offset=0,n.limit=r,n.markedOffset>=0&&(n.markedOffset-=e),this.copyTo(n,0,e,i),n},i.copyTo=function(e,i,r,n){var E,s;if(!this.noAssert&&!t.isByteBuffer(e))throw TypeError("Illegal target: Not a ByteBuffer");if(i=(s=void 0===i)?e.offset:0|i,r=(E=void 0===r)?this.offset:0|r,n=void 0===n?this.limit:0|n,i<0||i>e.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+i+" <= "+e.buffer.byteLength);if(r<0||n>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+r+" <= "+this.buffer.byteLength);var I=n-r;return 0===I?e:(e.ensureCapacity(i+I),e.view.set(this.view.subarray(r,n),i),E&&(this.offset+=I),s&&(e.offset+=I),this)},i.ensureCapacity=function(e){var t=this.buffer.byteLength;return t<e?this.resize((t*=2)>e?t:e):this},i.fill=function(e,t,i){var r=void 0===t;if(r&&(t=this.offset),"string"==typeof e&&e.length>0&&(e=e.charCodeAt(0)),void 0===t&&(t=this.offset),void 0===i&&(i=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal end: Not an integer");if(i>>>=0,t<0||t>i||i>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+i+" <= "+this.buffer.byteLength)}if(t>=i)return this;for(;t<i;)this.view[t++]=e;return r&&(this.offset=t),this},i.flip=function(){return this.limit=this.offset,this.offset=0,this},i.mark=function(e){if(e=void 0===e?this.offset:e,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=e,this},i.order=function(e){if(!this.noAssert&&"boolean"!=typeof e)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!e,this},i.LE=function(e){return this.littleEndian=void 0===e||!!e,this},i.BE=function(e){return this.littleEndian=void 0!==e&&!e,this},i.prepend=function(e,i,r){"number"!=typeof i&&"string"==typeof i||(r=i,i=void 0);var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}e instanceof t||(e=t.wrap(e,i));var E=e.limit-e.offset;if(E<=0)return this;var s=E-r;if(s>0){var I=new ArrayBuffer(this.buffer.byteLength+s),o=new Uint8Array(I);o.set(this.view.subarray(r,this.buffer.byteLength),E),this.buffer=I,this.view=o,this.offset+=s,this.markedOffset>=0&&(this.markedOffset+=s),this.limit+=s,r+=s}else new Uint8Array(this.buffer);return this.view.set(e.view.subarray(e.offset,e.limit),r-E),e.offset=e.limit,n&&(this.offset-=E),this},i.prependTo=function(e,t){return e.prepend(this,t),this},i.printDebug=function(e){"function"!=typeof e&&(e=console.log.bind(console)),e(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},i.remaining=function(){return this.limit-this.offset},i.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},i.resize=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal capacity: "+e+" (not an integer)");if((e|=0)<0)throw RangeError("Illegal capacity: 0 <= "+e)}if(this.buffer.byteLength<e){var t=new ArrayBuffer(e),i=new Uint8Array(t);i.set(this.view),this.buffer=t,this.view=i}return this},i.reverse=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return e===t||Array.prototype.reverse.call(this.view.subarray(e,t)),this},i.skip=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");e|=0}var t=this.offset+e;if(!this.noAssert&&(t<0||t>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+e+" <= "+this.buffer.byteLength);return this.offset=t,this},i.slice=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var i=this.clone();return i.offset=e,i.limit=t,i},i.toBuffer=function(e){var t=this.offset,i=this.limit;if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: Not an integer");if(t>>>=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal limit: Not an integer");if(i>>>=0,t<0||t>i||i>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+i+" <= "+this.buffer.byteLength)}if(!e&&0===t&&i===this.buffer.byteLength)return this.buffer;if(t===i)return r;var n=new ArrayBuffer(i-t);return new Uint8Array(n).set(new Uint8Array(this.buffer).subarray(t,i),0),n},i.toArrayBuffer=i.toBuffer,i.toString=function(e,t,i){if(void 0===e)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof e&&(i=t=e="utf8"),e){case"utf8":return this.toUTF8(t,i);case"base64":return this.toBase64(t,i);case"hex":return this.toHex(t,i);case"binary":return this.toBinary(t,i);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+e)}};var _=function(){for(var e={},t=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],i=[],r=0,n=t.length;r<n;++r)i[t[r]]=r;return e.encode=function(e,i){for(var r,n;null!==(r=e());)i(t[r>>2&63]),n=(3&r)<<4,null!==(r=e())?(i(t[63&((n|=r>>4&15)|r>>4&15)]),n=(15&r)<<2,null!==(r=e())?(i(t[63&(n|r>>6&3)]),i(t[63&r])):(i(t[63&n]),i(61))):(i(t[63&n]),i(61),i(61))},e.decode=function(e,t){var r,n,E;function s(e){throw Error("Illegal character code: "+e)}for(;null!==(r=e());)if(void 0===(n=i[r])&&s(r),null!==(r=e())&&(void 0===(E=i[r])&&s(r),t(n<<2>>>0|(48&E)>>4),null!==(r=e()))){if(void 0===(n=i[r])){if(61===r)break;s(r)}if(t((15&E)<<4>>>0|(60&n)>>2),null!==(r=e())){if(void 0===(E=i[r])){if(61===r)break;s(r)}t((3&n)<<6>>>0|E)}}},e.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)},e}();i.toBase64=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity||e>t)throw RangeError("begin, end");var i;return _.encode(function(){return e<t?this.view[e++]:null}.bind(this),i=s()),i()},t.fromBase64=function(e,i){if("string"!=typeof e)throw TypeError("str");var r=new t(e.length/4*3,i),n=0;return _.decode(E(e),(function(e){r.view[n++]=e})),r.limit=n,r},t.btoa=function(e){return t.fromBinary(e).toBase64()},t.atob=function(e){return t.fromBase64(e).toBinary()},i.toBinary=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity()||e>t)throw RangeError("begin, end");if(e===t)return"";for(var i=[],r=[];e<t;)i.push(this.view[e++]),i.length>=1024&&(r.push(String.fromCharCode.apply(String,i)),i=[]);return r.join("")+String.fromCharCode.apply(String,i)},t.fromBinary=function(e,i){if("string"!=typeof e)throw TypeError("str");for(var r,n=0,E=e.length,s=new t(E,i);n<E;){if((r=e.charCodeAt(n))>255)throw RangeError("illegal char code: "+r);s.view[n++]=r}return s.limit=E,s},i.toDebug=function(e){for(var t,i=-1,r=this.buffer.byteLength,n="",E="",s="";i<r;){if(-1!==i&&(n+=(t=this.view[i])<16?"0"+t.toString(16).toUpperCase():t.toString(16).toUpperCase(),e&&(E+=t>32&&t<127?String.fromCharCode(t):".")),++i,e&&i>0&&i%16==0&&i!==r){for(;n.length<51;)n+=" ";s+=n+E+"\n",n=E=""}i===this.offset&&i===this.limit?n+=i===this.markedOffset?"!":"|":i===this.offset?n+=i===this.markedOffset?"[":"<":i===this.limit?n+=i===this.markedOffset?"]":">":n+=i===this.markedOffset?"'":e||0!==i&&i!==r?" ":""}if(e&&" "!==n){for(;n.length<51;)n+=" ";s+=n+E+"\n"}return e?s:n},t.fromDebug=function(e,i,r){for(var n,E,s=e.length,I=new t((s+1)/3|0,i,r),o=0,_=0,a=!1,R=!1,f=!1,h=!1,l=!1;o<s;){switch(n=e.charAt(o++)){case"!":if(!r){if(R||f||h){l=!0;break}R=f=h=!0}I.offset=I.markedOffset=I.limit=_,a=!1;break;case"|":if(!r){if(R||h){l=!0;break}R=h=!0}I.offset=I.limit=_,a=!1;break;case"[":if(!r){if(R||f){l=!0;break}R=f=!0}I.offset=I.markedOffset=_,a=!1;break;case"<":if(!r){if(R){l=!0;break}R=!0}I.offset=_,a=!1;break;case"]":if(!r){if(h||f){l=!0;break}h=f=!0}I.limit=I.markedOffset=_,a=!1;break;case">":if(!r){if(h){l=!0;break}h=!0}I.limit=_,a=!1;break;case"'":if(!r){if(f){l=!0;break}f=!0}I.markedOffset=_,a=!1;break;case" ":a=!1;break;default:if(!r&&a){l=!0;break}if(E=parseInt(n+e.charAt(o++),16),!r&&(isNaN(E)||E<0||E>255))throw TypeError("Illegal str: Not a debug encoded string");I.view[_++]=E,a=!0}if(l)throw TypeError("Illegal str: Invalid symbol at "+o)}if(!r){if(!R||!h)throw TypeError("Illegal str: Missing offset or limit");if(_<I.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+_+" < "+s)}return I},i.toHex=function(e,t){if(e=void 0===e?this.offset:e,t=void 0===t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}for(var i,r=new Array(t-e);e<t;)(i=this.view[e++])<16?r.push("0",i.toString(16)):r.push(i.toString(16));return r.join("")},t.fromHex=function(e,i,r){if(!r){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(var n,E=e.length,s=new t(E/2|0,i),I=0,o=0;I<E;I+=2){if(n=parseInt(e.substring(I,I+2),16),!r&&(!isFinite(n)||n<0||n>255))throw TypeError("Illegal str: Contains non-hex characters");s.view[o++]=n}return s.limit=o,s};var a=function(){var e={MAX_CODEPOINT:1114111,encodeUTF8:function(e,t){var i=null;for("number"==typeof e&&(i=e,e=function(){return null});null!==i||null!==(i=e());)i<128?t(127&i):i<2048?(t(i>>6&31|192),t(63&i|128)):i<65536?(t(i>>12&15|224),t(i>>6&63|128),t(63&i|128)):(t(i>>18&7|240),t(i>>12&63|128),t(i>>6&63|128),t(63&i|128)),i=null},decodeUTF8:function(e,t){for(var i,r,n,E,s=function(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};null!==(i=e());)if(128&i)if(192==(224&i))null===(r=e())&&s([i,r]),t((31&i)<<6|63&r);else if(224==(240&i))(null===(r=e())||null===(n=e()))&&s([i,r,n]),t((15&i)<<12|(63&r)<<6|63&n);else{if(240!=(248&i))throw RangeError("Illegal starting byte: "+i);(null===(r=e())||null===(n=e())||null===(E=e()))&&s([i,r,n,E]),t((7&i)<<18|(63&r)<<12|(63&n)<<6|63&E)}else t(i)},UTF16toUTF8:function(e,t){for(var i,r=null;null!==(i=null!==r?r:e());)i>=55296&&i<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(i-55296)+r-56320+65536),r=null):t(i);null!==r&&t(r)},UTF8toUTF16:function(e,t){var i=null;for("number"==typeof e&&(i=e,e=function(){return null});null!==i||null!==(i=e());)i<=65535?t(i):(t(55296+((i-=65536)>>10)),t(i%1024+56320)),i=null},encodeUTF16toUTF8:function(t,i){e.UTF16toUTF8(t,(function(t){e.encodeUTF8(t,i)}))},decodeUTF8toUTF16:function(t,i){e.decodeUTF8(t,(function(t){e.UTF8toUTF16(t,i)}))},calculateCodePoint:function(e){return e<128?1:e<2048?2:e<65536?3:4},calculateUTF8:function(e){for(var t,i=0;null!==(t=e());)i+=t<128?1:t<2048?2:t<65536?3:4;return i},calculateUTF16asUTF8:function(t){var i=0,r=0;return e.UTF16toUTF8(t,(function(e){++i,r+=e<128?1:e<2048?2:e<65536?3:4})),[i,r]}};return e}();return i.toUTF8=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var i;try{a.decodeUTF8toUTF16(function(){return e<t?this.view[e++]:null}.bind(this),i=s())}catch(i){if(e!==t)throw RangeError("Illegal range: Truncated data, "+e+" != "+t)}return i()},t.fromUTF8=function(e,i,r){if(!r&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");var n=new t(a.calculateUTF16asUTF8(E(e),!0)[1],i,r),s=0;return a.encodeUTF16toUTF8(E(e),(function(e){n.view[s++]=e})),n.limit=s,n},t}(function(){function e(e,t,i){this.low=0|e,this.high=0|t,this.unsigned=!!i}function t(e){return!0===(e&&e.__isLong__)}e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t;var i={},r={};function n(e,t){var n,E,I;return t?(I=0<=(e>>>=0)&&e<256)&&(E=r[e])?E:(n=s(e,(0|e)<0?-1:0,!0),I&&(r[e]=n),n):(I=-128<=(e|=0)&&e<128)&&(E=i[e])?E:(n=s(e,e<0?-1:0,!1),I&&(i[e]=n),n)}function E(e,t){if(isNaN(e)||!isFinite(e))return t?T:l;if(t){if(e<0)return T;if(e>=R)return S}else{if(e<=-f)return M;if(e+1>=f)return O}return e<0?E(-e,t).neg():s(e%a|0,e/a|0,t)}function s(t,i,r){return new e(t,i,r)}e.fromInt=n,e.fromNumber=E,e.fromBits=s;var I=Math.pow;function o(e,t,i){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return l;if("number"==typeof t?(i=t,t=!1):t=!!t,(i=i||10)<2||36<i)throw RangeError("radix");var r;if((r=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===r)return o(e.substring(1),t,i).neg();for(var n=E(I(i,8)),s=l,_=0;_<e.length;_+=8){var a=Math.min(8,e.length-_),R=parseInt(e.substring(_,_+a),i);if(a<8){var f=E(I(i,a));s=s.mul(f).add(E(R))}else s=(s=s.mul(n)).add(E(R))}return s.unsigned=t,s}function _(t){return t instanceof e?t:"number"==typeof t?E(t):"string"==typeof t?o(t):s(t.low,t.high,t.unsigned)}e.fromString=o,e.fromValue=_;var a=4294967296,R=a*a,f=R/2,h=n(1<<24),l=n(0);e.ZERO=l;var T=n(0,!0);e.UZERO=T;var A=n(1);e.ONE=A;var u=n(1,!0);e.UONE=u;var N=n(-1);e.NEG_ONE=N;var O=s(-1,2147483647,!1);e.MAX_VALUE=O;var S=s(-1,-1,!0);e.MAX_UNSIGNED_VALUE=S;var M=s(0,-2147483648,!1);e.MIN_VALUE=M;var c=e.prototype;return c.toInt=function(){return this.unsigned?this.low>>>0:this.low},c.toNumber=function(){return this.unsigned?(this.high>>>0)*a+(this.low>>>0):this.high*a+(this.low>>>0)},c.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(M)){var t=E(e),i=this.div(t),r=i.mul(t).sub(this);return i.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var n=E(I(e,6),this.unsigned),s=this,o="";;){var _=s.div(n),a=(s.sub(_.mul(n)).toInt()>>>0).toString(e);if((s=_).isZero())return a+o;for(;a.length<6;)a="0"+a;o=""+a+o}},c.getHighBits=function(){return this.high},c.getHighBitsUnsigned=function(){return this.high>>>0},c.getLowBits=function(){return this.low},c.getLowBitsUnsigned=function(){return this.low>>>0},c.getNumBitsAbs=function(){if(this.isNegative())return this.eq(M)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},c.isZero=function(){return 0===this.high&&0===this.low},c.isNegative=function(){return!this.unsigned&&this.high<0},c.isPositive=function(){return this.unsigned||this.high>=0},c.isOdd=function(){return!(1&~this.low)},c.isEven=function(){return!(1&this.low)},c.equals=function(e){return t(e)||(e=_(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},c.eq=c.equals,c.notEquals=function(e){return!this.eq(e)},c.neq=c.notEquals,c.lessThan=function(e){return this.comp(e)<0},c.lt=c.lessThan,c.lessThanOrEqual=function(e){return this.comp(e)<=0},c.lte=c.lessThanOrEqual,c.greaterThan=function(e){return this.comp(e)>0},c.gt=c.greaterThan,c.greaterThanOrEqual=function(e){return this.comp(e)>=0},c.gte=c.greaterThanOrEqual,c.compare=function(e){if(t(e)||(e=_(e)),this.eq(e))return 0;var i=this.isNegative(),r=e.isNegative();return i&&!r?-1:!i&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},c.comp=c.compare,c.negate=function(){return!this.unsigned&&this.eq(M)?M:this.not().add(A)},c.neg=c.negate,c.add=function(e){t(e)||(e=_(e));var i=this.high>>>16,r=65535&this.high,n=this.low>>>16,E=65535&this.low,I=e.high>>>16,o=65535&e.high,a=e.low>>>16,R=0,f=0,h=0,l=0;return h+=(l+=E+(65535&e.low))>>>16,f+=(h+=n+a)>>>16,R+=(f+=r+o)>>>16,R+=i+I,s((h&=65535)<<16|(l&=65535),(R&=65535)<<16|(f&=65535),this.unsigned)},c.subtract=function(e){return t(e)||(e=_(e)),this.add(e.neg())},c.sub=c.subtract,c.multiply=function(e){if(this.isZero())return l;if(t(e)||(e=_(e)),e.isZero())return l;if(this.eq(M))return e.isOdd()?M:l;if(e.eq(M))return this.isOdd()?M:l;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(h)&&e.lt(h))return E(this.toNumber()*e.toNumber(),this.unsigned);var i=this.high>>>16,r=65535&this.high,n=this.low>>>16,I=65535&this.low,o=e.high>>>16,a=65535&e.high,R=e.low>>>16,f=65535&e.low,T=0,A=0,u=0,N=0;return u+=(N+=I*f)>>>16,A+=(u+=n*f)>>>16,u&=65535,A+=(u+=I*R)>>>16,T+=(A+=r*f)>>>16,A&=65535,T+=(A+=n*R)>>>16,A&=65535,T+=(A+=I*a)>>>16,T+=i*f+r*R+n*a+I*o,s((u&=65535)<<16|(N&=65535),(T&=65535)<<16|(A&=65535),this.unsigned)},c.mul=c.multiply,c.divide=function(e){if(t(e)||(e=_(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?T:l;var i,r,n;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return T;if(e.gt(this.shru(1)))return u;n=T}else{if(this.eq(M))return e.eq(A)||e.eq(N)?M:e.eq(M)?A:(i=this.shr(1).div(e).shl(1)).eq(l)?e.isNegative()?A:N:(r=this.sub(e.mul(i)),n=i.add(r.div(e)));if(e.eq(M))return this.unsigned?T:l;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=l}for(r=this;r.gte(e);){i=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(i)/Math.LN2),o=s<=48?1:I(2,s-48),a=E(i),R=a.mul(e);R.isNegative()||R.gt(r);)R=(a=E(i-=o,this.unsigned)).mul(e);a.isZero()&&(a=A),n=n.add(a),r=r.sub(R)}return n},c.div=c.divide,c.modulo=function(e){return t(e)||(e=_(e)),this.sub(this.div(e).mul(e))},c.mod=c.modulo,c.not=function(){return s(~this.low,~this.high,this.unsigned)},c.and=function(e){return t(e)||(e=_(e)),s(this.low&e.low,this.high&e.high,this.unsigned)},c.or=function(e){return t(e)||(e=_(e)),s(this.low|e.low,this.high|e.high,this.unsigned)},c.xor=function(e){return t(e)||(e=_(e)),s(this.low^e.low,this.high^e.high,this.unsigned)},c.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?s(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):s(0,this.low<<e-32,this.unsigned)},c.shl=c.shiftLeft,c.shiftRight=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?s(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):s(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},c.shr=c.shiftRight,c.shiftRightUnsigned=function(e){if(t(e)&&(e=e.toInt()),0===(e&=63))return this;var i=this.high;return e<32?s(this.low>>>e|i<<32-e,i>>>e,this.unsigned):s(32===e?i:i>>>e-32,0,this.unsigned)},c.shru=c.shiftRightUnsigned,c.toSigned=function(){return this.unsigned?s(this.low,this.high,!1):this},c.toUnsigned=function(){return this.unsigned?this:s(this.low,this.high,!0)},c.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},c.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255]},c.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t]},e}());return t.ByteBuffer=i,t.Long=i.Long||null,t.VERSION="5.0.3",t.WIRE_TYPES={},t.WIRE_TYPES.VARINT=0,t.WIRE_TYPES.BITS64=1,t.WIRE_TYPES.LDELIM=2,t.WIRE_TYPES.STARTGROUP=3,t.WIRE_TYPES.ENDGROUP=4,t.WIRE_TYPES.BITS32=5,t.PACKABLE_WIRE_TYPES=[t.WIRE_TYPES.VARINT,t.WIRE_TYPES.BITS64,t.WIRE_TYPES.BITS32],t.TYPES={int32:{name:"int32",wireType:t.WIRE_TYPES.VARINT,defaultValue:0},uint32:{name:"uint32",wireType:t.WIRE_TYPES.VARINT,defaultValue:0},sint32:{name:"sint32",wireType:t.WIRE_TYPES.VARINT,defaultValue:0},int64:{name:"int64",wireType:t.WIRE_TYPES.VARINT,defaultValue:t.Long?t.Long.ZERO:void 0},uint64:{name:"uint64",wireType:t.WIRE_TYPES.VARINT,defaultValue:t.Long?t.Long.UZERO:void 0},sint64:{name:"sint64",wireType:t.WIRE_TYPES.VARINT,defaultValue:t.Long?t.Long.ZERO:void 0},bool:{name:"bool",wireType:t.WIRE_TYPES.VARINT,defaultValue:!1},double:{name:"double",wireType:t.WIRE_TYPES.BITS64,defaultValue:0},string:{name:"string",wireType:t.WIRE_TYPES.LDELIM,defaultValue:""},bytes:{name:"bytes",wireType:t.WIRE_TYPES.LDELIM,defaultValue:null},fixed32:{name:"fixed32",wireType:t.WIRE_TYPES.BITS32,defaultValue:0},sfixed32:{name:"sfixed32",wireType:t.WIRE_TYPES.BITS32,defaultValue:0},fixed64:{name:"fixed64",wireType:t.WIRE_TYPES.BITS64,defaultValue:t.Long?t.Long.UZERO:void 0},sfixed64:{name:"sfixed64",wireType:t.WIRE_TYPES.BITS64,defaultValue:t.Long?t.Long.ZERO:void 0},float:{name:"float",wireType:t.WIRE_TYPES.BITS32,defaultValue:0},enum:{name:"enum",wireType:t.WIRE_TYPES.VARINT,defaultValue:0},message:{name:"message",wireType:t.WIRE_TYPES.LDELIM,defaultValue:null},group:{name:"group",wireType:t.WIRE_TYPES.STARTGROUP,defaultValue:null}},t.MAP_KEY_TYPES=[t.TYPES.int32,t.TYPES.sint32,t.TYPES.sfixed32,t.TYPES.uint32,t.TYPES.fixed32,t.TYPES.int64,t.TYPES.sint64,t.TYPES.sfixed64,t.TYPES.uint64,t.TYPES.fixed64,t.TYPES.bool,t.TYPES.string,t.TYPES.bytes],t.ID_MIN=1,t.ID_MAX=536870911,t.convertFieldsToCamelCase=!1,t.populateAccessors=!0,t.populateDefaults=!0,t.Util=((e={}).IS_NODE=!("object"!=typeof process||process+""!="[object process]"||process.browser),e.toCamelCase=function(e){return e.replace(/_([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))},e),t.Lang={DELIM:/[\s\{\}=;:\[\],'"\(\)<>]/g,RULE:/^(?:required|optional|repeated|map)$/,TYPE:/^(?:double|float|int32|uint32|sint32|int64|uint64|sint64|fixed32|sfixed32|fixed64|sfixed64|bool|string|bytes)$/,NAME:/^[a-zA-Z_][a-zA-Z_0-9]*$/,TYPEDEF:/^[a-zA-Z][a-zA-Z_0-9]*$/,TYPEREF:/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,FQTYPEREF:/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/,NUMBER:/^-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+|([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?)|inf|nan)$/,NUMBER_DEC:/^(?:[1-9][0-9]*|0)$/,NUMBER_HEX:/^0[xX][0-9a-fA-F]+$/,NUMBER_OCT:/^0[0-7]+$/,NUMBER_FLT:/^([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?|inf|nan)$/,BOOL:/^(?:true|false)$/i,ID:/^(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,STRING_DQ:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,STRING_SQ:/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g},t.DotProto=function(e,t){var i={},r=function(e){this.source=e+"",this.index=0,this.line=1,this.stack=[],this._stringOpen=null},n=r.prototype;n._readString=function(){var e='"'===this._stringOpen?t.STRING_DQ:t.STRING_SQ;e.lastIndex=this.index-1;var i=e.exec(this.source);if(!i)throw Error("unterminated string");return this.index=e.lastIndex,this.stack.push(this._stringOpen),this._stringOpen=null,i[1]},n.next=function(){if(this.stack.length>0)return this.stack.shift();if(this.index>=this.source.length)return null;if(null!==this._stringOpen)return this._readString();var e,i,r;do{for(e=!1;t.WHITESPACE.test(r=this.source.charAt(this.index));)if("\n"===r&&++this.line,++this.index===this.source.length)return null;if("/"===this.source.charAt(this.index))if(++this.index,"/"===this.source.charAt(this.index)){for(;"\n"!==this.source.charAt(++this.index);)if(this.index==this.source.length)return null;++this.index,++this.line,e=!0}else{if("*"!==(r=this.source.charAt(this.index)))return"/";do{if("\n"===r&&++this.line,++this.index===this.source.length)return null;i=r,r=this.source.charAt(this.index)}while("*"!==i||"/"!==r);++this.index,e=!0}}while(e);if(this.index===this.source.length)return null;var n=this.index;if(t.DELIM.lastIndex=0,!t.DELIM.test(this.source.charAt(n++)))for(;n<this.source.length&&!t.DELIM.test(this.source.charAt(n));)++n;var E=this.source.substring(this.index,this.index=n);return'"'!==E&&"'"!==E||(this._stringOpen=E),E},n.peek=function(){if(0===this.stack.length){var e=this.next();if(null===e)return null;this.stack.push(e)}return this.stack[0]},n.skip=function(e){var t=this.next();if(t!==e)throw Error("illegal '"+t+"', '"+e+"' expected")},n.omit=function(e){return this.peek()===e&&(this.next(),!0)},n.toString=function(){return"Tokenizer ("+this.index+"/"+this.source.length+" at line "+this.line+")"},i.Tokenizer=r;var E=function(e){this.tn=new r(e),this.proto3=!1},s=E.prototype;function I(e,i){var r=-1,n=1;if("-"==e.charAt(0)&&(n=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))r=parseInt(e);else if(t.NUMBER_HEX.test(e))r=parseInt(e.substring(2),16);else{if(!t.NUMBER_OCT.test(e))throw Error("illegal id value: "+(n<0?"-":"")+e);r=parseInt(e.substring(1),8)}if(r=n*r|0,!i&&r<0)throw Error("illegal id value: "+(n<0?"-":"")+e);return r}function o(e){var i=1;if("-"==e.charAt(0)&&(i=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))return i*parseInt(e,10);if(t.NUMBER_HEX.test(e))return i*parseInt(e.substring(2),16);if(t.NUMBER_OCT.test(e))return i*parseInt(e.substring(1),8);if("inf"===e)return i*(1/0);if("nan"===e)return NaN;if(t.NUMBER_FLT.test(e))return i*parseFloat(e);throw Error("illegal number value: "+(i<0?"-":"")+e)}function _(e,t,i){void 0===e[t]?e[t]=i:(Array.isArray(e[t])||(e[t]=[e[t]]),e[t].push(i))}return s.parse=function(){var e,i,r={name:"[ROOT]",package:null,messages:[],enums:[],imports:[],options:{},services:[]},n=!0;try{for(;e=this.tn.next();)switch(e){case"package":if(!n||null!==r.package)throw Error("unexpected 'package'");if(e=this.tn.next(),!t.TYPEREF.test(e))throw Error("illegal package name: "+e);this.tn.skip(";"),r.package=e;break;case"import":if(!n)throw Error("unexpected 'import'");("public"===(e=this.tn.peek())||(i="weak"===e))&&this.tn.next(),e=this._readString(),this.tn.skip(";"),i||r.imports.push(e);break;case"syntax":if(!n)throw Error("unexpected 'syntax'");this.tn.skip("="),"proto3"===(r.syntax=this._readString())&&(this.proto3=!0),this.tn.skip(";");break;case"message":this._parseMessage(r,null),n=!1;break;case"enum":this._parseEnum(r),n=!1;break;case"option":this._parseOption(r);break;case"service":this._parseService(r);break;case"extend":this._parseExtend(r);break;default:throw Error("unexpected '"+e+"'")}}catch(e){throw e.message="Parse error at line "+this.tn.line+": "+e.message,e}return delete r.name,r},E.parse=function(e){return new E(e).parse()},s._readString=function(){var e,t,i="";do{if("'"!==(t=this.tn.next())&&'"'!==t)throw Error("illegal string delimiter: "+t);i+=this.tn.next(),this.tn.skip(t),e=this.tn.peek()}while('"'===e||'"'===e);return i},s._readValue=function(e){var i=this.tn.peek();if('"'===i||"'"===i)return this._readString();if(this.tn.next(),t.NUMBER.test(i))return o(i);if(t.BOOL.test(i))return"true"===i.toLowerCase();if(e&&t.TYPEREF.test(i))return i;throw Error("illegal value: "+i)},s._parseOption=function(e,i){var r=this.tn.next(),n=!1;if("("===r&&(n=!0,r=this.tn.next()),!t.TYPEREF.test(r))throw Error("illegal option name: "+r);var E=r;n&&(this.tn.skip(")"),E="("+E+")",r=this.tn.peek(),t.FQTYPEREF.test(r)&&(E+=r,this.tn.next())),this.tn.skip("="),this._parseOptionValue(e,E),i||this.tn.skip(";")},s._parseOptionValue=function(e,i){var r=this.tn.peek();if("{"!==r)_(e.options,i,this._readValue(!0));else for(this.tn.skip("{");"}"!==(r=this.tn.next());){if(!t.NAME.test(r))throw Error("illegal option name: "+i+"."+r);this.tn.omit(":")?_(e.options,i+"."+r,this._readValue(!0)):this._parseOptionValue(e,i+"."+r)}},s._parseService=function(e){var i=this.tn.next();if(!t.NAME.test(i))throw Error("illegal service name at line "+this.tn.line+": "+i);var r={name:i,rpc:{},options:{}};for(this.tn.skip("{");"}"!==(i=this.tn.next());)if("option"===i)this._parseOption(r);else{if("rpc"!==i)throw Error("illegal service token: "+i);this._parseServiceRPC(r)}this.tn.omit(";"),e.services.push(r)},s._parseServiceRPC=function(e){var i="rpc",r=this.tn.next();if(!t.NAME.test(r))throw Error("illegal rpc service method name: "+r);var n=r,E={request:null,response:null,request_stream:!1,response_stream:!1,options:{}};if(this.tn.skip("("),"stream"===(r=this.tn.next()).toLowerCase()&&(E.request_stream=!0,r=this.tn.next()),!t.TYPEREF.test(r))throw Error("illegal rpc service request type: "+r);if(E.request=r,this.tn.skip(")"),"returns"!==(r=this.tn.next()).toLowerCase())throw Error("illegal rpc service request type delimiter: "+r);if(this.tn.skip("("),"stream"===(r=this.tn.next()).toLowerCase()&&(E.response_stream=!0,r=this.tn.next()),E.response=r,this.tn.skip(")"),"{"===(r=this.tn.peek())){for(this.tn.next();"}"!==(r=this.tn.next());){if("option"!==r)throw Error("illegal rpc service token: "+r);this._parseOption(E)}this.tn.omit(";")}else this.tn.skip(";");void 0===e[i]&&(e[i]={}),e[i][n]=E},s._parseMessage=function(e,i){var r=!!i,n=this.tn.next(),E={name:"",fields:[],enums:[],messages:[],options:{},services:[],oneofs:{}};if(!t.NAME.test(n))throw Error("illegal "+(r?"group":"message")+" name: "+n);for(E.name=n,r&&(this.tn.skip("="),i.id=I(this.tn.next()),E.isGroup=!0),"["===(n=this.tn.peek())&&i&&this._parseFieldOptions(i),this.tn.skip("{");"}"!==(n=this.tn.next());)if(t.RULE.test(n))this._parseMessageField(E,n);else if("oneof"===n)this._parseMessageOneOf(E);else if("enum"===n)this._parseEnum(E);else if("message"===n)this._parseMessage(E);else if("option"===n)this._parseOption(E);else if("service"===n)this._parseService(E);else if("extensions"===n)E.hasOwnProperty("extensions")?E.extensions=E.extensions.concat(this._parseExtensionRanges()):E.extensions=this._parseExtensionRanges();else if("reserved"===n)this._parseIgnored();else if("extend"===n)this._parseExtend(E);else{if(!t.TYPEREF.test(n))throw Error("illegal message token: "+n);if(!this.proto3)throw Error("illegal field rule: "+n);this._parseMessageField(E,"optional",n)}return this.tn.omit(";"),e.messages.push(E),E},s._parseIgnored=function(){for(;";"!==this.tn.peek();)this.tn.next();this.tn.skip(";")},s._parseMessageField=function(e,i,r){if(!t.RULE.test(i))throw Error("illegal message field rule: "+i);var n,E={rule:i,type:"",name:"",options:{},id:0};if("map"===i){if(r)throw Error("illegal type: "+r);if(this.tn.skip("<"),n=this.tn.next(),!t.TYPE.test(n)&&!t.TYPEREF.test(n))throw Error("illegal message field type: "+n);if(E.keytype=n,this.tn.skip(","),n=this.tn.next(),!t.TYPE.test(n)&&!t.TYPEREF.test(n))throw Error("illegal message field: "+n);if(E.type=n,this.tn.skip(">"),n=this.tn.next(),!t.NAME.test(n))throw Error("illegal message field name: "+n);E.name=n,this.tn.skip("="),E.id=I(this.tn.next()),"["===(n=this.tn.peek())&&this._parseFieldOptions(E),this.tn.skip(";")}else if("group"===(r=void 0!==r?r:this.tn.next())){var s=this._parseMessage(e,E);if(!/^[A-Z]/.test(s.name))throw Error("illegal group name: "+s.name);E.type=s.name,E.name=s.name.toLowerCase(),this.tn.omit(";")}else{if(!t.TYPE.test(r)&&!t.TYPEREF.test(r))throw Error("illegal message field type: "+r);if(E.type=r,n=this.tn.next(),!t.NAME.test(n))throw Error("illegal message field name: "+n);E.name=n,this.tn.skip("="),E.id=I(this.tn.next()),"["===(n=this.tn.peek())&&this._parseFieldOptions(E),this.tn.skip(";")}return e.fields.push(E),E},s._parseMessageOneOf=function(e){var i=this.tn.next();if(!t.NAME.test(i))throw Error("illegal oneof name: "+i);var r,n=i,E=[];for(this.tn.skip("{");"}"!==(i=this.tn.next());)(r=this._parseMessageField(e,"optional",i)).oneof=n,E.push(r.id);this.tn.omit(";"),e.oneofs[n]=E},s._parseFieldOptions=function(e){this.tn.skip("[");for(var t=!0;"]"!==this.tn.peek();)t||this.tn.skip(","),this._parseOption(e,!0),t=!1;this.tn.next()},s._parseEnum=function(e){var i={name:"",values:[],options:{}},r=this.tn.next();if(!t.NAME.test(r))throw Error("illegal name: "+r);for(i.name=r,this.tn.skip("{");"}"!==(r=this.tn.next());)if("option"===r)this._parseOption(i);else{if(!t.NAME.test(r))throw Error("illegal name: "+r);this.tn.skip("=");var n={name:r,id:I(this.tn.next(),!0)};"["===(r=this.tn.peek())&&this._parseFieldOptions({options:{}}),this.tn.skip(";"),i.values.push(n)}this.tn.omit(";"),e.enums.push(i)},s._parseExtensionRanges=function(){var t,i,r,n=[];do{for(i=[];;){switch(t=this.tn.next()){case"min":r=e.ID_MIN;break;case"max":r=e.ID_MAX;break;default:r=o(t)}if(i.push(r),2===i.length)break;if("to"!==this.tn.peek()){i.push(r);break}this.tn.next()}n.push(i)}while(this.tn.omit(","));return this.tn.skip(";"),n},s._parseExtend=function(e){var i=this.tn.next();if(!t.TYPEREF.test(i))throw Error("illegal extend reference: "+i);var r={ref:i,fields:[]};for(this.tn.skip("{");"}"!==(i=this.tn.next());)if(t.RULE.test(i))this._parseMessageField(r,i);else{if(!t.TYPEREF.test(i))throw Error("illegal extend token: "+i);if(!this.proto3)throw Error("illegal field rule: "+i);this._parseMessageField(r,"optional",i)}return this.tn.omit(";"),e.messages.push(r),r},s.toString=function(){return"Parser at line "+this.tn.line},i.Parser=E,i}(t,t.Lang),t.Reflect=function(e){var t={},r=function(e,t,i){this.builder=e,this.parent=t,this.name=i,this.className},n=r.prototype;n.fqn=function(){for(var e=this.name,t=this;;){if(null==(t=t.parent))break;e=t.name+"."+e}return e},n.toString=function(e){return(e?this.className+" ":"")+this.fqn()},n.build=function(){throw Error(this.toString(!0)+" cannot be built directly")},t.T=r;var E=function(e,t,i,n,E){r.call(this,e,t,i),this.className="Namespace",this.children=[],this.options=n||{},this.syntax=E||"proto2"},s=E.prototype=Object.create(r.prototype);s.getChildren=function(e){if(null==(e=e||null))return this.children.slice();for(var t=[],i=0,r=this.children.length;i<r;++i)this.children[i]instanceof e&&t.push(this.children[i]);return t},s.addChild=function(e){var t;if(t=this.getChild(e.name))if(t instanceof a.Field&&t.name!==t.originalName&&null===this.getChild(t.originalName))t.name=t.originalName;else{if(!(e instanceof a.Field&&e.name!==e.originalName&&null===this.getChild(e.originalName)))throw Error("Duplicate name in namespace "+this.toString(!0)+": "+e.name);e.name=e.originalName}this.children.push(e)},s.getChild=function(e){for(var t="number"==typeof e?"id":"name",i=0,r=this.children.length;i<r;++i)if(this.children[i][t]===e)return this.children[i];return null},s.resolve=function(e,i){var r,n="string"==typeof e?e.split("."):e,E=this,s=0;if(""===n[s]){for(;null!==E.parent;)E=E.parent;s++}do{do{if(!(E instanceof t.Namespace)){E=null;break}if(!(r=E.getChild(n[s]))||!(r instanceof t.T)||i&&!(r instanceof t.Namespace)){E=null;break}E=r,s++}while(s<n.length);if(null!=E)break;if(null!==this.parent)return this.parent.resolve(e,i)}while(null!=E);return E},s.qn=function(e){var i=[],r=e;do{i.unshift(r.name),r=r.parent}while(null!==r);for(var n=1;n<=i.length;n++){var E=i.slice(i.length-n);if(e===this.resolve(E,e instanceof t.Namespace))return E.join(".")}return e.fqn()},s.build=function(){for(var e,t={},i=this.children,r=0,n=i.length;r<n;++r)(e=i[r])instanceof E&&(t[e.name]=e.build());return Object.defineProperty&&Object.defineProperty(t,"$options",{value:this.buildOpt()}),t},s.buildOpt=function(){for(var e={},t=Object.keys(this.options),i=0,r=t.length;i<r;++i){var n=t[i],E=this.options[t[i]];e[n]=E}return e},s.getOption=function(e){return void 0===e?this.options:void 0!==this.options[e]?this.options[e]:null},t.Namespace=E;var I=function(t,i,r,n,E){if(this.type=t,this.resolvedType=i,this.isMapKey=r,this.syntax=n,this.name=E,r&&e.MAP_KEY_TYPES.indexOf(t)<0)throw Error("Invalid map key type: "+t.name)},o=I.prototype;function _(t,i){if(t&&"number"==typeof t.low&&"number"==typeof t.high&&"boolean"==typeof t.unsigned&&t.low==t.low&&t.high==t.high)return new e.Long(t.low,t.high,void 0===i?t.unsigned:i);if("string"==typeof t)return e.Long.fromString(t,i||!1,10);if("number"==typeof t)return e.Long.fromNumber(t,i||!1);throw Error("not convertible to Long")}I.defaultFieldValue=function(t){if("string"==typeof t&&(t=e.TYPES[t]),void 0===t.defaultValue)throw Error("default value for type "+t.name+" is not supported");return t==e.TYPES.bytes?new i(0):t.defaultValue},o.toString=function(){return(this.name||"")+(this.isMapKey?"map":"value")+" element"},o.verifyValue=function(t){var r=this;function n(e,t){throw Error("Illegal value for "+r.toString(!0)+" of type "+r.type.name+": "+e+" ("+t+")")}switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:return("number"!=typeof t||t==t&&t%1!=0)&&n(typeof t,"not an integer"),t>4294967295?0|t:t;case e.TYPES.uint32:case e.TYPES.fixed32:return("number"!=typeof t||t==t&&t%1!=0)&&n(typeof t,"not an integer"),t<0?t>>>0:t;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:if(e.Long)try{return _(t,!1)}catch(e){n(typeof t,e.message)}else n(typeof t,"requires Long.js");case e.TYPES.uint64:case e.TYPES.fixed64:if(e.Long)try{return _(t,!0)}catch(e){n(typeof t,e.message)}else n(typeof t,"requires Long.js");case e.TYPES.bool:return"boolean"!=typeof t&&n(typeof t,"not a boolean"),t;case e.TYPES.float:case e.TYPES.double:return"number"!=typeof t&&n(typeof t,"not a number"),t;case e.TYPES.string:return"string"==typeof t||t&&t instanceof String||n(typeof t,"not a string"),""+t;case e.TYPES.bytes:return i.isByteBuffer(t)?t:i.wrap(t,"base64");case e.TYPES.enum:var E=this.resolvedType.getChildren(e.Reflect.Enum.Value);for(I=0;I<E.length;I++){if(E[I].name==t)return E[I].id;if(E[I].id==t)return E[I].id}if("proto3"===this.syntax)return("number"!=typeof t||t==t&&t%1!=0)&&n(typeof t,"not an integer"),(t>4294967295||t<0)&&n(typeof t,"not in range for uint32"),t;n(t,"not a valid enum value");case e.TYPES.group:case e.TYPES.message:if(t&&"object"==typeof t||n(typeof t,"object expected"),t instanceof this.resolvedType.clazz)return t;if(t instanceof e.Builder.Message){var s={};for(var I in t)t.hasOwnProperty(I)&&(s[I]=t[I]);t=s}return new this.resolvedType.clazz(t)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+t+" (undefined type "+this.type+")")},o.calculateLength=function(t,r){if(null===r)return 0;var n;switch(this.type){case e.TYPES.int32:return r<0?i.calculateVarint64(r):i.calculateVarint32(r);case e.TYPES.uint32:return i.calculateVarint32(r);case e.TYPES.sint32:return i.calculateVarint32(i.zigZagEncode32(r));case e.TYPES.fixed32:case e.TYPES.sfixed32:case e.TYPES.float:return 4;case e.TYPES.int64:case e.TYPES.uint64:return i.calculateVarint64(r);case e.TYPES.sint64:return i.calculateVarint64(i.zigZagEncode64(r));case e.TYPES.fixed64:case e.TYPES.sfixed64:return 8;case e.TYPES.bool:return 1;case e.TYPES.enum:return i.calculateVarint32(r);case e.TYPES.double:return 8;case e.TYPES.string:return n=i.calculateUTF8Bytes(r),i.calculateVarint32(n)+n;case e.TYPES.bytes:if(r.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+r.remaining()+" bytes remaining");return i.calculateVarint32(r.remaining())+r.remaining();case e.TYPES.message:return n=this.resolvedType.calculate(r),i.calculateVarint32(n)+n;case e.TYPES.group:return(n=this.resolvedType.calculate(r))+i.calculateVarint32(t<<3|e.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+r+" (unknown type)")},o.encodeValue=function(t,r,n){if(null===r)return n;switch(this.type){case e.TYPES.int32:r<0?n.writeVarint64(r):n.writeVarint32(r);break;case e.TYPES.uint32:n.writeVarint32(r);break;case e.TYPES.sint32:n.writeVarint32ZigZag(r);break;case e.TYPES.fixed32:n.writeUint32(r);break;case e.TYPES.sfixed32:n.writeInt32(r);break;case e.TYPES.int64:case e.TYPES.uint64:n.writeVarint64(r);break;case e.TYPES.sint64:n.writeVarint64ZigZag(r);break;case e.TYPES.fixed64:n.writeUint64(r);break;case e.TYPES.sfixed64:n.writeInt64(r);break;case e.TYPES.bool:"string"==typeof r?n.writeVarint32("false"===r.toLowerCase()?0:!!r):n.writeVarint32(r?1:0);break;case e.TYPES.enum:n.writeVarint32(r);break;case e.TYPES.float:n.writeFloat32(r);break;case e.TYPES.double:n.writeFloat64(r);break;case e.TYPES.string:n.writeVString(r);break;case e.TYPES.bytes:if(r.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+r.remaining()+" bytes remaining");var E=r.offset;n.writeVarint32(r.remaining()),n.append(r),r.offset=E;break;case e.TYPES.message:var s=(new i).LE();this.resolvedType.encode(r,s),n.writeVarint32(s.offset),n.append(s.flip());break;case e.TYPES.group:this.resolvedType.encode(r,n),n.writeVarint32(t<<3|e.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+r+" (unknown type)")}return n},o.decode=function(t,i,r){if(i!=this.type.wireType)throw Error("Unexpected wire type for element");var n,E;switch(this.type){case e.TYPES.int32:return 0|t.readVarint32();case e.TYPES.uint32:return t.readVarint32()>>>0;case e.TYPES.sint32:return 0|t.readVarint32ZigZag();case e.TYPES.fixed32:return t.readUint32()>>>0;case e.TYPES.sfixed32:return 0|t.readInt32();case e.TYPES.int64:return t.readVarint64();case e.TYPES.uint64:return t.readVarint64().toUnsigned();case e.TYPES.sint64:return t.readVarint64ZigZag();case e.TYPES.fixed64:return t.readUint64();case e.TYPES.sfixed64:return t.readInt64();case e.TYPES.bool:return!!t.readVarint32();case e.TYPES.enum:return t.readVarint32();case e.TYPES.float:return t.readFloat();case e.TYPES.double:return t.readDouble();case e.TYPES.string:return t.readVString();case e.TYPES.bytes:if(E=t.readVarint32(),t.remaining()<E)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+E+" required but got only "+t.remaining());return(n=t.clone()).limit=n.offset+E,t.offset+=E,n;case e.TYPES.message:return E=t.readVarint32(),this.resolvedType.decode(t,E);case e.TYPES.group:return this.resolvedType.decode(t,-1,r)}throw Error("[INTERNAL] Illegal decode type")},o.valueFromString=function(t){if(!this.isMapKey)throw Error("valueFromString() called on non-map-key element");switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return this.verifyValue(parseInt(t));case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return this.verifyValue(t);case e.TYPES.bool:return"true"===t;case e.TYPES.string:return this.verifyValue(t);case e.TYPES.bytes:return i.fromBinary(t)}},o.valueToString=function(t){if(!this.isMapKey)throw Error("valueToString() called on non-map-key element");return this.type===e.TYPES.bytes?t.toString("binary"):t.toString()},t.Element=I;var a=function(e,t,i,r,n,s){E.call(this,e,t,i,r,s),this.className="Message",this.extensions=void 0,this.clazz=null,this.isGroup=!!n,this._fields=null,this._fieldsById=null,this._fieldsByName=null},R=a.prototype=Object.create(E.prototype);function f(t,i){var r=i.readVarint32(),n=7&r,E=r>>>3;switch(n){case e.WIRE_TYPES.VARINT:do{r=i.readUint8()}while(!(128&~r));break;case e.WIRE_TYPES.BITS64:i.offset+=8;break;case e.WIRE_TYPES.LDELIM:r=i.readVarint32(),i.offset+=r;break;case e.WIRE_TYPES.STARTGROUP:f(E,i);break;case e.WIRE_TYPES.ENDGROUP:if(E===t)return!1;throw Error("Illegal GROUPEND after unknown group: "+E+" ("+t+" expected)");case e.WIRE_TYPES.BITS32:i.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+t+": "+n)}return!0}R.build=function(t){if(this.clazz&&!t)return this.clazz;var r=function(e,t){var r=t.getChildren(e.Reflect.Message.Field),n=t.getChildren(e.Reflect.Message.OneOf),E=function(s,I){e.Builder.Message.call(this);for(var o=0,_=n.length;o<_;++o)this[n[o].name]=null;for(o=0,_=r.length;o<_;++o){var a=r[o];this[a.name]=a.repeated?[]:a.map?new e.Map(a):null,!a.required&&"proto3"!==t.syntax||null===a.defaultValue||(this[a.name]=a.defaultValue)}var R;if(arguments.length>0)if(1!==arguments.length||null===s||"object"!=typeof s||!("function"!=typeof s.encode||s instanceof E)||Array.isArray(s)||s instanceof e.Map||i.isByteBuffer(s)||s instanceof ArrayBuffer||e.Long&&s instanceof e.Long)for(o=0,_=arguments.length;o<_;++o)void 0!==(R=arguments[o])&&this.$set(r[o].name,R);else this.$set(s)},s=E.prototype=Object.create(e.Builder.Message.prototype);s.add=function(i,r,n){var E=t._fieldsByName[i];if(!n){if(!E)throw Error(this+"#"+i+" is undefined");if(!(E instanceof e.Reflect.Message.Field))throw Error(this+"#"+i+" is not a field: "+E.toString(!0));if(!E.repeated)throw Error(this+"#"+i+" is not a repeated field");r=E.verifyValue(r,!0)}return null===this[i]&&(this[i]=[]),this[i].push(r),this},s.$add=s.add,s.set=function(i,r,n){if(i&&"object"==typeof i){for(var E in n=r,i)i.hasOwnProperty(E)&&void 0!==(r=i[E])&&void 0===t._oneofsByName[E]&&this.$set(E,r,n);return this}var s=t._fieldsByName[i];if(n)this[i]=r;else{if(!s)throw Error(this+"#"+i+" is not a field: undefined");if(!(s instanceof e.Reflect.Message.Field))throw Error(this+"#"+i+" is not a field: "+s.toString(!0));this[s.name]=r=s.verifyValue(r)}if(s&&s.oneof){var I=this[s.oneof.name];null!==r?(null!==I&&I!==s.name&&(this[I]=null),this[s.oneof.name]=s.name):I===i&&(this[s.oneof.name]=null)}return this},s.$set=s.set,s.get=function(i,r){if(r)return this[i];var n=t._fieldsByName[i];if(!(n&&n instanceof e.Reflect.Message.Field))throw Error(this+"#"+i+" is not a field: undefined");if(!(n instanceof e.Reflect.Message.Field))throw Error(this+"#"+i+" is not a field: "+n.toString(!0));return this[n.name]},s.$get=s.get;for(var I=0;I<r.length;I++){var o=r[I];o instanceof e.Reflect.Message.ExtensionField||t.builder.options.populateAccessors&&function(e){var i=e.originalName.replace(/(_[a-zA-Z])/g,(function(e){return e.toUpperCase().replace("_","")}));i=i.substring(0,1).toUpperCase()+i.substring(1);var r=e.originalName.replace(/([A-Z])/g,(function(e){return"_"+e})),n=function(t,i){return this[e.name]=i?t:e.verifyValue(t),this},E=function(){return this[e.name]};null===t.getChild("set"+i)&&(s["set"+i]=n),null===t.getChild("set_"+r)&&(s["set_"+r]=n),null===t.getChild("get"+i)&&(s["get"+i]=E),null===t.getChild("get_"+r)&&(s["get_"+r]=E)}(o)}function _(t,r,n,E){if(null===t||"object"!=typeof t){if(E&&E instanceof e.Reflect.Enum){var s=e.Reflect.Enum.getName(E.object,t);if(null!==s)return s}return t}if(i.isByteBuffer(t))return r?t.toBase64():t.toBuffer();if(e.Long.isLong(t))return n?t.toString():e.Long.fromValue(t);var I;if(Array.isArray(t))return I=[],t.forEach((function(e,t){I[t]=_(e,r,n,E)})),I;if(I={},t instanceof e.Map){for(var o=t.entries(),a=o.next();!a.done;a=o.next())I[t.keyElem.valueToString(a.value[0])]=_(a.value[1],r,n,t.valueElem.resolvedType);return I}var R=t.$type,f=void 0;for(var h in t)t.hasOwnProperty(h)&&(R&&(f=R.getChild(h))?I[h]=_(t[h],r,n,f.resolvedType):I[h]=_(t[h],r,n));return I}return s.encode=function(e,r){"boolean"==typeof e&&(r=e,e=void 0);var n=!1;e||(e=new i,n=!0);var E=e.littleEndian;try{return t.encode(this,e.LE(),r),(n?e.flip():e).LE(E)}catch(t){throw e.LE(E),t}},E.encode=function(e,t,i){return new E(e).encode(t,i)},s.calculate=function(){return t.calculate(this)},s.encodeDelimited=function(e,r){var n=!1;e||(e=new i,n=!0);var E=(new i).LE();return t.encode(this,E,r).flip(),e.writeVarint32(E.remaining()),e.append(E),n?e.flip():e},s.encodeAB=function(){try{return this.encode().toArrayBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toArrayBuffer()),e}},s.toArrayBuffer=s.encodeAB,s.encodeNB=function(){try{return this.encode().toBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBuffer()),e}},s.toBuffer=s.encodeNB,s.encode64=function(){try{return this.encode().toBase64()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBase64()),e}},s.toBase64=s.encode64,s.encodeHex=function(){try{return this.encode().toHex()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toHex()),e}},s.toHex=s.encodeHex,s.toRaw=function(e,t){return _(this,!!e,!!t,this.$type)},s.encodeJSON=function(){return JSON.stringify(_(this,!0,!0,this.$type))},E.decode=function(e,r,n){"string"==typeof r&&(n=r,r=-1),"string"==typeof e?e=i.wrap(e,n||"base64"):i.isByteBuffer(e)||(e=i.wrap(e));var E=e.littleEndian;try{var s=t.decode(e.LE(),r);return e.LE(E),s}catch(t){throw e.LE(E),t}},E.decodeDelimited=function(e,r){if("string"==typeof e?e=i.wrap(e,r||"base64"):i.isByteBuffer(e)||(e=i.wrap(e)),e.remaining()<1)return null;var n=e.offset,E=e.readVarint32();if(e.remaining()<E)return e.offset=n,null;try{var s=t.decode(e.slice(e.offset,e.offset+E).LE());return e.offset+=E,s}catch(t){throw e.offset+=E,t}},E.decode64=function(e){return E.decode(e,"base64")},E.decodeHex=function(e){return E.decode(e,"hex")},E.decodeJSON=function(e){return new E(JSON.parse(e))},s.toString=function(){return t.toString()},Object.defineProperty&&(Object.defineProperty(E,"$options",{value:t.buildOpt()}),Object.defineProperty(s,"$options",{value:E.$options}),Object.defineProperty(E,"$type",{value:t}),Object.defineProperty(s,"$type",{value:t})),E}(e,this);this._fields=[],this._fieldsById={},this._fieldsByName={},this._oneofsByName={};for(var n,E=0,s=this.children.length;E<s;E++)if((n=this.children[E])instanceof A||n instanceof a||n instanceof O){if(r.hasOwnProperty(n.name))throw Error("Illegal reflect child of "+this.toString(!0)+": "+n.toString(!0)+" cannot override static property '"+n.name+"'");r[n.name]=n.build()}else if(n instanceof a.Field)n.build(),this._fields.push(n),this._fieldsById[n.id]=n,this._fieldsByName[n.name]=n;else if(n instanceof a.OneOf)this._oneofsByName[n.name]=n;else if(!(n instanceof a.OneOf||n instanceof N))throw Error("Illegal reflect child of "+this.toString(!0)+": "+this.children[E].toString(!0));return this.clazz=r},R.encode=function(e,t,i){for(var r,n,E=null,s=0,I=this._fields.length;s<I;++s)n=e[(r=this._fields[s]).name],r.required&&null===n?null===E&&(E=r):r.encode(i?n:r.verifyValue(n),t,e);if(null!==E){var o=Error("Missing at least one required field for "+this.toString(!0)+": "+E);throw o.encoded=t,o}return t},R.calculate=function(e){for(var t,i,r=0,n=0,E=this._fields.length;n<E;++n){if(i=e[(t=this._fields[n]).name],t.required&&null===i)throw Error("Missing at least one required field for "+this.toString(!0)+": "+t);r+=t.calculate(i,e)}return r},R.decode=function(t,i,r){"number"!=typeof i&&(i=-1);for(var n,E,s,I,o=t.offset,_=new this.clazz;t.offset<o+i||-1===i&&t.remaining()>0;){if(s=(n=t.readVarint32())>>>3,(E=7&n)===e.WIRE_TYPES.ENDGROUP){if(s!==r)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+s+" ("+(r?r+" expected":"not a group")+")");break}if(I=this._fieldsById[s]){if(I.repeated&&!I.options.packed)_[I.name].push(I.decode(E,t));else if(I.map){var a=I.decode(E,t);_[I.name].set(a[0],a[1])}else if(_[I.name]=I.decode(E,t),I.oneof){var R=_[I.oneof.name];null!==R&&R!==I.name&&(_[R]=null),_[I.oneof.name]=I.name}}else switch(E){case e.WIRE_TYPES.VARINT:t.readVarint32();break;case e.WIRE_TYPES.BITS32:t.offset+=4;break;case e.WIRE_TYPES.BITS64:t.offset+=8;break;case e.WIRE_TYPES.LDELIM:var h=t.readVarint32();t.offset+=h;break;case e.WIRE_TYPES.STARTGROUP:for(;f(s,t););break;default:throw Error("Illegal wire type for unknown field "+s+" in "+this.toString(!0)+"#decode: "+E)}}for(var l=0,T=this._fields.length;l<T;++l)if(null===_[(I=this._fields[l]).name])if("proto3"===this.syntax)_[I.name]=I.defaultValue;else{if(I.required){var A=Error("Missing at least one required field for "+this.toString(!0)+": "+I.name);throw A.decoded=_,A}e.populateDefaults&&null!==I.defaultValue&&(_[I.name]=I.defaultValue)}return _},t.Message=a;var h=function(t,i,n,E,s,I,o,_,R,f){r.call(this,t,i,I),this.className="Message.Field",this.required="required"===n,this.repeated="repeated"===n,this.map="map"===n,this.keyType=E||null,this.type=s,this.resolvedType=null,this.id=o,this.options=_||{},this.defaultValue=null,this.oneof=R||null,this.syntax=f||"proto2",this.originalName=this.name,this.element=null,this.keyElement=null,!this.builder.options.convertFieldsToCamelCase||this instanceof a.ExtensionField||(this.name=e.Util.toCamelCase(this.name))},l=h.prototype=Object.create(r.prototype);l.build=function(){this.element=new I(this.type,this.resolvedType,!1,this.syntax,this.name),this.map&&(this.keyElement=new I(this.keyType,void 0,!0,this.syntax,this.name)),"proto3"!==this.syntax||this.repeated||this.map?void 0!==this.options.default&&(this.defaultValue=this.verifyValue(this.options.default)):this.defaultValue=I.defaultFieldValue(this.type)},l.verifyValue=function(t,i){i=i||!1;var r,n=this;function E(e,t){throw Error("Illegal value for "+n.toString(!0)+" of type "+n.type.name+": "+e+" ("+t+")")}if(null===t)return this.required&&E(typeof t,"required"),"proto3"===this.syntax&&this.type!==e.TYPES.message&&E(typeof t,"proto3 field without field presence cannot be null"),null;if(this.repeated&&!i){Array.isArray(t)||(t=[t]);var s=[];for(r=0;r<t.length;r++)s.push(this.element.verifyValue(t[r]));return s}return this.map&&!i?t instanceof e.Map?t:(t instanceof Object||E(typeof t,"expected ProtoBuf.Map or raw object for map field"),new e.Map(this,t)):(!this.repeated&&Array.isArray(t)&&E(typeof t,"no array expected"),this.element.verifyValue(t))},l.hasWirePresence=function(t,i){if("proto3"!==this.syntax)return null!==t;if(this.oneof&&i[this.oneof.name]===this.name)return!0;switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return 0!==t;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return 0!==t.low||0!==t.high;case e.TYPES.bool:return t;case e.TYPES.float:case e.TYPES.double:return 0!==t;case e.TYPES.string:return t.length>0;case e.TYPES.bytes:return t.remaining()>0;case e.TYPES.enum:return 0!==t;case e.TYPES.message:return null!==t;default:return!0}},l.encode=function(t,r,n){if(null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return r;try{var E;if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){r.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),r.ensureCapacity(r.offset+=1);var s=r.offset;for(E=0;E<t.length;E++)this.element.encodeValue(this.id,t[E],r);var I=r.offset-s,o=i.calculateVarint32(I);if(o>1){var _=r.slice(s,r.offset);s+=o-1,r.offset=s,r.append(_)}r.writeVarint32(I,s-o)}else for(E=0;E<t.length;E++)r.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t[E],r);else this.map?t.forEach((function(t,n,E){var s=i.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,n)+i.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);r.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),r.writeVarint32(s),r.writeVarint32(8|this.keyType.wireType),this.keyElement.encodeValue(1,n,r),r.writeVarint32(16|this.type.wireType),this.element.encodeValue(2,t,r)}),this):this.hasWirePresence(t,n)&&(r.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t,r))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return r},l.calculate=function(t,r){if(t=this.verifyValue(t),null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return 0;var n=0;try{var E,s;if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(n+=i.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),s=0,E=0;E<t.length;E++)s+=this.element.calculateLength(this.id,t[E]);n+=i.calculateVarint32(s),n+=s}else for(E=0;E<t.length;E++)n+=i.calculateVarint32(this.id<<3|this.type.wireType),n+=this.element.calculateLength(this.id,t[E]);else this.map?t.forEach((function(t,r,E){var s=i.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,r)+i.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);n+=i.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),n+=i.calculateVarint32(s),n+=s}),this):this.hasWirePresence(t,r)&&(n+=i.calculateVarint32(this.id<<3|this.type.wireType),n+=this.element.calculateLength(this.id,t))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return n},l.decode=function(t,i,r){var n,E;if(!(!this.map&&t==this.type.wireType||!r&&this.repeated&&this.options.packed&&t==e.WIRE_TYPES.LDELIM||this.map&&t==e.WIRE_TYPES.LDELIM))throw Error("Illegal wire type for field "+this.toString(!0)+": "+t+" ("+this.type.wireType+" expected)");if(t==e.WIRE_TYPES.LDELIM&&this.repeated&&this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0&&!r){E=i.readVarint32(),E=i.offset+E;for(var s=[];i.offset<E;)s.push(this.decode(this.type.wireType,i,!0));return s}if(this.map){var o=I.defaultFieldValue(this.keyType);if(n=I.defaultFieldValue(this.type),E=i.readVarint32(),i.remaining()<E)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+E+" required but got only "+i.remaining());var _=i.clone();for(_.limit=_.offset+E,i.offset+=E;_.remaining()>0;){var a=_.readVarint32();t=7&a;var R=a>>>3;if(1===R)o=this.keyElement.decode(_,t,R);else{if(2!==R)throw Error("Unexpected tag in map field key/value submessage");n=this.element.decode(_,t,R)}}return[o,n]}return this.element.decode(i,t,this.id)},t.Message.Field=h;var T=function(e,t,i,r,n,E,s){h.call(this,e,t,i,null,r,n,E,s),this.extension};T.prototype=Object.create(h.prototype),t.Message.ExtensionField=T;t.Message.OneOf=function(e,t,i){r.call(this,e,t,i),this.fields=[]};var A=function(e,t,i,r,n){E.call(this,e,t,i,r,n),this.className="Enum",this.object=null};A.getName=function(e,t){for(var i,r=Object.keys(e),n=0;n<r.length;++n)if(e[i=r[n]]===t)return i;return null},(A.prototype=Object.create(E.prototype)).build=function(t){if(this.object&&!t)return this.object;for(var i=new e.Builder.Enum,r=this.getChildren(A.Value),n=0,E=r.length;n<E;++n)i[r[n].name]=r[n].id;return Object.defineProperty&&Object.defineProperty(i,"$options",{value:this.buildOpt(),enumerable:!1}),this.object=i},t.Enum=A;var u=function(e,t,i,n){r.call(this,e,t,i),this.className="Enum.Value",this.id=n};u.prototype=Object.create(r.prototype),t.Enum.Value=u;var N=function(e,t,i,n){r.call(this,e,t,i),this.field=n};N.prototype=Object.create(r.prototype),t.Extension=N;var O=function(e,t,i,r){E.call(this,e,t,i,r),this.className="Service",this.clazz=null};(O.prototype=Object.create(E.prototype)).build=function(t){return this.clazz&&!t?this.clazz:this.clazz=function(e,t){for(var r=function(t){e.Builder.Service.call(this),this.rpcImpl=t||function(e,t,i){setTimeout(i.bind(this,Error("Not implemented, see: https://github.com/dcodeIO/ProtoBuf.js/wiki/Services")),0)}},n=r.prototype=Object.create(e.Builder.Service.prototype),E=t.getChildren(e.Reflect.Service.RPCMethod),s=0;s<E.length;s++)!function(e){n[e.name]=function(r,n){try{try{r=e.resolvedRequestType.clazz.decode(i.wrap(r))}catch(e){if(!(e instanceof TypeError))throw e}if(null===r||"object"!=typeof r)throw Error("Illegal arguments");r instanceof e.resolvedRequestType.clazz||(r=new e.resolvedRequestType.clazz(r)),this.rpcImpl(e.fqn(),r,(function(i,r){if(i)n(i);else{null===r&&(r="");try{r=e.resolvedResponseType.clazz.decode(r)}catch(e){}r&&r instanceof e.resolvedResponseType.clazz?n(null,r):n(Error("Illegal response type received in service method "+t.name+"#"+e.name))}}))}catch(e){setTimeout(n.bind(this,e),0)}},r[e.name]=function(t,i,n){new r(t)[e.name](i,n)},Object.defineProperty&&(Object.defineProperty(r[e.name],"$options",{value:e.buildOpt()}),Object.defineProperty(n[e.name],"$options",{value:r[e.name].$options}))}(E[s]);return Object.defineProperty&&(Object.defineProperty(r,"$options",{value:t.buildOpt()}),Object.defineProperty(n,"$options",{value:r.$options}),Object.defineProperty(r,"$type",{value:t}),Object.defineProperty(n,"$type",{value:t})),r}(e,this)},t.Service=O;var S=function(e,t,i,n){r.call(this,e,t,i),this.className="Service.Method",this.options=n||{}};(S.prototype=Object.create(r.prototype)).buildOpt=s.buildOpt,t.Service.Method=S;var M=function(e,t,i,r,n,E,s,I){S.call(this,e,t,i,I),this.className="Service.RPCMethod",this.requestName=r,this.responseName=n,this.requestStream=E,this.responseStream=s,this.resolvedRequestType=null,this.resolvedResponseType=null};return M.prototype=Object.create(S.prototype),t.Service.RPCMethod=M,t}(t),t.Builder=function(e,t,i){var r=function(e){this.ns=new i.Namespace(this,null,""),this.ptr=this.ns,this.resolved=!1,this.result=null,this.files={},this.importRoot=null,this.options=e||{}},n=r.prototype;function E(e){e.messages&&e.messages.forEach((function(t){t.syntax=e.syntax,E(t)})),e.enums&&e.enums.forEach((function(t){t.syntax=e.syntax}))}return r.isMessage=function(e){return"string"==typeof e.name&&(void 0===e.values&&void 0===e.rpc)},r.isMessageField=function(e){return"string"==typeof e.rule&&"string"==typeof e.name&&"string"==typeof e.type&&void 0!==e.id},r.isEnum=function(e){return"string"==typeof e.name&&!(void 0===e.values||!Array.isArray(e.values)||0===e.values.length)},r.isService=function(e){return!("string"!=typeof e.name||"object"!=typeof e.rpc||!e.rpc)},r.isExtend=function(e){return"string"==typeof e.ref},n.reset=function(){return this.ptr=this.ns,this},n.define=function(e){if("string"!=typeof e||!t.TYPEREF.test(e))throw Error("illegal namespace: "+e);return e.split(".").forEach((function(e){var t=this.ptr.getChild(e);null===t&&this.ptr.addChild(t=new i.Namespace(this,this.ptr,e)),this.ptr=t}),this),this},n.create=function(t){if(!t)return this;if(Array.isArray(t)){if(0===t.length)return this;t=t.slice()}else t=[t];for(var n=[t];n.length>0;){if(t=n.pop(),!Array.isArray(t))throw Error("not a valid namespace: "+JSON.stringify(t));for(;t.length>0;){var E=t.shift();if(r.isMessage(E)){var s=new i.Message(this,this.ptr,E.name,E.options,E.isGroup,E.syntax),I={};E.oneofs&&Object.keys(E.oneofs).forEach((function(e){s.addChild(I[e]=new i.Message.OneOf(this,s,e))}),this),E.fields&&E.fields.forEach((function(e){if(null!==s.getChild(0|e.id))throw Error("duplicate or invalid field id in "+s.name+": "+e.id);if(e.options&&"object"!=typeof e.options)throw Error("illegal field options in "+s.name+"#"+e.name);var t=null;if("string"==typeof e.oneof&&!(t=I[e.oneof]))throw Error("illegal oneof in "+s.name+"#"+e.name+": "+e.oneof);e=new i.Message.Field(this,s,e.rule,e.keytype,e.type,e.name,e.id,e.options,t,E.syntax),t&&t.fields.push(e),s.addChild(e)}),this);var o=[];if(E.enums&&E.enums.forEach((function(e){o.push(e)})),E.messages&&E.messages.forEach((function(e){o.push(e)})),E.services&&E.services.forEach((function(e){o.push(e)})),E.extensions&&("number"==typeof E.extensions[0]?s.extensions=[E.extensions]:s.extensions=E.extensions),this.ptr.addChild(s),o.length>0){n.push(t),t=o,o=null,this.ptr=s,s=null;continue}o=null}else if(r.isEnum(E))s=new i.Enum(this,this.ptr,E.name,E.options,E.syntax),E.values.forEach((function(e){s.addChild(new i.Enum.Value(this,s,e.name,e.id))}),this),this.ptr.addChild(s);else if(r.isService(E))s=new i.Service(this,this.ptr,E.name,E.options),Object.keys(E.rpc).forEach((function(e){var t=E.rpc[e];s.addChild(new i.Service.RPCMethod(this,s,e,t.request,t.response,!!t.request_stream,!!t.response_stream,t.options))}),this),this.ptr.addChild(s);else{if(!r.isExtend(E))throw Error("not a valid definition: "+JSON.stringify(E));if(s=this.ptr.resolve(E.ref,!0))E.fields.forEach((function(t){if(null!==s.getChild(0|t.id))throw Error("duplicate extended field id in "+s.name+": "+t.id);if(s.extensions){var r=!1;if(s.extensions.forEach((function(e){t.id>=e[0]&&t.id<=e[1]&&(r=!0)})),!r)throw Error("illegal extended field id in "+s.name+": "+t.id+" (not within valid ranges)")}var n=t.name;this.options.convertFieldsToCamelCase&&(n=e.Util.toCamelCase(n));var E=new i.Message.ExtensionField(this,s,t.rule,t.type,this.ptr.fqn()+"."+n,t.id,t.options),I=new i.Extension(this,this.ptr,t.name,E);E.extension=I,this.ptr.addChild(I),s.addChild(E)}),this);else if(!/\.?google\.protobuf\./.test(E.ref))throw Error("extended message "+E.ref+" is not defined")}E=null,s=null}t=null,this.ptr=this.ptr.parent}return this.resolved=!1,this.result=null,this},n.import=function(t,i){var r="/";if("string"==typeof i){if(e.Util.IS_NODE&&(i=require("path").resolve(i)),!0===this.files[i])return this.reset();this.files[i]=!0}else if("object"==typeof i){var n,s=i.root;if(e.Util.IS_NODE&&(s=require("path").resolve(s)),(s.indexOf("\\")>=0||i.file.indexOf("\\")>=0)&&(r="\\"),n=e.Util.IS_NODE?require("path").join(s,i.file):s+r+i.file,!0===this.files[n])return this.reset();this.files[n]=!0}if(t.imports&&t.imports.length>0){var I,o=!1;"object"==typeof i?(this.importRoot=i.root,o=!0,I=this.importRoot,i=i.file,(I.indexOf("\\")>=0||i.indexOf("\\")>=0)&&(r="\\")):"string"==typeof i?this.importRoot?I=this.importRoot:i.indexOf("/")>=0?""===(I=i.replace(/\/[^\/]*$/,""))&&(I="/"):i.indexOf("\\")>=0?(I=i.replace(/\\[^\\]*$/,""),r="\\"):I=".":I=null;for(var _=0;_<t.imports.length;_++)if("string"==typeof t.imports[_]){if(!I)throw Error("cannot determine import root");var a=t.imports[_];if("google/protobuf/descriptor.proto"===a)continue;if(a=e.Util.IS_NODE?require("path").join(I,a):I+r+a,!0===this.files[a])continue;/\.proto$/i.test(a)&&!e.DotProto&&(a=a.replace(/\.proto$/,".json"));var R=e.Util.fetch(a);if(null===R)throw Error("failed to import '"+a+"' in '"+i+"': file not found");/\.json$/i.test(a)?this.import(JSON.parse(R+""),a):this.import(e.DotProto.Parser.parse(R),a)}else i?/\.(\w+)$/.test(i)?this.import(t.imports[_],i.replace(/^(.+)\.(\w+)$/,(function(e,t,i){return t+"_import"+_+"."+i}))):this.import(t.imports[_],i+"_import"+_):this.import(t.imports[_]);o&&(this.importRoot=null)}t.package&&this.define(t.package),t.syntax&&E(t);var f=this.ptr;return t.options&&Object.keys(t.options).forEach((function(e){f.options[e]=t.options[e]})),t.messages&&(this.create(t.messages),this.ptr=f),t.enums&&(this.create(t.enums),this.ptr=f),t.services&&(this.create(t.services),this.ptr=f),t.extends&&this.create(t.extends),this.reset()},n.resolveAll=function(){var r;if(null==this.ptr||"object"==typeof this.ptr.type)return this;if(this.ptr instanceof i.Namespace)this.ptr.children.forEach((function(e){this.ptr=e,this.resolveAll()}),this);else if(this.ptr instanceof i.Message.Field){if(t.TYPE.test(this.ptr.type))this.ptr.type=e.TYPES[this.ptr.type];else{if(!t.TYPEREF.test(this.ptr.type))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(!(r=(this.ptr instanceof i.Message.ExtensionField?this.ptr.extension.parent:this.ptr.parent).resolve(this.ptr.type,!0)))throw Error("unresolvable type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(this.ptr.resolvedType=r,r instanceof i.Enum){if(this.ptr.type=e.TYPES.enum,"proto3"===this.ptr.syntax&&"proto3"!==r.syntax)throw Error("proto3 message cannot reference proto2 enum")}else{if(!(r instanceof i.Message))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);this.ptr.type=r.isGroup?e.TYPES.group:e.TYPES.message}}if(this.ptr.map){if(!t.TYPE.test(this.ptr.keyType))throw Error("illegal key type for map field in "+this.ptr.toString(!0)+": "+this.ptr.keyType);this.ptr.keyType=e.TYPES[this.ptr.keyType]}"proto3"===this.ptr.syntax&&this.ptr.repeated&&void 0===this.ptr.options.packed&&-1!==e.PACKABLE_WIRE_TYPES.indexOf(this.ptr.type.wireType)&&(this.ptr.options.packed=!0)}else if(this.ptr instanceof e.Reflect.Service.Method){if(!(this.ptr instanceof e.Reflect.Service.RPCMethod))throw Error("illegal service type in "+this.ptr.toString(!0));if(!((r=this.ptr.parent.resolve(this.ptr.requestName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.requestName);if(this.ptr.resolvedRequestType=r,!((r=this.ptr.parent.resolve(this.ptr.responseName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.responseName);this.ptr.resolvedResponseType=r}else if(!(this.ptr instanceof e.Reflect.Message.OneOf||this.ptr instanceof e.Reflect.Extension||this.ptr instanceof e.Reflect.Enum.Value))throw Error("illegal object in namespace: "+typeof this.ptr+": "+this.ptr);return this.reset()},n.build=function(e){if(this.reset(),this.resolved||(this.resolveAll(),this.resolved=!0,this.result=null),null===this.result&&(this.result=this.ns.build()),!e)return this.result;for(var t="string"==typeof e?e.split("."):e,i=this.result,r=0;r<t.length;r++){if(!i[t[r]]){i=null;break}i=i[t[r]]}return i},n.lookup=function(e,t){return e?this.ns.resolve(e,t):this.ns},n.toString=function(){return"Builder"},r.Message=function(){},r.Enum=function(){},r.Service=function(){},r}(t,t.Lang,t.Reflect),t.Map=function(e,t){var i=function(e,i){if(!e.map)throw Error("field is not a map");if(this.field=e,this.keyElem=new t.Element(e.keyType,null,!0,e.syntax),this.valueElem=new t.Element(e.type,e.resolvedType,!1,e.syntax),this.map={},Object.defineProperty(this,"size",{get:function(){return Object.keys(this.map).length}}),i)for(var r=Object.keys(i),n=0;n<r.length;n++){var E=this.keyElem.valueFromString(r[n]),s=this.valueElem.verifyValue(i[r[n]]);this.map[this.keyElem.valueToString(E)]={key:E,value:s}}},r=i.prototype;function n(e){var t=0;return{next:function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}}return r.clear=function(){this.map={}},r.delete=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e)),i=t in this.map;return delete this.map[t],i},r.entries=function(){for(var e,t=[],i=Object.keys(this.map),r=0;r<i.length;r++)t.push([(e=this.map[i[r]]).key,e.value]);return n(t)},r.keys=function(){for(var e=[],t=Object.keys(this.map),i=0;i<t.length;i++)e.push(this.map[t[i]].key);return n(e)},r.values=function(){for(var e=[],t=Object.keys(this.map),i=0;i<t.length;i++)e.push(this.map[t[i]].value);return n(e)},r.forEach=function(e,t){for(var i,r=Object.keys(this.map),n=0;n<r.length;n++)e.call(t,(i=this.map[r[n]]).value,i.key,this)},r.set=function(e,t){var i=this.keyElem.verifyValue(e),r=this.valueElem.verifyValue(t);return this.map[this.keyElem.valueToString(i)]={key:i,value:r},this},r.get=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e));if(t in this.map)return this.map[t].value},r.has=function(e){return this.keyElem.valueToString(this.keyElem.verifyValue(e))in this.map},i}(0,t.Reflect),t.loadProto=function(e,i,r){return("string"==typeof i||i&&"string"==typeof i.file&&"string"==typeof i.root)&&(r=i,i=void 0),t.loadJson(t.DotProto.Parser.parse(e),i,r)},t.newBuilder=function(e){return void 0===(e=e||{}).convertFieldsToCamelCase&&(e.convertFieldsToCamelCase=t.convertFieldsToCamelCase),void 0===e.populateAccessors&&(e.populateAccessors=t.populateAccessors),new t.Builder(e)},t.loadJson=function(e,i,r){return("string"==typeof i||i&&"string"==typeof i.file&&"string"==typeof i.root)&&(r=i,i=null),i&&"object"==typeof i||(i=t.newBuilder()),"string"==typeof e&&(e=JSON.parse(e)),i.import(e,r),i.resolveAll(),i},t}(),m=48,w=64,G=80,F=96,B=112,Y="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",H=(e,t,i)=>{const r={length:0,offset:-1};if(t.length,i>=t.length-1)return r;const n=e[t.charAt(i)+t.charAt(i+1)];if(n[0]===i)return r;const E=t.length-i;for(let e=0,s=n.length;e<s;e++){const s=n[e],I=i-s;if(I>238327)continue;const o=Math.min(E,I);if(o<=r.length)break;if(r.length>2&&t.charAt(s+r.length-1)!==t.charAt(i+r.length-1))continue;let _=2;for(let e=_;e<o&&t.charAt(s+e)===t.charAt(i+e);e++)_++;_>=r.length&&(r.length=_,r.offset=s)}return r},x=e=>{const t=[];let i=0;do{i=e%62,t.push(Y.charAt(i)),e=(e-i)/62}while(e>0);return t.join("")},k=e=>{let t=0,i=0;for(let r=e.length-1;r>=0;r--){if(i=Y.indexOf(e.charAt(r)),-1===i)throw new Error('decode number error, data is "'+e+'"');t=62*t+i}return t},K=(e=>{let t=0,i="";e:do{const r=e.charCodeAt(t++),n=r&B,E=15&r;let s;switch(n){case w:const r=E>>2,I=3&E;if(0===r||0===I)throw new Error("Data parsing error,at "+t);let o=k(e.substr(t,r));const _=k(e.substr(t+=r,I));if(o=i.length-o,o+_>i.length)throw new Error("Data parsing error,at "+t);t+=I,i+=i.substr(o,_);break;case m:if(s=k(e.substr(t,E)),s!==i.length)throw console.log(i.length),console.log(s),new Error("Data parsing error,at "+t);t+=E;break e;case G:s=k(e.substr(t,E)),i+=e.substr(t+=E,s),t+=s;break;case F:i+=e.substr(t,E),t+=E;break;case B:if(E>10)throw new Error("Data parsing error,at "+t);i+=e.substr(t,16+E),t+=16+E;break;default:throw new Error("Data parsing error,at "+t+" header:"+n)}}while(t<e.length);return i})("upackage Modules;\nmessEH4kprobuf {\n EJ8iNotifyMsgEM5QR required int32 type = 1;\nET4hoptionalET4k64 time = 2ETFostring chrmId=3ExIp32 destroyType=4EY4a}IO2BkSyncRequestIT2Mh64 syncTI426IX27EX9kbool ispollIC24Ib2IEX7cwebIY2HER7iPullSend=IW25EWIiKeeping=5IW4LgsendBoxID34Id24b=6EcLibroadcastEe9a7EeLcendIl37a8IH2KucompressioEnabled = 9IS5GiUpStreamMEG7Iw7LbseI814cnIdIU5JIY78flassnaI78CEZHiontent = Ic5GEX7gpushTexEY4Ie5GEY7jappData = Ig57frepeatIc1AltoUserIds = Id5MfdelMsgI257IY5GI817Ea6Ir35Ia5GIP46iconfigFlaIN94IU55Ig1HlclientUniqueI356a0Il1MfextraCIa49a1IiDGePushEEa4Ie45cExtEb4IqDNjbusChannelEb4In5NhsystemIdEZ4Ii4GEZ8lenderPortraiIp14a2I8GMEF6cBitIw54a2IP2GfExtMsgIz65cextEB8c= 2IT2NemetadEZ7IH8GiReferenceI615crefIE18IP85IeBCEgEIcB6Ii1HIi77IS3GEV7dfromIQ96IhJRI9CBIM35I82CI27AI42MetitleIeLMs32 templateIdNoUseI82PIX84Ie25IhDRfConfigIi64IkDNIl1AInD8IG3CdDownI4HDbs I5H8IME7EYHe listICHJIDNHIgMLffinishIJJ5IJPJI8LKIX3JIj18I1C4EZ7IzMMmcredibleStartEg7IQHMEg8bEnIXM8IVHGIXMPICNHeytes Eg8bedIXB7IANHdChrmIC6YIG16I06zIv2KIuSHIv2MIXVHIV8II7QFI0EKIx2GIhJ7I7X4IjY8IRCNegroupISCCIFRSIt87IFRQIAQ9I95DIuI4Ii8EIg5GetatusIZ8JIcV7IgG5IO8IInIFIwPJIQb4direcEI4IrPKEZ6kplantform =ImPHEY6gisRemovId75IkPOfsourceIgPKI9SOIpHNI9SGIMEGI3JEEc8IIEJIbUGa1If5GILTLIm5NILTEIoVMfextStaIP76a2Is57IcYSIGTKc32 IeA5bUnIO24IHTKIrTKIlNNgconvertIW36IETHISUPIy5NISUCIv5GISUPI065I1GCIu1BILSFIyi8aqIOULISjAIlICIS14eenum IJGCIQ16fPERSONIC1AEG6aSIiGAeGROUPIQGAdTEMPEJ8Ip47oCUSTOMERSERVICEI2GAfNOTIFYIlFAbMCI2l8cMP=IK97eULTRAIJ18INE6Io29dFileIl2BdIMAGIW14Ik27eAUDIOIi2AdVIDEEF4Ii27cFILEi4Id27eSIGHTIT2AlCOMBINE_HTMLIZ28IA6CrGetQNupTokenInput IBMFIU29IHuNIS87ckeyI1MQjhttpMethodIWYQhqueryStrIrs6IhGNburIAE4IZANICn6IgUMcsizIVUKIqJ7bpTIY36Ir65Ic4FIqQ4gloadUrlIe4iI6PGIe4TefileNIDfBIY3OITZNIY36INZJIY3CIA8TcOutIX3JIBr8eadlinIY3RetokenIa3QcbosId15Ia3QfbosDatI7dKICO8batIZK4c5;\nEVLfosskeyI8H5IdpNhossPolicIH64ILuNfossSigIg24IYONiossBucketIt67c9;\nInSMl3Credential IOuQms3Algorithm =INuIEc9IY47IZUPa3IV39IHuPa3IV34eatureIZURbs3Ia3DIZU4EeMltcAuthorizatICY7IfvObtcIGV7fSha256ImUKEhAIl38IB6NcstcIb2EIC6OeminioId2GIxU8EjLIf2GI6VHEjCIh27I5VHEaCIj2DIBV4MR41MIzH7Im24dInfoIIVKIGAAIdt6IRyLIDJEIhFMIs1FcUrlIlF8I7oGIFKLImH6dnothIFN6Ig4NInh8IAV9IR1CIAIPIS1aMAD1CICbMdjoinIDX7I8hNereateILvQl32 memberCouIVmCIOgGjhatroomBanIke4ILvNl32 whiteListEd8I6bHIU44dPullMbM1qIfi8Il26IR4JIgm4IU16IpO7MhM1LISuKIptHkRelationQryIk8CIC19IEtJIZiMIp2RIYr6Mo019M2S1MeorderIC7JMSP17hEraseMsgIgnAMd21MI9gAI87GIS4PIzXMcqryI0YCI1nBIR4CcchaEC9I8uOdbotTI457Ijf9IB6JgFilter Mq21FJC661Ie5BIrz9IJqFbagMCC1KI867fTagTopIjdQdpageIAX8I26TI3DKIA48asIcHFIb27EV8ImL5binIrL5I94GIh27bFiMaC19IPAMIED4IOANIBDRa Me71bIZ4eI34KIY35I7HFI88QIeOGbusMdM1NMk91Iemsg =IiLMdreadMgW17IahObunEb4IiL5Is3PMu01DIHmMcverIVO4MtG1NII28cminIj16MQY1PIj1AIQENbUnIR37Ig55dmsgIIH97Me81MIs16bMeIu18I8eHIv97bBoMOY1AMkf1DIn1DIYVMM6U1FI5PFcmsgIC66IYFMIb26MDn15IDlOMTF15IZZ7IROHiQryRemindIlR4cReqIe2NM6H1AIlVOIp7DI7EMIH37IUOPI4r7Ie2WbspImGGIZ7PIzUHgleanHisEh5IxHAIErJeargetIZ6CMvJ1SIr37MNE1KIlB4IkF5Il6DI95VIA4HIy25hMsgBatchIo6AI5PCIW3GbinE64IC49IP5ClueryChatRoomIo44IKfRIpP5IIQOIoP5IFf9Ia1SIrNDI81FIHJ4iTotalNumsIVCCIbS9drmMeIsd4IyJ6cnfoMGG15IfcKEe7IecLMF127IRLNaiINL9IG3DgHistoryI29FMIf1HI09HMF32cIZVCIEbnIB9KIjMGIuRPIGVLhignoreCmMPt1AIK4NbOuIJVJMTi1Mb=1MRc1Ta=MZz1GIw36bhaIVB4ICRNM7h1KIJRMM7h1IIf4wIYWMI2aHbSeIWq5dsAttIQkFIirUI61NMwA1SeinboxIIoQMSP17EaAIr5JIlA4INE4IhL6ITS8Mwt1HIL27gMsgReadIR3LIXZZIrOGMk72OIC16M5u1SINLUgDeleteSIF57Io2EI2B7ET7IPP5IWx7IVI9I14JJQd01IN3CIJTMIHcBIx3uIVM5Jw371IC1DeOutPuID1vIai8cDelImRFIhmHcOpIIv25breEG6IomObclI4T6IoOKIE1GIJaMIJVCMcs1XI2WGMZO1RIh6CISDHIeA6IvPOI2vZI33OIVD9IoM8Ih18I5E4IX64ITDxMl61AMHC2eI3G9I9L4Mh02NM4u1CIp4KI8W4iKVEntity IH7MMUY16IBENevalueIw1PMUx19IGQMIdV4estampMVd1RIjX5Ml51MIlq7IAvKcSetIW36IhHIIs3BeentryIKCOabMOc26IY3JMxU2GgnotificIaD8Io3GI4AJMkb2IIq28bS M661HJr2P2IR26Mr41MIt2HbieI1hBIv2FiFullUpdatIO9NMAJ1ENv41O1IV3IbSVIk96InCDIJAPMRq1YIheDIb17I75SET7IE58hrrorKeysIHmNIq2HdkeysEI7ITmOIc1GIVIMISGDIxFFIQ25dCodeIb1KIxp7IVEKISGIImQMIa7JIf1HnSetUserSettingIJfOIv6AIxjHIjJCIvj8I8mKIO5AI0eJI82CIOgSI92OIg15greserveI92MbupIwC4I92RdPullII4rIg1EI92OMUv1FI32WInBMIa2Chtem itemIfBDIi2LMuB1II91FIiRMIQw8MUR2iIoSMMrQ2GIiH6InS8MoQ2MI338MlQ2JIHT9MJB28IveGcTagIU35dtagsMt42JEc7MKD1JMu11IEuJMzf15MMZ2AIqAUIT2EMwg16I334MzG18IY1OJVmU1Ic37M7Y1GI32CI955Ii25EA5MG31hIN3OIx9KEWCIW35Ixl7EHAI2ceII8SI9cTIOVCMBK25IO2HMJK27esSileM4Q16IF16bIsMOc16I627cTagIi1BgAutoTraIDp5InZJIb1AfModifyIVAPIY9nIeMnaGMqV2AIcQ5IzRNMCY2EI71RcSetI41eIqFHbunI414dLeveM7R19Ie1NeResulIUsOMnS1AMmS1hIF2TMe51OIH7DMSS1BIXPgIDRGIx3HIOA4Iw36NI7101IucAIt3fIU9WIlBHIm2AI4WZIyZOIQ4XmGrpReadReceipMzO3DMsr1EIdv5I26HIGLOMP21EIX19MmP1rMUT3AM1T3PMAD1QMP837dreadIhK6b4 MUv1MIc35ds= 5EW7MXB3KMXQ2AIlgHId37IVIAIg3hIYDJIuaMIF47Mcy1NI836MyB2PMw22AMuB2MMYU17MYy1bMZl1JIg58Mzp1NMav15Mtp18b EZObSiMRj15MvT2OMiw1CMlp18IF4GduserIMe5IcnMIr67MgE1OEaCIZfGIS4PIi1TJW871MQ71NIX8iIlEEI4B7Mko1IIaBEbspIvW5cresI4sXMiC3KIUzDISz7MFM3OIf7BMCO1MI87EI03UEb9Ivm9J53F1MEn1IIw1LJA8q1IC7LMg725IV5UIt2VMMK1XMIK1TMjc15aCMQW1LMq92AEW6I6r9MNT19IZ25IHt4Ec5E95MDi3PMAY16dListMr92PMjY17Il15IQrGIl1CEe6In17MNw2IIlTDMU225IsZLI548M6u16cNumMz81JcGrpMhg17Im15MqQ37IcVKEdCIEXLIoM5MNv1TMoG2EIIdJeTagAdMvi1MIWkbIXwDMA71uIC1DMD11OILZRdnameIzTKMXf29Ik45MIy3OcTopMj04JIP29cDelJd412Mr51BMHQ15McP18NqB111IHPEgportSDKMQg1SgsdkInfoIT16Ib2DgltraGrpMa346MT318M0j2ZMhe2aMEA1IIm1BMkk2hM0K1pIC24ehangeMBL2QMQd3TIlOIIWoGIbpJMRd3NfmsgUIDMXC1JI0NGMBV2qMUe3HMc32HILu6IqI5IWK9I7PGEZ5I16NM6Z2NILcNI569Ih7nMl527eeedCoIdWPMBY37enlineMRa1NI97II3HHeEventIh26IrQ5IZZFEVBN9p301dhasNMzK36a3IIqNIg2GInDIIL4BIPr6IF3NM871QeinessILXLMjr2QMTH1aMq13IcngeI217Mo83OjriginalId Myp1PEa8Mov2NMq539hcondaryIMkv2KI657eAdminMGL4OdaddiEG6dMarkIMr6Iv2MgperatorMhF4MM8R17bubIJ66MUJ18IqBMIw29Ed8MyQ4NM9c26bMeMQL3BICcGcextILo6MLL3HMxg2GMrp3KIBk6eeventI8k7M9L36IkLLIyCKI8GAIwCzIxCHI52LMfZ1VMA14jMkW1MIfNGIfBQIEONMIa1PIFOAIWBNIFODIVBqeisDelMbs2JJLBK1MSu2HIMBxIsi4M3O15JSBa1MIS1CJM991IUC8Id16IZ15M8M25M5o35IY95c //IE2GEjGISTLI29AIQZNI5AAM0K2rIO48cAckM1O4oIH7EhnotExistMzb48IKXHbOpIFA4heStatus MW11XIMRTMzL1NMiG17M7t1DMcL2mIh2DMPC27IZj8MYO2ZIuRHMpC25IJO8MWx29I859In17MdG3CIXX8EcIjSummary suE86c= 4IILHIJ1CNH71N1I9yGMXr2NIH68Mxm2MEF4I1jAI634Eb4IJ6JIm37NXA1T1Mmu2WIF3DMMD1DfSetRtcMX035Mt11MI927b rEc8MU73KgallInfoMzL28MkT2QIbGPddataINt7I7wIIY18IkFAJa161IGJIaaMGq25MR216I42CbKvMp11RIanGEvEMEg1SIo17IqIJIp14IdDAIO4HEV7MWZ2RMTx1UMqf1SI1zJIEQyIwNYMgx3KcartImM8MPV4OcndMEY7Mas4JMsG1AMf01OMas4VM1t1TIO4II49HMBO1GMGE3Mdnum ID8IMkK1CMnI1CM6f1LM6O1BIB4JMGJ1BMYO1HEX5IpyNM7a3WM7G1BMLY1RMp15AIzvLimentionedIH7QcCntIK7DMNq2qMMD2RIeARMRe1LMQe1RIk28MWb1IMdP17Ir64fresultMzO3KEbBM3X1nImO4M5p3RbtmMiJ1MMGy15MoJ15bubIi5JIak9MJF2GMkR2ChubDetailEe4EH4Mi71NIPaSM3c27cxpiIFX6MQM1LIg19Ib4MI227If4AIl3RMzZ3JIG3OMAf4NcubTM9f4FMnW2HIS5OMxj2aMcl1CIa1IbUlIa1AIH3PIQz5I5jEIA2PMwB1WMHo1dMbv3JcullICNKIe2CIM6xInADMFs2NIs69I9AaI9BQI93HMLU15fubDataIs7WMjS1SgneedAllM8q48Iq5YMsg2LID29IV8IER7IQ57IX8aMXK1dJb8J1Ik2EI6GNItq5cStrMPN4RIfGBMBY2HIb16IQf5Mcr3QIb99I7kJI317IJLLhplatformMTr3CEbHMiC3RIF6HINYIcrySI8ASISNxIxEGgProfileIdJtIuXGI929IP17Ih45Eb4If18InUIEgGcExtEjAILPHEkCMo23iMEh2KMyy2JIX17Msc1QM083iIUYIpcensorFailedFielMKD15M2x2PIH29MNH2HIA6GI3TII11AMhQ5HI68CII8CI91UMqk3sI31BePermiM8u15ImDNEWAMju2LdarchI7BRMU629MEK5AMAC3IIBf5Mwd3DMZ21hMnH1ZIoACbseMhw15IHCccextIDCFIx1IdBaseEj5abE98MiA2QIIG7MtL17IC4IIE19IE4MMv225McQ18MCR1NbwnILoNMXj4JIjMMMXj4EInMIIy68ML74PMfA15M8A15Mvp1TafMvQ56Mts4OMtr15Ic2MiprocessCoM8K35Ia6NgsJoinedIP55Iep8Ig6MEn8IkR5IOK8Mi948MYY1GlFriendInviteEj5bfrEHFMoY1IEq6IX19Eo6EF9MJg4IIxISMji57IXqCdultiIA38IMugI74HISE6MSI2EMgz1HJBFR1EZ9dQuitIe18MsB27IJF8It47M4b1RMHj2QIcA8IagDMp41DIv1IIb3FIDc7Eg4Mtg4QMKv35IsmPEW5eWhiteM3w2PEY4cAttMQ216ITETMwa17JL6Q1If18jPageParam Iog4IC6QbidIA6QbroMNP57MSp2OMir4AI7LPID2BI9dMMOo27I6vdMR52hM2W2BMhX19M8N4PMK528I73JMuZ47Mo93AI51FIOE4IIgEMnl1FM8716Iu6nIgU4IjULIQJ4Mjd16INK6MGx4MEfHImqDIV1NI7K8IN1PIeK9IF1ZIvNAIH1PIUOBIJ1EIW2RIpZOMeN2FIm5HI214cExtIbX8MkH2QbpTMgH2TM416EMVJ1OMGJ56IOJIII2KIf9LIPE4IixPMNH5BMb93UdNickMod5UMEC2AIR3QfremarkIA17MyU4LcisBIgL5MFa6NbanM7D6VMjt48MDm27Iv4JMal26MjE16JfLS1Mzm1WIe5PMjZ6OIe5CMDB3NISSDMp22HI5DJI14eIdkcIMlSIdkDMW74NIdkKIkeOIECCI0e8Mu44MIgJNI48uIWHAILD4IMeBI2NOEZ9binI724El8MA81NMsI48I4UMMNF69I9UTIoF5IL8BMZh6KME615Mh95OdapplM4e28MuG2GIT3HIil7IT37MTC6MEa7Ion8MHO5HItEEgResponsJvET1IAD8IhU8Mfy1OIjV8IoEPIK89MtO4KIZb8I887MFu5RIS6EIY4QNX01T1IMJDMD81LIbr8Mrz4uM5a3XM8B28Ix1MMXi4MIy1qIU1JeCheckMd84MEY6EXCIbYPEhIIm4tIdG9Iq2NMIC1JMaB2oIAVDIgNkIM2PID5MIBzSMaC1HII16I7rQMJe37EW4I9kNIejPIdGMMG216MpI5BII2II6guMWz18Mnp46MCP3TIA2AIqIPM0917IdcqI8hEIgINI8hEM5P3GIY8PIKP7IGHNMa819I55lIs2EMjh1OIs2DI05MMrf4CI5EQMbw2NMYF1DI15NITJ7Mmn3MIb7DMtT3HIYI7IDw4J6KT1Mw145cSetIixNMQ247IrJOIwuPIpCFI0LVIQ8AIB1NIx8BI7wREi6aAIdZ4Mg635IQ3MI9a6Mxv5SIa6DI6RZJku71INWHIE35MqP2DMv11WI7B6MVe5PEt6IY45MAo1KIDeHcoptIRiBIpLOMvP1PIePGMvP1TIOnNIW1JdFullIYnCIfBII774MDx26IM8LMuQ39Ih95IIDQIM8IIiOJITw5If1SIcM6IW87IUsSIXLDIn1HcAddM0G46ePerioMMf2TMzC6CMUO4MispanMinutMMz45IdQMIQG8MJO3OgimezoneMeC5QIp2XMal1XIdW5J9191I91CMRQ6SbisM6179M332OIf5BMGD5NIf5DIjQMIf58MIP7OIf5AI1HHMvQ27I9ASN0y3U1MQa2DIpTMMnw3CMXg1GMYy3GMyx36MO61IMH676MqO5OMiC39MTU35M6P1TM4V39M6m2NmSpeechToTextIEa4M7a7sfobjectIDkEMyf3QMZ31NfampleRMKr6MM1L3AjnelNumber ISePfformatITZQMLd68I9xII469Myx5SI56jMZ019I76TMuW1MIlL9I517MMl6OIJ17MMe4KdransMK62JEO5I085ctraEA6MvR2QcmodMP33LM9c76dorceMPp48I8oHI427McO2IEP8IV34Ic36I42dIW1HIUkREe7Mkr36InfNI514IqaUbteM4Q2SI315dFileINa6Mow6OMYS75aLMnR15IBBNIYi6EZ6MDk6MMtA65aSMkT76IKBKIU5CIP4pIN3CICBEIM3UMnr3TEZ6IiFNMY226MgA7NIp3BMaR1JMB345MMx3Acq {Mqb4IMqZ67Mo84AMFS4dIvA9IJA9M1M3AMSK2LMZz3KM9t2AET8Mz627ICRMdnextMYp4FMFq7hIF3GMXa2HM3Y5dIm2AIXKLII4DMk24jMtW7DbacEB4I2W6creaM1h78M7K4OM4t6OMGS2WMpm6UIx4DM9K4HMBw1GMFK4PMGl6NEU7ET7MrD57Mrx1xIg7BMIs7uIN2ENSS3N1MoE4QI37MMyN8HMoD66IBs6EB5M5r1LEcBIxALMl536I0QNM8926Iid6IJfMEZ7cMeCMNd4RjclearTime=MrL6NeutOffEX5I8KGMCd6EgfirstUnEJ7IJKCMxK55Iqv4MpK5BgKICK = Mus37eREFUSMNf7BgCOEXISTMX55LgtcValueM6R3UMrg5ZIN1FIxpRdroomMXL15M5v3NMZ988Ea5I8HHIq2CI0e5eInnerM6s4NMYy29bSyIpA4MOE75IlKJbIdIf74btyMex3BbidEJHI8RIIH69MNk1IIwmAIr2CbinIm27MC45BEgMeouterEg8MXG1HcRtcIVhSIfv7Ih5KMPh5KIZ95IC4JIU16mAnchorToVieweMty2BEG6bToEW6Ik9KcBotM5J1SMUK26IHyHcBotIY36EsFIG15ffo botEuOEW4IdJMM0A65b1;MjH4MMVP1yIBL8MYA4FME249MXz76Mys66Mkz7AMcK8PMeP1QMht47Me915MJ72CMI34EIn1AM2x2UIH4MM3x2PIQV8NEg101JMP21MAW3KI2sKIm27MAt1KMtA8KMVa1OMPj8AMFh7NMPj8AMEh7NMbi4DM4Q8HIV58M484AMN35IMs226M5q3NI318M1955cQryJb6o1Mlc3TImZRMZJ2LcallMm457IS6OIMbBMLO7JIJ46M9t2NI62GMR21MIsbHMxH4HMwD15IYC7Mk876EG8MtI5tIK1FMFg3qIs88I3aDMlD1BIq2BInkSEf8JQ9r1J1GE1IU9VMAj2DIrFNIz6CMC39TIpFSJSAM1MUY3XI88ZMfr3JES6Iv44Jv2v1IrvHIv2fMsB1RIs8DMV12OICMDIOnMduserIJnMM6s56cserII25MgQ5KIa5AEe5Mr74MEbBMh42tIC3IIa1KMOX1SJvFf2Mrm3FI7lHIv5GMEp5QIY7AIskHePSelfMXu6QN501d1d32 pMaM18M4B1MIRg6M1r3IcSrsMrA1Mj64 lastMsgIt86IT9McdelIO9Eb}\n3TV9");var X,W;var J,Q,Z,j,q,z,$,ee,te,ie,re,ne,Ee,se,Ie,oe,_e,ae,Re,fe,he,le,Te,Ae,ue,Ne,Oe,Se,Me,ce,ge,de,Ce,pe,Le,Pe,De,Ue,ye;X=new WeakSet,W=function e(i,r){if(i instanceof Array)return i.map((i=>t(this,X,"m",e).call(this,i)));if(n=i,"[object Object]"!==Object.prototype.toString.call(n))return i;var n;if(i instanceof b.ByteBuffer)return i.toArrayBuffer();if(i instanceof b.Long)return r?i.toString():i.toNumber();const E={};return Object.keys(i).forEach((r=>{const n=i[r],s="ExtMsgData"===i.$type.name&&"seqId"===r;E[r]=t(this,X,"m",e).call(this,n,s)})),E},function(e){e[e.PERSON=1]="PERSON",e[e.PERSONS=2]="PERSONS",e[e.GROUP=3]="GROUP",e[e.TEMPGROUP=4]="TEMPGROUP",e[e.CUSTOMERSERVICE=5]="CUSTOMERSERVICE",e[e.NOTIFY=6]="NOTIFY",e[e.MC=7]="MC",e[e.MP=8]="MP",e[e.ULTRAGROUP=10]="ULTRAGROUP"}(J||(J={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.AUDIO=2]="AUDIO",e[e.VIDEO=3]="VIDEO",e[e.FILE=4]="FILE",e[e.SIGHT=5]="SIGHT",e[e.COMBINE_HTML=6]="COMBINE_HTML"}(Q||(Q={})),function(e){e[e.IsSilent=1]="IsSilent",e[e.IsTop=2]="IsTop",e[e.Tags=3]="Tags",e[e.AutoTrans=4]="AutoTrans"}(Z||(Z={})),function(e){e[e.KICK=0]="KICK",e[e.REFUSE=1]="REFUSE",e[e.COEXIST=2]="COEXIST"}(j||(j={})),function(e){e[e.AnchorToViewer=1]="AnchorToViewer",e[e.ViewerToAnchor=2]="ViewerToAnchor"}(q||(q={})),new class{constructor(e){X.add(this),Object.defineProperty(this,"pbModules",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=b.loadProto(e);this.pbModules=t.build("Modules").probuf}encode(e,t){return this.pbModules[e].encode(t).toArrayBuffer()}decode(e,i){try{const r=this.pbModules[e].decode(i);return t(this,X,"m",W).call(this,r)}catch(t){const i=`name: ${e}, stack: ${t.stack}`;throw null===console||void 0===console||console.error("pb decode error!",i),t}}}(K),function(e){e[e.IMAGE=1]="IMAGE",e[e.AUDIO=2]="AUDIO",e[e.VIDEO=3]="VIDEO",e[e.FILE=4]="FILE",e[e.SIGHT=5]="SIGHT",e[e.COMBINE_HTML=6]="COMBINE_HTML"}(z||(z={})),function(e){e[e.ALL=1]="ALL",e[e.SINGAL=2]="SINGAL"}($||($={})),function(e){e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE"}(ee||(ee={})),function(e){e[e.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",e[e.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",e[e.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(te||(te={})),function(e){e[e.MSG_EXPANSION=1]="MSG_EXPANSION",e[e.MSG_MODIFY=2]="MSG_MODIFY",e[e.MSG_RECALL=3]="MSG_RECALL",e[e.CHANNEL_CHANGE=4]="CHANNEL_CHANGE",e[e.USER_GROUP_CHANGE=5]="USER_GROUP_CHANGE",e[e.UG_DEL=6]="UG_DEL"}(ie||(ie={})),function(e){e[e.CHANNEL_DELETE=1]="CHANNEL_DELETE",e[e.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",e[e.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",e[e.PRIVATE_CHANNEL_USER_JOIN_PUBLIC=4]="PRIVATE_CHANNEL_USER_JOIN_PUBLIC",e[e.CHANNEL_USER_KICKED=5]="CHANNEL_USER_KICKED",e[e.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(re||(re={})),function(e){e[e.REMOVE_USER_GROUP=1]="REMOVE_USER_GROUP",e[e.JOIN_USER_GROUP=2]="JOIN_USER_GROUP",e[e.EXIT_USER_GROUP=3]="EXIT_USER_GROUP",e[e.CHANNEL_BIND_USER_GROUP=4]="CHANNEL_BIND_USER_GROUP",e[e.CHANNEL_UNBIND_USER_GROUP=5]="CHANNEL_UNBIND_USER_GROUP"}(ne||(ne={})),function(e){e[e.NOT_MENTIONED=0]="NOT_MENTIONED",e[e.ALL=1]="ALL",e[e.ME=2]="ME"}(Ee||(Ee={})),function(e){e[e.SENDING=10]="SENDING",e[e.FAILED=20]="FAILED",e[e.SENT=30]="SENT",e[e.RECEIVED=40]="RECEIVED",e[e.READ=50]="READ",e[e.DESTROYED=60]="DESTROYED"}(se||(se={})),function(e){e[e.typing=0]="typing"}(Ie||(Ie={})),function(e){e[e.ONLINE=1]="ONLINE",e[e.OFFLINE=0]="OFFLINE"}(oe||(oe={})),function(e){e[e.Other=0]="Other",e[e.iOS=1]="iOS",e[e.Android=2]="Android",e[e.Web=3]="Web",e[e.PC=4]="PC",e[e.Mini=5]="Mini",e[e.HarmonyOS=6]="HarmonyOS"}(_e||(_e={})),function(e){e[e.ONLINE_STATUS=1]="ONLINE_STATUS",e[e.USER_PROFILE=2]="USER_PROFILE",e[e.FRIEND_ONLINE_STATUS=3]="FRIEND_ONLINE_STATUS",e[e.FRIEND_USER_PROFILE=4]="FRIEND_USER_PROFILE"}(ae||(ae={})),function(e){e[e.SUBSCRIBE=0]="SUBSCRIBE",e[e.UNSUBSCRIBE=1]="UNSUBSCRIBE"}(Re||(Re={})),function(e){e[e.NOT_SET=0]="NOT_SET",e[e.INVISIBLE=1]="INVISIBLE",e[e.EVERYONE=2]="EVERYONE",e[e.FriendVisible=3]="FriendVisible"}(fe||(fe={})),function(e){e[e.CONNECTED=0]="CONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.DISCONNECTED=2]="DISCONNECTED",e[e.SUSPENDED=3]="SUSPENDED"}(he||(he={})),function(e){e[e.GLOBAL=1]="GLOBAL",e[e.CUSTOM=2]="CUSTOM",e[e.THIRD_PARTY=3]="THIRD_PARTY"}(le||(le={})),function(e){e[e.MSG_ORIGINAL=0]="MSG_ORIGINAL",e[e.MSG_EXPANSION=1]="MSG_EXPANSION",e[e.MSG_MODIFY=2]="MSG_MODIFY"}(Te||(Te={})),function(e){e[e.SEND=1]="SEND",e[e.RECEIVE=2]="RECEIVE"}(Ae||(Ae={})),function(e){e.NORMAL="NORMAL",e.LOW="LOW"}(ue||(ue={})),function(e){e.IM_NAVI="IM-stats_navi-S",e.IM_WEBSOCKET="IM-stats_websocket-S",e.IM_CONNECTION_DURATION="IM-stats_con_dur-S",e.IM_CMP="IM-stats_cmp-S",e.IM_CMP_RMTP="IM-stats_cmp_rmtp-S",e.IM_STATS_CS="IM-stats_cs-S",e.IM_NETWORK_CHANGE="IM-stats_network_change-S",e.L_CLOUD_INFO_FETCH_T="L-cloud_info_fetch-T",e.L_CLOUD_INFO_FETCH_R="L-cloud_info_fetch-R",e.IM_MSG_SEND="IM-msg_send-S",e.IM_MSG_RECEIVE="IM-msg_receive-S"}(Ne||(Ne={})),function(e){e[e.ALL_MESSAGE=-1]="ALL_MESSAGE",e[e.NOT_SET=0]="NOT_SET",e[e.AT_MESSAGE_NOTIFICATION=1]="AT_MESSAGE_NOTIFICATION",e[e.AT_USER_NOTIFICATION=2]="AT_USER_NOTIFICATION",e[e.AT_GROUP_ALL_USER_NOTIFICATION=4]="AT_GROUP_ALL_USER_NOTIFICATION",e[e.NOT_MESSAGE_NOTIFICATION=5]="NOT_MESSAGE_NOTIFICATION"}(Oe||(Oe={})),function(e){e[e.OPEN=1]="OPEN",e[e.CLOSE=2]="CLOSE"}(Se||(Se={})),function(e){e[e.READ=1]="READ",e[e.LISTENED=2]="LISTENED",e[e.DOWNLOADED=4]="DOWNLOADED",e[e.RETRIEVED=8]="RETRIEVED",e[e.UNREAD=0]="UNREAD"}(Me||(Me={})),function(e){e[e.PRIVATE=1]="PRIVATE",e[e.OPEN=0]="OPEN"}(ce||(ce={})),function(e){e[e.NAVI=1]="NAVI",e[e.TCP=2]="TCP",e[e.WS=3]="WS"}(ge||(ge={})),function(e){e[e.REQUEST=0]="REQUEST",e[e.LOCAL=1]="LOCAL"}(de||(de={})),function(e){e[e.CURRENT=2]="CURRENT"}(Ce||(Ce={})),function(e){e[e.CONNECT=0]="CONNECT",e[e.RECONNECT=1]="RECONNECT"}(pe||(pe={})),function(e){e[e.CONNECT=0]="CONNECT",e[e.RECONNECT=1]="RECONNECT",e[e.REDIRECTED=3]="REDIRECTED",e[e.TIMEOUT=4]="TIMEOUT"}(Le||(Le={})),function(e){e.PASSIVE="passive",e.ACTIVE="active",e.TIME_SENSITIVE="time-sensitive",e.CRITICAL="critical"}(Pe||(Pe={})),function(e){e[e.PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_DEFAULT=0]="PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_DEFAULT",e[e.PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_MENTION_MESSAGE=1]="PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_MENTION_MESSAGE",e[e.PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_BLOCKED=5]="PUSH_NOTIFICATION_QUIET_HOURS_LEVEL_BLOCKED"}(De||(De={})),function(e){e.WIFI="wifi",e.FOUR_G="4g",e.THREE_G="3g",e.TWO_G="2g",e.FIVE_G="2g",e.THREE_GENT="3gnet",e.UNKONWN="unknown"}(Ue||(Ue={})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT"}(ye||(ye={}));("undefined"!=typeof window&&window?(window.__RCVersionInfo||(window.__RCVersionInfo={}),window.__RCVersionInfo):{}).engine="5.48.2";var ve,Ve,be,me;({gen:()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=Math.floor(36*Math.random());return("x"===e?t:3&t|8).toString(36)})),genWithLen(e=22){const t=Date.now(),i=t.toString(36),r=Math.floor(Math.random()*t).toString(36),n=e-i.length-r.length;var E;return[r,i,n>0?(E=n,Array.from({length:E}).map((()=>Math.floor(36*Math.random()).toString(36))).join("")):""].join("").slice(0,e)}}).genWithLen(22),function(e){e[e.add=1]="add",e[e.update=2]="update",e[e.delete=3]="delete"}(ve||(ve={})),function(e){e[e.BJ=1]="BJ",e[e.SG=2]="SG",e[e.NA=3]="NA",e[e.SG_A=4]="SG_A",e[e.SG_B=4]="SG_B",e[e.SA=5]="SA",e[e.OM=6]="OM"}(Ve||(Ve={})),Ve.BJ,V.HTTPS,Ve.SG,V.HTTPS,Ve.NA,V.HTTPS,Ve.SG_B,V.HTTPS,Ve.SA,V.HTTPS,Ve.OM,V.HTTPS,function(e){e[e.STATISTICS=-2]="STATISTICS",e[e.RECORD=-1]="RECORD",e[e.FATAL=0]="FATAL",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG"}(be||(be={})),function(e){e[e.ERROR=-1]="ERROR",e[e.RESPONSE=0]="RESPONSE",e[e.CALLBACK=1]="CALLBACK"}(me||(me={}));const{sendResponse:we}=(Ge=process,{sendError:e=>{Ge.send({type:me.ERROR,data:{msg:e}})},sendResponse:e=>{Ge.send({type:me.RESPONSE,data:e})},sendCallback:e=>{Ge.send({type:me.CALLBACK,data:e})}});var Ge;const Fe=e=>(e=>{const t={};for(let i=0;i<e.length-1;i++){const r=e.charAt(i)+e.charAt(i+1);t.hasOwnProperty(r)?t[r].push(i):t[r]=[i]}const i=[];let r=[];const n=function(){if(r.length>0){const e=r.join("");if(r=[],e.length>26){const t=x(e.length),r=String.fromCharCode(G|t.length);i.push(r+t)}else{const t=String.fromCharCode(F|e.length);i.push(t)}i.push(e)}};let E=0;for(;E<e.length;){const s=H(t,e,E);if(s.length<2){r.push(e.charAt(E++));continue}if(s.length<4){r.push(e.substr(E,s.length)),E+=s.length;continue}const I=x(E-s.offset),o=x(s.length);if(I.length+o.length>=s.length){r.push(e.substr(E,s.length)),E+=s.length;continue}n();const _=String.fromCharCode(w|I.length<<2|o.length);i.push(_+I+o),E+=s.length}n();const s=x(e.length),I=String.fromCharCode(m|s.length);return i.push(I+s),i.join("")})(e.map((e=>`${e.sessionId},${e.time},${e.type},${e.level},${e.tag},${e.content}`)).join(""));process.title=`${function(e){const t=e.lastIndexOf("/");return-1!==t?e.substring(t+1):e}(process.title)} CompressLog`,process.on("message",(t=>e(void 0,0,void 0,(function*(){const{reqId:e,method:i,args:r}=t;if("compressLogs"===i){const t=Fe(r[0]);we({reqId:e,success:!0,data:{data:t,code:y.SUCCESS}})}else"destroy"===i?process.exit(0):we({reqId:e,success:!1})}))));