apt-mcp-agent-setup 3.5.2 → 3.5.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.
- package/bin/cli.js +1 -1
- package/bundle/NOTICES.md +0 -0
- package/bundle/core.enc +0 -0
- package/bundle/mcp-rules.enc +0 -0
- package/bundle/skills-aso.enc +0 -0
- package/bundle/skills-ba.enc +0 -0
- package/bundle/skills-base.enc +0 -0
- package/bundle/skills-be.enc +0 -0
- package/bundle/skills-design.enc +0 -0
- package/bundle/skills-fe.enc +0 -0
- package/bundle/skills-marketing.enc +0 -0
- package/bundle/skills-mobile.enc +0 -0
- package/bundle/skills-pm.enc +0 -0
- package/docs/apt-3.5.3-migration.md +44 -0
- package/docs/apt-3.5.4-migration.md +13 -0
- package/integrity-manifest.json +122 -115
- package/package.json +1 -1
- package/src/backends/browser-tools.js +1 -1
- package/src/backends/index-command.js +1 -1
- package/src/backends/index-store.js +1 -1
- package/src/backends/profiles.js +1 -1
- package/src/core/admission-fence.js +1 -1
- package/src/core/aso-import.js +1 -1
- package/src/core/caller-context.js +1 -1
- package/src/core/catalog.js +1 -1
- package/src/core/claude-caller-authority.js +1 -1
- package/src/core/claude-invocation.js +1 -1
- package/src/core/claude-native.js +1 -1
- package/src/core/claude-plan.js +1 -1
- package/src/core/claude-worker-transcript.js +1 -1
- package/src/core/codex-host-metadata.js +1 -1
- package/src/core/codex-transcript-receipt.js +1 -1
- package/src/core/context-metrics.js +1 -1
- package/src/core/doctor.js +1 -1
- package/src/core/draining-completion.js +1 -1
- package/src/core/execution.js +1 -1
- package/src/core/git-context.js +1 -1
- package/src/core/hook-bridge.js +1 -1
- package/src/core/host-adapters.js +1 -1
- package/src/core/ipc-envelope.js +1 -1
- package/src/core/memory-scope.js +1 -1
- package/src/core/memory-store.js +1 -1
- package/src/core/model-inventory.js +1 -1
- package/src/core/model-routing.js +1 -1
- package/src/core/native-dispatch.js +1 -1
- package/src/core/node-version.js +1 -1
- package/src/core/npm-cli.js +1 -1
- package/src/core/owned-command-child.js +1 -1
- package/src/core/owned-command.js +1 -1
- package/src/core/owned-lock.js +1 -1
- package/src/core/owned-process.js +1 -1
- package/src/core/presentations.js +1 -1
- package/src/core/quality-artifacts.js +1 -1
- package/src/core/quality.js +1 -1
- package/src/core/read-command.js +1 -1
- package/src/core/readonly-skill.js +1 -1
- package/src/core/resource-transaction.js +1 -1
- package/src/core/run-compatibility.js +1 -1
- package/src/core/runtime-info.js +1 -1
- package/src/core/runtime-ownership.js +1 -1
- package/src/core/session.js +1 -1
- package/src/core/skill-companions.js +1 -1
- package/src/core/skill-names.js +1 -1
- package/src/core/storage-retry.js +1 -1
- package/src/core/tool-contracts.js +1 -1
- package/src/core/update-control.js +1 -1
- package/src/core/upgrade-runs.js +1 -1
- package/src/core/upgrade-stop.js +1 -1
- package/src/core/windows-job.js +1 -1
- package/src/core/workspace-generation.js +1 -1
- package/src/core/workspace-path.js +1 -1
- package/src/installer/bounded-command.js +1 -1
- package/src/installer/candidate-preflight.js +1 -1
- package/src/installer/connection-activation.js +1 -1
- package/src/installer/connection-supervisor.js +1 -1
- package/src/installer/deployment-draft.js +1 -1
- package/src/installer/gateway-context.js +1 -1
- package/src/installer/gateway-migration.js +1 -1
- package/src/installer/gateway-runtime.js +1 -1
- package/src/installer/global-setup.js +1 -1
- package/src/installer/hook-context-client.js +1 -1
- package/src/installer/host-hooks.js +1 -1
- package/src/installer/legacy-registration.js +1 -0
- package/src/installer/managed-config.js +1 -1
- package/src/installer/platform-config.js +1 -1
- package/src/installer/prerequisites.js +1 -1
- package/src/installer/presentations.js +1 -1
- package/src/installer/project-setup.js +1 -1
- package/src/installer/registration-closure.js +1 -1
- package/src/installer/registration-plan.js +1 -1
- package/src/installer/registration-receipt.js +1 -1
- package/src/installer/registrations.js +1 -1
- package/src/installer/runtime-activation.js +1 -1
- package/src/installer/runtime-child.js +1 -1
- package/src/installer/runtime-launcher.js +13 -5
- package/src/installer/runtime-lock.js +1 -1
- package/src/installer/runtime-store.js +1 -1
- package/src/installer/runtime-supervisor.js +1 -1
- package/src/installer/setup-wizard.js +1 -1
- package/src/installer/update-addons.js +1 -1
- package/src/installer/update-cleanup.js +1 -0
- package/src/installer/update-executor.js +1 -1
- package/src/installer/update-registration.js +1 -0
- package/src/installer/update-request.js +1 -0
- package/src/installer/update-scope.js +1 -0
- package/src/installer/workspace-registry.js +1 -1
- package/src/installer/workspace-transaction.js +1 -1
- package/src/installer/workspace-update.js +1 -1
- package/src/license/crypto.js +1 -1
- package/src/license/fingerprint.js +1 -1
- package/src/license/terms.js +1 -1
- package/src/license/verify.js +1 -1
- package/src/presets/index.js +1 -1
- package/src/proxy/backends.js +1 -1
- package/src/proxy/browser-sessions.js +1 -1
- package/src/proxy/core-tools.js +1 -1
- package/src/proxy/pipeline.js +1 -1
- package/src/proxy/public-catalog.js +1 -1
- package/src/proxy/router.config.js +1 -1
- package/src/proxy/router.js +1 -1
- package/src/proxy/server.js +1 -1
- package/src/proxy/workspace-gateway.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x3f7611=_0x1dd9;(function(_0x259365,_0x23f8a8){const _0xf201ea=_0x1dd9,_0x4512f6=_0x259365();while(!![]){try{const _0x701726=-parseInt(_0xf201ea(0x22e))/0x1*(parseInt(_0xf201ea(0x1f3))/0x2)+-parseInt(_0xf201ea(0x1eb))/0x3+parseInt(_0xf201ea(0x1fd))/0x4+parseInt(_0xf201ea(0x241))/0x5*(parseInt(_0xf201ea(0x222))/0x6)+parseInt(_0xf201ea(0x22c))/0x7+-parseInt(_0xf201ea(0x1d3))/0x8+parseInt(_0xf201ea(0x245))/0x9;if(_0x701726===_0x23f8a8)break;else _0x4512f6['push'](_0x4512f6['shift']());}catch(_0x49f9b5){_0x4512f6['push'](_0x4512f6['shift']());}}}(_0x328e,0xe3b01));function _0x1dd9(_0x2ebcc0,_0x5a79f1){_0x2ebcc0=_0x2ebcc0-0x1cf;const _0x328e2b=_0x328e();let _0x1dd9b3=_0x328e2b[_0x2ebcc0];if(_0x1dd9['KrNUIB']===undefined){var _0x3b4739=function(_0x4355c6){const _0x51bd70='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d144f='',_0x27c6a0='';for(let _0xb0c750=0x0,_0x17373a,_0xe736ea,_0x45006f=0x0;_0xe736ea=_0x4355c6['charAt'](_0x45006f++);~_0xe736ea&&(_0x17373a=_0xb0c750%0x4?_0x17373a*0x40+_0xe736ea:_0xe736ea,_0xb0c750++%0x4)?_0x5d144f+=String['fromCharCode'](0xff&_0x17373a>>(-0x2*_0xb0c750&0x6)):0x0){_0xe736ea=_0x51bd70['indexOf'](_0xe736ea);}for(let _0x1d6899=0x0,_0x1c7547=_0x5d144f['length'];_0x1d6899<_0x1c7547;_0x1d6899++){_0x27c6a0+='%'+('00'+_0x5d144f['charCodeAt'](_0x1d6899)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x27c6a0);};_0x1dd9['xSlikC']=_0x3b4739,_0x1dd9['TlwHrk']={},_0x1dd9['KrNUIB']=!![];}const _0x1e75ea=_0x328e2b[0x0],_0x9a07df=_0x2ebcc0+_0x1e75ea,_0x4e3591=_0x1dd9['TlwHrk'][_0x9a07df];return!_0x4e3591?(_0x1dd9b3=_0x1dd9['xSlikC'](_0x1dd9b3),_0x1dd9['TlwHrk'][_0x9a07df]=_0x1dd9b3):_0x1dd9b3=_0x4e3591,_0x1dd9b3;}const fs=require(_0x3f7611(0x1f9)),path=require('node:path'),crypto=require(_0x3f7611(0x215)),net=require(_0x3f7611(0x1f0)),{signEnvelope}=require(_0x3f7611(0x220)),readJson=_0xf2630b=>{const _0x3a9899=_0x3f7611;try{return JSON[_0x3a9899(0x1d4)](fs['readFileSync'](_0xf2630b,_0x3a9899(0x219)));}catch{return null;}};async function probeConnection(_0x383aa8,_0x5de831={}){const _0x39e518=_0x3f7611;if(!_0x383aa8?.[_0x39e518(0x22f)]||!_0x383aa8?.['secretFile']||!_0x383aa8?.[_0x39e518(0x205)])return{'status':_0x39e518(0x1de),'connectionId':_0x383aa8?.[_0x39e518(0x205)]||null};let _0x5d5ca1;try{_0x5d5ca1=fs['readFileSync'](_0x383aa8[_0x39e518(0x210)]);}catch{const _0x4b571b={};return _0x4b571b[_0x39e518(0x1ec)]=_0x39e518(0x20c),_0x4b571b['connectionId']=_0x383aa8[_0x39e518(0x205)],_0x4b571b[_0x39e518(0x237)]=_0x39e518(0x224),_0x4b571b;}const _0x5065f3=crypto[_0x39e518(0x226)](),_0x2ea9b9={};_0x2ea9b9[_0x39e518(0x1e3)]=0x2,_0x2ea9b9[_0x39e518(0x23e)]='challenge',_0x2ea9b9[_0x39e518(0x205)]=_0x383aa8[_0x39e518(0x205)],_0x2ea9b9[_0x39e518(0x22d)]=_0x5065f3;const _0x1ba296=_0x2ea9b9;return _0x1ba296[_0x39e518(0x21d)]=signEnvelope(_0x5d5ca1,_0x1ba296),new Promise(_0x12d9c7=>{const _0xdd82ef=_0x39e518,_0x244333=net[_0xdd82ef(0x20a)](_0x383aa8[_0xdd82ef(0x22f)]);let _0x35e1ff='';const _0x5e0e5c=_0x44e7fc=>{const _0x42c92a=_0xdd82ef;if(!_0x244333[_0x42c92a(0x20e)])_0x244333['destroy']();_0x12d9c7(_0x44e7fc);},_0x31113d={};_0x31113d[_0xdd82ef(0x1ec)]='reconnect-required',_0x31113d[_0xdd82ef(0x237)]='PROBE_TIMEOUT',_0x244333[_0xdd82ef(0x1fc)](_0x5de831[_0xdd82ef(0x225)]||0x9c4,()=>_0x5e0e5c(_0x31113d)),_0x244333['on'](_0xdd82ef(0x23d),_0x8bc947=>_0x5e0e5c({'status':_0xdd82ef(0x20c),'code':_0x8bc947['code']||_0xdd82ef(0x1e9)})),_0x244333['on'](_0xdd82ef(0x20a),()=>_0x244333['write'](JSON[_0xdd82ef(0x20f)](_0x1ba296)+'\x0a')),_0x244333['on'](_0xdd82ef(0x212),_0x50c17c=>{const _0x13ac76=_0xdd82ef;_0x35e1ff+=_0x50c17c;const _0x20cd06={};_0x20cd06[_0x13ac76(0x1ec)]=_0x13ac76(0x214),_0x20cd06[_0x13ac76(0x237)]=_0x13ac76(0x1fe);if(_0x35e1ff[_0x13ac76(0x1ef)]>0x2000)return _0x5e0e5c(_0x20cd06);const _0xc7d1ff=_0x35e1ff[_0x13ac76(0x1e1)]('\x0a');if(_0xc7d1ff<0x0)return;let _0x513364;try{_0x513364=JSON[_0x13ac76(0x1d4)](_0x35e1ff['slice'](0x0,_0xc7d1ff));}catch{const _0x3f4523={};return _0x3f4523[_0x13ac76(0x1ec)]=_0x13ac76(0x214),_0x3f4523[_0x13ac76(0x237)]=_0x13ac76(0x229),_0x5e0e5c(_0x3f4523);}const {mac:_0x508ffc,..._0x1eb1e3}=_0x513364,_0x5d62f2=crypto[_0x13ac76(0x1f5)](_0x13ac76(0x235),_0x5d5ca1)[_0x13ac76(0x1cf)](JSON[_0x13ac76(0x20f)](_0x1eb1e3))['digest']('hex');if(typeof _0x508ffc!=='string'||_0x508ffc['length']!==_0x5d62f2['length']||!crypto[_0x13ac76(0x1d8)](Buffer['from'](_0x508ffc),Buffer[_0x13ac76(0x236)](_0x5d62f2))||_0x1eb1e3['nonce']!==_0x5065f3||_0x1eb1e3[_0x13ac76(0x205)]!==_0x383aa8[_0x13ac76(0x205)]||_0x1eb1e3[_0x13ac76(0x23b)]!==_0x383aa8['workspace']||_0x1eb1e3['supervisorPid']!==_0x383aa8[_0x13ac76(0x228)]||_0x1eb1e3['generation']!==_0x383aa8[_0x13ac76(0x207)]||_0x1eb1e3[_0x13ac76(0x1db)]!==_0x383aa8['childPid']||_0x1eb1e3[_0x13ac76(0x1d7)]!==_0x383aa8[_0x13ac76(0x1d7)]||_0x1eb1e3['digest']!==_0x383aa8[_0x13ac76(0x211)]||_0x1eb1e3[_0x13ac76(0x203)]!==_0x383aa8['resourceDigest'])return _0x5e0e5c({'status':_0x13ac76(0x214),'code':'PROBE_MISMATCH','connectionId':_0x383aa8[_0x13ac76(0x205)]});const _0x2e20c8={'status':_0x1eb1e3[_0x13ac76(0x20b)],..._0x1eb1e3};_0x2e20c8[_0x13ac76(0x213)]=_0x13ac76(0x1ff),_0x5e0e5c(_0x2e20c8);});});}function _0x328e(){const _0x39296b=['ru5pru5u','nZK1v0HjugjH','q09otKvdveLptL9vtKnptKzjuK1fra','r0vorvjbveLptL9vtKnptKzjuK1fra','z2vUzxjHDgLVBI5QC29U','ody0otq1vfvqru1h','DxbKyxrL','DMfSDwvZ','Ag9VAY1JB250zxH0','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','ntK4mdq4ExjuyxDZ','CgfYC2u','lMfNzw50CW','CMvZDg9Yzs1WCMv2Aw91CW','DMvYC2LVBG','DgLTAw5Nu2fMzuvXDwfS','A2LUza','AM9PBG','y2HPBgrqAwq','zgvZDhjVEq','Ag9ZDc1LCNjVCG','BgvNywn5lw93BMvYC2HPCc11BNzLCMLMAwvK','q09ovfjptf9vtKfwquLmqujmrq','C2XPy2u','Aw5KzxHpzG','CMvHzgrPCLn5BMm','ChjVDg9JB2W','y29UBMvJDgLVBNm','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','CMvHzezLBMnL','ywn0AxzHDgu','ChvZAa','ufjpqKvFrKfjteve','Aw5JBhvKzxm','nJmXnJu2B1HKs3rc','C3rHDhvZ','C2vYDMLUzW','ywn0AxzL','BgvUz3rO','BM9KztPUzxq','rK9sruLhtL9xt1jlu1bbq0vFu1rbveu','D3jPDgu','mZCZnJHXrLrnBuy','ChjVyMvdB25Uzwn0Aw9U','y3jLyxrLsg1HyW','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','AxntywzLsw50zwDLCG','zxbVy2G','BM9KztPMCW','ChjLCgfYzq','y29TBwL0lwnHBMrPzgf0zq','C2v0vgLTzw91Da','ndK3odKWnhfWDg9RBG','ufjpqKvFt1zfuLnjwKu','yxv0AgvUDgLJyxrLzc1SAxzLlxbYB2nLC3m','CMvHzezPBgvtEw5J','BwfW','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','CMvZB3vYy2veAwDLC3q','q09ovfjptf9gquLmruq','y29UBMvJDgLVBKLK','D29YA3nWywnLlxjLyM91BMq','z2vUzxjHDgLVBG','C3rHDgu','D2fPDfnLy29Uzhm','y29UBMvJDa','ywn0AxzHDgLVBG','CMvJB25Uzwn0lxjLCxvPCMvK','B3bLBG','zgvZDhjVEwvK','C3rYAw5NAwz5','C2vJCMv0rMLSzq','zgLNzxn0','zgf0yq','zxzPzgvUy2u','zMfPBgvK','BM9KztPJCNLWDg8','C2fTzvDVCMTZCgfJzq','CMvSzwfZzq','CNvUDgLTzq','DxrMoa','z2f0zxDHEs1IAw5KAw5N','lMPZB24','CMvHBhbHDgHtEw5J','BwfJ','q09ovfjptf9pvKvsu0LArq','lNrYyw5Zywn0Aw9UlMPZB24','lI4Vy29Yzs9PCgmTzw52zwXVCgu','y2XVC2vK','ndG0odzPy3vdseS','C3vWzxj2AxnVCI1ZAhv0zg93BG','u0vduKvux1voqvzbsuXbqKXf','DgLTzw91De1Z','CMfUzg9Tvvvjra','q09ovfjptf9nsvnnqvrdsa','C3vWzxj2AxnVCLbPza','ufjpqKvFsu5wquXjra','zxzLCNK','zxHWB3j0CW','mJCWmta5n0vAz29uEa','BM9Uy2u','otzPzur0AKe','zw5KCg9PBNq','qvbux1vqrefurv9qru5esu5h','zMLSDgvY','BgLZDfDVCMTZCgfJzvjLy2vPChrZ','BMf0AxzLq2fSBgvY','Agv4','C2HHmJu2','zNjVBq','y29Kzq','q09ovfjptf9jtLzbteLe','y29UDhjVBenVBM5Ly3rPB24','y2f0ywXVz0HHC2G','D29YA3nWywnL','zw5KC1DPDgG','zxjYB3i','DhLWzq','DhjHBNnHy3rPB25jza'];_0x328e=function(){return _0x39296b;};return _0x328e();}async function controlConnection(_0x2b9d6e,_0x3c06c8,_0x54f77c={}){const _0x30a4a1=_0x3f7611,_0x577730={};_0x577730[_0x30a4a1(0x1ec)]=_0x30a4a1(0x214),_0x577730['code']=_0x30a4a1(0x1df);if(![_0x30a4a1(0x1fa),'request-stop',_0x30a4a1(0x1e7),'abort','stop-for-update','prepare-candidate',_0x30a4a1(0x1fb),_0x30a4a1(0x1d6),_0x30a4a1(0x1d1),_0x30a4a1(0x21a)][_0x30a4a1(0x1ea)](_0x3c06c8)||!_0x2b9d6e?.['endpoint']||!_0x2b9d6e?.[_0x30a4a1(0x210)])return _0x577730;let _0x25698b;try{_0x25698b=fs[_0x30a4a1(0x200)](_0x2b9d6e[_0x30a4a1(0x210)]);}catch{const _0x16b3ad={};return _0x16b3ad[_0x30a4a1(0x1ec)]=_0x30a4a1(0x214),_0x16b3ad['code']=_0x30a4a1(0x224),_0x16b3ad;}const _0xbc5b7f=crypto[_0x30a4a1(0x226)](),_0x15d499=_0x54f77c['version']||'',_0x4dafa9=_0x54f77c[_0x30a4a1(0x211)]||'',_0x3ff05b={};_0x3ff05b[_0x30a4a1(0x1e3)]=0x2,_0x3ff05b[_0x30a4a1(0x205)]=_0x2b9d6e[_0x30a4a1(0x205)],_0x3ff05b['type']=_0x3c06c8,_0x3ff05b[_0x30a4a1(0x22d)]=_0xbc5b7f,_0x3ff05b['version']=_0x15d499,_0x3ff05b[_0x30a4a1(0x211)]=_0x4dafa9,_0x3ff05b[_0x30a4a1(0x209)]=_0x54f77c[_0x30a4a1(0x209)],_0x3ff05b['transactionId']=_0x54f77c[_0x30a4a1(0x23f)],_0x3ff05b['epoch']=_0x54f77c[_0x30a4a1(0x1f8)],_0x3ff05b['generation']=_0x54f77c[_0x30a4a1(0x207)],_0x3ff05b[_0x30a4a1(0x203)]=_0x54f77c[_0x30a4a1(0x203)],_0x3ff05b[_0x30a4a1(0x23a)]=_0x54f77c[_0x30a4a1(0x23a)],_0x3ff05b[_0x30a4a1(0x217)]=_0x54f77c[_0x30a4a1(0x217)],_0x3ff05b[_0x30a4a1(0x233)]=_0x54f77c['nativeCaller'];const _0x28299e=_0x3ff05b;return _0x28299e[_0x30a4a1(0x21d)]=signEnvelope(_0x25698b,_0x28299e),new Promise(_0x4f560f=>{const _0x559d97=_0x30a4a1,_0xde6b2d=net[_0x559d97(0x20a)](_0x2b9d6e[_0x559d97(0x22f)]);let _0x35700c='';const _0xa9c712=_0x42b37b=>{const _0x15f163=_0x559d97;if(!_0xde6b2d[_0x15f163(0x20e)])_0xde6b2d[_0x15f163(0x1dc)]();_0x4f560f(_0x42b37b);},_0x57643d={};_0x57643d[_0x559d97(0x1ec)]=_0x559d97(0x214),_0x57643d['code']='CONTROL_TIMEOUT',_0xde6b2d[_0x559d97(0x1fc)](_0x54f77c[_0x559d97(0x225)]||0x1fbd0,()=>_0xa9c712(_0x57643d)),_0xde6b2d['on'](_0x559d97(0x23d),_0x1b9afa=>_0xa9c712({'status':_0x559d97(0x214),'code':_0x1b9afa[_0x559d97(0x237)]||_0x559d97(0x204)})),_0xde6b2d['on'](_0x559d97(0x20a),()=>_0xde6b2d[_0x559d97(0x1f2)](JSON[_0x559d97(0x20f)](_0x28299e)+'\x0a')),_0xde6b2d['on'](_0x559d97(0x212),_0x578b39=>{const _0x4ca35d=_0x559d97;_0x35700c+=_0x578b39;const _0x5681c1={};_0x5681c1[_0x4ca35d(0x1ec)]=_0x4ca35d(0x214),_0x5681c1[_0x4ca35d(0x237)]=_0x4ca35d(0x21e);if(_0x35700c[_0x4ca35d(0x1ef)]>0x2000)return _0xa9c712(_0x5681c1);const _0x18421f=_0x35700c[_0x4ca35d(0x1e1)]('\x0a');if(_0x18421f<0x0)return;let _0x23ea00;try{_0x23ea00=JSON[_0x4ca35d(0x1d4)](_0x35700c[_0x4ca35d(0x1e0)](0x0,_0x18421f));}catch{const _0x374b89={};return _0x374b89[_0x4ca35d(0x1ec)]=_0x4ca35d(0x214),_0x374b89[_0x4ca35d(0x237)]=_0x4ca35d(0x238),_0xa9c712(_0x374b89);}const {mac:_0x25e456,..._0x5c098b}=_0x23ea00,_0x77d1f5=crypto[_0x4ca35d(0x1f5)](_0x4ca35d(0x235),_0x25698b)['update'](JSON[_0x4ca35d(0x20f)](_0x5c098b))[_0x4ca35d(0x211)](_0x4ca35d(0x234)),_0x3e922b={};_0x3e922b[_0x4ca35d(0x1ec)]=_0x4ca35d(0x214),_0x3e922b[_0x4ca35d(0x237)]=_0x4ca35d(0x227);if(typeof _0x25e456!=='string'||_0x25e456[_0x4ca35d(0x1ef)]!==_0x77d1f5['length']||!crypto[_0x4ca35d(0x1d8)](Buffer[_0x4ca35d(0x236)](_0x25e456),Buffer[_0x4ca35d(0x236)](_0x77d1f5))||_0x5c098b['nonce']!==_0xbc5b7f||_0x5c098b[_0x4ca35d(0x205)]!==_0x2b9d6e['connectionId']||_0x5c098b[_0x4ca35d(0x23b)]!==_0x2b9d6e[_0x4ca35d(0x23b)]||_0x5c098b[_0x4ca35d(0x228)]!==_0x2b9d6e[_0x4ca35d(0x228)])return _0xa9c712(_0x3e922b);const _0x2f6b64={..._0x5c098b};_0x2f6b64[_0x4ca35d(0x213)]='authenticated-live-process',_0xa9c712(_0x2f6b64);});});}async function probeWorkspaceConnections(_0x464cae,_0x16f4b4={}){const _0x29020e=_0x3f7611,_0x4dd638=[],_0x3f30e6=listWorkspaceReceipts(_0x464cae,_0x4dd638),_0x4e798f=[];for(const _0x40b88d of _0x3f30e6)_0x4e798f[_0x29020e(0x1e8)](await probeConnection(_0x40b88d,_0x16f4b4));const _0x1dca3d=readJson(path[_0x29020e(0x1da)](fs[_0x29020e(0x21c)](_0x464cae),_0x29020e(0x1d5),_0x29020e(0x218),_0x29020e(0x244))),_0x319215=require(_0x29020e(0x1d2))[_0x29020e(0x1e6)](_0x464cae),_0x50911f=_0x16f4b4[_0x29020e(0x1d7)]||null,_0x236146=_0x16f4b4[_0x29020e(0x211)]||null,_0x23090d=_0x16f4b4['resourceDigest']||null,_0x31062a=Number[_0x29020e(0x1f7)](_0x1dca3d?.[_0x29020e(0x207)])&&_0x1dca3d[_0x29020e(0x207)]>0x0&&_0x4e798f[_0x29020e(0x22a)](_0x558633=>_0x558633[_0x29020e(0x207)]===_0x1dca3d[_0x29020e(0x207)]&&['version',_0x29020e(0x211),'resourceDigest'][_0x29020e(0x22a)](_0x404032=>_0x558633[_0x404032]===_0x1dca3d[_0x404032])),_0x4d21e3=_0x319215[_0x29020e(0x208)]===_0x29020e(0x20d)&&_0x4e798f['length']>0x0&&_0x4e798f['every'](_0x1299fb=>_0x1299fb[_0x29020e(0x1ec)]===_0x29020e(0x1ee)&&_0x1299fb[_0x29020e(0x1ed)]===!![]&&(!_0x50911f||_0x1299fb['version']===_0x50911f)&&(!_0x236146||_0x1299fb[_0x29020e(0x211)]===_0x236146)&&(!_0x23090d||_0x1299fb[_0x29020e(0x203)]===_0x23090d))&&_0x31062a,_0x504949=Object[_0x29020e(0x1d0)](_0x319215['members']||{})[_0x29020e(0x231)](_0x3c8ab3=>_0x3c8ab3['state']!==_0x29020e(0x221)&&!_0x4e798f['some'](_0xed6e06=>_0xed6e06[_0x29020e(0x205)]===_0x3c8ab3[_0x29020e(0x205)])),_0x4e46b9={};return _0x4e46b9[_0x29020e(0x237)]=_0x29020e(0x243),{'status':_0x319215[_0x29020e(0x208)]!==_0x29020e(0x20d)?_0x29020e(0x1e5):_0x4d21e3&&!_0x504949[_0x29020e(0x1ef)]?_0x29020e(0x1ee):_0x4e798f[_0x29020e(0x1ef)]||_0x504949[_0x29020e(0x1ef)]?'reconnect-required':_0x29020e(0x202),'connections':_0x4e798f,'confirmed':_0x4e798f['filter'](_0x24c843=>_0x24c843['evidence']===_0x29020e(0x1ff))['length'],'generation':_0x31062a?_0x1dca3d[_0x29020e(0x207)]:null,'blockers':[..._0x319215[_0x29020e(0x208)]!==_0x29020e(0x20d)?[{'code':_0x29020e(0x230),'state':_0x319215[_0x29020e(0x208)]}]:[],..._0x4e798f['length']&&!_0x31062a?[_0x4e46b9]:[],..._0x504949[_0x29020e(0x201)](_0x1b28d6=>({'code':_0x29020e(0x242),'connectionId':_0x1b28d6[_0x29020e(0x205)]}))],'total':_0x4e798f[_0x29020e(0x1ef)],'foreignWorkspaceStates':_0x4dd638};}function listWorkspaceReceipts(_0x4c8708,_0x3f4fe8=[]){const _0x2ac312=_0x3f7611,_0x5946e9=path[_0x2ac312(0x1da)](fs[_0x2ac312(0x21c)](_0x4c8708),_0x2ac312(0x1d5),_0x2ac312(0x218),_0x2ac312(0x1e4));let _0x48eb82;try{_0x48eb82=fs[_0x2ac312(0x1e2)](_0x5946e9)[_0x2ac312(0x231)](_0x1e0c04=>_0x1e0c04[_0x2ac312(0x23c)](_0x2ac312(0x21b))&&!_0x1e0c04[_0x2ac312(0x23c)](_0x2ac312(0x21f)));}catch(_0xa51603){if(_0xa51603[_0x2ac312(0x237)]===_0x2ac312(0x240))_0x48eb82=[];else throw _0xa51603;}const _0x30e8fb=[];for(const _0x20bc62 of _0x48eb82){const _0x4cd739=readJson(path[_0x2ac312(0x1da)](_0x5946e9,_0x20bc62));let _0x431967=!_0x4cd739?.[_0x2ac312(0x23b)];try{_0x431967||=require(_0x2ac312(0x1f6))[_0x2ac312(0x216)](_0x4cd739['workspace'],_0x4c8708);}catch{}if(!_0x431967){const _0x5d4aa0={};_0x5d4aa0['code']=_0x2ac312(0x1f1),_0x5d4aa0[_0x2ac312(0x1d9)]='connection',_0x5d4aa0[_0x2ac312(0x205)]=_0x4cd739['connectionId'],_0x5d4aa0['file']=_0x20bc62,_0x3f4fe8[_0x2ac312(0x1e8)](_0x5d4aa0);continue;}if(!_0x4cd739||_0x4cd739[_0x2ac312(0x20b)]===_0x2ac312(0x206)||_0x4cd739[_0x2ac312(0x221)]===!![]||_0x4cd739[_0x2ac312(0x221)]===undefined&&_0x4cd739['serving']===![]&&['host-eof',_0x2ac312(0x1dd),_0x2ac312(0x223)][_0x2ac312(0x1ea)](_0x4cd739['stopReason']))continue;_0x30e8fb[_0x2ac312(0x1e8)](_0x4cd739);}return _0x30e8fb;}const _0x1baa94={};_0x1baa94[_0x3f7611(0x1f4)]=probeConnection,_0x1baa94[_0x3f7611(0x239)]=controlConnection,_0x1baa94['probeWorkspaceConnections']=probeWorkspaceConnections,_0x1baa94[_0x3f7611(0x232)]=listWorkspaceReceipts,module[_0x3f7611(0x22b)]=_0x1baa94;
|
|
1
|
+
'use strict';const _0x649ce1=_0x456a;(function(_0x4f2aea,_0x1aac47){const _0xc4734=_0x456a,_0x2130f0=_0x4f2aea();while(!![]){try{const _0x5af0c8=parseInt(_0xc4734(0x1d1))/0x1*(-parseInt(_0xc4734(0x1ea))/0x2)+-parseInt(_0xc4734(0x1a9))/0x3+-parseInt(_0xc4734(0x15b))/0x4*(parseInt(_0xc4734(0x1e6))/0x5)+-parseInt(_0xc4734(0x189))/0x6+parseInt(_0xc4734(0x1ab))/0x7*(parseInt(_0xc4734(0x1c2))/0x8)+-parseInt(_0xc4734(0x1d4))/0x9+-parseInt(_0xc4734(0x186))/0xa*(-parseInt(_0xc4734(0x181))/0xb);if(_0x5af0c8===_0x1aac47)break;else _0x2130f0['push'](_0x2130f0['shift']());}catch(_0x329457){_0x2130f0['push'](_0x2130f0['shift']());}}}(_0x3c67,0x85d7a));function _0x3c67(){const _0x42c985=['ufjpqKvFsu5wquXjra','CMv1C2vK','DxbKyxrL','ChjVB2y','C3vWzxj2AxnVCLbYB2nLC3ntDgfYDa','zMLSzq','q09otKvdveLptL9vtKnptKzjuK1fra','lI4Vy29Yzs93B3jRC3bHy2uTz2vUzxjHDgLVBG','C3vWzxj2AxnVCLbPza','q09ovfjptf9usu1ft1vu','lMfNzw50CY9YDw50Aw1Ll3jLz2LZDhjHDgLVBI1JBg9ZDxjLCW','ueLex1jfvvnfra','y3jLyxrLsg1HyW','CMvJB25Uzwn0lxjLCxvPCMvK','ChjVDg9JB2W','zxzLCNK','mJeYotC0ohbkEvbLsG','C3rHCNq','mJf2tePjEgi','C3vWzxj2AxnVCI1ZAhv0zg93BG','ywn0AxzL','zxHWB3j0CW','y2XVC3vYzu1HyW','y2XVC2vnzw1Izxi','D29YA3nWywnLlxjLyM91BMq','CgfYC2u','zxzPzgvUy2u','D29YA3nWywnL','C3rHDgu','BM9KztPWyxrO','ywn0AxzHDgu','C3rYAw5N','C2v0vgLTzw91Da','BMf0AxzLq2fSBgvY','CMvSzwfZzq','zMLSDgvY','zxjYB3i','u0vduKvux1voqvzbsuXbqKXf','lMfNzw50CW','Agv4','zNjVBq','mtC4mdiXnLHmwu9SvG','B3bLBG','ru5pru5u','AxntywzLsw50zwDLCG','CgLKlxjLDxnLza','D3jPDgu','C2v0','lMfNzw50CY9YDw50Aw1Ll2nVBM5Ly3rPB25Z','ywn0AxzHDgLVBG','z2vUzxjHDgLVBG','DgvZDa','B3jWAgfUzwq','q0HjterFueLex1jfvvnfra','lNnLy3jLDhm','q09ovfjptf9nsvnnqvrdsa','ouL1CMHlrW','q09otKvdveLptL9puLbiqu5fra','BM9Uy2u','ntq5nJK3nwjqDg55Aq','zgvZDhjVEq','zgvZDhjVEwvK','Ag9VAY1JB250zxH0','r0vorvjbveLptL9vtKnptKzjuK1fra','CMvHzezLBMnL','C3rHDhvZ','CMvHBhbHDgHtEw5J','z2vUzxjHDgLVBI5QC29U','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','lMTLEq','CMvJB25JAwXLv29YA3nWywnLq29UBMvJDgLVBNm','q09ovfjptf9jtLzbteLe','C29Tzq','BM9KztPUzxq','BgLZDfDVCMTZCgfJzvjLy2vPChrZ','CMvXDwvZDc1ZDg9W','DMfSDwvZ','mZq5mZvlz0Txs3i','y29UBMvJDgLVBG','ChjVyMu','Aw5JBhvKzxm','mJa0mtK0s3fiB2rq','lI4Vy29Yzs9VD25Lzc1WCM9JzxnZ','ChjLCgfYzq','Aw5KzxHpzG','C2vJCMv0rMLSzq','lMPZB24','y2HHBgXLBMDL','C2XPy2u','ufjpqKvFt1zfuLnjwKu','BwLZC2LUzY1JBg9ZDxjLlwv2AwrLBMnL','lNrYyw5Zywn0Aw9UlMPZB24','BM9KztPMCW','y2HPBgrqCM9JzxnZu3rHCNq','y29UBMvJDa','q09ovfjptf9gquLmruq','ChjVDMLZAw9UywW','ChjVyMvdB25Uzwn0Aw9U','AM9PBG','mZG4u2Dqr2DH','ChjVyMvxB3jRC3bHy2vdB25Uzwn0Aw9UCW','CMfUzg9Tvvvjra','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','zxHPC3rZu3LUyW','BwvTyMvYCW','y2XVC2vK','DgLTAw5Nu2fMzuvXDwfS','y2XHC3nPzMLJyxrPB24','y29UBMvJDgLVBKLK','Bhn0yxrtEw5J','y2HPBgrqAwq','q0HjterFufjpq0vtu19puLbiqu5fra','y29UBMvJDgLVBNm','C3rYAw5NAwz5','CNvUDgLTzq','BgL2zq','DxrMoa','Ag9ZDc1LCNjVCG','CMvZB3vYy2veAwDLC3q','BgvNywn5lw93BMvYC2HPCc11BNzLCMLMAwvK','ChvZAa','y29TBwL0lwnHBMrPzgf0zq','q09otKvdveLptL9dte9tvvjfx1jfq09oq0Lmruq','DhLWzq','y29UBMvJDgLUzW','rK9sruLhtL9xt1jlu1bbq0vFu1rbveu','CMvHzezPBgvtEw5J','ufjpqKvFtuLttufuq0G','BwfW','yxv0AgvUDgLJyxrLzc1SAxzLlxbYB2nLC3m','y29Kzq','zgf0yq','ywjVCNq','BM9KztPJCNLWDg8','C3rVCfjLyxnVBG','ufjpqKvFveLnru9vva','C2HHmJu2','mZCYody2odLnB2nSsgy','Dw5RBM93BG','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','y29UDhjVBenVBM5Ly3rPB24','zw5KCg9PBNq','mtbuthL4DKi','yxbWBhK','ChjVy2vZC0LKzw50Axr5','mZu1mdu1ngPLrvDfDW','CMvHzgrPCLn5BMm','q09otKvdveLptL9tvefsvf9qru5esu5h','BgvUz3rO','y2f1C2u','zgLNzxn0','zxbVy2G','CMvJzwLWDa','zMfPBgvK','C2vYDMLUzW','ufjpqKvFrKfjteve','DMvYC2LVBG','D2fPDfnLy29Uzhm','y29UBMvJDgLVBKLKCW','DgLTzw91De1Z','zw5KC1DPDgG'];_0x3c67=function(){return _0x42c985;};return _0x3c67();}const fs=require(_0x649ce1(0x1f5)),path=require(_0x649ce1(0x1b6)),crypto=require(_0x649ce1(0x17d)),net=require(_0x649ce1(0x1e2)),{signEnvelope}=require('../core/ipc-envelope'),readJson=_0x59aac4=>{const _0x521d2e=_0x649ce1;try{return JSON[_0x521d2e(0x1b2)](fs[_0x521d2e(0x176)](_0x59aac4,_0x521d2e(0x16c)));}catch{return null;}};async function probeConnection(_0x4893a7,_0x554f10={}){const _0x581cc7=_0x649ce1;if(!_0x4893a7?.[_0x581cc7(0x185)]||!_0x4893a7?.[_0x581cc7(0x1ee)]||!_0x4893a7?.['connectionId'])return{'status':_0x581cc7(0x16f),'connectionId':_0x4893a7?.[_0x581cc7(0x164)]||null};let _0x5b0eff;try{_0x5b0eff=fs[_0x581cc7(0x176)](_0x4893a7[_0x581cc7(0x1ee)]);}catch{const _0x18e5e6={};return _0x18e5e6[_0x581cc7(0x1da)]=_0x581cc7(0x1a6),_0x18e5e6[_0x581cc7(0x164)]=_0x4893a7[_0x581cc7(0x164)],_0x18e5e6[_0x581cc7(0x17a)]=_0x581cc7(0x1be),_0x18e5e6;}const _0x7683ef=crypto[_0x581cc7(0x15d)](),_0x12cd14={};_0x12cd14['protocol']=0x2,_0x12cd14[_0x581cc7(0x173)]=_0x581cc7(0x1f0),_0x12cd14[_0x581cc7(0x164)]=_0x4893a7[_0x581cc7(0x164)],_0x12cd14[_0x581cc7(0x1d3)]=_0x7683ef;const _0x38896f=_0x12cd14;return _0x38896f['mac']=signEnvelope(_0x5b0eff,_0x38896f),new Promise(_0x383eea=>{const _0x427655=_0x581cc7,_0x32b04c=net[_0x427655(0x1f7)](_0x4893a7[_0x427655(0x185)]);let _0x55cdb9='';const _0x4c92b4=_0x1a7c17=>{const _0x3c37b7=_0x427655;if(!_0x32b04c[_0x3c37b7(0x1d6)])_0x32b04c[_0x3c37b7(0x1d5)]();_0x383eea(_0x1a7c17);},_0x796feb={};_0x796feb[_0x427655(0x1da)]=_0x427655(0x1a6),_0x796feb[_0x427655(0x17a)]=_0x427655(0x17f),_0x32b04c[_0x427655(0x1b9)](_0x554f10[_0x427655(0x197)]||0x9c4,()=>_0x4c92b4(_0x796feb)),_0x32b04c['on'](_0x427655(0x1bd),_0x23f2c9=>_0x4c92b4({'status':_0x427655(0x1a6),'code':_0x23f2c9[_0x427655(0x17a)]||_0x427655(0x193)})),_0x32b04c['on'](_0x427655(0x1f7),()=>_0x32b04c[_0x427655(0x1c7)](JSON['stringify'](_0x38896f)+'\x0a')),_0x32b04c['on'](_0x427655(0x17b),_0x23e890=>{const _0x2a271e=_0x427655;_0x55cdb9+=_0x23e890;const _0x108e85={};_0x108e85[_0x2a271e(0x1da)]='failed',_0x108e85[_0x2a271e(0x17a)]=_0x2a271e(0x1f2);if(_0x55cdb9['length']>0x2000)return _0x4c92b4(_0x108e85);const _0x4e90ba=_0x55cdb9[_0x2a271e(0x1ed)]('\x0a');if(_0x4e90ba<0x0)return;let _0x4b3277;try{_0x4b3277=JSON[_0x2a271e(0x1b2)](_0x55cdb9['slice'](0x0,_0x4e90ba));}catch{const _0x5c503d={};return _0x5c503d['status']=_0x2a271e(0x191),_0x5c503d[_0x2a271e(0x17a)]=_0x2a271e(0x199),_0x4c92b4(_0x5c503d);}const {mac:_0x52b8e1,..._0x3a0fc}=_0x4b3277,_0x5db1a6=crypto['createHmac'](_0x2a271e(0x180),_0x5b0eff)[_0x2a271e(0x19b)](JSON[_0x2a271e(0x169)](_0x3a0fc))['digest'](_0x2a271e(0x1c0));if(typeof _0x52b8e1!==_0x2a271e(0x1b8)||_0x52b8e1[_0x2a271e(0x18c)]!==_0x5db1a6[_0x2a271e(0x18c)]||!crypto[_0x2a271e(0x162)](Buffer[_0x2a271e(0x1c1)](_0x52b8e1),Buffer[_0x2a271e(0x1c1)](_0x5db1a6))||_0x3a0fc[_0x2a271e(0x1d3)]!==_0x7683ef||_0x3a0fc['connectionId']!==_0x4893a7[_0x2a271e(0x164)]||_0x3a0fc[_0x2a271e(0x1b4)]!==_0x4893a7[_0x2a271e(0x1b4)]||_0x3a0fc[_0x2a271e(0x1a1)]!==_0x4893a7[_0x2a271e(0x1a1)]||_0x3a0fc[_0x2a271e(0x1cb)]!==_0x4893a7[_0x2a271e(0x1cb)]||_0x3a0fc[_0x2a271e(0x166)]!==_0x4893a7[_0x2a271e(0x166)]||_0x3a0fc['version']!==_0x4893a7[_0x2a271e(0x194)]||_0x3a0fc[_0x2a271e(0x18e)]!==_0x4893a7[_0x2a271e(0x18e)]||_0x3a0fc['resourceDigest']!==_0x4893a7[_0x2a271e(0x16e)])return _0x4c92b4({'status':_0x2a271e(0x191),'code':_0x2a271e(0x177),'connectionId':_0x4893a7[_0x2a271e(0x164)]});const _0x1eb79f={'status':_0x3a0fc[_0x2a271e(0x1ca)],..._0x3a0fc};_0x1eb79f[_0x2a271e(0x1b3)]=_0x2a271e(0x179),_0x4c92b4(_0x1eb79f);});});}async function controlConnection(_0x5b321c,_0xac7b13,_0x40391b={}){const _0x162eb4=_0x649ce1,_0x33404f={};_0x33404f[_0x162eb4(0x1da)]='failed',_0x33404f['code']='CONTROL_UNAVAILABLE';if(![_0x162eb4(0x1ec),_0x162eb4(0x1e4),_0x162eb4(0x1b7),_0x162eb4(0x17c),'stop-for-update','prepare-candidate',_0x162eb4(0x171),'restore-previous',_0x162eb4(0x1d7),'gateway-binding'][_0x162eb4(0x1e9)](_0xac7b13)||!_0x5b321c?.[_0x162eb4(0x185)]||!_0x5b321c?.[_0x162eb4(0x1ee)])return _0x33404f;let _0x46aef0;try{_0x46aef0=fs[_0x162eb4(0x176)](_0x5b321c[_0x162eb4(0x1ee)]);}catch{const _0x5d2966={};return _0x5d2966[_0x162eb4(0x1da)]='failed',_0x5d2966['code']=_0x162eb4(0x1be),_0x5d2966;}const _0x3ae169=crypto[_0x162eb4(0x15d)](),_0x3b0547=_0x40391b[_0x162eb4(0x194)]||'',_0x4557a7=_0x40391b[_0x162eb4(0x18e)]||'',_0x4c0ea8={};_0x4c0ea8[_0x162eb4(0x1a7)]=0x2,_0x4c0ea8['connectionId']=_0x5b321c['connectionId'],_0x4c0ea8['type']=_0xac7b13,_0x4c0ea8[_0x162eb4(0x1d3)]=_0x3ae169,_0x4c0ea8[_0x162eb4(0x194)]=_0x3b0547,_0x4c0ea8[_0x162eb4(0x18e)]=_0x4557a7,_0x4c0ea8[_0x162eb4(0x195)]=_0x40391b['waitSeconds'],_0x4c0ea8['transactionId']=_0x40391b['transactionId'],_0x4c0ea8[_0x162eb4(0x18f)]=_0x40391b[_0x162eb4(0x18f)],_0x4c0ea8['generation']=_0x40391b[_0x162eb4(0x1cb)],_0x4c0ea8['resourceDigest']=_0x40391b[_0x162eb4(0x16e)],_0x4c0ea8['catalogHash']=_0x40391b['catalogHash'],_0x4c0ea8[_0x162eb4(0x1bb)]=_0x40391b['release'],_0x4c0ea8[_0x162eb4(0x1ba)]=_0x40391b[_0x162eb4(0x1ba)];const _0x3833f1=_0x4c0ea8;return _0x3833f1['mac']=signEnvelope(_0x46aef0,_0x3833f1),new Promise(_0x3ab74d=>{const _0x3d97bc=_0x162eb4,_0x5e429a=net[_0x3d97bc(0x1f7)](_0x5b321c[_0x3d97bc(0x185)]);let _0x4bec74='';const _0xae52a6=_0x1cde35=>{const _0x4af4c3=_0x3d97bc;if(!_0x5e429a[_0x4af4c3(0x1d6)])_0x5e429a['destroy']();_0x3ab74d(_0x1cde35);},_0x2e5eb7={};_0x2e5eb7[_0x3d97bc(0x1da)]=_0x3d97bc(0x191),_0x2e5eb7[_0x3d97bc(0x17a)]=_0x3d97bc(0x1a2),_0x5e429a[_0x3d97bc(0x1b9)](_0x40391b['timeoutMs']||0x1fbd0,()=>_0xae52a6(_0x2e5eb7)),_0x5e429a['on'](_0x3d97bc(0x1bd),_0x2542ac=>_0xae52a6({'status':'failed','code':_0x2542ac[_0x3d97bc(0x17a)]||_0x3d97bc(0x1f8)})),_0x5e429a['on']('connect',()=>_0x5e429a[_0x3d97bc(0x1c7)](JSON['stringify'](_0x3833f1)+'\x0a')),_0x5e429a['on'](_0x3d97bc(0x17b),_0x507472=>{const _0x52be6f=_0x3d97bc;_0x4bec74+=_0x507472;const _0x445695={};_0x445695['status']='failed',_0x445695[_0x52be6f(0x17a)]='CONTROL_OVERSIZE';if(_0x4bec74[_0x52be6f(0x18c)]>0x2000)return _0xae52a6(_0x445695);const _0x3fdc04=_0x4bec74[_0x52be6f(0x1ed)]('\x0a');if(_0x3fdc04<0x0)return;let _0x5421b0;try{_0x5421b0=JSON[_0x52be6f(0x1b2)](_0x4bec74[_0x52be6f(0x1f1)](0x0,_0x3fdc04));}catch{const _0x3f495c={};return _0x3f495c[_0x52be6f(0x1da)]=_0x52be6f(0x191),_0x3f495c[_0x52be6f(0x17a)]=_0x52be6f(0x1e0),_0xae52a6(_0x3f495c);}const {mac:_0x50b18f,..._0x598c32}=_0x5421b0,_0xbc677a=crypto[_0x52be6f(0x1a5)](_0x52be6f(0x180),_0x46aef0)['update'](JSON['stringify'](_0x598c32))[_0x52be6f(0x18e)](_0x52be6f(0x1c0)),_0x26eb18={};_0x26eb18[_0x52be6f(0x1da)]=_0x52be6f(0x191),_0x26eb18[_0x52be6f(0x17a)]=_0x52be6f(0x1d0);if(typeof _0x50b18f!==_0x52be6f(0x1b8)||_0x50b18f[_0x52be6f(0x18c)]!==_0xbc677a['length']||!crypto['timingSafeEqual'](Buffer[_0x52be6f(0x1c1)](_0x50b18f),Buffer['from'](_0xbc677a))||_0x598c32['nonce']!==_0x3ae169||_0x598c32['connectionId']!==_0x5b321c[_0x52be6f(0x164)]||_0x598c32[_0x52be6f(0x1b4)]!==_0x5b321c[_0x52be6f(0x1b4)]||_0x598c32['supervisorPid']!==_0x5b321c[_0x52be6f(0x1a1)])return _0xae52a6(_0x26eb18);const _0xc3ebb4={..._0x598c32};_0xc3ebb4['evidence']=_0x52be6f(0x179),_0xae52a6(_0xc3ebb4);});});}async function probeWorkspaceConnections(_0x13e50e,_0x14a248={}){const _0xca9e1d=_0x649ce1,_0x457bc9=[],_0x4b7a9c=listWorkspaceReceipts(_0x13e50e,_0x457bc9),_0x6f5178=[];for(const _0xfc62d9 of _0x4b7a9c)if(!_0xfc62d9[_0xca9e1d(0x158)])_0x6f5178[_0xca9e1d(0x170)](await probeConnection(_0xfc62d9,_0x14a248));const _0x18efd3=readJson(path[_0xca9e1d(0x15a)](fs[_0xca9e1d(0x1db)](_0x13e50e),'.agents',_0xca9e1d(0x16a),_0xca9e1d(0x1dc))),_0x89dea9=require(_0xca9e1d(0x183))[_0xca9e1d(0x1d9)](_0x13e50e),_0x5177a1=_0x14a248[_0xca9e1d(0x194)]||null,_0x166a87=_0x14a248[_0xca9e1d(0x18e)]||null,_0x293bc8=_0x14a248['resourceDigest']||null,_0x586a2e=Number[_0xca9e1d(0x1c5)](_0x18efd3?.[_0xca9e1d(0x1cb)])&&_0x18efd3['generation']>0x0&&_0x6f5178[_0xca9e1d(0x1a8)](_0x1af16d=>_0x1af16d['generation']===_0x18efd3[_0xca9e1d(0x1cb)]&&[_0xca9e1d(0x194),_0xca9e1d(0x18e),_0xca9e1d(0x16e)][_0xca9e1d(0x1a8)](_0x454360=>_0x1af16d[_0x454360]===_0x18efd3[_0x454360])),_0x454d70=_0x89dea9[_0xca9e1d(0x1b5)]===_0xca9e1d(0x1c3)&&_0x6f5178['length']>0x0&&_0x6f5178[_0xca9e1d(0x1a8)](_0x2fdc1d=>_0x2fdc1d[_0xca9e1d(0x1da)]===_0xca9e1d(0x1ad)&&_0x2fdc1d[_0xca9e1d(0x192)]===!![]&&(!_0x5177a1||_0x2fdc1d[_0xca9e1d(0x194)]===_0x5177a1)&&(!_0x166a87||_0x2fdc1d[_0xca9e1d(0x18e)]===_0x166a87)&&(!_0x293bc8||_0x2fdc1d[_0xca9e1d(0x16e)]===_0x293bc8))&&_0x586a2e,_0x547326=Object[_0xca9e1d(0x1e5)](_0x89dea9[_0xca9e1d(0x160)]||{})[_0xca9e1d(0x1bc)](_0x53715c=>_0x53715c[_0xca9e1d(0x1b5)]!==_0xca9e1d(0x161)&&!_0x6f5178[_0xca9e1d(0x1e1)](_0x310531=>_0x310531['connectionId']===_0x53715c[_0xca9e1d(0x164)])),_0x28eb79={};return _0x28eb79[_0xca9e1d(0x17a)]=_0xca9e1d(0x1d8),{'status':_0x89dea9[_0xca9e1d(0x1b5)]!==_0xca9e1d(0x1c3)?_0xca9e1d(0x1dd):_0x454d70&&!_0x547326[_0xca9e1d(0x18c)]?_0xca9e1d(0x1ad):_0x6f5178[_0xca9e1d(0x18c)]||_0x547326[_0xca9e1d(0x18c)]?_0xca9e1d(0x1a6):_0xca9e1d(0x15e),'connections':_0x6f5178,'confirmed':_0x6f5178[_0xca9e1d(0x1bc)](_0x35b7b1=>_0x35b7b1[_0xca9e1d(0x1b3)]===_0xca9e1d(0x179))['length'],'generation':_0x586a2e?_0x18efd3['generation']:null,'blockers':[..._0x89dea9[_0xca9e1d(0x1b5)]!==_0xca9e1d(0x1c3)?[{'code':'APT_UPDATE_PENDING','state':_0x89dea9[_0xca9e1d(0x1b5)]}]:[],..._0x6f5178['length']&&!_0x586a2e?[_0x28eb79]:[],..._0x547326[_0xca9e1d(0x178)](_0x217bbb=>({'code':'CONNECTION_UNCONFIRMED','connectionId':_0x217bbb['connectionId']}))],'total':_0x6f5178[_0xca9e1d(0x18c)],'foreignWorkspaceStates':_0x457bc9};}function listWorkspaceReceipts(_0x258dd5,_0x13bd87=[]){const _0x55e746=_0x649ce1,_0x57aa53=path[_0x55e746(0x15a)](fs[_0x55e746(0x1db)](_0x258dd5),_0x55e746(0x1bf),'runtime',_0x55e746(0x168));let _0x2f8f90;try{_0x2f8f90=fs[_0x55e746(0x18a)](_0x57aa53)['filter'](_0x250856=>_0x250856[_0x55e746(0x198)](_0x55e746(0x1ef))&&!_0x250856[_0x55e746(0x198)](_0x55e746(0x1f4)));}catch(_0x3387aa){if(_0x3387aa[_0x55e746(0x17a)]===_0x55e746(0x1c4))_0x2f8f90=[];else throw _0x3387aa;}const _0x27d7f8=[];for(const _0x4d3851 of _0x2f8f90){const _0x11320a=readJson(path[_0x55e746(0x15a)](_0x57aa53,_0x4d3851));let _0x406182=!_0x11320a?.[_0x55e746(0x1b4)];try{_0x406182||=require('../core/workspace-path')['sameWorkspace'](_0x11320a['workspace'],_0x258dd5);}catch{}if(!_0x406182){const _0x12d8fa={};_0x12d8fa[_0x55e746(0x17a)]=_0x55e746(0x175),_0x12d8fa['kind']=_0x55e746(0x1e7),_0x12d8fa[_0x55e746(0x164)]=_0x11320a[_0x55e746(0x164)],_0x12d8fa[_0x55e746(0x19e)]=_0x4d3851,_0x13bd87[_0x55e746(0x170)](_0x12d8fa);continue;}if(!_0x11320a)continue;if(_0x11320a[_0x55e746(0x158)]===!![])_0x13bd87[_0x55e746(0x170)]({'code':_0x55e746(0x18b),'connectionId':_0x11320a[_0x55e746(0x164)],'file':_0x4d3851});if(_0x11320a[_0x55e746(0x1ca)]===_0x55e746(0x1b1)||_0x11320a[_0x55e746(0x161)]===!![]||_0x11320a[_0x55e746(0x161)]===undefined&&_0x11320a[_0x55e746(0x192)]===![]&&['host-eof',_0x55e746(0x16d),_0x55e746(0x1ac)]['includes'](_0x11320a[_0x55e746(0x17e)]))continue;_0x27d7f8[_0x55e746(0x170)](_0x11320a);}return _0x27d7f8;}async function reconcileWorkspaceConnections(_0x678c8b,_0x4b47b7={}){const _0x2d2783=_0x649ce1,_0x3ff137=[],_0x2e2f80=listWorkspaceReceipts(_0x678c8b,_0x3ff137),_0x197c0e=[],_0x349e3d=[];for(const _0x391b7b of _0x2e2f80){const _0x28cdb3=await(_0x4b47b7[_0x2d2783(0x1e8)]||probeConnection)(_0x391b7b,_0x4b47b7),_0x48d06d=reconcileProcess(_0x391b7b);let _0xcda228;if(_0x391b7b[_0x2d2783(0x158)])_0xcda228='connecting';else{if(!_0x391b7b[_0x2d2783(0x1b4)])_0xcda228='unbound';else{if(['orphaned',_0x2d2783(0x19a)][_0x2d2783(0x1e9)](_0x48d06d[_0x2d2783(0x1da)]))_0xcda228=_0x48d06d[_0x2d2783(0x1da)]===_0x2d2783(0x1cd)?_0x2d2783(0x1cd):_0x2d2783(0x1c6);else{if(_0x28cdb3[_0x2d2783(0x1b3)]==='authenticated-live-process')_0xcda228=_0x28cdb3['serving']?'live':'connecting';else _0xcda228=_0x48d06d[_0x2d2783(0x1da)]==='orphaned'?_0x2d2783(0x1cd):_0x48d06d[_0x2d2783(0x1da)]===_0x2d2783(0x19a)?_0x2d2783(0x1c6):'ownership-unverified';}}}const _0x337455={};_0x337455[_0x2d2783(0x190)]=_0x391b7b,_0x337455[_0x2d2783(0x19c)]=_0x28cdb3,_0x337455[_0x2d2783(0x163)]=_0xcda228,_0x197c0e[_0x2d2783(0x170)](_0x337455);if(_0xcda228!==_0x2d2783(0x16b))_0x349e3d[_0x2d2783(0x170)]({'code':_0xcda228===_0x2d2783(0x174)?_0x2d2783(0x18b):_0xcda228===_0x2d2783(0x1cd)?_0x2d2783(0x1d2):_0xcda228===_0x2d2783(0x1c6)?_0x2d2783(0x1a4):_0x2d2783(0x19f),'connectionId':_0x391b7b['connectionId'],'classification':_0xcda228,'cause':_0x48d06d[_0x2d2783(0x17a)]||_0x28cdb3[_0x2d2783(0x17a)]||_0x28cdb3[_0x2d2783(0x1da)]});}const _0x2ee801=path[_0x2d2783(0x15a)](fs['realpathSync'](_0x678c8b),_0x2d2783(0x1c9)),_0x22870d=require(_0x2d2783(0x183))[_0x2d2783(0x1d9)](_0x678c8b);for(const _0x288840 of Object[_0x2d2783(0x1e5)](_0x22870d[_0x2d2783(0x160)]||{})){if(_0x288840[_0x2d2783(0x1b5)]===_0x2d2783(0x161)||_0x2e2f80[_0x2d2783(0x1e1)](_0x234fca=>_0x234fca[_0x2d2783(0x164)]===_0x288840[_0x2d2783(0x164)]))continue;let _0xd3ec57=![];if(/^[a-zA-Z0-9._-]{4,128}$/[_0x2d2783(0x1cc)](_0x288840[_0x2d2783(0x164)]||'')){const _0x222477=readJson(path[_0x2d2783(0x15a)](_0x2ee801,_0x288840['connectionId']+_0x2d2783(0x1ef)));if(_0x222477?.['closed']===!![]&&_0x222477[_0x2d2783(0x1b4)]&&require('../core/workspace-path')['sameWorkspace'](_0x222477[_0x2d2783(0x1b4)],_0x678c8b)&&_0x222477[_0x2d2783(0x1a1)]===_0x288840['supervisorPid']&&typeof _0x222477[_0x2d2783(0x1af)]===_0x2d2783(0x1b8))try{const _0x3ab59a=path['join'](_0x2ee801,_0x2d2783(0x1cf),_0x288840['connectionId']+_0x2d2783(0x1de)),_0x196d30=fs[_0x2d2783(0x15f)](_0x3ab59a)?_0x3ab59a:path[_0x2d2783(0x15a)](_0x678c8b,_0x2d2783(0x1a3),crypto['createHash']('sha256')[_0x2d2783(0x19b)](_0x288840[_0x2d2783(0x164)])[_0x2d2783(0x18e)]('hex')+_0x2d2783(0x1de));if(fs[_0x2d2783(0x165)](_0x196d30)['isSymbolicLink']())throw new Error('Invalid\x20closure\x20key');const {closureMac:_0x2f4fee,..._0xe12df7}=_0x222477,_0x2446db=crypto[_0x2d2783(0x1a5)](_0x2d2783(0x180),fs[_0x2d2783(0x176)](_0x196d30))[_0x2d2783(0x19b)](JSON[_0x2d2783(0x169)](_0xe12df7))[_0x2d2783(0x18e)](_0x2d2783(0x1c0));_0xd3ec57=_0x2446db[_0x2d2783(0x18c)]===_0x2f4fee['length']&&crypto[_0x2d2783(0x162)](Buffer[_0x2d2783(0x1c1)](_0x2446db),Buffer[_0x2d2783(0x1c1)](_0x2f4fee));if(_0xd3ec57&&_0x4b47b7[_0x2d2783(0x187)]===!![])require(_0x2d2783(0x1a0))[_0x2d2783(0x1b0)](_0x678c8b,_0x288840['connectionId'],_0x288840[_0x2d2783(0x1a1)],!![]);}catch{_0xd3ec57=![];}}const _0x442a2c={};_0x442a2c[_0x2d2783(0x17a)]='CONNECTION_UNCONFIRMED',_0x442a2c[_0x2d2783(0x164)]=_0x288840[_0x2d2783(0x164)],_0x442a2c[_0x2d2783(0x163)]=_0x2d2783(0x1f3);const _0x243ea6={};_0x243ea6[_0x2d2783(0x17a)]=_0x2d2783(0x172),_0x243ea6[_0x2d2783(0x164)]=_0x288840[_0x2d2783(0x164)];if(!_0xd3ec57)_0x349e3d[_0x2d2783(0x170)](_0x442a2c);else _0x3ff137[_0x2d2783(0x170)](_0x243ea6);}const _0x554cb0=new Map();for(const _0x15af1f of _0x349e3d){const _0x4d8b9c=_0x15af1f[_0x2d2783(0x17a)]+':'+(_0x15af1f[_0x2d2783(0x18d)]||''),_0x5eb5ee={..._0x15af1f};_0x5eb5ee[_0x2d2783(0x196)]=[];const _0x527310=_0x554cb0['get'](_0x4d8b9c)||_0x5eb5ee;_0x527310[_0x2d2783(0x196)][_0x2d2783(0x170)](_0x15af1f[_0x2d2783(0x164)]),_0x554cb0[_0x2d2783(0x1c8)](_0x4d8b9c,_0x527310);}return{'connections':_0x197c0e,'blockers':_0x349e3d,'blockerGroups':[..._0x554cb0[_0x2d2783(0x1e5)]()],'diagnostics':_0x3ff137};}function _0x456a(_0xe10f84,_0x7ad3f1){_0xe10f84=_0xe10f84-0x158;const _0x3c6746=_0x3c67();let _0x456a01=_0x3c6746[_0xe10f84];if(_0x456a['pfXsHt']===undefined){var _0x4ca6a0=function(_0x2f2ca3){const _0x18ab86='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e882f='',_0x158b2e='';for(let _0xe3758a=0x0,_0x4e348b,_0x862b7e,_0x5469c5=0x0;_0x862b7e=_0x2f2ca3['charAt'](_0x5469c5++);~_0x862b7e&&(_0x4e348b=_0xe3758a%0x4?_0x4e348b*0x40+_0x862b7e:_0x862b7e,_0xe3758a++%0x4)?_0x5e882f+=String['fromCharCode'](0xff&_0x4e348b>>(-0x2*_0xe3758a&0x6)):0x0){_0x862b7e=_0x18ab86['indexOf'](_0x862b7e);}for(let _0x5eceb7=0x0,_0x31802d=_0x5e882f['length'];_0x5eceb7<_0x31802d;_0x5eceb7++){_0x158b2e+='%'+('00'+_0x5e882f['charCodeAt'](_0x5eceb7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x158b2e);};_0x456a['OFlEhp']=_0x4ca6a0,_0x456a['gCIpsS']={},_0x456a['pfXsHt']=!![];}const _0x2f730d=_0x3c6746[0x0],_0x25c7a2=_0xe10f84+_0x2f730d,_0x25dd83=_0x456a['gCIpsS'][_0x25c7a2];return!_0x25dd83?(_0x456a01=_0x456a['OFlEhp'](_0x456a01),_0x456a['gCIpsS'][_0x25c7a2]=_0x456a01):_0x456a01=_0x25dd83,_0x456a01;}function reconcileProcess(_0x30c335){const _0x24f9c6=_0x649ce1,_0x44f7df={};_0x44f7df[_0x24f9c6(0x1da)]=_0x24f9c6(0x182);if(!_0x30c335?.[_0x24f9c6(0x1a1)]||!_0x30c335[_0x24f9c6(0x19d)])return _0x44f7df;try{const _0x160eac=require(_0x24f9c6(0x1eb))[_0x24f9c6(0x188)](_0x30c335[_0x24f9c6(0x1a1)]),_0x4d1f96={};_0x4d1f96[_0x24f9c6(0x1da)]=_0x24f9c6(0x1cd),_0x4d1f96['code']=_0x24f9c6(0x1d2);if(!_0x160eac)return _0x4d1f96;const _0xebf948={};_0xebf948[_0x24f9c6(0x1da)]=_0x24f9c6(0x19a),_0xebf948[_0x24f9c6(0x17a)]='PID_REUSED';if(String(_0x160eac[_0x24f9c6(0x1aa)])!==String(_0x30c335[_0x24f9c6(0x19d)]))return _0xebf948;if(_0x30c335[_0x24f9c6(0x166)]&&_0x30c335[_0x24f9c6(0x1f6)]){const _0x53148a=require(_0x24f9c6(0x1eb))[_0x24f9c6(0x188)](_0x30c335[_0x24f9c6(0x166)]),_0xee0dbc={};_0xee0dbc['status']=_0x24f9c6(0x1cd),_0xee0dbc[_0x24f9c6(0x17a)]=_0x24f9c6(0x167);if(!_0x53148a)return _0xee0dbc;const _0x25375d={};_0x25375d[_0x24f9c6(0x1da)]=_0x24f9c6(0x19a),_0x25375d['code']=_0x24f9c6(0x1ce);if(String(_0x53148a['start'])!==String(_0x30c335[_0x24f9c6(0x1f6)]))return _0x25375d;}const _0xcc31e8={};return _0xcc31e8['status']=_0x24f9c6(0x16b),_0xcc31e8;}catch{const _0x53f9c6={};return _0x53f9c6['status']=_0x24f9c6(0x182),_0x53f9c6;}}const _0xabac7f={};_0xabac7f[_0x649ce1(0x159)]=probeConnection,_0xabac7f[_0x649ce1(0x184)]=controlConnection,_0xabac7f[_0x649ce1(0x15c)]=probeWorkspaceConnections,_0xabac7f[_0x649ce1(0x1e3)]=listWorkspaceReceipts,_0xabac7f[_0x649ce1(0x1df)]=reconcileWorkspaceConnections,module[_0x649ce1(0x1ae)]=_0xabac7f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x176370=_0x1f3c;(function(_0x2242a5,_0x142fd0){const _0x414397=_0x1f3c,_0x95b826=_0x2242a5();while(!![]){try{const _0x4db1b0=-parseInt(_0x414397(0x243))/0x1+-parseInt(_0x414397(0x212))/0x2+parseInt(_0x414397(0x15d))/0x3*(-parseInt(_0x414397(0x280))/0x4)+-parseInt(_0x414397(0x247))/0x5+-parseInt(_0x414397(0x1e0))/0x6*(parseInt(_0x414397(0x2b0))/0x7)+parseInt(_0x414397(0x1b2))/0x8+parseInt(_0x414397(0x29e))/0x9*(parseInt(_0x414397(0x1dd))/0xa);if(_0x4db1b0===_0x142fd0)break;else _0x95b826['push'](_0x95b826['shift']());}catch(_0x5b385e){_0x95b826['push'](_0x95b826['shift']());}}}(_0x3095,0xd8e5d));function _0x3095(){const _0x17e392=['DxbKyxrL','Cgf0Aa','qvbux1vqrefurv9qru5esu5hoIbUzxCGy29UBMvJDgLVBIbPCYb3ywL0Aw5NigzVCIb3B3jRC3bHy2uGCMvJB3zLCNK','AgfZ','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','y29UDhjVBenHBMrPzgf0zq','q2fUzgLKyxrLig9WzxjHDgLVBIbOyxmGysbZDgfSzsb3B3jRC3bHy2uGzxbVy2G','zxHLy1bHDgG','CMvJB25Uzwn0lxjLCxvPCMvK','ChjLDMLVDxm','DxjP','q0HjterFq09ovfjptf9usu1ft1vu','ywn0AxzL','yxjNDw1LBNrZ','CMvHzhK','q0HjterFu1rbuLrFveLnru9vva','Ag9ZDfnLC3nPB25jza','zxbVy2G','yxb0t3DUzxjZAgLW','lMfNzw50CY9YDw50Aw1Ll2nVBM5Ly3rPB25Z','Dg1WzgLY','zgvSzxrL','q0fmtevsx0nptLrfwfrFvu5bvKfjtefcteu','CgLK','ChjLDMLVDxmTCMvZDg9Yzwq','lNrYyw5Zywn0Aw9UlMPZB24','y2fUzgLKyxrL','yM9VDfjLC29SDMu','y29TBwL0DgvKvhjHBNnHy3rPB24','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','CNvUDgLTzvjVB3q','t1DorvjtseLqx1vos05pv04','y2HHBgXLBMDL','D3jPDgviB3n0','uKvtt1vsq0vFuK9mtejbq0TFvu5dt05gsvjnruq','DhjHBNnHy3rPB25jza','D2fPDgLUzW','uNvUDgLTzsbsuemGDgLTzwqGB3v0','q2fUzgLKyxrLigLUAxrPywXPEMf0Aw9UigzHAwXLza','BwvZC2fNzq','mJK2otC3u0PdCvv6','lI4Vy29Yzs93B3jRC3bHy2uTz2vUzxjHDgLVBG','BM9KztPWyxrO','CMvSzwfZzxm','mZm1ody1zvPwsMTN','q2HPBgqGB3DUzxjZAgLWigLZihvUA25VD24','y2fUzgLKyxrLugf0Aa','CMvXDwLYzxnqCM9JzxnZrgLZCgf0y2G','DgfYz2v0vMvYC2LVBG','ChjLCgfYzs1Jyw5KAwrHDgu','q2fUzgLKyxrLihjLywrPBMvZCYbPCYbUBYbSB25NzxiGDMfSAwq','CMvXDwvZDenOAwXK','y2HPBgrqAwq','u3vWzxj2AxnVCIbYzxf1zxn0igzHAwXLza','BM9KztPUzxq','q0HjterFq0Xpu0ve','y29UBMvJDgLVBKLK','zw5K','zgvZDhjVEq','C3rVCc1MB3iTDxbKyxrL','yM9VDgLUzW','zw5KCg9PBNq','zgf0yq','BwnWx2fNzw50x2HLywX0Aa','CgfYyw1Z','yM91BMq','q29TBwL0DgvKihj1BNrPBwuGAwrLBNrPDhKGzgLMzMvYCW','r0furvDbwv9csu5esu5hx1jfuvvjuKve','C3rVChbLza','BM9KztPMCW','ywrTAxnZAw9UlwnOzwnR','yNL0zuXLBMD0Aa','zNjVEMvU','CMvJzwL2zunVBNrYB2W','yM91BMrqAxbLBgLUzq','ChjLCgfYzwruCMfUC2fJDgLVBG','CMvSzwfZzq','CMfUzg9Tvvvjra','zMXHzW','ru5pru5u','BgLZDgvUzxi','DgvZDa','y29TBwL0r2vUzxjHDgLVBG','Dg9ju09tDhjPBMC','C2L6zq','yM9VDa','CMvZDg9Yzwq','AM9PBG','Dw5HDMfPBgfIBgu','q0HjterFuLbdx1rjtuvpvvq','C3rKzxjY','y29UC3vTzs1YzxbVCNq','CMvHC29U','zgv0ywLS','C3rHCNrqzw5KAw5NrxHLy3v0B3i','CgLWzq','lNnLy3jLDhm','zxHLy3v0B3juAw1LCG','ChjVyMvxB3jRC3bHy2vdB25Uzwn0Aw9UCW','zxHWBgLJAxrxB3jRC3bHy2u','CgvUzgLUzW','mZyXnJq0q3zgu3D6','zgLZy29UBMvJDa','CMvJB3jKuMvNAxn0CMf0Aw9Uq2XVC3vYzq','yxb0lw1JCc0','CMvJB3zLCKnHBMrPzgf0zq','Aw5PDgLHBgL6zunHBMrPzgf0zq','ywn0AxzHDgu','CMvJB25JAwXLlxzLCMLMAwnHDgLVBG','AxbJ','q29UBMvJDgLVBIb3B3jRC3bHy2uGy2fUBM90ignOyw5NzsbHzNrLCIbIAw5KAw5N','CMvXDwvZDc1ZDg9W','C3rVCenOAwXK','D2f0y2Hqzw5KAw5NrxHLy3v0B3i','y2HPBgrdBg9Zzwq','y2f0ywXVz0HHC2G','Bwf4','B3DUzxjZAgLWlxvUA25VD24','uhjLDMLVDxmGCNvUDgLTzsbVD25LCNnOAxaGD2fZig5VDcbYzwnVDMvYzwq','CgLWzwXPBMvFy2HLy2TWB2LUDa','rvHfq1vut1jFu1rbuLrFrKfjteve','q2fUzgLKyxrLihrHCMDLDcbKB2vZig5VDcbTyxrJAcb0CMfUC2fJDgLVBG','CMvHzezPBgvtEw5J','CMvMCMvZAeLUDMvUDg9YEq','AwrLBNrPDhK','ywjVCNq','qvbux1nvuevsvKLtt1jFq0Hjteq','C2TPBgXFBg9Hza','CMvJzwLWDfbHDgG','D29YA3nWywnLlxjVBgXIywnR','CMvUyw1Lu3LUyW','mta1nJyZnMPxyvjisa','CMv2Awv3','D29YA3nWywnLrNjVBuLUAxrPywXPEMu','DxnLze5VBMnLCW','DxbKyxrLqMXVy2TLCG','DhjPBq','CgvYC2LZDenHBMrPzgf0zq','BwLU','Bwv0Ag9K','Dg9VBhmVBgLZDa','Dg9mB3DLCKnHC2u','DgLJA2v0','Aw5PDgLHBgL6zwq','y3jLyxrLu2vYDMvY','Aw52B2nHDgLVBKLK','lMfNzw50CW','zxHWzwn0zwrcB290','qurnsvntsu9ox0nptKzmsunu','mZvpvMvfEui','D3jPDgu','uKvrvuvtvf9jrf9dt05gteLdva','C3rKB3v0','ugfYC2uGzxjYB3i','D2LUmZi','Dg9VBhmVy2fSBa','CMvNAxn0zxjLze93BMvYC1n0B3bWzwq','y3jLyxrLsg1HyW','y2XVC2vK','ANnVBNjWyW','CMvZB3vYy2veAwDLC3q','y29UDgv4Df9SB2fK','lNrTCa','tK9erv9pufrjt05t','q09otKvdveLptL9ot1rFufjfuefsruq','Aw5PDgLHBgL6zq','mI4W','yxv0AgvUDgLJyxrLzc1SAxzLlxbYB2nLC3m','uhjLDMLVDxmGC3rVCcbLDMLKzw5JzsbPCYbTAxnZAw5N','D3jPDgvgAwXLu3LUyW','A2LUza','yMfJA2vUza','Aw5WDxrdAgfPBG','C3rKAw4','Dg9VBa','CMfUzg9TqNL0zxm','Aw5WDxq','B25Jzq','lI9JB25Uzwn0Aw9UlwfJDgL2yxrPB24','Aw5WDxrcDwzMzxi','DgHLBG','u1Djvenix0zbsuXfra','C3vWzxj2AxnVCLbPza','CMvJDxjZAxzL','DhLWzq','y29UBMvJDgvK','C2H1DgrVD25fDMLKzw5Jzq','BgvUz3rO','yxb0lxn1CgvYDMLZB3iT','mZLLtujwque','q0foreLeqvrfx1rvueXfx01ju01bveni','lI9YDw50Aw1Llxn0B3jL','AxnozxDnDxrHDgLVBG','y29UDhjVBenHCgfIAwXPDgLLCW','B3v0Chv0qNvMzMvY','yxr0zw1WDeLK','y3DK','CMvIAw5Kv29YA3nWywnL','y2HHBMDLzef0','y2f0y2G','CMvZDw1L','CM9VDfvYAq','uhjLCgfYzwqGy2fUzgLKyxrLihr1CgXLignOyw5Nzwq','y2XVC2vtEw5J','uMvXDwvZDcbjrcbPCYbZDgLSBcbPBIbMBgLNAhq','uNvUDgLTzsbJAgLSzcbJBg9Zzwq','r0vorvjbveLptL9vtKnptKzjuK1fra','y2XVC2u','lI91CgrHDguTzxHLy3v0B3i','zxjYB3i','y2XVC3vYzvjLz2LZDhjHDgLVBNm','y3jLyxrLsgfZAa','Dg9VBenHDgfSB2DiyxnO','v09ss0vsx1nut1bFvu5dt05gsvjnruq','yM9VDfjLAMvJDa','C3rVCenVzgu','C3rHCNrZv2L0Aa','y29UBMvJDgLVBNm','zgLYBMfTzq','y2fUzgLKyxrLvhvWBgu','C2v0','Agv4','BgLZDgvU','C2fMzs1IB3vUzgfYEq','lMTLEq','C2XPy2u','CMvZB2X2zq','y2HPBgqTy2XVC2vK','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','y2fUzgLKyxrLlwjVB3qTzMfPBgvK','z2v0','lNnVy2S','v09ss1nqqunfx1rsqu5tqunusu9ox1jfuvvjuKve','uNvUDgLTzsbJAgLSzcbJB250CM9SihrPBwvKig91Da','y29TBwL0lwnHBMrPzgf0zq','BM9Uy2u','DMvYC2LVBG','B3b0Aw9UCW','BM9KztP1CMW','C3rYAw5NAwz5','y2fUzgLKyxrLlxjLy292zxj5','Dw5SAw5Ru3LUyW','C3DPDgnOuNvUDgLTzq','CMvMCMvZAa','qurnsvntsu9ox1jftevbu0vFrKfjteve','B3bLBG','ywn0Aw9U','Dg9tDhjPBMC','Dw5Yzwy','BM9KztPJAgLSzf9WCM9JzxnZ','C2vYDMLUzW','ufjpq0vtu19uuKvfx1nut1bFvu5dt05gsvjnruq6ihbYAw9Yihj1BNrPBwuGB3DUzxjZAgLWihjLCxvPCMvZihjLy292zxj5','CMvZB3vYy2uTD2fPDa','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGywrTAxnZAw9UigLZignSB3nLzcbMB3iGCNvUDgLTzsbZD2L0y2G','lI4Vy29Yzs9VD25Lzc1SB2nR','Aw5KzxHpzG','zMLSzvvstfrVugf0Aa','ywrTAxnZAw9Uq2XVC2vK','B3bLCMf0Aw9UC0vUywjSzwq','lI4Vy29Yzs9VD25Lzc1WCM9JzxnZ','y2HPBgrfBNzPCM9UBwvUDa','DxbKyxrLlxrYyw5Zywn0Aw9UlMPZB24','BMfTzq','zw5HyMXLlw93BMvKlw9WzxjHDgLVBNm','y2HPBgq','C29Tzq','y2XVC2LUzW','q0HjterFvu5bvKfjtefcteu','Bw9Kzq','y29UDhjVBa','qunusvzbveLptL9ot1rFufjfuefsruq','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGAxmGzNjVEMvU','CMvZDwX0','DxrMoa','mta1nJiZotjOz0rPrgO','q0HjterFu1rpuf9vtKnptKzjuK1fra','q0HjterFrvHjvf9usu1ft1vu','CMvWB3j0','B3bLCMf0Aw9Uqwn0AxzHDgLVBG','ChjLCgfYzq','D29YA3nWywnLlxvWzgf0zq','CgLUzW','C3rHDgu','C2vJCMv0ugf0Aa','uhjLDMLVDxmGCMvZB3vYy2vZihDLCMuGBM90ihjLC3rVCMvK','CgLWzwXPBMvFC3rHDhvZ','zgLNzxn0','uhjLDMLVDxmGCNvUDgLTzsbTDxn0ihn0B3aGyMvMB3jLihjLC291CMnLCYbJAgfUz2u','C2fMzujVDw5Kyxj5','Bw9KzwXFBgLZDa','lI4Vy29Yzs9UB2rLlxzLCNnPB24','Aw5JBhvKzxm','CMvHBhbHDgHtEw5J','Cgf1C2u','q0foreLeqvrfx0nptLrst0XFrKfjteve','C2H1DgrVD24','C2H1DgrVD25by2TUB3DSzwrNzwq','yMXVy2TLCG','B3bLCMf0Aw9UCY1LBMfIBgvK','zMLUzgLUzY1YzxnVBhv0Aw9U','ywn0AxzHDgLVBKv2AwrLBMnL','Ag9ZDc1LB2y','q0HjterFuKvbreLorvntx01ju01bveni','DhjHBNnPDgLVBG','ChjLCgfYzwq','DgfYz2v0rgLNzxn0','yMXVy2TLCNm','C3rVCfjLyxnVBG','C2vUza','qvbux1jvtLrjtuvFt1vuq09nrv9vtKTot1DooIbJAgLSzcbJBg9ZzwqGywz0zxiGCMvXDwvZDcbKzwXPDMvYEq','uNvUDgLTzsbJAgLSzcbZDgfYDhvWihrPBwvKig91Da','z2f0zxDHEujPBMrPBMC','zMfPBgvK','D29YA3nWywnLlwjVDw5K','lI4Vy29Yzs9PCgmTzw52zwXVCgu','CMvQzwn0','BM9KztPJCNLWDg8','mJeWqMnWqLDN','C3jJl2LUC3rHBgXLCI9YDw50Aw1LlwnOAwXKlMPZ','q29TBwL0DgvKigDLBMvYyxrPB24GCMvXDwLYzxmGCM9SBcbMB3j3yxjK','otm2otmWsLrkC3DP','yxb0lwnVBNrYB2WT','xfWUxhbPCgvCyxb0lw1JCc0','CNvUDgLTzq','C3rHDhvZ','uKvdt05orunux1jfuvvjuKve','D29YA3nWywnL','C2vJCMv0','CMvXDwvZDeLK','ChvIBgLJs2v5','y29Kzq','q0HjterFt1DorvjtseLqx1vos05pv04','qvbux0nptK5fq1rjt05Fsuq','BgvNywn5lw93BMvYC2HPCc11BNzLCMLMAwvK','C2vZC2LVBL9IB290C3rYyxa','CMvZDg9Yzs1WCMv2Aw91CW','q2fUzgLKyxrLigLZig5VDcbWCMvWyxjLza','z2vUzxjHDgLVBG','CgfYC2u','Dg9VBhm','uNvUDgLTzsbJAgLSzcbPCYb1BMf2ywLSywjSzq','B3v0Chv0rgvJB2rLCG','uMvNAxn0zxjLzcbVD25LCIbZAhv0zg93BIb3yxmGBM90ignVBMzPCM1Lza','BwTKAxjtEw5J','y2HPBgrdB250CM9Sq2fWywjPBgL0AwvZ','vfjbtLnjveLptL9jtL9quK9huKvtuW','v09ss1nqqunfx1jfq09wrvjzx1jfuvvjuKve','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','AxntywzLsw50zwDLCG','zNn5BMntEw5J','B3bLBLn5BMm','y2fUzgLKyxrLlxjLywr5','r0vorvjbveLptL9srunpvKvswv9nsvnnqvrdsa','lI9YzwDPC3rYyxrPB24Ty2XVC3vYzq','zhjHAw4','BwfJ','zw5HyMXLt3DUzwrpCgvYyxrPB25Z','ywXSB3DLza','C2HHmJu2','y2XLyxi','CMvJzwL2zuHVC3q','ywn0AxzHDgLVBG','AxnbCNjHEq','CMvSzwfZzunVBw1PDhrLzezLBMnL','ufjpq0vtu19uuKvfx1nut1bFvu5dt05gsvjnruq','zhjHAw5PBMC','CMvJB3jK','D29YA3nWywnLrM9SzgvYCW','AgfUzgXLsg9ZDe1LC3nHz2u','z2f0zxDHEs1IAw5KAw5N','mte1ndiWngfdtw5yDa','Ag9VAY1JB250zxH0','CgXHDgzVCM0','zMLSztO','CMvXDwvZDfjWyW','yxnZAwDU','yM9VDc1LCNjVCG','CMvJzwL2zunOAwXK','AxnZDwuTy29UDgv4Da'];_0x3095=function(){return _0x17e392;};return _0x3095();}const fs=require(_0x176370(0x260)),os=require('node:os'),path=require(_0x176370(0x245)),crypto=require(_0x176370(0x1dc)),net=require(_0x176370(0x251)),{spawn}=require(_0x176370(0x199)),{StringDecoder}=require('node:string_decoder'),{captureOwnedChild,attachOwnedJob,stopOwnedChild}=require(_0x176370(0x1a3)),{verifyRelease}=require(_0x176370(0x15f)),{acquireRuntimeLock}=require(_0x176370(0x19e)),{readFence,changeFence,withAdmissionLock,saveLocked,finishOperation}=require(_0x176370(0x1fb)),{verifyEnvelope}=require(_0x176370(0x1da)),{registerMember,closeMember,readGeneration,projectGeneration,acknowledgeGeneration,joinServingGeneration}=require(_0x176370(0x244)),hash=_0x444f49=>crypto[_0x176370(0x173)](_0x176370(0x206))[_0x176370(0x21b)](_0x444f49)['digest'](_0x176370(0x17d)),atomic=(_0x139019,_0x104284)=>{const _0x1a3d50=_0x176370,_0x4454f3={};_0x4454f3[_0x1a3d50(0x157)]=!![],fs[_0x1a3d50(0x1f7)](path[_0x1a3d50(0x17a)](_0x139019),_0x4454f3);const _0x4036e5=_0x139019+'.'+crypto[_0x1a3d50(0x268)]()+_0x1a3d50(0x142),_0x7516cf=fs[_0x1a3d50(0x1fe)](_0x4036e5,'wx',0x180);try{fs[_0x1a3d50(0x149)](_0x7516cf,JSON[_0x1a3d50(0x18f)](_0x104284)),fs[_0x1a3d50(0x1fd)](_0x7516cf);}finally{fs[_0x1a3d50(0x16b)](_0x7516cf);}fs[_0x1a3d50(0x29d)](_0x4036e5,_0x139019);},same=(_0x4d9455,_0x9d96af)=>process[_0x176370(0x214)]===_0x176370(0x2b5)?_0x4d9455[_0x176370(0x2a8)]()===_0x9d96af[_0x176370(0x2a8)]():_0x4d9455===_0x9d96af,messageId=_0x4f9c8c=>JSON['stringify'](_0x4f9c8c),waitChildClosed=(_0x5781ad,_0x631ff6=0x1388)=>new Promise((_0x2bdc40,_0x26862c)=>{const _0x5bcbd4=_0x176370;if(_0x5781ad[_0x5bcbd4(0x13e)])return _0x2bdc40();const _0x199a48=setTimeout(()=>{const _0x137495=_0x5bcbd4;_0x5781ad['off'](_0x137495(0x16f),_0xdc406b);const _0x26e2ec={};_0x26e2ec[_0x137495(0x1ea)]=_0x137495(0x1b4),_0x26862c(Object[_0x137495(0x217)](new Error('Runtime\x20child\x20did\x20not\x20exit'),_0x26e2ec));},_0x631ff6),_0xdc406b=()=>{clearTimeout(_0x199a48),_0x2bdc40();};_0x5781ad['once'](_0x5bcbd4(0x16f),_0xdc406b);});class ConnectionSupervisor{constructor(_0x120f2d={}){const _0x4650ef=_0x176370;this['runtimeRoot']=fs[_0x4650ef(0x1c4)](_0x120f2d[_0x4650ef(0x239)]),this[_0x4650ef(0x267)]=fs[_0x4650ef(0x1c4)](_0x120f2d[_0x4650ef(0x267)]),this[_0x4650ef(0x1e9)]=_0x120f2d[_0x4650ef(0x1e9)],this[_0x4650ef(0x14d)]=_0x120f2d[_0x4650ef(0x14d)]||process['stdin'],this[_0x4650ef(0x2b3)]=_0x120f2d['stdout']||process[_0x4650ef(0x2b3)],this[_0x4650ef(0x275)]=_0x120f2d[_0x4650ef(0x275)]||process[_0x4650ef(0x275)],this[_0x4650ef(0x1e6)]=fs[_0x4650ef(0x1c4)](_0x120f2d[_0x4650ef(0x1e6)]||process[_0x4650ef(0x164)]()),this[_0x4650ef(0x27e)]=_0x120f2d[_0x4650ef(0x27e)]===!![],this[_0x4650ef(0x172)]=require('./registration-closure')['captureRegistrations'](this),this[_0x4650ef(0x1d7)]=_0x120f2d[_0x4650ef(0x1d7)]||null,this['childEnvironment']=_0x120f2d[_0x4650ef(0x1a4)]||{},this['connectionId']=_0x120f2d['connectionId']||crypto[_0x4650ef(0x268)](),this[_0x4650ef(0x1e7)]=crypto[_0x4650ef(0x14f)](0x20),this[_0x4650ef(0x2a1)]=new Set(),this[_0x4650ef(0x1f1)]=0x0,this['child']=null,this['identity']=null,this[_0x4650ef(0x27f)]=new Map(),this[_0x4650ef(0x1ad)]=new Map(),this[_0x4650ef(0x153)]='',this['inputChain']=Promise[_0x4650ef(0x182)](),this[_0x4650ef(0x162)]='',this[_0x4650ef(0x1f5)]=new StringDecoder('utf8'),this[_0x4650ef(0x145)]=null,this['initialized']=![],this['toolCatalogHash']=null,this['admissionClosed']=![],this[_0x4650ef(0x1cf)]=null,this['stopped']=![],this[_0x4650ef(0x209)]='connecting',this[_0x4650ef(0x235)]=null,this['endpoint']=process[_0x4650ef(0x214)]===_0x4650ef(0x2b5)?_0x4650ef(0x1e2)+hash(this['connectionId'])[_0x4650ef(0x181)](0x0,0x18):path[_0x4650ef(0x272)](os[_0x4650ef(0x22f)](),_0x4650ef(0x283)+hash(this[_0x4650ef(0x253)])[_0x4650ef(0x181)](0x0,0x18)+_0x4650ef(0x187));}get[_0x176370(0x29b)](){const _0x7ae84c=_0x176370;return path['join'](this[_0x7ae84c(0x1e6)],'.agents',_0x7ae84c(0x1e3),_0x7ae84c(0x179),this[_0x7ae84c(0x253)]+'.json');}get[_0x176370(0x1bb)](){const _0x3eff9f=_0x176370;return path[_0x3eff9f(0x272)](this[_0x3eff9f(0x1e6)],_0x3eff9f(0x2ad),_0x3eff9f(0x1e3),_0x3eff9f(0x179),_0x3eff9f(0x27b),this[_0x3eff9f(0x253)]+_0x3eff9f(0x180));}get[_0x176370(0x249)](){const _0x257f69=_0x176370;return path['join'](this[_0x257f69(0x1e6)],_0x257f69(0x22e),this[_0x257f69(0x253)]+_0x257f69(0x234));}[_0x176370(0x2a4)](){const _0x5e0309=_0x176370;atomic(this[_0x5e0309(0x249)],{'connectionId':this[_0x5e0309(0x253)],'supervisorPid':process['pid'],'workspace':this['workspace'],'runtimeRoot':this['runtimeRoot'],'candidate':this[_0x5e0309(0x235)]});}['recoverCandidate'](_0x566496){const _0x16f1e4=_0x176370;if(this[_0x16f1e4(0x235)])return;let _0x11f0c3;try{_0x11f0c3=JSON[_0x16f1e4(0x1f2)](fs[_0x16f1e4(0x295)](this[_0x16f1e4(0x249)],_0x16f1e4(0x1b1)));}catch(_0x163ef3){if(_0x163ef3['code']===_0x16f1e4(0x26a))return;throw _0x163ef3;}if(_0x11f0c3[_0x16f1e4(0x253)]!==this[_0x16f1e4(0x253)]||_0x11f0c3[_0x16f1e4(0x156)]!==process['pid']||!same(_0x11f0c3['workspace'],this[_0x16f1e4(0x1e6)])||!same(_0x11f0c3[_0x16f1e4(0x239)],this['runtimeRoot'])||_0x11f0c3['candidate']?.['transactionId']!==_0x566496)return;this[_0x16f1e4(0x235)]=_0x11f0c3[_0x16f1e4(0x235)];}[_0x176370(0x26d)](){const _0x56346f=_0x176370,_0x305125=joinServingGeneration(this[_0x56346f(0x1e6)],{'connectionId':this['connectionId'],'supervisorPid':process['pid'],'childPid':this[_0x56346f(0x1a8)]?.[_0x56346f(0x232)],'version':this[_0x56346f(0x297)][_0x56346f(0x18c)],'digest':this['identity'][_0x56346f(0x1be)],'resourceDigest':this[_0x56346f(0x140)]});this['generation']=_0x305125['generation'],projectGeneration(this[_0x56346f(0x239)],this[_0x56346f(0x1e6)],_0x305125);if(this[_0x56346f(0x1a8)]?.[_0x56346f(0x159)])this[_0x56346f(0x1a8)][_0x56346f(0x1d4)]({'type':'set-generation','generation':this[_0x56346f(0x1f1)]});this[_0x56346f(0x20e)]();}[_0x176370(0x20e)](_0xcecc74={}){const _0x402801=_0x176370;atomic(this[_0x402801(0x29b)],{'connectionId':this['connectionId'],'workspace':this[_0x402801(0x1e6)],'runtimeRoot':this[_0x402801(0x239)],'endpoint':this['endpoint'],'secretFile':this[_0x402801(0x1bb)],'supervisorPid':process[_0x402801(0x232)],'childPid':this['child']?.['pid']||null,'version':this[_0x402801(0x297)]?.[_0x402801(0x18c)]||null,'digest':this['identity']?.[_0x402801(0x1be)]||null,'resourceDigest':this[_0x402801(0x140)]||null,'generation':this[_0x402801(0x1f1)],'catalogHash':this[_0x402801(0x174)]||null,'supervisorProtocol':0x2,'shutdownEvidence':this[_0x402801(0x15a)]||null,'activation':this[_0x402801(0x209)],'serving':this['child']?.[_0x402801(0x229)]===!![]&&!this[_0x402801(0x25f)],'closed':this[_0x402801(0x25f)],'observedAt':new Date()[_0x402801(0x26e)](),..._0xcecc74});}[_0x176370(0x165)](_0x117767){const _0x472eaf=_0x176370,_0x5c6fc4=fs[_0x472eaf(0x1c4)](_0x117767);if(same(_0x5c6fc4,this[_0x472eaf(0x1e6)]))return;const _0x10f769={};_0x10f769['code']=_0x472eaf(0x21f);if(this[_0x472eaf(0x27e)]||this['child'])throw Object['assign'](new Error(_0x472eaf(0x289)),_0x10f769);const _0x5464a5=this[_0x472eaf(0x29b)],_0x43c3ed=this['secretPath'];closeMember(this[_0x472eaf(0x1e6)],this[_0x472eaf(0x253)],process[_0x472eaf(0x232)],!![]),this[_0x472eaf(0x1e6)]=_0x5c6fc4;const _0x164a44=registerMember(this[_0x472eaf(0x1e6)],{'connectionId':this[_0x472eaf(0x253)],'supervisorPid':process[_0x472eaf(0x232)],'runtimeRoot':this[_0x472eaf(0x239)]});this[_0x472eaf(0x1a1)]=_0x164a44[_0x472eaf(0x1ba)]===_0x472eaf(0x23f);const _0x383e9a={};_0x383e9a['recursive']=!![],fs[_0x472eaf(0x1f7)](path[_0x472eaf(0x17a)](this[_0x472eaf(0x1bb)]),_0x383e9a);const _0x1236a9={};_0x1236a9[_0x472eaf(0x269)]='wx',_0x1236a9['mode']=0x180,fs[_0x472eaf(0x149)](this[_0x472eaf(0x1bb)],this[_0x472eaf(0x1e7)],_0x1236a9);const _0x220b7a={};_0x220b7a['connectionId']=this[_0x472eaf(0x253)],_0x220b7a[_0x472eaf(0x19a)]=![],_0x220b7a[_0x472eaf(0x209)]='workspace-rebound',atomic(_0x5464a5,_0x220b7a);try{fs[_0x472eaf(0x191)](_0x43c3ed);}catch{}this[_0x472eaf(0x20e)]();}async['start'](){const _0x34a692=_0x176370;require(_0x34a692(0x1c2))['requireSupportedNode'](),verifyRelease(this[_0x34a692(0x267)],this[_0x34a692(0x1e9)]);const _0x48eb4d=registerMember(this[_0x34a692(0x1e6)],{'connectionId':this[_0x34a692(0x253)],'supervisorPid':process[_0x34a692(0x232)],'runtimeRoot':this[_0x34a692(0x239)]});this[_0x34a692(0x1a1)]=_0x48eb4d[_0x34a692(0x1ba)]===_0x34a692(0x23f);const _0x557ca1={};_0x557ca1[_0x34a692(0x157)]=!![],fs[_0x34a692(0x1f7)](path[_0x34a692(0x17a)](this['secretPath']),_0x557ca1);const _0x34aec1={};return _0x34aec1[_0x34a692(0x269)]='wx',_0x34aec1[_0x34a692(0x1ac)]=0x180,fs[_0x34a692(0x149)](this[_0x34a692(0x1bb)],this['secret'],_0x34aec1),this[_0x34a692(0x26b)]=net[_0x34a692(0x2ab)](_0x83e30f=>{const _0x2e9bfc=_0x34a692;let _0x2f207e='',_0x54a398=![];_0x83e30f['setTimeout'](0x1fbd0,()=>_0x83e30f[_0x2e9bfc(0x255)]()),_0x83e30f['on'](_0x2e9bfc(0x259),_0x55335f=>{const _0x28ef94=_0x2e9bfc;_0x2f207e+=_0x55335f;if(Buffer[_0x28ef94(0x262)](_0x2f207e)>0x2*0x400*0x400)return _0x83e30f[_0x28ef94(0x255)]();const _0x3df4dc=_0x2f207e['indexOf']('\x0a');if(_0x3df4dc<0x0)return;if(_0x54a398)return _0x83e30f[_0x28ef94(0x255)]();_0x54a398=!![];let _0x527b8f;try{_0x527b8f=JSON[_0x28ef94(0x1f2)](_0x2f207e[_0x28ef94(0x181)](0x0,_0x3df4dc));}catch{return _0x83e30f['destroy']();}if(![_0x28ef94(0x23b),_0x28ef94(0x1b7),_0x28ef94(0x28a),_0x28ef94(0x286),_0x28ef94(0x298),_0x28ef94(0x256),_0x28ef94(0x24c),_0x28ef94(0x18a),'restore-previous','hook-context',_0x28ef94(0x211)][_0x28ef94(0x1c3)](_0x527b8f[_0x28ef94(0x158)])||!verifyEnvelope(this[_0x28ef94(0x1e7)],_0x527b8f,this[_0x28ef94(0x2a1)],this[_0x28ef94(0x253)]))return _0x83e30f[_0x28ef94(0x255)]();const _0x5921db=_0x4cf55c=>{const _0x2635bd=_0x28ef94,_0x1087cb={'nonce':_0x527b8f[_0x2635bd(0x18b)],'connectionId':this[_0x2635bd(0x253)],'workspace':this[_0x2635bd(0x1e6)],'supervisorPid':process['pid'],'childPid':this[_0x2635bd(0x1a8)]?.['pid']||null,'generation':this[_0x2635bd(0x1f1)],'version':this[_0x2635bd(0x297)]?.[_0x2635bd(0x18c)]||null,'digest':this[_0x2635bd(0x297)]?.[_0x2635bd(0x1be)]||null,'resourceDigest':this['resourceDigest']||null,'catalogHash':this['toolCatalogHash']||null,'shutdownEvidence':this[_0x2635bd(0x15a)]||null,'controlCapabilities':this[_0x2635bd(0x1f8)]||[],'activation':this[_0x2635bd(0x209)],'serving':this[_0x2635bd(0x1a8)]?.[_0x2635bd(0x229)]===!![]&&!this[_0x2635bd(0x25f)],..._0x4cf55c},_0x3cfc96=_0x1087cb;_0x3cfc96[_0x2635bd(0x203)]=crypto[_0x2635bd(0x13d)](_0x2635bd(0x206),this[_0x2635bd(0x1e7)])['update'](JSON[_0x2635bd(0x18f)](_0x3cfc96))[_0x2635bd(0x1be)](_0x2635bd(0x17d)),_0x83e30f[_0x2635bd(0x254)](JSON[_0x2635bd(0x18f)](_0x3cfc96)+'\x0a');};if(_0x527b8f[_0x28ef94(0x158)]==='challenge')return _0x5921db({});const _0x27985d={};_0x27985d['status']=_0x28ef94(0x273),_0x27985d[_0x28ef94(0x1ea)]=_0x28ef94(0x25e);if(_0x527b8f[_0x28ef94(0x158)]===_0x28ef94(0x211))return _0x5921db(this[_0x28ef94(0x1d7)]&&this['child']?.['ready']&&!this[_0x28ef94(0x25f)]?{'status':_0x28ef94(0x25c),'binding':this[_0x28ef94(0x1d7)]}:_0x27985d);if(_0x527b8f[_0x28ef94(0x158)]===_0x28ef94(0x213)){const _0x33f9fe={};_0x33f9fe[_0x28ef94(0x1e4)]=_0x28ef94(0x1d8),_0x33f9fe[_0x28ef94(0x1ea)]=_0x28ef94(0x231);if(readFence(this[_0x28ef94(0x1e6)])[_0x28ef94(0x1ba)]===_0x28ef94(0x263)||!this[_0x28ef94(0x1a8)]?.['ready'])return _0x5921db(_0x33f9fe);const _0x27a1aa={};_0x27a1aa['input']=_0x527b8f['nativeCaller'],void this[_0x28ef94(0x24e)](_0x28ef94(0x21a),_0x27a1aa)['then'](_0x209b70=>_0x5921db(_0x209b70))[_0x28ef94(0x167)](_0x193cf5=>_0x5921db({'status':'failed','code':_0x193cf5[_0x28ef94(0x1ea)]||_0x28ef94(0x231)}));return;}if([_0x28ef94(0x256),_0x28ef94(0x24c),_0x28ef94(0x18a),_0x28ef94(0x1ef)][_0x28ef94(0x1c3)](_0x527b8f['type'])){void this['controlCandidate'](_0x527b8f)[_0x28ef94(0x154)](_0x5921db)[_0x28ef94(0x167)](_0x47c177=>_0x5921db({'status':_0x28ef94(0x1d8),'code':_0x47c177[_0x28ef94(0x1ea)]||_0x28ef94(0x1c6)}));return;}if(_0x527b8f[_0x28ef94(0x158)]==='abort'){const _0x56c5b6={};_0x56c5b6[_0x28ef94(0x1e4)]=_0x28ef94(0x1d8),_0x56c5b6[_0x28ef94(0x1ea)]=_0x28ef94(0x1fa);if(this[_0x28ef94(0x235)]&&!this[_0x28ef94(0x235)]['restored']||readFence(this[_0x28ef94(0x1e6)])[_0x28ef94(0x1ba)]==='frozen')return _0x5921db(_0x56c5b6);const _0x4aea60={};_0x4aea60[_0x28ef94(0x1e4)]='pending-safe-boundary',_0x4aea60[_0x28ef94(0x1ea)]=_0x28ef94(0x1f9);if(this['transition'])return _0x5921db(_0x4aea60);this['admissionClosed']=![];this['candidate']?.[_0x28ef94(0x271)]&&(this[_0x28ef94(0x235)]=null,this['persistCandidate']());this[_0x28ef94(0x209)]=this[_0x28ef94(0x1a8)]?.[_0x28ef94(0x229)]?'active':_0x28ef94(0x184),this[_0x28ef94(0x20e)]();const _0x36c89d={};return _0x36c89d[_0x28ef94(0x1e4)]=this['activation'],_0x5921db(_0x36c89d);}if(_0x527b8f[_0x28ef94(0x158)]===_0x28ef94(0x1b7)){this[_0x28ef94(0x1a1)]=!![],this[_0x28ef94(0x209)]=_0x28ef94(0x238),this['record'](),void this[_0x28ef94(0x1c0)]()[_0x28ef94(0x154)](_0xd3b030=>_0x5921db({'status':_0xd3b030['length']?'pending-safe-boundary':_0x28ef94(0x17f),'blockers':_0xd3b030}))[_0x28ef94(0x167)](_0x2f3737=>_0x5921db({'status':_0x28ef94(0x1d8),'code':_0x2f3737[_0x28ef94(0x1ea)]||_0x28ef94(0x23a)}));return;}if(_0x527b8f[_0x28ef94(0x158)]===_0x28ef94(0x28a)){const _0x50ee75=readFence(this[_0x28ef94(0x1e6)]),_0x2e247e={};_0x2e247e[_0x28ef94(0x1e4)]=_0x28ef94(0x1d8),_0x2e247e[_0x28ef94(0x1ea)]=_0x28ef94(0x2af);if(_0x50ee75['state']!==_0x28ef94(0x20d)||!_0x50ee75['stopRequested']||_0x50ee75[_0x28ef94(0x23e)]!==_0x527b8f[_0x28ef94(0x23e)]||_0x50ee75[_0x28ef94(0x22c)]!==_0x527b8f[_0x28ef94(0x22c)]||_0x50ee75[_0x28ef94(0x24b)]!==_0x527b8f[_0x28ef94(0x18c)]||_0x50ee75['targetDigest']!==_0x527b8f[_0x28ef94(0x1be)])return _0x5921db(_0x2e247e);this[_0x28ef94(0x1a1)]=!![],this[_0x28ef94(0x209)]=_0x28ef94(0x238),this[_0x28ef94(0x20e)](),void this[_0x28ef94(0x24e)](_0x28ef94(0x28a),{..._0x527b8f[_0x28ef94(0x18d)],'transactionId':_0x527b8f[_0x28ef94(0x23e)],'epoch':_0x527b8f[_0x28ef94(0x22c)],'version':_0x527b8f[_0x28ef94(0x18c)],'digest':_0x527b8f[_0x28ef94(0x1be)],'requestsPending':this[_0x28ef94(0x27f)][_0x28ef94(0x26f)]},0x3a98)[_0x28ef94(0x154)](_0x5921db)[_0x28ef94(0x167)](_0xad6768=>_0x5921db({'status':_0x28ef94(0x1d8),'code':_0xad6768[_0x28ef94(0x1ea)]||_0x28ef94(0x175)}));return;}const _0x2e269c={};_0x2e269c['status']=_0x28ef94(0x1d8),_0x2e269c[_0x28ef94(0x1ea)]=_0x28ef94(0x1ae);if(!/^[0-9]+\.[0-9]+\.[0-9]+$/['test'](_0x527b8f['version']||'')||!/^[a-f0-9]{64}$/[_0x28ef94(0x26c)](_0x527b8f[_0x28ef94(0x1be)]||'')||!this['admissionClosed'])return _0x5921db(_0x2e269c);const _0x3146f4=path[_0x28ef94(0x272)](this[_0x28ef94(0x239)],_0x28ef94(0x246),_0x527b8f[_0x28ef94(0x18c)]+'-'+_0x527b8f[_0x28ef94(0x1be)]);void this[_0x28ef94(0x192)](_0x3146f4,Math[_0x28ef94(0x28f)](0x0,Math[_0x28ef94(0x2a5)](0x78,Number(_0x527b8f['waitSeconds'])||0x0)))['then'](_0x3d34ca=>_0x5921db(_0x3d34ca))['catch'](_0x3864ea=>_0x5921db({'status':_0x28ef94(0x1d8),'code':_0x3864ea[_0x28ef94(0x1ea)]||_0x28ef94(0x155)}));});}),await new Promise((_0x58e97e,_0x5e4e84)=>this['listener'][_0x34a692(0x151)]('error',_0x5e4e84)[_0x34a692(0x17e)](this[_0x34a692(0x258)],_0x58e97e)),this[_0x34a692(0x20e)](),this[_0x34a692(0x14d)]['on'](_0x34a692(0x259),_0x4cdb2d=>this[_0x34a692(0x208)](_0x4cdb2d)),this['stdin']['on'](_0x34a692(0x254),()=>void this[_0x34a692(0x16f)](_0x34a692(0x1cd))),this[_0x34a692(0x14d)]['on']('error',()=>void this['close']('host-error')),this[_0x34a692(0x28c)](),this;}[_0x176370(0x28c)](_0x3210cd=0x1388){const _0x1a57d8=_0x176370;clearTimeout(this[_0x1a57d8(0x27c)]);const _0x5c2488=async()=>{const _0x49c032=_0x1a57d8;if(this[_0x49c032(0x25f)]||this[_0x49c032(0x1aa)])return;const _0x39243c=this['workspace'];try{await require(_0x49c032(0x170))[_0x49c032(0x279)](_0x39243c,this['publicKey']);}catch(_0x5bf085){const _0x54086b={};_0x54086b[_0x49c032(0x2a2)]=_0x5bf085[_0x49c032(0x1ea)]||_0x49c032(0x293);if(this[_0x49c032(0x1e6)]===_0x39243c&&!this[_0x49c032(0x25f)]&&!this['closing'])this['record'](_0x54086b);}!this[_0x49c032(0x25f)]&&!this['closing']&&(this[_0x49c032(0x27c)]=setTimeout(_0x5c2488,_0x3210cd),this['executorTimer'][_0x49c032(0x198)]());};void _0x5c2488();}[_0x176370(0x2a0)](_0x5e2257){const _0x17ad8e=_0x176370,_0x2074a5=_0x5e2257[_0x17ad8e(0x25b)]||{},_0xf4d1ab=_0x2074a5[_0x17ad8e(0x20f)]?.[0x0],_0x4e11ce=_0xf4d1ab?.[_0x17ad8e(0x21c)]||_0xf4d1ab?.[_0x17ad8e(0x225)]||_0x2074a5['rootPath']||_0x2074a5[_0x17ad8e(0x169)];if(!_0x4e11ce)return this['workspace'];try{const _0x24b478=_0x4e11ce[_0x17ad8e(0x178)](_0x17ad8e(0x215))?require(_0x17ad8e(0x18e))[_0x17ad8e(0x1a0)](_0x4e11ce):_0x4e11ce;return fs[_0x17ad8e(0x1c4)](_0x24b478);}catch{return this[_0x17ad8e(0x1e6)];}}[_0x176370(0x208)](_0x54cc0a){const _0x4704cd=_0x176370;this[_0x4704cd(0x153)]+=_0x54cc0a[_0x4704cd(0x197)](_0x4704cd(0x1b1));if(this[_0x4704cd(0x153)][_0x4704cd(0x15b)]>0x8*0x400*0x400)return void this[_0x4704cd(0x16f)]('oversize-host-message');let _0x4ed7a5;while((_0x4ed7a5=this[_0x4704cd(0x153)][_0x4704cd(0x19f)]('\x0a'))>=0x0){const _0x4fa841=this[_0x4704cd(0x153)][_0x4704cd(0x181)](0x0,_0x4ed7a5);this[_0x4704cd(0x153)]=this[_0x4704cd(0x153)][_0x4704cd(0x181)](_0x4ed7a5+0x1);if(!_0x4fa841[_0x4704cd(0x2a3)]())continue;let _0x77f5d1;try{_0x77f5d1=JSON[_0x4704cd(0x1f2)](_0x4fa841);}catch{const _0x2e4378={};_0x2e4378[_0x4704cd(0x1ea)]=-0x7fbc,_0x2e4378[_0x4704cd(0x242)]=_0x4704cd(0x2b4);const _0x458a8d={};_0x458a8d[_0x4704cd(0x13f)]=_0x4704cd(0x146),_0x458a8d['id']=null,_0x458a8d['error']=_0x2e4378,this[_0x4704cd(0x23c)](_0x458a8d);continue;}this[_0x4704cd(0x14c)]=this['inputChain'][_0x4704cd(0x154)](()=>this['handleHostMessage'](_0x77f5d1,_0x4fa841))[_0x4704cd(0x167)](_0x3c0b28=>{const _0xef9dfe=_0x4704cd,_0x18f8ab={};_0x18f8ab[_0xef9dfe(0x1ea)]=-0x7f5b,_0x18f8ab[_0xef9dfe(0x242)]=_0x3c0b28[_0xef9dfe(0x1ea)]||_0xef9dfe(0x250);if(_0x77f5d1['id']!==undefined)this['writeHost']({'jsonrpc':_0xef9dfe(0x146),'id':_0x77f5d1['id'],'error':_0x18f8ab});});}}async[_0x176370(0x210)](_0x50d599,_0x48c7cb){const _0x4647ec=_0x176370;if(this[_0x4647ec(0x25f)])return;if(!_0x50d599[_0x4647ec(0x2a6)])return;if(this[_0x4647ec(0x1a8)]?.[_0x4647ec(0x13e)]&&this['activation']===_0x4647ec(0x1ed)){const _0x41f02e={};_0x41f02e['code']=-0x7d02,_0x41f02e[_0x4647ec(0x242)]=_0x4647ec(0x19b);if(_0x50d599['id']!==undefined)this[_0x4647ec(0x23c)]({'jsonrpc':_0x4647ec(0x146),'id':_0x50d599['id'],'error':_0x41f02e});return;}const _0x5725e6=readFence(this[_0x4647ec(0x1e6)]);if(_0x5725e6['state']===_0x4647ec(0x263)){const _0x58c913={};_0x58c913[_0x4647ec(0x1ea)]=-0x7d01,_0x58c913[_0x4647ec(0x242)]=_0x4647ec(0x1af);if(_0x50d599['id']!==undefined)this[_0x4647ec(0x23c)]({'jsonrpc':_0x4647ec(0x146),'id':_0x50d599['id'],'error':_0x58c913});return;}if(!this[_0x4647ec(0x1a8)]&&_0x5725e6[_0x4647ec(0x1ba)]!==_0x4647ec(0x195)){const _0x2ccafa={};_0x2ccafa[_0x4647ec(0x1ea)]=-0x7d01,_0x2ccafa[_0x4647ec(0x242)]=_0x4647ec(0x21d);if(_0x50d599['id']!==undefined)this['writeHost']({'jsonrpc':_0x4647ec(0x146),'id':_0x50d599['id'],'error':_0x2ccafa});return;}if(!this[_0x4647ec(0x1a8)]){if(_0x50d599[_0x4647ec(0x2a6)]!==_0x4647ec(0x145)){const _0x12ef82={};_0x12ef82[_0x4647ec(0x1ea)]=-0x7d02,_0x12ef82[_0x4647ec(0x242)]='APT_RECONNECT_REQUIRED:\x20runtime\x20child\x20stopped;\x20initialize\x20a\x20new\x20MCP\x20session';if(_0x50d599['id']!==undefined)this[_0x4647ec(0x23c)]({'jsonrpc':_0x4647ec(0x146),'id':_0x50d599['id'],'error':_0x12ef82});return;}if(_0x50d599['method']===_0x4647ec(0x145))this[_0x4647ec(0x165)](this[_0x4647ec(0x2a0)](_0x50d599));const _0x2af906=readGeneration(this['workspace']);if(_0x2af906){const _0x45660e=path[_0x4647ec(0x272)](this[_0x4647ec(0x239)],'releases',_0x2af906[_0x4647ec(0x18c)]+'-'+_0x2af906[_0x4647ec(0x1be)]),_0x6b48cc=verifyRelease(_0x45660e,this[_0x4647ec(0x1e9)]),_0x8186ce={};_0x8186ce[_0x4647ec(0x1ea)]=_0x4647ec(0x200);if(_0x6b48cc[_0x4647ec(0x18c)]!==_0x2af906[_0x4647ec(0x18c)]||_0x6b48cc[_0x4647ec(0x1be)]!==_0x2af906[_0x4647ec(0x1be)])throw Object['assign'](new Error(_0x4647ec(0x25d)),_0x8186ce);this[_0x4647ec(0x267)]=_0x45660e,this[_0x4647ec(0x1f1)]=_0x2af906['generation'];}await this['boot'](this[_0x4647ec(0x267)],this['generation']||0x1);if(readFence(this[_0x4647ec(0x1e6)])[_0x4647ec(0x1ba)]===_0x4647ec(0x195))this[_0x4647ec(0x1a1)]=![];}let _0x494a4d;if(readFence(this['workspace'])[_0x4647ec(0x1ba)]===_0x4647ec(0x20d)&&this['isNewMutation'](_0x50d599)){const _0x3cc0f7={};_0x3cc0f7[_0x4647ec(0x14e)]=_0x50d599['params'][_0x4647ec(0x1a6)],_0x3cc0f7[_0x4647ec(0x228)]=_0x50d599[_0x4647ec(0x25b)][_0x4647ec(0x228)],_0x494a4d=await this['requestChild'](_0x4647ec(0x261),_0x3cc0f7);}const _0x6d5ce8=_0x50d599['id']===undefined?!![]:withAdmissionLock(this[_0x4647ec(0x1e6)],_0x29ae72=>{const _0x302edd=_0x4647ec,_0x3c9811=_0x29ae72[_0x302edd(0x1ba)]===_0x302edd(0x20d)&&_0x494a4d?.[_0x302edd(0x205)]===!![]&&_0x494a4d[_0x302edd(0x22c)]===_0x29ae72['epoch'];if(_0x29ae72[_0x302edd(0x1ba)]==='frozen'||(this[_0x302edd(0x1a1)]||[_0x302edd(0x13e),_0x302edd(0x20d)][_0x302edd(0x1c3)](_0x29ae72[_0x302edd(0x1ba)]))&&this[_0x302edd(0x160)](_0x50d599)&&!_0x3c9811)return![];const _0x4d8036={};_0x4d8036[_0x302edd(0x1ea)]=_0x302edd(0x2b2);if(this[_0x302edd(0x27f)][_0x302edd(0x21e)](messageId(_0x50d599['id'])))throw Object['assign'](new Error(_0x302edd(0x16c)),_0x4d8036);const _0x11e44d=this[_0x302edd(0x253)]+':'+crypto['randomUUID'](),_0x151f93={'invocationId':_0x11e44d,'actorId':'transport','attemptId':null,'inputHash':hash(_0x48c7cb),'epoch':_0x29ae72['epoch'],'status':_0x302edd(0x227),'connectionId':this['connectionId'],'createdAt':new Date()[_0x302edd(0x26e)]()};return _0x29ae72['tickets']||={},_0x29ae72['tickets'][hash(_0x11e44d)]=_0x151f93,saveLocked(this[_0x302edd(0x1e6)],_0x29ae72),this[_0x302edd(0x27f)]['set'](messageId(_0x50d599['id']),{'method':_0x50d599[_0x302edd(0x2a6)],'tool':_0x50d599['params']?.['name']||null,'ticket':_0x151f93}),!![];});if(!_0x6d5ce8){const _0x54a455={};_0x54a455[_0x4647ec(0x1ea)]=-0x7d01,_0x54a455[_0x4647ec(0x242)]=_0x4647ec(0x19d);if(_0x50d599['id']!==undefined)this[_0x4647ec(0x23c)]({'jsonrpc':'2.0','id':_0x50d599['id'],'error':_0x54a455});return;}if(_0x50d599[_0x4647ec(0x2a6)]==='initialize')this[_0x4647ec(0x145)]=_0x50d599[_0x4647ec(0x25b)]||{};if(_0x50d599[_0x4647ec(0x2a6)]==='notifications/initialized')this[_0x4647ec(0x2aa)]=!![];try{if(this[_0x4647ec(0x24a)](_0x50d599))await this[_0x4647ec(0x204)]();!this['child'][_0x4647ec(0x14d)][_0x4647ec(0x2b1)](_0x48c7cb+'\x0a')&&(this[_0x4647ec(0x14d)][_0x4647ec(0x1c5)](),this[_0x4647ec(0x1a8)][_0x4647ec(0x14d)][_0x4647ec(0x151)](_0x4647ec(0x202),()=>this['stdin'][_0x4647ec(0x168)]()));}catch(_0x6d127){if(_0x50d599['id']!==undefined){const _0x6f7f27=this[_0x4647ec(0x27f)]['get'](messageId(_0x50d599['id']));if(_0x6f7f27?.[_0x4647ec(0x2a9)])finishOperation(this[_0x4647ec(0x1e6)],_0x6f7f27[_0x4647ec(0x2a9)][_0x4647ec(0x2ac)],_0x6f7f27['ticket']['epoch']);this[_0x4647ec(0x27f)][_0x4647ec(0x230)](messageId(_0x50d599['id']));}throw _0x6d127;}}[_0x176370(0x160)](_0x372f9d){const _0x597ff7=_0x176370;if(_0x372f9d[_0x597ff7(0x2a6)]!==_0x597ff7(0x2b6))return![];const _0x139cd3=_0x372f9d[_0x597ff7(0x25b)]?.['name']||'',_0x5c3b1b=_0x372f9d[_0x597ff7(0x25b)]?.[_0x597ff7(0x228)]?.[_0x597ff7(0x196)];if(_0x139cd3===_0x597ff7(0x292))return!(_0x372f9d['params']?.[_0x597ff7(0x228)]?.[_0x597ff7(0x163)]&&[_0x597ff7(0x1b5),_0x597ff7(0x276),_0x597ff7(0x267),_0x597ff7(0x19c),_0x597ff7(0x287),_0x597ff7(0x29f),_0x597ff7(0x1cb)][_0x597ff7(0x1c3)](_0x5c3b1b));if([_0x597ff7(0x1bd),'model_list',_0x597ff7(0x25a),'session_bootstrap','skill_load',_0x597ff7(0x141)]['includes'](_0x139cd3))return![];return!![];}[_0x176370(0x24a)](_0x2b7a48){const _0x407694=_0x176370;if(_0x2b7a48['method']===_0x407694(0x2a7))return(this[_0x407694(0x1a4)]['MCP_DISCOVER_BACKENDS']||process.env.MCP_DISCOVER_BACKENDS)==='1';if([_0x407694(0x145),_0x407694(0x1b9)][_0x407694(0x1c3)](_0x2b7a48[_0x407694(0x2a6)])||_0x2b7a48['method']?.[_0x407694(0x178)]('notifications/'))return![];if(_0x2b7a48[_0x407694(0x2a6)]!==_0x407694(0x2b6))return!![];const {name:_0x2621fe,arguments:_0x354d92={}}=_0x2b7a48[_0x407694(0x25b)]||{};if(_0x2621fe===_0x407694(0x1ee))return _0x354d92[_0x407694(0x296)]===!![];if(_0x2621fe===_0x407694(0x1c1))return _0x354d92[_0x407694(0x193)]===!![];if(_0x2621fe===_0x407694(0x25a))return Boolean(_0x354d92[_0x407694(0x14b)]||_0x354d92['service']);if(_0x2621fe===_0x407694(0x1bd))return _0x354d92[_0x407694(0x193)]===!![];return![_0x407694(0x29a),_0x407694(0x141)][_0x407694(0x1c3)](_0x2621fe);}async[_0x176370(0x204)](){const _0x209557=_0x176370,_0xdf6f4e=this['child'],_0x57e4b3={};_0x57e4b3[_0x209557(0x1ea)]=_0x209557(0x1ab);if(!_0xdf6f4e)throw Object[_0x209557(0x217)](new Error('Runtime\x20child\x20is\x20unavailable'),_0x57e4b3);if(_0xdf6f4e[_0x209557(0x1a2)])return;_0xdf6f4e[_0x209557(0x1b6)]||=((async()=>{const _0x5851b2=_0x209557;await attachOwnedJob(_0xdf6f4e);const _0x551964=await this[_0x5851b2(0x24e)](_0x5851b2(0x1a7)),_0x35dea9={};_0x35dea9[_0x5851b2(0x1ea)]=_0x5851b2(0x1ce);if(this[_0x5851b2(0x1a8)]!==_0xdf6f4e||_0x551964['type']!==_0x5851b2(0x1ca)||_0x551964[_0x5851b2(0x232)]!==_0xdf6f4e[_0x5851b2(0x232)]||_0x551964['connectionId']!==this[_0x5851b2(0x253)]||_0x551964[_0x5851b2(0x1f1)]!==this[_0x5851b2(0x1f1)])throw Object[_0x5851b2(0x217)](new Error('Process\x20dispatch\x20activation\x20was\x20not\x20confirmed'),_0x35dea9);_0xdf6f4e['operationsEnabled']=!![];})());try{await _0xdf6f4e[_0x209557(0x1b6)];}catch(_0x5da9dd){_0xdf6f4e[_0x209557(0x1b6)]=null;throw _0x5da9dd;}}async['boot'](_0x3e282b,_0x1c88f5){const _0x38c374=_0x176370;if(this[_0x38c374(0x257)])return this[_0x38c374(0x257)];this['booting']=((async()=>{const _0x1c9459=_0x38c374,_0x6d8981=verifyRelease(_0x3e282b,this['publicKey']),_0x1259b9={...process.env,...this[_0x1c9459(0x1a4)]};_0x1259b9[_0x1c9459(0x299)]='1',_0x1259b9[_0x1c9459(0x1ec)]=this[_0x1c9459(0x253)];const _0x441e00=_0x1259b9;delete _0x441e00[_0x1c9459(0x143)];const _0xe1eb3c=spawn(process[_0x1c9459(0x222)],[path[_0x1c9459(0x272)](_0x3e282b,_0x1c9459(0x1de))],{'cwd':this['workspace'],'stdio':[_0x1c9459(0x27a),_0x1c9459(0x27a),_0x1c9459(0x27a),_0x1c9459(0x288)],'detached':process['platform']!==_0x1c9459(0x2b5),'windowsHide':!![],'env':_0x441e00});this[_0x1c9459(0x1a8)]=_0xe1eb3c;const _0x335d86={};_0x335d86[_0x1c9459(0x1e6)]=this[_0x1c9459(0x1e6)],_0x335d86[_0x1c9459(0x253)]=this[_0x1c9459(0x253)],_0x335d86[_0x1c9459(0x239)]=this[_0x1c9459(0x239)],_0x335d86[_0x1c9459(0x1f1)]=_0x1c88f5;const _0x12f08e={};_0x12f08e['deferIdentity']=!![],_0xe1eb3c[_0x1c9459(0x22d)]=captureOwnedChild(_0xe1eb3c,_0x335d86,_0x12f08e);const _0x39b2ca={};_0x39b2ca['version']=_0x6d8981[_0x1c9459(0x18c)],_0x39b2ca[_0x1c9459(0x1be)]=_0x6d8981[_0x1c9459(0x1be)],_0x39b2ca[_0x1c9459(0x1f1)]=_0x1c88f5,_0xe1eb3c[_0x1c9459(0x2ae)]=_0x39b2ca,_0xe1eb3c[_0x1c9459(0x229)]=![],_0xe1eb3c[_0x1c9459(0x2b3)]['on'](_0x1c9459(0x259),_0x5e99b7=>this[_0x1c9459(0x219)](_0x5e99b7,_0xe1eb3c)),_0xe1eb3c[_0x1c9459(0x275)]['on'](_0x1c9459(0x259),_0x44e385=>this[_0x1c9459(0x275)][_0x1c9459(0x2b1)](_0x44e385)),_0xe1eb3c['on'](_0x1c9459(0x242),_0x1dcaa1=>this[_0x1c9459(0x264)](_0x1dcaa1,_0xe1eb3c)),_0xe1eb3c['on'](_0x1c9459(0x16f),(_0x26675f,_0x5a7c04)=>this['childClosed'](_0xe1eb3c,_0x26675f,_0x5a7c04)),_0xe1eb3c['on'](_0x1c9459(0x171),_0x218b81=>_0xe1eb3c[_0x1c9459(0x176)]?.(_0x218b81));const _0x239f0f=new Promise((_0x1647d6,_0x5ed055)=>{const _0x374b93=_0x1c9459,_0x1a2b7b={};_0x1a2b7b['code']=_0x374b93(0x22a);const _0x5b6f6d=setTimeout(()=>_0x5ed055(Object[_0x374b93(0x217)](new Error(_0x374b93(0x1d6)),_0x1a2b7b)),0x3a98);_0xe1eb3c['bootResolve']=_0x39b665=>{clearTimeout(_0x5b6f6d),_0x1647d6(_0x39b665);},_0xe1eb3c[_0x374b93(0x176)]=_0x51d29a=>{clearTimeout(_0x5b6f6d),_0x5ed055(_0x51d29a);};});_0x239f0f['catch'](()=>{});try{_0xe1eb3c[_0x1c9459(0x1d4)]({'type':_0x1c9459(0x270),'runtimeRoot':this[_0x1c9459(0x239)],'release':_0x3e282b,'publicKey':this['publicKey']?.[_0x1c9459(0x197)](),'connectionId':this[_0x1c9459(0x253)],'generation':_0x1c88f5,'workspace':this[_0x1c9459(0x1e6)],'explicitWorkspace':this['explicitWorkspace'],'gatewayBinding':this[_0x1c9459(0x1d7)]});const _0x5e8728=await _0x239f0f;_0xe1eb3c['ready']=!![],this['childControlCapabilities']=Array[_0x1c9459(0x20a)](_0x5e8728[_0x1c9459(0x161)])?_0x5e8728[_0x1c9459(0x161)]:[],this['identity']=_0x6d8981,this[_0x1c9459(0x140)]=_0x5e8728[_0x1c9459(0x140)],this[_0x1c9459(0x1f1)]=_0x1c88f5,this[_0x1c9459(0x209)]=_0x1c9459(0x184),this[_0x1c9459(0x20e)]();}catch(_0x263e37){_0xe1eb3c[_0x1c9459(0x176)]?.(_0x263e37);try{await attachOwnedJob(_0xe1eb3c),await stopOwnedChild(_0xe1eb3c,{'graceMs':0x64,'reason':_0x1c9459(0x185),'graceful':()=>{const _0x2839b=_0x1c9459;if(_0xe1eb3c[_0x2839b(0x159)])_0xe1eb3c[_0x2839b(0x281)]();}});}catch(_0x398130){const _0x5ab3b3={};_0x5ab3b3[_0x1c9459(0x177)]=_0x398130[_0x1c9459(0x1ea)];throw Object[_0x1c9459(0x217)](_0x263e37,_0x5ab3b3);}if(this[_0x1c9459(0x1a8)]===_0xe1eb3c)this['child']=null;throw _0x263e37;}})());try{return await this[_0x38c374(0x257)];}finally{this[_0x38c374(0x257)]=null;}}[_0x176370(0x219)](_0x2cded5,_0x4953b0){const _0x542038=_0x176370;if(this[_0x542038(0x1a8)]!==_0x4953b0)return;const _0x5090d9=this[_0x542038(0x1f5)][_0x542038(0x2b1)](_0x2cded5);this[_0x542038(0x162)]+=_0x5090d9;let _0x21164f;while((_0x21164f=this[_0x542038(0x162)][_0x542038(0x19f)]('\x0a'))>=0x0){const _0x245d7d=this[_0x542038(0x162)][_0x542038(0x181)](0x0,_0x21164f);this['outputBuffer']=this[_0x542038(0x162)][_0x542038(0x181)](_0x21164f+0x1);if(!_0x245d7d)continue;let _0x1dfe62;try{_0x1dfe62=JSON['parse'](_0x245d7d);}catch{continue;}const _0x7e470a=_0x1dfe62['id']!==undefined&&this[_0x542038(0x1ad)][_0x542038(0x186)](messageId(_0x1dfe62['id']));if(_0x7e470a){this['control'][_0x542038(0x230)](messageId(_0x1dfe62['id'])),_0x7e470a[_0x542038(0x182)](_0x1dfe62);continue;}const _0x372860=_0x1dfe62['id']!==undefined?this['pending'][_0x542038(0x186)](messageId(_0x1dfe62['id'])):null;if(_0x372860){if(_0x372860[_0x542038(0x2a9)])finishOperation(this[_0x542038(0x1e6)],_0x372860['ticket'][_0x542038(0x2ac)],_0x372860[_0x542038(0x2a9)][_0x542038(0x22c)]);this[_0x542038(0x27f)]['delete'](messageId(_0x1dfe62['id']));if(_0x372860[_0x542038(0x2a6)]===_0x542038(0x145)&&!_0x1dfe62[_0x542038(0x171)]){try{this[_0x542038(0x26d)](),this[_0x542038(0x209)]=_0x542038(0x227);}catch(_0x1a65c1){this[_0x542038(0x209)]=_0x542038(0x223);const _0x132313={};_0x132313[_0x542038(0x1ea)]=-0x7d01,_0x132313[_0x542038(0x242)]=_0x1a65c1[_0x542038(0x1ea)]||_0x542038(0x16e),_0x1dfe62={'jsonrpc':_0x542038(0x146),'id':_0x1dfe62['id'],'error':_0x132313};}this['record'](),void this[_0x542038(0x20b)]()[_0x542038(0x167)](_0x35d916=>{const _0x2dc2b3=_0x542038,_0x67939a={};_0x67939a[_0x2dc2b3(0x1c9)]=_0x35d916[_0x2dc2b3(0x1ea)]||_0x2dc2b3(0x194),this[_0x2dc2b3(0x20e)](_0x67939a);});}if(_0x372860['method']===_0x542038(0x2a7)&&!_0x1dfe62[_0x542038(0x171)])this[_0x542038(0x174)]=hash(JSON[_0x542038(0x18f)](_0x1dfe62[_0x542038(0x1b0)]?.['tools']||[]));}!this['stdout'][_0x542038(0x2b1)](JSON[_0x542038(0x18f)](_0x1dfe62)+'\x0a')&&(_0x4953b0[_0x542038(0x2b3)]['pause'](),this['stdout']['once'](_0x542038(0x202),()=>_0x4953b0[_0x542038(0x2b3)][_0x542038(0x168)]()));}}async[_0x176370(0x20b)](){const _0x4e7284=_0x176370,_0x159a15=readFence(this[_0x4e7284(0x1e6)]);if(_0x159a15[_0x4e7284(0x1ba)]!==_0x4e7284(0x13e)||_0x159a15[_0x4e7284(0x24b)]!==this[_0x4e7284(0x297)]?.[_0x4e7284(0x18c)]||_0x159a15[_0x4e7284(0x1d1)]!==this['identity']?.[_0x4e7284(0x1be)])return;const _0x279c94=path[_0x4e7284(0x272)](this[_0x4e7284(0x1e6)],_0x4e7284(0x2ad),_0x4e7284(0x1e3),_0x4e7284(0x1a5));let _0x9ebcbd;try{_0x9ebcbd=JSON['parse'](fs[_0x4e7284(0x295)](_0x279c94,'utf8'));}catch{return;}if(_0x9ebcbd[_0x4e7284(0x23e)]!==_0x159a15[_0x4e7284(0x23e)]||!['resources-applied','reconnect-required']['includes'](_0x9ebcbd[_0x4e7284(0x1e4)]))return;const _0x292763=await require(_0x4e7284(0x152))[_0x4e7284(0x27d)](this[_0x4e7284(0x1e6)],{'version':this[_0x4e7284(0x297)]['version'],'digest':this[_0x4e7284(0x297)]['digest'],'resourceDigest':this[_0x4e7284(0x140)]});if(_0x292763['status']!==_0x4e7284(0x227))return;const _0xe1c49c=changeFence(this[_0x4e7284(0x1e6)],_0x159a15[_0x4e7284(0x22c)],{'state':_0x4e7284(0x195),'transactionId':_0x159a15['transactionId'],'generation':this[_0x4e7284(0x1f1)]}),_0x472a89={..._0x9ebcbd};_0x472a89[_0x4e7284(0x1e4)]=_0x4e7284(0x227),_0x472a89[_0x4e7284(0x1cc)]=_0x4e7284(0x147),_0x472a89[_0x4e7284(0x1f1)]=this['generation'],_0x472a89['changedAt']=_0xe1c49c[_0x4e7284(0x166)],atomic(_0x279c94,_0x472a89);}[_0x176370(0x264)](_0x14f3ec,_0x378e2c){const _0x531beb=_0x176370;if(this['child']!==_0x378e2c)return;if(_0x14f3ec?.[_0x531beb(0x158)]===_0x531beb(0x229)){const _0x38ae36=_0x378e2c[_0x531beb(0x2ae)],_0x1ea1e8={};_0x1ea1e8[_0x531beb(0x1ea)]=_0x531beb(0x1ce);if(!_0x38ae36||_0x14f3ec[_0x531beb(0x253)]!==this[_0x531beb(0x253)]||_0x14f3ec[_0x531beb(0x232)]!==_0x378e2c[_0x531beb(0x232)]||_0x14f3ec[_0x531beb(0x1f1)]!==_0x38ae36[_0x531beb(0x1f1)]||_0x14f3ec[_0x531beb(0x18c)]!==_0x38ae36[_0x531beb(0x18c)]||_0x14f3ec[_0x531beb(0x1be)]!==_0x38ae36[_0x531beb(0x1be)]||!same(_0x14f3ec[_0x531beb(0x1e6)]||'',this[_0x531beb(0x1e6)]))_0x378e2c[_0x531beb(0x176)]?.(Object['assign'](new Error('Runtime\x20readiness\x20tuple\x20does\x20not\x20match\x20candidate'),_0x1ea1e8));else _0x378e2c[_0x531beb(0x236)]?.(_0x14f3ec);}else{if(_0x14f3ec?.['type']===_0x531beb(0x218))_0x378e2c[_0x531beb(0x176)]?.(Object['assign'](new Error(_0x14f3ec[_0x531beb(0x278)]),{'code':_0x14f3ec[_0x531beb(0x1ea)]}));else{if(_0x14f3ec?.[_0x531beb(0x158)]===_0x531beb(0x1d9))this['rebindWorkspace'](_0x14f3ec[_0x531beb(0x1e6)]);else{if(_0x14f3ec?.['requestId']&&this[_0x531beb(0x1ad)][_0x531beb(0x21e)](messageId(_0x14f3ec[_0x531beb(0x1e8)]))){if(_0x14f3ec[_0x531beb(0x158)]===_0x531beb(0x25f)&&_0x14f3ec['pid']===_0x378e2c[_0x531beb(0x232)]&&_0x14f3ec[_0x531beb(0x253)]===this[_0x531beb(0x253)]&&_0x14f3ec[_0x531beb(0x1f1)]===this['generation']&&_0x14f3ec[_0x531beb(0x2b7)]===!![])_0x378e2c[_0x531beb(0x1c8)]=!![];const _0x4de5c1=this['control']['get'](messageId(_0x14f3ec[_0x531beb(0x1e8)]));this[_0x531beb(0x1ad)][_0x531beb(0x230)](messageId(_0x14f3ec['requestId'])),_0x4de5c1[_0x531beb(0x182)](_0x14f3ec);}}}}}async['requestChild'](_0x2e6698,_0x3628d2={},_0x585c38=0x1388){const _0x3f434c=_0x176370,_0x5b926d={};_0x5b926d[_0x3f434c(0x1a6)]=_0x3628d2['input']?.[_0x3f434c(0x14e)],_0x5b926d[_0x3f434c(0x228)]=_0x3628d2[_0x3f434c(0x150)]?.['arguments'];const _0x4728b1={};_0x4728b1[_0x3f434c(0x2a6)]=_0x3f434c(0x2b6),_0x4728b1['params']=_0x5b926d;const _0x3d1255=_0x2e6698===_0x3f434c(0x21a)&&!this[_0x3f434c(0x24a)](_0x4728b1);if(!['status',_0x3f434c(0x1a7)][_0x3f434c(0x1c3)](_0x2e6698)&&!_0x3d1255)await this[_0x3f434c(0x204)]();const _0x2a88be={};_0x2a88be[_0x3f434c(0x1ea)]=_0x3f434c(0x1ab);if(!this[_0x3f434c(0x1a8)]?.['connected'])return Promise[_0x3f434c(0x1db)](Object['assign'](new Error(_0x3f434c(0x1f4)),_0x2a88be));const _0x3734be=_0x3f434c(0x1e1)+crypto[_0x3f434c(0x268)]();return new Promise((_0x378966,_0x45a866)=>{const _0x4d360d=_0x3f434c,_0x485aef=setTimeout(()=>{const _0x3bf679=_0x1f3c;this[_0x3bf679(0x1ad)][_0x3bf679(0x230)](messageId(_0x3734be));const _0x802753={};_0x802753[_0x3bf679(0x1ea)]=_0x3bf679(0x226),_0x45a866(Object['assign'](new Error(_0x3bf679(0x189)),_0x802753));},_0x585c38);this['control']['set'](messageId(_0x3734be),{'resolve':_0x31645f=>{clearTimeout(_0x485aef),_0x378966(_0x31645f);}});const _0x4d6e0b={'type':_0x2e6698,'requestId':_0x3734be,..._0x3628d2};this['child'][_0x4d360d(0x1d4)](_0x4d6e0b);});}async['requestRpc'](_0x26ec55,_0x1174a8,_0x48cb48=0x2710){const _0x1280bf=_0x176370;await this[_0x1280bf(0x204)]();const _0x2aaf9f=_0x1280bf(0x15c)+crypto[_0x1280bf(0x268)]();return new Promise((_0x42fb83,_0x2dc860)=>{const _0x50e10f=_0x1280bf,_0x2b3678=setTimeout(()=>{const _0x54061a=_0x1f3c;this[_0x54061a(0x1ad)]['delete'](messageId(_0x2aaf9f));const _0x315289={};_0x315289[_0x54061a(0x1ea)]=_0x54061a(0x274),_0x2dc860(Object[_0x54061a(0x217)](new Error(_0x54061a(0x240)),_0x315289));},_0x48cb48);this[_0x50e10f(0x1ad)][_0x50e10f(0x17c)](messageId(_0x2aaf9f),{'resolve':_0x5944dc=>{clearTimeout(_0x2b3678),_0x42fb83(_0x5944dc);}});const _0x4fc85e={};_0x4fc85e[_0x50e10f(0x13f)]=_0x50e10f(0x146),_0x4fc85e['id']=_0x2aaf9f,_0x4fc85e[_0x50e10f(0x2a6)]=_0x26ec55,_0x4fc85e[_0x50e10f(0x25b)]=_0x1174a8,this[_0x50e10f(0x1a8)][_0x50e10f(0x14d)][_0x50e10f(0x2b1)](JSON[_0x50e10f(0x18f)](_0x4fc85e)+'\x0a');});}async['safeBoundary'](){const _0x3a11bd=_0x176370;if(this[_0x3a11bd(0x27f)][_0x3a11bd(0x26f)])return[{'kind':'request','count':this[_0x3a11bd(0x27f)][_0x3a11bd(0x26f)]}];const _0x5b1ddb=await this[_0x3a11bd(0x24e)](_0x3a11bd(0x1e4)),_0xf1b7ab={};return _0xf1b7ab[_0x3a11bd(0x14a)]=_0x3a11bd(0x290),_0x5b1ddb[_0x3a11bd(0x1d2)]||[_0xf1b7ab];}[_0x176370(0x17b)](){const _0x5930c8=_0x176370,_0x36aade={};return _0x36aade[_0x5930c8(0x253)]=this[_0x5930c8(0x253)],_0x36aade[_0x5930c8(0x1e6)]=this['workspace'],_0x36aade['supervisorPid']=process['pid'],_0x36aade['childPid']=this[_0x5930c8(0x1a8)]?.[_0x5930c8(0x232)],_0x36aade[_0x5930c8(0x18c)]=this[_0x5930c8(0x297)]?.[_0x5930c8(0x18c)],_0x36aade['digest']=this[_0x5930c8(0x297)]?.[_0x5930c8(0x1be)],_0x36aade[_0x5930c8(0x140)]=this[_0x5930c8(0x140)],_0x36aade[_0x5930c8(0x28e)]=this[_0x5930c8(0x174)],_0x36aade['generation']=this[_0x5930c8(0x1f1)],_0x36aade;}async[_0x176370(0x28b)](_0x348be6){const _0x4edcb5=_0x176370,_0x5776b7={};_0x5776b7['code']=_0x4edcb5(0x1ab);if(!this['child'])throw Object[_0x4edcb5(0x217)](new Error(_0x4edcb5(0x248)),_0x5776b7);const _0x22105e=this[_0x4edcb5(0x1a8)];if(!_0x22105e[_0x4edcb5(0x13e)])await this[_0x4edcb5(0x204)]();else await attachOwnedJob(_0x22105e);let _0x58fd1a=![];const _0x1ababb=await stopOwnedChild(_0x22105e,{'reason':_0x348be6,'graceful':async()=>{const _0x1797a2=_0x4edcb5,_0x2afd91={};_0x2afd91[_0x1797a2(0x277)]=_0x348be6;const _0x1363ca=await this[_0x1797a2(0x24e)](_0x1797a2(0x1c7),_0x2afd91,0x3a98);_0x58fd1a=_0x1363ca[_0x1797a2(0x158)]===_0x1797a2(0x25f)&&_0x1363ca[_0x1797a2(0x232)]===_0x22105e[_0x1797a2(0x232)]&&_0x1363ca[_0x1797a2(0x253)]===this['connectionId']&&_0x1363ca[_0x1797a2(0x1f1)]===this[_0x1797a2(0x1f1)]&&_0x1363ca['registeredOwnersStopped']===!![];}}),_0x5d6c5c={};_0x5d6c5c[_0x4edcb5(0x1ea)]=_0x4edcb5(0x20c);if(process['platform']!=='win32'&&!_0x58fd1a)throw Object[_0x4edcb5(0x217)](new Error(_0x4edcb5(0x1f6)),_0x5d6c5c);const _0x34f64a={..._0x1ababb};_0x34f64a[_0x4edcb5(0x2b7)]=_0x58fd1a,this[_0x4edcb5(0x15a)]=_0x34f64a;if(this[_0x4edcb5(0x1a8)]===_0x22105e)this['child']=null;this[_0x4edcb5(0x162)]='',this[_0x4edcb5(0x1f5)]=new StringDecoder(_0x4edcb5(0x1b1));}async[_0x176370(0x285)](_0x4854dd){const _0xa3b0a7=_0x176370;if(this['initialize']){const _0x218775=await this[_0xa3b0a7(0x216)](_0xa3b0a7(0x145),this['initialize']),_0x29c882={};_0x29c882[_0xa3b0a7(0x1ea)]='CHILD_INITIALIZE_FAILED';if(_0x218775[_0xa3b0a7(0x171)])throw Object[_0xa3b0a7(0x217)](new Error(_0xa3b0a7(0x241)),_0x29c882);const _0x54a75a={};_0x54a75a[_0xa3b0a7(0x13f)]=_0xa3b0a7(0x146),_0x54a75a[_0xa3b0a7(0x2a6)]='notifications/initialized',_0x54a75a[_0xa3b0a7(0x25b)]={};if(this[_0xa3b0a7(0x2aa)])this[_0xa3b0a7(0x1a8)][_0xa3b0a7(0x14d)][_0xa3b0a7(0x2b1)](JSON[_0xa3b0a7(0x18f)](_0x54a75a)+'\x0a');}const _0x25ad29=await this[_0xa3b0a7(0x216)](_0xa3b0a7(0x2a7),{}),_0x401523=hash(JSON[_0xa3b0a7(0x18f)](_0x25ad29[_0xa3b0a7(0x1b0)]?.[_0xa3b0a7(0x1f3)]||[])),_0x5e8178={};_0x5e8178[_0xa3b0a7(0x1ea)]=_0xa3b0a7(0x1e5);if(_0x25ad29[_0xa3b0a7(0x171)]||this[_0xa3b0a7(0x174)]&&_0x401523!==this[_0xa3b0a7(0x174)])throw Object['assign'](new Error('Host\x20must\x20refresh\x20its\x20catalog'),_0x5e8178);this['toolCatalogHash']=_0x401523;const _0x299336={};_0x299336['hostSessionId']=_0x4854dd[_0xa3b0a7(0x22b)],_0x299336[_0xa3b0a7(0x265)]=_0x4854dd['boundPipeline'],await this['requestChild']('restore',_0x299336);}async[_0x176370(0x220)](_0x3fe7de){const _0x3630f7=_0x176370,_0x5f3320=readFence(this[_0x3630f7(0x1e6)]),_0x25f777={};_0x25f777['code']=_0x3630f7(0x2af);if(_0x5f3320[_0x3630f7(0x1ba)]!==_0x3630f7(0x263)||_0x3fe7de[_0x3630f7(0x23e)]!==_0x5f3320[_0x3630f7(0x23e)]||_0x3fe7de[_0x3630f7(0x22c)]!==_0x5f3320[_0x3630f7(0x22c)])throw Object[_0x3630f7(0x217)](new Error(_0x3630f7(0x221)),_0x25f777);const _0x405192={};_0x405192['status']='pending-safe-boundary',_0x405192[_0x3630f7(0x1ea)]=_0x3630f7(0x1f9);if(this['transition'])return _0x405192;this[_0x3630f7(0x284)](_0x3fe7de['transactionId']),this[_0x3630f7(0x1a1)]=!![];if(_0x3fe7de[_0x3630f7(0x158)]===_0x3630f7(0x18a)){const _0x510081={};_0x510081[_0x3630f7(0x1ea)]=_0x3630f7(0x144);if(!this[_0x3630f7(0x235)]||this[_0x3630f7(0x235)][_0x3630f7(0x23e)]!==_0x3fe7de[_0x3630f7(0x23e)]||!this['candidate'][_0x3630f7(0x1d0)]||!this['child']?.['ready'])throw Object['assign'](new Error(_0x3630f7(0x1f0)),_0x510081);const _0x3e36ed=await this['requestChild']('status'),_0x1dadcc={};_0x1dadcc[_0x3630f7(0x1ea)]=_0x3630f7(0x1ce);if(_0x3e36ed[_0x3630f7(0x232)]!==this[_0x3630f7(0x1a8)]['pid']||_0x3e36ed['generation']!==_0x3fe7de[_0x3630f7(0x1f1)]||!same(_0x3e36ed[_0x3630f7(0x1e6)],this['workspace']))throw Object[_0x3630f7(0x217)](new Error(_0x3630f7(0x24d)),_0x1dadcc);const _0x5e15e1=acknowledgeGeneration(this[_0x3630f7(0x1e6)],this[_0x3630f7(0x253)],_0x3fe7de['transactionId'],this[_0x3630f7(0x17b)]());projectGeneration(this[_0x3630f7(0x239)],this[_0x3630f7(0x1e6)],_0x5e15e1),this[_0x3630f7(0x267)]=this['candidate'][_0x3630f7(0x267)],this[_0x3630f7(0x209)]='active',this[_0x3630f7(0x1a1)]=![];const _0x3a3472={};return _0x3a3472[_0x3630f7(0x237)]=_0x5e15e1[_0x3630f7(0x23e)],this[_0x3630f7(0x20e)](_0x3a3472),{'status':_0x3630f7(0x227),...this[_0x3630f7(0x17b)]()};}const _0x222510=readGeneration(this[_0x3630f7(0x1e6)]),_0x2b9dee={};_0x2b9dee[_0x3630f7(0x1ea)]='RESOURCE_ROLL_FORWARD_REQUIRED';if(_0x3fe7de[_0x3630f7(0x158)]===_0x3630f7(0x1ef)&&_0x222510?.[_0x3630f7(0x23e)]===_0x3fe7de['transactionId'])throw Object['assign'](new Error(_0x3630f7(0x1df)),_0x2b9dee);if(_0x3fe7de['type']===_0x3630f7(0x24c)&&this[_0x3630f7(0x235)]?.[_0x3630f7(0x23e)]===_0x3fe7de[_0x3630f7(0x23e)]&&this[_0x3630f7(0x235)]['prepared']&&this['child']?.[_0x3630f7(0x229)]){const _0x29d4b3=this[_0x3630f7(0x17b)](),_0x4d815e={};_0x4d815e['code']='CANDIDATE_TUPLE_MISMATCH';if([_0x3630f7(0x18c),'digest',_0x3630f7(0x1f1),'resourceDigest','catalogHash'][_0x3630f7(0x1a9)](_0xa9892=>_0x29d4b3[_0xa9892]!==_0x3fe7de[_0xa9892]))throw Object[_0x3630f7(0x217)](new Error(_0x3630f7(0x16a)),_0x4d815e);const _0x21725e=await this['requestChild'](_0x3630f7(0x1e4)),_0xad6ffa={};_0xad6ffa['code']=_0x3630f7(0x1ce);if(_0x21725e[_0x3630f7(0x232)]!==_0x29d4b3[_0x3630f7(0x24f)]||_0x21725e[_0x3630f7(0x1f1)]!==_0x29d4b3[_0x3630f7(0x1f1)]||!same(_0x21725e[_0x3630f7(0x1e6)],this['workspace']))throw Object['assign'](new Error('Candidate\x20readiness\x20is\x20no\x20longer\x20valid'),_0xad6ffa);const _0x10dd46={'status':_0x3630f7(0x1ff),..._0x29d4b3};return _0x10dd46;}this[_0x3630f7(0x1cf)]=((async()=>{const _0x1daec4=_0x3630f7;if(_0x3fe7de['type']===_0x1daec4(0x256)){if(this[_0x1daec4(0x235)]?.[_0x1daec4(0x23e)]===_0x3fe7de[_0x1daec4(0x23e)]&&this[_0x1daec4(0x235)][_0x1daec4(0x25f)]&&this['candidate'][_0x1daec4(0x1d0)]&&!this['candidate'][_0x1daec4(0x271)])return{'status':this[_0x1daec4(0x1a8)]?.[_0x1daec4(0x229)]?_0x1daec4(0x1ff):_0x1daec4(0x238),'code':this[_0x1daec4(0x1a8)]?.[_0x1daec4(0x229)]?undefined:'CANDIDATE_NOT_READY','oldRuntimeStopped':!![],...this['candidateTuple']()};if(this[_0x1daec4(0x235)]?.[_0x1daec4(0x23e)]===_0x3fe7de[_0x1daec4(0x23e)]&&this[_0x1daec4(0x235)][_0x1daec4(0x25f)]&&!this[_0x1daec4(0x235)]['restored']&&!this[_0x1daec4(0x1a8)])return{'status':_0x1daec4(0x25f),'connectionId':this['connectionId']};const _0x21fdf9=await this[_0x1daec4(0x1c0)]();if(_0x21fdf9[_0x1daec4(0x15b)])return{'status':_0x1daec4(0x238),'blockers':_0x21fdf9};const _0x287d34=await this[_0x1daec4(0x24e)]('status');this[_0x1daec4(0x235)]={'transactionId':_0x3fe7de['transactionId'],'previous':{'release':this[_0x1daec4(0x267)],'generation':this[_0x1daec4(0x1f1)],'resourceDigest':this[_0x1daec4(0x140)],'state':_0x287d34}},this[_0x1daec4(0x2a4)](),await this['stopChild'](_0x1daec4(0x1b8)),this[_0x1daec4(0x235)][_0x1daec4(0x25f)]=!![],this[_0x1daec4(0x2a4)]();const _0x579814={};_0x579814['stoppedTransaction']=_0x3fe7de['transactionId'],this['record'](_0x579814);const _0x42efda={};return _0x42efda[_0x1daec4(0x1e4)]='stopped',_0x42efda['connectionId']=this['connectionId'],_0x42efda['shutdownEvidence']=this['shutdownEvidence'],_0x42efda;}if(_0x3fe7de[_0x1daec4(0x158)]===_0x1daec4(0x1ef)){const _0x2bb4df={};_0x2bb4df[_0x1daec4(0x1ea)]=_0x1daec4(0x1eb);if(!this[_0x1daec4(0x235)])throw Object['assign'](new Error(_0x1daec4(0x291)),_0x2bb4df);const _0x17803b=this['candidate'][_0x1daec4(0x224)],_0x2741aa={};_0x2741aa[_0x1daec4(0x1ea)]=_0x1daec4(0x1eb);if(!_0x17803b?.['state']||!this[_0x1daec4(0x235)][_0x1daec4(0x25f)])throw Object[_0x1daec4(0x217)](new Error(_0x1daec4(0x148)),_0x2741aa);if(this[_0x1daec4(0x1a8)])await this[_0x1daec4(0x28b)](_0x1daec4(0x29c));await this[_0x1daec4(0x270)](_0x17803b[_0x1daec4(0x267)],_0x17803b['generation']);const _0x531cb3={};_0x531cb3[_0x1daec4(0x1ea)]=_0x1daec4(0x23d);if(this['resourceDigest']!==_0x17803b[_0x1daec4(0x140)])throw Object[_0x1daec4(0x217)](new Error(_0x1daec4(0x1bc)),_0x531cb3);return await this[_0x1daec4(0x285)](_0x17803b['state']),this['release']=_0x17803b[_0x1daec4(0x267)],this[_0x1daec4(0x235)]={...this[_0x1daec4(0x235)],'restored':!![],'prepared':![]},this[_0x1daec4(0x2a4)](),this['activation']=_0x1daec4(0x238),this[_0x1daec4(0x1a1)]=![],this[_0x1daec4(0x20e)](),{'status':_0x1daec4(0x233),'serving':this['child']?.['ready']===!![],...this[_0x1daec4(0x17b)]()};}const _0x22bb69={};_0x22bb69[_0x1daec4(0x1ea)]='CANDIDATE_TUPLE_MISMATCH';if(!Number[_0x1daec4(0x1fc)](_0x3fe7de[_0x1daec4(0x1f1)])||_0x3fe7de['generation']<=(this[_0x1daec4(0x235)]?.['previous']?.[_0x1daec4(0x1f1)]??this[_0x1daec4(0x1f1)])||_0x3fe7de[_0x1daec4(0x18c)]!==_0x5f3320['targetVersion']||_0x3fe7de['digest']!==_0x5f3320[_0x1daec4(0x1d1)])throw Object[_0x1daec4(0x217)](new Error(_0x1daec4(0x294)),_0x22bb69);const _0x199c45=_0x3fe7de[_0x1daec4(0x267)]||path['join'](this[_0x1daec4(0x239)],_0x1daec4(0x246),_0x3fe7de[_0x1daec4(0x18c)]+'-'+_0x3fe7de[_0x1daec4(0x1be)]),_0x39a1a8=verifyRelease(_0x199c45,this[_0x1daec4(0x1e9)]),_0x2c072a={};_0x2c072a[_0x1daec4(0x1ea)]=_0x1daec4(0x15e);if(_0x39a1a8[_0x1daec4(0x18c)]!==_0x3fe7de[_0x1daec4(0x18c)]||_0x39a1a8[_0x1daec4(0x1be)]!==_0x3fe7de['digest'])throw Object['assign'](new Error('Candidate\x20release\x20does\x20not\x20match\x20transaction'),_0x2c072a);const _0x5afd95={};_0x5afd95[_0x1daec4(0x1ea)]='CHILD_STOP_UNCONFIRMED';if(!this[_0x1daec4(0x235)]?.[_0x1daec4(0x25f)]||this['candidate'][_0x1daec4(0x23e)]!==_0x3fe7de[_0x1daec4(0x23e)])throw Object['assign'](new Error(_0x1daec4(0x1bf)),_0x5afd95);const _0x17fbee=this[_0x1daec4(0x235)][_0x1daec4(0x224)][_0x1daec4(0x1ba)];this[_0x1daec4(0x235)][_0x1daec4(0x267)]=_0x199c45;if(this[_0x1daec4(0x1a8)])await this['stopChild'](_0x1daec4(0x190));this[_0x1daec4(0x235)][_0x1daec4(0x1d0)]=![],this[_0x1daec4(0x2a4)](),await this['boot'](_0x199c45,_0x3fe7de['generation']),await this[_0x1daec4(0x285)](_0x17fbee);const _0x284b60={};_0x284b60[_0x1daec4(0x1ea)]=_0x1daec4(0x15e);if(this[_0x1daec4(0x140)]!==_0x3fe7de[_0x1daec4(0x140)]||this[_0x1daec4(0x174)]!==_0x3fe7de[_0x1daec4(0x28e)])throw Object[_0x1daec4(0x217)](new Error('Candidate\x20resources\x20or\x20catalog\x20do\x20not\x20match\x20transaction'),_0x284b60);this[_0x1daec4(0x235)][_0x1daec4(0x1d0)]=!![],this['persistCandidate'](),this[_0x1daec4(0x209)]=_0x1daec4(0x238);const _0x340398={};return _0x340398[_0x1daec4(0x266)]=_0x3fe7de[_0x1daec4(0x23e)],this['record'](_0x340398),{'status':'candidate-ready',...this[_0x1daec4(0x17b)]()};})());try{return await this[_0x3630f7(0x1cf)];}finally{this[_0x3630f7(0x1cf)]=null;}}async[_0x176370(0x192)](){const _0xfe4385=_0x176370,_0x1da4de={};return _0x1da4de[_0xfe4385(0x1e4)]=_0xfe4385(0x223),_0x1da4de[_0xfe4385(0x1ea)]=_0xfe4385(0x188),_0x1da4de;}async[_0x176370(0x28d)](_0x11d6af,_0x13e550,_0x3e9874){const _0x159f26=_0x176370;if(this[_0x159f26(0x1a8)]!==_0x11d6af)return;_0x11d6af[_0x159f26(0x13e)]=!![],_0x11d6af['ready']=![];const _0x5c15ce={};_0x5c15ce[_0x159f26(0x1ea)]=_0x159f26(0x252),_0x11d6af['bootReject']?.(Object[_0x159f26(0x217)](new Error(_0x159f26(0x16d)),_0x5c15ce));for(const [_0x14dbf1]of this['pending']){try{const _0x5dcaad={};_0x5dcaad['code']=-0x7d02,_0x5dcaad['message']=_0x159f26(0x1d5),this['writeHost']({'jsonrpc':_0x159f26(0x146),'id':JSON[_0x159f26(0x1f2)](_0x14dbf1),'error':_0x5dcaad});}catch{}}this[_0x159f26(0x27f)][_0x159f26(0x207)]();try{const _0x420e52={};_0x420e52['reason']='runtime-child-closed',_0x420e52['graceMs']=0x3e8,await stopOwnedChild(_0x11d6af,_0x420e52);}catch(_0x37e57f){this[_0x159f26(0x209)]='legacy-ownership-unverified',this[_0x159f26(0x1a1)]=!![];const _0x527115={};_0x527115['stopReason']=_0x3e9874||_0x13e550||_0x159f26(0x183),_0x527115[_0x159f26(0x1c9)]=_0x37e57f[_0x159f26(0x1ea)]||'PROCESS_TREE_STOP_UNCONFIRMED',this[_0x159f26(0x20e)](_0x527115);return;}if(this['child']!==_0x11d6af)return;if(process['platform']!==_0x159f26(0x2b5)&&!_0x11d6af[_0x159f26(0x1c8)]){this[_0x159f26(0x209)]=_0x159f26(0x1ed),this['admissionClosed']=!![];const _0x4ffcc4={};_0x4ffcc4[_0x159f26(0x1d3)]=_0x3e9874||_0x13e550||_0x159f26(0x183),_0x4ffcc4[_0x159f26(0x1c9)]=_0x159f26(0x20c),this[_0x159f26(0x20e)](_0x4ffcc4);return;}this['child']=null;if(!this[_0x159f26(0x1cf)]&&!this['stopped']){this['initialize']=null,this[_0x159f26(0x2aa)]=![],this['activation']=_0x159f26(0x223),this['admissionClosed']=!![];const _0x4e7d7c={};_0x4e7d7c[_0x159f26(0x1d3)]=_0x3e9874||_0x13e550||_0x159f26(0x183),this[_0x159f26(0x20e)](_0x4e7d7c);}}[_0x176370(0x23c)](_0x57007e){const _0x1d1e75=_0x176370;this['stdout'][_0x1d1e75(0x2b1)](JSON[_0x1d1e75(0x18f)](_0x57007e)+'\x0a');}async['close'](_0x40db6e='host-eof'){const _0x32f6b3=_0x176370;if(this['closed'])return;if(this[_0x32f6b3(0x1aa)])return this[_0x32f6b3(0x1aa)];this[_0x32f6b3(0x1a1)]=!![],clearTimeout(this[_0x32f6b3(0x27c)]),this[_0x32f6b3(0x1aa)]=((async()=>{const _0x5235d0=_0x32f6b3;try{if(this[_0x5235d0(0x1a8)])await this[_0x5235d0(0x28b)](_0x40db6e);closeMember(this[_0x5235d0(0x1e6)],this['connectionId'],process[_0x5235d0(0x232)],!![]),this[_0x5235d0(0x25f)]=!![],this['closeReason']=_0x40db6e,require(_0x5235d0(0x201))[_0x5235d0(0x282)](this),await new Promise(_0x3c621f=>this[_0x5235d0(0x26b)]?.[_0x5235d0(0x16f)](_0x3c621f)||_0x3c621f()),this[_0x5235d0(0x209)]='ready-next-connection';const _0x2561b1={};_0x2561b1[_0x5235d0(0x1d3)]=_0x40db6e,this[_0x5235d0(0x20e)](_0x2561b1);try{fs[_0x5235d0(0x191)](this[_0x5235d0(0x1bb)]);}catch{}if(process[_0x5235d0(0x214)]!=='win32')try{fs[_0x5235d0(0x191)](this[_0x5235d0(0x258)]);}catch{}this['closed']=!![];}catch(_0x28d74d){this[_0x5235d0(0x209)]=_0x5235d0(0x1ed);const _0xbda002={};_0xbda002['stopReason']=_0x40db6e,_0xbda002['blocker']=_0x28d74d['code']||_0x5235d0(0x1b3),this['record'](_0xbda002);throw _0x28d74d;}})());try{return await this['closing'];}finally{this[_0x32f6b3(0x1aa)]=null;}}}function _0x1f3c(_0xe62e7,_0x68be86){_0xe62e7=_0xe62e7-0x13d;const _0x309526=_0x3095();let _0x1f3cb2=_0x309526[_0xe62e7];if(_0x1f3c['IjqBiM']===undefined){var _0x308fdf=function(_0x5ab419){const _0x3aeced='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x7bd78c='',_0x57b432='';for(let _0x3cb4cc=0x0,_0x8166a2,_0x169f64,_0x65002a=0x0;_0x169f64=_0x5ab419['charAt'](_0x65002a++);~_0x169f64&&(_0x8166a2=_0x3cb4cc%0x4?_0x8166a2*0x40+_0x169f64:_0x169f64,_0x3cb4cc++%0x4)?_0x7bd78c+=String['fromCharCode'](0xff&_0x8166a2>>(-0x2*_0x3cb4cc&0x6)):0x0){_0x169f64=_0x3aeced['indexOf'](_0x169f64);}for(let _0xa58575=0x0,_0x3e84f0=_0x7bd78c['length'];_0xa58575<_0x3e84f0;_0xa58575++){_0x57b432+='%'+('00'+_0x7bd78c['charCodeAt'](_0xa58575)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x57b432);};_0x1f3c['ZMBnGr']=_0x308fdf,_0x1f3c['NPhkvM']={},_0x1f3c['IjqBiM']=!![];}const _0x266c87=_0x309526[0x0],_0x4ac6d7=_0xe62e7+_0x266c87,_0x12c69f=_0x1f3c['NPhkvM'][_0x4ac6d7];return!_0x12c69f?(_0x1f3cb2=_0x1f3c['ZMBnGr'](_0x1f3cb2),_0x1f3c['NPhkvM'][_0x4ac6d7]=_0x1f3cb2):_0x1f3cb2=_0x12c69f,_0x1f3cb2;}const _0x343c96={};_0x343c96['ConnectionSupervisor']=ConnectionSupervisor,module['exports']=_0x343c96;
|
|
1
|
+
'use strict';const _0x237898=_0x4c71;(function(_0x417f93,_0x2c8297){const _0x4abca3=_0x4c71,_0x1aa3ad=_0x417f93();while(!![]){try{const _0x3fb849=-parseInt(_0x4abca3(0x241))/0x1+parseInt(_0x4abca3(0x2f5))/0x2*(parseInt(_0x4abca3(0x23d))/0x3)+parseInt(_0x4abca3(0x201))/0x4*(-parseInt(_0x4abca3(0x2ac))/0x5)+parseInt(_0x4abca3(0x2c9))/0x6*(-parseInt(_0x4abca3(0x1e1))/0x7)+-parseInt(_0x4abca3(0x267))/0x8+parseInt(_0x4abca3(0x1f2))/0x9*(-parseInt(_0x4abca3(0x288))/0xa)+parseInt(_0x4abca3(0x1c1))/0xb;if(_0x3fb849===_0x2c8297)break;else _0x1aa3ad['push'](_0x1aa3ad['shift']());}catch(_0x473dd2){_0x1aa3ad['push'](_0x1aa3ad['shift']());}}}(_0xc45c,0xc66a9));function _0xc45c(){const _0x38d5ff=['AgfUzgXLsg9ZDe1LC3nHz2u','C3rHCNq','Ag9VAY1JB250zxH0','u3vWzxj2AxnVCIbYzxf1zxn0igzHAwXLza','CgLWzq','Dg9VBhm','CMvQzwn0','B3zLCNnPEMuTAg9ZDc1TzxnZywDL','q2fUzgLKyxrLihjLywrPBMvZCYbPCYbUBYbSB25NzxiGDMfSAwq','CMvUyw1Lu3LUyW','D2fPDgLUzW','Aw5WDxq','AxbJ','CMvSzwfZzunVBw1PDhrLzezLBMnL','Ag9ZDc1LCNjVCG','y2XLyxi','q0fmtevsx0nptLrfwfrFvu5bvKfjtefcteu','C3rHDhvZ','y2f0y2G','y29UDgv4Df9SB2fK','Bwv0Ag9K','y29UBMvJDgLVBKLK','CMvHzhK','CMvZDg9Yzq','m1jYD1rjsW','ywn0Aw9U','r0vorvjbveLptL9vtKnptKzjuK1fra','y2fUzgLKyxrLvhvWBgu','mZiYotK3CMPTte5H','Aw5WDxrdAgfPBG','BM9KztP1CMW','BgLUDxG','zgLNzxn0','zgLZy29UBMvJDa','C3rYAw5NAwz5','C2vZC2LVBL9IB290C3rYyxa','C2H1DgrVD24','Dg9VBa','CNvUDgLTzvjVB3q','q0foreLeqvrfx05pvf9srufewq','Dg1WzgLY','AxnbCNjHEq','y29UC3vTzs1YzxbVCNq','y29UDhjVBa','BMf0AxzLq2fSBgvY','uNvUDgLTzsbJAgLSzcbZDgfYDhvWihrPBwvKig91Da','C3DPDgnOuNvUDgLTzq','BwnWx2fNzw50x2HLywX0Aa','zNn5BMntEw5J','C3vWzxj2AxnVCLbPza','vfjbtLnjveLptL9jtL9quK9huKvtuW','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGywrTAxnZAw9UigLZignSB3nLzcbMB3iGCNvUDgLTzsbZD2L0y2G','ywn0AxzHDgLVBG','CMvXDwvZDc1ZDg9W','CMvZDw1L','y2XVC2u','DhjPBq','BM9KztPUzxq','CgfYyw1Z','CMvZB3vYy2vZlwfWCgXPzwq','CMvJDxjZAxzL','C2H1DgrVD25fDMLKzw5Jzq','Dg9VBhmVy2fSBa','B3bLBG','zgvZDhjVEq','CMvSzwfZzxm','otG0mJKWnhjqtxbHBq','Ag9ZDc1LB2y','C3rVChbLza','C2TPBgXFBg9Hza','CMvZB3vYy2veAwDLC3q','ugfYC2uGzxjYB3i','y29UBMvJDgvK','AxnZDwuTy29UDgv4Da','yMfJA2vUza','CM9VDfbHDgG','qunusvzbveLptL9ot1rFufjfuefsruq','y2XVC3vYzvjLz2LZDhjHDgLVBNm','CMvXDwvZDenOAwXK','CgfYC2u','C3rHCNr1Cfn0yxrL','CMvJB3jKuMvNAxn0CMf0Aw9Uq2XVC3vYzq','ChjLCgfYzwq','ChjLCgfYzq','C3rKB3v0','y3jLyxrLsg1HyW','z2f0zxDHEs1IAw5KAw5N','C3rHCNrZv2L0Aa','DhjHBNnHy3rPB25jza','Dw5SAw5Ru3LUyW','CgvUzgLUzW','ChjLCgfYzs1Jyw5KAwrHDgu','tunqx0rju0npvKvsx0jbq0TftKrt','y2HPBgqTy2XVC2vK','yxnZAwDU','CMvIAw5Kv29YA3nWywnL','C2v0','D2LUmZi','zxHWzwn0zwrcB290','mti3mgnSrMPNtq','uhjLDMLVDxmGCNvUDgLTzsbTDxn0ihn0B3aGyMvMB3jLihjLC291CMnLCYbJAgfUz2u','CMvXDwvZDfjWyW','CMvXDwvZDa','uhjLDMLVDxmGCMvZB3vYy2vZihDLCMuGBM90ihjLC3rVCMvK','lMfNzw50CY9YDw50Aw1Ll2nVBM5Ly3rPB25Z','yNL0zuXLBMD0Aa','CMfUzg9TqNL0zxm','BwTKAxjtEw5J','yxjNDw1LBNrZ','uKvrvuvtvf9jrf9dt05gteLdva','y2XVC2vtEw5J','DxbKyxrL','CgXHDgzVCM0','q2fUzgLKyxrLihjLBgvHC2uGzg9LCYbUB3qGBwf0y2GGDhjHBNnHy3rPB24','B3b0Aw9UCW','v09ss1nqqunfx1rsqu5tqunusu9ox1jfuvvjuKve','sg9ZDcbTDxn0ihjLzNjLC2GGAxrZignHDgfSB2C','q0HjterFt1DorvjtseLqx1vos05pv04','q0HjterFuKvbreLorvntx01ju01bveni','CMvJzwL2zunVBNrYB2W','zxHWBg9Yzv9JB2rL','BM9KztPJCNLWDg8','Bxv0yxrPB25bBgXVD2vK','zMLUzf9JywXSzwvZ','C3rVCfjLCxvLC3rLza','z3jLCf9ZzwfYy2G','AxntywzLsw50zwDLCG','zgv0ywLS','uhjLCgfYzwqGy2fUzgLKyxrLihr1CgXLignOyw5Nzwq','CMvZB2X2zq','C2HHmJu2','B3bLCMf0Aw9Uqwn0AxzHDgLVBG','C3jJl2LUC3rHBgXLCI9YDw50Aw1LlwnOAwXKlMPZ','BgLZDgvU','uKvtt1vsq0vFuK9mtejbq0TFvu5dt05gsvjnruq','mtuYnZG1qMj4Cu5N','C2L6zq','zxbVy2G','C2v0lwDLBMvYyxrPB24','q2fUzgLKyxrLig9WzxjHDgLVBIbOyxmGysbZDgfSzsb3B3jRC3bHy2uGzxbVy2G','q09otKvdveLptL9ot1rFufjfuefsruq','B3v0Chv0rgvJB2rLCG','zxHWBgLJAxrxB3jRC3bHy2u','lI91CgrHDguTCMvXDwvZDa','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','yMXVy2TLCG','y2HPBgrdB250CM9Sq2fWywjPBgL0AwvZ','mI4W','DgfYz2v0vMvYC2LVBG','D29YA3nWywnLlxjVBgXIywnR','AgfUzhnOywTLq29TCgXLDgu','z2f0zxDHEujPBMrPBMC','Aw5PDgLHBgL6zwq','CMvJB25Uzwn0lxjLCxvPCMvK','ANnVBNjWyW','yM9VDgLUzW','Dg9ju09tDhjPBMC','qurnsvntsu9ox1jftevbu0vFrKfjteve','zgvMzxjjzgvUDgL0Eq','zxHLy3v0B3juAw1LCG','CMvHzezPBgvtEw5J','zxjYB3i','B2zM','DhjHBNnPDgLVBG','mJmXme5Hzu1lta','uhjLDMLVDxmGCNvUDgLTzsbVD25LCNnOAxaGD2fZig5VDcbYzwnVDMvYzwq','CMvZB3vYy2uTD2fPDa','uNvUDgLTzsbJAgLSzcbJB250CM9SihrPBwvKig91Da','ChjLDMLVDxm','yM9VDfjLC29SDMu','y2XVC2vK','CMfUzg9Tvvvjra','AxnozxDnDxrHDgLVBG','Ag9ZDfnLC3nPB25jza','C3rVCc1MB3iTDxbKyxrL','q0HjterFu1rpuf9vtKnptKzjuK1fra','yM9VDeLKzw50Axr5','ywrTAxnZAw9Uq2XVC2vK','lMTLEq','B3bLBLn5BMm','CMvHBhbHDgHtEw5J','C2vJCMv0','y2HPBgrdBg9Zzwq','B25Jzq','BwfJ','Dg9tDhjPBMC','BM9Uy2u','Dg9VBhmVBgLZDa','zw5K','yxb0t3DUzxjZAgLW','zNjVEMvU','ChjLDMLVDxmTCMvZDg9Yzwq','CMvNAxn0zxjLze93BMvYC1n0B3bWzwq','DgfYz2v0rgLNzxn0','DgLJA2v0','CMvJzwLWDfbHDgG','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','y29TBwL0DgvKvhjHBNnHy3rPB24','CMvSzwfZzq','zhjHAw5PBMC','ywrTAxnZAw9UlwnOzwnR','CgLWzwXPBMvFC3rHDhvZ','ywn0AxzL','Aw5JBhvKzxm','C2H1DgrVD25by2TUB3DSzwrNzwq','zgLYBMfTzq','yxnZzxj0u3rHCNr1CfjLywr5','y29TBwL0lwnHBMrPzgf0zq','mtq1ntq3neniwu9Atq','ywn0AxzHDgLVBKv2AwrLBMnL','DxrMoa','CMvZDg9Yzs1WCMv2Aw91CW','q0foreLeqvrfx1rvueXfx01ju01bveni','BgLZDgvUzxi','Dg9VBenHDgfSB2DiyxnO','D3jPDgu','uMvXDwvZDcbjrcbPCYbZDgLSBcbPBIbMBgLNAhq','CgLK','CgvYC2LZDenHBMrPzgf0zq','CNvUDgLTzq','y29TBwL0r2vUzxjHDgLVBG','CMvMCMvZAa','yMXVy2TLCNm','zMLUzgLUzY1YzxnVBhv0Aw9U','t1DorvjtseLqx1vos05pv04','CMvXDwLYzxnqCM9JzxnZrgLZCgf0y2G','BgvUz3rO','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','C2fMzujVDw5Kyxj5','tK9erv9pufrjt05t','CMvXDwLYzvn1ChbVCNrLze5Vzgu','BM9KztPVCW','yM9VDc1LCNjVCG','CMvZDg9Yzwq','y3jLyxrLsgfZAa','y2HHBMDLzef0','C2v0vgLTzw91Da','Dg9mB3DLCKnHC2u','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGAxmGzNjVEMvU','Aw5PDgLHBgL6zunHBMrPzgf0zq','CMvJzwL2zuHVC3q','Cgf1C2u','CMvJywXS','q29UBMvJDgLVBLn1CgvYDMLZB3i','CM91DgvFCMvXDwvZDa','C3rKAw4','C3rHDgu','yM9VDfjLAMvJDa','zMLSztO','AxnszwfKt25SEvrVB2W','yM91BMq','y2HPBgrfBNzPCM9UBwvUDa','Aw5PDgLHBgL6zq','lMfNzw50CW','y2fUzgLKyxrLlxjLy292zxj5','D29YA3nWywnL','ywXSB3DLza','DhjHBNnWB3j0','Dw5HDMfPBgfIBgu','zMLUzf9JywXSzxjZ','CMvJzwL2zunOAwXK','y2fUzgLKyxrLugf0Aa','yM91BMrqAxbLBgLUzq','Aw52B2nHDgLVBKLK','Agv4','C3rVCfjLyxnVBG','Aw5WDxrcDwzMzxi','Dxb0Aw1L','lNrYyw5Zywn0Aw9UlMPZB24','Bw9KzwXFBgLZDa','y2f0ywXVz0HHC2G','C3rVCenVzgu','lI91CgrHDguTzxHLy3v0B3i','ywjVCNq','BM9KztPJAgLSzf9WCM9JzxnZ','qvbux1vqrefurv9qru5esu5hoIbUzxCGy29UBMvJDgLVBIbPCYb3ywL0Aw5NigzVCIb3B3jRC3bHy2uGCMvJB3zLCNK','ChjLCgfYzwruCMfUC2fJDgLVBG','y29UDhjVBenHBMrPzgf0zq','uNvUDgLTzsbsuemGDgLTzwqGB3v0','CMvJB3zLCKnHBMrPzgf0zq','CMvHC29U','q0HjterFu1rbuLrFveLnru9vva','y29Kzv9ZzwfYy2G','q2fUzgLKyxrLigLUAxrPywXPEMf0Aw9UigzHAwXLza','DxnLze5VBMnLCW','B3bLCMf0Aw9UC0vUywjSzwq','uNvUDgLTzsbJAgLSzcbKAwqGBM90igv4Axq','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','Dw5Yzwy','DgHLBG','z2v0','CNvUDgLTzs1JAgLSzc1JBg9Zzwq','CMvMCMvZAeLUDMvUDg9YEq','mZK3odGYnZzSB0vkuhq','BwvZC2fNzq','B3DUzxjZAgLWlxvUA25VD24','zhjHAw4','C3vWzxj2AxnVCLbYB2nLC3ntDgfYDa','r0furvDbwv9csu5esu5hx1jfuvvjuKve','ChjVyMvxB3jRC3bHy2vdB25Uzwn0Aw9UCW','CMvHzf9RBM93BgvKz2u','y2fUzgLKyxrL','lI4Vy29Yzs9VD25Lzc1WCM9JzxnZ','Bw9Kzq','z2vUzxjHDgLVBG','zw5HyMXLt3DUzwrpCgvYyxrPB25Z','CMvZDwX0','lNnVy2S','u1Djvenix0zbsuXfra','zgvSzxrL','BM90AwzPy2f0Aw9UCY9PBML0AwfSAxPLza','Cgf0Aa','CMvJB25JAwXLlxzLCMLMAwnHDgLVBG','q29TBwL0DgvKigDLBMvYyxrPB24GCMvXDwLYzxmGCM9SBcbMB3j3yxjK','y29Kzq','uNvUDgLTzsbJAgLSzcbPCYb1BMf2ywLSywjSzq','CMvXDwvZDeLK','y2fUzgLKyxrLlxjLywr5','q0HjterFuLbdx1rjtuvpvvq','q0HjterFvu5bvKfjtefcteu','yxr0zw1WDeLK','C3rVCenOAwXK','q0foreLeqvrfx0nptLrst0XFrKfjteve','D2f0y2Hqzw5KAw5NrxHLy3v0B3i','C3rHCNr1CefSBg93zwq','mZG3oeDXuvfTCq','y2XVC2vszwfZB24','ufjpq0vtu19uuKvfx1nut1bFvu5dt05gsvjnruq','zMfPBgvK','y2HPBgq','D29YA3nWywnLlxvWzgf0zq','y2HPBgrqAwq','BgvNywn5lw93BMvYC2HPCc11BNzLCMLMAwvK','BgLZDf9JB2rLx2zPBgvZ','D29YA3nWywnLlwjVDw5K','ufjpq0vtu19uuKvfx1nut1bFvu5dt05gsvjnruq6ihbYAw9Yihj1BNrPBwuGB3DUzxjZAgLWihjLCxvPCMvZihjLy292zxj5','D3jPDgviB3n0','D29YA3nWywnLrM9SzgvYCW','zw5KCg9PBNq','D29YA3nWywnLrNjVBuLUAxrPywXPEMu','zMXHzW','C3rKzxjY','mJmZmZDxqLvQr1u','yxb0lwnVBNrYB2WT','CMvJB3jK','y2XVC2LUzW','C3rHCNrqzw5KAw5NrxHLy3v0B3i','C2XPy2u','Aw5KzxHpzG','B3v0Chv0qNvMzMvY','BM90AwzPy2f0Aw9UCY8','C2vUza','y2HHBgXLBMDL','yM9VDa','y2XVC3vYzu1HyW','y29UBMvJDgLUzW','y2fWDhvYzvjLz2LZDhjHDgLVBNm','mtG4wxLgCfPS','B3bLCMf0Aw9UCY1LBMfIBgvK','BM9KztPMCW','yxb0lw1JCc0','DgvZDa','y2fUzgLKyxrLlwjVB3qTzMfPBgvK','DMvYC2LVBG','qurnsvntsu9ox0nptKzmsunu','qvbux0nptK5fq1rjt05Fsuq','C2vJCMv0ugf0Aa','lNrTCa','y3DK','lI4Vy29Yzs93B3jRC3bHy2uTz2vUzxjHDgLVBG','y29UDhjVBenHCgfIAwXPDgLLCW','uMvNAxn0zxjLzcbVD25LCIbZAhv0zg93BIb3yxmGBM90ignVBMzPCM1Lza','uNvUDgLTzsbYzwfKAw5LC3mGDhvWBguGzg9LCYbUB3qGBwf0y2GGy2fUzgLKyxrL','y3jLyxrLu2vYDMvY','AwrLBNrPDhK','D3jPDgvgAwXLu3LUyW','DhLWzq','ChvIBgLJs2v5','q2HPBgqGB3DUzxjZAgLWigLZihvUA25VD24','lI4Vy29Yzs9UB2rLlxzLCNnPB24','v09ss1nqqunfx1jfq09wrvjzx1jfuvvjuKve','r0vorvjbveLptL9srunpvKvswv9nsvnnqvrdsa','zgf0yq','BMfTzq','DgLJA2v0CW','lI9YDw50Aw1Llxn0B3jL','CM9VDfvYAq','lI9YzwDPC3rYyxrPB24Ty2XVC3vYzq','zw5HyMXLlw93BMvKlw9WzxjHDgLVBNm','q0HjterFrvHjvf9usu1ft1vu','AM9PBG','l3bYB2mVC3LZl2TLCM5LBc9Yyw5KB20VyM9VDf9Pza','rvHfq1vut1jFu1rbuLrFrKfjteve'];_0xc45c=function(){return _0x38d5ff;};return _0xc45c();}const fs=require(_0x237898(0x203)),os=require(_0x237898(0x30c)),path=require('node:path'),crypto=require(_0x237898(0x29e)),net=require(_0x237898(0x25e)),{spawn}=require(_0x237898(0x1ae)),{StringDecoder}=require('node:string_decoder'),{processIdentity,captureOwnedChild,attachOwnedJob,stopOwnedChild}=require(_0x237898(0x1ca)),{verifyRelease}=require(_0x237898(0x21d)),{acquireRuntimeLock}=require('../core/owned-lock'),{readFence,changeFence,withAdmissionLock,saveLocked,finishOperation}=require(_0x237898(0x2e9)),{verifyEnvelope}=require('../core/ipc-envelope'),{registerMember,closeMember,readGeneration,projectGeneration,acknowledgeGeneration,joinServingGeneration}=require(_0x237898(0x20d)),hash=_0x522fcb=>crypto[_0x237898(0x30f)](_0x237898(0x2a7))[_0x237898(0x294)](_0x522fcb)[_0x237898(0x245)](_0x237898(0x32d)),atomic=(_0x41234a,_0x4eefba)=>{const _0x54d49e=_0x237898,_0x2f3bff={};_0x2f3bff[_0x54d49e(0x261)]=!![],fs[_0x54d49e(0x290)](path[_0x54d49e(0x2f2)](_0x41234a),_0x2f3bff);const _0x2da021=_0x41234a+'.'+crypto[_0x54d49e(0x2d0)]()+_0x54d49e(0x20b),_0x4b6a88=fs[_0x54d49e(0x2d8)](_0x2da021,'wx',0x180);try{fs[_0x54d49e(0x213)](_0x4b6a88,JSON['stringify'](_0x4eefba)),fs[_0x54d49e(0x255)](_0x4b6a88);}finally{fs[_0x54d49e(0x293)](_0x4b6a88);}fs[_0x54d49e(0x22e)](_0x2da021,_0x41234a);},same=(_0x486de8,_0x4e1de4)=>process[_0x237898(0x295)]===_0x237898(0x286)?_0x486de8[_0x237898(0x312)]()===_0x4e1de4[_0x237898(0x312)]():_0x486de8===_0x4e1de4,messageId=_0x3e903d=>JSON[_0x237898(0x247)](_0x3e903d),waitChildClosed=(_0x5b32a9,_0x6baa87=0x1388)=>new Promise((_0x501b3b,_0x3277ec)=>{const _0x30c558=_0x237898;if(_0x5b32a9['closed'])return _0x501b3b();const _0x19cf88=setTimeout(()=>{const _0x45c493=_0x4c71;_0x5b32a9[_0x45c493(0x2c7)](_0x45c493(0x25c),_0xb25ecd);const _0x11cf5f={};_0x11cf5f[_0x45c493(0x1d6)]=_0x45c493(0x221),_0x3277ec(Object[_0x45c493(0x283)](new Error(_0x45c493(0x1ba)),_0x11cf5f));},_0x6baa87),_0xb25ecd=()=>{clearTimeout(_0x19cf88),_0x501b3b();};_0x5b32a9[_0x30c558(0x2dc)](_0x30c558(0x25c),_0xb25ecd);});function _0x4c71(_0x10b043,_0x40c230){_0x10b043=_0x10b043-0x1a6;const _0xc45cbe=_0xc45c();let _0x4c71a6=_0xc45cbe[_0x10b043];if(_0x4c71['MjBNkb']===undefined){var _0x5a8351=function(_0x2a3e07){const _0xa3aef2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3da858='',_0x558fd2='';for(let _0x5dd6ce=0x0,_0x10a518,_0x40b99f,_0x1eb635=0x0;_0x40b99f=_0x2a3e07['charAt'](_0x1eb635++);~_0x40b99f&&(_0x10a518=_0x5dd6ce%0x4?_0x10a518*0x40+_0x40b99f:_0x40b99f,_0x5dd6ce++%0x4)?_0x3da858+=String['fromCharCode'](0xff&_0x10a518>>(-0x2*_0x5dd6ce&0x6)):0x0){_0x40b99f=_0xa3aef2['indexOf'](_0x40b99f);}for(let _0x5ed23a=0x0,_0x5d9831=_0x3da858['length'];_0x5ed23a<_0x5d9831;_0x5ed23a++){_0x558fd2+='%'+('00'+_0x3da858['charCodeAt'](_0x5ed23a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x558fd2);};_0x4c71['MtiFaL']=_0x5a8351,_0x4c71['QEejey']={},_0x4c71['MjBNkb']=!![];}const _0x2bc465=_0xc45cbe[0x0],_0x5158b2=_0x10b043+_0x2bc465,_0x1459d1=_0x4c71['QEejey'][_0x5158b2];return!_0x1459d1?(_0x4c71a6=_0x4c71['MtiFaL'](_0x4c71a6),_0x4c71['QEejey'][_0x5158b2]=_0x4c71a6):_0x4c71a6=_0x1459d1,_0x4c71a6;}class ConnectionSupervisor{constructor(_0xd73afe={}){const _0x1e0d71=_0x237898;this[_0x1e0d71(0x24b)]=fs[_0x1e0d71(0x2d9)](_0xd73afe[_0x1e0d71(0x24b)]),this[_0x1e0d71(0x2eb)]=fs['realpathSync'](_0xd73afe['release']),this[_0x1e0d71(0x215)]=_0xd73afe[_0x1e0d71(0x215)],this[_0x1e0d71(0x31a)]=_0xd73afe[_0x1e0d71(0x31a)]||process[_0x1e0d71(0x31a)],this[_0x1e0d71(0x279)]=_0xd73afe[_0x1e0d71(0x279)]||process['stdout'],this[_0x1e0d71(0x1f1)]=_0xd73afe[_0x1e0d71(0x1f1)]||process[_0x1e0d71(0x1f1)],this[_0x1e0d71(0x324)]=fs[_0x1e0d71(0x2d9)](_0xd73afe[_0x1e0d71(0x324)]||process[_0x1e0d71(0x20c)]()),this['explicitWorkspace']=_0xd73afe['explicitWorkspace']===!![],this[_0x1e0d71(0x272)]=require(_0x1e0d71(0x21f))[_0x1e0d71(0x200)](this),this[_0x1e0d71(0x2bc)]=_0xd73afe[_0x1e0d71(0x2bc)]||null,this[_0x1e0d71(0x320)]=_0xd73afe[_0x1e0d71(0x320)]||{},this[_0x1e0d71(0x23a)]=_0xd73afe[_0x1e0d71(0x23a)]||crypto[_0x1e0d71(0x2d0)](),this['processStartedAt']=new Date(Date['now']()-process[_0x1e0d71(0x1a7)]()*0x3e8)['toISOString']();try{this[_0x1e0d71(0x1c5)]=processIdentity(process[_0x1e0d71(0x2fe)])?.['start']||null;}catch{this['supervisorProcessStart']=null;}this['bootIdentity']=process['platform']===_0x1e0d71(0x244)?fs[_0x1e0d71(0x2c5)](_0x1e0d71(0x223),_0x1e0d71(0x2f7))[_0x1e0d71(0x25d)]():null,this[_0x1e0d71(0x2da)]=crypto[_0x1e0d71(0x28f)](0x20),this[_0x1e0d71(0x1b8)]=new Set(),this['generation']=0x0,this[_0x1e0d71(0x1e5)]=null,this[_0x1e0d71(0x212)]=null,this[_0x1e0d71(0x27f)]=new Map(),this[_0x1e0d71(0x250)]=new Map(),this['inputBuffer']='',this['inputChain']=Promise[_0x1e0d71(0x2a6)](),this[_0x1e0d71(0x1f9)]='',this['outputDecoder']=new StringDecoder('utf8'),this[_0x1e0d71(0x321)]=null,this[_0x1e0d71(0x2bb)]=![],this[_0x1e0d71(0x2bd)]=![],this[_0x1e0d71(0x2fb)]=null,this['admissionClosed']=![];const _0x522074={};_0x522074[_0x1e0d71(0x1e0)]=!![],_0x522074[_0x1e0d71(0x29f)]=!![],_0x522074[_0x1e0d71(0x236)]=_0x1e0d71(0x23b),this[_0x1e0d71(0x275)]=_0x522074,this['transition']=null,this['stopped']=![],this['activation']=_0x1e0d71(0x1ff),this[_0x1e0d71(0x1c9)]=null,this[_0x1e0d71(0x1ee)]=process[_0x1e0d71(0x295)]===_0x1e0d71(0x286)?'\x5c\x5c.\x5cpipe\x5capt-mcp-'+hash(this[_0x1e0d71(0x23a)])[_0x1e0d71(0x1f7)](0x0,0x18):path[_0x1e0d71(0x222)](os[_0x1e0d71(0x24d)](),_0x1e0d71(0x204)+hash(this[_0x1e0d71(0x23a)])[_0x1e0d71(0x1f7)](0x0,0x18)+_0x1e0d71(0x1cf));}get[_0x237898(0x2e8)](){const _0x2a1a7d=_0x237898;return path['join'](this[_0x2a1a7d(0x324)],_0x2a1a7d(0x322),'runtime','connections',this['connectionId']+'.json');}get['secretPath'](){const _0x4ad5f1=_0x237898;return path[_0x4ad5f1(0x222)](this[_0x4ad5f1(0x324)],_0x4ad5f1(0x322),'runtime','connections','.secrets',this[_0x4ad5f1(0x23a)]+_0x4ad5f1(0x2d7));}get[_0x237898(0x32a)](){const _0x101321=_0x237898;return path['join'](this['workspace'],_0x101321(0x28d),this[_0x101321(0x23a)]+_0x101321(0x1a8));}[_0x237898(0x2ff)](){const _0x5b7782=_0x237898;atomic(this['candidatePath'],{'connectionId':this[_0x5b7782(0x23a)],'supervisorPid':process[_0x5b7782(0x2fe)],'workspace':this['workspace'],'runtimeRoot':this[_0x5b7782(0x24b)],'candidate':this[_0x5b7782(0x1c9)]});}[_0x237898(0x1b3)](_0x2e55b9){const _0x69b82f=_0x237898;if(this[_0x69b82f(0x1c9)])return;let _0x688143;try{_0x688143=JSON['parse'](fs[_0x69b82f(0x2c5)](this[_0x69b82f(0x32a)],'utf8'));}catch(_0x1ee6c4){if(_0x1ee6c4['code']==='ENOENT')return;throw _0x1ee6c4;}if(_0x688143['connectionId']!==this[_0x69b82f(0x23a)]||_0x688143[_0x69b82f(0x256)]!==process[_0x69b82f(0x2fe)]||!same(_0x688143[_0x69b82f(0x324)],this['workspace'])||!same(_0x688143[_0x69b82f(0x24b)],this[_0x69b82f(0x24b)])||_0x688143[_0x69b82f(0x1c9)]?.[_0x69b82f(0x27d)]!==_0x2e55b9)return;this['candidate']=_0x688143['candidate'];}['commitGeneration'](){const _0x37224b=_0x237898,_0x3bcb25=joinServingGeneration(this['workspace'],{'connectionId':this[_0x37224b(0x23a)],'supervisorPid':process[_0x37224b(0x2fe)],'childPid':this[_0x37224b(0x1e5)]?.[_0x37224b(0x2fe)],'version':this[_0x37224b(0x212)][_0x37224b(0x207)],'digest':this[_0x37224b(0x212)]['digest'],'resourceDigest':this['resourceDigest']});this[_0x37224b(0x1cc)]=_0x3bcb25['generation'],projectGeneration(this[_0x37224b(0x24b)],this[_0x37224b(0x324)],_0x3bcb25);if(this[_0x37224b(0x1e5)]?.['connected'])this[_0x37224b(0x1e5)]['send']({'type':_0x37224b(0x2af),'generation':this['generation']});this[_0x37224b(0x1f4)]();}[_0x237898(0x1f4)](_0xfe645d={}){const _0x493b4b=_0x237898,_0x1dcbab={'connectionId':this[_0x493b4b(0x23a)],'workspace':this['workspace'],'runtimeRoot':this[_0x493b4b(0x24b)],'endpoint':this[_0x493b4b(0x1ee)],'secretFile':this[_0x493b4b(0x20a)],'supervisorPid':process[_0x493b4b(0x2fe)],'childPid':this['child']?.[_0x493b4b(0x2fe)]||null,'version':this[_0x493b4b(0x212)]?.[_0x493b4b(0x207)]||null,'digest':this[_0x493b4b(0x212)]?.[_0x493b4b(0x245)]||null,'resourceDigest':this['resourceDigest']||null,'generation':this['generation'],'catalogHash':this[_0x493b4b(0x2fb)]||null,'supervisorProtocol':0x2,'processStartedAt':this['processStartedAt'],'supervisorProcessStart':this[_0x493b4b(0x1c5)],'childProcessStart':this[_0x493b4b(0x1e5)]?.['pid']?((()=>{const _0x51d943=_0x493b4b;try{return processIdentity(this['child']['pid'])?.[_0x51d943(0x226)]||null;}catch{return null;}})()):null,'processIdentitySource':'runtime-self-observed','bootIdentity':this[_0x493b4b(0x2d5)],'shutdownEvidence':this[_0x493b4b(0x262)]||null,'startupStatus':this[_0x493b4b(0x275)][_0x493b4b(0x236)],'provisional':!this['handshakeComplete'],'lastSeen':new Date()['toISOString'](),'activation':this['activation'],'serving':this[_0x493b4b(0x1e5)]?.[_0x493b4b(0x23b)]===!![]&&!this[_0x493b4b(0x269)],'closed':this[_0x493b4b(0x269)],'observedAt':new Date()['toISOString'](),..._0xfe645d};if(this[_0x493b4b(0x269)])_0x1dcbab[_0x493b4b(0x1fe)]=crypto[_0x493b4b(0x27a)]('sha256',this[_0x493b4b(0x2da)])[_0x493b4b(0x294)](JSON[_0x493b4b(0x247)](_0x1dcbab))['digest'](_0x493b4b(0x32d));atomic(this[_0x493b4b(0x2e8)],_0x1dcbab);}[_0x237898(0x284)](_0x5c3506){const _0x50a02b=_0x237898,_0x3ff9db=fs['realpathSync'](_0x5c3506);if(same(_0x3ff9db,this[_0x50a02b(0x324)]))return;const _0x57b986={};_0x57b986[_0x50a02b(0x1d6)]=_0x50a02b(0x1bb);if(this[_0x50a02b(0x2b3)]||this[_0x50a02b(0x1e5)])throw Object[_0x50a02b(0x283)](new Error('Connection\x20workspace\x20cannot\x20change\x20after\x20binding'),_0x57b986);const _0x24a7de=this[_0x50a02b(0x2e8)],_0x239cce=this['secretPath'];closeMember(this[_0x50a02b(0x324)],this[_0x50a02b(0x23a)],process[_0x50a02b(0x2fe)],!![]),this[_0x50a02b(0x324)]=_0x3ff9db;const _0x1efc12=registerMember(this[_0x50a02b(0x324)],{'connectionId':this[_0x50a02b(0x23a)],'supervisorPid':process[_0x50a02b(0x2fe)],'runtimeRoot':this[_0x50a02b(0x24b)]});this['admissionClosed']=_0x1efc12[_0x50a02b(0x31b)]===_0x50a02b(0x22f);const _0x4fecf3={};_0x4fecf3['recursive']=!![],fs['mkdirSync'](path[_0x50a02b(0x2f2)](this[_0x50a02b(0x20a)]),_0x4fecf3);const _0x491f73={};_0x491f73[_0x50a02b(0x1f0)]='wx',_0x491f73[_0x50a02b(0x1cb)]=0x180,fs[_0x50a02b(0x213)](this[_0x50a02b(0x20a)],this[_0x50a02b(0x2da)],_0x491f73);const _0x2603cc={};_0x2603cc[_0x50a02b(0x23a)]=this[_0x50a02b(0x23a)],_0x2603cc['serving']=![],_0x2603cc['activation']='workspace-rebound',atomic(_0x24a7de,_0x2603cc);try{fs[_0x50a02b(0x27e)](_0x239cce);}catch{}this[_0x50a02b(0x1f4)]();}async['start'](){const _0xab4ec4=_0x237898;require(_0xab4ec4(0x217))[_0xab4ec4(0x30b)](),verifyRelease(this[_0xab4ec4(0x2eb)],this['publicKey']);const _0x1b2137=registerMember(this['workspace'],{'connectionId':this[_0xab4ec4(0x23a)],'supervisorPid':process['pid'],'runtimeRoot':this['runtimeRoot']});this[_0xab4ec4(0x2d6)]=_0x1b2137[_0xab4ec4(0x31b)]===_0xab4ec4(0x22f);const _0x10926e={};_0x10926e[_0xab4ec4(0x261)]=!![],fs[_0xab4ec4(0x290)](path[_0xab4ec4(0x2f2)](this['secretPath']),_0x10926e);const _0x4db700={};return _0x4db700['flag']='wx',_0x4db700[_0xab4ec4(0x1cb)]=0x180,fs['writeFileSync'](this['secretPath'],this[_0xab4ec4(0x2da)],_0x4db700),this[_0xab4ec4(0x2fa)]=net[_0xab4ec4(0x211)](_0x5ac76e=>{const _0x16339d=_0xab4ec4;let _0x40c389='',_0x147428=![];_0x5ac76e[_0x16339d(0x311)](0x1fbd0,()=>_0x5ac76e['destroy']()),_0x5ac76e['on'](_0x16339d(0x21a),_0x4aec55=>{const _0x5c8745=_0x16339d;_0x40c389+=_0x4aec55;if(Buffer[_0x5c8745(0x28e)](_0x40c389)>0x2*0x400*0x400)return _0x5ac76e[_0x5c8745(0x265)]();const _0x17d365=_0x40c389[_0x5c8745(0x1f8)]('\x0a');if(_0x17d365<0x0)return;if(_0x147428)return _0x5ac76e[_0x5c8745(0x265)]();_0x147428=!![];let _0x294079;try{_0x294079=JSON[_0x5c8745(0x274)](_0x40c389[_0x5c8745(0x1f7)](0x0,_0x17d365));}catch{return _0x5ac76e['destroy']();}if(!['challenge','prepare',_0x5c8745(0x25a),'activate',_0x5c8745(0x1ad),_0x5c8745(0x2d3),'prepare-candidate',_0x5c8745(0x2f4),_0x5c8745(0x2f8),_0x5c8745(0x227),'gateway-binding'][_0x5c8745(0x2f0)](_0x294079['type'])||!verifyEnvelope(this[_0x5c8745(0x2da)],_0x294079,this['usedNonces'],this['connectionId']))return _0x5ac76e[_0x5c8745(0x265)]();const _0x49aec1=_0x2da851=>{const _0x91d8f7=_0x5c8745,_0x429907={'nonce':_0x294079[_0x91d8f7(0x2df)],'connectionId':this[_0x91d8f7(0x23a)],'workspace':this['workspace'],'supervisorPid':process[_0x91d8f7(0x2fe)],'childPid':this[_0x91d8f7(0x1e5)]?.[_0x91d8f7(0x2fe)]||null,'generation':this['generation'],'version':this[_0x91d8f7(0x212)]?.[_0x91d8f7(0x207)]||null,'digest':this[_0x91d8f7(0x212)]?.['digest']||null,'resourceDigest':this[_0x91d8f7(0x26b)]||null,'catalogHash':this['toolCatalogHash']||null,'shutdownEvidence':this['shutdownEvidence']||null,'controlCapabilities':this[_0x91d8f7(0x2b7)]||[],'activation':this[_0x91d8f7(0x259)],'serving':this['child']?.[_0x91d8f7(0x23b)]===!![]&&!this[_0x91d8f7(0x269)],..._0x2da851},_0x3f29fa=_0x429907;_0x3f29fa[_0x91d8f7(0x2dd)]=crypto[_0x91d8f7(0x27a)]('sha256',this[_0x91d8f7(0x2da)])[_0x91d8f7(0x294)](JSON['stringify'](_0x3f29fa))[_0x91d8f7(0x245)]('hex'),_0x5ac76e['end'](JSON[_0x91d8f7(0x247)](_0x3f29fa)+'\x0a');};if(_0x294079['type']===_0x5c8745(0x1fc))return _0x49aec1({});const _0xbc4c84={};_0xbc4c84[_0x5c8745(0x236)]=_0x5c8745(0x327),_0xbc4c84[_0x5c8745(0x1d6)]=_0x5c8745(0x1c6);if(_0x294079[_0x5c8745(0x214)]===_0x5c8745(0x27b))return _0x49aec1(this[_0x5c8745(0x2bc)]&&this['child']?.[_0x5c8745(0x23b)]&&!this['stopped']?{'status':_0x5c8745(0x31f),'binding':this['gatewayBinding']}:_0xbc4c84);if(_0x294079[_0x5c8745(0x214)]===_0x5c8745(0x227)){const _0x4e1d59={};_0x4e1d59[_0x5c8745(0x236)]=_0x5c8745(0x1e4),_0x4e1d59[_0x5c8745(0x1d6)]=_0x5c8745(0x235);if(readFence(this[_0x5c8745(0x324)])[_0x5c8745(0x31b)]===_0x5c8745(0x2e3)||!this[_0x5c8745(0x1e5)]?.['ready'])return _0x49aec1(_0x4e1d59);const _0x4cdd3e={};_0x4cdd3e[_0x5c8745(0x230)]=_0x294079[_0x5c8745(0x251)],void this[_0x5c8745(0x273)](_0x5c8745(0x26e),_0x4cdd3e)[_0x5c8745(0x1bd)](_0x3786e4=>_0x49aec1(_0x3786e4))['catch'](_0x39b62e=>_0x49aec1({'status':_0x5c8745(0x1e4),'code':_0x39b62e[_0x5c8745(0x1d6)]||_0x5c8745(0x235)}));return;}if([_0x5c8745(0x2d3),'prepare-candidate',_0x5c8745(0x2f4),'restore-previous'][_0x5c8745(0x2f0)](_0x294079[_0x5c8745(0x214)])){void this['controlCandidate'](_0x294079)[_0x5c8745(0x1bd)](_0x49aec1)[_0x5c8745(0x237)](_0x413861=>_0x49aec1({'status':_0x5c8745(0x1e4),'code':_0x413861[_0x5c8745(0x1d6)]||_0x5c8745(0x1de)}));return;}if(_0x294079[_0x5c8745(0x214)]===_0x5c8745(0x1ad)){const _0xe45bf9={};_0xe45bf9[_0x5c8745(0x236)]=_0x5c8745(0x1e4),_0xe45bf9[_0x5c8745(0x1d6)]=_0x5c8745(0x218);if(this['candidate']&&!this['candidate'][_0x5c8745(0x30e)]||readFence(this[_0x5c8745(0x324)])['state']===_0x5c8745(0x2e3))return _0x49aec1(_0xe45bf9);const _0x42df59={};_0x42df59[_0x5c8745(0x236)]=_0x5c8745(0x308),_0x42df59[_0x5c8745(0x1d6)]=_0x5c8745(0x257);if(this[_0x5c8745(0x2c8)])return _0x49aec1(_0x42df59);this[_0x5c8745(0x2d6)]=![];this[_0x5c8745(0x1c9)]?.['restored']&&(this[_0x5c8745(0x1c9)]=null,this[_0x5c8745(0x2ff)]());this[_0x5c8745(0x259)]=this['child']?.[_0x5c8745(0x23b)]?_0x5c8745(0x2ef):'ready-next-connection',this[_0x5c8745(0x1f4)]();const _0x196e5a={};return _0x196e5a[_0x5c8745(0x236)]=this[_0x5c8745(0x259)],_0x49aec1(_0x196e5a);}if(_0x294079[_0x5c8745(0x214)]===_0x5c8745(0x278)){this[_0x5c8745(0x2d6)]=!![],this[_0x5c8745(0x259)]='pending-safe-boundary',this[_0x5c8745(0x1f4)](),void this[_0x5c8745(0x309)]()['then'](_0x8a6390=>_0x49aec1({'status':_0x8a6390[_0x5c8745(0x307)]?'pending-safe-boundary':'safe-boundary','blockers':_0x8a6390}))['catch'](_0xa7a68d=>_0x49aec1({'status':_0x5c8745(0x1e4),'code':_0xa7a68d[_0x5c8745(0x1d6)]||_0x5c8745(0x305)}));return;}if(_0x294079[_0x5c8745(0x214)]===_0x5c8745(0x25a)){const _0x4f471b=readFence(this[_0x5c8745(0x324)]),_0x478ffd={};_0x478ffd['status']=_0x5c8745(0x1e4),_0x478ffd['code']='ADMISSION_CONFLICT';if(_0x4f471b[_0x5c8745(0x31b)]!=='draining'||!_0x4f471b[_0x5c8745(0x2a1)]||_0x4f471b['transactionId']!==_0x294079['transactionId']||_0x4f471b[_0x5c8745(0x2ae)]!==_0x294079[_0x5c8745(0x2ae)]||_0x4f471b[_0x5c8745(0x2b9)]!==_0x294079[_0x5c8745(0x207)]||_0x4f471b[_0x5c8745(0x2e6)]!==_0x294079['digest'])return _0x49aec1(_0x478ffd);this[_0x5c8745(0x2d6)]=!![],this[_0x5c8745(0x259)]=_0x5c8745(0x308),this['record'](),void this['requestChild'](_0x5c8745(0x25a),{..._0x294079[_0x5c8745(0x297)],'transactionId':_0x294079[_0x5c8745(0x27d)],'epoch':_0x294079['epoch'],'version':_0x294079[_0x5c8745(0x207)],'digest':_0x294079[_0x5c8745(0x245)],'requestsPending':this[_0x5c8745(0x27f)][_0x5c8745(0x2ad)]},0x3a98)[_0x5c8745(0x1bd)](_0x49aec1)['catch'](_0x2852ea=>_0x49aec1({'status':_0x5c8745(0x1e4),'code':_0x2852ea[_0x5c8745(0x1d6)]||'WORKER_STOP_UNCONFIRMED'}));return;}const _0xcc9bbb={};_0xcc9bbb[_0x5c8745(0x236)]='failed',_0xcc9bbb[_0x5c8745(0x1d6)]=_0x5c8745(0x271);if(!/^[0-9]+\.[0-9]+\.[0-9]+$/[_0x5c8745(0x205)](_0x294079['version']||'')||!/^[a-f0-9]{64}$/[_0x5c8745(0x205)](_0x294079['digest']||'')||!this[_0x5c8745(0x2d6)])return _0x49aec1(_0xcc9bbb);const _0x434606=path[_0x5c8745(0x222)](this['runtimeRoot'],_0x5c8745(0x266),_0x294079[_0x5c8745(0x207)]+'-'+_0x294079['digest']);void this[_0x5c8745(0x253)](_0x434606,Math['max'](0x0,Math['min'](0x78,Number(_0x294079['waitSeconds'])||0x0)))['then'](_0x44c476=>_0x49aec1(_0x44c476))[_0x5c8745(0x237)](_0x400f74=>_0x49aec1({'status':_0x5c8745(0x1e4),'code':_0x400f74[_0x5c8745(0x1d6)]||_0x5c8745(0x1d0)}));});}),await new Promise((_0x34be9d,_0x592e69)=>this[_0xab4ec4(0x2fa)][_0xab4ec4(0x2dc)](_0xab4ec4(0x2c6),_0x592e69)[_0xab4ec4(0x2aa)](this['endpoint'],_0x34be9d)),this[_0xab4ec4(0x1f4)](),this[_0xab4ec4(0x31a)]['on'](_0xab4ec4(0x21a),_0x1f7c52=>this[_0xab4ec4(0x315)](_0x1f7c52)),this[_0xab4ec4(0x31a)]['on'](_0xab4ec4(0x2e1),()=>void this['close'](_0xab4ec4(0x268))),this[_0xab4ec4(0x31a)]['on'](_0xab4ec4(0x2c6),()=>void this[_0xab4ec4(0x25c)](_0xab4ec4(0x233))),this[_0xab4ec4(0x1df)](),this;}[_0x237898(0x1df)](_0x5722d4=0x1388){const _0x2e25d3=_0x237898;clearTimeout(this[_0x2e25d3(0x2c4)]);const _0x2933f8=async()=>{const _0x371623=_0x2e25d3;if(this['stopped']||this[_0x371623(0x1f5)])return;const _0x1e6d0f=this[_0x371623(0x324)];try{await require(_0x371623(0x1ac))[_0x371623(0x1f6)](_0x1e6d0f,this[_0x371623(0x215)]);}catch(_0x21419f){const _0x417ac3={};_0x417ac3['updateBlocker']=_0x21419f[_0x371623(0x1d6)]||_0x371623(0x224);if(this[_0x371623(0x324)]===_0x1e6d0f&&!this[_0x371623(0x269)]&&!this[_0x371623(0x1f5)])this[_0x371623(0x1f4)](_0x417ac3);}!this[_0x371623(0x269)]&&!this[_0x371623(0x1f5)]&&(this[_0x371623(0x2c4)]=setTimeout(_0x2933f8,_0x5722d4),this[_0x371623(0x2c4)][_0x371623(0x1bc)]());};void _0x2933f8();}[_0x237898(0x1ef)](_0x4366e1){const _0xda29b9=_0x237898,_0x3fedbb=_0x4366e1[_0xda29b9(0x25f)]||{},_0x1e14f8=_0x3fedbb[_0xda29b9(0x1ed)]?.[0x0],_0x4d9a99=_0x1e14f8?.[_0xda29b9(0x1d3)]||_0x1e14f8?.['uri']||_0x3fedbb[_0xda29b9(0x270)]||_0x3fedbb[_0xda29b9(0x21e)];if(!_0x4d9a99)return this['workspace'];try{const _0x58a6e1=_0x4d9a99[_0xda29b9(0x27c)](_0xda29b9(0x31d))?require(_0xda29b9(0x243))['fileURLToPath'](_0x4d9a99):_0x4d9a99;return fs[_0xda29b9(0x2d9)](_0x58a6e1);}catch{return this[_0xda29b9(0x324)];}}[_0x237898(0x315)](_0x57d370){const _0x31b1b5=_0x237898;this[_0x31b1b5(0x1a6)]+=_0x57d370[_0x31b1b5(0x2de)](_0x31b1b5(0x2f7));if(this['inputBuffer'][_0x31b1b5(0x307)]>0x8*0x400*0x400)return void this[_0x31b1b5(0x25c)](_0x31b1b5(0x22c));let _0x25e31e;while((_0x25e31e=this[_0x31b1b5(0x1a6)][_0x31b1b5(0x1f8)]('\x0a'))>=0x0){const _0x12e8a2=this['inputBuffer'][_0x31b1b5(0x1f7)](0x0,_0x25e31e);this['inputBuffer']=this[_0x31b1b5(0x1a6)][_0x31b1b5(0x1f7)](_0x25e31e+0x1);if(!_0x12e8a2[_0x31b1b5(0x25d)]())continue;let _0x2d74f7;try{_0x2d74f7=JSON[_0x31b1b5(0x274)](_0x12e8a2);}catch{const _0xaf5666={};_0xaf5666[_0x31b1b5(0x1d6)]=-0x7fbc,_0xaf5666[_0x31b1b5(0x1c2)]=_0x31b1b5(0x26c);const _0x5da399={};_0x5da399[_0x31b1b5(0x2bf)]='2.0',_0x5da399['id']=null,_0x5da399[_0x31b1b5(0x2c6)]=_0xaf5666,this[_0x31b1b5(0x1ec)](_0x5da399);continue;}this[_0x31b1b5(0x242)]=this[_0x31b1b5(0x242)][_0x31b1b5(0x1bd)](()=>this[_0x31b1b5(0x225)](_0x2d74f7,_0x12e8a2))[_0x31b1b5(0x237)](_0x4b68e7=>{const _0x6ff371=_0x31b1b5,_0x1fb309={};_0x1fb309[_0x6ff371(0x1d6)]=-0x7f5b,_0x1fb309[_0x6ff371(0x1c2)]=_0x4b68e7[_0x6ff371(0x1d6)]||_0x6ff371(0x228);if(_0x2d74f7['id']!==undefined)this[_0x6ff371(0x1ec)]({'jsonrpc':_0x6ff371(0x2b8),'id':_0x2d74f7['id'],'error':_0x1fb309});});}}async[_0x237898(0x225)](_0x56fbad,_0x4123fe){const _0x316310=_0x237898;if(this[_0x316310(0x269)])return;if(!_0x56fbad[_0x316310(0x239)])return;if(this[_0x316310(0x1e5)]?.[_0x316310(0x2cf)]&&this[_0x316310(0x259)]==='legacy-ownership-unverified'){const _0x2629d3={};_0x2629d3['code']=-0x7d02,_0x2629d3[_0x316310(0x1c2)]=_0x316310(0x1eb);if(_0x56fbad['id']!==undefined)this[_0x316310(0x1ec)]({'jsonrpc':_0x316310(0x2b8),'id':_0x56fbad['id'],'error':_0x2629d3});return;}if(!this[_0x316310(0x1e5)]&&_0x56fbad['method']==='initialize')this['rebindWorkspace'](this[_0x316310(0x1ef)](_0x56fbad));const _0x4f89a0=readFence(this[_0x316310(0x324)]),_0x3d468f=require(_0x316310(0x2b4))[_0x316310(0x2f3)](this[_0x316310(0x324)]);this[_0x316310(0x275)]=_0x3d468f;if(_0x4f89a0['state']==='frozen'&&_0x3d468f['mutationAllowed']){const _0x4bf298={};_0x4bf298[_0x316310(0x1d6)]=-0x7d01,_0x4bf298[_0x316310(0x1c2)]=_0x316310(0x313);if(_0x56fbad['id']!==undefined)this[_0x316310(0x1ec)]({'jsonrpc':_0x316310(0x2b8),'id':_0x56fbad['id'],'error':_0x4bf298});return;}if(!this['child']&&_0x4f89a0[_0x316310(0x31b)]!=='open'&&_0x3d468f['mutationAllowed']){const _0x4d51d5={};_0x4d51d5[_0x316310(0x1d6)]=-0x7d01,_0x4d51d5['message']=_0x316310(0x1af);if(_0x56fbad['id']!==undefined)this[_0x316310(0x1ec)]({'jsonrpc':_0x316310(0x2b8),'id':_0x56fbad['id'],'error':_0x4d51d5});return;}if(!this[_0x316310(0x1e5)]){if(_0x56fbad['method']!==_0x316310(0x321)){const _0x232b07={};_0x232b07['code']=-0x7d02,_0x232b07[_0x316310(0x1c2)]='APT_RECONNECT_REQUIRED:\x20runtime\x20child\x20stopped;\x20initialize\x20a\x20new\x20MCP\x20session';if(_0x56fbad['id']!==undefined)this['writeHost']({'jsonrpc':_0x316310(0x2b8),'id':_0x56fbad['id'],'error':_0x232b07});return;}const _0x2e0462=readGeneration(this[_0x316310(0x324)]);if(_0x2e0462){const _0x446c54=path['join'](this[_0x316310(0x24b)],'releases',_0x2e0462[_0x316310(0x207)]+'-'+_0x2e0462[_0x316310(0x245)]),_0x44bdd9=verifyRelease(_0x446c54,this[_0x316310(0x215)]),_0x5e71aa={};_0x5e71aa[_0x316310(0x1d6)]=_0x316310(0x219);if(_0x44bdd9['version']!==_0x2e0462[_0x316310(0x207)]||_0x44bdd9[_0x316310(0x245)]!==_0x2e0462['digest'])throw Object[_0x316310(0x283)](new Error('Committed\x20runtime\x20identity\x20differs'),_0x5e71aa);this['release']=_0x446c54,this[_0x316310(0x1cc)]=_0x2e0462['generation'];}await this[_0x316310(0x1fd)](this[_0x316310(0x2eb)],this['generation']||0x1),this['admissionClosed']=!_0x3d468f['mutationAllowed']||readFence(this['workspace'])[_0x316310(0x31b)]!==_0x316310(0x264);}let _0x350d92;if(_0x3d468f[_0x316310(0x29f)]&&readFence(this['workspace'])[_0x316310(0x31b)]===_0x316310(0x2ec)&&this[_0x316310(0x2d1)](_0x56fbad)){const _0x5af225={};_0x5af225['tool']=_0x56fbad[_0x316310(0x25f)][_0x316310(0x21b)],_0x5af225[_0x316310(0x291)]=_0x56fbad[_0x316310(0x25f)][_0x316310(0x291)],_0x350d92=await this['requestChild'](_0x316310(0x2ed),_0x5af225);}const _0x4674e5=withAdmissionLock(this[_0x316310(0x324)],_0x1cb00e=>{const _0x98315d=_0x316310,_0x501e94=_0x1cb00e[_0x98315d(0x31b)]===_0x98315d(0x2ec)&&_0x350d92?.[_0x98315d(0x325)]===!![]&&_0x350d92[_0x98315d(0x2ae)]===_0x1cb00e['epoch'];if(!_0x3d468f[_0x98315d(0x29f)]){if(_0x56fbad[_0x98315d(0x239)]==='tools/call'&&!this[_0x98315d(0x31e)](_0x56fbad))return![];if(_0x56fbad['id']===undefined)return!![];const _0x3c67f5={};_0x3c67f5[_0x98315d(0x1d6)]=_0x98315d(0x292);if(this[_0x98315d(0x27f)]['has'](messageId(_0x56fbad['id'])))throw Object[_0x98315d(0x283)](new Error(_0x98315d(0x2fd)),_0x3c67f5);const _0x57ba10=this['connectionId']+':'+crypto[_0x98315d(0x2d0)](),_0x48d75c={'invocationId':_0x57ba10,'actorId':_0x98315d(0x326),'attemptId':null,'inputHash':hash(_0x4123fe),'epoch':_0x1cb00e['epoch'],'status':'active','connectionId':this['connectionId'],'createdAt':new Date()[_0x98315d(0x2c1)]()};return _0x1cb00e['tickets']||={},_0x1cb00e[_0x98315d(0x21c)][hash(_0x57ba10)]=_0x48d75c,saveLocked(this['workspace'],_0x1cb00e),this[_0x98315d(0x27f)][_0x98315d(0x285)](messageId(_0x56fbad['id']),{'method':_0x56fbad['method'],'tool':_0x56fbad[_0x98315d(0x25f)]?.[_0x98315d(0x21b)]||null,'ticket':_0x48d75c}),!![];}if(_0x1cb00e[_0x98315d(0x31b)]===_0x98315d(0x2e3)||(this['admissionClosed']||['closed',_0x98315d(0x2ec)]['includes'](_0x1cb00e[_0x98315d(0x31b)]))&&this[_0x98315d(0x2d1)](_0x56fbad)&&!_0x501e94)return![];if(_0x56fbad['id']===undefined)return!![];const _0x5d4548={};_0x5d4548['code']=_0x98315d(0x292);if(this[_0x98315d(0x27f)]['has'](messageId(_0x56fbad['id'])))throw Object[_0x98315d(0x283)](new Error('Request\x20ID\x20is\x20still\x20in\x20flight'),_0x5d4548);const _0x36fef6=this[_0x98315d(0x23a)]+':'+crypto[_0x98315d(0x2d0)](),_0x4fa52d={'invocationId':_0x36fef6,'actorId':_0x98315d(0x326),'attemptId':null,'inputHash':hash(_0x4123fe),'epoch':_0x1cb00e[_0x98315d(0x2ae)],'status':'active','connectionId':this[_0x98315d(0x23a)],'createdAt':new Date()[_0x98315d(0x2c1)]()};return _0x1cb00e[_0x98315d(0x21c)]||={},_0x1cb00e['tickets'][hash(_0x36fef6)]=_0x4fa52d,saveLocked(this['workspace'],_0x1cb00e),this[_0x98315d(0x27f)]['set'](messageId(_0x56fbad['id']),{'method':_0x56fbad['method'],'tool':_0x56fbad[_0x98315d(0x25f)]?.[_0x98315d(0x21b)]||null,'ticket':_0x4fa52d}),!![];});if(!_0x4674e5){const _0x16c6a8={};_0x16c6a8[_0x316310(0x1d6)]=-0x7d01,_0x16c6a8[_0x316310(0x1c2)]=_0x316310(0x258);if(_0x56fbad['id']!==undefined)this['writeHost']({'jsonrpc':_0x316310(0x2b8),'id':_0x56fbad['id'],'error':_0x16c6a8});return;}if(_0x56fbad[_0x316310(0x239)]===_0x316310(0x321))this[_0x316310(0x321)]=_0x56fbad[_0x316310(0x25f)]||{};if(_0x56fbad[_0x316310(0x239)]==='notifications/initialized')this[_0x316310(0x2bd)]=!![];try{if(this['requiresProcessDispatch'](_0x56fbad))await this[_0x316310(0x1cd)]();!this[_0x316310(0x1e5)][_0x316310(0x31a)][_0x316310(0x2fc)](_0x4123fe+'\x0a')&&(this['stdin'][_0x316310(0x316)](),this['child'][_0x316310(0x31a)][_0x316310(0x2dc)](_0x316310(0x1c4),()=>this['stdin']['resume']()));}catch(_0x4e9687){if(_0x56fbad['id']!==undefined){const _0x1bd089=this[_0x316310(0x27f)][_0x316310(0x1be)](messageId(_0x56fbad['id']));if(_0x1bd089?.[_0x316310(0x2e7)])finishOperation(this[_0x316310(0x324)],_0x1bd089[_0x316310(0x2e7)][_0x316310(0x32c)],_0x1bd089['ticket']['epoch']);this[_0x316310(0x27f)][_0x316310(0x1d1)](messageId(_0x56fbad['id']));}throw _0x4e9687;}}[_0x237898(0x2d1)](_0x5b0bb2){const _0x587c5=_0x237898;if(_0x5b0bb2[_0x587c5(0x239)]!=='tools/call')return![];const _0x3087f2=_0x5b0bb2[_0x587c5(0x25f)]?.[_0x587c5(0x21b)]||'',_0x3fe350=_0x5b0bb2[_0x587c5(0x25f)]?.['arguments']?.[_0x587c5(0x23e)];if(_0x3087f2==='pipeline_checkpoint')return!(_0x5b0bb2[_0x587c5(0x25f)]?.[_0x587c5(0x291)]?.[_0x587c5(0x1dc)]&&['report',_0x587c5(0x24f),_0x587c5(0x2eb),_0x587c5(0x2cb),_0x587c5(0x1d4),'review',_0x587c5(0x304)][_0x587c5(0x2f0)](_0x3fe350));return!this[_0x587c5(0x31e)](_0x5b0bb2);}[_0x237898(0x31e)](_0x366d90){const _0x4f5efc=_0x237898,_0x5d4f8a=_0x366d90['params']?.['name']||'';if([_0x4f5efc(0x2ee),_0x4f5efc(0x1a9),_0x4f5efc(0x254),'session_bootstrap',_0x4f5efc(0x26a),_0x4f5efc(0x238),_0x4f5efc(0x319),'workspace_list',_0x4f5efc(0x1b6),_0x4f5efc(0x2a2),_0x4f5efc(0x1e9),_0x4f5efc(0x328),_0x4f5efc(0x2a0),_0x4f5efc(0x29d),_0x4f5efc(0x317),_0x4f5efc(0x1c8)][_0x4f5efc(0x2f0)](_0x5d4f8a))return!![];return![];}['requiresProcessDispatch'](_0x5c6182){const _0x3117c7=_0x237898;if(_0x5c6182[_0x3117c7(0x239)]==='tools/list')return(this[_0x3117c7(0x320)][_0x3117c7(0x281)]||process.env.MCP_DISCOVER_BACKENDS)==='1';if([_0x3117c7(0x321),'ping'][_0x3117c7(0x2f0)](_0x5c6182[_0x3117c7(0x239)])||_0x5c6182[_0x3117c7(0x239)]?.[_0x3117c7(0x27c)](_0x3117c7(0x1fa)))return![];if(_0x5c6182['method']!==_0x3117c7(0x263))return!![];const {name:_0x3a3a92,arguments:_0x1f85c7={}}=_0x5c6182[_0x3117c7(0x25f)]||{};if(_0x3a3a92===_0x3117c7(0x248))return _0x1f85c7[_0x3117c7(0x1c0)]===!![];if(_0x3a3a92===_0x3117c7(0x1a9))return _0x1f85c7[_0x3117c7(0x302)]===!![];if(_0x3a3a92===_0x3117c7(0x254))return Boolean(_0x1f85c7[_0x3117c7(0x26f)]||_0x1f85c7['service']);if(_0x3a3a92===_0x3117c7(0x2ee))return _0x1f85c7['refresh']===!![];return!['skill_load',_0x3117c7(0x238)]['includes'](_0x3a3a92);}async['enableOwnedOperations'](){const _0x2fc9b7=_0x237898,_0x1538ea=this['child'],_0x59efd0={};_0x59efd0[_0x2fc9b7(0x1d6)]=_0x2fc9b7(0x1db);if(!_0x1538ea)throw Object[_0x2fc9b7(0x283)](new Error(_0x2fc9b7(0x1d7)),_0x59efd0);if(_0x1538ea[_0x2fc9b7(0x1b9)])return;_0x1538ea[_0x2fc9b7(0x2a8)]||=((async()=>{const _0x14348c=_0x2fc9b7;await attachOwnedJob(_0x1538ea);const _0x2a96d8=await this['requestChild']('enable-owned-operations'),_0x153118={};_0x153118[_0x14348c(0x1d6)]=_0x14348c(0x29b);if(this['child']!==_0x1538ea||_0x2a96d8['type']!==_0x14348c(0x202)||_0x2a96d8[_0x14348c(0x2fe)]!==_0x1538ea[_0x14348c(0x2fe)]||_0x2a96d8[_0x14348c(0x23a)]!==this[_0x14348c(0x23a)]||_0x2a96d8[_0x14348c(0x1cc)]!==this[_0x14348c(0x1cc)])throw Object[_0x14348c(0x283)](new Error('Process\x20dispatch\x20activation\x20was\x20not\x20confirmed'),_0x153118);_0x1538ea[_0x14348c(0x1b9)]=!![];})());try{await _0x1538ea[_0x2fc9b7(0x2a8)];}catch(_0x5b38b3){_0x1538ea[_0x2fc9b7(0x2a8)]=null;throw _0x5b38b3;}}async['boot'](_0x1ce4a3,_0x5ba0e3){const _0x3a5cfe=_0x237898;if(this[_0x3a5cfe(0x2c0)])return this[_0x3a5cfe(0x2c0)];this[_0x3a5cfe(0x2c0)]=((async()=>{const _0x2b025c=_0x3a5cfe,_0x567502=verifyRelease(_0x1ce4a3,this[_0x2b025c(0x215)]),_0x534110={...process.env,...this['childEnvironment']};_0x534110['APT_SUPERVISOR_CHILD']='1',_0x534110[_0x2b025c(0x209)]=this[_0x2b025c(0x23a)];const _0x4e5e37=_0x534110;delete _0x4e5e37[_0x2b025c(0x30a)];const _0x15abb4=spawn(process['execPath'],[path[_0x2b025c(0x222)](_0x1ce4a3,_0x2b025c(0x2a9))],{'cwd':this[_0x2b025c(0x324)],'stdio':[_0x2b025c(0x229),'pipe',_0x2b025c(0x229),_0x2b025c(0x231)],'detached':process[_0x2b025c(0x295)]!==_0x2b025c(0x286),'windowsHide':!![],'env':_0x4e5e37});this[_0x2b025c(0x1e5)]=_0x15abb4;const _0x24f0ce={};_0x24f0ce[_0x2b025c(0x324)]=this[_0x2b025c(0x324)],_0x24f0ce[_0x2b025c(0x23a)]=this['connectionId'],_0x24f0ce[_0x2b025c(0x24b)]=this[_0x2b025c(0x24b)],_0x24f0ce[_0x2b025c(0x1cc)]=_0x5ba0e3;const _0x1ca6b8={};_0x1ca6b8[_0x2b025c(0x2c3)]=!![],_0x15abb4[_0x2b025c(0x2e2)]=captureOwnedChild(_0x15abb4,_0x24f0ce,_0x1ca6b8);const _0x242306={};_0x242306[_0x2b025c(0x207)]=_0x567502[_0x2b025c(0x207)],_0x242306[_0x2b025c(0x245)]=_0x567502[_0x2b025c(0x245)],_0x242306['generation']=_0x5ba0e3,_0x15abb4[_0x2b025c(0x287)]=_0x242306,_0x15abb4['ready']=![],_0x15abb4['stdout']['on']('data',_0x272dc1=>this['receiveChild'](_0x272dc1,_0x15abb4)),_0x15abb4[_0x2b025c(0x1f1)]['on']('data',_0x23848c=>this[_0x2b025c(0x1f1)][_0x2b025c(0x2fc)](_0x23848c)),_0x15abb4['on'](_0x2b025c(0x1c2),_0x34a8f4=>this[_0x2b025c(0x29c)](_0x34a8f4,_0x15abb4)),_0x15abb4['on'](_0x2b025c(0x25c),(_0x486760,_0x3dc182)=>this[_0x2b025c(0x2db)](_0x15abb4,_0x486760,_0x3dc182)),_0x15abb4['on'](_0x2b025c(0x2c6),_0x2ad206=>_0x15abb4[_0x2b025c(0x31c)]?.(_0x2ad206));const _0x58ac90=new Promise((_0x156d1a,_0x117b86)=>{const _0x451035=_0x2b025c,_0x2e9913={};_0x2e9913[_0x451035(0x1d6)]=_0x451035(0x1b5);const _0x7e7d89=setTimeout(()=>_0x117b86(Object[_0x451035(0x283)](new Error(_0x451035(0x252)),_0x2e9913)),0x3a98);_0x15abb4[_0x451035(0x2ce)]=_0x2433f6=>{clearTimeout(_0x7e7d89),_0x156d1a(_0x2433f6);},_0x15abb4['bootReject']=_0x1b7727=>{clearTimeout(_0x7e7d89),_0x117b86(_0x1b7727);};});_0x58ac90['catch'](()=>{});try{_0x15abb4[_0x2b025c(0x1fb)]({'type':'boot','runtimeRoot':this['runtimeRoot'],'release':_0x1ce4a3,'publicKey':this['publicKey']?.[_0x2b025c(0x2de)](),'connectionId':this['connectionId'],'generation':_0x5ba0e3,'workspace':this[_0x2b025c(0x324)],'explicitWorkspace':this[_0x2b025c(0x2b3)],'gatewayBinding':this[_0x2b025c(0x2bc)]});const _0x2162ea=await _0x58ac90;_0x15abb4['ready']=!![],this[_0x2b025c(0x2b7)]=Array[_0x2b025c(0x24e)](_0x2162ea[_0x2b025c(0x20e)])?_0x2162ea[_0x2b025c(0x20e)]:[],this[_0x2b025c(0x212)]=_0x567502,this[_0x2b025c(0x26b)]=_0x2162ea[_0x2b025c(0x26b)],this[_0x2b025c(0x1cc)]=_0x5ba0e3,this[_0x2b025c(0x259)]=_0x2b025c(0x2b5),this['record']();}catch(_0x23349e){_0x15abb4[_0x2b025c(0x31c)]?.(_0x23349e);try{await attachOwnedJob(_0x15abb4),await stopOwnedChild(_0x15abb4,{'graceMs':0x64,'reason':_0x2b025c(0x206),'graceful':()=>{const _0x445a56=_0x2b025c;if(_0x15abb4[_0x445a56(0x26d)])_0x15abb4[_0x445a56(0x246)]();}});}catch(_0x54faf1){const _0x23a4f5={};_0x23a4f5[_0x2b025c(0x1ab)]=_0x54faf1[_0x2b025c(0x1d6)];throw Object[_0x2b025c(0x283)](_0x23349e,_0x23a4f5);}if(this[_0x2b025c(0x1e5)]===_0x15abb4)this[_0x2b025c(0x1e5)]=null;throw _0x23349e;}})());try{return await this[_0x3a5cfe(0x2c0)];}finally{this[_0x3a5cfe(0x2c0)]=null;}}[_0x237898(0x329)](_0x326b71,_0x5f349b){const _0x4fed30=_0x237898;if(this[_0x4fed30(0x1e5)]!==_0x5f349b)return;const _0xb4b8ad=this[_0x4fed30(0x2b2)][_0x4fed30(0x2fc)](_0x326b71);this['outputBuffer']+=_0xb4b8ad;let _0x432756;while((_0x432756=this[_0x4fed30(0x1f9)][_0x4fed30(0x1f8)]('\x0a'))>=0x0){const _0x1abf72=this[_0x4fed30(0x1f9)][_0x4fed30(0x1f7)](0x0,_0x432756);this[_0x4fed30(0x1f9)]=this[_0x4fed30(0x1f9)]['slice'](_0x432756+0x1);if(!_0x1abf72)continue;let _0x52186b;try{_0x52186b=JSON[_0x4fed30(0x274)](_0x1abf72);}catch{continue;}const _0x51a30c=_0x52186b['id']!==undefined&&this[_0x4fed30(0x250)][_0x4fed30(0x1be)](messageId(_0x52186b['id']));if(_0x51a30c){this[_0x4fed30(0x250)][_0x4fed30(0x1d1)](messageId(_0x52186b['id'])),_0x51a30c[_0x4fed30(0x2a6)](_0x52186b);continue;}const _0x13458c=_0x52186b['id']!==undefined?this[_0x4fed30(0x27f)][_0x4fed30(0x1be)](messageId(_0x52186b['id'])):null;if(_0x13458c){if(_0x13458c[_0x4fed30(0x2e7)])finishOperation(this[_0x4fed30(0x324)],_0x13458c[_0x4fed30(0x2e7)][_0x4fed30(0x32c)],_0x13458c[_0x4fed30(0x2e7)]['epoch']);this[_0x4fed30(0x27f)]['delete'](messageId(_0x52186b['id']));if(_0x13458c['method']===_0x4fed30(0x321)&&!_0x52186b[_0x4fed30(0x2c6)]){try{this[_0x4fed30(0x2bb)]=!![];if(this[_0x4fed30(0x275)][_0x4fed30(0x29f)])this[_0x4fed30(0x301)](),this['activation']=_0x4fed30(0x2ef);else this['activation']='serving-committed-with-pending-update';}catch(_0x575d88){this[_0x4fed30(0x259)]=_0x4fed30(0x2be);const _0x3385b8={};_0x3385b8[_0x4fed30(0x1d6)]=-0x7d01,_0x3385b8[_0x4fed30(0x1c2)]=_0x575d88[_0x4fed30(0x1d6)]||_0x4fed30(0x23f),_0x52186b={'jsonrpc':'2.0','id':_0x52186b['id'],'error':_0x3385b8};}this['record']();if(this[_0x4fed30(0x275)]['mutationAllowed'])void this[_0x4fed30(0x232)]()['catch'](_0x5f4b57=>{const _0x1f6118=_0x4fed30,_0x3eb1b1={};_0x3eb1b1[_0x1f6118(0x2b6)]=_0x5f4b57[_0x1f6118(0x1d6)]||_0x1f6118(0x2c2),this[_0x1f6118(0x1f4)](_0x3eb1b1);});}if(_0x13458c[_0x4fed30(0x239)]===_0x4fed30(0x2e0)&&!_0x52186b[_0x4fed30(0x2c6)])this['toolCatalogHash']=hash(JSON['stringify'](_0x52186b[_0x4fed30(0x1ce)]?.['tools']||[]));}!this['stdout'][_0x4fed30(0x2fc)](JSON['stringify'](_0x52186b)+'\x0a')&&(_0x5f349b[_0x4fed30(0x279)][_0x4fed30(0x316)](),this[_0x4fed30(0x279)]['once'](_0x4fed30(0x1c4),()=>_0x5f349b[_0x4fed30(0x279)][_0x4fed30(0x25b)]()));}}async[_0x237898(0x232)](){const _0x35435f=_0x237898,_0x44fea3=readFence(this[_0x35435f(0x324)]);if(_0x44fea3['state']!=='closed'||_0x44fea3[_0x35435f(0x2b9)]!==this[_0x35435f(0x212)]?.[_0x35435f(0x207)]||_0x44fea3[_0x35435f(0x2e6)]!==this[_0x35435f(0x212)]?.['digest'])return;const _0x30835e=path[_0x35435f(0x222)](this[_0x35435f(0x324)],_0x35435f(0x322),_0x35435f(0x300),'update-transaction.json');let _0x152733;try{_0x152733=JSON['parse'](fs[_0x35435f(0x2c5)](_0x30835e,_0x35435f(0x2f7)));}catch{return;}if(_0x152733[_0x35435f(0x27d)]!==_0x44fea3[_0x35435f(0x27d)]||![_0x35435f(0x260),_0x35435f(0x2be)][_0x35435f(0x2f0)](_0x152733[_0x35435f(0x236)]))return;const _0x8cbd72=await require('./connection-activation')[_0x35435f(0x1c7)](this[_0x35435f(0x324)],{'version':this[_0x35435f(0x212)][_0x35435f(0x207)],'digest':this['identity'][_0x35435f(0x245)],'resourceDigest':this[_0x35435f(0x26b)]});if(_0x8cbd72[_0x35435f(0x236)]!==_0x35435f(0x2ef))return;const _0x5dbf22=changeFence(this[_0x35435f(0x324)],_0x44fea3[_0x35435f(0x2ae)],{'state':_0x35435f(0x264),'transactionId':_0x44fea3[_0x35435f(0x27d)],'generation':this[_0x35435f(0x1cc)]}),_0x913eb3={..._0x152733};_0x913eb3[_0x35435f(0x236)]=_0x35435f(0x2ef),_0x913eb3[_0x35435f(0x2f6)]='authenticated-live-process',_0x913eb3[_0x35435f(0x1cc)]=this['generation'],_0x913eb3['changedAt']=_0x5dbf22[_0x35435f(0x310)],atomic(_0x30835e,_0x913eb3);}[_0x237898(0x29c)](_0x10547b,_0x5b3924){const _0x481e81=_0x237898;if(this[_0x481e81(0x1e5)]!==_0x5b3924)return;if(_0x10547b?.[_0x481e81(0x214)]===_0x481e81(0x23b)){const _0x51bdfd=_0x5b3924[_0x481e81(0x287)],_0x3769c8={};_0x3769c8[_0x481e81(0x1d6)]=_0x481e81(0x29b);if(!_0x51bdfd||_0x10547b['connectionId']!==this['connectionId']||_0x10547b['pid']!==_0x5b3924[_0x481e81(0x2fe)]||_0x10547b['generation']!==_0x51bdfd[_0x481e81(0x1cc)]||_0x10547b[_0x481e81(0x207)]!==_0x51bdfd['version']||_0x10547b[_0x481e81(0x245)]!==_0x51bdfd[_0x481e81(0x245)]||!same(_0x10547b[_0x481e81(0x324)]||'',this[_0x481e81(0x324)]))_0x5b3924['bootReject']?.(Object[_0x481e81(0x283)](new Error(_0x481e81(0x210)),_0x3769c8));else _0x5b3924['bootResolve']?.(_0x10547b);}else{if(_0x10547b?.[_0x481e81(0x214)]===_0x481e81(0x30d))_0x5b3924[_0x481e81(0x31c)]?.(Object[_0x481e81(0x283)](new Error(_0x10547b[_0x481e81(0x2a4)]),{'code':_0x10547b[_0x481e81(0x1d6)]}));else{if(_0x10547b?.[_0x481e81(0x214)]===_0x481e81(0x1ea))this['rebindWorkspace'](_0x10547b[_0x481e81(0x324)]);else{if(_0x10547b?.[_0x481e81(0x1d8)]&&this[_0x481e81(0x250)]['has'](messageId(_0x10547b['requestId']))){if(_0x10547b[_0x481e81(0x214)]===_0x481e81(0x269)&&_0x10547b[_0x481e81(0x2fe)]===_0x5b3924[_0x481e81(0x2fe)]&&_0x10547b['connectionId']===this['connectionId']&&_0x10547b[_0x481e81(0x1cc)]===this[_0x481e81(0x1cc)]&&_0x10547b['registeredOwnersStopped']===!![])_0x5b3924[_0x481e81(0x2f1)]=!![];const _0xd45ac5=this[_0x481e81(0x250)][_0x481e81(0x1be)](messageId(_0x10547b[_0x481e81(0x1d8)]));this[_0x481e81(0x250)][_0x481e81(0x1d1)](messageId(_0x10547b[_0x481e81(0x1d8)])),_0xd45ac5[_0x481e81(0x2a6)](_0x10547b);}}}}}async[_0x237898(0x273)](_0x89d2c,_0x164df1={},_0x13039b=0x1388){const _0x2d3f30=_0x237898,_0x4ff12f={};_0x4ff12f[_0x2d3f30(0x21b)]=_0x164df1[_0x2d3f30(0x230)]?.[_0x2d3f30(0x24a)],_0x4ff12f[_0x2d3f30(0x291)]=_0x164df1[_0x2d3f30(0x230)]?.[_0x2d3f30(0x291)];const _0x2a1e54={};_0x2a1e54['method']=_0x2d3f30(0x263),_0x2a1e54['params']=_0x4ff12f;const _0x8e0b88=_0x89d2c==='issue-context'&&!this[_0x2d3f30(0x306)](_0x2a1e54);if(!['status',_0x2d3f30(0x220)][_0x2d3f30(0x2f0)](_0x89d2c)&&!_0x8e0b88)await this[_0x2d3f30(0x1cd)]();const _0x28ba02={};_0x28ba02[_0x2d3f30(0x1d6)]=_0x2d3f30(0x1db);if(!this[_0x2d3f30(0x1e5)]?.[_0x2d3f30(0x26d)])return Promise[_0x2d3f30(0x22b)](Object[_0x2d3f30(0x283)](new Error(_0x2d3f30(0x1d7)),_0x28ba02));const _0x363165=_0x2d3f30(0x1f3)+crypto[_0x2d3f30(0x2d0)]();return new Promise((_0x4b6ee3,_0x4674e8)=>{const _0x55329a=_0x2d3f30,_0x29073e=setTimeout(()=>{const _0xa1e7a8=_0x4c71;this[_0xa1e7a8(0x250)][_0xa1e7a8(0x1d1)](messageId(_0x363165));const _0x4d1e5d={};_0x4d1e5d[_0xa1e7a8(0x1d6)]='CHILD_CONTROL_TIMEOUT',_0x4674e8(Object[_0xa1e7a8(0x283)](new Error(_0xa1e7a8(0x2cc)),_0x4d1e5d));},_0x13039b);this[_0x55329a(0x250)][_0x55329a(0x285)](messageId(_0x363165),{'resolve':_0x19b0e8=>{clearTimeout(_0x29073e),_0x4b6ee3(_0x19b0e8);}});const _0x4a2e85={'type':_0x89d2c,'requestId':_0x363165,..._0x164df1};this[_0x55329a(0x1e5)][_0x55329a(0x1fb)](_0x4a2e85);});}async['requestRpc'](_0x5b159a,_0x95187d,_0x3a498c=0x2710){const _0x51c105=_0x237898;await this[_0x51c105(0x1cd)]();const _0x2955c8='apt-supervisor-'+crypto[_0x51c105(0x2d0)]();return new Promise((_0x302e20,_0x4ef00f)=>{const _0x5ef8a1=_0x51c105,_0x7b07f5=setTimeout(()=>{const _0x143306=_0x4c71;this[_0x143306(0x250)][_0x143306(0x1d1)](messageId(_0x2955c8));const _0x50df71={};_0x50df71[_0x143306(0x1d6)]=_0x143306(0x1da),_0x4ef00f(Object[_0x143306(0x283)](new Error(_0x143306(0x1b2)),_0x50df71));},_0x3a498c);this[_0x5ef8a1(0x250)][_0x5ef8a1(0x285)](messageId(_0x2955c8),{'resolve':_0x5cf8f6=>{clearTimeout(_0x7b07f5),_0x302e20(_0x5cf8f6);}});const _0x3082a0={};_0x3082a0[_0x5ef8a1(0x2bf)]=_0x5ef8a1(0x2b8),_0x3082a0['id']=_0x2955c8,_0x3082a0['method']=_0x5b159a,_0x3082a0['params']=_0x95187d,this[_0x5ef8a1(0x1e5)][_0x5ef8a1(0x31a)][_0x5ef8a1(0x2fc)](JSON[_0x5ef8a1(0x247)](_0x3082a0)+'\x0a');});}async[_0x237898(0x309)](){const _0x252762=_0x237898;if(this['pending'][_0x252762(0x2ad)])return[{'kind':_0x252762(0x28b),'count':this[_0x252762(0x27f)][_0x252762(0x2ad)]}];const _0x3c7612=await this[_0x252762(0x273)]('status'),_0x21e6d0={};return _0x21e6d0['kind']=_0x252762(0x1c3),_0x3c7612[_0x252762(0x303)]||[_0x21e6d0];}[_0x237898(0x240)](){const _0x4548b7=_0x237898,_0x36e1f5={};return _0x36e1f5[_0x4548b7(0x23a)]=this[_0x4548b7(0x23a)],_0x36e1f5[_0x4548b7(0x324)]=this[_0x4548b7(0x324)],_0x36e1f5[_0x4548b7(0x256)]=process['pid'],_0x36e1f5[_0x4548b7(0x1e7)]=this[_0x4548b7(0x1e5)]?.[_0x4548b7(0x2fe)],_0x36e1f5['version']=this['identity']?.[_0x4548b7(0x207)],_0x36e1f5[_0x4548b7(0x245)]=this[_0x4548b7(0x212)]?.['digest'],_0x36e1f5[_0x4548b7(0x26b)]=this['resourceDigest'],_0x36e1f5[_0x4548b7(0x1aa)]=this[_0x4548b7(0x2fb)],_0x36e1f5[_0x4548b7(0x1cc)]=this['generation'],_0x36e1f5;}async['stopChild'](_0x427a3b){const _0x42e341=_0x237898,_0x7456c6={};_0x7456c6[_0x42e341(0x1d6)]='CHILD_UNAVAILABLE';if(!this['child'])throw Object['assign'](new Error(_0x42e341(0x216)),_0x7456c6);const _0x494c9e=this[_0x42e341(0x1e5)];if(!_0x494c9e[_0x42e341(0x2cf)])await this[_0x42e341(0x1cd)]();else await attachOwnedJob(_0x494c9e);let _0x106b7f=![];const _0x2d3729=await stopOwnedChild(_0x494c9e,{'reason':_0x427a3b,'graceful':async()=>{const _0x4d38d6=_0x42e341,_0x59733b={};_0x59733b[_0x4d38d6(0x1b4)]=_0x427a3b;const _0x558cda=await this['requestChild'](_0x4d38d6(0x249),_0x59733b,0x3a98);_0x106b7f=_0x558cda[_0x4d38d6(0x214)]===_0x4d38d6(0x269)&&_0x558cda['pid']===_0x494c9e[_0x4d38d6(0x2fe)]&&_0x558cda[_0x4d38d6(0x23a)]===this[_0x4d38d6(0x23a)]&&_0x558cda[_0x4d38d6(0x1cc)]===this[_0x4d38d6(0x1cc)]&&_0x558cda[_0x4d38d6(0x2e5)]===!![];}}),_0x3ae436={};_0x3ae436['code']=_0x42e341(0x1e3);if(process[_0x42e341(0x295)]!=='win32'&&!_0x106b7f)throw Object[_0x42e341(0x283)](new Error(_0x42e341(0x20f)),_0x3ae436);const _0x254ba1={..._0x2d3729};_0x254ba1['registeredOwnersStopped']=_0x106b7f,this[_0x42e341(0x262)]=_0x254ba1;if(this[_0x42e341(0x1e5)]===_0x494c9e)this[_0x42e341(0x1e5)]=null;this['outputBuffer']='',this['outputDecoder']=new StringDecoder(_0x42e341(0x2f7));}async['initializeCandidate'](_0x31b027){const _0x214c3e=_0x237898;if(this[_0x214c3e(0x321)]){const _0x46c993=await this[_0x214c3e(0x28a)](_0x214c3e(0x321),this[_0x214c3e(0x321)]),_0x597cb6={};_0x597cb6['code']='CHILD_INITIALIZE_FAILED';if(_0x46c993[_0x214c3e(0x2c6)])throw Object[_0x214c3e(0x283)](new Error(_0x214c3e(0x1b7)),_0x597cb6);const _0x41add0={};_0x41add0['jsonrpc']=_0x214c3e(0x2b8),_0x41add0['method']=_0x214c3e(0x1d2),_0x41add0[_0x214c3e(0x25f)]={};if(this[_0x214c3e(0x2bd)])this[_0x214c3e(0x1e5)][_0x214c3e(0x31a)]['write'](JSON[_0x214c3e(0x247)](_0x41add0)+'\x0a');}const _0x388fc3=await this['requestRpc'](_0x214c3e(0x2e0),{}),_0x32864e=hash(JSON[_0x214c3e(0x247)](_0x388fc3['result']?.[_0x214c3e(0x22a)]||[])),_0x1932af={};_0x1932af[_0x214c3e(0x1d6)]='RECONNECT_REQUIRED';if(_0x388fc3['error']||this[_0x214c3e(0x2fb)]&&_0x32864e!==this[_0x214c3e(0x2fb)])throw Object[_0x214c3e(0x283)](new Error(_0x214c3e(0x299)),_0x1932af);this[_0x214c3e(0x2fb)]=_0x32864e;const _0x5ece8b={};_0x5ece8b[_0x214c3e(0x2d2)]=_0x31b027[_0x214c3e(0x2d2)],_0x5ece8b[_0x214c3e(0x32b)]=_0x31b027['boundPipeline'],await this[_0x214c3e(0x273)](_0x214c3e(0x23c),_0x5ece8b);}async[_0x237898(0x1b1)](_0x371d04){const _0x2eb14e=_0x237898,_0x2a1218=readFence(this[_0x2eb14e(0x324)]),_0x2d49f8={};_0x2d49f8[_0x2eb14e(0x1d6)]=_0x2eb14e(0x208);if(_0x2a1218[_0x2eb14e(0x31b)]!==_0x2eb14e(0x2e3)||_0x371d04[_0x2eb14e(0x27d)]!==_0x2a1218['transactionId']||_0x371d04[_0x2eb14e(0x2ae)]!==_0x2a1218[_0x2eb14e(0x2ae)])throw Object[_0x2eb14e(0x283)](new Error(_0x2eb14e(0x2b0)),_0x2d49f8);const _0x4fbb38={};_0x4fbb38['status']='pending-safe-boundary',_0x4fbb38[_0x2eb14e(0x1d6)]=_0x2eb14e(0x257);if(this[_0x2eb14e(0x2c8)])return _0x4fbb38;this[_0x2eb14e(0x1b3)](_0x371d04[_0x2eb14e(0x27d)]),this[_0x2eb14e(0x2d6)]=!![];if(_0x371d04[_0x2eb14e(0x214)]===_0x2eb14e(0x2f4)){const _0x5b47a7={};_0x5b47a7[_0x2eb14e(0x1d6)]=_0x2eb14e(0x2b1);if(!this[_0x2eb14e(0x1c9)]||this[_0x2eb14e(0x1c9)][_0x2eb14e(0x27d)]!==_0x371d04['transactionId']||!this['candidate']['prepared']||!this['child']?.[_0x2eb14e(0x23b)])throw Object[_0x2eb14e(0x283)](new Error('Candidate\x20is\x20not\x20prepared'),_0x5b47a7);const _0x438343=await this[_0x2eb14e(0x273)]('status'),_0x3ba514={};_0x3ba514['code']=_0x2eb14e(0x29b);if(_0x438343[_0x2eb14e(0x2fe)]!==this[_0x2eb14e(0x1e5)][_0x2eb14e(0x2fe)]||_0x438343[_0x2eb14e(0x1cc)]!==_0x371d04[_0x2eb14e(0x1cc)]||!same(_0x438343['workspace'],this[_0x2eb14e(0x324)]))throw Object[_0x2eb14e(0x283)](new Error(_0x2eb14e(0x22d)),_0x3ba514);const _0x937ba3=acknowledgeGeneration(this[_0x2eb14e(0x324)],this[_0x2eb14e(0x23a)],_0x371d04[_0x2eb14e(0x27d)],this[_0x2eb14e(0x240)]());projectGeneration(this[_0x2eb14e(0x24b)],this[_0x2eb14e(0x324)],_0x937ba3),this[_0x2eb14e(0x2eb)]=this[_0x2eb14e(0x1c9)][_0x2eb14e(0x2eb)],this['activation']=_0x2eb14e(0x2ef),this[_0x2eb14e(0x2d6)]=![];const _0x43be4f={};return _0x43be4f[_0x2eb14e(0x2ea)]=_0x937ba3[_0x2eb14e(0x27d)],this[_0x2eb14e(0x1f4)](_0x43be4f),{'status':'active',...this[_0x2eb14e(0x240)]()};}const _0x3b8f97=readGeneration(this[_0x2eb14e(0x324)]),_0x2eb670={};_0x2eb670[_0x2eb14e(0x1d6)]='RESOURCE_ROLL_FORWARD_REQUIRED';if(_0x371d04['type']===_0x2eb14e(0x2f8)&&_0x3b8f97?.[_0x2eb14e(0x27d)]===_0x371d04['transactionId'])throw Object['assign'](new Error(_0x2eb14e(0x1d5)),_0x2eb670);if(_0x371d04[_0x2eb14e(0x214)]===_0x2eb14e(0x280)&&this['candidate']?.[_0x2eb14e(0x27d)]===_0x371d04[_0x2eb14e(0x27d)]&&this[_0x2eb14e(0x1c9)][_0x2eb14e(0x277)]&&this[_0x2eb14e(0x1e5)]?.[_0x2eb14e(0x23b)]){const _0x32d88e=this[_0x2eb14e(0x240)](),_0x54fbce={};_0x54fbce[_0x2eb14e(0x1d6)]='CANDIDATE_TUPLE_MISMATCH';if([_0x2eb14e(0x207),_0x2eb14e(0x245),_0x2eb14e(0x1cc),_0x2eb14e(0x26b),'catalogHash']['some'](_0x1d1aea=>_0x32d88e[_0x1d1aea]!==_0x371d04[_0x1d1aea]))throw Object[_0x2eb14e(0x283)](new Error(_0x2eb14e(0x2a5)),_0x54fbce);const _0x56544f=await this[_0x2eb14e(0x273)](_0x2eb14e(0x236)),_0x517bf1={};_0x517bf1['code']=_0x2eb14e(0x29b);if(_0x56544f[_0x2eb14e(0x2fe)]!==_0x32d88e['childPid']||_0x56544f[_0x2eb14e(0x1cc)]!==_0x32d88e[_0x2eb14e(0x1cc)]||!same(_0x56544f[_0x2eb14e(0x324)],this[_0x2eb14e(0x324)]))throw Object[_0x2eb14e(0x283)](new Error(_0x2eb14e(0x22d)),_0x517bf1);const _0x19fb9a={'status':_0x2eb14e(0x1d9),..._0x32d88e};return _0x19fb9a;}this[_0x2eb14e(0x2c8)]=((async()=>{const _0x304f89=_0x2eb14e;if(_0x371d04[_0x304f89(0x214)]===_0x304f89(0x2d3)){if(this[_0x304f89(0x1c9)]?.[_0x304f89(0x27d)]===_0x371d04[_0x304f89(0x27d)]&&this[_0x304f89(0x1c9)][_0x304f89(0x269)]&&this['candidate'][_0x304f89(0x277)]&&!this[_0x304f89(0x1c9)][_0x304f89(0x30e)])return{'status':this[_0x304f89(0x1e5)]?.[_0x304f89(0x23b)]?_0x304f89(0x1d9):'pending-safe-boundary','code':this[_0x304f89(0x1e5)]?.[_0x304f89(0x23b)]?undefined:_0x304f89(0x24c),'oldRuntimeStopped':!![],...this['candidateTuple']()};if(this['candidate']?.['transactionId']===_0x371d04[_0x304f89(0x27d)]&&this['candidate'][_0x304f89(0x269)]&&!this[_0x304f89(0x1c9)][_0x304f89(0x30e)]&&!this[_0x304f89(0x1e5)])return{'status':_0x304f89(0x269),'connectionId':this[_0x304f89(0x23a)]};const _0x183722=await this[_0x304f89(0x309)]();if(_0x183722[_0x304f89(0x307)])return{'status':'pending-safe-boundary','blockers':_0x183722};const _0x22f2d6=await this[_0x304f89(0x273)]('status');this[_0x304f89(0x1c9)]={'transactionId':_0x371d04[_0x304f89(0x27d)],'previous':{'release':this[_0x304f89(0x2eb)],'generation':this[_0x304f89(0x1cc)],'resourceDigest':this[_0x304f89(0x26b)],'state':_0x22f2d6}},this['persistCandidate'](),await this[_0x304f89(0x1dd)](_0x304f89(0x1e6)),this[_0x304f89(0x1c9)][_0x304f89(0x269)]=!![],this[_0x304f89(0x2ff)]();const _0x2228a1={};_0x2228a1['stoppedTransaction']=_0x371d04[_0x304f89(0x27d)],this[_0x304f89(0x1f4)](_0x2228a1);const _0x5f20d9={};return _0x5f20d9[_0x304f89(0x236)]=_0x304f89(0x269),_0x5f20d9['connectionId']=this[_0x304f89(0x23a)],_0x5f20d9[_0x304f89(0x262)]=this[_0x304f89(0x262)],_0x5f20d9;}if(_0x371d04['type']==='restore-previous'){const _0xb419c7={};_0xb419c7[_0x304f89(0x1d6)]=_0x304f89(0x29a);if(!this[_0x304f89(0x1c9)])throw Object[_0x304f89(0x283)](new Error(_0x304f89(0x2ca)),_0xb419c7);const _0x373d97=this[_0x304f89(0x1c9)][_0x304f89(0x2cd)],_0x40af3a={};_0x40af3a[_0x304f89(0x1d6)]='CHILD_OWNERSHIP_UNKNOWN';if(!_0x373d97?.[_0x304f89(0x31b)]||!this[_0x304f89(0x1c9)][_0x304f89(0x269)])throw Object[_0x304f89(0x283)](new Error('Previous\x20stop\x20evidence\x20is\x20missing'),_0x40af3a);if(this[_0x304f89(0x1e5)])await this[_0x304f89(0x1dd)](_0x304f89(0x2ba));await this[_0x304f89(0x1fd)](_0x373d97[_0x304f89(0x2eb)],_0x373d97[_0x304f89(0x1cc)]);const _0x46824d={};_0x46824d[_0x304f89(0x1d6)]=_0x304f89(0x2ab);if(this['resourceDigest']!==_0x373d97[_0x304f89(0x26b)])throw Object['assign'](new Error(_0x304f89(0x28c)),_0x46824d);return await this['initializeCandidate'](_0x373d97['state']),this['release']=_0x373d97[_0x304f89(0x2eb)],this[_0x304f89(0x1c9)]={...this[_0x304f89(0x1c9)],'restored':!![],'prepared':![]},this['persistCandidate'](),this[_0x304f89(0x259)]=_0x304f89(0x308),this[_0x304f89(0x2d6)]=![],this[_0x304f89(0x1f4)](),{'status':_0x304f89(0x2e4),'serving':this[_0x304f89(0x1e5)]?.['ready']===!![],...this[_0x304f89(0x240)]()};}const _0x508deb={};_0x508deb[_0x304f89(0x1d6)]=_0x304f89(0x2f9);if(!Number[_0x304f89(0x2a3)](_0x371d04[_0x304f89(0x1cc)])||_0x371d04[_0x304f89(0x1cc)]<=(this['candidate']?.[_0x304f89(0x2cd)]?.[_0x304f89(0x1cc)]??this['generation'])||_0x371d04['version']!==_0x2a1218[_0x304f89(0x2b9)]||_0x371d04['digest']!==_0x2a1218['targetDigest'])throw Object['assign'](new Error('Candidate\x20target\x20does\x20not\x20match\x20transaction'),_0x508deb);const _0x4136cd=_0x371d04[_0x304f89(0x2eb)]||path[_0x304f89(0x222)](this[_0x304f89(0x24b)],_0x304f89(0x266),_0x371d04[_0x304f89(0x207)]+'-'+_0x371d04[_0x304f89(0x245)]),_0x1f7616=verifyRelease(_0x4136cd,this['publicKey']),_0xdff1fb={};_0xdff1fb['code']=_0x304f89(0x2f9);if(_0x1f7616[_0x304f89(0x207)]!==_0x371d04[_0x304f89(0x207)]||_0x1f7616[_0x304f89(0x245)]!==_0x371d04[_0x304f89(0x245)])throw Object[_0x304f89(0x283)](new Error(_0x304f89(0x296)),_0xdff1fb);const _0xcc500d={};_0xcc500d[_0x304f89(0x1d6)]=_0x304f89(0x2d4);if(!this[_0x304f89(0x1c9)]?.[_0x304f89(0x269)]||this[_0x304f89(0x1c9)][_0x304f89(0x27d)]!==_0x371d04[_0x304f89(0x27d)])throw Object[_0x304f89(0x283)](new Error(_0x304f89(0x289)),_0xcc500d);const _0x2499da=this[_0x304f89(0x1c9)]['previous']['state'];this[_0x304f89(0x1c9)][_0x304f89(0x2eb)]=_0x4136cd;if(this[_0x304f89(0x1e5)])await this['stopChild'](_0x304f89(0x323));this[_0x304f89(0x1c9)][_0x304f89(0x277)]=![],this[_0x304f89(0x2ff)](),await this[_0x304f89(0x1fd)](_0x4136cd,_0x371d04['generation']),await this[_0x304f89(0x314)](_0x2499da);const _0x1cb9fa={};_0x1cb9fa[_0x304f89(0x1d6)]=_0x304f89(0x2f9);if(this[_0x304f89(0x26b)]!==_0x371d04[_0x304f89(0x26b)]||this[_0x304f89(0x2fb)]!==_0x371d04[_0x304f89(0x1aa)])throw Object['assign'](new Error('Candidate\x20resources\x20or\x20catalog\x20do\x20not\x20match\x20transaction'),_0x1cb9fa);this[_0x304f89(0x1c9)]['prepared']=!![],this['persistCandidate'](),this[_0x304f89(0x259)]='pending-safe-boundary';const _0x526a46={};return _0x526a46[_0x304f89(0x1b0)]=_0x371d04[_0x304f89(0x27d)],this[_0x304f89(0x1f4)](_0x526a46),{'status':_0x304f89(0x1d9),...this[_0x304f89(0x240)]()};})());try{return await this['transition'];}finally{this['transition']=null;}}async[_0x237898(0x253)](){const _0x408d65=_0x237898,_0x86618a={};return _0x86618a[_0x408d65(0x236)]=_0x408d65(0x2be),_0x86618a['code']=_0x408d65(0x298),_0x86618a;}async[_0x237898(0x2db)](_0x3c975c,_0x46f133,_0x3f00fb){const _0x2d9721=_0x237898;if(this[_0x2d9721(0x1e5)]!==_0x3c975c)return;_0x3c975c['closed']=!![],_0x3c975c[_0x2d9721(0x23b)]=![];const _0x331001={};_0x331001[_0x2d9721(0x1d6)]='CHILD_CLOSED',_0x3c975c['bootReject']?.(Object[_0x2d9721(0x283)](new Error('Runtime\x20child\x20closed'),_0x331001));for(const [_0x18e543]of this[_0x2d9721(0x27f)]){try{const _0x4cd674={};_0x4cd674[_0x2d9721(0x1d6)]=-0x7d02,_0x4cd674['message']='APT_RUNTIME_OUTCOME_UNKNOWN:\x20child\x20closed\x20after\x20request\x20delivery',this[_0x2d9721(0x1ec)]({'jsonrpc':_0x2d9721(0x2b8),'id':JSON[_0x2d9721(0x274)](_0x18e543),'error':_0x4cd674});}catch{}}this[_0x2d9721(0x27f)][_0x2d9721(0x234)]();try{const _0x18cad4={};_0x18cad4[_0x2d9721(0x1b4)]=_0x2d9721(0x1bf),_0x18cad4['graceMs']=0x3e8,await stopOwnedChild(_0x3c975c,_0x18cad4);}catch(_0x34724c){this['activation']=_0x2d9721(0x1e8),this[_0x2d9721(0x2d6)]=!![];const _0x233c97={};_0x233c97[_0x2d9721(0x32e)]=_0x3f00fb||_0x46f133||_0x2d9721(0x282),_0x233c97['blocker']=_0x34724c[_0x2d9721(0x1d6)]||_0x2d9721(0x1e3),this[_0x2d9721(0x1f4)](_0x233c97);return;}if(this['child']!==_0x3c975c)return;if(process[_0x2d9721(0x295)]!==_0x2d9721(0x286)&&!_0x3c975c[_0x2d9721(0x2f1)]){this[_0x2d9721(0x259)]='legacy-ownership-unverified',this[_0x2d9721(0x2d6)]=!![];const _0x219458={};_0x219458[_0x2d9721(0x32e)]=_0x3f00fb||_0x46f133||_0x2d9721(0x282),_0x219458[_0x2d9721(0x2b6)]='PROCESS_TREE_STOP_UNCONFIRMED',this[_0x2d9721(0x1f4)](_0x219458);return;}this[_0x2d9721(0x1e5)]=null;if(!this[_0x2d9721(0x2c8)]&&!this[_0x2d9721(0x269)]){this[_0x2d9721(0x321)]=null,this[_0x2d9721(0x2bd)]=![],this[_0x2d9721(0x259)]=_0x2d9721(0x2be),this[_0x2d9721(0x2d6)]=!![];const _0x15353e={};_0x15353e[_0x2d9721(0x32e)]=_0x3f00fb||_0x46f133||_0x2d9721(0x282),this[_0x2d9721(0x1f4)](_0x15353e);}}['writeHost'](_0x2ab9c4){const _0x57cbab=_0x237898;this[_0x57cbab(0x279)][_0x57cbab(0x2fc)](JSON[_0x57cbab(0x247)](_0x2ab9c4)+'\x0a');}async[_0x237898(0x25c)](_0x47aa40=_0x237898(0x268)){const _0x2830a9=_0x237898;if(this[_0x2830a9(0x2cf)])return;if(this['closing'])return this[_0x2830a9(0x1f5)];this[_0x2830a9(0x2d6)]=!![],clearTimeout(this[_0x2830a9(0x2c4)]),this['closing']=((async()=>{const _0x324660=_0x2830a9;try{if(this[_0x324660(0x1e5)])await this[_0x324660(0x1dd)](_0x47aa40);closeMember(this['workspace'],this[_0x324660(0x23a)],process['pid'],!![]),this['stopped']=!![],this[_0x324660(0x1e2)]=_0x47aa40,require('./registration-closure')[_0x324660(0x276)](this),await new Promise(_0x4b2445=>this[_0x324660(0x2fa)]?.[_0x324660(0x25c)](_0x4b2445)||_0x4b2445()),this['activation']='ready-next-connection';const _0x455091={};_0x455091[_0x324660(0x32e)]=_0x47aa40,this[_0x324660(0x1f4)](_0x455091);try{fs[_0x324660(0x27e)](this['secretPath']);}catch{}if(process[_0x324660(0x295)]!==_0x324660(0x286))try{fs[_0x324660(0x27e)](this['endpoint']);}catch{}this[_0x324660(0x2cf)]=!![];}catch(_0x563880){this[_0x324660(0x259)]=_0x324660(0x1e8);const _0x5bcae5={};_0x5bcae5['stopReason']=_0x47aa40,_0x5bcae5[_0x324660(0x2b6)]=_0x563880['code']||'CHILD_STOP_UNCONFIRMED',this['record'](_0x5bcae5);throw _0x563880;}})());try{return await this[_0x2830a9(0x1f5)];}finally{this['closing']=null;}}}const _0x5081b1={};_0x5081b1[_0x237898(0x318)]=ConnectionSupervisor,module['exports']=_0x5081b1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x411eb2=_0x1a18;(function(_0x1692c5,_0x38f634){const _0x1c68e8=_0x1a18,_0x56f24b=_0x1692c5();while(!![]){try{const _0x2ffdb0=-parseInt(_0x1c68e8(0xcf))/0x1+-parseInt(_0x1c68e8(0xfa))/0x2+parseInt(_0x1c68e8(0xc1))/0x3*(-parseInt(_0x1c68e8(0xa2))/0x4)+parseInt(_0x1c68e8(0xe3))/0x5+-parseInt(_0x1c68e8(0xf3))/0x6*(-parseInt(_0x1c68e8(0xba))/0x7)+-parseInt(_0x1c68e8(0xf4))/0x8+parseInt(_0x1c68e8(0x97))/0x9;if(_0x2ffdb0===_0x38f634)break;else _0x56f24b['push'](_0x56f24b['shift']());}catch(_0x5f3eae){_0x56f24b['push'](_0x56f24b['shift']());}}}(_0x5cb3,0x74f55));const fs=require('node:fs'),path=require(_0x411eb2(0xe7)),crypto=require(_0x411eb2(0xb8)),{containsWorkspace,sameWorkspace}=require(_0x411eb2(0xd1)),{ResourceTransaction}=require('../core/resource-transaction'),hash=_0x33c976=>crypto[_0x411eb2(0xb1)](_0x411eb2(0xe0))['update'](_0x33c976)[_0x411eb2(0xa5)](_0x411eb2(0xdb));class DeploymentDraft{constructor(_0x17f8b4){const _0x25dce6=_0x411eb2;this[_0x25dce6(0xac)]=fs[_0x25dce6(0xe9)](_0x17f8b4),this['files']=new Map(),this[_0x25dce6(0xaa)]=new Map(),this[_0x25dce6(0xed)]=new Set();const _0x3ca817={};_0x3ca817[_0x25dce6(0xb4)]=()=>!![],_0x3ca817[_0x25dce6(0xa7)]=()=>![];const _0x1463e5={};_0x1463e5[_0x25dce6(0xb4)]=()=>![],_0x1463e5['isDirectory']=()=>!![],this['fs']={'existsSync':_0x1c69e5=>this['exists'](_0x1c69e5),'readFileSync':(_0x33ced2,_0x4c637f)=>this[_0x25dce6(0xb0)](_0x33ced2,_0x4c637f),'writeFileSync':(_0x1520b2,_0x51f0c6,_0x9ab33d)=>this['write'](_0x1520b2,_0x51f0c6,_0x9ab33d),'appendFileSync':(_0x2b6912,_0x2a874e)=>this[_0x25dce6(0xd0)](_0x2b6912,Buffer[_0x25dce6(0xf5)]([this[_0x25dce6(0xf0)](_0x2b6912)?this['read'](_0x2b6912):Buffer[_0x25dce6(0xb2)](0x0),Buffer[_0x25dce6(0xa6)](_0x2a874e)])),'copyFileSync':(_0x441378,_0x532039)=>this[_0x25dce6(0xd0)](_0x532039,this['read'](_0x441378)),'renameSync':(_0x28d1be,_0x118804)=>{const _0x945206=_0x25dce6;this[_0x945206(0xd0)](_0x118804,this[_0x945206(0xb0)](_0x28d1be)),this[_0x945206(0xdd)](_0x28d1be);},'unlinkSync':_0x5b3ed9=>this['remove'](_0x5b3ed9),'mkdirSync':_0x246716=>this[_0x25dce6(0xed)][_0x25dce6(0xa1)](this[_0x25dce6(0xc0)](_0x246716)),'rmdirSync':_0x160a56=>this[_0x25dce6(0xed)]['delete'](this['writable'](_0x160a56)),'statSync':_0x2b85a0=>this[_0x25dce6(0xd8)][_0x25dce6(0x9a)](path[_0x25dce6(0xcd)](_0x2b85a0))&&this['files'][_0x25dce6(0x9c)](path[_0x25dce6(0xcd)](_0x2b85a0))!==null?_0x3ca817:this[_0x25dce6(0xed)][_0x25dce6(0x9a)](path[_0x25dce6(0xcd)](_0x2b85a0))?_0x1463e5:fs[_0x25dce6(0xc8)](_0x2b85a0),'readdirSync':_0x2ed936=>this[_0x25dce6(0xb3)](_0x2ed936),'realpathSync':_0x2cf36b=>fs[_0x25dce6(0xe9)](_0x2cf36b)};}['writable'](_0x540e16){const _0x195ac6=_0x411eb2,_0x330236=path['resolve'](_0x540e16),_0x9a55ea=path[_0x195ac6(0xc9)](this[_0x195ac6(0xac)],_0x330236);let _0x70bf00=_0x330236;while(!fs[_0x195ac6(0xce)](_0x70bf00)&&path[_0x195ac6(0xe4)](_0x70bf00)!==_0x70bf00)_0x70bf00=path[_0x195ac6(0xe4)](_0x70bf00);const _0x4b8baa={};_0x4b8baa[_0x195ac6(0xb9)]=_0x195ac6(0xbc);if(_0x9a55ea==='..'||_0x9a55ea[_0x195ac6(0x9e)]('..'+path[_0x195ac6(0xc7)])||path[_0x195ac6(0xc6)](_0x9a55ea)||!sameWorkspace(_0x70bf00,this['workspace'])&&!containsWorkspace(this['workspace'],_0x70bf00))throw Object[_0x195ac6(0xd4)](new Error('Deployment\x20draft\x20path\x20escapes\x20project'),_0x4b8baa);return _0x330236;}[_0x411eb2(0xf0)](_0x4ae7c0){const _0x3042a2=_0x411eb2;_0x4ae7c0=path['resolve'](_0x4ae7c0);if(this[_0x3042a2(0xd8)][_0x3042a2(0x9a)](_0x4ae7c0))return this[_0x3042a2(0xd8)]['get'](_0x4ae7c0)!==null;return this['directories'][_0x3042a2(0x9a)](_0x4ae7c0)||fs[_0x3042a2(0xce)](_0x4ae7c0);}[_0x411eb2(0xfb)](_0x72eaf1){const _0x2700c8=_0x411eb2;if(this[_0x2700c8(0xaa)]['has'](_0x72eaf1))return;try{this[_0x2700c8(0xaa)][_0x2700c8(0xa0)](_0x72eaf1,fs[_0x2700c8(0xeb)](_0x72eaf1));}catch(_0x599461){if(_0x599461[_0x2700c8(0xb9)]===_0x2700c8(0xcb))this[_0x2700c8(0xaa)][_0x2700c8(0xa0)](_0x72eaf1,null);else throw _0x599461;}}[_0x411eb2(0xb0)](_0x4f1f7a,_0x2767a7){const _0x51a7bb=_0x411eb2;_0x4f1f7a=path[_0x51a7bb(0xcd)](_0x4f1f7a);let _0x344f1f;if(this[_0x51a7bb(0xd8)][_0x51a7bb(0x9a)](_0x4f1f7a))_0x344f1f=this[_0x51a7bb(0xd8)][_0x51a7bb(0x9c)](_0x4f1f7a);else{_0x344f1f=fs[_0x51a7bb(0xeb)](_0x4f1f7a);const _0x3be4ef=path[_0x51a7bb(0xc9)](this[_0x51a7bb(0xac)],_0x4f1f7a);if(_0x3be4ef&&_0x3be4ef!=='..'&&!_0x3be4ef[_0x51a7bb(0x9e)]('..'+path[_0x51a7bb(0xc7)])&&!path[_0x51a7bb(0xc6)](_0x3be4ef)&&!this[_0x51a7bb(0xaa)]['has'](_0x4f1f7a))this[_0x51a7bb(0xaa)][_0x51a7bb(0xa0)](_0x4f1f7a,Buffer[_0x51a7bb(0xa6)](_0x344f1f));}const _0x2f9395={};_0x2f9395[_0x51a7bb(0xb9)]=_0x51a7bb(0xcb);if(_0x344f1f===null)throw Object[_0x51a7bb(0xd4)](new Error(_0x51a7bb(0xf7)),_0x2f9395);const _0x23fb62=typeof _0x2767a7===_0x51a7bb(0xe1)?_0x2767a7:_0x2767a7?.[_0x51a7bb(0xdf)];return _0x23fb62?_0x344f1f[_0x51a7bb(0xef)](_0x23fb62):Buffer['from'](_0x344f1f);}[_0x411eb2(0xd0)](_0xfc56f4,_0x53bdde,_0x2661a5){const _0x34ab23=_0x411eb2;_0xfc56f4=this[_0x34ab23(0xc0)](_0xfc56f4);const _0x584457={};_0x584457[_0x34ab23(0xb9)]=_0x34ab23(0xbd);if(_0x2661a5?.[_0x34ab23(0xee)]==='wx'&&this[_0x34ab23(0xf0)](_0xfc56f4))throw Object[_0x34ab23(0xd4)](new Error('Draft\x20file\x20exists'),_0x584457);this[_0x34ab23(0xfb)](_0xfc56f4),this['files'][_0x34ab23(0xa0)](_0xfc56f4,Buffer[_0x34ab23(0xa6)](_0x53bdde)),this[_0x34ab23(0xed)][_0x34ab23(0xa1)](path['dirname'](_0xfc56f4));}['remove'](_0x47e746){const _0x220afa=_0x411eb2;_0x47e746=this['writable'](_0x47e746),this[_0x220afa(0xfb)](_0x47e746),this[_0x220afa(0xd8)][_0x220afa(0xa0)](_0x47e746,null);}[_0x411eb2(0xb3)](_0x2797d5){const _0x473d2d=_0x411eb2;_0x2797d5=path['resolve'](_0x2797d5);let _0x3f28a6;try{_0x3f28a6=new Set(fs[_0x473d2d(0xca)](_0x2797d5));}catch(_0x1f3e21){if(_0x1f3e21[_0x473d2d(0xb9)]===_0x473d2d(0xcb))_0x3f28a6=new Set();else throw _0x1f3e21;}for(const [_0x21f7e4,_0x3fef99]of this['files'])if(path[_0x473d2d(0xe4)](_0x21f7e4)===_0x2797d5){if(_0x3fef99===null)_0x3f28a6[_0x473d2d(0xae)](path[_0x473d2d(0xdc)](_0x21f7e4));else _0x3f28a6[_0x473d2d(0xa1)](path[_0x473d2d(0xdc)](_0x21f7e4));}for(const _0x3136a7 of this['directories'])if(path[_0x473d2d(0xe4)](_0x3136a7)===_0x2797d5)_0x3f28a6[_0x473d2d(0xa1)](path[_0x473d2d(0xdc)](_0x3136a7));return[..._0x3f28a6];}['changes'](){const _0x4391cf=_0x411eb2;return[...this['files']][_0x4391cf(0xbb)](([_0x2a4227,_0x2cc446])=>{const _0xbc9de8=_0x4391cf,_0x28704f=this[_0xbc9de8(0xaa)][_0xbc9de8(0x9c)](_0x2a4227);return _0x2cc446===null?_0x28704f!==null:_0x28704f===null||!_0x2cc446[_0xbc9de8(0xde)](_0x28704f);})['map'](([_0x2c4859,_0x1f6410])=>({'path':path['relative'](this[_0x4391cf(0xac)],_0x2c4859)[_0x4391cf(0x96)]('\x5c','/'),'type':_0x1f6410===null?'delete':_0x4391cf(0xab),'bytes':_0x1f6410,'managedHash':this['originals'][_0x4391cf(0x9c)](_0x2c4859)===null?null:hash(this[_0x4391cf(0xaa)][_0x4391cf(0x9c)](_0x2c4859))}));}}function _0x1a18(_0x43df42,_0x2ebf5d){_0x43df42=_0x43df42-0x96;const _0x5cb3b1=_0x5cb3();let _0x1a18a5=_0x5cb3b1[_0x43df42];if(_0x1a18['fYASPS']===undefined){var _0x50e66c=function(_0x5b5039){const _0x57c7d1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36d960='',_0x4bfbeb='';for(let _0x19cd07=0x0,_0xdfc1e5,_0x5c72f4,_0x6db927=0x0;_0x5c72f4=_0x5b5039['charAt'](_0x6db927++);~_0x5c72f4&&(_0xdfc1e5=_0x19cd07%0x4?_0xdfc1e5*0x40+_0x5c72f4:_0x5c72f4,_0x19cd07++%0x4)?_0x36d960+=String['fromCharCode'](0xff&_0xdfc1e5>>(-0x2*_0x19cd07&0x6)):0x0){_0x5c72f4=_0x57c7d1['indexOf'](_0x5c72f4);}for(let _0x29b46f=0x0,_0x2114c1=_0x36d960['length'];_0x29b46f<_0x2114c1;_0x29b46f++){_0x4bfbeb+='%'+('00'+_0x36d960['charCodeAt'](_0x29b46f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4bfbeb);};_0x1a18['UrTTdr']=_0x50e66c,_0x1a18['ZweXpD']={},_0x1a18['fYASPS']=!![];}const _0x413302=_0x5cb3b1[0x0],_0x47a339=_0x43df42+_0x413302,_0x2fe879=_0x1a18['ZweXpD'][_0x47a339];return!_0x2fe879?(_0x1a18a5=_0x1a18['UrTTdr'](_0x1a18a5),_0x1a18['ZweXpD'][_0x47a339]=_0x1a18a5):_0x1a18a5=_0x2fe879,_0x1a18a5;}function _0x5cb3(){const _0x3cea30=['C2vW','C3rHDfn5BMm','CMvSyxrPDMu','CMvHzgrPCLn5BMm','ru5pru5u','Cgf0Aa','CMvZB2X2zq','zxHPC3rZu3LUyW','mJK4nZjougTjz2m','D3jPDgu','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','BgvUz3rO','lMfNzw50CY9Tyw5PzMvZDc5QC29U','yxnZAwDU','BwfUAwzLC3qUANnVBG','BwLNCMf0Aw9UlxjLCxvPCMvK','y29UzMXPy3rZ','zMLSzxm','CMvNAxn0CMf0Aw9UtwLNCMf0Aw9U','C2f2zq','Agv4','yMfZzw5HBwu','CMvTB3zL','zxf1ywXZ','zw5JB2rPBMC','C2HHmJu2','C3rYAw5N','CgXHBG','mZyYmdG4mfL1A0jnuW','zgLYBMfTzq','C3rHDhvZ','BM90lxjLCxvPCMvK','BM9KztPWyxrO','AM9PBG','CMvHBhbHDgHtEw5J','uKvtt1vsq0vFq1vtve9nx0nptKzmsunu','CMvHzezPBgvtEw5J','CMvIDwLSzeLUzgv4','zgLYzwn0B3jPzxm','zMXHzW','Dg9tDhjPBMC','zxHPC3rZ','ChjLCgfYzvbYB2PLy3q','AxnezwvWu3rYAwn0rxf1ywW','mJqZoda1oerPDhDKrG','mJeZndyWofvJqLDnqG','y29Uy2f0','zxzLCNK','rhjHzNqGzMLSzsbOyxmGyMvLBIbYzw1VDMvK','lI9YzwDPC3rYyxrPB24TCgXHBG','yMXVy2TLCNm','mtG0ntq2oejdyu9Tzq','CMvTzw1Izxi','CMvWBgfJzufSBa','ndmWotqYnu5gA0n3tG','ChjVAMvJDfbHDgG','y29UDgv4De1Pz3jHDgLVBNm','AgfZ','lMfNzw50CW','z2v0','lI9WCM9Qzwn0lxnLDhvW','C3rHCNrZv2L0Aa','zgvWBg95uhjVAMvJDa','C2v0','ywrK','nhrozg5pwa','DhjHBNnHy3rPB25jza','D3jPDgvgAwXLu3LUyW','zgLNzxn0','zNjVBq','AxneAxjLy3rVCNK','ChjLCgfYzq','BwnWu2nVCgu','B3jPz2LUywXZ','CMvWBgfJzq','D29YA3nWywnL','CgfYC2u','zgvSzxrL','ChvZAa','CMvHza','y3jLyxrLsgfZAa','ywXSB2m','zw50CMLLCW','AxngAwXL','BwfUAwzLC3q','CNvUDgLTzuXHDw5JAgvYugf0Aa','uMvNAxn0CMf0Aw9UugXHBG','BM9KztPJCNLWDg8','y29Kzq','mtrqueTire8','zMLSDgvY','uKvtt1vsq0vFuefusf9fu0nbueu','ruvysvnu','CMvNAxn0CMf0Aw9Usg9ZDhm','Aw5KzxHszxf1zxn0zwq','D3jPDgfIBgu','otuXntGYsgfst1fi','CMvZB3vYy2vqBgfU','ChjVAMvJDfnJB3bLvMvYAwzPzwq','rgvWBg95BwvUDerYywz0','y2HHBMDLCW','AxnbyNnVBhv0zq'];_0x5cb3=function(){return _0x3cea30;};return _0x5cb3();}function prepareProject(_0x4e7929){const _0x347122=_0x411eb2,_0x2d3c7b=new DeploymentDraft(_0x4e7929[_0x347122(0x98)]),_0x94d3e7={};_0x94d3e7['mcpConfigTargets']=[];const _0x779f42={..._0x4e7929,'fileSystem':_0x2d3c7b['fs'],'preparation':!![],..._0x4e7929['registrationHosts']?_0x94d3e7:{}},_0x3639d8=require(_0x347122(0x9d))[_0x347122(0x9f)](_0x779f42),_0x480770=path[_0x347122(0xe8)](_0x2d3c7b[_0x347122(0xac)],_0x347122(0x9b),_0x347122(0xd5)),_0x583e1d=_0x2d3c7b[_0x347122(0xc5)]();if(_0x583e1d[_0x347122(0xf6)](_0x1396f4=>_0x1396f4[_0x347122(0xcc)]===_0x347122(0xd3))&&fs['existsSync'](_0x480770)){const _0x116c6c=fs[_0x347122(0xeb)](_0x480770),_0x5e77b9=_0x36a503=>{const {deployedAt:_0x53f23d,previousVersion:_0x99a26,contextMigrations:_0x29023d,..._0x1eb0be}=_0x36a503;return _0x1eb0be;},_0x2e0468=JSON[_0x347122(0xad)](_0x116c6c);require('node:util')[_0x347122(0xf2)](_0x5e77b9(_0x2e0468),_0x5e77b9(_0x3639d8[_0x347122(0xb5)]))&&!_0x3639d8[_0x347122(0xb5)][_0x347122(0x99)][_0x347122(0xd2)]&&(_0x2d3c7b['fs'][_0x347122(0xa4)](_0x480770,_0x116c6c),_0x3639d8['manifest']=_0x2e0468);}const _0x2ba711={};_0x2ba711[_0x347122(0xa3)]=_0x4e7929[_0x347122(0xa3)];const _0xa53746=ResourceTransaction[_0x347122(0xa8)](_0x2d3c7b[_0x347122(0xac)],_0x2d3c7b['changes'](),_0x2ba711);for(const _0x5e88d4 of _0x3639d8['manifest']['pendingUpdates'])_0xa53746['plan'][_0x347122(0xd7)][_0x347122(0xaf)]({'path':_0x5e88d4,'code':_0x347122(0xea),'required':!![]});_0xa53746[_0x347122(0xda)]();const _0x298683={};_0x298683[_0x347122(0xe5)]=_0x347122(0xe6),_0x298683[_0x347122(0xf9)]=[];let _0x76de29,_0x2762e3=_0x298683;try{_0x76de29=_0x4e7929[_0x347122(0xbe)]&&require(_0x347122(0xf8))[_0x347122(0xb7)][_0x347122(0xa8)]({'workspace':_0x2d3c7b[_0x347122(0xac)],'transactionId':_0xa53746[_0x347122(0xe2)]['transactionId'],'launcher':_0x4e7929[_0x347122(0xb6)],'hosts':_0x4e7929[_0x347122(0xbe)],'scope':_0x4e7929[_0x347122(0xa9)]||'auto','projectScopeVerified':_0x4e7929[_0x347122(0xc3)]||{}});}catch(_0x589962){if(!['MCP_MIGRATION_REQUIRED','REGISTRATION_OWNERSHIP_REQUIRED']['includes'](_0x589962[_0x347122(0xb9)]))throw _0x589962;const _0x375e77={};_0x375e77[_0x347122(0xb9)]=_0x589962[_0x347122(0xb9)];const _0x501db8={};_0x501db8[_0x347122(0xe5)]=_0x347122(0xd6),_0x501db8['blockers']=[_0x375e77],_0x2762e3=_0x501db8;}const _0x12285e={};return _0x12285e[_0x347122(0xc2)]=_0xa53746,_0x12285e['registrationPlan']=_0x76de29,_0x12285e[_0x347122(0xd9)]=_0x2762e3,_0x12285e['deployment']=_0x3639d8,_0x12285e[_0x347122(0xbf)]=_0x4e7929[_0x347122(0xec)]===!![],_0x12285e;}const _0x3dadc0={};_0x3dadc0[_0x411eb2(0xc4)]=DeploymentDraft,_0x3dadc0[_0x411eb2(0xf1)]=prepareProject,module['exports']=_0x3dadc0;
|
|
1
|
+
'use strict';const _0x464b4c=_0x3551;function _0x3551(_0x271efa,_0x30e2ae){_0x271efa=_0x271efa-0x168;const _0xe36a29=_0xe36a();let _0x355183=_0xe36a29[_0x271efa];if(_0x3551['rQPPER']===undefined){var _0x5eb151=function(_0x12501c){const _0x486dae='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x15f781='',_0x4d8940='';for(let _0x59c95b=0x0,_0x34ea71,_0x4934b8,_0x4e70a8=0x0;_0x4934b8=_0x12501c['charAt'](_0x4e70a8++);~_0x4934b8&&(_0x34ea71=_0x59c95b%0x4?_0x34ea71*0x40+_0x4934b8:_0x4934b8,_0x59c95b++%0x4)?_0x15f781+=String['fromCharCode'](0xff&_0x34ea71>>(-0x2*_0x59c95b&0x6)):0x0){_0x4934b8=_0x486dae['indexOf'](_0x4934b8);}for(let _0x4df1fc=0x0,_0x21be4c=_0x15f781['length'];_0x4df1fc<_0x21be4c;_0x4df1fc++){_0x4d8940+='%'+('00'+_0x15f781['charCodeAt'](_0x4df1fc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d8940);};_0x3551['jKtrmg']=_0x5eb151,_0x3551['nmVgEe']={},_0x3551['rQPPER']=!![];}const _0xa6f38e=_0xe36a29[0x0],_0xf695f5=_0x271efa+_0xa6f38e,_0x1f5ec9=_0x3551['nmVgEe'][_0xf695f5];return!_0x1f5ec9?(_0x355183=_0x3551['jKtrmg'](_0x355183),_0x3551['nmVgEe'][_0xf695f5]=_0x355183):_0x355183=_0x1f5ec9,_0x355183;}(function(_0x419d94,_0x1cb877){const _0x39796a=_0x3551,_0x4548ce=_0x419d94();while(!![]){try{const _0x2a5eb6=parseInt(_0x39796a(0x176))/0x1*(-parseInt(_0x39796a(0x181))/0x2)+-parseInt(_0x39796a(0x19d))/0x3*(-parseInt(_0x39796a(0x197))/0x4)+-parseInt(_0x39796a(0x16b))/0x5+-parseInt(_0x39796a(0x173))/0x6+parseInt(_0x39796a(0x180))/0x7*(-parseInt(_0x39796a(0x17e))/0x8)+parseInt(_0x39796a(0x188))/0x9+parseInt(_0x39796a(0x16f))/0xa;if(_0x2a5eb6===_0x1cb877)break;else _0x4548ce['push'](_0x4548ce['shift']());}catch(_0x5664d2){_0x4548ce['push'](_0x4548ce['shift']());}}}(_0xe36a,0xd8af6));const fs=require(_0x464b4c(0x169)),path=require('node:path'),crypto=require('node:crypto'),{containsWorkspace,sameWorkspace}=require(_0x464b4c(0x1bf)),{ResourceTransaction}=require(_0x464b4c(0x199)),hash=_0x15b19b=>crypto[_0x464b4c(0x1aa)](_0x464b4c(0x1a2))['update'](_0x15b19b)[_0x464b4c(0x16d)](_0x464b4c(0x17f));class DeploymentDraft{constructor(_0x26d4ee){const _0x48bc3e=_0x464b4c;this[_0x48bc3e(0x1a7)]=fs[_0x48bc3e(0x170)](_0x26d4ee),this[_0x48bc3e(0x19e)]=new Map(),this[_0x48bc3e(0x1b6)]=new Map(),this[_0x48bc3e(0x19b)]=new Set();const _0x27e587={};_0x27e587['isFile']=()=>!![],_0x27e587[_0x48bc3e(0x1b2)]=()=>![];const _0x5b5464={};_0x5b5464[_0x48bc3e(0x1c4)]=()=>![],_0x5b5464['isDirectory']=()=>!![],this['fs']={'existsSync':_0x3a9f0b=>this[_0x48bc3e(0x189)](_0x3a9f0b),'readFileSync':(_0xfc8b5a,_0x1c7431)=>this[_0x48bc3e(0x16a)](_0xfc8b5a,_0x1c7431),'writeFileSync':(_0xcf7e00,_0x294cb2,_0x5ebb8e)=>this[_0x48bc3e(0x195)](_0xcf7e00,_0x294cb2,_0x5ebb8e),'appendFileSync':(_0x42aca1,_0x327ed3)=>this[_0x48bc3e(0x195)](_0x42aca1,Buffer[_0x48bc3e(0x19f)]([this['exists'](_0x42aca1)?this[_0x48bc3e(0x16a)](_0x42aca1):Buffer['alloc'](0x0),Buffer[_0x48bc3e(0x1b4)](_0x327ed3)])),'copyFileSync':(_0x50e3cc,_0x5c2117)=>this[_0x48bc3e(0x195)](_0x5c2117,this[_0x48bc3e(0x16a)](_0x50e3cc)),'renameSync':(_0x4070be,_0x5aca1e)=>{const _0x33fd02=_0x48bc3e;this[_0x33fd02(0x195)](_0x5aca1e,this['read'](_0x4070be)),this[_0x33fd02(0x1bd)](_0x4070be);},'unlinkSync':_0x1db29a=>this['remove'](_0x1db29a),'mkdirSync':_0x4a39d5=>this['directories']['add'](this[_0x48bc3e(0x18c)](_0x4a39d5)),'rmdirSync':_0x1aff02=>this['directories'][_0x48bc3e(0x1a4)](this[_0x48bc3e(0x18c)](_0x1aff02)),'statSync':_0x92e74=>this[_0x48bc3e(0x19e)][_0x48bc3e(0x1b3)](path[_0x48bc3e(0x18f)](_0x92e74))&&this[_0x48bc3e(0x19e)]['get'](path[_0x48bc3e(0x18f)](_0x92e74))!==null?_0x27e587:this[_0x48bc3e(0x19b)][_0x48bc3e(0x1b3)](path[_0x48bc3e(0x18f)](_0x92e74))?_0x5b5464:fs['statSync'](_0x92e74),'readdirSync':_0x4a4ee2=>this[_0x48bc3e(0x172)](_0x4a4ee2),'realpathSync':_0x2eb831=>fs[_0x48bc3e(0x170)](_0x2eb831)};}[_0x464b4c(0x18c)](_0x4ea177){const _0xda28e9=_0x464b4c,_0x59c64a=path[_0xda28e9(0x18f)](_0x4ea177),_0x557ed1=path[_0xda28e9(0x1c3)](this[_0xda28e9(0x1a7)],_0x59c64a);let _0x1bd4b7=_0x59c64a;while(!fs[_0xda28e9(0x1c7)](_0x1bd4b7)&&path[_0xda28e9(0x168)](_0x1bd4b7)!==_0x1bd4b7)_0x1bd4b7=path['dirname'](_0x1bd4b7);const _0x427649={};_0x427649['code']=_0xda28e9(0x17a);if(_0x557ed1==='..'||_0x557ed1[_0xda28e9(0x1ba)]('..'+path['sep'])||path[_0xda28e9(0x177)](_0x557ed1)||!sameWorkspace(_0x1bd4b7,this['workspace'])&&!containsWorkspace(this['workspace'],_0x1bd4b7))throw Object[_0xda28e9(0x19c)](new Error(_0xda28e9(0x194)),_0x427649);return _0x59c64a;}[_0x464b4c(0x189)](_0x4a1298){const _0x44afa6=_0x464b4c;_0x4a1298=path[_0x44afa6(0x18f)](_0x4a1298);if(this[_0x44afa6(0x19e)][_0x44afa6(0x1b3)](_0x4a1298))return this[_0x44afa6(0x19e)][_0x44afa6(0x1b8)](_0x4a1298)!==null;return this['directories'][_0x44afa6(0x1b3)](_0x4a1298)||fs['existsSync'](_0x4a1298);}[_0x464b4c(0x191)](_0x28cabd){const _0x3439ac=_0x464b4c;if(this[_0x3439ac(0x1b6)][_0x3439ac(0x1b3)](_0x28cabd))return;try{this['originals'][_0x3439ac(0x1a9)](_0x28cabd,fs[_0x3439ac(0x190)](_0x28cabd));}catch(_0x20fe8a){if(_0x20fe8a[_0x3439ac(0x1bc)]==='ENOENT')this[_0x3439ac(0x1b6)][_0x3439ac(0x1a9)](_0x28cabd,null);else throw _0x20fe8a;}}[_0x464b4c(0x16a)](_0x2a6941,_0x535eb0){const _0x1b9737=_0x464b4c;_0x2a6941=path[_0x1b9737(0x18f)](_0x2a6941);let _0x198edd;if(this[_0x1b9737(0x19e)][_0x1b9737(0x1b3)](_0x2a6941))_0x198edd=this['files'][_0x1b9737(0x1b8)](_0x2a6941);else{_0x198edd=fs['readFileSync'](_0x2a6941);const _0x226ad8=path[_0x1b9737(0x1c3)](this['workspace'],_0x2a6941);if(_0x226ad8&&_0x226ad8!=='..'&&!_0x226ad8['startsWith']('..'+path[_0x1b9737(0x18e)])&&!path['isAbsolute'](_0x226ad8)&&!this[_0x1b9737(0x1b6)]['has'](_0x2a6941))this[_0x1b9737(0x1b6)][_0x1b9737(0x1a9)](_0x2a6941,Buffer[_0x1b9737(0x1b4)](_0x198edd));}const _0x222fb6={};_0x222fb6[_0x1b9737(0x1bc)]=_0x1b9737(0x1ae);if(_0x198edd===null)throw Object[_0x1b9737(0x19c)](new Error(_0x1b9737(0x1c5)),_0x222fb6);const _0x1e3222=typeof _0x535eb0===_0x1b9737(0x171)?_0x535eb0:_0x535eb0?.[_0x1b9737(0x1b9)];return _0x1e3222?_0x198edd['toString'](_0x1e3222):Buffer[_0x1b9737(0x1b4)](_0x198edd);}[_0x464b4c(0x195)](_0x5521ee,_0x1297a8,_0x130bb7){const _0x3fb209=_0x464b4c;_0x5521ee=this[_0x3fb209(0x18c)](_0x5521ee);const _0x105a80={};_0x105a80[_0x3fb209(0x1bc)]=_0x3fb209(0x1c1);if(_0x130bb7?.['flag']==='wx'&&this[_0x3fb209(0x189)](_0x5521ee))throw Object[_0x3fb209(0x19c)](new Error('Draft\x20file\x20exists'),_0x105a80);this['remember'](_0x5521ee),this[_0x3fb209(0x19e)][_0x3fb209(0x1a9)](_0x5521ee,Buffer[_0x3fb209(0x1b4)](_0x1297a8)),this[_0x3fb209(0x19b)][_0x3fb209(0x175)](path[_0x3fb209(0x168)](_0x5521ee));}['remove'](_0x210b84){const _0x421efa=_0x464b4c;_0x210b84=this[_0x421efa(0x18c)](_0x210b84),this[_0x421efa(0x191)](_0x210b84),this['files']['set'](_0x210b84,null);}['entries'](_0x29b704){const _0x5f386b=_0x464b4c;_0x29b704=path[_0x5f386b(0x18f)](_0x29b704);let _0x1ae89c;try{_0x1ae89c=new Set(fs['readdirSync'](_0x29b704));}catch(_0x2b04a3){if(_0x2b04a3[_0x5f386b(0x1bc)]===_0x5f386b(0x1ae))_0x1ae89c=new Set();else throw _0x2b04a3;}for(const [_0x27f071,_0x181265]of this[_0x5f386b(0x19e)])if(path[_0x5f386b(0x168)](_0x27f071)===_0x29b704){if(_0x181265===null)_0x1ae89c[_0x5f386b(0x1a4)](path['basename'](_0x27f071));else _0x1ae89c['add'](path[_0x5f386b(0x1a0)](_0x27f071));}for(const _0x469849 of this[_0x5f386b(0x19b)])if(path['dirname'](_0x469849)===_0x29b704)_0x1ae89c[_0x5f386b(0x175)](path[_0x5f386b(0x1a0)](_0x469849));return[..._0x1ae89c];}[_0x464b4c(0x17c)](){const _0x2eac0c=_0x464b4c;return[...this[_0x2eac0c(0x19e)]][_0x2eac0c(0x16e)](([_0x1cce2e,_0x16cb20])=>{const _0x5179e0=_0x2eac0c,_0x1be178=this[_0x5179e0(0x1b6)][_0x5179e0(0x1b8)](_0x1cce2e);return _0x16cb20===null?_0x1be178!==null:_0x1be178===null||!_0x16cb20['equals'](_0x1be178);})[_0x2eac0c(0x1be)](([_0x2f0f7c,_0x225bcc])=>({'path':path[_0x2eac0c(0x1c3)](this[_0x2eac0c(0x1a7)],_0x2f0f7c)[_0x2eac0c(0x183)]('\x5c','/'),'type':_0x225bcc===null?_0x2eac0c(0x1a4):_0x2eac0c(0x1c6),'bytes':_0x225bcc,'managedHash':this[_0x2eac0c(0x1b6)][_0x2eac0c(0x1b8)](_0x2f0f7c)===null?null:hash(this[_0x2eac0c(0x1b6)][_0x2eac0c(0x1b8)](_0x2f0f7c))}));}}function prepareProject(_0x427f47){const _0x3d1492=_0x464b4c,_0x272748=new DeploymentDraft(_0x427f47[_0x3d1492(0x1c8)]),_0x3929ad={};_0x3929ad[_0x3d1492(0x1b7)]=[];const _0x493076={..._0x427f47,'fileSystem':_0x272748['fs'],'preparation':!![],..._0x427f47['registrationHosts']?_0x3929ad:{}},_0x1b0aa2=require(_0x3d1492(0x192))[_0x3d1492(0x18d)](_0x493076),_0x40d37e=path[_0x3d1492(0x1a3)](_0x272748[_0x3d1492(0x1a7)],_0x3d1492(0x185),_0x3d1492(0x18b)),_0xd2ae8b=_0x272748[_0x3d1492(0x17c)]();if(_0xd2ae8b[_0x3d1492(0x193)](_0x19b267=>_0x19b267['path']==='.agents/manifest.json')&&fs['existsSync'](_0x40d37e)){const _0x4c92fb=fs[_0x3d1492(0x190)](_0x40d37e),_0xa3a0c1=_0x520e14=>{const {deployedAt:_0x5a6c27,previousVersion:_0xb72767,contextMigrations:_0x3631ee,..._0x2b8e12}=_0x520e14;return _0x2b8e12;},_0x1e311e=JSON[_0x3d1492(0x1c9)](_0x4c92fb);require(_0x3d1492(0x1a5))[_0x3d1492(0x1c2)](_0xa3a0c1(_0x1e311e),_0xa3a0c1(_0x1b0aa2[_0x3d1492(0x1ab)]))&&!_0x1b0aa2[_0x3d1492(0x1ab)][_0x3d1492(0x1b1)][_0x3d1492(0x1bb)]&&(_0x272748['fs'][_0x3d1492(0x19a)](_0x40d37e,_0x4c92fb),_0x1b0aa2[_0x3d1492(0x1ab)]=_0x1e311e);}const _0x129da3={};_0x129da3[_0x3d1492(0x179)]=_0x427f47['transactionId'];const _0x1444f0=ResourceTransaction[_0x3d1492(0x198)](_0x272748[_0x3d1492(0x1a7)],_0x272748[_0x3d1492(0x17c)](),_0x129da3);for(const _0x42b93f of _0x1b0aa2[_0x3d1492(0x1ab)]['pendingUpdates'])_0x1444f0[_0x3d1492(0x1ad)]['conflicts'][_0x3d1492(0x187)]({'path':_0x42b93f,'code':'RESOURCE_CUSTOM_CONFLICT','required':!![]});_0x1444f0[_0x3d1492(0x17d)]();const _0x3bfd43={};_0x3bfd43[_0x3d1492(0x184)]=_0x3d1492(0x178),_0x3bfd43[_0x3d1492(0x174)]=[];let _0x93331b,_0x59fda8=_0x3bfd43;try{_0x93331b=_0x427f47[_0x3d1492(0x16c)]&&require(_0x3d1492(0x1af))['RegistrationPlan']['prepare']({'workspace':_0x272748[_0x3d1492(0x1a7)],'transactionId':_0x1444f0[_0x3d1492(0x1ad)][_0x3d1492(0x179)],'launcher':_0x427f47[_0x3d1492(0x1ac)],'hosts':_0x427f47[_0x3d1492(0x16c)],'scope':_0x427f47[_0x3d1492(0x1b0)]||_0x3d1492(0x182),'projectScopeVerified':_0x427f47[_0x3d1492(0x186)]||{}});}catch(_0x516069){if(![_0x3d1492(0x1a6),_0x3d1492(0x1a1)][_0x3d1492(0x18a)](_0x516069[_0x3d1492(0x1bc)]))throw _0x516069;const _0x4df967={};_0x4df967[_0x3d1492(0x1bc)]=_0x516069[_0x3d1492(0x1bc)];const _0x4524f0={};_0x4524f0[_0x3d1492(0x184)]=_0x3d1492(0x196),_0x4524f0[_0x3d1492(0x174)]=[_0x4df967],_0x59fda8=_0x4524f0;}const _0x37575c={};return _0x37575c[_0x3d1492(0x1c0)]=_0x1444f0,_0x37575c[_0x3d1492(0x1a8)]=_0x93331b,_0x37575c['registrationMigration']=_0x59fda8,_0x37575c['deployment']=_0x1b0aa2,_0x37575c['indexRequested']=_0x427f47[_0x3d1492(0x1b5)]===!![],_0x37575c;}const _0x3adb01={};_0x3adb01['DeploymentDraft']=DeploymentDraft,_0x3adb01[_0x464b4c(0x17b)]=prepareProject,module['exports']=_0x3adb01;function _0xe36a(){const _0x20b668=['zgvWBg95uhjVAMvJDa','C2vW','CMvZB2X2zq','CMvHzezPBgvtEw5J','CMvTzw1Izxi','lI9WCM9Qzwn0lxnLDhvW','zxzLCNK','rgvWBg95BwvUDcbKCMfMDcbWyxrOigvZy2fWzxmGChjVAMvJDa','D3jPDgu','BwLNCMf0Aw9UlxjLCxvPCMvK','nJHAz05wA2K','ChjLCgfYzq','lI4Vy29Yzs9YzxnVDxjJzs10CMfUC2fJDgLVBG','D3jPDgvgAwXLu3LUyW','zgLYzwn0B3jPzxm','yxnZAwDU','mJmYmde3tNLvDK5N','zMLSzxm','y29Uy2f0','yMfZzw5HBwu','uKvhsvnuuKfusu9ox09xtKvsu0Hjuf9srvfvsvjfra','C2HHmJu2','AM9PBG','zgvSzxrL','BM9KztP1DgLS','tunqx01jr1jbveLptL9srvfvsvjfra','D29YA3nWywnL','CMvNAxn0CMf0Aw9UugXHBG','C2v0','y3jLyxrLsgfZAa','BwfUAwzLC3q','CNvUDgLTzuXHDw5JAgvYugf0Aa','CgXHBG','ru5pru5u','lI9YzwDPC3rYyxrPB24TCgXHBG','BwnWu2nVCgu','y29UDgv4De1Pz3jHDgLVBNm','AxneAxjLy3rVCNK','AgfZ','zNjVBq','CMvIDwLSzeLUzgv4','B3jPz2LUywXZ','BwnWq29UzMLNvgfYz2v0CW','z2v0','zw5JB2rPBMC','C3rHCNrZv2L0Aa','BgvUz3rO','y29Kzq','CMvTB3zL','BwfW','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','CMvZB3vYy2vqBgfU','ruvysvnu','AxnezwvWu3rYAwn0rxf1ywW','CMvSyxrPDMu','AxngAwXL','rhjHzNqGzMLSzsbOyxmGyMvLBIbYzw1VDMvK','CMvWBgfJzq','zxHPC3rZu3LUyW','ChjVAMvJDfbHDgG','CgfYC2u','zgLYBMfTzq','BM9KztPMCW','CMvHza','odi2nti4meDWufjWza','CMvNAxn0CMf0Aw9Usg9ZDhm','zgLNzxn0','zMLSDgvY','mtCXmZKWntbns3L2qNq','CMvHBhbHDgHtEw5J','C3rYAw5N','zw50CMLLCW','mtC0nZjtrMDdsLC','yMXVy2TLCNm','ywrK','otDQzgneB1q','AxnbyNnVBhv0zq','BM90lxjLCxvPCMvK','DhjHBNnHy3rPB25jza','uKvtt1vsq0vFuefusf9fu0nbueu','ChjLCgfYzvbYB2PLy3q','y2HHBMDLCW','C2f2zq','mtq0mde2A1DLA3jL','Agv4','ndeZyvLuvfzt','mJy3nLnLuxvIyG','yxv0BW','CMvWBgfJzufSBa','C3rHDhvZ','lMfNzw50CW','ChjVAMvJDfnJB3bLvMvYAwzPzwq','ChvZAa','nJm2mdCXneTjsK1muW','zxHPC3rZ','Aw5JBhvKzxm','BwfUAwzLC3qUANnVBG','D3jPDgfIBgu'];_0xe36a=function(){return _0x20b668;};return _0xe36a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x5657(){const _0x375e5b=['BM9Uy2vZ','ChvZAa','mJq5ote4swH5CvbP','yxjNDw1LBNrZ','BMf0AxzLvg9VBe5HBwu','DhLWzq','D29YA3nWywnL','mtKYodiWmNjetNPXtG','D29YA3nWywnLswq','C2vJCMv0rMLSzq','lMTLEq','C2v0vgLTzw91Da','BM9KztPUzxq','z2f0zxDHEq','DgHLBG','Ag9VAY1IAw5K','yMLUza','ChjLCgfYzuHVB2TcAw5KAw5N','y29UBMvJDa','zxjYB3i','DgvZDa','CMvZB2X2zq','BM9Uy2u','yxnZAwDU','tKfusvzfx0nptLrfwfrFvu5bvKfjtefcteu','Bhn0yxrtEw5J','CMvHzezPBgvtEw5J','DMvYAwzPzwqTBMf0AxzLlwHVB2S','Ag9ZDa','y29Kzq','zMLSDgvY','Ag9TzwrPCG','ru5pru5u','C3rHDhvZ','zgf0yq','BgvUz3rO','zMXHzW','ndC2mdm5mMnLDKP4yG','DMvYAwz5','nZa5ndiXngXMsu9ywG','Dw5SAw5Ru3LUyW','lI4Vy29Yzs9PCgmTzw52zwXVCgu','BMf0AxzLq2fSBgvY','DMvYAwz5u2vSzwn0Aw9U','mJyYzg5lCu9P','CgLK','y29UBMvJDgLVBKLK','BgLZDgvU','CMvNAxn0CNK','mtG0mJHPvgLhq00','CMvNAxn0CMf0Aw9UlxjLy2vPChrZ','CgXHDgzVCM0','AM9PBG','CMvNAxn0CMf0Aw9U','mJG4nMrQyu5Oqq','CgfYC2u','z2f0zxDHExm','yxb0lxj1BNrPBwu','r0furvDbwv9dt05urvHux0LovKfmsuq','AxntEw1IB2XPy0XPBMS','Aw5KzxHpzG','ntu0mtuZnMzvuNvdtG','BM9KztPWyxrO','Dg9VBa','yNL0zuXLBMD0Aa','yMLUzgLUz1rVA2vU','DMfSAwrHDgvjzgvUDgL0Eq','lI4Vy29Yzs9JBgf1zguTAw52B2nHDgLVBG','zw5KCg9PBNq','DMvYAwz5sw52B2nHDgLVBG','BwnWx2fWDc1Ty3aTywDLBNrFC2vZC2LVBL9IB290C3rYyxa','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','C2vZC2LVBL9IB290C3rYyxa','r0furvDbwv9dt05urvHux1vou1vque9sveve','DMvYAwz5q2XHDwrLsw52B2nHDgLVBG','BwTKAxjtEw5J','C3rYAw5N','BwnWx19HChqTBwnWlwfNzw50x19ZzxnZAw9Ux2jVB3rZDhjHCa','zMfPBgvK','C2vZC2LVBKLK','Bw9Kzq','BM9KztPMCW','B25Jzq','r0furvDbwv9dt05urvHux1rjtuvpvvq','y2XVC2u','tKfusvzfx0jjtKrjtKDFuevoreLorW','CMvJzwLWDezPBgu','BMf0AxzLq2HPBgq','y2f0y2G','zxHWB3j0CW','CM9VDa','yM91BMq','BM9KztPVCW','C2vJCMv0','y2XHDwrL','C2XPy2u','CMfUzg9TqNL0zxm','BwfJ','C2vYDMvY','ntGWz1bTD0Lb','D3jPDgvgAwXLu3LUyW','C3rYAw5NAwz5','CMfUzg9Tvvvjra','D29YA3nWywnLugf0Aa','lI4VChjVEhKVD29YA3nWywnLlwDHDgv3yxK','lNnVy2S','Dg1WzgLY','lMPZB24','zgvZDhjVEq','lMfUAgrO'];_0x5657=function(){return _0x375e5b;};return _0x5657();}const _0x5db59d=_0x4cdb;(function(_0x334b6b,_0x348de9){const _0x24aceb=_0x4cdb,_0x80c6ec=_0x334b6b();while(!![]){try{const _0x11dde8=parseInt(_0x24aceb(0x142))/0x1*(parseInt(_0x24aceb(0x14c))/0x2)+-parseInt(_0x24aceb(0x118))/0x3+-parseInt(_0x24aceb(0x147))/0x4*(-parseInt(_0x24aceb(0x10b))/0x5)+parseInt(_0x24aceb(0x11d))/0x6+parseInt(_0x24aceb(0x13b))/0x7+-parseInt(_0x24aceb(0x153))/0x8+-parseInt(_0x24aceb(0x13d))/0x9;if(_0x11dde8===_0x348de9)break;else _0x80c6ec['push'](_0x80c6ec['shift']());}catch(_0x5af2f7){_0x80c6ec['push'](_0x80c6ec['shift']());}}}(_0x5657,0x555d9));const fs=require(_0x5db59d(0xf9)),path=require(_0x5db59d(0x154)),os=require(_0x5db59d(0x104)),net=require(_0x5db59d(0x122)),crypto=require('node:crypto'),{signEnvelope,verifyEnvelope}=require(_0x5db59d(0x13f)),fail=_0x3c4763=>{const _0x4a6939=_0x5db59d;throw Object[_0x4a6939(0x12d)](new Error(_0x3c4763),{'code':_0x3c4763});},rootFor=()=>path[_0x5db59d(0x14a)](process.env.APT_REGISTRATION_RECEIPT_ROOT||path['join'](os[_0x5db59d(0x135)](),_0x5db59d(0x115),_0x5db59d(0x14f),_0x5db59d(0x148)),_0x5db59d(0x14e));function _0x4cdb(_0x4f1eb2,_0x15d320){_0x4f1eb2=_0x4f1eb2-0xf7;const _0x5657cf=_0x5657();let _0x4cdbac=_0x5657cf[_0x4f1eb2];if(_0x4cdb['WzGjXC']===undefined){var _0x29032b=function(_0x3283e5){const _0x93376f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x432f9a='',_0xb75f80='';for(let _0x5db8ca=0x0,_0x53e15d,_0x88f58c,_0x1fc407=0x0;_0x88f58c=_0x3283e5['charAt'](_0x1fc407++);~_0x88f58c&&(_0x53e15d=_0x5db8ca%0x4?_0x53e15d*0x40+_0x88f58c:_0x88f58c,_0x5db8ca++%0x4)?_0x432f9a+=String['fromCharCode'](0xff&_0x53e15d>>(-0x2*_0x5db8ca&0x6)):0x0){_0x88f58c=_0x93376f['indexOf'](_0x88f58c);}for(let _0x3bed4d=0x0,_0x3bd4e8=_0x432f9a['length'];_0x3bed4d<_0x3bd4e8;_0x3bed4d++){_0xb75f80+='%'+('00'+_0x432f9a['charCodeAt'](_0x3bed4d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb75f80);};_0x4cdb['jrlcoe']=_0x29032b,_0x4cdb['QhTxTu']={},_0x4cdb['WzGjXC']=!![];}const _0x5b4f43=_0x5657cf[0x0],_0x11ac72=_0x4f1eb2+_0x5b4f43,_0x2a61c9=_0x4cdb['QhTxTu'][_0x11ac72];return!_0x2a61c9?(_0x4cdbac=_0x4cdb['jrlcoe'](_0x4cdbac),_0x4cdb['QhTxTu'][_0x11ac72]=_0x4cdbac):_0x4cdbac=_0x2a61c9,_0x4cdbac;}class GatewayContext{constructor(_0x4417e8,_0x624c92={}){const _0x1bb0a1=_0x5db59d;this[_0x1bb0a1(0x123)]=_0x4417e8,this['root']=_0x624c92['root']||rootFor(),this[_0x1bb0a1(0x13c)]=_0x624c92[_0x1bb0a1(0x15b)]||require(_0x1bb0a1(0x159))[_0x1bb0a1(0x160)],this[_0x1bb0a1(0x105)]=crypto[_0x1bb0a1(0x108)](0x20),this[_0x1bb0a1(0x116)]=new Set(),this[_0x1bb0a1(0x15a)]=process[_0x1bb0a1(0x149)]==='win32'?'\x5c\x5c.\x5cpipe\x5capt-gateway-'+_0x4417e8[_0x1bb0a1(0x144)]:path[_0x1bb0a1(0x14a)](os[_0x1bb0a1(0x112)](),'apt-gateway-'+_0x4417e8[_0x1bb0a1(0x144)]+_0x1bb0a1(0x111)),this[_0x1bb0a1(0xfe)]=path[_0x1bb0a1(0x14a)](this[_0x1bb0a1(0x102)],_0x4417e8[_0x1bb0a1(0x144)]+_0x1bb0a1(0x113)),this[_0x1bb0a1(0x11f)]=path[_0x1bb0a1(0x14a)](this[_0x1bb0a1(0x102)],_0x4417e8['connectionId']+'.key');}async[_0x5db59d(0x126)](_0x1a0ac4){const _0x32fb0b=_0x5db59d;if(this[_0x32fb0b(0x123)][_0x32fb0b(0x132)]!==_0x32fb0b(0x106))fail(_0x32fb0b(0x12e));const _0x1876b3=_0x1a0ac4[_0x32fb0b(0x140)];if(!_0x1876b3||_0x1876b3[_0x32fb0b(0xff)]||_0x1876b3[_0x32fb0b(0x155)]!==_0x32fb0b(0x15e)||![_0x32fb0b(0x163),_0x32fb0b(0x15c)]['includes'](_0x1876b3[_0x32fb0b(0x11a)]))fail(_0x32fb0b(0x15f));const _0x4c9ce2={};_0x4c9ce2[_0x32fb0b(0x10f)]=_0x1a0ac4['workspace'];const _0x32a207=this['gateway'][_0x32fb0b(0x146)][_0x32fb0b(0x12b)](_0x4c9ce2,{'host':this['gateway'][_0x32fb0b(0x132)]});this[_0x32fb0b(0x123)][_0x32fb0b(0x141)](_0x1876b3[_0x32fb0b(0x119)]?.[_0x32fb0b(0x157)],_0x32a207[_0x32fb0b(0x11e)]);const _0x1654dd={..._0x1876b3};_0x1654dd['workspace']=_0x32a207['workspace'];const _0x4d4273=await this[_0x32fb0b(0x13c)](_0x1654dd);if(_0x4d4273[_0x32fb0b(0x137)]!=='verified')fail(_0x4d4273[_0x32fb0b(0x133)]||'NATIVE_BINDING_PENDING');const _0x4955e5=_0x1876b3[_0x32fb0b(0x119)]||{};require(_0x32fb0b(0x110))[_0x32fb0b(0x158)](_0x4955e5);if(_0x4955e5[_0x32fb0b(0x11e)]||_0x4955e5[_0x32fb0b(0x10f)]){const _0x3f9a29=this[_0x32fb0b(0x123)]['registry']['resolve'](_0x4955e5,{'host':this[_0x32fb0b(0x123)][_0x32fb0b(0x132)]});if(_0x3f9a29[_0x32fb0b(0x11e)]!==_0x32a207[_0x32fb0b(0x11e)])fail(_0x32fb0b(0x15d));}const _0x4640fd={..._0x4955e5};_0x4640fd[_0x32fb0b(0x11e)]=_0x32a207[_0x32fb0b(0x11e)];const _0x3ddb30=await this['gateway'][_0x32fb0b(0x126)](_0x4640fd),_0x584da8={};return _0x584da8['status']=_0x32fb0b(0x103),_0x584da8['workspace']=_0x3ddb30[_0x32fb0b(0x11c)],_0x584da8['sessionId']=_0x3ddb30[_0x32fb0b(0xf7)],_0x584da8[_0x32fb0b(0x11e)]=_0x3ddb30[_0x32fb0b(0x11e)],_0x584da8[_0x32fb0b(0x14b)]=_0x3ddb30[_0x32fb0b(0x14b)],_0x584da8['evidence']=_0x32fb0b(0x131),_0x584da8;}async['start'](){const _0x3ddab6=_0x5db59d,_0x234477={};_0x234477['recursive']=!![],fs[_0x3ddab6(0x161)](this[_0x3ddab6(0x102)],_0x234477);const _0x2b5d8f={};_0x2b5d8f[_0x3ddab6(0x13a)]='wx',_0x2b5d8f[_0x3ddab6(0xf8)]=0x180,fs[_0x3ddab6(0x10c)](this['secretFile'],this['secret'],_0x2b5d8f),this[_0x3ddab6(0x10a)]=net['createServer'](_0x5b6186=>{const _0x2424d2=_0x3ddab6;let _0x2d2eb3='',_0x304818=![];_0x5b6186[_0x2424d2(0x121)](0x2710,()=>_0x5b6186[_0x2424d2(0x114)]()),_0x5b6186['on']('error',()=>{}),_0x5b6186['on']('data',_0x262c49=>{const _0x433d5f=_0x2424d2;if(_0x304818)return _0x5b6186[_0x433d5f(0x114)]();_0x2d2eb3+=_0x262c49;if(Buffer[_0x433d5f(0x156)](_0x2d2eb3)>0x2*0x400*0x400)return _0x5b6186[_0x433d5f(0x114)]();const _0x6ee349=_0x2d2eb3[_0x433d5f(0x152)]('\x0a');if(_0x6ee349<0x0)return;_0x304818=!![];let _0x9a8b45;try{_0x9a8b45=JSON[_0x433d5f(0x14d)](_0x2d2eb3[_0x433d5f(0x107)](0x0,_0x6ee349));}catch{return _0x5b6186[_0x433d5f(0x114)]();}if(_0x9a8b45[_0x433d5f(0x11b)]!==_0x433d5f(0x125)||!verifyEnvelope(this['secret'],_0x9a8b45,this['nonces'],this[_0x433d5f(0x123)][_0x433d5f(0x144)]))return _0x5b6186[_0x433d5f(0x114)]();const _0x1ade82=_0x5437da=>{const _0x1afdad=_0x433d5f,_0x3c2172={'protocol':0x2,'connectionId':this['gateway'][_0x1afdad(0x144)],'nonce':_0x9a8b45['nonce'],..._0x5437da},_0x2895ec=_0x3c2172;_0x2895ec[_0x1afdad(0x109)]=signEnvelope(this[_0x1afdad(0x105)],_0x2895ec),_0x5b6186['end'](JSON['stringify'](_0x2895ec)+'\x0a');};void this[_0x433d5f(0x126)](_0x9a8b45)[_0x433d5f(0x124)](_0x1ade82)[_0x433d5f(0x100)](_0x2c2e1f=>_0x1ade82({'status':_0x433d5f(0x164),'code':_0x2c2e1f[_0x433d5f(0x133)]||_0x433d5f(0xfd)}));});}),await new Promise((_0x551f60,_0x1cc8a3)=>{const _0x4271a3=_0x3ddab6;this['server'][_0x4271a3(0xfa)](_0x4271a3(0x129),_0x1cc8a3),this[_0x4271a3(0x10a)][_0x4271a3(0x145)](this['endpoint'],_0x551f60);});const _0x27bd48={};return _0x27bd48[_0x3ddab6(0xf8)]=0x180,fs[_0x3ddab6(0x10c)](this[_0x3ddab6(0xfe)],JSON['stringify']({'version':0x1,'connectionId':this[_0x3ddab6(0x123)][_0x3ddab6(0x144)],'endpoint':this[_0x3ddab6(0x15a)],'host':this[_0x3ddab6(0x123)][_0x3ddab6(0x132)],'pid':process[_0x3ddab6(0x143)]}),_0x27bd48),this;}async[_0x5db59d(0xfc)](){const _0x3451f5=_0x5db59d;if(this[_0x3451f5(0x10a)]?.['listening'])await new Promise(_0x3879b6=>this[_0x3451f5(0x10a)][_0x3451f5(0xfc)](_0x3879b6));for(const _0x221c7b of[this[_0x3451f5(0xfe)],this[_0x3451f5(0x11f)]])try{fs[_0x3451f5(0x13e)](_0x221c7b);}catch(_0x36f77a){if(_0x36f77a[_0x3451f5(0x133)]!=='ENOENT')throw _0x36f77a;}}}async function prepareHookBinding(_0x5521a0,_0x5bedcf,_0x2f57a0={}){const _0x152f3e=_0x5db59d,_0x42dfc9=_0x2f57a0['root']||rootFor();let _0xddf879;try{_0xddf879=fs['readdirSync'](_0x42dfc9)[_0x152f3e(0x134)](_0x284ce6=>/^[a-f0-9-]{36}\.json$/[_0x152f3e(0x12a)](_0x284ce6));}catch(_0x5843c9){if(_0x5843c9[_0x152f3e(0x133)]===_0x152f3e(0x136))return[];throw _0x5843c9;}const _0x58af36=_0x5bedcf[_0x152f3e(0x119)]?.[_0x152f3e(0x157)],_0x30b68c=typeof _0x58af36===_0x152f3e(0x162)&&/^([a-f0-9-]{36})\.[A-Za-z0-9_-]{43}$/['exec'](_0x58af36)?.[0x1],_0x8f0b03={};_0x8f0b03[_0x152f3e(0x137)]=_0x152f3e(0x164),_0x8f0b03['code']='GATEWAY_SELECTION_REQUIRED';if(!_0x30b68c)return[_0x8f0b03];const _0x2313df=[];for(const _0x21f4d7 of _0xddf879){const _0x25dd2a=_0x21f4d7[_0x152f3e(0x107)](0x0,-0x5);if(_0x25dd2a!==_0x30b68c)continue;const _0xc33f85=path[_0x152f3e(0x14a)](_0x42dfc9,_0x21f4d7),_0x2bc030=path['join'](_0x42dfc9,_0x25dd2a+_0x152f3e(0x120));let _0x28480b,_0x58d878;try{if(fs[_0x152f3e(0x12f)](_0xc33f85)[_0x152f3e(0x151)]()||fs[_0x152f3e(0x12f)](_0x2bc030)[_0x152f3e(0x151)]())continue;_0x28480b=JSON[_0x152f3e(0x14d)](fs[_0x152f3e(0x130)](_0xc33f85)),_0x58d878=fs[_0x152f3e(0x130)](_0x2bc030);if(_0x28480b['version']!==0x1||_0x28480b[_0x152f3e(0x144)]!==_0x25dd2a||_0x28480b[_0x152f3e(0x132)]!==_0x152f3e(0x106)||_0x58d878[_0x152f3e(0x139)]!==0x20)continue;}catch{continue;}const _0x289e2a={'protocol':0x2,'type':_0x152f3e(0x125),'connectionId':_0x25dd2a,'nonce':crypto[_0x152f3e(0x10e)](),'workspace':_0x5521a0,'nativeCaller':_0x5bedcf};_0x289e2a['mac']=signEnvelope(_0x58d878,_0x289e2a),_0x2313df[_0x152f3e(0x117)](await new Promise(_0x4548c5=>{const _0x560dac=_0x152f3e,_0x203ea3=net[_0x560dac(0x128)](_0x28480b[_0x560dac(0x15a)]);let _0x55acc6='';const _0x17dcd9=_0x44d4f6=>{_0x203ea3['destroy'](),_0x4548c5(_0x44d4f6);},_0xc38362={};_0xc38362[_0x560dac(0x137)]=_0x560dac(0x164),_0xc38362[_0x560dac(0x133)]=_0x560dac(0xfb),_0x203ea3[_0x560dac(0x121)](0x2710,()=>_0x17dcd9(_0xc38362));const _0x25cdcb={};_0x25cdcb['status']='unavailable',_0x203ea3['on'](_0x560dac(0x129),()=>_0x17dcd9(_0x25cdcb)),_0x203ea3['on'](_0x560dac(0x128),()=>_0x203ea3['write'](JSON[_0x560dac(0x10d)](_0x289e2a)+'\x0a')),_0x203ea3['on'](_0x560dac(0x138),_0x482879=>{const _0x4b4afe=_0x560dac;_0x55acc6+=_0x482879;const _0xe31189={};_0xe31189[_0x4b4afe(0x137)]=_0x4b4afe(0x164),_0xe31189[_0x4b4afe(0x133)]=_0x4b4afe(0x150);if(_0x55acc6[_0x4b4afe(0x139)]>0x2000)return _0x17dcd9(_0xe31189);const _0xaf0822=_0x55acc6[_0x4b4afe(0x152)]('\x0a');if(_0xaf0822<0x0)return;let _0x197299;try{_0x197299=JSON['parse'](_0x55acc6[_0x4b4afe(0x107)](0x0,_0xaf0822));}catch{const _0x1bc605={};return _0x1bc605['status']=_0x4b4afe(0x164),_0x17dcd9(_0x1bc605);}const _0x56e4b5={};_0x56e4b5[_0x4b4afe(0x137)]='failed',_0x56e4b5[_0x4b4afe(0x133)]='GATEWAY_CONTEXT_INVALID';if(!verifyEnvelope(_0x58d878,_0x197299,new Set(),_0x25dd2a)||_0x197299[_0x4b4afe(0x12c)]!==_0x289e2a[_0x4b4afe(0x12c)])return _0x17dcd9(_0x56e4b5);_0x17dcd9(_0x197299);});}));}return _0x2313df;}const _0x42d431={};_0x42d431['GatewayContext']=GatewayContext,_0x42d431[_0x5db59d(0x127)]=prepareHookBinding,module[_0x5db59d(0x101)]=_0x42d431;
|
|
1
|
+
'use strict';const _0x209c8a=_0x2c45;(function(_0xced9b1,_0x2690b4){const _0x110571=_0x2c45,_0x26295a=_0xced9b1();while(!![]){try{const _0x353007=-parseInt(_0x110571(0x196))/0x1*(parseInt(_0x110571(0x173))/0x2)+parseInt(_0x110571(0x185))/0x3+-parseInt(_0x110571(0x1a7))/0x4*(parseInt(_0x110571(0x157))/0x5)+-parseInt(_0x110571(0x17c))/0x6*(-parseInt(_0x110571(0x16c))/0x7)+parseInt(_0x110571(0x18d))/0x8+-parseInt(_0x110571(0x1ab))/0x9*(-parseInt(_0x110571(0x19f))/0xa)+-parseInt(_0x110571(0x19e))/0xb;if(_0x353007===_0x2690b4)break;else _0x26295a['push'](_0x26295a['shift']());}catch(_0x332d59){_0x26295a['push'](_0x26295a['shift']());}}}(_0x4276,0x26693));const fs=require(_0x209c8a(0x14e)),path=require(_0x209c8a(0x1a2)),os=require(_0x209c8a(0x1a8)),net=require('node:net'),crypto=require(_0x209c8a(0x14c)),{signEnvelope,verifyEnvelope}=require(_0x209c8a(0x194)),fail=_0x1280b1=>{const _0x354351=_0x209c8a;throw Object[_0x354351(0x155)](new Error(_0x1280b1),{'code':_0x1280b1});},rootFor=()=>path['join'](process.env.APT_REGISTRATION_RECEIPT_ROOT||path[_0x209c8a(0x177)](os[_0x209c8a(0x17d)](),_0x209c8a(0x14f),_0x209c8a(0x15e),_0x209c8a(0x188)),_0x209c8a(0x158));class GatewayContext{constructor(_0x17c8d2,_0x57148d={}){const _0x1da62a=_0x209c8a;this[_0x1da62a(0x19c)]=_0x17c8d2,this[_0x1da62a(0x174)]=_0x57148d[_0x1da62a(0x174)]||rootFor(),this[_0x1da62a(0x1a1)]=_0x57148d[_0x1da62a(0x180)]||require(_0x1da62a(0x195))[_0x1da62a(0x191)],this['secret']=crypto[_0x1da62a(0x168)](0x20),this[_0x1da62a(0x156)]=new Set(),this[_0x1da62a(0x1a6)]=process['platform']==='win32'?'\x5c\x5c.\x5cpipe\x5capt-gateway-'+_0x17c8d2[_0x1da62a(0x14d)]:path[_0x1da62a(0x177)](os[_0x1da62a(0x14a)](),_0x1da62a(0x166)+_0x17c8d2[_0x1da62a(0x14d)]+'.sock'),this[_0x1da62a(0x181)]=path[_0x1da62a(0x177)](this[_0x1da62a(0x174)],_0x17c8d2['connectionId']+'.json'),this[_0x1da62a(0x186)]=path[_0x1da62a(0x177)](this['root'],_0x17c8d2[_0x1da62a(0x14d)]+_0x1da62a(0x144));}async[_0x209c8a(0x147)](_0x2254cd){const _0xd22bf1=_0x209c8a;if(this[_0xd22bf1(0x19c)][_0xd22bf1(0x1aa)]!==_0xd22bf1(0x190))fail(_0xd22bf1(0x179));const _0x20bcea=_0x2254cd[_0xd22bf1(0x178)];if(!_0x20bcea||_0x20bcea[_0xd22bf1(0x1a5)]||_0x20bcea['tool']!=='session_bootstrap'||!['mcp__apt-mcp-agent__session_bootstrap','mcp_apt-mcp-agent_session_bootstrap']['includes'](_0x20bcea[_0xd22bf1(0x143)]))fail('GATEWAY_CONTEXT_UNSUPPORTED');const _0x44a9fe={};_0x44a9fe[_0xd22bf1(0x146)]=_0x2254cd[_0xd22bf1(0x189)];const _0x52b16a=this[_0xd22bf1(0x19c)][_0xd22bf1(0x153)][_0xd22bf1(0x17e)](_0x44a9fe,{'host':this[_0xd22bf1(0x19c)][_0xd22bf1(0x1aa)]});this['gateway'][_0xd22bf1(0x149)](_0x20bcea['arguments']?.['bindingToken'],_0x52b16a[_0xd22bf1(0x151)]);const _0x4d453a={..._0x20bcea};_0x4d453a['workspace']=_0x52b16a[_0xd22bf1(0x189)];const _0x2d48f1=await this['verify'](_0x4d453a);if(_0x2d48f1[_0xd22bf1(0x150)]!==_0xd22bf1(0x18a))fail(_0x2d48f1[_0xd22bf1(0x198)]||_0xd22bf1(0x16e));const _0x169363=_0x20bcea[_0xd22bf1(0x182)]||{};require(_0xd22bf1(0x1a4))[_0xd22bf1(0x184)](_0x169363);if(_0x169363[_0xd22bf1(0x151)]||_0x169363[_0xd22bf1(0x146)]){const _0x5b90e6=this[_0xd22bf1(0x19c)][_0xd22bf1(0x153)]['resolve'](_0x169363,{'host':this['gateway'][_0xd22bf1(0x1aa)]});if(_0x5b90e6['workspaceId']!==_0x52b16a['workspaceId'])fail(_0xd22bf1(0x17b));}const _0x55363c={..._0x169363};_0x55363c[_0xd22bf1(0x151)]=_0x52b16a['workspaceId'];const _0x1594ef=await this['gateway'][_0xd22bf1(0x147)](_0x55363c),_0x3924c3={};return _0x3924c3[_0xd22bf1(0x150)]='bound',_0x3924c3[_0xd22bf1(0x189)]=_0x1594ef['workspace'],_0x3924c3[_0xd22bf1(0x17f)]=_0x1594ef[_0xd22bf1(0x17f)],_0x3924c3[_0xd22bf1(0x151)]=_0x1594ef['workspaceId'],_0x3924c3[_0xd22bf1(0x16a)]=_0x1594ef[_0xd22bf1(0x16a)],_0x3924c3['evidence']=_0xd22bf1(0x145),_0x3924c3;}async[_0x209c8a(0x164)](){const _0x270af4=_0x209c8a,_0x16812a={};_0x16812a[_0x270af4(0x18c)]=!![],fs[_0x270af4(0x19d)](this[_0x270af4(0x174)],_0x16812a);const _0x112ebd={};_0x112ebd[_0x270af4(0x16f)]='wx',_0x112ebd[_0x270af4(0x19b)]=0x180,fs[_0x270af4(0x192)](this[_0x270af4(0x186)],this[_0x270af4(0x18b)],_0x112ebd),this[_0x270af4(0x165)]=net['createServer'](_0x279606=>{const _0x1e7934=_0x270af4;let _0x36e1e8='',_0x33c03d=![];_0x279606['setTimeout'](0x2710,()=>_0x279606[_0x1e7934(0x1a0)]()),_0x279606['on']('error',()=>{}),_0x279606['on']('data',_0x5b202d=>{const _0x18a30b=_0x1e7934;if(_0x33c03d)return _0x279606['destroy']();_0x36e1e8+=_0x5b202d;if(Buffer[_0x18a30b(0x187)](_0x36e1e8)>0x2*0x400*0x400)return _0x279606[_0x18a30b(0x1a0)]();const _0xcfdf38=_0x36e1e8[_0x18a30b(0x19a)]('\x0a');if(_0xcfdf38<0x0)return;_0x33c03d=!![];let _0x4e8f96;try{_0x4e8f96=JSON[_0x18a30b(0x14b)](_0x36e1e8['slice'](0x0,_0xcfdf38));}catch{return _0x279606['destroy']();}if(_0x4e8f96[_0x18a30b(0x161)]!==_0x18a30b(0x18f)||!verifyEnvelope(this[_0x18a30b(0x18b)],_0x4e8f96,this[_0x18a30b(0x156)],this['gateway'][_0x18a30b(0x14d)]))return _0x279606[_0x18a30b(0x1a0)]();const _0x4265fd=_0x57d41f=>{const _0x36c678=_0x18a30b,_0x184104={'protocol':0x2,'connectionId':this['gateway'][_0x36c678(0x14d)],'nonce':_0x4e8f96['nonce'],..._0x57d41f},_0x33f1d5=_0x184104;_0x33f1d5[_0x36c678(0x15a)]=signEnvelope(this[_0x36c678(0x18b)],_0x33f1d5),_0x279606['end'](JSON['stringify'](_0x33f1d5)+'\x0a');};void this[_0x18a30b(0x147)](_0x4e8f96)[_0x18a30b(0x172)](_0x4265fd)[_0x18a30b(0x18e)](_0x3a5450=>_0x4265fd({'status':_0x18a30b(0x159),'code':_0x3a5450[_0x18a30b(0x198)]||_0x18a30b(0x16e)}));});}),await new Promise((_0x12edc9,_0x51b61a)=>{const _0x9e81bd=_0x270af4;this[_0x9e81bd(0x165)]['once']('error',_0x51b61a),this['server']['listen'](this[_0x9e81bd(0x1a6)],_0x12edc9);});const _0x33f81b={};return _0x33f81b[_0x270af4(0x19b)]=0x180,fs['writeFileSync'](this[_0x270af4(0x181)],JSON['stringify']({'version':0x1,'connectionId':this[_0x270af4(0x19c)][_0x270af4(0x14d)],'endpoint':this['endpoint'],'host':this[_0x270af4(0x19c)][_0x270af4(0x1aa)],'pid':process['pid']}),_0x33f81b),this;}async[_0x209c8a(0x170)](){const _0x3e7efb=_0x209c8a;if(this[_0x3e7efb(0x165)]?.['listening'])await new Promise(_0x46c951=>this[_0x3e7efb(0x165)][_0x3e7efb(0x170)](_0x46c951));for(const _0x3df77d of[this[_0x3e7efb(0x181)],this['secretFile']])try{fs['unlinkSync'](_0x3df77d);}catch(_0x352375){if(_0x352375[_0x3e7efb(0x198)]!=='ENOENT')throw _0x352375;}}}async function prepareHookBinding(_0x4ad610,_0x7830d1,_0x6bce08={}){const _0x243a93=_0x209c8a,_0x5b4848=_0x6bce08[_0x243a93(0x174)]||rootFor();let _0x44e4e2;try{_0x44e4e2=fs['readdirSync'](_0x5b4848)[_0x243a93(0x17a)](_0x4b0d0d=>/^[a-f0-9-]{36}\.json$/[_0x243a93(0x1a3)](_0x4b0d0d));}catch(_0x293ad3){if(_0x293ad3[_0x243a93(0x198)]===_0x243a93(0x183))return[];throw _0x293ad3;}const _0xba4999=_0x7830d1[_0x243a93(0x182)]?.[_0x243a93(0x197)],_0x3d446f=typeof _0xba4999===_0x243a93(0x154)&&/^([a-f0-9-]{36})\.[A-Za-z0-9_-]{43}$/['exec'](_0xba4999)?.[0x1],_0xa41b94={};_0xa41b94['status']=_0x243a93(0x159),_0xa41b94[_0x243a93(0x198)]=_0x243a93(0x171);if(!_0x3d446f)return[_0xa41b94];const _0x4dce21=[];for(const _0x3d2e6f of _0x44e4e2){const _0x3f1911=_0x3d2e6f[_0x243a93(0x176)](0x0,-0x5);if(_0x3f1911!==_0x3d446f)continue;const _0x29c977=path[_0x243a93(0x177)](_0x5b4848,_0x3d2e6f),_0x3fb7b6=path[_0x243a93(0x177)](_0x5b4848,_0x3f1911+_0x243a93(0x144));let _0x47b1d7,_0x56acb2;try{if(fs[_0x243a93(0x163)](_0x29c977)[_0x243a93(0x16d)]()||fs['lstatSync'](_0x3fb7b6)[_0x243a93(0x16d)]())continue;_0x47b1d7=JSON[_0x243a93(0x14b)](fs[_0x243a93(0x1a9)](_0x29c977)),_0x56acb2=fs[_0x243a93(0x1a9)](_0x3fb7b6);if(_0x47b1d7['version']!==0x1||_0x47b1d7[_0x243a93(0x14d)]!==_0x3f1911||_0x47b1d7[_0x243a93(0x1aa)]!=='claude'||_0x56acb2[_0x243a93(0x15f)]!==0x20)continue;}catch{continue;}const _0x4e7111={'protocol':0x2,'type':'hook-bind','connectionId':_0x3f1911,'nonce':crypto[_0x243a93(0x16b)](),'workspace':_0x4ad610,'nativeCaller':_0x7830d1};_0x4e7111['mac']=signEnvelope(_0x56acb2,_0x4e7111),_0x4dce21[_0x243a93(0x15d)](await new Promise(_0x4561f8=>{const _0x36bcda=_0x243a93,_0x1675a6=net['connect'](_0x47b1d7[_0x36bcda(0x1a6)]);let _0x195c1d='';const _0x8c1211=_0x1502df=>{const _0x578ec3=_0x36bcda;_0x1675a6[_0x578ec3(0x1a0)](),_0x4561f8(_0x1502df);},_0x442f3f={};_0x442f3f['status']='failed',_0x442f3f[_0x36bcda(0x198)]=_0x36bcda(0x169),_0x1675a6[_0x36bcda(0x167)](0x2710,()=>_0x8c1211(_0x442f3f));const _0x52ce50={};_0x52ce50[_0x36bcda(0x150)]=_0x36bcda(0x15b),_0x1675a6['on'](_0x36bcda(0x15c),()=>_0x8c1211(_0x52ce50)),_0x1675a6['on'](_0x36bcda(0x175),()=>_0x1675a6[_0x36bcda(0x148)](JSON[_0x36bcda(0x193)](_0x4e7111)+'\x0a')),_0x1675a6['on'](_0x36bcda(0x152),_0x253cab=>{const _0x1c2499=_0x36bcda;_0x195c1d+=_0x253cab;const _0x258e4b={};_0x258e4b[_0x1c2499(0x150)]=_0x1c2499(0x159),_0x258e4b['code']=_0x1c2499(0x199);if(_0x195c1d[_0x1c2499(0x15f)]>0x2000)return _0x8c1211(_0x258e4b);const _0x117541=_0x195c1d['indexOf']('\x0a');if(_0x117541<0x0)return;let _0x5a0315;try{_0x5a0315=JSON['parse'](_0x195c1d[_0x1c2499(0x176)](0x0,_0x117541));}catch{const _0x3953bc={};return _0x3953bc[_0x1c2499(0x150)]=_0x1c2499(0x159),_0x8c1211(_0x3953bc);}const _0x46e33d={};_0x46e33d[_0x1c2499(0x150)]='failed',_0x46e33d['code']=_0x1c2499(0x199);if(!verifyEnvelope(_0x56acb2,_0x5a0315,new Set(),_0x3f1911)||_0x5a0315['nonce']!==_0x4e7111[_0x1c2499(0x160)])return _0x8c1211(_0x46e33d);_0x8c1211(_0x5a0315);});}));}return _0x4dce21;}function _0x2c45(_0x1e70f2,_0x340b9c){_0x1e70f2=_0x1e70f2-0x143;const _0x42767f=_0x4276();let _0x2c4586=_0x42767f[_0x1e70f2];if(_0x2c45['WEDauY']===undefined){var _0x5efa9c=function(_0x328907){const _0x4f1ea6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x322fe8='',_0x478270='';for(let _0x16e8e9=0x0,_0x52bbac,_0x471b14,_0x4c59b8=0x0;_0x471b14=_0x328907['charAt'](_0x4c59b8++);~_0x471b14&&(_0x52bbac=_0x16e8e9%0x4?_0x52bbac*0x40+_0x471b14:_0x471b14,_0x16e8e9++%0x4)?_0x322fe8+=String['fromCharCode'](0xff&_0x52bbac>>(-0x2*_0x16e8e9&0x6)):0x0){_0x471b14=_0x4f1ea6['indexOf'](_0x471b14);}for(let _0x593859=0x0,_0x3e3f2b=_0x322fe8['length'];_0x593859<_0x3e3f2b;_0x593859++){_0x478270+='%'+('00'+_0x322fe8['charCodeAt'](_0x593859)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x478270);};_0x2c45['kefebT']=_0x5efa9c,_0x2c45['rkHRYD']={},_0x2c45['WEDauY']=!![];}const _0x1fbdef=_0x42767f[0x0],_0x54300b=_0x1e70f2+_0x1fbdef,_0x3aa17d=_0x2c45['rkHRYD'][_0x54300b];return!_0x3aa17d?(_0x2c4586=_0x2c45['kefebT'](_0x2c4586),_0x2c45['rkHRYD'][_0x54300b]=_0x2c4586):_0x2c4586=_0x3aa17d,_0x2c4586;}const _0x16512f={};_0x16512f['GatewayContext']=GatewayContext,_0x16512f['prepareHookBinding']=prepareHookBinding,module[_0x209c8a(0x162)]=_0x16512f;function _0x4276(){const _0x3d5580=['D29YA3nWywnLswq','zgf0yq','CMvNAxn0CNK','C3rYAw5N','yxnZAwDU','BM9Uy2vZ','mtmZotmWnufHBK5qvW','z2f0zxDHExm','zMfPBgvK','BwfJ','Dw5HDMfPBgfIBgu','zxjYB3i','ChvZAa','yxb0lxj1BNrPBwu','BgvUz3rO','BM9Uy2u','DhLWzq','zxHWB3j0CW','Bhn0yxrtEw5J','C3rHCNq','C2vYDMvY','yxb0lwDHDgv3yxKT','C2v0vgLTzw91Da','CMfUzg9TqNL0zxm','r0furvDbwv9dt05urvHux1rjtuvpvvq','CMvNAxn0CMf0Aw9U','CMfUzg9Tvvvjra','nJnzwgfmExq','AxntEw1IB2XPy0XPBMS','tKfusvzfx0jjtKrjtKDFuevoreLorW','zMXHzW','y2XVC2u','r0furvDbwv9truXfq1rjt05FuKvrvuLsruq','DgHLBG','ofDVref3CW','CM9VDa','y29UBMvJDa','C2XPy2u','AM9PBG','BMf0AxzLq2fSBgvY','tKfusvzfx0nptLrfwfrFvu5bvKfjtefcteu','zMLSDgvY','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','mteWmZK0zNHxwg5O','Ag9TzwrPCG','CMvZB2X2zq','C2vZC2LVBKLK','DMvYAwz5sw52B2nHDgLVBG','CMvJzwLWDezPBgu','yxjNDw1LBNrZ','ru5pru5u','DMfSAwrHDgvjzgvUDgL0Eq','mJuWndC5yLv5rNrx','C2vJCMv0rMLSzq','yNL0zuXLBMD0Aa','CMvNAxn0CMf0Aw9UlxjLy2vPChrZ','D29YA3nWywnL','DMvYAwzPzwq','C2vJCMv0','CMvJDxjZAxzL','mJeXodG5nMruA0XxAq','y2f0y2G','Ag9VAY1IAw5K','y2XHDwrL','DMvYAwz5q2XHDwrLsw52B2nHDgLVBG','D3jPDgvgAwXLu3LUyW','C3rYAw5NAwz5','lI4Vy29Yzs9PCgmTzw52zwXVCgu','lI4Vy29Yzs9JBgf1zguTAw52B2nHDgLVBG','mJG3mtvWAwLOvwu','yMLUzgLUz1rVA2vU','y29Kzq','r0furvDbwv9dt05urvHux0LovKfmsuq','Aw5KzxHpzG','Bw9Kzq','z2f0zxDHEq','BwTKAxjtEw5J','odC3nJq2sNvSz2nU','mJy0nZmWAxbWwLfO','zgvZDhjVEq','DMvYAwz5','BM9KztPWyxrO','DgvZDa','lI4VChjVEhKVD29YA3nWywnLlwDHDgv3yxK','BMf0AxzLq2HPBgq','zw5KCg9PBNq','nhDWtxPKqq','BM9KztPVCW','CMvHzezPBgvtEw5J','Ag9ZDa','mZzlqLrttKm','BMf0AxzLvg9VBe5HBwu','lMTLEq','DMvYAwzPzwqTBMf0AxzLlwHVB2S','D29YA3nWywnLugf0Aa','yMLUza','D3jPDgu','DMvYAwz5u2vSzwn0Aw9U','Dg1WzgLY','CgfYC2u','BM9KztPJCNLWDg8','y29UBMvJDgLVBKLK','BM9KztPMCW','lMfUAgrO','C3rHDhvZ'];_0x4276=function(){return _0x3d5580;};return _0x4276();}
|