wildfire-im-sdk
Version:
野火IM SDK for Vue3 projects
1 lines • 1.62 MB
JavaScript
"use strict";var events=require("events"),Long=require("long"),base64Arraybuffer=require("base64-arraybuffer"),DetectRTC=require("detectrtc");function _mergeNamespaces(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}var a=Object.freeze({__proto__:null,get PttClient(){return PttClient},get default(){return self$2}}),r=Object.freeze({__proto__:null,get WfcManager(){return WfcManager},get default(){return self$1}});const Config={APP_SERVER:"https://imapp-dev.shengshitong.com",ROUTE_PORT:443,USE_WSS:!0,ENABLE_AUTO_LOGIN:!0,ENABLE_MULTI_VOIP_CALL:!0,ENABLE_SINGLE_VOIP_CALL:!0,ENABLE_VOIP_DEBUG_MODE:!1,DEFAULT_PORTRAIT_URL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAFfgAABX4BPgLDIQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAWCSURBVHic7Z3/T9R1HMefn7vPHXfenXeAw0a4UHSVmptKzK0knVqr+MEfwpyuzdqarVqzWcu5WrOfWuZixZitn8TNctRqTdaKvqDpzAoGZKQQaAQUJhwHx32/+/SDc7NT2u58fz7vJ/J+/AHv1xsevL9+Xu8XmmEYBhQ02GR3QPFflBAylBAylBAylBAylBAylBAylBAylBAylBAylBAylBAydNkdyJdo3MDgSAojY2mkUlcurHVdw23FdpSV6HAVaJJ7mB8zSsjEVAYtP0TQ2hZFd38SqfSNvxzodg3LKpxYt9qNTWvc8M2ZOROBNhO+h8STBo58MYmPvgojFs+tu64CDVsf9GL7wz44Hfyjhl7IuYsJvPFBEEOXUjfVzoL5Ol57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1IiAQEYObc0mIJDmZmpEQCAjh7ZmExBIczM1IvAFWDC2pw/rRZEAAAAASUVORK5CYII=",AUTO_CONNECT:!0,DISABLE_LOG:!1,ASR_SERVER:null,ORGANIZATION_SERVER:"https://imapp-dev.shengshitong.com",QR_CODE_PREFIX_PC_SESSION:"wildfirechat://pcsession/",ICE_SERVERS:[["turn:36.131.215.57:3478","admin","123456"]],MESSAGE_ROAMING:1,AI_PORTAL_URL:null,ENABLE_ROAMING_MESSAGE_RECEIVING_NOTIFICATION:!1,ENABLE_ROAMING_TRANSPARENT_MESSAGE_RECEIVING_NOTIFICATION:!1,ENABLE_GENERATE_CONVERSATION_FOR_TRANSPARENT_MESSAGE:!1,CLIENT_ID_STRATEGY:1,SDK_PLATFORM_WINDOWS:3,SDK_PLATFORM_OSX:4,SDK_PLATFORM_WEB:5,SDK_PLATFORM_WX:6,KEEP_ALIVE_INTERNAL:180,KEEP_ALIVE_TIMEOUT:201,PLATFORM:3,KEEP_ALIVE_INTERVAL:3e4,REQUEST_TIMEOUT:1e4,MAX_RETRY_COUNT:3,ENABLE_LOG:!0,ENABLE_SYNC_DRAFT:!0,ENABLE_OFFLINE_MESSAGE:!0,ENABLE_MESSAGE_RECEIPT:!0,ENABLE_NOTIFICATION:!0,AMR_TO_MP3_SERVER_ADDRESS:"https://imapp-dev.shengshitong.com/amr2mp3?path=",SEND_MESSAGE_TIMEOUT:20,CONVERSATION_EXPIRE_TIME:30,FILE_HELPER_ID:"wfc_file_transfer",ENABLE_INFO_PERSISTENCE:!1,MAX_TO_LOAD_UNREAD_COUNT_PER_CONVERSATION:99,RECALL_REEDIT_TIME_LIMIT:60,ENABLE_MULTI_CALL_AUTO_JOIN:!1,ENABLE_PTT:!0,ENABLE_MIX_MEDIA_MESSAGE:!1,SEND_LOG_COMMAND:"*#marslog#",ENABLE_WATER_MARK:!0,SHOW_VOIP_TIP:!0,UI:{DEFAULT_AVATAR_URL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA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b1Zcv/AOmjBXoSCJhJAAAAAElFTkSuQmCC",MESSAGE_RECALL_TIME_LIMIT:300},getWFCPlatform:()=>5,config(e){Object.keys(e).forEach((t=>{Config[t]=e[t]}))},urlRedirect:e=>e?(Config.isUseBackupAddress()&&(e=e.replace("oss.xxxx.com","192.168.2.19")),e):e,isUseBackupAddress(){},emojiBaseUrl:()=>"https://static.wildfirechat.net/twemoji/assets/",stickerBaseUrl:()=>"https://static.wildfirechat.net/sticker/"};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Config.getWFCPlatform=()=>5;var base64_min$1={};!function(e){!function(){var t=null!==e&&"number"!=typeof e.nodeType?e:"undefined"!=typeof self?self:$.global,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function n(e){this.message=e}(n.prototype=new Error).name="InvalidCharacterError",t.btoa||(t.btoa=function(e){for(var t,o,i=String(e),s=0,a=r,u="";i.charAt(0|s)||(a="=",s%1);u+=a.charAt(63&t>>8-s%1*8)){if(255<(o=i.charCodeAt(s+=.75)))throw new n("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|o}return u}),t.atob||(t.atob=function(e){var t=String(e).replace(/[=]+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,s=0,a=0,u="";i=t.charAt(a++);~i&&(o=s%4?64*o+i:i,s++%4)?u+=String.fromCharCode(255&o>>(-2*s&6)):0)i=r.indexOf(i);return u})}()}(base64_min$1);var base64_min=getDefaultExportFromCjs(base64_min$1),__WEBPACK_EXTERNAL_MODULE__util_base64_min_79258e3f__=_mergeNamespaces({__proto__:null,default:base64_min},[base64_min$1]);class ConnectionStatus{static ConnectionStatusTimeInconsistent=-9;static ConnectionStatusNotLicensed=-8;static ConnectionStatusKickedOff=-7;static ConnectionStatusSecretKeyMismatch=-6;static ConnectionStatusTokenIncorrect=-5;static ConnectionStatusServerDown=-4;static ConnectionStatusRejected=-3;static ConnectionStatusLogout=-2;static ConnectionStatusUnconnected=-1;static ConnectionStatusConnecting=0;static ConnectionStatusConnected=1;static ConnectionStatusReceiveing=2;static desc(e){return{"-9":"客户端和IM 服务端时间不同步,请进行时钟同步","-8":"IM 服务未授权或已过期,专业版IM-Server 是绑定域名或者 ip 的,只能通过所绑定的域名去连接","-7":"被踢下线","-6":"会话密钥错误,请先确认是否正确替换 proto.min.js 文件,一定要替换成邮件收到的版本!!! \n如果确认已正确替换,请参考 https://docs.wildfirechat.cn/faq/general.html 第12个问题排查","-5":"token错误","-4":"IM Server服务无法连通,请检查服务器是否宕机或者网络出现问题","-3":"连接被服务器拒绝,一般是用户被封禁","-2":"退出登录","-1":"连接失败",0:"连接中",1:"连接成功,正常状态,所有业务可用",2:"正在同步信息,登录以后要先同步消息,可能同步数据量比较大,这时可以选择等待连接状态变为1时来统一更新UI"}[e]}}class ErrorCode{static kEcServerSecrectKeyMismatch=1;static kEcServerInvalidData=2;static kEcServerServerError=4;static kEcServerNotModified=5;static kEcServerTokenIncorrect=6;static kConnectionStatusKickedOff=7;static kEcServerUserForbidden=8;static kEcServerNotInGroup=9;static kEcServerInvalidMessage=10;static kEcServerGroupAlreadyExist=11;static kEcServerPasswordIncorrect=15;static kEcServerFriendAlreadyRequested=16;static kEcServerFriendRequestOverFrequency=17;static kEcServerFriendRquestBlocked=18;static kEcServerFriendRequestOvertime=19;static kEcServerNotInChatroom=20;static kEcServerNotLicensed=22;static kEcWebsocketNotConfigured=28;static kEcServerTimeInconsistent=30;static kEcServerUserIsBlocked=245;static kEcServerInBlacklist=246;static kEcServerForbidden_send_msg=247;static kEcServerNotRight=248;static kEcServerTimeout=249;static kEcServerOverFrequence=250;static kEcServerInvalidParameter=251;static kEcServerNotExist=253;static kEcServerNotImplement=254}class MessagePayload{type;searchableContent;pushContent;pushData;content;binaryContent;localContent;mediaType;remoteMediaUrl;localMediaPath;mentionedType=0;mentionedTargets=[];extra;notLoaded=0}class MessageContent{type;mentionedType=0;mentionedTargets=[];extra;pushContent;notLoaded=0;constructor(e,t=0,r=[]){this.type=e,this.mentionedType=t,this.mentionedTargets=r}digest(e){return"...digest..."}encode(){let e=new MessagePayload;return e.type=this.type,e.mentionedType=this.mentionedType,e.mentionedTargets=this.mentionedTargets,e.extra=this.extra,e}decode(e){this.type=e.type,this.notLoaded=e.notLoaded,this.mentionedType=e.mentionedType,e.hasOwnProperty("mentionedTarget")?this.mentionedTargets=e.mentionedTarget:this.mentionedTargets=e.mentionedTargets,this.extra=e.extra,this.pushContent=e.pushContent}}var n=Object.freeze({__proto__:null,default:MessageContent});class MessageContentType{static Unknown=0;static Text=1;static Voice=2;static Image=3;static Location=4;static File=5;static Video=6;static Sticker=7;static Link=8;static P_Text=9;static UserCard=10;static Composite_Message=11;static Rich_Notification=12;static Articles=13;static Streaming_Text_Generating=14;static Streaming_Text_Generated=15;static Mark_Unread_Sync=31;static StartSecretChat_Notification=40;static Enter_Channel_Chat=71;static Leave_Channel_Chat=72;static Channel_Menu_Event=73;static RecallMessage_Notification=80;static DeleteMessage_Notification=81;static Tip_Notification=90;static Typing=91;static Friend_Greeting=92;static Friend_Added=93;static PC_Login_Request=94;static CreateGroup_Notification=104;static AddGroupMember_Notification=105;static KickOffGroupMember_Notification=106;static QuitGroup_Notification=107;static DismissGroup_Notification=108;static TransferGroupOwner_Notification=109;static ChangeGroupName_Notification=110;static ModifyGroupAlias_Notification=111;static ChangeGroupPortrait_Notification=112;static MuteGroup_Notification=113;static ChangeJoinType_Notification=114;static ChangePrivateChat_Notification=115;static ChangeSearchable_Notification=116;static SetGroupManager_Notification=117;static MuteGroupMember_Notification=118;static AllowGroupMember_Notification=119;static KickOffGroupMember_Visible_Notification=120;static QuitGroup_Visible_Notification=121;static ModifyGroupExtra_Notification=122;static ModifyGroupMemberExtra_Notification=123;static ModifyGroupSetting_Notification=124;static VOIP_CONTENT_TYPE_START=400;static VOIP_CONTENT_TYPE_END=402;static VOIP_CONTENT_TYPE_ACCEPT=401;static VOIP_CONTENT_TYPE_SIGNAL=403;static VOIP_CONTENT_TYPE_MODIFY=404;static VOIP_CONTENT_TYPE_ACCEPT_T=405;static VOIP_CONTENT_TYPE_ADD_PARTICIPANT=406;static VOIP_CONTENT_TYPE_MUTE_VIDEO=407;static CONFERENCE_CONTENT_TYPE_INVITE=408;static CONFERENCE_CONTENT_TYPE_CHANGE_MODE=410;static CONFERENCE_CONTENT_TYPE_KICKOFF_MEMBER=411;static CONFERENCE_CONTENT_TYPE_COMMAND=412;static VOIP_Multi_Call_Ongoing=416;static VOIP_Join_Call_Request=417;static MESSAGE_CONTENT_TYPE_FEED=501;static MESSAGE_CONTENT_TYPE_COMMENT=502;static MESSAGE_CONTENT_TYPE_MIX_MULTI_MEDIA_TEXT=510;static MESSAGE_CONTENT_TYPE_MIX_FILE_TEXT=511}function compare(e,t){const r=Long.fromValue(e),n=Long.fromValue(t);return r.compare(n)}function eq(e,t){return!(!_isLong(e)||!_isLong(t))&&0===compare(e,t)}function gt(e,t){return!(!_isLong(e)||!_isLong(t))&&1===compare(e,t)}function gte(e,t){return!(!_isLong(e)||!_isLong(t))&&compare(e,t)>=0}function lt(e,t){return!(!_isLong(e)||!_isLong(t))&&-1===compare(e,t)}function lte(e,t){return!(!_isLong(e)||!_isLong(t))&&compare(e,t)<=0}function stringValue(e){return Long.fromValue(e).toString()}function longValue(e){return Long.fromValue(e)}function numberValue(e){if(lte(e,Number.MAX_SAFE_INTEGER)){return Long.fromValue(e).toNumber()}return console.log(e,"is large than Number.MAX_SAFE_INTEGER, do nothing"),e}function _patchToJavaLong(e,t){if(!e)return e;let r=new RegExp(`"${t}":"([0-9]+)"`,"g");return e.replace(r,`"${t}":$1`)}function _reverseToJsLongString(e,t){if(!e)return e;let r=new RegExp(`"${t}":([0-9]+)`,"g");return e.replace(r,`"${t}":"$1"`)}function _isLong(e){try{return Long.fromValue(e),!0}catch(e){return!1}}var o=Object.freeze({__proto__:null,_patchToJavaLong:_patchToJavaLong,_reverseToJsLongString:_reverseToJsLongString,compare:compare,eq:eq,gt:gt,gte:gte,longValue:longValue,lt:lt,lte:lte,numberValue:numberValue,stringValue:stringValue});class QuoteInfo{messageUid;userId;userDisplayName;messageDigest;static initWithMessage(e){let t=new QuoteInfo;if(e){t.messageUid=e.messageUid,t.userId=e.from;let r=self$1.getUserInfo(e.from,!1);t.userDisplayName=r.displayName,t.messageDigest=e.messageContent.digest(),t.messageDigest.length>48&&(t.messageDigest=t.messageDigest.substr(0,48))}return t}encode(){return{u:stringValue(this.messageUid),i:this.userId,n:this.userDisplayName,d:this.messageDigest}}decode(e){e.messageUid?(this.messageUid=Long.fromValue(e.messageUid),this.userId=e.userId,this.userDisplayName=e.userDisplayName,this.messageDigest=e.messageDigest):(this.messageUid=Long.fromValue(e.u||e.messageUid),this.userId=e.i,this.userDisplayName=e.n,this.messageDigest=e.d)}}class TextMessageContent extends MessageContent{content;quoteInfo;constructor(e,t=0,r=[]){super(MessageContentType.Text,t,r),this.content=e}digest(){return this.content}encode(){let e=super.encode();if(e.searchableContent=this.content,this.quoteInfo){let t={quote:this.quoteInfo.encode()},r=JSON.stringify(t).replace(/"u":"([0-9]+)"/,'"u":$1');e.binaryContent=self$1.utf8_to_b64(r)}return e}decode(e){if(super.decode(e),this.content=e.searchableContent,e.binaryContent&&e.binaryContent.length>0){let t=self$1.b64_to_utf8(e.binaryContent);t=t.substring(0,t.lastIndexOf("}")+1),t=t.replace(/"u":([0-9]+),/,'"u":"$1",');let r=JSON.parse(t).quote;this.quoteInfo=new QuoteInfo,this.quoteInfo.decode(r)}}setQuoteInfo(e){this.quoteInfo=e}}class PTextMessageContent extends TextMessageContent{constructor(e,t=0,r=[]){super(e,t,r),this.type=MessageContentType.P_Text}}class MediaMessageContent extends MessageContent{file;remotePath="";localPath="";mediaType=0;constructor(e,t=0,r,n){super(e),this.mediaType=t,r?"string"!=typeof r||r.startsWith("http")?(this.file=r,r&&r.path&&(this.localPath=r.path,this.localPath.indexOf(r.name)<0&&(this.localPath+=r.name))):(this.localPath=r,this.remotePath=n):(this.localPath="",this.remotePath=n)}encode(){let e=super.encode();return e.localMediaPath=this.localPath,e.remoteMediaUrl=this.remotePath?this.remotePath:"",e.mediaType=this.mediaType,Config.urlRedirect&&(this.remotePath=Config.urlRedirect(e.remoteMediaUrl)),e}decode(e){super.decode(e),this.localPath=e.localMediaPath,this.remotePath=e.remoteMediaUrl,Config.urlRedirect&&(this.remotePath=Config.urlRedirect(e.remoteMediaUrl)),this.mediaType=e.mediaType}}class MessageContentMediaType{static General=0;static Image=1;static Voice=2;static Video=3;static File=4;static Portrait=5;static Favorite=6;static Sticker=7;static Moments=8}class ImageMessageContent extends MediaMessageContent{thumbnail;imageWidth;imageHeight;constructor(e,t,r){super(MessageContentType.Image,MessageContentMediaType.Image,e,t),this.thumbnail=r}digest(){return"[图片]"}encode(){let e=super.encode();if(e.mediaType=MessageContentMediaType.Image,e.binaryContent=this.thumbnail,this.imageWidth){let t={w:this.imageWidth,h:this.imageHeight};e.content=JSON.stringify(t)}return e}decode(e){if(super.decode(e),this.thumbnail=e.binaryContent,e.content){let t=JSON.parse(e.content);this.imageWidth=t.w,this.imageHeight=t.h}}}class PersistFlag{static No_Persist=0;static Persist=1;static Persist_And_Count=3;static Transparent=4}var i=Object.freeze({__proto__:null,default:PersistFlag});class NotificationMessageContent extends MessageContent{fromSelf=!1;constructor(e){super(e)}digest(e){var t="";try{t=this.formatNotification(e)}catch(e){console.log("disgest",e)}return t}formatNotification(e){return"..nofication.."}}class TipNotificationMessageContent extends NotificationMessageContent{tip="";constructor(e){super(MessageContentType.Tip_Notification),this.tip=e}formatNotification(){return this.tip}digest(){return this.tip}encode(){let e=super.encode();return e.content=this.tip,e}decode(e){super.decode(e),this.tip=e.content}}class UnknownMessageContent extends MessageContent{originalPayload;constructor(e){super(MessageContentType.Unknown),this.originalPayload=e}encode(){return this.originalPayload}decode(e){this.originalPayload=e}digest(){return"未知类型消息"}}class UnsupportMessageContent extends MessageContent{digest(){return"尚不支持该类型消息, 请手机查看 : "+this.type}}class GroupNotificationContent extends NotificationMessageContent{groupId="";constructor(e){super(e)}}class ChangeGroupNameNotification extends GroupNotificationContent{operator="";name="";constructor(e,t){super(MessageContentType.ChangeGroupName_Notification),this.operator=e,this.name=t}formatNotification(){return this.fromSelf?"您修改群名称为:"+this.name:self$1.getGroupMemberDisplayName(this.groupId,this.operator)+"修改群名称为:"+this.name}encode(){let e=super.encode(),t={g:this.groupId,n:this.name,o:this.operator};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o,this.name=r.n}}class KickoffGroupMemberNotification extends GroupNotificationContent{operator="";kickedMembers=[];constructor(e,t){super(MessageContentType.KickOffGroupMember_Notification),this.operator=e,this.kickedMembers=t}formatNotification(){let e;e=this.fromSelf?"您把 ":self$1.getGroupMemberDisplayName(this.groupId,this.operator)+"把 ";let t="";return self$1.getUserInfos(this.kickedMembers,this.groupId).forEach((e=>{e.uid===self$1.getUserId()?t+=" 您":t+=" "+e.displayName})),e+t+" 移除了群组"}encode(){let e=super.encode(),t={g:this.groupId,ms:this.kickedMembers,o:this.operateUser};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o,this.kickedMembers=r.ms}}class KickoffGroupMemberVisiableNotification extends GroupNotificationContent{operator="";kickedMembers=[];constructor(e,t){super(MessageContentType.KickOffGroupMember_Visible_Notification),this.operator=e,this.kickedMembers=t}formatNotification(){let e;e=this.fromSelf?"您把 ":self$1.getGroupMemberDisplayName(this.groupId,this.operator)+"把 ";let t="";return self$1.getUserInfos(this.kickedMembers,this.groupId).forEach((e=>{e.uid===self$1.getUserId()?t+=" 您":t+=" "+e.displayName})),e+t+" 移除了群组"}encode(){let e=super.encode(),t={g:this.groupId,ms:this.kickedMembers,o:this.operateUser};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o,this.kickedMembers=r.ms}}class AddGroupMemberNotification extends GroupNotificationContent{invitor="";invitees=[];constructor(e,t){super(MessageContentType.AddGroupMember_Notification),this.invitor=e,this.invitees=t}formatNotification(){let e;if(1===this.invitees.length&&this.invitees[0]===this.invitor)return this.fromSelf?"您加入了群组":self$1.getGroupMemberDisplayName(this.groupId,this.invitor)+" 加入了群组";e=this.fromSelf?"您邀请:":self$1.getGroupMemberDisplayName(this.groupId,this.invitor)+"邀请:";let t="";return self$1.getUserInfos(this.invitees,this.groupId).forEach((e=>{t+=" "+e.displayName})),e+t+"加入了群组"}encode(){let e=super.encode(),t={g:this.groupId,o:this.invitor,ms:this.invitees};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.invitor=r.o,this.invitees=r.ms}}class ChangeGroupPortraitNotification extends GroupNotificationContent{operator="";constructor(e){super(MessageContentType.ChangeGroupPortrait_Notification),this.operator=e}formatNotification(){return this.fromSelf?"您修改群头像":self$1.getGroupMemberDisplayName(this.groupId,this.operator)+"修改了群头像"}encode(){let e=super.encode(),t={g:this.groupId,n:this.name};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o}}class CreateGroupNotification extends GroupNotificationContent{creator="";groupName="";constructor(e,t){super(MessageContentType.CreateGroup_Notification),this.creator=e,this.groupName=t}formatNotification(){return this.fromSelf?"您创建了群组 "+this.groupName:self$1.getUserDisplayName(this.creator)+"创建了群组 "+this.groupName}encode(){let e=super.encode(),t={g:this.groupId,n:this.groupName,o:this.creator};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.creator=r.o,this.groupName=r.n}}class DismissGroupNotification extends GroupNotificationContent{operator="";constructor(e){super(MessageContentType.DismissGroup_Notification),this.operator=e}formatNotification(){return this.fromSelf?"您解散了群组":self$1.getGroupMemberDisplayName(this.groupId,this.operator)+"解散了群组"}encode(){let e=super.encode(),t={g:this.groupId,o:this.operator};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o}}class ModifyGroupAliasNotification extends GroupNotificationContent{operator="";alias="";memberId="";constructor(e,t){super(MessageContentType.ModifyGroupAlias_Notification),this.operator=e,this.alias=t}formatNotification(){let e="";if(this.fromSelf)e+="你";else{let t=self$1.getUserInfo(this.operator,!1,this.groupId);t.friendAlias?e+=t.friendAlias:t.displayName?e+=t.displayName:e+=this.operator}if(e+="修改",this.memberId){let t=self$1.getUserInfo(this.memberId,!1);t.friendAlias?e+=t.friendAlias:t.displayName?e+=t.displayName:e+=this.memberId,e+="的"}return e+="群昵称为",e+=this.alias,e}encode(){let e=super.encode(),t={g:this.groupId,n:this.alias,o:this.operator,m:this.memberId};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o,this.alias=r.n,this.memberId=r.m}}class ModifyGroupExtraNotification extends GroupNotificationContent{operator="";groupExtra="";constructor(e,t){super(MessageContentType.ModifyGroupExtra_Notification),this.operator=e,this.groupExtra=t}formatNotification(){let e="";if(this.fromSelf)e+="你";else{let t=self$1.getUserInfo(this.operator,!1,this.groupId);t.friendAlias?e+=t.friendAlias:t.displayName?e+=t.displayName:e+=this.operator}return e+="修改",e+="群附加信息为",e+=this.groupExtra,e}encode(){let e=super.encode(),t={g:this.groupId,n:this.groupExtra,o:this.operator};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o,this.groupExtra=r.n}}class ModifyGroupMemberExtraNotification extends GroupNotificationContent{operator="";groupMemberExtra="";memberId="";constructor(e,t){super(MessageContentType.ModifyGroupMemberExtra_Notification),this.operator=e,this.groupMemberExtra=t}formatNotification(){let e="";if(this.fromSelf)e+="你";else{let t=self$1.getUserInfo(this.operator,!1,this.groupId);t.friendAlias?e+=t.friendAlias:t.displayName?e+=t.displayName:e+=this.operator}if(e+="修改",this.memberId){let t=self$1.getUserInfo(this.memberId,!1);t.friendAlias?e+=t.friendAlias:t.displayName?e+=t.displayName:e+=this.memberId,e+="的"}return e+="群成员信息为",e+=this.groupMemberExtra,e}encode(){let e=super.encode(),t={g:this.groupId,n:this.groupMemberExtra,o:this.operator,m:this.memberId};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o,this.groupMemberExtra=r.n,this.memberId=r.m}}class QuitGroupNotification extends GroupNotificationContent{operator="";constructor(e){super(MessageContentType.QuitGroup_Notification),this.operator=e}formatNotification(){return this.fromSelf?"您退出了群组":self$1.getGroupMemberDisplayName(this.groupId,this.operator)+"退出了群组"}encode(){let e=super.encode(),t={g:this.groupId,o:this.operator};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o}}class QuitVisiableGroupNotification extends GroupNotificationContent{operator="";constructor(e){super(MessageContentType.QuitGroup_Visible_Notification),this.operator=e}formatNotification(){return this.fromSelf?"您退出了群组":self$1.getGroupMemberDisplayName(this.groupId,this.operator)+"退出了群组"}encode(){let e=super.encode(),t={g:this.groupId,o:this.operator};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o}}class TransferGroupOwnerNotification extends GroupNotificationContent{operator="";newOwner="";constructor(e,t){super(MessageContentType.TransferGroupOwner_Notification),this.operator=e,this.newOwner=t}formatNotification(){return this.fromSelf?"您把群转让给了 "+self$1.getGroupMemberDisplayName(this.groupId,this.newOwner):self$1.getGroupMemberDisplayName(this.groupId,this.operator)+"把群转让给了 "+self$1.getGroupMemberDisplayName(this.groupId,this.newOwner)}encode(){let e=super.encode(),t={g:this.groupId,o:this.operator,m:this.newOwner};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.groupId=r.g,this.operator=r.o,this.newOwner=r.m}}class FileMessageContent extends MediaMessageContent{name="";size=0;constructor(e,t,r,n){super(MessageContentType.File,MessageContentMediaType.File,e,t),e&&e.name?(this.name=e.name,this.size=e.size):t&&(this.name=r||t.substring(t.lastIndexOf("/")+1),this.size=n||0)}digest(){return"[文件]"+this.name}encode(){let e=super.encode();return e.searchableContent=this.name,e.content=this.size+"",e}decode(e){super.decode(e),e.searchableContent&&(this.name=e.searchableContent,this.size=Number(e.content))}}class VideoMessageContent extends MediaMessageContent{thumbnail;duration;constructor(e,t,r,n=0){super(MessageContentType.Video,MessageContentMediaType.Video,e,t),this.thumbnail=r,this.duration=n}digest(){return"[视频]"}encode(){let e=super.encode();e.binaryContent=this.thumbnail;let t={d:this.duration,duration:this.duration};return e.content=JSON.stringify(t),e.mediaType=MessageContentMediaType.Video,e}decode(e){if(super.decode(e),this.thumbnail=e.binaryContent,e.content){let t=JSON.parse(e.content);this.duration=t.d,void 0===this.duration&&(this.duration=t.duration)}}}class StickerMessageContent extends MediaMessageContent{width=200;height=200;constructor(e,t,r,n){super(MessageContentType.Sticker,MessageContentMediaType.Sticker,e,t),this.width=r,this.height=n}digest(){return"[表情]"}encode(){let e=super.encode();e.mediaType=MessageContentMediaType.File;let t={x:this.width,y:this.height};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=JSON.parse(self$1.b64_to_utf8(e.binaryContent));this.width=t.x,this.height=t.y}}class SoundMessageContent extends MediaMessageContent{duration;_speechToTextInProgress=!1;_speechText="";constructor(e,t,r){super(MessageContentType.Voice,MessageContentMediaType.Voice,e,t),this.duration=r}digest(){return"[语音]"}encode(){let e=super.encode();e.mediaType=MessageContentMediaType.Voice;let t={duration:this.duration};return e.content=JSON.stringify(t),e}decode(e){super.decode(e);let t=JSON.parse(e.content);this.duration=t.duration}}class TypingMessageContent extends MessageContent{static TYPING_TEXT=0;static TYPING_VOICE=1;static TYPING_CAMERA=2;static TYPING_LOCATION=3;static TYPING_FILE=4;typingType=TypingMessageContent.TYPING_TEXT;constructor(e){super(MessageContentType.Typing),this.typingType=e}digest(){return this.content}encode(){let e=super.encode();return e.content=this.typingType+"",e}decode(e){super.decode(e),this.typingType=parseInt(e.content)}}class ConversationType{static Single=0;static Group=1;static ChatRoom=2;static Channel=3;static SecretChat=5}class RecallMessageNotification extends NotificationMessageContent{operatorId="";messageUid=new Long(0);originalSender;originalContentType;originalSearchableContent;originalContent;originalExtra;originalMessageTimestamp;constructor(e,t){super(MessageContentType.RecallMessage_Notification),this.operatorId=e,this.messageUid=t}formatNotification(e){return this.operatorId===self$1.getUserId()?"你撤回了一条消息":e.conversation.type===ConversationType.Group?self$1.getGroupMemberDisplayName(e.conversation.target,this.operatorId)+"撤回了一条消息":self$1.getUserDisplayName(this.operatorId)+"撤回了一条消息"}encode(){let e=super.encode();return e.content=this.operatorId,e.binaryContent=self$1.utf8_to_b64(this.messageUid.toString()),e}decode(e){super.decode(e),this.operatorId=e.content,this.messageUid=Long.fromString(self$1.b64_to_utf8(e.binaryContent));try{this.setExtra(e.extra)}catch(e){console.error("decode recallMessage extra error",e)}}setExtra(e){if(e){e=e.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");let t=JSON.parse(e);this.originalSender=t.s,this.originalContentType=t.t,this.originalSearchableContent=t.sc,this.originalContent=t.c,this.originalExtra=t.e,this.originalMessageTimestamp=Long.fromValue(t.ts)}}}class DeleteMessageContent extends MessageContent{operatorId="";messageUid=new Long(0);constructor(e,t){super(MessageContentType.DeleteMessage_Notification),this.operatorId=e,this.messageUid=t}formatNotification(e){return"消息已删除"}encode(){let e=super.encode();return e.content=this.operatorId,e.binaryContent=self$1.utf8_to_b64(this.messageUid.toString()),e}decode(e){super.decode(e),this.operatorId=e.content,this.messageUid=Long.fromString(self$1.b64_to_utf8(e.binaryContent))}}class CallStartMessageContent extends MessageContent{callId;targetIds=[];connectTime;endTime;status=0;audioOnly;pin;sdkType=0;constructor(e=0,t=[]){super(MessageContentType.VOIP_CONTENT_TYPE_START,e,t)}digest(){return this.audioOnly?"[语音通话]":"[视频通话]"}encode(){let e=super.encode();e.content=this.callId,e.pushContent="音视频通话邀请";let t={c:this.connectTime,e:this.endTime,s:this.status,a:this.audioOnly?1:0,ts:this.targetIds,t:this.targetIds[0],p:this.pin,ty:this.sdkType};e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t));let r={callId:this.callId,audioOnly:this.audioOnly,participants:this.targetIds};return e.pushData=JSON.stringify(r),e}decode(e){super.decode(e),this.callId=e.content;let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.connectTime=r.c,this.endTime=r.e,this.status=r.s,this.audioOnly=1===r.a,this.targetIds=r.ts,this.targetIds||(this.targetIds=[r.t]),this.pin=r.p,this.sdkType=r.ty}}class CallAnswerMessageContent extends MessageContent{callId;audioOnly;inviteMessageUid;constructor(e=0,t=[]){super(MessageContentType.VOIP_CONTENT_TYPE_ACCEPT,e,t)}digest(){return""}encode(){let e=super.encode();var t;e.content=this.callId,t=this.audioOnly?"1":"0",e.binaryContent=self$1.utf8_to_b64(t);let r={u:stringValue(this.inviteMessageUid)},n=JSON.stringify(r);return n=_patchToJavaLong(n,"u"),e.extra=n,e}decode(e){super.decode(e),this.callId=e.content;let t=self$1.b64_to_utf8(e.binaryContent);this.audioOnly="1"===t,t=e.extra,t&&(t=_reverseToJsLongString(t,"u"),this.inviteMessageUid=longValue(JSON.parse(t).u))}}class CallAnswerTMessageContent extends MessageContent{callId;audioOnly;constructor(e=0,t=[]){super(MessageContentType.VOIP_CONTENT_TYPE_ACCEPT_T,e,t)}digest(){return""}encode(){let e=super.encode();var t;return e.content=this.callId,t=this.audioOnly?"1":"0",e.binaryContent=self$1.utf8_to_b64(t),e}decode(e){super.decode(e),this.callId=e.content;let t=self$1.b64_to_utf8(e.binaryContent);this.audioOnly="1"===t}}class CallByeMessageContent extends MessageContent{callId;reason;inviteMsgUid;constructor(e=0,t=[]){super(MessageContentType.VOIP_CONTENT_TYPE_END,e,t)}digest(){return""}encode(){let e=super.encode();e.content=this.callId;let t={r:this.reason,u:this.inviteMsgUid?stringValue(this.inviteMsgUid):void 0},r=JSON.stringify(t);return r=_patchToJavaLong(r,"u"),e.binaryContent=self$1.utf8_to_b64(r),e.pushData=r,e}decode(e){super.decode(e),this.callId=e.content;let t=self$1.b64_to_utf8(e.binaryContent);t=_reverseToJsLongString(t,"u");let r=JSON.parse(t);this.reason=r.r,this.inviteMsgUid=r.u?longValue(r.u):void 0}}class CallSignalMessageContent extends MessageContent{callId;payload;constructor(e=0,t=[]){super(MessageContentType.VOIP_CONTENT_TYPE_SIGNAL,e,t)}digest(){return""}encode(){let e=super.encode();return e.content=this.callId,e.binaryContent=self$1.utf8_to_b64(this.payload),e}decode(e){super.decode(e),this.callId=e.content,this.payload=self$1.b64_to_utf8(e.binaryContent)}}class CallModifyMessageContent extends MessageContent{callId;audioOnly;constructor(e=0,t=[]){super(MessageContentType.VOIP_CONTENT_TYPE_MODIFY,e,t)}digest(){return""}encode(){let e=super.encode();var t;return e.content=this.callId,t=this.audioOnly?"1":"0",e.binaryContent=self$1.utf8_to_b64(t),e}decode(e){super.decode(e),this.callId=e.content;let t=self$1.b64_to_utf8(e.binaryContent);this.audioOnly="1"===t}}class AddParticipantsMessageContent extends NotificationMessageContent{callId;initiator;pin;participants;existParticipants;audioOnly;autoAnswer;clientId;constructor(){super(MessageContentType.VOIP_CONTENT_TYPE_ADD_PARTICIPANT)}formatNotification(e){let t="";return this.fromSelf?t="您邀请":(t=self$1.getGroupMemberDisplayName(e.conversation.target,this.initiator),t+="邀请"),this.participants&&this.participants.forEach((r=>{t+=" ",r===self$1.getUserId()?t+="您":t+=self$1.getGroupMemberDisplayName(e.conversation.target,r)})),t+=" 加入了通话",t}encode(){let e=super.encode();e.content=this.callId;let t={initiator:this.initiator,audioOnly:this.audioOnly?1:0,pin:this.pin,participants:this.participants,existParticipants:this.existParticipants,autoAnswer:this.autoAnswer,clientId:this.clientId};e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t));let r=this.existParticipants.map((e=>e.userId)),n={callId:this.callId,audioOnly:this.audioOnly,participants:this.participants,existParticipants:r};return e.pushData=JSON.stringify(n),e}decode(e){super.decode(e),this.callId=e.content;let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.initiator=r.initiator,this.audioOnly=1===r.audioOnly,this.pin=r.pin,this.participants=r.participants,this.existParticipants=r.existParticipants,this.autoAnswer=r.autoAnswer,this.clientId=r.clientId}}class MuteVideoMessageContent extends NotificationMessageContent{callId;videoMuted;existParticipants;constructor(e=0,t=[]){super(MessageContentType.VOIP_CONTENT_TYPE_MUTE_VIDEO,e,t)}formatNotification(e){return"mute video"}encode(){let e=super.encode();e.content=this.callId;let t={existParticipants:this.existParticipants,videoMuted:this.videoMuted};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e),this.callId=e.content;let t=self$1.b64_to_utf8(e.binaryContent),r=JSON.parse(t);this.existParticipants=r.existParticipants,this.videoMuted=r.videoMuted}}class GroupJoinTypeNotificationContent extends GroupNotificationContent{operator;joinType;constructor(e,t){super(MessageContentType.ChangeJoinType_Notification),this.operator=e,this.type=t}formatNotification(e){let t;switch(t=this.fromSelf?"您":self$1.getGroupMemberDisplayName(this.groupId,this.operator),this.joinType){case 0:t+=" 开放了加入群组功能";break;case 1:t+=" 仅允许群成员邀请加入群组";break;case 2:t+=" 关闭了加入群组功能"}return t}encode(){let e=super.encode(),t={g:this.groupId,o:this.operator,n:this.joinType+""};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=JSON.parse(self$1.b64_to_utf8(e.binaryContent));this.groupId=t.g,this.operator=t.o,this.joinType=parseInt(t.n)}}class GroupMuteNotificationContent extends GroupNotificationContent{operator;muteType;constructor(e,t){super(MessageContentType.MuteGroup_Notification),this.operator=e,this.muteType=t}formatNotification(e){let t=this.fromSelf?"您":self$1.getGroupMemberDisplayName(this.groupId,this.operator);return t+=0===this.muteType?" 关闭了全员禁言":" 开启了全员禁言",t}encode(){let e=super.encode(),t={g:this.groupId,o:this.operator,n:this.muteType+""};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=JSON.parse(self$1.b64_to_utf8(e.binaryContent));this.groupId=t.g,this.operator=t.o,this.muteType=parseInt(t.n)}}class GroupSetManagerNotificationContent extends GroupNotificationContent{operator;setManagerType;memberIds=[];constructor(e,t,r){super(MessageContentType.SetGroupManager_Notification),this.operator=e,this.setManagerType=t,this.memberIds=r}formatNotification(e){let t=this.fromSelf?"您":self$1.getGroupMemberDisplayName(this.groupId,this.operator);return t+="把 ",this.memberIds.forEach((e=>{t+=" ",t+=self$1.getGroupMemberDisplayName(this.groupId,e)})),t+=" ",t+=0===this.setManagerType?"取消了管理员":"设置为了管理员",t}encode(){let e=super.encode(),t={g:this.groupId,o:this.operator,n:this.setManagerType+"",ms:this.memberIds};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=JSON.parse(self$1.b64_to_utf8(e.binaryContent));this.groupId=t.g,this.operator=t.o,this.setManagerType=parseInt(t.n),this.memberIds=t.ms}}class GroupPrivateChatNotificationContent extends GroupNotificationContent{operator;privateChatType;constructor(e,t){super(MessageContentType.ChangePrivateChat_Notification),this.operator=e,this.privateChatType=t}formatNotification(e){let t=this.fromSelf?"您":self$1.getGroupMemberDisplayName(this.groupId,this.operator);return t+=0===this.privateChatType?" 开启了成员私聊":" 关闭了成员私聊",t}encode(){let e=super.encode(),t={g:this.groupId,o:this.operator,n:this.privateChatType+""};return e.binaryContent=self$1.utf8_to_b64(JSON.stringify(t)),e}decode(e){super.decode(e);let t=JSON.parse(self$1.b64_to_utf8(e.binaryContent));this.groupId=t.g,this.operator=t.o,this.privateChatType=parseInt(t.n)}}class LocationMessageContent extends MessageContent{title;thumbnail;lat;long;constructor(e,t,r,n){super(MessageContentType.Location),this.title=e,this.thumbnail=t,this.lat=r,this.long=n}digest(){return"位置"}encode(){let e=super.encode();e.searchableContent=this.title,e.binaryContent=this.thumbnail;let t={lat:this.lat,long:this.long};return e.content=JSON.stringify(t),e}decode(e){super.decode(e),this.title=e.searchableContent,this.thumbnail=e.binaryContent;let t=JSON.parse(e.content);this.lat=t.lat,this.long=t.long}}cla