@p697/clawket 0.2.3 → 0.2.4

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(_0x4975c9,_0xbb92b6){const _0x1c40d1={_0x20db77:0x516,_0x375277:0x6d,_0x50158a:0x105,_0x53a578:0xae,_0x4665be:0x65,_0x46d3da:0x283,_0x24336c:0xb9,_0x3edeec:0x78,_0x5ad90f:0x55a,_0x28a045:0x5ee,_0x4b703e:0x2cd,_0xd76acb:0x230},_0x222f81={_0x3af2f0:0x34f},_0x1d9916={_0x595267:0x398},_0x30e963=_0x4975c9();function _0x4fac4f(_0x2a9cca,_0x4c1289){return _0x1bf0(_0x4c1289-_0x1d9916._0x595267,_0x2a9cca);}function _0x1b376e(_0xc7b4f1,_0x2a0f6d){return _0x1bf0(_0xc7b4f1- -_0x222f81._0x3af2f0,_0x2a0f6d);}while(!![]){try{const _0x46f059=parseInt(_0x4fac4f(0x5c2,_0x1c40d1._0x20db77))/0x1*(-parseInt(_0x1b376e(_0x1c40d1._0x375277,_0x1c40d1._0x50158a))/0x2)+parseInt(_0x1b376e(-_0x1c40d1._0x53a578,-0x23e))/0x3*(-parseInt(_0x1b376e(-0xa1,-0xea))/0x4)+-parseInt(_0x1b376e(_0x1c40d1._0x4665be,-0x23))/0x5+parseInt(_0x1b376e(0x14c,-0x53))/0x6*(parseInt(_0x1b376e(-0x28e,-_0x1c40d1._0x46d3da))/0x7)+-parseInt(_0x1b376e(-_0x1c40d1._0x24336c,_0x1c40d1._0x3edeec))/0x8+parseInt(_0x4fac4f(_0x1c40d1._0x5ad90f,_0x1c40d1._0x28a045))/0x9*(parseInt(_0x1b376e(-0x242,-_0x1c40d1._0x4b703e))/0xa)+parseInt(_0x1b376e(-0x294,-_0x1c40d1._0xd76acb))/0xb;if(_0x46f059===_0xbb92b6)break;else _0x30e963['push'](_0x30e963['shift']());}catch(_0x9787e0){_0x30e963['push'](_0x30e963['shift']());}}}(_0x5c01,0x5d317));const _0x2de8b0=(function(){let _0x347d3c=!![];return function(_0x4e7c4d,_0x1148d7){const _0x528385=_0x347d3c?function(){function _0x1f4e49(_0x2e4466,_0x2692aa){return _0x1bf0(_0x2e4466-0x337,_0x2692aa);}if(_0x1148d7){const _0x1516f2=_0x1148d7[_0x1f4e49(0x60f,0x49b)](_0x4e7c4d,arguments);return _0x1148d7=null,_0x1516f2;}}:function(){};return _0x347d3c=![],_0x528385;};}()),_0x2cad2f=_0x2de8b0(this,function(){const _0x2c7ba8={_0x265e6d:0x216,_0x3e7c80:0x9,_0x1ea031:0x41f,_0x469945:0x2cf,_0x470873:0x2c4,_0x46a65e:0x70b,_0x1331f6:0x735,_0xc07056:0x21c,_0x3dbac9:0x3d5,_0x298751:0x8d,_0x4b8621:0x341,_0x3d359d:0x18e},_0x3c56cf={};function _0x30a848(_0x37c939,_0x2ec6d9){return _0x1bf0(_0x37c939- -0x56,_0x2ec6d9);}_0x3c56cf[_0x30a848(_0x2c7ba8._0x265e6d,0x4f)]=_0x30a848(0x14e,-_0x2c7ba8._0x3e7c80)+'+)+$';function _0x2a200f(_0x19f506,_0x4b8f94){return _0x1bf0(_0x19f506-0x311,_0x4b8f94);}const _0x399057=_0x3c56cf;return _0x2cad2f[_0x30a848(_0x2c7ba8._0x1ea031,_0x2c7ba8._0x469945)]()[_0x30a848(0x276,_0x2c7ba8._0x470873)](_0x399057[_0x2a200f(0x57d,_0x2c7ba8._0x46a65e)])['toString']()[_0x2a200f(0x6ea,_0x2c7ba8._0x1331f6)+_0x30a848(_0x2c7ba8._0xc07056,_0x2c7ba8._0x3dbac9)](_0x2cad2f)[_0x30a848(0x276,_0x2c7ba8._0x298751)](_0x2a200f(0x4b5,_0x2c7ba8._0x4b8621)+_0x30a848(0x1b8,_0x2c7ba8._0x3d359d));});_0x2cad2f();import _0x23ba85 from'qrcode-terminal';import{readFileSync as _0x236477}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(),_0x9ec63e(0x1f5,0x2fb)),CONFIG_PATH=join(CONFIG_DIR,_0x431448(0x328,0x146)+_0x431448(0x441,0x2f5)),OPENCLAW_CONFIG_PATH=join(homedir(),_0x9ec63e(0x16a,0x2c0)+'w',_0x431448(0x48e,0x333)+_0x431448(0xdd,0x100));function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x307a38={_0x1cd230:0x346,_0x1e0c52:0x19b,_0x39b02e:0x2be,_0x1a9b86:0x10f,_0x1f9e64:0x251,_0x76422b:0x454,_0x35a155:0x175,_0x514053:0x256,_0x3c6ca1:0x3ed,_0xace8da:0x240,_0x3b7c11:0x1da,_0x1f4573:0x304,_0x2b021e:0x2c4,_0x5ebccc:0x15c,_0x598d96:0x35f,_0x4742ae:0x514,_0x15a53b:0x3f0,_0x14aa05:0x354,_0x406980:0x650,_0x2b543a:0x6f7,_0x3abc8a:0x382,_0x1f7578:0x3fc,_0x371288:0x80},_0x32c5cc={_0x533cfa:0xb};function _0x1b415b(_0x1b82e8,_0xcabe8c){return _0x9ec63e(_0x1b82e8-0x26d,_0xcabe8c);}const _0x38d212={'EouiY':function(_0xd5b861,_0x2a0b98){return _0xd5b861(_0x2a0b98);},'eBTvI':function(_0x5210f3,_0x5a7811){return _0x5210f3!==_0x5a7811;}};if(!_0x38d212[_0x1b415b(0x618,0x4ed)](existsSync,CONFIG_PATH))return null;function _0x4ecbc7(_0x32c3d1,_0x2f0443){return _0x9ec63e(_0x32c3d1- -_0x32c5cc._0x533cfa,_0x2f0443);}try{const _0x5fbe36=JSON[_0x4ecbc7(0x1af,_0x307a38._0x1cd230)](readFileSync(CONFIG_PATH,_0x4ecbc7(_0x307a38._0x1e0c52,_0x307a38._0x39b02e)));if(!_0x5fbe36[_0x4ecbc7(_0x307a38._0x1a9b86,_0x307a38._0x1f9e64)+'l']||!_0x5fbe36[_0x1b415b(_0x307a38._0x76422b,0x42d)+'d']||!_0x5fbe36['relaySec'+_0x4ecbc7(_0x307a38._0x35a155,0x13)]||!_0x5fbe36[_0x4ecbc7(0x2d6,0x25b)])return null;const _0x2fc01d={'serverUrl':_0x5fbe36[_0x4ecbc7(_0x307a38._0x1a9b86,_0x307a38._0x514053)+'l'],'gatewayId':_0x5fbe36[_0x4ecbc7(0x1dc,0x223)+'d'],'relaySecret':_0x5fbe36['relaySec'+_0x1b415b(_0x307a38._0x3c6ca1,0x227)],'relayUrl':_0x5fbe36[_0x4ecbc7(0x2d6,_0x307a38._0xace8da)],'instanceId':_0x5fbe36[_0x4ecbc7(_0x307a38._0x3b7c11,_0x307a38._0x1f4573)+'Id']?.[_0x4ecbc7(_0x307a38._0x2b021e,_0x307a38._0x5ebccc)]()||createInstanceId(),'displayName':_0x5fbe36[_0x4ecbc7(_0x307a38._0x598d96,_0x307a38._0x4742ae)+'ame']??null,'createdAt':_0x5fbe36[_0x1b415b(0x3bd,_0x307a38._0x15a53b)+'t']??new Date()[_0x4ecbc7(0x3a3,0x425)+_0x1b415b(0x3fd,_0x307a38._0x14aa05)](),'updatedAt':_0x5fbe36[_0x1b415b(_0x307a38._0x406980,_0x307a38._0x2b543a)+'t']??new Date()[_0x1b415b(0x61b,0x78d)+_0x1b415b(0x3fd,_0x307a38._0x3abc8a)]()};return _0x38d212[_0x1b415b(0x44b,_0x307a38._0x1f7578)](_0x5fbe36['instance'+'Id'],_0x2fc01d[_0x4ecbc7(0x1da,_0x307a38._0x371288)+'Id'])&&writePairingConfig(_0x2fc01d),_0x2fc01d;}catch{return null;}}function writePairingConfig(_0x31c6b9){const _0x222ccf={_0x2c68f:0x483,_0xfc7e7b:0x2e8};function _0xb9c264(_0x19cc33,_0x2ca8cc){return _0x431448(_0x2ca8cc,_0x19cc33-0x15b);}function _0x1b1115(_0x59d4b5,_0x41f786){return _0x431448(_0x41f786,_0x59d4b5- -0x201);}const _0xba77f3={'kTYlM':function(_0x290d37,_0x23781c,_0x2bcdae){return _0x290d37(_0x23781c,_0x2bcdae);},'DqOod':function(_0x321879,_0x5bedd7,_0x1fac98,_0x102935){return _0x321879(_0x5bedd7,_0x1fac98,_0x102935);}},_0xfa488={};_0xfa488['recursiv'+'e']=!![],_0xba77f3['kTYlM'](mkdirSync,CONFIG_DIR,_0xfa488),_0xba77f3['DqOod'](writeFileSync,CONFIG_PATH,JSON[_0xb9c264(0x57a,_0x222ccf._0x2c68f)+'y'](_0x31c6b9,null,0x2)+'\x0a',_0xb9c264(0x35b,_0x222ccf._0xfc7e7b));}function deletePairingConfig(){const _0x451604={_0x1573b7:0xd8},_0x43bd84={'TXahi':function(_0x5c72fa,_0x40dd3f,_0x1e797f){return _0x5c72fa(_0x40dd3f,_0x1e797f);}};if(!existsSync(CONFIG_PATH))return;function _0x57b8d7(_0x571c8c,_0x14877d){return _0x431448(_0x14877d,_0x571c8c- -0x359);}const _0x2d4c9f={};_0x2d4c9f['force']=!![],_0x43bd84[_0x57b8d7(_0x451604._0x1573b7,0xf7)](rmSync,CONFIG_PATH,_0x2d4c9f);}function getDefaultBridgeDisplayName(){const _0x52219b={_0x54326a:0x599,_0x57f529:0x690,_0x5a5d47:0x2e9},_0x3075e={_0x210cb9:0x1fb},_0x31f09c={_0x45e399:0x2c7},_0x29a480={};_0x29a480[_0x57c5cf(0x137,0x2e9)]=_0x270a47(0x533,_0x52219b._0x54326a)+_0x270a47(0x82c,_0x52219b._0x57f529);const _0x183942=_0x29a480;function _0x270a47(_0x394af8,_0x412c04){return _0x431448(_0x394af8,_0x412c04-_0x31f09c._0x45e399);}const _0x6a4b1c=readOpenClawDefaultAgentName();if(_0x6a4b1c)return _0x6a4b1c;function _0x57c5cf(_0x5aee8c,_0x4e4ca8){return _0x431448(_0x5aee8c,_0x4e4ca8-_0x3075e._0x210cb9);}try{const _0xf1d212=userInfo()[_0x270a47(0x50a,0x460)]['trim']();if(_0xf1d212)return _0xf1d212;}catch{}const _0x511169=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x57c5cf(0x42b,0x524)]();if(_0x511169)return _0x511169;return hostname()['trim']()||_0x183942[_0x57c5cf(0x40a,_0x52219b._0x5a5d47)];}function pickOpenClawDefaultAgentName(_0x49c613){const _0x354e48={_0x626899:0x67b,_0x23ece0:0x19b,_0x1a8ac8:0x34f,_0x521f97:0x587,_0x479b2b:0x3b1,_0x452be6:0x5a2,_0x4b971c:0x11,_0x52dede:0xed};if(!_0x49c613||typeof _0x49c613!==_0x2665e4(0x556,_0x354e48._0x626899))return null;function _0x1118ce(_0x295050,_0x5591ec){return _0x431448(_0x5591ec,_0x295050- -0x3a9);}function _0x2665e4(_0x542514,_0x2468a8){return _0x431448(_0x542514,_0x2468a8-0x27d);}const _0x1fa16f=_0x49c613[_0x1118ce(-_0x354e48._0x23ece0,-_0x354e48._0x1a8ac8)],_0x401a41=Array[_0x1118ce(-0x1d5,-0x205)](_0x1fa16f?.[_0x2665e4(_0x354e48._0x521f97,_0x354e48._0x479b2b)])?_0x1fa16f[_0x2665e4(_0x354e48._0x452be6,0x3b1)]:[],_0x50867d=_0x401a41[_0x2665e4(0x658,0x637)](_0x1dd231=>isDefaultAgent(_0x1dd231))??_0x401a41[_0x1118ce(_0x354e48._0x4b971c,-_0x354e48._0x52dede)](_0x5b26bc=>hasAgentId(_0x5b26bc,'main'))??_0x401a41[0x0];return readAgentName(_0x50867d);}function _0x431448(_0xeb4a23,_0x2bb544){const _0x4797b1={_0xae1f14:0x28};return _0x1bf0(_0x2bb544- -_0x4797b1._0xae1f14,_0xeb4a23);}function createInstanceId(){const _0xf70698={_0x1954e5:0x4f9,_0x41e13b:0x2a1,_0xa77f3:0x112,_0x26390e:0xcb},_0x4b98fb={_0x2a6871:0x21a},_0x302a6b={'uycvc':function(_0x503de6){return _0x503de6();},'ZuLTM':_0x29bace(0x3a0,0x4bd)};function _0x1f8c55(_0x2adac9,_0x3ea2c1){return _0x431448(_0x2adac9,_0x3ea2c1- -0x21e);}const _0x3f67d7=sanitizeId(_0x302a6b[_0x29bace(0x4df,_0xf70698._0x1954e5)](hostname)||_0x302a6b[_0x29bace(_0xf70698._0x41e13b,0x2c5)]);function _0x29bace(_0x364cee,_0x516dda){return _0x431448(_0x364cee,_0x516dda-_0x4b98fb._0x2a6871);}return _0x1f8c55(_0xf70698._0xa77f3,-_0xf70698._0x26390e)+_0x3f67d7+'-'+randomUUID()[_0x29bace(0x369,0x3ca)](0x0,0xa);}function sanitizeId(_0x3176ab){const _0x382584={_0x4f4d9e:0x558,_0x4d2972:0x176,_0x48543c:0x268,_0x5c95b1:0x167},_0x3b1b74={_0x1bdae9:0x25c},_0x53ffcd={_0x20ab39:0x1f};function _0x1cf43f(_0x186e3f,_0x2bd6bb){return _0x9ec63e(_0x186e3f-_0x53ffcd._0x20ab39,_0x2bd6bb);}function _0x5826aa(_0x4e7d9d,_0x5dbca8){return _0x9ec63e(_0x5dbca8-_0x3b1b74._0x1bdae9,_0x4e7d9d);}return _0x3176ab[_0x5826aa(_0x382584._0x4f4d9e,0x52b)]()['toLowerC'+'ase']()[_0x1cf43f(0x2fe,_0x382584._0x4d2972)](/[^a-z0-9._-]+/g,'-')['replace'](/^-+|-+$/g,'')||_0x1cf43f(_0x382584._0x48543c,_0x382584._0x5c95b1);}function readOpenClawDefaultAgentName(){const _0x2d2306={_0x4c9ae4:0x4b3,_0x5ba202:0x86b},_0x1f7f56={_0x5c9549:0x212},_0x4ca5c3={'ZjBax':function(_0x2aeece,_0x3840eb,_0xa0646d){return _0x2aeece(_0x3840eb,_0xa0646d);},'LXMrS':function(_0x315239,_0x3afdd9){return _0x315239(_0x3afdd9);}};function _0xf1a7af(_0x1aeafd,_0x9e6216){return _0x9ec63e(_0x9e6216-0x459,_0x1aeafd);}if(!existsSync(OPENCLAW_CONFIG_PATH))return null;function _0x4a884b(_0x377259,_0x4216fa){return _0x9ec63e(_0x377259-_0x1f7f56._0x5c9549,_0x4216fa);}try{const _0x4706df=JSON[_0x4a884b(0x3cc,_0x2d2306._0x4c9ae4)](_0x4ca5c3[_0xf1a7af(0x92d,_0x2d2306._0x5ba202)](readFileSync,OPENCLAW_CONFIG_PATH,_0x4a884b(0x3b8,0x440)));return _0x4ca5c3['LXMrS'](pickOpenClawDefaultAgentName,_0x4706df);}catch{return null;}}function isDefaultAgent(_0x4ce55f){const _0x17ef06={'zYLlf':function(_0x57e716,_0x1a8928){return _0x57e716(_0x1a8928);}};return _0x17ef06['zYLlf'](Boolean,_0x4ce55f&&typeof _0x4ce55f==='object'&&_0x4ce55f['default']===!![]);}function hasAgentId(_0x328f05,_0x270fbd){const _0x4c1f92={_0x2ed383:0x2e3,_0x3da5fd:0x452,_0x4d91e8:0x377,_0x207283:0x28f,_0x49ff07:0x25c,_0x260b35:0x37d},_0x5888e7={_0x73acfb:0x54},_0x3adab4={_0x459182:0xe5};function _0x40630f(_0x588b8d,_0x28da9d){return _0x431448(_0x28da9d,_0x588b8d-_0x3adab4._0x459182);}const _0x58e1da={};_0x58e1da['jvxsR']=_0x4bbef5(_0x4c1f92._0x2ed383,_0x4c1f92._0x3da5fd),_0x58e1da[_0x40630f(0x2ed,_0x4c1f92._0x4d91e8)]=_0x4bbef5(0x23e,0x388);function _0x4bbef5(_0x505ae9,_0x3371a3){return _0x431448(_0x505ae9,_0x3371a3-_0x5888e7._0x73acfb);}const _0x3e7ccf=_0x58e1da;return Boolean(_0x328f05&&typeof _0x328f05===_0x3e7ccf[_0x4bbef5(0x301,0x161)]&&typeof _0x328f05['id']===_0x3e7ccf[_0x4bbef5(_0x4c1f92._0x207283,_0x4c1f92._0x49ff07)]&&_0x328f05['id'][_0x4bbef5(0x463,_0x4c1f92._0x260b35)]()===_0x270fbd);}function readAgentName(_0x140d3b){const _0x45763c={_0x3386b2:0x6d0,_0x276a60:0x52a,_0x472f98:0x51d,_0x40c65d:0x511,_0x547b08:0x5e7,_0x25bf6e:0x649,_0x2bee55:0x82a,_0x1b23d5:0x6ad,_0x307171:0x416,_0x299c08:0x58c,_0x5d9a40:0x4c1,_0x2eab48:0x416,_0x28874c:0x581},_0x8c604f={_0x63ce43:0x2b2};function _0x315d25(_0x1ac225,_0x3ecde5){return _0x9ec63e(_0x3ecde5-0x243,_0x1ac225);}const _0x5e3e7c={};_0x5e3e7c[_0x274334(_0x45763c._0x3386b2,0x803)]=_0x315d25(_0x45763c._0x276a60,_0x45763c._0x472f98);const _0x2dfcb7=_0x5e3e7c;if(!_0x140d3b||typeof _0x140d3b!==_0x315d25(_0x45763c._0x40c65d,_0x45763c._0x547b08))return null;const _0x38efb4=_0x140d3b;function _0x274334(_0x395f83,_0x4933ff){return _0x9ec63e(_0x395f83-_0x8c604f._0x63ce43,_0x4933ff);}const _0x3582ff=typeof _0x38efb4[_0x274334(_0x45763c._0x25bf6e,_0x45763c._0x2bee55)]?.['name']===_0x2dfcb7[_0x315d25(_0x45763c._0x1b23d5,0x661)]?_0x38efb4[_0x274334(0x649,0x62b)][_0x315d25(0x392,0x416)][_0x315d25(0x419,0x512)]():'';if(_0x3582ff)return _0x3582ff;const _0x166fd7=typeof _0x38efb4[_0x315d25(0x4a9,_0x45763c._0x307171)]===_0x274334(_0x45763c._0x299c08,_0x45763c._0x5d9a40)?_0x38efb4[_0x315d25(0x59a,_0x45763c._0x2eab48)][_0x274334(_0x45763c._0x28874c,0x69a)]():'';return _0x166fd7||null;}function buildPairingQrPayload(_0x185c79){const _0xe34bbf={_0x4d808d:0x2bc,_0x3a8282:0xb0,_0x4f8599:0x23a,_0x128af7:0x403,_0x3fb72a:0xf6,_0x2fa4c9:0x356,_0x2680eb:0x330},_0x398291={_0x53eb85:0x7},_0x28de67={};_0x28de67['v']=0x2,_0x28de67['k']='cp',_0x28de67['s']=_0x185c79[_0xed8009(0x127,0x266)],_0x28de67['g']=_0x185c79['gatewayI'+'d'];function _0xed8009(_0x2ae41d,_0x22d4dc){return _0x431448(_0x22d4dc,_0x2ae41d-_0x398291._0x53eb85);}_0x28de67['a']=_0x185c79['accessCo'+'de'];const _0x1eedcf=_0x28de67;_0x185c79[_0xed8009(0x3cb,0x2dc)+'ame']?.['trim']()&&(_0x1eedcf['n']=_0x185c79[_0x58e0ca(0x2d5,_0xe34bbf._0x4d808d)+_0xed8009(0x197,_0xe34bbf._0x3a8282)][_0x58e0ca(_0xe34bbf._0x4f8599,_0xe34bbf._0x128af7)]());function _0x58e0ca(_0x4945b3,_0x34cf57){return _0x431448(_0x34cf57,_0x4945b3- -0xef);}return _0x185c79[_0x58e0ca(-0x3,_0xe34bbf._0x3fb72a)]?.['trim']()&&(_0x1eedcf['t']=_0x185c79['token']['trim']()),_0x185c79['password']?.[_0x58e0ca(0x23a,0x2ea)]()&&(_0x1eedcf['p']=_0x185c79[_0xed8009(0x17d,_0xe34bbf._0x2fa4c9)]['trim']()),JSON[_0x58e0ca(_0xe34bbf._0x2680eb,0x442)+'y'](_0x1eedcf);}function _0x5c01(){const _0xdc069a=['zxjZAw9Uxfi','zM91BMq','CMvXDwvZDgu','B2jZzxj2zum','zgv0ywnOzwq','ExDwu0y','B3j0','ls1NyxrLD2e','uKzzswm','q0Xcy3q','z1bHAxjszxe','uKW6ia','B2jQzwn0','wezkrva','x19JBgf3A2u','txvbzLm','CxPODuG','zwnHDxnLigW','DcbKzw1HBMq','rw91AvK','id4MmG','yw5KC2HHA2u','Dg9ju09tDhi','ue9tva','CMvSyxKGzxi','CIbWyxnZD28','CNzPy2uGDg8','CMLUzYbJB2q','CNjVCKXVzW','y2vZuMvJzw4','lJe6mtG3odK','x1rps0vo','ugfZC3DVCMq','zxqGCMvHC28','wejVzhy','Dgv3yxLdB24','CM9Wzxj0EuW','phbHDgG+xsa','Fdb8mtj8m3W','B2rLihjLzNi','Dg9mB2nHBgu','u0Lhsu5u','yxv0Ae1Vzgu','C3rHCNrizwe','y29UBMvJDfi','C3rYAw5NAwy','CxvLCNK','Et4kica8Dhi','phvUA25VD24','C3rVCa','t1bftG','icbLEgvJig4','pwfSD2f5CWO','zg93BG','zxjYB3jmB2C','AgfUzgXLuMu','DxnLCG','u2vYDMLJzsa','igDHDgv3yxK','yxnZD29Yza','DwzrD3i','CgXHDgzVCM0','C2nYAxb0uge','vfHHAgK','BJOG','BwLZC2LUzW','cLr5Cgu9C2K','uviGAw1Hz2u','sw5ZDgfUy2u','z2f0zxDHEv8','CNzPy2uGAw4','zcbXDwv1zwq','AwrSzsb3Axq','ENDxwMW','igHHBMrZAge','DxbKyxrLzee','sNjYrxu','Dg9YycbMB3i','sfHUv2u','B2nHBcbpCgu','BhzLza','C3rHCNrLzca','D29YzcbJB24','y2XLyxjuAw0','DgLTzw91Da','y1novKm','Aw9Ul2PZB24','uNHOweS','qNjPzgDLigK','tfLIA3q','zwqGyMfJA2C','Dg9tDhjPBMC','DcbHCha6cG','EwvZ','BgLUDxG','uKvrvuLsruq','u2nZEgm','DxjSpL0GwY0','BMqGlxyGBM8','CxiTzMLSzsa','wgPWA3i','BIbMywLSzwq','Cg9YDa','zxnVBhzLza','qMfJA2DYB3u','t1nOyM4','zwnVBM5Ly3q','z2f0zxDHEvu','sd0I','CMvJDgLVBKW','zsbdteKGC2m','Dgv3yxLjzgW','y29UBMvJDa','CMvSyxLdB24','Bwv0Ag9K','DaPxyw50CZ0','cLnJyw4GDgG','pLn0yw5Kyxi','ihjLBgf5pq','phjLzgfJDgu','CgfYyw1Z','ls1SAw5LCW','wMPcyxG','A2LSBa','C3LZDgvTza','t2nrqK8','zxHPDcaXmJC','lNbUzW','BM5Ly3rezwW','mZy2qMjzq0jR','BgPtv3G','zMX1C2Hqzw4','yw1vuKq','AxnhyxrLD2e','C2Ply0q','yxLnCW','BxbSzqPfEgu','CIb1C2uGygm','zxDHEs5HDxq','CgvUtxm9','ChbLBMq6','y29UzMLN','pgTLEt5tDge','y2XHD2TLDca','BgfZDevYCM8','C3rHCNrZv2K','ls1QC29U','ls1XDwLLDa','DMfSDwvZ','Dffctxq','seTdvvXtB2y','CM9Szq','teHIC1G','B3b0Aw9UCW','BM90ihjLywq','CNzLCI4','Dgv3yxK','zwXVywq','EsbJAgvJAY4','Aw5Jzq','ica8yxjYyxK','tu9nt1K','q2fUBM90igm','lxnLCNzPy2u','yxvUy2HLCI4','y2uGD2fZigK','C3rKAw8','DhjruxK','DxbKyxrLu24','A2v5pKTLzxa','r1HLtgy','CMqGyMvMB3i','AwrSzsbJBg8','igXVywqGDgG','ntaYnJu3mvLLAurwwq','BhjLywr5iha','C2vUzeDHDgu','CMvZzxq','zcWGCNvUBMK','zYbWyxrOoIa','odeXotn6AvzPuLC','CgLK','zKXQDxi','CgfPCMvK','u3rYAw5N','sciGCNvUic0','CNvUDgLTzs4','vvf4BwK','tgLICMfYEq','yxnZAwDU','ufz0Bwe','Aw5Nr2f0zxC','sw5ZDgfSBgu','AxiGzMLYC3q','CMfUzg9T','BIaIy2XHD2S','ywLYlNjLAMu','ignSAwvUDhm','wNvmve0','zxj2AwnLlwW','q29UzMLNrM8','A2LUz0rPCMu','C0X0ruO','C2uGywXYzwe','y291BNq','CLHnuM8','ls1Uyw1L','B2zM','DwvZDcbYzxm','z2f0zxDHEvq','BgXDcLDHBNq','y29UBMvJDca','zMLSDgvY','ig1VzguGDg8','sw9Az3e','q0Xbv0rct1q','Dgv3yxLnzxm','AcbUBYbHy3q','jMD0oW','yNjPzgDLlxm','vw5HyMXLihq','r2f0zxDHEu8','B249q2XHD2S','zZOG','CMvXDwvZDeK','B25mB2C','B3nLzdOG','Bwu+xsbBls0','zgv2AwnLrMe','u3rHCNrPBMC','ls1UB3C','BgfZDfnLzw4','zMXHDe1HCa','l1bjra','Bg9Hza','igzVCIbNyxq','C2jfuxe','y29KzsbBls0','vMvYC2LVBJO','ywnJzxnZq28','zsbdBgf3A2u','DwvZDa','D3m6lY8XmJC','BMrnCZ0','CxjjBwfNzva','zgLUzZ0Ivvq','t3bJtu0','vgLTzxi','CMvSyxLtzwm','Bwf4','DhvoAeu','zg9JDg9Y','su53D0C','q29UzMLNoIa','ywrKugvUzgK','C2GGy2HHBgW','mti4mJKWs2H1r3bO','yMfJA2DYB3u','D2TLDcbKB2m','shL6v1m','C2uGy2XPzw4','ugf0AdOG','CNvUifSTlwC','Dg9Rzw4','Bgf3A2v0iha','D1Lkq1e','y2XPzw50tMe','y2XPzw50x2q','wLn1CgO','u0nssvbux1a','zxHPDenVzgu','CNvUBMLUzW','wfP2q0i','AxjPBMCU','D3m6lY8','zgv2AwnLtMe','zwqU','DvvOyNK','CxvLC3rjzd0','B25tDgf0Dxm','igLUDgvUDgK','y2XPzw50x2m','cIaGphn0CMK','lMPZB24','Be1Z','zs5JBgK','CMvJDxjZAxy','zxK+cIaGphq','zgXLq2XVC2u','C29U','zcWGC3rVCha','q2XLyxjLzca','zMXVB3i','icbLEgvJici','Cgf0Ag5HBwu','ywLYzwqGD2K','ANz4C1i','zhKGC2nOzwq','iI4GvxnLihy','Euncy1q','C3rVCeHLyxi','C3rZ','ygnSyxDRzxq','Bgf5twvZC2e','z2f0zxDHEum','ywLYlNjLC28','zK5Uz0e','lJaUmc4XoG','zxjYB3i6ia','C2vYDMLJzvi','ywKUy2XHD2S','BMvJDgLUzW','sefhz3i','ihnPBMnLr2e','yxv0AcbWyxq','C2vYDMvY','u2vYDMLJzv0','CMnLycbVBMW','zwXHChnLzfm','C2fNzq','zM9YD2fYze8','q3DMve4','mM0SidfOlca','DgvK','ihjLDhvYBMu','C3bSAxq','BMC+','swPLCge','CvrpyLm','DgjLyxq','AgTlvxi','zgvfEhbPCMu','zgvSzxrL','Durlrhe','AgfUzhnOywS','BgLZDa','sw52ywXPzca','AMDMzw4','Bgf1BMnOywC','mxWZFdj8mhW','ieLeoIa','zxDHEsa','y3rVCNK9','s2TcuKG','cLjLC3rHCNq','B3zL','ls1MB3jJzq','AgfZr2f0zxC','y2uGywXYzwe','zxjYB3jdB3i','zNrLCIbPzgW','B05bC2W','zgLUz0DHDgu','yNjPzgDLlwm','BMfrzxq','C3rHCNq','CxjqyxLSB2e','ugfPCMLUzYa','u21iDhK','zwjKC1q','u3rHCNrLza','yw5KihbHC3m','vvjmoIa','ihnLCNzPy2u','BMrHCMrpDxq','C2uGC2TPCha','Aw5ZDc0','zgLZywjSzq','mti3lJaUmc4','otqYnJDTu2PMsM0','AxmGuviGy28','wLvwsve','rxjYB3iGBg8','CMvSyxLtB2m','tM8GBwf0y2G','DgGG','De1HEerLBge','zguGAw4GDgG','AcbMB3iGC2u','x0DbvevxqvK','r2f0zxDHEuK','lI4VCgfJA2e','lJaUmc4XoJe','B2X2zwqGCMu','rhj4rxq','y1n0yxj0pq','q3vYCMvUDfy','AgfIBgu','B21WBgv0zsa','sufuq2m','l251BgWGmJ4','Ag9ZDg5HBwu','CMvQzwn0zwq','CgTkA08','thffrMC','Bg9JywXhyxq','CNvUlxjLz2K','Bur2whO','CgvUzgLUz1a','C2vYDMvYvxi','Bg9Nugf0Aa','CgfZC3DVCMq','zM9YBsbMB3i','y29UBMvJDgu','ifnLDcb0Agu','Dgv4Da','y2XPzw50rgu','kcGOlISPkYK','BMzPzYbWyxq','BgLLBNrezw0','C3rYEq','BMuUDgfYz2u','ihjLyxnVBJ0','qvrOD2G','Axn0zxiGzMe','C2uGy2fUy2u','yw5Ktxm9','BM9VCa','B3vUzcbMB3i','zsbUzxCGCge','zwLcvgq','ktOG','qxrnCW','B3vUDf96zxi','BxLTve8','v25Qu1O','pc9ZDhjPBMC','yw1L','zg9JDg9YifS','igrLDMLJzuK','C3LZDgvTy3q','qK9dANq','DgfZA2TPBgW','lw5HBwuGpgq','C29YDa','BgKUBg9N','DxnLCM5HBwu','uKLqvf9qqvq','y29KzsbYzwy','y29UzMLNrM8','tLzJzLu','BKnSyxCGChi','CMvSyxKGzgK','zgv2AwnLlNa','r1vMtwS','z2v0','tM90ihbHAxi','z2f0zxDHEuG','zevYCM9Yuge','vNDQvKq','EwDLCMS','lJaIigvUy28','y2uGCMvNAxm','y3jLyxrLzee','zxDHEq','D2f5twvZC2e','Et5mywjLBdW','zw4GC2LUy2u','C3rHCNqGDxi','C2XPy2u','AM9PBG','ze91Dhb1Dd0','CMvHzhLtDge','A3HPtxa','zenWs00','ALf2rLi','je5prevFuee','yMLUyxj5','t3bLBKnSyxC','lMfP','Df9YzwXHEv8','AcbHigrPzMy','u0Lhvevstq','AxLsDhy','zeP5v1i','B25HBgX5ihC','C2vYDMLJzva','CMvSyxKGCMu','yxrLD2f5twu','lM9Wzw5JBge','zgvUDgL0Esa','B25Uzwn0u3q','D2LUmZi','Bgf5q29UDhi','z2v0u25HChm','DgfSBgf0Aw8','yxbWCM92zwq','Ag90','v2LUzg93C1W','DhjSk0mGDg8','yxK+cIaGpgS','CMWGphDZoI8','DwuVpGOGidW','zevYCM9Ypwe','BM90ihbHAxi','AxnbCNjHEq','ChvZAa','B25qzw5KAw4','ue1PCNG','ig1VCMuGzgu','CgfPCG','CMv0','ifjLC3rHCNq','C3rHDhvZ','rgPVzMK','w3n0yxr1C10','ywLYzwqUifi','zMLNDxjLzcW','Aw5JBhvKzxm','ztOG','BNqGzgvTyw4','AxzLihnVy2S','pL0GwY0Tzxi','kYKRja','C29Upq','Bgf1BMnOy3q','zvjMCNG','Aw5N','BefLEgq','BgfIzwW','BM90igLUC3q','BgfZDe1Z','tdOG','pg5VBMu+','BwvKAwe','zw5ZDxjLr2e','BMvZidWYmda','yxbWzw5KoG','qu90zwS','z2vZ','BMDqywLYuMu','qwXPDMu8l2S','ihrVA2vUoIa','lNbSAxn0','zw5HyMXL','ChbLzc4GuMu','zwqGyMvJyxu','ihvYBd0','zw1HBMrFCMu','DxrMoa','CMvMCMvZAgu','zNjVBq','ugf0Aa','lvrfuK0','BwfW','BM9KzvbHDgG','ig5HBwu9','qMHAwNe','CMvZAgvKlG','zxf1zxn0swq','zgvJAxnPB24','BwfUzfn0yxi','BgLZDcb2zxi','ywDLBNrZ','DhjHDgLVBI4','B3vUzcbZzxi','zcbMB3iGzNi','y2XVC2vhyxq','t1bftKnmqvC','CgfYC2u','r2f0zxDHEvi','ChvZAfbLBMq','y2f0y2G','B25Uzwn0Aw4','Aw5ZDgfSBa','CMvZDgfYDa','ug1JC0W','BwLSEq','qxv0BY1PBNm','DfrPBwvY','B2jrvxK','ls11C2vY','CMvN','y29UDgvUDc0','zxjLCxvPC2K','BwuGBM90igy','y2XVC2vKige','CZWVA2v5pGO','rxLJqMm','ywX1zsaI','ihj1BNrPBwu','B24U','odC4oq','C3vJy2vLzgu','BMfTzq','ndy4svLwDuDz','Dw50','yxLezw1HBMq','ifSTlwzVCMm','uMvSyxLszwm','C3rHBgXHDgK','lIbsDw4GiMm','qMHnAgy','BwfYA1bHAxi','rwnpC2u','zujuDKK','y2HLzcbTB2q','qKDMzhK','l0rurcbqteK','lY9bChbSzs8','BwLU','te1xEKq','Aw5ZDgfUy2u','v29wEMK','z2f0zxDHEuK','B1bgyKS','Bg9N','sgvqrwG','y29Uy2f0','zw47igf3ywK','zw5dBgf3ieC','l3DZ','AxngAw5PDgu','Dg9Y','Dw5K','jMfWB3m7','CgvU','BgfZDfjLBge','lMnSyxDRzxq','s3j0qxi','AxnJB25Uzwm','ywLYlMfWChi','wY0TANnVBL0','AejjqvC','BgLUzxm','Bw9Kzq','suq6ia','B3jKks4','CMvQzwn0uge','ELLkvxe','B3iGmwqU','Ac5TB2rLigK','lwPZB25D','DgvYpw5LDhC','C3rPBgWGCNu','CMfjruK','zxHLy1bHDgG','zguGpI9Kzxy','CMvZ','zxqUyNjPzgC','C2vHCMnOuge','CMvMCMvZAc0','ww91ignHBIa','Dgv3yxLpCgu','r2f0zxDHEsa','CNvUBMLUzZO','Dd4kica8A2u','zwXHEq','C3rVChbLza','mZqYmJC2mgTUB2nwAW','sfrPuLO','DwvZDeLKpq','yxrO','zerLDMLJzxm','qM54zgq','yxbZAg90','zuf2qu8','AxnTyxrJAa','ienmssbZzxi','Cgf0AevUDG','m1zpBM5lBa','B25Uzwn0zwq','BgvKihjLyxm','B25Uzwn0','lZeYnY4WlJa','zxzLBNq','C2v0vgLTzw8','A25wBvC','tgf1BMnOqwC','l3yXl3bHAxi','Bg9NCW','BgvUz3rO','CMvSyxKGy2W','mZG4nty0rKTqyMDQ','Bg9NCYbBls0','zcbKzwXHEu0','AxnWBgf5tMe','CMvSyxKGAgu','Axjszxf1zxm','cGPBsw5ZDge','zM9Yy2u','uKvhx1nA','zM9YzsbWywK','zw5Nzq','DNj3vxq','iYeVyMLUl3m','DurSrwe','vgHPAwO','z2vUzxjHDgu','y2XPzw50q28','zw50CW','A1rYyNa','Ahr0Chm6lY8','y2fUy2vSr2e','BM5Ly3rLzca','z2v0vgLTzq','BMfqEg0','C2vUza','z2f0zxDHEvi','CgvUzgLUzW','s3juthi','yxLnzxnZywC','Ag9ZDa','C2vHCMnO','vw5ZDxbWB3i','CYbUB3qGCMu','BK1Zpq','w1vUAxrDcKq','C0f0','D3nZoG','B3bWzwqGywy','zxHPDa','u1LSAgi','CerduhK','C2vYDMLJzuK','yxbWBhK','C3ngEfG','A1nuDKi','zxDHEvjLywm','BM5Ly3qGzhi','zgv0ywLSCW','ugryCLK','zxnJCMLWDgK','A2uGmZbZlca','ANnVBG','vvDcC3O','Dw5Cq2XHD2S','Aw5Qzwn0zwq','Bgf3A2v0ihi','zgf0yq','CLf1zxvLr2e','CMvNAxn0CNK','igrLy2LZAw8','Bg1lz08','r2f1yLO','w2nSyxDRzxq','u0PjtMS','Axnoyu4','z2v0cG','AxncDwzMzxi','C0Doq20','z3Lesge','C3LZDgvTzc0','AxnjBNrLz2u','q2XHD2TLDei','uMTgrwW','A2LUza','yvn4z2q','AwXLzcaO','q2XHD2TLDca','B3bLBG','ls1Zzxj2Awm','twvKAwfeAxi','DMLJzsbMB3i','swvqyuq','Cgf5Bg9Hza','CgvUzgLUz0C','DfrPBwvVDxq','C2v0','AgvRDM4','AgvHCNrIzwe','mtv8nxW4FdK','DxLJDMm','CMf3','zxj2AwnLige','D2HYCu0','Aw5Nienmssa','CxvLC3rDihi','CNzTD1u','y29UDhjVBf8','vu9sA0e','DgfPBhmSig8','jMX0oW','y3jVC29MDfW','u2vYDMLJztO','u3rVChbLzca','zMP6D2i','C0zQt2K','z2f0zxDHEq','tNnfy28','zwqGka','Dw5PBNn0ywW','CMvHy2HHyMW','DeLUDgvYDMe','BgKUANnVBG','A2LiwKS','swTMwe4','BMvJDgvK','Df9Yzxf1zxm','CYb1BNnLDc4','CgLUzW','iejYAwrNzsa','ienSyxDRzxq','vKLrDLG','ignVBMzPzYa','z2f0zxDHEvm','DgLUzYbMCMu','EKXkD2y','Dd4k','jMfTCdS','zcbZzxj2Awm','cLn0yw5Kyxi','qvzzEuy','ywLYuMvXDwu','ihrOzsbWywK','BwfYA0rLDMK','CgjNtLa','lIbsDw4GCge','ihrVA2vUig8','Dw5ZDxbWB3i','yxj0','D2f5uMvXDwu','C2HPzNq','ihnPBMnLq2W','CM91BMqGC2u','y29Kzq','CMLUzYb3Axq','BNn0ywXSzwq','zM91BMqGDw4','vujmsumGiI0','CgfPCMLUzYa','zwqGy29Kzt0','zxrcCMLKz2u','zwzYzxnOzwq','A2vtDgfYDgu','Aw1Hz2uVCg4','CNvUDgLTzsa','rxHWAxjLCZO','zgfYD2LU','BgLLBNq','ihbHAxjGigi','D2LUzg93C0G','tvLUCNm','rM91BMq','mtn8mtq','DwXLzcbKzwW','DhjPBq','yxvSDc50yxi','CNvLlZ4kica','zwqUifj1BIa','zgvYih4VlM8','qvriiIbDoYa','zgvZDhjVEq','C2nVBM5Ly3q','zxK+uNvUqxq','BMqGC2vYDMK','B3bLBMnSyxC','C3rYAw5N','z2f0zxDHEsa','yxv0Aa','lw5LDW','y2XVC2u','CMvWBgfJzq','q25qA2C','CMvSyxLvCMW','zcWGyNv0ihm','rxjYB3iGtg8','BgjJuxu','C3rHDgu','pGOGidXRzxK','zgv2AwnLswq','r2f0zxDHEtO','q29UzMLNrgK','s1PNsKK','C3vNCKG','ugf0AdWVA2u','Eu9Wzw4','lMXVzW','B3vUDa','DejHC2vezwW','CMvWBgfJzue','y3rLzcbJB2q','BwvZC2fNzq','C21HBgW','DgvKihbSyxq','uefjuKLor18','zw1WDa','EufJDgL2Axq','DhDHCMvCtwK','y2XVC2vKoIa','ig1LzgLHoIa','tMfTztOG','uMvXDwvZDfi','qvripsi','BgKTzxjYB3i','zxjLBNqGC2u','ywXSzwq','ExLotKe','BM5Ly3qGyxq','tKnvzfO','zunSB3nL','iurpq1rzueu','icH0B2TLBIa','zwnOBYaIBM8','A2TgANG','yxnL','y29UBMvJDc4','zxDHEvvYBa','AxnszwXHEu8','zcbPCYbTAxm','zhKGCNvUBMK','zxnOigzHAwW','C2nOzwr1Bgu','Bg9NCYbMB3u','yNjPzgDLlq','zcbZAw5Jzum','C2vYDMvYlw0','uMvZDgfYDfm','ihbHC3n3B3i','zxHPC3rPBMC','igHHCYbIB3q','Bwf0y2G','C2vUzfrVr2e','CMvTB3rLsxa','CMvSyxKGy28','yxjNDG','u25isKu','Eu1Z','zxjZ','ywn0Aw9U','ls1QC29Uxq','zxjYB3i','z2uUANnVBG','zxj2AwnLlMO','ywnOywjSzsa','Esb0B2TLBIa','ignVBMzPzZO','Cgf0AdOG','CM9YC10GwY0','C2LVBJ0Ims4','tg9NihbHDgG','tg9HzdWVA2u','ywrK','phn0CMLUzZ4','CgfPCIbYzxe','mZy4mtG0nxPiBwLvuq','r0z4v1m','quXIuvy','DgvYigDHDgu','ihn0B3aU','tK9ux1bbsvi','Dw5SB2fK','C3nHz2vZ','neHNtePYCa','rM9kyLG','ChzYDwi','tw9IAwXLiem','Bwf4ugf5Bg8','AwDUB3jL','rI04iJ8+cJW','BwvjA00','C2vYDMLJzsi','B3jRlw9UBgK','zxzLBa','Ahr0CdOVlW','AwvUDerLBwe','u2vYDMvYifu','CNnPB249iJe','DMLJzsbPBNm','BNvTyMvY','uMvSyxKGvvi','vg9Rzw5gB3u','AwyGy29TBwe','tvrYyxi','uMHHvfG','DhLWzq','zxHWB3j0ifa','CMfTCW','DgvKqxrnCW','vKrRruy','AxmGC2fMzxq','ywLYic0TzM8','y29UC3rYDwm','icaGidXZDhi','Aw5JBhvKzuu','CYbTAxnZAw4','jJe7ihrOzw4','D2LUzg93CY0','AvLcBxa','uNvUigbJBge','l3jLz2LZDgu','zMLUza','D2LKDgG','zw50','Dw5UAw5N','CNrIzwf0','BMv0D29YAY0','B2nRzxq','CxvLC3q','CMvX','twDjBhG','zgLZCgXHEu4','ls1Syxn0','ls1Zzxj2zxi','Aw5ZDgfSBgu','vfHTwfa','qNjPzgDL','D2fZig5VDca','BM93','Fdj8nNWXmxW','Dw5RBM93BG','C3rHCNrLzee','CMvSyxLbDhq','DgfYDdOG','zgfLBw9Ulxi','C2uGC2nOzwq','Es11CMW','CMvNAxn0zxi','zcbIywnRz3i','C29Tzq','ifbYzxnZiem','q2XP','B3iGCgfZC3C','zgXLrgLZy28','zxrYEvrPBwu','C2vYDMvYidW','AfbqEeG','tK9erv9qqvq','CNvU','uxPAte4','veXey2K','igj1DcbNyxq','B25Jzq','qxv0Ae1Vzgu','mci+cJXKAwm','DgLTzwqGB3u','CNvUiIbTyw4','z2f0zxDHEva','A2v0','C2vYDMLJzq','CMvJB25Uzwm','yxbWBgLJyxq','mhWZ','C25HChnOB3q','D3nZoI8V','B2TLBG','AwrLBNrPDhK'];_0x5c01=function(){return _0xdc069a;};return _0x5c01();}async function pairGateway(_0x2ab292){const _0x329cf5={_0x3b684f:0x159,_0x255139:0x2bd,_0x18e7aa:0x3ad,_0x5d8bc1:0x4f2,_0x4fd7bd:0x3fc,_0xece64f:0x472,_0x34e465:0x159,_0x466952:0x156,_0x158b62:0x273,_0x21b77b:0x3a9,_0x70f500:0x252,_0x42292a:0x326,_0x8a9fcb:0x84,_0x54ee43:0x147,_0x15fdc1:0x5b7,_0x3c9fd2:0x586,_0x349caa:0x27a,_0x126477:0x5c3,_0x15c487:0x424,_0x47aba4:0x354,_0x45a876:0x409,_0x29ae3a:0x195,_0x3a1a7d:0x3da,_0x4de01f:0x159,_0x4e3002:0x583,_0x329f76:0x3ca,_0x4c2a1b:0x4a5,_0x1d8e50:0x2fa,_0x5a84f5:0x14a,_0x54b13e:0x2c8,_0x27c35b:0x352,_0x38691b:0x4f0,_0x3a3c18:0x472,_0xddf0:0x516,_0xb75d5e:0x3b8,_0x30838d:0x3fe,_0x4c17e2:0x5de,_0x4ccb26:0x582,_0x3603cf:0x267,_0x229a1d:0x3df,_0x26ad91:0x3ee,_0x4542c3:0x3a9,_0x22bacc:0x139,_0x44b8d2:0x326,_0x4f6608:0x4bf,_0x3fb19a:0x366,_0x9dd1cf:0x2b6,_0xfad1d7:0x372,_0x2751f6:0x16f,_0x3adde8:0x1a3,_0x23522a:0x29e,_0x441a1c:0x16a,_0x421f1b:0x2d0,_0x4002f1:0x380,_0x1ecd51:0x3ba,_0x1dfed0:0x273,_0x1e786a:0x1bf,_0x5c625e:0x108,_0xb46d8a:0x4d1,_0x398834:0x224,_0x1ea4b4:0x2d1,_0x110470:0x346,_0x163373:0x4b6,_0x34ae80:0x43f,_0x4582c2:0x411,_0x6ebbf9:0x33c,_0x5a347d:0x1db,_0x43b763:0x3d7,_0x356ef9:0x26a,_0x4b4117:0x3de,_0x2ef90e:0x5a8,_0x4b7950:0x4bf,_0x67d76a:0x412},_0x338dd7={_0x6d9cfa:0x1f0},_0x4cd4e1={'TXmXP':function(_0x29c127,_0x16dc5e){return _0x29c127===_0x16dc5e;},'VwjVD':_0xdf5030(0x3b9,0x35b)+'ed','oPFbK':function(_0xe85260,_0xd8a3e9){return _0xe85260(_0xd8a3e9);}},_0x38c766=normalizeHttpBase(_0x2ab292[_0xdf5030(_0x329cf5._0x3b684f,_0x329cf5._0x255139)+'l']),_0xaca511=readPairingConfig(),_0x52ead9=assessPairingCompatibility(_0xaca511,_0x38c766);if(_0x4cd4e1[_0xdf5030(_0x329cf5._0x18e7aa,0x537)](_0x52ead9,_0x407941(_0x329cf5._0x5d8bc1,_0x329cf5._0x4fd7bd)+_0x407941(_0x329cf5._0xece64f,0x508))&&_0xaca511){const _0x609753={};return _0x609753[_0xdf5030(_0x329cf5._0x34e465,_0x329cf5._0x466952)+'l']=_0xaca511[_0xdf5030(0x159,0x72)+'l'],_0x609753[_0xdf5030(0x226,0x2a6)+'d']=_0xaca511['gatewayI'+'d'],_0x609753['relaySec'+'ret']=_0xaca511[_0x407941(0x141,_0x329cf5._0x158b62)+'ret'],_0x609753[_0xdf5030(_0x329cf5._0x21b77b,0x4da)+_0x407941(_0x329cf5._0x70f500,_0x329cf5._0x42292a)]=_0x2ab292['displayN'+_0xdf5030(0x175,_0x329cf5._0x8a9fcb)],_0x609753[_0xdf5030(0x9b,-_0x329cf5._0x54ee43)+_0x407941(_0x329cf5._0x15fdc1,_0x329cf5._0x3c9fd2)]=_0x2ab292[_0x407941(_0x329cf5._0x349caa,0x24c)+_0xdf5030(0x3d5,0x420)],_0x609753[_0x407941(0x51d,0x57e)+_0x407941(0x5ba,_0x329cf5._0x126477)]=_0x2ab292[_0x407941(0x485,0x57e)+_0x407941(_0x329cf5._0x15c487,_0x329cf5._0x126477)],refreshAccessCode(_0x609753);}if(_0x52ead9===_0xdf5030(_0x329cf5._0x47aba4,_0x329cf5._0x45a876)+_0xdf5030(0x25b,_0x329cf5._0x29ae3a))throw new Error('This\x20bri'+'dge\x20is\x20a'+_0x407941(0x179,0x22a)+_0x407941(_0x329cf5._0x3a1a7d,0x2a2)+_0x407941(0x1de,0x2f2)+_0xaca511?.[_0xdf5030(_0x329cf5._0x4de01f,0x315)+'l']+(_0x407941(_0x329cf5._0x4e3002,_0x329cf5._0x329f76)+_0x407941(0x33b,0x453)+'eset\x22\x20be'+_0x407941(_0x329cf5._0x4c2a1b,0x425)+_0xdf5030(_0x329cf5._0x1d8e50,_0x329cf5._0x5a84f5)+_0x407941(_0x329cf5._0x54b13e,_0x329cf5._0x27c35b)+_0x407941(0x3bf,_0x329cf5._0x38691b)+_0xdf5030(_0x329cf5._0x3a3c18,_0x329cf5._0xddf0)));const _0x2ea6e1={};_0x2ea6e1[_0x407941(0x567,_0x329cf5._0xb75d5e)+_0x407941(_0x329cf5._0x30838d,0x540)]='applicat'+_0x407941(0x4e5,_0x329cf5._0x4c17e2),_0x2ea6e1['accept']=_0x407941(0x43e,_0x329cf5._0x4ccb26)+'ion/json';const _0x991a82=await fetch(_0x38c766+(_0xdf5030(_0x329cf5._0x3603cf,0x38f)+_0xdf5030(0x39e,_0x329cf5._0x229a1d)+'r'),{'method':_0xdf5030(_0x329cf5._0x26ad91,0x3e6),'headers':_0x2ea6e1,'body':JSON[_0x407941(0x42e,0x5b5)+'y']({'displayName':_0x2ab292[_0xdf5030(_0x329cf5._0x4542c3,0x479)+_0x407941(_0x329cf5._0x22bacc,_0x329cf5._0x44b8d2)]?.[_0x407941(0x566,_0x329cf5._0x4f6608)]()||null})});if(!_0x991a82['ok'])throw new Error('Pair\x20reg'+_0x407941(_0x329cf5._0x3fb19a,0x319)+_0xdf5030(_0x329cf5._0x9dd1cf,0x3a5)+_0x991a82[_0x407941(0x1f3,_0x329cf5._0xfad1d7)]+_0xdf5030(_0x329cf5._0x2751f6,_0x329cf5._0x3adde8)+await _0x991a82[_0x407941(0x1cb,0x310)]());const _0x9951de=await _0x991a82[_0xdf5030(_0x329cf5._0x23522a,_0x329cf5._0x441a1c)]();function _0xdf5030(_0x4f4361,_0x187d22){return _0x9ec63e(_0x4f4361-0x3f,_0x187d22);}const _0x178833=new Date()['toISOStr'+_0x407941(_0x329cf5._0x421f1b,_0x329cf5._0x4002f1)]();function _0x407941(_0x14058d,_0xf2567f){return _0x9ec63e(_0xf2567f-_0x338dd7._0x6d9cfa,_0x14058d);}const _0x5d0d59={'serverUrl':_0x38c766,'gatewayId':_0x9951de[_0xdf5030(0x226,0x23f)+'d'],'relaySecret':_0x9951de[_0x407941(_0x329cf5._0x1ecd51,_0x329cf5._0x1dfed0)+_0xdf5030(_0x329cf5._0x1e786a,_0x329cf5._0x5c625e)],'relayUrl':_0x9951de[_0x407941(0x3b7,_0x329cf5._0xb46d8a)],'instanceId':_0xaca511?.[_0xdf5030(_0x329cf5._0x398834,_0x329cf5._0x1ea4b4)+'Id']??_0xdf5030(0x138,0xa1)+_0x9951de[_0x407941(0x3a1,0x3d7)+'d'][_0x407941(0x2bf,_0x329cf5._0x110470)](-0xa),'displayName':_0x9951de['displayN'+_0x407941(_0x329cf5._0x163373,0x326)],'createdAt':_0x178833,'updatedAt':_0x178833};return writePairingConfig(_0x5d0d59),{'config':_0x5d0d59,'accessCode':_0x9951de['accessCo'+'de'],'accessCodeExpiresAt':_0x9951de['accessCo'+'deExpire'+_0x407941(0x630,_0x329cf5._0x34ae80)],'action':_0x4cd4e1[_0x407941(_0x329cf5._0x4582c2,_0x329cf5._0x6ebbf9)],'qrPayload':_0x4cd4e1[_0x407941(0x3c8,0x3d8)](buildPairingQrPayload,{'server':_0x38c766,'gatewayId':_0x9951de[_0x407941(_0x329cf5._0x5a347d,_0x329cf5._0x43b763)+'d'],'accessCode':_0x9951de[_0x407941(0xa4,_0x329cf5._0x356ef9)+'de'],'displayName':_0x9951de[_0x407941(0x62e,0x55a)+_0x407941(0x4b9,0x326)],'token':_0x2ab292[_0x407941(0x19d,0x24c)+_0x407941(_0x329cf5._0x4b4117,0x586)]?.[_0x407941(_0x329cf5._0x2ef90e,_0x329cf5._0x4b7950)]()||null,'password':_0x2ab292[_0xdf5030(0x3cd,0x407)+_0xdf5030(_0x329cf5._0x67d76a,0x430)]?.[_0x407941(0x32f,0x4bf)]()||null})};}async function refreshAccessCode(_0xc5aa8f){const _0x58021a={_0x1bc252:0x3cc,_0x3bf7cd:0x431,_0x4180db:0x148,_0x3dfdae:0x7a,_0x4eda33:0x328,_0x2a4c96:0x2d4,_0x160486:0x3f2,_0x4bd5f1:0x50,_0x1aa249:0x17e,_0x27d909:0x4c3,_0x583896:0x15a,_0x60d0f5:0x31,_0x1f568e:0x16,_0x3df61e:0x175,_0x365a47:0x5d1,_0x2068d2:0x504,_0x332320:0x584,_0x4a37a8:0x228,_0x405771:0x25f,_0x4ac4c3:0x2ef,_0x559837:0x6a1,_0x4e9328:0x646,_0x3986e4:0x652,_0x48c688:0x5ec,_0x912df5:0x14a,_0x3bf106:0x40c,_0x56d3e1:0xf5,_0x5964d2:0x81,_0x52da8b:0x5bd,_0x3d6d33:0x41f,_0x48dd8c:0x7b,_0x5eda27:0x10c,_0x24e46d:0x7d,_0x14c01f:0xe7,_0x51c19c:0x1a,_0x5349a7:0x508,_0x26dfa8:0x1e5,_0x5b48bf:0x51,_0x10a97b:0x356,_0x415188:0x170,_0x37a78f:0x3b2,_0x5cdd1a:0x398,_0x120d10:0x52b,_0x4b38a6:0x4fc,_0xa8a67:0x30c,_0x437298:0x3bf,_0x1817c7:0x4f9,_0x57f6f8:0x108,_0x2cf43f:0x5ab,_0x5cdda2:0x812,_0xb595c6:0x94},_0xdcd2ab={'SnHJE':_0x1067d4(_0x58021a._0x1bc252,_0x58021a._0x3bf7cd)+'config\x20n'+'ot\x20found'+_0x1a01ac(_0x58021a._0x4180db,_0x58021a._0x3dfdae)+_0x1067d4(_0x58021a._0x4eda33,_0x58021a._0x2a4c96)+'.','Thiij':function(_0x196a83,_0x351d95,_0x20acea){return _0x196a83(_0x351d95,_0x20acea);},'zLJwf':_0x1a01ac(0x245,_0x58021a._0x160486),'HDCCH':_0x1067d4(0x66e,0x578)+_0x1a01ac(0x284,0x46a),'RhaTX':function(_0x516970,_0x21d478){return _0x516970(_0x21d478);},'qkbcq':_0x1a01ac(0x3d,0x14c)+'d'},_0x3e67ab=readPairingConfig(),_0x57e023=normalizeHttpBase(_0xc5aa8f?.[_0x1a01ac(-0x50,-0x206)+'l']??_0x3e67ab?.[_0x1a01ac(-_0x58021a._0x4bd5f1,_0x58021a._0x1aa249)+'l']??''),_0x562676=_0xc5aa8f?.[_0x1067d4(0x4c3,0x3c1)+'d']??_0x3e67ab?.[_0x1067d4(_0x58021a._0x27d909,0x583)+'d']??'',_0x10e22d=_0xc5aa8f?.[_0x1067d4(0x35f,_0x58021a._0x583896)+'ret']??_0x3e67ab?.[_0x1a01ac(-0xe7,-_0x58021a._0x60d0f5)+_0x1a01ac(_0x58021a._0x1f568e,_0x58021a._0x3df61e)]??'';if(!_0x57e023||!_0x562676||!_0x10e22d)throw new Error(_0xdcd2ab[_0x1067d4(0x5fb,0x407)]);const _0x187edf=await _0xdcd2ab[_0x1067d4(0x516,_0x58021a._0x365a47)](fetch,_0x57e023+(_0x1067d4(_0x58021a._0x2068d2,0x3b0)+'/access-'+'code'),{'method':_0xdcd2ab[_0x1067d4(_0x58021a._0x332320,0x404)],'headers':{'content-type':_0xdcd2ab['HDCCH'],'accept':_0x1a01ac(_0x58021a._0x4a37a8,_0x58021a._0x405771)+_0x1a01ac(0x284,_0x58021a._0x4ac4c3)},'body':JSON[_0x1067d4(_0x58021a._0x559837,0x875)+'y']({'gatewayId':_0x562676,'relaySecret':_0x10e22d,'displayName':_0xc5aa8f?.[_0x1067d4(_0x58021a._0x4e9328,_0x58021a._0x3986e4)+'ame']?.[_0x1a01ac(0x165,0x6e)]()||void 0x0})});function _0x1a01ac(_0x2bcc63,_0x33a3b0){return _0x9ec63e(_0x2bcc63- -0x16a,_0x33a3b0);}if(!_0x187edf['ok'])throw new Error('Access\x20c'+_0x1067d4(0x69b,0x608)+_0x1067d4(_0x58021a._0x48c688,0x5da)+_0x1a01ac(0x12d,_0x58021a._0x912df5)+_0x187edf['status']+_0x1067d4(_0x58021a._0x3bf106,0x5d8)+await _0x187edf[_0x1a01ac(-0x4a,0x132)]());const _0xdac26f=await _0x187edf[_0x1a01ac(_0x58021a._0x56d3e1,-_0x58021a._0x5964d2)]();function _0x1067d4(_0x1bce24,_0x11ef2f){return _0x9ec63e(_0x1bce24-0x2dc,_0x11ef2f);}const _0x55255b={'serverUrl':_0x57e023,'gatewayId':_0xdac26f[_0x1a01ac(0x7d,0xff)+'d'],'relaySecret':_0x10e22d,'relayUrl':_0xdac26f[_0x1067d4(_0x58021a._0x52da8b,_0x58021a._0x3d6d33)],'instanceId':_0x3e67ab?.[_0x1a01ac(_0x58021a._0x48dd8c,_0x58021a._0x5eda27)+'Id']??_0x1a01ac(-0x71,-0x264)+_0xdac26f[_0x1a01ac(_0x58021a._0x24e46d,-0x43)+'d']['slice'](-0xa),'displayName':_0xdac26f['displayN'+_0x1a01ac(-0x34,_0x58021a._0x14c01f)],'createdAt':_0x3e67ab?.[_0x1a01ac(-_0x58021a._0x51c19c,-0x159)+'t']??new Date()[_0x1067d4(0x68a,_0x58021a._0x5349a7)+_0x1a01ac(0x26,0x10a)](),'updatedAt':new Date()[_0x1067d4(0x68a,0x81b)+_0x1067d4(0x46c,0x410)]()};return _0xdcd2ab[_0x1a01ac(_0x58021a._0x26dfa8,_0x58021a._0x5b48bf)](writePairingConfig,_0x55255b),{'config':_0x55255b,'accessCode':_0xdac26f[_0x1a01ac(-0xf0,-0x3c)+'de'],'accessCodeExpiresAt':_0xdac26f[_0x1067d4(_0x58021a._0x10a97b,_0x58021a._0x415188)+_0x1067d4(_0x58021a._0x37a78f,_0x58021a._0x5cdd1a)+_0x1067d4(_0x58021a._0x120d10,_0x58021a._0x4b38a6)],'action':_0xdcd2ab['qkbcq'],'qrPayload':buildPairingQrPayload({'server':_0x57e023,'gatewayId':_0xdac26f['gatewayI'+'d'],'accessCode':_0xdac26f[_0x1067d4(_0x58021a._0x10a97b,_0x58021a._0xa8a67)+'de'],'displayName':_0xdac26f[_0x1067d4(0x646,0x5de)+_0x1067d4(0x412,_0x58021a._0x437298)],'token':_0xc5aa8f?.[_0x1067d4(0x338,_0x58021a._0x1817c7)+_0x1a01ac(0x22c,_0x58021a._0x57f6f8)]?.[_0x1067d4(_0x58021a._0x2cf43f,0x478)]()||null,'password':_0xc5aa8f?.[_0x1067d4(0x66a,_0x58021a._0x5cdda2)+_0x1a01ac(0x269,_0x58021a._0xb595c6)]?.[_0x1067d4(_0x58021a._0x2cf43f,_0x58021a._0x48c688)]()||null})};}function normalizeHttpBase(_0x257354){const _0x3221e2={_0x268eb7:0x3e1,_0x157511:0x525,_0x2e2c53:0x66d,_0x353b3a:0x53b,_0xa12511:0x19c,_0x5c948e:0x2e6,_0x514aa2:0x351,_0x37252f:0x46e,_0x3cb2b1:0x4a7,_0x535bd0:0xb0,_0xdcdff4:0xe7,_0x4228fd:0x3f1},_0x263c39={_0x4441eb:0xb8},_0x38327f={};_0x38327f[_0x4dd2f3(0x329,0x4b3)]=_0x4dd2f3(0x2a,0x1af),_0x38327f[_0x2b5443(-0x5,0x12c)]=_0x4dd2f3(0x4bf,0x4a7);const _0x4f475b=_0x38327f;function _0x2b5443(_0x2a744f,_0x1bbcf9){return _0x431448(_0x2a744f,_0x1bbcf9- -0x19d);}const _0x325462=_0x257354[_0x4dd2f3(0x454,_0x3221e2._0x268eb7)]();if(!_0x325462)return'';if(_0x325462[_0x4dd2f3(_0x3221e2._0x157511,0x53b)+'th']('http://')||_0x325462[_0x4dd2f3(_0x3221e2._0x2e2c53,_0x3221e2._0x353b3a)+'th'](_0x2b5443(0x1f,0xfc)))return _0x325462[_0x2b5443(0x195,_0x3221e2._0xa12511)](/\/+$/,'');if(_0x325462[_0x2b5443(0x441,0x2e6)+'th'](_0x4dd2f3(0x32f,0x1af)))return(_0x4dd2f3(0x5bc,0x457)+_0x325462['slice'](_0x4f475b['CLBct']['length']))[_0x2b5443(0x123,_0x3221e2._0xa12511)](/\/+$/,'');function _0x4dd2f3(_0xb7641e,_0x2f0826){return _0x431448(_0xb7641e,_0x2f0826-_0x263c39._0x4441eb);}if(_0x325462[_0x2b5443(0x29c,_0x3221e2._0x5c948e)+'th'](_0x4f475b['sGNCm']))return(_0x4dd2f3(0x271,_0x3221e2._0x514aa2)+_0x325462['slice'](_0x4dd2f3(_0x3221e2._0x37252f,_0x3221e2._0x3cb2b1)[_0x2b5443(-_0x3221e2._0x535bd0,_0x3221e2._0xdcdff4)]))['replace'](/\/+$/,'');return(_0x4dd2f3(0x29d,0x351)+_0x325462)[_0x4dd2f3(0x443,_0x3221e2._0x4228fd)](/\/+$/,'');}function assessPairingCompatibility(_0x47e66c,_0x2fecf8){const _0x1c8939={_0x18aa37:0x512,_0x586136:0x244,_0x2c107c:0x3b7,_0x5bef56:0x173,_0x572e8d:0x2e6,_0x56ea0b:0x5fb},_0xecb183={_0x327e5c:0x80},_0x53bf8a={_0x2f0090:0x28c};if(!_0x47e66c)return _0xc4a75(_0x1c8939._0x18aa37,0x454)+_0xc4a75(_0x1c8939._0x586136,_0x1c8939._0x2c107c);function _0xa1f17f(_0x2ca411,_0x3b6871){return _0x431448(_0x2ca411,_0x3b6871-_0x53bf8a._0x2f0090);}if(_0x47e66c['serverUr'+'l']===_0x2fecf8)return _0xc4a75(_0x1c8939._0x5bef56,_0x1c8939._0x572e8d)+'existing';function _0xc4a75(_0x383ec9,_0x39e4ad){return _0x431448(_0x383ec9,_0x39e4ad-_0xecb183._0x327e5c);}return _0xa1f17f(0x4c8,_0x1c8939._0x56ea0b)+'ismatch';}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x146d3f,mkdirSync as _0x282046,openSync,readFileSync as _0x1cabb2,realpathSync,rmSync as _0x9ac38d,writeFileSync as _0x161090}from'fs';import{homedir as _0x4d0c40}from'os';import{dirname,join as _0x2e2b7f}from'path';var SERVICE_LABEL=_0x431448(0x10a,0x11b)+_0x431448(0x30e,0x264)+_0x9ec63e(0xa8,-0xfb),SYSTEMD_UNIT_NAME=SERVICE_LABEL+'.service',WINDOWS_RUN_KEY=_0x9ec63e(0x273,0x3c6)+'ridgeCli',SERVICE_DIR=_0x2e2b7f(_0x4d0c40(),_0x431448(0x440,0x24f)),LOG_DIR=_0x2e2b7f(SERVICE_DIR,_0x9ec63e(0x229,0x386)),SERVICE_STATE_PATH=_0x2e2b7f(SERVICE_DIR,_0x431448(0x19,0xc0)+_0x9ec63e(0x326,0x3c1)+_0x9ec63e(0xac,0x2)),SERVICE_LAUNCHER_PATH=_0x2e2b7f(SERVICE_DIR,_0x431448(0x4,0xc0)+_0x431448(0xfc,0xac)+_0x431448(0x4ae,0x496)+'sh'),SERVICE_LOG_PATH=_0x2e2b7f(LOG_DIR,_0x431448(0xef,0x146)+_0x9ec63e(0x13e,0x22)),SERVICE_ERROR_LOG_PATH=_0x2e2b7f(LOG_DIR,_0x431448(0x1c2,0x146)+_0x9ec63e(0x2ff,0x406)+_0x431448(0x373,0x348)),MACOS_PLIST_PATH=_0x2e2b7f(_0x4d0c40(),_0x431448(0x4b,0xa1),_0x431448(0x1ca,0x281)+_0x9ec63e(0x23d,0x2d1),SERVICE_LABEL+_0x431448(0x17f,0x1fa)),LINUX_SERVICE_PATH=_0x2e2b7f(_0x4d0c40(),'.config',_0x431448(0x4c1,0x46e),_0x431448(0x2f8,0x42a),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x5d2f43={},_0x41a0a2=process['platform']){const _0x1aa96e={_0x360ea0:0x4cf,_0x20740c:0x581,_0x44df73:0x4a8,_0x335b4a:0x244,_0x48bc34:0x25c,_0x4b87a5:0x1a0,_0x4eee02:0x37f,_0x33772b:0x121,_0xd233cd:0x2b7,_0x20b7d9:0x384,_0x567999:0x486,_0x1d9ba4:0x2d6,_0x27428e:0x6cc,_0x1d8b2d:0x5af,_0x516b37:0x459,_0x512b01:0x3aa,_0x373c7d:0x3e9,_0x2f7cd8:0x5c9,_0x53e152:0x1bc,_0x4b0f55:0x37d,_0x5c3dc1:0x486,_0x3743b7:0x435,_0x940508:0x49b,_0x5c291e:0x44b},_0x1a475b={_0x43d794:0x177},_0x2ea13d={_0x346a5c:0x56},_0xb3e127={};function _0x1826b8(_0x410b43,_0x417a45){return _0x431448(_0x410b43,_0x417a45-_0x2ea13d._0x346a5c);}_0xb3e127[_0xf7c552(_0x1aa96e._0x360ea0,0x5eb)]=function(_0x110d6b,_0x831485){return _0x110d6b!==_0x831485;},_0xb3e127[_0x1826b8(_0x1aa96e._0x20740c,_0x1aa96e._0x44df73)]=_0x1826b8(0x2cd,0x21d);const _0x2dcee7=_0xb3e127;function _0xf7c552(_0x17703d,_0x2f3533){return _0x431448(_0x17703d,_0x2f3533-_0x1a475b._0x43d794);}const _0x26b67c=_0x5d2f43[_0x1826b8(_0x1aa96e._0x335b4a,_0x1aa96e._0x48bc34)]?.[_0x1826b8(_0x1aa96e._0x4b87a5,_0x1aa96e._0x4eee02)]()||process[_0x1826b8(_0x1aa96e._0x33772b,_0x1aa96e._0xd233cd)],_0xd819e6=resolveScriptPath(_0x5d2f43[_0x1826b8(_0x1aa96e._0x20b7d9,_0x1aa96e._0x567999)+'th']);if(!_0xd819e6)throw new Error(_0xf7c552(0x199,0x238)+'o\x20resolv'+_0x1826b8(0x591,0x4b6)+'ript\x20pat'+_0xf7c552(0x366,_0x1aa96e._0x1d9ba4)+_0xf7c552(_0x1aa96e._0x27428e,_0x1aa96e._0x1d8b2d)+_0xf7c552(_0x1aa96e._0x516b37,_0x1aa96e._0x512b01)+_0xf7c552(0x373,0x3a1));if(_0x2dcee7[_0x1826b8(_0x1aa96e._0x373c7d,0x4ca)](_0x41a0a2,_0x2dcee7[_0xf7c552(0x601,_0x1aa96e._0x2f7cd8)])){const _0x54017b={};_0x54017b[_0xf7c552(_0x1aa96e._0x53e152,_0x1aa96e._0x4b0f55)]=_0x26b67c,_0x54017b[_0x1826b8(_0x1aa96e._0x5c3dc1,0x486)+'th']=_0xd819e6,_0x54017b['pathEnv']=process.env.PATH??'';const _0x43200f=writeServiceLauncher(_0x54017b);return ensureLaunchScriptExecutable(_0x43200f,_0x41a0a2),[_0x43200f];}return[_0x26b67c,_0xd819e6,_0x1826b8(0x4da,_0x1aa96e._0x3743b7),_0xf7c552(_0x1aa96e._0x940508,_0x1aa96e._0x5c291e)+'e'];}function getServiceStatus(){const _0x3e57af={_0x37c662:0x12b,_0xcece39:0x36,_0x427a54:0x15c,_0x4c1404:0x19e,_0x232a7f:0xc0,_0x2c6063:0x178,_0x36e8b2:0x17f,_0x43557f:0x29,_0x2594cc:0x23,_0x32874b:0x191,_0x4407ab:0x30a,_0x9f8c76:0x150,_0x3625e4:0x75,_0x440cfa:0x37,_0x4caa76:0x26d,_0x25397b:0x83,_0x18771a:0x8e,_0x76189d:0x143,_0x329f83:0x250,_0x13a284:0x26d,_0x3505d1:0xf6,_0x1a6723:0x127,_0x19f653:0x66,_0x7f1897:0x25c,_0x2a45ee:0x17,_0x42b19a:0xed,_0x486a25:0x3cb,_0x4bd96b:0xfd,_0x3d1dd8:0x1b4,_0x4a5c31:0x32,_0x12d4b8:0x469,_0x339546:0x32e,_0x21b843:0xbc,_0x51f519:0x1f9,_0x40817f:0x9f,_0x46b055:0x309},_0x31bf2b={_0x1a1d63:0x212};function _0x47baef(_0x1fabc0,_0x4fc056){return _0x9ec63e(_0x4fc056- -0x100,_0x1fabc0);}const _0x28e7b0={'Bnxdd':function(_0x525635){return _0x525635();},'PdXrY':function(_0x1058e1,_0x3b4776){return _0x1058e1(_0x3b4776);},'Feyvn':_0x59b85e(0x5f,_0x3e57af._0x37c662)+_0x59b85e(0x1be,0x241),'tofCl':'systemct'+'l','KrtAr':'--user','SJINk':'reg'};ensureServiceDirs();const _0x5691c5=_0x28e7b0[_0x47baef(-_0x3e57af._0xcece39,0x119)](readServiceState)?.['pid']??null,_0x186601={'installed':![],'running':_0x5691c5!=null&&_0x28e7b0[_0x47baef(0x10a,_0x3e57af._0x427a54)](isPidRunning,_0x5691c5),'method':detectServiceMethod(),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x5691c5};function _0x59b85e(_0x386f01,_0x5501d6){return _0x9ec63e(_0x386f01- -_0x31bf2b._0x1a1d63,_0x5501d6);}_0x186601[_0x47baef(-_0x3e57af._0x4c1404,-_0x3e57af._0x232a7f)]!=null&&!_0x186601[_0x59b85e(-_0x3e57af._0x2c6063,-_0x3e57af._0x36e8b2)]&&(clearServiceState(_0x186601[_0x59b85e(-0x1d2,_0x3e57af._0x43557f)]),_0x186601[_0x47baef(_0x3e57af._0x2594cc,-0xc0)]=null);switch(_0x186601[_0x47baef(_0x3e57af._0x32874b,_0x3e57af._0x4407ab)]){case _0x47baef(-0x1eb,-_0x3e57af._0x2594cc)+_0x59b85e(_0x3e57af._0x9f8c76,-_0x3e57af._0x3625e4):_0x186601[_0x59b85e(0x15b,-_0x3e57af._0x440cfa)+'d']=_0x28e7b0[_0x59b85e(0x4a,-0x14e)](_0x146d3f,MACOS_PLIST_PATH);_0x186601[_0x47baef(0x288,_0x3e57af._0x4caa76)+'d']&&(_0x186601[_0x47baef(-0x72,-0x66)]=commandSucceeds(_0x47baef(-_0x3e57af._0x25397b,_0x3e57af._0x18771a)+'l',[_0x47baef(_0x3e57af._0x76189d,-0x26),SERVICE_LABEL])||_0x186601[_0x59b85e(-0x178,-_0x3e57af._0x329f83)]);return _0x186601;case _0x28e7b0['Feyvn']:_0x186601[_0x47baef(0x122,0x26d)+'d']=_0x146d3f(LINUX_SERVICE_PATH);_0x186601[_0x47baef(0x1b9,_0x3e57af._0x13a284)+'d']&&(_0x186601[_0x47baef(-0x141,-0x66)]=commandSucceeds(_0x28e7b0['tofCl'],[_0x28e7b0[_0x47baef(0x19d,_0x3e57af._0x3505d1)],'is-activ'+'e',_0x59b85e(0x219,0x3ea),SYSTEMD_UNIT_NAME])||_0x186601[_0x47baef(-_0x3e57af._0x1a6723,-_0x3e57af._0x19f653)]);return _0x186601;case _0x47baef(0x1df,_0x3e57af._0x7f1897)+_0x47baef(-0x175,_0x3e57af._0x2a45ee)+_0x59b85e(-_0x3e57af._0x42b19a,-0x258):_0x186601[_0x47baef(_0x3e57af._0x486a25,0x26d)+'d']=commandSucceeds(_0x28e7b0[_0x59b85e(0x59,-_0x3e57af._0x4bd96b)],[_0x59b85e(_0x3e57af._0x3d1dd8,-_0x3e57af._0x4a5c31),_0x47baef(_0x3e57af._0x12d4b8,_0x3e57af._0x339546)+_0x47baef(_0x3e57af._0x21b843,_0x3e57af._0x51f519)+_0x59b85e(0x7e,0x3f)+_0x59b85e(-_0x3e57af._0x40817f,-0x1ca)+_0x59b85e(-0x105,-_0x3e57af._0x46b055)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY]);return _0x186601;default:return _0x186601;}}function installService(_0x335d56={}){const _0x334ec3={_0x187042:0x108,_0x6d2487:0x198,_0xcc4948:0xdb,_0x435bb2:0x1bb,_0x386ecd:0x189,_0x356990:0x11a,_0x9c3f4f:0x1ae,_0x219c8d:0x20f,_0x4295a4:0x1ed,_0x26626f:0x29,_0xeb9639:0x2e4,_0x4ac066:0x28,_0x14e3a5:0xb0,_0x36d3cb:0x19f,_0x3ce1d6:0x7d,_0x114b14:0x1c,_0x540b44:0x13a,_0x3eb8a3:0x129,_0x3c289a:0x121,_0x1b23bb:0x57,_0x34852c:0x135,_0x483101:0x1c2,_0x1990d6:0xae,_0x1a35d0:0x128,_0x508019:0x14a,_0x582d4e:0x1b7},_0x2f6974={_0x55840a:0x278};function _0x54a6dc(_0x54ac67,_0x356888){return _0x431448(_0x356888,_0x54ac67- -0x2f0);}const _0x84f4ca={'xXsuf':_0x54a6dc(-_0x334ec3._0x187042,0xc8)+'l','hkKUr':_0x35e1eb(0x121,0x17),'UWBsz':function(_0x1f95a5,_0x45791c){return _0x1f95a5(_0x45791c);},'pvrub':function(_0x5f3573,_0x99b1fb,_0x4538a6,_0x25078e){return _0x5f3573(_0x99b1fb,_0x4538a6,_0x25078e);},'WoVzi':_0x54a6dc(-0xd0,-0x1e8),'vrwUt':_0x35e1eb(-0x1ad,0x52),'kkFjx':_0x54a6dc(_0x334ec3._0x6d2487,0xad)+_0x35e1eb(_0x334ec3._0xcc4948,_0x334ec3._0x435bb2)+'crosoft\x5c'+_0x35e1eb(-0xab,0x102)+_0x54a6dc(-_0x334ec3._0x386ecd,-0x300)+'ersion\x5cR'+'un'};function _0x35e1eb(_0xc9fee,_0x2f00da){return _0x431448(_0x2f00da,_0xc9fee- -_0x2f6974._0x55840a);}ensureServiceDirs();const _0x2ae629=getServiceProgramArgs(_0x335d56);switch(process[_0x54a6dc(0x13f,-0xac)]){case _0x35e1eb(0xa9,-0xd6):_0x161090(MACOS_PLIST_PATH,buildMacosPlist(_0x2ae629,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x54a6dc(-0xf0,-0x34)),execIgnoreFailure(_0x84f4ca['xXsuf'],[_0x35e1eb(_0x334ec3._0x356990,0x173),'-w',MACOS_PLIST_PATH]);const _0x14ca96={};_0x14ca96[_0x35e1eb(0x220,_0x334ec3._0x9c3f4f)]=_0x84f4ca[_0x54a6dc(-0x1c1,-0x137)],execFileSync('launchct'+'l',[_0x54a6dc(-0x221,-_0x334ec3._0x219c8d),'-w',MACOS_PLIST_PATH],_0x14ca96);break;case _0x54a6dc(0x160,0x1a7):const _0x5096fd={};_0x5096fd[_0x54a6dc(-_0x334ec3._0x4295a4,-0xbb)+'e']=!![],_0x282046(_0x84f4ca[_0x35e1eb(0x42,_0x334ec3._0x435bb2)](dirname,LINUX_SERVICE_PATH),_0x5096fd),_0x161090(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x2ae629,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x54a6dc(-0xf0,_0x334ec3._0x26626f));const _0x580989={};_0x580989[_0x35e1eb(0x220,0x15f)]='ignore',_0x84f4ca['pvrub'](execFileSync,'systemct'+'l',[_0x35e1eb(-0x58,-0x3b),_0x35e1eb(0x159,_0x334ec3._0xeb9639)+'eload'],_0x580989);const _0x43880a={};_0x43880a['stdio']='ignore',_0x84f4ca[_0x54a6dc(0xa6,_0x334ec3._0x4ac066)](execFileSync,'systemct'+'l',[_0x84f4ca[_0x54a6dc(-_0x334ec3._0x14e3a5,-_0x334ec3._0x36d3cb)],_0x35e1eb(-_0x334ec3._0x3ce1d6,-_0x334ec3._0x114b14),_0x84f4ca[_0x54a6dc(-0x5f,-_0x334ec3._0x540b44)],SYSTEMD_UNIT_NAME],_0x43880a);break;case _0x54a6dc(-_0x334ec3._0x3eb8a3,0xdb):stopRunningProcess();const _0x498f2d={};_0x498f2d['stdio']=_0x35e1eb(_0x334ec3._0x3c289a,0x137),execFileSync(_0x35e1eb(-_0x334ec3._0x1b23bb,-_0x334ec3._0x34852c),[_0x35e1eb(0x111,0x6d),_0x84f4ca[_0x54a6dc(0x73,0x143)],'/v',WINDOWS_RUN_KEY,'/t',_0x35e1eb(0x16,-0x189),'/d',buildWindowsRunCommand(_0x2ae629),'/f'],_0x498f2d),startDetachedWindowsService(_0x2ae629);break;default:throw new Error('Unsuppor'+'ted\x20plat'+'form\x20for'+'\x20CLI\x20ser'+_0x54a6dc(0xb3,_0x334ec3._0x483101)+_0x35e1eb(-_0x334ec3._0x1990d6,-_0x334ec3._0x1a35d0)+_0x54a6dc(0x142,_0x334ec3._0x508019)+process[_0x35e1eb(_0x334ec3._0x582d4e,0x290)]);}return getServiceStatus();}function restartService(_0x432a81={}){const _0x185233={_0x49ca46:0x23f,_0x258ada:0x2fc,_0x16c0e6:0x3f8,_0x19aa28:0xbe,_0x452b94:0x1de,_0x14cd6e:0xd0,_0x24dcb0:0x4b,_0x959b56:0x1b2,_0x48fe92:0x141,_0x249b7c:0x294,_0x1d5fb3:0x3e9,_0x3e383a:0x43,_0x28df77:0x182,_0x17510b:0x86,_0x2f61e5:0x34,_0x528133:0x15a,_0x5bc31e:0x458,_0xc13913:0x88,_0x55f855:0x1c1,_0x3b4af5:0x1ea,_0x2a78cd:0x4e6,_0x545e26:0x2b1,_0x4bd515:0x4ef,_0x35083c:0x100,_0x22210a:0x4dc,_0x53fd49:0x31,_0x2afb61:0x148,_0x177e64:0x2c1,_0x145dd1:0x19e,_0x115093:0x4df,_0x3fcde2:0x18b,_0x5a01af:0xea,_0x136175:0x518,_0x5146b4:0x3a6,_0x3e0093:0x1ce,_0x580437:0x427,_0xd07e6f:0x486},_0xb8785a={_0x2c50fa:0xb1};function _0xd40e9e(_0xdddd35,_0x16f9dd){return _0x9ec63e(_0x16f9dd-_0xb8785a._0x2c50fa,_0xdddd35);}const _0x1cb92d={'RkFEl':function(_0x195b87,_0x1a2457){return _0x195b87(_0x1a2457);},'UQxmi':function(_0xbc8f22,_0x523dfb,_0x19ebe9,_0x412c9a){return _0xbc8f22(_0x523dfb,_0x19ebe9,_0x412c9a);},'CnPkg':_0xd40e9e(0x286,_0x185233._0x49ca46)+'l','IoZgq':_0x287183(0x148,_0x185233._0x258ada),'zwWZl':_0xd40e9e(_0x185233._0x16c0e6,0x4a7),'MuAfS':function(_0x4d8404,_0x2f1f9c,_0x1f8c75){return _0x4d8404(_0x2f1f9c,_0x1f8c75);},'IATCc':function(_0x3da5d8,_0x253b33,_0x2734f0,_0x46fe59){return _0x3da5d8(_0x253b33,_0x2734f0,_0x46fe59);},'hPPxH':_0x287183(-_0x185233._0x19aa28,-0x21c)+'l','naQet':_0xd40e9e(0x33e,0x278)};ensureServiceDirs();const _0xd777ce=getServiceProgramArgs(_0x432a81);function _0x287183(_0x734857,_0x272ef7){return _0x9ec63e(_0x734857- -0x1f7,_0x272ef7);}switch(process[_0x287183(_0x185233._0x452b94,0x3b0)]){case _0x287183(_0x185233._0x14cd6e,-_0x185233._0x24dcb0):if(!_0x146d3f(MACOS_PLIST_PATH))return _0x1cb92d[_0x287183(0x7d,_0x185233._0x959b56)](installService,_0x432a81);_0x1cb92d[_0x287183(-0x1b1,-0x6b)](_0x161090,MACOS_PLIST_PATH,buildMacosPlist(_0xd777ce,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),execIgnoreFailure(_0x1cb92d[_0x287183(0xe9,_0x185233._0x48fe92)],[_0xd40e9e(_0x185233._0x249b7c,_0x185233._0x1d5fb3),'-w',MACOS_PLIST_PATH]);const _0x2b2762={};_0x2b2762['stdio']=_0x1cb92d[_0xd40e9e(_0x185233._0x3e383a,0x112)],execFileSync('launchct'+'l',[_0x287183(-_0x185233._0x28df77,-_0x185233._0x17510b),'-w',MACOS_PLIST_PATH],_0x2b2762);break;case _0x1cb92d[_0x287183(0x1ea,0x21a)]:if(!_0x146d3f(LINUX_SERVICE_PATH))return installService(_0x432a81);const _0x4b49b8={};_0x4b49b8[_0xd40e9e(_0x185233._0x2f61e5,_0x185233._0x528133)+'e']=!![],_0x1cb92d[_0xd40e9e(0x5e6,_0x185233._0x5bc31e)](_0x282046,dirname(LINUX_SERVICE_PATH),_0x4b49b8),_0x161090(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0xd777ce,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),_0x1cb92d[_0xd40e9e(_0x185233._0xc13913,_0x185233._0x55f855)](execFileSync,_0xd40e9e(0x128,_0x185233._0x3b4af5)+'l',['--user','daemon-r'+_0xd40e9e(0x4c8,_0x185233._0x2a78cd)],{'stdio':_0x1cb92d[_0xd40e9e(_0x185233._0x545e26,0x112)]});const _0x3ba9cb={};_0x3ba9cb[_0xd40e9e(0x5cd,_0x185233._0x4bd515)]=_0x287183(0x148,_0x185233._0x35083c),execFileSync(_0x1cb92d[_0xd40e9e(_0x185233._0x22210a,0x434)],[_0x287183(-_0x185233._0x53fd49,-0xca),_0xd40e9e(0x321,0x271),SYSTEMD_UNIT_NAME],_0x3ba9cb);break;case'win32':stopRunningProcess();const _0xcbb79b={};_0xcbb79b['stdio']=_0x287183(_0x185233._0x2afb61,_0x185233._0x177e64),execFileSync(_0x1cb92d[_0xd40e9e(0x324,_0x185233._0x145dd1)],['add',_0xd40e9e(0x52c,_0x185233._0x115093)+_0xd40e9e(0x31e,0x3aa)+_0xd40e9e(_0x185233._0x3fcde2,0x341)+'Windows\x5c'+_0x287183(-_0x185233._0x5a01af,-0x1f2)+_0xd40e9e(0x418,0x449)+'un','/v',WINDOWS_RUN_KEY,'/t','REG_SZ','/d',buildWindowsRunCommand(_0xd777ce),'/f'],_0xcbb79b),startDetachedWindowsService(_0xd777ce);break;default:throw new Error(_0xd40e9e(0x141,0x2fc)+_0xd40e9e(_0x185233._0x136175,_0x185233._0x5146b4)+_0xd40e9e(0x285,_0x185233._0x3e0093)+_0x287183(0x26,0x159)+'vice\x20res'+_0xd40e9e(0x3c4,_0x185233._0x580437)+process[_0xd40e9e(0x55c,_0x185233._0xd07e6f)]);}return getServiceStatus();}function uninstallService(){const _0x5300ce={_0x325bcc:0x7f0,_0x47a0b6:0x63f,_0x4a6d34:0x6d8,_0x468550:0x6b7,_0x515fa5:0x247,_0x4a85b2:0x104,_0x2308a6:0x18f,_0x59185d:0x63f,_0x11dd93:0x180,_0x128412:0x50f,_0x211bf0:0x322,_0x3943fe:0x368,_0x36ac00:0x4a8,_0x2e26ed:0x1ce,_0x4cfc74:0x717,_0x25ac94:0x1e,_0x122ebf:0x425,_0x2d8780:0x3b9,_0x327fcc:0x304,_0x4de8a6:0x285,_0x135ead:0x137,_0x31617b:0x2c4,_0x19588b:0x455},_0x2b5b7c={};_0x2b5b7c[_0x3f718c(_0x5300ce._0x325bcc,_0x5300ce._0x47a0b6)]=_0x3f718c(0x6a2,_0x5300ce._0x4a6d34);const _0x28a37d=_0x2b5b7c;stopRunningProcess();switch(process[_0x3f718c(0x88e,_0x5300ce._0x468550)]){case _0x479c27(_0x5300ce._0x515fa5,0x11e):execIgnoreFailure(_0x3f718c(0x674,0x470)+'l',[_0x479c27(_0x5300ce._0x4a85b2,_0x5300ce._0x2308a6),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x28a37d[_0x3f718c(0x618,_0x5300ce._0x59185d)]:_0x146d3f(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x479c27(-_0x5300ce._0x11dd93,-0x70)+'l',['--user',_0x3f718c(_0x5300ce._0x128412,0x3dc),_0x479c27(-_0x5300ce._0x211bf0,-0x138),SYSTEMD_UNIT_NAME]),rmIfExists(LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',[_0x3f718c(_0x5300ce._0x3943fe,_0x5300ce._0x36ac00),_0x479c27(-0x1c,_0x5300ce._0x2e26ed)+_0x3f718c(0x7de,_0x5300ce._0x4cfc74)]));break;case'win32':execIgnoreFailure(_0x479c27(0x1cb,_0x5300ce._0x25ac94),[_0x3f718c(_0x5300ce._0x122ebf,_0x5300ce._0x2d8780),_0x479c27(_0x5300ce._0x327fcc,_0x5300ce._0x4de8a6)+'tware\x5cMi'+_0x479c27(_0x5300ce._0x135ead,0xe7)+_0x3f718c(_0x5300ce._0x31617b,_0x5300ce._0x19588b)+_0x3f718c(0x56a,0x3ef)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}clearServiceState();function _0x479c27(_0x38d07d,_0x134c23){return _0x9ec63e(_0x134c23- -0x1a9,_0x38d07d);}function _0x3f718c(_0xde4046,_0x3f94dc){return _0x9ec63e(_0x3f94dc-0x2e2,_0xde4046);}return getServiceStatus();}function stopService(){const _0x1acc7e={_0x47554a:0x481,_0x19a98a:0x28f,_0x95fa89:0x77e,_0x8433e4:0x537,_0x376f84:0x131,_0x5dd431:0x7dc,_0x48240a:0xce,_0x462e50:0x516,_0x49b397:0x3cc},_0x18fadb={_0x5389a2:0x261},_0x51e8a9={'uDKDq':function(_0xbeeaff){return _0xbeeaff();}};function _0x51553f(_0x4cf718,_0x2f57dd){return _0x431448(_0x2f57dd,_0x4cf718-0x34f);}function _0x128751(_0x2c96a5,_0x1c23fc){return _0x431448(_0x2c96a5,_0x1c23fc- -_0x18fadb._0x5389a2);}_0x51e8a9[_0x51553f(_0x1acc7e._0x47554a,_0x1acc7e._0x19a98a)](stopRunningProcess);switch(process[_0x51553f(_0x1acc7e._0x95fa89,0x93d)]){case'darwin':_0x146d3f(MACOS_PLIST_PATH)&&execIgnoreFailure(_0x51553f(_0x1acc7e._0x8433e4,0x5ab)+'l',[_0x128751(0x30f,_0x1acc7e._0x376f84),MACOS_PLIST_PATH]);break;case _0x51553f(0x79f,_0x1acc7e._0x5dd431):_0x146d3f(LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x128751(-0x121,-_0x1acc7e._0x48240a)+'l',['--user','stop',SYSTEMD_UNIT_NAME]);break;case _0x51553f(_0x1acc7e._0x462e50,_0x1acc7e._0x49b397):break;default:break;}return clearServiceState(),getServiceStatus();}function writeServiceState(_0x1325a3=process[_0x431448(0x141,0x9a)]){const _0x3dfeb3={_0x4e897d:0x166,_0x151dd5:0x1d6,_0x584084:0x143},_0x39064d={'whrqM':function(_0x4d65a3){return _0x4d65a3();},'MOMOY':function(_0x334a95,_0x54adae,_0x5b01a6,_0x5bd383){return _0x334a95(_0x54adae,_0x5b01a6,_0x5bd383);}};function _0x1d22f9(_0x2efd40,_0x3cf638){return _0x9ec63e(_0x3cf638- -0x2f6,_0x2efd40);}_0x39064d[_0x11f808(-0x43,0x123)](ensureServiceDirs);const _0xb999cd={'pid':_0x1325a3,'startedAt':new Date()['toISOStr'+_0x1d22f9(0x76,-_0x3dfeb3._0x4e897d)]()};function _0x11f808(_0x14d01d,_0x4d3631){return _0x9ec63e(_0x14d01d- -0x2cb,_0x4d3631);}_0x39064d[_0x1d22f9(_0x3dfeb3._0x151dd5,_0x3dfeb3._0x584084)](_0x161090,SERVICE_STATE_PATH,JSON[_0x11f808(0xfa,0x1c4)+'y'](_0xb999cd,null,0x2)+'\x0a','utf8');}function clearServiceState(_0x4ec039){const _0x3cd7d9={_0xeda674:0x25d},_0x4092f9={_0x56e938:0x300},_0x2178c8={'jgfen':function(_0x10d7e7,_0x1689d7){return _0x10d7e7(_0x1689d7);}};if(!_0x2178c8[_0x5f3e3c(-0x1ca,-_0x3cd7d9._0xeda674)](_0x146d3f,SERVICE_STATE_PATH))return;if(_0x4ec039!=null){const _0x2409b0=readServiceState();if(_0x2409b0&&_0x2409b0['pid']!==_0x4ec039)return;}function _0x5f3e3c(_0x5dea75,_0x4c9b0e){return _0x431448(_0x4c9b0e,_0x5dea75- -_0x4092f9._0x56e938);}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':getServicePath()};}function buildMacosPlist(_0x34546d,_0x5474cc,_0x31f57a){const _0xe31bad={_0x12a055:0x45,_0x41591d:0x23a,_0xac6ec1:0xa1,_0x3bc216:0xac,_0x917718:0x369,_0x3eb9f7:0x1be,_0x44a6be:0x1dd,_0x2556cc:0xb2,_0x4011e2:0x10f,_0x1acaae:0x2e1,_0x652e:0x13d,_0x4317f4:0xb8,_0xfa76ad:0xf8,_0x11f621:0xbb,_0x338adb:0x21,_0x5a21df:0x270,_0x3126b7:0x2a6,_0x1cc122:0x260,_0x1b38c3:0x188,_0x2da914:0x26f,_0x32f850:0x375,_0x473291:0x25b,_0x29263c:0x4c7,_0x54bfbe:0x27,_0x5719ed:0x438,_0x23da86:0x366,_0x2692b3:0x14,_0x5a2288:0x8c,_0x10e4dc:0x642,_0x315173:0x65,_0x2494ce:0x139,_0x5c4b8b:0x4a3,_0x4b9956:0x360,_0x52282f:0x223,_0x447ac2:0x251,_0x4406a1:0x2d,_0x12b354:0xe9,_0x43cae2:0xce,_0x92addb:0x1a5,_0x52c158:0x11b,_0x16ee7b:0xa6,_0x425d87:0x12,_0x47349b:0x132,_0x4b2edb:0x1a,_0x3f4b3e:0xa6},_0x19ed4f={_0x4b0cb1:0x203};function _0x228651(_0x2be56b,_0x1c1bb8){return _0x9ec63e(_0x1c1bb8-0x8f,_0x2be56b);}const _0x21cd99=_0x34546d[_0x228651(_0xe31bad._0x12a055,_0xe31bad._0x41591d)](_0x247710=>_0x228651(0x27c,0x3e7)+'ing>'+escapeXml(_0x247710)+('</string'+'>'))[_0x367df1(_0xe31bad._0xac6ec1,-_0xe31bad._0x3bc216)]('\x0a');function _0x367df1(_0x2b83db,_0x365c3a){return _0x9ec63e(_0x365c3a- -_0x19ed4f._0x4b0cb1,_0x2b83db);}return'<?xml\x20ve'+_0x228651(_0xe31bad._0x917718,0x3d7)+_0x228651(_0xe31bad._0x3eb9f7,_0xe31bad._0x44a6be)+_0x228651(-_0xe31bad._0x2556cc,_0xe31bad._0x4011e2)+_0x367df1(_0xe31bad._0x1acaae,_0xe31bad._0x652e)+_0x367df1(_0xe31bad._0x4317f4,0x103)+'\x20plist\x20P'+_0x367df1(-_0xe31bad._0xfa76ad,_0xe31bad._0x11f621)+_0x367df1(-0xa7,-_0xe31bad._0x338adb)+_0x228651(0x1e9,_0xe31bad._0x5a21df)+'ST\x201.0//'+'EN\x22\x20\x22htt'+'p://www.'+'apple.co'+'m/DTDs/P'+_0x228651(0x588,0x44b)+'ist-1.0.'+'dtd\x22>\x0a<p'+_0x228651(_0xe31bad._0x3126b7,0x242)+_0x367df1(_0xe31bad._0x1cc122,0x129)+_0x367df1(0x367,_0xe31bad._0x1b38c3)+_0x367df1(0x197,0xe)+_0x228651(0x49,0x1e2)+'/key>\x0a\x20\x20'+_0x228651(_0xe31bad._0x2da914,0x3bf)+SERVICE_LABEL+(_0x228651(0x1f5,0x1c4)+_0x228651(0x3c9,_0xe31bad._0x32f850)+'>Program'+'Argument'+_0x228651(0x346,_0xe31bad._0x473291)+_0x228651(0x56e,_0xe31bad._0x29263c)+'>\x0a')+_0x21cd99+('\x0a\x20\x20</arr'+_0x367df1(-_0xe31bad._0x54bfbe,-0x8e)+_0x228651(_0xe31bad._0x5719ed,_0xe31bad._0x23da86)+_0x367df1(-0x5,0x12b)+_0x367df1(0x1ac,0x1c4)+_0x367df1(_0xe31bad._0x2692b3,-_0xe31bad._0x5a2288)+_0x228651(_0xe31bad._0x10e4dc,0x4d0)+_0x367df1(0x118,-_0xe31bad._0x315173)+_0x228651(0x2d2,_0xe31bad._0x2494ce)+_0x228651(_0xe31bad._0x5c4b8b,_0xe31bad._0x4b9956)+_0x367df1(0x357,_0xe31bad._0x52282f)+_0x367df1(-_0xe31bad._0x447ac2,-0x10c)+_0x367df1(-_0xe31bad._0x4406a1,_0xe31bad._0x12b354)+'y>\x0a\x20\x20<st'+'ring>')+escapeXml(_0x5474cc)+(_0x367df1(-0x9b,-_0xe31bad._0x43cae2)+_0x228651(_0xe31bad._0x92addb,0x375)+_0x367df1(_0xe31bad._0x52c158,0x20a)+_0x367df1(0x10b,-0xb8)+'th</key>'+_0x228651(_0xe31bad._0x16ee7b,0x134)+_0x367df1(-_0xe31bad._0x425d87,-_0xe31bad._0x47349b))+escapeXml(_0x31f57a)+(_0x367df1(-0xeb,-0xce)+'>\x0a</dict'+'>\x0a</plis'+_0x367df1(_0xe31bad._0x4b2edb,_0xe31bad._0x3f4b3e));}function buildLinuxSystemdUnit(_0x5b8e36,_0x554848,_0x4857bd){const _0x41e2dc={_0x2a5513:0x3b,_0xc8ec16:0x595,_0x431e32:0x5a4,_0x2ef4a4:0x27e,_0xeb4469:0x1a,_0x1974e1:0x1b1,_0xed3d12:0x2ad,_0x220d93:0x6c,_0x126c5e:0x65,_0x4fa361:0x279,_0x3d7755:0x6ac,_0x2270c5:0x7fa,_0x4cb281:0x40e,_0x2c5375:0x767,_0x5dd194:0x9,_0x583712:0xaf,_0x3fabe9:0x23a,_0x4cd3c7:0x20e,_0x4378d8:0x184,_0x12de60:0x27d,_0x1cd325:0x39b,_0x5a5f59:0xb1,_0x2a0dc3:0x3de,_0x14fd4f:0x4e1,_0x5b4583:0x5f3,_0x38c7c2:0x4bf,_0x5d6bd2:0x579,_0x78c6ab:0x47a,_0x2a0d73:0x617,_0x150099:0x505,_0x1ffdc0:0x51c};function _0x59c100(_0x2bb99f,_0xf648a){return _0x9ec63e(_0x2bb99f-0x347,_0xf648a);}function _0x25c3c3(_0x2e324f,_0x2f8f7c){return _0x9ec63e(_0x2e324f- -0x192,_0x2f8f7c);}const _0x5283a1={'ZSupj':function(_0x1e4136,_0x1675bf){return _0x1e4136(_0x1675bf);}},_0x2d4cc1=_0x5b8e36[_0x59c100(0x4f2,0x529)](escapeSystemdArg)[_0x25c3c3(-_0x41e2dc._0x2a5513,0x79)]('\x20');return _0x59c100(_0x41e2dc._0xc8ec16,0x666)+_0x59c100(_0x41e2dc._0x431e32,0x6f2)+_0x25c3c3(-0x129,-_0x41e2dc._0x2ef4a4)+'et\x20Bridg'+'e\x20CLI\x0aAf'+_0x25c3c3(0x72,-_0x41e2dc._0xeb4469)+_0x25c3c3(_0x41e2dc._0x1974e1,_0x41e2dc._0xed3d12)+_0x25c3c3(-_0x41e2dc._0x220d93,-_0x41e2dc._0x126c5e)+_0x25c3c3(_0x41e2dc._0x4fa361,0x2fe)+_0x59c100(_0x41e2dc._0x3d7755,_0x41e2dc._0x2270c5)+'online.t'+'arget\x0a\x0a['+_0x59c100(_0x41e2dc._0x4cb281,0x287)+_0x59c100(0x721,0x568)+_0x59c100(_0x41e2dc._0x2c5375,0x573)+_0x25c3c3(-0x86,_0x41e2dc._0x5dd194)+_0x2d4cc1+(_0x25c3c3(-_0x41e2dc._0x583712,-0x269)+_0x25c3c3(_0x41e2dc._0x3fabe9,_0x41e2dc._0x4cd3c7)+_0x25c3c3(_0x41e2dc._0x4378d8,_0x41e2dc._0x12de60)+'ec=2\x0aWor'+_0x59c100(_0x41e2dc._0x1cd325,0x427)+_0x25c3c3(-_0x41e2dc._0x5a5f59,0x5a))+_0x5283a1[_0x59c100(_0x41e2dc._0x2a0dc3,_0x41e2dc._0x14fd4f)](escapeSystemdArg,SERVICE_DIR)+(_0x59c100(0x5f3,0x719)+_0x59c100(0x49f,0x2af)+_0x25c3c3(0x8,-0x15c))+_0x554848+(_0x59c100(_0x41e2dc._0x5b4583,0x684)+_0x59c100(_0x41e2dc._0x38c7c2,0x560)+_0x59c100(0x76b,0x82b))+_0x4857bd+(_0x59c100(_0x41e2dc._0x5d6bd2,_0x41e2dc._0x78c6ab)+_0x59c100(0x3a4,0x320)+'edBy=def'+_0x59c100(_0x41e2dc._0x2a0d73,_0x41e2dc._0x150099)+_0x59c100(0x5b4,_0x41e2dc._0x1ffdc0));}function getServicePath(){const _0x57b317={_0x1f87b9:0x531,_0x17de6c:0x512,_0x3036a6:0x48b,_0x43825d:0x3fa,_0x6387ec:0x58a,_0xecfbd7:0x15b,_0x40d31d:0x194,_0x125df0:0x354,_0x4d7269:0x103,_0x1be704:0x263,_0x5ee466:0x3bd,_0x4a4865:0x88,_0x1b1808:0x298},_0x39cc95={_0x26e4c2:0x135},_0x1ef978={_0x102081:0x15c};function _0x24696e(_0x531e99,_0x2fcb78){return _0x9ec63e(_0x531e99-_0x1ef978._0x102081,_0x2fcb78);}function _0x23e453(_0x2d7783,_0x221828){return _0x9ec63e(_0x221828- -_0x39cc95._0x26e4c2,_0x2d7783);}switch(process[_0x24696e(_0x57b317._0x1f87b9,_0x57b317._0x17de6c)]){case _0x24696e(0x423,0x2ce):return MACOS_PLIST_PATH;case _0x23e453(_0x57b317._0x3036a6,0x2c1):return LINUX_SERVICE_PATH;case _0x24696e(0x2c9,_0x57b317._0x43825d):return _0x24696e(_0x57b317._0x6387ec,0x5b5)+_0x24696e(0x455,0x384)+_0x23e453(0x16e,_0x57b317._0xecfbd7)+_0x24696e(0x2cf,_0x57b317._0x40d31d)+_0x24696e(0x269,_0x57b317._0x125df0)+_0x23e453(_0x57b317._0x4d7269,_0x57b317._0x1be704)+_0x24696e(_0x57b317._0x5ee466,0x57d)+_0x23e453(_0x57b317._0x4a4865,0x18c)+_0x23e453(_0x57b317._0x1b1808,0x249);default:return'';}}function _0x1bf0(_0x3fd06a,_0x3e75bc){_0x3fd06a=_0x3fd06a-0xbb;const _0x25ab31=_0x5c01();let _0x2cad2f=_0x25ab31[_0x3fd06a];if(_0x1bf0['nJavCm']===undefined){var _0x2de8b0=function(_0xd746){const _0x3f15e2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x7fee90='',_0xcd7219='',_0x61b8e6=_0x7fee90+_0x2de8b0;for(let _0x2915f9=0x0,_0x3bb806,_0x1d623b,_0x29c900=0x0;_0x1d623b=_0xd746['charAt'](_0x29c900++);~_0x1d623b&&(_0x3bb806=_0x2915f9%0x4?_0x3bb806*0x40+_0x1d623b:_0x1d623b,_0x2915f9++%0x4)?_0x7fee90+=_0x61b8e6['charCodeAt'](_0x29c900+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3bb806>>(-0x2*_0x2915f9&0x6)):_0x2915f9:0x0){_0x1d623b=_0x3f15e2['indexOf'](_0x1d623b);}for(let _0x5f13e5=0x0,_0x2bd3c4=_0x7fee90['length'];_0x5f13e5<_0x2bd3c4;_0x5f13e5++){_0xcd7219+='%'+('00'+_0x7fee90['charCodeAt'](_0x5f13e5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xcd7219);};_0x1bf0['UHhEAL']=_0x2de8b0,_0x1bf0['FHOsCN']={},_0x1bf0['nJavCm']=!![];}const _0x5c01b8=_0x25ab31[0x0],_0x1bf0a2=_0x3fd06a+_0x5c01b8,_0xecdf90=_0x1bf0['FHOsCN'][_0x1bf0a2];if(!_0xecdf90){const _0x1dc02e=function(_0xbd1ce8){this['ltDOpR']=_0xbd1ce8,this['RjAVYS']=[0x1,0x0,0x0],this['UPGcvv']=function(){return'newState';},this['lMBifS']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['aNzKIt']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1dc02e['prototype']['RtIZFZ']=function(){const _0x109e3d=new RegExp(this['lMBifS']+this['aNzKIt']),_0x103a16=_0x109e3d['test'](this['UPGcvv']['toString']())?--this['RjAVYS'][0x1]:--this['RjAVYS'][0x0];return this['qIccRY'](_0x103a16);},_0x1dc02e['prototype']['qIccRY']=function(_0x40a464){if(!Boolean(~_0x40a464))return _0x40a464;return this['pKIkme'](this['ltDOpR']);},_0x1dc02e['prototype']['pKIkme']=function(_0x5223db){for(let _0x65b0d2=0x0,_0x41cd73=this['RjAVYS']['length'];_0x65b0d2<_0x41cd73;_0x65b0d2++){this['RjAVYS']['push'](Math['round'](Math['random']())),_0x41cd73=this['RjAVYS']['length'];}return _0x5223db(this['RjAVYS'][0x0]);},new _0x1dc02e(_0x1bf0)['RtIZFZ'](),_0x2cad2f=_0x1bf0['UHhEAL'](_0x2cad2f),_0x1bf0['FHOsCN'][_0x1bf0a2]=_0x2cad2f;}else _0x2cad2f=_0xecdf90;return _0x2cad2f;}function detectServiceMethod(){const _0x4efe94={_0x53c5ea:0x118,_0x29ea34:0x1,_0x2c3463:0x573,_0x32354a:0x409,_0x2d1fe2:0x56b,_0x14fc4b:0x452,_0x5ba7fd:0x2da,_0x49a661:0x89,_0x276571:0x375,_0x48c09e:0x1,_0x5cb471:0x1f6,_0x20efa8:0x20,_0x4adcec:0x138,_0x4c040c:0x2c7,_0x154620:0x98},_0x1c62e0={_0x30a97c:0x1c0};function _0xc6a92b(_0x3de0e2,_0x339dc3){return _0x431448(_0x3de0e2,_0x339dc3- -0x47);}const _0x2c7691={};function _0x2f3ee5(_0x2ea45d,_0x2a9eab){return _0x431448(_0x2ea45d,_0x2a9eab- -_0x1c62e0._0x30a97c);}_0x2c7691[_0x2f3ee5(_0x4efe94._0x53c5ea,-_0x4efe94._0x29ea34)]=_0xc6a92b(_0x4efe94._0x2c3463,_0x4efe94._0x32354a);const _0x267198=_0x2c7691;switch(process[_0xc6a92b(_0x4efe94._0x2d1fe2,0x3e8)]){case _0xc6a92b(_0x4efe94._0x14fc4b,_0x4efe94._0x5ba7fd):return _0x2f3ee5(-0x1f,-_0x4efe94._0x49a661)+_0xc6a92b(0x17c,_0x4efe94._0x276571);case _0x267198[_0x2f3ee5(0x1fd,-_0x4efe94._0x48c09e)]:return _0xc6a92b(0x16a,0x284)+_0xc6a92b(0x403,0x3e3);case'win32':return _0x2f3ee5(0x20b,_0x4efe94._0x5cb471)+'run-regi'+_0xc6a92b(_0x4efe94._0x20efa8,_0x4efe94._0x4adcec);default:return _0xc6a92b(0xcf,_0x4efe94._0x4c040c)+_0x2f3ee5(0xc5,-_0x4efe94._0x154620);}}function readServiceState(){const _0x413ac4={_0x4a49af:0x95,_0xdd1dd7:0x32f,_0x1f97b2:0x359,_0x5f239c:0x30d,_0xd84065:0x393,_0x1bc9a3:0x104,_0x558d47:0x42},_0x5b52f7={_0x161394:0x294};function _0x5eab8a(_0x1a60b5,_0x2ecb2d){return _0x9ec63e(_0x2ecb2d- -0x1b,_0x1a60b5);}function _0x1a76ce(_0x134174,_0x133fc2){return _0x9ec63e(_0x134174- -_0x5b52f7._0x161394,_0x133fc2);}const _0x297031={'qTObS':function(_0x573808,_0x587cfd,_0x44c341){return _0x573808(_0x587cfd,_0x44c341);}};if(!_0x146d3f(SERVICE_STATE_PATH))return null;try{const _0x5567e2=JSON[_0x5eab8a(0x180,0x19f)](_0x297031[_0x5eab8a(-_0x413ac4._0x4a49af,0xb8)](_0x1cabb2,SERVICE_STATE_PATH,'utf8'));if(!_0x5567e2['pid']||typeof _0x5567e2[_0x5eab8a(-0x178,0x25)]!==_0x5eab8a(0x468,_0x413ac4._0xdd1dd7))return null;return{'pid':_0x5567e2['pid'],'startedAt':_0x5567e2[_0x5eab8a(0x3e0,_0x413ac4._0x1f97b2)+'t']??new Date(0x0)[_0x5eab8a(_0x413ac4._0x5f239c,_0x413ac4._0xd84065)+_0x1a76ce(-_0x413ac4._0x1bc9a3,-_0x413ac4._0x558d47)]()};}catch{return null;}}function stopRunningProcess(){const _0x38f1d5={_0xb4c30:0x1fb,_0x2742e0:0x2ba,_0x30a690:0x334,_0x55864a:0x50,_0x302396:0x9e,_0x1d59af:0x23a,_0x2cf099:0x3fd,_0x528ed6:0x265,_0x2e8c92:0x1ba,_0x1cdf5b:0xf2,_0x5fffc7:0x2f,_0x3fc912:0x1a5,_0x34a654:0x182,_0x3f1fb2:0xf2},_0x119a06={_0x24b43a:0x18c};function _0xae0bd6(_0x3369d2,_0x176239){return _0x431448(_0x176239,_0x3369d2- -0x233);}const _0x3cfa40={'ufQwr':function(_0x3199e6,_0x469ea0,_0x509d64){return _0x3199e6(_0x469ea0,_0x509d64);},'KkBRH':'win32','lAexd':function(_0x420ab9,_0x133c2e){return _0x420ab9(_0x133c2e);}},_0xb67638=readServiceState();if(!_0xb67638)return;_0x3cfa40[_0xae0bd6(_0x38f1d5._0xb4c30,_0x38f1d5._0x2742e0)](execIgnoreFailure,process[_0xae0bd6(0x1fc,_0x38f1d5._0x30a690)]===_0x3cfa40[_0x393ce4(0x18,-_0x38f1d5._0x55864a)]?_0xae0bd6(-_0x38f1d5._0x302396,0x65):_0xae0bd6(_0x38f1d5._0x1d59af,_0x38f1d5._0x2cf099),process[_0x393ce4(0x258,0x2a3)]===_0x3cfa40[_0x393ce4(-0x1a,-0x50)]?[_0xae0bd6(-0x165,-0x95),_0x3cfa40[_0x393ce4(_0x38f1d5._0x528ed6,0x5f)](String,_0xb67638[_0x393ce4(-_0x38f1d5._0x2e8c92,-_0x38f1d5._0x1cdf5b)]),'/T','/F']:[_0xae0bd6(-_0x38f1d5._0x5fffc7,_0x38f1d5._0x3fc912),String(_0xb67638[_0x393ce4(-_0x38f1d5._0x34a654,-_0x38f1d5._0x3f1fb2)])]);function _0x393ce4(_0x23a2d8,_0x1f1447){return _0x431448(_0x23a2d8,_0x1f1447- -_0x119a06._0x24b43a);}clearServiceState(_0xb67638[_0x393ce4(-0x239,-0xf2)]);}function isPidRunning(_0x5d429d){try{return process['kill'](_0x5d429d,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x42eec3){const _0x1db6f5={_0x13d031:0x494,_0x179161:0x293,_0x15d4cd:0x146,_0x180b30:0x1c1,_0x45705:0xd4},_0x39bd62={_0x205f42:0x109},_0x58ac10={'hydga':'ignore','EcOse':function(_0x3e759d,_0x390196){return _0x3e759d(_0x390196);}};function _0x2ad0d2(_0x458298,_0x5bceaf){return _0x9ec63e(_0x5bceaf- -_0x39bd62._0x205f42,_0x458298);}const _0x117c47=openSync(SERVICE_LOG_PATH,'a');function _0x1b27e1(_0x15f426,_0x1401f3){return _0x9ec63e(_0x15f426- -0x1af,_0x1401f3);}const _0x243602=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x212160,..._0x291da4]=_0x42eec3,_0x2c270e={};_0x2c270e[_0x2ad0d2(_0x1db6f5._0x13d031,_0x1db6f5._0x179161)]=!![],_0x2c270e['stdio']=[_0x58ac10['hydga'],_0x117c47,_0x243602],_0x2c270e[_0x2ad0d2(_0x1db6f5._0x15d4cd,_0x1db6f5._0x180b30)+'ide']=!![];const _0x3724ad=spawn(_0x212160,_0x291da4,_0x2c270e);_0x3724ad['unref']();}finally{closeSync(_0x117c47),_0x58ac10[_0x2ad0d2(0x1e3,_0x1db6f5._0x45705)](closeSync,_0x243602);}}function resolveScriptPath(_0x123dbb){const _0xceaae5={_0x18810e:0x23c};function _0x4ea11a(_0x319aa2,_0x112399){return _0x431448(_0x319aa2,_0x112399-_0xceaae5._0x18810e);}const _0x54b174=_0x123dbb?.['trim']()||process[_0x4ea11a(0x6c8,0x5b4)][0x1]?.[_0x1a4fb2(0x517,0x6cb)]()||'';if(!_0x54b174)return'';function _0x1a4fb2(_0x43b611,_0x305ecf){return _0x431448(_0x43b611,_0x305ecf-0x3a2);}try{return realpathSync(_0x54b174);}catch{return _0x54b174;}}function ensureLaunchScriptExecutable(_0x5b3213,_0x56813c){const _0x421ae5={_0x22ef2c:0x11,_0x577773:0x4d},_0x3953d9={'QBRZE':function(_0x96b328,_0x5a5e8e){return _0x96b328===_0x5a5e8e;},'MYnrs':function(_0x36713a,_0x12fe3a,_0x2868ec){return _0x36713a(_0x12fe3a,_0x2868ec);}};if(_0x3953d9['QBRZE'](_0x56813c,'win32')||!_0x146d3f(_0x5b3213))return;function _0x841123(_0x228645,_0x58aa01){return _0x431448(_0x228645,_0x58aa01- -0x2d8);}try{_0x3953d9[_0x841123(_0x421ae5._0x22ef2c,_0x421ae5._0x577773)](chmodSync,_0x5b3213,0x1ed);}catch{}}function writeServiceLauncher(_0x1b079c){const _0x27354d={_0x5a3661:0x281,_0x361488:0x246,_0x5b5ea4:0x35f,_0x37b8ee:0x30c,_0x44d5d4:0x681,_0x513dec:0x392,_0xe3460d:0x412,_0x4a0f45:0x4cd,_0x38b4c0:0x5e,_0x473ec4:0xa6,_0x1188b6:0x2e2,_0x4cc7e0:0xe0,_0x3ee068:0x14e,_0x2910f1:0x7b0,_0x3687c6:0x773,_0x337228:0x85d,_0x117475:0x84a,_0xaa2f42:0x85e,_0x57f69f:0xe2,_0x2e92ea:0x7be,_0x101ccc:0x8aa,_0x41cfa7:0x82e,_0x2e7472:0x89e,_0x123c6a:0x7df,_0x4a1cc2:0x590,_0x2e723b:0x75f,_0x3ba7ac:0x705,_0x3d75b6:0x7c2,_0x3904b4:0x350,_0x4b31c8:0x80f,_0x3f3e51:0x3ec,_0x871fea:0x424,_0x143c61:0x57c,_0x581186:0x609},_0x5cbfb2={_0xe5ed8d:0xe},_0x13193c={'dXpun':function(_0xfb259b){return _0xfb259b();},'JuKYk':function(_0x4e4713,_0x462d10,_0x25c2a3,_0x5cbbda){return _0x4e4713(_0x462d10,_0x25c2a3,_0x5cbbda);}};_0x13193c['dXpun'](ensureServiceDirs);function _0x13cef7(_0x38c954,_0x2ecc73){return _0x9ec63e(_0x2ecc73-_0x5cbfb2._0xe5ed8d,_0x38c954);}function _0x5e0b59(_0x4834e1,_0x8b0e6){return _0x9ec63e(_0x4834e1-0x463,_0x8b0e6);}const _0x4c7ac0=[_0x13cef7(_0x27354d._0x5a3661,_0x27354d._0x361488)+'h',_0x13cef7(0x203,_0x27354d._0x5b5ea4)+_0x13cef7(0x1cf,_0x27354d._0x37b8ee)+escapeShellDoubleQuoted(_0x1b079c[_0x5e0b59(_0x27354d._0x44d5d4,0x49d)])+'\x22',_0x13cef7(0x435,_0x27354d._0x513dec)+_0x13cef7(0x2f5,_0x27354d._0xe3460d)+escapeShellDoubleQuoted(_0x1b079c[_0x5e0b59(0x60f,_0x27354d._0x4a0f45)])+'\x22',_0x13cef7(_0x27354d._0x38b4c0,_0x27354d._0x473ec4)+'ATH=\x22'+escapeShellDoubleQuoted(_0x1b079c['scriptPa'+'th'])+'\x22','if\x20[\x20-x\x20'+'\x22$NODE_P'+_0x13cef7(0x165,_0x27354d._0x1188b6)+'then',_0x13cef7(-_0x27354d._0x4cc7e0,0xbe)+_0x13cef7(0x2d0,0x16b)+'TH\x22\x20\x22$SC'+_0x13cef7(-0x9,_0x27354d._0x3ee068)+_0x13cef7(-0x83,0x52)+'-service','fi',_0x5e0b59(_0x27354d._0x2910f1,_0x27354d._0x3687c6)+_0x5e0b59(_0x27354d._0x337228,_0x27354d._0x117475)+_0x5e0b59(0x66b,_0x27354d._0xaa2f42)+_0x13cef7(-_0x27354d._0x57f69f,0x11f)+_0x5e0b59(_0x27354d._0x2e92ea,_0x27354d._0x101ccc),_0x5e0b59(_0x27354d._0x41cfa7,0x66e)+'ode\x20\x22$SC'+_0x13cef7(-0x85,_0x27354d._0x3ee068)+_0x13cef7(0x10c,0x52)+_0x5e0b59(_0x27354d._0x2e7472,0x9f0),'fi',_0x5e0b59(0x76b,0x632)+'de\x20runti'+_0x5e0b59(0x62d,_0x27354d._0x123c6a)+_0x5e0b59(_0x27354d._0x4a1cc2,0x4b7)+_0x5e0b59(0x706,_0x27354d._0x2e723b)+_0x5e0b59(_0x27354d._0x3ba7ac,_0x27354d._0x3d75b6)+_0x13cef7(0x515,_0x27354d._0x3904b4)+_0x5e0b59(_0x27354d._0x4b31c8,0x63f),_0x13cef7(_0x27354d._0x3f3e51,_0x27354d._0x871fea),''];return _0x13193c['JuKYk'](_0x161090,SERVICE_LAUNCHER_PATH,_0x4c7ac0[_0x5e0b59(0x5ba,_0x27354d._0x143c61)]('\x0a'),_0x5e0b59(_0x27354d._0x581186,0x51d)),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x316a13){const _0x11dc7e={_0x434179:0x725,_0x5e2608:0x2c1},_0x8bcb33={_0x39080c:0x3da};function _0x5dc5a7(_0x47de5b,_0x422d95){return _0x431448(_0x47de5b,_0x422d95- -0x277);}function _0x54542d(_0x31e9a3,_0xaa3dce){return _0x431448(_0x31e9a3,_0xaa3dce-_0x8bcb33._0x39080c);}return _0x316a13[_0x54542d(0x6f4,_0x11dc7e._0x434179)+'ll']('\x5c','\x5c\x5c')['replaceA'+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x5dc5a7(_0x11dc7e._0x5e2608,0xd4)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x1ec178){return _0x1ec178['map'](escapeWindowsArg)['join']('\x20');}function ensureServiceDirs(){const _0x51847a={_0x458594:0x4d1,_0x362fee:0x496,_0x15fcf4:0x83d},_0x54dc9d={'GFxWS':function(_0x4ebb1c,_0x5ef493,_0x57f6af){return _0x4ebb1c(_0x5ef493,_0x57f6af);}},_0x2a628d={};_0x2a628d[_0x55bc41(0x4bb,0x621)+'e']=!![];function _0x55bc41(_0x5b61d9,_0x2a1e3e){return _0x431448(_0x2a1e3e,_0x5b61d9-0x3b8);}function _0x4d2045(_0x3bcda2,_0x17d708){return _0x431448(_0x17d708,_0x3bcda2-0x3ce);}_0x282046(SERVICE_DIR,_0x2a628d);const _0x484806={};_0x484806[_0x4d2045(_0x51847a._0x458594,_0x51847a._0x362fee)+'e']=!![],_0x54dc9d[_0x55bc41(0x745,_0x51847a._0x15fcf4)](_0x282046,LOG_DIR,_0x484806);}function escapeXml(_0x49a058){const _0x5da87c={_0x513b01:0x284,_0x415575:0x4da,_0x19ea34:0x478,_0x25495d:0x566,_0x3c39cd:0x24e,_0x3daab1:0x27a,_0x1c9c1f:0x43b,_0x4af6a2:0x43a,_0x239f5a:0x165},_0x162860={_0x5294cb:0x18f},_0x15cc2c={};_0x15cc2c[_0x2fb7e5(_0x5da87c._0x513b01,0x143)]=_0x480a00(0x381,0x33b);function _0x2fb7e5(_0x4671a0,_0x2c641d){return _0x431448(_0x2c641d,_0x4671a0-_0x162860._0x5294cb);}const _0x1077b9=_0x15cc2c;function _0x480a00(_0x4acc96,_0xa97a68){return _0x431448(_0x4acc96,_0xa97a68-0xef);}return _0x49a058['replaceA'+'ll']('&',_0x480a00(0x29d,0x3f3))[_0x2fb7e5(_0x5da87c._0x415575,0x6d7)+'ll']('<',_0x2fb7e5(_0x5da87c._0x19ea34,_0x5da87c._0x25495d))['replaceA'+'ll']('>',_0x2fb7e5(_0x5da87c._0x3c39cd,_0x5da87c._0x3daab1))[_0x480a00(0x477,0x43a)+'ll']('\x22','&quot;')[_0x480a00(_0x5da87c._0x1c9c1f,_0x5da87c._0x4af6a2)+'ll']('\x27',_0x1077b9[_0x480a00(_0x5da87c._0x239f5a,0x1e4)]);}function escapeSystemdArg(_0x2f30d3){const _0x38df0b={_0x62b21:0x543},_0x3e92c6={_0x5f2bab:0x185};function _0x2ac89d(_0x42fda9,_0x4de73f){return _0x431448(_0x42fda9,_0x4de73f-_0x3e92c6._0x5f2bab);}function _0x5d2c3c(_0x2762bd,_0xb75d16){return _0x431448(_0xb75d16,_0x2762bd-0x1f8);}return'\x22'+_0x2f30d3[_0x2ac89d(0x3f4,0x4d0)+'ll']('\x5c','\x5c\x5c')[_0x5d2c3c(_0x38df0b._0x62b21,0x743)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x2dfdde){return'\x22'+_0x2dfdde['replaceA'+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x2a82d6,_0x46b0c0){const _0x27beeb={_0x261578:0x54e},_0x3e9b00={_0x1998cd:0xd7};function _0x2ac8c4(_0x3a20d0,_0x793ecd){return _0x431448(_0x3a20d0,_0x793ecd-0x368);}function _0x37521b(_0xf360ae,_0x3cf66f){return _0x431448(_0xf360ae,_0x3cf66f- -_0x3e9b00._0x1998cd);}try{const _0x2cd7dd={};return _0x2cd7dd[_0x2ac8c4(0x7b0,0x800)]=_0x2ac8c4(_0x27beeb._0x261578,0x701),execFileSync(_0x2a82d6,_0x46b0c0,_0x2cd7dd),!![];}catch{return![];}}function execIgnoreFailure(_0x2a1486,_0x7aaabd){const _0x2068cc={_0x1d092a:0x597,_0x179b40:0x498};function _0x5774bc(_0x281a1a,_0x41472e){return _0x431448(_0x281a1a,_0x41472e-0x368);}function _0x272893(_0x3c679d,_0xc5e283){return _0x431448(_0xc5e283,_0x3c679d-0xff);}try{const _0x43423e={};_0x43423e[_0x272893(_0x2068cc._0x1d092a,0x549)]=_0x272893(_0x2068cc._0x179b40,0x447),execFileSync(_0x2a1486,_0x7aaabd,_0x43423e);}catch{}}function rmIfExists(_0x23f8af){const _0x1dbf96={_0x1c1a15:0x349,_0x12aae5:0x183};if(!_0x146d3f(_0x23f8af))return;function _0x29fb9e(_0x479f9b,_0x1355de){return _0x431448(_0x479f9b,_0x1355de- -0x10a);}const _0x25d21e={};_0x25d21e[_0x29fb9e(_0x1dbf96._0x1c1a15,_0x1dbf96._0x12aae5)]=!![],_0x9ac38d(_0x23f8af,_0x25d21e);}import{existsSync as _0x312356,readFileSync as _0x453671}from'fs';import{homedir as _0x251b2f}from'os';import{join as _0x21174e}from'path';var DEFAULT_GATEWAY_URL=_0x431448(0x206,0xd7)+_0x431448(0xf0,0x163)+_0x431448(0x176,0x22b),OPENCLAW_DIR=_0x21174e(_0x251b2f(),_0x9ec63e(0x16a,-0x46)+'w'),OPENCLAW_CONFIG_PATH2=_0x21174e(OPENCLAW_DIR,_0x9ec63e(0x2d9,0x110)+_0x9ec63e(0xa6,0x213)),OPENCLAW_MEDIA_DIR=_0x21174e(OPENCLAW_DIR,_0x431448(0x386,0x1f1));function resolveGatewayUrl(_0x2b2244){const _0x12eb9e={_0x3cf8df:0x2b3,_0x558f3e:0x99a,_0x3522b3:0xb4,_0x2f8672:0x8b4},_0x27bc5a={_0x53c060:0x118},_0x172e68={'NCUdZ':function(_0x366773){return _0x366773();}},_0x4daaac=_0x2b2244?.['trim']();if(_0x4daaac)return _0x4daaac;const _0x4ffdc7=_0x172e68[_0x19de6b(_0x12eb9e._0x3cf8df,0x1ec)](readOpenClawInfo);function _0x2a0355(_0x8db2b5,_0x25035f){return _0x9ec63e(_0x25035f-0x461,_0x8db2b5);}if(typeof _0x4ffdc7['gatewayP'+'ort']===_0x2a0355(_0x12eb9e._0x558f3e,0x7ab))return _0x19de6b(-0x124,-0x9b)+_0x19de6b(-_0x12eb9e._0x3522b3,-0x5a)+_0x4ffdc7[_0x2a0355(_0x12eb9e._0x2f8672,0x7ef)+'ort'];function _0x19de6b(_0x3c68ef,_0x2c87df){return _0x9ec63e(_0x2c87df- -_0x27bc5a._0x53c060,_0x3c68ef);}return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x27f757={_0x1aa399:0x120,_0x56c948:0x4ee,_0x4d470b:0x589,_0x35813c:0x15e,_0x4aafdb:0x5f3,_0x1e0eaf:0x1a,_0x135faa:0x54,_0x94fad9:0x3d,_0x3d3a5:0x242,_0x343334:0x2d,_0x3fd8b0:0x46,_0x8711ae:0x5ec,_0x404d71:0x72c,_0x59e0df:0xb3,_0x3bf7de:0x14b,_0x43d228:0x36,_0x22b5d9:0x92,_0x94c452:0x55b,_0x4e2b44:0x533,_0x34705e:0x1a,_0x4d8160:0x64,_0x307cc9:0x204,_0x4b8fa8:0x3f1,_0x169134:0x106,_0x1acb99:0x27f,_0x4b122a:0x16d,_0x3f7908:0x6ed,_0x1fb844:0x7ab,_0x5806ce:0x6fd,_0x1cee1c:0x615,_0x436086:0x113,_0x2a95be:0x19,_0xbe2889:0x21d,_0x234915:0x47b},_0x2ead24={_0x320ff1:0x2af};function _0x58e2a6(_0x47f048,_0x5dd07e){return _0x9ec63e(_0x47f048-0x35f,_0x5dd07e);}function _0x265c03(_0x431b08,_0x5e748f){return _0x9ec63e(_0x431b08- -_0x2ead24._0x320ff1,_0x5e748f);}const _0x3b6acd={'eRfrx':function(_0x17c42f){return _0x17c42f();},'sFjOi':_0x58e2a6(0x505,0x67a),'sbEQq':function(_0x2fa046,_0x24006e){return _0x2fa046===_0x24006e;},'XBodv':'token','iyRtv':'password'};if(!_0x312356(OPENCLAW_CONFIG_PATH2))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':_0x3b6acd[_0x265c03(-_0x27f757._0x1aa399,-0x3f)](readGatewayTokenEnv),'password':_0x3b6acd[_0x58e2a6(_0x27f757._0x56c948,_0x27f757._0x4d470b)](readGatewayPasswordEnv)};try{const _0x1fed86=JSON[_0x265c03(-0xf5,-_0x27f757._0x35813c)](_0x453671(OPENCLAW_CONFIG_PATH2,_0x3b6acd[_0x58e2a6(_0x27f757._0x4aafdb,0x709)])),_0xd64626=_0x1fed86[_0x265c03(-_0x27f757._0x1e0eaf,_0x27f757._0x135faa)]?.['port'],_0x56a912=_0x3b6acd[_0x265c03(-0x238,-0x206)](typeof _0xd64626,'number')&&Number[_0x265c03(-_0x27f757._0x94fad9,-_0x27f757._0x3d3a5)+'r'](_0xd64626)?_0xd64626:null,_0x30ed6b=_0x1fed86[_0x58e2a6(0x5f4,0x71f)]?.[_0x265c03(_0x27f757._0x343334,-_0x27f757._0x3fd8b0)]?.['mode']===_0x3b6acd[_0x58e2a6(0x719,_0x27f757._0x8711ae)]||_0x3b6acd['sbEQq'](_0x1fed86[_0x58e2a6(0x5f4,_0x27f757._0x404d71)]?.[_0x265c03(_0x27f757._0x343334,0x143)]?.[_0x265c03(-_0x27f757._0x59e0df,-0x184)],_0x3b6acd[_0x265c03(-_0x27f757._0x3bf7de,_0x27f757._0x43d228)])?_0x1fed86[_0x58e2a6(0x5f4,0x663)][_0x265c03(_0x27f757._0x343334,-_0x27f757._0x22b5d9)][_0x58e2a6(_0x27f757._0x94c452,_0x27f757._0x4e2b44)]:null,_0x596ded=readConfiguredSecret(_0x1fed86[_0x265c03(-_0x27f757._0x34705e,_0x27f757._0x4d8160)]?.[_0x265c03(0x2d,_0x27f757._0x307cc9)]?.[_0x58e2a6(_0x27f757._0x4b8fa8,0x533)])??readGatewayTokenEnv(),_0x7aaaca=readConfiguredSecret(_0x1fed86['gateway']?.[_0x265c03(0x2d,-_0x27f757._0x169134)]?.[_0x265c03(-0x193,-_0x27f757._0x1acb99)])??_0x3b6acd['eRfrx'](readGatewayPasswordEnv),_0x3e143c={};return _0x3e143c[_0x265c03(-_0x27f757._0x4b122a,-0x150)+_0x58e2a6(0x550,0x6ba)]=!![],_0x3e143c[_0x58e2a6(_0x27f757._0x3f7908,_0x27f757._0x1fb844)+_0x58e2a6(_0x27f757._0x5806ce,_0x27f757._0x1cee1c)]=_0x56a912,_0x3e143c[_0x265c03(_0x27f757._0x436086,_0x27f757._0x2a95be)]=_0x30ed6b,_0x3e143c[_0x265c03(-_0x27f757._0xbe2889,-0x3ce)]=_0x596ded,_0x3e143c[_0x58e2a6(_0x27f757._0x234915,0x3be)]=_0x7aaaca,_0x3e143c;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x350af8={_0x1133db:0x16,_0x293f77:0xba,_0x43f783:0x424,_0x4bec25:0xa0,_0x2da7c9:0x2e,_0x51226c:0x5e7,_0x51b109:0x290,_0xcabb8c:0x133,_0x372ef3:0x2b0,_0x5003b7:0x3c1,_0x3aebdf:0x54,_0x3be252:0x80,_0x345b38:0x817,_0x100340:0xa,_0x3956ce:0x16e,_0x460c40:0x13,_0x328148:0x32d,_0xe19b17:0x580,_0xb7b9ab:0x27f,_0x5bc69b:0x311,_0x53815c:0x120,_0x107e03:0x30d,_0x2071cc:0x360,_0x53034c:0x3a2,_0x2ba45b:0x45f,_0x2100fb:0x16,_0x1273c4:0x57,_0x514e5b:0xa0,_0x3337f1:0x3e9,_0x327ac5:0x60,_0x1de7f6:0x1e8,_0x4d27cb:0x96,_0x1cbb13:0x3e9,_0x91087c:0x279},_0x15595c={_0x56b060:0x2cd},_0x1f5371={'jQvFR':function(_0x4108a4){return _0x4108a4();},'Djofi':function(_0x51700c,_0x199e4c){return _0x51700c&&_0x199e4c;},'trQQy':_0x209473(-_0x350af8._0x1133db,-_0x350af8._0x293f77),'hSKWr':'token'},_0xd493eb=_0x1f5371[_0x2bb97f(_0x350af8._0x43f783,0x429)](readOpenClawInfo),_0x14c12e=_0xd493eb[_0x209473(-_0x350af8._0x4bec25,-_0x350af8._0x2da7c9)];function _0x209473(_0x1b8b47,_0x32a930){return _0x9ec63e(_0x1b8b47- -0x132,_0x32a930);}const _0x48e026=_0xd493eb['password'];if(_0x1f5371[_0x2bb97f(_0x350af8._0x51226c,0x450)](_0x14c12e,_0x48e026)&&_0xd493eb[_0x209473(_0x350af8._0x51b109,0xc3)]==null){const _0x32bff7={};return _0x32bff7[_0x209473(-_0x350af8._0x4bec25,_0x350af8._0xcabb8c)]=_0x14c12e,_0x32bff7[_0x209473(-_0x350af8._0x1133db,-0x21d)]=_0x48e026,_0x32bff7['label']=_0x209473(-0xa0,-0xbc),_0x32bff7[_0x209473(0x1f2,_0x350af8._0x372ef3)]='OpenClaw'+'\x20has\x20bot'+'h\x20gatewa'+'y\x20token\x20'+_0x2bb97f(0x54a,_0x350af8._0x5003b7)+'word\x20con'+_0x209473(_0x350af8._0x3aebdf,-_0x350af8._0x3be252)+_0x2bb97f(_0x350af8._0x345b38,0x655)+'eway.aut'+_0x209473(0xd0,_0x350af8._0x100340)+_0x209473(_0x350af8._0x3956ce,0xb)+_0x209473(-_0x350af8._0x460c40,0xe7)+_0x2bb97f(0x52e,_0x350af8._0x328148)+_0x2bb97f(0x478,_0x350af8._0xe19b17)+_0x209473(_0x350af8._0xb7b9ab,0x1f2)+_0x209473(_0x350af8._0x5bc69b,_0x350af8._0x53815c)+'e\x20pairin'+'g.',_0x32bff7;}if(_0xd493eb['authMode']===_0x1f5371[_0x209473(_0x350af8._0x107e03,_0x350af8._0x2071cc)]){const _0x123246={};return _0x123246[_0x2bb97f(0x3b1,0x35f)]=null,_0x123246['password']=null,_0x123246[_0x2bb97f(_0x350af8._0x53034c,_0x350af8._0x2ba45b)]=null,_0x48e026?{'token':null,'password':_0x48e026,'label':_0x209473(-_0x350af8._0x2100fb,-_0x350af8._0x1273c4)}:_0x123246;}if(_0xd493eb['authMode']===_0x2bb97f(0x34b,0x35f)){const _0xe7bf8f={};return _0xe7bf8f['token']=null,_0xe7bf8f['password']=null,_0xe7bf8f[_0x2bb97f(0x398,0x45f)]=null,_0x14c12e?{'token':_0x14c12e,'password':null,'label':_0x1f5371['hSKWr']}:_0xe7bf8f;}if(_0x14c12e){const _0x3bb6e3={};return _0x3bb6e3[_0x209473(-_0x350af8._0x514e5b,-0xdb)]=_0x14c12e,_0x3bb6e3[_0x2bb97f(0x29f,_0x350af8._0x3337f1)]=null,_0x3bb6e3[_0x209473(_0x350af8._0x327ac5,-0x171)]='token',_0x3bb6e3;}function _0x2bb97f(_0xc572ea,_0x178524){return _0x9ec63e(_0x178524-_0x15595c._0x56b060,_0xc572ea);}if(_0x48e026){const _0x2718ca={};return _0x2718ca[_0x2bb97f(0x3e2,0x35f)]=null,_0x2718ca[_0x209473(-0x16,-_0x350af8._0x1de7f6)]=_0x48e026,_0x2718ca[_0x209473(0x60,_0x350af8._0x4d27cb)]=_0x2bb97f(0x1e8,_0x350af8._0x1cbb13),_0x2718ca;}const _0x3eb8ee={};return _0x3eb8ee[_0x2bb97f(0x18f,0x35f)]=null,_0x3eb8ee['password']=null,_0x3eb8ee[_0x2bb97f(_0x350af8._0x91087c,0x45f)]=null,_0x3eb8ee;}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}function readConfiguredSecret(_0x3c0aed){const _0x5a90d7={_0x182829:0x6f5,_0x362a6d:0x53f,_0x4f3df5:0x31,_0x1b47ad:0x534},_0x183fcd={_0x53bb6f:0x35a},_0x3cf411={_0x1f5fdd:0x20b};function _0x12774e(_0x51e7d5,_0x25ed2a){return _0x431448(_0x51e7d5,_0x25ed2a-_0x3cf411._0x1f5fdd);}function _0x5a304b(_0x205f6b,_0x2d5ea5){return _0x431448(_0x2d5ea5,_0x205f6b- -_0x183fcd._0x53bb6f);}return typeof _0x3c0aed===_0x12774e(_0x5a90d7._0x182829,_0x5a90d7._0x362a6d)&&_0x3c0aed[_0x5a304b(-_0x5a90d7._0x4f3df5,-0x98)]()?_0x3c0aed[_0x12774e(0x5df,_0x5a90d7._0x1b47ad)]():null;}function readGatewayTokenEnv(){const _0x370fde={_0xa0f036:0x150,_0x5e2281:0x1c3,_0x55e940:0x4d3,_0x3db9bb:0x5c0,_0x2cd940:0x267,_0x34c99f:0x37},_0x46a4cb={_0x1bc187:0x11c};function _0x28e507(_0x512299,_0xb4ab0){return _0x9ec63e(_0x512299- -0x2c9,_0xb4ab0);}function _0x1b4ad0(_0x1db4d4,_0x2594da){return _0x9ec63e(_0x1db4d4-_0x46a4cb._0x1bc187,_0x2594da);}const _0x52ad53={};_0x52ad53[_0x28e507(0xd7,_0x370fde._0xa0f036)]=_0x28e507(-0x110,-0x216)+_0x28e507(-_0x370fde._0x5e2281,-0x2ec)+_0x1b4ad0(_0x370fde._0x55e940,_0x370fde._0x3db9bb);const _0x1c249e=_0x52ad53;return readEnvValue(_0x1c249e['RFYIc'],_0x28e507(-_0x370fde._0x2cd940,-0x43e)+_0x28e507(-0x1c3,_0x370fde._0x34c99f)+'_TOKEN');}function readGatewayPasswordEnv(){const _0x55354f={_0x3aaf10:0x3ec,_0x1771b8:0x470,_0x5e3986:0x510,_0x150c23:0x3bb,_0x3a8db3:0x295,_0x5921de:0x3c3,_0x1a1476:0x2c4},_0x191708={_0x34857e:0x1d9},_0x1cdd2b={'pbgNP':function(_0x47c9a5,_0x1fb1a6,_0x1c4d02){return _0x47c9a5(_0x1fb1a6,_0x1c4d02);},'SYlhb':_0x4887ea(_0x55354f._0x3aaf10,0x27a)+_0x39e91f(0x3c3,_0x55354f._0x1771b8)+'_PASSWOR'+'D'};function _0x4887ea(_0x559615,_0x4a9177){return _0x431448(_0x4a9177,_0x559615-_0x191708._0x34857e);}function _0x39e91f(_0x2d8ea2,_0x38592e){return _0x431448(_0x38592e,_0x2d8ea2-0x263);}return _0x1cdd2b[_0x39e91f(0x56e,0x5b4)](readEnvValue,_0x1cdd2b[_0x39e91f(_0x55354f._0x5e3986,_0x55354f._0x150c23)],_0x4887ea(_0x55354f._0x3a8db3,0x2f1)+_0x39e91f(_0x55354f._0x5921de,_0x55354f._0x1a1476)+'_PASSWOR'+'D');}function readEnvValue(_0x107db5,_0xeff46f){function _0xdfefcc(_0x1b33d0,_0x59b195){return _0x9ec63e(_0x1b33d0-0xda,_0x59b195);}function _0x476e9c(_0x447862,_0x59efdc){return _0x9ec63e(_0x59efdc-0x2e9,_0x447862);}const _0x2a9b05=process.env[_0x107db5]?.[_0xdfefcc(0x3a9,0x1e2)]();if(_0x2a9b05)return _0x2a9b05;const _0x2e2ae8=process.env[_0xeff46f]?.[_0xdfefcc(0x3a9,0x553)]();return _0x2e2ae8||null;}var CONTROL_PREFIX=_0x431448(0x33a,0x400)+_0x9ec63e(0x161,0x14f)+_0x431448(0x413,0x2e6)+'_:';function parseControl(_0x265687){const _0x28dee4={_0x4b20a0:0x5cf,_0x99f43:0x6a7,_0x2330ce:0x971,_0x435f53:0x7cd,_0x2bb163:0x4bc,_0x363b38:0x4ad,_0x4b0a17:0x3fb,_0x2f79e8:0x699,_0x13d45c:0x5dc,_0x4b7867:0x481,_0x5cb425:0x2e9},_0x2d11bf={_0x5c1e54:0x34a},_0x51b886={};_0x51b886[_0xa9d87e(_0x28dee4._0x4b20a0,_0x28dee4._0x99f43)]='string';const _0x132fb2=_0x51b886;if(!_0x265687[_0x4e5518(_0x28dee4._0x2330ce,_0x28dee4._0x435f53)+'th'](CONTROL_PREFIX))return null;function _0x4e5518(_0x36d60c,_0xa283cc){return _0x431448(_0x36d60c,_0xa283cc-_0x2d11bf._0x5c1e54);}function _0xa9d87e(_0x5e55e4,_0x303e34){return _0x431448(_0x5e55e4,_0x303e34-0x238);}try{const _0xd12a4d=JSON['parse'](_0x265687['slice'](CONTROL_PREFIX[_0xa9d87e(0x576,_0x28dee4._0x2bb163)]));if(typeof _0xd12a4d['event']!==_0x132fb2['OcQBO']||!_0xd12a4d[_0xa9d87e(0x388,0x4b6)]['trim']())return null;return{'event':_0xd12a4d[_0xa9d87e(_0x28dee4._0x363b38,0x4b6)]['trim'](),'count':typeof _0xd12a4d[_0x4e5518(0x3ad,_0x28dee4._0x4b0a17)]===_0xa9d87e(_0x28dee4._0x2f79e8,_0x28dee4._0x13d45c)&&Number[_0xa9d87e(0x33e,_0x28dee4._0x4b7867)](_0xd12a4d[_0xa9d87e(0x1a9,_0x28dee4._0x5cb425)])?_0xd12a4d['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x154883){const _0x657389={_0x379001:0x85a,_0x3e6122:0x72c,_0x433126:0x7f7,_0x30e850:0x779,_0x752583:0x91a,_0x7d5bd2:0x82d,_0x321efb:0x742,_0x517509:0x390,_0x136f24:0x8ca,_0x5a14bd:0x804,_0x53986e:0x43e,_0x12efb1:0x427,_0x4a88a7:0x595,_0x27493e:0x4dd,_0x1ee17c:0x4f0,_0xf13156:0x38e,_0x5babce:0x7e9,_0x47ef23:0x6d9,_0x1349c:0x895,_0x24b90c:0x5e4},_0x4f9f76={'RxhXK':_0x44eed3(0x80b,_0x657389._0x379001),'SmHty':_0x44eed3(0x891,_0x657389._0x3e6122),'NVcfU':function(_0x9cedd8,_0x28e28b,_0x53b8d8,_0x46fe98,_0x137ccc){return _0x9cedd8(_0x28e28b,_0x53b8d8,_0x46fe98,_0x137ccc);}};function _0x48fee2(_0x446e90,_0x247224){return _0x431448(_0x247224,_0x446e90-0x3b7);}function _0x44eed3(_0x47df93,_0x52c609){return _0x431448(_0x47df93,_0x52c609-0x3f8);}try{const _0xd87e52=JSON['parse'](_0x154883);if(_0xd87e52[_0x48fee2(0x761,_0x657389._0x433126)]!==_0x48fee2(_0x657389._0x30e850,_0x657389._0x752583))return null;if(_0xd87e52['method']!==_0x4f9f76[_0x44eed3(0x742,0x841)]&&_0xd87e52['method']!==_0x44eed3(_0x657389._0x7d5bd2,0x75d)+'start')return null;const _0x118726=_0xd87e52[_0x44eed3(_0x657389._0x321efb,0x862)]??{},_0xa9a061=typeof _0xd87e52['id']===_0x4f9f76[_0x44eed3(_0x657389._0x517509,0x543)]&&_0xd87e52['id']['trim']()?_0xd87e52['id'][_0x44eed3(_0x657389._0x136f24,0x721)]():'req-'+Math[_0x48fee2(0x45e,0x41b)]()[_0x48fee2(_0x657389._0x5a14bd,0x7bb)](0x24)[_0x48fee2(0x567,_0x657389._0x53986e)](0x2,0xc),_0x3e837e=_0x4f9f76[_0x44eed3(_0x657389._0x12efb1,_0x657389._0x4a88a7)](firstString,_0x118726[_0x44eed3(_0x657389._0x27493e,_0x657389._0x1ee17c)+'me'],_0x118726[_0x44eed3(_0x657389._0xf13156,0x4e7)+'me'],_0x118726['deviceId'],_0x44eed3(_0x657389._0x5babce,0x78f)+_0x48fee2(_0x657389._0x47ef23,_0x657389._0x1349c)),_0x376832={};return _0x376832['id']=_0xa9a061,_0x376832[_0x44eed3(0x418,_0x657389._0x24b90c)]=_0x3e837e,_0x376832;}catch{return null;}}function isConnectHandshakeRequest(_0xe163b7){const _0x6f9ee5={_0x59453b:0x16,_0x79c053:0x478,_0x16e640:0x391,_0x4381d8:0x16,_0x409e61:0x204,_0xcbdfe4:0x597,_0x4bf545:0x4b3,_0xee83a4:0x4e4,_0x2604a7:0xdb,_0x11a65c:0x80,_0x31a6f7:0xfb,_0x215adc:0x97,_0x56e4c9:0x27b},_0x16bdf8={};_0x16bdf8[_0x4d0522(_0x6f9ee5._0x59453b,-0x8b)]='req',_0x16bdf8[_0xa78eb3(_0x6f9ee5._0x79c053,_0x6f9ee5._0x16e640)]=function(_0x4cde97,_0x33d2ba){return _0x4cde97===_0x33d2ba;};function _0xa78eb3(_0x2a9510,_0x498be3){return _0x9ec63e(_0x2a9510-0x18d,_0x498be3);}function _0x4d0522(_0x2acc82,_0xc81d05){return _0x9ec63e(_0x2acc82- -0x210,_0xc81d05);}const _0x255935=_0x16bdf8;try{const _0xf51306=JSON['parse'](_0xe163b7);return _0xf51306['type']===_0x255935[_0x4d0522(_0x6f9ee5._0x4381d8,_0x6f9ee5._0x409e61)]&&(_0xf51306[_0xa78eb3(_0x6f9ee5._0xcbdfe4,_0x6f9ee5._0x4bf545)]===_0xa78eb3(0x595,_0x6f9ee5._0xee83a4)||_0x255935[_0x4d0522(_0x6f9ee5._0x2604a7,-_0x6f9ee5._0x11a65c)](_0xf51306[_0x4d0522(0x1fa,0x27b)],_0x4d0522(_0x6f9ee5._0x31a6f7,_0x6f9ee5._0x215adc)+_0xa78eb3(_0x6f9ee5._0x56e4c9,0x352)));}catch{return![];}}function parsePairingRequestFromError(_0x55c416,_0x220223=Date[_0x431448(0x509,0x3cb)]()){const _0x56b849={_0x1e97ca:0x2fb,_0x59ab0b:0xc8,_0x5d8cbf:0x209,_0x1ae64e:0x7b,_0x274837:0x385,_0x37de2f:0x12,_0x2afa9c:0x301,_0x7f1bd4:0x226,_0x179e85:0x12d,_0x535aa3:0x303,_0x16f992:0xfc,_0xffb3e7:0x2dc,_0x4b0fe5:0x294,_0x1ffd4d:0x1f0,_0x820870:0x164,_0x45afe4:0xe1,_0x474365:0x238,_0x56f36d:0x4da,_0x25c068:0x235,_0x27ae3b:0x2c4,_0x4037fc:0x347,_0x568fcf:0x188,_0xfa9b3e:0x35,_0x46fa21:0x125,_0x165aed:0x12b},_0x262f05={'RUzHg':function(_0x4757b2,_0x18b8c0){return _0x4757b2!==_0x18b8c0;},'CkfOS':_0x344bcc(0x2b7,_0x56b849._0x1e97ca),'fjzwb':_0x285ab5(_0x56b849._0x59ab0b,_0x56b849._0x5d8cbf)+'required','kSTvB':_0x285ab5(0x17c,-_0x56b849._0x1ae64e),'cDxJZ':function(_0x9b5b3,_0xcec88,_0x9f8df9){return _0x9b5b3(_0xcec88,_0x9f8df9);},'GUfMk':function(_0x202fd5,_0x3ffc6c){return _0x202fd5(_0x3ffc6c);},'gyDHa':_0x344bcc(0x223,_0x56b849._0x274837)};function _0x344bcc(_0x9e15a4,_0x14e6e0){return _0x431448(_0x14e6e0,_0x9e15a4- -0x7d);}function _0x285ab5(_0x13bdea,_0x2aaaa5){return _0x431448(_0x2aaaa5,_0x13bdea- -0x251);}try{const _0x319e3b=JSON[_0x344bcc(0x197,-0x3e)](_0x55c416);if(_0x319e3b['type']!==_0x285ab5(_0x56b849._0x37de2f,0x1c8)||_0x262f05['RUzHg'](_0x319e3b['ok'],![])||!_0x319e3b[_0x344bcc(_0x56b849._0x2afa9c,_0x56b849._0x7f1bd4)])return null;const _0x45bb2f=typeof _0x319e3b[_0x285ab5(_0x56b849._0x179e85,0x26)][_0x344bcc(0x297,_0x56b849._0x535aa3)]===_0x262f05['CkfOS']?_0x319e3b[_0x344bcc(0x301,0x25a)]['code']:'',_0x2eb466=typeof _0x319e3b['error'][_0x285ab5(_0x56b849._0x16f992,_0x56b849._0xffb3e7)]===_0x285ab5(0xe3,0x282)?_0x319e3b[_0x344bcc(_0x56b849._0x2afa9c,0x108)][_0x285ab5(_0x56b849._0x16f992,_0x56b849._0x4b0fe5)]:'';if(!_0x45bb2f['includes'](_0x344bcc(0x314,0x3cb)+'ED')&&!_0x45bb2f[_0x285ab5(-0x70,-_0x56b849._0x1ffd4d)](_0x285ab5(0xff,-0x44)+_0x285ab5(0x200,0x28))&&!_0x2eb466[_0x344bcc(_0x56b849._0x820870,0x234)]('NOT_PAIR'+'ED')&&!_0x2eb466[_0x344bcc(_0x56b849._0x820870,0x42)](_0x262f05[_0x285ab5(0x9c,_0x56b849._0x45afe4)]))return null;const _0x4bb872=_0x319e3b['error'][_0x344bcc(_0x56b849._0x474365,0xe2)]??_0x319e3b[_0x344bcc(_0x56b849._0x2afa9c,_0x56b849._0x56f36d)][_0x344bcc(0x241,0xcb)]??{},_0x5c9f01=firstString(_0x4bb872[_0x344bcc(0x48,-0x7b)+'d'],extractRequestIdFromMessage(_0x2eb466),_0x262f05[_0x344bcc(_0x56b849._0x25c068,0x249)]);return{'requestId':_0x5c9f01,'deviceId':_0x262f05['cDxJZ'](firstString,_0x4bb872[_0x344bcc(_0x56b849._0x27ae3b,0x205)],''),'displayName':firstNullableString(_0x4bb872[_0x344bcc(_0x56b849._0x4037fc,0x16c)+_0x344bcc(0x113,0xa)]),'platform':firstNullableString(_0x4bb872[_0x285ab5(0x1de,0x32)]),'deviceFamily':firstNullableString(_0x4bb872[_0x285ab5(-_0x56b849._0x568fcf,-0x2de)+_0x285ab5(-_0x56b849._0xfa9b3e,-0x82)]),'role':_0x262f05[_0x285ab5(-0xb0,-0x1cf)](firstNullableString,_0x4bb872[_0x285ab5(0x238,0x257)]),'remoteIp':firstNullableString(_0x4bb872[_0x285ab5(_0x56b849._0x46fa21,0x116)]),'receivedAtMs':_0x220223,'status':_0x262f05[_0x344bcc(0x24d,_0x56b849._0x165aed)]};}catch{return null;}}function parsePairResolvedEvent(_0x134036){const _0x226be7={_0x31fcea:0x5bf,_0x3fd127:0x3f1,_0x37c7ac:0x571,_0x7963b2:0x6ab,_0x4e9e39:0x569,_0x294348:0x782,_0x1d0c5f:0x4bb,_0x1b65de:0x547,_0x48b05c:0x4b3,_0x388d64:0x650,_0x362b98:0x789,_0x4a4d78:0x8b3,_0x5c384d:0x7b7,_0x3428fb:0x5c0,_0x17ecc8:0x6cb,_0xf22551:0x5a1,_0x12b9b3:0x4ea,_0x149205:0x5c0,_0x8252fe:0x696,_0x2827ae:0x522,_0xac27ca:0x5c1};function _0x2fc87b(_0x231522,_0x16d3ce){return _0x9ec63e(_0x16d3ce-0x40f,_0x231522);}const _0x1ba7b2={};_0x1ba7b2[_0x2970dc(_0x226be7._0x31fcea,_0x226be7._0x3fd127)]=function(_0x310fcc,_0x18e634){return _0x310fcc!==_0x18e634;},_0x1ba7b2[_0x2970dc(0x6cb,0x7db)]=_0x2970dc(0x5fd,_0x226be7._0x37c7ac),_0x1ba7b2[_0x2fc87b(_0x226be7._0x7963b2,_0x226be7._0x4e9e39)]=_0x2fc87b(0x8ce,_0x226be7._0x294348);const _0x4a7d76=_0x1ba7b2;function _0x2970dc(_0x1f8311,_0x3c697e){return _0x9ec63e(_0x1f8311-0x323,_0x3c697e);}try{const _0x34f672=JSON['parse'](_0x134036);if(_0x4a7d76['kiHZK'](_0x34f672['type'],_0x2970dc(0x547,_0x226be7._0x1d0c5f))||_0x34f672[_0x2970dc(_0x226be7._0x1b65de,_0x226be7._0x48b05c)]!=='device.p'+_0x2fc87b(_0x226be7._0x388d64,0x4cb)+_0x2fc87b(_0x226be7._0x362b98,0x7f7)||!_0x34f672['payload'])return null;const _0x66d648=typeof _0x34f672[_0x2fc87b(0x7bb,0x68d)]['requestI'+'d']===_0x4a7d76[_0x2fc87b(_0x226be7._0x4a4d78,_0x226be7._0x5c384d)]?_0x34f672[_0x2fc87b(0x70a,0x68d)][_0x2970dc(0x38e,0x45b)+'d']['trim']():'';if(!_0x66d648)return null;const _0x5f0729=typeof _0x34f672['payload'][_0x2fc87b(0x683,_0x226be7._0x3428fb)]===_0x4a7d76[_0x2970dc(_0x226be7._0x17ecc8,0x667)]?_0x34f672[_0x2970dc(_0x226be7._0xf22551,0x479)][_0x2fc87b(_0x226be7._0x12b9b3,_0x226be7._0x149205)]:_0x2970dc(_0x226be7._0x8252fe,0x86a),_0x3f2a21=_0x5f0729===_0x2fc87b(0x442,0x580)||_0x5f0729===_0x2fc87b(0x683,_0x226be7._0x2827ae)?_0x5f0729:_0x4a7d76['kxiMp'],_0x2435cc={};return _0x2435cc[_0x2fc87b(0x3cd,0x47a)+'d']=_0x66d648,_0x2435cc[_0x2970dc(0x4d4,_0x226be7._0xac27ca)]=_0x3f2a21,_0x2435cc;}catch{return null;}}function firstString(..._0x2d29bf){const _0x4000ff={_0xe6580b:0x4f7,_0x3706ee:0x706,_0x3e7d8f:0x5cf},_0x31712e={_0x5bc69e:0x300};function _0x4153ea(_0x390701,_0x5a36b){return _0x9ec63e(_0x5a36b-_0x31712e._0x5bc69e,_0x390701);}for(const _0x546029 of _0x2d29bf){if(typeof _0x546029===_0x4153ea(_0x4000ff._0xe6580b,0x5da)&&_0x546029['trim']())return _0x546029[_0x4153ea(_0x4000ff._0x3706ee,_0x4000ff._0x3e7d8f)]();}function _0x249d78(_0x4e00ce,_0x4620ec){return _0x9ec63e(_0x4620ec-0x3cb,_0x4e00ce);}return'';}function firstNullableString(_0x1406c6){const _0x206bfd={};function _0x26ed74(_0x4551f1,_0x8178b5){return _0x431448(_0x4551f1,_0x8178b5-0x2c1);}function _0xfffacb(_0x55fbdc,_0x8d7914){return _0x431448(_0x55fbdc,_0x8d7914- -0x1a4);}_0x206bfd['AOtek']='string';const _0x44d509=_0x206bfd;return typeof _0x1406c6===_0x44d509[_0xfffacb(0x12e,0x51)]&&_0x1406c6[_0x26ed74(0x61f,0x5ea)]()?_0x1406c6[_0xfffacb(0x18b,0x185)]():null;}function extractRequestIdFromMessage(_0x30ee44){const _0x284a6c=_0x30ee44['match'](/requestId[:\s]*([a-f0-9-]+)/i);return _0x284a6c?.[0x1]??null;}import{randomUUID as _0x452365}from'crypto';import{setTimeout as _0x169008}from'timers/promises';import _0x1f8130 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,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{[_0x431448(0x301,0x48b)];['relaySoc'+_0x9ec63e(0x38f,0x34e)]=null;[_0x9ec63e(0x2a6,0x161)+_0x431448(0x49e,0x3c0)]=null;['relayCon'+_0x431448(0x1cd,0x11c)]=![];['gatewayC'+_0x431448(0x18,0x218)+'g']=![];[_0x431448(0x254,0x26d)]=!![];[_0x431448(0x38d,0x3cf)+_0x9ec63e(0x2f7,0x2f7)]=0x0;['lastRela'+_0x9ec63e(0x2f8,0x2cb)+_0x9ec63e(0x320,0x2df)]=0x0;['reconnec'+_0x9ec63e(0x1c4,-0x27)]=null;[_0x431448(0x489,0x29f)+_0x9ec63e(0x381,0x1f7)+'r']=null;['gatewayI'+'dleClose'+_0x431448(0x2c7,0xdc)]=null;[_0x9ec63e(0x283,0x317)+_0x9ec63e(0x1c4,0x13)]=null;['pendingG'+_0x431448(0x28,0x1c3)+_0x9ec63e(0x339,0x1e3)]=[];['gatewayH'+'andshake'+'Started']=![];[_0x431448(0x127,0x17b)+'mandStar'+_0x431448(0x477,0x3ad)]=null;[_0x431448(0x1ca,0x115)+_0x9ec63e(0x220,0x283)+_0x9ec63e(0x131,0x2a7)]=null;[_0x9ec63e(0x394,0x443)];constructor(_0x36db7e){const _0x4e139c={_0x392d98:0xa4,_0x5c432c:0xe0,_0x4b519e:0x2bc,_0x2f2e05:0x16d,_0x12045e:0x2,_0x171d3e:0xd3,_0x2b84df:0x1a},_0x22551b={_0x3f26f7:0x3ac};function _0x3f69b5(_0x18f428,_0x54cab9){return _0x431448(_0x18f428,_0x54cab9- -_0x22551b._0x3f26f7);}this[_0x3f69b5(_0x4e139c._0x392d98,0xdf)]=_0x36db7e;function _0x5da857(_0x4877e3,_0x1aef4f){return _0x431448(_0x4877e3,_0x1aef4f- -0x321);}this[_0x3f69b5(0x8f,0x42)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x36db7e[_0x5da857(0x209,0x15e)][_0x5da857(-0xcf,-_0x4e139c._0x5c432c)+'d'],'instanceId':_0x36db7e[_0x3f69b5(0x27b,0xd3)][_0x3f69b5(-_0x4e139c._0x4b519e,-_0x4e139c._0x2f2e05)+'Id'],'relayUrl':_0x36db7e[_0x3f69b5(-_0x4e139c._0x12045e,_0x4e139c._0x171d3e)][_0x5da857(0x5e,_0x4e139c._0x2b84df)],'gatewayUrl':_0x36db7e[_0x5da857(0x1fe,0x13c)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date['now']()};}[_0x431448(0x13a,0x148)](){const _0x4e2c65={_0x2882e7:0x542,_0x21fd8d:0x2ce,_0x307090:0x482,_0xa04510:0x25c,_0x5cd33b:0x732,_0x214938:0x159,_0x2f3c12:0x307,_0x57423f:0x473,_0x4413f6:0x807,_0x31e7a8:0x229,_0x54aaa8:0x426,_0x5c1dc3:0x760,_0x58bb83:0x5e1,_0xa19fec:0x445,_0x3ea873:0x55b,_0x575f55:0x3cc},_0x4dc541={_0x1db196:0x18};if(!this['stopped'])return;this[_0x4c7949(0x735,_0x4e2c65._0x2882e7)]=![];function _0x2298f0(_0x4f9c8b,_0x17b74c){return _0x431448(_0x4f9c8b,_0x17b74c- -_0x4dc541._0x1db196);}function _0x4c7949(_0x36c843,_0x3d963b){return _0x431448(_0x36c843,_0x3d963b-0x2d5);}this[_0x2298f0(_0x4e2c65._0x21fd8d,_0x4e2c65._0x307090)+_0x2298f0(0x203,_0x4e2c65._0xa04510)]({'running':!![],'gatewayUrl':this['options'][_0x4c7949(0x6ee,_0x4e2c65._0x5cd33b)+'rl']}),this[_0x2298f0(0x33e,0x22b)](_0x2298f0(_0x4e2c65._0x214938,_0x4e2c65._0x2f3c12)+'starting'+_0x2298f0(0x396,0x414)+'Id='+this[_0x2298f0(0x515,_0x4e2c65._0x57423f)][_0x4c7949(_0x4e2c65._0x4413f6,0x754)][_0x2298f0(0xbf,_0x4e2c65._0x31e7a8)+'d']+(_0x2298f0(_0x4e2c65._0x54aaa8,0x414)+'Url=')+this[_0x4c7949(0x879,_0x4e2c65._0x5c1dc3)][_0x2298f0(_0x4e2c65._0x58bb83,_0x4e2c65._0xa19fec)+'rl']),void this[_0x4c7949(_0x4e2c65._0x3ea873,0x6f3)+_0x4c7949(_0x4e2c65._0x575f55,0x541)]();}async[_0x431448(0x2aa,0x423)](){const _0x4ea380={_0x1e4fe2:0x2ee,_0x4d8a52:0x45a,_0x109ca5:0x75b,_0x4fec33:0x76e,_0x45a350:0x375,_0x4c3526:0x548,_0x395916:0x2bb,_0x1db3a4:0x4a3,_0x2ef9e1:0x3f5,_0x226f47:0x67b,_0x2e75a6:0x6cb,_0x586a5d:0x706,_0xfefaa6:0x339,_0x56e8cb:0x348,_0x2090ae:0x53c,_0xb49f23:0x445,_0x31649b:0x50f,_0x3f4fc5:0x3d5,_0x20d8bb:0x458,_0x118bf0:0x398,_0x3d2075:0x394,_0xca1ad0:0x353,_0x3948c4:0x2f7,_0x259323:0x4c2,_0x547e9c:0x62d,_0x1e3f3b:0x5c1,_0xd591cb:0x6be,_0x4f6530:0x49d,_0x19caba:0x67b,_0x1f0137:0x5fe,_0x5780cb:0x3f6,_0x29d197:0x437,_0xba5a06:0x5f7,_0x2613e7:0x7a6,_0x160f76:0x8df,_0x3daecf:0x291,_0xc69d79:0x5d9,_0x106697:0x5ad,_0x517d10:0x616,_0x52ad44:0x4dc,_0x4002c4:0x41d,_0xd164d:0x67b,_0x41d5e8:0x586,_0x20ce7e:0x6b8,_0x5f53a7:0x55a,_0x89034c:0x5b0},_0x3ae785={_0x4edb47:0x39d};function _0x2d0e7c(_0x2264e7,_0x4901f7){return _0x9ec63e(_0x4901f7-0x1d6,_0x2264e7);}function _0x4f5b6e(_0x4641a7,_0x2a7303){return _0x9ec63e(_0x4641a7-_0x3ae785._0x4edb47,_0x2a7303);}const _0x48bda1=(_0x2d0e7c(_0x4ea380._0x1e4fe2,_0x4ea380._0x4d8a52)+_0x4f5b6e(_0x4ea380._0x109ca5,_0x4ea380._0x4fec33)+'4|1|7|10'+_0x2d0e7c(_0x4ea380._0x45a350,_0x4ea380._0x4c3526)+_0x2d0e7c(_0x4ea380._0x395916,_0x4ea380._0x1db3a4))['split']('|');let _0x473320=0x0;while(!![]){switch(_0x48bda1[_0x473320++]){case'0':this['gatewayS'+_0x2d0e7c(_0x4ea380._0x2ef9e1,0x53c)]?.[_0x4f5b6e(_0x4ea380._0x226f47,_0x4ea380._0x2e75a6)]();continue;case'1':this['gatewayH'+_0x2d0e7c(_0x4ea380._0x586a5d,0x583)+_0x2d0e7c(_0x4ea380._0xfefaa6,0x2c9)]=![];continue;case'2':this['relayCon'+_0x4f5b6e(0x45f,_0x4ea380._0x56e8cb)]=![];continue;case'3':this['gatewayS'+_0x2d0e7c(0x588,_0x4ea380._0x2090ae)]=null;continue;case'4':this[_0x2d0e7c(_0x4ea380._0xb49f23,0x455)+'atewayMe'+_0x2d0e7c(0x677,_0x4ea380._0x31649b)]=[];continue;case'5':this[_0x4f5b6e(0x5b0,_0x4ea380._0x3f4fc5)]=!![];continue;case'6':this[_0x4f5b6e(_0x4ea380._0x20d8bb,_0x4ea380._0x118bf0)+_0x2d0e7c(0x25d,_0x4ea380._0x3d2075)+'g']=![];continue;case'7':this[_0x2d0e7c(_0x4ea380._0xca1ad0,_0x4ea380._0x3948c4)+_0x2d0e7c(_0x4ea380._0x259323,0x388)+'tedAtMs']=null;continue;case'8':this[_0x2d0e7c(_0x4ea380._0x547e9c,_0x4ea380._0x1e3f3b)+_0x4f5b6e(_0x4ea380._0xd591cb,0x60f)]();continue;case'9':this[_0x4f5b6e(_0x4ea380._0x4f6530,0x419)+'ket']?.[_0x4f5b6e(_0x4ea380._0x19caba,_0x4ea380._0x1f0137)]();continue;case'10':this[_0x2d0e7c(0x1cd,0x291)+_0x2d0e7c(0x2ed,_0x4ea380._0x5780cb)+'AtMs']=null;continue;case'11':const _0xe34aa8={};_0xe34aa8[_0x4f5b6e(_0x4ea380._0x29d197,_0x4ea380._0xba5a06)]=![],_0xe34aa8[_0x4f5b6e(_0x4ea380._0x2613e7,_0x4ea380._0x160f76)+_0x2d0e7c(0x41d,0x474)]=![],_0xe34aa8[_0x2d0e7c(0x33a,_0x4ea380._0x3daecf)+_0x4f5b6e(0x5bd,0x580)]=![],_0xe34aa8[_0x4f5b6e(_0x4ea380._0xc69d79,0x691)+_0x4f5b6e(0x572,_0x4ea380._0x106697)]=0x0,_0xe34aa8['lastErro'+'r']=null,this[_0x2d0e7c(0x53c,_0x4ea380._0x517d10)+_0x2d0e7c(_0x4ea380._0x52ad44,0x3f0)](_0xe34aa8);continue;case'12':this[_0x4f5b6e(0x49d,_0x4ea380._0x4002c4)+_0x4f5b6e(0x72c,_0x4ea380._0xd164d)]=null;continue;case'13':this[_0x4f5b6e(_0x4ea380._0x41d5e8,_0x4ea380._0x20ce7e)](_0x4f5b6e(0x662,_0x4ea380._0x5f53a7)+_0x2d0e7c(0x49d,0x3e9));continue;case'14':await _0x169008(0x19);continue;case'15':if(this[_0x4f5b6e(_0x4ea380._0x89034c,0x79e)])return;continue;}break;}}async['approveP'+_0x431448(0x3eb,0x308)+'st'](_0x4a0fd5){const _0x120659={_0x2f9c34:0x3af,_0x36faa0:0xb,_0x45b290:0xb5,_0x32a0ff:0x8b,_0x4cf628:0x105,_0x57a447:0x197,_0x5c50a6:0x2e0};function _0x387fc8(_0x5a4c96,_0x160ce7){return _0x9ec63e(_0x160ce7- -0x11f,_0x5a4c96);}const _0x54da4d={};_0x54da4d[_0x48abaf(0x4eb,_0x120659._0x2f9c34)]=_0x387fc8(_0x120659._0x36faa0,0x27)+_0x387fc8(-_0x120659._0x45b290,0xd9)+_0x387fc8(_0x120659._0x32a0ff,-0x3b);function _0x48abaf(_0x294520,_0x11806a){return _0x9ec63e(_0x11806a-0x132,_0x294520);}const _0x531a3b=_0x54da4d,_0x35835a={};_0x35835a[_0x387fc8(-0x80,-0xb4)+'d']=_0x4a0fd5,this[_0x48abaf(_0x120659._0x4cf628,0x16d)+_0x387fc8(0x1e7,_0x120659._0x57a447)+'st'](_0x531a3b[_0x48abaf(0x502,0x3af)],_0x35835a),this['markPair'+_0x387fc8(0x1e4,0x1de)+_0x387fc8(0x381,_0x120659._0x5c50a6)](_0x4a0fd5,_0x387fc8(0x84,0x52));}async[_0x431448(0x3de,0x259)+_0x9ec63e(0x231,0x57)+'t'](_0x408cfc){const _0x12daba={_0x196bb4:0x12c,_0x479147:0x14a,_0x1db1f6:0x1d1,_0x2f0577:0x63,_0x3927d8:0x27a},_0x2187de={_0x4ab2e1:0x12c};function _0x49420f(_0x3447ed,_0x2efca9){return _0x9ec63e(_0x3447ed- -_0x2187de._0x4ab2e1,_0x2efca9);}const _0x385d4e={};function _0x2128b8(_0x3e9b0d,_0x275e9c){return _0x9ec63e(_0x275e9c- -0x185,_0x3e9b0d);}_0x385d4e['requestI'+'d']=_0x408cfc,this[_0x2128b8(-_0x12daba._0x196bb4,-_0x12daba._0x479147)+_0x2128b8(0x334,0x131)+'st'](_0x49420f(0x1a,0x7e)+_0x2128b8(-0x1e,-0x136)+'ct',_0x385d4e),this['markPair'+_0x49420f(_0x12daba._0x1db1f6,_0x12daba._0x2f0577)+_0x2128b8(0x1e7,_0x12daba._0x3927d8)](_0x408cfc,'rejected');}[_0x431448(0x2a8,0x1c9)+'hot'](){const _0x2bdf5a={_0x5b0779:0x55b,_0x5708e7:0x467,_0x44aa7d:0x7d1,_0x8a9eb9:0x55b,_0x107d16:0x5fd,_0x4aa598:0x56d,_0x20f747:0x4fe,_0x5e4b2d:0x4f5,_0x43eb0f:0x534,_0x15bbba:0x779,_0x1e0a0c:0x37b},_0x340ffb={_0x4ab95b:0x3e5},_0x222b06={...this['snapshot']};_0x222b06[_0x4e23eb(_0x2bdf5a._0x5b0779,_0x2bdf5a._0x5708e7)+'dDevices']=[...this[_0x4e23eb(_0x2bdf5a._0x44aa7d,0x788)][_0x4e23eb(_0x2bdf5a._0x8a9eb9,0x535)+_0x528c43(_0x2bdf5a._0x107d16,_0x2bdf5a._0x4aa598)]];function _0x528c43(_0x433f6e,_0x1fd265){return _0x9ec63e(_0x433f6e-_0x340ffb._0x4ab95b,_0x1fd265);}_0x222b06[_0x528c43(_0x2bdf5a._0x20f747,0x6a8)+_0x4e23eb(0x6eb,0x640)+_0x4e23eb(_0x2bdf5a._0x5e4b2d,_0x2bdf5a._0x43eb0f)]=[...this[_0x528c43(_0x2bdf5a._0x15bbba,0x95d)][_0x4e23eb(0x556,_0x2bdf5a._0x1e0a0c)+'airReque'+_0x4e23eb(0x4f5,0x6f9)]];function _0x4e23eb(_0x45e52d,_0x11a835){return _0x9ec63e(_0x45e52d-0x43d,_0x11a835);}return _0x222b06;}async['connectR'+_0x431448(0x3dd,0x26c)](){const _0x2346ab={_0x30f90e:0x7a,_0x4182a9:0x78b,_0xe4c949:0x2d9,_0x36a0f9:0x222,_0x56cf13:0x1c0,_0x234f8e:0x575,_0xbdf9fd:0x5c9,_0x3d281f:0x3d8,_0x5858a8:0x444,_0x3dd47d:0x5c7,_0x5ea2ea:0x5a,_0x41c009:0x7b3,_0x15b829:0x8d7,_0x16d807:0x69f,_0x5a573d:0x526,_0x381733:0x4e8,_0xfd0c01:0x269,_0x1460c7:0x109,_0x472a1c:0x2ef,_0x45feb2:0x208,_0x4c0498:0x3e0,_0x2a0a8b:0xde,_0x18b0fd:0x73f,_0x2ad1e2:0x337,_0x543fd0:0x70b},_0x2ed7db={_0x2d3054:0x1d5,_0x587ce4:0x4f3,_0x469953:0x1a1,_0xe6e9ac:0x169,_0x3fcb15:0x62,_0x433919:0x2c6,_0x53d521:0x255,_0x31c7e4:0x43d,_0xac94dc:0x2c,_0x1e688e:0x1fc,_0x52c9c5:0x1c6,_0x1a0132:0xf,_0x49a615:0x2af,_0x35864d:0x165,_0x804d3e:0xf6,_0x57d7f1:0x157,_0x15cbf4:0x4dd,_0x5dd304:0x27e,_0x4330d1:0xf1,_0x5914be:0x2e,_0x4aef55:0x22f,_0x14084a:0x276,_0x55f7e3:0x1d8,_0x4451ff:0x3aa,_0x160c46:0x47d,_0x3465c4:0x1e6,_0x253a90:0x15,_0x5be53e:0x34f,_0x137544:0x2c2,_0x347998:0x2dc},_0x3e0507={_0x3c733f:0x1d5},_0x1445d9={_0x4f09d0:0x3b2,_0x1cc60b:0x514},_0x27c548={_0x49518c:0x21e},_0x223080={_0xa15e40:0x714,_0x4e114e:0x841,_0x24a4ef:0x2ba},_0x5a2abf={_0x3f8e11:0x5a,_0x39d8a6:0x5e0,_0x24b929:0x5bd,_0x4fa9ec:0x2ca,_0x246e33:0x270,_0x4912dc:0x31b,_0x4a2731:0x819,_0x1bd335:0x412,_0x526a99:0x2ea,_0x231934:0x3b7,_0x3e9ba5:0x2ef},_0x1a0617={_0x547f40:0xeb},_0x176d03={'LHbsX':function(_0x20f050,_0x289740){return _0x20f050(_0x289740);},'hWTch':function(_0x4a333a,_0x38a753){return _0x4a333a(_0x38a753);},'VDkEF':function(_0xd8b817,_0x5aba85){return _0xd8b817*_0x5aba85;},'ZUVIQ':'pong'};if(this[_0xb22b57(0x128,-_0x2346ab._0x30f90e)]||this[_0x48f8c4(_0x2346ab._0x4182a9,0x673)+_0x48f8c4(0x444,_0x2346ab._0xe4c949)]||this[_0xb22b57(_0x2346ab._0x36a0f9,_0x2346ab._0x56cf13)+_0x48f8c4(_0x2346ab._0x234f8e,_0x2346ab._0xbdf9fd)]())return;this[_0xb22b57(0x31e,_0x2346ab._0x3d281f)+_0x48f8c4(_0x2346ab._0x5858a8,_0x2346ab._0x3dd47d)]=!![];function _0x48f8c4(_0x3d8596,_0x4183b9){return _0x9ec63e(_0x3d8596-0x382,_0x4183b9);}this['relayAtt'+_0x48f8c4(0x679,0x855)]+=0x1;const _0x2e2c51=this[_0x48f8c4(0x6f7,0x4f4)+_0xb22b57(0x20c,_0x2346ab._0x5ea2ea)],_0x34cfb2=_0x176d03[_0xb22b57(0x345,0x515)](buildRelayWsUrl,this[_0x48f8c4(_0x2346ab._0x41c009,_0x2346ab._0x15b829)][_0xb22b57(0x33a,0x255)]);this['log'](_0x48f8c4(_0x2346ab._0x16d807,0x899)+_0x48f8c4(0x685,0x88a)+'tempt='+_0x2e2c51+_0x48f8c4(_0x2346ab._0x5a573d,_0x2346ab._0x381733)+_0x176d03['hWTch'](redactRelayWsUrl,_0x34cfb2));function _0xb22b57(_0x239d8e,_0xceb6a9){return _0x9ec63e(_0x239d8e- -_0x1a0617._0x547f40,_0xceb6a9);}const _0xb730ce=new _0x1f8130(_0x34cfb2,{'maxPayload':_0x176d03[_0xb22b57(_0x2346ab._0xfd0c01,0x283)](0x19*0x400,0x400)});this[_0xb22b57(0x15,_0x2346ab._0x1460c7)+'ket']=_0xb730ce,_0xb730ce[_0xb22b57(0x29e,0x42f)](_0xb22b57(0x18e,_0x2346ab._0x472a1c),()=>{if(this[_0x3eba05(0x1e5,_0x5a2abf._0x3f8e11)]||this[_0x499ff6(0x4f1,0x4ba)+'ket']!==_0xb730ce){_0xb730ce[_0x499ff6(0x6cf,_0x5a2abf._0x39d8a6)]();return;}this[_0x3eba05(0x3db,_0x5a2abf._0x24b929)+'necting']=![];function _0x499ff6(_0x9197e,_0x407276){return _0x48f8c4(_0x9197e-0x6f,_0x407276);}this[_0x499ff6(0x5e5,0x7bb)+_0x3eba05(_0x5a2abf._0x4fa9ec,0x4bb)+'yMs']=Date[_0x3eba05(0x343,0x3d2)]();const _0x22a76f={};function _0x3eba05(_0x5ce52b,_0x366353){return _0x48f8c4(_0x5ce52b- -0x3b0,_0x366353);}_0x22a76f['relayCon'+_0x3eba05(_0x5a2abf._0x246e33,_0x5a2abf._0x4912dc)]=!![],_0x22a76f[_0x499ff6(_0x5a2abf._0x4a2731,0x804)+'r']=null,this[_0x3eba05(_0x5a2abf._0x1bd335,_0x5a2abf._0x526a99)+'apshot'](_0x22a76f),this[_0x3eba05(0x1bb,_0x5a2abf._0x231934)](_0x3eba05(_0x5a2abf._0x3e9ba5,0x266)+_0x3eba05(0x213,0x88)+'attempt='+_0x2e2c51),this[_0x3eba05(0x395,0x4d9)+'rtbeat']();}),_0xb730ce['on'](_0xb22b57(_0x2346ab._0x45feb2,_0x2346ab._0x4c0498),(_0x55196e,_0x278bb5)=>{const _0x3a1e6b={_0x2124f8:0x49b};function _0x5af41f(_0x41c66b,_0x2d241e){return _0xb22b57(_0x41c66b-_0x3a1e6b._0x2124f8,_0x2d241e);}void this['handleRe'+_0x5af41f(0x46a,0x56a)+'ge'](_0x55196e,_0x278bb5);}),_0xb730ce['on'](_0x176d03[_0xb22b57(0x13,_0x2346ab._0x2a0a8b)],()=>{function _0x525e8e(_0x5194ea,_0x590d4b){return _0xb22b57(_0x5194ea-0x34,_0x590d4b);}function _0xd68d44(_0x4d4314,_0x52b673){return _0xb22b57(_0x4d4314-0x507,_0x52b673);}this['lastRela'+_0xd68d44(_0x223080._0xa15e40,_0x223080._0x4e114e)+'yMs']=Date[_0x525e8e(_0x223080._0x24a4ef,0x31c)]();}),_0xb730ce[_0x48f8c4(0x70b,_0x2346ab._0x18b0fd)](_0xb22b57(0x239,_0x2346ab._0x2ad1e2),_0x35e628=>{function _0x3c3ab7(_0x29f643,_0x55271a){return _0x48f8c4(_0x29f643- -0x1c1,_0x55271a);}function _0x50fffa(_0xac1229,_0x4bf635){return _0x48f8c4(_0xac1229- -_0x27c548._0x49518c,_0x4bf635);}this[_0x3c3ab7(0x3aa,_0x1445d9._0x4f09d0)](_0x50fffa(_0x1445d9._0x1cc60b,0x432)+'ror:\x20'+_0x176d03[_0x50fffa(0x594,0x409)](String,_0x35e628));}),_0xb730ce[_0x48f8c4(_0x2346ab._0x543fd0,0x765)](_0xb22b57(0x1f3,0x359),(_0x4cb3b1,_0x5869d4)=>{this['relaySoc'+'ket']===_0xb730ce&&(this[_0x94f7f8(_0x2ed7db._0x2d3054,0x1ea)+'ket']=null);function _0x94f7f8(_0x2e3e66,_0x51cee3){return _0xb22b57(_0x51cee3-_0x3e0507._0x3c733f,_0x2e3e66);}this[_0x94f7f8(0x5e4,_0x2ed7db._0x587ce4)+_0x4a098a(0x157,0x180)]=![],this[_0x94f7f8(0x37d,_0x2ed7db._0x469953)+_0x4a098a(_0x2ed7db._0xe6e9ac,-_0x2ed7db._0x3fcb15)]();function _0x4a098a(_0x2457a6,_0x5f48ad){return _0xb22b57(_0x2457a6-0x180,_0x5f48ad);}this[_0x4a098a(0x1b6,_0x2ed7db._0x433919)+_0x4a098a(0x247,0x419)+_0x94f7f8(_0x2ed7db._0x53d521,_0x2ed7db._0x31c7e4)]=null,this[_0x94f7f8(-_0x2ed7db._0xac94dc,0x1a5)+_0x4a098a(0x2b5,_0x2ed7db._0x1e688e)+_0x4a098a(_0x2ed7db._0x52c9c5,-_0x2ed7db._0x1a0132)]=null,this['updateSn'+_0x4a098a(_0x2ed7db._0x49a615,_0x2ed7db._0x35864d)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x4cb3b1===0x3e8?null:_0x4a098a(0x2c0,_0x2ed7db._0x804d3e)+_0x94f7f8(0x241,_0x2ed7db._0x57d7f1)+(_0x5869d4[_0x94f7f8(0x6db,_0x2ed7db._0x15cbf4)]()||_0x4cb3b1)}),this[_0x4a098a(_0x2ed7db._0x5dd304,_0x2ed7db._0x4330d1)](_0x94f7f8(_0x2ed7db._0x5914be,_0x2ed7db._0x4aef55)+_0x94f7f8(_0x2ed7db._0x14084a,0x3c0)+_0x94f7f8(_0x2ed7db._0x55f7e3,_0x2ed7db._0x4451ff)+_0x4cb3b1+_0x4a098a(0x1bc,0x1a0)+(_0x5869d4[_0x4a098a(0x488,_0x2ed7db._0x160c46)]()||'<none>')),this['closeGat'+_0x4a098a(_0x2ed7db._0x3465c4,_0x2ed7db._0x253a90)](),this[_0x4a098a(0x3a6,0x1c9)+_0x94f7f8(_0x2ed7db._0x5be53e,_0x2ed7db._0x137544)+_0x94f7f8(_0x2ed7db._0x347998,0x30c)]();});}async['handleRe'+_0x9ec63e(0xba,0x2a9)+'ge'](_0x9c700f,_0xca1f93){const _0x1b911b={_0x338392:0x68e,_0x50f5bd:0x735,_0x50aff5:0x4d5,_0x291640:0x69c,_0x46657c:0x86f,_0xcb0312:0x7ed,_0x1b9d57:0x237,_0x4ce598:0x489,_0x5a04ab:0x607,_0x1b93c5:0x6b0,_0x379e9a:0x5c8,_0x59d6cb:0x3fe,_0x51e0ed:0x342,_0x24e6e2:0x853,_0x5c3214:0x67c,_0x2c385e:0x536,_0x4eccfc:0x556,_0x2815ea:0x568,_0x2f28af:0x2ca,_0x3165bf:0x656,_0x1f02c5:0x344,_0x13ce5e:0x3ab},_0x59315a={};_0x59315a['MphUn']=_0x1263b5(0x502,0x390),_0x59315a[_0x1263b5(_0x1b911b._0x338392,_0x1b911b._0x50f5bd)]=function(_0x335023,_0x2542cc){return _0x335023==_0x2542cc;};const _0x27e079=_0x59315a;this[_0x1c6aa2(0x6a4,_0x1b911b._0x50aff5)+_0x1263b5(_0x1b911b._0x291640,_0x1b911b._0x46657c)+'yMs']=Date[_0x1263b5(0x715,_0x1b911b._0xcb0312)]();if(_0xca1f93){this['forwardO'+_0x1263b5(0x609,0x7c1)+_0x1263b5(0x407,_0x1b911b._0x1b9d57)+_0x1263b5(0x46e,_0x1b911b._0x4ce598)]({'kind':_0x27e079['MphUn'],'data':normalizeBinary(_0x9c700f)});return;}function _0x1c6aa2(_0x32c109,_0x5dbe3){return _0x9ec63e(_0x5dbe3-0x2e1,_0x32c109);}const _0x22492a=normalizeText(_0x9c700f);if(_0x27e079[_0x1263b5(_0x1b911b._0x338392,_0x1b911b._0x5a04ab)](_0x22492a,null))return;const _0xccbc6b=parseControl(_0x22492a);if(_0xccbc6b){this[_0x1c6aa2(0x888,_0x1b911b._0x1b93c5)+'layContr'+'ol'](_0xccbc6b[_0x1263b5(_0x1b911b._0x379e9a,_0x1b911b._0x59d6cb)],_0xccbc6b[_0x1c6aa2(_0x1b911b._0x51e0ed,0x338)]);return;}const _0x166ba9=parseConnectStartIdentity(_0x22492a);_0x166ba9&&this[_0x1c6aa2(_0x1b911b._0x24e6e2,_0x1b911b._0x5c3214)+_0x1c6aa2(0x27a,0x44d)+_0x1c6aa2(0x755,0x596)](_0x166ba9['id'],_0x166ba9[_0x1263b5(_0x1b911b._0x2c385e,0x425)]);function _0x1263b5(_0x1f2ad5,_0x5a9e0e){return _0x9ec63e(_0x1f2ad5-0x3a4,_0x5a9e0e);}const _0x44e5ff={};_0x44e5ff[_0x1c6aa2(0x425,_0x1b911b._0x4eccfc)]=_0x1263b5(0x4c4,0x3d2),_0x44e5ff[_0x1c6aa2(_0x1b911b._0x2815ea,0x401)]=_0x22492a,this[_0x1263b5(0x46f,_0x1b911b._0x2f28af)+_0x1c6aa2(_0x1b911b._0x3165bf,0x546)+_0x1c6aa2(0x2fb,_0x1b911b._0x1f02c5)+_0x1c6aa2(0x286,_0x1b911b._0x13ce5e)](_0x44e5ff);}[_0x9ec63e(0x3cf,0x378)+_0x9ec63e(0x16e,0x22e)+'ol'](_0x268da5,_0x46a2c0){const _0x4260be={_0x37bdae:0x6d,_0x312b8f:0x176,_0x593822:0x100,_0x3112c6:0x287,_0x52a037:0x18a,_0x4e6e76:0x51,_0x564314:0x25d,_0x3df24c:0xe4,_0x2a814a:0x1cf,_0x25c5df:0x1b3,_0x304232:0x275,_0x2fa3ac:0x73,_0x566e40:0x2,_0x196fe7:0x1d0,_0x23b253:0xee,_0x3a2401:0x14c,_0x4e2f44:0x128,_0x57767e:0xd2,_0x3a7db7:0x63,_0x39e3c4:0x186,_0x3b922d:0x2a1,_0x4de2f8:0xba,_0x146b39:0x1f7,_0x2bad7e:0xe8,_0x3aaf76:0x263,_0x25aa29:0x190,_0x234d0f:0x1e6,_0xf863a7:0x1e3,_0x4f6dec:0x97,_0x3339fe:0xa3,_0x3a02a6:0x162,_0x351ed9:0xaf,_0x1dd744:0xd5,_0x34f884:0x81,_0x1c5f4e:0x41,_0x316a16:0xb5,_0x29873d:0x219,_0x2d4ce9:0x1e,_0x5042a1:0x4e,_0x2b1100:0x98,_0x4609fb:0x196,_0x3793f6:0x55,_0x133c40:0x1c9,_0x19dda5:0x1d2,_0x2b00a7:0x1a,_0x1f92ee:0x6d,_0x1a1b10:0x22b,_0x2fb9b2:0x1de,_0x595aeb:0x17a,_0x11ffc4:0x15a,_0x5ad10f:0xa1,_0xc01e3:0x164,_0x5317ee:0x56,_0x14dd89:0x48,_0x3b7b2d:0x78,_0x187e4e:0x17d,_0x12db0d:0x14c,_0x16a1f4:0x4,_0x3d9075:0xb8,_0x2a1ea3:0x1b3,_0x8b5d20:0x73,_0xd704ca:0xa8},_0x13dc81={_0x2f2480:0x2e7};function _0x50f3f6(_0x9ee5f1,_0x40837b){return _0x431448(_0x40837b,_0x9ee5f1- -_0x13dc81._0x2f2480);}const _0x2699f8={'JrrEu':function(_0x56e6bd,_0x215045){return _0x56e6bd(_0x215045);},'fNngA':function(_0x45c725,_0xfad6b4){return _0x45c725===_0xfad6b4;}};if(_0x268da5==='client_c'+_0x50f3f6(-_0x4260be._0x37bdae,-_0x4260be._0x312b8f)||_0x268da5===_0xff210(-_0x4260be._0x593822,-0x194)+_0xff210(_0x4260be._0x3112c6,0xb7)){const _0x1fedb7=this[_0x50f3f6(0x107,0x10b)]['clientCo'+_0xff210(0x47,-0x63)],_0xd3b370=_0x46a2c0??Math[_0xff210(-0x48,-0x1b4)](0x1,this[_0xff210(0xc0,0x15c)]['clientCo'+_0x50f3f6(-0xb8,-0x1c5)]),_0x5389e4=_0x2699f8[_0xff210(0x2ed,0x1ac)](Boolean,this[_0xff210(_0x4260be._0x52a037,-_0x4260be._0x4e6e76)+_0xff210(-0x8c,-0x18d)+_0x50f3f6(-0x20b,-0x3b9)]);_0xd3b370>0x0&&this['clientDe'+_0xff210(-_0x4260be._0x564314,-0x86)+_0x50f3f6(0xc6,0x54)]==null&&(this[_0x50f3f6(-0x16c,-0x2c3)+_0x50f3f6(-0xdb,-0xdf)+'tedAtMs']=Date[_0x50f3f6(_0x4260be._0x3df24c,-0x115)]());const _0x249ec6={};_0x249ec6[_0xff210(-_0x4260be._0x2a814a,0x4)+'unt']=_0xd3b370,this[_0x50f3f6(_0x4260be._0x25c5df,_0x4260be._0x304232)+_0x50f3f6(-_0x4260be._0x2fa3ac,_0x4260be._0x566e40)](_0x249ec6);if(_0x2699f8[_0x50f3f6(-_0x4260be._0x196fe7,-_0x4260be._0x23b253)](_0xd3b370,0x0))this[_0x50f3f6(0x23,_0x4260be._0x3a2401)+_0x50f3f6(_0x4260be._0x4e2f44,_0x4260be._0x57767e)+'t'](),this[_0x50f3f6(0x84,-_0x4260be._0x3a7db7)+_0x50f3f6(-_0x4260be._0x39e3c4,-0x201)+_0xff210(-0xc0,-0x18d)](_0xff210(-0x5b,-0x194)+_0xff210(-_0x4260be._0x3b922d,-0x106)+'o');else{this['cancelGa'+_0xff210(_0x4260be._0x4de2f8,0x1cf)+'eClose'](_0x50f3f6(-_0x4260be._0x146b39,-0x277)+_0x50f3f6(-_0x4260be._0x2bad7e,-_0x4260be._0x3aaf76)+'stored');shouldRecycleGatewayForFreshClient(_0x1fedb7,_0xd3b370,this[_0x50f3f6(_0x4260be._0x25aa29,_0x4260be._0x234d0f)+_0xff210(-0x118,0xb5)](),_0x5389e4)&&(this[_0xff210(-_0x4260be._0xf863a7,-0x4f)](_0xff210(_0x4260be._0x4f6dec,_0x4260be._0x3339fe)+'recycle\x20'+_0xff210(0x90,_0x4260be._0x3a02a6)+_0x50f3f6(-0xd6,-0x4)+'esh\x20clie'+_0xff210(-0x1cc,-_0x4260be._0x351ed9)+'d'),this[_0x50f3f6(-_0x4260be._0x1dd744,-_0x4260be._0x34f884)+'eway']());if(this[_0x50f3f6(_0x4260be._0x25aa29,0x344)+_0xff210(_0x4260be._0x1c5f4e,_0x4260be._0x316a16)]()){const _0x54d886={};_0x54d886[_0xff210(-0x2a2,-0x17d)+_0xff210(-_0x4260be._0x29873d,-0x18)]=!![],_0x54d886[_0x50f3f6(0x19b,0xa0)+'r']=null,this[_0xff210(0x35a,0x208)+_0xff210(-0x1c2,-_0x4260be._0x2d4ce9)](_0x54d886),this['log'](_0x50f3f6(_0x4260be._0x5042a1,0xf9)+'reuse\x20op'+_0xff210(-0x2ae,-0xe4)+_0x50f3f6(-0x225,-_0x4260be._0x2b1100)+_0x50f3f6(_0x4260be._0x4609fb,_0x4260be._0x3793f6)+this[_0xff210(-0x24e,-0x16f)+_0x50f3f6(0x1aa,_0x4260be._0x133c40)](this[_0x50f3f6(-_0x4260be._0x19dda5,-_0x4260be._0x2b00a7)+_0x50f3f6(-_0x4260be._0x1f92ee,-_0x4260be._0x1a1b10)+_0x50f3f6(-0x15c,-_0x4260be._0x2fb9b2)])+(_0x50f3f6(0x155,_0x4260be._0x595aeb)+_0xff210(0x175,0x8b)+'d=')+this[_0xff210(0x6b,-0xee)+'andshake'+'Started']);}this['ensureGa'+'tewayCon'+'nected']();}return;}function _0xff210(_0xca4645,_0x33ac29){return _0x431448(_0xca4645,_0x33ac29- -0x292);}if(_0x268da5===_0xff210(-0x2e7,-0x1a2)+_0xff210(_0x4260be._0x2b1100,-0x41)+_0x50f3f6(-0x1bf,-0x37)){const _0x45ca7f=(_0xff210(-_0x4260be._0x34f884,-_0x4260be._0x11ffc4)+'4')[_0xff210(-0xa6,-0x168)]('|');let _0x1f669d=0x0;while(!![]){switch(_0x45ca7f[_0x1f669d++]){case'0':this[_0xff210(-0x3f,0xd9)+_0xff210(_0x4260be._0x5ad10f,-0x131)+_0x50f3f6(-0x1e2,-0x3d6)]('client_d'+_0x50f3f6(-0x96,-0x8)+_0x50f3f6(-0x1bf,-_0x4260be._0xc01e3));continue;case'1':this[_0x50f3f6(-0x143,0x42)+_0x50f3f6(0x120,0x1e3)+_0xff210(_0x4260be._0x5317ee,-0x145)]=![];continue;case'2':this[_0xff210(_0x4260be._0x14dd89,_0x4260be._0x3b7b2d)+_0xff210(0x106,_0x4260be._0x187e4e)+'t']();continue;case'3':const _0xad0b51={};_0xad0b51[_0xff210(_0x4260be._0x12db0d,_0x4260be._0x16a1f4)+_0x50f3f6(-_0x4260be._0x3d9075,-0x2b5)]=0x0,this[_0x50f3f6(_0x4260be._0x2a1ea3,0x340)+_0x50f3f6(-_0x4260be._0x8b5d20,_0x4260be._0xd704ca)](_0xad0b51);continue;case'4':return;}break;}}}[_0x9ec63e(0xcb,0x20d)+_0x431448(0x1c2,0x2bf)+'tewayMes'+'sage'](_0x51e18a){const _0x440578={_0x287ef4:0x41,_0xb77b41:0x73,_0x3a4879:0x14c,_0x4ef046:0x1ea,_0x5b2cbc:0xa5,_0x325161:0x81,_0x507c2f:0x4f,_0x1c3f85:0x1db,_0x4cc84f:0x19,_0x103535:0x1b2,_0x14a6cb:0xe,_0xe4ab1e:0x4c,_0x528273:0x37c,_0x3c103b:0x2b9,_0x7fb4f:0x101,_0x3a697d:0x239,_0x2512dd:0x1ee,_0x512c1d:0x380,_0x47b1b1:0x2e2,_0x1d58fa:0x250,_0x23981b:0x1b5,_0x52a47e:0x1ee,_0x35bbae:0xee,_0x17188d:0xc7,_0x14a582:0x19d,_0x1078c4:0x27a,_0x4047cc:0x1c6,_0x53f928:0x26a,_0x44d345:0x196,_0x546d29:0x47,_0x4ee9e8:0x1a6,_0x221339:0xa,_0x124e76:0xe3,_0x15d23e:0x49,_0x1f1b86:0xf1},_0x5a0047={_0x33e146:0x39d},_0x2cf66d={};function _0x4a4d97(_0x20790d,_0x54fc04){return _0x431448(_0x54fc04,_0x20790d- -0x292);}_0x2cf66d[_0x2767e9(0x4f,-_0x440578._0x287ef4)]=function(_0x566ee1,_0x66ae3b){return _0x566ee1!==_0x66ae3b;};function _0x2767e9(_0x54c52e,_0x12ada9){return _0x431448(_0x54c52e,_0x12ada9- -_0x5a0047._0x33e146);}const _0x37bed5=_0x2cf66d,_0x3f5141=_0x51e18a[_0x4a4d97(0x3d,_0x440578._0xb77b41)]==='text'&&isConnectHandshakeRequest(_0x51e18a['text']),_0x2945c5=this[_0x2767e9(-0x257,-0x9d)+_0x2767e9(-_0x440578._0x3a4879,0x23)];if(!_0x2945c5||_0x37bed5['yyNNA'](_0x2945c5[_0x2767e9(0x1d,-_0x440578._0x4ef046)+'te'],_0x1f8130[_0x2767e9(0x57,0x87)])){this[_0x2767e9(-0xcb,-0x1ab)+'tewayCon'+_0x2767e9(0x6f,-_0x440578._0x5b2cbc)]();if(shouldDropStaleConnectAfterGatewayReopen(Boolean(_0x2945c5&&_0x2945c5[_0x4a4d97(-0xdf,_0x440578._0x325161)+'te']===_0x1f8130[_0x4a4d97(0x192,0x307)]),_0x3f5141)){this[_0x4a4d97(-_0x440578._0x507c2f,-0x24)]('stale\x20co'+_0x2767e9(-_0x440578._0x1c3f85,-0xe9)+_0x4a4d97(_0x440578._0x4cc84f,0x1b4)+_0x2767e9(_0x440578._0x103535,-_0x440578._0x14a6cb)+'way\x20reop'+_0x4a4d97(-_0x440578._0xe4ab1e,0x189)+_0x2767e9(-0x232,-0x9c)+_0x2767e9(-_0x440578._0x528273,-_0x440578._0x3c103b)+_0x4a4d97(-0x2,-_0x440578._0x7fb4f));return;}this[_0x2767e9(-_0x440578._0x3a697d,-0x187)+_0x4a4d97(-_0x440578._0x2512dd,-_0x440578._0x512c1d)+_0x2767e9(-0x2dd,-0xfb)+'e'](_0x51e18a);return;}if(!this[_0x2767e9(-_0x440578._0x47b1b1,-0x1f9)+'andshake'+_0x2767e9(-0x18c,-_0x440578._0x1d58fa)]){if(!_0x3f5141){this[_0x2767e9(-_0x440578._0x23981b,-0x187)+_0x4a4d97(-_0x440578._0x52a47e,-0xce)+'ayMessag'+'e'](_0x51e18a);return;}this[_0x4a4d97(-_0x440578._0x35bbae,-_0x440578._0x17188d)+'andshake'+'Started']=!![],this[_0x4a4d97(-0x4f,-_0x440578._0x14a582)](_0x4a4d97(0xa3,_0x440578._0x1078c4)+_0x2767e9(-_0x440578._0x4047cc,-_0x440578._0x53f928)+'e\x20starte'+_0x4a4d97(0x1a7,_0x440578._0x44d345)+'='+this[_0x4a4d97(_0x440578._0x546d29,0x131)+'atewayMe'+_0x2767e9(_0x440578._0x4ee9e8,-_0x440578._0x221339)][_0x2767e9(-0x84,-0x119)]);}this[_0x4a4d97(_0x440578._0x124e76,_0x440578._0x15d23e)+_0x2767e9(-0x85,_0x440578._0x1f1b86)](_0x51e18a);}[_0x431448(0x265,0x1f2)+_0x9ec63e(0x3bb,0x534)+_0x9ec63e(0x29e,0x409)](){const _0x1072a6={_0x4dbef1:0x183,_0x41195e:0x80,_0x2b7931:0x74,_0x2361c4:0x1df,_0x3eed94:0x154,_0x24b379:0x168,_0x30a38d:0x19f,_0x32633d:0x393,_0x2be737:0x1c2,_0x154443:0x22b,_0x191b5a:0x2b2,_0x2eb336:0x1c5,_0x20fd41:0x2dd,_0x11b42b:0x235,_0x3abf0e:0x18d,_0x10f061:0x4f7,_0xfd65df:0x26,_0x1ca9e2:0x4bb,_0x30b20c:0x128,_0x574787:0x8,_0x1d575b:0x541,_0x282efc:0xb5,_0x5235d7:0x7c,_0x129971:0x14b,_0x5d769e:0x25f},_0xe66f02={_0x15648b:0x41b,_0x57fd7e:0x4db,_0x161e27:0x320,_0x3e2bee:0x47,_0xa90418:0x1e7,_0x4c7cf8:0x107,_0x38e95d:0x2bf,_0x5a6781:0x35d,_0x51c4d3:0x14e,_0x456938:0x37c,_0x535f8c:0x5b5,_0x14430e:0x58e,_0x3c5d7d:0x70,_0x15bda5:0x45,_0x422c7c:0x1c9,_0x7147b8:0x5e9,_0x40ce8f:0xc7,_0x13bd85:0x183,_0x2d6fdb:0x194,_0x551114:0x93,_0x378f5e:0x2c,_0x6666c6:0x194,_0x47a1cb:0x42d,_0xdae6b6:0x241,_0x375030:0x4bb,_0xdf2726:0x1e1,_0x103729:0x23e,_0x395a00:0xaa,_0x5eeb10:0x61,_0x309e96:0xad,_0x416d32:0x68d,_0x161b88:0xb2,_0x4b958a:0x1a3},_0x14c7bd={_0x1f4dc9:0x3b3},_0x6ba5a9={_0x4aeb9c:0x39b,_0x245646:0x3b7,_0x567c61:0x7a},_0x28ebbc={_0x5d60d8:0x213,_0x27b4de:0x65},_0x25e481={_0x5b89ea:0x569,_0x5e4695:0x549,_0xfa1283:0x33c,_0x11e866:0x1a8,_0x2d3cb9:0x36e,_0x5e5074:0x703,_0x59c6fb:0x1b9,_0xf504a0:0x70,_0x590847:0x6c7,_0x5cb15b:0x52d,_0x2a30f4:0x46b,_0x4e175c:0x576,_0x37c3fc:0x49e,_0x405b47:0x570,_0x273545:0x59d,_0x525078:0x53f,_0x2d0fda:0x5c9,_0xea4b90:0x631,_0x22c9a6:0x66a,_0x23b5e6:0x481,_0x4f7fea:0x569,_0x27dd29:0x41f,_0x3307a2:0x271,_0x59c076:0x495,_0x106a7a:0x63c,_0x6c8e64:0x210,_0x5e66d0:0x771,_0x1be6de:0x8bb,_0x1762bc:0x441,_0x149d1d:0x217},_0x1b64a6={_0x167e18:0x262},_0x238950={_0x4e2f58:0x9a};if(this[_0x491aa3(-0x2b,0xcb)]||!this[_0x491aa3(0xcf,0x204)+'pen']()||this[_0x491aa3(-_0x1072a6._0x4dbef1,0x38)+_0x491aa3(-_0x1072a6._0x41195e,-_0x1072a6._0x2b7931)+'g']||this[_0x491aa3(_0x1072a6._0x2361c4,0x28a)+_0x491aa3(0xaf,_0x1072a6._0x3eed94)]()||!this[_0x491aa3(-0x158,-_0x1072a6._0x24b379)+_0x491aa3(-0x68,-0x1b6)]())return;function _0x3365a4(_0xa0b998,_0x2bd5a6){return _0x431448(_0x2bd5a6,_0xa0b998-_0x238950._0x4e2f58);}this[_0x3365a4(0x334,0x455)+_0x491aa3(0x1c9,0x1f1)+_0x3365a4(0x3f9,0x488)](_0x491aa3(_0x1072a6._0x30a38d,0x125)+'reconnec'+_0x3365a4(_0x1072a6._0x32633d,0x2ba)+_0x3365a4(_0x1072a6._0x2be737,_0x1072a6._0x154443)),this['gatewayC'+_0x3365a4(_0x1072a6._0x191b5a,_0x1072a6._0x2eb336)+'g']=!![],this[_0x3365a4(_0x1072a6._0x20fd41,_0x1072a6._0x11b42b)](_0x491aa3(0x9d,-0x131)+_0x3365a4(0x152,_0x1072a6._0x3abf0e)+_0x491aa3(-0xe9,-0x141)+'l='+this[_0x3365a4(0x525,0x498)][_0x3365a4(_0x1072a6._0x10f061,0x5a6)+'rl']);const _0x594d1e={};_0x594d1e[_0x491aa3(0x100,_0x1072a6._0xfd65df)+'ad']=0x19*0x400*0x400;function _0x491aa3(_0x2f2fd1,_0x4cf59c){return _0x431448(_0x4cf59c,_0x2f2fd1- -0x298);}const _0x47f4bd=new _0x1f8130(this['options']['gatewayU'+'rl'],_0x594d1e);this[_0x3365a4(0x39a,_0x1072a6._0x1ca9e2)+_0x491aa3(_0x1072a6._0x30b20c,-_0x1072a6._0x574787)]=_0x47f4bd,_0x47f4bd[_0x3365a4(0x47d,_0x1072a6._0x1d575b)]('open',()=>{if(this[_0x587cbe(_0x25e481._0x5b89ea,_0x25e481._0x5e4695)]||this['gatewayS'+'ocket']!==_0x47f4bd){_0x47f4bd[_0x192a13(_0x25e481._0xfa1283,0x37a)]();return;}this['gatewayC'+'onnectin'+'g']=![],this[_0x192a13(_0x25e481._0x11e866,_0x25e481._0x2d3cb9)+_0x587cbe(_0x25e481._0x5e5074,0x694)+_0x192a13(0x151,_0x25e481._0x59c6fb)]=![];function _0x587cbe(_0x3d76fa,_0xff14eb){return _0x3365a4(_0x3d76fa-_0x1b64a6._0x167e18,_0xff14eb);}this[_0x587cbe(0x411,0x482)+'onnected'+_0x192a13(0x18f,-_0x25e481._0xf504a0)]=Date[_0x587cbe(_0x25e481._0x590847,_0x25e481._0x5cb15b)]();const _0x252071={};_0x252071[_0x587cbe(0x411,_0x25e481._0x2a30f4)+_0x587cbe(_0x25e481._0x4e175c,0x5d1)]=!![];function _0x192a13(_0x134268,_0x14afba){return _0x3365a4(_0x134268- -0x96,_0x14afba);}_0x252071['lastErro'+'r']=null,this[_0x192a13(_0x25e481._0x37c3fc,0x56d)+_0x587cbe(_0x25e481._0x405b47,_0x25e481._0x273545)](_0x252071),this[_0x587cbe(_0x25e481._0x525078,_0x25e481._0x2d0fda)](_0x587cbe(_0x25e481._0xea4b90,0x5bb)+_0x192a13(0x17c,0x211)+_0x587cbe(_0x25e481._0x22c9a6,0x583)+_0x192a13(0x182,0x1e1)+_0x587cbe(_0x25e481._0x23b5e6,_0x25e481._0x4f7fea)+this[_0x587cbe(_0x25e481._0x27dd29,_0x25e481._0x3307a2)+_0x192a13(_0x25e481._0x59c076,_0x25e481._0x106a7a)](this['clientDe'+_0x192a13(_0x25e481._0x6c8e64,0x3ee)+_0x587cbe(0x6a9,0x6f2)])),this[_0x587cbe(_0x25e481._0x5e66d0,_0x25e481._0x1be6de)+_0x587cbe(_0x25e481._0x1762bc,0x484)+_0x192a13(0x1b0,_0x25e481._0x149d1d)+'ges']();}),_0x47f4bd['on'](_0x491aa3(_0x1072a6._0x282efc,_0x1072a6._0x5235d7),(_0x551052,_0x57b634)=>{const _0xbf9c83={_0x48629b:0xb};function _0x5a865b(_0x1eae45,_0x35a8e3){return _0x3365a4(_0x35a8e3-_0xbf9c83._0x48629b,_0x1eae45);}function _0x130459(_0x43f86b,_0x5efef2){return _0x3365a4(_0x5efef2- -0x36a,_0x43f86b);}this['handleGa'+_0x130459(-0x3f,-_0x28ebbc._0x5d60d8)+_0x5a865b(_0x28ebbc._0x27b4de,0x1c9)](_0x551052,_0x57b634);}),_0x47f4bd['once']('error',_0x77553a=>{const _0x28fefc={_0x1242c2:0x139},_0x2c084e={_0x1cf0b4:0x18};function _0x15b596(_0x4f43ff,_0x3d414c){return _0x3365a4(_0x3d414c- -_0x2c084e._0x1cf0b4,_0x4f43ff);}function _0x3197ef(_0x10cdc9,_0x4c6b74){return _0x3365a4(_0x10cdc9- -_0x28fefc._0x1242c2,_0x4c6b74);}this[_0x3197ef(0x1a4,_0x6ba5a9._0x4aeb9c)](_0x15b596(0x397,_0x6ba5a9._0x245646)+_0x3197ef(_0x6ba5a9._0x567c61,0x162)+String(_0x77553a));}),_0x47f4bd[_0x491aa3(_0x1072a6._0x129971,_0x1072a6._0x5d769e)](_0x491aa3(0xa0,0x28d),(_0x3b49bd,_0x15adf6)=>{this[_0x2bd2ee(_0xe66f02._0x15648b,0x4b4)+_0x2bd2ee(_0xe66f02._0x57fd7e,_0xe66f02._0x161e27)]===_0x47f4bd&&(this[_0x47987a(0x110,_0xe66f02._0x3e2bee)+_0x47987a(_0xe66f02._0xa90418,_0xe66f02._0x4c7cf8)]=null);function _0x47987a(_0xb9dba4,_0x3e3e51){return _0x491aa3(_0x3e3e51- -0x21,_0xb9dba4);}this['gatewayC'+_0x47987a(0xc3,-0xa1)+'g']=![],this[_0x2bd2ee(_0xe66f02._0x38e95d,_0xe66f02._0x5a6781)+_0x47987a(0x206,_0xe66f02._0x51c4d3)+_0x2bd2ee(0x268,_0xe66f02._0x456938)]=![],this['gatewayC'+'onnected'+'AtMs']=null,this[_0x2bd2ee(_0xe66f02._0x535f8c,_0xe66f02._0x14430e)+_0x47987a(_0xe66f02._0x3c5d7d,-_0xe66f02._0x15bda5)]({'gatewayConnected':![],'lastError':_0x3b49bd===0x3e8?this['snapshot'][_0x47987a(0x30,_0xe66f02._0x422c7c)+'r']:_0x2bd2ee(0x450,_0xe66f02._0x7147b8)+_0x47987a(_0xe66f02._0x40ce8f,0x9b)+(_0x15adf6[_0x47987a(_0xe66f02._0x13bd85,_0xe66f02._0x2d6fdb)]()||_0x3b49bd)}),this[_0x47987a(-0x1f1,-0x76)]('gateway\x20'+'disconne'+_0x47987a(0x1e,_0xe66f02._0x551114)+'e='+_0x3b49bd+_0x2bd2ee(0x29c,0xb0)+(_0x15adf6[_0x47987a(_0xe66f02._0x378f5e,_0xe66f02._0x6666c6)]()||_0x47987a(-0xe8,-0xc9))+(_0x2bd2ee(_0xe66f02._0x47a1cb,_0xe66f02._0xdae6b6)+_0x2bd2ee(_0xe66f02._0x375030,0x619)+_0x47987a(-0x3b7,-_0xe66f02._0xdf2726))+this[_0x2bd2ee(_0xe66f02._0x103729,_0xe66f02._0x395a00)+'ince'](this['clientDe'+_0x47987a(_0xe66f02._0x5eeb10,-_0xe66f02._0x309e96)+_0x2bd2ee(0x4c8,_0xe66f02._0x416d32)]));function _0x2bd2ee(_0x9754d9,_0xd781ab){return _0x491aa3(_0x9754d9-_0x14c7bd._0x1f4dc9,_0xd781ab);}this[_0x47987a(0x290,_0xe66f02._0x161b88)+_0x47987a(-0x157,-0xa4)+_0x47987a(0x176,_0xe66f02._0x4b958a)]();});}['handleGa'+_0x431448(0xe4,0xbd)+_0x9ec63e(0xca,0xbd)](_0x617f2,_0xb72e92){const _0x3ecf87={_0x1919c7:0x10a,_0x33792f:0x237,_0xb6b90:0x6ac,_0x28571e:0x631,_0x475c9b:0x3e2,_0x2caf96:0x2b4,_0x98b067:0x53,_0x541c94:0x684,_0x309161:0x4f9,_0x46faa0:0x68f,_0x49f2ed:0x307,_0x524c31:0x409,_0x1ac570:0x429,_0x3f2d60:0x388,_0x41608f:0x304,_0x273998:0x24e,_0x95e12b:0x125},_0xcb8d3b={_0x3bb8fa:0x2c3};function _0x1d8873(_0x449915,_0x1079ce){return _0x431448(_0x1079ce,_0x449915- -0x50);}const _0x5a0772={'HXnWe':function(_0x3fdd01,_0x28bfca){return _0x3fdd01!==_0x28bfca;},'PVtma':function(_0x2c65eb,_0xd003f8){return _0x2c65eb(_0xd003f8);}},_0x1b8929=this[_0x1d8873(_0x3ecf87._0x1919c7,_0x3ecf87._0x33792f)+_0x2947f0(_0x3ecf87._0xb6b90,_0x3ecf87._0x28571e)];if(!_0x1b8929||_0x5a0772[_0x1d8873(0x3f0,_0x3ecf87._0x475c9b)](_0x1b8929[_0x1d8873(0x163,0x4d)+'te'],_0x1f8130[_0x1d8873(0x3d4,_0x3ecf87._0x2caf96)]))return;if(_0xb72e92){_0x1b8929['send'](_0x5a0772[_0x2947f0(0x366,0x18c)](normalizeBinary,_0x617f2));return;}const _0x3a08b4=_0x5a0772[_0x1d8873(_0x3ecf87._0x98b067,-0xe2)](normalizeText,_0x617f2);if(_0x3a08b4==null)return;const _0x300ca8=parsePairingRequestFromError(_0x3a08b4);_0x300ca8&&this['addPendi'+'ngPairRe'+_0x2947f0(_0x3ecf87._0x541c94,0x59d)](_0x300ca8);function _0x2947f0(_0x1fee49,_0x4b0e1a){return _0x431448(_0x4b0e1a,_0x1fee49-_0xcb8d3b._0x3bb8fa);}const _0x62d829=parsePairResolvedEvent(_0x3a08b4);_0x62d829&&this[_0x2947f0(_0x3ecf87._0x309161,_0x3ecf87._0x46faa0)+_0x1d8873(_0x3ecf87._0x49f2ed,0x22c)+_0x1d8873(_0x3ecf87._0x524c31,_0x3ecf87._0x1ac570)](_0x62d829[_0x2947f0(_0x3ecf87._0x3f2d60,_0x3ecf87._0x41608f)+'d'],_0x62d829['decision']),_0x1b8929[_0x1d8873(_0x3ecf87._0x273998,_0x3ecf87._0x95e12b)](_0x3a08b4);}['flushPen'+'dingGate'+_0x9ec63e(0x152,0xcc)+_0x9ec63e(0x19c,0xe0)](){const _0xf3fce3={_0x3c47c8:0x175,_0x2f8d08:0x208,_0x17f8f9:0xb5,_0x566153:0x93,_0x220e46:0x12b,_0x1881bc:0x57,_0xbf1dd2:0x55,_0x15f1ad:0xda,_0x1ae948:0xd4,_0x3ab5a3:0x193,_0x1d80b9:0x19b,_0x24b3e5:0x11b,_0x4876ad:0x90},_0x22ce34={_0x40db52:0x131},_0x4a79fb={};_0x4a79fb['yCBcT']=_0x5c6dc6(0x19a,-0x11);function _0x5c6dc6(_0x2f247a,_0x575afa){return _0x9ec63e(_0x575afa- -_0x22ce34._0x40db52,_0x2f247a);}const _0x7de3c6=_0x4a79fb,_0x241977=this[_0x5c6dc6(-0x28,_0xf3fce3._0x3c47c8)+_0x5c6dc6(0x3a1,0x235)];if(!_0x241977||_0x241977[_0x500389(-0xc5,0x3f)+'te']!==_0x1f8130['OPEN'])return;const _0x2cfb28=[],_0x34d693=[...this['pendingG'+_0x5c6dc6(0xc0,0x38)+_0x5c6dc6(0x14e,_0xf3fce3._0x2f8d08)]];this[_0x5c6dc6(0x52,0x14e)+_0x500389(-_0xf3fce3._0x17f8f9,0x137)+_0x500389(0x11b,-_0xf3fce3._0x566153)]=[];for(const _0x576c1b of _0x34d693){if(!this[_0x5c6dc6(-0x165,0x19)+'andshake'+_0x500389(-_0xf3fce3._0x220e46,-0xb4)]){if(_0x576c1b[_0x500389(_0xf3fce3._0x1881bc,_0xf3fce3._0xbf1dd2)]!==_0x7de3c6[_0x500389(-0x168,0x29)]||!isConnectHandshakeRequest(_0x576c1b[_0x500389(-0xfe,_0xf3fce3._0x15f1ad)])){_0x2cfb28[_0x500389(-0xa3,-0x18c)](_0x576c1b);continue;}this[_0x500389(-_0xf3fce3._0x1ae948,0x70)+_0x5c6dc6(0xec,0x27c)+'Started']=!![];}this[_0x5c6dc6(_0xf3fce3._0x3ab5a3,0x1ea)+_0x500389(0x216,_0xf3fce3._0x1d80b9)](_0x576c1b);}function _0x500389(_0xd4e299,_0x293147){return _0x9ec63e(_0xd4e299- -0x21e,_0x293147);}this[_0x500389(0x61,0x192)+_0x500389(-0xb5,_0xf3fce3._0x17f8f9)+_0x500389(_0xf3fce3._0x24b3e5,-_0xf3fce3._0x4876ad)]=_0x2cfb28;}[_0x9ec63e(0x31b,0x1b5)+'teway'](_0x1c356c){const _0x3bd491={_0x4e9962:0x28f,_0x48e262:0x3c1,_0x13e616:0x17f,_0xd21f93:0x3d,_0x33477c:0x1a5,_0x3c5bed:0x172,_0x1bdc24:0xb4,_0x2d6d51:0x27f,_0x1e7522:0x227,_0x288cc5:0x41b,_0x1f7023:0x209,_0x3cc96c:0xaf,_0x188619:0x171,_0x55bc2d:0x14a,_0x21a803:0x245,_0xb81d49:0xe2,_0x280971:0xc5},_0x181c9d={_0x2e4b9e:0x17},_0x1430d8={_0x4c3142:0x329},_0xadc742={'NsEco':_0x4a33df(0x109,0x1b),'kTrbp':function(_0x4ecfa5,_0x1395b1,_0x277043){return _0x4ecfa5(_0x1395b1,_0x277043);}};function _0x5d5e69(_0x237f89,_0x57a55c){return _0x9ec63e(_0x57a55c- -_0x1430d8._0x4c3142,_0x237f89);}const _0x4058f2=this[_0x4a33df(_0x3bd491._0x4e9962,_0x3bd491._0x48e262)+_0x5d5e69(_0x3bd491._0x13e616,_0x3bd491._0xd21f93)];if(!_0x4058f2||_0x4058f2[_0x4a33df(0x142,0x17c)+'te']!==_0x1f8130[_0x4a33df(0x3b3,0x40a)]){this[_0x4a33df(_0x3bd491._0x33477c,0x15c)+_0x4a33df(0x33,0x14)+_0x5d5e69(-0x16d,-0xe1)+'e'](_0x1c356c);return;}function _0x4a33df(_0x23cd7e,_0x2fa444){return _0x9ec63e(_0x23cd7e- -_0x181c9d._0x2e4b9e,_0x2fa444);}if(_0x1c356c[_0x5d5e69(-_0x3bd491._0x3c5bed,-_0x3bd491._0x1bdc24)]===_0xadc742[_0x4a33df(_0x3bd491._0x2d6d51,0x1fc)]){const _0x50a275=_0xadc742[_0x4a33df(_0x3bd491._0x1e7522,_0x3bd491._0x288cc5)](patchConnectRequestGatewayAuth,_0x1c356c[_0x5d5e69(-0x185,-_0x3bd491._0x1f7023)],readOpenClawInfo());_0x50a275['injected']&&this[_0x5d5e69(0x8f,-0x140)]('gateway\x20'+_0x4a33df(0x47,-0x61)+_0x5d5e69(-_0x3bd491._0x3cc96c,-0x264)+_0x5d5e69(-_0x3bd491._0x188619,-_0x3bd491._0x55bc2d)+'e=passwo'+'rd');_0x4058f2[_0x5d5e69(-0x6b,-0xe5)](_0x50a275[_0x4a33df(0x109,_0x3bd491._0x21a803)]);return;}_0x4058f2['send'](_0x1c356c[_0x5d5e69(-_0x3bd491._0xb81d49,-_0x3bd491._0x280971)]);}[_0x9ec63e(0x3b,0x23c)+_0x9ec63e(0x2b6,0x118)+'st'](_0x32675d,_0x173242){const _0x4e5a86={_0x568d13:0x672,_0x297696:0x5dd},_0x3bab0f={_0x3f106d:0x2d1},_0x1049b1={_0x150a19:0x153};function _0x535348(_0x1e7965,_0x2d286e){return _0x9ec63e(_0x1e7965-_0x1049b1._0x150a19,_0x2d286e);}function _0x41ae1c(_0x4ff8ce,_0x391f6f){return _0x9ec63e(_0x391f6f-_0x3bab0f._0x3f106d,_0x4ff8ce);}const _0x5c866c={'meIkM':function(_0x4b9689){return _0x4b9689();}},_0xf2ebe6=JSON[_0x41ae1c(_0x4e5a86._0x568d13,0x696)+'y']({'type':_0x535348(0x4bb,0x5d7),'id':_0x41ae1c(_0x4e5a86._0x297696,0x5e4)+_0x5c866c[_0x41ae1c(0x546,0x612)](_0x452365),'method':_0x32675d,'params':_0x173242}),_0x45df53={};_0x45df53['kind']=_0x535348(0x273,0xef),_0x45df53[_0x535348(0x273,0x342)]=_0xf2ebe6,this['forwardO'+_0x41ae1c(0x696,0x536)+'tewayMes'+_0x535348(0x21d,0x28)](_0x45df53);}[_0x431448(0x28,0x212)+'eway'](){const _0x222ab1={_0x306d22:0x7d8,_0x267715:0x7df,_0x1e9ac0:0x6d6,_0x12a989:0x1f8,_0x273a1c:0x3b7,_0x223eb7:0x477,_0x5213e7:0x577,_0x341a7b:0x4c1,_0x2adf7b:0x48c,_0x101cc7:0x242};this['cancelGa'+_0x241f1f(0x601,_0x222ab1._0x306d22)+_0x241f1f(_0x222ab1._0x267715,_0x222ab1._0x1e9ac0)](),this[_0x593f88(_0x222ab1._0x12a989,_0x222ab1._0x273a1c)+_0x593f88(0x445,_0x222ab1._0x223eb7)]?.[_0x593f88(_0x222ab1._0x5213e7,0x3ef)]();function _0x593f88(_0x4c5cea,_0x2a572c){return _0x431448(_0x4c5cea,_0x2a572c-0xb7);}function _0x241f1f(_0x410e66,_0x42054d){return _0x431448(_0x410e66,_0x42054d-0x377);}this['gatewayS'+'ocket']=null,this[_0x593f88(0x191,0x1cc)+'onnectin'+'g']=![],this['gatewayH'+_0x241f1f(0x826,0x77e)+_0x593f88(0x392,0x204)]=![],this[_0x241f1f(_0x222ab1._0x341a7b,_0x222ab1._0x2adf7b)+_0x593f88(0x39f,0x331)+_0x593f88(0x1bb,_0x222ab1._0x101cc7)]=null;}[_0x431448(0x48e,0x36b)+_0x431448(-0x50,0x161)+_0x9ec63e(0xab,0x1cf)](_0x319e88){const _0xca1434={_0x52c56b:0x36c,_0x38b140:0x63a,_0x31bbba:0x4ee,_0x33d96e:0x535,_0x4d3a88:0x58c,_0x1e4032:0x295,_0x572ab0:0x450,_0x45dca8:0x17f,_0x3eeaf9:0x138,_0x1d38b4:0x1eb,_0x46432f:0x230,_0x491904:0x103,_0x308338:0x1d4,_0x151a7a:0x655,_0x566e7b:0x1cd,_0x23eefc:0x3cf,_0x51b95c:0x3e5,_0x39dea3:0x396,_0x2adbac:0x116,_0x2af504:0x369,_0x552d94:0x45c,_0x35fc32:0x39c,_0xb7423d:0x320,_0xcc8722:0x13,_0x4d7856:0x1ff,_0x1e259f:0x550,_0x4e205b:0x825,_0x4b1eb7:0x11d,_0x12f9f3:0x18e,_0x2badce:0x329,_0x5d604e:0x274,_0x7483aa:0x402,_0x241d4e:0x447,_0x50a3e5:0x2f5,_0x384006:0x26f,_0x594596:0x45e,_0x4f9ffb:0x38e,_0x44926b:0xda,_0x237646:0x224,_0x86189e:0x197,_0x1318f8:0x263,_0x1a936c:0x221,_0x3fa55f:0x826,_0x4028dc:0x147},_0x59c768={_0x3fe99d:0x25d,_0x41f6cf:0x1cb,_0x41b2ca:0x396,_0x3500ba:0x3ed,_0x49afb3:0xdc,_0x555f96:0x1dd,_0x13ce87:0x187,_0x3a3c06:0x73,_0x38f442:0x38e,_0x3513d0:0x103,_0x22753a:0x19c,_0x10bad7:0x246,_0x3ecdf9:0x135,_0x5b4804:0x9f,_0x25b8d9:0x1b9,_0x3f704d:0x4a7,_0x3e0e1f:0x3da,_0x1b9ec4:0x196,_0x27e855:0x49b,_0x2625c9:0xe2,_0x4a23c2:0xcd},_0x4ac7ae={_0x2794fc:0x21b},_0x29a155={_0xc70741:0x44};this[_0x5625be(0x25b,_0xca1434._0x52c56b)+_0x970864(_0xca1434._0x38b140,0x5f6)+'r']&&(clearTimeout(this[_0x970864(_0xca1434._0x31bbba,0x4ba)+_0x5625be(0x397,0x267)+'r']),this[_0x970864(_0xca1434._0x33d96e,0x4ba)+_0x970864(_0xca1434._0x4d3a88,0x5f6)+'r']=null);this[_0x5625be(_0xca1434._0x1e4032,_0xca1434._0x572ab0)+_0x5625be(_0xca1434._0x45dca8,_0xca1434._0x3eeaf9)+_0x5625be(0x34f,0x33b)]=[];const _0x4985e8={};_0x4985e8['clientCo'+_0x5625be(_0xca1434._0x1d38b4,-0x18)]=0x0,this['updateSn'+_0x5625be(_0xca1434._0x46432f,_0xca1434._0x491904)](_0x4985e8);if(!this[_0x5625be(0x433,0x49a)+'yOpen']()&&!this['gatewayC'+_0x5625be(_0xca1434._0x308338,0x12a)+'g']){this['log']('gateway\x20'+_0x970864(0x471,_0xca1434._0x151a7a)+_0x970864(0x373,0x2d9)+_0x5625be(0x1a0,_0xca1434._0x566e7b)+_0x5625be(_0xca1434._0x23eefc,_0xca1434._0x51b95c)+'n='+_0x319e88),this[_0x970864(0x429,_0xca1434._0x39dea3)+_0x5625be(0x1c8,_0xca1434._0x2adbac)+_0x5625be(_0xca1434._0x2af504,0x2e5)]=null;return;}function _0x5625be(_0x1f10b7,_0x3b0a81){return _0x431448(_0x3b0a81,_0x1f10b7- -_0x29a155._0xc70741);}if(this[_0x970864(0x2b4,_0xca1434._0x552d94)+_0x970864(_0xca1434._0x35fc32,_0xca1434._0xb7423d)+_0x5625be(0x98,_0xca1434._0xcc8722)]){this[_0x5625be(_0xca1434._0x4d7856,0x94)](_0x970864(0x4f2,_0xca1434._0x1e259f)+_0x970864(_0xca1434._0x4e205b,0x6b9)+_0x970864(_0xca1434._0x4b1eb7,0x2cb)+_0x970864(_0xca1434._0x12f9f3,_0xca1434._0x2badce)+'uled\x20rea'+_0x970864(_0xca1434._0x5d604e,_0xca1434._0x7483aa)+_0x319e88);return;}function _0x970864(_0x3da4f8,_0x303fb5){return _0x431448(_0x3da4f8,_0x303fb5-_0x4ac7ae._0x2794fc);}const _0x4506b0=this[_0x5625be(_0xca1434._0x241d4e,0x39d)][_0x5625be(0x1fd,_0xca1434._0x50a3e5)+_0x5625be(0x396,_0xca1434._0x384006)+_0x970864(0x623,0x68d)+_0x970864(0x793,0x694)]??GATEWAY_IDLE_DISCONNECT_DELAY_MS;this[_0x970864(0x503,_0xca1434._0x594596)](_0x970864(0x42b,0x550)+'idle\x20clo'+_0x5625be(_0xca1434._0x4f9ffb,0x39d)+_0x5625be(0x2e4,0x13a)+'ayMs='+_0x4506b0+_0x970864(0x412,0x39c)+_0x319e88+(_0x5625be(_0xca1434._0x44926b,0x2e1)+_0x5625be(_0xca1434._0x237646,_0xca1434._0x86189e)+_0x5625be(_0xca1434._0x1318f8,0x399))+this[_0x970864(_0xca1434._0x1a936c,0x33e)+_0x970864(_0xca1434._0x3fa55f,0x6ac)](this['gatewayC'+_0x5625be(0x236,0x6c)+_0x5625be(_0xca1434._0x4028dc,0x3)])),this['gatewayI'+'dleClose'+'Timer']=setTimeout(()=>{this[_0x14a8ed(_0x59c768._0x3fe99d,_0x59c768._0x41f6cf)+'dleClose'+_0x40adb5(0x31e,0x242)]=null;if(this['hasGatew'+_0x40adb5(0x595,_0x59c768._0x41b2ca)]()){this[_0x40adb5(0x4e4,0x3a9)](_0x14a8ed(_0x59c768._0x3500ba,0x2bf)+_0x40adb5(0x7f7,0x604)+_0x14a8ed(0x1eb,_0x59c768._0x49afb3)+_0x14a8ed(_0x59c768._0x555f96,_0x59c768._0x13ce87)+_0x14a8ed(-0x17,_0x59c768._0x3a3c06)+_0x14a8ed(0x18f,_0x59c768._0x38f442)+_0x14a8ed(_0x59c768._0x3513d0,0xb3)+'d');return;}this[_0x14a8ed(0x103,_0x59c768._0x22753a)+_0x14a8ed(_0x59c768._0x10bad7,_0x59c768._0x3ecdf9)]();const _0x2001e4={};_0x2001e4[_0x14a8ed(0x29b,_0x59c768._0x5b4804)+_0x14a8ed(0x14c,0x204)]=![];function _0x14a8ed(_0x2ba46f,_0xaff60a){return _0x5625be(_0xaff60a- -0x32,_0x2ba46f);}_0x2001e4[_0x14a8ed(0xe6,0x220)+_0x14a8ed(0x265,_0x59c768._0x25b8d9)]=0x0,this[_0x14a8ed(0x334,0x424)+_0x40adb5(_0x59c768._0x3f704d,_0x59c768._0x3e0e1f)](_0x2001e4);function _0x40adb5(_0x1cc9d8,_0x16235e){return _0x5625be(_0x16235e-0x1aa,_0x1cc9d8);}this['clientDe'+_0x14a8ed(0x3c,_0x59c768._0x1b9ec4)+'tedAtMs']=null,this[_0x40adb5(0x59a,0x3a9)](_0x40adb5(0x3e1,_0x59c768._0x27e855)+_0x14a8ed(_0x59c768._0x2625c9,0x1af)+_0x14a8ed(0x42,_0x59c768._0x4a23c2)+'e\x20delay\x20'+'reason='+_0x319e88);},_0x4506b0);}[_0x9ec63e(0x240,0x1e6)+'tewayIdl'+_0x9ec63e(0x305,0x4a1)](_0x27acd6){const _0x4e6642={_0x4181ca:0x561,_0x574919:0x3aa,_0x7d66a3:0x28a,_0x337889:0x40e,_0x499699:0x4d0,_0x1ecc29:0x2c9,_0x117bfb:0x4d2,_0x1c3ddd:0x503,_0x33955e:0x56e,_0x4f59b6:0x4cd,_0xde370f:0x413,_0x3a0db0:0x3fe,_0x444087:0x50a,_0x276c78:0x31b},_0x4ee308={_0x56ff67:0x28f};if(!this[_0x5235d6(0x4d0,_0x4e6642._0x4181ca)+_0x5235d6(0x394,0x323)+_0x167614(0x315,0x4c0)])return;function _0x167614(_0x1dbd74,_0x5a705a){return _0x431448(_0x5a705a,_0x1dbd74-0x239);}clearTimeout(this[_0x5235d6(0x4d0,_0x4e6642._0x574919)+_0x167614(0x33e,_0x4e6642._0x7d66a3)+_0x5235d6(0x36b,_0x4e6642._0x337889)]),this[_0x5235d6(_0x4e6642._0x499699,0x3c1)+'dleClose'+_0x5235d6(0x36b,_0x4e6642._0x1ecc29)]=null;function _0x5235d6(_0x1327d3,_0x4cfc29){return _0x431448(_0x4cfc29,_0x1327d3-_0x4ee308._0x56ff67);}_0x27acd6&&this[_0x5235d6(_0x4e6642._0x117bfb,_0x4e6642._0x1c3ddd)](_0x167614(_0x4e6642._0x33955e,_0x4e6642._0x4f59b6)+'idle\x20clo'+_0x5235d6(_0x4e6642._0xde370f,_0x4e6642._0x3a0db0)+_0x5235d6(_0x4e6642._0x444087,_0x4e6642._0x276c78)+'on='+_0x27acd6);}['schedule'+'RelayRec'+'onnect'](){const _0x37430a={_0x3d8919:0x607,_0xe4c735:0x89b,_0x5e2473:0x76b,_0xfb5623:0x478,_0x393839:0x778,_0x11c54d:0x763,_0x1cae61:0x6ca,_0x212605:0x668,_0x2f7119:0x813,_0xa2d85f:0x712,_0x5c7406:0x80b,_0x2ea877:0x73a,_0x2d9eed:0x785,_0x629037:0x527,_0x5546b2:0x4f7,_0x2f770f:0x835,_0x311666:0x714,_0x50556b:0x67d,_0x4c7dd5:0x74d,_0x59ee17:0x5c3,_0xcbeb28:0x542,_0x30c9f2:0x452,_0x52e423:0x667,_0x3ac57b:0x728},_0x869b8f={_0x3aefc6:0x7},_0xdf061a={_0x46360c:0x54d};function _0x3e4194(_0x2fe656,_0xd49b70){return _0x9ec63e(_0xd49b70-0x3f4,_0x2fe656);}const _0x1662ce={'StYnf':function(_0x32af08,_0x3e3997){return _0x32af08*_0x3e3997;},'MTrar':function(_0x69c2bb,_0x18d97d,_0x143183){return _0x69c2bb(_0x18d97d,_0x143183);}};if(this[_0x3e4194(0x714,_0x37430a._0x3d8919)]||this[_0x10fbb7(_0x37430a._0xe4c735,_0x37430a._0x5e2473)+_0x10fbb7(_0x37430a._0xfb5623,0x59e)])return;const _0x2d188c=this[_0x10fbb7(_0x37430a._0x393839,0x80b)]['reconnec'+_0x10fbb7(_0x37430a._0x11c54d,_0x37430a._0x1cae61)+_0x3e4194(_0x37430a._0x212605,_0x37430a._0x2f7119)]??RECONNECT_BASE_DELAY_MS,_0x585a2b=this[_0x10fbb7(_0x37430a._0xa2d85f,_0x37430a._0x5c7406)][_0x3e4194(_0x37430a._0x2ea877,_0x37430a._0x2d9eed)+_0x3e4194(_0x37430a._0x629037,_0x37430a._0x5546b2)+_0x3e4194(_0x37430a._0x2f770f,_0x37430a._0x311666)]??RECONNECT_MAX_DELAY_MS,_0x150d6f=Math[_0x3e4194(_0x37430a._0x50556b,0x5d7)](_0x585a2b,_0x1662ce['StYnf'](_0x2d188c,Math[_0x3e4194(0x590,_0x37430a._0xfb5623)](0x1,this['relayAtt'+_0x10fbb7(_0x37430a._0x4c7dd5,0x6d1)])));function _0x10fbb7(_0x55139b,_0x1775db){return _0x9ec63e(_0x1775db-0x3da,_0x55139b);}this[_0x10fbb7(0x725,_0x37430a._0x59ee17)](_0x10fbb7(0x5e7,_0x37430a._0xcbeb28)+_0x3e4194(0x4f7,_0x37430a._0x30c9f2)+_0x3e4194(_0x37430a._0x52e423,0x705)+_0x10fbb7(0x4bb,0x608)+'s='+_0x150d6f),this[_0x3e4194(0x7cf,0x785)+_0x10fbb7(0x5f9,0x59e)]=_0x1662ce[_0x10fbb7(0x70d,_0x37430a._0x3ac57b)](setTimeout,()=>{this[_0x99489a(0x19c,_0x869b8f._0x3aefc6)+_0x99489a(-0x31,-0x182)]=null;function _0x56704d(_0x3a9a83,_0x48074a){return _0x3e4194(_0x48074a,_0x3a9a83- -_0xdf061a._0x46360c);}function _0x99489a(_0x24b05f,_0x2c6dd7){return _0x3e4194(_0x2c6dd7,_0x24b05f- -0x5e9);}void this['connectR'+_0x56704d(0xb9,0x1b8)]();},_0x150d6f);}[_0x9ec63e(0x311,0x20e)+_0x9ec63e(0x1bb,0xcf)+_0x431448(0x3f8,0x45c)](){const _0x149721={_0x581f1c:0x3ba,_0x11bb47:0x81,_0x3d7300:0x19c,_0xf0fa6a:0x22e,_0x2b83a0:0x47,_0x27a777:0xf6,_0x3923d7:0x146,_0x4c7081:0x16b,_0x19ca11:0x78},_0x2b4c29={_0x272061:0x11a,_0x1b5864:0x88},_0x3e18fe={_0xb6fbc6:0x320};if(this[_0x41008a(_0x149721._0x581f1c,0x211)]||this[_0x3c19cd(-_0x149721._0x11bb47,-_0x149721._0x3d7300)+_0x41008a(_0x149721._0xf0fa6a,0x37f)+'r']||!this[_0x3c19cd(_0x149721._0x2b83a0,_0x149721._0x27a777)+_0x41008a(_0x149721._0x3923d7,0x1f1)]()||!this['hasGatew'+_0x3c19cd(-0xf0,-0x2cc)]())return;const _0x5de1f8=this[_0x3c19cd(_0x149721._0x4c7081,0xf7)][_0x3c19cd(-0x81,_0x149721._0x19ca11)+'etryDela'+_0x41008a(0x153,0x31e)]??GATEWAY_RETRY_DELAY_MS;function _0x3c19cd(_0xdc2dc9,_0x30f53e){return _0x431448(_0x30f53e,_0xdc2dc9- -_0x3e18fe._0xb6fbc6);}function _0x41008a(_0x40af3b,_0x3c2e4f){return _0x431448(_0x40af3b,_0x3c2e4f- -0x5c);}this[_0x41008a(0x57,0x243)+'etryTime'+'r']=setTimeout(()=>{function _0x401ec1(_0x5e77ab,_0x373a5c){return _0x3c19cd(_0x5e77ab-0x194,_0x373a5c);}function _0x54cac1(_0x39196c,_0x556b5d){return _0x3c19cd(_0x39196c-0x5f,_0x556b5d);}this['gatewayR'+_0x54cac1(_0x2b4c29._0x272061,0x2e9)+'r']=null,this['ensureGa'+'tewayCon'+_0x401ec1(0x16c,_0x2b4c29._0x1b5864)]();},_0x5de1f8);}[_0x431448(0x28d,0x41d)+_0x431448(0x3bd,0x3be)](){const _0x15a19a={_0x1527e2:0x14f,_0x5f00ce:0x37d,_0x523d87:0x483,_0x37eba2:0x52b,_0x32dc25:0x1c5,_0x48ed48:0x394},_0x661c2c={_0x84551e:0x5e1,_0x43aadc:0x690,_0x28d34d:0x225,_0x452440:0x285,_0x47b786:0x360,_0x592928:0x282,_0x5a772f:0x25a,_0x19f9ab:0x1ea,_0x18d922:0x4ad,_0x4d5455:0x9b},_0xa4b846={_0x854706:0x141},_0x5e0dd4={};_0x5e0dd4['fLjur']=_0x49d11b(0x3cb,0x3d3)+'artbeat\x20'+_0x44d557(0x289,0x486)+'t';function _0x49d11b(_0x4b9e8d,_0x53bec4){return _0x431448(_0x53bec4,_0x4b9e8d-_0xa4b846._0x854706);}function _0x44d557(_0x19d435,_0x57549c){return _0x431448(_0x19d435,_0x57549c-0xa0);}const _0x3b5029=_0x5e0dd4;this['stopHear'+_0x44d557(_0x15a19a._0x1527e2,0x1ce)](),this[_0x44d557(0x2d7,_0x15a19a._0x5f00ce)+'tTimer']=setInterval(()=>{const _0x1346e4=this[_0x297769(_0x661c2c._0x84551e,0x401)+_0x297769(0x7d7,_0x661c2c._0x43aadc)];if(!_0x1346e4||_0x1346e4[_0x2445e5(0x15b,_0x661c2c._0x28d34d)+'te']!==_0x1f8130[_0x2445e5(0x3cc,0x4c1)])return;function _0x297769(_0x4169dc,_0x38dd53){return _0x49d11b(_0x38dd53-0x166,_0x4169dc);}const _0x27648f=this[_0x297769(0x8ba,0x732)][_0x2445e5(_0x661c2c._0x452440,_0x661c2c._0x47b786)+_0x2445e5(_0x661c2c._0x592928,_0x661c2c._0x5a772f)+'Ms']??HEARTBEAT_TIMEOUT_MS;if(Date[_0x2445e5(0x373,_0x661c2c._0x19f9ab)]()-this['lastRela'+_0x2445e5(0x2fa,_0x661c2c._0x18d922)+'yMs']>_0x27648f){this[_0x2445e5(0x1eb,_0x661c2c._0x4d5455)](_0x3b5029[_0x297769(0x28b,0x342)]),_0x1346e4['terminat'+'e']();return;}function _0x2445e5(_0x2284df,_0x5956c){return _0x49d11b(_0x2284df- -0x199,_0x5956c);}_0x1346e4[_0x2445e5(0x2a3,0x1a7)]();},this[_0x44d557(_0x15a19a._0x523d87,_0x15a19a._0x37eba2)][_0x44d557(0x396,_0x15a19a._0x5f00ce)+_0x44d557(_0x15a19a._0x32dc25,_0x15a19a._0x48ed48)+_0x49d11b(0x242,0x27e)]??HEARTBEAT_INTERVAL_MS);}[_0x9ec63e(0xb7,0xb8)+_0x431448(0xfb,0x12e)](){const _0x3ace8d={_0xc7dffe:0x5ba,_0x2f5487:0x679,_0xa03b99:0x60f},_0x213eec={_0x3b812f:0x313};function _0x440f21(_0x30f153,_0x2f649e){return _0x9ec63e(_0x30f153- -_0x213eec._0x3b812f,_0x2f649e);}function _0x215c93(_0x4cc947,_0x21ed70){return _0x9ec63e(_0x4cc947-0x3f6,_0x21ed70);}this[_0x215c93(0x679,0x69e)+_0x440f21(-0x14f,-0x1ca)]&&(clearInterval(this['heartbea'+_0x215c93(_0x3ace8d._0xc7dffe,0x633)]),this[_0x215c93(_0x3ace8d._0x2f5487,_0x3ace8d._0xa03b99)+_0x440f21(-0x14f,-0x289)]=null);}[_0x431448(0xd0,0x216)+_0x9ec63e(0x4a,0x157)+'ayMessag'+'e'](_0xe7a01b){const _0x20d248={_0x30adb9:0x185,_0x276def:0x2a9,_0xb00e75:0x24b,_0x38b3be:0x19a,_0x43edbc:0x4c,_0x3156d5:0x19a,_0x3ba152:0x177},_0x971be8={_0x5598bb:0x348};function _0x49f013(_0x475efe,_0x36bd93){return _0x431448(_0x475efe,_0x36bd93- -0x35d);}function _0x4d2aac(_0x3b5461,_0x5bb64e){return _0x431448(_0x3b5461,_0x5bb64e- -_0x971be8._0x5598bb);}this['pendingG'+_0x4d2aac(-0x1,-_0x20d248._0x30adb9)+'ssages'][_0x49f013(-_0x20d248._0x276def,-0xd9)]>=MAX_PENDING_GATEWAY_MESSAGES&&this['pendingG'+_0x49f013(-_0x20d248._0xb00e75,-_0x20d248._0x38b3be)+_0x4d2aac(-0x39,0x4b)][_0x49f013(-0xd,-_0x20d248._0x43edbc)](),this['pendingG'+_0x49f013(-0x18f,-_0x20d248._0x3156d5)+_0x4d2aac(-_0x20d248._0x3ba152,0x4b)][_0x49f013(-0x15d,-0x188)](_0xe7a01b);}['observeC'+_0x431448(0x1da,0x1c6)+_0x431448(0x37a,0x30f)](_0x525d91,_0x1c523c){const _0x55604f={_0x42cb28:0x23a,_0x2c3434:0x437,_0x1c0d26:0xbf,_0x30b4cd:0x6fa,_0x444803:0x695,_0x42196a:0x696,_0x3e3612:0x69d,_0x1ca65b:0x841,_0x4e9d4f:0x552,_0x221369:0x38a,_0x354ca6:0x533,_0x1f954a:0x117,_0x16c70d:0x4ce},_0x203c98={_0x20f6d1:0x207},_0xd4a60f=Date[_0x138268(_0x55604f._0x42cb28,0x16a)](),_0x1b57e2=new Map(this['snapshot']['connecte'+_0x125cd1(0x62d,0x493)][_0x125cd1(0x5c0,_0x55604f._0x2c3434)](_0x52ed0f=>[_0x52ed0f['id'],{..._0x52ed0f}]));function _0x138268(_0x383272,_0xacc9d5){return _0x9ec63e(_0xacc9d5- -_0x203c98._0x20f6d1,_0x383272);}const _0x2ecb7a=_0x1b57e2[_0x138268(-0xec,-_0x55604f._0x1c0d26)](_0x525d91)??{'id':_0x525d91,'label':_0x1c523c,'state':_0x138268(-0x4d,-0xe9)+'d','lastSeenMs':_0xd4a60f};_0x2ecb7a['label']=_0x1c523c;function _0x125cd1(_0x3ea981,_0x54ec19){return _0x9ec63e(_0x3ea981-0x415,_0x54ec19);}_0x2ecb7a[_0x125cd1(_0x55604f._0x30b4cd,_0x55604f._0x444803)]=_0x125cd1(0x533,0x66e)+'d',_0x2ecb7a['lastSeen'+'Ms']=_0xd4a60f,_0x1b57e2[_0x125cd1(_0x55604f._0x42196a,_0x55604f._0x3e3612)](_0x525d91,_0x2ecb7a);const _0x25894a=[..._0x1b57e2[_0x125cd1(_0x55604f._0x1ca65b,0x67f)]()][_0x125cd1(_0x55604f._0x4e9d4f,_0x55604f._0x221369)]((_0x3ddfce,_0x59acb7)=>_0x59acb7[_0x138268(-0x30b,-0x195)+'Ms']-_0x3ddfce[_0x125cd1(0x487,0x2de)+'Ms'])['slice'](0x0,MAX_DEVICE_DETAILS),_0x3559e0={};_0x3559e0[_0x125cd1(_0x55604f._0x354ca6,0x404)+_0x138268(_0x55604f._0x1f954a,0x11)]=_0x25894a,this[_0x138268(0x290,0x239)+_0x125cd1(0x62f,_0x55604f._0x16c70d)](_0x3559e0);}['markDevi'+_0x431448(0x414,0x40f)+'t'](){const _0x1df237={_0x84446c:0x764,_0x140f40:0x7db,_0x31387f:0x3f1,_0x3b0252:0x208};function _0x4eaf08(_0x125476,_0x2a6422){return _0x431448(_0x125476,_0x2a6422-0x3);}function _0x364e10(_0x1ad977,_0x2495e6){return _0x431448(_0x2495e6,_0x1ad977-0x2ca);}this[_0x364e10(_0x1df237._0x84446c,_0x1df237._0x140f40)+_0x4eaf08(0x358,0x277)]({'connectedDevices':this[_0x4eaf08(0x246,_0x1df237._0x31387f)]['connecte'+'dDevices'][_0x4eaf08(0x399,_0x1df237._0x3b0252)](_0x4c993f=>({..._0x4c993f,'state':'recent'}))});}[_0x9ec63e(0x89,-0xd0)+_0x431448(0xed,0x1f7)+_0x9ec63e(0x367,0x556)](_0x5b86d0){const _0x2ff0d7={_0x2c064d:0x67c,_0x434be4:0x5dc,_0x2f98a5:0xd1,_0x2f3a86:0x3a0,_0x19cafa:0x664,_0x12fc8a:0x219,_0x503738:0x375,_0x315d32:0x43e,_0x5d826f:0x31a,_0x46dffa:0x84,_0x467d7b:0x22f,_0x347309:0x180,_0x23aa73:0x2e5,_0xf900bc:0x30d,_0x425efc:0x1ce,_0x38affb:0x154,_0x1310ad:0x148,_0x2380ee:0x29c,_0x57fc77:0x4fe},_0x589d2b={_0x3dc0c9:0x28e};if(this[_0x3d1ca2(_0x2ff0d7._0x2c064d,_0x2ff0d7._0x434be4)][_0x441772(0x84,_0x2ff0d7._0x2f98a5)+'airReque'+_0x3d1ca2(_0x2ff0d7._0x2f3a86,0x566)][_0x3d1ca2(_0x2ff0d7._0x19cafa,0x72c)](_0x13db76=>_0x13db76[_0x3d1ca2(0x353,0x31b)+'d']===_0x5b86d0[_0x3d1ca2(0x353,0x4a3)+'d']))return;function _0x441772(_0x156b8b,_0x298cd2){return _0x431448(_0x298cd2,_0x156b8b- -0xef);}const _0x73d097=[...this[_0x3d1ca2(0x67c,0x6b8)][_0x441772(0x84,-0xbc)+_0x441772(_0x2ff0d7._0x12fc8a,_0x2ff0d7._0x503738)+_0x3d1ca2(0x3a0,0x521)],_0x5b86d0][_0x3d1ca2(_0x2ff0d7._0x315d32,_0x2ff0d7._0x5d826f)](-MAX_PENDING_PAIR_REQUESTS),_0x9ffcd0={};function _0x3d1ca2(_0x11cde6,_0x1a270d){return _0x431448(_0x1a270d,_0x11cde6-_0x589d2b._0x3dc0c9);}_0x9ffcd0[_0x441772(_0x2ff0d7._0x46dffa,_0x2ff0d7._0x467d7b)+_0x3d1ca2(0x596,0x561)+_0x441772(0x23,-_0x2ff0d7._0x347309)]=_0x73d097,this[_0x441772(0x3ab,0x43b)+_0x441772(0x185,0x357)](_0x9ffcd0),this['options'][_0x441772(0xe7,_0x2ff0d7._0x23aa73)+_0x441772(_0x2ff0d7._0xf900bc,0x339)+_0x441772(-0x19,-_0x2ff0d7._0x425efc)]?.(_0x5b86d0),this[_0x441772(_0x2ff0d7._0x38affb,_0x2ff0d7._0x1310ad)](_0x441772(_0x2ff0d7._0x2380ee,0x2f4)+'uest\x20pen'+'ding\x20req'+_0x3d1ca2(_0x2ff0d7._0x57fc77,0x6d5)+_0x5b86d0[_0x3d1ca2(0x353,0x278)+'d']+(_0x3d1ca2(0x420,0x41c)+'d=')+(_0x5b86d0['deviceId']||'<unknown'+'>'));}[_0x9ec63e(0x1dc,0x19a)+_0x431448(0x1da,0x357)+'esolved'](_0x40a2e0,_0x146c2f){const _0x1ae750={_0x550933:0x289,_0x39883e:0x181,_0x421d56:0xcb,_0xc7c98e:0x41e,_0x1d2ce5:0x4a1,_0x59a2f5:0x1cb,_0x5315ba:0x380},_0x445aa0={_0x227257:0x170},_0xc14909=this[_0x23608a(0x481,0x504)][_0x23608a(0x20c,_0x1ae750._0x550933)+'airReque'+_0x5c2705(-_0x1ae750._0x39883e,-_0x1ae750._0x421d56)]['map'](_0xe9f1f7=>_0xe9f1f7[_0x5c2705(0x6a,-0x118)+'d']===_0x40a2e0?{..._0xe9f1f7,'status':_0x146c2f==='approved'||_0x146c2f===_0x23608a(0x2f1,0x283)?_0x146c2f:_0xe9f1f7['status']}:_0xe9f1f7);function _0x23608a(_0x800307,_0x366531){return _0x9ec63e(_0x366531-_0x445aa0._0x227257,_0x800307);}function _0x5c2705(_0x8f1d9e,_0x5a2b1a){return _0x9ec63e(_0x5a2b1a- -0x183,_0x8f1d9e);}const _0x30f6d9={};_0x30f6d9['pendingP'+_0x23608a(0x392,_0x1ae750._0xc7c98e)+'sts']=_0xc14909,this[_0x23608a(0x753,0x5b0)+'apshot'](_0x30f6d9),this['log'](_0x23608a(0x5f0,_0x1ae750._0x1d2ce5)+_0x23608a(-0x37,_0x1ae750._0x59a2f5)+_0x23608a(_0x1ae750._0x5315ba,0x27a)+_0x5c2705(0x96,-0xe2)+_0x40a2e0+(_0x5c2705(0x1d1,0xe4)+'n=')+_0x146c2f);}[_0x9ec63e(0x440,0x26e)+_0x431448(0x449,0x274)](_0x5d9351){const _0x190d7c={_0x13dc5b:0x42a,_0x1065ae:0x25f,_0xda3f4e:0x776,_0xf69d7f:0x813,_0x482f5a:0x484,_0x448254:0x554},_0x19be6c={_0x5db906:0x3e2};function _0x1944d7(_0x22a36f,_0x4c21ad){return _0x9ec63e(_0x22a36f-_0x19be6c._0x5db906,_0x4c21ad);}function _0x2c1527(_0xc9eecf,_0x303d59){return _0x9ec63e(_0x303d59- -0xbb,_0xc9eecf);}Object[_0x1944d7(_0x190d7c._0x13dc5b,_0x190d7c._0x1065ae)](this[_0x1944d7(_0x190d7c._0xda3f4e,0x5d3)],_0x5d9351,{'lastUpdatedMs':Date[_0x1944d7(0x753,0x56f)]()}),this[_0x1944d7(_0x190d7c._0xf69d7f,0x7db)][_0x1944d7(_0x190d7c._0x482f5a,0x5db)]?.(this['getSnaps'+_0x1944d7(_0x190d7c._0x448254,0x739)]());}[_0x431448(0x29e,0x243)](_0x4cd5bc){const _0x3bfed8={_0x87cd60:0xdd,_0x130669:0x3ad,_0x133e42:0x406},_0x459a41={_0x4c4227:0x354};function _0x5e3121(_0x3e7842,_0x54365b){return _0x9ec63e(_0x3e7842- -_0x459a41._0x4c4227,_0x54365b);}function _0x1675b3(_0x3baf09,_0x20e2aa){return _0x9ec63e(_0x3baf09-0x341,_0x20e2aa);}this[_0x5e3121(_0x3bfed8._0x87cd60,0x277)][_0x1675b3(_0x3bfed8._0x130669,_0x3bfed8._0x133e42)]?.(_0x4cd5bc);}['isRelayO'+_0x431448(0x3b2,0x24d)](){const _0x5ed3d0={_0x43bccf:0x412,_0x16cb76:0x6de,_0x26cfec:0x683},_0x5ae92a={_0x3e2fb6:0x11c};function _0x31d3c0(_0x39214e,_0x3c4d87){return _0x9ec63e(_0x3c4d87-0x2b9,_0x39214e);}function _0xcc2810(_0x18acb8,_0x26a39b){return _0x9ec63e(_0x26a39b-_0x5ae92a._0x3e2fb6,_0x18acb8);}return this['relaySoc'+_0x31d3c0(0x4fc,0x648)]?.[_0x31d3c0(0x497,_0x5ed3d0._0x43bccf)+'te']===_0x1f8130[_0x31d3c0(_0x5ed3d0._0x16cb76,_0x5ed3d0._0x26cfec)];}[_0x9ec63e(0x41d,0x2c8)+_0x431448(0x4e6,0x347)](){const _0x8f2c0f={_0x19edbc:0x208,_0x9f6c9a:0x57,_0x5ced33:0x18e,_0x26fc40:0x137,_0x32b31c:0xda,_0x3cdd74:0x5e,_0x1499fb:0x47d,_0x444add:0x293},_0x15fe67={_0x1ff61a:0x2ca},_0x402b8e={_0xb34414:0x1c9},_0x4911b2={};function _0x1129a0(_0x127f96,_0x20ef96){return _0x431448(_0x20ef96,_0x127f96- -_0x402b8e._0xb34414);}_0x4911b2[_0x1129a0(-0x57,-_0x8f2c0f._0x19edbc)]=function(_0x2a7b11,_0x4735f9){return _0x2a7b11===_0x4735f9;};const _0x4b4f2f=_0x4911b2;function _0x1669ab(_0xd2fc4d,_0x3de853){return _0x431448(_0x3de853,_0xd2fc4d-_0x15fe67._0x1ff61a);}return _0x4b4f2f[_0x1129a0(-_0x8f2c0f._0x9f6c9a,-_0x8f2c0f._0x5ced33)](this[_0x1129a0(_0x8f2c0f._0x26fc40,_0x8f2c0f._0x32b31c)+_0x1129a0(0x1f7,_0x8f2c0f._0x3cdd74)]?.[_0x1669ab(_0x8f2c0f._0x1499fb,_0x8f2c0f._0x444add)+'te'],_0x1f8130['OPEN']);}[_0x431448(0x1b4,0x140)+_0x431448(0x3a2,0x230)](){const _0x2ea11f={_0x2f154c:0xca,_0x620819:0x4b,_0x1c784a:0x9b,_0xd0ec42:0x3b7,_0x1955a9:0x636,_0x5b3506:0xad},_0x410eac={_0x5cbbc0:0x290};function _0x10ad0e(_0x39f4a8,_0x4ac162){return _0x9ec63e(_0x4ac162-_0x410eac._0x5cbbc0,_0x39f4a8);}function _0x5ede2d(_0x4ec901,_0xb1795c){return _0x9ec63e(_0xb1795c- -0x2d7,_0x4ec901);}return this[_0x5ede2d(-_0x2ea11f._0x2f154c,0xbd)][_0x5ede2d(-_0x2ea11f._0x620819,-_0x2ea11f._0x1c784a)+_0x10ad0e(_0x2ea11f._0xd0ec42,0x465)]>0x0||this['pendingG'+_0x10ad0e(0x4e8,0x3f9)+_0x10ad0e(_0x2ea11f._0x1955a9,0x5c9)][_0x5ede2d(-0x10c,-_0x2ea11f._0x5b3506)]>0x0;}[_0x431448(0x555,0x445)+_0x431448(0x2b6,0x37b)](){const _0x55e812={_0x5107c5:0x42,_0x5516f8:0x138,_0x515945:0x550,_0x5cc682:0x383,_0x55d6ae:0x13a,_0x3e41a4:0x3f,_0x3be6d0:0x540,_0x495236:0x546,_0x4bb6af:0x404,_0x1988f2:0xa6,_0x34acd3:0xff},_0x3b19e0={_0x2b6f57:0x260},_0x3bb066={_0x5bdd7c:0x165};this['stopHear'+'tbeat']();function _0x9ca095(_0xf7cb74,_0x485552){return _0x431448(_0xf7cb74,_0x485552-_0x3bb066._0x5bdd7c);}this['reconnec'+_0x2fc102(-_0x55e812._0x5107c5,-_0x55e812._0x5516f8)]&&(clearTimeout(this[_0x9ca095(0x696,_0x55e812._0x515945)+_0x9ca095(0x365,_0x55e812._0x5cc682)]),this['reconnec'+_0x2fc102(-0x42,-_0x55e812._0x55d6ae)]=null);this[_0x2fc102(_0x55e812._0x3e41a4,0x110)+_0x9ca095(0x50f,_0x55e812._0x3be6d0)+'r']&&(clearTimeout(this[_0x9ca095(_0x55e812._0x495236,_0x55e812._0x4bb6af)+_0x2fc102(0x17b,0x2d7)+'r']),this['gatewayR'+_0x9ca095(0x410,0x540)+'r']=null);function _0x2fc102(_0x4ccf46,_0x37a646){return _0x431448(_0x37a646,_0x4ccf46- -_0x3b19e0._0x2b6f57);}this['cancelGa'+_0x2fc102(0x201,_0x55e812._0x1988f2)+_0x2fc102(_0x55e812._0x34acd3,0xbc)]();}[_0x431448(-0x53,0x123)+_0x9ec63e(0x437,0x264)](_0xf232f6){const _0x13459d={_0x2556fa:0x41,_0x4cefe5:0x85d,_0x492593:0x75c,_0x6d6bb8:0x43b},_0x5c6916={};function _0xcf5437(_0xac11f5,_0x226aa3){return _0x9ec63e(_0xac11f5- -0x43,_0x226aa3);}function _0x40d401(_0x554bb8,_0x19ed5d){return _0x9ec63e(_0x19ed5d-0x36f,_0x554bb8);}_0x5c6916['cSNVC']=function(_0x466b92,_0xdc30d){return _0x466b92-_0xdc30d;};const _0x453a8d=_0x5c6916;return _0xf232f6==null?null:Math[_0xcf5437(_0x13459d._0x2556fa,0xbd)](0x0,_0x453a8d[_0x40d401(_0x13459d._0x4cefe5,_0x13459d._0x492593)](Date[_0xcf5437(0x32e,_0x13459d._0x6d6bb8)](),_0xf232f6));}};function shouldRecycleGatewayForFreshClient(_0x489700,_0x131fdd,_0x2790b4,_0x1cff5c){return _0x2790b4&&_0x131fdd>0x0&&(_0x489700===0x0||_0x1cff5c);}function shouldDropStaleConnectAfterGatewayReopen(_0x41e28d,_0x1bdfaa){return!_0x41e28d&&_0x1bdfaa;}function patchConnectRequestGatewayAuth(_0x5a0943,_0x2df7f4){const _0xf5abd8={_0x540269:0x554,_0x2c91e6:0x374,_0x430c17:0x4f5,_0x2cac2b:0x3a3,_0x47c8d5:0x3c3,_0x5198b1:0x185,_0xf3b52c:0x669,_0x4df164:0x6fb,_0x21e764:0x82f,_0x566eef:0x3ef,_0x4cf1ef:0x527,_0x33aa56:0x580,_0xaa1bb6:0x2e9,_0x1da5bd:0x2a6,_0x42d59b:0x479,_0x50ef25:0x1a7,_0x1baa00:0x6e3,_0x50b652:0x6b4,_0x114bcd:0x348,_0x4b56c:0x6d6,_0x22fd7c:0x35b,_0xe2ccbd:0x728,_0x1f181e:0x345,_0x5de1da:0x542,_0x5b310e:0x5cd,_0x381f28:0x189,_0x2ff5ea:0x25e},_0x12da09={_0x401f7d:0x407},_0x319873={_0x9fb085:0x69},_0x554ef5={};_0x554ef5['BHTIz']=function(_0x17f7f4,_0x55b5ea){return _0x17f7f4!==_0x55b5ea;},_0x554ef5['WnjSZ']=function(_0x27a231,_0x315b64){return _0x27a231!==_0x315b64;},_0x554ef5[_0x8f687a(_0xf5abd8._0x540269,0x569)]='connect',_0x554ef5['QzZLN']=_0x4f6841(_0xf5abd8._0x2c91e6,0x2d2)+_0x8f687a(_0xf5abd8._0x430c17,0x5bb),_0x554ef5[_0x4f6841(0x2c0,_0xf5abd8._0x2cac2b)]=_0x4f6841(0x40d,0x315),_0x554ef5['AVYyF']=_0x4f6841(0x343,_0xf5abd8._0x47c8d5);function _0x4f6841(_0x42bcb1,_0xfebd75){return _0x9ec63e(_0x42bcb1-_0x319873._0x9fb085,_0xfebd75);}function _0x8f687a(_0x27b714,_0x191548){return _0x9ec63e(_0x27b714-_0x12da09._0x401f7d,_0x191548);}const _0x405719=_0x554ef5;if(_0x405719['BHTIz'](_0x2df7f4['authMode'],_0x4f6841(_0xf5abd8._0x5198b1,0x32b))||!_0x2df7f4['password']){const _0x42425a={};return _0x42425a[_0x4f6841(0x189,0xb0)]=_0x5a0943,_0x42425a[_0x8f687a(_0xf5abd8._0xf3b52c,0x734)]=![],_0x42425a;}try{const _0x5aec7c=JSON[_0x8f687a(0x5c1,0x4ea)](_0x5a0943);if(_0x5aec7c[_0x4f6841(0x3b9,0x3cb)]!==_0x8f687a(0x76f,_0xf5abd8._0x4df164)||_0x405719[_0x4f6841(0x19d,-0x5d)](_0x5aec7c[_0x8f687a(0x811,0x7b1)],_0x405719[_0x8f687a(_0xf5abd8._0x540269,0x702)])&&_0x5aec7c[_0x8f687a(0x811,_0xf5abd8._0x21e764)]!==_0x405719[_0x4f6841(_0xf5abd8._0x566eef,0x34a)]){const _0x26d817={};return _0x26d817[_0x8f687a(_0xf5abd8._0x4cf1ef,_0xf5abd8._0x33aa56)]=_0x5a0943,_0x26d817['injected']=![],_0x26d817;}const _0x10437f=_0x5aec7c[_0x4f6841(0x479,_0xf5abd8._0xaa1bb6)]&&typeof _0x5aec7c['params']===_0x405719[_0x4f6841(0x2c0,_0xf5abd8._0x1da5bd)]?{..._0x5aec7c[_0x4f6841(_0xf5abd8._0x42d59b,0x4f9)]}:{},_0x3cdd4b=_0x10437f[_0x4f6841(0x345,_0xf5abd8._0x50ef25)]&&typeof _0x10437f[_0x8f687a(_0xf5abd8._0x1baa00,0x610)]===_0x8f687a(0x7ab,0x6d8)?{..._0x10437f[_0x8f687a(0x6e3,0x5ad)]}:{},_0x20a09f=typeof _0x3cdd4b[_0x4f6841(0x185,0x110)]===_0x405719[_0x8f687a(_0xf5abd8._0x50b652,0x65b)]?_0x3cdd4b[_0x4f6841(_0xf5abd8._0x5198b1,_0xf5abd8._0x114bcd)][_0x8f687a(_0xf5abd8._0x4b56c,0x785)]():'';if(_0x20a09f){const _0x42e487={};return _0x42e487[_0x8f687a(_0xf5abd8._0x4cf1ef,_0xf5abd8._0x22fd7c)]=_0x5a0943,_0x42e487[_0x8f687a(0x669,_0xf5abd8._0xe2ccbd)]=![],_0x42e487;}_0x3cdd4b[_0x8f687a(0x523,_0xf5abd8._0x4df164)]=_0x2df7f4['password'],_0x10437f[_0x4f6841(_0xf5abd8._0x1f181e,0x1a0)]=_0x3cdd4b;const _0x3fd790={..._0x5aec7c};return _0x3fd790[_0x4f6841(_0xf5abd8._0x42d59b,_0xf5abd8._0x5de1da)]=_0x10437f,{'text':JSON[_0x4f6841(0x42e,_0xf5abd8._0x5b310e)+'y'](_0x3fd790),'injected':!![]};}catch{const _0x1b3899={};return _0x1b3899[_0x4f6841(_0xf5abd8._0x381f28,_0xf5abd8._0x2ff5ea)]=_0x5a0943,_0x1b3899['injected']=![],_0x1b3899;}}function buildRelayWsUrl(_0x3a217b){const _0x5ec410={_0x1f5f09:0x22e,_0x4d4d56:0x27b,_0x5af1ee:0x21f,_0x16707c:0x3d,_0x2725aa:0x307,_0x1ee87d:0x21e,_0x305bc3:0x82,_0x4af1a0:0x121,_0x33840a:0x15f,_0x16982f:0x1a2,_0x54f941:0x82,_0xb97739:0x324,_0x3b2d51:0x5c1,_0xd4d724:0x188,_0x4fb079:0x123,_0x5d44d4:0x5e},_0x4b12d3={_0xe8d227:0x119};function _0x7c9b28(_0x23acb5,_0x4a7273){return _0x9ec63e(_0x23acb5-_0x4b12d3._0xe8d227,_0x4a7273);}const _0x5bba19={};_0x5bba19[_0x7c9b28(0x253,_0x5ec410._0x1f5f09)]='gateway';function _0x25df09(_0xe14adb,_0x1138d8){return _0x9ec63e(_0xe14adb- -0x2d0,_0x1138d8);}_0x5bba19['mymTO']='token';const _0x2e9e4f=_0x5bba19,_0x122a64=new URL(_0x3a217b['relayUrl']);return(!_0x122a64[_0x7c9b28(0x1ca,_0x5ec410._0x4d4d56)]||_0x122a64[_0x25df09(-_0x5ec410._0x5af1ee,-0x1d5)]==='/')&&(_0x122a64[_0x25df09(-0x21f,-_0x5ec410._0x16707c)]=_0x7c9b28(_0x5ec410._0x2725aa,_0x5ec410._0x1ee87d)),_0x122a64['searchPa'+_0x25df09(_0x5ec410._0x305bc3,0x240)]['set']('gatewayI'+'d',_0x3a217b['gatewayI'+'d']),_0x122a64[_0x25df09(-0xc5,0x63)+'rams'][_0x25df09(-0x4f,-_0x5ec410._0x4af1a0)](_0x25df09(_0x5ec410._0x33840a,_0x5ec410._0x1f5f09),_0x2e9e4f['BOCjt']),_0x122a64[_0x7c9b28(0x324,_0x5ec410._0x16982f)+_0x25df09(_0x5ec410._0x54f941,0x152)]['set']('clientId',_0x3a217b['instance'+'Id']),_0x122a64[_0x7c9b28(_0x5ec410._0xb97739,0x315)+_0x7c9b28(0x46b,_0x5ec410._0x3b2d51)]['set'](_0x2e9e4f[_0x7c9b28(0x24c,0x1ea)],_0x3a217b[_0x25df09(-0x24d,-_0x5ec410._0xd4d724)+'ret']),_0x122a64[_0x25df09(_0x5ec410._0x4fb079,_0x5ec410._0x5d44d4)]();}function redactRelayWsUrl(_0x3096ca){const _0x116f63={_0x35d329:0x34c,_0x2a3c8b:0x34,_0xef4aa1:0x5d,_0x8e5266:0x142},_0x131d45={_0x278bf5:0x2f5};function _0x56628b(_0x497f49,_0x312380){return _0x9ec63e(_0x312380- -0x13f,_0x497f49);}const _0x3a7a14=new URL(_0x3096ca);_0x3a7a14['searchPa'+_0x56628b(_0x116f63._0x35d329,0x213)]['has']('token')&&_0x3a7a14['searchPa'+_0x1d63f7(_0x116f63._0x2a3c8b,_0x116f63._0xef4aa1)][_0x56628b(0x1f8,_0x116f63._0x8e5266)](_0x56628b(-0x1af,-0xad),_0x56628b(0x2a4,0x2d0)+'d>');function _0x1d63f7(_0x2bf099,_0xae9832){return _0x9ec63e(_0xae9832- -_0x131d45._0x278bf5,_0x2bf099);}return _0x3a7a14[_0x1d63f7(0x86,0xfe)]();}function normalizeText(_0x408946){const _0x29c1a0={_0x3b2766:0x450,_0x8a591:0x476,_0x37742b:0x54b,_0x21570d:0x458,_0x58b758:0x239,_0x50848a:0x1cd,_0x3cdf8c:0x193,_0x48815b:0x352,_0x567330:0x6,_0x59b55f:0x49,_0x1dce9b:0x11b,_0x113ee4:0x14a,_0x285e4:0x45e,_0x2de9f3:0x476,_0xc9d0da:0x5f,_0x11df70:0x107,_0x2bda23:0x3b9,_0xc5bbe2:0x352},_0x53c967={_0x16462b:0x332},_0x581c83={_0x289162:0xfb},_0x2d758c={};function _0x14c0bb(_0x1664b6,_0x1e0b99){return _0x431448(_0x1664b6,_0x1e0b99- -_0x581c83._0x289162);}_0x2d758c[_0x482781(_0x29c1a0._0x3b2766,_0x29c1a0._0x8a591)]='utf8',_0x2d758c[_0x482781(_0x29c1a0._0x37742b,_0x29c1a0._0x21570d)]=function(_0x305b62,_0x588841){return _0x305b62 instanceof _0x588841;};const _0x5df51e=_0x2d758c;if(typeof _0x408946===_0x14c0bb(0x1f6,_0x29c1a0._0x58b758))return _0x408946;if(Buffer[_0x14c0bb(0x38b,_0x29c1a0._0x50848a)](_0x408946))return _0x408946[_0x14c0bb(_0x29c1a0._0x3cdf8c,_0x29c1a0._0x48815b)](_0x5df51e[_0x14c0bb(_0x29c1a0._0x567330,_0x29c1a0._0x59b55f)]);if(Array['isArray'](_0x408946))return Buffer[_0x14c0bb(_0x29c1a0._0x1dce9b,_0x29c1a0._0x113ee4)](_0x408946)[_0x482781(0x5dd,0x77f)](_0x5df51e[_0x482781(_0x29c1a0._0x285e4,_0x29c1a0._0x2de9f3)]);if(_0x5df51e[_0x14c0bb(-_0x29c1a0._0xc9d0da,0x2b)](_0x408946,ArrayBuffer))return Buffer[_0x14c0bb(0x2f6,_0x29c1a0._0x11df70)](_0x408946)[_0x14c0bb(_0x29c1a0._0x2bda23,_0x29c1a0._0xc5bbe2)](_0x5df51e[_0x14c0bb(0x212,0x49)]);function _0x482781(_0x59848a,_0x5e5c44){return _0x431448(_0x59848a,_0x5e5c44-_0x53c967._0x16462b);}return null;}function normalizeBinary(_0x935f77){const _0x4547db={_0x14c483:0x4df,_0x55b952:0x1ac,_0x22d188:0x201,_0x38379b:0x625,_0x35b531:0x7c7,_0x3feedf:0x64e,_0x3cb575:0x531,_0x5aaf98:0xd3,_0xcff3bd:0x55f},_0x579a4b={_0x230bc8:0x12e},_0x464d5e={};_0x464d5e[_0x1956ec(_0x4547db._0x14c483,0x338)]=_0x176d69(_0x4547db._0x55b952,_0x4547db._0x22d188);function _0x176d69(_0xb903f6,_0x358eb3){return _0x9ec63e(_0xb903f6- -_0x579a4b._0x230bc8,_0x358eb3);}function _0x1956ec(_0x2fcad4,_0x108fdb){return _0x9ec63e(_0x2fcad4-0x3b7,_0x108fdb);}const _0x537bcd=_0x464d5e;if(Buffer[_0x1956ec(_0x4547db._0x38379b,_0x4547db._0x35b531)](_0x935f77))return _0x935f77;if(typeof _0x935f77===_0x537bcd[_0x176d69(-0x6,-0x14a)])return Buffer['from'](_0x935f77,_0x1956ec(0x55d,_0x4547db._0x3feedf));if(Array[_0x1956ec(_0x4547db._0x3cb575,0x3f1)](_0x935f77))return Buffer[_0x176d69(0xbd,-_0x4547db._0x5aaf98)](_0x935f77);return Buffer[_0x1956ec(_0x4547db._0xcff3bd,0x3e1)](_0x935f77);}function readRecentCliLogs(_0x3124a2){const _0x5c2862={_0x557af2:0xd4,_0x50194a:0x32,_0x4bb58:0x1c3,_0x18c3f0:0x1ab,_0x2283b8:0x33,_0x76de72:0x76,_0x4989b8:0x119,_0x55fb52:0x12d,_0x17f17a:0x1cc,_0x4b02c9:0x36,_0xbf8a6:0x3},_0x478d91={_0x23c644:0x1e6},_0x9ce8e={_0x34ace6:0x208},_0x52c256={'XfVKj':function(_0x50a546,_0x45c69e){return _0x50a546(_0x45c69e);},'hekvn':function(_0x1e85c7,_0x1bcecc){return _0x1e85c7!=_0x1bcecc;},'BGfdy':function(_0x12d39d,_0x26b67d){return _0x12d39d-_0x26b67d;},'IkfXN':function(_0x53f344,_0x5d3944){return _0x53f344==_0x5d3944;}},{logPath:_0x53cbe7,errorLogPath:_0x8fd634}=getServicePaths(),_0x3c75c2=_0x52c256['XfVKj'](clampLines,_0x3124a2?.['lines']??0xc8),_0x17fd4c=_0x3124a2?.[_0xce4e02(0x148,0x8)]??null;function _0x55f654(_0xb0360c,_0x433875){return _0x431448(_0x433875,_0xb0360c- -_0x9ce8e._0x34ace6);}const _0x55fcd2=_0x52c256[_0x55f654(_0x5c2862._0x557af2,-0x41)](_0x17fd4c,null)?_0x52c256[_0x55f654(_0x5c2862._0x50194a,-0x8a)](Date[_0x55f654(_0x5c2862._0x4bb58,0x271)](),_0x17fd4c):null,_0x1e2f14=[_0x53cbe7];function _0xce4e02(_0x34ee09,_0x23e2db){return _0x431448(_0x34ee09,_0x23e2db- -_0x478d91._0x23c644);}_0x3124a2?.[_0x55f654(_0x5c2862._0x18c3f0,0x26b)+_0x55f654(0x206,0x39c)]&&_0x1e2f14[_0x55f654(-_0x5c2862._0x2283b8,-_0x5c2862._0x76de72)](_0x8fd634);const _0x39448e=_0x1e2f14[_0xce4e02(-0x57,-_0x5c2862._0x4989b8)](_0x2090da=>readLogFile(_0x2090da)),_0xea14f0=_0x52c256[_0x55f654(0xef,0x191)](_0x55fcd2,null)?_0x39448e:_0x39448e[_0xce4e02(0x8f,-_0x5c2862._0x55fb52)](_0x3f4b73=>_0x3f4b73['ts']!=null&&_0x3f4b73['ts']>=_0x55fcd2);return _0xea14f0[_0xce4e02(_0x5c2862._0x17f17a,-_0x5c2862._0x4b02c9)](-_0x3c75c2)[_0x55f654(-_0x5c2862._0xbf8a6,0x146)](_0x1516e5=>_0x1516e5[_0x55f654(0xd8,0xf0)]);}async function buildDoctorReport(){const _0x4e6686={_0x8d8a49:0x10c,_0x1e171f:0x1a0,_0x3ae095:0x212,_0x146779:0x29a,_0xa0d3aa:0xff,_0x3f0d37:0x41,_0x62acf0:0x192,_0x3b3b63:0x1c5,_0x37ceb7:0x163,_0x20d228:0x1d0,_0x29f916:0x99,_0x5f3d36:0x1ed,_0x523917:0xfb,_0x43cce7:0x263,_0x90300c:0x96,_0x2fe318:0xbe,_0x1a727b:0xcd,_0x43cc3e:0x202,_0x33e529:0x46,_0x1ba42d:0x52,_0x3ed835:0x210},_0x2b2a1c={'pkJkO':function(_0xfdcdd5,_0x3669dc){return _0xfdcdd5(_0x3669dc);},'LMWzD':function(_0x5055de,_0x169769){return _0x5055de(_0x169769);}},_0x4bf490=readPairingConfig(),_0xe5dec=getServiceStatus(),_0x215d33=readOpenClawInfo();function _0x5c0b31(_0x3d2cc3,_0x1b9638){return _0x431448(_0x1b9638,_0x3d2cc3- -0x386);}const _0x5b2b3c=resolveGatewayUrl();function _0x5f27a7(_0x22e078,_0x3fe6ce){return _0x431448(_0x3fe6ce,_0x22e078- -0xa1);}const _0x41b02c=await checkGatewayReachable(_0x5b2b3c);return{'paired':_0x2b2a1c[_0x5f27a7(0xcd,-_0x4e6686._0x8d8a49)](Boolean,_0x4bf490),'gatewayId':_0x4bf490?.[_0x5f27a7(_0x4e6686._0x1e171f,0x19b)+'d']??null,'serverUrl':_0x4bf490?.[_0x5c0b31(-_0x4e6686._0x3ae095,-0x3a4)+'l']??null,'relayUrl':_0x4bf490?.[_0x5f27a7(_0x4e6686._0x146779,_0x4e6686._0xa0d3aa)]??null,'instanceId':_0x4bf490?.[_0x5f27a7(0x19e,0x2f0)+'Id']??null,'serviceInstalled':_0xe5dec[_0x5c0b31(_0x4e6686._0x3f0d37,_0x4e6686._0x62acf0)+'d'],'serviceRunning':_0xe5dec['running'],'serviceMethod':_0xe5dec[_0x5c0b31(0xde,0x13a)],'servicePath':_0xe5dec[_0x5c0b31(-_0x4e6686._0x3b3b63,-_0x4e6686._0x37ceb7)+_0x5f27a7(_0x4e6686._0x20d228,_0x4e6686._0x29f916)],'logPath':_0xe5dec[_0x5c0b31(-0x211,-0x15a)],'errorLogPath':_0xe5dec['errorLog'+_0x5c0b31(-0x183,-_0x4e6686._0x5f3d36)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x215d33[_0x5f27a7(_0x4e6686._0x523917,_0x4e6686._0x43cce7)+_0x5c0b31(-0x13b,-0x32e)],'openclawAuthMode':_0x215d33[_0x5c0b31(_0x4e6686._0x90300c,-_0x4e6686._0x2fe318)],'openclawTokenFound':_0x2b2a1c[_0x5f27a7(_0x4e6686._0x1a727b,_0x4e6686._0x43cc3e)](Boolean,_0x215d33[_0x5f27a7(0x4b,_0x4e6686._0x33e529)]),'openclawPasswordFound':_0x2b2a1c[_0x5c0b31(-0x148,-_0x4e6686._0x1ba42d)](Boolean,_0x215d33[_0x5c0b31(-_0x4e6686._0x3ed835,-0x78)]),'localGatewayUrl':_0x5b2b3c,'localGatewayReachable':_0x41b02c};}async function ensurePairPrerequisites(){const _0x6f8a1d={_0x91ec34:0x167,_0x4c32df:0x0,_0xf017e4:0x377,_0xeceb1f:0x316,_0x49e65f:0x550,_0x34d047:0x614,_0x496dac:0x371,_0x4bea85:0x3f6,_0x1ce388:0x3d7,_0x260ad0:0x522,_0x44c912:0x4bb,_0x4e8fc2:0x64e,_0x32f385:0x2c0,_0x2240aa:0x490,_0x23fcf9:0x2d0,_0x220e72:0x2d4,_0x1726f6:0x393},_0xb9975d={_0x2bde75:0x22d},_0x2fe721={_0x277b16:0xae},_0x4cfb5a=await buildDoctorReport(),_0x5b7797=listPairPrerequisiteFailures(_0x4cfb5a);function _0x1b3c5a(_0x10745f,_0x4ffe47){return _0x9ec63e(_0x10745f-_0x2fe721._0x277b16,_0x4ffe47);}if(_0x5b7797['length']>0x0)throw new Error([_0x1295f5(0x67a,0x667)+_0x1295f5(0x3b6,0x33c)+_0x1b3c5a(_0x6f8a1d._0x91ec34,_0x6f8a1d._0x4c32df)+_0x1b3c5a(_0x6f8a1d._0xf017e4,_0x6f8a1d._0xeceb1f)+_0x1295f5(_0x6f8a1d._0x49e65f,0x5d6)+_0x1295f5(0x444,_0x6f8a1d._0x34d047)+_0x1295f5(0x3c7,_0x6f8a1d._0x496dac)+_0x1295f5(0x58c,_0x6f8a1d._0x4bea85)+'tes\x20are\x20'+_0x1b3c5a(0x4e0,_0x6f8a1d._0x1ce388)+'y.',..._0x5b7797[_0x1295f5(0x1d7,0x3d8)](_0x3111ed=>'-\x20'+_0x3111ed),_0x1b3c5a(0x40c,0x359)+_0x1b3c5a(0x13b,-0x46)+_0x1b3c5a(0x493,0x2dc)+_0x1295f5(0x3e0,0x3ab)+_0x1295f5(_0x6f8a1d._0x260ad0,_0x6f8a1d._0x44c912)+_0x1295f5(0x4a6,_0x6f8a1d._0x4e8fc2)+_0x1295f5(0x32c,_0x6f8a1d._0x32f385)+_0x1295f5(0x727,0x583)+_0x1295f5(_0x6f8a1d._0x2240aa,0x2f5)+'y\x20if\x20you'+_0x1295f5(0x46e,_0x6f8a1d._0x23fcf9)+_0x1295f5(_0x6f8a1d._0x220e72,_0x6f8a1d._0x1726f6)+'ant\x20to\x20b'+'ypass\x20th'+_0x1295f5(0x609,0x582)+_0x1b3c5a(0x4e4,0x55a)]['join']('\x0a'));function _0x1295f5(_0x4836cc,_0x116f1e){return _0x9ec63e(_0x116f1e-_0xb9975d._0x2bde75,_0x4836cc);}return _0x4cfb5a;}function listPairPrerequisiteFailures(_0x136c82){const _0x15c326={_0x5ccf02:0x523,_0x40ab49:0x5e1,_0x1c0ef9:0x71e,_0x3a780b:0x692,_0xd93c89:0x34c,_0xcdd66a:0x7c5,_0x4075d3:0x60e,_0x596398:0x3ab,_0x55000f:0x4bd,_0x484f51:0x55f,_0x34ea48:0x6a2,_0x20b529:0x4d8,_0x5e293c:0x647,_0x3e7d98:0x613,_0x2a0a03:0x636,_0x2d58dd:0x874,_0x31aa9f:0x848,_0x4f5481:0x63a,_0x449c75:0x5d6,_0x4fc9ee:0x652,_0x2e3de7:0x5a9,_0x57066f:0x65d,_0x18b982:0x5a3,_0x2202e0:0x652,_0x5d6fad:0x5b7,_0x3eeaf8:0x6ba,_0x5a577f:0x645,_0x5f2cf5:0x390,_0x37473d:0x5e1,_0x4d79b7:0x74b,_0x3d56e5:0x77a,_0x152417:0x775,_0x500741:0x577,_0x5ddb8e:0x6be,_0x14afb3:0x703,_0x8feb60:0x4e3,_0x1dc1c8:0x40b,_0xbcf632:0x6ba,_0x25fd5c:0x876,_0x208598:0x681,_0x5a0d77:0x495,_0x3b2054:0x601,_0x3898d7:0x690,_0x4870ea:0x67c,_0x7520a8:0x487,_0xfc78d7:0x4f4,_0x183a73:0x39d,_0x1f440a:0x566,_0x12f772:0x4de,_0x43b017:0x695,_0x242d92:0x381,_0x41eedf:0x484,_0x56ba3e:0x6f1},_0x2fbd75={_0x17b59d:0x36e},_0xa615c0={_0x46fce4:0x379},_0x20c410={};_0x20c410[_0x1fcdab(_0x15c326._0x5ccf02,_0x15c326._0x40ab49)]=function(_0x207a67,_0x25dd9f){return _0x207a67==_0x25dd9f;},_0x20c410['VzzkO']='OpenClaw'+_0x1fcdab(_0x15c326._0x1c0ef9,_0x15c326._0x3a780b)+'h\x20gatewa'+_0x21b601(0x752,0x696)+_0x21b601(_0x15c326._0xd93c89,0x462)+_0x21b601(_0x15c326._0xcdd66a,0x758)+'figured,'+_0x21b601(0x5e6,0x6f6)+_0x1fcdab(0x744,0x79b)+'h.mode\x20i'+_0x21b601(0x7c3,_0x15c326._0x4075d3);const _0x353e4a=_0x20c410;function _0x1fcdab(_0x263b43,_0x4adf71){return _0x9ec63e(_0x4adf71-_0xa615c0._0x46fce4,_0x263b43);}const _0xf15261=[];!_0x136c82['openclaw'+_0x21b601(_0x15c326._0x596398,0x3c1)+_0x21b601(_0x15c326._0x55000f,_0x15c326._0x484f51)]&&_0xf15261['push'](_0x1fcdab(_0x15c326._0x34ea48,_0x15c326._0x20b529)+_0x21b601(_0x15c326._0x5e293c,_0x15c326._0x3e7d98)+_0x1fcdab(0x79b,0x6e9)+_0x1fcdab(0x5be,_0x15c326._0x2a0a03)+_0x21b601(0x4bc,0x641)+'penclaw/'+'.');_0x136c82['openclaw'+_0x21b601(_0x15c326._0x2d58dd,0x6ba)+'nd']&&_0x136c82[_0x21b601(_0x15c326._0x31aa9f,_0x15c326._0x5e293c)+'Password'+_0x21b601(_0x15c326._0x5e293c,_0x15c326._0x4f5481)]&&_0x353e4a[_0x21b601(0x56e,_0x15c326._0x449c75)](_0x136c82[_0x1fcdab(0x5c6,_0x15c326._0x4fc9ee)+_0x1fcdab(_0x15c326._0x2e3de7,0x703)],null)&&_0xf15261[_0x21b601(_0x15c326._0x57066f,0x4e9)](_0x353e4a['VzzkO']);!_0x136c82[_0x1fcdab(_0x15c326._0x18b982,_0x15c326._0x2202e0)+_0x21b601(_0x15c326._0x5d6fad,_0x15c326._0x3eeaf8)+'nd']&&!_0x136c82['openclaw'+_0x21b601(0x846,0x726)+_0x1fcdab(0x724,_0x15c326._0x5a577f)]&&_0xf15261['push'](_0x21b601(_0x15c326._0x5f2cf5,0x4cd)+_0x1fcdab(_0x15c326._0x37473d,_0x15c326._0x4d79b7)+'\x20auth\x20is'+'\x20missing'+_0x1fcdab(0x6f0,0x680)+_0x21b601(_0x15c326._0x3d56e5,0x6ed)+_0x1fcdab(_0x15c326._0x152417,_0x15c326._0x500741));_0x136c82[_0x1fcdab(0x772,0x652)+_0x1fcdab(_0x15c326._0x5ddb8e,_0x15c326._0x14afb3)]===_0x1fcdab(_0x15c326._0x8feb60,_0x15c326._0x1dc1c8)&&!_0x136c82[_0x21b601(0x761,0x647)+_0x21b601(0x6dd,_0x15c326._0xbcf632)+'nd']&&_0xf15261[_0x21b601(0x3eb,0x4e9)](_0x21b601(0x417,0x4cd)+'\x20gateway'+'\x20token\x20i'+_0x1fcdab(_0x15c326._0x25fd5c,0x6d3)+'g.');function _0x21b601(_0x17dc14,_0x54e1f9){return _0x9ec63e(_0x54e1f9-_0x2fbd75._0x17b59d,_0x17dc14);}return _0x136c82[_0x21b601(_0x15c326._0x208598,0x647)+_0x21b601(0x8c8,0x6f8)]===_0x1fcdab(0x3f1,_0x15c326._0x5a0d77)&&!_0x136c82[_0x21b601(_0x15c326._0x3b2054,0x647)+'Password'+_0x21b601(0x49b,0x63a)]&&_0xf15261[_0x1fcdab(0x3eb,0x4f4)]('OpenClaw'+_0x21b601(0x7c8,0x740)+_0x1fcdab(0x5e7,_0x15c326._0x3898d7)+_0x21b601(0x72a,_0x15c326._0x4870ea)+'sing.'),!_0x136c82['localGat'+_0x21b601(0x754,0x5c7)+_0x1fcdab(0x40f,_0x15c326._0x7520a8)]&&_0xf15261[_0x1fcdab(0x6f0,_0x15c326._0xfc78d7)]('Local\x20Op'+_0x1fcdab(_0x15c326._0x183a73,_0x15c326._0x1f440a)+'ateway\x20i'+_0x21b601(0x600,0x5ba)+_0x21b601(_0x15c326._0x12f772,_0x15c326._0x43b017)+'at\x20'+_0x136c82[_0x21b601(_0x15c326._0x242d92,_0x15c326._0x41eedf)+_0x1fcdab(_0x15c326._0x56ba3e,0x685)]+'.'),_0xf15261;}function readLogFile(_0x2e4276){const _0x36d3ed={_0x42e352:0x1a2,_0x4b0335:0x17b,_0x113cf5:0x1e2,_0xe7b607:0xdf},_0x3deb77={_0x2a49e2:0x321},_0x412e79={_0x8aee1b:0xcc};function _0x373c54(_0x2e685f,_0x2d25a1){return _0x9ec63e(_0x2d25a1- -_0x412e79._0x8aee1b,_0x2e685f);}function _0x54ec7c(_0x24013e,_0x28d151){return _0x9ec63e(_0x28d151- -_0x3deb77._0x2a49e2,_0x24013e);}try{const _0x4b1586=_0x236477(_0x2e4276,_0x54ec7c(-_0x36d3ed._0x42e352,-_0x36d3ed._0x4b0335));return _0x4b1586[_0x373c54(-_0x36d3ed._0x113cf5,0x4)](/\r?\n/)['filter'](Boolean)[_0x373c54(-0xcf,_0x36d3ed._0xe7b607)](_0x2d7a9d=>({'raw':_0x2d7a9d,'ts':parseTimestamp(_0x2d7a9d)}));}catch{return[];}}function parseTimestamp(_0x5884b0){const _0xd89023={_0x3a0c54:0xf,_0x19ef4f:0x31},_0x29c210={_0x226497:0xc9};function _0x437e4(_0x5f208c,_0x5852bd){return _0x431448(_0x5f208c,_0x5852bd- -0x27a);}const _0x143ea0=_0x5884b0[_0x437e4(0x1,0xfa)](/^\[(\d{13})\]\s/);function _0x45d3e6(_0x10d3e8,_0x2eafc3){return _0x431448(_0x10d3e8,_0x2eafc3-_0x29c210._0x226497);}if(!_0x143ea0)return null;const _0x203cdf=Number(_0x143ea0[0x1]);return Number[_0x437e4(-_0xd89023._0x3a0c54,-_0xd89023._0x19ef4f)](_0x203cdf)?_0x203cdf:null;}function clampLines(_0x582e00){const _0x480f27={_0x599db9:0x2f3,_0x1c62e8:0x4e7,_0x30aadc:0x630,_0x57b7f3:0x34d},_0x22e525={_0x51338b:0x2c2};function _0x509b1d(_0x57ea26,_0x55baa5){return _0x9ec63e(_0x57ea26-0x26f,_0x55baa5);}if(!Number['isFinite'](_0x582e00))return 0xc8;function _0x336627(_0x4d2308,_0x5a1b2d){return _0x9ec63e(_0x5a1b2d-_0x22e525._0x51338b,_0x4d2308);}return Math[_0x509b1d(_0x480f27._0x599db9,_0x480f27._0x1c62e8)](0x1,Math[_0x509b1d(0x452,_0x480f27._0x30aadc)](0x7d0,Math[_0x336627(_0x480f27._0x57b7f3,0x371)](_0x582e00)));}async function checkGatewayReachable(_0x3df930){const _0x595dcc={_0x679271:0x33f,_0x1d12c9:0x33b,_0x581278:0x2aa,_0x377428:0x141,_0x351222:0x16a,_0x4ebaf3:0x1c2},_0x94282={_0x5e08a2:0x460,_0x55cb11:0x4b3,_0x4df121:0x643},_0x57dd8c={_0x56ddfb:0x4f4},_0x210217={_0x3c0189:0x2e1,_0x4644e9:0x396,_0x664d65:0x24f},_0x1dbb1f={_0x3e79e8:0x23c},_0x5f5267={_0x5478e1:0x22d};function _0x6eb4b4(_0x2950d3,_0x5b14e9){return _0x9ec63e(_0x2950d3-_0x5f5267._0x5478e1,_0x5b14e9);}const _0x11aedf={'naPxm':function(_0xcb396e){return _0xcb396e();},'zYJUq':function(_0x52b7f5,_0x25ea1d){return _0x52b7f5(_0x25ea1d);},'PjGSm':_0x6eb4b4(0x47d,0x4c4)};function _0x1d3d74(_0x37c187,_0x37e79b){return _0x9ec63e(_0x37e79b- -_0x1dbb1f._0x3e79e8,_0x37c187);}try{const _0x2d9611=new URL(_0x3df930),_0x1d090a=_0x2d9611[_0x6eb4b4(_0x595dcc._0x679271,_0x595dcc._0x1d12c9)]||_0x1d3d74(-_0x595dcc._0x581278,-_0x595dcc._0x377428)+'1',_0x5357d7=_0x2d9611[_0x1d3d74(_0x595dcc._0x351222,_0x595dcc._0x4ebaf3)]?Number(_0x2d9611[_0x1d3d74(0x20d,_0x595dcc._0x4ebaf3)]):_0x2d9611['protocol']===_0x11aedf['PjGSm']?0x1bb:0x50;return await new Promise((_0x531446,_0x261d50)=>{const _0x7f83df={_0x439bda:0x477},_0x402734={_0x1b86a5:0x29c},_0x1c7b9a={_0x11a168:0x490},_0x449882={_0x21802c:0x4da,_0x519f30:0x109},_0x258c34={_0x2bd0fd:0x22f},_0x22c93c={_0x277459:0x573,_0x10a20a:0x66e},_0x5203c5={'GXeLf':function(_0x2914c4,_0x299185){function _0x41577b(_0x1e01d2,_0x19ffc2){return _0x1bf0(_0x1e01d2-0x2f1,_0x19ffc2);}return _0x11aedf[_0x41577b(_0x22c93c._0x277459,_0x22c93c._0x10a20a)](_0x2914c4,_0x299185);}},_0x3d23cc=new Socket();_0x3d23cc[_0x6de274(_0x94282._0x5e08a2,0x3ea)+'ut'](0x384),_0x3d23cc['once']('connect',()=>{const _0x2f8280={_0x58d97a:0x48a};function _0x4419de(_0x53323a,_0x2f2445){return _0x6de274(_0x53323a- -_0x2f8280._0x58d97a,_0x2f2445);}_0x3d23cc[_0x30dea0(0x1b3,_0x210217._0x3c0189)]();function _0x30dea0(_0x13929a,_0x125722){return _0x6de274(_0x125722- -_0x258c34._0x2bd0fd,_0x13929a);}_0x11aedf[_0x30dea0(_0x210217._0x4644e9,_0x210217._0x664d65)](_0x531446);}),_0x3d23cc[_0x4ee6d9(0x549,0x3e9)]('timeout',()=>{const _0x5ad6ad={_0x28f49a:0x1a5};_0x3d23cc[_0x3865ef(_0x449882._0x21802c,0x6d7)]();function _0x3865ef(_0x4e75f4,_0x517538){return _0x4ee6d9(_0x517538,_0x4e75f4-_0x5ad6ad._0x28f49a);}function _0x2bbd40(_0x49169d,_0x19c86a){return _0x4ee6d9(_0x19c86a,_0x49169d- -0x343);}_0x261d50(new Error(_0x2bbd40(_0x449882._0x519f30,0x19)));}),_0x3d23cc[_0x6de274(0x5c4,_0x94282._0x55cb11)]('error',_0x187775=>{function _0x15529c(_0x340e55,_0x2e52aa){return _0x6de274(_0x2e52aa- -0x1c,_0x340e55);}_0x3d23cc[_0x15529c(0x666,_0x57dd8c._0x56ddfb)]();function _0xdff93f(_0x5aeaf8,_0x5abb15){return _0x6de274(_0x5aeaf8- -_0x1c7b9a._0x11a168,_0x5abb15);}_0x5203c5[_0xdff93f(0x1ed,0x224)](_0x261d50,_0x187775);});function _0x4ee6d9(_0x9efe4b,_0x398f7f){return _0x1d3d74(_0x9efe4b,_0x398f7f-_0x402734._0x1b86a5);}function _0x6de274(_0x44f08f,_0x3dce8b){return _0x1d3d74(_0x3dce8b,_0x44f08f-_0x7f83df._0x439bda);}_0x3d23cc[_0x6de274(_0x94282._0x4df121,0x81d)](_0x5357d7,_0x1d090a);}),!![];}catch{return![];}}function parseLookbackToMs(_0x1bdd34){const _0x59dd99={_0x1cbad6:0x4a,_0x37c8f7:0x1cd,_0x1d2bf4:0x43,_0x37fa9d:0x143,_0x564784:0x1fc,_0xd35336:0x2a8,_0x22e0d1:0x4,_0xc51107:0xd6,_0x7df9b9:0x3cc},_0x4fb636={_0x568e1b:0x2d7},_0x301f6f={};_0x301f6f[_0x3089ac(-_0x59dd99._0x1cbad6,-0x82)]=function(_0x15ee42,_0x1ea4dd){return _0x15ee42===_0x1ea4dd;};const _0x1dba5f=_0x301f6f,_0x27a802=_0x1bdd34?.[_0x38defc(0x391,_0x59dd99._0x37c8f7)]();function _0x3089ac(_0x61dee7,_0x427782){return _0x9ec63e(_0x61dee7- -_0x4fb636._0x568e1b,_0x427782);}if(!_0x27a802)return null;const _0x36b869=_0x27a802[_0x3089ac(_0x59dd99._0x1d2bf4,-_0x59dd99._0x37fa9d)](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x36b869)throw new Error(_0x3089ac(-_0x59dd99._0x564784,-0x13b)+'--last\x20v'+_0x3089ac(-0x109,-_0x59dd99._0xd35336)+_0x27a802+(_0x3089ac(-0x222,-0x329)+'alues\x20li'+_0x3089ac(-0x79,-0x10f)+_0x38defc(0x18f,_0x59dd99._0x22e0d1)+_0x3089ac(-_0x59dd99._0xc51107,-0x133)));const _0x554b6e=Number(_0x36b869[0x1]),_0x5a447c=_0x36b869[0x2]['toLowerC'+_0x38defc(_0x59dd99._0x7df9b9,0x268)](),_0x36efa0=_0x5a447c==='ms'?0x1:_0x1dba5f['UORkA'](_0x5a447c,'s')?0x3e8:_0x5a447c==='m'?0xea60:_0x5a447c==='h'?0x36ee80:0x5265c00;function _0x38defc(_0x5be1a6,_0x418a33){return _0x9ec63e(_0x5be1a6-0xc2,_0x418a33);}return _0x554b6e*_0x36efa0;}import{readFileSync as _0x500803}from'fs';import{dirname as _0x5a8ef5,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x262366={_0x5b96fc:0x4ab,_0x64cf44:0x23d,_0x2a1092:0x359,_0x4584e9:0x419,_0x52e376:0x303},_0x4632cb={_0x294d20:0x26},_0xd418e6={_0x4a62ff:0xdb},_0x54cc45={'fuQzh':function(_0x524735,_0x399997){return _0x524735(_0x399997);},'DAhrK':function(_0x5286f2,_0x1803eb,_0x506539){return _0x5286f2(_0x1803eb,_0x506539);},'lbcQu':_0x41800f(0x2db,_0x262366._0x5b96fc)},_0x3816ef=_0x5a8ef5(_0x54cc45['fuQzh'](fileURLToPath,import.meta.url)),_0x256208=_0x54cc45['DAhrK'](resolve,_0x3816ef,_0x41800f(_0x262366._0x64cf44,0x16b)+_0x3a6105(_0x262366._0x2a1092,0x197));function _0x41800f(_0x6b87aa,_0x178ffd){return _0x431448(_0x178ffd,_0x6b87aa-_0xd418e6._0x4a62ff);}const _0x1bcc72=_0x500803(_0x256208,_0x54cc45[_0x41800f(_0x262366._0x4584e9,_0x262366._0x52e376)]);function _0x3a6105(_0x261056,_0x1520b8){return _0x431448(_0x1520b8,_0x261056- -_0x4632cb._0x294d20);}const _0x48a331=JSON['parse'](_0x1bcc72);return _0x48a331['version']??'unknown';}function buildPairingJson(_0x161a76,_0x33f3bd,_0x2b7400,_0xe4e3c4){const _0x11fc5d={_0xe4c060:0x775,_0x306821:0x611,_0x395bf1:0x759,_0x39a88f:0x4a2,_0x5d1b7c:0x5a6,_0x360203:0x9f7,_0x5cbe84:0x5b0,_0x56a88b:0x57a,_0x47cdae:0x585,_0x41b2b7:0x54c,_0x16f8fb:0x5db,_0x533aab:0x448,_0x4b9178:0x436,_0x24f499:0x82d,_0x46e9db:0x749,_0x63c986:0x6f2,_0x181cfb:0x6e9,_0x255436:0x884,_0x1904de:0x4d9,_0x25793b:0x33d,_0x4f1c6a:0x53b,_0x370879:0x657,_0x5da84c:0x654,_0x4fbfa1:0x3ce,_0xe710cc:0x61f,_0x2cd550:0x439,_0x4f11b4:0x798,_0x5e008c:0x5f6},_0x2c81f8={_0x484f4e:0x3ae},_0x2ca9b3={};_0x2ca9b3[_0x1e7e3d(_0x11fc5d._0xe4c060,_0x11fc5d._0x306821)+'d']=_0x2b7400[_0x1e7e3d(_0x11fc5d._0xe4c060,_0x11fc5d._0x395bf1)+'d'],_0x2ca9b3[_0x16e19d(0x4f9,0x3ee)]=_0x2b7400[_0x1e7e3d(_0x11fc5d._0x39a88f,_0x11fc5d._0x5d1b7c)],_0x2ca9b3[_0x1e7e3d(0x812,_0x11fc5d._0x360203)]=_0x2b7400['method'],_0x2ca9b3['serviceP'+_0x1e7e3d(0x61f,0x679)]=_0x2b7400[_0x16e19d(0x5c6,0x51a)+'ath'];function _0x1e7e3d(_0x5e0577,_0x3aaf69){return _0x431448(_0x3aaf69,_0x5e0577-_0x2c81f8._0x484f4e);}_0x2ca9b3[_0x16e19d(0x57a,_0x11fc5d._0x5cbe84)]=_0x2b7400[_0x16e19d(_0x11fc5d._0x56a88b,_0x11fc5d._0x47cdae)],_0x2ca9b3['errorLog'+_0x1e7e3d(0x5b1,_0x11fc5d._0x41b2b7)]=_0x2b7400['errorLog'+_0x16e19d(0x608,_0x11fc5d._0x16f8fb)],_0x2ca9b3[_0x16e19d(0x49f,0x360)]=_0x2b7400[_0x1e7e3d(_0x11fc5d._0x533aab,_0x11fc5d._0x4b9178)];const _0x17f5f6={};_0x17f5f6['ok']=!![],_0x17f5f6['action']=_0x161a76['action'],_0x17f5f6['message']=_0xe4e3c4,_0x17f5f6[_0x1e7e3d(0x5ef,0x583)+'d']=_0x161a76[_0x1e7e3d(_0x11fc5d._0x24f499,_0x11fc5d._0x46e9db)][_0x16e19d(0x646,_0x11fc5d._0x63c986)+'d'],_0x17f5f6[_0x1e7e3d(_0x11fc5d._0x181cfb,0x7a4)]=_0x161a76[_0x16e19d(_0x11fc5d._0x255436,0x966)][_0x1e7e3d(0x6e9,0x622)],_0x17f5f6[_0x16e19d(0x579,0x632)+'l']=_0x161a76[_0x1e7e3d(0x82d,0x9e2)][_0x1e7e3d(0x522,0x545)+'l'],_0x17f5f6['instance'+'Id']=_0x161a76[_0x1e7e3d(0x82d,0x8d2)]['instance'+'Id'],_0x17f5f6[_0x16e19d(_0x11fc5d._0x1904de,0x568)+'de']=_0x161a76['accessCo'+'de'],_0x17f5f6[_0x16e19d(0x4d9,_0x11fc5d._0x25793b)+_0x16e19d(0x535,_0x11fc5d._0x4f1c6a)+_0x1e7e3d(_0x11fc5d._0x370879,0x601)]=_0x161a76['accessCo'+_0x16e19d(0x535,0x3b0)+_0x16e19d(0x6ae,_0x11fc5d._0x5da84c)],_0x17f5f6[_0x16e19d(0x4de,_0x11fc5d._0x4fbfa1)+_0x1e7e3d(_0x11fc5d._0xe710cc,_0x11fc5d._0x2cd550)]=_0x33f3bd,_0x17f5f6[_0x1e7e3d(_0x11fc5d._0x4f11b4,_0x11fc5d._0x5e008c)]=_0x2ca9b3;function _0x16e19d(_0x27f607,_0x1cc8d2){return _0x431448(_0x1cc8d2,_0x27f607-0x405);}return _0x17f5f6;}import{mkdirSync as _0x41762f,writeFileSync as _0x47d3ab}from'fs';import{dirname as _0x497424,isAbsolute,join as _0x13ee84,resolve as _0x37838e}from'path';import _0x142aec from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x1a74f0,_0x2695b4){const _0x37ca76={_0x498fc0:0xae,_0x1b451b:0xc8,_0x4a4eda:0x1f6,_0x5bce00:0x244,_0x219cbf:0xe6,_0x217969:0xbf,_0x4d2abd:0x102,_0x3d39ef:0x1b3,_0x3a4250:0x110,_0x23e725:0x8,_0x4330e9:0x1a1},_0x52e599={_0x15f979:0x1b0},_0x2d15e8=resolveQrOutputPath(_0x1a74f0,_0x2695b4),_0x45397a={};_0x45397a[_0x3253c0(-0x119,-0x1f9)+'e']=!![],_0x41762f(_0x497424(_0x2d15e8),_0x45397a);const _0x295e95={};_0x295e95[_0x3253c0(0x181,_0x37ca76._0x498fc0)]=_0x2c16de(0x114,-0x6)+'g',_0x295e95[_0x2c16de(-_0x37ca76._0x1b451b,-_0x37ca76._0x4a4eda)+_0x2c16de(0x255,_0x37ca76._0x5bce00)+_0x3253c0(0x132,0xa2)]='M';function _0x2c16de(_0x19875c,_0x56c825){return _0x9ec63e(_0x19875c- -_0x52e599._0x15f979,_0x56c825);}_0x295e95['margin']=0x1,_0x295e95[_0x3253c0(-_0x37ca76._0x219cbf,_0x37ca76._0x217969)]=0x2d0;function _0x3253c0(_0x33360d,_0x92aff5){return _0x9ec63e(_0x92aff5- -0x2a2,_0x33360d);}const _0x35b93c=await _0x142aec['toDataUR'+'L'](_0x1a74f0[_0x3253c0(-_0x37ca76._0x4d2abd,-_0x37ca76._0x3d39ef)+'d'],_0x295e95),_0x15450d=_0x35b93c[_0x2c16de(0x12f,_0x37ca76._0x3a4250)](/^data:image\/png;base64,/,'');return _0x47d3ab(_0x2d15e8,Buffer[_0x2c16de(-_0x37ca76._0x23e725,_0x37ca76._0x4330e9)](_0x15450d,'base64')),_0x2d15e8;}function resolveQrOutputPath(_0x946228,_0xa1be00){const _0x246238={_0x50a8a7:0x3e6,_0x3d5d0f:0x480,_0x312261:0x400,_0x3f0040:0xe0,_0x5ce7ef:0x1c2,_0x219473:0x25f,_0xc02fcf:0x3f2},_0x8171d2={'MgIlx':function(_0xfde867,_0x20eecc){return _0xfde867(_0x20eecc);}},_0x59e2e8=_0xa1be00?.[_0x581a6(_0x246238._0x50a8a7,0x4b4)]();if(_0x59e2e8)return isAbsolute(_0x59e2e8)?_0x59e2e8:_0x8171d2[_0x581a6(_0x246238._0x3d5d0f,0x677)](_0x37838e,_0x59e2e8);function _0x5bb126(_0x23c197,_0xe5d662){return _0x431448(_0x23c197,_0xe5d662- -0x7f);}function _0x581a6(_0x2d2a82,_0xda115f){return _0x431448(_0xda115f,_0x2d2a82-0xbd);}return _0x13ee84(DEFAULT_QR_DIR,_0x946228[_0x5bb126(0x2cd,_0x246238._0x312261)][_0x5bb126(_0x246238._0x3f0040,_0x246238._0x5ce7ef)+'d']+_0x5bb126(_0x246238._0x219473,_0x246238._0xc02fcf));}function decidePairServiceAction(_0x1e6763,_0x2c23c5){const _0x2e0cc3={_0xf9bb56:0x237,_0x5e2db0:0x9c,_0x34e97a:0x2c4,_0x3fe1ab:0x1a0,_0x42782a:0xb5,_0x5d6697:0x306,_0x1797c0:0x293,_0x33a984:0x301,_0x1cb476:0x1bb,_0x479fb4:0x3c},_0x34210b={_0x11b5bf:0x3f},_0x19c302={_0x7c0109:0x36e};function _0x3c0c7a(_0x18963f,_0x2952c2){return _0x431448(_0x2952c2,_0x18963f- -_0x19c302._0x7c0109);}const _0x22971f={};_0x22971f[_0x3c0c7a(-0x10e,-0x264)]='install';function _0x23ac1f(_0x4af375,_0x36e0d6){return _0x431448(_0x4af375,_0x36e0d6- -_0x34210b._0x11b5bf);}_0x22971f[_0x23ac1f(_0x2e0cc3._0xf9bb56,_0x2e0cc3._0x5e2db0)]=function(_0x4acb89,_0x13d7c9){return _0x4acb89===_0x13d7c9;},_0x22971f[_0x23ac1f(_0x2e0cc3._0x34e97a,0x215)]='restart';const _0x3921c5=_0x22971f;if(!_0x2c23c5['installe'+'d'])return _0x3921c5[_0x23ac1f(_0x2e0cc3._0x3fe1ab,0x221)];if(!_0x2c23c5[_0x23ac1f(0x211,_0x2e0cc3._0x42782a)])return _0x23ac1f(_0x2e0cc3._0x5d6697,0x1db);if(_0x3921c5[_0x3c0c7a(-_0x2e0cc3._0x1797c0,-_0x2e0cc3._0x33a984)](_0x1e6763['action'],_0x3c0c7a(0x66,_0x2e0cc3._0x1cb476)+'ed'))return _0x3921c5[_0x23ac1f(0x3b2,0x215)];return _0x3c0c7a(-0x1e8,-_0x2e0cc3._0x479fb4);}async function main(){const _0x111053={_0x132558:0x59,_0xf8b231:0xa4,_0x107870:0x265,_0x2baaeb:0x1a2,_0x1b5531:0x4ca,_0x325de6:0x41d,_0x25c572:0x18b,_0x358ee5:0xa0,_0x3f03b9:0xce,_0x4203d4:0x206,_0x3c0efc:0x3c7,_0x210e97:0x244,_0x33fb7d:0x154,_0x2800c8:0xc5,_0x31b83e:0x304,_0x32ec66:0x799,_0x48c3da:0x4b,_0x33b0eb:0x161,_0x141e1d:0x12a,_0x2e9794:0x1f1,_0x1503d2:0xe5,_0x41aeb1:0xd1,_0xf157bd:0x588,_0x1e2211:0x15a,_0x2b29aa:0xa7,_0x5b1e1b:0x346,_0x1b55f5:0x37e,_0x15edfd:0x56a,_0x294ae6:0x16e,_0x2cbf23:0x2f6,_0x5d23df:0x3de,_0x3ed30d:0x167,_0x4b349f:0x9e,_0x27302a:0x6d,_0x2caa56:0x9a,_0x35266c:0x34b,_0x5206c5:0x42c,_0x350b24:0x12b,_0x9356bb:0xbb,_0x37b615:0x1b8,_0x19718f:0x145,_0x5c8ec5:0x12b,_0x29805e:0xf1,_0x5a8390:0x2f2,_0x4e2a1f:0x1bd,_0x1eceff:0x232,_0x34160c:0x20c,_0x57c8ea:0x158,_0x1b7e00:0x4da,_0x15c8bd:0x577,_0xc62f8a:0x226,_0x2b15df:0x374,_0x5971d2:0x5f,_0x3bc515:0xc,_0x104c2e:0x6d6,_0x5a5dbb:0x60f,_0x47567c:0x392,_0xdaa111:0x236,_0xc39fd9:0x53c,_0x10b9f4:0x719,_0x4369f5:0x118,_0x25d923:0xf2,_0x262960:0x406,_0x223343:0x5e9,_0x3e6ef8:0xd8,_0x487754:0x49,_0x517f74:0xbd,_0x2ba9e0:0x2d7,_0x296222:0x43,_0x4f3715:0xb3,_0x735e21:0x5cf,_0x210a71:0x1a3,_0x41066c:0x1c3,_0x12cf65:0x4,_0x410689:0x569,_0x2a37ce:0x7af,_0x3b5fb0:0x44c,_0x2b1be9:0xec,_0x59eff6:0x2c0,_0xb6dc45:0x5fa,_0x4dc23d:0x4a0,_0x1b9908:0x1d6,_0x350ffd:0x1c4,_0x49c2a4:0x6f3,_0x148b2:0x680,_0xf47aa3:0x414,_0x1e6942:0x153,_0x4f7cc6:0x365,_0xd3161d:0x53d,_0x54c0a4:0x5df,_0x2bf266:0x705,_0x204fb5:0x1e2,_0x2d4057:0xb2,_0x372c4a:0x636,_0x419b04:0x1d,_0x5ba2c6:0x44d,_0x452270:0x48e,_0x991c4:0x41a,_0x7c5acf:0x4e0,_0x5910ff:0x1d,_0x49b156:0x260,_0x2c0b05:0x62d,_0x24d20d:0x6ec,_0x114cbf:0x1f,_0xe82af7:0x13e,_0x12b861:0x126,_0xbcd970:0x6f,_0x2cf936:0x7b,_0x6a5aa6:0x3d,_0x533ece:0x18e,_0x340885:0x342,_0x5b9509:0x386,_0x264852:0x16,_0x377a89:0x11c,_0x2ee631:0xcf,_0x5e1af1:0x2c1,_0x3a2d31:0x29a,_0x95220b:0x336,_0xf8d3c:0x247,_0x229a14:0xc8,_0x4c2f1d:0x45f,_0x338e14:0xe4,_0x428718:0x576,_0x285025:0x461,_0x14b251:0x20a,_0x507f04:0x17a,_0x501b97:0x274,_0x53bfae:0x1c9,_0x4a73b6:0xfa,_0xe4599a:0x22a,_0x56a74e:0x185,_0x4eb03a:0x1b3,_0x5880e7:0x18f,_0x7d3f16:0x461,_0x5caef2:0x44d,_0x28eba7:0x5cb,_0x522933:0x299,_0x1bf00f:0x449,_0x312b7c:0x1de,_0x33d7b3:0x306,_0x1691b7:0xd5,_0x23481e:0xe3,_0x2147f9:0xd4,_0x264d25:0x56,_0x1126e4:0x2a5,_0x498287:0x1d,_0x2c2182:0x3,_0x5ef3b3:0x352,_0x37aab7:0x479,_0x1e981c:0x64f},_0x5537c5={_0x45fe32:0x96,_0x3edee9:0x45,_0x329eaf:0x14e,_0x44b344:0x316,_0x1a43a4:0x73,_0x5b38eb:0x42,_0x37329b:0x162,_0x31f88c:0x2e9},_0x172ec0={_0x1aaf4a:0x459},_0x17f057={_0x1836eb:0x233,_0x5e04ee:0xe7,_0x17d37e:0x1e1,_0x139921:0xf8,_0x55c648:0xe1,_0xce9421:0x1,_0x1708a0:0x22f,_0x59cce1:0x568,_0xce0d89:0x153,_0x2a4d4c:0x4b5,_0x2188ed:0x2b2,_0x2c2f34:0xdf,_0xcfd75c:0x1b6,_0x26ee98:0x310},_0x45658e={_0x5a54b7:0x2bb},_0x3ecd8c={_0x9d0e65:0x31d,_0x17fa21:0x3db,_0x4859a3:0x561,_0x2dbd10:0x665,_0x16ea5e:0x6aa,_0x29528a:0x4fc,_0x713e65:0x241,_0x153065:0x7a,_0x2136a0:0xbb,_0xd20ae7:0x131,_0x48d22d:0x26c,_0x102970:0xca,_0x33191d:0x168,_0x344152:0x1f9,_0x262b20:0x3db,_0x13be74:0x3c7,_0x5d75e3:0x183,_0x46c072:0x36c,_0x582622:0x355,_0x1e0ec8:0x24d},_0x4fdee2={_0x416a13:0x4fe,_0x866ab2:0x4e3},_0x2cd34b={_0x1a4320:0x19c,_0x2a36f6:0x109,_0x340583:0x272,_0x100750:0x2e2},_0x521e23={_0x3ca207:0x363},_0x15e8b2={'DrxEt':function(_0x53456b,_0x37f706){return _0x53456b(_0x37f706);},'PMirx':function(_0x55050d,_0x204dba){return _0x55050d(_0x204dba);},'LqEFg':_0x1abcba(0x203,_0x111053._0x132558),'INwwG':_0x1abcba(0x1f7,_0x111053._0xf8b231),'DggkL':_0x1abcba(0xb0,_0x111053._0x107870)+'e','uUhby':function(_0x1e2456,_0x4927d3,_0x4be671){return _0x1e2456(_0x4927d3,_0x4be671);},'TiTKv':_0x1abcba(_0x111053._0x2baaeb,-0x64),'eAvAO':_0x1abcba(0x75,-0x165)+_0x5325ff(_0x111053._0x1b5531,0x607)+_0x5325ff(0x459,0x4cb)+_0x5325ff(0x3c4,_0x111053._0x325de6),'Xjpkr':function(_0x23f0c2,_0x486faa){return _0x23f0c2===_0x486faa;},'PmcsL':function(_0xe84cd9,_0x1960a4,_0x2292c7,_0x3fb1e6,_0x52c35a){return _0xe84cd9(_0x1960a4,_0x2292c7,_0x3fb1e6,_0x52c35a);},'HyzWS':function(_0x5e6f37,_0x185be0,_0x56eea6){return _0x5e6f37(_0x185be0,_0x56eea6);},'TLDci':_0x1abcba(-0xb,-_0x111053._0x25c572),'OIhNi':_0x5325ff(0x427,0x512)+'talled\x20b'+'ackgroun'+_0x1abcba(0xe1,_0x111053._0x358ee5)+'e.','aSxgd':'register'+'ed','ebdsT':function(_0x38083c,_0x51ac8c,_0x34d5cf){return _0x38083c(_0x51ac8c,_0x34d5cf);},'obQUy':'--qr-fil'+'e','ywVSF':function(_0x556a1a,_0x4a7787){return _0x556a1a in _0x4a7787;},'HAGgr':'error','amURD':function(_0xe734f2,_0x717b51){return _0xe734f2(_0x717b51);},'rXMRo':function(_0x254fb9,_0x466994){return _0x254fb9===_0x466994;},'sLtEJ':function(_0x239f66){return _0x239f66();},'uDlEa':function(_0x23b1f3,_0x533efa,_0x570b84){return _0x23b1f3(_0x533efa,_0x570b84);},'OShbn':_0x1abcba(_0x111053._0x3f03b9,_0x111053._0x4203d4)+'l','dCpKM':function(_0xb41191){return _0xb41191();},'KrTLr':function(_0x2747ac){return _0x2747ac();},'tuNhE':function(_0x1a4132,_0x3e8dca){return _0x1a4132===_0x3e8dca;},'Ijepa':function(_0x2ced1b,_0x78914c){return _0x2ced1b(_0x78914c);},'BhMhf':'--errors','GaubZ':function(_0x1d497d,_0x5726fe){return _0x1d497d===_0x5726fe;},'WLyIj':function(_0x35db6e,_0x23c720,_0x1a4c61){return _0x35db6e(_0x23c720,_0x1a4c61);},'rvmwU':function(_0x45cc69,_0x29bc85,_0x5ad76a){return _0x45cc69(_0x29bc85,_0x5ad76a);},'HTiRZ':_0x5325ff(_0x111053._0x3c0efc,_0x111053._0x210e97)},[,,_0x5e2d69='help',..._0x32b198]=process[_0x1abcba(_0x111053._0x33fb7d,_0x111053._0x2800c8)],_0x71fd2d=hasFlag(_0x32b198,_0x15e8b2['DggkL']),_0x51fbf7=_0x15e8b2[_0x5325ff(_0x111053._0x31b83e,0x3ed)](hasFlag,_0x32b198,_0x5325ff(0x68e,_0x111053._0x32ec66));if(_0x5e2d69===_0x1abcba(-_0x111053._0x48c3da,-_0x111053._0x33b0eb)){const _0x58a5b8=_0x15e8b2[_0x1abcba(-_0x111053._0x141e1d,-_0x111053._0x2e9794)](hasFlag,_0x32b198,_0x1abcba(-_0x111053._0x1503d2,_0x111053._0x41aeb1));!_0x58a5b8&&await ensurePairPrerequisites();const _0x4d6a42=resolveGatewayAuth();if(_0x5325ff(_0x111053._0xf157bd,0x54e)in _0x4d6a42)throw new Error(_0x4d6a42[_0x1abcba(_0x111053._0x1e2211,0xe3)]);const _0x309c34=_0x15e8b2[_0x1abcba(-_0x111053._0x141e1d,_0x111053._0x2b29aa)](readFlag,_0x32b198,_0x15e8b2['TiTKv'])??readFlag(_0x32b198,'-s')??_0x15e8b2[_0x5325ff(0x47f,0x33b)],_0x2c3b86=readFlag(_0x32b198,_0x1abcba(-0x171,-_0x111053._0x5b1e1b))??readFlag(_0x32b198,'-n')??getDefaultBridgeDisplayName(),_0x418ef2=readFlag(_0x32b198,'--qr-fil'+'e'),_0x11cb9f={};_0x11cb9f[_0x5325ff(_0x111053._0x1b55f5,_0x111053._0x15edfd)+'l']=_0x309c34,_0x11cb9f['displayN'+'ame']=_0x2c3b86,_0x11cb9f[_0x1abcba(-_0x111053._0x294ae6,-0x74)+_0x1abcba(0x1cc,0x1bc)]=_0x4d6a42[_0x5325ff(_0x111053._0x2cbf23,_0x111053._0x5d23df)],_0x11cb9f['gatewayP'+_0x1abcba(0x209,_0x111053._0x3ed30d)]=_0x4d6a42[_0x5325ff(0x380,0x3ec)];const _0x18c9c4=await _0x15e8b2['DrxEt'](pairGateway,_0x11cb9f),_0x422c6a=await writePairingQrPng(_0x18c9c4,_0x418ef2),_0x2e9f3e=getServiceStatus(),_0x46a3ba=decidePairServiceAction(_0x18c9c4,_0x2e9f3e);if(_0x15e8b2[_0x1abcba(0x232,0x306)](_0x46a3ba,_0x1abcba(-_0x111053._0x4b349f,_0x111053._0x27302a))){_0x51fbf7?printJson(_0x15e8b2[_0x5325ff(0x425,0x48f)](buildPairingJson,_0x18c9c4,_0x422c6a,_0x2e9f3e,'Backgrou'+_0x1abcba(0x10e,_0x111053._0x2caa56)+_0x5325ff(_0x111053._0x35266c,0x30f)+_0x5325ff(0x573,_0x111053._0x5206c5)+'ng.\x20Left'+'\x20unchang'+_0x1abcba(-_0x111053._0x350b24,-_0x111053._0x9356bb))):(printPairingInfo(_0x18c9c4,_0x422c6a),console['log']('Backgrou'+_0x1abcba(0x10e,_0x111053._0x37b615)+_0x5325ff(_0x111053._0x35266c,0x2d7)+_0x1abcba(_0x111053._0x19718f,0x143)+'ng.\x20Left'+'\x20unchang'+_0x1abcba(-_0x111053._0x5c8ec5,-_0x111053._0x29805e)),_0x15e8b2[_0x5325ff(_0x111053._0x5a8390,0x3ce)](printServiceResult,null,_0x2e9f3e));return;}try{const _0x33fceb=_0x15e8b2['Xjpkr'](_0x46a3ba,_0x1abcba(-0xb,-0x179))?installService():restartService(),_0x58045f=_0x15e8b2['Xjpkr'](_0x46a3ba,_0x15e8b2[_0x1abcba(_0x111053._0x4e2a1f,0x7a)])?_0x15e8b2['OIhNi']:_0x15e8b2[_0x1abcba(_0x111053._0x1eceff,_0x111053._0x34160c)](_0x18c9c4[_0x1abcba(_0x111053._0x57c8ea,-0xa3)],_0x15e8b2[_0x5325ff(_0x111053._0x1b7e00,_0x111053._0x15c8bd)])?_0x1abcba(_0x111053._0xc62f8a,_0x111053._0x2b15df)+_0x1abcba(-_0x111053._0x5971d2,_0x111053._0x3bc515)+'changed.'+_0x1abcba(-0x49,-0x1a9)+_0x5325ff(0x656,_0x111053._0x104c2e)+_0x5325ff(0x51d,_0x111053._0x5a5dbb)+_0x5325ff(0x616,0x5ee)+_0x1abcba(0x27b,0x164)+_0x5325ff(_0x111053._0x47567c,0x58b)+_0x1abcba(-0x12e,-0x28b):_0x1abcba(_0x111053._0xdaa111,0x27c)+_0x5325ff(_0x111053._0xc39fd9,_0x111053._0x10b9f4)+_0x1abcba(0x273,_0x111053._0x4369f5)+_0x1abcba(_0x111053._0x25d923,0x1cc)+'\x20but\x20sto'+_0x5325ff(_0x111053._0x262960,0x2eb)+_0x5325ff(0x64d,_0x111053._0x223343)+'it.';_0x51fbf7?_0x15e8b2[_0x1abcba(-0x4d,-0x239)](printJson,buildPairingJson(_0x18c9c4,_0x422c6a,_0x33fceb,_0x58045f)):(_0x15e8b2[_0x1abcba(-_0x111053._0x3e6ef8,0xa9)](printPairingInfo,_0x18c9c4,_0x422c6a),printServiceResult(_0x58045f,_0x33fceb));}catch(_0x2f4c09){console['error']('Pairing\x20'+_0x1abcba(0x8,_0x111053._0x487754)+_0x1abcba(_0x111053._0x4369f5,0x2ad)+_0x1abcba(_0x111053._0x517f74,0x14a)+'ctivatio'+_0x1abcba(0x233,_0x111053._0x2ba9e0)+':\x20'+formatError(_0x2f4c09)),console['error'](_0x1abcba(_0x111053._0x296222,_0x111053._0x4f3715)+_0x5325ff(0x469,_0x111053._0x735e21)+_0x5325ff(0x2b2,_0x111053._0x210a71)+'et\x20insta'+'ll\x22\x20or\x20\x22'+'clawket\x20'+_0x1abcba(_0x111053._0x41066c,_0x111053._0x12cf65)+'ually.'),process[_0x1abcba(-0x131,-0x147)]=0x1;}return;}if(_0x5e2d69==='refresh-'+_0x1abcba(0xf0,0x2c6)){const _0x4c92bf=readFlag(_0x32b198,_0x15e8b2[_0x5325ff(0x429,_0x111053._0x410689)]),_0x2adcfe=resolveGatewayAuth();if(_0x15e8b2[_0x5325ff(0x601,_0x111053._0x2a37ce)](_0x15e8b2[_0x5325ff(0x327,_0x111053._0x3b5fb0)],_0x2adcfe))throw new Error(_0x2adcfe[_0x1abcba(0x15a,_0x111053._0x2b1be9)]);const _0x5374cd={};_0x5374cd[_0x5325ff(_0x111053._0x59eff6,0x448)+_0x5325ff(_0x111053._0xb6dc45,_0x111053._0x4dc23d)]=_0x2adcfe[_0x1abcba(-0x138,-_0x111053._0x1b9908)],_0x5374cd[_0x1abcba(_0x111053._0x350ffd,0x63)+_0x5325ff(0x637,_0x111053._0x49c2a4)]=_0x2adcfe['password'];const _0x2a33fd=await refreshAccessCode(_0x5374cd),_0x1d2433=await writePairingQrPng(_0x2a33fd,_0x4c92bf);_0x51fbf7?_0x15e8b2[_0x5325ff(_0x111053._0x148b2,0x6df)](printJson,buildPairingJson(_0x2a33fd,_0x1d2433,getServiceStatus(),_0x5325ff(0x354,_0x111053._0xf47aa3)+_0x1abcba(-0x89,_0x111053._0x1e6942)+_0x5325ff(0x413,_0x111053._0x4f7cc6))):printPairingInfo(_0x2a33fd,_0x1d2433);return;}function _0x5325ff(_0x4a284c,_0x17e068){return _0x431448(_0x17e068,_0x4a284c-0x20a);}if(_0x5e2d69===_0x5325ff(0x423,_0x111053._0xd3161d)){const _0x35600c=requirePairingConfig(),_0x37344a=installService();console['log'](_0x1abcba(-0x17f,-0x99)+_0x5325ff(_0x111053._0x54c0a4,_0x111053._0x2bf266)+_0x1abcba(-0x14,_0x111053._0x204fb5)+_0x1abcba(_0x111053._0x2d4057,0x20c)+_0x5325ff(_0x111053._0x372c4a,0x7a6)+'\x20'+_0x35600c[_0x1abcba(_0x111053._0x419b04,0x3a)+'d']+'.'),printServiceResult(null,_0x37344a);return;}if(_0x15e8b2[_0x5325ff(0x2bc,0x282)](_0x5e2d69,_0x1abcba(-0xa,0x83))){const _0x4b2806=_0x15e8b2['sLtEJ'](requirePairingConfig),_0x4d4f49=restartService();console[_0x5325ff(_0x111053._0x5ba2c6,_0x111053._0x452270)]('Restarte'+'d\x20backgr'+_0x5325ff(_0x111053._0x991c4,0x288)+_0x5325ff(_0x111053._0x7c5acf,0x6e2)+'\x20gateway'+'\x20'+_0x4b2806[_0x1abcba(_0x111053._0x5910ff,0x41)+'d']+'.'),_0x15e8b2[_0x1abcba(0x6f,_0x111053._0x49b156)](printServiceResult,null,_0x4d4f49);return;}if(_0x5e2d69===_0x5325ff(_0x111053._0x2c0b05,_0x111053._0x24d20d)){const _0x18be2a=stopService();console[_0x5325ff(0x44d,0x303)](_0x1abcba(0xc8,0x1ed)+'backgrou'+'nd\x20servi'+'ce.'),_0x15e8b2[_0x1abcba(-0xd8,0xc9)](printServiceResult,null,_0x18be2a);return;}if(_0x5e2d69===_0x15e8b2[_0x1abcba(0x237,0x28b)]){const _0x354c94=uninstallService();console[_0x1abcba(_0x111053._0x114cbf,0x15c)]('Removed\x20'+_0x1abcba(-_0x111053._0xe82af7,-_0x111053._0x12b861)+_0x1abcba(0x10e,_0x111053._0xbcd970)+_0x1abcba(-_0x111053._0x2cf936,_0x111053._0x6a5aa6)+_0x1abcba(-0x15,0x1e6)),printServiceResult(null,_0x354c94);return;}if(_0x5e2d69===_0x1abcba(-_0x111053._0x533ece,-_0x111053._0x340885)){stopService(),_0x15e8b2[_0x5325ff(0x3bf,_0x111053._0x5b9509)](deletePairingConfig),console[_0x1abcba(0x1f,-_0x111053._0x264852)](_0x1abcba(-_0x111053._0x377a89,_0x111053._0x2ee631)+'pairing\x20'+'config:\x20'+getPairingConfigPath());return;}if(_0x5e2d69===_0x5325ff(0x3e6,_0x111053._0x5e1af1)){_0x15e8b2[_0x5325ff(0x4ab,0x382)](printStatus);return;}if(_0x15e8b2[_0x5325ff(0x2e9,_0x111053._0x3a2d31)](_0x5e2d69,'logs')){const _0x18d954=_0x15e8b2[_0x5325ff(_0x111053._0x95220b,0x19b)](Number,readFlag(_0x32b198,_0x1abcba(_0x111053._0xf8d3c,0x2ae))??'200'),_0x55ea6e=parseLookbackToMs(readFlag(_0x32b198,_0x1abcba(0x1a1,_0x111053._0x229a14))??readFlag(_0x32b198,'-l')),_0x3f6302=readRecentCliLogs({'lines':_0x18d954,'lastMs':_0x55ea6e,'includeErrorLog':hasFlag(_0x32b198,_0x15e8b2[_0x1abcba(0x11,-0x116)])});if(_0x51fbf7){const _0x179293={};_0x179293['ok']=!![],_0x179293[_0x5325ff(_0x111053._0x4c2f1d,0x48d)]=_0x3f6302,printJson(_0x179293);}else _0x3f6302['length']===0x0?console['log'](_0x1abcba(-0xc9,-_0x111053._0x338e14)+_0x1abcba(0xbf,-0x95)+_0x5325ff(_0x111053._0x428718,0x459)+'nd.'):console['log'](_0x3f6302[_0x5325ff(0x3bb,_0x111053._0x285025)]('\x0a'));return;}if(_0x15e8b2[_0x5325ff(0x4cd,0x590)](_0x5e2d69,_0x1abcba(-0x144,-0x96))){const _0x399e86=await _0x15e8b2[_0x1abcba(-0x175,-0x202)](buildDoctorReport);_0x51fbf7?_0x15e8b2[_0x1abcba(-0xbf,-_0x111053._0x14b251)](printJson,_0x399e86):_0x15e8b2[_0x5325ff(0x336,0x3a0)](printDoctorReport,_0x399e86);return;}function _0x1abcba(_0x30af11,_0x530b20){return _0x431448(_0x530b20,_0x30af11- -0x224);}if(_0x5e2d69===_0x5325ff(0x5e9,0x4e4)){const _0x318cf6=requirePairingConfig(),_0x305a64=resolveGatewayUrl(_0x15e8b2['WLyIj'](readFlag,_0x32b198,_0x5325ff(0x603,0x740)+_0x1abcba(0x1af,_0x111053._0x507f04))??_0x15e8b2[_0x1abcba(0xc1,_0x111053._0x501b97)](readFlag,_0x32b198,'-g')),_0x568d63=_0x5e9404=>{function _0x4f05ef(_0x156e74,_0x3cdecd){return _0x5325ff(_0x156e74- -0x2b1,_0x3cdecd);}function _0x4a2be4(_0x125aac,_0x3b161b){return _0x5325ff(_0x125aac- -_0x521e23._0x3ca207,_0x3b161b);}console[_0x4f05ef(_0x2cd34b._0x1a4320,_0x2cd34b._0x2a36f6)]('['+Date[_0x4a2be4(_0x2cd34b._0x340583,_0x2cd34b._0x100750)]()+']\x20'+_0x5e9404);};if(!_0x71fd2d){const _0x16d49b=('1|2|4|5|'+_0x1abcba(_0x111053._0x53bfae,0x3b9))[_0x1abcba(-_0x111053._0x4a73b6,-_0x111053._0xe4599a)]('|');let _0x4494aa=0x0;while(!![]){switch(_0x16d49b[_0x4494aa++]){case'0':console['log'](_0x1abcba(-0x15a,-0x2a0)+'\x20bridge\x20'+_0x1abcba(-_0x111053._0x56a74e,-0x14a)+_0x1abcba(_0x111053._0x4eb03a,_0x111053._0x5880e7)+_0x1abcba(-0x56,-0xf0)+_0x5325ff(0x59a,0x743));continue;case'1':console['log'](_0x5325ff(0x473,0x617)+_0x5325ff(_0x111053._0x7d3f16,0x62a)+_0x318cf6['gatewayI'+'d']);continue;case'2':console[_0x5325ff(_0x111053._0x5caef2,_0x111053._0x28eba7)](_0x1abcba(0x212,0x15c)+_0x5325ff(0x343,_0x111053._0x522933)+_0x318cf6[_0x5325ff(_0x111053._0x1bf00f,0x37c)+'Id']);continue;case'3':console[_0x1abcba(0x1f,_0x111053._0x312b7c)]('');continue;case'4':console['log'](_0x5325ff(0x473,_0x111053._0x33d7b3)+_0x1abcba(-_0x111053._0x1691b7,_0x111053._0x23481e)+_0x305a64);continue;case'5':console['log']('');continue;}break;}}else _0x568d63('Starting'+'\x20Clawket'+_0x1abcba(-_0x111053._0x2147f9,0xe8)+_0x1abcba(0x5,_0x111053._0x264d25)+_0x5325ff(0x2da,_0x111053._0x1126e4)+_0x5325ff(0x344,0x185)+_0x318cf6[_0x1abcba(_0x111053._0x498287,-_0x111053._0x2c2182)+'d']);_0x71fd2d&&writeServiceState();const _0x10db96=new BridgeRuntime({'config':_0x318cf6,'gatewayUrl':_0x305a64,'onLog':_0x1f3350=>{const _0x1fcc40={_0x66e3c9:0x30};function _0x290a0b(_0x3987f0,_0x3bfa4c){return _0x5325ff(_0x3987f0-_0x1fcc40._0x66e3c9,_0x3bfa4c);}_0x15e8b2['DrxEt'](_0x568d63,_0x290a0b(_0x4fdee2._0x416a13,_0x4fdee2._0x866ab2)+']\x20'+_0x1f3350);},'onStatus':_0x5e531c=>{function _0x1fe383(_0x92b781,_0x37d257){return _0x1abcba(_0x92b781-0x421,_0x37d257);}function _0x572809(_0x5c917f,_0x2683d8){return _0x1abcba(_0x5c917f-0xbf,_0x2683d8);}if(_0x5e531c[_0x572809(_0x3ecd8c._0x9d0e65,0x319)+'r']){_0x15e8b2['PMirx'](_0x568d63,_0x1fe383(_0x3ecd8c._0x17fa21,_0x3ecd8c._0x4859a3)+_0x1fe383(_0x3ecd8c._0x2dbd10,_0x3ecd8c._0x16ea5e)+(_0x5e531c[_0x1fe383(0x660,_0x3ecd8c._0x29528a)+'nected']?'up':'down')+(_0x572809(0x2c7,_0x3ecd8c._0x713e65)+'=')+(_0x5e531c[_0x1fe383(0x312,0x2b9)+_0x572809(0x115,-_0x3ecd8c._0x153065)]?'up':'down')+(_0x572809(-_0x3ecd8c._0x2136a0,-0x53)+'=')+_0x5e531c[_0x572809(_0x3ecd8c._0xd20ae7,_0x3ecd8c._0x48d22d)+_0x572809(_0x3ecd8c._0x102970,_0x3ecd8c._0x33191d)]+'\x20error='+_0x5e531c[_0x572809(_0x3ecd8c._0x9d0e65,_0x3ecd8c._0x344152)+'r']);return;}_0x568d63(_0x1fe383(_0x3ecd8c._0x262b20,_0x3ecd8c._0x13be74)+_0x1fe383(0x665,0x4d0)+(_0x5e531c[_0x572809(0x2fe,0x484)+_0x572809(0x193,0x153)]?'up':_0x1fe383(0x624,0x6ed))+('\x20gateway'+'=')+(_0x5e531c[_0x572809(-0x50,_0x3ecd8c._0x5d75e3)+_0x1fe383(0x477,0x302)]?'up':_0x15e8b2[_0x1fe383(_0x3ecd8c._0x46c072,0x33c)])+(_0x1fe383(0x2a7,_0x3ecd8c._0x582622)+'=')+_0x5e531c[_0x572809(_0x3ecd8c._0xd20ae7,-0x5b)+_0x1fe383(0x42c,_0x3ecd8c._0x1e0ec8)]);},'onPendingPairRequest':_0x2ebcee=>{function _0x7470f3(_0x55e92a,_0x184c52){return _0x5325ff(_0x55e92a- -_0x45658e._0x5a54b7,_0x184c52);}function _0x130787(_0x477fbb,_0xdf9427){return _0x5325ff(_0xdf9427- -0x31c,_0x477fbb);}_0x568d63('[pair-re'+_0x7470f3(_0x17f057._0x1836eb,_0x17f057._0x5e04ee)+_0x130787(_0x17f057._0x17d37e,_0x17f057._0x139921)+'='+_0x2ebcee['requestI'+'d']+(_0x7470f3(_0x17f057._0x55c648,_0x17f057._0xce9421)+'d=')+(_0x2ebcee[_0x130787(0x120,_0x17f057._0x1708a0)]||_0x7470f3(0x371,_0x17f057._0x59cce1)+'>')+_0x7470f3(0x156,_0x17f057._0xce0d89)+(_0x2ebcee[_0x130787(_0x17f057._0x2a4d4c,_0x17f057._0x2188ed)+_0x7470f3(_0x17f057._0x2c2f34,_0x17f057._0xcfd75c)]??_0x130787(0x291,_0x17f057._0x26ee98)+'>'));}});_0x10db96[_0x5325ff(_0x111053._0x5ef3b3,0x379)]();const _0x35bc50=async()=>{const _0x112d38={_0x54a45d:0xda};process[_0x4256df(-_0x5537c5._0x45fe32,_0x5537c5._0x3edee9)](_0x15e8b2[_0x18d6a1(_0x5537c5._0x329eaf,_0x5537c5._0x44b344)],_0x35bc50);function _0x18d6a1(_0xeb17a5,_0x57019c){return _0x1abcba(_0x57019c-_0x172ec0._0x1aaf4a,_0xeb17a5);}process['off'](_0x4256df(_0x5537c5._0x1a43a4,-_0x5537c5._0x5b38eb),_0x35bc50),await _0x10db96['stop']();function _0x4256df(_0x4deb9e,_0x2b9891){return _0x1abcba(_0x4deb9e-_0x112d38._0x54a45d,_0x2b9891);}_0x71fd2d&&clearServiceState(process['pid']),process[_0x4256df(_0x5537c5._0x37329b,_0x5537c5._0x31f88c)](0x0);};process['on']('SIGINT',_0x35bc50),process['on'](_0x15e8b2[_0x5325ff(_0x111053._0x37aab7,_0x111053._0x1e981c)],_0x35bc50),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x2f8b1b,_0x260d5f){const _0x46892c={_0x311167:0x36e,_0x1a2b07:0x1c,_0x534c8c:0x182,_0x2d3dfc:0x7,_0xbd5cf7:0x381,_0x5ac5fd:0x251,_0x2c6a50:0x3ba,_0x4b8a4c:0x4cd,_0x399c25:0x5f6,_0x3d63cc:0x1e2,_0x15c97:0x49,_0x46743f:0x4b2,_0x1cec39:0x1f0,_0x3b0d76:0x3e9,_0x1179ad:0x6ab,_0x2456d5:0x5e9,_0x51651e:0x40c,_0x5ce824:0x2ca,_0x5a085b:0x2c0,_0x5a52a5:0x19b,_0x2d1e61:0x3a1,_0x3d562e:0x1d3,_0x32802f:0x24b,_0x30fac1:0xca,_0x363734:0x1a,_0x25abac:0x714},_0x56f97b={_0x17927d:0x1a0},_0x435be4={_0x2acaf6:0x1d1},_0x322aab={'LYbkt':'Bridge\x20a'+'lready\x20p'+_0x448ea1(_0x46892c._0x311167,0x356)+_0x3f73df(-_0x46892c._0x1a2b07,0x122)+_0x3f73df(-0xe1,0x10f)+_0x448ea1(0x52b,0x584)+'e.','FoJbX':function(_0x4b13e1,_0x145483){return _0x4b13e1(_0x145483);}};_0x2f8b1b[_0x3f73df(-0x1f,_0x46892c._0x534c8c)]===_0x3f73df(0x1ba,_0x46892c._0x2d3dfc)+'d'&&console['log'](_0x322aab[_0x3f73df(_0x46892c._0xbd5cf7,_0x46892c._0x5ac5fd)]);console[_0x448ea1(0x3d2,_0x46892c._0x2c6a50)]('Gateway\x20'+_0x3f73df(0x157,0x5d)+_0x2f8b1b[_0x448ea1(_0x46892c._0x4b8a4c,_0x46892c._0x399c25)][_0x3f73df(_0x46892c._0x3d63cc,0x47)+'d']),console[_0x3f73df(-0x186,_0x46892c._0x15c97)](_0x448ea1(0x513,0x5dd)+_0x448ea1(_0x46892c._0x46743f,0x2ce)+_0x3f73df(-0x7,-0x9c)+_0x448ea1(_0x46892c._0x1cec39,0x24c)+_0x3f73df(_0x46892c._0x3b0d76,0x254));const _0x14bfa8={};_0x14bfa8[_0x448ea1(_0x46892c._0x1179ad,0x4c5)]=!![],_0x23ba85[_0x448ea1(_0x46892c._0x2456d5,_0x46892c._0x51651e)](_0x2f8b1b[_0x448ea1(_0x46892c._0x5ce824,_0x46892c._0x5a085b)+'d'],_0x14bfa8),console['log'](_0x3f73df(_0x46892c._0x5a52a5,0x126)+'\x20'+_0x322aab[_0x448ea1(_0x46892c._0x2d1e61,0x50c)](formatLocalTime,_0x2f8b1b[_0x448ea1(_0x46892c._0x3d562e,_0x46892c._0x32802f)+_0x3f73df(-0x101,-_0x46892c._0x30fac1)+_0x448ea1(0x3cb,0x420)]));function _0x448ea1(_0x424f15,_0x1a3992){return _0x9ec63e(_0x1a3992-_0x435be4._0x2acaf6,_0x424f15);}function _0x3f73df(_0x2b7feb,_0x180ad9){return _0x9ec63e(_0x180ad9- -_0x56f97b._0x17927d,_0x2b7feb);}console[_0x3f73df(-_0x46892c._0x363734,0x49)](_0x448ea1(_0x46892c._0x25abac,0x5ac)+':\x20'+_0x260d5f);}function _0x9ec63e(_0x1c1fc1,_0x344010){return _0x1bf0(_0x1c1fc1- -0x82,_0x344010);}function printStatus(){const _0x1f1981={_0x1ac57d:0x172,_0x454745:0x191,_0x11b94c:0x78,_0x15a178:0x1b1,_0x857d60:0x51,_0x38653b:0xd,_0x41d888:0x118,_0x158841:0x41,_0x896281:0xf6,_0x39deda:0x2d,_0x2e4e15:0xb5,_0x5239ad:0xb1,_0x436513:0x11,_0x119a4c:0x140,_0x4be737:0x56,_0x3b2650:0xf4,_0x3e6619:0x10c,_0x417fc2:0x86,_0x860258:0x184,_0x1b2827:0x10a,_0x1b7d4d:0x49,_0x16b39d:0xd7,_0x38a96a:0x1e0,_0x299b4d:0x366,_0x20956d:0x9f,_0x283d12:0x49,_0x361d02:0x2e,_0x119913:0x2c3,_0x12115c:0x107};function _0x5bc87e(_0x5994c2,_0xad94f9){return _0x431448(_0xad94f9,_0x5994c2- -0x284);}const _0x478f5e={'QrmqM':function(_0x2a2c84){return _0x2a2c84();},'pDCPy':function(_0x28e338){return _0x28e338();},'ALbQV':_0x1461f1(_0x1f1981._0x1ac57d,_0x1f1981._0x454745)+'d'},_0x2253a2=_0x478f5e['QrmqM'](readPairingConfig),_0x5d74f2=_0x478f5e[_0x1461f1(0x271,_0x1f1981._0x11b94c)](getServiceStatus),{logPath:_0x4e1b9f,errorLogPath:_0x5b96ca}=getServicePaths(),_0x1beaf9=readCliVersion();console[_0x5bc87e(-0x41,-0x239)](_0x5bc87e(-_0x1f1981._0x15a178,-0x30a)+'\x20'+_0x1beaf9);!_0x2253a2?console[_0x1461f1(-_0x1f1981._0x857d60,_0x1f1981._0x38653b)]('Config:\x20'+_0x1461f1(_0x1f1981._0x41d888,-0x63)+'ed\x20('+getPairingConfigPath()+')'):(console[_0x5bc87e(-_0x1f1981._0x158841,0x1b0)](_0x5bc87e(-0x1a2,0x54)+_0x5bc87e(-0x1e8,-0x3cf)),console[_0x5bc87e(-0x41,-0x13a)](_0x1461f1(-_0x1f1981._0x896281,0x33)+_0x5bc87e(-_0x1f1981._0x39deda,-0xe1)+_0x2253a2['gatewayI'+'d']),console['log'](_0x5bc87e(0x1b2,0x2b2)+':\x20'+_0x2253a2[_0x1461f1(-_0x1f1981._0x2e4e15,0x9)+'Id']),console[_0x1461f1(_0x1f1981._0x5239ad,_0x1f1981._0x38653b)]('Server\x20U'+_0x5bc87e(0x179,-0x69)+_0x2253a2['serverUr'+'l']),console[_0x5bc87e(-_0x1f1981._0x158841,-_0x1f1981._0x436513)](_0x5bc87e(0xd2,0x100)+(_0x2253a2[_0x5bc87e(_0x1f1981._0x119a4c,_0x1f1981._0x4be737)+_0x5bc87e(-_0x1f1981._0x3b2650,-0x1c3)]??'-')));function _0x1461f1(_0xc4ea38,_0x115a93){return _0x431448(_0xc4ea38,_0x115a93- -0x236);}console['log'](_0x1461f1(0x4e,_0x1f1981._0x3e6619)+'\x20'+resolveGatewayUrl()),console[_0x1461f1(_0x1f1981._0x417fc2,_0x1f1981._0x38653b)](_0x5bc87e(0x67,0x8d)+'\x20'+(_0x5d74f2[_0x5bc87e(0x143,_0x1f1981._0x860258)+'d']?_0x478f5e[_0x5bc87e(_0x1f1981._0x1b2827,0x135)]:_0x1461f1(0x169,-_0x1f1981._0x1b7d4d)+_0x5bc87e(_0x1f1981._0x16b39d,-0x72))+'\x20('+_0x5d74f2[_0x5bc87e(_0x1f1981._0x38a96a,_0x1f1981._0x299b4d)]+')'),console[_0x5bc87e(-0x41,0xf2)]('Running:'+'\x20'+(_0x5d74f2[_0x1461f1(_0x1f1981._0x20956d,-0x142)]?'yes':'no')),console['log'](_0x1461f1(_0x1f1981._0x283d12,-0x14c)+(_0x5d74f2[_0x1461f1(-_0x1f1981._0x361d02,-0x75)+_0x5bc87e(-0x13,-0x120)]||'-')),console['log']('Log:\x20'+_0x4e1b9f),console['log'](_0x1461f1(_0x1f1981._0x119913,_0x1f1981._0x12115c)+_0x5bc87e(-0x1c0,-0x10d)+_0x5b96ca),!_0x2253a2&&(process['exitCode']=0x1);}function printServiceResult(_0x53f02d,_0x1ed9cc){const _0x2ae34e={_0x11d7fe:0x522,_0x1865cd:0x5ca,_0x10630e:0x6a6,_0x32f6ec:0x563,_0x3f1aa1:0x3d3,_0x5d0db0:0x28b,_0x4c7246:0x444,_0x5cad98:0x2c9,_0x38a79e:0x1d6,_0x447577:0x530,_0x52c983:0x4cc,_0x5e0bb0:0x526,_0x48ab9b:0x85,_0x5196b0:0x193,_0x81f02b:0x3b5};function _0xf78c18(_0x2099f5,_0x2e72d7){return _0x431448(_0x2099f5,_0x2e72d7-0x2df);}_0x53f02d&&console[_0xf78c18(0x723,_0x2ae34e._0x11d7fe)](_0x53f02d);function _0x351b7c(_0x51e494,_0x528b78){return _0x431448(_0x528b78,_0x51e494- -0x13c);}console['log'](_0xf78c18(0x3d8,_0x2ae34e._0x1865cd)+'\x20'+(_0x1ed9cc[_0xf78c18(0x633,_0x2ae34e._0x10630e)+'d']?_0x1ed9cc[_0xf78c18(_0x2ae34e._0x32f6ec,_0x2ae34e._0x3f1aa1)]?_0x351b7c(_0x2ae34e._0x5d0db0,_0x2ae34e._0x4c7246)+_0xf78c18(_0x2ae34e._0x5cad98,0x376)+'ng':_0x351b7c(0x28b,_0x2ae34e._0x38a79e)+_0x351b7c(-0x35,-0x1bf)+'ed':_0xf78c18(_0x2ae34e._0x447577,_0x2ae34e._0x52c983)+'alled')),console[_0x351b7c(0x107,0xe4)](_0xf78c18(_0x2ae34e._0x5e0bb0,0x70a)+'path:\x20'+(_0x1ed9cc[_0x351b7c(_0x2ae34e._0x48ab9b,_0x2ae34e._0x5196b0)+_0xf78c18(_0x2ae34e._0x81f02b,0x550)]||'-'));}function printDoctorReport(_0x3d5243){const _0x1e380d={_0x166bf4:0x3d0,_0x2b06f1:0x2cf,_0x55f3ec:0x164,_0x5f1c95:0x139,_0x12c2c6:0x127,_0x238a0b:0x328,_0x4e0881:0x111,_0x631541:0xe,_0x4f6e79:0x336,_0x3f6263:0x433,_0x4db3f3:0x239,_0x257562:0x6e,_0x57b46b:0x39b,_0x42f82f:0x1e5,_0x58cefa:0x1f4,_0x3038d2:0x2d0,_0x596f15:0x10f,_0x56d64e:0x297,_0x264d15:0x254,_0xb0f0b8:0x2ad,_0x55623b:0x39f,_0x41e5a4:0xa1,_0x59b31f:0x110,_0x50ad9a:0xa8,_0x1dc7c5:0x338,_0x14a2ff:0x31f,_0x516123:0x304,_0x4f401f:0x239,_0x47cc5f:0x1bb,_0x5b1fe4:0x37a,_0x361b8f:0x257,_0x81a047:0x16b,_0x342c36:0x113,_0xe91684:0x113,_0x1f92da:0x1f5,_0x1d870d:0x29,_0x3a2096:0x65,_0x5ee12c:0x1f9,_0x4842de:0x41e,_0x83eef:0x113,_0x3009f0:0x30e,_0x22b349:0x3d,_0x25d74a:0x203,_0x28600d:0x198,_0x45f289:0x339,_0x5e7ac2:0x1ce,_0x3b6656:0x89,_0x4fa7e8:0x3a6,_0x5972b5:0x379,_0x24b602:0x83,_0x360f40:0x51,_0x55dd6d:0x11b,_0x4f09b8:0x137,_0x5054f1:0x2c3,_0x472a06:0x191,_0x48d837:0x612,_0x6eb53f:0x15f,_0x35e67d:0x1f1,_0x11c669:0x2c3,_0x23f48c:0x491,_0x5154c0:0x4f7,_0x106710:0x28c,_0x170027:0x1f,_0x2887c9:0x69,_0x3d53f5:0x166,_0x3dd766:0xb3,_0x1f8ec1:0x73,_0x21abe1:0x25f,_0x43b6ee:0x2e9,_0x1803e7:0xb2,_0x577907:0xef,_0x4cf009:0x2a9},_0x36a022={_0x195605:0x50},_0x442b30={};_0x442b30['wkgrw']=_0x438e9e(0xbd,0x233)+_0x4f5aa6(0x351,_0x1e380d._0x166bf4),_0x442b30[_0x438e9e(_0x1e380d._0x2b06f1,_0x1e380d._0x55f3ec)]='yes';const _0x53b805=_0x442b30;console[_0x438e9e(0x113,-0x8c)]('Paired:\x20'+(_0x3d5243[_0x438e9e(-0x94,-0x86)]?'yes':'no')),console['log'](_0x438e9e(_0x1e380d._0x5f1c95,0x1d4)+_0x438e9e(_0x1e380d._0x12c2c6,_0x1e380d._0x238a0b)+(_0x3d5243[_0x438e9e(_0x1e380d._0x4e0881,-_0x1e380d._0x631541)+'d']??'-')),console['log'](_0x438e9e(0x271,_0x1e380d._0x4f6e79)+_0x438e9e(0x2cd,_0x1e380d._0x3f6263)+(_0x3d5243['serverUr'+'l']??'-')),console[_0x4f5aa6(_0x1e380d._0x4db3f3,_0x1e380d._0x257562)](_0x4f5aa6(_0x1e380d._0x57b46b,0x290)+_0x4f5aa6(_0x1e380d._0x42f82f,_0x1e380d._0x58cefa)+(_0x3d5243[_0x438e9e(0x20b,_0x1e380d._0x3038d2)]??'-'));function _0x4f5aa6(_0x5a693e,_0xa198b3){return _0x9ec63e(_0x5a693e-_0x36a022._0x195605,_0xa198b3);}console[_0x4f5aa6(_0x1e380d._0x4db3f3,0xdf)](_0x438e9e(0x306,0x3ce)+_0x4f5aa6(0x12f,0x1ed)+(_0x3d5243[_0x438e9e(_0x1e380d._0x596f15,0x2fb)+'Id']??'-')),console[_0x438e9e(0x113,0x248)](_0x4f5aa6(0x2e1,0x1a8)+'\x20'+(_0x3d5243[_0x438e9e(0x17f,-0x6f)+_0x438e9e(0x1e6,0xe7)]?_0x438e9e(_0x1e380d._0x56d64e,_0x1e380d._0x264d15)+'d':_0x53b805['wkgrw'])+'\x20('+_0x3d5243['serviceM'+'ethod']+')'),console[_0x4f5aa6(0x239,_0x1e380d._0xb0f0b8)](_0x4f5aa6(0x421,_0x1e380d._0x55623b)+_0x438e9e(0x13a,-_0x1e380d._0x41e5a4)+'\x20'+(_0x3d5243[_0x4f5aa6(_0x1e380d._0x59b31f,_0x1e380d._0x50ad9a)+_0x438e9e(0x28d,_0x1e380d._0x1dc7c5)]?_0x438e9e(_0x1e380d._0x14a2ff,_0x1e380d._0x516123):'no')),console[_0x4f5aa6(_0x1e380d._0x4f401f,0x127)](_0x438e9e(0x2fb,_0x1e380d._0x47cc5f)+_0x4f5aa6(_0x1e380d._0x5b1fe4,0x1f8)+(_0x3d5243['serviceP'+'ath']||'-')),console['log'](_0x438e9e(_0x1e380d._0x361b8f,0x80)+':\x20'+_0x3d5243[_0x4f5aa6(_0x1e380d._0x81a047,_0x1e380d._0x342c36)]);function _0x438e9e(_0x2f4538,_0x259ffe){return _0x9ec63e(_0x2f4538- -0xd6,_0x259ffe);}console[_0x438e9e(_0x1e380d._0xe91684,_0x1e380d._0x1f92da)](_0x438e9e(_0x1e380d._0x1d870d,-_0x1e380d._0x3a2096)+_0x438e9e(-0x98,-_0x1e380d._0x5ee12c)+_0x3d5243[_0x4f5aa6(_0x1e380d._0x4842de,0x56f)+'Path']),console[_0x438e9e(_0x1e380d._0x83eef,_0x1e380d._0x3009f0)](_0x4f5aa6(0x1af,_0x1e380d._0x22b349)+'\x20dir:\x20'+_0x3d5243[_0x438e9e(_0x1e380d._0x25d74a,_0x1e380d._0x28600d)+_0x4f5aa6(_0x1e380d._0x45f289,_0x1e380d._0x5e7ac2)+'r']),console[_0x4f5aa6(0x239,0x2ef)](_0x438e9e(_0x1e380d._0x3b6656,-0x121)+_0x438e9e(0x225,_0x1e380d._0x4fa7e8)+_0x3d5243[_0x4f5aa6(0x329,0x25d)+_0x438e9e(0x1a5,0x2f1)]),console['log']('OpenClaw'+_0x4f5aa6(_0x1e380d._0x5972b5,0x4cf)+'\x20'+(_0x3d5243[_0x438e9e(_0x1e380d._0x25d74a,0x359)+_0x438e9e(-_0x1e380d._0x24b602,-_0x1e380d._0x360f40)+_0x438e9e(_0x1e380d._0x55dd6d,_0x1e380d._0x4f09b8)]?_0x438e9e(_0x1e380d._0x5054f1,_0x1e380d._0x472a06):_0x4f5aa6(0x429,_0x1e380d._0x48d837))),console[_0x438e9e(0x113,0x222)]('OpenClaw'+_0x438e9e(0xc9,_0x1e380d._0x6eb53f)+(_0x3d5243[_0x4f5aa6(0x329,_0x1e380d._0x35e67d)+_0x438e9e(0x276,0x165)+'nd']?_0x438e9e(_0x1e380d._0x11c669,_0x1e380d._0x23f48c):_0x4f5aa6(0x429,_0x1e380d._0x5154c0))),console[_0x438e9e(0x113,-0xc4)](_0x4f5aa6(0x25f,_0x1e380d._0x106710)+_0x438e9e(_0x1e380d._0x170027,_0x1e380d._0x2887c9)+_0x3d5243[_0x4f5aa6(_0x1e380d._0x3d53f5,_0x1e380d._0x3dd766)+_0x438e9e(0x236,_0x1e380d._0x1f8ec1)]),console['log'](_0x4f5aa6(_0x1e380d._0x21abe1,0x2ad)+_0x4f5aa6(_0x1e380d._0x43b6ee,0xf2)+_0x438e9e(_0x1e380d._0x1803e7,0x1a)+(_0x3d5243[_0x4f5aa6(_0x1e380d._0x3d53f5,_0x1e380d._0x577907)+_0x4f5aa6(_0x1e380d._0x4cf009,0x1fb)+_0x4f5aa6(0x15e,0x2b9)]?_0x53b805[_0x4f5aa6(0x3f5,0x2a0)]:'no'));}function requirePairingConfig(){const _0x347183={_0x1c7799:0x615,_0x310efe:0x36f,_0xa98ee9:0x517,_0x24e647:0x250,_0x434da4:0x78,_0x4d5047:0x374},_0x573910={_0x4dbed3:0x245},_0x2f2d27={_0x22bbb8:0x12d};function _0x464cc7(_0x2ba4a7,_0x5e5862){return _0x9ec63e(_0x2ba4a7-_0x2f2d27._0x22bbb8,_0x5e5862);}const _0x2dc990={'eiBTd':function(_0x27fbc1){return _0x27fbc1();}};function _0x82d741(_0x14920a,_0x151905){return _0x9ec63e(_0x151905-_0x573910._0x4dbed3,_0x14920a);}const _0x13aa4c=readPairingConfig();return!_0x13aa4c&&(console[_0x464cc7(0x451,_0x347183._0x1c7799)](_0x82d741(0x49c,0x38e)+_0x82d741(_0x347183._0x310efe,_0x347183._0xa98ee9)+'\x22clawket'+'\x20pair\x22\x20f'+'irst.\x20Co'+_0x464cc7(_0x347183._0x24e647,_0x347183._0x434da4)+'h:\x20'+_0x2dc990[_0x82d741(0x3aa,_0x347183._0x4d5047)](getPairingConfigPath)),process['exit'](0x1)),_0x13aa4c;}function readFlag(_0x5e5396,_0x1d6ee9){const _0x38a51d={_0x585a54:0x68c,_0x31f621:0x667},_0x308ca8={_0x1a0571:0x33e},_0x43a442=_0x5e5396['indexOf'](_0x1d6ee9);function _0x423f3f(_0x507a4d,_0x2e6a74){return _0x431448(_0x507a4d,_0x2e6a74-_0x308ca8._0x1a0571);}if(_0x43a442<0x0)return null;const _0x55ba6a=_0x5e5396[_0x43a442+0x1];function _0x197a05(_0x5dfd21,_0x32cc48){return _0x431448(_0x32cc48,_0x5dfd21- -0xa);}return _0x55ba6a?.[_0x423f3f(_0x38a51d._0x585a54,_0x38a51d._0x31f621)]()?_0x55ba6a[_0x423f3f(0x516,_0x38a51d._0x31f621)]():null;}function hasFlag(_0x114464,_0x8abf72){return _0x114464['includes'](_0x8abf72);}function printHelp(){const _0xc0082f={_0x44a9d6:0x136,_0x433c08:0x1da,_0x31a48f:0x6bf,_0xfccd74:0x881,_0x860e4f:0x7a3,_0x3f9e5e:0x625,_0xe4dc66:0xa2a,_0x2301cf:0x853,_0x2952ed:0x286,_0x57b0a8:0x149,_0x24d9d2:0x3eb,_0x4ac231:0x4c8,_0x349206:0x501,_0x1a8688:0x408,_0x44f3e4:0x73c,_0x1aeaa5:0x206,_0x2171a5:0x650,_0x57dca7:0x3ca,_0x1725d9:0x80e,_0x44b262:0x61a,_0x176c68:0x47c,_0xafe1ca:0x434,_0x585f3d:0x823,_0x44b173:0xa79,_0x35e0d1:0x70d,_0x4ac1fc:0x588,_0x3352eb:0x687,_0x27deb0:0x306,_0x3ace8c:0x363,_0xdfb26d:0x785,_0x1d7a94:0x415,_0x51e23a:0x952,_0x48c5a6:0x434,_0x25ae94:0x411,_0x3244bc:0x54c,_0x2fdbe8:0x67d,_0x22635e:0x9ee,_0x1d27e2:0x7ac,_0xbbad81:0x5b1},_0x2313e6={_0x4f166d:0x4d},_0x554172={};_0x554172['VIQvX']='clawket\x20'+_0x2b3459(_0xc0082f._0x44a9d6,0x2a5)+'l';function _0x2b3459(_0x40e260,_0x34ecfe){return _0x431448(_0x40e260,_0x34ecfe- -_0x2313e6._0x4f166d);}function _0x10ed72(_0x44b5b8,_0x162374){return _0x431448(_0x44b5b8,_0x162374-0x400);}_0x554172[_0x2b3459(0x309,_0xc0082f._0x433c08)]=_0x10ed72(_0xc0082f._0x31a48f,_0xc0082f._0xfccd74)+'reset';const _0x3a76f2=_0x554172;console[_0x10ed72(_0xc0082f._0x860e4f,0x643)](['clawket\x20'+'pair\x20[--'+_0x10ed72(_0xc0082f._0x3f9e5e,0x7dc)+_0x10ed72(_0xc0082f._0xe4dc66,_0xc0082f._0x2301cf)+_0x2b3459(_0xc0082f._0x2952ed,_0xc0082f._0x57b0a8)+_0x2b3459(0x33e,0x23c)+_0x10ed72(_0xc0082f._0x24d9d2,_0xc0082f._0x4ac231)+_0x2b3459(_0xc0082f._0x349206,_0xc0082f._0x1a8688)+_0x10ed72(_0xc0082f._0x44f3e4,0x817)+_0x2b3459(0x1df,_0xc0082f._0x1aeaa5)+_0x2b3459(0x3f,0x1e4)+'e]',_0x10ed72(0x736,_0xc0082f._0xfccd74)+'refresh-'+_0x10ed72(_0xc0082f._0x2171a5,0x4d2)+_0x10ed72(0x747,0x855)+_0x2b3459(0x4b8,_0xc0082f._0x57dca7)+'[--json]','clawket\x20'+'install',_0x10ed72(_0xc0082f._0x1725d9,0x881)+_0x10ed72(0x53d,_0xc0082f._0x44b262),_0x2b3459(_0xc0082f._0x176c68,_0xc0082f._0xafe1ca)+_0x10ed72(0x8a3,_0xc0082f._0x585f3d),_0x3a76f2[_0x2b3459(0x260,0x2b1)],_0x3a76f2[_0x2b3459(0x190,_0xc0082f._0x433c08)],_0x10ed72(_0xc0082f._0x44b173,0x881)+'status',_0x10ed72(_0xc0082f._0x35e0d1,_0xc0082f._0xfccd74)+_0x10ed72(_0xc0082f._0x4ac1fc,_0xc0082f._0x3352eb)+'last\x20<2m'+'>]\x20[--li'+_0x2b3459(_0xc0082f._0x27deb0,0x1a6)+_0x2b3459(_0xc0082f._0x3ace8c,0x198)+_0x10ed72(0x8fc,_0xc0082f._0xdfb26d)+_0x2b3459(_0xc0082f._0x1d7a94,0x210),_0x10ed72(_0xc0082f._0x51e23a,_0xc0082f._0xfccd74)+_0x10ed72(0x484,0x591)+_0x10ed72(0x5e8,0x77d),_0x2b3459(0x249,_0xc0082f._0x48c5a6)+_0x10ed72(_0xc0082f._0x25ae94,0x4eb)+'ateway-u'+_0x10ed72(0x6ec,0x5d0)+_0x10ed72(_0xc0082f._0x3244bc,_0xc0082f._0x2fdbe8)+_0x10ed72(_0xc0082f._0x22635e,0x810)+'>]'][_0x10ed72(_0xc0082f._0x1d27e2,_0xc0082f._0xbbad81)]('\x0a'));}function formatLocalTime(_0x248efe){const _0x3223ea={_0x322f6d:0x466,_0x4e532f:0x4c3,_0x236720:0x134},_0x85580c={_0x7e01f2:0x224},_0x3d6de9={_0x55f688:0x1e6},_0x11baf4=new Date(_0x248efe);function _0x2c609a(_0x540683,_0x29777f){return _0x9ec63e(_0x29777f-_0x3d6de9._0x55f688,_0x540683);}function _0x23a273(_0x5c286c,_0x2015d0){return _0x9ec63e(_0x5c286c-_0x85580c._0x7e01f2,_0x2015d0);}if(Number[_0x23a273(0x490,0x3d9)](_0x11baf4[_0x23a273(_0x3223ea._0x322f6d,0x600)]()))return _0x248efe;return _0x11baf4[_0x2c609a(_0x3223ea._0x4e532f,0x5a6)+_0x2c609a(_0x3223ea._0x236720,0x229)]();}function formatError(_0x4d6071){const _0x1b110b={_0x386415:0x4e7,_0x231afe:0x6be,_0x216463:0x16b,_0x4da043:0x43,_0x3ab5bd:0x31},_0x34134d={_0x4da25d:0x60};function _0x503306(_0x4ffd8e,_0x1d7fbe){return _0x431448(_0x4ffd8e,_0x1d7fbe- -0x31c);}const _0x33a10f={};_0x33a10f[_0xa55262(_0x1b110b._0x386415,_0x1b110b._0x231afe)]=function(_0x51ba2a,_0x1866ff){return _0x51ba2a instanceof _0x1866ff;};function _0xa55262(_0x340fc2,_0x50027b){return _0x431448(_0x50027b,_0x340fc2-_0x34134d._0x4da25d);}const _0x41fd35=_0x33a10f;return _0x41fd35[_0x503306(0x360,_0x1b110b._0x216463)](_0x4d6071,Error)?_0x4d6071[_0x503306(_0x1b110b._0x4da043,_0x1b110b._0x3ab5bd)]:String(_0x4d6071);}function printJson(_0x3aff10){const _0x23a040={_0xed9667:0x4aa,_0x579c0f:0x77a},_0xfad090={_0x33dfc5:0x3b5};function _0x4f6a66(_0x1d14bc,_0x572215){return _0x9ec63e(_0x1d14bc-0x3dc,_0x572215);}function _0x1052c0(_0x9a6bdf,_0x588f0c){return _0x9ec63e(_0x9a6bdf-_0xfad090._0x33dfc5,_0x588f0c);}console[_0x4f6a66(0x5c5,_0x23a040._0xed9667)](JSON[_0x1052c0(_0x23a040._0x579c0f,0x816)+'y'](_0x3aff10,null,0x2));}main()[_0x9ec63e(0x1bd,0x20f)](_0x384ce6=>{const _0x19bb0e={_0x2692c3:0x2c6};console[_0x1e617c(0x4aa,_0x19bb0e._0x2692c3)](formatError(_0x384ce6));function _0x1e617c(_0x51bbd2,_0x4b98e8){return _0x9ec63e(_0x51bbd2-0x186,_0x4b98e8);}function _0x483e3e(_0x486d45,_0x395751){return _0x9ec63e(_0x395751-0x35d,_0x486d45);}process[_0x483e3e(0x75d,0x5af)](0x1);});
2
+ (function(_0x395fc5,_0x49b62c){const _0x14613d={_0x50fc33:0x1d7,_0x2b3a68:0x111,_0xfd9bfe:0x4d9,_0xf0eb0c:0x4e2,_0x2ea5a9:0x5ec,_0x1fb512:0x10e,_0x47ae8d:0x112,_0x3f90fb:0x47b,_0x5979e4:0x64d,_0x26cdbf:0x3b2,_0x3e5dae:0x244,_0x2c0721:0x153},_0x4a5bec=_0x395fc5();function _0x36ccdb(_0x5affe2,_0x486bc6){return _0x3b9b(_0x486bc6-0x2a9,_0x5affe2);}function _0x2c733f(_0x55fac2,_0x285135){return _0x3b9b(_0x285135- -0x325,_0x55fac2);}while(!![]){try{const _0x2d492a=-parseInt(_0x2c733f(_0x14613d._0x50fc33,_0x14613d._0x2b3a68))/0x1*(-parseInt(_0x36ccdb(0x43f,_0x14613d._0xfd9bfe))/0x2)+parseInt(_0x36ccdb(0x59a,_0x14613d._0xf0eb0c))/0x3*(-parseInt(_0x36ccdb(0x58c,_0x14613d._0x2ea5a9))/0x4)+-parseInt(_0x2c733f(-_0x14613d._0x1fb512,-0x5a))/0x5+-parseInt(_0x2c733f(0x20a,_0x14613d._0x47ae8d))/0x6*(-parseInt(_0x36ccdb(_0x14613d._0x3f90fb,_0x14613d._0x5979e4))/0x7)+-parseInt(_0x36ccdb(_0x14613d._0x26cdbf,0x529))/0x8+-parseInt(_0x2c733f(-_0x14613d._0x3e5dae,-0x1bb))/0x9+parseInt(_0x2c733f(-0x28d,-_0x14613d._0x2c0721))/0xa;if(_0x2d492a===_0x49b62c)break;else _0x4a5bec['push'](_0x4a5bec['shift']());}catch(_0x275c88){_0x4a5bec['push'](_0x4a5bec['shift']());}}}(_0x5e63,0x3880b));const _0x188f57=(function(){let _0x49cccc=!![];return function(_0x6f03e0,_0x3f4d58){const _0x58feaf={_0x584f21:0x59,_0x10c216:0xd9},_0x1ddeb2=_0x49cccc?function(){function _0x479cca(_0x589ad1,_0x15cff8){return _0x3b9b(_0x15cff8- -0x1a6,_0x589ad1);}if(_0x3f4d58){const _0x361f7c=_0x3f4d58[_0x479cca(_0x58feaf._0x584f21,-_0x58feaf._0x10c216)](_0x6f03e0,arguments);return _0x3f4d58=null,_0x361f7c;}}:function(){};return _0x49cccc=![],_0x1ddeb2;};}()),_0xd919fd=_0x188f57(this,function(){const _0x580cac={_0xf63a8a:0x295,_0x465b22:0x4f3,_0x1c96fa:0x3eb,_0x2aa655:0x42a,_0x3fa2da:0x31b,_0x1065a2:0x58f};function _0x206acd(_0x4174ad,_0x1afe76){return _0x3b9b(_0x1afe76-0x16e,_0x4174ad);}function _0x48ce99(_0x4562,_0x2a1669){return _0x3b9b(_0x2a1669-0x1c0,_0x4562);}return _0xd919fd[_0x206acd(0x577,0x452)]()[_0x48ce99(0x271,_0x580cac._0xf63a8a)]('(((.+)+)'+_0x48ce99(_0x580cac._0x465b22,0x5e1))[_0x48ce99(_0x580cac._0x1c96fa,0x4a4)]()[_0x206acd(0x437,0x5a6)+_0x206acd(_0x580cac._0x2aa655,_0x580cac._0x3fa2da)](_0xd919fd)[_0x48ce99(0x38e,_0x580cac._0xf63a8a)]('(((.+)+)'+_0x206acd(0x630,_0x580cac._0x1065a2));});_0xd919fd();import _0x2f1765 from'qrcode-terminal';import{readFileSync as _0x36a53f}from'fs';import{Socket}from'net';import{homedir as _0xec9ee5}from'os';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(),_0x33cded(0x58b,0x57d)),CONFIG_PATH=join(CONFIG_DIR,_0x33cded(0x580,0x5ee)+'li.json');function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x54e1a2={_0x81796b:0x4c5,_0x13757d:0x366,_0x29f4d5:0x586,_0x37f0ca:0x2e4,_0x58b409:0x769,_0x4ff80a:0x5a7,_0x370294:0x60a,_0x3a7dc1:0x317,_0x281c6b:0x633,_0x4ce05a:0x3c0,_0x592c01:0x2e4,_0x36917:0x487,_0x5b00dd:0x42e,_0x4409d7:0x3c6,_0x1f0ec0:0x4a9,_0x2282ed:0x58f,_0x216e65:0x42f,_0x3cbe04:0x332},_0x1957f2={_0x1fc94c:0x2d};function _0xe8ecd9(_0x3b45c2,_0x3b0cdb){return _0x33cded(_0x3b0cdb,_0x3b45c2- -_0x1957f2._0x1fc94c);}function _0x3567a9(_0x2ad973,_0x3aedbc){return _0x33cded(_0x2ad973,_0x3aedbc- -0x10d);}const _0x5abee9={'PTmPO':function(_0x213fed,_0x238304,_0x4ca763){return _0x213fed(_0x238304,_0x4ca763);}};if(!existsSync(CONFIG_PATH))return null;try{const _0x48f0af=JSON[_0xe8ecd9(0x4fd,_0x54e1a2._0x81796b)](_0x5abee9[_0x3567a9(_0x54e1a2._0x13757d,0x2a6)](readFileSync,CONFIG_PATH,_0xe8ecd9(0x511,0x3e0)));if(!_0x48f0af['serverUr'+'l']||!_0x48f0af['gatewayI'+'d']||!_0x48f0af[_0xe8ecd9(_0x54e1a2._0x29f4d5,0x74b)+_0x3567a9(0x463,_0x54e1a2._0x37f0ca)]||!_0x48f0af[_0x3567a9(_0x54e1a2._0x58b409,_0x54e1a2._0x4ff80a)])return null;const _0x2e00b2={'serverUrl':_0x48f0af[_0x3567a9(0x6af,_0x54e1a2._0x370294)+'l'],'gatewayId':_0x48f0af[_0x3567a9(_0x54e1a2._0x3a7dc1,0x321)+'d'],'relaySecret':_0x48f0af[_0xe8ecd9(0x586,_0x54e1a2._0x281c6b)+_0x3567a9(_0x54e1a2._0x4ce05a,_0x54e1a2._0x592c01)],'relayUrl':_0x48f0af['relayUrl'],'instanceId':_0x48f0af[_0x3567a9(0x349,_0x54e1a2._0x36917)+'Id']?.['trim']()||createInstanceId(),'displayName':_0x48f0af[_0xe8ecd9(0x40f,0x47d)+'ame']??null,'createdAt':_0x48f0af[_0xe8ecd9(0x4be,_0x54e1a2._0x5b00dd)+'t']??new Date()[_0x3567a9(_0x54e1a2._0x4409d7,0x4d9)+'ing'](),'updatedAt':_0x48f0af[_0xe8ecd9(_0x54e1a2._0x1f0ec0,0x30b)+'t']??new Date()[_0x3567a9(_0x54e1a2._0x2282ed,0x4d9)+_0xe8ecd9(_0x54e1a2._0x216e65,_0x54e1a2._0x3cbe04)]()};return _0x48f0af['instance'+'Id']!==_0x2e00b2['instance'+'Id']&&writePairingConfig(_0x2e00b2),_0x2e00b2;}catch{return null;}}function writePairingConfig(_0x152286){const _0x40c827={_0x3c1e45:0x5b5,_0x29e3eb:0x4d5,_0x3b9bea:0x3ee,_0x324828:0x480},_0xe08f26={_0x39b829:0x1bd},_0x37f567={_0x16514e:0x151},_0x6819d0={'yWwKP':function(_0x269120,_0x219fa9,_0x17748c){return _0x269120(_0x219fa9,_0x17748c);},'aHMhK':function(_0x1c6fb3,_0x4f7d1e,_0xa568f9,_0x45dda1){return _0x1c6fb3(_0x4f7d1e,_0xa568f9,_0x45dda1);}},_0xfa4d1f={};function _0x2f9fb8(_0x5191f5,_0xc1fe7f){return _0x5338aa(_0x5191f5-_0x37f567._0x16514e,_0xc1fe7f);}function _0x1237cb(_0x266570,_0x14c38c){return _0x5338aa(_0x266570-_0xe08f26._0x39b829,_0x14c38c);}_0xfa4d1f[_0x2f9fb8(0x30f,0x174)+'e']=!![],_0x6819d0[_0x2f9fb8(_0x40c827._0x3c1e45,_0x40c827._0x29e3eb)](mkdirSync,CONFIG_DIR,_0xfa4d1f),_0x6819d0['aHMhK'](writeFileSync,CONFIG_PATH,JSON['stringif'+'y'](_0x152286,null,0x2)+'\x0a',_0x2f9fb8(_0x40c827._0x3b9bea,_0x40c827._0x324828));}function deletePairingConfig(){const _0x59adf2={_0xff6e39:0x20b},_0x26a16e={_0x13add9:0x287},_0x3a0684={'MkoNZ':function(_0x245e95,_0x384a68,_0x43038f){return _0x245e95(_0x384a68,_0x43038f);}};if(!existsSync(CONFIG_PATH))return;const _0x5e04b5={};function _0x4bb903(_0x2234c5,_0x32d276){return _0x33cded(_0x32d276,_0x2234c5- -_0x26a16e._0x13add9);}_0x5e04b5[_0x4bb903(_0x59adf2._0xff6e39,0xd3)]=!![],_0x3a0684['MkoNZ'](rmSync,CONFIG_PATH,_0x5e04b5);}function getDefaultBridgeDisplayName(){const _0x12a536={_0x5b82fd:0x709,_0x1e3777:0x500,_0x58672d:0x734,_0x16b41d:0x392},_0x5414ec={_0x1c25cc:0x5f},_0xac50a1={'pfZae':function(_0x1de775){return _0x1de775();}};function _0x43c671(_0x5b2c47,_0x1be2c5){return _0x33cded(_0x5b2c47,_0x1be2c5- -0x1aa);}const _0x498d19=_0xac50a1['pfZae'](readOpenClawDefaultAgentName);if(_0x498d19)return _0x498d19;function _0x3acf53(_0x360c28,_0x3e1ee6){return _0x33cded(_0x360c28,_0x3e1ee6-_0x5414ec._0x1c25cc);}try{const _0x32c061=userInfo()['username'][_0x3acf53(0x775,_0x12a536._0x5b82fd)]();if(_0x32c061)return _0x32c061;}catch{}const _0x5c4328=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x43c671(0x3bc,_0x12a536._0x1e3777)]();if(_0x5c4328)return _0x5c4328;return _0xac50a1[_0x43c671(_0x12a536._0x58672d,0x564)](hostname)['trim']()||_0x43c671(0x353,_0x12a536._0x16b41d)+'Bridge';}function pickOpenClawDefaultAgentName(_0x9b07f9){const _0x4e9148={_0x443754:0x1ff,_0x885266:0x22c,_0x4eb1c8:0x49d,_0x14a671:0x3ba,_0x227bf2:0x84,_0x5d1885:0x22,_0x39b732:0x84},_0xf7467b={'oQvvN':function(_0x210159,_0x297e6a){return _0x210159(_0x297e6a);}};if(!_0x9b07f9||typeof _0x9b07f9!==_0x17bad7(0x36f,_0x4e9148._0x443754))return null;const _0x8c86d1=_0x9b07f9[_0x31598b(0x4ff,0x3c6)];function _0x17bad7(_0xdd4498,_0x2f6e10){return _0x5338aa(_0x2f6e10- -0xa8,_0xdd4498);}const _0x6cc90e=Array[_0x31598b(0xe4,_0x4e9148._0x885266)](_0x8c86d1?.['list'])?_0x8c86d1[_0x17bad7(_0x4e9148._0x4eb1c8,_0x4e9148._0x14a671)]:[];function _0x31598b(_0x4c169b,_0x3e6aef){return _0x5338aa(_0x3e6aef-0x9b,_0x4c169b);}const _0x250637=_0x6cc90e[_0x17bad7(0x8d,_0x4e9148._0x227bf2)](_0x2f020b=>isDefaultAgent(_0x2f020b))??_0x6cc90e[_0x17bad7(_0x4e9148._0x5d1885,_0x4e9148._0x39b732)](_0x12ae45=>hasAgentId(_0x12ae45,'main'))??_0x6cc90e[0x0];return _0xf7467b['oQvvN'](readAgentName,_0x250637);}function createInstanceId(){const _0x179097={_0x36622e:0x358},_0x5b2476=sanitizeId(hostname()||'host');function _0x226992(_0x5a987c,_0x5c3a39){return _0x33cded(_0x5a987c,_0x5c3a39- -0x3a1);}return'inst-'+_0x5b2476+'-'+randomUUID()[_0x226992(_0x179097._0x36622e,0x181)](0x0,0xa);}function sanitizeId(_0x2764f0){const _0x11ee18={_0x12b06b:0x10d,_0x4947ac:0x11b,_0x4b6560:0x15f,_0x57edd8:0x181,_0x4816af:0x320,_0xcf2bc5:0x269};function _0x3c7613(_0x829f1e,_0x2a3704){return _0x33cded(_0x2a3704,_0x829f1e- -0x58f);}function _0x4cbc5c(_0xe194e7,_0x5b73ff){return _0x33cded(_0x5b73ff,_0xe194e7- -0x366);}const _0x4d2410={};_0x4d2410[_0x3c7613(-0x18d,0x51)]=_0x3c7613(_0x11ee18._0x12b06b,0x2e4);const _0x3cb52f=_0x4d2410;return _0x2764f0[_0x3c7613(_0x11ee18._0x4947ac,_0x11ee18._0x4b6560)]()[_0x3c7613(0x116,_0x11ee18._0x57edd8)+_0x4cbc5c(0x2e5,_0x11ee18._0x4816af)]()['replace'](/[^a-z0-9._-]+/g,'-')[_0x4cbc5c(_0x11ee18._0xcf2bc5,0x442)](/^-+|-+$/g,'')||_0x3cb52f['GFZTD'];}function readOpenClawDefaultAgentName(){const _0x7293a6={_0x38fc8c:0x69f,_0x27a9fe:0x16,_0x487e10:0xba},_0x1214fe={'QiLKy':function(_0x4b726a,_0x1c965,_0x35cf91){return _0x4b726a(_0x1c965,_0x35cf91);}},_0x23afb5=resolveOpenClawConfigPath();if(!_0x23afb5||!existsSync(_0x23afb5))return null;function _0x3dcd63(_0x4c06a9,_0x46c15f){return _0x33cded(_0x46c15f,_0x4c06a9- -0x4d3);}function _0x53f5ea(_0x4379b5,_0x2cce44){return _0x33cded(_0x4379b5,_0x2cce44-0x30);}try{const _0x35571f=JSON[_0x53f5ea(_0x7293a6._0x38fc8c,0x55a)](_0x1214fe[_0x3dcd63(_0x7293a6._0x27a9fe,-_0x7293a6._0x487e10)](readFileSync,_0x23afb5,'utf8'));return pickOpenClawDefaultAgentName(_0x35571f);}catch{return null;}}function resolveOpenClawConfigPath(){const _0xc91dce={_0x1f296d:0xbe,_0x8d5ba6:0x217,_0x44b513:0x1ec,_0x2a4671:0x17,_0x9add06:0x166,_0x1b9170:0x45e,_0xbd8991:0x366},_0x248523={_0x3bfe0c:0x295},_0xaef4af={_0x34f8e3:0x35a},_0x34875e=new Set(),_0x2a4106=[homedir(),'/root']['map'](_0x459b3d=>_0x459b3d[_0x35cacf(0x4d7,0x415)]())['filter'](Boolean)[_0xa53605(-0x226,-_0xc91dce._0x1f296d)](_0xcd89a4=>{const _0x376164={_0x564ce1:0x168};if(_0x34875e[_0x1f2879(_0xaef4af._0x34f8e3,0x24d)](_0xcd89a4))return![];function _0xa6209d(_0x159d9c,_0x587804){return _0x35cacf(_0x159d9c,_0x587804- -_0x376164._0x564ce1);}_0x34875e[_0xa6209d(0x406,0x27e)](_0xcd89a4);function _0x1f2879(_0x4d6d39,_0x23c62e){return _0x35cacf(_0x4d6d39,_0x23c62e- -0x3a);}return!![];});function _0x35cacf(_0x35df5b,_0x2faa31){return _0x33cded(_0x35df5b,_0x2faa31- -_0x248523._0x3bfe0c);}for(const _0x99e792 of _0x2a4106){const _0x5ae1ae=join(_0x99e792,_0xa53605(-_0xc91dce._0x8d5ba6,-_0xc91dce._0x44b513)+'w',_0xa53605(-_0xc91dce._0x2a4671,-0xa4)+_0x35cacf(-0x5,_0xc91dce._0x9add06));if(existsSync(_0x5ae1ae))return _0x5ae1ae;}function _0xa53605(_0x4e6a40,_0x2afb0a){return _0x33cded(_0x4e6a40,_0x2afb0a- -0x69f);}return _0x2a4106[0x0]?join(_0x2a4106[0x0],'.opencla'+'w',_0x35cacf(_0xc91dce._0x1b9170,_0xc91dce._0xbd8991)+_0x35cacf(0x2f8,0x166)):null;}function isDefaultAgent(_0x3385b8){const _0x4800a3={_0x16970f:0x215,_0x1675c7:0x1ff,_0x351f8a:0x319};function _0x400aad(_0x1ece40,_0x5ef1b9){return _0x33cded(_0x5ef1b9,_0x1ece40- -0x333);}function _0x5e77bd(_0x14b039,_0x3fa46f){return _0x33cded(_0x14b039,_0x3fa46f- -0x2db);}return Boolean(_0x3385b8&&typeof _0x3385b8===_0x400aad(_0x4800a3._0x16970f,_0x4800a3._0x1675c7)&&_0x3385b8[_0x400aad(_0x4800a3._0x351f8a,0x41b)]===!![]);}function hasAgentId(_0x20c552,_0x596ecb){const _0x23d321={_0x4e86e0:0x1a1,_0x2f1393:0x1a4,_0x615712:0x1a4,_0x12b7c4:0xec},_0x160f06={_0x210253:0x16b};function _0x5b7d84(_0x12f4be,_0xbd5bdb){return _0x5338aa(_0xbd5bdb- -0x31d,_0x12f4be);}const _0x51f241={};function _0x3f1207(_0x54e250,_0x68b04a){return _0x5338aa(_0x54e250-_0x160f06._0x210253,_0x68b04a);}_0x51f241[_0x5b7d84(-_0x23d321._0x4e86e0,-_0x23d321._0x2f1393)]=function(_0x54a7e1,_0x521846){return _0x54a7e1===_0x521846;};const _0x49794f=_0x51f241;return Boolean(_0x20c552&&typeof _0x20c552===_0x5b7d84(-0x16,-0x76)&&typeof _0x20c552['id']==='string'&&_0x49794f[_0x5b7d84(-0xcc,-_0x23d321._0x615712)](_0x20c552['id'][_0x5b7d84(-0x5e,_0x23d321._0x12b7c4)](),_0x596ecb));}function readAgentName(_0x1b1481){const _0x995237={_0x427de5:0x3b5,_0x3da1ee:0x499,_0x1058ae:0x53d,_0x2602cb:0x49a,_0x181648:0x566,_0x27511a:0x6d,_0x646fa9:0x14e,_0x56ff04:0x12f,_0x2c9779:0x566,_0x5f1a53:0x437,_0x175638:0x517};if(!_0x1b1481||typeof _0x1b1481!==_0x495a30(0x2ad,_0x995237._0x427de5))return null;function _0x3d9aa9(_0x5f09a1,_0x384bc2){return _0x5338aa(_0x5f09a1- -0x2da,_0x384bc2);}const _0x337e7a=_0x1b1481,_0x4aa5af=typeof _0x337e7a[_0x495a30(_0x995237._0x3da1ee,_0x995237._0x1058ae)]?.[_0x495a30(_0x995237._0x2602cb,_0x995237._0x181648)]===_0x3d9aa9(-_0x995237._0x27511a,-0x172)?_0x337e7a[_0x3d9aa9(0x155,_0x995237._0x646fa9)]['name'][_0x3d9aa9(_0x995237._0x56ff04,0x14a)]():'';if(_0x4aa5af)return _0x4aa5af;const _0x56ece2=typeof _0x337e7a[_0x495a30(0x6d2,_0x995237._0x2c9779)]==='string'?_0x337e7a['name'][_0x495a30(_0x995237._0x5f1a53,_0x995237._0x175638)]():'';function _0x495a30(_0x27c3e9,_0x38e2cc){return _0x5338aa(_0x38e2cc-0x10e,_0x27c3e9);}return _0x56ece2||null;}function buildPairingQrPayload(_0x1e4d27){const _0x31b9a2={_0x5221ca:0xab,_0x237881:0x229,_0x52a861:0x103,_0x2771b2:0x45,_0x4dc6af:0x9,_0x337ac2:0x2a4,_0x42afb5:0x37,_0x184b53:0xb2,_0xacb924:0x5e6,_0x1385bf:0x58b,_0x513269:0x50f,_0x595e99:0x415,_0x4e4927:0x329,_0x29d3b1:0x120,_0x27f5a2:0x6d},_0x781576={};_0x781576['v']=0x2,_0x781576['k']='cp',_0x781576['s']=_0x1e4d27[_0x48e507(_0x31b9a2._0x5221ca,-0x4)],_0x781576['g']=_0x1e4d27['gatewayI'+'d'],_0x781576['a']=_0x1e4d27['accessCo'+'de'];const _0x157207=_0x781576;function _0x5575b0(_0x24edc5,_0x386020){return _0x5338aa(_0x386020-0x182,_0x24edc5);}_0x1e4d27[_0x48e507(-_0x31b9a2._0x237881,-0x35d)+_0x48e507(-0x2a4,-_0x31b9a2._0x52a861)]?.[_0x48e507(_0x31b9a2._0x2771b2,-_0x31b9a2._0x4dc6af)]()&&(_0x157207['n']=_0x1e4d27['displayN'+_0x48e507(-_0x31b9a2._0x337ac2,-0x167)]['trim']());_0x1e4d27[_0x48e507(-_0x31b9a2._0x42afb5,-_0x31b9a2._0x184b53)]?.[_0x5575b0(_0x31b9a2._0xacb924,_0x31b9a2._0x1385bf)]()&&(_0x157207['t']=_0x1e4d27[_0x5575b0(0x647,_0x31b9a2._0x513269)][_0x5575b0(_0x31b9a2._0x595e99,_0x31b9a2._0x1385bf)]());function _0x48e507(_0xd5483b,_0x1de059){return _0x5338aa(_0xd5483b- -0x3c4,_0x1de059);}return _0x1e4d27[_0x5575b0(0x491,0x2bb)]?.['trim']()&&(_0x157207['p']=_0x1e4d27[_0x5575b0(_0x31b9a2._0x4e4927,0x2bb)]['trim']()),JSON[_0x48e507(-_0x31b9a2._0x29d3b1,-_0x31b9a2._0x27f5a2)+'y'](_0x157207);}async function pairGateway(_0x17e921){const _0x5e7f76={_0x4dd251:0x2eb,_0x51aae4:0x295,_0x563e32:0x3d,_0x2e10dd:0x17a,_0x35683b:0x237,_0x2cb0a2:0x3c4,_0x68bf53:0x30b,_0xd0bf4:0x1cb,_0x4d8413:0x5d4,_0x48a132:0x354,_0x4f15b0:0x4c0,_0x31d5be:0xe,_0x4aa479:0x19a,_0x37d6c1:0x142,_0x2e8307:0x2c1,_0x406b4b:0x16a,_0xa45793:0x13,_0x1baa66:0x2ad,_0x57d801:0x382,_0x5469fb:0x2a2,_0x3bd567:0x3d9,_0x17a2f1:0x3b0,_0x52a4e8:0x297,_0x52008c:0x1fe,_0x3101d0:0x171,_0x902bbe:0x240,_0x4adb5a:0x204,_0x192fb9:0x11a,_0x5e1ad3:0x34,_0x3eaea8:0x36d,_0x1bbb6f:0x51f,_0x11c8f5:0x3de,_0x5943a3:0x56d,_0x3154de:0x3bf,_0x4c2626:0x508,_0x1f4023:0x492,_0x220574:0x436,_0x5c69b1:0x538,_0x5c194b:0x461,_0x2c89ee:0x388,_0x44c92e:0x3c7,_0x1a1f13:0x4be,_0x43710d:0x165,_0x59ea8:0x253,_0x5619db:0x381,_0x4a33dc:0x34c,_0x180ad3:0x11b,_0x11a155:0x374,_0xf17ed5:0x145,_0x4afbda:0x45e,_0x4634a5:0x342,_0x32fb7b:0x18e,_0x4bc5cc:0x278,_0x68ed1e:0x113,_0x56c517:0x431,_0x1890a1:0x153,_0x5b9f05:0x4ad,_0x469184:0x4dd,_0xd39a15:0x247,_0x57b14a:0x38f,_0x5b78ef:0x40d,_0x3599a5:0x45d,_0x4dd4ce:0x2e6,_0x38ad63:0x306,_0x26965a:0x23e,_0x554a12:0xcd,_0x2e4ab6:0x1a9,_0xf66617:0x2fc,_0x528d4b:0x214,_0x399667:0x373,_0xddb564:0x513,_0x4f81db:0x12d,_0x5689fb:0x16a,_0x328986:0x3d9,_0x18a798:0x585},_0x1d472b={_0x5e3e0b:0xd},_0x5ddf97={'Sxboc':function(_0x122ec4,_0x439ab9){return _0x122ec4(_0x439ab9);},'aBnfa':_0x3a34e8(_0x5e7f76._0x4dd251,_0x5e7f76._0x51aae4)+'existing','rWxgK':_0x3a34e8(_0x5e7f76._0x563e32,_0x5e7f76._0x2e10dd)+_0x3a34e8(0x4ed,0x506)},_0x52c186=_0x5ddf97[_0x3a34e8(_0x5e7f76._0x35683b,_0x5e7f76._0x2cb0a2)](normalizeHttpBase,_0x17e921[_0x47f108(0x469,_0x5e7f76._0x68bf53)+'l']),_0x19108f=readPairingConfig(),_0x491f33=assessPairingCompatibility(_0x19108f,_0x52c186);if(_0x491f33===_0x5ddf97[_0x3a34e8(0x36e,_0x5e7f76._0xd0bf4)]&&_0x19108f){const _0x43cf4a={};return _0x43cf4a[_0x3a34e8(_0x5e7f76._0x4d8413,0x4c0)+'l']=_0x19108f[_0x3a34e8(_0x5e7f76._0x48a132,_0x5e7f76._0x4f15b0)+'l'],_0x43cf4a['gatewayI'+'d']=_0x19108f[_0x3a34e8(-_0x5e7f76._0x31d5be,0x1d7)+'d'],_0x43cf4a['relaySec'+_0x3a34e8(0xac,_0x5e7f76._0x4aa479)]=_0x19108f['relaySec'+'ret'],_0x43cf4a[_0x3a34e8(_0x5e7f76._0x37d6c1,0x1e5)+_0x3a34e8(_0x5e7f76._0x2e8307,_0x5e7f76._0x406b4b)]=_0x17e921[_0x47f108(0x18e,-_0x5e7f76._0xa45793)+_0x3a34e8(_0x5e7f76._0x1baa66,_0x5e7f76._0x406b4b)],_0x43cf4a['gatewayT'+_0x47f108(_0x5e7f76._0x57d801,0x292)]=_0x17e921['gatewayT'+_0x3a34e8(_0x5e7f76._0x5469fb,_0x5e7f76._0x3bd567)],_0x43cf4a[_0x3a34e8(_0x5e7f76._0x17a2f1,_0x5e7f76._0x52a4e8)+_0x3a34e8(_0x5e7f76._0x52008c,_0x5e7f76._0x3101d0)]=_0x17e921[_0x47f108(_0x5e7f76._0x902bbe,_0x5e7f76._0x4adb5a)+_0x47f108(_0x5e7f76._0x192fb9,-_0x5e7f76._0x5e1ad3)],_0x5ddf97[_0x47f108(_0x5e7f76._0x3eaea8,_0x5e7f76._0x1bbb6f)](refreshAccessCode,_0x43cf4a);}if(_0x491f33==='server-m'+_0x47f108(_0x5e7f76._0x11c8f5,_0x5e7f76._0x5943a3))throw new Error(_0x3a34e8(0x314,_0x5e7f76._0x3154de)+_0x3a34e8(0x63e,_0x5e7f76._0x4c2626)+_0x47f108(0x390,_0x5e7f76._0x1f4023)+'aired\x20wi'+_0x3a34e8(_0x5e7f76._0x220574,0x275)+_0x19108f?.[_0x47f108(0x469,_0x5e7f76._0x5c69b1)+'l']+(_0x3a34e8(0x32b,_0x5e7f76._0x5c194b)+'lawket\x20r'+_0x47f108(0x2cb,0x446)+_0x47f108(0x37c,_0x5e7f76._0x2c89ee)+_0x3a34e8(_0x5e7f76._0x44c92e,_0x5e7f76._0x1a1f13)+_0x3a34e8(_0x5e7f76._0x43710d,_0x5e7f76._0x59ea8)+'erent\x20se'+_0x47f108(_0x5e7f76._0x5619db,0x390)));const _0xf2f7fc={};_0xf2f7fc[_0x47f108(0x3b5,0x3a4)+_0x3a34e8(0x3df,0x254)]=_0x5ddf97[_0x47f108(0x25b,_0x5e7f76._0x4a33dc)],_0xf2f7fc[_0x3a34e8(_0x5e7f76._0x180ad3,0x243)]=_0x5ddf97[_0x3a34e8(_0x5e7f76._0x11a155,0x2b2)];function _0x3a34e8(_0x960e73,_0x259a77){return _0x5338aa(_0x259a77-0x4a,_0x960e73);}const _0x44875c=await fetch(_0x52c186+(_0x47f108(_0x5e7f76._0xf17ed5,0x2a2)+_0x3a34e8(0x311,_0x5e7f76._0x4afbda)+'r'),{'method':_0x3a34e8(0x27d,0x27d),'headers':_0xf2f7fc,'body':JSON[_0x47f108(0x297,_0x5e7f76._0x4634a5)+'y']({'displayName':_0x17e921[_0x47f108(_0x5e7f76._0x32fb7b,_0x5e7f76._0x4bc5cc)+_0x47f108(_0x5e7f76._0x68ed1e,0x33)]?.[_0x3a34e8(0x30c,0x453)]()||null})});if(!_0x44875c['ok'])throw new Error(_0x47f108(_0x5e7f76._0x56c517,0x53a)+_0x3a34e8(_0x5e7f76._0x1890a1,0x1ad)+_0x47f108(_0x5e7f76._0x5b9f05,_0x5e7f76._0x469184)+_0x44875c[_0x3a34e8(0x35f,0x409)]+'):\x20'+await _0x44875c[_0x47f108(_0x5e7f76._0xd39a15,0x372)]());function _0x47f108(_0x5a190a,_0x56b8d3){return _0x5338aa(_0x5a190a- -_0x1d472b._0x5e3e0b,_0x56b8d3);}const _0x239b62=await _0x44875c[_0x3a34e8(0x199,0x283)](),_0x3b2a35=new Date()[_0x3a34e8(0x234,_0x5e7f76._0x57b14a)+_0x47f108(0x1ae,0x109)](),_0x296eb1={'serverUrl':_0x52c186,'gatewayId':_0x239b62[_0x3a34e8(0x326,0x1d7)+'d'],'relaySecret':_0x239b62[_0x3a34e8(0x1ba,0x35c)+'ret'],'relayUrl':_0x239b62[_0x3a34e8(_0x5e7f76._0x5b78ef,_0x5e7f76._0x3599a5)],'instanceId':_0x19108f?.[_0x47f108(_0x5e7f76._0x4dd4ce,0x445)+'Id']??_0x47f108(_0x5e7f76._0x38ad63,_0x5e7f76._0x26965a)+_0x239b62[_0x3a34e8(0x234,0x1d7)+'d'][_0x47f108(0x274,_0x5e7f76._0x554a12)](-0xa),'displayName':_0x239b62['displayN'+'ame'],'createdAt':_0x3b2a35,'updatedAt':_0x3b2a35};return writePairingConfig(_0x296eb1),{'config':_0x296eb1,'accessCode':_0x239b62['accessCo'+'de'],'accessCodeExpiresAt':_0x239b62[_0x47f108(_0x5e7f76._0x2e4ab6,0x21d)+_0x3a34e8(_0x5e7f76._0xf66617,_0x5e7f76._0x528d4b)+_0x47f108(_0x5e7f76._0x399667,0x1ef)],'action':_0x3a34e8(0x57a,_0x5e7f76._0xddb564)+'ed','qrPayload':_0x5ddf97[_0x3a34e8(0x2e5,_0x5e7f76._0x2cb0a2)](buildPairingQrPayload,{'server':_0x52c186,'gatewayId':_0x239b62[_0x47f108(0x180,_0x5e7f76._0x4f81db)+'d'],'accessCode':_0x239b62['accessCo'+'de'],'displayName':_0x239b62[_0x3a34e8(0x342,0x1e5)+_0x3a34e8(0x294,_0x5e7f76._0x5689fb)],'token':_0x17e921['gatewayT'+_0x3a34e8(0x4be,_0x5e7f76._0x328986)]?.[_0x47f108(0x3fc,_0x5e7f76._0x18a798)]()||null,'password':_0x17e921[_0x3a34e8(0x3fb,0x297)+_0x47f108(0x11a,0x2cb)]?.['trim']()||null})};}async function refreshAccessCode(_0x35ac0e){const _0x253628={_0x271710:0x19,_0x468f47:0x10d,_0xe38684:0x115,_0x4f3b82:0x6f,_0x521ad7:0x92,_0x36b6e9:0x105,_0x33dafa:0x273,_0x595f4a:0x1e4,_0xb86747:0x362,_0x13f123:0x221,_0x25d172:0xad,_0x579daf:0x5f,_0x1e8c88:0x2ad,_0x4ad6ff:0x21c,_0x30b9de:0x21f,_0x9cada7:0x1af,_0x26f732:0x251,_0x4628bf:0x4d,_0x1abd2b:0x197,_0x259096:0x91,_0x2ad8af:0x11d,_0x9c406c:0x34a,_0x3b2806:0x314,_0x235db6:0xd5,_0xc7f74a:0xa2,_0x1c8d9e:0x42,_0x3526c7:0x7e,_0x4cc3f4:0x392,_0x387d04:0x28,_0x79c371:0x456,_0x12deaa:0x1b6,_0x322f71:0x103,_0x1e2e7f:0x1bb,_0x226899:0x133,_0x3b337e:0xf,_0x37798a:0x1e4,_0x1a34ca:0x42b,_0x2e2f75:0x366,_0x15770b:0x4a0,_0x5cc0ea:0x5f7,_0x4083da:0x135,_0x25a759:0x98,_0x331a82:0x35e,_0x186562:0x34f,_0x1b4049:0xdd},_0x37b39c={_0x33bd9b:0x111},_0x11cb7b={'RgCrq':function(_0xbedbed){return _0xbedbed();},'BEaJf':_0x1dd641(-_0x253628._0x271710,-_0x253628._0x468f47)+_0x1dd641(-0x12e,-0x145)+_0x1f332f(0x41b,0x2f8)+_0x1dd641(0x107,-0x73)+_0x1dd641(0x28,_0x253628._0xe38684)+'.','wkhLD':'POST'},_0x12f01f=_0x11cb7b[_0x1dd641(0x53,_0x253628._0x4f3b82)](readPairingConfig),_0x3d4b14=normalizeHttpBase(_0x35ac0e?.[_0x1dd641(0x2f,0x105)+'l']??_0x12f01f?.[_0x1dd641(_0x253628._0x521ad7,_0x253628._0x36b6e9)+'l']??''),_0x3575f1=_0x35ac0e?.[_0x1dd641(-_0x253628._0x33dafa,-_0x253628._0x595f4a)+'d']??_0x12f01f?.[_0x1dd641(-0x259,-0x1e4)+'d']??'',_0x2420ca=_0x35ac0e?.['relaySec'+_0x1dd641(-_0x253628._0xb86747,-_0x253628._0x13f123)]??_0x12f01f?.[_0x1dd641(-_0x253628._0x25d172,-_0x253628._0x579daf)+_0x1dd641(-0xd4,-0x221)]??'';if(!_0x3d4b14||!_0x3575f1||!_0x2420ca)throw new Error(_0x11cb7b['BEaJf']);const _0x343953={};_0x343953[_0x1dd641(0x209,0x51)+_0x1dd641(-0x330,-0x167)]='applicat'+_0x1f332f(0x5cd,0x4e8);function _0x1f332f(_0x4dd210,_0x318ad8){return _0x5338aa(_0x4dd210-_0x37b39c._0x33bd9b,_0x318ad8);}_0x343953[_0x1f332f(0x30a,_0x253628._0x1e8c88)]=_0x1dd641(-_0x253628._0x4ad6ff,-0x241)+_0x1f332f(0x5cd,0x4cf);const _0x3ce5f6=await fetch(_0x3d4b14+(_0x1dd641(-0x133,-_0x253628._0x30b9de)+'/access-'+'code'),{'method':_0x11cb7b['wkhLD'],'headers':_0x343953,'body':JSON[_0x1f332f(0x3b5,0x35c)+'y']({'gatewayId':_0x3575f1,'relaySecret':_0x2420ca,'displayName':_0x35ac0e?.['displayN'+_0x1dd641(-_0x253628._0x9cada7,-_0x253628._0x26f732)]?.[_0x1f332f(0x51a,0x478)]()||void 0x0})});if(!_0x3ce5f6['ok'])throw new Error(_0x1dd641(-_0x253628._0x4628bf,0x4a)+_0x1dd641(-0x277,-0x139)+_0x1dd641(-_0x253628._0x1abd2b,-_0x253628._0x259096)+_0x1dd641(-0x17c,-0x4e)+_0x3ce5f6[_0x1f332f(0x4d0,0x312)]+'):\x20'+await _0x3ce5f6[_0x1dd641(-0x6b,-_0x253628._0x2ad8af)]());function _0x1dd641(_0x529a12,_0x544d7e){return _0x5338aa(_0x544d7e- -0x371,_0x529a12);}const _0x3f7130=await _0x3ce5f6[_0x1f332f(_0x253628._0x9c406c,_0x253628._0x3b2806)](),_0xd4cc40={'serverUrl':_0x3d4b14,'gatewayId':_0x3f7130['gatewayI'+'d'],'relaySecret':_0x2420ca,'relayUrl':_0x3f7130[_0x1dd641(_0x253628._0x235db6,_0x253628._0xc7f74a)],'instanceId':_0x12f01f?.[_0x1dd641(-_0x253628._0x1c8d9e,-_0x253628._0x3526c7)+'Id']??'inst-'+_0x3f7130[_0x1dd641(-0x2e8,-_0x253628._0x595f4a)+'d'][_0x1f332f(_0x253628._0x4cc3f4,0x4a0)](-0xa),'displayName':_0x3f7130[_0x1dd641(-_0x253628._0x387d04,-0x1d6)+_0x1dd641(-0x1b2,-0x251)],'createdAt':_0x12f01f?.['createdA'+'t']??new Date()[_0x1f332f(0x456,0x313)+_0x1f332f(0x2cc,0xfe)](),'updatedAt':new Date()[_0x1f332f(_0x253628._0x79c371,0x599)+_0x1dd641(-0x14d,-_0x253628._0x12deaa)]()};return writePairingConfig(_0xd4cc40),{'config':_0xd4cc40,'accessCode':_0x3f7130[_0x1dd641(-_0x253628._0x322f71,-_0x253628._0x1e2e7f)+'de'],'accessCodeExpiresAt':_0x3f7130[_0x1dd641(-0x2f3,-_0x253628._0x1e2e7f)+_0x1f332f(0x2db,0x3b0)+_0x1dd641(-_0x253628._0x226899,_0x253628._0x3b337e)],'action':_0x1f332f(0x574,0x657)+'d','qrPayload':buildPairingQrPayload({'server':_0x3d4b14,'gatewayId':_0x3f7130[_0x1dd641(-0x2b1,-_0x253628._0x37798a)+'d'],'accessCode':_0x3f7130[_0x1f332f(0x2c7,0x3df)+'de'],'displayName':_0x3f7130['displayN'+'ame'],'token':_0x35ac0e?.[_0x1f332f(_0x253628._0x1a34ca,_0x253628._0x2e2f75)+_0x1f332f(_0x253628._0x15770b,_0x253628._0x5cc0ea)]?.[_0x1dd641(_0x253628._0x4083da,_0x253628._0x25a759)]()||null,'password':_0x35ac0e?.[_0x1f332f(_0x253628._0x331a82,0x48f)+_0x1f332f(0x238,_0x253628._0x186562)]?.[_0x1dd641(-_0x253628._0x1b4049,0x98)]()||null})};}function normalizeHttpBase(_0x3eb083){const _0x5c3893={_0x4e2a83:0x18a,_0x28074f:0x223,_0x25bd3f:0x315,_0x3a3762:0x223,_0x590a51:0x394,_0x252cd0:0xde,_0x4c2c9f:0x90,_0x2d060b:0x24b,_0x538bc2:0x1a0,_0x2f4c76:0xeb,_0x426e0f:0x169,_0x1564a1:0x303,_0x396227:0x1cb,_0xbefd5:0xb,_0x516fda:0x3e,_0x31bc94:0x3f6,_0x190e0f:0x2ea,_0x1dd794:0x151,_0x45dbd1:0x3d1,_0x2f3a33:0x24d,_0x37a933:0x3e9},_0x464c16={_0x4a3347:0xe1},_0x291100=_0x3eb083[_0x446c71(_0x5c3893._0x4e2a83,0x1c6)]();function _0x446c71(_0x5ce0a3,_0x5c1c66){return _0x5338aa(_0x5c1c66- -0x243,_0x5ce0a3);}if(!_0x291100)return'';if(_0x291100[_0x561d19(_0x5c3893._0x28074f,_0x5c3893._0x25bd3f)+'th']('http://')||_0x291100[_0x561d19(_0x5c3893._0x3a3762,0x263)+'th']('https://'))return _0x291100[_0x561d19(0x24d,_0x5c3893._0x590a51)](/\/+$/,'');function _0x561d19(_0x394a3f,_0x28b286){return _0x5338aa(_0x394a3f- -_0x464c16._0x4a3347,_0x28b286);}if(_0x291100[_0x446c71(0x45,0xc1)+'th'](_0x561d19(_0x5c3893._0x252cd0,-_0x5c3893._0x4c2c9f)))return(_0x446c71(0x409,_0x5c3893._0x2d060b)+_0x291100[_0x561d19(_0x5c3893._0x538bc2,0x1ba)](_0x561d19(_0x5c3893._0x252cd0,0x12d)[_0x446c71(0x338,0x1f3)]))[_0x446c71(-0xee,_0x5c3893._0x2f4c76)](/\/+$/,'');if(_0x291100[_0x561d19(_0x5c3893._0x3a3762,_0x5c3893._0x426e0f)+'th'](_0x561d19(0x316,0x2ab)))return(_0x561d19(_0x5c3893._0x1564a1,_0x5c3893._0x396227)+_0x291100[_0x446c71(_0x5c3893._0xbefd5,_0x5c3893._0x516fda)](_0x561d19(0x316,_0x5c3893._0x31bc94)[_0x561d19(0x355,_0x5c3893._0x190e0f)]))[_0x561d19(0x24d,_0x5c3893._0x1dd794)](/\/+$/,'');return(_0x561d19(0x303,_0x5c3893._0x45dbd1)+_0x291100)[_0x561d19(_0x5c3893._0x2f3a33,_0x5c3893._0x37a933)](/\/+$/,'');}function assessPairingCompatibility(_0xa29afe,_0x5446ce){const _0x487f5d={_0x429773:0x60c,_0x4f300e:0x5d8,_0x23aa30:0x6e6,_0x135d55:0x3a8},_0x1cf136={_0x2193d2:0x143},_0x4dce8c={_0x377672:0x2f0};if(!_0xa29afe)return _0x3beeea(0x66a,_0x487f5d._0x429773)+'-new';if(_0xa29afe[_0x3beeea(0x559,0x5b9)+'l']===_0x5446ce)return'refresh-'+_0x203836(_0x487f5d._0x4f300e,0x7bb);function _0x203836(_0x1d893b,_0xffb6d0){return _0x5338aa(_0x1d893b-_0x4dce8c._0x377672,_0xffb6d0);}function _0x3beeea(_0x482cf0,_0x3ec5b2){return _0x5338aa(_0x3ec5b2-_0x1cf136._0x2193d2,_0x482cf0);}return _0x203836(_0x487f5d._0x23aa30,0x6ed)+_0x3beeea(_0x487f5d._0x135d55,0x52e);}import{execFileSync,spawn}from'child_process';function _0x5338aa(_0x70776a,_0x2d6d04){const _0x29bffb={_0x8467e7:0x95};return _0x3b9b(_0x70776a-_0x29bffb._0x8467e7,_0x2d6d04);}import{chmodSync,closeSync,existsSync as _0x30c183,mkdirSync as _0x5dc03e,openSync,readFileSync as _0x13f7bf,realpathSync,rmSync as _0xec8a4d,writeFileSync as _0x2eff19}from'fs';import{homedir as _0x56a1f5}from'os';import{dirname,join as _0x1bc804}from'path';var SERVICE_LABEL=_0x5338aa(0x4d3,0x350)+_0x5338aa(0x142,0x290)+'e.cli',SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x5338aa(0x13b,0x144),WINDOWS_RUN_KEY=_0x33cded(0x43d,0x5c9)+_0x5338aa(0x237,0x3dd),SERVICE_DIR=_0x1bc804(_0x56a1f5(),'.clawket'),LOG_DIR=_0x1bc804(SERVICE_DIR,_0x33cded(0x29c,0x437)),SERVICE_STATE_PATH=_0x1bc804(SERVICE_DIR,'bridge-s'+_0x5338aa(0x3cb,0x38c)+_0x33cded(0x3b7,0x40d)),SERVICE_LAUNCHER_PATH=_0x1bc804(SERVICE_DIR,_0x33cded(0x43b,0x4fd)+'ervice-l'+'auncher.'+'sh'),SERVICE_LOG_PATH=_0x1bc804(LOG_DIR,_0x33cded(0x718,0x5ee)+_0x5338aa(0x432,0x5fd)),SERVICE_ERROR_LOG_PATH=_0x1bc804(LOG_DIR,_0x33cded(0x67a,0x5ee)+_0x33cded(0x568,0x5e8)+_0x33cded(0x83e,0x73b)),MACOS_PLIST_PATH=_0x1bc804(_0x56a1f5(),_0x33cded(0x527,0x430),_0x5338aa(0x3f0,0x39a)+'ents',SERVICE_LABEL+_0x5338aa(0x358,0x3cb)),LINUX_SERVICE_PATH=_0x1bc804(_0x56a1f5(),_0x5338aa(0x155,-0x8),_0x33cded(0x335,0x4ce),_0x5338aa(0x3dc,0x445),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x4fefcc={},_0x37f4fa=process[_0x33cded(0x6c2,0x5dd)]){const _0x2669a6={_0x69eee5:0x34a,_0x499014:0x2be,_0x44c055:0x299,_0x41f7c4:0x517,_0xaa1cbc:0x4c2,_0x3e9a0a:0xca,_0x205dc7:0x108,_0x18dd0a:0x39c,_0x27157c:0x378,_0x791790:0x120,_0x3f2400:0x4,_0x54d665:0x2fb,_0x418b9d:0xe,_0x1cfab1:0x1d6,_0x544476:0x3de,_0x59d7e4:0x14a},_0x3a056a={};_0x3a056a[_0xa0e6f8(0x2c1,_0x2669a6._0x69eee5)]=function(_0x34cdd4,_0x57c038){return _0x34cdd4!==_0x57c038;};function _0x5c1702(_0x2682a4,_0x7997ed){return _0x33cded(_0x2682a4,_0x7997ed- -0x4e9);}const _0x12edca=_0x3a056a,_0x356b18=_0x4fefcc[_0xa0e6f8(_0x2669a6._0x499014,_0x2669a6._0x44c055)]?.[_0xa0e6f8(_0x2669a6._0x41f7c4,_0x2669a6._0xaa1cbc)]()||process[_0x5c1702(-_0x2669a6._0x3e9a0a,_0x2669a6._0x205dc7)],_0xd54970=resolveScriptPath(_0x4fefcc[_0xa0e6f8(_0x2669a6._0x18dd0a,_0x2669a6._0x27157c)+'th']);if(!_0xd54970)throw new Error(_0xa0e6f8(0x3c8,0x42b)+_0x5c1702(-_0x2669a6._0x791790,_0x2669a6._0x3f2400)+'e\x20CLI\x20sc'+_0xa0e6f8(0x396,0x46b)+_0xa0e6f8(_0x2669a6._0x54d665,0x39c)+'rvice\x20in'+_0x5c1702(-0x4b,0x11b)+'on.');if(_0x12edca[_0x5c1702(-0xd7,0x49)](_0x37f4fa,_0x5c1702(_0x2669a6._0x418b9d,0x59))){const _0x4df27a={};_0x4df27a['nodePath']=_0x356b18,_0x4df27a['scriptPa'+'th']=_0xd54970,_0x4df27a[_0xa0e6f8(0x1d9,_0x2669a6._0x1cfab1)]=process.env.PATH??'';const _0x3fb6bb=writeServiceLauncher(_0x4df27a);return ensureLaunchScriptExecutable(_0x3fb6bb,_0x37f4fa),[_0x3fb6bb];}function _0xa0e6f8(_0x185ee6,_0x85dcd5){return _0x33cded(_0x185ee6,_0x85dcd5- -0x1e8);}return[_0x356b18,_0xd54970,_0x5c1702(_0x2669a6._0x544476,0x20b),_0x5c1702(0x1e7,_0x2669a6._0x59d7e4)+'e'];}function getServiceStatus(){const _0x25f02f={_0x2d772d:0x45d,_0x49a463:0x639,_0x267c85:0x3dd,_0x46a167:0x3b5,_0x551f86:0x6e8,_0x3725fa:0x592,_0x479e31:0x5ef,_0x338d42:0x47b,_0x6a6900:0x4c8,_0x1ef098:0x4d7,_0x26fa1c:0x388,_0x388666:0x7f9,_0x21f6f8:0x6d5,_0x17854d:0x37b,_0x4ba409:0x5c2,_0x28800c:0x2f2,_0x387efb:0x4c1,_0x6415fa:0x591,_0x5c96ef:0x3fd,_0x51546b:0x5ab,_0x2de401:0x983,_0x3cd22b:0x484,_0x2b55f2:0x3fa,_0x308430:0x5b4,_0x495eba:0x718,_0x571a3e:0x5ad,_0x403a95:0x643,_0x5ec9e5:0x2ec,_0x2e2061:0x32a,_0x25a4a9:0x734},_0x505e04={'fmjGB':function(_0x41d488){return _0x41d488();},'lbOCe':function(_0x4ba188,_0x4361b2){return _0x4ba188!=_0x4361b2;},'kgXCa':'--user','hmNmN':function(_0x508567,_0x144a48,_0x4a8bf0){return _0x508567(_0x144a48,_0x4a8bf0);}};_0x505e04[_0x66c792(_0x25f02f._0x2d772d,_0x25f02f._0x49a463)](ensureServiceDirs);function _0x4a4bae(_0x2d04c0,_0x17fd89){return _0x5338aa(_0x2d04c0-0x265,_0x17fd89);}const _0x2f6229=readServiceState()?.[_0x4a4bae(_0x25f02f._0x267c85,_0x25f02f._0x46a167)]??null,_0x1a622a={'installed':![],'running':_0x505e04['lbOCe'](_0x2f6229,null)&&isPidRunning(_0x2f6229),'method':detectServiceMethod(),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x2f6229};_0x1a622a['pid']!=null&&!_0x1a622a['running']&&(clearServiceState(_0x1a622a['pid']),_0x1a622a[_0x66c792(0x5ab,0x4b7)]=null);function _0x66c792(_0x33047c,_0x4ab050){return _0x5338aa(_0x4ab050-0x33f,_0x33047c);}switch(_0x1a622a[_0x4a4bae(0x58a,_0x25f02f._0x551f86)]){case _0x66c792(_0x25f02f._0x3725fa,_0x25f02f._0x479e31)+_0x66c792(_0x25f02f._0x338d42,0x59f):_0x1a622a[_0x66c792(0x600,_0x25f02f._0x6a6900)+'d']=_0x30c183(MACOS_PLIST_PATH);_0x1a622a['installe'+'d']&&(_0x1a622a[_0x66c792(0x50f,_0x25f02f._0x1ef098)]=commandSucceeds('launchct'+'l',['list',SERVICE_LABEL])||_0x1a622a[_0x66c792(_0x25f02f._0x26fa1c,0x4d7)]);return _0x1a622a;case _0x66c792(_0x25f02f._0x388666,_0x25f02f._0x21f6f8)+'user':_0x1a622a[_0x4a4bae(0x3ee,0x4a3)+'d']=_0x30c183(LINUX_SERVICE_PATH);_0x1a622a[_0x66c792(_0x25f02f._0x17854d,0x4c8)+'d']&&(_0x1a622a['running']=commandSucceeds('systemct'+'l',[_0x505e04[_0x4a4bae(0x47e,_0x25f02f._0x4ba409)],_0x66c792(_0x25f02f._0x28800c,_0x25f02f._0x387efb)+'e',_0x66c792(0x6eb,_0x25f02f._0x6415fa),SYSTEMD_UNIT_NAME])||_0x1a622a[_0x4a4bae(_0x25f02f._0x5c96ef,0x317)]);return _0x1a622a;case _0x66c792(0x407,_0x25f02f._0x51546b)+_0x66c792(_0x25f02f._0x2de401,0x7d1)+_0x4a4bae(_0x25f02f._0x3cd22b,0x387):_0x1a622a['installe'+'d']=_0x505e04[_0x66c792(_0x25f02f._0x2b55f2,_0x25f02f._0x308430)](commandSucceeds,_0x66c792(_0x25f02f._0x495eba,0x7b4),[_0x4a4bae(_0x25f02f._0x571a3e,0x63d),_0x66c792(_0x25f02f._0x403a95,0x539)+_0x66c792(0x54b,0x586)+_0x4a4bae(0x3d9,_0x25f02f._0x5ec9e5)+_0x66c792(0x8c2,0x77f)+_0x4a4bae(0x41d,_0x25f02f._0x2e2061)+_0x66c792(_0x25f02f._0x25a4a9,0x608)+'un','/v',WINDOWS_RUN_KEY]);return _0x1a622a;default:return _0x1a622a;}}function installService(_0x43b961={}){const _0x9dcdaf={_0x3c19f1:0x2b9,_0x1e21c9:0x3c6,_0x55fd9f:0x4cb,_0x3200cc:0x438,_0x5bcddb:0x3f6,_0x483318:0x273,_0x1d85dc:0x28c,_0x32090b:0x35b,_0x378445:0x438,_0x162ff6:0x5d7,_0x19f224:0xdf,_0x5e2475:0x246,_0x56aaaf:0x88,_0x45afe9:0x2f1,_0x3db06d:0x3e2,_0x364060:0x3c9,_0x4157ee:0x325,_0xcda435:0x5b9,_0x1f122:0x4e2,_0x14f1c2:0x25a,_0x2b6864:0x365,_0x221b34:0x1a9,_0x565a3b:0x420,_0x11ee76:0x442,_0x172570:0x2ee,_0x898273:0x1d3,_0x4768cf:0x17e,_0x548ce2:0x56,_0xc0cf05:0x3a4,_0x495668:0x134,_0x4923f8:0x54c,_0x17d4f5:0x502,_0x4c18e5:0x3d5,_0x4787fb:0xec,_0x3e9962:0x14,_0x279056:0x197,_0x38cbb7:0x344,_0x4a4c0f:0x119,_0x4b20fe:0x214,_0x54b530:0x419,_0x5bc5f7:0x448,_0x52f6b2:0x2ab},_0x5761a3={_0x30dc63:0x7c},_0x5bee5c={'SSXLN':'darwin','dksOA':function(_0x5d2545,_0x2991bf,_0x1e033f,_0x2e6d27){return _0x5d2545(_0x2991bf,_0x1e033f,_0x2e6d27);},'nxRfA':function(_0x344838,_0x57c158,_0x453a0d){return _0x344838(_0x57c158,_0x453a0d);},'ohtqw':_0x4087fe(0x21b,0x3ed),'rVksx':_0x37d80e(0x352,0x329),'DTBfM':'win32','LqTVY':function(_0x42a93b){return _0x42a93b();}};ensureServiceDirs();function _0x37d80e(_0x580571,_0x17375a){return _0x5338aa(_0x580571- -_0x5761a3._0x30dc63,_0x17375a);}const _0x9910c0=getServiceProgramArgs(_0x43b961);switch(process['platform']){case _0x5bee5c[_0x37d80e(_0x9dcdaf._0x3c19f1,0x23b)]:_0x2eff19(MACOS_PLIST_PATH,_0x5bee5c[_0x37d80e(_0x9dcdaf._0x1e21c9,0x288)](buildMacosPlist,_0x9910c0,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x4087fe(0x3a9,_0x9dcdaf._0x55fd9f)),execIgnoreFailure(_0x4087fe(_0x9dcdaf._0x3200cc,_0x9dcdaf._0x5bcddb)+'l',[_0x4087fe(_0x9dcdaf._0x483318,_0x9dcdaf._0x1d85dc),'-w',MACOS_PLIST_PATH]);const _0x769af2={};_0x769af2[_0x4087fe(_0x9dcdaf._0x32090b,0x2bd)]='ignore',execFileSync(_0x4087fe(_0x9dcdaf._0x378445,_0x9dcdaf._0x162ff6)+'l',['load','-w',MACOS_PLIST_PATH],_0x769af2);break;case _0x37d80e(_0x9dcdaf._0x19f224,_0x9dcdaf._0x5e2475):const _0x3f132c={};_0x3f132c[_0x37d80e(0x142,-_0x9dcdaf._0x56aaaf)+'e']=!![],_0x5bee5c[_0x4087fe(0x3c3,_0x9dcdaf._0x45afe9)](_0x5dc03e,dirname(LINUX_SERVICE_PATH),_0x3f132c),_0x2eff19(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x9910c0,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8');const _0x1f9a4c={};_0x1f9a4c[_0x4087fe(0x35b,0x217)]='ignore',execFileSync(_0x4087fe(_0x9dcdaf._0x3db06d,0x4f5)+'l',[_0x4087fe(0x365,0x253),_0x37d80e(_0x9dcdaf._0x364060,_0x9dcdaf._0x4157ee)+_0x4087fe(_0x9dcdaf._0xcda435,_0x9dcdaf._0x1f122)],_0x1f9a4c),execFileSync(_0x37d80e(_0x9dcdaf._0x14f1c2,0x3fc)+'l',[_0x4087fe(_0x9dcdaf._0x2b6864,_0x9dcdaf._0x221b34),_0x4087fe(_0x9dcdaf._0x565a3b,0x2dd),_0x5bee5c['ohtqw'],SYSTEMD_UNIT_NAME],{'stdio':_0x5bee5c['rVksx']});break;case _0x5bee5c[_0x4087fe(_0x9dcdaf._0x11ee76,_0x9dcdaf._0x172570)]:stopRunningProcess();const _0x563651={};_0x563651[_0x37d80e(_0x9dcdaf._0x898273,0x306)]=_0x5bee5c['rVksx'],execFileSync('reg',['add',_0x37d80e(_0x9dcdaf._0x4768cf,_0x9dcdaf._0x548ce2)+_0x37d80e(0x1cb,_0x9dcdaf._0xc0cf05)+_0x4087fe(0x280,_0x9dcdaf._0x495668)+_0x4087fe(_0x9dcdaf._0x4923f8,_0x9dcdaf._0x17d4f5)+_0x4087fe(0x2c4,0x3e4)+_0x4087fe(_0x9dcdaf._0x4c18e5,0x455)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x37d80e(_0x9dcdaf._0x4787fb,_0x9dcdaf._0x3e9962),'/d',buildWindowsRunCommand(_0x9910c0),'/f'],_0x563651),startDetachedWindowsService(_0x9910c0);break;default:throw new Error(_0x4087fe(0x3dd,0x532)+_0x37d80e(_0x9dcdaf._0x279056,_0x9dcdaf._0x38cbb7)+_0x37d80e(_0x9dcdaf._0x4a4c0f,-0x95)+_0x4087fe(0x3e5,_0x9dcdaf._0x4b20fe)+_0x4087fe(0x3d7,0x528)+'tallatio'+_0x4087fe(_0x9dcdaf._0x54b530,0x24f)+process[_0x4087fe(_0x9dcdaf._0x5bc5f7,0x46b)]);}function _0x4087fe(_0x24f9f6,_0x44d3fd){return _0x5338aa(_0x24f9f6-0x10c,_0x44d3fd);}return _0x5bee5c[_0x4087fe(_0x9dcdaf._0x52f6b2,0x376)](getServiceStatus);}function restartService(_0x2b0367={}){const _0x10f7c5={_0x5779eb:0x36b,_0x58f17c:0x36a,_0x14c789:0x296,_0x5ba50f:0x3ad,_0x5b7b21:0x1a8,_0x1c6b29:0x2ac,_0x37946e:0x53b,_0x59adad:0x51d,_0x462def:0x47e,_0x3e42d6:0x467,_0x436ca7:0x4c9,_0x1dbc36:0x3ae,_0x24e65f:0x38a,_0x3b7472:0x5b4,_0xf2d97:0x4c4,_0x2a294f:0x57e,_0x2d4326:0x365,_0x187eb2:0x374,_0x14b144:0x330,_0x49430f:0x5e8,_0x897f5e:0x491,_0x5bb16c:0x24c,_0x11222b:0x5c8,_0x4aafb5:0x376,_0x4b5fba:0x485,_0x33a762:0x326,_0x41e978:0x335,_0x521b22:0x224,_0x44aa72:0x2af,_0x1fbc23:0x517,_0x4f5751:0x3a0,_0x3511ed:0x452,_0x365727:0x3a8,_0x1fcec3:0x18f},_0x3c7414={_0x2b836b:0x166},_0x157487={'yYsvi':function(_0x42e827,_0x1b4458){return _0x42e827(_0x1b4458);},'BbgTY':_0x225784(0x525,_0x10f7c5._0x5779eb),'nuWKy':function(_0x3f3629,_0x30bb8b,_0x4eaeea){return _0x3f3629(_0x30bb8b,_0x4eaeea);},'KBYXe':'unload','UkpHa':_0x225784(0x1de,_0x10f7c5._0x58f17c),'lfNqg':_0x225784(0x186,_0x10f7c5._0x14c789),'EaUGn':function(_0xdb1d13,_0xb8489a){return _0xdb1d13(_0xb8489a);},'dFQMa':function(_0x22a544,_0x22894b){return _0x22a544(_0x22894b);},'uciJJ':function(_0xe5df7e,_0x30b6fb,_0x1a34e2,_0x46c796){return _0xe5df7e(_0x30b6fb,_0x1a34e2,_0x46c796);},'EbRDb':_0x2eb736(0x1cf,_0x10f7c5._0x5ba50f)+'l','qTVHR':_0x225784(0x508,0x394),'SsJBQ':_0x225784(_0x10f7c5._0x5b7b21,_0x10f7c5._0x1c6b29),'ImTmF':_0x225784(0x5a8,0x3dc),'GfVfU':'REG_SZ','TZfnd':function(_0x507aa9){return _0x507aa9();}};function _0x225784(_0x29b876,_0xba249a){return _0x33cded(_0x29b876,_0xba249a- -_0x3c7414._0x2b836b);}function _0x2eb736(_0x36bc1b,_0x1ceab5){return _0x33cded(_0x36bc1b,_0x1ceab5- -0x1ca);}ensureServiceDirs();const _0x4da12b=_0x157487[_0x225784(_0x10f7c5._0x37946e,_0x10f7c5._0x59adad)](getServiceProgramArgs,_0x2b0367);switch(process[_0x2eb736(0x515,0x413)]){case _0x157487['BbgTY']:if(!_0x30c183(MACOS_PLIST_PATH))return installService(_0x2b0367);_0x2eff19(MACOS_PLIST_PATH,buildMacosPlist(_0x4da12b,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),_0x157487[_0x225784(0x39b,_0x10f7c5._0x462def)](execIgnoreFailure,_0x225784(0x426,_0x10f7c5._0x3e42d6)+'l',[_0x157487[_0x225784(_0x10f7c5._0x436ca7,_0x10f7c5._0x1dbc36)],'-w',MACOS_PLIST_PATH]);const _0x2aa54e={};_0x2aa54e[_0x225784(0x415,_0x10f7c5._0x24e65f)]=_0x2eb736(0x588,0x4a5),execFileSync(_0x225784(_0x10f7c5._0x3b7472,0x467)+'l',[_0x157487[_0x225784(0x475,0x502)],'-w',MACOS_PLIST_PATH],_0x2aa54e);break;case _0x157487[_0x2eb736(_0x10f7c5._0xf2d97,0x51d)]:if(!_0x157487[_0x225784(0x48b,0x4be)](_0x30c183,LINUX_SERVICE_PATH))return installService(_0x2b0367);const _0x1ce4d9={};_0x1ce4d9['recursiv'+'e']=!![],_0x5dc03e(_0x157487[_0x225784(0x71c,_0x10f7c5._0x2a294f)](dirname,LINUX_SERVICE_PATH),_0x1ce4d9),_0x2eff19(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x4da12b,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x2eb736(_0x10f7c5._0x2d4326,_0x10f7c5._0x187eb2));const _0x1d4cdb={};_0x1d4cdb['stdio']='ignore',execFileSync('systemct'+'l',[_0x2eb736(0x4f7,_0x10f7c5._0x14b144),'daemon-r'+_0x225784(0x6ec,_0x10f7c5._0x49430f)],_0x1d4cdb);const _0x1d285f={};_0x1d285f['stdio']=_0x225784(_0x10f7c5._0x897f5e,0x509),_0x157487[_0x225784(0x14e,_0x10f7c5._0x5bb16c)](execFileSync,_0x157487['EbRDb'],[_0x157487[_0x225784(0x69e,_0x10f7c5._0x11222b)],_0x157487['SsJBQ'],SYSTEMD_UNIT_NAME],_0x1d285f);break;case _0x157487[_0x2eb736(_0x10f7c5._0x4aafb5,0x525)]:stopRunningProcess();const _0x1691b7={};_0x1691b7[_0x2eb736(_0x10f7c5._0x4b5fba,_0x10f7c5._0x33a762)]=_0x225784(0x62d,0x509),execFileSync(_0x2eb736(0x514,0x54c),['add',_0x225784(_0x10f7c5._0x33a762,_0x10f7c5._0x41e978)+_0x2eb736(0x3c0,0x31e)+_0x225784(_0x10f7c5._0x521b22,_0x10f7c5._0x44aa72)+_0x2eb736(0x5c6,_0x10f7c5._0x1fbc23)+_0x225784(0x2d6,0x2f3)+_0x2eb736(0x514,_0x10f7c5._0x4f5751)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x157487[_0x2eb736(0x59a,0x498)],'/d',buildWindowsRunCommand(_0x4da12b),'/f'],_0x1691b7),_0x157487['yYsvi'](startDetachedWindowsService,_0x4da12b);break;default:throw new Error(_0x2eb736(_0x10f7c5._0x3511ed,_0x10f7c5._0x365727)+_0x2eb736(_0x10f7c5._0x1fcec3,0x2ea)+'form\x20for'+'\x20CLI\x20ser'+_0x2eb736(0x2ae,0x2b3)+'tart:\x20'+process['platform']);}return _0x157487[_0x225784(0x1e9,0x332)](getServiceStatus);}function uninstallService(){const _0x8db153={_0x194b48:0x163,_0x53d209:0x13a,_0x21a821:0x18,_0x551caa:0x67,_0x3303da:0x1e3,_0x1c2fe3:0x22c,_0x43df83:0x13f,_0x56a331:0x433,_0x2f5b12:0x5e,_0x1c31ff:0x108,_0x2b1784:0x4fc,_0x430611:0x4ea,_0x410dfe:0x13a,_0x49b329:0xb2,_0x2c06f1:0x6d3,_0x3f6ef3:0x508,_0x4a4d26:0x52d,_0x2e8e11:0x199,_0x1fa956:0x1db,_0x3994bd:0x138,_0x45725b:0x48a,_0x1aa4f0:0x51b},_0x33293d={_0x9e4247:0x393},_0x36c0f8={_0xcc95ca:0x226};function _0x5ce9dc(_0x279411,_0x12ee4b){return _0x5338aa(_0x279411-_0x36c0f8._0xcc95ca,_0x12ee4b);}function _0x6ee3a6(_0xc3d3cc,_0xe5477){return _0x5338aa(_0xc3d3cc- -_0x33293d._0x9e4247,_0xe5477);}const _0x193b5c={'yLiJH':_0x6ee3a6(-_0x8db153._0x194b48,-0x343),'KNCHM':_0x5ce9dc(0x4fc,0x36b)+'l','JAfSz':_0x6ee3a6(-_0x8db153._0x53d209,-_0x8db153._0x21a821),'NqEZy':function(_0x5c1817,_0x266134){return _0x5c1817(_0x266134);},'Qjvkf':'win32','rKilA':_0x6ee3a6(-0x26b,-0x3f5),'lCWoP':function(_0x4ea5ed){return _0x4ea5ed();}};stopRunningProcess();switch(process['platform']){case _0x193b5c[_0x5ce9dc(0x3d8,0x492)]:execIgnoreFailure(_0x6ee3a6(-_0x8db153._0x551caa,-_0x8db153._0x3303da)+'l',[_0x6ee3a6(-_0x8db153._0x1c2fe3,-_0x8db153._0x43df83),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x5ce9dc(0x381,_0x8db153._0x56a331):_0x30c183(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x193b5c[_0x6ee3a6(-0x76,0x12a)],[_0x193b5c[_0x6ee3a6(_0x8db153._0x2f5b12,0x6b)],'disable',_0x5ce9dc(0x335,0x451),SYSTEMD_UNIT_NAME]),_0x193b5c[_0x6ee3a6(-_0x8db153._0x1c31ff,-0x240)](rmIfExists,LINUX_SERVICE_PATH),execIgnoreFailure(_0x5ce9dc(_0x8db153._0x2b1784,_0x8db153._0x430611)+'l',[_0x6ee3a6(-_0x8db153._0x410dfe,-0xc),_0x6ee3a6(_0x8db153._0x49b329,-0x67)+_0x5ce9dc(_0x8db153._0x2c06f1,0x750)]));break;case _0x193b5c[_0x5ce9dc(_0x8db153._0x3f6ef3,0x64f)]:execIgnoreFailure('reg',[_0x193b5c[_0x5ce9dc(_0x8db153._0x4a4d26,0x430)],_0x6ee3a6(-_0x8db153._0x2e8e11,-0xd8)+'tware\x5cMi'+'crosoft\x5c'+_0x6ee3a6(0xad,-0x122)+_0x6ee3a6(-_0x8db153._0x1fa956,-_0x8db153._0x3994bd)+_0x5ce9dc(0x4ef,_0x8db153._0x45725b)+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return _0x193b5c[_0x5ce9dc(_0x8db153._0x1aa4f0,0x48c)](clearServiceState),_0x193b5c['lCWoP'](getServiceStatus);}function stopService(){const _0x4f221c={_0x2e5ca8:0x10d,_0x12786c:0x1d,_0x307cd7:0x1a,_0x31db93:0x1cd,_0x2bbf54:0x2ef,_0x156d1f:0x47,_0x261717:0x2c,_0x42b240:0x85,_0x54f38f:0x146,_0x246b95:0x5c},_0x19585f={_0x17a24b:0x3ae},_0x7d104d={_0x27648c:0x302},_0x5ba156={'FnXki':function(_0x4f647e,_0x188a26){return _0x4f647e(_0x188a26);},'FpRhp':function(_0xa3db4d,_0x306ff0,_0x1a7576){return _0xa3db4d(_0x306ff0,_0x1a7576);},'yAVBO':_0x49c233(-_0x4f221c._0x2e5ca8,-_0x4f221c._0x12786c),'gikVm':function(_0x2d221a){return _0x2d221a();}};function _0x4f82e0(_0x1d97da,_0x30fbe3){return _0x5338aa(_0x30fbe3- -_0x7d104d._0x27648c,_0x1d97da);}function _0x49c233(_0x4bb11e,_0xa585c0){return _0x5338aa(_0x4bb11e- -_0x19585f._0x17a24b,_0xa585c0);}stopRunningProcess();switch(process['platform']){case'darwin':_0x5ba156[_0x4f82e0(-_0x4f221c._0x307cd7,-0x1ef)](_0x30c183,MACOS_PLIST_PATH)&&_0x5ba156[_0x4f82e0(-0x372,-_0x4f221c._0x31db93)](execIgnoreFailure,_0x49c233(-0x82,0xb7)+'l',['unload',MACOS_PLIST_PATH]);break;case _0x4f82e0(-_0x4f221c._0x2bbf54,-0x1a7):_0x30c183(LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x4f82e0(_0x4f221c._0x156d1f,-_0x4f221c._0x261717)+'l',['--user',_0x49c233(-0x7e,-_0x4f221c._0x42b240),SYSTEMD_UNIT_NAME]);break;case _0x5ba156[_0x4f82e0(_0x4f221c._0x54f38f,-_0x4f221c._0x246b95)]:break;default:break;}return _0x5ba156[_0x49c233(-0x1b0,-0x231)](clearServiceState),getServiceStatus();}function writeServiceState(_0x215461=process['pid']){const _0x24cdbd={_0x205354:0x268,_0x7e2d88:0x310,_0x85f8cd:0x1bc,_0x4e35d4:0x186,_0x226dd2:0x180,_0x1732af:0x137},_0x4b19f7={_0x44b392:0x424};function _0x2c2212(_0x28e0e6,_0x565ac0){return _0x5338aa(_0x28e0e6- -0x35,_0x565ac0);}const _0x41ebcb={'DxaMg':function(_0x4ff926,_0x66481f,_0x222bf4,_0x4e727e){return _0x4ff926(_0x66481f,_0x222bf4,_0x4e727e);},'uzxBb':_0x2c2212(_0x24cdbd._0x205354,0x305)};ensureServiceDirs();function _0x22be34(_0x1cb9a8,_0x26f915){return _0x5338aa(_0x1cb9a8- -_0x4b19f7._0x44b392,_0x26f915);}const _0x224b8f={'pid':_0x215461,'startedAt':new Date()[_0x2c2212(_0x24cdbd._0x7e2d88,_0x24cdbd._0x85f8cd)+_0x2c2212(_0x24cdbd._0x4e35d4,0x25)]()};_0x41ebcb['DxaMg'](_0x2eff19,SERVICE_STATE_PATH,JSON[_0x22be34(-_0x24cdbd._0x226dd2,-_0x24cdbd._0x1732af)+'y'](_0x224b8f,null,0x2)+'\x0a',_0x41ebcb['uzxBb']);}function clearServiceState(_0xeebe8f){if(!_0x30c183(SERVICE_STATE_PATH))return;if(_0xeebe8f!=null){const _0x30aa23=readServiceState();if(_0x30aa23&&_0x30aa23['pid']!==_0xeebe8f)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':getServicePath()};}function buildMacosPlist(_0x53aec9,_0xdab123,_0x3a0574){const _0x59df55={_0x37f6f3:0x4a9,_0x48e1ba:0x1e,_0x37751c:0x200,_0xace323:0x4,_0x2fac42:0xdc,_0x51ba3a:0x106,_0x14a2f8:0xa9,_0x18ae2e:0x11f,_0x435439:0x240,_0x4f8a89:0x325,_0x23fbb9:0x281,_0x7c36c5:0x499,_0x10a125:0x226,_0x5bca4b:0x402,_0x1f0ff7:0x400,_0xbf0f33:0x297,_0x503978:0x3,_0x201525:0xd6,_0x295388:0x51b,_0x560c7d:0x2ef,_0x26e845:0x480,_0x55d365:0xbd,_0x51f2d5:0x299,_0x152751:0x353,_0x5714fa:0x442,_0xab78d1:0x1a0,_0x4e5e6b:0x12a,_0x5e218a:0x62,_0x45dd89:0x2b0,_0x278aa9:0x3a6,_0x49eb49:0x88,_0x3c33db:0x24f,_0x18f345:0x271,_0x1e4712:0x156,_0xfb1323:0x437,_0x3f249d:0x301,_0x1a7764:0x29,_0x2a96d1:0x8a,_0xca6182:0x1f4,_0x2a0505:0x2d3,_0x41d131:0x80,_0x9a6563:0x60,_0x5ac88c:0x3ae,_0x3b0fbc:0x3a0,_0x5e961f:0x1bc,_0x46f853:0x241,_0x5a21dd:0xc6,_0x34d1eb:0x272},_0x2d5e1f={_0x458704:0x6c};function _0x316d79(_0xe13bee,_0x3a8637){return _0x5338aa(_0xe13bee- -_0x2d5e1f._0x458704,_0x3a8637);}const _0x3773be=_0x53aec9[_0x316d79(0x43c,_0x59df55._0x37f6f3)](_0x5cc37b=>_0x316d79(0x138,0x38)+'ing>'+escapeXml(_0x5cc37b)+(_0x39c550(0x11c,0x22c)+'>'))[_0x39c550(_0x59df55._0x48e1ba,_0x59df55._0x37751c)]('\x0a');function _0x39c550(_0x4630e7,_0x20ab7e){return _0x5338aa(_0x4630e7- -0x200,_0x20ab7e);}return'<?xml\x20ve'+_0x39c550(0xf4,-_0x59df55._0xace323)+_0x39c550(-_0x59df55._0x2fac42,-_0x59df55._0x51ba3a)+_0x39c550(-_0x59df55._0x14a2f8,_0x59df55._0x18ae2e)+_0x39c550(0x62,_0x59df55._0x435439)+_0x316d79(_0x59df55._0x4f8a89,_0x59df55._0x23fbb9)+_0x316d79(0x391,_0x59df55._0x7c36c5)+'UBLIC\x20\x22-'+'//Apple/'+_0x39c550(_0x59df55._0x10a125,_0x59df55._0x5bca4b)+_0x39c550(0x43,-0x12e)+'EN\x22\x20\x22htt'+_0x316d79(_0x59df55._0x1f0ff7,_0x59df55._0xbf0f33)+_0x39c550(_0x59df55._0x503978,-_0x59df55._0x201525)+_0x316d79(0x3fa,_0x59df55._0x295388)+_0x316d79(_0x59df55._0x560c7d,_0x59df55._0x26e845)+_0x39c550(-_0x59df55._0x55d365,-0x6e)+'dtd\x22>\x0a<p'+_0x39c550(0x24,0x1e)+_0x316d79(_0x59df55._0x51f2d5,_0x59df55._0x152751)+_0x316d79(_0x59df55._0x5714fa,0x427)+_0x316d79(0x21c,0x306)+'y>Label<'+_0x39c550(0x282,_0x59df55._0xab78d1)+_0x39c550(_0x59df55._0x4e5e6b,-_0x59df55._0x5e218a)+SERVICE_LABEL+(_0x316d79(_0x59df55._0x45dd89,0x362)+_0x39c550(0x1e6,_0x59df55._0x278aa9)+_0x39c550(0x117,-_0x59df55._0x49eb49)+_0x39c550(_0x59df55._0x3c33db,0x38b)+_0x316d79(0x3a5,0x380)+_0x316d79(0x1af,_0x59df55._0x18f345)+'>\x0a')+_0x3773be+(_0x39c550(_0x59df55._0x1e4712,0x18d)+'ay>\x0a\x20\x20<k'+_0x316d79(_0x59df55._0xfb1323,0x414)+'Load</ke'+_0x316d79(0x39e,0x362)+'ue/>\x0a\x20\x20<'+'key>Keep'+'Alive</k'+_0x39c550(0x223,0x183)+_0x316d79(0x190,0x358)+'<key>Sta'+_0x316d79(0x157,0x194)+_0x316d79(_0x59df55._0x3f249d,0x401)+_0x39c550(_0x59df55._0x1a7764,-_0x59df55._0x2a96d1)+_0x39c550(_0x59df55._0xca6182,_0x59df55._0x2a0505))+escapeXml(_0xdab123)+(_0x316d79(_0x59df55._0x45dd89,0x278)+'>\x0a\x20\x20<key'+'>Standar'+_0x39c550(_0x59df55._0x41d131,-_0x59df55._0x9a6563)+_0x316d79(_0x59df55._0x5ac88c,0x569)+_0x316d79(0x3cb,0x4d7)+_0x316d79(_0x59df55._0x3b0fbc,_0x59df55._0x5e961f))+escapeXml(_0x3a0574)+('</string'+'>\x0a</dict'+_0x39c550(_0x59df55._0x46f853,_0x59df55._0x5a21dd)+_0x316d79(_0x59df55._0x34d1eb,0x315));}function buildLinuxSystemdUnit(_0x31099a,_0x1f515f,_0x49df52){const _0x2074a2={_0x42e269:0x2c4,_0x25d4c3:0x1e8,_0x237be2:0xe4,_0x286358:0x41b,_0x1c32c0:0x3d7,_0x6d2295:0x415,_0x55df20:0x508,_0x1e650f:0x3d9,_0x20e3b4:0x3a0,_0x11fe3b:0x40c,_0x18415a:0x2fb,_0x538209:0x45b,_0x4c0795:0x5ba,_0xb920bc:0x2b8,_0x5d2523:0x1bf,_0x12a22c:0x517,_0x20e2f9:0x102,_0x35afe4:0xbb,_0x5ca325:0xa7},_0xc22100={_0x23f4b8:0x172},_0x40f6e4={_0x3fbf80:0x316};function _0x496faa(_0x1bd80c,_0x6d49e5){return _0x33cded(_0x6d49e5,_0x1bd80c- -_0x40f6e4._0x3fbf80);}const _0x4ef4ce=_0x31099a[_0x496faa(0x433,_0x2074a2._0x42e269)](escapeSystemdArg)[_0x2e6a90(_0x2074a2._0x25d4c3,0x34d)]('\x20');function _0x2e6a90(_0x92adc3,_0x6762b2){return _0x33cded(_0x92adc3,_0x6762b2- -_0xc22100._0x23f4b8);}return'[Unit]\x0aD'+'escripti'+_0x496faa(_0x2074a2._0x237be2,0x93)+_0x2e6a90(_0x2074a2._0x286358,_0x2074a2._0x1c32c0)+'e\x20CLI\x0aAf'+'ter=netw'+'ork-onli'+_0x2e6a90(_0x2074a2._0x6d2295,_0x2074a2._0x55df20)+_0x2e6a90(_0x2074a2._0x1e650f,0x52d)+'network-'+_0x2e6a90(0x5ce,0x3f0)+_0x496faa(0x203,0x189)+_0x2e6a90(_0x2074a2._0x20e3b4,0x282)+_0x2e6a90(0x217,0x2cc)+_0x496faa(0x3b6,_0x2074a2._0x11fe3b)+_0x2e6a90(_0x2074a2._0x18415a,0x243)+_0x4ef4ce+('\x0aRestart'+_0x496faa(_0x2074a2._0x538209,0x297)+_0x2e6a90(0x1ce,0x349)+_0x2e6a90(0x5aa,_0x2074a2._0x4c0795)+_0x496faa(_0x2074a2._0xb920bc,_0x2074a2._0x5d2523)+_0x2e6a90(_0x2074a2._0x12a22c,0x3eb))+escapeSystemdArg(SERVICE_DIR)+(_0x496faa(0x44c,0x4fa)+'dOutput='+'append:')+_0x1f515f+('\x0aStandar'+_0x496faa(0x3f6,0x3a7)+_0x2e6a90(0x5f5,0x560))+_0x49df52+(_0x496faa(0x387,0x465)+_0x2e6a90(0x219,0x29c)+_0x496faa(_0x2074a2._0x20e2f9,-_0x2074a2._0x35afe4)+_0x2e6a90(0x553,0x49a)+_0x496faa(_0x2074a2._0x5ca325,-0xf9));}function getServicePath(){const _0x4fb502={_0x514107:0xb3,_0x311b4d:0x1d1,_0x2c2126:0x192,_0x172c0e:0x38,_0x3ae8e8:0x233,_0x125f3e:0x97,_0x71a95b:0x173,_0x110381:0x57},_0x387411={};_0x387411[_0x40152d(0x73,-_0x4fb502._0x514107)]=_0x3973ed(0x5d,_0x4fb502._0x311b4d)+_0x3973ed(0xaa,0x202)+_0x3973ed(-0x29,_0x4fb502._0x2c2126)+_0x40152d(0x232,0x250)+_0x40152d(0x9c,-_0x4fb502._0x172c0e)+_0x40152d(_0x4fb502._0x3ae8e8,0xd9)+'un\x5cClawk'+_0x40152d(_0x4fb502._0x125f3e,0x197)+_0x3973ed(_0x4fb502._0x71a95b,-_0x4fb502._0x110381);function _0x3973ed(_0x4db4dd,_0x3f1838){return _0x5338aa(_0x4db4dd- -0x19d,_0x3f1838);}function _0x40152d(_0x2d3f7f,_0x10015c){return _0x5338aa(_0x10015c- -0x1f0,_0x2d3f7f);}const _0x533998=_0x387411;switch(process[_0x3973ed(0x19f,0xe6)]){case _0x40152d(-0x19,0x40):return MACOS_PLIST_PATH;case _0x3973ed(-0x42,-0x9f):return LINUX_SERVICE_PATH;case'win32':return _0x533998['pQBwE'];default:return'';}}function detectServiceMethod(){const _0x59cc2e={_0x5f5495:0x18,_0x29c833:0x1f5,_0xe82a82:0x152,_0x5d6839:0x56,_0x32916d:0x218,_0x1ed351:0xc7,_0x434f94:0x114,_0x5de296:0x37,_0x2420e1:0x167,_0x324b7a:0x123},_0x3348fb={_0x5be1cb:0x3c5},_0x22e75e={_0x5cbc9e:0x665};function _0x4bd686(_0x476541,_0x9fb33){return _0x33cded(_0x476541,_0x9fb33- -_0x22e75e._0x5cbc9e);}const _0x13c099={};_0x13c099[_0x4bd686(-_0x59cc2e._0x5f5495,-_0x59cc2e._0x29c833)]=_0x4bd686(_0x59cc2e._0xe82a82,-_0x59cc2e._0x5d6839)+'ted';const _0x4cc766=_0x13c099;function _0x2edbb4(_0x374c2b,_0x47448a){return _0x33cded(_0x374c2b,_0x47448a- -_0x3348fb._0x5be1cb);}switch(process[_0x2edbb4(0x8f,_0x59cc2e._0x32916d)]){case _0x2edbb4(_0x59cc2e._0x1ed351,0x10c):return _0x4bd686(-0x12e,-_0x59cc2e._0x434f94)+_0x4bd686(-0x108,-0x164);case'linux':return _0x4bd686(-_0x59cc2e._0x5de296,-0x2e)+_0x2edbb4(0x135,0x2b8);case _0x4bd686(-_0x59cc2e._0x2420e1,-_0x59cc2e._0x324b7a):return _0x2edbb4(-0x71,0x148)+_0x2edbb4(0x2b2,0x36e)+_0x2edbb4(0x30,0xfb);default:return _0x4cc766[_0x4bd686(-0x86,-0x1f5)];}}function readServiceState(){const _0x3ddbba={_0x2c1bd8:0x35e,_0x43b1f3:0x67,_0x2b692e:0x94,_0xe0d6fd:0x106,_0x40cc08:0x1a5,_0x2e9957:0x387},_0x391061={_0x3ad5f0:0x260},_0x13e4e8={'HQIDN':function(_0xc7b3ea,_0x5021f4,_0x56b715){return _0xc7b3ea(_0x5021f4,_0x56b715);},'xOOKr':_0x3d03e4(0x250,_0x3ddbba._0x2c1bd8)};if(!_0x30c183(SERVICE_STATE_PATH))return null;function _0x18cf9f(_0x5d1df3,_0x31b306){return _0x5338aa(_0x31b306- -0x31d,_0x5d1df3);}function _0x3d03e4(_0x306e9f,_0x39d60c){return _0x5338aa(_0x306e9f- -_0x391061._0x3ad5f0,_0x39d60c);}try{const _0x336d88=JSON[_0x18cf9f(-_0x3ddbba._0x43b1f3,-_0x3ddbba._0x2b692e)](_0x13e4e8[_0x3d03e4(0x6d,0x218)](_0x13f7bf,SERVICE_STATE_PATH,_0x3d03e4(0x3d,_0x3ddbba._0xe0d6fd)));if(!_0x336d88[_0x3d03e4(-0xe8,-0xd1)]||typeof _0x336d88[_0x18cf9f(-0x27c,-0x1a5)]!==_0x13e4e8[_0x18cf9f(-0x1ef,-0x17)])return null;return{'pid':_0x336d88[_0x18cf9f(-0xeb,-_0x3ddbba._0x40cc08)],'startedAt':_0x336d88[_0x3d03e4(0x25f,_0x3ddbba._0x2e9957)+'t']??new Date(0x0)['toISOStr'+_0x3d03e4(-0xa5,-0x13b)]()};}catch{return null;}}function stopRunningProcess(){const _0x286117={_0x1b0653:0x131,_0x362785:0x2c4,_0x41e71f:0x2b4,_0x1c2a65:0xac,_0x5093bf:0x62,_0x6f6ed3:0xba,_0x24cdff:0x1eb,_0x50e73a:0x27b},_0x1ab07c={};_0x1ab07c[_0x16514a(-_0x286117._0x1b0653,-_0x286117._0x362785)]=_0x3aab5e(0x1b6,_0x286117._0x41e71f),_0x1ab07c[_0x16514a(-_0x286117._0x1c2a65,-0x1b7)]=function(_0x50a246,_0x277465){return _0x50a246===_0x277465;};const _0x514bd1=_0x1ab07c;function _0x16514a(_0x3fd9dd,_0x14d98a){return _0x33cded(_0x14d98a,_0x3fd9dd- -0x57b);}const _0x3f64a7=readServiceState();if(!_0x3f64a7)return;function _0x3aab5e(_0x1d0140,_0x5b96e7){return _0x33cded(_0x1d0140,_0x5b96e7- -0x357);}execIgnoreFailure(process[_0x16514a(_0x286117._0x5093bf,-0xe4)]===_0x3aab5e(_0x286117._0x6f6ed3,_0x286117._0x24cdff)?'taskkill':_0x514bd1[_0x3aab5e(0x152,0xf3)],_0x514bd1[_0x3aab5e(0x69,0x178)](process[_0x16514a(0x62,0x11a)],'win32')?[_0x3aab5e(0xaf,_0x286117._0x50e73a),String(_0x3f64a7[_0x16514a(-0x162,-0x324)]),'/T','/F']:['-TERM',String(_0x3f64a7[_0x16514a(-0x162,-0x32f)])]),clearServiceState(_0x3f64a7['pid']);}function isPidRunning(_0x54fab9){const _0x25daa8={_0x1e5627:0x241};function _0x1587a6(_0x32a67b,_0x37c53d){return _0x5338aa(_0x32a67b- -0x129,_0x37c53d);}try{return process[_0x1587a6(_0x25daa8._0x1e5627,0x1a4)](_0x54fab9,0x0),!![];}catch{return![];}}function _0x3b9b(_0x48c60b,_0x37ab2b){_0x48c60b=_0x48c60b-0x7a;const _0x3e0d9c=_0x5e63();let _0xd919fd=_0x3e0d9c[_0x48c60b];if(_0x3b9b['JmKDFI']===undefined){var _0x188f57=function(_0x272e19){const _0x56c5a6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x367358='',_0x314a21='',_0x4ca431=_0x367358+_0x188f57;for(let _0x5991cc=0x0,_0x488106,_0x367e69,_0x274345=0x0;_0x367e69=_0x272e19['charAt'](_0x274345++);~_0x367e69&&(_0x488106=_0x5991cc%0x4?_0x488106*0x40+_0x367e69:_0x367e69,_0x5991cc++%0x4)?_0x367358+=_0x4ca431['charCodeAt'](_0x274345+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x488106>>(-0x2*_0x5991cc&0x6)):_0x5991cc:0x0){_0x367e69=_0x56c5a6['indexOf'](_0x367e69);}for(let _0x22d7c2=0x0,_0x871a29=_0x367358['length'];_0x22d7c2<_0x871a29;_0x22d7c2++){_0x314a21+='%'+('00'+_0x367358['charCodeAt'](_0x22d7c2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x314a21);};_0x3b9b['yHDjSR']=_0x188f57,_0x3b9b['zDkxIs']={},_0x3b9b['JmKDFI']=!![];}const _0x5e63c8=_0x3e0d9c[0x0],_0x3b9b5=_0x48c60b+_0x5e63c8,_0x1c8b37=_0x3b9b['zDkxIs'][_0x3b9b5];if(!_0x1c8b37){const _0x13f626=function(_0x41f54c){this['WVXgiW']=_0x41f54c,this['arSMnk']=[0x1,0x0,0x0],this['LznrRd']=function(){return'newState';},this['bbKXCK']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['TUIqhp']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x13f626['prototype']['ganIZe']=function(){const _0x1e7b50=new RegExp(this['bbKXCK']+this['TUIqhp']),_0xa42abf=_0x1e7b50['test'](this['LznrRd']['toString']())?--this['arSMnk'][0x1]:--this['arSMnk'][0x0];return this['vNLLKi'](_0xa42abf);},_0x13f626['prototype']['vNLLKi']=function(_0x3e8a57){if(!Boolean(~_0x3e8a57))return _0x3e8a57;return this['ZqGfen'](this['WVXgiW']);},_0x13f626['prototype']['ZqGfen']=function(_0x17b9a7){for(let _0x4dcf17=0x0,_0x12c6b5=this['arSMnk']['length'];_0x4dcf17<_0x12c6b5;_0x4dcf17++){this['arSMnk']['push'](Math['round'](Math['random']())),_0x12c6b5=this['arSMnk']['length'];}return _0x17b9a7(this['arSMnk'][0x0]);},new _0x13f626(_0x3b9b)['ganIZe'](),_0xd919fd=_0x3b9b['yHDjSR'](_0xd919fd),_0x3b9b['zDkxIs'][_0x3b9b5]=_0xd919fd;}else _0xd919fd=_0x1c8b37;return _0xd919fd;}function startDetachedWindowsService(_0x1e00d7){const _0x2ece77={_0xd11b43:0x6df,_0x4a80c6:0x5d8,_0x1753ab:0x7d8},_0x1a1232={_0xb5e4e:0x14a},_0x27bb4e={'GBzUE':function(_0x1dbf68,_0x4b6d61){return _0x1dbf68(_0x4b6d61);}};function _0x4de1c2(_0x1fddf0,_0x3b6ba2){return _0x33cded(_0x3b6ba2,_0x1fddf0- -_0x1a1232._0xb5e4e);}const _0x2a0bf6=openSync(SERVICE_LOG_PATH,'a');function _0x52dff2(_0x3ff3f6,_0x1ac0f7){return _0x33cded(_0x3ff3f6,_0x1ac0f7-0x61);}const _0x4b3dd6=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x40de4d,..._0x19ee49]=_0x1e00d7,_0x4f231b={};_0x4f231b['detached']=!![],_0x4f231b[_0x52dff2(_0x2ece77._0xd11b43,0x551)]=['ignore',_0x2a0bf6,_0x4b3dd6],_0x4f231b[_0x4de1c2(_0x2ece77._0x4a80c6,0x4b9)+'ide']=!![];const _0x1d3d23=spawn(_0x40de4d,_0x19ee49,_0x4f231b);_0x1d3d23[_0x52dff2(0x82f,0x7bb)]();}finally{_0x27bb4e[_0x52dff2(0x91d,_0x2ece77._0x1753ab)](closeSync,_0x2a0bf6),closeSync(_0x4b3dd6);}}function resolveScriptPath(_0x44584e){const _0x4addae={_0xa97a05:0x754,_0x2f83f0:0x903},_0x2c2ee8=_0x44584e?.[_0x1a2f44(0x1b1,0x1e1)]()||process[_0x16cf5f(0x656,0x6c6)][0x1]?.[_0x16cf5f(_0x4addae._0xa97a05,_0x4addae._0x2f83f0)]()||'';function _0x1a2f44(_0x254859,_0x2e8d01){return _0x33cded(_0x254859,_0x2e8d01- -0x4c9);}function _0x16cf5f(_0x2861c5,_0x235b48){return _0x33cded(_0x235b48,_0x2861c5-0xaa);}if(!_0x2c2ee8)return'';try{return realpathSync(_0x2c2ee8);}catch{return _0x2c2ee8;}}function ensureLaunchScriptExecutable(_0x2e5784,_0x2027c6){const _0x212177={_0xeb97aa:0xb,_0x1b929d:0x9},_0x177101={_0x46138a:0x54b};function _0x1c0a2c(_0x20af56,_0x57fe14){return _0x33cded(_0x20af56,_0x57fe14- -_0x177101._0x46138a);}if(_0x2027c6===_0x1c0a2c(-_0x212177._0xeb97aa,-_0x212177._0x1b929d)||!_0x30c183(_0x2e5784))return;try{chmodSync(_0x2e5784,0x1ed);}catch{}}function writeServiceLauncher(_0x4d3bcb){const _0x1816f5={_0x2febfa:0x2ea,_0x4d014a:0x121,_0x3310dd:0x2e2,_0x2e4507:0x67,_0x45426e:0xa3,_0x592d81:0x215,_0x1bba62:0x280,_0x4081fa:0x1eb,_0xca4d56:0x389,_0x3e2aa8:0x1d1,_0x46a7e5:0x249,_0x3a1633:0x109,_0x3e98de:0x9e,_0x395550:0x372,_0x1f0b95:0x279,_0x390449:0x2f,_0x4d6907:0x23,_0x452544:0x2b7,_0x5db466:0x74,_0x1d3fb2:0x37,_0x36dbb5:0x13c,_0x51ea7a:0x569,_0x1c232b:0x3a8,_0x345bac:0x4c7,_0x13cf61:0x36e,_0x246da9:0x19e,_0x1096c0:0x1,_0x2fd0a6:0xd4,_0x4150a2:0x12a,_0x5d804c:0xab,_0x5b4935:0xad,_0x2b41ed:0x281,_0x140b97:0x2a,_0x39c37f:0x54,_0x2fd312:0xc8,_0x56ac87:0xcf,_0x41290b:0x23e},_0x4d3cee={_0x48415c:0xee},_0x46be68={'jmTNX':_0x5ca056(_0x1816f5._0x2febfa,_0x1816f5._0x4d014a)+'h','IOkBN':function(_0x36f075,_0x36da68){return _0x36f075(_0x36da68);},'GTTYx':_0x5ca056(0x479,_0x1816f5._0x3310dd),'aedlP':function(_0x4c8936,_0x47921e,_0x77b878,_0x59d13b){return _0x4c8936(_0x47921e,_0x77b878,_0x59d13b);},'VmWYR':'utf8'};function _0x5ca056(_0x579b31,_0x3ec7bf){return _0x5338aa(_0x3ec7bf- -_0x4d3cee._0x48415c,_0x579b31);}function _0xe9846a(_0x4382e9,_0x55ac8b){return _0x5338aa(_0x4382e9- -0x1cd,_0x55ac8b);}ensureServiceDirs();const _0x43dd11=[_0x46be68['jmTNX'],_0xe9846a(0x1e0,_0x1816f5._0x2e4507)+_0xe9846a(0x136,0x3b)+escapeShellDoubleQuoted(_0x4d3bcb[_0xe9846a(-0xb0,-_0x1816f5._0x45426e)])+'\x22','NODE_PAT'+'H=\x22'+escapeShellDoubleQuoted(_0x4d3bcb['nodePath'])+'\x22',_0xe9846a(0x2d1,0x45b)+_0x5ca056(0x257,_0x1816f5._0x592d81)+_0x46be68[_0xe9846a(_0x1816f5._0x1bba62,_0x1816f5._0x4081fa)](escapeShellDoubleQuoted,_0x4d3bcb[_0x5ca056(_0x1816f5._0xca4d56,_0x1816f5._0x3e2aa8)+'th'])+'\x22',_0x5ca056(0x262,_0x1816f5._0x46a7e5)+'\x22$NODE_P'+_0x5ca056(-_0x1816f5._0x3a1633,_0x1816f5._0x3e98de)+_0x5ca056(_0x1816f5._0x395550,0x340),_0xe9846a(-0x70,_0x1816f5._0x3a1633)+_0xe9846a(0x18a,_0x1816f5._0x1f0b95)+_0xe9846a(0x0,-_0x1816f5._0x390449)+_0xe9846a(-_0x1816f5._0x4d6907,0x15f)+'H\x22\x20run\x20-'+'-service','fi',_0xe9846a(0x24f,_0x1816f5._0x452544)+_0xe9846a(0x3b,-_0x1816f5._0x5db466)+_0xe9846a(_0x1816f5._0x1d3fb2,_0x1816f5._0x36dbb5)+_0xe9846a(0x1df,0x2de)+'&1;\x20then',_0x5ca056(_0x1816f5._0x51ea7a,_0x1816f5._0x1c232b)+_0x5ca056(_0x1816f5._0x345bac,_0x1816f5._0x13cf61)+_0x5ca056(_0x1816f5._0x246da9,0xbc)+_0xe9846a(_0x1816f5._0x1096c0,0x1a0)+_0xe9846a(0x99,_0x1816f5._0x2fd0a6),'fi','echo\x20\x22no'+_0x5ca056(0x3fe,0x383)+_0xe9846a(_0x1816f5._0x4150a2,_0x1816f5._0x5d804c)+_0xe9846a(_0x1816f5._0x5b4935,_0x1816f5._0x2b41ed)+_0xe9846a(-_0x1816f5._0x140b97,-0x1e3)+_0xe9846a(_0x1816f5._0x39c37f,_0x1816f5._0x2fd312)+_0xe9846a(_0x1816f5._0x56ac87,_0x1816f5._0x246da9)+'\x20>&2',_0x46be68['GTTYx'],''];return _0x46be68[_0x5ca056(0x319,0x2aa)](_0x2eff19,SERVICE_LAUNCHER_PATH,_0x43dd11['join']('\x0a'),_0x46be68[_0xe9846a(0x1b4,_0x1816f5._0x41290b)]),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x12993c){const _0x22c987={_0x3ce46a:0x2a,_0x2617cb:0x68d,_0x16c1bf:0x67a,_0x5ec170:0x4e4},_0x28ca7f={_0x6b6906:0x36b},_0x38df11={_0x4d50c8:0x2e5};function _0x3abdec(_0x57672e,_0x48f32a){return _0x5338aa(_0x48f32a-_0x38df11._0x4d50c8,_0x57672e);}function _0x21f77a(_0x327d3b,_0x4c4a3d){return _0x5338aa(_0x4c4a3d- -_0x28ca7f._0x6b6906,_0x327d3b);}return _0x12993c[_0x21f77a(-0x57,_0x22c987._0x3ce46a)+'ll']('\x5c','\x5c\x5c')[_0x3abdec(_0x22c987._0x2617cb,_0x22c987._0x16c1bf)+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x3abdec(_0x22c987._0x5ec170,0x67a)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x48cd89){const _0x49a767={_0x8e4891:0x2ba},_0x2c9303={_0x144ead:0x9c};function _0x57b7af(_0x333075,_0x3af771){return _0x5338aa(_0x333075-_0x2c9303._0x144ead,_0x3af771);}return _0x48cd89['map'](escapeWindowsArg)[_0x57b7af(_0x49a767._0x8e4891,0x39b)]('\x20');}function ensureServiceDirs(){const _0xf781a4={_0x12bba7:0x600},_0x23a4c0={_0x81b76d:0x239},_0x2b092a={'gYsMv':function(_0x1f1d98,_0x58f1f2,_0x3d9fda){return _0x1f1d98(_0x58f1f2,_0x3d9fda);}},_0x346d2b={};_0x346d2b['recursiv'+'e']=!![];function _0x52b694(_0x27bae8,_0x3258b6){return _0x33cded(_0x3258b6,_0x27bae8- -_0x23a4c0._0x81b76d);}_0x5dc03e(SERVICE_DIR,_0x346d2b);const _0x5e5f61={};function _0x3d9014(_0x247de9,_0x3177c5){return _0x33cded(_0x3177c5,_0x247de9- -0xc3);}_0x5e5f61[_0x52b694(0x226,0x145)+'e']=!![],_0x2b092a[_0x3d9014(0x63c,_0xf781a4._0x12bba7)](_0x5dc03e,LOG_DIR,_0x5e5f61);}function escapeXml(_0x7c52c8){const _0x3c0dc3={_0x102427:0x493,_0x54224e:0x5a8,_0x320eee:0x2bd,_0x330aef:0x511,_0x1fa582:0xae,_0x11f4ca:0x48a,_0x214e08:0x9f,_0x2f1b55:0x4e1,_0x50cbb9:0x633};function _0x23a326(_0xe51cee,_0x384642){return _0x5338aa(_0x384642-0x17c,_0xe51cee);}const _0x2ce4c7={};_0x2ce4c7[_0x23a326(_0x3c0dc3._0x102427,_0x3c0dc3._0x54224e)]=_0x23a326(_0x3c0dc3._0x320eee,0x36e);const _0x3d3578=_0x2ce4c7;function _0x2125e2(_0x85fa5c,_0x3dd46f){return _0x5338aa(_0x85fa5c- -0x403,_0x3dd46f);}return _0x7c52c8[_0x23a326(0x641,_0x3c0dc3._0x330aef)+'ll']('&','&amp;')[_0x2125e2(-0x6e,-_0x3c0dc3._0x1fa582)+'ll']('<',_0x2125e2(-0x2e4,-_0x3c0dc3._0x11f4ca))[_0x2125e2(-0x6e,_0x3c0dc3._0x214e08)+'ll']('>',_0x23a326(_0x3c0dc3._0x2f1b55,0x31d))['replaceA'+'ll']('\x22','&quot;')[_0x23a326(_0x3c0dc3._0x50cbb9,0x511)+'ll']('\x27',_0x3d3578['HNkLi']);}function escapeSystemdArg(_0x5b1289){const _0x523ad6={_0x5bcd13:0x336,_0x48aa12:0x369},_0x4a7639={_0x22e24d:0x300};function _0x369a1f(_0x3387a7,_0x439c81){return _0x33cded(_0x439c81,_0x3387a7- -_0x4a7639._0x22e24d);}return'\x22'+_0x5b1289['replaceA'+'ll']('\x5c','\x5c\x5c')[_0x369a1f(_0x523ad6._0x5bcd13,_0x523ad6._0x48aa12)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x3602b3){const _0x1c9703={_0x372b30:0x71};function _0xf0bddc(_0x3f7df5,_0x2d8759){return _0x5338aa(_0x2d8759- -0x324,_0x3f7df5);}return'\x22'+_0x3602b3[_0xf0bddc(0xd9,_0x1c9703._0x372b30)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x3b0306,_0x2badfe){const _0x110b8d={_0x43c740:0x1c4,_0x4c5fd6:0x1f,_0x4ab9ba:0x45},_0x3bb396={_0x20c4a4:0x2ea};function _0x23ebd0(_0x543dbd,_0x1a190a){return _0x5338aa(_0x1a190a- -0x413,_0x543dbd);}function _0x10480d(_0x4a4554,_0x26dc92){return _0x5338aa(_0x26dc92-_0x3bb396._0x20c4a4,_0x4a4554);}try{const _0x7114de={};return _0x7114de[_0x23ebd0(-0x94,-_0x110b8d._0x43c740)]=_0x23ebd0(_0x110b8d._0x4c5fd6,-_0x110b8d._0x4ab9ba),execFileSync(_0x3b0306,_0x2badfe,_0x7114de),!![];}catch{return![];}}function execIgnoreFailure(_0x3c3768,_0x36d2ac){function _0xfe1517(_0x19925b,_0x44938d){return _0x33cded(_0x44938d,_0x19925b- -0x57b);}function _0x1ed74f(_0x4c2b77,_0x2ada48){return _0x33cded(_0x2ada48,_0x4c2b77- -0x3be);}try{const _0x3483f6={};_0x3483f6[_0x1ed74f(0x132,0x1fa)]=_0xfe1517(0xf4,0x12b),execFileSync(_0x3c3768,_0x36d2ac,_0x3483f6);}catch{}}function rmIfExists(_0x115c5d){const _0x5ffbca={'ZSIbF':function(_0x23ea99,_0x57e891){return _0x23ea99(_0x57e891);}};if(!_0x5ffbca['ZSIbF'](_0x30c183,_0x115c5d))return;const _0x127714={};_0x127714['force']=!![],_0xec8a4d(_0x115c5d,_0x127714);}import{existsSync as _0x8bed16,readFileSync as _0x5b362a}from'fs';import{homedir as _0x51f92b}from'os';import{join as _0x499982}from'path';var DEFAULT_GATEWAY_URL=_0x33cded(0x55c,0x5a9)+_0x33cded(0x3e8,0x4ea)+_0x33cded(0x5bb,0x63b);function resolveGatewayUrl(_0x56bffd){const _0x377645={_0xdf1d98:0x6b2,_0x4334d3:0x3f,_0x1eacc0:0x274,_0x3e1a6d:0xb4,_0x5c75f0:0x770,_0x249a75:0xc,_0x864caa:0x985,_0x2332e4:0x501};function _0x398dc2(_0x5a9c04,_0x11066d){return _0x5338aa(_0x11066d-0x329,_0x5a9c04);}const _0x2c3a55={'OZGaV':function(_0x4243bc){return _0x4243bc();},'PEuJr':_0x398dc2(0x963,0x7d9)},_0x563f3f=_0x56bffd?.[_0x398dc2(_0x377645._0xdf1d98,0x732)]();function _0x693c6c(_0x33a11a,_0x7c6939){return _0x5338aa(_0x7c6939- -0x28c,_0x33a11a);}if(_0x563f3f)return _0x563f3f;const _0x44a866=_0x2c3a55['OZGaV'](readOpenClawInfo);if(typeof _0x44a866[_0x693c6c(-0x1c1,-_0x377645._0x4334d3)+_0x693c6c(-_0x377645._0x1eacc0,-_0x377645._0x3e1a6d)]===_0x2c3a55[_0x398dc2(0x713,_0x377645._0x5c75f0)])return _0x693c6c(_0x377645._0x249a75,0x7c)+_0x398dc2(_0x377645._0x864caa,0x7c6)+_0x44a866['gatewayP'+_0x398dc2(0x6ac,_0x377645._0x2332e4)];return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x13b521={_0x5902e0:0x4fc,_0x3db89b:0x51d,_0x1f0cee:0xa0,_0x5464fb:0x699,_0x2391e0:0x611,_0x2a2b33:0x5,_0xde626c:0x63,_0x394913:0x1d1,_0x4ac880:0xa3,_0x39ddc7:0x504,_0x77a9c6:0xb2,_0x120767:0x6b6,_0x5ebe00:0x64f,_0x414a9c:0x5fd,_0x5e3055:0x6b6,_0x4433cd:0x29e,_0x4b1452:0x1e7,_0x59bcaf:0x47,_0xd502bd:0x295,_0x55d557:0x389,_0x27838a:0x100,_0x4eb817:0x7d,_0x2b09d7:0x197,_0x1dc6c3:0x48,_0x5e83fd:0x114,_0x59175b:0x44b},_0x4bfb4c={_0x299579:0x2ec};function _0x384a66(_0x443dc3,_0x2b165c){return _0x5338aa(_0x443dc3-0x25f,_0x2b165c);}const _0x569aa7={'etOyB':function(_0x4f4d30){return _0x4f4d30();},'NCInK':function(_0x28591d){return _0x28591d();},'BIrXt':_0x384a66(_0x13b521._0x5902e0,_0x13b521._0x3db89b),'ptwbR':function(_0x4ec0de,_0x5b71e2){return _0x4ec0de===_0x5b71e2;},'aBdXh':function(_0x8f296f,_0x1aba26){return _0x8f296f(_0x1aba26);},'YoXEd':function(_0x49d623){return _0x49d623();}};function _0x25084d(_0x28b9d2,_0x28bb93){return _0x5338aa(_0x28bb93- -_0x4bfb4c._0x299579,_0x28b9d2);}const _0x2e23b2=_0x569aa7[_0x25084d(0x2e,_0x13b521._0x1f0cee)](resolveOpenClawPaths);if(!_0x8bed16(_0x2e23b2[_0x25084d(-0xd1,0xa7)+'th']))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':_0x569aa7[_0x384a66(_0x13b521._0x5464fb,_0x13b521._0x2391e0)](readGatewayPasswordEnv)};try{const _0x2154c7=JSON[_0x25084d(_0x13b521._0x2a2b33,-_0x13b521._0xde626c)](_0x5b362a(_0x2e23b2[_0x25084d(_0x13b521._0x394913,0xa7)+'th'],_0x569aa7[_0x384a66(0x67d,0x6ba)])),_0x35c73a=_0x2154c7['gateway']?.[_0x25084d(0x7f,0x1c5)],_0x6aba62=_0x569aa7['ptwbR'](typeof _0x35c73a,_0x25084d(0x28b,0x1c4))&&Number[_0x25084d(_0x13b521._0x4ac880,0x1cf)+'r'](_0x35c73a)?_0x35c73a:null,_0x41a1bd=_0x2154c7[_0x384a66(0x6b6,0x5c6)]?.[_0x384a66(_0x13b521._0x39ddc7,0x6ae)]?.[_0x25084d(-0xa2,_0x13b521._0x77a9c6)]==='token'||_0x2154c7[_0x384a66(_0x13b521._0x120767,_0x13b521._0x5ebe00)]?.[_0x384a66(_0x13b521._0x39ddc7,0x3e8)]?.[_0x384a66(_0x13b521._0x414a9c,0x4bc)]===_0x25084d(0xe,-0x1b3)?_0x2154c7[_0x384a66(_0x13b521._0x5e3055,0x4db)][_0x25084d(-0x1b2,-0x47)][_0x384a66(_0x13b521._0x414a9c,0x6c5)]:null,_0x31d9a9=_0x569aa7[_0x25084d(_0x13b521._0x4433cd,0x1ac)](readConfiguredSecret,_0x2154c7['gateway']?.[_0x25084d(-_0x13b521._0x4b1452,-_0x13b521._0x59bcaf)]?.['token'])??_0x569aa7[_0x25084d(_0x13b521._0xd502bd,0x14e)](readGatewayTokenEnv),_0x2c82ab=readConfiguredSecret(_0x2154c7['gateway']?.[_0x25084d(0xe5,-_0x13b521._0x59bcaf)]?.[_0x384a66(0x398,_0x13b521._0x55d557)])??_0x569aa7[_0x25084d(0x88,-_0x13b521._0x27838a)](readGatewayPasswordEnv),_0xd952b9={};return _0xd952b9[_0x25084d(-0x3a,-_0x13b521._0x4eb817)+'und']=!![],_0xd952b9[_0x25084d(-_0x13b521._0x2b09d7,-0x9f)+_0x25084d(-_0x13b521._0x1dc6c3,-_0x13b521._0x5e83fd)]=_0x6aba62,_0xd952b9['authMode']=_0x41a1bd,_0xd952b9[_0x384a66(0x5ec,0x78d)]=_0x31d9a9,_0xd952b9[_0x384a66(0x398,_0x13b521._0x59175b)]=_0x2c82ab,_0xd952b9;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0xdd3776={_0xdd41e0:0x1ce,_0x1fafa4:0x234,_0x1e7877:0x1b9,_0x6682f4:0xeb,_0x5b43fa:0x1e1,_0xbf2ca3:0x1ed,_0x329676:0x15c,_0xa60bf4:0x33,_0xb9edda:0x8f,_0x55f7d4:0x121,_0x4f78c5:0x169,_0x49f770:0x344,_0x5ba61b:0x18f,_0x5481e0:0x287,_0x5cea82:0x100,_0x1dea5b:0x273,_0x17c66b:0x230,_0x2c9d46:0x82,_0x36c645:0xd4,_0x219c71:0x271,_0x47f423:0x7a,_0x174a73:0x1c5,_0x31f681:0x22f,_0x58ca06:0x9e,_0x5e0a83:0x175,_0x4fa8b1:0xdf,_0x4ed960:0x120,_0x30384e:0x1ee,_0x247c4b:0x342,_0x2d56d1:0xba,_0xbf7b65:0x2ec,_0x192441:0x1fa,_0x22bbfc:0x180,_0x343df6:0x24,_0x3e6715:0x1ab,_0x4e9ff6:0x24,_0x533403:0x24,_0x5bc67a:0x36d,_0x5b0243:0xd3,_0x3c60bb:0xd4,_0x260105:0x27},_0x2893ba={_0x5a41c1:0x4ae},_0x81086a={};_0x81086a[_0x597764(0x9e,_0xdd3776._0xdd41e0)]='token',_0x81086a[_0x597764(-0x228,-_0xdd3776._0x1fafa4)]=_0x597764(0xc0,0x114)+_0xcb30b1(_0xdd3776._0x1e7877,0x2b)+_0x597764(-0x181,0x60)+'y\x20token\x20'+'and\x20pass'+_0xcb30b1(-_0xdd3776._0x6682f4,-_0xdd3776._0x5b43fa)+_0xcb30b1(_0xdd3776._0xbf2ca3,_0xdd3776._0x329676)+_0xcb30b1(-_0xdd3776._0xa60bf4,0x156)+_0x597764(0xdb,-0xa0)+_0x597764(_0xdd3776._0xb9edda,-_0xdd3776._0x55f7d4)+'s\x20unset.'+_0x597764(_0xdd3776._0x4f78c5,0x308)+_0x597764(-0x99,-0x196)+_0xcb30b1(0x2b9,_0xdd3776._0x49f770)+_0xcb30b1(0x250,_0xdd3776._0x5ba61b)+_0x597764(0xec,_0xdd3776._0x5481e0)+_0xcb30b1(-0xb9,-_0xdd3776._0x5cea82)+'g.',_0x81086a[_0xcb30b1(0x9e,_0xdd3776._0x1dea5b)]=_0x597764(-_0xdd3776._0x17c66b,-_0xdd3776._0x2c9d46),_0x81086a[_0x597764(-0xba,-0x1df)]=function(_0x147a71,_0x53fbf4){return _0x147a71===_0x53fbf4;};function _0x597764(_0x1e86a8,_0x1bb516){return _0x33cded(_0x1bb516,_0x1e86a8- -0x60a);}const _0x1a3dd4=_0x81086a,_0x143fd2=readOpenClawInfo(),_0x37cab0=_0x143fd2['token'],_0x53e24b=_0x143fd2[_0xcb30b1(-_0xdd3776._0x36c645,-_0xdd3776._0x219c71)];function _0xcb30b1(_0x4598a4,_0xb0f319){return _0x33cded(_0xb0f319,_0x4598a4- -_0x2893ba._0x5a41c1);}if(_0x37cab0&&_0x53e24b&&_0x143fd2[_0x597764(_0xdd3776._0x47f423,_0xdd3776._0x174a73)]==null){const _0x5919e6={};return _0x5919e6['token']=_0x37cab0,_0x5919e6['password']=_0x53e24b,_0x5919e6[_0xcb30b1(_0xdd3776._0x31f681,0x25b)]=_0x1a3dd4[_0x597764(_0xdd3776._0x58ca06,_0xdd3776._0x5e0a83)],_0x5919e6[_0x597764(-_0xdd3776._0x4fa8b1,-_0xdd3776._0x4ed960)]=_0x1a3dd4[_0xcb30b1(-0xcc,-_0xdd3776._0x30384e)],_0x5919e6;}if(_0x143fd2[_0x597764(0x7a,0x11c)]===_0xcb30b1(-_0xdd3776._0x36c645,-0x18a)){const _0x5ec7c9={};return _0x5ec7c9['token']=null,_0x5ec7c9[_0x597764(-_0xdd3776._0x17c66b,-_0xdd3776._0x247c4b)]=null,_0x5ec7c9['label']=null,_0x53e24b?{'token':null,'password':_0x53e24b,'label':_0x1a3dd4[_0xcb30b1(0x9e,-0xd4)]}:_0x5ec7c9;}if(_0x1a3dd4[_0x597764(-_0xdd3776._0x2d56d1,-0x17b)](_0x143fd2[_0xcb30b1(0x1d6,_0xdd3776._0xbf7b65)],_0x1a3dd4[_0xcb30b1(_0xdd3776._0x192441,0xbe)])){const _0x2073a8={};return _0x2073a8[_0xcb30b1(_0xdd3776._0x22bbfc,0x180)]=null,_0x2073a8['password']=null,_0x2073a8[_0xcb30b1(_0xdd3776._0x31f681,0xe5)]=null,_0x37cab0?{'token':_0x37cab0,'password':null,'label':_0x597764(_0xdd3776._0x343df6,-_0xdd3776._0x3e6715)}:_0x2073a8;}if(_0x37cab0){const _0x82f0bf={};return _0x82f0bf['token']=_0x37cab0,_0x82f0bf[_0x597764(-_0xdd3776._0x17c66b,-0x2d8)]=null,_0x82f0bf['label']=_0x597764(_0xdd3776._0x4e9ff6,-0x95),_0x82f0bf;}if(_0x53e24b){const _0x5f4536={};return _0x5f4536[_0x597764(_0xdd3776._0x533403,-0x186)]=null,_0x5f4536[_0x597764(-_0xdd3776._0x17c66b,-_0xdd3776._0x5bc67a)]=_0x53e24b,_0x5f4536[_0x597764(_0xdd3776._0x5b0243,0x298)]='password',_0x5f4536;}const _0x244c9c={};return _0x244c9c['token']=null,_0x244c9c[_0xcb30b1(-_0xdd3776._0x3c60bb,-0x179)]=null,_0x244c9c[_0x597764(_0xdd3776._0x5b0243,_0xdd3776._0x260105)]=null,_0x244c9c;}function getOpenClawConfigDir(){return resolveOpenClawPaths()['configDi'+'r'];}function getOpenClawMediaDir(){const _0x55654f={_0x3ead41:0x218},_0x84a7a5={_0x2963e0:0x3a8};function _0x2d3b13(_0x20592e,_0x48d278){return _0x33cded(_0x48d278,_0x20592e- -_0x84a7a5._0x2963e0);}return resolveOpenClawPaths()[_0x2d3b13(_0x55654f._0x3ead41,0x3e7)];}function readConfiguredSecret(_0x505146){const _0x58ba98={_0x28acbe:0xef,_0x3026d8:0x3d2},_0x330bd8={_0x59df31:0x2b0};function _0x206ebe(_0xb73de,_0x6dd0bc){return _0x33cded(_0xb73de,_0x6dd0bc- -_0x330bd8._0x59df31);}function _0x35496a(_0x56709c,_0x41bd05){return _0x33cded(_0x41bd05,_0x56709c- -0x5bb);}return typeof _0x505146==='string'&&_0x505146[_0x35496a(_0x58ba98._0x28acbe,0x1ba)]()?_0x505146[_0x206ebe(_0x58ba98._0x3026d8,0x3fa)]():null;}function readGatewayTokenEnv(){const _0x349c2f={_0x1639d8:0xb9,_0x265006:0x154,_0x5e6c1d:0x1a,_0x163211:0x537},_0x28bfa2={_0x2d735d:0x578},_0x1f065c={};_0x1f065c['fHTGt']=_0x4f5749(_0x349c2f._0x1639d8,-0xf9)+_0x4f5749(_0x349c2f._0x265006,-_0x349c2f._0x5e6c1d)+'_TOKEN';function _0x174014(_0x389a52,_0x13e3dc){return _0x33cded(_0x389a52,_0x13e3dc-0x37);}function _0x4f5749(_0x145e87,_0x2250fa){return _0x33cded(_0x145e87,_0x2250fa- -_0x28bfa2._0x2d735d);}const _0x30f8bc=_0x1f065c;return readEnvValue(_0x174014(0x895,0x742)+_0x174014(_0x349c2f._0x163211,0x595)+'_TOKEN',_0x30f8bc[_0x4f5749(-0x240,-0x132)]);}function readGatewayPasswordEnv(){const _0x26337f={_0x2cbd0f:0x173,_0x464d90:0x17f},_0x1a9c06={_0x5e7bb8:0x6d1},_0x381286={_0x293137:0x6a6};function _0x1520f5(_0x5ca629,_0x46b151){return _0x33cded(_0x46b151,_0x5ca629- -_0x381286._0x293137);}const _0x107e15={'KySLa':function(_0x4e7697,_0x320201,_0xf608f9){return _0x4e7697(_0x320201,_0xf608f9);}};function _0x5caa80(_0x3c8b91,_0x4cc382){return _0x33cded(_0x4cc382,_0x3c8b91- -_0x1a9c06._0x5e7bb8);}return _0x107e15['KySLa'](readEnvValue,'OPENCLAW'+_0x5caa80(-_0x26337f._0x2cbd0f,-0x169)+_0x1520f5(-0x211,-0x3c6)+'D',_0x5caa80(-0x252,-_0x26337f._0x464d90)+_0x1520f5(-0x148,-0x31a)+'_PASSWOR'+'D');}function readEnvValue(_0x7a2360,_0xf9a5c2){const _0x1f4271={_0x39d993:0x5ba,_0x1d0c25:0x4f7},_0x54e044={_0x469912:0x1b3},_0x59378c=process.env[_0x7a2360]?.['trim']();function _0x3de887(_0xb0d3bc,_0x1cb00e){return _0x33cded(_0xb0d3bc,_0x1cb00e- -_0x54e044._0x469912);}if(_0x59378c)return _0x59378c;const _0x578f98=process.env[_0xf9a5c2]?.[_0x3de887(_0x1f4271._0x39d993,_0x1f4271._0x1d0c25)]();return _0x578f98||null;}function resolveOpenClawPaths(){const _0x1019ba={_0x101418:0x32a},_0x24694d={_0xfbe38a:0x2f3},_0x18c1c7=buildOpenClawCandidates();function _0x35c483(_0x21f5f4,_0x110976){return _0x5338aa(_0x21f5f4-_0x24694d._0xfbe38a,_0x110976);}function _0x29663e(_0x264ab3,_0x5c6ba9){return _0x5338aa(_0x264ab3-0x348,_0x5c6ba9);}return _0x18c1c7[_0x29663e(0x474,_0x1019ba._0x101418)](_0x18c089=>_0x8bed16(_0x18c089[_0x29663e(0x6db,0x652)+'th']))??_0x18c1c7[0x0];}function buildOpenClawCandidates(){const _0x4710c9={_0x23f10e:0x31c,_0x4e481c:0x3e5,_0xce1c65:0x517,_0x2b076e:0x6c6,_0x45753c:0x3c6,_0xad663c:0x548,_0x378e03:0x4c4},_0xc80ee9={_0xc2f9d1:0x633},_0x49c120={_0x54e3c2:0x135,_0x633f74:0x294,_0x26b638:0x221},_0x2b5929={_0x3088a3:0x3e6},_0x23cfdc={_0x511dc4:0x1c},_0x164764={};function _0x9922ea(_0x31f467,_0x51cf9f){return _0x5338aa(_0x51cf9f-_0x23cfdc._0x511dc4,_0x31f467);}_0x164764[_0xcd9269(_0x4710c9._0x23f10e,_0x4710c9._0x4e481c)]=_0xcd9269(0x404,0x287)+'w',_0x164764['vxWeO']=_0x9922ea(0x443,0x376)+_0xcd9269(0x34c,_0x4710c9._0xce1c65),_0x164764[_0x9922ea(0x316,0x306)]=_0xcd9269(_0x4710c9._0x2b076e,0x5ea);const _0x46a9f8=_0x164764;function _0xcd9269(_0x45bab2,_0xe80e75){return _0x5338aa(_0x45bab2-0x1f2,_0xe80e75);}const _0x4a16bf=new Set(),_0x103891=[_0x51f92b(),_0xcd9269(0x4ad,_0x4710c9._0x45753c)][_0x9922ea(_0x4710c9._0xad663c,_0x4710c9._0x378e03)](_0xce4bfd=>_0xce4bfd['trim']())[_0xcd9269(0x532,0x68e)](Boolean)['filter'](_0x1ad0e1=>{if(_0x4a16bf[_0x50c778(_0x49c120._0x54e3c2,-0x2a)](_0x1ad0e1))return![];_0x4a16bf[_0x50c778(_0x49c120._0x633f74,_0x49c120._0x26b638)](_0x1ad0e1);function _0x4a2151(_0x3faf46,_0x6bd015){return _0x9922ea(_0x6bd015,_0x3faf46- -_0x2b5929._0x3088a3);}function _0x50c778(_0x526069,_0x40915e){return _0x9922ea(_0x40915e,_0x526069- -0x162);}return!![];});return _0x103891['map'](_0x15322b=>{function _0x14a62c(_0x4aa096,_0x12e125){return _0x9922ea(_0x4aa096,_0x12e125-0x32d);}const _0x94cd6d=_0x499982(_0x15322b,_0x46a9f8[_0x14a62c(0x546,0x473)]);function _0x19e5c3(_0x5ace53,_0x4a410c){return _0x9922ea(_0x4a410c,_0x5ace53-0x18a);}return{'configDir':_0x94cd6d,'configPath':_0x499982(_0x94cd6d,_0x46a9f8[_0x14a62c(0x907,0x74a)]),'mediaDir':_0x499982(_0x94cd6d,_0x46a9f8[_0x14a62c(0x496,_0xc80ee9._0xc2f9d1)])};});}var CONTROL_PREFIX=_0x5338aa(0x210,0x207)+_0x5338aa(0x206,0x3e)+_0x5338aa(0x2ee,0x1e8)+'_:';function parseControl(_0x342983){const _0x3806f1={_0xc58d8:0x180,_0xe792a9:0x213,_0x4e41af:0x1e7,_0xb4ce71:0x62,_0x2814a8:0x1c4,_0x90364:0x20f,_0x5d76e5:0x168,_0x5c084b:0x321,_0x34fb41:0x553,_0x90d79:0x442,_0x5ca26a:0x43,_0x3e4cc7:0x21},_0x24a74b={_0x4c7b58:0x30f},_0x97da2e={_0xafe08a:0x4f0};function _0x1f3356(_0x497b5e,_0x1598b1){return _0x33cded(_0x1598b1,_0x497b5e- -_0x97da2e._0xafe08a);}function _0x3c59e4(_0x55564e,_0x4c3fd8){return _0x33cded(_0x55564e,_0x4c3fd8- -_0x24a74b._0x4c7b58);}if(!_0x342983[_0x3c59e4(0x27c,0x296)+'th'](CONTROL_PREFIX))return null;try{const _0x123593=JSON['parse'](_0x342983[_0x3c59e4(_0x3806f1._0xc58d8,_0x3806f1._0xe792a9)](CONTROL_PREFIX[_0x1f3356(_0x3806f1._0x4e41af,_0x3806f1._0xb4ce71)]));if(typeof _0x123593[_0x1f3356(-0x79,-_0x3806f1._0x2814a8)]!=='string'||!_0x123593['event'][_0x1f3356(0x1ba,_0x3806f1._0x90364)]())return null;return{'event':_0x123593[_0x3c59e4(0x86,_0x3806f1._0x5d76e5)][_0x3c59e4(_0x3806f1._0x5c084b,0x39b)](),'count':typeof _0x123593[_0x1f3356(-0x43,0x9b)]===_0x3c59e4(_0x3806f1._0x34fb41,_0x3806f1._0x90d79)&&Number['isFinite'](_0x123593[_0x1f3356(-_0x3806f1._0x5ca26a,_0x3806f1._0x3e4cc7)])?_0x123593['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x34cbd2){const _0x4b5a2d={_0x4c888b:0x3ca,_0x2be5e2:0xb6,_0x1d15d5:0x163,_0x48cd96:0x4a,_0xde3e4d:0xbc,_0x16aa1f:0x7a,_0x562494:0x168,_0x51f9be:0x1fb,_0x34cb71:0x10b,_0xb6b884:0x138,_0xe8fc88:0x9f,_0xaaada:0x11b,_0x45c214:0xd2,_0x4449e0:0x65,_0x313250:0x173,_0x134af8:0x522,_0x3d6e7f:0x364,_0x5a8a30:0x48c},_0x42bfe3={_0x3bf973:0x348};function _0x43f450(_0x11b9d0,_0xfbad65){return _0x33cded(_0x11b9d0,_0xfbad65- -0x5e0);}const _0x460a8c={};function _0x25e98c(_0x2be242,_0x13b997){return _0x33cded(_0x2be242,_0x13b997- -_0x42bfe3._0x3bf973);}_0x460a8c[_0x43f450(-_0x4b5a2d._0x4c888b,-0x21e)]=function(_0x2bd529,_0x5add43){return _0x2bd529!==_0x5add43;},_0x460a8c[_0x25e98c(-0xc8,0x11b)]=function(_0x501529,_0x54f433){return _0x501529===_0x54f433;};const _0x14d6a1=_0x460a8c;try{const _0x402cfb=JSON[_0x43f450(-0x20e,-_0x4b5a2d._0x2be5e2)](_0x34cbd2);if(_0x402cfb[_0x25e98c(0x318,_0x4b5a2d._0x1d15d5)]!==_0x43f450(0x130,0x181))return null;if(_0x402cfb['method']!==_0x43f450(_0x4b5a2d._0x48cd96,-_0x4b5a2d._0xde3e4d)&&_0x14d6a1[_0x25e98c(0x16e,_0x4b5a2d._0x16aa1f)](_0x402cfb[_0x43f450(-_0x4b5a2d._0x562494,-0x1a)],_0x43f450(-0x142,-0x211)+_0x25e98c(_0x4b5a2d._0x51f9be,0x1d5)))return null;const _0x45e314=_0x402cfb[_0x43f450(_0x4b5a2d._0x34cb71,_0x4b5a2d._0xb6b884)]??{},_0x3c2fd3=_0x14d6a1[_0x25e98c(_0x4b5a2d._0xe8fc88,_0x4b5a2d._0xaaada)](typeof _0x402cfb['id'],_0x43f450(-0x93,-_0x4b5a2d._0x45c214))&&_0x402cfb['id']['trim']()?_0x402cfb['id'][_0x43f450(-_0x4b5a2d._0x4449e0,0xca)]():_0x43f450(0xc8,_0x4b5a2d._0x313250)+Math[_0x43f450(0x1f7,_0x4b5a2d._0x4449e0)]()['toString'](0x24)['slice'](0x2,0xc),_0x300909=firstString(_0x45e314['deviceNa'+'me'],_0x45e314[_0x25e98c(_0x4b5a2d._0x134af8,_0x4b5a2d._0x3d6e7f)+'me'],_0x45e314['deviceId'],_0x25e98c(0x285,0x2cc)+'lient'),_0x3410cf={};return _0x3410cf['id']=_0x3c2fd3,_0x3410cf[_0x25e98c(_0x4b5a2d._0x5a8a30,0x395)]=_0x300909,_0x3410cf;}catch{return null;}}function isConnectHandshakeRequest(_0x22f2ed){const _0x2fbb88={_0x11578e:0x544,_0x31574c:0x20d,_0x4a4409:0x1b9,_0xf1b618:0x435},_0x2ecba9={_0x25220:0x99},_0x542089={_0x57d23d:0x35e},_0x10e7e0={};_0x10e7e0[_0x20b7b7(0x20d,0x2b1)]=function(_0x34d2f4,_0x3f8ef4){return _0x34d2f4===_0x3f8ef4;};const _0x432b2e=_0x10e7e0;function _0x20b7b7(_0x5b311a,_0x4c50db){return _0x33cded(_0x4c50db,_0x5b311a- -_0x542089._0x57d23d);}function _0x5c0163(_0x4f08b7,_0x9c238){return _0x33cded(_0x4f08b7,_0x9c238-_0x2ecba9._0x25220);}try{const _0x1fa849=JSON['parse'](_0x22f2ed);return _0x1fa849[_0x5c0163(0x42c,_0x2fbb88._0x11578e)]===_0x20b7b7(0x403,0x5b0)&&(_0x1fa849['method']===_0x20b7b7(0x1c6,0x69)||_0x432b2e[_0x20b7b7(_0x2fbb88._0x31574c,_0x2fbb88._0x4a4409)](_0x1fa849[_0x20b7b7(0x268,0x397)],_0x5c0163(_0x2fbb88._0xf1b618,0x468)+_0x5c0163(0x5f9,0x5b6)));}catch{return![];}}function parsePairingRequestFromError(_0x4ce221,_0x26ef47=Date['now']()){const _0x1e6b9f={_0x135893:0x1c5,_0x3ef883:0x1cd,_0x18d391:0x2a,_0x2116f9:0xaa,_0x32af43:0x2be,_0xec9a9d:0x181,_0x96a129:0x2c3,_0x537140:0x25c,_0x367712:0x24e,_0x5bc23e:0x295,_0x4bb6ea:0x1c4,_0x59244c:0x287,_0x181a3c:0x13b,_0x4fb4:0x2f,_0x70d34b:0x3,_0x25b656:0x3eb,_0x155ad7:0x571,_0x112306:0x317,_0x13fd43:0x2fc,_0x2ede16:0x207,_0x2a8c32:0xf1,_0x3b9c3a:0x313};function _0x5e617e(_0x1f3be5,_0x509595){return _0x5338aa(_0x1f3be5-0x34,_0x509595);}const _0xbac65f={'KvWZC':function(_0x8a0247,_0x18e31f){return _0x8a0247===_0x18e31f;},'KoFfW':function(_0x1722b0,_0x206764){return _0x1722b0(_0x206764);},'WiJFr':function(_0x2fff3d,_0x26a88a){return _0x2fff3d(_0x26a88a);},'VuxfH':_0x2722bf(-0x2c8,-0x22f)};function _0x2722bf(_0x423a89,_0x1a1ecf){return _0x5338aa(_0x423a89- -0x44e,_0x1a1ecf);}try{const _0x18a40f=JSON[_0x2722bf(-_0x1e6b9f._0x135893,-0x4a)](_0x4ce221);if(_0x18a40f[_0x5e617e(0x23e,_0x1e6b9f._0x3ef883)]!==_0x2722bf(_0x1e6b9f._0x18d391,-_0x1e6b9f._0x2116f9)||_0x18a40f['ok']!==![]||!_0x18a40f['error'])return null;const _0x2e1809=typeof _0x18a40f[_0x5e617e(_0x1e6b9f._0x32af43,_0x1e6b9f._0xec9a9d)]['code']==='string'?_0x18a40f['error'][_0x5e617e(_0x1e6b9f._0x96a129,_0x1e6b9f._0x537140)]:'',_0xae48ea=_0xbac65f[_0x2722bf(-_0x1e6b9f._0x367712,-_0x1e6b9f._0x5bc23e)](typeof _0x18a40f[_0x2722bf(-_0x1e6b9f._0x4bb6ea,-0x1c8)][_0x5e617e(_0x1e6b9f._0x59244c,0x35d)],_0x2722bf(-0x1e1,-0x213))?_0x18a40f['error'][_0x5e617e(0x287,_0x1e6b9f._0x181a3c)]:'';if(!_0x2e1809[_0x5e617e(0x47f,0x396)]('NOT_PAIR'+'ED')&&!_0x2e1809[_0x5e617e(0x47f,0x514)](_0x2722bf(-_0x1e6b9f._0x4fb4,-0xd9)+'REQUIRED')&&!_0xae48ea[_0x5e617e(0x47f,0x52e)]('NOT_PAIR'+'ED')&&!_0xae48ea[_0x2722bf(-_0x1e6b9f._0x70d34b,0x1a4)]('pairing\x20'+_0x5e617e(0x21f,_0x1e6b9f._0x25b656)))return null;const _0xee799c=_0x18a40f['error'][_0x2722bf(-0x8b,-0x5f)]??_0x18a40f['error'][_0x5e617e(0x4a4,_0x1e6b9f._0x155ad7)]??{},_0x319fe5=firstString(_0xee799c[_0x2722bf(-_0x1e6b9f._0x112306,-0x3b6)+'d'],extractRequestIdFromMessage(_0xae48ea),'unknown');return{'requestId':_0x319fe5,'deviceId':firstString(_0xee799c[_0x5e617e(0x1e9,_0x1e6b9f._0x13fd43)],''),'displayName':firstNullableString(_0xee799c['displayN'+'ame']),'platform':_0xbac65f['KoFfW'](firstNullableString,_0xee799c[_0x5e617e(0x370,0x238)]),'deviceFamily':firstNullableString(_0xee799c[_0x2722bf(-0x229,-_0x1e6b9f._0x2ede16)+'mily']),'role':firstNullableString(_0xee799c['role']),'remoteIp':_0xbac65f[_0x2722bf(-0x247,-0x72)](firstNullableString,_0xee799c[_0x2722bf(-_0x1e6b9f._0x2a8c32,-0xd9)]),'receivedAtMs':_0x26ef47,'status':_0xbac65f[_0x5e617e(_0x1e6b9f._0x3b9c3a,0x2b1)]};}catch{return null;}}function parsePairResolvedEvent(_0x3731f0){const _0x435855={_0x5ddff4:0x18c,_0x207660:0x2a0,_0x20ee0f:0x22c,_0x12aac9:0x2e9,_0x2ffa2d:0x39c,_0x5e8e64:0x1be,_0x4fbc58:0x209,_0x105040:0x170,_0x19770e:0x3c0,_0x4b766a:0x6,_0x4495b2:0x34f,_0x2a2581:0x11c,_0x453f6c:0x662,_0x26f3cf:0x16a,_0x38b19e:0x2ef,_0x1f468f:0x2d3,_0xe2bee3:0x36e,_0x297851:0x2d9,_0x535946:0x349,_0x4c720e:0x2b6},_0x3ce9bd={_0x5ec3ba:0x136},_0x1b34bf={_0x5834eb:0x33},_0x4ad892={};_0x4ad892['HHxFj']=function(_0x1332b4,_0x2fef9e){return _0x1332b4===_0x2fef9e;},_0x4ad892[_0x3efcec(-0x3f,_0x435855._0x5ddff4)]=_0x2ce1b7(_0x435855._0x207660,0x258);function _0x2ce1b7(_0x51637e,_0x166f20){return _0x5338aa(_0x51637e-_0x1b34bf._0x5834eb,_0x166f20);}function _0x3efcec(_0xaf80fd,_0x348bf8){return _0x5338aa(_0x348bf8- -_0x3ce9bd._0x5ec3ba,_0xaf80fd);}_0x4ad892[_0x3efcec(_0x435855._0x20ee0f,0x349)]=_0x2ce1b7(_0x435855._0x12aac9,_0x435855._0x2ffa2d);const _0x3864eb=_0x4ad892;try{const _0x5e5e4e=JSON['parse'](_0x3731f0);if(_0x5e5e4e[_0x2ce1b7(0x23d,_0x435855._0x5e8e64)]!==_0x2ce1b7(_0x435855._0x4fbc58,_0x435855._0x105040)||_0x5e5e4e[_0x3efcec(0x129,0xa0)]!=='device.p'+_0x3efcec(_0x435855._0x19770e,0x1fd)+'lved'||!_0x5e5e4e['payload'])return null;const _0x4e453d=_0x3864eb[_0x3efcec(-0x13c,_0x435855._0x4b766a)](typeof _0x5e5e4e[_0x3efcec(_0x435855._0x4495b2,0x36e)][_0x3efcec(_0x435855._0x2a2581,0x1)+'d'],_0x2ce1b7(0x2a0,0x46c))?_0x5e5e4e[_0x2ce1b7(0x4d7,_0x435855._0x453f6c)][_0x2ce1b7(_0x435855._0x26f3cf,0x8)+'d'][_0x3efcec(_0x435855._0x38b19e,_0x435855._0x1f468f)]():'';if(!_0x4e453d)return null;const _0x21391a=typeof _0x5e5e4e[_0x3efcec(0x236,_0x435855._0xe2bee3)]['decision']===_0x3864eb['bBmNV']?_0x5e5e4e['payload']['decision']:_0x3864eb[_0x3efcec(_0x435855._0x297851,_0x435855._0x535946)],_0x48fd92=_0x21391a==='approved'||_0x21391a===_0x3efcec(0x224,_0x435855._0x4c720e)?_0x21391a:'unknown',_0x4de69a={};return _0x4de69a['requestI'+'d']=_0x4e453d,_0x4de69a['decision']=_0x48fd92,_0x4de69a;}catch{return null;}}function firstString(..._0x2b0418){const _0x302a14={_0x3718fb:0x5c2,_0x101c0b:0x24c,_0x2afca1:0x197},_0x36455b={_0x55d375:0x1bd};for(const _0x58e8b4 of _0x2b0418){if(typeof _0x58e8b4===_0x577254(0xb0,0x119)&&_0x58e8b4[_0xf1e76f(0x5c2,_0x302a14._0x3718fb)]())return _0x58e8b4[_0x577254(_0x302a14._0x101c0b,_0x302a14._0x2afca1)]();}function _0x577254(_0x66d0d7,_0x28e58b){return _0x5338aa(_0x66d0d7- -_0x36455b._0x55d375,_0x28e58b);}function _0xf1e76f(_0x3c6afc,_0x1e04a2){return _0x5338aa(_0x1e04a2-0x1b9,_0x3c6afc);}return'';}function firstNullableString(_0x5efd62){const _0x440bcd={_0x38a7e9:0x5bd,_0x50c0ea:0x71d,_0xe2eb1b:0x7c8},_0x960a25={_0x13a019:0x3ae};function _0x4c0cb8(_0x22d6bb,_0x5eb93f){return _0x5338aa(_0x22d6bb- -_0x960a25._0x13a019,_0x5eb93f);}const _0x5bff2f={};_0x5bff2f[_0x3fd5b7(0x592,_0x440bcd._0x38a7e9)]=function(_0xca9b67,_0x91f6d3){return _0xca9b67===_0x91f6d3;};function _0x3fd5b7(_0x22b4be,_0x346261){return _0x5338aa(_0x22b4be-0x314,_0x346261);}const _0x2ca015=_0x5bff2f;return _0x2ca015['Fzhzw'](typeof _0x5efd62,'string')&&_0x5efd62[_0x3fd5b7(0x71d,0x7c9)]()?_0x5efd62[_0x3fd5b7(_0x440bcd._0x50c0ea,_0x440bcd._0xe2eb1b)]():null;}function extractRequestIdFromMessage(_0x56cac0){const _0x2c46be=_0x56cac0['match'](/requestId[:\s]*([a-f0-9-]+)/i);return _0x2c46be?.[0x1]??null;}import{randomUUID as _0x372cc4}from'crypto';import{setTimeout as _0x3d9273}from'timers/promises';import _0x10c370 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,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{[_0x5338aa(0x20b,0x3d1)];[_0x33cded(0x3ea,0x559)+'ket']=null;['gatewayS'+'ocket']=null;[_0x33cded(0x617,0x765)+'necting']=![];[_0x33cded(0x299,0x405)+_0x33cded(0x424,0x4d5)+'g']=![];[_0x33cded(0x520,0x5f5)]=!![];[_0x5338aa(0x223,0x25b)+_0x33cded(0x4d2,0x4a6)]=0x0;[_0x5338aa(0x2c7,0x2d2)+_0x5338aa(0x48a,0x48c)+'yMs']=0x0;['reconnec'+_0x33cded(0x6ab,0x52f)]=null;['gatewayR'+'etryTime'+'r']=null;[_0x5338aa(0x149,0x13)+'tTimer']=null;[_0x5338aa(0x39c,0x2c8)+'atewayMe'+_0x5338aa(0x1d7,0xb1)]=[];[_0x33cded(0x7a3,0x5ea)+_0x33cded(0x49d,0x47c)+_0x33cded(0x61f,0x486)]=![];[_0x33cded(0x516,0x49e)+'mandStar'+_0x33cded(0x447,0x58d)]=null;[_0x33cded(0x44a,0x405)+_0x33cded(0x234,0x3b7)+'AtMs']=null;[_0x5338aa(0x1dd,0x90)];constructor(_0x41a80d){const _0x5d502b={_0xd914ab:0x169,_0x379fe6:0x3a3,_0x5cf0ea:0xf4,_0x1f9168:0x329,_0x268a10:0x38a,_0x3e40dc:0x130},_0x1be4c3={_0x58b8b0:0x12c};function _0x375502(_0x3fd184,_0x47ac12){return _0x33cded(_0x3fd184,_0x47ac12- -_0x1be4c3._0x58b8b0);}this['options']=_0x41a80d;function _0x58e313(_0x142859,_0x53a7dd){return _0x33cded(_0x53a7dd,_0x142859- -0x688);}this[_0x58e313(-0x20a,-_0x5d502b._0xd914ab)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x41a80d[_0x375502(0x2e2,0x38a)]['gatewayI'+'d'],'instanceId':_0x41a80d[_0x375502(_0x5d502b._0x379fe6,0x38a)][_0x58e313(-_0x5d502b._0x5cf0ea,-0x167)+'Id'],'relayUrl':_0x41a80d[_0x375502(_0x5d502b._0x1f9168,_0x5d502b._0x268a10)][_0x58e313(0x2c,_0x5d502b._0x3e40dc)],'gatewayUrl':_0x41a80d['gatewayU'+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date['now']()};}[_0x33cded(0x383,0x51d)](){const _0x416706={_0x1fae36:0x238,_0x19e81a:0x53a,_0x41c065:0x68c,_0xcc8be5:0x506,_0x226e2d:0x48f,_0x2f14f9:0x34d,_0x65dec9:0x2e7,_0x50c4f0:0x168,_0x2f3f2e:0x2bd,_0x5ca7df:0x4e1,_0x4774b0:0x610,_0x12ac38:0x449,_0x5dd125:0x298,_0x42080b:0x190,_0x145bd2:0x2be,_0x563780:0x298,_0x143921:0x3f5,_0x373e4a:0x311},_0x524be6={_0x5ace9b:0x284};if(!this[_0x54deb7(0x3e1,_0x416706._0x1fae36)])return;function _0x4d2c96(_0x297450,_0x290a2c){return _0x5338aa(_0x297450-_0x524be6._0x5ace9b,_0x290a2c);}this[_0x4d2c96(0x5d8,_0x416706._0x19e81a)]=![],this[_0x4d2c96(_0x416706._0x41c065,0x6aa)+_0x54deb7(_0x416706._0xcc8be5,0x4e9)]({'running':!![],'gatewayUrl':this[_0x4d2c96(_0x416706._0x226e2d,_0x416706._0x2f14f9)][_0x54deb7(0x507,0x602)+'rl']}),this[_0x54deb7(_0x416706._0x65dec9,_0x416706._0x50c4f0)](_0x54deb7(0x411,_0x416706._0x2f3f2e)+_0x54deb7(_0x416706._0x5ca7df,_0x416706._0x4774b0)+'\x20gateway'+_0x54deb7(_0x416706._0x12ac38,0x5a2)+this[_0x54deb7(_0x416706._0x5dd125,_0x416706._0x42080b)]['config'][_0x4d2c96(0x411,_0x416706._0x145bd2)+'d']+(_0x4d2c96(0x477,0x5c0)+'Url=')+this[_0x54deb7(_0x416706._0x563780,0x2cf)][_0x54deb7(0x507,0x45d)+'rl']);function _0x54deb7(_0x3549c8,_0x1d1bc9){return _0x5338aa(_0x3549c8-0x8d,_0x1d1bc9);}void this[_0x54deb7(0x2b4,0x199)+_0x54deb7(_0x416706._0x143921,_0x416706._0x373e4a)]();}async[_0x5338aa(0x330,0x2f1)](){const _0x3ef42e={_0x8ee2de:0x641,_0xe068c3:0x45,_0x50992e:0x4b,_0x560e42:0x74,_0x30b128:0x64c,_0x5247d8:0x5a5,_0x2d836e:0x574,_0x53baf4:0x547,_0x137c1b:0x1,_0xfde547:0x158,_0x18756f:0x313,_0x1a10b0:0x74c,_0xbadfbf:0x333,_0x2ca086:0x480,_0x774f2e:0xbc,_0xc1f8a5:0x502,_0x1ca26e:0x4c8,_0x35585e:0x451,_0x12ce14:0xe7,_0x101b26:0x846,_0x24edf3:0x7b2,_0x41c73a:0x1bb,_0x4d8bd1:0x1eb,_0x1d6af7:0x521,_0x5dfee5:0x490,_0x4db9a1:0x2ff,_0x184eb2:0x364,_0x2ca0c3:0x21c,_0x252ec1:0x251,_0x6352f2:0x5e2,_0x152389:0x6f5,_0x14d315:0x319,_0x31a4f7:0xfa,_0x125cca:0x671,_0x174f1b:0x37,_0x8ee119:0x1f4,_0x476035:0x4e8},_0x4a07f0={_0x39bec3:0x4c},_0x3e6607={'eMQeM':function(_0x3ce6a2,_0x1fe6fc){return _0x3ce6a2(_0x1fe6fc);}};if(this[_0x5dcd6b(0x302,0x1f4)])return;this[_0x183b2f(0x6c5,_0x3ef42e._0x8ee2de)]=!![],this[_0x5dcd6b(_0x3ef42e._0xe068c3,-_0x3ef42e._0x50992e)+_0x5dcd6b(0x1fc,_0x3ef42e._0x560e42)](),this[_0x183b2f(_0x3ef42e._0x30b128,_0x3ef42e._0x5247d8)+'ket']?.[_0x183b2f(0x661,_0x3ef42e._0x2d836e)]();function _0x183b2f(_0x38634c,_0x526e4f){return _0x33cded(_0x38634c,_0x526e4f-_0x4a07f0._0x39bec3);}this['gatewayS'+'ocket']?.[_0x183b2f(_0x3ef42e._0x53baf4,_0x3ef42e._0x2d836e)]();function _0x5dcd6b(_0xdb762f,_0x56b619){return _0x33cded(_0xdb762f,_0x56b619- -0x401);}this[_0x5dcd6b(_0x3ef42e._0x137c1b,_0x3ef42e._0xfde547)+_0x183b2f(_0x3ef42e._0x18756f,0x433)]=null,this['gatewayS'+_0x183b2f(0x6c6,_0x3ef42e._0x1a10b0)]=null,this['pendingG'+_0x5dcd6b(0x3aa,_0x3ef42e._0xbadfbf)+_0x183b2f(_0x3ef42e._0x2ca086,0x4c4)]=[],this[_0x5dcd6b(_0x3ef42e._0x774f2e,0x1e9)+_0x183b2f(_0x3ef42e._0xc1f8a5,_0x3ef42e._0x1ca26e)+'Started']=![],this['clientDe'+'mandStar'+'tedAtMs']=null,this[_0x183b2f(0x57e,_0x3ef42e._0x35585e)+_0x5dcd6b(-_0x3ef42e._0x12ce14,-0x4a)+_0x183b2f(_0x3ef42e._0x101b26,_0x3ef42e._0x24edf3)]=null,this[_0x5dcd6b(_0x3ef42e._0x41c73a,0x364)+_0x5dcd6b(0x2d2,_0x3ef42e._0x4d8bd1)]=![],this[_0x183b2f(0x30b,0x451)+_0x183b2f(0x528,_0x3ef42e._0x1d6af7)+'g']=![];const _0x59bfe9={};_0x59bfe9[_0x183b2f(_0x3ef42e._0x5dfee5,0x485)]=![],_0x59bfe9[_0x5dcd6b(_0x3ef42e._0x4db9a1,_0x3ef42e._0x184eb2)+_0x5dcd6b(0x1a7,_0x3ef42e._0x2ca0c3)]=![],_0x59bfe9['gatewayC'+'onnected']=![],_0x59bfe9['clientCo'+_0x5dcd6b(0x2ba,_0x3ef42e._0x252ec1)]=0x0,_0x59bfe9[_0x183b2f(0x56d,0x735)+'r']=null,this[_0x183b2f(_0x3ef42e._0x6352f2,_0x3ef42e._0x152389)+_0x5dcd6b(0x218,_0x3ef42e._0x14d315)](_0x59bfe9),this[_0x5dcd6b(-0x11,_0x3ef42e._0x31a4f7)](_0x183b2f(0x517,_0x3ef42e._0x125cca)+_0x5dcd6b(_0x3ef42e._0x174f1b,_0x3ef42e._0x8ee119)),await _0x3e6607[_0x183b2f(0x682,_0x3ef42e._0x476035)](_0x3d9273,0x19);}async[_0x33cded(0x2ed,0x42b)+_0x5338aa(0x451,0x4e4)+'st'](_0xc35c66){const _0x4981fe={_0x2dac90:0x1c6,_0x3da974:0x265,_0xe29cc2:0x2a6,_0x27f639:0x318,_0x2a8768:0xc6,_0x8b3b83:0x152},_0x5879e8={_0x3e4b8a:0x3a2},_0x49c940={_0x466d30:0x57a},_0x49f9cc={};_0x49f9cc[_0xf81f97(-0x1a2,-0x91)+'d']=_0xc35c66;function _0xf81f97(_0x353b2c,_0x16432f){return _0x33cded(_0x16432f,_0x353b2c- -_0x49c940._0x466d30);}this[_0x7e7e8d(0x162,0x324)+'wayReque'+'st'](_0xf81f97(_0x4981fe._0x2dac90,0x7)+_0x7e7e8d(_0x4981fe._0x3da974,_0x4981fe._0xe29cc2)+'ove',_0x49f9cc);function _0x7e7e8d(_0x4b62f3,_0x2df6ba){return _0x33cded(_0x2df6ba,_0x4b62f3- -_0x5879e8._0x3e4b8a);}this[_0xf81f97(0x96,-0x8d)+_0x7e7e8d(0x113,-0x19)+_0x7e7e8d(_0x4981fe._0x27f639,0x4db)](_0xc35c66,_0x7e7e8d(_0x4981fe._0x2a8768,_0x4981fe._0x8b3b83));}async[_0x33cded(0x4a6,0x5e7)+'irReques'+'t'](_0x195143){const _0x51dac6={_0x15c021:0x1a7,_0x2c99df:0x19f,_0x578a8c:0x8a,_0x62edc4:0x196,_0x5b2518:0x276,_0x59380f:0x3b,_0x4372e8:0x169,_0x34425d:0x240,_0x2af666:0x213},_0x1dd2b9={_0xed89d1:0x2f8},_0x3116db={};function _0x304399(_0x47ec96,_0x4eae1e){return _0x5338aa(_0x47ec96- -0x1d9,_0x4eae1e);}_0x3116db[_0x304399(0x226,0x380)]=_0x5ef870(_0x51dac6._0x15c021,0xa4)+_0x5ef870(_0x51dac6._0x2c99df,0x151)+'ct';const _0x55f766=_0x3116db,_0x2ef360={};_0x2ef360['requestI'+'d']=_0x195143;function _0x5ef870(_0xc36932,_0x300007){return _0x5338aa(_0xc36932- -_0x1dd2b9._0xed89d1,_0x300007);}this[_0x304399(_0x51dac6._0x578a8c,-0xab)+'wayReque'+'st'](_0x55f766[_0x304399(0x226,0x3b5)],_0x2ef360),this[_0x304399(_0x51dac6._0x62edc4,_0x51dac6._0x5b2518)+_0x304399(_0x51dac6._0x59380f,_0x51dac6._0x4372e8)+_0x304399(_0x51dac6._0x34425d,0x351)](_0x195143,_0x304399(_0x51dac6._0x2af666,0x2fe));}['getSnaps'+'hot'](){const _0x458cea={_0x31086c:0x398,_0x3113d4:0x124,_0x2e91aa:0x203,_0x51b02d:0x13,_0x4b5c8c:0xc,_0x41ba35:0x251,_0x2cd52e:0x206,_0x40e1bf:0x16d,_0x11e836:0x41b,_0x36949c:0x50b},_0x35305e={_0xf3f5ec:0x184},_0x25682b={...this['snapshot']};function _0x726247(_0x184bd9,_0x3f240d){return _0x33cded(_0x3f240d,_0x184bd9- -0x4a1);}function _0x5d3df9(_0x7fd6c0,_0x44bcf1){return _0x33cded(_0x7fd6c0,_0x44bcf1- -_0x35305e._0xf3f5ec);}return _0x25682b['connecte'+'dDevices']=[...this[_0x5d3df9(_0x458cea._0x31086c,0x2fa)]['connecte'+_0x726247(_0x458cea._0x3113d4,_0x458cea._0x2e91aa)]],_0x25682b[_0x726247(-_0x458cea._0x51b02d,_0x458cea._0x4b5c8c)+_0x726247(_0x458cea._0x41ba35,0x250)+_0x726247(_0x458cea._0x2cd52e,0x3df)]=[...this[_0x726247(-0x23,_0x458cea._0x40e1bf)][_0x726247(-0x13,0xdb)+_0x726247(_0x458cea._0x41ba35,_0x458cea._0x11e836)+_0x5d3df9(_0x458cea._0x36949c,0x523)]],_0x25682b;}async['connectR'+_0x33cded(0x43a,0x609)](){const _0x7ebc63={_0x3f4b74:0xd1,_0x6eaea2:0x362,_0x48dc2d:0x4c3,_0x10ecd4:0x44f,_0x138882:0x565,_0x16c360:0x3a5,_0x1d15ed:0x156,_0x5affbd:0x45e,_0x5f5229:0x23a,_0x1e2307:0x1ba,_0x1ccead:0x607,_0x1d6903:0x3a,_0x4b0fd8:0x18d,_0x56c0a8:0xec,_0x1546b6:0x166,_0x4ccff5:0x5ce,_0x4ec820:0x169,_0x863b2b:0x245,_0x5acfac:0x1fb,_0x58d704:0x31f,_0x2eeaf5:0x405,_0x5bb684:0x38c,_0x4ff418:0x531,_0x2cadb2:0x46c,_0x358d02:0xe2,_0x403351:0x1d1,_0x5ae15d:0x86,_0x35d3c5:0x492,_0x48c6c2:0x7c},_0x3a6176={_0x558822:0x302,_0x19bec5:0x27e,_0x2bf22a:0x190,_0x24c67f:0x6c0,_0x2ccfec:0x7f4,_0x5797aa:0x340,_0x195e51:0x3c3,_0x5f5db3:0x2f1,_0xb7b27e:0x69d,_0x2a67b8:0x4d1,_0x411775:0x360,_0x147ff7:0x4c0,_0x3995d7:0x50f,_0x49f4d4:0x23,_0x51173e:0x180,_0x56d11e:0x280,_0x5b3323:0x2bb,_0x5ae6d1:0x31a,_0x47b909:0x575,_0x2aacc1:0x5cd,_0x1c0a1d:0x5d1,_0x514b6e:0x719,_0x321f37:0x378,_0x311f8e:0x2c0},_0x2d3a4a={_0x540409:0x117,_0x2aada2:0x107},_0x9097df={_0x1b29f7:0x23d},_0x1b3db4={_0x3ca3c2:0x54c,_0x154c77:0x553},_0x22893b={_0x101d6e:0x178},_0x5e587e={_0x44ac1f:0x1de,_0x59835e:0x7cb,_0x463899:0x805,_0x41a32e:0x652,_0x3bbbee:0x644,_0x5df0be:0x5ce,_0x5ef42f:0x791,_0x36b362:0x109,_0x5a28e2:0x1f0,_0x8ff53:0x23,_0x573c37:0x7de,_0x4bbea8:0x683,_0x579f83:0x6d5,_0x3492d3:0x155,_0x8c5362:0x561,_0x28a65c:0xa2,_0x4b7b80:0x4d9,_0x3e0d1d:0x783,_0x1836b6:0x838,_0x61ff76:0x472,_0x1164b3:0x2b9,_0x33d7a2:0xc9},_0x4f217a={_0xc5ad41:0x9a},_0x4531d8={};_0x4531d8[_0x11e92b(-0x154,-_0x7ebc63._0x3f4b74)]=function(_0x656af8,_0x555dfb){return _0x656af8===_0x555dfb;},_0x4531d8[_0x4f82f6(_0x7ebc63._0x6eaea2,0x29c)]=_0x4f82f6(_0x7ebc63._0x48dc2d,_0x7ebc63._0x10ecd4),_0x4531d8[_0x4f82f6(_0x7ebc63._0x138882,0x44a)]=_0x4f82f6(0x35d,_0x7ebc63._0x16c360),_0x4531d8[_0x4f82f6(0x258,_0x7ebc63._0x1d15ed)]='error';const _0x2bf639=_0x4531d8;if(this[_0x4f82f6(_0x7ebc63._0x5affbd,0x328)]||this[_0x11e92b(_0x7ebc63._0x5f5229,_0x7ebc63._0x1e2307)+_0x4f82f6(0x455,_0x7ebc63._0x1ccead)]||this[_0x11e92b(_0x7ebc63._0x1d6903,-_0x7ebc63._0x4b0fd8)+_0x11e92b(-_0x7ebc63._0x56c0a8,-_0x7ebc63._0x1546b6)]())return;this[_0x4f82f6(_0x7ebc63._0x4ccff5,0x60e)+_0x11e92b(0xc1,_0x7ebc63._0x4ec820)]=!![],this[_0x11e92b(-0x67,-_0x7ebc63._0x863b2b)+'empt']+=0x1;const _0x31e22c=this[_0x4f82f6(0x32d,_0x7ebc63._0x5acfac)+'empt'],_0x2e7c72=buildRelayWsUrl(this['options'][_0x4f82f6(_0x7ebc63._0x58d704,0x306)]);function _0x11e92b(_0x943a3d,_0x40d7af){return _0x5338aa(_0x943a3d- -0x28a,_0x40d7af);}this[_0x4f82f6(0x364,_0x7ebc63._0x2eeaf5)](_0x4f82f6(_0x7ebc63._0x5bb684,0x497)+_0x4f82f6(0x23b,0x11c)+'tempt='+_0x31e22c+_0x4f82f6(_0x7ebc63._0x4ff418,0x4f4)+redactRelayWsUrl(_0x2e7c72));const _0x345ed3={};_0x345ed3[_0x4f82f6(_0x7ebc63._0x2cadb2,0x313)+'ad']=0x19*0x400*0x400;const _0x2bc32f=new _0x10c370(_0x2e7c72,_0x345ed3);this['relaySoc'+'ket']=_0x2bc32f,_0x2bc32f[_0x4f82f6(0x2da,0x31d)](_0x11e92b(-_0x7ebc63._0x358d02,0x8a),()=>{function _0x23e196(_0x5d8252,_0x5bec78){return _0x11e92b(_0x5d8252-0x591,_0x5bec78);}if(this[_0x23e196(0x65b,0x80d)]||this[_0x23e196(0x5bf,0x5a6)+_0x5f1f6d(-_0x5e587e._0x44ac1f,-0x8a)]!==_0x2bc32f){_0x2bc32f['close']();return;}this[_0x23e196(_0x5e587e._0x59835e,_0x5e587e._0x463899)+_0x23e196(_0x5e587e._0x41a32e,_0x5e587e._0x3bbbee)]=![],this[_0x23e196(_0x5e587e._0x5df0be,0x419)+_0x23e196(_0x5e587e._0x5ef42f,0x6c4)+_0x5f1f6d(_0x5e587e._0x36b362,_0x5e587e._0x5a28e2)]=Date[_0x5f1f6d(-_0x5e587e._0x8ff53,-0x59)]();const _0x5cc665={};_0x5cc665[_0x23e196(0x7cb,_0x5e587e._0x573c37)+_0x23e196(_0x5e587e._0x4bbea8,_0x5e587e._0x579f83)]=!![];function _0x5f1f6d(_0x56b13d,_0x1aa049){return _0x11e92b(_0x56b13d- -_0x4f217a._0xc5ad41,_0x1aa049);}_0x5cc665[_0x5f1f6d(0x124,-0x97)+'r']=null,this[_0x5f1f6d(0xe4,-0xbd)+_0x5f1f6d(_0x5e587e._0x3492d3,0x1b1)](_0x5cc665),this[_0x23e196(_0x5e587e._0x8c5362,0x49c)](_0x5f1f6d(-_0x5e587e._0x28a65c,0x47)+'nnected\x20'+_0x23e196(_0x5e587e._0x4b7b80,0x4bf)+_0x31e22c),this['startHea'+_0x23e196(_0x5e587e._0x3e0d1d,_0x5e587e._0x1836b6)](),this[_0x23e196(_0x5e587e._0x61ff76,_0x5e587e._0x1164b3)+_0x5f1f6d(_0x5e587e._0x33d7a2,0x182)+'nected']();}),_0x2bc32f['on'](_0x2bf639[_0x11e92b(_0x7ebc63._0x403351,_0x7ebc63._0x5ae15d)],(_0x4eac31,_0x452c75)=>{function _0x463308(_0x4009b6,_0x327872){return _0x11e92b(_0x327872-0x4b2,_0x4009b6);}function _0x11c71e(_0x11a7e8,_0x42aec6){return _0x11e92b(_0x42aec6-_0x22893b._0x101d6e,_0x11a7e8);}void this[_0x11c71e(0x442,0x28e)+_0x463308(0x4c5,0x41d)+'ge'](_0x4eac31,_0x452c75);}),_0x2bc32f['on'](_0x4f82f6(_0x7ebc63._0x35d3c5,0x454),()=>{function _0x4e7936(_0x4e84a8,_0x52371b){return _0x11e92b(_0x52371b-0x353,_0x4e84a8);}function _0x106fe7(_0x4e1d64,_0x4a298a){return _0x11e92b(_0x4a298a-0x4a0,_0x4e1d64);}this[_0x106fe7(0x51f,0x4dd)+_0x4e7936(_0x1b3db4._0x3ca3c2,_0x1b3db4._0x154c77)+_0x106fe7(0x732,0x643)]=Date[_0x106fe7(0x4c4,0x517)]();});function _0x4f82f6(_0x504e99,_0x5064c2){return _0x5338aa(_0x504e99-0x10a,_0x5064c2);}_0x2bc32f[_0x11e92b(-0xba,-0x101)](_0x2bf639['qTSRn'],_0x264d3f=>{const _0x195f0c={_0x9e55ab:0x534};function _0x355934(_0x3a6bc3,_0x5136b5){return _0x4f82f6(_0x3a6bc3- -_0x195f0c._0x9e55ab,_0x5136b5);}function _0x330b0b(_0x203b05,_0x53d679){return _0x4f82f6(_0x203b05- -_0x9097df._0x1b29f7,_0x53d679);}this[_0x330b0b(0x127,_0x2d3a4a._0x540409)](_0x355934(0x26,_0x2d3a4a._0x2aada2)+_0x330b0b(0x32e,0x2ad)+String(_0x264d3f));}),_0x2bc32f[_0x4f82f6(0x2da,0x101)](_0x11e92b(-0x3,_0x7ebc63._0x48c6c2),(_0x474786,_0x58726b)=>{const _0x1ca9cd={_0x24432b:0xf2};this[_0x236be5(0x2b1,_0x3a6176._0x558822)+'ket']===_0x2bc32f&&(this['relaySoc'+_0x236be5(_0x3a6176._0x19bec5,_0x3a6176._0x2bf22a)]=null);this[_0x28ce3d(_0x3a6176._0x24c67f,_0x3a6176._0x2ccfec)+_0x28ce3d(0x547,0x401)]=![],this[_0x28ce3d(0x30c,_0x3a6176._0x5797aa)+_0x236be5(_0x3a6176._0x195e51,0x514)](),this[_0x236be5(_0x3a6176._0x5f5db3,0x247)+_0x28ce3d(_0x3a6176._0xb7b27e,_0x3a6176._0x2a67b8)+_0x236be5(0x1a4,0x336)]=null;function _0x28ce3d(_0x3179dc,_0x917eb1){return _0x4f82f6(_0x3179dc-_0x1ca9cd._0x24432b,_0x917eb1);}function _0x236be5(_0x7ed4d9,_0x426d3b){return _0x4f82f6(_0x426d3b- -0xc0,_0x7ed4d9);}this[_0x28ce3d(_0x3a6176._0x411775,_0x3a6176._0x147ff7)+'onnected'+_0x236be5(0x4a2,_0x3a6176._0x3995d7)]=null,this[_0x28ce3d(0x604,0x5de)+_0x28ce3d(0x675,0x724)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x2bf639[_0x236be5(-_0x3a6176._0x49f4d4,_0x3a6176._0x51173e)](_0x474786,0x3e8)?null:'relay\x20cl'+_0x236be5(0x51d,0x3ff)+(_0x58726b[_0x236be5(_0x3a6176._0x56d11e,_0x3a6176._0x195e51)]()||_0x474786)}),this[_0x28ce3d(0x456,_0x3a6176._0x5b3323)](_0x236be5(0x47c,0x46b)+'sconnect'+'ed\x20code='+_0x474786+_0x28ce3d(0x49e,_0x3a6176._0x5ae6d1)+(_0x58726b[_0x28ce3d(_0x3a6176._0x47b909,_0x3a6176._0x2aacc1)]()||_0x2bf639['sFUnc'])),this[_0x28ce3d(_0x3a6176._0x1c0a1d,_0x3a6176._0x514b6e)+_0x28ce3d(_0x3a6176._0x321f37,0x207)](),this[_0x236be5(0x409,0x401)+_0x236be5(0x2d8,_0x3a6176._0x311f8e)+'onnect']();});}async['handleRe'+_0x5338aa(0x1f5,0x138)+'ge'](_0x47ff77,_0x27eee9){const _0x57e4ba={_0x5c31ca:0x4ec,_0x1d028a:0x5a7,_0x4ceed3:0x5c9,_0x268ab1:0x638,_0x455cc6:0x49c,_0x45eab2:0x454,_0x541be3:0x476,_0x5c7317:0x484,_0x35fab7:0x3c7,_0x57773a:0x5bd,_0x5a7bd8:0x3e1,_0x4c3422:0x417,_0x347b05:0x3a1,_0xb4c497:0x3c6,_0x580f6f:0x502,_0x14caa2:0x2c4,_0x1d46cf:0x57c,_0x267c51:0x6bd,_0x11f213:0x589,_0x1caa20:0x371,_0x1e9eef:0x497,_0x21d963:0x519,_0x513a81:0x27c,_0x11e93e:0x2f9,_0x184a3f:0x3f8,_0xd994d1:0x484,_0x5a7056:0x3c7,_0x3e06c4:0x30c};function _0x4c796c(_0x526b36,_0x237c0e){return _0x33cded(_0x237c0e,_0x526b36- -0x184);}this[_0x4c796c(0x3e4,_0x57e4ba._0x5c31ca)+_0x4c796c(_0x57e4ba._0x1d028a,0x782)+_0x517428(_0x57e4ba._0x4ceed3,_0x57e4ba._0x268ab1)]=Date[_0x517428(0x6d0,0x50c)]();if(_0x27eee9){this[_0x4c796c(_0x57e4ba._0x455cc6,_0x57e4ba._0x45eab2)+_0x4c796c(0x27c,0x9a)+_0x517428(_0x57e4ba._0x541be3,_0x57e4ba._0x5c7317)+_0x4c796c(_0x57e4ba._0x35fab7,0x2ab)]({'kind':_0x517428(_0x57e4ba._0x57773a,0x534),'data':normalizeBinary(_0x47ff77)});return;}const _0x38a7e2=normalizeText(_0x47ff77);if(_0x38a7e2==null)return;const _0x3255ea=parseControl(_0x38a7e2);function _0x517428(_0x551db7,_0x455c48){return _0x33cded(_0x551db7,_0x455c48- -0x96);}if(_0x3255ea){this['handleRe'+'layContr'+'ol'](_0x3255ea[_0x517428(0x36d,_0x57e4ba._0x5a7bd8)],_0x3255ea[_0x517428(0x437,_0x57e4ba._0x4c3422)]);return;}const _0x3b6fe8=parseConnectStartIdentity(_0x38a7e2);_0x3b6fe8&&this[_0x4c796c(_0x57e4ba._0x347b05,0x1ff)+_0x4c796c(_0x57e4ba._0xb4c497,_0x57e4ba._0x580f6f)+_0x4c796c(_0x57e4ba._0x14caa2,0x40a)](_0x3b6fe8['id'],_0x3b6fe8[_0x517428(_0x57e4ba._0x1d46cf,0x647)]);const _0x5e3d88={};_0x5e3d88[_0x517428(_0x57e4ba._0x267c51,_0x57e4ba._0x11f213)]=_0x4c796c(_0x57e4ba._0x1caa20,_0x57e4ba._0x1e9eef),_0x5e3d88['text']=_0x38a7e2,this[_0x517428(_0x57e4ba._0x21d963,0x58a)+_0x4c796c(_0x57e4ba._0x513a81,_0x57e4ba._0x11e93e)+_0x517428(_0x57e4ba._0x184a3f,_0x57e4ba._0xd994d1)+_0x4c796c(_0x57e4ba._0x5a7056,_0x57e4ba._0x3e06c4)](_0x5e3d88);}[_0x5338aa(0x3a0,0x375)+_0x33cded(0x729,0x5d9)+'ol'](_0xc058e,_0x4cc6f5){const _0x53bec8={_0x4bded0:0x7b3,_0xac0151:0x7f9,_0x96a94d:0x26e,_0x5effe4:0x524,_0x38b044:0x6b6,_0x2911ae:0x7fa,_0x395ffd:0x2a2,_0x82c205:0x42e,_0xe0cc50:0x675,_0x30ab30:0x4c2,_0x4b607d:0x614,_0x549c0c:0x7a2,_0x466a4b:0x5d1,_0x1f7e86:0x42d,_0x58becc:0x636,_0x4ed585:0x696,_0x169ef0:0x79d,_0x1afa97:0x796,_0x2e3a71:0x679,_0xe5d682:0x5a1,_0x5e6bb5:0x583,_0x2b31c1:0x6fd,_0x7b5e34:0x5de,_0xe2609f:0x4d5,_0x52ff0b:0x711,_0x2870e5:0x731,_0x1ccd82:0x615,_0xa041f9:0x22e,_0x2a8571:0x28f,_0x1dc35a:0x852,_0x35636d:0x6ed,_0x1ba4a5:0x5dc,_0x3515fc:0x4b8,_0x5952ff:0x45e,_0x453a57:0x2a6,_0x4eb522:0x60a,_0x5c41ad:0x449,_0x26bd62:0x289,_0x3c871a:0x233,_0x4f41a2:0x521,_0x551249:0x63e,_0xa3d812:0x74d,_0xccca08:0x786,_0x26a275:0x354,_0x194e78:0x40d,_0x4eb6d6:0x566,_0x502465:0x532,_0x26ade2:0x4f5,_0x1f5271:0x6d6,_0x38f92b:0x34a,_0x1497d2:0x3e3,_0xe6851a:0x52f,_0x127a53:0x69b,_0x2503c3:0x4bc,_0x3f9d15:0x354,_0x4ecb8a:0x8e9,_0x1e0c79:0x7f0,_0x334d39:0x2aa,_0x1dedcb:0x3d7,_0xe351a9:0x566},_0x2c9913={_0x4ef8a3:0x44},_0x2a328c={};_0x2a328c[_0x2fd6b6(_0x53bec8._0x4bded0,_0x53bec8._0xac0151)]=function(_0xb5b6bf,_0xe6c8c1){return _0xb5b6bf===_0xe6c8c1;},_0x2a328c[_0x53be9a(_0x53bec8._0x96a94d,0x417)]=_0x2fd6b6(0x769,0x8dd)+_0x53be9a(_0x53bec8._0x5effe4,0x4ed)+'opped\x20to'+_0x2fd6b6(_0x53bec8._0x38b044,_0x53bec8._0x2911ae)+_0x53be9a(_0x53bec8._0x395ffd,0x35a)+_0x53be9a(0x3cf,0x3be)+'onnected';function _0x2fd6b6(_0x5d035a,_0x398dc9){return _0x33cded(_0x398dc9,_0x5d035a-_0x2c9913._0x4ef8a3);}const _0x4cf8ea=_0x2a328c;function _0x53be9a(_0x3b292e,_0x1d3407){return _0x33cded(_0x3b292e,_0x1d3407- -0x128);}if(_0xc058e==='client_c'+_0x2fd6b6(0x3fb,_0x53bec8._0x82c205)||_0xc058e===_0x2fd6b6(_0x53bec8._0xe0cc50,0x685)+_0x2fd6b6(0x5d6,0x615)){const _0x5c440e=this[_0x2fd6b6(_0x53bec8._0x30ab30,0x4a3)][_0x53be9a(0x6d5,0x636)+'unt'],_0x32bbe3=_0x4cc6f5??Math['max'](0x1,this[_0x2fd6b6(0x4c2,_0x53bec8._0x4b607d)][_0x2fd6b6(_0x53bec8._0x549c0c,0x629)+_0x2fd6b6(0x696,0x861)]);_0x32bbe3>0x0&&this['clientDe'+'mandStar'+_0x2fd6b6(_0x53bec8._0x466a4b,0x53d)]==null&&(this[_0x2fd6b6(0x4e2,_0x53bec8._0x1f7e86)+'mandStar'+'tedAtMs']=Date['now']());const _0x2a3bfc={};_0x2a3bfc[_0x53be9a(0x468,_0x53bec8._0x58becc)+_0x2fd6b6(_0x53bec8._0x4ed585,0x736)]=_0x32bbe3,this[_0x53be9a(0x5de,0x581)+_0x2fd6b6(0x75e,0x8ec)](_0x2a3bfc);if(_0x4cf8ea[_0x2fd6b6(0x7b3,0x8e6)](_0x32bbe3,0x0))this['gatewayH'+_0x2fd6b6(0x4c0,0x41d)+_0x2fd6b6(0x4ca,0x39b)]=![],this[_0x2fd6b6(_0x53bec8._0x169ef0,_0x53bec8._0x1afa97)+_0x2fd6b6(_0x53bec8._0x2e3a71,_0x53bec8._0xe5d682)+'t'](),this[_0x2fd6b6(0x53f,0x5f0)](_0x4cf8ea[_0x2fd6b6(_0x53bec8._0x5e6bb5,0x4bd)]);else{shouldRecycleGatewayForFreshClient(_0x5c440e,_0x32bbe3,this[_0x2fd6b6(_0x53bec8._0x2b31c1,_0x53bec8._0x7b5e34)+_0x2fd6b6(_0x53bec8._0xe2609f,0x4c3)](),![])&&(this[_0x2fd6b6(0x53f,_0x53bec8._0x52ff0b)]('gateway\x20'+'recycle\x20'+_0x53be9a(0x645,0x5c5)+_0x53be9a(_0x53bec8._0x2870e5,_0x53bec8._0x1ccd82)+'esh\x20clie'+_0x2fd6b6(0x4ba,0x427)+'d'),this['closeGat'+'eway']());if(this['isGatewa'+_0x2fd6b6(_0x53bec8._0xe2609f,0x417)]()){const _0x55151e={};_0x55151e['gatewayC'+_0x53be9a(_0x53bec8._0xa041f9,_0x53bec8._0x2a8571)]=!![],_0x55151e[_0x2fd6b6(0x72d,_0x53bec8._0x1dc35a)+'r']=null,this[_0x2fd6b6(_0x53bec8._0x35636d,0x54c)+_0x53be9a(_0x53bec8._0x1ba4a5,0x5f2)](_0x55151e),this[_0x2fd6b6(0x53f,0x527)](_0x2fd6b6(0x70a,_0x53bec8._0x58becc)+_0x2fd6b6(0x41d,0x409)+_0x53be9a(0x39c,0x4a0)+_0x53be9a(0x3d2,_0x53bec8._0x3515fc)+_0x53be9a(0x44e,0x4d8)+'enMs='+this[_0x53be9a(_0x53bec8._0x5952ff,_0x53bec8._0x453a57)+_0x2fd6b6(0x542,_0x53bec8._0x4eb522)](this[_0x2fd6b6(_0x53bec8._0x5c41ad,_0x53bec8._0x26bd62)+_0x2fd6b6(0x3fb,_0x53bec8._0x3c871a)+_0x53be9a(_0x53bec8._0x4f41a2,_0x53bec8._0x551249)])+('\x20handsha'+_0x2fd6b6(_0x53bec8._0xa3d812,_0x53bec8._0xccca08)+'d=')+this['gatewayH'+_0x53be9a(_0x53bec8._0x4f41a2,_0x53bec8._0x26a275)+_0x53be9a(0x405,0x35e)]);}}this['ensureGa'+_0x53be9a(_0x53bec8._0x194e78,_0x53bec8._0x4eb6d6)+_0x53be9a(_0x53bec8._0x502465,_0x53bec8._0x26ade2)]();return;}if(_0xc058e===_0x53be9a(_0x53bec8._0x1f5271,0x630)+_0x53be9a(_0x53bec8._0x38f92b,_0x53bec8._0x1497d2)+_0x2fd6b6(0x55c,_0x53bec8._0xe6851a)){const _0x5418c5=(_0x53be9a(0x26a,0x44c)+_0x2fd6b6(0x463,0x396))['split']('|');let _0x4a0a21=0x0;while(!![]){switch(_0x5418c5[_0x4a0a21++]){case'0':this[_0x53be9a(_0x53bec8._0x127a53,0x4c2)+_0x53be9a(_0x53bec8._0x2503c3,_0x53bec8._0x3f9d15)+_0x53be9a(0x541,0x35e)]=![];continue;case'1':const _0x1ad7f5={};_0x1ad7f5[_0x53be9a(0x457,0x636)+'unt']=0x0,this['updateSn'+_0x2fd6b6(0x75e,_0x53bec8._0x4ecb8a)](_0x1ad7f5);continue;case'2':this['markDevi'+_0x2fd6b6(_0x53bec8._0x2e3a71,_0x53bec8._0x1e0c79)+'t']();continue;case'3':this['log']('client\x20d'+_0x53be9a(0x2f4,_0x53bec8._0x1497d2)+_0x53be9a(_0x53bec8._0x334d39,0x3b8)+'ping\x20gat'+_0x53be9a(0x2de,_0x53bec8._0x1dedcb)+_0x53be9a(0x431,0x4f5));continue;case'4':this['ensureGa'+_0x53be9a(0x518,_0x53bec8._0xe351a9)+'nected']();continue;case'5':return;}break;}}}[_0x33cded(0x60c,0x620)+_0x5338aa(0x15f,0x22)+_0x5338aa(0x279,0x145)+_0x33cded(0x6c1,0x54b)](_0x2bf017){const _0x24383e={_0x4eb18e:0x42,_0x218ae9:0x161,_0x2a36b2:0x2c,_0x5f13a4:0xba,_0x37c6e9:0x1a,_0x256588:0x156,_0xa3fbef:0x34,_0x2f0c51:0x151,_0x13d4e4:0x1d3,_0x332198:0x11d,_0x42d810:0x8f,_0x47121c:0x12d,_0x526148:0x23f,_0x50e685:0x2e,_0x54f3ff:0x25,_0x34afc7:0x3c3,_0x26d654:0x218,_0x233a60:0x7b,_0x4f79f4:0x50,_0x3585cd:0x1b9,_0x4caedc:0x14c,_0xf54949:0x6d,_0xfc47a:0x28,_0x5546c3:0x32,_0x5e5c7c:0x12e,_0x313afb:0x3bb,_0x48c1c6:0x21f,_0x474d7b:0x17c,_0x1020f6:0x20c,_0x18a7d3:0x1eb,_0x40d522:0x182,_0x32cbb0:0xe9,_0x238273:0x268,_0x4bf937:0x8c,_0x25d87a:0x4f},_0x229dd1={'nzPdg':function(_0x451f33,_0x466578){return _0x451f33===_0x466578;},'dazgX':function(_0x5cae75,_0x469324){return _0x5cae75(_0x469324);}},_0x5f29a6=_0x229dd1[_0x5a0682(-_0x24383e._0x4eb18e,-0x33)](_0x2bf017[_0x5a0682(-_0x24383e._0x218ae9,-_0x24383e._0x2a36b2)],_0x2efbed(-_0x24383e._0x5f13a4,-0xe7))&&_0x229dd1[_0x5a0682(-0x127,_0x24383e._0x37c6e9)](isConnectHandshakeRequest,_0x2bf017[_0x5a0682(-0x29,-_0x24383e._0x256588)]),_0x25bc4a=this[_0x2efbed(-0x17a,_0x24383e._0xa3fbef)+_0x2efbed(_0x24383e._0x2f0c51,_0x24383e._0x13d4e4)];if(!_0x25bc4a||_0x25bc4a[_0x5a0682(-_0x24383e._0x332198,-_0x24383e._0x42d810)+'te']!==_0x10c370[_0x5a0682(0x2,-_0x24383e._0x47121c)]){this[_0x5a0682(-0x8e,-_0x24383e._0x526148)+'tewayCon'+_0x5a0682(-0x20f,-_0x24383e._0x50e685)](),this[_0x5a0682(-_0x24383e._0x54f3ff,-0x1c1)+_0x2efbed(-0x183,-0x2d2)+_0x5a0682(-_0x24383e._0x34afc7,-_0x24383e._0x26d654)+'e'](_0x2bf017);_0x5f29a6&&this[_0x5a0682(0x17,-0x150)](_0x5a0682(0x13d,_0x24383e._0x233a60)+_0x5a0682(-0x24f,-0x213)+_0x5a0682(-_0x24383e._0x4f79f4,-0x14f)+_0x2efbed(0x192,_0x24383e._0x3585cd)+'ct\x20hands'+_0x5a0682(-_0x24383e._0x4caedc,-0x25e)+_0x2efbed(0x62,0x82)+'il\x20gatew'+_0x2efbed(_0x24383e._0xf54949,_0x24383e._0xfc47a)+'nects');return;}if(!this[_0x2efbed(0x3b,-0x57)+_0x5a0682(-_0x24383e._0x5546c3,-0x1cf)+_0x2efbed(-0x129,-_0x24383e._0x5e5c7c)]){if(!_0x5f29a6){this[_0x5a0682(-0x29e,-0x1c1)+_0x5a0682(-_0x24383e._0x313afb,-_0x24383e._0x48c1c6)+_0x2efbed(-_0x24383e._0x474d7b,-0xab)+'e'](_0x2bf017);return;}this[_0x5a0682(-0xc,-0x61)+_0x5a0682(-_0x24383e._0x1020f6,-0x1cf)+'Started']=!![],this['log'](_0x5a0682(0x1d1,_0x24383e._0x233a60)+'handshak'+_0x2efbed(-_0x24383e._0x18a7d3,-0xb4)+_0x2efbed(_0x24383e._0x40d522,0x317)+'='+this['pendingG'+_0x5a0682(0x11f,_0x24383e._0x32cbb0)+'ssages'][_0x5a0682(_0x24383e._0x238273,_0x24383e._0x4bf937)]);}function _0x5a0682(_0x3d6901,_0xb84b4d){return _0x5338aa(_0xb84b4d- -0x3aa,_0x3d6901);}function _0x2efbed(_0x1c4b42,_0xdce3e6){return _0x5338aa(_0x1c4b42- -0x30e,_0xdce3e6);}this[_0x5a0682(0x230,_0x24383e._0x25d87a)+_0x2efbed(0x1,0x85)](_0x2bf017);}[_0x5338aa(0x16b,0xe1)+_0x5338aa(0x3ed,0x423)+_0x5338aa(0x37c,0x291)](){const _0x466068={_0x41cc6b:0x495,_0x4ff0f0:0x62a,_0x4e325e:0x19d,_0x96c3cb:0x5d1,_0x2aa4a0:0x713,_0x587284:0x3c1,_0x1527f:0x597,_0x14e9fc:0x387,_0x361e1c:0x346,_0x2f9591:0x356,_0x289781:0x47d,_0xf5269d:0x155,_0x3cf6b9:0x1c3,_0x6386:0x13c,_0x373aa4:0x3a8,_0xe55ca:0x495,_0x5edf45:0x404,_0x6caf05:0x38d,_0x38ae8d:0x411},_0x3ec52e={_0x5503da:0x38e,_0x566719:0x4b7,_0x3a2db6:0x3a4,_0x24ee17:0x65c,_0x946a17:0x51a,_0x58181a:0x66c,_0x31acdb:0x1a8,_0x342924:0x3c9,_0x46a237:0x509,_0x427c4d:0x5d0,_0x4a8125:0x5a3,_0x1caae0:0x500,_0x325615:0x8e7,_0x37679c:0x76b,_0x948759:0x5d6,_0x445515:0x620,_0x4ecfa4:0x69c,_0x949aec:0x29e,_0x1ec7bd:0x38e,_0x3a595c:0x519,_0x1a5542:0x4c2,_0x46fe52:0x69c,_0x553620:0x8a0,_0x3ddd88:0x6f7,_0x5bd689:0x241,_0x5d8f31:0x7c4,_0x89ea9b:0x330,_0x20ba94:0x2d0,_0x7a1ceb:0x20c},_0x318729={_0x53cf79:0x335,_0x2116f2:0x2ad,_0x2fb9f1:0x35b,_0x46e029:0x3f8},_0x460952={_0x4a1c06:0x223},_0x6fba33={_0x5c0b93:0x173,_0x2bf15e:0x183,_0x3c1ce6:0x1cc},_0x3c8958={_0x45dde8:0x136,_0x183fdd:0xa2,_0x32940e:0xe7,_0x2adc41:0x20,_0x3a854e:0xba,_0x4c63e3:0x1c5,_0x264403:0x232,_0x579968:0x299,_0x20df3d:0x28a,_0x27f2e6:0x28,_0xf7aeaa:0xd7,_0x22dca6:0x1cd,_0x5b73e7:0x285,_0x26d076:0xec,_0x24b5c3:0x223,_0x3121d3:0x119,_0x4a3620:0x1fc,_0x59c835:0x147,_0x471d27:0x266,_0x1dcbdb:0x102,_0x231779:0xb1,_0xb66a24:0xa6,_0x1bec4c:0x1f1,_0x42ba3a:0x13e,_0x59fc32:0x26},_0x4b7890={_0x50dbaa:0xd2},_0x58e725={};_0x58e725[_0x5aaf17(_0x466068._0x41cc6b,_0x466068._0x4ff0f0)]=function(_0x37733b,_0x53b6c8){return _0x37733b*_0x53b6c8;},_0x58e725[_0x564c05(_0x466068._0x4e325e,0x1db)]=_0x5aaf17(0x476,_0x466068._0x96c3cb);const _0x5713cb=_0x58e725;if(this[_0x5aaf17(0x577,_0x466068._0x2aa4a0)]||!this['isRelayO'+_0x5aaf17(_0x466068._0x587284,_0x466068._0x1527f)]()||this[_0x5aaf17(_0x466068._0x14e9fc,0x328)+_0x564c05(0x1c6,0x162)+'g']||this[_0x564c05(0x2f8,_0x466068._0x361e1c)+_0x5aaf17(0x413,0x23e)]())return;this[_0x5aaf17(_0x466068._0x14e9fc,_0x466068._0x2f9591)+'onnectin'+'g']=!![],this[_0x5aaf17(_0x466068._0x289781,0x622)]('gateway\x20'+_0x564c05(_0x466068._0xf5269d,_0x466068._0x3cf6b9)+_0x564c05(0x31e,_0x466068._0x6386)+'l='+this['options'][_0x564c05(0x2bd,_0x466068._0x373aa4)+'rl']);const _0x312119=new _0x10c370(this['options'][_0x5aaf17(0x69d,0x7eb)+'rl'],{'maxPayload':_0x5713cb[_0x5aaf17(_0x466068._0xe55ca,_0x466068._0x5edf45)](0x19*0x400,0x400)});function _0x564c05(_0x3e414e,_0x48349a){return _0x5338aa(_0x48349a- -_0x4b7890._0x50dbaa,_0x3e414e);}this[_0x564c05(0x7d,0xc2)+_0x564c05(0x461,_0x466068._0x6caf05)]=_0x312119,_0x312119[_0x564c05(0x1ff,0xfe)]('open',()=>{const _0x579314={_0x5b2f97:0x45e};if(this['stopped']||this['gatewayS'+_0xee79f4(0x297,_0x3c8958._0x45dde8)]!==_0x312119){_0x312119[_0xee79f4(-0x11,-_0x3c8958._0x183fdd)]();return;}function _0x588bbb(_0x25a551,_0x4597a3){return _0x5aaf17(_0x4597a3- -_0x579314._0x5b2f97,_0x25a551);}this['gatewayC'+_0x588bbb(-_0x3c8958._0x32940e,-0x7)+'g']=![],this[_0xee79f4(-0x102,_0x3c8958._0x2adc41)+_0x588bbb(_0x3c8958._0x3a854e,-0x60)+'Started']=![],this[_0xee79f4(-0x1a3,-_0x3c8958._0x4c63e3)+_0xee79f4(-_0x3c8958._0x264403,-0x213)+_0x588bbb(_0x3c8958._0x579968,_0x3c8958._0x20df3d)]=Date[_0xee79f4(-0x84,-_0x3c8958._0x27f2e6)]();const _0x3d143f={};_0x3d143f[_0x588bbb(-0xec,-_0x3c8958._0xf7aeaa)+_0xee79f4(-0x2f4,-0x213)]=!![],_0x3d143f[_0x588bbb(0x208,0x20d)+'r']=null;function _0xee79f4(_0x5df076,_0x1b9b65){return _0x5aaf17(_0x1b9b65- -0x54c,_0x5df076);}this[_0x588bbb(0x19a,_0x3c8958._0x22dca6)+'apshot'](_0x3d143f),this[_0xee79f4(-_0x3c8958._0x5b73e7,-0xcf)]('gateway\x20'+_0x588bbb(0x190,_0x3c8958._0x26d076)+_0x588bbb(-_0x3c8958._0x24b5c3,-0xfd)+'lientDem'+_0xee79f4(-_0x3c8958._0x3121d3,-0xaa)+this[_0xee79f4(-0x171,-_0x3c8958._0x4a3620)+'ince'](this[_0x588bbb(_0x3c8958._0x59c835,-0x3e)+_0x588bbb(0x1a9,_0x3c8958._0x471d27)+_0x588bbb(-_0x3c8958._0x1dcbdb,_0x3c8958._0x231779)])),this['flushPen'+_0x588bbb(0x5f,_0x3c8958._0xb66a24)+_0xee79f4(_0x3c8958._0x1bec4c,_0x3c8958._0x42ba3a)+_0xee79f4(0x89,_0x3c8958._0x59fc32)]();}),_0x312119['on'](_0x5713cb[_0x5aaf17(0x4d0,_0x466068._0x38ae8d)],(_0xa0bb54,_0x10ce96)=>{function _0xf8f40e(_0x448e6f,_0x4b3134){return _0x5aaf17(_0x4b3134- -0x443,_0x448e6f);}function _0x2ee876(_0x4daba0,_0x4404b6){return _0x5aaf17(_0x4daba0- -0x60f,_0x4404b6);}this[_0x2ee876(0x99,-0x24)+_0x2ee876(-_0x6fba33._0x5c0b93,-_0x6fba33._0x2bf15e)+_0xf8f40e(_0x6fba33._0x3c1ce6,0x8a)](_0xa0bb54,_0x10ce96);});function _0x5aaf17(_0x1af34a,_0x573036){return _0x5338aa(_0x1af34a-_0x460952._0x4a1c06,_0x573036);}_0x312119[_0x5aaf17(0x3f3,0x37c)](_0x5aaf17(0x4ad,0x539),_0x42633f=>{function _0x355120(_0x3253b3,_0x3b9c0d){return _0x5aaf17(_0x3253b3- -0x324,_0x3b9c0d);}function _0x24e74a(_0x2cea45,_0x2d8d8a){return _0x5aaf17(_0x2cea45- -0x31a,_0x2d8d8a);}this[_0x355120(0x159,_0x318729._0x53cf79)](_0x24e74a(0x32e,_0x318729._0x2116f2)+_0x24e74a(_0x318729._0x2fb9f1,_0x318729._0x46e029)+String(_0x42633f));}),_0x312119['once'](_0x5aaf17(0x4aa,0x43d),(_0x548c93,_0x459e6e)=>{const _0x2a842c={_0x573ef5:0x1df},_0x2cd418={_0x3419ae:0x100};this[_0x6e5d6e(_0x3ec52e._0x5503da,_0x3ec52e._0x566719)+'ocket']===_0x312119&&(this['gatewayS'+'ocket']=null);this[_0x6e5d6e(_0x3ec52e._0x3a2db6,0x487)+_0x6e5d6e(_0x3ec52e._0x24ee17,0x557)+'g']=![],this[_0x6e5d6e(_0x3ec52e._0x946a17,_0x3ec52e._0x58181a)+_0x6e5d6e(0x656,0x4fe)+_0x6e5d6e(0x682,0x508)]=![],this[_0x63a20f(_0x3ec52e._0x31acdb,0x306)+_0x6e5d6e(_0x3ec52e._0x342924,0x439)+_0x63a20f(_0x3ec52e._0x46a237,_0x3ec52e._0x427c4d)]=null;function _0x6e5d6e(_0x2ad428,_0x4a187d){return _0x5aaf17(_0x4a187d-_0x2cd418._0x3419ae,_0x2ad428);}this[_0x63a20f(0x44c,0x2e8)+'apshot']({'gatewayConnected':![],'lastError':_0x548c93===0x3e8?this[_0x6e5d6e(_0x3ec52e._0x4a8125,_0x3ec52e._0x1caae0)][_0x6e5d6e(_0x3ec52e._0x325615,_0x3ec52e._0x37679c)+'r']:_0x6e5d6e(_0x3ec52e._0x948759,0x748)+'closed:\x20'+(_0x459e6e[_0x6e5d6e(_0x3ec52e._0x445515,_0x3ec52e._0x4ecfa4)]()||_0x548c93)}),this[_0x63a20f(_0x3ec52e._0x949aec,0x196)]('gateway\x20'+_0x63a20f(_0x3ec52e._0x1ec7bd,_0x3ec52e._0x3a595c)+'cted\x20cod'+'e='+_0x548c93+'\x20reason='+(_0x459e6e[_0x6e5d6e(_0x3ec52e._0x1a5542,_0x3ec52e._0x46fe52)]()||_0x63a20f(0x3fd,0x2c3))+(_0x6e5d6e(_0x3ec52e._0x553620,_0x3ec52e._0x3ddd88)+_0x63a20f(0x333,0x4d1)+'ndMs=')+this['elapsedS'+_0x6e5d6e(0x52e,0x580)](this[_0x63a20f(_0x3ec52e._0x5bd689,0x1ff)+_0x6e5d6e(0x615,_0x3ec52e._0x5d8f31)+_0x63a20f(_0x3ec52e._0x89ea9b,_0x3ec52e._0x20ba94)]));function _0x63a20f(_0x2f3037,_0x1a618d){return _0x5aaf17(_0x2f3037- -_0x2a842c._0x573ef5,_0x1a618d);}this['schedule'+_0x6e5d6e(0x542,0x6cc)+_0x63a20f(_0x3ec52e._0x7a1ceb,0x3c)]();});}[_0x5338aa(0x485,0x2e4)+_0x33cded(0x369,0x51a)+_0x33cded(0x3bf,0x54b)](_0x6e4f46,_0x35b0de){const _0x3e8382={_0x57813f:0x18,_0xfda3c9:0x2d,_0x3cd241:0xe4,_0xf62554:0xcd,_0x4ca139:0x75,_0x3b093f:0x10d,_0x4d6cec:0x26f,_0x15339c:0x19e,_0x3df9bb:0x2cc,_0x4645d3:0x3d7,_0x3242df:0x41,_0x42d0a8:0xe4},_0x790ea7={'vOgMx':function(_0x5e4b18,_0x3108c7){return _0x5e4b18(_0x3108c7);},'KLZGC':function(_0x4c6404,_0x13c9f0){return _0x4c6404==_0x13c9f0;}},_0x6bf531=this['relaySoc'+'ket'];if(!_0x6bf531||_0x6bf531['readySta'+'te']!==_0x10c370[_0x182362(-0xbb,-_0x3e8382._0x57813f)])return;if(_0x35b0de){_0x6bf531[_0x182362(_0x3e8382._0xfda3c9,-_0x3e8382._0x3cd241)](normalizeBinary(_0x6e4f46));return;}const _0x469e88=_0x790ea7['vOgMx'](normalizeText,_0x6e4f46);if(_0x790ea7[_0x182362(-_0x3e8382._0xf62554,-_0x3e8382._0x4ca139)](_0x469e88,null))return;const _0x2198ab=parsePairingRequestFromError(_0x469e88);_0x2198ab&&this[_0x182362(0x229,_0x3e8382._0x3b093f)+_0x17dbfc(_0x3e8382._0x4d6cec,0x41e)+_0x182362(0x6e,0xad)](_0x2198ab);const _0x5311bc=parsePairResolvedEvent(_0x469e88);function _0x182362(_0x26f474,_0x4401d8){return _0x5338aa(_0x4401d8- -0x295,_0x26f474);}function _0x17dbfc(_0x195eae,_0xbeacfd){return _0x5338aa(_0x195eae- -0x76,_0xbeacfd);}_0x5311bc&&this[_0x182362(0x222,0xda)+_0x17dbfc(_0x3e8382._0x15339c,_0x3e8382._0x3df9bb)+_0x17dbfc(0x3a3,_0x3e8382._0x4645d3)](_0x5311bc[_0x17dbfc(0xc1,_0x3e8382._0x3242df)+'d'],_0x5311bc['decision']),_0x6bf531[_0x182362(-0xe2,-_0x3e8382._0x42d0a8)](_0x469e88);}[_0x33cded(0x3b7,0x3b8)+_0x33cded(0x4a6,0x582)+_0x33cded(0x588,0x708)+_0x33cded(0x7a9,0x5f0)](){const _0x5c5fdf={_0x4b3ee3:0xf6,_0x5854bb:0x2a4,_0x4ad107:0x120,_0x459131:0x209,_0x45303a:0x103,_0x23ba22:0x219,_0x119b19:0x167,_0x298b22:0x20b,_0x1e6473:0x72,_0x2b98ee:0x2d5,_0x5765e4:0x20b,_0x2eb208:0x29,_0x2372e8:0x2cc,_0x7ebf59:0x29b,_0x428ac3:0x3e8,_0x1e0986:0x113},_0x34110e={_0x41d0d2:0x3f0},_0x31c153={};function _0x5397e2(_0x22b699,_0x53af88){return _0x5338aa(_0x53af88- -0x74,_0x22b699);}_0x31c153['FRnnv']=_0x5397e2(_0x5c5fdf._0x4b3ee3,0x1e0);const _0x59ee06=_0x31c153,_0x3ce1a5=this[_0x5397e2(_0x5c5fdf._0x5854bb,_0x5c5fdf._0x4ad107)+'ocket'];if(!_0x3ce1a5||_0x3ce1a5[_0x5a30c3(-0x20c,-0xd5)+'te']!==_0x10c370[_0x5397e2(0x39d,_0x5c5fdf._0x459131)])return;const _0x4cd1bb=[];function _0x5a30c3(_0xbb1cf,_0x82594c){return _0x5338aa(_0x82594c- -_0x34110e._0x41d0d2,_0xbb1cf);}const _0x576a3e=[...this['pendingG'+_0x5a30c3(_0x5c5fdf._0x45303a,0xa3)+_0x5397e2(0x346,0x163)]];this['pendingG'+_0x5a30c3(0x128,0xa3)+_0x5a30c3(-0x152,-_0x5c5fdf._0x23ba22)]=[];for(const _0x4e50eb of _0x576a3e){if(!this[_0x5397e2(0xf0,0x2d5)+_0x5397e2(0xfb,_0x5c5fdf._0x119b19)+_0x5a30c3(-0x3a3,-_0x5c5fdf._0x298b22)]){if(_0x4e50eb[_0x5a30c3(0x1c,-_0x5c5fdf._0x1e6473)]!==_0x59ee06[_0x5a30c3(0xc0,-0xce)]||!isConnectHandshakeRequest(_0x4e50eb['text'])){_0x4cd1bb['push'](_0x4e50eb);continue;}this['gatewayH'+'andshake'+_0x5a30c3(-_0x5c5fdf._0x2b98ee,-_0x5c5fdf._0x5765e4)]=!![];}this[_0x5a30c3(_0x5c5fdf._0x2eb208,0x9)+_0x5397e2(_0x5c5fdf._0x2372e8,_0x5c5fdf._0x7ebf59)](_0x4e50eb);}this['pendingG'+_0x5397e2(_0x5c5fdf._0x428ac3,0x41f)+_0x5397e2(_0x5c5fdf._0x1e0986,0x163)]=_0x4cd1bb;}['sendToGa'+_0x5338aa(0x30f,0x469)](_0x5c20f4){const _0x3b45fd={_0x264ef9:0x58f,_0x1efc09:0x17,_0x2f6c1b:0x1d2,_0x3fea44:0x3ff,_0x285c62:0x406,_0x6d35f4:0x118,_0x5f3d5e:0xa4,_0x381ccc:0x12,_0x54640e:0xc,_0x4b3f4e:0x524,_0x200356:0x259,_0x329f79:0xcc,_0x752a7f:0x3d,_0x5a3918:0x12,_0x52bfd6:0xe9,_0x59f980:0x20a},_0x56a990={_0x4960e8:0x266},_0x3770a6=this['gatewayS'+_0x190a1b(0x357,0x1f9)];if(!_0x3770a6||_0x3770a6[_0x1b113b(0x596,_0x3b45fd._0x264ef9)+'te']!==_0x10c370[_0x190a1b(0x148,_0x3b45fd._0x1efc09)]){this[_0x190a1b(-_0x3b45fd._0x2f6c1b,-0x7d)+_0x1b113b(0x23d,_0x3b45fd._0x3fea44)+_0x1b113b(0x293,_0x3b45fd._0x285c62)+'e'](_0x5c20f4);return;}function _0x190a1b(_0x5584cb,_0x14c137){return _0x5338aa(_0x14c137- -_0x56a990._0x4960e8,_0x5584cb);}function _0x1b113b(_0x198082,_0x177202){return _0x5338aa(_0x177202-0x274,_0x198082);}if(_0x5c20f4[_0x190a1b(-0x6e,_0x3b45fd._0x6d35f4)]==='text'){const _0x32dd59=patchConnectRequestGatewayAuth(_0x5c20f4[_0x190a1b(-_0x3b45fd._0x5f3d5e,-_0x3b45fd._0x381ccc)],readOpenClawInfo());_0x32dd59['injected']&&this[_0x190a1b(-0x1ec,-_0x3b45fd._0x54640e)](_0x1b113b(0x6d7,0x699)+_0x1b113b(_0x3b45fd._0x4b3f4e,0x509)+_0x1b113b(0x5b6,0x6b3)+_0x190a1b(_0x3b45fd._0x200356,_0x3b45fd._0x329f79)+'e=passwo'+'rd');_0x3770a6[_0x1b113b(0x26d,0x425)](_0x32dd59[_0x190a1b(_0x3b45fd._0x752a7f,-_0x3b45fd._0x5a3918)]);return;}_0x3770a6['send'](_0x5c20f4[_0x190a1b(_0x3b45fd._0x52bfd6,_0x3b45fd._0x59f980)]);}['sendGate'+'wayReque'+'st'](_0x27e831,_0x328105){const _0x302ac5={_0x175e0f:0x54b,_0x25e637:0x6da,_0x318b0e:0x233,_0x54518f:0xa5,_0x5db0e0:0x2df,_0x1f21c1:0x37,_0x40aa8f:0x1ea,_0x15be41:0x166},_0x23e613={};_0x23e613['nQjnA']=_0x589c4b(_0x302ac5._0x175e0f,_0x302ac5._0x25e637);const _0x2c09cc=_0x23e613;function _0x54d58b(_0x4ce34c,_0x2bb684){return _0x5338aa(_0x4ce34c- -0x348,_0x2bb684);}function _0x589c4b(_0x5e1a64,_0xfc2684){return _0x5338aa(_0x5e1a64-0x8b,_0xfc2684);}const _0x5da850=JSON['stringif'+'y']({'type':_0x2c09cc[_0x54d58b(-0x122,-_0x302ac5._0x318b0e)],'id':'bridge-'+_0x372cc4(),'method':_0x27e831,'params':_0x328105}),_0x1bb19b={};_0x1bb19b[_0x54d58b(0x36,-_0x302ac5._0x54518f)]=_0x589c4b(_0x302ac5._0x5db0e0,0x27c),_0x1bb19b[_0x589c4b(_0x302ac5._0x5db0e0,0x405)]=_0x5da850,this[_0x54d58b(_0x302ac5._0x1f21c1,-0x10a)+_0x589c4b(_0x302ac5._0x40aa8f,_0x302ac5._0x15be41)+'tewayMes'+_0x589c4b(0x335,0x2ec)](_0x1bb19b);}[_0x5338aa(0x3d5,0x257)+_0x5338aa(0x17c,0x15d)](){const _0x23732d={_0x5077dd:0x569,_0x53626a:0x2ef,_0x4c97c6:0x5b8,_0x1c33ef:0x79c,_0x18b179:0x83,_0x1e2794:0x1c6,_0x31aae1:0xec,_0x5e9b19:0x296,_0x4f0b5c:0x522,_0x38dbc1:0x5cd,_0x329034:0x4a1},_0x4ee939={_0x4d78eb:0x62};function _0x1cca82(_0x4e9a94,_0x2a1c7a){return _0x5338aa(_0x2a1c7a-_0x4ee939._0x4d78eb,_0x4e9a94);}this[_0x454584(_0x23732d._0x5077dd,0x4d1)+_0x1cca82(0x55c,0x4c1)]?.['close'](),this[_0x1cca82(_0x23732d._0x53626a,0x1f6)+_0x454584(_0x23732d._0x4c97c6,_0x23732d._0x1c33ef)]=null;function _0x454584(_0x574225,_0x74f4f9){return _0x5338aa(_0x74f4f9-0x33d,_0x574225);}this[_0x1cca82(_0x23732d._0x18b179,_0x23732d._0x1e2794)+_0x1cca82(_0x23732d._0x31aae1,_0x23732d._0x5e9b19)+'g']=![],this[_0x454584(0x53f,0x686)+'andshake'+_0x454584(0x618,_0x23732d._0x4f0b5c)]=![],this[_0x454584(_0x23732d._0x38dbc1,_0x23732d._0x329034)+_0x454584(0x5cf,0x453)+_0x454584(0x90c,0x802)]=null;}[_0x5338aa(0x3b7,0x369)+_0x5338aa(0x276,0x3b8)+_0x33cded(0x7bc,0x67c)](){const _0x4ba596={_0x4385f5:0x5a5,_0x70327e:0x49a,_0x257872:0x1a4,_0xcf2d93:0x14a,_0x465faa:0x6bc,_0x5efc82:0x3bf,_0x2656f3:0x4b2,_0x57cd3a:0x1d4,_0x256f1b:0xb3,_0x36e0a9:0x646,_0x20adbc:0x76e},_0x2d8a52={_0x33bc41:0x616,_0x2288ad:0x196,_0x506dca:0x4bc},_0x357011={_0x232a2d:0x2fc},_0x5e1657={_0x589b73:0x362},_0x4c5578={_0x4dd3f0:0x12};if(this[_0x3a857b(_0x4ba596._0x4385f5,0x5e3)]||this['reconnec'+_0x54ba4b(0x1cd,-0x8)])return;function _0x3a857b(_0x3f92ae,_0x4049c9){return _0x33cded(_0x3f92ae,_0x4049c9- -_0x4c5578._0x4dd3f0);}function _0x54ba4b(_0x3b1734,_0x25abc4){return _0x33cded(_0x25abc4,_0x3b1734- -_0x5e1657._0x589b73);}const _0x65afa9=this[_0x3a857b(0x2e6,_0x4ba596._0x70327e)]['reconnec'+_0x54ba4b(0x363,0x2ca)+_0x54ba4b(_0x4ba596._0x257872,0x291)]??RECONNECT_BASE_DELAY_MS,_0x5c4e84=this[_0x54ba4b(_0x4ba596._0xcf2d93,0x2bf)]['reconnec'+_0x54ba4b(0xeb,-0x79)+_0x3a857b(0x4ec,_0x4ba596._0x465faa)]??RECONNECT_MAX_DELAY_MS,_0x1c555c=Math[_0x54ba4b(0x238,0x372)](_0x5c4e84,_0x65afa9*Math['max'](0x1,this[_0x3a857b(_0x4ba596._0x5efc82,_0x4ba596._0x2656f3)+'empt']));this[_0x54ba4b(0x199,-0x10)](_0x54ba4b(0x22c,0x16a)+_0x54ba4b(_0x4ba596._0x57cd3a,_0x4ba596._0x256f1b)+_0x3a857b(0x532,_0x4ba596._0x36e0a9)+_0x3a857b(0x3f4,0x47d)+'s='+_0x1c555c),this[_0x3a857b(_0x4ba596._0x20adbc,0x751)+_0x54ba4b(0x1cd,-0xe)]=setTimeout(()=>{function _0x3f670c(_0xd0f301,_0x128969){return _0x54ba4b(_0xd0f301- -_0x357011._0x232a2d,_0x128969);}function _0x31adba(_0x1ab84e,_0x47c3de){return _0x54ba4b(_0x47c3de-0x215,_0x1ab84e);}this[_0x31adba(0x494,_0x2d8a52._0x33bc41)+_0x3f670c(-0x12f,-0x2a3)]=null,void this[_0x3f670c(-_0x2d8a52._0x2288ad,-0x272)+_0x31adba(0x62a,_0x2d8a52._0x506dca)]();},_0x1c555c);}['schedule'+_0x5338aa(0x3a9,0x217)+_0x33cded(0x576,0x469)](){const _0x3f09c6={_0xb063d8:0x497,_0x30b157:0xb6,_0x2d8b52:0x10,_0x8e79c1:0xaa,_0x277ce8:0x143,_0x30a1b7:0x40},_0x451f0b={_0x13b7f7:0x9f,_0x243ed9:0x15a,_0x2571db:0x647,_0x29ea47:0x4b4,_0x397780:0x3c,_0xbcdf3c:0x6c5},_0x146156={_0xf369d2:0x385};if(this[_0x252824(0x470,_0x3f09c6._0xb063d8)]||this['gatewayR'+_0x14bad0(-_0x3f09c6._0x30b157,-_0x3f09c6._0x2d8b52)+'r']||!this[_0x14bad0(-0xc1,_0x3f09c6._0x8e79c1)+'pen']())return;function _0x14bad0(_0x1d8df8,_0x2615e0){return _0x5338aa(_0x1d8df8- -_0x146156._0xf369d2,_0x2615e0);}function _0x252824(_0x15a8f3,_0x19fe2d){return _0x5338aa(_0x15a8f3-0x11c,_0x19fe2d);}const _0x1d7f8a=this['options'][_0x14bad0(0x143,0x31e)+_0x252824(0x346,0x28b)+_0x252824(0x549,0x5ce)]??GATEWAY_RETRY_DELAY_MS;this[_0x14bad0(_0x3f09c6._0x277ce8,-_0x3f09c6._0x30a1b7)+_0x252824(0x3eb,0x2c9)+'r']=setTimeout(()=>{const _0x524334={_0x4c7034:0x22d};this[_0x5c6adf(_0x451f0b._0x13b7f7,0x125)+_0x5c6adf(-_0x451f0b._0x243ed9,-0x10d)+'r']=null;function _0x5c6adf(_0x2f6542,_0x4ac0ff){return _0x252824(_0x2f6542- -0x545,_0x4ac0ff);}function _0x31709d(_0x475a62,_0x4fcc1e){return _0x252824(_0x4fcc1e-_0x524334._0x4c7034,_0x475a62);}this[_0x31709d(_0x451f0b._0x2571db,_0x451f0b._0x29ea47)+_0x5c6adf(-_0x451f0b._0x397780,-0x108)+_0x31709d(0x7fd,_0x451f0b._0xbcdf3c)]();},_0x1d7f8a);}['startHea'+_0x33cded(0x753,0x71d)](){const _0x5a2e1c={_0x3fc497:0x10a,_0x4c1933:0x4dd,_0x35465a:0x397},_0x46219b={_0x37480e:0x2b6,_0xc4be77:0x304,_0x2e4889:0xe1,_0x239354:0x242,_0x46a27e:0x2e1,_0x3fcc6b:0x1f1,_0xbc7ea3:0x309,_0x43807e:0x1e4,_0x1cc7ee:0x610,_0x422223:0xac,_0x19535c:0x4e,_0x3bad6f:0x2e9,_0x36def4:0x18a,_0x32b542:0x109},_0x1dab03={_0x524740:0xcb};this[_0x216440(-_0x5a2e1c._0x3fc497,-0x49)+_0x10f409(0x595,0x50e)]();function _0x216440(_0x175a84,_0x21c8b9){return _0x5338aa(_0x175a84- -0x21a,_0x21c8b9);}function _0x10f409(_0x46cd43,_0x4b1dbb){return _0x5338aa(_0x46cd43-_0x1dab03._0x524740,_0x4b1dbb);}this['heartbea'+'tTimer']=setInterval(()=>{const _0x35423d=this['relaySoc'+_0x30ab91(-_0x46219b._0x37480e,-_0x46219b._0xc4be77)];if(!_0x35423d||_0x35423d[_0x30ab91(-_0x46219b._0x2e4889,0xb6)+'te']!==_0x10c370[_0x5fa15(_0x46219b._0x239354,_0x46219b._0x46a27e)])return;const _0x56b40e=this[_0x30ab91(-_0x46219b._0x3fcc6b,-0x260)]['heartbea'+_0x5fa15(_0x46219b._0xbc7ea3,0x23d)+'Ms']??HEARTBEAT_TIMEOUT_MS;function _0x30ab91(_0x33b61c,_0x410a7a){return _0x216440(_0x33b61c- -0x1e2,_0x410a7a);}function _0x5fa15(_0x4200f4,_0x337e48){return _0x216440(_0x4200f4-0x1df,_0x337e48);}if(Date['now']()-this[_0x5fa15(0x28c,_0x46219b._0x43807e)+_0x5fa15(0x44f,_0x46219b._0x1cc7ee)+_0x30ab91(0x31,-_0x46219b._0x422223)]>_0x56b40e){this['log']('relay\x20he'+_0x30ab91(_0x46219b._0x19535c,0xd9)+_0x5fa15(0x3aa,_0x46219b._0x3bad6f)+'t'),_0x35423d[_0x5fa15(0x368,0x1b7)+'e']();return;}_0x35423d[_0x5fa15(_0x46219b._0x36def4,_0x46219b._0x32b542)]();},this['options']['heartbea'+_0x10f409(0x37e,_0x5a2e1c._0x4c1933)+_0x10f409(_0x5a2e1c._0x35465a,0x485)]??HEARTBEAT_INTERVAL_MS);}['stopHear'+_0x33cded(0x5f2,0x76b)](){const _0x5676e8={_0x344ea2:0x29e,_0x273731:0x159,_0x312b54:0x137,_0x40086d:0x29e,_0x4d845d:0x1b5,_0x38496e:0x113,_0x4334e5:0x39},_0x1cc372={_0x1eb861:0x255};function _0x5a81aa(_0x5b4344,_0x4b7f0d){return _0x5338aa(_0x5b4344- -0x3e7,_0x4b7f0d);}const _0xe50aec={'JvAEw':function(_0x35e92d,_0x141bbb){return _0x35e92d(_0x141bbb);}};function _0x2568d6(_0x240398,_0x1d680f){return _0x5338aa(_0x1d680f- -_0x1cc372._0x1eb861,_0x240398);}this[_0x5a81aa(-_0x5676e8._0x344ea2,-0x104)+_0x5a81aa(-_0x5676e8._0x273731,-_0x5676e8._0x312b54)]&&(_0xe50aec['JvAEw'](clearInterval,this[_0x2568d6(-0x27f,-0x10c)+_0x2568d6(-0xbb,0x39)]),this[_0x5a81aa(-_0x5676e8._0x40086d,-_0x5676e8._0x4d845d)+_0x2568d6(-_0x5676e8._0x38496e,_0x5676e8._0x4334e5)]=null);}['pushPend'+'ingGatew'+_0x33cded(0x2ca,0x433)+'e'](_0x4e01f2){const _0x199b73={_0xedfaa:0x2e3,_0xec967:0x66c,_0x3a7d13:0x5ad,_0x2ad933:0x6c9,_0x1f451f:0xaf,_0x22351b:0x296,_0x2d71a3:0x7d,_0x44d83e:0x5c,_0x28b405:0x268,_0x49c70a:0x43d},_0x5c8941={_0x40f090:0x6b7};function _0x5b3c7a(_0x8a0e02,_0x425dd5){return _0x33cded(_0x8a0e02,_0x425dd5- -0x6b);}function _0x1487b1(_0x42ae6e,_0x2062d2){return _0x33cded(_0x2062d2,_0x42ae6e- -_0x5c8941._0x40f090);}this['pendingG'+_0x5b3c7a(0x881,0x6c9)+_0x5b3c7a(_0x199b73._0xedfaa,0x40d)][_0x5b3c7a(0x815,_0x199b73._0xec967)]>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x1487b1(-0x7a,0x168)+_0x5b3c7a(_0x199b73._0x3a7d13,_0x199b73._0x2ad933)+_0x1487b1(-0x23f,-_0x199b73._0x1f451f)][_0x1487b1(-0x2b0,-_0x199b73._0x22351b)](),this['pendingG'+_0x1487b1(_0x199b73._0x2d71a3,-_0x199b73._0x44d83e)+'ssages'][_0x1487b1(-_0x199b73._0x28b405,-_0x199b73._0x49c70a)](_0x4e01f2);}[_0x5338aa(0x284,0x403)+_0x33cded(0x660,0x54a)+_0x5338aa(0x1a7,0x40)](_0x171566,_0x231b18){const _0x1e1cba={_0x55c2c3:0x4be,_0x178598:0xe5,_0x2988e4:0x3f,_0x4ced82:0xa8,_0x38fb6b:0x21d,_0xbac0f8:0x10e,_0x312f22:0x87,_0x124db3:0x670,_0x22da40:0x752,_0x30a766:0x1f2,_0x5141ad:0x14d,_0x4051bf:0xb4,_0x476b64:0x61},_0x544a3c={_0x49466c:0x1bd},_0x171f2d={_0x5077ab:0x3ae},_0x1185ba=Date[_0x104799(_0x1e1cba._0x55c2c3,0x57f)](),_0x1f333a=new Map(this[_0x3720ee(-_0x1e1cba._0x178598,-0x1d1)][_0x104799(0x4e4,0x431)+_0x3720ee(-_0x1e1cba._0x2988e4,-0x8a)][_0x104799(0x665,0x847)](_0x484888=>[_0x484888['id'],{..._0x484888}])),_0x28fcb9=_0x1f333a[_0x3720ee(-0x177,-0x1ac)](_0x171566)??{'id':_0x171566,'label':_0x231b18,'state':'connecte'+'d','lastSeenMs':_0x1185ba};_0x28fcb9[_0x3720ee(-_0x1e1cba._0x4ced82,0x8e)]=_0x231b18,_0x28fcb9[_0x3720ee(_0x1e1cba._0x38fb6b,0x129)]=_0x3720ee(-_0x1e1cba._0xbac0f8,-_0x1e1cba._0x312f22)+'d';function _0x3720ee(_0x48ccb5,_0x20bd44){return _0x5338aa(_0x20bd44- -_0x171f2d._0x5077ab,_0x48ccb5);}_0x28fcb9[_0x104799(_0x1e1cba._0x124db3,_0x1e1cba._0x22da40)+'Ms']=_0x1185ba,_0x1f333a[_0x3720ee(-_0x1e1cba._0x30a766,-_0x1e1cba._0x5141ad)](_0x171566,_0x28fcb9);const _0x187520=[..._0x1f333a['values']()][_0x104799(0x509,0x392)]((_0x167746,_0x4c0e20)=>_0x4c0e20[_0x3720ee(0x28c,0x105)+'Ms']-_0x167746['lastSeen'+'Ms'])['slice'](0x0,MAX_DEVICE_DETAILS);function _0x104799(_0x9a0419,_0x13c11f){return _0x5338aa(_0x9a0419-_0x544a3c._0x49466c,_0x13c11f);}const _0x49d0b4={};_0x49d0b4['connecte'+'dDevices']=_0x187520,this[_0x3720ee(_0x1e1cba._0x4051bf,0x5a)+_0x3720ee(_0x1e1cba._0x476b64,0xcb)](_0x49d0b4);}[_0x5338aa(0x4b8,0x50f)+_0x5338aa(0x394,0x317)+'t'](){const _0x2e32a2={_0x4d811e:0x28f,_0x4f512d:0x64,_0x838a15:0xee,_0xb4f5ff:0x49},_0x3eb60f={_0x2e63d0:0x308},_0x4b1bf7={_0x3418d4:0x6b6};function _0xcaa11a(_0x207e67,_0x6e46f9){return _0x33cded(_0x207e67,_0x6e46f9- -_0x4b1bf7._0x3418d4);}function _0x33cc76(_0x111f62,_0x309ed9){return _0x33cded(_0x309ed9,_0x111f62- -_0x3eb60f._0x2e63d0);}this[_0x33cc76(0x3a1,_0x2e32a2._0x4d811e)+_0xcaa11a(0x1c5,_0x2e32a2._0x4f512d)]({'connectedDevices':this['snapshot'][_0xcaa11a(-0xcc,-_0x2e32a2._0x838a15)+_0xcaa11a(_0x2e32a2._0xb4f5ff,-0xf1)]['map'](_0xe971d8=>({..._0xe971d8,'state':_0x33cc76(0x1cb,0x2fa)}))});}['addPendi'+'ngPairRe'+_0x5338aa(0x342,0x2f1)](_0x4283bb){const _0x5af58b={_0x1666bc:0x209,_0x5cf515:0x2f1,_0x5f3ed7:0x35,_0x2118f9:0x160,_0x3a8c5f:0x2a9,_0x1ed67d:0x2ae,_0x41e300:0x10b,_0x21dff6:0x362,_0x47cc3b:0x326,_0xf6453f:0x255,_0x15ed54:0x129,_0x4c8c17:0x218,_0x12ac91:0xb9,_0x302acc:0x14f,_0x385dfd:0x21,_0x272022:0x4,_0x48b8e5:0x39e,_0x109e4a:0x2b8,_0x4f2aea:0xd,_0x4d8299:0x3cb},_0x28192e={_0x398adb:0x1a8},_0x455174={_0x1faa6d:0xe2};if(this[_0x1cd4fe(_0x5af58b._0x1666bc,0xfb)][_0x1cd4fe(0x200,0x10b)+'airReque'+'sts'][_0x1cd4fe(0x206,_0x5af58b._0x5cf515)](_0x974e25=>_0x974e25['requestI'+'d']===_0x4283bb[_0x10ad0e(-0x71,-0x104)+'d']))return;const _0x2da652=[...this[_0x10ad0e(_0x5af58b._0x5f3ed7,-_0x5af58b._0x2118f9)][_0x10ad0e(0x45,0x1a)+_0x10ad0e(_0x5af58b._0x3a8c5f,_0x5af58b._0x1ed67d)+_0x10ad0e(0x25e,0x221)],_0x4283bb][_0x10ad0e(0xd9,0x2e)](-MAX_PENDING_PAIR_REQUESTS);function _0x1cd4fe(_0x11d2a6,_0x2d0a74){return _0x5338aa(_0x2d0a74- -_0x455174._0x1faa6d,_0x11d2a6);}const _0xa2a477={};_0xa2a477[_0x1cd4fe(0x2e8,_0x5af58b._0x41e300)+_0x10ad0e(0x2a9,_0x5af58b._0x21dff6)+'sts']=_0x2da652,this[_0x1cd4fe(0x4b2,_0x5af58b._0x47cc3b)+'apshot'](_0xa2a477);function _0x10ad0e(_0x154f68,_0x2c80a0){return _0x5338aa(_0x154f68- -_0x28192e._0x398adb,_0x2c80a0);}this[_0x1cd4fe(_0x5af58b._0xf6453f,_0x5af58b._0x15ed54)]['onPendin'+_0x10ad0e(0x2d3,_0x5af58b._0x4c8c17)+'uest']?.(_0x4283bb),this[_0x1cd4fe(0xf7,0x178)](_0x1cd4fe(_0x5af58b._0x12ac91,_0x5af58b._0x302acc)+_0x10ad0e(-_0x5af58b._0x385dfd,_0x5af58b._0x272022)+_0x1cd4fe(_0x5af58b._0x48b8e5,0x209)+_0x10ad0e(0x1b1,_0x5af58b._0x109e4a)+_0x4283bb[_0x1cd4fe(-0x138,0x55)+'d']+('\x20deviceI'+'d=')+(_0x4283bb[_0x10ad0e(_0x5af58b._0x4f2aea,0x37)]||_0x1cd4fe(_0x5af58b._0x4d8299,0x24d)+'>'));}[_0x33cded(0x62c,0x610)+'RequestR'+'esolved'](_0x3f2ce5,_0x39fd19){const _0x4a4d2c={_0x2dcbba:0xce,_0x4530e8:0x1bb,_0x5d23a0:0xbe,_0x56f728:0x1ad,_0x5112f9:0x1fd,_0x6e217e:0x262,_0x2765ac:0xec,_0x4892dc:0x1a6,_0x317927:0x56,_0x21e527:0x61d,_0x350dee:0x46f,_0x4597cb:0x3a1,_0x201431:0x406,_0x227fb4:0x4a8,_0x5af4df:0xf4,_0x4bb378:0x146},_0x3b8bfc={_0x1395b3:0x2ab};function _0x40e6a7(_0x48781f,_0x4259ce){return _0x5338aa(_0x48781f-0x215,_0x4259ce);}const _0x515380=this[_0x239797(-_0x4a4d2c._0x2dcbba,-_0x4a4d2c._0x4530e8)][_0x239797(-_0x4a4d2c._0x5d23a0,-_0x4a4d2c._0x56f728)+'airReque'+'sts'][_0x239797(_0x4a4d2c._0x5112f9,_0x4a4d2c._0x6e217e)](_0xa77323=>_0xa77323[_0x40e6a7(0x34c,0x32e)+'d']===_0x3f2ce5?{..._0xa77323,'status':_0x39fd19===_0x239797(-0xe4,-0x8f)||_0x39fd19===_0x239797(0x141,0x69)?_0x39fd19:_0xa77323[_0x239797(0x114,0x2ab)]}:_0xa77323);function _0x239797(_0x938093,_0x54f0a4){return _0x5338aa(_0x938093- -_0x3b8bfc._0x1395b3,_0x54f0a4);}const _0x33c266={};_0x33c266[_0x239797(-0xbe,_0x4a4d2c._0x2765ac)+_0x239797(_0x4a4d2c._0x4892dc,_0x4a4d2c._0x317927)+'sts']=_0x515380,this[_0x40e6a7(_0x4a4d2c._0x21e527,0x60d)+'apshot'](_0x33c266),this[_0x40e6a7(_0x4a4d2c._0x350dee,_0x4a4d2c._0x4597cb)](_0x40e6a7(0x446,_0x4a4d2c._0x201431)+_0x40e6a7(_0x4a4d2c._0x227fb4,0x629)+'olved\x20re'+_0x239797(-_0x4a4d2c._0x5af4df,-_0x4a4d2c._0x4bb378)+_0x3f2ce5+(_0x40e6a7(0x3c5,0x201)+'n=')+_0x39fd19);}['updateSn'+_0x5338aa(0x479,0x415)](_0x1eaed8){const _0x208adc={_0x1b2474:0x1ab,_0xc8d27d:0x126,_0x179460:0x1a1,_0x3720d6:0x1b0,_0x23b29b:0x125,_0x3bc07a:0x5e,_0x3dc31f:0xf0};Object[_0x174494(0x1ad,_0x208adc._0x1b2474)](this[_0xc49a26(-0xca,-0x253)],_0x1eaed8,{'lastUpdatedMs':Date[_0xc49a26(0x5a,-_0x208adc._0xc8d27d)]()});function _0x174494(_0x330046,_0x37f30c){return _0x33cded(_0x37f30c,_0x330046- -0x30b);}function _0xc49a26(_0x540b31,_0x1b0c35){return _0x33cded(_0x1b0c35,_0x540b31- -0x548);}this[_0x174494(_0x208adc._0x179460,_0x208adc._0x3720d6)][_0xc49a26(_0x208adc._0x23b29b,0x24b)]?.(this[_0xc49a26(-0xb1,-_0x208adc._0x3bc07a)+_0xc49a26(_0x208adc._0x3dc31f,-0x34)]());}['log'](_0x21187f){const _0x41dc63={_0x42a7e7:0x15d,_0x3887ea:0x14},_0x5c3a76={_0x2c376d:0x498};function _0x1ccd40(_0x400c2a,_0x586826){return _0x33cded(_0x400c2a,_0x586826- -_0x5c3a76._0x2c376d);}function _0x4db1d0(_0x18e9ac,_0x66d386){return _0x33cded(_0x66d386,_0x18e9ac-0x7d);}this[_0x1ccd40(_0x41dc63._0x42a7e7,_0x41dc63._0x3887ea)][_0x1ccd40(0x17c,0x21f)]?.(_0x21187f);}['isRelayO'+_0x33cded(0x379,0x43f)](){const _0x484666={_0x1cf010:0x3c};function _0x49e37c(_0x78a6b0,_0x42b5a1){return _0x5338aa(_0x78a6b0-0xee,_0x42b5a1);}function _0x2f21e0(_0xc02053,_0x563353){return _0x5338aa(_0x563353- -_0x484666._0x1cf010,_0xc02053);}return this[_0x49e37c(0x3a6,0x4f4)+_0x49e37c(0x234,0x71)]?.[_0x49e37c(0x409,0x295)+'te']===_0x10c370['OPEN'];}[_0x5338aa(0x418,0x578)+_0x5338aa(0x1f0,0x32a)](){const _0x4affe3={_0x1f59ea:0x2e0,_0x5577a9:0x3e4,_0x3af016:0x467,_0xd52170:0x50e,_0x2a9ca2:0x113},_0x1c4f5f={_0x3fae8d:0x14c};function _0x5c23a0(_0x2214d0,_0x351a77){return _0x5338aa(_0x351a77- -0x1d9,_0x2214d0);}function _0x173f35(_0x548dc1,_0x386380){return _0x5338aa(_0x548dc1-_0x1c4f5f._0x3fae8d,_0x386380);}return this[_0x173f35(_0x4affe3._0x1f59ea,_0x4affe3._0x5577a9)+'ocket']?.[_0x173f35(_0x4affe3._0x3af016,_0x4affe3._0xd52170)+'te']===_0x10c370[_0x5c23a0(-_0x4affe3._0x2a9ca2,0xa4)];}[_0x33cded(0x56a,0x3b6)+_0x5338aa(0x1d4,0x2e9)](){const _0x142fdc={_0x3c3f6a:0x60,_0x2e207a:0x1d4,_0x17b231:0x285,_0x47dc6c:0x38e,_0x22c4c8:0x51,_0x124d3e:0x130,_0x5b37b7:0x28b,_0x3f1d85:0x66,_0x5a9b42:0x28b,_0x461e74:0x2ff,_0x60749f:0x92},_0x3ad5bd={_0x224cbd:0x462},_0x2ed46a={_0x4c7af2:0x23d};function _0x40d8d6(_0x16ed57,_0xaf51ed){return _0x5338aa(_0x16ed57- -_0x2ed46a._0x4c7af2,_0xaf51ed);}this[_0x40d8d6(-0x12d,-0x117)+'tbeat']();this[_0x232e39(-0x11f,_0x142fdc._0x3c3f6a)+_0x232e39(-0x1f4,-_0x142fdc._0x2e207a)]&&(clearTimeout(this[_0x40d8d6(_0x142fdc._0x17b231,_0x142fdc._0x47dc6c)+_0x40d8d6(_0x142fdc._0x22c4c8,-_0x142fdc._0x124d3e)]),this['reconnec'+_0x40d8d6(_0x142fdc._0x22c4c8,0x42)]=null);function _0x232e39(_0x3e31c6,_0x50e3f1){return _0x5338aa(_0x50e3f1- -_0x3ad5bd._0x224cbd,_0x3e31c6);}this[_0x40d8d6(_0x142fdc._0x5b37b7,0x39b)+_0x232e39(0x22,-0x193)+'r']&&(clearTimeout(this[_0x232e39(-0x122,_0x142fdc._0x3f1d85)+'etryTime'+'r']),this[_0x40d8d6(_0x142fdc._0x5a9b42,_0x142fdc._0x461e74)+_0x40d8d6(_0x142fdc._0x60749f,0x248)+'r']=null);}[_0x33cded(0x220,0x3ce)+'ince'](_0x10aca8){const _0x4a3417={_0x7bf957:0x1e,_0x38d318:0x2aa,_0x303c3a:0x241},_0x5497d5={_0x1d88e1:0x595};function _0x2e4ace(_0x2331ed,_0x47ca9d){return _0x33cded(_0x47ca9d,_0x2331ed- -_0x5497d5._0x1d88e1);}function _0x3e9d1a(_0x51e0f8,_0x4705a0){return _0x33cded(_0x51e0f8,_0x4705a0- -0x361);}return _0x10aca8==null?null:Math[_0x2e4ace(-0x121,_0x4a3417._0x7bf957)](0x0,Date[_0x3e9d1a(_0x4a3417._0x38d318,_0x4a3417._0x303c3a)]()-_0x10aca8);}};function shouldRecycleGatewayForFreshClient(_0x34534a,_0x2bdcd2,_0x44b434,_0x17e765){return _0x44b434&&_0x2bdcd2>0x0&&(_0x34534a===0x0||_0x17e765);}function patchConnectRequestGatewayAuth(_0x180fb2,_0x18dce7){const _0x363c39={_0x4fb8a2:0x13d,_0x2cac6:0x51,_0x4d34f8:0x35,_0x633e65:0x174,_0x4a6c26:0xee,_0x212d32:0xb6,_0x3af051:0x86,_0x398491:0x3cd,_0x464266:0xa,_0x103797:0xd4,_0x1ba730:0x21,_0x283b2c:0x176,_0x1ca452:0x311,_0x479a8f:0x235,_0x5f29d6:0x13,_0x1307b7:0x112,_0x1a5c60:0x11a,_0x1c7dd5:0x29,_0xcc3732:0x224,_0x50d0d9:0x91,_0x7accfe:0x29f,_0x3094f5:0x82,_0x46b303:0xb8,_0x4760f8:0x46,_0x1c8dbb:0x16,_0x47a67e:0x10f},_0x1526ba={_0x31406c:0x363},_0x4b49fe={};_0x4b49fe[_0x33eb81(_0x363c39._0x4fb8a2,_0x363c39._0x2cac6)]=function(_0x22ff4f,_0x2a5a56){return _0x22ff4f!==_0x2a5a56;};function _0x33eb81(_0x1b23ec,_0x2f659a){return _0x5338aa(_0x2f659a- -_0x1526ba._0x31406c,_0x1b23ec);}_0x4b49fe[_0x47cd40(_0x363c39._0x4d34f8,-0xd1)]=function(_0x6c9a66,_0x1b0a45){return _0x6c9a66!==_0x1b0a45;};function _0x47cd40(_0x4ce5fc,_0x1aebf6){return _0x5338aa(_0x1aebf6- -0x35d,_0x4ce5fc);}_0x4b49fe[_0x33eb81(-0x22b,-_0x363c39._0x633e65)]=_0x47cd40(_0x363c39._0x4a6c26,-_0x363c39._0x212d32),_0x4b49fe['nybfk']=function(_0x3757b2,_0xd4528f){return _0x3757b2===_0xd4528f;};const _0x328ac1=_0x4b49fe;if(_0x18dce7[_0x47cd40(0x136,_0x363c39._0x3af051)]!==_0x47cd40(-_0x363c39._0x398491,-0x224)||!_0x18dce7[_0x33eb81(-0x3a5,-0x22a)]){const _0x3e424e={};return _0x3e424e[_0x33eb81(-0x73,-0x10f)]=_0x180fb2,_0x3e424e['injected']=![],_0x3e424e;}try{const _0xe34108=JSON[_0x47cd40(_0x363c39._0x464266,-_0x363c39._0x103797)](_0x180fb2);if(_0x328ac1[_0x33eb81(_0x363c39._0x1ba730,_0x363c39._0x2cac6)](_0xe34108[_0x47cd40(-_0x363c39._0x283b2c,-0x153)],_0x33eb81(0x209,0x15d))||_0x328ac1['mwgXi'](_0xe34108[_0x47cd40(-0x50,-0x38)],_0x33eb81(0x7f,-0xe0))&&_0xe34108['method']!==_0x33eb81(-_0x363c39._0x1ca452,-_0x363c39._0x479a8f)+_0x47cd40(0xd9,-0xe1)){const _0x4b7865={};return _0x4b7865[_0x33eb81(-_0x363c39._0x5f29d6,-0x10f)]=_0x180fb2,_0x4b7865[_0x33eb81(-0x108,-_0x363c39._0x1307b7)]=![],_0x4b7865;}const _0x3f31a7=_0xe34108[_0x47cd40(0x222,_0x363c39._0x1a5c60)]&&typeof _0xe34108[_0x47cd40(0x296,_0x363c39._0x1a5c60)]===_0x47cd40(0x19,-_0x363c39._0x212d32)?{..._0xe34108['params']}:{},_0x3b0ff3=_0x3f31a7[_0x33eb81(0x69,-0xbe)]&&typeof _0x3f31a7['auth']===_0x328ac1['dPOxV']?{..._0x3f31a7['auth']}:{},_0x1f45b6=_0x328ac1[_0x33eb81(-0xc1,-_0x363c39._0x1c7dd5)](typeof _0x3b0ff3[_0x47cd40(-0x16d,-_0x363c39._0xcc3732)],_0x33eb81(-_0x363c39._0x50d0d9,-0xf6))?_0x3b0ff3[_0x47cd40(-_0x363c39._0x7accfe,-_0x363c39._0xcc3732)][_0x33eb81(0x129,0xa6)]():'';if(_0x1f45b6){const _0x180246={};return _0x180246[_0x47cd40(-0x103,-0x109)]=_0x180fb2,_0x180246['injected']=![],_0x180246;}_0x3b0ff3['password']=_0x18dce7['password'],_0x3f31a7[_0x47cd40(-_0x363c39._0x3094f5,-_0x363c39._0x46b303)]=_0x3b0ff3;const _0x3fdab8={..._0xe34108};return _0x3fdab8[_0x33eb81(-_0x363c39._0x4760f8,0x114)]=_0x3f31a7,{'text':JSON['stringif'+'y'](_0x3fdab8),'injected':!![]};}catch{const _0x4a109d={};return _0x4a109d[_0x33eb81(-_0x363c39._0x1c8dbb,-_0x363c39._0x47a67e)]=_0x180fb2,_0x4a109d['injected']=![],_0x4a109d;}}function buildRelayWsUrl(_0xdd8dc7){const _0x58db14={_0x247890:0x1b5,_0xf0909b:0x28,_0x9c84db:0x3d,_0x2ec104:0x2d5,_0x375069:0x292,_0x51229c:0x72,_0x267ed8:0x50,_0x50052a:0x249,_0x1d920e:0x5e,_0x716a4:0x3b,_0x3b7711:0x1b5,_0x194b78:0x263,_0x54c6fd:0x1c8,_0x1ad006:0x113,_0x5c0af6:0x125,_0x42b604:0x1d2,_0x522505:0x58,_0x10345b:0xc4,_0x2c6588:0x1f6,_0x707152:0xc0},_0x27864c={_0x398d8b:0x3d6},_0x316b2b={_0x6e088d:0x2b9},_0x5b45cb={};_0x5b45cb[_0x5f2ba7(0x397,_0x58db14._0x247890)]=_0x5f2ba7(_0x58db14._0xf0909b,0x19e);const _0x3c5f91=_0x5b45cb;function _0x5f2ba7(_0x244842,_0x41e549){return _0x5338aa(_0x41e549- -_0x316b2b._0x6e088d,_0x244842);}const _0x446746=new URL(_0xdd8dc7[_0x3e4dd5(-0x35,_0x58db14._0x9c84db)]);(!_0x446746['pathname']||_0x446746[_0x3e4dd5(-_0x58db14._0x2ec104,-_0x58db14._0x375069)]==='/')&&(_0x446746[_0x3e4dd5(-0x281,-0x292)]=_0x5f2ba7(-_0x58db14._0x51229c,-_0x58db14._0x267ed8));function _0x3e4dd5(_0x5e9553,_0x5de24b){return _0x5338aa(_0x5de24b- -_0x27864c._0x398d8b,_0x5e9553);}return _0x446746[_0x3e4dd5(0x88,-0x125)+'rams']['set'](_0x3e4dd5(-0x2cf,-_0x58db14._0x50052a)+'d',_0xdd8dc7[_0x3e4dd5(-0x3e2,-0x249)+'d']),_0x446746['searchPa'+_0x5f2ba7(-0x20c,-0x146)][_0x5f2ba7(-_0x58db14._0x1d920e,-0x58)](_0x5f2ba7(_0x58db14._0x716a4,0x21c),_0x3c5f91[_0x5f2ba7(0x114,_0x58db14._0x3b7711)]),_0x446746[_0x5f2ba7(-0x1bc,-0x8)+_0x3e4dd5(-0x422,-_0x58db14._0x194b78)]['set'](_0x3e4dd5(_0x58db14._0x54c6fd,-0x7),_0xdd8dc7[_0x5f2ba7(_0x58db14._0x1ad006,0x3a)+'Id']),_0x446746[_0x3e4dd5(0x83,-_0x58db14._0x5c0af6)+'rams'][_0x5f2ba7(-_0x58db14._0x42b604,-_0x58db14._0x522505)](_0x5f2ba7(-0x5e,0xd4),_0xdd8dc7[_0x3e4dd5(-0x26b,-_0x58db14._0x10345b)+'ret']),_0x446746[_0x5f2ba7(_0x58db14._0x2c6588,_0x58db14._0x707152)]();}function redactRelayWsUrl(_0x1e0bb6){const _0x3c3ee7={_0x2295f3:0x103,_0x4ad172:0x121,_0x86d4db:0x523,_0x494610:0x288,_0x5032ff:0x4ed,_0x57b1ea:0x47f,_0x3b92ae:0x5ff,_0x7befd:0x3bb,_0x388863:0x4d3,_0x4c076e:0x5eb};function _0x592920(_0x4e8566,_0xf2ff15){return _0x33cded(_0x4e8566,_0xf2ff15- -0x2f);}const _0x4d5fba={};_0x4d5fba[_0x592920(0x51b,0x43d)]=_0x305bc2(-_0x3c3ee7._0x2295f3,-_0x3c3ee7._0x4ad172)+'d>';const _0x528b71=_0x4d5fba,_0x23ce34=new URL(_0x1e0bb6);_0x23ce34[_0x592920(0x5c7,_0x3c3ee7._0x86d4db)+_0x305bc2(-0x175,-_0x3c3ee7._0x494610)][_0x592920(0x588,_0x3c3ee7._0x5032ff)](_0x592920(_0x3c3ee7._0x57b1ea,_0x3c3ee7._0x3b92ae))&&_0x23ce34['searchPa'+'rams'][_0x592920(_0x3c3ee7._0x7befd,_0x3c3ee7._0x388863)](_0x305bc2(-0x139,-0x6e),_0x528b71[_0x592920(0x360,0x43d)]);function _0x305bc2(_0x4e8f39,_0x4653d8){return _0x33cded(_0x4e8f39,_0x4653d8- -0x69c);}return _0x23ce34[_0x592920(0x655,_0x3c3ee7._0x4c076e)]();}function normalizeText(_0x20b7ce){const _0x525245={_0xdb2e56:0x6dc,_0x4b48d1:0x605,_0x5679f2:0xcb,_0x4f8a99:0xe3,_0x257c6d:0x605,_0x4d9890:0x57},_0x52ecbf={_0x3382f9:0x28c},_0x4b4857={};_0x4b4857[_0x3cb993(0x360,0x3b7)]=_0x5666af(0xa9,-0x8f),_0x4b4857['ybVzp']=_0x3cb993(_0x525245._0xdb2e56,0x529);const _0x3f5f3a=_0x4b4857;if(typeof _0x20b7ce===_0x3f5f3a['lUgdw'])return _0x20b7ce;if(Buffer[_0x5666af(-0x256,-0x14d)](_0x20b7ce))return _0x20b7ce[_0x3cb993(0x7bb,_0x525245._0x4b48d1)](_0x3f5f3a[_0x5666af(-_0x525245._0x5679f2,0x57)]);function _0x3cb993(_0x2f0798,_0x12b583){return _0x5338aa(_0x12b583-_0x52ecbf._0x3382f9,_0x2f0798);}if(Array['isArray'](_0x20b7ce))return Buffer[_0x5666af(0x208,_0x525245._0x4f8a99)](_0x20b7ce)[_0x3cb993(0x598,_0x525245._0x257c6d)](_0x3f5f3a[_0x5666af(0x14f,_0x525245._0x4d9890)]);if(_0x20b7ce instanceof ArrayBuffer)return Buffer[_0x3cb993(0x5ab,0x511)](_0x20b7ce)[_0x3cb993(0x799,0x605)](_0x3f5f3a[_0x3cb993(0x417,0x5df)]);function _0x5666af(_0x2f5cc7,_0x2370e7){return _0x5338aa(_0x2370e7- -0x2fc,_0x2f5cc7);}return null;}function normalizeBinary(_0x20ee24){const _0x26d530={_0xec6ad2:0x521,_0x9d61c5:0x562,_0x43970c:0x6c,_0x23e4a5:0x21e,_0x171d7c:0x3e},_0x51758f={_0x269f02:0x650},_0x3b4d8b={_0x370d60:0x91},_0x59f43d={};_0x59f43d[_0x30cab4(0x4a1,_0x26d530._0xec6ad2)]=_0x30cab4(_0x26d530._0x9d61c5,0x47d);const _0x3e7f5d=_0x59f43d;function _0x30cab4(_0x56a39a,_0x220dec){return _0x33cded(_0x56a39a,_0x220dec- -_0x3b4d8b._0x370d60);}if(Buffer[_0x5f09f5(-_0x26d530._0x43970c,-0x200)](_0x20ee24))return _0x20ee24;if(typeof _0x20ee24===_0x3e7f5d['NsBft'])return Buffer['from'](_0x20ee24,_0x5f09f5(-0x5d,-0x112));if(Array[_0x5f09f5(-0x66,-_0x26d530._0x23e4a5)](_0x20ee24))return Buffer[_0x5f09f5(-0x66,0x30)](_0x20ee24);function _0x5f09f5(_0x4c4550,_0x5002a0){return _0x33cded(_0x4c4550,_0x5002a0- -_0x51758f._0x269f02);}return Buffer[_0x5f09f5(-_0x26d530._0x171d7c,-0x12a)](_0x20ee24);}function readRecentCliLogs(_0x2cba23){const _0x19cf01={_0x18367c:0x2f6,_0x1fffcf:0x1e9,_0x4a8b90:0x1f8,_0x3fc610:0x2,_0x28b7b4:0x12d,_0x3ef7ac:0x237},_0x4339fe={_0x58a834:0x322},_0x5a5534={};function _0x5c4e9d(_0x5ceb22,_0x3b2836){return _0x33cded(_0x3b2836,_0x5ceb22- -_0x4339fe._0x58a834);}_0x5a5534[_0x38b901(0x2af,_0x19cf01._0x18367c)]=function(_0x5d3871,_0x15dcd9){return _0x5d3871-_0x15dcd9;};const _0x198f79=_0x5a5534,{logPath:_0x2aaf56,errorLogPath:_0x44ceda}=getServicePaths();function _0x38b901(_0x3de330,_0x1fec69){return _0x33cded(_0x1fec69,_0x3de330- -0x3aa);}const _0x2735d7=clampLines(_0x2cba23?.[_0x38b901(_0x19cf01._0x1fffcf,0x2d6)]??0xc8),_0x1eb73c=_0x2cba23?.[_0x38b901(0x119,0x2a)]??null,_0x49997a=_0x1eb73c!=null?_0x198f79['pWzwN'](Date[_0x38b901(_0x19cf01._0x4a8b90,0x350)](),_0x1eb73c):null,_0x402b1b=[_0x2aaf56];_0x2cba23?.['includeE'+_0x38b901(0x76,_0x19cf01._0x3fc610)]&&_0x402b1b[_0x5c4e9d(_0x19cf01._0x28b7b4,0xf4)](_0x44ceda);const _0xd679d8=_0x402b1b['flatMap'](_0x3abd9d=>readLogFile(_0x3abd9d)),_0x32e184=_0x49997a==null?_0xd679d8:_0xd679d8[_0x38b901(_0x19cf01._0x3ef7ac,0x1e4)](_0x4acea9=>_0x4acea9['ts']!=null&&_0x4acea9['ts']>=_0x49997a);return _0x32e184['slice'](-_0x2735d7)['map'](_0xa76558=>_0xa76558[_0x38b901(0x2a5,0x1c4)]);}async function buildDoctorReport(){const _0x4909f6={_0x2dc348:0x19f,_0x169114:0x4c1,_0x3cf5e9:0x429,_0x45919f:0xd6,_0x56317f:0x1ae,_0x4c2995:0xdc,_0xf10dd1:0x25,_0x2d7e6a:0x464,_0x6c5d7c:0x43e,_0x4f8308:0x21,_0x1fc96b:0x60e,_0x66feb9:0x24d,_0xa5a4c:0x2e8,_0x1d64aa:0x3cc},_0x412607={_0x44a697:0x16},_0x56e9b6={_0x5c8086:0x2d7},_0x1e7dae={'lDnaO':function(_0x1cadca){return _0x1cadca();}},_0x4aa5b2=_0x1e7dae['lDnaO'](readPairingConfig),_0x809392=getServiceStatus();function _0x333384(_0x4cfbbb,_0x5decd2){return _0x5338aa(_0x5decd2- -_0x56e9b6._0x5c8086,_0x4cfbbb);}function _0x35b688(_0x1e6761,_0x2531d5){return _0x5338aa(_0x2531d5-_0x412607._0x44a697,_0x1e6761);}const _0x5b7a48=readOpenClawInfo(),_0x272dcd=resolveGatewayUrl(),_0xac1d98=await checkGatewayReachable(_0x272dcd);return{'paired':Boolean(_0x4aa5b2),'gatewayId':_0x4aa5b2?.['gatewayI'+'d']??null,'serverUrl':_0x4aa5b2?.[_0x333384(0x1be,_0x4909f6._0x2dc348)+'l']??null,'relayUrl':_0x4aa5b2?.[_0x35b688(_0x4909f6._0x169114,_0x4909f6._0x3cf5e9)]??null,'instanceId':_0x4aa5b2?.[_0x333384(-_0x4909f6._0x45919f,0x1c)+'Id']??null,'serviceInstalled':_0x809392[_0x35b688(0xa,_0x4909f6._0x2dc348)+'d'],'serviceRunning':_0x809392[_0x35b688(0xff,_0x4909f6._0x56317f)],'serviceMethod':_0x809392['method'],'servicePath':_0x809392[_0x333384(_0x4909f6._0x4c2995,-_0x4909f6._0xf10dd1)+_0x35b688(_0x4909f6._0x2d7e6a,_0x4909f6._0x6c5d7c)],'logPath':_0x809392[_0x333384(0x19e,_0x4909f6._0x4f8308)],'errorLogPath':_0x809392[_0x35b688(_0x4909f6._0x1fc96b,0x4b8)+'Path'],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x5b7a48['configFo'+_0x35b688(_0x4909f6._0x66feb9,_0x4909f6._0xa5a4c)],'openclawAuthMode':_0x5b7a48[_0x35b688(0x462,0x3f9)],'openclawTokenFound':Boolean(_0x5b7a48[_0x35b688(_0x4909f6._0x1d64aa,0x3a3)]),'openclawPasswordFound':Boolean(_0x5b7a48[_0x35b688(0x2d9,0x14f)]),'localGatewayUrl':_0x272dcd,'localGatewayReachable':_0xac1d98};}async function ensurePairPrerequisites(){const _0xa08556={_0x3debf1:0x589,_0x241b1e:0x1d2,_0x1595de:0xa5,_0x227594:0x287,_0xd4d4c4:0x2ef,_0x47399a:0x7a,_0x4c63a3:0x3e,_0x4b2768:0x37b,_0x18a3f1:0x28f,_0xbed923:0x1d6,_0x286b3d:0x249,_0x36035b:0x645,_0x2ccaf5:0x5bc,_0x20cff7:0x6be,_0x3334bd:0x53c,_0x1cdd6b:0x85,_0x1f575f:0x2d6,_0x10c154:0xe4,_0x4c0b6d:0x2e3,_0x2736ba:0x84,_0x42885a:0xcf,_0x360ead:0x536},_0x2133bc={_0x228327:0x14e},_0x2ec29d={};_0x2ec29d['vQPqO']=function(_0x301436,_0x151264){return _0x301436>_0x151264;};const _0x3d4fca=_0x2ec29d;function _0x8da798(_0x296a38,_0x1492f2){return _0x33cded(_0x1492f2,_0x296a38- -0x4bd);}const _0x42ab9c=await buildDoctorReport(),_0x113051=listPairPrerequisiteFailures(_0x42ab9c);function _0x190c60(_0x2492f4,_0x3fb8b5){return _0x33cded(_0x2492f4,_0x3fb8b5- -_0x2133bc._0x228327);}if(_0x3d4fca[_0x190c60(0x421,0x399)](_0x113051[_0x190c60(0x404,_0xa08556._0x3debf1)],0x0))throw new Error([_0x8da798(_0xa08556._0x241b1e,_0xa08556._0x1595de)+_0x190c60(0x165,_0xa08556._0x227594)+_0x190c60(_0xa08556._0xd4d4c4,0x2ec)+_0x8da798(_0xa08556._0x47399a,_0xa08556._0x4c63a3)+_0x190c60(0x4c5,_0xa08556._0x4b2768)+_0x8da798(-0x35,-0x1df)+_0x190c60(_0xa08556._0x18a3f1,0x317)+_0x8da798(_0xa08556._0xbed923,0x325)+'tes\x20are\x20'+_0x190c60(0x14b,0x2ed)+'y.',..._0x113051['map'](_0x1b5ca4=>'-\x20'+_0x1b5ca4),_0x8da798(_0xa08556._0x286b3d,0x1d0)+_0x190c60(0x610,0x5df)+_0x190c60(_0xa08556._0x36035b,_0xa08556._0x2ccaf5)+_0x190c60(_0xa08556._0x20cff7,_0xa08556._0x3334bd)+_0x190c60(0x74f,0x602)+'r\x20use\x20`c'+_0x8da798(-0x62,_0xa08556._0x1cdd6b)+_0x190c60(0x377,0x3ec)+_0x190c60(0x255,_0xa08556._0x1f575f)+_0x8da798(_0xa08556._0x10c154,0x2c5)+_0x190c60(0x3fa,0x2cd)+'onally\x20w'+_0x8da798(0x125,_0xa08556._0x4c0b6d)+_0x8da798(_0xa08556._0x2736ba,-_0xa08556._0x42885a)+_0x8da798(-0x101,-0xe2)+_0x190c60(_0xa08556._0x360ead,0x43a)]['join']('\x0a'));return _0x42ab9c;}function _0x33cded(_0x27eaf3,_0x38bf43){return _0x3b9b(_0x38bf43-0x336,_0x27eaf3);}function listPairPrerequisiteFailures(_0x37a0b0){const _0x480a84={_0x3ad173:0x11e,_0x45cb9a:0x73,_0x332112:0x20a,_0x9a4740:0x13c,_0x22f969:0xf8,_0x1ca0a3:0x15,_0x4a862f:0x17e,_0x215489:0x2eb,_0x455843:0x17b,_0x3ee5e4:0x105,_0x76f4c0:0x17,_0x39a02a:0xc8,_0x5cd3d7:0x125,_0x57e3a5:0x61,_0x3e4cb9:0x95,_0x303048:0x6d,_0x502b63:0x52,_0x3b0a60:0x23d,_0x1b0ddb:0x1cb,_0x4c1ee2:0x1d5,_0x10f7a9:0x181,_0x4ef995:0x17,_0x16bb0c:0x193,_0x2c904e:0x20a,_0x413c18:0xd1,_0x1d9d21:0x148,_0x48b7be:0x122,_0x4eaecf:0x13e,_0x28d11d:0x1b9,_0x2e5ce8:0x157,_0x27f259:0x5e,_0x38d6f4:0xaa,_0x51de5f:0x4f,_0x23b0a5:0x20c,_0x2fa67a:0x28d,_0xc01735:0x5a,_0x161c25:0x12,_0x12f0dd:0x190,_0x20394f:0x27,_0xc436d2:0x80,_0x1876f2:0x306,_0x3e6dad:0x1b4,_0x2b75f8:0x17,_0x28b49f:0x13f,_0x3e4355:0x13c,_0x5aa6b1:0xbd,_0x4a0758:0x225,_0x479302:0x13f,_0x49a4e7:0x300},_0x109de7={_0x1bbc8e:0x3b8};function _0x26a344(_0x42b0b6,_0x146f9d){return _0x5338aa(_0x146f9d- -0x2ed,_0x42b0b6);}const _0xf09924={};_0xf09924[_0x26a344(-0x2a,0x61)]=function(_0x324981,_0x5bb315){return _0x324981==_0x5bb315;},_0xf09924[_0x26a344(0x16c,0x118)]=function(_0x1749cf,_0x17bc2a){return _0x1749cf===_0x17bc2a;};const _0xac114=_0xf09924,_0x40818d=[];!_0x37a0b0[_0x26a344(_0x480a84._0x3ad173,0x6d)+_0x42f9b9(_0x480a84._0x45cb9a,0x117)+_0x26a344(-0x77,-0x1b)]&&_0x40818d[_0x42f9b9(-0xd5,-_0x480a84._0x332112)](_0x26a344(0x238,_0x480a84._0x9a4740)+_0x26a344(_0x480a84._0x22f969,0x8b)+_0x26a344(-0xea,_0x480a84._0x1ca0a3)+_0x26a344(-0x74,-_0x480a84._0x4a862f)+'der\x20'+formatOpenClawConfigLocations()+'.');_0x37a0b0[_0x26a344(0x239,0x6d)+_0x42f9b9(-_0x480a84._0x215489,-_0x480a84._0x455843)+'nd']&&_0x37a0b0[_0x42f9b9(0x87,-0x5e)+_0x42f9b9(-_0x480a84._0x3ee5e4,-_0x480a84._0x76f4c0)+_0x42f9b9(0x7e,_0x480a84._0x39a02a)]&&_0xac114[_0x26a344(-_0x480a84._0x5cd3d7,_0x480a84._0x57e3a5)](_0x37a0b0[_0x26a344(-_0x480a84._0x3e4cb9,_0x480a84._0x303048)+'AuthMode'],null)&&_0x40818d[_0x42f9b9(-0x32c,-_0x480a84._0x332112)]('OpenClaw'+_0x42f9b9(-0xa2,0xe)+'h\x20gatewa'+_0x26a344(-_0x480a84._0x502b63,-0x8e)+_0x26a344(-0x1d,-0xa9)+_0x26a344(-_0x480a84._0x3b0a60,-_0x480a84._0x1b0ddb)+_0x42f9b9(0xd6,0x42)+'\x20but\x20gat'+'eway.aut'+'h.mode\x20i'+'s\x20unset.');function _0x42f9b9(_0x1dceb4,_0x138052){return _0x5338aa(_0x138052- -_0x109de7._0x1bbc8e,_0x1dceb4);}return!_0x37a0b0[_0x42f9b9(-_0x480a84._0x4c1ee2,-0x5e)+_0x42f9b9(0x5b,-0x17b)+'nd']&&!_0x37a0b0[_0x42f9b9(_0x480a84._0x10f7a9,-0x5e)+_0x42f9b9(-0x92,-_0x480a84._0x4ef995)+_0x26a344(0x1b4,_0x480a84._0x16bb0c)]&&_0x40818d[_0x42f9b9(-0x389,-_0x480a84._0x2c904e)](_0x26a344(0x20c,0x13c)+'\x20gateway'+_0x42f9b9(0x1ab,_0x480a84._0x413c18)+_0x42f9b9(-0x1d8,-0x204)+_0x26a344(_0x480a84._0x1d9d21,_0x480a84._0x48b7be)+_0x26a344(_0x480a84._0x4eaecf,0x1a8)+_0x42f9b9(-_0x480a84._0x28d11d,-_0x480a84._0x22f969)),_0x37a0b0[_0x42f9b9(_0x480a84._0x2e5ce8,-_0x480a84._0x27f259)+'AuthMode']===_0x26a344(0x284,0xa0)&&!_0x37a0b0[_0x42f9b9(-_0x480a84._0x38d6f4,-0x5e)+_0x26a344(_0x480a84._0x51de5f,-0xb0)+'nd']&&_0x40818d[_0x42f9b9(-_0x480a84._0x23b0a5,-_0x480a84._0x332112)](_0x26a344(0x24c,0x13c)+_0x42f9b9(-0x2f9,-0x1c5)+_0x42f9b9(-_0x480a84._0x2fa67a,-0x246)+_0x26a344(_0x480a84._0xc01735,_0x480a84._0x161c25)+'g.'),_0xac114[_0x42f9b9(_0x480a84._0x12f0dd,0x4d)](_0x37a0b0[_0x26a344(_0x480a84._0x20394f,_0x480a84._0x303048)+_0x42f9b9(-_0x480a84._0xc436d2,0xc6)],_0x26a344(-_0x480a84._0x1876f2,-_0x480a84._0x3e6dad))&&!_0x37a0b0[_0x26a344(-0x8f,0x6d)+_0x42f9b9(0x7,-_0x480a84._0x2b75f8)+'Found']&&_0x40818d[_0x26a344(-0x23d,-_0x480a84._0x28b49f)](_0x26a344(0x2fb,_0x480a84._0x3e4355)+_0x42f9b9(-_0x480a84._0x5aa6b1,-0x1c5)+_0x42f9b9(-0xd1,-0x1a0)+'d\x20is\x20mis'+_0x42f9b9(-0x26c,-0x233)),!_0x37a0b0['localGat'+_0x26a344(-0x16,-0x16)+_0x42f9b9(-0x2f0,-_0x480a84._0x4a0758)]&&_0x40818d[_0x26a344(-0x29,-_0x480a84._0x479302)]('Local\x20Op'+'enClaw\x20G'+_0x26a344(-_0x480a84._0x49a4e7,-0x191)+'s\x20not\x20re'+_0x42f9b9(0x14a,0x12)+'at\x20'+_0x37a0b0[_0x26a344(0x1d,-0xad)+'ewayUrl']+'.'),_0x40818d;}function formatOpenClawConfigLocations(){const _0x1518cf={_0x1a79fc:0x704,_0x5eb952:0x390,_0x30b173:0x473},_0x400547={_0x297b9d:0x1b1},_0x2fb9ea={_0x13cbe:0x5ed},_0x4f610f={_0x5cd5ef:0x12f},_0x3a0f0f={_0x4bad19:0xc6};function _0x4d1eaa(_0x1a4d63,_0x20038e){return _0x33cded(_0x1a4d63,_0x20038e- -_0x3a0f0f._0x4bad19);}const _0x2b452b=new Set();function _0x50c1a3(_0x2ef8ff,_0x2dc1e3){return _0x33cded(_0x2dc1e3,_0x2ef8ff- -_0x4f610f._0x5cd5ef);}return[_0xec9ee5(),'/root'][_0x4d1eaa(_0x1518cf._0x1a79fc,0x683)](_0x3251ef=>_0x3251ef[_0x50c1a3(0x57b,0x6ab)]()+(_0x4d1eaa(0x179,0x333)+'aw'))[_0x50c1a3(0x4b2,0x439)](_0x3222b6=>_0x3222b6!=='/.opencl'+'aw')['filter'](_0x4b9d38=>{if(_0x2b452b['has'](_0x4b9d38))return![];function _0x531314(_0xc191f8,_0x3b0dde){return _0x50c1a3(_0xc191f8- -_0x2fb9ea._0x13cbe,_0x3b0dde);}return _0x2b452b[_0x531314(-0xa1,-_0x400547._0x297b9d)](_0x4b9d38),!![];})[_0x50c1a3(_0x1518cf._0x5eb952,0x261)](_0x50c1a3(0x5af,_0x1518cf._0x30b173));}function readLogFile(_0x33ee50){const _0x4b4c92={_0xd20852:0x32e,_0x3e7386:0x3d1,_0x2a1b19:0xfd,_0x2bfe29:0x114},_0x31a9d6={_0x113ff6:0x394};function _0x23b144(_0xfa5ef3,_0x408a4a){return _0x5338aa(_0xfa5ef3- -_0x31a9d6._0x113ff6,_0x408a4a);}function _0x455eba(_0x4a5d22,_0x40e6d9){return _0x5338aa(_0x40e6d9- -0xa1,_0x4a5d22);}try{const _0x5ea79f=_0x36a53f(_0x33ee50,_0x23b144(-0xf7,-0x1d4));return _0x5ea79f[_0x455eba(_0x4b4c92._0xd20852,_0x4b4c92._0x3e7386)](/\r?\n/)[_0x455eba(_0x4b4c92._0x2a1b19,0x29f)](Boolean)[_0x23b144(_0x4b4c92._0x2bfe29,-0x86)](_0x4cd7f3=>({'raw':_0x4cd7f3,'ts':parseTimestamp(_0x4cd7f3)}));}catch{return[];}}function parseTimestamp(_0x2a2c73){const _0xf749ec={_0x26d7ab:0x9d},_0x2df12d=_0x2a2c73[_0x43481b(-0x26,-_0xf749ec._0x26d7ab)](/^\[(\d{13})\]\s/);function _0x43481b(_0x257aa8,_0x1fb517){return _0x33cded(_0x1fb517,_0x257aa8- -0x710);}if(!_0x2df12d)return null;const _0x1a5623=Number(_0x2df12d[0x1]);return Number['isFinite'](_0x1a5623)?_0x1a5623:null;}function clampLines(_0x423b33){const _0x605784={_0x5a8315:0x269,_0x25004e:0x458},_0x7bb0e7={_0x4a6c5e:0x96};function _0x5a1f2(_0x920f92,_0x4a87cf){return _0x5338aa(_0x4a87cf-0x2b2,_0x920f92);}function _0x4b02b9(_0xf9b3bf,_0x2be0b7){return _0x5338aa(_0xf9b3bf-_0x7bb0e7._0x4a6c5e,_0x2be0b7);}if(!Number[_0x5a1f2(0x3c1,0x551)](_0x423b33))return 0xc8;return Math[_0x4b02b9(_0x605784._0x5a8315,0x2ef)](0x1,Math['min'](0x7d0,Math[_0x5a1f2(0x4d3,_0x605784._0x25004e)](_0x423b33)));}async function checkGatewayReachable(_0xaf5377){const _0x200b6d={_0x46997b:0x633,_0x3676ff:0x6a6,_0x76aa98:0x511,_0x12c583:0x28e,_0x11751c:0x152,_0x3d0429:0x70},_0x258266={_0xee6c60:0x2f9,_0x4e80ca:0x8ef,_0x179720:0x488},_0x2edb2b={_0x166879:0x16c},_0x25ba04={_0x37d01e:0x3e2},_0x56fe85={};function _0x381d7a(_0x1eab32,_0x5275f5){return _0x5338aa(_0x1eab32- -_0x25ba04._0x37d01e,_0x5275f5);}_0x56fe85[_0x238f4b(_0x200b6d._0x46997b,_0x200b6d._0x3676ff)]='connect',_0x56fe85[_0x381d7a(-0x1a8,0x30)]=_0x238f4b(_0x200b6d._0x76aa98,0x366);const _0xfb9460=_0x56fe85;function _0x238f4b(_0x2e6d96,_0x13cab0){return _0x5338aa(_0x2e6d96-_0x2edb2b._0x166879,_0x13cab0);}try{const _0x49c953=new URL(_0xaf5377),_0x5d05d3=_0x49c953[_0x238f4b(0x308,_0x200b6d._0x12c583)]||_0x238f4b(0x52c,0x6a1)+'1',_0x9e6afc=_0x49c953['port']?Number(_0x49c953[_0x238f4b(0x61d,0x534)]):_0x49c953['protocol']===_0x381d7a(-_0x200b6d._0x11751c,-_0x200b6d._0x3d0429)?0x1bb:0x50;return await new Promise((_0x3fff63,_0x29f93d)=>{const _0x4272e3={_0x7d5c97:0x43,_0x4c8058:0x7d1},_0x291b09={_0x1279c8:0x446},_0x2d9093={_0xf5660:0x69a},_0x516608=new Socket();_0x516608[_0x1ab14a(_0x258266._0xee6c60,0x441)+'ut'](0x384);function _0x593ad7(_0x762544,_0x3a2974){return _0x381d7a(_0x3a2974-_0x2d9093._0xf5660,_0x762544);}function _0x1ab14a(_0x1306fd,_0x160e4a){return _0x381d7a(_0x160e4a-_0x291b09._0x1279c8,_0x1306fd);}_0x516608['once'](_0xfb9460[_0x593ad7(_0x258266._0x4e80ca,0x77f)],()=>{_0x516608['destroy'](),_0x3fff63();}),_0x516608['once'](_0xfb9460['LekDR'],()=>{_0x516608[_0x220ca2(0xba,-_0x4272e3._0x7d5c97)]();function _0x5e3485(_0x29faef,_0x37a1de){return _0x1ab14a(_0x29faef,_0x37a1de-0x25b);}function _0x220ca2(_0x324fc0,_0xdf9453){return _0x1ab14a(_0xdf9453,_0x324fc0- -0x258);}_0x29f93d(new Error(_0x5e3485(_0x4272e3._0x4c8058,0x664)));}),_0x516608[_0x593ad7(0x4b8,_0x258266._0x179720)]('error',_0x4a4537=>{_0x516608['destroy'](),_0x29f93d(_0x4a4537);}),_0x516608['connect'](_0x9e6afc,_0x5d05d3);}),!![];}catch{return![];}}function parseLookbackToMs(_0x551711){const _0x753b77={_0x72633d:0x45e,_0x4bb87b:0x3bb,_0x3a5f68:0x614,_0x201256:0x45c,_0x106f8a:0x17e,_0x1d1fde:0x236},_0x387b59={_0x4be04e:0x2ef},_0x48867a={_0x1ab915:0x46f},_0x1d23dc=_0x551711?.[_0x3d4ef6(_0x753b77._0x72633d,_0x753b77._0x4bb87b)]();function _0x376f68(_0x43bf96,_0x3a53e1){return _0x33cded(_0x43bf96,_0x3a53e1- -_0x48867a._0x1ab915);}if(!_0x1d23dc)return null;const _0x1c940a=_0x1d23dc['match'](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x1c940a)throw new Error(_0x3d4ef6(_0x753b77._0x3a5f68,0x44b)+_0x376f68(0x19b,0xbf)+_0x3d4ef6(0x4be,_0x753b77._0x201256)+_0x1d23dc+(_0x376f68(0x5a,0x232)+'alues\x20li'+'ke\x2030s,\x20'+_0x3d4ef6(_0x753b77._0x106f8a,0x1f0)+'or\x201d.'));const _0x38d2db=Number(_0x1c940a[0x1]),_0x243f13=_0x1c940a[0x2][_0x376f68(0x33e,_0x753b77._0x1d1fde)+_0x376f68(0x3a5,0x1dc)](),_0x1d0866=_0x243f13==='ms'?0x1:_0x243f13==='s'?0x3e8:_0x243f13==='m'?0xea60:_0x243f13==='h'?0x36ee80:0x5265c00;function _0x3d4ef6(_0x17d31e,_0xfe719d){return _0x33cded(_0x17d31e,_0xfe719d- -_0x387b59._0x4be04e);}return _0x38d2db*_0x1d0866;}import{readFileSync as _0x18f906}from'fs';import{dirname as _0x42ba1b,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x104bd7={_0x258194:0x118,_0x4a390d:0x1ba,_0x22005a:0x2da,_0x56c2c2:0x3ac,_0x5d6a30:0x13,_0x404727:0x18e,_0x207283:0x1a,_0x188a70:0x19},_0x5245d5={_0x19bf7e:0x45},_0x209ea4={'rJvuq':function(_0x2df969,_0x1abf69){return _0x2df969(_0x1abf69);},'IeSFo':'../packa'+'ge.json','GreCz':'utf8'},_0x2e8417=_0x42ba1b(_0x209ea4['rJvuq'](fileURLToPath,import.meta.url)),_0xd700a8=resolve(_0x2e8417,_0x209ea4[_0x1b79ab(_0x104bd7._0x258194,_0x104bd7._0x4a390d)]);function _0x1b79ab(_0x26721f,_0x5cc8da){return _0x5338aa(_0x5cc8da-_0x5245d5._0x19bf7e,_0x26721f);}const _0x4a5e12=_0x18f906(_0xd700a8,_0x209ea4[_0x1b79ab(_0x104bd7._0x22005a,_0x104bd7._0x56c2c2)]);function _0x2f037d(_0x2eb309,_0x349dd5){return _0x5338aa(_0x2eb309- -0x29c,_0x349dd5);}const _0x3ce752=JSON[_0x2f037d(-_0x104bd7._0x5d6a30,_0x104bd7._0x404727)](_0x4a5e12);return _0x3ce752[_0x1b79ab(0x489,0x33b)]??_0x2f037d(_0x104bd7._0x207283,_0x104bd7._0x188a70);}function buildPairingJson(_0x585d34,_0x5ae55b,_0x4db04b,_0x5f3b45){const _0x18e2d9={_0x5636b9:0x3ea,_0x5c4d11:0x28c,_0x314764:0x375,_0x45784b:0x29b,_0x5eae28:0x4b6,_0x425683:0x428,_0x1d1107:0x4de,_0x1e7605:0x530,_0x1d3a50:0x52b,_0x238936:0x4c3,_0x3f11c3:0x3fb,_0x255336:0x52a,_0xacbfc4:0x479,_0x2aa8fd:0x28,_0xb6ace0:0x200,_0x1e8ade:0x23a,_0x530a0c:0x195,_0x3f14c1:0x290,_0x4e0c0e:0x49b,_0x2814ac:0x318,_0x41a04e:0x2db,_0x1b7cc2:0x442,_0x92eff4:0x4fe,_0x2f26fd:0x2b9,_0xe77f72:0x2cd,_0x1e18c1:0x52b},_0x520f94={_0x2c4a7d:0x219};function _0x3b06ba(_0x5b2547,_0x5413bc){return _0x33cded(_0x5b2547,_0x5413bc- -_0x520f94._0x2c4a7d);}const _0x2e3448={};_0x2e3448[_0x5e37d5(_0x18e2d9._0x5636b9,_0x18e2d9._0x5c4d11)+'d']=_0x4db04b['installe'+'d'],_0x2e3448['running']=_0x4db04b[_0x5e37d5(_0x18e2d9._0x314764,_0x18e2d9._0x45784b)],_0x2e3448[_0x5e37d5(0x3a0,0x428)]=_0x4db04b[_0x5e37d5(_0x18e2d9._0x5eae28,_0x18e2d9._0x425683)],_0x2e3448[_0x5e37d5(_0x18e2d9._0x1d1107,0x3b5)+_0x5e37d5(_0x18e2d9._0x1e7605,0x52b)]=_0x4db04b['serviceP'+_0x5e37d5(0x5a7,_0x18e2d9._0x1d3a50)],_0x2e3448[_0x3b06ba(_0x18e2d9._0x238936,0x380)]=_0x4db04b[_0x5e37d5(0x2e9,_0x18e2d9._0x3f11c3)],_0x2e3448[_0x3b06ba(0x6c8,_0x18e2d9._0x255336)+_0x5e37d5(0x3c3,0x479)]=_0x4db04b[_0x3b06ba(0x6b7,0x52a)+_0x5e37d5(0x3d6,_0x18e2d9._0xacbfc4)],_0x2e3448['pid']=_0x4db04b[_0x3b06ba(_0x18e2d9._0x2aa8fd,_0x18e2d9._0xb6ace0)];const _0x3373b8={};_0x3373b8['ok']=!![],_0x3373b8[_0x5e37d5(0x240,0x3d8)]=_0x585d34['action'],_0x3373b8['message']=_0x5f3b45,_0x3373b8['gatewayI'+'d']=_0x585d34[_0x5e37d5(_0x18e2d9._0x1e8ade,0x318)][_0x5e37d5(_0x18e2d9._0x530a0c,_0x18e2d9._0x3f14c1)+'d'],_0x3373b8[_0x3b06ba(0x327,_0x18e2d9._0x4e0c0e)]=_0x585d34[_0x5e37d5(0x15b,_0x18e2d9._0x2814ac)]['relayUrl'],_0x3373b8['serverUr'+'l']=_0x585d34[_0x5e37d5(_0x18e2d9._0x41a04e,_0x18e2d9._0x2814ac)][_0x3b06ba(_0x18e2d9._0x1b7cc2,_0x18e2d9._0x92eff4)+'l'],_0x3373b8['instance'+'Id']=_0x585d34[_0x5e37d5(0x385,0x318)][_0x5e37d5(0x242,0x3f6)+'Id'],_0x3373b8['accessCo'+'de']=_0x585d34[_0x5e37d5(0x30e,_0x18e2d9._0x2f26fd)+'de'],_0x3373b8[_0x3b06ba(0x26c,0x23e)+'deExpire'+_0x3b06ba(0x4bd,0x408)]=_0x585d34['accessCo'+_0x5e37d5(0x308,_0x18e2d9._0xe77f72)+'sAt'];function _0x5e37d5(_0x365e6e,_0x23d8d8){return _0x33cded(_0x365e6e,_0x23d8d8- -0x19e);}return _0x3373b8[_0x5e37d5(0x3d4,0x511)+_0x5e37d5(0x57d,_0x18e2d9._0x1e18c1)]=_0x5ae55b,_0x3373b8[_0x3b06ba(0x3ed,0x30e)]=_0x2e3448,_0x3373b8;}import{mkdirSync as _0x51276e,writeFileSync as _0x319ac8}from'fs';import{dirname as _0x428ed7,isAbsolute,join as _0x313058,resolve as _0x4e1d94}from'path';import _0x5801b1 from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x35492b,_0x5aa86c){const _0x39ae36={_0x3097e0:0x512,_0x800b8c:0x3b0,_0x57def9:0x609,_0x3d69fe:0x557,_0xe0ad9d:0x3da,_0x28481a:0x609,_0x1158bb:0x2dd,_0x51761b:0x2be,_0xaedc34:0x2fc,_0x56155e:0x468,_0x38abb:0x39f,_0x1b340f:0x269},_0x3a7caa={_0x299b7e:0xaf},_0x4b4304={'DoUvi':function(_0x459a03,_0x26d5bd,_0x2e9645){return _0x459a03(_0x26d5bd,_0x2e9645);}},_0x3b908e=_0x4b4304[_0x7829d(0x46d,_0x39ae36._0x3097e0)](resolveQrOutputPath,_0x35492b,_0x5aa86c),_0x242cfb={};_0x242cfb[_0x7829d(0x2a2,_0x39ae36._0x800b8c)+'e']=!![],_0x51276e(_0x428ed7(_0x3b908e),_0x242cfb);const _0x370e1e={};function _0x7829d(_0x14d654,_0x10749a){return _0x33cded(_0x14d654,_0x10749a- -_0x3a7caa._0x299b7e);}_0x370e1e[_0x5686d6(0x2a7,0x324)]=_0x7829d(_0x39ae36._0x57def9,_0x39ae36._0x3d69fe)+'g',_0x370e1e[_0x7829d(_0x39ae36._0xe0ad9d,0x3d5)+_0x5686d6(_0x39ae36._0x28481a,0x58d)+_0x7829d(_0x39ae36._0x1158bb,0x343)]='M',_0x370e1e['margin']=0x1,_0x370e1e['width']=0x2d0;const _0x537b05=await _0x5801b1['toDataUR'+'L'](_0x35492b[_0x5686d6(_0x39ae36._0x51761b,_0x39ae36._0xaedc34)+'d'],_0x370e1e),_0x10afc1=_0x537b05['replace'](/^data:image\/png;base64,/,'');_0x319ac8(_0x3b908e,Buffer[_0x5686d6(_0x39ae36._0x56155e,_0x39ae36._0x38abb)](_0x10afc1,_0x5686d6(0x356,_0x39ae36._0x1b340f)));function _0x5686d6(_0x8e7302,_0x20a397){return _0x33cded(_0x8e7302,_0x20a397- -0x187);}return _0x3b908e;}function resolveQrOutputPath(_0x2a0f46,_0x2afecb){const _0x2620fa={_0x2a377a:0x110,_0x345bfb:0xc4},_0x4401e={_0x817eb:0x21c},_0x32bf48={'qgZRG':function(_0xf8048,_0x95376f){return _0xf8048(_0x95376f);},'vxOBT':function(_0x5950c9,_0x4f31be){return _0x5950c9(_0x4f31be);}};function _0x598512(_0x513c8a,_0x4557a2){return _0x5338aa(_0x4557a2- -_0x4401e._0x817eb,_0x513c8a);}const _0x55d324=_0x2afecb?.['trim']();function _0x125b9c(_0xdaa20d,_0xa6c1e6){return _0x5338aa(_0xa6c1e6- -0x2a,_0xdaa20d);}if(_0x55d324)return _0x32bf48['qgZRG'](isAbsolute,_0x55d324)?_0x55d324:_0x32bf48[_0x125b9c(0x2b4,0x105)](_0x4e1d94,_0x55d324);return _0x313058(DEFAULT_QR_DIR,_0x2a0f46[_0x125b9c(_0x2620fa._0x2a377a,0x1eb)]['gatewayI'+'d']+_0x598512(_0x2620fa._0x345bfb,0x20));}function decidePairServiceAction(_0x3465f0,_0x5d43eb){const _0xcca25e={_0x549ad0:0x1d,_0x44b9b5:0x3c3,_0x2622e6:0x3ce,_0x397133:0x2f,_0x4d3a8b:0x1d3},_0x4f2414={_0x8b62e2:0xf9},_0x317925={_0x4a01db:0x154};function _0x3afefa(_0x490d4a,_0x2aa02c){return _0x5338aa(_0x490d4a- -_0x317925._0x4a01db,_0x2aa02c);}if(!_0x5d43eb[_0x1ed0a1(0x383,0x282)+'d'])return'install';if(!_0x5d43eb[_0x3afefa(0x44,0xed)])return _0x3afefa(_0xcca25e._0x549ad0,0x1ae);if(_0x3465f0[_0x1ed0a1(_0xcca25e._0x44b9b5,_0xcca25e._0x2622e6)]===_0x1ed0a1(0x56e,0x5c2)+'ed')return _0x3afefa(0x1d,_0xcca25e._0x397133);function _0x1ed0a1(_0x48f5e9,_0x253603){return _0x5338aa(_0x253603-_0x4f2414._0x8b62e2,_0x48f5e9);}return _0x3afefa(0x2e7,_0xcca25e._0x4d3a8b);}async function main(){const _0x2f54bd={_0x3760de:0x316,_0x2be1e1:0x23f,_0x299057:0x1b5,_0x19b6e9:0x2a6,_0x5543dc:0x20,_0x54dc37:0x162,_0x200431:0x428,_0x1ec880:0x2fd,_0x1af0f3:0x3d1,_0x3b9ee2:0x125,_0x505b8d:0x27f,_0xa0fd41:0x272,_0x50b554:0x102,_0x5893cd:0x115,_0x58db5e:0x364,_0x1992cd:0x2cf,_0x5f2fe2:0x64,_0x1e06ed:0x35c,_0x52e9fa:0x28c,_0x1f136e:0x45,_0x432d5e:0x26f,_0x36fb8f:0x134,_0x29c44b:0x2a0,_0x2cb66a:0x443,_0xc904a1:0x296,_0x4ca3a7:0x2dd,_0x3a0f14:0x298,_0x6d2383:0x3cb,_0x239d0d:0x2,_0x3c39ba:0x244,_0x3579a6:0x2e0,_0x27f007:0x385,_0x27fcc5:0x7c,_0x6c4a29:0x2e,_0x553c53:0x14d,_0x5734b7:0xb2,_0x272daf:0x306,_0x102731:0x349,_0x457612:0x436,_0x3b2dba:0x299,_0x3ea81e:0x334,_0x28cd29:0xce,_0x13ff61:0x1fa,_0x802a61:0x1e5,_0x26d30a:0xb0,_0x1eff75:0x128,_0x59996b:0x394,_0x591d41:0x16a,_0x16fc46:0x580,_0x4053eb:0x305,_0x710d0a:0x117,_0x1f48e5:0xee,_0x500460:0x247,_0x46013b:0xbc,_0x5cb466:0x73,_0x587f1c:0x5c,_0x1e0bdc:0x82,_0x2006a4:0x52,_0x56a96c:0x28d,_0x1a54f6:0x1b2,_0xd770f1:0x10f,_0x408129:0x24c,_0x442be5:0x3e5,_0x313556:0x6c,_0x1f4893:0x1bf,_0x479f1e:0x126,_0x168004:0x9c,_0x3e892f:0x290,_0x1e9845:0x1b0,_0x431ee4:0x34b,_0x12f2c7:0xcd,_0x27a7a9:0x1e8,_0x40aafc:0x53,_0x294e11:0x1db,_0x367a70:0x4e1,_0x2a10c2:0x1f2,_0x5e6496:0x32b,_0x36f7ce:0x366,_0xce7e88:0x3d2,_0x5ecaff:0x2df,_0x3f467e:0x389,_0x4d8618:0x24c,_0x44395a:0xc4,_0x164da5:0x362,_0x212238:0x1e5,_0x11aa7d:0x251,_0x3945b6:0x2cc,_0x45219a:0x2df,_0x564292:0x23e,_0x37d453:0x22d,_0x1c0c20:0x9d,_0x5441a8:0x21,_0x22c2dd:0x156,_0x1e7e54:0x46,_0x3e833e:0x1e5,_0x2ed4e3:0x228,_0x5ea83c:0xbb,_0x1f157e:0x21,_0x5cae34:0x406,_0x4a4e8a:0x3ba,_0x526ef9:0x57a,_0x2e885d:0x329,_0x1c26bf:0x5b,_0xb517fa:0x17,_0x1d21f7:0xa4,_0xff61c6:0xb1,_0x47d6d9:0xb5,_0x2c3596:0x263,_0x5b40d4:0x17,_0x2b97a5:0x165,_0x29856f:0x2f4,_0x159cc9:0x15,_0x211764:0x1e2,_0x372f08:0x118,_0x40489d:0x249,_0x5d321d:0xf9,_0x41f579:0x1b,_0x5738c5:0x2fc,_0x36b40c:0x46e,_0xcc228a:0x1e9,_0x4363e9:0x546,_0x58ad5a:0x14c,_0x468778:0x38c,_0x11fc3b:0x1e5,_0x581a1d:0x269,_0x27cfec:0x265,_0x6d563f:0x168,_0x4d1110:0x1a1,_0xa9c6ad:0x68,_0x414c8f:0x131,_0x284710:0xde,_0x30721b:0x1fb,_0x5a4519:0x2bf,_0x2e95ab:0x66,_0x4c945e:0xf8,_0x63750e:0x138,_0x530a74:0x29c,_0xd77291:0x2d,_0x5ed945:0x1e1,_0x5691d2:0x2c2,_0x392e26:0x210},_0x26d747={_0x3907ed:0x360,_0x3bf8d7:0x223,_0x22597e:0x2fc,_0x46336b:0x2f5,_0x5afb89:0x4aa},_0x4717b0={_0xcc61af:0x276},_0x25ee52={_0x59e350:0x6e5,_0x1b30d2:0x5a8,_0x46a7cd:0x53,_0x26d7e5:0x356,_0x255d3f:0x299},_0x213437={_0x23339b:0x721},_0x483eb7={_0x5420b9:0x339,_0x4962aa:0x24d,_0x4eb391:0x102,_0x23e2f8:0xc0,_0xc96bf1:0x22e,_0x255a6a:0x1d6,_0x1ca958:0x27c,_0x53f282:0x1fb,_0x2e5a64:0xb6,_0xd7e350:0x2d0,_0x2eaa95:0x269,_0x265de8:0x19f,_0x5df0c7:0x3f1,_0x1efd48:0x12b,_0x24a836:0x3a1},_0x27df73={_0x4c7125:0xe2},_0x3605a6={_0x2cf263:0x2bc},_0xd51cd0={_0x1e470d:0x138},_0x2ae11a={_0x454210:0x43f},_0x4c31d6={'LyFRx':function(_0x143d09,_0x33a8c1){return _0x143d09(_0x33a8c1);},'Uwcsa':_0x1f4a68(-0x2f4,-_0x2f54bd._0x3760de),'GAEkB':_0x1f4a68(-0x19d,-0x110)+'>','JQDpS':_0x1f4a68(-_0x2f54bd._0x2be1e1,-_0x2f54bd._0x299057),'lGWZR':'https://'+_0x1f4a68(-_0x2f54bd._0x19b6e9,-0x2b7)+_0x1f4a68(_0x2f54bd._0x5543dc,-0x163)+_0x1f4a68(-0x2d6,-_0x2f54bd._0x54dc37),'CuinJ':_0x1f4a68(-_0x2f54bd._0x200431,-0x294),'MuCSy':function(_0x5dd73c,_0x30b293,_0x99de4c){return _0x5dd73c(_0x30b293,_0x99de4c);},'KGvam':function(_0xcde1ae,_0x5d44f6,_0x3e7511,_0x420a5b,_0x4d4ee2){return _0xcde1ae(_0x5d44f6,_0x3e7511,_0x420a5b,_0x4d4ee2);},'kDVvo':_0x1ab0ce(_0x2f54bd._0x1ec880,0x307)+_0x1ab0ce(0x36e,0x211)+_0x1f4a68(-_0x2f54bd._0x1af0f3,-0x2f7)+'dy\x20runni'+'ng.\x20Left'+_0x1f4a68(-_0x2f54bd._0x3b9ee2,-_0x2f54bd._0x505b8d)+_0x1ab0ce(_0x2f54bd._0xa0fd41,0x2f0),'ECTmk':function(_0x3b4b4b,_0x1e6228){return _0x3b4b4b===_0x1e6228;},'RfQmW':function(_0x5b86ad,_0x17fafe){return _0x5b86ad===_0x17fafe;},'GtBDH':_0x1f4a68(-0x2fe,-0x1ab)+_0x1f4a68(0x49,-0x72)+_0x1f4a68(0x4f,-_0x2f54bd._0x50b554)+'d\x20servic'+'e.','dxBRe':function(_0x2f659e,_0x2bb0f9){return _0x2f659e(_0x2bb0f9);},'Xwwiw':_0x1ab0ce(0xb0,_0x2f54bd._0x5893cd),'dZiTV':function(_0x5055e5){return _0x5055e5();},'XaeFF':function(_0x3ee3d2,_0x233e9d){return _0x3ee3d2===_0x233e9d;},'CYHMf':function(_0x22b8fc){return _0x22b8fc();},'MgniG':'--errors','utjJb':_0x1ab0ce(_0x2f54bd._0x58db5e,_0x2f54bd._0x1992cd),'umXnd':function(_0x5ef79d){return _0x5ef79d();},'ojfrt':_0x1f4a68(-_0x2f54bd._0x5f2fe2,-0x1d1)+_0x1f4a68(-_0x2f54bd._0x1e06ed,-_0x2f54bd._0x52e9fa)},[,,_0x24cd5b=_0x1f4a68(_0x2f54bd._0x1f136e,0x76),..._0x170630]=process[_0x1f4a68(-_0x2f54bd._0x432d5e,-_0x2f54bd._0x36fb8f)],_0x5ba2a2=hasFlag(_0x170630,_0x1ab0ce(_0x2f54bd._0x29c44b,_0x2f54bd._0x2cb66a)+'e'),_0x44f1a6=hasFlag(_0x170630,_0x1ab0ce(0x31b,_0x2f54bd._0xc904a1));function _0x1f4a68(_0x2e894b,_0x2f2b5a){return _0x5338aa(_0x2f2b5a- -_0x2ae11a._0x454210,_0x2e894b);}if(_0x24cd5b===_0x1f4a68(-_0x2f54bd._0x4ca3a7,-0x30c)){const _0x350969=hasFlag(_0x170630,_0x1ab0ce(_0x2f54bd._0x3a0f14,_0x2f54bd._0x6d2383));!_0x350969&&await ensurePairPrerequisites();const _0x2d12ac=resolveGatewayAuth();if(_0x4c31d6[_0x1f4a68(-0x473,-0x2fa)]in _0x2d12ac)throw new Error(_0x2d12ac[_0x1f4a68(_0x2f54bd._0x239d0d,-0x1b5)]);const _0x555ec8=readFlag(_0x170630,_0x1f4a68(-0x1f,-0x1ce))??readFlag(_0x170630,'-s')??_0x4c31d6[_0x1f4a68(-_0x2f54bd._0x3c39ba,-0x8c)],_0x432333=readFlag(_0x170630,_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x3579a6,_0x2f54bd._0x27f007)])??readFlag(_0x170630,'-n')??getDefaultBridgeDisplayName(),_0x5a09ec=_0x4c31d6[_0x1f4a68(0x171,0x6d)](readFlag,_0x170630,_0x1ab0ce(_0x2f54bd._0x27fcc5,0xd0)+'e'),_0x1df28e={};_0x1df28e[_0x1ab0ce(0x384,0x526)+'l']=_0x555ec8,_0x1df28e[_0x1ab0ce(0xa9,0x96)+_0x1ab0ce(_0x2f54bd._0x6c4a29,_0x2f54bd._0x553c53)]=_0x432333,_0x1df28e['gatewayT'+'oken']=_0x2d12ac[_0x1f4a68(0xbb,-_0x2f54bd._0x5734b7)],_0x1df28e[_0x1f4a68(-0x42,-0x1f2)+_0x1ab0ce(0x35,-0x13b)]=_0x2d12ac[_0x1f4a68(-0x46e,-_0x2f54bd._0x272daf)];const _0x18d14e=await pairGateway(_0x1df28e),_0x49de93=await writePairingQrPng(_0x18d14e,_0x5a09ec),_0x314301=getServiceStatus(),_0x10d226=decidePairServiceAction(_0x18d14e,_0x314301);if(_0x10d226===_0x1ab0ce(_0x2f54bd._0x102731,_0x2f54bd._0x457612)){_0x44f1a6?printJson(_0x4c31d6[_0x1ab0ce(0x2f5,0x3d8)](buildPairingJson,_0x18d14e,_0x49de93,_0x314301,'Backgrou'+'nd\x20servi'+'ce\x20alrea'+_0x1ab0ce(_0x2f54bd._0x3b2dba,_0x2f54bd._0x3ea81e)+'ng.\x20Left'+_0x1ab0ce(_0x2f54bd._0x28cd29,0x29f)+'ed.')):(printPairingInfo(_0x18d14e,_0x49de93),console[_0x1f4a68(-_0x2f54bd._0x13ff61,-_0x2f54bd._0x802a61)](_0x4c31d6[_0x1f4a68(-0x122,-0xa4)]),printServiceResult(null,_0x314301));return;}try{const _0x497148=_0x4c31d6[_0x1f4a68(-0x242,-0x273)](_0x10d226,_0x1ab0ce(_0x2f54bd._0x26d30a,-_0x2f54bd._0x1eff75))?installService():restartService(),_0x33e04a=_0x4c31d6['RfQmW'](_0x10d226,_0x1ab0ce(0xb0,0x157))?_0x4c31d6[_0x1ab0ce(0x301,_0x2f54bd._0x59996b)]:_0x18d14e[_0x1f4a68(-0x2cc,-_0x2f54bd._0x591d41)]===_0x1ab0ce(0x3d7,_0x2f54bd._0x16fc46)+'ed'?_0x1f4a68(-0x21f,-_0x2f54bd._0x4053eb)+'dentity\x20'+_0x1ab0ce(0x11b,-0x3b)+_0x1ab0ce(0x2d7,0x3d7)+_0x1f4a68(-_0x2f54bd._0x710d0a,-_0x2f54bd._0x1f48e5)+_0x1ab0ce(0xcf,0xd1)+'rvice\x20to'+_0x1f4a68(-0x12f,-_0x2f54bd._0x500460)+_0x1f4a68(-_0x2f54bd._0x46013b,-0x1f)+'iring.':'Backgrou'+_0x1f4a68(0x12c,0x21)+_0x1f4a68(0x181,-0xc)+_0x1f4a68(-_0x2f54bd._0x5cb466,-0x97)+_0x1f4a68(0x205,_0x2f54bd._0x587f1c)+'pped.\x20Re'+_0x1f4a68(-0xa1,-_0x2f54bd._0x1e0bdc)+_0x1f4a68(_0x2f54bd._0x2006a4,-0x106);_0x44f1a6?printJson(buildPairingJson(_0x18d14e,_0x49de93,_0x497148,_0x33e04a)):(printPairingInfo(_0x18d14e,_0x49de93),printServiceResult(_0x33e04a,_0x497148));}catch(_0x579207){console[_0x1ab0ce(0x198,-0x24)](_0x1ab0ce(0x172,_0x2f54bd._0x56a96c)+'succeede'+_0x1ab0ce(0x64,_0x2f54bd._0x1a54f6)+_0x1ab0ce(0x1f4,0x31b)+_0x1f4a68(-0x1f9,-0x77)+_0x1ab0ce(_0x2f54bd._0xd770f1,0xe0)+':\x20'+_0x4c31d6[_0x1ab0ce(0x3b9,0x394)](formatError,_0x579207)),console['error'](_0x1ab0ce(_0x2f54bd._0x408129,_0x2f54bd._0x442be5)+_0x1ab0ce(_0x2f54bd._0x313556,_0x2f54bd._0x1f4893)+'n\x20\x22clawk'+'et\x20insta'+_0x1ab0ce(0x1c7,_0x2f54bd._0x479f1e)+_0x1ab0ce(0x310,0x132)+_0x1ab0ce(0x92,0x232)+'ually.'),process[_0x1ab0ce(_0x2f54bd._0x168004,-0x55)]=0x1;}return;}if(_0x24cd5b===_0x1ab0ce(0x159,_0x2f54bd._0x3e892f)+_0x1f4a68(-0x20d,-_0x2f54bd._0x1e9845)){const _0x311f35=readFlag(_0x170630,_0x1ab0ce(0x7c,0x166)+'e'),_0xcb40c4=resolveGatewayAuth();if('error'in _0xcb40c4)throw new Error(_0xcb40c4[_0x1ab0ce(0x198,_0x2f54bd._0x431ee4)]);const _0x50b2ea={};_0x50b2ea[_0x1f4a68(-0xa1,-0x125)+'oken']=_0xcb40c4[_0x1f4a68(_0x2f54bd._0x12f2c7,-0xb2)],_0x50b2ea[_0x1f4a68(-_0x2f54bd._0x27a7a9,-0x1f2)+'assword']=_0xcb40c4[_0x1ab0ce(0x47,-_0x2f54bd._0x5cb466)];const _0xf39355=await refreshAccessCode(_0x50b2ea),_0x144621=await writePairingQrPng(_0xf39355,_0x311f35);_0x44f1a6?printJson(buildPairingJson(_0xf39355,_0x144621,getServiceStatus(),_0x1f4a68(-_0x2f54bd._0x40aafc,-_0x2f54bd._0x294e11)+'code\x20ref'+_0x1ab0ce(0x39f,_0x2f54bd._0x367a70))):printPairingInfo(_0xf39355,_0x144621);return;}if(_0x24cd5b===_0x4c31d6[_0x1ab0ce(0x391,0x424)]){const _0x417643=requirePairingConfig(),_0x5e0d9a=_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x2a10c2,0x281)](installService);console[_0x1f4a68(-0x1f8,-0x1e5)]('Installe'+_0x1ab0ce(_0x2f54bd._0x5e6496,_0x2f54bd._0x36f7ce)+_0x1ab0ce(0x2cc,_0x2f54bd._0xce7e88)+_0x1f4a68(-0x211,-_0x2f54bd._0x5ecaff)+_0x1f4a68(-_0x2f54bd._0x3f467e,-_0x2f54bd._0x4d8618)+'\x20'+_0x417643[_0x1ab0ce(0x9b,0x2e)+'d']+'.'),printServiceResult(null,_0x5e0d9a);return;}if(_0x4c31d6[_0x1ab0ce(0xd7,-_0x2f54bd._0x44395a)](_0x24cd5b,_0x1ab0ce(0x7f,-0x3e))){const _0xf26c30=requirePairingConfig(),_0x51e403=restartService();console[_0x1f4a68(-_0x2f54bd._0x164da5,-_0x2f54bd._0x212238)](_0x1ab0ce(0x124,_0x2f54bd._0x11aa7d)+_0x1ab0ce(_0x2f54bd._0x5e6496,0x3c6)+_0x1ab0ce(_0x2f54bd._0x3945b6,0x43d)+_0x1ab0ce(0x6e,-0x12b)+_0x1f4a68(-_0x2f54bd._0x45219a,-_0x2f54bd._0x408129)+'\x20'+_0xf26c30[_0x1ab0ce(0x9b,_0x2f54bd._0x3c39ba)+'d']+'.'),printServiceResult(null,_0x51e403);return;}if(_0x24cd5b===_0x1ab0ce(_0x2f54bd._0x564292,_0x2f54bd._0x37d453)){const _0x4a1da8=stopService();console[_0x1ab0ce(0x168,0x124)](_0x1f4a68(-_0x2f54bd._0x1c0c20,0x67)+_0x1ab0ce(0x395,0x4c6)+_0x1f4a68(-_0x2f54bd._0x5543dc,_0x2f54bd._0x5441a8)+_0x1f4a68(0x79,-0x14f)),printServiceResult(null,_0x4a1da8);return;}if(_0x24cd5b===_0x1f4a68(-0x3e,-_0x2f54bd._0x22c2dd)+'l'){const _0x1eafb8=uninstallService();console[_0x1f4a68(-_0x2f54bd._0x1e7e54,-_0x2f54bd._0x3e833e)](_0x1ab0ce(0x226,_0x2f54bd._0x2ed4e3)+'backgrou'+_0x1f4a68(-_0x2f54bd._0x5ea83c,_0x2f54bd._0x1f157e)+'ce\x20regis'+_0x1ab0ce(0x26c,_0x2f54bd._0x5cae34)),_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x4a4e8a,_0x2f54bd._0x526ef9)](printServiceResult,null,_0x1eafb8);return;}if(_0x24cd5b===_0x1f4a68(-0x22e,-0x204)){stopService(),_0x4c31d6['CYHMf'](deletePairingConfig),console[_0x1f4a68(-_0x2f54bd._0x2e885d,-0x1e5)]('Cleared\x20'+_0x1ab0ce(_0x2f54bd._0x1c26bf,_0x2f54bd._0xb517fa)+_0x1ab0ce(0x2bd,0x357)+_0x4c31d6[_0x1ab0ce(0xc7,0x230)](getPairingConfigPath));return;}function _0x1ab0ce(_0x2e9699,_0x49aa79){return _0x5338aa(_0x2e9699- -0xf2,_0x49aa79);}if(_0x24cd5b==='status'){printStatus();return;}if(_0x24cd5b===_0x1ab0ce(_0x2f54bd._0x1d21f7,-_0x2f54bd._0xff61c6)){const _0x1a9ee5=Number(readFlag(_0x170630,_0x1ab0ce(0x28,-_0x2f54bd._0x47d6d9))??'200'),_0x55df87=parseLookbackToMs(readFlag(_0x170630,_0x1ab0ce(_0x2f54bd._0x2c3596,0x1c1))??readFlag(_0x170630,'-l')),_0x2ee00e=_0x4c31d6[_0x1f4a68(-0xcf,0x66)](readRecentCliLogs,{'lines':_0x1a9ee5,'lastMs':_0x55df87,'includeErrorLog':hasFlag(_0x170630,_0x4c31d6[_0x1f4a68(0xae,0x75)])});if(_0x44f1a6){const _0x3fde5e={};_0x3fde5e['ok']=!![],_0x3fde5e[_0x1f4a68(-_0x2f54bd._0x5b40d4,-0x14d)]=_0x2ee00e,printJson(_0x3fde5e);}else _0x2ee00e[_0x1f4a68(-0x1bd,-0x9)]===0x0?console[_0x1ab0ce(0x168,_0x2f54bd._0x2b97a5)](_0x1f4a68(-_0x2f54bd._0x1e06ed,-_0x2f54bd._0x29856f)+_0x1f4a68(-0x16e,-_0x2f54bd._0x159cc9)+_0x1ab0ce(_0x2f54bd._0x211764,_0x2f54bd._0x372f08)+_0x1ab0ce(_0x2f54bd._0x40489d,_0x2f54bd._0x5d321d)):console['log'](_0x2ee00e['join']('\x0a'));return;}if(_0x24cd5b===_0x4c31d6[_0x1f4a68(0x90,_0x2f54bd._0x41f579)]){const _0x103e98=await _0x4c31d6[_0x1f4a68(-_0x2f54bd._0x5738c5,-0x1a8)](buildDoctorReport);_0x44f1a6?printJson(_0x103e98):printDoctorReport(_0x103e98);return;}if(_0x24cd5b===_0x1ab0ce(0x361,_0x2f54bd._0x36b40c)){const _0x1d8e03=requirePairingConfig(),_0x45468b=resolveGatewayUrl(_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x4a4e8a,0x3ee)](readFlag,_0x170630,_0x1ab0ce(0x329,0x2bf)+'y-url')??readFlag(_0x170630,'-g')),_0x53206f=_0x1cb03f=>{const _0x4a11bc={_0x4bb6b1:0x14f};function _0x5b80be(_0x5c02ce,_0x48e84d){return _0x1ab0ce(_0x5c02ce-_0x4a11bc._0x4bb6b1,_0x48e84d);}function _0x4ab300(_0x3126aa,_0x4878ff){return _0x1ab0ce(_0x4878ff-0x66,_0x3126aa);}console[_0x5b80be(0x2b7,_0xd51cd0._0x1e470d)]('['+Date[_0x4ab300(0x150,0x275)]()+']\x20'+_0x1cb03f);};if(!_0x5ba2a2){const _0x1e5143=_0x4c31d6[_0x1ab0ce(0x15e,_0x2f54bd._0xcc228a)]['split']('|');let _0x221b36=0x0;while(!![]){switch(_0x1e5143[_0x221b36++]){case'0':console[_0x1ab0ce(0x168,0x242)]('Instance'+_0x1ab0ce(0x38b,_0x2f54bd._0x4363e9)+_0x1d8e03[_0x1f4a68(-0x22d,-_0x2f54bd._0x58ad5a)+'Id']);continue;case'1':console[_0x1ab0ce(0x168,0x17)]('');continue;case'2':console[_0x1f4a68(-_0x2f54bd._0x468778,-0x1e5)]('Gateway\x20'+_0x1f4a68(-0x44e,-0x2ff)+_0x45468b);continue;case'3':console[_0x1f4a68(-0x10e,-_0x2f54bd._0x11fc3b)]('');continue;case'4':console[_0x1ab0ce(0x168,_0x2f54bd._0x581a1d)](_0x1f4a68(-0x2e0,-0x18b)+'ID:\x20'+_0x1d8e03[_0x1f4a68(-_0x2f54bd._0x27cfec,-0x2b2)+'d']);continue;case'5':console[_0x1ab0ce(_0x2f54bd._0x6d563f,_0x2f54bd._0x11aa7d)](_0x1ab0ce(0xf8,-0x98)+'\x20bridge\x20'+_0x1f4a68(_0x2f54bd._0x4d1110,_0x2f54bd._0xa9c6ad)+_0x1f4a68(0x7f,-_0x2f54bd._0x414c8f)+_0x1f4a68(-0x18c,-_0x2f54bd._0x284710)+_0x1f4a68(-_0x2f54bd._0x30721b,-_0x2f54bd._0x5a4519));continue;}break;}}else _0x4c31d6[_0x1f4a68(-0xbc,_0x2f54bd._0x2e95ab)](_0x53206f,_0x1ab0ce(_0x2f54bd._0x4c945e,0x2d4)+_0x1f4a68(-_0x2f54bd._0x63750e,-_0x2f54bd._0x530a74)+_0x1f4a68(-0x204,-_0x2f54bd._0xd77291)+'\x20runtime'+_0x1ab0ce(0x277,0x19b)+'eway\x20'+_0x1d8e03[_0x1f4a68(-0x30f,-0x2b2)+'d']);_0x5ba2a2&&_0x4c31d6[_0x1f4a68(-_0x2f54bd._0x5ed945,-0x15b)](writeServiceState);const _0x4f853e=new BridgeRuntime({'config':_0x1d8e03,'gatewayUrl':_0x45468b,'onLog':_0x35be64=>{const _0x48d101={_0x5220d6:0x256};function _0x9d8289(_0x3b2628,_0x45b7f7){return _0x1f4a68(_0x3b2628,_0x45b7f7-_0x48d101._0x5220d6);}_0x4c31d6[_0x9d8289(0x2c0,_0x3605a6._0x2cf263)](_0x53206f,'[clawket'+']\x20'+_0x35be64);},'onStatus':_0x21a2e4=>{if(_0x21a2e4['lastErro'+'r']){_0x53206f('[status]'+_0x40e430(0x33f,0x29c)+(_0x21a2e4[_0x40e430(_0x483eb7._0x5420b9,0x4b4)+_0x40e430(_0x483eb7._0x4962aa,0x36c)]?'up':_0x4c31d6[_0x2c3590(_0x483eb7._0x4eb391,_0x483eb7._0x23e2f8)])+('\x20gateway'+'=')+(_0x21a2e4[_0x2c3590(-_0x483eb7._0xc96bf1,-_0x483eb7._0x255a6a)+_0x2c3590(-_0x483eb7._0x1ca958,-0x1e5)]?'up':'down')+('\x20clients'+'=')+_0x21a2e4['clientCo'+_0x2c3590(0x1f,_0x483eb7._0x53f282)]+_0x2c3590(-0x279,-0x1a6)+_0x21a2e4[_0x2c3590(_0x483eb7._0x2e5a64,0x18c)+'r']);return;}function _0x40e430(_0xb5051e,_0xdb23a7){return _0x1ab0ce(_0xdb23a7-_0x27df73._0x4c7125,_0xb5051e);}function _0x2c3590(_0x137ec5,_0x493755){return _0x1ab0ce(_0x137ec5- -0x2a0,_0x493755);}_0x53206f('[status]'+'\x20relay='+(_0x21a2e4[_0x40e430(_0x483eb7._0xd7e350,0x4b4)+'nected']?'up':_0x2c3590(-_0x483eb7._0x2eaa95,-0x3b3))+(_0x2c3590(-_0x483eb7._0x265de8,-0x1af)+'=')+(_0x21a2e4[_0x2c3590(-_0x483eb7._0xc96bf1,-0x3ef)+_0x2c3590(-0x27c,-_0x483eb7._0x5df0c7)]?'up':_0x40e430(0x2a6,0x119))+(_0x2c3590(0x58,0x67)+'=')+_0x21a2e4[_0x2c3590(_0x483eb7._0x1efd48,-0xb0)+_0x40e430(0x350,_0x483eb7._0x24a836)]);},'onPendingPairRequest':_0x1dd5df=>{function _0xfe1e18(_0x348982,_0x2bd9fe){return _0x1f4a68(_0x348982,_0x2bd9fe-_0x213437._0x23339b);}function _0x5e8ee2(_0x5f2785,_0x44280f){return _0x1f4a68(_0x5f2785,_0x44280f-0x3a9);}_0x53206f('[pair-re'+_0xfe1e18(0x594,0x429)+_0x5e8ee2(0x292,0x22d)+'='+_0x1dd5df['requestI'+'d']+(_0x5e8ee2(0x343,0x340)+'d=')+(_0x1dd5df[_0x5e8ee2(-0x8c,0x11f)]||_0x4c31d6[_0xfe1e18(0x839,_0x25ee52._0x59e350)])+_0xfe1e18(0x52e,_0x25ee52._0x1b30d2)+(_0x1dd5df[_0x5e8ee2(_0x25ee52._0x46a7cd,0x105)+'ame']??_0x5e8ee2(_0x25ee52._0x26d7e5,_0x25ee52._0x255d3f)+'>'));}});_0x4f853e[_0x1ab0ce(0x18a,_0x2f54bd._0x5691d2)]();const _0x4dd00c=async()=>{process[_0x406dce(0x42d,0x5b4)](_0x72b4ee(0x1d4,_0x26d747._0x3907ed),_0x4dd00c);function _0x72b4ee(_0x9186c7,_0x2105c0){return _0x1ab0ce(_0x2105c0-0x131,_0x9186c7);}process['off']('SIGTERM',_0x4dd00c),await _0x4f853e[_0x406dce(0x48b,0x4b4)]();function _0x406dce(_0x4d8a2a,_0x1540ee){return _0x1ab0ce(_0x1540ee-_0x4717b0._0xcc61af,_0x4d8a2a);}_0x5ba2a2&&clearServiceState(process[_0x406dce(_0x26d747._0x3bf8d7,_0x26d747._0x22597e)]),process[_0x406dce(_0x26d747._0x46336b,_0x26d747._0x5afb89)](0x0);};process['on'](_0x1ab0ce(0x22f,0x2a0),_0x4dd00c),process['on'](_0x1f4a68(-_0x2f54bd._0x392e26,-0x22e),_0x4dd00c),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x36c920,_0x3afe82){const _0x438f27={_0xb4e7cc:0x349,_0x122f3e:0x19c,_0x48d02b:0x393,_0x5a1493:0x1ef,_0x265da7:0x3e6,_0x2e31e5:0x4e2,_0x2dc152:0x4c9,_0x211014:0x2d9,_0x2033ae:0x334,_0x39cbb3:0x3ba,_0x5259bd:0x197,_0x500727:0x195,_0x22cc9f:0x3c6,_0x3cc21f:0x467,_0x294cdb:0x53c,_0x5dab18:0x145,_0x582591:0x20c,_0x356867:0x25f,_0x516bf3:0x79,_0x13c961:0x15e,_0x2cdda1:0x41a,_0x3f4543:0x528,_0x171ba6:0x261,_0x411a2b:0x286,_0x2afe28:0x273,_0x582e7c:0x208,_0x15b6db:0x589},_0x58acfb={_0x16c257:0x7f},_0x5281a8={};function _0x5399cb(_0x2c15d2,_0x2f7ca7){return _0x5338aa(_0x2f7ca7-0x2c,_0x2c15d2);}_0x5281a8[_0x5399cb(_0x438f27._0xb4e7cc,_0x438f27._0x122f3e)]=function(_0x22c128,_0x13575e){return _0x22c128===_0x13575e;},_0x5281a8[_0x8f6225(0x1b1,0x4a)]=_0x5399cb(_0x438f27._0x48d02b,0x283)+'is\x20QR\x20co'+'de\x20in\x20th'+_0x5399cb(0x412,0x27a)+'t\x20app:\x0a';const _0x199b52=_0x5281a8;_0x199b52[_0x8f6225(_0x438f27._0x5a1493,0x4c)](_0x36c920[_0x8f6225(0x354,_0x438f27._0x265da7)],_0x8f6225(_0x438f27._0x2e31e5,_0x438f27._0x2dc152)+'d')&&console[_0x8f6225(_0x438f27._0x211014,0x2d0)](_0x8f6225(_0x438f27._0x2033ae,0x39d)+_0x5399cb(_0x438f27._0x39cbb3,0x3c9)+_0x8f6225(0x3eb,0x491)+_0x8f6225(_0x438f27._0x5259bd,0x29e)+'\x20the\x20pai'+_0x5399cb(0x31b,_0x438f27._0x500727)+'e.');console[_0x8f6225(0x2d9,_0x438f27._0x22cc9f)]('Gateway\x20'+_0x8f6225(_0x438f27._0x3cc21f,_0x438f27._0x294cdb)+_0x36c920[_0x8f6225(0x294,_0x438f27._0x5dab18)][_0x8f6225(_0x438f27._0x582591,_0x438f27._0x356867)+'d']),console['log'](_0x199b52[_0x5399cb(_0x438f27._0x516bf3,_0x438f27._0x13c961)]);const _0x5de285={};_0x5de285[_0x5399cb(_0x438f27._0x2cdda1,0x3d3)]=!![];function _0x8f6225(_0x46a8ac,_0x17ccf6){return _0x5338aa(_0x46a8ac-_0x58acfb._0x16c257,_0x17ccf6);}_0x2f1765[_0x8f6225(_0x438f27._0x3f4543,0x372)](_0x36c920[_0x8f6225(_0x438f27._0x171ba6,0x2bc)+'d'],_0x5de285),console[_0x5399cb(0xd9,_0x438f27._0x411a2b)]('Expires:'+'\x20'+formatLocalTime(_0x36c920[_0x5399cb(0x2be,0x1e2)+_0x8f6225(0x249,0xda)+_0x8f6225(0x3ff,_0x438f27._0x2afe28)])),console[_0x8f6225(0x2d9,_0x438f27._0x582e7c)](_0x8f6225(0x4b3,_0x438f27._0x15b6db)+':\x20'+_0x3afe82);}function printStatus(){const _0xc7aaf={_0x2e6a6f:0x3ab,_0x2b9f4f:0x392,_0x58810f:0x2a9,_0x22987f:0x25b,_0x5d9361:0x3f4,_0x4918e8:0x4c1,_0x2d6766:0x4d5,_0x2b124b:0x43c,_0x8e9d1a:0x4ab,_0x14a664:0x55f,_0xa46afa:0x51b,_0x910508:0x46b,_0x1cb5ef:0x4ce,_0x21e5d1:0x32d,_0x46bb8d:0x16f,_0x34c5b0:0x5d,_0x4ed3bf:0x38d,_0x58b73a:0x273,_0x4798a1:0x4d2,_0x5ac7ce:0x668,_0x5d94fb:0x34f,_0x48c939:0x4f0,_0x119cb2:0x2bc,_0x585795:0x47d,_0x22a028:0x270,_0x3028a2:0x458,_0x3d621f:0x414,_0x45956a:0x4d7,_0x1fa1b7:0x33f,_0x29cf9a:0x138,_0xbf6e63:0x6ad,_0x517bd0:0x38d,_0x19686f:0x53f,_0x145550:0x251,_0x59c664:0x40d,_0x33b1b8:0x405,_0x981916:0x401,_0x363ce2:0x21b},_0x2cd322={_0x342cee:0x252};function _0x234d8e(_0x341fec,_0x1b4c66){return _0x33cded(_0x1b4c66,_0x341fec- -0x16e);}const _0x5353b0={'FxsZf':function(_0x25bb80){return _0x25bb80();},'CCgwL':function(_0x56d1a4){return _0x56d1a4();},'kSwEV':'4|1|0|2|'+'3','dTdbE':'installe'+'d'},_0x5602a3=readPairingConfig(),_0x120f00=_0x5353b0[_0x2ccb26(_0xc7aaf._0x2e6a6f,0x498)](getServiceStatus),{logPath:_0x3d907b,errorLogPath:_0x5db800}=_0x5353b0[_0x2ccb26(0x1c5,_0xc7aaf._0x2b9f4f)](getServicePaths),_0x4d27dc=readCliVersion();console[_0x2ccb26(_0xc7aaf._0x58810f,0x2b0)](_0x2ccb26(0x2c3,_0xc7aaf._0x22987f)+'\x20'+_0x4d27dc);if(!_0x5602a3)console['log'](_0x234d8e(0x4a4,0x2f9)+'not\x20pair'+_0x234d8e(0x456,_0xc7aaf._0x5d9361)+getPairingConfigPath()+')');else{const _0x23aa45=_0x5353b0['kSwEV'][_0x2ccb26(_0xc7aaf._0x4918e8,0x420)]('|');let _0x560273=0x0;while(!![]){switch(_0x23aa45[_0x560273++]){case'0':console[_0x234d8e(0x38d,_0xc7aaf._0x2d6766)](_0x234d8e(_0xc7aaf._0x2b124b,_0xc7aaf._0x8e9d1a)+':\x20'+_0x5602a3[_0x2ccb26(0x342,0x443)+'Id']);continue;case'1':console[_0x2ccb26(_0xc7aaf._0x58810f,0x2a7)](_0x234d8e(0x3e7,_0xc7aaf._0x14a664)+_0x234d8e(_0xc7aaf._0xa46afa,0x38e)+_0x5602a3['gatewayI'+'d']);continue;case'2':console[_0x2ccb26(_0xc7aaf._0x58810f,_0xc7aaf._0x910508)]('Server\x20U'+_0x234d8e(0x317,_0xc7aaf._0x1cb5ef)+_0x5602a3[_0x2ccb26(0x4c5,_0xc7aaf._0x21e5d1)+'l']);continue;case'3':console['log']('Name:\x20'+(_0x5602a3[_0x2ccb26(0x1ea,0x342)+_0x2ccb26(_0xc7aaf._0x46bb8d,_0xc7aaf._0x34c5b0)]??'-'));continue;case'4':console[_0x234d8e(_0xc7aaf._0x4ed3bf,_0xc7aaf._0x58b73a)]('Config:\x20'+_0x234d8e(_0xc7aaf._0x4798a1,_0xc7aaf._0x5ac7ce));continue;}break;}}console[_0x2ccb26(_0xc7aaf._0x58810f,0x101)](_0x234d8e(_0xc7aaf._0x5d94fb,_0xc7aaf._0x48c939)+'\x20'+resolveGatewayUrl()),console[_0x234d8e(_0xc7aaf._0x4ed3bf,0x2e2)](_0x2ccb26(0x317,0x3bd)+'\x20'+(_0x120f00[_0x234d8e(_0xc7aaf._0x119cb2,_0xc7aaf._0x585795)+'d']?_0x5353b0[_0x234d8e(0x485,0x4f9)]:_0x234d8e(0x40e,_0xc7aaf._0x22a028)+'alled')+'\x20('+_0x120f00[_0x234d8e(_0xc7aaf._0x3028a2,0x5e8)]+')'),console['log'](_0x2ccb26(_0xc7aaf._0x3d621f,_0xc7aaf._0x45956a)+'\x20'+(_0x120f00[_0x234d8e(0x2cb,_0xc7aaf._0x1fa1b7)]?_0x2ccb26(0x215,_0xc7aaf._0x29cf9a):'no')),console['log']('Path:\x20'+(_0x120f00[_0x234d8e(0x3e5,0x2b3)+'ath']||'-'));function _0x2ccb26(_0x4e3468,_0x57061a){return _0x33cded(_0x57061a,_0x4e3468- -_0x2cd322._0x342cee);}console['log'](_0x234d8e(0x548,_0xc7aaf._0xbf6e63)+_0x3d907b),console[_0x234d8e(_0xc7aaf._0x517bd0,_0xc7aaf._0x19686f)](_0x234d8e(_0xc7aaf._0x145550,_0xc7aaf._0x59c664)+_0x2ccb26(_0xc7aaf._0x33b1b8,_0xc7aaf._0x981916)+_0x5db800),!_0x5602a3&&(process[_0x234d8e(0x2c1,_0xc7aaf._0x363ce2)]=0x1);}function printServiceResult(_0xbc6b23,_0x29032d){const _0x3e5672={_0x329956:0x235,_0x489106:0x38b,_0x27491b:0x1e6,_0x59363f:0x1ea,_0x7c72a7:0x2c4,_0x3bd736:0x89,_0x52c4ec:0x224,_0x28d183:0x10c,_0x2767b0:0x16d},_0x49a9ed={_0x34a012:0x71a},_0x56c44b={_0xe93819:0x65f},_0x50324c={};_0x50324c['sWyMl']=_0x379554(-_0x3e5672._0x329956,-0x82)+_0x19f30d(-0x29a,-_0x3e5672._0x489106)+'ng';function _0x379554(_0x4f023d,_0x3b2872){return _0x33cded(_0x3b2872,_0x4f023d- -_0x56c44b._0xe93819);}const _0x3414df=_0x50324c;function _0x19f30d(_0x30ff24,_0x23778b){return _0x33cded(_0x23778b,_0x30ff24- -_0x49a9ed._0x34a012);}_0xbc6b23&&console['log'](_0xbc6b23),console[_0x19f30d(-0x21f,-0x1f8)]('Service:'+'\x20'+(_0x29032d[_0x379554(-_0x3e5672._0x329956,-_0x3e5672._0x27491b)+'d']?_0x29032d['running']?_0x3414df[_0x19f30d(-0xbf,-_0x3e5672._0x59363f)]:_0x19f30d(-0x2f0,-_0x3e5672._0x7c72a7)+_0x19f30d(-0x84,_0x3e5672._0x3bd736)+'ed':_0x379554(-0xe3,-0x177)+'alled')),console[_0x19f30d(-0x21f,-_0x3e5672._0x52c4ec)]('Service\x20'+'path:\x20'+(_0x29032d[_0x379554(-_0x3e5672._0x28d183,-_0x3e5672._0x2767b0)+_0x19f30d(-0x51,-0x37)]||'-'));}function printDoctorReport(_0x35de94){const _0x360fa9={_0xc0939b:0x45,_0x4025b7:0xfc,_0x95d6c7:0xfa,_0x28daa4:0x4f,_0x51189d:0x1ec,_0x3d3589:0x271,_0x2f88f5:0x25c,_0x1b58f4:0x266,_0x586184:0xc1,_0x25990d:0x12d,_0x6f30a2:0x32,_0x3989f8:0x1a9,_0x4e1942:0x16,_0x54cce9:0x1e6,_0x1c9efb:0x4ff,_0x37cbc8:0x19b,_0xf3164c:0x302,_0x5c9885:0x285,_0x924035:0x37a,_0x3abe01:0x25a,_0x4764da:0x28a,_0x3174ab:0x32,_0x2cad40:0x138,_0x2d229b:0x57c,_0x5139c6:0x443,_0x386740:0x32,_0x1cd377:0x1f0,_0x13f14d:0x21,_0xdc2ca7:0x4,_0x100115:0x459,_0x2338c3:0xef,_0x48222a:0x16f,_0x192ff0:0x30d,_0x243062:0x28,_0x20f309:0x2ae,_0x33a6cc:0x270,_0x20163c:0x212,_0x22a94c:0x286,_0x55b5ef:0x14b,_0x5d8538:0x3e0,_0x28253d:0x2c2,_0xda82b0:0xb4,_0x261a2f:0x20c,_0x41b429:0x1f6,_0x226bdb:0x22b,_0xfd1053:0x1f6,_0x196658:0x364,_0x4aefe4:0x14e,_0x3552dc:0x237,_0xc0fd8d:0x307,_0x2e3fa1:0xf9,_0x38ce4e:0xe0,_0x50335c:0x32,_0x2b222c:0x24e,_0x457e27:0x7f,_0xdb6a90:0x201,_0x3c8ec3:0x3b6,_0x3a5965:0x1ac,_0x53336f:0x3a5,_0x3a756e:0x2e4,_0x5e7f32:0x15c,_0x21e8a5:0x110,_0x1209bb:0x330,_0xfe6f7:0x28a},_0x4db76d={_0x2c9a36:0x52d},_0x2cda11={};_0x2cda11[_0x1d19ad(-0x7,-0x37)]=_0x1d19ad(_0x360fa9._0xc0939b,-_0x360fa9._0x4025b7),_0x2cda11[_0x1d19ad(0x4,_0x360fa9._0x95d6c7)]=_0x1d19ad(0x216,_0x360fa9._0x28daa4)+_0x1d19ad(-0x75,-0xec);const _0x4cd868=_0x2cda11;function _0x1d19ad(_0x3fffe8,_0x5aa9fe){return _0x33cded(_0x3fffe8,_0x5aa9fe- -_0x4db76d._0x2c9a36);}function _0x3137aa(_0x1d5cae,_0x325399){return _0x33cded(_0x1d5cae,_0x325399- -0x271);}const _0x3454f0=(_0x3137aa(0x299,_0x360fa9._0x51189d)+_0x3137aa(0xa0,_0x360fa9._0x3d3589)+_0x3137aa(_0x360fa9._0x2f88f5,_0x360fa9._0x1b58f4)+_0x3137aa(0x59e,0x3e0)+_0x1d19ad(_0x360fa9._0x586184,-0xcf))['split']('|');let _0x35ec4c=0x0;while(!![]){switch(_0x3454f0[_0x35ec4c++]){case'0':console[_0x1d19ad(-_0x360fa9._0x25990d,-_0x360fa9._0x6f30a2)]('Service\x20'+_0x1d19ad(0x92,_0x360fa9._0x3989f8)+(_0x35de94[_0x1d19ad(_0x360fa9._0x4e1942,0x26)+'ath']||'-'));continue;case'1':console[_0x3137aa(_0x360fa9._0x54cce9,0x28a)]('OpenClaw'+'\x20dir:\x20'+_0x35de94[_0x1d19ad(0x1de,0xce)+_0x3137aa(0x354,0x1ad)+'r']);continue;case'2':console[_0x1d19ad(-0x99,-0x32)]('OpenClaw'+'\x20config:'+'\x20'+(_0x35de94['openclaw'+_0x3137aa(0x4cc,_0x360fa9._0x1c9efb)+_0x3137aa(_0x360fa9._0x37cbc8,_0x360fa9._0xf3164c)]?_0x4cd868[_0x3137aa(0x281,_0x360fa9._0x5c9885)]:_0x3137aa(_0x360fa9._0x924035,0x4bf)));continue;case'3':console[_0x3137aa(_0x360fa9._0x3abe01,_0x360fa9._0x4764da)]('Paired:\x20'+(_0x35de94[_0x3137aa(0x27d,0x3cf)]?_0x3137aa(0x33a,0x1f6):'no'));continue;case'4':console[_0x1d19ad(-0xce,-_0x360fa9._0x3174ab)](_0x3137aa(0x492,0x339)+'\x20ID:\x20'+(_0x35de94['instance'+'Id']??'-'));continue;case'5':console[_0x1d19ad(-_0x360fa9._0x2cad40,-0x32)]('Relay\x20UR'+_0x1d19ad(-0x50,0x80)+(_0x35de94[_0x3137aa(_0x360fa9._0x2d229b,_0x360fa9._0x5139c6)]??'-'));continue;case'6':console[_0x1d19ad(-0x136,-_0x360fa9._0x386740)](_0x1d19ad(0x1a1,0x19d)+_0x1d19ad(0x63,0x92)+_0x35de94[_0x1d19ad(_0x360fa9._0x1cd377,0xce)+_0x1d19ad(0x142,-_0x360fa9._0x13f14d)]);continue;case'7':console[_0x1d19ad(-_0x360fa9._0xdc2ca7,-0x32)](_0x3137aa(0x2c2,_0x360fa9._0x100115)+_0x3137aa(_0x360fa9._0x2338c3,_0x360fa9._0x48222a)+(_0x35de94['openclaw'+'TokenFou'+'nd']?_0x3137aa(_0x360fa9._0x192ff0,0x1c0):'missing'));continue;case'8':console[_0x1d19ad(0x4f,-_0x360fa9._0x6f30a2)]('Error\x20lo'+'g\x20path:\x20'+_0x35de94['errorLog'+_0x3137aa(0x1f5,0x3a6)]);continue;case'9':console['log'](_0x1d19ad(0x1cf,_0x360fa9._0x243062)+'URL:\x20'+_0x35de94[_0x3137aa(_0x360fa9._0x20f309,_0x360fa9._0x33a6cc)+'ewayUrl']);continue;case'10':console[_0x1d19ad(-_0x360fa9._0x20163c,-0x32)](_0x1d19ad(_0x360fa9._0x22a94c,_0x360fa9._0x55b5ef)+_0x3137aa(_0x360fa9._0x5d8538,_0x360fa9._0x28253d)+'\x20'+(_0x35de94[_0x3137aa(_0x360fa9._0xda82b0,0x195)+'unning']?_0x3137aa(_0x360fa9._0x261a2f,_0x360fa9._0x41b429):'no'));continue;case'11':console[_0x3137aa(_0x360fa9._0x226bdb,0x28a)]('Gateway\x20'+_0x3137aa(_0x360fa9._0xfd1053,_0x360fa9._0x196658)+_0x1d19ad(_0x360fa9._0x4aefe4,_0x360fa9._0x3552dc)+(_0x35de94['localGat'+_0x3137aa(0x4a5,_0x360fa9._0xc0fd8d)+_0x1d19ad(-0x53,-_0x360fa9._0x2e3fa1)]?_0x3137aa(0x314,0x1f6):'no'));continue;case'12':console[_0x1d19ad(_0x360fa9._0x38ce4e,-_0x360fa9._0x50335c)](_0x3137aa(_0x360fa9._0x2b222c,0x2f8)+'\x20'+(_0x35de94[_0x1d19ad(_0x360fa9._0x457e27,0x17)+'nstalled']?'installe'+'d':_0x4cd868[_0x3137aa(_0x360fa9._0xdb6a90,_0x360fa9._0x3c8ec3)])+'\x20('+_0x35de94[_0x1d19ad(0xe3,_0x360fa9._0x3a5965)+'ethod']+')');continue;case'13':console['log']('Server\x20U'+'RL:\x20'+(_0x35de94[_0x1d19ad(_0x360fa9._0x53336f,0x1ea)+'l']??'-'));continue;case'14':console[_0x3137aa(0x23b,0x28a)](_0x3137aa(0x4c7,_0x360fa9._0x3a756e)+_0x1d19ad(0x70,_0x360fa9._0x5e7f32)+(_0x35de94[_0x3137aa(_0x360fa9._0x21e8a5,0x1bd)+'d']??'-'));continue;case'15':console[_0x3137aa(_0x360fa9._0x1209bb,_0x360fa9._0xfe6f7)](_0x1d19ad(0x92,0x155)+':\x20'+_0x35de94[_0x1d19ad(-0x118,0x6c)]);continue;}break;}}function requirePairingConfig(){const _0x3914a1={_0x36f79e:0x3f3,_0x28b581:0x132,_0x101a94:0x89,_0x2df9ad:0x262,_0x4a9325:0x35,_0x1ab5ff:0x437},_0x39c0c9={_0x21d1d4:0x262};function _0x1611d3(_0x4d8ead,_0x3c399e){return _0x5338aa(_0x4d8ead- -0x9a,_0x3c399e);}const _0x487a2c=readPairingConfig();function _0x5d8451(_0x387a7f,_0x2cf41c){return _0x5338aa(_0x387a7f- -_0x39c0c9._0x21d1d4,_0x2cf41c);}return!_0x487a2c&&(console['error'](_0x1611d3(0x3bf,_0x3914a1._0x36f79e)+_0x5d8451(0x36,_0x3914a1._0x28b581)+_0x1611d3(0x13f,-_0x3914a1._0x101a94)+_0x1611d3(_0x3914a1._0x2df9ad,0x416)+_0x5d8451(-0x45,-0x1c7)+_0x5d8451(0x11b,_0x3914a1._0x4a9325)+_0x1611d3(_0x3914a1._0x1ab5ff,0x61a)+getPairingConfigPath()),process[_0x1611d3(0x28c,0x468)](0x1)),_0x487a2c;}function readFlag(_0x16c8cd,_0x334ea6){const _0x16a2e6={_0x335def:0x3b2,_0x5aedb1:0x343,_0xa1ff00:0x4a9,_0x48dfcf:0x37b,_0x3a1b1a:0x4db,_0x3717d4:0x42d},_0x33c3aa={_0x3f5196:0x1cf},_0x18c08a={_0x58c042:0x304},_0x46579f={};_0x46579f[_0x3623d4(_0x16a2e6._0x335def,_0x16a2e6._0x5aedb1)]=function(_0x52b78d,_0x54b71e){return _0x52b78d+_0x54b71e;};const _0xa707a1=_0x46579f;function _0x3623d4(_0x12be1b,_0x5d81a2){return _0x33cded(_0x12be1b,_0x5d81a2- -_0x18c08a._0x58c042);}const _0x5d0c37=_0x16c8cd[_0x3623d4(_0x16a2e6._0xa1ff00,_0x16a2e6._0x48dfcf)](_0x334ea6);if(_0x5d0c37<0x0)return null;function _0x368fed(_0x358964,_0x4cbd17){return _0x33cded(_0x4cbd17,_0x358964- -_0x33c3aa._0x3f5196);}const _0x6d5ff=_0x16c8cd[_0xa707a1['leMXt'](_0x5d0c37,0x1)];return _0x6d5ff?.[_0x368fed(0x4db,0x627)]()?_0x6d5ff[_0x368fed(_0x16a2e6._0x3a1b1a,_0x16a2e6._0x3717d4)]():null;}function _0x5e63(){const _0x406944=['yxjNDG','tdOG','BJOG','ifbYzxnZiem','Dgv3yxK','q2XP','tNnczNq','CMvSyxLtzwm','Aw5ZDc0','zw5HyMXL','mJq2mtyZmMnACxnnCa','lwPZB25D','pLbYB2DYyw0','uMvTB3zLzca','pL0GwY0Tzxi','z2f0zxDHEvq','CMvHzhLtDge','pc9ZDhjPBMC','s05dse0','ig1LzgLHoIa','BwvKAwfeAxi','rg9vDMK','u0Lhsu5u','rLjUBNy','zwqGka','zerLDMLJzxm','Bwv0Ag9K','zxHPDa','y29UBMvJDgu','q2XHD2TLDei','yMLUyxj5','phn0CMLUzZ4','ywDLBNrZ','Bgf1BMnOy3q','A2LUz0rPCMu','CMvWBgfJzq','phvUA25VD24','C3rVCa','l1bjra','y2HLzcbTB2q','ywLYlNjLC28','CMvHy2HHyMW','u1nyte4','rfrczK0','AwyGwYaTEca','Bgf5q29UDhi','AxqU','BNLIzMS','BMqU','CgXHDgzVCM0','ywnRz3jVDw4','ww91ignHBIa','zcbZAw5JzuC','zMLSDgvY','yw50ihrVigi','CxvLC3q','BNvxs3K','DfrPBwvVDxq','Dg9ju09tDhi','CMvQzwn0uge','BgKTzxjYB3i','CxvLCNK','z2f0zxDHEuG','zgLZy29UBMu','BMvJDgLUzW','C29YDa','yNjPzgDLlwm','vK9WrNG','z2vZ','zxHLy1bHDgG','zwqGyMfJA2C','zfrKyKu','EwjwENa','C3rVChbLza','ls1Syxn0','cIaGpc9HCNi','je5prevFuee','lNbSAxn0','DwvZDeLKpq','B3bLBMnSyxC','CM9Wzxj0EuW','rNHZwMy','CMvTB3rLsxa','DhjHDgLVBI4','yxrLD2f5t3a','mtCZmtC1qK9kwxzO','DhjSk0mGDg8','Bwf4ugf5Bg8','C3rHBgXHDgK','zwqU','Aw1Hz2uVCg4','ywLYlMfWChi','r3jLq3O','zwXHEq','igzVCIbNyxq','A2LSBa','yxvSDc50yxi','ywLYzwqUifi','ugf0AdWVA2u','Dw5ZDxbWB3i','BwfYA1bHAxi','zxvLzcb1BNq','q29UzMLNoIa','vw5HyMXLihq','tw9IAwXLiem','zw1HBMqGzhi','vgHPCYbICMK','ugf0Aa','BNPqzgC','ignVBMzPzYa','Dg9tDhjPBMC','u3HIB2m','yxKGCMvJB24','BMvJDgvK','BMzPzYbWyxq','A2LUza','zM9YD2fYze8','C0f0','vM1xwvi','C2vYDMvYidW','rwfvr24','CNvUDgLTzsa','CNvUifSTlwC','uvLgr28','zxrcCMLKz2u','Cg9UzW','zM9YzsbWywK','ls1MB3jJzq','zhKGCNvUBMK','zxrpEui','Dg9Rzw4','CNzLCI4','B2TLBG','y2XPzw50x2m','iurpq1rzueu','ls1Zzxj2Awm','y29UzMLNuge','y2vZuMvJzw4','CMvWBgfJzue','C3LZDgvTzc0','Ag90','ywvKBfa','wY0TANnVBL0','odC4oq','A0rwDM8','CgvUzgLUz0C','BhjLywr5iha','Bw9Kzq','CgfPCMvK','AgfUzgXLuMu','ugfZC3DVCMq','ywrKugvUzgK','DgvYBwLUyxq','CMfUzg9T','DgLTzw91Da','Bgvnwhq','C21HBgW','BNn0ywXSzwq','r2f0zxDHEvi','yxnL','zgvMyxvSDa','l251BgWGmJ4','zxHWB3j0ifa','CMf3','y29UzMLNoIa','Fdf8nNWYFdC','Dw50','CMLWDcbWyxq','BeDxwLi','r0rPwxe','B3nLzdOG','zZOG','C2nOzwr1Bgu','CfD6D04','pg5VBMu+','C1D5twW','qwnJzxnZigm','swq9','C3rHCNrLzca','B3vUzcbZzxi','C3rHDhvZ','mti3lJaUmc4','r2zwzLu','y29UDgvUDc0','zgv0ywLSCW','zgf6z1G','uNvUBMLUzZO','igHHCYbIB3q','vwTWsge','y3rPDMf0Aw8','ifjLC3rHCNq','ywnOywjSzsa','zxj2AwnLlMO','B25tDgf0Dxm','DgfSBgvKigi','AwDUB3jL','y2XPzw50swq','zxHPDcaXmJC','ihPLCM87igS','q3vPBKO','C29Tzq','ihnPBMnLq2W','y2XVC2vhyxq','igrLDMLJzuK','u2vYDMLJzsa','oti1nZeYyuniweXK','BMuUDgfYz2u','ywrK','B25Uzwn0','DxnLCG','C2v0vgLTzw8','Aw5KzxHpzG','y29Uy2f0','uMDdCNe','tg9NihbHDgG','EvLZDMK','yxv0Ae1Vzgu','Ahr0Chm6lY8','DgLTzwqGB3u','pGOGidXRzxK','s0D2yw0','suq6ia','ig1VCMuGzgu','ignSAwvUDhm','AxnTyxrJAa','CMvQzwn0zwq','Dgv3yxLdB24','q2fUBM90igm','qMfJA2DYB3u','tgf1BMnOqwC','sKfMu3O','zxjLCxvPC2K','r3rcreG','CMLUzZ4','zcWGC3rVCha','C2vYDMvYlw0','D3nZoI8V','Ac5TB2rLigK','C2vUzfrVr2e','zMLNDxjLzcW','Ag9ZDa','cGPBsw5ZDge','ihbSAxn0ifa','DaPxyw50CZ0','z0rkruG','iI4GvxnLihy','DNHxzu8','y2XHD2TLDca','r0ffA0i','Dg9mB3DLCKm','EunZvgC','C3rZ','ELflyxC','DxbKyxrLu24','DhjPBq','Et4kica8Dhi','y2XPzw50tMe','BMC+','ls1QC29U','CxjjBwfNzva','icH0B2TLBIa','CM9YC10GwY0','CZWVA2v5pGO','ihnLCNzPy2u','CMvSyxLvCMW','l3jLz2LZDgu','tg9NoIa','B25mB2C','lIbsDw4GiMm','AxnhyxrLD2e','zxnVBhzLza','DgG8l2TLEt4','ls1NyxrLD2e','AwyGy29TBwe','zcbIywnRz3i','qKLYwhq','uefjuKLor18','zsbUzxCGCge','CMvSyxKGzgK','CMWGphDZoI8','zxK+cIaGphq','DejHC2vezwW','z2f0zxDHEsa','l0rurcbqteK','ihvYBd0','yxrO','t3bLBKnSyxC','Aw5Nienmssa','BxbSzqPfEgu','se5RtgK','Eu1Z','DgHLBG','AwrLBNrPDhK','B2zM','ChbLBMq6','BgKUBg9N','y2uGD2fZigK','uviGAw1Hz2u','Cgf0AdOG','BgvUz3rO','cIaGphn0CMK','C2vYDMLJzu0','otfvzhvQwue','tKnjBKS','BM9VCa','BgfIzwW','ig9Yia','ugfPCIbYzwC','yxv0AcbWyxq','v2LUzg93C1W','pGO8l3bSAxm','zgTZt0e','zezrtwe','zxDHEs5HDxq','zgfLBw9Ulxi','BgzoCwC','uev1sNi','BgfZDevYCM8','Bwf0y2G','yxj0yMvHDca','Aw5JBhvKzxm','CMvXDwvZDgu','su9RqK4','sw1uBuy','qxjNDw1LBNq','CMvSyxKGzxi','ywLYuMvXDwu','zxjYB3i6ia','CNvU','C3rHCNrPBMC','CMqGyMvMB3i','zg9JDg9Y','z2f0zxDHEq','BMfTzq','tM90ihbHAxi','DxrQsMi','u2fYufm','B2rLiciKu0m','CIbWyxnZD28','z1LZtxy','B2nRzxq','BMqGC2vYDMK','CM9YoIa','BgLZDa','CMvMCMvZAgu','EvD3s1a','uNvUigbJBge','Bs9everZl1a','D2f5twvZC2e','A2vtDgfYDgu','Dg9YycbMB3i','t1bftKnmqvC','zevYCM9Ypwe','CdOVl3D3DY4','CgzAywu','C1zuz3O','C2vYDMvY','zgf0yq','zguGCNvUDgK','C3bSAxq','CMvJDgLVBKW','CMLUzYb3Axq','CMvN','C2vYDMvYvxi','CgfYyw1Z','CMvZ','yxbZAg90','z2f0zxDHEvu','z1bHAxjszxe','CNrIzwf0','ieLeoIa','qxv0Ae1Vzgu','BNPhEge','rM91BMq','D2LUzg93C0G','l2TLEt4kica','whD3AxC','y2XPzw50igq','AgfUzgXLr2e','AxiGzMLYC3q','yMfJA2DYB3u','Dg9mB2nHBgu','igf1DgGGAxm','EufJDgL2Axq','zwm9mGPxB3i','D2TLDcbKB2m','Cvrwsfi','Ahr0CdOVlW','BwLZC2LUzW','zcbXDwv1zwq','CMvZAgvKlG','CNvUlxjLz2K','yxrLD2f5twu','vxDJC2e','B3iGCgfZC3C','icbLEgvJig4','ywLYlNjLAMu','yujKwgG','sw52ywXPzca','lMXVzW','igj1DcbZDg8','zcbMB3iGzNi','lJaUmc4XoG','u0nssvbux1a','zgv2AwnLlNa','BMCGy29UBMu','BwfUzfn0yxi','zxjYB3jmB2C','zxK+uNvUqxq','Cgf5Bg9Hza','thLguNG','u3rVChbLzca','CNvUDgLTzs4','BwfW','z2vUzxjHDgu','ywX1zsaI','zhHcuMu','txvdu3K','zwXVywq','mci+cJXKAwm','DgfPBhmSig8','BNvTyMvY','Cg9YDa','CMvXlq','BgfZDfnLzw4','twDUAuC','AgvSCa','kYKRja','y2XPzw50x2q','BwfYA0rLDMK','Dw5Yzwy','AwXLzcaO','AxnjBNrLz2u','Aw9Ul2PZB24','y2XPzw50q28','zgDLigLZige','C3rHCNrLzee','CMvX','cLn0yw5Kyxi','CMvJB25Uzwm','ztOG','CMvSyxLdB24','qxrnCW','ihrVA2vUig8','v1nqB3y','z2f0zxDHEvi','CMvNAxn0zxi','DgjLyxq','mtaXwhHZvMjM','mtG3nZq2sKzcsxjt','y29UC3rYDwm','zKXmEuy','q29UzMLNrM8','pwfSD2f5CWO','AdOG','ifnLDcb0Agu','ywKUy2XHD2S','BwvKAwe','CM9Szq','r0j6vuu','C3rHDgu','ls1UB3C','C3rVCeHLyxi','DwnPsKO','ufrTue8','rM5yA2K','y1n0yxj0pq','y2XLyxjuAw0','B25Uzwn0zwq','zMX1C2Hqzw4','zwzYzxnOzwq','igvYCM9Ypq','ls1SAw5LCW','AxmGC2fMzxq','z2v0cG','Cgf0AevUDG','rxjYB3iGtg8','jMX0oW','yw1L','Ahfmrxa','D29YzcbJB24','zsbZDgfYDgu','lJaIigvUy28','BwD0t2O','BgfZDca8mM0','yxnZD29Yza','zgvSzxrL','zg93BG','weTsB2q','BfvNzhC','zMLUza','zwXHChnLzfm','y29UBMvJDc4','DNHpqLq','yxbWBgLJyxq','BM5Ly3qGyxq','C0LMBuq','CgfPCG','B21WBgv0zsa','rNbsAha','wxrlEKS','CMvXDwvZDeK','ywXYzwfKEsa','CgfZC3DVCMq','qNjPzgDLigK','lNnLCNzPy2u','seH4rMO','CffcD0u','zcbZAw5Jzum','ihrVA2vUoIa','vvjmoIa','Cg9Tz2G','zxqUyNjPzgC','Axn0lteUmc4','Cgf0Ag5HBwu','sLfeCfm','A2v0','CxvLC3rDihi','y2uGywXYzwe','AgvHCNrIzwe','lw5HBwuGpgq','tM8GBwf0y2G','AgfRztSGCxu','CgfPCMLUzYa','CvrtuM4','yMfZzty0','CMv0','zxzLBa','l3yXl3bHAxi','u2vYDMLJzv0','zsbWywLYAw4','lMnVBMzPzW','zcWGyNv0ihm','zgLUzZ0Ivvq','lY5VCgvUy2W','B249q2XHD2S','lMPZB24','BgLUDxG','yxrLD2f5igK','icbLEgvJici','C3rPBgWGCNu','CLf1zxvLr2e','DMLJzsbMB3i','r0zAveq','yxbWBhK','Axn0zxiGzMe','z2f0zxDHEum','C2vYDMLJzvi','C2HPzNq','Dw5SB2fK','uKvhx1nA','CMLUzYbJB2q','C2vHCMnO','zw5ZDxjLr2e','C29U','BgXDcLDHBNq','ls1XCI1MAwW','zM91BMqGDw4','zK5Wvwe','CMvZDgfYDa','ihrVA2vUigK','CMfTCW','y3jVC29MDfW','swvtrM8','q0nND0W','zwrcEt1Kzwy','CgLK','EgLzv0O','igLUDgvUDgK','Bwu+xsbBls0','zxDHEq','q29UzMLNrgK','nhW1','CNjVCKXVzW','ihn0B3aU','yujUzMe','AxmTywn0Axy','CMnLycbVBMW','CNvUiIbTyw4','C2LUzY4','CgvUzgLUzW','DwvZDcbWzw4','CMvNAxn0CNK','Aw5ZDgfSBgu','yxbWCM92zva','Aw5Nr2f0zxC','qvriiIbDoYa','z2f0zxDHEuK','zxHPDenVzgu','tgLICMfYEq','zM91BMq','AxnbCNjHEq','yxLnzxnZywC','AgfIBgu','z2f0zxDHEvm','zM9YBsbMB3i','Bg9NCW','Dw5HDMfPBge','CNvUBMLUzW','ygnSyxDRzxq','BM90ihjLywq','zgLZCgXHEu4','Ag9ZDg5HBwu','cLr5Cgu9C2K','CgvU','thfuvLK','ywXSzwq','jMD0oW','Aw5ZDgfSBa','ienSyxDRzxq','icaGidXZDhi','zKHur3q','zMXVB3i','yxj0','B3bLBG','v2fZsui','uKLqvf9qqvq','ls1Uyw1L','De1HEerLBge','CxiTzMLSzsa','ChvZAa','AxncDwzMzxi','igrLy2LZAw8','C2vUza','EuXPsKG','nxWZ','ig1PC3nPBMC','zgv2AwnLswq','ywnJzxnZq28','CxvLC3rjzd0','q3vYCMvUDfy','q1Litwy','Bgf3A2v0iha','Aw5N','m3WXnhWXm3W','FdL8mte','CMvJDxjZAxy','D3m6lY8','ihvUy2HHBMC','CM91BMqGC2u','Ahnfq08','BMrHCMrpDxq','BKnSyxCGChi','CgLUzW','EwvZ','yxbWCM92zwq','zwnVBM5Ly3q','wgfLrKy','zgvfEhbPCMu','v0TyBxK','runuBwS','veGIiciKu0m','sciGCNvUic0','tKHgrui','B25Jzq','zg9JDg9YifS','yxr0zw1WDd0','Bwf4','zxjZ','BNqGzgvTyw4','zxzLBNq','C3nHz2vZ','B3j0','iMnSyxDRzxq','igj1DcbNyxq','yw5KC2HHA2u','DMLJzsbYzxm','C25HChnOB3q','q0Xbv0rct1q','zcWGCNvUBMK','BM9KzvbHDgG','zwvWAw5NigC','CxjqyxLSB2e','zxjYB3jdB3i','uKW6ia','u3rHCNrLza','y2f0y2G','B2nHBcbpCgu','AcbNyxrLD2e','ChvZAfbLBMq','u3rHCNrPBMC','CMvXDwLYzwq','ww9yrwq','CgvUzgLUz1a','zcbKzwXHEu0','zfbpEfy','Eu9Wzw4','zM9Yy2u','jMfWB3m7','igDHDgv3yxK','x1bbu1nxt1i','Bgf5twvZC2e','z2v0u25HChm','vfPMBMq','igXVywqGDgG','ywnJzxb0','seTdvvXtB2y','zu1rzu0','CNvLlZ4kica','y2XPzw50rgu','z2LRvM0','nJaYodKYD1rJDuT2','s3zxwKm','BIbMywLSzwq','z2v0','yxbWBguUy28','zguGpI9Kzxy','zw1WDa','Df9YzwXHEv8','v2LkrNi','BMqGlxyGBM8','AcbHigrPzMy','DhLWzq','B3b0Aw9UCW','y291BNq','y2HHBMDLzc4','C3rHCNqGDxi','iYeVyMLUl3m','x19JBgf3A2u','u0Lhvevstq','lM9Wzw5JBge','DgvKihbSyxq','uMvXDwvZDfi','y29UzMLN','uMvZDgfYDgu','yxnZAwDU','ihbHC3n3B3i','A2Dyq2e','uMvZDgfYDfm','ica8yxjYyxK','r2f0zxDHEtO','AxjZDc4Gq28','AM9PBG','C3rYEq','s0XAr0m','iejYAwrNzsa','BgfZDe1Z','CMvSyxLbDhq','BgLZDcb2zxi','zgv2AwnLrMe','BLfQBKe','y29UBMvJDfi','zwnHDxnLigW','Et4kica8C3q','zxrYEurLBge','DgGG','y29UzMLNig4','C3LZDgvTza','v3Hbv2W','Bg9Hza','zgfYD2LU','CgfPCIbYzxe','CMvJzw50','ue9tva','B25Uzwn0Aw4','DxbKyxrLzee','mhWWFde1FdG','CMLKz2vdBgK','B2rLihjLzNi','ANnVBG','tgvRrfi','CMvZzxq','lNbUzW','vg9Rzw5gB3u','mM0SidfOlca','DgvKoYbRzwu','Bg9JywXhyxq','nxW0FdeYFde','Dg9Y','u1qGms4WlY8','yw5KihbHC3m','yxrLD2f5igm','DLfqCu8','DhDHCMvCtwK','uwLms3K','lJaUmc4XoJe','y3jLyxrLzee','CMvMCMvZAc0','BYbYzxnVBhy','z2f0zxDHEva','zsbdBgf3A2u','C3rKAw8','B2PMCNq','Aw5Qzwn0zwq','ls1XDwLLDa','BwvZC2fNzq','Dgv4Da','sLjby3C','lJe6mtG3odK','cLnJyw4GDgG','C0zvBMm','ls11C2vY','Bg9N','yMXLigr1CMK','yNjPzgDLlxm','Aw5Jzq','zxDHEsbJB24','Esb0B2TLBIa','zw50','C2v0','rI04iJ8+cJW','C2vUzeDHDgu','ugfPCMLUzYa','yxLnCW','lxnLCNzPy2u','nJeZnZeYme1vywDPEq','CLD4z0S','l3DZ','AxnJB25Uzwm','twvKAwfeAxi','D2LUzg93CY0','C3rYAw5N','nhWWFdj8mxW','y29UzMLNrM8','CgfPCIbBls0','ls1Zzxj2zxi','ywPWCvu','s0jzwgu','vMvYC2LVBJO','Ag1oBu4','uMvSyxLszwm','DgvK','yxjNzxqkcLS','Dgv3yxLnzxm','B3vUzcbMB3i','AgfZ','C3rHCNq','t1bftG','rNPOENC','yw5Ktxm9','zevYCM9Yuge','C2XPy2u','CMvSyxKGy28','y29UBMvJDa','B2jZzxj2zum','zNjVBq','C2vYDMLJzq','y2XVC2u','Dd4kica8A2u','CgfYC2u','zxjYB3i','tNffwNK','BxDNwgK','ls1Syxn0ihy','DfrPBwvY','y29Kzq','D3nZoG','DNnyBNu','CNvUBMLUzZO','DwvZDcbYzxm','qxv0BY1PBNm','y29UBMvJDca','ihbHAxjGigi','Dw1yBMq','zwqUifj1BIa','ywLYic0TzM8','Axnoyu4','q2XHD2TLDca','C2vYDMLJzsi','DxrMoa','sKzLD3C','AxngAw5PDgu','ExbHC3mGDgG','D2LUmZi','ihjLyxnVBJ0','C2vYDMLJzuK','C3rYAw5NAwy','yxv0Aa','EufwqK8','B2jQzwn0','zxqGqNjPzgC','B25Uzwn0u3q','C2fNzq','wfrQs1G','ihjLBgf5pq','wNPYuLO','zgvZDhjVEq','yNrKq2S','Bgf1BMnOywC','C2vHCMnOuge','C2vYDMLJzva','DeLUDgvYDMe','r2f0zxDHEsa','qNjPzgDLige','Dw5RBM93BG','BNHszKe','CMvSyxLtB2m','BgWIig9Yici','AxnWBgf5tMe','l3jVB3q','y3rVCNK9','x0DbvevxqvK','Bg9NCYbBls0','C2nYAxb0uge','B3jKks4','B25SAw5LlNq','yKjTtLy','zxf1zxn0swq','AxnszwXHEu8','mty0nKDQEKTpAG','ig5HBwu9','BgfZDfjLBge','u2vYDMLJztO','zxjZAw9Uxfi','rgLjtKu','DMLJzsbPBNm','Be1Z','sffjre4','nKzSwNrNsa','zxrYEvrPBwu','ig1VzguGDg8','vw5ZDxbWB3i','Dw5K','mhWXFdj8m3W','Bg9NCYbMB3u','ywn0Aw9U','C3LZDgvTy3q','zxDHEvjLywm','zxnLDciGyMu','ienmssbZzxi','phjLzgfJDgu','BM90igLUC3q','lMnSyxDRzxq','lMfP','Dd4k','vNv4zKG','zxnOigzHAwW','zgLUz0DHDgu','uwP2A2y','AcbMB3iGC2u','zfPPvfy','BMDqywLYuMu','zxj2AwnLige','EsbJAgvJAY4','zxHPC3rPBMC','Dw5PBNn0ywW','CuDZzvO','zgLUzYbYzxe','DgvKqxrnCW','CMvSyxKGCMu','y29UDhjVBf8','AwvUDerLBwe','y2uU','B3vUDa','BgLUzxm','Aw5ZDgfUy2u','CNnPB249iJe','BenxB1a','DMvYC2LVBG','BwuGBM90igy','Bg9Nugf0Aa','BwLU','zM1Qr0i','z2v0vgLTzq','ihbHAxiIigy','rgHjvNu','lIbsDw4GCge','CYbTAxnZAw4','EsbPzIb5B3u','BM93','D2fZig5VDca','qvripsi','C3rHCNrZv2K','C2LVBJ0Ims4','Ee9ps3i','CKTPBee','D3m6lY8XmJC','sw5ZDgfUy2u','B3qGzM91BMq'];_0x5e63=function(){return _0x406944;};return _0x5e63();}function hasFlag(_0x5966c5,_0x2e76ce){return _0x5966c5['includes'](_0x2e76ce);}function printHelp(){const _0x763b01={_0x255b97:0x3d8,_0x32dfb1:0x6b5,_0x547c78:0x48d,_0x344896:0x4eb,_0x345923:0x635,_0x325bd3:0x23d,_0x4f5502:0x3fd,_0x4f8e4b:0xe2,_0x30a2d7:0xcb,_0x1eec14:0x2ce,_0x2d14bc:0x9f,_0x52d82e:0x1a5,_0xe2ecf1:0x1fa,_0x129c9a:0x5a,_0x582b4e:0x142,_0xed16dd:0x205,_0x131207:0x3df,_0xba7601:0x22b,_0x5b79bb:0x344,_0x275aea:0x66,_0x1d2f61:0xc2,_0x486e5a:0x66,_0x573d0e:0xe,_0x2ed25d:0x4d7,_0x1d9db0:0xde,_0x247b2d:0x85b,_0x2338e4:0x6c3,_0x534195:0x86,_0x391b72:0x53,_0x1f0ae3:0x6b5,_0x57658b:0x17,_0x411b4f:0x196,_0x57d66b:0x67},_0x5373a8={_0x418eea:0x39c},_0x413b4c={};function _0x4884c3(_0x5e7d12,_0x591e15){return _0x5338aa(_0x5e7d12- -_0x5373a8._0x418eea,_0x591e15);}function _0x4e829f(_0x49075f,_0x26af46){return _0x5338aa(_0x26af46-0x2b3,_0x49075f);}_0x413b4c[_0x4e829f(0x286,_0x763b01._0x255b97)]=_0x4e829f(0x6a4,_0x763b01._0x32dfb1)+_0x4e829f(_0x763b01._0x547c78,0x523)+_0x4e829f(_0x763b01._0x344896,_0x763b01._0x345923)+'url>]\x20[-'+_0x4e829f(_0x763b01._0x325bd3,_0x763b01._0x4f5502)+_0x4884c3(-_0x763b01._0x4f8e4b,_0x763b01._0x30a2d7)+_0x4e829f(_0x763b01._0x1eec14,0x42e)+_0x4884c3(-0x1ef,-0x3a3)+'<path>]\x20'+'[--json]'+'\x20[--forc'+'e]',_0x413b4c[_0x4884c3(-_0x763b01._0x2d14bc,-_0x763b01._0x52d82e)]='clawket\x20'+_0x4884c3(-_0x763b01._0xe2ecf1,-_0x763b01._0x129c9a);const _0x5ee709=_0x413b4c;console[_0x4884c3(-_0x763b01._0x582b4e,-0x320)]([_0x5ee709['mgtOj'],'clawket\x20'+'refresh-'+'code\x20[--'+_0x4884c3(-0x1ef,-_0x763b01._0xed16dd)+'<path>]\x20'+_0x4e829f(0x5f1,0x64c),_0x5ee709[_0x4e829f(_0x763b01._0x131207,0x5b0)],_0x4e829f(0x826,_0x763b01._0x32dfb1)+_0x4884c3(-_0x763b01._0xba7601,-_0x763b01._0x5b79bb),_0x4884c3(_0x763b01._0x275aea,_0x763b01._0x1d2f61)+_0x4e829f(0x5d8,0x5e3),_0x4884c3(_0x763b01._0x486e5a,_0x763b01._0x573d0e)+_0x4e829f(0x575,0x59c)+'l','clawket\x20'+'reset',_0x4e829f(_0x763b01._0x2ed25d,_0x763b01._0x32dfb1)+'status',_0x4884c3(_0x763b01._0x486e5a,0xca)+_0x4884c3(-_0x763b01._0x1d9db0,0x6)+_0x4e829f(0x460,0x3d9)+'>]\x20[--li'+'nes\x20<200'+_0x4884c3(-0x83,-0x197)+_0x4e829f(_0x763b01._0x247b2d,_0x763b01._0x2338e4)+_0x4884c3(-_0x763b01._0x534195,_0x763b01._0x391b72),_0x4e829f(0x855,_0x763b01._0x1f0ae3)+_0x4884c3(-0x1cb,-0x7)+'--json]','clawket\x20'+_0x4884c3(-_0x763b01._0x57658b,-_0x763b01._0x411b4f)+'ateway-u'+_0x4e829f(0x869,0x6d5)+'/127.0.0'+_0x4884c3(-0x146,-_0x763b01._0x57d66b)+'>]'][_0x4884c3(-0x17e,0x18)]('\x0a'));}function formatLocalTime(_0x55c41c){const _0x13fcfa={_0x3f68a4:0x36,_0x2114b4:0xd4,_0x272ed6:0x1dc};function _0x161744(_0x148e36,_0x473a80){return _0x5338aa(_0x473a80- -0x470,_0x148e36);}const _0x57bc7c=new Date(_0x55c41c);if(Number[_0x587ee7(-0x12,-_0x13fcfa._0x3f68a4)](_0x57bc7c[_0x161744(-_0x13fcfa._0x2114b4,-0x175)]()))return _0x55c41c;function _0x587ee7(_0x9c9a40,_0x217a58){return _0x5338aa(_0x9c9a40- -0x2ac,_0x217a58);}return _0x57bc7c[_0x587ee7(_0x13fcfa._0x272ed6,0xd7)+'String']();}function formatError(_0xdf5608){const _0x590a65={_0x5c7149:0x250};function _0x358095(_0xf23721,_0x2ba704){return _0x33cded(_0xf23721,_0x2ba704- -0x561);}return _0xdf5608 instanceof Error?_0xdf5608[_0x358095(-_0x590a65._0x5c7149,-0x6d)]:String(_0xdf5608);}function printJson(_0x150da4){console['log'](JSON['stringif'+'y'](_0x150da4,null,0x2));}main()[_0x5338aa(0x1e6,0xfa)](_0x437f6=>{const _0x436adc={_0x1530c9:0x47b,_0x1ce5d7:0x407};console['error'](formatError(_0x437f6));function _0x49fbfa(_0x3d2653,_0x5984a3){return _0x33cded(_0x3d2653,_0x5984a3- -0x1c0);}process[_0x49fbfa(_0x436adc._0x1530c9,_0x436adc._0x1ce5d7)](0x1);});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@p697/clawket",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Clawket CLI for pairing and running the Relay bridge runtime",