@rongcloud/electron-renderer 5.18.0 → 5.20.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/renderer.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@rongcloud/engine"),e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@rongcloud/engine"),t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},t(e,r)};
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -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 n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}function o(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}function r(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function i(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function a(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var s,c=function(t){function e(e,n,o,r){var i=t.call(this,e,n,o)||this;return i._handleWrite=r,i}return n(e,t),e}(t.BasicLogger),u=0,l=Date.now(),p=function(t){var e=Date.now();return l!==e&&(l=e,u=0),[t,window.__ContextBridge__.getProcessInfo("pid"),e,u++].join("__")};t.VersionManage.add("electron-renderer","5.18.0");var h=function(e){function u(n,o,r){var u=this,l=function(t){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",t)},p=new c(r.appkey,"IMLib","IM",l);return u=e.call(this,n,o,r,p)||this,s.set(u,void 0),u._resolveMaps={},function(t,e,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===o?r.call(t,n):r?r.value=n:e.set(t,n)}(u,s,l,"f"),p.setOutputLevel(r.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=o[n];if(a){var s={batchMessage:u._batchMessage.bind(u),onRTCDataChange:u._onRTCDataChange.bind(u),onConnected:u._onConnected.bind(u),onNaviDataChange:u._onNaviDataChange.bind(u)};if(s[n])s[n](r,a);else{var c={onConnecting:t.RCConnectionStatus.CONNECTING,onSuspend:t.RCConnectionStatus.SUSPENDED,onDisconnected:t.RCConnectionStatus.DISCONNECTED};c[n]&&u._setConnectionStatus(c[n]),a(r[0])}}else u.logger.error(t.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,n)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=u._resolveMaps[e];r&&(delete u._resolveMaps[e],r.apply(void 0,a([],i(n),!1)))})),u._options.httpInMainProcess&&(t.runtime.httpReq=u.sendHTTPRequest.bind(u)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:r.navigators,areaCode:r.areaCode,logServerUrl:r.logServerUrl,environment:r.environment}),u._cache=u._callMainSync("getMainProcessCache"),u}return n(u,e),Object.defineProperty(u.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),u.prototype._batchMessage=function(t,e){var n=t[0].hasMoreMsg;delete t[0].hasMoreMsg,e([t[0]],void 0,n)},u.prototype._onRTCDataChange=function(t,e){var n=t[0];this._receiveRtcKv(new Uint8Array(n))},u.prototype._onConnected=function(t,e){var n;n=i(t,1),this._cache=n[0],e(void 0)},u.prototype._onNaviDataChange=function(t,e){var n;n=i(t,1),this._cache.naviInfo=n[0],e([t[0]])},u.prototype._setConnectionStatus=function(t){this._cache.connectionStatus=t},u.prototype.sendHTTPRequest=function(t){return this._callMain("sendHTTPRequest",t)},u.prototype.setUserStatusListener=function(t,e){throw new Error("TODO -> RCCppEngine.setUserStatusListener")},u.prototype._callMain=function(t){for(var e=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Promise((function(o){var r,s=p(t);e._resolveMaps[s]=o,(r=window.__ContextBridge__).send.apply(r,a(["__RC_CHANNEL_CALL_MAIN__",s,t],i(n),!1))}))},u.prototype._callMain2=function(e){for(var n=this,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return new Promise((function(r){var s,c=p(e);n._resolveMaps[c]=function(e){var n=e.code,o=e.msg,i=e.data;n!==t.ErrorCode.SUCCESS?r(t.fail(n,o,i)):r(t.ok(i))},(s=window.__ContextBridge__).send.apply(s,a(["__RC_CHANNEL_CALL_MAIN__",c,e],i(o),!1))}))},u.prototype.callExtra=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this._callMain.apply(this,a(["callExtra",t],i(e),!1))},u.prototype._send2Main=function(t){for(var e,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];(e=window.__ContextBridge__).send.apply(e,a(["__RC_CHANNEL_SEND_2_MAIN__",t],i(n),!1))},u.prototype._callMainSync=function(e){for(var n,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return this.logger.info(t.LogTagId.L_CALL_MAIN_SYNC_O,e),(n=window.__ContextBridge__).sendSync.apply(n,a(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],i(o),!1))},u.prototype.refetchNaviInfo=function(){return this._callMain("refetchNaviInfo")},u.prototype.getNaviInfoFromCache=function(){return this._cache.naviInfo},u.prototype.createLogger=function(t,e){return new c(this._appkey,t,e,function(t,e,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(t):o?o.value:e.get(t)}(this,s,"f"))},u.prototype.getConnectionStatus=function(){return this._cache.connectionStatus},u.prototype.connect=function(t,e,n,i){return o(this,void 0,void 0,(function(){return r(this,(function(o){return[2,this._callMain("connect",t,e,n,i)]}))}))},u.prototype.reportSDKInfo=function(t){this._send2Main("reportSDKInfo",t)},u.prototype.getConnectedTime=function(){return this._cache.connectedTime},u.prototype.getHistoryMessage=function(t,e,n,o,r,i,a){return this._callMain("getHistoryMessage",t,e,n,o,r,i,a)},u.prototype.getMessages=function(t,e,n,o,r,i){return this._callMain("getMessages",t,e,n,o,r,i)},u.prototype.getContinuousMessages=function(t,e,n,o,r,i){return this._callMain("getContinuousMessages",t,e,n,o,r,i)},u.prototype.getHistoryMessagesByObjectNames=function(t,e,n,o,r,i,a){return this._callMain("getHistoryMessagesByObjectNames",t,e,n,o,r,i,a)},u.prototype.deleteRemoteMessage=function(t,e,n,o){return this._callMain("deleteRemoteMessage",t,e,n,o)},u.prototype.recallMsg=function(t,e){return this._callMain2("recallMsg",t,e)},u.prototype.deleteRemoteMessageByTimestamp=function(t,e,n,o){return this._callMain("deleteRemoteMessageByTimestamp",t,e,n,o)},u.prototype.getConversationList=function(t,e,n,o,r){return this._callMain("getConversationList",t,e,n,o,r)},u.prototype.getConversationsByPage=function(t,e,n,o,r){return this._callMain("getConversationsByPage",t,e,n,o,r)},u.prototype.getUnreadConversationList=function(t){return this._callMain("getUnreadConversationList",t)},u.prototype.getConversationListWithAllChannel=function(){return this._callMain("getConversationListWithAllChannel")},u.prototype.getConversationListWithAllChannelByPage=function(t,e){return this._callMain("getConversationListWithAllChannelByPage",t,e)},u.prototype.getConversation=function(t,e,n){return this._callMain("getConversation",t,e,n)},u.prototype.removeConversation=function(t,e,n){return this._callMain("removeConversation",t,e,n)},u.prototype.batchRemoveConversation=function(t){return this._callMain("batchRemoveConversation",t)},u.prototype.getAllConversationUnreadCount=function(t,e,n){return this._callMain("getAllConversationUnreadCount",t,e,n)},u.prototype.getConversationUnreadCount=function(t,e,n){return this._callMain("getConversationUnreadCount",t,e,n)},u.prototype.getTotalUnreadCountByLevels=function(t,e,n){return this._callMain("getTotalUnreadCountByLevels",t,e,n)},u.prototype.clearConversationUnreadCount=function(t,e,n){return this._callMain("clearConversationUnreadCount",t,e,n)},u.prototype.getFirstUnreadMessage=function(t,e,n){return this._callMain("getFirstUnreadMessage",t,e,n)},u.prototype.getFirstUnreadMessageInfo=function(t,e,n){return this._callMain("getFirstUnreadMessageInfo",t,e,n)},u.prototype.saveConversationMessageDraft=function(t,e,n){return this._callMain("saveConversationMessageDraft",t,e,n)},u.prototype.getConversationMessageDraft=function(t,e){return this._callMain("getConversationMessageDraft",t,e)},u.prototype.clearConversationMessageDraft=function(t,e){return this._callMain("clearConversationMessageDraft",t,e)},u.prototype.pullConversationStatus=function(t){return this._callMain("pullConversationStatus",t)},u.prototype.batchSetConversationStatus=function(t){return this._callMain("batchSetConversationStatus",t)},u.prototype.setConversationToTop=function(t,e,n,o,r){return this._callMain("setConversationToTop",t,e,n,o,r)},u.prototype.batchSetConversationToTop=function(t,e,n){return this._callMain("batchSetConversationToTop",t,e,n)},u.prototype.sendMessage=function(e,n,o,r,i){var a=this,s=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return r&&(this._resolveMaps[s]=function(e){try{r(e)}catch(e){a.logger.error(t.LogTagId.A_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",e,n,o,s,i)},u.prototype.sendReadReceiptMessage=function(t,e,n){return this._callMain("sendReadReceiptMessage",t,e,n)},u.prototype.getMessageReader=function(t,e,n){return this._callMain("getMessageReader",t,e,n)},u.prototype.sendReadReceiptMessageV4=function(t,e,n){return this._callMain("sendReadReceiptMessageV4",t,e,n)},u.prototype.getMessageReadReceiptV4=function(t,e){return this._callMain("getMessageReadReceiptV4",t,e)},u.prototype.batchGetMessageReadReceiptInfoV4=function(e,n){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},u.prototype.updateConversationReadTime=function(t,e){return this._callMain("updateConversationReadTime",t,e)},u.prototype.disconnect=function(t){return o(this,void 0,void 0,(function(){return r(this,(function(e){return this._send2Main("disconnect",t),[2]}))}))},u.prototype.registerMessageType=function(t,e,n,o,r){this._send2Main("registerMessageType",t,e,n,o,r)},u.prototype.joinChatroom=function(t,e,n){return this._callMain("joinChatroom",t,e,n)},u.prototype.joinExistChatroom=function(t,e,n){return this._callMain("joinExistChatroom",t,e,n)},u.prototype.quitChatroom=function(t){return this._callMain("quitChatroom",t)},u.prototype.getChatroomInfo=function(t,e,n){return this._callMain("getChatroomInfo",t,e,n)},u.prototype.getChatroomHistoryMessages=function(t,e,n,o){return this._callMain("getChatroomHistoryMessages",t,e,n,o)},u.prototype.setChatroomEntry=function(t,e){return this._callMain("setChatroomEntry",t,e)},u.prototype.setChatroomEntries=function(t,e){return this._callMain("setChatroomEntries",t,e)},u.prototype.forceSetChatroomEntry=function(t,e){return this._callMain("forceSetChatroomEntry",t,e)},u.prototype.removeChatroomEntry=function(t,e){return this._callMain("removeChatroomEntry",t,e)},u.prototype.forceRemoveChatroomEntry=function(t,e){return this._callMain("forceRemoveChatroomEntry",t,e)},u.prototype.removeChatroomEntries=function(t,e){return this._callMain("removeChatroomEntries",t,e)},u.prototype.getChatroomEntry=function(t,e){return this._callMain("getChatroomEntry",t,e)},u.prototype.getAllChatroomEntry=function(t){return this._callMain("getAllChatroomEntry",t)},u.prototype.removeChatroomFromCatch=function(t){this._callMain("removeChatroomFromCatch",t)},u.prototype.getFileToken=function(t,e,n,o,r,i){return this._callMain("getFileToken",t,e,n,o,r,i)},u.prototype.getFileUrl=function(t,e,n,o){return this._callMain("getFileUrl",t,e,n,o)},u.prototype.setUserStatus=function(t){return this._callMain("setUserStatus",t)},u.prototype.subscribeUserStatus=function(t){return this._callMain("subscribeUserStatus",t)},u.prototype.getUserStatus=function(t){return this._callMain("getUserStatus",t)},u.prototype.clearConversations=function(t,e){return this._callMain("clearConversations",t,e)},u.prototype.addToBlacklist=function(t){return this._callMain("addToBlacklist",t)},u.prototype.removeFromBlacklist=function(t){return this._callMain("removeFromBlacklist",t)},u.prototype.getBlacklist=function(){return this._callMain("getBlacklist")},u.prototype.getBlacklistStatus=function(t){return this._callMain("getBlacklistStatus",t)},u.prototype.insertMessage=function(t,e,n){return this._callMain("insertMessage",t,e,n)},u.prototype.batchInsertMessage=function(t,e){return this._callMain("batchInsertMessage",t,e)},u.prototype.getMessageCount=function(t,e,n){return this._callMain("getMessageCount",t,e,n)},u.prototype.deleteMessages=function(t){return this._callMain("deleteMessages",t)},u.prototype.deleteMessagesByTimestamp=function(t,e,n,o,r){return this._callMain("deleteMessagesByTimestamp",t,e,n,o,r)},u.prototype.batchClearMessagesByTimestamp=function(t){return this._callMain("batchClearMessagesByTimestamp",t)},u.prototype.batchClearRemoteHistoryMessages=function(t,e){return this._callMain("batchClearRemoteHistoryMessages",t,e)},u.prototype.clearMessages=function(t,e,n){return this._callMain("clearMessages",t,e,n)},u.prototype.getMessage=function(t){return this._callMain2("getMessage",t)},u.prototype.setMessageContent=function(t,e,n){return this._callMain("setMessageContent",t,e,n)},u.prototype.setMessageSearchField=function(t,e,n){return this._callMain("setMessageSearchField",t,e,n)},u.prototype.searchConversationByContent=function(t,e,n,o){return this._callMain("searchConversationByContent",t,e,n,o)},u.prototype.searchConversationByContentWithAllChannel=function(t,e,n){return this._callMain("searchConversationByContentWithAllChannel",t,e,n)},u.prototype.searchMessageByContentWithAllChannel=function(t,e,n,o,r){return this._callMain("searchMessageByContentWithAllChannel",t,e,n,o,r)},u.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",t,e,n,o,r,i,a)},u.prototype.searchMessageByContent=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContent",t,e,n,o,r,i,a)},u.prototype.searchMessageByContentAndMessageType=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContentAndMessageType",t,e,n,o,r,i,a)},u.prototype.searchMessagesByUser=function(t,e,n,o,r,i){return this._callMain("searchMessagesByUser",t,e,n,o,r,i)},u.prototype.getMessagesByTimestamp=function(t,e,n,o){return this._callMain("getMatchedMessage",t,e,n,o)},u.prototype.getUnreadMentionedMessages=function(t,e,n){return this._callMainSync("getUnreadMentionedMessages",t,e,n)},u.prototype.setMessageSentStatus=function(t,e){return this._callMain("setMessageSentStatus",t,e)},u.prototype.setMessageReceivedStatus=function(t,e){return this._callMain("setMessageReceivedStatus",t,e)},u.prototype.updateMessageReceiptStatus=function(t,e,n,o){return this._callMain("updateMessageReceiptStatus",t,e,n,o)},u.prototype.clearUnreadCountByTimestamp=function(t,e,n,o){return this._callMain("clearUnreadCountByTimestamp",t,e,n,o)},u.prototype.clearAllUnreadCount=function(){throw new Error("Method not implemented.")},u.prototype.getConversationNotificationStatus=function(t,e,n){return this._callMain("getConversationNotificationStatus",t,e,n)},u.prototype.getRemoteHistoryMessages=function(t,e,n,o,r,i){return this._callMain("getRemoteHistoryMessages",t,e,n,o,r,i)},u.prototype.getServerTime=function(){return Date.now()-this._cache.deltaTime},u.prototype.getDeviceId=function(){return this._cache.deviceId},u.prototype.getCurrentUserId=function(){return this._cache.crtUserId},u.prototype.bindRTCRoomForChatroom=function(t){return this._callMain("bindRTCRoomForChatroom",t)},u.prototype.rtcSignaling=function(t,e,n,i){return o(this,void 0,void 0,(function(){var o,a,s,c;return r(this,(function(r){switch(r.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(i)),[4,this._callMain("rtcSignaling",t,e,n,o)];case 1:return a=r.sent(),s=a.code,c=a.buffer,[2,{code:s,buffer:c?new Uint8Array(c):c}]}}))}))},u.prototype.rtcPing=function(t,e,n){return this._callMain("rtcPing",t,e,n)},u.prototype.createTag=function(t){return this._callMain("createTag",t)},u.prototype.removeTag=function(t){return this._callMain("removeTag",t)},u.prototype.updateTag=function(t){return this._callMain("updateTag",t)},u.prototype.getTagList=function(){return this._callMain("getTagList")},u.prototype.addTagForConversations=function(t,e){return this._callMain("addTagForConversations",t,e)},u.prototype.removeTagForConversations=function(t,e){return this._callMain("removeTagForConversations",t,e)},u.prototype.removeTagsForConversation=function(t,e){return this._callMain("removeTagsForConversation",t,e)},u.prototype.getConversationListByTag=function(t,e,n,o){return this._callMain("getConversationListByTag",t,e,n,o)},u.prototype.getUnreadCountByTag=function(t,e){return this._callMain("getUnreadCountByTag",t,e)},u.prototype.setConversationStatusInTag=function(t,e,n){return this._callMain("setConversationStatusInTag",t,e,n)},u.prototype.getTagsForConversation=function(t){return this._callMain("getTagsForConversation",t)},u.prototype.clearData=function(){return this._callMain("clearData")},u.prototype.getBlockConversationList=function(){throw new Error("Method not implemented.")},u.prototype.getGroupMessageDeliverList=function(t,e,n){return this._callMain("getGroupMessageDeliverList",t,e,n)},u.prototype.getPrivateMessageDeliverTime=function(t,e){return this._callMain("getPrivateMessageDeliverTime",t,e)},u.prototype.setCallInfo=function(t,e,n){return this._callMain("setCallInfo",t,e,n)},u.prototype.getTopConversationList=function(t,e){return this._callMain("getTopConversationList",t,e)},u.prototype.getUnreadMentionedCount=function(t){throw new Error("Method not implemented.")},u.prototype.getAllUnreadMentionedCount=function(){return this._callMain("getAllUnreadMentionedCount")},u.prototype.getAllConversationState=function(){throw new Error("Method not implemented.")},u.prototype.getUltraGroupList=function(){throw new Error("Method not implemented.")},u.prototype.getBlockUltraGroupList=function(){throw new Error("Method not implemented.")},u.prototype.getTopUltraGroupList=function(){throw new Error("Method not implemented.")},u.prototype.clearUltraUnreadcount=function(t,e){throw new Error("Method not implemented.")},u.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(t,e){throw new Error("Method not implemented.")},u.prototype.sendUltraMessage=function(t,e,n){throw new Error("Method not implemented.")},u.prototype.sendUltraGroupTypingStatus=function(t,e){throw new Error("Method not implemented.")},u.prototype.getUltraGroupMessageListByMessageUId=function(t){throw new Error("Method not implemented.")},u.prototype.expandUltraMessage=function(t){throw new Error("Method not implemented.")},u.prototype.modifyMessage=function(t){throw new Error("Method not implemented.")},u.prototype.getUltraHistoryMsg=function(t,e){throw new Error("Method not implemented.")},u.prototype.getConversationNotificationLevel=function(t,e,n){return this._callMain("getConversationNotificationLevel",t,e,n)},u.prototype.setConversationNotificationLevel=function(t,e,n,o){return this._callMain("setConversationNotificationLevel",t,e,n,o)},u.prototype.batchSetConversationNotificationLevel=function(t,e){return this._callMain("batchSetConversationNotificationLevel",t,e)},u.prototype.setConversationTypeNotificationLevel=function(t,e){return this._callMain("setConversationTypeNotificationLevel",t,e)},u.prototype.getConversationTypeNotificationLevel=function(t){return this._callMain("getConversationTypeNotificationLevel",t)},u.prototype.getUltraGroupDefaultNotificationLevel=function(e,n){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},u.prototype.getAllUltraGroupUnreadCount=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},u.prototype.getUltraGroupUnreadCountByTargetId=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},u.prototype.setUltraGroupDefaultNotificationLevel=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},u.prototype.getUltraGroupUnreadMentionedMessages=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},u.prototype.getUltraGroupFirstUnreadMessageTimestamp=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},u.prototype.getUltraGroupUnreadInfoList=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},u.prototype.getOSInfo=function(){return o(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this._callMain("getOSInfo")]}))}))},u.prototype.getProcessInfo=function(){return o(this,void 0,void 0,(function(){return r(this,(function(e){return[2,{code:t.ErrorCode.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))},u.prototype.getMainProcessInfo=function(){return o(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this._callMain("getMainProcessInfo")]}))}))},u.prototype.setProxy=function(t){return this._callMain("setProxy",t)},u.prototype.getProxy=function(){return this._callMain("getProxy")},u.prototype.testProxy=function(t,e){return this._callMain("testProxy",t,e)},u.prototype.setCheckDuplicateMessage=function(t){return this._callMain("checkDuplicateMessage",t)},u.prototype.setCheckChatRoomDuplicateMessage=function(t){return this._callMain("setDuplicateMessageConfig",t)},u.prototype.setNetwork=function(t,e){this._send2Main("setNetwork",t,e)},u.prototype.subscribeUser=function(t,e,n){return this._callMain("subscribeUser",t,e,n)},u.prototype.unSubscribeUser=function(t,e){return this._callMain("unSubscribeUser",t,e)},u.prototype.getSubscribeUserList=function(t,e,n){return this._callMain("getSubscribeUserList",t,e,n)},u.prototype.getSubscribeUserStatus=function(t,e){return this._callMain("getSubscribeUserStatus",t,e)},u.prototype.getConversations=function(t){return this._callMain("getConversations",t)},u.prototype.updateMyUserProfile=function(t){return this._callMain("updateMyUserProfile",t)},u.prototype.getUserProfiles=function(t){return this._callMain("getUserProfiles",t)},u.prototype.getMyUserProfile=function(){return this._callMain("getMyUserProfile")},u.prototype.updateMyUserProfileVisibility=function(t){return this._callMain("updateMyUserProfileVisibility",t)},u.prototype.getMyUserProfileVisibility=function(){return this._callMain("getMyUserProfileVisibility")},u.prototype.searchUserProfileByUniqueId=function(t){return this._callMain("searchUserProfileByUniqueId",t)},u.prototype.createGroup=function(t,e,n,i){return o(this,void 0,void 0,(function(){return r(this,(function(o){return[2,this._callMain("createGroup",t,e,n,i)]}))}))},u.prototype.updateGroupInfo=function(t,e,n){return this._callMain("updateGroupInfo",t,e,n)},u.prototype.getGroupsInfo=function(t){return this._callMain("getGroupsInfo",t)},u.prototype.kickGroupMembers=function(t,e,n){return this._callMain("kickGroupMembers",t,e,n)},u.prototype.quitGroup=function(t,e){return this._callMain("quitGroup",t,e)},u.prototype.dismissGroup=function(t){return this._callMain("dismissGroup",t)},u.prototype.transferGroupOwner=function(t,e,n,o){return this._callMain("transferGroupOwner",t,e,n,o)},u.prototype.setGroupManagers=function(t,e,n){return this._callMain("setGroupManagers",t,e,n)},u.prototype.getGroupMembersByRole=function(t,e,n){return this._callMain("getGroupMembersByRole",t,e,n)},u.prototype.getGroupMembers=function(t,e){return this._callMain("getGroupMembers",t,e)},u.prototype.setGroupMemberInfo=function(t,e,n,o){return this._callMain("setGroupMemberInfo",t,e,n,o)},u.prototype.searchGroupMembers=function(t,e,n){return this._callMain("searchGroupMembers",t,e,n)},u.prototype.joinGroup=function(t){return this._callMain("joinGroup",t)},u.prototype.inviteUsersToGroup=function(t,e){return this._callMain("inviteUsersToGroup",t,e)},u.prototype.memberInviteResponse=function(t){return this._callMain("memberInviteResponse",t)},u.prototype.getGroupApplications=function(t,e,n){return this._callMain("getGroupApplications",t,e,n)},u.prototype.getJoinedGroupsByRole=function(t,e){return this._callMain("getJoinedGroupsByRole",t,e)},u.prototype.searchJoinedGroups=function(t,e){return this._callMain("searchJoinedGroups",t,e)},u.prototype.getJoinedGroups=function(t){return this._callMain("getJoinedGroups",t)},u.prototype.setGroupRemark=function(t,e){return this._callMain("setGroupRemark",t,e)},u.prototype.setGroupFollows=function(t,e,n){return this._callMain("setGroupFollows",t,e,n)},u.prototype.getGroupFollows=function(t){return this._callMain("getGroupFollows",t)},u.prototype.addFriend=function(t,e,n){return this._callMain("addFriend",t,e,n)},u.prototype.deleteFriends=function(t,e){return this._callMain("deleteFriends",t,e)},u.prototype.acceptFriendApplication=function(t){return this._callMain("acceptFriendApplication",t)},u.prototype.refuseFriendApplication=function(t,e){return this._callMain("refuseFriendApplication",t,e)},u.prototype.setFriendInfo=function(t,e,n){return this._callMain("setFriendInfo",t,e,n)},u.prototype.checkFriends=function(t,e){return this._callMain("checkFriends",t,e)},u.prototype.getFriends=function(t,e){return this._callMain("getFriends",t)},u.prototype.getFriendApplications=function(t,e,n){return this._callMain("getFriendApplications",t,e,n)},u.prototype.deleteFriendApplication=function(t,e){return this._callMain("deleteFriendApplication",t,e)},u.prototype.getFriendsInfo=function(t){return this._callMain("getFriendsInfo",t)},u.prototype.searchFriendsInfo=function(t){return this._callMain("searchFriendsInfo",t)},u.prototype.setFriendAddPermission=function(t){return this._callMain("setFriendAddPermission",t)},u.prototype.getFriendAddPermission=function(){return this._callMain("getFriendAddPermission")},u.prototype.getRealtimeConversations=function(t,e,n){throw new Error("Method not implemented.")},u.prototype.getRealtimeConTotalUnreadCount=function(){throw new Error("Method not implemented.")},u.prototype.clearRealtimeConUnreadCount=function(t){throw new Error("Method not implemented.")},u.prototype.removeRealtimeConversations=function(t){throw new Error("Method not implemented.")},u.prototype.getRealtimeConUnreadCounts=function(t){throw new Error("Method not implemented.")},u.prototype.setNotificationQuietHoursWithSetting=function(t){return o(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this._callMain2("setNotificationQuietHoursWithSetting",t)]}))}))},u.prototype.removeNotificationQuietHoursSetting=function(){return o(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this._callMain2("removeNotificationQuietHoursSetting")]}))}))},u.prototype.getNotificationQuietHoursSetting=function(){return o(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this._callMain2("getNotificationQuietHoursSetting")]}))}))},u}(t.BasicEngine);s=new WeakMap;exports.initRenderer=function(){window.RCCppEngine=h};
15
+ ***************************************************************************** */function r(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}function n(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function l(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}u((n=n.apply(e,t||[])).next())}))}function o(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function i(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function l(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var u,c,s,b=function(e){function t(t,r,n,o){var a=e.call(this,t,r,n)||this;return Object.defineProperty(a,"_handleWrite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a._handleWrite=o,a}return r(t,e),t}(e.BasicLogger),p=0,f=Date.now(),g=function(e){var t=Date.now();return f!==t&&(f=t,p=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,p++].join("__")};e.VersionManage.add("electron-renderer","5.20.0-alpha.1");var d=function(t){function p(r,n,o){var l=this,s=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},p=new b(o.appkey,"IMLib","IM",s);return l=t.call(this,r,n,o,p)||this,u.add(l),Object.defineProperty(l,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),c.set(l,void 0),Object.defineProperty(l,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(l,c,s,"f"),p.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,r){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var i=n[r];if(i){var u={batchMessage:l._batchMessage.bind(l),onRTCDataChange:l._onRTCDataChange.bind(l),onConnected:l._onConnected.bind(l),onNaviDataChange:l._onNaviDataChange.bind(l)};if(u[r])u[r](o,i);else{var c={onConnecting:e.RCConnectionStatus.CONNECTING,onSuspend:e.RCConnectionStatus.SUSPENDED,onDisconnected:e.RCConnectionStatus.DISCONNECTED};c[r]&&l._setConnectionStatus(c[r]),i(o[0])}}else l.logger.error(e.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,r)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=l._resolveMaps[t];o&&(delete l._resolveMaps[t],o.apply(void 0,i([],a(r),!1)))})),l._options.httpInMainProcess&&(e.runtime.httpReq=l.sendHTTPRequest.bind(l)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment}),l._cache=l._callMainSync("getMainProcessCache"),l}return r(p,t),Object.defineProperty(p.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"_batchMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0].hasMoreMsg;delete e[0].hasMoreMsg,t([e[0]],void 0,r)}}),Object.defineProperty(p.prototype,"_onRTCDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0];this._receiveRtcKv(new Uint8Array(r))}}),Object.defineProperty(p.prototype,"_onConnected",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=a(e,1),this._cache=r[0],t(void 0)}}),Object.defineProperty(p.prototype,"_onNaviDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=a(e,1),this._cache.naviInfo=r[0],t([e[0]])}}),Object.defineProperty(p.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(p.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(p.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(p.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,l=g(e);t._resolveMaps[l]=n,(o=window.__ContextBridge__).send.apply(o,i(["__RC_CHANNEL_CALL_MAIN__",l,e],a(r),!1))}))}}),Object.defineProperty(p.prototype,"callExtra",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this._callMain.apply(this,i(["callExtra",e],a(t),!1))}}),Object.defineProperty(p.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,i(["__RC_CHANNEL_SEND_2_MAIN__",e],a(r),!1))}}),Object.defineProperty(p.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.logger.info(e.LogTagId.L_CALL_MAIN_SYNC_O,t),(r=window.__ContextBridge__).sendSync.apply(r,i(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],a(n),!1))}}),Object.defineProperty(p.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(p.prototype,"getNaviInfoFromCache",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.naviInfo}}),Object.defineProperty(p.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new b(this._appkey,e,t,l(this,c,"f"))}}),Object.defineProperty(p.prototype,"getConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectionStatus}}),Object.defineProperty(p.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,a){return n(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this._callMain("connect",e,t,r,a)]}))}))}}),Object.defineProperty(p.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(p.prototype,"getConnectedTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectedTime}}),Object.defineProperty(p.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("getHistoryMessage",e,t,r,n,o,a,i)}}),Object.defineProperty(p.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getMessages",e,t,r,n,o,a)}}),Object.defineProperty(p.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getContinuousMessages",e,t,r,n,o,a)}}),Object.defineProperty(p.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,a,i)}}),Object.defineProperty(p.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(p.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"recallMsg",e,t)}}),Object.defineProperty(p.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(p.prototype,"getConversationListByFilter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",s).call(this,"getConversationListByFilter",e)}}),Object.defineProperty(p.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",s).call(this,"getConversation",e,t,r)}}),Object.defineProperty(p.prototype,"removeConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",s).call(this,"removeConversation",e)}}),Object.defineProperty(p.prototype,"batchRemoveConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchRemoveConversation",e)}}),Object.defineProperty(p.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",s).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(p.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getConversationUnreadCount",e,t,r)}}),Object.defineProperty(p.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(p.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearConversationUnreadCount",e,t,r)}}),Object.defineProperty(p.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessage",e,t,r)}}),Object.defineProperty(p.prototype,"getFirstUnreadMessageInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessageInfo",e,t,r)}}),Object.defineProperty(p.prototype,"saveConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("saveConversationMessageDraft",e,t,r)}}),Object.defineProperty(p.prototype,"getConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getConversationMessageDraft",e,t)}}),Object.defineProperty(p.prototype,"clearConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversationMessageDraft",e,t)}}),Object.defineProperty(p.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",s).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(p.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(p.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n,o,a){var i=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(t){try{o(t)}catch(t){i.logger.error(e.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",t,r,n,l,a)}}),Object.defineProperty(p.prototype,"sendReadReceiptMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessage",e,t,r)}}),Object.defineProperty(p.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageReader",e,t,r)}}),Object.defineProperty(p.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(p.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getMessageReadReceiptV4",e,t)}}),Object.defineProperty(p.prototype,"batchGetMessageReadReceiptInfoV4",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r){return Promise.resolve({code:e.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(p.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("updateConversationReadTime",e,t)}}),Object.defineProperty(p.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return n(this,void 0,void 0,(function(){return o(this,(function(r){return[2,this._callMain("disconnect",e,t)]}))}))}}),Object.defineProperty(p.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(p.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinChatroom",e,t,r)}}),Object.defineProperty(p.prototype,"joinExistChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinExistChatroom",e,t,r)}}),Object.defineProperty(p.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("quitChatroom",e)}}),Object.defineProperty(p.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getChatroomInfo",e,t,r)}}),Object.defineProperty(p.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(p.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntry",e,t)}}),Object.defineProperty(p.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntries",e,t)}}),Object.defineProperty(p.prototype,"forceSetChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceSetChatroomEntry",e,t)}}),Object.defineProperty(p.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntry",e,t)}}),Object.defineProperty(p.prototype,"forceRemoveChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceRemoveChatroomEntry",e,t)}}),Object.defineProperty(p.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntries",e,t)}}),Object.defineProperty(p.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getChatroomEntry",e,t)}}),Object.defineProperty(p.prototype,"getAllChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getAllChatroomEntry",e)}}),Object.defineProperty(p.prototype,"removeChatroomFromCatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._callMain("removeChatroomFromCatch",e)}}),Object.defineProperty(p.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getFileToken",e,t,r,n,o,a)}}),Object.defineProperty(p.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getFileUrl",e,t,r,n)}}),Object.defineProperty(p.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(p.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(p.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserStatus",e)}}),Object.defineProperty(p.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversations",e,t)}}),Object.defineProperty(p.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("addToBlacklist",e)}}),Object.defineProperty(p.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeFromBlacklist",e)}}),Object.defineProperty(p.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getBlacklist")}}),Object.defineProperty(p.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getBlacklistStatus",e)}}),Object.defineProperty(p.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("insertMessage",e,t,r)}}),Object.defineProperty(p.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("batchInsertMessage",e,t)}}),Object.defineProperty(p.prototype,"getMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageCount",e,t,r)}}),Object.defineProperty(p.prototype,"deleteMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("deleteMessages",e)}}),Object.defineProperty(p.prototype,"deleteMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("deleteMessagesByTimestamp",e,t,r,n,o)}}),Object.defineProperty(p.prototype,"batchClearMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchClearMessagesByTimestamp",e)}}),Object.defineProperty(p.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(p.prototype,"clearMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearMessages",e,t,r)}}),Object.defineProperty(p.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",s).call(this,"getMessage",e)}}),Object.defineProperty(p.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageContent",e,t,r)}}),Object.defineProperty(p.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(p.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",s).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(p.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(p.prototype,"searchMessageByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("searchMessageByContentWithAllChannel",e,t,r,n,o)}}),Object.defineProperty(p.prototype,"searchMessageByContentInTimeRangeWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",e,t,r,n,o,a,i)}}),Object.defineProperty(p.prototype,"searchMessageByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContent",e,t,r,n,o,a,i)}}),Object.defineProperty(p.prototype,"searchMessageByContentAndMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContentAndMessageType",e,t,r,n,o,a,i)}}),Object.defineProperty(p.prototype,"searchMessagesByUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("searchMessagesByUser",e,t,r,n,o,a)}}),Object.defineProperty(p.prototype,"getMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getMatchedMessage",e,t,r,n)}}),Object.defineProperty(p.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMainSync("getUnreadMentionedMessages",e,t,r)}}),Object.defineProperty(p.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageSentStatus",e,t)}}),Object.defineProperty(p.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageReceivedStatus",e,t)}}),Object.defineProperty(p.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(p.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("clearUnreadCountByTimestamp",e,t,r,n)}}),Object.defineProperty(p.prototype,"clearAllUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,l(this,u,"m",s).call(this,"clearAllUnreadCount")]}))}))}}),Object.defineProperty(p.prototype,"getRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,a)}}),Object.defineProperty(p.prototype,"getServerTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Date.now()-this._cache.deltaTime}}),Object.defineProperty(p.prototype,"getDeviceId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.deviceId}}),Object.defineProperty(p.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(p.prototype,"getCurrentUserId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.crtUserId}}),Object.defineProperty(p.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(p.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,a){return n(this,void 0,void 0,(function(){var n,i,l,u;return o(this,(function(o){switch(o.label){case 0:return n=Array.prototype.slice.call(new Uint8Array(a)),[4,this._callMain("rtcSignaling",e,t,r,n)];case 1:return i=o.sent(),l=i.code,u=i.buffer,[2,{code:l,buffer:u?new Uint8Array(u):u}]}}))}))}}),Object.defineProperty(p.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("rtcPing",e,t,r)}}),Object.defineProperty(p.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("createTag",e)}}),Object.defineProperty(p.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeTag",e)}}),Object.defineProperty(p.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateTag",e)}}),Object.defineProperty(p.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getTagList")}}),Object.defineProperty(p.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("addTagForConversations",e,t)}}),Object.defineProperty(p.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagForConversations",e,t)}}),Object.defineProperty(p.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagsForConversation",e,t)}}),Object.defineProperty(p.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getConversationListByTag",e,t,r,n)}}),Object.defineProperty(p.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getUnreadCountByTag",e,t)}}),Object.defineProperty(p.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setConversationStatusInTag",e,t,r)}}),Object.defineProperty(p.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getTagsForConversation",e)}}),Object.defineProperty(p.prototype,"clearData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("clearData")}}),Object.defineProperty(p.prototype,"getGroupMessageDeliverList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMessageDeliverList",e,t,r)}}),Object.defineProperty(p.prototype,"getPrivateMessageDeliverTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getPrivateMessageDeliverTime",e,t)}}),Object.defineProperty(p.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setCallInfo",e,t,r)}}),Object.defineProperty(p.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getAllUnreadMentionedCount")}}),Object.defineProperty(p.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"getBlockUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return o(this,(function(t){return[2,e.fail(e.ErrorCode.NOT_SUPPORT)]}))}))}}),Object.defineProperty(p.prototype,"clearUltraUnreadcount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"getUltraGroupUnreadMentionedCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"getUltraGroupMessageListByMessageUId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"expandUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"modifyMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"getUltraHistoryMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",s).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(p.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(p.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",s).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(p.prototype,"getUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r){return Promise.resolve({code:e.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(p.prototype,"getAllUltraGroupUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:e.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(p.prototype,"getUltraGroupUnreadCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:e.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(p.prototype,"setUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:e.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(p.prototype,"getUltraGroupUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:e.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(p.prototype,"getUltraGroupFirstUnreadMessageTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:e.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(p.prototype,"getUltraGroupUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:e.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(p.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(p.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return o(this,(function(t){return[2,{code:e.ErrorCode.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(p.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(p.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setProxy",e)}}),Object.defineProperty(p.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getProxy")}}),Object.defineProperty(p.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("testProxy",e,t)}}),Object.defineProperty(p.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("checkDuplicateMessage",e)}}),Object.defineProperty(p.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setDuplicateMessageConfig",e)}}),Object.defineProperty(p.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(p.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("subscribeUser",e,t,r)}}),Object.defineProperty(p.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("unSubscribeUser",e,t)}}),Object.defineProperty(p.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getSubscribeUserList",e,t,r)}}),Object.defineProperty(p.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getSubscribeUserStatus",e,t)}}),Object.defineProperty(p.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getConversations",e)}}),Object.defineProperty(p.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfile",e)}}),Object.defineProperty(p.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserProfiles",e)}}),Object.defineProperty(p.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfile")}}),Object.defineProperty(p.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfileVisibility",e)}}),Object.defineProperty(p.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfileVisibility")}}),Object.defineProperty(p.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchUserProfileByUniqueId",e)}}),Object.defineProperty(p.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,a){return n(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this._callMain("createGroup",e,t,r,a)]}))}))}}),Object.defineProperty(p.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("updateGroupInfo",e,t,r)}}),Object.defineProperty(p.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupsInfo",e)}}),Object.defineProperty(p.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("kickGroupMembers",e,t,r)}}),Object.defineProperty(p.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("quitGroup",e,t)}}),Object.defineProperty(p.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("dismissGroup",e)}}),Object.defineProperty(p.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("transferGroupOwner",e,t,r,n)}}),Object.defineProperty(p.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupManagers",e,t,r)}}),Object.defineProperty(p.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMembersByRole",e,t,r)}}),Object.defineProperty(p.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getGroupMembers",e,t)}}),Object.defineProperty(p.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(p.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchGroupMembers",e,t,r)}}),Object.defineProperty(p.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("joinGroup",e)}}),Object.defineProperty(p.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("inviteUsersToGroup",e,t)}}),Object.defineProperty(p.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("memberInviteResponse",e)}}),Object.defineProperty(p.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupApplications",e,t,r)}}),Object.defineProperty(p.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getJoinedGroupsByRole",e,t)}}),Object.defineProperty(p.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("searchJoinedGroups",e,t)}}),Object.defineProperty(p.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getJoinedGroups",e)}}),Object.defineProperty(p.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setGroupRemark",e,t)}}),Object.defineProperty(p.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupFollows",e,t,r)}}),Object.defineProperty(p.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupFollows",e)}}),Object.defineProperty(p.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("addFriend",e,t,r)}}),Object.defineProperty(p.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriends",e,t)}}),Object.defineProperty(p.prototype,"acceptFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("acceptFriendApplication",e)}}),Object.defineProperty(p.prototype,"refuseFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("refuseFriendApplication",e,t)}}),Object.defineProperty(p.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setFriendInfo",e,t,r)}}),Object.defineProperty(p.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("checkFriends",e,t)}}),Object.defineProperty(p.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getFriends",e)}}),Object.defineProperty(p.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFriendApplications",e,t,r)}}),Object.defineProperty(p.prototype,"deleteFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriendApplication",e,t)}}),Object.defineProperty(p.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getFriendsInfo",e)}}),Object.defineProperty(p.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchFriendsInfo",e)}}),Object.defineProperty(p.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setFriendAddPermission",e)}}),Object.defineProperty(p.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getFriendAddPermission")}}),Object.defineProperty(p.prototype,"getRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"getRealtimeConTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"clearRealtimeConUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"removeRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"getRealtimeConUnreadCounts",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(p.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){return[2,l(this,u,"m",s).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(p.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,l(this,u,"m",s).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(p.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,l(this,u,"m",s).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(p.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",s).call(this,"getStatsUrlList")}}),Object.defineProperty(p.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(p.prototype,"getMessageReadReceiptInfoV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"getMessageReadReceiptInfoV5",e,t)}}),Object.defineProperty(p.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",s).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(p.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",s).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),p}(e.BasicEngine);c=new WeakMap,u=new WeakSet,s=function(t){for(var r=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Promise((function(o){var l,u=g(t);r._resolveMaps[u]=function(t){var r=t.code,n=t.msg,a=t.data;r!==e.ErrorCode.SUCCESS?o(e.fail(r,n,a)):o(e.ok(a))},(l=window.__ContextBridge__).send.apply(l,i(["__RC_CHANNEL_CALL_MAIN__",u,t],a(n),!1))}))};exports.initRenderer=function(){window.RCCppEngine=d};
package/renderer.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import{BasicLogger as t,VersionManage as e,ErrorCode as n,ok as o,fail as r,LogTagId as i,RCConnectionStatus as a,runtime as s,BasicEngine as c}from"@rongcloud/engine";
1
+ import{BasicLogger as e,VersionManage as t,LogTagId as r,ErrorCode as n,ok as o,fail as a,RCConnectionStatus as i,runtime as l,BasicEngine as u}from"@rongcloud/engine";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -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
- ***************************************************************************** */var u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},u(t,e)};function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function p(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}function h(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function g(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var y,_=function(t){function e(e,n,o,r){var i=t.call(this,e,n,o)||this;return i._handleWrite=r,i}return l(e,t),e}(t),M=0,d=Date.now(),C=function(t){var e=Date.now();return d!==e&&(d=e,M=0),[t,window.__ContextBridge__.getProcessInfo("pid"),e,M++].join("__")};e.add("electron-renderer","5.18.0");var v=function(t){function e(e,n,o){var r=this,c=function(t){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",t)},u=new _(o.appkey,"IMLib","IM",c);return r=t.call(this,e,n,o,u)||this,y.set(r,void 0),r._resolveMaps={},function(t,e,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===o?r.call(t,n):r?r.value=n:e.set(t,n)}(r,y,c,"f"),u.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,e){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var c=n[e];if(c){var u={batchMessage:r._batchMessage.bind(r),onRTCDataChange:r._onRTCDataChange.bind(r),onConnected:r._onConnected.bind(r),onNaviDataChange:r._onNaviDataChange.bind(r)};if(u[e])u[e](o,c);else{var l={onConnecting:a.CONNECTING,onSuspend:a.SUSPENDED,onDisconnected:a.DISCONNECTED};l[e]&&r._setConnectionStatus(l[e]),c(o[0])}}else r.logger.error(i.L_UNSUPPORT_NTF_FROM_MAIN_E,e)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var i=r._resolveMaps[e];i&&(delete r._resolveMaps[e],i.apply(void 0,g([],f(n),!1)))})),r._options.httpInMainProcess&&(s.httpReq=r.sendHTTPRequest.bind(r)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment}),r._cache=r._callMainSync("getMainProcessCache"),r}return l(e,t),Object.defineProperty(e.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype._batchMessage=function(t,e){var n=t[0].hasMoreMsg;delete t[0].hasMoreMsg,e([t[0]],void 0,n)},e.prototype._onRTCDataChange=function(t,e){var n=t[0];this._receiveRtcKv(new Uint8Array(n))},e.prototype._onConnected=function(t,e){var n;n=f(t,1),this._cache=n[0],e(void 0)},e.prototype._onNaviDataChange=function(t,e){var n;n=f(t,1),this._cache.naviInfo=n[0],e([t[0]])},e.prototype._setConnectionStatus=function(t){this._cache.connectionStatus=t},e.prototype.sendHTTPRequest=function(t){return this._callMain("sendHTTPRequest",t)},e.prototype.setUserStatusListener=function(t,e){throw new Error("TODO -> RCCppEngine.setUserStatusListener")},e.prototype._callMain=function(t){for(var e=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Promise((function(o){var r,i=C(t);e._resolveMaps[i]=o,(r=window.__ContextBridge__).send.apply(r,g(["__RC_CHANNEL_CALL_MAIN__",i,t],f(n),!1))}))},e.prototype._callMain2=function(t){for(var e=this,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return new Promise((function(a){var s,c=C(t);e._resolveMaps[c]=function(t){var e=t.code,i=t.msg,s=t.data;e!==n.SUCCESS?a(r(e,i,s)):a(o(s))},(s=window.__ContextBridge__).send.apply(s,g(["__RC_CHANNEL_CALL_MAIN__",c,t],f(i),!1))}))},e.prototype.callExtra=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this._callMain.apply(this,g(["callExtra",t],f(e),!1))},e.prototype._send2Main=function(t){for(var e,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];(e=window.__ContextBridge__).send.apply(e,g(["__RC_CHANNEL_SEND_2_MAIN__",t],f(n),!1))},e.prototype._callMainSync=function(t){for(var e,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.logger.info(i.L_CALL_MAIN_SYNC_O,t),(e=window.__ContextBridge__).sendSync.apply(e,g(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],f(n),!1))},e.prototype.refetchNaviInfo=function(){return this._callMain("refetchNaviInfo")},e.prototype.getNaviInfoFromCache=function(){return this._cache.naviInfo},e.prototype.createLogger=function(t,e){return new _(this._appkey,t,e,function(t,e,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(t):o?o.value:e.get(t)}(this,y,"f"))},e.prototype.getConnectionStatus=function(){return this._cache.connectionStatus},e.prototype.connect=function(t,e,n,o){return p(this,void 0,void 0,(function(){return h(this,(function(r){return[2,this._callMain("connect",t,e,n,o)]}))}))},e.prototype.reportSDKInfo=function(t){this._send2Main("reportSDKInfo",t)},e.prototype.getConnectedTime=function(){return this._cache.connectedTime},e.prototype.getHistoryMessage=function(t,e,n,o,r,i,a){return this._callMain("getHistoryMessage",t,e,n,o,r,i,a)},e.prototype.getMessages=function(t,e,n,o,r,i){return this._callMain("getMessages",t,e,n,o,r,i)},e.prototype.getContinuousMessages=function(t,e,n,o,r,i){return this._callMain("getContinuousMessages",t,e,n,o,r,i)},e.prototype.getHistoryMessagesByObjectNames=function(t,e,n,o,r,i,a){return this._callMain("getHistoryMessagesByObjectNames",t,e,n,o,r,i,a)},e.prototype.deleteRemoteMessage=function(t,e,n,o){return this._callMain("deleteRemoteMessage",t,e,n,o)},e.prototype.recallMsg=function(t,e){return this._callMain2("recallMsg",t,e)},e.prototype.deleteRemoteMessageByTimestamp=function(t,e,n,o){return this._callMain("deleteRemoteMessageByTimestamp",t,e,n,o)},e.prototype.getConversationList=function(t,e,n,o,r){return this._callMain("getConversationList",t,e,n,o,r)},e.prototype.getConversationsByPage=function(t,e,n,o,r){return this._callMain("getConversationsByPage",t,e,n,o,r)},e.prototype.getUnreadConversationList=function(t){return this._callMain("getUnreadConversationList",t)},e.prototype.getConversationListWithAllChannel=function(){return this._callMain("getConversationListWithAllChannel")},e.prototype.getConversationListWithAllChannelByPage=function(t,e){return this._callMain("getConversationListWithAllChannelByPage",t,e)},e.prototype.getConversation=function(t,e,n){return this._callMain("getConversation",t,e,n)},e.prototype.removeConversation=function(t,e,n){return this._callMain("removeConversation",t,e,n)},e.prototype.batchRemoveConversation=function(t){return this._callMain("batchRemoveConversation",t)},e.prototype.getAllConversationUnreadCount=function(t,e,n){return this._callMain("getAllConversationUnreadCount",t,e,n)},e.prototype.getConversationUnreadCount=function(t,e,n){return this._callMain("getConversationUnreadCount",t,e,n)},e.prototype.getTotalUnreadCountByLevels=function(t,e,n){return this._callMain("getTotalUnreadCountByLevels",t,e,n)},e.prototype.clearConversationUnreadCount=function(t,e,n){return this._callMain("clearConversationUnreadCount",t,e,n)},e.prototype.getFirstUnreadMessage=function(t,e,n){return this._callMain("getFirstUnreadMessage",t,e,n)},e.prototype.getFirstUnreadMessageInfo=function(t,e,n){return this._callMain("getFirstUnreadMessageInfo",t,e,n)},e.prototype.saveConversationMessageDraft=function(t,e,n){return this._callMain("saveConversationMessageDraft",t,e,n)},e.prototype.getConversationMessageDraft=function(t,e){return this._callMain("getConversationMessageDraft",t,e)},e.prototype.clearConversationMessageDraft=function(t,e){return this._callMain("clearConversationMessageDraft",t,e)},e.prototype.pullConversationStatus=function(t){return this._callMain("pullConversationStatus",t)},e.prototype.batchSetConversationStatus=function(t){return this._callMain("batchSetConversationStatus",t)},e.prototype.setConversationToTop=function(t,e,n,o,r){return this._callMain("setConversationToTop",t,e,n,o,r)},e.prototype.batchSetConversationToTop=function(t,e,n){return this._callMain("batchSetConversationToTop",t,e,n)},e.prototype.sendMessage=function(t,e,n,o,r){var a=this,s=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[s]=function(t){try{o(t)}catch(t){a.logger.error(i.A_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",t,e,n,s,r)},e.prototype.sendReadReceiptMessage=function(t,e,n){return this._callMain("sendReadReceiptMessage",t,e,n)},e.prototype.getMessageReader=function(t,e,n){return this._callMain("getMessageReader",t,e,n)},e.prototype.sendReadReceiptMessageV4=function(t,e,n){return this._callMain("sendReadReceiptMessageV4",t,e,n)},e.prototype.getMessageReadReceiptV4=function(t,e){return this._callMain("getMessageReadReceiptV4",t,e)},e.prototype.batchGetMessageReadReceiptInfoV4=function(t,e){return Promise.resolve({code:n.NOT_SUPPORT})},e.prototype.updateConversationReadTime=function(t,e){return this._callMain("updateConversationReadTime",t,e)},e.prototype.disconnect=function(t){return p(this,void 0,void 0,(function(){return h(this,(function(e){return this._send2Main("disconnect",t),[2]}))}))},e.prototype.registerMessageType=function(t,e,n,o,r){this._send2Main("registerMessageType",t,e,n,o,r)},e.prototype.joinChatroom=function(t,e,n){return this._callMain("joinChatroom",t,e,n)},e.prototype.joinExistChatroom=function(t,e,n){return this._callMain("joinExistChatroom",t,e,n)},e.prototype.quitChatroom=function(t){return this._callMain("quitChatroom",t)},e.prototype.getChatroomInfo=function(t,e,n){return this._callMain("getChatroomInfo",t,e,n)},e.prototype.getChatroomHistoryMessages=function(t,e,n,o){return this._callMain("getChatroomHistoryMessages",t,e,n,o)},e.prototype.setChatroomEntry=function(t,e){return this._callMain("setChatroomEntry",t,e)},e.prototype.setChatroomEntries=function(t,e){return this._callMain("setChatroomEntries",t,e)},e.prototype.forceSetChatroomEntry=function(t,e){return this._callMain("forceSetChatroomEntry",t,e)},e.prototype.removeChatroomEntry=function(t,e){return this._callMain("removeChatroomEntry",t,e)},e.prototype.forceRemoveChatroomEntry=function(t,e){return this._callMain("forceRemoveChatroomEntry",t,e)},e.prototype.removeChatroomEntries=function(t,e){return this._callMain("removeChatroomEntries",t,e)},e.prototype.getChatroomEntry=function(t,e){return this._callMain("getChatroomEntry",t,e)},e.prototype.getAllChatroomEntry=function(t){return this._callMain("getAllChatroomEntry",t)},e.prototype.removeChatroomFromCatch=function(t){this._callMain("removeChatroomFromCatch",t)},e.prototype.getFileToken=function(t,e,n,o,r,i){return this._callMain("getFileToken",t,e,n,o,r,i)},e.prototype.getFileUrl=function(t,e,n,o){return this._callMain("getFileUrl",t,e,n,o)},e.prototype.setUserStatus=function(t){return this._callMain("setUserStatus",t)},e.prototype.subscribeUserStatus=function(t){return this._callMain("subscribeUserStatus",t)},e.prototype.getUserStatus=function(t){return this._callMain("getUserStatus",t)},e.prototype.clearConversations=function(t,e){return this._callMain("clearConversations",t,e)},e.prototype.addToBlacklist=function(t){return this._callMain("addToBlacklist",t)},e.prototype.removeFromBlacklist=function(t){return this._callMain("removeFromBlacklist",t)},e.prototype.getBlacklist=function(){return this._callMain("getBlacklist")},e.prototype.getBlacklistStatus=function(t){return this._callMain("getBlacklistStatus",t)},e.prototype.insertMessage=function(t,e,n){return this._callMain("insertMessage",t,e,n)},e.prototype.batchInsertMessage=function(t,e){return this._callMain("batchInsertMessage",t,e)},e.prototype.getMessageCount=function(t,e,n){return this._callMain("getMessageCount",t,e,n)},e.prototype.deleteMessages=function(t){return this._callMain("deleteMessages",t)},e.prototype.deleteMessagesByTimestamp=function(t,e,n,o,r){return this._callMain("deleteMessagesByTimestamp",t,e,n,o,r)},e.prototype.batchClearMessagesByTimestamp=function(t){return this._callMain("batchClearMessagesByTimestamp",t)},e.prototype.batchClearRemoteHistoryMessages=function(t,e){return this._callMain("batchClearRemoteHistoryMessages",t,e)},e.prototype.clearMessages=function(t,e,n){return this._callMain("clearMessages",t,e,n)},e.prototype.getMessage=function(t){return this._callMain2("getMessage",t)},e.prototype.setMessageContent=function(t,e,n){return this._callMain("setMessageContent",t,e,n)},e.prototype.setMessageSearchField=function(t,e,n){return this._callMain("setMessageSearchField",t,e,n)},e.prototype.searchConversationByContent=function(t,e,n,o){return this._callMain("searchConversationByContent",t,e,n,o)},e.prototype.searchConversationByContentWithAllChannel=function(t,e,n){return this._callMain("searchConversationByContentWithAllChannel",t,e,n)},e.prototype.searchMessageByContentWithAllChannel=function(t,e,n,o,r){return this._callMain("searchMessageByContentWithAllChannel",t,e,n,o,r)},e.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",t,e,n,o,r,i,a)},e.prototype.searchMessageByContent=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContent",t,e,n,o,r,i,a)},e.prototype.searchMessageByContentAndMessageType=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContentAndMessageType",t,e,n,o,r,i,a)},e.prototype.searchMessagesByUser=function(t,e,n,o,r,i){return this._callMain("searchMessagesByUser",t,e,n,o,r,i)},e.prototype.getMessagesByTimestamp=function(t,e,n,o){return this._callMain("getMatchedMessage",t,e,n,o)},e.prototype.getUnreadMentionedMessages=function(t,e,n){return this._callMainSync("getUnreadMentionedMessages",t,e,n)},e.prototype.setMessageSentStatus=function(t,e){return this._callMain("setMessageSentStatus",t,e)},e.prototype.setMessageReceivedStatus=function(t,e){return this._callMain("setMessageReceivedStatus",t,e)},e.prototype.updateMessageReceiptStatus=function(t,e,n,o){return this._callMain("updateMessageReceiptStatus",t,e,n,o)},e.prototype.clearUnreadCountByTimestamp=function(t,e,n,o){return this._callMain("clearUnreadCountByTimestamp",t,e,n,o)},e.prototype.clearAllUnreadCount=function(){throw new Error("Method not implemented.")},e.prototype.getConversationNotificationStatus=function(t,e,n){return this._callMain("getConversationNotificationStatus",t,e,n)},e.prototype.getRemoteHistoryMessages=function(t,e,n,o,r,i){return this._callMain("getRemoteHistoryMessages",t,e,n,o,r,i)},e.prototype.getServerTime=function(){return Date.now()-this._cache.deltaTime},e.prototype.getDeviceId=function(){return this._cache.deviceId},e.prototype.getCurrentUserId=function(){return this._cache.crtUserId},e.prototype.bindRTCRoomForChatroom=function(t){return this._callMain("bindRTCRoomForChatroom",t)},e.prototype.rtcSignaling=function(t,e,n,o){return p(this,void 0,void 0,(function(){var r,i,a,s;return h(this,(function(c){switch(c.label){case 0:return r=Array.prototype.slice.call(new Uint8Array(o)),[4,this._callMain("rtcSignaling",t,e,n,r)];case 1:return i=c.sent(),a=i.code,s=i.buffer,[2,{code:a,buffer:s?new Uint8Array(s):s}]}}))}))},e.prototype.rtcPing=function(t,e,n){return this._callMain("rtcPing",t,e,n)},e.prototype.createTag=function(t){return this._callMain("createTag",t)},e.prototype.removeTag=function(t){return this._callMain("removeTag",t)},e.prototype.updateTag=function(t){return this._callMain("updateTag",t)},e.prototype.getTagList=function(){return this._callMain("getTagList")},e.prototype.addTagForConversations=function(t,e){return this._callMain("addTagForConversations",t,e)},e.prototype.removeTagForConversations=function(t,e){return this._callMain("removeTagForConversations",t,e)},e.prototype.removeTagsForConversation=function(t,e){return this._callMain("removeTagsForConversation",t,e)},e.prototype.getConversationListByTag=function(t,e,n,o){return this._callMain("getConversationListByTag",t,e,n,o)},e.prototype.getUnreadCountByTag=function(t,e){return this._callMain("getUnreadCountByTag",t,e)},e.prototype.setConversationStatusInTag=function(t,e,n){return this._callMain("setConversationStatusInTag",t,e,n)},e.prototype.getTagsForConversation=function(t){return this._callMain("getTagsForConversation",t)},e.prototype.clearData=function(){return this._callMain("clearData")},e.prototype.getBlockConversationList=function(){throw new Error("Method not implemented.")},e.prototype.getGroupMessageDeliverList=function(t,e,n){return this._callMain("getGroupMessageDeliverList",t,e,n)},e.prototype.getPrivateMessageDeliverTime=function(t,e){return this._callMain("getPrivateMessageDeliverTime",t,e)},e.prototype.setCallInfo=function(t,e,n){return this._callMain("setCallInfo",t,e,n)},e.prototype.getTopConversationList=function(t,e){return this._callMain("getTopConversationList",t,e)},e.prototype.getUnreadMentionedCount=function(t){throw new Error("Method not implemented.")},e.prototype.getAllUnreadMentionedCount=function(){return this._callMain("getAllUnreadMentionedCount")},e.prototype.getAllConversationState=function(){throw new Error("Method not implemented.")},e.prototype.getUltraGroupList=function(){throw new Error("Method not implemented.")},e.prototype.getBlockUltraGroupList=function(){throw new Error("Method not implemented.")},e.prototype.getTopUltraGroupList=function(){throw new Error("Method not implemented.")},e.prototype.clearUltraUnreadcount=function(t,e){throw new Error("Method not implemented.")},e.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(t,e){throw new Error("Method not implemented.")},e.prototype.sendUltraMessage=function(t,e,n){throw new Error("Method not implemented.")},e.prototype.sendUltraGroupTypingStatus=function(t,e){throw new Error("Method not implemented.")},e.prototype.getUltraGroupMessageListByMessageUId=function(t){throw new Error("Method not implemented.")},e.prototype.expandUltraMessage=function(t){throw new Error("Method not implemented.")},e.prototype.modifyMessage=function(t){throw new Error("Method not implemented.")},e.prototype.getUltraHistoryMsg=function(t,e){throw new Error("Method not implemented.")},e.prototype.getConversationNotificationLevel=function(t,e,n){return this._callMain("getConversationNotificationLevel",t,e,n)},e.prototype.setConversationNotificationLevel=function(t,e,n,o){return this._callMain("setConversationNotificationLevel",t,e,n,o)},e.prototype.batchSetConversationNotificationLevel=function(t,e){return this._callMain("batchSetConversationNotificationLevel",t,e)},e.prototype.setConversationTypeNotificationLevel=function(t,e){return this._callMain("setConversationTypeNotificationLevel",t,e)},e.prototype.getConversationTypeNotificationLevel=function(t){return this._callMain("getConversationTypeNotificationLevel",t)},e.prototype.getUltraGroupDefaultNotificationLevel=function(t,e){return Promise.resolve({code:n.NOT_SUPPORT})},e.prototype.getAllUltraGroupUnreadCount=function(){return Promise.resolve({code:n.NOT_SUPPORT})},e.prototype.getUltraGroupUnreadCountByTargetId=function(){return Promise.resolve({code:n.NOT_SUPPORT})},e.prototype.setUltraGroupDefaultNotificationLevel=function(){return Promise.resolve({code:n.NOT_SUPPORT})},e.prototype.getUltraGroupUnreadMentionedMessages=function(){return Promise.resolve({code:n.NOT_SUPPORT})},e.prototype.getUltraGroupFirstUnreadMessageTimestamp=function(){return Promise.resolve({code:n.NOT_SUPPORT})},e.prototype.getUltraGroupUnreadInfoList=function(){return Promise.resolve({code:n.NOT_SUPPORT})},e.prototype.getOSInfo=function(){return p(this,void 0,void 0,(function(){return h(this,(function(t){return[2,this._callMain("getOSInfo")]}))}))},e.prototype.getProcessInfo=function(){return p(this,void 0,void 0,(function(){return h(this,(function(t){return[2,{code:n.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))},e.prototype.getMainProcessInfo=function(){return p(this,void 0,void 0,(function(){return h(this,(function(t){return[2,this._callMain("getMainProcessInfo")]}))}))},e.prototype.setProxy=function(t){return this._callMain("setProxy",t)},e.prototype.getProxy=function(){return this._callMain("getProxy")},e.prototype.testProxy=function(t,e){return this._callMain("testProxy",t,e)},e.prototype.setCheckDuplicateMessage=function(t){return this._callMain("checkDuplicateMessage",t)},e.prototype.setCheckChatRoomDuplicateMessage=function(t){return this._callMain("setDuplicateMessageConfig",t)},e.prototype.setNetwork=function(t,e){this._send2Main("setNetwork",t,e)},e.prototype.subscribeUser=function(t,e,n){return this._callMain("subscribeUser",t,e,n)},e.prototype.unSubscribeUser=function(t,e){return this._callMain("unSubscribeUser",t,e)},e.prototype.getSubscribeUserList=function(t,e,n){return this._callMain("getSubscribeUserList",t,e,n)},e.prototype.getSubscribeUserStatus=function(t,e){return this._callMain("getSubscribeUserStatus",t,e)},e.prototype.getConversations=function(t){return this._callMain("getConversations",t)},e.prototype.updateMyUserProfile=function(t){return this._callMain("updateMyUserProfile",t)},e.prototype.getUserProfiles=function(t){return this._callMain("getUserProfiles",t)},e.prototype.getMyUserProfile=function(){return this._callMain("getMyUserProfile")},e.prototype.updateMyUserProfileVisibility=function(t){return this._callMain("updateMyUserProfileVisibility",t)},e.prototype.getMyUserProfileVisibility=function(){return this._callMain("getMyUserProfileVisibility")},e.prototype.searchUserProfileByUniqueId=function(t){return this._callMain("searchUserProfileByUniqueId",t)},e.prototype.createGroup=function(t,e,n,o){return p(this,void 0,void 0,(function(){return h(this,(function(r){return[2,this._callMain("createGroup",t,e,n,o)]}))}))},e.prototype.updateGroupInfo=function(t,e,n){return this._callMain("updateGroupInfo",t,e,n)},e.prototype.getGroupsInfo=function(t){return this._callMain("getGroupsInfo",t)},e.prototype.kickGroupMembers=function(t,e,n){return this._callMain("kickGroupMembers",t,e,n)},e.prototype.quitGroup=function(t,e){return this._callMain("quitGroup",t,e)},e.prototype.dismissGroup=function(t){return this._callMain("dismissGroup",t)},e.prototype.transferGroupOwner=function(t,e,n,o){return this._callMain("transferGroupOwner",t,e,n,o)},e.prototype.setGroupManagers=function(t,e,n){return this._callMain("setGroupManagers",t,e,n)},e.prototype.getGroupMembersByRole=function(t,e,n){return this._callMain("getGroupMembersByRole",t,e,n)},e.prototype.getGroupMembers=function(t,e){return this._callMain("getGroupMembers",t,e)},e.prototype.setGroupMemberInfo=function(t,e,n,o){return this._callMain("setGroupMemberInfo",t,e,n,o)},e.prototype.searchGroupMembers=function(t,e,n){return this._callMain("searchGroupMembers",t,e,n)},e.prototype.joinGroup=function(t){return this._callMain("joinGroup",t)},e.prototype.inviteUsersToGroup=function(t,e){return this._callMain("inviteUsersToGroup",t,e)},e.prototype.memberInviteResponse=function(t){return this._callMain("memberInviteResponse",t)},e.prototype.getGroupApplications=function(t,e,n){return this._callMain("getGroupApplications",t,e,n)},e.prototype.getJoinedGroupsByRole=function(t,e){return this._callMain("getJoinedGroupsByRole",t,e)},e.prototype.searchJoinedGroups=function(t,e){return this._callMain("searchJoinedGroups",t,e)},e.prototype.getJoinedGroups=function(t){return this._callMain("getJoinedGroups",t)},e.prototype.setGroupRemark=function(t,e){return this._callMain("setGroupRemark",t,e)},e.prototype.setGroupFollows=function(t,e,n){return this._callMain("setGroupFollows",t,e,n)},e.prototype.getGroupFollows=function(t){return this._callMain("getGroupFollows",t)},e.prototype.addFriend=function(t,e,n){return this._callMain("addFriend",t,e,n)},e.prototype.deleteFriends=function(t,e){return this._callMain("deleteFriends",t,e)},e.prototype.acceptFriendApplication=function(t){return this._callMain("acceptFriendApplication",t)},e.prototype.refuseFriendApplication=function(t,e){return this._callMain("refuseFriendApplication",t,e)},e.prototype.setFriendInfo=function(t,e,n){return this._callMain("setFriendInfo",t,e,n)},e.prototype.checkFriends=function(t,e){return this._callMain("checkFriends",t,e)},e.prototype.getFriends=function(t,e){return this._callMain("getFriends",t)},e.prototype.getFriendApplications=function(t,e,n){return this._callMain("getFriendApplications",t,e,n)},e.prototype.deleteFriendApplication=function(t,e){return this._callMain("deleteFriendApplication",t,e)},e.prototype.getFriendsInfo=function(t){return this._callMain("getFriendsInfo",t)},e.prototype.searchFriendsInfo=function(t){return this._callMain("searchFriendsInfo",t)},e.prototype.setFriendAddPermission=function(t){return this._callMain("setFriendAddPermission",t)},e.prototype.getFriendAddPermission=function(){return this._callMain("getFriendAddPermission")},e.prototype.getRealtimeConversations=function(t,e,n){throw new Error("Method not implemented.")},e.prototype.getRealtimeConTotalUnreadCount=function(){throw new Error("Method not implemented.")},e.prototype.clearRealtimeConUnreadCount=function(t){throw new Error("Method not implemented.")},e.prototype.removeRealtimeConversations=function(t){throw new Error("Method not implemented.")},e.prototype.getRealtimeConUnreadCounts=function(t){throw new Error("Method not implemented.")},e.prototype.setNotificationQuietHoursWithSetting=function(t){return p(this,void 0,void 0,(function(){return h(this,(function(e){return[2,this._callMain2("setNotificationQuietHoursWithSetting",t)]}))}))},e.prototype.removeNotificationQuietHoursSetting=function(){return p(this,void 0,void 0,(function(){return h(this,(function(t){return[2,this._callMain2("removeNotificationQuietHoursSetting")]}))}))},e.prototype.getNotificationQuietHoursSetting=function(){return p(this,void 0,void 0,(function(){return h(this,(function(t){return[2,this._callMain2("getNotificationQuietHoursSetting")]}))}))},e}(c);y=new WeakMap;var m=function(){window.RCCppEngine=v};export{m as initRenderer};
15
+ ***************************************************************************** */var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function b(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function l(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}u((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function f(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function g(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function y(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var d,h,m,v=function(e){function t(t,r,n,o){var a=e.call(this,t,r,n)||this;return Object.defineProperty(a,"_handleWrite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a._handleWrite=o,a}return s(t,e),t}(e),_=0,M=Date.now(),w=function(e){var t=Date.now();return M!==t&&(M=t,_=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,_++].join("__")};t.add("electron-renderer","5.20.0-alpha.1");var P=function(e){function t(t,n,o){var a=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},c=new v(o.appkey,"IMLib","IM",u);return a=e.call(this,t,n,o,c)||this,d.add(a),Object.defineProperty(a,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),h.set(a,void 0),Object.defineProperty(a,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(a,h,u,"f"),c.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,t){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];var u=n[t];if(u){var c={batchMessage:a._batchMessage.bind(a),onRTCDataChange:a._onRTCDataChange.bind(a),onConnected:a._onConnected.bind(a),onNaviDataChange:a._onNaviDataChange.bind(a)};if(c[t])c[t](o,u);else{var s={onConnecting:i.CONNECTING,onSuspend:i.SUSPENDED,onDisconnected:i.DISCONNECTED};s[t]&&a._setConnectionStatus(s[t]),u(o[0])}}else a.logger.error(r.L_UNSUPPORT_NTF_FROM_MAIN_E,t)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=a._resolveMaps[t];o&&(delete a._resolveMaps[t],o.apply(void 0,g([],f(r),!1)))})),a._options.httpInMainProcess&&(l.httpReq=a.sendHTTPRequest.bind(a)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment}),a._cache=a._callMainSync("getMainProcessCache"),a}return s(t,e),Object.defineProperty(t.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_batchMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0].hasMoreMsg;delete e[0].hasMoreMsg,t([e[0]],void 0,r)}}),Object.defineProperty(t.prototype,"_onRTCDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0];this._receiveRtcKv(new Uint8Array(r))}}),Object.defineProperty(t.prototype,"_onConnected",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=f(e,1),this._cache=r[0],t(void 0)}}),Object.defineProperty(t.prototype,"_onNaviDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=f(e,1),this._cache.naviInfo=r[0],t([e[0]])}}),Object.defineProperty(t.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(t.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(t.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(t.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,a=w(e);t._resolveMaps[a]=n,(o=window.__ContextBridge__).send.apply(o,g(["__RC_CHANNEL_CALL_MAIN__",a,e],f(r),!1))}))}}),Object.defineProperty(t.prototype,"callExtra",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this._callMain.apply(this,g(["callExtra",e],f(t),!1))}}),Object.defineProperty(t.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,g(["__RC_CHANNEL_SEND_2_MAIN__",e],f(r),!1))}}),Object.defineProperty(t.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.logger.info(r.L_CALL_MAIN_SYNC_O,e),(t=window.__ContextBridge__).sendSync.apply(t,g(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],f(n),!1))}}),Object.defineProperty(t.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(t.prototype,"getNaviInfoFromCache",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.naviInfo}}),Object.defineProperty(t.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new v(this._appkey,e,t,y(this,h,"f"))}}),Object.defineProperty(t.prototype,"getConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectionStatus}}),Object.defineProperty(t.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return b(this,void 0,void 0,(function(){return p(this,(function(o){return[2,this._callMain("connect",e,t,r,n)]}))}))}}),Object.defineProperty(t.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(t.prototype,"getConnectedTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectedTime}}),Object.defineProperty(t.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("getHistoryMessage",e,t,r,n,o,a,i)}}),Object.defineProperty(t.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getMessages",e,t,r,n,o,a)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getContinuousMessages",e,t,r,n,o,a)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,a,i)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",m).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",m).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",m).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByFilter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",m).call(this,"getConversationListByFilter",e)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",m).call(this,"getConversation",e,t,r)}}),Object.defineProperty(t.prototype,"removeConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",m).call(this,"removeConversation",e)}}),Object.defineProperty(t.prototype,"batchRemoveConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchRemoveConversation",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",m).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getConversationUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(t.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearConversationUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessageInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessageInfo",e,t,r)}}),Object.defineProperty(t.prototype,"saveConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("saveConversationMessageDraft",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getConversationMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"clearConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversationMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",m).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(t.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",m).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,o,a){var i=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(e){try{o(e)}catch(e){i.logger.error(r.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",e,t,n,l,a)}}),Object.defineProperty(t.prototype,"sendReadReceiptMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageReader",e,t,r)}}),Object.defineProperty(t.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getMessageReadReceiptV4",e,t)}}),Object.defineProperty(t.prototype,"batchGetMessageReadReceiptInfoV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return Promise.resolve({code:n.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("updateConversationReadTime",e,t)}}),Object.defineProperty(t.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return b(this,void 0,void 0,(function(){return p(this,(function(r){return[2,this._callMain("disconnect",e,t)]}))}))}}),Object.defineProperty(t.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(t.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinChatroom",e,t,r)}}),Object.defineProperty(t.prototype,"joinExistChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinExistChatroom",e,t,r)}}),Object.defineProperty(t.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("quitChatroom",e)}}),Object.defineProperty(t.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getChatroomInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(t.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"forceSetChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceSetChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"forceRemoveChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceRemoveChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"getAllChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getAllChatroomEntry",e)}}),Object.defineProperty(t.prototype,"removeChatroomFromCatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._callMain("removeChatroomFromCatch",e)}}),Object.defineProperty(t.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getFileToken",e,t,r,n,o,a)}}),Object.defineProperty(t.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getFileUrl",e,t,r,n)}}),Object.defineProperty(t.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(t.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(t.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserStatus",e)}}),Object.defineProperty(t.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversations",e,t)}}),Object.defineProperty(t.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("addToBlacklist",e)}}),Object.defineProperty(t.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeFromBlacklist",e)}}),Object.defineProperty(t.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getBlacklist")}}),Object.defineProperty(t.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getBlacklistStatus",e)}}),Object.defineProperty(t.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("insertMessage",e,t,r)}}),Object.defineProperty(t.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("batchInsertMessage",e,t)}}),Object.defineProperty(t.prototype,"getMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageCount",e,t,r)}}),Object.defineProperty(t.prototype,"deleteMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("deleteMessages",e)}}),Object.defineProperty(t.prototype,"deleteMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("deleteMessagesByTimestamp",e,t,r,n,o)}}),Object.defineProperty(t.prototype,"batchClearMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchClearMessagesByTimestamp",e)}}),Object.defineProperty(t.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",m).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(t.prototype,"clearMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearMessages",e,t,r)}}),Object.defineProperty(t.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",m).call(this,"getMessage",e)}}),Object.defineProperty(t.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageContent",e,t,r)}}),Object.defineProperty(t.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(t.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",m).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(t.prototype,"searchMessageByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("searchMessageByContentWithAllChannel",e,t,r,n,o)}}),Object.defineProperty(t.prototype,"searchMessageByContentInTimeRangeWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",e,t,r,n,o,a,i)}}),Object.defineProperty(t.prototype,"searchMessageByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContent",e,t,r,n,o,a,i)}}),Object.defineProperty(t.prototype,"searchMessageByContentAndMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContentAndMessageType",e,t,r,n,o,a,i)}}),Object.defineProperty(t.prototype,"searchMessagesByUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("searchMessagesByUser",e,t,r,n,o,a)}}),Object.defineProperty(t.prototype,"getMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getMatchedMessage",e,t,r,n)}}),Object.defineProperty(t.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMainSync("getUnreadMentionedMessages",e,t,r)}}),Object.defineProperty(t.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageSentStatus",e,t)}}),Object.defineProperty(t.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageReceivedStatus",e,t)}}),Object.defineProperty(t.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(t.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("clearUnreadCountByTimestamp",e,t,r,n)}}),Object.defineProperty(t.prototype,"clearAllUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return b(this,void 0,void 0,(function(){return p(this,(function(e){return[2,y(this,d,"m",m).call(this,"clearAllUnreadCount")]}))}))}}),Object.defineProperty(t.prototype,"getRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,a)}}),Object.defineProperty(t.prototype,"getServerTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Date.now()-this._cache.deltaTime}}),Object.defineProperty(t.prototype,"getDeviceId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.deviceId}}),Object.defineProperty(t.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"getCurrentUserId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.crtUserId}}),Object.defineProperty(t.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(t.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return b(this,void 0,void 0,(function(){var o,a,i,l;return p(this,(function(u){switch(u.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,this._callMain("rtcSignaling",e,t,r,o)];case 1:return a=u.sent(),i=a.code,l=a.buffer,[2,{code:i,buffer:l?new Uint8Array(l):l}]}}))}))}}),Object.defineProperty(t.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("rtcPing",e,t,r)}}),Object.defineProperty(t.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("createTag",e)}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeTag",e)}}),Object.defineProperty(t.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateTag",e)}}),Object.defineProperty(t.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getTagList")}}),Object.defineProperty(t.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("addTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagsForConversation",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getConversationListByTag",e,t,r,n)}}),Object.defineProperty(t.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getUnreadCountByTag",e,t)}}),Object.defineProperty(t.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setConversationStatusInTag",e,t,r)}}),Object.defineProperty(t.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getTagsForConversation",e)}}),Object.defineProperty(t.prototype,"clearData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("clearData")}}),Object.defineProperty(t.prototype,"getGroupMessageDeliverList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMessageDeliverList",e,t,r)}}),Object.defineProperty(t.prototype,"getPrivateMessageDeliverTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getPrivateMessageDeliverTime",e,t)}}),Object.defineProperty(t.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setCallInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getAllUnreadMentionedCount")}}),Object.defineProperty(t.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"getBlockUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return b(this,void 0,void 0,(function(){return p(this,(function(e){return[2,a(n.NOT_SUPPORT)]}))}))}}),Object.defineProperty(t.prototype,"clearUltraUnreadcount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadMentionedCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"getUltraGroupMessageListByMessageUId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"expandUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"modifyMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"getUltraHistoryMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",m).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",m).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",m).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return Promise.resolve({code:n.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getAllUltraGroupUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:n.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:n.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"setUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:n.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:n.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupFirstUnreadMessageTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:n.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:n.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return b(this,void 0,void 0,(function(){return p(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(t.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return b(this,void 0,void 0,(function(){return p(this,(function(e){return[2,{code:n.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(t.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return b(this,void 0,void 0,(function(){return p(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(t.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setProxy",e)}}),Object.defineProperty(t.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getProxy")}}),Object.defineProperty(t.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("testProxy",e,t)}}),Object.defineProperty(t.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("checkDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setDuplicateMessageConfig",e)}}),Object.defineProperty(t.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(t.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("subscribeUser",e,t,r)}}),Object.defineProperty(t.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("unSubscribeUser",e,t)}}),Object.defineProperty(t.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getSubscribeUserList",e,t,r)}}),Object.defineProperty(t.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getSubscribeUserStatus",e,t)}}),Object.defineProperty(t.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getConversations",e)}}),Object.defineProperty(t.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfile",e)}}),Object.defineProperty(t.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserProfiles",e)}}),Object.defineProperty(t.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfile")}}),Object.defineProperty(t.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfileVisibility",e)}}),Object.defineProperty(t.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfileVisibility")}}),Object.defineProperty(t.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchUserProfileByUniqueId",e)}}),Object.defineProperty(t.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return b(this,void 0,void 0,(function(){return p(this,(function(o){return[2,this._callMain("createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(t.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("updateGroupInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupsInfo",e)}}),Object.defineProperty(t.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("kickGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("quitGroup",e,t)}}),Object.defineProperty(t.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("dismissGroup",e)}}),Object.defineProperty(t.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("transferGroupOwner",e,t,r,n)}}),Object.defineProperty(t.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupManagers",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMembersByRole",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getGroupMembers",e,t)}}),Object.defineProperty(t.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("joinGroup",e)}}),Object.defineProperty(t.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("inviteUsersToGroup",e,t)}}),Object.defineProperty(t.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("memberInviteResponse",e)}}),Object.defineProperty(t.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getJoinedGroupsByRole",e,t)}}),Object.defineProperty(t.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("searchJoinedGroups",e,t)}}),Object.defineProperty(t.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getJoinedGroups",e)}}),Object.defineProperty(t.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setGroupRemark",e,t)}}),Object.defineProperty(t.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupFollows",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupFollows",e)}}),Object.defineProperty(t.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("addFriend",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriends",e,t)}}),Object.defineProperty(t.prototype,"acceptFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("acceptFriendApplication",e)}}),Object.defineProperty(t.prototype,"refuseFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("refuseFriendApplication",e,t)}}),Object.defineProperty(t.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setFriendInfo",e,t,r)}}),Object.defineProperty(t.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("checkFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getFriends",e)}}),Object.defineProperty(t.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFriendApplications",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriendApplication",e,t)}}),Object.defineProperty(t.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getFriendsInfo",e)}}),Object.defineProperty(t.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchFriendsInfo",e)}}),Object.defineProperty(t.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setFriendAddPermission",e)}}),Object.defineProperty(t.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getFriendAddPermission")}}),Object.defineProperty(t.prototype,"getRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"getRealtimeConTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"clearRealtimeConUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"removeRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"getRealtimeConUnreadCounts",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(t.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return b(this,void 0,void 0,(function(){return p(this,(function(t){return[2,y(this,d,"m",m).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(t.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return b(this,void 0,void 0,(function(){return p(this,(function(e){return[2,y(this,d,"m",m).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return b(this,void 0,void 0,(function(){return p(this,(function(e){return[2,y(this,d,"m",m).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",m).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",m).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",m).call(this,"getMessageReadReceiptInfoV5",e,t)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",m).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",m).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),t}(u);h=new WeakMap,d=new WeakSet,m=function(e){for(var t=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return new Promise((function(i){var l,u=w(e);t._resolveMaps[u]=function(e){var t=e.code,r=e.msg,l=e.data;t!==n.SUCCESS?i(a(t,r,l)):i(o(l))},(l=window.__ContextBridge__).send.apply(l,g(["__RC_CHANNEL_CALL_MAIN__",u,e],f(r),!1))}))};var O=function(){window.RCCppEngine=P};export{O as initRenderer};