OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / stats / flow / join-room.js

1 lines · javascript ref:
(function(_0x158e7f,_0x541523){const _0x40a666={_0x164432:0x279,_0x2176f2:0x26e,_0x1415d8:0x279,_0x38f97c:0x71,_0x384803:0x268,_0x1cdd61:0x26a,_0x43ce3e:0x276,_0x6af78f:0x57,_0x312a2b:0x4e,_0x208d56:0x5f,_0x1a601a:0x6c,_0x220f98:0x69,_0xc7c9f5:0x55,_0x4b7260:0x277,_0x260ee0:0x278,_0x418e30:0x281,_0xa957a0:0x56,_0x4adc8f:0x5e,_0x17bad9:0x63,_0x279475:0x71,_0x10bb53:0x264,_0x5a334c:0x265,_0x5862e4:0x267,_0x13cd55:0x265,_0x41c245:0x276,_0x540df7:0x27c,_0x1fc386:0x26e,_0x316083:0x25f},_0x5477b0={_0x43074f:0xba},_0x2a2279={_0x452320:0x150},_0x407c69=_0x158e7f();function _0x5b59aa(_0x2d4ce8,_0x46c297,_0x778dc3,_0x2d9429){return _0x1be4(_0x46c297-_0x2a2279._0x452320,_0x778dc3);}function _0x139b1b(_0x4447aa,_0x240d57,_0x453565,_0x58e2c4){return _0x1be4(_0x4447aa- -_0x5477b0._0x43074f,_0x58e2c4);}while(!![]){try{const _0x7fa32c=-parseInt(_0x5b59aa(0x275,_0x40a666._0x164432,_0x40a666._0x2176f2,_0x40a666._0x1415d8))/(-0xbb*-0x25+-0xcd*-0xe+-0x263c)*(-parseInt(_0x139b1b(0x68,0x60,0x67,_0x40a666._0x38f97c))/(-0x385+-0x19a6+-0x42b*-0x7))+parseInt(_0x5b59aa(_0x40a666._0x384803,_0x40a666._0x1cdd61,_0x40a666._0x43ce3e,0x262))/(-0x1*0x16e5+-0x1a55+0x313d)+-parseInt(_0x139b1b(_0x40a666._0x6af78f,_0x40a666._0x312a2b,0x4d,0x60))/(-0xfbb+0x1ba6+-0xbe7)*(-parseInt(_0x139b1b(_0x40a666._0x208d56,_0x40a666._0x1a601a,_0x40a666._0x220f98,_0x40a666._0xc7c9f5))/(-0x4d*-0x1b+-0x1*0x1861+0x1047))+parseInt(_0x5b59aa(_0x40a666._0x4b7260,_0x40a666._0x260ee0,0x287,_0x40a666._0x418e30))/(-0x1d80+0x19cb+-0x3bb*-0x1)*(-parseInt(_0x139b1b(_0x40a666._0xc7c9f5,0x62,_0x40a666._0xa957a0,_0x40a666._0x4adc8f))/(-0x14*-0x61+-0x7de+0x51))+-parseInt(_0x139b1b(0x69,0x75,_0x40a666._0x17bad9,_0x40a666._0x279475))/(-0x2457*-0x1+-0x1a30+-0x1*0xa1f)*(parseInt(_0x5b59aa(_0x40a666._0x10bb53,_0x40a666._0x5a334c,0x258,0x26a))/(0xc6+0x5e*0x2e+-0x11a1))+parseInt(_0x5b59aa(0x26e,0x270,_0x40a666._0x384803,_0x40a666._0x5862e4))/(0x1a16+0x369*-0x9+-0x4a5*-0x1)+-parseInt(_0x5b59aa(_0x40a666._0x13cd55,0x26b,_0x40a666._0x41c245,0x26a))/(-0xdf*-0x21+0x219*0x9+-0x3a9*0xd)*(-parseInt(_0x5b59aa(_0x40a666._0x540df7,_0x40a666._0x1fc386,_0x40a666._0x316083,0x272))/(0xca+-0x274*0xa+0x17ca));if(_0x7fa32c===_0x541523)break;else _0x407c69['push'](_0x407c69['shift']());}catch(_0x5a8e3a){_0x407c69['push'](_0x407c69['shift']());}}}(_0x522b,-0xf1dc9+0x628a1+-0x3*-0x6fb23));const _0xf60662=(function(){let _0x1d0ed4=!![];return function(_0x592777,_0x3edb02){const _0x3244d5=_0x1d0ed4?function(){if(_0x3edb02){const _0x526ef5=_0x3edb02['apply'](_0x592777,arguments);return _0x3edb02=null,_0x526ef5;}}:function(){};return _0x1d0ed4=![],_0x3244d5;};}()),_0x1cd790=_0xf60662(this,function(){const _0x577055={_0x241059:0x1d5,_0x80b383:0x1d6,_0x283eea:0x2d4,_0x1f6276:0x2dd,_0x575a47:0x2da,_0x514bfd:0x2d0,_0x3da334:0x2c2,_0x1559af:0x2d3,_0x4f905d:0x2db,_0x501cb2:0x2c6},_0x4eb75c={_0x14adda:0x1a9};function _0x32c726(_0x280f60,_0x45a4cc,_0x39e1f5,_0x39cdd9){return _0x1be4(_0x280f60-_0x4eb75c._0x14adda,_0x45a4cc);}function _0x2cda2d(_0x16f320,_0x3c5752,_0x42e08d,_0x3ab8cc){return _0x1be4(_0x3c5752- -0x2f9,_0x42e08d);}return _0x1cd790[_0x2cda2d(-0x1cd,-_0x577055._0x241059,-_0x577055._0x80b383,-0x1d1)]()['search'](_0x32c726(_0x577055._0x283eea,_0x577055._0x1f6276,0x2de,_0x577055._0x575a47)+'+$')[_0x32c726(0x2cd,_0x577055._0x514bfd,_0x577055._0x3da334,0x2d8)]()[_0x32c726(_0x577055._0x1559af,_0x577055._0x4f905d,0x2cf,_0x577055._0x501cb2)+'r'](_0x1cd790)['search']('(((.+)+)+)'+'+$');});_0x1cd790();import{takeLeading,setContext,getContext,all}from'redux-saga/effects';import{ENV_CONTEXT_KEY}from'../../constants';function _0x1be4(_0x399051,_0x177db8){const _0x54c06c=_0x522b();return _0x1be4=function(_0x3d2f4a,_0x526179){_0x3d2f4a=_0x3d2f4a-(-0x45*0x4f+-0xab8+-0x33*-0xa6);let _0x1d0631=_0x54c06c[_0x3d2f4a];return _0x1d0631;},_0x1be4(_0x399051,_0x177db8);}import{joinRoomSubmit,setPairingRoom,clearPairingRoom,addOrRemoveRecentRoom,PAIRING_STATUS,RECENT_ROOM_UPDATE}from'../../room';import{TIME_CONTEXT_KEY,takeStep,sequence,step,printFlow,createTimeContext,parallel}from'./flow.model';const isSetPairingRoomAsked=()=>_0x2f4e80=>{const _0x1180d1={_0x120a80:0x24c,_0x5d0ad3:0x23e,_0x457799:0x24a,_0x232d26:0x77,_0x21b88d:0x23b,_0x57d4e0:0x248},_0x1e0287={_0x886155:0x93};function _0x5c8826(_0xc6ee81,_0x1bf55c,_0x3a2b17,_0x21a9f7){return _0x1be4(_0xc6ee81-0x127,_0x3a2b17);}if(!setPairingRoom[_0x5c8826(_0x1180d1._0x120a80,0x253,_0x1180d1._0x5d0ad3,_0x1180d1._0x457799)](_0x2f4e80))return![];function _0x5a6cd1(_0x14f530,_0x5615d9,_0x13ff99,_0x186e27){return _0x1be4(_0x186e27- -_0x1e0287._0x886155,_0x14f530);}return _0x2f4e80[_0x5a6cd1(0x86,0x7c,_0x1180d1._0x232d26,0x83)][_0x5c8826(_0x1180d1._0x21b88d,_0x1180d1._0x57d4e0,0x23c,0x22d)]===PAIRING_STATUS['ASKED'];},isRoomAdded=()=>_0x1ffa9e=>addOrRemoveRecentRoom[_0x1d7cb1(0x5e,0x53,0x5d,0x69)](_0x1ffa9e)&&_0x1ffa9e[_0x1d7cb1(0x4f,0x53,0x5b,0x4d)][_0x53f1eb(-0x12d,-0x13a,-0x13a,-0x13e)]===RECENT_ROOM_UPDATE[_0x1d7cb1(0x56,0x5d,0x61,0x5a)];function _0x53f1eb(_0x55f027,_0x28ea0b,_0x16217a,_0xd04703){const _0x2b6b61={_0x660fb3:0x24d};return _0x1be4(_0x28ea0b- -_0x2b6b61._0x660fb3,_0x55f027);}const isSetPairingRoomComplete=_0x1fd998=>_0x2014c2=>{const _0x3de153={_0x20c0da:0x11f,_0x54aadb:0x119,_0x2d66f4:0x115,_0x100aab:0x114,_0x17a4bd:0x49d,_0xd2534d:0x48f,_0x30c14c:0x493},_0x1673f6={_0x414d0c:0x5bf,_0x22fce3:0xe1},_0x1c2b86={_0x339547:0x1f0,_0x626d8d:0x1e6};if(!clearPairingRoom[_0x51d958(_0x3de153._0x20c0da,0x124,0x12b,_0x3de153._0x54aadb)](_0x2014c2))return![];function _0x51d958(_0x30b27f,_0xeee750,_0x591493,_0x3c8ea8){return _0x1d7cb1(_0x30b27f-0xc1,_0xeee750-_0x1c2b86._0x339547,_0xeee750,_0x3c8ea8-_0x1c2b86._0x626d8d);}function _0x25b008(_0x245783,_0x3f5a7e,_0x1996f8,_0x3aa9f5){return _0x53f1eb(_0x3f5a7e,_0x3aa9f5-_0x1673f6._0x414d0c,_0x1996f8-0x1da,_0x3aa9f5-_0x1673f6._0x22fce3);}const {seedId:_0x184038,status:_0x3a2458}=_0x2014c2[_0x51d958(0x110,_0x3de153._0x2d66f4,0x11e,_0x3de153._0x100aab)];return _0x3a2458===PAIRING_STATUS[_0x25b008(0x48d,_0x3de153._0x17a4bd,_0x3de153._0xd2534d,_0x3de153._0x30c14c)]&&_0x1fd998===_0x184038;};export function*statsJoinRoomSaga(_0x2d0e82){const _0x1c2068={_0x24ba9c:0x456,_0x4a42c2:0x462,_0x2d311a:0x460,_0xc4dc79:0x45f,_0xca7082:0x458,_0x276575:0x45a,_0x184c38:0x46a,_0x35c973:0x3c,_0x1a3bc0:0x44,_0x51ff8f:0x37,_0x2d6425:0x4b,_0x1f3d3e:0x36,_0x2f0168:0x2c,_0x14f052:0x2d,_0x4357b6:0x28,_0x462a6a:0x42,_0x2c576a:0x37,_0x564b2e:0x459,_0x321a13:0x464,_0x4e265c:0x466,_0x1c2977:0x40,_0x88e7be:0x41,_0x16f97a:0x40,_0x4af9b8:0x34,_0x751565:0x35,_0x35f58e:0x44c,_0x189483:0x442,_0x5863a4:0x452,_0x3d6e1e:0x44a},_0x2c8bb3={_0x51afe1:0x16a,_0x3fd95d:0x143},_0x436b64={_0x3db979:0x401,_0x4334a7:0x1ad,_0x1f5f01:0x187},_0xe51b4b=_0x313fb9(_0x1c2068._0x24ba9c,_0x1c2068._0x4a42c2,0x448,_0x1c2068._0x2d311a);function _0x313fb9(_0x1e6349,_0x3f391b,_0x5aad42,_0x5743ef){return _0x1d7cb1(_0x1e6349-_0x436b64._0x3db979,_0x3f391b-_0x436b64._0x4334a7,_0x5aad42,_0x5743ef-_0x436b64._0x1f5f01);}function _0x38d871(_0x3d39a1,_0x3bb882,_0x2d77b7,_0x366931){return _0x53f1eb(_0x3bb882,_0x2d77b7-_0x2c8bb3._0x51afe1,_0x2d77b7-_0x2c8bb3._0x3fd95d,_0x366931-0x162);}yield setContext({[TIME_CONTEXT_KEY]:createTimeContext()});let _0x39ac50;if(joinRoomSubmit[_0x313fb9(_0x1c2068._0xc4dc79,_0x1c2068._0xca7082,_0x1c2068._0x276575,_0x1c2068._0x184c38)](_0x2d0e82)){const _0x5ed570=Date[_0x38d871(_0x1c2068._0x35c973,0x49,_0x1c2068._0x1a3bc0,0x3e)]();yield setContext({[TIME_CONTEXT_KEY]:createTimeContext(_0x5ed570)}),_0x39ac50=step(joinRoomSubmit,{'startTime':_0x5ed570,'doneTime':_0x5ed570});}else _0x39ac50=yield takeStep(joinRoomSubmit);const _0x2e4c3d=yield takeStep(isSetPairingRoomAsked());_0x2e4c3d[_0x38d871(_0x1c2068._0x51ff8f,_0x1c2068._0x2d6425,0x3c,0x35)]='asked';const {seedId:_0x21d12e}=_0x2e4c3d[_0x38d871(_0x1c2068._0x1f3d3e,_0x1c2068._0x2f0168,_0x1c2068._0x14f052,_0x1c2068._0x4357b6)][_0x38d871(_0x1c2068._0x462a6a,_0x1c2068._0x2c576a,0x33,0x37)],[_0x1874cc,_0x28e806]=yield all([takeStep(isSetPairingRoomComplete(_0x21d12e)),takeStep(isRoomAdded())]);return _0x1874cc[_0x313fb9(_0x1c2068._0x564b2e,_0x1c2068._0x4a42c2,_0x1c2068._0x321a13,_0x1c2068._0x4e265c)]=_0x38d871(_0x1c2068._0x1c2977,_0x1c2068._0x88e7be,0x35,_0x1c2068._0x16f97a),_0x28e806[_0x38d871(_0x1c2068._0x4af9b8,_0x1c2068._0x751565,0x3c,0x40)]=_0x313fb9(_0x1c2068._0x35f58e,_0x1c2068._0x189483,_0x1c2068._0x5863a4,_0x1c2068._0x3d6e1e),sequence(_0xe51b4b,[_0x39ac50,_0x2e4c3d,parallel([_0x1874cc,_0x28e806])]);}function _0x1d7cb1(_0x59eed4,_0x3de41c,_0x1d7a6e,_0x4e4d81){const _0x2dfa37={_0xfc7354:0xc7};return _0x1be4(_0x59eed4- -_0x2dfa37._0xfc7354,_0x1d7a6e);}function _0x522b(){const _0xceff90=['status','5275206DaHrFs','payload','ing','complete','10AEfOCZ','3033495FPEfVr','5291DeBsOo','join\x20room','ADDED','660jqHPLA','info','11364190wcoEYj','COMPLETED','338662irZVss','16XinpHq','toString','match','unlockRunn','now','6005910UqtThw','1qTiKzf','constructo','(((.+)+)+)','7sKCSQe','action','1230712uyhYIA','added','type'];_0x522b=function(){return _0xceff90;};return _0x522b();}export function*statsJoinRoom(_0x22422d){const _0x147d0e={_0x58cbd2:0x460,_0x1ab3d:0x45b,_0x562aa4:0x458,_0x150edb:0x453},_0x2eeff4={_0xf002be:0x1fc,_0x5e52dc:0x1fe,_0xb56362:0x3db,_0x234748:0x3d9},_0x49dc88={_0x2b67d8:0xe6,_0x5dd74a:0x65a},_0x7615b3={_0x28f781:0x6b,_0x39c12a:0x73},_0xa4f01e={_0x317ac4:0x19b,_0x24e50c:0x1ef},{timeStats:_0x1798b4}=yield getContext(ENV_CONTEXT_KEY),{log:_0x17e7f5}=_0x1798b4||{},_0x3a0a7d=_0xde947c(_0x147d0e._0x58cbd2,_0x147d0e._0x1ab3d,_0x147d0e._0x562aa4,_0x147d0e._0x150edb);_0x17e7f5(_0x3a0a7d);function _0xde947c(_0x340e58,_0x355241,_0x50bba7,_0x287097){return _0x1d7cb1(_0x287097-0x3fe,_0x355241-_0xa4f01e._0x317ac4,_0x355241,_0x287097-_0xa4f01e._0x24e50c);}yield takeLeading(joinRoomSubmit,function*_0x1abd37(_0x5f125f){if(_0x22422d['running'])return;_0x22422d['lockRunnin'+'g']();function _0x3cf7b1(_0xb3cae6,_0x4696ba,_0xf7ddbb,_0x7c05b1){return _0xde947c(_0xb3cae6-_0x7615b3._0x28f781,_0x7c05b1,_0xf7ddbb-0x70,_0x4696ba- -_0x7615b3._0x39c12a);}function _0x231f93(_0x2503d3,_0x9d4dcc,_0x397160,_0x1f4547){return _0xde947c(_0x2503d3-0xb5,_0x1f4547,_0x397160-_0x49dc88._0x2b67d8,_0x397160- -_0x49dc88._0x5dd74a);}const _0x57866a=yield statsJoinRoomSaga(_0x5f125f);yield printFlow(_0x57866a),_0x22422d[_0x231f93(-0x1f6,-_0x2eeff4._0xf002be,-0x1fd,-_0x2eeff4._0x5e52dc)+_0x3cf7b1(0x3cf,_0x2eeff4._0xb56362,0x3d5,_0x2eeff4._0x234748)]();});}