@myagentroam/node 0.9.11 → 0.9.12

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/dist/connector.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x47894e=_0x321c;(function(_0x368f2b,_0x15a75f){const _0x3145a5=_0x321c,_0xc45f7=_0x368f2b();while(!![]){try{const _0x4d7ad7=parseInt(_0x3145a5(0x255))/(0xabc+-0x361*0x5+-0x1*-0x62a)*(parseInt(_0x3145a5(0x18c))/(-0x22b4*0x1+0x25d+-0x5b*-0x5b))+parseInt(_0x3145a5(0x1bd))/(-0x4*-0x7ec+0xdb6+-0x2d63)+parseInt(_0x3145a5(0x23b))/(0x4f*0x28+0x13*0x1de+-0x2fce)*(-parseInt(_0x3145a5(0x14f))/(0xedc+-0x1*-0x10db+-0x1fb2))+parseInt(_0x3145a5(0x1bb))/(-0x6*-0x391+-0x94c+-0xc14)+-parseInt(_0x3145a5(0x265))/(-0x1199+-0x5*-0x1f7+0x7cd)+parseInt(_0x3145a5(0x1a2))/(0x15*0x1a9+-0x16db+-0xbfa)+-parseInt(_0x3145a5(0x160))/(0x1332+0x1d3b*0x1+-0x3064);if(_0x4d7ad7===_0x15a75f)break;else _0xc45f7['push'](_0xc45f7['shift']());}catch(_0xb1970){_0xc45f7['push'](_0xc45f7['shift']());}}}(_0x2816,-0x2187a*-0x1+0x4fdf9+-0x3*0x15ae8));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{loadNodeConfig,nodeDatabasePath}from'./config.js';import{NodeMetrics,nodeLog}from'./operational.js';import{assertLocalSqlitePath}from'./storage.js';import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';function _0x2816(){const _0x4e1c79=['ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','CMvHze5HDgL2zq','CMvZDw1LzenVBMzPz3vYyxrPB24','y2fJAgvKu2vZC2LVBNm','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','zxHLy3v0zq','BwfUywDLzfj1BM5LCLnLC3nPB25Z','DhvYBG','q0foq0vmteve','C3rVCa','D2f0y2GUzxzLBNq','mtm5nZe4turtr3Lc','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','zw5ZDxjLv2f0y2G','B25tDw1Tyxj5','CNvUBMvYvxnHz2vszwfKzxi','zMLSDgvY','su5urvjsvvburuq','C2vZC2LVBLn0yxrL','y29UBMvJDgLVBKXPzMvJEwnSzq','A2LUza','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','lw9Wzw5JB2rLlwLTywDLCW','D29YA3nWywnLrMLSzvnLCNzPy2u','Aw5KzxG','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','DgvYBwLUywXnyw5Hz2vY','DxbNCMfKzq','y2fUy2vS','y2fWywjPBgL0EurLDgvJDg9Y','D29YA3nWywnLu3rHDgu','CgvYC2LZDezPBgvZ','B25oB3rPzMLJyxrPB24','mJi1mtiWmgHOsM5MDW','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','BgLZDa','CNvUDgLTzq','y29KzxHdBgLLBNq','q0foq0vmteLorW','rKflrv9svu5orvjFreLtq09otKvdva','zMLUza','BM9Kzs5VCgvYyxrPB24','CMvTzw1Izxi','BM9Kzs5JB25Uzwn0Aw5N','CMvZCg9UzfvZzxjjBNb1Da','y29UzMLN','y3DK','Aw52ywXPzgf0zunOyw5Nzxm','CNvUrxzLBNrtzxj2AwnL','tK9erv9dt05orunusu9ox1jfueXbq0ve','BM9KzvjLCxvLC3rZ','C2vZC2LVBG','DgvYBwLUywXtzxj2AwnL','DxbNCMfKzunVB3jKAw5HDg9Y','AgfZ','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','DgHYzwfKswq','CMvZB2X2zun1CNjLBNq','mtG5mJG1nMD4Efvlqq','y3jLyxrLqxbWCM92ywW','ntmYnJK4BLDitNzf','BM93','yxzHAwXHyMXL','C2vUza','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','CNvUDgLTzs1UB2rL','Bg9HzfjLC3vSDa','y29UzMLNugf0Aa','zxHWAxjLqxbWCM92ywW','ChvIBgLZAefWChjVDMfS','C2vZC2LVBLf1zxj5u2vYDMLJzq','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','C2v0','zw1PDfj1BKv2zw50','y2fWywjPBgL0AwvZ','C2vUzevUDMvSB3bL','B3bLBKnVzgvdBgLLBNq','Aw5ZCgvJDa','CMfUzg9Tvvvjra','z2v0qwDLBNrtzxnZAw9U','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','C2v0q2HHBM5LBfrVA2vU','BwLU','CMvMCMvZAfrVCgLJ','CMvNAxn0zxi','zgvJAwrL','y29KzxG','ChvIBgLZAa','zw1PDfj1BG','ywXSB3DLzfjVB3rZ','zgvJAwrLqxbWCM92ywW','C2L6zq','CNvU','Cgf0Aa','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','BMf0AxzLswrZ','CMvJzw50lxj1BNm','C2H1DgrVD24','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','CNvUBMvYu2vYDMLJzq','D29YA3nWywnLv2f0y2Htzxj2AwnL','tK9erv9vueDsqurfx1bftKrjtKC','CNvUu3rHDgu','tK9erv9dt05gsuDFvu5bvKfjtefcteu','zw1PDenVBNzLCNnHDgLVBKL0zw0','y2XHDwrLq2XPzw50','Bw9KzwW','CMvQzwn0','CMvJB25JAwXL','z2v0v29YA3nWywnL','CMvTB3zL','CMvMCMvZAfrPDgXL','ChjVAMvJDgLVBKzVCK5HDgL2zq','CNvUqxr0ywnOBwvUDfnLCNzPy2u','yMLUzenVBw1HBMrdB250CM9S','CNvUBMvYCW','CNvUswq','ywrK','DgLTzxi','C25HChnOB3rtzxf1zw5Jzq','y29TBwfUzfn0yxrLCW','y29UBMvJDa','y2XLyxi','y29UDMvYC2f0Aw9UlML0zw0','CMvJB3jK','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','BgLZDfDVCMTZCgfJzxm','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','y29UBMvJDgvK','y29TCgXLDgvdyw5JzwXSzwrsDw4','CMvWBgfJzq','DhvYBKLK','z2v0','DgvYBwLUywXdAgfUBMvS','y2fWywjPBgL0AwvZuhjVDMLKzwq','zxHLy3v0zu5VzgvpCgvYyxrPB24','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','Bwf4','CNvUCW','Bwv0CMLJCW','BwLNCMf0zvnLC3nPB24','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','D2LUzg93CW','y2HHBM5LBfrVA2vU','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','zgLZy292zxjxB3jRC3bHy2u','zgLZy292zxi','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','CMvNAxn0zxjbBgW','Dw5YzwDPC3rLCMvK','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','C29JA2v0','zgf0ywjHC2u','AxrLBxm','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','zw1PDfDVCMTIzw5JAev2zw50','zMX1C2Hqzw5KAw5Nvgv4Da','BM9Kzs5TzxrYAwnZ','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','zMfRzvnJCMLWDa','B3bLBKnVzgvsDw5dB250CM9SBgvY','zw1PDff1zxvL','zgLZCg9Zzq','AxrLBuLK','zxHWAxjL','C3rHDhvZ','y29UDhjVBenOyw5UzwW','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','BgLUDxG','surmrq','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','C3rHDgu','zwzMB3j0','ChjLCgfYzu1LC3nHz2vjBNb1Da','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','Cgf1C2vtzxnZAw9UuxvLDwu','yxbWCM92ywXZ','yMLUzenVBNrYB2W','C3rHCNq','AgfUzgXL','y2XLyxjxyxrJAgvZ','B3bLCMf0Aw9UuM91DgvY','y2XHDwrLuNvUq29UDhjVBgXLCG','mJa0nZzYt3jrvw8','CMvJB25Uzwn0','y29UDMvYC2f0Aw9U','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','BM9KzuLK','zgvJAwrLq2XHDwrLqxbWCM92ywW','Dg9WAwnby3rPDMu','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','ywnJzxnZ','zgvJAwrLq29KzxHbChbYB3zHBa','CgvYC2LZDfrLCM1PBMfS','y29KzxHsDw5dB250CM9SBgvY','C3rVChbLza','zMfRzvj1BM5LCG','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','CgXHDgzVCM0','BM9KzuDLBMvYyxrPB24','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','AxnbCNjHEq','BM9Kzs51CgDYywrLlNjLCxvLC3q','zgLZCgf0y2G','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','D29YA3nWywnLswq','ywn0AxzL','mLbysgT1DW','zxHLy3v0zunVBw1HBMq','yxbWzw5K','C2vZC2LVBNm','C3rYAw5N','ywrVChrsDw4','BwfUywDLzezVCK5HDgL2zq','zw1PDfDVCMTIzw5JAa','y2XLyxjbBgW','zMfRztO','zgvSzxrL','y2fUy2vSq2XHDwrLuNvU','yxbWCM92ywXjza','y2fUy2vSq29KzxHuDxjU','uLvox05pvf9gt1vora','uKvkrunuruq','mtiWnde0mhvesxHerq','BMf0AxzLsw1Hz2vsB290CW','DxbNCMfKzvjLywr5','C25HChnOB3q','CMvJB3jKzwqTC2vZC2LVBG','Bwf0zxjPywXPEMvdB2rLEa','CMvMCMvZAenHCgfIAwXPDgLLCW','B3bLCMf0Aw9UCW','ChjVAMvJDeLUAxrPywW','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','CgvUzgLUzW','zxH0zxjUywXby3rPDML0Eq','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','zw1PDenVBNzLCNnHDgLVBLr1CM4','DxbNCMfKzs1Yzxn1BhqUANnVBG','zMfZDa','zxHPDa','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','Bwv0ywrHDge','zM9Yz2v0','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','zgvJAxnPB24','BM9Kzs51CgDYywrLlMnHBMnLBa','Aw52ywXPzgf0zq','DMfSDwvZ','ChvIBgLZAfnUyxbZAg90','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','mJC1C0jdzNz4','q0foq0vm','AgfUzgXLtwvZC2fNzq','zxHLy3v0Aw9U','D29YA3nWywnLu2vYDMLJzq','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','Aw50zxjYDxb0','C3rYAw5NAwz5','y2XLyw51Ca','CMvZB2X2zq','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','AgfUzgXLtM90AwzPy2f0Aw9U','DxnLCKLUChv0CW','CMvXDwvZDenSyxvKzufWChjVDMfS','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','D29YA3nWywnLq29VCMrPBMf0B3i','yM9VDhn0CMfWswrZ','mJm2mJy4mhbRAu1JuW','CMvXDwvZDa','z2v0uNvU','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','zgLZy29UBMvJDa','zgLYzwn0tMf0AxzL','C2vZC2LVBI5SAxn0','y2XVC2u','ChjVBw90zq','Aw50zxjYDxb0uMvXDwvZDgvK','ChjLC2vUDa','CNvUv29YA2jLBMnOu2vYDMLJzq','y29UBMvJDgvKqxr0zw1WDa','y29UDhjVBe1LC3nHz2vZ','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','C3vWzxj2AxnLzfvWz3jHzgu','DhjHBNnPDgLVBMLUzW','ChjVzMLSzxm','CMvHza','D29YA2jLBMnOrxzLBNrtzxj2AwnL','C3rVCfDHDgnO','CMvXDwLYzq','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','CMvJB25Uzwn0u2nOzwr1BgvK','y2fUy2vSuxvLDwvK','CNvUrxzLBNrcCMLKz2u','yMXVy2TZ','CNvUBMvY','C2nOzwr1Bgu','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','tK9erv9tve9queve','D2LUmZi','CMvZB2X2zuzVCK1LC3nHz2u'];_0x2816=function(){return _0x4e1c79;};return _0x2816();}import{OpenCodeRunner}from'./runner/opencode-runner.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';import{WorkspaceChangeService}from'./service/workspace-change-service.js';import{WorkspaceSessionService}from'./service/workspace-session-service.js';import{WorkbenchEventService}from'./service/workbench-event-service.js';import{RunDomainState}from'./service/run-domain-state.js';import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';import{RunnerChannelMessageService}from'./service/runner-channel-message-service.js';import{ManagedRunnerSessionService}from'./service/managed-runner-session-service.js';import{NodeConnectionLifecycleService}from'./service/node-connection-lifecycle-service.js';function _0x321c(_0x4fc07a,_0x4e98f7){_0x4fc07a=_0x4fc07a-(-0x2043+0x4c*-0xa+0x2475);const _0x5d5fcb=_0x2816();let _0x4e7696=_0x5d5fcb[_0x4fc07a];if(_0x321c['SWkLcI']===undefined){var _0x36bb50=function(_0x57b275){const _0x14c999='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x38a9a9='',_0x278923='';for(let _0x452f1d=-0x270+0x4b5*-0x8+0x2818,_0x58b003,_0x430a7c,_0x41acf9=0x8dc+0x1cd4+0x218*-0x12;_0x430a7c=_0x57b275['charAt'](_0x41acf9++);~_0x430a7c&&(_0x58b003=_0x452f1d%(0x21b2+0x21bb+0x4369*-0x1)?_0x58b003*(0x1*0x1f75+0x8e1*-0x1+-0x1654)+_0x430a7c:_0x430a7c,_0x452f1d++%(-0x14e1+0x1*0x1455+-0x10*-0x9))?_0x38a9a9+=String['fromCharCode'](0x2*-0x1de+0xe9*-0x20+-0x3*-0xb49&_0x58b003>>(-(0x94*-0x2b+0x16e+0x1770)*_0x452f1d&-0x3*0x1+-0x3*-0x4a3+-0xde0)):-0xdae+-0x4a8*-0x1+0x906){_0x430a7c=_0x14c999['indexOf'](_0x430a7c);}for(let _0xe35f92=-0x250a+-0x13*-0x1a5+0x1*0x5cb,_0x301c61=_0x38a9a9['length'];_0xe35f92<_0x301c61;_0xe35f92++){_0x278923+='%'+('00'+_0x38a9a9['charCodeAt'](_0xe35f92)['toString'](-0x261b+0x8b*-0x1+0x26b6))['slice'](-(-0x3*0x742+0xa48+-0x5c0*-0x2));}return decodeURIComponent(_0x278923);};_0x321c['fDiwQN']=_0x36bb50,_0x321c['QhqlSr']={},_0x321c['SWkLcI']=!![];}const _0x3e9a15=_0x5d5fcb[-0x7c4+-0x145*0x1d+0x2c95];_0x321c['tWiNuh']!==_0x3e9a15&&(_0x321c['QhqlSr']={},_0x321c['tWiNuh']=_0x3e9a15);const _0x389782=_0x321c['QhqlSr'][_0x4fc07a];return _0x389782===undefined?(_0x4e7696=_0x321c['fDiwQN'](_0x4e7696),_0x321c['QhqlSr'][_0x4fc07a]=_0x4e7696):_0x4e7696=_0x389782,_0x4e7696;}import{NodeUpgradeCoordinator,nodeUpgradeRequestPath}from'./service/node-upgrade-coordinator.js';const HEARTBEAT_MS=0x106c*0x5+-0x2bd8+0x1454,CAPABILITY_REFRESH_MS=0x7509*0x1+0x13b70+-0xc619,RETRY_MIN_MS=-0x1*-0x331+0x1*0x158b+0xd8*-0x1b,RETRY_MAX_MS=-0x14e6*0x2+0x1*-0x7d46+-0x2fe*-0x5f,CLAUDE_APPROVAL_TIMEOUT_MS=(0x2*-0x1de+0xe9*-0x20+-0x1*-0x20e6)*(0x33e*-0x5c+0x112b+0x2037d);export function nextReconnectDelay(_0x400098){const _0x143e54=_0x321c;return Math[_0x143e54(0x1d3)](RETRY_MAX_MS,RETRY_MIN_MS*(-0x3*0x1+-0x3*-0x4a3+-0xde4)**Math[_0x143e54(0x1d3)](Math[_0x143e54(0x20c)](_0x400098,-0xdae+-0x4a8*-0x1+0x906),-0x250a+-0x13*-0x1a5+0x1*0x5db));}function upgradeMetadata(_0x102bb0,_0x15ac46){const _0x109a1d=_0x321c,_0x46aedb={..._0x102bb0??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x46aedb[_0x109a1d(0x16f)]=!![];else delete _0x46aedb[_0x109a1d(0x16f)];if(_0x15ac46[_0x109a1d(0x22f)]===_0x109a1d(0x22d))delete _0x46aedb[_0x109a1d(0x19c)];else _0x46aedb[_0x109a1d(0x19c)]=_0x15ac46;return _0x46aedb;}export class NodeConnector{[_0x47894e(0x24d)]=crypto[_0x47894e(0x1cf)]()[_0x47894e(0x205)](/-/g,'');[_0x47894e(0x22a)];[_0x47894e(0x16d)];[_0x47894e(0x1b3)];[_0x47894e(0x194)];set[_0x47894e(0x21a)](_0x298065){const _0x6e7fff=_0x47894e;this[_0x6e7fff(0x22a)][_0x6e7fff(0x23e)](_0x298065);}[_0x47894e(0x247)]=![];[_0x47894e(0x1ae)];[_0x47894e(0x209)];[_0x47894e(0x1cb)];[_0x47894e(0x19e)];[_0x47894e(0x1c4)];[_0x47894e(0x23c)];[_0x47894e(0x1d1)];[_0x47894e(0x173)]=new WorkbenchEventService(envelope=>this[_0x47894e(0x1cc)](envelope),(category,payload)=>{const _0x37e3ce=_0x47894e,sessionId=workbenchPayloadSessionId(this[_0x37e3ce(0x1a5)],category,payload);return sessionId===undefined||!this[_0x37e3ce(0x154)][_0x37e3ce(0x15f)][_0x37e3ce(0x1b7)](sessionId);});[_0x47894e(0x248)];[_0x47894e(0x223)];[_0x47894e(0x1e9)]=new RunDomainState();[_0x47894e(0x179)];[_0x47894e(0x15e)];[_0x47894e(0x193)]=new SessionDomainState();[_0x47894e(0x154)];[_0x47894e(0x252)];[_0x47894e(0x232)];[_0x47894e(0x145)];[_0x47894e(0x219)];[_0x47894e(0x22e)];[_0x47894e(0x187)];[_0x47894e(0x140)];[_0x47894e(0x15d)];[_0x47894e(0x1df)];[_0x47894e(0x249)];[_0x47894e(0x1c8)];[_0x47894e(0x14e)];[_0x47894e(0x1f4)];[_0x47894e(0x208)];[_0x47894e(0x1a6)];[_0x47894e(0x246)];[_0x47894e(0x1ec)];[_0x47894e(0x1cd)];[_0x47894e(0x224)];[_0x47894e(0x23a)];[_0x47894e(0x1f6)];[_0x47894e(0x242)];[_0x47894e(0x16b)];[_0x47894e(0x1c7)];[_0x47894e(0x22b)];[_0x47894e(0x239)]=new NodeOperationRouter();[_0x47894e(0x1e6)];[_0x47894e(0x13d)];[_0x47894e(0x1b5)];[_0x47894e(0x153)];[_0x47894e(0x1fb)]=new CommandStateStore();[_0x47894e(0x190)];[_0x47894e(0x19b)];[_0x47894e(0x1b6)];[_0x47894e(0x19f)]=new WorkspaceDomainState();[_0x47894e(0x1e7)]=new WorkspaceWatchService(this[_0x47894e(0x19f)],workspaceId=>this[_0x47894e(0x148)][_0x47894e(0x18e)](workspaceId),workspaceId=>this[_0x47894e(0x148)][_0x47894e(0x174)](workspaceId));[_0x47894e(0x148)]=new WorkspaceSessionService(this[_0x47894e(0x19f)],{'discover':workspaceId=>this[_0x47894e(0x216)](workspaceId),'listPage':workspaceId=>this[_0x47894e(0x20a)](_0x47894e(0x166),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x47894e(0x1e7)][_0x47894e(0x241)](workspaceId,_0x47894e(0x258)),'emitRevision':workspaceId=>void this[_0x47894e(0x196)]?.[_0x47894e(0x1d4)](workspaceId,_0x47894e(0x258)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x47894e(0x21d),{'nodeId':this[_0x47894e(0x1ae)]?.[_0x47894e(0x23f)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x47894e(0x198)]=new WorkspaceFileService(this[_0x47894e(0x19f)],()=>this[_0x47894e(0x1ae)]?.[_0x47894e(0x1da)]??[],workspaceId=>this[_0x47894e(0x15e)][_0x47894e(0x14b)](workspaceId));[_0x47894e(0x16e)]=new WorkspaceUploadService(this[_0x47894e(0x19f)],workspaceId=>this[_0x47894e(0x15e)][_0x47894e(0x14b)](workspaceId));[_0x47894e(0x20b)]=new WorkspaceChangeService(this[_0x47894e(0x19f)]);[_0x47894e(0x196)];[_0x47894e(0x21b)];[_0x47894e(0x176)]=new RecentRunProjectionService(message=>this[_0x47894e(0x1c0)](_0x47894e(0x1e1),message));[_0x47894e(0x1a5)]=new NodeRuntimeState(()=>this[_0x47894e(0x1ae)]?.[_0x47894e(0x23f)]??_0x47894e(0x1c2),workspaceId=>this[_0x47894e(0x21b)]?.[_0x47894e(0x1f0)](workspaceId),Date[_0x47894e(0x1be)],(run,session,userMessage)=>this[_0x47894e(0x176)][_0x47894e(0x1ff)](run,session,userMessage));[_0x47894e(0x20e)]=new NodeMetrics();[_0x47894e(0x1b1)]=new RunEventService({'runtime':this[_0x47894e(0x1a5)],'metrics':this[_0x47894e(0x20e)],'state':this[_0x47894e(0x1e9)],'isBootstrapSession':sessionId=>this[_0x47894e(0x154)][_0x47894e(0x15f)][_0x47894e(0x1b7)](sessionId),'presentSession':session=>this[_0x47894e(0x140)][_0x47894e(0x16a)](session),'rejectBootstrap':(sessionId,code)=>this[_0x47894e(0x154)][_0x47894e(0x1ee)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x50a8b2=_0x47894e;if(category===_0x50a8b2(0x23d)&&isPlainRecord(payload)&&_0x50a8b2(0x188)in payload)this[_0x50a8b2(0x141)](payload[_0x50a8b2(0x188)]);else this[_0x50a8b2(0x21f)](category,payload);},'cleanupAttachments':runId=>this[_0x47894e(0x1f4)][_0x47894e(0x157)](runId),'expireImages':runId=>this[_0x47894e(0x1f4)][_0x47894e(0x228)](runId),'scheduleContextRefresh':sessionId=>this[_0x47894e(0x242)][_0x47894e(0x17c)](sessionId),'pauseQueue':sessionId=>this[_0x47894e(0x22b)][_0x47894e(0x233)](sessionId),'dispatchQueue':async sessionId=>{const _0x499386=_0x47894e;if(!this[_0x499386(0x1b6)][_0x499386(0x13e)]())await this[_0x499386(0x22b)][_0x499386(0x251)](sessionId);},'removeQueuedStart':runId=>this[_0x47894e(0x22b)][_0x47894e(0x1f1)](runId)});[_0x47894e(0x1a3)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x47894e(0x1a5)][_0x47894e(0x1d0)](sessionId)??this[_0x47894e(0x252)][_0x47894e(0x1ba)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x47894e(0x1a5)],session),'suspended':sessionId=>this[_0x47894e(0x1df)][_0x47894e(0x170)](sessionId),'refreshActivity':session=>this[_0x47894e(0x232)][_0x47894e(0x19a)](session),'present':session=>this[_0x47894e(0x140)][_0x47894e(0x16a)](session),'readPage':(session,limit)=>this[_0x47894e(0x232)][_0x47894e(0x172)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'projectInitialPage':(session,page,_unit,limit)=>this[_0x47894e(0x145)][_0x47894e(0x13c)](session,page,limit),'emitSession':session=>this[_0x47894e(0x21f)](_0x47894e(0x1b4),{'session':session}),'emitPage':(session,page)=>this[_0x47894e(0x21f)](_0x47894e(0x23d),{'sessionId':session['id'],'snapshot':this[_0x47894e(0x145)][_0x47894e(0x13c)](session,page,-0x261b+0x8b*-0x1+0x26b0)}),'nodeId':()=>this[_0x47894e(0x1ae)]?.[_0x47894e(0x23f)]??_0x47894e(0x1c2),'nodeGeneration':()=>this[_0x47894e(0x24d)],'emitWatchEvent':payload=>this[_0x47894e(0x1c0)](_0x47894e(0x18b),payload),'log':nodeLog});constructor(_0x1bf5e8={}){const _0xa837d5=_0x47894e;this[_0xa837d5(0x1ae)]=_0x1bf5e8[_0xa837d5(0x1ae)],this[_0xa837d5(0x1c4)]=_0x1bf5e8[_0xa837d5(0x1c4)],this[_0xa837d5(0x1d1)]=_0x1bf5e8[_0xa837d5(0x1d1)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0xa837d5(0x209)]=_0x1bf5e8[_0xa837d5(0x1cb)]!==undefined,this[_0xa837d5(0x1cb)]=_0x1bf5e8[_0xa837d5(0x1cb)]??unavailableCapabilities(),this[_0xa837d5(0x1b6)]=new NodeUpgradeCoordinator(()=>{const _0x4fbe3a=_0xa837d5;if(this[_0x4fbe3a(0x1ae)]===undefined)throw new Error(_0x4fbe3a(0x1ea));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x4fbe3a(0x1ae)],this[_0x4fbe3a(0x1c4)]));},()=>this[_0xa837d5(0x1e9)][_0xa837d5(0x254)][_0xa837d5(0x1dc)],_0x32ab26=>{const _0x163b8e=_0xa837d5;this[_0x163b8e(0x1cb)]={...this[_0x163b8e(0x1cb)],'metadata':upgradeMetadata(this[_0x163b8e(0x1cb)][_0x163b8e(0x146)],_0x32ab26)},this[_0x163b8e(0x22a)]?.[_0x163b8e(0x1c0)](_0x163b8e(0x1cb),this[_0x163b8e(0x1cb)]);},_0x1bf5e8[_0xa837d5(0x267)]??(()=>{const _0x2fc26c=_0xa837d5;this[_0x2fc26c(0x18a)](),setImmediate(()=>process[_0x2fc26c(0x144)](-0x3*0x742+0xa48+-0xbc9*-0x1));})),this[_0xa837d5(0x1cb)]={...this[_0xa837d5(0x1cb)],'metadata':upgradeMetadata(this[_0xa837d5(0x1cb)][_0xa837d5(0x146)],this[_0xa837d5(0x1b6)][_0xa837d5(0x268)]())};const _0x42cd87=_0x1bf5e8[_0xa837d5(0x19e)]??detectCapabilitiesAsync;this[_0xa837d5(0x19e)]=async()=>{const _0x17129e=_0xa837d5,_0xf245f9=await _0x42cd87();return{..._0xf245f9,'metadata':upgradeMetadata(_0xf245f9[_0x17129e(0x146)],this[_0x17129e(0x1b6)][_0x17129e(0x268)]())};},this[_0xa837d5(0x23c)]=_0x1bf5e8[_0xa837d5(0x23c)]??!![],this[_0xa837d5(0x248)]=_0x1bf5e8[_0xa837d5(0x248)]===undefined?undefined:new FakeTestRunner(_0x1bf5e8[_0xa837d5(0x248)]),this[_0xa837d5(0x223)]=_0x1bf5e8[_0xa837d5(0x223)],this[_0xa837d5(0x1f4)]=new RunAttachmentService(_0x4e6ecc=>this[_0xa837d5(0x1f6)][_0xa837d5(0x175)](_0x4e6ecc[_0xa837d5(0x17b)])[_0xa837d5(0x266)](_0x4e6ecc)),this[_0xa837d5(0x1a6)]=new CodexRunner(_0x1bf5e8[_0xa837d5(0x1a6)],_0x1bf5e8[_0xa837d5(0x21e)]),this[_0xa837d5(0x246)]=new CodexManagedRunController(this[_0xa837d5(0x1a6)],{'available':()=>this[_0xa837d5(0x1cb)][_0xa837d5(0x1d7)][_0xa837d5(0x1bf)],'intercepted':()=>this[_0xa837d5(0x248)]!==undefined,'active':this[_0xa837d5(0x1e9)][_0xa837d5(0x254)],'addActive':_0x1e4aa7=>this[_0xa837d5(0x1e9)][_0xa837d5(0x254)][_0xa837d5(0x1f8)](_0x1e4aa7),'removeActive':_0x1a1ec7=>this[_0xa837d5(0x1e9)][_0xa837d5(0x254)][_0xa837d5(0x25f)](_0x1a1ec7),'adopt':_0x4fa15a=>this[_0xa837d5(0x1a5)][_0xa837d5(0x25a)](_0x4fa15a),'session':_0x6f5931=>this[_0xa837d5(0x1a5)][_0xa837d5(0x1d0)](_0x6f5931),'runStatus':_0x491736=>this[_0xa837d5(0x1a5)][_0xa837d5(0x162)](_0x491736)?.[_0xa837d5(0x229)],'run':_0x6159a3=>this[_0xa837d5(0x1a5)][_0xa837d5(0x162)](_0x6159a3),'interrupted':_0x533443=>this[_0xa837d5(0x1e9)][_0xa837d5(0x169)][_0xa837d5(0x1b7)](_0x533443),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0xfb622b,_0x2f8389)=>this[_0xa837d5(0x1f4)][_0xa837d5(0x26a)](_0xfb622b,_0x2f8389),'completeCancelled':_0x4e5be3=>this[_0xa837d5(0x219)][_0xa837d5(0x204)](_0x4e5be3),'promoteSession':(_0x53fbe0,_0x3a8561)=>this[_0xa837d5(0x154)][_0xa837d5(0x168)](_0x53fbe0,_0x3a8561),'send':(_0x36ba35,_0xfc798a)=>this[_0xa837d5(0x1c0)](_0x36ba35,_0xfc798a),'emit':(_0x496a01,_0x3e5ef2,_0x646de6,_0x7ca803)=>this[_0xa837d5(0x179)][_0xa837d5(0x1d9)](_0x496a01,_0x3e5ef2,_0x646de6,_0x7ca803),'cancel':(_0xf2bf9e,_0x4ebf9e,_0x31246a,_0x1c79a7,_0xaf07ba)=>this[_0xa837d5(0x219)][_0xa837d5(0x262)](_0xf2bf9e,_0x4ebf9e,_0x31246a,_0x1c79a7,_0xaf07ba),'createApproval':_0x19e7c8=>this[_0xa837d5(0x1a5)][_0xa837d5(0x1bc)](_0x19e7c8),'publishApproval':_0xa51149=>this[_0xa837d5(0x179)][_0xa837d5(0x1c6)](_0xa51149),'emitItem':(_0x22a13b,_0x1185d9)=>this[_0xa837d5(0x1eb)](_0x22a13b,_0x1185d9),'appendImages':(_0x49fba7,_0x42e1f7)=>this[_0xa837d5(0x1f4)][_0xa837d5(0x257)](_0x49fba7,_0x42e1f7[_0xa837d5(0x191)](isRunnerImageAttachment)),'syncTitle':(_0x502f09,_0x5a1281,_0x17a7e7)=>this[_0xa837d5(0x187)][_0xa837d5(0x1f2)](_0x502f09,_0x5a1281,_0x17a7e7),'commandState':(_0x68b24f,_0x27c9ee)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x207)](_0x68b24f,_0x27c9ee),'setCommandState':(_0x4efc1e,_0x3894d4)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x1c9)](_0x4efc1e,_0x3894d4),'clearCommandState':(_0x34415f,_0x19ccde)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x1fd)](_0x34415f,_0x19ccde),'commandStates':_0x10bfa0=>this[_0xa837d5(0x1fb)][_0xa837d5(0x1a4)](_0x10bfa0),'hasActiveSessionLease':_0x530fe5=>this[_0xa837d5(0x1a5)][_0xa837d5(0x24a)](_0x530fe5),'fast':_0x5c2a20=>this[_0xa837d5(0x20a)](_0xa837d5(0x213),{'runner':_0xa837d5(0x1d7),'commandId':_0xa837d5(0x143),'input':_0x5c2a20})}),this[_0xa837d5(0x1a6)][_0xa837d5(0x1a1)](_0xd7df7e=>this[_0xa837d5(0x246)][_0xa837d5(0x15a)](_0xd7df7e)),this[_0xa837d5(0x1ec)]=new ClaudeCodeRunner(_0x1bf5e8[_0xa837d5(0x1ec)]),this[_0xa837d5(0x1cd)]=new OpenCodeRunner(_0x1bf5e8[_0xa837d5(0x1cd)]),this[_0xa837d5(0x224)]=new OpenCodeManagedRunController(this[_0xa837d5(0x1cd)],{'intercepted':()=>this[_0xa837d5(0x248)]!==undefined,'active':this[_0xa837d5(0x1e9)][_0xa837d5(0x254)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x3dc2a5,_0xf37611,_0x4270e3)=>this[_0xa837d5(0x1f4)][_0xa837d5(0x1a0)](_0x3dc2a5,_0xf37611+_0xa837d5(0x197),_0x4270e3),'emit':(_0x228bef,_0x5b89fb,_0x3e7f30,_0x4a9aea)=>this[_0xa837d5(0x179)][_0xa837d5(0x1d9)](_0x228bef,_0x5b89fb,_0x3e7f30,_0x4a9aea),'emitItem':(_0x603bfd,_0x18cd26)=>this[_0xa837d5(0x1eb)](_0x603bfd,_0x18cd26),'adopt':_0x28c932=>this[_0xa837d5(0x1a5)][_0xa837d5(0x25a)](_0x28c932),'run':_0x50dba9=>{const _0x1e2705=_0xa837d5,_0x24dbde=this[_0x1e2705(0x1a5)][_0x1e2705(0x162)](_0x50dba9);if(_0x24dbde===undefined)throw new Error(_0x1e2705(0x263));return _0x24dbde;},'hasActiveSessionLease':_0x3fdf85=>this[_0xa837d5(0x1a5)][_0xa837d5(0x24a)](_0x3fdf85),'promote':(_0x1b40b1,_0x4bd640)=>this[_0xa837d5(0x154)][_0xa837d5(0x168)](_0x1b40b1,_0x4bd640),'rememberNative':(_0x3ac858,_0x2b616f)=>this[_0xa837d5(0x187)][_0xa837d5(0x1ab)](_0x3ac858,_0x2b616f),'send':(_0x3bf583,_0x3576bd)=>this[_0xa837d5(0x1c0)](_0x3bf583,_0x3576bd),'createApproval':_0x40f580=>this[_0xa837d5(0x1a5)][_0xa837d5(0x1bc)](_0x40f580),'expireApproval':_0x59ebf5=>{const _0x218cd2=_0xa837d5;this[_0x218cd2(0x1a5)][_0x218cd2(0x1c5)](_0x59ebf5);},'publishApproval':_0x121a73=>this[_0xa837d5(0x179)][_0xa837d5(0x1c6)](_0x121a73),'commandState':(_0x3b4567,_0x4e7ae5)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x207)](_0x3b4567,_0x4e7ae5),'setCommandState':(_0x436855,_0x3fa3a3)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x1c9)](_0x436855,_0x3fa3a3),'clearCommandState':(_0x34df9a,_0x494102)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x1fd)](_0x34df9a,_0x494102),'commandStates':_0x2be9d8=>this[_0xa837d5(0x1fb)][_0xa837d5(0x1a4)](_0x2be9d8)},this[_0xa837d5(0x1d1)]),this[_0xa837d5(0x23a)]=new ClaudeManagedRunController(this[_0xa837d5(0x1ec)],{'intercepted':()=>this[_0xa837d5(0x248)]!==undefined,'active':this[_0xa837d5(0x1e9)][_0xa837d5(0x254)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0xb49edf,_0xc992ee,_0x592940,_0x77afed)=>this[_0xa837d5(0x179)][_0xa837d5(0x1d9)](_0xb49edf,_0xc992ee,_0x592940,_0x77afed),'adopt':_0x5eacc6=>this[_0xa837d5(0x1a5)][_0xa837d5(0x25a)](_0x5eacc6),'run':_0x5e1407=>this[_0xa837d5(0x1a5)][_0xa837d5(0x162)](_0x5e1407),'hasActiveSessionLease':_0x590344=>this[_0xa837d5(0x1a5)][_0xa837d5(0x24a)](_0x590344),'session':_0x35ec5e=>this[_0xa837d5(0x1a5)][_0xa837d5(0x1d0)](_0x35ec5e),'completeCancelled':_0x4d18a5=>this[_0xa837d5(0x219)][_0xa837d5(0x204)](_0x4d18a5),'requestUserInput':(_0xfdd95,_0x244759,_0x53f0c6)=>this[_0xa837d5(0x219)][_0xa837d5(0x1c1)](_0xfdd95,_0x244759,_0x53f0c6),'requestApproval':(_0x57e5e1,_0x2e0616,_0x19a7a4)=>this[_0xa837d5(0x219)][_0xa837d5(0x15c)](_0x57e5e1,_0x2e0616,_0x19a7a4),'rememberNative':(_0x43426d,_0x3e074d)=>this[_0xa837d5(0x187)][_0xa837d5(0x1ab)](_0x43426d,_0x3e074d),'promote':(_0x254427,_0x5a41db)=>this[_0xa837d5(0x154)][_0xa837d5(0x168)](_0x254427,_0x5a41db),'send':(_0xccf406,_0x5b1ae5)=>this[_0xa837d5(0x1c0)](_0xccf406,_0x5b1ae5),'emitItem':(_0x50d142,_0x53d48b)=>this[_0xa837d5(0x1eb)](_0x50d142,_0x53d48b),'syncTitle':(_0x4f4539,_0x57bb4a,_0xb28a57)=>this[_0xa837d5(0x187)][_0xa837d5(0x1f2)](_0x4f4539,_0x57bb4a,_0xb28a57),'setChannelToken':(_0x7e1c19,_0x2e38ce)=>this[_0xa837d5(0x1a5)][_0xa837d5(0x1d2)](_0x7e1c19,_0x2e38ce),'commandState':(_0xffa06d,_0x36bf3e)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x207)](_0xffa06d,_0x36bf3e),'setCommandState':(_0x3a6966,_0x8ae29a)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x1c9)](_0x3a6966,_0x8ae29a),'clearCommandState':(_0x5d1029,_0x14a05b)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x1fd)](_0x5d1029,_0x14a05b),'commandStates':_0x14683e=>this[_0xa837d5(0x1fb)][_0xa837d5(0x1a4)](_0x14683e)}),this[_0xa837d5(0x1f6)]=new RunnerRegistry([this[_0xa837d5(0x1cd)],this[_0xa837d5(0x1a6)],this[_0xa837d5(0x1ec)],...this[_0xa837d5(0x248)]===undefined?[]:[this[_0xa837d5(0x248)]]]),this[_0xa837d5(0x187)]=new ManagedRunnerSessionService(this[_0xa837d5(0x1a5)],this[_0xa837d5(0x1f6)],_0x47a0d8=>this[_0xa837d5(0x21f)](_0xa837d5(0x1b4),{'session':this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0x47a0d8)})),this[_0xa837d5(0x219)]=new RunnerInteractionService({'runtime':this[_0xa837d5(0x1a5)],'state':this[_0xa837d5(0x1e9)],'codex':()=>this[_0xa837d5(0x1a6)],'claude':()=>this[_0xa837d5(0x1ec)],'runners':this[_0xa837d5(0x1f6)],'emitRun':(_0x1b8bdb,_0x24b79d,_0x3922c9,_0x300863)=>this[_0xa837d5(0x179)][_0xa837d5(0x1d9)](_0x1b8bdb,_0x24b79d,_0x3922c9,_0x300863),'emitItem':(_0x53ca7d,_0x1773e1)=>this[_0xa837d5(0x1eb)](_0x53ca7d,_0x1773e1),'approvalTimeoutMs':this[_0xa837d5(0x1d1)],'publishApproval':_0x217748=>this[_0xa837d5(0x179)][_0xa837d5(0x1c6)](_0x217748)}),this[_0xa837d5(0x22e)]=new RunnerChannelMessageService({'interactions':this[_0xa837d5(0x219)],'send':(_0x1bc88a,_0xac0f41,_0x529562)=>this[_0xa837d5(0x1c0)](_0x1bc88a,_0xac0f41,_0x529562)}),this[_0xa837d5(0x140)]=new SessionPresentationService({'database':()=>this[_0xa837d5(0x21b)],'runtime':this[_0xa837d5(0x1a5)],'commands':this[_0xa837d5(0x1fb)],'runners':this[_0xa837d5(0x1f6)],'capabilities':()=>this[_0xa837d5(0x1cb)],'hasManagedActiveRun':_0x1b7ccd=>hasManagedActiveRun(this[_0xa837d5(0x1a5)],_0x1b7ccd),'externalActivity':_0x20a661=>this[_0xa837d5(0x193)][_0xa837d5(0x13f)][_0xa837d5(0x207)](_0x20a661),'projectionForNative':_0x2ab1bf=>this[_0xa837d5(0x252)][_0xa837d5(0x1f3)](_0x2ab1bf)}),this[_0xa837d5(0x252)]=new NativeSessionProjectionService({'database':()=>this[_0xa837d5(0x21b)],'nodeId':()=>this[_0xa837d5(0x1ae)]?.[_0xa837d5(0x23f)]??_0xa837d5(0x269),'runtime':this[_0xa837d5(0x1a5)],'runners':this[_0xa837d5(0x1f6)],'capabilities':()=>this[_0xa837d5(0x1cb)],'state':this[_0xa837d5(0x193)],'commands':this[_0xa837d5(0x1fb)],'present':_0x2c7edf=>this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0x2c7edf)}),this[_0xa837d5(0x232)]=new ConversationHistoryService({'runtime':this[_0xa837d5(0x1a5)],'runners':this[_0xa837d5(0x1f6)],'capabilities':()=>this[_0xa837d5(0x1cb)],'attachments':this[_0xa837d5(0x1f4)],'snapshotSequence':()=>this[_0xa837d5(0x173)][_0xa837d5(0x1fa)](),'hasManagedActiveRun':_0x415522=>hasManagedActiveRun(this[_0xa837d5(0x1a5)],_0x415522),'setExternalActivity':(_0x270ed4,_0x218545)=>this[_0xa837d5(0x193)][_0xa837d5(0x13f)][_0xa837d5(0x1c9)](_0x270ed4,_0x218545)}),this[_0xa837d5(0x145)]=new ConversationSegmentService((_0x586cb4,_0x1c8713)=>this[_0xa837d5(0x232)][_0xa837d5(0x172)](_0x586cb4,_0x1c8713)),this[_0xa837d5(0x242)]=new SessionContextService({'runners':this[_0xa837d5(0x1f6)],'session':_0x408a3f=>this[_0xa837d5(0x1a5)][_0xa837d5(0x1d0)](_0x408a3f),'stopped':()=>this[_0xa837d5(0x247)],'publish':_0x10cba7=>this[_0xa837d5(0x21f)](_0xa837d5(0x1b4),_0x10cba7)}),this[_0xa837d5(0x16b)]=new RunWorkbenchService({'runtime':this[_0xa837d5(0x1a5)],'readImage':async(_0x793dec,_0x28be79)=>this[_0xa837d5(0x1f4)][_0xa837d5(0x172)](_0x793dec,_0x28be79)??await this[_0xa837d5(0x1f4)][_0xa837d5(0x182)](_0x793dec,_0x28be79),'respondUserInput':(_0x5f08d1,_0xf62ce0,_0x3e6df3)=>this[_0xa837d5(0x219)][_0xa837d5(0x1ad)](_0x5f08d1,_0xf62ce0,_0x3e6df3),'cancelQueued':_0x136537=>this[_0xa837d5(0x22b)][_0xa837d5(0x178)](_0x136537),'pauseQueue':_0x190c7a=>this[_0xa837d5(0x22b)][_0xa837d5(0x233)](_0x190c7a),'emitRun':(_0x22aae0,_0x8ef3de,_0x502a1f,_0x268e71)=>this[_0xa837d5(0x179)][_0xa837d5(0x1d9)](_0x22aae0,_0x8ef3de,_0x502a1f,_0x268e71),'control':(_0x31b6ba,_0x44e251)=>this[_0xa837d5(0x16d)][_0xa837d5(0x237)](JSON[_0xa837d5(0x156)](createEnvelope(_0x31b6ba,_0x44e251))),'markInterrupted':_0x42abb5=>this[_0xa837d5(0x1e9)][_0xa837d5(0x169)][_0xa837d5(0x1f8)](_0x42abb5)}),this[_0xa837d5(0x1c7)]=new SessionQueryService({'runtime':this[_0xa837d5(0x1a5)],'runners':this[_0xa837d5(0x1f6)],'resolve':_0x24655a=>this[_0xa837d5(0x252)][_0xa837d5(0x158)](_0x24655a),'present':_0x45ca4a=>this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0x45ca4a),'history':(_0x1c8200,_0x4ce621)=>this[_0xa837d5(0x232)][_0xa837d5(0x172)](_0x1c8200,_0x4ce621),'segments':(_0xe06d28,_0x5a58bf)=>this[_0xa837d5(0x145)][_0xa837d5(0x172)](_0xe06d28,_0x5a58bf),'context':this[_0xa837d5(0x242)],'discover':(_0x2c7623,_0x3a948f)=>this[_0xa837d5(0x252)][_0xa837d5(0x215)](_0x2c7623,_0x3a948f),'workspaceIdForCwd':_0x241ed5=>this[_0xa837d5(0x21b)]?.[_0xa837d5(0x201)]()[_0xa837d5(0x1a9)](_0x56e46d=>_0x56e46d[_0xa837d5(0x1de)]===_0x241ed5)?.['id']}),this[_0xa837d5(0x22b)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0xa837d5(0x1a5)],'emit':(_0x455860,_0x5616a6)=>this[_0xa837d5(0x179)][_0xa837d5(0x225)](_0x455860,_0x5616a6),'clearImages':_0x3c617b=>this[_0xa837d5(0x1f4)][_0xa837d5(0x1fd)](_0x3c617b),'cleanupAttachments':_0x39b854=>this[_0xa837d5(0x1f4)][_0xa837d5(0x157)](_0x39b854),'emitRun':(_0x3baddf,_0x2e868f,_0x1a1ed6,_0x4d6d8)=>this[_0xa837d5(0x179)][_0xa837d5(0x1d9)](_0x3baddf,_0x2e868f,_0x1a1ed6,_0x4d6d8),'emitConversation':_0xc5aa51=>this[_0xa837d5(0x141)](_0xc5aa51),'control':(_0x8af780,_0x33ad1c)=>this[_0xa837d5(0x16d)][_0xa837d5(0x237)](JSON[_0xa837d5(0x156)](createEnvelope(_0x8af780,_0x33ad1c))),'stopped':()=>this[_0xa837d5(0x247)],'markInterrupted':_0x13d577=>this[_0xa837d5(0x1e9)][_0xa837d5(0x169)][_0xa837d5(0x1f8)](_0x13d577),'prepareInput':(_0x3e3db0,_0x39eca9,_0x5229b3)=>this[_0xa837d5(0x1f6)][_0xa837d5(0x175)](_0x3e3db0)[_0xa837d5(0x231)](_0x39eca9,_0x5229b3),'mcps':_0x3b780f=>this[_0xa837d5(0x21b)]?.[_0xa837d5(0x17d)](_0x3b780f)??[]}),this[_0xa837d5(0x154)]=new SessionIdentityService({'runtime':this[_0xa837d5(0x1a5)],'persist':(_0x6407c,_0x992f80)=>{const _0x134959=_0xa837d5;if(_0x6407c[_0x134959(0x1ed)]===null||_0x6407c[_0x134959(0x230)]===null||_0x6407c[_0x134959(0x243)]===null)return;this[_0x134959(0x21b)]?.[_0x134959(0x185)]({'runner':_0x6407c[_0x134959(0x17b)],'externalSessionId':_0x992f80,'workspaceId':_0x6407c[_0x134959(0x253)],'model':_0x6407c[_0x134959(0x1ed)],'effort':_0x6407c[_0x134959(0x230)],'access':_0x6407c[_0x134959(0x243)]});},'migrateCommands':(_0x4ac2da,_0x3dab59)=>this[_0xa837d5(0x1fb)][_0xa837d5(0x159)](_0x4ac2da,_0x3dab59),'migrateQueue':(_0x11d2ea,_0x3df40f)=>this[_0xa837d5(0x22b)][_0xa837d5(0x20f)](_0x11d2ea,_0x3df40f),'migrateRunnerState':(_0x306813,_0x1a05ce)=>this[_0xa837d5(0x179)][_0xa837d5(0x210)](_0x306813,_0x1a05ce),'emitSession':_0xc800b1=>this[_0xa837d5(0x21f)](_0xa837d5(0x1b4),{'session':_0xc800b1}),'emitRun':_0x47a492=>this[_0xa837d5(0x21f)](_0xa837d5(0x1dd),{'run':_0x47a492}),'emitQueue':_0x2c769a=>this[_0xa837d5(0x22b)][_0xa837d5(0x1d8)](_0x2c769a),'emitTurn':_0x482e6f=>this[_0xa837d5(0x141)](_0x482e6f)}),this[_0xa837d5(0x15d)]=new SessionLifecycleService({'database':()=>{const _0x4e0341=_0xa837d5;if(this[_0x4e0341(0x21b)]===undefined)throw new Error(_0x4e0341(0x163));return this[_0x4e0341(0x21b)];},'runtime':this[_0xa837d5(0x1a5)],'runners':this[_0xa837d5(0x1f6)],'projection':this[_0xa837d5(0x252)],'identity':this[_0xa837d5(0x154)],'present':_0xa41a84=>this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0xa41a84),'emitSession':_0x3f5f6d=>this[_0xa837d5(0x21f)](_0xa837d5(0x1b4),{'session':this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0x3f5f6d)}),'execute':(_0x58d75e,_0x220ac9)=>this[_0xa837d5(0x20a)](_0x58d75e,_0x220ac9),'interceptedSessionId':_0x37e208=>this[_0xa837d5(0x248)]===undefined?undefined:_0xa837d5(0x25e)+_0x37e208}),this[_0xa837d5(0x1df)]=new ExternalSessionResumeService({'runtime':this[_0xa837d5(0x1a5)],'runners':this[_0xa837d5(0x1f6)],'state':this[_0xa837d5(0x193)],'available':_0x15d453=>this[_0xa837d5(0x1f6)][_0xa837d5(0x175)](_0x15d453)[_0xa837d5(0x1bf)](this[_0xa837d5(0x1cb)]),'projectionFor':_0x57978d=>this[_0xa837d5(0x252)][_0xa837d5(0x1f3)](_0x57978d),'managedAliasFor':_0x230cc5=>this[_0xa837d5(0x252)][_0xa837d5(0x25b)](_0x230cc5),'ensureConfiguration':_0x5cf0d4=>this[_0xa837d5(0x252)][_0xa837d5(0x18d)](_0x5cf0d4),'configuration':_0x1e3341=>this[_0xa837d5(0x252)][_0xa837d5(0x183)](_0x1e3341),'workspacePath':_0x1076ab=>this[_0xa837d5(0x21b)]?.[_0xa837d5(0x1f0)](_0x1076ab)?.[_0xa837d5(0x1de)],'rememberNative':(_0x16d6c6,_0x2e4c5f)=>this[_0xa837d5(0x187)][_0xa837d5(0x1ab)](_0x16d6c6,_0x2e4c5f),'resolve':_0x349eaf=>this[_0xa837d5(0x252)][_0xa837d5(0x158)](_0x349eaf)}),this[_0xa837d5(0x14e)]=new SessionCommandService({'runtime':this[_0xa837d5(0x1a5)],'runners':this[_0xa837d5(0x1f6)],'projection':this[_0xa837d5(0x252)],'resume':this[_0xa837d5(0x1df)],'profiles':()=>this[_0xa837d5(0x1e6)][_0xa837d5(0x171)](),'present':_0x241856=>this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0x241856),'resumeQueueAfterCommandRun':_0x1fcfd1=>this[_0xa837d5(0x22b)][_0xa837d5(0x1b8)](_0x1fcfd1)}),this[_0xa837d5(0x249)]=new SessionMessageService({'runtime':this[_0xa837d5(0x1a5)],'uploads':this[_0xa837d5(0x16e)],'attachments':this[_0xa837d5(0x1f4)],'commands':this[_0xa837d5(0x1fb)],'queue':this[_0xa837d5(0x22b)],'interaction':this[_0xa837d5(0x219)],'runners':this[_0xa837d5(0x1f6)],'resolve':_0x10c4d9=>this[_0xa837d5(0x1df)][_0xa837d5(0x180)](_0x10c4d9),'present':_0x18359f=>this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0x18359f),'emitSession':_0x52c0c1=>this[_0xa837d5(0x21f)](_0xa837d5(0x1b4),{'session':this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0x52c0c1)}),'channelToken':_0x506c15=>{const _0x4ac632=_0xa837d5,_0x110724=this[_0x4ac632(0x1a5)][_0x4ac632(0x1d0)](_0x506c15);return _0x110724===undefined?undefined:this[_0x4ac632(0x1f6)][_0x4ac632(0x175)](_0x110724[_0x4ac632(0x17b)])[_0x4ac632(0x212)](_0x506c15);}}),this[_0xa837d5(0x1c8)]=new SessionCatalogService({'database':()=>{const _0x1ef67c=_0xa837d5;if(this[_0x1ef67c(0x21b)]===undefined)throw new Error(_0x1ef67c(0x163));return this[_0x1ef67c(0x21b)];},'nodeId':()=>this[_0xa837d5(0x1ae)]?.[_0xa837d5(0x23f)]??_0xa837d5(0x269),'runtime':this[_0xa837d5(0x1a5)],'runners':this[_0xa837d5(0x1f6)],'projection':this[_0xa837d5(0x252)],'resume':this[_0xa837d5(0x1df)],'cachedNative':()=>[...this[_0xa837d5(0x193)][_0xa837d5(0x165)][_0xa837d5(0x14c)]()],'cachedWorkspace':_0x12b9b8=>this[_0xa837d5(0x15e)][_0xa837d5(0x184)](_0x12b9b8),'present':_0x2554e0=>this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0x2554e0),'projectionForNative':_0x329012=>this[_0xa837d5(0x252)][_0xa837d5(0x1f3)](_0x329012),'nativeIds':_0x2393da=>this[_0xa837d5(0x252)][_0xa837d5(0x1e0)](_0x2393da),'forget':(_0x36ace9,_0x58ba5f)=>this[_0xa837d5(0x252)][_0xa837d5(0x147)](_0x36ace9,_0x58ba5f),'refreshActivity':_0x5d3a4c=>this[_0xa837d5(0x232)][_0xa837d5(0x19a)](_0x5d3a4c),'externalActivity':_0x1d779a=>this[_0xa837d5(0x193)][_0xa837d5(0x13f)][_0xa837d5(0x207)](_0x1d779a),'history':(_0x3e4b7d,_0x5f2215)=>this[_0xa837d5(0x232)][_0xa837d5(0x172)](_0x3e4b7d,_0x5f2215),'emitSession':_0x1d0557=>this[_0xa837d5(0x21f)](_0xa837d5(0x1b4),{'session':this[_0xa837d5(0x140)][_0xa837d5(0x16a)](_0x1d0557)})}),this[_0xa837d5(0x1a6)][_0xa837d5(0x235)]({'start':_0x3312b6=>this[_0xa837d5(0x246)][_0xa837d5(0x236)](_0x3312b6),'cancel':(_0x12959d,_0x40a01c)=>{const _0x3daed0=_0xa837d5,_0x58220b=this[_0x3daed0(0x1a6)][_0x3daed0(0x152)][_0x3daed0(0x20d)][_0x3daed0(0x207)](_0x12959d);if(_0x58220b?.[_0x3daed0(0x206)]===undefined)return![];return void this[_0x3daed0(0x219)][_0x3daed0(0x262)](_0x12959d,_0x58220b[_0x3daed0(0x1b9)],_0x58220b[_0x3daed0(0x206)],_0x58220b[_0x3daed0(0x1af)],_0x40a01c===_0x3daed0(0x150)?_0x3daed0(0x189):_0x3daed0(0x192)),!![];},'decideApproval':_0xc9f935=>this[_0xa837d5(0x219)][_0xa837d5(0x244)](_0xc9f935[_0xa837d5(0x261)],_0xc9f935[_0xa837d5(0x149)])}),this[_0xa837d5(0x1ec)][_0xa837d5(0x235)]({'start':_0x4c45b4=>this[_0xa837d5(0x23a)][_0xa837d5(0x236)](_0x4c45b4),'cancel':(_0x148039,_0x12955d)=>this[_0xa837d5(0x219)][_0xa837d5(0x260)](_0x148039,_0x12955d),'decideApproval':_0x1d273a=>this[_0xa837d5(0x219)][_0xa837d5(0x240)](_0x1d273a[_0xa837d5(0x261)],_0x1d273a[_0xa837d5(0x149)])}),this[_0xa837d5(0x1cd)][_0xa837d5(0x235)]({'start':_0x31dacf=>this[_0xa837d5(0x224)][_0xa837d5(0x236)](_0x31dacf),'cancel':(_0x3f4f02,_0x4decd9)=>this[_0xa837d5(0x224)][_0xa837d5(0x19d)](_0x3f4f02,_0x4decd9),'decideApproval':_0x257f09=>this[_0xa837d5(0x224)][_0xa837d5(0x1db)](_0x257f09),'respondUserInput':(_0x3ff9af,_0xa3a16f,_0x5e6254)=>this[_0xa837d5(0x224)][_0xa837d5(0x1ad)](_0x3ff9af,_0xa3a16f,_0x5e6254)}),this[_0xa837d5(0x1a6)][_0xa837d5(0x1f5)]({'execute':(_0x15db4d,_0xe7b4f9,_0x8f57b5,_0x2475e1)=>this[_0xa837d5(0x246)][_0xa837d5(0x256)](_0x15db4d,_0xe7b4f9,_0x8f57b5,_0x2475e1)}),this[_0xa837d5(0x1ec)][_0xa837d5(0x1f5)]({'execute':(_0x1352bc,_0x166189,_0x55be50,_0xa0bf69)=>this[_0xa837d5(0x23a)][_0xa837d5(0x256)](_0x1352bc,_0x166189,_0x55be50,_0xa0bf69)}),this[_0xa837d5(0x1cd)][_0xa837d5(0x1f5)]({'execute':(_0x59689b,_0x31b673,_0x5e74e4,_0x5bc976)=>this[_0xa837d5(0x224)][_0xa837d5(0x256)](_0x59689b,_0x31b673,_0x5bc976)});const _0x11a992=this[_0xa837d5(0x248)]===undefined||this[_0xa837d5(0x223)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0xa837d5(0x248)],'script':this[_0xa837d5(0x223)],'runners':this[_0xa837d5(0x1f6)],'runtime':this[_0xa837d5(0x1a5)],'state':this[_0xa837d5(0x1e9)],'emitRun':(_0x2606ee,_0x465a91,_0x37a47b,_0x52c02c)=>this[_0xa837d5(0x179)][_0xa837d5(0x1d9)](_0x2606ee,_0x465a91,_0x37a47b,_0x52c02c),'publishApproval':_0x20e96f=>this[_0xa837d5(0x179)][_0xa837d5(0x1c6)](_0x20e96f),'disconnect':()=>this[_0xa837d5(0x22a)][_0xa837d5(0x167)](-0x7c4+-0x145*0x1d+0x3c3f,_0xa837d5(0x1a8))});this[_0xa837d5(0x248)]?.[_0xa837d5(0x235)]({'start':_0x5f43a9=>_0x11a992?.[_0xa837d5(0x236)](_0x5f43a9),'cancel':(_0x26dcc6,_0x4f3bbf)=>_0x4f3bbf===_0xa837d5(0x150)?this[_0xa837d5(0x248)]?.[_0xa837d5(0x19d)](_0x26dcc6)??![]:this[_0xa837d5(0x248)]?.[_0xa837d5(0x155)](_0x26dcc6)??![],'decideApproval':_0x2e3639=>this[_0xa837d5(0x248)]?.[_0xa837d5(0x1d6)](_0x2e3639[_0xa837d5(0x1f7)],_0x2e3639[_0xa837d5(0x261)],_0x2e3639[_0xa837d5(0x149)])??![]}),this[_0xa837d5(0x190)]=_0x1bf5e8[_0xa837d5(0x190)]??new RunnerUsageReader(),this[_0xa837d5(0x21b)]=_0x1bf5e8[_0xa837d5(0x21b)],this[_0xa837d5(0x19b)]=_0x1bf5e8[_0xa837d5(0x19b)]??new TerminalManager({'platform':this[_0xa837d5(0x1cb)][_0xa837d5(0x24c)]===_0xa837d5(0x211)?_0xa837d5(0x17f):_0xa837d5(0x22c)}),this[_0xa837d5(0x19b)][_0xa837d5(0x18f)](_0xc34c7e=>this[_0xa837d5(0x15e)][_0xa837d5(0x245)](_0xc34c7e)),this[_0xa837d5(0x208)]=new NodeTerminalChannel({'config':()=>this[_0xa837d5(0x1ae)],'controlConnected':()=>this[_0xa837d5(0x22a)][_0xa837d5(0x203)](),'stopped':()=>this[_0xa837d5(0x247)],'reconnect':this[_0xa837d5(0x23c)],'reconnectDelay':nextReconnectDelay,'manager':this[_0xa837d5(0x19b)]}),this[_0xa837d5(0x22a)]=new NodeControlChannel({'config':()=>this[_0xa837d5(0x1ae)],'capabilities':()=>this[_0xa837d5(0x1cb)],'stopped':()=>this[_0xa837d5(0x247)],'reconnect':this[_0xa837d5(0x23c)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0xcae780=>{const _0x4d61c1=_0xa837d5;this[_0x4d61c1(0x20e)][_0x4d61c1(0x16c)](),nodeLog(_0x4d61c1(0x1ac),{'attempt':_0xcae780});},'onReconnectScheduled':()=>this[_0xa837d5(0x20e)][_0xa837d5(0x177)](),'onMessage':_0x288e30=>this[_0xa837d5(0x151)](_0x288e30),'onClose':(_0x579c3d,_0xe1dd2d)=>{const _0x42a8e1=_0xa837d5;this[_0x42a8e1(0x208)][_0x42a8e1(0x164)]();if(_0x579c3d===0x10d*0x19+0x1953+0x2*-0x11fc&&_0xe1dd2d===_0x42a8e1(0x1b2))nodeLog(_0x42a8e1(0x1e5),{'message':_0x42a8e1(0x24b)});if(_0x579c3d===-0x3*0xb87+0x326*-0x7+0x6*0xc0b||_0x579c3d===-0x1b6e+0x59+-0x1efe*-0x1)void this[_0x42a8e1(0x19b)][_0x42a8e1(0x1e2)]();}}),this[_0xa837d5(0x16d)]=new NodeControlMessageService({'config':()=>this[_0xa837d5(0x1ae)],'register':(_0x4c4652,_0x5d9f19)=>this[_0xa837d5(0x194)][_0xa837d5(0x1d5)](_0x4c4652,_0x5d9f19),'connected':()=>this[_0xa837d5(0x194)][_0xa837d5(0x203)](),'close':(_0x566a1b,_0x2fcf57)=>this[_0xa837d5(0x22a)][_0xa837d5(0x167)](_0x566a1b,_0x2fcf57),'inspectWorkspace':_0x27ef09=>this[_0xa837d5(0x15e)][_0xa837d5(0x1ce)](_0x27ef09),'handleNodeRequest':_0x3713cd=>this[_0xa837d5(0x1b3)][_0xa837d5(0x237)](_0x3713cd),'reconcileRuns':_0x1cd9d2=>this[_0xa837d5(0x179)][_0xa837d5(0x1ef)](_0x1cd9d2),'runners':this[_0xa837d5(0x1f6)],'deliverSessionChannelMessage':_0xe27c0c=>this[_0xa837d5(0x22e)][_0xa837d5(0x237)](_0xe27c0c),'completeUncontrolledCancellation':_0x2add3d=>{const _0x284a02=_0xa837d5,_0x35a516=this[_0x284a02(0x1a5)][_0x284a02(0x162)](_0x2add3d);if(_0x35a516?.[_0x284a02(0x229)]===_0x284a02(0x1a7))this[_0x284a02(0x219)][_0x284a02(0x204)](_0x2add3d);},'send':(_0xb39795,_0x5bf1bd,_0x184602)=>this[_0xa837d5(0x1c0)](_0xb39795,_0x5bf1bd,_0x184602)}),this[_0xa837d5(0x1b3)]=new NodeRequestService({'nodeId':()=>this[_0xa837d5(0x1ae)]?.[_0xa837d5(0x23f)],'databaseAvailable':()=>this[_0xa837d5(0x21b)]!==undefined,'execute':(_0x29e908,_0x20123e)=>this[_0xa837d5(0x20a)](_0x29e908,_0x20123e),'send':(_0x51eaec,_0x5e132d,_0x216f29)=>this[_0xa837d5(0x1c0)](_0x51eaec,_0x5e132d,_0x216f29)}),this[_0xa837d5(0x15e)]=new NodeWorkspaceCoordinator({'config':()=>this[_0xa837d5(0x1ae)],'database':()=>this[_0xa837d5(0x21b)],'watches':this[_0xa837d5(0x1e7)],'sessions':this[_0xa837d5(0x148)],'changes':this[_0xa837d5(0x20b)],'emit':(_0xbf87ec,_0x2b3e5c)=>void this[_0xa837d5(0x196)]?.[_0xa837d5(0x1d4)](_0xbf87ec,_0x2b3e5c),'send':(_0x2f10da,_0x330591,_0x5f4b8a)=>this[_0xa837d5(0x1c0)](_0x2f10da,_0x330591,_0x5f4b8a)}),this[_0xa837d5(0x179)]=new NodeRunEventBridge({'runtime':this[_0xa837d5(0x1a5)],'state':this[_0xa837d5(0x1e9)],'events':this[_0xa837d5(0x1b1)],'workbench':this[_0xa837d5(0x173)],'queues':this[_0xa837d5(0x22b)],'codex':this[_0xa837d5(0x1a6)],'claude':this[_0xa837d5(0x1ec)],'openCode':this[_0xa837d5(0x1cd)],'send':(_0x47f008,_0x4d5881,_0x4c0d96)=>this[_0xa837d5(0x1c0)](_0x47f008,_0x4d5881,_0x4c0d96)}),this[_0xa837d5(0x194)]=new NodeConnectionLifecycleService({'config':()=>this[_0xa837d5(0x1ae)],'setConfig':_0x3febaf=>this[_0xa837d5(0x1ae)]=_0x3febaf,'configPath':this[_0xa837d5(0x1c4)],'capabilities':()=>this[_0xa837d5(0x1cb)],'detectCapabilities':this[_0xa837d5(0x19e)],'capabilitiesProvided':this[_0xa837d5(0x209)],'stopped':()=>this[_0xa837d5(0x247)],'setCapabilities':_0x2064ea=>this[_0xa837d5(0x1cb)]={..._0x2064ea,'metadata':upgradeMetadata(_0x2064ea[_0xa837d5(0x146)],this[_0xa837d5(0x1b6)][_0xa837d5(0x268)]())},'control':this[_0xa837d5(0x22a)],'terminal':this[_0xa837d5(0x208)],'metrics':this[_0xa837d5(0x20e)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0xa837d5(0x176)][_0xa837d5(0x14d)]()});const _0x363c95=()=>{const _0x43873c=_0xa837d5;if(this[_0x43873c(0x21b)]===undefined)throw new Error(_0x43873c(0x163));return this[_0x43873c(0x21b)];};this[_0xa837d5(0x1e6)]=new RunnerService(_0x363c95,()=>this[_0xa837d5(0x1cb)],this[_0xa837d5(0x1f6)],this[_0xa837d5(0x190)]),this[_0xa837d5(0x13d)]=new WorkbenchManifestService({'capabilities':()=>this[_0xa837d5(0x1cb)],'runners':this[_0xa837d5(0x1e6)],'terminals':this[_0xa837d5(0x19b)]}),this[_0xa837d5(0x1b5)]=new TerminalService(_0x363c95,this[_0xa837d5(0x19b)]),this[_0xa837d5(0x153)]=new WorkspaceService(_0x363c95,()=>{const _0x461d08=_0xa837d5;if(this[_0x461d08(0x1ae)]===undefined)throw new Error(_0x461d08(0x1ea));return this[_0x461d08(0x1ae)];},this[_0xa837d5(0x1a5)],_0x6d5ac1=>{const _0xfb046=_0xa837d5;this[_0xfb046(0x198)][_0xfb046(0x226)](_0x6d5ac1),this[_0xfb046(0x15e)][_0xfb046(0x1b0)](_0x6d5ac1),this[_0xfb046(0x148)][_0xfb046(0x14b)](_0x6d5ac1),this[_0xfb046(0x15e)][_0xfb046(0x238)](_0x6d5ac1);}),this[_0xa837d5(0x196)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x30fa2d=>this[_0xa837d5(0x15e)][_0xa837d5(0x175)](_0x30fa2d),'watch':this[_0xa837d5(0x1e7)],'files':this[_0xa837d5(0x198)],'uploads':this[_0xa837d5(0x16e)],'changes':this[_0xa837d5(0x20b)],'listSessions':_0x3d7642=>this[_0xa837d5(0x20a)](_0xa837d5(0x166),{'workspaceId':_0x3d7642,'limit':0x14}),'invalidate':_0xd71d47=>this[_0xa837d5(0x15e)][_0xa837d5(0x14b)](_0xd71d47),'nodeId':()=>this[_0xa837d5(0x1ae)]?.[_0xa837d5(0x23f)]??_0xa837d5(0x1c2),'nodeGeneration':()=>this[_0xa837d5(0x24d)],'emitWatchEvent':_0x38ada8=>this[_0xa837d5(0x1c0)](_0xa837d5(0x18b),_0x38ada8)}),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x1e6)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x1b5)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x153)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x196)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x16b)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x1a3)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x1c7)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x15d)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x249)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x1c8)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x14e)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](this[_0xa837d5(0x22b)][_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](new SkillNodeOperationService(_0x363c95,()=>{const _0x2378f8=_0xa837d5;if(this[_0x2378f8(0x1ae)]===undefined)throw new Error(_0x2378f8(0x1ea));return this[_0x2378f8(0x1ae)];})[_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x217)](new McpNodeOperationService(_0x363c95)[_0xa837d5(0x13b)]()),this[_0xa837d5(0x239)][_0xa837d5(0x1d5)](_0xa837d5(0x221),()=>({'metrics':{...this[_0xa837d5(0x20e)][_0xa837d5(0x268)](),'activeRuns':this[_0xa837d5(0x1e9)][_0xa837d5(0x254)][_0xa837d5(0x1dc)],'workspaceLeases':this[_0xa837d5(0x1a5)][_0xa837d5(0x181)]()}})),this[_0xa837d5(0x239)][_0xa837d5(0x1d5)](_0xa837d5(0x250),_0x1dd29e=>this[_0xa837d5(0x1b6)][_0xa837d5(0x161)](_0x1dd29e)),this[_0xa837d5(0x239)][_0xa837d5(0x1d5)](_0xa837d5(0x14a),()=>this[_0xa837d5(0x1b6)][_0xa837d5(0x19d)]()),this[_0xa837d5(0x239)][_0xa837d5(0x1d5)](_0xa837d5(0x24e),async()=>({'manifest':await this[_0xa837d5(0x13d)][_0xa837d5(0x172)]()}));}async[_0x47894e(0x236)](){const _0x5927a2=_0x47894e;this[_0x5927a2(0x247)]=![],this[_0x5927a2(0x1ae)]??=await loadNodeConfig(this[_0x5927a2(0x1c4)]),await this[_0x5927a2(0x1b6)][_0x5927a2(0x1c3)](resolve(dirname(nodeDatabasePath(this[_0x5927a2(0x1ae)],this[_0x5927a2(0x1c4)])),_0x5927a2(0x142))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x5927a2(0x1ae)],this[_0x5927a2(0x1c4)])),this[_0x5927a2(0x21b)]??=new NodeDatabase(nodeDatabasePath(this[_0x5927a2(0x1ae)],this[_0x5927a2(0x1c4)]),()=>this[_0x5927a2(0x1ae)]?.[_0x5927a2(0x23f)]??_0x5927a2(0x218)),this[_0x5927a2(0x21b)][_0x5927a2(0x1e3)](),this[_0x5927a2(0x194)][_0x5927a2(0x236)](),this[_0x5927a2(0x22a)][_0x5927a2(0x1fc)]();}[_0x47894e(0x18a)](){const _0x56972e=_0x47894e;this[_0x56972e(0x247)]=!![],this[_0x56972e(0x176)][_0x56972e(0x226)](),this[_0x56972e(0x1b6)][_0x56972e(0x18a)](),this[_0x56972e(0x194)][_0x56972e(0x18a)]();for(const _0x560ced of this[_0x56972e(0x1ec)][_0x56972e(0x152)][_0x56972e(0x234)][_0x56972e(0x14c)]()){clearTimeout(_0x560ced[_0x56972e(0x1f9)]),_0x560ced[_0x56972e(0x158)](_0x56972e(0x264));}this[_0x56972e(0x1ec)][_0x56972e(0x152)][_0x56972e(0x234)][_0x56972e(0x1fd)]();for(const _0x49392c of this[_0x56972e(0x1ec)][_0x56972e(0x152)][_0x56972e(0x15b)][_0x56972e(0x14c)]()){clearTimeout(_0x49392c[_0x56972e(0x1f9)]),_0x49392c[_0x56972e(0x1ee)](_0x56972e(0x17e));}this[_0x56972e(0x1ec)][_0x56972e(0x152)][_0x56972e(0x15b)][_0x56972e(0x1fd)](),this[_0x56972e(0x1a3)][_0x56972e(0x1fd)](),this[_0x56972e(0x154)][_0x56972e(0x226)](),this[_0x56972e(0x15d)][_0x56972e(0x1fd)](),this[_0x56972e(0x22b)][_0x56972e(0x1fd)](),this[_0x56972e(0x1b1)][_0x56972e(0x1fd)](),this[_0x56972e(0x242)][_0x56972e(0x226)]();for(const _0x3f15a0 of this[_0x56972e(0x1ec)][_0x56972e(0x152)][_0x56972e(0x20d)][_0x56972e(0x14c)]())_0x3f15a0[_0x56972e(0x237)][_0x56972e(0x19d)]();this[_0x56972e(0x1ec)][_0x56972e(0x152)][_0x56972e(0x20d)][_0x56972e(0x1fd)](),this[_0x56972e(0x1f4)][_0x56972e(0x226)](),void this[_0x56972e(0x16e)][_0x56972e(0x1e2)](),this[_0x56972e(0x198)][_0x56972e(0x226)](),this[_0x56972e(0x1e7)][_0x56972e(0x25d)](),this[_0x56972e(0x148)][_0x56972e(0x1fd)](),this[_0x56972e(0x20b)][_0x56972e(0x1fd)](),void this[_0x56972e(0x1f6)][_0x56972e(0x18a)](),void this[_0x56972e(0x19b)][_0x56972e(0x1e2)](),this[_0x56972e(0x208)][_0x56972e(0x18a)](),this[_0x56972e(0x22a)][_0x56972e(0x18a)](),this[_0x56972e(0x21b)]?.[_0x56972e(0x167)](),this[_0x56972e(0x21b)]=undefined;}[_0x47894e(0x151)]=_0x6bf54e=>this[_0x47894e(0x16d)][_0x47894e(0x237)](_0x6bf54e);[_0x47894e(0x1ca)]=(_0x53c46f,_0xdca6dc,_0x312f69,_0x491723)=>this[_0x47894e(0x179)][_0x47894e(0x1d9)](_0x53c46f,_0xdca6dc,_0x312f69,_0x491723);[_0x47894e(0x1eb)]=(_0x32fa27,_0x507d63)=>{const _0x17b585=_0x47894e;this[_0x17b585(0x1b1)][_0x17b585(0x220)](_0x32fa27);const _0x4d69da=isPlainRecord(_0x507d63)&&typeof _0x507d63[_0x17b585(0x227)]===_0x17b585(0x259)?_0x507d63[_0x17b585(0x227)]:undefined,_0x33692d=isPlainRecord(_0x507d63)&&typeof _0x507d63[_0x17b585(0x195)]===_0x17b585(0x259)?_0x507d63[_0x17b585(0x195)]:undefined,_0x3b152c=this[_0x17b585(0x1a5)][_0x17b585(0x200)](_0x32fa27),_0x277f9a=_0x4d69da===undefined||_0x3b152c===undefined?undefined:conversationSegmentIdentityForItem(_0x3b152c,_0x4d69da,_0x33692d);this[_0x17b585(0x179)][_0x17b585(0x1d9)](_0x32fa27,_0x17b585(0x1fe),_0x277f9a===undefined||!isPlainRecord(_0x507d63)?_0x507d63:{..._0x507d63,'segmentId':_0x277f9a['id'],'segmentIndex':_0x277f9a[_0x17b585(0x199)]});};[_0x47894e(0x141)]=_0x3a0d71=>{const _0x18bef7=_0x47894e,_0x32a27d=isPlainRecord(_0x3a0d71)&&Array[_0x18bef7(0x24f)](_0x3a0d71[_0x18bef7(0x21c)])?conversationSegments(_0x3a0d71):[];this[_0x18bef7(0x21f)](_0x18bef7(0x23d),{'turn':_0x3a0d71,'segments':_0x32a27d});};[_0x47894e(0x21f)]=(_0x293720,_0x493890)=>this[_0x47894e(0x179)][_0x47894e(0x25c)](_0x293720,_0x493890);[_0x47894e(0x216)]=_0x5c85ab=>this[_0x47894e(0x252)][_0x47894e(0x214)](_0x5c85ab);[_0x47894e(0x222)]=_0x9d5655=>this[_0x47894e(0x15e)][_0x47894e(0x14b)](_0x9d5655);[_0x47894e(0x1e4)]=()=>undefined;[_0x47894e(0x202)]=()=>this[_0x47894e(0x194)][_0x47894e(0x202)]();[_0x47894e(0x13a)]=()=>this[_0x47894e(0x194)][_0x47894e(0x13a)]();async[_0x47894e(0x20a)](_0x4ac624,_0x455572){const _0x12635f=_0x47894e;if(this[_0x12635f(0x21b)]===undefined)throw new Error(_0x12635f(0x163));if(this[_0x12635f(0x1b6)][_0x12635f(0x17a)](_0x4ac624))throw new Error(_0x12635f(0x1e8));return nodeLog(_0x12635f(0x1aa),{'nodeId':this[_0x12635f(0x1ae)]?.[_0x12635f(0x23f)],'operation':_0x4ac624}),this[_0x12635f(0x239)][_0x12635f(0x186)](_0x4ac624,_0x455572);}[_0x47894e(0x1c0)](_0x34cb96,_0x11a0c3,_0x1430c6){const _0x72d1e0=_0x47894e;this[_0x72d1e0(0x22a)][_0x72d1e0(0x1c0)](_0x34cb96,_0x11a0c3,_0x1430c6);}[_0x47894e(0x1cc)](_0x41d290){const _0x62f358=_0x47894e;this[_0x62f358(0x22a)][_0x62f358(0x1cc)](_0x41d290);}}
2
+ const _0x3344c0=_0x22bb;(function(_0x4fdbf7,_0xec4e9c){const _0x53083a=_0x22bb,_0x1f3092=_0x4fdbf7();while(!![]){try{const _0x864518=parseInt(_0x53083a(0x264))/(-0x16e9+-0x25*0xf9+0x3ae7)+-parseInt(_0x53083a(0x1ed))/(-0x1e2*-0x3+-0x1489*0x1+0x29*0x5d)+-parseInt(_0x53083a(0x1b2))/(-0x24a8+0xf*0x7d+0x1d58)*(parseInt(_0x53083a(0x2bf))/(0x9*0xc1+-0x2b6+0x1*-0x40f))+parseInt(_0x53083a(0x1eb))/(0x418+0x4b9+-0x8cc*0x1)*(parseInt(_0x53083a(0x297))/(0xb0c+-0xe01+0x2fb*0x1))+parseInt(_0x53083a(0x1fa))/(-0xc5f*0x1+-0x802+-0x1*-0x1468)+parseInt(_0x53083a(0x256))/(-0x2366+-0x1335+0x1*0x36a3)*(parseInt(_0x53083a(0x2c0))/(-0xcdf+0x2*0x12c4+0x4*-0x628))+-parseInt(_0x53083a(0x19e))/(0x16d*0x11+0x723+0xe*-0x23d)*(parseInt(_0x53083a(0x27b))/(0x3*0x613+-0x3*0xccb+0x1433));if(_0x864518===_0xec4e9c)break;else _0x1f3092['push'](_0x1f3092['shift']());}catch(_0x2ad866){_0x1f3092['push'](_0x1f3092['shift']());}}}(_0x5d98,-0x4*-0x7f3b+-0x42ca9+0xb2307));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{loadNodeConfig,nodeDatabasePath}from'./config.js';import{NodeMetrics,nodeLog}from'./operational.js';import{assertLocalSqlitePath}from'./storage.js';import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{RunnerUsageReader}from'./runner-usage.js';function _0x22bb(_0x22faaf,_0xbe5ee8){_0x22faaf=_0x22faaf-(-0xb*-0x296+0x1fe5+-0x3ac2);const _0x13afb5=_0x5d98();let _0x2bb440=_0x13afb5[_0x22faaf];if(_0x22bb['TUJHxZ']===undefined){var _0x59c842=function(_0xb61f86){const _0x3b0be1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bb979='',_0x23511a='';for(let _0x57deb6=-0x195d+0x14bf+0x3*0x18a,_0x16aa75,_0xc9121f,_0x32055b=-0x5*-0x27+0xf54+-0x3*0x55d;_0xc9121f=_0xb61f86['charAt'](_0x32055b++);~_0xc9121f&&(_0x16aa75=_0x57deb6%(0x22*0xd9+-0x1*-0x1385+-0x3053)?_0x16aa75*(-0x1c1+0xf1*-0x15+0x15c6)+_0xc9121f:_0xc9121f,_0x57deb6++%(0x1*-0xc68+0x1*0x26d+-0x355*-0x3))?_0x2bb979+=String['fromCharCode'](-0x54b+-0x758+0x2*0x6d1&_0x16aa75>>(-(0xb22+-0x142*-0x8+0x2a6*-0x8)*_0x57deb6&-0x10b4+0x1*-0x183f+-0x269*-0x11)):-0x2*0x7a8+0x1305+-0x1*0x3b5){_0xc9121f=_0x3b0be1['indexOf'](_0xc9121f);}for(let _0x1d48d4=0xe9b+0x2fa+0x1195*-0x1,_0x455e83=_0x2bb979['length'];_0x1d48d4<_0x455e83;_0x1d48d4++){_0x23511a+='%'+('00'+_0x2bb979['charCodeAt'](_0x1d48d4)['toString'](0x749+-0x1094+0x95b))['slice'](-(-0x1*0x1a05+0x379*-0xa+0x3cc1));}return decodeURIComponent(_0x23511a);};_0x22bb['ORxRKm']=_0x59c842,_0x22bb['BvhYGk']={},_0x22bb['TUJHxZ']=!![];}const _0x45a751=_0x13afb5[0x1fb5+0x24e5+0x224d*-0x2];_0x22bb['azXAYJ']!==_0x45a751&&(_0x22bb['BvhYGk']={},_0x22bb['azXAYJ']=_0x45a751);const _0x151d18=_0x22bb['BvhYGk'][_0x22faaf];return _0x151d18===undefined?(_0x2bb440=_0x22bb['ORxRKm'](_0x2bb440),_0x22bb['BvhYGk'][_0x22faaf]=_0x2bb440):_0x2bb440=_0x151d18,_0x2bb440;}import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';function _0x5d98(){const _0x467ca7=['ChjLCgfYzu1LC3nHz2vjBNb1Da','C2nOzwr1Bgu','y29UDMvYC2f0Aw9U','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','C3vWzxj2AxnLzfvWz3jHzgu','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','y29UDhjVBenOyw5UzwW','zMLUza','Bwf4','DgvYBwLUywXdAgfUBMvS','C3rVChbLza','y2fWywjPBgL0AwvZ','CMvHza','BM9KzuLK','C25HChnOB3rtzxf1zw5Jzq','CMvJB25Uzwn0','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','mtiXwLDxthb0','DhvYBG','CNvUBMvYu2vYDMLJzq','C2vZC2LVBNm','CNvU','CNvUrxzLBNrcCMLKz2u','ChjVAMvJDeLUAxrPywW','CMvNAxn0zxi','y2fUy2vSq2XHDwrLuNvU','q0foq0vmteLorW','zgLZCgf0y2G','Bg9HzfjLC3vSDa','CMfUzg9Tvvvjra','z2v0qwDLBNrtzxnZAw9U','DgLTzxi','y2XHDwrLq2XPzw50','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','y2XHDwrLuNvUq29UDhjVBgXLCG','tK9erv9dt05orunusu9ox1jfueXbq0ve','zxHPDa','zgf0ywjHC2u','y2fWywjPBgL0EurLDgvJDg9Y','z2v0','C2vZC2LVBLn0yxrL','Aw5ZCgvJDa','CMvXDwvZDenSyxvKzufWChjVDMfS','zMX1C2Hqzw5KAw5Nvgv4Da','DxbNCMfKzs1Yzxn1BhqUANnVBG','mtm2nZi1mhPqtNnLBG','C3rHDgu','DgvYBwLUywXtzxj2AwnL','CNvUv29YA2jLBMnOu2vYDMLJzq','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','Dw5YzwDPC3rLCMvK','CMvZCg9UzfvZzxjjBNb1Da','zw1PDfDVCMTIzw5JAev2zw50','D2f0y2GUzxzLBNq','zMLSDgvY','CNvUu3rHDgu','DxbNCMfKzunVB3jKAw5HDg9Y','zgvSzxrL','CMvQzwn0','B3bLBKnVzgvdBgLLBNq','BgLZDfj1BNngB3jtzxnZAw9U','tK9erv9dt05gsuDFvu5bvKfjtefcteu','y29KzxHsDw5dB250CM9SBgvY','tK9erv9vueDsqurfx1bftKrjtKC','y29UBMvJDgLVBKXPzMvJEwnSzq','y29UzMLN','C3rHDhvZ','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','CgvYC2LZDezPBgvZ','surmrq','B25oB3rPzMLJyxrPB24','ywnJzxnZ','q0foq0vm','y29TCgXLDgvdyw5JzwXSzwrsDw4','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','z2v0uNvU','CNvUCW','BM9Kzs5JB25Uzwn0Aw5N','q0foq0vmteve','z2v0v29YA3nWywnL','y29TBwfUzfn0yxrLCW','lw9Wzw5JB2rLlwLTywDLCW','y2XLyw51Ca','zgvJAwrL','nhPqtMrzta','odCZnZe5muvbwwHusa','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','BwLU','y2XLyxjbBgW','rKflrv9svu5orvjFreLtq09otKvdva','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','y2fUy2vSq29KzxHuDxjU','C3rVCfDHDgnO','y2XLyxi','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','ywrK','ywrVChrsDw4','zgvJAwrLq29KzxHbChbYB3zHBa','BMf0AxzLswrZ','BwfUywDLzezVCK5HDgL2zq','BM9Kzs5TzxrYAwnZ','C2v0','DhvYBKLK','C2H1DgrVD24','C25HChnOB3q','BMf0AxzLsw1Hz2vsB290CW','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','mJe5nJmXmgzksKHtrG','yxbWCM92ywXZ','zMfRzvj1BM5LCG','BgLZDfDVCMTZCgfJzxm','CNvUBMvYvxnHz2vszwfKzxi','C3rVCa','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','C2vZC2LVBI5SAxn0','su5urvjsvvburuq','C2vUzevUDMvSB3bL','C2vUza','zwzMB3j0','CMvJzw50lxj1BNm','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','D29YA3nWywnLv2f0y2Htzxj2AwnL','CMvJB25JAwXL','y29UDMvYC2f0Aw9UlML0zw0','Bwf0zxjPywXPEMvdB2rLEa','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','ChvIBgLZAefWChjVDMfS','ndaYmJGYAurlDMDf','uLvox05pvf9gt1vora','BM9Kzs5VCgvYyxrPB24','y29UzMLNugf0Aa','zgLZy292zxi','Dg9WAwnby3rPDMu','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','B3bLCMf0Aw9UuM91DgvY','CMvZDw1LzenVBMzPz3vYyxrPB24','y2XLyxjxyxrJAgvZ','A2LUza','AgfZ','CMvXDwLYzq','CMvTB3zL','Aw52ywXPzgf0zunOyw5Nzxm','DxnLCKLUChv0CW','y3jLyxrLqxbWCM92ywW','AxrLBuLK','C3rYAw5N','BgLZDa','DgHYzwfKswq','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','CMvJB25Uzwn0u2nOzwr1BgvK','CgXHDgzVCM0','uKvkrunuruq','yMXVy2TZ','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','ywn0AxzL','C2L6zq','zxzLBNq','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','yMLUzenVBw1HBMrdB250CM9S','Aw52ywXPzgf0zq','zxzLBNruExbL','ChvIBgLZAa','BM9KzvjLCxvLC3rZ','zw1PDfjLywX0Aw1L','zgvJAwrLqxbWCM92ywW','y2fUy2vS','yxzHAwXHyMXL','yMLUzenVBNrYB2W','y2fWywjPBgL0AwvZuhjVDMLKzwq','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','yM9VDhn0CMfWswrZ','zw1PDff1zxvL','Cgf1C2vtzxnZAw9UuxvLDwu','CMvNAxn0zxjbBgW','zgLZCg9Zzq','DMfSDwvZ','CgvYC2LZDfrLCM1PBMfS','zxHWAxjL','D29YA3nWywnLu3rHDgu','D29YA3nWywnLswq','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','zxHLy3v0zu5VzgvpCgvYyxrPB24','mJvpA1DTBem','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','otKXmJK4y1Duvhzm','D2LUmZi','CMvWBgfJzq','CNvUBMvY','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','yxbWzw5K','BMv4Da','ChjLC2vUDa','CNvUDgLTzs1UB2rL','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','AgfUzgXLtwvZC2fNzq','D29YA3nWywnLq29VCMrPBMf0B3i','nJCZodG0ng9iB2DoAG','DxbNCMfKzq','zw1PDfj1BG','C3rYAw5NAwz5','BgLUDxG','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','zgvJAxnPB24','Aw50zxjYDxb0','y2XVC2u','C2v0q2HHBM5LBfrVA2vU','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','CgvUzgLUzW','CNvUqxr0ywnOBwvUDfnLCNzPy2u','y29UBMvJDgvK','CNvUswq','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','zxHLy3v0zq','zgvJAwrLq2XHDwrLqxbWCM92ywW','B25tDw1Tyxj5','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','yxbWCM92ywXjza','zxHLy3v0Aw9U','ChvIBgLZAfnUyxbZAg90','y29KzxHdBgLLBNq','CNvUBMvYCW','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','BM9Kzs51CgDYywrLlMnHBMnLBa','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','Aw50zxjYDxb0uMvXDwvZDgvK','y3DK','y2fUy2vSuxvLDwvK','Cgf0Aa','BwfUywDLzfj1BM5LCLnLC3nPB25Z','C3rHCNq','C2vZC2LVBLf1zxj5u2vYDMLJzq','BM9KzuDLBMvYyxrPB24','zgLZy29UBMvJDa','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','CMvTzw1Izxi','tK9erv9tve9queve','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','y29UBMvJDgvKqxr0zw1WDa','y29UBMvJDa','CMvMCMvZAfrVCgLJ','D29YA2jLBMnOrxzLBNrtzxj2AwnL','CMvMCMvZAenHCgfIAwXPDgLLCW','zgLZy292zxjxB3jRC3bHy2u','BM9Kzs51CgDYywrLlNjLCxvLC3q','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','zxH0zxjUywXby3rPDML0Eq','CMvZB2X2zq','y2HHBM5LBfrVA2vU','Aw5KzxG','ywXSB3DLzfjVB3rZ','D2LUzg93CW','CNvUrxzLBNrtzxj2AwnL','Bwv0ywrHDge','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','C2vZC2LVBG','CNvUDgLTzq','ChjVAMvJDgLVBKzVCK5HDgL2zq','CMvXDwvZDa','zgLYzwn0tMf0AxzL','Bwv0CMLJCW','zMfZDa','CMvZB2X2zuzVCK1LC3nHz2u','zw1PDenVBNzLCNnHDgLVBKL0zw0','zMfRzvnJCMLWDa','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','zw1PDenVBNzLCNnHDgLVBLr1CM4','CMvHze5HDgL2zq','CMvJB3jKzwqTC2vZC2LVBG','zMfRztO','CMvJB3jK','ChjVBw90zq','CMvZB2X2zun1CNjLBNq','zw5ZDxjLv2f0y2G','AxrLBxm','zw1PDfj1BKv2zw50','DxbNCMfKzvjLywr5','ChjVzMLSzxm','Bw9KzwW','y29KzxG','zxHWAxjLqxbWCM92ywW','CMvMCMvZAfrPDgXL','AgfUzgXLtM90AwzPy2f0Aw9U','y29UDhjVBe1LC3nHz2vZ','DgvYBwLUywXnyw5Hz2vY','AgfUzgXL','BM93','ofnZCMj2za','B3bLBKnVzgvsDw5dB250CM9SBgvY','zM9Yz2v0','BM90AwzPy2f0Aw9U','D29YA3nWywnLrMLSzvnLCNzPy2u','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','y2fJAgvKu2vZC2LVBNm','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','zxHLy3v0zunVBw1HBMq','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','DhjHBNnPDgLVBMLUzW','C29JA2v0','AxnbCNjHEq','ntu5mZG4tuLdvKjO','BwLNCMf0zvnLC3nPB24','B3bLCMf0Aw9UCW','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','D29YA3nWywnLu2vYDMLJzq'];_0x5d98=function(){return _0x467ca7;};return _0x5d98();}import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';import{WorkspaceChangeService}from'./service/workspace-change-service.js';import{WorkspaceSessionService}from'./service/workspace-session-service.js';import{WorkbenchEventService}from'./service/workbench-event-service.js';import{RunDomainState}from'./service/run-domain-state.js';import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';import{RunnerChannelMessageService}from'./service/runner-channel-message-service.js';import{ManagedRunnerSessionService}from'./service/managed-runner-session-service.js';import{NodeConnectionLifecycleService}from'./service/node-connection-lifecycle-service.js';import{NodeUpgradeCoordinator,nodeUpgradeRequestPath}from'./service/node-upgrade-coordinator.js';const HEARTBEAT_MS=0xa6*0xad+-0x1*-0x26b3+-0x5c49,CAPABILITY_REFRESH_MS=0x113*0x120+0x3f*-0x29d+-0x1*-0x59a3,RETRY_MIN_MS=-0x12ef+-0x1c1+0x5c*0x3f,RETRY_MAX_MS=0x1*-0x4e8e+0x634*-0xc+0x1*0x10e2e,CLAUDE_APPROVAL_TIMEOUT_MS=(-0x1b1a+-0x54b+0x206f)*(0x29*0x4d3+0x6286+-0x3df1*0x1);export function nextReconnectDelay(_0x455e83){const _0xf3c44e=_0x22bb;return Math[_0xf3c44e(0x2c2)](RETRY_MAX_MS,RETRY_MIN_MS*(0x574+0x1d19+-0x228b)**Math[_0xf3c44e(0x2c2)](Math[_0xf3c44e(0x271)](_0x455e83,-0x3b*-0x17+0x41c+0x323*-0x3),-0x2*0x105+0x1*-0x1da9+0x1fc3));}function upgradeMetadata(_0x2367ab,_0x339a95){const _0x957ba8=_0x22bb,_0x2a8818={..._0x2367ab??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x2a8818[_0x957ba8(0x26d)]=!![];else delete _0x2a8818[_0x957ba8(0x26d)];if(_0x339a95[_0x957ba8(0x298)]===_0x957ba8(0x2af))delete _0x2a8818[_0x957ba8(0x1fb)];else _0x2a8818[_0x957ba8(0x1fb)]=_0x339a95;return _0x2a8818;}export class NodeConnector{[_0x3344c0(0x21d)]=crypto[_0x3344c0(0x287)]()[_0x3344c0(0x1ef)](/-/g,'');[_0x3344c0(0x26f)];[_0x3344c0(0x252)];[_0x3344c0(0x1d5)];[_0x3344c0(0x2aa)];set[_0x3344c0(0x262)](_0x4b0b52){const _0x1b7a4d=_0x3344c0;this[_0x1b7a4d(0x26f)][_0x1b7a4d(0x29b)](_0x4b0b52);}[_0x3344c0(0x273)]=![];[_0x3344c0(0x2ab)];[_0x3344c0(0x1db)];[_0x3344c0(0x274)];[_0x3344c0(0x290)];[_0x3344c0(0x1b5)];[_0x3344c0(0x278)];[_0x3344c0(0x25c)];[_0x3344c0(0x227)]=new WorkbenchEventService(envelope=>this[_0x3344c0(0x1a7)](envelope),(category,payload)=>{const _0x36fbd7=_0x3344c0,sessionId=workbenchPayloadSessionId(this[_0x36fbd7(0x236)],category,payload);return sessionId===undefined||!this[_0x36fbd7(0x1f2)][_0x36fbd7(0x1de)][_0x36fbd7(0x1bd)](sessionId);});[_0x3344c0(0x1a0)];[_0x3344c0(0x23e)];[_0x3344c0(0x2a1)]=new RunDomainState();[_0x3344c0(0x280)];[_0x3344c0(0x1f9)];[_0x3344c0(0x292)]=new SessionDomainState();[_0x3344c0(0x1f2)];[_0x3344c0(0x1b8)];[_0x3344c0(0x2c1)];[_0x3344c0(0x2c6)];[_0x3344c0(0x2ad)];[_0x3344c0(0x1d0)];[_0x3344c0(0x21a)];[_0x3344c0(0x2b4)];[_0x3344c0(0x1f7)];[_0x3344c0(0x1f1)];[_0x3344c0(0x1e8)];[_0x3344c0(0x2c5)];[_0x3344c0(0x2b5)];[_0x3344c0(0x206)];[_0x3344c0(0x272)];[_0x3344c0(0x211)];[_0x3344c0(0x2a8)];[_0x3344c0(0x28a)];[_0x3344c0(0x2a5)];[_0x3344c0(0x257)];[_0x3344c0(0x28c)];[_0x3344c0(0x212)];[_0x3344c0(0x26c)];[_0x3344c0(0x29a)];[_0x3344c0(0x21c)];[_0x3344c0(0x1ec)];[_0x3344c0(0x1b9)]=new NodeOperationRouter();[_0x3344c0(0x27d)];[_0x3344c0(0x1cc)];[_0x3344c0(0x299)];[_0x3344c0(0x268)];[_0x3344c0(0x2bb)]=new CommandStateStore();[_0x3344c0(0x1a2)];[_0x3344c0(0x253)];[_0x3344c0(0x2a2)];[_0x3344c0(0x1e6)]=new WorkspaceDomainState();[_0x3344c0(0x1ac)]=new WorkspaceWatchService(this[_0x3344c0(0x1e6)],workspaceId=>this[_0x3344c0(0x27a)][_0x3344c0(0x248)](workspaceId),workspaceId=>this[_0x3344c0(0x27a)][_0x3344c0(0x2c8)](workspaceId));[_0x3344c0(0x27a)]=new WorkspaceSessionService(this[_0x3344c0(0x1e6)],{'discover':workspaceId=>this[_0x3344c0(0x1dd)](workspaceId),'listPage':workspaceId=>this[_0x3344c0(0x1ea)](_0x3344c0(0x1a5),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x3344c0(0x1ac)][_0x3344c0(0x1b7)](workspaceId,_0x3344c0(0x27e)),'emitRevision':workspaceId=>void this[_0x3344c0(0x25e)]?.[_0x3344c0(0x226)](workspaceId,_0x3344c0(0x27e)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x3344c0(0x267),{'nodeId':this[_0x3344c0(0x2ab)]?.[_0x3344c0(0x276)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x3344c0(0x25a)]=new WorkspaceFileService(this[_0x3344c0(0x1e6)],()=>this[_0x3344c0(0x2ab)]?.[_0x3344c0(0x230)]??[],workspaceId=>this[_0x3344c0(0x1f9)][_0x3344c0(0x1d2)](workspaceId));[_0x3344c0(0x1b0)]=new WorkspaceUploadService(this[_0x3344c0(0x1e6)],workspaceId=>this[_0x3344c0(0x1f9)][_0x3344c0(0x1d2)](workspaceId));[_0x3344c0(0x204)]=new WorkspaceChangeService(this[_0x3344c0(0x1e6)]);[_0x3344c0(0x25e)];[_0x3344c0(0x28f)];[_0x3344c0(0x19d)]=new RecentRunProjectionService(message=>this[_0x3344c0(0x1a8)](_0x3344c0(0x1aa),message));[_0x3344c0(0x236)]=new NodeRuntimeState(()=>this[_0x3344c0(0x2ab)]?.[_0x3344c0(0x276)]??_0x3344c0(0x1f6),workspaceId=>this[_0x3344c0(0x28f)]?.[_0x3344c0(0x2ba)](workspaceId),Date[_0x3344c0(0x255)],(run,session,userMessage)=>this[_0x3344c0(0x19d)][_0x3344c0(0x245)](run,session,userMessage));[_0x3344c0(0x23a)]=new NodeMetrics();[_0x3344c0(0x232)]=new RunEventService({'runtime':this[_0x3344c0(0x236)],'metrics':this[_0x3344c0(0x23a)],'state':this[_0x3344c0(0x2a1)],'isBootstrapSession':sessionId=>this[_0x3344c0(0x1f2)][_0x3344c0(0x1de)][_0x3344c0(0x1bd)](sessionId),'presentSession':session=>this[_0x3344c0(0x2b4)][_0x3344c0(0x1f5)](session),'rejectBootstrap':(sessionId,code)=>this[_0x3344c0(0x1f2)][_0x3344c0(0x2a4)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x326b22=_0x3344c0;if(category===_0x326b22(0x26b)&&isPlainRecord(payload)&&_0x326b22(0x27c)in payload)this[_0x326b22(0x241)](payload[_0x326b22(0x27c)]);else this[_0x326b22(0x29e)](category,payload);},'cleanupAttachments':runId=>this[_0x3344c0(0x206)][_0x3344c0(0x2bd)](runId),'expireImages':runId=>this[_0x3344c0(0x206)][_0x3344c0(0x1e5)](runId),'scheduleContextRefresh':sessionId=>this[_0x3344c0(0x26c)][_0x3344c0(0x26a)](sessionId),'pauseQueue':sessionId=>this[_0x3344c0(0x1ec)][_0x3344c0(0x1e0)](sessionId),'dispatchQueue':async sessionId=>{const _0x284977=_0x3344c0;if(!this[_0x284977(0x2a2)][_0x284977(0x205)]())await this[_0x284977(0x1ec)][_0x284977(0x285)](sessionId);},'removeQueuedStart':runId=>this[_0x3344c0(0x1ec)][_0x3344c0(0x1bf)](runId)});[_0x3344c0(0x279)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x3344c0(0x236)][_0x3344c0(0x288)](sessionId)??this[_0x3344c0(0x1b8)][_0x3344c0(0x247)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x3344c0(0x236)],session),'suspended':sessionId=>this[_0x3344c0(0x1f1)][_0x3344c0(0x261)](sessionId),'refreshActivity':session=>this[_0x3344c0(0x2c1)][_0x3344c0(0x209)](session),'present':session=>this[_0x3344c0(0x2b4)][_0x3344c0(0x1f5)](session),'readPage':(session,limit)=>this[_0x3344c0(0x2c1)][_0x3344c0(0x275)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>({'kind':_0x3344c0(0x1c7),'sequence':this[_0x3344c0(0x227)][_0x3344c0(0x277)](),'session':this[_0x3344c0(0x2b4)][_0x3344c0(0x1f5)](session),'runs':this[_0x3344c0(0x236)][_0x3344c0(0x2a6)](session['id']),'conversation':this[_0x3344c0(0x2c6)][_0x3344c0(0x281)](session,page,limit)}),'emitSession':session=>this[_0x3344c0(0x29e)](_0x3344c0(0x235),{'session':session}),'emitPage':(session,page)=>this[_0x3344c0(0x29e)](_0x3344c0(0x26b),{'sessionId':session['id'],'snapshot':this[_0x3344c0(0x2c6)][_0x3344c0(0x281)](session,page,0x2*-0x9a4+0x267d+-0x132b)}),'nodeId':()=>this[_0x3344c0(0x2ab)]?.[_0x3344c0(0x276)]??_0x3344c0(0x1f6),'nodeGeneration':()=>this[_0x3344c0(0x21d)],'emitWatchEvent':payload=>this[_0x3344c0(0x1a8)](_0x3344c0(0x29f),payload),'log':nodeLog});constructor(_0x5f17b8={}){const _0x5037f7=_0x3344c0;this[_0x5037f7(0x2ab)]=_0x5f17b8[_0x5037f7(0x2ab)],this[_0x5037f7(0x1b5)]=_0x5f17b8[_0x5037f7(0x1b5)],this[_0x5037f7(0x25c)]=_0x5f17b8[_0x5037f7(0x25c)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x5037f7(0x1db)]=_0x5f17b8[_0x5037f7(0x274)]!==undefined,this[_0x5037f7(0x274)]=_0x5f17b8[_0x5037f7(0x274)]??unavailableCapabilities(),this[_0x5037f7(0x2a2)]=new NodeUpgradeCoordinator(()=>{const _0x3fb9e4=_0x5037f7;if(this[_0x3fb9e4(0x2ab)]===undefined)throw new Error(_0x3fb9e4(0x2a7));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x3fb9e4(0x2ab)],this[_0x3fb9e4(0x1b5)]));},()=>this[_0x5037f7(0x2a1)][_0x5037f7(0x1cd)][_0x5037f7(0x1ce)],_0x57e61c=>{const _0x563348=_0x5037f7;this[_0x563348(0x274)]={...this[_0x563348(0x274)],'metadata':upgradeMetadata(this[_0x563348(0x274)][_0x563348(0x233)],_0x57e61c)},this[_0x563348(0x26f)]?.[_0x563348(0x1a8)](_0x563348(0x274),this[_0x563348(0x274)]);},_0x5f17b8[_0x5037f7(0x24b)]??(()=>{const _0x51b948=_0x5037f7;this[_0x51b948(0x1a3)](),setImmediate(()=>process[_0x51b948(0x28e)](-0x762+-0x255d+-0x2*-0x1685));})),this[_0x5037f7(0x274)]={...this[_0x5037f7(0x274)],'metadata':upgradeMetadata(this[_0x5037f7(0x274)][_0x5037f7(0x233)],this[_0x5037f7(0x2a2)][_0x5037f7(0x19b)]())};const _0x2bf939=_0x5f17b8[_0x5037f7(0x290)]??detectCapabilitiesAsync;this[_0x5037f7(0x290)]=async()=>{const _0x41273a=_0x5037f7,_0x85fc4a=await _0x2bf939();return{..._0x85fc4a,'metadata':upgradeMetadata(_0x85fc4a[_0x41273a(0x233)],this[_0x41273a(0x2a2)][_0x41273a(0x19b)]())};},this[_0x5037f7(0x278)]=_0x5f17b8[_0x5037f7(0x278)]??!![],this[_0x5037f7(0x1a0)]=_0x5f17b8[_0x5037f7(0x1a0)]===undefined?undefined:new FakeTestRunner(_0x5f17b8[_0x5037f7(0x1a0)]),this[_0x5037f7(0x23e)]=_0x5f17b8[_0x5037f7(0x23e)],this[_0x5037f7(0x206)]=new RunAttachmentService(_0x23aa89=>this[_0x5037f7(0x212)][_0x5037f7(0x1be)](_0x23aa89[_0x5037f7(0x1f0)])[_0x5037f7(0x19c)](_0x23aa89)),this[_0x5037f7(0x211)]=new CodexRunner(_0x5f17b8[_0x5037f7(0x211)],_0x5f17b8[_0x5037f7(0x240)]),this[_0x5037f7(0x2a8)]=new CodexManagedRunController(this[_0x5037f7(0x211)],{'available':()=>this[_0x5037f7(0x274)][_0x5037f7(0x24e)][_0x5037f7(0x1d9)],'intercepted':()=>this[_0x5037f7(0x1a0)]!==undefined,'active':this[_0x5037f7(0x2a1)][_0x5037f7(0x1cd)],'addActive':_0x4eaebd=>this[_0x5037f7(0x2a1)][_0x5037f7(0x1cd)][_0x5037f7(0x2cb)](_0x4eaebd),'removeActive':_0x50cd8a=>this[_0x5037f7(0x2a1)][_0x5037f7(0x1cd)][_0x5037f7(0x2a3)](_0x50cd8a),'adopt':_0x1093a2=>this[_0x5037f7(0x236)][_0x5037f7(0x2cc)](_0x1093a2),'session':_0x467a6b=>this[_0x5037f7(0x236)][_0x5037f7(0x288)](_0x467a6b),'runStatus':_0x57cd8a=>this[_0x5037f7(0x236)][_0x5037f7(0x2b6)](_0x57cd8a)?.[_0x5037f7(0x2ac)],'run':_0x56549f=>this[_0x5037f7(0x236)][_0x5037f7(0x2b6)](_0x56549f),'interrupted':_0x5e765f=>this[_0x5037f7(0x2a1)][_0x5037f7(0x216)][_0x5037f7(0x1bd)](_0x5e765f),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x511bc3,_0x45c985)=>this[_0x5037f7(0x206)][_0x5037f7(0x1af)](_0x511bc3,_0x45c985),'completeCancelled':_0x1f35d8=>this[_0x5037f7(0x2ad)][_0x5037f7(0x2b3)](_0x1f35d8),'promoteSession':(_0x2c7042,_0x32d6d4)=>this[_0x5037f7(0x1f2)][_0x5037f7(0x246)](_0x2c7042,_0x32d6d4),'send':(_0x195c12,_0x27dc49)=>this[_0x5037f7(0x1a8)](_0x195c12,_0x27dc49),'emit':(_0x3858bd,_0x2c8607,_0x5ef3c4,_0x260c78)=>this[_0x5037f7(0x280)][_0x5037f7(0x1fc)](_0x3858bd,_0x2c8607,_0x5ef3c4,_0x260c78),'cancel':(_0x6eb21f,_0x549706,_0x40352d,_0xd53780,_0x573951)=>this[_0x5037f7(0x2ad)][_0x5037f7(0x2c7)](_0x6eb21f,_0x549706,_0x40352d,_0xd53780,_0x573951),'createApproval':_0x40ffd6=>this[_0x5037f7(0x236)][_0x5037f7(0x1c2)](_0x40ffd6),'publishApproval':_0x14b315=>this[_0x5037f7(0x280)][_0x5037f7(0x1b1)](_0x14b315),'emitItem':(_0x5b3ab8,_0x33c936)=>this[_0x5037f7(0x23d)](_0x5b3ab8,_0x33c936),'appendImages':(_0x50cf76,_0x4999d2)=>this[_0x5037f7(0x206)][_0x5037f7(0x1f3)](_0x50cf76,_0x4999d2[_0x5037f7(0x2a0)](isRunnerImageAttachment)),'syncTitle':(_0x193e59,_0x4c96af,_0x5c4fdc)=>this[_0x5037f7(0x21a)][_0x5037f7(0x250)](_0x193e59,_0x4c96af,_0x5c4fdc),'commandState':(_0x16ec9a,_0x56c495)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x291)](_0x16ec9a,_0x56c495),'setCommandState':(_0x1b5e94,_0x4e363b)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x198)](_0x1b5e94,_0x4e363b),'clearCommandState':(_0x44dc53,_0x2055f3)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x2c9)](_0x44dc53,_0x2055f3),'commandStates':_0x3d1a71=>this[_0x5037f7(0x2bb)][_0x5037f7(0x1c5)](_0x3d1a71),'hasActiveSessionLease':_0x34fe1a=>this[_0x5037f7(0x236)][_0x5037f7(0x215)](_0x34fe1a),'fast':_0x141690=>this[_0x5037f7(0x1ea)](_0x5037f7(0x2ca),{'runner':_0x5037f7(0x24e),'commandId':_0x5037f7(0x23b),'input':_0x141690})}),this[_0x5037f7(0x211)][_0x5037f7(0x2b0)](_0x3ccfde=>this[_0x5037f7(0x2a8)][_0x5037f7(0x251)](_0x3ccfde)),this[_0x5037f7(0x28a)]=new ClaudeCodeRunner(_0x5f17b8[_0x5037f7(0x28a)]),this[_0x5037f7(0x2a5)]=new OpenCodeRunner(_0x5f17b8[_0x5037f7(0x2a5)]),this[_0x5037f7(0x257)]=new OpenCodeManagedRunController(this[_0x5037f7(0x2a5)],{'intercepted':()=>this[_0x5037f7(0x1a0)]!==undefined,'active':this[_0x5037f7(0x2a1)][_0x5037f7(0x1cd)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x6d93a3,_0x384a1b,_0xd88d09)=>this[_0x5037f7(0x206)][_0x5037f7(0x2ae)](_0x6d93a3,_0x384a1b+_0x5037f7(0x2bc),_0xd88d09),'emit':(_0x575895,_0x148517,_0x547cfc,_0x4766d2)=>this[_0x5037f7(0x280)][_0x5037f7(0x1fc)](_0x575895,_0x148517,_0x547cfc,_0x4766d2),'emitItem':(_0x184237,_0x222d21)=>this[_0x5037f7(0x23d)](_0x184237,_0x222d21),'adopt':_0x3b89fb=>this[_0x5037f7(0x236)][_0x5037f7(0x2cc)](_0x3b89fb),'run':_0x2c802a=>{const _0x5d6ec8=_0x5037f7,_0x27a39e=this[_0x5d6ec8(0x236)][_0x5d6ec8(0x2b6)](_0x2c802a);if(_0x27a39e===undefined)throw new Error(_0x5d6ec8(0x1b3));return _0x27a39e;},'hasActiveSessionLease':_0x1add09=>this[_0x5037f7(0x236)][_0x5037f7(0x215)](_0x1add09),'promote':(_0x497c34,_0x212ea2)=>this[_0x5037f7(0x1f2)][_0x5037f7(0x246)](_0x497c34,_0x212ea2),'rememberNative':(_0x4d8612,_0x11be83)=>this[_0x5037f7(0x21a)][_0x5037f7(0x221)](_0x4d8612,_0x11be83),'send':(_0x466395,_0x160386)=>this[_0x5037f7(0x1a8)](_0x466395,_0x160386),'createApproval':_0x37010d=>this[_0x5037f7(0x236)][_0x5037f7(0x1c2)](_0x37010d),'expireApproval':_0x252c19=>{const _0x2b0319=_0x5037f7;this[_0x2b0319(0x236)][_0x2b0319(0x24f)](_0x252c19);},'publishApproval':_0x280e9b=>this[_0x5037f7(0x280)][_0x5037f7(0x1b1)](_0x280e9b),'commandState':(_0x26b969,_0x3f3001)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x291)](_0x26b969,_0x3f3001),'setCommandState':(_0xadc16a,_0x5a13bd)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x198)](_0xadc16a,_0x5a13bd),'clearCommandState':(_0x41155c,_0x3771b4)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x2c9)](_0x41155c,_0x3771b4),'commandStates':_0x3580bd=>this[_0x5037f7(0x2bb)][_0x5037f7(0x1c5)](_0x3580bd)},this[_0x5037f7(0x25c)]),this[_0x5037f7(0x28c)]=new ClaudeManagedRunController(this[_0x5037f7(0x28a)],{'intercepted':()=>this[_0x5037f7(0x1a0)]!==undefined,'active':this[_0x5037f7(0x2a1)][_0x5037f7(0x1cd)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x47e0be,_0x5b46c9,_0x2518d2,_0x493951)=>this[_0x5037f7(0x280)][_0x5037f7(0x1fc)](_0x47e0be,_0x5b46c9,_0x2518d2,_0x493951),'adopt':_0x39e065=>this[_0x5037f7(0x236)][_0x5037f7(0x2cc)](_0x39e065),'run':_0x581531=>this[_0x5037f7(0x236)][_0x5037f7(0x2b6)](_0x581531),'hasActiveSessionLease':_0x235993=>this[_0x5037f7(0x236)][_0x5037f7(0x215)](_0x235993),'session':_0x427e88=>this[_0x5037f7(0x236)][_0x5037f7(0x288)](_0x427e88),'completeCancelled':_0xaecc97=>this[_0x5037f7(0x2ad)][_0x5037f7(0x2b3)](_0xaecc97),'requestUserInput':(_0x378c21,_0xb85421,_0x4ef6e3)=>this[_0x5037f7(0x2ad)][_0x5037f7(0x22b)](_0x378c21,_0xb85421,_0x4ef6e3),'requestApproval':(_0x47b17e,_0x54e58d,_0x33a7af)=>this[_0x5037f7(0x2ad)][_0x5037f7(0x294)](_0x47b17e,_0x54e58d,_0x33a7af),'rememberNative':(_0x2a4421,_0x3c49c3)=>this[_0x5037f7(0x21a)][_0x5037f7(0x221)](_0x2a4421,_0x3c49c3),'promote':(_0x57244f,_0x41a7cf)=>this[_0x5037f7(0x1f2)][_0x5037f7(0x246)](_0x57244f,_0x41a7cf),'send':(_0x44cfdb,_0x4ffc0e)=>this[_0x5037f7(0x1a8)](_0x44cfdb,_0x4ffc0e),'emitItem':(_0xdc1b90,_0x4d589c)=>this[_0x5037f7(0x23d)](_0xdc1b90,_0x4d589c),'syncTitle':(_0xd72983,_0x155f6e,_0x4e92fd)=>this[_0x5037f7(0x21a)][_0x5037f7(0x250)](_0xd72983,_0x155f6e,_0x4e92fd),'setChannelToken':(_0x558f13,_0x1cab55)=>this[_0x5037f7(0x236)][_0x5037f7(0x203)](_0x558f13,_0x1cab55),'commandState':(_0x2bfe35,_0x987853)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x291)](_0x2bfe35,_0x987853),'setCommandState':(_0x48abf4,_0x2f2ce5)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x198)](_0x48abf4,_0x2f2ce5),'clearCommandState':(_0x568bfb,_0x235cf9)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x2c9)](_0x568bfb,_0x235cf9),'commandStates':_0x2afa6c=>this[_0x5037f7(0x2bb)][_0x5037f7(0x1c5)](_0x2afa6c)}),this[_0x5037f7(0x212)]=new RunnerRegistry([this[_0x5037f7(0x2a5)],this[_0x5037f7(0x211)],this[_0x5037f7(0x28a)],...this[_0x5037f7(0x1a0)]===undefined?[]:[this[_0x5037f7(0x1a0)]]]),this[_0x5037f7(0x21a)]=new ManagedRunnerSessionService(this[_0x5037f7(0x236)],this[_0x5037f7(0x212)],_0x4a5d69=>this[_0x5037f7(0x29e)](_0x5037f7(0x235),{'session':this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0x4a5d69)})),this[_0x5037f7(0x2ad)]=new RunnerInteractionService({'runtime':this[_0x5037f7(0x236)],'state':this[_0x5037f7(0x2a1)],'codex':()=>this[_0x5037f7(0x211)],'claude':()=>this[_0x5037f7(0x28a)],'runners':this[_0x5037f7(0x212)],'emitRun':(_0x595a97,_0x105388,_0x1aba90,_0x1d09d8)=>this[_0x5037f7(0x280)][_0x5037f7(0x1fc)](_0x595a97,_0x105388,_0x1aba90,_0x1d09d8),'emitItem':(_0x295b81,_0x49d66b)=>this[_0x5037f7(0x23d)](_0x295b81,_0x49d66b),'approvalTimeoutMs':this[_0x5037f7(0x25c)],'publishApproval':_0x3c63d6=>this[_0x5037f7(0x280)][_0x5037f7(0x1b1)](_0x3c63d6)}),this[_0x5037f7(0x1d0)]=new RunnerChannelMessageService({'interactions':this[_0x5037f7(0x2ad)],'send':(_0x249ea1,_0x2320ba,_0xbc1f61)=>this[_0x5037f7(0x1a8)](_0x249ea1,_0x2320ba,_0xbc1f61)}),this[_0x5037f7(0x2b4)]=new SessionPresentationService({'database':()=>this[_0x5037f7(0x28f)],'runtime':this[_0x5037f7(0x236)],'commands':this[_0x5037f7(0x2bb)],'runners':this[_0x5037f7(0x212)],'capabilities':()=>this[_0x5037f7(0x274)],'hasManagedActiveRun':_0x3f20c8=>hasManagedActiveRun(this[_0x5037f7(0x236)],_0x3f20c8),'externalActivity':_0x4c06df=>this[_0x5037f7(0x292)][_0x5037f7(0x22c)][_0x5037f7(0x291)](_0x4c06df),'projectionForNative':_0x468c2d=>this[_0x5037f7(0x1b8)][_0x5037f7(0x237)](_0x468c2d)}),this[_0x5037f7(0x1b8)]=new NativeSessionProjectionService({'database':()=>this[_0x5037f7(0x28f)],'nodeId':()=>this[_0x5037f7(0x2ab)]?.[_0x5037f7(0x276)]??_0x5037f7(0x243),'runtime':this[_0x5037f7(0x236)],'runners':this[_0x5037f7(0x212)],'capabilities':()=>this[_0x5037f7(0x274)],'state':this[_0x5037f7(0x292)],'commands':this[_0x5037f7(0x2bb)],'present':_0x4b2fda=>this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0x4b2fda)}),this[_0x5037f7(0x2c1)]=new ConversationHistoryService({'runtime':this[_0x5037f7(0x236)],'runners':this[_0x5037f7(0x212)],'capabilities':()=>this[_0x5037f7(0x274)],'attachments':this[_0x5037f7(0x206)],'snapshotSequence':()=>this[_0x5037f7(0x227)][_0x5037f7(0x277)](),'hasManagedActiveRun':_0x132c27=>hasManagedActiveRun(this[_0x5037f7(0x236)],_0x132c27),'setExternalActivity':(_0x502c2f,_0x120f6c)=>this[_0x5037f7(0x292)][_0x5037f7(0x22c)][_0x5037f7(0x198)](_0x502c2f,_0x120f6c)}),this[_0x5037f7(0x2c6)]=new ConversationSegmentService((_0x1d14fb,_0x14fb12)=>this[_0x5037f7(0x2c1)][_0x5037f7(0x275)](_0x1d14fb,_0x14fb12)),this[_0x5037f7(0x26c)]=new SessionContextService({'runners':this[_0x5037f7(0x212)],'session':_0x47f800=>this[_0x5037f7(0x236)][_0x5037f7(0x288)](_0x47f800),'stopped':()=>this[_0x5037f7(0x273)],'publish':_0x4eac9e=>this[_0x5037f7(0x29e)](_0x5037f7(0x235),_0x4eac9e)}),this[_0x5037f7(0x29a)]=new RunWorkbenchService({'runtime':this[_0x5037f7(0x236)],'readImage':async(_0x10ec54,_0x110cad)=>this[_0x5037f7(0x206)][_0x5037f7(0x275)](_0x10ec54,_0x110cad)??await this[_0x5037f7(0x206)][_0x5037f7(0x242)](_0x10ec54,_0x110cad),'respondUserInput':(_0x25512d,_0x1d4ffa,_0x275977)=>this[_0x5037f7(0x2ad)][_0x5037f7(0x29d)](_0x25512d,_0x1d4ffa,_0x275977),'cancelQueued':_0x1384a5=>this[_0x5037f7(0x1ec)][_0x5037f7(0x218)](_0x1384a5),'pauseQueue':_0x3c91fa=>this[_0x5037f7(0x1ec)][_0x5037f7(0x1e0)](_0x3c91fa),'emitRun':(_0x5e4f02,_0x111b84,_0x5823d2,_0x2b83ba)=>this[_0x5037f7(0x280)][_0x5037f7(0x1fc)](_0x5e4f02,_0x111b84,_0x5823d2,_0x2b83ba),'control':(_0x45cf88,_0x2c1d29)=>this[_0x5037f7(0x252)][_0x5037f7(0x254)](JSON[_0x5037f7(0x1fd)](createEnvelope(_0x45cf88,_0x2c1d29))),'markInterrupted':_0x1890e4=>this[_0x5037f7(0x2a1)][_0x5037f7(0x216)][_0x5037f7(0x2cb)](_0x1890e4)}),this[_0x5037f7(0x21c)]=new SessionQueryService({'runtime':this[_0x5037f7(0x236)],'runners':this[_0x5037f7(0x212)],'resolve':_0xd0314f=>this[_0x5037f7(0x1b8)][_0x5037f7(0x22d)](_0xd0314f),'present':_0x470875=>this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0x470875),'history':(_0x5c1661,_0x3e84be)=>this[_0x5037f7(0x2c1)][_0x5037f7(0x275)](_0x5c1661,_0x3e84be),'segments':(_0x3f4c84,_0x42825d)=>this[_0x5037f7(0x2c6)][_0x5037f7(0x275)](_0x3f4c84,_0x42825d),'context':this[_0x5037f7(0x26c)],'discover':(_0x429988,_0x239046)=>this[_0x5037f7(0x1b8)][_0x5037f7(0x1b6)](_0x429988,_0x239046),'workspaceIdForCwd':_0x4231ac=>this[_0x5037f7(0x28f)]?.[_0x5037f7(0x1a1)]()[_0x5037f7(0x270)](_0x3259c5=>_0x3259c5[_0x5037f7(0x219)]===_0x4231ac)?.['id']}),this[_0x5037f7(0x1ec)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x5037f7(0x236)],'emit':(_0xc704a0,_0x1d32b9)=>this[_0x5037f7(0x280)][_0x5037f7(0x1df)](_0xc704a0,_0x1d32b9),'clearImages':_0x31ec63=>this[_0x5037f7(0x206)][_0x5037f7(0x2c9)](_0x31ec63),'cleanupAttachments':_0xa2c675=>this[_0x5037f7(0x206)][_0x5037f7(0x2bd)](_0xa2c675),'emitRun':(_0x45679c,_0x12603a,_0x4ffa6a,_0x25c214)=>this[_0x5037f7(0x280)][_0x5037f7(0x1fc)](_0x45679c,_0x12603a,_0x4ffa6a,_0x25c214),'emitConversation':_0x59503d=>this[_0x5037f7(0x241)](_0x59503d),'control':(_0x3938c5,_0x11d845)=>this[_0x5037f7(0x252)][_0x5037f7(0x254)](JSON[_0x5037f7(0x1fd)](createEnvelope(_0x3938c5,_0x11d845))),'stopped':()=>this[_0x5037f7(0x273)],'markInterrupted':_0x3347a6=>this[_0x5037f7(0x2a1)][_0x5037f7(0x216)][_0x5037f7(0x2cb)](_0x3347a6),'prepareInput':(_0x4f66d5,_0x4cc798,_0x525d8c)=>this[_0x5037f7(0x212)][_0x5037f7(0x1be)](_0x4f66d5)[_0x5037f7(0x269)](_0x4cc798,_0x525d8c),'mcps':_0x3e137d=>this[_0x5037f7(0x28f)]?.[_0x5037f7(0x28b)](_0x3e137d)??[]}),this[_0x5037f7(0x1f2)]=new SessionIdentityService({'runtime':this[_0x5037f7(0x236)],'persist':(_0x5406f2,_0x4df06e)=>{const _0x570554=_0x5037f7;if(_0x5406f2[_0x570554(0x24d)]===null||_0x5406f2[_0x570554(0x1a9)]===null||_0x5406f2[_0x570554(0x2b1)]===null)return;this[_0x570554(0x28f)]?.[_0x570554(0x1ab)]({'runner':_0x5406f2[_0x570554(0x1f0)],'externalSessionId':_0x4df06e,'workspaceId':_0x5406f2[_0x570554(0x1e7)],'model':_0x5406f2[_0x570554(0x24d)],'effort':_0x5406f2[_0x570554(0x1a9)],'access':_0x5406f2[_0x570554(0x2b1)]});},'migrateCommands':(_0x4472b1,_0x429fe)=>this[_0x5037f7(0x2bb)][_0x5037f7(0x26e)](_0x4472b1,_0x429fe),'migrateQueue':(_0x323bf8,_0x42a042)=>this[_0x5037f7(0x1ec)][_0x5037f7(0x265)](_0x323bf8,_0x42a042),'migrateRunnerState':(_0x353b20,_0x478554)=>this[_0x5037f7(0x280)][_0x5037f7(0x25b)](_0x353b20,_0x478554),'emitSession':_0x9795af=>this[_0x5037f7(0x29e)](_0x5037f7(0x235),{'session':_0x9795af}),'emitRun':_0x1b77c0=>this[_0x5037f7(0x29e)](_0x5037f7(0x27f),{'run':_0x1b77c0}),'emitQueue':_0x268b62=>this[_0x5037f7(0x1ec)][_0x5037f7(0x1d4)](_0x268b62),'emitTurn':_0x206d8a=>this[_0x5037f7(0x241)](_0x206d8a)}),this[_0x5037f7(0x1f7)]=new SessionLifecycleService({'database':()=>{const _0x446896=_0x5037f7;if(this[_0x446896(0x28f)]===undefined)throw new Error(_0x446896(0x234));return this[_0x446896(0x28f)];},'runtime':this[_0x5037f7(0x236)],'runners':this[_0x5037f7(0x212)],'projection':this[_0x5037f7(0x1b8)],'identity':this[_0x5037f7(0x1f2)],'present':_0x34e04f=>this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0x34e04f),'emitSession':_0xae42ef=>this[_0x5037f7(0x29e)](_0x5037f7(0x235),{'session':this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0xae42ef)}),'execute':(_0x59cc9a,_0xc02a75)=>this[_0x5037f7(0x1ea)](_0x59cc9a,_0xc02a75),'interceptedSessionId':_0x5aab95=>this[_0x5037f7(0x1a0)]===undefined?undefined:_0x5037f7(0x244)+_0x5aab95}),this[_0x5037f7(0x1f1)]=new ExternalSessionResumeService({'runtime':this[_0x5037f7(0x236)],'runners':this[_0x5037f7(0x212)],'state':this[_0x5037f7(0x292)],'available':_0x193be2=>this[_0x5037f7(0x212)][_0x5037f7(0x1be)](_0x193be2)[_0x5037f7(0x1d9)](this[_0x5037f7(0x274)]),'projectionFor':_0x1122d2=>this[_0x5037f7(0x1b8)][_0x5037f7(0x237)](_0x1122d2),'managedAliasFor':_0xab9810=>this[_0x5037f7(0x1b8)][_0x5037f7(0x196)](_0xab9810),'ensureConfiguration':_0x463e70=>this[_0x5037f7(0x1b8)][_0x5037f7(0x223)](_0x463e70),'configuration':_0x22ebdb=>this[_0x5037f7(0x1b8)][_0x5037f7(0x1ba)](_0x22ebdb),'workspacePath':_0x152131=>this[_0x5037f7(0x28f)]?.[_0x5037f7(0x2ba)](_0x152131)?.[_0x5037f7(0x219)],'rememberNative':(_0x150859,_0x450049)=>this[_0x5037f7(0x21a)][_0x5037f7(0x221)](_0x150859,_0x450049),'resolve':_0x40fa77=>this[_0x5037f7(0x1b8)][_0x5037f7(0x22d)](_0x40fa77)}),this[_0x5037f7(0x2b5)]=new SessionCommandService({'runtime':this[_0x5037f7(0x236)],'runners':this[_0x5037f7(0x212)],'projection':this[_0x5037f7(0x1b8)],'resume':this[_0x5037f7(0x1f1)],'profiles':()=>this[_0x5037f7(0x27d)][_0x5037f7(0x24c)](),'present':_0x18d85f=>this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0x18d85f),'resumeQueueAfterCommandRun':_0x4e4a47=>this[_0x5037f7(0x1ec)][_0x5037f7(0x213)](_0x4e4a47)}),this[_0x5037f7(0x1e8)]=new SessionMessageService({'runtime':this[_0x5037f7(0x236)],'uploads':this[_0x5037f7(0x1b0)],'attachments':this[_0x5037f7(0x206)],'commands':this[_0x5037f7(0x2bb)],'queue':this[_0x5037f7(0x1ec)],'interaction':this[_0x5037f7(0x2ad)],'runners':this[_0x5037f7(0x212)],'resolve':_0x36830a=>this[_0x5037f7(0x1f1)][_0x5037f7(0x23c)](_0x36830a),'present':_0xdf5d7f=>this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0xdf5d7f),'emitSession':_0x2346db=>this[_0x5037f7(0x29e)](_0x5037f7(0x235),{'session':this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0x2346db)}),'channelToken':_0x16f1af=>{const _0x2745ab=_0x5037f7,_0x543fe5=this[_0x2745ab(0x236)][_0x2745ab(0x288)](_0x16f1af);return _0x543fe5===undefined?undefined:this[_0x2745ab(0x212)][_0x2745ab(0x1be)](_0x543fe5[_0x2745ab(0x1f0)])[_0x2745ab(0x22e)](_0x16f1af);}}),this[_0x5037f7(0x2c5)]=new SessionCatalogService({'database':()=>{const _0x220028=_0x5037f7;if(this[_0x220028(0x28f)]===undefined)throw new Error(_0x220028(0x234));return this[_0x220028(0x28f)];},'nodeId':()=>this[_0x5037f7(0x2ab)]?.[_0x5037f7(0x276)]??_0x5037f7(0x243),'runtime':this[_0x5037f7(0x236)],'runners':this[_0x5037f7(0x212)],'projection':this[_0x5037f7(0x1b8)],'resume':this[_0x5037f7(0x1f1)],'cachedNative':()=>[...this[_0x5037f7(0x292)][_0x5037f7(0x239)][_0x5037f7(0x1e3)]()],'cachedWorkspace':_0x32111e=>this[_0x5037f7(0x1f9)][_0x5037f7(0x25d)](_0x32111e),'present':_0x3bedf1=>this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0x3bedf1),'projectionForNative':_0x4f0620=>this[_0x5037f7(0x1b8)][_0x5037f7(0x237)](_0x4f0620),'nativeIds':_0x480e04=>this[_0x5037f7(0x1b8)][_0x5037f7(0x195)](_0x480e04),'forget':(_0x324c3f,_0x9f7b55)=>this[_0x5037f7(0x1b8)][_0x5037f7(0x258)](_0x324c3f,_0x9f7b55),'refreshActivity':_0x3013b1=>this[_0x5037f7(0x2c1)][_0x5037f7(0x209)](_0x3013b1),'externalActivity':_0x172a89=>this[_0x5037f7(0x292)][_0x5037f7(0x22c)][_0x5037f7(0x291)](_0x172a89),'history':(_0x2533ff,_0x8730af)=>this[_0x5037f7(0x2c1)][_0x5037f7(0x275)](_0x2533ff,_0x8730af),'emitSession':_0x3e01b1=>this[_0x5037f7(0x29e)](_0x5037f7(0x235),{'session':this[_0x5037f7(0x2b4)][_0x5037f7(0x1f5)](_0x3e01b1)})}),this[_0x5037f7(0x211)][_0x5037f7(0x1da)]({'start':_0xd6fc94=>this[_0x5037f7(0x2a8)][_0x5037f7(0x21b)](_0xd6fc94),'cancel':(_0x38f61f,_0x1e726c)=>{const _0x486b1e=_0x5037f7,_0x2d4298=this[_0x486b1e(0x211)][_0x486b1e(0x20f)][_0x486b1e(0x2b7)][_0x486b1e(0x291)](_0x38f61f);if(_0x2d4298?.[_0x486b1e(0x199)]===undefined)return![];return void this[_0x486b1e(0x2ad)][_0x486b1e(0x2c7)](_0x38f61f,_0x2d4298[_0x486b1e(0x1c6)],_0x2d4298[_0x486b1e(0x199)],_0x2d4298[_0x486b1e(0x217)],_0x1e726c===_0x486b1e(0x2b2)?_0x486b1e(0x2b9):_0x486b1e(0x1a6)),!![];},'decideApproval':_0x3542d1=>this[_0x5037f7(0x2ad)][_0x5037f7(0x2cd)](_0x3542d1[_0x5037f7(0x20e)],_0x3542d1[_0x5037f7(0x200)])}),this[_0x5037f7(0x28a)][_0x5037f7(0x1da)]({'start':_0x2dc40f=>this[_0x5037f7(0x28c)][_0x5037f7(0x21b)](_0x2dc40f),'cancel':(_0x277b67,_0x1d8e7b)=>this[_0x5037f7(0x2ad)][_0x5037f7(0x283)](_0x277b67,_0x1d8e7b),'decideApproval':_0x695bac=>this[_0x5037f7(0x2ad)][_0x5037f7(0x20b)](_0x695bac[_0x5037f7(0x20e)],_0x695bac[_0x5037f7(0x200)])}),this[_0x5037f7(0x2a5)][_0x5037f7(0x1da)]({'start':_0x1f56d8=>this[_0x5037f7(0x257)][_0x5037f7(0x21b)](_0x1f56d8),'cancel':(_0x48db58,_0x488e47)=>this[_0x5037f7(0x257)][_0x5037f7(0x1d8)](_0x48db58,_0x488e47),'decideApproval':_0x573392=>this[_0x5037f7(0x257)][_0x5037f7(0x1d7)](_0x573392),'respondUserInput':(_0x26aef3,_0x1cd1e7,_0x179cc5)=>this[_0x5037f7(0x257)][_0x5037f7(0x29d)](_0x26aef3,_0x1cd1e7,_0x179cc5)}),this[_0x5037f7(0x211)][_0x5037f7(0x1d1)]({'execute':(_0xeeb536,_0x33a757,_0x3a082b,_0x22319a)=>this[_0x5037f7(0x2a8)][_0x5037f7(0x25f)](_0xeeb536,_0x33a757,_0x3a082b,_0x22319a)}),this[_0x5037f7(0x28a)][_0x5037f7(0x1d1)]({'execute':(_0x3499c0,_0x2ad0c7,_0x5f5122,_0x5b6d0a)=>this[_0x5037f7(0x28c)][_0x5037f7(0x25f)](_0x3499c0,_0x2ad0c7,_0x5f5122,_0x5b6d0a)}),this[_0x5037f7(0x2a5)][_0x5037f7(0x1d1)]({'execute':(_0x1cbf43,_0x2d9358,_0x55c0ee,_0x38764c)=>this[_0x5037f7(0x257)][_0x5037f7(0x25f)](_0x1cbf43,_0x2d9358,_0x38764c)});const _0x1db8e9=this[_0x5037f7(0x1a0)]===undefined||this[_0x5037f7(0x23e)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x5037f7(0x1a0)],'script':this[_0x5037f7(0x23e)],'runners':this[_0x5037f7(0x212)],'runtime':this[_0x5037f7(0x236)],'state':this[_0x5037f7(0x2a1)],'emitRun':(_0x3ca9b6,_0x3222ff,_0x2b5e07,_0xc0c654)=>this[_0x5037f7(0x280)][_0x5037f7(0x1fc)](_0x3ca9b6,_0x3222ff,_0x2b5e07,_0xc0c654),'publishApproval':_0x327446=>this[_0x5037f7(0x280)][_0x5037f7(0x1b1)](_0x327446),'disconnect':()=>this[_0x5037f7(0x26f)][_0x5037f7(0x202)](0x47c+0x1c3c*0x1+-0x110e,_0x5037f7(0x2c4))});this[_0x5037f7(0x1a0)]?.[_0x5037f7(0x1da)]({'start':_0xf16c51=>_0x1db8e9?.[_0x5037f7(0x21b)](_0xf16c51),'cancel':(_0x217818,_0x197d3c)=>_0x197d3c===_0x5037f7(0x2b2)?this[_0x5037f7(0x1a0)]?.[_0x5037f7(0x1d8)](_0x217818)??![]:this[_0x5037f7(0x1a0)]?.[_0x5037f7(0x201)](_0x217818)??![],'decideApproval':_0x326664=>this[_0x5037f7(0x1a0)]?.[_0x5037f7(0x2be)](_0x326664[_0x5037f7(0x208)],_0x326664[_0x5037f7(0x20e)],_0x326664[_0x5037f7(0x200)])??![]}),this[_0x5037f7(0x1a2)]=_0x5f17b8[_0x5037f7(0x1a2)]??new RunnerUsageReader(),this[_0x5037f7(0x28f)]=_0x5f17b8[_0x5037f7(0x28f)],this[_0x5037f7(0x253)]=_0x5f17b8[_0x5037f7(0x253)]??new TerminalManager({'platform':this[_0x5037f7(0x274)][_0x5037f7(0x1c9)]===_0x5037f7(0x231)?_0x5037f7(0x1ee):_0x5037f7(0x1fe)}),this[_0x5037f7(0x253)][_0x5037f7(0x20c)](_0xfa15c2=>this[_0x5037f7(0x1f9)][_0x5037f7(0x1e4)](_0xfa15c2)),this[_0x5037f7(0x272)]=new NodeTerminalChannel({'config':()=>this[_0x5037f7(0x2ab)],'controlConnected':()=>this[_0x5037f7(0x26f)][_0x5037f7(0x207)](),'stopped':()=>this[_0x5037f7(0x273)],'reconnect':this[_0x5037f7(0x278)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x5037f7(0x253)]}),this[_0x5037f7(0x26f)]=new NodeControlChannel({'config':()=>this[_0x5037f7(0x2ab)],'capabilities':()=>this[_0x5037f7(0x274)],'stopped':()=>this[_0x5037f7(0x273)],'reconnect':this[_0x5037f7(0x278)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x3b104b=>{const _0x3392fc=_0x5037f7;this[_0x3392fc(0x23a)][_0x3392fc(0x224)](),nodeLog(_0x3392fc(0x2b8),{'attempt':_0x3b104b});},'onReconnectScheduled':()=>this[_0x5037f7(0x23a)][_0x5037f7(0x1c8)](),'onMessage':_0x2c9d78=>this[_0x5037f7(0x1f8)](_0x2c9d78),'onClose':(_0x161cd2,_0x33d05a)=>{const _0x25015e=_0x5037f7;this[_0x25015e(0x272)][_0x25015e(0x21e)]();if(_0x161cd2===-0x6*0x41+0x18cd+-0x7a7&&_0x33d05a===_0x25015e(0x28d))nodeLog(_0x25015e(0x23f),{'message':_0x25015e(0x260)});if(_0x161cd2===-0x26*0x16+0x227d+-0x3*0x532||_0x161cd2===-0xa23+-0x2293+-0x1b*-0x1cd)void this[_0x25015e(0x253)][_0x25015e(0x19a)]();}}),this[_0x5037f7(0x252)]=new NodeControlMessageService({'config':()=>this[_0x5037f7(0x2ab)],'register':(_0x5e91e8,_0x5d99af)=>this[_0x5037f7(0x2aa)][_0x5037f7(0x282)](_0x5e91e8,_0x5d99af),'connected':()=>this[_0x5037f7(0x2aa)][_0x5037f7(0x207)](),'close':(_0x1ee1a8,_0x3a688d)=>this[_0x5037f7(0x26f)][_0x5037f7(0x202)](_0x1ee1a8,_0x3a688d),'inspectWorkspace':_0x21b057=>this[_0x5037f7(0x1f9)][_0x5037f7(0x293)](_0x21b057),'handleNodeRequest':_0x3726dd=>this[_0x5037f7(0x1d5)][_0x5037f7(0x254)](_0x3726dd),'reconcileRuns':_0xe22199=>this[_0x5037f7(0x280)][_0x5037f7(0x1ad)](_0xe22199),'runners':this[_0x5037f7(0x212)],'deliverSessionChannelMessage':_0x2ade48=>this[_0x5037f7(0x1d0)][_0x5037f7(0x254)](_0x2ade48),'completeUncontrolledCancellation':_0x4ee713=>{const _0x46c109=_0x5037f7,_0x39c1b4=this[_0x46c109(0x236)][_0x46c109(0x2b6)](_0x4ee713);if(_0x39c1b4?.[_0x46c109(0x2ac)]===_0x46c109(0x284))this[_0x46c109(0x2ad)][_0x46c109(0x2b3)](_0x4ee713);},'send':(_0x401a3c,_0x1d9019,_0x4f6088)=>this[_0x5037f7(0x1a8)](_0x401a3c,_0x1d9019,_0x4f6088)}),this[_0x5037f7(0x1d5)]=new NodeRequestService({'nodeId':()=>this[_0x5037f7(0x2ab)]?.[_0x5037f7(0x276)],'databaseAvailable':()=>this[_0x5037f7(0x28f)]!==undefined,'execute':(_0x4e4f2a,_0x5ad21c)=>this[_0x5037f7(0x1ea)](_0x4e4f2a,_0x5ad21c),'send':(_0x3786e4,_0x513c82,_0x1c224a)=>this[_0x5037f7(0x1a8)](_0x3786e4,_0x513c82,_0x1c224a)}),this[_0x5037f7(0x1f9)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x5037f7(0x2ab)],'database':()=>this[_0x5037f7(0x28f)],'watches':this[_0x5037f7(0x1ac)],'sessions':this[_0x5037f7(0x27a)],'changes':this[_0x5037f7(0x204)],'emit':(_0xf42357,_0x3493b0)=>void this[_0x5037f7(0x25e)]?.[_0x5037f7(0x226)](_0xf42357,_0x3493b0),'send':(_0x3e2a07,_0x4864d0,_0x4ea8dc)=>this[_0x5037f7(0x1a8)](_0x3e2a07,_0x4864d0,_0x4ea8dc)}),this[_0x5037f7(0x280)]=new NodeRunEventBridge({'runtime':this[_0x5037f7(0x236)],'state':this[_0x5037f7(0x2a1)],'events':this[_0x5037f7(0x232)],'emitWorkbench':(_0x268d10,_0x4a8163)=>this[_0x5037f7(0x29e)](_0x268d10,_0x4a8163),'queues':this[_0x5037f7(0x1ec)],'codex':this[_0x5037f7(0x211)],'claude':this[_0x5037f7(0x28a)],'openCode':this[_0x5037f7(0x2a5)],'send':(_0x130310,_0x1312c1,_0x1409dc)=>this[_0x5037f7(0x1a8)](_0x130310,_0x1312c1,_0x1409dc)}),this[_0x5037f7(0x2aa)]=new NodeConnectionLifecycleService({'config':()=>this[_0x5037f7(0x2ab)],'setConfig':_0xb7d8=>this[_0x5037f7(0x2ab)]=_0xb7d8,'configPath':this[_0x5037f7(0x1b5)],'capabilities':()=>this[_0x5037f7(0x274)],'detectCapabilities':this[_0x5037f7(0x290)],'capabilitiesProvided':this[_0x5037f7(0x1db)],'stopped':()=>this[_0x5037f7(0x273)],'setCapabilities':_0x439ab5=>this[_0x5037f7(0x274)]={..._0x439ab5,'metadata':upgradeMetadata(_0x439ab5[_0x5037f7(0x233)],this[_0x5037f7(0x2a2)][_0x5037f7(0x19b)]())},'control':this[_0x5037f7(0x26f)],'terminal':this[_0x5037f7(0x272)],'metrics':this[_0x5037f7(0x23a)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0x5037f7(0x19d)][_0x5037f7(0x210)]()});const _0xb414a5=()=>{const _0x5f3ddf=_0x5037f7;if(this[_0x5f3ddf(0x28f)]===undefined)throw new Error(_0x5f3ddf(0x234));return this[_0x5f3ddf(0x28f)];};this[_0x5037f7(0x27d)]=new RunnerService(_0xb414a5,()=>this[_0x5037f7(0x274)],this[_0x5037f7(0x212)],this[_0x5037f7(0x1a2)]),this[_0x5037f7(0x1cc)]=new WorkbenchManifestService({'capabilities':()=>this[_0x5037f7(0x274)],'runners':this[_0x5037f7(0x27d)],'terminals':this[_0x5037f7(0x253)]}),this[_0x5037f7(0x299)]=new TerminalService(_0xb414a5,this[_0x5037f7(0x253)]),this[_0x5037f7(0x268)]=new WorkspaceService(_0xb414a5,()=>{const _0x18fbbe=_0x5037f7;if(this[_0x18fbbe(0x2ab)]===undefined)throw new Error(_0x18fbbe(0x2a7));return this[_0x18fbbe(0x2ab)];},this[_0x5037f7(0x236)],_0x2db5f9=>{const _0x3503c1=_0x5037f7;this[_0x3503c1(0x25a)][_0x3503c1(0x1e2)](_0x2db5f9),this[_0x3503c1(0x1f9)][_0x3503c1(0x1c0)](_0x2db5f9),this[_0x3503c1(0x27a)][_0x3503c1(0x1d2)](_0x2db5f9),this[_0x3503c1(0x1f9)][_0x3503c1(0x1bb)](_0x2db5f9);}),this[_0x5037f7(0x25e)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x40a9bc=>this[_0x5037f7(0x1f9)][_0x5037f7(0x1be)](_0x40a9bc),'watch':this[_0x5037f7(0x1ac)],'files':this[_0x5037f7(0x25a)],'uploads':this[_0x5037f7(0x1b0)],'changes':this[_0x5037f7(0x204)],'listSessions':_0x3c1700=>this[_0x5037f7(0x1ea)](_0x5037f7(0x1a5),{'workspaceId':_0x3c1700,'limit':0x14}),'invalidate':_0x131c28=>this[_0x5037f7(0x1f9)][_0x5037f7(0x1d2)](_0x131c28),'nodeId':()=>this[_0x5037f7(0x2ab)]?.[_0x5037f7(0x276)]??_0x5037f7(0x1f6),'nodeGeneration':()=>this[_0x5037f7(0x21d)],'emitWatchEvent':_0x2251e0=>this[_0x5037f7(0x1a8)](_0x5037f7(0x29f),_0x2251e0)}),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x27d)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x299)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x268)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x25e)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x29a)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x279)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x21c)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x1f7)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x1e8)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x2c5)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x2b5)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](this[_0x5037f7(0x1ec)][_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](new SkillNodeOperationService(_0xb414a5,()=>{const _0xcf559c=_0x5037f7;if(this[_0xcf559c(0x2ab)]===undefined)throw new Error(_0xcf559c(0x2a7));return this[_0xcf559c(0x2ab)];})[_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x1e1)](new McpNodeOperationService(_0xb414a5)[_0x5037f7(0x266)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x282)](_0x5037f7(0x197),()=>({'metrics':{...this[_0x5037f7(0x23a)][_0x5037f7(0x19b)](),'activeRuns':this[_0x5037f7(0x2a1)][_0x5037f7(0x1cd)][_0x5037f7(0x1ce)],'workspaceLeases':this[_0x5037f7(0x236)][_0x5037f7(0x220)]()}})),this[_0x5037f7(0x1b9)][_0x5037f7(0x282)](_0x5037f7(0x22a),_0x92b717=>this[_0x5037f7(0x2a2)][_0x5037f7(0x238)](_0x92b717)),this[_0x5037f7(0x1b9)][_0x5037f7(0x282)](_0x5037f7(0x214),()=>this[_0x5037f7(0x2a2)][_0x5037f7(0x1d8)]()),this[_0x5037f7(0x1b9)][_0x5037f7(0x282)](_0x5037f7(0x1dc),async()=>({'manifest':await this[_0x5037f7(0x1cc)][_0x5037f7(0x275)]()}));}async[_0x3344c0(0x21b)](){const _0x2d1d1d=_0x3344c0;this[_0x2d1d1d(0x273)]=![],this[_0x2d1d1d(0x2ab)]??=await loadNodeConfig(this[_0x2d1d1d(0x1b5)]),await this[_0x2d1d1d(0x2a2)][_0x2d1d1d(0x286)](resolve(dirname(nodeDatabasePath(this[_0x2d1d1d(0x2ab)],this[_0x2d1d1d(0x1b5)])),_0x2d1d1d(0x296))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x2d1d1d(0x2ab)],this[_0x2d1d1d(0x1b5)])),this[_0x2d1d1d(0x28f)]??=new NodeDatabase(nodeDatabasePath(this[_0x2d1d1d(0x2ab)],this[_0x2d1d1d(0x1b5)]),()=>this[_0x2d1d1d(0x2ab)]?.[_0x2d1d1d(0x276)]??_0x2d1d1d(0x29c)),this[_0x2d1d1d(0x28f)][_0x2d1d1d(0x1e9)](),this[_0x2d1d1d(0x2aa)][_0x2d1d1d(0x21b)](),this[_0x2d1d1d(0x26f)][_0x2d1d1d(0x225)]();}[_0x3344c0(0x1a3)](){const _0x143acb=_0x3344c0;this[_0x143acb(0x273)]=!![],this[_0x143acb(0x19d)][_0x143acb(0x1e2)](),this[_0x143acb(0x2a2)][_0x143acb(0x1a3)](),this[_0x143acb(0x2aa)][_0x143acb(0x1a3)]();for(const _0x5e5afd of this[_0x143acb(0x28a)][_0x143acb(0x20f)][_0x143acb(0x19f)][_0x143acb(0x1e3)]()){clearTimeout(_0x5e5afd[_0x143acb(0x289)]),_0x5e5afd[_0x143acb(0x22d)](_0x143acb(0x1ca));}this[_0x143acb(0x28a)][_0x143acb(0x20f)][_0x143acb(0x19f)][_0x143acb(0x2c9)]();for(const _0xa7944f of this[_0x143acb(0x28a)][_0x143acb(0x20f)][_0x143acb(0x1c1)][_0x143acb(0x1e3)]()){clearTimeout(_0xa7944f[_0x143acb(0x289)]),_0xa7944f[_0x143acb(0x2a4)](_0x143acb(0x222));}this[_0x143acb(0x28a)][_0x143acb(0x20f)][_0x143acb(0x1c1)][_0x143acb(0x2c9)](),this[_0x143acb(0x279)][_0x143acb(0x2c9)](),this[_0x143acb(0x1f2)][_0x143acb(0x1e2)](),this[_0x143acb(0x1f7)][_0x143acb(0x2c9)](),this[_0x143acb(0x1ec)][_0x143acb(0x2c9)](),this[_0x143acb(0x232)][_0x143acb(0x2c9)](),this[_0x143acb(0x26c)][_0x143acb(0x1e2)]();for(const _0xa1adc9 of this[_0x143acb(0x28a)][_0x143acb(0x20f)][_0x143acb(0x2b7)][_0x143acb(0x1e3)]())_0xa1adc9[_0x143acb(0x254)][_0x143acb(0x1d8)]();this[_0x143acb(0x28a)][_0x143acb(0x20f)][_0x143acb(0x2b7)][_0x143acb(0x2c9)](),this[_0x143acb(0x206)][_0x143acb(0x1e2)](),void this[_0x143acb(0x1b0)][_0x143acb(0x19a)](),this[_0x143acb(0x25a)][_0x143acb(0x1e2)](),this[_0x143acb(0x1ac)][_0x143acb(0x2c3)](),this[_0x143acb(0x27a)][_0x143acb(0x2c9)](),this[_0x143acb(0x204)][_0x143acb(0x2c9)](),void this[_0x143acb(0x212)][_0x143acb(0x1a3)](),void this[_0x143acb(0x253)][_0x143acb(0x19a)](),this[_0x143acb(0x272)][_0x143acb(0x1a3)](),this[_0x143acb(0x26f)][_0x143acb(0x1a3)](),this[_0x143acb(0x28f)]?.[_0x143acb(0x202)](),this[_0x143acb(0x28f)]=undefined;}[_0x3344c0(0x1f8)]=_0x55273b=>this[_0x3344c0(0x252)][_0x3344c0(0x254)](_0x55273b);[_0x3344c0(0x24a)]=(_0x5cb743,_0x3d12d0,_0x6f1b93,_0x390d9e)=>this[_0x3344c0(0x280)][_0x3344c0(0x1fc)](_0x5cb743,_0x3d12d0,_0x6f1b93,_0x390d9e);[_0x3344c0(0x23d)]=(_0xdf5048,_0x358339)=>{const _0x572f50=_0x3344c0;this[_0x572f50(0x232)][_0x572f50(0x295)](_0xdf5048);const _0x13e90f=isPlainRecord(_0x358339)&&typeof _0x358339[_0x572f50(0x1c3)]===_0x572f50(0x1c4)?_0x358339[_0x572f50(0x1c3)]:undefined,_0x236d06=isPlainRecord(_0x358339)&&typeof _0x358339[_0x572f50(0x1bc)]===_0x572f50(0x1c4)?_0x358339[_0x572f50(0x1bc)]:undefined,_0x2b116f=this[_0x572f50(0x236)][_0x572f50(0x1ff)](_0xdf5048),_0x4db656=_0x13e90f===undefined||_0x2b116f===undefined?undefined:conversationSegmentIdentityForItem(_0x2b116f,_0x13e90f,_0x236d06);this[_0x572f50(0x280)][_0x572f50(0x1fc)](_0xdf5048,_0x572f50(0x1ae),_0x4db656===undefined||!isPlainRecord(_0x358339)?_0x358339:{..._0x358339,'segmentId':_0x4db656['id'],'segmentIndex':_0x4db656[_0x572f50(0x22f)]});};[_0x3344c0(0x241)]=_0xae375d=>{const _0x57c959=_0x3344c0,_0x1e7ea1=isPlainRecord(_0xae375d)&&Array[_0x57c959(0x263)](_0xae375d[_0x57c959(0x249)])?conversationSegments(_0xae375d):[];this[_0x57c959(0x29e)](_0x57c959(0x26b),{'turn':_0xae375d,'segments':_0x1e7ea1});};[_0x3344c0(0x29e)]=(_0x4c295a,_0xf4e475)=>{const _0x1b7291=_0x3344c0,_0x3cfbbf=this[_0x1b7291(0x227)][_0x1b7291(0x1f4)](_0x4c295a,_0xf4e475);if(_0x3cfbbf===undefined)return;const _0x383640=_0x4c295a===_0x1b7291(0x26b)&&isPlainRecord(_0xf4e475)&&isPlainRecord(_0xf4e475[_0x1b7291(0x1cf)])&&_0xf4e475[_0x1b7291(0x1cf)][_0x1b7291(0x1d3)]===_0x1b7291(0x259),_0x256382=workbenchPayloadSessionId(this[_0x1b7291(0x236)],_0x4c295a,_0xf4e475);if(!_0x383640&&_0x256382!==undefined){this[_0x1b7291(0x279)][_0x1b7291(0x1d6)](_0x256382,_0x3cfbbf);return;}this[_0x1b7291(0x227)][_0x1b7291(0x1d4)](_0x3cfbbf);};[_0x3344c0(0x1dd)]=_0x166aed=>this[_0x3344c0(0x1b8)][_0x3344c0(0x229)](_0x166aed);[_0x3344c0(0x21f)]=_0xa1bd59=>this[_0x3344c0(0x1f9)][_0x3344c0(0x1d2)](_0xa1bd59);[_0x3344c0(0x20d)]=()=>undefined;[_0x3344c0(0x1a4)]=()=>this[_0x3344c0(0x2aa)][_0x3344c0(0x1a4)]();[_0x3344c0(0x228)]=()=>this[_0x3344c0(0x2aa)][_0x3344c0(0x228)]();async[_0x3344c0(0x1ea)](_0x4a0f6a,_0x4fe349){const _0x11d20f=_0x3344c0;if(this[_0x11d20f(0x28f)]===undefined)throw new Error(_0x11d20f(0x234));if(this[_0x11d20f(0x2a2)][_0x11d20f(0x1cb)](_0x4a0f6a))throw new Error(_0x11d20f(0x2a9));return nodeLog(_0x11d20f(0x1b4),{'nodeId':this[_0x11d20f(0x2ab)]?.[_0x11d20f(0x276)],'operation':_0x4a0f6a}),this[_0x11d20f(0x1b9)][_0x11d20f(0x20a)](_0x4a0f6a,_0x4fe349);}[_0x3344c0(0x1a8)](_0x5d3c95,_0x46f4e2,_0x57c863){const _0x2993a0=_0x3344c0;this[_0x2993a0(0x26f)][_0x2993a0(0x1a8)](_0x5d3c95,_0x46f4e2,_0x57c863);}[_0x3344c0(0x1a7)](_0x17ad24){const _0x3bd36f=_0x3344c0;this[_0x3bd36f(0x26f)][_0x3bd36f(0x1a7)](_0x17ad24);}}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x2beec3=_0x4960;(function(_0x5bb12a,_0x4d3237){const _0x13539=_0x4960,_0x804daa=_0x5bb12a();while(!![]){try{const _0x4ba80d=-parseInt(_0x13539(0x160))/(-0x26e7*0x1+0x1008+-0x3d*-0x60)*(parseInt(_0x13539(0x15c))/(-0xb7f+-0x14bd*0x1+0x1*0x203e))+-parseInt(_0x13539(0x124))/(0x615+-0x87*0x5+0x125*-0x3)+-parseInt(_0x13539(0x151))/(-0x1229*-0x2+0x4*0x88f+-0x468a)*(parseInt(_0x13539(0x138))/(-0x140e+-0x65*0x12+0x1b2d))+-parseInt(_0x13539(0x11f))/(-0x1649+-0x24f6+0x3b45)*(parseInt(_0x13539(0x101))/(0x1*0x13e1+0x1216+-0x25f0))+parseInt(_0x13539(0x10c))/(0x1a04+-0x524*-0x2+-0x2444)*(-parseInt(_0x13539(0x12c))/(-0x25*0x75+-0x287*-0x6+-0x2*-0xe4))+-parseInt(_0x13539(0x110))/(0x7*0x51b+-0xb6a+-0x1849)+parseInt(_0x13539(0x123))/(0x1*0x1d4b+-0x74a*0x3+-0x762);if(_0x4ba80d===_0x4d3237)break;else _0x804daa['push'](_0x804daa['shift']());}catch(_0x2b8b1f){_0x804daa['push'](_0x804daa['shift']());}}}(_0x370a,0xf972+0x76c9*0x5+-0x2*-0xd981));import{discoverNativeSessions,readNativeSession}from'../native-session-history.js';import{coalesceImageGenerationItems}from'../runner/codex/conversation-parser.js';import{nativeConversationPage}from'../util/runner-native-session-parsers.js';import{isPlainRecord}from'../util/node-operation-parsers.js';import{nodeLog}from'../operational.js';export function hasManagedActiveRun(_0x13f7ad,_0x456fda){const _0x2dd77b=_0x4960;return _0x456fda[_0x2dd77b(0x15a)]===_0x2dd77b(0x171)&&_0x13f7ad[_0x2dd77b(0x146)](_0x456fda['id'])[_0x2dd77b(0x11a)](_0x2aff47=>_0x2aff47[_0x2dd77b(0x135)]===_0x2dd77b(0xfd)||_0x2aff47[_0x2dd77b(0x135)]===_0x2dd77b(0x16f)||_0x2aff47[_0x2dd77b(0x135)]===_0x2dd77b(0x168));}export function convergeConversationWatchPage(_0x1470cd,_0xf4508,_0x3072df,_0x580da5){const _0x5585da=_0x4960,_0x4963ff=isConversationHistorySource(_0x580da5)?_0x580da5:_0x1470cd?.[_0x5585da(0x12e)];if(_0x1470cd===undefined||_0x4963ff===undefined||sourceRank(_0x3072df[_0x5585da(0x12e)])>=sourceRank(_0x4963ff))return{'page':_0x3072df,'authority':_0x3072df[_0x5585da(0x12e)]};if(_0x1470cd[_0x5585da(0xfc)][_0x5585da(0x121)]===0x2693+0x2*0x12af+-0x4bf1)return{'page':_0x3072df,'authority':_0x4963ff};const _0x441647=_0x3072df[_0x5585da(0xfc)][_0x5585da(0x126)](_0x12a468=>_0x1470cd[_0x5585da(0xfc)][_0x5585da(0x11a)](_0x59fa44=>sameConversationTurn(_0x59fa44,_0x12a468))),_0x3fdf96=_0x441647>=0xf5a+-0x1*0x20ac+0x1152||_0xf4508===undefined?-(0xad5*-0x2+-0x1*0x165b+0x2c06):_0x3072df[_0x5585da(0xfc)][_0x5585da(0x126)](_0x3fcf29=>_0xf4508[_0x5585da(0xfc)][_0x5585da(0x11a)](_0x3bacf0=>sameConversationTurn(_0x3bacf0,_0x3fcf29))),_0x1b94ec=Math[_0x5585da(0x122)](_0x441647,_0x3fdf96);if(_0x1b94ec<0x1195+0x1f51*0x1+0x1873*-0x2)return{'page':_0x1470cd,'authority':_0x4963ff};const _0x3a0e98=_0x3072df[_0x5585da(0xfc)][_0x5585da(0x113)](_0x1b94ec+(0x845*-0x3+0x41*0x68+-0x198))[_0x5585da(0x104)](_0x44765=>!_0x1470cd[_0x5585da(0xfc)][_0x5585da(0x11a)](_0x1f317e=>sameConversationTurn(_0x1f317e,_0x44765)));if(_0x3a0e98[_0x5585da(0x121)]===-0x65*0x4+0x2*-0x3fa+0x1e8*0x5)return{'page':_0x1470cd,'authority':_0x4963ff};return{'page':{..._0x1470cd,'source':_0x3072df[_0x5585da(0x12e)],'snapshotSequence':Math[_0x5585da(0x122)](_0x1470cd[_0x5585da(0x144)],_0x3072df[_0x5585da(0x144)]),'readAt':_0x3072df[_0x5585da(0x142)],'latestVisibleAt':_0x3072df[_0x5585da(0x15b)]??_0x1470cd[_0x5585da(0x15b)],'turns':[..._0x1470cd[_0x5585da(0xfc)],..._0x3a0e98]},'authority':_0x4963ff};}function isConversationHistorySource(_0x122c05){const _0x66dce6=_0x4960;return _0x122c05===_0x66dce6(0x170)||_0x122c05===_0x66dce6(0x10b)||_0x122c05===_0x66dce6(0x13c);}export class ConversationHistoryService{[_0x2beec3(0x140)];[_0x2beec3(0x118)]=new Map();constructor(_0x46222d){const _0x266013=_0x2beec3;this[_0x266013(0x140)]=_0x46222d;}async[_0x2beec3(0x178)](_0x2f1195,_0x2f2123){const _0x5d4b1f=_0x2beec3,_0x1484c0=this[_0x5d4b1f(0x140)][_0x5d4b1f(0x144)](),_0x3d477e=Date[_0x5d4b1f(0x11b)](),_0x2d4fc9=decodeActiveHistoryCursor(_0x2f2123[_0x5d4b1f(0x13a)],_0x2f1195['id']);if(_0x2d4fc9!==undefined||this[_0x5d4b1f(0x140)][_0x5d4b1f(0x179)](_0x2f1195))return this[_0x5d4b1f(0x102)](_0x2f1195,_0x2f2123,_0x2d4fc9,_0x1484c0,_0x3d477e);const _0x3c7cd5=await this[_0x5d4b1f(0x12b)](_0x2f1195,_0x2f2123);if(_0x3c7cd5[_0x5d4b1f(0x131)]?.[_0x5d4b1f(0x12e)]===_0x5d4b1f(0x10b))return this[_0x5d4b1f(0x131)](_0x3c7cd5[_0x5d4b1f(0x131)][_0x5d4b1f(0x15f)],_0x3c7cd5[_0x5d4b1f(0x131)][_0x5d4b1f(0xfc)],{'snapshotSequence':_0x1484c0,'source':_0x5d4b1f(0x10b),'readAt':_0x3d477e});let _0x10f97e=_0x3c7cd5[_0x5d4b1f(0x131)]?.[_0x5d4b1f(0x12e)]===_0x5d4b1f(0x170)?_0x3c7cd5[_0x5d4b1f(0x131)]:undefined;if(_0x10f97e!==undefined){const _0x10c9bb=Math[_0x5d4b1f(0x112)](Math[_0x5d4b1f(0x122)](_0x2f2123[_0x5d4b1f(0x175)]??-0x16d3+-0x2*0xf40+0x1*0x3571,0x207b*-0x1+-0x1*0x36a+-0xa*-0x397),-0xff6+-0xc9b+0x1e85),_0x339671=this[_0x5d4b1f(0x140)][_0x5d4b1f(0x13c)][_0x5d4b1f(0x172)](_0x2f1195['id'])===undefined?[]:this[_0x5d4b1f(0x140)][_0x5d4b1f(0x13c)][_0x5d4b1f(0x158)]({'sessionId':_0x2f1195['id'],'limit':0x1f4})[_0x5d4b1f(0xfc)],_0x377dd8=new Set(_0x10f97e[_0x5d4b1f(0xfc)][_0x5d4b1f(0x11e)](_0xb5465d=>_0xb5465d[_0x5d4b1f(0x15d)]===null?[]:[_0xb5465d[_0x5d4b1f(0x15d)]])),_0x2ffe7f=_0x339671[_0x5d4b1f(0x126)](_0x240425=>_0x240425[_0x5d4b1f(0x15d)]!==null&&_0x377dd8[_0x5d4b1f(0x12a)](_0x240425[_0x5d4b1f(0x15d)])),_0x175947=_0x10f97e[_0x5d4b1f(0xfc)][_0x5d4b1f(0x121)]>0x76d+-0x1c47+0x14da,_0x239bbe=_0x339671[_0x5d4b1f(0x104)]((_0x462ef6,_0x17a565)=>(_0x462ef6[_0x5d4b1f(0x15d)]===null||!_0x377dd8[_0x5d4b1f(0x12a)](_0x462ef6[_0x5d4b1f(0x15d)]))&&(!_0x175947||_0x17a565>_0x2ffe7f)),_0x249196=_0x239bbe[_0x5d4b1f(0x113)](-_0x10c9bb);if(_0x2f2123[_0x5d4b1f(0x13a)]===undefined&&_0x249196[_0x5d4b1f(0x121)]>-0x1d2a+-0x83f+0x2569&&_0x10f97e[_0x5d4b1f(0xfc)][_0x5d4b1f(0x121)]+_0x249196[_0x5d4b1f(0x121)]>_0x10c9bb){const _0x4a54dc=Math[_0x5d4b1f(0x112)](_0x249196[_0x5d4b1f(0x121)],Math[_0x5d4b1f(0x122)](0xff8+-0x23dd*0x1+-0x13e5*-0x1,_0x10c9bb-(-0xa*-0x79+-0x4c4+0x1*0xb))),_0x370adc=await this[_0x5d4b1f(0x10d)](_0x2f1195,{..._0x2f2123,'limit':_0x10c9bb-_0x4a54dc});if(_0x370adc!==undefined)_0x10f97e={..._0x370adc,'source':_0x5d4b1f(0x170)};}const _0x40c907=await this[_0x5d4b1f(0x16c)](_0x2f1195,_0x10f97e[_0x5d4b1f(0xfc)]),_0x21f1a9=new Set(_0x40c907[_0x5d4b1f(0x11e)](_0x265689=>_0x265689[_0x5d4b1f(0x15d)]===null?[]:[_0x265689[_0x5d4b1f(0x15d)]])),_0x872f5e=new Map();for(const _0x30d4b7 of _0x339671){if(_0x30d4b7[_0x5d4b1f(0x15d)]===null||!_0x21f1a9[_0x5d4b1f(0x12a)](_0x30d4b7[_0x5d4b1f(0x15d)]))continue;const _0x59e4f4=_0x30d4b7[_0x5d4b1f(0x14e)][_0x5d4b1f(0x104)](_0x39e055=>_0x39e055[_0x5d4b1f(0x145)]===_0x5d4b1f(0x14a)&&_0x39e055[_0x5d4b1f(0x135)]===_0x5d4b1f(0x127));if(_0x59e4f4[_0x5d4b1f(0x121)]>-0x6d3*-0x2+0x7d3+-0x1579)_0x872f5e[_0x5d4b1f(0x10a)](_0x30d4b7[_0x5d4b1f(0x15d)],_0x59e4f4);}const _0x3fc342=Math[_0x5d4b1f(0x122)](0x31*0x70+0x22*-0xd+0x1d*-0xae,_0x10c9bb-_0x40c907[_0x5d4b1f(0x121)]),_0x89bc93=_0x2f2123[_0x5d4b1f(0x13a)]===undefined?_0x249196:[],_0x4adb80=_0x3fc342===-0x403*-0x3+0x1de1+0x91*-0x4a?[]:_0x89bc93[_0x5d4b1f(0x113)](-_0x3fc342),_0x4ec75c=new Set([..._0x4adb80[_0x5d4b1f(0x11e)](_0x1ebee3=>_0x1ebee3[_0x5d4b1f(0x14e)][_0x5d4b1f(0x11e)](_0x5744db=>{const _0x121a8e=_0x5d4b1f,_0x855b8b=_0x5744db[_0x121a8e(0x145)]===_0x121a8e(0x14a)&&isPlainRecord(_0x5744db[_0x121a8e(0x108)])?_0x5744db[_0x121a8e(0x108)][_0x121a8e(0x16b)]:undefined;return typeof _0x855b8b===_0x121a8e(0xfe)?[_0x855b8b]:[];})),...[..._0x872f5e[_0x5d4b1f(0x103)]()][_0x5d4b1f(0x11e)](_0x5d5650=>_0x5d5650[_0x5d4b1f(0x11e)](_0xed10ac=>{const _0x44763b=_0x5d4b1f,_0x47489d=isPlainRecord(_0xed10ac[_0x44763b(0x108)])?_0xed10ac[_0x44763b(0x108)][_0x44763b(0x16b)]:undefined;return typeof _0x47489d===_0x44763b(0xfe)?[_0x47489d]:[];}))]),_0x3bdf46=[..._0x40c907[_0x5d4b1f(0x130)](_0x55014d=>{const _0x3fbe00=_0x5d4b1f,_0x387066=_0x55014d[_0x3fbe00(0x15d)]===null?[]:_0x872f5e[_0x3fbe00(0x13d)](_0x55014d[_0x3fbe00(0x15d)])??[],_0x20794d=[..._0x55014d[_0x3fbe00(0x14e)][_0x3fbe00(0x104)](_0x1af8f9=>_0x1af8f9[_0x3fbe00(0x145)]!==_0x3fbe00(0x14a)||!isPlainRecord(_0x1af8f9[_0x3fbe00(0x108)])||typeof _0x1af8f9[_0x3fbe00(0x108)][_0x3fbe00(0x16b)]!==_0x3fbe00(0xfe)||!_0x4ec75c[_0x3fbe00(0x12a)](_0x1af8f9[_0x3fbe00(0x108)][_0x3fbe00(0x16b)])),..._0x387066];return{..._0x55014d,'items':_0x20794d};})[_0x5d4b1f(0x104)](_0x1ba2c6=>_0x1ba2c6[_0x5d4b1f(0x14e)][_0x5d4b1f(0x121)]>0x8*-0x32e+0x1bb*0x5+0x10c9),..._0x4adb80];return this[_0x5d4b1f(0x131)](_0x10f97e[_0x5d4b1f(0x15f)],_0x3bdf46,{'snapshotSequence':_0x1484c0,'source':_0x5d4b1f(0x170),'readAt':_0x3d477e});}if(_0x2f1195[_0x5d4b1f(0x13e)]!==null&&_0x3c7cd5[_0x5d4b1f(0x167)]){const _0x5be9f6=this[_0x5d4b1f(0x140)][_0x5d4b1f(0x13c)][_0x5d4b1f(0x158)]({'sessionId':_0x2f1195['id'],..._0x2f2123});if(_0x5be9f6[_0x5d4b1f(0xfc)][_0x5d4b1f(0x121)]===0x24fc+-0x19c5*0x1+-0x13f*0x9)throw new Error(_0x5d4b1f(0x115));return this[_0x5d4b1f(0x131)](_0x5be9f6[_0x5d4b1f(0x15f)],_0x5be9f6[_0x5d4b1f(0xfc)],{'snapshotSequence':_0x1484c0,'source':_0x5d4b1f(0x13c),'readAt':_0x3d477e});}if(_0x2f1195[_0x5d4b1f(0x13e)]!==null&&_0x2f1195[_0x5d4b1f(0x15a)]===_0x5d4b1f(0x132))throw new Error(_0x5d4b1f(0x155));const _0x486d90=this[_0x5d4b1f(0x140)][_0x5d4b1f(0x13c)][_0x5d4b1f(0x158)]({'sessionId':_0x2f1195['id'],..._0x2f2123});return this[_0x5d4b1f(0x131)](_0x486d90[_0x5d4b1f(0x15f)],_0x486d90[_0x5d4b1f(0xfc)],{'snapshotSequence':_0x1484c0,'source':_0x5d4b1f(0x13c),'readAt':_0x3d477e});}async[_0x2beec3(0x12b)](_0x32787d,_0x7ac0ae){const _0x36a5d0=_0x2beec3,_0x35d7a2=this[_0x36a5d0(0x140)][_0x36a5d0(0x11c)][_0x36a5d0(0x100)](_0x32787d[_0x36a5d0(0x14b)]);let _0x45705d=![];const _0x1db855=await _0x35d7a2[_0x36a5d0(0x111)]({'native':async()=>{const _0x3b39db=_0x36a5d0,_0x1ddb0e=performance[_0x3b39db(0x11b)]();let _0x2589ca;try{_0x2589ca=await this[_0x3b39db(0x125)](_0x32787d,_0x7ac0ae[_0x3b39db(0x13a)],_0x7ac0ae[_0x3b39db(0x175)]);}catch{return undefined;}finally{const _0x274c8f=Math[_0x3b39db(0x157)](performance[_0x3b39db(0x11b)]()-_0x1ddb0e);if(_0x274c8f>=-0x1aea+0x1825+0x3bf)nodeLog(_0x3b39db(0x17a),{'runner':_0x32787d[_0x3b39db(0x14b)],'sessionId':_0x32787d['id'],'durationMs':_0x274c8f});}if(_0x2589ca===undefined)return undefined;if(_0x2589ca[_0x3b39db(0x176)]===!![]&&(!_0x35d7a2[_0x3b39db(0x148)]()||_0x2589ca[_0x3b39db(0x14e)][_0x3b39db(0x121)]===0x15e7+0xe13+-0x5*0x732))return _0x45705d=!![],undefined;const _0x556c53=this[_0x3b39db(0x140)][_0x3b39db(0x13c)][_0x3b39db(0x172)](_0x32787d['id'])===undefined?[]:this[_0x3b39db(0x140)][_0x3b39db(0x13c)][_0x3b39db(0x158)]({'sessionId':_0x32787d['id'],'limit':0x1f4})[_0x3b39db(0xfc)],_0x1ed856=nativeConversationPage(_0x32787d,_0x2589ca,_0x2589ca[_0x3b39db(0x136)]===!![]?_0x7ac0ae[_0x3b39db(0x175)]===undefined?{}:{'limit':_0x7ac0ae[_0x3b39db(0x175)]}:_0x7ac0ae,_0x556c53,_0x44b3da=>this[_0x3b39db(0x140)][_0x3b39db(0x177)][_0x3b39db(0x156)](_0x32787d,_0x44b3da));return _0x1ed856;},'official':()=>this[_0x36a5d0(0x10d)](_0x32787d,_0x7ac0ae)});return{'page':_0x1db855,'incompleteNative':_0x45705d};}async[_0x2beec3(0x102)](_0x2bc642,_0x1d0f2e,_0x4eb5bb,_0x262e76,_0x201ef9){const _0x129013=_0x2beec3,_0x44f446=Math[_0x129013(0x112)](Math[_0x129013(0x122)](_0x1d0f2e[_0x129013(0x175)]??-0x5*0x38d+-0x1d0e+-0x29*-0x125,-0x25a1+0x24*0xd3+-0x7f6*-0x1),0x25af+-0x1b7+-0x7*0x4dc),_0x30be7e=this[_0x129013(0x140)][_0x129013(0x13c)][_0x129013(0x158)]({'sessionId':_0x2bc642['id'],'limit':0x1f4})[_0x129013(0xfc)],_0x4d30ff=_0x4eb5bb?.[_0x129013(0x11d)]??oldestTurnActivityAt(_0x30be7e);if(_0x4eb5bb?.[_0x129013(0x14f)]===_0x129013(0x12f)){const _0x1c52de=this[_0x129013(0x149)](_0x2bc642['id'],_0x44f446,_0x4eb5bb[_0x129013(0x13a)]),_0x517efb=await(_0x1c52de??this[_0x129013(0x12b)](_0x2bc642,{..._0x4eb5bb[_0x129013(0x13a)]===null?{}:{'cursor':_0x4eb5bb[_0x129013(0x13a)]},'limit':_0x44f446})),_0x14b2e6=_0x517efb[_0x129013(0x131)];if(_0x14b2e6===undefined)return this[_0x129013(0x131)](null,[],{'snapshotSequence':_0x262e76,'source':_0x129013(0x13c),'readAt':_0x201ef9});const _0x58d335=_0x14b2e6[_0x129013(0x12e)]===_0x129013(0x170)?await this[_0x129013(0x16c)](_0x2bc642,_0x14b2e6[_0x129013(0xfc)]):_0x14b2e6[_0x129013(0xfc)],_0x2a1c93=_0x58d335[_0x129013(0x104)](_0x33882a=>latestTurnActivityAt(_0x33882a)<_0x4d30ff);return this[_0x129013(0x131)](_0x14b2e6[_0x129013(0x15f)]===null?null:encodeActiveHistoryCursor({'sessionId':_0x2bc642['id'],'stage':_0x129013(0x12f),'beforeAt':_0x4d30ff,'cursor':_0x14b2e6[_0x129013(0x15f)]}),_0x2a1c93,{'snapshotSequence':_0x262e76,'source':_0x14b2e6[_0x129013(0x12e)],'readAt':_0x201ef9});}if(_0x4eb5bb===undefined&&_0x2bc642[_0x129013(0x13e)]!==null)this[_0x129013(0x119)](_0x2bc642,_0x44f446);const _0xe775eb=this[_0x129013(0x140)][_0x129013(0x13c)][_0x129013(0x158)]({'sessionId':_0x2bc642['id'],..._0x4eb5bb?.[_0x129013(0x13a)]===null||_0x4eb5bb===undefined?{}:{'cursor':_0x4eb5bb[_0x129013(0x13a)]},'limit':_0x44f446}),_0x60856=_0xe775eb[_0x129013(0x15f)]!==null?encodeActiveHistoryCursor({'sessionId':_0x2bc642['id'],'stage':_0x129013(0x106),'beforeAt':_0x4d30ff,'cursor':_0xe775eb[_0x129013(0x15f)]}):_0x2bc642[_0x129013(0x13e)]===null?null:encodeActiveHistoryCursor({'sessionId':_0x2bc642['id'],'stage':_0x129013(0x12f),'beforeAt':_0x4d30ff,'cursor':null});return this[_0x129013(0x131)](_0x60856,_0xe775eb[_0x129013(0xfc)],{'snapshotSequence':_0x262e76,'source':_0x129013(0x13c),'readAt':_0x201ef9,'deferredOlderHistory':!![]});}[_0x2beec3(0x119)](_0x1a03c7,_0xf00334){const _0x35fd29=_0x2beec3,_0x4fbd91=Date[_0x35fd29(0x11b)]();for(const [_0x2658bb,_0x2c8a6a]of this[_0x35fd29(0x118)])if(_0x2c8a6a[_0x35fd29(0x117)]+(0x37b5+0x3*-0x648e+0x1e055*0x1)<=_0x4fbd91)this[_0x35fd29(0x118)][_0x35fd29(0x162)](_0x2658bb);const _0x4b1e69=this[_0x35fd29(0x118)][_0x35fd29(0x13d)](_0x1a03c7['id']);if(_0x4b1e69!==undefined&&_0x4b1e69[_0x35fd29(0x175)]===_0xf00334)return;this[_0x35fd29(0x118)][_0x35fd29(0x10a)](_0x1a03c7['id'],{'createdAt':_0x4fbd91,'limit':_0xf00334,'page':this[_0x35fd29(0x12b)](_0x1a03c7,{'limit':_0xf00334})[_0x35fd29(0x133)](()=>({'page':undefined,'incompleteNative':![]}))});}[_0x2beec3(0x149)](_0x1cf0ab,_0x44e4d8,_0x4e5297){const _0xbc3869=_0x2beec3;if(_0x4e5297!==null)return undefined;const _0xa27ca3=this[_0xbc3869(0x118)][_0xbc3869(0x13d)](_0x1cf0ab);if(_0xa27ca3===undefined||_0xa27ca3[_0xbc3869(0x175)]!==_0x44e4d8||_0xa27ca3[_0xbc3869(0x117)]+(-0x3631+-0xcf*-0x20f+0x1f*-0x470)<=Date[_0xbc3869(0x11b)]())return undefined;return this[_0xbc3869(0x118)][_0xbc3869(0x162)](_0x1cf0ab),_0xa27ca3[_0xbc3869(0x131)];}async[_0x2beec3(0x147)](_0x36dd87){const _0x5d253d=_0x2beec3,_0x494fbe=this[_0x5d253d(0x140)][_0x5d253d(0x11c)][_0x5d253d(0x100)](_0x36dd87[_0x5d253d(0x14b)]);if(!_0x494fbe[_0x5d253d(0x129)](this[_0x5d253d(0x140)][_0x5d253d(0x169)]())){this[_0x5d253d(0x140)][_0x5d253d(0x114)](_0x36dd87['id'],_0x5d253d(0x16d));return;}const _0x29d7e1=await _0x494fbe[_0x5d253d(0x137)](_0x36dd87);if(_0x29d7e1!==undefined)this[_0x5d253d(0x140)][_0x5d253d(0x114)](_0x36dd87['id'],_0x29d7e1);}async[_0x2beec3(0x125)](_0x1d6b3e,_0x282cdc,_0x3e8d90=0x192c+0xecb+-0x27d9*0x1){const _0x2d0100=_0x2beec3;if(_0x1d6b3e[_0x2d0100(0x13e)]===null)return undefined;const _0x53c775=nativeHistoryPageCursor(_0x282cdc,_0x1d6b3e['id']),_0x2aceee=await readNativeSession(_0x1d6b3e[_0x2d0100(0x14b)],_0x1d6b3e[_0x2d0100(0x120)],_0x1d6b3e[_0x2d0100(0x13e)],_0x53c775,_0x3e8d90);if(_0x2aceee!==undefined)return _0x2aceee;return await discoverNativeSessions(_0x1d6b3e[_0x2d0100(0x14b)],_0x1d6b3e[_0x2d0100(0x120)]),readNativeSession(_0x1d6b3e[_0x2d0100(0x14b)],_0x1d6b3e[_0x2d0100(0x120)],_0x1d6b3e[_0x2d0100(0x13e)],_0x53c775,_0x3e8d90);}async[_0x2beec3(0x16c)](_0x23b585,_0x3d8518){const _0x15a237=_0x2beec3,_0xf7c45f=performance[_0x15a237(0x11b)](),_0x112d72=await this[_0x15a237(0x125)](_0x23b585),_0x382b12=Math[_0x15a237(0x157)](performance[_0x15a237(0x11b)]()-_0xf7c45f);if(_0x382b12>=-0x171c+0x4d5+0x5d*0x35)nodeLog(_0x15a237(0x12d),{'runner':_0x23b585[_0x15a237(0x14b)],'sessionId':_0x23b585['id'],'durationMs':_0x382b12});if(_0x112d72===undefined)return _0x3d8518;const _0x11b444=new Map();for(const _0x55fad4 of _0x112d72[_0x15a237(0x14e)]){if(_0x55fad4[_0x15a237(0x145)]!==_0x15a237(0x15e)||_0x55fad4[_0x15a237(0x173)]===undefined)continue;const _0x379531=this[_0x15a237(0x140)][_0x15a237(0x177)][_0x15a237(0x156)](_0x23b585,_0x55fad4[_0x15a237(0x173)]);if(_0x379531[_0x15a237(0x121)]>0x739+-0x745*-0x1+0x23*-0x6a)_0x11b444[_0x15a237(0x10a)](_0x55fad4[_0x15a237(0x128)],_0x379531);}if(_0x11b444[_0x15a237(0x17b)]===-0x1229+-0x864+0x1a8d)return _0x3d8518;return _0x3d8518[_0x15a237(0x130)](_0x3821f0=>({..._0x3821f0,'items':coalesceImageGenerationItems(_0x3821f0[_0x15a237(0x14e)][_0x15a237(0x130)](_0x19d457=>{const _0x2eee86=_0x15a237,_0x14a660=_0x11b444[_0x2eee86(0x13d)](_0x19d457['id'][_0x2eee86(0x113)](_0x19d457['id'][_0x2eee86(0x109)](':')+(-0x3*0xa0a+-0x7*0x296+0x3039)));if(_0x14a660===undefined||!isPlainRecord(_0x19d457[_0x2eee86(0x108)]))return _0x19d457;return{..._0x19d457,'payload':{..._0x19d457[_0x2eee86(0x108)],'attachments':_0x14a660}};}))}));}async[_0x2beec3(0x10d)](_0xa0e8df,_0x105ccf){const _0x3facc4=_0x2beec3,_0x401849=this[_0x3facc4(0x140)][_0x3facc4(0x11c)][_0x3facc4(0x100)](_0xa0e8df[_0x3facc4(0x14b)]);if(_0xa0e8df[_0x3facc4(0x13e)]===null||!_0x401849[_0x3facc4(0x129)](this[_0x3facc4(0x140)][_0x3facc4(0x169)]()))return undefined;const _0xa145f3=performance[_0x3facc4(0x11b)]();try{return await _0x401849[_0x3facc4(0x105)](_0xa0e8df,_0x105ccf,_0x1153e0=>this[_0x3facc4(0x10f)](_0xa0e8df,_0x1153e0));}finally{const _0x286608=Math[_0x3facc4(0x157)](performance[_0x3facc4(0x11b)]()-_0xa145f3);if(_0x286608>=-0x1fdd+-0x1ac8+0x3b9f)nodeLog(_0x3facc4(0x166),{'runner':_0xa0e8df[_0x3facc4(0x14b)],'sessionId':_0xa0e8df['id'],'durationMs':_0x286608});}}[_0x2beec3(0x10f)](_0x2db3ad,_0x530683){const _0x8a1ce1=_0x2beec3,_0x160c64=this[_0x8a1ce1(0x140)][_0x8a1ce1(0x11c)][_0x8a1ce1(0x100)](_0x2db3ad[_0x8a1ce1(0x14b)])[_0x8a1ce1(0x161)](_0x530683);if(_0x160c64===undefined)return undefined;return this[_0x8a1ce1(0x140)][_0x8a1ce1(0x13c)][_0x8a1ce1(0x158)]({'sessionId':_0x2db3ad['id'],'limit':0x1f4})[_0x8a1ce1(0xfc)][_0x8a1ce1(0x16a)](_0x3491e2=>_0x3491e2[_0x8a1ce1(0x15d)]===_0x160c64);}[_0x2beec3(0x131)](_0xa939cc,_0x24b1a7,_0x500dde){const _0x46873f=_0x2beec3;return{..._0x500dde,'turns':_0x24b1a7,'nextCursor':_0xa939cc,'latestVisibleAt':Math[_0x46873f(0x122)](-0x23ae+-0x3*0xc9d+-0x3b*-0x13f,..._0x24b1a7[_0x46873f(0x130)](_0x10493a=>Math[_0x46873f(0x122)](_0x10493a[_0x46873f(0x150)]??-0x102a+0x1b9a*-0x1+0x2bc4,_0x10493a[_0x46873f(0x116)]??0x1*0x22f7+-0xd*0x2cd+-0x1*-0x172)))};}}function nativeHistoryPageCursor(_0x2ef689,_0x3a96ce){const _0x2ade4d=_0x2beec3;if(_0x2ef689===undefined)return undefined;try{const _0x548c9b=JSON[_0x2ade4d(0x141)](Buffer[_0x2ade4d(0x153)](_0x2ef689,_0x2ade4d(0xff))[_0x2ade4d(0x159)](_0x2ade4d(0x163)));return _0x548c9b[_0x2ade4d(0x164)]===_0x3a96ce&&Number[_0x2ade4d(0x174)](_0x548c9b[_0x2ade4d(0x154)])&&Number[_0x2ade4d(0x174)](_0x548c9b[_0x2ade4d(0x143)])&&Number[_0x2ade4d(0x174)](_0x548c9b[_0x2ade4d(0x13f)])&&_0x548c9b[_0x2ade4d(0x154)]>=0x23a2+0xab0+-0x2e52&&_0x548c9b[_0x2ade4d(0x143)]>=0x1367*0x2+0x1976+-0x4044&&_0x548c9b[_0x2ade4d(0x143)]<=_0x548c9b[_0x2ade4d(0x154)]&&_0x548c9b[_0x2ade4d(0x13f)]>=0x269a+0x1049*-0x1+-0x1651&&_0x548c9b[_0x2ade4d(0x13f)]<=_0x548c9b[_0x2ade4d(0x154)]&&(_0x548c9b[_0x2ade4d(0x13b)]===undefined||Number[_0x2ade4d(0x174)](_0x548c9b[_0x2ade4d(0x13b)])&&_0x548c9b[_0x2ade4d(0x13b)]>=-0x1b99*0x1+-0x37e+-0x638*-0x5&&_0x548c9b[_0x2ade4d(0x13b)]<=-0x1b94*0x1+-0x1*-0x343+0x1a45)&&typeof _0x548c9b[_0x2ade4d(0x107)]===_0x2ade4d(0xfe)?{'snapshotEnd':_0x548c9b[_0x2ade4d(0x154)],'nextEnd':_0x548c9b[_0x2ade4d(0x143)],'fileAnchor':_0x548c9b[_0x2ade4d(0x107)],'anchorBytes':_0x548c9b[_0x2ade4d(0x13f)],..._0x548c9b[_0x2ade4d(0x13b)]===undefined?{}:{'readLimit':_0x548c9b[_0x2ade4d(0x13b)]}}:undefined;}catch{return undefined;}}const ACTIVE_HISTORY_CURSOR_PREFIX=_0x2beec3(0x134);function encodeActiveHistoryCursor(_0x2da069){const _0x53704a=_0x2beec3;return''+ACTIVE_HISTORY_CURSOR_PREFIX+Buffer[_0x53704a(0x153)](JSON[_0x53704a(0x14d)](_0x2da069))[_0x53704a(0x159)](_0x53704a(0xff));}function decodeActiveHistoryCursor(_0x2b7036,_0x5f848d){const _0x42065b=_0x2beec3;if(_0x2b7036===undefined||!_0x2b7036[_0x42065b(0x165)](ACTIVE_HISTORY_CURSOR_PREFIX))return undefined;try{const _0x4058fa=JSON[_0x42065b(0x141)](Buffer[_0x42065b(0x153)](_0x2b7036[_0x42065b(0x113)](ACTIVE_HISTORY_CURSOR_PREFIX[_0x42065b(0x121)]),_0x42065b(0xff))[_0x42065b(0x159)](_0x42065b(0x163)));if(_0x4058fa[_0x42065b(0x164)]!==_0x5f848d||_0x4058fa[_0x42065b(0x14f)]!==_0x42065b(0x106)&&_0x4058fa[_0x42065b(0x14f)]!==_0x42065b(0x12f)||typeof _0x4058fa[_0x42065b(0x11d)]!==_0x42065b(0x16e)||!Number[_0x42065b(0x10e)](_0x4058fa[_0x42065b(0x11d)])||_0x4058fa[_0x42065b(0x11d)]<0x6cf+-0x1310+0xc41||_0x4058fa[_0x42065b(0x13a)]!==null&&typeof _0x4058fa[_0x42065b(0x13a)]!==_0x42065b(0xfe))throw new Error(_0x42065b(0x152));return _0x4058fa;}catch{throw new Error(_0x42065b(0x152));}}function _0x4960(_0x405945,_0x393c97){_0x405945=_0x405945-(0x97*-0x38+-0x98c*-0x1+-0xc3c*-0x2);const _0x4cd2a7=_0x370a();let _0x11e44c=_0x4cd2a7[_0x405945];if(_0x4960['OLTGYH']===undefined){var _0x103604=function(_0x2d94a8){const _0x4d3ba2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4431a1='',_0x52ddec='';for(let _0x4d8b49=0x3f9*0x1+0x2b9+0x2*-0x359,_0x577017,_0x41c779,_0x3e6136=-0x14ab+0xf5a+-0x1*-0x551;_0x41c779=_0x2d94a8['charAt'](_0x3e6136++);~_0x41c779&&(_0x577017=_0x4d8b49%(-0x209a+0xad5*-0x2+-0x3*-0x1218)?_0x577017*(-0x2d4*0x6+0x283*0x7+0x5d*-0x1)+_0x41c779:_0x41c779,_0x4d8b49++%(0x845*-0x3+0x41*0x68+-0x195))?_0x4431a1+=String['fromCharCode'](-0x65*0x4+0x2*-0x3fa+0x181*0x7&_0x577017>>(-(-0x16d3+-0x2*0xf40+0x1*0x3555)*_0x4d8b49&0x207b*-0x1+-0x1*0x36a+-0xf*-0x265)):-0xff6+-0xc9b+0x1c91){_0x41c779=_0x4d3ba2['indexOf'](_0x41c779);}for(let _0x542838=0x76d+-0x1c47+0x14da,_0x5904ec=_0x4431a1['length'];_0x542838<_0x5904ec;_0x542838++){_0x52ddec+='%'+('00'+_0x4431a1['charCodeAt'](_0x542838)['toString'](-0x1d2a+-0x83f+0x2579))['slice'](-(0xff8+-0x23dd*0x1+-0x13e7*-0x1));}return decodeURIComponent(_0x52ddec);};_0x4960['JisKiL']=_0x103604,_0x4960['gjVQFl']={},_0x4960['OLTGYH']=!![];}const _0x12332d=_0x4cd2a7[-0xa*-0x79+-0x4c4+0x2*0x5];_0x4960['XQmFrF']!==_0x12332d&&(_0x4960['gjVQFl']={},_0x4960['XQmFrF']=_0x12332d);const _0x49da13=_0x4960['gjVQFl'][_0x405945];return _0x49da13===undefined?(_0x11e44c=_0x4960['JisKiL'](_0x11e44c),_0x4960['gjVQFl'][_0x405945]=_0x11e44c):_0x11e44c=_0x49da13,_0x11e44c;}function latestTurnActivityAt(_0x2dc104){const _0x4714bb=_0x2beec3;return Math[_0x4714bb(0x122)](_0x2dc104[_0x4714bb(0x150)]??0x25ea*0x1+-0x1*-0x5b5+-0x2b9f,_0x2dc104[_0x4714bb(0x116)]??-0x22e9*0x1+-0x1*0x943+0x2*0x1616);}function oldestTurnActivityAt(_0x16e024){const _0x10242d=_0x2beec3;return _0x16e024[_0x10242d(0x121)]===-0x17ee+0x1b7b+0x1*-0x38d?-0xfa3+-0x1d55+0x59f*0x8:Math[_0x10242d(0x112)](..._0x16e024[_0x10242d(0x130)](latestTurnActivityAt));}function sameConversationTurn(_0x35df50,_0x52538e){const _0x244e30=_0x2beec3;if(_0x35df50['id']===_0x52538e['id'])return!![];if(_0x35df50[_0x244e30(0x15d)]!==null&&_0x35df50[_0x244e30(0x15d)]===_0x52538e[_0x244e30(0x15d)])return!![];const _0x4d441c=conversationClientMessageId(_0x35df50);return _0x4d441c!==null&&_0x4d441c===conversationClientMessageId(_0x52538e);}function conversationClientMessageId(_0x537152){const _0x36792f=_0x2beec3;for(const _0x3f1de7 of _0x537152[_0x36792f(0x14e)]){if(_0x3f1de7[_0x36792f(0x145)]!==_0x36792f(0x139)||!isPlainRecord(_0x3f1de7[_0x36792f(0x108)]))continue;const _0x2ce272=_0x3f1de7[_0x36792f(0x108)][_0x36792f(0x14c)];if(typeof _0x2ce272===_0x36792f(0xfe)&&_0x2ce272[_0x36792f(0x121)]>-0x105*0x14+-0x91*0x31+-0x91*-0x55)return _0x2ce272;}return null;}function _0x370a(){const _0x2671c1=['z2v0qwDLBNrtzxnZAw9U','Aw1Hz2vbDhrHy2HTzw50CW','AxnjBNrLz2vY','BgLTAxq','Dhj1BMnHDgvK','yxr0ywnOBwvUDhm','CMvHza','AgfZtwfUywDLzefJDgL2zvj1BG','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5UyxrPDMuTCMvHzc5JB21WBgv0zwq','C2L6zq','DhvYBNm','u1rbuLrjtKC','C3rYAw5N','yMfZzty0DxjS','CMvXDwLYzq','ndi3uuPhCwLs','CMvHze1HBMfNzwrby3rPDMu','DMfSDwvZ','zMLSDgvY','CMvHze9MzMLJAwfSq29UDMvYC2f0Aw9U','uLvoveLnrq','zMLSzufUy2HVCG','Cgf5Bg9Hza','BgfZDeLUzgv4t2y','C2v0','BMf0AxzL','mJyYotiWAwjuyvPe','CMvHze9MzMLJAwfS','AxngAw5PDgu','BwfUywDLzfj1BM5LCLr1CM4','mZi0mdm4meDICeLnAq','CMvHzenVBNzLCNnHDgLVBKHPC3rVCNK','BwLU','C2XPy2u','C2v0rxH0zxjUywXby3rPDML0Eq','tKfusvzfx1rsqu5tq1jjufrFsu5dt01qtevurq','y29TCgXLDgvKqxq','y3jLyxrLzef0','ywn0AxzLsgLZDg9YEvjLywrZ','ChjLzMv0y2Hby3rPDMviAxn0B3j5','C29Tzq','BM93','CNvUBMvYCW','yMvMB3jLqxq','zMXHDe1HCa','ntu1ndjnyvfWCfe','y3DK','BgvUz3rO','Bwf4','mJKWmtGWmZnYBgXpv3u','mtqYndq5BNrxsK1Y','CMvHze5HDgL2zq','zMLUzeXHC3rjBMrLEa','uevoreLorW','Dg9VBfvZzuLK','yxzHAwXHyMXL','AgfZ','CMvHzfj1BM5LCKHPC3rVCNK','mtyYsNDuzKDH','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5HDhrHy2HTzw50lxnVDxjJzs1YzwfKlMnVBxbSzxrLza','C291CMnL','t0zgsunjquW','BwfW','CgfNzq','rvHurvjoquW','y2f0y2G','BwfYlwfJDgL2zs1OAxn0B3j5oJe6','C3rHDhvZ','y3vYC29YuMvZzxq','CMvHzev4DgvYBMfSqwn0AxzPDhK','mZvzCxvYqM0','DxnLCL9TzxnZywDL','y3vYC29Y','CMvHzeXPBwL0','CNvUDgLTzq','z2v0','zxH0zxjUywXtzxnZAw9Uswq','yw5JAg9YqNL0zxm','B3b0Aw9UCW','CgfYC2u','CMvHzef0','BMv4DevUza','C25HChnOB3rtzxf1zw5Jzq','A2LUza','BgLZDfj1BNngB3jtzxnZAw9U','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','ywnJzxb0C1rYDw5JyxrLze5HDgL2zuHPC3rVCNK','DgfRzufJDgL2zuHPC3rVCNLszwfK','DxnLCL9PBNb1Df9Yzxf1zxn0','CNvUBMvY','y2XPzw50twvZC2fNzuLK','C3rYAw5NAwz5','AxrLBxm','C3rHz2u','C3rHCNrLzef0','odeYnJb1CwDps2C','rvzftLrFq1vsu09sx0LovKfmsuq','zNjVBq','C25HChnOB3rfBMq','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','CMvNAxn0zxjoyxrPDMu','CM91BMq','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','Dg9tDhjPBMC','BMf0AxzLq29UDhjVBa','Bgf0zxn0vMLZAwjSzuf0','mtbSz2vNB2i','CNvUswq','Dg9VBf9JywXS','BMv4Den1CNnVCG','mti4mtuZELjswg9s','BwfUywDLzfj1BKzVCK5HDgL2zvr1CM4','zgvSzxrL','DxrMoa','C2vZC2LVBKLK','C3rHCNrZv2L0Aa','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5VzMzPy2LHBc1YzwfKlMnVBxbSzxrLza','Aw5JB21WBgv0zu5HDgL2zq','q0foq0vmteLorW','y2fWywjPBgL0AwvZ','zMLUza','CMvXDwvZDeLK','yxr0ywnOtMf0AxzLsw1Hz2vZ','vu5bvKfjtefcteu','BNvTyMvY','uLvotKLorW','B2zMAwnPywW','tufsx01btKfhruq'];_0x370a=function(){return _0x2671c1;};return _0x370a();}function sourceRank(_0x9547b2){const _0x290ace=_0x2beec3;if(_0x9547b2===_0x290ace(0x170))return 0x3*-0xa02+0xa55+-0x4*-0x4ed;if(_0x9547b2===_0x290ace(0x10b))return-0xd27*0x1+-0x1*0x1a49+0x2772;return-0x92*-0x16+-0x12e8+-0xb5*-0x9;}
2
+ const _0x30de40=_0x18e7;(function(_0x3f31cb,_0x35dc7a){const _0x389de5=_0x18e7,_0xea2779=_0x3f31cb();while(!![]){try{const _0x44e711=-parseInt(_0x389de5(0x12f))/(-0x215f+0x51a*-0x3+0x2*0x1857)+-parseInt(_0x389de5(0x15c))/(0x1*-0xe75+-0x25f*0x9+0x23ce)*(parseInt(_0x389de5(0x132))/(-0x3*-0xb95+-0x245e+0x1a2))+parseInt(_0x389de5(0x155))/(0x14ed+-0x22e7+-0x9*-0x18e)*(parseInt(_0x389de5(0x105))/(-0xd*-0x45+-0x124e+0xed2))+-parseInt(_0x389de5(0x128))/(-0xf3a+-0x148f+0x23cf)*(parseInt(_0x389de5(0x158))/(0x181d+0xdff+-0x2615))+-parseInt(_0x389de5(0x10f))/(-0x21e3+-0x9db+0x35e*0xd)+-parseInt(_0x389de5(0x14a))/(0x1*-0x2131+0x10be+0x107c)*(parseInt(_0x389de5(0x166))/(-0x278+0x1f02+-0x1c80))+parseInt(_0x389de5(0x171))/(0x2*0x4c5+-0x1*-0x13ff+-0x1d7e);if(_0x44e711===_0x35dc7a)break;else _0xea2779['push'](_0xea2779['shift']());}catch(_0x42df25){_0xea2779['push'](_0xea2779['shift']());}}}(_0x507d,0xb3b4+0x32d3d+-0x53*0x4a));import{discoverNativeSessions,readNativeSession}from'../native-session-history.js';import{coalesceImageGenerationItems}from'../runner/codex/conversation-parser.js';import{nativeConversationPage}from'../util/runner-native-session-parsers.js';import{isPlainRecord}from'../util/node-operation-parsers.js';import{nodeLog}from'../operational.js';export function hasManagedActiveRun(_0xd4116b,_0x3a9e72){const _0x36eb27=_0x18e7;return _0x3a9e72[_0x36eb27(0x10c)]===_0x36eb27(0x11d)&&_0xd4116b[_0x36eb27(0x112)](_0x3a9e72['id'])[_0x36eb27(0x125)](_0x46de16=>_0x46de16[_0x36eb27(0x161)]===_0x36eb27(0x11f)||_0x46de16[_0x36eb27(0x161)]===_0x36eb27(0x140)||_0x46de16[_0x36eb27(0x161)]===_0x36eb27(0x13e));}export function convergeConversationWatchPage(_0x2a2269,_0x5098b0,_0x544f5d,_0x260920){const _0x182de2=_0x18e7,_0x1ac161=isConversationHistorySource(_0x260920)?_0x260920:_0x2a2269?.[_0x182de2(0x17b)];if(_0x2a2269===undefined||_0x1ac161===undefined||sourceRank(_0x544f5d[_0x182de2(0x17b)])>=sourceRank(_0x1ac161))return{'page':_0x544f5d,'authority':_0x544f5d[_0x182de2(0x17b)]};if(_0x2a2269[_0x182de2(0x145)][_0x182de2(0x12c)]===-0x1*-0xc0b+0x1aa1*-0x1+0xe96)return{'page':_0x544f5d,'authority':_0x1ac161};const _0x5da2bc=_0x544f5d[_0x182de2(0x145)][_0x182de2(0x13d)](_0x161beb=>_0x2a2269[_0x182de2(0x145)][_0x182de2(0x125)](_0x4ba6b1=>sameConversationTurn(_0x4ba6b1,_0x161beb))),_0x45c2aa=_0x5da2bc>=-0x738+-0x2035+0x276d*0x1||_0x5098b0===undefined?-(-0x7e5+-0x22a7+-0x3*-0xe2f):_0x544f5d[_0x182de2(0x145)][_0x182de2(0x13d)](_0x34a4b9=>_0x5098b0[_0x182de2(0x145)][_0x182de2(0x125)](_0x92450b=>sameConversationTurn(_0x92450b,_0x34a4b9))),_0xed8aa4=Math[_0x182de2(0x16b)](_0x5da2bc,_0x45c2aa);if(_0xed8aa4<0x1af9*-0x1+-0x247f*0x1+-0x2a5*-0x18)return{'page':_0x2a2269,'authority':_0x1ac161};const _0x37c77d=_0x544f5d[_0x182de2(0x145)][_0x182de2(0x15f)](_0xed8aa4+(-0x925+-0xf8d+0x1*0x18b3))[_0x182de2(0x115)](_0x3351a3=>!_0x2a2269[_0x182de2(0x145)][_0x182de2(0x125)](_0x97e091=>sameConversationTurn(_0x97e091,_0x3351a3)));if(_0x37c77d[_0x182de2(0x12c)]===0x15b4+0x10b9+-0x266d)return{'page':_0x2a2269,'authority':_0x1ac161};return{'page':{..._0x2a2269,'source':_0x544f5d[_0x182de2(0x17b)],'snapshotSequence':Math[_0x182de2(0x16b)](_0x2a2269[_0x182de2(0x14b)],_0x544f5d[_0x182de2(0x14b)]),'readAt':_0x544f5d[_0x182de2(0x156)],'latestVisibleAt':_0x544f5d[_0x182de2(0x120)]??_0x2a2269[_0x182de2(0x120)],'turns':[..._0x2a2269[_0x182de2(0x145)],..._0x37c77d]},'authority':_0x1ac161};}export function composeConversationRuntimePage(_0x101f1c,_0x43458c){const _0x17b0e8=_0x18e7;if(_0x101f1c===undefined)return _0x43458c;const _0x4c2ac6=[..._0x101f1c[_0x17b0e8(0x145)]];for(const _0x52f922 of _0x43458c[_0x17b0e8(0x145)]){const _0x355d90=_0x4c2ac6[_0x17b0e8(0x157)](_0x5c3445=>sameConversationTurn(_0x5c3445,_0x52f922));if(_0x355d90<-0x209a+0x1*0x1142+0xf58)insertConversationTurnChronologically(_0x4c2ac6,_0x52f922);else _0x4c2ac6[_0x355d90]=_0x52f922;}return{..._0x43458c,'nextCursor':_0x101f1c[_0x17b0e8(0x164)],'turns':_0x4c2ac6};}function insertConversationTurnChronologically(_0xa68541,_0x57fd0f){const _0x76e984=_0x18e7,_0x580780=earliestTurnActivityAt(_0x57fd0f);if(_0x580780===0x269a+0x2255+-0x48ef*0x1){_0xa68541[_0x76e984(0x13f)](_0x57fd0f);return;}const _0x403875=_0xa68541[_0x76e984(0x157)](_0x1aa3d1=>{const _0x1b9291=earliestTurnActivityAt(_0x1aa3d1);return _0x1b9291>-0x16be*-0x1+0x2053+-0x3711&&_0x1b9291>_0x580780;});if(_0x403875<0x5*0x11c+-0x1995+0x1409)_0xa68541[_0x76e984(0x13f)](_0x57fd0f);else _0xa68541[_0x76e984(0x12d)](_0x403875,0x1935+-0x94+-0xd*0x1e5,_0x57fd0f);}function earliestTurnActivityAt(_0x5a034f){const _0x3335cb=_0x18e7,_0x35fce6=[_0x5a034f[_0x3335cb(0x103)],_0x5a034f[_0x3335cb(0x151)],..._0x5a034f[_0x3335cb(0x17a)][_0x3335cb(0x146)](_0x1670ea=>_0x1670ea[_0x3335cb(0x103)])][_0x3335cb(0x115)](_0x3b06af=>typeof _0x3b06af===_0x3335cb(0x13b)&&Number[_0x3335cb(0x124)](_0x3b06af)&&_0x3b06af>0x16*0x8c+0x821*-0x1+-0x3e7);return _0x35fce6[_0x3335cb(0x12c)]===-0x88+-0x4b8+0x540?-0x8d7+0x14*0x194+-0x16b9:Math[_0x3335cb(0x169)](..._0x35fce6);}function isConversationHistorySource(_0x3ca764){const _0xec9264=_0x18e7;return _0x3ca764===_0xec9264(0x143)||_0x3ca764===_0xec9264(0x13a)||_0x3ca764===_0xec9264(0x17d);}export class ConversationHistoryService{[_0x30de40(0x11e)];constructor(_0x4cf271){const _0x4f6d9c=_0x30de40;this[_0x4f6d9c(0x11e)]=_0x4cf271;}async[_0x30de40(0x16d)](_0x41a309,_0x150a42){const _0x3dcbe5=_0x30de40,_0x27440d=this[_0x3dcbe5(0x11e)][_0x3dcbe5(0x14b)](),_0x5d76ae=Date[_0x3dcbe5(0x147)](),_0x3d8e9c=decodeActiveHistoryCursor(_0x150a42[_0x3dcbe5(0x12b)],_0x41a309['id']);if(_0x3d8e9c!==undefined||this[_0x3dcbe5(0x11e)][_0x3dcbe5(0x11c)](_0x41a309))return this[_0x3dcbe5(0x10b)](_0x41a309,_0x150a42,_0x3d8e9c,_0x27440d,_0x5d76ae);const _0x43e5a0=await this[_0x3dcbe5(0x142)](_0x41a309,_0x150a42);if(_0x43e5a0[_0x3dcbe5(0x12a)]?.[_0x3dcbe5(0x17b)]===_0x3dcbe5(0x13a))return this[_0x3dcbe5(0x12a)](_0x43e5a0[_0x3dcbe5(0x12a)][_0x3dcbe5(0x164)],_0x43e5a0[_0x3dcbe5(0x12a)][_0x3dcbe5(0x145)],{'snapshotSequence':_0x27440d,'source':_0x3dcbe5(0x13a),'readAt':_0x5d76ae});let _0x3bea07=_0x43e5a0[_0x3dcbe5(0x12a)]?.[_0x3dcbe5(0x17b)]===_0x3dcbe5(0x143)?_0x43e5a0[_0x3dcbe5(0x12a)]:undefined;if(_0x3bea07!==undefined){const _0x1a9f01=Math[_0x3dcbe5(0x169)](Math[_0x3dcbe5(0x16b)](_0x150a42[_0x3dcbe5(0x165)]??-0x7e2+-0x1e2*0x1+-0x6e*-0x17,0x4c0+0x271*0x7+0x5*-0x45e),-0x1220+0x23b2+-0xf9e),_0x32e4b7=this[_0x3dcbe5(0x11e)][_0x3dcbe5(0x17d)][_0x3dcbe5(0x16f)](_0x41a309['id'])===undefined?[]:this[_0x3dcbe5(0x11e)][_0x3dcbe5(0x17d)][_0x3dcbe5(0x175)]({'sessionId':_0x41a309['id'],'limit':0x1f4})[_0x3dcbe5(0x145)],_0x58ed17=new Set(_0x3bea07[_0x3dcbe5(0x145)][_0x3dcbe5(0x133)](_0x5474e7=>_0x5474e7[_0x3dcbe5(0x179)]===null?[]:[_0x5474e7[_0x3dcbe5(0x179)]])),_0x3a6c97=_0x32e4b7[_0x3dcbe5(0x13d)](_0x1b3626=>_0x1b3626[_0x3dcbe5(0x179)]!==null&&_0x58ed17[_0x3dcbe5(0x127)](_0x1b3626[_0x3dcbe5(0x179)])),_0x36a7a7=_0x3bea07[_0x3dcbe5(0x145)][_0x3dcbe5(0x12c)]>0x3*-0x93+-0x1904*0x1+0xb9*0x25,_0x496284=_0x32e4b7[_0x3dcbe5(0x115)]((_0x122e80,_0x402e50)=>(_0x122e80[_0x3dcbe5(0x179)]===null||!_0x58ed17[_0x3dcbe5(0x127)](_0x122e80[_0x3dcbe5(0x179)]))&&(!_0x36a7a7||_0x402e50>_0x3a6c97)),_0x3147f1=_0x496284[_0x3dcbe5(0x15f)](-_0x1a9f01);if(_0x150a42[_0x3dcbe5(0x12b)]===undefined&&_0x3147f1[_0x3dcbe5(0x12c)]>0x5b*0x5b+0x21d3+0x46*-0xf2&&_0x3bea07[_0x3dcbe5(0x145)][_0x3dcbe5(0x12c)]+_0x3147f1[_0x3dcbe5(0x12c)]>_0x1a9f01){const _0x48ccd0=Math[_0x3dcbe5(0x169)](_0x3147f1[_0x3dcbe5(0x12c)],Math[_0x3dcbe5(0x16b)](0x3*0xa1e+-0x1a9*0xd+-0x8c5,_0x1a9f01-(0x53+-0x13*0x18a+0x1cec))),_0x21a024=await this[_0x3dcbe5(0x148)](_0x41a309,{..._0x150a42,'limit':_0x1a9f01-_0x48ccd0});if(_0x21a024!==undefined)_0x3bea07={..._0x21a024,'source':_0x3dcbe5(0x143)};}const _0x493055=await this[_0x3dcbe5(0x16c)](_0x41a309,_0x3bea07[_0x3dcbe5(0x145)]),_0x274814=new Set(_0x493055[_0x3dcbe5(0x133)](_0x61c0fb=>_0x61c0fb[_0x3dcbe5(0x179)]===null?[]:[_0x61c0fb[_0x3dcbe5(0x179)]])),_0x5d7c79=new Map();for(const _0x475b70 of _0x32e4b7){if(_0x475b70[_0x3dcbe5(0x179)]===null||!_0x274814[_0x3dcbe5(0x127)](_0x475b70[_0x3dcbe5(0x179)]))continue;const _0x5b670d=_0x475b70[_0x3dcbe5(0x17a)][_0x3dcbe5(0x115)](_0x10c9aa=>_0x10c9aa[_0x3dcbe5(0x106)]===_0x3dcbe5(0x176)&&_0x10c9aa[_0x3dcbe5(0x161)]===_0x3dcbe5(0x10d));if(_0x5b670d[_0x3dcbe5(0x12c)]>0x13a*-0x7+-0xabe+0x1354)_0x5d7c79[_0x3dcbe5(0x134)](_0x475b70[_0x3dcbe5(0x179)],_0x5b670d);}const _0x3e5c14=Math[_0x3dcbe5(0x16b)](0x6*-0x4eb+-0x1926+0x36a8,_0x1a9f01-_0x493055[_0x3dcbe5(0x12c)]),_0xce9062=_0x150a42[_0x3dcbe5(0x12b)]===undefined?_0x3147f1:[],_0x3249cb=_0x3e5c14===-0x6b*-0x1d+-0x43*-0x29+-0xe1*0x1a?[]:_0xce9062[_0x3dcbe5(0x15f)](-_0x3e5c14),_0x3d7e5e=new Set([..._0x3249cb[_0x3dcbe5(0x133)](_0x3ab0b4=>_0x3ab0b4[_0x3dcbe5(0x17a)][_0x3dcbe5(0x133)](_0x105177=>{const _0x1b470b=_0x3dcbe5,_0x5ababa=_0x105177[_0x1b470b(0x106)]===_0x1b470b(0x176)&&isPlainRecord(_0x105177[_0x1b470b(0x16a)])?_0x105177[_0x1b470b(0x16a)][_0x1b470b(0x137)]:undefined;return typeof _0x5ababa===_0x1b470b(0x10a)?[_0x5ababa]:[];})),...[..._0x5d7c79[_0x3dcbe5(0x108)]()][_0x3dcbe5(0x133)](_0x1a8d4f=>_0x1a8d4f[_0x3dcbe5(0x133)](_0x836c45=>{const _0x2610bf=_0x3dcbe5,_0xdfb36=isPlainRecord(_0x836c45[_0x2610bf(0x16a)])?_0x836c45[_0x2610bf(0x16a)][_0x2610bf(0x137)]:undefined;return typeof _0xdfb36===_0x2610bf(0x10a)?[_0xdfb36]:[];}))]),_0x4d7b49=[..._0x493055[_0x3dcbe5(0x146)](_0x121810=>{const _0x351ff4=_0x3dcbe5,_0x52a3f0=_0x121810[_0x351ff4(0x179)]===null?[]:_0x5d7c79[_0x351ff4(0x117)](_0x121810[_0x351ff4(0x179)])??[],_0x3ec1fe=[..._0x121810[_0x351ff4(0x17a)][_0x351ff4(0x115)](_0x2da40d=>_0x2da40d[_0x351ff4(0x106)]!==_0x351ff4(0x176)||!isPlainRecord(_0x2da40d[_0x351ff4(0x16a)])||typeof _0x2da40d[_0x351ff4(0x16a)][_0x351ff4(0x137)]!==_0x351ff4(0x10a)||!_0x3d7e5e[_0x351ff4(0x127)](_0x2da40d[_0x351ff4(0x16a)][_0x351ff4(0x137)])),..._0x52a3f0];return{..._0x121810,'items':_0x3ec1fe};})[_0x3dcbe5(0x115)](_0x460b87=>_0x460b87[_0x3dcbe5(0x17a)][_0x3dcbe5(0x12c)]>0x3d4+-0xae4*0x1+-0x10*-0x71),..._0x3249cb];return this[_0x3dcbe5(0x12a)](_0x3bea07[_0x3dcbe5(0x164)],_0x4d7b49,{'snapshotSequence':_0x27440d,'source':_0x3dcbe5(0x143),'readAt':_0x5d76ae});}if(_0x41a309[_0x3dcbe5(0x12e)]!==null&&_0x43e5a0[_0x3dcbe5(0x129)]){const _0x917cfe=this[_0x3dcbe5(0x11e)][_0x3dcbe5(0x17d)][_0x3dcbe5(0x175)]({'sessionId':_0x41a309['id'],..._0x150a42});if(_0x917cfe[_0x3dcbe5(0x145)][_0x3dcbe5(0x12c)]===0xd03*-0x1+-0x487*0x8+0x1069*0x3)throw new Error(_0x3dcbe5(0x141));return this[_0x3dcbe5(0x12a)](_0x917cfe[_0x3dcbe5(0x164)],_0x917cfe[_0x3dcbe5(0x145)],{'snapshotSequence':_0x27440d,'source':_0x3dcbe5(0x17d),'readAt':_0x5d76ae});}if(_0x41a309[_0x3dcbe5(0x12e)]!==null&&_0x41a309[_0x3dcbe5(0x10c)]===_0x3dcbe5(0x15d))throw new Error(_0x3dcbe5(0x177));const _0x16af77=this[_0x3dcbe5(0x11e)][_0x3dcbe5(0x17d)][_0x3dcbe5(0x175)]({'sessionId':_0x41a309['id'],..._0x150a42});return this[_0x3dcbe5(0x12a)](_0x16af77[_0x3dcbe5(0x164)],_0x16af77[_0x3dcbe5(0x145)],{'snapshotSequence':_0x27440d,'source':_0x3dcbe5(0x17d),'readAt':_0x5d76ae});}async[_0x30de40(0x142)](_0x462b76,_0x432271){const _0x4ca539=_0x30de40,_0x155043=this[_0x4ca539(0x11e)][_0x4ca539(0x162)][_0x4ca539(0x152)](_0x462b76[_0x4ca539(0x135)]);let _0x342728=![];const _0x6e04a3=await _0x155043[_0x4ca539(0x160)]({'native':async()=>{const _0x25a31f=_0x4ca539,_0x4b44bf=performance[_0x25a31f(0x147)]();let _0x1bb29b;try{_0x1bb29b=await this[_0x25a31f(0x111)](_0x462b76,_0x432271[_0x25a31f(0x12b)],_0x432271[_0x25a31f(0x165)]);}catch{return undefined;}finally{const _0x570fdc=Math[_0x25a31f(0x14c)](performance[_0x25a31f(0x147)]()-_0x4b44bf);if(_0x570fdc>=0x17*0x151+0x6*0x9f+-0x2107)nodeLog(_0x25a31f(0x113),{'runner':_0x462b76[_0x25a31f(0x135)],'sessionId':_0x462b76['id'],'durationMs':_0x570fdc});}if(_0x1bb29b===undefined)return undefined;if(_0x1bb29b[_0x25a31f(0x14d)]===!![]&&(!_0x155043[_0x25a31f(0x119)]()||_0x1bb29b[_0x25a31f(0x17a)][_0x25a31f(0x12c)]===0x1bbf+0x2*-0x55c+-0x1107))return _0x342728=!![],undefined;const _0x13f4dd=this[_0x25a31f(0x11e)][_0x25a31f(0x17d)][_0x25a31f(0x16f)](_0x462b76['id'])===undefined?[]:this[_0x25a31f(0x11e)][_0x25a31f(0x17d)][_0x25a31f(0x175)]({'sessionId':_0x462b76['id'],'limit':0x1f4})[_0x25a31f(0x145)],_0x12627a=nativeConversationPage(_0x462b76,_0x1bb29b,_0x1bb29b[_0x25a31f(0x126)]===!![]?_0x432271[_0x25a31f(0x165)]===undefined?{}:{'limit':_0x432271[_0x25a31f(0x165)]}:_0x432271,_0x13f4dd,_0x28b958=>this[_0x25a31f(0x11e)][_0x25a31f(0x104)][_0x25a31f(0x102)](_0x462b76,_0x28b958));return _0x12627a;},'official':()=>this[_0x4ca539(0x148)](_0x462b76,_0x432271)});return{'page':_0x6e04a3,'incompleteNative':_0x342728};}async[_0x30de40(0x10b)](_0x1f54af,_0x6e6106,_0x3a27c2,_0x88a7f6,_0x597444){const _0x29e10d=_0x30de40,_0x379270=Math[_0x29e10d(0x169)](Math[_0x29e10d(0x16b)](_0x6e6106[_0x29e10d(0x165)]??-0x2*0x80b+0x6ea+-0x4a5*-0x2,0x8*-0x200+0xec*-0x1f+0x2c95),-0x5d3+-0x158f*-0x1+-0xdc8),_0x3ac16a=this[_0x29e10d(0x11e)][_0x29e10d(0x17d)][_0x29e10d(0x175)]({'sessionId':_0x1f54af['id'],'limit':0x1f4})[_0x29e10d(0x145)],_0x53c3b7=_0x3a27c2?.[_0x29e10d(0x136)]??oldestTurnActivityAt(_0x3ac16a);if(_0x3a27c2?.[_0x29e10d(0x144)]===_0x29e10d(0x159)){const _0x2ce751=await this[_0x29e10d(0x142)](_0x1f54af,{..._0x3a27c2[_0x29e10d(0x12b)]===null?{}:{'cursor':_0x3a27c2[_0x29e10d(0x12b)]},'limit':_0x379270}),_0x4ba1ce=_0x2ce751[_0x29e10d(0x12a)];if(_0x4ba1ce===undefined)return this[_0x29e10d(0x12a)](null,[],{'snapshotSequence':_0x88a7f6,'source':_0x29e10d(0x17d),'readAt':_0x597444});const _0x172aa7=_0x4ba1ce[_0x29e10d(0x17b)]===_0x29e10d(0x143)?await this[_0x29e10d(0x16c)](_0x1f54af,_0x4ba1ce[_0x29e10d(0x145)]):_0x4ba1ce[_0x29e10d(0x145)],_0x3724c1=_0x172aa7[_0x29e10d(0x115)](_0x718dab=>latestTurnActivityAt(_0x718dab)<_0x53c3b7);return this[_0x29e10d(0x12a)](_0x4ba1ce[_0x29e10d(0x164)]===null?null:encodeActiveHistoryCursor({'sessionId':_0x1f54af['id'],'stage':_0x29e10d(0x159),'beforeAt':_0x53c3b7,'cursor':_0x4ba1ce[_0x29e10d(0x164)]}),_0x3724c1,{'snapshotSequence':_0x88a7f6,'source':_0x4ba1ce[_0x29e10d(0x17b)],'readAt':_0x597444});}const _0x3adec4=this[_0x29e10d(0x11e)][_0x29e10d(0x17d)][_0x29e10d(0x175)]({'sessionId':_0x1f54af['id'],..._0x3a27c2?.[_0x29e10d(0x12b)]===null||_0x3a27c2===undefined?{}:{'cursor':_0x3a27c2[_0x29e10d(0x12b)]},'limit':_0x379270}),_0x27d52=_0x3adec4[_0x29e10d(0x164)]!==null?encodeActiveHistoryCursor({'sessionId':_0x1f54af['id'],'stage':_0x29e10d(0x178),'beforeAt':_0x53c3b7,'cursor':_0x3adec4[_0x29e10d(0x164)]}):_0x1f54af[_0x29e10d(0x12e)]===null?null:encodeActiveHistoryCursor({'sessionId':_0x1f54af['id'],'stage':_0x29e10d(0x159),'beforeAt':_0x53c3b7,'cursor':null});return this[_0x29e10d(0x12a)](_0x27d52,_0x3adec4[_0x29e10d(0x145)],{'snapshotSequence':_0x88a7f6,'source':_0x29e10d(0x17d),'readAt':_0x597444,'deferredOlderHistory':!![]});}async[_0x30de40(0x17e)](_0x5a9bbc){const _0x443ca0=_0x30de40,_0x5262d7=this[_0x443ca0(0x11e)][_0x443ca0(0x162)][_0x443ca0(0x152)](_0x5a9bbc[_0x443ca0(0x135)]);if(!_0x5262d7[_0x443ca0(0x123)](this[_0x443ca0(0x11e)][_0x443ca0(0x11a)]())){this[_0x443ca0(0x11e)][_0x443ca0(0x110)](_0x5a9bbc['id'],_0x443ca0(0x149));return;}const _0x33ffa5=await _0x5262d7[_0x443ca0(0x118)](_0x5a9bbc);if(_0x33ffa5!==undefined)this[_0x443ca0(0x11e)][_0x443ca0(0x110)](_0x5a9bbc['id'],_0x33ffa5);}async[_0x30de40(0x111)](_0x241c1f,_0x18dd73,_0x3f48ef=0x18d*0x17+-0xc*-0x123+0x7*-0x707){const _0x393ed0=_0x30de40;if(_0x241c1f[_0x393ed0(0x12e)]===null)return undefined;const _0x24c00c=nativeHistoryPageCursor(_0x18dd73,_0x241c1f['id']),_0x468714=await readNativeSession(_0x241c1f[_0x393ed0(0x135)],_0x241c1f[_0x393ed0(0x174)],_0x241c1f[_0x393ed0(0x12e)],_0x24c00c,_0x3f48ef);if(_0x468714!==undefined)return _0x468714;return await discoverNativeSessions(_0x241c1f[_0x393ed0(0x135)],_0x241c1f[_0x393ed0(0x174)]),readNativeSession(_0x241c1f[_0x393ed0(0x135)],_0x241c1f[_0x393ed0(0x174)],_0x241c1f[_0x393ed0(0x12e)],_0x24c00c,_0x3f48ef);}async[_0x30de40(0x16c)](_0xe6cf2e,_0x143ad6){const _0x253090=_0x30de40,_0xcea096=performance[_0x253090(0x147)](),_0x3d18fb=await this[_0x253090(0x111)](_0xe6cf2e),_0x10503b=Math[_0x253090(0x14c)](performance[_0x253090(0x147)]()-_0xcea096);if(_0x10503b>=0x3b*-0x1+-0x13f3+0x1528)nodeLog(_0x253090(0x13c),{'runner':_0xe6cf2e[_0x253090(0x135)],'sessionId':_0xe6cf2e['id'],'durationMs':_0x10503b});if(_0x3d18fb===undefined)return _0x143ad6;const _0x1d6187=new Map();for(const _0xb791da of _0x3d18fb[_0x253090(0x17a)]){if(_0xb791da[_0x253090(0x106)]!==_0x253090(0x168)||_0xb791da[_0x253090(0x130)]===undefined)continue;const _0x498fff=this[_0x253090(0x11e)][_0x253090(0x104)][_0x253090(0x102)](_0xe6cf2e,_0xb791da[_0x253090(0x130)]);if(_0x498fff[_0x253090(0x12c)]>0x16be+0x21b6*-0x1+0xaf8)_0x1d6187[_0x253090(0x134)](_0xb791da[_0x253090(0x16e)],_0x498fff);}if(_0x1d6187[_0x253090(0x15b)]===-0x90a+-0x536+0xe40)return _0x143ad6;return _0x143ad6[_0x253090(0x146)](_0x160a47=>({..._0x160a47,'items':coalesceImageGenerationItems(_0x160a47[_0x253090(0x17a)][_0x253090(0x146)](_0x4a3985=>{const _0x3d4c4e=_0x253090,_0x1e2a9d=_0x1d6187[_0x3d4c4e(0x117)](_0x4a3985['id'][_0x3d4c4e(0x15f)](_0x4a3985['id'][_0x3d4c4e(0x14e)](':')+(0xf3f+0x2a5*0xa+-0x29b0)));if(_0x1e2a9d===undefined||!isPlainRecord(_0x4a3985[_0x3d4c4e(0x16a)]))return _0x4a3985;return{..._0x4a3985,'payload':{..._0x4a3985[_0x3d4c4e(0x16a)],'attachments':_0x1e2a9d}};}))}));}async[_0x30de40(0x148)](_0x3331e1,_0x2facf2){const _0x4c31cc=_0x30de40,_0x426f6f=this[_0x4c31cc(0x11e)][_0x4c31cc(0x162)][_0x4c31cc(0x152)](_0x3331e1[_0x4c31cc(0x135)]);if(_0x3331e1[_0x4c31cc(0x12e)]===null||!_0x426f6f[_0x4c31cc(0x123)](this[_0x4c31cc(0x11e)][_0x4c31cc(0x11a)]()))return undefined;const _0x4e8164=performance[_0x4c31cc(0x147)]();try{return await _0x426f6f[_0x4c31cc(0x17c)](_0x3331e1,_0x2facf2,_0x20039a=>this[_0x4c31cc(0x114)](_0x3331e1,_0x20039a));}finally{const _0x204c37=Math[_0x4c31cc(0x14c)](performance[_0x4c31cc(0x147)]()-_0x4e8164);if(_0x204c37>=0x255b+-0xfc1*0x1+-0x14a0)nodeLog(_0x4c31cc(0x153),{'runner':_0x3331e1[_0x4c31cc(0x135)],'sessionId':_0x3331e1['id'],'durationMs':_0x204c37});}}[_0x30de40(0x114)](_0x400635,_0x5e7a59){const _0xa3ba7a=_0x30de40,_0x3a6569=this[_0xa3ba7a(0x11e)][_0xa3ba7a(0x162)][_0xa3ba7a(0x152)](_0x400635[_0xa3ba7a(0x135)])[_0xa3ba7a(0x109)](_0x5e7a59);if(_0x3a6569===undefined)return undefined;return this[_0xa3ba7a(0x11e)][_0xa3ba7a(0x17d)][_0xa3ba7a(0x175)]({'sessionId':_0x400635['id'],'limit':0x1f4})[_0xa3ba7a(0x145)][_0xa3ba7a(0x10e)](_0x950787=>_0x950787[_0xa3ba7a(0x179)]===_0x3a6569);}[_0x30de40(0x12a)](_0x37a4b2,_0x4b2993,_0x14e96c){const _0x5a7c74=_0x30de40;return{..._0x14e96c,'turns':_0x4b2993,'nextCursor':_0x37a4b2,'latestVisibleAt':Math[_0x5a7c74(0x16b)](-0x31*-0x65+0x19de+-0x7*0x675,..._0x4b2993[_0x5a7c74(0x146)](_0x181c20=>Math[_0x5a7c74(0x16b)](_0x181c20[_0x5a7c74(0x103)]??0x1*-0x16fa+0x1302*-0x2+0x3cfe,_0x181c20[_0x5a7c74(0x151)]??0x3*-0x20+0x2460+0x400*-0x9)))};}}function nativeHistoryPageCursor(_0x4d2e8b,_0x7fb24b){const _0x4783ad=_0x30de40;if(_0x4d2e8b===undefined)return undefined;try{const _0x5b10ae=JSON[_0x4783ad(0x14f)](Buffer[_0x4783ad(0x172)](_0x4d2e8b,_0x4783ad(0x139))[_0x4783ad(0x167)](_0x4783ad(0x116)));return _0x5b10ae[_0x4783ad(0x138)]===_0x7fb24b&&Number[_0x4783ad(0x131)](_0x5b10ae[_0x4783ad(0x107)])&&Number[_0x4783ad(0x131)](_0x5b10ae[_0x4783ad(0x173)])&&Number[_0x4783ad(0x131)](_0x5b10ae[_0x4783ad(0x150)])&&_0x5b10ae[_0x4783ad(0x107)]>=-0x247e+-0x1f6f+0x1*0x43ed&&_0x5b10ae[_0x4783ad(0x173)]>=0x99c+0x2382+-0x2d1e&&_0x5b10ae[_0x4783ad(0x173)]<=_0x5b10ae[_0x4783ad(0x107)]&&_0x5b10ae[_0x4783ad(0x150)]>=0xa69+-0xd39+0x28*0x12&&_0x5b10ae[_0x4783ad(0x150)]<=_0x5b10ae[_0x4783ad(0x107)]&&(_0x5b10ae[_0x4783ad(0x170)]===undefined||Number[_0x4783ad(0x131)](_0x5b10ae[_0x4783ad(0x170)])&&_0x5b10ae[_0x4783ad(0x170)]>=0x6b0+0x5ab*0x2+-0x1205&&_0x5b10ae[_0x4783ad(0x170)]<=-0x1a67+-0x1727+0x2*0x19c1)&&typeof _0x5b10ae[_0x4783ad(0x121)]===_0x4783ad(0x10a)?{'snapshotEnd':_0x5b10ae[_0x4783ad(0x107)],'nextEnd':_0x5b10ae[_0x4783ad(0x173)],'fileAnchor':_0x5b10ae[_0x4783ad(0x121)],'anchorBytes':_0x5b10ae[_0x4783ad(0x150)],..._0x5b10ae[_0x4783ad(0x170)]===undefined?{}:{'readLimit':_0x5b10ae[_0x4783ad(0x170)]}}:undefined;}catch{return undefined;}}const ACTIVE_HISTORY_CURSOR_PREFIX=_0x30de40(0x122);function encodeActiveHistoryCursor(_0x42aa4b){const _0x3fbf43=_0x30de40;return''+ACTIVE_HISTORY_CURSOR_PREFIX+Buffer[_0x3fbf43(0x172)](JSON[_0x3fbf43(0x163)](_0x42aa4b))[_0x3fbf43(0x167)](_0x3fbf43(0x139));}function decodeActiveHistoryCursor(_0x393e39,_0x1db72c){const _0x268777=_0x30de40;if(_0x393e39===undefined||!_0x393e39[_0x268777(0x11b)](ACTIVE_HISTORY_CURSOR_PREFIX))return undefined;try{const _0xb38966=JSON[_0x268777(0x14f)](Buffer[_0x268777(0x172)](_0x393e39[_0x268777(0x15f)](ACTIVE_HISTORY_CURSOR_PREFIX[_0x268777(0x12c)]),_0x268777(0x139))[_0x268777(0x167)](_0x268777(0x116)));if(_0xb38966[_0x268777(0x138)]!==_0x1db72c||_0xb38966[_0x268777(0x144)]!==_0x268777(0x178)&&_0xb38966[_0x268777(0x144)]!==_0x268777(0x159)||typeof _0xb38966[_0x268777(0x136)]!==_0x268777(0x13b)||!Number[_0x268777(0x124)](_0xb38966[_0x268777(0x136)])||_0xb38966[_0x268777(0x136)]<-0x1822*-0x1+-0x169*-0xb+-0x27a5||_0xb38966[_0x268777(0x12b)]!==null&&typeof _0xb38966[_0x268777(0x12b)]!==_0x268777(0x10a))throw new Error(_0x268777(0x154));return _0xb38966;}catch{throw new Error(_0x268777(0x154));}}function latestTurnActivityAt(_0x41da72){const _0x58fe70=_0x30de40;return Math[_0x58fe70(0x16b)](_0x41da72[_0x58fe70(0x103)]??0xac2+0x2*-0x46c+-0x1ea,_0x41da72[_0x58fe70(0x151)]??0xf*-0x6a+-0x7ce+0xe04*0x1);}function oldestTurnActivityAt(_0x11f99d){const _0x882e81=_0x30de40;return _0x11f99d[_0x882e81(0x12c)]===0x7ee+-0x83*0x27+0xc07?0x75b+0x214f+-0xd8e*0x3:Math[_0x882e81(0x169)](..._0x11f99d[_0x882e81(0x146)](latestTurnActivityAt));}function sameConversationTurn(_0x9a1256,_0x55c32d){const _0x47e98f=_0x30de40;if(_0x9a1256['id']===_0x55c32d['id'])return!![];if(_0x9a1256[_0x47e98f(0x179)]!==null&&_0x9a1256[_0x47e98f(0x179)]===_0x55c32d[_0x47e98f(0x179)])return!![];const _0x52735b=conversationClientMessageId(_0x9a1256);return _0x52735b!==null&&_0x52735b===conversationClientMessageId(_0x55c32d);}function _0x18e7(_0x2f0a3e,_0x29edfc){_0x2f0a3e=_0x2f0a3e-(-0x20*-0x115+-0x1058+-0x1146);const _0x112136=_0x507d();let _0x2a4d0f=_0x112136[_0x2f0a3e];if(_0x18e7['MIiNmD']===undefined){var _0x19c3b5=function(_0x10a59e){const _0x56599e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41876c='',_0x69dbf4='';for(let _0x2610c2=-0x163b+0x5*-0x31d+0x25cc,_0x2d6410,_0x2f658f,_0x5676bc=0x14f*0x2+-0xf2+-0x1ac;_0x2f658f=_0x10a59e['charAt'](_0x5676bc++);~_0x2f658f&&(_0x2d6410=_0x2610c2%(-0x2035+0x4fd*-0x1+0x2536)?_0x2d6410*(-0x22a7+-0x8*0x1f2+0x3277)+_0x2f658f:_0x2f658f,_0x2610c2++%(0x247f*-0x1+0x948+-0x1b3b*-0x1))?_0x41876c+=String['fromCharCode'](-0x925+-0xf8d+0x1*0x19b1&_0x2d6410>>(-(0x15b4+0x10b9+-0x266b)*_0x2610c2&-0x209a+0x1*0x1142+0xf5e)):0x269a+0x2255+-0x48ef*0x1){_0x2f658f=_0x56599e['indexOf'](_0x2f658f);}for(let _0x6283b5=-0x16be*-0x1+0x2053+-0x3711,_0x49cde5=_0x41876c['length'];_0x6283b5<_0x49cde5;_0x6283b5++){_0x69dbf4+='%'+('00'+_0x41876c['charCodeAt'](_0x6283b5)['toString'](0x5*0x11c+-0x1995+0x1419))['slice'](-(0x1935+-0x94+-0xb*0x23d));}return decodeURIComponent(_0x69dbf4);};_0x18e7['YSaiYz']=_0x19c3b5,_0x18e7['OvgaZH']={},_0x18e7['MIiNmD']=!![];}const _0x24e5a8=_0x112136[0x16*0x8c+0x821*-0x1+-0x3e7];_0x18e7['JppYqb']!==_0x24e5a8&&(_0x18e7['OvgaZH']={},_0x18e7['JppYqb']=_0x24e5a8);const _0x56365a=_0x18e7['OvgaZH'][_0x2f0a3e];return _0x56365a===undefined?(_0x2a4d0f=_0x18e7['YSaiYz'](_0x2a4d0f),_0x18e7['OvgaZH'][_0x2f0a3e]=_0x2a4d0f):_0x2a4d0f=_0x56365a,_0x2a4d0f;}function _0x507d(){const _0x4e2aaa=['CMvHze9MzMLJAwfS','vu5bvKfjtefcteu','ouvtCfrxsG','C25HChnOB3rtzxf1zw5Jzq','CM91BMq','Dhj1BMnHDgvK','BgfZDeLUzgv4t2y','CgfYC2u','yw5JAg9YqNL0zxm','y29TCgXLDgvKqxq','CMvXDwLYzq','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5VzMzPy2LHBc1YzwfKlMnVBxbSzxrLza','rvzftLrFq1vsu09sx0LovKfmsuq','mJq2mgL0Cujuva','CMvHzef0','zMLUzeLUzgv4','mtu4nJLgBwLLt2i','t0zgsunjquW','DxnLCL9TzxnZywDL','C2L6zq','mLH6zeHyzW','rvHurvjoquW','y2XPzw50twvZC2fNzuLK','C2XPy2u','CMvHzenVBNzLCNnHDgLVBKHPC3rVCNK','C3rHDhvZ','CNvUBMvYCW','C3rYAw5NAwz5','BMv4Den1CNnVCG','BgLTAxq','mte3mJyXmgLnA1PAua','Dg9tDhjPBMC','Dg9VBf9JywXS','BwLU','Cgf5Bg9Hza','Bwf4','yxr0ywnOtMf0AxzLsw1Hz2vZ','CMvHza','Dg9VBfvZzuLK','z2v0qwDLBNrtzxnZAw9U','CMvHzeXPBwL0','mtm0mZq5ndLpsun4u3a','zNjVBq','BMv4DevUza','y3DK','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','DxnLCL9PBNb1Df9Yzxf1zxn0','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','uLvoveLnrq','CNvUswq','AxrLBxm','C291CMnL','CMvHze9MzMLJAwfSq29UDMvYC2f0Aw9U','CNvUDgLTzq','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','CMvNAxn0zxjoyxrPDMu','C3rHCNrLzef0','yxr0ywnOBwvUDhm','mZqXnxPfsK9eua','A2LUza','C25HChnOB3rfBMq','DMfSDwvZ','BwfUywDLzfj1BKzVCK5HDgL2zvr1CM4','C3rYAw5N','CMvHze1HBMfNzwrby3rPDMu','BMf0AxzLq29UDhjVBa','uevoreLorW','zMLUza','mty4mJy1nMPitKvbtq','C2v0rxH0zxjUywXby3rPDML0Eq','CMvHze5HDgL2zq','BgLZDfj1BNngB3jtzxnZAw9U','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5UyxrPDMuTCMvHzc5JB21WBgv0zwq','BwfUywDLzfj1BM5LCLr1CM4','zMLSDgvY','DxrMoa','z2v0','CMvHzev4DgvYBMfSqwn0AxzPDhK','ywnJzxb0C1rYDw5JyxrLze5HDgL2zuHPC3rVCNK','y2fWywjPBgL0AwvZ','C3rHCNrZv2L0Aa','AgfZtwfUywDLzefJDgL2zvj1BG','tufsx01btKfhruq','B3b0Aw9UCW','u1rbuLrjtKC','Bgf0zxn0vMLZAwjSzuf0','zMLSzufUy2HVCG','BwfYlwfJDgL2zs1OAxn0B3j5oJe6','yxzHAwXHyMXL','AxngAw5PDgu','C29Tzq','y3vYC29YuMvZzxq','AgfZ','mte4mMLltgfjsW','Aw5JB21WBgv0zu5HDgL2zq','CgfNzq','y3vYC29Y','BgvUz3rO','C3bSAwnL','zxH0zxjUywXtzxnZAw9Uswq','mJq5mtqYDKz4ANP2','Aw1Hz2vbDhrHy2HTzw50CW','AxnjBNrLz2vY','mteXmda1n3nTDNncEG','zMXHDe1HCa','C2v0','CNvUBMvY','yMvMB3jLqxq','CMvXDwvZDeLK','C2vZC2LVBKLK','yMfZzty0DxjS','BMf0AxzL','BNvTyMvY','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5HDhrHy2HTzw50lxnVDxjJzs1YzwfKlMnVBxbSzxrLza','zMLUzeXHC3rjBMrLEa','q0foq0vmteLorW','ChvZAa','uLvotKLorW','tKfusvzfx1rsqu5tq1jjufrFsu5dt01qtevurq','CMvHzfj1BM5LCKHPC3rVCNK','B2zMAwnPywW','C3rHz2u','DhvYBNm','BwfW','BM93'];_0x507d=function(){return _0x4e2aaa;};return _0x507d();}function conversationClientMessageId(_0x59441e){const _0x20f952=_0x30de40;for(const _0x768332 of _0x59441e[_0x20f952(0x17a)]){if(_0x768332[_0x20f952(0x106)]!==_0x20f952(0x15a)||!isPlainRecord(_0x768332[_0x20f952(0x16a)]))continue;const _0x182521=_0x768332[_0x20f952(0x16a)][_0x20f952(0x15e)];if(typeof _0x182521===_0x20f952(0x10a)&&_0x182521[_0x20f952(0x12c)]>-0x11a7*-0x1+-0x10ab*0x1+-0xfc)return _0x182521;}return null;}function sourceRank(_0x3d8447){const _0x4b817b=_0x30de40;if(_0x3d8447===_0x4b817b(0x143))return-0x13*-0x161+0x226*0x12+-0x40dc;if(_0x3d8447===_0x4b817b(0x13a))return 0x7fa+-0x25c1+0x1dc9;return-0x1f*-0x12a+-0x8a1*0x1+-0x1b74;}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0x401b(){const _0x2a0187=['z2v0','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','C2vZC2LVBKLK','B3bLCMf0Aw9UCW','B3b0Aw9UCW','CMvMCMvZAefJDgL2Axr5','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','zw1PDf9WywDL','BM93','zMLSDgvY','Aw5PDgLHBa','DgvZDa','D2f0y2Hjza','ndi5odKYwKj5tunq','zgvSzxrL','zw50CNK','zw1PDfbHz2u','zMfPBfnLC3nPB24','C291CMnL','zw1PDfnLC3nPB24','BgvHC2vZ','D2f0y2G','B2jQzwn0','C2vZC2LVBI53yxrJAc5YzwzYzxnOlMzHAwXLza','nZiWnNboDufIza','C2L6zq','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','C2XPy2u','D2f0y2GUzMfPBgvK','Bg9JywWTDgvZDa','mta3ode3nxnTqKTKsG','u0vtu0LptL9xqvrdsf9sruzsrvnix0zbsuXfra','mZu2nZmWnfztt3LtsG','BM9KzuLK','y29UDMvYz2vqywDL','zw1PDe9IC2vYDMvKugfNzq','u0vtu0LptL9jtLzbteLe','C3rVCa','Dw5Yzwy','vfvstG','zxHLy3v0zvvUD2f0y2G','mJa5oti4mZbRzfbVDve','u0vtu0LptL9xqvrdsf9ttKfqu0Hpvf9gquLmruq','x193B3jRC3bHy2vxyxrJAfnLC3nPB25iyxnO','BgvHC2vuAw1LCG','Bwf4','CMvTB3zLtgvHC2u','y2XLyxi','u0vtu0LptL9ot1rFrK9vtKq','C2vZC2LVBLnPz25HDhvYzq','ndCWntDTwLHUuei','C2vZC2LVBG','mtfeC2PZt20','CMvZB2X2zq','zMfPBhvYzxm','ywnJzxb0zwq','AgfZ','Aw5PDgLHBf9YzwzYzxnO','D29YA2jLBMnOq29UBMvJDgLVBKLK','C3rYAw5N','BwfUywDLzefJDgL2zq','DgLTzxi','ChjVAMvJDeLUAxrPywXqywDL','CMvHzfbHz2u','D2f0y2GUC2vZC2LVBI5ZBMfWC2HVDa','m2z1BMzpzq','D29YA3nWywnLswq','ChjLC2vUDf9ZzxnZAw9U','mZeXmhjSAw9kvW','CMvHzf9WywDL','zw1PDfDHDgnOrxzLBNq','Dw5PDa','zxHLy3v0zvDHDgnO','CgfNzq','C2vZC2LVBKHHC2G','C3vZCgvUzgvK','BgvUz3rO','Dw5RBM93BG','C3rYAw5NAwz5','y29UDMvYz2vFCgfNzq','ChjLC2vUDa','zxHWAxjLC0f0','D2f0y2HLCW','u2vZC2LVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','CMvMCMvZAfrPBwvY','C2vZC2LVBI53yxrJAc5PBML0AwfSlMzHAwXLza','u0vhtuvova','CMvSzwfZzvnLC3nPB25mzwfZzxm','B2jZzxj2zwrqywDL','CgvYzM9YBvjLzNjLC2G','CMvMCMvZAf9Hy3rPDML0Eq','zxH0zxjUywXtzxnZAw9Uswq','B3DUzxjlzxK','Bgf0zxn0tgvHC2vfEhbPCNK','CNvUBMvY','ChjVAMvJDf9ZBMfWC2HVDa','Aw5PDgLHBgL6zuXLyxnL','mty0otq1ngLpt0T2BG','Bw9Kzq','DhvYBNm','C25HChnOB3rtzxf1zw5Jzq','Bg9N','Bg9JywWTDgvZDc1UB2rL','CMvMCMvZAa','C2v0','yxv0Ag9YAxr5','y29Kzq','CMvUzxC','BM9KzuDLBMvYyxrPB24','mtHTDezprwK','DMfSDwvZ','u0vtu0LptL9xt1jlu1bbq0vFtuLttufuq0G','C2LNBMf0DxjL'];_0x401b=function(){return _0x2a0187;};return _0x401b();}const _0x205735=_0x4719;(function(_0x388f09,_0x9ed34c){const _0x145362=_0x4719,_0x5c5a2d=_0x388f09();while(!![]){try{const _0x30c063=parseInt(_0x145362(0x182))/(0x1*0x13e7+0x1ff8+-0x33de)+parseInt(_0x145362(0x140))/(0x13*0x199+-0x137*0x15+-0x4d6)+-parseInt(_0x145362(0x191))/(0x3b5*0x6+0x109d*-0x2+-0x1*-0xaff)*(parseInt(_0x145362(0x15d))/(-0x2f6*-0xd+-0xf3*-0x18+-0x3d42))+parseInt(_0x145362(0x194))/(-0x1a17*0x1+0x2*-0x533+0x2482)*(parseInt(_0x145362(0x168))/(-0x1247+0x1979+0x1cb*-0x4))+parseInt(_0x145362(0x16e))/(-0x1083+0xb53+0x537)+-parseInt(_0x145362(0x170))/(-0x1*0x14b6+0x26e+0x1250)*(-parseInt(_0x145362(0x14c))/(-0x2255+0x47*-0x23+-0x2c13*-0x1))+parseInt(_0x145362(0x179))/(0x2453*0x1+-0x77b*0x3+-0xdd8)*(-parseInt(_0x145362(0x184))/(-0x135a+-0x153e+0x65*0x67));if(_0x30c063===_0x9ed34c)break;else _0x5c5a2d['push'](_0x5c5a2d['shift']());}catch(_0x340c1b){_0x5c5a2d['push'](_0x5c5a2d['shift']());}}}(_0x401b,-0xad662+0x4*0x15df4+0xc5b3f));function _0x4719(_0x29b202,_0x558233){_0x29b202=_0x29b202-(0x2a*-0x47+0xb33+0x199);const _0x3d01e0=_0x401b();let _0x3a270d=_0x3d01e0[_0x29b202];if(_0x4719['goqUnD']===undefined){var _0x1cd392=function(_0x479871){const _0x4be4f3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f225c='',_0x50f0ce='';for(let _0x5702b7=0xe80+-0xe47+-0x39,_0x52b6b5,_0x2949c6,_0xcecd8d=-0x1*0x1df+-0x1*-0x200c+-0x19*0x135;_0x2949c6=_0x479871['charAt'](_0xcecd8d++);~_0x2949c6&&(_0x52b6b5=_0x5702b7%(0x1cd+-0x10e5+0xf1c)?_0x52b6b5*(-0x1*-0x9d+-0x129a+0x123d)+_0x2949c6:_0x2949c6,_0x5702b7++%(-0x238c+0x28e+0x2102))?_0x4f225c+=String['fromCharCode'](-0x1f96+0x207*0xf+0x22c&_0x52b6b5>>(-(0x1*0x100+-0xfa5+0xea7)*_0x5702b7&0x1c1a+-0xbfa+-0x101a)):0x27*-0xa1+-0x632+0x1eb9){_0x2949c6=_0x4be4f3['indexOf'](_0x2949c6);}for(let _0x12f115=-0x11c*0x11+0x18e5+-0x609,_0x5d3b75=_0x4f225c['length'];_0x12f115<_0x5d3b75;_0x12f115++){_0x50f0ce+='%'+('00'+_0x4f225c['charCodeAt'](_0x12f115)['toString'](-0x1*0xb7b+0x20f1+-0x1566))['slice'](-(-0x43*0x7f+-0xda9+0x2ee8));}return decodeURIComponent(_0x50f0ce);};_0x4719['FvqrzI']=_0x1cd392,_0x4719['PzoLbL']={},_0x4719['goqUnD']=!![];}const _0x3a207f=_0x3d01e0[0x1cca+-0x5*0x165+-0x15d1];_0x4719['barcfe']!==_0x3a207f&&(_0x4719['PzoLbL']={},_0x4719['barcfe']=_0x3a207f);const _0x2de2fb=_0x4719['PzoLbL'][_0x29b202];return _0x2de2fb===undefined?(_0x3a270d=_0x4719['FvqrzI'](_0x3a270d),_0x4719['PzoLbL'][_0x29b202]=_0x3a270d):_0x3a270d=_0x2de2fb,_0x3a270d;}import{isPlainRecord}from'../runner/codex/conversation-parser.js';import{safeErrorCode}from'../util/safe-error.js';const INTERVAL_MS=0x1*-0x3e9+-0x1df+-0x2*-0x6cc,TTL_MS=-0x1*-0xff85+-0x7b05+0x2b48,MAX_FAILURES=-0x603+-0x1*-0x9d+0x569,INITIAL_TURN_LIMIT=-0x1a*0x62+-0x238c+0x2d9e,EMITTED_TURN_LIMIT=-0x1f96+0x207*0xf+0x137;export class NativeSessionWatchService{[_0x205735(0x154)];[_0x205735(0x131)]=new Map();[_0x205735(0x164)]=new Map();[_0x205735(0x143)]=0x1*0x100+-0xfa5+0xea5;constructor(_0x173a2a){const _0x14ec99=_0x205735;this[_0x14ec99(0x154)]=_0x173a2a;}[_0x205735(0x153)](){const _0x12be8e=_0x205735;return{'session.watch':_0x301be2=>this[_0x12be8e(0x127)](isPlainRecord(_0x301be2)?_0x301be2:{}),'session.unwatch':_0x50fbc8=>this[_0x12be8e(0x178)](isPlainRecord(_0x50fbc8)?_0x50fbc8:{})};}async[_0x205735(0x127)](_0x7e2790){const _0xe1e6cc=_0x205735,_0x485148=this[_0xe1e6cc(0x154)][_0xe1e6cc(0x18e)];if(_0x7e2790[_0xe1e6cc(0x126)]===_0xe1e6cc(0x135)&&_0x485148===undefined)throw new Error(_0xe1e6cc(0x174));if(typeof _0x7e2790[_0xe1e6cc(0x152)]!==_0xe1e6cc(0x18b)||_0x7e2790[_0xe1e6cc(0x192)]!==undefined&&typeof _0x7e2790[_0xe1e6cc(0x192)]!==_0xe1e6cc(0x18b)||typeof _0x7e2790[_0xe1e6cc(0x15c)]!==_0xe1e6cc(0x18b)||typeof _0x7e2790[_0xe1e6cc(0x18a)]!==_0xe1e6cc(0x18b)||_0x7e2790[_0xe1e6cc(0x141)]!==_0xe1e6cc(0x15a)&&_0x7e2790[_0xe1e6cc(0x141)]!==_0xe1e6cc(0x14a)||_0x7e2790[_0xe1e6cc(0x126)]!==undefined&&_0x7e2790[_0xe1e6cc(0x126)]!==_0xe1e6cc(0x135))throw new Error(_0xe1e6cc(0x174));const _0x9cde9b=this[_0xe1e6cc(0x13b)](_0x7e2790);if(_0x7e2790[_0xe1e6cc(0x141)]===_0xe1e6cc(0x14a)){const _0x27c5c6=this[_0xe1e6cc(0x164)][_0xe1e6cc(0x150)](_0x9cde9b);if(_0x27c5c6===undefined||_0x27c5c6[_0xe1e6cc(0x15c)]!==_0x7e2790[_0xe1e6cc(0x15c)]||_0x27c5c6[_0xe1e6cc(0x152)]!==_0x7e2790[_0xe1e6cc(0x152)]||_0x7e2790[_0xe1e6cc(0x192)]!==undefined&&_0x27c5c6[_0xe1e6cc(0x192)]!==_0x7e2790[_0xe1e6cc(0x192)])throw new Error(_0xe1e6cc(0x151));if(_0x27c5c6[_0xe1e6cc(0x130)]<=Date[_0xe1e6cc(0x158)]()){this[_0xe1e6cc(0x17e)](_0x9cde9b);throw new Error(_0xe1e6cc(0x151));}_0x27c5c6[_0xe1e6cc(0x130)]=Date[_0xe1e6cc(0x158)]()+TTL_MS;const _0x24a454=this[_0xe1e6cc(0x131)][_0xe1e6cc(0x150)](_0x27c5c6[_0xe1e6cc(0x152)]);if(_0x24a454!==undefined)_0x24a454[_0xe1e6cc(0x130)]=this[_0xe1e6cc(0x13c)](_0x27c5c6[_0xe1e6cc(0x152)]);return clearTimeout(_0x27c5c6[_0xe1e6cc(0x18d)]),_0x27c5c6[_0xe1e6cc(0x18d)]=this[_0xe1e6cc(0x17c)](_0x9cde9b),this[_0xe1e6cc(0x187)](_0x27c5c6);}const _0x4861a8=this[_0xe1e6cc(0x164)][_0xe1e6cc(0x150)](_0x9cde9b),_0x5b9b7a=_0x7e2790[_0xe1e6cc(0x126)]===_0xe1e6cc(0x135)?_0xe1e6cc(0x135):_0xe1e6cc(0x177);if(_0x4861a8?.[_0xe1e6cc(0x15c)]===_0x7e2790[_0xe1e6cc(0x15c)]&&_0x4861a8[_0xe1e6cc(0x152)]===_0x7e2790[_0xe1e6cc(0x152)]&&(_0x7e2790[_0xe1e6cc(0x192)]===undefined||_0x4861a8[_0xe1e6cc(0x192)]===_0x7e2790[_0xe1e6cc(0x192)])&&_0x4861a8[_0xe1e6cc(0x126)]===_0x5b9b7a&&_0x4861a8[_0xe1e6cc(0x130)]>Date[_0xe1e6cc(0x158)]())return _0x4861a8[_0xe1e6cc(0x130)]=Date[_0xe1e6cc(0x158)]()+TTL_MS,clearTimeout(_0x4861a8[_0xe1e6cc(0x18d)]),_0x4861a8[_0xe1e6cc(0x18d)]=this[_0xe1e6cc(0x17c)](_0x9cde9b),this[_0xe1e6cc(0x187)](_0x4861a8);this[_0xe1e6cc(0x17e)](_0x9cde9b);const _0x14531e={'ownerKey':_0x9cde9b,'sessionHash':this[_0xe1e6cc(0x129)](_0x7e2790),'workbenchConnectionId':_0x7e2790[_0xe1e6cc(0x18a)],'watchId':_0x7e2790[_0xe1e6cc(0x15c)],'sessionId':_0x7e2790[_0xe1e6cc(0x152)],'unit':_0x5b9b7a,'nodeGeneration':this[_0xe1e6cc(0x154)][_0xe1e6cc(0x14b)]?.()??_0xe1e6cc(0x156),...typeof _0x7e2790[_0xe1e6cc(0x192)]===_0xe1e6cc(0x18b)?{'workspaceId':_0x7e2790[_0xe1e6cc(0x192)]}:{},'expiresAt':Date[_0xe1e6cc(0x158)]()+TTL_MS,'timer':undefined};_0x14531e[_0xe1e6cc(0x18d)]=this[_0xe1e6cc(0x17c)](_0x9cde9b),this[_0xe1e6cc(0x164)][_0xe1e6cc(0x147)](_0x9cde9b,_0x14531e);const _0x44ac06=this[_0xe1e6cc(0x131)][_0xe1e6cc(0x150)](_0x14531e[_0xe1e6cc(0x152)]);if(_0x44ac06!==undefined)_0x44ac06[_0xe1e6cc(0x130)]=this[_0xe1e6cc(0x13c)](_0x14531e[_0xe1e6cc(0x152)]);return void this[_0xe1e6cc(0x13f)](_0x14531e,_0x485148),this[_0xe1e6cc(0x187)](_0x14531e);}[_0x205735(0x178)](_0x40f82f){const _0x7b36f4=_0x205735;if(typeof _0x40f82f[_0x7b36f4(0x152)]!==_0x7b36f4(0x18b)||typeof _0x40f82f[_0x7b36f4(0x15c)]!==_0x7b36f4(0x18b)||typeof _0x40f82f[_0x7b36f4(0x18a)]!==_0x7b36f4(0x18b))throw new Error(_0x7b36f4(0x174));const _0x23218f=this[_0x7b36f4(0x13b)](_0x40f82f),_0x54b9ae=this[_0x7b36f4(0x164)][_0x7b36f4(0x150)](_0x23218f);if(_0x54b9ae?.[_0x7b36f4(0x15c)]===_0x40f82f[_0x7b36f4(0x15c)]&&_0x54b9ae[_0x7b36f4(0x152)]===_0x40f82f[_0x7b36f4(0x152)])this[_0x7b36f4(0x17e)](_0x23218f);return{'stopped':!![]};}[_0x205735(0x165)](_0x4e1d09){const _0x2bd023=_0x205735;if(this[_0x2bd023(0x154)][_0x2bd023(0x18c)](_0x4e1d09))return this[_0x2bd023(0x175)](_0x4e1d09['id']),undefined;const _0x2f52d1=this[_0x2bd023(0x131)][_0x2bd023(0x150)](_0x4e1d09['id']);if(_0x2f52d1!==undefined)return _0x2f52d1[_0x2bd023(0x130)]=Date[_0x2bd023(0x158)]()+TTL_MS,{'expiresAt':_0x2f52d1[_0x2bd023(0x130)]};const _0xa85df0={'expiresAt':Date[_0x2bd023(0x158)]()+TTL_MS,'refresh':undefined,'sessionSignature':undefined,'signature':undefined,'page':undefined,'observedPage':undefined,'authority':undefined,'failures':0x0,'timer':undefined};return _0xa85df0[_0x2bd023(0x18d)]=this[_0x2bd023(0x133)](_0x4e1d09['id']),this[_0x2bd023(0x131)][_0x2bd023(0x147)](_0x4e1d09['id'],_0xa85df0),{'expiresAt':_0xa85df0[_0x2bd023(0x130)]};}[_0x205735(0x14a)](_0x50614e){const _0x3899bb=_0x205735;if(this[_0x3899bb(0x154)][_0x3899bb(0x18c)](_0x50614e))return this[_0x3899bb(0x175)](_0x50614e['id']),undefined;const _0x2f2658=this[_0x3899bb(0x131)][_0x3899bb(0x150)](_0x50614e['id']);if(_0x2f2658===undefined||_0x2f2658[_0x3899bb(0x130)]<=Date[_0x3899bb(0x158)]())return this[_0x3899bb(0x175)](_0x50614e['id']),undefined;return _0x2f2658[_0x3899bb(0x130)]=Date[_0x3899bb(0x158)]()+TTL_MS,{'expiresAt':_0x2f2658[_0x3899bb(0x130)]};}[_0x205735(0x175)](_0x3bfef0){const _0x24b014=_0x205735,_0x1657de=this[_0x24b014(0x131)][_0x24b014(0x150)](_0x3bfef0);if(_0x1657de===undefined)return;clearTimeout(_0x1657de[_0x24b014(0x18d)]),this[_0x24b014(0x131)][_0x24b014(0x15e)](_0x3bfef0);}[_0x205735(0x17f)](){const _0x4ad9e1=_0x205735;for(const _0x359d24 of this[_0x4ad9e1(0x131)][_0x4ad9e1(0x14d)]())clearTimeout(_0x359d24[_0x4ad9e1(0x18d)]);this[_0x4ad9e1(0x131)][_0x4ad9e1(0x17f)]();for(const _0x596bb0 of this[_0x4ad9e1(0x164)][_0x4ad9e1(0x14d)]())clearTimeout(_0x596bb0[_0x4ad9e1(0x18d)]);this[_0x4ad9e1(0x164)][_0x4ad9e1(0x17f)]();}[_0x205735(0x188)](_0x71c6d6){const _0x561976=_0x205735;return this[_0x561976(0x131)][_0x561976(0x188)](_0x71c6d6);}[_0x205735(0x15f)](_0x180c43){const _0x336409=_0x205735;return this[_0x336409(0x131)][_0x336409(0x150)](_0x180c43);}get[_0x205735(0x169)](){const _0xd09a15=_0x205735;return this[_0xd09a15(0x131)][_0xd09a15(0x169)];}async[_0x205735(0x146)](_0x4e142d,_0x14fff8=0x1c1a+-0xbfa+-0x1016,_0x40161f=!![]){const _0xe450e1=_0x205735,_0x2bfc68=this[_0xe450e1(0x131)][_0xe450e1(0x150)](_0x4e142d);if(_0x2bfc68===undefined)return undefined;if(_0x2bfc68[_0xe450e1(0x146)]!==undefined)return _0x2bfc68[_0xe450e1(0x146)];if(_0x2bfc68[_0xe450e1(0x130)]<=Date[_0xe450e1(0x158)]())return this[_0xe450e1(0x175)](_0x4e142d),undefined;const _0x17c0aa=this[_0xe450e1(0x138)](_0x4e142d,_0x2bfc68,_0x14fff8,_0x40161f);_0x2bfc68[_0xe450e1(0x146)]=_0x17c0aa;try{return await _0x17c0aa;}finally{this[_0xe450e1(0x131)][_0xe450e1(0x150)](_0x4e142d)===_0x2bfc68&&(_0x2bfc68[_0xe450e1(0x146)]=undefined,clearTimeout(_0x2bfc68[_0xe450e1(0x18d)]),_0x2bfc68[_0xe450e1(0x18d)]=this[_0xe450e1(0x133)](_0x4e142d));}}async[_0x205735(0x138)](_0x4d5895,_0x3c1104,_0x319c19,_0x1a93a3){const _0xe413f3=_0x205735;let _0xa70b33=_0xe413f3(0x185),_0x12bd28;try{if(this[_0xe413f3(0x154)][_0xe413f3(0x12a)]?.(_0x4d5895)===!![])return _0x3c1104[_0xe413f3(0x128)];_0x12bd28=await this[_0xe413f3(0x154)][_0xe413f3(0x185)](_0x4d5895);if(_0x12bd28===undefined||_0x12bd28[_0xe413f3(0x13a)]===null||this[_0xe413f3(0x154)][_0xe413f3(0x18c)](_0x12bd28))return this[_0xe413f3(0x136)](_0x4d5895),undefined;_0xa70b33=_0xe413f3(0x139),await this[_0xe413f3(0x154)][_0xe413f3(0x155)](_0x12bd28);if(this[_0xe413f3(0x154)][_0xe413f3(0x12a)]?.(_0x4d5895)===!![])return _0x3c1104[_0xe413f3(0x128)];_0xa70b33=_0xe413f3(0x193);const _0xf4855c=this[_0xe413f3(0x154)][_0xe413f3(0x12f)](_0x12bd28),_0x3df3b2=JSON[_0xe413f3(0x12d)](_0xf4855c);_0x3df3b2!==_0x3c1104[_0xe413f3(0x181)]&&(_0x3c1104[_0xe413f3(0x181)]=_0x3df3b2,this[_0xe413f3(0x154)][_0xe413f3(0x163)](_0xf4855c));_0xa70b33=_0xe413f3(0x195);const _0x151c51=await this[_0xe413f3(0x154)][_0xe413f3(0x18f)](_0x12bd28,_0x319c19);_0x3c1104[_0xe413f3(0x186)]=0x27*-0xa1+-0x632+0x1eb9;const _0xb372e3=_0x151c51[_0xe413f3(0x142)][_0xe413f3(0x12b)]<=EMITTED_TURN_LIMIT?_0x151c51[_0xe413f3(0x142)]:_0x151c51[_0xe413f3(0x142)][_0xe413f3(0x16b)](-EMITTED_TURN_LIMIT),_0x1d6426={..._0x151c51,'turns':_0xb372e3};_0xa70b33=_0xe413f3(0x12e);const _0x4d8f2a=this[_0xe413f3(0x154)][_0xe413f3(0x172)](_0x3c1104[_0xe413f3(0x128)],_0x3c1104[_0xe413f3(0x137)],_0x1d6426,_0x3c1104[_0xe413f3(0x148)]),_0x247d32=_0x4d8f2a[_0xe413f3(0x128)],_0x46f824=_0x247d32[_0xe413f3(0x142)][_0xe413f3(0x12b)]<=EMITTED_TURN_LIMIT+(-0x11c*0x11+0x18e5+-0x608)?_0x247d32:{..._0x247d32,'turns':_0x247d32[_0xe413f3(0x142)][_0xe413f3(0x16b)](-(EMITTED_TURN_LIMIT+(-0x1*0xb7b+0x20f1+-0x1575)))};_0x3c1104[_0xe413f3(0x137)]=_0x1d6426,_0x3c1104[_0xe413f3(0x148)]=_0x4d8f2a[_0xe413f3(0x148)];const _0x338520=JSON[_0xe413f3(0x12d)]({'source':_0x46f824[_0xe413f3(0x162)],'turns':_0x46f824[_0xe413f3(0x142)]});if(_0x338520===_0x3c1104[_0xe413f3(0x14f)])return _0x46f824;_0x3c1104[_0xe413f3(0x14f)]=_0x338520,_0x3c1104[_0xe413f3(0x128)]=_0x46f824,_0xa70b33=_0xe413f3(0x157);if(_0x1a93a3)this[_0xe413f3(0x173)](_0x12bd28,_0x46f824);return _0x1a93a3?_0x46f824:_0x151c51;}catch(_0x12c18c){_0x3c1104[_0xe413f3(0x186)]+=-0x43*0x7f+-0xda9+0x2ee7,this[_0xe413f3(0x154)][_0xe413f3(0x144)]?.(_0xe413f3(0x167),{'nodeId':this[_0xe413f3(0x154)][_0xe413f3(0x171)]?.()??_0xe413f3(0x145),'sessionId':_0x4d5895,..._0x12bd28===undefined?{}:{'runner':_0x12bd28[_0xe413f3(0x13d)]},'stage':_0xa70b33,'errorCode':diagnosticErrorCode(_0x12c18c,_0xe413f3(0x16f)),'failureCount':_0x3c1104[_0xe413f3(0x186)],'terminal':_0x3c1104[_0xe413f3(0x186)]>=MAX_FAILURES});if(_0x3c1104[_0xe413f3(0x186)]>=MAX_FAILURES)this[_0xe413f3(0x161)](_0x4d5895);return undefined;}}[_0x205735(0x129)](_0x6dc629){const _0x24e8ae=_0x205735;return typeof _0x6dc629[_0x24e8ae(0x17b)]===_0x24e8ae(0x18b)?_0x6dc629[_0x24e8ae(0x17b)]:_0x24e8ae(0x16d);}[_0x205735(0x13b)](_0x5ada96){const _0x5b889f=_0x205735;return this[_0x5b889f(0x129)](_0x5ada96)+':'+_0x5ada96[_0x5b889f(0x18a)];}[_0x205735(0x187)](_0x21d6d6){const _0x2e4d69=_0x205735;return{'accepted':!![],'watchId':_0x21d6d6[_0x2e4d69(0x15c)],'nodeGeneration':_0x21d6d6[_0x2e4d69(0x14b)],'expiresAt':_0x21d6d6[_0x2e4d69(0x130)]};}async[_0x205735(0x13f)](_0x499cb2,_0x57d76c){const _0x52b511=_0x205735;let _0x2bf092=_0x52b511(0x185);try{const _0x306527=await this[_0x52b511(0x154)][_0x52b511(0x185)](_0x499cb2[_0x52b511(0x152)]);if(_0x306527===undefined||_0x306527[_0x52b511(0x13a)]===null)throw new Error(_0x52b511(0x180));if(_0x499cb2[_0x52b511(0x192)]!==undefined&&_0x306527[_0x52b511(0x192)]!==_0x499cb2[_0x52b511(0x192)])throw new Error(_0x52b511(0x14e));if(this[_0x52b511(0x164)][_0x52b511(0x150)](_0x499cb2[_0x52b511(0x13b)])!==_0x499cb2)return;_0x499cb2[_0x52b511(0x192)]=_0x306527[_0x52b511(0x192)],_0x2bf092=_0x52b511(0x189);const _0x520d6c=this[_0x52b511(0x165)](_0x306527),_0xb62b2=_0x520d6c===undefined?undefined:await this[_0x52b511(0x146)](_0x306527['id'],INITIAL_TURN_LIMIT,![]);if(_0xb62b2===undefined)throw new Error(_0x52b511(0x16a));_0x2bf092=_0x52b511(0x13e);const _0x2a44a4=_0x499cb2[_0x52b511(0x126)]===_0x52b511(0x135)?_0x57d76c(_0x306527,_0xb62b2,_0x52b511(0x135),0x1cca+-0x5*0x165+-0x15c7):_0xb62b2;if(this[_0x52b511(0x164)][_0x52b511(0x150)](_0x499cb2[_0x52b511(0x13b)])!==_0x499cb2)return;this[_0x52b511(0x154)][_0x52b511(0x196)]?.({'type':_0x52b511(0x190),'workbenchConnectionId':_0x499cb2[_0x52b511(0x18a)],'watchId':_0x499cb2[_0x52b511(0x15c)],'nodeGeneration':_0x499cb2[_0x52b511(0x14b)],'nodeId':this[_0x52b511(0x154)][_0x52b511(0x171)]?.()??_0x52b511(0x145),'workspaceId':_0x306527[_0x52b511(0x192)],'sessionId':_0x306527['id'],'revision':0x1,'snapshotSequence':++this[_0x52b511(0x143)],'expiresAt':_0x499cb2[_0x52b511(0x130)],'payload':_0x2a44a4});}catch(_0x184688){if(this[_0x52b511(0x164)][_0x52b511(0x150)](_0x499cb2[_0x52b511(0x13b)])!==_0x499cb2)return;const _0x1e9c56=diagnosticErrorCode(_0x184688,_0x52b511(0x17a));this[_0x52b511(0x154)][_0x52b511(0x144)]?.(_0x52b511(0x134),{'nodeId':this[_0x52b511(0x154)][_0x52b511(0x171)]?.()??_0x52b511(0x145),'sessionId':_0x499cb2[_0x52b511(0x152)],'workspaceId':_0x499cb2[_0x52b511(0x192)]??_0x52b511(0x12c),'workbenchConnectionId':_0x499cb2[_0x52b511(0x18a)],'watchId':_0x499cb2[_0x52b511(0x15c)],'stage':_0x2bf092,'errorCode':_0x1e9c56}),this[_0x52b511(0x154)][_0x52b511(0x196)]?.({'type':_0x52b511(0x16c),'workbenchConnectionId':_0x499cb2[_0x52b511(0x18a)],'watchType':_0x52b511(0x183),'watchId':_0x499cb2[_0x52b511(0x15c)],'nodeGeneration':_0x499cb2[_0x52b511(0x14b)],'nodeId':this[_0x52b511(0x154)][_0x52b511(0x171)]?.()??_0x52b511(0x145),'workspaceId':_0x499cb2[_0x52b511(0x192)]??_0x52b511(0x12c),'sessionId':_0x499cb2[_0x52b511(0x152)],'code':_0x1e9c56,'message':_0x52b511(0x132)}),this[_0x52b511(0x17e)](_0x499cb2[_0x52b511(0x13b)]);}}[_0x205735(0x17e)](_0x3849c7){const _0x26eb29=_0x205735,_0x5596b8=this[_0x26eb29(0x164)][_0x26eb29(0x150)](_0x3849c7);if(_0x5596b8===undefined)return;clearTimeout(_0x5596b8[_0x26eb29(0x18d)]),this[_0x26eb29(0x164)][_0x26eb29(0x15e)](_0x3849c7);const _0x261447=this[_0x26eb29(0x131)][_0x26eb29(0x150)](_0x5596b8[_0x26eb29(0x152)]),_0x74f10f=this[_0x26eb29(0x13c)](_0x5596b8[_0x26eb29(0x152)]);if(_0x74f10f===0x1*-0x4e9+0x1efd+-0x1*0x1a14)this[_0x26eb29(0x175)](_0x5596b8[_0x26eb29(0x152)]);else{if(_0x261447!==undefined)_0x261447[_0x26eb29(0x130)]=_0x74f10f;}}[_0x205735(0x173)](_0x484589,_0xc0729){const _0x1f228e=_0x205735,_0x376328=[...this[_0x1f228e(0x164)][_0x1f228e(0x14d)]()][_0x1f228e(0x159)](_0x2e05ae=>_0x2e05ae[_0x1f228e(0x152)]===_0x484589['id']);if(_0x376328[_0x1f228e(0x12b)]===-0x1396*-0x1+0x15c*0x11+-0x2ab2){this[_0x1f228e(0x154)][_0x1f228e(0x160)](_0x484589,_0xc0729);return;}for(const _0x563676 of _0x376328){const _0x52efb8=_0x563676[_0x1f228e(0x126)]===_0x1f228e(0x135)?this[_0x1f228e(0x154)][_0x1f228e(0x18e)]?.(_0x484589,_0xc0729,_0x1f228e(0x135),0x17*-0x13d+0x5a*-0x43+0x1*0x3413):_0xc0729;if(_0x52efb8===undefined)continue;this[_0x1f228e(0x154)][_0x1f228e(0x196)]?.({'type':_0x1f228e(0x190),'workbenchConnectionId':_0x563676[_0x1f228e(0x18a)],'watchId':_0x563676[_0x1f228e(0x15c)],'nodeGeneration':_0x563676[_0x1f228e(0x14b)],'nodeId':this[_0x1f228e(0x154)][_0x1f228e(0x171)]?.()??_0x1f228e(0x145),'workspaceId':_0x484589[_0x1f228e(0x192)],'sessionId':_0x484589['id'],'revision':0x1,'snapshotSequence':++this[_0x1f228e(0x143)],'expiresAt':_0x563676[_0x1f228e(0x130)],'payload':_0x52efb8});}}[_0x205735(0x161)](_0x36968d){const _0x5c50b5=_0x205735;for(const _0x52e049 of[...this[_0x5c50b5(0x164)][_0x5c50b5(0x14d)]()]){if(_0x52e049[_0x5c50b5(0x152)]!==_0x36968d)continue;this[_0x5c50b5(0x154)][_0x5c50b5(0x196)]?.({'type':_0x5c50b5(0x16c),'workbenchConnectionId':_0x52e049[_0x5c50b5(0x18a)],'watchType':_0x5c50b5(0x183),'watchId':_0x52e049[_0x5c50b5(0x15c)],'nodeGeneration':_0x52e049[_0x5c50b5(0x14b)],'nodeId':this[_0x5c50b5(0x154)][_0x5c50b5(0x171)]?.()??_0x5c50b5(0x145),'workspaceId':_0x52e049[_0x5c50b5(0x192)]??_0x5c50b5(0x12c),'sessionId':_0x36968d,'code':_0x5c50b5(0x16a),'message':_0x5c50b5(0x132)}),this[_0x5c50b5(0x17e)](_0x52e049[_0x5c50b5(0x13b)]);}this[_0x5c50b5(0x175)](_0x36968d);}[_0x205735(0x136)](_0x3c0368){const _0x2dd0d3=_0x205735;for(const _0x163153 of[...this[_0x2dd0d3(0x164)][_0x2dd0d3(0x14d)]()])if(_0x163153[_0x2dd0d3(0x152)]===_0x3c0368)this[_0x2dd0d3(0x17e)](_0x163153[_0x2dd0d3(0x13b)]);this[_0x2dd0d3(0x175)](_0x3c0368);}[_0x205735(0x17c)](_0x2d2154){const _0x8a1a5a=_0x205735,_0xe61202=setTimeout(()=>this[_0x8a1a5a(0x17e)](_0x2d2154),TTL_MS);return _0xe61202[_0x8a1a5a(0x176)](),_0xe61202;}[_0x205735(0x13c)](_0x3570bc){const _0x3fad64=_0x205735;let _0x5ea948=0x1d*0x69+0x31c+-0xf01;for(const _0xedd370 of this[_0x3fad64(0x164)][_0x3fad64(0x14d)]())if(_0xedd370[_0x3fad64(0x152)]===_0x3570bc)_0x5ea948=Math[_0x3fad64(0x17d)](_0x5ea948,_0xedd370[_0x3fad64(0x130)]);return _0x5ea948;}[_0x205735(0x133)](_0x3e6a7e){const _0x3aac4a=_0x205735,_0x357c54=setTimeout(()=>void this[_0x3aac4a(0x146)](_0x3e6a7e),INTERVAL_MS);return _0x357c54[_0x3aac4a(0x176)](),_0x357c54;}}function diagnosticErrorCode(_0xe2e7fd,_0x194127){const _0xe2ef0=_0x205735,_0x56e88f=safeErrorCode(_0xe2e7fd,'');if(_0x56e88f[_0xe2ef0(0x12b)]>0x1985+0x1*0x2496+-0x3e1b)return _0x56e88f;if(_0xe2e7fd!==null&&typeof _0xe2e7fd===_0xe2ef0(0x166)&&_0xe2ef0(0x149)in _0xe2e7fd&&typeof _0xe2e7fd[_0xe2ef0(0x149)]===_0xe2ef0(0x18b)&&/^[A-Z][A-Z0-9_]{0,127}$/[_0xe2ef0(0x15b)](_0xe2e7fd[_0xe2ef0(0x149)]))return _0xe2e7fd[_0xe2ef0(0x149)];return _0x194127;}
2
+ function _0x1e6d(){const _0x1ea490=['zMLSDgvY','CNvUBMvY','zxzLBNrszxzPC2LVBG','CgvUzgLUz0v2zw50CW','zxHWAxjLC0f0','CMvHzhK','Bg9JywWTDgvZDc1UB2rL','y29Kzq','zgvSzxrL','CMvMCMvZAefJDgL2Axr5','Bg9N','CgvYzM9YBvjLzNjLC2G','D29YA3nWywnLswq','Bwf4','C2vZC2LVBG','u0vtu0LptL9jtLzbteLe','C2LNBMf0DxjL','zxHLy3v0zvvUD2f0y2G','Bw9Kzq','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','C3rYAw5NAwz5','mZCZr3HQCgv6','y29UDMvYz2vFCgfNzq','C3rHDhvZ','ChvZAa','Cgf5Bg9Hza','zw50CNK','CMvSzwfZzvnLC3nPB25mzwfZzxm','uLvotKLorW','C25HChnOB3rtzw50','B3b0Aw9UCW','zw1PDfbHz2u','C291CMnL','u0vtu0LptL9xt1jlu1bbq0vFtuLttufuq0G','C2v0','CMvHzf9WywDL','q0foq0vmteLorW','CMvHzfj1BNrPBwvqywDL','nJq4mZK1mvj4t2vSAG','D2f0y2G','B2jQzwn0','u0vtu0LptL9xqvrdsf9ttKfqu0Hpvf9gquLmruq','u0vtu0LptL9xqvrdsf9svu5usu1fx1noqvbtse9ux0zbsuXfra','CNvUDgLTzvjLywq','mtKWndeZmdHSDgntDK4','BgvHC2vuAw1LCG','zxHLy3v0zvDHDgnO','zw1PDfnUyxbZAg90vg9mzwfZzxm','zw1PDfjLywX0Aw1L','x193B3jRC3bHy2vxyxrJAfnLC3nPB25iyxnO','Aw5PDgLHBgL6zuXLyxnL','ChjLC2vUDa','ndi5m3zbBNnhAG','BgvHC2vZ','C2L6zq','tufoquDfrf9bq1rjvKu','y2f0zwDVCNK','DgLTzxi','CMvMCMvZAfrPBwvY','Aw5PDgLHBf9YzwzYzxnO','C3vZCgvUzgvK','BM9KzuLK','zw1PDfnUyxbZAg90','u0vtu0LptL9ot1rFrK9vtKq','u1rbuLrjtKC','CNvU','ChjVAMvJDf9ZBMfWC2HVDa','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','Dw5PDa','CNvUDgLTzvbHz2u','C2vZC2LVBI53yxrJAc5PBML0AwfSlMzHAwXLza','ntbbDunWDfy','CMvTB3zLtgvHC2u','D2f0y2Hjza','zw1PDeXLyxnLrxzLBNq','BgvUz3rO','nJqYntK0wwvxvgXe','DhjHBNnPDgLVBKDLBMvYyxrPB24','zw1PDfnLC3nPB24','C2XPy2u','DgvZDa','u2vZC2LVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','CMvMCMvZAf9Hy3rPDML0Eq','mtmXnZeXmtb6vNP1AxO','seLtve9swq','ChjVAMvJDeLUAxrPywXqywDL','D29YA2jLBMnOq29UBMvJDgLVBKLK','B3bLCMf0Aw9UCW','AgfZ','zw1PDfDHDgnOrxzLBNq','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','B3DUzxjlzxK','y29UDMvYz2vqywDL','D2f0y2GUC2vZC2LVBI5ZBMfWC2HVDa','D2f0y2GUzMfPBgvK','C2vZC2LVBI53yxrJAc5YzwzYzxnOlMzHAwXLza','ogD5wNzcAa','CMvSzwfZzvbLBMrPBMDfDMvUDhm','CgfNzq','CMvUzxC','ywnJzxb0zwq','D2f0y2HLCW','BM93','zxH0zxjUywXtzxnZAw9Uswq','z2v0','zMfPBhvYzxm','y29UDMvYz2viAxn0B3j5','surmrq','y29TCg9Zzvj1BNrPBwvqywDL','DMfSDwvZ','ywn0AxzPDhK','D2f0y2GUC2vZC2LVBI5LDMvUDa','u0vhtuvova','q09ovKvsr0LorW','C2vZC2LVBI53yxrJAc5YDw50Aw1LlxnUyxbZAg90lMzHAwXLza','Bg9JywWTDgvZDa','CMvZB2X2zq','BM9KzuDLBMvYyxrPB24','C3rYAw5N','C2vZC2LVBKLK','C25HChnOB3rtzxf1zw5Jzq','CMvHzfbHz2u','Aw5PDgLHBa','CMvMCMvZAa','B2jZzxj2zwrqywDL','DhvYBNm','mZiXnZy2mKrIreLttG','CNvUDgLTzvjLDMLZAw9U','C2vZC2LVBKHHC2G','Bgf0zxn0tgvHC2vfEhbPCNK','mtmXnMjHrhHrra','Dw5RBM93BG','zw1PDf9WywDL','zw1PDe9IC2vYDMvKugfNzq','C2vXDwvUy2u','Dw5Yzwy','u0vtu0LptL9xqvrdsf9sruzsrvnix0zbsuXfra','zMfPBfnLC3nPB24','BwfUywDLzefJDgL2zq','yxv0Ag9YAxr5','ChjLC2vUDf9ZzxnZAw9U','C2vZC2LVBLnPz25HDhvYzq','ChvIBgLZAfj1BNrPBwvtBMfWC2HVDa','odC4zKXYy1nz','C3rVCa','y2XLyxi','vfvstG'];_0x1e6d=function(){return _0x1ea490;};return _0x1e6d();}const _0x41e195=_0x1b6d;(function(_0x400aa0,_0x554ee3){const _0x2fa522=_0x1b6d,_0x4fcb44=_0x400aa0();while(!![]){try{const _0x1d68db=parseInt(_0x2fa522(0x113))/(0x21f3+-0x1*0x48f+-0x1d63)*(-parseInt(_0x2fa522(0xfa))/(-0x91d+0x1579+0xba*-0x11))+parseInt(_0x2fa522(0x9f))/(0x22b5*-0x1+-0x1f3+0x53d*0x7)*(parseInt(_0x2fa522(0xed))/(0x1905+0x6*0xf1+-0x1ea7))+parseInt(_0x2fa522(0xb2))/(0x1*-0x204e+-0x24cb*0x1+0x451e)*(parseInt(_0x2fa522(0xb7))/(-0x191*-0x1+-0xca9+0xb1e))+parseInt(_0x2fa522(0xe9))/(0x32e+0xfb6*0x2+-0x1*0x2293)+-parseInt(_0x2fa522(0xcb))/(-0x1*0x269+0x1aa6+-0x1*0x1835)*(parseInt(_0x2fa522(0x91))/(-0x1*-0xbbd+0x6ab*-0x5+0x15a3*0x1))+parseInt(_0x2fa522(0xbe))/(-0x10f3+0x1ea6+-0xda9)+-parseInt(_0x2fa522(0x97))/(0x1a4*-0xf+0xdea+0xabd);if(_0x1d68db===_0x554ee3)break;else _0x4fcb44['push'](_0x4fcb44['shift']());}catch(_0x544c1d){_0x4fcb44['push'](_0x4fcb44['shift']());}}}(_0x1e6d,0x1*-0x3afc2+0x97a+0xe61c0));import{isPlainRecord}from'../runner/codex/conversation-parser.js';import{safeErrorCode}from'../util/safe-error.js';const INTERVAL_MS=0x90*0xd+0x858+-0x3ec*0x2,TTL_MS=-0x2c2+-0x2*0x6134+-0x174f2*-0x1,MAX_FAILURES=0x2552+0x362*0x4+-0x32d7*0x1,INITIAL_TURN_LIMIT=0xa92+0x1c4c+0x10*-0x26c,EMITTED_TURN_LIMIT=0x1bd4+0x260d+0x41d7*-0x1;function _0x1b6d(_0x842a1d,_0x2909b0){_0x842a1d=_0x842a1d-(0xe53+0x22d4+-0x30a2);const _0x2aa875=_0x1e6d();let _0x2523d6=_0x2aa875[_0x842a1d];if(_0x1b6d['KDejGN']===undefined){var _0x3bd639=function(_0x40625a){const _0x8f4673='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x535c1f='',_0x52ce37='';for(let _0x475588=-0x20a7+-0x77*-0x2+0x1*0x1fb9,_0x4628e7,_0x444cf0,_0x236bd0=0x1c8e+-0x1b8e*-0x1+-0x381c;_0x444cf0=_0x40625a['charAt'](_0x236bd0++);~_0x444cf0&&(_0x4628e7=_0x475588%(-0x5*0x452+-0xe4e*0x1+0x26*0xf2)?_0x4628e7*(0xb*-0x1b7+0x1b3d+0xa0*-0xd)+_0x444cf0:_0x444cf0,_0x475588++%(0x1*-0x1a5f+0xe11*-0x1+0x2874))?_0x535c1f+=String['fromCharCode'](0x49*-0x6f+0x24b0+-0x40a&_0x4628e7>>(-(0x125*-0x3+0xe2f+-0xabe)*_0x475588&-0x2375+-0x1668+0x39e3)):0x21cb*0x1+-0x113b+0x14*-0xd4){_0x444cf0=_0x8f4673['indexOf'](_0x444cf0);}for(let _0x1a4709=0x1c78+0x1bed+0x3865*-0x1,_0x2ab380=_0x535c1f['length'];_0x1a4709<_0x2ab380;_0x1a4709++){_0x52ce37+='%'+('00'+_0x535c1f['charCodeAt'](_0x1a4709)['toString'](-0x2054+0x1*0xeed+0x1177))['slice'](-(0x1cc9*0x1+0x84+-0x1d4b));}return decodeURIComponent(_0x52ce37);};_0x1b6d['JvaJRa']=_0x3bd639,_0x1b6d['wyetxp']={},_0x1b6d['KDejGN']=!![];}const _0x748efc=_0x2aa875[0x1932*-0x1+0x11bd+-0x17*-0x53];_0x1b6d['MTrSvo']!==_0x748efc&&(_0x1b6d['wyetxp']={},_0x1b6d['MTrSvo']=_0x748efc);const _0xb22d9b=_0x1b6d['wyetxp'][_0x842a1d];return _0xb22d9b===undefined?(_0x2523d6=_0x1b6d['JvaJRa'](_0x2523d6),_0x1b6d['wyetxp'][_0x842a1d]=_0x2523d6):_0x2523d6=_0xb22d9b,_0x2523d6;}export class NativeSessionWatchService{[_0x41e195(0x89)];[_0x41e195(0xd0)]=new Map();[_0x41e195(0xa0)]=new Map();[_0x41e195(0xe3)]=0xff3+-0x14ee+0x1a9*0x3;constructor(_0x1cc180){const _0x1ea921=_0x41e195;this[_0x1ea921(0x89)]=_0x1cc180;}[_0x41e195(0xc2)](){const _0x5bf267=_0x41e195;return{'session.watch':_0x33b994=>this[_0x5bf267(0x99)](isPlainRecord(_0x33b994)?_0x33b994:{}),'session.unwatch':_0x3608d8=>this[_0x5bf267(0x10f)](isPlainRecord(_0x3608d8)?_0x3608d8:{})};}async[_0x41e195(0x99)](_0x2969ab){const _0x37462a=_0x41e195,_0x850f28=this[_0x37462a(0x89)][_0x37462a(0xc0)];if(_0x2969ab[_0x37462a(0xaf)]===_0x37462a(0xdb)&&_0x850f28===undefined)throw new Error(_0x37462a(0x10d));if(typeof _0x2969ab[_0x37462a(0xe2)]!==_0x37462a(0xe1)||_0x2969ab[_0x37462a(0x10a)]!==undefined&&typeof _0x2969ab[_0x37462a(0x10a)]!==_0x37462a(0xe1)||typeof _0x2969ab[_0x37462a(0xb4)]!==_0x37462a(0xe1)||typeof _0x2969ab[_0x37462a(0xc1)]!==_0x37462a(0xe1)||_0x2969ab[_0x37462a(0x110)]!==_0x37462a(0xe5)&&_0x2969ab[_0x37462a(0x110)]!==_0x37462a(0xce)||_0x2969ab[_0x37462a(0xaf)]!==undefined&&_0x2969ab[_0x37462a(0xaf)]!==_0x37462a(0xdb))throw new Error(_0x37462a(0x10d));const _0x22deec=this[_0x37462a(0xc6)](_0x2969ab);if(_0x2969ab[_0x37462a(0x110)]===_0x37462a(0xce)){const _0x23c7ea=this[_0x37462a(0xa0)][_0x37462a(0xd3)](_0x22deec);if(_0x23c7ea===undefined||_0x23c7ea[_0x37462a(0xb4)]!==_0x2969ab[_0x37462a(0xb4)]||_0x23c7ea[_0x37462a(0xe2)]!==_0x2969ab[_0x37462a(0xe2)]||_0x2969ab[_0x37462a(0x10a)]!==undefined&&_0x23c7ea[_0x37462a(0x10a)]!==_0x2969ab[_0x37462a(0x10a)])throw new Error(_0x37462a(0x111));if(_0x23c7ea[_0x37462a(0x102)]<=Date[_0x37462a(0xd1)]()){this[_0x37462a(0xb3)](_0x22deec);throw new Error(_0x37462a(0x111));}_0x23c7ea[_0x37462a(0x102)]=Date[_0x37462a(0xd1)]()+TTL_MS;const _0x16b15f=this[_0x37462a(0xd0)][_0x37462a(0xd3)](_0x23c7ea[_0x37462a(0xe2)]);if(_0x16b15f!==undefined)_0x16b15f[_0x37462a(0x102)]=this[_0x37462a(0xec)](_0x23c7ea[_0x37462a(0xe2)]);return clearTimeout(_0x23c7ea[_0x37462a(0xa4)]),_0x23c7ea[_0x37462a(0xa4)]=this[_0x37462a(0x98)](_0x22deec),this[_0x37462a(0xcf)](_0x23c7ea);}const _0x4707e=this[_0x37462a(0xa0)][_0x37462a(0xd3)](_0x22deec),_0x380b21=_0x2969ab[_0x37462a(0xaf)]===_0x37462a(0xdb)?_0x37462a(0xdb):_0x37462a(0xfd);if(_0x4707e?.[_0x37462a(0xb4)]===_0x2969ab[_0x37462a(0xb4)]&&_0x4707e[_0x37462a(0xe2)]===_0x2969ab[_0x37462a(0xe2)]&&(_0x2969ab[_0x37462a(0x10a)]===undefined||_0x4707e[_0x37462a(0x10a)]===_0x2969ab[_0x37462a(0x10a)])&&_0x4707e[_0x37462a(0xaf)]===_0x380b21&&_0x4707e[_0x37462a(0x102)]>Date[_0x37462a(0xd1)]())return _0x4707e[_0x37462a(0x102)]=Date[_0x37462a(0xd1)]()+TTL_MS,clearTimeout(_0x4707e[_0x37462a(0xa4)]),_0x4707e[_0x37462a(0xa4)]=this[_0x37462a(0x98)](_0x22deec),this[_0x37462a(0xcf)](_0x4707e);this[_0x37462a(0xb3)](_0x22deec);const _0xcc8463={'ownerKey':_0x22deec,'sessionHash':this[_0x37462a(0xeb)](_0x2969ab),'workbenchConnectionId':_0x2969ab[_0x37462a(0xc1)],'watchId':_0x2969ab[_0x37462a(0xb4)],'sessionId':_0x2969ab[_0x37462a(0xe2)],'unit':_0x380b21,'nodeGeneration':this[_0x37462a(0x89)][_0x37462a(0xe0)]?.()??_0x37462a(0xae),...typeof _0x2969ab[_0x37462a(0x10a)]===_0x37462a(0xe1)?{'workspaceId':_0x2969ab[_0x37462a(0x10a)]}:{},'expiresAt':Date[_0x37462a(0xd1)]()+TTL_MS,'ready':![],'snapshotSent':![],'pendingEvents':[],'timer':undefined};_0xcc8463[_0x37462a(0xa4)]=this[_0x37462a(0x98)](_0x22deec),this[_0x37462a(0xa0)][_0x37462a(0x8d)](_0x22deec,_0xcc8463);const _0x12bc15=this[_0x37462a(0xd0)][_0x37462a(0xd3)](_0xcc8463[_0x37462a(0xe2)]);if(_0x12bc15!==undefined)_0x12bc15[_0x37462a(0x102)]=this[_0x37462a(0xec)](_0xcc8463[_0x37462a(0xe2)]);return void this[_0x37462a(0x9d)](_0xcc8463,_0x850f28),this[_0x37462a(0xcf)](_0xcc8463);}[_0x41e195(0x10f)](_0x3f7967){const _0x171cea=_0x41e195;if(typeof _0x3f7967[_0x171cea(0xe2)]!==_0x171cea(0xe1)||typeof _0x3f7967[_0x171cea(0xb4)]!==_0x171cea(0xe1)||typeof _0x3f7967[_0x171cea(0xc1)]!==_0x171cea(0xe1))throw new Error(_0x171cea(0x10d));const _0x4d58aa=this[_0x171cea(0xc6)](_0x3f7967),_0x28c9f0=this[_0x171cea(0xa0)][_0x171cea(0xd3)](_0x4d58aa);if(_0x28c9f0?.[_0x171cea(0xb4)]===_0x3f7967[_0x171cea(0xb4)]&&_0x28c9f0[_0x171cea(0xe2)]===_0x3f7967[_0x171cea(0xe2)])this[_0x171cea(0xb3)](_0x4d58aa);return{'stopped':!![]};}[_0x41e195(0x92)](_0x286d87){const _0xe8af93=_0x41e195,_0x1911ae=this[_0xe8af93(0xd0)][_0xe8af93(0xd3)](_0x286d87['id']);if(_0x1911ae!==undefined)return _0x1911ae[_0xe8af93(0x102)]=Date[_0xe8af93(0xd1)]()+TTL_MS,{'expiresAt':_0x1911ae[_0xe8af93(0x102)]};const _0x3a0de8={'session':_0x286d87,'mode':this[_0xe8af93(0x89)][_0xe8af93(0xf5)](_0x286d87)?_0xe8af93(0x87):_0xe8af93(0xbf),'expiresAt':Date[_0xe8af93(0xd1)]()+TTL_MS,'refresh':undefined,'sessionSignature':undefined,'signature':undefined,'page':undefined,'runtimePage':undefined,'runtimeRevision':undefined,'runtimeRead':undefined,'observedPage':undefined,'authority':undefined,'eventRevision':0x0,'failures':0x0,'transitionGeneration':0x0,'timer':undefined};return _0x3a0de8[_0xe8af93(0xa4)]=this[_0xe8af93(0xa5)](_0x286d87['id']),this[_0xe8af93(0xd0)][_0xe8af93(0x8d)](_0x286d87['id'],_0x3a0de8),{'expiresAt':_0x3a0de8[_0xe8af93(0x102)]};}[_0x41e195(0x9b)](_0x4510d0,_0x59c1fd){const _0x3f06c9=_0x41e195,_0xd0d383=this[_0x3f06c9(0xd0)][_0x3f06c9(0xd3)](_0x4510d0);if(_0xd0d383!==undefined)_0xd0d383[_0x3f06c9(0x100)]=_0x59c1fd[_0x3f06c9(0xf1)];const _0x28a10d=[...this[_0x3f06c9(0xa0)][_0x3f06c9(0xd8)]()][_0x3f06c9(0xfe)](_0x20b1a9=>_0x20b1a9[_0x3f06c9(0xe2)]===_0x4510d0),_0x1d4a10=sessionActivity(_0x59c1fd);if(_0xd0d383!==undefined&&_0x1d4a10===_0x3f06c9(0x87)&&_0xd0d383[_0x3f06c9(0x110)]!==_0x3f06c9(0x87)){_0xd0d383[_0x3f06c9(0x110)]=_0x3f06c9(0x87),_0xd0d383[_0x3f06c9(0xb8)]+=0x1b12+-0xa+-0x1b07;for(const _0x4110b1 of _0x28a10d)_0x4110b1[_0x3f06c9(0x103)]=![];void this[_0x3f06c9(0xf9)](_0xd0d383,_0xd0d383[_0x3f06c9(0xb8)]);}else{if(_0xd0d383!==undefined&&_0x1d4a10===_0x3f06c9(0xd6)&&_0xd0d383[_0x3f06c9(0x110)]===_0x3f06c9(0x87)){_0xd0d383[_0x3f06c9(0x110)]=_0x3f06c9(0xdc);const _0x56051a=++_0xd0d383[_0x3f06c9(0xb8)];for(const _0x414c81 of _0x28a10d)_0x414c81[_0x3f06c9(0x103)]=![];setTimeout(()=>void this[_0x3f06c9(0xd5)](_0xd0d383,_0x56051a),-0x23e4+-0x1*0x2f+0x2413*0x1);}}for(const _0x19ba58 of _0x28a10d){if(!_0x19ba58[_0x3f06c9(0x103)])_0x19ba58[_0x3f06c9(0x101)][_0x3f06c9(0x116)](_0x59c1fd);else this[_0x3f06c9(0xb5)](_0x19ba58,_0x59c1fd);}return _0x28a10d[_0x3f06c9(0xb6)]>0x795*-0x5+-0x3*-0x4c0+0x17a9;}[_0x41e195(0xce)](_0x60d361){const _0x5b28e2=_0x41e195,_0x303ed8=this[_0x5b28e2(0xd0)][_0x5b28e2(0xd3)](_0x60d361['id']);if(_0x303ed8===undefined||_0x303ed8[_0x5b28e2(0x102)]<=Date[_0x5b28e2(0xd1)]())return this[_0x5b28e2(0xfb)](_0x60d361['id']),undefined;return _0x303ed8[_0x5b28e2(0x102)]=Date[_0x5b28e2(0xd1)]()+TTL_MS,{'expiresAt':_0x303ed8[_0x5b28e2(0x102)]};}[_0x41e195(0xfb)](_0x51fe11){const _0x1e18bd=_0x41e195,_0x3349f5=this[_0x1e18bd(0xd0)][_0x1e18bd(0xd3)](_0x51fe11);if(_0x3349f5===undefined)return;clearTimeout(_0x3349f5[_0x1e18bd(0xa4)]),this[_0x1e18bd(0xd0)][_0x1e18bd(0x106)](_0x51fe11);}[_0x41e195(0xfc)](){const _0x6a76df=_0x41e195;for(const _0x1a8cac of this[_0x6a76df(0xd0)][_0x6a76df(0xd8)]())clearTimeout(_0x1a8cac[_0x6a76df(0xa4)]);this[_0x6a76df(0xd0)][_0x6a76df(0xfc)]();for(const _0x4b0529 of this[_0x6a76df(0xa0)][_0x6a76df(0xd8)]())clearTimeout(_0x4b0529[_0x6a76df(0xa4)]);this[_0x6a76df(0xa0)][_0x6a76df(0xfc)]();}[_0x41e195(0xc3)](_0xb569dd){const _0x4d9998=_0x41e195;return this[_0x4d9998(0xd0)][_0x4d9998(0xc3)](_0xb569dd);}[_0x41e195(0x85)](_0x7ea726){const _0x21edc8=_0x41e195;return this[_0x21edc8(0xd0)][_0x21edc8(0xd3)](_0x7ea726);}get[_0x41e195(0xa1)](){const _0x46f9c2=_0x41e195;return this[_0x46f9c2(0xd0)][_0x46f9c2(0xa1)];}async[_0x41e195(0xe6)](_0x3b3d42,_0xa0dcca=0x1a8e+-0x20e*-0x13+0x3*-0x15da,_0x1bef2f=!![]){const _0x38a129=_0x41e195,_0x4ef0c3=this[_0x38a129(0xd0)][_0x38a129(0xd3)](_0x3b3d42);if(_0x4ef0c3===undefined)return undefined;if(_0x4ef0c3[_0x38a129(0xe6)]!==undefined)return _0x4ef0c3[_0x38a129(0xe6)];if(_0x4ef0c3[_0x38a129(0x102)]<=Date[_0x38a129(0xd1)]())return this[_0x38a129(0xfb)](_0x3b3d42),undefined;const _0x2db973=this[_0x38a129(0x109)](_0x3b3d42,_0x4ef0c3,_0xa0dcca,_0x1bef2f);_0x4ef0c3[_0x38a129(0xe6)]=_0x2db973;try{return await _0x2db973;}finally{this[_0x38a129(0xd0)][_0x38a129(0xd3)](_0x3b3d42)===_0x4ef0c3&&(_0x4ef0c3[_0x38a129(0xe6)]=undefined,clearTimeout(_0x4ef0c3[_0x38a129(0xa4)]),_0x4ef0c3[_0x38a129(0xa4)]=this[_0x38a129(0xa5)](_0x3b3d42));}}async[_0x41e195(0x109)](_0x92e63e,_0x2b9461,_0x171b88,_0x375557){const _0x3357b4=_0x41e195;let _0x5d92dd=_0x3357b4(0xdf),_0x4abbc3;try{if(this[_0x3357b4(0x89)][_0x3357b4(0xa7)]?.(_0x92e63e)===!![])return _0x2b9461[_0x3357b4(0xcd)];_0x4abbc3=await this[_0x3357b4(0x89)][_0x3357b4(0xdf)](_0x92e63e);if(_0x4abbc3===undefined||_0x4abbc3[_0x3357b4(0xd2)]===null)return this[_0x3357b4(0x86)](_0x92e63e),undefined;_0x2b9461[_0x3357b4(0x10c)]=_0x4abbc3;if(_0x375557&&this[_0x3357b4(0x89)][_0x3357b4(0xf5)](_0x4abbc3))return _0x2b9461[_0x3357b4(0xcd)];_0x5d92dd=_0x3357b4(0xbd),await this[_0x3357b4(0x89)][_0x3357b4(0x107)](_0x4abbc3);if(this[_0x3357b4(0x89)][_0x3357b4(0xa7)]?.(_0x92e63e)===!![])return _0x2b9461[_0x3357b4(0xcd)];_0x5d92dd=_0x3357b4(0x8e);const _0x193437=_0x2b9461[_0x3357b4(0x100)],_0x245d6f=await this[_0x3357b4(0x89)][_0x3357b4(0xe4)](_0x4abbc3,_0x171b88);if(_0x375557&&_0x193437!==_0x2b9461[_0x3357b4(0x100)])return _0x2b9461[_0x3357b4(0xcd)];_0x5d92dd=_0x3357b4(0xf7);const _0x353970=this[_0x3357b4(0x89)][_0x3357b4(0x9e)](_0x4abbc3),_0x4eb41d=JSON[_0x3357b4(0x112)](_0x353970);if(_0x4eb41d!==_0x2b9461[_0x3357b4(0xf8)]){_0x2b9461[_0x3357b4(0xf8)]=_0x4eb41d;if(_0x375557)this[_0x3357b4(0x89)][_0x3357b4(0xb9)](_0x353970);}_0x2b9461[_0x3357b4(0xd4)]=0x211c*-0x1+-0x1*-0x1cc9+0x453;const _0x1d8de8=_0x245d6f[_0x3357b4(0xe8)][_0x3357b4(0xb6)]<=EMITTED_TURN_LIMIT?_0x245d6f[_0x3357b4(0xe8)]:_0x245d6f[_0x3357b4(0xe8)][_0x3357b4(0xba)](-EMITTED_TURN_LIMIT),_0x150a18={..._0x245d6f,'turns':_0x1d8de8};_0x5d92dd=_0x3357b4(0x114);const _0x351807=this[_0x3357b4(0x89)][_0x3357b4(0xc7)](_0x2b9461[_0x3357b4(0xcd)],_0x2b9461[_0x3357b4(0xe7)],_0x150a18,_0x2b9461[_0x3357b4(0xf6)]),_0x2dc0eb=_0x351807[_0x3357b4(0xcd)],_0x49003e=_0x2dc0eb[_0x3357b4(0xe8)][_0x3357b4(0xb6)]<=EMITTED_TURN_LIMIT+(0x1932*-0x1+0x11bd+-0x5*-0x17e)?_0x2dc0eb:{..._0x2dc0eb,'turns':_0x2dc0eb[_0x3357b4(0xe8)][_0x3357b4(0xba)](-(EMITTED_TURN_LIMIT+(-0x204e+-0x573+-0xc96*-0x3)))};_0x2b9461[_0x3357b4(0xe7)]=_0x150a18,_0x2b9461[_0x3357b4(0xf6)]=_0x351807[_0x3357b4(0xf6)];const _0x24968c=_0x2b9461[_0x3357b4(0x110)]===_0x3357b4(0xdc)&&!this[_0x3357b4(0x89)][_0x3357b4(0xf5)](_0x4abbc3);_0x24968c&&(_0x2b9461[_0x3357b4(0x110)]=_0x3357b4(0xbf),_0x2b9461[_0x3357b4(0xb0)]=undefined,_0x2b9461[_0x3357b4(0xea)]=undefined);const _0x5f1346=JSON[_0x3357b4(0x112)]({'source':_0x49003e[_0x3357b4(0x8b)],'turns':_0x49003e[_0x3357b4(0xe8)]}),_0x4704fa=_0x5f1346!==_0x2b9461[_0x3357b4(0x10e)];_0x4704fa&&(_0x2b9461[_0x3357b4(0x10e)]=_0x5f1346,_0x2b9461[_0x3357b4(0xcd)]=_0x49003e);_0x5d92dd=_0x3357b4(0xef);if(_0x375557&&_0x24968c)this[_0x3357b4(0x9a)](_0x4abbc3,_0x49003e,!![]);else{if(_0x375557&&_0x4704fa)this[_0x3357b4(0xf0)](_0x4abbc3,_0x49003e);}return _0x375557?_0x49003e:_0x245d6f;}catch(_0xd26535){_0x2b9461[_0x3357b4(0xd4)]+=-0x1df3+0xce*0x11+0x2*0x823,this[_0x3357b4(0x89)][_0x3357b4(0x108)]?.(_0x3357b4(0xca),{'nodeId':this[_0x3357b4(0x89)][_0x3357b4(0xa8)]?.()??_0x3357b4(0x104),'sessionId':_0x92e63e,..._0x4abbc3===undefined?{}:{'runner':_0x4abbc3[_0x3357b4(0xff)]},'stage':_0x5d92dd,'errorCode':diagnosticErrorCode(_0xd26535,_0x3357b4(0xf3)),'failureCount':_0x2b9461[_0x3357b4(0xd4)],'terminal':_0x2b9461[_0x3357b4(0xd4)]>=MAX_FAILURES});if(_0x2b9461[_0x3357b4(0xd4)]>=MAX_FAILURES)this[_0x3357b4(0xf4)](_0x92e63e);return undefined;}}[_0x41e195(0xeb)](_0x458d6b){const _0x4d7f80=_0x41e195;return typeof _0x458d6b[_0x4d7f80(0x9c)]===_0x4d7f80(0xe1)?_0x458d6b[_0x4d7f80(0x9c)]:_0x4d7f80(0xde);}[_0x41e195(0xc6)](_0x4ab8f2){const _0x23958a=_0x41e195;return this[_0x23958a(0xeb)](_0x4ab8f2)+':'+_0x4ab8f2[_0x23958a(0xc1)];}[_0x41e195(0xcf)](_0x1f556c){const _0x39157a=_0x41e195;return{'accepted':!![],'watchId':_0x1f556c[_0x39157a(0xb4)],'nodeGeneration':_0x1f556c[_0x39157a(0xe0)],'expiresAt':_0x1f556c[_0x39157a(0x102)]};}async[_0x41e195(0x9d)](_0x179bec,_0xd45c7){const _0x3c8319=_0x41e195;let _0x5e5429=_0x3c8319(0xdf);try{const _0x5ae085=await this[_0x3c8319(0x89)][_0x3c8319(0xdf)](_0x179bec[_0x3c8319(0xe2)]);if(_0x5ae085===undefined||_0x5ae085[_0x3c8319(0xd2)]===null)throw new Error(_0x3c8319(0xaa));if(_0x179bec[_0x3c8319(0x10a)]!==undefined&&_0x5ae085[_0x3c8319(0x10a)]!==_0x179bec[_0x3c8319(0x10a)])throw new Error(_0x3c8319(0x8c));if(this[_0x3c8319(0xa0)][_0x3c8319(0xd3)](_0x179bec[_0x3c8319(0xc6)])!==_0x179bec)return;_0x179bec[_0x3c8319(0x10a)]=_0x5ae085[_0x3c8319(0x10a)],_0x5e5429=_0x3c8319(0xa6),this[_0x3c8319(0x92)](_0x5ae085);const _0x3481ed=this[_0x3c8319(0xd0)][_0x3c8319(0xd3)](_0x5ae085['id']);if(_0x3481ed!==undefined)_0x3481ed[_0x3c8319(0x10c)]=_0x5ae085;const _0x2167bf=this[_0x3c8319(0x89)][_0x3c8319(0xf5)](_0x5ae085);if(_0x3481ed!==undefined)_0x3481ed[_0x3c8319(0x110)]=_0x2167bf?_0x3c8319(0x87):_0x3481ed[_0x3c8319(0x110)];const _0x3f925f=!_0x2167bf&&_0x3481ed?.[_0x3c8319(0xcd)]!==undefined?_0x3481ed[_0x3c8319(0xcd)]:undefined,_0x524ada=_0x2167bf?_0x3481ed===undefined?undefined:this[_0x3c8319(0xd7)](_0x3481ed[_0x3c8319(0xcd)],await this[_0x3c8319(0x90)](_0x3481ed,_0x5ae085)):_0x3f925f??(_0x3481ed===undefined?undefined:await this[_0x3c8319(0xe6)](_0x5ae085['id'],INITIAL_TURN_LIMIT,![]));if(_0x524ada===undefined)throw new Error(_0x3c8319(0xc5));if(_0x179bec[_0x3c8319(0x88)])return;_0x5e5429=_0x3c8319(0xad);const _0x17b1a6=_0x179bec[_0x3c8319(0xaf)]===_0x3c8319(0xdb)?_0xd45c7(_0x5ae085,_0x524ada,_0x3c8319(0xdb),0x10e3+-0xa0d+-0x6cc):_0x524ada;if(this[_0x3c8319(0xa0)][_0x3c8319(0xd3)](_0x179bec[_0x3c8319(0xc6)])!==_0x179bec)return;this[_0x3c8319(0xa9)](_0x179bec,_0x5ae085,_0x17b1a6),_0x179bec[_0x3c8319(0x103)]=!![];for(const _0x390672 of _0x179bec[_0x3c8319(0x101)])this[_0x3c8319(0xb5)](_0x179bec,_0x390672);_0x179bec[_0x3c8319(0x101)][_0x3c8319(0xb6)]=0x1d8e*0x1+-0x10da*0x1+0xc*-0x10f;}catch(_0x50c88a){if(this[_0x3c8319(0xa0)][_0x3c8319(0xd3)](_0x179bec[_0x3c8319(0xc6)])!==_0x179bec)return;const _0x48791a=diagnosticErrorCode(_0x50c88a,_0x3c8319(0x94));this[_0x3c8319(0x89)][_0x3c8319(0x108)]?.(_0x3c8319(0xb1),{'nodeId':this[_0x3c8319(0x89)][_0x3c8319(0xa8)]?.()??_0x3c8319(0x104),'sessionId':_0x179bec[_0x3c8319(0xe2)],'workspaceId':_0x179bec[_0x3c8319(0x10a)]??_0x3c8319(0xee),'workbenchConnectionId':_0x179bec[_0x3c8319(0xc1)],'watchId':_0x179bec[_0x3c8319(0xb4)],'stage':_0x5e5429,'errorCode':_0x48791a}),this[_0x3c8319(0x89)][_0x3c8319(0xc4)]?.({'type':_0x3c8319(0xc9),'workbenchConnectionId':_0x179bec[_0x3c8319(0xc1)],'watchType':_0x3c8319(0x10c),'watchId':_0x179bec[_0x3c8319(0xb4)],'nodeGeneration':_0x179bec[_0x3c8319(0xe0)],'nodeId':this[_0x3c8319(0x89)][_0x3c8319(0xa8)]?.()??_0x3c8319(0x104),'workspaceId':_0x179bec[_0x3c8319(0x10a)]??_0x3c8319(0xee),'sessionId':_0x179bec[_0x3c8319(0xe2)],'code':_0x48791a,'message':_0x3c8319(0xbc)}),this[_0x3c8319(0xb3)](_0x179bec[_0x3c8319(0xc6)]);}}[_0x41e195(0xb3)](_0x741fdf){const _0x2fb2d8=_0x41e195,_0x188630=this[_0x2fb2d8(0xa0)][_0x2fb2d8(0xd3)](_0x741fdf);if(_0x188630===undefined)return;clearTimeout(_0x188630[_0x2fb2d8(0xa4)]),this[_0x2fb2d8(0xa0)][_0x2fb2d8(0x106)](_0x741fdf);const _0x39822c=this[_0x2fb2d8(0xd0)][_0x2fb2d8(0xd3)](_0x188630[_0x2fb2d8(0xe2)]),_0x565e50=this[_0x2fb2d8(0xec)](_0x188630[_0x2fb2d8(0xe2)]);if(_0x565e50===-0x768+0x5e2+0x186)this[_0x2fb2d8(0xfb)](_0x188630[_0x2fb2d8(0xe2)]);else{if(_0x39822c!==undefined)_0x39822c[_0x2fb2d8(0x102)]=_0x565e50;}}[_0x41e195(0xd7)](_0x1c1449,_0x20a2cd){const _0x48bed5=_0x41e195;return this[_0x48bed5(0x89)][_0x48bed5(0xd7)]?.(_0x1c1449,_0x20a2cd)??_0x20a2cd;}async[_0x41e195(0x90)](_0x28d8a2,_0x510ad5){const _0x382dce=_0x41e195;if(_0x28d8a2[_0x382dce(0xb0)]!==undefined&&_0x28d8a2[_0x382dce(0xea)]===_0x28d8a2[_0x382dce(0x100)])return _0x28d8a2[_0x382dce(0xb0)];if(_0x28d8a2[_0x382dce(0x96)]!==undefined)return _0x28d8a2[_0x382dce(0x96)];const _0x40e014=_0x28d8a2[_0x382dce(0x100)],_0x2372f8=this[_0x382dce(0x89)][_0x382dce(0xe4)](_0x510ad5,INITIAL_TURN_LIMIT);_0x28d8a2[_0x382dce(0x96)]=_0x2372f8;try{const _0x41f780=await _0x2372f8;return this[_0x382dce(0xd0)][_0x382dce(0xd3)](_0x510ad5['id'])===_0x28d8a2&&(_0x28d8a2[_0x382dce(0xb0)]=_0x41f780,_0x28d8a2[_0x382dce(0xea)]=_0x40e014),_0x41f780;}finally{if(this[_0x382dce(0xd0)][_0x382dce(0xd3)](_0x510ad5['id'])===_0x28d8a2&&_0x28d8a2[_0x382dce(0x96)]===_0x2372f8)_0x28d8a2[_0x382dce(0x96)]=undefined;}}async[_0x41e195(0xf9)](_0x538e5f,_0x36c1cf){const _0x256665=_0x41e195,_0x57133c=_0x538e5f[_0x256665(0x10c)];if(_0x57133c===undefined)return;try{const _0x3897c8=await this[_0x256665(0x90)](_0x538e5f,_0x57133c);if(this[_0x256665(0xd0)][_0x256665(0xd3)](_0x57133c['id'])!==_0x538e5f||_0x538e5f[_0x256665(0x110)]!==_0x256665(0x87)||_0x538e5f[_0x256665(0xb8)]!==_0x36c1cf)return;_0x538e5f[_0x256665(0xb0)]=_0x3897c8,this[_0x256665(0x9a)](_0x57133c,this[_0x256665(0xd7)](_0x538e5f[_0x256665(0xcd)],_0x3897c8),!![]);}catch(_0x2f88f5){this[_0x256665(0x89)][_0x256665(0x108)]?.(_0x256665(0xdd),{'nodeId':this[_0x256665(0x89)][_0x256665(0xa8)]?.()??_0x256665(0x104),'sessionId':_0x57133c['id'],'runner':_0x57133c[_0x256665(0xff)],'errorCode':diagnosticErrorCode(_0x2f88f5,_0x256665(0x95))}),this[_0x256665(0xcc)](_0x57133c['id']);}}async[_0x41e195(0xd5)](_0x318aee,_0x2d0550){const _0x464402=_0x41e195,_0x173a11=_0x318aee[_0x464402(0x10c)];if(_0x173a11===undefined||this[_0x464402(0xd0)][_0x464402(0xd3)](_0x173a11['id'])!==_0x318aee||_0x318aee[_0x464402(0x110)]!==_0x464402(0xdc)||_0x318aee[_0x464402(0xb8)]!==_0x2d0550)return;await this[_0x464402(0xe6)](_0x173a11['id'],INITIAL_TURN_LIMIT,!![]);}[_0x41e195(0xb5)](_0x549d64,_0x477917){const _0x22f162=_0x41e195;this[_0x22f162(0x89)][_0x22f162(0xc4)]?.({'type':_0x22f162(0xda),'workbenchConnectionId':_0x549d64[_0x22f162(0xc1)],'watchId':_0x549d64[_0x22f162(0xb4)],'nodeGeneration':_0x549d64[_0x22f162(0xe0)],'nodeId':this[_0x22f162(0x89)][_0x22f162(0xa8)]?.()??_0x22f162(0x104),'workspaceId':_0x549d64[_0x22f162(0x10a)]??_0x22f162(0xee),'sessionId':_0x549d64[_0x22f162(0xe2)],'expiresAt':_0x549d64[_0x22f162(0x102)],'event':_0x477917});}[_0x41e195(0xf0)](_0x59a151,_0x252f25){const _0x281d0f=_0x41e195,_0x29d6f5=[...this[_0x281d0f(0xa0)][_0x281d0f(0xd8)]()][_0x281d0f(0xfe)](_0x274b9d=>_0x274b9d[_0x281d0f(0xe2)]===_0x59a151['id']);if(_0x29d6f5[_0x281d0f(0xb6)]===-0x1b1*-0x11+0x12e*-0x2+-0x1d*0xe9){this[_0x281d0f(0x89)][_0x281d0f(0x8a)](_0x59a151,_0x252f25);return;}for(const _0x3c0935 of _0x29d6f5){if(!_0x3c0935[_0x281d0f(0x103)])continue;const _0x4f8c70=_0x3c0935[_0x281d0f(0xaf)]===_0x281d0f(0xdb)?this[_0x281d0f(0x89)][_0x281d0f(0xc0)]?.(_0x59a151,_0x252f25,_0x281d0f(0xdb),0x7dc+-0xbc9+0x23*0x1d):_0x252f25;if(_0x4f8c70===undefined)continue;this[_0x281d0f(0x89)][_0x281d0f(0xc4)]?.({'type':_0x281d0f(0xc8),'workbenchConnectionId':_0x3c0935[_0x281d0f(0xc1)],'watchId':_0x3c0935[_0x281d0f(0xb4)],'nodeGeneration':_0x3c0935[_0x281d0f(0xe0)],'nodeId':this[_0x281d0f(0x89)][_0x281d0f(0xa8)]?.()??_0x281d0f(0x104),'workspaceId':_0x59a151[_0x281d0f(0x10a)],'sessionId':_0x59a151['id'],'revision':0x1,'snapshotSequence':++this[_0x281d0f(0xe3)],'expiresAt':_0x3c0935[_0x281d0f(0x102)],'payload':_0x4f8c70});}}[_0x41e195(0x9a)](_0xcaec9c,_0x38521e,_0x408789){const _0x25c1f9=_0x41e195;for(const _0x42ffb4 of[...this[_0x25c1f9(0xa0)][_0x25c1f9(0xd8)]()]){if(_0x42ffb4[_0x25c1f9(0xe2)]!==_0xcaec9c['id'])continue;const _0x48d23e=_0x42ffb4[_0x25c1f9(0xaf)]===_0x25c1f9(0xdb)?this[_0x25c1f9(0x89)][_0x25c1f9(0xc0)]?.(_0xcaec9c,_0x38521e,_0x25c1f9(0xdb),-0x27+0x128b+-0x125a):_0x38521e;if(_0x48d23e===undefined)continue;this[_0x25c1f9(0xa9)](_0x42ffb4,_0xcaec9c,_0x48d23e);if(!_0x408789)continue;_0x42ffb4[_0x25c1f9(0x103)]=!![];for(const _0x3f2c4f of _0x42ffb4[_0x25c1f9(0x101)])this[_0x25c1f9(0xb5)](_0x42ffb4,_0x3f2c4f);_0x42ffb4[_0x25c1f9(0x101)][_0x25c1f9(0xb6)]=-0xc3b+0x20f4+-0x14b9;}}[_0x41e195(0xa9)](_0x38c050,_0x367be6,_0x604ed4){const _0x280134=_0x41e195;_0x38c050[_0x280134(0x88)]=!![],this[_0x280134(0x89)][_0x280134(0xc4)]?.({'type':_0x280134(0xc8),'workbenchConnectionId':_0x38c050[_0x280134(0xc1)],'watchId':_0x38c050[_0x280134(0xb4)],'nodeGeneration':_0x38c050[_0x280134(0xe0)],'nodeId':this[_0x280134(0x89)][_0x280134(0xa8)]?.()??_0x280134(0x104),'workspaceId':_0x367be6[_0x280134(0x10a)],'sessionId':_0x367be6['id'],'revision':0x1,'snapshotSequence':++this[_0x280134(0xe3)],'expiresAt':_0x38c050[_0x280134(0x102)],'payload':_0x604ed4});}[_0x41e195(0xcc)](_0x2ed878){const _0x3ed909=_0x41e195;for(const _0x213012 of this[_0x3ed909(0xa0)][_0x3ed909(0xd8)]()){if(_0x213012[_0x3ed909(0xe2)]!==_0x2ed878)continue;_0x213012[_0x3ed909(0x103)]=!![];for(const _0x105206 of _0x213012[_0x3ed909(0x101)])this[_0x3ed909(0xb5)](_0x213012,_0x105206);_0x213012[_0x3ed909(0x101)][_0x3ed909(0xb6)]=-0x219+0x483*-0x1+0x11a*0x6;}}[_0x41e195(0xf4)](_0x131e3c){const _0x30910d=_0x41e195;for(const _0x297811 of[...this[_0x30910d(0xa0)][_0x30910d(0xd8)]()]){if(_0x297811[_0x30910d(0xe2)]!==_0x131e3c)continue;this[_0x30910d(0x89)][_0x30910d(0xc4)]?.({'type':_0x30910d(0xc9),'workbenchConnectionId':_0x297811[_0x30910d(0xc1)],'watchType':_0x30910d(0x10c),'watchId':_0x297811[_0x30910d(0xb4)],'nodeGeneration':_0x297811[_0x30910d(0xe0)],'nodeId':this[_0x30910d(0x89)][_0x30910d(0xa8)]?.()??_0x30910d(0x104),'workspaceId':_0x297811[_0x30910d(0x10a)]??_0x30910d(0xee),'sessionId':_0x131e3c,'code':_0x30910d(0xc5),'message':_0x30910d(0xbc)}),this[_0x30910d(0xb3)](_0x297811[_0x30910d(0xc6)]);}this[_0x30910d(0xfb)](_0x131e3c);}[_0x41e195(0x86)](_0x16e4b9){const _0x23be09=_0x41e195;for(const _0x288719 of[...this[_0x23be09(0xa0)][_0x23be09(0xd8)]()])if(_0x288719[_0x23be09(0xe2)]===_0x16e4b9)this[_0x23be09(0xb3)](_0x288719[_0x23be09(0xc6)]);this[_0x23be09(0xfb)](_0x16e4b9);}[_0x41e195(0x98)](_0x75f6e){const _0x56372f=_0x41e195,_0x57df73=setTimeout(()=>this[_0x56372f(0xb3)](_0x75f6e),TTL_MS);return _0x57df73[_0x56372f(0xf2)](),_0x57df73;}[_0x41e195(0xec)](_0x4930b4){const _0x952cb8=_0x41e195;let _0x4719be=0x4*0x6a2+-0x13cb+-0x6bd;for(const _0x5151de of this[_0x952cb8(0xa0)][_0x952cb8(0xd8)]())if(_0x5151de[_0x952cb8(0xe2)]===_0x4930b4)_0x4719be=Math[_0x952cb8(0x10b)](_0x4719be,_0x5151de[_0x952cb8(0x102)]);return _0x4719be;}[_0x41e195(0xa5)](_0xe586cc){const _0x12d23e=_0x41e195,_0x5a58c2=setTimeout(()=>void this[_0x12d23e(0xe6)](_0xe586cc),INTERVAL_MS);return _0x5a58c2[_0x12d23e(0xf2)](),_0x5a58c2;}}function diagnosticErrorCode(_0x26509a,_0x1eea3e){const _0x51263b=_0x41e195,_0x3af674=safeErrorCode(_0x26509a,'');if(_0x3af674[_0x51263b(0xb6)]>0x1*-0x2692+-0xc1c+-0x1a*-0x1f3)return _0x3af674;if(_0x26509a!==null&&typeof _0x26509a===_0x51263b(0x93)&&_0x51263b(0x105)in _0x26509a&&typeof _0x26509a[_0x51263b(0x105)]===_0x51263b(0xe1)&&/^[A-Z][A-Z0-9_]{0,127}$/[_0x51263b(0xbb)](_0x26509a[_0x51263b(0x105)]))return _0x26509a[_0x51263b(0x105)];return _0x1eea3e;}function sessionActivity(_0x32bd52){const _0x466177=_0x41e195;if(!isPlainRecord(_0x32bd52[_0x466177(0x117)]))return undefined;if(_0x32bd52[_0x466177(0xa3)]===_0x466177(0xac)&&isPlainRecord(_0x32bd52[_0x466177(0x117)][_0x466177(0xac)])){const _0x5a1099=_0x32bd52[_0x466177(0x117)][_0x466177(0xac)][_0x466177(0x115)];if(_0x5a1099===_0x466177(0xab)||_0x5a1099===_0x466177(0x87)||_0x5a1099===_0x466177(0x8f))return _0x466177(0x87);return undefined;}if(_0x32bd52[_0x466177(0xa3)]!==_0x466177(0x10c))return undefined;const _0x45d163=_0x32bd52[_0x466177(0x117)][_0x466177(0x10c)];if(!isPlainRecord(_0x45d163)||typeof _0x45d163[_0x466177(0xd9)]!==_0x466177(0xe1))return undefined;return _0x45d163[_0x466177(0xd9)]===_0x466177(0xa2)?_0x466177(0x87):_0x466177(0xd6);}