@p697/clawket 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x43b581,_0x29e054){const _0x5df907={_0x34dae4:0x547,_0x2f7b21:0x33f,_0x3b2ef5:0x1c6,_0x5ecf56:0x33,_0x58363d:0x293,_0x34b8ee:0x10d,_0x7e425c:0x27d,_0x543de6:0x94,_0x2160cd:0x21,_0x5c16d8:0x314,_0x27c970:0x13,_0x597e04:0x215,_0x4217cc:0x27a,_0x464dba:0x52,_0x3b4e4d:0x229},_0x452189={_0x55c09c:0x13e},_0x260985=_0x43b581();function _0x13f85f(_0x123af3,_0x4c01f6){return _0x2e58(_0x4c01f6- -0xff,_0x123af3);}function _0x3d264e(_0x4bc343,_0x4fa588){return _0x2e58(_0x4fa588- -_0x452189._0x55c09c,_0x4bc343);}while(!![]){try{const _0x430d83=parseInt(_0x3d264e(_0x5df907._0x34dae4,_0x5df907._0x2f7b21))/0x1*(parseInt(_0x13f85f(_0x5df907._0x3b2ef5,-_0x5df907._0x5ecf56))/0x2)+-parseInt(_0x13f85f(0x1c4,_0x5df907._0x58363d))/0x3+-parseInt(_0x13f85f(_0x5df907._0x34b8ee,0x195))/0x4*(-parseInt(_0x3d264e(-0x62,0x119))/0x5)+parseInt(_0x3d264e(-_0x5df907._0x7e425c,-_0x5df907._0x543de6))/0x6*(-parseInt(_0x13f85f(0x1fc,_0x5df907._0x2160cd))/0x7)+parseInt(_0x3d264e(_0x5df907._0x5c16d8,0x1e7))/0x8+parseInt(_0x13f85f(-0x129,_0x5df907._0x27c970))/0x9*(parseInt(_0x3d264e(_0x5df907._0x597e04,_0x5df907._0x4217cc))/0xa)+parseInt(_0x13f85f(_0x5df907._0x464dba,_0x5df907._0x3b4e4d))/0xb;if(_0x430d83===_0x29e054)break;else _0x260985['push'](_0x260985['shift']());}catch(_0xb5f0d8){_0x260985['push'](_0x260985['shift']());}}}(_0x39fb,0xc3f52));const _0x2f63a8=(function(){const _0x4cc0c1={_0x586ba5:0x27a,_0x4481a9:0x1fc};let _0x2e068d=!![];return function(_0x1b12b9,_0x26b762){const _0x5b62cc=_0x2e068d?function(){const _0x1f8a61={_0x23e46c:0x39b};function _0x117838(_0x5188ea,_0x46e40f){return _0x2e58(_0x5188ea- -_0x1f8a61._0x23e46c,_0x46e40f);}if(_0x26b762){const _0x45d011=_0x26b762[_0x117838(-_0x4cc0c1._0x586ba5,-_0x4cc0c1._0x4481a9)](_0x1b12b9,arguments);return _0x26b762=null,_0x45d011;}}:function(){};return _0x2e068d=![],_0x5b62cc;};}()),_0x5b6c10=_0x2f63a8(this,function(){const _0x48ded4={_0x157456:0x41c,_0x16b277:0x2eb,_0x3e3129:0x5e6,_0x52e82a:0x563,_0x76fe95:0x3d8,_0x14860c:0x596},_0x269a67={_0x450b2a:0x253},_0x3d6f2e={};function _0x55cf07(_0x4c6c27,_0x42f05c){return _0x2e58(_0x4c6c27-_0x269a67._0x450b2a,_0x42f05c);}function _0x211ac3(_0x494fc5,_0xb4316b){return _0x2e58(_0xb4316b-0x165,_0x494fc5);}_0x3d6f2e[_0x55cf07(_0x48ded4._0x157456,0x532)]='(((.+)+)'+_0x211ac3(_0x48ded4._0x16b277,0x4c7);const _0x55272c=_0x3d6f2e;return _0x5b6c10[_0x55cf07(0x563,0x473)]()[_0x55cf07(0x3bc,0x4e5)](_0x55272c[_0x55cf07(0x41c,_0x48ded4._0x3e3129)])[_0x55cf07(_0x48ded4._0x52e82a,_0x48ded4._0x76fe95)]()[_0x55cf07(0x459,0x505)+_0x211ac3(0x282,0x34d)](_0x5b6c10)[_0x55cf07(0x3bc,_0x48ded4._0x14860c)](_0x55272c['eKXmJ']);});_0x5b6c10();import _0x52e07e from'qrcode-terminal';import{readFileSync as _0x365046}from'fs';import{Socket}from'net';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x11b7ab(0x4c1,0x2c6)),CONFIG_PATH=join(CONFIG_DIR,'bridge-c'+_0x11b7ab(-0x20f,-0xb2)),OPENCLAW_CONFIG_PATH=join(homedir(),_0x6eb3(0x1a8,0x271)+'w','openclaw'+'.json');function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x313ce0={_0x1d4b82:0x4,_0x554f8c:0x67,_0x4bbd1e:0x24e,_0x2d8907:0x146,_0x18d1c1:0x1ef,_0x1962e8:0x1ff,_0x1a1de4:0x274,_0x219999:0x3b5,_0x155848:0x1c3,_0x42c29b:0x4c8,_0x56b55c:0x2fd,_0x16c1de:0x4a,_0x4f2620:0x158};function _0x59905f(_0x20c1f1,_0x3952f0){return _0x11b7ab(_0x3952f0,_0x20c1f1-0x2ee);}const _0x3f6e3d={'PNHCF':function(_0x2aaa79,_0x592090){return _0x2aaa79(_0x592090);},'ksbkr':function(_0x38de26,_0x23ca2c){return _0x38de26!==_0x23ca2c;},'bmPuY':function(_0x4ea86e,_0x9c220a){return _0x4ea86e(_0x9c220a);}};function _0x526f40(_0x272069,_0x286e5d){return _0x11b7ab(_0x286e5d,_0x272069-0x61);}if(!_0x3f6e3d['PNHCF'](existsSync,CONFIG_PATH))return null;try{const _0x2f4c17=JSON['parse'](readFileSync(CONFIG_PATH,_0x526f40(0x179,-_0x313ce0._0x1d4b82)));if(!_0x2f4c17['serverUr'+'l']||!_0x2f4c17[_0x59905f(0x4db,0x488)+'d']||!_0x2f4c17[_0x526f40(-_0x313ce0._0x554f8c,-0xc4)+_0x59905f(0x5cb,0x5b2)]||!_0x2f4c17['relayUrl'])return null;const _0x4e13e8={'serverUrl':_0x2f4c17['serverUr'+'l'],'gatewayId':_0x2f4c17[_0x526f40(_0x313ce0._0x4bbd1e,0x107)+'d'],'relaySecret':_0x2f4c17[_0x526f40(-0x67,_0x313ce0._0x2d8907)+_0x526f40(0x33e,_0x313ce0._0x18d1c1)],'relayUrl':_0x2f4c17[_0x59905f(_0x313ce0._0x1962e8,0x3fa)],'instanceId':_0x2f4c17['instance'+'Id']?.[_0x526f40(0x160,-0x51)]()||createInstanceId(),'displayName':_0x2f4c17['displayN'+'ame']??null,'createdAt':_0x2f4c17[_0x526f40(_0x313ce0._0x1a1de4,_0x313ce0._0x219999)+'t']??new Date()[_0x526f40(_0x313ce0._0x155848,0xbe)+'ing'](),'updatedAt':_0x2f4c17[_0x526f40(0x2cf,_0x313ce0._0x42c29b)+'t']??new Date()['toISOStr'+'ing']()};return _0x3f6e3d[_0x526f40(_0x313ce0._0x56b55c,0x36f)](_0x2f4c17[_0x526f40(0x8b,_0x313ce0._0x16c1de)+'Id'],_0x4e13e8[_0x526f40(0x8b,-_0x313ce0._0x4f2620)+'Id'])&&_0x3f6e3d[_0x59905f(0x339,0x348)](writePairingConfig,_0x4e13e8),_0x4e13e8;}catch{return null;}}function writePairingConfig(_0x337a9d){const _0x3c0612={_0x33f6fc:0xd6,_0x5442dd:0xe4};function _0x367be6(_0x5650c1,_0x2c06ef){return _0x11b7ab(_0x2c06ef,_0x5650c1- -0x170);}function _0x5689e3(_0xb311b1,_0x40d39b){return _0x11b7ab(_0x40d39b,_0xb311b1- -0x202);}const _0x37b251={'zkrdp':function(_0x43895a,_0x1ec109,_0x280330,_0x1f6680){return _0x43895a(_0x1ec109,_0x280330,_0x1f6680);},'NIlGi':_0x367be6(-0x58,_0x3c0612._0x33f6fc)},_0x13064d={};_0x13064d['recursiv'+'e']=!![],mkdirSync(CONFIG_DIR,_0x13064d),_0x37b251[_0x5689e3(-0x216,-0x18e)](writeFileSync,CONFIG_PATH,JSON['stringif'+'y'](_0x337a9d,null,0x2)+'\x0a',_0x37b251[_0x367be6(-_0x3c0612._0x5442dd,-0x116)]);}function deletePairingConfig(){if(!existsSync(CONFIG_PATH))return;const _0x4f9c43={};_0x4f9c43['force']=!![],rmSync(CONFIG_PATH,_0x4f9c43);}function getDefaultBridgeDisplayName(){const _0x4597cd={_0x2fcb90:0x15d,_0x373af0:0x447,_0x5d8b2b:0x49d,_0x2cb1da:0x199,_0x3c8b42:0x69,_0x3f5ef7:0xc6,_0x54eda3:0x3cd,_0xfa6eb5:0x56f},_0x549fa6={_0x1f5058:0x54},_0x481a06={_0x168573:0x35e},_0x1164b9={'pfHGK':function(_0x10d5a5){return _0x10d5a5();},'eKRkn':_0x19830f(-_0x4597cd._0x2fcb90,-0x242)+'Bridge'},_0x2026c7=_0x1164b9[_0x19830f(0x1a3,0xd6)](readOpenClawDefaultAgentName);function _0x20b005(_0x53e83b,_0x1e4432){return _0x6eb3(_0x53e83b,_0x1e4432-_0x481a06._0x168573);}if(_0x2026c7)return _0x2026c7;try{const _0x339c59=userInfo()[_0x20b005(_0x4597cd._0x373af0,_0x4597cd._0x5d8b2b)][_0x19830f(0x69,-_0x4597cd._0x2cb1da)]();if(_0x339c59)return _0x339c59;}catch{}const _0x2ed3bb=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x19830f(_0x4597cd._0x3c8b42,_0x4597cd._0x3f5ef7)]();if(_0x2ed3bb)return _0x2ed3bb;function _0x19830f(_0x20c3ab,_0x58479f){return _0x6eb3(_0x58479f,_0x20c3ab- -_0x549fa6._0x1f5058);}return hostname()['trim']()||_0x1164b9[_0x20b005(_0x4597cd._0x54eda3,_0x4597cd._0xfa6eb5)];}function pickOpenClawDefaultAgentName(_0x492853){const _0x25ff05={_0x1b9dfa:0x49,_0x1f6f60:0x6d,_0x11881a:0x228},_0x4f6664={_0x4ce526:0x13d},_0x1b6e62={_0x4da85f:0x272};function _0x192d25(_0x1ae225,_0x53bc56){return _0x6eb3(_0x1ae225,_0x53bc56-_0x1b6e62._0x4da85f);}if(!_0x492853||typeof _0x492853!==_0x192d25(_0x25ff05._0x1b9dfa,0x16f))return null;const _0x146e31=_0x492853['agents'];function _0x24c5c6(_0x2500fd,_0x36b729){return _0x6eb3(_0x36b729,_0x2500fd- -_0x4f6664._0x4ce526);}const _0x2d8e3b=Array[_0x192d25(0x337,0x2bf)](_0x146e31?.[_0x192d25(0x2b9,0x21d)])?_0x146e31['list']:[],_0x1aab03=_0x2d8e3b[_0x24c5c6(-_0x25ff05._0x1f6f60,-_0x25ff05._0x11881a)](_0x327cc1=>isDefaultAgent(_0x327cc1))??_0x2d8e3b[_0x192d25(0x415,0x342)](_0x527a21=>hasAgentId(_0x527a21,_0x192d25(0x10a,0x1df)))??_0x2d8e3b[0x0];return readAgentName(_0x1aab03);}function createInstanceId(){const _0x38c8d5={_0x46e6bd:0x1f0,_0x4cd723:0x1c8,_0x16a9cd:0x1fb,_0x3a3c54:0x176,_0x3569df:0x38e,_0x161f74:0x441};function _0x4d79bd(_0x254727,_0x3d835a){return _0x6eb3(_0x3d835a,_0x254727-0x261);}const _0x2a8487={'TxkMd':_0x4d79bd(0x300,0x217),'EJQCj':function(_0x3e04c7){return _0x3e04c7();}};function _0x15c007(_0x3b6c08,_0x4d1802){return _0x6eb3(_0x4d1802,_0x3b6c08- -0x17a);}const _0x3b4678=sanitizeId(hostname()||_0x2a8487[_0x15c007(-_0x38c8d5._0x46e6bd,-0x65)]);return _0x15c007(-_0x38c8d5._0x4cd723,-_0x38c8d5._0x16a9cd)+_0x3b4678+'-'+_0x2a8487[_0x4d79bd(_0x38c8d5._0x3a3c54,0x1c1)](randomUUID)[_0x4d79bd(_0x38c8d5._0x3569df,_0x38c8d5._0x161f74)](0x0,0xa);}function sanitizeId(_0x2f754e){const _0xc2dde6={_0x505793:0x93,_0x5b623f:0x200,_0x2dbe75:0x20d,_0x54bccc:0x61},_0x104480={_0x373a8f:0x100},_0x242c4f={_0x186d8c:0xa9};function _0x2392d9(_0x5b94da,_0x42b581){return _0x6eb3(_0x5b94da,_0x42b581-_0x242c4f._0x186d8c);}function _0x1224bc(_0x5351c4,_0x2a9721){return _0x6eb3(_0x5351c4,_0x2a9721- -_0x104480._0x373a8f);}return _0x2f754e['trim']()[_0x1224bc(-0x145,-_0xc2dde6._0x505793)+'ase']()[_0x1224bc(-_0xc2dde6._0x5b623f,-_0xc2dde6._0x2dbe75)](/[^a-z0-9._-]+/g,'-')['replace'](/^-+|-+$/g,'')||_0x1224bc(-0x200,-_0xc2dde6._0x54bccc);}function readOpenClawDefaultAgentName(){const _0x4b85f1={_0x1f2fee:0x395},_0x15be5c={_0x1c50df:0x27d};function _0x1f3862(_0x503c11,_0x2e4883){return _0x6eb3(_0x2e4883,_0x503c11-_0x15be5c._0x1c50df);}const _0x1f8b5c={'DsYVz':function(_0x2ec6a8,_0x33cec9,_0x179856){return _0x2ec6a8(_0x33cec9,_0x179856);}};if(!existsSync(OPENCLAW_CONFIG_PATH))return null;function _0x5afd9e(_0x3599c6,_0x2f57b0){return _0x6eb3(_0x3599c6,_0x2f57b0-0x3cb);}try{const _0x5c6b84=JSON['parse'](_0x1f8b5c[_0x1f3862(_0x4b85f1._0x1f2fee,0x1ff)](readFileSync,OPENCLAW_CONFIG_PATH,_0x5afd9e(0x521,0x4a1)));return pickOpenClawDefaultAgentName(_0x5c6b84);}catch{return null;}}function isDefaultAgent(_0x2d62af){const _0x4dfc23={_0x406c3f:0x1ad,_0x677730:0xef,_0x419c25:0x23};function _0x5729c7(_0x40f572,_0xf9e910){return _0x11b7ab(_0x40f572,_0xf9e910-0x535);}function _0x1f0bbd(_0x58c1d5,_0x493425){return _0x11b7ab(_0x58c1d5,_0x493425- -0xec);}const _0x4aef20={'GWQep':function(_0x9f0cdf,_0x41549b){return _0x9f0cdf(_0x41549b);}};return _0x4aef20['GWQep'](Boolean,_0x2d62af&&typeof _0x2d62af===_0x1f0bbd(-0x1a,-_0x4dfc23._0x406c3f)&&_0x2d62af[_0x1f0bbd(_0x4dfc23._0x677730,_0x4dfc23._0x419c25)]===!![]);}function hasAgentId(_0x26ed6b,_0x2bfc56){const _0x7b4e84={_0x418336:0x362,_0x199ece:0x411,_0x21bf3e:0x71e,_0x40f009:0x737,_0x45961f:0x5d1},_0x541524={_0x55558a:0x514};function _0xdfda9d(_0x3288b1,_0x4f131c){return _0x6eb3(_0x3288b1,_0x4f131c- -0x12f);}const _0x1d049d={'ntILG':function(_0xe7fe01,_0x20e216){return _0xe7fe01(_0x20e216);},'exVop':'string'};function _0x5bf8d7(_0x5d643d,_0x262f55){return _0x6eb3(_0x5d643d,_0x262f55-_0x541524._0x55558a);}return _0x1d049d['ntILG'](Boolean,_0x26ed6b&&typeof _0x26ed6b===_0x5bf8d7(_0x7b4e84._0x418336,_0x7b4e84._0x199ece)&&typeof _0x26ed6b['id']===_0x1d049d[_0x5bf8d7(_0x7b4e84._0x21bf3e,_0x7b4e84._0x40f009)]&&_0x26ed6b['id'][_0x5bf8d7(0x526,_0x7b4e84._0x45961f)]()===_0x2bfc56);}function readAgentName(_0x595c41){const _0x3c4f41={_0x38dc69:0x1b4,_0x51930a:0x1c7,_0x4be06f:0x47,_0x5cb347:0x121},_0x35dc7c={_0x4691a3:0x9d};if(!_0x595c41||typeof _0x595c41!=='object')return null;function _0x23cabf(_0x395d1d,_0x1318de){return _0x6eb3(_0x1318de,_0x395d1d- -_0x35dc7c._0x4691a3);}function _0x22ff82(_0x1fd43c,_0x4b8ba0){return _0x6eb3(_0x4b8ba0,_0x1fd43c- -0x133);}const _0x2264de=_0x595c41,_0x22b012=typeof _0x2264de[_0x23cabf(-0x11e,-0x53)]?.['name']==='string'?_0x2264de[_0x22ff82(-_0x3c4f41._0x38dc69,-_0x3c4f41._0x51930a)][_0x23cabf(-_0x3c4f41._0x4be06f,-0xd1)]['trim']():'';if(_0x22b012)return _0x22b012;const _0x2a635c=typeof _0x2264de['name']===_0x22ff82(-0x1f0,-_0x3c4f41._0x5cb347)?_0x2264de[_0x23cabf(-0x47,-0x223)]['trim']():'';return _0x2a635c||null;}function buildPairingQrPayload(_0x8ce880){const _0x2213f8={_0x360c94:0x1ae,_0x25819f:0x16f,_0xe104fb:0x223,_0x3c7b36:0x196,_0x5d21cf:0x276,_0xf24c13:0x480,_0x543c73:0x39c,_0x40ba61:0x23d,_0x540fd3:0x638,_0x15296f:0x7d3,_0x31368d:0x28b,_0x24ddc9:0x1a2,_0x33e96e:0x522,_0x4e3a72:0x492},_0x5ec04a={_0x5c58ab:0x1ce},_0x2cec31={};_0x2cec31['v']=0x2,_0x2cec31['k']='cp',_0x2cec31['s']=_0x8ce880[_0x2b8044(_0x2213f8._0x360c94,_0x2213f8._0x25819f)],_0x2cec31['g']=_0x8ce880[_0x2b8044(0x379,_0x2213f8._0xe104fb)+'d'],_0x2cec31['a']=_0x8ce880[_0x2b8044(0x1a0,_0x2213f8._0x3c7b36)+'de'];function _0x2b8044(_0x516e92,_0x375f97){return _0x6eb3(_0x375f97,_0x516e92-_0x5ec04a._0x5c58ab);}const _0x458bee=_0x2cec31;_0x8ce880[_0x2b8044(_0x2213f8._0x5d21cf,0x322)+_0x2b8044(_0x2213f8._0xf24c13,_0x2213f8._0x543c73)]?.[_0x2d2134(0x522,0x3af)]()&&(_0x458bee['n']=_0x8ce880[_0x2d2134(0x50d,0x6c6)+_0x2b8044(0x480,0x4d0)][_0x2b8044(0x28b,0x252)]());function _0x2d2134(_0x22b47c,_0x3e316c){return _0x6eb3(_0x3e316c,_0x22b47c-0x465);}return _0x8ce880['token']?.[_0x2b8044(0x28b,_0x2213f8._0x40ba61)]()&&(_0x458bee['t']=_0x8ce880[_0x2d2134(_0x2213f8._0x540fd3,_0x2213f8._0x15296f)][_0x2b8044(_0x2213f8._0x31368d,_0x2213f8._0x24ddc9)]()),_0x8ce880['password']?.[_0x2d2134(_0x2213f8._0x33e96e,0x5a9)]()&&(_0x458bee['p']=_0x8ce880[_0x2d2134(0x552,0x5aa)][_0x2b8044(0x28b,0x26f)]()),JSON[_0x2d2134(0x629,_0x2213f8._0x4e3a72)+'y'](_0x458bee);}async function pairGateway(_0x41e6d1){const _0x13662c={_0x134baf:0x258,_0x3541b0:0x227,_0x5d51d3:0x31d,_0x513d50:0xd6,_0x16e8dd:0xf0,_0x58e60b:0x138,_0x24ba0d:0x127,_0x43d085:0x166,_0x54817b:0x36f,_0x21bfad:0x197,_0x462746:0x23,_0x4c05c2:0x28,_0x2f1c68:0x113,_0x37b66b:0xcf,_0x73ee60:0x173,_0x3a6086:0x225,_0xae7569:0x3b3,_0xfb9a5a:0x30d,_0x385cfe:0x10f,_0x233857:0x8c,_0x5bd605:0x12b,_0xe19934:0x192,_0x43dafb:0x263,_0x5b667a:0x11b,_0x559c4c:0x4,_0x5d1335:0xdd,_0x592ce8:0xd1,_0xe4e374:0x9f,_0xd65c06:0x111,_0x466679:0x6b,_0x124779:0xb,_0x42f2de:0x288,_0x58427d:0xb9,_0x1d0fc1:0x1d7,_0xebacb7:0xea,_0x4e89d5:0xc4,_0x49f028:0x15,_0x1d4aec:0x3f,_0x5432de:0x196,_0x471fcd:0xde,_0x5a9c2d:0xc6,_0xad779d:0x1e5,_0x90e6ee:0x1d2,_0xdc3f94:0xe7,_0x39a8ac:0x9b,_0x42d16a:0x17b,_0x40948c:0x11e,_0x12ec3b:0x29d,_0x893f01:0xfb,_0x1a6677:0x1e0,_0x5f06e4:0x19a,_0x570d86:0x166,_0x8b505:0x1af,_0x319160:0x1b},_0x4c3b29={'ciiXl':function(_0x5b0c5c,_0x5820ad){return _0x5b0c5c===_0x5820ad;},'rdYrC':'server-m'+'ismatch','jmgXi':function(_0x2fc385,_0x770cbd,_0x126895){return _0x2fc385(_0x770cbd,_0x126895);},'NMmaM':_0x490f2e(_0x13662c._0x134baf,0x450),'FlTbf':function(_0x23fd44,_0x3d2d47){return _0x23fd44(_0x3d2d47);}},_0x45bacf=normalizeHttpBase(_0x41e6d1[_0x297473(-0xcf,-_0x13662c._0x3541b0)+'l']),_0x245cee=readPairingConfig(),_0x587b9d=assessPairingCompatibility(_0x245cee,_0x45bacf);if(_0x4c3b29[_0x297473(-0x11a,-0x164)](_0x587b9d,_0x297473(-0x205,-_0x13662c._0x5d51d3)+_0x297473(0x1ef,_0x13662c._0x513d50))&&_0x245cee){const _0x3cc727={};return _0x3cc727[_0x490f2e(_0x13662c._0x16e8dd,0x8)+'l']=_0x245cee[_0x297473(-0xcf,-0x299)+'l'],_0x3cc727[_0x297473(0xde,-0x7c)+'d']=_0x245cee[_0x297473(0xde,-0x19)+'d'],_0x3cc727[_0x490f2e(-0x18,-0x10)+_0x490f2e(0x38d,0x4e0)]=_0x245cee[_0x490f2e(-0x18,0x1b0)+_0x490f2e(0x38d,0x185)],_0x3cc727[_0x297473(-0x25,_0x13662c._0x58e60b)+'ame']=_0x41e6d1[_0x490f2e(0x19a,0x101)+_0x297473(0x1e5,_0x13662c._0x24ba0d)],_0x3cc727[_0x490f2e(0x189,0x292)+'oken']=_0x41e6d1[_0x490f2e(0x189,0x143)+_0x490f2e(_0x13662c._0x43d085,_0x13662c._0x54817b)],_0x3cc727[_0x297473(-_0x13662c._0x21bfad,-_0x13662c._0x462746)+'assword']=_0x41e6d1[_0x490f2e(_0x13662c._0x4c05c2,_0x13662c._0x2f1c68)+_0x297473(-0x70,-_0x13662c._0x37b66b)],refreshAccessCode(_0x3cc727);}if(_0x587b9d===_0x4c3b29['rdYrC'])throw new Error(_0x490f2e(0x1a4,_0x13662c._0x73ee60)+'dge\x20is\x20a'+_0x490f2e(0x3f,0x21d)+'aired\x20wi'+_0x297473(-0x68,-_0x13662c._0x3a6086)+_0x245cee?.[_0x297473(-0xcf,-0x5c)+'l']+(_0x490f2e(_0x13662c._0xae7569,0x51d)+_0x490f2e(_0x13662c._0xfb9a5a,_0x13662c._0x385cfe)+'eset\x22\x20be'+'fore\x20pai'+'ring\x20wit'+_0x490f2e(_0x13662c._0x233857,0x281)+_0x297473(-_0x13662c._0x5bd605,-0x1f4)+_0x297473(_0x13662c._0xe19934,_0x13662c._0x43dafb)));const _0x5b60b4={};function _0x297473(_0x3fb0dd,_0x58323f){return _0x11b7ab(_0x58323f,_0x3fb0dd- -0x10f);}_0x5b60b4[_0x297473(0x68,_0x13662c._0x5b667a)+_0x297473(_0x13662c._0x559c4c,-0xfc)]='applicat'+'ion/json',_0x5b60b4['accept']='applicat'+_0x297473(-0x1fa,-_0x13662c._0x5d1335);const _0x2a8d88=await _0x4c3b29[_0x297473(-_0x13662c._0x592ce8,0x22)](fetch,_0x45bacf+('/v1/pair'+_0x490f2e(_0x13662c._0xe4e374,_0x13662c._0xd65c06)+'r'),{'method':_0x4c3b29[_0x490f2e(_0x13662c._0x466679,-0x124)],'headers':_0x5b60b4,'body':JSON['stringif'+'y']({'displayName':_0x41e6d1[_0x297473(-0x25,_0x13662c._0x124779)+_0x297473(0x1e5,_0x13662c._0x42f2de)]?.[_0x297473(-0x10,-0xb5)]()||null})});if(!_0x2a8d88['ok'])throw new Error(_0x297473(_0x13662c._0x58427d,0x7c)+'ister\x20fa'+'iled\x20('+_0x2a8d88[_0x297473(_0x13662c._0x1d0fc1,0x61)]+_0x490f2e(0x19f,_0x13662c._0xebacb7)+await _0x2a8d88[_0x297473(-0xff,-0x1c6)]());const _0xaa47a8=await _0x2a8d88[_0x297473(_0x13662c._0x4e89d5,-_0x13662c._0x49f028)](),_0xbce93c=new Date()['toISOStr'+'ing'](),_0x1684fa={'serverUrl':_0x45bacf,'gatewayId':_0xaa47a8['gatewayI'+'d'],'relaySecret':_0xaa47a8['relaySec'+_0x490f2e(0x38d,0x359)],'relayUrl':_0xaa47a8[_0x490f2e(-_0x13662c._0x1d4aec,-_0x13662c._0x5432de)],'instanceId':_0x245cee?.[_0x490f2e(0xda,0x207)+'Id']??_0x297473(-0x11b,-0x68)+_0xaa47a8[_0x297473(_0x13662c._0x471fcd,_0x13662c._0x5a9c2d)+'d']['slice'](-0xa),'displayName':_0xaa47a8['displayN'+_0x297473(_0x13662c._0xad779d,0x278)],'createdAt':_0xbce93c,'updatedAt':_0xbce93c};function _0x490f2e(_0x36d9b9,_0x40e57f){return _0x11b7ab(_0x40e57f,_0x36d9b9-0xb0);}return _0x4c3b29[_0x297473(-_0x13662c._0x90e6ee,-_0x13662c._0xdc3f94)](writePairingConfig,_0x1684fa),{'config':_0x1684fa,'accessCode':_0xaa47a8[_0x490f2e(_0x13662c._0x4e89d5,0x54)+'de'],'accessCodeExpiresAt':_0xaa47a8['accessCo'+_0x297473(_0x13662c._0x39a8ac,-_0x13662c._0x466679)+_0x297473(-_0x13662c._0x42d16a,-_0x13662c._0x40948c)],'action':_0x490f2e(0x290,0x300)+'ed','qrPayload':buildPairingQrPayload({'server':_0x45bacf,'gatewayId':_0xaa47a8[_0x490f2e(_0x13662c._0x12ec3b,0x422)+'d'],'accessCode':_0xaa47a8[_0x297473(-_0x13662c._0x893f01,-_0x13662c._0x1a6677)+'de'],'displayName':_0xaa47a8[_0x490f2e(_0x13662c._0x5f06e4,0x257)+'ame'],'token':_0x41e6d1[_0x297473(-0x36,-0x41)+_0x490f2e(_0x13662c._0x570d86,0x1f8)]?.[_0x490f2e(_0x13662c._0x8b505,-_0x13662c._0x319160)]()||null,'password':_0x41e6d1[_0x490f2e(_0x13662c._0x4c05c2,-0x82)+'assword']?.[_0x490f2e(_0x13662c._0x8b505,0x15f)]()||null})};}async function refreshAccessCode(_0x169844){const _0x5d07b4={_0x4d2415:0x2b0,_0x459c9f:0x2f,_0x4b4a02:0x164,_0x16005f:0x438,_0x13fa83:0x3f7,_0x4db0cd:0x397,_0x5e8d47:0x183,_0x17af43:0x3df,_0x38f944:0x528,_0x293b72:0x538,_0x4629b3:0x40f,_0x4fb937:0x76,_0x64cf03:0x1c7,_0x42a310:0x527,_0x3c8926:0x90,_0x39b4d7:0x8d,_0x3fa6bc:0x340,_0x17e8aa:0x18e,_0x30213b:0x3e3,_0x2de1c5:0x520,_0xe5a260:0x12a,_0x337369:0x238,_0x6ba7d2:0x1db,_0x31a6d0:0x48b,_0x5ae5df:0x32d,_0x975bb:0x19a,_0xa74733:0x506,_0x395bc4:0x74,_0x113864:0xc8,_0x2103db:0x1d2,_0x4dbdd1:0xe5,_0x402e06:0x25d,_0x461de1:0x1ec,_0x19cf60:0x3f5,_0x525c35:0x1df,_0x105ff7:0x34e,_0x2b6c43:0xfb,_0x30ec26:0x3d6,_0x42b92a:0x1f5,_0x3d35d1:0x341,_0x4123c9:0x34a},_0x20820a={_0x24a6e7:0x11a},_0x502f5b={'hfvfb':function(_0x21345e,_0x1f71df,_0x3a5ad9){return _0x21345e(_0x1f71df,_0x3a5ad9);},'YfqNl':_0x16645f(_0x5d07b4._0x4d2415,0x3f3),'wzSYx':'applicat'+_0x1f6370(_0x5d07b4._0x459c9f,-_0x5d07b4._0x4b4a02)},_0x4e97b9=readPairingConfig(),_0x349948=normalizeHttpBase(_0x169844?.[_0x16645f(0x362,0x28b)+'l']??_0x4e97b9?.[_0x1f6370(0x15a,0x342)+'l']??''),_0x1fb61e=_0x169844?.[_0x16645f(0x291,_0x5d07b4._0x16005f)+'d']??_0x4e97b9?.[_0x1f6370(0x307,0x1ad)+'d']??'',_0x5e178c=_0x169844?.['relaySec'+_0x1f6370(_0x5d07b4._0x13fa83,_0x5d07b4._0x4db0cd)]??_0x4e97b9?.[_0x16645f(0x365,_0x5d07b4._0x5e8d47)+_0x16645f(_0x5d07b4._0x17af43,_0x5d07b4._0x38f944)]??'';if(!_0x349948||!_0x1fb61e||!_0x5e178c)throw new Error('Pairing\x20'+_0x1f6370(0x3a5,0x27e)+'ot\x20found'+'.\x20Run\x20pa'+'ir\x20first'+'.');const _0x59ee61=await _0x502f5b[_0x16645f(_0x5d07b4._0x293b72,_0x5d07b4._0x4629b3)](fetch,_0x349948+(_0x1f6370(_0x5d07b4._0x4fb937,_0x5d07b4._0x64cf03)+'/access-'+_0x1f6370(0x8a,0x13a)),{'method':_0x502f5b[_0x16645f(0x653,_0x5d07b4._0x42a310)],'headers':{'content-type':_0x502f5b[_0x1f6370(_0x5d07b4._0x3c8926,_0x5d07b4._0x39b4d7)],'accept':_0x1f6370(0x417,_0x5d07b4._0x3fa6bc)+_0x1f6370(0x2f,_0x5d07b4._0x17e8aa)},'body':JSON[_0x1f6370(0x320,_0x5d07b4._0x30213b)+'y']({'gatewayId':_0x1fb61e,'relaySecret':_0x5e178c,'displayName':_0x169844?.['displayN'+'ame']?.[_0x16645f(0x32d,0x34a)]()||void 0x0})});if(!_0x59ee61['ok'])throw new Error('Access\x20c'+_0x16645f(_0x5d07b4._0x2de1c5,0x3a8)+_0x16645f(0x407,0x475)+'ed\x20('+_0x59ee61['status']+'):\x20'+await _0x59ee61[_0x1f6370(_0x5d07b4._0xe5a260,_0x5d07b4._0x337369)]());const _0x503591=await _0x59ee61['json'](),_0x6448a1={'serverUrl':_0x349948,'gatewayId':_0x503591['gatewayI'+'d'],'relaySecret':_0x5e178c,'relayUrl':_0x503591[_0x1f6370(0x2b,-0x121)],'instanceId':_0x4e97b9?.[_0x16645f(_0x5d07b4._0x6ba7d2,0x275)+'Id']??_0x1f6370(0x10e,0x184)+_0x503591[_0x1f6370(0x307,_0x5d07b4._0x31a6d0)+'d'][_0x1f6370(0x289,0x3ac)](-0xa),'displayName':_0x503591[_0x16645f(0x4fb,0x335)+'ame'],'createdAt':_0x4e97b9?.[_0x1f6370(_0x5d07b4._0x5ae5df,_0x5d07b4._0x975bb)+'t']??new Date()[_0x16645f(_0x5d07b4._0xa74733,0x3ad)+_0x16645f(0x3c2,0x1f9)](),'updatedAt':new Date()[_0x1f6370(0x27c,_0x5d07b4._0x395bc4)+_0x1f6370(_0x5d07b4._0x113864,_0x5d07b4._0x2103db)]()};writePairingConfig(_0x6448a1);function _0x16645f(_0x777cd1,_0xa66036){return _0x11b7ab(_0x777cd1,_0xa66036-0x24b);}function _0x1f6370(_0x47fa74,_0x140d07){return _0x11b7ab(_0x140d07,_0x47fa74-_0x20820a._0x24a6e7);}return{'config':_0x6448a1,'accessCode':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x4dbdd1)+'de'],'accessCodeExpiresAt':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x402e06)+_0x16645f(_0x5d07b4._0x461de1,_0x5d07b4._0x19cf60)+_0x16645f(0x242,_0x5d07b4._0x525c35)],'action':_0x16645f(0x503,_0x5d07b4._0x105ff7)+'d','qrPayload':buildPairingQrPayload({'server':_0x349948,'gatewayId':_0x503591['gatewayI'+'d'],'accessCode':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x2b6c43)+'de'],'displayName':_0x503591[_0x16645f(0x1fb,0x335)+_0x16645f(_0x5d07b4._0x30ec26,0x53f)],'token':_0x169844?.['gatewayT'+'oken']?.[_0x16645f(_0x5d07b4._0x42b92a,0x34a)]()||null,'password':_0x169844?.[_0x16645f(0x1,0x1c3)+'assword']?.[_0x16645f(_0x5d07b4._0x3d35d1,_0x5d07b4._0x4123c9)]()||null})};}function normalizeHttpBase(_0x13898b){const _0x54b307={_0x431b50:0x3e5,_0x409588:0x1f4,_0x2785fb:0x1de,_0x54934a:0x204,_0x5ce106:0x8a,_0x40ebc2:0x1c9,_0x1db6d3:0x22d,_0x4c5bd0:0xec,_0x5eab10:0x8a,_0x462ad6:0x3a7,_0x2e4a43:0x2ed,_0x15e588:0x184,_0x3f61b4:0x442,_0x5ab2fc:0x1ee,_0x5149f5:0x4b,_0x2a3e73:0xb6},_0x54a050={_0x6ba67d:0x44c},_0x19bd8b={_0x3adb4e:0x15},_0x36d27c={};_0x36d27c[_0x213bbd(0x4be,_0x54b307._0x431b50)]=_0x105d38(_0x54b307._0x409588,0xb7),_0x36d27c['PPmTj']=_0x105d38(0x16c,_0x54b307._0x2785fb);const _0x7fec41=_0x36d27c,_0x44c90a=_0x13898b['trim']();if(!_0x44c90a)return'';if(_0x44c90a[_0x105d38(_0x54b307._0x54934a,_0x54b307._0x5ce106)+'th'](_0x7fec41['apHHW'])||_0x44c90a['startsWi'+'th'](_0x105d38(_0x54b307._0x40ebc2,0x1ee)))return _0x44c90a[_0x213bbd(_0x54b307._0x1db6d3,0x381)](/\/+$/,'');function _0x105d38(_0xa2d5d0,_0xa1b956){return _0x11b7ab(_0xa2d5d0,_0xa1b956-_0x19bd8b._0x3adb4e);}if(_0x44c90a[_0x105d38(-_0x54b307._0x4c5bd0,_0x54b307._0x5eab10)+'th'](_0x105d38(_0x54b307._0x462ad6,_0x54b307._0x2e4a43)))return(_0x105d38(0x169,0xb7)+_0x44c90a[_0x105d38(-0x2e,_0x54b307._0x15e588)]('ws://'['length']))[_0x213bbd(_0x54b307._0x3f61b4,0x381)](/\/+$/,'');function _0x213bbd(_0x1618c8,_0x3969b9){return _0x11b7ab(_0x1618c8,_0x3969b9-_0x54a050._0x6ba67d);}if(_0x44c90a['startsWi'+'th'](_0x7fec41['PPmTj']))return(_0x105d38(0x31b,_0x54b307._0x5ab2fc)+_0x44c90a['slice'](_0x105d38(-0x3,0x1de)[_0x105d38(-0x4f,0xfe)]))[_0x105d38(-_0x54b307._0x5149f5,-_0x54b307._0x2a3e73)](/\/+$/,'');return(_0x213bbd(0x4e4,0x625)+_0x44c90a)['replace'](/\/+$/,'');}function assessPairingCompatibility(_0x5a23ea,_0x458b79){const _0x2bb680={_0x348c68:0x6e8,_0x26cbc8:0x4db,_0x4eef28:0x4c5,_0xcb1e5:0x4c8,_0x30af11:0x5a3,_0x3effd6:0x787,_0x316495:0x710,_0x1ecbba:0x532,_0x52dca4:0x3de,_0x55a131:0x72a,_0xcd6f81:0x60c},_0x592a36={_0x21a7b4:0x4f2},_0x2e7b7f={_0xb0da5c:0x230},_0x34f630={};_0x34f630[_0x5b7fdb(0x41e,0x33d)]=_0x3f034c(_0x2bb680._0x348c68,0x6d2)+_0x5b7fdb(_0x2bb680._0x26cbc8,0x362);function _0x5b7fdb(_0x236f08,_0x219e4d){return _0x11b7ab(_0x219e4d,_0x236f08-_0x2e7b7f._0xb0da5c);}_0x34f630[_0x5b7fdb(_0x2bb680._0x4eef28,_0x2bb680._0xcb1e5)]=function(_0x34bd9e,_0x3620f4){return _0x34bd9e===_0x3620f4;};const _0x59d3fb=_0x34f630;if(!_0x5a23ea)return _0x59d3fb['uZKJc'];function _0x3f034c(_0x45b98c,_0xf454fc){return _0x11b7ab(_0x45b98c,_0xf454fc-_0x592a36._0x21a7b4);}if(_0x59d3fb[_0x3f034c(_0x2bb680._0x30af11,_0x2bb680._0x3effd6)](_0x5a23ea[_0x3f034c(_0x2bb680._0x316495,_0x2bb680._0x1ecbba)+'l'],_0x458b79))return _0x3f034c(_0x2bb680._0x52dca4,0x3fc)+_0x3f034c(0x9d7,0x7f0);return _0x3f034c(0x6f7,0x6b3)+_0x3f034c(_0x2bb680._0x55a131,_0x2bb680._0xcd6f81);}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x44150d,mkdirSync as _0x40ab56,openSync,readFileSync as _0x34a7a2,realpathSync,rmSync as _0x40020e,writeFileSync as _0x301ed4}from'fs';import{homedir as _0xdfb285}from'os';import{dirname,join as _0x12493c}from'path';var SERVICE_LABEL=_0x6eb3(0x7e,0x88)+_0x6eb3(0x1eb,0xee)+_0x11b7ab(0x51,0x105),SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x6eb3(-0x97,-0x114),WINDOWS_RUN_KEY=_0x6eb3(0x34c,0x232)+_0x11b7ab(-0x25e,-0x8e),SERVICE_DIR=_0x12493c(_0xdfb285(),_0x6eb3(0x3eb,0x284)),LOG_DIR=_0x12493c(SERVICE_DIR,'logs'),SERVICE_STATE_PATH=_0x12493c(SERVICE_DIR,_0x11b7ab(0x3c9,0x2e8)+'ervice.j'+_0x11b7ab(0x14e,0x240)),SERVICE_LAUNCHER_PATH=_0x12493c(SERVICE_DIR,_0x6eb3(0x189,0x2a6)+_0x11b7ab(-0x56,0x110)+_0x11b7ab(-0x3e,0x71)+'sh'),SERVICE_LOG_PATH=_0x12493c(LOG_DIR,_0x11b7ab(0x56,0x203)+_0x6eb3(0x18b,0x27)),SERVICE_ERROR_LOG_PATH=_0x12493c(LOG_DIR,'bridge-c'+_0x6eb3(0xfb,0x1a9)+_0x11b7ab(0x161,0x307)),MACOS_PLIST_PATH=_0x12493c(_0xdfb285(),'Library',_0x11b7ab(0x1ef,0x45)+_0x6eb3(0x17c,0xb1),SERVICE_LABEL+_0x6eb3(0x255,0x7b)),LINUX_SERVICE_PATH=_0x12493c(_0xdfb285(),'.config',_0x11b7ab(-0x8b,-0x37),_0x6eb3(-0x1ad,-0xa7),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x3697f1={},_0xd6ad17=process[_0x11b7ab(-0x49,0x1b)]){const _0x16427c={_0x2ac6b3:0x293,_0x10c96f:0x337,_0xdefe8a:0x4a9,_0x14ffb0:0x171,_0x4180bb:0x54b,_0x102399:0x208,_0x5e7313:0x40f,_0x5ea959:0x332,_0x4b59c8:0x101,_0x5cc584:0x2b,_0x36156a:0x67,_0xce8e47:0x24d,_0x4d828f:0x2ed,_0x6e026:0x15e,_0x513793:0x277,_0x3a403c:0x61,_0x29eb3a:0x105,_0x4b2b05:0x4c0,_0x171f82:0x274,_0x35c105:0xc1},_0x2726bf={_0x4a972b:0x60};function _0x54d73d(_0x3777fa,_0x36fd67){return _0x11b7ab(_0x36fd67,_0x3777fa-0x2e9);}const _0x5d4592={};_0x5d4592[_0x62bc4e(_0x16427c._0x2ac6b3,_0x16427c._0x10c96f)]=function(_0x3bae44,_0x11aebb){return _0x3bae44!==_0x11aebb;};const _0x371fb7=_0x5d4592;function _0x62bc4e(_0x256950,_0xba85a){return _0x11b7ab(_0xba85a,_0x256950- -_0x2726bf._0x4a972b);}const _0x549683=_0x3697f1['nodePath']?.[_0x54d73d(0x3e8,_0x16427c._0xdefe8a)]()||process[_0x62bc4e(0x1f0,_0x16427c._0x14ffb0)],_0x464af2=resolveScriptPath(_0x3697f1[_0x54d73d(0x283,0x2cd)+'th']);if(!_0x464af2)throw new Error(_0x54d73d(_0x16427c._0x4180bb,0x637)+_0x54d73d(_0x16427c._0x102399,_0x16427c._0x5e7313)+_0x54d73d(_0x16427c._0x5ea959,0x481)+_0x62bc4e(-_0x16427c._0x4b59c8,-0x272)+_0x62bc4e(-_0x16427c._0x5cc584,-0x234)+_0x54d73d(0x553,0x712)+_0x62bc4e(_0x16427c._0x36156a,0x4e)+_0x54d73d(_0x16427c._0xce8e47,_0x16427c._0x4d828f));if(_0x371fb7[_0x62bc4e(0x293,0x329)](_0xd6ad17,_0x62bc4e(-_0x16427c._0x6e026,-0x11b))){const _0x58defd={};_0x58defd[_0x54d73d(0x276,_0x16427c._0x513793)]=_0x549683,_0x58defd[_0x62bc4e(-0xc6,_0x16427c._0x3a403c)+'th']=_0x464af2,_0x58defd[_0x62bc4e(-_0x16427c._0x29eb3a,-0x285)]=process.env.PATH??'';const _0x36a428=writeServiceLauncher(_0x58defd);return ensureLaunchScriptExecutable(_0x36a428,_0xd6ad17),[_0x36a428];}return[_0x549683,_0x464af2,_0x54d73d(_0x16427c._0x4b2b05,0x41d),_0x62bc4e(_0x16427c._0x171f82,_0x16427c._0x35c105)+'e'];}function getServiceStatus(){const _0x559ed2={_0x5d49b5:0x210,_0xa2a10:0x312,_0x25268b:0x1e4,_0x21dbd6:0x3dc,_0x1e29f2:0x4d5,_0x23030c:0x142,_0x43cdc7:0x22d,_0x4d0d91:0x2e,_0x291c0c:0x21d,_0x2340f3:0x14e,_0x2cf22e:0xf6,_0x23723f:0x6,_0xdd1482:0x33b,_0x86519f:0x3b9,_0x48b9b3:0x40f,_0x36e264:0x104,_0x1745e0:0x202,_0x7ed3f:0x101,_0x1404ae:0x36,_0x2bda4a:0x222,_0x5aa632:0x140,_0x39eb9b:0x1fe,_0x1777bd:0x313,_0x423857:0x2d1,_0x20c8d7:0xdb,_0x6df5f9:0xa8,_0x25d1d7:0x10a,_0x39755a:0x1b6},_0x308149={'xgdZr':function(_0x123f35,_0x1ae82d){return _0x123f35(_0x1ae82d);},'eGXTo':function(_0x27a15b){return _0x27a15b();},'ehtEg':function(_0x29e87a,_0x14527b){return _0x29e87a!=_0x14527b;},'dSzGd':function(_0x2993a0,_0x179b48){return _0x2993a0(_0x179b48);},'nWXQG':_0x14e906(_0x559ed2._0x5d49b5,_0x559ed2._0xa2a10)+_0xaefb8f(_0x559ed2._0x25268b,0x197),'bheji':_0xaefb8f(_0x559ed2._0x21dbd6,_0x559ed2._0x1e29f2)+'l'};ensureServiceDirs();const _0x27d5cc=readServiceState()?.[_0xaefb8f(_0x559ed2._0x23030c,_0x559ed2._0x43cdc7)]??null;function _0xaefb8f(_0x52389a,_0x399bb){return _0x11b7ab(_0x399bb,_0x52389a-0x249);}const _0x543f95={'installed':![],'running':_0x27d5cc!=null&&_0x308149[_0xaefb8f(0x4e1,0x464)](isPidRunning,_0x27d5cc),'method':_0x308149['eGXTo'](detectServiceMethod),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x27d5cc};_0x308149[_0x14e906(0x212,_0x559ed2._0x4d0d91)](_0x543f95[_0x14e906(-_0x559ed2._0x291c0c,-0xf6)],null)&&!_0x543f95[_0x14e906(0x51,0x36)]&&(clearServiceState(_0x543f95[_0xaefb8f(0x142,_0x559ed2._0x2340f3)]),_0x543f95[_0x14e906(0xe8,-_0x559ed2._0x2cf22e)]=null);function _0x14e906(_0x52fbb1,_0x5b36f3){return _0x11b7ab(_0x52fbb1,_0x5b36f3-0x11);}switch(_0x543f95[_0x14e906(0x1f8,-_0x559ed2._0x23723f)]){case _0xaefb8f(0x4ca,_0x559ed2._0xdd1482)+_0xaefb8f(_0x559ed2._0x86519f,0x540):_0x543f95[_0xaefb8f(0x45a,_0x559ed2._0x48b9b3)+'d']=_0x308149[_0x14e906(_0x559ed2._0x36e264,_0x559ed2._0x1745e0)](_0x44150d,MACOS_PLIST_PATH);_0x543f95['installe'+'d']&&(_0x543f95[_0xaefb8f(0x26e,_0x559ed2._0x7ed3f)]=commandSucceeds('launchct'+'l',[_0xaefb8f(0x236,0x31c),SERVICE_LABEL])||_0x543f95[_0x14e906(-_0x559ed2._0x7ed3f,_0x559ed2._0x1404ae)]);return _0x543f95;case _0x308149[_0xaefb8f(0x1c7,0x25a)]:_0x543f95['installe'+'d']=_0x44150d(LINUX_SERVICE_PATH);_0x543f95[_0x14e906(0x115,_0x559ed2._0x2bda4a)+'d']&&(_0x543f95[_0x14e906(_0x559ed2._0x5aa632,0x36)]=commandSucceeds(_0x308149[_0x14e906(_0x559ed2._0x39eb9b,0x2e7)],[_0x14e906(_0x559ed2._0x1777bd,_0x559ed2._0x423857),'is-activ'+'e','--quiet',SYSTEMD_UNIT_NAME])||_0x543f95['running']);return _0x543f95;case _0x14e906(-_0x559ed2._0x20c8d7,_0x559ed2._0x6df5f9)+_0x14e906(_0x559ed2._0x25d1d7,-0xd9)+'stry':_0x543f95[_0x14e906(0x22b,0x222)+'d']=commandSucceeds(_0xaefb8f(0x48a,0x3f4),[_0xaefb8f(0x373,_0x559ed2._0x39755a),'HKCU\x5cSof'+_0xaefb8f(0x2c7,0x3b4)+_0x14e906(-0x13e,-0x67)+_0xaefb8f(0x1ab,0x366)+_0xaefb8f(0x15c,0x2d5)+_0xaefb8f(0x49a,0x4f7)+'un','/v',WINDOWS_RUN_KEY]);return _0x543f95;default:return _0x543f95;}}function installService(_0x158a50={}){const _0x491fa9={_0x422861:0x53f,_0x146851:0x1bd,_0x3d0327:0x733,_0x3ef3df:0xdc,_0x5e821b:0x559,_0x942b69:0x7b,_0x30c8fe:0xf1,_0x78fe26:0x5c,_0x5d85ca:0x2d,_0x6ebb74:0x17,_0x27b320:0x162,_0x5e453c:0x321,_0x1e998d:0x72,_0x28724e:0x15c,_0x4ce0f5:0xca,_0x7f8cb5:0x44e,_0x3ac672:0x40f,_0x3471d8:0x13d,_0x2cc9f0:0x199,_0x58b8ba:0x481,_0x10abe9:0x464,_0x86c4c1:0x3e1,_0x450b12:0x148,_0x5c3345:0x57b,_0x52d598:0x46,_0x7b1803:0x9c,_0x38c845:0x3c,_0x3b4b18:0x36c,_0x6bd72b:0x52a,_0x588591:0x367,_0x3ccd3a:0x1e1,_0x26099a:0x101,_0x48df19:0x2d6},_0xa55585={_0x491ff0:0x2bb},_0x4faab7={_0x5a7b7a:0x127};function _0x46e58f(_0x3646a4,_0x14db78){return _0x11b7ab(_0x3646a4,_0x14db78- -_0x4faab7._0x5a7b7a);}const _0x1a575f={'gKYqn':'darwin','MVTKa':function(_0x3c646f,_0x5454d9,_0x481e27,_0x26a7a6){return _0x3c646f(_0x5454d9,_0x481e27,_0x26a7a6);},'zVfnq':_0xc3fb1(_0x491fa9._0x422861,0x3d3),'mcQyy':_0xc3fb1(0x24d,_0x491fa9._0x146851),'KQTcV':_0xc3fb1(_0x491fa9._0x3d0327,0x59b),'flMCf':_0xc3fb1(_0x491fa9._0x3ef3df,0x241)+_0xc3fb1(0x304,0x339)+_0xc3fb1(0xde,0x243)+_0x46e58f(-0x2d4,-0x1c5)+_0x46e58f(-0x351,-0x214)+_0xc3fb1(_0x491fa9._0x5e821b,0x50c)+'un','btFcV':_0x46e58f(_0x491fa9._0x942b69,-_0x491fa9._0x30c8fe)};function _0xc3fb1(_0x2ba0c7,_0x4e93f8){return _0x11b7ab(_0x2ba0c7,_0x4e93f8-_0xa55585._0x491ff0);}ensureServiceDirs();const _0x54291c=getServiceProgramArgs(_0x158a50);switch(process[_0xc3fb1(0x412,0x2d6)]){case _0x1a575f['gKYqn']:_0x1a575f[_0x46e58f(0x1b8,0x1e1)](_0x301ed4,MACOS_PLIST_PATH,buildMacosPlist(_0x54291c,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x1a575f[_0x46e58f(-0x255,-_0x491fa9._0x78fe26)]),execIgnoreFailure(_0x46e58f(-0x1e6,-0x162)+'l',[_0x46e58f(-0xa3,-0xcc),'-w',MACOS_PLIST_PATH]);const _0x6b87ea={};_0x6b87ea[_0xc3fb1(0x239,0x346)]=_0x46e58f(0xcf,_0x491fa9._0x5d85ca),_0x1a575f[_0x46e58f(-_0x491fa9._0x6ebb74,0x1e1)](execFileSync,_0x46e58f(-0x29f,-_0x491fa9._0x27b320)+'l',[_0xc3fb1(0x502,0x33b),'-w',MACOS_PLIST_PATH],_0x6b87ea);break;case _0xc3fb1(0x128,_0x491fa9._0x5e453c):const _0x2c7b51={};_0x2c7b51[_0x46e58f(-_0x491fa9._0x1e998d,-_0x491fa9._0x28724e)+'e']=!![],_0x40ab56(dirname(LINUX_SERVICE_PATH),_0x2c7b51),_0x301ed4(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x54291c,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x1a575f[_0x46e58f(-_0x491fa9._0x4ce0f5,-0x5c)]);const _0x5d79c2={};_0x5d79c2['stdio']=_0xc3fb1(_0x491fa9._0x7f8cb5,_0x491fa9._0x3ac672),execFileSync('systemct'+'l',[_0x46e58f(_0x491fa9._0x3471d8,_0x491fa9._0x2cc9f0),_0xc3fb1(0x337,_0x491fa9._0x58b8ba)+_0xc3fb1(_0x491fa9._0x10abe9,0x535)],_0x5d79c2);const _0x4360bf={};_0x4360bf[_0xc3fb1(_0x491fa9._0x86c4c1,0x346)]=_0xc3fb1(0x58a,_0x491fa9._0x3ac672),_0x1a575f[_0x46e58f(_0x491fa9._0x450b12,0x1e1)](execFileSync,'systemct'+'l',[_0xc3fb1(0x5b8,_0x491fa9._0x5c3345),_0xc3fb1(0x593,0x5b7),'--now',SYSTEMD_UNIT_NAME],_0x4360bf);break;case _0x1a575f[_0x46e58f(-0x253,-0x181)]:stopRunningProcess();const _0x59d72c={};_0x59d72c[_0x46e58f(_0x491fa9._0x52d598,-_0x491fa9._0x7b1803)]=_0xc3fb1(0x4de,0x40f),execFileSync('reg',[_0x1a575f[_0x46e58f(-0x2dd,-0x1d8)],_0x1a575f['flMCf'],'/v',WINDOWS_RUN_KEY,'/t',_0x1a575f['btFcV'],'/d',buildWindowsRunCommand(_0x54291c),'/f'],_0x59d72c),startDetachedWindowsService(_0x54291c);break;default:throw new Error('Unsuppor'+_0x46e58f(-0x2d8,-0x213)+_0x46e58f(-0x19b,-_0x491fa9._0x38c845)+_0xc3fb1(_0x491fa9._0x3b4b18,_0x491fa9._0x6bd72b)+_0x46e58f(_0x491fa9._0x38c845,0xd2)+_0xc3fb1(0x4b5,_0x491fa9._0x588591)+_0x46e58f(_0x491fa9._0x3ccd3a,_0x491fa9._0x26099a)+process[_0xc3fb1(0x11e,_0x491fa9._0x48df19)]);}return getServiceStatus();}function restartService(_0x4172ce={}){const _0x56faff={_0x43ace1:0x783,_0x19edce:0x696,_0x418bdf:0x1ed,_0x5c8a1d:0x53e,_0x3be77a:0x143,_0x2c7b33:0x2f6,_0x3d1efe:0x1dd,_0x4a7672:0x31,_0x31fa6d:0x7f,_0xa2b25c:0x1a4,_0x2882d9:0x4ee,_0x1e20a7:0x500,_0x397f2c:0x682,_0x512b91:0x806,_0xaa9515:0x77,_0x106efe:0x17b,_0x183f00:0x643,_0x4e95a2:0x37e,_0x15582d:0x457,_0x4e83b9:0xce,_0x5b460e:0xfb,_0x3dd1ba:0x1f,_0x36f851:0xbd,_0x117122:0x103,_0x3e4962:0x4ba,_0x8241e:0x80a,_0x1ff637:0x14,_0x341701:0x4c0,_0x5297ca:0x68f,_0xf663d6:0x100,_0x37a7fe:0x7fb,_0x285b96:0x7a,_0x37215e:0x5c6,_0x76951d:0x559,_0x36be23:0x257,_0x58026f:0x14f,_0x216e00:0x64,_0x27812f:0x5b9,_0x746350:0x3bc,_0x3eaefa:0x2dd,_0x32cf25:0x78c,_0x5de237:0x755,_0x1379ad:0x571,_0x55b9ae:0x53e,_0xc1c79e:0x44f,_0x3cb72b:0x2fb,_0x4c3774:0x101,_0x15ce2c:0x667,_0x39c0d6:0x6bf,_0x4f9052:0x5cf,_0x5a0e79:0x807},_0x2e10f1={_0x3a5b1f:0x16},_0x52a895={_0x337162:0x53b},_0x39f56a={'gndYX':function(_0x27ee65){return _0x27ee65();},'LDayH':_0x146fc4(_0x56faff._0x43ace1,_0x56faff._0x19edce),'NIBoU':function(_0x108554,_0x5a75b2,_0x4deb03,_0x597fe3){return _0x108554(_0x5a75b2,_0x4deb03,_0x597fe3);},'kgrtp':_0x203347(_0x56faff._0x418bdf,0x71),'hGkSq':function(_0xbb8a86,_0x5b8866,_0x2cee19,_0x5d522f){return _0xbb8a86(_0x5b8866,_0x2cee19,_0x5d522f);},'TuRGc':'launchct'+'l','AAMhW':'linux','phhhb':function(_0x503a88,_0x16b68b){return _0x503a88(_0x16b68b);},'ASqrG':function(_0x5d7d6c,_0x19e7cd){return _0x5d7d6c(_0x19e7cd);},'ZLwpX':function(_0x14262b,_0x52ab60,_0x211656){return _0x14262b(_0x52ab60,_0x211656);},'aNClu':function(_0x124c6e,_0x21bfcc){return _0x124c6e(_0x21bfcc);},'AXAIA':_0x146fc4(0x62f,0x653),'jPaLu':_0x146fc4(_0x56faff._0x5c8a1d,0x68f),'yrsxo':_0x146fc4(0x4f5,0x6ce)+'l','QcQmS':_0x203347(_0x56faff._0x3be77a,_0x56faff._0x2c7b33)};_0x39f56a[_0x203347(0x299,_0x56faff._0x3d1efe)](ensureServiceDirs);const _0x4a6c25=getServiceProgramArgs(_0x4172ce);switch(process[_0x203347(-0x77,_0x56faff._0x4a7672)]){case _0x39f56a[_0x146fc4(0x647,0x740)]:if(!_0x44150d(MACOS_PLIST_PATH))return installService(_0x4172ce);_0x39f56a['NIBoU'](_0x301ed4,MACOS_PLIST_PATH,_0x39f56a[_0x203347(_0x56faff._0x31fa6d,_0x56faff._0xa2b25c)](buildMacosPlist,_0x4a6c25,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),execIgnoreFailure(_0x146fc4(_0x56faff._0x2882d9,_0x56faff._0x1e20a7)+'l',[_0x39f56a[_0x146fc4(0x542,_0x56faff._0x397f2c)],'-w',MACOS_PLIST_PATH]);const _0x2c31bc={};_0x2c31bc['stdio']=_0x146fc4(_0x56faff._0x512b91,0x68f),_0x39f56a[_0x203347(_0x56faff._0xaa9515,_0x56faff._0x106efe)](execFileSync,_0x39f56a['TuRGc'],[_0x146fc4(_0x56faff._0x183f00,0x5bb),'-w',MACOS_PLIST_PATH],_0x2c31bc);break;case _0x39f56a[_0x146fc4(_0x56faff._0x4e95a2,_0x56faff._0x15582d)]:if(!_0x39f56a['phhhb'](_0x44150d,LINUX_SERVICE_PATH))return _0x39f56a[_0x203347(_0x56faff._0x4e83b9,0x15)](installService,_0x4172ce);const _0x475403={};_0x475403[_0x203347(-_0x56faff._0x5b460e,-_0x56faff._0x3dd1ba)+'e']=!![],_0x39f56a[_0x203347(-0x41,-_0x56faff._0x36f851)](_0x40ab56,_0x39f56a[_0x203347(-0xf4,-0x92)](dirname,LINUX_SERVICE_PATH),_0x475403),_0x301ed4(LINUX_SERVICE_PATH,_0x39f56a[_0x203347(0x1a2,0x1a4)](buildLinuxSystemdUnit,_0x4a6c25,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x39f56a[_0x203347(_0x56faff._0x117122,0x6f)]);const _0x4ab2a0={};_0x4ab2a0['stdio']=_0x39f56a[_0x146fc4(0x4ca,_0x56faff._0x3e4962)],execFileSync(_0x146fc4(_0x56faff._0x8241e,0x6ce)+'l',['--user','daemon-r'+_0x146fc4(0x61a,0x7b5)],_0x4ab2a0);const _0x553f3f={};_0x553f3f[_0x203347(-_0x56faff._0x1ff637,0xa1)]=_0x146fc4(_0x56faff._0x341701,_0x56faff._0x5297ca),execFileSync(_0x39f56a[_0x203347(_0x56faff._0xf663d6,-0xd2)],[_0x146fc4(0x7c1,_0x56faff._0x37a7fe),'restart',SYSTEMD_UNIT_NAME],_0x553f3f);break;case _0x203347(-_0x56faff._0x285b96,-0xe8):stopRunningProcess();const _0x2080c3={};_0x2080c3[_0x146fc4(0x402,_0x56faff._0x37215e)]=_0x146fc4(_0x56faff._0x76951d,0x68f),execFileSync(_0x203347(0x457,_0x56faff._0x36be23),[_0x39f56a[_0x203347(0x17a,_0x56faff._0x58026f)],_0x203347(-0x1d7,-_0x56faff._0x216e00)+_0x146fc4(0x4dd,_0x56faff._0x27812f)+_0x146fc4(_0x56faff._0x746350,0x4c3)+_0x146fc4(_0x56faff._0x3eaefa,0x49d)+_0x203347(-0x250,-0xd7)+_0x146fc4(0x82b,_0x56faff._0x32cf25)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x146fc4(_0x56faff._0x5de237,_0x56faff._0x1379ad),'/d',buildWindowsRunCommand(_0x4a6c25),'/f'],_0x2080c3),startDetachedWindowsService(_0x4a6c25);break;default:throw new Error('Unsuppor'+_0x146fc4(_0x56faff._0x55b9ae,_0x56faff._0xc1c79e)+_0x203347(_0x56faff._0x3cb72b,_0x56faff._0x4c3774)+_0x146fc4(_0x56faff._0x15ce2c,0x7aa)+_0x146fc4(_0x56faff._0x39c0d6,_0x56faff._0x4f9052)+_0x146fc4(0x68f,_0x56faff._0x5a0e79)+process['platform']);}function _0x146fc4(_0x12d13f,_0xd5d86a){return _0x11b7ab(_0x12d13f,_0xd5d86a-_0x52a895._0x337162);}function _0x203347(_0x437dc6,_0x44c00f){return _0x11b7ab(_0x437dc6,_0x44c00f-_0x2e10f1._0x3a5b1f);}return getServiceStatus();}function uninstallService(){const _0x1a3044={_0x311d8e:0xc7,_0x24871d:0x1f7,_0x2f6782:0x2a5,_0x3323c1:0xd5,_0x26220e:0x9e,_0x453578:0x32a,_0x4a83c5:0x40,_0x1a5954:0x188,_0xf62762:0x4c,_0x1f08aa:0x108,_0x171573:0x230,_0x2edbb0:0x1bb,_0x467dae:0x1fe},_0x3311dd={_0x107eaa:0x186};function _0x4252e0(_0x2bc5e7,_0x150b21){return _0x11b7ab(_0x2bc5e7,_0x150b21-0x14a);}function _0x65acfa(_0x81e8ea,_0x5b17c6){return _0x11b7ab(_0x81e8ea,_0x5b17c6- -_0x3311dd._0x107eaa);}const _0x4e3fd9={};_0x4e3fd9[_0x4252e0(0x1ce,0xd5)]=_0x65acfa(-_0x1a3044._0x311d8e,0x13a),_0x4e3fd9['rVjra']=_0x4252e0(0x4d,0x1cb);const _0x41e8a7=_0x4e3fd9;stopRunningProcess();switch(process[_0x4252e0(_0x1a3044._0x24871d,0x165)]){case _0x4252e0(0x3c0,_0x1a3044._0x2f6782):execIgnoreFailure('launchct'+'l',[_0x65acfa(-0x215,-0x12b),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case'linux':_0x44150d(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x4252e0(0x4cc,0x2dd)+'l',[_0x41e8a7[_0x4252e0(-0xb9,_0x1a3044._0x3323c1)],_0x41e8a7[_0x65acfa(-_0x1a3044._0x26220e,-0x1e8)],_0x4252e0(_0x1a3044._0x453578,0x1d0),SYSTEMD_UNIT_NAME]),rmIfExists(LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',[_0x41e8a7['GDqmi'],_0x65acfa(0x243,_0x1a3044._0x4a83c5)+'eload']));break;case _0x4252e0(-_0x1a3044._0x1a5954,_0x1a3044._0xf62762):execIgnoreFailure(_0x65acfa(_0x1a3044._0x1f08aa,0xbb),[_0x65acfa(-0x272,-0x14b),_0x65acfa(-_0x1a3044._0x171573,-0x200)+_0x4252e0(_0x1a3044._0x2edbb0,0x1c8)+_0x65acfa(-0x31a,-_0x1a3044._0x467dae)+_0x65acfa(-0x76,-0x224)+_0x4252e0(-0x64,0x5d)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return clearServiceState(),getServiceStatus();}function stopService(){const _0x58f257={_0x29f7c6:0x27e,_0x474b90:0x3f6,_0x2f61aa:0x21b,_0x111e7b:0x3e0,_0x317a66:0xfc,_0x292407:0x19a,_0x39e729:0x2bf,_0x3a7b7e:0xd,_0x3532cd:0x50f,_0x22d7a7:0x504,_0x2caf3f:0x1ff,_0x39cf46:0xad,_0x397133:0x9d,_0x3c5b5d:0x38},_0xb71397={_0x4342fc:0x3be},_0x42869a={'nesoa':function(_0x98e840){return _0x98e840();},'NxDfj':function(_0x3f873a,_0x5e7abd){return _0x3f873a(_0x5e7abd);},'iMOsL':_0x202e19(0x3d7,0x4f9),'NRbek':function(_0xca6bac,_0x28e1d4,_0x471567){return _0xca6bac(_0x28e1d4,_0x471567);},'iUAzF':_0x202e19(_0x58f257._0x29f7c6,0x417)};_0x42869a[_0x202e19(_0x58f257._0x474b90,0x32c)](stopRunningProcess);function _0x202e19(_0x25a7ce,_0x95c4c3){return _0x6eb3(_0x95c4c3,_0x25a7ce-_0xb71397._0x4342fc);}switch(process[_0x17f897(-_0x58f257._0x2f61aa,-0xa6)]){case'darwin':_0x42869a[_0x202e19(0x3e0,_0x58f257._0x111e7b)](_0x44150d,MACOS_PLIST_PATH)&&execIgnoreFailure(_0x17f897(-0x24,-_0x58f257._0x317a66)+'l',[_0x42869a[_0x17f897(_0x58f257._0x292407,0x186)],MACOS_PLIST_PATH]);break;case _0x202e19(0x3e2,_0x58f257._0x39e729):_0x44150d(LINUX_SERVICE_PATH)&&_0x42869a[_0x17f897(_0x58f257._0x3a7b7e,-0x197)](execIgnoreFailure,_0x202e19(_0x58f257._0x3532cd,_0x58f257._0x22d7a7)+'l',[_0x17f897(0x3ea,_0x58f257._0x2caf3f),_0x17f897(-_0x58f257._0x39cf46,_0x58f257._0x397133),SYSTEMD_UNIT_NAME]);break;case _0x42869a[_0x17f897(-0x16d,-_0x58f257._0x3c5b5d)]:break;default:break;}function _0x17f897(_0x23280b,_0x183a69){return _0x6eb3(_0x23280b,_0x183a69- -0x7f);}return clearServiceState(),getServiceStatus();}function writeServiceState(_0x126bca=process[_0x6eb3(-0x1f9,-0x149)]){const _0x19acc1={_0x254e4f:0x622,_0x3c874a:0x5fa,_0x298691:0x44,_0x4b6472:0x5d8},_0x83c948={_0x2afec9:0x502};ensureServiceDirs();const _0x30d7f9={'pid':_0x126bca,'startedAt':new Date()[_0x4e30c9(_0x19acc1._0x254e4f,_0x19acc1._0x3c874a)+_0x20d4cd(_0x19acc1._0x298691,0x61)]()};function _0x4e30c9(_0x4ae1dd,_0x5bf7f4){return _0x6eb3(_0x5bf7f4,_0x4ae1dd-_0x83c948._0x2afec9);}function _0x20d4cd(_0x379a89,_0xd4b102){return _0x6eb3(_0xd4b102,_0x379a89-0xd8);}_0x301ed4(SERVICE_STATE_PATH,JSON['stringif'+'y'](_0x30d7f9,null,0x2)+'\x0a',_0x4e30c9(_0x19acc1._0x4b6472,0x7e0));}function clearServiceState(_0x4a631f){const _0xa24f60={_0x5c3603:0x62,_0x3790c1:0x1d8},_0x3db6e6={_0x14248d:0x2a5},_0x46243f={};_0x46243f[_0x24b299(-0x1e8,-_0xa24f60._0x5c3603)]=function(_0x21b9e9,_0x3e9663){return _0x21b9e9!=_0x3e9663;};const _0x25d61c=_0x46243f;function _0x1a49f0(_0x41a071,_0xc7ba83){return _0x6eb3(_0xc7ba83,_0x41a071-_0x3db6e6._0x14248d);}if(!_0x44150d(SERVICE_STATE_PATH))return;function _0x24b299(_0x5f4d9f,_0x2117b0){return _0x6eb3(_0x2117b0,_0x5f4d9f- -0xcb);}if(_0x25d61c[_0x1a49f0(0x188,0x226)](_0x4a631f,null)){const _0x505380=readServiceState();if(_0x505380&&_0x505380[_0x24b299(-0x214,-_0xa24f60._0x3790c1)]!==_0x4a631f)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){const _0x53e154={_0x3ef178:0x400},_0x4d76c5={'cbGxV':function(_0x126481){return _0x126481();}};function _0x2fc3af(_0xeb6410,_0xbee75b){return _0x6eb3(_0xbee75b,_0xeb6410-0x33e);}return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':_0x4d76c5[_0x2fc3af(_0x53e154._0x3ef178,0x53d)](getServicePath)};}function buildMacosPlist(_0xee6705,_0x7eda19,_0x5cf101){const _0x736083={_0x4b3604:0x4a0,_0x5d6e47:0x23a,_0x161dda:0x202,_0x57c2ef:0x337,_0x3a61a9:0x3e4,_0x4a686f:0x5a3,_0x5520d3:0x573,_0x4328e5:0x286,_0x116f08:0x3b3,_0x2b46da:0x4f4,_0x2fa9bb:0x201,_0x4f695e:0x2b2,_0x1cb0b3:0x48e,_0x10b04e:0x66d,_0x512822:0x461,_0x343e0f:0x5ff,_0x5ace77:0x540,_0x5e8f74:0x5e6,_0x595e7c:0x4dd,_0xae81eb:0x1c5,_0x409755:0x2cd,_0x3c4141:0x2c0,_0x23de87:0x34c,_0x151b6a:0x230,_0x2d3230:0x2d3,_0x50a320:0x268,_0xcce416:0x279,_0x465fc3:0x5c2,_0x3e66f3:0x192,_0x2f5eea:0x2bb,_0x57c0bb:0x43e,_0x592c16:0x546,_0x1a1f3e:0x3a7,_0x24f04f:0x181,_0x255661:0x60d,_0x4b3235:0x477,_0x5aa6c4:0x409,_0x1d2aaf:0x44f,_0x5791ca:0x41a};function _0x5662ad(_0x22797b,_0x4bb199){return _0x6eb3(_0x4bb199,_0x22797b-0x300);}const _0x384427={'EBMMr':function(_0x2dc825,_0x2b53c7){return _0x2dc825(_0x2b53c7);}},_0x54e92e=_0xee6705[_0x5662ad(_0x736083._0x4b3604,0x446)](_0xab1b0d=>_0x39a968(0x4cb,0x444)+'ing>'+escapeXml(_0xab1b0d)+(_0x5662ad(0x4b8,0x417)+'>'))[_0x39a968(_0x736083._0x5d6e47,_0x736083._0x161dda)]('\x0a');function _0x39a968(_0x53c645,_0x1767bd){return _0x6eb3(_0x1767bd,_0x53c645-0x29a);}return _0x39a968(_0x736083._0x57c2ef,_0x736083._0x3a61a9)+'rsion=\x221'+'.0\x22\x20enco'+'ding=\x22UT'+_0x5662ad(0x27c,0x1fa)+_0x5662ad(_0x736083._0x4a686f,_0x736083._0x5520d3)+'\x20plist\x20P'+_0x39a968(_0x736083._0x4328e5,_0x736083._0x116f08)+_0x39a968(0x321,_0x736083._0x2b46da)+_0x39a968(0x51f,0x34b)+'ST\x201.0//'+'EN\x22\x20\x22htt'+'p://www.'+_0x5662ad(_0x736083._0x2fa9bb,_0x736083._0x4f695e)+'m/DTDs/P'+_0x39a968(0x1f9,0x39e)+_0x5662ad(0x4a2,0x614)+_0x5662ad(_0x736083._0x1cb0b3,_0x736083._0x10b04e)+_0x39a968(0x3f9,0x529)+_0x39a968(_0x736083._0x512822,0x642)+_0x5662ad(0x44e,0x3b9)+_0x5662ad(0x5b3,_0x736083._0x343e0f)+_0x5662ad(_0x736083._0x5ace77,0x479)+'/key>\x0a\x20\x20'+'<string>'+SERVICE_LABEL+(_0x5662ad(0x4b8,_0x736083._0x5e8f74)+_0x5662ad(_0x736083._0x595e7c,0x6ab)+_0x39a968(_0x736083._0xae81eb,0xb4)+_0x5662ad(_0x736083._0x409755,0x188)+_0x5662ad(0x396,_0x736083._0x3c4141)+'\x20\x20<array'+'>\x0a')+_0x54e92e+(_0x5662ad(_0x736083._0x23de87,_0x736083._0x151b6a)+_0x39a968(_0x736083._0x2d3230,_0x736083._0x50a320)+_0x39a968(_0x736083._0xcce416,0x2ea)+_0x5662ad(_0x736083._0x465fc3,0x56c)+_0x39a968(_0x736083._0x3e66f3,0x323)+_0x39a968(0x1e9,0x3ef)+_0x5662ad(0x310,0x297)+_0x39a968(_0x736083._0x2f5eea,_0x736083._0x3a61a9)+'ey>\x0a\x20\x20<t'+'rue/>\x0a\x20\x20'+_0x39a968(_0x736083._0x57c0bb,0x2dd)+'ndardOut'+'Path</ke'+_0x5662ad(_0x736083._0x592c16,0x734)+_0x5662ad(0x36e,_0x736083._0x1a1f3e))+_0x384427[_0x39a968(_0x736083._0x24f04f,-0x47)](escapeXml,_0x7eda19)+(_0x5662ad(0x4b8,_0x736083._0x255661)+_0x39a968(_0x736083._0x4b3235,0x41f)+_0x5662ad(_0x736083._0x5aa6c4,0x22e)+_0x39a968(_0x736083._0x1d2aaf,0x310)+_0x5662ad(_0x736083._0x5791ca,0x604)+'\x0a\x20\x20<stri'+_0x5662ad(0x514,0x43d))+escapeXml(_0x5cf101)+('</string'+'>\x0a</dict'+'>\x0a</plis'+_0x5662ad(0x548,0x536));}function _0x2e58(_0x17e9c1,_0x4850cb){_0x17e9c1=_0x17e9c1-0x9c;const _0x164967=_0x39fb();let _0x5b6c10=_0x164967[_0x17e9c1];if(_0x2e58['iFHFNB']===undefined){var _0x2f63a8=function(_0x579bd){const _0xcca1de='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30e3f1='',_0xab6a8e='',_0x3444d9=_0x30e3f1+_0x2f63a8;for(let _0x256910=0x0,_0x405f69,_0x5f0498,_0x25dff1=0x0;_0x5f0498=_0x579bd['charAt'](_0x25dff1++);~_0x5f0498&&(_0x405f69=_0x256910%0x4?_0x405f69*0x40+_0x5f0498:_0x5f0498,_0x256910++%0x4)?_0x30e3f1+=_0x3444d9['charCodeAt'](_0x25dff1+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x405f69>>(-0x2*_0x256910&0x6)):_0x256910:0x0){_0x5f0498=_0xcca1de['indexOf'](_0x5f0498);}for(let _0x42f194=0x0,_0x5cbdcf=_0x30e3f1['length'];_0x42f194<_0x5cbdcf;_0x42f194++){_0xab6a8e+='%'+('00'+_0x30e3f1['charCodeAt'](_0x42f194)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xab6a8e);};_0x2e58['DtgYMl']=_0x2f63a8,_0x2e58['iLoHoW']={},_0x2e58['iFHFNB']=!![];}const _0x39fb8a=_0x164967[0x0],_0x2e58e1=_0x17e9c1+_0x39fb8a,_0x66a424=_0x2e58['iLoHoW'][_0x2e58e1];if(!_0x66a424){const _0x3b7e7d=function(_0x77fdae){this['qkFRGi']=_0x77fdae,this['fNEnHV']=[0x1,0x0,0x0],this['cCryDv']=function(){return'newState';},this['PMtqvh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KUeXxY']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3b7e7d['prototype']['auYvHY']=function(){const _0x3019f9=new RegExp(this['PMtqvh']+this['KUeXxY']),_0x23fbf0=_0x3019f9['test'](this['cCryDv']['toString']())?--this['fNEnHV'][0x1]:--this['fNEnHV'][0x0];return this['BYrilr'](_0x23fbf0);},_0x3b7e7d['prototype']['BYrilr']=function(_0x5e3a68){if(!Boolean(~_0x5e3a68))return _0x5e3a68;return this['RnSxYw'](this['qkFRGi']);},_0x3b7e7d['prototype']['RnSxYw']=function(_0x2522e9){for(let _0x26c70d=0x0,_0x2a8847=this['fNEnHV']['length'];_0x26c70d<_0x2a8847;_0x26c70d++){this['fNEnHV']['push'](Math['round'](Math['random']())),_0x2a8847=this['fNEnHV']['length'];}return _0x2522e9(this['fNEnHV'][0x0]);},new _0x3b7e7d(_0x2e58)['auYvHY'](),_0x5b6c10=_0x2e58['DtgYMl'](_0x5b6c10),_0x2e58['iLoHoW'][_0x2e58e1]=_0x5b6c10;}else _0x5b6c10=_0x66a424;return _0x5b6c10;}function buildLinuxSystemdUnit(_0x2f6ce8,_0x2e65a5,_0x50a29f){const _0x4ccda1={_0x3f57c1:0x46b,_0x39a0a1:0x4f2,_0x462cf2:0x55,_0x17dfb4:0x3b3,_0x2fb016:0x2d1,_0x4b01ac:0x253,_0x23bb1e:0x8e,_0x53d281:0x3,_0x1573e6:0x17e,_0x346398:0x24b,_0xd1ed0d:0x408,_0x4a5eec:0x3d5,_0x4af744:0x2bd,_0x224051:0x2ee,_0x3339c7:0x580,_0xa97b65:0x4c4,_0x509ce1:0x19,_0x1b2fa6:0x1d2,_0x162853:0x158,_0x18ecbf:0x3df,_0xce6f34:0x39e,_0x38ade5:0x2d3,_0x2de5da:0x35a,_0x2777db:0x3c8,_0x341cba:0x25b,_0x2b5539:0x1ad,_0x1c8110:0x293,_0x3032a1:0x113,_0x104030:0x235,_0x3b9417:0x90},_0x47c04a={_0x2634b0:0x289},_0x12209a={_0x50bcb1:0x73},_0x2a9241={'Dulrd':function(_0x2c3374,_0x5ece9d){return _0x2c3374(_0x5ece9d);}};function _0x365b2e(_0x3a3cc6,_0x217512){return _0x11b7ab(_0x3a3cc6,_0x217512-_0x12209a._0x50bcb1);}function _0x5dd657(_0x584554,_0x4eb6e5){return _0x11b7ab(_0x4eb6e5,_0x584554-_0x47c04a._0x2634b0);}const _0x4fa764=_0x2f6ce8[_0x5dd657(_0x4ccda1._0x3f57c1,_0x4ccda1._0x39a0a1)](escapeSystemdArg)[_0x365b2e(0x239,_0x4ccda1._0x462cf2)]('\x20');return'[Unit]\x0aD'+'escripti'+'on=Clawk'+'et\x20Bridg'+'e\x20CLI\x0aAf'+_0x365b2e(_0x4ccda1._0x17dfb4,_0x4ccda1._0x2fb016)+_0x5dd657(_0x4ccda1._0x4b01ac,0x28c)+_0x365b2e(-_0x4ccda1._0x23bb1e,0x158)+_0x365b2e(-_0x4ccda1._0x53d281,_0x4ccda1._0x1573e6)+_0x5dd657(_0x4ccda1._0x346398,0x362)+_0x365b2e(_0x4ccda1._0xd1ed0d,0x318)+_0x365b2e(0xf9,0x2fc)+_0x365b2e(_0x4ccda1._0x4a5eec,_0x4ccda1._0x4af744)+_0x5dd657(_0x4ccda1._0x224051,0x175)+_0x5dd657(_0x4ccda1._0x3339c7,0x50b)+_0x5dd657(0x515,_0x4ccda1._0xa97b65)+_0x4fa764+(_0x365b2e(_0x4ccda1._0x509ce1,_0x4ccda1._0x1b2fa6)+'=always\x0a'+_0x5dd657(0x21f,_0x4ccda1._0x162853)+_0x5dd657(0x31b,0x4d9)+_0x365b2e(_0x4ccda1._0x18ecbf,0x322)+'ctory=')+_0x2a9241[_0x365b2e(_0x4ccda1._0xce6f34,_0x4ccda1._0x38ade5)](escapeSystemdArg,SERVICE_DIR)+('\x0aStandar'+'dOutput='+_0x365b2e(0x319,0x196))+_0x2e65a5+(_0x5dd657(_0x4ccda1._0x2de5da,_0x4ccda1._0x2777db)+_0x365b2e(0x34a,0x233)+_0x5dd657(_0x4ccda1._0x341cba,_0x4ccda1._0x2b5539))+_0x50a29f+(_0x365b2e(_0x4ccda1._0x1c8110,_0x4ccda1._0x3032a1)+_0x5dd657(0x486,0x611)+_0x365b2e(-_0x4ccda1._0x104030,-_0x4ccda1._0x3b9417)+'ault.tar'+'get\x0a');}function getServicePath(){const _0x5eedb3={_0x3aa8da:0x536,_0x2641ea:0x28,_0x543a05:0xf6,_0x3d6559:0xb8,_0x442e4a:0xb9,_0x4b9956:0x33d,_0x402e0b:0x2ee,_0x1b43f6:0x62c,_0x5e1f44:0x5da},_0x3eb702={_0x5ca329:0x3e};function _0x3c9ff4(_0x3a4de1,_0x4b76be){return _0x11b7ab(_0x4b76be,_0x3a4de1-0x3db);}function _0x2f6780(_0x8ec2c8,_0x22774e){return _0x11b7ab(_0x22774e,_0x8ec2c8- -_0x3eb702._0x5ca329);}switch(process[_0x2f6780(-0x23,-0xe3)]){case _0x3c9ff4(_0x5eedb3._0x3aa8da,0x710):return MACOS_PLIST_PATH;case _0x2f6780(_0x5eedb3._0x2641ea,_0x5eedb3._0x543a05):return LINUX_SERVICE_PATH;case _0x3c9ff4(0x2dd,0x4b6):return _0x2f6780(-_0x5eedb3._0x3d6559,_0x5eedb3._0x442e4a)+_0x2f6780(0x40,0x97)+'crosoft\x5c'+_0x3c9ff4(_0x5eedb3._0x4b9956,0x1b6)+_0x3c9ff4(_0x5eedb3._0x402e0b,0x1c8)+_0x3c9ff4(_0x5eedb3._0x1b43f6,0x781)+'un\x5cClawk'+_0x3c9ff4(0x3ed,_0x5eedb3._0x5e1f44)+'Cli';default:return'';}}function detectServiceMethod(){const _0xe4b1fd={_0x1c69c3:0x61,_0xeb8056:0x634,_0x66f27b:0x65,_0x863ef2:0x210,_0xffbf0a:0x1ae,_0x42211e:0x459,_0x21e4b3:0xd7,_0x5bc917:0x597,_0xef481b:0x744,_0x5e2425:0x2cf,_0x17dde4:0x3e3},_0x401b12={_0x36fe80:0x43e},_0x462e80={_0x53cdf4:0x1d1};function _0xc69389(_0x146299,_0x47a038){return _0x11b7ab(_0x47a038,_0x146299- -_0x462e80._0x53cdf4);}function _0x4c8f88(_0x46827e,_0x5e24ec){return _0x11b7ab(_0x46827e,_0x5e24ec-_0x401b12._0x36fe80);}const _0x2f4d68={};_0x2f4d68['DEdeo']='darwin',_0x2f4d68['kqEMl']='launchag'+_0xc69389(-_0xe4b1fd._0x1c69c3,-0x16c),_0x2f4d68['GPVMi']=_0x4c8f88(_0xe4b1fd._0xeb8056,0x4a4),_0x2f4d68[_0xc69389(_0xe4b1fd._0x66f27b,_0xe4b1fd._0x863ef2)]=_0xc69389(0x130,_0xe4b1fd._0xffbf0a)+'user';const _0xae0151=_0x2f4d68;switch(process[_0x4c8f88(0x346,_0xe4b1fd._0x42211e)]){case _0xae0151[_0xc69389(-0x94,-0x26f)]:return _0xae0151[_0xc69389(-0xc5,-_0xe4b1fd._0x21e4b3)];case _0xae0151[_0x4c8f88(_0xe4b1fd._0x5bc917,_0xe4b1fd._0xef481b)]:return _0xae0151[_0x4c8f88(0x48d,0x674)];case _0xc69389(-_0xe4b1fd._0x5e2425,-0x242):return _0x4c8f88(0x3d6,0x4d5)+'run-regi'+'stry';default:return _0x4c8f88(_0xe4b1fd._0x17dde4,0x574)+_0x4c8f88(0x477,0x631);}}function readServiceState(){const _0x4891af={_0x248e33:0xd7,_0x498a43:0x80,_0x15792d:0x1b1,_0x10b62c:0x18b,_0x3016e6:0x7c,_0x999941:0x1d3,_0x2773a9:0x48,_0x1aed35:0x21d,_0x125113:0xdd,_0x484a98:0x2b1},_0x473735={_0x4df946:0x14f};function _0x3bfa8f(_0x3ff822,_0x169bb5){return _0x11b7ab(_0x3ff822,_0x169bb5- -0x198);}const _0x10ab97={};function _0x1be75a(_0x21837b,_0x33da2a){return _0x11b7ab(_0x21837b,_0x33da2a-_0x473735._0x4df946);}_0x10ab97[_0x3bfa8f(_0x4891af._0x248e33,-0x7c)]=_0x3bfa8f(-0x75,-_0x4891af._0x498a43);const _0x5aafb2=_0x10ab97;if(!_0x44150d(SERVICE_STATE_PATH))return null;try{const _0x4475c1=JSON[_0x1be75a(0x25a,_0x4891af._0x15792d)](_0x34a7a2(SERVICE_STATE_PATH,_0x5aafb2[_0x3bfa8f(_0x4891af._0x10b62c,-_0x4891af._0x3016e6)]));if(!_0x4475c1[_0x1be75a(-0x11a,0x48)]||typeof _0x4475c1['pid']!==_0x3bfa8f(_0x4891af._0x999941,0x43))return null;return{'pid':_0x4475c1[_0x1be75a(0x5a,_0x4891af._0x2773a9)],'startedAt':_0x4475c1[_0x1be75a(0x1f7,_0x4891af._0x1aed35)+'t']??new Date(0x0)[_0x1be75a(_0x4891af._0x125113,_0x4891af._0x484a98)+'ing']()};}catch{return null;}}function stopRunningProcess(){const _0x5a8846={_0x30d6be:0x30e,_0x363350:0x19f,_0x4874de:0x337,_0x240927:0x43f,_0x1e3e24:0x50d,_0x191678:0x719,_0x5e4de1:0x5b5,_0x241a09:0x1d2,_0x18ef03:0x253},_0x56a399={_0x2e8939:0x44e};function _0x55dac1(_0x22c2ca,_0x28c9db){return _0x6eb3(_0x22c2ca,_0x28c9db-_0x56a399._0x2e8939);}const _0x68c5e3={'bUVpb':function(_0x355434,_0x5adaf0,_0x1fb388){return _0x355434(_0x5adaf0,_0x1fb388);},'IaAsW':'taskkill','nxMJf':_0x55dac1(0x2e0,0x30e)},_0x3d66a5=readServiceState();if(!_0x3d66a5)return;function _0x6eafbf(_0x171e53,_0x4f59de){return _0x6eb3(_0x171e53,_0x4f59de-0x39c);}_0x68c5e3[_0x55dac1(0x535,0x3a4)](execIgnoreFailure,process['platform']===_0x55dac1(0x2b8,_0x5a8846._0x30d6be)?_0x68c5e3[_0x6eafbf(_0x5a8846._0x363350,_0x5a8846._0x4874de)]:'kill',process['platform']===_0x68c5e3[_0x6eafbf(_0x5a8846._0x240927,_0x5a8846._0x1e3e24)]?[_0x55dac1(_0x5a8846._0x191678,_0x5a8846._0x5e4de1),String(_0x3d66a5[_0x6eafbf(_0x5a8846._0x241a09,_0x5a8846._0x18ef03)]),'/T','/F']:[_0x6eafbf(0x365,0x372),String(_0x3d66a5['pid'])]),clearServiceState(_0x3d66a5['pid']);}function isPidRunning(_0xd78c9d){const _0xf3c5df={_0x5f5020:0x549},_0x246e2d={_0x5c3163:0x2d1};function _0x5aa656(_0x26300b,_0x5be34d){return _0x11b7ab(_0x5be34d,_0x26300b-_0x246e2d._0x5c3163);}try{return process[_0x5aa656(_0xf3c5df._0x5f5020,0x6bf)](_0xd78c9d,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x43ff83){const _0x1ecf78={_0x13b323:0x1d1,_0x4f5180:0x6de,_0x234ca4:0x2c1,_0xb1ba06:0x3f6,_0x324bf5:0x414,_0x2de1f8:0x2cf},_0x48ca23={_0xe3b870:0x3fa};function _0x272d77(_0x1a2767,_0x6e6c39){return _0x11b7ab(_0x1a2767,_0x6e6c39-0x25f);}const _0x509afb={'rgTEY':function(_0x13f297,_0x3e4901,_0x25baf1){return _0x13f297(_0x3e4901,_0x25baf1);}};function _0x3d1ef0(_0x18eb3e,_0x5f5dab){return _0x11b7ab(_0x18eb3e,_0x5f5dab-_0x48ca23._0xe3b870);}const _0x5b9edf=_0x509afb[_0x272d77(_0x1ecf78._0x13b323,0x1f2)](openSync,SERVICE_LOG_PATH,'a'),_0x2a86ea=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x34ea40,..._0x2e71d0]=_0x43ff83,_0x5930c4={};_0x5930c4[_0x3d1ef0(_0x1ecf78._0x4f5180,0x6db)]=!![],_0x5930c4[_0x3d1ef0(_0x1ecf78._0x234ca4,0x485)]=['ignore',_0x5b9edf,_0x2a86ea],_0x5930c4[_0x272d77(_0x1ecf78._0xb1ba06,0x3fc)+_0x3d1ef0(_0x1ecf78._0x324bf5,0x4ec)]=!![];const _0x496bf4=spawn(_0x34ea40,_0x2e71d0,_0x5930c4);_0x496bf4[_0x272d77(0x1ca,_0x1ecf78._0x2de1f8)]();}finally{closeSync(_0x5b9edf),closeSync(_0x2a86ea);}}function resolveScriptPath(_0x38b82c){const _0x3f2601={_0x19c8cd:0x430,_0x300e45:0x2b3,_0x45e9b4:0x2c4,_0x3ea227:0x2b4,_0x412728:0xcd,_0x469262:0x2b3},_0x4e168a={_0x39275e:0x1b4},_0x24c8e5={'TbioE':function(_0xaf0f14,_0x5b25a2){return _0xaf0f14(_0x5b25a2);}},_0x287860=_0x38b82c?.[_0x429eab(_0x3f2601._0x19c8cd,_0x3f2601._0x300e45)]()||process[_0x9ede16(_0x3f2601._0x45e9b4,_0x3f2601._0x3ea227)][0x1]?.[_0x429eab(_0x3f2601._0x412728,_0x3f2601._0x469262)]()||'';function _0x9ede16(_0x115476,_0x29f3a7){return _0x11b7ab(_0x29f3a7,_0x115476-0x292);}if(!_0x287860)return'';function _0x429eab(_0x5189ca,_0x402c0c){return _0x11b7ab(_0x5189ca,_0x402c0c-_0x4e168a._0x39275e);}try{return _0x24c8e5[_0x429eab(0x297,0xd5)](realpathSync,_0x287860);}catch{return _0x287860;}}function ensureLaunchScriptExecutable(_0x3158bf,_0x5d8da2){const _0x139568={_0x4e3de9:0x37b};if(_0x5d8da2===_0x4cd786(_0x139568._0x4e3de9,0x2f8)||!_0x44150d(_0x3158bf))return;function _0x4cd786(_0x452620,_0x5d5f83){return _0x11b7ab(_0x452620,_0x5d5f83-0x3f6);}try{chmodSync(_0x3158bf,0x1ed);}catch{}}function writeServiceLauncher(_0x104059){const _0xedb5fc={_0x515e39:0x11a,_0x52893f:0x1b0,_0x585d2d:0x67,_0x7aa85c:0xb0,_0x4397c2:0x255,_0x1b2e34:0x92,_0xd21cc5:0x2e3,_0x27401c:0x303,_0x20ef16:0x10d,_0x437c1b:0x268,_0x313ced:0x1e5,_0x3c7f70:0x10f,_0x539b7d:0x31d,_0x101827:0x21f,_0x9491ab:0x33b,_0x3512e1:0x2f5,_0x5e1021:0xad,_0x229586:0x160,_0x22e5cc:0x209,_0x34281c:0x2f6,_0x270ffd:0x138,_0x4864d2:0xc7,_0x3bdfed:0x2eb,_0x15a050:0x22c,_0x223c52:0xf9,_0x327860:0x183,_0x31be9a:0x13e,_0x19c743:0x32a,_0x5942cb:0x2ec},_0x1ba7fa={_0x2480a6:0x17f},_0x3bb588={'SOwnB':function(_0x5a4f1e,_0x5756bf){return _0x5a4f1e(_0x5756bf);},'uzVcP':'\x20\x20exec\x20\x22'+_0x13f8c5(-_0xedb5fc._0x515e39,-_0xedb5fc._0x52893f)+'TH\x22\x20\x22$SC'+'RIPT_PAT'+_0x13f8c5(-0x6f,0x117)+'-service','CQqfI':function(_0x2d1dcc,_0x4e11fb,_0x3b2f20,_0x420671){return _0x2d1dcc(_0x4e11fb,_0x3b2f20,_0x420671);},'hWSQn':_0x13f8c5(0x133,-_0xedb5fc._0x585d2d)};ensureServiceDirs();function _0x32b1f5(_0x532a51,_0x905781){return _0x11b7ab(_0x532a51,_0x905781-0x4e);}const _0x4a34cc=[_0x13f8c5(0x1ea,0x168)+'h',_0x13f8c5(-0x10d,-_0xedb5fc._0x7aa85c)+_0x32b1f5(0x243,_0xedb5fc._0x4397c2)+escapeShellDoubleQuoted(_0x104059[_0x13f8c5(-_0xedb5fc._0x1b2e34,-0x224)])+'\x22',_0x13f8c5(-0x3a,-0x181)+'H=\x22'+escapeShellDoubleQuoted(_0x104059[_0x13f8c5(-_0xedb5fc._0xd21cc5,-0x1f2)])+'\x22',_0x32b1f5(0x1af,0x19f)+_0x13f8c5(0x28,0x88)+_0x3bb588[_0x13f8c5(-_0xedb5fc._0x27401c,-_0xedb5fc._0x20ef16)](escapeShellDoubleQuoted,_0x104059[_0x13f8c5(-_0xedb5fc._0x437c1b,-_0xedb5fc._0x313ced)+'th'])+'\x22',_0x13f8c5(0x4d,_0xedb5fc._0x3c7f70)+_0x32b1f5(0x3aa,_0xedb5fc._0x539b7d)+_0x32b1f5(_0xedb5fc._0x101827,0x2d3)+_0x32b1f5(0x151,_0xedb5fc._0x9491ab),_0x3bb588[_0x32b1f5(-0x151,-0xd)],'fi',_0x32b1f5(0x3ad,_0xedb5fc._0x3512e1)+_0x13f8c5(0xba,_0xedb5fc._0x5e1021)+_0x32b1f5(_0xedb5fc._0x229586,_0xedb5fc._0x22e5cc)+_0x13f8c5(0x100,-0x89)+_0x32b1f5(_0xedb5fc._0x34281c,0x328),_0x32b1f5(0x433,0x26f)+_0x13f8c5(-_0xedb5fc._0x270ffd,-0x2d)+'RIPT_PAT'+_0x32b1f5(0x377,0x2e4)+_0x32b1f5(0x134,0x222),'fi',_0x13f8c5(0xfb,-0x47)+_0x32b1f5(-0xe4,_0xedb5fc._0x4864d2)+_0x32b1f5(_0xedb5fc._0x3bdfed,0x24e)+'ound\x20for'+_0x13f8c5(0x1ce,0x26)+_0x13f8c5(-0x3c5,-_0xedb5fc._0x15a050)+'service\x22'+_0x13f8c5(-_0xedb5fc._0x223c52,-0x1b7),_0x13f8c5(-0x254,-_0xedb5fc._0x327860),''];_0x3bb588[_0x32b1f5(-_0xedb5fc._0x31be9a,0x7f)](_0x301ed4,SERVICE_LAUNCHER_PATH,_0x4a34cc[_0x13f8c5(-0x16f,-0x19d)]('\x0a'),_0x3bb588[_0x32b1f5(_0xedb5fc._0x19c743,_0xedb5fc._0x5942cb)]);function _0x13f8c5(_0x5b50ce,_0x471c69){return _0x11b7ab(_0x5b50ce,_0x471c69- -_0x1ba7fa._0x2480a6);}return SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x41c622){const _0x3974c8={_0x422f9d:0x84a,_0x426ef5:0x95d,_0xe3c771:0x302,_0x32dda2:0x3a5};function _0x4556fc(_0x4c8200,_0x1f8501){return _0x6eb3(_0x1f8501,_0x4c8200-0x5be);}function _0x35ce91(_0x2a0257,_0x385e86){return _0x6eb3(_0x2a0257,_0x385e86-0x119);}return _0x41c622[_0x4556fc(_0x3974c8._0x422f9d,_0x3974c8._0x426ef5)+'ll']('\x5c','\x5c\x5c')['replaceA'+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x35ce91(_0x3974c8._0xe3c771,_0x3974c8._0x32dda2)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x496f20){const _0x42fe31={_0x1a0167:0x29e},_0xdc4bf3={_0x33ebbc:0x1da};function _0x5006fb(_0x5aa5ae,_0x4b6b81){return _0x6eb3(_0x4b6b81,_0x5aa5ae-0xff);}function _0x4aa1ff(_0x5bcb7b,_0x2e32e3){return _0x6eb3(_0x2e32e3,_0x5bcb7b- -_0xdc4bf3._0x33ebbc);}return _0x496f20[_0x4aa1ff(-0x3a,0x1cd)](escapeWindowsArg)[_0x4aa1ff(-0x23a,-_0x42fe31._0x1a0167)]('\x20');}function ensureServiceDirs(){const _0x1765bb={_0x1c1d67:0xc,_0x2cb74a:0x181},_0x10be29={_0x45fa8f:0x191};function _0x3dd277(_0x64bc6c,_0x2417db){return _0x11b7ab(_0x2417db,_0x64bc6c-0x38d);}function _0x48c8af(_0x4ea94f,_0x4a83c2){return _0x11b7ab(_0x4a83c2,_0x4ea94f-_0x10be29._0x45fa8f);}const _0x4ec890={'nOGby':function(_0x522b1d,_0x272538,_0x7aefa1){return _0x522b1d(_0x272538,_0x7aefa1);},'Nzvte':function(_0x2c2bbc,_0x24298c,_0x4b45ba){return _0x2c2bbc(_0x24298c,_0x4b45ba);}},_0x2d2a5d={};_0x2d2a5d[_0x48c8af(0x15c,_0x1765bb._0x1c1d67)+'e']=!![],_0x4ec890['nOGby'](_0x40ab56,SERVICE_DIR,_0x2d2a5d);const _0x41cb42={};_0x41cb42[_0x3dd277(0x358,_0x1765bb._0x2cb74a)+'e']=!![],_0x4ec890['Nzvte'](_0x40ab56,LOG_DIR,_0x41cb42);}function escapeXml(_0x54b889){const _0x1f2a7e={_0x5905d7:0x719,_0x5ed50c:0x5b1,_0x1bf4a6:0x648,_0x4c1cc0:0x4d3,_0x4c7273:0x485,_0x3e2b17:0x2ac,_0x2d1a9e:0x719,_0x307d72:0x5a1,_0x22da4b:0x4be,_0x443fc8:0x4d7},_0x41b34c={_0x23aa47:0x48d},_0x4de88c={_0x2e33a9:0x330};function _0x42ef87(_0x5c02a8,_0x14e7cd){return _0x6eb3(_0x5c02a8,_0x14e7cd-_0x4de88c._0x2e33a9);}function _0x3f7b05(_0xfe6614,_0x4e5bbe){return _0x6eb3(_0x4e5bbe,_0xfe6614-_0x41b34c._0x23aa47);}return _0x54b889[_0x3f7b05(_0x1f2a7e._0x5905d7,0x666)+'ll']('&',_0x3f7b05(0x705,_0x1f2a7e._0x5ed50c))[_0x3f7b05(_0x1f2a7e._0x5905d7,_0x1f2a7e._0x1bf4a6)+'ll']('<',_0x42ef87(0x6cd,_0x1f2a7e._0x4c1cc0))[_0x3f7b05(0x719,0x81e)+'ll']('>',_0x3f7b05(_0x1f2a7e._0x4c7273,_0x1f2a7e._0x3e2b17))[_0x3f7b05(_0x1f2a7e._0x2d1a9e,_0x1f2a7e._0x307d72)+'ll']('\x22',_0x42ef87(_0x1f2a7e._0x22da4b,_0x1f2a7e._0x443fc8))['replaceA'+'ll']('\x27','&apos;');}function escapeSystemdArg(_0x4cc364){const _0x1635f1={_0x4ddaa4:0x437},_0x31e6ea={_0x22928f:0x169},_0x2615c5={_0x5d882b:0x160};function _0x2d4221(_0xe7cb49,_0x5a07ce){return _0x11b7ab(_0xe7cb49,_0x5a07ce-_0x2615c5._0x5d882b);}function _0x27bce8(_0x80d077,_0xaf36d3){return _0x11b7ab(_0x80d077,_0xaf36d3-_0x31e6ea._0x22928f);}return'\x22'+_0x4cc364[_0x27bce8(0x5fb,_0x1635f1._0x4ddaa4)+'ll']('\x5c','\x5c\x5c')[_0x27bce8(0x4c1,0x437)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x3b87ed){const _0xf52b72={_0x2e3b75:0x677,_0x23d17b:0x5f8};function _0x24c4d0(_0x48b07f,_0x27c87c){return _0x6eb3(_0x27c87c,_0x48b07f-0x3eb);}return'\x22'+_0x3b87ed[_0x24c4d0(_0xf52b72._0x2e3b75,_0xf52b72._0x23d17b)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x2d4699,_0x384b93){const _0x25983b={_0x578f05:0x5a0,_0xc1ace3:0x93},_0x2f4915={_0x4e556c:0x7f};function _0x2d2aef(_0x5e1396,_0x22bb81){return _0x6eb3(_0x5e1396,_0x22bb81- -_0x2f4915._0x4e556c);}function _0x452fb8(_0x3d2643,_0x2154b2){return _0x6eb3(_0x2154b2,_0x3d2643-0x557);}try{const _0x593dd4={};return _0x593dd4[_0x452fb8(_0x25983b._0x578f05,0x776)]=_0x2d2aef(-0x2f,_0x25983b._0xc1ace3),execFileSync(_0x2d4699,_0x384b93,_0x593dd4),!![];}catch{return![];}}function execIgnoreFailure(_0xf84df6,_0x431cb7){const _0x3854e9={_0x1fa451:0x42d,_0x1138ab:0x312,_0x52522f:0x68b,_0x7390d3:0x5ce,_0x7b3768:0x3a3},_0x49b802={_0x355d6a:0x47a},_0x29ca07={_0x4b3df6:0x287},_0x2f9092={'TwwhH':function(_0xc6b39e,_0x230b24,_0xc5d667,_0x28f71e){return _0xc6b39e(_0x230b24,_0xc5d667,_0x28f71e);}};function _0x2406aa(_0x1afb8c,_0x4d40fa){return _0x11b7ab(_0x1afb8c,_0x4d40fa-_0x29ca07._0x4b3df6);}function _0x1def73(_0x413cbc,_0x1d09d2){return _0x11b7ab(_0x413cbc,_0x1d09d2-_0x49b802._0x355d6a);}try{const _0x4f069e={};_0x4f069e[_0x2406aa(_0x3854e9._0x1fa451,_0x3854e9._0x1138ab)]=_0x1def73(_0x3854e9._0x52522f,_0x3854e9._0x7390d3),_0x2f9092[_0x1def73(_0x3854e9._0x7b3768,0x40c)](execFileSync,_0xf84df6,_0x431cb7,_0x4f069e);}catch{}}function rmIfExists(_0x217272){const _0x124c67={_0x3fd7e8:0x3ff},_0x40e1d6={_0x4dff81:0x1ad},_0x414be0={_0x291af3:0x296},_0x39371f={'TtsVL':function(_0x728899,_0x5ed134){return _0x728899(_0x5ed134);}};if(!_0x39371f[_0x1d2636(0x28b,0x1b3)](_0x44150d,_0x217272))return;const _0x465d61={};_0x465d61[_0x7783d3(0x461,_0x124c67._0x3fd7e8)]=!![];function _0x7783d3(_0x590644,_0x722185){return _0x6eb3(_0x722185,_0x590644-_0x414be0._0x291af3);}function _0x1d2636(_0x5bfc6a,_0x28d3f2){return _0x6eb3(_0x5bfc6a,_0x28d3f2-_0x40e1d6._0x4dff81);}_0x40020e(_0x217272,_0x465d61);}import{existsSync as _0x4f9909,readFileSync as _0x5a0f2d}from'fs';import{homedir as _0x3e0b2d}from'os';function _0x6eb3(_0x3c2196,_0x3c5623){return _0x2e58(_0x3c5623- -0x1e8,_0x3c2196);}import{join as _0x44be4d}from'path';var DEFAULT_GATEWAY_URL='ws://127'+_0x6eb3(0xb0,0x1f9)+_0x11b7ab(-0x6e,0x43),OPENCLAW_DIR=_0x44be4d(_0x3e0b2d(),_0x6eb3(0x1f6,0x271)+'w'),OPENCLAW_CONFIG_PATH2=_0x44be4d(OPENCLAW_DIR,_0x6eb3(-0x3e,0x13b)+'.json'),OPENCLAW_MEDIA_DIR=_0x44be4d(OPENCLAW_DIR,_0x11b7ab(-0x17a,-0x97));function resolveGatewayUrl(_0x4a9124){const _0xd2e49c={_0x257918:0x659,_0xca1953:0x61b,_0x4cc334:0x494,_0x1b584c:0x152,_0x593a59:0x72,_0xb4eb64:0x6aa,_0x4419aa:0x5da,_0x41b825:0x547,_0x4a48bf:0x5bd},_0x342f91={_0x490d4d:0x1b1},_0x18614d={_0x327579:0x55e},_0x43417f={'dwxKJ':function(_0x3f4fcb){return _0x3f4fcb();},'YSqQz':_0x36179e(0x723,0x6f7)},_0x88f982=_0x4a9124?.[_0x36179e(_0xd2e49c._0x257918,_0xd2e49c._0xca1953)]();function _0x36179e(_0x40836b,_0x3553a1){return _0x6eb3(_0x40836b,_0x3553a1-_0x18614d._0x327579);}function _0x24672a(_0x280b5c,_0x9ebb68){return _0x6eb3(_0x9ebb68,_0x280b5c- -_0x342f91._0x490d4d);}if(_0x88f982)return _0x88f982;const _0x42bd48=_0x43417f[_0x36179e(0x6a5,0x4d4)](readOpenClawInfo);if(typeof _0x42bd48[_0x36179e(0x338,_0xd2e49c._0x4cc334)+_0x24672a(-_0xd2e49c._0x1b584c,_0xd2e49c._0x593a59)]===_0x43417f[_0x36179e(_0xd2e49c._0xb4eb64,_0xd2e49c._0x4419aa)])return'ws://127'+'.0.0.1:'+_0x42bd48[_0x36179e(_0xd2e49c._0x41b825,_0xd2e49c._0x4cc334)+_0x36179e(0x703,_0xd2e49c._0x4a48bf)];return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x1006b8={_0x54bb48:0x3da,_0xac916:0x384,_0x5b148b:0x3ee,_0x4bd59b:0x4a4,_0x1d7e40:0x3c8,_0x5ea99e:0x19f,_0x18d328:0x9e,_0x2da72f:0x7b,_0x4773a5:0x363,_0x3b9a7e:0x2aa,_0x560b0e:0x667,_0x1ccc5f:0x3ce,_0x19168c:0x310,_0x506e21:0x173,_0x172683:0x86,_0x3dc4f4:0x46e,_0x488045:0x63a,_0x392e07:0x2bb,_0x3607dc:0x288},_0x59d82a={_0x2fe104:0x3ce},_0x4b6059={_0x502111:0x173};function _0x26e84e(_0x1d094b,_0x48551e){return _0x6eb3(_0x1d094b,_0x48551e- -_0x4b6059._0x502111);}const _0x4a4fcf={'QNsod':function(_0x4fd5cf,_0x569f6e){return _0x4fd5cf(_0x569f6e);},'WaNNi':function(_0x1743f1){return _0x1743f1();},'ZjNLB':'number','TzvNw':function(_0x391561,_0x226c08){return _0x391561===_0x226c08;},'MmnEP':function(_0x3d3d41){return _0x3d3d41();}};function _0x139dff(_0x28cff4,_0x252fd8){return _0x6eb3(_0x252fd8,_0x28cff4-_0x59d82a._0x2fe104);}if(!_0x4a4fcf['QNsod'](_0x4f9909,OPENCLAW_CONFIG_PATH2))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':_0x4a4fcf[_0x139dff(_0x1006b8._0x54bb48,_0x1006b8._0xac916)](readGatewayTokenEnv),'password':readGatewayPasswordEnv()};try{const _0x3e9a95=JSON[_0x139dff(_0x1006b8._0x5b148b,0x247)](_0x5a0f2d(OPENCLAW_CONFIG_PATH2,_0x139dff(_0x1006b8._0x4bd59b,_0x1006b8._0x1d7e40))),_0x5045f7=_0x3e9a95['gateway']?.[_0x139dff(0x4ed,0x40b)],_0x39f512=typeof _0x5045f7===_0x4a4fcf[_0x26e84e(-0x207,-_0x1006b8._0x5ea99e)]&&Number[_0x26e84e(_0x1006b8._0x18d328,-0x10d)+'r'](_0x5045f7)?_0x5045f7:null,_0x26eb63=_0x3e9a95[_0x26e84e(-0x94,-0x231)]?.['auth']?.['mode']==='token'||_0x4a4fcf[_0x26e84e(_0x1006b8._0x2da72f,0x61)](_0x3e9a95[_0x26e84e(-_0x1006b8._0x4773a5,-0x231)]?.[_0x26e84e(0x3,-0x1e)]?.[_0x26e84e(-0xf8,-_0x1006b8._0x3b9a7e)],'password')?_0x3e9a95['gateway'][_0x139dff(0x523,_0x1006b8._0x560b0e)][_0x26e84e(-_0x1006b8._0x1ccc5f,-_0x1006b8._0x3b9a7e)]:null,_0x7594f3=readConfiguredSecret(_0x3e9a95['gateway']?.['auth']?.['token'])??readGatewayTokenEnv(),_0x5c7667=_0x4a4fcf['QNsod'](readConfiguredSecret,_0x3e9a95[_0x139dff(_0x1006b8._0x19168c,0x114)]?.['auth']?.[_0x26e84e(-_0x1006b8._0x506e21,-_0x1006b8._0x172683)])??readGatewayPasswordEnv(),_0x5374f9={};return _0x5374f9[_0x26e84e(0x31,0x71)+_0x139dff(_0x1006b8._0x3dc4f4,0x48a)]=!![],_0x5374f9['gatewayP'+_0x139dff(0x42d,0x5a9)]=_0x39f512,_0x5374f9['authMode']=_0x26eb63,_0x5374f9['token']=_0x7594f3,_0x5374f9[_0x139dff(0x4bb,_0x1006b8._0x488045)]=_0x5c7667,_0x5374f9;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':_0x4a4fcf[_0x139dff(_0x1006b8._0x392e07,_0x1006b8._0x3607dc)](readGatewayTokenEnv),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x1de5a4={_0x228daa:0x4e1,_0x498823:0x2a4,_0x2dc343:0x303,_0x206564:0x4a2,_0x3f637e:0x2cd,_0x5e1395:0x32e,_0x50439e:0x13b,_0x1965ca:0x472,_0x4200c4:0x5f9,_0xd48794:0x364,_0xfca74e:0x289,_0x363591:0x46d,_0x5c2579:0x2fa,_0x5ec3dd:0x61d,_0x3879fd:0x637,_0x16ec5f:0x1d2,_0x3ce241:0x29d,_0x31d145:0x43a,_0x2b7cdc:0x34a,_0x29f5b4:0x710,_0x129fc7:0x2bf,_0x584bd8:0x20d,_0x426e0f:0x4de,_0xe0a907:0x5e3,_0x1fd01c:0x4af,_0x3e8e64:0x43a,_0x3001fd:0x354,_0xdb6f90:0x408,_0x4bf7f2:0x585,_0x2aa526:0x480,_0x4e9be6:0x488,_0x27b68d:0x2a3,_0x5a2600:0x15b,_0x750d0b:0x43a,_0x58fa6e:0x4bf,_0x3d935d:0x60b,_0x52bd0c:0x162},_0x4b3ec5={_0x1e3313:0x267},_0x268203={'VeocG':function(_0x5dd5e7){return _0x5dd5e7();},'yHFpC':function(_0x16d58e,_0x494b69){return _0x16d58e==_0x494b69;},'mPhZm':_0xcda8f7(_0x1de5a4._0x228daa,0x47f)+'\x20has\x20bot'+_0xcda8f7(_0x1de5a4._0x498823,0x317)+_0xcda8f7(_0x1de5a4._0x2dc343,_0x1de5a4._0x206564)+_0x39ac36(_0x1de5a4._0x3f637e,0x3a0)+_0xcda8f7(_0x1de5a4._0x5e1395,_0x1de5a4._0x50439e)+_0x39ac36(_0x1de5a4._0x1965ca,0x655)+_0x39ac36(_0x1de5a4._0x4200c4,0x58a)+_0xcda8f7(_0x1de5a4._0xd48794,0x274)+_0x39ac36(0x148,_0x1de5a4._0xfca74e)+'s\x20unset.'+_0x39ac36(0x453,0x467)+_0xcda8f7(_0x1de5a4._0x363591,_0x1de5a4._0x5c2579)+'\x20token\x20o'+_0x39ac36(_0x1de5a4._0x5ec3dd,_0x1de5a4._0x3879fd)+_0xcda8f7(_0x1de5a4._0x16ec5f,_0x1de5a4._0x3ce241)+_0x39ac36(0x4ca,0x5af)+'g.','MlcVz':_0x39ac36(0x358,0x4af),'pCufF':'token'};function _0x39ac36(_0x585b1d,_0x23a0f0){return _0x6eb3(_0x585b1d,_0x23a0f0-0x3c2);}const _0x1564f1=_0x268203[_0x39ac36(0x36f,0x39a)](readOpenClawInfo),_0x1fe13d=_0x1564f1[_0xcda8f7(_0x1de5a4._0x31d145,_0x1de5a4._0x2b7cdc)],_0x380e95=_0x1564f1[_0x39ac36(0x360,0x4af)];if(_0x1fe13d&&_0x380e95&&_0x268203['yHFpC'](_0x1564f1['authMode'],null)){const _0x562fd1={};return _0x562fd1[_0x39ac36(_0x1de5a4._0x29f5b4,0x595)]=_0x1fe13d,_0x562fd1[_0x39ac36(_0x1de5a4._0x129fc7,0x4af)]=_0x380e95,_0x562fd1[_0x39ac36(0x43f,0x3f7)]=_0xcda8f7(0x43a,0x394),_0x562fd1['error']=_0x268203[_0xcda8f7(_0x1de5a4._0x584bd8,0x3de)],_0x562fd1;}function _0xcda8f7(_0x57b3e8,_0x3f0d37){return _0x6eb3(_0x3f0d37,_0x57b3e8-_0x4b3ec5._0x1e3313);}if(_0x1564f1[_0x39ac36(_0x1de5a4._0x426e0f,_0x1de5a4._0xe0a907)]===_0x39ac36(0x4b4,_0x1de5a4._0x1fd01c)){const _0x36217e={};return _0x36217e[_0xcda8f7(_0x1de5a4._0x3e8e64,0x602)]=null,_0x36217e[_0xcda8f7(_0x1de5a4._0x3001fd,0x3b6)]=null,_0x36217e[_0x39ac36(_0x1de5a4._0xdb6f90,0x3f7)]=null,_0x380e95?{'token':null,'password':_0x380e95,'label':_0x268203[_0x39ac36(_0x1de5a4._0x4bf7f2,_0x1de5a4._0x2aa526)]}:_0x36217e;}if(_0x1564f1[_0xcda8f7(_0x1de5a4._0x4e9be6,_0x1de5a4._0x27b68d)]===_0x268203[_0xcda8f7(0x188,0x1da)]){const _0x227f05={};return _0x227f05['token']=null,_0x227f05['password']=null,_0x227f05['label']=null,_0x1fe13d?{'token':_0x1fe13d,'password':null,'label':_0x268203[_0xcda8f7(0x188,_0x1de5a4._0x5a2600)]}:_0x227f05;}if(_0x1fe13d){const _0x212e7a={};return _0x212e7a['token']=_0x1fe13d,_0x212e7a[_0x39ac36(0x391,0x4af)]=null,_0x212e7a['label']=_0xcda8f7(_0x1de5a4._0x750d0b,_0x1de5a4._0x58fa6e),_0x212e7a;}if(_0x380e95){const _0x2b7611={};return _0x2b7611[_0xcda8f7(0x43a,0x4fd)]=null,_0x2b7611['password']=_0x380e95,_0x2b7611[_0xcda8f7(0x29c,0x4a0)]='password',_0x2b7611;}const _0x1b6c7b={};return _0x1b6c7b[_0x39ac36(_0x1de5a4._0x3d935d,0x595)]=null,_0x1b6c7b['password']=null,_0x1b6c7b[_0xcda8f7(0x29c,_0x1de5a4._0x52bd0c)]=null,_0x1b6c7b;}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}function readConfiguredSecret(_0x144654){const _0x16ef44={_0x3e9c18:0xee,_0x4d959a:0x263,_0x38e030:0x268,_0x1b8e89:0x364},_0x17c500={_0x587ea5:0x169},_0x403421={_0x1bfb51:0x31c};function _0x30e150(_0x1ee8f7,_0x274848){return _0x11b7ab(_0x1ee8f7,_0x274848-_0x403421._0x1bfb51);}function _0x4276ff(_0x5d2149,_0x104fcc){return _0x11b7ab(_0x104fcc,_0x5d2149-_0x17c500._0x587ea5);}return typeof _0x144654===_0x4276ff(_0x16ef44._0x3e9c18,_0x16ef44._0x4d959a)&&_0x144654[_0x4276ff(0x268,0x365)]()?_0x144654[_0x4276ff(_0x16ef44._0x38e030,_0x16ef44._0x1b8e89)]():null;}function readGatewayTokenEnv(){const _0x4d9756={_0x2a9a5c:0x107,_0x5ae982:0x192,_0x19be22:0x222,_0x592ac1:0x407,_0x2d0c78:0xd7,_0x5334be:0x225,_0xc67503:0x317,_0x569c50:0x87,_0x45c105:0x3ca},_0x58ca39={_0x3b8a39:0xb0},_0xca8b7b={};function _0x17211f(_0x21d14f,_0x3e9166){return _0x11b7ab(_0x3e9166,_0x21d14f- -_0x58ca39._0x3b8a39);}_0xca8b7b[_0x219271(-_0x4d9756._0x2a9a5c,-_0x4d9756._0x5ae982)]=_0x17211f(_0x4d9756._0x19be22,_0x4d9756._0x592ac1)+_0x17211f(-_0x4d9756._0x2d0c78,-0x9)+_0x219271(-_0x4d9756._0x5334be,-0x97);function _0x219271(_0xa61d19,_0x4e2118){return _0x11b7ab(_0xa61d19,_0x4e2118- -0x217);}_0xca8b7b[_0x219271(-0x495,-_0x4d9756._0xc67503)]=_0x17211f(-_0x4d9756._0x569c50,-0x89)+'_GATEWAY'+_0x219271(0x15b,-0x97);const _0xba1b0b=_0xca8b7b;return readEnvValue(_0xba1b0b['qmDUX'],_0xba1b0b[_0x219271(-_0x4d9756._0x45c105,-_0x4d9756._0xc67503)]);}function readGatewayPasswordEnv(){const _0x21f321={_0x452b43:0x4f3,_0x333f3f:0x1fa,_0x768730:0x33e,_0x15459f:0x453,_0x44fad6:0x24a,_0x8169ab:0x1fe,_0x10fda8:0x3f9},_0x1e72c5={_0x531443:0x263};function _0x39ea61(_0x136be0,_0x259496){return _0x6eb3(_0x136be0,_0x259496-0x209);}function _0x3fb0f6(_0x59b3ba,_0x315411){return _0x6eb3(_0x315411,_0x59b3ba-_0x1e72c5._0x531443);}return readEnvValue(_0x3fb0f6(_0x21f321._0x452b43,0x5d6)+_0x3fb0f6(_0x21f321._0x333f3f,_0x21f321._0x768730)+_0x3fb0f6(_0x21f321._0x15459f,0x358)+'D',_0x3fb0f6(_0x21f321._0x44fad6,_0x21f321._0x8169ab)+'_GATEWAY'+_0x39ea61(0x5cc,_0x21f321._0x10fda8)+'D');}function readEnvValue(_0x5cbc58,_0x35a48a){const _0x1bfc62={_0x155eae:0x1ff,_0x19590e:0x1eb},_0xe1f4e9=process.env[_0x5cbc58]?.[_0x1aac37(0x14c,_0x1bfc62._0x155eae)]();if(_0xe1f4e9)return _0xe1f4e9;function _0x1aac37(_0x4655d5,_0x54e8c9){return _0x11b7ab(_0x4655d5,_0x54e8c9-0x100);}const _0xc50073=process.env[_0x35a48a]?.[_0x6579e1(_0x1bfc62._0x19590e,0x34a)]();function _0x6579e1(_0x246c22,_0x40da6c){return _0x11b7ab(_0x40da6c,_0x246c22-0xec);}return _0xc50073||null;}var CONTROL_PREFIX=_0x11b7ab(0x2ea,0xed)+'t_relay_'+_0x11b7ab(0x420,0x2c1)+'_:';function parseControl(_0x5dd1c5){const _0x2ea995={_0x39afba:0x5b2,_0xd29fc4:0x4de,_0x38a151:0x547,_0x275785:0x3e7,_0x9df3a5:0x44a,_0xd0398c:0x332,_0x26e2a8:0x68e,_0xd9de0:0x688,_0x798419:0x528,_0x2347fe:0x4a9},_0x20d42c={_0x3719bf:0x413},_0x39b60c={};_0x39b60c[_0x32fd37(_0x2ea995._0x39afba,0x6ec)]=function(_0x59e511,_0x19bc5d){return _0x59e511!==_0x19bc5d;},_0x39b60c[_0x4f0fd5(_0x2ea995._0xd29fc4,0x58e)]=function(_0x47d1de,_0x443604){return _0x47d1de===_0x443604;};function _0x32fd37(_0x52faa9,_0x26aecb){return _0x11b7ab(_0x26aecb,_0x52faa9-_0x20d42c._0x3719bf);}const _0xa59d31=_0x39b60c;if(!_0x5dd1c5[_0x32fd37(0x488,0x45c)+'th'](CONTROL_PREFIX))return null;function _0x4f0fd5(_0x1e2f98,_0x1862a5){return _0x11b7ab(_0x1e2f98,_0x1862a5-0x3ad);}try{const _0x157fbd=JSON[_0x4f0fd5(_0x2ea995._0x38a151,0x40f)](_0x5dd1c5['slice'](CONTROL_PREFIX[_0x4f0fd5(0x575,0x496)]));if(_0xa59d31[_0x32fd37(0x5b2,0x792)](typeof _0x157fbd[_0x32fd37(_0x2ea995._0x275785,0x3e7)],_0x4f0fd5(_0x2ea995._0x9df3a5,_0x2ea995._0xd0398c))||!_0x157fbd['event'][_0x4f0fd5(0x6a8,0x4ac)]())return null;return{'event':_0x157fbd['event'][_0x32fd37(0x512,0x6b7)](),'count':_0xa59d31['rsslV'](typeof _0x157fbd[_0x4f0fd5(0x536,0x4a9)],_0x32fd37(0x5ee,_0x2ea995._0x26e2a8))&&Number[_0x4f0fd5(_0x2ea995._0xd9de0,_0x2ea995._0x798419)](_0x157fbd[_0x4f0fd5(0x6ae,_0x2ea995._0x2347fe)])?_0x157fbd['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x236d83){const _0x48e952={_0x41b128:0x381,_0x13d37a:0x428,_0x1e537f:0x288,_0x5d553d:0x477,_0x4df9d3:0x90,_0x1a2881:0xb2,_0x5c5b2c:0x17c,_0x258ef3:0x140,_0x4aaa90:0xe6,_0x3691ab:0x3d,_0x5bd565:0x560,_0xe30f28:0x358,_0x3d88cf:0xb6,_0x361665:0x3ff,_0x511caf:0x381,_0x37d7d7:0x17b,_0x783486:0x483,_0x194027:0xf4,_0x40de53:0x60,_0x342cae:0x3f4,_0x2e1a73:0x3c7,_0x557a76:0x4c0,_0x4c24fa:0x42f,_0x3aadc3:0x434,_0x420e85:0x212,_0x52aa04:0x241},_0x4436bc={_0x3de8a4:0x9f};function _0x34803d(_0x23c6c2,_0x250141){return _0x11b7ab(_0x23c6c2,_0x250141- -_0x4436bc._0x3de8a4);}const _0x2c787c={};_0x2c787c[_0x34803d(0xa8,0x1fc)]=function(_0x382ed3,_0x565b3c){return _0x382ed3!==_0x565b3c;},_0x2c787c[_0x3a9a9f(_0x48e952._0x41b128,0x356)]=_0x3a9a9f(0x4de,0x309)+_0x3a9a9f(_0x48e952._0x13d37a,_0x48e952._0x1e537f);function _0x3a9a9f(_0x1d0d8c,_0x33c1c7){return _0x11b7ab(_0x33c1c7,_0x1d0d8c-0x2c5);}_0x2c787c[_0x3a9a9f(_0x48e952._0x5d553d,0x4d4)]=_0x34803d(_0x48e952._0x4df9d3,-0x11a),_0x2c787c[_0x34803d(-0x3f,0xca)]=_0x34803d(-_0x48e952._0x1a2881,-_0x48e952._0x5c5b2c)+_0x34803d(_0x48e952._0x258ef3,_0x48e952._0x4aaa90);const _0x5a5977=_0x2c787c;try{const _0x5ca0c5=JSON[_0x34803d(-0x153,-_0x48e952._0x3691ab)](_0x236d83);if(_0x5a5977[_0x3a9a9f(_0x48e952._0x5bd565,_0x48e952._0xe30f28)](_0x5ca0c5['type'],'req'))return null;if(_0x5ca0c5[_0x34803d(0xf4,-_0x48e952._0x3d88cf)]!=='connect'&&_0x5ca0c5[_0x3a9a9f(0x2ae,_0x48e952._0x361665)]!==_0x5a5977[_0x3a9a9f(_0x48e952._0x511caf,_0x48e952._0x37d7d7)])return null;const _0x35450b=_0x5ca0c5[_0x3a9a9f(_0x48e952._0x783486,0x3ad)]??{},_0x3d5dc5=typeof _0x5ca0c5['id']===_0x5a5977[_0x34803d(-_0x48e952._0x194027,0x113)]&&_0x5ca0c5['id'][_0x34803d(0x130,_0x48e952._0x40de53)]()?_0x5ca0c5['id'][_0x3a9a9f(0x3c4,_0x48e952._0x342cae)]():_0x3a9a9f(_0x48e952._0x2e1a73,0x2a3)+Math[_0x3a9a9f(0x2b8,_0x48e952._0x557a76)]()[_0x3a9a9f(_0x48e952._0x4c24fa,0x289)](0x24)[_0x3a9a9f(_0x48e952._0x3aadc3,0x271)](0x2,0xc),_0x44cb73=firstString(_0x35450b[_0x34803d(0x1c,0x179)+'me'],_0x35450b['clientNa'+'me'],_0x35450b[_0x34803d(0x2a6,_0x48e952._0x420e85)],_0x5a5977[_0x3a9a9f(0x42e,_0x48e952._0x52aa04)]),_0x5aae23={};return _0x5aae23['id']=_0x3d5dc5,_0x5aae23[_0x34803d(-0x132,-0x28)]=_0x44cb73,_0x5aae23;}catch{return null;}}function isConnectHandshakeRequest(_0x3ecedd){const _0x287ad3={_0x51ac61:0x98,_0x1f1556:0x430,_0x4c214d:0x2d4,_0x2da105:0x273,_0x54af92:0x1cb,_0x5eb0b2:0x38,_0x14474e:0x3d5},_0x683559={_0x26b042:0x272};function _0xf6c76b(_0x1ca086,_0xf46368){return _0x11b7ab(_0xf46368,_0x1ca086-_0x683559._0x26b042);}const _0x54ea90={};_0x54ea90['Wmspe']=function(_0x2e8e18,_0x539e37){return _0x2e8e18===_0x539e37;},_0x54ea90[_0x16bd6c(_0x287ad3._0x51ac61,0x2e)]=_0xf6c76b(0x4c4,_0x287ad3._0x1f1556);const _0x1a0183=_0x54ea90;function _0x16bd6c(_0x37a769,_0x8d3441){return _0x11b7ab(_0x8d3441,_0x37a769- -0x21);}try{const _0x2cb6dc=JSON[_0xf6c76b(_0x287ad3._0x4c214d,_0x287ad3._0x2da105)](_0x3ecedd);return _0x1a0183['Wmspe'](_0x2cb6dc[_0x16bd6c(0xf2,0xc5)],_0xf6c76b(_0x287ad3._0x54af92,0x10b))&&(_0x2cb6dc['method']===_0x1a0183[_0x16bd6c(_0x287ad3._0x51ac61,0x159)]||_0x2cb6dc[_0x16bd6c(-_0x287ad3._0x5eb0b2,-0xad)]==='connect.'+_0xf6c76b(_0x287ad3._0x14474e,0x4bf));}catch{return![];}}function parsePairingRequestFromError(_0x30dd2d,_0x5e1790=Date[_0x6eb3(-0xe1,0x54)]()){const _0x2595e7={_0x3e87da:0x4ff,_0x19180a:0x117,_0x30eb56:0x57,_0x4f5bd8:0x5a2,_0x1240ce:0x9d,_0x319ab0:0x181,_0x675a60:0x2ea,_0x3b3465:0x216,_0x209875:0x3a,_0x292526:0xc2,_0x3d751b:0x5e,_0x5157b6:0x205,_0x9a08b3:0x3e4,_0x9634a1:0x2b5,_0x2c93b7:0x298,_0x52f66b:0x2d9,_0x3f7699:0x29,_0x52f7b3:0x33d,_0x4ca5f8:0x15a,_0x5eb348:0x2f7,_0x20217e:0x3d5,_0xb80122:0x4b8,_0x4de9eb:0x10,_0xc837bd:0xf7,_0x2d17e7:0x2d9,_0x9fc0a:0x54f,_0x4e9203:0x8f,_0x1f156d:0xc8,_0x58c7f5:0xf6,_0x460347:0x4b4,_0x903b9b:0x5e1,_0x5abb7f:0x5b8,_0x369b68:0x588,_0x51d543:0x34b,_0x31f477:0x264,_0x15dae9:0x2a1,_0x473080:0x32e,_0x2ae143:0x4ea,_0x52810c:0x38a},_0x3c93a4={_0x2659ef:0x372},_0x101fbe={_0x1666b6:0xf7},_0x29d556={'UyJCu':_0x1cabfb(_0x2595e7._0x3e87da,0x57c),'WlVuH':function(_0x1f3ea4,_0x3e2f1b){return _0x1f3ea4===_0x3e2f1b;},'YIVsR':'PAIRING_'+_0x332b29(0x2df,0x36d),'USGSe':_0x332b29(0x13e,0x278)+_0x1cabfb(0x2bf,0x3eb),'hAwPF':function(_0x21179e,_0x95ae7f){return _0x21179e(_0x95ae7f);},'EEkra':'unknown','GGVzu':function(_0x29f3cb,_0xdef2e9,_0x1db138){return _0x29f3cb(_0xdef2e9,_0x1db138);}};function _0x332b29(_0x59e57e,_0x2ea6cb){return _0x6eb3(_0x59e57e,_0x2ea6cb-_0x101fbe._0x1666b6);}function _0x1cabfb(_0x5b77cb,_0x4ed7a7){return _0x6eb3(_0x5b77cb,_0x4ed7a7-_0x3c93a4._0x2659ef);}try{const _0x41a1b0=JSON[_0x332b29(0x19a,_0x2595e7._0x19180a)](_0x30dd2d);if(_0x41a1b0[_0x332b29(_0x2595e7._0x30eb56,0x1c8)]!==_0x29d556[_0x1cabfb(_0x2595e7._0x4f5bd8,0x5ad)]||_0x41a1b0['ok']!==![]||!_0x41a1b0[_0x332b29(-_0x2595e7._0x1240ce,0x5e)])return null;const _0x188590=_0x29d556[_0x1cabfb(_0x2595e7._0x319ab0,_0x2595e7._0x675a60)](typeof _0x41a1b0[_0x332b29(_0x2595e7._0x3b3465,0x5e)]['code'],_0x332b29(0x11e,_0x2595e7._0x209875))?_0x41a1b0[_0x332b29(_0x2595e7._0x292526,_0x2595e7._0x3d751b)][_0x332b29(0x1e2,0x25)]:'',_0x4f1e4e=typeof _0x41a1b0['error'][_0x1cabfb(_0x2595e7._0x5157b6,_0x2595e7._0x9a08b3)]===_0x1cabfb(0x183,_0x2595e7._0x9634a1)?_0x41a1b0[_0x1cabfb(_0x2595e7._0x2c93b7,_0x2595e7._0x52f66b)][_0x332b29(_0x2595e7._0x3f7699,0x169)]:'';if(!_0x188590['includes'](_0x1cabfb(0x64e,0x572)+'ED')&&!_0x188590['includes'](_0x29d556['YIVsR'])&&!_0x4f1e4e[_0x332b29(_0x2595e7._0x52f7b3,_0x2595e7._0x4ca5f8)](_0x332b29(0x18f,_0x2595e7._0x5eb348)+'ED')&&!_0x4f1e4e[_0x1cabfb(0x443,_0x2595e7._0x20217e)](_0x29d556[_0x1cabfb(0x4ed,_0x2595e7._0xb80122)]))return null;const _0x18b175=_0x41a1b0[_0x1cabfb(0x2eb,0x2d9)][_0x332b29(_0x2595e7._0x4de9eb,-0x53)]??_0x41a1b0[_0x1cabfb(_0x2595e7._0xc837bd,_0x2595e7._0x2d17e7)][_0x1cabfb(_0x2595e7._0x9fc0a,0x60b)]??{},_0x42958e=firstString(_0x18b175[_0x332b29(0x17a,0x373)+'d'],_0x29d556[_0x332b29(_0x2595e7._0x4e9203,0x159)](extractRequestIdFromMessage,_0x4f1e4e),_0x29d556[_0x332b29(-_0x2595e7._0x1f156d,_0x2595e7._0x58c7f5)]);return{'requestId':_0x42958e,'deviceId':_0x29d556['GGVzu'](firstString,_0x18b175[_0x1cabfb(_0x2595e7._0x460347,_0x2595e7._0x903b9b)],''),'displayName':firstNullableString(_0x18b175[_0x1cabfb(_0x2595e7._0x5abb7f,0x41a)+_0x1cabfb(_0x2595e7._0x369b68,0x624)]),'platform':firstNullableString(_0x18b175[_0x1cabfb(0x357,_0x2595e7._0x51d543)]),'deviceFamily':firstNullableString(_0x18b175[_0x332b29(0x290,_0x2595e7._0x31f477)+_0x1cabfb(0x493,_0x2595e7._0x15dae9)]),'role':firstNullableString(_0x18b175['role']),'remoteIp':firstNullableString(_0x18b175[_0x1cabfb(_0x2595e7._0x473080,_0x2595e7._0x2ae143)]),'receivedAtMs':_0x5e1790,'status':_0x1cabfb(_0x2595e7._0x52810c,0x49e)};}catch{return null;}}function parsePairResolvedEvent(_0xc3514d){const _0x53dc42={_0xd7b094:0x3be,_0x1fab21:0xac,_0x401d4c:0x2aa,_0x39d3da:0x4a3,_0x2068c5:0x18d,_0x160146:0x5b0,_0x409450:0x323,_0x23aa3c:0x28e,_0x1d090b:0x53,_0x4dd6b8:0x81,_0x19461a:0x25b,_0x54dd30:0x292,_0x4fde8a:0x2d9,_0x36c2ef:0x53,_0x25ff9b:0x2f,_0x4029c0:0x216,_0x22f694:0x20,_0x2534c0:0x160,_0x265c75:0x2a0,_0x1989e5:0x4a3,_0x28757f:0x216,_0x1511ba:0x3f0},_0x2d5a78={_0x258056:0x32d};function _0x4f006f(_0x5bd6d4,_0x17421d){return _0x6eb3(_0x5bd6d4,_0x17421d-_0x2d5a78._0x258056);}const _0x1022f4={};_0x1022f4[_0x4f006f(0x228,_0x53dc42._0xd7b094)]=function(_0x46818a,_0x1af392){return _0x46818a!==_0x1af392;},_0x1022f4['RjiYs']='device.p'+'air.reso'+'lved',_0x1022f4[_0x3f18d0(_0x53dc42._0x1fab21,-0x4a)]=_0x4f006f(_0x53dc42._0x401d4c,_0x53dc42._0x39d3da);function _0x3f18d0(_0x2cce24,_0x3ba409){return _0x6eb3(_0x3ba409,_0x2cce24- -0x189);}const _0x5bfac1=_0x1022f4;try{const _0x427b36=JSON[_0x4f006f(_0x53dc42._0x2068c5,0x34d)](_0xc3514d);if(_0x5bfac1['hmymb'](_0x427b36[_0x4f006f(_0x53dc42._0x160146,0x3fe)],_0x3f18d0(-0x1f7,-_0x53dc42._0x409450))||_0x427b36[_0x4f006f(_0x53dc42._0x23aa3c,0x2bf)]!==_0x5bfac1['RjiYs']||!_0x427b36['payload'])return null;const _0x361816=typeof _0x427b36[_0x3f18d0(-_0x53dc42._0x1d090b,_0x53dc42._0x4dd6b8)][_0x3f18d0(0xf3,_0x53dc42._0x19461a)+'d']===_0x4f006f(_0x53dc42._0x54dd30,0x270)?_0x427b36['payload'][_0x3f18d0(0xf3,_0x53dc42._0x4fde8a)+'d']['trim']():'';if(!_0x361816)return null;const _0x2cf41b=typeof _0x427b36[_0x3f18d0(-_0x53dc42._0x36c2ef,_0x53dc42._0x25ff9b)][_0x3f18d0(-_0x53dc42._0x4029c0,-_0x53dc42._0x22f694)]==='string'?_0x427b36[_0x3f18d0(-_0x53dc42._0x1d090b,0x70)][_0x4f006f(_0x53dc42._0x2534c0,_0x53dc42._0x265c75)]:_0x4f006f(0x67e,_0x53dc42._0x1989e5),_0x416154=_0x2cf41b==='approved'||_0x2cf41b==='rejected'?_0x2cf41b:_0x5bfac1['pFvRk'],_0x4bb255={};return _0x4bb255['requestI'+'d']=_0x361816,_0x4bb255[_0x3f18d0(-_0x53dc42._0x28757f,-_0x53dc42._0x1511ba)]=_0x416154,_0x4bb255;}catch{return null;}}function firstString(..._0xc21356){function _0x46a341(_0x352506,_0xda8dde){return _0x11b7ab(_0xda8dde,_0x352506-0x2dd);}function _0x4a84d7(_0x4d7b97,_0x4d1a71){return _0x11b7ab(_0x4d1a71,_0x4d7b97-0x464);}for(const _0x5669ed of _0xc21356){if(typeof _0x5669ed===_0x4a84d7(0x3e9,0x3f4)&&_0x5669ed[_0x4a84d7(0x563,0x423)]())return _0x5669ed['trim']();}return'';}function firstNullableString(_0x1b60a8){const _0x1cadc2={_0x4596af:0x310,_0x18cdf0:0x37c,_0x2d59ad:0x37a,_0x717f23:0x379},_0x5a2fe2={_0x22c7e0:0x339};function _0x3f4869(_0x18aa9d,_0x3b7497){return _0x6eb3(_0x18aa9d,_0x3b7497-_0x5a2fe2._0x22c7e0);}const _0x37304b={};_0x37304b['XWKPb']=function(_0x1f371d,_0x37f251){return _0x1f371d===_0x37f251;},_0x37304b[_0x17ad37(0x5c0,0x40e)]=_0x17ad37(0x469,_0x1cadc2._0x4596af);const _0x6df952=_0x37304b;function _0x17ad37(_0x683bd5,_0x5692bd){return _0x6eb3(_0x683bd5,_0x5692bd-0x3cd);}return _0x6df952[_0x17ad37(0x23b,0x2c9)](typeof _0x1b60a8,_0x6df952[_0x3f4869(_0x1cadc2._0x18cdf0,_0x1cadc2._0x2d59ad)])&&_0x1b60a8[_0x17ad37(_0x1cadc2._0x717f23,0x48a)]()?_0x1b60a8[_0x17ad37(0x59d,0x48a)]():null;}function extractRequestIdFromMessage(_0x1f398a){const _0x510487=_0x1f398a[_0x5f2389(0x300,0x35d)](/requestId[:\s]*([a-f0-9-]+)/i);function _0x5f2389(_0x5203c0,_0x2add98){return _0x6eb3(_0x2add98,_0x5203c0-0x315);}return _0x510487?.[0x1]??null;}import{randomUUID as _0x2b14da}from'crypto';import{setTimeout as _0x3ea3f7}from'timers/promises';import _0x17e531 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,GATEWAY_IDLE_DISCONNECT_DELAY_MS=0x7530,RECONNECT_BASE_DELAY_MS=0x3e8,RECONNECT_MAX_DELAY_MS=0x3a98,MAX_PENDING_GATEWAY_MESSAGES=0x100,MAX_DEVICE_DETAILS=0x20,MAX_PENDING_PAIR_REQUESTS=0x10,BridgeRuntime=class{[_0x11b7ab(0x72,-0x39)];['relaySoc'+_0x6eb3(0x11a,0x1de)]=null;[_0x6eb3(0x87,-0x148)+'ocket']=null;[_0x6eb3(-0xb,0x183)+'necting']=![];['gatewayC'+'onnectin'+'g']=![];[_0x6eb3(0x47,0x1ba)]=!![];[_0x11b7ab(0x16c,0xe)+_0x6eb3(0xfc,-0xe5)]=0x0;[_0x6eb3(-0x5d,-0x3f)+_0x11b7ab(-0x17,-0x77)+_0x6eb3(-0xc,0xef)]=0x0;[_0x6eb3(0x3e8,0x25b)+_0x6eb3(-0xa,0x4b)]=null;[_0x11b7ab(0x124,0x279)+'etryTime'+'r']=null;['gatewayI'+'dleClose'+_0x11b7ab(0x6e,-0x1d)]=null;[_0x6eb3(-0xb9,0xeb)+_0x6eb3(-0x4a,0x4b)]=null;['pendingG'+_0x6eb3(0x470,0x2b4)+_0x11b7ab(0x304,0x234)]=[];[_0x6eb3(0x47e,0x277)+_0x11b7ab(0x42,-0x63)+_0x11b7ab(-0xa4,0x88)]=![];[_0x6eb3(0x2c2,0x2c0)+'mandStar'+_0x6eb3(-0x8,-0x14c)]=null;[_0x11b7ab(0x1dd,0x2c3)+_0x6eb3(-0x25,-0xd7)+_0x11b7ab(-0xd9,-0x1b)]=null;[_0x11b7ab(0x290,0xec)];constructor(_0x4e053a){const _0x6b1316={_0x5d4185:0xa0,_0x4acb4d:0x15e,_0x4cf19c:0xbd,_0xc5b56d:0x1e2,_0x45804:0x277,_0x16f83c:0x20e},_0x440d53={_0x19392e:0x14a},_0x3de3a3={_0x1822a0:0x146};function _0x1bfcf7(_0x31e7bf,_0x3d18e1){return _0x6eb3(_0x31e7bf,_0x3d18e1- -_0x3de3a3._0x1822a0);}this[_0x1bfcf7(-0x3aa,-0x1c1)]=_0x4e053a;function _0x41c0b5(_0x340bf1,_0x58da5c){return _0x6eb3(_0x58da5c,_0x340bf1- -_0x440d53._0x19392e);}this[_0x41c0b5(-_0x6b1316._0x5d4185,-0x1e1)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x4e053a[_0x41c0b5(-0x146,-0x10b)][_0x41c0b5(0x61,0x1d4)+'d'],'instanceId':_0x4e053a['config'][_0x1bfcf7(-0x85,-_0x6b1316._0x4acb4d)+'Id'],'relayUrl':_0x4e053a[_0x1bfcf7(-_0x6b1316._0x4cf19c,-0x142)][_0x1bfcf7(-_0x6b1316._0xc5b56d,-_0x6b1316._0x45804)],'gatewayUrl':_0x4e053a[_0x1bfcf7(-_0x6b1316._0x16f83c,-0x1d6)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date[_0x1bfcf7(-0x226,-0xf2)]()};}['start'](){const _0x1d64c0={_0x41ac68:0x263,_0x3688d2:0x2b1,_0xc13163:0x180,_0x1d6678:0x336,_0x22b4ce:0x37,_0x592804:0x217,_0x222d8a:0x1f3,_0xbc635c:0x149,_0x1aee57:0x309,_0x1c6ee5:0x133,_0x17b8aa:0x2d3,_0x147f5d:0x58,_0x3b199b:0x124,_0x2d1542:0x19},_0xdeefed={_0x1b5373:0x128};if(!this[_0x5b170b(0x263,_0x1d64c0._0x41ac68)])return;this['stopped']=![];function _0x14efd1(_0x52bcbf,_0x52c508){return _0x6eb3(_0x52bcbf,_0x52c508-_0xdeefed._0x1b5373);}this[_0x14efd1(_0x1d64c0._0x3688d2,_0x1d64c0._0xc13163)+_0x5b170b(_0x1d64c0._0x1d6678,0x311)]({'running':!![],'gatewayUrl':this[_0x14efd1(_0x1d64c0._0x22b4ce,0xad)][_0x5b170b(0xf5,0x19)+'rl']});function _0x5b170b(_0x44c806,_0xfaab89){return _0x6eb3(_0x44c806,_0xfaab89-0xa9);}this[_0x5b170b(_0x1d64c0._0x592804,_0x1d64c0._0x222d8a)](_0x5b170b(_0x1d64c0._0xbc635c,-0x50)+_0x5b170b(_0x1d64c0._0x1aee57,0x141)+'\x20gateway'+_0x14efd1(-0x5a,-0x3)+this['options']['config'][_0x14efd1(_0x1d64c0._0x1c6ee5,_0x1d64c0._0x17b8aa)+'d']+(_0x5b170b(-0x14e,-_0x1d64c0._0x147f5d)+'Url=')+this[_0x5b170b(0x1bd,0x2e)][_0x5b170b(-_0x1d64c0._0x3b199b,_0x1d64c0._0x2d1542)+'rl']),void this['connectR'+_0x5b170b(0x158,0x2d8)]();}async[_0x6eb3(0x174,0x11c)](){const _0x506f12={_0x3a4b48:0x31d,_0x4bb648:0x160,_0x319777:0x2fb,_0xbcbd8d:0x27e,_0x595440:0x1ee,_0x3a56c0:0xa2,_0x2a4dcb:0x219,_0x250e8d:0x1df,_0x3c893f:0x348,_0x9bc132:0x27e,_0x46dca5:0x436,_0x567bd5:0x23e,_0x118eac:0x2a7,_0x30d50e:0x43d,_0x8cab50:0x1c8,_0x50e633:0x461,_0x47a976:0x23e,_0x4c3ace:0x5ad,_0x3ef1c0:0x34,_0x3df37a:0x9e,_0x5878aa:0x15c,_0x5c3a84:0x134,_0x4d3cbe:0x3db,_0x46a768:0x4d9,_0x3828ec:0x606,_0x138eef:0x283,_0x58497f:0x39f,_0x416369:0x3b3,_0x3bac42:0xf,_0xccbc4e:0x1d3,_0x42324c:0x452,_0x13f950:0x3a2,_0x2e9752:0x2cd},_0x1b7cf0={_0x200851:0x258},_0x2a121a={_0x18002c:0x1ea},_0x398c3b={};_0x398c3b[_0x41b114(0x341,_0x506f12._0x3a4b48)]=_0x41b114(0x15f,0x1a5)+'stopped';const _0x53edeb=_0x398c3b;if(this['stopped'])return;this[_0x22650c(0x551,0x3a4)]=!![],this[_0x22650c(0x513,0x3d6)+_0x41b114(_0x506f12._0x4bb648,0xad)](),this[_0x22650c(_0x506f12._0x319777,_0x506f12._0xbcbd8d)+_0x22650c(0x5c3,0x3c8)]?.['close'](),this[_0x22650c(_0x506f12._0x595440,_0x506f12._0x3a56c0)+'ocket']?.[_0x22650c(_0x506f12._0x2a4dcb,_0x506f12._0x250e8d)](),this[_0x22650c(_0x506f12._0x3c893f,_0x506f12._0x9bc132)+_0x41b114(_0x506f12._0x46dca5,_0x506f12._0x567bd5)]=null,this[_0x41b114(0x110,_0x506f12._0x118eac)+_0x22650c(_0x506f12._0x30d50e,0x4a7)]=null,this[_0x22650c(_0x506f12._0x8cab50,0xba)+_0x41b114(0x50c,0x64b)+_0x41b114(0x44a,0x5a5)]=[],this[_0x22650c(0x2b5,_0x506f12._0x50e633)+'andshake'+_0x22650c(_0x506f12._0x47a976,0x230)]=![],this[_0x22650c(_0x506f12._0x4c3ace,0x4aa)+'mandStar'+_0x22650c(-_0x506f12._0x3ef1c0,_0x506f12._0x3df37a)]=null,this[_0x22650c(0x3cb,0x46b)+_0x22650c(_0x506f12._0x5878aa,0x113)+'AtMs']=null,this['relayCon'+_0x22650c(0x37b,0x1b0)]=![],this[_0x22650c(0x53a,0x46b)+_0x22650c(0x27c,_0x506f12._0x5c3a84)+'g']=![];const _0x39d750={};_0x39d750[_0x22650c(0x22a,0x1cd)]=![],_0x39d750[_0x41b114(_0x506f12._0x4d3cbe,0x259)+'nected']=![];function _0x22650c(_0x1327a8,_0x351934){return _0x6eb3(_0x1327a8,_0x351934-_0x2a121a._0x18002c);}function _0x41b114(_0x34ba79,_0x27fa61){return _0x6eb3(_0x27fa61,_0x34ba79-_0x1b7cf0._0x200851);}_0x39d750[_0x41b114(_0x506f12._0x46a768,_0x506f12._0x3828ec)+_0x22650c(-0xec,0x113)]=![],_0x39d750[_0x41b114(0x122,_0x506f12._0x138eef)+_0x41b114(_0x506f12._0x58497f,_0x506f12._0x416369)]=0x0,_0x39d750[_0x22650c(-_0x506f12._0x3bac42,_0x506f12._0xccbc4e)+'r']=null,this['updateSn'+_0x22650c(0x650,_0x506f12._0x42324c)](_0x39d750),this[_0x41b114(_0x506f12._0x13f950,0x211)](_0x53edeb[_0x41b114(0x341,_0x506f12._0x2e9752)]),await _0x3ea3f7(0x19);}async[_0x6eb3(-0x1b5,-0x12)+'airReque'+'st'](_0x43899c){const _0x4f078d={_0x3a75f6:0x45,_0x1a07d6:0x1fe,_0x5bf516:0x9a,_0x338bae:0x17c,_0xdcf799:0x322,_0x15f506:0x96},_0x1c3184={_0x2251f9:0x198},_0x19f62b={_0x2f1c33:0x14a},_0x28bf4b={};_0x28bf4b[_0x3ab965(-0x1ca,-0x2ce)]=_0xe6035(0x1a7,0x378)+'air.appr'+_0x3ab965(-_0x4f078d._0x3a75f6,0x55);const _0x4ae463=_0x28bf4b;function _0xe6035(_0x2b5e30,_0x5000fb){return _0x11b7ab(_0x5000fb,_0x2b5e30- -_0x19f62b._0x2f1c33);}const _0x5048e8={};_0x5048e8[_0x3ab965(0x126,_0x4f078d._0x1a07d6)+'d']=_0x43899c,this[_0x3ab965(-_0x4f078d._0x5bf516,0x9c)+'wayReque'+'st'](_0x4ae463[_0xe6035(-_0x4f078d._0x338bae,-_0x4f078d._0xdcf799)],_0x5048e8);function _0x3ab965(_0x452630,_0x5b38f6){return _0x11b7ab(_0x5b38f6,_0x452630- -_0x1c3184._0x2251f9);}this['markPair'+_0x3ab965(-0x70,-0x1fd)+_0xe6035(-0x1cd,-0x131)](_0x43899c,_0x3ab965(-0x4c,-_0x4f078d._0x15f506));}async[_0x6eb3(0x1f,0x175)+_0x6eb3(0x153,0x117)+'t'](_0x22f44c){const _0x369c8d={_0x43eeda:0x29b,_0x428840:0x28f,_0x934078:0x137,_0xe55ff7:0xae,_0x5da5e5:0x2c9,_0x3174b9:0x317,_0x4e22ac:0x96,_0x261fc5:0x84,_0x510e25:0x1fb,_0x523053:0xb6,_0xa11df6:0x134},_0x23b944={};_0x23b944[_0x2419cd(_0x369c8d._0x43eeda,0x317)]=_0x2419cd(_0x369c8d._0x428840,0x3fd)+_0x1aae02(_0x369c8d._0x934078,-0x18)+'ct';function _0x2419cd(_0x370b3b,_0x1bb167){return _0x6eb3(_0x370b3b,_0x1bb167-0x14e);}const _0x1dd0de=_0x23b944,_0x417e00={};function _0x1aae02(_0x1435e0,_0x542251){return _0x6eb3(_0x1435e0,_0x542251- -0x16a);}_0x417e00['requestI'+'d']=_0x22f44c,this[_0x1aae02(-0xef,-_0x369c8d._0xe55ff7)+_0x1aae02(0x7a,0x116)+'st'](_0x1dd0de[_0x2419cd(_0x369c8d._0x5da5e5,_0x369c8d._0x3174b9)],_0x417e00),this['markPair'+_0x1aae02(-_0x369c8d._0x4e22ac,-_0x369c8d._0x261fc5)+_0x2419cd(_0x369c8d._0x510e25,0x89)](_0x22f44c,_0x1aae02(_0x369c8d._0x523053,-_0x369c8d._0xa11df6));}[_0x11b7ab(0x313,0x11d)+'hot'](){const _0x2121ec={_0x626ae0:0x313,_0x2a77df:0x2ae,_0x3c962d:0x1a0,_0x475c47:0x24c,_0x3a40e7:0x1f6,_0x59cf40:0x24e},_0x524a2c={_0x444746:0x198},_0x12537c={...this[_0x5b9ba6(0x242,_0x2121ec._0x626ae0)]};function _0x5b9ba6(_0x18782a,_0x25aee2){return _0x6eb3(_0x25aee2,_0x18782a-_0x524a2c._0x444746);}_0x12537c[_0x5b9ba6(0x28a,0x249)+_0x5b9ba6(_0x2121ec._0x2a77df,0x469)]=[...this[_0x5b9ba6(0x242,0x2a1)]['connecte'+_0x5b9ba6(0x2ae,_0x2121ec._0x3c962d)]],_0x12537c[_0x5b9ba6(0x1bd,0x173)+_0x5b9ba6(0x129,_0x2121ec._0x475c47)+'sts']=[...this['snapshot'][_0x5b9ba6(0x1bd,_0x2121ec._0x3a40e7)+_0x13ba26(0x4ea,0x485)+_0x5b9ba6(_0x2121ec._0x59cf40,0x192)]];function _0x13ba26(_0x1029ac,_0x2f13e6){return _0x6eb3(_0x1029ac,_0x2f13e6-0x4f4);}return _0x12537c;}async[_0x6eb3(0x21a,0x2a8)+_0x6eb3(0x104,0x22f)](){const _0x497fb8={_0x3cbd24:0xe0,_0x321a19:0x533,_0x251c31:0x45,_0x4fa7c5:0x3c,_0x43b9f3:0x155,_0x1d35a3:0x341,_0x5ee9f1:0x4c5,_0x8f2b7d:0x4c3,_0x363bb3:0x3e1,_0x3a1810:0x4ec,_0x2544f7:0x3ff,_0x2761e3:0x2d6,_0x1df405:0x2ad},_0x52f2af={_0x543199:0x3d9,_0x5ac0a3:0x1ec,_0xc0ea0d:0xe8,_0x3c7261:0x4d1,_0x460c00:0x270,_0x491577:0x2d8,_0x1391eb:0x1a3,_0x4dcd89:0x19e,_0x2d6491:0x253,_0x2dc33:0x74,_0x5a16a4:0x185,_0x1fe00c:0x2d0,_0x4e253e:0xe9,_0x4860d1:0x31f,_0x1a9b84:0x7e,_0x350663:0x18e,_0x889cdb:0x1b0,_0x5e4392:0xb1,_0x307ebb:0xaf,_0x4c706f:0x3f8,_0x1c3d78:0x327,_0x3ebe22:0x34,_0xeecbf2:0x26d},_0x56e583={_0x33d280:0x2},_0x461fb6={_0x112194:0x27c,_0x5e1a44:0x1f6,_0x1644cc:0x383,_0x4851f5:0x4e,_0x14c058:0x5d},_0x2e0012={_0x58b81b:0x8e3,_0x5cd5f6:0x70c,_0x3f2375:0x5e6,_0x33c78a:0x129,_0x33165d:0xc0,_0x32a670:0x6b7,_0x37fdee:0x32d,_0x157368:0x518,_0xa848:0x1c,_0x3ca376:0x16e,_0x94c778:0x91,_0x42009d:0x61,_0x32481e:0x33,_0x1532dc:0x444,_0x42182f:0x1b3,_0x45bf58:0x148,_0xc76e16:0x4d,_0x21872d:0xe2,_0x1cac69:0x46c,_0x27c192:0x2e6},_0x526df3={_0x5ccfcf:0x379},_0x88df78={'BOAUR':function(_0x56f0e5,_0x167b62){return _0x56f0e5===_0x167b62;},'lwgRK':_0x45b8da(_0x497fb8._0x3cbd24,0x96),'uEGOg':function(_0xd0ea8a,_0x493ee1){return _0xd0ea8a(_0x493ee1);},'YgDEb':function(_0x10f94e,_0x1dfd95){return _0x10f94e*_0x1dfd95;}};if(this[_0x557982(0x4f6,_0x497fb8._0x321a19)]||this[_0x45b8da(0x181,-_0x497fb8._0x251c31)+_0x45b8da(-_0x497fb8._0x4fa7c5,-0x56)]||this[_0x557982(0x4f4,0x381)+'pen']())return;function _0x557982(_0x577f2b,_0x433263){return _0x6eb3(_0x577f2b,_0x433263-_0x526df3._0x5ccfcf);}this[_0x45b8da(0x181,0x291)+'necting']=!![],this[_0x557982(0x1ec,0x345)+'empt']+=0x1;const _0xa0b52d=this[_0x45b8da(-0x36,0x79)+'empt'],_0x362b12=_0x88df78[_0x45b8da(0x11,-_0x497fb8._0x43b9f3)](buildRelayWsUrl,this[_0x557982(_0x497fb8._0x1d35a3,0x2fe)][_0x557982(_0x497fb8._0x5ee9f1,0x37d)]);this[_0x557982(0x39e,_0x497fb8._0x8f2b7d)](_0x557982(0x361,_0x497fb8._0x363bb3)+_0x557982(0x4ff,_0x497fb8._0x3a1810)+'tempt='+_0xa0b52d+_0x557982(0x42f,0x37e)+redactRelayWsUrl(_0x362b12));const _0x470017=new _0x17e531(_0x362b12,{'maxPayload':_0x88df78[_0x557982(_0x497fb8._0x2544f7,0x4a3)](0x19*0x400,0x400)});this[_0x45b8da(0x92,0x27b)+_0x557982(0x6fc,0x557)]=_0x470017,_0x470017['once'](_0x45b8da(-0x112,-0x85),()=>{if(this[_0x157a2b(_0x2e0012._0x58b81b,_0x2e0012._0x5cd5f6)]||this[_0x157a2b(0x491,_0x2e0012._0x3f2375)+_0x3a62bf(_0x2e0012._0x33c78a,0x20f)]!==_0x470017){_0x470017[_0x3a62bf(-_0x2e0012._0x33165d,-0x1e)]();return;}function _0x3a62bf(_0x43adb7,_0x3e8eb7){return _0x557982(_0x3e8eb7,_0x43adb7- -0x42e);}this[_0x157a2b(_0x2e0012._0x32a670,0x6d5)+_0x157a2b(_0x2e0012._0x37fdee,_0x2e0012._0x157368)]=![],this[_0x3a62bf(-0xf4,-_0x2e0012._0xa848)+_0x3a62bf(-_0x2e0012._0x3ca376,-_0x2e0012._0x94c778)+'yMs']=Date[_0x3a62bf(-_0x2e0012._0x42009d,_0x2e0012._0x32481e)]();const _0x52f67={};_0x52f67['relayCon'+_0x157a2b(0x602,_0x2e0012._0x1532dc)]=!![],_0x52f67[_0x157a2b(0x651,0x53b)+'r']=null,this[_0x157a2b(0x5b7,0x5aa)+_0x3a62bf(_0x2e0012._0x42182f,0x161)](_0x52f67);function _0x157a2b(_0x33c499,_0x32e718){return _0x557982(_0x33c499,_0x32e718-0x1d9);}this[_0x3a62bf(0x95,-_0x2e0012._0x45bf58)](_0x3a62bf(-_0x2e0012._0xc76e16,_0x2e0012._0x21872d)+_0x157a2b(0x4c8,0x4cd)+_0x157a2b(_0x2e0012._0x1cac69,0x660)+_0xa0b52d),this[_0x3a62bf(0xd5,0x2cd)+_0x3a62bf(0x204,_0x2e0012._0x27c192)]();}),_0x470017['on']('message',(_0x1817a6,_0x5df622)=>{function _0x41e22b(_0x5f47b6,_0x281cf9){return _0x557982(_0x281cf9,_0x5f47b6- -0x2b2);}function _0x142076(_0x136f60,_0x19b274){return _0x557982(_0x19b274,_0x136f60- -0x2bd);}void this[_0x41e22b(0x349,0x2e7)+_0x142076(-0xd,-0x1b2)+'ge'](_0x1817a6,_0x5df622);}),_0x470017['on'](_0x557982(_0x497fb8._0x2761e3,0x27e),()=>{function _0x4f2519(_0x353173,_0x378f35){return _0x45b8da(_0x353173- -0x13b,_0x378f35);}function _0x14af77(_0xe199f7,_0x31a766){return _0x45b8da(_0x31a766-0x45c,_0xe199f7);}this[_0x4f2519(-0x17c,-_0x461fb6._0x112194)+_0x4f2519(-_0x461fb6._0x5e1a44,-_0x461fb6._0x1644cc)+_0x4f2519(-_0x461fb6._0x4851f5,_0x461fb6._0x14c058)]=Date['now']();}),_0x470017[_0x45b8da(0x135,-0x64)](_0x45b8da(-0x9b,-0x11c),_0x121b37=>{const _0x554ab3={_0x157ef2:0x30f};function _0x990f9e(_0x2b2e8b,_0x550083){return _0x45b8da(_0x550083-_0x554ab3._0x157ef2,_0x2b2e8b);}this['log'](_0x990f9e(0x585,0x3df)+'ror:\x20'+String(_0x121b37));});function _0x45b8da(_0x47369f,_0x3a871a){return _0x6eb3(_0x3a871a,_0x47369f- -_0x56e583._0x33d280);}_0x470017[_0x557982(_0x497fb8._0x1df405,0x4b0)](_0x557982(0x460,0x36e),(_0x19547b,_0x4c9bd7)=>{const _0x4c8118={_0x1d9a4e:0x445},_0x5e31e0={_0x4cf546:0x17e};this[_0x3f589b(0x28f,0x94)+_0x3f589b(_0x52f2af._0x543199,_0x52f2af._0x5ac0a3)]===_0x470017&&(this[_0x3f589b(0x28f,0x324)+_0x56efdb(-_0x52f2af._0xc0ea0d,0x112)]=null);this[_0x3f589b(0x37e,_0x52f2af._0x3c7261)+_0x3f589b(0x1c1,0x1bb)]=![],this['stopHear'+_0x3f589b(_0x52f2af._0x460c00,0x281)](),this[_0x3f589b(0x4bb,0x57a)+_0x3f589b(0x2ff,_0x52f2af._0x491577)+_0x56efdb(-0x1f0,-0x218)]=null,this['gatewayC'+_0x56efdb(-0x386,-_0x52f2af._0x1391eb)+_0x3f589b(_0x52f2af._0x4dcd89,0x349)]=null,this[_0x3f589b(_0x52f2af._0x2d6491,_0x52f2af._0x2dc33)+_0x3f589b(0x463,0x5e4)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x88df78['BOAUR'](_0x19547b,0x3e8)?null:_0x56efdb(0xff,_0x52f2af._0x5a16a4)+_0x3f589b(_0x52f2af._0x1fe00c,_0x52f2af._0x4e253e)+(_0x4c9bd7[_0x3f589b(0x323,_0x52f2af._0x4860d1)]()||_0x19547b)});function _0x3f589b(_0x5e08a3,_0x5643db){return _0x557982(_0x5643db,_0x5e08a3- -_0x5e31e0._0x4cf546);}this[_0x56efdb(0x154,_0x52f2af._0x1a9b84)](_0x56efdb(-0x2c3,-_0x52f2af._0x350663)+'sconnect'+_0x56efdb(_0x52f2af._0x889cdb,_0x52f2af._0x5e4392)+_0x19547b+_0x56efdb(-0xe2,_0x52f2af._0x307ebb)+(_0x4c9bd7['toString']()||_0x88df78[_0x3f589b(_0x52f2af._0x4c706f,_0x52f2af._0x1c3d78)]));function _0x56efdb(_0x49987b,_0x2f0e56){return _0x557982(_0x49987b,_0x2f0e56- -_0x4c8118._0x1d9a4e);}this['closeGat'+_0x56efdb(0x18,_0x52f2af._0x3ebe22)](),this[_0x56efdb(_0x52f2af._0xeecbf2,0xbd)+'RelayRec'+'onnect']();});}async[_0x6eb3(0x1dd,0x282)+_0x6eb3(0xa5,-0xc9)+'ge'](_0x4cf695,_0x3371c5){const _0x371487={_0x43a05f:0x15c,_0x2322d4:0x21a,_0x3bc8de:0x1ef,_0x2e336c:0x118,_0x1a420d:0x1f5,_0x22251d:0x23f,_0x55acea:0x21b,_0x362a9a:0x2a,_0x4b840c:0x1d7,_0x3a7aa8:0x26d,_0x4a0ad1:0x2c5,_0x40e2f9:0x284,_0x171bcf:0x78,_0xd60bc0:0x103,_0x56d38f:0x169,_0x3a6506:0x40,_0x124f46:0x36,_0x57e1cd:0xc3},_0x5de644={_0x21e9fb:0x43},_0xcff6ca={'dXcpM':function(_0x22e392,_0x155bb4){return _0x22e392(_0x155bb4);}};this[_0x3283a3(0xcf,_0x371487._0x43a05f)+_0x5e5779(-0x22b,-0x76)+_0x5e5779(0x244,0x132)]=Date[_0x3283a3(_0x371487._0x2322d4,_0x371487._0x3bc8de)]();if(_0x3371c5){this[_0x3283a3(0x217,_0x371487._0x2e336c)+_0x3283a3(_0x371487._0x1a420d,0x21d)+_0x3283a3(_0x371487._0x22251d,_0x371487._0x55acea)+_0x5e5779(-0x243,-0x78)]({'kind':_0x3283a3(_0x371487._0x362a9a,0x9f),'data':normalizeBinary(_0x4cf695)});return;}const _0x187b0e=normalizeText(_0x4cf695);if(_0x187b0e==null)return;const _0x4b28d7=_0xcff6ca[_0x5e5779(0x232,_0x371487._0x4b840c)](parseControl,_0x187b0e);if(_0x4b28d7){this[_0x5e5779(_0x371487._0x3a7aa8,_0x371487._0x4a0ad1)+_0x5e5779(0x1e0,_0x371487._0x40e2f9)+'ol'](_0x4b28d7[_0x5e5779(0x5,-0x2b)],_0x4b28d7['count']);return;}function _0x3283a3(_0x32d5c6,_0x165a8c){return _0x6eb3(_0x32d5c6,_0x165a8c-0x19b);}const _0x6dd75e=parseConnectStartIdentity(_0x187b0e);_0x6dd75e&&this['observeC'+'onnectSt'+_0x3283a3(-0xe,0xa9)](_0x6dd75e['id'],_0x6dd75e[_0x5e5779(0x1ea,_0x371487._0x171bcf)]);const _0xd973f={};_0xd973f[_0x5e5779(0x2e1,0x20d)]=_0x3283a3(_0x371487._0xd60bc0,0x169);function _0x5e5779(_0xf38620,_0x27c798){return _0x6eb3(_0xf38620,_0x27c798-_0x5de644._0x21e9fb);}_0xd973f[_0x3283a3(-0x8e,_0x371487._0x56d38f)]=_0x187b0e,this[_0x5e5779(-0x15b,-_0x371487._0x3a6506)+'rQueueGa'+_0x5e5779(_0x371487._0x124f46,_0x371487._0x57e1cd)+'sage'](_0xd973f);}['handleRe'+'layContr'+'ol'](_0x4eadcb,_0x18feb1){const _0x14f93e={_0x3edb51:0xe0,_0x8df858:0x1cc,_0x1ddf0c:0xd3,_0x25229e:0x60b,_0x1aaf9b:0x46d,_0x2f9c1f:0x3fe,_0x4eff2c:0x200,_0x3270fd:0x180,_0x46737f:0x552,_0x32be76:0x597,_0x30404e:0x40a,_0xdf08aa:0x532,_0x810d9c:0x441,_0x1e887f:0x50,_0x3ab9eb:0x6cb,_0x39ac9a:0x26b,_0x46d3b9:0x17b,_0x20545a:0x31e,_0x2f3cc6:0x175,_0x46313c:0x105,_0x2d3c5b:0xee,_0x3d5f2d:0x5ea,_0x6a680:0x231,_0x4fef12:0x4e6,_0x4a7cdb:0xa1,_0x450caa:0x2bc,_0x3fd9b2:0x272,_0x3a7d75:0x552,_0x325956:0x46e,_0x5b916e:0x288,_0x4d1b59:0x128,_0x56a807:0x3b0,_0x326283:0x92,_0xc2a2c2:0x1e1,_0x14f52c:0x63,_0x3deec1:0x6c5,_0x50ffcf:0x163,_0x1551f5:0x359,_0x2fcbef:0x123,_0xc96ca6:0x54f,_0x18be7b:0x746,_0x5c39d3:0x2c2,_0x55345a:0x4c7,_0x56bd3e:0x33b,_0x477999:0x18b,_0x142c81:0x416,_0x40a7e6:0x5d4,_0x466c9d:0x66f,_0x66e132:0x150,_0x36ec49:0x21d,_0x389e40:0x605,_0x2bad34:0x6ac,_0x2c7584:0x2cb,_0x3fe7e8:0x267,_0xedcd82:0x5f4,_0x5f2630:0x645,_0x568b93:0x31f,_0x4aa87e:0x5dc,_0x1998af:0x5b9,_0x5b6005:0x384,_0x59f90d:0x3e5,_0x5ca385:0x303,_0x5c5f12:0x1f4,_0x1d74dc:0x433,_0x12274f:0x3d8,_0xaceaaa:0x255,_0x10efa4:0x77,_0x148da4:0x63d,_0x54e117:0x1e5,_0x39f6bc:0x254,_0x3930cd:0x1bf,_0x3577d3:0x194,_0x30b026:0x32c,_0x1e580b:0x6d3,_0x2a8b2d:0x35a,_0x51a357:0x52,_0x1d96a1:0x1fa,_0x1420c3:0x506,_0x186d02:0x1b2,_0x42cd9a:0x199,_0x5c6a29:0x8b,_0x1ae086:0x55,_0x348d08:0x2df,_0x1f86ae:0x572,_0x94d98b:0x3e4,_0xa1d098:0x260,_0xe248af:0xe4,_0x18f486:0x270,_0x89b5a6:0x6c,_0x20ddb6:0x193,_0x23920:0x37e,_0x29222d:0x1cb,_0x4ac686:0x179,_0x851dbe:0xf,_0x24f307:0x231,_0x435424:0x5bc,_0x27c5d2:0x422,_0x1fb7c0:0x132,_0x20ac6f:0x384,_0x33d43c:0x100},_0x4fdd1b={_0x236dbf:0xf5},_0x4043b0={'vqNDF':function(_0x51e201,_0x2fcf56){return _0x51e201===_0x2fcf56;},'yMfXs':_0x5bac0d(0x15b,_0x14f93e._0x3edb51)+_0x5bac0d(-0x12a,-_0x14f93e._0x8df858),'gBBlO':function(_0x70e350,_0x1ace3d){return _0x70e350==_0x1ace3d;},'RxvtL':function(_0x406088,_0x1001e3,_0x2d5163,_0xf4ee1d,_0x236f17){return _0x406088(_0x1001e3,_0x2d5163,_0xf4ee1d,_0x236f17);},'TprFP':'gateway\x20'+'recycle\x20'+_0x5bac0d(_0x14f93e._0x1ddf0c,-0xfb)+_0x17eda9(0x4a3,0x3da)+'esh\x20clie'+'nt\x20deman'+'d','PeZgI':'client_d'+_0x17eda9(_0x14f93e._0x25229e,_0x14f93e._0x1aaf9b)+'ted'};if(_0x4043b0[_0x17eda9(0x2f2,0x265)](_0x4eadcb,_0x4043b0[_0x5bac0d(-_0x14f93e._0x2f9c1f,-_0x14f93e._0x4eff2c)])||_0x4043b0[_0x5bac0d(-0x17f,-_0x14f93e._0x3270fd)](_0x4eadcb,_0x17eda9(_0x14f93e._0x46737f,_0x14f93e._0x32be76)+_0x17eda9(0x362,0x207))){const _0x1d4e43=this[_0x17eda9(0x427,0x61e)][_0x5bac0d(-_0x14f93e._0x30404e,-0x22b)+_0x17eda9(0x4c4,_0x14f93e._0xdf08aa)],_0x2dcbdf=_0x18feb1??Math[_0x17eda9(_0x14f93e._0x810d9c,0x617)](0x1,this[_0x5bac0d(_0x14f93e._0x1e887f,-0x4b)]['clientCo'+_0x17eda9(0x4c4,_0x14f93e._0x3ab9eb)]),_0x373847=Boolean(this['gatewayI'+_0x5bac0d(-_0x14f93e._0x39ac9a,-_0x14f93e._0x46d3b9)+_0x17eda9(_0x14f93e._0x20545a,_0x14f93e._0x2f3cc6)]);_0x2dcbdf>0x0&&_0x4043b0[_0x5bac0d(-_0x14f93e._0x46313c,_0x14f93e._0x2d3c5b)](this['clientDe'+_0x17eda9(0x481,_0x14f93e._0x3d5f2d)+_0x17eda9(_0x14f93e._0x6a680,0x10a)],null)&&(this[_0x17eda9(0x63d,_0x14f93e._0x4fef12)+_0x5bac0d(_0x14f93e._0x4a7cdb,0xf)+_0x5bac0d(-0x3f5,-0x241)]=Date[_0x17eda9(0x3d1,0x316)]());const _0x2d3ff3={};_0x2d3ff3['clientCo'+'unt']=_0x2dcbdf,this['updateSn'+_0x17eda9(0x5e5,0x698)](_0x2d3ff3);if(_0x2dcbdf===0x0)this[_0x5bac0d(_0x14f93e._0x450caa,0x144)+_0x5bac0d(0x26,0x1e)+'t'](),this[_0x5bac0d(0x269,0x94)+'GatewayI'+_0x5bac0d(-_0x14f93e._0x3fd9b2,-_0x14f93e._0x46d3b9)](_0x17eda9(_0x14f93e._0x3a7d75,_0x14f93e._0x325956)+_0x17eda9(0x595,0x6ff)+'o');else{this['cancelGa'+_0x17eda9(_0x14f93e._0x5b916e,0x131)+'eClose'](_0x5bac0d(-0xbd,_0x14f93e._0x4d1b59)+_0x17eda9(0x5a4,_0x14f93e._0x56a807)+_0x17eda9(0x4e7,0x43e));_0x4043b0[_0x5bac0d(-_0x14f93e._0x326283,-_0x14f93e._0xc2a2c2)](shouldRecycleGatewayForFreshClient,_0x1d4e43,_0x2dcbdf,this[_0x5bac0d(-0x80,_0x14f93e._0x14f52c)+_0x17eda9(0x54f,_0x14f93e._0x3deec1)](),_0x373847)&&(this[_0x5bac0d(-_0x14f93e._0x50ffcf,0x55)](_0x4043b0[_0x5bac0d(-0x2a4,-0x1c8)]),this[_0x17eda9(_0x14f93e._0x1551f5,0x2a4)+_0x17eda9(0x47d,0x680)]());if(this[_0x5bac0d(-_0x14f93e._0x2fcbef,_0x14f93e._0x14f52c)+_0x17eda9(_0x14f93e._0xc96ca6,_0x14f93e._0x18be7b)]()){const _0xb0baca={};_0xb0baca[_0x5bac0d(0x1e,0x18c)+_0x5bac0d(-0x96,-_0x14f93e._0x8df858)]=!![],_0xb0baca['lastErro'+'r']=null,this['updateSn'+_0x5bac0d(_0x14f93e._0x5c39d3,0x173)](_0xb0baca),this[_0x17eda9(_0x14f93e._0x55345a,_0x14f93e._0x56bd3e)](_0x5bac0d(-_0x14f93e._0x477999,-0x2f)+_0x17eda9(_0x14f93e._0x142c81,0x21f)+'en\x20since'+_0x17eda9(0x338,0x2b8)+_0x17eda9(_0x14f93e._0x40a7e6,_0x14f93e._0x466c9d)+this[_0x5bac0d(-_0x14f93e._0x66e132,-_0x14f93e._0x36ec49)+_0x17eda9(_0x14f93e._0x389e40,_0x14f93e._0x2bad34)](this['gatewayC'+'onnected'+_0x17eda9(0x320,_0x14f93e._0x2c7584)])+(_0x5bac0d(-0x106,-0x19)+_0x17eda9(_0x14f93e._0x3fe7e8,0x3c1)+'d=')+this[_0x17eda9(_0x14f93e._0xedcd82,_0x14f93e._0x5f2630)+'andshake'+_0x17eda9(0x3c3,_0x14f93e._0x568b93)]);}this[_0x17eda9(0x5dd,_0x14f93e._0x4aa87e)+_0x17eda9(_0x14f93e._0x1998af,0x60d)+_0x17eda9(0x26f,_0x14f93e._0x5b6005)]();}this[_0x17eda9(_0x14f93e._0x55345a,0x45b)](_0x17eda9(_0x14f93e._0x59f90d,0x3e1)+'ntrol\x20ev'+_0x17eda9(0x391,_0x14f93e._0x5ca385)+_0x4eadcb+_0x17eda9(0x239,_0x14f93e._0x5c5f12)+_0x2dcbdf+(_0x17eda9(0x5ca,_0x14f93e._0x1d74dc)+_0x17eda9(_0x14f93e._0x12274f,0x4af)+_0x17eda9(0x38b,0x4c1))+this[_0x17eda9(_0x14f93e._0xaceaaa,0x336)+_0x5bac0d(_0x14f93e._0x10efa4,0x193)](this[_0x17eda9(_0x14f93e._0x148da4,0x4e4)+_0x5bac0d(_0x14f93e._0x54e117,0xf)+_0x17eda9(0x231,0x9b)])+_0x17eda9(_0x14f93e._0x39f6bc,0x153)+this['pendingG'+_0x5bac0d(0x1df,_0x14f93e._0x3930cd)+'ssages'][_0x5bac0d(_0x14f93e._0x3577d3,-0x4e)]);return;}if(_0x4eadcb===_0x4043b0[_0x17eda9(_0x14f93e._0x30b026,0x177)]){this[_0x17eda9(_0x14f93e._0xedcd82,_0x14f93e._0x1e580b)+'andshake'+_0x17eda9(0x3c3,_0x14f93e._0x2a8b2d)]=![];const _0x3ede11={};_0x3ede11[_0x5bac0d(-0x396,-0x22b)+_0x5bac0d(-0x141,_0x14f93e._0x51a357)]=0x0,this['updateSn'+_0x5bac0d(_0x14f93e._0x1d96a1,0x173)](_0x3ede11),this[_0x5bac0d(0x45,0x144)+'cesRecen'+'t'](),this[_0x17eda9(_0x14f93e._0x1420c3,0x538)+'GatewayI'+_0x17eda9(0x2f7,_0x14f93e._0x186d02)](_0x17eda9(0x59a,0x6bf)+_0x5bac0d(0xb1,_0x14f93e._0x42cd9a)+_0x5bac0d(0xce,0xbc)),this[_0x5bac0d(-_0x14f93e._0x5c6a29,_0x14f93e._0x1ae086)](_0x17eda9(_0x14f93e._0x59f90d,_0x14f93e._0x348d08)+_0x17eda9(_0x14f93e._0x1f86ae,_0x14f93e._0x94d98b)+_0x5bac0d(-0x218,-0x126)+_0x17eda9(0x322,0x2d2)+_0x5bac0d(-_0x14f93e._0xa1d098,-0x17a)+_0x17eda9(0x2eb,_0x14f93e._0xe248af)+_0x5bac0d(_0x14f93e._0x18f486,0x13f)+_0x5bac0d(-0x2,-0x1f3)+this[_0x17eda9(0x255,0xa3)+_0x5bac0d(-_0x14f93e._0x89b5a6,_0x14f93e._0x20ddb6)](this[_0x5bac0d(_0x14f93e._0x23920,_0x14f93e._0x29222d)+_0x5bac0d(-_0x14f93e._0x4ac686,_0x14f93e._0x851dbe)+_0x17eda9(_0x14f93e._0x24f307,0x2d9)])+('\x20sinceGa'+_0x17eda9(0x46d,_0x14f93e._0x435424)+_0x17eda9(0x34e,0x2c8))+this[_0x5bac0d(-0x209,-_0x14f93e._0x36ec49)+_0x17eda9(0x605,0x47f)](this[_0x17eda9(0x5fe,0x6cc)+_0x17eda9(0x2a6,_0x14f93e._0x27c5d2)+'AtMs']));return;}function _0x17eda9(_0x21e0b0,_0x1db556){return _0x6eb3(_0x1db556,_0x21e0b0-0x37d);}function _0x5bac0d(_0x45cee8,_0x3e65db){return _0x6eb3(_0x45cee8,_0x3e65db- -_0x4fdd1b._0x236dbf);}this[_0x5bac0d(_0x14f93e._0x1fb7c0,0x55)](_0x17eda9(0x3e5,_0x14f93e._0x20ac6f)+_0x5bac0d(0x1c0,_0x14f93e._0x33d43c)+'ent='+_0x4eadcb);}[_0x11b7ab(-0x1ea,-0x41)+_0x11b7ab(0x1f0,0xc4)+_0x11b7ab(-0x104,0xc2)+'sage'](_0x200f81){const _0x4923b4={_0x93c8bd:0x5d1,_0x694c18:0x8ef,_0xebb851:0x417,_0x3f2fb8:0x3d5,_0x5e1223:0x8c4,_0x493353:0x4cc,_0x3e663c:0x723,_0x343581:0x4bc,_0x262935:0x49c,_0x4b5b1a:0x847,_0x4b35dd:0x6ba,_0x70f20c:0x64d,_0x2c41c1:0x439,_0x1307cf:0x2e5,_0x2e93e7:0x78b,_0x52dc0f:0x5f9,_0x2a7a31:0x4ae,_0x28a887:0x57f,_0x5dfb2b:0x7f9,_0x58e25c:0x667,_0x4d1d12:0x643,_0x3b330b:0x5c6,_0x251106:0x642,_0x10bc85:0x7f2,_0x1f7267:0x375,_0x5b91c9:0x3ce,_0x41ff60:0x7e5,_0x461363:0x74b,_0x1450ae:0x306,_0x1d9fe9:0x338,_0x571ca6:0x515,_0x494f03:0x6fe,_0x4ef292:0x512,_0x53fdb6:0x671,_0x326e28:0x630,_0x585241:0x3de,_0x1efac1:0x46d,_0x62a9ad:0x838,_0xf7fece:0x3ec,_0x4cb948:0x3a4,_0x1b5864:0x82f,_0x3a2d51:0x668,_0x5755a6:0x781,_0x337b94:0x5fe,_0x4e9f78:0x8cf,_0x396c4e:0x691,_0x4c7580:0x7b3,_0x59d62d:0x532,_0x1bdf23:0x62d},_0x27c63a={_0x3d6d07:0x3c5};function _0x275497(_0x226ad9,_0x1bf41e){return _0x11b7ab(_0x226ad9,_0x1bf41e-0x576);}const _0x5ed001={'jpbGv':function(_0x2f0ae1,_0x3a406f,_0x56d2e0){return _0x2f0ae1(_0x3a406f,_0x56d2e0);},'aDLMi':function(_0x4b5e58,_0x299441){return _0x4b5e58(_0x299441);}},_0xccf874=_0x200f81[_0x526339(0x74a,_0x4923b4._0x93c8bd)]===_0x526339(0x470,0x3d5)&&isConnectHandshakeRequest(_0x200f81[_0x275497(0x3ca,0x586)]);if(_0x200f81[_0x275497(_0x4923b4._0x694c18,0x782)]===_0x526339(0x599,0x3d5)){const _0x41c125=summarizeJsonFrame(_0x200f81[_0x526339(_0x4923b4._0xebb851,_0x4923b4._0x3f2fb8)]);_0x41c125&&this[_0x275497(_0x4923b4._0x5e1223,0x702)](_0x526339(0x37a,_0x4923b4._0x493353)+_0x275497(0x88f,_0x4923b4._0x3e663c)+_0x41c125+('\x20handsha'+_0x526339(_0x4923b4._0x343581,_0x4923b4._0x262935))+_0xccf874+('\x20gateway'+_0x275497(_0x4923b4._0x4b5b1a,_0x4923b4._0x4b35dd))+this['isGatewa'+_0x526339(_0x4923b4._0x70f20c,0x5d9)]()+_0x526339(_0x4923b4._0x2c41c1,0x2de)+this[_0x275497(_0x4923b4._0x1307cf,0x488)+_0x275497(_0x4923b4._0x2e93e7,0x86c)+_0x526339(0x42a,_0x4923b4._0x52dc0f)][_0x526339(0x60d,_0x4923b4._0x2a7a31)]);}const _0x1e410e=this[_0x526339(0x180,0x2bf)+'ocket'];if(!_0x1e410e||_0x1e410e[_0x275497(0x6d0,_0x4923b4._0x28a887)+'te']!==_0x17e531[_0x526339(0x592,0x556)]){this[_0x526339(_0x4923b4._0x5dfb2b,_0x4923b4._0x58e25c)+_0x526339(0x7c2,_0x4923b4._0x4d1d12)+_0x526339(0x1b3,0x2f9)]();if(_0x5ed001[_0x526339(0x781,_0x4923b4._0x3b330b)](shouldDropStaleConnectAfterGatewayReopen,_0x5ed001[_0x275497(_0x4923b4._0x251106,_0x4923b4._0x10bc85)](Boolean,_0x1e410e&&_0x1e410e[_0x526339(_0x4923b4._0x1f7267,_0x4923b4._0x5b91c9)+'te']===_0x17e531['OPEN']),_0xccf874)){this[_0x275497(0x636,0x702)]('stale\x20co'+_0x275497(_0x4923b4._0x41ff60,_0x4923b4._0x461363)+_0x526339(_0x4923b4._0x1450ae,_0x4923b4._0x1d9fe9)+'ter\x20gate'+_0x275497(0x331,_0x4923b4._0x571ca6)+_0x526339(0x61a,0x601)+_0x526339(_0x4923b4._0x494f03,_0x4923b4._0x4ef292)+_0x526339(0x63f,_0x4923b4._0x53fdb6)+_0x526339(0x6b8,_0x4923b4._0x326e28));return;}this[_0x275497(_0x4923b4._0x585241,0x59c)+_0x275497(0x4a2,_0x4923b4._0x1efac1)+_0x526339(0x3e9,0x3a4)+'e'](_0x200f81);return;}if(!this[_0x526339(_0x4923b4._0x62a9ad,0x67e)+_0x275497(0x6e9,0x513)+_0x275497(0x71e,0x5fe)]){if(!_0xccf874){this[_0x526339(_0x4923b4._0xf7fece,0x3eb)+'ingGatew'+_0x526339(0x3db,_0x4923b4._0x4cb948)+'e'](_0x200f81);return;}this[_0x275497(0x633,_0x4923b4._0x1b5864)+_0x275497(_0x4923b4._0x3a2d51,0x513)+_0x275497(_0x4923b4._0x5755a6,_0x4923b4._0x337b94)]=!![],this[_0x275497(_0x4923b4._0x4e9f78,0x702)](_0x275497(_0x4923b4._0x396c4e,0x67e)+_0x275497(0x5ea,0x790)+'e\x20starte'+_0x275497(0x687,_0x4923b4._0x4c7580)+'='+this[_0x275497(_0x4923b4._0x59d62d,0x488)+'atewayMe'+_0x526339(_0x4923b4._0x1bdf23,0x5f9)]['length']);}function _0x526339(_0x85ad8b,_0x2c8242){return _0x11b7ab(_0x85ad8b,_0x2c8242-_0x27c63a._0x3d6d07);}this[_0x526339(0x4c7,0x5e9)+_0x526339(0x532,0x5ec)](_0x200f81);}[_0x11b7ab(0x31d,0x2a2)+_0x6eb3(0x3a7,0x23c)+'nected'](){const _0xeee769={_0x12a3c1:0x31c,_0x32e8ba:0x2a1,_0x46e46e:0x856,_0x5bf7e0:0x244,_0x181af9:0x33e,_0x5d105a:0x457,_0x51f719:0xdc,_0xbc239e:0x232,_0x293761:0x743,_0x22c8e3:0x6c8,_0x534f64:0xbb,_0x13c1c7:0x576,_0x4cea01:0x3da,_0x22688e:0x62,_0x39d720:0x21c,_0x48027b:0x3a3,_0x3bc78c:0x39c,_0x59e0f9:0x3fa,_0x56c8e4:0x3b1,_0x4ae1a1:0x39c,_0x3bb451:0x289,_0x550aa3:0x2a2,_0x565a6a:0x2d6,_0x3f2983:0x149,_0x271673:0x150,_0x2a636e:0xe0,_0x29a903:0x80,_0x21b36f:0x14b,_0x4d12fc:0x5e7,_0x3d8e5b:0x563},_0x556fea={_0x2877a1:0x237,_0x1dd640:0x527,_0x2bfa10:0x304,_0x4c5eaa:0x35d,_0x2020fa:0x12b,_0x12b941:0x12c,_0x1aae4a:0x2c5,_0x38e4f4:0x1fb,_0x3e1b40:0x15e,_0x3b3ae5:0x2e,_0x3cb8d5:0x4db,_0x432b23:0x36f,_0x2fe010:0x24,_0x3dcae5:0x40,_0xcacc59:0x2f5,_0x169271:0x1c8,_0x294ea2:0x6d,_0x871a15:0xb0,_0x2297e0:0x333,_0xf25b3:0x2b,_0x57d903:0x1dd,_0x44df21:0x1ea,_0x509150:0x26c,_0x1d6a01:0x2e4,_0x4f815a:0x26f,_0x23f19a:0x5b,_0xbdd6d1:0x2d},_0x1c431e={_0x82a8c0:0xcd},_0x3910c8={_0x2af393:0x42c},_0xd4e262={_0x1e6683:0x591,_0x472f77:0xe0,_0x5b2cb1:0x9b},_0x55dc3e={_0x53f050:0x1f3,_0xe8c558:0x425},_0x66f3c3={_0x3bacd4:0x673,_0x25f72c:0x57a,_0x1270f3:0x67d,_0x1fd184:0xef,_0x1d6a30:0x602,_0x1f98db:0x3f4,_0x4231bf:0x232,_0x261d45:0x71,_0x3969db:0x193,_0x549612:0x408,_0x189255:0x486,_0x337c8f:0x4b2,_0xa963a2:0x9e,_0x2a4ffc:0x8a,_0x2a872b:0xcb,_0x3fc9bf:0x3d0,_0x3c8280:0x669,_0x337405:0x2c0,_0x29706e:0x74e,_0x79a63f:0x615,_0x52f6f6:0x318},_0x5d270d={_0x3e1954:0x40f};function _0x10599e(_0x3a09b4,_0x525377){return _0x6eb3(_0x525377,_0x3a09b4-0x19);}const _0x28cb08={'oskFP':function(_0x296eaf,_0x2ffc57){return _0x296eaf(_0x2ffc57);},'lWXWM':function(_0x5ed097,_0x3ad5e7){return _0x5ed097===_0x3ad5e7;},'OPOww':function(_0x4bb8bd,_0x5a236a){return _0x4bb8bd*_0x5a236a;},'Nheau':_0x6fc4ff(0x22d,_0xeee769._0x12a3c1),'OYbaA':'close'};if(this[_0x6fc4ff(0x74a,0x5e6)]||!this[_0x10599e(0x21,-0x15a)+_0x10599e(0x284,_0xeee769._0x32e8ba)]()||this[_0x6fc4ff(_0xeee769._0x46e46e,0x6ad)+'onnectin'+'g']||this[_0x6fc4ff(0x561,0x584)+_0x10599e(0x1eb,_0xeee769._0x5bf7e0)]()||!this[_0x6fc4ff(_0xeee769._0x181af9,0x483)+_0x6fc4ff(0x6a6,0x513)]())return;this[_0x6fc4ff(0x2c3,_0xeee769._0x5d105a)+_0x10599e(-_0xeee769._0x51f719,-_0xeee769._0xbc239e)+_0x6fc4ff(_0xeee769._0x293761,_0xeee769._0x22c8e3)](_0x10599e(-_0xeee769._0x534f64,-0x1d6)+_0x10599e(0x274,0x17f)+'t_reques'+_0x10599e(0x1ca,-0xe)),this['gatewayC'+'onnectin'+'g']=!![],this[_0x6fc4ff(0x681,_0xeee769._0x13c1c7)](_0x6fc4ff(_0xeee769._0x4cea01,0x4f2)+_0x6fc4ff(0x612,0x51d)+'start\x20ur'+'l='+this[_0x10599e(-_0xeee769._0x22688e,-_0xeee769._0x39d720)][_0x6fc4ff(_0xeee769._0x48027b,_0xeee769._0x3bc78c)+'rl']);const _0x211b66=new _0x17e531(this[_0x6fc4ff(_0xeee769._0x59e0f9,_0xeee769._0x56c8e4)][_0x6fc4ff(0x49d,_0xeee769._0x4ae1a1)+'rl'],{'maxPayload':_0x28cb08[_0x10599e(-0x87,-_0xeee769._0x3bb451)](0x19,0x400)*0x400});this[_0x6fc4ff(_0xeee769._0x550aa3,0x2e4)+_0x10599e(_0xeee769._0x565a6a,0x138)]=_0x211b66,_0x211b66['once'](_0x28cb08[_0x10599e(_0xeee769._0x3f2983,0x2)],()=>{if(this[_0xc3cb99(_0x66f3c3._0x3bacd4,_0x66f3c3._0x25f72c)]||this['gatewayS'+_0xc3cb99(0x75c,_0x66f3c3._0x1270f3)]!==_0x211b66){_0x211b66[_0x4ff91d(0x12,_0x66f3c3._0x1fd184)]();return;}this['gatewayC'+'onnectin'+'g']=![],this[_0xc3cb99(_0x66f3c3._0x1d6a30,0x637)+'andshake'+_0xc3cb99(_0x66f3c3._0x1f98db,0x406)]=![],this[_0xc3cb99(0x4fc,0x641)+'onnected'+_0x4ff91d(-0x40,-_0x66f3c3._0x4231bf)]=Date[_0x4ff91d(_0x66f3c3._0x261d45,0x1c7)]();const _0xd2f8e3={};_0xd2f8e3[_0x4ff91d(0x29e,0x171)+_0xc3cb99(0x222,0x2e9)]=!![],_0xd2f8e3[_0x4ff91d(0x6,-_0x66f3c3._0x3969db)+'r']=null;function _0xc3cb99(_0x544e2b,_0xd86e58){return _0x6fc4ff(_0x544e2b,_0xd86e58- -0x6c);}this['updateSn'+_0x4ff91d(0x285,0x351)](_0xd2f8e3);function _0x4ff91d(_0x455475,_0x4c6a2a){return _0x6fc4ff(_0x4c6a2a,_0x455475- -_0x5d270d._0x3e1954);}this[_0xc3cb99(0x342,0x50a)](_0xc3cb99(_0x66f3c3._0x549612,_0x66f3c3._0x189255)+_0xc3cb99(0x50b,_0x66f3c3._0x337c8f)+_0x4ff91d(_0x66f3c3._0xa963a2,-_0x66f3c3._0x2a4ffc)+_0x4ff91d(0x241,_0x66f3c3._0x2a872b)+'andMs='+this['elapsedS'+_0x4ff91d(0x2a5,_0x66f3c3._0x3fc9bf)](this[_0xc3cb99(_0x66f3c3._0x3c8280,0x680)+_0x4ff91d(0x121,_0x66f3c3._0x337405)+_0xc3cb99(0x23d,0x274)])),this[_0xc3cb99(_0x66f3c3._0x29706e,_0x66f3c3._0x79a63f)+'dingGate'+_0xc3cb99(0x395,0x4c6)+_0xc3cb99(_0x66f3c3._0x52f6f6,0x3bb)]();}),_0x211b66['on'](_0x10599e(0x8b,-0x53),(_0x5e496c,_0x46bf3e)=>{const _0x1bbce4={_0x2910c9:0xb4};function _0x43a8e4(_0x3e4703,_0x3b8ddf){return _0x6fc4ff(_0x3e4703,_0x3b8ddf-_0x1bbce4._0x2910c9);}function _0x1fa475(_0x19912c,_0x431990){return _0x6fc4ff(_0x431990,_0x19912c- -0x2b9);}this['handleGa'+_0x1fa475(_0x55dc3e._0x53f050,0x1fe)+_0x43a8e4(0x567,_0x55dc3e._0xe8c558)](_0x5e496c,_0x46bf3e);}),_0x211b66[_0x10599e(_0xeee769._0x271673,_0xeee769._0x2a636e)](_0x10599e(-_0xeee769._0x29a903,-_0xeee769._0x21b36f),_0x6ce3ab=>{const _0x20bee8={_0x3470a2:0x8};function _0x51a673(_0x5cfd8c,_0x30f2bf){return _0x6fc4ff(_0x30f2bf,_0x5cfd8c-_0x20bee8._0x3470a2);}function _0x377200(_0x494559,_0x2baeed){return _0x6fc4ff(_0x2baeed,_0x494559- -0x48a);}this['log'](_0x51a673(0x4fa,_0xd4e262._0x1e6683)+_0x377200(-_0xd4e262._0x472f77,-0xbd)+_0x28cb08[_0x377200(-_0xd4e262._0x5b2cb1,-0x11e)](String,_0x6ce3ab));});function _0x6fc4ff(_0x4f06c5,_0x58bca1){return _0x6eb3(_0x4f06c5,_0x58bca1-_0x3910c8._0x2af393);}_0x211b66[_0x6fc4ff(_0xeee769._0x4d12fc,_0xeee769._0x3d8e5b)](_0x28cb08['OYbaA'],(_0x2391d1,_0x3aa962)=>{const _0x5d8f3e={_0x402c9b:0x9f};this[_0x898d78(0x132,-0x62)+_0x3d99d9(0x236,_0x556fea._0x2877a1)]===_0x211b66&&(this[_0x898d78(0xc4,-0x62)+_0x898d78(_0x556fea._0x1dd640,0x3a3)]=null);this[_0x3d99d9(_0x556fea._0x2bfa10,0x1fb)+'onnectin'+'g']=![];function _0x898d78(_0x3c6081,_0x48222b){return _0x10599e(_0x48222b-_0x1c431e._0x82a8c0,_0x3c6081);}function _0x3d99d9(_0x4f0476,_0x3e1887){return _0x10599e(_0x3e1887- -_0x5d8f3e._0x402c9b,_0x4f0476);}this[_0x898d78(0x25f,_0x556fea._0x4c5eaa)+_0x3d99d9(0x4b,-_0x556fea._0x2020fa)+_0x898d78(-0x1c,_0x556fea._0x12b941)]=![],this[_0x3d99d9(_0x556fea._0x1aae4a,_0x556fea._0x38e4f4)+_0x3d99d9(-0xfe,-0x15d)+_0x898d78(_0x556fea._0x3e1b40,0x89)]=null,this[_0x3d99d9(-0xc0,-_0x556fea._0x3b3ae5)+'apshot']({'gatewayConnected':![],'lastError':_0x28cb08[_0x898d78(_0x556fea._0x3cb8d5,_0x556fea._0x432b23)](_0x2391d1,0x3e8)?this[_0x3d99d9(-0x41,_0x556fea._0x2fe010)]['lastErro'+'r']:_0x3d99d9(-0xeb,_0x556fea._0x3dcae5)+_0x3d99d9(_0x556fea._0xcacc59,_0x556fea._0x169271)+(_0x3aa962[_0x898d78(0x3be,0x20e)]()||_0x2391d1)}),this['log'](_0x3d99d9(-0x174,0x40)+_0x3d99d9(0x315,0x23d)+_0x898d78(-_0x556fea._0x294ea2,_0x556fea._0x871a15)+'e='+_0x2391d1+'\x20reason='+(_0x3aa962['toString']()||_0x3d99d9(0x15b,0x5c))+(_0x898d78(0x3e5,_0x556fea._0x2297e0)+_0x3d99d9(-0x149,-_0x556fea._0xf25b3)+_0x3d99d9(-_0x556fea._0x57d903,-0x78))+this['elapsedS'+'ince'](this['clientDe'+_0x898d78(0x3af,_0x556fea._0x44df21)+_0x3d99d9(-_0x556fea._0x509150,-0x1d2)])),this[_0x898d78(_0x556fea._0x1d6a01,_0x556fea._0x4f815a)+_0x3d99d9(-_0x556fea._0x23f19a,_0x556fea._0xbdd6d1)+'econnect']();});}[_0x6eb3(0x140,-0xa2)+_0x6eb3(0x1ee,0x80)+_0x11b7ab(-0xcf,-0x79)](_0x160712,_0x38b3bc){const _0x432fcb={_0x50a29c:0xf1,_0x34ed0a:0x190,_0x34c988:0x3df,_0x549615:0x2ac,_0x4526db:0x190,_0xdfbb55:0x139,_0x482ca3:0x185,_0x2a8a3e:0x411,_0x1d3b9d:0x342,_0x482618:0x129,_0x2ed255:0xdc,_0x233833:0x1fd,_0x129398:0x9,_0x5cfa2d:0x5a,_0x4717f2:0x1ae,_0x146ad3:0x153,_0x17532a:0x6f,_0x3c8dd4:0x160,_0x514535:0x1b4,_0x1a1861:0x2c},_0x2a8418={_0x5d8038:0x138},_0x2edb39={};_0x2edb39[_0x39fda4(-_0x432fcb._0x50a29c,-_0x432fcb._0x34ed0a)]=function(_0x4b38a9,_0x395b51){return _0x4b38a9!==_0x395b51;};const _0x3f47e0=_0x2edb39,_0x16f180=this['relaySoc'+_0x396475(_0x432fcb._0x34c988,_0x432fcb._0x549615)];function _0x396475(_0x5924d5,_0x4b6ee1){return _0x11b7ab(_0x5924d5,_0x4b6ee1-0x8c);}if(!_0x16f180||_0x3f47e0[_0x39fda4(-0x114,-_0x432fcb._0x4526db)](_0x16f180[_0x396475(-_0x432fcb._0xdfbb55,0x95)+'te'],_0x17e531[_0x39fda4(0x1ec,0x59)]))return;if(_0x38b3bc){_0x16f180[_0x39fda4(0x183,_0x432fcb._0x482ca3)](normalizeBinary(_0x160712));return;}const _0x33639e=normalizeText(_0x160712);if(_0x33639e==null)return;const _0x4b4160=summarizeJsonFrame(_0x33639e);_0x4b4160&&this['log']('gateway\x20'+_0x396475(_0x432fcb._0x2a8a3e,_0x432fcb._0x1d3b9d)+_0x4b4160+(_0x396475(0x4ec,0x31b)+_0x396475(0x158,_0x432fcb._0x482618)+_0x396475(0x2e5,_0x432fcb._0x2ed255))+this[_0x39fda4(-0x3c4,-0x21e)+_0x39fda4(-0x16,0x192)](this[_0x396475(0x1f1,0x38e)+'mandStar'+'tedAtMs'])+('\x20sinceGa'+_0x396475(_0x432fcb._0x233833,0x1be)+'nMs=')+this[_0x396475(_0x432fcb._0x129398,-_0x432fcb._0x5cfa2d)+_0x39fda4(0x395,0x192)](this['gatewayC'+_0x396475(-0xab,-_0x432fcb._0x129398)+_0x39fda4(-_0x432fcb._0x4717f2,-_0x432fcb._0x146ad3)]));const _0x132b06=parsePairingRequestFromError(_0x33639e);_0x132b06&&this['addPendi'+_0x396475(_0x432fcb._0x17532a,0x90)+'quest'](_0x132b06);const _0x33e1cb=parsePairResolvedEvent(_0x33639e);function _0x39fda4(_0x40fe6d,_0x5cb482){return _0x11b7ab(_0x40fe6d,_0x5cb482- -_0x2a8418._0x5d8038);}_0x33e1cb&&this[_0x39fda4(_0x432fcb._0x3c8dd4,-0xa7)+_0x396475(0x3ad,_0x432fcb._0x514535)+'esolved'](_0x33e1cb[_0x39fda4(_0x432fcb._0x1a1861,0x186)+'d'],_0x33e1cb[_0x39fda4(-0x13,-0x183)]),_0x16f180[_0x39fda4(0x221,_0x432fcb._0x482ca3)](_0x33639e);}[_0x6eb3(0x3b8,0x255)+_0x6eb3(-0x1e4,-0xdb)+_0x11b7ab(0x2e6,0x148)+_0x11b7ab(0x1e3,0x3d)](){const _0x54ac84={_0xe97d44:0x5ea,_0x38f574:0x6b8,_0x57b043:0x288,_0x4976f1:0x2cb,_0x4ed5f6:0x16a,_0x290bb4:0x35f,_0x6025a5:0x15a,_0x1766c1:0x3d3,_0x461d3f:0x6a4,_0x5efc7a:0x4a2,_0x5345ca:0x6,_0x174026:0x59d,_0x46a879:0x3c9,_0x4d8b9a:0x62b,_0x14435c:0x4b8,_0x37adea:0x2cd,_0x13524e:0xa2,_0x2a4f81:0x790,_0xc90f25:0x5ed},_0x593ca2={_0x12836d:0x3fb},_0x2e3409={_0x209d39:0xab},_0x3016e7={};_0x3016e7[_0x3c3497(0x698,_0x54ac84._0xe97d44)]=function(_0x22d9e3,_0x46c098){return _0x22d9e3!==_0x46c098;};const _0x52c179=_0x3016e7,_0x1fb4d0=this['gatewayS'+_0x3c3497(0x524,_0x54ac84._0x38f574)];if(!_0x1fb4d0||_0x1fb4d0[_0x3c3497(0x3d4,0x3c2)+'te']!==_0x17e531['OPEN'])return;const _0x1b1761=[],_0x5eb40d=[...this[_0x3c3497(_0x54ac84._0x57b043,_0x54ac84._0x4976f1)+_0x445c78(_0x54ac84._0x4ed5f6,_0x54ac84._0x290bb4)+'ssages']];this[_0x3c3497(_0x54ac84._0x6025a5,0x2cb)+'atewayMe'+_0x445c78(0x3cd,0x29d)]=[],this[_0x3c3497(_0x54ac84._0x1766c1,0x545)](_0x445c78(0x2dd,0x171)+_0x3c3497(_0x54ac84._0x461d3f,0x54f)+'eued='+_0x5eb40d[_0x3c3497(0x5b6,_0x54ac84._0x5efc7a)]);function _0x445c78(_0x2ef8a4,_0x1f246a){return _0x6eb3(_0x2ef8a4,_0x1f246a-_0x2e3409._0x209d39);}function _0x3c3497(_0x404caa,_0x3f6a95){return _0x6eb3(_0x404caa,_0x3f6a95-_0x593ca2._0x12836d);}for(const _0x55f24c of _0x5eb40d){if(!this['gatewayH'+_0x445c78(0x11,_0x54ac84._0x5345ca)+'Started']){if(_0x52c179[_0x3c3497(_0x54ac84._0x174026,0x5ea)](_0x55f24c['kind'],_0x3c3497(0x42d,_0x54ac84._0x46a879))||!isConnectHandshakeRequest(_0x55f24c['text'])){_0x1b1761[_0x3c3497(0x589,_0x54ac84._0x4d8b9a)](_0x55f24c);continue;}this[_0x3c3497(_0x54ac84._0x14435c,0x672)+'andshake'+'Started']=!![];}this[_0x445c78(0x308,0x28d)+_0x445c78(_0x54ac84._0x37adea,0x290)](_0x55f24c);}this[_0x445c78(_0x54ac84._0x13524e,-0x85)+_0x445c78(0x238,0x35f)+_0x3c3497(_0x54ac84._0x2a4f81,_0x54ac84._0xc90f25)]=_0x1b1761;}[_0x6eb3(0x196,0x1e2)+_0x11b7ab(0x1fa,0x227)](_0x45ccca){const _0x2c8fa5={_0x56cbc2:0x65,_0x118c04:0x75c,_0xcc2e20:0x569,_0xbdaa35:0x31e,_0x4c2ebc:0x319,_0x2ba18e:0x4a6,_0x3fded3:0x66e,_0x40838a:0x354,_0x1dc4fe:0x2f4,_0x5332ff:0x727,_0x5dfbf8:0x2cd,_0x571003:0x72b,_0x3f9b9d:0x738,_0x17992f:0x5a5},_0x146c78={_0x5bc76e:0x45d},_0x545068=this[_0x33c143(0x20f,_0x2c8fa5._0x56cbc2)+_0x250c05(_0x2c8fa5._0x118c04,_0x2c8fa5._0xcc2e20)];function _0x33c143(_0x1ab4a8,_0x126c7c){return _0x11b7ab(_0x126c7c,_0x1ab4a8-0x315);}function _0x250c05(_0x35f908,_0x3f6253){return _0x11b7ab(_0x3f6253,_0x35f908-_0x146c78._0x5bc76e);}if(!_0x545068||_0x545068[_0x33c143(_0x2c8fa5._0xbdaa35,_0x2c8fa5._0x4c2ebc)+'te']!==_0x17e531[_0x33c143(_0x2c8fa5._0x2ba18e,_0x2c8fa5._0x3fded3)]){this['pushPend'+_0x250c05(_0x2c8fa5._0x40838a,0x543)+_0x33c143(_0x2c8fa5._0x1dc4fe,0x14f)+'e'](_0x45ccca);return;}if(_0x45ccca[_0x250c05(0x669,_0x2c8fa5._0x5332ff)]===_0x33c143(0x325,_0x2c8fa5._0x5dfbf8)){_0x545068['send'](_0x45ccca['text']);return;}_0x545068[_0x250c05(0x71a,_0x2c8fa5._0x571003)](_0x45ccca[_0x250c05(_0x2c8fa5._0x3f9b9d,_0x2c8fa5._0x17992f)]);}[_0x6eb3(0x29a,0xbc)+_0x6eb3(0x367,0x280)+'st'](_0x5292bb,_0x117b3f){const _0x291094={_0x1166b7:0x217,_0x2e6986:0x2b5,_0x3a094a:0xee,_0x1a3070:0x64,_0x35336d:0x3b4,_0x3e9e04:0x68,_0x5ce3ac:0x14b,_0x5c9c73:0xd5,_0xddf867:0x26a,_0x4a52ec:0x217,_0x157e9f:0x12f},_0x265d48={_0x41483d:0x1ea},_0x2a5bc1={_0x1721fa:0x53},_0x3bcd5d={};function _0x117f91(_0x2a36ae,_0x5d1c40){return _0x6eb3(_0x5d1c40,_0x2a36ae-_0x2a5bc1._0x1721fa);}_0x3bcd5d['dSdIv']='text';const _0x210adf=_0x3bcd5d,_0x3b4aec=JSON[_0x117f91(_0x291094._0x1166b7,0x241)+'y']({'type':_0x3eefbd(0x101,_0x291094._0x2e6986),'id':_0x117f91(_0x291094._0x3a094a,-_0x291094._0x1a3070)+_0x2b14da(),'method':_0x5292bb,'params':_0x117b3f}),_0x2c7aca={};_0x2c7aca[_0x3eefbd(_0x291094._0x35336d,0x4f3)]=_0x210adf[_0x117f91(-0xb3,_0x291094._0x3e9e04)];function _0x3eefbd(_0x3b606e,_0xb7d95c){return _0x6eb3(_0xb7d95c,_0x3b606e-_0x265d48._0x41483d);}_0x2c7aca[_0x117f91(0x21,0x11f)]=_0x3b4aec,this[_0x117f91(-0x30,_0x291094._0x5ce3ac)+_0x117f91(_0x291094._0x5c9c73,0x9a)+_0x3eefbd(_0x291094._0xddf867,_0x291094._0x4a52ec)+_0x3eefbd(_0x291094._0x157e9f,0x3d)](_0x2c7aca);}[_0x6eb3(0x178,-0x24)+_0x11b7ab(0x152,0x142)](){const _0x43d684={_0x2622ff:0x188,_0x59df86:0x2fb,_0x393e5f:0x22a,_0x1a8346:0x230,_0x4c1ed7:0xc7,_0x3f5318:0x2f8,_0x2c1de7:0x22a,_0x506582:0x490,_0x3359a1:0x4fa,_0x23b09d:0x1e4,_0x5351b8:0x89,_0x480629:0x490,_0x5dc7dd:0x2fe,_0x4f6078:0x138,_0x2fafb4:0x1b2,_0x352a5b:0x2aa},_0x5d966a={_0x4e86f5:0x1cd};this['cancelGa'+_0x5e9556(-0x5c,-_0x43d684._0x2622ff)+'eClose']();function _0x5e9556(_0x1b4110,_0x3dc010){return _0x11b7ab(_0x1b4110,_0x3dc010- -0xd5);}this[_0x5e9556(-0x4,-0x1db)+_0x5e9556(_0x43d684._0x59df86,_0x43d684._0x393e5f)]?.[_0x9b2faf(0x204,_0x43d684._0x1a8346)](),this[_0x9b2faf(_0x43d684._0x4c1ed7,-0x83)+_0x5e9556(_0x43d684._0x3f5318,_0x43d684._0x2c1de7)]=null;function _0x9b2faf(_0x3cade2,_0x74b121){return _0x11b7ab(_0x74b121,_0x3cade2-_0x5d966a._0x4e86f5);}this[_0x9b2faf(_0x43d684._0x506582,_0x43d684._0x3359a1)+_0x9b2faf(0x159,0x7e)+'g']=![],this[_0x5e9556(0x1a5,_0x43d684._0x23b09d)+_0x5e9556(_0x43d684._0x5351b8,-0x138)+'Started']=![],this[_0x9b2faf(_0x43d684._0x480629,_0x43d684._0x5dc7dd)+_0x9b2faf(_0x43d684._0x4f6078,0x259)+_0x9b2faf(_0x43d684._0x2fafb4,_0x43d684._0x352a5b)]=null;}[_0x11b7ab(0x26,0x1cb)+'GatewayI'+'dleClose'](_0x3bcd0e){const _0x58eea8={_0x1db98c:0x4c7,_0xb22a9f:0x478,_0x11596e:0x42a,_0x2798ca:0x1e,_0x5ed31d:0x4f,_0x3c79b8:0x4ab,_0x27c0a9:0x3cb,_0x5a8ca7:0x30a,_0x3f0d4b:0x283,_0x276666:0x7e,_0x2b7452:0x26a,_0x52b980:0x173,_0x3c424d:0xda,_0x504064:0x3a4,_0x5e3c74:0x36,_0x30e57f:0x98,_0x4a33d3:0x6af,_0xec9903:0x4bc,_0x3d01aa:0x22d,_0x5aef15:0xa8,_0x50889e:0x15e,_0x49dd1d:0x3db,_0x39fc5b:0x3ef,_0x3d28d4:0x32e,_0x528c55:0x184,_0xd4f0cb:0x5b4,_0x4f7898:0x4a6,_0x45f3d2:0x97,_0x2e78ec:0xb4,_0x33a413:0x450,_0x1a1f41:0x2de,_0x465e69:0x5e3,_0x62613b:0x61,_0x2bf1d8:0x2f,_0x22528d:0x6a,_0x58810e:0x2dc,_0x384741:0x20a,_0xb53ae:0x1ec,_0x331fa0:0x373,_0x17f463:0x4df,_0x4ee157:0x454,_0x1cfb22:0x4ce,_0x2a3aa3:0x335,_0x29e2d8:0x65d,_0x53ec24:0x5ec,_0x5fed80:0x319,_0x2c5210:0x92,_0x58da23:0x3b,_0x19978f:0x395,_0x123aab:0x243,_0x358fac:0x2de},_0xf16e47={_0x54e64e:0x579,_0x3392e6:0x6b5,_0x12df6f:0x6b2,_0x3cff40:0x74a,_0x2a1f51:0x6a7,_0x679de:0x17a,_0x25b73d:0x1cb,_0x1870e9:0x26c,_0x503535:0x1b4,_0x55c5ca:0x365,_0x1f308f:0xc6,_0x828cd7:0x22b,_0x2ae4e7:0x3ca,_0x47fea9:0x3a4,_0x430bbf:0x15f,_0x1477db:0x6ba},_0x255f53={_0x2e06de:0x256},_0x3bcf87={_0x2f8942:0x98},_0x2d6171={'qElZB':_0x1c91c6(_0x58eea8._0x1db98c,_0x58eea8._0xb22a9f)+_0xaa3417(0x2a0,0x339),'MZpTn':_0x1c91c6(0x465,_0x58eea8._0x11596e)+'idle\x20clo'+_0xaa3417(-_0x58eea8._0x2798ca,_0x58eea8._0x5ed31d)+_0x1c91c6(_0x58eea8._0x3c79b8,_0x58eea8._0x27c0a9)+_0xaa3417(0x3f4,_0x58eea8._0x5a8ca7)+_0xaa3417(0xa4,_0x58eea8._0x3f0d4b)+_0xaa3417(0x1cc,_0x58eea8._0x276666)+'d','ZxKJs':function(_0x2f34bd,_0x3831f7){return _0x2f34bd(_0x3831f7);}};this[_0xaa3417(0x3a0,0x2cf)+'etryTime'+'r']&&(_0x2d6171['ZxKJs'](clearTimeout,this[_0xaa3417(_0x58eea8._0x2b7452,0x2cf)+_0xaa3417(_0x58eea8._0x52b980,_0x58eea8._0x3c424d)+'r']),this[_0xaa3417(0x307,0x2cf)+_0x1c91c6(_0x58eea8._0x504064,0x3a6)+'r']=null);function _0xaa3417(_0x31cdf6,_0x473327){return _0x6eb3(_0x31cdf6,_0x473327-_0x3bcf87._0x2f8942);}this[_0xaa3417(_0x58eea8._0x5e3c74,-_0x58eea8._0x30e57f)+'atewayMe'+_0x1c91c6(0x3b8,0x556)]=[];const _0x2d82e9={};_0x2d82e9[_0x1c91c6(0x2d8,0x22e)+'unt']=0x0,this[_0x1c91c6(0x3b2,0x3bc)+_0xaa3417(0x2c3,0x300)](_0x2d82e9);if(!this[_0x1c91c6(_0x58eea8._0x4a33d3,_0x58eea8._0xec9903)+_0xaa3417(_0x58eea8._0x3d01aa,0x26a)]()&&!this[_0xaa3417(0x2e2,0x319)+_0xaa3417(-_0x58eea8._0x5aef15,-0x1e)+'g']){this['log'](_0xaa3417(-0x4c,_0x58eea8._0x50889e)+_0x1c91c6(_0x58eea8._0x49dd1d,0x43d)+_0x1c91c6(_0x58eea8._0x39fc5b,0x46c)+_0xaa3417(_0x58eea8._0x3d28d4,_0x58eea8._0x528c55)+_0x1c91c6(_0x58eea8._0xd4f0cb,_0x58eea8._0x4f7898)+'n='+_0x3bcd0e),this['clientDe'+_0xaa3417(0x232,0x19c)+_0xaa3417(_0x58eea8._0x45f3d2,-_0x58eea8._0x2e78ec)]=null;return;}if(this[_0x1c91c6(_0x58eea8._0x33a413,0x50f)+_0x1c91c6(0x11a,_0x58eea8._0x1a1f41)+'Timer']){this['log'](_0x1c91c6(_0x58eea8._0x465e69,_0x58eea8._0x11596e)+_0xaa3417(-_0x58eea8._0x62613b,0xa7)+_0xaa3417(_0x58eea8._0x2bf1d8,-_0x58eea8._0x22528d)+_0xaa3417(0x186,0x2ff)+_0xaa3417(0x8e,0x176)+_0xaa3417(_0x58eea8._0x58810e,_0x58eea8._0x384741)+_0x3bcd0e);return;}const _0x224e46=this[_0x1c91c6(0x29a,0x2e9)]['gatewayI'+'dleDisco'+'nnectDel'+'ayMs']??GATEWAY_IDLE_DISCONNECT_DELAY_MS;function _0x1c91c6(_0x3f56ae,_0x2c8e95){return _0x6eb3(_0x3f56ae,_0x2c8e95-0x364);}this[_0x1c91c6(0x54f,0x4ae)](_0xaa3417(0x299,0x15e)+_0x1c91c6(_0x58eea8._0xb53ae,_0x58eea8._0x331fa0)+'se\x20sched'+_0xaa3417(0xf0,0x191)+_0x1c91c6(0x606,0x4a8)+_0x224e46+_0x1c91c6(0x4f0,_0x58eea8._0x17f463)+_0x3bcd0e+(_0xaa3417(0x31d,0x29c)+_0x1c91c6(0x44e,_0x58eea8._0x4ee157)+_0x1c91c6(_0x58eea8._0x1cfb22,_0x58eea8._0x2a3aa3))+this[_0xaa3417(0x163,-0x90)+_0x1c91c6(_0x58eea8._0x29e2d8,_0x58eea8._0x53ec24)](this[_0xaa3417(0x49d,_0x58eea8._0x5fed80)+_0xaa3417(_0x58eea8._0x2c5210,-0x3f)+_0xaa3417(0x18f,_0x58eea8._0x58da23)])),this[_0xaa3417(_0x58eea8._0x19978f,_0x58eea8._0x123aab)+_0x1c91c6(0x259,_0x58eea8._0x358fac)+'Timer']=setTimeout(()=>{function _0x85cca2(_0x3b99b5,_0x2f868a){return _0x1c91c6(_0x3b99b5,_0x2f868a-_0x255f53._0x2e06de);}const _0x11946a=_0x2d6171[_0x85cca2(0x545,_0xf16e47._0x54e64e)][_0x1abaa6(0x2ff,0x22d)]('|');let _0x468b0a=0x0;function _0x1abaa6(_0x2dd74f,_0x5bdbee){return _0x1c91c6(_0x2dd74f,_0x5bdbee- -0x280);}while(!![]){switch(_0x11946a[_0x468b0a++]){case'0':this['log'](_0x1abaa6(-0xf,0x1aa)+'closed\x20a'+'fter\x20idl'+_0x85cca2(_0xf16e47._0x3392e6,_0xf16e47._0x12df6f)+_0x85cca2(0x7ad,0x7bb)+_0x3bcd0e);continue;case'1':this[_0x85cca2(_0xf16e47._0x3cff40,0x765)+_0x85cca2(0x67a,0x534)+'Timer']=null;continue;case'2':if(this[_0x85cca2(_0xf16e47._0x2a1f51,0x611)+_0x1abaa6(_0xf16e47._0x679de,_0xf16e47._0x25b73d)]()){this[_0x1abaa6(0x3e5,0x22e)](_0x2d6171[_0x1abaa6(0x152,_0xf16e47._0x1870e9)]);return;}continue;case'3':const _0x344f9e={};_0x344f9e[_0x1abaa6(_0xf16e47._0x503535,_0xf16e47._0x55c5ca)+_0x85cca2(0x5bf,0x4e3)]=![],_0x344f9e['clientCo'+_0x1abaa6(_0xf16e47._0x1f308f,_0xf16e47._0x828cd7)]=0x0,this[_0x85cca2(0x546,0x612)+_0x85cca2(0x919,0x822)](_0x344f9e);continue;case'4':this[_0x1abaa6(_0xf16e47._0x2ae4e7,_0xf16e47._0x47fea9)+_0x1abaa6(_0xf16e47._0x430bbf,0x1e8)+'tedAtMs']=null;continue;case'5':this[_0x1abaa6(0x2af,0xc0)+_0x85cca2(0x87c,_0xf16e47._0x1477db)]();continue;}break;}},_0x224e46);}[_0x6eb3(0x2,0x2b)+_0x6eb3(0x5d,-0xf5)+_0x6eb3(0x49c,0x29c)](_0x11f4c9){const _0x47c059={_0x1ff921:0x183,_0x53427c:0x23b,_0x53ee28:0x321,_0x287d18:0x262,_0x13d8c2:0x1cd,_0x28662a:0x138,_0x5a5a41:0x21b};function _0x4cb71f(_0x42ea4d,_0x589c22){return _0x6eb3(_0x42ea4d,_0x589c22-0x206);}function _0x457d72(_0x214f4d,_0x5ee48f){return _0x6eb3(_0x214f4d,_0x5ee48f- -0x1dc);}if(!this[_0x457d72(-0x6,-0x31)+_0x457d72(-0x86,-0x262)+_0x457d72(-_0x47c059._0x1ff921,-_0x47c059._0x53427c)])return;clearTimeout(this[_0x457d72(0x63,-0x31)+'dleClose'+'Timer']),this['gatewayI'+_0x457d72(-_0x47c059._0x53ee28,-_0x47c059._0x287d18)+'Timer']=null,_0x11f4c9&&this[_0x4cb71f(0x4fb,0x350)]('gateway\x20'+_0x457d72(-0x46,-_0x47c059._0x13d8c2)+_0x457d72(-0x70,-0x20)+_0x4cb71f(0x51,_0x47c059._0x28662a)+_0x4cb71f(0x56,_0x47c059._0x5a5a41)+_0x11f4c9);}[_0x11b7ab(0x346,0x1cb)+_0x6eb3(-0xc8,0x93)+_0x6eb3(0x34b,0x18f)](){const _0x3a2d52={_0x8d26bf:0x74d,_0x51486e:0x194,_0x54a277:0x74b,_0xe4024d:0x2b9,_0x4f2013:0x3cb,_0x49674d:0x5aa,_0x1236ce:0x2e,_0x186293:0x1ff,_0x226991:0x13c,_0x5a487f:0xa8,_0x41d097:0x5b4,_0x43c894:0x30f,_0x156262:0x45a,_0x203410:0x369,_0x127f08:0x6ca},_0x500d88={_0x18fa6f:0x56f,_0x31b9c5:0x1b7,_0x3f5495:0x4b8,_0x112e99:0x714},_0x380436={_0x1b3e65:0x4f0},_0x450c74={'EIyde':function(_0x3eacb6,_0x285aac,_0x512e90){return _0x3eacb6(_0x285aac,_0x512e90);}};function _0x406242(_0x2ea6f0,_0x5c6f73){return _0x6eb3(_0x5c6f73,_0x2ea6f0-_0x380436._0x1b3e65);}function _0x335d6e(_0x3c6aa5,_0x38edac){return _0x6eb3(_0x3c6aa5,_0x38edac-0x4d);}if(this['stopped']||this[_0x406242(0x74b,_0x3a2d52._0x8d26bf)+_0x335d6e(_0x3a2d52._0x51486e,0x98)])return;const _0x1388e5=this['options'][_0x406242(_0x3a2d52._0x54a277,0x5dc)+_0x335d6e(0x3e1,_0x3a2d52._0xe4024d)+_0x406242(_0x3a2d52._0x4f2013,_0x3a2d52._0x49674d)]??RECONNECT_BASE_DELAY_MS,_0x54efd3=this[_0x335d6e(-0x51,-_0x3a2d52._0x1236ce)][_0x335d6e(_0x3a2d52._0x186293,0x2a8)+'tMaxDela'+_0x335d6e(0x1c2,_0x3a2d52._0x226991)]??RECONNECT_MAX_DELAY_MS,_0x1ccbd6=Math[_0x335d6e(_0x3a2d52._0x5a487f,0x73)](_0x54efd3,_0x1388e5*Math[_0x406242(_0x3a2d52._0x41d097,0x675)](0x1,this[_0x406242(0x4bc,_0x3a2d52._0x43c894)+'empt']));this[_0x335d6e(0x333,0x197)](_0x406242(0x451,0x3cf)+_0x335d6e(0x292,0x13e)+_0x406242(0x679,0x58b)+_0x406242(_0x3a2d52._0x156262,_0x3a2d52._0x203410)+'s='+_0x1ccbd6),this[_0x406242(0x74b,0x747)+_0x406242(0x53b,0x4f2)]=_0x450c74[_0x406242(_0x3a2d52._0x127f08,0x6ac)](setTimeout,()=>{const _0x33f4d7={_0x4c0255:0x498};this[_0x33d487(0x3c7,_0x500d88._0x18fa6f)+_0x33d487(_0x500d88._0x31b9c5,0x27e)]=null;function _0x49d9eb(_0x46fdba,_0x3c2302){return _0x335d6e(_0x46fdba,_0x3c2302-_0x33f4d7._0x4c0255);}function _0x33d487(_0x102bca,_0x48d23e){return _0x335d6e(_0x48d23e,_0x102bca-0x11f);}void this[_0x33d487(0x414,_0x500d88._0x3f5495)+_0x49d9eb(0x6a0,_0x500d88._0x112e99)]();},_0x1ccbd6);}[_0x6eb3(0x114,0x189)+_0x11b7ab(0x52,0xf5)+_0x6eb3(-0x96,-0x111)](){const _0x4ea6a2={_0x3a2b99:0x3d4,_0x3625b5:0x225,_0x77d444:0x8f,_0x1fb555:0x73,_0x1afdbb:0x3ff,_0x3378a4:0x2bd,_0x2e5a39:0x48f,_0x5ebad4:0x10,_0x5a34ad:0x6e5,_0x3ad74b:0x497,_0x42b547:0x1c1,_0x1f9f81:0x44f},_0x5b54c8={_0x28b7b3:0x655,_0x4d70f2:0x6ce,_0x5301c4:0x6f6,_0x2064ea:0x15b},_0x371345={_0x360297:0x366},_0x473178={'SbdKb':function(_0x205592,_0x576a68,_0x20abdb){return _0x205592(_0x576a68,_0x20abdb);}};if(this[_0x2aa30a(_0x4ea6a2._0x3a2b99,_0x4ea6a2._0x3625b5)]||this[_0x23015e(0x794,0x5df)+_0x23015e(0x215,0x3ea)+'r']||!this[_0x2aa30a(_0x4ea6a2._0x77d444,_0x4ea6a2._0x1fb555)+_0x2aa30a(0x3e4,0x2d6)]()||!this[_0x23015e(0x5ae,_0x4ea6a2._0x1afdbb)+_0x23015e(_0x4ea6a2._0x3378a4,_0x4ea6a2._0x2e5a39)]())return;function _0x23015e(_0x4df514,_0x701b33){return _0x11b7ab(_0x4df514,_0x701b33-_0x371345._0x360297);}const _0x468f41=this[_0x2aa30a(0x9d,-_0x4ea6a2._0x5ebad4)][_0x2aa30a(0x2e7,0x2a2)+_0x23015e(_0x4ea6a2._0x5a34ad,0x584)+_0x23015e(0x431,_0x4ea6a2._0x3ad74b)]??GATEWAY_RETRY_DELAY_MS;function _0x2aa30a(_0x550244,_0x49cd77){return _0x11b7ab(_0x550244,_0x49cd77-0x29);}this[_0x2aa30a(0x102,0x2a2)+_0x2aa30a(_0x4ea6a2._0x42b547,0xad)+'r']=_0x473178[_0x23015e(_0x4ea6a2._0x1f9f81,0x535)](setTimeout,()=>{const _0x233f1c={_0x55287c:0x1ed};function _0x1528cf(_0x4e8f6c,_0x379fbf){return _0x2aa30a(_0x379fbf,_0x4e8f6c-0x38a);}this[_0x8a2cef(0xf1,0xb5)+_0x8a2cef(0x1b,-0x140)+'r']=null;function _0x8a2cef(_0x42beeb,_0x349026){return _0x2aa30a(_0x42beeb,_0x349026- -_0x233f1c._0x55287c);}this[_0x1528cf(_0x5b54c8._0x28b7b3,_0x5b54c8._0x4d70f2)+_0x1528cf(0x631,_0x5b54c8._0x5301c4)+_0x1528cf(0x2e7,_0x5b54c8._0x2064ea)]();},_0x468f41);}[_0x6eb3(-0x2a,0x18a)+_0x6eb3(0x4a6,0x2b9)](){const _0x5c3369={_0x8c19dc:0x469,_0x33242f:0x660,_0x4e88bf:0x577,_0xac9bef:0x647,_0x1b71e9:0x5b5,_0xaf69d4:0x601,_0x3d02f4:0x432,_0x32bd33:0x6ab,_0x5882c2:0x63b,_0x5f7e82:0x7c3},_0x6c1834={_0x177615:0x1d2,_0x382b5e:0x405,_0x42d752:0x2d9,_0x1e0317:0x143,_0x57959f:0xa,_0x238e1f:0x3e5,_0x3742ef:0x48,_0x1b3483:0x13e,_0x3f9904:0x35,_0x5cca09:0xf3,_0x18a55a:0x11b,_0x378e3c:0x8b},_0x45bb23={};_0x45bb23['uHHlQ']=_0x492ed3(0x530,_0x5c3369._0x8c19dc)+_0x492ed3(_0x5c3369._0x33242f,_0x5c3369._0x4e88bf)+_0x2e573e(_0x5c3369._0xac9bef,0x623)+'t';const _0x4ae64d=_0x45bb23;function _0x492ed3(_0x16ea04,_0x555547){return _0x6eb3(_0x16ea04,_0x555547-0x516);}this[_0x2e573e(0x5a9,0x6d9)+_0x492ed3(0x500,0x58b)]();function _0x2e573e(_0x1b0ff0,_0x18c2ac){return _0x6eb3(_0x18c2ac,_0x1b0ff0-0x397);}this[_0x492ed3(_0x5c3369._0x1b71e9,_0x5c3369._0xaf69d4)+_0x492ed3(0x755,0x561)]=setInterval(()=>{const _0x5b77e6={_0x27c5fd:0x3a3},_0xfe10c5={_0x2227be:0x85},_0x4df7b6=this['relaySoc'+_0x4140ec(_0x6c1834._0x177615,0x73)];if(!_0x4df7b6||_0x4df7b6[_0x5b9d15(_0x6c1834._0x382b5e,_0x6c1834._0x42d752)+'te']!==_0x17e531[_0x4140ec(_0x6c1834._0x1e0317,-_0x6c1834._0x57959f)])return;const _0x27baba=this['options']['heartbea'+_0x5b9d15(_0x6c1834._0x238e1f,0x411)+'Ms']??HEARTBEAT_TIMEOUT_MS;function _0x5b9d15(_0x5018c8,_0x2c8481){return _0x2e573e(_0x2c8481- -_0xfe10c5._0x2227be,_0x5018c8);}function _0x4140ec(_0x24aafd,_0x4735e3){return _0x2e573e(_0x24aafd- -_0x5b77e6._0x27c5fd,_0x4735e3);}if(Date[_0x4140ec(_0x6c1834._0x3742ef,-0x130)]()-this[_0x5b9d15(0x3a3,0x2d3)+'yActivit'+'yMs']>_0x27baba){this[_0x4140ec(_0x6c1834._0x1b3483,0x173)](_0x4ae64d[_0x4140ec(-_0x6c1834._0x3f9904,_0x6c1834._0x5cca09)]),_0x4df7b6[_0x4140ec(-_0x6c1834._0x18a55a,-0x207)+'e']();return;}_0x4df7b6[_0x5b9d15(_0x6c1834._0x378e3c,0x253)]();},this[_0x492ed3(_0x5c3369._0x3d02f4,0x49b)][_0x492ed3(_0x5c3369._0x32bd33,0x601)+_0x492ed3(0x6e4,_0x5c3369._0x5882c2)+_0x2e573e(0x626,_0x5c3369._0x5f7e82)]??HEARTBEAT_INTERVAL_MS);}['stopHear'+_0x11b7ab(-0x112,0xb7)](){const _0x31044f={_0x4a235f:0x16e,_0x528c2a:0x248,_0x2d366d:0x105},_0x165317={_0x4a38ea:0x1f0};function _0x594db1(_0x2ac166,_0x6bfa42){return _0x6eb3(_0x2ac166,_0x6bfa42- -_0x165317._0x4a38ea);}function _0x2dfd56(_0x3620da,_0x26065b){return _0x6eb3(_0x26065b,_0x3620da- -0x61);}const _0x30cfb1={'BtpXX':function(_0x4736c7,_0x2a9aaf){return _0x4736c7(_0x2a9aaf);}};this[_0x2dfd56(0x8a,_0x31044f._0x4a235f)+_0x594db1(-_0x31044f._0x528c2a,-0x1a5)]&&(_0x30cfb1[_0x594db1(-0x3ad,-0x302)](clearInterval,this[_0x594db1(-0x24a,-_0x31044f._0x2d366d)+_0x594db1(-0x123,-0x1a5)]),this['heartbea'+'tTimer']=null);}[_0x11b7ab(0xdf,0x26)+_0x6eb3(-0x32c,-0x14b)+_0x11b7ab(0x120,-0x21)+'e'](_0x576690){const _0x45c0f6={_0x27731d:0x20b,_0x27f0ef:0x7,_0x9ac4da:0x242,_0xdd7626:0x42f,_0x520e8a:0x1f9,_0x52f677:0x5d,_0x3e4c2a:0x19a,_0x3d5e58:0x2f7,_0x101983:0xb5,_0x5879b6:0x155,_0x11c6a3:0x104,_0x4926be:0xe0,_0x536e49:0x9f,_0xa667:0x1ab,_0x3b2938:0x152},_0x1cd685={_0x235aac:0x50},_0x546c39={_0x56f342:0x1d3};this[_0x34206e(-0x4e5,-0x303)+_0x34206e(_0x45c0f6._0x27731d,0xe1)+'ssages'][_0x21ea02(0xf7,-_0x45c0f6._0x27f0ef)]>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x34206e(-0x4bb,-0x303)+'atewayMe'+_0x21ea02(0x242,0x364)]['shift']();function _0x34206e(_0x258216,_0x1dd15e){return _0x6eb3(_0x258216,_0x1dd15e- -_0x546c39._0x56f342);}function _0x21ea02(_0xc6019a,_0x419137){return _0x6eb3(_0x419137,_0xc6019a-_0x1cd685._0x235aac);}this['pendingG'+_0x21ea02(0x304,0x12e)+_0x21ea02(_0x45c0f6._0x9ac4da,_0x45c0f6._0xdd7626)][_0x34206e(_0x45c0f6._0x520e8a,_0x45c0f6._0x52f677)](_0x576690),this[_0x21ea02(_0x45c0f6._0x3e4c2a,_0x45c0f6._0x3d5e58)](_0x34206e(_0x45c0f6._0x101983,-0x10d)+_0x34206e(-0x21,-_0x45c0f6._0x5879b6)+_0x34206e(-0x13b,-_0x45c0f6._0x11c6a3)+this[_0x21ea02(-_0x45c0f6._0x4926be,_0x45c0f6._0x536e49)+_0x34206e(0x6b,0xe1)+_0x21ea02(_0x45c0f6._0x9ac4da,_0x45c0f6._0xa667)][_0x21ea02(0xf7,_0x45c0f6._0x3b2938)]);}[_0x11b7ab(0x44f,0x2a3)+'onnectSt'+_0x11b7ab(-0x1a2,-0xb0)](_0x30b816,_0x1e19c3){const _0x2f4f0d={_0x124120:0x1ea,_0x30b3bb:0x9e,_0x52662d:0x1dc,_0x489cba:0x3dc,_0x55836b:0x2e7,_0x436199:0x14b,_0x164e78:0x467,_0x3970aa:0x206,_0x3a3b7e:0x267,_0x336b35:0x19d,_0x14dbc1:0x135,_0x23f2fd:0x46,_0x2e5ad5:0x92,_0x337e99:0x10a,_0x7aeb1c:0x229},_0xca039={_0x120e3d:0x4e},_0x765362={_0x359a5d:0x18f},_0xfb94ce=Date[_0x376f96(_0x2f4f0d._0x124120,0x225)]();function _0x376f96(_0x1911a5,_0x4d0c5d){return _0x11b7ab(_0x1911a5,_0x4d0c5d-_0x765362._0x359a5d);}function _0x37355b(_0x4821bb,_0x29b778){return _0x11b7ab(_0x29b778,_0x4821bb- -_0xca039._0x120e3d);}const _0x3b0357=new Map(this[_0x37355b(_0x2f4f0d._0x30b3bb,_0x2f4f0d._0x52662d)][_0x37355b(0xe6,0x122)+_0x376f96(_0x2f4f0d._0x489cba,_0x2f4f0d._0x55836b)]['map'](_0x18b2f9=>[_0x18b2f9['id'],{..._0x18b2f9}])),_0x53691c=_0x3b0357[_0x37355b(0xbc,-_0x2f4f0d._0x436199)](_0x30b816)??{'id':_0x30b816,'label':_0x1e19c3,'state':_0x376f96(_0x2f4f0d._0x164e78,0x2c3)+'d','lastSeenMs':_0xfb94ce};_0x53691c[_0x376f96(0x2fa,_0x2f4f0d._0x3970aa)]=_0x1e19c3,_0x53691c['state']=_0x37355b(0xe6,_0x2f4f0d._0x3a3b7e)+'d',_0x53691c[_0x37355b(0x1fd,_0x2f4f0d._0x336b35)+'Ms']=_0xfb94ce,_0x3b0357['set'](_0x30b816,_0x53691c);const _0x57c708=[..._0x3b0357[_0x37355b(_0x2f4f0d._0x14dbc1,0x2a5)]()][_0x376f96(_0x2f4f0d._0x23f2fd,_0x2f4f0d._0x2e5ad5)]((_0x387d46,_0x4d75d9)=>_0x4d75d9[_0x376f96(0x52e,0x3da)+'Ms']-_0x387d46['lastSeen'+'Ms'])[_0x376f96(0x4af,0x2fe)](0x0,MAX_DEVICE_DETAILS),_0x407a1e={};_0x407a1e['connecte'+_0x37355b(_0x2f4f0d._0x337e99,-0x39)]=_0x57c708,this[_0x376f96(0x28b,_0x2f4f0d._0x7aeb1c)+'apshot'](_0x407a1e);}[_0x11b7ab(0x304,0x27b)+_0x11b7ab(0x25e,0x155)+'t'](){const _0x2763e6={_0x412ba9:0x155,_0x3f4d7f:0x1a8,_0x5467c5:0xe9},_0x42f1be={_0x5e8a43:0x241};function _0x1664e5(_0x4aab20,_0x1b7595){return _0x11b7ab(_0x4aab20,_0x1b7595- -_0x42f1be._0x5e8a43);}function _0x1d0175(_0x333e12,_0x404ae1){return _0x11b7ab(_0x333e12,_0x404ae1-0x145);}this['updateSn'+_0x1664e5(0x15f,0x69)]({'connectedDevices':this[_0x1664e5(0x6,-_0x2763e6._0x412ba9)]['connecte'+_0x1664e5(-_0x2763e6._0x3f4d7f,-_0x2763e6._0x5467c5)][_0x1d0175(0x48d,0x327)](_0x2f07f7=>({..._0x2f07f7,'state':_0x1d0175(0x29c,0x1a4)}))});}[_0x6eb3(-0x2e7,-0x133)+_0x11b7ab(0x20b,0x4)+_0x11b7ab(0x38d,0x245)](_0x2f71d3){const _0x4b8b8d={_0x4682cc:0x145,_0x5438a3:0x4e0,_0x2a4056:0x3dd,_0x4c2c0a:0x1ca,_0xfb3437:0xb1,_0x4cd6b6:0x7e,_0x2859a9:0x4a1,_0x163726:0x599,_0x155b3a:0x315,_0x19e252:0x141,_0x4966d8:0x3e1,_0x2013eb:0x26b,_0x58b692:0x4b5,_0x61c873:0x1a7},_0x1388ac={_0x26990d:0x118},_0x7b8916={_0x225794:0x1f7};if(this['snapshot'][_0x568943(0x25e,0x448)+_0x3eeb3a(-0x342,-_0x4b8b8d._0x4682cc)+_0x568943(0x2ef,0x227)][_0x568943(_0x4b8b8d._0x5438a3,_0x4b8b8d._0x2a4056)](_0x5c788f=>_0x5c788f['requestI'+'d']===_0x2f71d3['requestI'+'d']))return;function _0x568943(_0x55aec1,_0x1563a4){return _0x11b7ab(_0x1563a4,_0x55aec1-_0x7b8916._0x225794);}function _0x3eeb3a(_0x44a250,_0x30335b){return _0x11b7ab(_0x44a250,_0x30335b- -_0x1388ac._0x26990d);}const _0x561702=[...this[_0x568943(0x2e3,0x2f8)]['pendingP'+_0x568943(_0x4b8b8d._0x4c2c0a,0x286)+_0x568943(0x2ef,0x3b0)],_0x2f71d3]['slice'](-MAX_PENDING_PAIR_REQUESTS),_0x3907f5={};_0x3907f5[_0x3eeb3a(0x120,-_0x4b8b8d._0xfb3437)+_0x3eeb3a(-0x84,-0x145)+_0x568943(0x2ef,0x4e6)]=_0x561702,this[_0x3eeb3a(0x68,-_0x4b8b8d._0x4cd6b6)+_0x568943(_0x4b8b8d._0x2859a9,_0x4b8b8d._0x163726)](_0x3907f5),this['options'][_0x3eeb3a(0x397,0x19d)+'gPairReq'+_0x3eeb3a(-_0x4b8b8d._0x155b3a,-_0x4b8b8d._0x19e252)]?.(_0x2f71d3),this['log']('pair\x20req'+_0x568943(_0x4b8b8d._0x4966d8,_0x4b8b8d._0x2013eb)+_0x3eeb3a(-0x3bb,-0x1f4)+_0x3eeb3a(-0x32,0x8b)+_0x2f71d3[_0x568943(_0x4b8b8d._0x58b692,0x41c)+'d']+('\x20deviceI'+'d=')+(_0x2f71d3['deviceId']||_0x3eeb3a(-_0x4b8b8d._0x61c873,-0x88)+'>'));}[_0x6eb3(0x18d,0x4f)+_0x6eb3(0xfe,0xe6)+_0x11b7ab(-0x15e,-0x83)](_0x41dba9,_0x81b496){const _0x55e794={_0x2aea13:0x143,_0x1f2ceb:0x1cc,_0x33c16a:0x13d,_0x3223c1:0xea,_0x305589:0x1c5,_0x19c997:0x184,_0x22ce77:0x2da},_0x3acde4={_0x45f6a9:0x63},_0x8359c3={_0x22972b:0x168};function _0x5c61f6(_0x235c48,_0x42ec47){return _0x6eb3(_0x42ec47,_0x235c48- -_0x8359c3._0x22972b);}function _0x4d1aeb(_0x2fcef1,_0x284558){return _0x6eb3(_0x284558,_0x2fcef1- -_0x3acde4._0x45f6a9);}const _0x53699e=this[_0x4d1aeb(0x47,-0x17e)][_0x5c61f6(-_0x55e794._0x2aea13,0x23)+_0x5c61f6(-0x1d7,-_0x55e794._0x1f2ceb)+'sts'][_0x4d1aeb(_0x55e794._0x33c16a,0x137)](_0x5b4a1b=>_0x5b4a1b[_0x5c61f6(0x114,0x1c3)+'d']===_0x41dba9?{..._0x5b4a1b,'status':_0x81b496===_0x4d1aeb(0xa7,0x248)||_0x81b496===_0x5c61f6(-0x132,-0x2bd)?_0x81b496:_0x5b4a1b['status']}:_0x5b4a1b),_0x490b8b={};_0x490b8b['pendingP'+'airReque'+_0x4d1aeb(0x53,-_0x55e794._0x3223c1)]=_0x53699e,this[_0x4d1aeb(-0xb,-0x4f)+_0x4d1aeb(0x205,_0x55e794._0x305589)](_0x490b8b),this['log']('pair\x20req'+_0x4d1aeb(_0x55e794._0x19c997,0x1be)+'olved\x20re'+_0x4d1aeb(0x1b3,_0x55e794._0x22ce77)+_0x41dba9+('\x20decisio'+'n=')+_0x81b496);}[_0x11b7ab(-0x47,0x9a)+_0x11b7ab(0x276,0x2aa)](_0x196fbc){const _0x2eb688={_0x5da190:0x21,_0x52d84c:0x58,_0x59d4de:0x9b},_0x15ad47={_0x58e5fb:0xc9},_0x5c8f49={_0x1a3ee3:0xaf};function _0x21b0a6(_0x371214,_0x40b5ce){return _0x6eb3(_0x40b5ce,_0x371214- -_0x5c8f49._0x1a3ee3);}Object['assign'](this[_0x21b0a6(-0x5,_0x2eb688._0x5da190)],_0x196fbc,{'lastUpdatedMs':Date[_0x4e7de0(-0x3,-0x75)]()});function _0x4e7de0(_0x3471ff,_0x4c1910){return _0x6eb3(_0x3471ff,_0x4c1910- -_0x15ad47._0x58e5fb);}this[_0x4e7de0(-_0x2eb688._0x52d84c,-0x144)][_0x4e7de0(0x27a,_0x2eb688._0x59d4de)]?.(this[_0x4e7de0(-0xb,0x12)+_0x4e7de0(0x311,0x12f)]());}['log'](_0x32e73c){const _0x21e239={_0x4c68cf:0x30f,_0x403e73:0x2c9,_0x460eb2:0x1f0},_0x1d2fbd={_0x150a3f:0x401},_0x2893cc={_0x51a6aa:0x348};function _0xe6a885(_0x461871,_0x3728b6){return _0x11b7ab(_0x3728b6,_0x461871-_0x2893cc._0x51a6aa);}function _0x5ebad6(_0x17ea2c,_0x7f9802){return _0x11b7ab(_0x7f9802,_0x17ea2c-_0x1d2fbd._0x150a3f);}this[_0xe6a885(_0x21e239._0x4c68cf,0x305)][_0xe6a885(_0x21e239._0x403e73,_0x21e239._0x460eb2)]?.(_0x32e73c);}[_0x6eb3(0x20d,0x8)+_0x11b7ab(0x11c,0x2ad)](){const _0x43bb14={_0x98c4d6:0x12e,_0x342ab0:0x4c3,_0x2a2d85:0x2ba,_0xe5546e:0x16b,_0x496726:0x179},_0x2a326a={_0x21b465:0x1c2};function _0x2ebf31(_0x2392b1,_0x1afc91){return _0x6eb3(_0x1afc91,_0x2392b1- -_0x2a326a._0x21b465);}function _0x3837ab(_0x38f18c,_0x1e6476){return _0x6eb3(_0x1e6476,_0x38f18c-0x2e5);}return this[_0x2ebf31(-_0x43bb14._0x98c4d6,-0x317)+_0x3837ab(_0x43bb14._0x342ab0,_0x43bb14._0x2a2d85)]?.[_0x2ebf31(-0x1fb,-_0x43bb14._0xe5546e)+'te']===_0x17e531[_0x2ebf31(-0x73,_0x43bb14._0x496726)];}['isGatewa'+'yOpen'](){const _0x2d3d8e={_0x4d25a5:0xa5,_0x421bfb:0x1ef},_0xa376b9={_0x790371:0xae};function _0x52cbd1(_0x14ddf4,_0x55856b){return _0x11b7ab(_0x14ddf4,_0x55856b- -_0xa376b9._0x790371);}function _0x51b297(_0x437dd2,_0x396871){return _0x11b7ab(_0x437dd2,_0x396871-0x57d);}return this['gatewayS'+'ocket']?.[_0x52cbd1(-0x252,-_0x2d3d8e._0x4d25a5)+'te']===_0x17e531[_0x52cbd1(_0x2d3d8e._0x421bfb,0xe3)];}[_0x11b7ab(0x18e,0x99)+_0x6eb3(-0x35,0xe7)](){const _0x26ef66={_0x32f1d3:0x3e9,_0x1bbacc:0x640,_0x5c7737:0x769,_0x5e85c6:0x729},_0x4e30bc={_0xe66564:0x4b5};function _0x5b1634(_0x24eb7b,_0x233d2c){return _0x6eb3(_0x24eb7b,_0x233d2c-_0x4e30bc._0xe66564);}function _0x368667(_0x13473b,_0x3fad2a){return _0x6eb3(_0x3fad2a,_0x13473b-0x537);}return this[_0x5b1634(_0x26ef66._0x32f1d3,0x55f)]['clientCo'+_0x368667(0x67e,0x867)]>0x0||this['pendingG'+_0x5b1634(_0x26ef66._0x1bbacc,_0x26ef66._0x5c7737)+_0x368667(_0x26ef66._0x5e85c6,0x6d1)]['length']>0x0;}[_0x11b7ab(0x2e8,0x22e)+_0x6eb3(-0x2e7,-0xf8)](){const _0x3c65d2={_0x56f225:0x44a,_0x4899a2:0x230,_0x1bc51b:0x51b,_0x55549f:0x70d,_0x15f201:0x45f,_0x507e03:0x441,_0xaf8db7:0x1de,_0x1ab4d3:0x5a7,_0x48df6b:0x65f,_0x137d12:0x30a};function _0x58b219(_0x2fdd7c,_0x360da9){return _0x6eb3(_0x2fdd7c,_0x360da9-0xbd);}const _0x283374={'NVHJD':function(_0x4a6031,_0x2eb9c6){return _0x4a6031(_0x2eb9c6);}};this['stopHear'+'tbeat']();this[_0x58b219(0x4ed,0x318)+_0x4de496(0x3e3,_0x3c65d2._0x56f225)]&&(_0x283374[_0x58b219(-_0x3c65d2._0x4899a2,-0x5a)](clearTimeout,this[_0x4de496(_0x3c65d2._0x1bc51b,0x65a)+_0x4de496(0x35c,0x44a)]),this[_0x4de496(_0x3c65d2._0x55549f,0x65a)+_0x4de496(_0x3c65d2._0x15f201,_0x3c65d2._0x56f225)]=null);this['gatewayR'+_0x4de496(0x521,_0x3c65d2._0x507e03)+'r']&&(clearTimeout(this[_0x58b219(_0x3c65d2._0xaf8db7,0x2f4)+_0x4de496(_0x3c65d2._0x1ab4d3,0x441)+'r']),this[_0x4de496(_0x3c65d2._0x48df6b,0x636)+'etryTime'+'r']=null);function _0x4de496(_0x26df4c,_0x5413bc){return _0x6eb3(_0x26df4c,_0x5413bc-0x3ff);}this[_0x4de496(0x3c4,0x42a)+_0x4de496(0x27a,_0x3c65d2._0x137d12)+'eClose']();}[_0x11b7ab(0xa9,-0xe6)+_0x6eb3(0x31e,0x288)](_0x4f7999){const _0x29c500={_0x307271:0x347,_0x23ece3:0x271},_0x2f3930={_0x435456:0x16e},_0x2c5849={_0x5c7a9f:0x228},_0x57fa22={};function _0x32d28d(_0x903f1e,_0x4bf2b9){return _0x11b7ab(_0x4bf2b9,_0x903f1e-_0x2c5849._0x5c7a9f);}_0x57fa22[_0x32d28d(_0x29c500._0x307271,_0x29c500._0x23ece3)]=function(_0x8913d4,_0x17ee62){return _0x8913d4-_0x17ee62;};function _0x479e7c(_0x44a4bf,_0x229662){return _0x11b7ab(_0x229662,_0x44a4bf- -_0x2f3930._0x435456);}const _0x27e18a=_0x57fa22;return _0x4f7999==null?null:Math[_0x32d28d(0x32e,0x257)](0x0,_0x27e18a['hAVDk'](Date[_0x32d28d(0x2be,0x16a)](),_0x4f7999));}};function shouldRecycleGatewayForFreshClient(_0x290c6a,_0x519207,_0x43c3e9,_0xd2eb59){return _0x43c3e9&&_0x519207>0x0&&(_0x290c6a===0x0||_0xd2eb59);}function _0x11b7ab(_0x4d6e79,_0x407a58){return _0x2e58(_0x407a58- -0x1a6,_0x4d6e79);}function summarizeJsonFrame(_0x1c91fa){const _0x59890e={_0x3be50e:0x542,_0x5bbd2d:0x630,_0x1ce656:0x56b,_0x3f76de:0x212,_0x323dd0:0x3b1,_0x30a303:0x441,_0x2002fe:0x2bf,_0x2fd128:0x4a7,_0x4ebf3b:0x303,_0x46c48a:0x2b7,_0x8b2901:0x452,_0x12ac62:0x1f8,_0x4010cf:0x99,_0xfe42ea:0x27b,_0x3b2910:0x46f,_0x414799:0x253,_0x1c1108:0x42c,_0x5ceb4f:0x1cc,_0x53ace9:0x1ba,_0x249645:0x39d,_0x4de527:0x29b,_0x57ce02:0x13c,_0x4154ca:0x102,_0x23683d:0xed,_0x2c244e:0x3ee,_0x47de33:0x40f,_0x1c1e36:0x57a,_0x551d9e:0x111,_0x4687be:0x26b,_0x197b5e:0x3c8,_0x22d71e:0x1c1,_0x4ee4c9:0x220,_0x26899f:0x675},_0x476622={_0x5b32fb:0x49a};function _0x1ef065(_0x34333b,_0x5a479e){return _0x6eb3(_0x5a479e,_0x34333b-0x1aa);}const _0x5e6136={};_0x5e6136['wEgFW']=_0x224afd(_0x59890e._0x3be50e,0x4e8)+'>';const _0x310659=_0x5e6136;function _0x224afd(_0x37ac06,_0x304c37){return _0x6eb3(_0x37ac06,_0x304c37-_0x476622._0x5b32fb);}try{const _0x4aa458=JSON[_0x224afd(0x6a9,0x4ba)](_0x1c91fa);if(_0x4aa458[_0x224afd(_0x59890e._0x5bbd2d,_0x59890e._0x1ce656)]===_0x224afd(_0x59890e._0x3f76de,_0x59890e._0x323dd0)&&typeof _0x4aa458[_0x224afd(0x4db,_0x59890e._0x30a303)]===_0x224afd(0x58e,0x3dd))return _0x224afd(_0x59890e._0x2002fe,_0x59890e._0x2fd128)+_0x1ef065(_0x59890e._0x4ebf3b,_0x59890e._0x46c48a)+_0x4aa458[_0x224afd(_0x59890e._0x8b2901,0x441)]+'\x20id='+(typeof _0x4aa458['id']==='string'?_0x4aa458['id']:_0x1ef065(_0x59890e._0x12ac62,_0x59890e._0x4010cf)+'>');if(_0x4aa458[_0x1ef065(_0x59890e._0xfe42ea,_0x59890e._0x3b2910)]===_0x224afd(_0x59890e._0x414799,_0x59890e._0x1c1108)&&typeof _0x4aa458[_0x1ef065(0x13c,_0x59890e._0x5ceb4f)]===_0x1ef065(0xed,0x7c))return _0x224afd(_0x59890e._0x53ace9,_0x59890e._0x249645)+_0x1ef065(0x3b7,_0x59890e._0x4de527)+_0x4aa458[_0x1ef065(_0x59890e._0x57ce02,_0x59890e._0x4154ca)];if(_0x4aa458[_0x1ef065(0x27b,0x2bd)]===_0x1ef065(0x3b4,0x4b1)){const _0x43fbb1=typeof _0x4aa458['id']===_0x1ef065(_0x59890e._0x23683d,-0x36)?_0x4aa458['id']:_0x310659['wEgFW'],_0x4a5046=_0x4aa458['ok']===!![]?_0x1ef065(_0x59890e._0x2c244e,0x576):_0x224afd(_0x59890e._0x47de33,_0x59890e._0x1c1e36),_0x117e64=typeof _0x4aa458[_0x1ef065(_0x59890e._0x551d9e,-0x97)]?.[_0x224afd(_0x59890e._0x4687be,_0x59890e._0x197b5e)]==='string'?_0x4aa458[_0x1ef065(0x111,_0x59890e._0x22d71e)][_0x1ef065(0xd8,0x1af)]:_0x1ef065(0x28c,0x93);return _0x224afd(_0x59890e._0x4ee4c9,0x3ef)+_0x43fbb1+_0x224afd(0x879,_0x59890e._0x26899f)+_0x4a5046+'\x20code='+_0x117e64;}return null;}catch{return null;}}function shouldDropStaleConnectAfterGatewayReopen(_0x84fca1,_0x4afc38){return!_0x84fca1&&_0x4afc38;}function buildRelayWsUrl(_0x51da74){const _0x29389c={_0x9a8250:0x31e,_0x50021a:0x390,_0x1c8045:0x4cd,_0xfb09eb:0x2bf,_0x52de22:0x41e,_0x1d3aee:0x715,_0x1b41f4:0x698,_0x45ce64:0x667,_0x14327d:0x814,_0x192cad:0x59b,_0x1bce8c:0x45,_0x58779e:0x57,_0x1ca064:0x44,_0x4d47e1:0x19d,_0x29615e:0x44d,_0x2c6465:0x3fc,_0x478656:0x7da,_0x4e98be:0x76,_0x9238bc:0x180,_0x33c844:0x721,_0x5bbeb5:0x948,_0xf446d2:0x264},_0x5addea={_0x55046f:0x4fb};function _0x4f7278(_0x2640e3,_0xd587da){return _0x6eb3(_0x2640e3,_0xd587da-_0x5addea._0x55046f);}const _0x3f1aaa={};_0x3f1aaa[_0xe5d42(-_0x29389c._0x9a8250,-_0x29389c._0x50021a)]='gateway';const _0x2dc8ad=_0x3f1aaa,_0x10a8eb=new URL(_0x51da74[_0xe5d42(-0x313,-0x398)]);(!_0x10a8eb[_0x4f7278(_0x29389c._0x1c8045,0x41e)]||_0x10a8eb[_0xe5d42(-_0x29389c._0xfb09eb,-0x225)]==='/')&&(_0x10a8eb[_0x4f7278(0x254,_0x29389c._0x52de22)]='/ws');_0x10a8eb[_0x4f7278(_0x29389c._0x1d3aee,_0x29389c._0x1b41f4)+_0x4f7278(0x46a,_0x29389c._0x45ce64)][_0x4f7278(_0x29389c._0x14327d,0x721)](_0x4f7278(_0x29389c._0x192cad,0x6a6)+'d',_0x51da74['gatewayI'+'d']),_0x10a8eb[_0xe5d42(-_0x29389c._0x1bce8c,-_0x29389c._0x58779e)+'rams'][_0xe5d42(_0x29389c._0x1ca064,_0x29389c._0x4d47e1)](_0x4f7278(_0x29389c._0x29615e,0x5e0),_0x2dc8ad[_0xe5d42(-_0x29389c._0x9a8250,-_0x29389c._0x2c6465)]),_0x10a8eb[_0x4f7278(_0x29389c._0x478656,_0x29389c._0x1b41f4)+_0xe5d42(-_0x29389c._0x4e98be,0xaf)][_0xe5d42(0x44,_0x29389c._0x9238bc)]('clientId',_0x51da74[_0x4f7278(0x3b6,0x4e3)+'Id']),_0x10a8eb['searchPa'+_0xe5d42(-0x76,-0x157)][_0x4f7278(0x590,_0x29389c._0x33c844)]('token',_0x51da74[_0xe5d42(-0x2ec,-0x467)+_0x4f7278(_0x29389c._0x5bbeb5,0x796)]);function _0xe5d42(_0x2caea0,_0x3e410){return _0x6eb3(_0x3e410,_0x2caea0- -0x1e2);}return _0x10a8eb[_0xe5d42(-0xba,-_0x29389c._0xf446d2)]();}function redactRelayWsUrl(_0x3c7c00){const _0x315638={_0x2088e0:0xb,_0x485e06:0x173,_0x5e8047:0x3e,_0x7bd60f:0x26a,_0x478477:0x21e,_0x1e5e56:0x3e,_0x12a9e5:0x2bc,_0x2405c1:0x6},_0x53355={_0x3f5242:0x170},_0x48c3c1=new URL(_0x3c7c00);_0x48c3c1[_0x476b3c(-_0x315638._0x2088e0,0x6f)+_0x476b3c(_0x315638._0x485e06,_0x315638._0x5e8047)][_0x4b7a45(0x6a,0x1cf)](_0x4b7a45(0x151,0x233))&&_0x48c3c1[_0x4b7a45(_0x315638._0x7bd60f,0x1fd)+_0x476b3c(_0x315638._0x478477,_0x315638._0x1e5e56)][_0x4b7a45(_0x315638._0x12a9e5,0x286)](_0x476b3c(0x1c9,0xa5),'<redacte'+'d>');function _0x4b7a45(_0x480a28,_0x1e3c24){return _0x11b7ab(_0x480a28,_0x1e3c24-0x1e);}function _0x476b3c(_0x17acec,_0x51f176){return _0x11b7ab(_0x17acec,_0x51f176- -_0x53355._0x3f5242);}return _0x48c3c1[_0x476b3c(0x7d,-_0x315638._0x2405c1)]();}function normalizeText(_0x59cc62){const _0x46239e={_0x20cdf5:0x498,_0x1cea43:0x240,_0x362284:0x24b,_0x1a39c4:0x2aa,_0x5c99e2:0x242,_0xcaff16:0x79,_0x4fa059:0x329,_0x31cda9:0x3de,_0x3a8a44:0x2c2,_0xeaf4be:0x3b8,_0x5d3452:0x1ce,_0x1df5fa:0x3b7,_0x1091b3:0x5a},_0x356cc1={_0x470d3c:0x1e3},_0x58dc68={};function _0x3b8f3b(_0x2b4943,_0x160ca9){return _0x11b7ab(_0x2b4943,_0x160ca9-0x2c6);}_0x58dc68['lrdDI']=function(_0x4a541c,_0x5a85e6){return _0x4a541c===_0x5a85e6;},_0x58dc68[_0x3b8f3b(0x59f,_0x46239e._0x20cdf5)]=_0x3b8f3b(_0x46239e._0x1cea43,_0x46239e._0x362284);const _0x53828f=_0x58dc68;function _0x54d2a1(_0x189ce5,_0x4baabd){return _0x11b7ab(_0x189ce5,_0x4baabd- -_0x356cc1._0x470d3c);}if(_0x53828f[_0x3b8f3b(_0x46239e._0x1a39c4,_0x46239e._0x5c99e2)](typeof _0x59cc62,_0x53828f['eEaTP']))return _0x59cc62;if(Buffer['isBuffer'](_0x59cc62))return _0x59cc62[_0x54d2a1(-0xa0,-_0x46239e._0xcaff16)](_0x3b8f3b(_0x46239e._0x4fa059,_0x46239e._0x31cda9));if(Array[_0x3b8f3b(_0x46239e._0x3a8a44,0x355)](_0x59cc62))return Buffer[_0x3b8f3b(_0x46239e._0xeaf4be,_0x46239e._0x5d3452)](_0x59cc62)[_0x3b8f3b(0x61d,0x430)](_0x3b8f3b(0x4ef,0x3de));if(_0x59cc62 instanceof ArrayBuffer)return Buffer[_0x3b8f3b(_0x46239e._0x1df5fa,0x26d)](_0x59cc62)[_0x54d2a1(-_0x46239e._0x1091b3,-0x79)]('utf8');return null;}function normalizeBinary(_0x280c86){const _0x55382d={_0x2c8705:0x613,_0x3714fd:0x111,_0xe126c4:0x3d5,_0x377594:0x26b,_0x246311:0x42b},_0x128a56={_0x56c656:0x3a9},_0x5deb79={};_0x5deb79[_0x2ebbe3(_0x55382d._0x2c8705,0x5b4)]=_0x2ebbe3(_0x55382d._0x3714fd,0x249);const _0x3d71ea=_0x5deb79;if(Buffer[_0x2ebbe3(_0x55382d._0xe126c4,0x362)](_0x280c86))return _0x280c86;if(typeof _0x280c86===_0x3d71ea['qXznS'])return Buffer[_0x2ebbe3(0xbd,_0x55382d._0x377594)](_0x280c86,_0x2ebbe3(0x2a1,0x3dc));function _0x95cf06(_0x5799bd,_0x323828){return _0x11b7ab(_0x323828,_0x5799bd-_0x128a56._0x56c656);}if(Array['isArray'](_0x280c86))return Buffer[_0x95cf06(0x2b1,_0x55382d._0x246311)](_0x280c86);function _0x2ebbe3(_0x494ace,_0x1f49d7){return _0x11b7ab(_0x494ace,_0x1f49d7-0x2c4);}return Buffer['from'](_0x280c86);}function readRecentCliLogs(_0x45e35f){const _0x65e7a1={_0x5eedb2:0xac,_0x28d855:0x123,_0x20334f:0x162,_0x47da51:0xc5,_0xfdee67:0x81,_0x1cad3f:0x188,_0x179e05:0x278,_0x1a775e:0x599,_0x1b7d8f:0x5cf},_0x2c827e={_0xa9b0b1:0x42a},_0x47b53f={_0x431391:0xdf},_0x4b037d={'pITVk':function(_0x4e0d10){return _0x4e0d10();},'XdkVq':function(_0xbabde0,_0x589783){return _0xbabde0-_0x589783;},'cyCIR':function(_0x2b7e89,_0x25900f){return _0x2b7e89==_0x25900f;}},{logPath:_0xe3fa46,errorLogPath:_0x181979}=_0x4b037d[_0x27293e(-_0x65e7a1._0x5eedb2,-_0x65e7a1._0x28d855)](getServicePaths);function _0x27293e(_0x17304d,_0x504518){return _0x11b7ab(_0x504518,_0x17304d- -_0x47b53f._0x431391);}const _0x598511=clampLines(_0x45e35f?.[_0x27293e(0xcc,_0x65e7a1._0x20334f)]??0xc8),_0x46dd6e=_0x45e35f?.[_0x27293e(_0x65e7a1._0x47da51,-0x104)]??null,_0x5ea1e1=_0x46dd6e!=null?_0x4b037d['XdkVq'](Date[_0x27293e(-0x49,0x102)](),_0x46dd6e):null,_0x1cac05=[_0xe3fa46];function _0x26838a(_0x3e62f4,_0x1be382){return _0x11b7ab(_0x1be382,_0x3e62f4-_0x2c827e._0xa9b0b1);}_0x45e35f?.[_0x27293e(-0x105,-_0x65e7a1._0xfdee67)+_0x27293e(-0x1a,-_0x65e7a1._0x1cad3f)]&&_0x1cac05['push'](_0x181979);const _0x25b91c=_0x1cac05['flatMap'](_0x147324=>readLogFile(_0x147324)),_0x5d5405=_0x4b037d['cyCIR'](_0x5ea1e1,null)?_0x25b91c:_0x25b91c[_0x26838a(0x365,_0x65e7a1._0x179e05)](_0x31c89a=>_0x31c89a['ts']!=null&&_0x31c89a['ts']>=_0x5ea1e1);return _0x5d5405[_0x26838a(_0x65e7a1._0x1a775e,_0x65e7a1._0x1b7d8f)](-_0x598511)['map'](_0x4acfc6=>_0x4acfc6[_0x26838a(0x4d0,0x413)]);}async function buildDoctorReport(){const _0x969404={_0x4d4ef7:0x118,_0x490a15:0x283,_0x5cf9ac:0x162,_0x1e9e26:0xc4,_0x4693c0:0xb7,_0x5b79a0:0x1b1,_0x435ae5:0x3ad,_0x55c0c8:0x2e3,_0x5968b1:0x210,_0x50d2e2:0x13d,_0x1fc8b6:0x62c,_0x20160:0x67d,_0x18eb94:0x4ee,_0x522075:0x12c,_0x33c488:0x333,_0x1cb280:0x46},_0x18f6f1={_0x360a7b:0x54a},_0x54a0e5={'uYyce':function(_0x5cff2d){return _0x5cff2d();},'OExaC':function(_0x4890c8,_0x1cd4ef){return _0x4890c8(_0x1cd4ef);}},_0x653728=_0x54a0e5[_0x28a310(0x6f8,0x569)](readPairingConfig);function _0x2fbb7c(_0x31ca4a,_0x415341){return _0x11b7ab(_0x415341,_0x31ca4a- -0xe9);}function _0x28a310(_0x5a14dc,_0x1984ac){return _0x11b7ab(_0x5a14dc,_0x1984ac-_0x18f6f1._0x360a7b);}const _0xade7a3=getServiceStatus(),_0x4b6099=_0x54a0e5['uYyce'](readOpenClawInfo),_0x311dfd=resolveGatewayUrl(),_0x1a2f24=await checkGatewayReachable(_0x311dfd);return{'paired':Boolean(_0x653728),'gatewayId':_0x653728?.['gatewayI'+'d']??null,'serverUrl':_0x653728?.[_0x2fbb7c(-0xa9,_0x969404._0x4d4ef7)+'l']??null,'relayUrl':_0x653728?.[_0x2fbb7c(-0x1d8,-_0x969404._0x490a15)]??null,'instanceId':_0x653728?.[_0x2fbb7c(-0xbf,-0x13d)+'Id']??null,'serviceInstalled':_0xade7a3[_0x2fbb7c(0x128,_0x969404._0x5cf9ac)+'d'],'serviceRunning':_0xade7a3[_0x2fbb7c(-_0x969404._0x1e9e26,-0xca)],'serviceMethod':_0xade7a3[_0x2fbb7c(-0x100,_0x969404._0x4693c0)],'servicePath':_0xade7a3[_0x2fbb7c(_0x969404._0x5b79a0,_0x969404._0x435ae5)+'ath'],'logPath':_0xade7a3[_0x2fbb7c(0x210,_0x969404._0x55c0c8)],'errorLogPath':_0xade7a3['errorLog'+_0x2fbb7c(-0xef,-_0x969404._0x5968b1)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x4b6099[_0x2fbb7c(_0x969404._0x50d2e2,0x182)+_0x28a310(0x5fd,_0x969404._0x1fc8b6)],'openclawAuthMode':_0x4b6099[_0x28a310(0x851,0x7ad)],'openclawTokenFound':_0x54a0e5[_0x28a310(_0x969404._0x20160,_0x969404._0x18eb94)](Boolean,_0x4b6099[_0x2fbb7c(_0x969404._0x522075,-0x8b)]),'openclawPasswordFound':_0x54a0e5[_0x28a310(_0x969404._0x33c488,_0x969404._0x18eb94)](Boolean,_0x4b6099[_0x2fbb7c(_0x969404._0x1cb280,-0x1a4)]),'localGatewayUrl':_0x311dfd,'localGatewayReachable':_0x1a2f24};}async function ensurePairPrerequisites(){const _0x21902d={_0x25b96b:0x18e,_0x33a5da:0x2cc,_0x32af07:0x36c,_0x399feb:0xf1,_0x552706:0x50e,_0x249540:0x43b,_0x60b960:0x3f0,_0xe090b2:0x1fb,_0x5b39bd:0x6d,_0x1348d5:0xf8,_0x2c4791:0x1cb,_0x175558:0x3d3,_0x2b6cf6:0xc5,_0x5a38d0:0x1c1,_0x39e07f:0x36a,_0x27fff9:0x20c,_0x37e538:0x51,_0x3438cc:0x74},_0x3f6c50={_0x5028b6:0x92},_0x154daa=await buildDoctorReport(),_0x5c3df5=listPairPrerequisiteFailures(_0x154daa);if(_0x5c3df5['length']>0x0)throw new Error(['Cannot\x20c'+_0xcdb151(_0x21902d._0x25b96b,0x1a5)+_0xcdb151(0x256,_0x21902d._0x33a5da)+'\x20pair`\x20b'+_0xcdb151(_0x21902d._0x32af07,0x1ce)+'ocal\x20Ope'+_0x36586e(_0x21902d._0x399feb,-0x14)+_0xcdb151(_0x21902d._0x552706,0x3b9)+'tes\x20are\x20'+_0xcdb151(0x4a7,0x352)+'y.',..._0x5c3df5[_0xcdb151(0x4a3,_0x21902d._0x249540)](_0xc9869e=>'-\x20'+_0xc9869e),'Run\x20`cla'+_0xcdb151(_0x21902d._0x60b960,0x20a)+_0x36586e(_0x21902d._0xe090b2,_0x21902d._0x5b39bd)+_0x36586e(_0x21902d._0x1348d5,0x2ee)+'tails,\x20o'+_0x36586e(_0x21902d._0x2c4791,0x2bd)+'lawket\x20p'+_0x36586e(0xea,0x80)+'rce`\x20onl'+_0x36586e(_0x21902d._0x175558,0x326)+_0x36586e(-_0x21902d._0x2b6cf6,0x9c)+'onally\x20w'+_0xcdb151(0x1ba,0x2ba)+_0xcdb151(_0x21902d._0x5a38d0,0x38e)+_0x36586e(_0x21902d._0x39e07f,_0x21902d._0x27fff9)+'y\x20check.'][_0x36586e(-_0x21902d._0x37e538,_0x21902d._0x3438cc)]('\x0a'));function _0x36586e(_0x4c93c9,_0x34d4df){return _0x11b7ab(_0x4c93c9,_0x34d4df-_0x3f6c50._0x5028b6);}function _0xcdb151(_0x52d642,_0x147c54){return _0x11b7ab(_0x52d642,_0x147c54-0x259);}return _0x154daa;}function listPairPrerequisiteFailures(_0x5c0ed4){const _0x20a570={_0x3e8af6:0x1b5,_0x22d7de:0x516,_0x2c0d0c:0x827,_0x2e901d:0x1a6,_0x59b26e:0x32,_0x2ebbaa:0x576,_0x1d61cf:0x74f,_0x36661a:0x335,_0x3e9b7a:0x61c,_0x4c02fb:0x3d1,_0xe13c2e:0x6e8,_0x192c01:0x3f2,_0x54ad72:0x3bb,_0x5f27d3:0x275,_0x24d4aa:0x20a,_0x2d6d52:0x5bd,_0x2b5456:0x65b,_0x1b71f6:0x79d,_0x338f2c:0x5b8,_0x3e613f:0x53d,_0x53eec6:0x2b0,_0x4f4b07:0x2eb,_0x509ad3:0x2ff,_0x4eaa58:0x349,_0x21a86c:0x48b,_0x20a2d9:0x10c,_0x3fddfb:0x98,_0x539292:0x4cc,_0x44b8fa:0x674,_0x371078:0x840,_0x24c9d7:0x2a6,_0x41971d:0x1cc,_0x5458f7:0x474,_0x317ee6:0x6e8,_0x58fa6a:0x789,_0x5604c8:0x22f,_0x22cb6b:0x23a,_0x6ed9b:0x18e,_0xa68f51:0x925,_0x284020:0x131,_0x5f1bdd:0x31,_0x397918:0x20a,_0x2e7fa5:0x17d,_0x3232a2:0x130,_0x6b839f:0x6e8,_0x25e2ee:0x739,_0x4c7b39:0x6d1,_0x3f4336:0x5b8,_0x32394a:0x349,_0x4524f4:0x53c,_0x20c84c:0x65d,_0x10bd1e:0x4c9,_0x534160:0x8cc,_0x3eddce:0x7dd,_0xa1a5f8:0x81b,_0x25cc97:0x75c,_0x3e7bd6:0x5cc,_0x4b14b3:0x620,_0x18e2e0:0x19c,_0x15f6d9:0xfb,_0x2399fb:0x27},_0x50a935={};_0x50a935[_0x53120d(_0x20a570._0x3e8af6,0x1ae)]=function(_0x134d28,_0x423f0a){return _0x134d28==_0x423f0a;},_0x50a935[_0x53de33(0x53a,_0x20a570._0x22d7de)]=_0x53de33(0x9b4,_0x20a570._0x2c0d0c)+_0x53120d(_0x20a570._0x2e901d,-_0x20a570._0x59b26e)+'\x20auth\x20is'+_0x53de33(0x3d9,_0x20a570._0x2ebbaa)+_0x53de33(_0x20a570._0x1d61cf,0x7f8)+_0x53120d(0x477,_0x20a570._0x36661a)+_0x53de33(_0x20a570._0x3e9b7a,0x7af);function _0x53de33(_0x41d4af,_0x3e3702){return _0x6eb3(_0x41d4af,_0x3e3702-0x5ad);}_0x50a935[_0x53120d(_0x20a570._0x4c02fb,0x25b)]='password';function _0x53120d(_0x5f5b4f,_0x226d42){return _0x6eb3(_0x5f5b4f,_0x226d42-0xcf);}const _0x3b06a9=_0x50a935,_0x398f49=[];return!_0x5c0ed4[_0x53de33(0x5c5,_0x20a570._0xe13c2e)+_0x53120d(_0x20a570._0x192c01,0x31e)+'und']&&_0x398f49[_0x53120d(_0x20a570._0x54ad72,0x2ff)]('OpenClaw'+_0x53de33(0x5fd,0x55b)+_0x53120d(0x1dc,_0x20a570._0x5f27d3)+_0x53de33(0x2fa,0x4d1)+'der\x20~/.o'+'penclaw/'+'.'),_0x5c0ed4[_0x53120d(0x3f,_0x20a570._0x24d4aa)+_0x53de33(_0x20a570._0x2d6d52,_0x20a570._0x2b5456)+'nd']&&_0x5c0ed4[_0x53120d(0x13d,0x20a)+_0x53de33(_0x20a570._0x1b71f6,_0x20a570._0x338f2c)+'Found']&&_0x3b06a9[_0x53de33(_0x20a570._0x3e613f,0x68c)](_0x5c0ed4[_0x53120d(0x216,0x20a)+_0x53de33(_0x20a570._0x53eec6,0x4ad)],null)&&_0x398f49[_0x53120d(_0x20a570._0x4f4b07,_0x20a570._0x509ad3)](_0x53120d(0x2d9,_0x20a570._0x4eaa58)+_0x53de33(0x409,_0x20a570._0x21a86c)+_0x53120d(0x7f,_0x20a570._0x20a2d9)+_0x53120d(-_0x20a570._0x3fddfb,0x16b)+_0x53de33(0x765,0x58b)+_0x53de33(_0x20a570._0x539292,_0x20a570._0x44b8fa)+_0x53de33(0x811,_0x20a570._0x371078)+_0x53de33(0x578,0x775)+_0x53120d(_0x20a570._0x24c9d7,_0x20a570._0x41971d)+_0x53de33(0x369,_0x20a570._0x5458f7)+'s\x20unset.'),!_0x5c0ed4[_0x53de33(0x6a7,_0x20a570._0x317ee6)+_0x53de33(_0x20a570._0x58fa6a,_0x20a570._0x2b5456)+'nd']&&!_0x5c0ed4[_0x53de33(0x738,0x6e8)+_0x53120d(_0x20a570._0x5604c8,0xda)+_0x53120d(_0x20a570._0x22cb6b,_0x20a570._0x6ed9b)]&&_0x398f49[_0x53de33(_0x20a570._0xa68f51,0x7dd)](_0x3b06a9[_0x53de33(0x5b1,0x516)]),_0x5c0ed4['openclaw'+_0x53120d(_0x20a570._0x284020,-_0x20a570._0x5f1bdd)]==='token'&&!_0x5c0ed4[_0x53120d(0x322,_0x20a570._0x397918)+_0x53120d(0x83,_0x20a570._0x2e7fa5)+'nd']&&_0x398f49[_0x53120d(_0x20a570._0x3232a2,0x2ff)]('OpenClaw'+'\x20gateway'+_0x53120d(0x285,0x13b)+'s\x20missin'+'g.'),_0x5c0ed4[_0x53de33(0x6be,_0x20a570._0x6b839f)+_0x53120d(-0x15c,-0x31)]===_0x3b06a9[_0x53de33(0x755,_0x20a570._0x25e2ee)]&&!_0x5c0ed4[_0x53de33(0x768,0x6e8)+_0x53de33(_0x20a570._0x4c7b39,_0x20a570._0x3f4336)+'Found']&&_0x398f49[_0x53120d(0x1ae,0x2ff)](_0x53120d(0x4e5,_0x20a570._0x32394a)+_0x53de33(0x693,0x4ac)+_0x53de33(0x6c1,_0x20a570._0x4524f4)+'d\x20is\x20mis'+'sing.'),!_0x5c0ed4[_0x53de33(_0x20a570._0x20c84c,_0x20a570._0x10bd1e)+'ewayReac'+'hable']&&_0x398f49[_0x53de33(_0x20a570._0x534160,_0x20a570._0x3eddce)](_0x53de33(0x614,_0x20a570._0xa1a5f8)+_0x53de33(_0x20a570._0x25cc97,0x555)+_0x53de33(_0x20a570._0x3e7bd6,_0x20a570._0x4b14b3)+_0x53120d(_0x20a570._0x18e2e0,_0x20a570._0x15f6d9)+_0x53de33(0x84d,0x743)+_0x53de33(0x440,0x5c8)+_0x5c0ed4['localGat'+_0x53120d(_0x20a570._0x2399fb,0x1b9)]+'.'),_0x398f49;}function readLogFile(_0x52a076){const _0x121569={_0x56bfdc:0x34,_0x1a0d83:0x1ac,_0x44edee:0xd1,_0x20fa41:0x7b,_0x5207a9:0x151,_0x1367b2:0x14e,_0x431850:0x21f},_0x479700={_0x5b0193:0x9d},_0x31dc53={_0x1d19e5:0x132},_0x79b675={};_0x79b675[_0x41afa9(_0x121569._0x56bfdc,_0x121569._0x1a0d83)]=_0x2b7f29(_0x121569._0x44edee,_0x121569._0x20fa41);function _0x41afa9(_0x15a25e,_0x13735c){return _0x11b7ab(_0x13735c,_0x15a25e- -_0x31dc53._0x1d19e5);}const _0x53942e=_0x79b675;function _0x2b7f29(_0x68661a,_0x363d53){return _0x11b7ab(_0x68661a,_0x363d53- -_0x479700._0x5b0193);}try{const _0x1a83ac=_0x365046(_0x52a076,_0x53942e[_0x41afa9(_0x121569._0x56bfdc,-_0x121569._0x5207a9)]);return _0x1a83ac[_0x41afa9(0x59,_0x121569._0x1367b2)](/\r?\n/)[_0x41afa9(-0x1f7,-_0x121569._0x431850)](Boolean)['map'](_0x127ffd=>({'raw':_0x127ffd,'ts':parseTimestamp(_0x127ffd)}));}catch{return[];}}function parseTimestamp(_0x384af4){const _0x31f7a9={_0x281181:0x299,_0x507627:0x3c7,_0x59c771:0x54b,_0x1489bb:0x324},_0x9f6a46={_0xd4d451:0x5ad},_0x4aff37={'JsUdl':function(_0x3c708b,_0x17a2b2){return _0x3c708b(_0x17a2b2);}},_0x12f088=_0x384af4[_0x4f5abf(0x329,_0x31f7a9._0x281181)](/^\[(\d{13})\]\s/);if(!_0x12f088)return null;function _0x4f5abf(_0x325d59,_0x13d596){return _0x6eb3(_0x325d59,_0x13d596-0x2ae);}function _0x51a0ad(_0x331ad5,_0x564bfd){return _0x6eb3(_0x564bfd,_0x331ad5-_0x9f6a46._0xd4d451);}const _0x4f1733=_0x4aff37[_0x4f5abf(_0x31f7a9._0x507627,_0x31f7a9._0x59c771)](Number,_0x12f088[0x1]);return Number[_0x4f5abf(_0x31f7a9._0x1489bb,0x3e7)](_0x4f1733)?_0x4f1733:null;}function clampLines(_0x3b8b00){const _0x282cd4={_0x4c7ba5:0x31a,_0x1c403e:0x72,_0x398d42:0x1b2},_0xb8d25e={_0x147b4d:0x178};function _0x23b168(_0x4e58a5,_0x5895a5){return _0x11b7ab(_0x4e58a5,_0x5895a5- -0x7);}if(!Number[_0x23b168(_0x282cd4._0x4c7ba5,0x174)](_0x3b8b00))return 0xc8;function _0x553840(_0xc64380,_0x4ce05e){return _0x11b7ab(_0x4ce05e,_0xc64380- -_0xb8d25e._0x147b4d);}return Math[_0x553840(-_0x282cd4._0x1c403e,-0x148)](0x1,Math[_0x553840(-0x110,-_0x282cd4._0x398d42)](0x7d0,Math['floor'](_0x3b8b00)));}async function checkGatewayReachable(_0x170bf9){const _0x25cdc5={_0x5af2aa:0x681,_0x1b4a82:0x6b5,_0xf2f9d0:0x5a5,_0x1aab8a:0x568,_0x270b26:0x12,_0x12a43a:0x158,_0x1a5adb:0x1e5,_0x386db7:0x297},_0x457cdd={_0x343fe8:0x5fe,_0x155a2c:0xa1,_0x411f12:0x6d7,_0x9f2cfa:0x705},_0x4eb4b8={_0x3cc5b0:0x213},_0x4bfa42={_0x22e367:0x494,_0x51bfb9:0x4a0,_0x295fc6:0x469},_0x5e6f86={_0x162401:0x4f8};function _0x9bb85c(_0xc3b09d,_0xcb35c3){return _0x6eb3(_0xc3b09d,_0xcb35c3-_0x5e6f86._0x162401);}function _0x94cb64(_0x8ce948,_0x31c11d){return _0x6eb3(_0x31c11d,_0x8ce948- -0x131);}const _0x294972={'ISdZg':function(_0x136cca){return _0x136cca();},'vkBfO':function(_0x49ecb9,_0x5e94c2){return _0x49ecb9(_0x5e94c2);},'SNREB':'timeout'};try{const _0x390e70=new URL(_0x170bf9),_0x5a9297=_0x390e70[_0x9bb85c(_0x25cdc5._0x5af2aa,_0x25cdc5._0x1b4a82)]||_0x9bb85c(_0x25cdc5._0xf2f9d0,_0x25cdc5._0x1aab8a)+'1',_0x593284=_0x390e70[_0x94cb64(-_0x25cdc5._0x270b26,-_0x25cdc5._0x12a43a)]?Number(_0x390e70[_0x94cb64(-0x12,0x4e)]):_0x390e70[_0x94cb64(-_0x25cdc5._0x1a5adb,-_0x25cdc5._0x386db7)]==='wss:'?0x1bb:0x50;return await new Promise((_0x214144,_0x45df04)=>{const _0x5e71d1={_0x549374:0x129},_0x29d986=new Socket();_0x29d986[_0x3d158a(0x168,0x1ee)+'ut'](0x384),_0x29d986['once'](_0x255d9d(0x6d7,0x6c3),()=>{function _0x21f34c(_0x3150c2,_0x15c5e8){return _0x3d158a(_0x15c5e8,_0x3150c2-0x4e7);}function _0x43b7e2(_0x2a2e59,_0x136ce5){return _0x3d158a(_0x2a2e59,_0x136ce5-0x5b8);}_0x29d986[_0x21f34c(_0x4bfa42._0x22e367,0x342)](),_0x294972[_0x43b7e2(_0x4bfa42._0x51bfb9,_0x4bfa42._0x295fc6)](_0x214144);});function _0x255d9d(_0x3b210c,_0x5c3b1f){return _0x94cb64(_0x3b210c-0x5f8,_0x5c3b1f);}function _0x3d158a(_0x5b002b,_0x4141a8){return _0x94cb64(_0x4141a8-_0x5e71d1._0x549374,_0x5b002b);}_0x29d986[_0x255d9d(_0x457cdd._0x343fe8,0x56e)]('timeout',()=>{_0x29d986[_0x5d718c(0x316,0x473)]();function _0x3d4a91(_0x4afb1f,_0x2e31e8){return _0x3d158a(_0x4afb1f,_0x2e31e8-0x116);}function _0x5d718c(_0x480250,_0xd4a116){return _0x3d158a(_0x480250,_0xd4a116-0x4c6);}_0x294972[_0x3d4a91(_0x4eb4b8._0x3cc5b0,0xac)](_0x45df04,new Error(_0x294972['SNREB']));}),_0x29d986[_0x255d9d(_0x457cdd._0x343fe8,0x60e)](_0x3d158a(-0xd1,-_0x457cdd._0x155a2c),_0x440b3c=>{_0x29d986[_0x1b96ba(0x228,0x28f)]();function _0x1b96ba(_0x311bf9,_0xc26245){return _0x3d158a(_0x311bf9,_0xc26245-0x2e2);}_0x45df04(_0x440b3c);}),_0x29d986[_0x255d9d(_0x457cdd._0x411f12,_0x457cdd._0x9f2cfa)](_0x593284,_0x5a9297);}),!![];}catch{return![];}}function parseLookbackToMs(_0x3b99f0){const _0x53b410={_0x4d0504:0x402,_0x387909:0xb9,_0x509537:0x97,_0xfc6775:0x1c8,_0xe385e5:0x1bb,_0x278850:0xad,_0x56a9a1:0xc3,_0x327008:0x9d,_0x1e2f04:0xae,_0x342598:0x219,_0x21499f:0x68,_0x221754:0x20b},_0x14707e={_0x46b90f:0x7d},_0x5b58e4={};_0x5b58e4[_0x18b5ba(0x256,_0x53b410._0x4d0504)]=function(_0x5ca719,_0x4fe671){return _0x5ca719===_0x4fe671;},_0x5b58e4[_0x3b3bd3(0x1a6,0x12c)]=function(_0x53f20f,_0x53c1b6){return _0x53f20f===_0x53c1b6;},_0x5b58e4[_0x3b3bd3(-0x68,-0xc4)]=function(_0x42e8ef,_0x597a19){return _0x42e8ef*_0x597a19;};const _0x98f27e=_0x5b58e4,_0x5eb7be=_0x3b99f0?.['trim']();if(!_0x5eb7be)return null;const _0x21cf22=_0x5eb7be['match'](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x21cf22)throw new Error(_0x18b5ba(_0x53b410._0x387909,-0x4d)+'--last\x20v'+_0x3b3bd3(0x272,0x3af)+_0x5eb7be+(_0x18b5ba(-0x71,-0x26f)+_0x18b5ba(-_0x53b410._0x509537,-_0x53b410._0xfc6775)+_0x3b3bd3(0x42,-_0x53b410._0xe385e5)+_0x3b3bd3(-_0x53b410._0x278850,_0x53b410._0x56a9a1)+_0x3b3bd3(0x178,_0x53b410._0x327008)));function _0x18b5ba(_0x2dcaf8,_0x13608c){return _0x11b7ab(_0x13608c,_0x2dcaf8- -0x1);}const _0x2dc636=Number(_0x21cf22[0x1]);function _0x3b3bd3(_0x1eaebb,_0x54e608){return _0x11b7ab(_0x54e608,_0x1eaebb- -_0x14707e._0x46b90f);}const _0x5956b4=_0x21cf22[0x2][_0x18b5ba(_0x53b410._0x1e2f04,0x2b6)+_0x3b3bd3(0x223,_0x53b410._0x342598)](),_0x4ba285=_0x5956b4==='ms'?0x1:_0x98f27e['BYfay'](_0x5956b4,'s')?0x3e8:_0x98f27e['VffYQ'](_0x5956b4,'m')?0xea60:_0x5956b4==='h'?0x36ee80:0x5265c00;return _0x98f27e[_0x3b3bd3(-_0x53b410._0x21499f,-_0x53b410._0x221754)](_0x2dc636,_0x4ba285);}import{readFileSync as _0x3cde9d}from'fs';import{dirname as _0x2d8c2e,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x216001={_0x595b6c:0x5bf,_0x63bbef:0x1ac,_0x173d2a:0x45c,_0x2d5d2d:0x450,_0x4fa236:0x411},_0x3cdee3={_0x576f4b:0x3fa},_0x1018b3={_0x1c31eb:0x6},_0x285aa0={'uxdff':function(_0x42c5dc,_0x592049,_0x564b59){return _0x42c5dc(_0x592049,_0x564b59);}};function _0x56551d(_0x2f378f,_0x1da5c2){return _0x11b7ab(_0x2f378f,_0x1da5c2-_0x1018b3._0x1c31eb);}const _0x62832=_0x2d8c2e(fileURLToPath(import.meta.url)),_0x3610d5=_0x285aa0[_0x4073fe(_0x216001._0x595b6c,0x5ea)](resolve,_0x62832,_0x4073fe(0x840,0x6fa)+'ge.json'),_0x4c74e6=_0x3cde9d(_0x3610d5,_0x56551d(_0x216001._0x63bbef,0x11e)),_0x2fa16a=JSON[_0x4073fe(0x63e,_0x216001._0x173d2a)](_0x4c74e6);function _0x4073fe(_0x19497d,_0x4e1b30){return _0x11b7ab(_0x19497d,_0x4e1b30-_0x3cdee3._0x576f4b);}return _0x2fa16a[_0x4073fe(_0x216001._0x2d5d2d,_0x216001._0x4fa236)]??'unknown';}function buildPairingJson(_0x558b29,_0x3c1002,_0x419fe3,_0x4f3b6b){const _0x30fa3a={_0x49b707:0x3dc,_0x3e956d:0x113,_0x4dd84f:0x33,_0xed5a09:0x9,_0x46bf6f:0x1d3,_0x26e514:0x2a1,_0x931926:0x129,_0x13512c:0xcd,_0xeb8e8c:0xfb,_0xf86613:0x15d,_0x201921:0x247,_0xddc854:0x148,_0x276969:0x1c1,_0x20758e:0xf9,_0x30c328:0x1a1,_0x5a1f25:0x2e,_0x4a2494:0x1,_0x552a2a:0x1fb,_0x2b9aac:0x1d,_0x447fc:0x55,_0x45cf03:0x25b,_0x459e2b:0x15c,_0x29a0a1:0x38,_0x12fec2:0x54,_0x198b31:0x90,_0x675bc6:0x188,_0x165c4b:0x250,_0x2e4c70:0x1b8,_0x173735:0x208,_0x2220b5:0xe5,_0x401641:0x238,_0xd4229e:0x245},_0x2a6b7d={};_0x2a6b7d[_0xefacd7(_0x30fa3a._0x49b707,0x21f)+'d']=_0x419fe3['installe'+'d'],_0x2a6b7d[_0xefacd7(-_0x30fa3a._0x3e956d,_0x30fa3a._0x4dd84f)]=_0x419fe3[_0xefacd7(0xa1,_0x30fa3a._0x4dd84f)],_0x2a6b7d[_0xefacd7(0x42,-_0x30fa3a._0xed5a09)]=_0x419fe3[_0xefacd7(0x177,-0x9)];function _0x238c24(_0x219130,_0x198837){return _0x11b7ab(_0x219130,_0x198837- -0x19c);}_0x2a6b7d[_0xefacd7(_0x30fa3a._0x46bf6f,0x2a8)+_0x238c24(_0x30fa3a._0x26e514,_0x30fa3a._0x931926)]=_0x419fe3[_0xefacd7(0x200,0x2a8)+_0x238c24(_0x30fa3a._0x13512c,0x129)],_0x2a6b7d[_0xefacd7(0x1db,0x307)]=_0x419fe3[_0x238c24(_0x30fa3a._0xeb8e8c,_0x30fa3a._0xf86613)],_0x2a6b7d[_0x238c24(-_0x30fa3a._0x201921,-_0x30fa3a._0xddc854)+_0x238c24(-0xb1,-0x1a2)]=_0x419fe3[_0xefacd7(-0x14c,0x62)+'Path'],_0x2a6b7d[_0xefacd7(-_0x30fa3a._0x276969,-_0x30fa3a._0x20758e)]=_0x419fe3[_0xefacd7(-0x85,-0xf9)];const _0x303eb1={};_0x303eb1['ok']=!![],_0x303eb1[_0xefacd7(_0x30fa3a._0x30c328,-0x2e)]=_0x558b29[_0xefacd7(0xfe,-_0x30fa3a._0x5a1f25)];function _0xefacd7(_0x2724d6,_0x5b2150){return _0x11b7ab(_0x2724d6,_0x5b2150-0xe);}return _0x303eb1['message']=_0x4f3b6b,_0x303eb1['gatewayI'+'d']=_0x558b29[_0x238c24(_0x30fa3a._0x4a2494,-0x156)][_0xefacd7(0x2df,_0x30fa3a._0x552a2a)+'d'],_0x303eb1['relayUrl']=_0x558b29[_0xefacd7(-_0x30fa3a._0x2b9aac,0x54)][_0x238c24(-0x3ae,-0x28b)],_0x303eb1[_0xefacd7(_0x30fa3a._0x447fc,0x4e)+'l']=_0x558b29['config'][_0x238c24(-_0x30fa3a._0x45cf03,-_0x30fa3a._0x459e2b)+'l'],_0x303eb1[_0xefacd7(0x17f,_0x30fa3a._0x29a0a1)+'Id']=_0x558b29[_0xefacd7(-0xf3,_0x30fa3a._0x12fec2)]['instance'+'Id'],_0x303eb1[_0x238c24(-_0x30fa3a._0x198b31,-_0x30fa3a._0x675bc6)+'de']=_0x558b29[_0x238c24(-0x2f1,-0x188)+'de'],_0x303eb1[_0x238c24(-0xb7,-0x188)+_0xefacd7(_0x30fa3a._0x165c4b,_0x30fa3a._0x2e4c70)+_0x238c24(-0x27d,-_0x30fa3a._0x173735)]=_0x558b29[_0x238c24(-0x25,-_0x30fa3a._0x675bc6)+'deExpire'+_0x238c24(-0x133,-0x208)],_0x303eb1[_0xefacd7(_0x30fa3a._0x2220b5,0x1ac)+_0xefacd7(_0x30fa3a._0x401641,0x2d3)]=_0x3c1002,_0x303eb1[_0x238c24(-_0x30fa3a._0xd4229e,-0xb8)]=_0x2a6b7d,_0x303eb1;}import{mkdirSync as _0x3abe96,writeFileSync as _0x2d9822}from'fs';function _0x39fb(){const _0x5735ef=['t3DRshG','u2jKs2i','zhrKiJ4kpha','B25Uzwn0','zuvHvfa','ANnVBG','lxnLCNzPy2u','BM5Ly3qGzhi','zfHJCe0','CNvU','ywnOywjSzsa','Ahr0Chm6lY8','Dw5UAw5N','BNvTyMvY','zYbWyxrOoIa','ihvUy2HHBMC','ls1LCNjVCNm','C2vHCMnOuge','CMvNAxn0zxi','CNnZBfy','BwfW','zxj2AwnLige','Axn0lteUmc4','jMX0oW','pgTLEt5tDge','DwfSBhKU','D2fZig5VDca','jNf1B3q7','DwvZDcbWzw4','BgKTzxjYB3i','mZGYotyZnvjrAwjxqW','z2f0zxDHEuK','DvPlsMm','wKTmrMy','DxHKzMy','zfn6r2q','DcbHCha6cG','DgvK','ifSTlwzVCMm','B3iGmwqU','qNjPzgDLige','zevYCM9Yuge','zu9dDgO','DMLJzsbPBNm','pc9ZDhjPBMC','sxrZrvi','C3rVChbLza','BgXDcLDHBNq','C2uGy2fUy2u','Ag9ZDg5HBwu','BwuGBM90igy','ANbIr3y','u3rHCNrPBMC','yNjPzgDLlwm','ls1QC29Uxq','terHEuG','C3rYAw5NAwy','qvripsi','uMvTB3zLzca','C2LVBJ0Ims4','igj1DcbNyxq','wvvRBuu','A2LUza','zM9Yy2u','ihnLCNzPy2u','CLnfuKW','rxjYB3iGBg8','Aw5ZDgfSBgu','ntGWww1VA21e','y3jLyxrLzee','Eu9Wzw4','Dg9Rzw4','vhP2tNC','y2XPzw50x2m','zgv2AwnLtMe','y29UBMvJDc4','AgfUzhnOywS','zcbIywnRz3i','ruL5zgu','ig9Rpq','zxrYEurLBge','pGOGidXRzxK','A2v0','icbLEgvJig4','y2uGCMvNAxm','vMzMwve','C2vUzfrVr2e','z0jcBe8','y29UzMLNrM8','Dgv3yxK','BJOG','DwvZDcbYzxm','zxnOigzHAwW','CIb1C2uGygm','BMqGlxyGBM8','DcbKzw1HBMq','y2XLyxjuAw0','zsbWywLYAw4','BM90ihbHAxi','yKTmAuG','x1bbu1nxt1i','rxHWAxjLCZO','C3nHz2vZ','CM9YC10GwY0','u0Dls20','BNrYB2WGzxy','C2v0vgLTzw8','Cgzir0S','Ag90','lJaUmc4XoJe','zw47igf3ywK','zcbXDwv1zwq','wY0TANnVBL0','BhDNuKS','C29U','CMvN','tK9ux1bbsvi','CMvHC29Upq','B3jKks4','CxvLC3q','ihnPBMnLr2e','Au1pC0W','ig1VzguGDg8','uMvZDgfYDgu','u2vYDMLJzv0','BgfZDfnLzw4','CMvZ','BNbxA3i','u2vYDMLJztO','Bwu9','zxHLy1bHDgG','zxjZAw9Uxfi','y29UBMvJDa','zuTsA24','C3rVCeHLyxi','DgfSBgvKigi','BMC+','qLLMyxK','CxvLC3rjzd0','Aw1Hz2uVCg4','B3vUDf96zxi','DhjSk0mGDg8','ig1VCMuGzgu','Bgf3A2v0ihi','DgvYpw5LDhC','y2XPzw50x2q','rhvSCMq','ugDQrha','vw5HyMXLihq','yxv0Ae1Vzgu','CMLUzYbJB2q','zxHwB3a','BgLLBNrezw0','Dw5PBNn0ywW','C2v0','zw1HBMrFCMu','CNzPy2uGAw4','zw5Nzq','Bg9NCYbBls0','Es11CMW','DxbKyxrLzee','ienmssbZzxi','Cgf0AdOG','zwXHEq','ChvZAa','icaGidXZDhi','q2XHD2TLDei','igvYCM9Ypq','zw50rgvTyw4','Cez2uMS','A2LSBa','z2f0zxDHEvi','zwXVywq','BwfYA0rLDMK','yurmtwK','vxLkq3u','Dgv3yxLdB24','AxmGuviGy28','w3bHAxiTCMu','Bgf1BMnOywC','Et5mywjLBdW','Bgf5q29UDhi','teHdre4','qvriiIbDoYa','Dhj1zq','r2f0zxDHEsa','Et4kica8C3q','yxjNzxqkcLS','Dd4k','y29UzMLNig4','y1n0yxj0pq','icH0B2TLBIa','AwyGwYaTEca','ihnPBMnLq2W','y2XVC2vKoIa','q29UzMLNrM8','ugfPCMLUzYa','CMvSyxKGy2W','EsbPzIb5B3u','wgjRu0K','sciGCNvUic0','zMX1C2Hqzw4','EgDKwNi','CgvUtxm9','C2vYDMLJzva','DMfTr0m','A3nIA3i','CMvJB25Uzwm','AfDtuw4','phbHDgG+xsa','yxnL','CNzLCI4','zw5ZDxjLr2e','B2jZzxj2zum','EwjZu3a','B25SAw5LlNq','CMvHy2HHyMW','AwyGy29TBwe','B3iGCgfZC3C','zhKGC2nOzwq','yxbZAg90','lw5LDW','C2GGy2HHBgW','CgvU','DejHC2vezwW','A2LUz0rPCMu','tg9JywWGt3a','zgv2AwnLswq','CMvZzxq','lM9Wzw5JBge','C2uGy2XPzw4','B25qzw5KAw4','zNjHBwuG','CIbWyxnZD28','uKvrvuLsruq','z2f0zxDHEuG','jMfTCdS','tM8GBwf0y2G','t3bLBKnSyxC','C2vUza','CMvXDwvZDeK','w2nSyxDRzxq','ls11C2vY','y29UDhjVBf8','D2f5uMvXDwu','z2f0zxDHEum','AgfUzgXLuMu','yxrO','lMnSyxDRzxq','l0rurcbqteK','vMvYC2LVBJO','ruPqDwS','Aw5Jzq','BfDyv00','DgfYDdOG','y2XHD2TLDca','CMvWBgfJzue','iIrot0rfx1a','AxnJB25Uzwm','Be1Z','t1bftKnmqvC','qNjPzgDLigK','ls1Zzxj2Awm','zMLNDxjLzcW','yMHLAMK','mtmXq2XLALDk','D3m6lY8','BM9VCa','jJe7ihrOzw4','zgf0yq','wwzXtMW','CMv0','zunSB3nL','sNnvzgW','ywrK','zgv0ywnOzwq','tMfTztOG','nhWW','cLnJyw4GDgG','iurpq1rzueu','C3rHDhvZ','iYeVyMLUl3m','yNjPzgDLlxm','C29Tzq','y29UBMvJDfi','vgnHu2q','DMLJzsbMB3i','DgHLBG','D2LKDgG','ywX1zsaI','CvH6BLm','zgv2AwnLlNa','DgLTzwqGB3u','EwXoELq','yw1L','Dd4kica8A2u','yxrLD2f5twu','BxbSzqPfEgu','uviGAw1Hz2u','Bg9Nugf0Aa','BgfZDca8mM0','CNrIzwf0','zw5HyMXL','yxbWBgLJyxq','zxHPC3rPBMC','B2nRzxq','lI4VCgfJA2e','C3LZDgvTzc0','y2XPzw50rgu','lIbsDw4GiMm','tg9HzdWVA2u','zgLZy29UBMu','r1bwtwK','lMXVzW','tvzus2e','DgvKqxrnCW','Aw5Nr2f0zxC','zgv0ywLSCW','CgLK','z2f0zxDHEvm','svnKwMC','qxv0BY1PBNm','zwrcEt1Kzwy','ignVDw50pq','zxHPDenVzgu','u1fyvxa','BxrRy2S','D2LUmZi','C29YDa','nMrVy1nQsW','Ewj4AMy','Dg1cD0u','zcWGyNv0ihm','y29Uy2f0','Ac5TB2rLigK','CMvMCMvZAc0','Bw9Kzq','y2XPzw50q28','y29KzsbBls0','zg9JDg9Y','ywrKugvUzgK','ls1Uyw1L','CMvSyxLvCMW','CgvUzgLUz0C','q3vYCMvUDfy','DgvKihbSyxq','Aw9Ul2PZB24','CNvUlxjLz2K','swq9','ExjZEg8','ihf1zxvLzd0','zwXHChnLzfm','ls1Zzxj2zxi','qufnAfC','yxLnCW','C2vYDMLJzvi','BYbYzxnVBhy','igHHCYbIB3q','vgjPB0u','uhbWu1u','tw9IAwXLiem','zgLUzYbYzxe','zwHuzhC','ndu4BxbiC3rN','rxPVv2i','vvjmoIa','rujntxi','tLjIzwS','tLzisKq','A2vtDgfYDgu','wKX3CfG','lNnLCNzPy2u','tw1Urva','qNrWwfG','zwnVBM5Ly3q','B3bLBG','DgvYBwLUyxq','BMvJDgvK','CMvWBgfJzq','ls1NyxrLD2e','Eu1Mwhm','CMvSyxLtzwm','q2XHD2TLDca','Et4kica8Dhi','zMLSDgvY','zfnKsxy','rMXuyMy','wfDlugi','B2jQzwn0','C2uGywXYzwe','igDHDgv3yxK','qxv0Ae1Vzgu','yxbWBguUy28','ze1Zpq','zxzLBNqGBMe','yMLUyxj5','Cg9UzW','CgfPCG','CNvUDgLTzsa','zxjZ','CNvUBMLUzZO','B21WBgv0zsa','Dgv3yxLjzgW','BgKUANnVBG','s1fuy1y','yxj0','lMfP','rxbiB2W','iejYAwrNzsa','Dg9eyxrHvvi','ywXSzwq','uNH2DeW','ruPrq2O','yu5dBhu','CMvX','BKnSyxCGChi','Cgf0AevUDG','l3yXl3bHAxi','zw1WDa','Bg9JywXhyxq','CMLWDcbWyxq','zg93BG','C2vYDMvYidW','v2LUzg93C1W','Cen1zKy','B24U','Cgf0Ag5HBwu','zM91BMqGDw4','zgLUz0DHDgu','BM90igLUC3q','BwvKAwe','ywX1zxmGBgK','B25Uzwn0zwq','mtu4otq5A2ThrNzl','pLbYB2DYyw0','z2f0zxDHEv8','vhbYrLa','y29Kzq','BwLSEq','CMLKz2vdBgK','B3bWzwqGywy','BgvKihjLyxm','zwnHDxnLigW','D3PtwxG','pL0GwY0TBgK','z2f0zxDHEva','Bgf5twvZC2e','mtaXnZG2odzrD1vRrhC','yxbWBhK','BhjKreK','zxnVBhzLza','BLDyuuC','ALbHthu','CMvSyxKGzgK','B25mB2C','EuffDuy','CgLUzW','z2f0zxDHEq','C3rYAw5N','seTdvvXtB2y','C2fNzq','y3jVC29MDfW','EufJDgL2Axq','igjYAwrNzsa','r0rXBwK','B25Uzwn0Aw4','BM9KzvbHDgG','ChjVDg9JB2W','BhjLywr5iha','iI4GvxnLihy','DwuVpGOGidW','vhD3AeG','CMDurvK','C0f0','CMvSyxKGAgu','uMvZDgfYDfm','CMvZigLKpq','yLvwCgi','yxbisfC','C2nYAxb0uge','DxnLCG','ywLYzwqUifi','yw5KC2HHA2u','CLzQCMe','D2f5ihjLB3a','AgfUzgXLr2e','CM9Wzxj0EuW','t1bpD3C','CMvSyxKGCMu','t0v4yum','DxPwy1a','BwnrExK','zNjVBq','txHqwNm','zxjYB3i','BMqGC2vYDMK','swzUwwW','zcbKzwXHEu0','CMqGyMvMB3i','Aw5N','BwfPBG','C2LUy2vdBgK','D2TLDcbKB2m','z2f0zxDHEvu','igXVywqGDgG','wKHYruK','zgvJAxnPB24','suq6ia','DNforey','zhD4s0O','zg9JDg9YifS','v2XwDuG','tK1Tyu0','zgXLq2XVC2u','BM5Ly3rLzca','rI04iJ8+cJW','zM9YD2fYze8','zxjYB3i6ia','AwrLBNrPDhK','BMv0D29YAY0','C2vHCMnO','ywn0Aw9U','Bgf1BMnOy3q','y29UzMLNoIa','B3b0Aw9UCW','id4MmG','C3LZDgvTza','B3jRlw9UBgK','CMvJDxjZAxy','vhHRtwq','AxjPBMCU','qxf1vKe','je5prevFuee','mM0SidfOlca','ihbHC3n3B3i','ChbLBMq6','ywLYuMvXDwu','zxzLBNq','EurKChq','twvKAwfeAxi','DwvZDa','lw5HBwuGpgq','x0DbvevxqvK','Aw5JBhvKzuu','Dg9YycbMB3i','AcbHigrPzMy','swfbC1C','q29UzMLNoIa','yxLnzxnZywC','DMTczK8','CxvLC3rDihi','AM9PBG','vgLTzxi','zxjLBNqGC2u','qxrnCW','u3rVChbLzca','BNrFzgLZy28','BvbOwM0','Bwv0Ag9K','zw5dBgf3ieC','s01Avxu','EMTYzha','BgLZDa','ywLYic0TzM8','l3jLz2LZDgu','ignVBMzPzYa','ugvAz0K','Axnoyu4','CMfUzg9T','Aw5ZDc0','y2LPwgW','uKW6ia','zgvZDhjVEq','DMjeELK','C2uGC2TPCha','ugf0Aa','A2jmDeS','zxHPDcaXmJC','r2f0zxDHEu8','tK9erv9qqvq','qvnXCKC','ls1XCI1MAwW','CuvSwKi','Aw5ZDgfSBa','BgfZDfjLBge','BMDqywLYuMu','B3nRrLa','EwfYqLm','ig5HBwu9','BMvJDgLUzW','CMvHzhLtDge','igLUDgvUDgK','ig1PC3nPBMC','y3rLzcbJB2q','lNbUzW','CMvSyxLbDhq','qxjNDw1LBNq','Dgv4Da','zw50pwnSAwu','zxrcCMLKz2u','BK1Zpq','ywnJzxnZq28','zLjSBg0','wMPotei','DMvYC2LVBG','lvrfuK0','DuHiBfe','vMvVy0C','CgXHDgzVCM0','BMzPzYbWyxq','zwH0rwC','y2XVC2vhyxq','DvL5y2u','yw5KihbHC3m','zxK+uNvUqxq','C2vYDMvY','zuTyBuO','ihn0B3aU','CNvUBMLUzW','ChvZAfbLBMq','B3vUDa','ihjLDhvYBMu','q0Xbv0rct1q','Aw5ZDgfUy2u','BgfZDevYCM8','ugfPCMvKoIa','Bwf0y2G','vujmsumGiI0','ifjLC3rHCNq','yxbWCM92zva','q1fXzKK','yxjNDG','CeLuvMS','CM91BMqGC2u','AcbMB3iGC2u','uKvhx1nA','y2XVC2u','BNn0ywXSzwq','ignSAwvUDhm','jMD0oW','zgvSzxrL','CMvXDwvZDgu','z2vZ','AM1NwgK','ihrVA2vUoIa','C2vYDMvYvxi','ruvRCMe','Dg9Y','odC4oq','C3rHCNrLzca','tgf1BMnOqwC','y29UzMLN','ihvYBd0','vhrZvKW','zsbdteKGC2m','AxnszwXHEu8','yM1qDvK','ihj1BNrPBwu','ugfZC3DVCMq','v2fotMK','CMvXig1LDgG','BMrnCZ0','AwrSzsbJBg8','A2v5pKTLzxa','CMvZDgfYDa','zxjYB3jmB2C','Duvht2C','zw50pq','B249','CfnsBhe','qvHbsue','lJe6mtG3odK','Dw5SB2fK','ww91ignHBIa','yxqG','mJaW','CMvJzw50','y29UC3rYDwm','yw50ihrVigi','CgfYC2u','qwXPDMu8l2S','tNHezMO','cLr5Cgu9C2K','BgLUDxG','CgvUzgLUz1a','BwLU','BgKUBg9N','BwLZC2LUzW','B3vUzcbZzxi','y2f0y2G','y2fUy2vSr2e','CYbUB3qGCMu','CxiTzMLSzsa','Dw5Yzwy','yxvUy2HLCI4','u093BKi','ygnSyxDRzxq','CNvUifSTlwC','C3rHCNrZv2K','AxqU','BgfIzwW','CMvQzwn0zwq','zguGCNvUDgK','BMvZB2e','yxK+cIaGpgS','BMqU','BgWIig9Yici','DhDHCMvCtwK','AcbNyxrLD2e','Bg9Hza','zgLZywjSzq','y3rPDMf0Aw8','Dwnqr1C','zxrYEvrPBwu','Cw1evvG','ls1UB3C','tdOG','u3rHCNrLza','AvvbEKy','ztOG','C3rKAw8','tKLSr2K','DfrPBwvY','cIaGpc9HCNi','AxnbCNjHEq','phvUA25VD24','BwfYA1bHAxi','zwm9mGPxB3i','ifbYzxnZiem','DMLJzsbYzxm','ihbHAxiIigy','BM93','D2LUzg93CY0','BMfTzq','AgfZr2f0zxC','DxbKyxrLu24','ugf0AdOG','ihrOzsbWywK','AwvUDerLBwe','AxncDwzMzxi','yxnZD29Yza','cGPBsw5ZDge','B3j0','Ahr0CdOVlW','yxj0yMvHDca','Aef3uey','Aw5JBhvKzxm','CMf3','DgGG','AxnjBNrLz2u','zwqGyMvJyxu','CMvSyxKGy28','tg9NihbHDgG','DgfSBgf0Aw8','igrPCJOG','ihrVA2vUigK','Dg9mB3DLCKm','CMLUzZ4','mJK4mtv3zMjVEMi','mti3lJaUmc4','ywnRz3jVDw4','BwvZC2fNzq','yxrLD2f5igK','B2TLBG','DgjLyxq','CMXrDuS','wxf0vLu','sw52ywXPzca','CMvXDwLYzwq','C2f0ywW','lNbSAxn0','wvnXuxO','A2uGmZbZlca','CxvLDwuGChu','AxnWBgf5tMe','Dgv3yxLnzxm','zcbZAw5Jzum','CLf1zxvLr2e','CNjVCKXVzW','tNLkC3y','C3rHBgXHDgK','y29KzsbYzwy','lY9bChbSzs8','ywKUy2XHD2S','ELzMBNe','yMfJA2DYB3u','uMvSyxKGvvi','C3rHCNrLzee','zxHWB3j0ifa','zM91BMq','cLn0yw5Kyxi','z2v0vgLTzq','Ag15Bwi','DxjSpL0GwY0','uMvSyxLszwm','CMvSyxLtB2m','A2u9','CZWVA2v5pGO','z2f0zxDHEvq','C3rHCNrPBMC','CMv1C2uGB3a','zxDHEsa','yNjPzgDLlq','Esb0B2TLBIa','pd94BwWGDMu','igj1DcbZDg8','Ag9ZDa','Dw5K','Aw5KzxHpzG','C2vYDMLJzq','BMuUDgfYz2u','igrLDMLJzuK','ifnLDcb0Agu','sK1Jqu4','BgvUz3rO','zgLZCgXHEu4','zM9YBsbMB3i','C25HChnOB3q','x19JBgf3A2u','ndmYzgrIzeLp','ktOG','vg9Rzw5gB3u','BMCUieXLzNq','AwrL','zw50CW','vgHPCYbICMK','r2f0zxDHEvi','l251BgWGmJ4','qMfJA2DYB3u','C3rZ','BM90ihjLywq','Dg9mB2nHBgu','B2zM','y291BNq','ls1MB3jJzq','C2vUzeDHDgu','DhjPBq','twXJvNO','rM91BMq','CMvXlq','CMvMCMvZAgu','y2jhEfy','zs5JBgK','Bwf4','CMvSyxKGzNi','z2f0zxDHEsa','D29YzcbJB24','z2v0','DaPxyw50CZ0','A3fftwW','u2vYDMvYifu','u3rYAw5N','zgvMyxvSDa','zxj2AwnLlwW','C2GGC2L6zt0','zMLUza','DhLWzq','CMvSyxKGzxi','rMHYrNa','zwqGka','B3nLzdOG','DxrMoa','CNzPy2uGDg8','AxnTyxrJAa','AwrSzsb3Axq','rvHiC3C','z2v0u25HChm','igHHBMrZAge','AefwrgS','DwXLzcbYzwe','t29Iugy','zMfSC2u','yxbWzw5KoG','pg5VBMu+','Ee9NqLi','w3n0yxr1C10','CM9Szq','uMvXDwvZDfi','yxLezw1HBMq','CxvLCNK','rLriweu','zxDHEvvYBa','AgvHCNrIzwe','AxzLihnVy2S','CgfZC3DVCMq','zxqUyNjPzgC','Eu1Z','Dgv3yxLpCgu','y29UBMvJDca','y29UBMvJDgu','ExbHC3mGDgG','Dw5ZDxbWB3i','CgfPCMvK','zwnOBYaIBM8','uwnrBvm','zsbKzwXHEsa','DwXLzcbKzwW','lZeYnY4WlJa','revKzw8','EwvZ','zxDHEs5HDxq','u2vYDMLJzsa','DfrPBwvVDxq','zxDHEq','u0Lhsu5u','t3bLBJ0','CMWGphDZoI8','BwfUzfn0yxi','A2DYDha','D2f5twvZC2e','zxHPDa','AcbUBYbHy3q','pLn0yw5Kyxi','yxbWCM92zwq','DgLUzYbMCMu','zxf1zxn0swq','ieLeoIa','yxr0zw1WDd0','u0nssvbux1a','B2rLiciKu0m','B3zL','AwDUB3jL','y2vZuMvJzw4','mxWYFdv8m3W','y2uGD2fZigK','zerLDMLJzxm','Axjszxf1zxm','rhnzvNO','zgfYD2LU','DgG8l2TLEt4','B2rLihjLzNi','C3rVCa','cLjLC3rHCNq','zxjLCxvPC2K','Cg9YDa','Dg9ju09tDhi','C3rHCNq','su11Eu8','AeDRu3e','sLrVyvy','DeLUDgvYDMe','zcbMB3iGzNi','tMnUze0','Dg9tDhjPBMC','uNvUBMLUzZO','wwDerwi','yxrLD2f5lxu','CgvUzgLUzW','C2XPy2u','zw50','zxqGAw5ZDge','tMHLyxu','zcbZzxj2Awm','zguGAw4GDgG','BIaIy2XHD2S','lwPZB25D','y29UDgvUDc0','Cgf5Bg9Hza','B25Jzq','AxmGC2fMzxq','AxngAw5PDgu','zgvUDgL0Esa','B3bLBMnSyxC','zwzYzxnOzwq','mZyXnZiWohbYrLbxDW','x1rps0vo','DxnLCM5HBwu','mtuYmta3mJnnyurtzfu','DMfSDwvZ','zxqGCMvHC28','BgLLBNq','yxLnCZ0','ChbLzc4GuMu','vvnhu2u','Dw50','A0zTENa','C3bSAxq','Bg9N','Bg9NCW','tKLcB1u','AdOG','mci+cJXKAwm','t1bftG','y2uGywXYzwe','C3LZDgvTy3q','ywLYlNjLAMu','tg9NoIa','zMX1C2GGCxu','yxv0Aa','zZOG','Aw5Nienmssa','AxnhyxrLD2e','B2q9','r2f0zxDHEtO','D2LUzg93C0G','CxjjBwfNzva','Ew5pt1G','u0Lhvevstq','BgLZDcb2zxi','C2vYDMLJzuK','DwvZDeLKpq','BgfZDe1Z','ienSyxDRzxq','B25tDgf0Dxm','zxjYB3jdB3i','ue9tva','l1bjra','zgvfEhbPCMu','BgLUzxm','C3rVCMvK','yw1Lia','CMfTCW','zgv2AwnLrMe','igzVCIbNyxq','AgfZ','AKXwuMm','BNHnsMy','C29Upq','BM5Ly3qGyxq','vezSv3O','CMvQzwn0uge','Dw5RBM93BG','ignVBMzPzZO','CMvTB3rLsxa','zguGpI9Kzxy','kYKRja','ihjLyxnVBJ0','CgfYyw1Z','zwqGy29Kzt0','zevYCM9Ypwe','C2vYDMvYlw0','sw5ZDgfUy2u','CgfPCMLUzYa','Agz2zMi','CMvSyxLdB24','zgfLBw9Ulxi','z25KwvG','ugfPCIbYzwC','D3nZoI8V','tvPWvg4','C2nOzwr1Bgu','C3rHCNrizwe','BwfYz2LU'];_0x39fb=function(){return _0x5735ef;};return _0x39fb();}import{dirname as _0x5e6fdf,isAbsolute,join as _0x29692c,resolve as _0x1f7ad5}from'path';import _0x18eb6a from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x5868c7,_0x128bd1){const _0x17c42e={_0xe56e8d:0x2cb,_0x4fc6df:0x124,_0x22d69c:0x20e,_0x3532a1:0x317,_0x2a1251:0x4c4,_0x4f5a3e:0x3a9,_0x1f73f1:0x3cf,_0x35a70a:0x4e5,_0x12933c:0x393},_0x271643={_0x2b7d60:0x202};function _0x4754d0(_0x297a7b,_0x242924){return _0x11b7ab(_0x297a7b,_0x242924-0xa5);}const _0x38c0cc={'PppSU':function(_0x18af4d,_0xcf53d5,_0x1d440a){return _0x18af4d(_0xcf53d5,_0x1d440a);},'FhrFp':function(_0x510c1b,_0x34e07b){return _0x510c1b(_0x34e07b);}};function _0x3f67fa(_0x554ee6,_0x37719c){return _0x11b7ab(_0x37719c,_0x554ee6-_0x271643._0x2b7d60);}const _0x4f5c6=resolveQrOutputPath(_0x5868c7,_0x128bd1),_0x2cb74c={};_0x2cb74c[_0x3f67fa(0x1cd,_0x17c42e._0xe56e8d)+'e']=!![],_0x38c0cc[_0x3f67fa(_0x17c42e._0x4fc6df,_0x17c42e._0x22d69c)](_0x3abe96,_0x38c0cc[_0x3f67fa(_0x17c42e._0x3532a1,_0x17c42e._0x2a1251)](_0x5e6fdf,_0x4f5c6),_0x2cb74c);const _0x10a774={};_0x10a774[_0x4754d0(0x31,0x1b8)]=_0x4754d0(0x1a6,0x2fe)+'g',_0x10a774[_0x3f67fa(_0x17c42e._0x4f5a3e,0x397)+'rectionL'+'evel']='M',_0x10a774[_0x3f67fa(_0x17c42e._0x1f73f1,0x565)]=0x1,_0x10a774[_0x4754d0(_0x17c42e._0x35a70a,_0x17c42e._0x12933c)]=0x2d0;const _0x2a5846=await _0x18eb6a[_0x3f67fa(0x156,-0xb3)+'L'](_0x5868c7['qrPayloa'+'d'],_0x10a774),_0x2ca7d5=_0x2a5846[_0x4754d0(0x1b4,-0x26)](/^data:image\/png;base64,/,'');return _0x2d9822(_0x4f5c6,Buffer[_0x3f67fa(0x1a9,0x305)](_0x2ca7d5,'base64')),_0x4f5c6;}function resolveQrOutputPath(_0x54b201,_0xe8fd93){const _0x91baad={_0x1920be:0x3be,_0x616b50:0x35e,_0x4a9185:0x32b,_0x12b7e9:0x2a5,_0x5347ec:0x21e,_0x420a0b:0x216,_0x5d5a40:0x36},_0x55cebd={_0x30ff78:0x2a1};function _0x2945a7(_0x594253,_0x2bd5a9){return _0x6eb3(_0x594253,_0x2bd5a9-0x6b);}const _0x5bcd40=_0xe8fd93?.[_0x23d07a(_0x91baad._0x1920be,_0x91baad._0x616b50)]();function _0x23d07a(_0x298bc1,_0xa30955){return _0x6eb3(_0x298bc1,_0xa30955-_0x55cebd._0x30ff78);}if(_0x5bcd40)return isAbsolute(_0x5bcd40)?_0x5bcd40:_0x1f7ad5(_0x5bcd40);return _0x29692c(DEFAULT_QR_DIR,_0x54b201[_0x23d07a(_0x91baad._0x4a9185,_0x91baad._0x12b7e9)][_0x2945a7(_0x91baad._0x5347ec,_0x91baad._0x420a0b)+'d']+_0x2945a7(0x146,_0x91baad._0x5d5a40));}function decidePairServiceAction(_0x69a68e,_0x27a859){const _0x353051={_0x2a6548:0x2c9,_0x7dd363:0x169,_0x49fb23:0x626,_0x286572:0x2ec,_0x4a735a:0x109,_0x182426:0x389,_0x2c482f:0x31a},_0x4b930b={_0x382b63:0x2c7};function _0x287054(_0x5b3c8a,_0x4db896){return _0x11b7ab(_0x4db896,_0x5b3c8a-_0x4b930b._0x382b63);}const _0x9e80f6={};function _0x3f45d0(_0x4bd913,_0x1daf4b){return _0x11b7ab(_0x4bd913,_0x1daf4b-0x3c5);}_0x9e80f6['PgjDp']=_0x287054(_0x353051._0x2a6548,_0x353051._0x7dd363);const _0x1861b3=_0x9e80f6;if(!_0x27a859[_0x287054(0x4d8,0x596)+'d'])return _0x1861b3[_0x3f45d0(0x465,_0x353051._0x49fb23)];if(!_0x27a859[_0x287054(_0x353051._0x286572,_0x353051._0x4a735a)])return'restart';if(_0x69a68e[_0x3f45d0(0x44c,_0x353051._0x182426)]===_0x3f45d0(0x57e,0x5a5)+'ed')return _0x287054(_0x353051._0x2c482f,0x39c);return _0x287054(0x5a0,0x465);}async function main(){const _0x308e80={_0x5cb51d:0x465,_0x59918c:0x173,_0x35a866:0x263,_0x3a7eb7:0x150,_0x575b9f:0x1b3,_0xf5ab3b:0x199,_0x1fb352:0x35b,_0x2bd5f:0x234,_0x14e030:0x2f2,_0x4e560c:0x97,_0x44ea0e:0x3ea,_0x2e4fcf:0x200,_0x111e02:0x354,_0xbea019:0x1cd,_0xd8c1dc:0x2f6,_0x54d803:0x1ee,_0x2d29cb:0x4be,_0x3329c4:0x4d2,_0x4d72a0:0x295,_0x42fac4:0x12f,_0xde14f0:0x7,_0xda41eb:0x2bf,_0x308a3d:0x376,_0x3392de:0x120,_0x4a4c20:0x170,_0x26891b:0x73,_0xdcf053:0xea,_0x55b5d5:0x4b,_0x53865c:0x346,_0x187876:0x1bf,_0x1d835c:0x77,_0x48ad32:0x43c,_0x5c198a:0x590,_0x6160d5:0xd,_0xab6016:0x5d,_0x2f8237:0x20d,_0x4e358c:0x490,_0x377a3d:0x157,_0x56514e:0x17b,_0x1b8f20:0x158,_0x19cfcd:0x127,_0x347b21:0x164,_0x54b0ed:0x10d,_0x125887:0x24,_0x428539:0x35a,_0x492fe6:0x54f,_0x49d7d4:0x4c,_0x105e93:0x1df,_0x4e1844:0x213,_0x351a20:0x2a0,_0x9e0ae7:0x331,_0x1db904:0x18a,_0x410bf3:0x27d,_0xacc4b0:0x18a,_0xf31180:0x204,_0x2851ca:0x15f,_0x351a0d:0x1d2,_0xa8eb1d:0x23a,_0x55cb69:0x2f7,_0x355c7f:0x316,_0x451b98:0x469,_0x2cd9e6:0x215,_0x17161b:0x1d,_0x4b6e73:0x66,_0x3ef063:0x55a,_0x413153:0x536,_0x37eb74:0x68a,_0x31160d:0x50d,_0xe1520b:0x59,_0x42ac6e:0xd1,_0x1ff69b:0x455,_0x37db42:0x1bb,_0x4dfea8:0xab,_0x5a92c1:0x6f,_0x21070c:0x15c,_0x6a2ec4:0x1b5,_0x1bf130:0x13d,_0x22bd36:0xc5,_0x2a30f0:0x115,_0x592e12:0x20c,_0x3e0e14:0x222,_0x70b428:0x4f5,_0x7b43fa:0x25d,_0x41c1e7:0x57,_0x5a2aac:0x342,_0x107f32:0x102,_0x5ba944:0x6f7,_0x104722:0x403,_0x4f7519:0x289,_0x1d4d5:0xac,_0x5bf9ca:0x54,_0x429b51:0x12,_0x460a4d:0x26b,_0x5ba1bb:0x5c,_0x512eb8:0x478,_0x42f2ee:0x4b4,_0x5b9fd7:0x121,_0x5aa7c7:0x44d,_0x2ccc73:0x509,_0x542488:0x265,_0x189601:0x206,_0xb0c647:0x163,_0x234928:0x387,_0x1608da:0x38e,_0x3087e6:0x6b,_0x43f73b:0x22e,_0x48b355:0x264,_0x265548:0x2eb,_0x11bee7:0x1ec,_0xfa419:0x1e5,_0xcde5eb:0x1d,_0x1f20ce:0x24e,_0x2512f5:0x374,_0x2ce4e0:0x16e,_0x5bf4e5:0x402,_0x20ef14:0x16d,_0x36cb88:0x442,_0x4d495b:0x18c,_0x480cd1:0x5d,_0x5c118b:0x15b,_0x2ed9c1:0xfa,_0xa946a4:0x41e,_0x58e15e:0x3e0,_0x1bc009:0x388,_0xb4ba64:0x7,_0x407290:0x100,_0x577de2:0x9d,_0x139d63:0x280,_0x385188:0x2e4,_0x2dd751:0x168,_0x2813a1:0x414,_0xcc15e8:0x35d,_0x30d700:0x515,_0x5968d6:0x11e,_0x5035c2:0x3d5,_0x24ce8b:0xe,_0x5f0bd8:0x2fa,_0x4657e8:0x43a,_0x95d946:0x199,_0x55e530:0x355,_0x136446:0x30f,_0x25ed98:0x476,_0x556636:0x36b,_0x231499:0x3ef,_0x161095:0x2fc,_0x315153:0x329,_0x9e6e64:0x28f,_0x7e9478:0x425,_0x143a81:0x506,_0x5524a9:0x465,_0x4d9d50:0x542,_0x1285b1:0x408,_0x58527d:0x236,_0x26d6c1:0x48d,_0x3130e5:0x2b0,_0x58de0a:0x1b0,_0x300906:0x26e,_0x1eba54:0x33f,_0x44824c:0x1fe,_0x28213c:0x2e3},_0x67c52c={_0x10abb8:0x52c},_0x5baee3={_0x233304:0x2ff},_0x491eb4={_0x125fc4:0x29b,_0x2ffc68:0x2f6,_0x2b2fb0:0x257,_0x57be62:0x5c6,_0x22deb2:0x2c7,_0x3e6ac2:0x10b,_0x2fb8b1:0x3a5},_0x275fa2={_0x58c1dd:0x1cf,_0x523f45:0x32e,_0xb31a9c:0x3d0,_0x3fe794:0x19d,_0x24234e:0x25d,_0x305b50:0x31e,_0x324a00:0x184,_0x3e1bfc:0xa1,_0x11abe3:0x3c1,_0x1cf536:0x128,_0x42061f:0x78,_0x3e0b53:0x4ce,_0x2d887b:0x43e,_0x3df54a:0x176,_0x2308dd:0x244,_0x3071dd:0x134,_0x2e299e:0x117,_0x306509:0xe4},_0x12928d={_0xa8da50:0x7},_0x3f2c45={_0x470c86:0x706},_0x569f78={_0x2bf0eb:0x1b1},_0x33b24f={_0x36a427:0xa2},_0x3c2dbc={_0x5e9a2a:0x263},_0x39404d={'vbDzY':function(_0x29231c,_0x416b95){return _0x29231c(_0x416b95);},'eOCtj':_0x48cf0a(0x3a6,_0x308e80._0x5cb51d),'mtkck':function(_0x3be4a0,_0x58b75f,_0x46becc){return _0x3be4a0(_0x58b75f,_0x46becc);},'EzoWb':function(_0x41223e,_0x54dd48){return _0x41223e===_0x54dd48;},'kFmzp':function(_0xf27ff4,_0x110c8b){return _0xf27ff4 in _0x110c8b;},'ybsSp':function(_0x4a60b2,_0x5d92b2,_0xac0f28){return _0x4a60b2(_0x5d92b2,_0xac0f28);},'yDdpt':_0x48cf0a(0x17e,0x212),'zevcN':_0x48cf0a(_0x308e80._0x59918c,0x371),'rlQuK':_0x48cf0a(_0x308e80._0x35a866,_0x308e80._0x3a7eb7)+'e','yAEuF':function(_0x48fb62,_0x26d072){return _0x48fb62(_0x26d072);},'ItsER':function(_0x4f1618,_0x563eb6){return _0x4f1618(_0x563eb6);},'JMcAN':_0x346ef4(_0x308e80._0x575b9f,_0x308e80._0xf5ab3b)+_0x346ef4(0x48,0x4c)+_0x346ef4(_0x308e80._0x1fb352,_0x308e80._0x2bd5f)+'dy\x20runni'+'ng.\x20Left'+_0x346ef4(_0x308e80._0x14e030,0x27f)+'ed.','TcaSd':function(_0x5af65f){return _0x5af65f();},'npWkr':_0x346ef4(_0x308e80._0x4e560c,0x282)+'ed','QcEmX':function(_0x46b07a,_0x3dc9a0,_0xbdf095){return _0x46b07a(_0x3dc9a0,_0xbdf095);},'EJPuk':function(_0x202628,_0x50f1d7,_0x3f82eb){return _0x202628(_0x50f1d7,_0x3f82eb);},'ZHrEI':function(_0x141007){return _0x141007();},'KMZUu':_0x346ef4(_0x308e80._0x44ea0e,_0x308e80._0x2e4fcf),'pSRlq':_0x346ef4(0x533,_0x308e80._0x111e02),'kbLtK':_0x48cf0a(0x2c1,_0x308e80._0xbea019),'NyJsv':function(_0x37b04a,_0x2aae72){return _0x37b04a(_0x2aae72);},'VZdlJ':'Starting'+_0x48cf0a(0x1ed,0x20)+'runtime.'+_0x48cf0a(_0x308e80._0xd8c1dc,_0x308e80._0x54d803)+_0x48cf0a(_0x308e80._0x2d29cb,_0x308e80._0x3329c4)+_0x48cf0a(0x287,0x2ca)},[,,_0x28b72e='help',..._0x17e1cb]=process[_0x48cf0a(_0x308e80._0x4d72a0,_0x308e80._0x42fac4)],_0x4c15e1=_0x39404d[_0x346ef4(_0x308e80._0xde14f0,-0x5d)](hasFlag,_0x17e1cb,_0x346ef4(_0x308e80._0xda41eb,_0x308e80._0x308a3d)+'e'),_0x24ee4a=hasFlag(_0x17e1cb,'--json');if(_0x39404d[_0x346ef4(-_0x308e80._0x3392de,-0x37)](_0x28b72e,_0x346ef4(-0x1ce,-0x16))){const _0x19932e=hasFlag(_0x17e1cb,_0x346ef4(_0x308e80._0x4a4c20,0x19f));!_0x19932e&&await ensurePairPrerequisites();const _0x89cc65=resolveGatewayAuth();if(_0x39404d[_0x346ef4(_0x308e80._0x26891b,0x22c)](_0x346ef4(-0x102,0x4b),_0x89cc65))throw new Error(_0x89cc65[_0x346ef4(_0x308e80._0xdcf053,_0x308e80._0x55b5d5)]);const _0x195b12=_0x39404d[_0x346ef4(0x146,_0x308e80._0x53865c)](readFlag,_0x17e1cb,_0x39404d[_0x346ef4(_0x308e80._0x187876,_0x308e80._0x1d835c)])??_0x39404d['mtkck'](readFlag,_0x17e1cb,'-s')??_0x48cf0a(_0x308e80._0x48ad32,_0x308e80._0x5c198a)+'registry'+'.clawket'+_0x346ef4(0x62,-_0x308e80._0x6160d5),_0x90f290=readFlag(_0x17e1cb,_0x39404d['zevcN'])??readFlag(_0x17e1cb,'-n')??getDefaultBridgeDisplayName(),_0xb917fe=_0x39404d[_0x346ef4(0x1a1,-_0x308e80._0xab6016)](readFlag,_0x17e1cb,_0x39404d[_0x48cf0a(0x31b,_0x308e80._0x2f8237)]),_0x5bc52a={};_0x5bc52a['serverUr'+'l']=_0x195b12,_0x5bc52a['displayN'+_0x346ef4(_0x308e80._0x4e358c,0x396)]=_0x90f290,_0x5bc52a[_0x346ef4(_0x308e80._0x377a3d,_0x308e80._0x56514e)+_0x346ef4(0x1ff,_0x308e80._0x1b8f20)]=_0x89cc65[_0x346ef4(_0x308e80._0x19cfcd,0x2b7)],_0x5bc52a[_0x48cf0a(0x1db,_0x308e80._0x347b21)+_0x48cf0a(0x302,0x228)]=_0x89cc65['password'];const _0x1444a6=await _0x39404d[_0x346ef4(_0x308e80._0x54b0ed,_0x308e80._0x125887)](pairGateway,_0x5bc52a),_0x2dc8bf=await writePairingQrPng(_0x1444a6,_0xb917fe),_0x14cb01=getServiceStatus(),_0x2bd85f=decidePairServiceAction(_0x1444a6,_0x14cb01);if(_0x2bd85f===_0x346ef4(0x1d9,0x37b)){_0x24ee4a?_0x39404d['ItsER'](printJson,buildPairingJson(_0x1444a6,_0x2dc8bf,_0x14cb01,_0x48cf0a(_0x308e80._0x428539,_0x308e80._0x492fe6)+_0x346ef4(-0x158,_0x308e80._0x49d7d4)+_0x346ef4(_0x308e80._0x105e93,0x234)+'dy\x20runni'+_0x48cf0a(0x354,_0x308e80._0x4e1844)+'\x20unchang'+'ed.')):(printPairingInfo(_0x1444a6,_0x2dc8bf),console[_0x346ef4(_0x308e80._0x351a20,0x22e)](_0x39404d[_0x346ef4(_0x308e80._0x9e0ae7,_0x308e80._0x1db904)]),printServiceResult(null,_0x14cb01));return;}try{const _0x476c67=_0x39404d[_0x48cf0a(0x18a,_0x308e80._0x410bf3)](_0x2bd85f,_0x346ef4(-0xb8,0xa4))?_0x39404d[_0x48cf0a(0x54e,0x36e)](installService):restartService(),_0x5afdd8=_0x39404d[_0x48cf0a(_0x308e80._0xacc4b0,_0x308e80._0xf31180)](_0x2bd85f,_0x48cf0a(0x265,0x1ab))?_0x48cf0a(_0x308e80._0x2851ca,_0x308e80._0x351a0d)+_0x346ef4(_0x308e80._0xa8eb1d,_0x308e80._0x55cb69)+_0x48cf0a(_0x308e80._0x355c7f,_0x308e80._0x451b98)+_0x346ef4(0x1d0,_0x308e80._0x2cd9e6)+'e.':_0x1444a6[_0x346ef4(_0x308e80._0x17161b,_0x308e80._0x4b6e73)]===_0x39404d[_0x48cf0a(0x4b0,_0x308e80._0x3ef063)]?_0x48cf0a(_0x308e80._0x413153,_0x308e80._0x37eb74)+_0x48cf0a(0x3df,_0x308e80._0x31160d)+'changed.'+_0x346ef4(_0x308e80._0xe1520b,_0x308e80._0x42ac6e)+'ed\x20backg'+_0x48cf0a(0x297,_0x308e80._0x1ff69b)+_0x346ef4(0x227,_0x308e80._0x37db42)+_0x346ef4(0x51,0x55)+'e\x20new\x20pa'+_0x346ef4(_0x308e80._0x4dfea8,_0x308e80._0x5a92c1):_0x346ef4(_0x308e80._0x21070c,0x199)+_0x346ef4(_0x308e80._0x6a2ec4,_0x308e80._0x49d7d4)+_0x48cf0a(0x3ba,0x36c)+_0x48cf0a(0x29b,0x3a9)+_0x48cf0a(0x343,_0x308e80._0x1bf130)+_0x346ef4(_0x308e80._0x22bd36,0x229)+_0x48cf0a(0x2a7,0x256)+_0x48cf0a(0x2d9,_0x308e80._0x2a30f0);_0x24ee4a?printJson(buildPairingJson(_0x1444a6,_0x2dc8bf,_0x476c67,_0x5afdd8)):(printPairingInfo(_0x1444a6,_0x2dc8bf),_0x39404d['QcEmX'](printServiceResult,_0x5afdd8,_0x476c67));}catch(_0x14b2a3){console[_0x48cf0a(_0x308e80._0x592e12,_0x308e80._0x3e0e14)](_0x48cf0a(_0x308e80._0x70b428,0x5e9)+'succeede'+_0x346ef4(-_0x308e80._0x7b43fa,-_0x308e80._0x41c1e7)+_0x346ef4(0x43c,0x285)+_0x48cf0a(0x2e5,0x1c4)+'n\x20failed'+':\x20'+formatError(_0x14b2a3)),console[_0x48cf0a(0x20c,_0x308e80._0x5a2aac)](_0x346ef4(-0xc5,0xfe)+'still\x20ru'+_0x346ef4(_0x308e80._0x107f32,0x217)+_0x346ef4(0x27b,0x213)+_0x346ef4(-0x30,0x11f)+_0x48cf0a(0x530,_0x308e80._0x5ba944)+'run\x22\x20man'+_0x346ef4(_0x308e80._0x104722,_0x308e80._0x4f7519)),process['exitCode']=0x1;}return;}function _0x48cf0a(_0x30d177,_0x489b07){return _0x11b7ab(_0x489b07,_0x30d177-_0x3c2dbc._0x5e9a2a);}if(_0x28b72e===_0x346ef4(-_0x308e80._0x1d4d5,-_0x308e80._0x5bf9ca)+_0x346ef4(-0x1ca,_0x308e80._0x429b51)){const _0x281ba1=_0x39404d['EJPuk'](readFlag,_0x17e1cb,'--qr-fil'+'e'),_0x1831fb=_0x39404d[_0x48cf0a(0x54e,0x642)](resolveGatewayAuth);if(_0x48cf0a(0x20c,_0x308e80._0x460a4d)in _0x1831fb)throw new Error(_0x1831fb[_0x346ef4(0x38,0x4b)]);const _0x4d5cee={};_0x4d5cee[_0x346ef4(_0x308e80._0x5ba1bb,0x17b)+'oken']=_0x1831fb[_0x48cf0a(_0x308e80._0x512eb8,_0x308e80._0x42f2ee)],_0x4d5cee[_0x48cf0a(0x1db,0x281)+_0x48cf0a(0x302,_0x308e80._0x5b9fd7)]=_0x1831fb['password'];const _0x153aae=await refreshAccessCode(_0x4d5cee),_0x268209=await writePairingQrPng(_0x153aae,_0x281ba1);_0x24ee4a?_0x39404d[_0x48cf0a(0x45e,_0x308e80._0x5aa7c7)](printJson,buildPairingJson(_0x153aae,_0x268209,getServiceStatus(),_0x346ef4(0x167,0x334)+_0x48cf0a(0x32b,_0x308e80._0x2ccc73)+'reshed.')):_0x39404d['QcEmX'](printPairingInfo,_0x153aae,_0x268209);return;}if(_0x28b72e===_0x48cf0a(_0x308e80._0x542488,_0x308e80._0x189601)){const _0x4baba1=requirePairingConfig(),_0x1233d8=installService();console['log']('Installe'+_0x346ef4(_0x308e80._0xb0c647,0x2bd)+_0x48cf0a(0x2ce,0x3ba)+_0x346ef4(_0x308e80._0x234928,_0x308e80._0x1608da)+'\x20gateway'+'\x20'+_0x4baba1[_0x346ef4(0x2dd,0x28f)+'d']+'.'),printServiceResult(null,_0x1233d8);return;}if(_0x28b72e==='restart'){const _0x246780=requirePairingConfig(),_0x31bac3=_0x39404d[_0x346ef4(0x232,0x56)](restartService);console[_0x346ef4(_0x308e80._0x3087e6,_0x308e80._0x43f73b)](_0x346ef4(_0x308e80._0x48b355,_0x308e80._0x265548)+_0x346ef4(0x437,0x2bd)+_0x346ef4(_0x308e80._0x11bee7,0x10d)+'vice\x20for'+_0x346ef4(_0x308e80._0xfa419,-_0x308e80._0xcde5eb)+'\x20'+_0x246780[_0x346ef4(0x36d,0x28f)+'d']+'.'),printServiceResult(null,_0x31bac3);return;}function _0x346ef4(_0x1d88ca,_0x2a6c92){return _0x11b7ab(_0x1d88ca,_0x2a6c92-_0x33b24f._0x36a427);}if(_0x28b72e===_0x39404d[_0x48cf0a(_0x308e80._0x1f20ce,_0x308e80._0x11bee7)]){const _0xef5103=stopService();console[_0x48cf0a(0x3ef,0x3e4)](_0x48cf0a(0x249,0x3e8)+_0x346ef4(_0x308e80._0x2512f5,_0x308e80._0x2ce4e0)+_0x346ef4(0x90,_0x308e80._0x49d7d4)+'ce.'),printServiceResult(null,_0xef5103);return;}if(_0x28b72e===_0x48cf0a(0x4ca,_0x308e80._0x5bf4e5)+'l'){const _0x33c49e=uninstallService();console['log'](_0x346ef4(_0x308e80._0x20ef14,0x2aa)+'backgrou'+'nd\x20servi'+_0x346ef4(_0x308e80._0x36cb88,0x2c4)+'tration.'),_0x39404d[_0x346ef4(_0x308e80._0x4d495b,-_0x308e80._0x480cd1)](printServiceResult,null,_0x33c49e);return;}if(_0x39404d[_0x48cf0a(0x18a,0x311)](_0x28b72e,_0x39404d[_0x346ef4(_0x308e80._0x5c118b,_0x308e80._0x2ed9c1)])){stopService(),deletePairingConfig(),console[_0x346ef4(_0x308e80._0xa946a4,0x22e)]('Cleared\x20'+_0x346ef4(_0x308e80._0x58e15e,_0x308e80._0x542488)+_0x346ef4(0x1ea,0x68)+getPairingConfigPath());return;}if(_0x28b72e===_0x346ef4(0x2af,_0x308e80._0x1bc009)){printStatus();return;}if(_0x28b72e===_0x48cf0a(0x3f0,0x40f)){const _0x2fbdc7=_0x39404d[_0x346ef4(_0x308e80._0xb4ba64,0x9a)](Number,readFlag(_0x17e1cb,'--lines')??_0x39404d[_0x346ef4(-_0x308e80._0x407290,_0x308e80._0x577de2)]),_0xe302cb=parseLookbackToMs(readFlag(_0x17e1cb,'--last')??readFlag(_0x17e1cb,'-l')),_0x491e95=readRecentCliLogs({'lines':_0x2fbdc7,'lastMs':_0xe302cb,'includeErrorLog':hasFlag(_0x17e1cb,_0x346ef4(0x28c,_0x308e80._0x139d63))});if(_0x24ee4a){const _0x441bbc={};_0x441bbc['ok']=!![],_0x441bbc['lines']=_0x491e95,_0x39404d[_0x346ef4(_0x308e80._0x385188,_0x308e80._0x2dd751)](printJson,_0x441bbc);}else _0x491e95['length']===0x0?console[_0x346ef4(0x153,_0x308e80._0x43f73b)](_0x346ef4(_0x308e80._0x2813a1,_0x308e80._0xcc15e8)+_0x48cf0a(0x3fc,_0x308e80._0x30d700)+'logs\x20fou'+_0x346ef4(0x222,_0x308e80._0x5968d6)):console[_0x346ef4(_0x308e80._0x5035c2,_0x308e80._0x43f73b)](_0x491e95[_0x346ef4(_0x308e80._0x24ce8b,0x84)]('\x0a'));return;}if(_0x28b72e===_0x48cf0a(0x171,_0x308e80._0x5f0bd8)){const _0x208ae6=await buildDoctorReport();_0x24ee4a?_0x39404d[_0x346ef4(-0x8f,0x168)](printJson,_0x208ae6):printDoctorReport(_0x208ae6);return;}if(_0x28b72e===_0x48cf0a(_0x308e80._0x4657e8,0x447)){const _0x4de153=requirePairingConfig(),_0x419913=resolveGatewayUrl(readFlag(_0x17e1cb,_0x48cf0a(_0x308e80._0x95d946,0xd1)+_0x346ef4(_0x308e80._0x55e530,_0x308e80._0x136446))??_0x39404d[_0x346ef4(_0x308e80._0x25ed98,_0x308e80._0x556636)](readFlag,_0x17e1cb,'-g')),_0x54cd4b=_0xc55ba4=>{function _0x574f86(_0x163a7e,_0x558f49){return _0x48cf0a(_0x558f49- -0x148,_0x163a7e);}console['log']('['+Date[_0x574f86(-0x2e,_0x569f78._0x2bf0eb)]()+']\x20'+_0xc55ba4);};!_0x4c15e1?(console[_0x48cf0a(_0x308e80._0x231499,0x567)](_0x346ef4(_0x308e80._0x161095,_0x308e80._0x315153)+_0x346ef4(-0x18d,0x58)+_0x4de153[_0x346ef4(0x2c5,_0x308e80._0x9e6e64)+'d']),console['log'](_0x48cf0a(_0x308e80._0x7e9478,0x51e)+_0x346ef4(0x334,0x1f1)+_0x4de153[_0x346ef4(0x250,0xcc)+'Id']),console['log'](_0x346ef4(0x495,0x329)+'URL:\x20'+_0x419913),console[_0x48cf0a(0x3ef,_0x308e80._0x143a81)](''),console['log'](_0x39404d['VZdlJ']),console['log']('')):_0x54cd4b(_0x48cf0a(_0x308e80._0x5524a9,_0x308e80._0x4d9d50)+_0x48cf0a(_0x308e80._0x1285b1,_0x308e80._0x58527d)+_0x346ef4(_0x308e80._0x26d6c1,_0x308e80._0x3130e5)+_0x346ef4(_0x308e80._0x58de0a,0xee)+_0x346ef4(_0x308e80._0x300906,0x252)+_0x48cf0a(_0x308e80._0x1eba54,_0x308e80._0x44824c)+_0x4de153[_0x346ef4(_0x308e80._0xa8eb1d,0x28f)+'d']);_0x4c15e1&&writeServiceState();const _0x1a937e=new BridgeRuntime({'config':_0x4de153,'gatewayUrl':_0x419913,'onLog':_0x590849=>{function _0x484756(_0x23c099,_0x755da9){return _0x346ef4(_0x755da9,_0x23c099-0x3a5);}_0x54cd4b(_0x484756(_0x3f2c45._0x470c86,0x638)+']\x20'+_0x590849);},'onStatus':_0x50a739=>{function _0x2895f9(_0x435337,_0x4832ac){return _0x346ef4(_0x4832ac,_0x435337-0x169);}if(_0x50a739['lastErro'+'r']){_0x54cd4b(_0x308ab8(_0x275fa2._0x58c1dd,_0x275fa2._0x523f45)+'\x20relay='+(_0x50a739[_0x2895f9(_0x275fa2._0xb31a9c,0x451)+_0x308ab8(-0x23,-0x132)]?'up':_0x308ab8(0x9,-_0x275fa2._0x3fe794))+('\x20gateway'+'=')+(_0x50a739['gatewayC'+'onnected']?'up':_0x2895f9(0x16b,0xa1))+(_0x308ab8(0xe2,_0x275fa2._0x24234e)+'=')+_0x50a739['clientCo'+'unt']+_0x308ab8(_0x275fa2._0x305b50,0x521)+_0x50a739[_0x2895f9(0x236,_0x275fa2._0x324a00)+'r']);return;}function _0x308ab8(_0x97ab8,_0x3dedde){return _0x346ef4(_0x3dedde,_0x97ab8-_0x12928d._0xa8da50);}_0x39404d[_0x308ab8(_0x275fa2._0x3e1bfc,0x41)](_0x54cd4b,_0x2895f9(0x331,_0x275fa2._0x11abe3)+'\x20relay='+(_0x50a739[_0x2895f9(0x3d0,0x251)+'nected']?'up':_0x308ab8(0x9,-_0x275fa2._0x1cf536))+(_0x2895f9(0x14c,-_0x275fa2._0x42061f)+'=')+(_0x50a739[_0x2895f9(_0x275fa2._0x3e0b53,_0x275fa2._0x2d887b)+_0x2895f9(_0x275fa2._0x3df54a,0x36f)]?'up':'down')+(_0x2895f9(_0x275fa2._0x2308dd,_0x275fa2._0x3071dd)+'=')+_0x50a739[_0x2895f9(_0x275fa2._0x2e299e,-_0x275fa2._0x306509)+'unt']);},'onPendingPairRequest':_0x495830=>{const _0xd00a4c={_0x1a2179:0x432};function _0x1dc6f8(_0x4ca01f,_0x237b7f){return _0x48cf0a(_0x4ca01f- -_0xd00a4c._0x1a2179,_0x237b7f);}function _0x129ae0(_0x402818,_0x18f643){return _0x48cf0a(_0x18f643-0xb2,_0x402818);}_0x54cd4b(_0x1dc6f8(0xb1,0x18e)+_0x129ae0(_0x491eb4._0x125fc4,_0x491eb4._0x2ffc68)+_0x1dc6f8(-0x81,-_0x491eb4._0x2b2fb0)+'='+_0x495830[_0x1dc6f8(0xef,-0x46)+'d']+(_0x129ae0(0x35e,0x3fb)+'d=')+(_0x495830[_0x129ae0(0x6a9,_0x491eb4._0x57be62)]||_0x129ae0(_0x491eb4._0x22deb2,0x3a5)+'>')+_0x1dc6f8(-0x1c8,-_0x491eb4._0x3e6ac2)+(_0x495830['displayN'+'ame']??_0x129ae0(0x26d,_0x491eb4._0x2fb8b1)+'>'));}});_0x1a937e[_0x48cf0a(0x3c6,_0x308e80._0x28213c)]();const _0x336f8e=async()=>{const _0x99e95b={_0x37b786:0x3d},_0x3e5348=('0|2|1|3|'+'4')[_0x1a7b39(_0x67c52c._0x10abb8,0x411)]('|');function _0x1a7b39(_0x656085,_0xd34828){return _0x346ef4(_0xd34828,_0x656085-_0x5baee3._0x233304);}function _0x344228(_0x4bbd4b,_0x3647d9){return _0x346ef4(_0x4bbd4b,_0x3647d9-_0x99e95b._0x37b786);}let _0x166f83=0x0;while(!![]){switch(_0x3e5348[_0x166f83++]){case'0':process['off'](_0x39404d[_0x344228(0xdb,0x2d7)],_0x336f8e);continue;case'1':await _0x1a937e['stop']();continue;case'2':process[_0x344228(0x394,0x1da)]('SIGTERM',_0x336f8e);continue;case'3':_0x4c15e1&&clearServiceState(process[_0x344228(0xd8,-0x28)]);continue;case'4':process[_0x1a7b39(0x4ea,0x5a7)](0x0);continue;}break;}};process['on'](_0x48cf0a(0x3a6,0x508),_0x336f8e),process['on'](_0x48cf0a(0x403,0x3d2),_0x336f8e),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x5c374d,_0x3b7480){const _0x4c2b63={_0x2a1f28:0x401,_0x14e84d:0x3ed,_0x2cd8bf:0x47c,_0x4950be:0x140,_0x54f5e5:0x46f,_0x566854:0x50,_0x1081f6:0x657,_0x4059a4:0x4ef,_0xc0dfb0:0x48a,_0x3f1672:0x68,_0x5c626a:0x3fd,_0x5034e8:0x50,_0x4a9f4d:0x190,_0x32b801:0x3d7,_0x11f623:0x11c};_0x5c374d[_0x19a3b8(-0x218,-0x321)]==='refreshe'+'d'&&console[_0x163acf(0x293,0x397)](_0x163acf(0x313,_0x4c2b63._0x2a1f28)+'lready\x20p'+_0x19a3b8(-0x240,-_0x4c2b63._0x14e84d)+_0x163acf(_0x4c2b63._0x2cd8bf,0x389)+_0x19a3b8(-_0x4c2b63._0x4950be,-0x1ac)+_0x163acf(0x3de,_0x4c2b63._0x54f5e5)+'e.');console[_0x163acf(0x19e,0x397)](_0x163acf(0x36d,0x492)+'ID:\x20'+_0x5c374d['config']['gatewayI'+'d']),console[_0x19a3b8(-_0x4c2b63._0x566854,0xb0)](_0x163acf(_0x4c2b63._0x1081f6,_0x4c2b63._0x4059a4)+_0x163acf(0x2c3,_0x4c2b63._0xc0dfb0)+_0x19a3b8(-_0x4c2b63._0x3f1672,-0x8f)+'e\x20Clawke'+_0x163acf(0x462,_0x4c2b63._0x5c626a));const _0x48dfc8={};_0x48dfc8['small']=!![],_0x52e07e['generate'](_0x5c374d['qrPayloa'+'d'],_0x48dfc8);function _0x19a3b8(_0xd2a459,_0x1a6258){return _0x11b7ab(_0x1a6258,_0xd2a459- -0x1dc);}console[_0x19a3b8(-_0x4c2b63._0x5034e8,-_0x4c2b63._0x4a9f4d)](_0x163acf(_0x4c2b63._0x32b801,0x43e)+'\x20'+formatLocalTime(_0x5c374d['accessCo'+'deExpire'+_0x163acf(0x8a,0x19f)]));function _0x163acf(_0x3f02a7,_0x25cce4){return _0x11b7ab(_0x3f02a7,_0x25cce4-0x20b);}console['log'](_0x19a3b8(_0x4c2b63._0x11f623,0x7)+':\x20'+_0x3b7480);}function printStatus(){const _0x706d73={_0x41fe2a:0x898,_0x303172:0x69c,_0x17f57b:0x76f,_0x398e24:0x1df,_0x500f5e:0x5ea,_0x2d4f0b:0x703,_0x544d64:0x7a7,_0x38de3e:0x59e,_0x579bfe:0x68d,_0x2cf2fa:0x79,_0x10d8a7:0x53,_0x4a3815:0x86,_0x481917:0x4f9,_0x5d1e9f:0x78d,_0x89e45f:0x5a1,_0x2afd39:0xdb,_0x14c34c:0x3b,_0x5a8dc7:0x167,_0x3d26b7:0x210,_0x3d87f6:0x212,_0x3c88e5:0x6b7,_0x59f82c:0xc1,_0x5e346c:0xba,_0x124753:0xca,_0x26df4:0x788,_0x21e0f5:0x97,_0x10156e:0x17d,_0x1f16e4:0x42,_0x415058:0xb,_0x1c68f:0xdc,_0x5defc5:0x99,_0x316fc9:0x72b,_0x62514c:0x601,_0x50b9e:0xd4,_0x3ee2d0:0x282,_0x5332e7:0x83c,_0x4b165e:0xc6,_0x29b53e:0x668},_0x188814={_0x272026:0xd2},_0x453c1c={'xOgBR':function(_0xe14d3d){return _0xe14d3d();}},_0x1f8a90=_0x453c1c[_0x49864a(_0x706d73._0x41fe2a,_0x706d73._0x303172)](readPairingConfig),_0x6ec48=getServiceStatus(),{logPath:_0x59a66c,errorLogPath:_0x5bf37d}=getServicePaths();function _0x3d5c48(_0x56d6c2,_0x342d15){return _0x11b7ab(_0x56d6c2,_0x342d15- -_0x188814._0x272026);}const _0xd48072=readCliVersion();console[_0x49864a(_0x706d73._0x17f57b,0x703)](_0x3d5c48(_0x706d73._0x398e24,0x1f6)+'\x20'+_0xd48072);function _0x49864a(_0x3b6ef6,_0x4d532f){return _0x11b7ab(_0x3b6ef6,_0x4d532f-0x577);}!_0x1f8a90?console[_0x49864a(_0x706d73._0x500f5e,_0x706d73._0x2d4f0b)](_0x49864a(0x62d,0x555)+_0x49864a(0x8f7,_0x706d73._0x544d64)+_0x49864a(_0x706d73._0x38de3e,_0x706d73._0x579bfe)+_0x453c1c[_0x3d5c48(-_0x706d73._0x2cf2fa,_0x706d73._0x10d8a7)](getPairingConfigPath)+')'):(console[_0x3d5c48(_0x706d73._0x4a3815,0xba)](_0x49864a(_0x706d73._0x481917,0x555)+_0x49864a(0x505,0x6ae)),console['log'](_0x49864a(0x9cb,0x7fe)+_0x3d5c48(0x4d,-0x11c)+_0x1f8a90['gatewayI'+'d']),console['log']('Instance'+':\x20'+_0x1f8a90[_0x49864a(_0x706d73._0x5d1e9f,_0x706d73._0x89e45f)+'Id']),console[_0x49864a(0x727,0x703)](_0x3d5c48(-_0x706d73._0x2afd39,_0x706d73._0x14c34c)+'RL:\x20'+_0x1f8a90['serverUr'+'l']),console[_0x3d5c48(0x57,0xba)](_0x3d5c48(_0x706d73._0x5a8dc7,_0x706d73._0x3d26b7)+(_0x1f8a90[_0x3d5c48(_0x706d73._0x3d87f6,0x18)+_0x49864a(_0x706d73._0x3c88e5,0x86b)]??'-'))),console[_0x3d5c48(_0x706d73._0x59f82c,_0x706d73._0x5e346c)](_0x3d5c48(0x7a,_0x706d73._0x124753)+'\x20'+resolveGatewayUrl()),console[_0x49864a(0x72b,0x703)](_0x49864a(0x62f,0x7c5)+'\x20'+(_0x6ec48[_0x49864a(0x5b8,_0x706d73._0x26df4)+'d']?'installe'+'d':_0x3d5c48(-0x1a8,-0x16a)+_0x3d5c48(-_0x706d73._0x21e0f5,-_0x706d73._0x10156e))+'\x20('+_0x6ec48[_0x3d5c48(_0x706d73._0x1f16e4,-0xe9)]+')'),console[_0x3d5c48(_0x706d73._0x415058,0xba)](_0x3d5c48(-_0x706d73._0x1c68f,_0x706d73._0x5defc5)+'\x20'+(_0x6ec48[_0x49864a(_0x706d73._0x316fc9,0x59c)]?_0x49864a(_0x706d73._0x62514c,0x6b5):'no')),console[_0x3d5c48(-_0x706d73._0x50b9e,0xba)](_0x49864a(0x491,0x612)+(_0x6ec48[_0x3d5c48(_0x706d73._0x3ee2d0,0x1c8)+_0x49864a(0x837,_0x706d73._0x5332e7)]||'-')),console['log'](_0x49864a(0x63f,0x70c)+_0x59a66c),console['log']('Error\x20Lo'+_0x3d5c48(0x2ad,_0x706d73._0x4b165e)+_0x5bf37d),!_0x1f8a90&&(process[_0x49864a(_0x706d73._0x29b53e,0x476)]=0x1);}function printServiceResult(_0x2e0cc1,_0x97d195){const _0x544fdb={_0x479fae:0x3e9,_0x119b30:0xa1,_0x38fa3d:0x2a2,_0x3a8217:0x1c5,_0x548e42:0x7e,_0x5f058d:0x1d8,_0x498b3e:0x380,_0x5944e9:0x212,_0x3cf6a0:0x26c,_0x388dcc:0x140,_0x411847:0x43,_0x523dfd:0x7a,_0x13e7ff:0xdd,_0xe2cd72:0x319,_0x40f900:0x347},_0x3a64f0={_0x8f3991:0x60};function _0x59d859(_0x314808,_0x17d33b){return _0x6eb3(_0x17d33b,_0x314808- -0xeb);}const _0x32c969={};_0x32c969[_0x59d859(-0x228,-_0x544fdb._0x479fae)]=_0x59d859(0xe4,-_0x544fdb._0x119b30)+'d,\x20stopp'+'ed',_0x32c969[_0x2af046(0x36c,_0x544fdb._0x38fa3d)]=_0x59d859(-_0x544fdb._0x3a8217,-_0x544fdb._0x548e42)+_0x59d859(-_0x544fdb._0x5f058d,-0x3db);const _0x2bed00=_0x32c969;_0x2e0cc1&&console[_0x59d859(0x5f,-0x9d)](_0x2e0cc1);console[_0x2af046(_0x544fdb._0x498b3e,0x1aa)](_0x2af046(_0x544fdb._0x5944e9,_0x544fdb._0x3cf6a0)+'\x20'+(_0x97d195[_0x2af046(0x288,0x22f)+'d']?_0x97d195[_0x2af046(-_0x544fdb._0x388dcc,_0x544fdb._0x411847)]?'installe'+'d,\x20runni'+'ng':_0x2bed00[_0x2af046(-_0x544fdb._0x523dfd,-_0x544fdb._0x13e7ff)]:_0x2bed00[_0x2af046(0x146,0x2a2)]));function _0x2af046(_0x5c2b8d,_0x495487){return _0x6eb3(_0x5c2b8d,_0x495487-_0x3a64f0._0x8f3991);}console[_0x2af046(_0x544fdb._0xe2cd72,0x1aa)](_0x59d859(0x13,0x9e)+_0x2af046(0x330,0x28e)+(_0x97d195[_0x2af046(_0x544fdb._0x40f900,0x2b8)+_0x59d859(0x198,0x238)]||'-'));}function printDoctorReport(_0x3f1466){const _0xd099b5={_0x2ba355:0x429,_0x317e4b:0x492,_0x341a63:0x255,_0x5a5e08:0x2b5,_0x2557d8:0x1f5,_0x88da30:0x8f,_0x5fef9a:0x4c9,_0x478bdb:0x638,_0x4a71bd:0x468,_0x481038:0xe9,_0x28496b:0x1e4,_0x2bc20a:0x265,_0x249f4c:0x49a,_0x166846:0x6f,_0x40e7a0:0x52a,_0x496889:0x35b,_0x2c9e18:0x314,_0x16591d:0x3c2,_0x9e60f4:0x4ed,_0x44d6fb:0x274,_0x596d29:0x108,_0x56f4a6:0x361,_0x2ef07f:0x5a1,_0x9447b0:0x3c2,_0xea7d00:0x3b1,_0x3b4920:0x662,_0x459923:0x2a3,_0x32b307:0x49c,_0x47fb5e:0x2a3,_0xb423d3:0x37e,_0x16cc79:0x4e4,_0x54b332:0x4b8,_0x44cf85:0x85,_0x5653ca:0x355,_0x6724c9:0x266,_0x50b4cb:0x1c4,_0x21db97:0x459,_0x3a1b51:0x2a3,_0x119f2f:0x294,_0x6931a:0x2b2,_0x139cb6:0x5e8,_0x557072:0x179,_0x2b630a:0x1f9,_0x368723:0x346,_0x3e92fc:0x2ca,_0x5ac3f5:0x540,_0x267bad:0x3d3,_0x100777:0x3a7,_0x1c5d53:0x3f7,_0x3f82ff:0x498,_0x4e5fce:0x573,_0x237a48:0x3bd,_0x554e25:0x17,_0x4830b5:0x2cd};function _0x57b884(_0x393196,_0x3f48f0){return _0x11b7ab(_0x393196,_0x3f48f0-0x117);}const _0x3dda9e={};_0x3dda9e[_0x177fdc(_0xd099b5._0x2ba355,_0xd099b5._0x317e4b)]=_0x57b884(0x29f,_0xd099b5._0x341a63);const _0x5ee4e0=_0x3dda9e;console['log'](_0x177fdc(0x212,0x308)+(_0x3f1466['paired']?'yes':'no')),console[_0x177fdc(_0xd099b5._0x5a5e08,0x468)](_0x57b884(_0xd099b5._0x2557d8,0x39e)+_0x57b884(-_0xd099b5._0x88da30,0xcd)+(_0x3f1466[_0x177fdc(0x415,_0xd099b5._0x5fef9a)+'d']??'-')),console[_0x177fdc(_0xd099b5._0x478bdb,_0xd099b5._0x4a71bd)](_0x177fdc(0x1f1,0x3e9)+_0x57b884(-0xfc,0x10d)+(_0x3f1466[_0x57b884(-0xa0,0x157)+'l']??'-')),console['log'](_0x57b884(_0xd099b5._0x481038,_0xd099b5._0x28496b)+_0x177fdc(_0xd099b5._0x2bc20a,0x363)+(_0x3f1466[_0x57b884(0x31,0x28)]??'-')),console[_0x57b884(_0xd099b5._0x249f4c,0x2a3)](_0x177fdc(0x456,0x49e)+_0x57b884(0x2a9,0x266)+(_0x3f1466[_0x57b884(_0xd099b5._0x166846,0x141)+'Id']??'-')),console['log'](_0x177fdc(0x6cc,_0xd099b5._0x40e7a0)+'\x20'+(_0x3f1466[_0x177fdc(0x2a2,0x47e)+_0x177fdc(_0xd099b5._0x496889,_0xd099b5._0x2c9e18)]?_0x177fdc(_0xd099b5._0x16591d,_0xd099b5._0x9e60f4)+'d':_0x177fdc(_0xd099b5._0x44d6fb,0x244)+'alled')+'\x20('+_0x3f1466['serviceM'+'ethod']+')'),console['log'](_0x177fdc(0x4b9,0x41c)+_0x57b884(-_0xd099b5._0x596d29,0x62)+'\x20'+(_0x3f1466[_0x57b884(0x1b1,0x35)+_0x177fdc(_0xd099b5._0x56f4a6,0x4b6)]?_0x177fdc(_0xd099b5._0x2ef07f,0x41a):'no')),console[_0x177fdc(0x3b8,0x468)](_0x177fdc(0x523,0x41c)+_0x177fdc(0x6c7,0x54c)+(_0x3f1466[_0x57b884(_0xd099b5._0x9447b0,_0xd099b5._0xea7d00)+_0x177fdc(_0xd099b5._0x3b4920,0x5a1)]||'-'));function _0x177fdc(_0x3d350c,_0x3e4292){return _0x11b7ab(_0x3d350c,_0x3e4292-0x2dc);}console[_0x57b884(0x1f4,_0xd099b5._0x459923)](_0x177fdc(0x291,0x387)+':\x20'+_0x3f1466[_0x57b884(_0xd099b5._0x32b307,0x410)]),console[_0x57b884(0xd2,_0xd099b5._0x47fb5e)](_0x57b884(_0xd099b5._0xb423d3,0x327)+_0x177fdc(_0xd099b5._0x16cc79,_0xd099b5._0x54b332)+_0x3f1466[_0x57b884(-_0xd099b5._0x44cf85,0x16b)+_0x177fdc(_0xd099b5._0x5653ca,0x2d6)]),console['log']('OpenClaw'+_0x57b884(_0xd099b5._0x6724c9,_0xd099b5._0x50b4cb)+_0x3f1466[_0x177fdc(0x63a,_0xd099b5._0x21db97)+'ConfigDi'+'r']),console[_0x57b884(0x287,_0xd099b5._0x3a1b51)]('OpenClaw'+'\x20media:\x20'+_0x3f1466[_0x57b884(0x308,_0xd099b5._0x119f2f)+_0x177fdc(0x34f,_0xd099b5._0x6931a)]),console[_0x57b884(0x268,0x2a3)]('OpenClaw'+_0x177fdc(0x4b4,0x495)+'\x20'+(_0x3f1466['openclaw'+_0x177fdc(_0xd099b5._0x139cb6,0x56d)+_0x57b884(_0xd099b5._0x557072,_0xd099b5._0x2b630a)]?'found':_0x177fdc(0x148,_0xd099b5._0x368723))),console[_0x177fdc(_0xd099b5._0x3e92fc,_0xd099b5._0x4a71bd)](_0x57b884(_0xd099b5._0x5ac3f5,_0xd099b5._0x267bad)+_0x177fdc(0x195,0x31b)+(_0x3f1466[_0x57b884(_0xd099b5._0x100777,0x294)+'TokenFou'+'nd']?_0x177fdc(0x328,0x3ac):_0x57b884(0x334,0x181))),console[_0x57b884(_0xd099b5._0x1c5d53,0x2a3)](_0x177fdc(0x377,0x563)+_0x57b884(0xf2,0x3f)+_0x3f1466[_0x57b884(0x1c2,0x75)+'ewayUrl']),console[_0x177fdc(_0xd099b5._0x3f82ff,0x468)](_0x57b884(0x495,0x39e)+_0x57b884(_0xd099b5._0x4e5fce,_0xd099b5._0x237a48)+_0x57b884(0x9c,0x1a1)+(_0x3f1466[_0x57b884(_0xd099b5._0x554e25,0x75)+'ewayReac'+'hable']?_0x5ee4e0[_0x57b884(0xf9,_0xd099b5._0x4830b5)]:'no'));}function requirePairingConfig(){const _0x245486={_0x9db6e6:0x311,_0x49f546:0x36e},_0x50d1a5={_0x415ae5:0x1df};function _0x352d56(_0x1f06e8,_0x483ff0){return _0x11b7ab(_0x1f06e8,_0x483ff0-_0x50d1a5._0x415ae5);}const _0x364dc1=readPairingConfig();function _0x248922(_0x26489b,_0x30b63c){return _0x11b7ab(_0x26489b,_0x30b63c-0xc4);}return!_0x364dc1&&(console[_0x248922(0x264,0x6d)]('Not\x20pair'+'ed.\x20Run\x20'+'\x22clawket'+_0x352d56(0x472,0x274)+'irst.\x20Co'+_0x352d56(0x12c,0x1fb)+_0x352d56(_0x245486._0x9db6e6,_0x245486._0x49f546)+getPairingConfigPath()),process['exit'](0x1)),_0x364dc1;}function readFlag(_0x5a14b9,_0x3f2b61){const _0xe67623={_0x58bee1:0xac,_0x518313:0x40b,_0x522552:0x264,_0x365504:0x29e,_0x11c113:0xf4,_0x3b8b57:0x2dd},_0x226f54={_0x3cbbf6:0x1e4};function _0x27fc5c(_0x3ad3bb,_0xb742a7){return _0x6eb3(_0x3ad3bb,_0xb742a7-0x25e);}const _0x23c58b={};_0x23c58b[_0x9ed56(_0xe67623._0x58bee1,0xf4)]=function(_0x3dc05e,_0x10a6e1){return _0x3dc05e<_0x10a6e1;};function _0x9ed56(_0x2341cd,_0x10148f){return _0x6eb3(_0x2341cd,_0x10148f-_0x226f54._0x3cbbf6);}_0x23c58b[_0x27fc5c(0x4d3,_0xe67623._0x518313)]=function(_0xa41d61,_0xf757ea){return _0xa41d61+_0xf757ea;};const _0x5673d7=_0x23c58b,_0x52bb21=_0x5a14b9[_0x27fc5c(_0xe67623._0x522552,0x2ff)](_0x3f2b61);if(_0x5673d7[_0x9ed56(_0xe67623._0x365504,_0xe67623._0x11c113)](_0x52bb21,0x0))return null;const _0x35387c=_0x5a14b9[_0x5673d7[_0x27fc5c(0x39a,0x40b)](_0x52bb21,0x1)];return _0x35387c?.['trim']()?_0x35387c[_0x9ed56(_0xe67623._0x3b8b57,0x2a1)]():null;}function hasFlag(_0x2d8c48,_0x3be5e2){function _0x2522ff(_0x5e7c1f,_0x3a60cc){return _0x6eb3(_0x5e7c1f,_0x3a60cc- -0xeb);}return _0x2d8c48[_0x2522ff(-0xd5,-0x88)](_0x3be5e2);}function printHelp(){const _0x53460f={_0x4e4233:0x2ac,_0x4203c6:0x78,_0x550385:0x4e,_0x3abcc2:0x171,_0xb57fdf:0x39f,_0x32f36c:0x56,_0x407dc7:0x6fd,_0x41f8d2:0x57d,_0x514828:0x376,_0x266058:0x4d2,_0xa7e9fc:0x257,_0x5833d3:0x247,_0x3e2af3:0x2e0,_0x522454:0x1c8,_0x39a2ad:0x22c,_0x4bf290:0x58,_0x4610af:0xde,_0x40ea89:0x13b,_0x23735e:0x247,_0x48daa4:0x2bc,_0x57c5ed:0x389,_0x3e74ba:0x513,_0x1b5da5:0xf0,_0xf34d6e:0x451,_0x3ad18e:0x221,_0x13ab4f:0x17c,_0x574827:0xed,_0x12e19b:0x179,_0x56f4a0:0x1b8,_0x10077e:0x213,_0x1ec1d5:0x80,_0x3f32b3:0x35d,_0x428d07:0x224,_0x351cee:0x33,_0x382510:0x432,_0x18014b:0x5ab,_0x22f4a3:0x545,_0x3f8c81:0x5c4,_0xd58b15:0x3ad,_0x34bcc2:0x442,_0x3e203e:0x352,_0x115814:0x5b1,_0x29931f:0xbf,_0x880caa:0xf0,_0x3d4a1f:0xb6,_0x47e422:0x454,_0x19fec8:0x1b3},_0x5ad118={_0x3b7d84:0x44},_0x1f0732={_0x1a132b:0x320},_0xbad80e={};_0xbad80e['wwxgb']='clawket\x20'+'pair\x20[--'+_0xff2e16(-_0x53460f._0x4e4233,-0x125)+_0xff2e16(_0x53460f._0x4203c6,_0x53460f._0x550385)+_0xff2e16(-_0x53460f._0x3abcc2,-0xae)+_0x7a82c6(0x33c,_0x53460f._0xb57fdf)+'me>]\x20[--'+_0xff2e16(_0x53460f._0x32f36c,-0x17)+_0x7a82c6(_0x53460f._0x407dc7,_0x53460f._0x41f8d2)+_0xff2e16(_0x53460f._0x514828,0x1b8)+_0x7a82c6(0x41e,_0x53460f._0x266058)+'e]',_0xbad80e['yarBS']=_0xff2e16(_0x53460f._0xa7e9fc,_0x53460f._0x5833d3)+_0x7a82c6(0x285,_0x53460f._0x3e2af3);function _0x7a82c6(_0x1416fd,_0x36a689){return _0x6eb3(_0x1416fd,_0x36a689-_0x1f0732._0x1a132b);}_0xbad80e[_0xff2e16(0x207,0x189)]=_0x7a82c6(0x782,0x5ab)+_0xff2e16(_0x53460f._0x522454,_0x53460f._0x39a2ad),_0xbad80e[_0xff2e16(_0x53460f._0x4bf290,_0x53460f._0x4610af)]=_0xff2e16(_0x53460f._0x40ea89,_0x53460f._0x23735e)+_0xff2e16(_0x53460f._0x48daa4,0x1e6)+_0x7a82c6(0x60b,0x5d8)+_0x7a82c6(0x83,0x255)+'nes\x20<200'+'>]\x20[--er'+_0x7a82c6(_0x53460f._0x57c5ed,_0x53460f._0x3e74ba)+_0xff2e16(-0x101,_0x53460f._0x1b5da5);function _0xff2e16(_0x38f91e,_0x2eefc8){return _0x6eb3(_0x38f91e,_0x2eefc8- -_0x5ad118._0x3b7d84);}const _0xbeb92a=_0xbad80e;console[_0x7a82c6(_0x53460f._0xf34d6e,0x46a)]([_0xbeb92a['wwxgb'],'clawket\x20'+_0xff2e16(-_0x53460f._0x3ad18e,-_0x53460f._0x13ab4f)+_0xff2e16(-_0x53460f._0x574827,-_0x53460f._0x12e19b)+'qr-file\x20'+'<path>]\x20'+_0xff2e16(0x3b6,_0x53460f._0x56f4a0),_0xbeb92a[_0xff2e16(-_0x53460f._0x10077e,-_0x53460f._0x1ec1d5)],_0xff2e16(_0x53460f._0x3f32b3,0x247)+_0xff2e16(-_0x53460f._0x428d07,-_0x53460f._0x351cee),'clawket\x20'+_0x7a82c6(0x4db,0x43c),_0x7a82c6(_0x53460f._0x382510,_0x53460f._0x18014b)+_0x7a82c6(0x3c0,_0x53460f._0x22f4a3)+'l',_0xbeb92a['rSERL'],_0x7a82c6(0x614,0x5ab)+_0x7a82c6(0x5b4,_0x53460f._0x3f8c81),_0xbeb92a[_0x7a82c6(_0x53460f._0xd58b15,_0x53460f._0x34bcc2)],_0xff2e16(0x333,_0x53460f._0x23735e)+_0xff2e16(0xe3,-0xcd)+_0x7a82c6(0x345,0x4e2),'clawket\x20'+_0x7a82c6(0x447,_0x53460f._0x3e203e)+_0x7a82c6(_0x53460f._0x115814,0x44b)+_0xff2e16(0x2,_0x53460f._0x29931f)+_0xff2e16(-_0x53460f._0x880caa,_0x53460f._0x3d4a1f)+_0x7a82c6(_0x53460f._0x47e422,0x338)+'>]'][_0xff2e16(-_0x53460f._0x19fec8,-0xa4)]('\x0a'));}function formatLocalTime(_0x6d96ba){const _0x26dc52={_0x171adf:0x156,_0x10fac1:0x13b};function _0x30ada3(_0xf2f5bd,_0x10f863){return _0x6eb3(_0xf2f5bd,_0x10f863- -0x198);}const _0x307d84=new Date(_0x6d96ba);if(Number[_0x30ada3(-0x2cf,-0x1e8)](_0x307d84[_0x30ada3(-0x2f0,-0x108)]()))return _0x6d96ba;function _0xfc8b16(_0x165748,_0x3e86d4){return _0x6eb3(_0x165748,_0x3e86d4-0x1e);}return _0x307d84[_0xfc8b16(_0x26dc52._0x171adf,0xd6)+_0x30ada3(-_0x26dc52._0x10fac1,-0xcc)]();}function formatError(_0xbb62cd){function _0x5a0640(_0x291e5b,_0x575945){return _0x6eb3(_0x575945,_0x291e5b-0x143);}return _0xbb62cd instanceof Error?_0xbb62cd[_0x5a0640(0x1b5,0x243)]:String(_0xbb62cd);}function printJson(_0x4fe0c5){const _0x259246={_0x226a04:0xa0,_0x31dd91:0x11a};function _0x5ec82c(_0x3ac2e7,_0x236003){return _0x11b7ab(_0x3ac2e7,_0x236003-0x515);}function _0x314a1a(_0x298167,_0x5b418c){return _0x11b7ab(_0x298167,_0x5b418c- -0xec);}console[_0x314a1a(-0x114,_0x259246._0x226a04)](JSON[_0x314a1a(0x17,_0x259246._0x31dd91)+'y'](_0x4fe0c5,null,0x2));}main()[_0x11b7ab(-0x18a,0x6c)](_0x3886b3=>{const _0x516489={_0x437107:0x12e},_0x5c1f40={_0x2929b7:0xfa};function _0x1db80e(_0x399225,_0x5b34d3){return _0x11b7ab(_0x5b34d3,_0x399225- -_0x5c1f40._0x2929b7);}console[_0x1db80e(-0x151,-_0x516489._0x437107)](formatError(_0x3886b3)),process['exit'](0x1);});
2
+ (function(_0x249332,_0x14c557){const _0x59cdb1={_0x2d5a4c:0x4e3,_0x15e580:0x2d,_0x2ed396:0x122,_0x42d54d:0xe8,_0x2ecea9:0x3e4,_0x5dbe60:0x22d,_0x5963e3:0x134,_0x466fbe:0x206},_0xcb7069={_0x73d3e4:0x2e7},_0x38620b=_0x249332();function _0x83e53b(_0x38f2c4,_0x32ee41){return _0xec0d(_0x32ee41- -_0xcb7069._0x73d3e4,_0x38f2c4);}function _0x2d0701(_0x5972dd,_0x5a7d18){return _0xec0d(_0x5972dd-0x7c,_0x5a7d18);}while(!![]){try{const _0x426cf9=parseInt(_0x2d0701(_0x59cdb1._0x2d5a4c,0x678))/0x1+parseInt(_0x83e53b(-0x1b8,-0x124))/0x2+parseInt(_0x2d0701(0x4c5,0x4ed))/0x3*(-parseInt(_0x83e53b(_0x59cdb1._0x15e580,_0x59cdb1._0x2ed396))/0x4)+parseInt(_0x2d0701(0x37f,0x428))/0x5+parseInt(_0x83e53b(_0x59cdb1._0x42d54d,-0xd6))/0x6*(-parseInt(_0x2d0701(_0x59cdb1._0x2ecea9,_0x59cdb1._0x5dbe60))/0x7)+parseInt(_0x83e53b(0x33,_0x59cdb1._0x5963e3))/0x8*(parseInt(_0x2d0701(0x5b5,0x639))/0x9)+parseInt(_0x2d0701(0x30f,_0x59cdb1._0x466fbe))/0xa;if(_0x426cf9===_0x14c557)break;else _0x38620b['push'](_0x38620b['shift']());}catch(_0x334544){_0x38620b['push'](_0x38620b['shift']());}}}(_0x5910,0x30ea3));const _0x50d6af=(function(){let _0x3da384=!![];return function(_0x51a2e3,_0x5e9ca5){const _0x47cf66={_0xb6f8fc:0xdb},_0x4a7b37={_0x5d77e3:0x3e8},_0x10e8ca=_0x3da384?function(){function _0x4e2a0d(_0x4953d7,_0x297baf){return _0xec0d(_0x297baf- -_0x4a7b37._0x5d77e3,_0x4953d7);}if(_0x5e9ca5){const _0x1112d1=_0x5e9ca5[_0x4e2a0d(0x2e,_0x47cf66._0xb6f8fc)](_0x51a2e3,arguments);return _0x5e9ca5=null,_0x1112d1;}}:function(){};return _0x3da384=![],_0x10e8ca;};}()),_0x4a533c=_0x50d6af(this,function(){const _0x34a346={_0x1b870d:0x5d2,_0xd24441:0x87a,_0x3f4bee:0x80e,_0x474cb8:0x4cf,_0x8530f:0x59d,_0x11472a:0x4db,_0x5ae59f:0x531},_0xde9abe={_0x2f1cbd:0x2e6};function _0x11fdd1(_0xcf95e7,_0x29a9ee){return _0xec0d(_0x29a9ee-0x5f,_0xcf95e7);}function _0xbce1ac(_0x514a36,_0x4df43e){return _0xec0d(_0x4df43e-_0xde9abe._0x2f1cbd,_0x514a36);}return _0x4a533c[_0x11fdd1(_0x34a346._0x1b870d,0x52d)]()[_0xbce1ac(_0x34a346._0xd24441,0x762)]('(((.+)+)'+_0xbce1ac(_0x34a346._0x3f4bee,0x711))['toString']()[_0xbce1ac(_0x34a346._0x474cb8,0x5d9)+'tor'](_0x4a533c)[_0x11fdd1(_0x34a346._0x8530f,_0x34a346._0x11472a)](_0xbce1ac(0x4af,_0x34a346._0x5ae59f)+'+)+$');});_0x4a533c();import _0x175cdc from'qrcode-terminal';import{readFileSync as _0x2e4f32}from'fs';import{Socket}from'net';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x180075(0x9ac,0x8ba)),CONFIG_PATH=join(CONFIG_DIR,_0x28051b(0x6ea,0x50d)+_0x180075(0x50b,0x5e6)),OPENCLAW_CONFIG_PATH=join(homedir(),_0x180075(0x632,0x605)+'w','openclaw'+_0x180075(0x6ce,0x886));function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x520bda={_0x4c353f:0x602,_0x2dc01e:0x333,_0x3a9ef3:0x198,_0x168c48:0x1a0,_0x1bfeb7:0x73,_0x4cb0e1:0x284,_0x36ef29:0x1ba,_0x371684:0x17e,_0x76cb32:0x760,_0x1520b5:0x5f2,_0x5d3dc1:0x248,_0x5a8501:0x14b,_0x316575:0x2e2,_0x2dd976:0x10c,_0x2ba9ac:0x345,_0x1728ae:0x44,_0x480575:0x4c7,_0x4c3f29:0x301,_0x26d7a5:0x126,_0x343b05:0x17a,_0x466175:0x1ff},_0x44a616={_0x335847:0xb7},_0x517068={_0x4a9543:0x208};function _0x3a9996(_0x86886b,_0x20b3b7){return _0x28051b(_0x20b3b7,_0x86886b- -_0x517068._0x4a9543);}function _0xab5ed3(_0x2ccc8e,_0x26d10d){return _0x28051b(_0x2ccc8e,_0x26d10d-_0x44a616._0x335847);}const _0x5f269a={'shqWR':function(_0xded370,_0xa347f1){return _0xded370(_0xa347f1);}};if(!_0x5f269a['shqWR'](existsSync,CONFIG_PATH))return null;try{const _0x37a68a=JSON[_0x3a9996(0x390,0x362)](readFileSync(CONFIG_PATH,_0xab5ed3(0x748,_0x520bda._0x4c353f)));if(!_0x37a68a[_0x3a9996(_0x520bda._0x2dc01e,_0x520bda._0x3a9ef3)+'l']||!_0x37a68a[_0x3a9996(_0x520bda._0x168c48,_0x520bda._0x1bfeb7)+'d']||!_0x37a68a[_0x3a9996(0x154,_0x520bda._0x4cb0e1)+_0xab5ed3(0x4ce,0x507)]||!_0x37a68a[_0x3a9996(_0x520bda._0x36ef29,_0x520bda._0x371684)])return null;const _0x5cd7ce={'serverUrl':_0x37a68a[_0xab5ed3(_0x520bda._0x76cb32,_0x520bda._0x1520b5)+'l'],'gatewayId':_0x37a68a[_0x3a9996(_0x520bda._0x168c48,-0x40)+'d'],'relaySecret':_0x37a68a['relaySec'+_0x3a9996(_0x520bda._0x5d3dc1,0x107)],'relayUrl':_0x37a68a[_0xab5ed3(0x422,0x479)],'instanceId':_0x37a68a[_0x3a9996(0x11,0x17)+'Id']?.[_0x3a9996(0xba,_0x520bda._0x5a8501)]()||createInstanceId(),'displayName':_0x37a68a[_0x3a9996(_0x520bda._0x316575,_0x520bda._0x2dd976)+_0x3a9996(_0x520bda._0x2ba9ac,0x396)]??null,'createdAt':_0x37a68a[_0x3a9996(_0x520bda._0x1728ae,-0x158)+'t']??new Date()[_0xab5ed3(_0x520bda._0x480575,0x439)+_0x3a9996(_0x520bda._0x4c3f29,_0x520bda._0x26d7a5)](),'updatedAt':_0x37a68a['updatedA'+'t']??new Date()[_0x3a9996(_0x520bda._0x343b05,_0x520bda._0x466175)+'ing']()};return _0x37a68a[_0x3a9996(0x11,-0x2c)+'Id']!==_0x5cd7ce['instance'+'Id']&&writePairingConfig(_0x5cd7ce),_0x5cd7ce;}catch{return null;}}function writePairingConfig(_0x102873){const _0xe49008={_0x3788d6:0x8f2,_0x948136:0x7fc,_0x41a3bf:0xa39,_0x139ec0:0x890,_0x353c85:0x578,_0x182881:0x51a,_0x3ece6e:0x3ac},_0x2b74e1={_0x5ad99a:0x2de},_0x457d80={};_0x457d80[_0x7c31dd(0x599,0x413)]=function(_0x415359,_0x18b62e){return _0x415359+_0x18b62e;};const _0x298075=_0x457d80;function _0x4ef2e4(_0x27a7fd,_0x404ae1){return _0x28051b(_0x27a7fd,_0x404ae1-_0x2b74e1._0x5ad99a);}const _0x4e51b9={};_0x4e51b9[_0x4ef2e4(_0xe49008._0x3788d6,_0xe49008._0x948136)+'e']=!![],mkdirSync(CONFIG_DIR,_0x4e51b9);function _0x7c31dd(_0x20ebcd,_0x4d430d){return _0x28051b(_0x20ebcd,_0x4d430d- -0x19f);}writeFileSync(CONFIG_PATH,_0x298075[_0x4ef2e4(_0xe49008._0x41a3bf,_0xe49008._0x139ec0)](JSON[_0x7c31dd(_0xe49008._0x353c85,0x396)+'y'](_0x102873,null,0x2),'\x0a'),_0x7c31dd(_0xe49008._0x182881,_0xe49008._0x3ece6e));}function deletePairingConfig(){const _0x4dd495={_0x25ad97:0x469},_0xd42f97={_0x14578d:0x4d};if(!existsSync(CONFIG_PATH))return;const _0x46e1da={};function _0xa11efc(_0xb0e893,_0x3b7859){return _0x28051b(_0x3b7859,_0xb0e893- -_0xd42f97._0x14578d);}_0x46e1da[_0xa11efc(0x2cb,_0x4dd495._0x25ad97)]=!![],rmSync(CONFIG_PATH,_0x46e1da);}function getDefaultBridgeDisplayName(){const _0x1fd4ee={_0x2f719a:0x30a,_0x50e3cd:0x9e,_0x388c8f:0x2b5,_0x17212e:0x38a,_0x1f3f52:0x49e},_0x48151e={_0xe50e74:0x53d},_0x58be59={'evHxt':function(_0x5cd81a){return _0x5cd81a();},'boCbr':function(_0x58cdce){return _0x58cdce();}};function _0x1e1844(_0x22cfc7,_0x289f47){return _0x180075(_0x289f47,_0x22cfc7- -0x326);}const _0x2f9aee=_0x58be59[_0x1e1844(0x231,0x235)](readOpenClawDefaultAgentName);if(_0x2f9aee)return _0x2f9aee;try{const _0x48fc47=_0x58be59[_0x1e1844(0x42c,0x614)](userInfo)[_0x55ba6e(0x49b,_0x1fd4ee._0x2f719a)][_0x55ba6e(-0x105,_0x1fd4ee._0x50e3cd)]();if(_0x48fc47)return _0x48fc47;}catch{}const _0x281be9=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x55ba6e(0x16c,0x9e)]();if(_0x281be9)return _0x281be9;function _0x55ba6e(_0x1d9260,_0x2b5485){return _0x180075(_0x1d9260,_0x2b5485- -_0x48151e._0xe50e74);}return hostname()[_0x1e1844(_0x1fd4ee._0x388c8f,_0x1fd4ee._0x17212e)]()||_0x1e1844(0x3b1,0x53b)+_0x55ba6e(_0x1fd4ee._0x1f3f52,0x2ed);}function _0xec0d(_0x1d945c,_0x1a2f8a){_0x1d945c=_0x1d945c-0x1b8;const _0x467395=_0x5910();let _0x4a533c=_0x467395[_0x1d945c];if(_0xec0d['matJWl']===undefined){var _0x50d6af=function(_0x29990b){const _0x456cd9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a81e2='',_0x3584b1='',_0x25b8f3=_0x5a81e2+_0x50d6af;for(let _0x46216b=0x0,_0x357c03,_0xee12b6,_0x19cfae=0x0;_0xee12b6=_0x29990b['charAt'](_0x19cfae++);~_0xee12b6&&(_0x357c03=_0x46216b%0x4?_0x357c03*0x40+_0xee12b6:_0xee12b6,_0x46216b++%0x4)?_0x5a81e2+=_0x25b8f3['charCodeAt'](_0x19cfae+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x357c03>>(-0x2*_0x46216b&0x6)):_0x46216b:0x0){_0xee12b6=_0x456cd9['indexOf'](_0xee12b6);}for(let _0x2b3388=0x0,_0xd99284=_0x5a81e2['length'];_0x2b3388<_0xd99284;_0x2b3388++){_0x3584b1+='%'+('00'+_0x5a81e2['charCodeAt'](_0x2b3388)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3584b1);};_0xec0d['JhKjuN']=_0x50d6af,_0xec0d['eJplhx']={},_0xec0d['matJWl']=!![];}const _0x59109a=_0x467395[0x0],_0xec0d87=_0x1d945c+_0x59109a,_0x3a53af=_0xec0d['eJplhx'][_0xec0d87];if(!_0x3a53af){const _0x5bc641=function(_0x54a655){this['vPMruy']=_0x54a655,this['msTglD']=[0x1,0x0,0x0],this['yetYEN']=function(){return'newState';},this['cvHVXl']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['XUYhaQ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5bc641['prototype']['brGdTP']=function(){const _0x93f58a=new RegExp(this['cvHVXl']+this['XUYhaQ']),_0x22df61=_0x93f58a['test'](this['yetYEN']['toString']())?--this['msTglD'][0x1]:--this['msTglD'][0x0];return this['JdTDip'](_0x22df61);},_0x5bc641['prototype']['JdTDip']=function(_0x2812d9){if(!Boolean(~_0x2812d9))return _0x2812d9;return this['MnxKuJ'](this['vPMruy']);},_0x5bc641['prototype']['MnxKuJ']=function(_0x256889){for(let _0x381f86=0x0,_0x274b5c=this['msTglD']['length'];_0x381f86<_0x274b5c;_0x381f86++){this['msTglD']['push'](Math['round'](Math['random']())),_0x274b5c=this['msTglD']['length'];}return _0x256889(this['msTglD'][0x0]);},new _0x5bc641(_0xec0d)['brGdTP'](),_0x4a533c=_0xec0d['JhKjuN'](_0x4a533c),_0xec0d['eJplhx'][_0xec0d87]=_0x4a533c;}else _0x4a533c=_0x3a53af;return _0x4a533c;}function pickOpenClawDefaultAgentName(_0xe02154){const _0x51a8b6={_0x2ae4de:0x54,_0x4fdb1b:0x3d4,_0x1f6228:0x52a,_0x31d358:0x5ca,_0x5db7b0:0x992,_0x251551:0x73b,_0x387fb8:0x66c},_0xa8d5ac={'JaKme':function(_0x4f1a90,_0x298031){return _0x4f1a90(_0x298031);}};if(!_0xe02154||typeof _0xe02154!==_0xb6a5ba(-_0x51a8b6._0x2ae4de,-0x16))return null;function _0x1c1fd1(_0x7f3629,_0x16ae49){return _0x28051b(_0x7f3629,_0x16ae49-0x258);}const _0x78d0b4=_0xe02154[_0x1c1fd1(_0x51a8b6._0x4fdb1b,_0x51a8b6._0x1f6228)],_0x3888c2=Array[_0x1c1fd1(0x649,_0x51a8b6._0x31d358)](_0x78d0b4?.[_0xb6a5ba(0xfd,0x171)])?_0x78d0b4[_0x1c1fd1(_0x51a8b6._0x5db7b0,0x7be)]:[];function _0xb6a5ba(_0x37cf8c,_0x26aa93){return _0x28051b(_0x37cf8c,_0x26aa93- -0x3f5);}const _0x4523cc=_0x3888c2['find'](_0x2bae23=>isDefaultAgent(_0x2bae23))??_0x3888c2[_0x1c1fd1(0x44f,0x4e5)](_0x4e2773=>hasAgentId(_0x4e2773,_0xb6a5ba(0x82,0x95)))??_0x3888c2[0x0];return _0xa8d5ac[_0x1c1fd1(_0x51a8b6._0x251551,_0x51a8b6._0x387fb8)](readAgentName,_0x4523cc);}function createInstanceId(){const _0x34f216={_0x3186d2:0x391,_0x1a96d1:0x33e,_0x593417:0x46b},_0x4fe0ca={_0x4ad823:0x96},_0x44e28d={'ONuKA':function(_0x5b4ad1){return _0x5b4ad1();},'fidry':_0x59b47e(0x577,_0x34f216._0x3186d2)};function _0x59b47e(_0x30fcbe,_0x300ae4){return _0x28051b(_0x300ae4,_0x30fcbe-_0x4fe0ca._0x4ad823);}const _0x5dc711=sanitizeId(_0x44e28d[_0x3a3741(0x231,0x3f9)](hostname)||_0x44e28d['fidry']);function _0x3a3741(_0x1b1ffc,_0x472051){return _0x28051b(_0x1b1ffc,_0x472051- -0xe4);}return'inst-'+_0x5dc711+'-'+randomUUID()[_0x59b47e(_0x34f216._0x1a96d1,_0x34f216._0x593417)](0x0,0xa);}function sanitizeId(_0x203c73){const _0x1d71f9={_0x53c232:0x25a,_0x3a1017:0x293,_0x36d0e2:0x7c1,_0x302319:0x6a2},_0x33c7aa={_0x1fa73e:0x381},_0x38a0ea={_0x5e8ed5:0x1f0};function _0x25330e(_0x21d3b9,_0x3cd616){return _0x180075(_0x21d3b9,_0x3cd616- -_0x38a0ea._0x5e8ed5);}function _0x276e9b(_0x4359fb,_0x395c6a){return _0x180075(_0x395c6a,_0x4359fb- -_0x33c7aa._0x1fa73e);}return _0x203c73[_0x276e9b(_0x1d71f9._0x53c232,0x213)]()[_0x276e9b(_0x1d71f9._0x3a1017,0x13d)+'ase']()['replace'](/[^a-z0-9._-]+/g,'-')[_0x25330e(_0x1d71f9._0x36d0e2,_0x1d71f9._0x302319)](/^-+|-+$/g,'')||'host';}function readOpenClawDefaultAgentName(){const _0x305771={_0x1694a7:0x747},_0x373af1={_0x49aee9:0x38c};function _0x185cb9(_0x1a9b9b,_0x1c933a){return _0x28051b(_0x1c933a,_0x1a9b9b-0x1fc);}if(!existsSync(OPENCLAW_CONFIG_PATH))return null;function _0x452dee(_0x394d01,_0x2c432d){return _0x28051b(_0x2c432d,_0x394d01- -_0x373af1._0x49aee9);}try{const _0x38994a=JSON[_0x185cb9(0x794,0x744)](readFileSync(OPENCLAW_CONFIG_PATH,_0x185cb9(_0x305771._0x1694a7,0x6ca)));return pickOpenClawDefaultAgentName(_0x38994a);}catch{return null;}}function isDefaultAgent(_0x38d7b){const _0x41ac85={_0x5f4b2c:0x6af,_0x1408fa:0x780};function _0x59cdaf(_0x14cff6,_0x177302){return _0x180075(_0x14cff6,_0x177302- -0x2e4);}const _0x2b2dd1={};_0x2b2dd1[_0x49118e(_0x41ac85._0x5f4b2c,_0x41ac85._0x1408fa)]=_0x59cdaf(0x54c,0x414);const _0x511871=_0x2b2dd1;function _0x49118e(_0x4528dd,_0x4e649e){return _0x180075(_0x4e649e,_0x4528dd-0x10);}return Boolean(_0x38d7b&&typeof _0x38d7b===_0x511871[_0x49118e(0x6af,0x84c)]&&_0x38d7b['default']===!![]);}function hasAgentId(_0x2e24d9,_0x5d2748){const _0x4122f9={_0x380d7a:0x176,_0x645e6a:0xe4},_0x394627={_0x49cccf:0x189};function _0x2b3c67(_0x493a6d,_0x570fc0){return _0x28051b(_0x493a6d,_0x570fc0- -0x2fb);}function _0x2c9ae6(_0x5c96e7,_0x1dc38f){return _0x28051b(_0x5c96e7,_0x1dc38f- -_0x394627._0x49cccf);}return Boolean(_0x2e24d9&&typeof _0x2e24d9===_0x2b3c67(_0x4122f9._0x380d7a,_0x4122f9._0x645e6a)&&typeof _0x2e24d9['id']===_0x2b3c67(0x3ff,0x293)&&_0x2e24d9['id']['trim']()===_0x5d2748);}function readAgentName(_0x1400c7){const _0x21393f={_0x1d133e:0x381,_0x106787:0x1f,_0x479f54:0x64},_0x4e518a={_0x19004b:0x3b7},_0x4578d8={};_0x4578d8['LjlwF']=function(_0x474646,_0x4baa48){return _0x474646===_0x4baa48;};const _0x547f93=_0x4578d8;if(!_0x1400c7||typeof _0x1400c7!=='object')return null;function _0x2731df(_0x3b5f68,_0x24b44a){return _0x28051b(_0x24b44a,_0x3b5f68- -0x326);}const _0x13651c=_0x1400c7;function _0x2fa2ca(_0x2564da,_0x3072cf){return _0x28051b(_0x2564da,_0x3072cf- -_0x4e518a._0x19004b);}const _0x5ca9be=typeof _0x13651c[_0x2fa2ca(0x37,0xb3)]?.[_0x2fa2ca(-0x6d,-0x1f)]===_0x2731df(0x268,_0x21393f._0x1d133e)?_0x13651c[_0x2fa2ca(0x158,0xb3)]['name'][_0x2fa2ca(0xca,-0xf5)]():'';if(_0x5ca9be)return _0x5ca9be;const _0x2f33ee=_0x547f93['LjlwF'](typeof _0x13651c['name'],_0x2731df(0x268,0x40a))?_0x13651c[_0x2fa2ca(0x50,-_0x21393f._0x106787)][_0x2731df(-_0x21393f._0x479f54,0x97)]():'';return _0x2f33ee||null;}function buildPairingQrPayload(_0x5eb42d){const _0x341947={_0x664279:0x655,_0x59c85a:0x520,_0x3c6236:0x4d3,_0xcbb174:0x536,_0x1fc2f6:0x55f,_0x3db151:0x665,_0x3cb1c2:0x806,_0x2040da:0x2ab,_0x1f5ebb:0x244,_0x34f474:0x2a9,_0x328b4b:0x579,_0x130e10:0x3c4,_0x532817:0x4be,_0x59f839:0x57b},_0x47e234={_0x4f0626:0x60},_0x32fc0e={};_0x32fc0e['v']=0x2,_0x32fc0e['k']='cp',_0x32fc0e['s']=_0x5eb42d[_0x3cd44d(0x77b,_0x341947._0x664279)],_0x32fc0e['g']=_0x5eb42d['gatewayI'+'d'],_0x32fc0e['a']=_0x5eb42d[_0x52ade0(0x38f,0x3ec)+'de'];function _0x3cd44d(_0x32ff82,_0x343c00){return _0x180075(_0x32ff82,_0x343c00- -_0x47e234._0x4f0626);}function _0x52ade0(_0x116197,_0x2abcea){return _0x180075(_0x116197,_0x2abcea- -0x330);}const _0x4b11b8=_0x32fc0e;return _0x5eb42d[_0x52ade0(_0x341947._0x59c85a,_0x341947._0x3c6236)+_0x52ade0(0x531,_0x341947._0xcbb174)]?.[_0x3cd44d(_0x341947._0x1fc2f6,0x57b)]()&&(_0x4b11b8['n']=_0x5eb42d['displayN'+_0x3cd44d(_0x341947._0x3db151,_0x341947._0x3cb1c2)][_0x52ade0(0x2ff,_0x341947._0x2040da)]()),_0x5eb42d[_0x52ade0(_0x341947._0x1f5ebb,_0x341947._0x34f474)]?.['trim']()&&(_0x4b11b8['t']=_0x5eb42d[_0x3cd44d(0x537,_0x341947._0x328b4b)][_0x3cd44d(0x46b,0x57b)]()),_0x5eb42d[_0x3cd44d(_0x341947._0x130e10,0x541)]?.[_0x3cd44d(_0x341947._0x532817,_0x341947._0x59f839)]()&&(_0x4b11b8['p']=_0x5eb42d[_0x3cd44d(0x52f,0x541)]['trim']()),JSON[_0x52ade0(0x677,0x51e)+'y'](_0x4b11b8);}async function pairGateway(_0x16d066){const _0x4a5567={_0x4161bb:0x258,_0x2ac632:0x1f7,_0x5c80a9:0xc4,_0x217647:0xb7,_0x4a8ba3:0x349,_0x3befd1:0x130,_0x40b8c3:0x1c5,_0x3f5c69:0x63,_0x4b2d45:0xaf,_0x5665ee:0x287,_0x4bea59:0x12c,_0xff6986:0x3d7,_0x21cc9a:0x229,_0x3c8056:0x129,_0x4e014f:0x1c6,_0x295ec0:0x7f,_0x3a3e63:0x218,_0x14e5a0:0x1ff,_0x3836e3:0x2,_0x1bf4da:0x17d,_0x87ef2a:0xe9,_0x248d67:0x3f,_0x246f93:0x114,_0x1002f8:0x270,_0x196f61:0xd0,_0x43e437:0xc1,_0x2682b0:0x14d,_0x48ac9d:0x1ba,_0x5f3e13:0x100,_0x46b455:0x8f,_0x51b3e5:0xc0,_0xac573f:0x26f,_0x1fff1b:0x4,_0x5734a4:0xf4,_0x381b79:0x2b,_0x24735d:0x3d,_0x20f16b:0x65,_0x783959:0x12d,_0xfcc0a9:0x148,_0x589a0d:0x150,_0x3549bf:0x27,_0x42992a:0x6d,_0x85bb04:0x2b8,_0x2dfb57:0x1bb,_0x471114:0x62,_0x3da17e:0xda,_0x2f201d:0x151,_0x2f9a69:0x2c9,_0x347acb:0xa,_0x5791bc:0xfe,_0x54a154:0x8a,_0x4f0b44:0xdf,_0x5d7a0b:0x84,_0x2e7aae:0x4e,_0x16c414:0x9e,_0x2c7dc5:0x1f2,_0x111c16:0x3e,_0x14085b:0x4a,_0x30a2e0:0x13a,_0x56cdbf:0xcb,_0x5c82e6:0xd6,_0x4c5f7e:0x1c6,_0x52f2e8:0x8,_0x54c102:0xdf,_0x1e7418:0xde,_0x1b6858:0xcb,_0x4907d8:0x63,_0x25c553:0xa2,_0x36394:0x1c6,_0x13c5f8:0x74,_0x2d0c18:0xab,_0x2cde63:0x3c4,_0x27612a:0x2d3,_0x9184ba:0x62,_0x5a04ee:0x62},_0x204652={_0x26ba33:0x63d},_0x2c463d={'ISwnG':function(_0x5da45e){return _0x5da45e();},'SldnA':_0x2c5963(_0x4a5567._0x4161bb,0x1d1)+'ismatch','kAKNw':_0x2c5963(_0x4a5567._0x2ac632,_0x4a5567._0x5c80a9)+'ed'},_0x30ada5=normalizeHttpBase(_0x16d066[_0x15e85c(0x130,0x14f)+'l']),_0x250e00=_0x2c463d[_0x15e85c(_0x4a5567._0x217647,0x1e4)](readPairingConfig),_0x399aa9=assessPairingCompatibility(_0x250e00,_0x30ada5);if(_0x399aa9===_0x2c5963(-0x1d4,-0xc0)+'existing'&&_0x250e00){const _0x26df19={};return _0x26df19[_0x2c5963(_0x4a5567._0x4a8ba3,0x217)+'l']=_0x250e00[_0x15e85c(_0x4a5567._0x3befd1,_0x4a5567._0x40b8c3)+'l'],_0x26df19[_0x15e85c(-_0x4a5567._0x3f5c69,-0x234)+'d']=_0x250e00['gatewayI'+'d'],_0x26df19[_0x15e85c(-0xaf,-0xf7)+_0x2c5963(0x25b,0x12c)]=_0x250e00[_0x15e85c(-_0x4a5567._0x4b2d45,0xbd)+_0x2c5963(_0x4a5567._0x5665ee,_0x4a5567._0x4bea59)],_0x26df19['displayN'+_0x2c5963(_0x4a5567._0xff6986,_0x4a5567._0x21cc9a)]=_0x16d066[_0x2c5963(_0x4a5567._0x3c8056,_0x4a5567._0x4e014f)+'ame'],_0x26df19[_0x2c5963(_0x4a5567._0x295ec0,0xab)+_0x15e85c(0x1ec,_0x4a5567._0x3a3e63)]=_0x16d066[_0x15e85c(-0x3c,-0xdc)+_0x2c5963(_0x4a5567._0x14e5a0,0x2d3)],_0x26df19[_0x2c5963(-0x136,-_0x4a5567._0x3836e3)+_0x2c5963(-_0x4a5567._0x1bf4da,0x13)]=_0x16d066[_0x15e85c(-_0x4a5567._0x87ef2a,-_0x4a5567._0x248d67)+_0x15e85c(-0xd4,_0x4a5567._0x246f93)],refreshAccessCode(_0x26df19);}if(_0x399aa9===_0x2c463d[_0x15e85c(0x1d9,_0x4a5567._0x1002f8)])throw new Error(_0x15e85c(-0x15,-0x1d9)+'dge\x20is\x20a'+_0x15e85c(-0x8f,-0x14c)+_0x15e85c(0x167,0x218)+_0x15e85c(-_0x4a5567._0x196f61,-0x293)+_0x250e00?.[_0x15e85c(_0x4a5567._0x3befd1,0x26e)+'l']+(_0x15e85c(_0x4a5567._0x43e437,0x21e)+_0x2c5963(_0x4a5567._0x2682b0,_0x4a5567._0x48ac9d)+_0x15e85c(-_0x4a5567._0x5f3e13,-0x6c)+_0x2c5963(0x103,0x177)+'ring\x20wit'+_0x2c5963(_0x4a5567._0x46b455,_0x4a5567._0x51b3e5)+_0x2c5963(0x1c8,_0x4a5567._0xac573f)+'rver.'));const _0x4baa13={};_0x4baa13[_0x2c5963(0x17f,_0x4a5567._0x1fff1b)+_0x2c5963(-_0x4a5567._0x5734a4,-_0x4a5567._0x381b79)]='applicat'+_0x2c5963(-0x248,-0x61),_0x4baa13[_0x2c5963(_0x4a5567._0x24735d,-0xde)]=_0x15e85c(_0x4a5567._0x20f16b,_0x4a5567._0x783959)+_0x15e85c(-_0x4a5567._0xfcc0a9,-_0x4a5567._0x589a0d);const _0x2c9da8=await fetch(_0x30ada5+('/v1/pair'+_0x2c5963(_0x4a5567._0x3549bf,_0x4a5567._0x42992a)+'r'),{'method':_0x2c5963(0x194,_0x4a5567._0x85bb04),'headers':_0x4baa13,'body':JSON['stringif'+'y']({'displayName':_0x16d066[_0x2c5963(0xe9,0x1c6)+'ame']?.[_0x2c5963(-_0x4a5567._0x2dfb57,-_0x4a5567._0x471114)]()||null})});function _0x2c5963(_0x26a437,_0x2d74d9){return _0x180075(_0x26a437,_0x2d74d9- -_0x204652._0x26ba33);}if(!_0x2c9da8['ok'])throw new Error(_0x2c5963(-0xc5,_0x4a5567._0x3da17e)+'ister\x20fa'+_0x2c5963(-0x4a,0xf8)+_0x2c9da8['status']+'):\x20'+await _0x2c9da8[_0x15e85c(-_0x4a5567._0x2f201d,-_0x4a5567._0x2f9a69)]());const _0x30f2f4=await _0x2c9da8[_0x2c5963(-_0x4a5567._0x347acb,-0x67)](),_0x39c5ac=new Date()[_0x15e85c(-0x89,0x127)+_0x15e85c(_0x4a5567._0x5791bc,_0x4a5567._0x54a154)]();function _0x15e85c(_0x560c3a,_0x9d0e20){return _0x180075(_0x9d0e20,_0x560c3a- -0x724);}const _0x357ad0={'serverUrl':_0x30ada5,'gatewayId':_0x30f2f4[_0x2c5963(-_0x4a5567._0x4f0b44,_0x4a5567._0x5d7a0b)+'d'],'relaySecret':_0x30f2f4[_0x15e85c(-0xaf,0x13e)+'ret'],'relayUrl':_0x30f2f4[_0x2c5963(-_0x4a5567._0x2e7aae,_0x4a5567._0x16c414)],'instanceId':_0x250e00?.[_0x15e85c(-_0x4a5567._0x2c7dc5,-0x112)+'Id']??_0x15e85c(_0x4a5567._0x111c16,_0x4a5567._0x14085b)+_0x30f2f4[_0x2c5963(_0x4a5567._0x30a2e0,0x84)+'d'][_0x2c5963(-_0x4a5567._0x56cdbf,-0x7c)](-0xa),'displayName':_0x30f2f4[_0x2c5963(_0x4a5567._0x5c82e6,_0x4a5567._0x4c5f7e)+'ame'],'createdAt':_0x39c5ac,'updatedAt':_0x39c5ac};return writePairingConfig(_0x357ad0),{'config':_0x357ad0,'accessCode':_0x30f2f4[_0x15e85c(-_0x4a5567._0x52f2e8,0x2c)+'de'],'accessCodeExpiresAt':_0x30f2f4[_0x2c5963(0xd3,_0x4a5567._0x54c102)+'deExpire'+'sAt'],'action':_0x2c463d[_0x15e85c(-_0x4a5567._0x1e7418,-_0x4a5567._0x1b6858)],'qrPayload':buildPairingQrPayload({'server':_0x30ada5,'gatewayId':_0x30f2f4[_0x15e85c(-_0x4a5567._0x4907d8,-_0x4a5567._0x25c553)+'d'],'accessCode':_0x30f2f4[_0x2c5963(-0xeb,0xdf)+'de'],'displayName':_0x30f2f4[_0x2c5963(0x1ca,_0x4a5567._0x36394)+_0x2c5963(0x133,0x229)],'token':_0x16d066[_0x2c5963(-_0x4a5567._0x13c5f8,_0x4a5567._0x2d0c18)+_0x2c5963(_0x4a5567._0x2cde63,_0x4a5567._0x27612a)]?.[_0x2c5963(_0x4a5567._0x14085b,-_0x4a5567._0x9184ba)]()||null,'password':_0x16d066['gatewayP'+'assword']?.[_0x2c5963(-0xc6,-_0x4a5567._0x5a04ee)]()||null})};}async function refreshAccessCode(_0x4b8631){const _0x5d4a98={_0x52ede8:0x549,_0x526d53:0x401,_0x12d3bf:0x28d,_0x4cf8d8:0x546,_0x588be4:0x528,_0x176a23:0x4ac,_0x1a6f03:0x37f,_0x2061c3:0x3cc,_0x196a14:0x31b,_0xb8953c:0x268,_0xba838f:0x474,_0x50f794:0x2cd,_0x355bbc:0x2b0,_0x127b80:0x54c,_0x3b5698:0x4fa,_0x40ee1c:0x2f8,_0x3e0132:0x26a,_0x3833f2:0x3c4,_0xc2a2f3:0x234,_0x209186:0x351,_0x3c6288:0x54d,_0x5614e8:0x4ca,_0x343239:0x559,_0x3d83e3:0x373,_0x51ae41:0x50e,_0x430d5f:0x47d,_0x2e3a52:0x571,_0x3a3774:0x45b,_0x4214a8:0x233,_0x1e3f94:0x249,_0x46a6ed:0x53f,_0xbee453:0x492,_0x55c6a5:0x15a,_0x5b7af6:0x22b,_0x2f5084:0x64,_0x1532d9:0x382,_0x59818f:0x252,_0x405d92:0x4d5,_0x17a448:0x23d,_0x1150ed:0x1bd,_0x1fff82:0x278,_0x4412cd:0x468,_0x1f5580:0x4a6,_0x5e00c3:0x359,_0x37ccb1:0x52d,_0x16900e:0x551,_0x3323a3:0x2f3,_0x49c1bd:0x427,_0x2d1d89:0x5a3,_0x3ebe29:0x762,_0x103797:0x1fb,_0x3b7b10:0x319,_0xddbb8a:0x285,_0x5ccb80:0x374,_0x40d1e3:0x4be,_0x242971:0x57d,_0x4eb687:0x4a7,_0x446fe4:0x61b,_0x287b21:0x293,_0x6b3ec9:0x29a,_0x1ba6e9:0x2e6},_0x1e22f9={_0x1afa68:0x2f5},_0x4f0f98={'Ikpol':_0x5e9d91(0x533,_0x5d4a98._0x52ede8)+'config\x20n'+_0x3a4549(_0x5d4a98._0x526d53,_0x5d4a98._0x12d3bf)+'.\x20Run\x20pa'+_0x5e9d91(_0x5d4a98._0x4cf8d8,_0x5d4a98._0x588be4)+'.','zHcDd':function(_0x361b74,_0x419488){return _0x361b74(_0x419488);}},_0x536684=readPairingConfig(),_0x5a5c10=normalizeHttpBase(_0x4b8631?.[_0x3a4549(_0x5d4a98._0x176a23,_0x5d4a98._0x1a6f03)+'l']??_0x536684?.[_0x3a4549(0x4ac,0x374)+'l']??''),_0x216048=_0x4b8631?.[_0x3a4549(0x319,0x245)+'d']??_0x536684?.[_0x5e9d91(_0x5d4a98._0x2061c3,_0x5d4a98._0x196a14)+'d']??'';function _0x3a4549(_0x165585,_0x1ee98c){return _0x180075(_0x1ee98c,_0x165585- -0x3a8);}const _0x856ab8=_0x4b8631?.[_0x3a4549(0x2cd,_0x5d4a98._0xb8953c)+_0x5e9d91(_0x5d4a98._0xba838f,0x297)]??_0x536684?.[_0x3a4549(_0x5d4a98._0x50f794,_0x5d4a98._0x355bbc)+_0x5e9d91(0x474,_0x5d4a98._0x127b80)]??'';if(!_0x5a5c10||!_0x216048||!_0x856ab8)throw new Error(_0x4f0f98[_0x3a4549(0x346,0x17a)]);const _0x6c8acd={};_0x6c8acd[_0x5e9d91(0x34c,_0x5d4a98._0x3b5698)+_0x3a4549(0x26a,_0x5d4a98._0x40ee1c)]='applicat'+_0x5e9d91(0x2e7,0x1a5),_0x6c8acd[_0x5e9d91(_0x5d4a98._0x3e0132,0x27d)]=_0x3a4549(0x3e1,_0x5d4a98._0x3833f2)+_0x3a4549(_0x5d4a98._0xc2a2f3,0x2f4);const _0x31d13d=await fetch(_0x5a5c10+(_0x3a4549(0x422,_0x5d4a98._0x209186)+'/access-'+'code'),{'method':_0x3a4549(_0x5d4a98._0x3c6288,_0x5d4a98._0x5614e8),'headers':_0x6c8acd,'body':JSON[_0x5e9d91(_0x5d4a98._0x343239,_0x5d4a98._0x3d83e3)+'y']({'gatewayId':_0x216048,'relaySecret':_0x856ab8,'displayName':_0x4b8631?.[_0x5e9d91(_0x5d4a98._0x51ae41,_0x5d4a98._0x430d5f)+_0x5e9d91(_0x5d4a98._0x2e3a52,_0x5d4a98._0x3a3774)]?.[_0x3a4549(_0x5d4a98._0x4214a8,_0x5d4a98._0x1e3f94)]()||void 0x0})});if(!_0x31d13d['ok'])throw new Error(_0x3a4549(_0x5d4a98._0x46a6ed,0x6da)+'ode\x20refr'+_0x3a4549(0x4aa,_0x5d4a98._0xbee453)+'ed\x20('+_0x31d13d[_0x3a4549(0x1c0,0x35e)]+_0x3a4549(0x240,_0x5d4a98._0x55c6a5)+await _0x31d13d[_0x3a4549(_0x5d4a98._0x5b7af6,_0x5d4a98._0x2f5084)]());const _0x21074e=await _0x31d13d[_0x5e9d91(0x2e1,_0x5d4a98._0x1532d9)](),_0x471f3f={'serverUrl':_0x5a5c10,'gatewayId':_0x21074e[_0x5e9d91(0x3cc,_0x5d4a98._0x59818f)+'d'],'relaySecret':_0x856ab8,'relayUrl':_0x21074e[_0x5e9d91(0x3e6,_0x5d4a98._0x405d92)],'instanceId':_0x536684?.[_0x5e9d91(_0x5d4a98._0x17a448,_0x5d4a98._0x1150ed)+'Id']??_0x3a4549(0x3ba,_0x5d4a98._0x1fff82)+_0x21074e['gatewayI'+'d'][_0x5e9d91(0x2cc,_0x5d4a98._0x4412cd)](-0xa),'displayName':_0x21074e[_0x5e9d91(_0x5d4a98._0x51ae41,_0x5d4a98._0x1f5580)+_0x5e9d91(0x571,0x763)],'createdAt':_0x536684?.['createdA'+'t']??new Date()[_0x3a4549(0x2f3,_0x5d4a98._0x5e00c3)+_0x5e9d91(_0x5d4a98._0x37ccb1,_0x5d4a98._0x16900e)](),'updatedAt':new Date()[_0x3a4549(_0x5d4a98._0x3323a3,0x12d)+'ing']()};_0x4f0f98['zHcDd'](writePairingConfig,_0x471f3f);function _0x5e9d91(_0x224aad,_0x4688fe){return _0x180075(_0x4688fe,_0x224aad- -_0x1e22f9._0x1afa68);}return{'config':_0x471f3f,'accessCode':_0x21074e[_0x5e9d91(0x427,0x522)+'de'],'accessCodeExpiresAt':_0x21074e[_0x5e9d91(_0x5d4a98._0x49c1bd,0x3b3)+_0x5e9d91(_0x5d4a98._0x2d1d89,_0x5d4a98._0x3ebe29)+_0x3a4549(_0x5d4a98._0x103797,_0x5d4a98._0x3b7b10)],'action':_0x5e9d91(0x3fc,0x4b6)+'d','qrPayload':buildPairingQrPayload({'server':_0x5a5c10,'gatewayId':_0x21074e[_0x5e9d91(0x3cc,_0x5d4a98._0xddbb8a)+'d'],'accessCode':_0x21074e[_0x3a4549(_0x5d4a98._0x5ccb80,0x352)+'de'],'displayName':_0x21074e[_0x3a4549(_0x5d4a98._0x3a3774,0x459)+_0x3a4549(_0x5d4a98._0x40d1e3,_0x5d4a98._0x242971)],'token':_0x4b8631?.[_0x3a4549(0x340,_0x5d4a98._0x4eb687)+_0x5e9d91(_0x5d4a98._0x446fe4,0x6df)]?.['trim']()||null,'password':_0x4b8631?.[_0x3a4549(_0x5d4a98._0x287b21,_0x5d4a98._0x6b3ec9)+'assword']?.[_0x5e9d91(_0x5d4a98._0x1ba6e9,0x3a2)]()||null})};}function normalizeHttpBase(_0x1d1a5f){const _0x45c24d={_0x131cd2:0x256,_0x10e785:0x316,_0x2ff5d5:0x150,_0x3a912f:0x14b,_0x32cf48:0xc2,_0x5c8f6b:0x14,_0x2f9670:0x25b,_0x1f9d97:0x212,_0x4a7b4f:0x2be,_0x42a7dd:0x2f4,_0x1f0fef:0xb2,_0x135878:0x80,_0xe797de:0x3f,_0x5ab939:0xd8,_0x18d3b0:0x14,_0x1f4c4f:0x225},_0x442842={};_0x442842[_0x2ea525(_0x45c24d._0x131cd2,_0x45c24d._0x10e785)]=_0x2585ee(_0x45c24d._0x2ff5d5,0x52);const _0x90997a=_0x442842,_0x356750=_0x1d1a5f['trim']();if(!_0x356750)return'';function _0x2ea525(_0x3aae67,_0x28a191){return _0x180075(_0x3aae67,_0x28a191- -0x4ea);}if(_0x356750[_0x2585ee(-0x1bb,-0xc2)+'th'](_0x2585ee(_0x45c24d._0x3a912f,-0x11))||_0x356750[_0x2585ee(-0xc3,-_0x45c24d._0x32cf48)+'th'](_0x2585ee(0x46,_0x45c24d._0x5c8f6b)))return _0x356750[_0x2ea525(0x53e,0x3a8)](/\/+$/,'');if(_0x356750[_0x2585ee(0x10c,-_0x45c24d._0x32cf48)+'th'](_0x90997a[_0x2585ee(0x2e,0xaa)]))return(_0x2ea525(0x3fc,_0x45c24d._0x2f9670)+_0x356750[_0x2ea525(_0x45c24d._0x1f9d97,0xd7)](_0x2ea525(0x1e6,_0x45c24d._0x4a7b4f)[_0x2ea525(0x1ea,_0x45c24d._0x42a7dd)]))['replace'](/\/+$/,'');function _0x2585ee(_0x253f2d,_0x113d4a){return _0x180075(_0x253f2d,_0x113d4a- -0x756);}if(_0x356750[_0x2ea525(0xe8,0x1aa)+'th'](_0x2ea525(_0x45c24d._0x1f0fef,0xba)))return(_0x2585ee(-_0x45c24d._0x135878,_0x45c24d._0x5c8f6b)+_0x356750['slice'](_0x2585ee(_0x45c24d._0xe797de,-0x1b2)[_0x2585ee(-0xb4,0x88)]))['replace'](/\/+$/,'');return(_0x2585ee(-_0x45c24d._0x5ab939,_0x45c24d._0x18d3b0)+_0x356750)[_0x2585ee(_0x45c24d._0x1f4c4f,0x13c)](/\/+$/,'');}function assessPairingCompatibility(_0x7ad35e,_0xbd7ef8){const _0x266793={_0x213266:0x1ad,_0x52fc5b:0x3,_0x2f783d:0x11,_0x446421:0xef,_0x505d12:0x20b,_0x58d36e:0x1c3,_0x1c7f61:0x468,_0x2935bf:0x1be,_0xbb8dc0:0x3fa,_0x65fdcd:0x435},_0x80b0e6={_0x38ebd4:0x59},_0x5c7c8b={};_0x5c7c8b['ssOvP']=function(_0x1988f3,_0x1977fe){return _0x1988f3===_0x1977fe;};const _0x4af59e=_0x5c7c8b;if(!_0x7ad35e)return'register'+_0xe62ad3(-_0x266793._0x213266,-_0x266793._0x52fc5b);if(_0x4af59e[_0xe62ad3(-_0x266793._0x2f783d,-_0x266793._0x446421)](_0x7ad35e[_0x5e301c(0x4e2,0x396)+'l'],_0xbd7ef8))return _0x5e301c(_0x266793._0x505d12,_0x266793._0x58d36e)+_0x5e301c(_0x266793._0x1c7f61,0x35c);function _0xe62ad3(_0x26d5bc,_0x342bda){return _0x28051b(_0x26d5bc,_0x342bda- -0x40e);}function _0x5e301c(_0x23441b,_0x2ee104){return _0x28051b(_0x2ee104,_0x23441b- -_0x80b0e6._0x38ebd4);}return _0xe62ad3(_0x266793._0x2935bf,0xe7)+_0x5e301c(_0x266793._0xbb8dc0,_0x266793._0x65fdcd);}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x1daecd,mkdirSync as _0x2631c2,openSync,readFileSync as _0x11dc6f,realpathSync,rmSync as _0x3713e8,writeFileSync as _0x12b61d}from'fs';import{homedir as _0x951cf2}from'os';import{dirname,join as _0x16ccb4}from'path';var SERVICE_LABEL=_0x28051b(0x4d6,0x3de)+_0x180075(0xaa5,0x8b0)+_0x28051b(0x670,0x5a8),SYSTEMD_UNIT_NAME=SERVICE_LABEL+'.service',WINDOWS_RUN_KEY=_0x180075(0x8ff,0x7a7)+_0x180075(0x6f1,0x833),SERVICE_DIR=_0x16ccb4(_0x951cf2(),_0x28051b(0x481,0x5a1)),LOG_DIR=_0x16ccb4(SERVICE_DIR,'logs'),SERVICE_STATE_PATH=_0x16ccb4(SERVICE_DIR,_0x180075(0x6c1,0x6b0)+_0x28051b(0x4ce,0x533)+_0x28051b(0x435,0x459)),SERVICE_LAUNCHER_PATH=_0x16ccb4(SERVICE_DIR,_0x28051b(0x506,0x397)+_0x180075(0x539,0x6d3)+_0x180075(0x5f4,0x551)+'sh'),SERVICE_LOG_PATH=_0x16ccb4(LOG_DIR,'bridge-c'+_0x180075(0x3ea,0x556)),SERVICE_ERROR_LOG_PATH=_0x16ccb4(LOG_DIR,'bridge-c'+_0x180075(0x5cd,0x5f3)+_0x180075(0x667,0x53a)),MACOS_PLIST_PATH=_0x16ccb4(_0x951cf2(),'Library',_0x180075(0x9fb,0x8e9)+_0x180075(0x6a0,0x5f0),SERVICE_LABEL+_0x180075(0x579,0x581)),LINUX_SERVICE_PATH=_0x16ccb4(_0x951cf2(),'.config','systemd',_0x180075(0x696,0x785),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x1627db={},_0x3a1c29=process[_0x28051b(0x636,0x57d)]){const _0x412a4d={_0x2a2831:0x1c9,_0x4dafb0:0x414,_0x2fa445:0x2e2,_0x1d47ac:0x59b,_0x34d4cf:0x117,_0x3b308a:0x23d,_0x445774:0x3eb,_0x3fbb4e:0x1,_0x4d157e:0x1ee,_0x3da8b3:0x25d,_0xc18bda:0x178,_0x42531c:0x20c,_0x732411:0x38f,_0x5aca44:0x423,_0x2e5698:0x44c,_0x12279c:0x317,_0x1750f9:0x4b1},_0x3795b1={_0x564404:0x3f5},_0x3bc8cb={_0x26f892:0x4f2},_0x28fe0b=_0x1627db[_0x1a083f(0x20d,_0x412a4d._0x2a2831)]?.['trim']()||process[_0x1a083f(_0x412a4d._0x4dafb0,_0x412a4d._0x2fa445)];function _0x1a083f(_0x1fd84d,_0x12e9e4){return _0x180075(_0x1fd84d,_0x12e9e4- -_0x3bc8cb._0x26f892);}const _0x20fa73=resolveScriptPath(_0x1627db[_0x4991f3(_0x412a4d._0x1d47ac,0x423)+'th']);if(!_0x20fa73)throw new Error(_0x1a083f(_0x412a4d._0x34d4cf,0x170)+_0x1a083f(_0x412a4d._0x3b308a,_0x412a4d._0x445774)+_0x4991f3(-_0x412a4d._0x3fbb4e,_0x412a4d._0x4d157e)+_0x4991f3(0x4aa,0x2f6)+'h\x20for\x20se'+_0x4991f3(_0x412a4d._0x3da8b3,0x147)+'stallati'+_0x1a083f(_0x412a4d._0xc18bda,_0x412a4d._0x42531c));if(_0x3a1c29!=='win32'){const _0x4ce052={};_0x4ce052['nodePath']=_0x28fe0b,_0x4ce052[_0x4991f3(_0x412a4d._0x732411,_0x412a4d._0x5aca44)+'th']=_0x20fa73,_0x4ce052[_0x4991f3(0x59b,_0x412a4d._0x2e5698)]=process.env.PATH??'';const _0x4945ca=writeServiceLauncher(_0x4ce052);return ensureLaunchScriptExecutable(_0x4945ca,_0x3a1c29),[_0x4945ca];}function _0x4991f3(_0x232bbb,_0x1c58f0){return _0x180075(_0x232bbb,_0x1c58f0- -_0x3795b1._0x564404);}return[_0x28fe0b,_0x20fa73,_0x1a083f(0x34d,_0x412a4d._0x12279c),_0x4991f3(_0x412a4d._0x1750f9,0x4f7)+'e'];}function getServiceStatus(){const _0x4f24fa={_0x1a76ad:0x475,_0x388244:0x4b2,_0x22fcf8:0x745,_0xc698e1:0x7c9,_0x4edc34:0x64d,_0x10c7dc:0x53f,_0x2f57aa:0x62a,_0x573d97:0x6b8,_0x4d090a:0x4eb,_0x1fc5b3:0x4f2,_0x590fad:0x4f5,_0x30e16a:0x450,_0x18ded3:0x4eb,_0x366562:0x736,_0x3b21e7:0x5a8,_0x517e48:0x671,_0x33d86e:0x407,_0x1a3e19:0x450,_0x19c034:0x594,_0x48ac72:0x518,_0x1d0302:0x5b0,_0x1b4054:0x767,_0xff8c84:0x7b6,_0x5d7f48:0x844,_0x4d7195:0x732,_0x34b05b:0x78f},_0x59fe51={_0x458f04:0x23b},_0x56a4ea={'Telgy':function(_0x593702){return _0x593702();},'zISCF':function(_0x298b6a,_0x480c57,_0xcebefc){return _0x298b6a(_0x480c57,_0xcebefc);},'sWXqV':_0x5c2cfb(_0x4f24fa._0x1a76ad,_0x4f24fa._0x388244)+'l','CLzHf':_0x354eec(_0x4f24fa._0x22fcf8,0x827)+_0x5c2cfb(0x6a7,_0x4f24fa._0xc698e1),'AjEGY':function(_0x1951de,_0x1ec191,_0x552253){return _0x1951de(_0x1ec191,_0x552253);},'bqMmU':_0x5c2cfb(_0x4f24fa._0x4edc34,0x729)+_0x354eec(0x494,_0x4f24fa._0x10c7dc)+'stry'};ensureServiceDirs();function _0x5c2cfb(_0x4c2339,_0x58eebe){return _0x28051b(_0x58eebe,_0x4c2339-_0x59fe51._0x458f04);}const _0x18ebb5=readServiceState()?.[_0x5c2cfb(0x6d0,0x587)]??null,_0x8061de={'installed':![],'running':_0x18ebb5!=null&&isPidRunning(_0x18ebb5),'method':_0x56a4ea['Telgy'](detectServiceMethod),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x18ebb5};function _0x354eec(_0x16082f,_0x47ecdf){return _0x28051b(_0x47ecdf,_0x16082f-0x195);}_0x8061de[_0x354eec(_0x4f24fa._0x2f57aa,_0x4f24fa._0x573d97)]!=null&&!_0x8061de[_0x354eec(_0x4f24fa._0x4d090a,0x4e5)]&&(clearServiceState(_0x8061de[_0x5c2cfb(0x6d0,0x686)]),_0x8061de[_0x5c2cfb(0x6d0,0x663)]=null);switch(_0x8061de['method']){case _0x354eec(_0x4f24fa._0x1fc5b3,0x5f9)+_0x354eec(_0x4f24fa._0x590fad,0x359):_0x8061de[_0x354eec(_0x4f24fa._0x30e16a,0x417)+'d']=_0x1daecd(MACOS_PLIST_PATH);_0x8061de['installe'+'d']&&(_0x8061de[_0x354eec(_0x4f24fa._0x18ded3,0x64f)]=_0x56a4ea[_0x5c2cfb(_0x4f24fa._0x366562,_0x4f24fa._0x3b21e7)](commandSucceeds,_0x56a4ea[_0x5c2cfb(0x4ab,_0x4f24fa._0x517e48)],['list',SERVICE_LABEL])||_0x8061de['running']);return _0x8061de;case _0x56a4ea[_0x354eec(0x750,0x857)]:_0x8061de[_0x5c2cfb(0x4f6,_0x4f24fa._0x33d86e)+'d']=_0x1daecd(LINUX_SERVICE_PATH);_0x8061de[_0x354eec(_0x4f24fa._0x1a3e19,0x5fd)+'d']&&(_0x8061de['running']=_0x56a4ea[_0x354eec(0x64e,_0x4f24fa._0x19c034)](commandSucceeds,_0x354eec(_0x4f24fa._0x48ac72,0x5b3)+'l',[_0x354eec(0x3fc,_0x4f24fa._0x1d0302),_0x354eec(_0x4f24fa._0x1b4054,0x8e2)+'e','--quiet',SYSTEMD_UNIT_NAME])||_0x8061de[_0x354eec(0x4eb,0x500)]);return _0x8061de;case _0x56a4ea[_0x5c2cfb(0x616,0x611)]:_0x8061de['installe'+'d']=commandSucceeds(_0x5c2cfb(0x5ab,0x453),['query',_0x5c2cfb(_0x4f24fa._0xff8c84,_0x4f24fa._0x5d7f48)+'tware\x5cMi'+_0x5c2cfb(_0x4f24fa._0x4d7195,0x619)+'Windows\x5c'+'CurrentV'+_0x5c2cfb(_0x4f24fa._0x34b05b,0x8c2)+'un','/v',WINDOWS_RUN_KEY]);return _0x8061de;default:return _0x8061de;}}function installService(_0x132b4c={}){const _0x50df1c={_0x19cddc:0x31c,_0x4f95c4:0x2e0,_0x3e0049:0xe1,_0x27864f:0x1f9,_0x19cbf0:0x1ea,_0x59c52b:0x334,_0x334a:0x319,_0x2eb951:0x1e0,_0x595a83:0x471,_0x5049f6:0x634,_0x5de947:0x20e,_0xb25619:0x34f,_0x5904cc:0x184,_0x420474:0xcf,_0x13eeed:0x59c,_0x1c8955:0x3b2,_0x332e0d:0x22e,_0x3383f1:0x75,_0x291f83:0x11f,_0x477a32:0x3a3,_0x45eac7:0x576,_0x33b6fb:0x154,_0x5d24a0:0x276,_0x279616:0x1ec,_0x548021:0x40d,_0x2d3a4b:0x49f,_0x2d54bd:0x4fe,_0x567070:0x2aa,_0x1cb1f2:0x142,_0x12cddd:0x376,_0xc89a9c:0x1ff,_0x18a24d:0x441,_0x582a15:0x30b,_0x34d77c:0x279,_0xdefa6d:0x214,_0x372dbe:0x3f3,_0xcafe51:0x348,_0x1a4c6b:0x3c5,_0xc1e7b9:0x432,_0x2f6c2b:0xbf,_0xb8c2d9:0x8f,_0x4786b5:0xf,_0x36e1b4:0x3c1,_0x81d8ab:0x587,_0x39bca5:0x291,_0x2c9587:0x12b,_0x239bde:0x194,_0x54c439:0x382,_0x3ecc78:0x1a3,_0x25f3a3:0x1d,_0xc36fb8:0x450},_0x1020f9={_0x34973a:0x4c1},_0x1dd6f7={'Usdab':function(_0x38299b){return _0x38299b();},'rWhtc':function(_0x87b88f,_0x2f92cb){return _0x87b88f(_0x2f92cb);},'SJXCS':_0x24f708(_0x50df1c._0x19cddc,0x510),'LerIW':function(_0x54fbab,_0xec0a89,_0x38f9ae,_0x48421){return _0x54fbab(_0xec0a89,_0x38f9ae,_0x48421);},'mQvIw':_0xfb348b(0x92,-0x8)+'l','MZHZh':_0x24f708(0x355,_0x50df1c._0x4f95c4),'SFkVX':function(_0xd6466,_0x1b60e8,_0xe66d35,_0x1b6501){return _0xd6466(_0x1b60e8,_0xe66d35,_0x1b6501);},'RIojL':_0xfb348b(0xbf,-_0x50df1c._0x3e0049),'ItDmt':_0x24f708(_0x50df1c._0x27864f,0x1eb)+_0xfb348b(_0x50df1c._0x19cbf0,0x9d),'eukBw':_0x24f708(_0x50df1c._0x59c52b,_0x50df1c._0x334a),'tNMBn':_0x24f708(0x129,_0x50df1c._0x2eb951),'ZOYvm':function(_0x523182,_0x28ef77,_0x4093da,_0x54d37e){return _0x523182(_0x28ef77,_0x4093da,_0x54d37e);},'ZOImx':_0x24f708(_0x50df1c._0x595a83,_0x50df1c._0x5049f6)+_0xfb348b(_0x50df1c._0x5de947,0x2c6)+_0xfb348b(_0x50df1c._0xb25619,0x42e)+_0xfb348b(0x143,_0x50df1c._0x5904cc)+_0xfb348b(_0x50df1c._0x420474,0x5a)+_0x24f708(0x44a,_0x50df1c._0x13eeed)+'un'};_0x1dd6f7[_0xfb348b(_0x50df1c._0x1c8955,_0x50df1c._0x332e0d)](ensureServiceDirs);function _0xfb348b(_0x104c56,_0x53d896){return _0x180075(_0x53d896,_0x104c56- -_0x1020f9._0x34973a);}function _0x24f708(_0x17a564,_0x424084){return _0x180075(_0x424084,_0x17a564- -0x423);}const _0x1449a3=_0x1dd6f7[_0xfb348b(_0x50df1c._0x3383f1,-0x10c)](getServiceProgramArgs,_0x132b4c);switch(process[_0x24f708(0x473,0x4c8)]){case _0x1dd6f7[_0x24f708(0x273,_0x50df1c._0x291f83)]:_0x1dd6f7[_0xfb348b(0x378,0x31c)](_0x12b61d,MACOS_PLIST_PATH,buildMacosPlist(_0x1449a3,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0xfb348b(_0x50df1c._0x477a32,_0x50df1c._0x45eac7)),execIgnoreFailure(_0x1dd6f7[_0x24f708(_0x50df1c._0x33b6fb,_0x50df1c._0x5d24a0)],[_0x1dd6f7[_0x24f708(_0x50df1c._0x279616,0x5c)],'-w',MACOS_PLIST_PATH]);const _0x3dde6b={};_0x3dde6b[_0x24f708(_0x50df1c._0x548021,_0x50df1c._0x2d3a4b)]=_0x24f708(0x3c1,_0x50df1c._0x2d54bd),execFileSync(_0xfb348b(0x92,0x1a)+'l',[_0x24f708(_0x50df1c._0x567070,_0x50df1c._0x1cb1f2),'-w',MACOS_PLIST_PATH],_0x3dde6b);break;case'linux':const _0x12a79a={};_0x12a79a[_0xfb348b(_0x50df1c._0x12cddd,_0x50df1c._0xc89a9c)+'e']=!![],_0x2631c2(dirname(LINUX_SERVICE_PATH),_0x12a79a),_0x1dd6f7['SFkVX'](_0x12b61d,LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x1449a3,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x24f708(_0x50df1c._0x18a24d,0x607));const _0x45673d={};_0x45673d[_0x24f708(0x40d,0x21d)]=_0xfb348b(0x323,_0x50df1c._0x582a15),_0x1dd6f7[_0xfb348b(0xfa,0x1b2)](execFileSync,_0x24f708(_0x50df1c._0x34d77c,_0x50df1c._0xdefa6d)+'l',[_0x1dd6f7[_0xfb348b(0x3e5,_0x50df1c._0x372dbe)],_0x1dd6f7[_0x24f708(_0x50df1c._0xcafe51,_0x50df1c._0x1a4c6b)]],_0x45673d);const _0x13b446={};_0x13b446['stdio']=_0x24f708(0x3c1,_0x50df1c._0xc1e7b9),_0x1dd6f7[_0x24f708(0x416,0x35d)](execFileSync,'systemct'+'l',[_0xfb348b(_0x50df1c._0x2f6c2b,0x7),_0x24f708(0x11d,_0x50df1c._0xb8c2d9),_0x1dd6f7[_0x24f708(0x400,0x41d)],SYSTEMD_UNIT_NAME],_0x13b446);break;case _0x1dd6f7[_0xfb348b(0xb5,_0x50df1c._0x4786b5)]:stopRunningProcess();const _0x994ee9={};_0x994ee9['stdio']=_0x24f708(_0x50df1c._0x36e1b4,_0x50df1c._0x81d8ab),_0x1dd6f7['ZOYvm'](execFileSync,'reg',[_0x24f708(0x2bd,_0x50df1c._0x39bca5),_0x1dd6f7[_0xfb348b(_0x50df1c._0x2c9587,0x97)],'/v',WINDOWS_RUN_KEY,'/t','REG_SZ','/d',buildWindowsRunCommand(_0x1449a3),'/f'],_0x994ee9),_0x1dd6f7[_0x24f708(0x113,0x2b8)](startDetachedWindowsService,_0x1449a3);break;default:throw new Error(_0xfb348b(0x27f,0x36c)+_0x24f708(0x33c,0x188)+_0x24f708(0x442,0x29d)+_0xfb348b(_0x50df1c._0x239bde,0x160)+_0x24f708(_0x50df1c._0x54c439,0x1dd)+_0xfb348b(_0x50df1c._0x3ecc78,_0x50df1c._0x25f3a3)+_0x24f708(0x2f2,0x285)+process['platform']);}return _0x1dd6f7[_0x24f708(_0x50df1c._0xc36fb8,0x2c7)](getServiceStatus);}function restartService(_0x3480d0={}){const _0x56e3d0={_0x35a968:0x379,_0x1098a2:0x33e,_0x4e5c00:0x42c,_0x459d26:0x2c7,_0x401398:0x2d9,_0x66f022:0x234,_0x1796b9:0x124,_0x51eb5a:0x37a,_0x57f5af:0x1cd,_0x4bc9a0:0x53f,_0x41a25b:0x313,_0x2c425c:0x205,_0xaf9c7b:0x282,_0x2913ac:0x4bf,_0x5bcdd2:0x575,_0x1d8206:0x377,_0x573a40:0x11a,_0x2803e2:0x29f,_0x167c62:0x161,_0x531128:0x2ee,_0x244d50:0x3e4,_0x33c526:0xf8,_0x168b76:0xdb,_0x17e6d4:0x3aa,_0xa643c3:0x269,_0x1369e2:0x5b3,_0x1f3d19:0xc1,_0x3ac027:0x14d,_0x59bf19:0x374,_0x599b62:0x41b,_0x2f28b5:0x2d4,_0x4fde5c:0x23f,_0x2369c6:0x11},_0x45ec33={_0x551806:0x591},_0x33ddf7={'bzmlA':function(_0x8bbfcb,_0x436e18){return _0x8bbfcb(_0x436e18);},'GzgTO':function(_0x3c4f1e,_0xc7b9ba){return _0x3c4f1e(_0xc7b9ba);},'qgVFc':function(_0x471b46,_0x2f0687,_0xe08579,_0x3f6d82){return _0x471b46(_0x2f0687,_0xe08579,_0x3f6d82);},'yVghH':'launchct'+'l','dGFDX':_0x5a79c7(_0x56e3d0._0x35a968,0x1c2),'HfUpZ':'win32','boTUq':function(_0x102763,_0xbfec41,_0x1e9797,_0x5b69d7){return _0x102763(_0xbfec41,_0x1e9797,_0x5b69d7);}};function _0x5a79c7(_0x42e5b5,_0x59e186){return _0x180075(_0x59e186,_0x42e5b5- -0x325);}ensureServiceDirs();const _0x288570=_0x33ddf7[_0x5a79c7(0x533,_0x56e3d0._0x1098a2)](getServiceProgramArgs,_0x3480d0);function _0x5356d9(_0x17aac7,_0x4b5b67){return _0x180075(_0x4b5b67,_0x17aac7- -_0x45ec33._0x551806);}switch(process['platform']){case _0x5a79c7(0x41a,_0x56e3d0._0x4e5c00):if(!_0x33ddf7[_0x5356d9(_0x56e3d0._0x459d26,_0x56e3d0._0x401398)](_0x1daecd,MACOS_PLIST_PATH))return _0x33ddf7[_0x5a79c7(_0x56e3d0._0x66f022,_0x56e3d0._0x1796b9)](installService,_0x3480d0);_0x12b61d(MACOS_PLIST_PATH,_0x33ddf7[_0x5356d9(_0x56e3d0._0x51eb5a,_0x56e3d0._0x57f5af)](buildMacosPlist,_0x288570,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x5a79c7(_0x56e3d0._0x4bc9a0,0x6c3)),execIgnoreFailure(_0x33ddf7[_0x5a79c7(0x219,0xda)],['unload','-w',MACOS_PLIST_PATH]);const _0x2b6f7d={};_0x2b6f7d[_0x5a79c7(0x50b,0x5e1)]=_0x5356d9(0x253,0xce),execFileSync('launchct'+'l',['load','-w',MACOS_PLIST_PATH],_0x2b6f7d);break;case _0x33ddf7[_0x5356d9(_0x56e3d0._0x41a25b,_0x56e3d0._0x2c425c)]:if(!_0x1daecd(LINUX_SERVICE_PATH))return installService(_0x3480d0);const _0x1babf1={};_0x1babf1[_0x5356d9(0x2a6,0x246)+'e']=!![],_0x2631c2(dirname(LINUX_SERVICE_PATH),_0x1babf1),_0x12b61d(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x288570,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8');const _0x5b8d6d={};_0x5b8d6d[_0x5356d9(0x29f,_0x56e3d0._0xaf9c7b)]=_0x5a79c7(_0x56e3d0._0x2913ac,_0x56e3d0._0x5bcdd2),execFileSync(_0x5a79c7(_0x56e3d0._0x1d8206,0x46f)+'l',['--user',_0x5356d9(0x8b,0xdc)+_0x5356d9(_0x56e3d0._0x573a40,0x29d)],_0x5b8d6d);const _0x57c3a5={};_0x57c3a5[_0x5356d9(_0x56e3d0._0x2803e2,_0x56e3d0._0x167c62)]=_0x5a79c7(0x4bf,0x430),execFileSync(_0x5356d9(0x10b,_0x56e3d0._0x531128)+'l',['--user',_0x5356d9(0x246,_0x56e3d0._0x244d50),SYSTEMD_UNIT_NAME],_0x57c3a5);break;case _0x33ddf7[_0x5a79c7(0x255,0x1a7)]:stopRunningProcess();const _0x21a302={};_0x21a302['stdio']=_0x5a79c7(0x4bf,0x4fe),_0x33ddf7['boTUq'](execFileSync,_0x5356d9(_0x56e3d0._0x33c526,_0x56e3d0._0x168b76),[_0x5a79c7(0x3bb,0x581),_0x5a79c7(0x56f,0x70f)+_0x5a79c7(_0x56e3d0._0x17e6d4,_0x56e3d0._0xa643c3)+_0x5a79c7(0x4eb,_0x56e3d0._0x1369e2)+'Windows\x5c'+_0x5356d9(-0x1,-_0x56e3d0._0x1f3d19)+_0x5356d9(0x2dc,_0x56e3d0._0x3ac027)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x5356d9(_0x56e3d0._0x59bf19,0x2c1),'/d',_0x33ddf7['GzgTO'](buildWindowsRunCommand,_0x288570),'/f'],_0x21a302),_0x33ddf7[_0x5356d9(-0x38,-0x30)](startDetachedWindowsService,_0x288570);break;default:throw new Error(_0x5a79c7(_0x56e3d0._0x599b62,0x5c4)+_0x5356d9(0x1ce,0x121)+_0x5356d9(_0x56e3d0._0x2f28b5,0x20e)+_0x5356d9(0xc4,0x1d6)+_0x5356d9(0x294,_0x56e3d0._0x4fde5c)+_0x5356d9(0x140,_0x56e3d0._0x2369c6)+process['platform']);}return getServiceStatus();}function uninstallService(){const _0x3bcc67={_0x5b2bcb:0x420,_0x3905f7:0xb1,_0x5a7422:0xe4,_0x3492ee:0x1c7,_0x579ae7:0xc9,_0x426071:0x242,_0x1d16e4:0x1c9,_0x49a65d:0x72,_0x4e2ccc:0x25c,_0x5ccd06:0x17a,_0x34bca8:0x58,_0x358438:0x1af,_0x222429:0x31,_0x360893:0xd4,_0x5e7bf2:0x15b,_0x1027a0:0x1f0,_0x147473:0xee,_0x219be2:0x20c,_0x164d93:0x33b,_0x184366:0x229,_0x27797c:0x3ac},_0x3bfd2b={_0x22a34a:0x6cd},_0x5447e6={_0x3e62eb:0x34e},_0x41aeee={'xLcVC':'unload','oCAQX':_0x4ce31e(_0x3bcc67._0x5b2bcb,0x350),'ZepfW':function(_0x1e9526,_0x2f741e){return _0x1e9526(_0x2f741e);},'kHGJf':_0x14a0cf(-_0x3bcc67._0x3905f7,-_0x3bcc67._0x5a7422)+_0x4ce31e(0x2cc,0x35d),'EzUgK':function(_0x54c62f,_0xe5fb2e,_0x379708){return _0x54c62f(_0xe5fb2e,_0x379708);},'QwPcq':_0x14a0cf(_0x3bcc67._0x3492ee,0x23c)+'tware\x5cMi'+_0x4ce31e(0x63e,0x4c2)+_0x14a0cf(-_0x3bcc67._0x579ae7,0x8e)+_0x4ce31e(0x2c9,_0x3bcc67._0x426071)+'ersion\x5cR'+'un','JeiRN':function(_0x24e01a){return _0x24e01a();}};stopRunningProcess();function _0x4ce31e(_0xfc306b,_0x57556c){return _0x180075(_0xfc306b,_0x57556c- -_0x5447e6._0x3e62eb);}function _0x14a0cf(_0xd4b6f7,_0xe28a47){return _0x180075(_0xe28a47,_0xd4b6f7- -_0x3bfd2b._0x22a34a);}switch(process[_0x14a0cf(_0x3bcc67._0x1d16e4,0x21a)]){case _0x14a0cf(_0x3bcc67._0x49a65d,_0x3bcc67._0x4e2ccc):execIgnoreFailure(_0x14a0cf(-_0x3bcc67._0x5ccd06,-_0x3bcc67._0x34bca8)+'l',[_0x41aeee['xLcVC'],'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x41aeee[_0x14a0cf(_0x3bcc67._0x358438,0x2e2)]:_0x1daecd(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x14a0cf(-_0x3bcc67._0x222429,_0x3bcc67._0x360893)+'l',[_0x14a0cf(-0x14d,-_0x3bcc67._0x5e7bf2),_0x14a0cf(0xf6,_0x3bcc67._0x1027a0),_0x14a0cf(0x8a,-_0x3bcc67._0x147473),SYSTEMD_UNIT_NAME]),_0x41aeee['ZepfW'](rmIfExists,LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',['--user',_0x41aeee['kHGJf']]));break;case _0x4ce31e(0x2ad,0x1fe):_0x41aeee[_0x14a0cf(0x49,0x194)](execIgnoreFailure,_0x4ce31e(_0x3bcc67._0x219be2,_0x3bcc67._0x164d93),[_0x4ce31e(_0x3bcc67._0x184366,_0x3bcc67._0x27797c),_0x41aeee[_0x4ce31e(0x49f,0x3e2)],'/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return _0x41aeee['JeiRN'](clearServiceState),getServiceStatus();}function stopService(){const _0x374694={_0x107e0a:0x177,_0x5a739d:0xf4,_0x5cf4cd:0x75,_0x26be27:0x14c,_0x7803c5:0x633,_0x1de7c8:0x6eb,_0x32080d:0x2d4,_0x4e494b:0x60f,_0x2ba650:0x9b,_0x4e012c:0x470,_0xf0d8ae:0x548},_0x4d8754={_0x5b9b2f:0x5c8},_0x4776b3={_0x374be1:0x8d},_0x443ecf={'eubvG':function(_0x356b28,_0x5bd181){return _0x356b28(_0x5bd181);},'KNbCk':function(_0x519961){return _0x519961();}};function _0x2c7e7c(_0xa4d2a6,_0x2d030b){return _0x180075(_0xa4d2a6,_0x2d030b- -_0x4776b3._0x374be1);}stopRunningProcess();switch(process['platform']){case _0x476120(_0x374694._0x107e0a,_0x374694._0x5a739d):_0x1daecd(MACOS_PLIST_PATH)&&execIgnoreFailure(_0x476120(-_0x374694._0x5cf4cd,-_0x374694._0x26be27)+'l',[_0x2c7e7c(_0x374694._0x7803c5,_0x374694._0x1de7c8),MACOS_PLIST_PATH]);break;case _0x2c7e7c(0x47a,0x611):_0x443ecf[_0x476120(_0x374694._0x32080d,0x3c9)](_0x1daecd,LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x2c7e7c(0x75b,_0x374694._0x4e494b)+'l',['--user',_0x476120(_0x374694._0x2ba650,0x196),SYSTEMD_UNIT_NAME]);break;case'win32':break;default:break;}function _0x476120(_0x28dab5,_0x1b2ab4){return _0x180075(_0x1b2ab4,_0x28dab5- -_0x4d8754._0x5b9b2f);}return clearServiceState(),_0x443ecf[_0x2c7e7c(_0x374694._0x4e012c,_0x374694._0xf0d8ae)](getServiceStatus);}function writeServiceState(_0x55b525=process[_0x28051b(0x318,0x495)]){const _0x36203c={_0x2e778a:0x4ba,_0x4ee0c1:0x51d,_0x351b3d:0x6ad,_0x118b7c:0x5e0,_0x2462a7:0x6d9},_0x279f56={_0x5784fe:0x175};function _0x2f985f(_0x5d356d,_0x444680){return _0x180075(_0x5d356d,_0x444680- -_0x279f56._0x5784fe);}const _0x26b52b={};_0x26b52b['thJsz']=_0x2f985f(0x756,0x6ef);function _0x3f1779(_0x4fc231,_0x2f39be){return _0x180075(_0x2f39be,_0x4fc231- -0x1e1);}const _0x156391=_0x26b52b;ensureServiceDirs();const _0x363580={'pid':_0x55b525,'startedAt':new Date()[_0x3f1779(_0x36203c._0x2e778a,0x468)+_0x2f985f(_0x36203c._0x4ee0c1,_0x36203c._0x351b3d)]()};_0x12b61d(SERVICE_STATE_PATH,JSON[_0x2f985f(_0x36203c._0x118b7c,_0x36203c._0x2462a7)+'y'](_0x363580,null,0x2)+'\x0a',_0x156391['thJsz']);}function clearServiceState(_0x21c2d9){const _0x19eb1f={_0x563755:0x290,_0x39de75:0x3c9},_0xac8959={_0x3fa036:0x3e5},_0x102731={'zZfsp':function(_0x158c21,_0x14f3bc){return _0x158c21(_0x14f3bc);},'WdGOK':function(_0x27e308){return _0x27e308();}};if(!_0x102731['zZfsp'](_0x1daecd,SERVICE_STATE_PATH))return;function _0x3bffad(_0x2fe126,_0x276f2c){return _0x180075(_0x2fe126,_0x276f2c- -_0xac8959._0x3fa036);}if(_0x21c2d9!=null){const _0x46a7c3=_0x102731['WdGOK'](readServiceState);if(_0x46a7c3&&_0x46a7c3[_0x3bffad(_0x19eb1f._0x563755,_0x19eb1f._0x39de75)]!==_0x21c2d9)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':getServicePath()};}function buildMacosPlist(_0xeabcb5,_0x8340d7,_0x53fe25){const _0x27ebc4={_0x4dad50:0x6e5,_0x3d046c:0x3ec,_0x1a7189:0x796,_0x266fa3:0x7f2,_0x36ba7c:0x685,_0x1046eb:0x476,_0x1f38f2:0x3a5,_0xb3f1c4:0x5e7,_0x10698a:0x575,_0x5f3134:0x5dd,_0x4a976e:0x716,_0x4d3edb:0x771,_0x57856f:0x6fc,_0x10a10b:0x4e2,_0x35de0f:0x372,_0x52c7ec:0x1ee,_0x14ecfd:0x6eb,_0x5cab2f:0x625,_0x2683d3:0x675,_0x165219:0x683,_0x35ab92:0x7c5,_0x32800b:0x667,_0x1e7c06:0x45b,_0x7cf3ff:0x61f,_0x3ba5c7:0x7c3,_0x7f6ade:0x6d2,_0x1c72a8:0x393,_0x4c66c4:0x4ac,_0x2506bb:0x555,_0x169307:0x5ce,_0x29a6dd:0x3e9,_0x4465e3:0x30f,_0x4f56dc:0x2e5,_0x23afbf:0xe4,_0x50d0b2:0x54a,_0x1318ef:0x266,_0x1ec254:0x260,_0x2175b8:0x452,_0x192ea3:0x5a0,_0x47e8f6:0x446,_0xaada02:0x29b,_0x1598fe:0x46d,_0x43b9d8:0x391,_0x4a0901:0x6c1,_0x3b4093:0x6df},_0x23ee70={_0x218985:0x13c};function _0x2853ac(_0xcf6356,_0x1d1aa){return _0x28051b(_0x1d1aa,_0xcf6356-_0x23ee70._0x218985);}function _0x2fd394(_0x3f8b40,_0x24b96e){return _0x28051b(_0x24b96e,_0x3f8b40- -0x2d);}const _0x4a9a7a={'zGVbi':function(_0x196a0b,_0x41597d){return _0x196a0b(_0x41597d);}},_0x2d34b3=_0xeabcb5[_0x2853ac(_0x27ebc4._0x4dad50,0x80b)](_0x497861=>_0x2fd394(0x4f6,0x5f6)+_0x2853ac(0x540,0x727)+escapeXml(_0x497861)+(_0x2853ac(0x519,0x52b)+'>'))[_0x2fd394(0x3e8,_0x27ebc4._0x3d046c)]('\x0a');return'<?xml\x20ve'+_0x2fd394(0x233,0x17c)+'.0\x22\x20enco'+_0x2fd394(0x2ee,0x492)+_0x2853ac(0x673,_0x27ebc4._0x1a7189)+_0x2853ac(0x61c,_0x27ebc4._0x266fa3)+_0x2853ac(_0x27ebc4._0x36ba7c,0x6c3)+_0x2fd394(_0x27ebc4._0x1046eb,0x544)+_0x2fd394(0x3a0,_0x27ebc4._0x1f38f2)+_0x2853ac(_0x27ebc4._0xb3f1c4,0x73b)+_0x2fd394(_0x27ebc4._0x10698a,_0x27ebc4._0x5f3134)+_0x2853ac(_0x27ebc4._0x4a976e,_0x27ebc4._0x4d3edb)+_0x2fd394(0x573,_0x27ebc4._0x57856f)+_0x2853ac(0x58b,0x4d4)+_0x2853ac(_0x27ebc4._0x10a10b,0x2f9)+_0x2853ac(_0x27ebc4._0x35de0f,0x3a3)+_0x2853ac(0x6db,0x53f)+'dtd\x22>\x0a<p'+'list\x20ver'+_0x2fd394(_0x27ebc4._0x52c7ec,0x3b1)+'0\x22>\x0a<dic'+'t>\x0a\x20\x20<ke'+_0x2853ac(_0x27ebc4._0x14ecfd,0x69f)+_0x2853ac(_0x27ebc4._0x5cab2f,0x4a0)+_0x2853ac(0x3a8,0x287)+SERVICE_LABEL+(_0x2853ac(0x519,0x533)+_0x2853ac(0x49f,_0x27ebc4._0x2683d3)+_0x2853ac(_0x27ebc4._0x165219,_0x27ebc4._0x35ab92)+_0x2853ac(0x6c5,_0x27ebc4._0x32800b)+_0x2fd394(_0x27ebc4._0x1e7c06,0x2ce)+_0x2853ac(_0x27ebc4._0x7cf3ff,_0x27ebc4._0x3ba5c7)+'>\x0a')+_0x2d34b3+('\x0a\x20\x20</arr'+_0x2853ac(0x4a5,0x50a)+_0x2853ac(_0x27ebc4._0x7f6ade,0x559)+_0x2853ac(0x41f,_0x27ebc4._0x1c72a8)+_0x2fd394(_0x27ebc4._0x4c66c4,0x676)+_0x2fd394(_0x27ebc4._0x2506bb,_0x27ebc4._0x169307)+_0x2853ac(_0x27ebc4._0x29a6dd,_0x27ebc4._0x4465e3)+_0x2fd394(_0x27ebc4._0x4f56dc,0x2e1)+'ey>\x0a\x20\x20<t'+_0x2fd394(0x2bb,_0x27ebc4._0x23afbf)+_0x2fd394(0x26f,0x42b)+_0x2fd394(_0x27ebc4._0x50d0b2,0x6c7)+_0x2fd394(_0x27ebc4._0x1318ef,0x124)+_0x2fd394(0x42b,_0x27ebc4._0x1ec254)+_0x2fd394(0x318,0x468))+escapeXml(_0x8340d7)+('</string'+_0x2853ac(0x49f,0x551)+_0x2853ac(0x397,0x34a)+_0x2fd394(_0x27ebc4._0x2175b8,_0x27ebc4._0x192ea3)+'th</key>'+_0x2853ac(_0x27ebc4._0x47e8f6,0x337)+_0x2fd394(_0x27ebc4._0xaada02,_0x27ebc4._0x1598fe))+_0x4a9a7a['zGVbi'](escapeXml,_0x53fe25)+(_0x2853ac(0x519,_0x27ebc4._0x43b9d8)+'>\x0a</dict'+'>\x0a</plis'+_0x2853ac(_0x27ebc4._0x4a0901,_0x27ebc4._0x3b4093));}function buildLinuxSystemdUnit(_0x1346fb,_0x328f13,_0x574424){const _0xb59f7f={_0x399547:0x7b2,_0x4ba7ea:0x469,_0x56056c:0x7e6,_0x53bed8:0x4d5,_0x53978e:0x458,_0xfbfcde:0x36e,_0x45b821:0x322,_0x4d0087:0x108,_0x2d46a2:0x1f9,_0x32ef62:0x4de,_0x199c84:0x2aa,_0x4c8619:0x6d9,_0x5466ce:0x424,_0x4b8fce:0xf2,_0x3055f0:0x355,_0x2fe0ef:0x4e3,_0x2df712:0x54d,_0x7fdd34:0x653,_0x308f1b:0x15f,_0x18eb7d:0x6c3,_0x2d0a29:0x63d,_0x3ff8ea:0x43b,_0x3344f0:0x604,_0xe9ab7c:0x769,_0x24aa4b:0x8bb},_0x1aee43={_0xe9f96e:0x466},_0x4f894d={_0x1808b2:0xd4};function _0xe8a11(_0x25e6c2,_0xf66b6e){return _0x180075(_0xf66b6e,_0x25e6c2- -_0x4f894d._0x1808b2);}function _0x257715(_0x153506,_0x4580ee){return _0x180075(_0x4580ee,_0x153506- -_0x1aee43._0xe9f96e);}const _0x83c1aa=_0x1346fb[_0xe8a11(0x7ee,_0xb59f7f._0x399547)](escapeSystemdArg)[_0x257715(0x2c8,0x2b3)]('\x20');return _0x257715(_0xb59f7f._0x4ba7ea,0x4b1)+_0xe8a11(0x70c,_0xb59f7f._0x56056c)+'on=Clawk'+_0xe8a11(_0xb59f7f._0x53bed8,0x426)+_0x257715(_0xb59f7f._0x53978e,_0xb59f7f._0xfbfcde)+_0x257715(_0xb59f7f._0x45b821,0x39b)+'ork-onli'+_0x257715(_0xb59f7f._0x4d0087,_0xb59f7f._0x2d46a2)+_0xe8a11(0x48e,_0xb59f7f._0x32ef62)+_0x257715(0x249,_0xb59f7f._0x199c84)+_0xe8a11(_0xb59f7f._0x4c8619,0x6b0)+'arget\x0a\x0a['+_0xe8a11(0x55b,0x3ec)+_0x257715(_0xb59f7f._0x5466ce,0x397)+_0x257715(_0xb59f7f._0x4b8fce,0xd6)+_0x257715(_0xb59f7f._0x3055f0,0x183)+_0x83c1aa+('\x0aRestart'+_0x257715(0x11d,-0x1e)+_0xe8a11(_0xb59f7f._0x2fe0ef,_0xb59f7f._0x2df712)+_0xe8a11(0x602,_0xb59f7f._0x7fdd34)+_0x257715(0x21e,0x276)+_0x257715(_0xb59f7f._0x308f1b,0xd2))+escapeSystemdArg(SERVICE_DIR)+('\x0aStandar'+_0xe8a11(_0xb59f7f._0x18eb7d,0x4fd)+_0xe8a11(0x62b,_0xb59f7f._0x2d0a29))+_0x328f13+('\x0aStandar'+_0xe8a11(0x53f,0x631)+_0x257715(0x467,0x526))+_0x574424+(_0x257715(_0xb59f7f._0x3ff8ea,_0xb59f7f._0x3344f0)+'ll]\x0aWant'+_0x257715(0x29e,0x44f)+_0xe8a11(_0xb59f7f._0xe9ab7c,_0xb59f7f._0x24aa4b)+'get\x0a');}function getServicePath(){const _0x5ad411={_0xc083a3:0x3,_0x1704a5:0x55,_0x429ab0:0x6de,_0x13b6a7:0x812,_0x16cc3:0x88b,_0x4ac29f:0xa13,_0x1b614f:0x807,_0x13d83d:0x5fb,_0x35a0a1:0x196,_0x18fd4f:0x174,_0x27c6b3:0x76,_0x2f6783:0x168},_0x2348c5={_0x48136a:0x3d1};function _0x3dfba7(_0x31ec0c,_0x8e544a){return _0x28051b(_0x31ec0c,_0x8e544a- -_0x2348c5._0x48136a);}function _0x51195d(_0x1b05cd,_0x2d32ed){return _0x28051b(_0x2d32ed,_0x1b05cd-0x310);}const _0x43b235={};_0x43b235[_0x3dfba7(-0xa1,-_0x5ad411._0xc083a3)]='linux';const _0x50c54a=_0x43b235;switch(process['platform']){case _0x3dfba7(0xe6,_0x5ad411._0x1704a5):return MACOS_PLIST_PATH;case _0x50c54a[_0x51195d(_0x5ad411._0x429ab0,_0x5ad411._0x13b6a7)]:return LINUX_SERVICE_PATH;case'win32':return _0x51195d(_0x5ad411._0x16cc3,_0x5ad411._0x4ac29f)+_0x51195d(0x6c6,0x53c)+_0x51195d(_0x5ad411._0x1b614f,0x7fc)+_0x51195d(_0x5ad411._0x13d83d,0x70c)+'CurrentV'+_0x3dfba7(_0x5ad411._0x35a0a1,0x183)+_0x3dfba7(_0x5ad411._0x18fd4f,-_0x5ad411._0x27c6b3)+_0x3dfba7(_0x5ad411._0x2f6783,0x14b)+'Cli';default:return'';}}function detectServiceMethod(){const _0x4386aa={_0x383311:0x5f7,_0x59e4c4:0x749,_0x2646d2:0x590,_0x3b19aa:0x781,_0x132e6b:0x6ad,_0x2ef381:0x93d,_0x2f7d97:0x749,_0x300382:0x3f2,_0x35e154:0x567,_0x484794:0x40f},_0x244bcb={};function _0x32a8f0(_0x44d0d4,_0x5e5a95){return _0x180075(_0x44d0d4,_0x5e5a95- -0x148);}function _0xefaa42(_0x29ef37,_0xc2b35c){return _0x180075(_0x29ef37,_0xc2b35c- -0x139);}_0x244bcb['xpgcw']=_0x32a8f0(0x701,_0x4386aa._0x383311),_0x244bcb[_0xefaa42(0x5dd,_0x4386aa._0x59e4c4)]=_0x32a8f0(_0x4386aa._0x2646d2,_0x4386aa._0x3b19aa)+_0xefaa42(0x66f,0x64c),_0x244bcb['aIhHq']='unsuppor'+_0x32a8f0(_0x4386aa._0x132e6b,0x7c1);const _0x5830c0=_0x244bcb;switch(process[_0xefaa42(0x86a,0x75d)]){case _0x5830c0[_0xefaa42(0x300,0x4ed)]:return'launchag'+'ent';case _0xefaa42(0x6f0,0x565):return _0x5830c0[_0xefaa42(_0x4386aa._0x2ef381,_0x4386aa._0x2f7d97)];case'win32':return _0x32a8f0(_0x4386aa._0x300382,0x5e3)+'run-regi'+_0xefaa42(0x6c1,_0x4386aa._0x35e154);default:return _0x5830c0[_0x32a8f0(_0x4386aa._0x484794,0x4e1)];}}function readServiceState(){const _0x218db9={_0x8a8a12:0x7b7,_0x4f5cda:0x801,_0x5b4f31:0x223,_0x84895a:0x14b,_0x4eae8e:0x74b,_0x2ddce9:0xdc,_0x525b46:0x5f7,_0x3999c2:0x584,_0x3a1432:0x757,_0x7fb939:0x2e0,_0x3d3467:0x37,_0x1abd30:0x83},_0x48b649={_0x87ac1e:0x3b9},_0x258c53={};_0x258c53[_0x5632fb(0x14b,0x137)]=_0x36cc73(_0x218db9._0x8a8a12,_0x218db9._0x4f5cda);function _0x36cc73(_0x920c24,_0x1f8f77){return _0x28051b(_0x920c24,_0x1f8f77-0x2b6);}function _0x5632fb(_0xc4d876,_0x14f5e1){return _0x28051b(_0x14f5e1,_0xc4d876- -_0x48b649._0x87ac1e);}const _0x42c237=_0x258c53;if(!_0x1daecd(SERVICE_STATE_PATH))return null;try{const _0x29f43b=JSON[_0x5632fb(0x1df,_0x218db9._0x5b4f31)](_0x11dc6f(SERVICE_STATE_PATH,_0x42c237[_0x5632fb(_0x218db9._0x84895a,0x169)]));if(!_0x29f43b[_0x36cc73(0x68c,_0x218db9._0x4eae8e)]||typeof _0x29f43b[_0x5632fb(_0x218db9._0x2ddce9,0x74)]!==_0x36cc73(_0x218db9._0x525b46,_0x218db9._0x3999c2))return null;return{'pid':_0x29f43b[_0x36cc73(_0x218db9._0x3a1432,0x74b)],'startedAt':_0x29f43b[_0x5632fb(-0x145,-_0x218db9._0x7fb939)+'t']??new Date(0x0)[_0x5632fb(-_0x218db9._0x3d3467,_0x218db9._0x1abd30)+'ing']()};}catch{return null;}}function stopRunningProcess(){const _0x439a15={_0x7ff23c:0x48d,_0x5aa545:0x61c,_0x1e5ea2:0xa4,_0xef6908:0xe,_0x260460:0x608,_0x5ad8ea:0x5d6,_0x3ad3e2:0x6e7,_0x9939b3:0x544,_0x5ffe95:0x6e4,_0x17c578:0x1be,_0x354c4c:0x19b,_0x50328a:0xa8,_0x11e1f0:0x1be,_0xfff791:0x34b,_0x3f6b15:0xa3},_0x3f5077={_0x4ec90d:0x5f0},_0x485450={};_0x485450[_0x416a02(_0x439a15._0x7ff23c,_0x439a15._0x5aa545)]=_0x152eba(-_0x439a15._0x1e5ea2,-0xa0),_0x485450['OdpHU']=_0x152eba(0x2d0,0x391);function _0x416a02(_0x4f58ae,_0x559ef2){return _0x180075(_0x4f58ae,_0x559ef2- -0x1af);}_0x485450[_0x152eba(-_0x439a15._0xef6908,0x183)]=function(_0x1bcc1f,_0x33b428){return _0x1bcc1f===_0x33b428;};const _0x371c5d=_0x485450,_0x1c0952=readServiceState();if(!_0x1c0952)return;function _0x152eba(_0x53ebbb,_0x4c9435){return _0x180075(_0x4c9435,_0x53ebbb- -_0x3f5077._0x4ec90d);}execIgnoreFailure(process['platform']===_0x371c5d['FpgwK']?_0x416a02(0x78c,_0x439a15._0x260460):_0x371c5d[_0x416a02(_0x439a15._0x5ad8ea,0x479)],_0x371c5d[_0x152eba(-0xe,0xfb)](process[_0x416a02(0x706,_0x439a15._0x3ad3e2)],_0x152eba(-_0x439a15._0x1e5ea2,-0x2))?[_0x416a02(_0x439a15._0x9939b3,_0x439a15._0x5ffe95),String(_0x1c0952[_0x152eba(_0x439a15._0x17c578,_0x439a15._0x354c4c)]),'/T','/F']:[_0x152eba(0x43,-_0x439a15._0x50328a),String(_0x1c0952[_0x152eba(_0x439a15._0x11e1f0,_0x439a15._0xfff791)])]),clearServiceState(_0x1c0952[_0x152eba(0x1be,_0x439a15._0x3f6b15)]);}function isPidRunning(_0x51e6e6){const _0x3f9770={_0x55f334:0x8e3};function _0x1fff57(_0x53f4e6,_0x5c2ad6){return _0x180075(_0x53f4e6,_0x5c2ad6-0x23);}try{return process[_0x1fff57(0x7ca,_0x3f9770._0x55f334)](_0x51e6e6,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x1dcbea){const _0x5c48b8={_0x304c8c:0x746,_0x22f0e8:0xf2,_0x357393:0x291,_0xd27bb8:0x731,_0x56b3b7:0x7a0},_0x3c3407={_0x4768d8:0x6b},_0x143175={_0x3f8366:0x1f6};function _0xed81e7(_0x506f0f,_0x3d9feb){return _0x28051b(_0x506f0f,_0x3d9feb-_0x143175._0x3f8366);}const _0x46683f={'sUpYB':function(_0x52dbb5,_0x5345a7,_0x166c25){return _0x52dbb5(_0x5345a7,_0x166c25);},'HZOrq':_0x1ff8c0(0x484,0x460),'hDRpa':function(_0x5ab0dc,_0xab6ee5){return _0x5ab0dc(_0xab6ee5);}},_0x8099d1=openSync(SERVICE_LOG_PATH,'a');function _0x1ff8c0(_0x59a233,_0x1193de){return _0x28051b(_0x59a233,_0x1193de- -_0x3c3407._0x4768d8);}const _0x3d3a32=_0x46683f['sUpYB'](openSync,SERVICE_ERROR_LOG_PATH,'a');try{const [_0x2e7991,..._0x55231a]=_0x1dcbea,_0x7924cb={};_0x7924cb[_0xed81e7(0x862,_0x5c48b8._0x304c8c)]=!![],_0x7924cb['stdio']=[_0x46683f[_0xed81e7(0x62f,0x4db)],_0x8099d1,_0x3d3a32],_0x7924cb[_0x1ff8c0(_0x5c48b8._0x22f0e8,_0x5c48b8._0x357393)+_0xed81e7(_0x5c48b8._0xd27bb8,_0x5c48b8._0x56b3b7)]=!![];const _0x43f897=spawn(_0x2e7991,_0x55231a,_0x7924cb);_0x43f897['unref']();}finally{_0x46683f['hDRpa'](closeSync,_0x8099d1),closeSync(_0x3d3a32);}}function resolveScriptPath(_0x4e0c66){const _0x543ff8={_0x521d75:0x32,_0x4dabbb:0x1},_0xd4cbcd={_0x399143:0x1a9},_0xef9c03=_0x4e0c66?.[_0xa9e71c(0x64a,0x46b)]()||process['argv'][0x1]?.[_0x28b3d6(_0x543ff8._0x521d75,-_0x543ff8._0x4dabbb)]()||'';function _0x28b3d6(_0x3093f8,_0x4d0350){return _0x28051b(_0x4d0350,_0x3093f8- -0x290);}if(!_0xef9c03)return'';function _0xa9e71c(_0x5907e6,_0x1f8de5){return _0x28051b(_0x5907e6,_0x1f8de5-_0xd4cbcd._0x399143);}try{return realpathSync(_0xef9c03);}catch{return _0xef9c03;}}function ensureLaunchScriptExecutable(_0x48b49a,_0x4e8fca){const _0x146a93={_0x3dd2bd:0x2ec,_0x48700c:0x1c8,_0x776afd:0x41,_0x3a819e:0x19},_0x53a69d={_0x55c76d:0x714},_0x329f1e={_0x383255:0xcf},_0x3b49c0={'YBRzW':function(_0x4934b6,_0x2b5e10){return _0x4934b6===_0x2b5e10;},'lGaIn':function(_0x3940a0,_0x57a302){return _0x3940a0(_0x57a302);}};function _0x3f449c(_0x4c9b35,_0x5acf73){return _0x180075(_0x4c9b35,_0x5acf73- -_0x329f1e._0x383255);}function _0x4da028(_0x124f5a,_0x45f1a8){return _0x180075(_0x124f5a,_0x45f1a8- -_0x53a69d._0x55c76d);}if(_0x3b49c0['YBRzW'](_0x4e8fca,_0x4da028(-_0x146a93._0x3dd2bd,-_0x146a93._0x48700c))||!_0x3b49c0[_0x4da028(_0x146a93._0x776afd,-_0x146a93._0x3a819e)](_0x1daecd,_0x48b49a))return;try{chmodSync(_0x48b49a,0x1ed);}catch{}}function writeServiceLauncher(_0x1b5a29){const _0x572511={_0x57cade:0x435,_0x5e108a:0x568,_0x5130fa:0x3bc,_0x8224c1:0x465,_0x4ac944:0x48e,_0x34f0f5:0x4bc,_0x515ed3:0x42b,_0x4917cf:0x177,_0x2adadf:0x658,_0xc8fe8b:0x5e1,_0x1a7be7:0x4bb,_0x1a2766:0x42e,_0x3660c0:0x132,_0x190ed1:0x314,_0x166d60:0x1bf,_0x41f45e:0x1c7,_0x36c17d:0x670,_0x3522e2:0x3df,_0x17fe10:0x4a6,_0x221834:0x4dc,_0x59d372:0x4e7,_0xbf3665:0x5c1,_0x1949d4:0x5a1,_0x554eeb:0x51c,_0x119dc6:0x15a,_0x849576:0x719,_0x434e7e:0x1a0,_0x2c0673:0x351,_0x495600:0x2e2,_0x553152:0x389,_0x51db90:0x375,_0x16ead0:0x5bc,_0x5a3c4b:0x434,_0x55354b:0x541,_0x3e6e8e:0x6a1,_0x2857d3:0x28a,_0x1ee768:0x313,_0x23d99d:0x59b,_0x49103f:0x629,_0x4adc3d:0x5c5},_0x3901e2={_0x4a61c3:0x439},_0x4a5208={_0x17dfa5:0x1e9},_0x47997b={'zRkla':function(_0x23043a,_0x81df53){return _0x23043a(_0x81df53);},'FWTNW':_0x1f903e(0x47e,_0x572511._0x57cade)+'\x22$NODE_P'+_0x1f903e(_0x572511._0x5e108a,0x3a4)+_0x533731(_0x572511._0x5130fa,0x304),'dmQej':_0x1f903e(_0x572511._0x8224c1,0x455)+'nd\x20-v\x20no'+_0x533731(_0x572511._0x4ac944,0x579)+'/null\x202>'+_0x533731(_0x572511._0x34f0f5,0x611),'eqJgo':function(_0x54aa85,_0x5e5ff0,_0x440f12,_0x4de5af){return _0x54aa85(_0x5e5ff0,_0x440f12,_0x4de5af);},'XREBP':_0x1f903e(0x389,_0x572511._0x515ed3)};ensureServiceDirs();function _0x533731(_0xe1b907,_0x4d0c92){return _0x180075(_0x4d0c92,_0xe1b907- -_0x4a5208._0x17dfa5);}function _0x1f903e(_0x264172,_0xf9c808){return _0x180075(_0x264172,_0xf9c808- -_0x3901e2._0x4a61c3);}const _0x2f0b57=[_0x533731(0x673,0x7ae)+'h',_0x1f903e(0xb3,_0x572511._0x4917cf)+'ATH=\x22'+escapeShellDoubleQuoted(_0x1b5a29[_0x533731(_0x572511._0x2adadf,_0x572511._0xc8fe8b)])+'\x22',_0x1f903e(_0x572511._0x1a7be7,_0x572511._0x1a2766)+_0x1f903e(_0x572511._0x3660c0,_0x572511._0x190ed1)+escapeShellDoubleQuoted(_0x1b5a29['nodePath'])+'\x22','SCRIPT_P'+_0x1f903e(_0x572511._0x166d60,_0x572511._0x41f45e)+_0x47997b[_0x533731(_0x572511._0x36c17d,0x53d)](escapeShellDoubleQuoted,_0x1b5a29[_0x1f903e(0x347,_0x572511._0x3522e2)+'th'])+'\x22',_0x47997b[_0x533731(0x5c3,0x6a6)],_0x1f903e(0x365,_0x572511._0x17fe10)+_0x533731(_0x572511._0x221834,_0x572511._0x59d372)+_0x533731(0x6e8,_0x572511._0xbf3665)+'RIPT_PAT'+'H\x22\x20run\x20-'+_0x533731(_0x572511._0x1949d4,_0x572511._0x554eeb),'fi',_0x47997b['dmQej'],_0x533731(0x686,0x7a1)+_0x1f903e(0xf2,_0x572511._0x119dc6)+'RIPT_PAT'+_0x533731(0x690,_0x572511._0x849576)+_0x1f903e(_0x572511._0x434e7e,_0x572511._0x2c0673),'fi',_0x1f903e(_0x572511._0x495600,_0x572511._0x553152)+_0x533731(0x555,_0x572511._0x51db90)+_0x1f903e(_0x572511._0x16ead0,0x4d6)+'ound\x20for'+_0x1f903e(_0x572511._0x5a3c4b,0x486)+_0x533731(_0x572511._0x55354b,_0x572511._0x3e6e8e)+_0x533731(0x427,0x5ff)+_0x1f903e(_0x572511._0x2857d3,_0x572511._0x1ee768),_0x1f903e(0x3fa,0x36d),''];return _0x47997b[_0x533731(_0x572511._0x23d99d,_0x572511._0x49103f)](_0x12b61d,SERVICE_LAUNCHER_PATH,_0x2f0b57['join']('\x0a'),_0x47997b[_0x533731(0x552,_0x572511._0x4adc3d)]),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x177ae9){const _0x3b676a={_0x265af9:0x693,_0x26a4c3:0x4d6,_0x40734c:0x475,_0x2c169c:0x545},_0x1340e9={_0x595ff5:0x174},_0x18a984={_0x30a97d:0xaa};function _0x199472(_0x9286a1,_0x917022){return _0x28051b(_0x917022,_0x9286a1-_0x18a984._0x30a97d);}function _0x4f1c57(_0x587aa8,_0x936f76){return _0x28051b(_0x936f76,_0x587aa8- -_0x1340e9._0x595ff5);}return _0x177ae9[_0x199472(_0x3b676a._0x265af9,_0x3b676a._0x26a4c3)+'ll']('\x5c','\x5c\x5c')[_0x199472(_0x3b676a._0x265af9,0x861)+'ll']('\x22','\x5c\x22')[_0x4f1c57(_0x3b676a._0x40734c,_0x3b676a._0x2c169c)+'ll']('$','\x5c$')[_0x199472(0x693,0x7c3)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x4da00b){const _0x1a047e={_0x21f502:0x61a};function _0x24d16d(_0x253093,_0x1b43f7){return _0x28051b(_0x253093,_0x1b43f7-0x21c);}return _0x4da00b['map'](escapeWindowsArg)[_0x24d16d(_0x1a047e._0x21f502,0x631)]('\x20');}function ensureServiceDirs(){const _0x45c62f={_0x435f50:0x6f3,_0x12ad7e:0x877,_0x489a75:0x5b0},_0x84e5fd={_0x35fcdd:0x1d5};function _0x430c77(_0x3bfedf,_0x37ad12){return _0x28051b(_0x37ad12,_0x3bfedf-0x22d);}const _0x38d766={'vQEfI':function(_0x151572,_0x1931f2,_0x28feee){return _0x151572(_0x1931f2,_0x28feee);}},_0x3f2488={};_0x3f2488[_0x2cf777(_0x45c62f._0x435f50,0x693)+'e']=!![];function _0x2cf777(_0x58210a,_0x3b3fdf){return _0x28051b(_0x3b3fdf,_0x58210a-_0x84e5fd._0x35fcdd);}_0x2631c2(SERVICE_DIR,_0x3f2488);const _0x150555={};_0x150555[_0x2cf777(0x6f3,_0x45c62f._0x12ad7e)+'e']=!![],_0x38d766[_0x430c77(0x61d,_0x45c62f._0x489a75)](_0x2631c2,LOG_DIR,_0x150555);}function escapeXml(_0x5259f1){const _0x52c198={_0x3a80af:0x89,_0x173287:0xc3,_0x4d4bac:0x41a,_0x24bedd:0x4e7,_0x28b101:0x79,_0x61b898:0x10c,_0x1bc959:0x301,_0x47c3f3:0x4b2},_0x4dbf99={};_0x4dbf99[_0x330c0c(-0x33,_0x52c198._0x3a80af)]=_0x54abca(_0x52c198._0x173287,-0x106);function _0x330c0c(_0x129147,_0x5b2159){return _0x28051b(_0x129147,_0x5b2159- -0x2e8);}const _0x2576db=_0x4dbf99;function _0x54abca(_0x916f82,_0x1a1fd7){return _0x28051b(_0x1a1fd7,_0x916f82- -0x1cf);}return _0x5259f1[_0x54abca(_0x52c198._0x4d4bac,_0x52c198._0x24bedd)+'ll']('&',_0x330c0c(-_0x52c198._0x28b101,_0x52c198._0x61b898))[_0x330c0c(0x13a,_0x52c198._0x1bc959)+'ll']('<',_0x2576db['IDqyi'])[_0x330c0c(0x3ba,0x301)+'ll']('>','&gt;')[_0x330c0c(0x1c5,0x301)+'ll']('\x22','&quot;')[_0x330c0c(_0x52c198._0x47c3f3,_0x52c198._0x1bc959)+'ll']('\x27','&apos;');}function escapeSystemdArg(_0x320356){const _0x34c2a4={_0x7fb116:0x4ac,_0x1eca6b:0x309},_0x5c2944={_0x4eee04:0x2c6};function _0x22da97(_0x36708f,_0x332304){return _0x28051b(_0x332304,_0x36708f- -0x20f);}function _0x2ba48b(_0x2a385d,_0x515538){return _0x28051b(_0x515538,_0x2a385d-_0x5c2944._0x4eee04);}return'\x22'+_0x320356[_0x22da97(0x3da,_0x34c2a4._0x7fb116)+'ll']('\x5c','\x5c\x5c')[_0x22da97(0x3da,_0x34c2a4._0x1eca6b)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x5ae973){const _0x3cfb20={_0x56ec95:0x31a};function _0x3b93b5(_0x17df37,_0x5f46cf){return _0x28051b(_0x17df37,_0x5f46cf- -_0x3cfb20._0x56ec95);}return'\x22'+_0x5ae973[_0x3b93b5(0x4a4,0x2cf)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x4f67f8,_0x41a782){try{const _0xcd436={};return _0xcd436['stdio']='ignore',execFileSync(_0x4f67f8,_0x41a782,_0xcd436),!![];}catch{return![];}}function execIgnoreFailure(_0x57aff1,_0x4afa76){const _0x1e1706={_0x22adc0:0x6c2,_0x30adda:0x654},_0xaba32f={_0x40d0e5:0x2a},_0x1bc3d7={_0x459f79:0x357};function _0x783f93(_0x39d0da,_0x3143eb){return _0x28051b(_0x3143eb,_0x39d0da-_0x1bc3d7._0x459f79);}function _0x5c750f(_0x2d7637,_0x499eb2){return _0x28051b(_0x499eb2,_0x2d7637- -_0xaba32f._0x40d0e5);}try{const _0x35a2a8={};_0x35a2a8[_0x5c750f(0x4ed,_0x1e1706._0x22adc0)]=_0x5c750f(0x4a1,_0x1e1706._0x30adda),execFileSync(_0x57aff1,_0x4afa76,_0x35a2a8);}catch{}}function rmIfExists(_0x9f9dec){if(!_0x1daecd(_0x9f9dec))return;const _0x395bc8={};function _0x361b65(_0x5440fc,_0x3191fd){return _0x180075(_0x3191fd,_0x5440fc-0x58);}_0x395bc8[_0x361b65(0x689,0x76b)]=!![],_0x3713e8(_0x9f9dec,_0x395bc8);}import{existsSync as _0x4664bc,readFileSync as _0x4da861}from'fs';import{homedir as _0x297008}from'os';import{join as _0x19f742}from'path';var DEFAULT_GATEWAY_URL=_0x28051b(0x2a2,0x3f2)+_0x180075(0x82f,0x781)+_0x180075(0x883,0x7c7),OPENCLAW_DIR=_0x19f742(_0x297008(),_0x180075(0x501,0x605)+'w'),OPENCLAW_CONFIG_PATH2=_0x19f742(OPENCLAW_DIR,'openclaw'+_0x180075(0x897,0x886)),OPENCLAW_MEDIA_DIR=_0x19f742(OPENCLAW_DIR,'media');function _0x5910(){const _0xbd7f22=['zNjVBq','C2nVBM5Ly3q','BwfYA1bHAxi','C1PSrvu','CxvLC3q','u3rHCNrLza','r2f0zxDHEsa','kYKRja','CZWVA2v5pGO','CMvHy2HHyMW','BwfPBG','zg93BG','DMLJzsbPBNm','zxHPDcaXmJC','q2XHD2TLDei','D3m6lY8','B3qGzM91BMq','zxrYEvrPBwu','zerLDMLJzxm','rLDutLC','B25SAw5LlNq','CgLK','Axjszxf1zxm','z2f0zxDHEvm','CgvUzgLUz0C','B3jKks4','mti3lJaUmc4','zM9YzsbWywK','AgfZ','pL0GwY0Tzxi','DgfZA2TPBgW','BwfYA0rLDMK','nxWYFde','zxjYB3jmB2C','y1n0yxj0pq','vujmsumGiI0','AwvUDerLBwe','mtHbtxH5r1i','CwvNy2q','CMvSyxKGzgK','ugTzrhq','zwnOBYaIBM8','zgLZywjSzq','l0rurcbqteK','yxv0Ae1Vzgu','yw5KC2HHA2u','odC4oq','B3b0Aw9UCW','u2vYDMLJzsa','l3yXl3bHAxi','rNbND0S','Bg9NCYbMB3u','igHHCYbIB3q','BgfIzwW','y2XVC2vKige','EsbJAgvJAY4','icH0B2TLBIa','qwPfr1K','CMvSyxKGCMu','zxHLy1bHDgG','nhWZFdj8mhW','CM9YoIa','CMvZDgfYDa','AxnhyxrLD2e','zcbIywnRz3i','zxHPC3rPBMC','svn3BKC','mJyWnZzHtxH4B3i','qvriiIbDoYa','BgvUz3rO','Eu1Z','zxnJCMLWDgK','rxHWAxjLCZO','AxncDwzMzxi','D3nZoG','AwDUB3jL','lIbsDw4GiMm','BNqGzgvTyw4','uKW6ia','ywX1zxmGBgK','zMLSDgvY','tefvyvq','tw9IAwXLiem','uNz1ufm','DgX1Chq','zhKGC2nOzwq','sw5ZDgfSBgu','Bevgquu','C2vHCMnO','Et4kica8Dhi','BwLSEq','r2f0zxDHEtO','q29UzMLNrgK','t051s0e','Bgf3A2v0ihi','ls1Zzxj2zxi','iurpq1rzueu','Ag9ZDa','vg9Rzw5gB3u','ica8yxjYyxK','zxf1zxn0swq','uefjuKLor18','zM9YD2fYze8','zvzorNO','B3vUDa','l2TLEt4kica','zgLZCgXHEu4','y29KzsbBls0','DMrOzhK','BM90ihbHAxi','B0XbyxG','CNvUBMLUzZO','CNvU','y29KzsbYzwy','y2fUy2vSr2e','lZeYnY4WlJa','yxLnCZ0','C2vYDMvYlw0','B2zSBM8','y3jVC29MDfW','EsbPzIb5B3u','igzVCIbNyxq','phbHDgG+xsa','EKLtq0y','rKfUsha','yxj0','u2vYDMLJztO','C2nYAxb0uge','CNrIzwf0','ls1Syxn0ihy','B3vUDf96zxi','q2XLyxjLzca','B0jAvLm','wMnVu1i','x0DbvevxqvK','C2HPzNq','AgfZr2f0zxC','Aw5N','zxvRqNC','qLvLBfO','DMLJzsbYzxm','yNjPzgDLlwm','B25Uzwn0zwq','ugfPCMLUzYa','zgLUzYbYzxe','qNjPzgDL','CgvUzgLUz1a','B3bLBG','rNfgD20','Eu9Wzw4','zxDHEvjLywm','C3rKAw8','qMnpugO','B21WBgv0zsa','CMLKz2vdBgK','C2vYDMLJzvi','zxrcCMLKz2u','ANbJtM0','CMvJDxjZAxy','yxbWBhK','tgvYsvC','DhjSk0mGDg8','AxiGzMLYC3q','icaGidXZDhi','yxvSDc50yxi','A2LUza','CMvQzwn0zwq','Aw5Nienmssa','Cgf0AevUDG','zw5ZDxjLr2e','Dg9tDhjPBMC','r1PfAKu','B2zM','BM5Ly3qGzhi','DxnLCM5HBwu','yMLUyxj5','ifjLC3rHCNq','Bg9Nugf0Aa','BMDqywLYuMu','zxj2AwnLlMO','igj1DcbZDg8','C3rYAw5NAwy','t1bftG','rI04iJ8+cJW','BwLZC2LUzW','zxnOigzHAwW','zcWGyNv0ihm','C2vYDMvYvxi','DgvTChq9','te5yA2u','C3rZ','yNPTBee','ELjRBge','DwvZDa','D2TyuMW','iYeVyMLUl3m','CgvU','y29UzMLN','CYb1BNnLDc4','pLbYB2DYyw0','BgLLBNq','ihbSAxn0ifa','zgv2AwnLlNa','DxrMoa','zM9YBsbMB3i','yw1L','tK9erv9qqvq','DfLlwhq','zgv0ywnOzwq','v2r0Agi','y3rLzcbJB2q','BwvZC2fNzq','zxjZAw9Uxfi','AwyGwYaTEca','icbLEgvJig4','pg5VBMu+','ywLYlNjLAMu','m3WX','vxnKywi','A2v0','CIbWyxnZD28','ihn0B3aU','Bgf5twvZC2e','zxzLBa','sciGCNvUic0','zfj6uNu','w3n0yxr1C10','B0nbuvG','zfDxAvu','Dg9ZqNq','BgLZDa','ChjVDg9JB2W','y29Uy2f0','DgjWug4','B3bLBMnSyxC','ANLpu3e','D2f5uMvXDwu','lMPZB24','CMLUzYbJB2q','zunSB3nL','yxrLD2f5twu','cLr5Cgu9C2K','ywLYzwqGD2K','Axr5wgy','uMvSyxKGvvi','AwyGy29TBwe','Dunxy2y','BMrHCMrpDxq','nhW2Fdb8m3W','CMvWBgfJzq','l1bjra','seTdvvXtB2y','zxDHEvvYBa','CgXHDgzVCM0','zYbWyxrOoIa','zgvfEhbPCMu','C2vHCMnOuge','y2uGD2fZigK','DwuVpGOGidW','zxvIDKC','DfrPBwvVDxq','Dd4k','vwf4Dui','DfrPBwvY','cGPBsw5ZDge','qxjNDw1LBNq','yxnL','zeDgrfG','CxvLC3rDihi','uKLVAKW','C3rYAw5N','C2vYDMLJzva','DwfSBhKU','zxnVBhzLza','tKPOvK0','zxjLBNqGC2u','DMfSDwvZ','mti1otaXtKDbqMHY','zxK+uNvUqxq','zxqUyNjPzgC','CgfYC2u','y29UBMvJDa','zxqGCMvHC28','C2uGC2nOzwq','Aw5KzxHpzG','tg9NoIa','B3vUzcbZzxi','Axn0lteUmc4','CdOVl3D3DY4','lMnSyxDRzxq','u1qGms4WlY8','B3iGCgfZC3C','zxnOignSAwu','zsbdteKkqwy','ienSyxDRzxq','A2LSBa','zs5JBgK','BwfW','AwrL','CMvHzhLtDge','CNvUDgLTzs4','zwqGka','rvzcwLK','Et5mywjLBdW','C3LZDgvTzc0','zg9JDg9YifS','q3fbuvu','ls1QC29U','ChbLBMq6','B3zL','w1vUAxrDcKq','zgvUDgL0Esa','veGIiciKu0m','Df9YzwXHEv8','C3bSAxq','q0X6sgy','A2uGmZbZlca','Bwv0Ag9K','zgzNswq','ywLYuMvXDwu','CgvUy2XHDY8','ls1LCNjVCNm','qxv0BY1PBNm','y2XPzw50q28','BYbYzxnVBhy','DgvYigDHDgu','icbLEgvJici','AxngAw5PDgu','C25HChnOB3q','Cxb1uLy','y29UzMLNrM8','BM5Ly3rezwW','z2vUzxjHDgu','CgnmBeO','qwnJzxnZigm','B3bWzwqGywy','tgf1BMnOqwC','C3rVCMvK','AxmTywn0Axy','ls1Zzxj2Awm','BgLLBNrezw0','D2zVzu8','zsbWywLYAw4','yNjPzgDLlq','Dgv3yxLjzgW','ww91ignHBIa','ru4IicjODhq','BMvJDgvK','ue9tva','ztOG','sujyyxG','ihj1BNrPBwu','uhDYywi','zZOG','y2XPzw50tMe','y2f0y2G','u2XKBKe','r2f0zxDHEuK','zcbPCYbTAxm','C21HBgW','CgrLtvy','CMvWBgfJzue','B3iGmwqU','ugf0Aa','uKvhx1nA','Ac5TB2rLigK','CMvJB25Uzwm','DgfSBgvKigi','DgvK','ChvZAfbLBMq','CwDwrMm','ls1Uyw1L','C2vUza','BM90ihjLywq','BwuGBM90igy','B2TLBG','Dunitg4','DwvZDcbYzxm','ig1PC3nPBMC','y29UBMvJDc4','DcbHCha6cG','DgLTzwqGB3u','C3DTteq','CgfPCG','ywLYzwqUifi','qxv0Ae1Vzgu','Aw5ZDgfUy2u','C3rHCNq','C2LVBJ0Ims4','y2uGywXYzwe','CLDODgm','C2vUzeDHDgu','nte1ntmWwMr1teX0','igXVywqGDgG','lMXVzW','CMvQzwn0uge','CNzPy2uGAw4','y2XLyxjuAw0','EvzNAeG','D2LKDgG','zw5HyMXL','vvjmoIa','qxrnCW','y2XPzw50x2q','Aw5Nr2f0zxC','B2nRzxq','D2TLDcbKB2m','z2uUANnVBG','vvfwr2G','yw5KihbHC3m','zgvZDhjVEq','BM5Ly3rLzca','D2LUmZi','iI4GvxnLihy','zxHPDa','CM9Wzxj0EuW','zxjZ','yxvUy2HLCI4','yxbWCM92zwq','Bgf1BMnOy3q','sw93rMu','rM91BMq','BgKUBg9N','zxziEhq','BxbSzqPfEgu','r3PNve8','y29UBMvJDgu','C3rHBguGy28','CMvXDwLYzwq','zgXLrgLZy28','ywn0Aw9U','ywnJzxb0','BKnSyxCGChi','C2uGC2TPCha','DaPxyw50CZ0','zwzYzxnOzwq','rfjZDe8','y3jLyxrLzee','AxjPBMCU','CMvSyxLbDhq','C3rHDhvZ','C2vYDMvYidW','zw5Nzq','CM9YC10GwY0','zurpBhe','EwvZ','BMuUDgfYz2u','EhrXwNe','igLUDgvUDgK','B2nHBcbpCgu','ywLYlNjLC28','BMqGC2vYDMK','pLn0yw5Kyxi','igrLDMLJzuK','De5nqM4','Bvf2sxC','AcbNyxrLD2e','CNnPB249iJe','sgzvCfO','ifbYzxnZiem','ig5HBwu9','CMvMCMvZAc0','DfHfqMe','y291BNq','ls11C2vY','lNbSAxn0','B25Jzq','pwfSD2f5CWO','Aw5JBhvKzxm','phn0CMLUzZ4','nZu5mZi0vK5LBKDw','zwXHChnLzfm','CMvXDwvZDeK','C1DyCvy','ywLYlMfWChi','qvvYsLe','DgvKqxrnCW','C3rHCNrLzee','EKHTBeS','igDHDgv3yxK','q3vYCMvUDfy','uMvZDgfYDgu','C2v0vgLTzw8','B2rLiciKu0m','yMfJA2DYB3u','phvUA25VD24','yxbZAg90','z2f0zxDHEsa','C2LUzY4','zcbKzwXHEu0','zw5dBgf3ieC','qMfJA2DYB3u','CgLUzW','CMvSyxLdB24','Dw5K','rxjYB3iGBg8','zcbZAw5Jzum','CgfZC3DVCMq','zsbUzxCGCge','C0f0','D3nZoI8V','DgHLBG','zMLUza','zxjYB3i6ia','lJaUmc4XoG','zxqGqNjPzgC','t3bLBKnSyxC','jMX0oW','ugf0AdWVA2u','zgLUz0DHDgu','DwXLzcbYzwe','AwrSzsb3Axq','zxHWB3j0ifa','zgvJAxnPB24','BM93','CMvSyxKGAgu','CgfPCMvK','pgTLEt5tDge','y2XHD2TLDca','uMvZDgfYDfm','C29Tzq','BgfZDevYCM8','C2vYDMLJzq','u0zRvLG','Bg9N','u2vYDMvYifu','nxWX','CLf1zxvLr2e','kcGOlISPkYK','C2XPy2u','ywrKugvUzgK','zKLxC0O','tg9JywWGt3a','y3rVCNK9','A2v5pKTLzxa','DgLTzw91Da','q29UzMLNrM8','zhKGCNvUBMK','AxzLihnVy2S','Bg9JywXhyxq','sw52ywXPzca','CMvJzw50','D2f5twvZC2e','C3rVChbLza','ig1LzgLHoIa','yxnZAwDU','zgfvD2e','Dgv4Da','Aw5ZDgfSBgu','s05Iq2S','ANnVBG','BgfZDfjLBge','u0Lhvevstq','Dg9Rzw4','Ag9ZDg5HBwu','DhjPBq','Aw9Ul2PZB24','BgWIig9Yici','igjYAwrNzsa','zMLNDxjLzcW','C3rHCNrLzca','BMC+','rfvND0m','zsbdteKGC2m','y2vZuMvJzw4','yxLnCW','BgKUANnVBG','BNvTyMvY','ktOG','u3rVChbLzca','y2T2CLq','ywDLBNrZ','wK9jBxG','zgv2AwnLtMe','C2uGy2fUy2u','lw5HBwuGpgq','zw50CW','DgfPBhmSig8','ugfZC3DVCMq','BgKTzxjYB3i','tMfTztOG','CxjjBwfNzva','yu13Be0','CMvSyxKGy28','zgLZy29UBMu','y2XVC2u','CgvUzgLUzW','zM91BMqGDw4','tg9HzdWVA2u','BgvKihjLyxm','sfPpCNe','Bw9Kzq','qvripsi','CNvLlZ4kica','CKfpyuG','AxnszwXHEu8','v2LUzg93C1W','lM9Wzw5JBge','zwqGyMvJyxu','ieLeoIa','mJm2mZe4mhDmr2fzAq','Dw5UAw5N','ihvUy2HHBMC','CMvZAgvKlG','CYbTAxnZAw4','ExbHC3mGDgG','ihnPBMnLq2W','tvPiwMG','C2vYDMLJzsi','zxHPDenVzgu','DhLWzq','zevYCM9Ypwe','Dg9mB3DLCKm','D2LUzg93C0G','ihnPBMnLr2e','wu9Nq3a','CNvUlxjLz2K','swq9','u0Lhsu5u','zgvYih4VlM8','zgfLBw9Ulxi','zwXHEq','DgvZigfYzsa','z2f0zxDHEq','AwrSzsbJBg8','B25qzw5KAw4','C29Upq','cIaGphn0CMK','zxnLDciGyMu','Cgf5Bg9Hza','EhbNy3C','DxbKyxrLu24','t2rWsfu','yuLOshe','AgfIBgu','qwXPDMu8l2S','zguGAw4GDgG','y29UBMvJDfi','ifSTlwzVCMm','u2vYDMLJzv0','BMCUieXLzNq','zM9Yy2u','uMvTB3zLzca','lvrfuK0','zgLUzZ0Ivvq','Bg1vs1e','tM90ihbHAxi','ls1SAw5LCW','C3npDLa','CgfPCIbYzxe','z2v0vgLTzq','z2f0zxDHEva','De1HEerLBge','CNvUDgLTzsa','ywnKDfG','Dgv3yxLdB24','BwfUzfn0yxi','y29UDgvUDc0','Dgv3yxK','uMLoBKW','cLnJyw4GDgG','yxv0Aa','A0fltNC','Cg9YDa','BgfZDe1Z','ls1XCI1MAwW','r2nQwum','r2f0zxDHEvi','igrPCJOG','ywXSzwq','Dgv3yxLnzxm','ignVBMzPzZO','yxnZD29Yza','BNn0ywXSzwq','Df9Yzxf1zxm','zxj2AwnLige','DgGG','ienmssbZzxi','C29YDa','AgfUzgXLuMu','q29UzMLNoIa','BMrnCZ0','zgXLq2XVC2u','x19JBgf3A2u','y2XVC2vKoIa','B25tDgf0Dxm','CMLUzZ4','DeX2Afy','zwqGyMfJA2C','zxDHEq','vw5HyMXLihq','C3rVCa','DgfSBgf0Aw8','w3bHAxiTCMu','mNWXFdn8nhW','B25mB2C','y29UC3rYDwm','tg9NihbHDgG','AgTlChO','ywX1zsaI','Dw5RBM93BG','z2f0zxDHEuG','C2GGy2HHBgW','CNvUBMLUzW','ls1MB3jJzq','yw5Ktxm9','zwqU','zNrLCIbPzgW','Dw5Cq2XHD2S','CMvSyxLtzwm','Bgf1BMnOywC','zguGpI9Kzxy','ndyWode1Dffqy0zz','zw50','C2vUzfrVr2e','vu5Zv1y','pGOGidXRzxK','zLLYwNi','AxnWBgf5tMe','Cg9UzW','zgf0yq','DcbKzw1HBMq','yxK+cIaGpgS','ignSAwvUDhm','A2LUz0rPCMu','x1bbu1nxt1i','m3W0Fdv8mhW','CMvX','y2XPzw50swq','CMvN','surXEwK','AxnbCNjHEq','ihrOzsbWywK','uMvSyxLszwm','Bwf0y2G','AgvHCNrIzwe','BMqU','AdOG','CgfYyw1Z','Bwu+xsbBls0','C3rHCNrZv2K','BhjLywr5iha','u0Pyq1m','BM5Ly3qGyxq','CM91BMqGC2u','ihnLCNzPy2u','zM91BMq','Dg9ju09tDhi','C3LZDgvTy3q','DxH1Cgy','BgLUDxG','ANDTy2u','C3rYEq','mhW0Fdj8nxW','CMvJDgLVBKW','B2X2zwqGCMu','C3rVCeHLyxi','jJe7ihrOzw4','Dw50','wY0TANnVBL0','vgLTzxi','CNzPy2uGDg8','l3jLz2LZDgu','zwXVywq','y2XPzw50x2m','Bgf5q29UDhi','AxjZDc4Gq28','BMv0D29YAY0','yNjPzgDLlxm','BMfTzq','rhfXqLO','y3rPDMf0Aw8','igj1DcbNyxq','C2vYDMvY','Aw5ZDgfSBa','Bg9NCYbBls0','B3nLzdOG','ihjLyxnVBJ0','yxrO','BM9KzvbHDgG','nhWXFdb8mNW','C3rHDgu','Dw5PBNn0ywW','Bs9everZl1a','ig1VzguGDg8','z2f0zxDHEuK','Esb0B2TLBIa','nhWYFdb8m3W','v3Lkzve','je5prevFuee','CMvXlq','zwnVBM5Ly3q','suq6ia','ihjLBgf5pq','CMvSyxLtB2m','CMvZzxq','yMfZzty0','Bg9Hza','Aw5Jzq','DhDHCMvCtwK','z2vZ','DgfYDdOG','zw1HBMrFCMu','zxj2AwnLlwW','C2nOzwr1Bgu','zw47igf3ywK','zwm9mGPxB3i','q2XHD2TLDca','z2f0zxDHEum','u3rHCNrPBMC','zxzLBNq','CMvSyxLvCMW','Cgf0AdOG','mtr3v2jdCwy','y2XPzw50rgu','ihbHAxiIigy','ywrK','zgv2AwnLswq','BgfZDfnLzw4','zwnHDxnLigW','zw1WDa','AvPeuKq','lY9bChbSzs8','v0veEuO','z2f0zxDHEvq','zMX1C2Hqzw4','yw50ihrVigi','CMLWDcbWyxq','q3HkwgG','zxDHEsa','swTWB2W','txnpzLC','DMLJzsbMB3i','CMvMCMvZAgu','qNjPzgDLigK','ygnSyxDRzxq','yNfnBvu','C2fNzq','pc9ZDhjPBMC','ywKUy2XHD2S','B2jQzwn0','q1nOD1C','zgvSzxrL','BeDHsw4','B2jZzxj2zum','AcbHigrPzMy','B24U','yxbWzw5KoG','Bwf4','CMvNAxn0zxi','uwrovK0','Cgf0Ag5HBwu','zwrcEt1Kzwy','vgfrBg4','q1rewKi','ihrVA2vUoIa','BM9VCa','DLffzKK','rezIzw4','D3m6lY8XmJC','CLfisxi','jMfTCdS','BgfZDca8mM0','vgHPCYbICMK','zMXVB3i','BMzPzYbWyxq','zhrfzwO','yxLezw1HBMq','DgjLyxq','BJOG','rxPvz0S','ugfPCIbYzwC','uNvUBMLUzZO','Bffmswq','C3rHCNrizwe','B0zRzLa','ywnJzxnZq28','Aw5NpG','lwPZB25D','DvjpBe4','C3nHz2vZ','CM9Szq','ihrVA2vUigK','CMvTB3rLsxa','lw5LDW','vxjSpq','B25Uzwn0','zxjYB3i','rxjYB3iGtg8','zxrOB2q','iejYAwrNzsa','D2LUzg93CY0','EffoELm','sMflBwu','AM9PBG','A3bRDLK','uxDqy3e','Dg9eyxrHvvi','rhD6vu4','y29UzMLNoIa','lJe6mtG3odK','AwXLzcaO','qKPkAwy','ywnOywjSzsa','ChvZAa','CxiTzMLSzsa','yxqG','wfjfqLa','BwfYz2LU','Bg9NCW','zguGCNvUDgK','zgfYD2LU','vw5ZDxbWB3i','qNjPzgDLige','DwvZDcbWzw4','yxrLD2f5igK','y2XVC2vhyxq','Ahr0CdOVlW','C2v0','z2f0zxDHEvu','t1bftKnmqvC','ls1Syxn0','CxjqyxLSB2e','z2v0u25HChm','id4MmG','sd0I','BKzHuuW','ChbLzc4GuMu','AKzIue4','pL0GwY0TBgK','yM9dyNi','BMvZidWYmda','w2nSyxDRzxq','ihbHAxjGigi','A2vtDgfYDgu','ls1UB3C','AxnJB25Uzwm','D29YzcbJB24','y29Kzq','CMvZ','AxmGuviGy28','zxjYB3jdB3i','zgv0ywLSCW','DgvKihbSyxq','q0TqBhq','EufJDgL2Axq','Aw5ZDc0','rvnvufu','B25Uzwn0Aw4','uNvUigbJBge','ihrVA2vUig8','B3j0','yxbWBguUy28','CMv0','Ahr0Chm6lY8','sxreBxq','AxnTyxrJAa','yxLnzxnZywC','uMvXDwvZDfi','Aw5JBhvKzuu','ugfPCMvKoIa','Et4kica8C3q','C29U','CMfTCW','BwLU','qMvdwxO','sw5ZDgfUy2u','zxrYEurLBge','Dw5SB2fK','ihvYBd0','zg9JDg9Y','DMX0txy','CMvSyxKGzxi','y2HHBMDLzc4','mtCXmtG4B3L0ANbX','y29UDhjVBf8','BgLUzxm','lJaUmc4XoJe','uKvrvuLsruq','AwrLBNrPDhK','zxfkz28','DxnLCG','zxDHEs5HDxq','Bgf3A2v0iha','DgvYpw5LDhC','yxbWBgLJyxq','lxnLCNzPy2u','BMvJDgLUzW','shzSD3K','zw4GC2LUy2u','ENrQzhe','AxmGC2fMzxq','ntz4ENjpzu4','BM90igLUC3q','z2f0zxDHEvi','tM8GBwf0y2G','BhvqyM0','AgfUzgXLr2e','zcbZzxj2Awm','ze91Dhb1Dd0','zevYCM9Yuge'];_0x5910=function(){return _0xbd7f22;};return _0x5910();}function resolveGatewayUrl(_0x32399a){const _0x50d52b={_0x28027a:0x5b4,_0x4c5130:0x86,_0x240d8e:0xd,_0x6acd26:0x77},_0xc34a00={_0x3e252b:0x339},_0x43bc73={_0x11426a:0x315},_0x58c3de=_0x32399a?.[_0xf8869f(0x5fb,0x5d6)]();if(_0x58c3de)return _0x58c3de;const _0x5c6f6e=readOpenClawInfo();if(typeof _0x5c6f6e['gatewayP'+'ort']===_0xf8869f(0x607,0x750))return _0xf8869f(0x72b,_0x50d52b._0x28027a)+_0x38d960(-_0x50d52b._0x4c5130,0x19)+_0x5c6f6e[_0x38d960(_0x50d52b._0x240d8e,-_0x50d52b._0x6acd26)+_0xf8869f(0x787,0x783)];function _0x38d960(_0x16c313,_0x312482){return _0x28051b(_0x312482,_0x16c313- -_0x43bc73._0x11426a);}function _0xf8869f(_0x550108,_0x18693e){return _0x28051b(_0x18693e,_0x550108-_0xc34a00._0x3e252b);}return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x109151={_0x3bf4e2:0xc8,_0x2a8ac7:0x11d,_0x1a16ad:0x183,_0x5dbea9:0x100,_0xe11ce3:0x2e0,_0x1edf09:0x188,_0x48a075:0x16e,_0x5872cc:0x7,_0x2b0ff9:0x128,_0x357c50:0x8f,_0x483649:0x102,_0x251ae3:0x2e6,_0x265f0a:0x148,_0x5b1910:0x3b2,_0xeceec2:0xec,_0x12c6d7:0x148,_0x117edd:0x5b4,_0x4890c0:0x414,_0x1ce82b:0x178,_0x17490b:0x248,_0x1add0e:0xa8,_0x152eb8:0x6d8,_0x195920:0x32a,_0x43e3cc:0x430,_0x14aafb:0xd0,_0x4100a5:0x20,_0x149313:0x3ce},_0x2da92f={_0x5d5d7d:0x20b},_0x3deee4={'oflno':function(_0x16c47d){return _0x16c47d();},'FqFwm':function(_0x2571fc){return _0x2571fc();}};function _0x267e8e(_0x3261d8,_0x511216){return _0x180075(_0x3261d8,_0x511216- -0x747);}if(!_0x4664bc(OPENCLAW_CONFIG_PATH2))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':_0x3deee4[_0x267e8e(0x175,_0x109151._0x3bf4e2)](readGatewayPasswordEnv)};function _0x192ed(_0x24b0d9,_0x9bc05){return _0x180075(_0x24b0d9,_0x9bc05- -_0x2da92f._0x5d5d7d);}try{const _0x47e650=JSON[_0x192ed(0x82f,0x6a6)](_0x4da861(OPENCLAW_CONFIG_PATH2,_0x267e8e(0xe7,_0x109151._0x2a8ac7))),_0x3eac13=_0x47e650['gateway']?.[_0x267e8e(-_0x109151._0x1a16ad,-_0x109151._0x5dbea9)],_0x58de91=typeof _0x3eac13===_0x192ed(0x542,0x3dc)&&Number['isIntege'+'r'](_0x3eac13)?_0x3eac13:null,_0x5ddabf=_0x47e650['gateway']?.[_0x192ed(_0x109151._0xe11ce3,0x43a)]?.[_0x267e8e(0x62,-0x148)]===_0x267e8e(-_0x109151._0x1edf09,-_0x109151._0x48a075)||_0x47e650[_0x267e8e(_0x109151._0x5872cc,-_0x109151._0x2b0ff9)]?.[_0x267e8e(_0x109151._0x357c50,-_0x109151._0x483649)]?.[_0x267e8e(-_0x109151._0x251ae3,-_0x109151._0x265f0a)]===_0x192ed(_0x109151._0x5b1910,0x396)?_0x47e650[_0x267e8e(-_0x109151._0xeceec2,-_0x109151._0x2b0ff9)]['auth'][_0x267e8e(-0x129,-_0x109151._0x12c6d7)]:null,_0x31bf26=readConfiguredSecret(_0x47e650[_0x192ed(_0x109151._0x117edd,_0x109151._0x4890c0)]?.[_0x267e8e(-0x132,-0x102)]?.['token'])??_0x3deee4[_0x267e8e(_0x109151._0x1ce82b,0xe6)](readGatewayTokenEnv),_0x23bc84=readConfiguredSecret(_0x47e650[_0x192ed(_0x109151._0x17490b,0x414)]?.[_0x267e8e(-_0x109151._0x1add0e,-0x102)]?.['password'])??readGatewayPasswordEnv(),_0x4cf2e7={};return _0x4cf2e7[_0x192ed(0x5cb,_0x109151._0x152eb8)+'und']=!![],_0x4cf2e7[_0x192ed(_0x109151._0x195920,_0x109151._0x43e3cc)+_0x267e8e(_0x109151._0x14aafb,_0x109151._0x4100a5)]=_0x58de91,_0x4cf2e7[_0x192ed(0x6be,0x5ba)]=_0x5ddabf,_0x4cf2e7[_0x192ed(0x3bd,_0x109151._0x149313)]=_0x31bf26,_0x4cf2e7['password']=_0x23bc84,_0x4cf2e7;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0xc93379={_0x1d912e:0x388,_0x7b826b:0x119,_0x4c020b:0xe1,_0x4deda6:0x102,_0x30f072:0x1bf,_0x247176:0x337,_0x382e03:0x1a3,_0x4ab9ee:0xea,_0x33fa31:0x30d,_0x3bd11a:0x174,_0x2b4bfc:0x156,_0xfb5d86:0x11f,_0x5397b6:0x36,_0x37897f:0x1f4,_0x3120d0:0x2c6,_0x55d1c4:0x16d,_0x41ca23:0x2c3,_0xb537a:0x41,_0x2c5083:0x74,_0x4438b4:0x3b5,_0x173899:0x32e,_0x309401:0x1fd,_0x4c4dc3:0x305,_0x3a6e44:0x74,_0x4b7996:0x1ea,_0x39f14e:0x2a4,_0x129daa:0xdc,_0x479be1:0x305,_0x562261:0x25f,_0x11229a:0x1f5,_0x4158fe:0x1da,_0x32ecee:0xc5,_0x4b5d04:0x30e,_0x262c21:0x384,_0x481362:0x3d9,_0x4039f7:0x1d1,_0x47444a:0xdc},_0x25c9a9={};_0x25c9a9[_0x2b5e7b(-0x55,0x18c)]=function(_0x31a5c,_0xdca44a){return _0x31a5c==_0xdca44a;},_0x25c9a9['rAOaH']=function(_0x453fbb,_0x5af0a5){return _0x453fbb===_0x5af0a5;},_0x25c9a9[_0x53ebe5(0x384,_0xc93379._0x1d912e)]='password',_0x25c9a9['uROlN']='token';const _0x554d94=_0x25c9a9,_0x7e89c0=readOpenClawInfo(),_0xfe28ef=_0x7e89c0[_0x2b5e7b(-_0xc93379._0x7b826b,-0x66)],_0x95c5d0=_0x7e89c0[_0x53ebe5(_0xc93379._0x4c020b,0x187)];if(_0xfe28ef&&_0x95c5d0&&_0x554d94[_0x2b5e7b(-0x55,-_0xc93379._0x4deda6)](_0x7e89c0[_0x53ebe5(0x305,_0xc93379._0x30f072)],null)){const _0x4c46d9={};return _0x4c46d9[_0x2b5e7b(-0x119,-0x266)]=_0xfe28ef,_0x4c46d9[_0x2b5e7b(-0x151,-0x2e0)]=_0x95c5d0,_0x4c46d9[_0x53ebe5(0x30e,_0xc93379._0x247176)]='token',_0x4c46d9[_0x2b5e7b(0x35,_0xc93379._0x382e03)]=_0x53ebe5(_0xc93379._0x4ab9ee,0x238)+_0x53ebe5(_0xc93379._0x33fa31,_0xc93379._0x3bd11a)+'h\x20gatewa'+'y\x20token\x20'+_0x53ebe5(0x89,_0xc93379._0x2b4bfc)+_0x2b5e7b(0x67,-0x1b)+_0x53ebe5(_0xc93379._0xfb5d86,_0xc93379._0x5397b6)+_0x53ebe5(_0xc93379._0x37897f,0x6c)+_0x53ebe5(_0xc93379._0x3120d0,0xef)+'h.mode\x20i'+_0x2b5e7b(_0xc93379._0x55d1c4,_0xc93379._0x41ca23)+'\x20Set\x20the'+_0x2b5e7b(-0x32,-_0xc93379._0xb537a)+_0x2b5e7b(_0xc93379._0x2c5083,-0xcc)+_0x53ebe5(_0xc93379._0x4438b4,_0xc93379._0x173899)+'rd\x20befor'+_0x2b5e7b(_0xc93379._0x309401,0x153)+'g.',_0x4c46d9;}if(_0x554d94[_0x2b5e7b(-0xf0,0xb0)](_0x7e89c0[_0x53ebe5(_0xc93379._0x4c4dc3,0x4a2)],_0x53ebe5(0xe1,_0xc93379._0x3a6e44))){const _0x12ba9c={};return _0x12ba9c[_0x2b5e7b(-0x119,-_0xc93379._0x4b7996)]=null,_0x12ba9c[_0x53ebe5(0xe1,_0xc93379._0x39f14e)]=null,_0x12ba9c[_0x2b5e7b(_0xc93379._0x129daa,0x168)]=null,_0x95c5d0?{'token':null,'password':_0x95c5d0,'label':_0x554d94[_0x53ebe5(0x384,0x1d5)]}:_0x12ba9c;}if(_0x7e89c0[_0x53ebe5(_0xc93379._0x479be1,0x302)]==='token'){const _0x59db62={};return _0x59db62['token']=null,_0x59db62[_0x53ebe5(0xe1,0x1ec)]=null,_0x59db62['label']=null,_0xfe28ef?{'token':_0xfe28ef,'password':null,'label':_0x554d94[_0x53ebe5(_0xc93379._0x562261,_0xc93379._0x11229a)]}:_0x59db62;}if(_0xfe28ef){const _0xf03f4c={};return _0xf03f4c['token']=_0xfe28ef,_0xf03f4c['password']=null,_0xf03f4c[_0x2b5e7b(0xdc,0x19b)]=_0x554d94[_0x53ebe5(0x25f,_0xc93379._0x4158fe)],_0xf03f4c;}if(_0x95c5d0){const _0x165c2e={};return _0x165c2e[_0x2b5e7b(-0x119,-0x276)]=null,_0x165c2e[_0x53ebe5(_0xc93379._0x4c020b,_0xc93379._0x32ecee)]=_0x95c5d0,_0x165c2e[_0x53ebe5(_0xc93379._0x4b5d04,0x12b)]=_0x554d94[_0x53ebe5(_0xc93379._0x262c21,_0xc93379._0x481362)],_0x165c2e;}function _0x2b5e7b(_0x441ac1,_0x2d4adc){return _0x28051b(_0x2d4adc,_0x441ac1- -0x3d9);}function _0x53ebe5(_0x4ac4c3,_0x123fa6){return _0x28051b(_0x123fa6,_0x4ac4c3- -0x1a7);}const _0x52b4a7={};return _0x52b4a7[_0x53ebe5(0x119,0xe4)]=null,_0x52b4a7[_0x2b5e7b(-0x151,-_0xc93379._0x4039f7)]=null,_0x52b4a7[_0x2b5e7b(_0xc93379._0x47444a,0x129)]=null,_0x52b4a7;}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}function readConfiguredSecret(_0x501860){const _0x523f0a={_0x2d48cf:0x525,_0x1d1a76:0x6b8,_0x4e77b8:0x35b,_0x22762a:0x372,_0x20b23f:0x5bf},_0x33452a={_0x577932:0xb0},_0x2cbe55={_0x329f37:0x2fd},_0x21d1d2={};_0x21d1d2[_0x5a67d9(0x84c,0x6e4)]=function(_0x3dc850,_0x15201e){return _0x3dc850===_0x15201e;};function _0x5a67d9(_0x1bfa32,_0x21ee77){return _0x28051b(_0x21ee77,_0x1bfa32-_0x2cbe55._0x329f37);}_0x21d1d2[_0x33c679(0x37a,_0x523f0a._0x2d48cf)]='string';function _0x33c679(_0x42e2ea,_0x2b2f0b){return _0x28051b(_0x42e2ea,_0x2b2f0b-_0x33452a._0x577932);}const _0x4f03bc=_0x21d1d2;return _0x4f03bc['tYKXt'](typeof _0x501860,_0x4f03bc[_0x5a67d9(0x772,_0x523f0a._0x1d1a76)])&&_0x501860[_0x33c679(_0x523f0a._0x4e77b8,_0x523f0a._0x22762a)]()?_0x501860[_0x5a67d9(_0x523f0a._0x20b23f,0x507)]():null;}function readGatewayTokenEnv(){const _0x5caf60={_0x76fa1c:0x2b6},_0x5a3bff={_0x29cc8a:0x569},_0xab8e1d={_0x3e24ba:0x25};function _0x29f830(_0x209718,_0x3cae5d){return _0x180075(_0x3cae5d,_0x209718- -_0xab8e1d._0x3e24ba);}function _0x3f6d8c(_0x33a715,_0x5c1283){return _0x180075(_0x33a715,_0x5c1283- -_0x5a3bff._0x29cc8a);}return readEnvValue(_0x3f6d8c(0x3a7,0x1df)+'_GATEWAY'+'_TOKEN','CLAWDBOT'+_0x3f6d8c(0x408,_0x5caf60._0x76fa1c)+'_TOKEN');}function readGatewayPasswordEnv(){const _0x3fe93a={_0x594404:0xe5,_0x4759d7:0xef,_0x135edd:0x2a9,_0x4450bb:0x314},_0x484ee2={'kpkvY':function(_0x3cd956,_0xa8edbd,_0x4a3386){return _0x3cd956(_0xa8edbd,_0x4a3386);},'Jsitp':_0x30fffd(-_0x3fe93a._0x594404,_0x3fe93a._0x4759d7)+_0x2e0265(_0x3fe93a._0x135edd,_0x3fe93a._0x4450bb)+'_PASSWOR'+'D'};function _0x2e0265(_0x39f8a6,_0x371b70){return _0x28051b(_0x39f8a6,_0x371b70- -0x1f2);}function _0x30fffd(_0x38df71,_0x10a1da){return _0x28051b(_0x38df71,_0x10a1da- -0x340);}return _0x484ee2[_0x30fffd(0xdc,0xd6)](readEnvValue,_0x484ee2['Jsitp'],'CLAWDBOT'+'_GATEWAY'+_0x2e0265(0x187,0x17a)+'D');}function readEnvValue(_0x39f453,_0x578b4d){const _0x40cab6={_0x32d027:0x157},_0x383a14={_0xa88925:0x1c5},_0x587673=process.env[_0x39f453]?.[_0x3f758f(0x16b,0x9)]();if(_0x587673)return _0x587673;function _0x41c73b(_0x49213a,_0x30a4fc){return _0x28051b(_0x49213a,_0x30a4fc-_0x383a14._0xa88925);}function _0x3f758f(_0x35a78f,_0x137c2e){return _0x28051b(_0x137c2e,_0x35a78f- -_0x40cab6._0x32d027);}const _0x25ec88=process.env[_0x578b4d]?.[_0x3f758f(0x16b,-0x38)]();return _0x25ec88||null;}var CONTROL_PREFIX=_0x28051b(0x51f,0x342)+_0x180075(0x7bb,0x8d2)+_0x180075(0x5d8,0x77f)+'_:';function parseControl(_0x3562eb){const _0x1a2171={_0xc1446b:0x6d,_0x37c008:0x9e,_0x3a2972:0x174,_0x4bc24b:0x21e,_0x5d5897:0x13b,_0x415115:0x5b1},_0x46a366={_0x1220ec:0x351},_0x195102={_0x11ec62:0x187};function _0x51404b(_0x3d2a19,_0x2a89df){return _0x28051b(_0x3d2a19,_0x2a89df- -_0x195102._0x11ec62);}const _0x5f3c27={};_0x5f3c27['qpuRV']='number';const _0x43feb3=_0x5f3c27;if(!_0x3562eb[_0x179a6c(_0x1a2171._0xc1446b,0x2a)+'th'](CONTROL_PREFIX))return null;function _0x179a6c(_0x4f9a82,_0x56d1dc){return _0x28051b(_0x4f9a82,_0x56d1dc- -_0x46a366._0x1220ec);}try{const _0x32ec45=JSON[_0x179a6c(0x1cf,0x247)](_0x3562eb[_0x51404b(-_0x1a2171._0x37c008,0x121)](CONTROL_PREFIX[_0x179a6c(0x369,_0x1a2171._0x3a2972)]));if(typeof _0x32ec45[_0x179a6c(0xc4,0x70)]!=='string'||!_0x32ec45['event'][_0x51404b(_0x1a2171._0x4bc24b,_0x1a2171._0x5d5897)]())return null;return{'event':_0x32ec45[_0x51404b(0x3fa,0x23a)][_0x51404b(0x16c,_0x1a2171._0x5d5897)](),'count':typeof _0x32ec45['count']===_0x43feb3[_0x179a6c(0x22f,0x278)]&&Number[_0x51404b(_0x1a2171._0x415115,0x440)](_0x32ec45['count'])?_0x32ec45[_0x179a6c(-0x2b4,-0xeb)]:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x15c715){const _0x521833={_0x51d63c:0x91,_0x1516db:0x106,_0x3f3bf1:0x3fb,_0x2a0503:0x5db,_0x3feaf0:0x7c,_0x7e9b37:0x11,_0x28b8e9:0x148,_0x417a3b:0x136,_0x3cf43c:0x146,_0x48b5a6:0x140,_0x4e24a3:0x334,_0x549400:0x2ce,_0x45aa43:0x317},_0x50894e={_0x7eaff2:0x6a3};function _0x1f7997(_0x2cf108,_0x3fd048){return _0x180075(_0x2cf108,_0x3fd048- -0x4b7);}const _0x5b915d={};_0x5b915d[_0x23c3bc(0x15,0xd2)]=function(_0x571d37,_0x51060a){return _0x571d37!==_0x51060a;};const _0x286323=_0x5b915d;function _0x23c3bc(_0x4623ea,_0x540991){return _0x180075(_0x4623ea,_0x540991- -_0x50894e._0x7eaff2);}try{const _0x22b9bd=JSON[_0x23c3bc(0x3e,0x20e)](_0x15c715);if(_0x22b9bd[_0x23c3bc(-0x14,-_0x521833._0x51d63c)]!==_0x23c3bc(-_0x521833._0x1516db,-0x1c))return null;if(_0x22b9bd['method']!==_0x1f7997(0x4ba,_0x521833._0x3f3bf1)&&_0x286323[_0x1f7997(0x1f1,0x2be)](_0x22b9bd['method'],_0x1f7997(_0x521833._0x2a0503,0x45d)+_0x1f7997(0x238,_0x521833._0x3feaf0)))return null;const _0x5c0fc5=_0x22b9bd[_0x23c3bc(-0xe4,-_0x521833._0x7e9b37)]??{},_0x4d4c06=typeof _0x22b9bd['id']==='string'&&_0x22b9bd['id']['trim']()?_0x22b9bd['id'][_0x1f7997(0x298,0x124)]():_0x1f7997(_0x521833._0x28b8e9,0x20f)+Math['random']()[_0x23c3bc(0x181,0x1a0)](0x24)['slice'](0x2,0xc),_0x3285a1=firstString(_0x5c0fc5[_0x1f7997(0x6b,_0x521833._0x417a3b)+'me'],_0x5c0fc5[_0x23c3bc(0x359,0x258)+'me'],_0x5c0fc5[_0x23c3bc(_0x521833._0x3cf43c,0x3e)],_0x1f7997(_0x521833._0x48b5a6,_0x521833._0x4e24a3)+_0x23c3bc(_0x521833._0x549400,0x1be)),_0x205a50={};return _0x205a50['id']=_0x4d4c06,_0x205a50[_0x1f7997(0x355,_0x521833._0x45aa43)]=_0x3285a1,_0x205a50;}catch{return null;}}function isConnectHandshakeRequest(_0x583a2a){const _0x2d9075={_0x15b651:0x45a,_0x533f39:0x757,_0x3f0e9a:0x645,_0x5952ec:0x6e6,_0x373f0c:0x305,_0x3b77e4:0x89d,_0x9f6ee5:0x60d,_0x1a01f9:0x49f,_0x803fb8:0x5b1,_0x5869d0:0x459,_0x2134c7:0x69f,_0x4fcb11:0x6a8,_0xdb47bf:0x899},_0x59f817={_0x347031:0x22e},_0x41c486={_0xddfd4a:0x3d},_0x3b07a9={};_0x3b07a9[_0xb3e278(_0x2d9075._0x15b651,0x41c)]=function(_0x722554,_0x23dea2){return _0x722554===_0x23dea2;},_0x3b07a9[_0x41f70b(_0x2d9075._0x533f39,0x820)]=_0xb3e278(_0x2d9075._0x3f0e9a,_0x2d9075._0x5952ec)+_0xb3e278(0x189,_0x2d9075._0x373f0c);function _0x41f70b(_0x26211e,_0x39eb0c){return _0x180075(_0x39eb0c,_0x26211e- -_0x41c486._0xddfd4a);}function _0xb3e278(_0x5d13e8,_0x1af0e9){return _0x180075(_0x5d13e8,_0x1af0e9- -_0x59f817._0x347031);}const _0x1f1b8e=_0x3b07a9;try{const _0x49f3e1=JSON[_0x41f70b(0x874,_0x2d9075._0x3b77e4)](_0x583a2a);return _0x1f1b8e[_0x41f70b(_0x2d9075._0x9f6ee5,_0x2d9075._0x1a01f9)](_0x49f3e1[_0x41f70b(0x5d5,0x5cc)],_0xb3e278(_0x2d9075._0x803fb8,_0x2d9075._0x5869d0))&&(_0x49f3e1[_0xb3e278(_0x2d9075._0x2134c7,_0x2d9075._0x4fcb11)]==='connect'||_0x49f3e1[_0x41f70b(_0x2d9075._0xdb47bf,0x8ef)]===_0x1f1b8e[_0x41f70b(_0x2d9075._0x533f39,0x581)]);}catch{return![];}}function parsePairingRequestFromError(_0x2c20ef,_0x128eb8=Date[_0x28051b(0x168,0x299)]()){const _0x3c225c={_0x355f67:0x44a,_0x39abb8:0x2d3,_0x203b4a:0x3ae,_0x30a2b9:0x49,_0xd28637:0x53,_0x6ac3e9:0x29f,_0x3f90f1:0x63,_0x4905a0:0x1ef,_0x4bd05c:0x80,_0x417b34:0x222,_0x5626e5:0x41f,_0x359357:0x26b,_0x1cdc21:0x44b,_0x35fa60:0x291,_0xdb1390:0x31c,_0x1dde5c:0x293,_0x4fbe5b:0x2f0,_0x20f376:0x16e,_0x5eda7d:0x2c6,_0x33dac9:0x4c,_0x6b47bd:0x24,_0x38b592:0xda,_0xc65ce2:0x1f8,_0x47079b:0x1c3,_0x3bcd43:0x1a9,_0x582a7b:0x5a4,_0x215ad9:0x407,_0x933abc:0x306,_0x3629e1:0x25d,_0xb09245:0x8b,_0x3b8ee0:0x1e9,_0x30aab0:0x172},_0x21041b={_0x3e11c5:0x16f},_0x203f3d={_0x4edab6:0x21f};function _0x588953(_0x464afa,_0x1b9636){return _0x28051b(_0x464afa,_0x1b9636- -_0x203f3d._0x4edab6);}const _0x493bdf={'jpcNm':_0x404fd9(_0x3c225c._0x355f67,_0x3c225c._0x39abb8),'AUrJQ':function(_0x6e3c92,_0x5e83fa){return _0x6e3c92!==_0x5e83fa;},'lQLId':function(_0x3e2b70,_0x2f0386){return _0x3e2b70===_0x2f0386;},'uCWcf':function(_0x310cd1,_0x12c46d){return _0x310cd1(_0x12c46d);},'iZDRD':function(_0x296b28,_0x2f2a94){return _0x296b28(_0x2f2a94);}};function _0x404fd9(_0x18c5d7,_0xb46bad){return _0x28051b(_0x18c5d7,_0xb46bad- -_0x21041b._0x3e11c5);}try{const _0x438d02=JSON['parse'](_0x2c20ef);if(_0x438d02[_0x588953(-0x1d,0xda)]!==_0x493bdf[_0x404fd9(0x55c,_0x3c225c._0x203b4a)]||_0x493bdf[_0x588953(-_0x3c225c._0x30a2b9,_0x3c225c._0xd28637)](_0x438d02['ok'],![])||!_0x438d02[_0x404fd9(0x10f,_0x3c225c._0x6ac3e9)])return null;const _0xf6906d=_0x493bdf[_0x404fd9(0x28d,0x291)](typeof _0x438d02[_0x588953(_0x3c225c._0x3f90f1,_0x3c225c._0x4905a0)][_0x588953(_0x3c225c._0x4bd05c,_0x3c225c._0x417b34)],_0x404fd9(0x602,_0x3c225c._0x5626e5))?_0x438d02[_0x588953(_0x3c225c._0x359357,0x1ef)][_0x588953(0x1d9,0x222)]:'',_0x2b3478=_0x493bdf[_0x404fd9(_0x3c225c._0x1cdc21,_0x3c225c._0x35fa60)](typeof _0x438d02[_0x588953(_0x3c225c._0xdb1390,0x1ef)][_0x588953(_0x3c225c._0x1dde5c,0x334)],'string')?_0x438d02['error']['message']:'';if(!_0xf6906d[_0x404fd9(_0x3c225c._0x4fbe5b,0xfc)]('NOT_PAIR'+'ED')&&!_0xf6906d['includes'](_0x588953(_0x3c225c._0x20f376,_0x3c225c._0x5eda7d)+_0x588953(0x2fb,0x24a))&&!_0x2b3478['includes']('NOT_PAIR'+'ED')&&!_0x2b3478[_0x588953(-0x7b,_0x3c225c._0x33dac9)]('pairing\x20'+_0x588953(0xd5,_0x3c225c._0x6b47bd)))return null;const _0x2f620e=_0x438d02[_0x404fd9(0x169,_0x3c225c._0x6ac3e9)][_0x588953(0x224,0x226)]??_0x438d02[_0x588953(_0x3c225c._0x38b592,0x1ef)][_0x404fd9(0x50,_0x3c225c._0xc65ce2)]??{},_0x54bb36=firstString(_0x2f620e['requestI'+'d'],extractRequestIdFromMessage(_0x2b3478),_0x588953(0x5a,0x134));return{'requestId':_0x54bb36,'deviceId':firstString(_0x2f620e[_0x588953(_0x3c225c._0x47079b,_0x3c225c._0x3bcd43)],''),'displayName':firstNullableString(_0x2f620e['displayN'+_0x588953(0x1cf,0x32e)]),'platform':firstNullableString(_0x2f620e[_0x588953(0x2f6,0x35e)]),'deviceFamily':_0x493bdf[_0x404fd9(_0x3c225c._0x582a7b,_0x3c225c._0x215ad9)](firstNullableString,_0x2f620e['deviceFa'+_0x404fd9(_0x3c225c._0x933abc,0x36b)]),'role':_0x493bdf[_0x404fd9(0x3bf,_0x3c225c._0x3629e1)](firstNullableString,_0x2f620e[_0x588953(_0x3c225c._0xb09245,_0x3c225c._0x3b8ee0)]),'remoteIp':firstNullableString(_0x2f620e[_0x588953(0xfa,0x1eb)]),'receivedAtMs':_0x128eb8,'status':_0x404fd9(0x267,_0x3c225c._0x30aab0)};}catch{return null;}}function parsePairResolvedEvent(_0x6f22e4){const _0x5dd3d7={_0x5451be:0x662,_0x505246:0x788,_0x3d6de3:0x687,_0x19fdd7:0x65b,_0x23a8ea:0x64d,_0x3b3ad7:0x76f,_0x549511:0x47e,_0x1a60ab:0x654,_0x4060cf:0x531,_0x1ea5fd:0x523,_0x294da9:0x494,_0x488d43:0x4e7,_0x2ff572:0x7b3,_0x29efd3:0x531,_0x11e1a4:0x642};function _0x131e31(_0xf0f0d0,_0x560684){return _0x180075(_0x560684,_0xf0f0d0- -0x129);}const _0x52fe80={};_0x52fe80['MsOfW']='unknown',_0x52fe80[_0x4a093b(_0x5dd3d7._0x5451be,0x767)]=_0x4a093b(0x8af,0x74b);const _0x257d43=_0x52fe80;function _0x4a093b(_0x120e25,_0x5e87a9){return _0x180075(_0x120e25,_0x5e87a9- -0xf4);}try{const _0x97d67c=JSON[_0x131e31(_0x5dd3d7._0x505246,0x645)](_0x6f22e4);if(_0x97d67c[_0x4a093b(_0x5dd3d7._0x3d6de3,0x51e)]!==_0x131e31(0x5b1,_0x5dd3d7._0x19fdd7)||_0x97d67c['event']!==_0x4a093b(_0x5dd3d7._0x23a8ea,_0x5dd3d7._0x3b3ad7)+_0x4a093b(0x671,_0x5dd3d7._0x549511)+'lved'||!_0x97d67c['payload'])return null;const _0x5b8c0c=typeof _0x97d67c[_0x4a093b(_0x5dd3d7._0x1a60ab,_0x5dd3d7._0x4060cf)]['requestI'+'d']==='string'?_0x97d67c[_0x4a093b(_0x5dd3d7._0x1ea5fd,0x531)][_0x4a093b(0x35d,_0x5dd3d7._0x294da9)+'d'][_0x4a093b(0x316,_0x5dd3d7._0x488d43)]():'';if(!_0x5b8c0c)return null;const _0x14e872=typeof _0x97d67c['payload'][_0x4a093b(0x4a0,0x4bd)]===_0x4a093b(0x83e,_0x5dd3d7._0x2ff572)?_0x97d67c[_0x4a093b(0x6bb,_0x5dd3d7._0x29efd3)][_0x4a093b(0x509,0x4bd)]:_0x257d43[_0x4a093b(0x4f3,0x5fb)],_0x5175d3=_0x14e872===_0x4a093b(0x57b,0x45e)||_0x14e872===_0x257d43['wkXRl']?_0x14e872:_0x131e31(0x543,_0x5dd3d7._0x11e1a4),_0x32acd9={};return _0x32acd9[_0x131e31(0x45f,0x346)+'d']=_0x5b8c0c,_0x32acd9[_0x131e31(0x488,0x45b)]=_0x5175d3,_0x32acd9;}catch{return null;}}function firstString(..._0x263226){const _0x4408f8={_0x41e3e1:0xf1},_0x4e671b={_0x270483:0x2d5};for(const _0x228261 of _0x263226){if(typeof _0x228261===_0x6cf2c8(0x433,0x49d)&&_0x228261[_0x6cf2c8(0x351,0x1d1)]())return _0x228261['trim']();}function _0x57c510(_0x47bbbd,_0x1f4d12){return _0x28051b(_0x1f4d12,_0x47bbbd-_0x4e671b._0x270483);}function _0x6cf2c8(_0x38ce05,_0x3a7af0){return _0x28051b(_0x38ce05,_0x3a7af0- -_0x4408f8._0x41e3e1);}return'';}function firstNullableString(_0x46eacd){const _0x5f448d={_0x191d17:0x4de,_0x32bb59:0x6a9,_0x5b532c:0x23f,_0x4bf28b:0x58b},_0x21ae4c={_0x163969:0x2c9},_0x4685c4={_0x4630f5:0x1d4},_0x428cec={};_0x428cec[_0x5915a0(_0x5f448d._0x191d17,_0x5f448d._0x32bb59)]=function(_0x9e138a,_0xd0fd25){return _0x9e138a===_0xd0fd25;},_0x428cec[_0x64a357(0x10a,_0x5f448d._0x5b532c)]=_0x5915a0(0x857,0x720);const _0x491eef=_0x428cec;function _0x64a357(_0x3cc7f1,_0x136466){return _0x28051b(_0x3cc7f1,_0x136466- -_0x4685c4._0x4630f5);}function _0x5915a0(_0x3b056c,_0x8571ed){return _0x28051b(_0x8571ed,_0x3b056c-_0x21ae4c._0x163969);}return _0x491eef['swmLD'](typeof _0x46eacd,_0x491eef['xQNzS'])&&_0x46eacd[_0x5915a0(_0x5f448d._0x4bf28b,0x635)]()?_0x46eacd[_0x5915a0(_0x5f448d._0x4bf28b,0x53f)]():null;}function extractRequestIdFromMessage(_0x59af8d){const _0xa88637=_0x59af8d['match'](/requestId[:\s]*([a-f0-9-]+)/i);return _0xa88637?.[0x1]??null;}import{randomUUID as _0x5c4ac6}from'crypto';import{setTimeout as _0xf849ee}from'timers/promises';import _0x49a626 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8;function _0x180075(_0x1f28e4,_0x494153){const _0x194e5d={_0x36e102:0x375};return _0xec0d(_0x494153-_0x194e5d._0x36e102,_0x1f28e4);}var GATEWAY_RETRY_DELAY_MS=0x4b0,GATEWAY_IDLE_DISCONNECT_DELAY_MS=0x1d4c0,RECONNECT_BASE_DELAY_MS=0x3e8,RECONNECT_MAX_DELAY_MS=0x3a98,MAX_PENDING_GATEWAY_MESSAGES=0x100,MAX_DEVICE_DETAILS=0x20,MAX_PENDING_PAIR_REQUESTS=0x10,BridgeRuntime=class{[_0x28051b(0x3cb,0x4af)];['relaySoc'+'ket']=null;[_0x28051b(0x485,0x497)+_0x28051b(0x112,0x22c)]=null;[_0x28051b(0x475,0x284)+_0x180075(0x6aa,0x78b)]=![];['gatewayC'+'onnectin'+'g']=![];['stopped']=!![];['relayAtt'+_0x28051b(0x35f,0x3cb)]=0x0;[_0x180075(0x727,0x5d7)+_0x28051b(0x2cc,0x448)+_0x180075(0x8f8,0x7df)]=0x0;['reconnec'+_0x28051b(0x466,0x587)]=null;[_0x28051b(0x308,0x479)+_0x28051b(0x402,0x491)+'r']=null;['gatewayI'+_0x180075(0x630,0x65a)+_0x180075(0x686,0x6a8)]=null;[_0x28051b(0x3e2,0x376)+'tTimer']=null;[_0x180075(0x975,0x7b1)+'atewayMe'+_0x180075(0x80c,0x720)]=[];[_0x28051b(0x430,0x354)+'andshake'+_0x180075(0x677,0x79e)]=![];[_0x180075(0x600,0x6de)+_0x180075(0x557,0x640)+_0x180075(0x704,0x58c)]=null;[_0x28051b(0x535,0x3bf)+_0x180075(0x844,0x827)+_0x28051b(0xa1,0x229)]=null;[_0x28051b(0x768,0x5c8)];constructor(_0x218f28){const _0x5744d6={_0x1cb6fb:0x134,_0x25b59c:0x2f5,_0x279a40:0x29c,_0x22212b:0x134,_0x561065:0x1f8,_0x593b3b:0x3cd,_0x1a9013:0x1ea,_0x179e39:0x5e3,_0x3e4598:0x178};function _0x252568(_0x2780ef,_0x54b522){return _0x28051b(_0x2780ef,_0x54b522- -0x411);}this['options']=_0x218f28;function _0x529550(_0x424bd7,_0x4bded4){return _0x28051b(_0x4bded4,_0x424bd7-0xb);}this[_0x529550(0x5d3,0x66c)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x218f28[_0x252568(-0x2a,_0x5744d6._0x1cb6fb)][_0x529550(0x3b3,_0x5744d6._0x25b59c)+'d'],'instanceId':_0x218f28[_0x252568(_0x5744d6._0x279a40,_0x5744d6._0x22212b)][_0x252568(-0x10d,-_0x5744d6._0x561065)+'Id'],'relayUrl':_0x218f28['config'][_0x529550(_0x5744d6._0x593b3b,_0x5744d6._0x1a9013)],'gatewayUrl':_0x218f28[_0x529550(0x439,_0x5744d6._0x179e39)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date[_0x252568(0x2,-_0x5744d6._0x3e4598)]()};}['start'](){const _0x29e80f={_0x68d97:0x72f,_0x283e0e:0x622,_0x5191d6:0x4e7,_0x2592a0:0x742,_0x57b764:0x871,_0x358ff1:0x5ca,_0x3a8f2e:0x48c,_0x290659:0x5b7,_0x573191:0x69c,_0x445926:0x58a,_0x64f5df:0x5c9,_0x3f48e3:0x614,_0x3be84d:0x6bc,_0x1057a8:0x6ae,_0x448548:0x3eb,_0x1a0123:0x3e9,_0x193567:0x720,_0x1d1740:0x628,_0x5a2f85:0x560},_0x13c9a6=(_0x37fade(0x6b7,0x569)+'3')[_0x595f4e(_0x29e80f._0x68d97,0x80b)]('|');let _0x5a22e8=0x0;function _0x595f4e(_0x59e433,_0x3bd8e8){return _0x28051b(_0x3bd8e8,_0x59e433-0x175);}function _0x37fade(_0x535b60,_0x3e2b92){return _0x28051b(_0x3e2b92,_0x535b60-0x314);}while(!![]){switch(_0x13c9a6[_0x5a22e8++]){case'0':this[_0x37fade(_0x29e80f._0x283e0e,_0x29e80f._0x5191d6)+'apshot']({'running':!![],'gatewayUrl':this['options'][_0x37fade(_0x29e80f._0x2592a0,_0x29e80f._0x57b764)+'rl']});continue;case'1':this[_0x37fade(_0x29e80f._0x358ff1,_0x29e80f._0x3a8f2e)]=![];continue;case'2':this[_0x37fade(_0x29e80f._0x290659,_0x29e80f._0x573191)]('runtime\x20'+'starting'+_0x37fade(_0x29e80f._0x445926,_0x29e80f._0x64f5df)+_0x37fade(_0x29e80f._0x3f48e3,0x5f1)+this['options']['config'][_0x37fade(_0x29e80f._0x3be84d,_0x29e80f._0x1057a8)+'d']+(_0x595f4e(_0x29e80f._0x448548,_0x29e80f._0x1a0123)+_0x37fade(_0x29e80f._0x193567,0x8ea))+this['options']['gatewayU'+'rl']);continue;case'3':void this[_0x37fade(_0x29e80f._0x1d1740,_0x29e80f._0x5a2f85)+_0x595f4e(0x479,0x2ae)]();continue;case'4':if(!this[_0x37fade(_0x29e80f._0x358ff1,0x53a)])return;continue;}break;}}async[_0x180075(0x6cc,0x663)](){const _0x5dd61c={_0x1f996b:0x301,_0xa6381c:0x26f,_0x2e415e:0x781,_0x20ade2:0x204,_0x42d4cb:0x14f,_0x5c79d7:0xc8,_0x787858:0x68,_0x2a5761:0xbf,_0x35b494:0x12c,_0x17fedb:0x203,_0x55c3e6:0x69,_0x4d5d7d:0x452,_0x338309:0x396,_0x33d71a:0x4d0,_0x3578a9:0x5bc,_0x21720d:0x40a,_0x5d4d6e:0x298,_0x30eb1d:0x40a,_0x58c9df:0x6d,_0x4ff4e4:0x1c,_0x4e2609:0x2ab,_0x34e49f:0xd9,_0x35e892:0x2f6,_0x172148:0x338,_0x86d15e:0x18f,_0x2e098f:0x2c8,_0x4544b5:0x34,_0x5070c6:0x18c,_0x17308d:0x10b},_0x30a03f={_0x3b10f9:0x748},_0x104ab8={_0x25a2e8:0x2ce};if(this[_0x5813ce(0x401,_0x5dd61c._0x1f996b)])return;this['stopped']=!![],this[_0x5813ce(0x284,_0x5dd61c._0xa6381c)+'ers'](),this['relaySoc'+_0x5813ce(_0x5dd61c._0x2e415e,0x5a6)]?.[_0x5a999c(-_0x5dd61c._0x20ade2,-_0x5dd61c._0x42d4cb)](),this[_0x5a999c(-_0x5dd61c._0x5c79d7,_0x5dd61c._0x787858)+'ocket']?.[_0x5a999c(-_0x5dd61c._0x2a5761,-_0x5dd61c._0x42d4cb)](),this['relaySoc'+_0x5a999c(0x1cb,_0x5dd61c._0x35b494)]=null,this['gatewayS'+_0x5a999c(-0xe,-_0x5dd61c._0x17fedb)]=null,this[_0x5a999c(-0x17c,_0x5dd61c._0x55c3e6)+_0x5a999c(-0x81,0x141)+_0x5813ce(0x454,_0x5dd61c._0x4d5d7d)]=[],this['gatewayH'+'andshake'+_0x5813ce(_0x5dd61c._0x338309,_0x5dd61c._0x33d71a)]=![],this[_0x5813ce(0x2c6,0x410)+_0x5813ce(0x35c,0x372)+'tedAtMs']=null;function _0x5813ce(_0x8a6d0f,_0x4c8360){return _0x180075(_0x8a6d0f,_0x4c8360- -_0x104ab8._0x25a2e8);}this[_0x5813ce(_0x5dd61c._0x3578a9,_0x5dd61c._0x21720d)+_0x5a999c(-0x2c,0xdf)+_0x5a999c(-0x2f0,-0x206)]=null,this['relayCon'+'necting']=![],this[_0x5813ce(_0x5dd61c._0x5d4d6e,_0x5dd61c._0x30eb1d)+_0x5a999c(_0x5dd61c._0x58c9df,_0x5dd61c._0x4ff4e4)+'g']=![];const _0xfabfc1={};_0xfabfc1[_0x5a999c(-_0x5dd61c._0x4e2609,-_0x5dd61c._0x34e49f)]=![],_0xfabfc1[_0x5813ce(0x45e,0x2cf)+_0x5a999c(_0x5dd61c._0x35e892,0x1ac)]=![];function _0x5a999c(_0x31fbbb,_0x179f8a){return _0x180075(_0x31fbbb,_0x179f8a- -_0x30a03f._0x3b10f9);}_0xfabfc1['gatewayC'+'onnected']=![],_0xfabfc1[_0x5a999c(0x1b3,0x194)+'unt']=0x0,_0xfabfc1[_0x5a999c(-_0x5dd61c._0x172148,-_0x5dd61c._0x86d15e)+'r']=null,this[_0x5813ce(0x39f,0x359)+_0x5813ce(0x37f,_0x5dd61c._0x2e098f)](_0xfabfc1),this[_0x5a999c(-_0x5dd61c._0x4544b5,-_0x5dd61c._0x5070c6)](_0x5a999c(-0xfd,-_0x5dd61c._0x17308d)+_0x5813ce(0x3c3,0x301)),await _0xf849ee(0x19);}async['approveP'+_0x180075(0x710,0x8d8)+'st'](_0x4022c7){const _0x12c287={_0x17110c:0x532,_0xdc04d8:0x4d8,_0x351273:0x487,_0x459e89:0x5d8,_0x791424:0x482,_0x52ab0e:0x79a,_0x179141:0x68a,_0x25af8b:0x6eb,_0x39c77b:0x76b,_0x2cb0ce:0x6be,_0x21169b:0x621},_0x5687d6={_0x1b9ee2:0x108},_0x97302d={};function _0x19ef0a(_0x11dbb2,_0x3b578f){return _0x28051b(_0x3b578f,_0x11dbb2- -_0x5687d6._0x1b9ee2);}_0x97302d[_0xb41cfd(_0x12c287._0x17110c,_0x12c287._0xdc04d8)+'d']=_0x4022c7;function _0xb41cfd(_0x5999fe,_0x326be0){return _0x28051b(_0x5999fe,_0x326be0-0x269);}this[_0xb41cfd(0x4c0,_0x12c287._0x351273)+_0x19ef0a(0x464,0x551)+'st'](_0x19ef0a(0x442,_0x12c287._0x459e89)+_0xb41cfd(_0x12c287._0x791424,0x4da)+_0xb41cfd(_0x12c287._0x52ab0e,0x81e),_0x97302d),this[_0xb41cfd(_0x12c287._0x179141,_0x12c287._0x25af8b)+_0xb41cfd(_0x12c287._0x39c77b,_0x12c287._0x2cb0ce)+_0x19ef0a(0x489,_0x12c287._0x21169b)](_0x4022c7,_0x19ef0a(0x131,0x236));}async[_0x180075(0x4fb,0x53b)+_0x180075(0x887,0x7af)+'t'](_0x58e007){const _0x4d479f={_0x53339c:0xb,_0xfa4ad:0x46,_0x1caaa0:0x6e2,_0x3ef708:0x52a,_0x3beb81:0x2e6,_0x346f1c:0x11b,_0x51a8d1:0x3fa,_0x11ca32:0x1ef},_0x5c5ad8={_0xafbaa2:0x264},_0x305193={_0x1d84f7:0x42};function _0x45b09d(_0x424386,_0x4e75a6){return _0x28051b(_0x424386,_0x4e75a6- -_0x305193._0x1d84f7);}const _0x3e6ed3={};_0x3e6ed3[_0x5cecc5(_0x4d479f._0x53339c,0x117)+'d']=_0x58e007,this[_0x5cecc5(-_0x4d479f._0xfa4ad,-0x13d)+_0x45b09d(_0x4d479f._0x1caaa0,_0x4d479f._0x3ef708)+'st'](_0x5cecc5(_0x4d479f._0x3beb81,0x44f)+_0x5cecc5(0x2f4,_0x4d479f._0x346f1c)+'ct',_0x3e6ed3);function _0x5cecc5(_0x288437,_0x2baf4b){return _0x28051b(_0x2baf4b,_0x288437- -_0x5c5ad8._0xafbaa2);}this[_0x5cecc5(0x21e,_0x4d479f._0x51a8d1)+_0x5cecc5(0x1f1,_0x4d479f._0x11ca32)+'esolved'](_0x58e007,'rejected');}[_0x180075(0x634,0x74b)+'hot'](){const _0x3cc570={_0x1652fd:0x298,_0x469df1:0x335,_0x5f5a35:0x298,_0x218db0:0x19a,_0x414013:0x162,_0x4f54d7:0x28f,_0x440859:0x1fe,_0x15a9b2:0x8c2,_0x4830d6:0x6f4,_0x1ac563:0x28f},_0x1349ff={_0x44be14:0x137},_0x5c8124={_0x51807a:0x649};function _0x5e856a(_0x306bf1,_0x4a7d65){return _0x180075(_0x306bf1,_0x4a7d65- -_0x5c8124._0x51807a);}const _0x166161={...this[_0x5e856a(0x3c3,_0x3cc570._0x1652fd)]};_0x166161[_0x5e856a(-0x57,-0xef)+_0x375e0f(0x709,0x674)]=[...this[_0x5e856a(_0x3cc570._0x469df1,_0x3cc570._0x5f5a35)]['connecte'+_0x5e856a(_0x3cc570._0x218db0,_0x3cc570._0x414013)]],_0x166161[_0x375e0f(0x643,0x6f4)+_0x5e856a(0x334,_0x3cc570._0x4f54d7)+'sts']=[...this[_0x5e856a(_0x3cc570._0x440859,_0x3cc570._0x5f5a35)][_0x375e0f(_0x3cc570._0x15a9b2,_0x3cc570._0x4830d6)+_0x5e856a(0x23c,_0x3cc570._0x1ac563)+_0x5e856a(0x208,0x20e)]];function _0x375e0f(_0x7b73c,_0x13f669){return _0x180075(_0x7b73c,_0x13f669- -_0x1349ff._0x44be14);}return _0x166161;}async['connectR'+_0x28051b(0x208,0x304)](){const _0xe3deff={_0x1e4fa0:0x4c5,_0x40cd5b:0x3e6,_0x3197ca:0x451,_0x2a3c1d:0x51f,_0x5a9e25:0x343,_0x4abc63:0x60c,_0xb51251:0x480,_0x5415ee:0x49d,_0x1a9b0a:0x612,_0x57bc7c:0x474,_0x491ff0:0x6d9,_0x5da18e:0x53c,_0xb29300:0x69f,_0x2a3dc1:0x620,_0x12e743:0x6b6,_0x30dff7:0x784,_0x3c8feb:0x47e,_0x3f987d:0x4ef,_0x7aa448:0x6ad,_0x32d9d3:0x5d1,_0x2b5690:0x3da,_0x354ef9:0x4f5,_0x5d1627:0x6f3,_0xc277f4:0x4d7},_0x46a5d9={_0x1550b5:0x387,_0x54539d:0x578,_0x4e1463:0x5fd,_0x144cf8:0x48f,_0x54a6dc:0x285,_0x393493:0x478,_0x150655:0x143,_0x320e9a:0x290,_0x303519:0x470,_0x28a0b0:0x52b,_0x1b5ade:0x43a,_0x4f40b9:0x2be,_0x420cb5:0x547,_0x5756ea:0x19d,_0x53cfc5:0x1e5,_0x51f4fc:0x3a1,_0x11e68c:0x203,_0x141bd8:0x50a,_0x29e25d:0x6f7,_0x511be1:0x2fe,_0x428027:0x448,_0x5c8f30:0x365,_0x4a2d06:0x3d8},_0x10d7d2={_0x1ba7b3:0xa,_0x3950a8:0x179,_0x151b1f:0x9f,_0x33bd6c:0x47,_0x23a9bd:0x133},_0x31b7c2={_0x443652:0x58d},_0x224dc9={_0x3fb30b:0x29c,_0x542219:0x7b4},_0x482a9c={_0x15b2c0:0xe6},_0x25f6e0={_0xfab7c1:0x1b0,_0x445e85:0x16},_0x55de29={_0x507db4:0x4a3,_0x59995e:0x442,_0x212d30:0x674,_0x44e668:0x7a3,_0x5b848e:0x3d1,_0x8d5b7a:0x34a,_0x5b7e18:0x1ab,_0x1111b6:0xe,_0x17f280:0x213,_0x49c542:0x5,_0x416997:0xc,_0x4de3ea:0x55,_0x7de2b7:0x5e1,_0x2409a6:0x53b,_0x29ffdc:0x15a,_0x1812e3:0x34d,_0x2725a4:0x327,_0xbb0444:0x39f,_0x56eee2:0x460,_0x526694:0x345,_0x290ca0:0x153,_0x4a5125:0x251,_0x54a386:0x361},_0xa25e45={};_0xa25e45[_0x14b59e(_0xe3deff._0x1e4fa0,0x504)]=function(_0x3b1714,_0x30c98a){return _0x3b1714*_0x30c98a;},_0xa25e45[_0x4c0fe6(_0xe3deff._0x40cd5b,0x408)]=_0x4c0fe6(_0xe3deff._0x3197ca,_0xe3deff._0x2a3c1d);const _0xdcd9a5=_0xa25e45;if(this[_0x4c0fe6(0x427,_0xe3deff._0x5a9e25)]||this[_0x14b59e(_0xe3deff._0x4abc63,0x424)+'necting']||this[_0x4c0fe6(0x45b,0x363)+'pen']())return;function _0x14b59e(_0x337fca,_0x2f7ec6){return _0x180075(_0x337fca,_0x2f7ec6- -0x179);}this[_0x14b59e(_0xe3deff._0xb51251,0x424)+_0x14b59e(_0xe3deff._0x5415ee,_0xe3deff._0x1a9b0a)]=!![],this[_0x4c0fe6(0x3bf,_0xe3deff._0x57bc7c)+_0x14b59e(_0xe3deff._0x491ff0,0x56b)]+=0x1;const _0x1280c1=this[_0x4c0fe6(0x3bf,0x2df)+_0x4c0fe6(_0xe3deff._0x5da18e,_0xe3deff._0xb29300)],_0x19e633=buildRelayWsUrl(this[_0x4c0fe6(_0xe3deff._0x2a3dc1,0x4d8)][_0x4c0fe6(_0xe3deff._0x12e743,_0xe3deff._0x30dff7)]);function _0x4c0fe6(_0x5f532a,_0x1f0422){return _0x180075(_0x1f0422,_0x5f532a- -0x1a8);}this['log'](_0x14b59e(0x3fd,_0xe3deff._0x3c8feb)+_0x4c0fe6(_0xe3deff._0x3f987d,0x5eb)+_0x4c0fe6(_0xe3deff._0x7aa448,0x56c)+_0x1280c1+_0x4c0fe6(_0xe3deff._0x32d9d3,0x486)+redactRelayWsUrl(_0x19e633));const _0x19a861=new _0x49a626(_0x19e633,{'maxPayload':_0xdcd9a5[_0x4c0fe6(0x4d5,0x441)](0x19*0x400,0x400)});this[_0x4c0fe6(0x522,0x3d1)+_0x4c0fe6(0x6cc,0x560)]=_0x19a861,_0x19a861[_0x4c0fe6(_0xe3deff._0x2b5690,_0xe3deff._0x354ef9)]('open',()=>{function _0xf3c42f(_0xa248da,_0x1a4e31){return _0x14b59e(_0x1a4e31,_0xa248da- -0x85);}const _0x589154=(_0xf3c42f(_0x55de29._0x507db4,_0x55de29._0x59995e)+_0xf3c42f(_0x55de29._0x212d30,0x53a))[_0xf3c42f(0x6d5,_0x55de29._0x44e668)]('|');function _0x462470(_0x5798a6,_0x33e747){return _0x14b59e(_0x5798a6,_0x33e747- -0x593);}let _0x37935b=0x0;while(!![]){switch(_0x589154[_0x37935b++]){case'0':if(this[_0xf3c42f(_0x55de29._0x5b848e,_0x55de29._0x8d5b7a)]||this[_0x462470(-0x218,-0x42)+'ket']!==_0x19a861){_0x19a861['close']();return;}continue;case'1':this[_0x462470(_0x55de29._0x5b7e18,_0x55de29._0x1111b6)+_0x462470(_0x55de29._0x17f280,0x10d)]();continue;case'2':this[_0x462470(_0x55de29._0x49c542,-0x135)+_0x462470(-_0x55de29._0x416997,_0x55de29._0x4de3ea)+_0xf3c42f(_0x55de29._0x7de2b7,_0x55de29._0x2409a6)]=Date[_0x462470(-0xfd,-_0x55de29._0x29ffdc)]();continue;case'3':this[_0xf3c42f(0x3be,0x1df)]('relay\x20co'+_0xf3c42f(_0x55de29._0x1812e3,_0x55de29._0x2725a4)+'attempt='+_0x1280c1);continue;case'4':this[_0xf3c42f(_0x55de29._0xbb0444,_0x55de29._0x56eee2)+_0x462470(-0x8f,0x7f)]=![];continue;case'5':const _0x4f691e={};_0x4f691e['relayCon'+'nected']=!![],_0x4f691e[_0x462470(-_0x55de29._0x526694,-_0x55de29._0x290ca0)+'r']=null,this[_0xf3c42f(0x429,_0x55de29._0x4a5125)+_0xf3c42f(0x398,_0x55de29._0x54a386)](_0x4f691e);continue;}break;}}),_0x19a861['on'](_0x14b59e(0x59a,_0xe3deff._0x5d1627),(_0x7ce47c,_0x2d42c2)=>{function _0x314a55(_0x2e221d,_0x5190d3){return _0x4c0fe6(_0x5190d3- -0x499,_0x2e221d);}void this[_0x314a55(-_0x25f6e0._0xfab7c1,_0x25f6e0._0x445e85)+'layMessa'+'ge'](_0x7ce47c,_0x2d42c2);}),_0x19a861['on'](_0x4c0fe6(_0xe3deff._0xc277f4,0x5fd),()=>{function _0x2bab9f(_0xa667da,_0x42326b){return _0x14b59e(_0xa667da,_0x42326b- -0x1c2);}function _0x54d2a0(_0x297409,_0x1ba760){return _0x14b59e(_0x297409,_0x1ba760-_0x482a9c._0x15b2c0);}this[_0x2bab9f(0x3bc,_0x224dc9._0x3fb30b)+_0x54d2a0(_0x224dc9._0x542219,0x6ce)+'yMs']=Date[_0x2bab9f(0x101,0x277)]();}),_0x19a861['once']('error',_0x52144a=>{function _0x197b85(_0x1b526e,_0x1014ea){return _0x4c0fe6(_0x1b526e- -0x4f8,_0x1014ea);}function _0x50124d(_0x20c3da,_0x258992){return _0x4c0fe6(_0x258992- -_0x31b7c2._0x443652,_0x20c3da);}this[_0x50124d(-_0x10d7d2._0x1ba7b3,-_0x10d7d2._0x3950a8)](_0x50124d(-_0x10d7d2._0x151b1f,_0x10d7d2._0x33bd6c)+_0x50124d(_0x10d7d2._0x23a9bd,0xa1)+String(_0x52144a));}),_0x19a861[_0x4c0fe6(_0xe3deff._0x2b5690,0x201)](_0xdcd9a5['zHmlK'],(_0x11d0f0,_0x577d6c)=>{this['relaySoc'+_0x3be235(_0x46a5d9._0x1550b5,_0x46a5d9._0x54539d)]===_0x19a861&&(this['relaySoc'+_0x3be235(_0x46a5d9._0x4e1463,0x578)]=null);this['relayCon'+_0x3be235(0x395,_0x46a5d9._0x144cf8)]=![],this[_0x17e0bd(_0x46a5d9._0x54a6dc,0x3d2)+'tbeat']();function _0x17e0bd(_0x28aa85,_0x5dc92b){return _0x14b59e(_0x5dc92b,_0x28aa85- -0x2a6);}this[_0x17e0bd(0x2bf,_0x46a5d9._0x393493)+_0x17e0bd(0x221,0x188)+_0x3be235(_0x46a5d9._0x150655,_0x46a5d9._0x320e9a)]=null,this['gatewayC'+_0x3be235(_0x46a5d9._0x303519,_0x46a5d9._0x28a0b0)+_0x3be235(_0x46a5d9._0x1b5ade,0x246)]=null,this['updateSn'+'apshot']({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x11d0f0===0x3e8?null:'relay\x20cl'+_0x17e0bd(0x299,_0x46a5d9._0x4f40b9)+(_0x577d6c[_0x3be235(0x4df,_0x46a5d9._0x420cb5)]()||_0x11d0f0)}),this[_0x17e0bd(_0x46a5d9._0x5756ea,_0x46a5d9._0x53cfc5)](_0x17e0bd(_0x46a5d9._0x51f4fc,_0x46a5d9._0x11e68c)+_0x17e0bd(0x37b,0x301)+'ed\x20code='+_0x11d0f0+_0x3be235(_0x46a5d9._0x141bd8,0x3bd)+(_0x577d6c[_0x3be235(_0x46a5d9._0x29e25d,_0x46a5d9._0x420cb5)]()||_0x17e0bd(0x451,_0x46a5d9._0x511be1))),this[_0x3be235(0x535,_0x46a5d9._0x428027)+_0x3be235(0x36b,_0x46a5d9._0x5c8f30)]();function _0x3be235(_0x550f31,_0x51866a){return _0x14b59e(_0x550f31,_0x51866a- -0x183);}this[_0x3be235(0x43a,_0x46a5d9._0x4a2d06)+_0x17e0bd(0x26e,0x366)+'onnect']();});}async[_0x180075(0x46a,0x657)+_0x180075(0xa06,0x877)+'ge'](_0x2b5f54,_0x441ccf){const _0x213a55={_0x354418:0x7cc,_0x36ffb5:0x193,_0x5ed24f:0x46,_0x687d6a:0xdf,_0x101a94:0x50,_0x1ae54:0xf4,_0x3e8804:0xab,_0xec46b5:0x5a4,_0x52e99f:0x5c7,_0x40573e:0x64c,_0x155b40:0x5db,_0xfcc63:0x519,_0x596d7f:0x65e,_0x5bc653:0x53e,_0x120bf0:0x503,_0x1e9944:0x7,_0x233876:0x5d,_0x1dfcac:0x172,_0x5774d2:0x557,_0x269f23:0xff,_0x32992a:0xba,_0xaa702c:0x1b1,_0x24099b:0x50},_0xd87373={_0x504e20:0x29d},_0x5957f5={'lEFAE':_0x90d3fc(0x95b,_0x213a55._0x354418),'aMwlM':function(_0x39674e,_0x474d2f){return _0x39674e==_0x474d2f;},'RiNnL':function(_0x51f8e7,_0x308d83){return _0x51f8e7(_0x308d83);}};this['lastRela'+'yActivit'+'yMs']=Date[_0x1b48ed(0x48,-_0x213a55._0x36ffb5)]();if(_0x441ccf){this[_0x90d3fc(0x8d7,0x783)+'rQueueGa'+_0x1b48ed(-_0x213a55._0x5ed24f,-0xf7)+_0x1b48ed(_0x213a55._0x687d6a,-_0x213a55._0x101a94)]({'kind':_0x5957f5[_0x1b48ed(_0x213a55._0x1ae54,_0x213a55._0x3e8804)],'data':normalizeBinary(_0x2b5f54)});return;}const _0x2d7427=normalizeText(_0x2b5f54);if(_0x5957f5[_0x90d3fc(_0x213a55._0xec46b5,0x57a)](_0x2d7427,null))return;const _0x1679ae=_0x5957f5[_0x90d3fc(0x483,_0x213a55._0x52e99f)](parseControl,_0x2d7427);if(_0x1679ae){this[_0x90d3fc(_0x213a55._0x40573e,_0x213a55._0x155b40)+_0x1b48ed(-0x22e,-0x98)+'ol'](_0x1679ae[_0x90d3fc(_0x213a55._0xfcc63,_0x213a55._0x596d7f)],_0x1679ae[_0x90d3fc(_0x213a55._0x5bc653,_0x213a55._0x120bf0)]);return;}const _0x484609=parseConnectStartIdentity(_0x2d7427);_0x484609&&this['observeC'+'onnectSt'+_0x1b48ed(-0x30,0xd1)](_0x484609['id'],_0x484609['label']);const _0x33bf59={};function _0x90d3fc(_0x278091,_0x5a09cc){return _0x28051b(_0x278091,_0x5a09cc-_0xd87373._0x504e20);}function _0x1b48ed(_0x216e98,_0x3a0076){return _0x28051b(_0x216e98,_0x3a0076- -0x42c);}_0x33bf59[_0x1b48ed(_0x213a55._0x1e9944,0xf9)]=_0x1b48ed(_0x213a55._0x233876,-_0x213a55._0x1dfcac),_0x33bf59[_0x90d3fc(0x471,_0x213a55._0x5774d2)]=_0x2d7427,this[_0x1b48ed(-_0x213a55._0x269f23,_0x213a55._0x32992a)+_0x90d3fc(0x554,0x543)+'tewayMes'+_0x1b48ed(-_0x213a55._0xaa702c,-_0x213a55._0x24099b)](_0x33bf59);}[_0x28051b(0x28b,0x33e)+_0x180075(0x809,0x6ad)+'ol'](_0x2a6f30,_0x35b10a){const _0x46e0f5={_0x267fe6:0x10e,_0x5f3e9e:0x39,_0x3ec931:0x5e3,_0x2fd45e:0x537,_0x413060:0x3b9,_0x24c806:0x85d,_0x381fb9:0x1b5,_0x5820b5:0x531,_0x4298ec:0x74c,_0x483068:0x2e5,_0x4210af:0x53d,_0x1e0046:0x54c,_0x45ec3b:0x415,_0x38644c:0x185,_0x1a8ac5:0x12f,_0x29c055:0xc3,_0x30d0e8:0x44,_0x1d4437:0x569,_0x32b533:0x192,_0x2f8e89:0x44,_0x4a2cbd:0x94,_0x5176f2:0x4a,_0x13c407:0x324,_0x4a183a:0x531,_0x1b0314:0x44b,_0xe8ae7a:0x66,_0x1d4309:0x752,_0x2aac68:0x4ce,_0x540ecd:0x1c3,_0x4c9046:0x1af,_0x1a34e2:0x5e,_0x1a8990:0x22,_0x3d0af6:0xb0,_0x24cc59:0x6a6,_0x18f8db:0x6c6,_0x18a711:0x713,_0x271c2e:0x6e8,_0x444131:0x1da,_0x25fd00:0xd6,_0x2bf67d:0x6f4,_0xb670c9:0x842,_0x1cb71a:0x232,_0x3102e2:0x447,_0x427986:0x28f,_0x779a9f:0x671,_0x4158f1:0x238,_0xf5eb0e:0x563,_0x51587d:0x72c,_0x422413:0xda,_0x3f9fd9:0x43,_0x1fa469:0x17a,_0x32421d:0x5e0,_0x548b8f:0x618,_0x3e4c41:0x4e2,_0x10c3bd:0x205,_0x294584:0x2ab,_0x40f363:0xd2,_0x26cba6:0x563,_0x40d8b7:0x362,_0x186cea:0x43f,_0x74a37:0x4f8,_0x42d476:0x42b,_0x2ec227:0x6cd,_0xb96129:0x780,_0x4c61eb:0x4f1,_0x54c225:0x2e0,_0x26de2b:0x186,_0x368cc2:0x421,_0x461c71:0x1d9,_0x33bb96:0x629,_0x3e8524:0x460,_0x51e378:0x789,_0x22a2e1:0x4ff,_0x5f962c:0x3ce,_0x258141:0x2cf},_0x11b368={_0xc3d08:0x5fc},_0x59c2df={_0x1fd37f:0x175},_0x1f6f69={};function _0xd27c7f(_0x32963c,_0x6d0239){return _0x180075(_0x6d0239,_0x32963c- -_0x59c2df._0x1fd37f);}function _0x30558f(_0x116860,_0xcfa56c){return _0x180075(_0x116860,_0xcfa56c- -_0x11b368._0xc3d08);}_0x1f6f69[_0x30558f(_0x46e0f5._0x267fe6,-_0x46e0f5._0x5f3e9e)]=function(_0x405401,_0x38a5f4){return _0x405401==_0x38a5f4;},_0x1f6f69[_0x30558f(0x20d,0x2cb)]=function(_0xc693eb,_0x44a77f){return _0xc693eb===_0x44a77f;},_0x1f6f69['TaQln']=_0xd27c7f(0x3ce,0x200)+_0xd27c7f(_0x46e0f5._0x3ec931,0x452)+_0x30558f(0x25e,0x30d);const _0x5d4a0b=_0x1f6f69;if(_0x2a6f30==='client_c'+_0xd27c7f(0x6b2,0x54b)||_0x2a6f30===_0xd27c7f(_0x46e0f5._0x2fd45e,0x574)+_0x30558f(_0x46e0f5._0x413060,0x205)){const _0xfa30f2=this[_0xd27c7f(0x76c,_0x46e0f5._0x24c806)][_0x30558f(_0x46e0f5._0x381fb9,0x2e0)+_0xd27c7f(_0x46e0f5._0x5820b5,0x47d)],_0x33f87e=_0x35b10a??Math[_0xd27c7f(0x58b,_0x46e0f5._0x4298ec)](0x1,this[_0x30558f(0x170,_0x46e0f5._0x483068)][_0xd27c7f(0x767,0x772)+_0xd27c7f(_0x46e0f5._0x5820b5,_0x46e0f5._0x4210af)]),_0x2e2527=Boolean(this[_0xd27c7f(_0x46e0f5._0x1e0046,_0x46e0f5._0x45ec3b)+_0x30558f(-_0x46e0f5._0x38644c,0x5e)+_0x30558f(_0x46e0f5._0x1a8ac5,0xac)]);_0x33f87e>0x0&&_0x5d4a0b[_0x30558f(-_0x46e0f5._0x29c055,-0x39)](this[_0x30558f(0xfd,0xe2)+_0x30558f(-0x45,_0x46e0f5._0x30d0e8)+_0x30558f(0x170,-0x70)],null)&&(this[_0xd27c7f(_0x46e0f5._0x1d4437,0x716)+_0x30558f(_0x46e0f5._0x32b533,_0x46e0f5._0x2f8e89)+_0xd27c7f(0x417,0x3ab)]=Date[_0x30558f(_0x46e0f5._0x4a2cbd,-_0x46e0f5._0x5176f2)]());const _0x13c46d={};_0x13c46d[_0x30558f(_0x46e0f5._0x13c407,0x2e0)+_0xd27c7f(_0x46e0f5._0x4a183a,_0x46e0f5._0x1b0314)]=_0x33f87e,this['updateSn'+_0x30558f(0xa,-_0x46e0f5._0xe8ae7a)](_0x13c46d);if(_0x5d4a0b[_0xd27c7f(_0x46e0f5._0x1d4309,0x851)](_0x33f87e,0x0))this[_0xd27c7f(0x643,_0x46e0f5._0x2aac68)+'cesRecen'+'t'](),this[_0x30558f(_0x46e0f5._0x540ecd,0xd8)+_0x30558f(_0x46e0f5._0x4c9046,0x302)+_0x30558f(0x1ea,_0x46e0f5._0x1a34e2)](_0x30558f(-_0x46e0f5._0x1a8990,_0x46e0f5._0x3d0af6)+_0xd27c7f(_0x46e0f5._0x24cc59,0x63f)+'o');else{this['cancelGa'+_0xd27c7f(0x77c,_0x46e0f5._0x18f8db)+_0xd27c7f(_0x46e0f5._0x18a711,_0x46e0f5._0x271c2e)](_0x30558f(-_0x46e0f5._0x444131,-0xb9)+_0x30558f(-0x90,_0x46e0f5._0x25fd00)+_0xd27c7f(0x775,_0x46e0f5._0x2bf67d));shouldRecycleGatewayForFreshClient(_0xfa30f2,_0x33f87e,this[_0xd27c7f(0x663,_0x46e0f5._0xb670c9)+_0x30558f(0x311,_0x46e0f5._0x1cb71a)](),_0x2e2527)&&(this[_0xd27c7f(_0x46e0f5._0x3102e2,0x35b)]('gateway\x20'+'recycle\x20'+'requeste'+'d\x20for\x20fr'+_0x30558f(_0x46e0f5._0x427986,0x2c1)+_0xd27c7f(_0x46e0f5._0x779a9f,0x838)+'d'),this[_0xd27c7f(0x5cf,0x405)+_0x30558f(_0x46e0f5._0x4158f1,0x65)]());if(this[_0x30558f(0x2f6,0x1dc)+'yOpen']()){const _0xd5d1b3={};_0xd5d1b3[_0xd27c7f(_0x46e0f5._0xf5eb0e,_0x46e0f5._0x51587d)+'onnected']=!![],_0xd5d1b3[_0x30558f(_0x46e0f5._0x422413,-_0x46e0f5._0x3f9fd9)+'r']=null,this[_0x30558f(-_0x46e0f5._0x1fa469,0x2b)+_0xd27c7f(0x421,_0x46e0f5._0x32421d)](_0xd5d1b3),this[_0xd27c7f(0x447,0x489)](_0xd27c7f(0x422,0x440)+'reuse\x20op'+_0xd27c7f(_0x46e0f5._0x548b8f,_0x46e0f5._0x3e4c41)+'GatewayO'+'penMs='+this[_0x30558f(-_0x46e0f5._0x10c3bd,-0x75)+_0x30558f(_0x46e0f5._0x294584,_0x46e0f5._0x40f363)](this[_0xd27c7f(_0x46e0f5._0x26cba6,0x6bb)+_0x30558f(0x354,0x22b)+_0xd27c7f(0x3cd,_0x46e0f5._0x40d8b7)])+('\x20handsha'+_0xd27c7f(0x5e1,_0x46e0f5._0x186cea)+'d=')+this[_0xd27c7f(_0x46e0f5._0x74a37,_0x46e0f5._0x42d476)+'andshake'+_0xd27c7f(0x629,0x4a0)]);}this[_0xd27c7f(_0x46e0f5._0x2ec227,_0x46e0f5._0xb96129)+_0xd27c7f(0x4ca,0x384)+'nected']();}return;}if(_0x2a6f30===_0x5d4a0b[_0xd27c7f(0x590,0x6f4)]){const _0x700503=(_0xd27c7f(_0x46e0f5._0x4c61eb,0x64d)+'0')[_0xd27c7f(0x75e,0x84c)]('|');let _0x292165=0x0;while(!![]){switch(_0x700503[_0x292165++]){case'0':return;case'1':const _0x167aea={};_0x167aea[_0x30558f(0x32c,_0x46e0f5._0x54c225)+'unt']=0x0,this[_0x30558f(_0x46e0f5._0x26de2b,0x2b)+_0xd27c7f(_0x46e0f5._0x368cc2,0x286)](_0x167aea);continue;case'2':this['gatewayH'+_0x30558f(_0x46e0f5._0x461c71,0x1ca)+_0xd27c7f(_0x46e0f5._0x33bb96,_0x46e0f5._0x3e8524)]=![];continue;case'3':this[_0xd27c7f(0x643,0x76b)+'cesRecen'+'t']();continue;case'4':this[_0x30558f(-0x70,0xd8)+_0xd27c7f(_0x46e0f5._0x51e378,0x668)+_0xd27c7f(0x4e5,_0x46e0f5._0x22a2e1)](_0xd27c7f(_0x46e0f5._0x5f962c,_0x46e0f5._0x258141)+'isconnec'+'ted');continue;}break;}}}[_0x28051b(0x4d1,0x4e6)+_0x180075(0x49c,0x5bf)+_0x28051b(0x476,0x335)+'sage'](_0x3ddd0d){const _0x449c19={_0xe4c486:0xd9,_0x48ca65:0x7f,_0x5842b5:0x3ff,_0x15c482:0x4b,_0x16f0a1:0x636,_0x3bf38d:0x5c1,_0x591da3:0x459,_0x77649d:0x348,_0x9ed60b:0x26f,_0xd2787b:0x145,_0x39e7b4:0xbd,_0x5659c2:0x791,_0x1b1310:0x32e,_0x20b236:0x2cd,_0x232705:0x216,_0x3d3db8:0x65a,_0x24eb14:0x772,_0x2d7ba3:0x174,_0x40afba:0x13a,_0x5928e3:0x2dc,_0x4c74c9:0x67c,_0x40ed75:0x609,_0x389ea3:0x2b6,_0x15ed4e:0x3a0,_0x2bfeb6:0x4df,_0x2e58d7:0x584,_0x1ad6a6:0x1e8,_0x36caa1:0x46f,_0x1be80f:0x273,_0x5595f9:0x3df,_0x28b0cc:0x3ef,_0x483a13:0x2cc,_0xb99ee2:0x309,_0x4ed073:0x474,_0x32866a:0x5fb,_0x1b00a5:0x46e,_0x58dd3d:0x492,_0x413bac:0x3fc,_0x67e818:0x5bd,_0x2cf9e1:0x11b},_0x1c2736={_0x37dc47:0x8b},_0x21efa1={_0x5cf8da:0x1e1},_0xa57485={};function _0x584ee2(_0x23772c,_0x377baf){return _0x28051b(_0x377baf,_0x23772c- -_0x21efa1._0x5cf8da);}_0xa57485[_0x584ee2(0x3ff,0x5eb)]=_0x584ee2(_0x449c19._0xe4c486,_0x449c19._0x48ca65);const _0x25b922=_0xa57485,_0x5fce46=_0x3ddd0d[_0x511173(0x5b0,0x55b)]===_0x25b922[_0x584ee2(_0x449c19._0x5842b5,0x4c6)]&&isConnectHandshakeRequest(_0x3ddd0d[_0x511173(0x345,0x36e)]),_0x40ca15=this['gatewayS'+_0x584ee2(_0x449c19._0x15c482,0x4a)];if(!_0x40ca15||_0x40ca15[_0x511173(_0x449c19._0x16f0a1,0x776)+'te']!==_0x49a626[_0x511173(_0x449c19._0x3bf38d,_0x449c19._0x591da3)]){this[_0x584ee2(_0x449c19._0x77649d,_0x449c19._0x9ed60b)+_0x584ee2(_0x449c19._0xd2787b,_0x449c19._0x39e7b4)+'nected']();if(shouldDropStaleConnectAfterGatewayReopen(Boolean(_0x40ca15&&_0x40ca15[_0x511173(0x636,0x469)+'te']===_0x49a626[_0x511173(0x5c1,_0x449c19._0x5659c2)]),_0x5fce46)){this[_0x511173(_0x449c19._0x1b1310,0x20a)](_0x511173(_0x449c19._0x20b236,0x442)+_0x584ee2(0x34c,_0x449c19._0x232705)+_0x511173(_0x449c19._0x3d3db8,_0x449c19._0x24eb14)+_0x584ee2(0x3e4,0x571)+'way\x20reop'+_0x511173(0x447,0x410)+'ting\x20fre'+_0x584ee2(_0x449c19._0x2d7ba3,_0x449c19._0x40afba)+_0x511173(_0x449c19._0x5928e3,0x2af));return;}this[_0x511173(_0x449c19._0x4c74c9,_0x449c19._0x40ed75)+_0x511173(_0x449c19._0x389ea3,_0x449c19._0x15ed4e)+_0x511173(_0x449c19._0x2bfeb6,_0x449c19._0x2e58d7)+'e'](_0x3ddd0d);return;}function _0x511173(_0x2e5497,_0x142791){return _0x28051b(_0x142791,_0x2e5497-_0x1c2736._0x37dc47);}if(!this[_0x584ee2(0x173,_0x449c19._0x1ad6a6)+'andshake'+_0x584ee2(0x2a4,_0x449c19._0x36caa1)]){if(!_0x5fce46){this['pushPend'+_0x584ee2(0x4a,-0xe1)+_0x584ee2(_0x449c19._0x1be80f,0x126)+'e'](_0x3ddd0d);return;}this[_0x511173(_0x449c19._0x5595f9,_0x449c19._0x28b0cc)+_0x584ee2(_0x449c19._0x483a13,0x3d1)+_0x584ee2(0x2a4,0x26c)]=!![],this['log'](_0x511173(_0x449c19._0xb99ee2,_0x449c19._0x4ed073)+'handshak'+'e\x20starte'+'d\x20queued'+'='+this[_0x511173(0x523,0x3f1)+_0x511173(_0x449c19._0x32866a,_0x449c19._0x1b00a5)+_0x511173(_0x449c19._0x58dd3d,0x5a0)][_0x584ee2(0x2e4,_0x449c19._0x413bac)]);}this[_0x511173(0x3ec,_0x449c19._0x67e818)+_0x584ee2(0x148,_0x449c19._0x2cf9e1)](_0x3ddd0d);}['ensureGa'+_0x28051b(0x20e,0x326)+_0x180075(0x801,0x8f4)](){const _0x103b27={_0x12907a:0x2aa,_0x2cb741:0x2c2,_0x2caf84:0x418,_0x163116:0x26e,_0x3f24cb:0x258,_0x232cd6:0x3d7,_0x25c1aa:0x354,_0x1651d1:0x356,_0x1d8dcb:0x125,_0x39be92:0x20,_0x482f82:0x1b1,_0x4c14ad:0x1c,_0x463b81:0x23c,_0x4e8ac3:0x366,_0xdcb70:0x194,_0x5f1b80:0x12f,_0x4b5b8e:0x279,_0x5ada1c:0x3ab,_0x4542c2:0x46},_0x168fb8={_0x125e86:0x294,_0x758dda:0x22b,_0x39dd82:0x252,_0x5796d3:0x137,_0x478612:0x29,_0x373f9e:0x62,_0x26f2ae:0x151,_0x54900e:0x2aa,_0x3323b7:0x3cf,_0x18d902:0x18a,_0x4b0544:0x30b,_0x55f283:0x7b,_0x560c92:0x146,_0x105e05:0x24f,_0x204d62:0x2a4,_0x44da87:0x34f,_0x5b543f:0x2b5,_0x3b973e:0x19d,_0x39ae80:0x327,_0x5e9bf7:0x57e,_0x19f2ad:0x555,_0x3e411b:0x6b,_0x59ba62:0x133,_0x228099:0x3eb,_0x2b2e95:0x70,_0x4cb6c7:0x5c,_0x341f14:0x1b8,_0x41879f:0x4fd},_0x19421e={_0x31bb6a:0x97},_0x12319b={_0x3c98bb:0x2c0},_0x1fb03e={_0x16565b:0x59,_0x486058:0x5ba},_0x2498e7={_0x47e9dc:0x3ae,_0x14863e:0x392},_0x2324a7={_0x4769d:0x19e},_0x39d0eb={_0x39699d:0x334,_0x3d17e7:0x1a9,_0x5b7969:0x2c6,_0x4dcd33:0x376,_0x447d9d:0x2bc,_0x141663:0x172,_0x2cec9f:0x5f,_0x29415e:0x40b,_0x25f8b3:0x390,_0x14c79c:0x19b,_0x3a617c:0x114,_0x15f746:0x542,_0x505683:0x3c0,_0x3ea408:0x632,_0x12c7af:0x507,_0x287fc4:0x42f,_0x4b6b29:0x517,_0x225b6b:0x2f,_0x4a45a4:0x283,_0x447e04:0x519,_0x739ec9:0x37e,_0x5b2d51:0x660,_0x3f9955:0x3f2,_0x53267d:0x1f,_0x3ab3a3:0x17b,_0x3ee558:0x312},_0x4622fd={};_0x4622fd['FAnHp']=function(_0x40080a,_0x2dd362){return _0x40080a===_0x2dd362;},_0x4622fd['PkYDt']=_0x32906d(0x2b9,0x3c4);const _0xc1157d=_0x4622fd;if(this['stopped']||!this['isRelayO'+_0x32906d(_0x103b27._0x12907a,0x186)]()||this[_0x530043(_0x103b27._0x2cb741,0x1c4)+'onnectin'+'g']||this[_0x32906d(0x225,0x1f6)+_0x530043(_0x103b27._0x2caf84,0x50d)]()||!this[_0x32906d(_0x103b27._0x163116,0x1ba)+'ayDemand']())return;this[_0x32906d(_0x103b27._0x3f24cb,0x23c)+_0x530043(0x4db,0x31a)+_0x530043(0x472,_0x103b27._0x232cd6)]('gateway_'+_0x32906d(_0x103b27._0x25c1aa,0x4bf)+_0x530043(0x23c,0x5e)+_0x32906d(_0x103b27._0x1651d1,0x48c)),this[_0x32906d(_0x103b27._0x1d8dcb,_0x103b27._0x39be92)+_0x32906d(_0x103b27._0x482f82,0x358)+'g']=!![],this['log'](_0x32906d(-_0x103b27._0x4c14ad,0x107)+'connect\x20'+'start\x20ur'+'l='+this['options'][_0x32906d(0x194,_0x103b27._0x463b81)+'rl']);const _0x25f7f0={};_0x25f7f0['maxPaylo'+'ad']=0x19*0x400*0x400;const _0x52722b=new _0x49a626(this[_0x32906d(0x215,_0x103b27._0x4e8ac3)][_0x32906d(_0x103b27._0xdcb70,0x1d8)+'rl'],_0x25f7f0);this[_0x530043(0x39a,0x4dd)+_0x530043(_0x103b27._0x5f1b80,-0x20)]=_0x52722b,_0x52722b[_0x32906d(-0x31,0x143)](_0x32906d(_0x103b27._0x4b5b8e,0x148),()=>{const _0xc14e49={_0x20ae97:0x3ec},_0x5a733a={_0x22d03d:0x56};function _0x39f137(_0x21fd5f,_0x5cd2a1){return _0x32906d(_0x5cd2a1-_0x5a733a._0x22d03d,_0x21fd5f);}function _0x56eb3c(_0x5b08c2,_0x2b89da){return _0x32906d(_0x2b89da-_0xc14e49._0x20ae97,_0x5b08c2);}const _0x2bf5e0=(_0x39f137(0x407,_0x39d0eb._0x39699d)+_0x39f137(_0x39d0eb._0x3d17e7,0x25c))[_0x39f137(_0x39d0eb._0x5b7969,_0x39d0eb._0x4dcd33)]('|');let _0x3bb844=0x0;while(!![]){switch(_0x2bf5e0[_0x3bb844++]){case'0':this[_0x39f137(0x123,0x110)+_0x39f137(_0x39d0eb._0x447d9d,0x269)+_0x39f137(0x3a1,0x241)]=![];continue;case'1':this['flushPen'+_0x39f137(-_0x39d0eb._0x141663,0x50)+_0x39f137(-0x5d,0x71)+_0x56eb3c(0x593,0x509)]();continue;case'2':this[_0x39f137(-0xd2,_0x39d0eb._0x2cec9f)]('gateway\x20'+_0x39f137(0x30,-0x3)+_0x39f137(0x77,0x43)+_0x39f137(_0x39d0eb._0x29415e,_0x39d0eb._0x25f8b3)+_0x39f137(_0x39d0eb._0x14c79c,_0x39d0eb._0x3a617c)+this[_0x56eb3c(_0x39d0eb._0x15f746,_0x39d0eb._0x505683)+_0x56eb3c(_0x39d0eb._0x3ea408,_0x39d0eb._0x12c7af)](this[_0x56eb3c(_0x39d0eb._0x287fc4,_0x39d0eb._0x4b6b29)+'mandStar'+_0x39f137(0x10c,_0x39d0eb._0x225b6b)]));continue;case'3':this[_0x56eb3c(0x5c3,0x511)+'onnected'+_0x39f137(-0xa4,-0x1b)]=Date[_0x56eb3c(_0x39d0eb._0x4a45a4,0x3eb)]();continue;case'4':if(this[_0x56eb3c(0x479,0x408)]||this[_0x39f137(0x1da,0x253)+_0x56eb3c(_0x39d0eb._0x447e04,_0x39d0eb._0x739ec9)]!==_0x52722b){_0x52722b[_0x56eb3c(0x33d,0x432)]();return;}continue;case'5':const _0x316e49={};_0x316e49['gatewayC'+_0x56eb3c(0x6e6,_0x39d0eb._0x5b2d51)]=!![],_0x316e49[_0x56eb3c(0x4df,_0x39d0eb._0x3f9955)+'r']=null,this['updateSn'+_0x56eb3c(_0x39d0eb._0x4dcd33,0x3cf)](_0x316e49);continue;case'6':this[_0x39f137(_0x39d0eb._0x53267d,_0x39d0eb._0x3ab3a3)+_0x39f137(_0x39d0eb._0x3ee558,0x207)+'g']=![];continue;}break;}}),_0x52722b['on'](_0xc1157d[_0x530043(_0x103b27._0x5ada1c,0x1cd)],(_0x40f8ca,_0x2f65be)=>{function _0x5098e3(_0x474304,_0x2310ce){return _0x32906d(_0x474304- -_0x2324a7._0x4769d,_0x2310ce);}function _0x2d566e(_0x46cedf,_0x405a99){return _0x32906d(_0x405a99-0x1cc,_0x46cedf);}this[_0x2d566e(0x388,_0x2498e7._0x47e9dc)+_0x2d566e(_0x2498e7._0x14863e,0x267)+'sage'](_0x40f8ca,_0x2f65be);});function _0x32906d(_0x3da36f,_0x531cdb){return _0x28051b(_0x531cdb,_0x3da36f- -0x29a);}function _0x530043(_0x4610b5,_0x41941b){return _0x28051b(_0x41941b,_0x4610b5- -0xfd);}_0x52722b['once']('error',_0x189ccc=>{const _0x45b05b={_0x4fae9c:0x439};function _0x3452d3(_0x547107,_0x423fc4){return _0x530043(_0x547107- -0x14d,_0x423fc4);}function _0x2afdca(_0x5193e4,_0x241877){return _0x530043(_0x241877-_0x45b05b._0x4fae9c,_0x5193e4);}this[_0x3452d3(_0x1fb03e._0x16565b,0x1d0)]('gateway\x20'+_0x2afdca(_0x1fb03e._0x486058,0x5ca)+String(_0x189ccc));}),_0x52722b['once'](_0x32906d(_0x103b27._0x4542c2,0x10d),(_0x51a22f,_0x2fd2c0)=>{_0xc1157d[_0x3cc346(0x2f9,0x328)](this[_0x3cc346(_0x168fb8._0x125e86,_0x168fb8._0x758dda)+_0x4ca5c9(_0x168fb8._0x39dd82,0x360)],_0x52722b)&&(this[_0x3cc346(0x294,_0x168fb8._0x5796d3)+_0x3cc346(_0x168fb8._0x478612,_0x168fb8._0x373f9e)]=null);function _0x4ca5c9(_0x3ef78e,_0x288718){return _0x32906d(_0x3ef78e-_0x12319b._0x3c98bb,_0x288718);}this['gatewayC'+_0x3cc346(0x248,0x344)+'g']=![],this[_0x3cc346(_0x168fb8._0x26f2ae,0x8)+_0x3cc346(_0x168fb8._0x54900e,_0x168fb8._0x3323b7)+'Started']=![];function _0x3cc346(_0x46ae41,_0x236403){return _0x32906d(_0x46ae41-_0x19421e._0x31bb6a,_0x236403);}this['gatewayC'+'onnected'+'AtMs']=null,this['updateSn'+_0x3cc346(0x7a,_0x168fb8._0x18d902)]({'gatewayConnected':![],'lastError':_0x51a22f===0x3e8?this[_0x3cc346(0x3c5,0x271)][_0x4ca5c9(0x2c6,_0x168fb8._0x4b0544)+'r']:_0x3cc346(_0x168fb8._0x55f283,-0xfc)+_0x3cc346(0x140,0x137)+(_0x2fd2c0[_0x3cc346(0x327,_0x168fb8._0x560c92)]()||_0x51a22f)}),this[_0x4ca5c9(0x2c9,_0x168fb8._0x105e05)](_0x4ca5c9(_0x168fb8._0x204d62,0x285)+_0x4ca5c9(0x305,0x232)+_0x3cc346(_0x168fb8._0x44da87,_0x168fb8._0x5b543f)+'e='+_0x51a22f+_0x3cc346(_0x168fb8._0x3b973e,0x31c)+(_0x2fd2c0[_0x3cc346(_0x168fb8._0x39ae80,0x165)]()||_0x4ca5c9(0x57d,_0x168fb8._0x5e9bf7))+(_0x4ca5c9(0x31b,0x485)+_0x4ca5c9(0x4ca,0x55e)+_0x4ca5c9(0x366,_0x168fb8._0x19f2ad))+this[_0x3cc346(_0x168fb8._0x3e411b,0x1a9)+_0x3cc346(0x1b2,_0x168fb8._0x59ba62)](this[_0x4ca5c9(_0x168fb8._0x228099,0x5bc)+_0x3cc346(0x124,-0x50)+_0x3cc346(_0x168fb8._0x2b2e95,_0x168fb8._0x4cb6c7)])),this[_0x3cc346(_0x168fb8._0x341f14,0x3c)+'GatewayR'+_0x4ca5c9(0x3d4,_0x168fb8._0x41879f)]();});}[_0x180075(0x6d5,0x795)+_0x180075(0x6b0,0x64e)+_0x180075(0x5fd,0x6f5)](_0x2a5bdf,_0x34f164){const _0x18fced={_0x296160:0x266,_0x3258ee:0x3a4,_0x2027a8:0x27f,_0x27ed7f:0x613,_0x24866d:0x23d,_0x544a76:0x2f0,_0xb06130:0x28f,_0x4d4727:0x106,_0xd6880e:0x198,_0x31a168:0x1ca};function _0x53c309(_0xa1c12,_0xf864fa){return _0x180075(_0xa1c12,_0xf864fa- -0x60e);}const _0x205f06={'dsFqo':function(_0x216ed6,_0xfa079b){return _0x216ed6(_0xfa079b);}},_0x102148=this['relaySoc'+_0x53c309(0x314,_0x18fced._0x296160)];if(!_0x102148||_0x102148['readySta'+'te']!==_0x49a626[_0xb6f6bc(_0x18fced._0x3258ee,_0x18fced._0x2027a8)])return;if(_0x34f164){_0x102148[_0xb6f6bc(0x462,_0x18fced._0x27ed7f)](normalizeBinary(_0x2a5bdf));return;}const _0x223c55=normalizeText(_0x2a5bdf);if(_0x223c55==null)return;const _0x5b1faa=parsePairingRequestFromError(_0x223c55);_0x5b1faa&&this[_0xb6f6bc(0x117,0xc)+_0x53c309(0x298,_0x18fced._0x24866d)+'quest'](_0x5b1faa);const _0x792328=_0x205f06['dsFqo'](parsePairResolvedEvent,_0x223c55);_0x792328&&this[_0xb6f6bc(_0x18fced._0x544a76,0x49f)+_0x53c309(0x155,0x160)+_0xb6f6bc(0x3ff,_0x18fced._0xb06130)](_0x792328[_0xb6f6bc(0xdd,-0x9b)+'d'],_0x792328[_0xb6f6bc(_0x18fced._0x4d4727,_0x18fced._0xd6880e)]);function _0xb6f6bc(_0x26fd6f,_0x2283c3){return _0x180075(_0x2283c3,_0x26fd6f- -0x4ab);}_0x102148[_0x53c309(_0x18fced._0x31a168,0x2ff)](_0x223c55);}[_0x180075(0x7cd,0x6e9)+'dingGate'+'wayMessa'+_0x180075(0x643,0x6d0)](){const _0x43ebc8={_0xd20343:0x769,_0x17aa44:0x6c0,_0x549fc0:0x10d,_0x33518c:0x7c,_0x57921a:0x168,_0x249002:0xd5,_0x5bdbdc:0x355,_0x4fb8ca:0x469,_0x3a5207:0x5c2,_0x27bada:0x6ec,_0x3198ff:0x3cf,_0x1ba21c:0xd1,_0x8f0c91:0x154,_0x32d9cd:0x37,_0xc6b60e:0x122,_0x110c29:0x38d},_0x302148={_0x1531dd:0x115},_0xdc36d5=this[_0x39270d(0x10c,0x1b5)+_0x244708(0x18a,0x341)];if(!_0xdc36d5||_0xdc36d5[_0x244708(_0x43ebc8._0xd20343,_0x43ebc8._0x17aa44)+'te']!==_0x49a626['OPEN'])return;const _0x3b4580=[],_0x34ecb3=[...this[_0x39270d(_0x43ebc8._0x549fc0,0x187)+'atewayMe'+_0x39270d(_0x43ebc8._0x33518c,_0x43ebc8._0x57921a)]];function _0x244708(_0x14fda6,_0x1f2572){return _0x28051b(_0x14fda6,_0x1f2572-_0x302148._0x1531dd);}this[_0x39270d(_0x43ebc8._0x549fc0,_0x43ebc8._0x249002)+_0x244708(0x639,0x685)+_0x39270d(0x7c,-0xdd)]=[];function _0x39270d(_0x565e08,_0x17b59d){return _0x28051b(_0x17b59d,_0x565e08- -0x38b);}for(const _0x174333 of _0x34ecb3){if(!this[_0x244708(_0x43ebc8._0x5bdbdc,_0x43ebc8._0x4fb8ca)+_0x244708(0x6c0,_0x43ebc8._0x3a5207)+_0x39270d(0xfa,0x21b)]){if(_0x174333[_0x244708(_0x43ebc8._0x27bada,0x63a)]!==_0x244708(0x2e0,_0x43ebc8._0x3198ff)||!isConnectHandshakeRequest(_0x174333[_0x39270d(-_0x43ebc8._0x1ba21c,-_0x43ebc8._0x8f0c91)])){_0x3b4580['push'](_0x174333);continue;}this[_0x39270d(-_0x43ebc8._0x32d9cd,0x8b)+_0x39270d(_0x43ebc8._0xc6b60e,0x236)+'Started']=!![];}this[_0x39270d(-0x2a,0x11f)+_0x39270d(-0x62,0xce)](_0x174333);}this['pendingG'+'atewayMe'+_0x244708(_0x43ebc8._0x110c29,0x51c)]=_0x3b4580;}['sendToGa'+'teway'](_0x40a9ee){const _0xd91cdc={_0x5be966:0x731,_0x471cb5:0x10b,_0x76bef5:0x1bb,_0xfd93d:0x7c,_0x5914ac:0x310,_0x1178a0:0x31},_0x5468f9=this['gatewayS'+_0x90d64b(0x323,0x427)];if(!_0x5468f9||_0x5468f9['readySta'+'te']!==_0x49a626[_0x90d64b(0x7b2,_0xd91cdc._0x5be966)]){this['pushPend'+_0x4691fc(-_0xd91cdc._0x471cb5,-0x71)+_0x90d64b(0x6a8,0x64f)+'e'](_0x40a9ee);return;}function _0x4691fc(_0x1eca28,_0x1e1d11){return _0x28051b(_0x1e1d11,_0x1eca28- -0x336);}function _0x90d64b(_0x5d4c74,_0x19c5f4){return _0x28051b(_0x5d4c74,_0x19c5f4-0x1fb);}if(_0x40a9ee[_0x4691fc(0x1ef,0x56)]===_0x4691fc(-0x7c,-_0xd91cdc._0x76bef5)){_0x5468f9[_0x4691fc(0x2be,0x1f8)](_0x40a9ee[_0x4691fc(-_0xd91cdc._0xfd93d,0x1f)]);return;}_0x5468f9[_0x4691fc(0x2be,_0xd91cdc._0x5914ac)](_0x40a9ee[_0x4691fc(_0xd91cdc._0x1178a0,0x18a)]);}[_0x180075(0x4ad,0x537)+_0x180075(0xa23,0x885)+'st'](_0x1c4247,_0x5082fa){const _0x4b853b={_0x474141:0x66c,_0x22d8bc:0x70e,_0x3f29ac:0x715,_0x5bf670:0x688,_0x4849fc:0x6b5,_0x559991:0x58e,_0x2bd91e:0x3f1,_0x2a5fb3:0x477,_0x2e0b81:0x6f8,_0x3bc1a9:0x54f,_0x4ff90e:0x39e},_0xe13b73={_0x205a12:0x1e2},_0xad0a27={_0x4b92c7:0x2b0};function _0x4a1762(_0x4d33ec,_0x2af002){return _0x180075(_0x4d33ec,_0x2af002- -_0xad0a27._0x4b92c7);}const _0x2f8b28={'IBXax':function(_0x252cc1){return _0x252cc1();}};function _0x15d48f(_0x5dc772,_0x563533){return _0x180075(_0x563533,_0x5dc772- -_0xe13b73._0x205a12);}const _0x3c7c86=JSON[_0x15d48f(_0x4b853b._0x474141,0x7b3)+'y']({'type':'req','id':_0x15d48f(_0x4b853b._0x22d8bc,0x83e)+_0x2f8b28[_0x15d48f(_0x4b853b._0x3f29ac,_0x4b853b._0x5bf670)](_0x5c4ac6),'method':_0x1c4247,'params':_0x5082fa}),_0x183ce1={};_0x183ce1[_0x4a1762(_0x4b853b._0x4849fc,_0x4b853b._0x559991)]=_0x15d48f(_0x4b853b._0x2bd91e,0x4e7),_0x183ce1[_0x15d48f(0x3f1,_0x4b853b._0x2a5fb3)]=_0x3c7c86,this[_0x4a1762(_0x4b853b._0x2e0b81,_0x4b853b._0x3bc1a9)+_0x4a1762(0x263,0x30f)+_0x4a1762(0x30d,_0x4b853b._0x4ff90e)+'sage'](_0x183ce1);}[_0x28051b(0x4c7,0x42b)+_0x180075(0x783,0x661)](){const _0x20ebdc={_0x42eba3:0x52b,_0x1d893a:0x704,_0x8291f7:0x400,_0x19e220:0x4bc,_0x4b2624:0x675,_0x2814f7:0x208,_0x412680:0x302,_0x1326d9:0x410,_0x10c239:0x3f0,_0x21c55b:0x3da,_0xf21863:0x42f,_0xb6bca2:0x4bb};function _0x1edb31(_0x5d0309,_0x453d66){return _0x180075(_0x453d66,_0x5d0309- -0x4ae);}function _0x45c6eb(_0x58021d,_0x498aac){return _0x180075(_0x58021d,_0x498aac- -0x1b2);}const _0xcb2028=(_0x45c6eb(_0x20ebdc._0x42eba3,0x623)+'5|1')[_0x45c6eb(_0x20ebdc._0x1d893a,0x721)]('|');let _0x20027b=0x0;while(!![]){switch(_0xcb2028[_0x20027b++]){case'0':this['gatewayC'+_0x1edb31(0x2b6,_0x20ebdc._0x8291f7)+'g']=![];continue;case'1':this[_0x1edb31(0x22a,0x15d)+_0x45c6eb(_0x20ebdc._0x19e220,_0x20ebdc._0x4b2624)+_0x1edb31(0x94,_0x20ebdc._0x2814f7)]=null;continue;case'2':this[_0x1edb31(_0x20ebdc._0x412680,0x474)+'ocket']=null;continue;case'3':this[_0x1edb31(0x302,_0x20ebdc._0x1326d9)+_0x45c6eb(_0x20ebdc._0x10c239,0x393)]?.[_0x45c6eb(0x415,0x447)]();continue;case'4':this[_0x1edb31(0x35d,0x453)+_0x1edb31(0x443,0x402)+_0x1edb31(_0x20ebdc._0x21c55b,_0x20ebdc._0xf21863)]();continue;case'5':this[_0x45c6eb(0x673,_0x20ebdc._0xb6bca2)+_0x45c6eb(0x4e9,0x614)+'Started']=![];continue;}break;}}[_0x180075(0x7c7,0x6d4)+_0x180075(0x78e,0x8fe)+'dleClose'](_0x44e796){const _0x2518d3={_0x17d28b:0x82,_0x336268:0x1b8,_0xc77a0:0x2fd,_0x21621e:0x2b8,_0x2e9c7a:0x2a0,_0x215c47:0x66e,_0x39a993:0x675,_0xd8711b:0x397,_0x5c91af:0x1fd,_0x4fd9d3:0x3ea,_0x34c85e:0x135,_0x1b20a4:0x231,_0x26475e:0x2e6,_0x30379d:0x33c,_0x149570:0x39a,_0x1bbbbd:0x14a,_0x3f3153:0x480,_0x684d35:0x331,_0x33fcf8:0x81,_0x484c99:0x473,_0x320a02:0x136,_0x2db3fd:0xd8,_0x441d7f:0x567,_0x1d14ad:0x3c1,_0x256e35:0x5a2,_0x523ea0:0x504,_0x72a51e:0x549,_0x2e17f5:0x450,_0x551baa:0x4de,_0x2b51be:0x587,_0x1883bd:0xca,_0xf77330:0x6c,_0x57dab0:0xa5,_0x36ae1f:0x8a,_0x56fca2:0x12e,_0x38c0ca:0x2fc,_0x25030c:0x2d,_0x57ebf0:0x1c5,_0x2ea151:0x3f2,_0x5d79dc:0x1e6,_0x331696:0xf3,_0x3e78a3:0x299,_0x1cb9d9:0x244,_0x2965ff:0x4a1,_0x1b8661:0x3c2,_0x4dfe2c:0x167,_0x576d73:0x31b,_0x5746a3:0x124,_0x1b18a4:0x95,_0x42aec0:0x412,_0x28ecbc:0x2bd,_0x4e0313:0x168},_0x4eebb0={_0x5541d2:0x68a,_0x3af8fc:0x5e9,_0x5bb368:0x4e4,_0x280376:0x284,_0x179ccb:0x3ab,_0x5365a1:0xf5,_0x23e69c:0xf5,_0x592286:0x687,_0x5dde60:0x587,_0x3eccbb:0x597,_0x3b57c8:0x180,_0x28bdc3:0x1bc,_0x284c9a:0x895,_0xc39d54:0x13d,_0x59033e:0x1d1,_0x480371:0x49e,_0x26a5ef:0x5fe,_0x54daf3:0x28d,_0x5486e7:0x57,_0x5b9c91:0x29,_0x3b8090:0x582,_0x3c78ba:0x4bc,_0x887c98:0x580},_0x22cffc={_0x16f8f0:0x4f2};function _0x5375c7(_0x55ffdc,_0x3f8b65){return _0x180075(_0x55ffdc,_0x3f8b65- -_0x22cffc._0x16f8f0);}const _0x2903db={'Hvlwy':'gateway\x20'+_0x5375c7(0xdc,0x12e)+_0x5375c7(_0x2518d3._0x17d28b,0x6f)+_0x5375c7(_0x2518d3._0x336268,0x114)+'se\x20clien'+_0x5375c7(_0x2518d3._0xc77a0,0x18f)+'\x20returne'+'d','QsGtN':function(_0x32c661,_0xd3b58f){return _0x32c661(_0xd3b58f);}};function _0x395655(_0x5c13e1,_0x6ed3ec){return _0x180075(_0x6ed3ec,_0x5c13e1- -0x13c);}this['gatewayR'+_0x5375c7(0x2ce,_0x2518d3._0x21621e)+'r']&&(_0x2903db['QsGtN'](clearTimeout,this[_0x5375c7(0x290,_0x2518d3._0x2e9c7a)+_0x5375c7(0x19b,0x2b8)+'r']),this[_0x5375c7(0x284,_0x2518d3._0x2e9c7a)+_0x395655(_0x2518d3._0x215c47,0x528)+'r']=null);this[_0x395655(_0x2518d3._0x39a993,0x668)+_0x5375c7(0x48a,_0x2518d3._0xd8711b)+_0x5375c7(0x1cd,0x22e)]=[];const _0x25f74b={};_0x25f74b[_0x5375c7(_0x2518d3._0x5c91af,_0x2518d3._0x4fd9d3)+'unt']=0x0,this[_0x5375c7(0x1d3,_0x2518d3._0x34c85e)+_0x395655(0x45a,0x496)](_0x25f74b);if(!this[_0x5375c7(_0x2518d3._0x1b20a4,_0x2518d3._0x26475e)+_0x5375c7(0x1ed,_0x2518d3._0x30379d)]()&&!this[_0x5375c7(_0x2518d3._0x149570,0x1e6)+_0x5375c7(_0x2518d3._0x1bbbbd,0x272)+'g']){this[_0x395655(_0x2518d3._0x3f3153,_0x2518d3._0x684d35)](_0x5375c7(_0x2518d3._0x33fcf8,0xa5)+_0x395655(_0x2518d3._0x484c99,0x3d2)+'h\x20no\x20act'+_0x5375c7(_0x2518d3._0x320a02,_0x2518d3._0x2db3fd)+_0x5375c7(_0x2518d3._0x441d7f,_0x2518d3._0x1d14ad)+'n='+_0x44e796),this[_0x395655(_0x2518d3._0x256e35,0x580)+_0x395655(_0x2518d3._0x523ea0,_0x2518d3._0x72a51e)+_0x395655(_0x2518d3._0x2e17f5,_0x2518d3._0x551baa)]=null;return;}if(this[_0x395655(0x585,0x54a)+_0x395655(0x51e,0x629)+_0x395655(0x56c,_0x2518d3._0x2b51be)]){this[_0x5375c7(0x220,_0x2518d3._0x1883bd)](_0x5375c7(-_0x2518d3._0xf77330,_0x2518d3._0x57dab0)+_0x5375c7(_0x2518d3._0x36ae1f,_0x2518d3._0x56fca2)+'se\x20alrea'+_0x5375c7(0x1ae,_0x2518d3._0x38c0ca)+_0x5375c7(0xa9,0xbc)+_0x5375c7(_0x2518d3._0x25030c,0x130)+_0x44e796);return;}const _0x334d10=this['options'][_0x395655(0x585,0x404)+_0x5375c7(_0x2518d3._0x57ebf0,0x6b)+_0x5375c7(0x586,_0x2518d3._0x2ea151)+_0x5375c7(_0x2518d3._0x5d79dc,_0x2518d3._0x331696)]??GATEWAY_IDLE_DISCONNECT_DELAY_MS;this[_0x395655(0x480,_0x2518d3._0x3e78a3)](_0x5375c7(_0x2518d3._0x1cb9d9,0xa5)+_0x5375c7(-0x11,0x12e)+_0x5375c7(_0x2518d3._0x2965ff,_0x2518d3._0x1b8661)+'uled\x20del'+_0x5375c7(_0x2518d3._0x4dfe2c,_0x2518d3._0x576d73)+_0x334d10+_0x5375c7(0x253,0x1c7)+_0x44e796+(_0x5375c7(0xbb,_0x2518d3._0x5746a3)+'tewayOpe'+'nMs=')+this[_0x5375c7(0xa6,_0x2518d3._0x1b18a4)+'ince'](this[_0x5375c7(0x31e,0x1e6)+_0x5375c7(_0x2518d3._0x42aec0,0x335)+'AtMs'])),this['gatewayI'+_0x5375c7(_0x2518d3._0x28ecbc,_0x2518d3._0x4e0313)+'Timer']=setTimeout(()=>{const _0x2a7bc1={_0x289b48:0x513},_0x5a6928=(_0x5853f6(_0x4eebb0._0x5541d2,_0x4eebb0._0x3af8fc)+_0x5853f6(0x345,_0x4eebb0._0x5bb368))[_0x32fee9(_0x4eebb0._0x280376,_0x4eebb0._0x179ccb)]('|');function _0x32fee9(_0x37d0e1,_0x3abc34){return _0x395655(_0x37d0e1- -_0x2a7bc1._0x289b48,_0x3abc34);}function _0x5853f6(_0x135d09,_0x44efa7){return _0x395655(_0x44efa7-0x62,_0x135d09);}let _0x599de4=0x0;while(!![]){switch(_0x5a6928[_0x599de4++]){case'0':this[_0x32fee9(_0x4eebb0._0x5365a1,_0x4eebb0._0x23e69c)+_0x5853f6(_0x4eebb0._0x592286,_0x4eebb0._0x5dde60)]();continue;case'1':this[_0x5853f6(_0x4eebb0._0x3eccbb,0x4e2)](_0x5853f6(0x3fb,0x4bd)+_0x32fee9(_0x4eebb0._0x3b57c8,0x111)+_0x32fee9(0x24,_0x4eebb0._0x28bdc3)+'e\x20delay\x20'+'reason='+_0x44e796);continue;case'2':if(this[_0x5853f6(_0x4eebb0._0x284c9a,0x747)+_0x32fee9(0xc4,-0xe8)]()){this['log'](_0x2903db[_0x32fee9(_0x4eebb0._0xc39d54,_0x4eebb0._0x59033e)]);return;}continue;case'3':const _0x422a94={};_0x422a94[_0x5853f6(_0x4eebb0._0x480371,_0x4eebb0._0x26a5ef)+'onnected']=![],_0x422a94[_0x32fee9(_0x4eebb0._0x54daf3,0x3da)+_0x32fee9(_0x4eebb0._0x5486e7,-0x176)]=0x0,this[_0x32fee9(-0x28,-_0x4eebb0._0x5b9c91)+_0x5853f6(_0x4eebb0._0x3b8090,_0x4eebb0._0x3c78ba)](_0x422a94);continue;case'4':this[_0x5853f6(0x731,0x5e7)+_0x5853f6(0x3d2,_0x4eebb0._0x887c98)+'Timer']=null;continue;case'5':this['clientDe'+'mandStar'+_0x32fee9(-0xc3,0x6f)]=null;continue;}break;}},_0x334d10);}['cancelGa'+_0x180075(0xa9b,0x8f1)+_0x180075(0x860,0x888)](_0x3cd5d4){const _0x39ccb1={_0x3f86a1:0x529,_0x10d776:0x62f,_0x5985cb:0x4e1,_0x49a939:0x403,_0x4be4a6:0x3b5,_0x472016:0x45f,_0x20d562:0x52f,_0x3f0222:0x548,_0x422534:0x41e,_0x47718a:0x4a7,_0x2ea83f:0x349},_0x4b64e9={_0x2503a4:0x2a5};function _0x15ec1f(_0x10cb6e,_0x57b191){return _0x180075(_0x57b191,_0x10cb6e- -_0x4b64e9._0x2503a4);}if(!this[_0x15ec1f(0x41c,_0x39ccb1._0x3f86a1)+_0x299fd6(_0x39ccb1._0x10d776,_0x39ccb1._0x5985cb)+_0x15ec1f(_0x39ccb1._0x49a939,0x2ab)])return;clearTimeout(this['gatewayI'+_0x15ec1f(_0x39ccb1._0x4be4a6,0x234)+_0x299fd6(_0x39ccb1._0x472016,_0x39ccb1._0x20d562)]),this[_0x299fd6(0x546,_0x39ccb1._0x3f0222)+_0x299fd6(0x42f,0x4e1)+'Timer']=null;function _0x299fd6(_0x4d4c34,_0x11757f){return _0x180075(_0x4d4c34,_0x11757f- -0x179);}_0x3cd5d4&&this['log'](_0x299fd6(0x260,_0x39ccb1._0x422534)+_0x299fd6(0x66c,_0x39ccb1._0x47718a)+_0x15ec1f(_0x39ccb1._0x2ea83f,0x437)+_0x15ec1f(0x358,0x429)+'on='+_0x3cd5d4);}[_0x180075(0x535,0x6d4)+_0x28051b(0x2f5,0x374)+_0x28051b(0x4ab,0x40d)](){const _0x51afec={_0x4d451a:0x7dd,_0xa92270:0x815,_0x3b3bf:0x1b7,_0x478aa0:0xf8,_0x27f832:0x4bb,_0x2873e0:0x300,_0x5aacc1:0x512,_0x336562:0x702,_0x5172b4:0x8b,_0x36f72d:0x8a,_0xa0bb6e:0x492,_0x404e8f:0x4fd,_0x425fd9:0x83,_0x1caeb3:0x71,_0x5919cc:0x5aa,_0x6dcc49:0x63d,_0x319825:0x46f,_0x4932ae:0x41d,_0x48610a:0x1b7,_0x108980:0x3e},_0x3d833c={_0xc3f1ae:0x4c7,_0x321bca:0x46e},_0x43e00b={_0x4dd3e0:0x437},_0x370d3b={};_0x370d3b[_0x96000b(0x624,0x63e)]=function(_0x188472,_0x107d03){return _0x188472*_0x107d03;};function _0x96000b(_0x42f18b,_0x54d38b){return _0x28051b(_0x54d38b,_0x42f18b-0x1ef);}const _0x20755e=_0x370d3b;if(this['stopped']||this[_0x96000b(_0x51afec._0x4d451a,_0x51afec._0xa92270)+_0x4745c6(0x150,0x16)])return;const _0x482ec5=this['options'][_0x4745c6(_0x51afec._0x3b3bf,_0x51afec._0x478aa0)+'tBaseDel'+_0x96000b(_0x51afec._0x27f832,_0x51afec._0x2873e0)]??RECONNECT_BASE_DELAY_MS,_0x383a05=this[_0x96000b(0x69e,0x75a)]['reconnec'+_0x96000b(_0x51afec._0x5aacc1,_0x51afec._0x336562)+_0x4745c6(0x8f,-_0x51afec._0x5172b4)]??RECONNECT_MAX_DELAY_MS;function _0x4745c6(_0x52f651,_0x489de3){return _0x28051b(_0x489de3,_0x52f651- -_0x43e00b._0x4dd3e0);}const _0x3a630d=Math[_0x4745c6(0x24,-_0x51afec._0x36f72d)](_0x383a05,_0x20755e['nFaQL'](_0x482ec5,Math['max'](0x1,this['relayAtt'+'empt'])));this[_0x96000b(_0x51afec._0xa0bb6e,_0x51afec._0x404e8f)](_0x4745c6(_0x51afec._0x425fd9,-_0x51afec._0x1caeb3)+'connect\x20'+_0x96000b(_0x51afec._0x5919cc,_0x51afec._0x6dcc49)+_0x96000b(_0x51afec._0x319825,_0x51afec._0x4932ae)+'s='+_0x3a630d),this[_0x4745c6(_0x51afec._0x48610a,-_0x51afec._0x108980)+'tTimer']=setTimeout(()=>{const _0x83ae91={_0xd2e1f1:0x591};function _0x44a479(_0x26d900,_0x2c3071){return _0x4745c6(_0x2c3071-_0x83ae91._0xd2e1f1,_0x26d900);}this[_0x44a479(0x689,0x748)+_0x262158(0x18b,0x2ca)]=null;function _0x262158(_0x11b96b,_0x533007){return _0x4745c6(_0x533007-0x17a,_0x11b96b);}void this[_0x44a479(_0x3d833c._0xc3f1ae,_0x3d833c._0x321bca)+'elay']();},_0x3a630d);}[_0x28051b(0x49d,0x3bb)+_0x28051b(0x1d0,0x332)+'econnect'](){const _0x561b02={_0x2215b1:0x1f7,_0x3fc970:0x7f2,_0x4c5938:0x7a7,_0x19c559:0x6f2,_0x472082:0x5b4,_0x5deb3c:0x7d7,_0x22f824:0x3d2},_0x38b294={_0x45bcb1:0x861,_0x5d0b60:0x7cd,_0x4222b8:0x65e},_0x28c91e={_0x4d2c57:0x3d8},_0x3543f6={_0x5ab304:0x60};if(this[_0x1bde8b(0x35,_0x561b02._0x2215b1)]||this[_0xb37670(_0x561b02._0x3fc970,_0x561b02._0x4c5938)+'etryTime'+'r']||!this['isRelayO'+_0xb37670(0x8bd,_0x561b02._0x19c559)]()||!this['hasGatew'+_0xb37670(0x773,_0x561b02._0x472082)]())return;function _0xb37670(_0x5b8da4,_0x9e8fdb){return _0x180075(_0x9e8fdb,_0x5b8da4-_0x3543f6._0x5ab304);}function _0x1bde8b(_0x251c32,_0x29c493){return _0x180075(_0x251c32,_0x29c493- -_0x28c91e._0x4d2c57);}const _0x4423b2=this['options'][_0xb37670(0x7f2,0x98a)+_0xb37670(_0x561b02._0x5deb3c,0x5f0)+'yMs']??GATEWAY_RETRY_DELAY_MS;this['gatewayR'+_0x1bde8b(0x536,_0x561b02._0x22f824)+'r']=setTimeout(()=>{this['gatewayR'+'etryTime'+'r']=null;function _0x4964af(_0x7ea154,_0x39aec0){return _0x1bde8b(_0x7ea154,_0x39aec0-0x3f7);}function _0xa12249(_0x1434e4,_0x2eed35){return _0x1bde8b(_0x2eed35,_0x1434e4- -0x2b8);}this[_0x4964af(0x8bd,_0x38b294._0x45bcb1)+_0x4964af(_0x38b294._0x5d0b60,_0x38b294._0x4222b8)+_0xa12249(0x264,0x137)]();},_0x4423b2);}[_0x180075(0x64f,0x71a)+_0x28051b(0x365,0x500)](){const _0xeef758={_0x4a868e:0x6c4,_0x165931:0x5d4,_0x27f657:0x7a1,_0x5a085d:0x87e,_0x4136bc:0x7d0,_0x6d2948:0x65d},_0x4cda3d={_0x42d098:0x3d1,_0xf894bf:0x399,_0x58e3ec:0x2d5,_0x159c54:0x285,_0xccac7e:0x3b8,_0x2b90bc:0xbf,_0x12b422:0xde,_0x51e0ab:0x204,_0x489f97:0x29b,_0x35dac3:0x26e,_0x2afac6:0xc9,_0x139bf5:0x32,_0x5270d0:0x3a,_0x5d8be9:0xa9},_0x1d6808={};_0x1d6808[_0x1cf8dd(_0xeef758._0x4a868e,0x8a8)]=function(_0xc92de6,_0x65ecba){return _0xc92de6-_0x65ecba;};const _0x30eb88=_0x1d6808;function _0x1cf8dd(_0x3f3a97,_0x516ad0){return _0x180075(_0x516ad0,_0x3f3a97- -0x1e7);}this[_0x6f8bd4(0x732,_0xeef758._0x165931)+'tbeat']();function _0x6f8bd4(_0x47e5d2,_0x140a8d){return _0x180075(_0x47e5d2,_0x140a8d- -0xd0);}this[_0x6f8bd4(_0xeef758._0x27f657,0x5bf)+_0x6f8bd4(_0xeef758._0x5a085d,_0xeef758._0x4136bc)]=setInterval(()=>{const _0x44ab36={_0x4416f2:0x312},_0x1ff5e2=this['relaySoc'+'ket'];if(!_0x1ff5e2||_0x1ff5e2[_0x4343bc(0x32c,_0x4cda3d._0x42d098)+'te']!==_0x49a626[_0x4343bc(0x45c,0x35c)])return;const _0x520998=this[_0x4343bc(_0x4cda3d._0xf894bf,_0x4cda3d._0x58e3ec)]['heartbea'+_0x1cf1e4(0x3a4,0x57e)+'Ms']??HEARTBEAT_TIMEOUT_MS;if(_0x30eb88[_0x4343bc(_0x4cda3d._0x159c54,_0x4cda3d._0xccac7e)](Date[_0x4343bc(-0x113,_0x4cda3d._0x2b90bc)](),this[_0x1cf1e4(_0x4cda3d._0x12b422,_0x4cda3d._0x51e0ab)+_0x4343bc(_0x4cda3d._0x489f97,_0x4cda3d._0x35dac3)+'yMs'])>_0x520998){this[_0x4343bc(-0x7d,_0x4cda3d._0x2afac6)](_0x1cf1e4(0xba,-_0x4cda3d._0x139bf5)+'artbeat\x20'+_0x4343bc(0x4d,_0x4cda3d._0x5270d0)+'t'),_0x1ff5e2['terminat'+'e']();return;}function _0x1cf1e4(_0xd8b0cb,_0x47b443){return _0x1cf8dd(_0xd8b0cb- -_0x44ab36._0x4416f2,_0x47b443);}function _0x4343bc(_0x5cf7ee,_0x347ee9){return _0x1cf8dd(_0x347ee9- -0x30c,_0x5cf7ee);}_0x1ff5e2[_0x4343bc(0xe7,_0x4cda3d._0x5d8be9)]();},this[_0x6f8bd4(_0xeef758._0x6d2948,0x6f8)]['heartbea'+'tInterva'+'lMs']??HEARTBEAT_INTERVAL_MS);}[_0x180075(0x88a,0x6a4)+_0x180075(0x8ef,0x714)](){const _0x33f84b={_0x478fa5:0x95c,_0xf4a6da:0x1a9,_0x213c09:0x7c4},_0xb04add={_0x2e99db:0x7d};function _0x4e802e(_0x51fd44,_0x37c7d3){return _0x180075(_0x37c7d3,_0x51fd44- -0x535);}function _0x42eb22(_0x2e348f,_0x449c38){return _0x180075(_0x449c38,_0x2e348f- -_0xb04add._0x2e99db);}this['heartbea'+_0x42eb22(0x823,_0x33f84b._0x478fa5)]&&(clearInterval(this['heartbea'+_0x4e802e(0x36b,_0x33f84b._0xf4a6da)]),this[_0x42eb22(0x612,_0x33f84b._0x213c09)+_0x4e802e(0x36b,0x46d)]=null);}['pushPend'+'ingGatew'+_0x180075(0x682,0x76d)+'e'](_0x2193d6){const _0x3a627b={_0x48d3db:0x892,_0x4772fb:0x6af,_0x29186c:0x540,_0x348828:0x7e7,_0xdf1405:0x917,_0x304ea1:0x7f0,_0x5ceac1:0x50e,_0x4eab94:0x8ab,_0x4531c8:0x6a9,_0x3ae3c4:0x741},_0xde2db5={};_0xde2db5[_0x5cb41c(0x56d,0x4d1)]=function(_0x3f7d4c,_0x5cfd53){return _0x3f7d4c>=_0x5cfd53;};const _0x21a8d0=_0xde2db5;_0x21a8d0[_0x33eeb5(0x20f,0x384)](this[_0x5cb41c(0x7ba,0x87b)+_0x5cb41c(_0x3a627b._0x48d3db,_0x3a627b._0x4772fb)+_0x33eeb5(0x717,_0x3a627b._0x29186c)][_0x5cb41c(_0x3a627b._0x348828,0x69b)],MAX_PENDING_GATEWAY_MESSAGES)&&this[_0x5cb41c(0x7ba,_0x3a627b._0xdf1405)+_0x5cb41c(0x892,_0x3a627b._0x304ea1)+'ssages'][_0x33eeb5(_0x3a627b._0x5ceac1,0x640)]();function _0x5cb41c(_0x373869,_0xe7b800){return _0x28051b(_0xe7b800,_0x373869-0x322);}function _0x33eeb5(_0x1138ea,_0x54ea6b){return _0x28051b(_0x1138ea,_0x54ea6b-0x139);}this[_0x5cb41c(0x7ba,_0x3a627b._0x4eab94)+_0x33eeb5(0x783,_0x3a627b._0x4531c8)+'ssages'][_0x5cb41c(_0x3a627b._0x3ae3c4,0x8bf)](_0x2193d6);}[_0x180075(0x76b,0x6fc)+'onnectSt'+'art'](_0x574709,_0x11fb47){const _0x1dd42e={_0x10d124:0x57c,_0x561b61:0x5be,_0x43663f:0x5ac,_0x5dc44a:0x6eb,_0x40bc5e:0x914,_0x4089f2:0x5ac,_0x2efbc3:0x687,_0x2c3b65:0x734,_0x335bdc:0x8ff,_0x2275ee:0x551,_0x34fc56:0x5f1,_0x5aa4e9:0x70c},_0x482bae={_0x33b36b:0x36b},_0x5a8417={_0x2b559a:0x2e3},_0x2c5540=Date[_0x21fd96(_0x1dd42e._0x10d124,0x45e)](),_0x3a630b=new Map(this[_0x21fd96(0x8ab,0x8b0)][_0x4b9dac(_0x1dd42e._0x561b61,_0x1dd42e._0x43663f)+_0x21fd96(0x775,_0x1dd42e._0x5dc44a)][_0x4b9dac(0xa25,_0x1dd42e._0x40bc5e)](_0x1ce5b8=>[_0x1ce5b8['id'],{..._0x1ce5b8}]));function _0x21fd96(_0x47e520,_0x1ef0ff){return _0x28051b(_0x1ef0ff,_0x47e520-_0x5a8417._0x2b559a);}function _0x4b9dac(_0x544d31,_0x5d3877){return _0x28051b(_0x544d31,_0x5d3877-_0x482bae._0x33b36b);}const _0x89a54d=_0x3a630b['get'](_0x574709)??{'id':_0x574709,'label':_0x11fb47,'state':_0x4b9dac(0x5a0,_0x1dd42e._0x4089f2)+'d','lastSeenMs':_0x2c5540};_0x89a54d[_0x4b9dac(0x935,0x820)]=_0x11fb47,_0x89a54d[_0x21fd96(_0x1dd42e._0x2efbc3,0x56c)]=_0x21fd96(0x524,0x702)+'d',_0x89a54d[_0x4b9dac(0x6d9,_0x1dd42e._0x2c3b65)+'Ms']=_0x2c5540,_0x3a630b[_0x21fd96(0x710,0x85c)](_0x574709,_0x89a54d);const _0x4f12d2=[..._0x3a630b[_0x4b9dac(0x7e0,_0x1dd42e._0x335bdc)]()][_0x21fd96(0x620,0x7ab)]((_0x2a670b,_0xeaed3f)=>_0xeaed3f[_0x21fd96(0x6ac,0x785)+'Ms']-_0x2a670b[_0x4b9dac(0x60a,0x734)+'Ms'])[_0x21fd96(0x58b,_0x1dd42e._0x2275ee)](0x0,MAX_DEVICE_DETAILS),_0x1e9ec6={};_0x1e9ec6['connecte'+_0x4b9dac(0x618,0x7fd)]=_0x4f12d2,this[_0x21fd96(_0x1dd42e._0x34fc56,_0x1dd42e._0x5aa4e9)+'apshot'](_0x1e9ec6);}[_0x28051b(0x558,0x49f)+_0x180075(0x3f5,0x5e4)+'t'](){const _0x439fa6={_0x4a60ff:0x514,_0x44adfb:0x30a,_0xbc1ffb:0x40e,_0xf8f3a2:0x337,_0x314911:0x862,_0x2d0631:0x6ad},_0x249bc6={_0xaf1d0a:0x474};function _0x3cd2af(_0x512271,_0x2405af){return _0x180075(_0x512271,_0x2405af- -0x215);}function _0x5bd00c(_0x5d08db,_0x33bc15){return _0x180075(_0x5d08db,_0x33bc15- -_0x249bc6._0xaf1d0a);}this['updateSn'+_0x3cd2af(_0x439fa6._0x4a60ff,0x381)]({'connectedDevices':this[_0x5bd00c(_0x439fa6._0x44adfb,0x46d)][_0x3cd2af(_0x439fa6._0xbc1ffb,0x345)+_0x5bd00c(0x3bf,_0x439fa6._0xf8f3a2)][_0x3cd2af(_0x439fa6._0x314911,_0x439fa6._0x2d0631)](_0x26a1fd=>({..._0x26a1fd,'state':_0x5bd00c(0x1b7,0x159)}))});}['addPendi'+_0x180075(0x86e,0x84b)+_0x28051b(0x600,0x484)](_0x28a4a3){const _0x587430={_0x3c3795:0x4e5,_0x359aba:0x53c,_0x6fc381:0x5c9,_0x117b26:0x7c0,_0x30aa76:0x93c,_0x357bb5:0x87f,_0x59d7a4:0x26c,_0x308eaf:0x2a0,_0xad94ad:0x888,_0x3f2a81:0x513,_0x302441:0x2a9,_0x3f4110:0x5f8,_0x4cc540:0x675,_0x289861:0x605,_0x42d394:0x435,_0x1dc96c:0x4d2,_0x42a779:0x74a,_0x9acb33:0x2a4,_0x356f81:0x377,_0x3f2478:0x3ec,_0x208e02:0x328,_0xbddfea:0x270},_0x356a97={_0x3c9542:0x1},_0x44e08f={_0x3aa9bf:0x2c0},_0x1694e9={};_0x1694e9['qzHPR']=_0x44aa71(_0x587430._0x3c3795,_0x587430._0x359aba)+'>';const _0x106f50=_0x1694e9;function _0x44aa71(_0x370286,_0x56f178){return _0x28051b(_0x370286,_0x56f178-_0x44e08f._0x3aa9bf);}if(this[_0x2360ec(0x4f2,_0x587430._0x6fc381)][_0x44aa71(_0x587430._0x117b26,0x7d2)+_0x44aa71(_0x587430._0x30aa76,_0x587430._0x357bb5)+_0x2360ec(0x460,0x53f)][_0x2360ec(_0x587430._0x59d7a4,_0x587430._0x308eaf)](_0x252c89=>_0x252c89[_0x44aa71(0x41b,0x52f)+'d']===_0x28a4a3[_0x44aa71(0x701,0x52f)+'d']))return;const _0x1ede2b=[...this[_0x44aa71(0x733,_0x587430._0xad94ad)][_0x2360ec(0x4bc,_0x587430._0x3f2a81)+'airReque'+_0x2360ec(0x439,0x53f)],_0x28a4a3][_0x2360ec(0x111,_0x587430._0x302441)](-MAX_PENDING_PAIR_REQUESTS),_0x1a576c={};function _0x2360ec(_0x44c3f8,_0x2c6ace){return _0x28051b(_0x44c3f8,_0x2c6ace-_0x356a97._0x3c9542);}_0x1a576c[_0x44aa71(_0x587430._0x3f4110,0x7d2)+_0x44aa71(0x702,0x87f)+_0x2360ec(_0x587430._0x4cc540,0x53f)]=_0x1ede2b,this['updateSn'+_0x44aa71(_0x587430._0x289861,0x53d)](_0x1a576c),this[_0x2360ec(_0x587430._0x42d394,0x4b0)][_0x2360ec(_0x587430._0x1dc96c,0x309)+'gPairReq'+_0x44aa71(_0x587430._0x42a779,0x801)]?.(_0x28a4a3),this[_0x2360ec(0x444,_0x587430._0x9acb33)](_0x2360ec(_0x587430._0x356f81,0x321)+_0x2360ec(0x2ff,0x42a)+_0x2360ec(_0x587430._0x3f2478,0x511)+'uestId='+_0x28a4a3[_0x2360ec(_0x587430._0x208e02,_0x587430._0xbddfea)+'d']+(_0x2360ec(0x213,0x25d)+'d=')+(_0x28a4a3['deviceId']||_0x106f50['qzHPR']));}['markPair'+_0x180075(0x5f5,0x76e)+'esolved'](_0xad0ea4,_0x2f68dc){const _0x4f7271={_0x4048c0:0x3b3,_0xd71f43:0x1f4,_0x5b44ea:0x3f,_0x3c5da4:0x173,_0x350e23:0x28a,_0x47cd30:0xda,_0x498f57:0x22e,_0x1c1d3a:0x1c3,_0x20887a:0x124},_0x4b2cdb={_0x5d84fe:0x3cb};function _0x3067f0(_0xbdc7ce,_0x285fa3){return _0x28051b(_0xbdc7ce,_0x285fa3- -_0x4b2cdb._0x5d84fe);}function _0x4c3b8c(_0x2b134b,_0x5dcb92){return _0x28051b(_0x5dcb92,_0x2b134b- -0x1c7);}const _0x133091=this[_0x4c3b8c(0x401,_0x4f7271._0x4048c0)][_0x4c3b8c(0x34b,0x180)+'airReque'+'sts']['map'](_0x147adb=>_0x147adb[_0x4c3b8c(0xa8,0x15d)+'d']===_0xad0ea4?{..._0x147adb,'status':_0x2f68dc==='approved'||_0x2f68dc==='rejected'?_0x2f68dc:_0x147adb[_0x4c3b8c(0x88,0x4f)]}:_0x147adb),_0x263cb5={};_0x263cb5[_0x4c3b8c(0x34b,0x1a8)+_0x3067f0(0x332,_0x4f7271._0xd71f43)+_0x3067f0(_0x4f7271._0x5b44ea,_0x4f7271._0x3c5da4)]=_0x133091,this[_0x3067f0(-_0x4f7271._0x350e23,-0xbd)+'apshot'](_0x263cb5),this[_0x4c3b8c(0xdc,0xba)]('pair\x20req'+_0x3067f0(_0x4f7271._0x47cd30,_0x4f7271._0x498f57)+_0x4c3b8c(_0x4f7271._0x1c1d3a,_0x4f7271._0x20887a)+'questId='+_0xad0ea4+('\x20decisio'+'n=')+_0x2f68dc);}['updateSn'+_0x28051b(0x1d9,0x27d)](_0x5ccab8){const _0x3ecb9d={_0x132974:0x11c,_0x59ec0d:0x28,_0x4e845c:0x2e8,_0x2c14b1:0x64,_0x4d0961:0x72},_0x1dce73={_0x2dc4ec:0xee},_0x399b52={_0x5d4f93:0x2e0};function _0x3e4573(_0x3a800c,_0x4ec56b){return _0x28051b(_0x3a800c,_0x4ec56b- -_0x399b52._0x5d4f93);}function _0x3c1a04(_0x424eb1,_0x3c2686){return _0x28051b(_0x3c2686,_0x424eb1-_0x1dce73._0x2dc4ec);}Object[_0x3e4573(-_0x3ecb9d._0x132974,-_0x3ecb9d._0x59ec0d)](this[_0x3e4573(0x43d,_0x3ecb9d._0x4e845c)],_0x5ccab8,{'lastUpdatedMs':Date['now']()}),this[_0x3e4573(0x368,0x1cf)][_0x3e4573(-0x9b,_0x3ecb9d._0x2c14b1)]?.(this[_0x3e4573(-_0x3ecb9d._0x4d0961,0x152)+'hot']());}['log'](_0x51af93){const _0x4ce6c3={_0x126e3a:0x2ae},_0x467073={_0x3d0ed9:0x97};function _0x558b5e(_0x264dcf,_0x14ed70){return _0x180075(_0x14ed70,_0x264dcf- -_0x467073._0x3d0ed9);}function _0x480820(_0x555f8c,_0x48038a){return _0x180075(_0x555f8c,_0x48038a- -0x449);}this[_0x480820(_0x4ce6c3._0x126e3a,0x37f)][_0x558b5e(0x5d0,0x7a6)]?.(_0x51af93);}['isRelayO'+_0x28051b(0x3c1,0x544)](){const _0xc4d6e7={_0x4306a6:0x6a3},_0x2ec757={_0x3fcaac:0x221};function _0x688329(_0x1a5b08,_0x48fa6d){return _0x180075(_0x1a5b08,_0x48fa6d- -_0x2ec757._0x3fcaac);}function _0x821522(_0x30eff4,_0x4bcfa0){return _0x180075(_0x4bcfa0,_0x30eff4- -0x624);}return this['relaySoc'+_0x821522(0x250,0x31a)]?.[_0x688329(0x772,_0xc4d6e7._0x4306a6)+'te']===_0x49a626['OPEN'];}[_0x180075(0x7e1,0x7d8)+_0x28051b(0x647,0x515)](){const _0x3c221a={_0x459583:0xef,_0x21dbfc:0x4ca},_0x4672d6={_0x1e47d3:0x3fa},_0x22c464={};function _0x1bbde7(_0x3ea6a3,_0x23f767){return _0x180075(_0x23f767,_0x3ea6a3- -0x6be);}_0x22c464['BcOPj']=function(_0x19d9ee,_0x57ce5c){return _0x19d9ee===_0x57ce5c;};function _0x1b3fc6(_0x5e0a9b,_0xac8ae6){return _0x180075(_0xac8ae6,_0x5e0a9b- -_0x4672d6._0x1e47d3);}const _0x415d2e=_0x22c464;return _0x415d2e[_0x1bbde7(0x173,_0x3c221a._0x459583)](this[_0x1bbde7(0xf2,-0x79)+'ocket']?.[_0x1b3fc6(_0x3c221a._0x21dbfc,0x46a)+'te'],_0x49a626[_0x1b3fc6(0x455,0x376)]);}[_0x180075(0x71a,0x821)+_0x28051b(0x4e2,0x3fa)](){const _0x1265ed={_0xb1549e:0x4d2,_0x5b100b:0x3fb,_0x4e69e0:0x5d4},_0x56f1a6={_0x3ae092:0x3b6};function _0x196573(_0x33034d,_0x1b4873){return _0x180075(_0x33034d,_0x1b4873- -0x471);}function _0x54bf85(_0x24ec56,_0x373dab){return _0x180075(_0x24ec56,_0x373dab- -_0x56f1a6._0x3ae092);}return this['snapshot'][_0x54bf85(_0x1265ed._0xb1549e,0x526)+_0x196573(0x31e,0x235)]>0x0||this[_0x54bf85(0x4b3,_0x1265ed._0x5b100b)+_0x196573(_0x1265ed._0x4e69e0,0x418)+_0x54bf85(0x4b1,0x36a)]['length']>0x0;}[_0x28051b(0x3f8,0x224)+_0x180075(0x6ba,0x550)](){const _0x54351e={_0x175a34:0x496,_0x2aeb61:0x680,_0x3feadf:0x8e3,_0x1c6e85:0x1b3,_0xc0ec69:0x3f8,_0x587291:0x189,_0x4d88f7:0x228,_0x125d4b:0x79f,_0x149445:0x786,_0xaa6dcb:0x18b,_0x3c6482:0x163,_0x56470f:0x1a3,_0x2a4e83:0xbf,_0x6067dd:0x3a7,_0x31ac6d:0x75f,_0x151c41:0x864},_0x2b81db={_0x42ec78:0x607},_0x5766b0={_0x4d5b27:0x24};function _0x241bb8(_0x27a1cf,_0x485304){return _0x180075(_0x27a1cf,_0x485304- -_0x5766b0._0x4d5b27);}this[_0x241bb8(_0x54351e._0x175a34,_0x54351e._0x2aeb61)+_0xa9bb74(0x10d,0xc1)]();this[_0x241bb8(0x96f,_0x54351e._0x3feadf)+_0xa9bb74(0x299,_0x54351e._0x1c6e85)]&&(clearTimeout(this['reconnec'+_0xa9bb74(0x299,_0x54351e._0xc0ec69)]),this['reconnec'+_0xa9bb74(0x299,_0x54351e._0x587291)]=null);this['gatewayR'+_0xa9bb74(0x1a3,_0x54351e._0x4d88f7)+'r']&&(clearTimeout(this['gatewayR'+_0x241bb8(_0x54351e._0x125d4b,_0x54351e._0x149445)+'r']),this[_0xa9bb74(_0x54351e._0xaa6dcb,_0x54351e._0x3c6482)+_0xa9bb74(_0x54351e._0x56470f,_0x54351e._0x2a4e83)+'r']=null);function _0xa9bb74(_0x8a993d,_0x13be99){return _0x180075(_0x13be99,_0x8a993d- -_0x2b81db._0x42ec78);}this[_0x241bb8(0x81a,0x7e7)+_0xa9bb74(0x2ea,_0x54351e._0x6067dd)+_0x241bb8(_0x54351e._0x31ac6d,_0x54351e._0x151c41)]();}[_0x28051b(0x333,0x26e)+_0x28051b(0x22b,0x3b5)](_0x785b18){const _0x348f30={_0x4f4c16:0xd4,_0x1eb279:0xfb};function _0x6d249b(_0x534b1d,_0x25c37d){return _0x180075(_0x25c37d,_0x534b1d- -0x4de);}return _0x785b18==null?null:Math['max'](0x0,Date[_0x6d249b(_0x348f30._0x4f4c16,_0x348f30._0x1eb279)]()-_0x785b18);}};function shouldRecycleGatewayForFreshClient(_0x4a4b8e,_0x4fad19,_0x344a16,_0x385588){const _0x13671e={_0x74e8b9:0x198},_0x38505d={_0x1d5922:0x74a},_0x5e5016={};_0x5e5016['acdtX']=function(_0x272737,_0x58c196){return _0x272737===_0x58c196;};function _0x4353f8(_0x34a202,_0x1c5ddd){return _0x180075(_0x34a202,_0x1c5ddd- -_0x38505d._0x1d5922);}const _0x3f093e=_0x5e5016;return _0x344a16&&_0x4fad19>0x0&&(_0x3f093e[_0x4353f8(-_0x13671e._0x74e8b9,-0x10c)](_0x4a4b8e,0x0)||_0x385588);}function shouldDropStaleConnectAfterGatewayReopen(_0x261711,_0x38c5bc){const _0x47467c={_0x2df715:0x14e,_0xb3f166:0x13a},_0x197052={};_0x197052[_0x32ec2e(_0x47467c._0x2df715,_0x47467c._0xb3f166)]=function(_0x329346,_0x44ffe3){return _0x329346&&_0x44ffe3;};function _0x32ec2e(_0x1e49ee,_0x15d5ef){return _0x180075(_0x15d5ef,_0x1e49ee- -0x421);}function _0x4deb45(_0x151c29,_0x1790bc){return _0x180075(_0x151c29,_0x1790bc-0x4);}const _0x4ce720=_0x197052;return _0x4ce720[_0x4deb45(0x6bf,0x573)](!_0x261711,_0x38c5bc);}function buildRelayWsUrl(_0x55c5ef){const _0x29aaca={_0x199e30:0x278,_0x4774de:0x43b,_0x53cae4:0x212,_0xae0105:0x2ae,_0x1a6e46:0x613,_0x470831:0x4ed,_0x5d67db:0x9b,_0x38b800:0x534,_0x2e1fcd:0x91,_0x41aa4e:0x613,_0x1edff5:0x64a,_0x122b5c:0x425,_0x354db7:0x3ef,_0x4faed1:0x58a,_0x4e013a:0x5bd,_0x7525f3:0x466},_0x338d1d={_0x1486a8:0x4a1};function _0x2c810a(_0x3ef64c,_0x53afe1){return _0x180075(_0x53afe1,_0x3ef64c- -0x286);}const _0x420288={};_0x420288[_0x551dd7(0x194,_0x29aaca._0x199e30)]=_0x2c810a(_0x29aaca._0x4774de,0x620)+'d',_0x420288[_0x2c810a(0x480,0x4da)]=_0x551dd7(0x1e7,_0x29aaca._0x53cae4);const _0x5a5ff3=_0x420288,_0x19ba1d=new URL(_0x55c5ef['relayUrl']);(!_0x19ba1d['pathname']||_0x19ba1d[_0x2c810a(0x47d,0x52a)]==='/')&&(_0x19ba1d[_0x551dd7(0x262,0x400)]='/ws');_0x19ba1d['searchPa'+_0x551dd7(0x2d2,0x1ff)][_0x551dd7(0x2a5,0x401)](_0x5a5ff3[_0x551dd7(0x194,0x2ce)],_0x55c5ef[_0x551dd7(0x220,_0x29aaca._0xae0105)+'d']),_0x19ba1d[_0x2c810a(_0x29aaca._0x1a6e46,0x46a)+_0x2c810a(_0x29aaca._0x470831,0x341)]['set'](_0x551dd7(0x280,_0x29aaca._0x5d67db),_0x551dd7(0x17e,0x1c6));function _0x551dd7(_0x1e2df5,_0x3cb23e){return _0x180075(_0x3cb23e,_0x1e2df5- -_0x338d1d._0x1486a8);}return _0x19ba1d[_0x2c810a(0x613,0x60b)+'rams'][_0x551dd7(0x2a5,0x192)](_0x5a5ff3[_0x2c810a(0x480,_0x29aaca._0x38b800)],_0x55c5ef[_0x551dd7(_0x29aaca._0x2e1fcd,-0xf6)+'Id']),_0x19ba1d[_0x2c810a(_0x29aaca._0x41aa4e,_0x29aaca._0x1edff5)+'rams'][_0x2c810a(0x4c0,_0x29aaca._0x122b5c)]('token',_0x55c5ef[_0x2c810a(_0x29aaca._0x354db7,_0x29aaca._0x4faed1)+_0x551dd7(0x2c8,0x392)]),_0x19ba1d[_0x2c810a(_0x29aaca._0x4e013a,_0x29aaca._0x7525f3)]();}function redactRelayWsUrl(_0x1d360d){const _0x58c5cc={_0xc6f8e8:0x140,_0x566567:0x44a,_0x5c382a:0x615,_0x124e08:0x31c,_0x301550:0x11d,_0x576a54:0xb2,_0x2526df:0x2ad,_0x68d7b5:0x18a,_0x1efded:0x3f4,_0x4e3937:0x46c},_0x1640ec={_0x2e0e45:0x180},_0x41b8c8={_0x32bd15:0x136};function _0x2605ff(_0x2aa4e4,_0x4f03c1){return _0x28051b(_0x4f03c1,_0x2aa4e4- -_0x41b8c8._0x32bd15);}const _0x444337={};_0x444337[_0x2605ff(0x11d,-0x4e)]=_0x5cc740(0x1b3,_0x58c5cc._0xc6f8e8);function _0x5cc740(_0x36edbf,_0x4652d7){return _0x28051b(_0x36edbf,_0x4652d7- -_0x1640ec._0x2e0e45);}const _0x367d1e=_0x444337,_0x182beb=new URL(_0x1d360d);return _0x182beb[_0x2605ff(_0x58c5cc._0x566567,_0x58c5cc._0x5c382a)+'rams'][_0x5cc740(0x214,_0x58c5cc._0x124e08)](_0x367d1e[_0x2605ff(_0x58c5cc._0x301550,_0x58c5cc._0x576a54)])&&_0x182beb['searchPa'+_0x2605ff(0x324,0x47b)][_0x5cc740(0x10e,_0x58c5cc._0x2526df)](_0x2605ff(_0x58c5cc._0x68d7b5,0x245),'<redacte'+'d>'),_0x182beb[_0x2605ff(_0x58c5cc._0x1efded,_0x58c5cc._0x4e3937)]();}function normalizeText(_0x792548){const _0x4fb9cb={_0x31f4b4:0x399,_0xed8527:0x373,_0x1813f1:0x2eb,_0x19bbe4:0x34c,_0x41d9bd:0x36d,_0x328dfb:0x194,_0x1bc235:0x287,_0x3f1889:0x26a,_0x23006d:0x560},_0x5775c5={_0x681515:0x1f9},_0x4aefc8={_0x27e427:0x1de},_0x45420d={};function _0x456175(_0xe9dec2,_0x2e7b89){return _0x28051b(_0xe9dec2,_0x2e7b89- -_0x4aefc8._0x27e427);}_0x45420d[_0x2d5b1b(0x358,_0x4fb9cb._0x31f4b4)]=_0x2d5b1b(0x395,0x2a2);const _0x19f79e=_0x45420d;if(typeof _0x792548===_0x19f79e[_0x456175(0x4df,_0x4fb9cb._0xed8527)])return _0x792548;if(Buffer[_0x456175(0x217,_0x4fb9cb._0x1813f1)](_0x792548))return _0x792548[_0x456175(0x1b5,_0x4fb9cb._0x19bbe4)](_0x456175(0x517,_0x4fb9cb._0x41d9bd));if(Array[_0x456175(0xfc,_0x4fb9cb._0x328dfb)](_0x792548))return Buffer[_0x456175(0x211,0x38a)](_0x792548)[_0x456175(0x4dc,_0x4fb9cb._0x19bbe4)]('utf8');function _0x2d5b1b(_0x490b27,_0x546f9b){return _0x28051b(_0x546f9b,_0x490b27- -_0x5775c5._0x681515);}if(_0x792548 instanceof ArrayBuffer)return Buffer[_0x2d5b1b(_0x4fb9cb._0x1bc235,_0x4fb9cb._0x3f1889)](_0x792548)[_0x456175(0x2ae,0x34c)](_0x456175(_0x4fb9cb._0x23006d,0x36d));return null;}function normalizeBinary(_0x3e8fd0){const _0x36eb00={_0x682cf2:0x451,_0x204a8a:0x480,_0x37d620:0x291,_0x24d1d2:0x583,_0x426917:0x565,_0x1a6c69:0x57f},_0x443d21={_0x5a683a:0x2ff},_0xf9d36e={_0x1bb468:0x362},_0x33c35e={};function _0x54d0e9(_0x2e147a,_0x1996eb){return _0x180075(_0x1996eb,_0x2e147a- -_0xf9d36e._0x1bb468);}_0x33c35e[_0x5772a5(_0x36eb00._0x682cf2,0x3d6)]=function(_0x26d038,_0x2c0b78){return _0x26d038===_0x2c0b78;};const _0x47d86c=_0x33c35e;if(Buffer[_0x54d0e9(_0x36eb00._0x204a8a,0x424)](_0x3e8fd0))return _0x3e8fd0;if(_0x47d86c[_0x54d0e9(0x3ee,_0x36eb00._0x37d620)](typeof _0x3e8fd0,_0x5772a5(0x5a8,_0x36eb00._0x24d1d2)))return Buffer['from'](_0x3e8fd0,_0x5772a5(_0x36eb00._0x426917,0x473));if(Array[_0x5772a5(0x38c,0x1e7)](_0x3e8fd0))return Buffer[_0x5772a5(0x582,_0x36eb00._0x1a6c69)](_0x3e8fd0);function _0x5772a5(_0x282388,_0x4bf7a3){return _0x180075(_0x4bf7a3,_0x282388- -_0x443d21._0x5a683a);}return Buffer['from'](_0x3e8fd0);}function readRecentCliLogs(_0x3b3826){const _0x3ae893={_0x2b6a73:0xf7,_0x14f992:0xc6,_0x3f7465:0x99,_0x45b92d:0x18e,_0x1badfb:0x8e,_0x25dc38:0x104,_0x5c1a29:0x57,_0x107730:0x120},_0xb18885={_0x2af8e9:0x35c},_0x3b756e={'ckvrT':function(_0xebd60f){return _0xebd60f();},'EiUjk':function(_0x240f9f,_0x4fc8d3){return _0x240f9f==_0x4fc8d3;}},{logPath:_0x501f5f,errorLogPath:_0x3181a1}=_0x3b756e[_0x3d2cdc(-0x114,-_0x3ae893._0x2b6a73)](getServicePaths);function _0x3d2cdc(_0x476219,_0x5ea800){return _0x180075(_0x476219,_0x5ea800- -0x6e1);}const _0x167cab=clampLines(_0x3b3826?.['lines']??0xc8),_0x29f6b0=_0x3b3826?.[_0x3d2cdc(_0x3ae893._0x14f992,-_0x3ae893._0x3f7465)]??null,_0x422d45=_0x29f6b0!=null?Date[_0x471a78(0x289,0x256)]()-_0x29f6b0:null,_0x2e142b=[_0x501f5f];function _0x471a78(_0x206c0b,_0x37f15c){return _0x180075(_0x206c0b,_0x37f15c- -_0xb18885._0x2af8e9);}_0x3b3826?.[_0x3d2cdc(_0x3ae893._0x45b92d,_0x3ae893._0x1badfb)+'rrorLog']&&_0x2e142b[_0x3d2cdc(-_0x3ae893._0x25dc38,_0x3ae893._0x5c1a29)](_0x3181a1);const _0x50acf6=_0x2e142b['flatMap'](_0x510404=>readLogFile(_0x510404)),_0x2e1071=_0x3b756e['EiUjk'](_0x422d45,null)?_0x50acf6:_0x50acf6[_0x471a78(0x2f4,0x48d)](_0x242560=>_0x242560['ts']!=null&&_0x242560['ts']>=_0x422d45);return _0x2e1071[_0x3d2cdc(-0xf,-_0x3ae893._0x107730)](-_0x167cab)['map'](_0x146e1a=>_0x146e1a['raw']);}async function buildDoctorReport(){const _0x47d551={_0x106676:0x59b,_0x3fa2b0:0x3b4,_0xf178d0:0x2c8,_0x3331af:0x456,_0x12ea2a:0x291,_0x427ec8:0x5ef,_0x44b151:0x401,_0x44ca87:0x63c,_0x5911b2:0x64b,_0x3ad01a:0x752,_0x4605bc:0x770,_0x583e8e:0x78c,_0x3ffac9:0x765,_0x25ed56:0x7ac,_0x177c43:0x420,_0x35b827:0x50c,_0x1e0cf1:0x605,_0x5ea549:0x27d,_0x4b6668:0x423,_0x49d3b2:0x532},_0x11eed4={_0x433cbd:0x60};function _0x1c6c15(_0x1daea8,_0x54c56e){return _0x28051b(_0x54c56e,_0x1daea8-_0x11eed4._0x433cbd);}const _0x201b3a={'wfoeO':function(_0x5036d7){return _0x5036d7();},'jyOSq':function(_0x2d6abd,_0x4f27e1){return _0x2d6abd(_0x4f27e1);}},_0x5059f6=_0x201b3a['wfoeO'](readPairingConfig),_0x46ed51=getServiceStatus();function _0x18669c(_0x49b9ee,_0x7aad75){return _0x28051b(_0x7aad75,_0x49b9ee-0x19b);}const _0x319d93=readOpenClawInfo(),_0x223fa2=resolveGatewayUrl(),_0x2fdde1=await _0x201b3a[_0x1c6c15(0x5cb,0x73e)](checkGatewayReachable,_0x223fa2);return{'paired':Boolean(_0x5059f6),'gatewayId':_0x5059f6?.[_0x1c6c15(0x408,0x29f)+'d']??null,'serverUrl':_0x5059f6?.[_0x1c6c15(_0x47d551._0x106676,0x785)+'l']??null,'relayUrl':_0x5059f6?.['relayUrl']??null,'instanceId':_0x5059f6?.[_0x18669c(_0x47d551._0x3fa2b0,_0x47d551._0xf178d0)+'Id']??null,'serviceInstalled':_0x46ed51[_0x18669c(_0x47d551._0x3331af,_0x47d551._0x12ea2a)+'d'],'serviceRunning':_0x46ed51['running'],'serviceMethod':_0x46ed51['method'],'servicePath':_0x46ed51[_0x1c6c15(_0x47d551._0x427ec8,0x5c6)+_0x1c6c15(_0x47d551._0x44b151,0x482)],'logPath':_0x46ed51[_0x18669c(0x6cc,0x82a)],'errorLogPath':_0x46ed51[_0x18669c(_0x47d551._0x44ca87,0x62f)+_0x1c6c15(_0x47d551._0x5911b2,_0x47d551._0x3ad01a)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':_0x201b3a[_0x18669c(_0x47d551._0x4605bc,_0x47d551._0x583e8e)](getOpenClawMediaDir),'openclawConfigFound':_0x319d93[_0x18669c(_0x47d551._0x3ffac9,_0x47d551._0x25ed56)+_0x18669c(_0x47d551._0x177c43,0x612)],'openclawAuthMode':_0x319d93[_0x1c6c15(_0x47d551._0x35b827,_0x47d551._0x1e0cf1)],'openclawTokenFound':Boolean(_0x319d93[_0x1c6c15(0x320,_0x47d551._0x5ea549)]),'openclawPasswordFound':Boolean(_0x319d93[_0x18669c(_0x47d551._0x4b6668,_0x47d551._0x49d3b2)]),'localGatewayUrl':_0x223fa2,'localGatewayReachable':_0x2fdde1};}async function ensurePairPrerequisites(){const _0x55903a={_0x85c414:0x47b,_0x2b4e94:0x51b,_0x439b13:0x69a,_0x294489:0x56c,_0x73f758:0x5ec,_0x37b6c4:0x5af,_0x1073ee:0x653,_0x9bf55b:0x59f,_0x4983c3:0x32b,_0x312e2a:0x31a,_0xd9e33e:0x5bf,_0x192a73:0x4da,_0x2c54e8:0x6c8,_0x45c002:0x67c,_0x4dffbf:0x4d1,_0x2c3d4a:0x51f,_0x465d2d:0x402,_0x44bc5e:0x354,_0x54d9ce:0x42c,_0x3db6fe:0x4a4,_0x54c0c6:0x549,_0x5506ee:0x5f0},_0x53cfa5={_0x1e1ed3:0x1d5},_0x412511={_0x357918:0xd3},_0x151b20={};_0x151b20[_0x41388f(_0x55903a._0x85c414,_0x55903a._0x2b4e94)]=function(_0x3aab40,_0x4c5ea5){return _0x3aab40>_0x4c5ea5;};const _0x328729=_0x151b20;function _0x52eecd(_0x11c87c,_0xcbc89a){return _0x28051b(_0x11c87c,_0xcbc89a-_0x412511._0x357918);}const _0x28e25e=await buildDoctorReport(),_0x2787a6=listPairPrerequisiteFailures(_0x28e25e);if(_0x328729['tLvhV'](_0x2787a6[_0x41388f(0x5d7,_0x55903a._0x439b13)],0x0))throw new Error(['Cannot\x20c'+_0x52eecd(_0x55903a._0x294489,_0x55903a._0x73f758)+_0x41388f(0x70d,_0x55903a._0x37b6c4)+_0x41388f(0x59a,0x611)+_0x41388f(_0x55903a._0x1073ee,_0x55903a._0x9bf55b)+_0x52eecd(0x36f,_0x55903a._0x4983c3)+_0x52eecd(0x4fd,_0x55903a._0x312e2a)+'erequisi'+_0x41388f(_0x55903a._0xd9e33e,_0x55903a._0x192a73)+_0x52eecd(0x6a8,_0x55903a._0x2c54e8)+'y.',..._0x2787a6[_0x52eecd(0x55f,_0x55903a._0x45c002)](_0x20da3a=>'-\x20'+_0x20da3a),_0x52eecd(_0x55903a._0x4dffbf,_0x55903a._0x2c3d4a)+_0x41388f(0x2f9,_0x55903a._0x465d2d)+'tor`\x20for'+'\x20more\x20de'+_0x41388f(_0x55903a._0x44bc5e,0x4ad)+'r\x20use\x20`c'+_0x41388f(0x701,0x643)+'air\x20--fo'+'rce`\x20onl'+_0x52eecd(0x6ad,0x5cb)+_0x41388f(0x55d,_0x55903a._0x54d9ce)+'onally\x20w'+_0x52eecd(0x4b3,_0x55903a._0x3db6fe)+_0x41388f(0x670,0x4c9)+_0x52eecd(0x5e0,_0x55903a._0x54c0c6)+_0x52eecd(_0x55903a._0x5506ee,0x58a)]['join']('\x0a'));function _0x41388f(_0x33667a,_0x52759e){return _0x28051b(_0x33667a,_0x52759e-_0x53cfa5._0x1e1ed3);}return _0x28e25e;}function listPairPrerequisiteFailures(_0x30ff34){const _0x501c40={_0x35a531:0x3fb,_0x2ccfec:0x4fc,_0x28da27:0x41b,_0x6c24f0:0x221,_0xcd4f:0xb7,_0x3546f7:0x1cb,_0x5676a0:0xf0,_0x1e0a2c:0x8f,_0x3f21c3:0x65e,_0xd56571:0x1cb,_0x523b38:0xa9,_0x3f54fc:0x331,_0x134e37:0x10e,_0x11d1a6:0x29b,_0x18429d:0x5cd,_0x470946:0x57d,_0x495a9d:0x378,_0x25cdb8:0x349,_0x51367a:0xa1,_0xf34f76:0x48f,_0x3c1d51:0x65f,_0x18ba3b:0x683,_0x593b70:0x143,_0x46250f:0x85,_0x2e2e53:0xc6,_0x554101:0x3aa,_0x3236da:0xb0,_0x2d326b:0x25b,_0x56188b:0x119,_0x20a1c0:0x54,_0x1c2a38:0x360,_0x3d70c4:0x272,_0x3d2c7b:0x286,_0x3c0185:0x143,_0x4a4608:0x80,_0x5d3a82:0x5a,_0x2ff3de:0x1ea,_0x40425c:0x6a,_0x13bd1f:0x9b,_0x32510a:0x40c,_0x509e54:0x331,_0xdc51c7:0x3f2,_0x4f65a0:0x6b,_0x5997a7:0x120,_0x5989f8:0x381,_0x24a9ee:0x11e,_0x5c28bb:0x107,_0x2f26e4:0x4e0,_0x28aa2d:0x676},_0x508959={_0x4a8f99:0x39f},_0x3456da={_0x3d6eff:0x119},_0x5d0c90={};function _0x166fba(_0x59f4b3,_0xa47c0c){return _0x28051b(_0xa47c0c,_0x59f4b3-_0x3456da._0x3d6eff);}_0x5d0c90[_0x271694(0x4a,0x1f5)]='OpenClaw'+'\x20config\x20'+'was\x20not\x20'+_0x166fba(_0x501c40._0x35a531,_0x501c40._0x2ccfec)+_0x166fba(_0x501c40._0x28da27,0x2f2)+_0x271694(_0x501c40._0x6c24f0,_0x501c40._0xcd4f)+'.',_0x5d0c90['sZlEU']=_0x166fba(0x3a1,0x1bc);function _0x271694(_0x2401eb,_0x111571){return _0x28051b(_0x111571,_0x2401eb- -_0x508959._0x4a8f99);}const _0x12cfe1=_0x5d0c90,_0x44c96e=[];return!_0x30ff34[_0x271694(_0x501c40._0x3546f7,0x316)+_0x271694(-_0x501c40._0x5676a0,-_0x501c40._0x1e0a2c)+'und']&&_0x44c96e['push'](_0x12cfe1['QdNVM']),_0x30ff34[_0x166fba(0x683,_0x501c40._0x3f21c3)+_0x166fba(0x5fb,0x5e6)+'nd']&&_0x30ff34[_0x271694(_0x501c40._0xd56571,_0x501c40._0x523b38)+'Password'+_0x271694(-0x163,0x16)]&&_0x30ff34['openclaw'+_0x166fba(_0x501c40._0x3f54fc,0x1d8)]==null&&_0x44c96e[_0x166fba(0x538,0x6b3)](_0x271694(-_0x501c40._0x134e37,-_0x501c40._0x11d1a6)+_0x166fba(_0x501c40._0x18429d,_0x501c40._0x470946)+_0x166fba(_0x501c40._0x495a9d,0x3ae)+_0x166fba(0x4c2,0x4a1)+_0x166fba(_0x501c40._0x25cdb8,0x46c)+_0x271694(_0x501c40._0x51367a,0x16c)+_0x271694(-0xd9,-0x252)+'\x20but\x20gat'+_0x166fba(0x586,_0x501c40._0xf34f76)+_0x166fba(0x706,0x8d2)+_0x166fba(_0x501c40._0x3c1d51,0x656)),!_0x30ff34[_0x166fba(_0x501c40._0x18ba3b,0x78a)+_0x271694(_0x501c40._0x593b70,-_0x501c40._0x46250f)+'nd']&&!_0x30ff34['openclaw'+_0x271694(-_0x501c40._0x2e2e53,-0x23c)+_0x271694(-0x163,-0x23e)]&&_0x44c96e[_0x166fba(0x538,0x5b1)](_0x166fba(_0x501c40._0x554101,0x573)+_0x271694(-0x129,-_0x501c40._0x3236da)+'\x20auth\x20is'+_0x271694(_0x501c40._0x2d326b,0x26d)+_0x271694(_0x501c40._0x56188b,-_0x501c40._0x20a1c0)+_0x271694(0x204,_0x501c40._0x1c2a38)+_0x166fba(0x5b2,0x489)),_0x30ff34[_0x271694(_0x501c40._0xd56571,_0x501c40._0x3d70c4)+'AuthMode']===_0x271694(-0xdf,-_0x501c40._0x3d2c7b)&&!_0x30ff34['openclaw'+_0x271694(_0x501c40._0x3c0185,0x167)+'nd']&&_0x44c96e[_0x271694(_0x501c40._0x4a4608,-0x147)](_0x271694(-_0x501c40._0x134e37,_0x501c40._0x5d3a82)+_0x166fba(0x38f,_0x501c40._0x2ff3de)+_0x271694(_0x501c40._0x40425c,_0x501c40._0x13bd1f)+_0x166fba(_0x501c40._0x32510a,0x468)+'g.'),_0x30ff34[_0x271694(0x1cb,-0x26)+_0x166fba(_0x501c40._0x509e54,0x1a7)]===_0x12cfe1[_0x166fba(0x59c,0x584)]&&!_0x30ff34[_0x271694(0x1cb,0x3a4)+_0x166fba(_0x501c40._0xdc51c7,0x3dc)+_0x166fba(0x355,0x2c8)]&&_0x44c96e['push']('OpenClaw'+'\x20gateway'+'\x20passwor'+_0x271694(0x247,_0x501c40._0x4f65a0)+_0x271694(-_0x501c40._0x5997a7,0x4c)),!_0x30ff34['localGat'+'ewayReac'+_0x166fba(0x42a,_0x501c40._0x5989f8)]&&_0x44c96e['push'](_0x271694(-0xf4,-0xfd)+_0x271694(-_0x501c40._0x24a9ee,-0x117)+_0x271694(0x8b,-_0x501c40._0x5c28bb)+'s\x20not\x20re'+_0x166fba(0x537,0x45b)+_0x166fba(0x53a,_0x501c40._0x2f26e4)+_0x30ff34['localGat'+_0x166fba(0x695,_0x501c40._0x28aa2d)]+'.'),_0x44c96e;}function _0x28051b(_0x161883,_0x229e08){return _0xec0d(_0x229e08-0x5c,_0x161883);}function readLogFile(_0x4963aa){const _0x480537={_0x5eccf7:0x8a7,_0x3c94fa:0x1c4};function _0x58f4b2(_0x4ccae9,_0x96fde8){return _0x28051b(_0x96fde8,_0x4ccae9-0x33a);}const _0x1c0293={'JnlIw':function(_0x451225,_0x122b25,_0x1d1813){return _0x451225(_0x122b25,_0x1d1813);}};function _0xce0791(_0x419710,_0x1893e8){return _0x28051b(_0x419710,_0x1893e8- -0x30c);}try{const _0x218c5b=_0x1c0293['JnlIw'](_0x2e4f32,_0x4963aa,'utf8');return _0x218c5b[_0x58f4b2(0x8f4,_0x480537._0x5eccf7)](/\r?\n/)[_0xce0791(0x1d1,_0x480537._0x3c94fa)](Boolean)[_0xce0791(0x252,0x29d)](_0x52f54c=>({'raw':_0x52f54c,'ts':parseTimestamp(_0x52f54c)}));}catch{return[];}}function parseTimestamp(_0x202c6f){const _0x186346=_0x202c6f['match'](/^\[(\d{13})\]\s/);function _0x32ec0b(_0x4b09cd,_0x9e0558){return _0x28051b(_0x4b09cd,_0x9e0558- -0x49);}if(!_0x186346)return null;const _0xf02417=Number(_0x186346[0x1]);return Number[_0x32ec0b(0x6c7,0x57e)](_0xf02417)?_0xf02417:null;}function clampLines(_0x43f10a){const _0x47a360={_0x30954c:0x714,_0x4ab630:0x620,_0x303c9e:0x2d,_0x283bd0:0x536,_0x5ac06c:0x450},_0x2826cf={_0xe5598e:0x72d};function _0xd9856c(_0x365940,_0x42691b){return _0x180075(_0x365940,_0x42691b- -0x2c0);}function _0x5e2d8e(_0x3e4af1,_0x18b057){return _0x180075(_0x18b057,_0x3e4af1- -_0x2826cf._0xe5598e);}if(!Number[_0xd9856c(_0x47a360._0x30954c,_0x47a360._0x4ab630)](_0x43f10a))return 0xc8;return Math[_0x5e2d8e(-_0x47a360._0x303c9e,0x134)](0x1,Math['min'](0x7d0,Math[_0xd9856c(_0x47a360._0x283bd0,_0x47a360._0x5ac06c)](_0x43f10a)));}async function checkGatewayReachable(_0x191f9a){const _0x20d009={_0x378982:0x13c,_0x3200ee:0x9d,_0x3a948a:0xcf,_0x2031aa:0x295,_0x31996c:0x4ac},_0x490dc7={_0x338c7c:0x5bc,_0x5cb1f5:0x7cb,_0x1258a4:0x54a,_0x5e9fb9:0x706},_0x3364af={_0x41ad29:0x18c,_0x617318:0x27d},_0x1b24e7={_0x523d0d:0x4cc},_0x575367={_0x2fa1d0:0x1e},_0x3bc6fc={_0x1e2757:0x3fd};function _0xa9fef7(_0x5bcbcc,_0x139206){return _0x28051b(_0x5bcbcc,_0x139206- -_0x3bc6fc._0x1e2757);}function _0x321371(_0x41a4e9,_0x52e336){return _0x28051b(_0x41a4e9,_0x52e336- -_0x575367._0x2fa1d0);}try{const _0x817936=new URL(_0x191f9a),_0x16c5c8=_0x817936[_0xa9fef7(-0x253,-_0x20d009._0x378982)]||_0xa9fef7(0x141,_0x20d009._0x3200ee)+'1',_0x3d0053=_0x817936['port']?Number(_0x817936[_0xa9fef7(-0x21f,-_0x20d009._0x3a948a)]):_0x817936[_0xa9fef7(_0x20d009._0x2031aa,0x16a)]===_0x321371(0x3f6,_0x20d009._0x31996c)?0x1bb:0x50;return await new Promise((_0x4f8702,_0x3f71d5)=>{const _0x516d44={_0x108c05:0x789},_0x194c08={_0x352ab6:0x3ae},_0x3b43ae={_0x2dec44:0x4d,_0x332774:0x193},_0x4faf26=new Socket();_0x4faf26[_0x1d214c(0x605,_0x490dc7._0x338c7c)+'ut'](0x384),_0x4faf26[_0x1d214c(0x5f5,_0x490dc7._0x5cb1f5)](_0x28af52(_0x490dc7._0x1258a4,0x6b9),()=>{function _0x4271de(_0x17714e,_0x7bfd3e){return _0x1d214c(_0x17714e- -0x60a,_0x7bfd3e);}_0x4faf26[_0x4271de(-_0x3b43ae._0x2dec44,_0x3b43ae._0x332774)](),_0x4f8702();}),_0x4faf26['once'](_0x1d214c(0x63a,0x717),()=>{_0x4faf26['destroy']();function _0x4fc915(_0x320874,_0x45452d){return _0x1d214c(_0x320874- -0x2ee,_0x45452d);}_0x3f71d5(new Error(_0x4fc915(0x34c,_0x1b24e7._0x523d0d)));}),_0x4faf26['once'](_0x1d214c(0x79a,0x953),_0x587dba=>{_0x4faf26[_0x428eea(-_0x3364af._0x41ad29,-_0x3364af._0x617318)]();function _0x428eea(_0x3ac9f2,_0x45a443){return _0x28af52(_0x3ac9f2- -0x36e,_0x45a443);}_0x3f71d5(_0x587dba);});function _0x28af52(_0x1260b1,_0x157ed8){return _0xa9fef7(_0x157ed8,_0x1260b1-_0x194c08._0x352ab6);}function _0x1d214c(_0x95e857,_0x3b271a){return _0xa9fef7(_0x3b271a,_0x95e857-_0x516d44._0x108c05);}_0x4faf26[_0x28af52(0x54a,_0x490dc7._0x5e9fb9)](_0x3d0053,_0x16c5c8);}),!![];}catch{return![];}}function parseLookbackToMs(_0x4b75fd){const _0x3a3fb1={_0x4640e8:0x736,_0x5dc69b:0x5ba,_0x39351c:0x483,_0x406242:0x8b,_0x52bc5d:0x300,_0x3d7b0c:0x166,_0x29bd54:0x217,_0x23fa00:0x68,_0x2be2ce:0xb6,_0x59dc0e:0x4af,_0x1f7d66:0x690,_0x57025a:0x7c3,_0x131fb7:0x91f,_0x274c85:0x74b},_0x18658d={};_0x18658d[_0x4e37eb(_0x3a3fb1._0x4640e8,_0x3a3fb1._0x5dc69b)]=function(_0x67e896,_0x13bf32){return _0x67e896===_0x13bf32;};function _0x4e37eb(_0x3bbda5,_0x4dec30){return _0x180075(_0x3bbda5,_0x4dec30- -0x158);}const _0x2870e6=_0x18658d,_0x28366f=_0x4b75fd?.[_0x4e37eb(0x52b,_0x3a3fb1._0x39351c)]();if(!_0x28366f)return null;const _0x53813c=_0x28366f[_0x180db4(-0xe3,_0x3a3fb1._0x406242)](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x53813c)throw new Error(_0x4e37eb(_0x3a3fb1._0x52bc5d,0x474)+_0x180db4(_0x3a3fb1._0x3d7b0c,_0x3a3fb1._0x29bd54)+_0x180db4(-0x164,_0x3a3fb1._0x23fa00)+_0x28366f+(_0x180db4(-0x1c7,-_0x3a3fb1._0x2be2ce)+_0x4e37eb(_0x3a3fb1._0x59dc0e,_0x3a3fb1._0x1f7d66)+_0x4e37eb(_0x3a3fb1._0x57025a,0x77d)+'2m,\x201h,\x20'+_0x4e37eb(0x8b8,0x7ab)));function _0x180db4(_0x10a418,_0x5bd785){return _0x180075(_0x10a418,_0x5bd785- -0x603);}const _0x21c94c=Number(_0x53813c[0x1]),_0x11fadb=_0x53813c[0x2][_0x4e37eb(0x503,0x4bc)+_0x4e37eb(_0x3a3fb1._0x131fb7,_0x3a3fb1._0x274c85)](),_0x3d6dd6=_0x11fadb==='ms'?0x1:_0x11fadb==='s'?0x3e8:_0x2870e6[_0x180db4(0x1ef,0x10f)](_0x11fadb,'m')?0xea60:_0x11fadb==='h'?0x36ee80:0x5265c00;return _0x21c94c*_0x3d6dd6;}import{readFileSync as _0x53d84d}from'fs';import{dirname as _0x55b753,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x2abeb1={_0x262ea8:0x75},_0x25422f={_0x24054b:0x15e},_0x53db45={_0x16c7d9:0x3c8},_0x55ea81=_0x55b753(fileURLToPath(import.meta.url)),_0x5a879a=resolve(_0x55ea81,'../packa'+_0x38a4f8(-0x1e7,-0x19a));function _0x38a4f8(_0x30eaac,_0x34307d){return _0x28051b(_0x30eaac,_0x34307d- -_0x53db45._0x16c7d9);}const _0x15c600=_0x53d84d(_0x5a879a,'utf8'),_0x51d1fc=JSON['parse'](_0x15c600);function _0x23f291(_0x435376,_0xe8b534){return _0x28051b(_0xe8b534,_0x435376- -_0x25422f._0x24054b);}return _0x51d1fc['version']??_0x38a4f8(-0xde,-_0x2abeb1._0x262ea8);}function buildPairingJson(_0x45036a,_0x5e8c42,_0x20d3ab,_0x500700){const _0x535c4f={_0x54bc3b:0x626,_0x19db5a:0x4b2,_0x5b2383:0x3f6,_0x3d845a:0x5a3,_0x2177bc:0x7b4,_0x18f6b7:0x5dc,_0x49ca24:0x6b4,_0x58397a:0x596,_0x3104dd:0x5d0,_0x549a3a:0x646,_0x425952:0x3d2,_0x332d88:0x937,_0xd8b4ed:0x514,_0x51f9ba:0x5c8,_0x3e483e:0x5b9,_0x4faa09:0x619,_0x3dc95c:0x676,_0x5b1173:0x70d,_0x5f0504:0x732,_0x5dbbdb:0x284,_0x1f4b32:0x410,_0x234daf:0x44d,_0x2db71d:0x53e,_0x3ae86d:0x787,_0x40e646:0x3c5,_0x119f1a:0x64a,_0x39f126:0x40a,_0x1fd149:0x4dc,_0x1e5855:0x54b,_0x2dc6d4:0x498},_0x2bbf8d={_0x457716:0x13b},_0x4b68e4={};_0x4b68e4[_0x26f889(_0x535c4f._0x54bc3b,_0x535c4f._0x19db5a)+'d']=_0x20d3ab[_0x395f47(_0x535c4f._0x5b2383,_0x535c4f._0x3d845a)+'d'],_0x4b68e4[_0x395f47(0x491,0x4e3)]=_0x20d3ab['running'],_0x4b68e4[_0x26f889(0x889,0x7b4)]=_0x20d3ab[_0x26f889(0x6d9,_0x535c4f._0x2177bc)],_0x4b68e4['serviceP'+_0x26f889(0x76c,0x598)]=_0x20d3ab['serviceP'+'ath'],_0x4b68e4[_0x395f47(0x66c,0x686)]=_0x20d3ab['logPath'],_0x4b68e4[_0x395f47(_0x535c4f._0x18f6b7,_0x535c4f._0x49ca24)+'Path']=_0x20d3ab[_0x395f47(0x5dc,_0x535c4f._0x58397a)+'Path'],_0x4b68e4['pid']=_0x20d3ab[_0x395f47(_0x535c4f._0x3104dd,_0x535c4f._0x549a3a)];const _0x3843b3={};_0x3843b3['ok']=!![];function _0x395f47(_0x311912,_0xfbda4){return _0x28051b(_0xfbda4,_0x311912-_0x2bbf8d._0x457716);}_0x3843b3['action']=_0x45036a[_0x26f889(_0x535c4f._0x425952,0x43c)];function _0x26f889(_0x4455ec,_0x299e56){return _0x28051b(_0x4455ec,_0x299e56-0x1f7);}return _0x3843b3[_0x26f889(_0x535c4f._0x332d88,0x74a)]=_0x500700,_0x3843b3[_0x395f47(0x4e3,_0x535c4f._0xd8b4ed)+'d']=_0x45036a[_0x395f47(0x680,_0x535c4f._0x51f9ba)]['gatewayI'+'d'],_0x3843b3[_0x26f889(0x418,_0x535c4f._0x3e483e)]=_0x45036a[_0x395f47(0x680,_0x535c4f._0x4faa09)][_0x26f889(0x757,0x5b9)],_0x3843b3[_0x395f47(_0x535c4f._0x3dc95c,_0x535c4f._0x5b1173)+'l']=_0x45036a['config'][_0x26f889(0x698,_0x535c4f._0x5f0504)+'l'],_0x3843b3[_0x26f889(_0x535c4f._0x5dbbdb,_0x535c4f._0x1f4b32)+'Id']=_0x45036a['config'][_0x26f889(0x52c,_0x535c4f._0x1f4b32)+'Id'],_0x3843b3[_0x395f47(0x53e,_0x535c4f._0x234daf)+'de']=_0x45036a['accessCo'+'de'],_0x3843b3[_0x395f47(_0x535c4f._0x2db71d,0x6fa)+_0x395f47(0x6ba,_0x535c4f._0x3ae86d)+_0x395f47(_0x535c4f._0x40e646,0x483)]=_0x45036a[_0x26f889(_0x535c4f._0x119f1a,0x5fa)+_0x395f47(0x6ba,0x7f8)+_0x395f47(0x3c5,0x577)],_0x3843b3[_0x395f47(0x417,_0x535c4f._0x39f126)+_0x395f47(_0x535c4f._0x1fd149,0x5ac)]=_0x5e8c42,_0x3843b3[_0x26f889(_0x535c4f._0x1e5855,_0x535c4f._0x2dc6d4)]=_0x4b68e4,_0x3843b3;}import{mkdirSync as _0x1e5f4e,writeFileSync as _0x469957}from'fs';import{dirname as _0x5780bf,isAbsolute,join as _0x2a00b0,resolve as _0x1f54c9}from'path';import _0xdf8e7d from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0xfdd001,_0x166003){const _0x106a16={_0x533cfd:0xec,_0xc049bd:0xc9,_0x1275e3:0xca,_0x346291:0x5bf,_0x52387e:0x4c0,_0x3a2352:0x653,_0x27b178:0x5a2,_0x584ef4:0x19b,_0x18f908:0xb9,_0x123267:0x12b},_0x280f37={_0x35c271:0x288},_0xdf9c62={'hkKpz':function(_0x30fc7d,_0x893259,_0x17b769){return _0x30fc7d(_0x893259,_0x17b769);},'UNsWV':'image/pn'+'g'},_0x34cabb=_0xdf9c62[_0x5a4bb5(_0x106a16._0x533cfd,_0x106a16._0xc049bd)](resolveQrOutputPath,_0xfdd001,_0x166003),_0x549799={};_0x549799['recursiv'+'e']=!![],_0x1e5f4e(_0x5780bf(_0x34cabb),_0x549799);const _0x59585d={};_0x59585d[_0x5a4bb5(0x119,0x71)]=_0xdf9c62[_0x5a4bb5(-_0x106a16._0x1275e3,0xda)],_0x59585d[_0x4f9dd8(_0x106a16._0x346291,0x487)+_0x4f9dd8(_0x106a16._0x52387e,0x3cc)+_0x4f9dd8(_0x106a16._0x3a2352,_0x106a16._0x27b178)]='M',_0x59585d[_0x5a4bb5(0x254,_0x106a16._0x584ef4)]=0x1,_0x59585d[_0x5a4bb5(-_0x106a16._0x18f908,-0x62)]=0x2d0;const _0x1d6c6e=await _0xdf8e7d[_0x4f9dd8(0x3c1,0x45b)+'L'](_0xfdd001['qrPayloa'+'d'],_0x59585d);function _0x4f9dd8(_0x362d6b,_0x407740){return _0x28051b(_0x362d6b,_0x407740-0x43);}const _0x1c6265=_0x1d6c6e['replace'](/^data:image\/png;base64,/,'');_0x469957(_0x34cabb,Buffer['from'](_0x1c6265,_0x5a4bb5(0x15f,_0x106a16._0x123267)));function _0x5a4bb5(_0x49de68,_0x1400db){return _0x28051b(_0x49de68,_0x1400db- -_0x280f37._0x35c271);}return _0x34cabb;}function resolveQrOutputPath(_0x15ef7c,_0x1e0657){const _0x5b78a5={_0x158640:0x1c3,_0x761d8d:0x4bd},_0xc51b43={_0x2beb16:0x3a1};function _0x373813(_0xd50c23,_0x188f13){return _0x180075(_0xd50c23,_0x188f13- -_0xc51b43._0x2beb16);}const _0x4f43ec=_0x1e0657?.[_0x373813(_0x5b78a5._0x158640,0x23a)]();function _0x1662e2(_0x2e7bc3,_0x49bd69){return _0x180075(_0x2e7bc3,_0x49bd69- -0x71b);}if(_0x4f43ec)return isAbsolute(_0x4f43ec)?_0x4f43ec:_0x1f54c9(_0x4f43ec);return _0x2a00b0(DEFAULT_QR_DIR,_0x15ef7c[_0x373813(0x4f7,_0x5b78a5._0x761d8d)]['gatewayI'+'d']+'.png');}function decidePairServiceAction(_0x59fd68,_0x151e3c){const _0x2d0625={_0x580b30:0x1bf,_0x56ccf0:0x30,_0x18eec9:0x3ab,_0x2cefe4:0x287,_0x1f0abc:0x3a,_0x5b545c:0x2e4,_0x46532a:0x3c2,_0x170a01:0x206,_0x1ab477:0x2e6},_0x13479f={_0x47fdb6:0x550},_0xbadda4={};function _0x37ec2e(_0x25ef34,_0x174353){return _0x180075(_0x25ef34,_0x174353- -_0x13479f._0x47fdb6);}function _0x1f7db7(_0x2f193e,_0x4b0723){return _0x180075(_0x4b0723,_0x2f193e- -0x415);}_0xbadda4['CShwW']='register'+'ed';const _0x235aa5=_0xbadda4;if(!_0x151e3c[_0x1f7db7(_0x2d0625._0x580b30,-_0x2d0625._0x56ccf0)+'d'])return'install';if(!_0x151e3c[_0x1f7db7(0x25a,0x367)])return _0x37ec2e(_0x2d0625._0x18eec9,_0x2d0625._0x2cefe4);if(_0x59fd68[_0x37ec2e(_0x2d0625._0x1f0abc,0xe)]===_0x235aa5[_0x1f7db7(_0x2d0625._0x5b545c,0x3a6)])return _0x1f7db7(_0x2d0625._0x46532a,_0x2d0625._0x170a01);return _0x37ec2e(_0x2d0625._0x1ab477,0x1b8);}async function main(){const _0x4f5ec3={_0x54dbdb:0x7d8,_0x3560c4:0x9b0,_0x55b2ad:0x2bf,_0x17e9ad:0x39f,_0x1cce27:0x379,_0x57ae07:0x324,_0x14c52b:0x1a2,_0x1b4922:0x586,_0x12dfcd:0x47b,_0x47efd4:0x49b,_0x17b8ac:0x4ca,_0x28d0c9:0x655,_0x1d1378:0x3a2,_0x3c09d3:0x762,_0x56e3fb:0x60a,_0x238a4b:0x7ed,_0xd136a8:0x54f,_0x3d3a18:0x7b8,_0x5b5f02:0x61d,_0x25b5d7:0x4fa,_0x4edafa:0x32c,_0x14520c:0x69c,_0x2089cf:0x740,_0x107cc8:0x593,_0x4a4508:0x404,_0x4b2653:0x5f0,_0x2fa8d4:0x6d0,_0x56c4f9:0x67d,_0x5aee68:0x59e,_0x389811:0x5f4,_0xf8d38c:0x5e6,_0x7c8292:0x487,_0x36e1af:0x35c,_0x282dfb:0x421,_0x34089d:0x3a1,_0x5c0465:0x359,_0x14c9c5:0x4f6,_0x5d3107:0x42e,_0x48b502:0x4ab,_0x3f7a75:0x4a8,_0x414589:0x554,_0x26e262:0x3be,_0x4c39f8:0x4f6,_0x491abf:0x4ce,_0xe3ad27:0x5a2,_0x2ef094:0x5e7,_0x1b0a16:0x446,_0x3e2747:0x308,_0x3af726:0x7c7,_0x2afeeb:0x80e,_0x2ae4a3:0x817,_0x34bf99:0x2ee,_0x55b562:0x5ed,_0x351c8f:0x4a7,_0x3c971e:0x4dc,_0x2e55eb:0x669,_0x4057e1:0x735,_0xcdfd09:0x54c,_0x50bcf0:0x428,_0x582831:0x289,_0xd74f2:0x595,_0x1377b3:0x3cd,_0x45d8d5:0x4a9,_0x3af1b9:0x40e,_0x57be49:0x32b,_0x301b60:0x40c,_0x4bf3a6:0x53d,_0x1a6ce7:0x666,_0x5a51dd:0x5dd,_0xdacd3c:0x2ee,_0x330c40:0x4b7,_0x446845:0x73f,_0x13d167:0x53f,_0x4e4c16:0x5a0,_0x29e5f6:0x47e,_0x1daa7a:0x4f7,_0x42c7b0:0x8fa,_0xfd5ce5:0x4a2,_0x16109a:0x639,_0x1b9643:0x576,_0x3e60db:0x41e,_0x16ddfd:0x4c6,_0xc16a8d:0x5d7,_0x2d9a15:0x3a7,_0xf48d40:0x2ba,_0x32e9b3:0x52d,_0x2f4ba3:0x4b7,_0xd7c4b2:0x5bd,_0x76d2d9:0x673,_0x119f1f:0x527,_0x2dc04f:0x5dc,_0x3490a9:0x3f4,_0x415e74:0x76a,_0x1c0f4e:0x74e,_0x3028bc:0x47c,_0x29df37:0x488,_0x45e700:0x714,_0x51918d:0x526,_0x753456:0x32b,_0x17d598:0x6d6,_0x520900:0x757,_0x3aa699:0x78a,_0xb0e82d:0x6f3,_0x473caa:0x4a8,_0x22ca1f:0x6db,_0x5a389f:0x569,_0x4240f8:0x599,_0x5e8911:0x7a3,_0x28536a:0x4ed,_0x4c0e53:0x7d2,_0x3ec287:0x6c1,_0x5c5732:0x622,_0x3d327a:0x6c5,_0x350ea9:0x650,_0x4ffaea:0x8f4,_0x5b4c2c:0x480,_0x52a080:0x549,_0x464249:0x451,_0x276282:0x8a4,_0x3906e9:0x3f3,_0x17fcec:0x3cc,_0x37b38e:0x34c,_0x3bc539:0x210,_0x3749bb:0x44e,_0x2bdc6e:0x265,_0x52bc41:0x742,_0x4b53cb:0x51e,_0xef38d8:0x4cd,_0x489c02:0x337,_0x2e5940:0x482,_0x47ba4e:0x440,_0x578cbe:0x181,_0x56c7b0:0x5ed,_0x2a0811:0x551,_0x1596a7:0x4f3,_0x3c4ca9:0x57d,_0x542eeb:0x588,_0x426f28:0x60d,_0x12ac87:0x5e5,_0x39db77:0x701,_0x35d14b:0x61e,_0x27c6c1:0x517,_0x4e4e6c:0x56e,_0x9e96c5:0x4eb,_0x3c2d39:0x55e,_0x52e2bb:0x55c,_0x9a9f6a:0x373,_0x1ab9ae:0x5b0,_0x1b3ca5:0x641,_0x35e6d7:0x51d,_0x35bcf1:0x6d8,_0x4e96fb:0x2e4,_0x23a473:0x32e,_0x2d18cd:0x34c,_0x1726b8:0x501,_0x4e3965:0x362,_0x3517dd:0x4a8,_0x2a2034:0x397,_0x4434e5:0x33f,_0xfc08f5:0x2c2,_0x1f3c7e:0x34c,_0x56b722:0x262,_0x4519f9:0x68b,_0x53be05:0x469,_0x49fa70:0x688,_0x1d8947:0x827,_0x2a6b65:0x8e0,_0x1d9af6:0x47d,_0x3998f7:0x581,_0x42600e:0x3e7,_0x313508:0x3aa,_0x4ad98b:0x50e},_0xd12e96={_0x76565e:0x45f,_0x3a21fc:0x4af,_0x387b52:0xfd,_0x3c412f:0x125,_0x375af0:0x67,_0x2a9da:0x8e},_0x347bc5={_0x7f882c:0xb5},_0x2b4ace={_0x157bfa:0x12f,_0x1fec01:0x188,_0xb7ffae:0x3d5,_0x5c0204:0x538,_0x5d3606:0x2b0,_0x1d8817:0x4d9,_0x472fb6:0x41c,_0x262b32:0x2b7,_0x26ad66:0xe6,_0x5bd190:0x298},_0x2458ec={_0x1bd203:0x609},_0xb1e613={_0x2645b3:0x363,_0x825c1:0x2a9,_0xf6e1eb:0x667,_0x59b763:0x2fe,_0x20b7e7:0x5e4,_0x57084d:0x9e,_0x3c88b1:0x54a,_0x13870e:0x494,_0x4ea1b8:0x373,_0x5e6f05:0x63d,_0x27c72e:0x59a,_0x27292e:0x3dd,_0x373f35:0x396,_0x3da797:0x357,_0xc2d119:0x6f6,_0x4e2e81:0x23e,_0x43a39c:0x422,_0x3bec84:0x3f7,_0x1a945f:0x27f,_0x3e3961:0x505,_0x4b239a:0x258,_0x22b734:0x53f},_0xe7d548={_0x4c96c4:0x708},_0x49e121={_0x3168b4:0xc8};function _0x5b86aa(_0x14280e,_0x1a168c){return _0x180075(_0x1a168c,_0x14280e- -0x270);}const _0x3fc9f6={'dRzRu':'help','pdeMV':function(_0x5d04c8,_0x42277b,_0x107a26){return _0x5d04c8(_0x42277b,_0x107a26);},'qegcd':_0x43d275(_0x4f5ec3._0x54dbdb,_0x4f5ec3._0x3560c4)+'e','yyjyc':_0x5b86aa(_0x4f5ec3._0x55b2ad,0x209),'dfgId':function(_0x5aad29,_0x62509c,_0x3a6707){return _0x5aad29(_0x62509c,_0x3a6707);},'oLAax':function(_0x54b26e){return _0x54b26e();},'BUelZ':function(_0x2eb5a5,_0x5d645e,_0x1ba12f){return _0x2eb5a5(_0x5d645e,_0x1ba12f);},'DqqBZ':function(_0x39c2e9,_0x57b447,_0x266fb4){return _0x39c2e9(_0x57b447,_0x266fb4);},'vwxWD':function(_0x251b1f,_0x30d3b6,_0x2467a0,_0x1e5ad0,_0x29880e){return _0x251b1f(_0x30d3b6,_0x2467a0,_0x1e5ad0,_0x29880e);},'oFkfP':function(_0x11d56c,_0x4ae786,_0x3dd66c){return _0x11d56c(_0x4ae786,_0x3dd66c);},'LAUaT':function(_0x5dbb49,_0x12c0a4){return _0x5dbb49===_0x12c0a4;},'tXEBa':function(_0x2b9fdb,_0x43a984,_0x53f39a,_0x4ba549,_0x38c0b8){return _0x2b9fdb(_0x43a984,_0x53f39a,_0x4ba549,_0x38c0b8);},'OSiQN':_0x5b86aa(0x30d,_0x4f5ec3._0x17e9ad)+'code','BJJif':function(_0x69c152){return _0x69c152();},'YOgCp':function(_0x5dd667,_0x4cd3eb){return _0x5dd667 in _0x4cd3eb;},'tosBt':function(_0x2ab2c5,_0x26592d){return _0x2ab2c5(_0x26592d);},'CxJXh':function(_0x5ddf82,_0x3f6544,_0x1e4378){return _0x5ddf82(_0x3f6544,_0x1e4378);},'UaxuB':function(_0x4308ab,_0xf23264){return _0x4308ab===_0xf23264;},'pcLlJ':_0x43d275(0x6c3,0x70d),'TEExX':_0x5b86aa(_0x4f5ec3._0x1cce27,0x559)+_0x5b86aa(_0x4f5ec3._0x57ae07,_0x4f5ec3._0x14c52b)+_0x43d275(0x45f,_0x4f5ec3._0x1b4922)+'ce.','LNXke':function(_0x45d98c){return _0x45d98c();},'IowFe':function(_0x354371,_0x1dec7f,_0x409888){return _0x354371(_0x1dec7f,_0x409888);},'vBgZO':function(_0x6cfd74){return _0x6cfd74();},'ESUPU':function(_0xab66c7){return _0xab66c7();},'tlupt':_0x5b86aa(0x4cd,_0x4f5ec3._0x12dfcd),'dWWiU':function(_0x741021,_0x46b0c8,_0x277663){return _0x741021(_0x46b0c8,_0x277663);},'DwzUN':function(_0xa951ff,_0x40ee2c){return _0xa951ff(_0x40ee2c);},'WyJeQ':function(_0x547766,_0xeed111){return _0x547766===_0xeed111;},'UQVGh':_0x5b86aa(0x599,_0x4f5ec3._0x47efd4),'RvuPS':'--gatewa'+'y-url','daUwa':'Starting'+_0x43d275(_0x4f5ec3._0x17b8ac,0x693)+_0x5b86aa(_0x4f5ec3._0x28d0c9,0x7eb)+_0x5b86aa(0x30b,_0x4f5ec3._0x1d1378)+_0x43d275(0x726,0x5a1)+_0x43d275(_0x4f5ec3._0x3c09d3,0x671)},[,,_0x18b0eb=_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x56e3fb,0x7bb)],..._0x32cf17]=process['argv'],_0x8ae2bc=_0x3fc9f6[_0x43d275(_0x4f5ec3._0x238a4b,0x8d8)](hasFlag,_0x32cf17,_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0xd136a8,0x644)]),_0x33652e=hasFlag(_0x32cf17,_0x43d275(_0x4f5ec3._0x3d3a18,0x742));if(_0x18b0eb===_0x3fc9f6['yyjyc']){const _0x3aad89=hasFlag(_0x32cf17,_0x43d275(0x55c,0x63d));!_0x3aad89&&await ensurePairPrerequisites();const _0x337a3d=resolveGatewayAuth();if(_0x43d275(0x613,_0x4f5ec3._0x5b5f02)in _0x337a3d)throw new Error(_0x337a3d[_0x43d275(0x613,0x4dd)]);const _0x48e018=_0x3fc9f6[_0x43d275(0x7c3,0x817)](readFlag,_0x32cf17,_0x43d275(0x6e4,0x67e))??_0x3fc9f6[_0x5b86aa(0x667,0x743)](readFlag,_0x32cf17,'-s')??_0x5b86aa(_0x4f5ec3._0x25b5d7,_0x4f5ec3._0x4edafa)+'registry'+_0x5b86aa(0x64a,0x49a)+'.ai',_0x37ea4e=readFlag(_0x32cf17,_0x5b86aa(_0x4f5ec3._0x14520c,0x50a))??readFlag(_0x32cf17,'-n')??_0x3fc9f6[_0x43d275(0x6f3,0x78f)](getDefaultBridgeDisplayName),_0x827c7e=readFlag(_0x32cf17,'--qr-fil'+'e'),_0x4c0c10={};_0x4c0c10[_0x43d275(_0x4f5ec3._0x2089cf,0x8ac)+'l']=_0x48e018,_0x4c0c10[_0x5b86aa(_0x4f5ec3._0x107cc8,_0x4f5ec3._0x4a4508)+_0x43d275(0x752,_0x4f5ec3._0x4b2653)]=_0x37ea4e,_0x4c0c10[_0x5b86aa(0x478,0x653)+_0x43d275(0x7fc,_0x4f5ec3._0x2fa8d4)]=_0x337a3d['token'],_0x4c0c10['gatewayP'+_0x43d275(0x53c,_0x4f5ec3._0x56c4f9)]=_0x337a3d['password'];const _0x5d69fa=await pairGateway(_0x4c0c10),_0x538f8a=await _0x3fc9f6[_0x43d275(0x710,0x8ad)](writePairingQrPng,_0x5d69fa,_0x827c7e),_0x2fffca=getServiceStatus(),_0x3eff13=_0x3fc9f6[_0x43d275(_0x4f5ec3._0x5aee68,0x600)](decidePairServiceAction,_0x5d69fa,_0x2fffca);if(_0x3eff13===_0x43d275(_0x4f5ec3._0x389811,_0x4f5ec3._0xf8d38c)){_0x33652e?printJson(_0x3fc9f6['vwxWD'](buildPairingJson,_0x5d69fa,_0x538f8a,_0x2fffca,_0x43d275(_0x4f5ec3._0x7c8292,_0x4f5ec3._0x36e1af)+_0x5b86aa(0x303,0x167)+_0x43d275(_0x4f5ec3._0x282dfb,_0x4f5ec3._0x34089d)+_0x5b86aa(_0x4f5ec3._0x5c0465,0x4e2)+_0x43d275(0x51c,0x4ff)+_0x43d275(_0x4f5ec3._0x14c9c5,0x54d)+_0x5b86aa(0x402,_0x4f5ec3._0x5d3107))):(_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x48b502,0x4a8)](printPairingInfo,_0x5d69fa,_0x538f8a),console[_0x43d275(_0x4f5ec3._0x3f7a75,_0x4f5ec3._0x414589)](_0x43d275(0x487,_0x4f5ec3._0x26e262)+'nd\x20servi'+'ce\x20alrea'+'dy\x20runni'+'ng.\x20Left'+_0x43d275(_0x4f5ec3._0x4c39f8,_0x4f5ec3._0x491abf)+_0x43d275(0x55e,0x53b)),printServiceResult(null,_0x2fffca));return;}try{const _0x27a840=_0x3eff13===_0x43d275(_0x4f5ec3._0xe3ad27,_0x4f5ec3._0x2ef094)?installService():restartService(),_0x521d17=_0x3eff13===_0x5b86aa(_0x4f5ec3._0x1b0a16,_0x4f5ec3._0x3e2747)?_0x43d275(_0x4f5ec3._0x3af726,_0x4f5ec3._0x2afeeb)+_0x43d275(0x7f4,0x6e4)+'ackgroun'+_0x5b86aa(0x526,0x67e)+'e.':_0x3fc9f6[_0x43d275(0x6d6,_0x4f5ec3._0x2ae4a3)](_0x5d69fa[_0x5b86aa(_0x4f5ec3._0x34bf99,0x15d)],_0x43d275(_0x4f5ec3._0x55b562,0x47d)+'ed')?_0x43d275(0x5de,_0x4f5ec3._0x351c8f)+_0x5b86aa(0x660,_0x4f5ec3._0x3c971e)+_0x43d275(_0x4f5ec3._0x2e55eb,0x635)+_0x43d275(_0x4f5ec3._0x4057e1,0x8ca)+_0x43d275(_0x4f5ec3._0xcdfd09,0x6ad)+_0x5b86aa(_0x4f5ec3._0x50bcf0,_0x4f5ec3._0x582831)+_0x43d275(_0x4f5ec3._0xd74f2,_0x4f5ec3._0x1377b3)+_0x5b86aa(0x2c9,_0x4f5ec3._0x45d8d5)+_0x43d275(0x48e,_0x4f5ec3._0x3af1b9)+_0x43d275(0x452,0x3aa):_0x5b86aa(_0x4f5ec3._0x57be49,_0x4f5ec3._0x301b60)+_0x43d275(0x45f,0x479)+_0x5b86aa(0x62a,0x71c)+_0x43d275(_0x4f5ec3._0x4bf3a6,_0x4f5ec3._0x1a6ce7)+_0x5b86aa(_0x4f5ec3._0x5a51dd,0x73a)+_0x5b86aa(0x4df,0x32b)+_0x5b86aa(0x370,_0x4f5ec3._0xdacd3c)+'it.';_0x33652e?printJson(_0x3fc9f6[_0x43d275(0x46a,0x353)](buildPairingJson,_0x5d69fa,_0x538f8a,_0x27a840,_0x521d17)):(printPairingInfo(_0x5d69fa,_0x538f8a),printServiceResult(_0x521d17,_0x27a840));}catch(_0x32ee46){console[_0x5b86aa(_0x4f5ec3._0x330c40,0x5d8)](_0x43d275(0x714,0x6fb)+'succeede'+_0x43d275(_0x4f5ec3._0x446845,0x6e7)+_0x43d275(_0x4f5ec3._0x13d167,_0x4f5ec3._0x4e4c16)+_0x5b86aa(0x443,_0x4f5ec3._0x29e5f6)+'n\x20failed'+':\x20'+formatError(_0x32ee46)),console[_0x43d275(0x613,_0x4f5ec3._0x1daa7a)](_0x43d275(0x7de,_0x4f5ec3._0x42c7b0)+'still\x20ru'+'n\x20\x22clawk'+'et\x20insta'+_0x5b86aa(0x36d,0x1ed)+_0x43d275(_0x4f5ec3._0xfd5ce5,0x391)+'run\x22\x20man'+_0x5b86aa(_0x4f5ec3._0x16109a,_0x4f5ec3._0x1b9643)),process['exitCode']=0x1;}return;}if(_0x18b0eb===_0x3fc9f6['OSiQN']){const _0x398b73=readFlag(_0x32cf17,_0x5b86aa(0x3d9,_0x4f5ec3._0x3e60db)+'e'),_0xca8ea5=_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x16ddfd,_0x4f5ec3._0xc16a8d)](resolveGatewayAuth);if(_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x2d9a15,_0x4f5ec3._0xf48d40)](_0x5b86aa(0x4b7,_0x4f5ec3._0x32e9b3),_0xca8ea5))throw new Error(_0xca8ea5[_0x5b86aa(_0x4f5ec3._0x2f4ba3,_0x4f5ec3._0xd7c4b2)]);const _0x415df5={};_0x415df5[_0x43d275(0x5d4,_0x4f5ec3._0x76d2d9)+_0x5b86aa(0x6a0,0x861)]=_0xca8ea5['token'],_0x415df5[_0x43d275(_0x4f5ec3._0x119f1f,_0x4f5ec3._0x2dc04f)+'assword']=_0xca8ea5[_0x43d275(0x48d,_0x4f5ec3._0x3490a9)];const _0x2abb73=await _0x3fc9f6[_0x43d275(_0x4f5ec3._0x415e74,_0x4f5ec3._0x1c0f4e)](refreshAccessCode,_0x415df5),_0x3dd4a0=await _0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x3028bc,_0x4f5ec3._0x29df37)](writePairingQrPng,_0x2abb73,_0x398b73);_0x33652e?printJson(buildPairingJson(_0x2abb73,_0x3dd4a0,getServiceStatus(),_0x43d275(_0x4f5ec3._0x45e700,0x6d0)+_0x43d275(0x6f6,_0x4f5ec3._0x51918d)+_0x43d275(0x4f7,_0x4f5ec3._0x753456))):printPairingInfo(_0x2abb73,_0x3dd4a0);return;}function _0x43d275(_0x31faf9,_0xba6fbd){return _0x180075(_0xba6fbd,_0x31faf9- -0x114);}if(_0x3fc9f6[_0x43d275(_0x4f5ec3._0x17d598,_0x4f5ec3._0x520900)](_0x18b0eb,_0x43d275(0x5a2,_0x4f5ec3._0x3aa699))){const _0x56a300=requirePairingConfig(),_0x2ca615=_0x3fc9f6[_0x43d275(_0x4f5ec3._0xb0e82d,0x74e)](installService);console[_0x43d275(_0x4f5ec3._0x473caa,0x620)](_0x43d275(_0x4f5ec3._0x22ca1f,0x5bb)+_0x5b86aa(_0x4f5ec3._0x5a389f,_0x4f5ec3._0x4240f8)+_0x43d275(_0x4f5ec3._0x5e8911,0x6a8)+'vice\x20for'+_0x43d275(0x47b,_0x4f5ec3._0x28536a)+'\x20'+_0x56a300['gatewayI'+'d']+'.'),printServiceResult(null,_0x2ca615);return;}if(_0x3fc9f6[_0x43d275(0x78b,0x7ca)](_0x18b0eb,_0x3fc9f6[_0x43d275(_0x4f5ec3._0x4c0e53,_0x4f5ec3._0x3ec287)])){const _0x19d456=_0x3fc9f6[_0x43d275(_0x4f5ec3._0x5c5732,0x591)](requirePairingConfig),_0x15d8e0=restartService();console['log'](_0x43d275(0x47d,0x62e)+_0x43d275(_0x4f5ec3._0x3d327a,_0x4f5ec3._0x350ea9)+_0x43d275(0x7a3,_0x4f5ec3._0x4ffaea)+_0x5b86aa(_0x4f5ec3._0x5b4c2c,_0x4f5ec3._0x52a080)+'\x20gateway'+'\x20'+_0x19d456[_0x5b86aa(_0x4f5ec3._0x464249,0x4bc)+'d']+'.'),_0x3fc9f6[_0x43d275(0x7c3,_0x4f5ec3._0x276282)](printServiceResult,null,_0x15d8e0);return;}if(_0x18b0eb===_0x5b86aa(_0x4f5ec3._0x3906e9,_0x4f5ec3._0x17fcec)){const _0x3c730d=stopService();console[_0x5b86aa(_0x4f5ec3._0x37b38e,_0x4f5ec3._0x3bc539)](_0x3fc9f6['TEExX']),printServiceResult(null,_0x3c730d);return;}if(_0x18b0eb===_0x5b86aa(_0x4f5ec3._0x3749bb,_0x4f5ec3._0x2bdc6e)+'l'){const _0x1fc1db=_0x3fc9f6[_0x43d275(_0x4f5ec3._0x52bc41,0x687)](uninstallService);console['log'](_0x43d275(_0x4f5ec3._0x4b53cb,_0x4f5ec3._0xef38d8)+_0x43d275(0x480,_0x4f5ec3._0x489c02)+_0x5b86aa(0x303,_0x4f5ec3._0x2e5940)+'ce\x20regis'+'tration.'),_0x3fc9f6[_0x43d275(_0x4f5ec3._0x47ba4e,0x269)](printServiceResult,null,_0x1fc1db);return;}if(_0x3fc9f6['UaxuB'](_0x18b0eb,'reset')){stopService(),deletePairingConfig(),console[_0x5b86aa(_0x4f5ec3._0x37b38e,_0x4f5ec3._0x578cbe)](_0x5b86aa(0x5ac,_0x4f5ec3._0x56c7b0)+'pairing\x20'+_0x43d275(0x61f,_0x4f5ec3._0x2a0811)+_0x3fc9f6['vBgZO'](getPairingConfigPath));return;}if(_0x18b0eb===_0x5b86aa(0x2f8,0x30c)){_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x1596a7,0x3ce)](printStatus);return;}if(_0x18b0eb===_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x3c4ca9,0x606)]){const _0x413396=Number(readFlag(_0x32cf17,_0x43d275(0x523,_0x4f5ec3._0x542eeb))??'200'),_0x6a4b78=parseLookbackToMs(readFlag(_0x32cf17,_0x43d275(0x635,0x77a))??_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x426f28,0x7c4)](readFlag,_0x32cf17,'-l')),_0x4274af=readRecentCliLogs({'lines':_0x413396,'lastMs':_0x6a4b78,'includeErrorLog':_0x3fc9f6[_0x43d275(0x5d8,0x782)](hasFlag,_0x32cf17,_0x5b86aa(0x66a,_0x4f5ec3._0x12ac87))});if(_0x33652e){const _0x3f78b8={};_0x3f78b8['ok']=!![],_0x3f78b8[_0x43d275(0x66c,_0x4f5ec3._0x39db77)]=_0x4274af,_0x3fc9f6[_0x43d275(_0x4f5ec3._0x35d14b,_0x4f5ec3._0x27c6c1)](printJson,_0x3f78b8);}else _0x3fc9f6['UaxuB'](_0x4274af[_0x5b86aa(_0x4f5ec3._0x4e4e6c,_0x4f5ec3._0x9e96c5)],0x0)?console['log'](_0x43d275(0x67f,_0x4f5ec3._0x3c2d39)+_0x5b86aa(0x5d0,0x535)+_0x5b86aa(_0x4f5ec3._0x52e2bb,_0x4f5ec3._0x9a9f6a)+_0x5b86aa(0x420,0x40c)):console['log'](_0x4274af['join']('\x0a'));return;}if(_0x3fc9f6[_0x43d275(_0x4f5ec3._0x1ab9ae,_0x4f5ec3._0x1b3ca5)](_0x18b0eb,_0x43d275(0x666,0x66e))){const _0x1c1ba2=await buildDoctorReport();_0x33652e?printJson(_0x1c1ba2):printDoctorReport(_0x1c1ba2);return;}if(_0x18b0eb===_0x3fc9f6[_0x5b86aa(0x2d8,0x407)]){const _0x28692a=requirePairingConfig(),_0x2c1614=_0x3fc9f6[_0x43d275(0x61e,_0x4f5ec3._0x35e6d7)](resolveGatewayUrl,readFlag(_0x32cf17,_0x3fc9f6[_0x43d275(_0x4f5ec3._0x35bcf1,0x4e7)])??_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x4e96fb,_0x4f5ec3._0x23a473)](readFlag,_0x32cf17,'-g')),_0x4bc2a8=_0x1c60e2=>{function _0x4c3e67(_0x4cb075,_0x98710f){return _0x5b86aa(_0x4cb075-0x114,_0x98710f);}console['log']('['+Date[_0x4c3e67(0x456,0x377)]()+']\x20'+_0x1c60e2);};if(!_0x8ae2bc){const _0x1da0a6=(_0x43d275(0x572,0x426)+'1|2')['split']('|');let _0x58e9f4=0x0;while(!![]){switch(_0x1da0a6[_0x58e9f4++]){case'0':console[_0x5b86aa(_0x4f5ec3._0x2d18cd,_0x4f5ec3._0x1726b8)]('');continue;case'1':console['log'](_0x3fc9f6[_0x5b86aa(_0x4f5ec3._0x4e3965,_0x4f5ec3._0x13d167)]);continue;case'2':console[_0x5b86aa(_0x4f5ec3._0x2d18cd,0x4e1)]('');continue;case'3':console[_0x43d275(0x4a8,0x4ad)]('Gateway\x20'+'ID:\x20'+_0x28692a[_0x43d275(0x5ad,0x511)+'d']);continue;case'4':console[_0x43d275(_0x4f5ec3._0x3517dd,0x558)]('Instance'+_0x5b86aa(_0x4f5ec3._0x2a2034,_0x4f5ec3._0x4434e5)+_0x28692a[_0x5b86aa(_0x4f5ec3._0xfc08f5,0x3d0)+'Id']);continue;case'5':console[_0x5b86aa(_0x4f5ec3._0x1f3c7e,_0x4f5ec3._0x56b722)](_0x43d275(_0x4f5ec3._0x4519f9,0x600)+_0x43d275(0x42d,0x5f6)+_0x2c1614);continue;}break;}}else _0x4bc2a8(_0x5b86aa(_0x4f5ec3._0x53be05,0x32a)+'\x20Clawket'+_0x43d275(0x585,_0x4f5ec3._0x350ea9)+_0x5b86aa(_0x4f5ec3._0x49fa70,_0x4f5ec3._0x1d8947)+_0x43d275(0x6fe,_0x4f5ec3._0x2a6b65)+_0x5b86aa(_0x4f5ec3._0x1d9af6,_0x4f5ec3._0x3998f7)+_0x28692a['gatewayI'+'d']);_0x8ae2bc&&_0x3fc9f6['BJJif'](writeServiceState);const _0x2c59c8=new BridgeRuntime({'config':_0x28692a,'gatewayUrl':_0x2c1614,'onLog':_0x4a1704=>{function _0x9d6474(_0x3e7c98,_0x3927e9){return _0x43d275(_0x3927e9-_0x49e121._0x3168b4,_0x3e7c98);}_0x4bc2a8(_0x9d6474(0x626,_0xe7d548._0x4c96c4)+']\x20'+_0x4a1704);},'onStatus':_0x5516a1=>{const _0x15d66d={_0x5639f1:0x18b};if(_0x5516a1[_0x52e120(_0xb1e613._0x2645b3,_0xb1e613._0x825c1)+'r']){_0x4bc2a8(_0x40a5ce(0x5dc,_0xb1e613._0xf6e1eb)+'\x20relay='+(_0x5516a1[_0x40a5ce(_0xb1e613._0x59b763,0x17b)+_0x52e120(0x74b,_0xb1e613._0x20b7e7)]?'up':_0x52e120(0x33a,0x494))+(_0x52e120(_0xb1e613._0x57084d,0x27f)+'=')+(_0x5516a1['gatewayC'+_0x40a5ce(0x588,0x48d)]?'up':_0x52e120(_0xb1e613._0x3c88b1,_0xb1e613._0x13870e))+(_0x52e120(0x22e,_0xb1e613._0x4ea1b8)+'=')+_0x5516a1[_0x40a5ce(_0xb1e613._0x5e6f05,_0xb1e613._0x27c72e)+_0x52e120(_0xb1e613._0x27292e,_0xb1e613._0x373f35)]+'\x20error='+_0x5516a1[_0x40a5ce(0x31a,_0xb1e613._0x3da797)+'r']);return;}function _0x40a5ce(_0x1240fb,_0x2fb8df){return _0x43d275(_0x1240fb- -_0x15d66d._0x5639f1,_0x2fb8df);}function _0x52e120(_0x3ebe11,_0x4bf836){return _0x43d275(_0x4bf836- -0x1fc,_0x3ebe11);}_0x4bc2a8(_0x40a5ce(0x5dc,_0xb1e613._0xc2d119)+_0x40a5ce(0x42a,0x3c8)+(_0x5516a1[_0x52e120(_0xb1e613._0x4e2e81,0x28d)+_0x52e120(_0xb1e613._0x43a39c,0x5e4)]?'up':'down')+(_0x52e120(_0xb1e613._0x3bec84,_0xb1e613._0x1a945f)+'=')+(_0x5516a1['gatewayC'+'onnected']?'up':_0x40a5ce(_0xb1e613._0x3e3961,0x6ea))+(_0x40a5ce(0x3e4,_0xb1e613._0x4b239a)+'=')+_0x5516a1[_0x40a5ce(_0xb1e613._0x5e6f05,_0xb1e613._0x22b734)+_0x52e120(0x2de,0x396)]);},'onPendingPairRequest':_0x1096ff=>{function _0x4d6253(_0x2a440b,_0x4f5066){return _0x43d275(_0x4f5066- -_0x2458ec._0x1bd203,_0x2a440b);}function _0x300cd5(_0x4aa21c,_0x17fff1){return _0x43d275(_0x17fff1- -0x1b1,_0x4aa21c);}_0x4bc2a8(_0x4d6253(_0x2b4ace._0x157bfa,-0xb8)+_0x4d6253(0x35b,_0x2b4ace._0x1fec01)+_0x300cd5(_0x2b4ace._0xb7ffae,_0x2b4ace._0x5c0204)+'='+_0x1096ff['requestI'+'d']+(_0x300cd5(0x38b,_0x2b4ace._0x5d3606)+'d=')+(_0x1096ff[_0x300cd5(_0x2b4ace._0x1d8817,_0x2b4ace._0x472fb6)]||_0x300cd5(0x499,0x2d0)+'>')+_0x300cd5(0xdb,_0x2b4ace._0x262b32)+(_0x1096ff[_0x4d6253(0x1fe,_0x2b4ace._0x26ad66)+_0x4d6253(-0x9d,0x149)]??_0x4d6253(-_0x2b4ace._0x5bd190,-0x188)+'>'));}});_0x2c59c8[_0x5b86aa(0x2c3,_0x4f5ec3._0x42600e)]();const _0x311fdf=async()=>{function _0x22dfe4(_0x1cab1c,_0x2b2d00){return _0x5b86aa(_0x1cab1c-_0x347bc5._0x7f882c,_0x2b2d00);}function _0x55ce14(_0x478caf,_0x26e71d){return _0x5b86aa(_0x26e71d- -0x4b0,_0x478caf);}process['off'](_0x22dfe4(_0xd12e96._0x76565e,_0xd12e96._0x3a21fc),_0x311fdf),process[_0x55ce14(_0xd12e96._0x387b52,_0xd12e96._0x3c412f)]('SIGTERM',_0x311fdf),await _0x2c59c8['stop'](),_0x8ae2bc&&clearServiceState(process[_0x55ce14(-_0xd12e96._0x375af0,_0xd12e96._0x2a9da)]),process['exit'](0x0);};process['on'](_0x5b86aa(_0x4f5ec3._0x313508,0x3d3),_0x311fdf),process['on'](_0x43d275(0x4c4,_0x4f5ec3._0x4ad98b),_0x311fdf),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x493440,_0x513701){const _0x3f5a32={_0xac5b66:0x13f,_0xfa0f59:0x42c,_0x5cf5a2:0x4d3,_0x1c3969:0x199,_0x23f711:0x16b,_0x574ac5:0x377,_0x1846d7:0x9c,_0x36449a:0x48a,_0x520f3b:0x24,_0x56de0f:0x85,_0x52586b:0x32f,_0x5cf357:0xbf,_0x6e963a:0x1a4,_0x1a6bbb:0x71,_0xa3509b:0xe8,_0x447bff:0x491,_0x340c20:0x5eb,_0x3eecf1:0x412,_0x181d84:0x248,_0xe82f99:0x2f1,_0x38fe4d:0x762,_0x46c624:0x7f,_0x4d94bc:0x18b,_0x3a8478:0x583,_0x5397a3:0x585,_0x4fba11:0x28e,_0x440a97:0x296,_0x981c36:0x2a7},_0x5c138e={_0x19dd98:0x69d},_0x22fe55={'ityXf':function(_0x3f7201,_0x3e94bb){return _0x3f7201(_0x3e94bb);}};_0x493440[_0x2efd54(-_0x3f5a32._0xac5b66,-0xd3)]==='refreshe'+'d'&&console[_0x2efd54(-0xe1,-0x1f9)](_0x3c2986(_0x3f5a32._0xfa0f59,_0x3f5a32._0x5cf5a2)+_0x2efd54(-0x8,-_0x3f5a32._0x1c3969)+_0x2efd54(-0x16d,-0x324)+_0x3c2986(0x24e,_0x3f5a32._0x23f711)+_0x3c2986(_0x3f5a32._0x574ac5,0x2b7)+_0x2efd54(0x1ea,_0x3f5a32._0x1846d7)+'e.');console[_0x3c2986(0x2a7,0x15f)](_0x3c2986(_0x3f5a32._0x36449a,0x3d8)+_0x2efd54(0x2b,0x10a)+_0x493440['config'][_0x2efd54(_0x3f5a32._0x520f3b,-0x1aa)+'d']);function _0x3c2986(_0x4f8221,_0x5dc3af){return _0x180075(_0x5dc3af,_0x4f8221- -0x315);}console[_0x2efd54(-0xe1,_0x3f5a32._0x56de0f)](_0x3c2986(_0x3f5a32._0x52586b,0x3e1)+_0x2efd54(_0x3f5a32._0x5cf357,_0x3f5a32._0x6e963a)+_0x2efd54(-_0x3f5a32._0x1a6bbb,_0x3f5a32._0xa3509b)+'e\x20Clawke'+_0x3c2986(0x600,_0x3f5a32._0x447bff));const _0x1abb45={};function _0x2efd54(_0xf4cfc7,_0x808430){return _0x180075(_0x808430,_0xf4cfc7- -_0x5c138e._0x19dd98);}_0x1abb45[_0x3c2986(_0x3f5a32._0x340c20,_0x3f5a32._0x3eecf1)]=!![],_0x175cdc[_0x2efd54(_0x3f5a32._0x181d84,_0x3f5a32._0xe82f99)](_0x493440[_0x2efd54(0xad,0x1b)+'d'],_0x1abb45),console[_0x3c2986(0x2a7,0x1d9)](_0x2efd54(0x144,0xad)+'\x20'+_0x22fe55[_0x3c2986(0x577,_0x3f5a32._0x38fe4d)](formatLocalTime,_0x493440[_0x2efd54(_0x3f5a32._0x46c624,_0x3f5a32._0x4d94bc)+_0x3c2986(_0x3f5a32._0x3a8478,_0x3f5a32._0x5397a3)+_0x3c2986(_0x3f5a32._0x4fba11,_0x3f5a32._0x440a97)])),console[_0x3c2986(_0x3f5a32._0x981c36,0x102)]('QR\x20image'+':\x20'+_0x513701);}function printStatus(){const _0x5d9100={_0x46044b:0x46b,_0x4397ae:0x1c1,_0x51e91a:0x628,_0x370fe9:0x46c,_0x3f45ff:0x376,_0x1c955c:0x2be,_0x1f42c7:0x305,_0x9ebe41:0x3b7,_0x598454:0x222,_0x51a160:0x480,_0x4b4369:0x405,_0x18457e:0x413,_0x399867:0x3dc,_0x348f50:0x207,_0x4d2d52:0x307,_0x32f4cc:0x424,_0x40d941:0x4a7,_0x40b9cf:0x59f,_0x177218:0x307,_0x4f4b28:0x178,_0x287c68:0x4cc,_0x5dbbd7:0x53f,_0x272ed9:0x388,_0x4fac00:0x5c2,_0x79d351:0x227,_0x570321:0x23c,_0x3b2c1f:0x31f,_0x120536:0x4ae,_0x755750:0x3f7,_0x9a320b:0x110,_0xb88872:0x222,_0x3899bc:0x2fd,_0x5b2494:0x189,_0x50e48a:0x595,_0x426cf6:0x3c6,_0x455557:0x323,_0x56c34a:0x307,_0x59a4a2:0x56a,_0x4e7a25:0x405,_0x809ffd:0x35b,_0xeb0da8:0x36c,_0xd0127d:0x51c,_0x13330f:0x222,_0x3b9780:0x560,_0x3545cc:0x3d5},_0x173126={_0x23b1eb:0x39a};function _0x593aac(_0x3b93f1,_0x71d19a){return _0x180075(_0x3b93f1,_0x71d19a- -0x2b5);}const _0x3e7811={'vdhdy':function(_0x39efa){return _0x39efa();},'CKPlt':_0x593aac(0x3f0,0x2b8)},_0x37c3ee=_0x3e7811[_0xa35f04(0x533,_0x5d9100._0x46044b)](readPairingConfig),_0x5da1bb=getServiceStatus(),{logPath:_0x29327d,errorLogPath:_0x4807fa}=getServicePaths(),_0x181a13=readCliVersion();console[_0x593aac(_0x5d9100._0x4397ae,0x307)]('Version:'+'\x20'+_0x181a13);!_0x37c3ee?console[_0xa35f04(0x12d,0x222)]('Config:\x20'+_0xa35f04(_0x5d9100._0x51e91a,_0x5d9100._0x370fe9)+_0x593aac(0x73e,0x611)+getPairingConfigPath()+')'):(console['log'](_0xa35f04(_0x5d9100._0x3f45ff,_0x5d9100._0x1c955c)+_0x593aac(_0x5d9100._0x1f42c7,0x2ff)),console[_0xa35f04(_0x5d9100._0x9ebe41,_0x5d9100._0x598454)](_0xa35f04(_0x5d9100._0x51a160,_0x5d9100._0x4b4369)+_0x593aac(0x270,_0x5d9100._0x18457e)+_0x37c3ee['gatewayI'+'d']),console[_0xa35f04(0x22d,0x222)](_0xa35f04(0x4ca,_0x5d9100._0x399867)+':\x20'+_0x37c3ee['instance'+'Id']),console[_0x593aac(_0x5d9100._0x348f50,_0x5d9100._0x4d2d52)]('Server\x20U'+_0xa35f04(_0x5d9100._0x32f4cc,0x44d)+_0x37c3ee[_0x593aac(_0x5d9100._0x40d941,_0x5d9100._0x40b9cf)+'l']),console[_0x593aac(0x287,_0x5d9100._0x177218)](_0xa35f04(_0x5d9100._0x4f4b28,0x25a)+(_0x37c3ee['displayN'+_0xa35f04(0x427,_0x5d9100._0x287c68)]??'-')));console[_0xa35f04(0x2f4,0x222)](_0x593aac(0x691,_0x5d9100._0x5dbbd7)+'\x20'+resolveGatewayUrl());function _0xa35f04(_0x5e636f,_0xa2515b){return _0x180075(_0x5e636f,_0xa2515b- -_0x173126._0x23b1eb);}console[_0xa35f04(_0x5d9100._0x272ed9,0x222)](_0xa35f04(_0x5d9100._0x4fac00,0x47d)+'\x20'+(_0x5da1bb[_0xa35f04(_0x5d9100._0x79d351,0x23a)+'d']?_0x593aac(_0x5d9100._0x570321,_0x5d9100._0x3b2c1f)+'d':_0xa35f04(_0x5d9100._0x120536,_0x5d9100._0x755750)+_0xa35f04(0x24b,0x2b3))+'\x20('+_0x5da1bb[_0x593aac(0x7bb,0x621)]+')'),console[_0xa35f04(_0x5d9100._0x9a320b,_0x5d9100._0xb88872)](_0x593aac(_0x5d9100._0x3899bc,0x463)+'\x20'+(_0x5da1bb[_0xa35f04(_0x5d9100._0x5b2494,0x2d5)]?_0x3e7811[_0xa35f04(_0x5d9100._0x50e48a,_0x5d9100._0x426cf6)]:'no')),console[_0x593aac(_0x5d9100._0x455557,_0x5d9100._0x56c34a)]('Path:\x20'+(_0x5da1bb['serviceP'+_0x593aac(_0x5d9100._0x59a4a2,_0x5d9100._0x4e7a25)]||'-')),console[_0xa35f04(_0x5d9100._0x809ffd,0x222)](_0xa35f04(_0x5d9100._0xeb0da8,_0x5d9100._0xd0127d)+_0x29327d),console[_0xa35f04(0x14e,_0x5d9100._0x13330f)](_0x593aac(0x411,0x473)+_0xa35f04(0x5a6,_0x5d9100._0x3b9780)+_0x4807fa),!_0x37c3ee&&(process[_0x593aac(_0x5d9100._0x3545cc,0x35c)]=0x1);}function printServiceResult(_0x35131f,_0x4d9458){const _0x261d5b={_0x20493f:0x883,_0x38dbbf:0x639,_0x167289:0x621,_0x12abfc:0x180,_0x3a2c82:0x7e,_0x43fdaf:0x1f9,_0x1d1535:0x1cd,_0x437c22:0x741,_0x31d010:0x73f},_0xa1c607={_0x3ec0cb:0x454},_0x363c5f={};_0x363c5f[_0x434dfd(0x7d7,_0x261d5b._0x20493f)]=_0x434dfd(0x5ff,_0x261d5b._0x38dbbf)+'d,\x20stopp'+'ed';function _0x311fae(_0x49a9c0,_0x280192){return _0x180075(_0x49a9c0,_0x280192- -_0xa1c607._0x3ec0cb);}function _0x434dfd(_0x5e7f42,_0x5c69e6){return _0x180075(_0x5e7f42,_0x5c69e6-0x65);}const _0x4ac916=_0x363c5f;_0x35131f&&console[_0x434dfd(0x464,_0x261d5b._0x167289)](_0x35131f),console[_0x311fae(0x2cc,0x168)]('Service:'+'\x20'+(_0x4d9458[_0x311fae(0x11a,_0x261d5b._0x12abfc)+'d']?_0x4d9458[_0x434dfd(0x818,0x6d4)]?'installe'+'d,\x20runni'+'ng':_0x4ac916[_0x311fae(0x4eb,0x3ca)]:_0x434dfd(0x7a0,0x7f6)+_0x311fae(_0x261d5b._0x3a2c82,_0x261d5b._0x43fdaf))),console[_0x311fae(0x29f,0x168)](_0x311fae(_0x261d5b._0x1d1535,0x375)+_0x434dfd(0x818,_0x261d5b._0x437c22)+(_0x4d9458[_0x434dfd(_0x261d5b._0x31d010,0x90d)+_0x434dfd(0x6f6,0x71f)]||'-'));}function printDoctorReport(_0x4809a){const _0x1c19dc={_0x4a1e4c:0x53,_0x134874:0x11c,_0x5d66e7:0xe7,_0x54b5fd:0x3d4,_0x25e17c:0x2a9,_0x261da1:0x423,_0x4f7f86:0x116,_0x13a663:0x20f,_0x50025e:0x3f,_0x199786:0x108,_0x425022:0x528,_0x3108f3:0x558,_0x25c9c3:0xcc,_0x54a6c7:0x2cc,_0x5f127e:0x6bb,_0x5cf6fe:0x6f4,_0x1ac82c:0x542,_0x43514e:0xcd,_0x324b60:0x1d0,_0x22eb83:0x5dd,_0x3a035b:0xa1,_0x56991a:0x399,_0x3fe0fa:0x3e3,_0x5a31f6:0x43b,_0x3db649:0x4da,_0xabf9ec:0x5f8,_0x36081d:0x140,_0x562fe7:0x5f,_0x2e0b4e:0x28f,_0x2a80ec:0x716,_0x213e24:0x626,_0x4fb3fe:0x50,_0xd989e7:0xcd,_0x340277:0x77e,_0x518295:0x630,_0x3ef37d:0xcf,_0x2797d8:0x20,_0x334e82:0xcd,_0x41f21c:0x5d,_0x153c72:0xea,_0x421468:0x11,_0x3e193e:0x580,_0x51da36:0x76b,_0x34f0d0:0xdf,_0xe0fe49:0x3d,_0xb91ad6:0x11a,_0x2a3b55:0x1fa,_0x51b527:0x27f,_0x5082b8:0xe8,_0x2f5e47:0x437,_0x3aa27a:0x4b6,_0x28974b:0x8d3,_0x343410:0x228,_0x5b8683:0x546,_0x61c2fc:0x501,_0x1e2866:0x4b8,_0x68b1dd:0x7e,_0x2dd3ea:0x24a,_0x59e285:0x1fa,_0x2de254:0x53b,_0x394bf2:0x662,_0x465d5b:0x6b8,_0x2e7e78:0x20c,_0x3e4720:0x304,_0x1f04e6:0x423,_0x13c7b9:0x119,_0x4adfcb:0xf4,_0x3d212f:0x75d,_0x1091d9:0x83,_0x18c76b:0x16c},_0x43eb1a={_0x293185:0x689},_0x2d8831={_0x47ef85:0x199},_0x35f660={};_0x35f660[_0x1a54cc(0x83,_0x1c19dc._0x4a1e4c)]=_0x1a54cc(-_0x1c19dc._0x134874,-0xb);const _0xd93498=_0x35f660;console['log'](_0x1a54cc(_0x1c19dc._0x5d66e7,0x10e)+(_0x4809a['paired']?_0x3625fd(0x52b,_0x1c19dc._0x54b5fd):'no')),console[_0x3625fd(_0x1c19dc._0x25e17c,_0x1c19dc._0x261da1)](_0x1a54cc(_0x1c19dc._0x4f7f86,_0x1c19dc._0x13a663)+_0x1a54cc(_0x1c19dc._0x50025e,-_0x1c19dc._0x199786)+(_0x4809a[_0x3625fd(0x418,_0x1c19dc._0x425022)+'d']??'-')),console[_0x3625fd(_0x1c19dc._0x3108f3,0x423)](_0x1a54cc(-_0x1c19dc._0x25c9c3,-0x14c)+_0x1a54cc(0x15e,_0x1c19dc._0x54a6c7)+(_0x4809a[_0x3625fd(0x83f,_0x1c19dc._0x5f127e)+'l']??'-')),console[_0x3625fd(0x542,_0x1c19dc._0x261da1)](_0x3625fd(0x849,_0x1c19dc._0x5cf6fe)+'L:\x20'+(_0x4809a[_0x3625fd(0x434,_0x1c19dc._0x1ac82c)]??'-')),console[_0x1a54cc(-_0x1c19dc._0x43514e,-_0x1c19dc._0x324b60)](_0x3625fd(0x6cd,_0x1c19dc._0x22eb83)+_0x1a54cc(-0x82,-_0x1c19dc._0x3a035b)+(_0x4809a[_0x3625fd(0x2b7,_0x1c19dc._0x56991a)+'Id']??'-'));function _0x3625fd(_0x44dbc7,_0x1dca2c){return _0x180075(_0x44dbc7,_0x1dca2c- -_0x2d8831._0x47ef85);}console['log']('Service:'+'\x20'+(_0x4809a['serviceI'+'nstalled']?_0x3625fd(_0x1c19dc._0x3fe0fa,_0x1c19dc._0x5a31f6)+'d':_0x3625fd(_0x1c19dc._0x3db649,_0x1c19dc._0xabf9ec)+_0x3625fd(0x5b3,0x4b4))+'\x20('+_0x4809a['serviceM'+_0x1a54cc(0xa0,0xa9)]+')'),console['log'](_0x1a54cc(_0x1c19dc._0x36081d,_0x1c19dc._0x562fe7)+_0x1a54cc(0x17f,_0x1c19dc._0x2e0b4e)+'\x20'+(_0x4809a[_0x3625fd(_0x1c19dc._0x2a80ec,0x69b)+_0x3625fd(_0x1c19dc._0x213e24,0x470)]?_0xd93498[_0x1a54cc(0x83,_0x1c19dc._0x4fb3fe)]:'no')),console[_0x1a54cc(-_0x1c19dc._0xd989e7,0x91)](_0x3625fd(_0x1c19dc._0x340277,_0x1c19dc._0x518295)+_0x1a54cc(_0x1c19dc._0x4a1e4c,_0x1c19dc._0x3ef37d)+(_0x4809a[_0x3625fd(0x65f,0x70f)+'ath']||'-')),console['log'](_0x1a54cc(-_0x1c19dc._0x2797d8,-0x137)+':\x20'+_0x4809a[_0x1a54cc(0x1c1,-0xe)]),console[_0x1a54cc(-_0x1c19dc._0x334e82,-_0x1c19dc._0x41f21c)](_0x1a54cc(-_0x1c19dc._0x153c72,-_0x1c19dc._0x421468)+_0x3625fd(0x77f,0x6fe)+_0x4809a[_0x3625fd(0x61f,0x621)+_0x3625fd(_0x1c19dc._0x3e193e,_0x1c19dc._0x51da36)]),console[_0x1a54cc(-0xcd,-0x111)](_0x1a54cc(-_0x1c19dc._0x34f0d0,0x6d)+_0x1a54cc(-_0x1c19dc._0xe0fe49,_0x1c19dc._0xb91ad6)+_0x4809a[_0x1a54cc(_0x1c19dc._0x2a3b55,_0x1c19dc._0x51b527)+_0x1a54cc(0x16c,0x34f)+'r']);function _0x1a54cc(_0x1af9dc,_0x1be8a4){return _0x180075(_0x1be8a4,_0x1af9dc- -_0x43eb1a._0x293185);}console['log'](_0x1a54cc(-0xdf,_0x1c19dc._0x5082b8)+_0x3625fd(0x415,_0x1c19dc._0x2f5e47)+_0x4809a['openclaw'+'MediaDir']),console[_0x3625fd(0x35e,0x423)]('OpenClaw'+_0x3625fd(0x53f,_0x1c19dc._0x3aa27a)+'\x20'+(_0x4809a[_0x3625fd(_0x1c19dc._0x28974b,0x6ea)+_0x1a54cc(-0xc1,-0x145)+_0x1a54cc(-0xeb,-_0x1c19dc._0x343410)]?_0x3625fd(_0x1c19dc._0x5b8683,_0x1c19dc._0x61c2fc):'missing')),console[_0x3625fd(_0x1c19dc._0x1e2866,0x423)](_0x3625fd(0x5a2,0x411)+_0x1a54cc(_0x1c19dc._0x68b1dd,_0x1c19dc._0x2dd3ea)+(_0x4809a[_0x1a54cc(_0x1c19dc._0x59e285,0x23a)+_0x3625fd(_0x1c19dc._0x2de254,_0x1c19dc._0x394bf2)+'nd']?'found':_0x3625fd(0x661,_0x1c19dc._0x465d5b))),console['log'](_0x1a54cc(0x116,0x1e1)+'URL:\x20'+_0x4809a[_0x3625fd(0x48c,0x432)+_0x1a54cc(_0x1c19dc._0x2e7e78,_0x1c19dc._0x3e4720)]),console[_0x3625fd(0x607,_0x1c19dc._0x1f04e6)](_0x1a54cc(_0x1c19dc._0x4f7f86,0x55)+_0x1a54cc(_0x1c19dc._0x13c7b9,_0x1c19dc._0x4adfcb)+_0x3625fd(0x5e5,_0x1c19dc._0x3d212f)+(_0x4809a['localGat'+_0x3625fd(0x6d0,0x696)+'hable']?_0xd93498[_0x1a54cc(_0x1c19dc._0x1091d9,-_0x1c19dc._0x18c76b)]:'no'));}function requirePairingConfig(){const _0x56ab3d={_0x4db11f:0x31,_0x28f436:0xd1,_0x4a6ae4:0x298,_0x4e0ea2:0xa0,_0x2a029d:0x9d},_0x2a3919=readPairingConfig();!_0x2a3919&&(console['error'](_0x383d90(0x28,_0x56ab3d._0x4db11f)+'ed.\x20Run\x20'+'\x22clawket'+_0x383d90(_0x56ab3d._0x28f436,_0x56ab3d._0x4a6ae4)+_0x383d90(_0x56ab3d._0x4e0ea2,-_0x56ab3d._0x2a029d)+_0x383d90(0x103,0x11f)+_0x383d90(0x83,0x20a)+getPairingConfigPath()),process[_0x3e3ed6(0x4ec,0x43c)](0x1));function _0x383d90(_0x339963,_0x481178){return _0x28051b(_0x481178,_0x339963- -0x2f5);}function _0x3e3ed6(_0x152163,_0xaebc96){return _0x28051b(_0x152163,_0xaebc96-0x207);}return _0x2a3919;}function readFlag(_0x2242d2,_0x334adf){const _0xeb465={_0x556ece:0x338,_0x3490ca:0x2d7,_0x9b5407:0x5e};function _0x40a9a8(_0x3a89b3,_0x2f803e){return _0x28051b(_0x2f803e,_0x3a89b3-0x329);}const _0x1d8e20=_0x2242d2[_0x12769c(_0xeb465._0x556ece,_0xeb465._0x3490ca)](_0x334adf);if(_0x1d8e20<0x0)return null;const _0x3a2c33=_0x2242d2[_0x1d8e20+0x1];function _0x12769c(_0x4b384f,_0x168dc2){return _0x28051b(_0x168dc2,_0x4b384f- -0x264);}return _0x3a2c33?.[_0x12769c(0x5e,0xbd)]()?_0x3a2c33[_0x12769c(_0xeb465._0x9b5407,0x112)]():null;}function hasFlag(_0x4abae7,_0x57b2d9){return _0x4abae7['includes'](_0x57b2d9);}function printHelp(){const _0xdde4={_0x276555:0x972,_0x498f18:0x562,_0x2ec6f8:0x357,_0x14c495:0x6c2,_0x396372:0x526,_0x5379b5:0x62a,_0x300249:0x519,_0x2b32ea:0x318,_0x10d68f:0x207,_0x1c3a27:0x402,_0x1dabf5:0x850,_0x116a7e:0x93,_0x178428:0xc8,_0x4d6cdc:0x92,_0x10ac7b:0xdd,_0x17e448:0x7b0,_0x1cfb8c:0x6e4,_0x5e8f06:0x6e5,_0x18bfd1:0x12e,_0x584efb:0x662,_0x23a19d:0x8,_0x54488b:0x60f,_0xf641b1:0x19a,_0x12f01f:0x21e,_0x387d0f:0x55f,_0x38c767:0x60e,_0x3ff507:0x910,_0x633351:0x562,_0x47a372:0x622,_0x5094c8:0x220,_0xa6262c:0x2b1,_0x10ea42:0x14c,_0x5385c0:0x517,_0x20f942:0x6b1,_0x3a49e8:0x2e2,_0x4608b1:0x36c},_0x19ba74={};_0x19ba74[_0x20849d(_0xdde4._0x276555,0x8bd)]=_0x20849d(0x6d6,_0xdde4._0x498f18)+'pair\x20[--'+_0x20849d(_0xdde4._0x2ec6f8,0x515)+'url>]\x20[-'+_0x20849d(_0xdde4._0x14c495,0x59b)+_0x20849d(_0xdde4._0x396372,_0xdde4._0x5379b5)+_0x20849d(0x78d,0x63f)+_0x20849d(_0xdde4._0x300249,0x6e5)+_0x20849d(0x606,0x7bf)+_0x4712ca(_0xdde4._0x2b32ea,_0xdde4._0x10d68f)+_0x20849d(_0xdde4._0x1c3a27,0x5da)+'e]';function _0x20849d(_0x4e820d,_0x1433f9){return _0x28051b(_0x4e820d,_0x1433f9-0x2c5);}_0x19ba74[_0x20849d(_0xdde4._0x1dabf5,0x727)]=_0x4712ca(-_0xdde4._0x116a7e,0x116)+_0x4712ca(0x194,_0xdde4._0x178428);function _0x4712ca(_0x2e61ca,_0x1173d0){return _0x28051b(_0x2e61ca,_0x1173d0- -0x187);}const _0x3ad077=_0x19ba74;console['log']([_0x3ad077[_0x4712ca(0x368,0x471)],'clawket\x20'+_0x4712ca(_0xdde4._0x4d6cdc,_0xdde4._0x10ac7b)+_0x20849d(0x7d4,_0xdde4._0x17e448)+_0x20849d(_0xdde4._0x1cfb8c,_0xdde4._0x5e8f06)+_0x20849d(0x916,0x7bf)+_0x4712ca(_0xdde4._0x18bfd1,0x207),'clawket\x20'+_0x20849d(0x6b6,_0xdde4._0x584efb),_0x20849d(0x41e,0x562)+'restart',_0x4712ca(_0xdde4._0x23a19d,0x116)+_0x20849d(0x556,_0xdde4._0x54488b),_0x4712ca(0x2d8,0x116)+_0x4712ca(_0xdde4._0xf641b1,_0xdde4._0x12f01f)+'l',_0x20849d(_0xdde4._0x387d0f,_0xdde4._0x498f18)+_0x20849d(_0xdde4._0x38c767,0x677),_0x3ad077[_0x20849d(_0xdde4._0x3ff507,0x727)],_0x20849d(0x625,_0xdde4._0x633351)+_0x20849d(_0xdde4._0x47a372,0x663)+_0x4712ca(_0xdde4._0x5094c8,0x26e)+_0x4712ca(0x150,_0xdde4._0xa6262c)+_0x4712ca(0x29d,0x2b3)+_0x4712ca(_0xdde4._0x10ea42,0x316)+_0x20849d(0x49b,_0xdde4._0x5385c0)+_0x20849d(_0xdde4._0x20f942,0x6ca),_0x4712ca(_0xdde4._0x3a49e8,0x116)+_0x20849d(0x8e5,0x876)+'--json]',_0x20849d(0x425,0x562)+'run\x20[--g'+'ateway-u'+'rl\x20<ws:/'+_0x4712ca(0x522,_0xdde4._0x4608b1)+_0x4712ca(0x407,0x294)+'>]'][_0x4712ca(0x11e,0x28e)]('\x0a'));}function formatLocalTime(_0x403d13){const _0x48d89b={_0x56ae12:0x559,_0x4f1c7f:0x466};function _0x2b7de6(_0x2ab038,_0x10d89f){return _0x180075(_0x2ab038,_0x10d89f- -0x1d4);}const _0x245c04=new Date(_0x403d13);if(Number['isNaN'](_0x245c04[_0x2b7de6(_0x48d89b._0x56ae12,_0x48d89b._0x4f1c7f)]()))return _0x403d13;return _0x245c04['toLocale'+'String']();}function formatError(_0x54e033){const _0x19b1c7={_0x186275:0x26b};function _0x3725de(_0x176339,_0x36984e){return _0x28051b(_0x36984e,_0x176339- -0x2e8);}return _0x54e033 instanceof Error?_0x54e033[_0x3725de(_0x19b1c7._0x186275,0x1d9)]:String(_0x54e033);}function printJson(_0x1e60e4){const _0x4a6ebb={_0x226ae4:0x377,_0xf80cbe:0x3f4};function _0x1eb4cf(_0x22aa78,_0x4acaa0){return _0x28051b(_0x4acaa0,_0x22aa78-0xd4);}console[_0x1eb4cf(_0x4a6ebb._0x226ae4,_0x4a6ebb._0xf80cbe)](JSON['stringif'+'y'](_0x1e60e4,null,0x2));}main()[_0x180075(0x959,0x8fc)](_0x478520=>{const _0x368c82={_0x56f4ed:0x2fb,_0x1a035e:0x4ef,_0x305dd5:0x121,_0x544e65:0x122},_0x307394={_0xa10f90:0x42c},_0x3ca344={'DFben':function(_0x11cd92,_0x3eadea){return _0x11cd92(_0x3eadea);}};function _0x25bdc1(_0x19adbf,_0x27d60e){return _0x180075(_0x27d60e,_0x19adbf- -_0x307394._0xa10f90);}console[_0x25bdc1(_0x368c82._0x56f4ed,_0x368c82._0x1a035e)](_0x3ca344[_0x25bdc1(0x2de,_0x368c82._0x305dd5)](formatError,_0x478520));function _0x4997de(_0xc5f9bc,_0x257a79){return _0x180075(_0x257a79,_0xc5f9bc- -0x6ae);}process[_0x25bdc1(_0x368c82._0x544e65,0x18a)](0x1);});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@p697/clawket",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Clawket CLI for pairing and running the Relay bridge runtime",