(function(_0x195b0e,_0x4b3312){const _0x404085={_0x3bdc5b:0x1e4,_0x3ce73e:0x1e8,_0x5875cb:0x1fa,_0x2c8899:0x1e9,_0x2273b1:0x1ec,_0x3234de:0x1e1,_0xe59e25:0x52f,_0x51ba34:0x51e,_0x5cadd1:0x530,_0x21e893:0x536,_0x39a02e:0x52a,_0x23b287:0x1dc,_0x2a7b66:0x1d8,_0x269a78:0x1e7,_0x5313a7:0x1eb,_0x37796e:0x1da,_0x4e802f:0x1ee,_0x7f36d8:0x1f6,_0x538f30:0x533,_0x137a9f:0x533,_0x161d3a:0x523,_0x346867:0x532,_0x47cd3e:0x52e,_0x24d968:0x538,_0xe802a3:0x53f,_0x639f22:0x1c8,_0x2a90f0:0x1d2,_0x14adb9:0x1d7,_0x5a76b3:0x1d1,_0x4c5ff2:0x1d9,_0x2ca6ee:0x1de,_0x53e9f6:0x527,_0xfe35d8:0x51c,_0x55cf35:0x52e,_0x50e5b3:0x530},_0x5552db={_0x1f1070:0x22};function _0x3d64c1(_0x277314,_0x379040,_0x42802c,_0x14432e){return _0x15c4(_0x277314-0x37f,_0x14432e);}function _0x153d45(_0x397703,_0x2a9e0d,_0x33634e,_0x10566e){return _0x15c4(_0x10566e-_0x5552db._0x1f1070,_0x33634e);}const _0x46a78f=_0x195b0e();while(!![]){try{const _0x25c2da=-parseInt(_0x153d45(_0x404085._0x3bdc5b,_0x404085._0x3ce73e,_0x404085._0x5875cb,_0x404085._0x2c8899))/(0x1*0x233+-0x47e+0x24c)*(-parseInt(_0x153d45(_0x404085._0x2273b1,0x1df,_0x404085._0x3bdc5b,_0x404085._0x3234de))/(0x13b1*-0x1+-0x13de*0x1+-0x5a7*-0x7))+parseInt(_0x3d64c1(_0x404085._0xe59e25,_0x404085._0x51ba34,_0x404085._0x5cadd1,0x51e))/(-0x1*0x6a3+-0x20*0xce+0x1*0x2066)*(-parseInt(_0x3d64c1(0x52a,_0x404085._0x21e893,_0x404085._0x39a02e,0x53d))/(-0x6a7+0x604+0x1*0xa7))+parseInt(_0x153d45(_0x404085._0x23b287,_0x404085._0x2a7b66,_0x404085._0x269a78,_0x404085._0x5313a7))/(-0x23d8+-0x65*0x1a+0x2e1f)+parseInt(_0x153d45(_0x404085._0x37796e,_0x404085._0x4e802f,_0x404085._0x7f36d8,_0x404085._0x2273b1))/(0xc69+-0xa3d+0x5*-0x6e)+parseInt(_0x3d64c1(_0x404085._0x538f30,_0x404085._0x137a9f,_0x404085._0x161d3a,_0x404085._0x346867))/(-0x901+0x1fd5+0x1c1*-0xd)+parseInt(_0x3d64c1(_0x404085._0x47cd3e,0x52b,_0x404085._0x24d968,_0x404085._0xe802a3))/(0x2*-0x93f+-0x1*0x6d0+-0x872*-0x3)*(-parseInt(_0x153d45(_0x404085._0x639f22,_0x404085._0x2a90f0,_0x404085._0x14adb9,0x1ce))/(-0x81*-0x17+0x1*0x1087+0x229*-0xd))+-parseInt(_0x153d45(_0x404085._0x5a76b3,_0x404085._0x4c5ff2,0x1d0,_0x404085._0x2ca6ee))/(0x1e54+0xc51*0x3+-0x1*0x433d)*(parseInt(_0x3d64c1(_0x404085._0x53e9f6,_0x404085._0xfe35d8,_0x404085._0x55cf35,_0x404085._0x50e5b3))/(-0x9a+0x440+-0x39b));if(_0x25c2da===_0x4b3312)break;else _0x46a78f['push'](_0x46a78f['shift']());}catch(_0x3f200e){_0x46a78f['push'](_0x46a78f['shift']());}}}(_0x1e76,0x1a926+-0x8d1*0x3d+0x20*0x2142));const _0x596848=(function(){let _0xb0c45=!![];return function(_0x37da93,_0x3b29af){const _0x492f98={_0x49e91e:0x4b4,_0x54e73c:0x4bd,_0x996ca5:0x4b8,_0x492730:0x4c6},_0x40cdd0=_0xb0c45?function(){const _0x17b359={_0x15bb48:0x302};function _0x5f2b9e(_0xba896,_0x1a2db6,_0x515e79,_0x474e09){return _0x15c4(_0x515e79-_0x17b359._0x15bb48,_0xba896);}if(_0x3b29af){const _0x201464=_0x3b29af[_0x5f2b9e(_0x492f98._0x49e91e,_0x492f98._0x54e73c,_0x492f98._0x996ca5,_0x492f98._0x492730)](_0x37da93,arguments);return _0x3b29af=null,_0x201464;}}:function(){};return _0xb0c45=![],_0x40cdd0;};}()),_0x11cb3a=_0x596848(this,function(){const _0x1d5a66={_0x166307:0x5,_0x2d0177:0xe,_0x4d841a:0x6,_0x77d35f:0x3,_0x213b7f:0x1c8,_0x59c861:0x1c0,_0x531387:0x1d3},_0x122a74={_0x1d7f1c:0x1c1},_0x2fb8a8={_0x507fd2:0xd};function _0x4fb2f0(_0x476a3c,_0x2a8140,_0x237055,_0x300b04){return _0x15c4(_0x300b04-_0x2fb8a8._0x507fd2,_0x237055);}function _0x36825e(_0xf57a56,_0x1eeddf,_0x814370,_0x5890d4){return _0x15c4(_0xf57a56- -_0x122a74._0x1d7f1c,_0x5890d4);}return _0x11cb3a[_0x36825e(_0x1d5a66._0x166307,-_0x1d5a66._0x2d0177,_0x1d5a66._0x4d841a,-_0x1d5a66._0x77d35f)]()['search']('(((.+)+)+)'+'+$')[_0x4fb2f0(_0x1d5a66._0x213b7f,_0x1d5a66._0x59c861,0x1c1,_0x1d5a66._0x531387)]()['constructo'+'r'](_0x11cb3a)['search']('(((.+)+)+)'+'+$');});_0x11cb3a();import{call,put,takeLatest,select,take,fork,cancel,all}from'redux-saga/effects';import{getCoreBackend}from'../../backend';import{apiCall}from'../../api/core';import{apiSubscribeSaga}from'../lib/external-src';import{taskErrorSaga}from'../error';import{LOADING_STATUS}from'../lib/clock-list';import{updateLatestReportedMessagesOrder,appendOlderReportedOrder,upsertReportedMessagesById,updateReportedMessagesLoadingStatus,setReportedMessagesInViewRange,updateSelectedReportedMessage,resetReportedMessages,resetSelectedReportedMessage,subscribeReportedMessages,loadOlderReportedMessages,subscribeReportedMessage}from'./reported-messages.action';import{getReportedMessagesMinClock,getReportedMessagesLoadingStatus,getReportedMessagesAnchorClock,getSelectedReportedMessage}from'./reported-messages.selectors';import{REPORTED_MESSAGES_DEFAULT_LIMIT}from'./reported-messages.constant';import{updateFileEntries}from'../media/file';function _0x1e76(){const _0x416c3d=['stSubscrib','roomId','toString','61549JOIvLZ','LOADING','792515gYUQPK','2005212UnVnWV','reportedMe','ribeSaga','eportedMes','196493lKFoye','subscribeR','ERROR','4vlaqch','316611mMXEqz','eSaga','dMessages','8LMPREh','1454157WHwDRW','map','memberId','ssageSubsc','1116850ipOFUL','getReporte','apply','aga','subscribeC','ALL_LOADED','type','sages','110WxZUPP','profile','ssagesAnch','10ueEVTB','orWatcherS','sagesSaga','ssagesLate','payload'];_0x1e76=function(){return _0x416c3d;};return _0x1e76();}import{parseMessage}from'../chat';function _0x15c4(_0x15c46d,_0x560160){const _0x508bb9=_0x1e76();return _0x15c4=function(_0x25fe62,_0x395cc5){_0x25fe62=_0x25fe62-(0x9e7+0x22e9+-0x2b*0x101);let _0x3ec478=_0x508bb9[_0x25fe62];return _0x3ec478;},_0x15c4(_0x15c46d,_0x560160);}import{canModerate,getMyMemberCapabilities,memberWaitProfileData,setMemberProfile}from'../member';function*reportedMessagesLatestSubscribeSaga(_0x29bd5c){const _0x425e6b={_0x429d44:0xee,_0x178823:0xe9,_0x1f26e3:0xd7,_0x22d5f7:0xdb,_0x5bad5f:0x14,_0x5d9970:0xa,_0x1b0069:0x10,_0x1b63ac:0xef,_0x36e118:0xe0,_0x4c8f85:0xea,_0xf8e983:0x100,_0x3241a0:0xf9,_0x4192d2:0x102,_0x3d400c:0x5,_0x3ad540:0xe,_0x28425b:0x6,_0xafedaa:0xd,_0x32ff2f:0x12,_0x2e4275:0x1a,_0x1143d7:0x16},_0x372390={_0x3b6b74:0xc0},_0x5e2610={_0x2e2958:0x1bf};yield put(resetReportedMessages());function _0x16872e(_0x2e8c7b,_0x574317,_0x5397f1,_0xd4a404){return _0x15c4(_0x2e8c7b- -_0x5e2610._0x2e2958,_0xd4a404);}function _0x23214f(_0x59063e,_0x3a3279,_0x113855,_0x44fbf1){return _0x15c4(_0x44fbf1- -_0x372390._0x3b6b74,_0x59063e);}try{const _0xf5a981=getCoreBackend(),_0x33763f=REPORTED_MESSAGES_DEFAULT_LIMIT;yield apiSubscribeSaga([_0xf5a981[_0x23214f(0xf7,_0x425e6b._0x429d44,0xe0,_0x425e6b._0x178823)+_0x23214f(_0x425e6b._0x1f26e3,0xe3,_0x425e6b._0x22d5f7,0xe7)+_0x16872e(-0x4,-_0x425e6b._0x5bad5f,_0x425e6b._0x5d9970,-_0x425e6b._0x1b0069)],_0x29bd5c,{'limit':_0x33763f}],_0x27764b=>put(updateLatestReportedMessagesOrder(_0x27764b)),{'onError':_0x17c616=>taskErrorSaga(_0x16872e(-0x1a,-0x7,-0x19,-0x1c)+_0x16872e(0x3,0x2,0x1,-0xc)+_0x16872e(0x5,0x9,0xa,-0x1)+_0x23214f(0xee,0xfc,0xda,0xed),_0x17c616)});}catch(_0x537583){yield put(updateReportedMessagesLoadingStatus(LOADING_STATUS[_0x23214f(0xfc,_0x425e6b._0x1b63ac,_0x425e6b._0x36e118,_0x425e6b._0x4c8f85)])),yield taskErrorSaga('reportedMe'+_0x23214f(_0x425e6b._0xf8e983,_0x425e6b._0x3241a0,0x10e,_0x425e6b._0x4192d2)+_0x16872e(_0x425e6b._0x3d400c,_0x425e6b._0x3ad540,_0x425e6b._0x28425b,_0x425e6b._0xafedaa)+_0x16872e(-_0x425e6b._0x32ff2f,-_0x425e6b._0x2e4275,-_0x425e6b._0x1143d7,-_0x425e6b._0x5bad5f),_0x537583);}}function*loadOlderReportedMessagesSaga(_0x28cd2a){const _0x1e7a1a={_0x260482:0x15e,_0x52be56:0x15f,_0x584b31:0x166,_0x5cb443:0x164,_0x5997f2:0x180,_0x2ba020:0x154,_0x2f8fd6:0x172,_0x29f2b4:0x162,_0xb6893a:0x161,_0x3156be:0x152,_0x3233b2:0x163,_0x15b6e5:0x15b,_0x117bc0:0x168,_0x12dbe5:0x16e},_0x39dc25={_0x3e6c67:0x53},_0x356c99={_0x246ad7:0x1ee};function _0xc9008a(_0xa411ab,_0x284159,_0x409058,_0x189a85){return _0x15c4(_0x189a85- -_0x356c99._0x246ad7,_0x284159);}function _0x3e552b(_0xf4b96d,_0x9ce016,_0x17c37c,_0x380a64){return _0x15c4(_0x380a64- -_0x39dc25._0x3e6c67,_0x9ce016);}try{const _0x132727=yield select(getReportedMessagesLoadingStatus),_0x1e67b1=yield select(getReportedMessagesMinClock);if(_0x132727===LOADING_STATUS[_0x3e552b(_0x1e7a1a._0x260482,_0x1e7a1a._0x52be56,0x16e,_0x1e7a1a._0x584b31)]||_0x1e67b1==null)return;yield put(updateReportedMessagesLoadingStatus(LOADING_STATUS[_0x3e552b(0x16a,_0x1e7a1a._0x5cb443,_0x1e7a1a._0x5997f2,0x175)]));const _0x445250=getCoreBackend(),_0xc4a7c8=REPORTED_MESSAGES_DEFAULT_LIMIT,_0x5db415=yield call(apiCall,_0x445250[_0x3e552b(0x159,_0x1e7a1a._0x2ba020,_0x1e7a1a._0x2f8fd6,_0x1e7a1a._0x29f2b4)+_0x3e552b(_0x1e7a1a._0xb6893a,_0x1e7a1a._0x3156be,_0x1e7a1a._0x3233b2,_0x1e7a1a._0x15b6e5)],_0x28cd2a,{'clock':_0x1e67b1,'limit':_0xc4a7c8});yield put(appendOlderReportedOrder(_0x5db415));}catch(_0x4d0914){yield put(updateReportedMessagesLoadingStatus(LOADING_STATUS['ERROR'])),yield taskErrorSaga('loadOlderR'+'eportedMes'+_0x3e552b(_0x1e7a1a._0x117bc0,0x166,0x168,_0x1e7a1a._0x12dbe5),_0x4d0914);}}function*reportedMessagesAnchorWatcherSaga(_0x25fbf3){const _0x260749={_0x3b31ae:0x20,_0x1eee77:0x14,_0x187ec9:0x16,_0x431ac7:0x368,_0x356d31:0x374,_0x23e3c8:0x385,_0x458e22:0x399,_0x28c530:0x392,_0x1961c4:0x388},_0x36212f={_0x257c00:0x1cd},_0x4b443f={_0x422b0b:0x193};let _0x105892=null;try{while(!![]){yield take([setReportedMessagesInViewRange,updateLatestReportedMessagesOrder,appendOlderReportedOrder]);const _0x4786d4=yield select(getReportedMessagesAnchorClock),_0x256368=REPORTED_MESSAGES_DEFAULT_LIMIT,_0x1126f9=_0x4786d4===null?{'limit':_0x256368}:{'clock':_0x4786d4,'limit':_0x256368};_0x105892&&(yield cancel(_0x105892),_0x105892=null),_0x105892=yield fork(function*_0x54d62b(){const _0x5d0d00=getCoreBackend();function _0x3a64fd(_0x3fdf74,_0x12e343,_0x5ce6bc,_0x3564e1){return _0x15c4(_0x5ce6bc- -_0x4b443f._0x422b0b,_0x3fdf74);}function _0x533518(_0x5c811e,_0x462c21,_0x502de1,_0x1dbc4e){return _0x15c4(_0x1dbc4e-_0x36212f._0x257c00,_0x462c21);}yield apiSubscribeSaga([_0x5d0d00[_0x3a64fd(_0x260749._0x3b31ae,_0x260749._0x1eee77,_0x260749._0x187ec9,0xb)+_0x533518(_0x260749._0x431ac7,0x37d,0x384,_0x260749._0x356d31)+_0x533518(_0x260749._0x23e3c8,_0x260749._0x458e22,_0x260749._0x28c530,_0x260749._0x1961c4)],_0x25fbf3,_0x1126f9],function*_0x2b1a69(_0x426f15){yield put(upsertReportedMessagesById(_0x426f15));},{'onError':_0x32b601=>taskErrorSaga(_0x3a64fd(0x5,0x6,0x12,0xf)+_0x533518(0x38b,0x39a,0x384,0x38b)+_0x3a64fd(0x2b,0x40,0x2d,0x29)+_0x3a64fd(0x36,0x18,0x24,0x27),_0x32b601)});});}}finally{if(_0x105892)yield cancel(_0x105892);_0x105892=null;}}export function*reportedMessageSubscribeSaga(_0x3f293c,_0x4bb853){const _0x4431dc={_0x46e7df:0x1cc},_0x3f36f7={_0x1eac66:0x1d2};function _0x54a062(_0x1bb6db,_0x3573e2,_0x5d9d19,_0x295119){return _0x15c4(_0x1bb6db-0x11,_0x5d9d19);}const _0x47e311=_0x4bb853['payload'],_0x3e6b79=yield select(getSelectedReportedMessage);if(_0x3e6b79)yield put(resetSelectedReportedMessage());function _0x175054(_0x25008d,_0x42e59e,_0x10c0db,_0x42d95e){return _0x15c4(_0x25008d-_0x3f36f7._0x1eac66,_0x42d95e);}yield apiSubscribeSaga([getCoreBackend()[_0x54a062(0x1c9,0x1d0,_0x4431dc._0x46e7df,0x1ba)+'hatMessage'+'s'],_0x3f293c,{'gte':_0x47e311,'lte':_0x47e311}],function*_0x1c1954(_0x4e13ad){const _0x2ab3c4=_0x4e13ad?.[0xbff*-0x3+-0xa29+-0x16*-0x219];if(!_0x2ab3c4)return;const {message:_0x591d5f,files:_0x47a18e}=parseMessage(_0x2ab3c4);yield put(updateFileEntries(_0x47a18e)),yield put(updateSelectedReportedMessage(_0x591d5f));},{'onError':_0x132059=>taskErrorSaga(_0x54a062(0x1b6,0x1c7,0x1b2,0x1a7)+_0x54a062(0x1c4,0x1d3,0x1bf,0x1d1)+_0x175054(0x378,0x38a,0x373,0x36c),_0x132059)});}export function*reportedMessagesSaga(_0x1ceec5,_0x593823){const _0xde1fe={_0x8ffc55:0x17c,_0x18de9d:0x197,_0x3a7e5f:0x17d,_0xd83937:0x17c,_0x3486ce:0x177,_0x5863cf:0x1c0,_0x3a9418:0x1d2};let _0x25dccc=[];function _0x273a6b(_0x2690f0,_0x2c9be1,_0x44d84d,_0xc5b113){return _0x15c4(_0x44d84d-0xf,_0xc5b113);}function _0x30e922(_0x1bd52d,_0x48a637,_0x29347b,_0x5f2e13){return _0x15c4(_0x5f2e13- -0x29,_0x48a637);}try{while(!![]){yield memberWaitProfileData({'roomId':_0x1ceec5,'memberId':_0x593823});const _0x326a4f=yield select(getMyMemberCapabilities(_0x1ceec5)),_0x263a16=canModerate(_0x326a4f);_0x263a16?_0x25dccc['length']===0x1*0x1ea5+0x8e3+-0x2788&&(_0x25dccc=[yield fork(reportedMessagesAnchorWatcherSaga,_0x1ceec5),yield takeLatest(subscribeReportedMessages,reportedMessagesLatestSubscribeSaga,_0x1ceec5),yield takeLatest(loadOlderReportedMessages,loadOlderReportedMessagesSaga,_0x1ceec5),yield takeLatest(subscribeReportedMessage,reportedMessageSubscribeSaga,_0x1ceec5)]):(_0x25dccc['length']>-0x1*-0x1444+-0x9+-0x1*0x143b&&(yield all(_0x25dccc[_0x30e922(_0xde1fe._0x8ffc55,_0xde1fe._0x18de9d,0x183,0x188)](_0x110cff=>cancel(_0x110cff))),_0x25dccc=[]),yield put(resetReportedMessages())),yield take(_0x49faf4=>_0x49faf4[_0x273a6b(0x1cc,0x1ca,0x1c9,0x1c6)]===setMemberProfile[_0x30e922(0x191,0x1a1,0x1a2,0x191)]&&_0x49faf4[_0x273a6b(0x1c4,0x1ce,0x1d2,0x1de)]?.[_0x273a6b(0x1d0,0x1cb,0x1d4,0x1d4)]===_0x1ceec5&&_0x49faf4[_0x273a6b(0x1c4,0x1d2,0x1d2,0x1d0)]?.[_0x273a6b(0x1bf,0x1da,0x1cc,0x1db)]?.[_0x273a6b(0x1b6,0x1bb,0x1c1,0x1cd)]===_0x593823);}}catch(_0x35a9f8){yield taskErrorSaga(_0x30e922(_0xde1fe._0x3a7e5f,_0xde1fe._0xd83937,_0xde1fe._0x3486ce,_0xde1fe._0x8ffc55)+'ssagesSaga',_0x35a9f8);}finally{_0x25dccc['length']>0xc16+-0x139c*0x1+0x786&&(yield all(_0x25dccc[_0x273a6b(0x1b7,0x1c8,_0xde1fe._0x5863cf,_0xde1fe._0x3a9418)](_0x4e5ef2=>cancel(_0x4e5ef2))),_0x25dccc=[]);}}