function _0x572a(){const _0x477b54=['payload','>,\x20prev\x20is','2022ChQrpf','om\x20<','listView','for\x20the\x20ro','constructo','1031979uTVctV','652AmWzQR','toString','664kBrnmr','(((.+)+)+)','61010kXArRB','902dtnCdD','type','301282ekZIYU','27505fqumUh','1190374ECzCLS','unable\x20to\x20','apply','search','5173OerucH','86436rOwBmr'];_0x572a=function(){return _0x477b54;};return _0x572a();}(function(_0x2fe297,_0x591dd8){const _0x48bd0b={_0x5352c8:0x48,_0x5d6848:0x41,_0x5740cc:0x3f,_0x5271f0:0x3d,_0x384e42:0x191,_0x479ef7:0x19d,_0x40cc9b:0x198,_0x5f49df:0x190,_0x51683a:0x5b,_0xc48e4f:0x57,_0x5f1eac:0x1a9,_0x375cc8:0x19b,_0x551921:0x1a6,_0x501018:0x36,_0x84054d:0x38,_0x472f58:0x43,_0x1a57b6:0x44,_0x3a1ef3:0x3e,_0x435c75:0x47,_0x4d2d52:0x50,_0x54bd98:0x1a0,_0x5af70a:0x1a8,_0x5e85d8:0x1a4,_0x46498a:0x199,_0x4dde24:0x19d,_0x1c1e6b:0x57,_0x118a2d:0x55,_0x53cba8:0x54,_0x3c7337:0x54,_0x2f78f4:0x56},_0x2eb732={_0x20a4e0:0x144},_0x23afd2={_0x415114:0x11},_0x370e6e=_0x2fe297();function _0x6cc58b(_0x4c4f57,_0x3e7957,_0x23ccbf,_0x5915fe){return _0x95df(_0x23ccbf-_0x23afd2._0x415114,_0x3e7957);}function _0x3f25dc(_0x2ef7c5,_0x308c8f,_0x25556f,_0x2cb958){return _0x95df(_0x308c8f- -_0x2eb732._0x20a4e0,_0x25556f);}while(!![]){try{const _0x2b4e59=-parseInt(_0x3f25dc(_0x48bd0b._0x5352c8,_0x48bd0b._0x5d6848,_0x48bd0b._0x5740cc,_0x48bd0b._0x5271f0))/(0x342+0x509+-0x84a)+parseInt(_0x6cc58b(_0x48bd0b._0x384e42,_0x48bd0b._0x479ef7,_0x48bd0b._0x40cc9b,_0x48bd0b._0x5f49df))/(-0x611*0x1+0xb47+-0x534)+parseInt(_0x3f25dc(0x4d,0x50,_0x48bd0b._0x51683a,_0x48bd0b._0xc48e4f))/(0x44b*0x1+-0x67f*0x1+0x9*0x3f)+-parseInt(_0x6cc58b(_0x48bd0b._0x5f1eac,_0x48bd0b._0x375cc8,_0x48bd0b._0x551921,_0x48bd0b._0x479ef7))/(0x1f7e+-0x219f+0x225)*(parseInt(_0x3f25dc(_0x48bd0b._0x501018,0x42,_0x48bd0b._0x84054d,_0x48bd0b._0x472f58))/(0x241d+0x17ba+0x49a*-0xd))+parseInt(_0x3f25dc(_0x48bd0b._0x5352c8,0x4b,0x50,_0x48bd0b._0x1a57b6))/(-0x22d2+-0x15bb+0x3893)*(-parseInt(_0x3f25dc(_0x48bd0b._0x3a1ef3,_0x48bd0b._0x435c75,0x4b,_0x48bd0b._0x4d2d52))/(-0x262a+0x22cf+0x362*0x1))+parseInt(_0x6cc58b(_0x48bd0b._0x54bd98,0x1b4,_0x48bd0b._0x5af70a,_0x48bd0b._0x5e85d8))/(0x24de+0x1ee5+0x43bb*-0x1)*(parseInt(_0x6cc58b(0x195,_0x48bd0b._0x46498a,_0x48bd0b._0x4dde24,0x1a0))/(0x1d08+0x71*-0x8+-0x1977))+parseInt(_0x3f25dc(_0x48bd0b._0x1c1e6b,_0x48bd0b._0x118a2d,0x4e,_0x48bd0b._0x53cba8))/(-0x1a6b+-0x1*0x30b+0x1*0x1d80)*(parseInt(_0x3f25dc(_0x48bd0b._0x3c7337,_0x48bd0b._0x2f78f4,_0x48bd0b._0x118a2d,_0x48bd0b._0x118a2d))/(-0x2637+-0x1*0x1e4e+-0x4490*-0x1));if(_0x2b4e59===_0x591dd8)break;else _0x370e6e['push'](_0x370e6e['shift']());}catch(_0x53c1e5){_0x370e6e['push'](_0x370e6e['shift']());}}}(_0x572a,0xb495*0x17+0x1*0xbe39+-0x4eb36));const _0x10a797=(function(){const _0x1de425={_0x9b4835:0x4e9,_0x5a6d86:0x4df,_0x31bdb1:0x4ee,_0x27c3b7:0x4ef};let _0x1d2aac=!![];return function(_0x1e1832,_0x564f8a){const _0x455e4e=_0x1d2aac?function(){function _0x2e5902(_0x3f0965,_0x461d98,_0x171695,_0x589b32){return _0x95df(_0x3f0965-0x360,_0x589b32);}if(_0x564f8a){const _0x3a9427=_0x564f8a[_0x2e5902(_0x1de425._0x9b4835,_0x1de425._0x5a6d86,_0x1de425._0x31bdb1,_0x1de425._0x27c3b7)](_0x1e1832,arguments);return _0x564f8a=null,_0x3a9427;}}:function(){};return _0x1d2aac=![],_0x455e4e;};}()),_0x4762ef=_0x10a797(this,function(){const _0x45c3e2={_0x5c3d07:0x8a,_0x157779:0x90,_0xd85bf3:0x85,_0x4656dc:0x7f,_0x272bc1:0x79,_0x1d4c85:0x72,_0x1aace8:0x8c,_0x25f17f:0x86,_0x1d8ac6:0x96,_0x3c32f1:0x92,_0x36993f:0x9b,_0x397517:0x87,_0xf16415:0xa5,_0xa5d0d3:0x94,_0x3a5991:0x90,_0x190942:0x81},_0x45d971={_0x4e420f:0x10c},_0x35ec6b={_0x2d7427:0x225};function _0x25047b(_0x66fab7,_0x5435ad,_0xedf06f,_0x231170){return _0x95df(_0x66fab7- -_0x35ec6b._0x2d7427,_0x5435ad);}function _0xd6445b(_0x25bb49,_0x5ad9a4,_0x2168f2,_0x4623ba){return _0x95df(_0x25bb49- -_0x45d971._0x4e420f,_0x4623ba);}return _0x4762ef[_0xd6445b(_0x45c3e2._0x5c3d07,_0x45c3e2._0x157779,_0x45c3e2._0xd85bf3,_0x45c3e2._0x4656dc)]()[_0xd6445b(0x7e,0x82,_0x45c3e2._0x272bc1,_0x45c3e2._0x1d4c85)](_0xd6445b(_0x45c3e2._0x1aace8,_0x45c3e2._0x25f17f,0x81,_0x45c3e2._0x1d8ac6)+'+$')['toString']()[_0x25047b(-_0x45c3e2._0x3c32f1,-_0x45c3e2._0x36993f,-_0x45c3e2._0x397517,-0x93)+'r'](_0x4762ef)[_0x25047b(-_0x45c3e2._0x36993f,-_0x45c3e2._0xf16415,-_0x45c3e2._0xa5d0d3,-_0x45c3e2._0x3a5991)](_0xd6445b(0x8c,_0x45c3e2._0x3a5991,_0x45c3e2._0x190942,0x84)+'+$');});_0x4762ef();import{resetModuleStateCmd}from'../../lib/rootAction';import{memberDeviceOwnerChangeEvt}from'../../member';import{chatInit,chatReset}from'./chat-init.action';import{chatMessageMemberUpdateReducer}from'./chat-member-update.reducer';function _0x95df(_0x5dbbd0,_0x57180b){const _0x4da443=_0x572a();return _0x95df=function(_0x2d8c28,_0x3f8dd7){_0x2d8c28=_0x2d8c28-(0x28*0xe5+0x1888+-0xeb3*0x4);let _0x4aca68=_0x4da443[_0x2d8c28];return _0x4aca68;},_0x95df(_0x5dbbd0,_0x57180b);}export const getChatInitReducer=_0x24ba5b=>(_0x1ed960,_0x10bdb6)=>{const _0x9cf4d={_0x103c4e:0x20d,_0xa58e3d:0x215,_0x15477e:0x214,_0x2579f0:0x214,_0x123e52:0x21b,_0x37082b:0x216,_0x2aba7f:0x20f,_0x3c4286:0x205,_0x25a238:0x253,_0x2d18e3:0x24d,_0x36ddd9:0x24f,_0x26d57f:0x24f,_0x2fa922:0x254,_0x2ec2b9:0x214,_0x111a7f:0x21e,_0x3be686:0x224,_0x407b67:0x21c,_0x238135:0x246,_0x4f840f:0x243,_0x19af7f:0x248,_0x392ae9:0x23e},_0x7141c1={_0x312bf5:0xc4},_0x3730f7={_0x3b669f:0x87};function _0x3e84bb(_0x53d399,_0x3e9193,_0x509f89,_0x2d2bf5){return _0x95df(_0x509f89-_0x3730f7._0x3b669f,_0x3e9193);}function _0xb17570(_0x1bb552,_0x1cb4b2,_0x1cb19f,_0x197935){return _0x95df(_0x197935-_0x7141c1._0x312bf5,_0x1cb4b2);}switch(_0x10bdb6['type']){case chatInit['type']:{const {roomId:_0xc2ac9f,startSeq:_0x2b9519,anchor:_0x338ab0,filterNames:_0x55117a}=_0x10bdb6[_0x3e84bb(_0x9cf4d._0x103c4e,_0x9cf4d._0xa58e3d,_0x9cf4d._0x15477e,_0x9cf4d._0x2579f0)],{currentRoomId:_0x193a8b}=_0x1ed960;let _0x3188ed=_0x1ed960;return _0x193a8b&&(_0x3188ed={..._0x3188ed,'error':_0x3e84bb(_0x9cf4d._0x123e52,_0x9cf4d._0x37082b,_0x9cf4d._0x2aba7f,_0x9cf4d._0x3c4286)+'init\x20chat\x20'+_0xb17570(_0x9cf4d._0x25a238,_0x9cf4d._0x2d18e3,_0x9cf4d._0x36ddd9,0x256)+_0xb17570(_0x9cf4d._0x26d57f,_0x9cf4d._0x25a238,_0x9cf4d._0x2fa922,0x254)+_0xc2ac9f+(_0x3e84bb(_0x9cf4d._0x2ec2b9,_0x9cf4d._0x111a7f,_0x9cf4d._0xa58e3d,0x214)+'\x20active\x20<')+_0x193a8b+'>'}),{..._0x3188ed,'currentRoomId':_0xc2ac9f,'filterNames':_0x55117a,'listView':{..._0x1ed960[_0x3e84bb(0x21f,_0x9cf4d._0x3be686,0x218,_0x9cf4d._0x407b67)],'startSeq':_0x2b9519,'anchor':_0x338ab0}};}case chatReset[_0xb17570(_0x9cf4d._0x238135,_0x9cf4d._0x4f840f,0x23d,_0x9cf4d._0x19af7f)]:{const {lastMessageByRoomId:_0x2b403b,draftMessageByRoomId:_0x294772}=_0x1ed960;return{..._0x24ba5b,'lastMessageByRoomId':_0x2b403b,'draftMessageByRoomId':_0x294772};}case memberDeviceOwnerChangeEvt['type']:return chatMessageMemberUpdateReducer(_0x1ed960,_0x10bdb6);case resetModuleStateCmd[_0xb17570(_0x9cf4d._0x392ae9,0x250,0x250,_0x9cf4d._0x19af7f)]:return _0x24ba5b;default:return _0x1ed960;}};