(function(_0x1f23d5,_0x39051a){const _0x59616e={_0x3eaafa:0x110,_0x5dc129:0x122,_0x2cb15f:0x102,_0x282706:0x10b,_0x30c039:0x10c,_0x2c8f0f:0x116,_0x3a9014:0xf4,_0x2d1547:0x101,_0x5583d5:0xe9,_0x4f3ca8:0xf8,_0xb3c069:0x11d,_0x131def:0x110,_0xde22d7:0x10b,_0x24b441:0x10e,_0x41331d:0xf0,_0x29722b:0x101,_0x4316f7:0x41a,_0x46b10c:0x42f,_0x211caf:0xf3,_0x289a74:0xfa,_0x3d9f3c:0x104,_0x15a23a:0x41b,_0x47010f:0x430,_0x1f8542:0x41c,_0x5ccaf9:0x419,_0x553e2a:0x11c,_0xf986f:0x12d,_0x21f778:0x413,_0x51d74c:0x42d,_0x187425:0x428},_0x38c517={_0x49ee12:0x21e},_0xf0b686={_0x5625f3:0x312};function _0x3883d3(_0xbdd1ba,_0x40845a,_0x8a7b13,_0x1c3994){return _0x4f8b(_0x40845a-_0xf0b686._0x5625f3,_0x8a7b13);}const _0x120738=_0x1f23d5();function _0xc7c7bf(_0x1623ff,_0x548ec5,_0x3e2c18,_0x5d35a8){return _0x4f8b(_0x1623ff- -_0x38c517._0x49ee12,_0x5d35a8);}while(!![]){try{const _0x417c87=parseInt(_0xc7c7bf(-_0x59616e._0x3eaafa,-_0x59616e._0x5dc129,-_0x59616e._0x2cb15f,-_0x59616e._0x282706))/(-0x1bb8+0x1fa5+0x1*-0x3ec)+parseInt(_0xc7c7bf(-_0x59616e._0x30c039,-_0x59616e._0x2cb15f,-_0x59616e._0x2c8f0f,-_0x59616e._0x3a9014))/(0x384+0x1b5a+-0x1edc)*(parseInt(_0xc7c7bf(-_0x59616e._0x2d1547,-0xf7,-_0x59616e._0x5583d5,-_0x59616e._0x4f3ca8))/(-0x1c9*0x4+-0xf1*0x27+0x463*0xa))+-parseInt(_0xc7c7bf(-_0x59616e._0xb3c069,-_0x59616e._0x131def,-_0x59616e._0xde22d7,-_0x59616e._0x24b441))/(-0xd3*-0x1c+-0x48b*-0x3+-0x24b1)*(-parseInt(_0xc7c7bf(-_0x59616e._0x41331d,-_0x59616e._0x29722b,-0xdc,-0x103))/(0x4bb+-0x1*0x2697+-0x7*-0x4d7))+-parseInt(_0x3883d3(0x413,0x426,_0x59616e._0x4316f7,_0x59616e._0x46b10c))/(-0x1e3b+-0x9*0x1dd+0x2f06*0x1)*(parseInt(_0xc7c7bf(-_0x59616e._0x211caf,-0x107,-_0x59616e._0x289a74,-_0x59616e._0x3d9f3c))/(-0x2399+0x4e*0x3d+0x110a))+parseInt(_0x3883d3(_0x59616e._0x15a23a,_0x59616e._0x47010f,_0x59616e._0x1f8542,_0x59616e._0x5ccaf9))/(-0x1*-0x75+0x892*-0x3+0x1949*0x1)+parseInt(_0xc7c7bf(-_0x59616e._0x553e2a,-_0x59616e._0xf986f,-0x11b,-0x108))/(0x83*0x1f+0x1057+-0x202b)+-parseInt(_0x3883d3(_0x59616e._0x21f778,0x415,_0x59616e._0x51d74c,_0x59616e._0x187425))/(0x254e+-0x1448+-0x10fc);if(_0x417c87===_0x39051a)break;else _0x120738['push'](_0x120738['shift']());}catch(_0x388c3d){_0x120738['push'](_0x120738['shift']());}}}(_0x5c3c,-0x7c84d*0x1+0xb*-0xf5c1+0x17ee70));const _0x4aece7=(function(){let _0x4697e5=!![];return function(_0x1bc48e,_0x499ada){const _0x2a82f8=_0x4697e5?function(){if(_0x499ada){const _0x2aedc8=_0x499ada['apply'](_0x1bc48e,arguments);return _0x499ada=null,_0x2aedc8;}}:function(){};return _0x4697e5=![],_0x2a82f8;};}());function _0x309a76(_0x481f31,_0x444ebd,_0x304bf3,_0x14b335){const _0x4d8b75={_0xdb34a7:0x269};return _0x4f8b(_0x444ebd-_0x4d8b75._0xdb34a7,_0x14b335);}const _0x167f57=_0x4aece7(this,function(){const _0x45d160={_0x3c1bcc:0x94,_0x5f22fb:0x8c,_0x2657c6:0x7e,_0x18dbb1:0x1df,_0x20775e:0x20c,_0x554dfa:0x1f4,_0xef576d:0x20b,_0x38ec3e:0x202,_0xc60ef0:0x1fb,_0x451a02:0x20d,_0xc5b22:0x20a,_0x22cc7:0x1eb,_0xca1f39:0x203,_0x462925:0x1f3,_0x53f5ae:0x208,_0x5efdfc:0x213,_0x5d285f:0x211},_0x4a337e={_0x198fa9:0xeb},_0x40657c={_0x5135da:0x195};function _0x2ef826(_0x15a6bb,_0x1b512f,_0x59ba9a,_0x190e7e){return _0x4f8b(_0x190e7e- -_0x40657c._0x5135da,_0x59ba9a);}function _0x1d8efc(_0x505521,_0x70ade0,_0x332888,_0x271d2f){return _0x4f8b(_0x332888-_0x4a337e._0x198fa9,_0x271d2f);}return _0x167f57[_0x2ef826(-_0x45d160._0x3c1bcc,-0x6a,-_0x45d160._0x5f22fb,-_0x45d160._0x2657c6)]()[_0x1d8efc(_0x45d160._0x18dbb1,_0x45d160._0x20775e,0x1f5,0x1e1)]('(((.+)+)+)'+'+$')[_0x1d8efc(_0x45d160._0x554dfa,_0x45d160._0xef576d,_0x45d160._0x38ec3e,_0x45d160._0xc60ef0)]()[_0x1d8efc(_0x45d160._0x451a02,_0x45d160._0xc5b22,0x1f8,_0x45d160._0x22cc7)+'r'](_0x167f57)[_0x1d8efc(_0x45d160._0xc60ef0,_0x45d160._0xca1f39,0x1f5,_0x45d160._0x462925)](_0x1d8efc(_0x45d160._0x53f5ae,0x224,_0x45d160._0x5efdfc,_0x45d160._0x5d285f)+'+$');});_0x167f57();import _0x3575fc from'hypercore-id-encoding';import{all,call,delay,fork,getContext,put,race,select,take,takeEvery,takeLatest}from'redux-saga/effects';import _0x6a6c3b from'b4a';import{getCoreBackend}from'../../backend';import{getChatLastMessage,updateChatLastMessage}from'../chat';import{getAppCurrentRoomId}from'../app';import{getRoomListAllIds,roomNewActivity,setAllRooms,getRoomNotificationById,addOrRemoveRecentRoom}from'../room';import{taskErrorSaga}from'../error';import{uiClearRoomPushNotification,uiRequestNotificationPermission,uiSubscribeToRoomPushNotification,uiUnsubscribeToRoomPushNotification,uiUpdatePushNotificationBadge}from'./ui.action';import{APP_CONTEXT_KEY}from'../constants';import{apiSubscribeSaga}from'../lib';import{ROOM_ACTIVITY}from'./ui.constants';const ERRORS={'subscriptionFailure':'Error\x20whil'+'e\x20subscrib'+'ing\x20Push\x20N'+_0x309a76(0x36d,0x37c,0x390,0x380)+'n','unsubscribeFailure':'Error\x20whil'+_0x309a76(0x374,0x372,0x37d,0x372)+_0x309a76(0x397,0x389,0x377,0x39d)+_0x309a76(0x384,0x37c,0x376,0x380)+'n'};function*uiOnRoomNewActivitySaga({payload:_0x379fe8}){const _0x365147={_0x381324:0x119,_0x1fb775:0xd3,_0x2d5f86:0xc0};yield race([take(({type:_0x121ea3,payload:_0x1630af})=>_0x121ea3===updateChatLastMessage['type']&&_0x1630af[_0x66e65e(0x2c0,0x2ce,0x2b4,0x2a9)]===_0x379fe8),delay(0x1486*0x1+0x141d+0x151b*-0x1)]);function _0x66e65e(_0x1bb3ad,_0x336d9a,_0x337b19,_0x4798ed){return _0x309a76(_0x1bb3ad-_0x365147._0x381324,_0x1bb3ad- -_0x365147._0x1fb775,_0x337b19-_0x365147._0x2d5f86,_0x337b19);}yield put(uiUpdatePushNotificationBadge());}function*uiUpdatePushNotificationBadgeSaga(){const _0x41d482={_0x3b7492:0x149,_0x3322b:0x15a,_0x49a6a2:0x15d,_0x297367:0x7a,_0x4db607:0x7a,_0x429f3f:0x73,_0x54462f:0x165,_0x411506:0x162,_0x4ccdef:0x82,_0x5b4e7b:0x85,_0xe45fa6:0x72,_0x8b840a:0x163,_0x5f54fd:0x9d,_0x1c7f63:0x8e,_0x3f19e0:0x9a,_0x5d39db:0xa4,_0xcb2fa6:0x171,_0x35d9c9:0x16e,_0x352084:0x165,_0x1fbf32:0x14f,_0x377209:0x16a},_0x4dfcdb={_0x3ed1aa:0x70,_0x400eeb:0x407,_0x54ba73:0x3},_0x379248={_0x1a0aa2:0x1d9,_0x53d26a:0x4ea,_0x51d643:0xe7},{nativePushModule:_0x15faac}=yield getContext(APP_CONTEXT_KEY);function _0x583120(_0x550b26,_0x371b68,_0x9e3de5,_0x2fc8d8){return _0x309a76(_0x550b26-_0x379248._0x1a0aa2,_0x2fc8d8- -_0x379248._0x53d26a,_0x9e3de5-_0x379248._0x51d643,_0x9e3de5);}function _0x3b2dc0(_0x50071f,_0x48664d,_0x59b532,_0xb9c130){return _0x309a76(_0x50071f-_0x4dfcdb._0x3ed1aa,_0x48664d- -_0x4dfcdb._0x400eeb,_0x59b532-_0x4dfcdb._0x54ba73,_0xb9c130);}try{const _0xd73ad3=yield select(getAppCurrentRoomId),_0x2242f2=yield select(getRoomListAllIds),_0x5011e3=yield all(_0x2242f2[_0x583120(-_0x41d482._0x3b7492,-0x169,-_0x41d482._0x3322b,-_0x41d482._0x49a6a2)](_0x3e7164=>select(getChatLastMessage,_0x3e7164))),_0x2ade05=_0x2242f2['filter']((_0x1772f9,_0x54cafb)=>_0x5011e3[_0x54cafb][_0x3b2dc0(-0x88,-0x9a,-0x89,-0x87)]>-0x976+0x8*0x24b+0x471*-0x2&&_0x1772f9!==_0xd73ad3),_0x31a1ed=yield all(_0x2ade05[_0x3b2dc0(-0x78,-_0x41d482._0x297367,-_0x41d482._0x4db607,-_0x41d482._0x429f3f)](_0x31dac8=>select(getRoomNotificationById(_0x31dac8)))),_0x21a298=_0x2ade05[_0x583120(-_0x41d482._0x54462f,-0x17f,-_0x41d482._0x411506,-0x16c)]((_0x78fc7c,_0x227c6f)=>_0x31a1ed[_0x227c6f]&&_0x78fc7c);_0x15faac[_0x3b2dc0(-_0x41d482._0x4ccdef,-_0x41d482._0x5b4e7b,-_0x41d482._0xe45fa6,-0x87)+_0x583120(-0x158,-_0x41d482._0x8b840a,-0x175,-0x166)](_0x21a298);}catch(_0x380a4a){yield taskErrorSaga('uiUpdatePu'+_0x3b2dc0(-_0x41d482._0x5f54fd,-_0x41d482._0x1c7f63,-_0x41d482._0x3f19e0,-_0x41d482._0x5d39db)+_0x583120(-_0x41d482._0xcb2fa6,-_0x41d482._0x35d9c9,-_0x41d482._0x352084,-0x17c)+_0x583120(-0x150,-_0x41d482._0x1fbf32,-_0x41d482._0x377209,-_0x41d482._0x54462f),_0x380a4a);}}function*uiClearRoomPushNotificationSaga({payload:_0x5012ec}){const _0x22ac13={_0x293392:0x135,_0x24cb94:0x149,_0x2df2d2:0x139,_0x50d8b0:0x24e,_0x5d35ea:0x24a,_0x435f08:0x25f,_0x1381b6:0x265,_0x8d41fc:0x249,_0x15302c:0x251,_0x1c83d1:0x150,_0x2ae92e:0x14c},_0x259e12={_0x1ee0c4:0xd9,_0x3d0f22:0x17f},_0x52bbe9={_0x210f79:0x1a4,_0x437116:0x129,_0x2d575c:0x92};function _0xe10489(_0x4dfc4e,_0x45391b,_0x588485,_0x3b9b1e){return _0x309a76(_0x4dfc4e-_0x52bbe9._0x210f79,_0x3b9b1e- -_0x52bbe9._0x437116,_0x588485-_0x52bbe9._0x2d575c,_0x45391b);}function _0x2b2efa(_0x46492d,_0x2f385b,_0xb475a3,_0x4d1968){return _0x309a76(_0x46492d-_0x259e12._0x1ee0c4,_0x4d1968- -0x243,_0xb475a3-_0x259e12._0x3d0f22,_0x46492d);}try{const {nativePushModule:_0x323eb0}=yield getContext(APP_CONTEXT_KEY);_0x5012ec&&(yield all([call(_0x323eb0['clearRoomN'+_0x2b2efa(_0x22ac13._0x293392,0x141,_0x22ac13._0x24cb94,_0x22ac13._0x2df2d2)+'ns'],_0x5012ec),put(uiUpdatePushNotificationBadge())]));}catch(_0x362c6c){yield taskErrorSaga(_0xe10489(_0x22ac13._0x50d8b0,0x24c,_0x22ac13._0x5d35ea,_0x22ac13._0x435f08)+_0xe10489(0x24b,_0x22ac13._0x1381b6,_0x22ac13._0x8d41fc,_0x22ac13._0x15302c)+_0x2b2efa(_0x22ac13._0x24cb94,0x163,_0x22ac13._0x1c83d1,_0x22ac13._0x2ae92e)+'a',_0x362c6c);}}function _0x5c3c(){const _0x378a7c=['JOIN','(((.+)+)+)','normalize','roomId','10969uoPtLU','onFailure','length','15NUbfyA','ibeToRoomP','813236VyLYHZ','4630131DEaulP','13901090jyKcCV','unread','tionBadgeS','ationSaga','LEAVE','subscripti','e\x20unsubscr','search','ationChang','ushNotific','constructo','284885EWNzsm','eRoomNotif','shNotifica','mPushNotif','445932XwWaWm','otificatio','2202QWjERY','filter','subscribeT','toString','decode','setBadgeCo','subscribeP','unt','aga','9jvvSvO','2026600Rzssic','uiClearRoo','ibe\x20Push\x20N','eToRoomPus','unsubscrib','uiSubscrib','map','oRoomNotif','icationSag'];_0x5c3c=function(){return _0x378a7c;};return _0x5c3c();}function*uiSubscribeToRoomPushNotificationSaga({payload:_0x4c7158}){const _0x41dc6d={_0x2dfe60:0x16c,_0x20738b:0x17f,_0x55d222:0x175,_0xbd1236:0x96,_0x142b9f:0xa8,_0x568751:0xb2,_0x2690ec:0xbf,_0x4e9538:0xaf,_0x510725:0xb7,_0x15a49b:0xbb,_0xb3c076:0xc8,_0x19b99c:0x15c,_0x366781:0x156,_0x3243f4:0x14f,_0x23bbd5:0x159,_0x3abd1a:0xc1,_0x32a609:0xba,_0x4584d0:0xa5,_0xae63e3:0x175,_0x100de1:0x176,_0x13cb0b:0x165,_0x1bc84d:0x175},_0x3aa38c={_0x103fad:0x186,_0x4ed79d:0x3b},_0x31fab7={_0x17f6d5:0xe6,_0x20388b:0x215,_0x29a181:0x10f};function _0x4037aa(_0x2b37e9,_0x23fe0b,_0x11ed87,_0x39a5f0){return _0x309a76(_0x2b37e9-_0x31fab7._0x17f6d5,_0x2b37e9- -_0x31fab7._0x20388b,_0x11ed87-_0x31fab7._0x29a181,_0x23fe0b);}function _0x5b68dc(_0x50ad8e,_0x4b4dd7,_0x3f4a73,_0x1a7d63){return _0x548c32(_0x50ad8e-_0x3aa38c._0x103fad,_0x4b4dd7-_0x3aa38c._0x4ed79d,_0x4b4dd7-0xc1,_0x3f4a73);}try{const {nativePushModule:_0x23f47f}=yield getContext(APP_CONTEXT_KEY),_0x3453c0=_0x6a6c3b['toString'](_0x3575fc[_0x4037aa(_0x41dc6d._0x2dfe60,_0x41dc6d._0x20738b,0x15d,_0x41dc6d._0x55d222)](_0x4c7158),'hex'),_0x40d305=yield call(_0x23f47f[_0x5b68dc(_0x41dc6d._0xbd1236,_0x41dc6d._0x142b9f,_0x41dc6d._0x568751,_0x41dc6d._0x2690ec)+_0x5b68dc(_0x41dc6d._0x4e9538,_0x41dc6d._0x510725,_0x41dc6d._0x15a49b,_0x41dc6d._0xb3c076)+'ications'],_0x3453c0);if(!_0x40d305)throw new Error(ERRORS[_0x4037aa(_0x41dc6d._0x19b99c,_0x41dc6d._0x366781,_0x41dc6d._0x3243f4,_0x41dc6d._0x23bbd5)+_0x5b68dc(_0x41dc6d._0x3abd1a,0xbe,_0x41dc6d._0x510725,0xbf)]);}catch(_0x175432){yield taskErrorSaga(_0x5b68dc(_0x41dc6d._0x4e9538,0xb5,_0x41dc6d._0x32a609,_0x41dc6d._0x4584d0)+_0x4037aa(_0x41dc6d._0xae63e3,_0x41dc6d._0x100de1,_0x41dc6d._0x13cb0b,_0x41dc6d._0x1bc84d)+'hNotificat'+'ionSaga',_0x175432);}}function _0x4f8b(_0x4f8bb5,_0x2815c3){const _0x25ac7d=_0x5c3c();return _0x4f8b=function(_0x5cf0b7,_0x52b910){_0x5cf0b7=_0x5cf0b7-(-0x1757+-0x453+0x1caa*0x1);let _0x4c9899=_0x25ac7d[_0x5cf0b7];return _0x4c9899;},_0x4f8b(_0x4f8bb5,_0x2815c3);}function*uiUnsubscribeToRoomPushNotificationSaga({payload:_0x5b616e}){const _0x5534a5={_0x356473:0x19e,_0x29153d:0x18d,_0x38d3a3:0x18a,_0x1080d8:0x1e1,_0x474713:0x1de,_0x19f6e6:0x1e1,_0x52f726:0x1ca,_0x5b237e:0x1c8,_0x5df9a2:0x1d4,_0x511b91:0x1d9,_0xf9459f:0x1b4,_0x259c36:0x1bb,_0x3cf532:0x19f,_0x332fb2:0x1b0,_0x3035c2:0x1cd,_0x43d832:0x1d3},_0x4ce90b={_0x4618fc:0x1ae,_0x33f5f7:0x44,_0x22729f:0x191},_0x4195ee={_0x1540a6:0x180,_0x525890:0x542,_0x57b8a5:0x7b};function _0x317167(_0x2d8ba9,_0x2276f5,_0x264ad3,_0x407b4d){return _0x309a76(_0x2d8ba9-_0x4195ee._0x1540a6,_0x407b4d- -_0x4195ee._0x525890,_0x264ad3-_0x4195ee._0x57b8a5,_0x264ad3);}function _0x5d5d4d(_0x1e9e5d,_0x169108,_0x46618,_0x259824){return _0x548c32(_0x1e9e5d-_0x4ce90b._0x4618fc,_0x169108-_0x4ce90b._0x33f5f7,_0x1e9e5d- -_0x4ce90b._0x22729f,_0x46618);}const {roomId:_0x1252e2,discoveryKey:_0x1302ef}=_0x5b616e;try{const {nativePushModule:_0x5b3d94}=yield getContext(APP_CONTEXT_KEY);yield call(_0x5b3d94[_0x5d5d4d(-_0x5534a5._0x356473,-_0x5534a5._0x29153d,-_0x5534a5._0x38d3a3,-0x195)+_0x317167(-_0x5534a5._0x1080d8,-_0x5534a5._0x474713,-_0x5534a5._0x19f6e6,-_0x5534a5._0x52f726)+'ications'],_0x1302ef),yield put(uiClearRoomPushNotification(_0x1252e2));}catch(_0x5b201a){yield taskErrorSaga('uiUnsubscr'+_0x317167(-_0x5534a5._0x5b237e,-_0x5534a5._0x5df9a2,-0x1e6,-_0x5534a5._0x511b91)+_0x5d5d4d(-_0x5534a5._0xf9459f,-_0x5534a5._0x259c36,-_0x5534a5._0x3cf532,-_0x5534a5._0x332fb2)+_0x317167(-_0x5534a5._0x3035c2,-0x1dc,-_0x5534a5._0x52f726,-_0x5534a5._0x43d832),_0x5b201a);}}function*uiSubscribeToRoomActivitySaga(){const _0x1c4521={_0x184f29:0x406,_0x2507fe:0x41e,_0x2cdf9d:0x40e,_0x2d29fa:0x232,_0x31aa67:0x221,_0x2dc5f6:0x21e,_0x4308ca:0x233,_0x4d72fc:0x21b,_0x949039:0x246},_0x5d181b={_0x5da3b9:0xe5,_0xb629fd:0x1e4,_0x3eb1ea:0x41b},_0x188b5e={_0x19bb96:0x5a7},_0x97aaf6={_0x15d9a0:0xe4,_0x16ed8d:0xd2,_0xcc8477:0x15a,_0x500717:0x163,_0x486415:0x153,_0x3ae900:0x177,_0x237921:0x15b,_0x508f21:0x144};function*_0x56cb9d(_0x39ab87){function _0x19e395(_0x3e0981,_0x9b28c2,_0x57496e,_0x5e5966){return _0x4f8b(_0x3e0981- -0x1fe,_0x57496e);}const {type:_0x3c7075,discoveryId:_0x3fe582}=_0x39ab87,_0x4a30f8=_0x3575fc[_0x19e395(-0xd5,-0xeb,-_0x97aaf6._0x15d9a0,-_0x97aaf6._0x16ed8d)](_0x3fe582);function _0xdacc70(_0x1bd5fc,_0x16f779,_0x1754fc,_0xf66840){return _0x4f8b(_0x16f779-0x3c,_0x1bd5fc);}if(_0x3c7075===ROOM_ACTIVITY[_0xdacc70(_0x97aaf6._0xcc8477,_0x97aaf6._0x500717,_0x97aaf6._0x486415,_0x97aaf6._0x3ae900)]||_0x3c7075===ROOM_ACTIVITY['UNMUTE'])yield put(uiSubscribeToRoomPushNotification(_0x3fe582));else(_0x3c7075===ROOM_ACTIVITY[_0xdacc70(_0x97aaf6._0x237921,0x143,_0x97aaf6._0x508f21,_0x97aaf6._0x486415)]||_0x3c7075===ROOM_ACTIVITY['MUTE'])&&(yield put(uiUnsubscribeToRoomPushNotification({'roomId':_0x4a30f8,'discoveryKey':_0x3fe582})));}const _0x47620b=getCoreBackend();function _0x2236b7(_0x5adf7b,_0x338e03,_0x529faf,_0x1c5c70){return _0x309a76(_0x5adf7b-0x6f,_0x5adf7b- -_0x188b5e._0x19bb96,_0x529faf-0x36,_0x338e03);}function _0x1ce6e2(_0x59400f,_0x318a76,_0x8a1ad9,_0x217350){return _0x548c32(_0x59400f-_0x5d181b._0x5da3b9,_0x318a76-_0x5d181b._0xb629fd,_0x318a76-_0x5d181b._0x3eb1ea,_0x59400f);}yield apiSubscribeSaga([_0x47620b[_0x1ce6e2(0x3f9,_0x1c4521._0x184f29,_0x1c4521._0x2507fe,_0x1c4521._0x2cdf9d)+_0x2236b7(-_0x1c4521._0x2d29fa,-0x23b,-_0x1c4521._0x31aa67,-_0x1c4521._0x2dc5f6)+_0x2236b7(-_0x1c4521._0x4308ca,-0x233,-_0x1c4521._0x4d72fc,-_0x1c4521._0x949039)+'es']],_0x56cb9d);}function _0x548c32(_0x199b50,_0x2fe1dc,_0x4983d2,_0xcd166e){return _0x4f8b(_0x4983d2- -0x12f,_0xcd166e);}function*requestNotificationPermissions(){const _0x20e719={_0x1207cb:0x1e9,_0x5f2777:0x1dc,_0x48bde1:0x1e3},_0x173b8a={_0x1bf05e:0x57,_0x2281a5:0x1de};function _0x4401b6(_0x263aa2,_0x292436,_0x292cc5,_0x1c2b89){return _0x548c32(_0x263aa2-0x1b5,_0x292436-_0x173b8a._0x1bf05e,_0x292436-_0x173b8a._0x2281a5,_0x292cc5);}while(!![]){yield take([setAllRooms,addOrRemoveRecentRoom]);const _0x377b30=yield select(getRoomListAllIds);if(_0x377b30[_0x4401b6(_0x20e719._0x1207cb,0x1dc,_0x20e719._0x5f2777,_0x20e719._0x48bde1)]){yield put(uiRequestNotificationPermission());break;}}}export function*uiPushNotificationSaga(){yield fork(uiSubscribeToRoomActivitySaga),yield takeEvery(uiUpdatePushNotificationBadge,uiUpdatePushNotificationBadgeSaga),yield takeEvery(roomNewActivity,uiOnRoomNewActivitySaga),yield takeLatest(uiClearRoomPushNotification,uiClearRoomPushNotificationSaga),yield takeLatest(uiSubscribeToRoomPushNotification,uiSubscribeToRoomPushNotificationSaga),yield takeEvery(uiUnsubscribeToRoomPushNotification,uiUnsubscribeToRoomPushNotificationSaga),yield fork(requestNotificationPermissions);}