apt-mcp-agent-setup 3.5.23 → 3.5.30
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/README.md +1 -1
- package/bin/cli.js +1 -1
- package/build-input.json +69 -48
- 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/integrity-manifest.json +161 -159
- package/package.json +1 -1
- package/src/backends/browser-tools.js +1 -1
- package/src/backends/index-cache-authority.js +1 -1
- package/src/backends/index-command.js +1 -1
- package/src/backends/index-maintenance.js +1 -1
- package/src/backends/index-store.js +1 -1
- package/src/backends/profiles.js +1 -1
- package/src/backends/review_graph.py +65 -0
- package/src/backends/source-discovery.js +1 -1
- package/src/core/admission-fence.js +1 -1
- package/src/core/aso-import.js +1 -1
- package/src/core/backend-lease-recovery.js +1 -1
- package/src/core/boot-evidence.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-launch-recovery.js +1 -1
- package/src/core/claude-native.js +1 -1
- package/src/core/claude-plan.js +1 -1
- package/src/core/claude-transcript-scan.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/connection-inspector.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/hook-diagnostics.js +1 -1
- package/src/core/hook-lease.js +1 -1
- package/src/core/host-adapters.js +1 -1
- package/src/core/interrupted-boot-transport-proof.js +1 -1
- package/src/core/interrupted-natural-closure-proof.js +1 -1
- package/src/core/interrupted-operation-audit.js +1 -1
- package/src/core/interrupted-transport-proof.js +1 -1
- package/src/core/ipc-envelope.js +1 -1
- package/src/core/legacy-retirement-proof.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/native-receipt.js +1 -1
- package/src/core/native-retirement.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/pipeline-journal.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/recovery-archive.js +1 -1
- package/src/core/recovery-proof.js +1 -1
- package/src/core/resource-transaction.js +1 -1
- package/src/core/run-checkpoint.js +1 -1
- package/src/core/run-compatibility.js +1 -1
- package/src/core/run-state-codec.js +1 -1
- package/src/core/runtime-authority.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/workflow-policy.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/claude-commands.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/hook-dispatcher.js +179 -141
- package/src/installer/host-hooks.js +1 -1
- package/src/installer/index-interruption-recovery.js +1 -1
- package/src/installer/index-recovery.js +1 -1
- package/src/installer/install-intent.js +1 -1
- package/src/installer/interrupted-operation-recovery.js +1 -1
- package/src/installer/legacy-prepared-plan.js +1 -1
- package/src/installer/legacy-registration.js +1 -1
- package/src/installer/managed-config.js +1 -1
- package/src/installer/migration-scope.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-outcome.js +1 -1
- package/src/installer/project-setup.js +1 -1
- package/src/installer/recovery-backup-retention.js +1 -0
- 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-cleanup.js +1 -1
- 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/stale-run-release.js +1 -1
- package/src/installer/update-addons.js +1 -1
- package/src/installer/update-cleanup.js +1 -1
- package/src/installer/update-executor.js +1 -1
- package/src/installer/update-history.js +1 -1
- package/src/installer/update-registration.js +1 -1
- package/src/installer/update-report.js +1 -0
- package/src/installer/update-request.js +1 -1
- package/src/installer/update-scope.js +1 -1
- 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
- package/src/templates/mcp-tools.md +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0xfcae(_0x4ea933,_0x1306c4){_0x4ea933=_0x4ea933-0x18f;const _0x2d3810=_0x2d38();let _0xfcae0=_0x2d3810[_0x4ea933];if(_0xfcae['VXoOvJ']===undefined){var _0x231ce3=function(_0x5653bb){const _0x113ef7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1bb2a4='',_0x145d8d='';for(let _0x2875a0=0x0,_0x3a8d04,_0x390e27,_0x1aad7e=0x0;_0x390e27=_0x5653bb['charAt'](_0x1aad7e++);~_0x390e27&&(_0x3a8d04=_0x2875a0%0x4?_0x3a8d04*0x40+_0x390e27:_0x390e27,_0x2875a0++%0x4)?_0x1bb2a4+=String['fromCharCode'](0xff&_0x3a8d04>>(-0x2*_0x2875a0&0x6)):0x0){_0x390e27=_0x113ef7['indexOf'](_0x390e27);}for(let _0x24fa94=0x0,_0x3df0dc=_0x1bb2a4['length'];_0x24fa94<_0x3df0dc;_0x24fa94++){_0x145d8d+='%'+('00'+_0x1bb2a4['charCodeAt'](_0x24fa94)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x145d8d);};_0xfcae['ncwxqa']=_0x231ce3,_0xfcae['XiLBZP']={},_0xfcae['VXoOvJ']=!![];}const _0x3004d6=_0x2d3810[0x0],_0x43ac07=_0x4ea933+_0x3004d6,_0x4e607e=_0xfcae['XiLBZP'][_0x43ac07];return!_0x4e607e?(_0xfcae0=_0xfcae['ncwxqa'](_0xfcae0),_0xfcae['XiLBZP'][_0x43ac07]=_0xfcae0):_0xfcae0=_0x4e607e,_0xfcae0;}const _0xb7773c=_0xfcae;(function(_0xd8cb5a,_0x56d148){const _0x2b2dde=_0xfcae,_0x527f5b=_0xd8cb5a();while(!![]){try{const _0x43060f=-parseInt(_0x2b2dde(0x232))/0x1+parseInt(_0x2b2dde(0x1ca))/0x2*(parseInt(_0x2b2dde(0x1bf))/0x3)+parseInt(_0x2b2dde(0x2a5))/0x4*(parseInt(_0x2b2dde(0x29d))/0x5)+parseInt(_0x2b2dde(0x19f))/0x6+-parseInt(_0x2b2dde(0x1a1))/0x7*(parseInt(_0x2b2dde(0x1c4))/0x8)+parseInt(_0x2b2dde(0x292))/0x9*(parseInt(_0x2b2dde(0x269))/0xa)+-parseInt(_0x2b2dde(0x1ac))/0xb;if(_0x43060f===_0x56d148)break;else _0x527f5b['push'](_0x527f5b['shift']());}catch(_0x572a44){_0x527f5b['push'](_0x527f5b['shift']());}}}(_0x2d38,0xe953d));const fs=require('node:fs'),path=require(_0xb7773c(0x20a)),crypto=require(_0xb7773c(0x267)),{acquireRuntimeLock}=require(_0xb7773c(0x240)),{ResourceTransaction}=require(_0xb7773c(0x2a6)),{readFence,changeFence,freezeFence}=require(_0xb7773c(0x1ec)),{readGeneration,projectGeneration,registerMember,recordCandidate,commitWorkspaceGeneration,openCommittedGeneration}=require(_0xb7773c(0x29e)),{verifyRelease}=require(_0xb7773c(0x1d4)),{preflightWorkspaceContracts}=require(_0xb7773c(0x191)),{preflightCandidate}=require('./candidate-preflight'),connections=require(_0xb7773c(0x1a4)),{readControl}=require(_0xb7773c(0x1c3)),{workspaceOwnership}=require(_0xb7773c(0x280)),{snapshotUpgradeRuns,cancelUpgradeRuns}=require(_0xb7773c(0x24d)),{rebuildWorkspaceIndex}=require('./index-recovery'),hashFile=_0x399efa=>{const _0x266e66=_0xb7773c;try{return crypto[_0x266e66(0x1c9)](_0x266e66(0x20e))[_0x266e66(0x1ce)](fs[_0x266e66(0x1e1)](_0x399efa))[_0x266e66(0x1da)](_0x266e66(0x1ff));}catch(_0x317a90){if(_0x317a90[_0x266e66(0x1eb)]==='ENOENT')return null;throw _0x317a90;}},fail=_0x19021f=>{throw Object['assign'](new Error(_0x19021f),{'code':_0x19021f});},sameRegistrationWorkspace=(_0x25664f,_0x395707)=>require('../core/workspace-path')['sameWorkspace'](_0x25664f,_0x395707);function safeFsDiagnostic(_0x702cbb,_0x164b04,_0x4e8097){const _0x42c1ab=_0xb7773c,_0x440192=typeof _0x702cbb?.['path']===_0x42c1ab(0x21b)?_0x702cbb['path']:typeof _0x702cbb?.[_0x42c1ab(0x1ea)]===_0x42c1ab(0x21b)?_0x702cbb[_0x42c1ab(0x1ea)]:null;let _0x1ff87d=null;return _0x440192&&(_0x1ff87d=crypto[_0x42c1ab(0x1c9)]('sha256')['update'](path[_0x42c1ab(0x1e2)](_0x440192))[_0x42c1ab(0x1da)](_0x42c1ab(0x1ff))['slice'](0x0,0x10)),{'kind':_0x42c1ab(0x1f3),'code':_0x702cbb?.['code']||_0x42c1ab(0x23f),'syscall':_0x702cbb?.['syscall']||null,'phase':_0x4e8097||_0x42c1ab(0x27e),'operation':_0x702cbb?.[_0x42c1ab(0x266)]||_0x702cbb?.['op']||null,'targetFingerprint':_0x1ff87d,'workspaceFingerprint':crypto[_0x42c1ab(0x1c9)]('sha256')[_0x42c1ab(0x1ce)](path[_0x42c1ab(0x1e2)](_0x164b04))['digest'](_0x42c1ab(0x1ff))[_0x42c1ab(0x1ef)](0x0,0x10)};}function _0x2d38(){const _0x5afe3e=['CMvXDwLYzwq','AgfZ','AxntywzLsw50zwDLCG','zxHWB3j0CW','DhjHBNnHy3rPB25jza','BwfUAwzLC3qUANnVBG','r1jbueHFq0HbtKDfra','rufdq0vt','y2fUzgLKyxrLlxjLywr5','BM93','D2L0AefKBwLZC2LVBKXVy2S','DgfYz2v0vMvYC2LVBG','zgLHz25VC3rPy3m','CMvJB3zLCMLUzW','BMv3sgfZAa','B3bLCMf0Aw9U','BM9KztPJCNLWDg8','zNn5BMntEw5J','ndiXmhn1tgvdyq','vvbeqvrfx0Lox1bst0Dsrvnt','t1bfuKfusu9ox1jfq09wrvjzx1bftKrjtKC','ChjLDMLVDxmTCMvZDg9Yzwq','ywrK','lMfNzw50CW','uKvtt1vsq0vFreLhrvnux01ju1njtKC','q0foreLeqvrfx1bsruzmsuDivf9nsvnnqvrdsa','BgvNywn5uMvJB3zLCNK','z3vHCMrjBMrLEfrLCM1PBMfS','C2fMzs1IB3vUzgfYEq','CNvUCW','ve9ptf9dqvrbte9hx0niqu5hruq','ChjLCgfYzwq','B3DUzxjZAgLW','vvbeqvrfx0PpvvjoquXFvu5wrvjjrKLfra','y29TBwL0lwLUDgvUDa','B3bLCMf0Aw9Uu3vJy2vZC29Yq29UDhjHy3reAwDLC3q','CMvJB3zLCNLcywnRDxbqyxrO','lI9PBMrLEc1YzwnVDMvYEq','B3bLCMf0Aw9UCW','Dw5RBM93BG','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','lI4Vy29Yzs9YDw50Aw1Llw93BMvYC2HPCa','y29TBwL0','D29YA3nWywnL','CMvNAxn0CMf0Aw9UugXHBG','Dg9ju09tDhjPBMC','ywn0AxzHDgvqCMvWyxjLzfDVCMTZCgfJzq','y29UDhjHy3reAwDLC3q','zNjVEMvU','y29UDhjVBenVBM5Ly3rPB24','y2fUy2vS','vvbeqvrfx1nvu1bftKrfra','q0HjterFu1rpuf9vtKnptKzjuK1fra','t1bfuKfusu9ox1jfq09wrvjzx0niqu5hruq','CMfUzg9Tvvvjra','y29TBwL0DgvK','Aw5ZCgvJDa','AxngAw5PDgu','AM9PBG','mZGZndLsuNfLuM4','y29UzMLNugf0Aa','ywrKB25Z','vvbeqvrfx0Hju1rpuLLFvu5wrvjjrKLfra','sK9vuK5btf9ut09Ftefsr0u','DMvYC2LVBG','zMLSDgvY','CMvHBhbHDgHtEw5J','yNvPBhq','C3vWzxj2AxnVCLbYB3rVy29S','y29TBwL0lwnHBMrPzgf0zq','mZy0nZm2nur1rK5TBW','lI4Vy29Yzs93B3jRC3bHy2uTz2vUzxjHDgLVBG','ChvIBgLJs2v5','lI9PBMrLEc1PBNrLCNj1ChrPB24TCMvJB3zLCNK','y29UDhjVBenHCgfIAwXPDgLLCW','uKvhsvnuuKfusu9ox1jfq09wrvjzx1jfuvvjuKve','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','tevhqunzx0npt1jesu5bve9sx1jfq0Hfq0TFuKvrvuLsruq','nejly2ffCW','lI4Vy29Yzs9YzxnVDxjJzs10CMfUC2fJDgLVBG','CgfYC2u','ywnRBM93BgvKz2vK','lMPZB24','vvbeqvrfx0zbsuXfra','C3vWzxj2AxnVCLbPza','C3vJy2vZC29Yswq','v09ss0vsx1nut1bFvu5dt05gsvjnruq','BwLU','Aw5JBhvKzxm','BgvNywn5lw93BMvYC2HPCc11BNzLCMLMAwvK','B3jPz2LUywW','CMvSzwfZzxm','zgLYzwn0B3j5','C3vJy2vZCW','lI4Vy29Yzs9YDw4Ty29TCgf0AwjPBgL0Eq','yxnZAwDU','zhjHAw5PBMC','Aw5KzxHszwnVDMvYAwvZ','ufjpqKvFtuLttufuq0G','y2f0ywXVz1jLy29UBMvJDfjLCxvPCMvK','CNvUCY1Jyw5JzwXSzwq','C3rVCc1JB25MAxjTzwq','CMvJB3zLCNK','ChjLlwrYywLUlwnHBMnLBgXLza','uMvNAxn0CMf0Aw9UugXHBG','r0vorvjbveLptL9bq0TFuevoreLorW','C3rHDgvsB290','y2fUy2vSBgvKuNvUCW','ndeYndu4nMzOuwjysa','rvbfuK0','mJyXmw1tvLz4wa','B3bLBG','DxbKyxrLlMXVy2S','lI9JB25Uzwn0Aw9UlwfJDgL2yxrPB24','Aw50zxjYDxb0zwruCMfUC2fJDgLVBG','B2XKuNvUDgLTzxntDg9WCgvK','uKvtt1vsq0vFuefusf9fu0nbueu','yxbWBhK','ChjVyMvdB25Uzwn0Aw9U','zMLSzq','DgvZDa','mJu5ntCYmdzLu0zhCKi','zxzPzgvUy2u','yNL0zxm','vvbeqvrfx1bmqu5Fq0HbtKDfra','vvbeqvrfx1jfq09wrvjzx1jfuvvjuKve','yMXVy2TLCNm','yNjPzgDLlxjLCxvPCMvK','su5wquXjrf9xquLu','ChjLDMLVDxndB25Uzwn0Aw9UCW','vvbeqvrfx0nbtKnfteXfra','lI91CgrHDguTAgLZDg9YEq','ywn0AxzL','C3rVChbPBMC','y2f1C2u','Dg9tDhjPBMC','CM9SBgvKlwjHy2S','B2XKsgfZAa','su5ervHFveLnru9vva','BwLZBwf0y2HgAwvSzhm','ode0ndu4vhLJug5i','zhjHAw4TywjVCNrLza','Cg9ZDc1Hy3rPDMf0Aw9U','D3jPDgvgAwXLu3LUyW','lI4Vy29Yzs91CgrHDguTy29UDhjVBa','mJy4nJrQvgXdEhq','y2HPBgrqCM9JzxnZu3rHCNq','CNvUC0nHBMnLBgXLza','yxbWBhLPBMC','y29UBMvJDgLVBKLK','y3jLyxrLsgfZAa','mtb4tLrnALm','CM9SBc1MB3j3yxjKlxjLCxvPCMvK','CgHHC2u','zxHPC3rZu3LUyW','DxbKyxrL','z2vUzxjHDgLVBG','zxbVy2G','B3bLCMf0Aw9Uu3vJy2vZC29Y','uKvhsvnuuKfusu9ox1bmqu5Fsu5wquXjra','Bwf4','lI9YDw50Aw1Llxn0B3jL','su5ervHFqLvtwq','zxzLCNK','yxv0AgvUDgLJyxrLzc1SAxzLlxbYB2nLC3m','y29UBMvJDgLVBNm','su5ervHFt1vuq09nrv9vtKTot1Do','zgLNzxn0','CMvWBgfJzw1LBNq','uhjLDMLVDxmGCMvHzgLUzxnZihr1CgXLigrPzMzLCNm','D2fPDfnLy29Uzhm','CMvZDwX0CW','zM9Yy2vszwnVDMvY','qurnsvntsu9ox0nptKzmsunu','CMvHzezPBgvtEw5J','CMvZB2X2zq','ywjVCNqTzhjHAw4','yxjJAgL2zuXLz2fJEvrLCM1PBMfSsM91CM5HBa','CMvHzfjLy292zxj5u3vJy2vZC29Y','CMv0CNLHyMXL','B2XKuNvUDgLTzvn0B3bWzwq','CNvUBMLUzW','C2f2zuXVy2TLza','zgvZDa','y29Kzq','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','C3vZCgvUzgvK','q0foq0vmx0fds19qru5esu5h','C2XPy2u','z3vHCMq','DxbKyxrLCW','CgXHBG','zMLSzxn5C3rLBq','DxbKyxrLlxrYyw5Zywn0Aw9UlMPZB24','B3bLCMf0Aw9Uu3vJy2vZC29Yr3vHCMq','BwfW','C3vWzxj2AxnVCLbYB2nLC3ntDgfYDa','y2fUy2vSBgLUzY1YDw5Z','zgLHz25VC3rPyW','C3rYAw5NAwz5','su5ervHFu1rpuf9vtKnptKzjuK1fra','BM90lxjLCxvPCMvK','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','CM9SBgjHy2S','Agv4','ChvZAa','C3rHDhvZ','yxnZzxj0uMvJB3zLCNLszxrPCMvTzw50','B3bLCMf0Aw9UuMvJB3zLCNK','vvbeqvrfx09xtKvsu0Hjuf9dsefor0ve','BgvUz3rO','y2HPBgrqAwq','lMfNzw50CY9Tyw5PzMvZDc5QC29U','ChjLCgfYzq','ywn0Aw9U','BM9KztPWyxrO','zMfPBgvK','lNrTCa','vvbeqvrfx1bmqu5Fvu5wrvjjrKLfra','C2HHmJu2','su5ervHFuKvcvuLmrf9gquLmruq','C3rHDgu','lI9YzwDPC3rYyxrPB24TCgXHBG','uKvtt1vsq0vFuK9mtejbq0TFvu5dt05gsvjnruq','ChjLDMLVDxnjzgvUDgL0Eq','t1bfuKfusu9ox1bmqu5Fvu5wrvjjrKLfra','ChjVB2y','CMvZB3vYy2vZlwfWCgXPzwq','DgfYz2v0rgLNzxn0','CMvZB3vYy2veAwDLC3q','vvbeqvrfx1rbuKDfvf9dt05gteLdva','ywjVCNrLzerYywLU','C3rYAw5N','DgfYz2v0','CMvZB3vYy2vZqxbWBgLLza','Aw5KzxHdB2rL','rujvu1K','y2XVC2vtEw5J','uLvox0Lou1bfq1rjt05FteLnsvq','CNvUDgLTzq','DxbNCMfKzvj1BNm','DMfSDwvZ','q0foreLeqvrfx05pvf9srufewq','y29UBMvJDgLVBKrPywDUB3n0AwnZ','C3rVCc1MB3iTDxbKyxrL','CMvJzwLWDa','zgLYBMfTzq','CMvJB25JAwXLsw5KzxHjBNrLCNj1ChrPB24','CMvZB3vYy2vdB250CMfJDerPz2vZDa','CMvJB3zLCMfIBguTAw50zxjYDxb0Aw9U','C3vZCgvUza','BwvTyMvYCW','BM90lxjLCxvLC3rLza','q09otKvdveLptL9vtKnptKzjuK1fra','y2f0ywXVz0HHC2G','mJi2v013DMrs','BgvNywn5uMvJB3zLCNLszwXLyxnL','tevhqunzx0npt1jesu5bve9sx1jfq09oq0Lmrv9gquLmruq','CMvJB25Uzwn0lxjLCxvPCMvK','su5ervHFqLvjterFrKfjteve','C2vYDMLUzW','ChjLCgfYzs1Jyw5KAwrHDgu','DgfZAW','y2fUy2vSBgvK','CMvXDwvZDc1ZDg9W','y29UzMXPy3rZ','yxr0zw1WDa','y29UDgfPBNnxB3jRC3bHy2u','vu5ltK9xtG','lI4Vy29Yzs9VD25Lzc1SB2nR','CMvSzwfZzq','CMvNAxn0CMf0Aw9UtwLNCMf0Aw9U','CMvJB3zLCNLdB250zxH0','Aw5KzxHszxn1Bhq','ywn0AxzHDgLVBKv2AwrLBMnL','CMvZDg9Yzs1WCMv2Aw91CW','Cg9ZDfjLC291CMnLuMvJB3zLCNK','CMvIDwLSzeLUzgv4','CNvUDgLTzvjVB3q','zMLUza','CMvZCg9UC2u','y2XVC2vK','lI4Vy29Yzs91CgDYywrLlxj1BNm','CNvUswq','C29Tzq','CMvZB3vYy2vqBgfU','BgLZDfDVCMTZCgfJzvjLy2vPChrZ','CM9SBc1MB3j3yxjK','BM9pCa','yMXVy2TLzc1WCM9Qzwn0lxn5BMm','y2fUy2vSlwzVCI11CgDYywrL','Aw5KzxHqAgfZzq'];_0x2d38=function(){return _0x5afe3e;};return _0x2d38();}function writeJournal(_0xe6e8ee,_0x165a12){const _0x554707=_0xb7773c,_0x2250bc=_0xe6e8ee+'.'+crypto[_0x554707(0x28d)]()+_0x554707(0x20c),_0x3c04df=fs['openSync'](_0x2250bc,'wx',0x180);try{fs[_0x554707(0x1c2)](_0x3c04df,JSON['stringify'](_0x165a12)),fs[_0x554707(0x268)](_0x3c04df);}finally{fs[_0x554707(0x220)](_0x3c04df);}fs['renameSync'](_0x2250bc,_0xe6e8ee);}async function activatePreparedWorkspace(_0x52f5c3){const _0x25ab55=_0xb7773c,_0x480ead=fs[_0x25ab55(0x299)](_0x52f5c3[_0x25ab55(0x282)]),_0x65d1ab={};_0x65d1ab[_0x25ab55(0x1a8)]=_0x52f5c3['indexRecoveryMode']!=='inspect',_0x65d1ab['publicKey']=_0x52f5c3[_0x25ab55(0x29f)],_0x65d1ab['runtimeRoot']=_0x52f5c3['runtimeRoot'];const _0x4fad6d=require(_0x25ab55(0x2a0))[_0x25ab55(0x22a)](_0x480ead,_0x65d1ab),_0x11ef6b={};_0x11ef6b[_0x25ab55(0x1eb)]=_0x25ab55(0x1d9);const _0x3a199c={};_0x3a199c['status']=_0x25ab55(0x27e),_0x3a199c[_0x25ab55(0x1eb)]=_0x25ab55(0x1d9);const _0x4278ad={};_0x4278ad[_0x25ab55(0x201)]=_0x25ab55(0x2a3),_0x4278ad['blockers']=[_0x11ef6b],_0x4278ad[_0x25ab55(0x244)]=_0x3a199c;if([_0x25ab55(0x27e),_0x25ab55(0x1e8),_0x25ab55(0x22c)][_0x25ab55(0x2af)](_0x4fad6d[_0x25ab55(0x201)]))return _0x4278ad;const _0x5427db=require(_0x25ab55(0x191))['workspaceRunRoots'](_0x480ead),_0x489a45={'rebuildCheckpoints':!![],'budgetMs':Number(process.env.APT_RUN_INSPECTION_TIMEOUT_MS||0x1d4c0)},_0x2bbb0d=_0x52f5c3['resourcePlan']instanceof ResourceTransaction?_0x52f5c3[_0x25ab55(0x250)]:new ResourceTransaction(_0x52f5c3[_0x25ab55(0x250)]);if(fs[_0x25ab55(0x299)](_0x2bbb0d[_0x25ab55(0x1f2)][_0x25ab55(0x282)])!==_0x480ead)fail(_0x25ab55(0x1a7));const _0x4d4131=_0x2bbb0d[_0x25ab55(0x1f2)][_0x25ab55(0x25b)],_0x5eb74a=path['join'](_0x480ead,_0x25ab55(0x26e),_0x25ab55(0x222)),_0x453580=acquireRuntimeLock(path[_0x25ab55(0x291)](_0x5eb74a,_0x25ab55(0x1a3))),_0x19d074={};_0x19d074['code']=_0x25ab55(0x26a);const _0x42acec={};_0x42acec[_0x25ab55(0x201)]='pending-safe-boundary',_0x42acec['transactionId']=_0x4d4131,_0x42acec[_0x25ab55(0x1b1)]=[_0x19d074];if(!_0x453580)return _0x42acec;const _0x837ee3=path[_0x25ab55(0x291)](_0x5eb74a,_0x25ab55(0x1f4));let _0xb8a658;const _0x499f38=()=>{const _0x3cd994=_0x25ab55;if(!_0xb8a658)return!![];if(!_0x453580['owned']())fail(_0x3cd994(0x204));if(_0x52f5c3[_0x3cd994(0x1f5)]&&_0x52f5c3[_0x3cd994(0x1f5)]()!==!![])fail(_0x3cd994(0x204));if(_0x52f5c3[_0x3cd994(0x27a)]){const _0x4ef420=JSON[_0x3cd994(0x2a7)](fs['readFileSync'](_0x2bbb0d[_0x3cd994(0x1aa)]));if(_0x4ef420[_0x3cd994(0x286)]!==_0x52f5c3[_0x3cd994(0x27a)]||require(_0x3cd994(0x2a6))['resourceContractDigest'](_0x4ef420)!==_0x52f5c3[_0x3cd994(0x27a)])fail(_0x3cd994(0x214));}return require(_0x3cd994(0x1c3))['assertRecoverySuccessor'](_0x480ead,_0xb8a658,_0x52f5c3[_0x3cd994(0x29f)],_0x4d4131,verifyRelease(_0x52f5c3[_0x3cd994(0x241)],_0x52f5c3[_0x3cd994(0x29f)]));};try{_0xb8a658=_0x52f5c3[_0x25ab55(0x1d1)]||require(_0x25ab55(0x1c3))[_0x25ab55(0x1e5)](_0x480ead,_0x4d4131,_0x52f5c3[_0x25ab55(0x29f)]),_0x499f38();}catch(_0x137ae6){_0x453580();const _0xc27410={};_0xc27410[_0x25ab55(0x1eb)]=_0x137ae6[_0x25ab55(0x1eb)]||_0x25ab55(0x28c);const _0x47e9c6={};return _0x47e9c6['status']=_0x25ab55(0x2a3),_0x47e9c6[_0x25ab55(0x25b)]=_0x4d4131,_0x47e9c6[_0x25ab55(0x1b1)]=[_0xc27410],_0x47e9c6;}const _0x214bd9=_0x52f5c3['connections']||connections;let _0x70a397,_0x284400;try{_0x284400=fs[_0x25ab55(0x1e1)](_0x837ee3),_0x70a397=JSON[_0x25ab55(0x2a7)](_0x284400);}catch(_0x5e65e3){if(_0x5e65e3[_0x25ab55(0x1eb)]!=='ENOENT'){_0x453580();throw _0x5e65e3;}}const _0x12a539=_0x70a397?.[_0x25ab55(0x194)]||[];if(_0x70a397&&_0x70a397[_0x25ab55(0x25b)]!==_0x4d4131){if(![_0x25ab55(0x1b7),'ready-next-connection','rolled-back',_0x25ab55(0x23a),'superseded'][_0x25ab55(0x2af)](_0x70a397[_0x25ab55(0x201)])){_0x453580();const _0xcfa987={};_0xcfa987[_0x25ab55(0x1eb)]=_0x25ab55(0x26a);const _0x4a3743={};return _0x4a3743[_0x25ab55(0x201)]='pending-safe-boundary',_0x4a3743[_0x25ab55(0x25b)]=_0x70a397[_0x25ab55(0x25b)],_0x4a3743[_0x25ab55(0x1b1)]=[_0xcfa987],_0x4a3743;}const _0x59c060=path['join'](_0x5eb74a,_0x25ab55(0x1f1),_0x70a397[_0x25ab55(0x25b)],'transaction-final.json');!/^[a-zA-Z0-9_-]{1,80}$/[_0x25ab55(0x1ab)](_0x70a397[_0x25ab55(0x25b)])&&(_0x453580(),fail(_0x25ab55(0x295)));try{if(!fs[_0x25ab55(0x1cd)](path[_0x25ab55(0x229)](_0x59c060)))require(_0x25ab55(0x1b6))[_0x25ab55(0x1e4)](_0x480ead,_0x837ee3,_0x284400,_0x52f5c3);else{if(!require(_0x25ab55(0x1fd))[_0x25ab55(0x23e)](_0x480ead,fs[_0x25ab55(0x299)](path[_0x25ab55(0x229)](_0x59c060))))fail(_0x25ab55(0x295));if(_0xb8a658&&fs[_0x25ab55(0x1cd)](_0x59c060)){if(!require('node:util')['isDeepStrictEqual'](JSON[_0x25ab55(0x2a7)](fs[_0x25ab55(0x1e1)](_0x59c060)),_0x70a397))fail('OPERATION_RECOVERY_CHANGED');}else writeJournal(_0x59c060,_0x70a397);}}catch(_0x2c6d67){_0x453580();throw _0x2c6d67;}_0x70a397=null;}try{if(!_0x52f5c3[_0x25ab55(0x203)]&&require('../core/update-control')[_0x25ab55(0x1a5)](_0x480ead,_0x4d4131,_0x52f5c3[_0x25ab55(0x29f)])){_0x453580();const _0x5d2313={};_0x5d2313[_0x25ab55(0x1eb)]=_0x25ab55(0x26b);const _0x425c96={};return _0x425c96[_0x25ab55(0x201)]=_0x25ab55(0x2a3),_0x425c96[_0x25ab55(0x25b)]=_0x4d4131,_0x425c96[_0x25ab55(0x1b1)]=[_0x5d2313],_0x425c96;}}catch(_0x144e88){_0x453580();throw _0x144e88;}const _0x428b93=(_0x4e30b8,_0x410b7e={})=>{const _0x310d20=_0x25ab55,_0x487d54={};_0x487d54[_0x310d20(0x201)]=_0x310d20(0x1fc),_0x487d54[_0x310d20(0x1b1)]=[];const _0x3ed12d={};_0x3ed12d['status']=_0x310d20(0x22f),_0x3ed12d[_0x310d20(0x1de)]=[],_0x70a397={'indexRecoveries':_0x12a539,..._0x70a397,'transactionId':_0x4d4131,'workspace':_0x480ead,'runtimeRoot':_0x52f5c3['runtimeRoot'],'release':_0x52f5c3[_0x310d20(0x241)],'publicKey':_0x52f5c3[_0x310d20(0x29f)]?.[_0x310d20(0x1ba)](),'resourcePlan':_0x2bbb0d['directory'],'registrationPlan':_0x52f5c3[_0x310d20(0x283)]?.[_0x310d20(0x18f)]||_0x52f5c3[_0x310d20(0x283)]||_0x70a397?.[_0x310d20(0x283)]||null,'registrationMigration':_0x52f5c3[_0x310d20(0x242)]||_0x70a397?.[_0x310d20(0x242)]||_0x487d54,'addons':_0x52f5c3[_0x310d20(0x294)]||_0x70a397?.[_0x310d20(0x294)]||_0x3ed12d,'forceRecover':_0x52f5c3['forceRecover']===!![]||_0x70a397?.['forceRecover']===!![],'recoveryBackupPath':_0x52f5c3[_0x310d20(0x27b)]||_0x70a397?.[_0x310d20(0x27b)]||null,'rebuildIndex':_0x70a397?.[_0x310d20(0x248)]===!![]||_0x52f5c3[_0x310d20(0x248)]===!![],'indexPhase':_0x70a397?.[_0x310d20(0x256)]||(_0x70a397?.['rebuildIndex']===!![]||_0x52f5c3[_0x310d20(0x248)]===!![]?_0x310d20(0x1c1):_0x310d20(0x22f)),'status':_0x4e30b8,'changedAt':new Date()[_0x310d20(0x284)](),..._0x410b7e},writeJournal(_0x837ee3,_0x70a397);};let _0x8a822d=readGeneration(_0x480ead)?.[_0x25ab55(0x25b)]===_0x4d4131;const _0x40261c=_0x52f5c3['registrationPlan']?.['directory']||_0x52f5c3[_0x25ab55(0x283)]||_0x70a397?.[_0x25ab55(0x283)];let _0x4454c7;try{_0x4454c7=_0x40261c?new(require(_0x25ab55(0x211)))[(_0x25ab55(0x19b))](_0x40261c):null;}catch(_0x53b207){_0x453580();throw _0x53b207;}_0x4454c7&&(!sameRegistrationWorkspace(_0x4454c7[_0x25ab55(0x1f2)][_0x25ab55(0x282)],_0x480ead)||_0x4454c7['plan'][_0x25ab55(0x25b)]!==_0x4d4131)&&(_0x453580(),fail(_0x25ab55(0x1d2)));let _0x408526=readFence(_0x480ead),_0x81f90b=[],_0x45490a=![];const _0x18fa39=()=>readControl(_0x480ead,_0x4d4131)?.[_0x25ab55(0x209)],_0x4f2e0b=()=>{const _0x8c25d2=_0x25ab55;if(!_0x52f5c3['operationRecovery'])return;if(!_0x453580['owned']())fail(_0x8c25d2(0x204));require('../core/update-control')[_0x8c25d2(0x202)](_0x480ead,_0x52f5c3[_0x8c25d2(0x203)],_0x52f5c3[_0x8c25d2(0x29f)],_0x52f5c3[_0x8c25d2(0x203)]['candidate'],_0x52f5c3[_0x8c25d2(0x203)][_0x8c25d2(0x2ac)]);if(_0x70a397?.[_0x8c25d2(0x199)]!==_0x8c25d2(0x1e3))fail(_0x8c25d2(0x28c));},_0xf7305d=async _0x3bd133=>{const _0x28267e=_0x25ab55;if(_0x70a397?.['indexResult']?.[_0x28267e(0x201)]===_0x28267e(0x29a))return _0x70a397[_0x28267e(0x244)];if(_0x70a397?.[_0x28267e(0x244)]?.[_0x28267e(0x201)]===_0x28267e(0x1e8)||_0x70a397?.[_0x28267e(0x244)]?.[_0x28267e(0x201)]===_0x28267e(0x27e)||[_0x28267e(0x1d9),_0x28267e(0x1fb)][_0x28267e(0x2af)](_0x70a397?.['indexResult']?.[_0x28267e(0x1eb)])){const _0x128ab1={};return _0x128ab1['status']=_0x28267e(0x27e),_0x128ab1[_0x28267e(0x1eb)]=_0x28267e(0x1d9),_0x128ab1['retryable']=![],_0x128ab1;}const _0x5e2b2a={};_0x5e2b2a[_0x28267e(0x201)]='not-requested';if(!_0x70a397?.['rebuildIndex']&&!_0x52f5c3[_0x28267e(0x248)])return _0x5e2b2a;const _0x1dc29f={};_0x1dc29f[_0x28267e(0x201)]=_0x28267e(0x1e8);const _0x2da571={};_0x2da571[_0x28267e(0x256)]=_0x28267e(0x1c1),_0x2da571[_0x28267e(0x244)]=_0x1dc29f,_0x428b93(_0x3bd133,_0x2da571);try{const _0x2b3389={};_0x2b3389[_0x28267e(0x282)]=_0x480ead,_0x2b3389['release']=_0x52f5c3['release'],_0x2b3389['publicKey']=_0x52f5c3[_0x28267e(0x29f)];const _0x4299de=await rebuildWorkspaceIndex(_0x2b3389);_0x70a397=require(_0x28267e(0x27c))[_0x28267e(0x272)](_0x480ead,_0x4299de[_0x28267e(0x23d)]);const _0x22c9f2={..._0x70a397[_0x28267e(0x244)]};_0x22c9f2[_0x28267e(0x201)]='built',_0x22c9f2[_0x28267e(0x1f9)]=_0x4299de['diagnostic'];const _0x5965aa=_0x22c9f2,_0x19f2e7={};return _0x19f2e7[_0x28267e(0x256)]=_0x28267e(0x1c1),_0x19f2e7[_0x28267e(0x244)]=_0x5965aa,_0x428b93(_0x3bd133,_0x19f2e7),_0x5965aa;}catch(_0x3ef551){try{_0x70a397=require('./index-recovery')[_0x28267e(0x272)](_0x480ead,_0x3ef551[_0x28267e(0x23d)]);}catch{const _0x3abc3c={};return _0x3abc3c[_0x28267e(0x201)]=_0x28267e(0x27e),_0x3abc3c[_0x28267e(0x1eb)]=_0x28267e(0x1d9),_0x3abc3c[_0x28267e(0x1e6)]=![],_0x3abc3c;}const _0x5a0a91=_0x3ef551['code']||_0x28267e(0x236),_0x46f11f=[_0x28267e(0x1d9),_0x28267e(0x1fb)][_0x28267e(0x2af)](_0x5a0a91),_0x39ee35={..._0x70a397[_0x28267e(0x244)],'status':_0x46f11f?_0x28267e(0x27e):'failed','code':_0x5a0a91,'retryable':[_0x28267e(0x1bd),_0x28267e(0x1d5),_0x28267e(0x25d)]['includes'](_0x5a0a91),'causeCode':_0x3ef551[_0x28267e(0x1b9)]?.[_0x28267e(0x1eb)]||null,'diagnostic':_0x3ef551[_0x28267e(0x1f9)]||null},_0x4883bd={};_0x4883bd[_0x28267e(0x1eb)]=_0x46f11f?_0x28267e(0x1d9):_0x28267e(0x20f),_0x4883bd[_0x28267e(0x1cc)]=_0x28267e(0x1c1),_0x4883bd[_0x28267e(0x21e)]=_0x5a0a91;const _0x5897a1={};return _0x5897a1['indexPhase']=_0x28267e(0x1c1),_0x5897a1[_0x28267e(0x244)]=_0x39ee35,_0x5897a1['blockers']=[_0x4883bd],_0x428b93(_0x3bd133,_0x5897a1),_0x39ee35;}},_0x4321d2=async _0x1b77cf=>{const _0x279d17=_0x25ab55;_0x4454c7?.['rollback'](),_0x2bbb0d[_0x279d17(0x1fe)](),_0x81f90b=_0x214bd9[_0x279d17(0x251)](_0x480ead);for(const _0x1531ee of _0x70a397[_0x279d17(0x1b4)]||[])if(!_0x81f90b[_0x279d17(0x24f)](_0x562d46=>_0x562d46[_0x279d17(0x1c8)]===_0x1531ee[_0x279d17(0x1c8)]))fail(_0x279d17(0x212));for(const _0x507b3b of _0x81f90b){const _0x527627={};_0x527627[_0x279d17(0x25b)]=_0x4d4131,_0x527627['epoch']=_0x408526['epoch'];const _0xf4bc59=await _0x214bd9[_0x279d17(0x288)](_0x507b3b,_0x279d17(0x246),_0x527627);if(_0xf4bc59[_0x279d17(0x1ad)]!==_0x279d17(0x1d7)||_0xf4bc59['status']!==_0x279d17(0x26c))fail(_0xf4bc59['code']||_0x279d17(0x212));let _0x5ddc7d=_0x70a397[_0x279d17(0x1b4)]?.[_0x279d17(0x24a)](_0x2a6ccc=>_0x2a6ccc[_0x279d17(0x1c8)]===_0x507b3b['connectionId']);if(!_0x5ddc7d){const _0x3a9ed1=readGeneration(_0x480ead);if(_0x3a9ed1&&_0x3a9ed1[_0x279d17(0x25b)]!==_0x4d4131&&sameRegistrationWorkspace(_0x3a9ed1[_0x279d17(0x282)]||'',_0x480ead)&&Number[_0x279d17(0x259)](_0x3a9ed1[_0x279d17(0x1cf)])&&_0x3a9ed1[_0x279d17(0x1cf)]>0x0&&/^\d+\.\d+\.\d+$/[_0x279d17(0x1ab)](_0x3a9ed1[_0x279d17(0x297)]||'')&&[_0x279d17(0x1da),_0x279d17(0x218),'catalogHash'][_0x279d17(0x1d6)](_0x2d2b79=>/^[a-f0-9]{64}$/[_0x279d17(0x1ab)](_0x3a9ed1[_0x2d2b79]||''))&&hashFile(path[_0x279d17(0x291)](_0x480ead,_0x279d17(0x207)))===_0x3a9ed1['resourceDigest']){const _0xe549d0=verifyRelease(path['join'](_0x52f5c3['runtimeRoot'],_0x279d17(0x2b2),_0x3a9ed1['version']+'-'+_0x3a9ed1['digest']),_0x52f5c3['publicKey']);if(_0xe549d0[_0x279d17(0x297)]===_0x3a9ed1['version']&&_0xe549d0[_0x279d17(0x1da)]===_0x3a9ed1[_0x279d17(0x1da)])_0x5ddc7d={..._0x3a9ed1,'connectionId':_0x507b3b[_0x279d17(0x1c8)]};}}const _0x1b0496=_0x5ddc7d?[_0x279d17(0x1c8),_0x279d17(0x297),'digest',_0x279d17(0x1cf),_0x279d17(0x218),_0x279d17(0x231)][_0x279d17(0x298)](_0x2997df=>_0xf4bc59[_0x2997df]!==_0x5ddc7d[_0x2997df]):[_0x279d17(0x213)];if(_0xf4bc59[_0x279d17(0x237)]!==!![])_0x1b0496[_0x279d17(0x200)](_0x279d17(0x237));if(!Number['isSafeInteger'](_0xf4bc59['childPid'])||_0xf4bc59[_0x279d17(0x206)]<=0x0)_0x1b0496[_0x279d17(0x200)](_0x279d17(0x206));if(!sameRegistrationWorkspace(_0xf4bc59[_0x279d17(0x282)]||'',_0x480ead))_0x1b0496[_0x279d17(0x200)](_0x279d17(0x282));if(_0x1b0496[_0x279d17(0x205)])throw Object[_0x279d17(0x192)](new Error(_0x279d17(0x1dc)),{'code':_0x279d17(0x212),'mismatchFields':_0x1b0496});}const _0x333988={};_0x333988[_0x279d17(0x210)]=_0x279d17(0x1a2),_0x333988[_0x279d17(0x25b)]=_0x4d4131,_0x408526=changeFence(_0x480ead,_0x408526['epoch'],_0x333988);for(const _0x4ebd8e of _0x81f90b){const _0xa7dcfc={};_0xa7dcfc[_0x279d17(0x25b)]=_0x4d4131;const _0x292212=await _0x214bd9[_0x279d17(0x288)](_0x4ebd8e,'abort',_0xa7dcfc);if(_0x292212[_0x279d17(0x1ad)]!=='authenticated-live-process'||!['active',_0x279d17(0x27f)][_0x279d17(0x2af)](_0x292212[_0x279d17(0x201)]))fail(_0x279d17(0x212));}const _0x25e99b=_0x18fa39()==='cancel'||_0x1b77cf[_0x279d17(0x24f)](_0x46fbfd=>_0x46fbfd[_0x279d17(0x1eb)]===_0x279d17(0x1b5)),_0x283bf0={};_0x283bf0[_0x279d17(0x1b1)]=_0x1b77cf,_0x283bf0[_0x279d17(0x199)]=_0x279d17(0x1bb),_0x428b93(_0x25e99b?_0x279d17(0x23a):_0x279d17(0x1bb),_0x283bf0);const _0xe558fb={};return _0xe558fb[_0x279d17(0x201)]=_0x25e99b?'cancelled':_0x279d17(0x20b),_0xe558fb[_0x279d17(0x25b)]=_0x4d4131,_0xe558fb['recovery']=_0x279d17(0x1bb),_0xe558fb[_0x279d17(0x1b1)]=_0x1b77cf,_0xe558fb;},_0x1f2f9d=async(_0x1cfb54=![])=>{const _0x515fa8=_0x25ab55,_0x1fb6ec=new Set();for(const _0x4c37aa of _0x214bd9[_0x515fa8(0x251)](_0x480ead)){_0x4f2e0b();const _0x4df25e={};_0x4df25e[_0x515fa8(0x25b)]=_0x4d4131,_0x4df25e[_0x515fa8(0x1d0)]=_0x408526[_0x515fa8(0x1d0)];const _0x1c650e=await _0x214bd9['controlConnection'](_0x4c37aa,'abort',_0x4df25e);_0x4f2e0b();const _0x241216={};_0x241216[_0x515fa8(0x1eb)]=_0x515fa8(0x1ee),_0x241216[_0x515fa8(0x1c8)]=_0x4c37aa[_0x515fa8(0x1c8)];const _0x279665={};_0x279665['status']='pending-safe-boundary',_0x279665['transactionId']=_0x4d4131,_0x279665['blockers']=[_0x241216];if(_0x1c650e['evidence']!==_0x515fa8(0x1d7)||![_0x515fa8(0x1b7),'ready-next-connection']['includes'](_0x1c650e[_0x515fa8(0x201)]))return _0x279665;_0x1fb6ec[_0x515fa8(0x26d)](_0x4c37aa[_0x515fa8(0x1c8)]);}const _0x80899a=require(_0x515fa8(0x1ec));_0x80899a['withAdmissionLock'](_0x480ead,_0x1e7a4e=>{const _0x30aa1b=_0x515fa8;_0x4f2e0b();if(_0x1e7a4e[_0x30aa1b(0x1d0)]!==_0x408526['epoch']||_0x1e7a4e[_0x30aa1b(0x210)]!=='draining'||_0x1e7a4e[_0x30aa1b(0x25b)]!==_0x4d4131)fail(_0x30aa1b(0x1e0));if(Object[_0x30aa1b(0x224)](_0x1e7a4e['members']||{})[_0x30aa1b(0x24f)](_0x81b210=>_0x81b210['state']!=='closed'&&!_0x1fb6ec[_0x30aa1b(0x258)](_0x81b210[_0x30aa1b(0x1c8)])))fail(_0x30aa1b(0x1ee));const _0x5e2095={};_0x5e2095[_0x30aa1b(0x25b)]=_0x4d4131,_0x5e2095[_0x30aa1b(0x22b)]=_0x70a397[_0x30aa1b(0x22b)],_0x5e2095[_0x30aa1b(0x2a8)]=[..._0x1fb6ec];const _0x3ea793={};_0x3ea793['abortedDrain']=_0x5e2095;const _0x57a139={..._0x1e7a4e,'state':_0x30aa1b(0x1a2),'epoch':_0x1e7a4e[_0x30aa1b(0x1d0)]+0x1,'stopRequested':![],'targetVersion':null,'targetDigest':null,..._0x1cfb54?_0x3ea793:{}};_0x80899a[_0x30aa1b(0x1e9)](_0x480ead,_0x57a139);const _0x5e4da7={};_0x5e4da7[_0x30aa1b(0x199)]=_0x30aa1b(0x1c0),_0x428b93(_0x30aa1b(0x23a),_0x1cfb54?_0x5e4da7:{});});const _0x5858f0={};_0x5858f0['recovery']=_0x515fa8(0x1c0);const _0x33be78={'status':_0x515fa8(0x23a),'transactionId':_0x4d4131,'resourcesApplied':![],..._0x1cfb54?_0x5858f0:{}};return _0x33be78;};try{const _0x2ffa93=verifyRelease(_0x52f5c3['release'],_0x52f5c3[_0x25ab55(0x29f)]);_0x2bbb0d['validate']();const _0xdb8934={};_0xdb8934['version']=_0x2ffa93[_0x25ab55(0x297)],_0xdb8934[_0x25ab55(0x1da)]=_0x2ffa93[_0x25ab55(0x1da)];const _0x32e528=_0xdb8934;if(_0x70a397&&(!_0x70a397[_0x25ab55(0x21c)]||!_0x70a397[_0x25ab55(0x282)]))fail(_0x25ab55(0x278));if(_0x70a397&&!sameRegistrationWorkspace(_0x70a397[_0x25ab55(0x282)],_0x480ead))fail(_0x25ab55(0x219));if(_0x70a397?.[_0x25ab55(0x21c)]&&(_0x70a397[_0x25ab55(0x21c)][_0x25ab55(0x297)]!==_0x32e528[_0x25ab55(0x297)]||_0x70a397[_0x25ab55(0x21c)][_0x25ab55(0x1da)]!==_0x32e528[_0x25ab55(0x1da)]))fail(_0x25ab55(0x219));const _0x4e7aec=require(_0x25ab55(0x2a6))['resourceContractDigest'](_0x2bbb0d['plan']);if(_0x70a397?.[_0x25ab55(0x22b)]&&_0x70a397[_0x25ab55(0x22b)]!==_0x4e7aec)fail(_0x25ab55(0x1af));if(_0x70a397&&!_0x70a397[_0x25ab55(0x22b)]){if(!_0x70a397['preparedPlanDigest']||_0x70a397['preparedPlanDigest']!==hashFile(_0x2bbb0d[_0x25ab55(0x1aa)]))fail(_0x25ab55(0x20d));const _0x34311f={};_0x34311f[_0x25ab55(0x22b)]=_0x4e7aec,_0x428b93(_0x70a397[_0x25ab55(0x201)],_0x34311f);}if(!_0x70a397&&_0x8a822d)fail(_0x25ab55(0x278));const _0x4e763d={};_0x4e763d[_0x25ab55(0x21c)]=_0x32e528,_0x4e763d[_0x25ab55(0x22b)]=_0x4e7aec;if(!_0x70a397)_0x428b93('preflight-pending',_0x4e763d);_0x45490a=!![],_0x4f2e0b();if(_0x214bd9['reconcileWorkspaceConnections']){const _0x152b7e=await _0x214bd9['reconcileWorkspaceConnections'](_0x480ead,{'apply':!![],'forceRecover':_0x52f5c3[_0x25ab55(0x1df)]===!![],'exitGraceMs':Number(process.env.APT_CONNECTION_EXIT_GRACE_MS||0x2710),'legacyRecovery':_0x52f5c3[_0x25ab55(0x271)],'recoveryContext':_0x52f5c3[_0x25ab55(0x243)],'legacyRecoveryRelease':_0x52f5c3[_0x25ab55(0x233)],'publicKey':_0x52f5c3[_0x25ab55(0x29f)],'transactionId':_0x70a397?.[_0x25ab55(0x25b)]===_0x4d4131?_0x4d4131:undefined});_0x408526=readFence(_0x480ead);if(_0x152b7e[_0x25ab55(0x1b1)]['length']){const _0x47a7c0={};_0x47a7c0[_0x25ab55(0x1b1)]=_0x152b7e[_0x25ab55(0x1b1)],_0x47a7c0['connectionDiagnostics']=_0x152b7e[_0x25ab55(0x263)],_0x428b93(_0x25ab55(0x2b0),_0x47a7c0);const _0x297715={};return _0x297715[_0x25ab55(0x201)]='legacy-ownership-unverified',_0x297715[_0x25ab55(0x25b)]=_0x4d4131,_0x297715[_0x25ab55(0x1b1)]=_0x152b7e[_0x25ab55(0x1b1)],_0x297715[_0x25ab55(0x226)]=_0x152b7e[_0x25ab55(0x263)],_0x297715;}}const _0xd04996={};_0xd04996[_0x25ab55(0x1eb)]=_0x25ab55(0x28a);const _0x18bed4={};_0x18bed4[_0x25ab55(0x201)]=_0x25ab55(0x2a3),_0x18bed4[_0x25ab55(0x25b)]=_0x4d4131,_0x18bed4[_0x25ab55(0x1b1)]=[_0xd04996];if(_0x70a397?.[_0x25ab55(0x1ed)]&&!_0x52f5c3[_0x25ab55(0x203)]||_0x70a397?.[_0x25ab55(0x23a)])return _0x18bed4;const _0x3879c7=await require('../core/upgrade-runs')['reconcileUpgradeWorkers'](_0x480ead,_0x489a45);if(_0x3879c7['observations'][_0x25ab55(0x205)])_0x428b93(_0x70a397['status'],{'workerReconciliation':_0x3879c7});if(!_0x8a822d&&_0x408526[_0x25ab55(0x210)]===_0x25ab55(0x1a2)&&_0x18fa39()===_0x25ab55(0x289)){const _0x4fc5e4=_0x2bbb0d[_0x25ab55(0x28f)]();if(_0x70a397?.[_0x25ab55(0x25b)]!==_0x4d4131||_0x70a397['resourcesApplied']||_0x70a397[_0x25ab55(0x1c6)]||_0x70a397[_0x25ab55(0x1a6)]||_0x2bbb0d['plan'][_0x25ab55(0x201)]!==_0x25ab55(0x276)||_0x4fc5e4[_0x25ab55(0x24f)](_0x15c4b2=>_0x15c4b2[_0x25ab55(0x201)]!==_0x25ab55(0x276)||!['original',_0x25ab55(0x1db)][_0x25ab55(0x2af)](_0x15c4b2[_0x25ab55(0x1ae)])))fail('UPDATE_RECOVERY_REQUIRED');if(_0x4454c7&&(_0x4454c7[_0x25ab55(0x1f2)][_0x25ab55(0x201)]!==_0x25ab55(0x276)||_0x4454c7['plan']['operations'][_0x25ab55(0x24f)](_0x52cf6f=>_0x52cf6f['status']!==_0x25ab55(0x276)||![_0x52cf6f['oldHash'],_0x52cf6f[_0x25ab55(0x265)]]['includes'](hashFile(_0x52cf6f[_0x25ab55(0x293)])))))fail(_0x25ab55(0x2a2));_0x4454c7?.[_0x25ab55(0x1fe)](),_0x2bbb0d[_0x25ab55(0x1fe)](),_0x428b93(_0x25ab55(0x23a),{'cancelled':!![],'cancellation':{'reason':_0x25ab55(0x19a),'cancelledAt':new Date()['toISOString']()}});const _0x287349={};return _0x287349[_0x25ab55(0x201)]=_0x25ab55(0x23a),_0x287349[_0x25ab55(0x25b)]=_0x4d4131,_0x287349[_0x25ab55(0x21d)]=![],_0x287349;}if(!_0x8a822d&&_0x70a397?.['recovery']===_0x25ab55(0x1e3)){_0x4f2e0b();const _0x1c2d03={};_0x1c2d03[_0x25ab55(0x1eb)]='UPDATE_SUSPENDED';const _0x534247={};_0x534247[_0x25ab55(0x201)]=_0x25ab55(0x2a3),_0x534247[_0x25ab55(0x25b)]=_0x4d4131,_0x534247['blockers']=[_0x1c2d03];if(_0x18fa39()==='suspend'&&!_0x52f5c3[_0x25ab55(0x203)])return _0x534247;const _0x27d39d=_0x408526[_0x25ab55(0x210)]===_0x25ab55(0x1a2)&&_0x408526[_0x25ab55(0x21a)]?.[_0x25ab55(0x25b)]===_0x4d4131&&_0x408526[_0x25ab55(0x21a)]['resourceContractDigest']===_0x4e7aec;if(!_0x27d39d&&_0x408526[_0x25ab55(0x210)]!=='draining'||_0x408526[_0x25ab55(0x25b)]!==_0x4d4131||_0x70a397[_0x25ab55(0x1c6)]||_0x70a397[_0x25ab55(0x1a6)]||_0x70a397[_0x25ab55(0x21d)]||_0x2bbb0d['plan'][_0x25ab55(0x201)]!==_0x25ab55(0x276)||_0x2bbb0d[_0x25ab55(0x28f)]()[_0x25ab55(0x24f)](_0x94f69e=>_0x94f69e[_0x25ab55(0x1ae)]!==_0x25ab55(0x2b1)||_0x94f69e[_0x25ab55(0x201)]!==_0x25ab55(0x276)))fail(_0x25ab55(0x1b0));if(_0x4454c7&&(_0x4454c7[_0x25ab55(0x1f2)]['status']!==_0x25ab55(0x276)||_0x4454c7[_0x25ab55(0x1f2)][_0x25ab55(0x27d)][_0x25ab55(0x24f)](_0x382077=>_0x382077[_0x25ab55(0x201)]!==_0x25ab55(0x276)||hashFile(_0x382077[_0x25ab55(0x293)])!==_0x382077['oldHash'])))fail(_0x25ab55(0x2a2));if(_0x27d39d){const _0x1a47b4={};_0x1a47b4[_0x25ab55(0x199)]=_0x25ab55(0x1c0),_0x428b93(_0x25ab55(0x23a),_0x1a47b4);const _0x579517={};return _0x579517[_0x25ab55(0x201)]=_0x25ab55(0x23a),_0x579517[_0x25ab55(0x25b)]=_0x4d4131,_0x579517[_0x25ab55(0x21d)]=![],_0x579517[_0x25ab55(0x199)]=_0x25ab55(0x1c0),_0x579517;}return await _0x1f2f9d(!![]);}if(!_0x8a822d&&_0x70a397?.[_0x25ab55(0x199)]===_0x25ab55(0x1fe)){const _0x1c3af1={};_0x1c3af1['code']=_0x25ab55(0x28a);const _0x406730={};_0x406730[_0x25ab55(0x201)]=_0x25ab55(0x2a3),_0x406730[_0x25ab55(0x25b)]=_0x4d4131,_0x406730[_0x25ab55(0x1b1)]=[_0x1c3af1];if(_0x18fa39()===_0x25ab55(0x22d))return _0x406730;return await _0x4321d2(_0x70a397[_0x25ab55(0x1b1)]||[]);}const _0x2b308e=readGeneration(_0x480ead);if(!_0x8a822d&&_0x408526[_0x25ab55(0x210)]===_0x25ab55(0x1a2)&&_0x2b308e?.['version']===_0x32e528['version']&&_0x2b308e[_0x25ab55(0x1da)]===_0x32e528[_0x25ab55(0x1da)]&&_0x2b308e[_0x25ab55(0x218)]===hashFile(path['join'](_0x480ead,_0x25ab55(0x26e),_0x25ab55(0x25c)))&&/^[a-f0-9]{64}$/[_0x25ab55(0x1ab)](_0x2b308e[_0x25ab55(0x231)]||'')&&_0x2bbb0d['plan'][_0x25ab55(0x27d)][_0x25ab55(0x205)]===0x0&&!_0x2bbb0d[_0x25ab55(0x1f2)][_0x25ab55(0x23c)][_0x25ab55(0x205)]&&!_0x4454c7?.[_0x25ab55(0x1f2)]['operations'][_0x25ab55(0x24f)](_0x3e978a=>_0x3e978a[_0x25ab55(0x1bc)]!==_0x3e978a['newHash'])&&!_0x52f5c3[_0x25ab55(0x248)]){const _0x400d1a=await _0x214bd9['probeWorkspaceConnections'](_0x480ead,_0x2b308e);if(![_0x25ab55(0x1b7),_0x25ab55(0x27f)][_0x25ab55(0x2af)](_0x400d1a[_0x25ab55(0x201)]))return{..._0x400d1a,'transactionId':_0x4d4131,'target':_0x32e528,'noOp':!![],'cancelledRuns':[]};projectGeneration(_0x52f5c3[_0x25ab55(0x249)],_0x480ead,_0x2b308e),_0x428b93(_0x400d1a[_0x25ab55(0x201)],{'target':_0x32e528,'generation':_0x2b308e[_0x25ab55(0x1cf)],'noOp':!![],'cancelledRuns':[],'blockers':[],'activationEvidence':_0x400d1a[_0x25ab55(0x201)]===_0x25ab55(0x1b7)?_0x25ab55(0x1d7):null});const _0xbc69d7={};_0xbc69d7[_0x25ab55(0x201)]=_0x25ab55(0x22f);const _0x326db4={..._0x400d1a};return _0x326db4['transactionId']=_0x4d4131,_0x326db4[_0x25ab55(0x21c)]=_0x32e528,_0x326db4[_0x25ab55(0x1cf)]=_0x2b308e[_0x25ab55(0x1cf)],_0x326db4[_0x25ab55(0x253)]=!![],_0x326db4[_0x25ab55(0x21d)]=![],_0x326db4[_0x25ab55(0x19e)]=[],_0x326db4[_0x25ab55(0x244)]=_0xbc69d7,_0x326db4;}if(_0x8a822d&&_0x408526[_0x25ab55(0x210)]==='open'){if(_0x2b308e['version']!==_0x32e528[_0x25ab55(0x297)]||_0x2b308e['digest']!==_0x32e528[_0x25ab55(0x1da)]||!_0x2b308e[_0x25ab55(0x218)]||!/^[a-f0-9]{64}$/[_0x25ab55(0x1ab)](_0x2b308e['catalogHash']||'')||hashFile(path[_0x25ab55(0x291)](_0x480ead,'.agents','manifest.json'))!==_0x2b308e[_0x25ab55(0x218)])fail('GENERATION_RECOVERY_MISMATCH');if(!_0x70a397||_0x70a397[_0x25ab55(0x25b)]!==_0x4d4131||!_0x70a397['workspace']||!sameRegistrationWorkspace(_0x70a397[_0x25ab55(0x282)],_0x480ead))fail(_0x25ab55(0x278));const _0x6dc6c7=_0x214bd9[_0x25ab55(0x251)](_0x480ead),_0x1d0882=Object[_0x25ab55(0x224)](_0x408526[_0x25ab55(0x22e)]||{})[_0x25ab55(0x298)](_0x3fe9eb=>_0x3fe9eb[_0x25ab55(0x210)]!=='closed');for(const _0x531eca of _0x1d0882)if(!_0x6dc6c7['some'](_0x3f4c03=>_0x3f4c03['connectionId']===_0x531eca[_0x25ab55(0x1c8)]))fail('CONNECTION_UNCONFIRMED');for(const _0x3264fb of _0x6dc6c7){const _0x1dbb25=await _0x214bd9[_0x25ab55(0x1a9)](_0x3264fb);if(_0x1dbb25[_0x25ab55(0x1ad)]!==_0x25ab55(0x1d7)||_0x1dbb25[_0x25ab55(0x237)]!==!![]||[_0x25ab55(0x297),_0x25ab55(0x1da),_0x25ab55(0x218),'catalogHash',_0x25ab55(0x1cf)]['some'](_0x1031b7=>_0x1dbb25[_0x1031b7]!==_0x2b308e[_0x1031b7]))fail(_0x25ab55(0x19c));}projectGeneration(_0x52f5c3['runtimeRoot'],_0x480ead,_0x2b308e);if(_0x2bbb0d[_0x25ab55(0x1f2)][_0x25ab55(0x201)]!==_0x25ab55(0x28e))_0x2bbb0d[_0x25ab55(0x281)](_0x2b308e[_0x25ab55(0x1cf)]);_0x4454c7?.[_0x25ab55(0x281)]();const _0x111dd5=_0x6dc6c7[_0x25ab55(0x205)]?_0x25ab55(0x1b7):_0x25ab55(0x27f),_0x5e2932={};_0x5e2932['generation']=_0x2b308e[_0x25ab55(0x1cf)],_0x5e2932[_0x25ab55(0x218)]=_0x2b308e[_0x25ab55(0x218)],_0x5e2932[_0x25ab55(0x21d)]=!![],_0x5e2932[_0x25ab55(0x1b1)]=[],_0x5e2932[_0x25ab55(0x245)]=_0x6dc6c7[_0x25ab55(0x205)]?'authenticated-live-process':null,_0x428b93(_0x111dd5,_0x5e2932);const _0x5357fe=await _0xf7305d(_0x111dd5),_0x241a61=_0x5357fe[_0x25ab55(0x201)]===_0x25ab55(0x1e8)||_0x5357fe['status']===_0x25ab55(0x27e)||[_0x25ab55(0x1d9),_0x25ab55(0x1fb)][_0x25ab55(0x2af)](_0x5357fe[_0x25ab55(0x1eb)]),_0x1f7913=_0x241a61?_0x25ab55(0x2a3):_0x111dd5,_0x4cbdf5={};_0x4cbdf5[_0x25ab55(0x1cf)]=_0x2b308e[_0x25ab55(0x1cf)],_0x4cbdf5['resourceDigest']=_0x2b308e[_0x25ab55(0x218)],_0x4cbdf5['activationEvidence']=_0x6dc6c7['length']?_0x25ab55(0x1d7):null;if(_0x1f7913!==_0x111dd5)_0x428b93(_0x1f7913,_0x4cbdf5);const _0x17fdb4={};_0x17fdb4[_0x25ab55(0x1eb)]=_0x25ab55(0x1d9),_0x17fdb4[_0x25ab55(0x1cc)]=_0x25ab55(0x1c1);const _0x155bac=_0x241a61?[_0x17fdb4]:_0x5357fe[_0x25ab55(0x201)]===_0x25ab55(0x20b)?[{'code':'INDEX_REBUILD_FAILED','phase':_0x25ab55(0x1c1),'indexCode':_0x5357fe['code']}]:[],_0x13f41c={'status':_0x1f7913,'runtimeActivation':_0x1f7913,'transactionId':_0x4d4131,'target':_0x32e528,'generation':_0x2b308e[_0x25ab55(0x1cf)],'resourceDigest':_0x2b308e[_0x25ab55(0x218)],'resourcesApplied':!![],'cancelledRuns':_0x70a397[_0x25ab55(0x19e)]||[],'indexResult':_0x5357fe,..._0x155bac['length']?{'blockers':_0x155bac}:{}};return _0x13f41c;}if(_0x2bbb0d[_0x25ab55(0x1f2)][_0x25ab55(0x23c)]['some'](_0x1b3f58=>_0x1b3f58[_0x25ab55(0x257)])){const _0x2c944b={};_0x2c944b['target']=_0x32e528,_0x2c944b[_0x25ab55(0x1b1)]=_0x2bbb0d[_0x25ab55(0x1f2)]['conflicts'],_0x428b93(_0x25ab55(0x254),_0x2c944b);const _0x175c60={};return _0x175c60[_0x25ab55(0x201)]=_0x25ab55(0x254),_0x175c60['transactionId']=_0x4d4131,_0x175c60[_0x25ab55(0x1b1)]=_0x2bbb0d[_0x25ab55(0x1f2)][_0x25ab55(0x23c)],_0x175c60;}if(_0x408526['state']==='open'){const _0x57e4e6={'operation':_0x25ab55(0x255),..._0x489a45},_0x56cfc4=preflightWorkspaceContracts(_0x480ead,_0x57e4e6);if(_0x56cfc4[_0x25ab55(0x201)]!=='compatible'){const _0x2a77ee={};_0x2a77ee[_0x25ab55(0x1b1)]=_0x56cfc4['blockers'],_0x428b93('legacy-ownership-unverified',_0x2a77ee);const _0x444c3f={};return _0x444c3f[_0x25ab55(0x201)]=_0x25ab55(0x2b0),_0x444c3f[_0x25ab55(0x25b)]=_0x4d4131,_0x444c3f['blockers']=_0x56cfc4[_0x25ab55(0x1b1)],_0x444c3f;}const _0x2f80c7=await(_0x52f5c3['preflight']||preflightCandidate)({'workspace':_0x480ead,'release':_0x52f5c3[_0x25ab55(0x241)],'runtimeRoot':_0x52f5c3[_0x25ab55(0x249)],'publicKey':_0x52f5c3[_0x25ab55(0x29f)]});_0x499f38();if(_0x2f80c7[_0x25ab55(0x201)]!=='ready'||_0x2f80c7['version']!==_0x32e528[_0x25ab55(0x297)]||_0x2f80c7[_0x25ab55(0x1da)]!==_0x32e528['digest'])fail(_0x25ab55(0x270));const _0x3b5d4=[],_0x2576ce=[];for(const _0x41865c of _0x214bd9[_0x25ab55(0x251)](_0x480ead)){const _0x45bd4e=await _0x214bd9[_0x25ab55(0x1a9)](_0x41865c);if(_0x45bd4e[_0x25ab55(0x1ad)]!==_0x25ab55(0x1d7)||_0x45bd4e['serving']!==!![]||_0x41865c[_0x25ab55(0x29b)]!==0x2){const _0x475146={};_0x475146[_0x25ab55(0x1eb)]='CONNECTION_UNCONFIRMED',_0x475146[_0x25ab55(0x1c8)]=_0x41865c[_0x25ab55(0x1c8)];const _0x322b4e=[_0x475146],_0x2361b8={};_0x2361b8[_0x25ab55(0x1b1)]=_0x322b4e,_0x428b93('legacy-ownership-unverified',_0x2361b8);const _0x47d672={};return _0x47d672[_0x25ab55(0x201)]=_0x25ab55(0x2b0),_0x47d672[_0x25ab55(0x25b)]=_0x4d4131,_0x47d672[_0x25ab55(0x1b1)]=_0x322b4e,_0x47d672;}(!_0x45bd4e['catalogHash']||_0x45bd4e['catalogHash']!==_0x2f80c7[_0x25ab55(0x231)])&&_0x2576ce[_0x25ab55(0x200)](_0x41865c[_0x25ab55(0x1c8)]);const _0x2de9fe={};_0x2de9fe[_0x25ab55(0x1c8)]=_0x41865c[_0x25ab55(0x1c8)],_0x2de9fe['supervisorPid']=_0x41865c[_0x25ab55(0x2ab)],_0x2de9fe[_0x25ab55(0x1f7)]=_0x45bd4e[_0x25ab55(0x1f7)]||_0x41865c[_0x25ab55(0x1f7)]||null,_0x2de9fe[_0x25ab55(0x249)]=_0x41865c[_0x25ab55(0x249)]||_0x52f5c3[_0x25ab55(0x249)],registerMember(_0x480ead,_0x2de9fe);const _0x25031d={};_0x25031d[_0x25ab55(0x1c8)]=_0x41865c[_0x25ab55(0x1c8)],_0x25031d[_0x25ab55(0x282)]=_0x480ead,_0x25031d['version']=_0x45bd4e[_0x25ab55(0x297)],_0x25031d[_0x25ab55(0x1da)]=_0x45bd4e[_0x25ab55(0x1da)],_0x25031d['generation']=_0x45bd4e[_0x25ab55(0x1cf)],_0x25031d[_0x25ab55(0x218)]=_0x45bd4e[_0x25ab55(0x218)]??null,_0x25031d['catalogHash']=_0x45bd4e['catalogHash'],_0x3b5d4[_0x25ab55(0x200)](_0x25031d),_0x3b5d4[_0x3b5d4['length']-0x1][_0x25ab55(0x2a1)]=_0x45bd4e[_0x25ab55(0x2a1)]||[];}_0x428b93(_0x25ab55(0x276),{'target':_0x32e528,'previousConnections':_0x3b5d4,'catalogReconnectRequired':_0x2576ce,'upgradeRuns':snapshotUpgradeRuns(_0x480ead,_0x489a45),'catalogHash':_0x2f80c7[_0x25ab55(0x231)],'generation':(readGeneration(_0x480ead)?.['generation']||0x0)+0x1});const _0x78863d={};_0x78863d[_0x25ab55(0x1f0)]=_0x499f38;const _0x51086c={'state':_0x25ab55(0x193),'stopRequested':!![],'transactionId':_0x4d4131,'targetVersion':_0x32e528['version'],'targetDigest':_0x32e528['digest'],..._0xb8a658?_0x78863d:{}};_0x408526=changeFence(_0x480ead,_0x408526[_0x25ab55(0x1d0)],_0x51086c);}else{if(_0x408526['transactionId']!==_0x4d4131||_0x408526[_0x25ab55(0x262)]!==_0x32e528[_0x25ab55(0x297)]||_0x408526[_0x25ab55(0x217)]!==_0x32e528[_0x25ab55(0x1da)])fail(_0x25ab55(0x1e0));}const _0x46244e=_0x52f5c3[_0x25ab55(0x1dd)]===undefined?0x78:Number(_0x52f5c3[_0x25ab55(0x1dd)]);if(!Number[_0x25ab55(0x290)](_0x46244e)||_0x46244e<0x0||_0x46244e>0xe10)fail(_0x25ab55(0x1b3));const _0x3e5fcf=Date[_0x25ab55(0x260)]()+_0x46244e*0x3e8;if(_0x408526[_0x25ab55(0x210)]===_0x25ab55(0x193))for(;;){_0x499f38();if(_0x18fa39()===_0x25ab55(0x22d)){const _0x464692={};_0x464692['code']=_0x25ab55(0x28a);const _0x103d2e={};_0x103d2e[_0x25ab55(0x1b1)]=[_0x464692],_0x428b93(_0x25ab55(0x2a3),_0x103d2e);const _0x2af6af={};_0x2af6af[_0x25ab55(0x1eb)]='UPDATE_SUSPENDED';const _0x4ec032={};return _0x4ec032['status']=_0x25ab55(0x2a3),_0x4ec032[_0x25ab55(0x25b)]=_0x4d4131,_0x4ec032[_0x25ab55(0x1b1)]=[_0x2af6af],_0x4ec032;}if(_0x18fa39()==='cancel')return await _0x1f2f9d();_0x81f90b=_0x214bd9[_0x25ab55(0x251)](_0x480ead);const _0x324a6e=[],_0x17ed24=[],_0x50f86c=new Set();for(const _0x34bde9 of _0x81f90b){const _0x658153=await _0x214bd9[_0x25ab55(0x1a9)](_0x34bde9),_0x4914e7=_0x34bde9[_0x25ab55(0x1f7)]!==undefined&&String(_0x658153[_0x25ab55(0x1f7)]||'')!==String(_0x34bde9[_0x25ab55(0x1f7)]||'')||_0x34bde9[_0x25ab55(0x1c5)]!==undefined&&String(_0x658153[_0x25ab55(0x1c5)]||'')!==String(_0x34bde9[_0x25ab55(0x1c5)]||''),_0x5906ac=_0x658153[_0x25ab55(0x1ad)]==='authenticated-live-process'&&!_0x4914e7;if(!_0x5906ac){const _0x4e1a8a={};_0x4e1a8a[_0x25ab55(0x1eb)]=_0x4914e7?_0x25ab55(0x195):_0x658153[_0x25ab55(0x1eb)]||'CONNECTION_UNCONFIRMED',_0x4e1a8a[_0x25ab55(0x1c8)]=_0x34bde9[_0x25ab55(0x1c8)],_0x324a6e[_0x25ab55(0x200)](_0x4e1a8a);continue;}_0x50f86c[_0x25ab55(0x26d)](_0x34bde9[_0x25ab55(0x1c8)]);if(!_0x70a397[_0x25ab55(0x1b4)]?.['some'](_0x4a2b0f=>_0x4a2b0f[_0x25ab55(0x1c8)]===_0x34bde9[_0x25ab55(0x1c8)])&&_0x658153[_0x25ab55(0x237)]===!![]){const _0x461fab={};_0x461fab[_0x25ab55(0x1c8)]=_0x34bde9[_0x25ab55(0x1c8)],_0x461fab[_0x25ab55(0x282)]=_0x480ead,_0x461fab[_0x25ab55(0x297)]=_0x658153[_0x25ab55(0x297)],_0x461fab[_0x25ab55(0x1da)]=_0x658153[_0x25ab55(0x1da)],_0x461fab['generation']=_0x658153[_0x25ab55(0x1cf)],_0x461fab[_0x25ab55(0x218)]=_0x658153['resourceDigest']??null,_0x461fab[_0x25ab55(0x231)]=_0x658153[_0x25ab55(0x231)],_0x461fab['controlCapabilities']=_0x658153[_0x25ab55(0x2a1)]||[],_0x428b93(_0x70a397[_0x25ab55(0x201)],{'previousConnections':[..._0x70a397[_0x25ab55(0x1b4)]||[],_0x461fab]});}if(!_0x658153[_0x25ab55(0x2a1)]?.[_0x25ab55(0x2af)](_0x25ab55(0x23b)))continue;const _0x55383b={..._0x32e528};_0x55383b['transactionId']=_0x4d4131,_0x55383b[_0x25ab55(0x1d0)]=_0x408526['epoch'];const _0x2cb089=await _0x214bd9[_0x25ab55(0x288)](_0x34bde9,'request-stop',_0x55383b),_0x2a176d={};_0x2a176d[_0x25ab55(0x228)]=_0x34bde9,_0x2a176d['proof']=_0x658153,_0x2a176d[_0x25ab55(0x24b)]=_0x2cb089,_0x17ed24[_0x25ab55(0x200)](_0x2a176d);if(_0x2cb089[_0x25ab55(0x1ad)]!==_0x25ab55(0x1d7)||![_0x25ab55(0x198),_0x25ab55(0x2a3)][_0x25ab55(0x2af)](_0x2cb089[_0x25ab55(0x201)]))_0x324a6e['push']({'code':_0x2cb089['code']||_0x25ab55(0x2ad),'connectionId':_0x34bde9['connectionId']});}const _0xf896f6=workspaceOwnership(_0x480ead,readFence(_0x480ead),_0x5427db,_0x489a45),_0xb54cc0=_0xf896f6[_0x25ab55(0x1f6)](_0x6eceac=>({'code':'OWNERSHIP_IN_FLIGHT','ownership':_0x6eceac}));_0xb54cc0['push'](..._0x324a6e);if(_0x70a397[_0x25ab55(0x196)]?.[_0x25ab55(0x205)]&&_0x81f90b[_0x25ab55(0x205)]){const _0x59817a=_0x81f90b[_0x25ab55(0x1f6)](_0x56024b=>({'code':_0x25ab55(0x275),'connectionId':_0x56024b[_0x25ab55(0x1c8)]}));_0x59817a[_0x25ab55(0x200)](..._0xb54cc0),_0x428b93(_0x25ab55(0x235),{'target':_0x32e528,'blockers':_0x59817a,'catalogStopResponses':_0x17ed24[_0x25ab55(0x1f6)](({receipt:_0x322360,response:_0x20517e})=>({'connectionId':_0x322360[_0x25ab55(0x1c8)],'evidence':_0x20517e[_0x25ab55(0x1ad)],'status':_0x20517e['status'],'code':_0x20517e[_0x25ab55(0x1eb)]||null,'supervisorPid':_0x20517e[_0x25ab55(0x2ab)],'childPid':_0x20517e[_0x25ab55(0x206)]}))});const _0x50023c={};return _0x50023c[_0x25ab55(0x201)]=_0x25ab55(0x235),_0x50023c[_0x25ab55(0x25b)]=_0x4d4131,_0x50023c['blockers']=_0x59817a,_0x50023c;}const _0x16a712=[];for(const _0x38870f of _0x81f90b){if(!_0x50f86c[_0x25ab55(0x258)](_0x38870f['connectionId']))continue;const _0x231c55={..._0x32e528};_0x231c55[_0x25ab55(0x25b)]=_0x4d4131,_0x231c55[_0x25ab55(0x1d0)]=_0x408526['epoch'];const _0x9da900=await _0x214bd9[_0x25ab55(0x288)](_0x38870f,_0x25ab55(0x208),_0x231c55),_0x34fe42=_0x17ed24[_0x25ab55(0x24a)](_0x36c695=>_0x36c695[_0x25ab55(0x228)]['connectionId']===_0x38870f[_0x25ab55(0x1c8)])?.[_0x25ab55(0x215)],_0x23285b={};_0x23285b[_0x25ab55(0x228)]=_0x38870f,_0x23285b[_0x25ab55(0x24b)]=_0x9da900,_0x23285b[_0x25ab55(0x215)]=_0x34fe42,_0x16a712[_0x25ab55(0x200)](_0x23285b);const _0x64d922=_0x9da900['evidence']==='authenticated-live-process'&&_0x9da900['status']==='safe-boundary',_0x3182d6={};_0x3182d6[_0x25ab55(0x1eb)]=_0x9da900['code']||'OWNERSHIP_IN_FLIGHT',_0x3182d6['connectionId']=_0x38870f['connectionId'],_0x3182d6[_0x25ab55(0x277)]=_0x9da900[_0x25ab55(0x1b1)]||[];if(!_0x64d922)_0xb54cc0['push'](_0x3182d6);}const _0x348463=_0x17ed24['length']===_0x81f90b[_0x25ab55(0x205)]&&_0x324a6e['length']>0x0&&_0x324a6e[_0x25ab55(0x1d6)](_0xbcf48b=>[_0x25ab55(0x296),_0x25ab55(0x221)][_0x25ab55(0x2af)](_0xbcf48b[_0x25ab55(0x1eb)])),_0xec26cc=_0x16a712[_0x25ab55(0x205)]===_0x81f90b[_0x25ab55(0x205)]&&_0x16a712[_0x25ab55(0x1d6)](_0x1e27ba=>_0x1e27ba['response'][_0x25ab55(0x201)]===_0x25ab55(0x273)&&Array['isArray'](_0x1e27ba[_0x25ab55(0x24b)][_0x25ab55(0x1b1)])&&_0x1e27ba[_0x25ab55(0x24b)][_0x25ab55(0x1b1)][_0x25ab55(0x205)]===0x0),_0x12ee4b=_0x348463&&_0x16a712[_0x25ab55(0x205)]===_0x81f90b[_0x25ab55(0x205)]&&_0x16a712[_0x25ab55(0x1d6)](_0x3a9f9d=>_0x3a9f9d[_0x25ab55(0x24b)][_0x25ab55(0x1ad)]===_0x25ab55(0x1d7)&&(_0xec26cc||_0x3a9f9d[_0x25ab55(0x24b)][_0x25ab55(0x201)]===_0x25ab55(0x2a3)&&Array['isArray'](_0x3a9f9d['response'][_0x25ab55(0x1b1)])&&_0x3a9f9d['response'][_0x25ab55(0x1b1)][_0x25ab55(0x205)]===0x1&&_0x3a9f9d[_0x25ab55(0x24b)]['blockers'][0x0]?.['kind']==='worker')&&typeof _0x3a9f9d[_0x25ab55(0x228)][_0x25ab55(0x1f7)]===_0x25ab55(0x21b)&&_0x3a9f9d['receipt'][_0x25ab55(0x1f7)]&&typeof _0x3a9f9d[_0x25ab55(0x228)][_0x25ab55(0x1c5)]===_0x25ab55(0x21b)&&_0x3a9f9d[_0x25ab55(0x228)][_0x25ab55(0x1c5)]&&_0x3a9f9d['proof'][_0x25ab55(0x1f7)]===_0x3a9f9d[_0x25ab55(0x228)]['supervisorProcessStart']&&_0x3a9f9d[_0x25ab55(0x215)]['childProcessStart']===_0x3a9f9d[_0x25ab55(0x228)][_0x25ab55(0x1c5)]&&(_0x3a9f9d[_0x25ab55(0x24b)][_0x25ab55(0x25b)]===_0x4d4131||_0x17ed24[_0x25ab55(0x24f)](_0x14079b=>_0x14079b['receipt'][_0x25ab55(0x1c8)]===_0x3a9f9d[_0x25ab55(0x228)][_0x25ab55(0x1c8)]&&_0x14079b[_0x25ab55(0x24b)][_0x25ab55(0x1ad)]===_0x25ab55(0x1d7)&&_0x14079b[_0x25ab55(0x24b)]['status']==='failed'&&[_0x25ab55(0x296),_0x25ab55(0x221)][_0x25ab55(0x2af)](_0x14079b[_0x25ab55(0x24b)]['code'])&&_0x14079b[_0x25ab55(0x24b)][_0x25ab55(0x2ab)]===_0x3a9f9d[_0x25ab55(0x24b)][_0x25ab55(0x2ab)]&&_0x14079b[_0x25ab55(0x24b)][_0x25ab55(0x206)]===_0x3a9f9d[_0x25ab55(0x24b)][_0x25ab55(0x206)])));if(_0x348463&&_0x12ee4b){const {releaseIdleCoordinatorForUpgrade:_0x13f623}=require('../core/upgrade-runs'),_0xe47de0=_0x17ed24[_0x25ab55(0x1f6)](_0x407ead=>{const _0x2fc5d4=_0x25ab55,_0x3d606a=readFence(_0x480ead)[_0x2fc5d4(0x22e)]?.[_0x407ead[_0x2fc5d4(0x228)][_0x2fc5d4(0x1c8)]],_0x548ae5=path['join'](_0x480ead,_0x2fc5d4(0x26e),'runtime',_0x2fc5d4(0x1d8),_0x407ead[_0x2fc5d4(0x228)]['connectionId']+_0x2fc5d4(0x2a9));let _0x10d966;try{_0x10d966=fs[_0x2fc5d4(0x1e1)](_0x548ae5);}catch{_0x10d966=null;}return{'connectionId':_0x407ead['receipt'][_0x2fc5d4(0x1c8)],'supervisorPid':_0x407ead[_0x2fc5d4(0x228)]['supervisorPid'],'childPid':_0x407ead[_0x2fc5d4(0x24b)][_0x2fc5d4(0x206)],'supervisorProcessStart':_0x407ead['receipt'][_0x2fc5d4(0x1f7)]||_0x407ead['proof']['supervisorProcessStart']||'','childProcessStart':_0x407ead[_0x2fc5d4(0x228)][_0x2fc5d4(0x1c5)]||_0x407ead[_0x2fc5d4(0x215)][_0x2fc5d4(0x1c5)]||_0x407ead[_0x2fc5d4(0x24b)][_0x2fc5d4(0x1c5)]||'','receiptSha256':_0x10d966?crypto[_0x2fc5d4(0x1c9)]('sha256')[_0x2fc5d4(0x1ce)](JSON[_0x2fc5d4(0x1fa)]({'connectionId':_0x407ead['receipt'][_0x2fc5d4(0x1c8)]||null,'workspace':_0x407ead[_0x2fc5d4(0x228)][_0x2fc5d4(0x282)]||null,'supervisorPid':_0x407ead['receipt'][_0x2fc5d4(0x2ab)]||null,'supervisorProcessStart':_0x407ead[_0x2fc5d4(0x228)][_0x2fc5d4(0x1f7)]||null,'childPid':_0x407ead[_0x2fc5d4(0x228)][_0x2fc5d4(0x206)]||null,'childProcessStart':_0x407ead[_0x2fc5d4(0x228)][_0x2fc5d4(0x1c5)]||null,'generation':_0x407ead['receipt']['generation']||null,'version':_0x407ead[_0x2fc5d4(0x228)]['version']||null,'digest':_0x407ead[_0x2fc5d4(0x228)][_0x2fc5d4(0x1da)]||null,'resourceDigest':_0x407ead[_0x2fc5d4(0x228)][_0x2fc5d4(0x218)]||null,'catalogHash':_0x407ead[_0x2fc5d4(0x228)]['catalogHash']||null}))[_0x2fc5d4(0x1da)](_0x2fc5d4(0x1ff)):'','memberSha256':crypto['createHash'](_0x2fc5d4(0x20e))['update'](JSON[_0x2fc5d4(0x1fa)](_0x3d606a||null))[_0x2fc5d4(0x1da)](_0x2fc5d4(0x1ff))};}),_0x3dcb94={};_0x3dcb94['transactionId']=_0x4d4131,_0x3dcb94[_0x25ab55(0x1d0)]=_0x408526[_0x25ab55(0x1d0)],_0x3dcb94[_0x25ab55(0x297)]=_0x32e528[_0x25ab55(0x297)],_0x3dcb94[_0x25ab55(0x1da)]=_0x32e528[_0x25ab55(0x1da)];const _0x352548=_0x13f623(_0x480ead,_0x3dcb94,_0x16a712['map'](_0x2f031b=>({'connectionId':_0x2f031b[_0x25ab55(0x228)][_0x25ab55(0x1c8)],..._0x2f031b['response'],'legacyRequestBound':_0x2f031b[_0x25ab55(0x24b)][_0x25ab55(0x25b)]===undefined})),{'roots':_0x5427db,'localOwnership':_0xf896f6,'runInspectionOptions':_0x489a45,'identityProofs':_0xe47de0,'resumeOnly':_0xec26cc,'ownershipCheck':()=>workspaceOwnership(_0x480ead,readFence(_0x480ead),_0x5427db,_0x489a45)});if(_0x352548[_0x25ab55(0x190)]){const _0xbc6623=[];let _0x202caf=!![];for(const _0x316bd2 of _0x17ed24){const _0x1714aa=await _0x214bd9[_0x25ab55(0x1a9)](_0x316bd2[_0x25ab55(0x228)]);if(_0x1714aa[_0x25ab55(0x1ad)]!==_0x25ab55(0x1d7)||_0x1714aa['supervisorPid']!==_0x316bd2[_0x25ab55(0x228)][_0x25ab55(0x2ab)]||_0x1714aa['childPid']!==_0x316bd2[_0x25ab55(0x24b)]['childPid']||_0x1714aa[_0x25ab55(0x1cf)]!==_0x316bd2[_0x25ab55(0x24b)][_0x25ab55(0x1cf)]||_0x1714aa[_0x25ab55(0x1f7)]!==(_0x316bd2[_0x25ab55(0x228)][_0x25ab55(0x1f7)]||_0x316bd2[_0x25ab55(0x215)][_0x25ab55(0x1f7)])||_0x1714aa[_0x25ab55(0x1c5)]!==(_0x316bd2[_0x25ab55(0x228)]['childProcessStart']||_0x316bd2[_0x25ab55(0x215)][_0x25ab55(0x1c5)])){_0x202caf=![];break;}const _0x559635={..._0x32e528};_0x559635[_0x25ab55(0x25b)]=_0x4d4131,_0x559635[_0x25ab55(0x1d0)]=_0x408526['epoch'];const _0xa4ab8b=await _0x214bd9[_0x25ab55(0x288)](_0x316bd2['receipt'],'prepare',_0x559635);_0xbc6623[_0x25ab55(0x200)](_0xa4ab8b);if(_0xa4ab8b[_0x25ab55(0x1ad)]!=='authenticated-live-process'||_0xa4ab8b[_0x25ab55(0x201)]!=='safe-boundary'||_0xa4ab8b[_0x25ab55(0x25b)]!==_0x4d4131||_0xa4ab8b[_0x25ab55(0x1d0)]!==_0x408526['epoch']||_0xa4ab8b['targetVersion']!==_0x32e528[_0x25ab55(0x297)]||_0xa4ab8b['targetDigest']!==_0x32e528[_0x25ab55(0x1da)]||_0xa4ab8b['supervisorPid']!==_0x1714aa[_0x25ab55(0x2ab)]||_0xa4ab8b[_0x25ab55(0x206)]!==_0x1714aa[_0x25ab55(0x206)]||_0xa4ab8b[_0x25ab55(0x1f7)]!==_0x1714aa[_0x25ab55(0x1f7)]||_0xa4ab8b[_0x25ab55(0x1c5)]!==_0x1714aa[_0x25ab55(0x1c5)])_0x202caf=![];if(_0x202caf){const _0x52fd94=await _0x214bd9['probeConnection'](_0x316bd2[_0x25ab55(0x228)]);if(_0x52fd94[_0x25ab55(0x1ad)]!=='authenticated-live-process'||_0x52fd94[_0x25ab55(0x2ab)]!==_0x1714aa[_0x25ab55(0x2ab)]||_0x52fd94['childPid']!==_0x1714aa['childPid']||_0x52fd94[_0x25ab55(0x1cf)]!==_0x1714aa[_0x25ab55(0x1cf)]||_0x52fd94[_0x25ab55(0x1f7)]!==_0x1714aa[_0x25ab55(0x1f7)]||_0x52fd94[_0x25ab55(0x1c5)]!==_0x1714aa[_0x25ab55(0x1c5)])_0x202caf=![];}}const _0x57d98f={};_0x57d98f[_0x25ab55(0x1eb)]=_0x25ab55(0x2a4);if(_0x202caf&&_0xbc6623['length']===_0x81f90b[_0x25ab55(0x205)])_0xb54cc0[_0x25ab55(0x205)]=0x0,_0xf896f6[_0x25ab55(0x205)]=0x0,_0x324a6e[_0x25ab55(0x205)]=0x0;else _0xb54cc0[_0x25ab55(0x200)](_0x57d98f);}else _0xb54cc0[_0x25ab55(0x200)]({'code':_0x352548[_0x25ab55(0x1eb)]||_0x25ab55(0x234)});}const _0x4bbb7a=Object[_0x25ab55(0x224)](readFence(_0x480ead)[_0x25ab55(0x22e)]||{})[_0x25ab55(0x298)](_0x39dfe3=>_0x39dfe3[_0x25ab55(0x210)]!==_0x25ab55(0x24c));for(const _0x3eaabe of _0x4bbb7a)if(!_0x81f90b[_0x25ab55(0x24f)](_0xeedc43=>_0xeedc43['connectionId']===_0x3eaabe[_0x25ab55(0x1c8)]))_0xb54cc0['push']({'code':_0x25ab55(0x230),'connectionId':_0x3eaabe[_0x25ab55(0x1c8)]});if(!_0xb54cc0['length']){const _0x38e773=new Set(_0x81f90b[_0x25ab55(0x1f6)](_0x46b58b=>_0x46b58b[_0x25ab55(0x1c8)]));try{_0x408526=freezeFence(_0x480ead,_0x408526[_0x25ab55(0x1d0)],{},_0x5b887f=>Object[_0x25ab55(0x224)](_0x5b887f[_0x25ab55(0x22e)]||{})[_0x25ab55(0x1d6)](_0x4f6d46=>_0x4f6d46['state']===_0x25ab55(0x24c)||_0x38e773[_0x25ab55(0x258)](_0x4f6d46[_0x25ab55(0x1c8)]))&&workspaceOwnership(_0x480ead,_0x5b887f,_0x5427db,_0x489a45)[_0x25ab55(0x205)]===0x0);break;}catch(_0x52a2f9){if(_0x52a2f9[_0x25ab55(0x1eb)]!=='OWNERSHIP_IN_FLIGHT')throw _0x52a2f9;const _0x56f734={};_0x56f734['code']=_0x52a2f9['code'],_0xb54cc0[_0x25ab55(0x200)](_0x56f734);}}const _0x4dcee4={};_0x4dcee4[_0x25ab55(0x21c)]=_0x32e528,_0x4dcee4[_0x25ab55(0x1b1)]=_0xb54cc0,_0x428b93(_0x25ab55(0x2a3),_0x4dcee4);const _0x787052={};_0x787052[_0x25ab55(0x201)]=_0x25ab55(0x2a3),_0x787052[_0x25ab55(0x25b)]=_0x4d4131,_0x787052[_0x25ab55(0x1b1)]=_0xb54cc0,_0x787052[_0x25ab55(0x250)]=_0x2bbb0d[_0x25ab55(0x18f)];if(Date[_0x25ab55(0x260)]()>=_0x3e5fcf)return _0x787052;await new Promise(_0x515e55=>setTimeout(_0x515e55,Math[_0x25ab55(0x2ae)](0x1f4,Math[_0x25ab55(0x1d3)](0x1,_0x3e5fcf-Date['now']()))));}if(_0x408526[_0x25ab55(0x210)]!==_0x25ab55(0x287))fail(_0x25ab55(0x1e0));if(_0x18fa39()===_0x25ab55(0x22d)){const _0x2a337b={};_0x2a337b[_0x25ab55(0x1eb)]=_0x25ab55(0x28a);const _0x410bac={};_0x410bac[_0x25ab55(0x1b1)]=[_0x2a337b],_0x428b93(_0x25ab55(0x2a3),_0x410bac);const _0x536580={};_0x536580[_0x25ab55(0x1eb)]=_0x25ab55(0x28a);const _0x177ef9={};return _0x177ef9[_0x25ab55(0x201)]=_0x25ab55(0x2a3),_0x177ef9['transactionId']=_0x4d4131,_0x177ef9[_0x25ab55(0x1b1)]=[_0x536580],_0x177ef9;}_0x81f90b=_0x214bd9[_0x25ab55(0x251)](_0x480ead)['filter'](_0x447f84=>!_0x8a822d||readGeneration(_0x480ead)[_0x25ab55(0x1d8)][_0x25ab55(0x2af)](_0x447f84[_0x25ab55(0x1c8)]));const _0x484548={..._0x32e528};_0x484548['transactionId']=_0x4d4131,_0x484548[_0x25ab55(0x1d0)]=_0x408526[_0x25ab55(0x1d0)],_0x484548['generation']=_0x70a397[_0x25ab55(0x1cf)],_0x484548[_0x25ab55(0x231)]=_0x70a397[_0x25ab55(0x231)],_0x484548[_0x25ab55(0x241)]=_0x52f5c3[_0x25ab55(0x241)];const _0x3e6b23=_0x484548;if(!_0x8a822d){if(_0x18fa39()===_0x25ab55(0x289))fail(_0x25ab55(0x1b5));if(!_0x70a397[_0x25ab55(0x1c6)]){const _0x83e1f4=[...new Map([..._0x70a397[_0x25ab55(0x223)]||[],...snapshotUpgradeRuns(_0x480ead,_0x489a45)][_0x25ab55(0x1f6)](_0x1322ca=>[JSON[_0x25ab55(0x1fa)]([_0x1322ca[_0x25ab55(0x19d)],_0x1322ca[_0x25ab55(0x239)],_0x1322ca[_0x25ab55(0x24e)]]),_0x1322ca]))[_0x25ab55(0x224)]()],_0x2b01e1={};_0x2b01e1[_0x25ab55(0x223)]=_0x83e1f4,_0x428b93(_0x25ab55(0x1f8),_0x2b01e1);const _0x48fc2d={};_0x48fc2d[_0x25ab55(0x25b)]=_0x4d4131,_0x48fc2d[_0x25ab55(0x1d0)]=_0x408526[_0x25ab55(0x1d0)],_0x48fc2d['target']=_0x32e528,_0x48fc2d[_0x25ab55(0x274)]=_0x83e1f4;const {cancelled:_0x18477a}=cancelUpgradeRuns(_0x480ead,_0x48fc2d),_0x1074e6={};_0x1074e6[_0x25ab55(0x1c6)]=!![],_0x1074e6[_0x25ab55(0x19e)]=_0x18477a,_0x428b93(_0x25ab55(0x197),_0x1074e6);}if(!_0x70a397[_0x25ab55(0x1a6)]){_0x428b93(_0x25ab55(0x1b8));for(const _0x487122 of _0x81f90b){const _0x2d1298=await _0x214bd9[_0x25ab55(0x288)](_0x487122,_0x25ab55(0x227),_0x3e6b23),_0x14364c=_0x2d1298[_0x25ab55(0x201)]===_0x25ab55(0x25f)&&_0x2d1298[_0x25ab55(0x1e7)]===!![]&&[_0x25ab55(0x297),_0x25ab55(0x1da),_0x25ab55(0x1cf),_0x25ab55(0x231)][_0x25ab55(0x1d6)](_0x3f497d=>_0x2d1298[_0x3f497d]===_0x3e6b23[_0x3f497d])&&_0x2d1298[_0x25ab55(0x218)]===hashFile(path[_0x25ab55(0x291)](_0x480ead,'.agents','manifest.json'));if(_0x2d1298[_0x25ab55(0x1ad)]!=='authenticated-live-process'||_0x2d1298['status']!=='stopped'&&!_0x14364c)fail(_0x2d1298[_0x25ab55(0x1eb)]||_0x25ab55(0x28b));}const _0x477e44={};_0x477e44[_0x25ab55(0x1a6)]=!![],_0x428b93('old-runtimes-stopped',_0x477e44);}_0x428b93(_0x25ab55(0x1c7));const _0x553129=()=>{const _0x27e6bc=_0x25ab55;_0x499f38(),_0x2bbb0d[_0x27e6bc(0x1a8)](),_0x4454c7?.[_0x27e6bc(0x1a8)]();},_0x1f8785={};_0x1f8785[_0x25ab55(0x29f)]=_0x52f5c3[_0x25ab55(0x29f)];if(_0xb8a658)require(_0x25ab55(0x1ec))[_0x25ab55(0x261)](_0x480ead,_0x553129,_0x1f8785);else _0x553129();_0x3e6b23['resourceDigest']=hashFile(path[_0x25ab55(0x291)](_0x480ead,_0x25ab55(0x26e),_0x25ab55(0x25c)));if(!_0x3e6b23[_0x25ab55(0x218)])fail(_0x25ab55(0x26f));const _0x95787b={};_0x95787b[_0x25ab55(0x218)]=_0x3e6b23['resourceDigest'],_0x95787b[_0x25ab55(0x21d)]=!![],_0x428b93(_0x25ab55(0x216),_0x95787b);for(const _0x2fbbf8 of _0x81f90b){const _0x2bf00e=await _0x214bd9[_0x25ab55(0x288)](_0x2fbbf8,_0x25ab55(0x238),_0x3e6b23);if(_0x2bf00e['evidence']!==_0x25ab55(0x1d7)||_0x2bf00e[_0x25ab55(0x201)]!==_0x25ab55(0x25f))fail(_0x2bf00e['code']||_0x25ab55(0x225));recordCandidate(_0x480ead,_0x4d4131,_0x408526[_0x25ab55(0x1d0)],_0x2bf00e);}_0x428b93(_0x25ab55(0x279));if(_0x18fa39()===_0x25ab55(0x289))fail('UPDATE_CANCELLED');if(_0x18fa39()===_0x25ab55(0x22d)){const _0x34d4e1={};_0x34d4e1['code']=_0x25ab55(0x28a);const _0x3ffba4={};_0x3ffba4['resourceDigest']=_0x3e6b23[_0x25ab55(0x218)],_0x3ffba4[_0x25ab55(0x1b1)]=[_0x34d4e1],_0x428b93('pending-safe-boundary',_0x3ffba4);const _0x3a7023={};_0x3a7023['code']=_0x25ab55(0x28a);const _0x3ce280={};return _0x3ce280[_0x25ab55(0x201)]=_0x25ab55(0x2a3),_0x3ce280[_0x25ab55(0x25b)]=_0x4d4131,_0x3ce280[_0x25ab55(0x1b1)]=[_0x3a7023],_0x3ce280;}const _0x4a5ca5={};_0x4a5ca5[_0x25ab55(0x1f0)]=_0x499f38,commitWorkspaceGeneration(_0x480ead,_0x4d4131,_0x408526[_0x25ab55(0x1d0)],_0x3e6b23,_0xb8a658?_0x4a5ca5:{}),_0x8a822d=!![],projectGeneration(_0x52f5c3[_0x25ab55(0x249)],_0x480ead,readGeneration(_0x480ead)),_0x2bbb0d[_0x25ab55(0x281)](_0x3e6b23['generation']),_0x4454c7?.[_0x25ab55(0x281)](),_0x428b93(_0x25ab55(0x28e));}else{const _0x21d29e=readGeneration(_0x480ead);_0x3e6b23[_0x25ab55(0x1cf)]=_0x21d29e[_0x25ab55(0x1cf)],_0x3e6b23[_0x25ab55(0x218)]=_0x21d29e['resourceDigest'],_0x3e6b23['catalogHash']=_0x21d29e['catalogHash'];if(_0x2bbb0d['plan'][_0x25ab55(0x201)]!=='committed')_0x2bbb0d[_0x25ab55(0x281)](_0x3e6b23[_0x25ab55(0x1cf)]);_0x4454c7?.[_0x25ab55(0x1a8)](),_0x4454c7?.['commit']();const _0x44d76f=readFence(_0x480ead)['members']||{};for(const _0x47af98 of _0x21d29e[_0x25ab55(0x1d8)])if(_0x44d76f[_0x47af98]?.[_0x25ab55(0x210)]!==_0x25ab55(0x24c)&&!_0x81f90b[_0x25ab55(0x24f)](_0x5551b4=>_0x5551b4[_0x25ab55(0x1c8)]===_0x47af98))fail('CONNECTION_UNCONFIRMED');for(const _0x283aaf of _0x81f90b){const _0x2f3a55=await _0x214bd9[_0x25ab55(0x288)](_0x283aaf,_0x25ab55(0x238),_0x3e6b23);if(_0x2f3a55['evidence']!==_0x25ab55(0x1d7)||_0x2f3a55[_0x25ab55(0x201)]!==_0x25ab55(0x25f))fail(_0x2f3a55[_0x25ab55(0x1eb)]||_0x25ab55(0x225));recordCandidate(_0x480ead,_0x4d4131,_0x408526[_0x25ab55(0x1d0)],_0x2f3a55);}}for(const _0x57160a of _0x81f90b){const _0x5d59cf=await _0x214bd9[_0x25ab55(0x288)](_0x57160a,_0x25ab55(0x29c),_0x3e6b23);if(_0x5d59cf[_0x25ab55(0x1ad)]!==_0x25ab55(0x1d7)||_0x5d59cf[_0x25ab55(0x201)]!==_0x25ab55(0x1b7))fail(_0x5d59cf['code']||_0x25ab55(0x19c));}openCommittedGeneration(_0x480ead,_0x4d4131);const _0x1003b2=_0x81f90b[_0x25ab55(0x205)]?_0x25ab55(0x1b7):'ready-next-connection',_0x1c4ebb={};_0x1c4ebb['blockers']=[],_0x1c4ebb[_0x25ab55(0x245)]=_0x81f90b[_0x25ab55(0x205)]?_0x25ab55(0x1d7):null,_0x428b93(_0x1003b2,_0x1c4ebb);const _0x32c0de=await _0xf7305d(_0x1003b2),_0x564e81={};_0x564e81['code']=_0x25ab55(0x1d9),_0x564e81[_0x25ab55(0x1cc)]=_0x25ab55(0x1c1);const _0x3a3041=_0x32c0de[_0x25ab55(0x201)]===_0x25ab55(0x20b)?[{'code':'INDEX_REBUILD_FAILED','phase':_0x25ab55(0x1c1),'indexCode':_0x32c0de[_0x25ab55(0x1eb)]}]:_0x32c0de[_0x25ab55(0x201)]===_0x25ab55(0x27e)?[_0x564e81]:[],_0x2fdbcc=_0x32c0de[_0x25ab55(0x201)]===_0x25ab55(0x1e8)||_0x32c0de[_0x25ab55(0x201)]===_0x25ab55(0x27e)||['INDEX_OUTCOME_UNKNOWN',_0x25ab55(0x1fb)][_0x25ab55(0x2af)](_0x32c0de[_0x25ab55(0x1eb)]),_0x421450={};_0x421450[_0x25ab55(0x1eb)]=_0x25ab55(0x1d9),_0x421450['phase']=_0x25ab55(0x1c1);const _0x20eff0={};_0x20eff0[_0x25ab55(0x1b1)]=[_0x421450];const _0x192392={'status':_0x2fdbcc?_0x25ab55(0x2a3):_0x1003b2,'runtimeActivation':_0x2fdbcc?_0x25ab55(0x2a3):_0x1003b2,'transactionId':_0x4d4131,'target':_0x32e528,'generation':_0x3e6b23['generation'],'resourceDigest':_0x3e6b23[_0x25ab55(0x218)],'resourcesApplied':!![],'cancelledRuns':_0x70a397[_0x25ab55(0x19e)]||[],'indexResult':_0x32c0de,..._0x2fdbcc?_0x20eff0:_0x3a3041[_0x25ab55(0x205)]?{'blockers':_0x3a3041}:{}};return _0x192392;}catch(_0x5512da){const _0x529aba=_0x70a397?.[_0x25ab55(0x201)]||_0x25ab55(0x208),_0x4144c2=[{'code':_0x5512da['code']||_0x25ab55(0x2aa),'phase':_0x529aba,..._0x5512da?.[_0x25ab55(0x1eb)]===_0x25ab55(0x1a0)||_0x5512da?.['code']===_0x25ab55(0x25e)||_0x5512da?.[_0x25ab55(0x1eb)]===_0x25ab55(0x21f)?{'diagnostic':safeFsDiagnostic(_0x5512da,_0x480ead,_0x529aba)}:{}}],_0x275c56={};_0x275c56['resourcesApplied']=!![];const _0x844b61={'status':_0x25ab55(0x2a3),'transactionId':_0x4d4131,'blockers':_0x4144c2,..._0x70a397?.[_0x25ab55(0x21d)]?_0x275c56:{}};if(_0x52f5c3[_0x25ab55(0x203)]||_0xb8a658)return _0x844b61;const _0x2a31cb={};_0x2a31cb['recovery']=_0x25ab55(0x252);const _0x44b7a1={'status':'failed','transactionId':_0x4d4131,'blockers':_0x4144c2,..._0x8a822d?_0x2a31cb:{}};if(!_0x45490a)return _0x44b7a1;if(!_0x8a822d&&_0x5512da[_0x25ab55(0x1eb)]==='UPDATE_SUSPENDED'){const _0x584520={};_0x584520[_0x25ab55(0x1b1)]=_0x4144c2,_0x428b93(_0x25ab55(0x2a3),_0x584520);const _0x2cf226={};return _0x2cf226[_0x25ab55(0x201)]=_0x25ab55(0x2a3),_0x2cf226[_0x25ab55(0x25b)]=_0x4d4131,_0x2cf226[_0x25ab55(0x1b1)]=_0x4144c2,_0x2cf226;}if(_0x8a822d){const _0x355c2c={};_0x355c2c[_0x25ab55(0x1b1)]=_0x4144c2,_0x355c2c['recovery']=_0x25ab55(0x252),_0x428b93(_0x25ab55(0x1cb),_0x355c2c);const _0x31c31e={};return _0x31c31e['status']='failed',_0x31c31e[_0x25ab55(0x25b)]=_0x4d4131,_0x31c31e['recovery']=_0x25ab55(0x252),_0x31c31e['blockers']=_0x4144c2,_0x31c31e;}if(_0x52f5c3[_0x25ab55(0x247)]){const _0x14e148={};_0x14e148[_0x25ab55(0x1b1)]=_0x4144c2,_0x14e148[_0x25ab55(0x199)]=_0x25ab55(0x1b2),_0x428b93('failed',_0x14e148);const _0x178ab5={};return _0x178ab5[_0x25ab55(0x201)]=_0x25ab55(0x20b),_0x178ab5['transactionId']=_0x4d4131,_0x178ab5[_0x25ab55(0x199)]=_0x25ab55(0x1b2),_0x178ab5[_0x25ab55(0x1b1)]=_0x4144c2,_0x178ab5;}if(_0x408526[_0x25ab55(0x210)]===_0x25ab55(0x287)&&![_0x25ab55(0x1d9),_0x25ab55(0x20f)][_0x25ab55(0x2af)](_0x5512da[_0x25ab55(0x1eb)]))try{const _0x31780d={};return _0x31780d['blockers']=_0x4144c2,_0x31780d[_0x25ab55(0x199)]=_0x25ab55(0x1fe),_0x428b93(_0x25ab55(0x264),_0x31780d),await _0x4321d2(_0x4144c2);}catch(_0x273d59){const _0x320f55={'code':_0x273d59[_0x25ab55(0x1eb)]||_0x25ab55(0x212),..._0x273d59[_0x25ab55(0x1be)]?{'mismatchFields':_0x273d59[_0x25ab55(0x1be)]}:{}};_0x4144c2[_0x25ab55(0x200)](_0x320f55);}const _0x219c31={};_0x219c31[_0x25ab55(0x1b1)]=_0x4144c2,_0x428b93(_0x25ab55(0x20b),_0x219c31);const _0x49e92e={};return _0x49e92e[_0x25ab55(0x201)]=_0x25ab55(0x20b),_0x49e92e['transactionId']=_0x4d4131,_0x49e92e[_0x25ab55(0x1b1)]=_0x4144c2,_0x49e92e;}finally{_0x453580();}}const _0x3d262a={};_0x3d262a[_0xb7773c(0x285)]=activatePreparedWorkspace,module[_0xb7773c(0x25a)]=_0x3d262a;
|
|
1
|
+
'use strict';const _0x1941e0=_0x35df;(function(_0x14fc13,_0x2fa24c){const _0x266024=_0x35df,_0x4ec880=_0x14fc13();while(!![]){try{const _0x8c56ec=-parseInt(_0x266024(0x147))/0x1*(-parseInt(_0x266024(0x177))/0x2)+-parseInt(_0x266024(0xe7))/0x3*(-parseInt(_0x266024(0x92))/0x4)+-parseInt(_0x266024(0x137))/0x5+parseInt(_0x266024(0xf7))/0x6*(parseInt(_0x266024(0xda))/0x7)+-parseInt(_0x266024(0x122))/0x8+-parseInt(_0x266024(0xaf))/0x9+-parseInt(_0x266024(0xfe))/0xa;if(_0x8c56ec===_0x2fa24c)break;else _0x4ec880['push'](_0x4ec880['shift']());}catch(_0x35f4b0){_0x4ec880['push'](_0x4ec880['shift']());}}}(_0x48e0,0xc223d));function _0x48e0(){const _0x155665=['mtK2nJn4rLDsDfq','y2f0ywXVz1jLy29UBMvJDfjLCxvPCMvK','t1bfuKfusu9ox1jfq09wrvjzx0niqu5hruq','zhjHAw4TywjVCNrLza','rufdq0vt','D29YA3nWywnL','C3vWzxj2AxnVCLbYB2nLC3ntDgfYDa','CMvZB3vYy2veAwDLC3q','CMvWBgfJzw1LBNq','DxbKyxrL','D2fPDfnLy29Uzhm','CMvSzwfZzq','yNL0zxm','mti0mJLQrMvJqNa','y2XVC2vtEw5J','yNvPBhq','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','B2XKsgfZAa','zMfPBgvK','y29UBMvJDgLVBNm','CMvJB3zLCNLdB250zxH0','zgLYzwn0B3j5','C2vYDMLUzW','CMvJB25Uzwn0lxjLCxvPCMvK','BwLU','ywjVCNrLzerYywLU','C3vJy2vZCW','CMvZCg9UC2u','mJC0mKvvy05SAq','CNvUCW','lMfNzw50CW','DhjHBNnHy3rPB24TzMLUywWUANnVBG','vvbeqvrfx0Lox1bst0Dsrvnt','uKvhsvnuuKfusu9ox1bmqu5Fsu5wquXjra','rvbfuK0','odiYmJiWAwvPs3Dx','ChjLlwrYywLUlwnHBMnLBgXLza','ywn0AxzL','BM9KztPMCW','BwvTyMvYCW','B3bLCMf0Aw9Uu3vJy2vZC29Yr3vHCMq','y2fUzgLKyxrLlxjLywr5','CNvUswq','AgfZ','DxbKyxrLlxrYyw5Zywn0Aw9UlMPZB24','y29TBwL0lwnHBMrPzgf0zq','Agv4','lI9YDw50Aw1Llxn0B3jL','zxbVy2G','CM9SBc1MB3j3yxjKlxjLCxvPCMvK','sK9vuK5btf9ut09Ftefsr0u','vvbeqvrfx1nvu1bftKrfra','CMvIDwLSzeLUzgv4','Dw5RBM93BG','ChjVyMvxB3jRC3bHy2vdB25Uzwn0Aw9UCW','y2f0ywXVz0HHC2G','z3vHCMq','vvbeqvrfx09xtKvsu0Hjuf9dsefor0ve','BM9KztPWyxrO','CNvUBMLUzW','uKvhsvnuuKfusu9ox1jfq09wrvjzx1jfuvvjuKve','ChvZAa','CM9SBgjHy2S','z2vUzxjHDgLVBG','lI4Vy29Yzs91CgrHDguTy29UDhjVBa','y29TCgf0AwjSzq','ChvIBgLJs2v5','y29UzMXPy3rZ','y2fUy2vSBgvK','BwfUAwzLC3qUANnVBG','ru5pru5u','mZyWmJa4mgPsr2XHsq','r0vorvjbveLptL9srunpvKvswv9nsvnnqvrdsa','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','B3bLBG','CMvJB3zLCNK','ChjLCgfYzwrqBgfUrgLNzxn0','C3rVCc1JB25MAxjTzwq','CMvJB3zLCNLcywnRDxbqyxrO','zxzLCNK','y29UBMvJDgLVBKLK','CM9SBgvKlwjHy2S','B3bLCMf0Aw9UuMvJB3zLCNK','CMvXDwLYzwq','BgvNywn5uMvJB3zLCNK','BM9KztPJCNLWDg8','CMvZB3vYy2vqBgfU','DhjHBNnHy3rPB25jza','zxzPzgvUy2u','CMvJzwLWDa','ywjVCNqTzhjHAw4','zgLNzxn0','nta5ntG5nvf4AgDOyq','C2fMzs1IB3vUzgfYEq','Cg9ZDfjLC291CMnLuMvJB3zLCNK','lI4Vy29Yzs91CgDYywrLlxj1BNm','lI4Vy29Yzs93B3jRC3bHy2uTz2vUzxjHDgLVBG','ywrK','CMvHzezPBgvtEw5J','BgvNywn5uMvJB3zLCNLszwXLyxnL','Cgf0Aa','DxbNCMfKzvj1BNm','ufjpqKvFtuLttufuq0G','CgfYC2u','DxbKyxrLlMXVy2S','BM93','CMvHzhK','r0vorvjbveLptL9bq0TFuevoreLorW','mtq3nJe3y3PjAeXe','Dg9ju09tDhjPBMC','DgvZDa','AxnezwvWu3rYAwn0rxf1ywW','yxr0zw1WDa','C3rVChbPBMC','BMv3sgfZAa','DgfZAW','lI9YzwDPC3rYyxrPB24TCgXHBG','t1DorvjtseLqx0Lox0zmsuDiva','CMvJB25JAwXLsw5KzxHjBNrLCNj1ChrPB24','zNn5BMntEw5J','C2XPy2u','CMvHBhbHDgHtEw5J','BM9pCa','ChjVyMvdB25Uzwn0Aw9U','y29UzMLNugf0Aa','q0foreLeqvrfx1bsruzmsuDivf9nsvnnqvrdsa','zgLYBMfTzq','r1jbueHFq0HbtKDfra','C3LZy2fSBa','Aw5KzxHqAgfZzq','C3vZCgvUzgvK','AM9PBG','CNvUDgLTzq','C3vWzxj2AxnVCLbYB3rVy29S','uKvtt1vsq0vFreLhrvnux01ju1njtKC','y29UDhjVBenHCgfIAwXPDgLLCW','C3rYAw5N','BgvNywn5lw93BMvYC2HPCc11BNzLCMLMAwvK','CgHHC2u','ywjVCNq','CMfUzg9Tvvvjra','uLvox0Lou1bfq1rjt05FteLnsvq','CgXHBG','vvbeqvrfx0PpvvjoquXFvu5wrvjjrKLfra','uKvtt1vsq0vFuK9mtejbq0TFvu5dt05gsvjnruq','B3DUzwq','B3jPz2LUywW','su5ervHFveLnru9vva','DMvYC2LVBG','CMvJB25JAwXLvxbNCMfKzvDVCMTLCNm','CMvZB2X2zq','qurnsvntsu9ox0nptKzmsunu','C3rHDhvZ','ve9ptf9dqvrbte9hx0niqu5hruq','ChjLCgfYzs1Jyw5KAwrHDgu','Dg9tDhjPBMC','mtrhwNbqDhO','tevhqunzx0npt1jesu5bve9sx1jfq09oq0Lmrv9gquLmruq','AxntywzLsw50zwDLCG','C2f2zuXVy2TLza','Aw5KzxHszwnVDMvYEu1Vzgu','C3rYAw5NAwz5','zM9Yy2vszwnVDMvY','lI4Vy29Yzs9YDw50Aw1Llw93BMvYC2HPCa','vvbeqvrfx1jfq09wrvjzx1jfuvvjuKve','B2XKlxj1BNrPBwvZlxn0B3bWzwq','ywrKB25Z','zgvZDa','C3vWzxj2AxnVCLbPza','q0foreLeqvrfx05pvf9srufewq','ChjLzMXPz2H0','DgfYz2v0vMvYC2LVBG','DMfSDwvZ','BgvUz3rO','B3bLCMf0Aw9UCW','lI4Vy29Yzs9YDw4Ty29TCgf0AwjPBgL0Eq','lI4Vy29Yzs9VD25Lzc1SB2nR','lI4Vy29Yzs9ZDg9YywDLlxjLDhj5','B3bLCMf0Aw9Uu3vJy2vZC29Yq29UDhjHy3reAwDLC3q','y2HPBgrqCM9JzxnZu3rHCNq','vvbeqvrfx1rbuKDfvf9dt05gteLdva','D29YA3nWywnLuNvUuM9VDhm','lI91CgrHDguTAgLZDg9YEq','yxnZAwDU','B3DUzxjZAgLW','ChjLDMLVDxnjzgvUDgL0Eq','B2jZzxj2yxrPB25Z','t1bfuKfusu9ox1jfq09wrvjzx1bftKrjtKC','tevhqunzx0npt1jesu5bve9sx1jfq0Hfq0TFuKvrvuLsruq','CMvSzwfZzxm','B3bLCMf0Aw9U','zgLHz25VC3rPyW','lNrTCa','su5ervHFt1vuq09nrv9vtKTot1Do','DxbKyxrLCW','C3rVCc1MB3iTDxbKyxrL','Bwf4','C3rVChbLza','Aw5JBhvKzxm','y2fUy2vSBgvKuNvUCW','v09ss0vsx1nut1bFvu5dt05gsvjnruq','BgLZDfDVCMTZCgfJzvjLy2vPChrZ','ChjLDMLVDxndB25Uzwn0Aw9UCW','rujvu1K','y29UDhjVBenVBM5Ly3rPB24','zxHPC3rZu3LUyW','y29UBMvJDgLVBKrPywDUB3n0AwnZ','lI9PBMrLEc1YzwnVDMvYEq','mtuXnNj1r2fdvW','CMvZB3vYy2vZlwfWCgXPzwq','CMvZB3vYy2vdB250CMfJDerPz2vZDa','CMvHzfjLy292zxj5u3vJy2vZC29Y','CMv0CNLHyMXL','y29TBwL0DgvK','y2fUzgLKyxrL','DgfYz2v0','zMLSzq','vvbeqvrfx0nbtKnfteXfra','CMvNAxn0CMf0Aw9UtwLNCMf0Aw9U','y2fUy2vS','C3rHDgu','zhjHAw5PBMC','B3bLBLn5BMm','uKvtt1vsq0vFuefusf9fu0nbueu','zgLHz25VC3rPy3m','y29TBwL0lwLUDgvUDa','vvbeqvrfx0zbsuXfra','y29TBwL0','yMXVy2TLCNm','su5ervHFqLvjterFrKfjteve','D2L0AefKBwLZC2LVBKXVy2S','C2HHmJu2','BwLZBwf0y2HgAwvSzhm','y2fUy2vSlwzVCI11CgDYywrL','t1bfuKfusu9ox1bmqu5Fvu5wrvjjrKLfra','yxbWBhK','zNjVEMvU','mtm4nJmZmZL0wwfKCKu','CNvUC0nHBMnLBgXLza','ChjLCgfYzwq','CMvZB3vYy2vZqxbWBgLLza','C29Tzq','CMvJB3zLCMLUzW','lI4Vy29Yzs9YzxnVDxjJzs10CMfUC2fJDgLVBG','CMvZDg9Yzs1WCMv2Aw91CW','D3jPDgvgAwXLu3LUyW','y3jLyxrLsgfZAa','ywn0AxzHDgLVBKv2AwrLBMnL','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','y29UDhjHy3reAwDLC3q','CMvXDwvZDc1ZDg9W','y2HPBgrqAwq','CM9SBc1MB3j3yxjK','C3vZCgvUza','y2XVC2vK','AxnbCNjHEq','su5ervHFuKvcvuLmrf9gquLmruq','DgfYz2v0rgLNzxn0','B2XKuNvUDgLTzxntDg9WCgvK','yxjJAgL2zuXLz2fJEvrLCM1PBMfSsM91CM5HBa','su5ervHFu1rpuf9vtKnptKzjuK1fra','BM90lxjLCxvPCMvK','ChjLCgfYzq','yNjPzgDLlxjLCxvPCMvK','Cg9ZDc1Hy3rPDMf0Aw9U','CMvNAxn0CMf0Aw9UugXHBG','BM90lxjLCxvLC3rLza','D29YA2vY','ChjVB2y','q09otKvdveLptL9vtKnptKzjuK1fra','yxv0AgvUDgLJyxrLzc1SAxzLlxbYB2nLC3m','Aw5KzxHszxn1Bhq','lI9JB25Uzwn0Aw9UlwfJDgL2yxrPB24','zMLSDgvY','Aw5ZCgvJDa','Aw5KzxHdB2rL','BwfW','CNvUDgLTzvjVB3q','y29Kzq','uMvNAxn0CMf0Aw9UugXHBG'];_0x48e0=function(){return _0x155665;};return _0x48e0();}const fs=require(_0x1941e0(0x101)),path=require(_0x1941e0(0x115)),crypto=require(_0x1941e0(0x130)),{acquireRuntimeLock}=require(_0x1941e0(0x72)),{ResourceTransaction}=require(_0x1941e0(0xb5)),{readFence,changeFence,freezeFence}=require(_0x1941e0(0x124)),{readGeneration,projectGeneration,registerMember,recordCandidate,commitWorkspaceGeneration,openCommittedGeneration}=require(_0x1941e0(0x13b)),{verifyRelease}=require(_0x1941e0(0x10a)),{preflightWorkspaceContracts}=require(_0x1941e0(0x71)),{preflightCandidate}=require('./candidate-preflight'),connections=require(_0x1941e0(0xd2)),{readControl}=require(_0x1941e0(0x11b)),{workspaceOwnership}=require(_0x1941e0(0x17e)),{snapshotUpgradeRuns,cancelUpgradeRuns}=require(_0x1941e0(0x13a)),{rebuildWorkspaceIndex}=require(_0x1941e0(0x91)),hashFile=_0xeb222e=>{const _0xfef9ca=_0x1941e0;try{return crypto[_0xfef9ca(0xb8)](_0xfef9ca(0xa9))[_0xfef9ca(0xe3)](fs[_0xfef9ca(0x13d)](_0xeb222e))[_0xfef9ca(0x136)](_0xfef9ca(0x109));}catch(_0x5d0beb){if(_0x5d0beb[_0xfef9ca(0xd8)]===_0xfef9ca(0x121))return null;throw _0x5d0beb;}},fail=_0x1e426a=>{const _0x5e54c7=_0x1941e0;throw Object[_0x5e54c7(0x79)](new Error(_0x1e426a),{'code':_0x1e426a});},sameRegistrationWorkspace=(_0x25d64e,_0x4b85c9)=>require(_0x1941e0(0xeb))['sameWorkspace'](_0x25d64e,_0x4b85c9);function _0x35df(_0x5bde6a,_0x3c75a6){_0x5bde6a=_0x5bde6a-0x67;const _0x48e0b5=_0x48e0();let _0x35dfbf=_0x48e0b5[_0x5bde6a];if(_0x35df['nDRcVP']===undefined){var _0x34214b=function(_0x560209){const _0x1e797f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x35da1a='',_0x587a7f='';for(let _0x31f26d=0x0,_0x4d611d,_0x2767d7,_0x3287f2=0x0;_0x2767d7=_0x560209['charAt'](_0x3287f2++);~_0x2767d7&&(_0x4d611d=_0x31f26d%0x4?_0x4d611d*0x40+_0x2767d7:_0x2767d7,_0x31f26d++%0x4)?_0x35da1a+=String['fromCharCode'](0xff&_0x4d611d>>(-0x2*_0x31f26d&0x6)):0x0){_0x2767d7=_0x1e797f['indexOf'](_0x2767d7);}for(let _0x4a47fb=0x0,_0x1d9a58=_0x35da1a['length'];_0x4a47fb<_0x1d9a58;_0x4a47fb++){_0x587a7f+='%'+('00'+_0x35da1a['charCodeAt'](_0x4a47fb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x587a7f);};_0x35df['pfWVvt']=_0x34214b,_0x35df['SNwqHp']={},_0x35df['nDRcVP']=!![];}const _0x17d178=_0x48e0b5[0x0],_0x16e8b7=_0x5bde6a+_0x17d178,_0x3f55ed=_0x35df['SNwqHp'][_0x16e8b7];return!_0x3f55ed?(_0x35dfbf=_0x35df['pfWVvt'](_0x35dfbf),_0x35df['SNwqHp'][_0x16e8b7]=_0x35dfbf):_0x35dfbf=_0x3f55ed,_0x35dfbf;}function safeFsDiagnostic(_0x2d63b7,_0x26b47f,_0x4fb49f){const _0x5d6a29=_0x1941e0,_0x2cd730=typeof _0x2d63b7?.[_0x5d6a29(0x13f)]==='string'?_0x2d63b7[_0x5d6a29(0x13f)]:typeof _0x2d63b7?.[_0x5d6a29(0x69)]===_0x5d6a29(0x163)?_0x2d63b7[_0x5d6a29(0x69)]:null;let _0x151650=null;return _0x2cd730&&(_0x151650=crypto[_0x5d6a29(0xb8)](_0x5d6a29(0xa9))[_0x5d6a29(0xe3)](path[_0x5d6a29(0x171)](_0x2cd730))[_0x5d6a29(0x136)](_0x5d6a29(0x109))['slice'](0x0,0x10)),{'kind':'filesystem','code':_0x2d63b7?.[_0x5d6a29(0xd8)]||'UNKNOWN','syscall':_0x2d63b7?.[_0x5d6a29(0x15b)]||null,'phase':_0x4fb49f||'unknown','operation':_0x2d63b7?.[_0x5d6a29(0x80)]||_0x2d63b7?.['op']||null,'targetFingerprint':_0x151650,'workspaceFingerprint':crypto[_0x5d6a29(0xb8)](_0x5d6a29(0xa9))[_0x5d6a29(0xe3)](path['resolve'](_0x26b47f))['digest'](_0x5d6a29(0x109))[_0x5d6a29(0x153)](0x0,0x10)};}function writeJournal(_0x471ca1,_0x310719){const _0x1d0d77=_0x1941e0,_0x45569e=_0x471ca1+'.'+crypto[_0x1d0d77(0x167)]()+_0x1d0d77(0x82),_0x5d8b35=fs[_0x1d0d77(0xa0)](_0x45569e,'wx',0x180);try{fs[_0x1d0d77(0xb7)](_0x5d8b35,JSON[_0x1d0d77(0x17c)](_0x310719)),fs[_0x1d0d77(0x152)](_0x5d8b35);}finally{fs[_0x1d0d77(0xe8)](_0x5d8b35);}require(_0x1d0d77(0x73))['renamePatient'](_0x45569e,_0x471ca1);}async function activatePreparedWorkspace(_0x473ac7){const _0x1699f5=_0x1941e0,_0x6ae17=fs['realpathSync'](_0x473ac7[_0x1699f5(0xdf)]),_0x5dfbde={};_0x5dfbde['apply']=_0x473ac7[_0x1699f5(0x17b)]!==_0x1699f5(0xd4),_0x5dfbde['publicKey']=_0x473ac7[_0x1699f5(0x11d)],_0x5dfbde[_0x1699f5(0xd7)]=_0x473ac7[_0x1699f5(0xd7)];const _0x394b38=require('./index-interruption-recovery')[_0x1699f5(0x151)](_0x6ae17,_0x5dfbde),_0x57b959={};_0x57b959['code']=_0x1699f5(0x83);const _0x3d3896={};_0x3d3896[_0x1699f5(0x173)]=_0x1699f5(0x110),_0x3d3896[_0x1699f5(0xd8)]=_0x1699f5(0x83);const _0x1e0a00={};_0x1e0a00[_0x1699f5(0x173)]=_0x1699f5(0xea),_0x1e0a00[_0x1699f5(0xa6)]=[_0x57b959],_0x1e0a00[_0x1699f5(0xd1)]=_0x3d3896;if([_0x1699f5(0x110),_0x1699f5(0x116),'recoverable-interruption'][_0x1699f5(0x88)](_0x394b38['status']))return _0x1e0a00;const _0x1dfb04=require(_0x1699f5(0x71))[_0x1699f5(0x77)](_0x6ae17),_0x2d1013={'rebuildCheckpoints':!![],'budgetMs':Number(process.env.APT_RUN_INSPECTION_TIMEOUT_MS||0x1d4c0)},_0x2c6cbd=_0x473ac7[_0x1699f5(0x131)]instanceof ResourceTransaction?_0x473ac7[_0x1699f5(0x131)]:new ResourceTransaction(_0x473ac7['resourcePlan']);if(fs['realpathSync'](_0x2c6cbd[_0x1699f5(0x169)][_0x1699f5(0xdf)])!==_0x6ae17)fail(_0x1699f5(0xa1));const _0x5e0102=_0x2c6cbd[_0x1699f5(0x169)][_0x1699f5(0x132)],_0xfa9d20=path[_0x1699f5(0x15e)](_0x6ae17,'.agents',_0x1699f5(0x15f)),_0x195b14=acquireRuntimeLock(path['join'](_0xfa9d20,_0x1699f5(0x143))),_0x443cbe={};_0x443cbe['code']=_0x1699f5(0xfb);const _0x2ba04a={};_0x2ba04a[_0x1699f5(0x173)]=_0x1699f5(0xea),_0x2ba04a[_0x1699f5(0x132)]=_0x5e0102,_0x2ba04a[_0x1699f5(0xa6)]=[_0x443cbe];if(!_0x195b14)return _0x2ba04a;const _0xde6548=path['join'](_0xfa9d20,_0x1699f5(0x107));let _0x1873ae;const _0x2d005d=()=>{const _0x41b789=_0x1699f5;if(!_0x1873ae)return!![];if(!_0x195b14['owned']())fail(_0x41b789(0x114));if(_0x473ac7[_0x41b789(0x103)]&&_0x473ac7[_0x41b789(0x103)]()!==!![])fail(_0x41b789(0x114));if(_0x473ac7[_0x41b789(0x74)]){const _0x1b4471=JSON[_0x41b789(0x142)](fs['readFileSync'](_0x2c6cbd[_0x41b789(0x9a)]));if(_0x1b4471[_0x41b789(0xbb)]!==_0x473ac7['operationSuccessorContractDigest']||require(_0x41b789(0xb5))[_0x41b789(0x94)](_0x1b4471)!==_0x473ac7['operationSuccessorContractDigest'])fail(_0x41b789(0xac));}return require(_0x41b789(0x11b))['assertRecoverySuccessor'](_0x6ae17,_0x1873ae,_0x473ac7[_0x41b789(0x11d)],_0x5e0102,verifyRelease(_0x473ac7[_0x41b789(0xe5)],_0x473ac7[_0x41b789(0x11d)]));};try{_0x1873ae=_0x473ac7['operationSuccessor']||require(_0x1699f5(0x11b))[_0x1699f5(0x95)](_0x6ae17,_0x5e0102,_0x473ac7[_0x1699f5(0x11d)]),_0x2d005d();}catch(_0x22c3cc){_0x195b14();const _0x14a2c9={};_0x14a2c9[_0x1699f5(0xd8)]=_0x22c3cc[_0x1699f5(0xd8)]||_0x1699f5(0xdc);const _0x331ab9={};return _0x331ab9[_0x1699f5(0x173)]='pending-safe-boundary',_0x331ab9[_0x1699f5(0x132)]=_0x5e0102,_0x331ab9[_0x1699f5(0xa6)]=[_0x14a2c9],_0x331ab9;}const _0x95676e=_0x473ac7[_0x1699f5(0xee)]||connections;let _0x37e03d,_0x47dc50;try{_0x47dc50=fs[_0x1699f5(0x13d)](_0xde6548),_0x37e03d=JSON[_0x1699f5(0x142)](_0x47dc50);}catch(_0x4e4089){if(_0x4e4089[_0x1699f5(0xd8)]!=='ENOENT'){_0x195b14();throw _0x4e4089;}}const _0x222da1=_0x37e03d?.['indexRecoveries']||[];if(_0x37e03d&&_0x37e03d[_0x1699f5(0x132)]!==_0x5e0102){if(![_0x1699f5(0x100),_0x1699f5(0xba),_0x1699f5(0x12c),_0x1699f5(0x11f),'superseded'][_0x1699f5(0x88)](_0x37e03d['status'])){_0x195b14();const _0x3b226e={};_0x3b226e[_0x1699f5(0xd8)]=_0x1699f5(0xfb);const _0x29425a={};return _0x29425a[_0x1699f5(0x173)]='pending-safe-boundary',_0x29425a[_0x1699f5(0x132)]=_0x37e03d[_0x1699f5(0x132)],_0x29425a[_0x1699f5(0xa6)]=[_0x3b226e],_0x29425a;}const _0x5b372a=path[_0x1699f5(0x15e)](_0xfa9d20,_0x1699f5(0x84),_0x37e03d['transactionId'],_0x1699f5(0xfa));!/^[a-zA-Z0-9_-]{1,80}$/[_0x1699f5(0x149)](_0x37e03d['transactionId'])&&(_0x195b14(),fail('UPDATE_HISTORY_UNVERIFIED'));try{if(!fs['existsSync'](path[_0x1699f5(0x159)](_0x5b372a)))require(_0x1699f5(0x78))[_0x1699f5(0xc5)](_0x6ae17,_0xde6548,_0x47dc50,_0x473ac7);else{if(!require('../core/workspace-path')['containsWorkspace'](_0x6ae17,fs[_0x1699f5(0x154)](path[_0x1699f5(0x159)](_0x5b372a))))fail('UPDATE_HISTORY_UNVERIFIED');if(_0x1873ae&&fs[_0x1699f5(0x8f)](_0x5b372a)){if(!require('node:util')[_0x1699f5(0x14a)](JSON[_0x1699f5(0x142)](fs[_0x1699f5(0x13d)](_0x5b372a)),_0x37e03d))fail(_0x1699f5(0xdc));}else writeJournal(_0x5b372a,_0x37e03d);}}catch(_0x2a0e97){_0x195b14();throw _0x2a0e97;}_0x37e03d=null;}try{if(!_0x473ac7['operationRecovery']&&require(_0x1699f5(0x11b))['interruptedTransaction'](_0x6ae17,_0x5e0102,_0x473ac7[_0x1699f5(0x11d)])){_0x195b14();const _0x14d9d2={};_0x14d9d2[_0x1699f5(0xd8)]=_0x1699f5(0x7d);const _0x1213d8={};return _0x1213d8['status']=_0x1699f5(0xea),_0x1213d8[_0x1699f5(0x132)]=_0x5e0102,_0x1213d8[_0x1699f5(0xa6)]=[_0x14d9d2],_0x1213d8;}}catch(_0x26dd63){_0x195b14();throw _0x26dd63;}const _0x326fc7=(_0xa83e9e,_0x54e1d0={})=>{const _0x32395e=_0x1699f5,_0x316e7f={};_0x316e7f['status']=_0x32395e(0xc7),_0x316e7f['blockers']=[];const _0x299b87={};_0x299b87[_0x32395e(0x173)]=_0x32395e(0xcc),_0x299b87['results']=[],_0x37e03d={'indexRecoveries':_0x222da1,..._0x37e03d,'transactionId':_0x5e0102,'workspace':_0x6ae17,'runtimeRoot':_0x473ac7[_0x32395e(0xd7)],'release':_0x473ac7[_0x32395e(0xe5)],'publicKey':_0x473ac7[_0x32395e(0x11d)]?.[_0x32395e(0x176)](),'resourcePlan':_0x2c6cbd[_0x32395e(0xf0)],'registrationPlan':_0x473ac7['registrationPlan']?.[_0x32395e(0xf0)]||_0x473ac7[_0x32395e(0xcb)]||_0x37e03d?.[_0x32395e(0xcb)]||null,'registrationMigration':_0x473ac7['registrationMigration']||_0x37e03d?.[_0x32395e(0x9c)]||_0x316e7f,'addons':_0x473ac7['addons']||_0x37e03d?.[_0x32395e(0x68)]||_0x299b87,'forceRecover':_0x473ac7[_0x32395e(0x17d)]===!![]||_0x37e03d?.[_0x32395e(0x17d)]===!![],'recoveryBackupPath':_0x473ac7[_0x32395e(0x129)]||_0x37e03d?.[_0x32395e(0x129)]||null,'rebuildIndex':_0x37e03d?.[_0x32395e(0x10f)]===!![]||_0x473ac7[_0x32395e(0x10f)]===!![],'indexPhase':_0x37e03d?.[_0x32395e(0x15c)]||(_0x37e03d?.['rebuildIndex']===!![]||_0x473ac7[_0x32395e(0x10f)]===!![]?_0x32395e(0xca):_0x32395e(0xcc)),'status':_0xa83e9e,'changedAt':new Date()[_0x32395e(0x148)](),..._0x54e1d0},writeJournal(_0xde6548,_0x37e03d);};let _0x361205=readGeneration(_0x6ae17)?.[_0x1699f5(0x132)]===_0x5e0102;const _0x4d57a0=_0x473ac7[_0x1699f5(0xcb)]?.['directory']||_0x473ac7['registrationPlan']||_0x37e03d?.[_0x1699f5(0xcb)];let _0x5d264a;try{_0x5d264a=_0x4d57a0?new(require(_0x1699f5(0x14f)))[(_0x1699f5(0xd9))](_0x4d57a0):null;}catch(_0x323fab){_0x195b14();throw _0x323fab;}_0x5d264a&&(!sameRegistrationWorkspace(_0x5d264a[_0x1699f5(0x169)][_0x1699f5(0xdf)],_0x6ae17)||_0x5d264a['plan']['transactionId']!==_0x5e0102)&&(_0x195b14(),fail(_0x1699f5(0xfc)));let _0x3e8a66=readFence(_0x6ae17),_0x5af325=[],_0x39cbbc=![];const _0x27da5d=()=>readControl(_0x6ae17,_0x5e0102)?.['action'],_0x4fc1f9=()=>{const _0x200fa2=_0x1699f5;if(!_0x473ac7['operationRecovery'])return;if(!_0x195b14[_0x200fa2(0x16c)]())fail(_0x200fa2(0x114));require('../core/update-control')['assertRecoveryRetirement'](_0x6ae17,_0x473ac7[_0x200fa2(0x12d)],_0x473ac7[_0x200fa2(0x11d)],_0x473ac7[_0x200fa2(0x12d)][_0x200fa2(0x98)],_0x473ac7[_0x200fa2(0x12d)]['successorId']);if(_0x37e03d?.['recovery']!=='abort-drain')fail(_0x200fa2(0xdc));},_0xdbdc82=async _0xcf4038=>{const _0x29c7a5=_0x1699f5;if(_0x37e03d?.[_0x29c7a5(0xd1)]?.[_0x29c7a5(0x173)]===_0x29c7a5(0xe9))return _0x37e03d[_0x29c7a5(0xd1)];if(_0x37e03d?.[_0x29c7a5(0xd1)]?.[_0x29c7a5(0x173)]===_0x29c7a5(0x116)||_0x37e03d?.[_0x29c7a5(0xd1)]?.[_0x29c7a5(0x173)]==='unknown'||[_0x29c7a5(0x83),_0x29c7a5(0xc6)][_0x29c7a5(0x88)](_0x37e03d?.['indexResult']?.[_0x29c7a5(0xd8)])){const _0xe40e53={};return _0xe40e53[_0x29c7a5(0x173)]=_0x29c7a5(0x110),_0xe40e53[_0x29c7a5(0xd8)]='INDEX_OUTCOME_UNKNOWN',_0xe40e53[_0x29c7a5(0x96)]=![],_0xe40e53;}const _0x1ab6cc={};_0x1ab6cc[_0x29c7a5(0x173)]='not-requested';if(!_0x37e03d?.['rebuildIndex']&&!_0x473ac7[_0x29c7a5(0x10f)])return _0x1ab6cc;const _0x2a96c9={};_0x2a96c9[_0x29c7a5(0x173)]=_0x29c7a5(0x116);const _0x3a9b71={};_0x3a9b71[_0x29c7a5(0x15c)]='post-activation',_0x3a9b71[_0x29c7a5(0xd1)]=_0x2a96c9,_0x326fc7(_0xcf4038,_0x3a9b71);try{const _0x161c57={};_0x161c57[_0x29c7a5(0xdf)]=_0x6ae17,_0x161c57['release']=_0x473ac7[_0x29c7a5(0xe5)],_0x161c57[_0x29c7a5(0x11d)]=_0x473ac7[_0x29c7a5(0x11d)];const _0x5557dd=await rebuildWorkspaceIndex(_0x161c57);_0x37e03d=require('./index-recovery')['guardIndexTerminal'](_0x6ae17,_0x5557dd[_0x29c7a5(0x14b)]);const _0x21ce63={..._0x37e03d[_0x29c7a5(0xd1)]};_0x21ce63[_0x29c7a5(0x173)]=_0x29c7a5(0xe9),_0x21ce63[_0x29c7a5(0x81)]=_0x5557dd[_0x29c7a5(0x81)];const _0x89b1b0=_0x21ce63,_0x43c019={};return _0x43c019['indexPhase']='post-activation',_0x43c019[_0x29c7a5(0xd1)]=_0x89b1b0,_0x326fc7(_0xcf4038,_0x43c019),_0x89b1b0;}catch(_0x334007){try{_0x37e03d=require(_0x29c7a5(0x91))['guardIndexTerminal'](_0x6ae17,_0x334007[_0x29c7a5(0x14b)]);}catch{const _0x5c0514={};return _0x5c0514[_0x29c7a5(0x173)]=_0x29c7a5(0x110),_0x5c0514['code']='INDEX_OUTCOME_UNKNOWN',_0x5c0514[_0x29c7a5(0x96)]=![],_0x5c0514;}const _0x93241f=_0x334007[_0x29c7a5(0xd8)]||_0x29c7a5(0xa7),_0x465767=[_0x29c7a5(0x83),_0x29c7a5(0xc6)][_0x29c7a5(0x88)](_0x93241f),_0x30033d={..._0x37e03d['indexResult'],'status':_0x465767?'unknown':'failed','code':_0x93241f,'retryable':[_0x29c7a5(0x16e),'INDEX_BUSY',_0x29c7a5(0x15a)]['includes'](_0x93241f),'causeCode':_0x334007['cause']?.[_0x29c7a5(0xd8)]||null,'diagnostic':_0x334007[_0x29c7a5(0x81)]||null},_0x1120bc={};_0x1120bc[_0x29c7a5(0xd8)]=_0x465767?'INDEX_OUTCOME_UNKNOWN':'INDEX_REBUILD_FAILED',_0x1120bc[_0x29c7a5(0x165)]='post-activation',_0x1120bc[_0x29c7a5(0xd5)]=_0x93241f;const _0x12a48c={};return _0x12a48c[_0x29c7a5(0x15c)]=_0x29c7a5(0xca),_0x12a48c[_0x29c7a5(0xd1)]=_0x30033d,_0x12a48c[_0x29c7a5(0xa6)]=[_0x1120bc],_0x326fc7(_0xcf4038,_0x12a48c),_0x30033d;}},_0xe7c4d3=async _0x5c1bc0=>{const _0x4372a1=_0x1699f5;_0x5d264a?.[_0x4372a1(0x119)](),_0x2c6cbd[_0x4372a1(0x119)](),_0x5af325=_0x95676e['listWorkspaceReceipts'](_0x6ae17);for(const _0x9e8242 of _0x37e03d['previousConnections']||[])if(!_0x5af325['some'](_0x52810d=>_0x52810d[_0x4372a1(0x12b)]===_0x9e8242[_0x4372a1(0x12b)]))fail(_0x4372a1(0x16b));for(const _0x21ec72 of _0x5af325){const _0x5de9f9={};_0x5de9f9[_0x4372a1(0x132)]=_0x5e0102,_0x5de9f9['epoch']=_0x3e8a66[_0x4372a1(0x10b)];const _0x550767=await _0x95676e[_0x4372a1(0x8e)](_0x21ec72,_0x4372a1(0xb6),_0x5de9f9);if(_0x550767[_0x4372a1(0x133)]!==_0x4372a1(0xd0)||_0x550767[_0x4372a1(0x173)]!=='previous-restored')fail(_0x550767[_0x4372a1(0xd8)]||'RESOURCE_ROLLBACK_UNCONFIRMED');let _0xf695a2=_0x37e03d[_0x4372a1(0x8c)]?.['find'](_0x9ef045=>_0x9ef045[_0x4372a1(0x12b)]===_0x21ec72[_0x4372a1(0x12b)]);if(!_0xf695a2){const _0xcb38b0=readGeneration(_0x6ae17);if(_0xcb38b0&&_0xcb38b0[_0x4372a1(0x132)]!==_0x5e0102&&sameRegistrationWorkspace(_0xcb38b0[_0x4372a1(0xdf)]||'',_0x6ae17)&&Number[_0x4372a1(0x179)](_0xcb38b0[_0x4372a1(0x11a)])&&_0xcb38b0[_0x4372a1(0x11a)]>0x0&&/^\d+\.\d+\.\d+$/[_0x4372a1(0x149)](_0xcb38b0[_0x4372a1(0x16f)]||'')&&[_0x4372a1(0x136),_0x4372a1(0xe1),_0x4372a1(0x112)][_0x4372a1(0x12a)](_0x153ebf=>/^[a-f0-9]{64}$/['test'](_0xcb38b0[_0x153ebf]||''))&&hashFile(path['join'](_0x6ae17,'.agents/manifest.json'))===_0xcb38b0[_0x4372a1(0xe1)]){const _0x598437=verifyRelease(path['join'](_0x473ac7['runtimeRoot'],_0x4372a1(0x7f),_0xcb38b0[_0x4372a1(0x16f)]+'-'+_0xcb38b0['digest']),_0x473ac7['publicKey']);if(_0x598437[_0x4372a1(0x16f)]===_0xcb38b0[_0x4372a1(0x16f)]&&_0x598437[_0x4372a1(0x136)]===_0xcb38b0[_0x4372a1(0x136)])_0xf695a2={..._0xcb38b0,'connectionId':_0x21ec72['connectionId']};}}const _0x7504d4=_0xf695a2?[_0x4372a1(0x12b),'version',_0x4372a1(0x136),_0x4372a1(0x11a),'resourceDigest','catalogHash'][_0x4372a1(0xd3)](_0xb6cd18=>_0x550767[_0xb6cd18]!==_0xf695a2[_0xb6cd18]):[_0x4372a1(0x7b)];if(_0x550767[_0x4372a1(0xf1)]!==!![])_0x7504d4['push'](_0x4372a1(0xf1));if(!Number[_0x4372a1(0x179)](_0x550767[_0x4372a1(0xbd)])||_0x550767[_0x4372a1(0xbd)]<=0x0)_0x7504d4['push'](_0x4372a1(0xbd));if(!sameRegistrationWorkspace(_0x550767['workspace']||'',_0x6ae17))_0x7504d4[_0x4372a1(0x118)](_0x4372a1(0xdf));if(_0x7504d4[_0x4372a1(0x6f)])throw Object[_0x4372a1(0x79)](new Error('Previous\x20readiness\x20tuple\x20differs'),{'code':_0x4372a1(0x16b),'mismatchFields':_0x7504d4});}const _0x5df525={};_0x5df525['state']=_0x4372a1(0x125),_0x5df525['transactionId']=_0x5e0102,_0x3e8a66=changeFence(_0x6ae17,_0x3e8a66[_0x4372a1(0x10b)],_0x5df525);for(const _0x51f446 of _0x5af325){const _0xd68dee={};_0xd68dee[_0x4372a1(0x132)]=_0x5e0102;const _0x168e15=await _0x95676e['controlConnection'](_0x51f446,_0x4372a1(0x166),_0xd68dee);if(_0x168e15[_0x4372a1(0x133)]!==_0x4372a1(0xd0)||![_0x4372a1(0x100),'ready-next-connection']['includes'](_0x168e15[_0x4372a1(0x173)]))fail(_0x4372a1(0x16b));}const _0x152f7d=_0x27da5d()===_0x4372a1(0x9d)||_0x5c1bc0['some'](_0x1e0a98=>_0x1e0a98[_0x4372a1(0xd8)]===_0x4372a1(0x9b)),_0xecf873={};_0xecf873['blockers']=_0x5c1bc0,_0xecf873[_0x4372a1(0x126)]=_0x4372a1(0x12c),_0x326fc7(_0x152f7d?_0x4372a1(0x11f):'rolled-back',_0xecf873);const _0x31b791={};return _0x31b791[_0x4372a1(0x173)]=_0x152f7d?_0x4372a1(0x11f):'failed',_0x31b791[_0x4372a1(0x132)]=_0x5e0102,_0x31b791[_0x4372a1(0x126)]=_0x4372a1(0x12c),_0x31b791[_0x4372a1(0xa6)]=_0x5c1bc0,_0x31b791;},_0x41305d=async(_0x1a13ac=![])=>{const _0x59684d=_0x1699f5,_0x22ffb9=new Set();for(const _0x145af8 of _0x95676e['listWorkspaceReceipts'](_0x6ae17)){_0x4fc1f9();const _0x376f27={};_0x376f27[_0x59684d(0x132)]=_0x5e0102,_0x376f27[_0x59684d(0x10b)]=_0x3e8a66[_0x59684d(0x10b)];const _0x1305f4=await _0x95676e[_0x59684d(0x8e)](_0x145af8,_0x59684d(0x166),_0x376f27);_0x4fc1f9();const _0x53533c={};_0x53533c[_0x59684d(0xd8)]='CANCEL_ACK_PENDING',_0x53533c[_0x59684d(0x12b)]=_0x145af8[_0x59684d(0x12b)];const _0x37942d={};_0x37942d[_0x59684d(0x173)]=_0x59684d(0xea),_0x37942d[_0x59684d(0x132)]=_0x5e0102,_0x37942d[_0x59684d(0xa6)]=[_0x53533c];if(_0x1305f4[_0x59684d(0x133)]!==_0x59684d(0xd0)||![_0x59684d(0x100),_0x59684d(0xba)][_0x59684d(0x88)](_0x1305f4['status']))return _0x37942d;_0x22ffb9[_0x59684d(0x13c)](_0x145af8[_0x59684d(0x12b)]);}const _0x32b749=require(_0x59684d(0x124));_0x32b749['withAdmissionLock'](_0x6ae17,_0x27cce4=>{const _0x4255db=_0x59684d;_0x4fc1f9();if(_0x27cce4[_0x4255db(0x10b)]!==_0x3e8a66['epoch']||_0x27cce4[_0x4255db(0x9e)]!==_0x4255db(0x9f)||_0x27cce4[_0x4255db(0x132)]!==_0x5e0102)fail(_0x4255db(0x172));if(Object[_0x4255db(0x6e)](_0x27cce4[_0x4255db(0x102)]||{})['some'](_0x38ae48=>_0x38ae48['state']!==_0x4255db(0xc0)&&!_0x22ffb9[_0x4255db(0x106)](_0x38ae48[_0x4255db(0x12b)])))fail('CANCEL_ACK_PENDING');const _0x38f93f={};_0x38f93f['transactionId']=_0x5e0102,_0x38f93f[_0x4255db(0x94)]=_0x37e03d['resourceContractDigest'],_0x38f93f['acknowledged']=[..._0x22ffb9];const _0x5eacfa={};_0x5eacfa[_0x4255db(0xf4)]=_0x38f93f;const _0xa4d273={..._0x27cce4,'state':_0x4255db(0x125),'epoch':_0x27cce4['epoch']+0x1,'stopRequested':![],'targetVersion':null,'targetDigest':null,..._0x1a13ac?_0x5eacfa:{}};_0x32b749[_0x4255db(0x17a)](_0x6ae17,_0xa4d273);const _0xfc8038={};_0xfc8038['recovery']='drain-aborted',_0x326fc7('cancelled',_0x1a13ac?_0xfc8038:{});});const _0x236be2={};_0x236be2['recovery']=_0x59684d(0xdd);const _0x374165={'status':_0x59684d(0x11f),'transactionId':_0x5e0102,'resourcesApplied':![],..._0x1a13ac?_0x236be2:{}};return _0x374165;};try{const _0xb2e8dc=verifyRelease(_0x473ac7[_0x1699f5(0xe5)],_0x473ac7[_0x1699f5(0x11d)]);_0x2c6cbd['validate']();const _0x179ef7={};_0x179ef7['version']=_0xb2e8dc[_0x1699f5(0x16f)],_0x179ef7[_0x1699f5(0x136)]=_0xb2e8dc['digest'];const _0x58bca6=_0x179ef7;if(_0x37e03d&&(!_0x37e03d[_0x1699f5(0x99)]||!_0x37e03d[_0x1699f5(0xdf)]))fail(_0x1699f5(0x16a));if(_0x37e03d&&!sameRegistrationWorkspace(_0x37e03d['workspace'],_0x6ae17))fail(_0x1699f5(0x76));if(_0x37e03d?.['target']&&(_0x37e03d[_0x1699f5(0x99)][_0x1699f5(0x16f)]!==_0x58bca6[_0x1699f5(0x16f)]||_0x37e03d[_0x1699f5(0x99)][_0x1699f5(0x136)]!==_0x58bca6['digest']))fail(_0x1699f5(0x76));const _0x4d9188=require(_0x1699f5(0xb5))[_0x1699f5(0x94)](_0x2c6cbd[_0x1699f5(0x169)]);if(_0x37e03d?.[_0x1699f5(0x94)]&&_0x37e03d[_0x1699f5(0x94)]!==_0x4d9188)fail('UPDATE_PLAN_CHANGED');if(_0x37e03d&&!_0x37e03d[_0x1699f5(0x94)]){if(!_0x37e03d['preparedPlanDigest']||_0x37e03d[_0x1699f5(0x127)]!==hashFile(_0x2c6cbd['file']))fail('UPDATE_PLAN_UNVERIFIED');const _0x359123={};_0x359123[_0x1699f5(0x94)]=_0x4d9188,_0x326fc7(_0x37e03d['status'],_0x359123);}if(!_0x37e03d&&_0x361205)fail(_0x1699f5(0x16a));const _0x3c4fc2={};_0x3c4fc2[_0x1699f5(0x99)]=_0x58bca6,_0x3c4fc2[_0x1699f5(0x94)]=_0x4d9188;if(!_0x37e03d)_0x326fc7('preflight-pending',_0x3c4fc2);_0x39cbbc=!![],_0x4fc1f9();if(_0x95676e['reconcileWorkspaceConnections']){const _0x2167ce=await _0x95676e['reconcileWorkspaceConnections'](_0x6ae17,{'apply':!![],'forceRecover':_0x473ac7[_0x1699f5(0x17d)]===!![],'exitGraceMs':Number(process.env.APT_CONNECTION_EXIT_GRACE_MS||0x2710),'legacyRecovery':_0x473ac7[_0x1699f5(0x12f)],'recoveryContext':_0x473ac7[_0x1699f5(0xef)],'legacyRecoveryRelease':_0x473ac7[_0x1699f5(0x13e)],'publicKey':_0x473ac7[_0x1699f5(0x11d)],'transactionId':_0x37e03d?.[_0x1699f5(0x132)]===_0x5e0102?_0x5e0102:undefined});_0x3e8a66=readFence(_0x6ae17);if(_0x2167ce['blockers'][_0x1699f5(0x6f)]){const _0x3e7d23={};_0x3e7d23['blockers']=_0x2167ce[_0x1699f5(0xa6)],_0x3e7d23[_0x1699f5(0x90)]=_0x2167ce['diagnostics'],_0x326fc7(_0x1699f5(0x164),_0x3e7d23);const _0x33c29c={};return _0x33c29c['status']='legacy-ownership-unverified',_0x33c29c[_0x1699f5(0x132)]=_0x5e0102,_0x33c29c['blockers']=_0x2167ce['blockers'],_0x33c29c[_0x1699f5(0x90)]=_0x2167ce[_0x1699f5(0xa2)],_0x33c29c;}}const _0x20e5f2={};_0x20e5f2[_0x1699f5(0xd8)]='UPDATE_SUSPENDED';const _0x3764f2={};_0x3764f2['status']='pending-safe-boundary',_0x3764f2[_0x1699f5(0x132)]=_0x5e0102,_0x3764f2['blockers']=[_0x20e5f2];if(_0x37e03d?.[_0x1699f5(0x15d)]&&!_0x473ac7['operationRecovery']||_0x37e03d?.['cancelled'])return _0x3764f2;const _0x1c2bfd=await require(_0x1699f5(0x13a))[_0x1699f5(0x170)](_0x6ae17,_0x2d1013);if(_0x1c2bfd[_0x1699f5(0x7c)][_0x1699f5(0x6f)])_0x326fc7(_0x37e03d[_0x1699f5(0x173)],{'workerReconciliation':_0x1c2bfd});if(!_0x361205&&_0x3e8a66[_0x1699f5(0x9e)]===_0x1699f5(0x125)&&_0x27da5d()===_0x1699f5(0x9d)){const _0x5d50de=_0x2c6cbd['inspect']();if(_0x37e03d?.[_0x1699f5(0x132)]!==_0x5e0102||_0x37e03d[_0x1699f5(0xb2)]||_0x37e03d[_0x1699f5(0xb0)]||_0x37e03d['oldRuntimesStopped']||_0x2c6cbd[_0x1699f5(0x169)][_0x1699f5(0x173)]!==_0x1699f5(0xb1)||_0x5d50de[_0x1699f5(0xb3)](_0x4a8288=>_0x4a8288[_0x1699f5(0x173)]!==_0x1699f5(0xb1)||![_0x1699f5(0x16d),_0x1699f5(0xe2)][_0x1699f5(0x88)](_0x4a8288['bytes'])))fail(_0x1699f5(0x17f));if(_0x5d264a&&(_0x5d264a[_0x1699f5(0x169)][_0x1699f5(0x173)]!==_0x1699f5(0xb1)||_0x5d264a['plan']['operations'][_0x1699f5(0xb3)](_0x199780=>_0x199780[_0x1699f5(0x173)]!==_0x1699f5(0xb1)||![_0x199780[_0x1699f5(0xec)],_0x199780[_0x1699f5(0x14d)]]['includes'](hashFile(_0x199780[_0x1699f5(0x157)])))))fail(_0x1699f5(0x117));_0x5d264a?.[_0x1699f5(0x119)](),_0x2c6cbd[_0x1699f5(0x119)](),_0x326fc7(_0x1699f5(0x11f),{'cancelled':!![],'cancellation':{'reason':_0x1699f5(0xff),'cancelledAt':new Date()[_0x1699f5(0x148)]()}});const _0x9deb25={};return _0x9deb25['status']=_0x1699f5(0x11f),_0x9deb25['transactionId']=_0x5e0102,_0x9deb25[_0x1699f5(0xb2)]=![],_0x9deb25;}if(!_0x361205&&_0x37e03d?.['recovery']===_0x1699f5(0x135)){_0x4fc1f9();const _0x37ba14={};_0x37ba14[_0x1699f5(0xd8)]=_0x1699f5(0x10e);const _0x1f2b67={};_0x1f2b67[_0x1699f5(0x173)]=_0x1699f5(0xea),_0x1f2b67['transactionId']=_0x5e0102,_0x1f2b67[_0x1699f5(0xa6)]=[_0x37ba14];if(_0x27da5d()===_0x1699f5(0xbf)&&!_0x473ac7[_0x1699f5(0x12d)])return _0x1f2b67;const _0x468ff7=_0x3e8a66[_0x1699f5(0x9e)]===_0x1699f5(0x125)&&_0x3e8a66['abortedDrain']?.[_0x1699f5(0x132)]===_0x5e0102&&_0x3e8a66['abortedDrain'][_0x1699f5(0x94)]===_0x4d9188;if(!_0x468ff7&&_0x3e8a66[_0x1699f5(0x9e)]!=='draining'||_0x3e8a66[_0x1699f5(0x132)]!==_0x5e0102||_0x37e03d['runsCancelled']||_0x37e03d[_0x1699f5(0xc4)]||_0x37e03d[_0x1699f5(0xb2)]||_0x2c6cbd[_0x1699f5(0x169)][_0x1699f5(0x173)]!=='prepared'||_0x2c6cbd[_0x1699f5(0xd4)]()[_0x1699f5(0xb3)](_0x3c8f82=>_0x3c8f82[_0x1699f5(0xe6)]!==_0x1699f5(0x16d)||_0x3c8f82[_0x1699f5(0x173)]!==_0x1699f5(0xb1)))fail(_0x1699f5(0x17f));if(_0x5d264a&&(_0x5d264a[_0x1699f5(0x169)][_0x1699f5(0x173)]!==_0x1699f5(0xb1)||_0x5d264a['plan']['operations']['some'](_0x348cef=>_0x348cef[_0x1699f5(0x173)]!==_0x1699f5(0xb1)||hashFile(_0x348cef[_0x1699f5(0x157)])!==_0x348cef[_0x1699f5(0xec)])))fail('REGISTRATION_RECOVERY_REQUIRED');if(_0x468ff7){const _0x53ebb6={};_0x53ebb6[_0x1699f5(0x126)]=_0x1699f5(0xdd),_0x326fc7(_0x1699f5(0x11f),_0x53ebb6);const _0x30eff4={};return _0x30eff4[_0x1699f5(0x173)]=_0x1699f5(0x11f),_0x30eff4['transactionId']=_0x5e0102,_0x30eff4['resourcesApplied']=![],_0x30eff4[_0x1699f5(0x126)]=_0x1699f5(0xdd),_0x30eff4;}return await _0x41305d(!![]);}if(!_0x361205&&_0x37e03d?.[_0x1699f5(0x126)]===_0x1699f5(0x119)){const _0x4d0cfc={};_0x4d0cfc[_0x1699f5(0xd8)]=_0x1699f5(0x10e);const _0x1849ac={};_0x1849ac['status']=_0x1699f5(0xea),_0x1849ac[_0x1699f5(0x132)]=_0x5e0102,_0x1849ac['blockers']=[_0x4d0cfc];if(_0x27da5d()===_0x1699f5(0xbf))return _0x1849ac;return await _0xe7c4d3(_0x37e03d[_0x1699f5(0xa6)]||[]);}const _0x5aaf1d=readGeneration(_0x6ae17);if(!_0x361205&&_0x3e8a66[_0x1699f5(0x9e)]===_0x1699f5(0x125)&&_0x5aaf1d?.[_0x1699f5(0x16f)]===_0x58bca6[_0x1699f5(0x16f)]&&_0x5aaf1d[_0x1699f5(0x136)]===_0x58bca6[_0x1699f5(0x136)]&&_0x5aaf1d['resourceDigest']===hashFile(path[_0x1699f5(0x15e)](_0x6ae17,'.agents','manifest.json'))&&/^[a-f0-9]{64}$/[_0x1699f5(0x149)](_0x5aaf1d[_0x1699f5(0x112)]||'')&&_0x2c6cbd[_0x1699f5(0x169)]['operations'][_0x1699f5(0x6f)]===0x0&&!_0x2c6cbd[_0x1699f5(0x169)][_0x1699f5(0x11e)][_0x1699f5(0x6f)]&&!_0x5d264a?.[_0x1699f5(0x169)][_0x1699f5(0x70)][_0x1699f5(0xb3)](_0x2cc8fb=>_0x2cc8fb[_0x1699f5(0xec)]!==_0x2cc8fb[_0x1699f5(0x14d)])&&!_0x473ac7[_0x1699f5(0x10f)]){const _0x503482=await _0x95676e[_0x1699f5(0x111)](_0x6ae17,_0x5aaf1d);if(!['active',_0x1699f5(0xba)]['includes'](_0x503482[_0x1699f5(0x173)]))return{..._0x503482,'transactionId':_0x5e0102,'target':_0x58bca6,'noOp':!![],'cancelledRuns':[]};projectGeneration(_0x473ac7[_0x1699f5(0xd7)],_0x6ae17,_0x5aaf1d),_0x326fc7(_0x503482[_0x1699f5(0x173)],{'target':_0x58bca6,'generation':_0x5aaf1d[_0x1699f5(0x11a)],'noOp':!![],'cancelledRuns':[],'blockers':[],'activationEvidence':_0x503482['status']===_0x1699f5(0x100)?_0x1699f5(0xd0):null});const _0x1277ca={};_0x1277ca['status']=_0x1699f5(0xcc);const _0x4e59ff={..._0x503482};return _0x4e59ff['transactionId']=_0x5e0102,_0x4e59ff[_0x1699f5(0x99)]=_0x58bca6,_0x4e59ff['generation']=_0x5aaf1d[_0x1699f5(0x11a)],_0x4e59ff[_0x1699f5(0x155)]=!![],_0x4e59ff['resourcesApplied']=![],_0x4e59ff[_0x1699f5(0x89)]=[],_0x4e59ff[_0x1699f5(0xd1)]=_0x1277ca,_0x4e59ff;}if(_0x361205&&_0x3e8a66['state']===_0x1699f5(0x125)){if(_0x5aaf1d['version']!==_0x58bca6[_0x1699f5(0x16f)]||_0x5aaf1d['digest']!==_0x58bca6[_0x1699f5(0x136)]||!_0x5aaf1d[_0x1699f5(0xe1)]||!/^[a-f0-9]{64}$/['test'](_0x5aaf1d['catalogHash']||'')||hashFile(path[_0x1699f5(0x15e)](_0x6ae17,_0x1699f5(0xf9),_0x1699f5(0x120)))!==_0x5aaf1d[_0x1699f5(0xe1)])fail(_0x1699f5(0x123));if(!_0x37e03d||_0x37e03d[_0x1699f5(0x132)]!==_0x5e0102||!_0x37e03d['workspace']||!sameRegistrationWorkspace(_0x37e03d['workspace'],_0x6ae17))fail(_0x1699f5(0x16a));const _0x148168=_0x95676e['listWorkspaceReceipts'](_0x6ae17),_0x548856=Object[_0x1699f5(0x6e)](_0x3e8a66[_0x1699f5(0x102)]||{})[_0x1699f5(0xd3)](_0x3e690f=>_0x3e690f[_0x1699f5(0x9e)]!==_0x1699f5(0xc0));for(const _0xace46a of _0x548856)if(!_0x148168[_0x1699f5(0xb3)](_0x501a68=>_0x501a68[_0x1699f5(0x12b)]===_0xace46a['connectionId']))fail('CONNECTION_UNCONFIRMED');for(const _0x31c20e of _0x148168){const _0x1aed28=await _0x95676e[_0x1699f5(0x156)](_0x31c20e);if(_0x1aed28[_0x1699f5(0x133)]!==_0x1699f5(0xd0)||_0x1aed28[_0x1699f5(0xf1)]!==!![]||[_0x1699f5(0x16f),_0x1699f5(0x136),'resourceDigest',_0x1699f5(0x112),_0x1699f5(0x11a)][_0x1699f5(0xb3)](_0x417551=>_0x1aed28[_0x417551]!==_0x5aaf1d[_0x417551]))fail(_0x1699f5(0x146));}projectGeneration(_0x473ac7[_0x1699f5(0xd7)],_0x6ae17,_0x5aaf1d);if(_0x2c6cbd[_0x1699f5(0x169)][_0x1699f5(0x173)]!==_0x1699f5(0x97))_0x2c6cbd[_0x1699f5(0xa5)](_0x5aaf1d[_0x1699f5(0x11a)]);_0x5d264a?.[_0x1699f5(0xa5)]();const _0x2f19d8=_0x148168[_0x1699f5(0x6f)]?_0x1699f5(0x100):'ready-next-connection',_0x36ed65={};_0x36ed65[_0x1699f5(0x11a)]=_0x5aaf1d[_0x1699f5(0x11a)],_0x36ed65['resourceDigest']=_0x5aaf1d[_0x1699f5(0xe1)],_0x36ed65[_0x1699f5(0xb2)]=!![],_0x36ed65[_0x1699f5(0xa6)]=[],_0x36ed65[_0x1699f5(0xb9)]=_0x148168['length']?_0x1699f5(0xd0):null,_0x326fc7(_0x2f19d8,_0x36ed65);const _0x36fc96=await _0xdbdc82(_0x2f19d8),_0x3b5a45=_0x36fc96[_0x1699f5(0x173)]===_0x1699f5(0x116)||_0x36fc96[_0x1699f5(0x173)]===_0x1699f5(0x110)||[_0x1699f5(0x83),'INDEX_STOP_UNCONFIRMED'][_0x1699f5(0x88)](_0x36fc96[_0x1699f5(0xd8)]),_0x5c3c82=_0x3b5a45?_0x1699f5(0xea):_0x2f19d8,_0x2abc2e={};_0x2abc2e[_0x1699f5(0x11a)]=_0x5aaf1d['generation'],_0x2abc2e[_0x1699f5(0xe1)]=_0x5aaf1d[_0x1699f5(0xe1)],_0x2abc2e[_0x1699f5(0xb9)]=_0x148168[_0x1699f5(0x6f)]?_0x1699f5(0xd0):null;if(_0x5c3c82!==_0x2f19d8)_0x326fc7(_0x5c3c82,_0x2abc2e);const _0x3bdb06={};_0x3bdb06[_0x1699f5(0xd8)]=_0x1699f5(0x83),_0x3bdb06[_0x1699f5(0x165)]=_0x1699f5(0xca);const _0x22fe64=_0x3b5a45?[_0x3bdb06]:_0x36fc96[_0x1699f5(0x173)]===_0x1699f5(0xed)?[{'code':_0x1699f5(0xc2),'phase':_0x1699f5(0xca),'indexCode':_0x36fc96[_0x1699f5(0xd8)]}]:[],_0x11179e={'status':_0x5c3c82,'runtimeActivation':_0x5c3c82,'transactionId':_0x5e0102,'target':_0x58bca6,'generation':_0x5aaf1d['generation'],'resourceDigest':_0x5aaf1d[_0x1699f5(0xe1)],'resourcesApplied':!![],'cancelledRuns':_0x37e03d['cancelledRuns']||[],'indexResult':_0x36fc96,..._0x22fe64[_0x1699f5(0x6f)]?{'blockers':_0x22fe64}:{}};return _0x11179e;}if(_0x2c6cbd[_0x1699f5(0x169)]['conflicts'][_0x1699f5(0xb3)](_0x9ca7a5=>_0x9ca7a5[_0x1699f5(0x12e)])){const _0x5690b2={};_0x5690b2[_0x1699f5(0x99)]=_0x58bca6,_0x5690b2[_0x1699f5(0xa6)]=_0x2c6cbd['plan']['conflicts'],_0x326fc7('blocked-project-sync',_0x5690b2);const _0x45a371={};return _0x45a371['status']='blocked-project-sync',_0x45a371[_0x1699f5(0x132)]=_0x5e0102,_0x45a371[_0x1699f5(0xa6)]=_0x2c6cbd[_0x1699f5(0x169)][_0x1699f5(0x11e)],_0x45a371;}if(_0x3e8a66[_0x1699f5(0x9e)]===_0x1699f5(0x125)){const _0x1b9b48={'operation':_0x1699f5(0xab),..._0x2d1013},_0x2510b1=preflightWorkspaceContracts(_0x6ae17,_0x1b9b48);if(_0x2510b1[_0x1699f5(0x173)]!==_0x1699f5(0x11c)){const _0x2edf70={};_0x2edf70[_0x1699f5(0xa6)]=_0x2510b1['blockers'],_0x326fc7(_0x1699f5(0x164),_0x2edf70);const _0x50cb34={};return _0x50cb34[_0x1699f5(0x173)]=_0x1699f5(0x164),_0x50cb34['transactionId']=_0x5e0102,_0x50cb34['blockers']=_0x2510b1['blockers'],_0x50cb34;}const _0x3da94f=await(_0x473ac7[_0x1699f5(0x6c)]||preflightCandidate)({'workspace':_0x6ae17,'release':_0x473ac7[_0x1699f5(0xe5)],'runtimeRoot':_0x473ac7[_0x1699f5(0xd7)],'publicKey':_0x473ac7[_0x1699f5(0x11d)]});_0x2d005d();if(_0x3da94f[_0x1699f5(0x173)]!==_0x1699f5(0x145)||_0x3da94f['version']!==_0x58bca6[_0x1699f5(0x16f)]||_0x3da94f[_0x1699f5(0x136)]!==_0x58bca6[_0x1699f5(0x136)])fail(_0x1699f5(0x158));const _0x59c30c=[],_0x4bdaa0=[];for(const _0x430f4c of _0x95676e[_0x1699f5(0x8b)](_0x6ae17)){const _0x2211ca=await _0x95676e[_0x1699f5(0x156)](_0x430f4c);if(_0x2211ca[_0x1699f5(0x133)]!==_0x1699f5(0xd0)||_0x2211ca[_0x1699f5(0xf1)]!==!![]||_0x430f4c[_0x1699f5(0x160)]!==0x2){const _0x49ae78={};_0x49ae78[_0x1699f5(0xd8)]=_0x1699f5(0xcf),_0x49ae78['connectionId']=_0x430f4c[_0x1699f5(0x12b)];const _0xf9afc7=[_0x49ae78],_0x56c389={};_0x56c389['blockers']=_0xf9afc7,_0x326fc7(_0x1699f5(0x164),_0x56c389);const _0x24aa5c={};return _0x24aa5c['status']=_0x1699f5(0x164),_0x24aa5c[_0x1699f5(0x132)]=_0x5e0102,_0x24aa5c[_0x1699f5(0xa6)]=_0xf9afc7,_0x24aa5c;}(!_0x2211ca[_0x1699f5(0x112)]||_0x2211ca[_0x1699f5(0x112)]!==_0x3da94f['catalogHash'])&&_0x4bdaa0[_0x1699f5(0x118)](_0x430f4c['connectionId']);const _0x3d365d={};_0x3d365d[_0x1699f5(0x12b)]=_0x430f4c[_0x1699f5(0x12b)],_0x3d365d[_0x1699f5(0x6a)]=_0x430f4c[_0x1699f5(0x6a)],_0x3d365d[_0x1699f5(0xe0)]=_0x2211ca[_0x1699f5(0xe0)]||_0x430f4c['supervisorProcessStart']||null,_0x3d365d[_0x1699f5(0xd7)]=_0x430f4c[_0x1699f5(0xd7)]||_0x473ac7[_0x1699f5(0xd7)],registerMember(_0x6ae17,_0x3d365d);const _0x1e32f1={};_0x1e32f1['connectionId']=_0x430f4c[_0x1699f5(0x12b)],_0x1e32f1[_0x1699f5(0xdf)]=_0x6ae17,_0x1e32f1[_0x1699f5(0x16f)]=_0x2211ca[_0x1699f5(0x16f)],_0x1e32f1['digest']=_0x2211ca[_0x1699f5(0x136)],_0x1e32f1[_0x1699f5(0x11a)]=_0x2211ca[_0x1699f5(0x11a)],_0x1e32f1['resourceDigest']=_0x2211ca[_0x1699f5(0xe1)]??null,_0x1e32f1[_0x1699f5(0x112)]=_0x2211ca['catalogHash'],_0x59c30c[_0x1699f5(0x118)](_0x1e32f1),_0x59c30c[_0x59c30c['length']-0x1][_0x1699f5(0x162)]=_0x2211ca[_0x1699f5(0x162)]||[];}_0x326fc7(_0x1699f5(0xb1),{'target':_0x58bca6,'previousConnections':_0x59c30c,'catalogReconnectRequired':_0x4bdaa0,'upgradeRuns':snapshotUpgradeRuns(_0x6ae17,_0x2d1013),'catalogHash':_0x3da94f['catalogHash'],'generation':(readGeneration(_0x6ae17)?.[_0x1699f5(0x11a)]||0x0)+0x1});const _0x16c31d={};_0x16c31d[_0x1699f5(0x113)]=_0x2d005d;const _0x35fccc={'state':_0x1699f5(0x9f),'stopRequested':!![],'transactionId':_0x5e0102,'targetVersion':_0x58bca6[_0x1699f5(0x16f)],'targetDigest':_0x58bca6[_0x1699f5(0x136)],..._0x1873ae?_0x16c31d:{}};_0x3e8a66=changeFence(_0x6ae17,_0x3e8a66[_0x1699f5(0x10b)],_0x35fccc);}else{if(_0x3e8a66[_0x1699f5(0x132)]!==_0x5e0102||_0x3e8a66['targetVersion']!==_0x58bca6[_0x1699f5(0x16f)]||_0x3e8a66[_0x1699f5(0xc3)]!==_0x58bca6[_0x1699f5(0x136)])fail(_0x1699f5(0x172));}const _0x189af9=_0x473ac7['waitSeconds']===undefined?0x78:Number(_0x473ac7[_0x1699f5(0xe4)]);if(!Number['isFinite'](_0x189af9)||_0x189af9<0x0||_0x189af9>0xe10)fail('INVALID_WAIT');const _0x11d03d=Date[_0x1699f5(0x144)]()+_0x189af9*0x3e8;if(_0x3e8a66[_0x1699f5(0x9e)]===_0x1699f5(0x9f))for(;;){_0x2d005d();if(_0x27da5d()==='suspend'){const _0xa8bea3={};_0xa8bea3[_0x1699f5(0xd8)]=_0x1699f5(0x10e);const _0x4e6bed={};_0x4e6bed['blockers']=[_0xa8bea3],_0x326fc7(_0x1699f5(0xea),_0x4e6bed);const _0x6ec3e5={};_0x6ec3e5['code']=_0x1699f5(0x10e);const _0x19665a={};return _0x19665a[_0x1699f5(0x173)]=_0x1699f5(0xea),_0x19665a[_0x1699f5(0x132)]=_0x5e0102,_0x19665a[_0x1699f5(0xa6)]=[_0x6ec3e5],_0x19665a;}if(_0x27da5d()===_0x1699f5(0x9d))return await _0x41305d();_0x5af325=_0x95676e[_0x1699f5(0x8b)](_0x6ae17);const _0x563770=[],_0x446cc1=[],_0xbd472d=new Set();for(const _0x502825 of _0x5af325){const _0x1da52d=await _0x95676e['probeConnection'](_0x502825),_0x51f1e9=_0x502825['supervisorProcessStart']!==undefined&&String(_0x1da52d['supervisorProcessStart']||'')!==String(_0x502825[_0x1699f5(0xe0)]||'')||_0x502825['childProcessStart']!==undefined&&String(_0x1da52d['childProcessStart']||'')!==String(_0x502825[_0x1699f5(0x75)]||''),_0x157ff0=_0x1da52d[_0x1699f5(0x133)]==='authenticated-live-process'&&!_0x51f1e9;if(!_0x157ff0){const _0x2acdad={};_0x2acdad[_0x1699f5(0xd8)]=_0x51f1e9?_0x1699f5(0x141):_0x1da52d[_0x1699f5(0xd8)]||_0x1699f5(0xcf),_0x2acdad[_0x1699f5(0x12b)]=_0x502825[_0x1699f5(0x12b)],_0x563770['push'](_0x2acdad);continue;}_0xbd472d['add'](_0x502825[_0x1699f5(0x12b)]);if(!_0x37e03d[_0x1699f5(0x8c)]?.[_0x1699f5(0xb3)](_0x368845=>_0x368845[_0x1699f5(0x12b)]===_0x502825[_0x1699f5(0x12b)])&&_0x1da52d[_0x1699f5(0xf1)]===!![]){const _0x4c2fa4={};_0x4c2fa4['connectionId']=_0x502825[_0x1699f5(0x12b)],_0x4c2fa4[_0x1699f5(0xdf)]=_0x6ae17,_0x4c2fa4[_0x1699f5(0x16f)]=_0x1da52d[_0x1699f5(0x16f)],_0x4c2fa4['digest']=_0x1da52d[_0x1699f5(0x136)],_0x4c2fa4[_0x1699f5(0x11a)]=_0x1da52d['generation'],_0x4c2fa4['resourceDigest']=_0x1da52d[_0x1699f5(0xe1)]??null,_0x4c2fa4[_0x1699f5(0x112)]=_0x1da52d['catalogHash'],_0x4c2fa4[_0x1699f5(0x162)]=_0x1da52d['controlCapabilities']||[],_0x326fc7(_0x37e03d[_0x1699f5(0x173)],{'previousConnections':[..._0x37e03d['previousConnections']||[],_0x4c2fa4]});}if(!_0x1da52d[_0x1699f5(0x162)]?.[_0x1699f5(0x88)](_0x1699f5(0xbc)))continue;const _0x3f05ca={..._0x58bca6};_0x3f05ca['transactionId']=_0x5e0102,_0x3f05ca[_0x1699f5(0x10b)]=_0x3e8a66[_0x1699f5(0x10b)];const _0x5385c2=await _0x95676e[_0x1699f5(0x8e)](_0x502825,_0x1699f5(0xbc),_0x3f05ca),_0x50ea37={};_0x50ea37['receipt']=_0x502825,_0x50ea37[_0x1699f5(0xce)]=_0x1da52d,_0x50ea37['response']=_0x5385c2,_0x446cc1[_0x1699f5(0x118)](_0x50ea37);if(_0x5385c2[_0x1699f5(0x133)]!=='authenticated-live-process'||![_0x1699f5(0x128),_0x1699f5(0xea)]['includes'](_0x5385c2[_0x1699f5(0x173)]))_0x563770['push']({'code':_0x5385c2['code']||_0x1699f5(0x8a),'connectionId':_0x502825[_0x1699f5(0x12b)]});}const _0x19710f=workspaceOwnership(_0x6ae17,readFence(_0x6ae17),_0x1dfb04,_0x2d1013),_0xfad0a7=_0x19710f['map'](_0x3de7b7=>({'code':_0x1699f5(0x150),'ownership':_0x3de7b7}));_0xfad0a7['push'](..._0x563770);if(_0x37e03d[_0x1699f5(0xdb)]?.[_0x1699f5(0x6f)]&&_0x5af325['length']){const _0x1e0bd3=_0x5af325['map'](_0x49423c=>({'code':_0x1699f5(0x174),'connectionId':_0x49423c['connectionId']}));_0x1e0bd3[_0x1699f5(0x118)](..._0xfad0a7),_0x326fc7(_0x1699f5(0xf2),{'target':_0x58bca6,'blockers':_0x1e0bd3,'catalogStopResponses':_0x446cc1[_0x1699f5(0xd6)](({receipt:_0x661815,response:_0x4dff19})=>({'connectionId':_0x661815['connectionId'],'evidence':_0x4dff19[_0x1699f5(0x133)],'status':_0x4dff19['status'],'code':_0x4dff19[_0x1699f5(0xd8)]||null,'supervisorPid':_0x4dff19[_0x1699f5(0x6a)],'childPid':_0x4dff19[_0x1699f5(0xbd)]}))});const _0x500623={};return _0x500623[_0x1699f5(0x173)]=_0x1699f5(0xf2),_0x500623[_0x1699f5(0x132)]=_0x5e0102,_0x500623[_0x1699f5(0xa6)]=_0x1e0bd3,_0x500623;}const _0x17e8eb=[];for(const _0x5dc788 of _0x5af325){if(!_0xbd472d[_0x1699f5(0x106)](_0x5dc788['connectionId']))continue;const _0x21703d={..._0x58bca6};_0x21703d[_0x1699f5(0x132)]=_0x5e0102,_0x21703d[_0x1699f5(0x10b)]=_0x3e8a66[_0x1699f5(0x10b)];const _0x41eb47=await _0x95676e['controlConnection'](_0x5dc788,'prepare',_0x21703d),_0x18b5b7=_0x446cc1['find'](_0x26f31d=>_0x26f31d[_0x1699f5(0x134)][_0x1699f5(0x12b)]===_0x5dc788[_0x1699f5(0x12b)])?.['proof'],_0x210a5b={};_0x210a5b[_0x1699f5(0x134)]=_0x5dc788,_0x210a5b[_0x1699f5(0xf6)]=_0x41eb47,_0x210a5b[_0x1699f5(0xce)]=_0x18b5b7,_0x17e8eb[_0x1699f5(0x118)](_0x210a5b);const _0x59b1df=_0x41eb47[_0x1699f5(0x133)]===_0x1699f5(0xd0)&&_0x41eb47['status']===_0x1699f5(0x138),_0x365875={};_0x365875[_0x1699f5(0xd8)]=_0x41eb47[_0x1699f5(0xd8)]||_0x1699f5(0x150),_0x365875['connectionId']=_0x5dc788[_0x1699f5(0x12b)],_0x365875[_0x1699f5(0x7a)]=_0x41eb47['blockers']||[];if(!_0x59b1df)_0xfad0a7[_0x1699f5(0x118)](_0x365875);}const _0x581362=_0x446cc1[_0x1699f5(0x6f)]===_0x5af325['length']&&_0x563770['length']>0x0&&_0x563770[_0x1699f5(0x12a)](_0x2cedf7=>[_0x1699f5(0x10d),_0x1699f5(0x168)]['includes'](_0x2cedf7[_0x1699f5(0xd8)])),_0x50b8b1=_0x17e8eb['length']===_0x5af325[_0x1699f5(0x6f)]&&_0x17e8eb[_0x1699f5(0x12a)](_0x58066a=>_0x58066a['response'][_0x1699f5(0x173)]===_0x1699f5(0x138)&&Array[_0x1699f5(0xc1)](_0x58066a[_0x1699f5(0xf6)][_0x1699f5(0xa6)])&&_0x58066a[_0x1699f5(0xf6)][_0x1699f5(0xa6)][_0x1699f5(0x6f)]===0x0),_0x217e8b=_0x581362&&_0x17e8eb[_0x1699f5(0x6f)]===_0x5af325[_0x1699f5(0x6f)]&&_0x17e8eb['every'](_0x28376b=>_0x28376b[_0x1699f5(0xf6)][_0x1699f5(0x133)]===_0x1699f5(0xd0)&&(_0x50b8b1||_0x28376b['response'][_0x1699f5(0x173)]===_0x1699f5(0xea)&&Array['isArray'](_0x28376b['response'][_0x1699f5(0xa6)])&&_0x28376b[_0x1699f5(0xf6)][_0x1699f5(0xa6)][_0x1699f5(0x6f)]===0x1&&_0x28376b[_0x1699f5(0xf6)]['blockers'][0x0]?.['kind']===_0x1699f5(0xcd))&&typeof _0x28376b['receipt'][_0x1699f5(0xe0)]===_0x1699f5(0x163)&&_0x28376b['receipt'][_0x1699f5(0xe0)]&&typeof _0x28376b['receipt'][_0x1699f5(0x75)]===_0x1699f5(0x163)&&_0x28376b[_0x1699f5(0x134)]['childProcessStart']&&_0x28376b[_0x1699f5(0xce)]['supervisorProcessStart']===_0x28376b['receipt']['supervisorProcessStart']&&_0x28376b[_0x1699f5(0xce)]['childProcessStart']===_0x28376b[_0x1699f5(0x134)][_0x1699f5(0x75)]&&(_0x28376b['response'][_0x1699f5(0x132)]===_0x5e0102||_0x446cc1[_0x1699f5(0xb3)](_0x2b20d4=>_0x2b20d4['receipt']['connectionId']===_0x28376b[_0x1699f5(0x134)][_0x1699f5(0x12b)]&&_0x2b20d4[_0x1699f5(0xf6)][_0x1699f5(0x133)]==='authenticated-live-process'&&_0x2b20d4['response'][_0x1699f5(0x173)]==='failed'&&[_0x1699f5(0x10d),'RUN_INSPECTION_LIMIT'][_0x1699f5(0x88)](_0x2b20d4[_0x1699f5(0xf6)][_0x1699f5(0xd8)])&&_0x2b20d4[_0x1699f5(0xf6)][_0x1699f5(0x6a)]===_0x28376b[_0x1699f5(0xf6)][_0x1699f5(0x6a)]&&_0x2b20d4[_0x1699f5(0xf6)][_0x1699f5(0xbd)]===_0x28376b['response'][_0x1699f5(0xbd)])));if(_0x581362&&_0x217e8b){const {releaseIdleCoordinatorForUpgrade:_0x27bcb9}=require(_0x1699f5(0x13a)),_0xe7cce2=_0x446cc1[_0x1699f5(0xd6)](_0x4093a9=>{const _0x446d1a=_0x1699f5,_0x3cf8d5=readFence(_0x6ae17)[_0x446d1a(0x102)]?.[_0x4093a9[_0x446d1a(0x134)][_0x446d1a(0x12b)]],_0x23a705=path[_0x446d1a(0x15e)](_0x6ae17,_0x446d1a(0xf9),_0x446d1a(0x15f),_0x446d1a(0xee),_0x4093a9['receipt']['connectionId']+'.json');let _0x50ff84;try{_0x50ff84=fs[_0x446d1a(0x13d)](_0x23a705);}catch{_0x50ff84=null;}return{'connectionId':_0x4093a9[_0x446d1a(0x134)][_0x446d1a(0x12b)],'supervisorPid':_0x4093a9[_0x446d1a(0x134)]['supervisorPid'],'childPid':_0x4093a9['response'][_0x446d1a(0xbd)],'supervisorProcessStart':_0x4093a9[_0x446d1a(0x134)]['supervisorProcessStart']||_0x4093a9[_0x446d1a(0xce)][_0x446d1a(0xe0)]||'','childProcessStart':_0x4093a9['receipt'][_0x446d1a(0x75)]||_0x4093a9[_0x446d1a(0xce)][_0x446d1a(0x75)]||_0x4093a9[_0x446d1a(0xf6)][_0x446d1a(0x75)]||'','receiptSha256':_0x50ff84?crypto[_0x446d1a(0xb8)](_0x446d1a(0xa9))[_0x446d1a(0xe3)](JSON['stringify']({'connectionId':_0x4093a9[_0x446d1a(0x134)][_0x446d1a(0x12b)]||null,'workspace':_0x4093a9[_0x446d1a(0x134)][_0x446d1a(0xdf)]||null,'supervisorPid':_0x4093a9['receipt'][_0x446d1a(0x6a)]||null,'supervisorProcessStart':_0x4093a9['receipt'][_0x446d1a(0xe0)]||null,'childPid':_0x4093a9[_0x446d1a(0x134)]['childPid']||null,'childProcessStart':_0x4093a9[_0x446d1a(0x134)]['childProcessStart']||null,'generation':_0x4093a9[_0x446d1a(0x134)]['generation']||null,'version':_0x4093a9[_0x446d1a(0x134)][_0x446d1a(0x16f)]||null,'digest':_0x4093a9['receipt'][_0x446d1a(0x136)]||null,'resourceDigest':_0x4093a9[_0x446d1a(0x134)][_0x446d1a(0xe1)]||null,'catalogHash':_0x4093a9[_0x446d1a(0x134)]['catalogHash']||null}))['digest'](_0x446d1a(0x109)):'','memberSha256':crypto[_0x446d1a(0xb8)](_0x446d1a(0xa9))[_0x446d1a(0xe3)](JSON[_0x446d1a(0x17c)](_0x3cf8d5||null))[_0x446d1a(0x136)]('hex')};}),_0x4110e5={};_0x4110e5[_0x1699f5(0x132)]=_0x5e0102,_0x4110e5[_0x1699f5(0x10b)]=_0x3e8a66[_0x1699f5(0x10b)],_0x4110e5['version']=_0x58bca6[_0x1699f5(0x16f)],_0x4110e5[_0x1699f5(0x136)]=_0x58bca6[_0x1699f5(0x136)];const _0x5b6996=_0x27bcb9(_0x6ae17,_0x4110e5,_0x17e8eb['map'](_0x438ea5=>({'connectionId':_0x438ea5[_0x1699f5(0x134)][_0x1699f5(0x12b)],..._0x438ea5[_0x1699f5(0xf6)],'legacyRequestBound':_0x438ea5['response'][_0x1699f5(0x132)]===undefined})),{'roots':_0x1dfb04,'localOwnership':_0x19710f,'runInspectionOptions':_0x2d1013,'identityProofs':_0xe7cce2,'resumeOnly':_0x50b8b1,'ownershipCheck':()=>workspaceOwnership(_0x6ae17,readFence(_0x6ae17),_0x1dfb04,_0x2d1013)});if(_0x5b6996[_0x1699f5(0xf5)]){const _0x553d2c=[];let _0x378e07=!![];for(const _0x2525a4 of _0x446cc1){const _0x360c53=await _0x95676e[_0x1699f5(0x156)](_0x2525a4['receipt']);if(_0x360c53[_0x1699f5(0x133)]!=='authenticated-live-process'||_0x360c53[_0x1699f5(0x6a)]!==_0x2525a4[_0x1699f5(0x134)][_0x1699f5(0x6a)]||_0x360c53[_0x1699f5(0xbd)]!==_0x2525a4['response'][_0x1699f5(0xbd)]||_0x360c53[_0x1699f5(0x11a)]!==_0x2525a4['response'][_0x1699f5(0x11a)]||_0x360c53[_0x1699f5(0xe0)]!==(_0x2525a4[_0x1699f5(0x134)]['supervisorProcessStart']||_0x2525a4['proof'][_0x1699f5(0xe0)])||_0x360c53[_0x1699f5(0x75)]!==(_0x2525a4[_0x1699f5(0x134)][_0x1699f5(0x75)]||_0x2525a4['proof']['childProcessStart'])){_0x378e07=![];break;}const _0x32f03c={..._0x58bca6};_0x32f03c['transactionId']=_0x5e0102,_0x32f03c['epoch']=_0x3e8a66['epoch'];const _0x20786a=await _0x95676e[_0x1699f5(0x8e)](_0x2525a4[_0x1699f5(0x134)],_0x1699f5(0xc8),_0x32f03c);_0x553d2c[_0x1699f5(0x118)](_0x20786a);if(_0x20786a['evidence']!=='authenticated-live-process'||_0x20786a[_0x1699f5(0x173)]!=='safe-boundary'||_0x20786a[_0x1699f5(0x132)]!==_0x5e0102||_0x20786a[_0x1699f5(0x10b)]!==_0x3e8a66['epoch']||_0x20786a[_0x1699f5(0x6d)]!==_0x58bca6[_0x1699f5(0x16f)]||_0x20786a[_0x1699f5(0xc3)]!==_0x58bca6[_0x1699f5(0x136)]||_0x20786a[_0x1699f5(0x6a)]!==_0x360c53[_0x1699f5(0x6a)]||_0x20786a[_0x1699f5(0xbd)]!==_0x360c53[_0x1699f5(0xbd)]||_0x20786a[_0x1699f5(0xe0)]!==_0x360c53['supervisorProcessStart']||_0x20786a['childProcessStart']!==_0x360c53[_0x1699f5(0x75)])_0x378e07=![];if(_0x378e07){const _0x41349b=await _0x95676e[_0x1699f5(0x156)](_0x2525a4['receipt']);if(_0x41349b[_0x1699f5(0x133)]!==_0x1699f5(0xd0)||_0x41349b[_0x1699f5(0x6a)]!==_0x360c53['supervisorPid']||_0x41349b[_0x1699f5(0xbd)]!==_0x360c53[_0x1699f5(0xbd)]||_0x41349b['generation']!==_0x360c53[_0x1699f5(0x11a)]||_0x41349b['supervisorProcessStart']!==_0x360c53['supervisorProcessStart']||_0x41349b[_0x1699f5(0x75)]!==_0x360c53[_0x1699f5(0x75)])_0x378e07=![];}}const _0xe8c331={};_0xe8c331[_0x1699f5(0xd8)]=_0x1699f5(0x7e);if(_0x378e07&&_0x553d2c['length']===_0x5af325[_0x1699f5(0x6f)])_0xfad0a7['length']=0x0,_0x19710f[_0x1699f5(0x6f)]=0x0,_0x563770[_0x1699f5(0x6f)]=0x0;else _0xfad0a7[_0x1699f5(0x118)](_0xe8c331);}else _0xfad0a7[_0x1699f5(0x118)]({'code':_0x5b6996[_0x1699f5(0xd8)]||_0x1699f5(0x178)});}const _0x1e640f=Object[_0x1699f5(0x6e)](readFence(_0x6ae17)[_0x1699f5(0x102)]||{})[_0x1699f5(0xd3)](_0x3c0dcc=>_0x3c0dcc['state']!==_0x1699f5(0xc0));for(const _0xa5b9e7 of _0x1e640f)if(!_0x5af325['some'](_0x5d2feb=>_0x5d2feb[_0x1699f5(0x12b)]===_0xa5b9e7[_0x1699f5(0x12b)]))_0xfad0a7[_0x1699f5(0x118)]({'code':_0x1699f5(0xcf),'connectionId':_0xa5b9e7[_0x1699f5(0x12b)]});if(!_0xfad0a7[_0x1699f5(0x6f)]){const _0x256738=new Set(_0x5af325['map'](_0x297bb4=>_0x297bb4['connectionId']));try{_0x3e8a66=freezeFence(_0x6ae17,_0x3e8a66[_0x1699f5(0x10b)],{},_0x47c567=>Object[_0x1699f5(0x6e)](_0x47c567[_0x1699f5(0x102)]||{})[_0x1699f5(0x12a)](_0x4fa9e4=>_0x4fa9e4[_0x1699f5(0x9e)]==='closed'||_0x256738[_0x1699f5(0x106)](_0x4fa9e4[_0x1699f5(0x12b)]))&&workspaceOwnership(_0x6ae17,_0x47c567,_0x1dfb04,_0x2d1013)[_0x1699f5(0x6f)]===0x0);break;}catch(_0x1808f5){if(_0x1808f5[_0x1699f5(0xd8)]!==_0x1699f5(0x150))throw _0x1808f5;const _0x5f5521={};_0x5f5521[_0x1699f5(0xd8)]=_0x1808f5[_0x1699f5(0xd8)],_0xfad0a7[_0x1699f5(0x118)](_0x5f5521);}}const _0xc72c37={};_0xc72c37['target']=_0x58bca6,_0xc72c37[_0x1699f5(0xa6)]=_0xfad0a7,_0x326fc7(_0x1699f5(0xea),_0xc72c37);const _0x4cf131={};_0x4cf131[_0x1699f5(0x173)]=_0x1699f5(0xea),_0x4cf131[_0x1699f5(0x132)]=_0x5e0102,_0x4cf131['blockers']=_0xfad0a7,_0x4cf131['resourcePlan']=_0x2c6cbd[_0x1699f5(0xf0)];if(Date[_0x1699f5(0x144)]()>=_0x11d03d)return _0x4cf131;await new Promise(_0x129e50=>setTimeout(_0x129e50,Math[_0x1699f5(0xf3)](0x1f4,Math[_0x1699f5(0x86)](0x1,_0x11d03d-Date[_0x1699f5(0x144)]()))));}if(_0x3e8a66['state']!==_0x1699f5(0xae))fail(_0x1699f5(0x172));if(_0x27da5d()===_0x1699f5(0xbf)){const _0x16a5ca={};_0x16a5ca[_0x1699f5(0xd8)]=_0x1699f5(0x10e);const _0x175b7d={};_0x175b7d[_0x1699f5(0xa6)]=[_0x16a5ca],_0x326fc7(_0x1699f5(0xea),_0x175b7d);const _0x890500={};_0x890500[_0x1699f5(0xd8)]='UPDATE_SUSPENDED';const _0x4c320f={};return _0x4c320f[_0x1699f5(0x173)]=_0x1699f5(0xea),_0x4c320f[_0x1699f5(0x132)]=_0x5e0102,_0x4c320f[_0x1699f5(0xa6)]=[_0x890500],_0x4c320f;}_0x5af325=_0x95676e[_0x1699f5(0x8b)](_0x6ae17)[_0x1699f5(0xd3)](_0x294996=>!_0x361205||readGeneration(_0x6ae17)[_0x1699f5(0xee)][_0x1699f5(0x88)](_0x294996['connectionId']));const _0x12b2d4={..._0x58bca6};_0x12b2d4[_0x1699f5(0x132)]=_0x5e0102,_0x12b2d4[_0x1699f5(0x10b)]=_0x3e8a66['epoch'],_0x12b2d4[_0x1699f5(0x11a)]=_0x37e03d['generation'],_0x12b2d4[_0x1699f5(0x112)]=_0x37e03d['catalogHash'],_0x12b2d4[_0x1699f5(0xe5)]=_0x473ac7[_0x1699f5(0xe5)];const _0x492d19=_0x12b2d4;if(!_0x361205){if(_0x27da5d()===_0x1699f5(0x9d))fail(_0x1699f5(0x9b));if(!_0x37e03d[_0x1699f5(0xb0)]){const _0x2f4157=[...new Map([..._0x37e03d[_0x1699f5(0x140)]||[],...snapshotUpgradeRuns(_0x6ae17,_0x2d1013)][_0x1699f5(0xd6)](_0x52ca42=>[JSON[_0x1699f5(0x17c)]([_0x52ca42['stateRoot'],_0x52ca42[_0x1699f5(0x14e)],_0x52ca42[_0x1699f5(0x105)]]),_0x52ca42]))[_0x1699f5(0x6e)]()],_0xf837b6={};_0xf837b6[_0x1699f5(0x140)]=_0x2f4157,_0x326fc7('cancelling-runs',_0xf837b6);const _0x1cf6d3={};_0x1cf6d3[_0x1699f5(0x132)]=_0x5e0102,_0x1cf6d3[_0x1699f5(0x10b)]=_0x3e8a66[_0x1699f5(0x10b)],_0x1cf6d3[_0x1699f5(0x99)]=_0x58bca6,_0x1cf6d3[_0x1699f5(0xf8)]=_0x2f4157;const {cancelled:_0x2534af}=cancelUpgradeRuns(_0x6ae17,_0x1cf6d3),_0x4a0201={};_0x4a0201['runsCancelled']=!![],_0x4a0201[_0x1699f5(0x89)]=_0x2534af,_0x326fc7('runs-cancelled',_0x4a0201);}if(!_0x37e03d[_0x1699f5(0xc4)]){_0x326fc7(_0x1699f5(0x14c));for(const _0x157736 of _0x5af325){const _0x24e83c=await _0x95676e[_0x1699f5(0x8e)](_0x157736,_0x1699f5(0x85),_0x492d19),_0x122176=_0x24e83c[_0x1699f5(0x173)]===_0x1699f5(0x104)&&_0x24e83c['oldRuntimeStopped']===!![]&&['version',_0x1699f5(0x136),_0x1699f5(0x11a),_0x1699f5(0x112)][_0x1699f5(0x12a)](_0x5542a4=>_0x24e83c[_0x5542a4]===_0x492d19[_0x5542a4])&&_0x24e83c[_0x1699f5(0xe1)]===hashFile(path[_0x1699f5(0x15e)](_0x6ae17,_0x1699f5(0xf9),_0x1699f5(0x120)));if(_0x24e83c[_0x1699f5(0x133)]!==_0x1699f5(0xd0)||_0x24e83c['status']!==_0x1699f5(0x87)&&!_0x122176)fail(_0x24e83c[_0x1699f5(0xd8)]||'CHILD_STOP_UNCONFIRMED');}const _0x9785e9={};_0x9785e9[_0x1699f5(0xc4)]=!![],_0x326fc7(_0x1699f5(0x67),_0x9785e9);}_0x326fc7('applying');const _0x3bf1da=()=>{const _0x1fe3df=_0x1699f5;_0x2d005d(),_0x2c6cbd[_0x1fe3df(0xad)](),_0x5d264a?.[_0x1fe3df(0xad)]();},_0x43daa4={};_0x43daa4[_0x1699f5(0x11d)]=_0x473ac7['publicKey'];if(_0x1873ae)require(_0x1699f5(0x124))[_0x1699f5(0xa8)](_0x6ae17,_0x3bf1da,_0x43daa4);else _0x3bf1da();_0x492d19['resourceDigest']=hashFile(path['join'](_0x6ae17,_0x1699f5(0xf9),_0x1699f5(0x120)));if(!_0x492d19['resourceDigest'])fail(_0x1699f5(0x161));const _0x169847={};_0x169847[_0x1699f5(0xe1)]=_0x492d19[_0x1699f5(0xe1)],_0x169847[_0x1699f5(0xb2)]=!![],_0x326fc7(_0x1699f5(0x93),_0x169847);for(const _0x447709 of _0x5af325){const _0x550372=await _0x95676e[_0x1699f5(0x8e)](_0x447709,_0x1699f5(0x175),_0x492d19);if(_0x550372[_0x1699f5(0x133)]!==_0x1699f5(0xd0)||_0x550372[_0x1699f5(0x173)]!==_0x1699f5(0x104))fail(_0x550372[_0x1699f5(0xd8)]||_0x1699f5(0x6b));recordCandidate(_0x6ae17,_0x5e0102,_0x3e8a66[_0x1699f5(0x10b)],_0x550372);}_0x326fc7(_0x1699f5(0xa3));if(_0x27da5d()===_0x1699f5(0x9d))fail(_0x1699f5(0x9b));if(_0x27da5d()===_0x1699f5(0xbf)){const _0x432001={};_0x432001[_0x1699f5(0xd8)]='UPDATE_SUSPENDED';const _0x526cc7={};_0x526cc7[_0x1699f5(0xe1)]=_0x492d19['resourceDigest'],_0x526cc7[_0x1699f5(0xa6)]=[_0x432001],_0x326fc7(_0x1699f5(0xea),_0x526cc7);const _0x5444bd={};_0x5444bd[_0x1699f5(0xd8)]=_0x1699f5(0x10e);const _0x51886={};return _0x51886['status']=_0x1699f5(0xea),_0x51886['transactionId']=_0x5e0102,_0x51886['blockers']=[_0x5444bd],_0x51886;}const _0x20f464={};_0x20f464[_0x1699f5(0x113)]=_0x2d005d,commitWorkspaceGeneration(_0x6ae17,_0x5e0102,_0x3e8a66[_0x1699f5(0x10b)],_0x492d19,_0x1873ae?_0x20f464:{}),_0x361205=!![],projectGeneration(_0x473ac7[_0x1699f5(0xd7)],_0x6ae17,readGeneration(_0x6ae17)),_0x2c6cbd[_0x1699f5(0xa5)](_0x492d19[_0x1699f5(0x11a)]),_0x5d264a?.[_0x1699f5(0xa5)](),_0x326fc7(_0x1699f5(0x97));}else{const _0x44cf77=readGeneration(_0x6ae17);_0x492d19[_0x1699f5(0x11a)]=_0x44cf77[_0x1699f5(0x11a)],_0x492d19[_0x1699f5(0xe1)]=_0x44cf77[_0x1699f5(0xe1)],_0x492d19[_0x1699f5(0x112)]=_0x44cf77[_0x1699f5(0x112)];if(_0x2c6cbd[_0x1699f5(0x169)][_0x1699f5(0x173)]!==_0x1699f5(0x97))_0x2c6cbd[_0x1699f5(0xa5)](_0x492d19[_0x1699f5(0x11a)]);_0x5d264a?.[_0x1699f5(0xad)](),_0x5d264a?.[_0x1699f5(0xa5)]();const _0x6fb947=readFence(_0x6ae17)[_0x1699f5(0x102)]||{};for(const _0x2a5648 of _0x44cf77['connections'])if(_0x6fb947[_0x2a5648]?.[_0x1699f5(0x9e)]!==_0x1699f5(0xc0)&&!_0x5af325[_0x1699f5(0xb3)](_0x5559a0=>_0x5559a0['connectionId']===_0x2a5648))fail(_0x1699f5(0xcf));for(const _0x38aa47 of _0x5af325){const _0x467cc3=await _0x95676e[_0x1699f5(0x8e)](_0x38aa47,'prepare-candidate',_0x492d19);if(_0x467cc3['evidence']!==_0x1699f5(0xd0)||_0x467cc3[_0x1699f5(0x173)]!=='candidate-ready')fail(_0x467cc3['code']||_0x1699f5(0x6b));recordCandidate(_0x6ae17,_0x5e0102,_0x3e8a66[_0x1699f5(0x10b)],_0x467cc3);}}for(const _0x36be4a of _0x5af325){const _0x1df217=await _0x95676e[_0x1699f5(0x8e)](_0x36be4a,_0x1699f5(0x108),_0x492d19);if(_0x1df217[_0x1699f5(0x133)]!==_0x1699f5(0xd0)||_0x1df217[_0x1699f5(0x173)]!=='active')fail(_0x1df217['code']||_0x1699f5(0x146));}openCommittedGeneration(_0x6ae17,_0x5e0102);const _0x36a5ae=_0x5af325[_0x1699f5(0x6f)]?'active':_0x1699f5(0xba),_0x38342a={};_0x38342a['blockers']=[],_0x38342a[_0x1699f5(0xb9)]=_0x5af325[_0x1699f5(0x6f)]?'authenticated-live-process':null,_0x326fc7(_0x36a5ae,_0x38342a);const _0xf51405=await _0xdbdc82(_0x36a5ae),_0x200ec3={};_0x200ec3[_0x1699f5(0xd8)]=_0x1699f5(0x83),_0x200ec3[_0x1699f5(0x165)]=_0x1699f5(0xca);const _0x209f8d=_0xf51405['status']==='failed'?[{'code':_0x1699f5(0xc2),'phase':_0x1699f5(0xca),'indexCode':_0xf51405[_0x1699f5(0xd8)]}]:_0xf51405[_0x1699f5(0x173)]===_0x1699f5(0x110)?[_0x200ec3]:[],_0x12fbcf=_0xf51405[_0x1699f5(0x173)]===_0x1699f5(0x116)||_0xf51405[_0x1699f5(0x173)]===_0x1699f5(0x110)||[_0x1699f5(0x83),_0x1699f5(0xc6)][_0x1699f5(0x88)](_0xf51405[_0x1699f5(0xd8)]),_0x5b7f93={};_0x5b7f93['code']=_0x1699f5(0x83),_0x5b7f93[_0x1699f5(0x165)]=_0x1699f5(0xca);const _0x58ee44={};_0x58ee44[_0x1699f5(0xa6)]=[_0x5b7f93];const _0x1c9b77={'status':_0x12fbcf?'pending-safe-boundary':_0x36a5ae,'runtimeActivation':_0x12fbcf?_0x1699f5(0xea):_0x36a5ae,'transactionId':_0x5e0102,'target':_0x58bca6,'generation':_0x492d19[_0x1699f5(0x11a)],'resourceDigest':_0x492d19['resourceDigest'],'resourcesApplied':!![],'cancelledRuns':_0x37e03d[_0x1699f5(0x89)]||[],'indexResult':_0xf51405,..._0x12fbcf?_0x58ee44:_0x209f8d[_0x1699f5(0x6f)]?{'blockers':_0x209f8d}:{}};return _0x1c9b77;}catch(_0x217a32){const _0x49277a=_0x37e03d?.[_0x1699f5(0x173)]||'prepare',_0x2f5a38=[{'code':_0x217a32[_0x1699f5(0xd8)]||_0x1699f5(0xa4),'phase':_0x49277a,..._0x217a32?.[_0x1699f5(0xd8)]===_0x1699f5(0xfd)||_0x217a32?.[_0x1699f5(0xd8)]===_0x1699f5(0xde)||_0x217a32?.[_0x1699f5(0xd8)]===_0x1699f5(0x8d)?{'diagnostic':safeFsDiagnostic(_0x217a32,_0x6ae17,_0x49277a)}:{}}],_0x3fd3bc={};_0x3fd3bc[_0x1699f5(0xb2)]=!![];const _0x554fbf={'status':_0x1699f5(0xea),'transactionId':_0x5e0102,'blockers':_0x2f5a38,..._0x37e03d?.[_0x1699f5(0xb2)]?_0x3fd3bc:{}};if(_0x473ac7[_0x1699f5(0x12d)]||_0x1873ae)return _0x554fbf;const _0x3d222e={};_0x3d222e[_0x1699f5(0x126)]=_0x1699f5(0xbe);const _0x437732={'status':'failed','transactionId':_0x5e0102,'blockers':_0x2f5a38,..._0x361205?_0x3d222e:{}};if(!_0x39cbbc)return _0x437732;if(!_0x361205&&_0x217a32[_0x1699f5(0xd8)]===_0x1699f5(0x10e)){const _0x219038={};_0x219038[_0x1699f5(0xa6)]=_0x2f5a38,_0x326fc7(_0x1699f5(0xea),_0x219038);const _0x1d565b={};return _0x1d565b[_0x1699f5(0x173)]=_0x1699f5(0xea),_0x1d565b[_0x1699f5(0x132)]=_0x5e0102,_0x1d565b[_0x1699f5(0xa6)]=_0x2f5a38,_0x1d565b;}if(_0x361205){const _0x1337f2={};_0x1337f2[_0x1699f5(0xa6)]=_0x2f5a38,_0x1337f2[_0x1699f5(0x126)]=_0x1699f5(0xbe),_0x326fc7(_0x1699f5(0x10c),_0x1337f2);const _0xeb4e09={};return _0xeb4e09[_0x1699f5(0x173)]=_0x1699f5(0xed),_0xeb4e09[_0x1699f5(0x132)]=_0x5e0102,_0xeb4e09[_0x1699f5(0x126)]=_0x1699f5(0xbe),_0xeb4e09['blockers']=_0x2f5a38,_0xeb4e09;}if(_0x473ac7[_0x1699f5(0x139)]){const _0x244e16={};_0x244e16[_0x1699f5(0xa6)]=_0x2f5a38,_0x244e16[_0x1699f5(0x126)]='bridge-required',_0x326fc7(_0x1699f5(0xed),_0x244e16);const _0x3eb407={};return _0x3eb407[_0x1699f5(0x173)]='failed',_0x3eb407['transactionId']=_0x5e0102,_0x3eb407[_0x1699f5(0x126)]=_0x1699f5(0xc9),_0x3eb407['blockers']=_0x2f5a38,_0x3eb407;}if(_0x3e8a66[_0x1699f5(0x9e)]===_0x1699f5(0xae)&&![_0x1699f5(0x83),'INDEX_REBUILD_FAILED']['includes'](_0x217a32[_0x1699f5(0xd8)]))try{const _0x3a1a21={};return _0x3a1a21[_0x1699f5(0xa6)]=_0x2f5a38,_0x3a1a21[_0x1699f5(0x126)]=_0x1699f5(0x119),_0x326fc7(_0x1699f5(0xb4),_0x3a1a21),await _0xe7c4d3(_0x2f5a38);}catch(_0x5476d6){const _0x20ca38={'code':_0x5476d6[_0x1699f5(0xd8)]||'RESOURCE_ROLLBACK_UNCONFIRMED',..._0x5476d6[_0x1699f5(0xaa)]?{'mismatchFields':_0x5476d6[_0x1699f5(0xaa)]}:{}};_0x2f5a38[_0x1699f5(0x118)](_0x20ca38);}const _0xab841e={};_0xab841e['blockers']=_0x2f5a38,_0x326fc7(_0x1699f5(0xed),_0xab841e);const _0x4c3097={};return _0x4c3097[_0x1699f5(0x173)]=_0x1699f5(0xed),_0x4c3097[_0x1699f5(0x132)]=_0x5e0102,_0x4c3097[_0x1699f5(0xa6)]=_0x2f5a38,_0x4c3097;}finally{_0x195b14();}}const _0x48b653={};_0x48b653['activatePreparedWorkspace']=activatePreparedWorkspace,module['exports']=_0x48b653;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x57fbd7=_0x2c9c;function _0x2c9c(_0x21863b,_0x226121){_0x21863b=_0x21863b-0x114;const _0x47d46e=_0x47d4();let _0x2c9cd6=_0x47d46e[_0x21863b];if(_0x2c9c['fiuNGz']===undefined){var _0x384cec=function(_0x2b50d2){const _0x5ecdfe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f1385='',_0x28b4f0='';for(let _0x90b3cd=0x0,_0x5f0da0,_0x5e34c8,_0x279169=0x0;_0x5e34c8=_0x2b50d2['charAt'](_0x279169++);~_0x5e34c8&&(_0x5f0da0=_0x90b3cd%0x4?_0x5f0da0*0x40+_0x5e34c8:_0x5e34c8,_0x90b3cd++%0x4)?_0x1f1385+=String['fromCharCode'](0xff&_0x5f0da0>>(-0x2*_0x90b3cd&0x6)):0x0){_0x5e34c8=_0x5ecdfe['indexOf'](_0x5e34c8);}for(let _0x2ff399=0x0,_0x1a598=_0x1f1385['length'];_0x2ff399<_0x1a598;_0x2ff399++){_0x28b4f0+='%'+('00'+_0x1f1385['charCodeAt'](_0x2ff399)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x28b4f0);};_0x2c9c['VjWabA']=_0x384cec,_0x2c9c['lzuUIo']={},_0x2c9c['fiuNGz']=!![];}const _0xb0b9fd=_0x47d46e[0x0],_0x3d2872=_0x21863b+_0xb0b9fd,_0x1b023a=_0x2c9c['lzuUIo'][_0x3d2872];return!_0x1b023a?(_0x2c9cd6=_0x2c9c['VjWabA'](_0x2c9cd6),_0x2c9c['lzuUIo'][_0x3d2872]=_0x2c9cd6):_0x2c9cd6=_0x1b023a,_0x2c9cd6;}(function(_0x5e1f3a,_0x284144){const _0x5a94cb=_0x2c9c,_0x3df607=_0x5e1f3a();while(!![]){try{const _0x20e513=-parseInt(_0x5a94cb(0x136))/0x1+-parseInt(_0x5a94cb(0x13f))/0x2+-parseInt(_0x5a94cb(0x141))/0x3+parseInt(_0x5a94cb(0x144))/0x4*(parseInt(_0x5a94cb(0x132))/0x5)+parseInt(_0x5a94cb(0x186))/0x6+-parseInt(_0x5a94cb(0x156))/0x7+parseInt(_0x5a94cb(0x15c))/0x8;if(_0x20e513===_0x284144)break;else _0x3df607['push'](_0x3df607['shift']());}catch(_0x2e27e3){_0x3df607['push'](_0x3df607['shift']());}}}(_0x47d4,0x7525c));const fs=require(_0x57fbd7(0x18a)),path=require(_0x57fbd7(0x11c)),crypto=require(_0x57fbd7(0x138)),{verifyRelease}=require(_0x57fbd7(0x11a)),{acquireRuntimeLock}=require('./runtime-lock'),{listWorkspaceReceipts,probeConnection,probeWorkspaceConnections,controlConnection}=require(_0x57fbd7(0x17f)),{readFence,changeFence}=require(_0x57fbd7(0x180)),{preflightWorkspaceContracts}=require(_0x57fbd7(0x13c)),{preflightCandidate}=require('./candidate-preflight'),pause=_0xe3c5fb=>new Promise(_0x203ed6=>setTimeout(_0x203ed6,_0xe3c5fb)),sha256=_0x3434d4=>{const _0x1763c3=_0x57fbd7;try{return crypto[_0x1763c3(0x116)](_0x1763c3(0x157))[_0x1763c3(0x124)](fs[_0x1763c3(0x137)](_0x3434d4))[_0x1763c3(0x179)](_0x1763c3(0x178));}catch(_0x2b9d37){if(_0x2b9d37['code']===_0x1763c3(0x13a))return null;throw _0x2b9d37;}},readJson=_0x387141=>{const _0x526505=_0x57fbd7;try{return JSON[_0x526505(0x12c)](fs[_0x526505(0x137)](_0x387141,'utf8'));}catch(_0x5f1727){if(_0x5f1727['code']===_0x526505(0x13a))return null;throw _0x5f1727;}},atomic=(_0x23301e,_0x3bc10f)=>{const _0x148182=_0x57fbd7,_0x334329={};_0x334329[_0x148182(0x17c)]=!![],fs[_0x148182(0x175)](path[_0x148182(0x18d)](_0x23301e),_0x334329);const _0x23f938=_0x23301e+'.'+crypto[_0x148182(0x143)]()+_0x148182(0x148);fs[_0x148182(0x177)](_0x23f938,JSON[_0x148182(0x127)](_0x3bc10f,null,0x2)),fs[_0x148182(0x142)](_0x23f938,_0x23301e);};function _0x47d4(){const _0x41f24b=['y2XVC2vK','Dg9mB3DLCKnHC2u','ywn0AxzHDgLVBG','D2fPDfnLy29Uzhm','vvbeqvrfx0Lox1bst0Dsrvnt','q09otKvdveLptL9vtKnptKzjuK1fra','y29UBMvJDgLVBKLK','CMvZB3vYy2vZqxbWBgLLza','lMfNzw50CW','nJy3mtmYou1xufbssW','C2HHmJu2','ywn0AxzHDgvxB3jRC3bHy2u','zxHLy3v0B3i','BwfUAwzLC3qUANnVBG','D2LUmZi','mta2ntiYmJr6venPA1a','C2vYDMLUzW','yxv0AgvUDgLJyxrLzc1SAxzLlxbYB2nLC3m','y29Kzq','CMvHBhbHDgHtEw5J','DgfYz2v0','ChjLCgfYzq','CMvJB25Uzwn0lxjLCxvPCMvK','D29YA3nWywnLCW','q0foreLeqvrfx1bsruzmsuDivf9nsvnnqvrdsa','CgXHDgzVCM0','B3bLBG','C3rHCNrqzw5KAw5NrxHLy3v0B3i','CMvZB3vYy2veAwDLC3q','yMXVy2TLCNm','ywn0AxzHDgvqCMvWyxjLzfDVCMTZCgfJzq','zMLSDgvY','lMPZB24','DgfYz2v0rgLNzxn0','C3LZy2fSBa','DxbKyxrLlMXVy2S','zxzPzgvUy2u','uKvhsvnuuKfusu9ox1vqrefurv9gquLmruq','CMvZB3vYy2vqBgfU','uKvtt1vsq0vFreLhrvnux0niqu5hruq','BwTKAxjtEw5J','CNvUDgLTzvjVB3q','D3jPDgvgAwXLu3LUyW','Agv4','zgLNzxn0','y2f0y2G','DhjHBNnHy3rPB25jza','CMvJDxjZAxzL','CgvUzgLUz1n0yxr1CW','zMfPBgvK','lI9JB25Uzwn0Aw9UlwfJDgL2yxrPB24','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','z2vUzxjHDgLVBG','yxbWBhLszxnVDxjJzxm','ChjLzMXPz2H0','Dg90ywW','BwfW','ntC0mZy2offdEhrAwG','BgvUz3rO','su5ervHFuKvcvuLmrf9gquLmruq','D29YA3nWywnL','BM9KztPMCW','BwLU','vvbeqvrfx0zbsuXfra','zgLYBMfTzq','ywn0AxzL','DMvYC2LVBG','y3jLyxrLsgfZAa','AgfZ','y29UBMvJDgLVBNm','zxbVy2G','lI9YDw50Aw1Llxn0B3jL','ve9ptf9dqvrbte9hx1vovKvssuzjruq','BM9KztPWyxrO','C3rHDhvZ','Bwf4','zxHWB3j0CW','ywrK','CMvZB3vYy2uTyxbWBgLJyxrPB24','Dg9VBenVDw50','vvbeqvrfx0PpvvjoquXFvu5srufequjmrq','DxbKyxrL','C3rHDgu','CNvUDgLTzq','C3rYAw5NAwz5','y2f0ywXVz0HHC2G','su5wquXjrf9xquLu','rvHfq1vut1jFu1rbuLrFrKfjteve','ywjVCNq','CgfYC2u','DxbKyxrLlxrYyw5Zywn0Aw9UlMPZB24','C2fMzs1IB3vUzgfYEq','ywn0AxzHDgu','Dw5HDMfPBgfIBgu','CMvZB3vYy2vZlwfWCgXPzwq','mZaXmde1yM5Yq1zZ','DgfYz2v0vMvYC2LVBG','BM93','Cgf0Aa','mZa0mtaYCxrSDhD4','CMvHzezPBgvtEw5J','BM9KztPJCNLWDg8','AxngAw5PDgu','ru5pru5u','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','lI4Vy29Yzs9YDw4Ty29TCgf0AwjPBgL0Eq','ChvZAa','ChjVDg9JB2XwzxjZAw9U','mtaYody3mLzqwLj6yG','yMXVy2TLzc1WCM9Qzwn0lxn5BMm','mtaXntuWmg9Ny1ngzG','CMvUyw1Lu3LUyW','CMfUzg9Tvvvjra','mJbmAhjOBe8','ChvIBgLJs2v5','CMvSzwfZzq','yMXVy2TLCG','lNrTCa','lI91CgrHDguTzxHLy3v0B3i','AM9PBG','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','ve9ptf9dqvrbte9hx0niqu5hruq'];_0x47d4=function(){return _0x41f24b;};return _0x47d4();}async function activateWorkspace(_0x1781ad){const _0x52d9f8=_0x57fbd7,_0x51d7b7=_0x1781ad['waitSeconds']===undefined?0x78:Number(_0x1781ad[_0x52d9f8(0x150)]),_0x8aef1c={};_0x8aef1c[_0x52d9f8(0x15f)]=_0x52d9f8(0x129);const _0x52bf07={};_0x52bf07[_0x52d9f8(0x11d)]=_0x52d9f8(0x17e),_0x52bf07[_0x52d9f8(0x16a)]=[_0x8aef1c];if(!Number[_0x52d9f8(0x139)](_0x51d7b7)||_0x51d7b7<0x0||_0x51d7b7>0xe10)return _0x52bf07;if(_0x1781ad[_0x52d9f8(0x173)]){const _0x1f4669=await require('./workspace-transaction')[_0x52d9f8(0x16b)](_0x1781ad);if(_0x1f4669[_0x52d9f8(0x11d)]===_0x52d9f8(0x13b)&&!_0x1781ad[_0x52d9f8(0x118)])try{_0x1f4669[_0x52d9f8(0x159)]=await require(_0x52d9f8(0x149))[_0x52d9f8(0x168)](_0x1781ad[_0x52d9f8(0x189)],_0x1781ad[_0x52d9f8(0x145)]);}catch(_0x1f8df4){const _0x2bf8b6={};_0x2bf8b6[_0x52d9f8(0x11d)]=_0x52d9f8(0x130),_0x2bf8b6[_0x52d9f8(0x15f)]=_0x1f8df4['code']||_0x52d9f8(0x12a),_0x1f4669[_0x52d9f8(0x159)]=_0x2bf8b6;}return _0x1f4669;}const _0x1e10b9=fs[_0x52d9f8(0x160)](_0x1781ad[_0x52d9f8(0x189)]),_0x18d11d=fs[_0x52d9f8(0x160)](_0x1781ad[_0x52d9f8(0x176)]),_0x35b9e7=verifyRelease(_0x1781ad[_0x52d9f8(0x146)],_0x1781ad['publicKey']),_0x495fea=path[_0x52d9f8(0x14a)](_0x1e10b9,'.agents',_0x52d9f8(0x126)),_0x7d69db={};_0x7d69db[_0x52d9f8(0x17c)]=!![],fs[_0x52d9f8(0x175)](_0x495fea,_0x7d69db);const _0x279b32=path[_0x52d9f8(0x14a)](_0x495fea,_0x52d9f8(0x12d)),_0x287ed5=acquireRuntimeLock(path['join'](_0x495fea,_0x52d9f8(0x170))),_0x1372bb={};_0x1372bb[_0x52d9f8(0x15f)]=_0x52d9f8(0x151);const _0x367338={};_0x367338[_0x52d9f8(0x11d)]=_0x52d9f8(0x13b),_0x367338[_0x52d9f8(0x16a)]=[_0x1372bb];if(!_0x287ed5)return _0x367338;const _0x802788={};_0x802788[_0x52d9f8(0x115)]=_0x35b9e7[_0x52d9f8(0x115)],_0x802788[_0x52d9f8(0x179)]=_0x35b9e7[_0x52d9f8(0x179)];const _0x23b917=_0x802788;let _0x41f024;try{_0x41f024=readJson(_0x279b32);}catch(_0x586e1b){_0x287ed5();const _0x5564d2={};_0x5564d2[_0x52d9f8(0x15f)]=_0x52d9f8(0x123);const _0x33d8ab={};return _0x33d8ab[_0x52d9f8(0x11d)]=_0x52d9f8(0x17e),_0x33d8ab[_0x52d9f8(0x16a)]=[_0x5564d2],_0x33d8ab;}const _0x4c0917=_0x41f024?.[_0x52d9f8(0x161)]?.[_0x52d9f8(0x115)]===_0x23b917['version']&&_0x41f024?.[_0x52d9f8(0x161)]?.[_0x52d9f8(0x179)]===_0x23b917[_0x52d9f8(0x179)],_0x389e3e=_0x4c0917&&_0x41f024?.[_0x52d9f8(0x11d)]===_0x52d9f8(0x13b)?_0x41f024[_0x52d9f8(0x17b)]:_0x4c0917&&_0x41f024?.[_0x52d9f8(0x11d)]===_0x52d9f8(0x131)?_0x41f024[_0x52d9f8(0x17b)]:crypto[_0x52d9f8(0x143)]();let _0x4dc7aa,_0x366b12=![],_0x3fe365=![],_0x311da6=![];const _0x5320fd=(_0x6624fa,_0x41ca06={})=>atomic(_0x279b32,{'transactionId':_0x389e3e,'workspace':_0x1e10b9,'target':_0x23b917,'status':_0x6624fa,'changedAt':new Date()['toISOString'](),..._0x41ca06});try{const _0x458066=readFence(_0x1e10b9),_0xefa35f=_0x458066[_0x52d9f8(0x125)]===_0x52d9f8(0x14d)&&_0x4c0917&&_0x41f024?.[_0x52d9f8(0x17b)]===_0x458066[_0x52d9f8(0x17b)]&&_0x41f024?.[_0x52d9f8(0x11d)]==='resources-applied';if(_0x458066[_0x52d9f8(0x125)]==='closed'&&!_0xefa35f)return{'status':_0x52d9f8(0x13b),'blockers':[{'code':'ADMISSION_ALREADY_CLOSED','transactionId':_0x458066[_0x52d9f8(0x17b)]}]};let _0x2c7381,_0x1ecad7;if(_0xefa35f){_0x4dc7aa=_0x458066,_0x3fe365=!![],_0x1ecad7=sha256(path[_0x52d9f8(0x14a)](_0x1e10b9,_0x52d9f8(0x155),_0x52d9f8(0x15a)));const _0x2a202e={};_0x2a202e[_0x52d9f8(0x15f)]=_0x52d9f8(0x174);const _0x5088c2={};_0x5088c2[_0x52d9f8(0x11d)]=_0x52d9f8(0x140),_0x5088c2[_0x52d9f8(0x17b)]=_0x389e3e,_0x5088c2[_0x52d9f8(0x16a)]=[_0x2a202e];if(!_0x1ecad7||_0x1ecad7!==_0x41f024[_0x52d9f8(0x169)])return _0x5088c2;}else{const _0x4a08b6=preflightWorkspaceContracts(_0x1e10b9,{'runtimeRoot':_0x18d11d,'publicKey':_0x1781ad[_0x52d9f8(0x145)],'rebuildCheckpoints':!![],'budgetMs':Number(process.env.APT_RUN_INSPECTION_TIMEOUT_MS||0x1d4c0)});if(_0x4a08b6[_0x52d9f8(0x11d)]!=='compatible')return{'status':'legacy-ownership-unverified','blockers':_0x4a08b6[_0x52d9f8(0x16a)],'contracts':_0x4a08b6};const _0x24690d=await(_0x1781ad[_0x52d9f8(0x183)]||preflightCandidate)({'release':_0x1781ad[_0x52d9f8(0x146)],'runtimeRoot':_0x18d11d,'publicKey':_0x1781ad['publicKey']}),_0x230a2b={};_0x230a2b[_0x52d9f8(0x15f)]=_0x52d9f8(0x165);const _0x5f4508={};_0x5f4508[_0x52d9f8(0x11d)]=_0x52d9f8(0x17e),_0x5f4508[_0x52d9f8(0x16a)]=[_0x230a2b];if(_0x24690d['status']!=='ready'||_0x24690d['version']!==_0x35b9e7[_0x52d9f8(0x115)]||_0x24690d[_0x52d9f8(0x179)]!==_0x35b9e7[_0x52d9f8(0x179)])return _0x5f4508;const _0x4680c3=listWorkspaceReceipts(_0x1e10b9);for(const _0x353c35 of _0x4680c3){const _0x36e1cc=await probeConnection(_0x353c35);if(_0x36e1cc['evidence']!==_0x52d9f8(0x15e)||_0x36e1cc[_0x52d9f8(0x15d)]!==!![])return{'status':'legacy-ownership-unverified','blockers':[{'code':_0x36e1cc[_0x52d9f8(0x15f)]||'CONNECTION_UNCONFIRMED','connectionId':_0x353c35[_0x52d9f8(0x153)]}]};if(!_0x36e1cc[_0x52d9f8(0x128)]&&(_0x36e1cc[_0x52d9f8(0x115)]!==_0x24690d[_0x52d9f8(0x115)]||_0x36e1cc['digest']!==_0x24690d[_0x52d9f8(0x179)])||_0x36e1cc['catalogHash']&&_0x36e1cc[_0x52d9f8(0x128)]!==_0x24690d[_0x52d9f8(0x128)])return{'status':_0x52d9f8(0x163),'blockers':[{'code':_0x36e1cc[_0x52d9f8(0x128)]?_0x52d9f8(0x14c):_0x52d9f8(0x11b),'connectionId':_0x353c35['connectionId']}]};}const _0x28fb9b={};_0x28fb9b['state']='closed',_0x28fb9b[_0x52d9f8(0x17b)]=_0x389e3e,_0x28fb9b[_0x52d9f8(0x133)]=_0x35b9e7[_0x52d9f8(0x115)],_0x28fb9b[_0x52d9f8(0x16e)]=_0x35b9e7[_0x52d9f8(0x179)],_0x4dc7aa=changeFence(_0x1e10b9,_0x458066[_0x52d9f8(0x119)],_0x28fb9b);const _0x24ee22={};_0x24ee22[_0x52d9f8(0x13e)]=_0x24690d[_0x52d9f8(0x13e)],_0x24ee22['catalogHash']=_0x24690d['catalogHash'],_0x24ee22[_0x52d9f8(0x122)]=_0x24690d[_0x52d9f8(0x122)],_0x5320fd('pending-safe-boundary',{'connections':_0x4680c3[_0x52d9f8(0x185)](_0x2d76b1=>_0x2d76b1[_0x52d9f8(0x153)]),'candidatePreflight':_0x24ee22});const _0x18680d=Date[_0x52d9f8(0x134)]()+_0x51d7b7*0x3e8;let _0x55bcf3=_0x4680c3;for(;;){_0x55bcf3=listWorkspaceReceipts(_0x1e10b9);const _0x4e279f=[];for(const _0x1c8574 of _0x55bcf3){const _0x52b2f7=await probeConnection(_0x1c8574);if(_0x52b2f7[_0x52d9f8(0x171)]!=='authenticated-live-process'||_0x52b2f7[_0x52d9f8(0x15d)]!==!![]){const _0x22dc67={};_0x22dc67['code']=_0x52b2f7[_0x52d9f8(0x15f)]||_0x52d9f8(0x152),_0x22dc67[_0x52d9f8(0x153)]=_0x1c8574[_0x52d9f8(0x153)],_0x4e279f[_0x52d9f8(0x13d)](_0x22dc67);continue;}const _0xef70d5=await controlConnection(_0x1c8574,'prepare',_0x23b917);if(_0xef70d5[_0x52d9f8(0x11d)]!==_0x52d9f8(0x12e))_0x4e279f[_0x52d9f8(0x13d)]({'code':_0xef70d5[_0x52d9f8(0x15f)]||_0xef70d5[_0x52d9f8(0x11d)],'connectionId':_0x1c8574[_0x52d9f8(0x153)],'ownership':_0xef70d5['blockers']||[]});}if(!_0x4e279f[_0x52d9f8(0x187)])break;if(Date[_0x52d9f8(0x134)]()>=_0x18680d){for(const _0x4f98b3 of _0x55bcf3)await controlConnection(_0x4f98b3,_0x52d9f8(0x12b))[_0x52d9f8(0x17a)](()=>{});const _0x1cbd87={};_0x1cbd87[_0x52d9f8(0x125)]='open',_0x1cbd87[_0x52d9f8(0x17b)]=_0x389e3e,changeFence(_0x1e10b9,_0x4dc7aa['epoch'],_0x1cbd87),_0x4dc7aa=null;const _0x5180a8={};_0x5180a8['blockers']=_0x4e279f,_0x5320fd(_0x52d9f8(0x13b),_0x5180a8);const _0x1e0a3d={};return _0x1e0a3d[_0x52d9f8(0x11d)]='pending-safe-boundary',_0x1e0a3d[_0x52d9f8(0x16a)]=_0x4e279f,_0x1e0a3d[_0x52d9f8(0x17b)]=_0x389e3e,_0x1e0a3d;}await pause(Math[_0x52d9f8(0x18b)](0x1f4,Math[_0x52d9f8(0x11e)](0x14,_0x18680d-Date[_0x52d9f8(0x134)]())));}_0x366b12=!![],_0x2c7381=await _0x1781ad[_0x52d9f8(0x182)](),_0x366b12=![],_0x3fe365=!![],_0x1ecad7=sha256(path['join'](_0x1e10b9,'.agents',_0x52d9f8(0x15a)));const _0x58a525={};_0x58a525['resourceDigest']=_0x1ecad7,_0x5320fd(_0x52d9f8(0x131),_0x58a525);}const _0x1a7169=new Set();for(;;){const _0x2ece99=listWorkspaceReceipts(_0x1e10b9),_0x5c723b=_0x2ece99[_0x52d9f8(0x16c)](_0x2a581b=>!_0x1a7169[_0x52d9f8(0x117)](_0x2a581b[_0x52d9f8(0x153)]));if(!_0x5c723b['length'])break;for(const _0x2ec9c4 of _0x5c723b){const _0xd8e139=await controlConnection(_0x2ec9c4,_0x52d9f8(0x162),_0x23b917);if(_0xd8e139[_0x52d9f8(0x11d)]!==_0x52d9f8(0x12e))return{'status':_0x52d9f8(0x13b),'transactionId':_0x389e3e,'resourcesApplied':!![],'blockers':[{'code':_0xd8e139[_0x52d9f8(0x15f)]||_0xd8e139[_0x52d9f8(0x11d)],'connectionId':_0x2ec9c4[_0x52d9f8(0x153)],'ownership':_0xd8e139[_0x52d9f8(0x16a)]||[]}]};const _0x1b0e63={..._0x23b917};_0x1b0e63[_0x52d9f8(0x150)]=0x0;const _0x20cca0=await controlConnection(_0x2ec9c4,_0x52d9f8(0x12f),_0x1b0e63);if(_0x20cca0[_0x52d9f8(0x11d)]!==_0x52d9f8(0x114)){const _0x1c6a48={};_0x1c6a48[_0x52d9f8(0x169)]=_0x1ecad7,_0x1c6a48[_0x52d9f8(0x17d)]=_0x20cca0['status'],_0x1c6a48[_0x52d9f8(0x147)]=_0x20cca0[_0x52d9f8(0x15f)]||_0x20cca0['status'],_0x5320fd(_0x52d9f8(0x131),_0x1c6a48);const _0x405ebd={};return _0x405ebd['status']=_0x20cca0[_0x52d9f8(0x11d)],_0x405ebd[_0x52d9f8(0x17b)]=_0x389e3e,_0x405ebd['resourcesApplied']=!![],_0x405ebd[_0x52d9f8(0x16a)]=[{'code':_0x20cca0[_0x52d9f8(0x15f)]||_0x20cca0[_0x52d9f8(0x11d)],'connectionId':_0x2ec9c4['connectionId']}],_0x405ebd;}_0x1a7169[_0x52d9f8(0x120)](_0x2ec9c4[_0x52d9f8(0x153)]);}}_0x311da6=!![];const _0x1bd4c5={};_0x1bd4c5['version']=_0x35b9e7[_0x52d9f8(0x115)],_0x1bd4c5[_0x52d9f8(0x179)]=_0x35b9e7[_0x52d9f8(0x179)],_0x1bd4c5[_0x52d9f8(0x169)]=_0x1ecad7;const _0x3268a3=await probeWorkspaceConnections(_0x1e10b9,_0x1bd4c5);if(_0x3268a3['total']&&_0x3268a3[_0x52d9f8(0x11d)]!==_0x52d9f8(0x114)){const _0xf3ffd5={};return _0xf3ffd5[_0x52d9f8(0x169)]=_0x1ecad7,_0xf3ffd5[_0x52d9f8(0x17d)]=_0x52d9f8(0x163),_0x5320fd(_0x52d9f8(0x131),_0xf3ffd5),{'status':_0x52d9f8(0x163),'transactionId':_0x389e3e,'resourcesApplied':!![],'blockers':_0x3268a3['connections'][_0x52d9f8(0x16c)](_0x25d8ef=>_0x25d8ef[_0x52d9f8(0x11d)]!==_0x52d9f8(0x114))};}if(!_0x3268a3[_0x52d9f8(0x184)]){const _0x24db2b=process[_0x52d9f8(0x166)]===_0x52d9f8(0x15b)?_0x1e10b9[_0x52d9f8(0x14e)]():_0x1e10b9;atomic(path['join'](_0x18d11d,_0x52d9f8(0x164),crypto[_0x52d9f8(0x116)](_0x52d9f8(0x157))[_0x52d9f8(0x124)](_0x24db2b)[_0x52d9f8(0x179)](_0x52d9f8(0x178))+_0x52d9f8(0x16d)),{'workspace':_0x24db2b,'version':_0x35b9e7[_0x52d9f8(0x115)],'digest':_0x35b9e7[_0x52d9f8(0x179)],'generation':null,'activation':_0x52d9f8(0x14b)});}const _0x444180={};_0x444180[_0x52d9f8(0x125)]=_0x52d9f8(0x167),_0x444180['transactionId']=_0x389e3e,_0x444180['generation']=_0x3268a3[_0x52d9f8(0x118)][0x0]?.[_0x52d9f8(0x181)]||null,changeFence(_0x1e10b9,_0x4dc7aa['epoch'],_0x444180),_0x4dc7aa=null;const _0x5c9664=_0x3268a3[_0x52d9f8(0x184)]?'active':_0x52d9f8(0x14b),_0x19cf9d={};_0x19cf9d[_0x52d9f8(0x169)]=_0x1ecad7,_0x19cf9d[_0x52d9f8(0x118)]=_0x3268a3[_0x52d9f8(0x118)],_0x5320fd(_0x5c9664,_0x19cf9d);const _0x38a869={};return _0x38a869[_0x52d9f8(0x11d)]=_0x5c9664,_0x38a869[_0x52d9f8(0x17b)]=_0x389e3e,_0x38a869[_0x52d9f8(0x161)]=_0x23b917,_0x38a869[_0x52d9f8(0x169)]=_0x1ecad7,_0x38a869[_0x52d9f8(0x154)]=!![],_0x38a869[_0x52d9f8(0x118)]=_0x3268a3[_0x52d9f8(0x118)],_0x38a869['deployed']=_0x2c7381,_0x38a869;}catch(_0x5d56d3){const _0x3129f3={};_0x3129f3[_0x52d9f8(0x15f)]=_0x5d56d3['code']||_0x52d9f8(0x18c),_0x3129f3['phase']=_0x366b12?_0x52d9f8(0x121):_0x3fe365?_0x52d9f8(0x14f):'prepare';const _0x2671d7=_0x3129f3;if(_0x5d56d3[_0x52d9f8(0x16f)])_0x2671d7['syscall']=_0x5d56d3['syscall'];if(_0x5d56d3[_0x52d9f8(0x135)])_0x2671d7['path']=_0x5d56d3[_0x52d9f8(0x135)];const _0x2c71f1=[_0x52d9f8(0x188),_0x52d9f8(0x172)]['includes'](_0x2671d7['code'])||_0x366b12?_0x52d9f8(0x140):_0x52d9f8(0x17e);if(_0x3fe365)_0x5320fd(_0x52d9f8(0x131),{'resourceDigest':sha256(path[_0x52d9f8(0x14a)](_0x1e10b9,_0x52d9f8(0x155),_0x52d9f8(0x15a))),'pendingStatus':_0x2c71f1,'blockers':[_0x2671d7]});else _0x5320fd(_0x2c71f1,{'blockers':[_0x2671d7],..._0x366b12?{'resourceDigest':sha256(path[_0x52d9f8(0x14a)](_0x1e10b9,'.agents',_0x52d9f8(0x15a)))}:{}});if(_0x4dc7aa&&!_0x366b12&&!_0x3fe365&&!_0x311da6){for(const _0x440e0f of listWorkspaceReceipts(_0x1e10b9))await controlConnection(_0x440e0f,_0x52d9f8(0x12b))[_0x52d9f8(0x17a)](()=>{});try{const _0x5eacdb={};_0x5eacdb[_0x52d9f8(0x125)]=_0x52d9f8(0x167),_0x5eacdb[_0x52d9f8(0x17b)]=_0x389e3e,changeFence(_0x1e10b9,_0x4dc7aa['epoch'],_0x5eacdb);}catch{}}const _0x17cb7d={};return _0x17cb7d[_0x52d9f8(0x11d)]=_0x2c71f1,_0x17cb7d['transactionId']=_0x389e3e,_0x17cb7d['blockers']=[_0x2671d7],_0x17cb7d;}finally{_0x287ed5();}}const _0x3618a6={};_0x3618a6[_0x57fbd7(0x158)]=activateWorkspace,module[_0x57fbd7(0x11f)]=_0x3618a6;
|
|
1
|
+
'use strict';const _0x3458a4=_0x12c9;(function(_0x16b1af,_0x37404e){const _0x47960a=_0x12c9,_0x48eeff=_0x16b1af();while(!![]){try{const _0xb0aff8=parseInt(_0x47960a(0x92))/0x1+parseInt(_0x47960a(0xa7))/0x2*(-parseInt(_0x47960a(0xf0))/0x3)+-parseInt(_0x47960a(0xee))/0x4*(-parseInt(_0x47960a(0xf3))/0x5)+-parseInt(_0x47960a(0xb3))/0x6+parseInt(_0x47960a(0xac))/0x7*(parseInt(_0x47960a(0xe9))/0x8)+-parseInt(_0x47960a(0x103))/0x9*(-parseInt(_0x47960a(0xcf))/0xa)+parseInt(_0x47960a(0x104))/0xb*(-parseInt(_0x47960a(0xc8))/0xc);if(_0xb0aff8===_0x37404e)break;else _0x48eeff['push'](_0x48eeff['shift']());}catch(_0x428ab8){_0x48eeff['push'](_0x48eeff['shift']());}}}(_0x469c,0x327c3));function _0x12c9(_0x732a94,_0x5aa76f){_0x732a94=_0x732a94-0x8e;const _0x469c73=_0x469c();let _0x12c96f=_0x469c73[_0x732a94];if(_0x12c9['ZBvcyl']===undefined){var _0x3c6a91=function(_0x31f3fa){const _0x1625c4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x552421='',_0x692e83='';for(let _0x536f87=0x0,_0x37c67d,_0x26429f,_0x2caea0=0x0;_0x26429f=_0x31f3fa['charAt'](_0x2caea0++);~_0x26429f&&(_0x37c67d=_0x536f87%0x4?_0x37c67d*0x40+_0x26429f:_0x26429f,_0x536f87++%0x4)?_0x552421+=String['fromCharCode'](0xff&_0x37c67d>>(-0x2*_0x536f87&0x6)):0x0){_0x26429f=_0x1625c4['indexOf'](_0x26429f);}for(let _0x2492a2=0x0,_0x1f14c5=_0x552421['length'];_0x2492a2<_0x1f14c5;_0x2492a2++){_0x692e83+='%'+('00'+_0x552421['charCodeAt'](_0x2492a2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x692e83);};_0x12c9['SbAFZE']=_0x3c6a91,_0x12c9['szArhc']={},_0x12c9['ZBvcyl']=!![];}const _0x4a4bde=_0x469c73[0x0],_0x4c3437=_0x732a94+_0x4a4bde,_0x7b173b=_0x12c9['szArhc'][_0x4c3437];return!_0x7b173b?(_0x12c96f=_0x12c9['SbAFZE'](_0x12c96f),_0x12c9['szArhc'][_0x4c3437]=_0x12c96f):_0x12c96f=_0x7b173b,_0x12c96f;}function _0x469c(){const _0x2609a8=['C3rHCNrqzw5KAw5NrxHLy3v0B3i','AM9PBG','z2vUzxjHDgLVBG','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','mZC4CvDVuwj0','mtu0wNbLyvHh','yxbWBhLszxnVDxjJzxm','Dg9VBenVDw50','C2vYDMLUzW','CMvZB3vYy2veAwDLC3q','DMvYC2LVBG','mtm0nJC2teDLtKr1','y2XVC2vK','BgvUz3rO','q09otKvdveLptL9vtKnptKzjuK1fra','zgLNzxn0','DhjHBNnHy3rPB25jza','C2fMzs1IB3vUzgfYEq','ve9ptf9dqvrbte9hx1vovKvssuzjruq','CMvSzwfZzq','zxzPzgvUy2u','CMvHzezPBgvtEw5J','B3bLBG','uKvtt1vsq0vFreLhrvnux0niqu5hruq','ChvZAa','CMvJB25Uzwn0lxjLCxvPCMvK','Cgf0Aa','y3jLyxrLsgfZAa','DxbKyxrLlxrYyw5Zywn0Aw9UlMPZB24','ywrK','zxHLy3v0B3i','C3rHDhvZ','mJmZotzpzgvMshy','su5ervHFuKvcvuLmrf9gquLmruq','CgfYC2u','ru5pru5u','qurnsvntsu9ox0fmuKvbrfLFq0Xpu0ve','nZDQu21utxu','BwLU','DgfYz2v0vMvYC2LVBG','lNrTCa','ywjVCNq','C3LZy2fSBa','D2fPDfnLy29Uzhm','mJqWnduZnKrMrgHVtq','CMvJDxjZAxzL','lI9JB25Uzwn0Aw9UlwfJDgL2yxrPB24','vvbeqvrfx0zbsuXfra','ywn0AxzHDgvqCMvWyxjLzfDVCMTZCgfJzq','Bwf4','y29UBMvJDgLVBKLK','uKvhsvnuuKfusu9ox1vqrefurv9gquLmruq','DxbKyxrLlMXVy2S','lI91CgrHDguTzxHLy3v0B3i','DxbKyxrL','BM9KztPWyxrO','lI93B3jRC3bHy2uTDhjHBNnHy3rPB24','C2HHmJu2','AxngAw5PDgu','CMvHBhbHDgHtEw5J','CNvUDgLTzq','CMfUzg9Tvvvjra','su5wquXjrf9xquLu','zMfPBgvK','Dg90ywW','mteYmte2BfLkwgPS','BM9KztPJCNLWDg8','lMfNzw50CW','ywn0AxzL','yMXVy2TLzc1WCM9Qzwn0lxn5BMm','ywn0AxzHDgLVBG','yMXVy2TLCNm','ota5mJbuDefKtKC','zgLYBMfTzq','CMvZB3vYy2vZlwfWCgXPzwq','ChvIBgLJs2v5','BM93','y29UBMvJDgLVBNm','BwfW','lMPZB24','Dw5HDMfPBgfIBgu','CgXHDgzVCM0','CgHHC2u','C3rHDgu','DxrMoa','CMvUyw1Lugf0AwvUDa','BgvNywn5lw93BMvYC2HPCc11BNzLCMLMAwvK','Dg9mB3DLCKnHC2u','Agv4','BM9KztPMCW','ChjLzMXPz2H0','zMLSDgvY','zxHWB3j0CW','CMvZB3vYy2uTyxbWBgLJyxrPB24','ChjVDg9JB2XwzxjZAw9U','y2f0y2G','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','y2f0ywXVz0HHC2G','mtiWoty4zvvquwjp','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','DgfYz2v0','yMXVy2TLCG','vvbeqvrfx0Lox1bst0Dsrvnt','mteYnZC2ve1fsMfT','BwTKAxjtEw5J','odDKyKrgwgi','yxv0AgvUDgLJyxrLzc1SAxzLlxbYB2nLC3m','ywn0AxzHDgu','nZbiBNLSuLK','D29YA3nWywnLCW','vvbeqvrfx0PpvvjoquXFvu5srufequjmrq','CMvHzhK','ChjLCgfYzq','ve9ptf9dqvrbte9hx0niqu5hruq','zxbVy2G','CMvZB3vYy2vZqxbWBgLLza','CNvUDgLTzvjVB3q','CgvUzgLUz1n0yxr1CW','y29Kzq','BwfUAwzLC3qUANnVBG'];_0x469c=function(){return _0x2609a8;};return _0x469c();}const fs=require(_0x3458a4(0xe0)),path=require(_0x3458a4(0xbe)),crypto=require(_0x3458a4(0xc9)),{verifyRelease}=require('./runtime-store'),{acquireRuntimeLock}=require('./runtime-lock'),{listWorkspaceReceipts,probeConnection,probeWorkspaceConnections,controlConnection}=require(_0x3458a4(0xb5)),{readFence,changeFence}=require(_0x3458a4(0x102)),{preflightWorkspaceContracts}=require('../core/run-compatibility'),{preflightCandidate}=require('./candidate-preflight'),pause=_0x17d40d=>new Promise(_0x320635=>setTimeout(_0x320635,_0x17d40d)),sha256=_0x37b18e=>{const _0x10ddf3=_0x3458a4;try{return crypto[_0x10ddf3(0xa2)](_0x10ddf3(0xc0))[_0x10ddf3(0xbd)](fs[_0x10ddf3(0x9c)](_0x37b18e))[_0x10ddf3(0x96)](_0x10ddf3(0xdf));}catch(_0x2abaec){if(_0x2abaec[_0x10ddf3(0xfd)]===_0x10ddf3(0xaa))return null;throw _0x2abaec;}},readJson=_0x4132aa=>{const _0x284c3e=_0x3458a4;try{return JSON[_0x284c3e(0xa9)](fs['readFileSync'](_0x4132aa,_0x284c3e(0xdb)));}catch(_0x88ff85){if(_0x88ff85[_0x284c3e(0xfd)]==='ENOENT')return null;throw _0x88ff85;}},atomic=(_0x54cf1a,_0x241abe)=>{const _0x4a182d=_0x3458a4,_0x5a61d7={};_0x5a61d7[_0x4a182d(0xb4)]=!![],fs[_0x4a182d(0xef)](path[_0x4a182d(0xd0)](_0x54cf1a),_0x5a61d7);const _0x1aa328=_0x54cf1a+'.'+crypto[_0x4a182d(0xc4)]()+_0x4a182d(0xaf);fs['writeFileSync'](_0x1aa328,JSON['stringify'](_0x241abe,null,0x2)),require('../core/storage-retry')[_0x4a182d(0xdc)](_0x1aa328,_0x54cf1a);};async function activateWorkspace(_0x46404f){const _0x1ea134=_0x3458a4,_0x4cbc54=_0x46404f[_0x1ea134(0xb2)]===undefined?0x78:Number(_0x46404f['waitSeconds']),_0x46edd3={};_0x46edd3[_0x1ea134(0xfd)]=_0x1ea134(0xc5);const _0x259bb5={};_0x259bb5[_0x1ea134(0xa6)]='failed',_0x259bb5[_0x1ea134(0xce)]=[_0x46edd3];if(!Number[_0x1ea134(0xc1)](_0x4cbc54)||_0x4cbc54<0x0||_0x4cbc54>0xe10)return _0x259bb5;if(_0x46404f['resourcePlan']){const _0x3e0568=await require(_0x1ea134(0xbf))[_0x1ea134(0xb7)](_0x46404f);if(_0x3e0568[_0x1ea134(0xa6)]===_0x1ea134(0xe7)&&!_0x46404f['connections'])try{_0x3e0568[_0x1ea134(0xa5)]=await require(_0x1ea134(0xbc))[_0x1ea134(0xff)](_0x46404f['workspace'],_0x46404f[_0x1ea134(0xd2)]);}catch(_0x2e752b){const _0x3dddf0={};_0x3dddf0[_0x1ea134(0xa6)]=_0x1ea134(0xd7),_0x3dddf0['code']=_0x2e752b[_0x1ea134(0xfd)]||'EXECUTOR_START_FAILED',_0x3e0568[_0x1ea134(0xa5)]=_0x3dddf0;}return _0x3e0568;}const _0x72af27=fs[_0x1ea134(0xc2)](_0x46404f['workspace']),_0x4f3ab9=fs['realpathSync'](_0x46404f[_0x1ea134(0xfb)]),_0x22ce13=verifyRelease(_0x46404f[_0x1ea134(0x9a)],_0x46404f[_0x1ea134(0xd2)]),_0x273c19=path[_0x1ea134(0x100)](_0x72af27,_0x1ea134(0xca),_0x1ea134(0xc3)),_0x49c728={};_0x49c728[_0x1ea134(0xb4)]=!![],fs[_0x1ea134(0xef)](_0x273c19,_0x49c728);const _0x8a0ba2=path['join'](_0x273c19,_0x1ea134(0xa3)),_0x29dcb4=acquireRuntimeLock(path[_0x1ea134(0x100)](_0x273c19,_0x1ea134(0xbb))),_0x5084c1={};_0x5084c1[_0x1ea134(0xfd)]=_0x1ea134(0xed);const _0x26cef6={};_0x26cef6[_0x1ea134(0xa6)]=_0x1ea134(0xe7),_0x26cef6[_0x1ea134(0xce)]=[_0x5084c1];if(!_0x29dcb4)return _0x26cef6;const _0x5ac61f={};_0x5ac61f[_0x1ea134(0x91)]=_0x22ce13[_0x1ea134(0x91)],_0x5ac61f[_0x1ea134(0x96)]=_0x22ce13[_0x1ea134(0x96)];const _0x23581f=_0x5ac61f;let _0x2f5dcb;try{_0x2f5dcb=readJson(_0x8a0ba2);}catch(_0x49f746){_0x29dcb4();const _0x3eef90={};_0x3eef90[_0x1ea134(0xfd)]=_0x1ea134(0xf5);const _0x4b2bc9={};return _0x4b2bc9[_0x1ea134(0xa6)]='failed',_0x4b2bc9[_0x1ea134(0xce)]=[_0x3eef90],_0x4b2bc9;}const _0x25cfe9=_0x2f5dcb?.[_0x1ea134(0xeb)]?.[_0x1ea134(0x91)]===_0x23581f[_0x1ea134(0x91)]&&_0x2f5dcb?.['target']?.['digest']===_0x23581f['digest'],_0x560ae9=_0x25cfe9&&_0x2f5dcb?.['status']==='pending-safe-boundary'?_0x2f5dcb[_0x1ea134(0x97)]:_0x25cfe9&&_0x2f5dcb?.[_0x1ea134(0xa6)]===_0x1ea134(0xd1)?_0x2f5dcb['transactionId']:crypto[_0x1ea134(0xc4)]();let _0x496159,_0x3ab37c=![],_0x532ceb=![],_0x4d8276=![];const _0x19a626=(_0x254f16,_0x2374f8={})=>atomic(_0x8a0ba2,{'transactionId':_0x560ae9,'workspace':_0x72af27,'target':_0x23581f,'status':_0x254f16,'changedAt':new Date()['toISOString'](),..._0x2374f8});try{const _0x597158=readFence(_0x72af27),_0x4016b4=_0x597158['state']===_0x1ea134(0x93)&&_0x25cfe9&&_0x2f5dcb?.['transactionId']===_0x597158[_0x1ea134(0x97)]&&_0x2f5dcb?.[_0x1ea134(0xa6)]==='resources-applied';if(_0x597158[_0x1ea134(0xda)]===_0x1ea134(0x93)&&!_0x4016b4)return{'status':_0x1ea134(0xe7),'blockers':[{'code':_0x1ea134(0xab),'transactionId':_0x597158[_0x1ea134(0x97)]}]};let _0x1a6bdf,_0x59d82b;if(_0x4016b4){_0x496159=_0x597158,_0x532ceb=!![],_0x59d82b=sha256(path['join'](_0x72af27,_0x1ea134(0xca),_0x1ea134(0xfe)));const _0x232085={};_0x232085[_0x1ea134(0xfd)]=_0x1ea134(0x9e);const _0x1a07df={};_0x1a07df[_0x1ea134(0xa6)]=_0x1ea134(0xcc),_0x1a07df[_0x1ea134(0x97)]=_0x560ae9,_0x1a07df[_0x1ea134(0xce)]=[_0x232085];if(!_0x59d82b||_0x59d82b!==_0x2f5dcb['resourceDigest'])return _0x1a07df;}else{const _0x547fb3=preflightWorkspaceContracts(_0x72af27,{'runtimeRoot':_0x4f3ab9,'publicKey':_0x46404f['publicKey'],'rebuildCheckpoints':!![],'budgetMs':Number(process.env.APT_RUN_INSPECTION_TIMEOUT_MS||0x1d4c0)});if(_0x547fb3[_0x1ea134(0xa6)]!=='compatible')return{'status':_0x1ea134(0xdd),'blockers':_0x547fb3[_0x1ea134(0xce)],'contracts':_0x547fb3};const _0x2b9d82=await(_0x46404f[_0x1ea134(0xe1)]||preflightCandidate)({'release':_0x46404f['release'],'runtimeRoot':_0x4f3ab9,'publicKey':_0x46404f[_0x1ea134(0xd2)]}),_0x19a4ec={};_0x19a4ec[_0x1ea134(0xfd)]='CANDIDATE_PREFLIGHT_MISMATCH';const _0x59cbb9={};_0x59cbb9[_0x1ea134(0xa6)]=_0x1ea134(0xc6),_0x59cbb9[_0x1ea134(0xce)]=[_0x19a4ec];if(_0x2b9d82[_0x1ea134(0xa6)]!==_0x1ea134(0xf6)||_0x2b9d82[_0x1ea134(0x91)]!==_0x22ce13[_0x1ea134(0x91)]||_0x2b9d82['digest']!==_0x22ce13[_0x1ea134(0x96)])return _0x59cbb9;const _0x252d76=listWorkspaceReceipts(_0x72af27);for(const _0x220c06 of _0x252d76){const _0x9d87f4=await probeConnection(_0x220c06);if(_0x9d87f4['evidence']!=='authenticated-live-process'||_0x9d87f4[_0x1ea134(0x8f)]!==!![])return{'status':_0x1ea134(0xdd),'blockers':[{'code':_0x9d87f4[_0x1ea134(0xfd)]||_0x1ea134(0x95),'connectionId':_0x220c06['connectionId']}]};if(!_0x9d87f4[_0x1ea134(0xe8)]&&(_0x9d87f4[_0x1ea134(0x91)]!==_0x2b9d82[_0x1ea134(0x91)]||_0x9d87f4['digest']!==_0x2b9d82[_0x1ea134(0x96)])||_0x9d87f4[_0x1ea134(0xe8)]&&_0x9d87f4[_0x1ea134(0xe8)]!==_0x2b9d82['catalogHash'])return{'status':_0x1ea134(0xa0),'blockers':[{'code':_0x9d87f4[_0x1ea134(0xe8)]?_0x1ea134(0xf8):_0x1ea134(0x99),'connectionId':_0x220c06['connectionId']}]};}const _0x22d1fe={};_0x22d1fe[_0x1ea134(0xda)]=_0x1ea134(0x93),_0x22d1fe[_0x1ea134(0x97)]=_0x560ae9,_0x22d1fe[_0x1ea134(0xae)]=_0x22ce13[_0x1ea134(0x91)],_0x22d1fe['targetDigest']=_0x22ce13[_0x1ea134(0x96)],_0x496159=changeFence(_0x72af27,_0x597158['epoch'],_0x22d1fe);const _0xcdbbfd={};_0xcdbbfd[_0x1ea134(0xe5)]=_0x2b9d82[_0x1ea134(0xe5)],_0xcdbbfd[_0x1ea134(0xe8)]=_0x2b9d82[_0x1ea134(0xe8)],_0xcdbbfd[_0x1ea134(0x8e)]=_0x2b9d82['toolCount'],_0x19a626(_0x1ea134(0xe7),{'connections':_0x252d76[_0x1ea134(0xd5)](_0x552fc1=>_0x552fc1[_0x1ea134(0xb9)]),'candidatePreflight':_0xcdbbfd});const _0x46b453=Date[_0x1ea134(0xd3)]()+_0x4cbc54*0x3e8;let _0x321c11=_0x252d76;for(;;){_0x321c11=listWorkspaceReceipts(_0x72af27);const _0x3878a8=[];for(const _0x37ba7b of _0x321c11){const _0x2a5bb8=await probeConnection(_0x37ba7b);if(_0x2a5bb8[_0x1ea134(0x9b)]!==_0x1ea134(0xf1)||_0x2a5bb8[_0x1ea134(0x8f)]!==!![]){const _0x116aa4={};_0x116aa4['code']=_0x2a5bb8[_0x1ea134(0xfd)]||_0x1ea134(0x95),_0x116aa4[_0x1ea134(0xb9)]=_0x37ba7b[_0x1ea134(0xb9)],_0x3878a8['push'](_0x116aa4);continue;}const _0x2970a6=await controlConnection(_0x37ba7b,_0x1ea134(0xf7),_0x23581f);if(_0x2970a6[_0x1ea134(0xa6)]!==_0x1ea134(0x98))_0x3878a8[_0x1ea134(0x9f)]({'code':_0x2970a6[_0x1ea134(0xfd)]||_0x2970a6['status'],'connectionId':_0x37ba7b['connectionId'],'ownership':_0x2970a6[_0x1ea134(0xce)]||[]});}if(!_0x3878a8[_0x1ea134(0x94)])break;if(Date[_0x1ea134(0xd3)]()>=_0x46b453){for(const _0x16ae24 of _0x321c11)await controlConnection(_0x16ae24,_0x1ea134(0xb0))[_0x1ea134(0xe6)](()=>{});const _0x2e197b={};_0x2e197b[_0x1ea134(0xda)]=_0x1ea134(0x9d),_0x2e197b[_0x1ea134(0x97)]=_0x560ae9,changeFence(_0x72af27,_0x496159[_0x1ea134(0xf9)],_0x2e197b),_0x496159=null;const _0x1b5a34={};_0x1b5a34[_0x1ea134(0xce)]=_0x3878a8,_0x19a626(_0x1ea134(0xe7),_0x1b5a34);const _0x304e6e={};return _0x304e6e[_0x1ea134(0xa6)]=_0x1ea134(0xe7),_0x304e6e[_0x1ea134(0xce)]=_0x3878a8,_0x304e6e[_0x1ea134(0x97)]=_0x560ae9,_0x304e6e;}await pause(Math[_0x1ea134(0xad)](0x1f4,Math[_0x1ea134(0xb8)](0x14,_0x46b453-Date[_0x1ea134(0xd3)]())));}_0x3ab37c=!![],_0x1a6bdf=await _0x46404f[_0x1ea134(0x105)](),_0x3ab37c=![],_0x532ceb=!![],_0x59d82b=sha256(path['join'](_0x72af27,'.agents','manifest.json'));const _0x42f2b5={};_0x42f2b5[_0x1ea134(0x90)]=_0x59d82b,_0x19a626('resources-applied',_0x42f2b5);}const _0x58ed77=new Set();for(;;){const _0x4b6a10=listWorkspaceReceipts(_0x72af27),_0x5a7800=_0x4b6a10[_0x1ea134(0xe2)](_0x2c2cad=>!_0x58ed77['has'](_0x2c2cad[_0x1ea134(0xb9)]));if(!_0x5a7800['length'])break;for(const _0x188c69 of _0x5a7800){const _0x5d05c6=await controlConnection(_0x188c69,'prepare',_0x23581f);if(_0x5d05c6[_0x1ea134(0xa6)]!=='safe-boundary')return{'status':_0x1ea134(0xe7),'transactionId':_0x560ae9,'resourcesApplied':!![],'blockers':[{'code':_0x5d05c6[_0x1ea134(0xfd)]||_0x5d05c6['status'],'connectionId':_0x188c69[_0x1ea134(0xb9)],'ownership':_0x5d05c6[_0x1ea134(0xce)]||[]}]};const _0x5df658={..._0x23581f};_0x5df658['waitSeconds']=0x0;const _0xeb6499=await controlConnection(_0x188c69,_0x1ea134(0xf2),_0x5df658);if(_0xeb6499[_0x1ea134(0xa6)]!=='active'){const _0x5f20f8={};_0x5f20f8[_0x1ea134(0x90)]=_0x59d82b,_0x5f20f8['pendingStatus']=_0xeb6499[_0x1ea134(0xa6)],_0x5f20f8[_0x1ea134(0xec)]=_0xeb6499[_0x1ea134(0xfd)]||_0xeb6499['status'],_0x19a626(_0x1ea134(0xd1),_0x5f20f8);const _0x17ea54={};return _0x17ea54[_0x1ea134(0xa6)]=_0xeb6499[_0x1ea134(0xa6)],_0x17ea54[_0x1ea134(0x97)]=_0x560ae9,_0x17ea54[_0x1ea134(0xfa)]=!![],_0x17ea54[_0x1ea134(0xce)]=[{'code':_0xeb6499['code']||_0xeb6499[_0x1ea134(0xa6)],'connectionId':_0x188c69[_0x1ea134(0xb9)]}],_0x17ea54;}_0x58ed77[_0x1ea134(0xa4)](_0x188c69['connectionId']);}}_0x4d8276=!![];const _0x57be7c={};_0x57be7c[_0x1ea134(0x91)]=_0x22ce13[_0x1ea134(0x91)],_0x57be7c[_0x1ea134(0x96)]=_0x22ce13[_0x1ea134(0x96)],_0x57be7c[_0x1ea134(0x90)]=_0x59d82b;const _0x77a91c=await probeWorkspaceConnections(_0x72af27,_0x57be7c);if(_0x77a91c[_0x1ea134(0xc7)]&&_0x77a91c['status']!=='active'){const _0x352820={};return _0x352820[_0x1ea134(0x90)]=_0x59d82b,_0x352820[_0x1ea134(0xfc)]=_0x1ea134(0xa0),_0x19a626(_0x1ea134(0xd1),_0x352820),{'status':_0x1ea134(0xa0),'transactionId':_0x560ae9,'resourcesApplied':!![],'blockers':_0x77a91c[_0x1ea134(0xd4)][_0x1ea134(0xe2)](_0x2402c0=>_0x2402c0[_0x1ea134(0xa6)]!==_0x1ea134(0xcb))};}if(!_0x77a91c[_0x1ea134(0xc7)]){const _0x29c7fa=process[_0x1ea134(0xd8)]==='win32'?_0x72af27[_0x1ea134(0xde)]():_0x72af27;atomic(path[_0x1ea134(0x100)](_0x4f3ab9,_0x1ea134(0xf4),crypto['createHash'](_0x1ea134(0xc0))[_0x1ea134(0xbd)](_0x29c7fa)[_0x1ea134(0x96)](_0x1ea134(0xdf))+_0x1ea134(0xd6)),{'workspace':_0x29c7fa,'version':_0x22ce13[_0x1ea134(0x91)],'digest':_0x22ce13['digest'],'generation':null,'activation':'ready-next-connection'});}const _0x343fbf={};_0x343fbf['state']=_0x1ea134(0x9d),_0x343fbf['transactionId']=_0x560ae9,_0x343fbf[_0x1ea134(0x101)]=_0x77a91c['connections'][0x0]?.[_0x1ea134(0x101)]||null,changeFence(_0x72af27,_0x496159['epoch'],_0x343fbf),_0x496159=null;const _0x1ca8d4=_0x77a91c['total']?_0x1ea134(0xcb):_0x1ea134(0xea),_0xde270b={};_0xde270b[_0x1ea134(0x90)]=_0x59d82b,_0xde270b[_0x1ea134(0xd4)]=_0x77a91c['connections'],_0x19a626(_0x1ca8d4,_0xde270b);const _0x4085e2={};return _0x4085e2[_0x1ea134(0xa6)]=_0x1ca8d4,_0x4085e2['transactionId']=_0x560ae9,_0x4085e2[_0x1ea134(0xeb)]=_0x23581f,_0x4085e2[_0x1ea134(0x90)]=_0x59d82b,_0x4085e2[_0x1ea134(0xfa)]=!![],_0x4085e2[_0x1ea134(0xd4)]=_0x77a91c[_0x1ea134(0xd4)],_0x4085e2['deployed']=_0x1a6bdf,_0x4085e2;}catch(_0x108b1f){const _0x243903={};_0x243903[_0x1ea134(0xfd)]=_0x108b1f[_0x1ea134(0xfd)]||_0x1ea134(0xb6),_0x243903[_0x1ea134(0xd9)]=_0x3ab37c?_0x1ea134(0xe4):_0x532ceb?_0x1ea134(0xcd):_0x1ea134(0xf7);const _0x1339c1=_0x243903;if(_0x108b1f[_0x1ea134(0xb1)])_0x1339c1['syscall']=_0x108b1f[_0x1ea134(0xb1)];if(_0x108b1f[_0x1ea134(0xa1)])_0x1339c1[_0x1ea134(0xa1)]=_0x108b1f[_0x1ea134(0xa1)];const _0x293434=[_0x1ea134(0xa8),_0x1ea134(0xba)]['includes'](_0x1339c1['code'])||_0x3ab37c?_0x1ea134(0xcc):'failed';if(_0x532ceb)_0x19a626(_0x1ea134(0xd1),{'resourceDigest':sha256(path[_0x1ea134(0x100)](_0x72af27,'.agents',_0x1ea134(0xfe))),'pendingStatus':_0x293434,'blockers':[_0x1339c1]});else _0x19a626(_0x293434,{'blockers':[_0x1339c1],..._0x3ab37c?{'resourceDigest':sha256(path[_0x1ea134(0x100)](_0x72af27,_0x1ea134(0xca),'manifest.json'))}:{}});if(_0x496159&&!_0x3ab37c&&!_0x532ceb&&!_0x4d8276){for(const _0x312b55 of listWorkspaceReceipts(_0x72af27))await controlConnection(_0x312b55,_0x1ea134(0xb0))[_0x1ea134(0xe6)](()=>{});try{const _0x45ff95={};_0x45ff95['state']='open',_0x45ff95['transactionId']=_0x560ae9,changeFence(_0x72af27,_0x496159[_0x1ea134(0xf9)],_0x45ff95);}catch{}}const _0x4b9f4e={};return _0x4b9f4e['status']=_0x293434,_0x4b9f4e['transactionId']=_0x560ae9,_0x4b9f4e['blockers']=[_0x1339c1],_0x4b9f4e;}finally{_0x29dcb4();}}const _0x41f76c={};_0x41f76c['activateWorkspace']=activateWorkspace,module[_0x3458a4(0xe3)]=_0x41f76c;
|
package/src/license/crypto.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xf478fb=_0x1778;(function(_0x5b296b,_0x4f76ae){const _0x333b26=_0x1778,_0x2bcbc7=_0x5b296b();while(!![]){try{const _0x163b33=-parseInt(_0x333b26(0x1d2))/0x1+parseInt(_0x333b26(0x1d1))/0x2*(parseInt(_0x333b26(0x1bd))/0x3)+parseInt(_0x333b26(0x1bb))/0x4+-parseInt(_0x333b26(0x1cb))/0x5+parseInt(_0x333b26(0x1b7))/0x6+parseInt(_0x333b26(0x1c9))/0x7+parseInt(_0x333b26(0x1cc))/0x8*(-parseInt(_0x333b26(0x1be))/0x9);if(_0x163b33===_0x4f76ae)break;else _0x2bcbc7['push'](_0x2bcbc7['shift']());}catch(_0x1446cd){_0x2bcbc7['push'](_0x2bcbc7['shift']());}}}(_0x6c63,0xbe6de));const crypto=require(_0xf478fb(0x1b8));function _0x1778(_0x4a291d,_0x948dd8){_0x4a291d=_0x4a291d-0x1b1;const _0x6c63d5=_0x6c63();let _0x17784c=_0x6c63d5[_0x4a291d];if(_0x1778['AVjAkk']===undefined){var _0x5b1f0f=function(_0x557b89){const _0x141192='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1388eb='',_0x13d556='';for(let _0x5dd3e7=0x0,_0x2e8bfa,_0x190253,_0x4f60d4=0x0;_0x190253=_0x557b89['charAt'](_0x4f60d4++);~_0x190253&&(_0x2e8bfa=_0x5dd3e7%0x4?_0x2e8bfa*0x40+_0x190253:_0x190253,_0x5dd3e7++%0x4)?_0x1388eb+=String['fromCharCode'](0xff&_0x2e8bfa>>(-0x2*_0x5dd3e7&0x6)):0x0){_0x190253=_0x141192['indexOf'](_0x190253);}for(let _0x433057=0x0,_0x9018da=_0x1388eb['length'];_0x433057<_0x9018da;_0x433057++){_0x13d556+='%'+('00'+_0x1388eb['charCodeAt'](_0x433057)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x13d556);};_0x1778['dWKNQd']=_0x5b1f0f,_0x1778['CYIWrF']={},_0x1778['AVjAkk']=!![];}const _0x3593cc=_0x6c63d5[0x0],_0x418858=_0x4a291d+_0x3593cc,_0x7bec07=_0x1778['CYIWrF'][_0x418858];return!_0x7bec07?(_0x17784c=_0x1778['dWKNQd'](_0x17784c),_0x1778['CYIWrF'][_0x418858]=_0x17784c):_0x17784c=_0x7bec07,_0x17784c;}function deriveKey(_0x13d556){const _0x566671=_0xf478fb;if(!_0x13d556)throw new Error(_0x566671(0x1c4));return crypto[_0x566671(0x1d0)](_0x566671(0x1bc))[_0x566671(0x1b9)](_0x13d556)[_0x566671(0x1b4)]();}function encrypt(_0x5dd3e7,_0x2e8bfa){const _0x38cde1=_0xf478fb,_0x190253=deriveKey(_0x2e8bfa),_0x4f60d4=crypto[_0x38cde1(0x1d7)](0x10),_0x433057=crypto[_0x38cde1(0x1b1)](_0x38cde1(0x1cd),_0x190253,_0x4f60d4),_0x9018da=Buffer[_0x38cde1(0x1c8)](_0x5dd3e7)?_0x5dd3e7:Buffer['from'](_0x5dd3e7,_0x38cde1(0x1c3)),_0x3d0513=Buffer[_0x38cde1(0x1b5)]([_0x433057[_0x38cde1(0x1b9)](_0x9018da),_0x433057['final']()]);return Buffer[_0x38cde1(0x1b5)]([_0x4f60d4,_0x3d0513]);}function decrypt(_0x59de89,_0x5407a4){const _0x47cc6d=_0xf478fb;if(!Buffer[_0x47cc6d(0x1c8)](_0x59de89))throw new Error(_0x47cc6d(0x1c7));if(_0x59de89[_0x47cc6d(0x1d8)]<0x11)throw new Error('Invalid\x20encrypted\x20buffer\x20size');const _0x3c7268=deriveKey(_0x5407a4),_0x13bb5c=_0x59de89[_0x47cc6d(0x1c2)](0x0,0x10),_0x4175bd=_0x59de89[_0x47cc6d(0x1c2)](0x10),_0x15403d=crypto[_0x47cc6d(0x1b3)](_0x47cc6d(0x1cd),_0x3c7268,_0x13bb5c);return Buffer['concat']([_0x15403d[_0x47cc6d(0x1b9)](_0x4175bd),_0x15403d[_0x47cc6d(0x1ca)]()]);}function encryptBundleKey(_0x65f711,_0x286600){const _0x23da85=_0xf478fb,_0x3541d8=crypto[_0x23da85(0x1d0)]('sha256')[_0x23da85(0x1b9)](_0x286600)[_0x23da85(0x1b4)](),_0xec4f19=Buffer['from']('APT-BK2',_0x23da85(0x1c5)),_0x40e97d=crypto[_0x23da85(0x1d7)](0xc),_0x3929f6=crypto[_0x23da85(0x1b1)](_0x23da85(0x1c1),_0x3541d8,_0x40e97d);_0x3929f6[_0x23da85(0x1d5)](_0xec4f19);const _0x21d45b=Buffer[_0x23da85(0x1b5)]([_0x3929f6[_0x23da85(0x1b9)](Buffer[_0x23da85(0x1c0)](_0x65f711,_0x23da85(0x1c3))),_0x3929f6[_0x23da85(0x1ca)]()]);return Buffer[_0x23da85(0x1b5)]([_0xec4f19,_0x40e97d,_0x3929f6[_0x23da85(0x1d3)](),_0x21d45b])['toString'](_0x23da85(0x1c6));}function decryptBundleKey(_0x40d6f3,_0x53d8ed){const _0x56e7d1=_0xf478fb,_0x3b8253=crypto['createHash'](_0x56e7d1(0x1bc))[_0x56e7d1(0x1b9)](_0x53d8ed)[_0x56e7d1(0x1b4)](),_0x587b53=Buffer[_0x56e7d1(0x1c0)](_0x40d6f3,'base64url'),_0x48c21f=Buffer['from'](_0x56e7d1(0x1d6),_0x56e7d1(0x1c5));if(_0x587b53[_0x56e7d1(0x1c2)](0x0,_0x48c21f[_0x56e7d1(0x1d8)])[_0x56e7d1(0x1ba)](_0x48c21f)){if(_0x587b53['length']<_0x48c21f[_0x56e7d1(0x1d8)]+0xc+0x10+0x1)throw new Error(_0x56e7d1(0x1bf));const _0x3fdfd8=_0x48c21f[_0x56e7d1(0x1d8)],_0x264d7e=_0x587b53['subarray'](_0x3fdfd8,_0x3fdfd8+0xc),_0x4606b4=_0x587b53['subarray'](_0x3fdfd8+0xc,_0x3fdfd8+0x1c),_0x3b8bb3=_0x587b53[_0x56e7d1(0x1c2)](_0x3fdfd8+0x1c),_0x3f9238=crypto['createDecipheriv'](_0x56e7d1(0x1c1),_0x3b8253,_0x264d7e);return _0x3f9238[_0x56e7d1(0x1d5)](_0x48c21f),_0x3f9238['setAuthTag'](_0x4606b4),Buffer[_0x56e7d1(0x1b5)]([_0x3f9238['update'](_0x3b8bb3),_0x3f9238[_0x56e7d1(0x1ca)]()])['toString'](_0x56e7d1(0x1c3));}if(_0x587b53[_0x56e7d1(0x1d8)]<0x11)throw new Error('Invalid\x20encrypted\x20bundle\x20key\x20size');const _0x5d3264=_0x587b53[_0x56e7d1(0x1c2)](0x0,0x10),_0x12e5a5=_0x587b53[_0x56e7d1(0x1c2)](0x10),_0x255f5d=crypto['createDecipheriv'](_0x56e7d1(0x1cd),_0x3b8253,_0x5d3264),_0xb7932d=Buffer['concat']([_0x255f5d[_0x56e7d1(0x1b9)](_0x12e5a5),_0x255f5d[_0x56e7d1(0x1ca)]()]);return _0xb7932d[_0x56e7d1(0x1b6)](_0x56e7d1(0x1c3));}const _0x1388eb={};function _0x6c63(){const _0x2a9b9d=['zxHWB3j0CW','y3jLyxrLsgfZAa','mtC0mdKWmNjOtwvUtq','mteWndq3n0reCM95yq','z2v0qxv0AfrHzW','zw5JCNLWDa','C2v0qufe','qvbulujlmG','CMfUzg9TqNL0zxm','BgvUz3rO','y3jLyxrLq2LWAgvYAxy','zw5JCNLWDej1BMrSzuTLEq','y3jLyxrLrgvJAxbOzxjPDG','zgLNzxn0','y29Uy2f0','Dg9tDhjPBMC','mJu4mZCYmhv1AxDTyW','y3j5ChrV','DxbKyxrL','zxf1ywXZ','mZm0mtqYmhfJq2Heuq','C2HHmJu2','m05mvvjtvq','ntiYD1b1zK1e','sw52ywXPzcbLBMnYExb0zwqGyNvUzgXLigTLEsbZAxPL','zNjVBq','ywvZlti1nI1Ny20','C3vIyxjYyxK','DxrMoa','tgLJzw5ZzsbRzxKGAxmGCMvXDwLYzwqGzM9YigvUy3j5ChrPB24VzgvJCNLWDgLVBIbRzxKGzgvYAxzHDgLVBG','yxnJAwK','yMfZzty0DxjS','rgvJCNLWDgLVBIbPBNb1DcbTDxn0igjLigeGqNvMzMvY','AxncDwzMzxi','nduYmdq2n2fNC3vsDq','zMLUywW','mZi0nZe3mg1vExPztq','mZqYndHRyLjozuC','ywvZlti1nI1JyMm','zgvJCNLWDej1BMrSzuTLEq'];_0x6c63=function(){return _0x2a9b9d;};return _0x6c63();}_0x1388eb[_0xf478fb(0x1d4)]=encrypt,_0x1388eb['decrypt']=decrypt,_0x1388eb[_0xf478fb(0x1b2)]=encryptBundleKey,_0x1388eb[_0xf478fb(0x1ce)]=decryptBundleKey,module[_0xf478fb(0x1cf)]=_0x1388eb;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x427664=_0x3fbe;function _0x3917(){const _0x5da6=['DhjPBq','mtqWA29VywnP','DMjVEa','Dg9mB3DLCKnHC2u','m2zmse9OEG','zxHPC3rZu3LUyW','BMv0D29YA0LUDgvYzMfJzxm','BwTKAxjtEw5J','CgfJA2v0','C2HHmJu2','zgv2AwnLlMLK','Ag9TzwrPCG','Dw5RBM93BI1OB3n0','otC3mdKYtKvuBKLt','AM9PBG','mda6mda6mda6mda6mda6mda','DxbKyxrL','DgvZDa','mta1mdq4nu5PBMDcwG','DM1Uzxq','nZm2mZHIqvn6D0W','D3nS','ChvZAa','zg9JA2vY','z2v0rMLUz2vYChjPBNq','ChbW','Bw9KzwW','Ag9ZDg5HBwu','y3b1CW','nZG2nJr3EKPcB3K','z2v0twfJqwrKCMvZC2vZ','Cgf0Aa','lMfUAgrO','zMy6zMy6zMy6zMy6zMy6zMy','BgvUz3rO','mtC4mZu5nLftEK5REG','Aw5JBhvKzxm','mZCZodzUB1zVzeC','DgfW','mtriuwPyvgO','Agv4','C3vIC3rYAw5N','A2v5CW','Bg9VCgjHy2S','CMvHzezPBgvtEw5J','Dw5RBM93BI11C2vY','DNbU','zgLNzxn0','y3jLyxrLsgfZAa','BwfJ','CMvJDxjZAxzL','Aw50zxjUywW','DhvU','ndyXndz1DLbuwM4','DxrMoa','C29YDa','m0jovwLWvq','DxnLCM5HBwu','mtfmwLD3qKC'];_0x3917=function(){return _0x5da6;};return _0x3917();}function _0x3fbe(_0x59d753,_0x1afcef){_0x59d753=_0x59d753-0x1ce;const _0x39175b=_0x3917();let _0x3fbe6c=_0x39175b[_0x59d753];if(_0x3fbe['wlBwjk']===undefined){var _0x227737=function(_0x5a3873){const _0xa04624='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c92c6='',_0x3fc2c3='';for(let _0x22990c=0x0,_0xd5f2b3,_0x5792dc,_0x3b842f=0x0;_0x5792dc=_0x5a3873['charAt'](_0x3b842f++);~_0x5792dc&&(_0xd5f2b3=_0x22990c%0x4?_0xd5f2b3*0x40+_0x5792dc:_0x5792dc,_0x22990c++%0x4)?_0x2c92c6+=String['fromCharCode'](0xff&_0xd5f2b3>>(-0x2*_0x22990c&0x6)):0x0){_0x5792dc=_0xa04624['indexOf'](_0x5792dc);}for(let _0x54c40a=0x0,_0x57baf7=_0x2c92c6['length'];_0x54c40a<_0x57baf7;_0x54c40a++){_0x3fc2c3+='%'+('00'+_0x2c92c6['charCodeAt'](_0x54c40a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3fc2c3);};_0x3fbe['llNnCk']=_0x227737,_0x3fbe['CaWbkj']={},_0x3fbe['wlBwjk']=!![];}const _0x42206f=_0x39175b[0x0],_0x5a989b=_0x59d753+_0x42206f,_0x1de3e5=_0x3fbe['CaWbkj'][_0x5a989b];return!_0x1de3e5?(_0x3fbe6c=_0x3fbe['llNnCk'](_0x3fbe6c),_0x3fbe['CaWbkj'][_0x5a989b]=_0x3fbe6c):_0x3fbe6c=_0x1de3e5,_0x3fbe6c;}(function(_0x42af44,_0xe396b2){const _0x45de73=_0x3fbe,_0x46b741=_0x42af44();while(!![]){try{const _0x230f20=parseInt(_0x45de73(0x1cf))/0x1*(parseInt(_0x45de73(0x1e6))/0x2)+parseInt(_0x45de73(0x1d6))/0x3*(-parseInt(_0x45de73(0x1df))/0x4)+parseInt(_0x45de73(0x1e4))/0x5+-parseInt(_0x45de73(0x207))/0x6+parseInt(_0x45de73(0x1f9))/0x7*(parseInt(_0x45de73(0x1ef))/0x8)+parseInt(_0x45de73(0x1f7))/0x9*(-parseInt(_0x45de73(0x1d3))/0xa)+parseInt(_0x45de73(0x1d1))/0xb*(parseInt(_0x45de73(0x1f5))/0xc);if(_0x230f20===_0xe396b2)break;else _0x46b741['push'](_0x46b741['shift']());}catch(_0x1fbb39){_0x46b741['push'](_0x46b741['shift']());}}}(_0x3917,0x2ba2d));const os=require('os'),crypto=require('crypto'),fs=require('fs'),path=require(_0x427664(0x1f1));function getMacAddresses(){const _0x979f3e=_0x427664,_0x22990c=os[_0x979f3e(0x1d8)](),_0xd5f2b3=[];for(const _0x5792dc of Object[_0x979f3e(0x1fc)](_0x22990c)){const _0x3b842f=_0x5792dc[_0x979f3e(0x1d5)]();if(_0x3b842f[_0x979f3e(0x1f6)]('virtual')||_0x3b842f[_0x979f3e(0x1f6)](_0x979f3e(0x1e9))||_0x3b842f[_0x979f3e(0x1f6)](_0x979f3e(0x1e5))||_0x3b842f[_0x979f3e(0x1f6)](_0x979f3e(0x1d4))||_0x3b842f[_0x979f3e(0x1f6)](_0x979f3e(0x1e7))||_0x3b842f[_0x979f3e(0x1f6)](_0x979f3e(0x200))||_0x3b842f['includes']('hyper-v')||_0x3b842f[_0x979f3e(0x1f6)](_0x979f3e(0x1f8))||_0x3b842f['includes'](_0x979f3e(0x206))||_0x3b842f[_0x979f3e(0x1f6)](_0x979f3e(0x1eb))||_0x3b842f[_0x979f3e(0x1f6)](_0x979f3e(0x1fd))||_0x3b842f[_0x979f3e(0x1f6)](_0x979f3e(0x1da)))continue;const _0x54c40a=_0x22990c[_0x5792dc];if(!_0x54c40a)continue;for(const _0x57baf7 of _0x54c40a){if(_0x57baf7[_0x979f3e(0x205)])continue;if(!_0x57baf7[_0x979f3e(0x203)]||_0x57baf7[_0x979f3e(0x203)]===_0x979f3e(0x1e1))continue;if(_0x57baf7['mac'][_0x979f3e(0x1d5)]()===_0x979f3e(0x1f3))continue;!_0xd5f2b3[_0x979f3e(0x1f6)](_0x57baf7[_0x979f3e(0x203)])&&_0xd5f2b3[_0x979f3e(0x1e8)](_0x57baf7[_0x979f3e(0x203)]);}}if(_0xd5f2b3[_0x979f3e(0x1f4)]===0x0)for(const _0x119947 of Object[_0x979f3e(0x1fc)](_0x22990c)){const _0xe3cf9d=_0x22990c[_0x119947];if(!_0xe3cf9d)continue;for(const _0x4b3a8c of _0xe3cf9d){!_0x4b3a8c[_0x979f3e(0x205)]&&_0x4b3a8c['mac']&&_0x4b3a8c[_0x979f3e(0x203)]!==_0x979f3e(0x1e1)&&_0xd5f2b3[_0x979f3e(0x1e8)](_0x4b3a8c[_0x979f3e(0x203)]);}}return _0xd5f2b3[_0x979f3e(0x1ce)]();}function getFingerprint(){const _0x5a0409=_0x427664,_0x52383a=path[_0x5a0409(0x1e0)](os[_0x5a0409(0x1dd)](),_0x5a0409(0x1f2),_0x5a0409(0x1dc));try{if(fs[_0x5a0409(0x1d7)](_0x52383a)){const _0x1790fa=fs[_0x5a0409(0x1fe)](_0x52383a,_0x5a0409(0x208))[_0x5a0409(0x1d2)]();if(_0x1790fa&&_0x1790fa[_0x5a0409(0x1f4)]===0x10&&/^[0-9a-fA-F]+$/[_0x5a0409(0x1e3)](_0x1790fa))return _0x1790fa;}}catch(_0x18b0c){}const _0x336b9c=os[_0x5a0409(0x1ed)]()||_0x5a0409(0x1de);let _0x47d5c1=_0x5a0409(0x1ff);try{_0x47d5c1=os['userInfo']()[_0x5a0409(0x1d0)];}catch(_0x57b2c0){_0x47d5c1=process.env.USERNAME||process.env.USER||_0x5a0409(0x1ff);}const _0x302c84=os[_0x5a0409(0x1ee)](),_0x9edfe6=_0x302c84&&_0x302c84[0x0]?_0x302c84[0x0][_0x5a0409(0x1ec)]:'unknown-cpu',_0xda03b6=getMacAddresses(),_0x49195b=_0xda03b6[_0x5a0409(0x1e0)](','),_0x4934f3=[_0x336b9c,_0x47d5c1,_0x9edfe6,_0x49195b],_0x1ceb4c=crypto[_0x5a0409(0x202)](_0x5a0409(0x1db));_0x1ceb4c[_0x5a0409(0x1e2)](_0x4934f3['join']('|'));const _0xf0f860=_0x1ceb4c[_0x5a0409(0x201)](_0x5a0409(0x1fa))[_0x5a0409(0x1fb)](0x0,0x10);try{const _0x3eaa9c={};_0x3eaa9c[_0x5a0409(0x204)]=!![],fs[_0x5a0409(0x1d9)](path['dirname'](_0x52383a),_0x3eaa9c),fs['writeFileSync'](_0x52383a,_0xf0f860,_0x5a0409(0x208));}catch(_0xd5b7cb){}return _0xf0f860;}const _0x3fc2c3={};_0x3fc2c3[_0x427664(0x1f0)]=getMacAddresses,_0x3fc2c3[_0x427664(0x1ea)]=getFingerprint,module['exports']=_0x3fc2c3;
|
package/src/license/terms.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x134c08=_0x45c7;(function(_0x287c33,_0x296eb5){const _0x5abd96=_0x45c7,_0x5e222e=_0x287c33();while(!![]){try{const _0x47eb09=-parseInt(_0x5abd96(0x16e))/0x1*(parseInt(_0x5abd96(0x16c))/0x2)+parseInt(_0x5abd96(0x177))/0x3*(parseInt(_0x5abd96(0x172))/0x4)+-parseInt(_0x5abd96(0x173))/0x5*(parseInt(_0x5abd96(0x171))/0x6)+parseInt(_0x5abd96(0x174))/0x7+parseInt(_0x5abd96(0x16d))/0x8+parseInt(_0x5abd96(0x170))/0x9+parseInt(_0x5abd96(0x16f))/0xa;if(_0x47eb09===_0x296eb5)break;else _0x5e222e['push'](_0x5e222e['shift']());}catch(_0x32723b){_0x5e222e['push'](_0x5e222e['shift']());}}}(_0x2d38,0xb09bf));function _0x2d38(){const _0x5640d5=['rvvmqv9urvHu','otqYntrKz1f0yvC','nJy0vhL3z3Lk','mtC0mdK4ngr1rMXhAG','nda3m0fLCe9oBa','mtKWntu2mhn0DvPeDa','oda1mJeYovLlzu5UCq','mtK3ota1mNDoBxPQBW','nZzkuLzAwvG','nvPPvKXmCa','mZuZoty2ovbMyxPlrG','zxHWB3j0CW'];_0x2d38=function(){return _0x5640d5;};return _0x2d38();}const EULA_TEXT='END\x20USER\x20LICENSE\x20AGREEMENT\x20(EULA)\x20&\x20TERMS\x20OF\x20SERVICE\x0a\x0aPlease\x20read\x20this\x20End\x20User\x20License\x20Agreement\x20(\x22Agreement\x22)\x20carefully\x20before\x20installing\x20or\x20using\x20the\x20Base\x20MCP\x20AI\x20Agent\x20infrastructure\x20(\x22Software\x22).\x0a\x0aBy\x20installing\x20or\x20using\x20the\x20Software,\x20you\x20agree\x20to\x20be\x20bound\x20by\x20the\x20terms\x20of\x20this\x20Agreement.\x20If\x20you\x20do\x20not\x20agree,\x20do\x20not\x20install\x20or\x20use\x20the\x20Software.\x0a\x0a1.\x20PERMITTED\x20USE\x0aThe\x20license\x20granted\x20to\x20you\x20is\x20non-transferable,\x20non-exclusive,\x20and\x20limited\x20to\x20installation\x20and\x20use\x20of\x20the\x20Software\x20on\x20a\x20single\x20device\x20owned\x20or\x20controlled\x20by\x20you,\x20subject\x20to\x20subscription\x20activation.\x0a\x0a2.\x20SUBSCRIPTION\x20TERMS\x0aYour\x20use\x20of\x20the\x20Software\x20is\x20subject\x20to\x20an\x20active\x20subscription.\x20Upon\x20expiration\x20or\x20revocation\x20of\x20your\x20license\x20key,\x20the\x20Software\x20proxy\x20will\x20stop\x20functioning\x20(Block-only\x20enforcement).\x20We\x20will\x20never\x20delete\x20or\x20modify\x20your\x20local\x20project\x20files\x20as\x20a\x20penalty\x20for\x20license\x20expiration.\x0a\x0a3.\x20LIMITATION\x20OF\x20LIABILITY\x0aTO\x20THE\x20MAXIMUM\x20EXTENT\x20PERMITTED\x20BY\x20APPLICABLE\x20LAW,\x20IN\x20NO\x20EVENT\x20SHALL\x20ANHDH\x20OR\x20ITS\x20SUPPLIERS\x20BE\x20LIABLE\x20FOR\x20ANY\x20SPECIAL,\x20INCIDENTAL,\x20INDIRECT,\x20OR\x20CONSEQUENTIAL\x20DAMAGES\x20WHATSOEVER\x20arising\x20out\x20of\x20the\x20use\x20of\x20or\x20inability\x20to\x20use\x20the\x20Software.\x0a\x0a4.\x20BLOCK-ONLY\x20ENFORCEMENT\x20POLICY\x0aIf\x20the\x20license\x20check\x20fails\x20or\x20expires,\x20the\x20Software\x20will\x20cleanly\x20disable\x20itself\x20and\x20refuse\x20to\x20start.\x20The\x20Software\x20does\x20not\x20contain\x20any\x20remote\x20cleanup\x20or\x20file\x20deletion\x20payloads,\x20ensuring\x20the\x20complete\x20safety\x20of\x20your\x20local\x20codebases.\x0a\x0a5.\x20GOVERNING\x20LAW\x0aThis\x20Agreement\x20shall\x20be\x20governed\x20by\x20and\x20construed\x20in\x20accordance\x20with\x20the\x20laws\x20of\x20the\x20Socialist\x20Republic\x20of\x20Vietnam.\x20Any\x20disputes\x20arising\x20under\x20this\x20Agreement\x20shall\x20be\x20subject\x20to\x20the\x20exclusive\x20jurisdiction\x20of\x20the\x20courts\x20of\x20Vietnam.\x0a',_0x542e3c={};function _0x45c7(_0x40aa9a,_0x56580d){_0x40aa9a=_0x40aa9a-0x16c;const _0x2d3864=_0x2d38();let _0x45c759=_0x2d3864[_0x40aa9a];if(_0x45c7['KfbUuO']===undefined){var _0x1b643f=function(_0x3aeebb){const _0x1cf078='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x542e3c='',_0x420f4e='';for(let _0x32016a=0x0,_0x435c5c,_0x24d187,_0x405a52=0x0;_0x24d187=_0x3aeebb['charAt'](_0x405a52++);~_0x24d187&&(_0x435c5c=_0x32016a%0x4?_0x435c5c*0x40+_0x24d187:_0x24d187,_0x32016a++%0x4)?_0x542e3c+=String['fromCharCode'](0xff&_0x435c5c>>(-0x2*_0x32016a&0x6)):0x0){_0x24d187=_0x1cf078['indexOf'](_0x24d187);}for(let _0x36dc3b=0x0,_0x4d2c3f=_0x542e3c['length'];_0x36dc3b<_0x4d2c3f;_0x36dc3b++){_0x420f4e+='%'+('00'+_0x542e3c['charCodeAt'](_0x36dc3b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x420f4e);};_0x45c7['felPKQ']=_0x1b643f,_0x45c7['tZUdgm']={},_0x45c7['KfbUuO']=!![];}const _0x1aa496=_0x2d3864[0x0],_0x416eab=_0x40aa9a+_0x1aa496,_0x3d9d7c=_0x45c7['tZUdgm'][_0x416eab];return!_0x3d9d7c?(_0x45c759=_0x45c7['felPKQ'](_0x45c759),_0x45c7['tZUdgm'][_0x416eab]=_0x45c759):_0x45c759=_0x3d9d7c,_0x45c759;}_0x542e3c[_0x134c08(0x176)]=EULA_TEXT,module[_0x134c08(0x175)]=_0x542e3c;
|