@rongcloud/electron-renderer 5.32.0-c-dq.3 → 5.34.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/renderer.cjs.js CHANGED
@@ -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)}function u(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");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}var s,c,b,f,p,g=function(t){function i(r,i,a,l){var u=this,s=e.createLogDBProxy();return s.setLogReader((function(e,t,r,i){return n(u,void 0,void 0,(function(){return o(this,(function(e){return[2,{logs:[]}]}))}))})),s.setLogWriter((function(e){l(e)})),u=t.call(this,r,i,a,s)||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),d=0,h=Date.now(),y=function(e){var t=Date.now();return h!==t&&(h=t,d=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,d++].join("__")};e.VersionManage.add("electron-renderer","5.32.0-c-dq.3");var m=function(){return n(void 0,void 0,void 0,(function(){return o(this,(function(t){return[2,e.fail(e.ErrorCode.NOT_SUPPORT,"Not support")]}))}))},v=function(t){function d(r,n){var o,l=t.call(this,r,n)||this;s.add(l),Object.defineProperty(l,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),c.set(l,void 0),b.set(l,void 0),f.set(l,!1),Object.defineProperty(l,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(l,"loadConversationList",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:m});var p=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},d=u(l,b,new g(n.appkey,"IMLib","IM",p),"f");return u(l,c,p,"f"),d.setOutputLevel(n.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,n){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var c=r[n];if(c){switch(n){case"ultraGroupEnable":u(l,f,!0,"f");break;case"onNaviDataChange":l._cache.naviInfo=o[0];break;case"onRTCDataChange":return void l._receiveRtcKv(new Uint8Array(o[0]));case"onConnected":u(l,f,!1,"f"),l._cache=o[1];break;case"onSuspend":u(l,f,!1,"f"),l._setConnectionStatus(e.RCConnectionStatus.SUSPENDED);break;case"onDisconnected":u(l,f,!1,"f"),l._setConnectionStatus(e.RCConnectionStatus.DISCONNECTED);break;case"onConnecting":l._setConnectionStatus(e.RCConnectionStatus.CONNECTING)}c.apply(void 0,a([],i(o),!1))}else l.logger.error(e.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,n)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=l._resolveMaps[t];o&&(delete l._resolveMaps[t],o.apply(void 0,a([],i(r),!1)))})),l._options.httpInMainProcess&&(e.runtime.httpReq=l.sendHTTPRequest.bind(l)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:n.navigators,areaCode:n.areaCode,logServerUrl:n.logServerUrl,environment:n.environment,enableReadReceiptStorage:n.enableReadReceiptStorage,useNaviV2:null!==(o=n.useNaviV2)&&void 0!==o&&o}),l._cache=l._callMainSync("getMainProcessCache"),l}return r(d,t),Object.defineProperty(d.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"logger",{get:function(){return l(this,b,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"ugSynced",{get:function(){return l(this,f,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this._cache.connectionStatus=t,t===e.RCConnectionStatus.DISCONNECTED&&(this._cache.crtUserId="")}}),Object.defineProperty(d.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(d.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=y(e);t._resolveMaps[l]=n,(o=window.__ContextBridge__).send.apply(o,a(["__RC_CHANNEL_CALL_MAIN__",l,e],i(r),!1))}))}}),Object.defineProperty(d.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(d.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(d.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"refetchNaviInfo")}}),Object.defineProperty(d.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new g(this._appkey,e,t,l(this,c,"f"))}}),Object.defineProperty(d.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(d.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,l(this,s,"m",p).call(this,"connect",e,t,r,i)]}))}))}}),Object.defineProperty(d.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(d.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(d.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(d.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(d.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(d.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"recallMsg",e,t)}}),Object.defineProperty(d.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(d.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(d.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(d.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(d.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(d.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(d.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(d.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversation",e)}}),Object.defineProperty(d.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(d.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(d.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(d.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(d.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(d.prototype,"markRemoteConversationAsRead",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"markRemoteConversationAsRead",e,t,r)}}),Object.defineProperty(d.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(d.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(d.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(d.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(d.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(d.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(d.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(d.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(d.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n,o){var i=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[a]=function(t){try{o(t)}catch(t){i.logger.error(e.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:"sendMsgBefore"}))}}),l(this,s,"m",p).call(this,"sendMessage",t,r,n,a)}}),Object.defineProperty(d.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(d.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(d.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(d.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(d.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(d.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,l(this,s,"m",p).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(d.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(d.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(d.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"quitChatroom",e,t)}}),Object.defineProperty(d.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(d.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(d.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(d.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(d.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(d.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(d.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(d.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(d.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return l(this,s,"m",p).call(this,"getFileToken",e,t,r,n,o,i)}}),Object.defineProperty(d.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(d.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(d.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(d.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUserStatus",e)}}),Object.defineProperty(d.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"clearConversations",e,t)}}),Object.defineProperty(d.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"addToBlacklist",e)}}),Object.defineProperty(d.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(d.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getBlacklist")}}),Object.defineProperty(d.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(d.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"insertMessage",e,t)}}),Object.defineProperty(d.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(d.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(d.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(d.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(d.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(d.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(d.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"clearLocalMessages",e)}}),Object.defineProperty(d.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getMessage",e)}}),Object.defineProperty(d.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(d.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(d.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(d.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(d.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(d.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(d.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(d.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(d.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(d.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(d.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(d.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(d.prototype,"clearAllSGUnreadCount",{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,s,"m",p).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(d.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(d.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(d.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,i){return n(this,void 0,void 0,(function(){var n;return o(this,(function(o){switch(o.label){case 0:return n=Array.prototype.slice.call(new Uint8Array(i)),[4,l(this,s,"m",p).call(this,"rtcSignaling",e,t,r,n)];case 1:return[2,o.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(d.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(d.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"createTag",e)}}),Object.defineProperty(d.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"removeTag",e)}}),Object.defineProperty(d.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"updateTag",e)}}),Object.defineProperty(d.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getTagList")}}),Object.defineProperty(d.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(d.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(d.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(d.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(d.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(d.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(d.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getTagsForConversation",e)}}),Object.defineProperty(d.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"clearLocalData")}}),Object.defineProperty(d.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(d.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(d.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUltraGroupList",e)}}),Object.defineProperty(d.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getBlockedUGList")}}),Object.defineProperty(d.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(d.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(d.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(d.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(d.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(d.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(d.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(d.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(d.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(d.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(d.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(d.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(d.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setProxy",e)}}),Object.defineProperty(d.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getProxy")}}),Object.defineProperty(d.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"testProxy",e,t)}}),Object.defineProperty(d.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(d.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(d.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(d.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(d.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(d.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(d.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(d.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversations",e)}}),Object.defineProperty(d.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(d.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUserProfiles",e)}}),Object.defineProperty(d.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getMyUserProfile")}}),Object.defineProperty(d.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(d.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(d.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(d.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,l(this,s,"m",p).call(this,"createGroup",e,t,r,i)]}))}))}}),Object.defineProperty(d.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(d.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getGroupsInfo",e)}}),Object.defineProperty(d.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(d.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"quitGroup",e,t)}}),Object.defineProperty(d.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"dismissGroup",e)}}),Object.defineProperty(d.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(d.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(d.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(d.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(d.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(d.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(d.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"joinGroup",e)}}),Object.defineProperty(d.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(d.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"memberInviteResponse",e)}}),Object.defineProperty(d.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(d.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(d.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(d.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getJoinedGroups",e)}}),Object.defineProperty(d.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(d.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(d.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getGroupFollows",e)}}),Object.defineProperty(d.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"addFriend",e,t,r)}}),Object.defineProperty(d.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"deleteFriends",e,t)}}),Object.defineProperty(d.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(d.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(d.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(d.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"checkFriends",e,t)}}),Object.defineProperty(d.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getFriends",e,t)}}),Object.defineProperty(d.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(d.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getFriendsInfo",e)}}),Object.defineProperty(d.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(d.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(d.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getFriendAddPermission")}}),Object.defineProperty(d.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,s,"m",p).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(d.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,s,"m",p).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(d.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,s,"m",p).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(d.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getStatsUrlList")}}),Object.defineProperty(d.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(d.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(d.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(d.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(d.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(d.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(d.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(d.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(d.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getTranslationLanguage")}}),Object.defineProperty(d.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(d.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(d.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(d.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,i,a){return n(this,void 0,void 0,(function(){var n,u,c,b=this;return o(this,(function(o){return u=(n=function(t,r){var n=[t,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return b._resolveMaps[n]=function(n){try{r(n)}catch(r){b.logger.error(e.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==r?void 0:r.stack,pos:t}))}},n})("localMessageBlock",a),c=n("remoteMessageBlock",i),[2,l(this,s,"m",p).call(this,"refreshReferenceMessageWithParams",t,r,c,u)]}))}))}}),Object.defineProperty(d.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"syncRemoteConversations")}}),Object.defineProperty(d.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(d.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(d.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(d.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(d.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(d.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(d.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(d.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(d.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(d.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(d.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getUnreadMentionMeConversationList",e,t)}}),Object.defineProperty(d.prototype,"getAllRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getAllRobots")}}),Object.defineProperty(d.prototype,"getConversationsIncludingRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversationsIncludingRobots",e)}}),d}(e.BasicEngine);c=new WeakMap,b=new WeakMap,f=new WeakMap,s=new WeakSet,p=function(t){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var l=e.promiseWithResolvers(),u=l.promise,s=l.resolve,c=y(t);return this._resolveMaps[c]=function(t){var r=t.code,n=t.msg,o=t.data;s(e.RCResult.from(r,n,o))},(r=window.__ContextBridge__).send.apply(r,a(["__RC_CHANNEL_CALL_MAIN__",c,t],i(n),!1)),u};exports.initRenderer=function(){window.RCCppEngine=v};
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)}function u(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");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}var s,c,b,f,p,g=function(t){function i(r,i,a,l){var u=this,s=e.createLogDBProxy();return s.setLogReader((function(e,t,r,i){return n(u,void 0,void 0,(function(){return o(this,(function(e){return[2,{logs:[]}]}))}))})),s.setLogWriter((function(e){l(e)})),u=t.call(this,r,i,a,s)||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),h=0,y=Date.now(),d=function(e){var t=Date.now();return y!==t&&(y=t,h=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,h++].join("__")};e.VersionManage.add("electron-renderer","5.34.0-alpha.1");var m=function(){return n(void 0,void 0,void 0,(function(){return o(this,(function(t){return[2,e.fail(e.ErrorCode.NOT_SUPPORT,"Not support")]}))}))},v=function(t){function h(r,n){var o,l=t.call(this,r,n)||this;s.add(l),Object.defineProperty(l,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),c.set(l,void 0),b.set(l,void 0),f.set(l,!1),Object.defineProperty(l,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(l,"loadConversationList",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(l,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:m});var p=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},h=u(l,b,new g(n.appkey,"IMLib","IM",p),"f");return u(l,c,p,"f"),h.setOutputLevel(n.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,n){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var c=r[n];if(c){switch(n){case"ultraGroupEnable":u(l,f,!0,"f");break;case"onNaviDataChange":l._cache.naviInfo=o[0];break;case"onRTCDataChange":return void l._receiveRtcKv(new Uint8Array(o[0]));case"onConnected":u(l,f,!1,"f"),l._cache=o[1];break;case"onSuspend":u(l,f,!1,"f"),l._setConnectionStatus(e.RCConnectionStatus.SUSPENDED);break;case"onDisconnected":u(l,f,!1,"f"),l._setConnectionStatus(e.RCConnectionStatus.DISCONNECTED);break;case"onConnecting":l._setConnectionStatus(e.RCConnectionStatus.CONNECTING)}c.apply(void 0,a([],i(o),!1))}else l.logger.error(e.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,n)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=l._resolveMaps[t];o&&(delete l._resolveMaps[t],o.apply(void 0,a([],i(r),!1)))})),l._options.httpInMainProcess&&(e.runtime.httpReq=l.sendHTTPRequest.bind(l)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:n.navigators,areaCode:n.areaCode,logServerUrl:n.logServerUrl,environment:n.environment,enableReadReceiptStorage:n.enableReadReceiptStorage,useNaviV2:null!==(o=n.useNaviV2)&&void 0!==o&&o}),l._cache=l._callMainSync("getMainProcessCache"),l}return r(h,t),Object.defineProperty(h.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"logger",{get:function(){return l(this,b,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"ugSynced",{get:function(){return l(this,f,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this._cache.connectionStatus=t,t===e.RCConnectionStatus.DISCONNECTED&&(this._cache.crtUserId="")}}),Object.defineProperty(h.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(h.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=d(e);t._resolveMaps[l]=n,(o=window.__ContextBridge__).send.apply(o,a(["__RC_CHANNEL_CALL_MAIN__",l,e],i(r),!1))}))}}),Object.defineProperty(h.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(h.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=window.__ContextBridge__).sendSync.apply(t,a(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],i(r),!1))}}),Object.defineProperty(h.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"refetchNaviInfo")}}),Object.defineProperty(h.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new g(this._appkey,e,t,l(this,c,"f"))}}),Object.defineProperty(h.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(h.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,l(this,s,"m",p).call(this,"connect",e,t,r,i)]}))}))}}),Object.defineProperty(h.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(h.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(h.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(h.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(h.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(h.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"recallMsg",e,t)}}),Object.defineProperty(h.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(h.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(h.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(h.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(h.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(h.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(h.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(h.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversation",e)}}),Object.defineProperty(h.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(h.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(h.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(h.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(h.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(h.prototype,"markRemoteConversationAsRead",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"markRemoteConversationAsRead",e,t,r)}}),Object.defineProperty(h.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(h.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(h.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(h.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(h.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(h.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(h.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(h.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(h.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n,o){var i=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[a]=function(t){try{o(t)}catch(t){i.logger.error(e.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:"sendMsgBefore"}))}}),l(this,s,"m",p).call(this,"sendMessage",t,r,n,a)}}),Object.defineProperty(h.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(h.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(h.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(h.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(h.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(h.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,l(this,s,"m",p).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(h.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(h.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(h.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"quitChatroom",e,t)}}),Object.defineProperty(h.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(h.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(h.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(h.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(h.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(h.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(h.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(h.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(h.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return l(this,s,"m",p).call(this,"getFileToken",e,t,r,n,o,i)}}),Object.defineProperty(h.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(h.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(h.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(h.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUserStatus",e)}}),Object.defineProperty(h.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"clearConversations",e,t)}}),Object.defineProperty(h.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"addToBlacklist",e)}}),Object.defineProperty(h.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(h.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getBlacklist")}}),Object.defineProperty(h.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(h.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"insertMessage",e,t)}}),Object.defineProperty(h.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(h.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(h.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(h.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(h.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(h.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(h.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"clearLocalMessages",e)}}),Object.defineProperty(h.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getMessage",e)}}),Object.defineProperty(h.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(h.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(h.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(h.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(h.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(h.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(h.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(h.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(h.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(h.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(h.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(h.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(h.prototype,"clearAllSGUnreadCount",{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,s,"m",p).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(h.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(h.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(h.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,i){return n(this,void 0,void 0,(function(){var n;return o(this,(function(o){switch(o.label){case 0:return n=Array.prototype.slice.call(new Uint8Array(i)),[4,l(this,s,"m",p).call(this,"rtcSignaling",e,t,r,n)];case 1:return[2,o.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(h.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(h.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"createTag",e)}}),Object.defineProperty(h.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"removeTag",e)}}),Object.defineProperty(h.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"updateTag",e)}}),Object.defineProperty(h.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getTagList")}}),Object.defineProperty(h.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(h.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(h.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(h.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(h.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(h.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(h.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getTagsForConversation",e)}}),Object.defineProperty(h.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"clearLocalData")}}),Object.defineProperty(h.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(h.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(h.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUltraGroupList",e)}}),Object.defineProperty(h.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getBlockedUGList")}}),Object.defineProperty(h.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(h.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(h.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(h.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(h.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(h.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(h.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(h.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(h.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(h.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,l(this,s,"m",p).call(this,"getOSInfo")]}))}))}}),Object.defineProperty(h.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,e.ok({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(h.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,l(this,s,"m",p).call(this,"getMainProcessInfo")]}))}))}}),Object.defineProperty(h.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setProxy",e)}}),Object.defineProperty(h.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getProxy")}}),Object.defineProperty(h.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"testProxy",e,t)}}),Object.defineProperty(h.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(h.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(h.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(h.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(h.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(h.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(h.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(h.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversations",e)}}),Object.defineProperty(h.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(h.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUserProfiles",e)}}),Object.defineProperty(h.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getMyUserProfile")}}),Object.defineProperty(h.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(h.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(h.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(h.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,l(this,s,"m",p).call(this,"createGroup",e,t,r,i)]}))}))}}),Object.defineProperty(h.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(h.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getGroupsInfo",e)}}),Object.defineProperty(h.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(h.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"quitGroup",e,t)}}),Object.defineProperty(h.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"dismissGroup",e)}}),Object.defineProperty(h.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(h.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(h.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(h.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(h.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(h.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(h.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"joinGroup",e)}}),Object.defineProperty(h.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(h.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"memberInviteResponse",e)}}),Object.defineProperty(h.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(h.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(h.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(h.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getJoinedGroups",e)}}),Object.defineProperty(h.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(h.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(h.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getGroupFollows",e)}}),Object.defineProperty(h.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"addFriend",e,t,r)}}),Object.defineProperty(h.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"deleteFriends",e,t)}}),Object.defineProperty(h.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(h.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(h.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(h.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"checkFriends",e,t)}}),Object.defineProperty(h.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getFriends",e,t)}}),Object.defineProperty(h.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(h.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getFriendsInfo",e)}}),Object.defineProperty(h.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(h.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(h.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getFriendAddPermission")}}),Object.defineProperty(h.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,s,"m",p).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(h.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,s,"m",p).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(h.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,s,"m",p).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(h.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getStatsUrlList")}}),Object.defineProperty(h.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(h.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(h.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(h.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(h.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(h.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(h.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,s,"m",p).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(h.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(h.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getTranslationLanguage")}}),Object.defineProperty(h.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(h.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(h.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(h.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,i,a){return n(this,void 0,void 0,(function(){var n,u,c,b=this;return o(this,(function(o){return u=(n=function(t,r){var n=[t,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return b._resolveMaps[n]=function(n){try{r(n)}catch(r){b.logger.error(e.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==r?void 0:r.stack,pos:t}))}},n})("localMessageBlock",a),c=n("remoteMessageBlock",i),[2,l(this,s,"m",p).call(this,"refreshReferenceMessageWithParams",t,r,c,u)]}))}))}}),Object.defineProperty(h.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"syncRemoteConversations")}}),Object.defineProperty(h.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(h.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(h.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(h.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(h.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,s,"m",p).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(h.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(h.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(h.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(h.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(h.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(h.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,s,"m",p).call(this,"getUnreadMentionMeConversationList",e,t)}}),Object.defineProperty(h.prototype,"getAllRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,s,"m",p).call(this,"getAllRobots")}}),Object.defineProperty(h.prototype,"getConversationsIncludingRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,s,"m",p).call(this,"getConversationsIncludingRobots",e)}}),h}(e.BasicEngine);c=new WeakMap,b=new WeakMap,f=new WeakMap,s=new WeakSet,p=function(t){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var l=e.promiseWithResolvers(),u=l.promise,s=l.resolve,c=d(t);return this._resolveMaps[c]=function(t){var r=t.code,n=t.msg,o=t.data;s(e.RCResult.from(r,n,o))},(r=window.__ContextBridge__).send.apply(r,a(["__RC_CHANNEL_CALL_MAIN__",c,t],i(n),!1)),u};exports.initRenderer=function(){window.RCCppEngine=v};
package/renderer.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import{createLogDBProxy as e,BasicLogger as t,VersionManage as r,RCConnectionStatus as n,LogTagId as o,runtime as i,BasicEngine as a,promiseWithResolvers as l,RCResult as u,ErrorCode as s,fail as c}from"@rongcloud/engine";
1
+ import{createLogDBProxy as e,BasicLogger as t,VersionManage as r,RCConnectionStatus as n,LogTagId as i,runtime as o,BasicEngine as a,promiseWithResolvers as l,RCResult as u,ok as s,fail as c,ErrorCode as b}from"@rongcloud/engine";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var b=function(e,t){return b=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])},b(e,t)};function f(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}b(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 g(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 h(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 y(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 d(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)}function m(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");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}var v,w,P,O,j,C=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 g(this,(function(e){return[2,{logs:[]}]}))}))})),l.setLogWriter((function(e){i(e)})),a=t.call(this,r,n,o,l)||this}return f(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(),U=function(e){var t=Date.now();return M!==t&&(M=t,_=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,_++].join("__")};r.add("electron-renderer","5.32.0-c-dq.3");var T=function(){return p(void 0,void 0,void 0,(function(){return g(this,(function(e){return[2,c(s.NOT_SUPPORT,"Not support")]}))}))},R=function(e){function t(t,r){var a,l=e.call(this,t,r)||this;v.add(l),Object.defineProperty(l,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),w.set(l,void 0),P.set(l,void 0),O.set(l,!1),Object.defineProperty(l,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(l,"loadConversationList",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(l,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(l,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(l,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(l,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(l,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(l,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:T});var u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},s=m(l,P,new C(r.appkey,"IMLib","IM",u),"f");return m(l,w,u,"f"),s.setOutputLevel(r.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=t[r];if(u){switch(r){case"ultraGroupEnable":m(l,O,!0,"f");break;case"onNaviDataChange":l._cache.naviInfo=i[0];break;case"onRTCDataChange":return void l._receiveRtcKv(new Uint8Array(i[0]));case"onConnected":m(l,O,!1,"f"),l._cache=i[1];break;case"onSuspend":m(l,O,!1,"f"),l._setConnectionStatus(n.SUSPENDED);break;case"onDisconnected":m(l,O,!1,"f"),l._setConnectionStatus(n.DISCONNECTED);break;case"onConnecting":l._setConnectionStatus(n.CONNECTING)}u.apply(void 0,y([],h(i),!1))}else l.logger.error(o.L_UNSUPPORT_NTF_FROM_MAIN_E,r)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=l._resolveMaps[t];o&&(delete l._resolveMaps[t],o.apply(void 0,y([],h(r),!1)))})),l._options.httpInMainProcess&&(i.httpReq=l.sendHTTPRequest.bind(l)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:r.navigators,areaCode:r.areaCode,logServerUrl:r.logServerUrl,environment:r.environment,enableReadReceiptStorage:r.enableReadReceiptStorage,useNaviV2:null!==(a=r.useNaviV2)&&void 0!==a&&a}),l._cache=l._callMainSync("getMainProcessCache"),l}return f(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,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logger",{get:function(){return d(this,P,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ugSynced",{get:function(){return d(this,O,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e,e===n.DISCONNECTED&&(this._cache.crtUserId="")}}),Object.defineProperty(t.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),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=U(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,y(["__RC_CHANNEL_CALL_MAIN__",i,e],h(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,y(["__RC_CHANNEL_SEND_2_MAIN__",e],h(r),!1))}}),Object.defineProperty(t.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return this.logger.info(o.L_CALL_MAIN_SYNC_O,e),(t=window.__ContextBridge__).sendSync.apply(t,y(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],h(r),!1))}}),Object.defineProperty(t.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"refetchNaviInfo")}}),Object.defineProperty(t.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new C(this._appkey,e,t,d(this,w,"f"))}}),Object.defineProperty(t.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),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 g(this,(function(o){return[2,d(this,v,"m",j).call(this,"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,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(t.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getConversation",e)}}),Object.defineProperty(t.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(t.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"markRemoteConversationAsRead",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"markRemoteConversationAsRead",e,t,r)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return d(this,v,"m",j).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(t.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(t.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){var i=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return n&&(this._resolveMaps[a]=function(e){try{n(e)}catch(e){i.logger.error(o.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),d(this,v,"m",j).call(this,"sendMessage",e,t,r,a)}}),Object.defineProperty(t.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(t.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(t.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"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 g(this,(function(r){return[2,d(this,v,"m",j).call(this,"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,n){return d(this,v,"m",j).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(t.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"quitChatroom",e,t)}}),Object.defineProperty(t.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return d(this,v,"m",j).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(t.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(t.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return d(this,v,"m",j).call(this,"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 d(this,v,"m",j).call(this,"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 d(this,v,"m",j).call(this,"getUserStatus",e)}}),Object.defineProperty(t.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"clearConversations",e,t)}}),Object.defineProperty(t.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"addToBlacklist",e)}}),Object.defineProperty(t.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(t.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getBlacklist")}}),Object.defineProperty(t.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(t.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"insertMessage",e,t)}}),Object.defineProperty(t.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(t.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(t.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(t.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(t.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"clearLocalMessages",e)}}),Object.defineProperty(t.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getMessage",e)}}),Object.defineProperty(t.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"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 d(this,v,"m",j).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(t.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(t.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return d(this,v,"m",j).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(t.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(t.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(t.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return d(this,v,"m",j).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(t.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return g(this,(function(e){return[2,d(this,v,"m",j).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(t.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),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;return g(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,d(this,v,"m",j).call(this,"rtcSignaling",e,t,r,o)];case 1:return[2,i.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(t.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(t.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"createTag",e)}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"removeTag",e)}}),Object.defineProperty(t.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"updateTag",e)}}),Object.defineProperty(t.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getTagList")}}),Object.defineProperty(t.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(t.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(t.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getTagsForConversation",e)}}),Object.defineProperty(t.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"clearLocalData")}}),Object.defineProperty(t.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(t.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getUltraGroupList",e)}}),Object.defineProperty(t.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getBlockedUGList")}}),Object.defineProperty(t.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(t.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(t.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(t.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(t.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(t.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p(this,void 0,void 0,(function(){return g(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 g(this,(function(e){return[2,{code:s.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 g(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(t.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"setProxy",e)}}),Object.defineProperty(t.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getProxy")}}),Object.defineProperty(t.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"testProxy",e,t)}}),Object.defineProperty(t.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"setCheckChatRoomDuplicateMessage",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 d(this,v,"m",j).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(t.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(t.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(t.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(t.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getConversations",e)}}),Object.defineProperty(t.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(t.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getUserProfiles",e)}}),Object.defineProperty(t.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getMyUserProfile")}}),Object.defineProperty(t.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(t.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(t.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"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 g(this,(function(o){return[2,d(this,v,"m",j).call(this,"createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(t.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getGroupsInfo",e)}}),Object.defineProperty(t.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"quitGroup",e,t)}}),Object.defineProperty(t.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"dismissGroup",e)}}),Object.defineProperty(t.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return d(this,v,"m",j).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(t.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(t.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return d(this,v,"m",j).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"joinGroup",e)}}),Object.defineProperty(t.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(t.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"memberInviteResponse",e)}}),Object.defineProperty(t.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(t.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(t.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getJoinedGroups",e)}}),Object.defineProperty(t.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(t.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getGroupFollows",e)}}),Object.defineProperty(t.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"addFriend",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"deleteFriends",e,t)}}),Object.defineProperty(t.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(t.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(t.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(t.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"checkFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getFriendsInfo",e)}}),Object.defineProperty(t.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(t.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(t.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getFriendAddPermission")}}),Object.defineProperty(t.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return p(this,void 0,void 0,(function(){return g(this,(function(t){return[2,d(this,v,"m",j).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 g(this,(function(e){return[2,d(this,v,"m",j).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 g(this,(function(e){return[2,d(this,v,"m",j).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(t.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return d(this,v,"m",j).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(t.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(t.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getTranslationLanguage")}}),Object.defineProperty(t.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(t.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(t.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(t.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return p(this,void 0,void 0,(function(){var i,a,l,u=this;return g(this,(function(s){return a=(i=function(e,t){var r=[e,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return u._resolveMaps[r]=function(r){try{t(r)}catch(t){u.logger.error(o.L_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:e}))}},r})("localMessageBlock",n),l=i("remoteMessageBlock",r),[2,d(this,v,"m",j).call(this,"refreshReferenceMessageWithParams",e,t,l,a)]}))}))}}),Object.defineProperty(t.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"syncRemoteConversations")}}),Object.defineProperty(t.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(t.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(t.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(t.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return d(this,v,"m",j).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(t.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(t.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return d(this,v,"m",j).call(this,"getUnreadMentionMeConversationList",e,t)}}),Object.defineProperty(t.prototype,"getAllRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(){return d(this,v,"m",j).call(this,"getAllRobots")}}),Object.defineProperty(t.prototype,"getConversationsIncludingRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return d(this,v,"m",j).call(this,"getConversationsIncludingRobots",e)}}),t}(a);w=new WeakMap,P=new WeakMap,O=new WeakMap,v=new WeakSet,j=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=l(),i=o.promise,a=o.resolve,s=U(e);return this._resolveMaps[s]=function(e){var t=e.code,r=e.msg,n=e.data;a(u.from(t,r,n))},(t=window.__ContextBridge__).send.apply(t,y(["__RC_CHANNEL_CALL_MAIN__",s,e],h(r),!1)),i};var S=function(){window.RCCppEngine=R};export{S as initRenderer};
15
+ ***************************************************************************** */var f=function(e,t){return f=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])},f(e,t)};function p(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}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function g(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function l(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(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 h(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function m(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)}function v(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}var w,P,O,j,C,_=function(t){function r(r,n,i,o){var a=this,l=e();return l.setLogReader((function(e,t,r,n){return g(a,void 0,void 0,(function(){return h(this,(function(e){return[2,{logs:[]}]}))}))})),l.setLogWriter((function(e){o(e)})),a=t.call(this,r,n,i,l)||this}return p(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),M=0,U=Date.now(),T=function(e){var t=Date.now();return U!==t&&(U=t,M=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,M++].join("__")};r.add("electron-renderer","5.34.0-alpha.1");var R=function(){return g(void 0,void 0,void 0,(function(){return h(this,(function(e){return[2,c(b.NOT_SUPPORT,"Not support")]}))}))},S=function(e){function t(t,r){var a,l=e.call(this,t,r)||this;w.add(l),Object.defineProperty(l,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),P.set(l,void 0),O.set(l,void 0),j.set(l,!1),Object.defineProperty(l,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(l,"loadConversationList",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(l,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(l,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(l,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(l,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(l,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(l,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:R});var u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},s=v(l,O,new _(r.appkey,"IMLib","IM",u),"f");return v(l,P,u,"f"),s.setOutputLevel(r.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var u=t[r];if(u){switch(r){case"ultraGroupEnable":v(l,j,!0,"f");break;case"onNaviDataChange":l._cache.naviInfo=o[0];break;case"onRTCDataChange":return void l._receiveRtcKv(new Uint8Array(o[0]));case"onConnected":v(l,j,!1,"f"),l._cache=o[1];break;case"onSuspend":v(l,j,!1,"f"),l._setConnectionStatus(n.SUSPENDED);break;case"onDisconnected":v(l,j,!1,"f"),l._setConnectionStatus(n.DISCONNECTED);break;case"onConnecting":l._setConnectionStatus(n.CONNECTING)}u.apply(void 0,d([],y(o),!1))}else l.logger.error(i.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 i=l._resolveMaps[t];i&&(delete l._resolveMaps[t],i.apply(void 0,d([],y(r),!1)))})),l._options.httpInMainProcess&&(o.httpReq=l.sendHTTPRequest.bind(l)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:r.navigators,areaCode:r.areaCode,logServerUrl:r.logServerUrl,environment:r.environment,enableReadReceiptStorage:r.enableReadReceiptStorage,useNaviV2:null!==(a=r.useNaviV2)&&void 0!==a&&a}),l._cache=l._callMainSync("getMainProcessCache"),l}return p(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,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logger",{get:function(){return m(this,O,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ugSynced",{get:function(){return m(this,j,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e,e===n.DISCONNECTED&&(this._cache.crtUserId="")}}),Object.defineProperty(t.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),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 i,o=T(e);t._resolveMaps[o]=n,(i=window.__ContextBridge__).send.apply(i,d(["__RC_CHANNEL_CALL_MAIN__",o,e],y(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],y(r),!1))}}),Object.defineProperty(t.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=window.__ContextBridge__).sendSync.apply(t,d(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],y(r),!1))}}),Object.defineProperty(t.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"refetchNaviInfo")}}),Object.defineProperty(t.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new _(this._appkey,e,t,m(this,P,"f"))}}),Object.defineProperty(t.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return g(this,void 0,void 0,(function(){return h(this,(function(i){return[2,m(this,w,"m",C).call(this,"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,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(t.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getConversation",e)}}),Object.defineProperty(t.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(t.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"markRemoteConversationAsRead",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"markRemoteConversationAsRead",e,t,r)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,w,"m",C).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(t.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(t.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){var o=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return n&&(this._resolveMaps[a]=function(e){try{n(e)}catch(e){o.logger.error(i.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),m(this,w,"m",C).call(this,"sendMessage",e,t,r,a)}}),Object.defineProperty(t.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(t.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(t.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(t.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return g(this,void 0,void 0,(function(){return h(this,(function(r){return[2,m(this,w,"m",C).call(this,"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,n){return m(this,w,"m",C).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(t.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"quitChatroom",e,t)}}),Object.defineProperty(t.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,w,"m",C).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(t.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(t.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,i,o){return m(this,w,"m",C).call(this,"getFileToken",e,t,r,n,i,o)}}),Object.defineProperty(t.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,w,"m",C).call(this,"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 m(this,w,"m",C).call(this,"getUserStatus",e)}}),Object.defineProperty(t.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"clearConversations",e,t)}}),Object.defineProperty(t.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"addToBlacklist",e)}}),Object.defineProperty(t.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(t.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getBlacklist")}}),Object.defineProperty(t.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(t.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"insertMessage",e,t)}}),Object.defineProperty(t.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(t.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(t.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(t.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(t.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"clearLocalMessages",e)}}),Object.defineProperty(t.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getMessage",e)}}),Object.defineProperty(t.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"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 m(this,w,"m",C).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(t.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(t.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,w,"m",C).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(t.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(t.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(t.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,w,"m",C).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(t.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,m(this,w,"m",C).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(t.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),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 g(this,void 0,void 0,(function(){var i;return h(this,(function(o){switch(o.label){case 0:return i=Array.prototype.slice.call(new Uint8Array(n)),[4,m(this,w,"m",C).call(this,"rtcSignaling",e,t,r,i)];case 1:return[2,o.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(t.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(t.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"createTag",e)}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"removeTag",e)}}),Object.defineProperty(t.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"updateTag",e)}}),Object.defineProperty(t.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getTagList")}}),Object.defineProperty(t.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(t.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(t.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getTagsForConversation",e)}}),Object.defineProperty(t.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"clearLocalData")}}),Object.defineProperty(t.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(t.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getUltraGroupList",e)}}),Object.defineProperty(t.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getBlockedUGList")}}),Object.defineProperty(t.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(t.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(t.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(t.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(t.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(t.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,m(this,w,"m",C).call(this,"getOSInfo")]}))}))}}),Object.defineProperty(t.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,s({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 g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,m(this,w,"m",C).call(this,"getMainProcessInfo")]}))}))}}),Object.defineProperty(t.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"setProxy",e)}}),Object.defineProperty(t.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getProxy")}}),Object.defineProperty(t.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"testProxy",e,t)}}),Object.defineProperty(t.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"setCheckChatRoomDuplicateMessage",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 m(this,w,"m",C).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(t.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(t.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(t.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(t.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getConversations",e)}}),Object.defineProperty(t.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(t.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getUserProfiles",e)}}),Object.defineProperty(t.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getMyUserProfile")}}),Object.defineProperty(t.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(t.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(t.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(t.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return g(this,void 0,void 0,(function(){return h(this,(function(i){return[2,m(this,w,"m",C).call(this,"createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(t.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getGroupsInfo",e)}}),Object.defineProperty(t.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"quitGroup",e,t)}}),Object.defineProperty(t.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"dismissGroup",e)}}),Object.defineProperty(t.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,w,"m",C).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(t.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(t.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,w,"m",C).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"joinGroup",e)}}),Object.defineProperty(t.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(t.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"memberInviteResponse",e)}}),Object.defineProperty(t.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(t.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(t.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getJoinedGroups",e)}}),Object.defineProperty(t.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(t.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getGroupFollows",e)}}),Object.defineProperty(t.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"addFriend",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"deleteFriends",e,t)}}),Object.defineProperty(t.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(t.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(t.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(t.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"checkFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getFriendsInfo",e)}}),Object.defineProperty(t.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(t.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(t.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getFriendAddPermission")}}),Object.defineProperty(t.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return g(this,void 0,void 0,(function(){return h(this,(function(t){return[2,m(this,w,"m",C).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(t.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,m(this,w,"m",C).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,m(this,w,"m",C).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(t.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,w,"m",C).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(t.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(t.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getTranslationLanguage")}}),Object.defineProperty(t.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(t.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(t.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(t.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return g(this,void 0,void 0,(function(){var o,a,l,u=this;return h(this,(function(s){return a=(o=function(e,t){var r=[e,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return u._resolveMaps[r]=function(r){try{t(r)}catch(t){u.logger.error(i.L_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:e}))}},r})("localMessageBlock",n),l=o("remoteMessageBlock",r),[2,m(this,w,"m",C).call(this,"refreshReferenceMessageWithParams",e,t,l,a)]}))}))}}),Object.defineProperty(t.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"syncRemoteConversations")}}),Object.defineProperty(t.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(t.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(t.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(t.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,w,"m",C).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(t.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(t.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,w,"m",C).call(this,"getUnreadMentionMeConversationList",e,t)}}),Object.defineProperty(t.prototype,"getAllRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,w,"m",C).call(this,"getAllRobots")}}),Object.defineProperty(t.prototype,"getConversationsIncludingRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,w,"m",C).call(this,"getConversationsIncludingRobots",e)}}),t}(a);P=new WeakMap,O=new WeakMap,j=new WeakMap,w=new WeakSet,C=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=l(),o=i.promise,a=i.resolve,s=T(e);return this._resolveMaps[s]=function(e){var t=e.code,r=e.msg,n=e.data;a(u.from(t,r,n))},(t=window.__ContextBridge__).send.apply(t,d(["__RC_CHANNEL_CALL_MAIN__",s,e],y(r),!1)),o};var L=function(){window.RCCppEngine=S};export{L as initRenderer};