(function(_0x26b200,_0x108969){const _0x25a171={_0x342a34:0x179,_0x40c3fb:0x162,_0x225143:0x167,_0x5dc81e:0x87,_0x2c9956:0x91,_0x2e1b7d:0x1a6,_0x2179f0:0x194,_0xd586bd:0x181,_0x157a76:0x16d,_0x498dfe:0x171,_0x21b9a4:0x164,_0x3cfe4c:0x18c,_0x45b08e:0x18a,_0x1f9aab:0x17c,_0x290b00:0x85,_0x109d37:0x9b,_0x49785d:0x190,_0x1ebc97:0x176,_0x22dd9b:0xb8,_0x1f416b:0x15c,_0x443795:0x16f,_0x50dac1:0x170,_0x1f6599:0x15e,_0x510fb3:0x151,_0x47039d:0x89,_0x416414:0x97,_0x389a59:0xa8,_0x1aa6ac:0xab,_0x147911:0xa4,_0x4d481d:0xbe},_0xa7f64b={_0x4a4191:0x2ac};function _0x1d9a86(_0x58e270,_0xf9f134,_0x4e0a29,_0x584719){return _0x45e8(_0xf9f134- -0x1d3,_0x58e270);}const _0x1330ef=_0x26b200();function _0x4933f1(_0x549192,_0xce92b0,_0x53ee3f,_0x3abee9){return _0x45e8(_0xce92b0- -_0xa7f64b._0x4a4191,_0x3abee9);}while(!![]){try{const _0x123e5c=parseInt(_0x4933f1(-_0x25a171._0x342a34,-_0x25a171._0x40c3fb,-_0x25a171._0x225143,-0x164))/(0x403*0x6+0x2516+0x9b*-0x65)+-parseInt(_0x1d9a86(-_0x25a171._0x5dc81e,-_0x25a171._0x2c9956,-0x80,-0x88))/(0xd96+0x170f+-0x24a3)*(parseInt(_0x4933f1(-_0x25a171._0x2e1b7d,-_0x25a171._0x2179f0,-_0x25a171._0xd586bd,-0x187))/(-0xaf0+0x2610+-0x1b1d))+parseInt(_0x4933f1(-_0x25a171._0x157a76,-_0x25a171._0x498dfe,-0x177,-_0x25a171._0x21b9a4))/(0xddf+-0x1a99+-0xe9*-0xe)*(-parseInt(_0x4933f1(-_0x25a171._0x3cfe4c,-_0x25a171._0x45b08e,-_0x25a171._0x1f9aab,-0x19c))/(0x7*-0x48b+-0x1*0x71b+0x26ed))+parseInt(_0x1d9a86(-_0x25a171._0x5dc81e,-_0x25a171._0x290b00,-_0x25a171._0x109d37,-0x93))/(-0x1df2+-0x1f49*-0x1+-0x151)*(parseInt(_0x4933f1(-0x18f,-_0x25a171._0x49785d,-_0x25a171._0x1ebc97,-0x1a4))/(0x2212*-0x1+0x1fed+0x22c))+-parseInt(_0x1d9a86(-0xa1,-0xb6,-0xc4,-_0x25a171._0x22dd9b))/(-0x14a1*0x1+-0x1d9b+0x3244)*(parseInt(_0x4933f1(-_0x25a171._0x1f416b,-_0x25a171._0x443795,-_0x25a171._0x50dac1,-_0x25a171._0x498dfe))/(-0x96a*-0x4+0xb*0x2f5+-0x4626))+parseInt(_0x4933f1(-_0x25a171._0x1f6599,-_0x25a171._0x225143,-0x179,-_0x25a171._0x510fb3))/(0x15*0x35+-0x361*0xa+0x1d7b)*(-parseInt(_0x1d9a86(-_0x25a171._0x47039d,-_0x25a171._0x416414,-_0x25a171._0x389a59,-_0x25a171._0x1aa6ac))/(-0x1*-0x1b59+-0x1*-0xa9b+-0x25e9))+parseInt(_0x1d9a86(-_0x25a171._0x147911,-0xae,-_0x25a171._0x4d481d,-0xc9))/(-0x11*-0x20b+-0x1*-0x2047+-0x42f6);if(_0x123e5c===_0x108969)break;else _0x1330ef['push'](_0x1330ef['shift']());}catch(_0x2db305){_0x1330ef['push'](_0x1330ef['shift']());}}}(_0x580b,0x1c951*0x1+-0xa*0x59f0+0x1*0x454c5));const _0xeebb25=(function(){let _0x21cfab=!![];return function(_0x567539,_0x5e9545){const _0x147233={_0x17f5c8:0x94,_0x30a1f7:0x8d,_0x4353ab:0x95},_0x3148b4=_0x21cfab?function(){const _0x5e0fd7={_0x12a668:0x8a};function _0x42caac(_0xc5c945,_0x378b1b,_0x4fb27d,_0x2deebe){return _0x45e8(_0xc5c945- -_0x5e0fd7._0x12a668,_0x378b1b);}if(_0x5e9545){const _0xcca01e=_0x5e9545[_0x42caac(_0x147233._0x17f5c8,_0x147233._0x30a1f7,_0x147233._0x4353ab,_0x147233._0x17f5c8)](_0x567539,arguments);return _0x5e9545=null,_0xcca01e;}}:function(){};return _0x21cfab=![],_0x3148b4;};}()),_0x8fbdfb=_0xeebb25(this,function(){const _0x8c2347={_0x356704:0x136,_0x5210de:0x149,_0x5d8df0:0x146,_0x545162:0x131,_0x37381c:0x1f5,_0x199a55:0x20c,_0x4c701d:0x200,_0x206a13:0x20e,_0x2bebb4:0x134,_0xefeb50:0x128,_0x33c476:0x229,_0x3a04ee:0x227,_0x134436:0x225,_0x1ce945:0x21a,_0x484fbf:0x1fd,_0x462373:0x1fc,_0x39a456:0x20e,_0x2fb2fc:0x126},_0x470dec={_0x47e5f7:0x352},_0x25694d={_0x5b726d:0x269};function _0x3ca7b4(_0x1a771e,_0x183ba1,_0x4ac72f,_0x3d09cc){return _0x45e8(_0x1a771e- -_0x25694d._0x5b726d,_0x3d09cc);}function _0xf764e5(_0x492617,_0x1c0857,_0x2d810d,_0x58b60f){return _0x45e8(_0x58b60f- -_0x470dec._0x47e5f7,_0x2d810d);}return _0x8fbdfb[_0x3ca7b4(-_0x8c2347._0x356704,-_0x8c2347._0x5210de,-_0x8c2347._0x5d8df0,-_0x8c2347._0x545162)]()[_0xf764e5(-_0x8c2347._0x37381c,-_0x8c2347._0x199a55,-_0x8c2347._0x4c701d,-_0x8c2347._0x206a13)](_0x3ca7b4(-_0x8c2347._0x2bebb4,-0x136,-0x145,-_0x8c2347._0xefeb50)+'+$')[_0xf764e5(-_0x8c2347._0x33c476,-_0x8c2347._0x3a04ee,-_0x8c2347._0x134436,-0x21f)]()['constructo'+'r'](_0x8fbdfb)[_0xf764e5(-_0x8c2347._0x1ce945,-_0x8c2347._0x484fbf,-_0x8c2347._0x462373,-_0x8c2347._0x39a456)](_0x3ca7b4(-0x134,-_0x8c2347._0x5210de,-_0x8c2347._0xefeb50,-_0x8c2347._0x2fb2fc)+'+$');});_0x8fbdfb();import{createSelector}from'@reduxjs/toolkit';import{isFeatureSupported,FEATURES}from'@holepunchto/keet-schemas/versions';import{canModerate,getCanMyMemberManageRoles,getMyMemberCapabilities}from'../member';import{ROOM_STATE_KEY,ROOM_TYPE,ROOM_PREFERENCES,defaultRoomPreferences,DELIVERY_STATUS}from'./room.constant';import{getRoomMainId}from'./main/room-main.reducer';import{getRoomPairingCount}from'./joint/room-joint.reducer';import{getRoomListAllIds}from'./list/room-list.reducer';import{getChatLastMessage,getChatMessageById,getChatMyMessageNotSeenByPeer}from'../chat';import{getMemberBlocked}from'../identity';export const getRoomState=_0x43a189=>_0x43a189[ROOM_STATE_KEY];export const getRoomItemById=_0x42665d=>_0x44983c=>getRoomState(_0x44983c)[_0x473ca8(0x472,0x481,0x487,0x496)][_0x42665d];export const getRoomItemCount=_0x5e18fb=>Object[_0x4f2610(0xa8,0xa2,0x83,0x97)](getRoomState(_0x5e18fb)[_0x473ca8(0x473,0x497,0x487,0x471)])[_0x4f2610(0xb1,0xb4,0xa5,0xb5)];export const getRoomTitle=_0x3049a8=>_0xe8c922=>getRoomItemById(_0x3049a8)(_0xe8c922)?.[_0x4f2610(0xa9,0x8d,0x75,0x8d)]||'';export const getRoomDescription=_0x2da378=>_0x1279f2=>getRoomItemById(_0x2da378)(_0x1279f2)?.[_0x473ca8(0x478,0x486,0x484,0x47d)+'n']||'';export const getRoomDmMemberId=_0x38b16f=>_0x532af3=>getRoomItemById(_0x38b16f)(_0x532af3)?.[_0x473ca8(0x46c,0x480,0x474,0x463)]||'';export const getRoomDmMemberBlocked=_0x4b51ba=>_0x567d51=>{const _0x422ffa=getRoomDmMemberId(_0x4b51ba)(_0x567d51);if(!_0x422ffa)return![];return getMemberBlocked(_0x567d51,_0x422ffa);};export const getRoomAvatarUrl=_0x5618d5=>_0x4e2b98=>getRoomItemById(_0x5618d5)(_0x4e2b98)?.[_0x4f2610(0x8f,0xba,0x96,0xa5)]||'';export const getRoomShowWarning=_0x482e97=>_0x35e923=>getRoomItemById(_0x482e97)(_0x35e923)?.[_0x4f2610(0x79,0x95,0xac,0x93)+'g']||![];export const getRoomAvatarUrlMedium=_0x5cac6d=>_0xca2516=>{const _0x27ed4d={_0x48fdf8:0x363,_0x1f4205:0x374,_0x4d6afc:0x381,_0x1dd63d:0x38e,_0x55242f:0x368,_0x3a07cf:0x355,_0x249a13:0x35a,_0x280a5c:0x35c,_0x398aa7:0x378},_0x2c8497={_0x1391c5:0x7b},_0xce8690={_0x1fa678:0x187,_0x34bf7a:0x30b};function _0x2c38cb(_0x108ddd,_0x10165d,_0x24a233,_0x14aa92){return _0x473ca8(_0x108ddd-0x31,_0x10165d-_0xce8690._0x1fa678,_0x108ddd- -_0xce8690._0x34bf7a,_0x14aa92);}function _0x3c7442(_0x370b51,_0x5d5ba5,_0x3e2db7,_0x544cb0){return _0x473ca8(_0x370b51-_0x2c8497._0x1391c5,_0x5d5ba5-0x1bf,_0x5d5ba5- -0x113,_0x3e2db7);}const _0x872f17=getRoomState(_0xca2516)[_0x3c7442(_0x27ed4d._0x48fdf8,_0x27ed4d._0x1f4205,_0x27ed4d._0x4d6afc,_0x27ed4d._0x1dd63d)][_0x5cac6d];return _0x872f17?_0x872f17['avatarUrlM'+_0x3c7442(_0x27ed4d._0x55242f,_0x27ed4d._0x3a07cf,_0x27ed4d._0x249a13,0x349)]||_0x872f17[_0x3c7442(_0x27ed4d._0x280a5c,0x372,0x371,_0x27ed4d._0x398aa7)]||'':'';};export const getRoomAvatarColor=_0x5ce188=>_0x2dbc11=>getRoomItemById(_0x5ce188)(_0x2dbc11)?.[_0x473ca8(0x463,0x483,0x47e,0x462)+'r']||'';export const getRoomType=_0x1ee606=>_0x3f1447=>getRoomItemById(_0x1ee606)(_0x3f1447)?.['roomType']||'';export const getRoomVersion=_0x26fa5e=>_0x50645d=>getRoomItemById(_0x26fa5e)(_0x50645d)?.[_0x473ca8(0x475,0x477,0x486,0x49b)]||-0x24b*-0x3+0x4c3+-0xba4;function _0x580b(){const _0xd08f97=['showWarnin','dmMemberId','BROADCAST','isDebuggin','keys','PERMISSION','ize','experiment','deviceId','isMembersh','eryKeyById','avatarColo','fileTotalS','toString','roomType','(((.+)+)+)','event','descriptio','avatarUrl','version','roomById','1628tPlANR','22rdUTrT','1341TlMtpt','isReadOnly','sentLength','READ','gDisabled','2kMBjqq','NOTIFICATI','search','73220IspBap','coreId','seq','length','roomDiscov','16022RmuMug','memberCoun','isAppendin','SENT','18MlGtDP','399153muRcJb','ipEventsDi','sabled','edium','593999nUrkaO','16232UBqHwP','apply','onsById','title','latest','3775pOUqGX','ONS','NONE','7888632joSsuf'];_0x580b=function(){return _0xd08f97;};return _0x580b();}export const getRoomIsLatestVersion=_0x1ba191=>_0x386cea=>!!getRoomItemById(_0x1ba191)(_0x386cea)?.[_0x473ca8(0x477,0x453,0x46e,0x456)];export const getRoomIsReadOnly=_0x2d2a15=>_0x1d4ae4=>getRoomItemById(_0x2d2a15)(_0x1d4ae4)?.[_0x4f2610(0xc3,0xa3,0xc4,0xab)]??!![];function _0x4f2610(_0x4204bc,_0x5575de,_0x45ff8c,_0x5f5ced){const _0x34b75b={_0x20c32c:0x93};return _0x45e8(_0x5f5ced- -_0x34b75b._0x20c32c,_0x4204bc);}export const getRoomIsAppendingDisabled=_0x46a655=>_0x4ac1eb=>getRoomItemById(_0x46a655)(_0x4ac1eb)?.[_0x4f2610(0xaf,0xc6,0xbb,0xb9)+_0x4f2610(0xb5,0xba,0xc6,0xae)]??![];export const getRoomIsExperimental=_0x13e396=>_0x237a5c=>!!getRoomItemById(_0x13e396)(_0x237a5c)?.[_0x4f2610(0xa5,0xae,0x9e,0x9a)+'al'];export const getRoomIsDm=_0x881e92=>_0x25f05a=>getRoomType(_0x881e92)(_0x25f05a)===ROOM_TYPE['DM'];export const getRoomIsBroadcast=_0x21c791=>_0x5cfb34=>getRoomType(_0x21c791)(_0x5cfb34)===ROOM_TYPE[_0x4f2610(0x99,0x95,0x8b,0x95)];export const getRoomCanCall=_0x560d24=>_0x425c31=>!!getRoomItemById(_0x560d24)(_0x425c31)?.['canCall'];export const getRoomIsMembershipEventsDisabled=_0x19ebdd=>_0x14a510=>!!getRoomItemById(_0x19ebdd)(_0x14a510)?.[_0x4f2610(0x90,0x8a,0x90,0x9c)+_0x4f2610(0x6d,0x97,0x7c,0x86)+_0x473ca8(0x455,0x44f,0x467,0x44b)];export const getRoomIsCallEnabled=_0x57e3ff=>createSelector([getRoomItemById(_0x57e3ff),getMyMemberCapabilities(_0x57e3ff)],(_0x2ac9da,_0x66c199)=>_0x2ac9da?.['canCall']||canModerate(_0x66c199));export const getRoomIsCompatible=_0x5b5915=>_0x414dad=>getRoomItemById(_0x5b5915)(_0x414dad)?.['isCompatib'+'le']!==![];export const getRoomLeavingDirty=_0x206aef=>_0xb64c2d=>getRoomItemById(_0x206aef)(_0xb64c2d)?.[_0x473ca8(0x496,0x49f,0x486,0x48b)]===-0x220f*0x1+0xb11*-0x3+-0x21a1*-0x2;function _0x473ca8(_0x53085d,_0x2f0194,_0x4e51ba,_0x2e2ab0){const _0x55981a={_0x12ca84:0x34d};return _0x45e8(_0x4e51ba-_0x55981a._0x12ca84,_0x2e2ab0);}export const getRoomIsFirstRoom=(_0xd2e194,_0x222f5b)=>{const _0x1520ce={_0xf3a577:0x16b,_0x2552d0:0x171,_0x1e2f20:0x163,_0x3ecaef:0x17c},_0xf7fb5c={_0x282dcb:0x230},_0x171efd={_0x27b611:0x11a,_0x350956:0xe3},_0x26014a=getRoomListAllIds(_0xd2e194);function _0x253a8f(_0x4351ba,_0x26f304,_0x5b15ed,_0x1bafad){return _0x473ca8(_0x4351ba-_0x171efd._0x27b611,_0x26f304-_0x171efd._0x350956,_0x26f304- -0x32a,_0x1bafad);}const _0x178b26=getRoomPairingCount(_0xd2e194);function _0x3d9331(_0x4b16fe,_0x5c1b1,_0x388c96,_0x5eff){return _0x4f2610(_0x5c1b1,_0x5c1b1-0x120,_0x388c96-0x1b1,_0x5eff-_0xf7fb5c._0x282dcb);}if(!_0x222f5b||_0x26014a[_0x253a8f(0x16d,_0x1520ce._0xf3a577,_0x1520ce._0x2552d0,0x172)]>-0x11ce+-0x11*0xd3+-0x2*-0xfe9||_0x178b26>-0x2*-0x556+0x11*0x1+-0x1ca*0x6)return![];return _0x26014a[_0x253a8f(0x176,0x16b,_0x1520ce._0x1e2f20,_0x1520ce._0x3ecaef)]===-0x201b*-0x1+0xb*0x14f+-0x2e80||_0x26014a[-0x11ef*0x1+-0x1*-0x107+-0x2*-0x874]===_0x222f5b;};export const getRoomMemberCount=_0x6eefe8=>_0x393f3f=>getRoomItemById(_0x6eefe8)(_0x393f3f)?.[_0x473ca8(0x47e,0x49f,0x498,0x4b0)+'t']??0x731*-0x5+0x183c+0xbb9;export const getRoomIsDebugging=_0x380597=>_0x30ec1e=>getRoomItemById(_0x380597)(_0x30ec1e)?.[_0x473ca8(0x45a,0x48c,0x476,0x48e)+'g']??![];export const getRoomAllNotifications=_0x461602=>getRoomState(_0x461602)['notificati'+'onsById'];export const getRoomNotificationById=_0x1c9a8e=>_0x48e021=>{const _0x2ad74c={_0x156baf:0x63,_0x524def:0x6b,_0x84ac84:0x5f,_0x1b6e1b:0x74,_0x472845:0x8c,_0x381474:0x81,_0x525f6a:0x9f,_0x3494a7:0x67,_0x3d5484:0x5c,_0x274471:0x54,_0x2ef473:0x81,_0x2bf541:0xce,_0x1edbbf:0xd2,_0x47a68f:0xc2},_0x2ccffc={_0x4c8630:0x170},_0x5c8ac8={_0x1ad942:0xc9,_0x485f88:0x409};function _0x52b525(_0x1e6970,_0x2a1bec,_0x57f92b,_0x35636a){return _0x473ca8(_0x1e6970-_0x5c8ac8._0x1ad942,_0x2a1bec-0x157,_0x1e6970- -_0x5c8ac8._0x485f88,_0x57f92b);}function _0x458192(_0x26a4a7,_0x41d654,_0x3db32e,_0x149dba){return _0x4f2610(_0x26a4a7,_0x41d654-0x147,_0x3db32e-_0x2ccffc._0x4c8630,_0x3db32e- -0x162);}const _0x5be8d8=getRoomState(_0x48e021)['notificati'+_0x52b525(_0x2ad74c._0x156baf,_0x2ad74c._0x524def,_0x2ad74c._0x84ac84,_0x2ad74c._0x1b6e1b)]?.[_0x1c9a8e];return _0x5be8d8?.[ROOM_PREFERENCES[_0x52b525(0x87,_0x2ad74c._0x472845,_0x2ad74c._0x381474,_0x2ad74c._0x525f6a)+_0x52b525(_0x2ad74c._0x3494a7,_0x2ad74c._0x3d5484,_0x2ad74c._0x274471,_0x2ad74c._0x2ef473)]]??defaultRoomPreferences[ROOM_PREFERENCES['NOTIFICATI'+_0x458192(-_0x2ad74c._0x2bf541,-0xec,-_0x2ad74c._0x1edbbf,-_0x2ad74c._0x47a68f)]];};export const getIsRoomDm=_0x484ea5=>createSelector(getRoomItemById(_0x484ea5),_0x5ab90f=>_0x5ab90f?.[_0x473ca8(0x489,0x46d,0x481,0x49b)]===ROOM_TYPE['DM']);export const canCurrentMemberManageRoles=_0x529fdf=>{const _0x157eac={_0x54b8fe:0x9a,_0x12bbd1:0x92,_0x53a76c:0x80,_0x9453ed:0xa0},_0x39b315={_0x1eae31:0x8a,_0x278e5e:0x518},_0x486f95={_0x3031ca:0x1b5},_0x52753d=getRoomMainId(_0x529fdf);function _0xa89af5(_0x2d8b4a,_0xc43303,_0x46480a,_0x42bafa){return _0x473ca8(_0x2d8b4a-_0x486f95._0x3031ca,_0xc43303-0xbf,_0xc43303- -0x86,_0x2d8b4a);}function _0x546ade(_0x403c61,_0xe797cd,_0x113892,_0x1be563){return _0x473ca8(_0x403c61-0x140,_0xe797cd-_0x39b315._0x1eae31,_0xe797cd- -_0x39b315._0x278e5e,_0x1be563);}const _0x340a1f=getRoomItemById(_0x52753d)(_0x529fdf),_0x3f457d=isFeatureSupported(_0x340a1f?.[_0x546ade(-_0x157eac._0x54b8fe,-_0x157eac._0x12bbd1,-0x80,-_0x157eac._0x53a76c)],FEATURES[_0x546ade(-0xb5,-_0x157eac._0x9453ed,-_0x157eac._0x54b8fe,-0xb8)+'_DOWNGRADE']);return _0x3f457d&&getCanMyMemberManageRoles(_0x52753d)(_0x529fdf);};function _0x45e8(_0x580b94,_0x45e84b){const _0x5f00d4=_0x580b();return _0x45e8=function(_0x27b284,_0x2cd06e){_0x27b284=_0x27b284-(-0x3eb+0x493+0x70);let _0x40d9f4=_0x5f00d4[_0x27b284];return _0x40d9f4;},_0x45e8(_0x580b94,_0x45e84b);}export const getIsRoomRepairing=_0x38408e=>_0x317a63=>getRoomItemById(_0x38408e)(_0x317a63)?.['isRepairin'+'g'];export const getRoomDiscoveryKeyById=_0x44df72=>_0x218014=>getRoomState(_0x218014)[_0x4f2610(0xc3,0xcb,0xa7,0xb6)+_0x4f2610(0x82,0x9b,0xa0,0x9d)][_0x44df72];export const getRoomStats=_0x4ad07c=>getRoomState(_0x4ad07c)['stats'];export const getIsChatMessageSent=_0x42b47c=>_0x10f320=>{const _0x2b6426={_0x18040f:0x36d,_0x116f82:0x383,_0x376cd7:0x379,_0x48b5c4:0x1af,_0x48f825:0x199,_0x440cef:0x1a8,_0x3093c2:0x1ae,_0x2231b5:0x368,_0x453c28:0x365,_0x571e3d:0x185},_0x257af8={_0x34bf9b:0x90,_0x1e255e:0x8,_0x5adf93:0x126},_0x45bb5e={_0x142d1a:0x14c},_0x4e516a=getRoomMainId(_0x10f320);function _0xb76fc8(_0x489380,_0xe2593a,_0xcf748c,_0x552608){return _0x4f2610(_0xe2593a,_0xe2593a-0x1d9,_0xcf748c-_0x45bb5e._0x142d1a,_0x489380- -0x24a);}function _0x477e61(_0x513c09,_0x5d8487,_0x338108,_0x54603d){return _0x473ca8(_0x513c09-_0x257af8._0x34bf9b,_0x5d8487-_0x257af8._0x1e255e,_0x513c09- -_0x257af8._0x5adf93,_0x54603d);}const _0x1eb824=getRoomItemById(_0x4e516a)(_0x10f320),_0x150b5f=getChatMessageById(_0x10f320,_0x42b47c);if(!_0x1eb824||!_0x150b5f)return![];return _0x150b5f[_0x477e61(_0x2b6426._0x18040f,_0x2b6426._0x116f82,0x377,_0x2b6426._0x376cd7)][_0xb76fc8(-_0x2b6426._0x48b5c4,-_0x2b6426._0x48f825,-_0x2b6426._0x440cef,-_0x2b6426._0x3093c2)]!==_0x1eb824['deviceId']||_0x150b5f[_0x477e61(_0x2b6426._0x18040f,_0x2b6426._0x2231b5,_0x2b6426._0x453c28,0x35b)]['seq']<_0x1eb824[_0xb76fc8(-0x19e,-_0x2b6426._0x571e3d,-_0x2b6426._0x3093c2,-0x1ac)];};export const getLastMessageDeliveryStatus=_0x479b3c=>{const _0x535c7a={_0x34fce7:0x4d6,_0x378f80:0x4d9,_0x2c87b7:0x4be,_0x4920a1:0x4c9,_0x4b75bc:0x4c7,_0x2a0e02:0x4dd,_0x599831:0x2fc,_0x28c976:0x2e2,_0x3d51b1:0x2cd,_0x2e2b60:0x2cf,_0x27945e:0x4d2,_0x13967a:0x4da,_0x176629:0x4d1,_0xe7e4b2:0x2f0,_0xa390ea:0x2e8,_0x42fa04:0x301,_0x5b1324:0x2de,_0x1985df:0x2f9,_0x2bd8d8:0x2ea,_0x320825:0x2c7,_0x390894:0x2e1,_0x51ecff:0x2e8,_0x253c20:0x4d4,_0x47930e:0x4ba,_0x35008d:0x4de},_0x454542={_0x117ce4:0x1a2},_0x218244=getRoomIsDm(_0x479b3c);return _0x4def76=>{const {peerNotSeen:_0x2ee1c2,message:_0xc188be}=getChatLastMessage(_0x4def76,_0x479b3c);if(!_0xc188be?.['local']||_0xc188be[_0x336932(0x4c2,_0x535c7a._0x34fce7,_0x535c7a._0x378f80,_0x535c7a._0x2c87b7)])return DELIVERY_STATUS[_0x336932(_0x535c7a._0x4920a1,0x4c9,_0x535c7a._0x4b75bc,_0x535c7a._0x2a0e02)];const _0x45847e=_0x218244(_0x4def76),_0x219041=!_0x2ee1c2&&_0x45847e;if(_0x219041)return DELIVERY_STATUS[_0x2ce5fe(_0x535c7a._0x599831,_0x535c7a._0x28c976,_0x535c7a._0x3d51b1,_0x535c7a._0x2e2b60)];function _0x336932(_0x2363c4,_0x3cf22f,_0x20c43f,_0x56068f){return _0x45e8(_0x20c43f-0x3a3,_0x56068f);}const _0x5a9164=getRoomItemById(_0x479b3c)(_0x4def76);function _0x2ce5fe(_0x29fc4a,_0x139255,_0x314b2f,_0x29b43e){return _0x45e8(_0x139255-_0x454542._0x117ce4,_0x29b43e);}if(!_0x5a9164)return DELIVERY_STATUS[_0x336932(0x4dd,0x4c2,_0x535c7a._0x4b75bc,_0x535c7a._0x27945e)];const _0x2093fe=_0xc188be['coreId']['deviceId']!==_0x5a9164[_0x336932(_0x535c7a._0x13967a,_0x535c7a._0x4920a1,_0x535c7a._0x176629,0x4e5)]||_0xc188be[_0x2ce5fe(_0x535c7a._0xe7e4b2,_0x535c7a._0xa390ea,_0x535c7a._0x42fa04,0x2fd)][_0x2ce5fe(_0x535c7a._0x5b1324,0x2e9,_0x535c7a._0x1985df,_0x535c7a._0x2bd8d8)]<_0x5a9164[_0x2ce5fe(_0x535c7a._0x320825,_0x535c7a._0x390894,_0x535c7a._0x51ecff,0x2e3)];return _0x2093fe?DELIVERY_STATUS['SENT']:DELIVERY_STATUS[_0x336932(_0x535c7a._0x253c20,_0x535c7a._0x47930e,_0x535c7a._0x4b75bc,_0x535c7a._0x35008d)];};};export const getChatMessageDeliveryStatus=_0x45a8fc=>{const _0x17b9e6={_0x3c2869:0x277,_0x3a029d:0x257,_0x5993d6:0x265,_0x571575:0x262,_0x39b932:0x254,_0x41df3c:0x233},_0x4922b2={_0x1b1b60:0x389},_0x5d4a3e=getChatMyMessageNotSeenByPeer(_0x45a8fc),_0x11bdda=getIsChatMessageSent(_0x45a8fc);return _0x3b5ac6=>{const _0x48ab0e=getChatMessageById(_0x3b5ac6,_0x45a8fc)?.['local'];if(!_0x48ab0e)return DELIVERY_STATUS[_0x130fcf(-_0x17b9e6._0x3c2869,-_0x17b9e6._0x3a029d,-_0x17b9e6._0x5993d6,-_0x17b9e6._0x571575)];function _0x101eec(_0x506848,_0x58fd1e,_0x2a589a,_0x1ea21d){return _0x45e8(_0x58fd1e-0xcf,_0x1ea21d);}function _0x130fcf(_0x3bcd34,_0x44cfe4,_0x2f4e88,_0x5ef24d){return _0x45e8(_0x2f4e88- -_0x4922b2._0x1b1b60,_0x3bcd34);}const _0x36698d=!_0x5d4a3e(_0x3b5ac6);if(_0x36698d)return DELIVERY_STATUS[_0x101eec(0x219,0x20f,0x20c,0x22a)];const _0x1d29a8=_0x11bdda(_0x3b5ac6);return _0x1d29a8?DELIVERY_STATUS[_0x130fcf(-_0x17b9e6._0x39b932,-_0x17b9e6._0x41df3c,-0x23c,-0x23b)]:DELIVERY_STATUS['NONE'];};};export const getRoomFileTotalSize=_0x8f63d2=>_0x49a179=>getRoomItemById(_0x8f63d2)(_0x49a179)?.[_0x473ca8(0x495,0x476,0x47f,0x492)+_0x4f2610(0x7e,0x8d,0xa2,0x99)];