@rongcloud/electron-renderer 5.32.0-c-rtc-alpha.2 → 5.32.0-c-rtc-alpha.3
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/index.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/renderer.cjs.js +1 -1
- package/renderer.esm.js +1 -1
package/index.esm.js
CHANGED
|
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var 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(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 h(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 y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function 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)}var v,w,P,O=function(e){function t(t,n,o,i){var a=this,l=r();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){i(e)})),a=e.call(this,t,n,o,l)||this}return p(t,e),Object.defineProperty(t.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(t.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),t}(n),j=0,C=Date.now(),_=function(e){var t=Date.now();return C!==t&&(C=t,j=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,j++].join("__")};o.add("electron-renderer","5.32.0-c-rtc-alpha.2");var M=function(){return g(void 0,void 0,void 0,(function(){return h(this,(function(e){return[2,b(s.NOT_SUPPORT,"Not support")]}))}))},U=function(e){function t(t,r){var n,o=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},s=new O(r.appkey,"IMLib","IM",u);return o=e.call(this,t,r,s)||this,v.add(o),Object.defineProperty(o,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),w.set(o,void 0),Object.defineProperty(o,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(o,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(o,w,u,"f"),s.setOutputLevel(r.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var n=[],l=2;l<arguments.length;l++)n[l-2]=arguments[l];var u=t[r];if(u){switch(r){case"onNaviDataChange":o._cache.naviInfo=n[0];break;case"onRTCDataChange":return void o._receiveRtcKv(new Uint8Array(n[0]));case"onConnected":o._cache=n[0];break;case"onSuspend":o._setConnectionStatus(a.SUSPENDED);break;case"onDisconnected":o._setConnectionStatus(a.DISCONNECTED);break;case"onConnecting":o._setConnectionStatus(a.CONNECTING)}u.apply(void 0,d([],y(n),!1))}else o.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=o._resolveMaps[t];i&&(delete o._resolveMaps[t],i.apply(void 0,d([],y(r),!1)))})),o._options.httpInMainProcess&&(l.httpReq=o.sendHTTPRequest.bind(o)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:r.navigators,areaCode:r.areaCode,logServerUrl:r.logServerUrl,environment:r.environment,enableReadReceiptStorage:r.enableReadReceiptStorage,useNaviV2:null!==(n=r.useNaviV2)&&void 0!==n&&n}),o._cache=o._callMainSync("getMainProcessCache"),o}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,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(t.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(t.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(t.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,i=_(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,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 this.logger.info(i.L_CALL_MAIN_SYNC_O,e),(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 this._callMain("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 O(this._appkey,e,t,m(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 g(this,void 0,void 0,(function(){return h(this,(function(o){return[2,m(this,v,"m",P).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,v,"m",P).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(t.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversation",e)}}),Object.defineProperty(t.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(t.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(t.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(t.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"quitChatroom",e)}}),Object.defineProperty(t.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(t.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return m(this,v,"m",P).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 m(this,v,"m",P).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,v,"m",P).call(this,"getUserStatus",e)}}),Object.defineProperty(t.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"clearConversations",e,t)}}),Object.defineProperty(t.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"addToBlacklist",e)}}),Object.defineProperty(t.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(t.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getBlacklist")}}),Object.defineProperty(t.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(t.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"insertMessage",e,t)}}),Object.defineProperty(t.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(t.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(t.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(t.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(t.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearLocalMessages",e)}}),Object.defineProperty(t.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getMessage",e)}}),Object.defineProperty(t.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(t.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(t.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(t.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).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 o;return h(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,m(this,v,"m",P).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 m(this,v,"m",P).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(t.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"createTag",e)}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"removeTag",e)}}),Object.defineProperty(t.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateTag",e)}}),Object.defineProperty(t.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getTagList")}}),Object.defineProperty(t.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(t.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(t.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getTagsForConversation",e)}}),Object.defineProperty(t.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"clearLocalData")}}),Object.defineProperty(t.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(t.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUltraGroupList",e)}}),Object.defineProperty(t.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getBlockedUGList")}}),Object.defineProperty(t.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(t.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,this._callMain("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,{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 g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(t.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setProxy",e)}}),Object.defineProperty(t.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getProxy")}}),Object.defineProperty(t.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"testProxy",e,t)}}),Object.defineProperty(t.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(t.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(t.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(t.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(t.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversations",e)}}),Object.defineProperty(t.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(t.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUserProfiles",e)}}),Object.defineProperty(t.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getMyUserProfile")}}),Object.defineProperty(t.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(t.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(t.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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(o){return[2,m(this,v,"m",P).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,v,"m",P).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getGroupsInfo",e)}}),Object.defineProperty(t.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"quitGroup",e,t)}}),Object.defineProperty(t.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"dismissGroup",e)}}),Object.defineProperty(t.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"joinGroup",e)}}),Object.defineProperty(t.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(t.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"memberInviteResponse",e)}}),Object.defineProperty(t.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(t.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(t.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getJoinedGroups",e)}}),Object.defineProperty(t.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(t.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getGroupFollows",e)}}),Object.defineProperty(t.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"addFriend",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteFriends",e,t)}}),Object.defineProperty(t.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(t.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(t.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(t.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"checkFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFriendsInfo",e)}}),Object.defineProperty(t.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(t.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(t.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(t.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(t.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getTranslationLanguage")}}),Object.defineProperty(t.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(t.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(t.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"refreshReferenceMessageWithParams",e,t,l,a)]}))}))}}),Object.defineProperty(t.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"syncRemoteConversations")}}),Object.defineProperty(t.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(t.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(t.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(t.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(t.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(t.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadMentionMeConversationList",e,t)}}),t}(u);w=new WeakMap,v=new WeakSet,P=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=_(e);t._resolveMaps[i]=function(e){var t=e.code,r=e.msg,o=e.data;t!==s.SUCCESS?n(b(t,r,o)):n(c(o))},(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,e],y(r),!1))}))};var T={on:function(t,r){e.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,d([e],y(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.send.apply(e,d([t],y(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.sendSync.apply(e,d([t],y(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,d([],y(r),!1))}};window&&(window.RCCppEngine=U,window.__ContextBridge__=T);var R=function(){t&&t.exposeInMainWorld("__ContextBridge__",T)};export{U as RCCppEngine,R as initContextBridge};
|
|
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(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 h(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 y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function 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)}var v,w,P,O=function(e){function t(t,n,o,i){var a=this,l=r();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){i(e)})),a=e.call(this,t,n,o,l)||this}return p(t,e),Object.defineProperty(t.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(t.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),t}(n),j=0,C=Date.now(),_=function(e){var t=Date.now();return C!==t&&(C=t,j=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,j++].join("__")};o.add("electron-renderer","5.32.0-c-rtc-alpha.3");var M=function(){return g(void 0,void 0,void 0,(function(){return h(this,(function(e){return[2,b(s.NOT_SUPPORT,"Not support")]}))}))},U=function(e){function t(t,r){var n,o=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},s=new O(r.appkey,"IMLib","IM",u);return o=e.call(this,t,r,s)||this,v.add(o),Object.defineProperty(o,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),w.set(o,void 0),Object.defineProperty(o,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(o,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(o,w,u,"f"),s.setOutputLevel(r.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var n=[],l=2;l<arguments.length;l++)n[l-2]=arguments[l];var u=t[r];if(u){switch(r){case"onNaviDataChange":o._cache.naviInfo=n[0];break;case"onRTCDataChange":return void o._receiveRtcKv(new Uint8Array(n[0]));case"onConnected":o._cache=n[0];break;case"onSuspend":o._setConnectionStatus(a.SUSPENDED);break;case"onDisconnected":o._setConnectionStatus(a.DISCONNECTED);break;case"onConnecting":o._setConnectionStatus(a.CONNECTING)}u.apply(void 0,d([],y(n),!1))}else o.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=o._resolveMaps[t];i&&(delete o._resolveMaps[t],i.apply(void 0,d([],y(r),!1)))})),o._options.httpInMainProcess&&(l.httpReq=o.sendHTTPRequest.bind(o)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:r.navigators,areaCode:r.areaCode,logServerUrl:r.logServerUrl,environment:r.environment,enableReadReceiptStorage:r.enableReadReceiptStorage,useNaviV2:null!==(n=r.useNaviV2)&&void 0!==n&&n}),o._cache=o._callMainSync("getMainProcessCache"),o}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,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(t.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(t.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(t.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,i=_(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,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 this.logger.info(i.L_CALL_MAIN_SYNC_O,e),(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 this._callMain("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 O(this._appkey,e,t,m(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 g(this,void 0,void 0,(function(){return h(this,(function(o){return[2,m(this,v,"m",P).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,v,"m",P).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(t.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversation",e)}}),Object.defineProperty(t.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(t.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(t.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(t.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"quitChatroom",e)}}),Object.defineProperty(t.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(t.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return m(this,v,"m",P).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 m(this,v,"m",P).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,v,"m",P).call(this,"getUserStatus",e)}}),Object.defineProperty(t.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"clearConversations",e,t)}}),Object.defineProperty(t.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"addToBlacklist",e)}}),Object.defineProperty(t.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(t.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getBlacklist")}}),Object.defineProperty(t.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(t.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"insertMessage",e,t)}}),Object.defineProperty(t.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(t.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(t.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(t.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(t.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearLocalMessages",e)}}),Object.defineProperty(t.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getMessage",e)}}),Object.defineProperty(t.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(t.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(t.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(t.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).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 o;return h(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,m(this,v,"m",P).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 m(this,v,"m",P).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(t.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"createTag",e)}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"removeTag",e)}}),Object.defineProperty(t.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateTag",e)}}),Object.defineProperty(t.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getTagList")}}),Object.defineProperty(t.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(t.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(t.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getTagsForConversation",e)}}),Object.defineProperty(t.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"clearLocalData")}}),Object.defineProperty(t.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(t.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUltraGroupList",e)}}),Object.defineProperty(t.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getBlockedUGList")}}),Object.defineProperty(t.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(t.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,this._callMain("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,{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 g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(t.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setProxy",e)}}),Object.defineProperty(t.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getProxy")}}),Object.defineProperty(t.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"testProxy",e,t)}}),Object.defineProperty(t.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(t.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(t.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(t.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(t.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversations",e)}}),Object.defineProperty(t.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(t.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUserProfiles",e)}}),Object.defineProperty(t.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getMyUserProfile")}}),Object.defineProperty(t.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(t.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(t.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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(o){return[2,m(this,v,"m",P).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,v,"m",P).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getGroupsInfo",e)}}),Object.defineProperty(t.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"quitGroup",e,t)}}),Object.defineProperty(t.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"dismissGroup",e)}}),Object.defineProperty(t.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"joinGroup",e)}}),Object.defineProperty(t.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(t.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"memberInviteResponse",e)}}),Object.defineProperty(t.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(t.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(t.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getJoinedGroups",e)}}),Object.defineProperty(t.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(t.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getGroupFollows",e)}}),Object.defineProperty(t.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"addFriend",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteFriends",e,t)}}),Object.defineProperty(t.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(t.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(t.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(t.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"checkFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFriendsInfo",e)}}),Object.defineProperty(t.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(t.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(t.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(t.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(t.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getTranslationLanguage")}}),Object.defineProperty(t.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(t.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(t.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"refreshReferenceMessageWithParams",e,t,l,a)]}))}))}}),Object.defineProperty(t.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"syncRemoteConversations")}}),Object.defineProperty(t.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(t.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(t.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(t.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(t.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(t.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadMentionMeConversationList",e,t)}}),t}(u);w=new WeakMap,v=new WeakSet,P=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=_(e);t._resolveMaps[i]=function(e){var t=e.code,r=e.msg,o=e.data;t!==s.SUCCESS?n(b(t,r,o)):n(c(o))},(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,e],y(r),!1))}))};var T={on:function(t,r){e.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,d([e],y(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.send.apply(e,d([t],y(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.sendSync.apply(e,d([t],y(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,d([],y(r),!1))}};window&&(window.RCCppEngine=U,window.__ContextBridge__=T);var R=function(){t&&t.exposeInMainWorld("__ContextBridge__",T)};export{U as RCCppEngine,R as initContextBridge};
|
package/index.mjs
CHANGED
|
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var 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(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 h(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 y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function 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)}var v,w,P,O=function(e){function t(t,n,o,i){var a=this,l=r();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){i(e)})),a=e.call(this,t,n,o,l)||this}return p(t,e),Object.defineProperty(t.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(t.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),t}(n),j=0,C=Date.now(),_=function(e){var t=Date.now();return C!==t&&(C=t,j=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,j++].join("__")};o.add("electron-renderer","5.32.0-c-rtc-alpha.2");var M=function(){return g(void 0,void 0,void 0,(function(){return h(this,(function(e){return[2,b(s.NOT_SUPPORT,"Not support")]}))}))},U=function(e){function t(t,r){var n,o=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},s=new O(r.appkey,"IMLib","IM",u);return o=e.call(this,t,r,s)||this,v.add(o),Object.defineProperty(o,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),w.set(o,void 0),Object.defineProperty(o,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(o,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(o,w,u,"f"),s.setOutputLevel(r.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var n=[],l=2;l<arguments.length;l++)n[l-2]=arguments[l];var u=t[r];if(u){switch(r){case"onNaviDataChange":o._cache.naviInfo=n[0];break;case"onRTCDataChange":return void o._receiveRtcKv(new Uint8Array(n[0]));case"onConnected":o._cache=n[0];break;case"onSuspend":o._setConnectionStatus(a.SUSPENDED);break;case"onDisconnected":o._setConnectionStatus(a.DISCONNECTED);break;case"onConnecting":o._setConnectionStatus(a.CONNECTING)}u.apply(void 0,d([],y(n),!1))}else o.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=o._resolveMaps[t];i&&(delete o._resolveMaps[t],i.apply(void 0,d([],y(r),!1)))})),o._options.httpInMainProcess&&(l.httpReq=o.sendHTTPRequest.bind(o)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:r.navigators,areaCode:r.areaCode,logServerUrl:r.logServerUrl,environment:r.environment,enableReadReceiptStorage:r.enableReadReceiptStorage,useNaviV2:null!==(n=r.useNaviV2)&&void 0!==n&&n}),o._cache=o._callMainSync("getMainProcessCache"),o}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,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(t.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(t.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(t.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,i=_(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,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 this.logger.info(i.L_CALL_MAIN_SYNC_O,e),(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 this._callMain("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 O(this._appkey,e,t,m(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 g(this,void 0,void 0,(function(){return h(this,(function(o){return[2,m(this,v,"m",P).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,v,"m",P).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(t.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversation",e)}}),Object.defineProperty(t.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(t.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(t.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(t.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"quitChatroom",e)}}),Object.defineProperty(t.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(t.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return m(this,v,"m",P).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 m(this,v,"m",P).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,v,"m",P).call(this,"getUserStatus",e)}}),Object.defineProperty(t.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"clearConversations",e,t)}}),Object.defineProperty(t.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"addToBlacklist",e)}}),Object.defineProperty(t.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(t.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getBlacklist")}}),Object.defineProperty(t.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(t.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"insertMessage",e,t)}}),Object.defineProperty(t.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(t.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(t.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(t.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(t.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearLocalMessages",e)}}),Object.defineProperty(t.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getMessage",e)}}),Object.defineProperty(t.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(t.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(t.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(t.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).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 o;return h(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,m(this,v,"m",P).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 m(this,v,"m",P).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(t.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"createTag",e)}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"removeTag",e)}}),Object.defineProperty(t.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateTag",e)}}),Object.defineProperty(t.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getTagList")}}),Object.defineProperty(t.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(t.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(t.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getTagsForConversation",e)}}),Object.defineProperty(t.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"clearLocalData")}}),Object.defineProperty(t.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(t.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUltraGroupList",e)}}),Object.defineProperty(t.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getBlockedUGList")}}),Object.defineProperty(t.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(t.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,this._callMain("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,{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 g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(t.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setProxy",e)}}),Object.defineProperty(t.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getProxy")}}),Object.defineProperty(t.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"testProxy",e,t)}}),Object.defineProperty(t.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(t.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(t.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(t.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(t.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversations",e)}}),Object.defineProperty(t.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(t.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUserProfiles",e)}}),Object.defineProperty(t.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getMyUserProfile")}}),Object.defineProperty(t.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(t.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(t.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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(o){return[2,m(this,v,"m",P).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,v,"m",P).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getGroupsInfo",e)}}),Object.defineProperty(t.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"quitGroup",e,t)}}),Object.defineProperty(t.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"dismissGroup",e)}}),Object.defineProperty(t.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"joinGroup",e)}}),Object.defineProperty(t.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(t.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"memberInviteResponse",e)}}),Object.defineProperty(t.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(t.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(t.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getJoinedGroups",e)}}),Object.defineProperty(t.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(t.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getGroupFollows",e)}}),Object.defineProperty(t.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"addFriend",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteFriends",e,t)}}),Object.defineProperty(t.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(t.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(t.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(t.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"checkFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFriendsInfo",e)}}),Object.defineProperty(t.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(t.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(t.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(t.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(t.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getTranslationLanguage")}}),Object.defineProperty(t.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(t.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(t.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"refreshReferenceMessageWithParams",e,t,l,a)]}))}))}}),Object.defineProperty(t.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"syncRemoteConversations")}}),Object.defineProperty(t.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(t.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(t.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(t.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(t.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(t.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadMentionMeConversationList",e,t)}}),t}(u);w=new WeakMap,v=new WeakSet,P=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=_(e);t._resolveMaps[i]=function(e){var t=e.code,r=e.msg,o=e.data;t!==s.SUCCESS?n(b(t,r,o)):n(c(o))},(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,e],y(r),!1))}))};var T={on:function(t,r){e.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,d([e],y(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.send.apply(e,d([t],y(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.sendSync.apply(e,d([t],y(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,d([],y(r),!1))}};window&&(window.RCCppEngine=U,window.__ContextBridge__=T);var R=function(){t&&t.exposeInMainWorld("__ContextBridge__",T)};export{U as RCCppEngine,R as initContextBridge};
|
|
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(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 h(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 y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function 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)}var v,w,P,O=function(e){function t(t,n,o,i){var a=this,l=r();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){i(e)})),a=e.call(this,t,n,o,l)||this}return p(t,e),Object.defineProperty(t.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(t.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),t}(n),j=0,C=Date.now(),_=function(e){var t=Date.now();return C!==t&&(C=t,j=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,j++].join("__")};o.add("electron-renderer","5.32.0-c-rtc-alpha.3");var M=function(){return g(void 0,void 0,void 0,(function(){return h(this,(function(e){return[2,b(s.NOT_SUPPORT,"Not support")]}))}))},U=function(e){function t(t,r){var n,o=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},s=new O(r.appkey,"IMLib","IM",u);return o=e.call(this,t,r,s)||this,v.add(o),Object.defineProperty(o,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),w.set(o,void 0),Object.defineProperty(o,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(o,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:M}),Object.defineProperty(o,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:M}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(o,w,u,"f"),s.setOutputLevel(r.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var n=[],l=2;l<arguments.length;l++)n[l-2]=arguments[l];var u=t[r];if(u){switch(r){case"onNaviDataChange":o._cache.naviInfo=n[0];break;case"onRTCDataChange":return void o._receiveRtcKv(new Uint8Array(n[0]));case"onConnected":o._cache=n[0];break;case"onSuspend":o._setConnectionStatus(a.SUSPENDED);break;case"onDisconnected":o._setConnectionStatus(a.DISCONNECTED);break;case"onConnecting":o._setConnectionStatus(a.CONNECTING)}u.apply(void 0,d([],y(n),!1))}else o.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=o._resolveMaps[t];i&&(delete o._resolveMaps[t],i.apply(void 0,d([],y(r),!1)))})),o._options.httpInMainProcess&&(l.httpReq=o.sendHTTPRequest.bind(o)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:r.navigators,areaCode:r.areaCode,logServerUrl:r.logServerUrl,environment:r.environment,enableReadReceiptStorage:r.enableReadReceiptStorage,useNaviV2:null!==(n=r.useNaviV2)&&void 0!==n&&n}),o._cache=o._callMainSync("getMainProcessCache"),o}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,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(t.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(t.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(t.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,i=_(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,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 this.logger.info(i.L_CALL_MAIN_SYNC_O,e),(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 this._callMain("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 O(this._appkey,e,t,m(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 g(this,void 0,void 0,(function(){return h(this,(function(o){return[2,m(this,v,"m",P).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,v,"m",P).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(t.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversation",e)}}),Object.defineProperty(t.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(t.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(t.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(t.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"quitChatroom",e)}}),Object.defineProperty(t.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(t.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return m(this,v,"m",P).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 m(this,v,"m",P).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,v,"m",P).call(this,"getUserStatus",e)}}),Object.defineProperty(t.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"clearConversations",e,t)}}),Object.defineProperty(t.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"addToBlacklist",e)}}),Object.defineProperty(t.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(t.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getBlacklist")}}),Object.defineProperty(t.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(t.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"insertMessage",e,t)}}),Object.defineProperty(t.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(t.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(t.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(t.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(t.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearLocalMessages",e)}}),Object.defineProperty(t.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getMessage",e)}}),Object.defineProperty(t.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(t.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(t.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(t.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).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 o;return h(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,m(this,v,"m",P).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 m(this,v,"m",P).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(t.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"createTag",e)}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"removeTag",e)}}),Object.defineProperty(t.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateTag",e)}}),Object.defineProperty(t.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getTagList")}}),Object.defineProperty(t.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(t.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(t.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getTagsForConversation",e)}}),Object.defineProperty(t.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"clearLocalData")}}),Object.defineProperty(t.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(t.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUltraGroupList",e)}}),Object.defineProperty(t.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getBlockedUGList")}}),Object.defineProperty(t.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(t.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,this._callMain("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,{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 g(this,void 0,void 0,(function(){return h(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(t.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setProxy",e)}}),Object.defineProperty(t.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getProxy")}}),Object.defineProperty(t.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"testProxy",e,t)}}),Object.defineProperty(t.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(t.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(t.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(t.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(t.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getConversations",e)}}),Object.defineProperty(t.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(t.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUserProfiles",e)}}),Object.defineProperty(t.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getMyUserProfile")}}),Object.defineProperty(t.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(t.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(t.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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(o){return[2,m(this,v,"m",P).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,v,"m",P).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getGroupsInfo",e)}}),Object.defineProperty(t.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"quitGroup",e,t)}}),Object.defineProperty(t.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"dismissGroup",e)}}),Object.defineProperty(t.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"joinGroup",e)}}),Object.defineProperty(t.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(t.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"memberInviteResponse",e)}}),Object.defineProperty(t.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(t.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(t.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getJoinedGroups",e)}}),Object.defineProperty(t.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(t.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getGroupFollows",e)}}),Object.defineProperty(t.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"addFriend",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteFriends",e,t)}}),Object.defineProperty(t.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(t.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(t.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(t.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"checkFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getFriendsInfo",e)}}),Object.defineProperty(t.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(t.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(t.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).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,v,"m",P).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,v,"m",P).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,v,"m",P).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).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,v,"m",P).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).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,v,"m",P).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(t.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(t.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getTranslationLanguage")}}),Object.defineProperty(t.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(t.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(t.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).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,v,"m",P).call(this,"refreshReferenceMessageWithParams",e,t,l,a)]}))}))}}),Object.defineProperty(t.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return m(this,v,"m",P).call(this,"syncRemoteConversations")}}),Object.defineProperty(t.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(t.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(t.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(t.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return m(this,v,"m",P).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(t.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(t.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return m(this,v,"m",P).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return m(this,v,"m",P).call(this,"getUnreadMentionMeConversationList",e,t)}}),t}(u);w=new WeakMap,v=new WeakSet,P=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=_(e);t._resolveMaps[i]=function(e){var t=e.code,r=e.msg,o=e.data;t!==s.SUCCESS?n(b(t,r,o)):n(c(o))},(o=window.__ContextBridge__).send.apply(o,d(["__RC_CHANNEL_CALL_MAIN__",i,e],y(r),!1))}))};var T={on:function(t,r){e.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,d([e],y(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.send.apply(e,d([t],y(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.sendSync.apply(e,d([t],y(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,d([],y(r),!1))}};window&&(window.RCCppEngine=U,window.__ContextBridge__=T);var R=function(){t&&t.exposeInMainWorld("__ContextBridge__",T)};export{U as RCCppEngine,R as initContextBridge};
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"import": "./renderer.esm.js"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"version": "5.32.0-c-rtc-alpha.
|
|
28
|
+
"version": "5.32.0-c-rtc-alpha.3",
|
|
29
29
|
"author": "pass-web@rongcloud.cn",
|
|
30
30
|
"license": "LGPL 2.1",
|
|
31
31
|
"homepage": "https://www.rongcloud.cn",
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"globals": "RCCppEngine"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@rongcloud/engine": "=5.32.0-c-rtc-alpha.
|
|
39
|
+
"@rongcloud/engine": "=5.32.0-c-rtc-alpha.3"
|
|
40
40
|
}
|
|
41
41
|
}
|