(function(_0x2e304c,_0xf1aab0){const _0xbe5577={_0x53cd81:0x423,_0x821ce6:0x426,_0x3d433d:0x433,_0x5ca879:0x402,_0x1422be:0x3fa,_0x5d5a9e:0x3ff,_0x2f5bcb:0x3e8,_0x345793:0x425,_0x22a624:0x42f,_0x397c7c:0x41b,_0x292b49:0x415,_0xd55a46:0x433,_0x28ae96:0x444,_0xab6c5:0x43d,_0x4b27f5:0x417,_0x1f745d:0x405,_0x11b8ed:0x3f8,_0x48fbfb:0x3ec,_0x53f634:0x3ba,_0x47584e:0x3ac,_0x437c9a:0x3fc,_0x44415f:0x408,_0x4f245d:0x436,_0x2a44ef:0x43e,_0x33aee9:0x442,_0x3e0fb5:0x40d,_0x1ed524:0x42a,_0x516870:0x41c,_0x237a59:0x42e},_0x3f9167={_0x3b9ea5:0x2b8},_0x144121={_0x16afd8:0x23a};function _0x4514a2(_0x366064,_0x17daff,_0x141d6a,_0x3a245d){return _0x4db5(_0x366064-_0x144121._0x16afd8,_0x3a245d);}const _0x1b23d9=_0x2e304c();function _0x4b0ce6(_0x4be16c,_0xc645d6,_0x1b1c4d,_0x271b48){return _0x4db5(_0x4be16c-_0x3f9167._0x3b9ea5,_0x271b48);}while(!![]){try{const _0x2f1618=parseInt(_0x4b0ce6(_0xbe5577._0x53cd81,0x428,_0xbe5577._0x821ce6,_0xbe5577._0x3d433d))/(-0x1c9*-0x11+0x5ab*-0x3+-0xd57)+-parseInt(_0x4b0ce6(_0xbe5577._0x5ca879,_0xbe5577._0x1422be,_0xbe5577._0x5d5a9e,_0xbe5577._0x2f5bcb))/(0x10d5*-0x1+0xfe7+0xf0)*(parseInt(_0x4b0ce6(_0xbe5577._0x345793,_0xbe5577._0x22a624,_0xbe5577._0x397c7c,_0xbe5577._0x292b49))/(0x4a1+0x169*0x1a+-0x2948*0x1))+-parseInt(_0x4b0ce6(_0xbe5577._0xd55a46,_0xbe5577._0x28ae96,_0xbe5577._0xab6c5,_0xbe5577._0x4b27f5))/(-0x8ff*0x1+0x10f*0x15+-0xd38)*(parseInt(_0x4b0ce6(_0xbe5577._0x1f745d,0x3ec,_0xbe5577._0x11b8ed,_0xbe5577._0x48fbfb))/(-0x1b71*-0x1+0x779*-0x1+-0x13f3))+-parseInt(_0x4514a2(0x3b6,0x3be,_0xbe5577._0x53f634,_0xbe5577._0x47584e))/(-0x3*-0x5b3+-0x33*-0xc1+-0x1282*0x3)+parseInt(_0x4b0ce6(0x40b,0x411,_0xbe5577._0x437c9a,_0xbe5577._0x44415f))/(0x2e4+0x53f+0x1*-0x81c)*(parseInt(_0x4b0ce6(0x414,0x3fe,0x42a,0x41b))/(-0x244b+0x9a8+0x1aab*0x1))+-parseInt(_0x4b0ce6(_0xbe5577._0x4f245d,_0xbe5577._0x2a44ef,_0xbe5577._0x33aee9,_0xbe5577._0x33aee9))/(0x1e52+0x16eb*0x1+0x1*-0x3534)+parseInt(_0x4b0ce6(_0xbe5577._0x3e0fb5,0x3f0,_0xbe5577._0x1ed524,0x425))/(0x41*-0x29+-0x1ec+-0xc5f*-0x1)*(parseInt(_0x4b0ce6(_0xbe5577._0x516870,0x42a,_0xbe5577._0x237a59,_0xbe5577._0x3d433d))/(0x2652+-0x9d*-0x16+-0x33c5));if(_0x2f1618===_0xf1aab0)break;else _0x1b23d9['push'](_0x1b23d9['shift']());}catch(_0x331fa8){_0x1b23d9['push'](_0x1b23d9['shift']());}}}(_0x3ba3,0xd5148+-0x3*-0x1e191+-0xc3ba4));const _0x20cb91=(function(){let _0x4de4cd=!![];return function(_0x3dd1c1,_0x51796c){const _0x5c655a={_0x19c766:0x41},_0x5d9256=_0x4de4cd?function(){const _0x263439={_0x28c498:0x128};function _0x3ed801(_0x42161b,_0x8bff2c,_0xa36977,_0x1f6823){return _0x4db5(_0x42161b- -_0x263439._0x28c498,_0x8bff2c);}if(_0x51796c){const _0x4430e5=_0x51796c[_0x3ed801(0x47,_0x5c655a._0x19c766,0x55,0x5b)](_0x3dd1c1,arguments);return _0x51796c=null,_0x4430e5;}}:function(){};return _0x4de4cd=![],_0x5d9256;};}()),_0x428728=_0x20cb91(this,function(){const _0x6c2805={_0x2a3d74:0x474,_0x5528cd:0x46a,_0x37a718:0x487,_0x259bd0:0x485,_0x128a55:0x477,_0x209b39:0x487,_0x504e4b:0x46d,_0x1adbae:0x497,_0x50b3bd:0x488,_0x2f36af:0x494,_0x3485c9:0x2c1,_0x58a435:0x2ce,_0x3c7b21:0x2f9,_0x1744e1:0x2dd,_0x482463:0x48e,_0x38e655:0x466},_0x7883c1={_0x200f2:0x166},_0x43ef54={_0x138932:0x31e};function _0x5604da(_0x2ac77a,_0x2e767a,_0x513520,_0x288aba){return _0x4db5(_0x513520-_0x43ef54._0x138932,_0x288aba);}function _0x4b1349(_0xe01bb7,_0x4806db,_0x3a7b1c,_0x61acef){return _0x4db5(_0x61acef-_0x7883c1._0x200f2,_0x3a7b1c);}return _0x428728[_0x5604da(_0x6c2805._0x2a3d74,_0x6c2805._0x5528cd,_0x6c2805._0x37a718,0x49b)]()['search']('(((.+)+)+)'+'+$')[_0x5604da(_0x6c2805._0x259bd0,_0x6c2805._0x128a55,_0x6c2805._0x209b39,_0x6c2805._0x504e4b)]()[_0x5604da(_0x6c2805._0x1adbae,_0x6c2805._0x50b3bd,_0x6c2805._0x2f36af,0x491)+'r'](_0x428728)[_0x4b1349(_0x6c2805._0x3485c9,_0x6c2805._0x58a435,_0x6c2805._0x3c7b21,_0x6c2805._0x1744e1)](_0x5604da(_0x6c2805._0x482463,_0x6c2805._0x38e655,0x47c,0x491)+'+$');});function _0x4db5(_0x4737e9,_0x4115c7){const _0x2528c0=_0x3ba3();return _0x4db5=function(_0x21d3fa,_0x4160cb){_0x21d3fa=_0x21d3fa-(-0x95f+-0x15*0xcb+0x2bb*0xa);let _0x4682d9=_0x2528c0[_0x21d3fa];return _0x4682d9;},_0x4db5(_0x4737e9,_0x4115c7);}_0x428728();import{call,put,fork,select,spawn,take,join,delay,race}from'redux-saga/effects';import{block}from'../../lib/effects';function _0x3cd2bb(_0x5c8e87,_0x366b05,_0x142ea4,_0x396d5c){const _0x3cfc15={_0x3c0b05:0x5b};return _0x4db5(_0x396d5c- -_0x3cfc15._0x3c0b05,_0x5c8e87);}import{first,isEmpty,last}from'../../lib/array';import{logWarning,taskErrorSaga}from'../../error';function _0x495201(_0x3b16ab,_0x3d6500,_0x7e2984,_0xea3029){const _0x3f059c={_0x741fbf:0x2ab};return _0x4db5(_0xea3029-_0x3f059c._0x741fbf,_0x3b16ab);}import{getChatMessageCount,fetchMessagesCmd,reloadMessagesCmd,subChatMessagesEvt,setChatMessagesFetching,getChatMessageSeqLoaded}from'../list-view';import{isQueryValid,getQueryCount,hasQueryIntersection}from'../message';import{createChatLoader}from'./loader';import{createCtrlCtxRef}from'./loader-step';import{LOADER_FAIL,PORTION_SIZE_MAX}from'./loader.constants';import{isSeqInRange,noMessagesLoaded}from'../chat.model';import{CHAT_WORKER}from'../chat.constant';import{sharedCoreMessagesUpdate}from'../../api/data.action';const FETCH_WARN_MS=0x46d+0x25b5+-0x1*0x312,FETCH_BREAK_MS=-0x49*0x1e1+-0x277*-0x12+-0x1027*-0xd;export const isUpdateChatMessagesByWorker=_0x14672a=>_0x5ae364=>sharedCoreMessagesUpdate[_0x495201(0x403,0x3fe,0x431,0x419)](_0x5ae364)&&_0x5ae364[_0x495201(0x434,0x448,0x43b,0x42c)]['worker']===_0x14672a;function _0x3ba3(){const _0x16cd73=['bottom','gte','chat\x20loade','\x20gte=','stringify','now','constructo','search','seq','r:\x20initial','isRunning','2993964lySSeD','3109050MwnteQ','TOP','4486284dHFFkd','lte','fetch','payload','loader:\x20hu','sages:\x20len','loader:fet','4478fsLvcz','BOTTOM','length','5wTwGDZ','s\x20not\x20avai','\x20messages\x20','isArray','waitStart','r:\x20count\x20i','3549pfZAWo','\x20count=','19689280RDZoZr','chat\x20loadi','SUB','ng\x20cancell','chatCoreEv','nitial\x20mes','chInitial','10992wpdMCx','ge\x20query\x20','(((.+)+)+)','\x20lte=','top','r:\x20empty\x20i','callCount','cancel','11gFxyoV','INITIAL','rker:\x20<','runFetchWo','entLoader','toString','FAIL\x20roomI','187586kmcNpO','ery\x20','867EdmxWF','match','apply'];_0x3ba3=function(){return _0x16cd73;};return _0x3ba3();}export function*fetchCtrl({name:_0x4689e5,ctxRef:_0xb3d8f}){const _0x75c08b={_0x16503e:0x22e,_0x3ca7e7:0x247,_0xd755b2:0x23f,_0x510907:0x233,_0x1d605b:0x237,_0x4a4130:0x216,_0x5c824a:0x11c,_0x53059d:0x13a,_0x4dc720:0x12f,_0x579a03:0x123,_0x38276a:0x140,_0x1c2bba:0x14e,_0x8eb1f9:0x13e,_0x3aa88d:0x243,_0x507bda:0x23f,_0x39ec87:0x23c},_0x1153ff={_0x24e1b6:0x154,_0x24721a:0x155,_0x2c3e3f:0x1ce},_0x5bb311={_0x4c7b48:0x2e2};function _0x28b465(_0x4e2645,_0x449e29,_0x5af4b8,_0x11f1d9){return _0x495201(_0x5af4b8,_0x449e29-0x34,_0x5af4b8-0x1d4,_0x11f1d9- -_0x5bb311._0x4c7b48);}function _0x23b69d(_0x5a6e16,_0x28c5ac,_0x559a45,_0x1faa76){return _0x495201(_0x5a6e16,_0x28c5ac-_0x1153ff._0x24e1b6,_0x559a45-_0x1153ff._0x24721a,_0x28c5ac- -_0x1153ff._0x2c3e3f);}let _0x5ea6f9=0x108f+-0xc2*-0x25+-0x2c99;try{_0x5ea6f9=yield call(_0xb3d8f[_0x23b69d(0x21c,_0x75c08b._0x16503e,_0x75c08b._0x3ca7e7,_0x75c08b._0xd755b2)]),yield put(setChatMessagesFetching({'name':_0x4689e5,'status':!![],'timestamp':_0x5ea6f9})),yield delay(FETCH_WARN_MS),yield put(logWarning({'message':_0x23b69d(0x244,_0x75c08b._0x510907,_0x75c08b._0x1d605b,_0x75c08b._0x4a4130)+'ng\x20slow','stack':'runFetchWo'+_0x28b465(_0x75c08b._0x5c824a,0x141,_0x75c08b._0x53059d,_0x75c08b._0x4dc720)+_0x4689e5+('>:\x20callCou'+'nt=')+_0xb3d8f['callCount']})),yield block();}finally{_0x5ea6f9&&(yield put(setChatMessagesFetching({'name':_0x4689e5,'status':![],'timestamp':Date[_0x28b465(_0x75c08b._0x579a03,_0x75c08b._0x38276a,_0x75c08b._0x1c2bba,_0x75c08b._0x8eb1f9)](),'callCount':_0xb3d8f[_0x23b69d(_0x75c08b._0x3aa88d,_0x75c08b._0x507bda,_0x75c08b._0x39ec87,0x250)]})));}}export function*chatCoreEventLoader(_0x544596,_0x398581){const _0x3b8482={_0x3491d7:0x2ad,_0x19f6fa:0x291,_0x230645:0x2b5,_0x59e231:0x304,_0x8c3fa2:0x314,_0x18cbb2:0x2f9,_0x22765a:0x30d,_0xd4ebb4:0x2b6,_0x1ef296:0x2a6,_0x5794b0:0x356,_0x532230:0x34a,_0x5726de:0x333,_0x34c375:0x33f,_0x38cab9:0x337,_0x556ec3:0x323,_0x5f5727:0x332,_0x35025c:0x35d,_0x528611:0x34a,_0x464523:0x363,_0x1c0602:0x33b,_0x8d36f1:0x2b6,_0x219abc:0x2a8,_0x3c9e9d:0x2a1,_0x3b29fb:0x29c,_0x1050e9:0x292,_0x36d625:0x2a9,_0x185acd:0x295,_0x342699:0x343,_0x48525b:0x2c9,_0x56492a:0x2ba,_0x3d4e3c:0x2bd,_0x3b1d80:0x2db,_0x22a71e:0x2dc,_0x5d2fc3:0x2ce,_0x3d7cd1:0x2b8,_0x16ad92:0x2bf,_0x43ff40:0x296,_0x1efb08:0x2b8,_0xf0ff82:0x329,_0x1ea065:0x320,_0x5a3c94:0x31a,_0x168f4b:0x31e,_0x16dc49:0x2e0,_0x2d2869:0x2c9,_0x2221e5:0x322,_0x50eaf0:0x32a,_0x3081fa:0x33c,_0x2aa3a7:0x34d,_0x365763:0x331,_0x2c8443:0x349,_0x2846df:0x335,_0x3ecf60:0x330,_0x107871:0x328,_0x45d54c:0x336,_0x2b503a:0x33d,_0x1c88cd:0x353,_0x34bd7b:0x34b,_0x3860c4:0x361,_0x426ab1:0x363,_0x500204:0x2a5,_0x2ac571:0x2b3,_0x2ad243:0x339,_0x58be43:0x347,_0x29e40f:0x326,_0x4488fd:0x334,_0x559e14:0x2c5,_0x4fdbc2:0x2b0,_0x551191:0x293,_0x4a84b6:0x279,_0x2b1902:0x2ad,_0x429645:0x27c},_0xc42177={_0x480c87:0x14d,_0x39234:0x162,_0x4c7444:0x14c,_0x516e3a:0x446,_0x1d86f9:0x43a,_0xfe0e9f:0x437,_0x507bfb:0x445,_0x5da94e:0x12b,_0x4d64df:0x134,_0x5a455a:0x132,_0x5b743b:0x148,_0x32a149:0x136,_0x2add15:0x13c,_0x3be243:0x12f,_0x403623:0x43e,_0x4e0975:0x453,_0x67212a:0x450,_0x4d6fdf:0x429,_0xee440b:0x445,_0x5b12bb:0x443,_0x213ff1:0x430,_0x53408a:0x44c,_0x34adef:0x117,_0x6bfeae:0x130,_0x159cb9:0x157,_0x5e1e95:0x14b,_0x1e4ce0:0x432,_0xd27d81:0x43e,_0x3ce727:0x452,_0x43a8a7:0x44f,_0x4ad4c3:0x124,_0x140439:0x142,_0xbc2088:0x42e,_0x2976e8:0x439,_0x198dc6:0x135,_0x4b1ac4:0x14d,_0x1da641:0x142,_0x30ad08:0x446,_0x44d21e:0x438,_0x4b092f:0x42d,_0x4d2cf0:0x13d,_0x496119:0x11b,_0x4c0e11:0x422,_0x5ed17d:0x445,_0x1a2e8c:0x43a,_0x50ae87:0x163,_0x13a070:0x13f,_0x2a466a:0x16a,_0x152038:0x433,_0x5010e1:0x446,_0x10701d:0x43c,_0x52fadb:0x469,_0x2accd0:0x140,_0x4dafd0:0x13f,_0x4af6ee:0x44d,_0x4b6b02:0x445,_0xa1ab42:0x418,_0x4a2c55:0x421,_0x5b010c:0x436,_0x5885ca:0x41c,_0x3fcaa5:0x128,_0x1e3b53:0x12d,_0x1c4b9e:0x13c,_0x3f7478:0x12c,_0x44983f:0x144},_0x22bcb5={_0x51f1ef:0x16b,_0x2fddd6:0x10a},_0x3d76bf={_0x5a5230:0x13d,_0x37c5c0:0x1be,_0x116552:0x1a3},_0x150e51={_0x31a662:0x1ea,_0x4d15a9:0x1fa,_0x3e6a8c:0x1f9,_0x15f3e2:0x208,_0x2bf799:0x1f5,_0x252ebc:0x1e7,_0xc77b91:0x1ce,_0x315836:0x1d9,_0x109458:0x1cf,_0x236c5b:0x1cf,_0x898f5c:0x20e,_0xc90a13:0x226,_0x100517:0x203,_0x48de2f:0x21e,_0x19d13d:0x203,_0x4f072d:0x1f4,_0x4a3cc4:0x1f3,_0x115861:0x1de,_0x2400be:0x1dc,_0x40f6a7:0x1ee,_0x1891bf:0x1eb,_0x2fffb4:0x1e0,_0x544b5f:0x1e8,_0x46b0b1:0x1f8,_0x4b4578:0x204,_0x127a35:0x221,_0x5f3aab:0x202,_0x4d3b2c:0x205,_0x5ab73f:0x20b,_0x5c9a7e:0x1e7,_0x495eb7:0x1ec,_0x1836f0:0x201,_0x7ac19b:0x1fb},_0x2fac29={_0x55b1ec:0x12a,_0x3d70f0:0x131,_0x102d65:0x125,_0xcef5bd:0x121,_0x48b128:0x116,_0x397116:0x10b,_0x2e9d5b:0x108,_0x15f096:0x437,_0x375eb2:0x428,_0x4a3280:0x437,_0x4c6117:0x44d,_0x532dd5:0x432,_0x3c30bc:0x43b},_0x4d43e8={_0x368ce0:0x18c,_0xe1f210:0x137,_0x2eb971:0x198},_0x271b6d={_0x455f4f:0x3d0,_0x109e45:0xf3},_0x58a439={_0x47fa60:0xc0,_0x33e5b1:0x2e};function _0x24e36a(_0x5de317,_0x413099,_0x576eff,_0x303b33){return _0x495201(_0x576eff,_0x413099-_0x58a439._0x47fa60,_0x576eff-_0x58a439._0x33e5b1,_0x413099- -0xe2);}const _0x43b094={[CHAT_WORKER[_0x428b35(_0x3b8482._0x3491d7,_0x3b8482._0x19f6fa,0x2b9,_0x3b8482._0x230645)]]:null,[CHAT_WORKER['TOP']]:null,[CHAT_WORKER[_0x24e36a(_0x3b8482._0x59e231,_0x3b8482._0x8c3fa2,_0x3b8482._0x18cbb2,_0x3b8482._0x22765a)]]:null};function _0x3dcd10(){_0x43b094[CHAT_WORKER['INITIAL']]?.[_0x425643(-_0x2fac29._0x55b1ec,-_0x2fac29._0x3d70f0,-_0x2fac29._0x102d65,-_0x2fac29._0xcef5bd)]();function _0x425643(_0x394e11,_0x196c66,_0x349f56,_0x1e00ea){return _0x428b35(_0x349f56- -_0x271b6d._0x455f4f,_0x196c66-0x3b,_0x349f56-_0x271b6d._0x109e45,_0x1e00ea);}_0x43b094[CHAT_WORKER[_0x425643(-0xf0,-_0x2fac29._0x48b128,-_0x2fac29._0x397116,-_0x2fac29._0x2e9d5b)]]?.[_0x236aff(_0x2fac29._0x15f096,0x42f,_0x2fac29._0x375eb2,_0x2fac29._0x15f096)]();function _0x236aff(_0x38048a,_0x188afe,_0x31988f,_0x121ff2){return _0x428b35(_0x38048a-_0x4d43e8._0x368ce0,_0x188afe-_0x4d43e8._0xe1f210,_0x31988f-_0x4d43e8._0x2eb971,_0x188afe);}_0x43b094[CHAT_WORKER['BOTTOM']]?.[_0x236aff(_0x2fac29._0x4a3280,_0x2fac29._0x4c6117,_0x2fac29._0x532dd5,_0x2fac29._0x3c30bc)]();}let _0x266ca7=null;function*_0x428b9e({name:_0x20c0e8,loader:_0x34919a}){if(_0x43b094[_0x20c0e8]?.['isRunning']())return;_0x43b094[_0x20c0e8]=yield spawn(function*_0x1526fb(){const _0x50b375={_0x4f96be:0x79};function _0x1fc7b6(_0xfff7e,_0x1b191f,_0x5712ea,_0x5db384){return _0x4db5(_0x1b191f-_0x50b375._0x4f96be,_0x5db384);}let _0x18f9e6=null;function _0x3b8826(_0x2e1323,_0x57cbcf,_0x1dbadb,_0x2f8972){return _0x4db5(_0x57cbcf-0x9e,_0x2f8972);}try{if(_0x43b094[CHAT_WORKER[_0x3b8826(_0x150e51._0x31a662,0x203,_0x150e51._0x4d15a9,_0x150e51._0x3e6a8c)]]?.['isRunning']()){const _0x1a5ef0=yield join(_0x43b094[CHAT_WORKER[_0x3b8826(_0x150e51._0x15f3e2,0x203,_0x150e51._0x2bf799,_0x150e51._0x252ebc)]]);if(!_0x1a5ef0)return;}const _0x1ba06b=createCtrlCtxRef();_0x18f9e6=yield fork(fetchCtrl,{'name':_0x20c0e8,'ctxRef':_0x1ba06b});let _0x4c400b;do{_0x4c400b=_0x266ca7;const _0x44bbd9=yield select(getChatMessageSeqLoaded),_0x20dc4e={'gte':_0x44bbd9[_0x1fc7b6(_0x150e51._0xc77b91,_0x150e51._0x315836,_0x150e51._0x109458,_0x150e51._0x236c5b)],'lte':_0x44bbd9[_0x3b8826(_0x150e51._0x898f5c,0x20e,_0x150e51._0xc90a13,0x205)]},_0x10dbb4=yield select(getChatMessageCount),[_0x233aaa,_0x1ac593]=yield race([call(_0x34919a[_0x3b8826(_0x150e51._0x100517,_0x150e51._0x48de2f,0x21b,0x222)][_0x20c0e8],{'query':_0x4c400b,'loaded':_0x20dc4e,'count':_0x10dbb4,'ctxRef':_0x1ba06b}),delay(FETCH_BREAK_MS)]);if(_0x1ac593||_0x233aaa===LOADER_FAIL){_0x1ac593&&(yield put(logWarning({'message':_0x3b8826(_0x150e51._0x19d13d,_0x150e51._0x4f072d,_0x150e51._0x4a3cc4,_0x150e51._0x115861)+_0x1fc7b6(_0x150e51._0x2400be,0x1d1,_0x150e51._0x40f6a7,_0x150e51._0x1891bf)+'ed','stack':_0x1fc7b6(0x1e9,_0x150e51._0x2fffb4,_0x150e51._0x544b5f,0x1da)+_0x3b8826(_0x150e51._0x46b0b1,_0x150e51._0x4b4578,_0x150e51._0x127a35,0x1f6)+_0x20c0e8+'>'})));_0x4c400b=null;continue;}!isEmpty(_0x233aaa)&&(yield put(_0x398581,{'worker':_0x20c0e8,'events':_0x233aaa}),yield take(isUpdateChatMessagesByWorker(_0x20c0e8)));}while(_0x4c400b!==_0x266ca7);}catch(_0x471d5d){yield taskErrorSaga(_0x3b8826(_0x150e51._0x5f3aab,_0x150e51._0x4d3b2c,_0x150e51._0x5ab73f,_0x150e51._0x5c9a7e)+'rker\x20<'+_0x20c0e8+'>',_0x471d5d);}finally{_0x18f9e6?.[_0x3b8826(_0x150e51._0x495eb7,_0x150e51._0x1836f0,_0x150e51._0x7ac19b,_0x150e51._0x31a662)]();}});}const _0x372737=createChatLoader({'roomId':_0x544596});function _0x428b35(_0x1eda51,_0x12865a,_0x10ca8e,_0x3c9d60){return _0x3cd2bb(_0x3c9d60,_0x12865a-_0x3d76bf._0x5a5230,_0x10ca8e-_0x3d76bf._0x37c5c0,_0x1eda51-_0x3d76bf._0x116552);}try{while(!![]){const _0x4a2fe4=yield take([fetchMessagesCmd,reloadMessagesCmd,subChatMessagesEvt]),_0x5bf297=yield select(getChatMessageSeqLoaded);if(fetchMessagesCmd[_0x428b35(_0x3b8482._0xd4ebb4,_0x3b8482._0x1ef296,0x2ce,0x2c8)](_0x4a2fe4))_0x266ca7=_0x4a2fe4[_0x24e36a(_0x3b8482._0x5794b0,_0x3b8482._0x532230,_0x3b8482._0x5726de,0x32d)];else{if(reloadMessagesCmd[_0x24e36a(_0x3b8482._0x34c375,_0x3b8482._0x38cab9,_0x3b8482._0x556ec3,_0x3b8482._0x5f5727)](_0x4a2fe4)){const _0x61abc6=_0x4a2fe4[_0x24e36a(_0x3b8482._0x35025c,_0x3b8482._0x528611,_0x3b8482._0x464523,_0x3b8482._0x1c0602)];_0x61abc6&&(_0x266ca7=_0x61abc6),_0x3dcd10();}else{if(subChatMessagesEvt[_0x428b35(_0x3b8482._0x8d36f1,_0x3b8482._0x219abc,_0x3b8482._0x3c9e9d,_0x3b8482._0x3b29fb)](_0x4a2fe4)){if(!Array[_0x428b35(0x298,_0x3b8482._0x1050e9,_0x3b8482._0x36d625,_0x3b8482._0x185acd)](_0x4a2fe4[_0x24e36a(_0x3b8482._0x342699,_0x3b8482._0x528611,0x347,0x33a)])||!_0x4a2fe4[_0x428b35(_0x3b8482._0x48525b,_0x3b8482._0x56492a,_0x3b8482._0x3d4e3c,_0x3b8482._0x3b1d80)]['length'])continue;const _0x33a745=first(_0x4a2fe4['payload']),_0x2bf996=last(_0x4a2fe4[_0x428b35(0x2c9,0x2df,0x2e4,_0x3b8482._0x22a71e)]);if(!(isSeqInRange(_0x5bf297,_0x33a745?.['seq'])&&isSeqInRange(_0x5bf297,_0x2bf996?.[_0x428b35(0x2c0,_0x3b8482._0x5d2fc3,0x2a9,_0x3b8482._0x3d7cd1)])))continue;if(_0x43b094[CHAT_WORKER[_0x428b35(_0x3b8482._0x3491d7,0x2c4,_0x3b8482._0x16ad92,_0x3b8482._0x43ff40)]]?.[_0x428b35(0x2c2,0x2dc,0x2a5,_0x3b8482._0x1efb08)]()||noMessagesLoaded(_0x5bf297))continue;yield put(_0x398581,{'worker':CHAT_WORKER[_0x24e36a(_0x3b8482._0xf0ff82,_0x3b8482._0x1ea065,_0x3b8482._0x5a3c94,_0x3b8482._0x168f4b)],'events':_0x4a2fe4[_0x428b35(_0x3b8482._0x48525b,0x2b6,_0x3b8482._0x16dc49,_0x3b8482._0x2d2869)]});continue;}}}if(!isQueryValid(_0x266ca7)){_0x266ca7&&(yield taskErrorSaga(_0x24e36a(0x339,_0x3b8482._0x2221e5,_0x3b8482._0x50eaf0,_0x3b8482._0x3081fa)+_0x24e36a(_0x3b8482._0x2aa3a7,_0x3b8482._0x365763,0x330,_0x3b8482._0x2c8443),'invalid\x20qu'+_0x24e36a(0x341,_0x3b8482._0x2846df,_0x3b8482._0x3ecf60,_0x3b8482._0x107871)+JSON[_0x24e36a(_0x3b8482._0x45d54c,_0x3b8482._0x2b503a,0x338,_0x3b8482._0x1c88cd)](_0x266ca7)),_0x266ca7=null);continue;}if(getQueryCount(_0x266ca7)>PORTION_SIZE_MAX*(-0x1e7f+-0x1d6*0x4+0x25da)){const _0x301dca=_0x24e36a(0x337,_0x3b8482._0x34bd7b,_0x3b8482._0x3860c4,_0x3b8482._0x426ab1)+_0x428b35(_0x3b8482._0x500204,_0x3b8482._0x2ac571,0x2c2,0x29b)+JSON['stringify'](_0x266ca7);yield put(logWarning({'message':_0x301dca,'stack':'chatCoreEv'+'entLoader'}));}const _0xd264e2={'gte':_0x5bf297['top'],'lte':_0x5bf297[_0x24e36a(_0x3b8482._0x2ad243,_0x3b8482._0x2ad243,0x350,_0x3b8482._0x58be43)]},_0x1e99c1=!hasQueryIntersection(_0x266ca7,_0xd264e2);_0x1e99c1&&_0x3dcd10(),(_0x1e99c1||reloadMessagesCmd[_0x24e36a(0x34b,0x337,_0x3b8482._0x29e40f,_0x3b8482._0x4488fd)](_0x4a2fe4))&&(_0x43b094[CHAT_WORKER['INITIAL']]=yield spawn(function*_0x39d64b(){const _0x35a094={_0x247898:0x1e8,_0x41fb8c:0xe3};function _0x562e05(_0x28d9dc,_0x24dee9,_0x1c2f04,_0x1a5473){return _0x24e36a(_0x28d9dc-_0x22bcb5._0x51f1ef,_0x1a5473-_0x22bcb5._0x2fddd6,_0x24dee9,_0x1a5473-0x39);}let _0x44bcaf=null;try{const _0x440c3f=createCtrlCtxRef();_0x44bcaf=yield fork(fetchCtrl,{'name':CHAT_WORKER[_0x4e1840(_0xc42177._0x480c87,_0xc42177._0x39234,_0xc42177._0x4c7444,0x146)],'ctxRef':_0x440c3f});const _0x337d0c=_0x266ca7,_0x39545d=yield select(getChatMessageCount);if(_0x39545d<=-0x72d+-0x26c2+0x2def)throw new Error(_0x562e05(_0xc42177._0x516e3a,_0xc42177._0x1d86f9,_0xc42177._0xfe0e9f,_0xc42177._0x507bfb)+_0x4e1840(_0xc42177._0x5da94e,_0xc42177._0x4d64df,_0xc42177._0x5a455a,0x133)+_0x4e1840(_0xc42177._0x5b743b,_0xc42177._0x32a149,_0xc42177._0x2add15,_0xc42177._0x3be243)+'lable');const _0x545752=yield call(_0x372737[_0x562e05(_0xc42177._0x516e3a,0x459,_0xc42177._0x403623,_0xc42177._0x4e0975)][CHAT_WORKER['INITIAL']],{'query':_0x337d0c,'loaded':_0xd264e2,'count':_0x39545d,'ctxRef':_0x440c3f});if(_0x545752===LOADER_FAIL)throw new Error(_0x562e05(_0xc42177._0x67212a,_0xc42177._0x4d6fdf,0x451,_0xc42177._0xee440b)+_0x562e05(_0xc42177._0x5b12bb,_0xc42177._0x213ff1,0x44c,_0xc42177._0x53408a)+_0x4e1840(_0xc42177._0x5a455a,_0xc42177._0x5b743b,_0xc42177._0x34adef,_0xc42177._0x6bfeae)+_0x4e1840(_0xc42177._0x159cb9,0x132,0x137,_0xc42177._0x5e1e95)+'d='+_0x544596+_0x562e05(0x464,_0xc42177._0x67212a,0x440,0x446)+_0x337d0c?.['gte']+_0x562e05(_0xc42177._0x403623,0x42b,0x44d,_0xc42177._0x1e4ce0)+_0x337d0c?.[_0x562e05(_0xc42177._0xd27d81,_0xc42177._0x3ce727,_0xc42177._0x43a8a7,0x452)]+_0x4e1840(_0xc42177._0x4ad4c3,0x11c,_0xc42177._0x140439,0x135)+_0x39545d);else{if(isEmpty(_0x545752))throw new Error(_0x562e05(_0xc42177._0xbc2088,_0xc42177._0x2976e8,0x447,0x445)+_0x4e1840(0x152,_0xc42177._0x198dc6,_0xc42177._0x4b1ac4,_0xc42177._0x1da641)+_0x562e05(_0xc42177._0x30ad08,_0xc42177._0x44d21e,0x42f,_0xc42177._0x4b092f)+_0x4e1840(_0xc42177._0x4d2cf0,_0xc42177._0x496119,_0xc42177._0x2add15,0x129)+'gth='+_0x545752?.[_0x562e05(_0xc42177._0xfe0e9f,_0xc42177._0x4c0e11,_0xc42177._0x2976e8,0x41f)]+'\x20roomId='+_0x544596+_0x562e05(_0xc42177._0x4b092f,_0xc42177._0x5ed17d,_0xc42177._0x1a2e8c,_0xc42177._0x516e3a)+_0x337d0c?.[_0x4e1840(_0xc42177._0x50ae87,_0xc42177._0x13a070,_0xc42177._0x2a466a,0x152)]+_0x562e05(_0xc42177._0x4d6fdf,_0xc42177._0x152038,_0xc42177._0x5010e1,0x432)+_0x337d0c?.[_0x562e05(_0xc42177._0x10701d,_0xc42177._0x52fadb,_0xc42177._0x2976e8,_0xc42177._0x3ce727)]+_0x4e1840(0x152,_0xc42177._0x2accd0,_0xc42177._0x4dafd0,_0xc42177._0x198dc6)+_0x39545d);}return yield put(_0x398581,{'worker':CHAT_WORKER['INITIAL'],'events':_0x545752}),yield take(isUpdateChatMessagesByWorker(CHAT_WORKER[_0x562e05(_0xc42177._0x4af6ee,_0xc42177._0x4b6b02,0x434,0x438)])),!![];}catch(_0x4e92cc){yield taskErrorSaga(_0x562e05(_0xc42177._0xa1ab42,_0xc42177._0x4a2c55,_0xc42177._0x5b010c,_0xc42177._0x5885ca)+_0x4e1840(_0xc42177._0x3fcaa5,_0xc42177._0x1e3b53,_0xc42177._0x4d2cf0,_0xc42177._0x1c4b9e),_0x4e92cc);}finally{_0x44bcaf?.[_0x4e1840(0x15e,_0xc42177._0x3f7478,0x155,_0xc42177._0x44983f)]();}function _0x4e1840(_0xd17675,_0x1d6dcf,_0x16ce01,_0x2d7383){return _0x24e36a(_0xd17675-0x56,_0x2d7383- -_0x35a094._0x247898,_0xd17675,_0x2d7383-_0x35a094._0x41fb8c);}return![];})),yield _0x428b9e({'name':CHAT_WORKER[_0x428b35(_0x3b8482._0x559e14,_0x3b8482._0x4fdbc2,0x2d1,0x2ac)],'loader':_0x372737}),yield _0x428b9e({'name':CHAT_WORKER[_0x428b35(_0x3b8482._0x551191,_0x3b8482._0x4a84b6,_0x3b8482._0x2b1902,_0x3b8482._0x429645)],'loader':_0x372737});}}finally{_0x3dcd10();}}