@rongcloud/electron-renderer 5.22.0-alpha.1 → 5.22.0

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
@@ -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 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,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(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(a,l)}u((n=n.apply(e,t||[])).next())}))}function o(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function i(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function a(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;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(t){function i(r,i,a,l){var u=this,c=e.createLogDBProxy();return c.setLogReader((function(e,t,r,i){return n(u,void 0,void 0,(function(){return o(this,(function(e){return[2,{logs:[]}]}))}))})),c.setLogWriter((function(e){l(e)})),u=t.call(this,r,i,a,c)||this}return r(i,t),Object.defineProperty(i.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(i.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),i}(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.22.0-alpha.1");var d=function(t){function p(r,n,o){var l,s=this,p=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},f=new b(o.appkey,"IMLib","IM",p);return s=t.call(this,r,n,o,f)||this,u.add(s),Object.defineProperty(s,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),c.set(s,void 0),Object.defineProperty(s,"_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)}(s,c,p,"f"),f.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=n[r];if(a){var l={batchMessage:s._batchMessage.bind(s),onRTCDataChange:s._onRTCDataChange.bind(s),onConnected:s._onConnected.bind(s),onNaviDataChange:s._onNaviDataChange.bind(s)};if(l[r])l[r](o,a);else{var u={onConnecting:e.RCConnectionStatus.CONNECTING,onSuspend:e.RCConnectionStatus.SUSPENDED,onDisconnected:e.RCConnectionStatus.DISCONNECTED};u[r]&&s._setConnectionStatus(u[r]),a(o[0])}}else s.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=s._resolveMaps[t];o&&(delete s._resolveMaps[t],o.apply(void 0,a([],i(r),!1)))})),s._options.httpInMainProcess&&(e.runtime.httpReq=s.sendHTTPRequest.bind(s)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment,enableReadReceiptStorage:o.enableReadReceiptStorage,useNaviV2:null!==(l=o.useNaviV2)&&void 0!==l&&l}),s._cache=s._callMainSync("getMainProcessCache"),s}return r(p,t),Object.defineProperty(p.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"chatroom",{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=i(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=i(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,a(["__RC_CHANNEL_CALL_MAIN__",l,e],i(r),!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,a(["__RC_CHANNEL_SEND_2_MAIN__",e],i(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,a(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],i(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,i){return n(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this._callMain("connect",e,t,r,i)]}))}))}}),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,i,a){return this._callMain("getHistoryMessage",e,t,r,n,o,i,a)}}),Object.defineProperty(p.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getMessages",e,t,r,n,o,i)}}),Object.defineProperty(p.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getContinuousMessages",e,t,r,n,o,i)}}),Object.defineProperty(p.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i,a){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,i,a)}}),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,i){var a=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(t){try{o(t)}catch(t){a.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,i)}}),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 l(this,u,"m",s).call(this,"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,i){return this._callMain("getFileToken",e,t,r,n,o,i)}}),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,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",s).call(this,"searchMessagesWithParams",e)}}),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 l(this,u,"m",s).call(this,"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,i){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,i)}}),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,i){return n(this,void 0,void 0,(function(){var n,a,l,u;return o(this,(function(o){switch(o.label){case 0:return n=Array.prototype.slice.call(new Uint8Array(i)),[4,this._callMain("rtcSignaling",e,t,r,n)];case 1:return a=o.sent(),l=a.code,u=a.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,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",s).call(this,"clearLocalData")}}),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,i){return n(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this._callMain("createGroup",e,t,r,i)]}))}))}}),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,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",s).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),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)}}),Object.defineProperty(p.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(p.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"setMessageSpeechToTextVisible",e,t)}}),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,i=t.data;r!==e.ErrorCode.SUCCESS?o(e.fail(r,n,i)):o(e.ok(i))},(l=window.__ContextBridge__).send.apply(l,a(["__RC_CHANNEL_CALL_MAIN__",u,t],i(n),!1))}))};exports.initRenderer=function(){window.RCCppEngine=d};
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,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(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(a,l)}u((n=n.apply(e,t||[])).next())}))}function o(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function i(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function a(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;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(t){function i(r,i,a,l){var u=this,c=e.createLogDBProxy();return c.setLogReader((function(e,t,r,i){return n(u,void 0,void 0,(function(){return o(this,(function(e){return[2,{logs:[]}]}))}))})),c.setLogWriter((function(e){l(e)})),u=t.call(this,r,i,a,c)||this}return r(i,t),Object.defineProperty(i.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(i.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),i}(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.22.0");var d=function(t){function p(r,n,o){var l,s=this,p=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},f=new b(o.appkey,"IMLib","IM",p);return s=t.call(this,r,n,o,f)||this,u.add(s),Object.defineProperty(s,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),c.set(s,void 0),Object.defineProperty(s,"_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)}(s,c,p,"f"),f.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=n[r];if(a){var l={batchMessage:s._batchMessage.bind(s),onRTCDataChange:s._onRTCDataChange.bind(s),onConnected:s._onConnected.bind(s),onNaviDataChange:s._onNaviDataChange.bind(s)};if(l[r])l[r](o,a);else{var u={onConnecting:e.RCConnectionStatus.CONNECTING,onSuspend:e.RCConnectionStatus.SUSPENDED,onDisconnected:e.RCConnectionStatus.DISCONNECTED};u[r]&&s._setConnectionStatus(u[r]),a(o[0])}}else s.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=s._resolveMaps[t];o&&(delete s._resolveMaps[t],o.apply(void 0,a([],i(r),!1)))})),s._options.httpInMainProcess&&(e.runtime.httpReq=s.sendHTTPRequest.bind(s)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment,enableReadReceiptStorage:o.enableReadReceiptStorage,useNaviV2:null!==(l=o.useNaviV2)&&void 0!==l&&l}),s._cache=s._callMainSync("getMainProcessCache"),s}return r(p,t),Object.defineProperty(p.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"chatroom",{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=i(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=i(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,a(["__RC_CHANNEL_CALL_MAIN__",l,e],i(r),!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,a(["__RC_CHANNEL_SEND_2_MAIN__",e],i(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,a(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],i(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,i){return n(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this._callMain("connect",e,t,r,i)]}))}))}}),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,i,a){return this._callMain("getHistoryMessage",e,t,r,n,o,i,a)}}),Object.defineProperty(p.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getMessages",e,t,r,n,o,i)}}),Object.defineProperty(p.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getContinuousMessages",e,t,r,n,o,i)}}),Object.defineProperty(p.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i,a){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,i,a)}}),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,i){var a=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(t){try{o(t)}catch(t){a.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,i)}}),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 l(this,u,"m",s).call(this,"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,i){return this._callMain("getFileToken",e,t,r,n,o,i)}}),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,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",s).call(this,"searchMessagesWithParams",e)}}),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 l(this,u,"m",s).call(this,"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,i){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,i)}}),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,i){return n(this,void 0,void 0,(function(){var n,a,l,u;return o(this,(function(o){switch(o.label){case 0:return n=Array.prototype.slice.call(new Uint8Array(i)),[4,this._callMain("rtcSignaling",e,t,r,n)];case 1:return a=o.sent(),l=a.code,u=a.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,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",s).call(this,"clearLocalData")}}),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,i){return n(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this._callMain("createGroup",e,t,r,i)]}))}))}}),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,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",s).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),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)}}),Object.defineProperty(p.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(p.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",s).call(this,"setMessageSpeechToTextVisible",e,t)}}),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,i=t.data;r!==e.ErrorCode.SUCCESS?o(e.fail(r,n,i)):o(e.ok(i))},(l=window.__ContextBridge__).send.apply(l,a(["__RC_CHANNEL_CALL_MAIN__",u,t],i(n),!1))}))};exports.initRenderer=function(){window.RCCppEngine=d};
package/renderer.esm.js CHANGED
@@ -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 s=function(e,t){return s=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])},s(e,t)};function b(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}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function p(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(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(a,l)}u((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;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 m,h,v,w=function(t){function r(r,n,o,i){var a=this,l=e();return l.setLogReader((function(e,t,r,n){return p(a,void 0,void 0,(function(){return f(this,(function(e){return[2,{logs:[]}]}))}))})),l.setLogWriter((function(e){i(e)})),a=t.call(this,r,n,o,l)||this}return b(r,t),Object.defineProperty(r.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(r.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),r}(t),_=0,M=Date.now(),P=function(e){var t=Date.now();return M!==t&&(M=t,_=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,_++].join("__")};r.add("electron-renderer","5.22.0-alpha.1");var O=function(e){function t(t,r,o){var i,a=this,c=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},s=new w(o.appkey,"IMLib","IM",c);return a=e.call(this,t,r,o,s)||this,m.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,c,"f"),s.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,t){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var u=r[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:l.CONNECTING,onSuspend:l.SUSPENDED,onDisconnected:l.DISCONNECTED};s[t]&&a._setConnectionStatus(s[t]),u(o[0])}}else a.logger.error(n.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,d([],g(r),!1)))})),a._options.httpInMainProcess&&(u.httpReq=a.sendHTTPRequest.bind(a)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment,enableReadReceiptStorage:o.enableReadReceiptStorage,useNaviV2:null!==(i=o.useNaviV2)&&void 0!==i&&i}),a._cache=a._callMainSync("getMainProcessCache"),a}return b(t,e),Object.defineProperty(t.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chatroom",{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=g(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=g(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,i=P(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,e],g(r),!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,d(["__RC_CHANNEL_SEND_2_MAIN__",e],g(r),!1))}}),Object.defineProperty(t.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];return this.logger.info(n.L_CALL_MAIN_SYNC_O,e),(t=window.__ContextBridge__).sendSync.apply(t,d(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],g(r),!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 w(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 p(this,void 0,void 0,(function(){return f(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,i,a){return this._callMain("getHistoryMessage",e,t,r,n,o,i,a)}}),Object.defineProperty(t.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getMessages",e,t,r,n,o,i)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getContinuousMessages",e,t,r,n,o,i)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i,a){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,i,a)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByFilter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).call(this,"getConversationListByFilter",e)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,m,"m",v).call(this,"getConversation",e,t,r)}}),Object.defineProperty(t.prototype,"removeConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).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,m,"m",v).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,m,"m",v).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,m,"m",v).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,o,i){var a=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(e){try{o(e)}catch(e){a.logger.error(n.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",e,t,r,l,i)}}),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:o.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 p(this,void 0,void 0,(function(){return f(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 y(this,m,"m",v).call(this,"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,i){return this._callMain("getFileToken",e,t,r,n,o,i)}}),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,m,"m",v).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,m,"m",v).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,m,"m",v).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,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).call(this,"searchMessagesWithParams",e)}}),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 y(this,m,"m",v).call(this,"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 p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,y(this,m,"m",v).call(this,"clearAllUnreadCount")]}))}))}}),Object.defineProperty(t.prototype,"getRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,i)}}),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 p(this,void 0,void 0,(function(){var o,i,a,l;return f(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 i=u.sent(),a=i.code,l=i.buffer,[2,{code:a,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,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,m,"m",v).call(this,"clearLocalData")}}),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 p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,a(o.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,m,"m",v).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getAllUltraGroupUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"setUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupFirstUnreadMessageTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(t.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,{code:o.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 p(this,void 0,void 0,(function(){return f(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 p(this,void 0,void 0,(function(){return f(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 p(this,void 0,void 0,(function(){return f(this,(function(t){return[2,y(this,m,"m",v).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(t.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,y(this,m,"m",v).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,y(this,m,"m",v).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,m,"m",v).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,m,"m",v).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,m,"m",v).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"setMessageSpeechToTextVisible",e,t)}}),t}(c);h=new WeakMap,m=new WeakSet,v=function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var l,u=P(e);t._resolveMaps[u]=function(e){var t=e.code,r=e.msg,l=e.data;t!==o.SUCCESS?n(a(t,r,l)):n(i(l))},(l=window.__ContextBridge__).send.apply(l,d(["__RC_CHANNEL_CALL_MAIN__",u,e],g(r),!1))}))};var j=function(){window.RCCppEngine=O};export{j as initRenderer};
15
+ ***************************************************************************** */var s=function(e,t){return s=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])},s(e,t)};function b(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}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function p(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(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(a,l)}u((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;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 m,h,v,w=function(t){function r(r,n,o,i){var a=this,l=e();return l.setLogReader((function(e,t,r,n){return p(a,void 0,void 0,(function(){return f(this,(function(e){return[2,{logs:[]}]}))}))})),l.setLogWriter((function(e){i(e)})),a=t.call(this,r,n,o,l)||this}return b(r,t),Object.defineProperty(r.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(r.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),r}(t),_=0,M=Date.now(),P=function(e){var t=Date.now();return M!==t&&(M=t,_=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,_++].join("__")};r.add("electron-renderer","5.22.0");var O=function(e){function t(t,r,o){var i,a=this,c=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},s=new w(o.appkey,"IMLib","IM",c);return a=e.call(this,t,r,o,s)||this,m.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,c,"f"),s.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,t){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var u=r[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:l.CONNECTING,onSuspend:l.SUSPENDED,onDisconnected:l.DISCONNECTED};s[t]&&a._setConnectionStatus(s[t]),u(o[0])}}else a.logger.error(n.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,d([],g(r),!1)))})),a._options.httpInMainProcess&&(u.httpReq=a.sendHTTPRequest.bind(a)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment,enableReadReceiptStorage:o.enableReadReceiptStorage,useNaviV2:null!==(i=o.useNaviV2)&&void 0!==i&&i}),a._cache=a._callMainSync("getMainProcessCache"),a}return b(t,e),Object.defineProperty(t.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chatroom",{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=g(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=g(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,i=P(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,e],g(r),!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,d(["__RC_CHANNEL_SEND_2_MAIN__",e],g(r),!1))}}),Object.defineProperty(t.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];return this.logger.info(n.L_CALL_MAIN_SYNC_O,e),(t=window.__ContextBridge__).sendSync.apply(t,d(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],g(r),!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 w(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 p(this,void 0,void 0,(function(){return f(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,i,a){return this._callMain("getHistoryMessage",e,t,r,n,o,i,a)}}),Object.defineProperty(t.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getMessages",e,t,r,n,o,i)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getContinuousMessages",e,t,r,n,o,i)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i,a){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,i,a)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByFilter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).call(this,"getConversationListByFilter",e)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,m,"m",v).call(this,"getConversation",e,t,r)}}),Object.defineProperty(t.prototype,"removeConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).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,m,"m",v).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,m,"m",v).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,m,"m",v).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,o,i){var a=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(e){try{o(e)}catch(e){a.logger.error(n.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",e,t,r,l,i)}}),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:o.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 p(this,void 0,void 0,(function(){return f(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 y(this,m,"m",v).call(this,"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,i){return this._callMain("getFileToken",e,t,r,n,o,i)}}),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,m,"m",v).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,m,"m",v).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,m,"m",v).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,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).call(this,"searchMessagesWithParams",e)}}),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 y(this,m,"m",v).call(this,"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 p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,y(this,m,"m",v).call(this,"clearAllUnreadCount")]}))}))}}),Object.defineProperty(t.prototype,"getRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,i)}}),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 p(this,void 0,void 0,(function(){var o,i,a,l;return f(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 i=u.sent(),a=i.code,l=i.buffer,[2,{code:a,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,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,m,"m",v).call(this,"clearLocalData")}}),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 p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,a(o.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,m,"m",v).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getAllUltraGroupUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"setUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupFirstUnreadMessageTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getUltraGroupUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:o.NOT_SUPPORT})}}),Object.defineProperty(t.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(t.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,{code:o.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 p(this,void 0,void 0,(function(){return f(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 p(this,void 0,void 0,(function(){return f(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 p(this,void 0,void 0,(function(){return f(this,(function(t){return[2,y(this,m,"m",v).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(t.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,y(this,m,"m",v).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return f(this,(function(e){return[2,y(this,m,"m",v).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,m,"m",v).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,m,"m",v).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,m,"m",v).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,m,"m",v).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,m,"m",v).call(this,"setMessageSpeechToTextVisible",e,t)}}),t}(c);h=new WeakMap,m=new WeakSet,v=function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var l,u=P(e);t._resolveMaps[u]=function(e){var t=e.code,r=e.msg,l=e.data;t!==o.SUCCESS?n(a(t,r,l)):n(i(l))},(l=window.__ContextBridge__).send.apply(l,d(["__RC_CHANNEL_CALL_MAIN__",u,e],g(r),!1))}))};var j=function(){window.RCCppEngine=O};export{j as initRenderer};