function _0x3d24(_0x36663e,_0x3bd93c){const _0xfe8f8c=_0x3471();return _0x3d24=function(_0x442c27,_0x4f777f){_0x442c27=_0x442c27-(0x1b*0x12e+0x7*0x478+-0x1ebf*0x2);let _0x1f4f7a=_0xfe8f8c[_0x442c27];return _0x1f4f7a;},_0x3d24(_0x36663e,_0x3bd93c);}(function(_0x28cd1e,_0x3a40b2){const _0x536fc8={_0x5b3b20:0x252,_0x15e9b6:0x27d,_0x81ee4a:0x260,_0x246731:0x251,_0x11915e:0x26c,_0x107f6b:0x25f,_0x21797c:0x211,_0x1953e4:0x21c,_0x38142b:0x219,_0x3c80fd:0x233,_0x356ae1:0x24f,_0x1bab0d:0x266,_0xae9ac9:0x22c,_0x1e25c3:0x250,_0x5d9b87:0x245,_0x5db8a1:0x22a,_0x2e5fa0:0x22b,_0x3291b6:0x21e,_0x23efa4:0x258,_0x54ce7c:0x222,_0x388d51:0x22e,_0xe465d4:0x20a,_0x5c9140:0x21f,_0xc8ae88:0x1fe,_0x377e1c:0x200,_0xd94c16:0x1d6,_0x297d1e:0x1e8,_0x717f34:0x29b,_0x2df6fa:0x253,_0x5e5374:0x26f,_0x1b8a2b:0x20e,_0x17b800:0x246,_0x570c9e:0x227,_0x1bae03:0x227,_0x11d778:0x228},_0x1a6dd5={_0x50d00c:0x58},_0x50dd75={_0x20ec5c:0x99};function _0x4c33ac(_0x380cc1,_0x23b004,_0x11d675,_0x5b43d2){return _0x3d24(_0x11d675-_0x50dd75._0x20ec5c,_0x5b43d2);}function _0x24aba3(_0x335763,_0x1560a9,_0x49a927,_0xe7154c){return _0x3d24(_0x335763-_0x1a6dd5._0x50d00c,_0xe7154c);}const _0xde4a23=_0x28cd1e();while(!![]){try{const _0x351406=parseInt(_0x4c33ac(_0x536fc8._0x5b3b20,_0x536fc8._0x15e9b6,_0x536fc8._0x81ee4a,0x26e))/(-0x155f*0x1+-0xc*0x16+-0x1de*-0xc)+parseInt(_0x24aba3(_0x536fc8._0x246731,_0x536fc8._0x11915e,0x278,_0x536fc8._0x107f6b))/(-0x1*0xef+0x25b3+-0x1261*0x2)*(parseInt(_0x24aba3(_0x536fc8._0x21797c,_0x536fc8._0x1953e4,_0x536fc8._0x38142b,_0x536fc8._0x3c80fd))/(-0x8d3*-0x2+-0x1*0x2269+0x10c6))+-parseInt(_0x24aba3(_0x536fc8._0x356ae1,_0x536fc8._0x1bab0d,0x24a,0x27f))/(-0x363*-0x3+0x1*-0xd03+0x16f*0x2)*(parseInt(_0x4c33ac(_0x536fc8._0xae9ac9,_0x536fc8._0x1e25c3,_0x536fc8._0x5d9b87,_0x536fc8._0x5db8a1))/(-0x1865+-0x1880+0x30ea))+parseInt(_0x24aba3(_0x536fc8._0x2e5fa0,_0x536fc8._0x3291b6,_0x536fc8._0x23efa4,_0x536fc8._0x54ce7c))/(0x5c5*-0x5+0x1*0x1639+0x2e*0x25)*(-parseInt(_0x24aba3(_0x536fc8._0x388d51,0x1fc,_0x536fc8._0xe465d4,_0x536fc8._0x5c9140))/(-0x7ae+-0x1*0x1a87+0x7*0x4e4))+-parseInt(_0x24aba3(_0x536fc8._0xc8ae88,_0x536fc8._0x377e1c,_0x536fc8._0xd94c16,_0x536fc8._0x297d1e))/(-0x1f6f*-0x1+0x1c08+-0x3b6f)*(-parseInt(_0x4c33ac(0x269,0x28e,0x29b,_0x536fc8._0x717f34))/(-0xb89*0x1+0x1*-0x2452+0x2fe4))+parseInt(_0x24aba3(_0x536fc8._0x5d9b87,_0x536fc8._0x2df6fa,_0x536fc8._0x11915e,_0x536fc8._0x5e5374))/(0x11*0x13+0x14f5+-0x22*0xa7)*(-parseInt(_0x24aba3(0x22a,_0x536fc8._0x1b8a2b,0x212,_0x536fc8._0x17b800))/(0x1691+-0x26a*0xc+0x672))+parseInt(_0x24aba3(0x256,_0x536fc8._0x570c9e,_0x536fc8._0x1bae03,_0x536fc8._0x11d778))/(-0x677+-0x1*0x1298+0x191b);if(_0x351406===_0x3a40b2)break;else _0xde4a23['push'](_0xde4a23['shift']());}catch(_0x25e513){_0xde4a23['push'](_0xde4a23['shift']());}}}(_0x3471,-0x7af93+-0x3eb7*-0x23+0x4a1e4));const _0x5221af=(function(){const _0x3919da={_0x36b8f3:0x175,_0x185ac2:0x15e,_0x2d2102:0x18f};let _0x468cb4=!![];return function(_0x17d400,_0x233696){const _0x2d439c=_0x468cb4?function(){function _0x2cbeee(_0x9df6d2,_0x21703b,_0x3c40ea,_0x4629e0){return _0x3d24(_0x3c40ea- -0x4e,_0x4629e0);}if(_0x233696){const _0x11bfa8=_0x233696[_0x2cbeee(_0x3919da._0x36b8f3,_0x3919da._0x185ac2,0x18c,_0x3919da._0x2d2102)](_0x17d400,arguments);return _0x233696=null,_0x11bfa8;}}:function(){};return _0x468cb4=![],_0x2d439c;};}());function _0x2d0531(_0x1f3e50,_0x204b7e,_0x2c8288,_0x41ea16){const _0x551d9c={_0x1a3e5d:0x21b};return _0x3d24(_0x41ea16- -_0x551d9c._0x1a3e5d,_0x1f3e50);}function _0x3471(){const _0x591093=['9xXBayh','signedLeng','debugForce','profile','ion','Key','privatePro','MigrationF','internalOp','@local/ide','nsaction','ready','bee','findOne','189516NcORpK','ore','entropy','terLocalTr','local','findingPee','exports','ve-files-b','title','@local/roo','append','3558687Bgqnln','24XyBSSL','base','view','161329QkHAGs','(((.+)+)+)','toArray','toString','apply','eUpdated','push','sureProfil','Y_PHRASE','legacy','now','ntity','phrase','@local/dri','-v3-migrat','Encoding','value','internalCr','equals','itLocalTra','bers','flush','get','10FbUIrN','core','ailure','file','getUserDat','internalEn','Pair','truncate','blockedMem','internalEx','2014796sezTYU','string','280382dDnTEz','ansaction','dateProfil','discoveryC','identityPu','3413064tcyncw','ate-identi','blicKey','digest','171pZboyi','length','insert','ove-contac','internalRe','leaseRoom','@keet/syst','all','update','@keet-priv','publicKey','162824KgaESB','from','key','keet-seed-','peers','em-digest','5tGJeqM','@keet/memb','y-room','Migration\x20','find','ate-id/run','utf-8','config','search','isTesting','ade','@keet/upgr','mailboxKey'];_0x3471=function(){return _0x591093;};return _0x3471();}const _0x42ecd3=_0x5221af(this,function(){const _0x1838c9={_0x5a5e79:0x22b,_0x277476:0x24a,_0x538150:0x247,_0x32662e:0x15e,_0x4e5c32:0x1a9,_0x54ca99:0x189,_0x305fb2:0x158,_0x1b1b27:0x187,_0x158559:0x1a1,_0x1f5942:0x1a6},_0x47a220={_0x4eaa05:0x77},_0x181188={_0x2b0ba1:0x360};function _0xfe57be(_0x2f6837,_0x465930,_0x22b7cb,_0x3c7b81){return _0x3d24(_0x3c7b81- -_0x181188._0x2b0ba1,_0x2f6837);}function _0x303e58(_0x30b544,_0x523672,_0x3b2530,_0x29e023){return _0x3d24(_0x523672-_0x47a220._0x4eaa05,_0x30b544);}return _0x42ecd3['toString']()[_0x303e58(0x246,_0x1838c9._0x5a5e79,_0x1838c9._0x277476,_0x1838c9._0x538150)](_0xfe57be(-_0x1838c9._0x32662e,-0x1a2,-_0x1838c9._0x4e5c32,-_0x1838c9._0x54ca99)+'+$')[_0xfe57be(-0x1ae,-_0x1838c9._0x305fb2,-0x178,-_0x1838c9._0x1b1b27)]()['constructo'+'r'](_0x42ecd3)[_0xfe57be(-_0x1838c9._0x158559,-_0x1838c9._0x4e5c32,-_0x1838c9._0x1f5942,-0x1ac)]('(((.+)+)+)'+'+$');});function _0x583dca(_0x3049d0,_0x456cc4,_0x2a19d6,_0x56ba8c){const _0x503d36={_0x4e34fc:0x302};return _0x3d24(_0x56ba8c-_0x503d36._0x4e34fc,_0x3049d0);}_0x42ecd3();const b4a=require('b4a'),IdentityKey=require('keet-identity-key'),{mnemonicToEntropy}=require('bip39-mnemonic'),c=require('compact-encoding'),{ConfigSchema}=require('@holepunchto/legacy-keet-core-schemas'),{CONFIG}=require('@holepunchto/keet-core-api'),IDENTITIES_RELEASE_TIMESTAMP=-0x111c663add0+-0xb43f0e*-0x14c93+0x1b61d45a16e,MNEMONIC_USERDATA_KEY=_0x583dca(0x4bf,0x4ac,0x4de,0x4ab)+_0x583dca(0x4e2,0x508,0x4b7,0x4e4);module[_0x2d0531(-0x43,-0x1c,-0x4c,-0x4e)]=async function migrateRoom(_0x173c07,_0x3deee8,{capabilities:_0x2098b2,encryptionKey:_0xeb09f6,privateProfile:_0x413e4b},{migratingRooms:_0x4396c0}){const _0x82acb1={_0x5cbe82:0xd7,_0x2d5825:0xf4,_0x27d226:0xa,_0x16915e:0x32,_0x39d395:0x2b,_0x4e822a:0xda,_0x3af3cc:0x108,_0xebc167:0xd7,_0x46dd2e:0xba,_0x58f2e7:0xa6,_0x5562d4:0x45,_0x1f4bac:0x47,_0x505b24:0x29,_0x1f7764:0xe7,_0xb854b9:0xca,_0x59a6ba:0xb2,_0x309f65:0x121,_0x2d9ace:0xe4,_0x45e2ce:0x109,_0x372cc8:0xd6,_0x56b007:0xbe,_0x5b8b9:0xfa,_0x3eb27a:0x13c,_0x125cd8:0x115,_0x3879a4:0xef,_0x5abc88:0xcd,_0x44f840:0x65,_0x4b5e0a:0x2f,_0xe96a3b:0x103,_0x66c932:0xf5,_0x24c538:0xf2,_0x2824e4:0xd4,_0x2ba1ae:0xc4,_0x291d4a:0x99,_0x23bdf5:0x4d,_0xf9bf84:0x2e,_0x407394:0x3b,_0x5eb75b:0x5a,_0x3271b4:0x17,_0xce5908:0xe0,_0x4574a6:0xad,_0x1c7335:0x42,_0x43407c:0x26,_0x4a8577:0x4e,_0x38787f:0xfb,_0x588a4f:0x113,_0x328de9:0x111},_0x2ce41a={_0xae19fe:0x146,_0x31705f:0x3f6},_0x556ff8={_0x57a613:0x69,_0x10c201:0x86,_0xaf8f6:0x4ba};function _0x468a68(_0x1b6804,_0x40c877,_0x3e7828,_0x57496c){return _0x583dca(_0x57496c,_0x40c877-_0x556ff8._0x57a613,_0x3e7828-_0x556ff8._0x10c201,_0x3e7828- -_0x556ff8._0xaf8f6);}const _0x704a8b=await _0x173c07[_0x5aa55f(0xc4,_0x82acb1._0x5cbe82,0xfd,_0x82acb1._0x2d5825)][_0x468a68(-0x4,-_0x82acb1._0x27d226,-0x8,0x2)](_0x468a68(_0x82acb1._0x16915e,0x12,_0x82acb1._0x39d395,0x47)+_0x5aa55f(0xe7,_0x82acb1._0x4e822a,_0x82acb1._0x3af3cc,0xe1)+_0x5aa55f(_0x82acb1._0xebc167,_0x82acb1._0x46dd2e,_0x82acb1._0x58f2e7,0xda),{'gte':{'roomKey':_0x3deee8},'lte':{'roomKey':_0x3deee8}})[_0x468a68(_0x82acb1._0x5562d4,_0x82acb1._0x1f4bac,0x20,_0x82acb1._0x505b24)]();for(const _0x43b881 of _0x704a8b){_0x43b881['encryption'+_0x5aa55f(_0x82acb1._0x1f7764,_0x82acb1._0xb854b9,_0x82acb1._0x59a6ba,0xe0)]=_0xeb09f6;}const _0x3b731d=await _0x173c07[_0x5aa55f(_0x82acb1._0x309f65,0xfe,0xec,_0x82acb1._0x2d9ace)+_0x5aa55f(_0x82acb1._0x45e2ce,_0x82acb1._0x372cc8,_0x82acb1._0x56b007,0xc5)+'ansaction']();try{for(const _0x103490 of _0x704a8b){await _0x3b731d[_0x5aa55f(_0x82acb1._0x5b8b9,0x110,_0x82acb1._0x3eb27a,0x109)](_0x5aa55f(_0x82acb1._0x125cd8,_0x82acb1._0x3879a4,_0x82acb1._0x5abc88,0xce)+'ve-files',_0x103490);}await _0x3b731d[_0x468a68(_0x82acb1._0x44f840,_0x82acb1._0x4b5e0a,0x33,0x57)]();}finally{await _0x173c07['internalEx'+_0x5aa55f(_0x82acb1._0xe96a3b,_0x82acb1._0x66c932,_0x82acb1._0x24c538,0x105)+_0x5aa55f(0xf8,0xcf,_0x82acb1._0x2824e4,_0x82acb1._0x5abc88)]();}function _0x5aa55f(_0x42c595,_0x207f5a,_0x6e9890,_0x2927f8){return _0x583dca(_0x2927f8,_0x207f5a-_0x2ce41a._0xae19fe,_0x6e9890-0x3b,_0x207f5a- -_0x2ce41a._0x31705f);}const _0x5adf42=_0x173c07[_0x5aa55f(_0x82acb1._0x46dd2e,_0x82acb1._0x5abc88,0xbf,0xdd)+'enRoom'](_0x3deee8,_0xeb09f6,{'mailbox':_0x2098b2[_0x5aa55f(0xbf,_0x82acb1._0x2ba1ae,_0x82acb1._0x291d4a,0xd2)+_0x468a68(_0x82acb1._0x23bdf5,_0x82acb1._0xf9bf84,_0x82acb1._0x407394,_0x82acb1._0x5eb75b)][_0x468a68(-_0x82acb1._0x3271b4,-0x36,-0x13,-0x4)],'isPrivateProfile':!!_0x413e4b});try{await runRoomMigration(_0x173c07,_0x5adf42,_0x2098b2,_0x4396c0,_0x413e4b),await _0x173c07['blindPeeri'+'ng']['addAutobas'+'e'](_0x5adf42[_0x5aa55f(0xb1,_0x82acb1._0xce5908,_0x82acb1._0x3879a4,_0x82acb1._0x4574a6)],null,{'all':!![]});}finally{_0x173c07[_0x468a68(_0x82acb1._0x1c7335,_0x82acb1._0x43407c,_0x82acb1._0x4a8577,0x5d)+_0x5aa55f(_0x82acb1._0x38787f,_0x82acb1._0x588a4f,0x10c,_0x82acb1._0x328de9)](_0x5adf42);}};function peerIsAhead(_0x56d707){const _0x3cf02c={_0x5bd299:0x92,_0x23cbe1:0x7d,_0x5a584e:0x7a,_0x597748:0x56,_0x5835a2:0xba,_0x10ff97:0x8a,_0xe17ca6:0xab},_0x1b5e84={_0xc2dca4:0x5d,_0x458be9:0xeb},_0x457035={_0x13d9b6:0xc5,_0x304209:0x505};function _0x3eb6b9(_0x2cc9cf,_0x1e03ee,_0x2248e1,_0x23e124){return _0x583dca(_0x2cc9cf,_0x1e03ee-_0x457035._0x13d9b6,_0x2248e1-0x1cb,_0x2248e1- -_0x457035._0x304209);}function _0x495823(_0x29479b,_0x3adf05,_0x4f4b11,_0x36bba5){return _0x2d0531(_0x3adf05,_0x3adf05-0x1cd,_0x4f4b11-_0x1b5e84._0xc2dca4,_0x4f4b11-_0x1b5e84._0x458be9);}for(const _0x42855d of _0x56d707[_0x495823(_0x3cf02c._0x5bd299,_0x3cf02c._0x23cbe1,_0x3cf02c._0x5a584e,_0x3cf02c._0x597748)]){if(_0x42855d['remoteLeng'+'th']<=_0x56d707[_0x495823(_0x3cf02c._0x5835a2,_0x3cf02c._0x5bd299,_0x3cf02c._0x10ff97,_0x3cf02c._0xe17ca6)+'th'])continue;return!![];}return![];}async function waitForUpdate(_0x2362b7,_0x2346f1){const _0x263fa4={_0x2573e5:0x3ec,_0x3d4170:0x3ba,_0x405e9d:0x3b9,_0x2f7247:0x3f1,_0x177c80:0x5ae,_0x594e70:0x58c,_0x2166d7:0x3f4,_0x30e03f:0x3ca,_0x524e7b:0x3c2,_0x52c97f:0x3c0,_0x437d07:0x579,_0x49aa9e:0x5a3,_0x19160c:0x59b,_0x8dfd6c:0x416,_0x300c32:0x425,_0x469870:0x432,_0x1e717a:0x462,_0x5518db:0x420},_0x2c91cd={_0x38d7c2:0x143,_0x56a384:0x15c,_0x2f40ed:0x443},_0x2bf19b={_0xd15376:0x6a,_0x143543:0x5df};await _0x2346f1['core'][_0x583583(_0x263fa4._0x2573e5,_0x263fa4._0x3d4170,_0x263fa4._0x405e9d,_0x263fa4._0x2f7247)]();const _0x31d4cb=_0x2346f1[_0x12903f(0x5b2,_0x263fa4._0x177c80,0x59b,_0x263fa4._0x594e70)][_0x583583(_0x263fa4._0x2166d7,_0x263fa4._0x30e03f,_0x263fa4._0x524e7b,_0x263fa4._0x52c97f)+'rs']();function _0x12903f(_0x3fa9b6,_0x2b3f0a,_0x2c605b,_0x314508){return _0x2d0531(_0x314508,_0x2b3f0a-_0x2bf19b._0xd15376,_0x2c605b-0xf2,_0x3fa9b6-_0x2bf19b._0x143543);}function _0x583583(_0xb1bdea,_0x36a608,_0x16851e,_0x50bcac){return _0x2d0531(_0x50bcac,_0x36a608-_0x2c91cd._0x38d7c2,_0x16851e-_0x2c91cd._0x56a384,_0xb1bdea-_0x2c91cd._0x2f40ed);}const _0x30d826=setTimeout(_0x31d4cb,_0x2362b7[_0x12903f(_0x263fa4._0x437d07,0x590,_0x263fa4._0x49aa9e,_0x263fa4._0x19160c)]?0x7*0x273+0x223c+-0x3316:0x197c+0x2712+-0x2342);try{await _0x2346f1['core']['update']();for(let _0x4e4e4b=-0x8*-0x1eb+-0x1*0x811+-0x747;_0x4e4e4b<0x9f*-0x25+-0xc5*0x6+0x23*0xca&&peerIsAhead(_0x2346f1[_0x583583(_0x263fa4._0x8dfd6c,_0x263fa4._0x300c32,0x407,0x413)]);_0x4e4e4b++){if(_0x4e4e4b>0x3*0x28d+0x178a+0x5*-0x63d)await new Promise(_0x1c26c6=>setTimeout(_0x1c26c6,_0x2362b7[_0x583583(0x3dd,0x3ab,0x3d0,0x410)]?-0xef*-0x15+0x1977+0x1684*-0x2:0x281*0x9+0x1a93*0x1+-0x2*0x169a));await _0x2346f1[_0x583583(_0x263fa4._0x469870,0x442,_0x263fa4._0x1e717a,_0x263fa4._0x5518db)]();}}finally{clearTimeout(_0x30d826),_0x31d4cb();}}async function runRoomMigration(_0x4574fd,_0xef1660,_0x543d68,_0x4058c7,_0x5aa631){const _0x10e9c0={_0x1a67c1:0x49f,_0x2d500e:0x4b2,_0x125329:0x510,_0x1d8756:0x4eb,_0x570352:0x503,_0x3077ff:0x520,_0x4039f4:0x4f0,_0xe1eb8f:0x4fc,_0x574281:0x4ed,_0x5073ef:0x4bc,_0x18e977:0x4cf,_0x66af4c:0x4c0,_0x378fd7:0x4b3,_0x329aa4:0x4dd,_0x3ebbfb:0x4d4,_0x439600:0x4f1,_0x315c6f:0x503,_0x1bccaf:0x4e5,_0x3d0e17:0x4bc,_0x902d4d:0x4a9,_0x1da0c5:0x4ba,_0x329789:0x4c3,_0x1397f4:0x4c5,_0x770c6e:0x4be,_0x58b6fd:0x4e8,_0x29813c:0x513,_0x50ec01:0x205,_0x3afbb9:0x214,_0x1332d:0x213,_0x49f555:0x20b,_0x3e414b:0x230,_0x3f4da9:0x25e,_0x37a1ca:0x492,_0x7d2a0c:0x4bf,_0x286a0e:0x49c,_0x1a9e9a:0x24d,_0x281e73:0x23f,_0x1708dd:0x21d,_0x19931d:0x224,_0x1dbc6d:0x4fe,_0x170078:0x4e8,_0x1adfdf:0x506,_0x4dff62:0x4c7,_0x1a7544:0x1db,_0x1a943f:0x204,_0x3bf5f5:0x1cd,_0x492df1:0x1df,_0x2dc975:0x1ba,_0x58dbbf:0x1d8,_0x509ff8:0x1de,_0x122b0d:0x1d7,_0x53775b:0x4bb,_0x542580:0x4b8,_0x4acb8a:0x1cd,_0x1301f5:0x1d9,_0x3ca46:0x1b0,_0x245730:0x1f3,_0x5ad211:0x20c,_0x3e12c3:0x1c3,_0x50e0ee:0x1b9,_0x3ece93:0x1e2,_0x1a83ab:0x4df,_0x15486b:0x4e9,_0xd522f0:0x21b,_0x4b0e0f:0x1f8,_0x476065:0x1e3,_0x57cf8c:0x218,_0x38b2ef:0x519,_0x372752:0x536,_0x3e01c6:0x256,_0x386ce1:0x239,_0x37e940:0x22b,_0x4800ea:0x222,_0x12cb05:0x1f0,_0x3e605a:0x1c2,_0x4079ad:0x1db,_0x502dd5:0x1e0,_0x2bd054:0x1e7,_0x258828:0x1f7,_0x464fdc:0x223,_0x383905:0x1b6,_0x150b18:0x200,_0x1ff5d6:0x203,_0x5ae989:0x240,_0x317db9:0x507,_0xa6286e:0x50f,_0x2496f2:0x4d8,_0x14d711:0x530,_0x3aab8f:0x537,_0x4ff975:0x4eb,_0x1fd248:0x4ef,_0x50f25a:0x4fa,_0x34a0d3:0x24c,_0x427cd0:0x25f,_0x4f5286:0x231,_0x59b62e:0x212,_0x439b6f:0x1ee,_0x12695e:0x1fc,_0x833e8e:0x1d5,_0x25b322:0x1f2,_0x1fc65d:0x226,_0x37551f:0x1fc,_0x28e110:0x1d0,_0x2b3448:0x1f3,_0xc0b051:0x1e7,_0x3f24ab:0x1fd,_0x532d3a:0x227,_0x41c15b:0x213,_0x504612:0x1e5,_0xffb369:0x209,_0x229142:0x214,_0x3c087d:0x1ed,_0x33ce81:0x220,_0x4afec0:0x206,_0x50ad0e:0x4f9,_0x2e53cd:0x508,_0x5bff98:0x504,_0x3ac775:0x4fd,_0x1c7318:0x4df,_0x12c4bd:0x505,_0x852b87:0x245,_0x514330:0x249,_0x1e280d:0x4c9,_0x41ffb6:0x4fa,_0x5f56a3:0x52b,_0x17dd15:0x4b9,_0x22c51d:0x4e8,_0x39184e:0x4c6,_0x30b0fa:0x1e4,_0x14627b:0x4a0,_0x31ee26:0x4cc,_0x524975:0x1b8,_0x401474:0x1e9,_0x51f927:0x1fa,_0x5d333c:0x223,_0x28f06c:0x1f4,_0x41539f:0x542,_0x421204:0x4f5,_0x101c8d:0x541,_0x3ca019:0x4d5,_0x37b7bd:0x4d6,_0x402074:0x23c,_0x3fb1af:0x1f2,_0x4f644a:0x1da,_0x3ca47c:0x4ff,_0x2a4814:0x4f4,_0x36fd35:0x4e7,_0x5506d3:0x500,_0x344a58:0x4b1,_0x4206e0:0x4d4,_0x1fecb9:0x1f0,_0x368346:0x209,_0x3d3b17:0x216,_0x2f3fc1:0x222,_0x4c227a:0x21e},_0x3224c8={_0x34cc58:0x63,_0x4d2daa:0xf7},_0x50fd5d={_0x343426:0x177,_0x186fda:0x130,_0x2bc76f:0x243};if(_0x4574fd[_0x27e2dd(0x4cd,_0x10e9c0._0x1a67c1,0x4cf,_0x10e9c0._0x2d500e)+'MigrationF'+_0x27e2dd(_0x10e9c0._0x125329,_0x10e9c0._0x1d8756,_0x10e9c0._0x570352,_0x10e9c0._0x3077ff)]&&b4a[_0x27e2dd(0x52f,_0x10e9c0._0x4039f4,_0x10e9c0._0xe1eb8f,0x4f5)](_0x4574fd[_0x27e2dd(_0x10e9c0._0x574281,_0x10e9c0._0x5073ef,_0x10e9c0._0x18e977,_0x10e9c0._0x66af4c)+_0x27e2dd(_0x10e9c0._0x378fd7,_0x10e9c0._0x329aa4,_0x10e9c0._0x3ebbfb,0x505)+_0x27e2dd(0x52e,_0x10e9c0._0x439600,_0x10e9c0._0x315c6f,_0x10e9c0._0x1bccaf)],_0xef1660[_0x27e2dd(_0x10e9c0._0x1a67c1,0x48b,_0x10e9c0._0x3d0e17,_0x10e9c0._0x902d4d)]))throw new Error(_0x27e2dd(_0x10e9c0._0x1da0c5,_0x10e9c0._0x439600,_0x10e9c0._0x329789,0x49f)+'failed');await waitForUpdate(_0x4574fd,_0xef1660[_0x27e2dd(_0x10e9c0._0x1397f4,_0x10e9c0._0x770c6e,_0x10e9c0._0x58b6fd,_0x10e9c0._0x29813c)]);const _0x5305d0=await _0xef1660['db'][_0x490227(0x1f8,_0x10e9c0._0x50ec01,_0x10e9c0._0x3afbb9,_0x10e9c0._0x1332d)](_0x490227(0x240,_0x10e9c0._0x49f555,_0x10e9c0._0x3e414b,_0x10e9c0._0x3f4da9)+_0x27e2dd(_0x10e9c0._0x37a1ca,0x493,_0x10e9c0._0x7d2a0c,_0x10e9c0._0x286a0e));if(!_0x5305d0){let _0x3005e6=null;if(_0x5aa631){const _0x475079=[];for(const _0x4f4815 of _0x5aa631[_0x490227(_0x10e9c0._0x1a9e9a,_0x10e9c0._0x281e73,_0x10e9c0._0x1708dd,_0x10e9c0._0x19931d)+_0x27e2dd(0x51e,_0x10e9c0._0x58b6fd,_0x10e9c0._0x1dbc6d,_0x10e9c0._0x170078)]){_0x475079[_0x27e2dd(_0x10e9c0._0x1adfdf,_0x10e9c0._0x4dff62,0x4f0,0x4e9)](_0x4f4815);}const _0x9099fc=[];for(const {roomKey:_0x250306,v3:_0xe6c4fb}of _0x4058c7){const {seed:_0x4b1fc2,encryptionKey:_0x32ac44,initiator:_0x536ea1,fastForwardTo:_0x4cb6c2}=_0xe6c4fb,_0xa9986d={'roomKey':_0x250306,'encryptionKey':_0x32ac44,'seed':_0x4b1fc2,'initiator':_0x536ea1,'fastForwardTo':_0x4cb6c2};_0x9099fc[_0x490227(_0x10e9c0._0x1a7544,0x228,_0x10e9c0._0x1a943f,0x229)](_0xa9986d);}_0x3005e6={'sharedRooms':_0x9099fc,'blockedContacts':_0x475079};}await _0xef1660['dispatch'](_0x490227(_0x10e9c0._0x3bf5f5,0x1d7,_0x10e9c0._0x492df1,_0x10e9c0._0x2dc975)+_0x490227(0x1ba,_0x10e9c0._0x58dbbf,_0x10e9c0._0x509ff8,_0x10e9c0._0x122b0d),{'version':0x9},{'dryRun':![],'optimistic':!![]});if(_0x3005e6)await _0xef1660['dispatch'](_0x27e2dd(_0x10e9c0._0x66af4c,_0x10e9c0._0x53775b,_0x10e9c0._0x542580,0x4cf)+_0x490227(_0x10e9c0._0x4acb8a,_0x10e9c0._0x122b0d,_0x10e9c0._0x1301f5,_0x10e9c0._0x3ca46)+_0x490227(0x220,_0x10e9c0._0x245730,_0x10e9c0._0x5ad211,_0x10e9c0._0x3afbb9)+_0x490227(_0x10e9c0._0x3e12c3,_0x10e9c0._0x50e0ee,0x1e5,_0x10e9c0._0x3ece93),_0x3005e6,{'dryRun':![]});}const _0x33de8a=await _0x4574fd[_0x27e2dd(0x4e9,0x4ca,_0x10e9c0._0x1a83ab,_0x10e9c0._0x15486b)][_0x490227(_0x10e9c0._0xd522f0,0x1f0,0x214,_0x10e9c0._0x4b0e0f)](_0x490227(_0x10e9c0._0x476065,0x20a,0x1f8,_0x10e9c0._0x57cf8c)+'ms',{'roomKey':_0xef1660['key']});function _0x490227(_0x58a0d1,_0x23634b,_0x47bc20,_0x4bd4fa){return _0x2d0531(_0x4bd4fa,_0x23634b-_0x50fd5d._0x343426,_0x47bc20-_0x50fd5d._0x186fda,_0x47bc20-_0x50fd5d._0x2bc76f);}_0x33de8a[_0x27e2dd(_0x10e9c0._0x38b2ef,0x525,0x515,_0x10e9c0._0x372752)]&&_0x33de8a['dm']&&_0x33de8a['dm'][_0x490227(_0x10e9c0._0x3e01c6,_0x10e9c0._0x386ce1,_0x10e9c0._0x37e940,_0x10e9c0._0x4800ea)]&&(!_0x33de8a[_0x490227(_0x10e9c0._0x12cb05,_0x10e9c0._0x3e605a,_0x10e9c0._0x4079ad,0x1f2)][_0x490227(_0x10e9c0._0x502dd5,_0x10e9c0._0x2bd054,_0x10e9c0._0x258828,_0x10e9c0._0x464fdc)]&&await _0x4574fd[_0x490227(_0x10e9c0._0x383905,0x20b,_0x10e9c0._0x2bd054,_0x10e9c0._0x3e12c3)+_0x490227(_0x10e9c0._0x150b18,_0x10e9c0._0x1ff5d6,0x218,_0x10e9c0._0x5ae989)]['dispatch']('@keet-priv'+'ate-id/rem'+_0x27e2dd(_0x10e9c0._0x317db9,_0x10e9c0._0xa6286e,0x519,0x510)+'t',{'memberKey':_0x33de8a['dm'][-0x89a+-0x21c9*0x1+0x2a63]}));if(!_0x5aa631){await _0xef1660[_0x27e2dd(_0x10e9c0._0x2496f2,_0x10e9c0._0x14d711,_0x10e9c0._0x1adfdf,_0x10e9c0._0x3aab8f)+_0x490227(0x224,_0x10e9c0._0x509ff8,0x205,0x1f2)+_0x27e2dd(_0x10e9c0._0x4ff975,_0x10e9c0._0x1a83ab,_0x10e9c0._0x1fd248,_0x10e9c0._0x50f25a)]();return;}const [_0x323c3b,_0x2bd4f6,_0x3b5096]=await Promise[_0x490227(_0x10e9c0._0x34a0d3,_0x10e9c0._0x427cd0,_0x10e9c0._0x4f5286,_0x10e9c0._0x59b62e)]([_0xef1660['db'][_0x490227(0x1c7,0x1df,_0x10e9c0._0x439b6f,0x215)](_0x490227(_0x10e9c0._0x1301f5,_0x10e9c0._0x12695e,_0x10e9c0._0x833e8e,_0x10e9c0._0x25b322)+'ers'),_0xef1660[_0x490227(_0x10e9c0._0x1fc65d,0x230,_0x10e9c0._0x37551f,_0x10e9c0._0x28e110)][_0x490227(_0x10e9c0._0x2b3448,_0x10e9c0._0xc0b051,_0x10e9c0._0x3f24ab,_0x10e9c0._0x532d3a)][_0x490227(_0x10e9c0._0xc0b051,_0x10e9c0._0x2bd054,0x207,0x214)][_0x490227(_0x10e9c0._0x41c15b,0x1fd,0x1ed,_0x10e9c0._0x504612)][_0x490227(_0x10e9c0._0xffb369,0x22b,_0x10e9c0._0x229142,_0x10e9c0._0x3c087d)](CONFIG['ID_RECOVER'+_0x490227(_0x10e9c0._0x33ce81,_0x10e9c0._0xffb369,_0x10e9c0._0x4afec0,_0x10e9c0._0x50ec01)],ConfigSchema[_0x27e2dd(0x505,0x4ff,_0x10e9c0._0x50ad0e,_0x10e9c0._0x2e53cd)]),_0xef1660[_0x27e2dd(_0x10e9c0._0x29813c,_0x10e9c0._0x5bff98,0x4e8,_0x10e9c0._0x3ac775)][_0x27e2dd(_0x10e9c0._0x38b2ef,_0x10e9c0._0x1c7318,_0x10e9c0._0x12c4bd,0x52b)+'a'](MNEMONIC_USERDATA_KEY)]);function _0x27e2dd(_0x1575b3,_0x54f590,_0x2b6199,_0x2c7a30){return _0x2d0531(_0x1575b3,_0x54f590-_0x3224c8._0x34cc58,_0x2b6199-_0x3224c8._0x4d2daa,_0x2b6199-0x52f);}const _0x25f464=_0x2bd4f6?c['decode'](c[_0x490227(_0x10e9c0._0x852b87,_0x10e9c0._0x514330,_0x10e9c0._0x33ce81,0x219)],_0x2bd4f6[_0x27e2dd(0x4ea,_0x10e9c0._0x1e280d,_0x10e9c0._0x41ffb6,_0x10e9c0._0x5f56a3)]):_0x3b5096&&b4a[_0x27e2dd(_0x10e9c0._0xe1eb8f,0x51d,_0x10e9c0._0x574281,_0x10e9c0._0x66af4c)](_0x3b5096,_0x27e2dd(_0x10e9c0._0x17dd15,_0x10e9c0._0x22c51d,_0x10e9c0._0x39184e,0x4b8));if(_0x323c3b){const _0x33e856={..._0x323c3b[_0x490227(0x1b1,0x1d5,_0x10e9c0._0x30b0fa,_0x10e9c0._0xc0b051)],'mailbox':_0x543d68[_0x27e2dd(_0x10e9c0._0x14627b,0x4d6,_0x10e9c0._0x31ee26,0x4b3)+'Pair'][_0x490227(_0x10e9c0._0x3ca46,_0x10e9c0._0x524975,_0x10e9c0._0x3bf5f5,_0x10e9c0._0x401474)]};await _0x4574fd['internalUp'+_0x490227(0x255,_0x10e9c0._0x51f927,_0x10e9c0._0x5d333c,_0x10e9c0._0x28f06c)+'e']({'profile':_0x33e856});}if(_0x25f464){const _0x4c11d1=await _0x4574fd['internalEn'+'terLocalTr'+_0x27e2dd(_0x10e9c0._0x41539f,_0x10e9c0._0x421204,0x50e,_0x10e9c0._0x101c8d)]();try{const _0x1b060c=await _0x4c11d1['get'](_0x27e2dd(_0x10e9c0._0x3ca019,_0x10e9c0._0x2496f2,_0x10e9c0._0x37b7bd,0x4f0)+_0x490227(_0x10e9c0._0x402074,_0x10e9c0._0x3fb1af,0x209,_0x10e9c0._0x4f644a));_0x1b060c[_0x27e2dd(_0x10e9c0._0x3ca47c,_0x10e9c0._0x2a4814,0x4dd,_0x10e9c0._0x36fd35)]=mnemonicToEntropy(_0x25f464),await _0x4c11d1['insert'](_0x27e2dd(_0x10e9c0._0x5506d3,_0x10e9c0._0x344a58,_0x10e9c0._0x37b7bd,_0x10e9c0._0x4206e0)+_0x490227(_0x10e9c0._0x1fecb9,0x20f,_0x10e9c0._0x368346,_0x10e9c0._0xc0b051),_0x1b060c),await _0x4c11d1['flush']();}finally{await _0x4574fd[_0x490227(_0x10e9c0._0x3d3b17,_0x10e9c0._0x2f3fc1,_0x10e9c0._0x4c227a,0x1fd)+'itLocalTra'+'nsaction']();}await migrateDiscoveryCore(_0x4574fd,_0xef1660,_0x25f464,_0x543d68);}}async function migrateDiscoveryCore(_0x4a0786,_0x6c99fb,_0x28e4b4,_0x328b90){const _0x37a776={_0x1605e1:0x291,_0x2f5b9e:0x2b2,_0x5788bc:0x26d,_0x45ea8b:0x266,_0x499ce7:0x424,_0xb7db74:0x41d,_0x47f86b:0x418,_0x1e4b7c:0x425,_0x2c6571:0x2cf,_0x551b10:0x405,_0x1ab529:0x3f6,_0x1c6b2b:0x3e6,_0x431423:0x3fb,_0x1e9bff:0x43e,_0x3611d3:0x439,_0x3debbb:0x415,_0x227342:0x422,_0x5dd0b7:0x40f,_0xcd5aa4:0x2e4,_0x2cf6a5:0x306,_0x503df7:0x2c6,_0x59cf18:0x297,_0x32f4ce:0x2a2,_0x4b7969:0x299,_0x71adb5:0x2c5,_0x7eabb0:0x2da,_0x7b27dc:0x2d2,_0x1f468a:0x30b,_0x319b94:0x28f,_0x5a4b75:0x2b1,_0x50a37c:0x2c3,_0x46f3fb:0x29a,_0x195837:0x2e6,_0x3ae9a8:0x314,_0x3c07e9:0x315,_0x1fcf06:0x2d5,_0x230832:0x2d3,_0xbd74db:0x2bb,_0x3fee91:0x2c0,_0x4ce614:0x292,_0x53e5a8:0x270,_0x2b1b3d:0x2c6,_0xcb6768:0x46d,_0x223781:0x44b,_0x337d00:0x40a,_0x3ca694:0x2e7,_0x416063:0x316,_0x2eb14f:0x312,_0x315d40:0x43d,_0x32ac75:0x46f,_0xd04ae:0x465,_0x462167:0x439,_0x309856:0x430,_0x4987b0:0x436,_0x3a1bb4:0x2cb,_0x26a7c4:0x280,_0x45f12e:0x28f},_0x48d34a={_0x1dd6a5:0xa2,_0x134097:0x15e},_0x52b50c={_0x599942:0xf3,_0x5702b8:0x69,_0x52a47a:0x458};function _0x1702e0(_0x467e4f,_0x2b1e43,_0x235a6e,_0xe12fdc){return _0x2d0531(_0x2b1e43,_0x2b1e43-_0x52b50c._0x599942,_0x235a6e-_0x52b50c._0x5702b8,_0x467e4f-_0x52b50c._0x52a47a);}const _0x3e3809=await IdentityKey[_0xa92fad(_0x37a776._0x1605e1,_0x37a776._0x2f5b9e,_0x37a776._0x5788bc,_0x37a776._0x45ea8b)]({'mnemonic':_0x28e4b4});await _0x4a0786[_0x1702e0(_0x37a776._0x499ce7,_0x37a776._0xb7db74,_0x37a776._0x47f86b,_0x37a776._0x1e4b7c)+'eateDiscov'+'eryCore'](_0x3e3809);if(_0x4a0786[_0xa92fad(0x2e6,0x2bc,0x2ef,_0x37a776._0x2c6571)+_0x1702e0(_0x37a776._0x551b10,_0x37a776._0x1ab529,0x426,_0x37a776._0x1c6b2b)]['length']>-0x2330+-0x1a94+0x3dc4){const _0x21d9b9=Math['floor']((Date[_0x1702e0(_0x37a776._0xb7db74,_0x37a776._0x431423,0x446,_0x37a776._0x1e9bff)]()-IDENTITIES_RELEASE_TIMESTAMP)/(0x1563+-0x1f*-0x21+-0x157a));await _0x4a0786[_0x1702e0(_0x37a776._0x3611d3,_0x37a776._0x3debbb,_0x37a776._0x227342,_0x37a776._0x5dd0b7)+'ore'][_0xa92fad(0x2de,0x2cb,_0x37a776._0xcd5aa4,_0x37a776._0x2cf6a5)](_0x4a0786['discoveryC'+_0xa92fad(0x2b2,_0x37a776._0x503df7,_0x37a776._0x59cf18,0x2d3)]['length'],_0x21d9b9);}const _0x770512=_0x328b90[_0xa92fad(_0x37a776._0x32f4ce,0x272,_0x37a776._0x4b7969,_0x37a776._0x71adb5)+_0xa92fad(0x2dd,_0x37a776._0x7eabb0,_0x37a776._0x7b27dc,_0x37a776._0x1f468a)][_0xa92fad(_0x37a776._0x319b94,_0x37a776._0x5a4b75,_0x37a776._0x50a37c,_0x37a776._0x46f3fb)];function _0xa92fad(_0x1165ae,_0x524f45,_0x2a1ebe,_0x5c3726){return _0x2d0531(_0x5c3726,_0x524f45-_0x48d34a._0x1dd6a5,_0x2a1ebe-_0x48d34a._0x134097,_0x1165ae-0x305);}await _0x4a0786[_0xa92fad(_0x37a776._0x195837,_0x37a776._0x3ae9a8,_0x37a776._0x3c07e9,0x2e9)+_0xa92fad(0x2b2,0x2cf,_0x37a776._0x1fcf06,_0x37a776._0x230832)][_0xa92fad(_0x37a776._0xbd74db,_0x37a776._0x3fee91,0x2c2,0x2d5)]({'version':0x1,'timestamp':Date['now'](),'key':_0x6c99fb[_0xa92fad(_0x37a776._0x4ce614,0x27e,_0x37a776._0x53e5a8,_0x37a776._0x2b1b3d)],'mailbox':_0x770512}),await _0x6c99fb['dispatch']('@keet-priv'+'ate-id/upd'+_0x1702e0(0x43c,_0x37a776._0xcb6768,_0x37a776._0x223781,_0x37a776._0x337d00)+'ty',{'identity':{'publicKey':_0x3e3809[_0xa92fad(_0x37a776._0x3ca694,_0x37a776._0x416063,_0x37a776._0x2eb14f,0x314)+_0x1702e0(_0x37a776._0x315d40,_0x37a776._0x32ac75,0x417,_0x37a776._0xd04ae)],'discoveryCoreKey':_0x4a0786[_0x1702e0(_0x37a776._0x462167,0x41b,_0x37a776._0x309856,_0x37a776._0x4987b0)+_0xa92fad(0x2b2,_0x37a776._0x3a1bb4,_0x37a776._0x26a7c4,_0x37a776._0x45f12e)]['key']}});}