@myagentroam/node 0.9.41 → 0.9.43

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.
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x44e8b5=_0x2016;(function(_0x4d70a1,_0x58302a){const _0x5236e8=_0x2016,_0x2a2eae=_0x4d70a1();while(!![]){try{const _0x3ed410=parseInt(_0x5236e8(0x14c))/(-0xc*-0x11c+0x169a+-0x13d*0x1d)+parseInt(_0x5236e8(0x256))/(-0x2340+0x1*0x1b09+-0x1a5*-0x5)*(-parseInt(_0x5236e8(0x174))/(0x169f*0x1+-0x1c5*-0x16+-0x1ec5*0x2))+-parseInt(_0x5236e8(0xe6))/(0x1*0x2565+0x1435+0x17a*-0x27)*(-parseInt(_0x5236e8(0x1cf))/(0x1bb8+0x656+-0x2209))+-parseInt(_0x5236e8(0x226))/(0x1dca+0xd35+-0x2af9)+parseInt(_0x5236e8(0xd5))/(0x2*0xea2+0x941*-0x1+0x9fe*-0x2)*(-parseInt(_0x5236e8(0x214))/(-0x2e2+-0x1654+0x12*0x167))+parseInt(_0x5236e8(0xd9))/(-0x123*0x1+-0x61c*-0x3+0x44a*-0x4)+-parseInt(_0x5236e8(0x201))/(0x1*0x1233+-0xdd2+0xb*-0x65)*(-parseInt(_0x5236e8(0x133))/(-0x130c+0xdc6+-0x551*-0x1));if(_0x3ed410===_0x58302a)break;else _0x2a2eae['push'](_0x2a2eae['shift']());}catch(_0x4824ab){_0x2a2eae['push'](_0x2a2eae['shift']());}}}(_0xed8b,0x1b*-0x221e+-0xd7f*0x32+-0x21b1*-0x3e));import{createHash,randomUUID}from'node:crypto';import{lstat,mkdir,open,readFile,rename,rm,utimes}from'node:fs/promises';import{isAbsolute,join,relative,resolve,sep}from'node:path';import{conversationTemplateDraftSchema,conversationTemplateSummarySchema,hostedConversationConfigUpdateInputSchema,hostedConversationCreateInputSchema,hostedConversationDeleteResultSchema,hostedConversationFileDeleteInputSchema,hostedConversationFileDeleteResultSchema,hostedConversationFileReadInputSchema,hostedConversationFileReadResultSchema,hostedConversationFilesSchema,hostedConversationIdInputSchema,hostedConversationImageReadInputSchema,hostedConversationListInputSchema,hostedConversationListPageSchema,hostedConversationMessageInputSchema,hostedConversationMetadataUpdateInputSchema,hostedConversationSnapshotSchema,hostedConversationSummarySchema,hostedConversationUnwatchInputSchema,hostedConversationUploadChunkInputSchema,hostedConversationUploadControlInputSchema,hostedConversationUploadCreateInputSchema,hostedConversationUploadPreflightInputSchema,hostedConversationUploadPreflightResultSchema,hostedConversationUploadSchema,hostedConversationWatchInputSchema,marAgentRuntimeModelConfigurationSchema,mcpInstallationConfigurationSchema,mcpRuntimeDescriptorSchema}from'@myagentroam/protocol';import{hostedConversationGeneratedImagesDisplayDirectory,hostedConversationImageRunId,marAgentGeneratedImagesDirectory}from'../runner/mar-agent/generated-images.js';import{sessionTitleFromFirstMessage}from'../util/node-operation-parsers.js';import{safeErrorCode}from'../util/safe-error.js';import{SessionWatchSlotCoordinator}from'./session-watch-slot-coordinator.js';const HOST_POLICY_VERSION=-0x2101+-0x187e+-0x398*-0x10,MAX_FILE_READ_BYTES=(-0x22cf+0x5c*-0x3b+0x3a03)*(0x2426+-0x587*-0x5+-0x3bc9),WATCH_TTL_MS=0x7*-0x298b+0x8a99+0x3*0x6d54,RUNTIME_LINK_ROOTS=[_0x44e8b5(0x13a),_0x44e8b5(0x176),_0x44e8b5(0x18d),_0x44e8b5(0x245),_0x44e8b5(0x231)],RESERVED_SANDBOX_ROOTS=[_0x44e8b5(0x1e1),_0x44e8b5(0xe0),_0x44e8b5(0x24b),_0x44e8b5(0x13a),_0x44e8b5(0x176),_0x44e8b5(0x18d),_0x44e8b5(0x245),_0x44e8b5(0x231),_0x44e8b5(0x238),_0x44e8b5(0x168),_0x44e8b5(0x1f4),_0x44e8b5(0x1ec)];export class HostedConversationNodeService{[_0x44e8b5(0x149)];[_0x44e8b5(0x1e4)];['id'];[_0x44e8b5(0x18a)]=new Map();[_0x44e8b5(0x266)]=new Map();[_0x44e8b5(0x10a)]=new Map();[_0x44e8b5(0x24e)]=new Map();[_0x44e8b5(0x145)]=new Map();[_0x44e8b5(0x25f)]=new Set();[_0x44e8b5(0x1ca)]=new Map();[_0x44e8b5(0x1f6)]=new Map();[_0x44e8b5(0x259)]=new Set();[_0x44e8b5(0x13c)]=new Map();[_0x44e8b5(0x1de)]=new Set();[_0x44e8b5(0x155)];[_0x44e8b5(0x1fc)]=![];[_0x44e8b5(0x215)]=0x1086+-0x57b+0xb0b*-0x1;[_0x44e8b5(0x199)]=0xe9*-0x21+0x1*0x24dc+-0x1*0x6d3;constructor(_0x2bb977){const _0xda4ee6=_0x44e8b5;this[_0xda4ee6(0x149)]=_0x2bb977,this[_0xda4ee6(0x1e4)]=_0x2bb977[_0xda4ee6(0x1e4)]??Date[_0xda4ee6(0x1e4)],this['id']=_0x2bb977['id']??randomUUID,this[_0xda4ee6(0x155)]=_0x2bb977[_0xda4ee6(0x155)]??new SessionWatchSlotCoordinator();}[_0x44e8b5(0x1ed)](){const _0x302f6d=_0x44e8b5;return{'conversation.hosted.list':_0x4b56d9=>this[_0x302f6d(0x1a8)](_0x4b56d9),'conversation.hosted.create':_0x2b2fd3=>this[_0x302f6d(0x154)](_0x2b2fd3),'conversation.hosted.get':_0x2e6f2e=>this[_0x302f6d(0x225)](_0x2e6f2e),'conversation.hosted.watch':_0x4ef5e5=>this[_0x302f6d(0x126)](_0x4ef5e5),'conversation.hosted.unwatch':_0x12624b=>this[_0x302f6d(0x114)](_0x12624b),'conversation.hosted.message':_0x512f01=>this[_0x302f6d(0x15f)](_0x512f01),'conversation.hosted.interrupt':_0x1e61a7=>this[_0x302f6d(0x17f)](_0x1e61a7),'conversation.hosted.config.update':_0x3bb78e=>this[_0x302f6d(0x1d9)](_0x3bb78e),'conversation.hosted.metadata.update':_0x2a2410=>this[_0x302f6d(0x21e)](_0x2a2410),'conversation.hosted.image.read':_0x1e40f5=>this[_0x302f6d(0x11f)](_0x1e40f5),'conversation.hosted.files.list':_0x8e2256=>this[_0x302f6d(0x261)](_0x8e2256),'conversation.hosted.file.read':_0x162736=>this[_0x302f6d(0x1a5)](_0x162736),'conversation.hosted.file.delete':_0x5cd959=>this[_0x302f6d(0x170)](_0x5cd959),'conversation.hosted.files.upload.preflight':_0x4e37c1=>this[_0x302f6d(0x177)](_0x4e37c1),'conversation.hosted.files.upload.create':_0x37ef55=>this[_0x302f6d(0x14f)](_0x37ef55),'conversation.hosted.files.upload.chunk':_0x5ce35e=>this[_0x302f6d(0x228)](_0x5ce35e),'conversation.hosted.files.upload.status':_0x425cee=>this[_0x302f6d(0xf2)](_0x425cee),'conversation.hosted.files.upload.complete':_0x1db4a7=>this[_0x302f6d(0x1ba)](_0x1db4a7),'conversation.hosted.files.upload.cancel':_0x6ab029=>this[_0x302f6d(0xd7)](_0x6ab029),'conversation.hosted.delete':_0x240683=>this[_0x302f6d(0xe8)](_0x240683)};}[_0x44e8b5(0x1f5)](){const _0xe41caf=_0x44e8b5;if(this[_0xe41caf(0x1fc)]||this[_0xe41caf(0x266)][_0xe41caf(0x21a)]>0x33*-0x3d+0x192d+-0x1*0xd06||this[_0xe41caf(0x10a)][_0xe41caf(0x21a)]>0xb*-0x33d+-0xb1b*0x3+0x44f0||this[_0xe41caf(0x24e)][_0xe41caf(0x21a)]>-0x175f+0x1237+-0x28*-0x21)return undefined;return this[_0xe41caf(0x1fc)]=!![],()=>{const _0x609a71=_0xe41caf;this[_0x609a71(0x1fc)]=![];};}[_0x44e8b5(0x1a8)](_0x1697d6){const _0x8e4f03=_0x44e8b5,_0x30deea=hostedRequest(_0x1697d6),_0x11da2e=hostedConversationListInputSchema[_0x8e4f03(0x183)](_0x30deea[_0x8e4f03(0x189)]),_0x38a67c=this[_0x8e4f03(0x149)][_0x8e4f03(0x249)][_0x8e4f03(0x1c5)]({'userId':_0x30deea[_0x8e4f03(0x1ea)],'limit':_0x11da2e[_0x8e4f03(0x1b1)],..._0x11da2e[_0x8e4f03(0x120)]===undefined?{}:{'cursor':_0x11da2e[_0x8e4f03(0x120)]}});return hostedConversationListPageSchema[_0x8e4f03(0x183)]({..._0x38a67c,'items':_0x38a67c[_0x8e4f03(0x197)][_0x8e4f03(0x20e)](_0x484758=>({..._0x484758,'activity':this[_0x8e4f03(0x26b)](_0x484758['id'])}))});}[_0x44e8b5(0x154)](_0x59e20d){const _0x1a5ef=_0x44e8b5;if(this[_0x1a5ef(0x1fc)])return Promise[_0x1a5ef(0xcf)](new Error(_0x1a5ef(0x1e0)));const _0x2f1673=hostedRequest(_0x59e20d),_0x47d580=hostedConversationCreateInputSchema[_0x1a5ef(0x183)](_0x2f1673[_0x1a5ef(0x189)]),_0x55b10e=conversationTemplateSummarySchema[_0x1a5ef(0x183)](_0x2f1673[_0x1a5ef(0x1e8)]),_0x26f438=runtimeModels(_0x2f1673[_0x1a5ef(0x182)]);if(_0x55b10e['id']!==_0x47d580[_0x1a5ef(0x1cd)]||_0x55b10e[_0x1a5ef(0x17c)]!==this[_0x1a5ef(0x149)][_0x1a5ef(0x17c)]()||!_0x55b10e[_0x1a5ef(0x106)]||_0x55b10e[_0x1a5ef(0x152)]!==_0x1a5ef(0x15e)||_0x55b10e[_0x1a5ef(0x243)]===null)throw new Error(_0x1a5ef(0xdb));const _0x269ab2=_0x2f1673[_0x1a5ef(0x1ea)]+'\x00'+_0x47d580[_0x1a5ef(0x1c7)],_0x3140e9=this[_0x1a5ef(0x18a)][_0x1a5ef(0x225)](_0x269ab2);if(_0x3140e9!==undefined)return _0x3140e9;const _0x1fb41a=this[_0x1a5ef(0x149)][_0x1a5ef(0x249)][_0x1a5ef(0x26a)](_0x2f1673[_0x1a5ef(0x1ea)],_0x47d580[_0x1a5ef(0x1c7)]);if(_0x1fb41a!==undefined)return this[_0x1a5ef(0x1c0)](_0x2f1673[_0x1a5ef(0x1ea)],_0x1fb41a['id'],_0x26f438);const _0x183b1d=this[_0x1a5ef(0x1f0)](_0x2f1673[_0x1a5ef(0x1ea)],_0x47d580[_0x1a5ef(0x1c7)],_0x55b10e,_0x26f438,_0x2f1673[_0x1a5ef(0xe2)]);return this[_0x1a5ef(0x18a)][_0x1a5ef(0xfc)](_0x269ab2,_0x183b1d),void _0x183b1d[_0x1a5ef(0x19d)](()=>this[_0x1a5ef(0x18a)][_0x1a5ef(0xe8)](_0x269ab2))[_0x1a5ef(0x196)](()=>undefined),_0x183b1d;}async[_0x44e8b5(0x1f0)](_0x2ed075,_0x230902,_0x2f14a8,_0x4c44b9,_0x459c01){const _0x1cffca=_0x44e8b5;await this[_0x1cffca(0x149)][_0x1cffca(0x1ac)]?.();const _0x47da43=await this[_0x1cffca(0x19a)](_0x2f14a8[_0x1cffca(0x243)],_0x2f14a8['id']),_0x588609=selectModel(_0x47da43,_0x4c44b9,_0x47da43[_0x1cffca(0xec)][_0x1cffca(0xdd)]),_0x7f5646=this['id'](),_0x518b28=await this[_0x1cffca(0x149)][_0x1cffca(0x249)][_0x1cffca(0x101)](_0x2ed075,_0x7f5646),_0xa90231=this[_0x1cffca(0x187)](_0x518b28[_0x1cffca(0x1da)],_0x47da43),_0xdf8d16=this[_0x1cffca(0xe4)](_0x518b28[_0x1cffca(0x1da)],_0x47da43);let _0xfe8332;try{const _0x339c58=await this[_0x1cffca(0x149)][_0x1cffca(0x1ce)][_0x1cffca(0x157)]({'conversationId':_0x7f5646,'homeDirectory':_0x518b28[_0x1cffca(0x1da)][_0x1cffca(0x264)],'workspaceDirectory':_0x47da43[_0x1cffca(0x200)],'systemInstruction':systemInstruction(_0x47da43),'defaultModelId':_0x588609['id'],'models':networkModels(allowedModels(_0x47da43,_0x4c44b9),_0x47da43[_0x1cffca(0xf3)][_0x1cffca(0x1a3)]),..._0x459c01===undefined?{}:{'runtimeScopeId':_0x459c01},'pathMounts':_0xa90231,'processExecutor':_0xdf8d16});_0xfe8332=_0x339c58[_0x1cffca(0x1d1)];const _0x58a413=this[_0x1cffca(0x1e4)](),_0x13e5e0={'id':_0x7f5646,'nodeId':this[_0x1cffca(0x149)][_0x1cffca(0x17c)](),'sessionId':_0xfe8332,'templateId':_0x2f14a8['id'],'templateName':_0x2f14a8[_0x1cffca(0x26c)],'activeVersionId':_0x47da43['id'],'title':_0x2f14a8[_0x1cffca(0x26c)],'titleSource':_0x1cffca(0x212),'pinnedAt':null,'status':_0x1cffca(0x15e),'modelId':_0x588609['id'],'createdAt':_0x58a413,'updatedAt':_0x58a413,'lastActivityAt':_0x58a413,'userStorageKey':_0x518b28[_0x1cffca(0x104)],'conversationStorageKey':_0x518b28[_0x1cffca(0x204)],'clientRequestId':_0x230902,'templateDeleted':![],'quota':{'usedBytes':0x0,'maxBytes':_0x47da43[_0x1cffca(0xf3)][_0x1cffca(0x11b)][_0x1cffca(0xd4)]}},_0x3c7375=await this[_0x1cffca(0x149)][_0x1cffca(0x249)][_0x1cffca(0x1f0)](_0x13e5e0);return _0x3c7375['id']!==_0x7f5646&&(await this[_0x1cffca(0x149)][_0x1cffca(0x1ce)][_0x1cffca(0x1b6)]({'conversationId':_0x7f5646,'sessionId':_0xfe8332,'homeDirectory':_0x518b28[_0x1cffca(0x1da)][_0x1cffca(0x264)]})[_0x1cffca(0x196)](()=>undefined),await rm(_0x518b28[_0x1cffca(0x1da)][_0x1cffca(0xbd)],{'recursive':!![],'force':!![]})),this[_0x1cffca(0x1c0)](_0x2ed075,_0x3c7375['id'],_0x4c44b9);}catch(_0x50c178){if(_0xfe8332!==undefined)await this[_0x1cffca(0x149)][_0x1cffca(0x1ce)][_0x1cffca(0x1b6)]({'conversationId':_0x7f5646,'sessionId':_0xfe8332,'homeDirectory':_0x518b28[_0x1cffca(0x1da)][_0x1cffca(0x264)]})[_0x1cffca(0x196)](()=>undefined);await rm(_0x518b28[_0x1cffca(0x1da)][_0x1cffca(0xbd)],{'recursive':!![],'force':!![]})[_0x1cffca(0x196)](()=>undefined);throw _0x50c178;}}async[_0x44e8b5(0x225)](_0xf21cdd){const _0x5221bc=_0x44e8b5,_0x92467b=hostedRequest(_0xf21cdd),_0x15db86=hostedConversationIdInputSchema[_0x5221bc(0x183)](_0x92467b[_0x5221bc(0x189)]);return this[_0x5221bc(0x1c0)](_0x92467b[_0x5221bc(0x1ea)],_0x15db86[_0x5221bc(0x153)],runtimeModels(_0x92467b[_0x5221bc(0x182)]),_0x92467b[_0x5221bc(0x1c8)]);}async[_0x44e8b5(0x1c0)](_0x55565e,_0x3ab8b8,_0x78f0ff,_0x4eb54c=![]){const _0x403160=_0x44e8b5;let _0x48a0e8=this[_0x403160(0x149)][_0x403160(0x249)][_0x403160(0xc4)](_0x55565e,_0x3ab8b8);if(_0x4eb54c)_0x48a0e8=await this[_0x403160(0x149)][_0x403160(0x249)][_0x403160(0x1cc)](_0x55565e,_0x3ab8b8,this[_0x403160(0x1e4)]());const _0x4a49e7=await this[_0x403160(0x19a)](_0x48a0e8[_0x403160(0x23a)],_0x48a0e8[_0x403160(0x1cd)]),_0x20f0b7=networkModels(allowedModels(_0x4a49e7,_0x78f0ff),_0x4a49e7[_0x403160(0xf3)][_0x403160(0x1a3)]),_0x3096ff=this[_0x403160(0x149)][_0x403160(0x249)][_0x403160(0x222)](_0x55565e,_0x48a0e8['id']),_0x19ea06=await this[_0x403160(0x149)][_0x403160(0x1ce)][_0x403160(0x255)]({'conversationId':_0x48a0e8['id'],'sessionId':_0x48a0e8[_0x403160(0x1d1)],'homeDirectory':_0x3096ff[_0x403160(0x264)],'modelId':_0x48a0e8[_0x403160(0x111)]});return hostedConversationSnapshotSchema[_0x403160(0x183)]({'conversation':this[_0x403160(0x1c3)](_0x48a0e8),'template':templateSummary(_0x48a0e8,_0x4a49e7[_0x403160(0xf3)]),'run':this[_0x403160(0x10a)][_0x403160(0x225)](_0x48a0e8['id'])?.[_0x403160(0xc1)]??null,'turns':_0x19ea06,'files':this[_0x403160(0x149)][_0x403160(0x249)][_0x403160(0x261)](_0x55565e,_0x48a0e8['id']),'models':_0x20f0b7[_0x403160(0x20e)](modelSummary),'error':null,'snapshotSequence':0x0});}async[_0x44e8b5(0x126)](_0x2ded14){const _0x5b6b7a=_0x44e8b5,_0x5c6d9f=hostedRequest(_0x2ded14),_0x53d553=hostedConversationWatchInputSchema[_0x5b6b7a(0x183)](_0x5c6d9f[_0x5b6b7a(0x189)]),_0x455bc0=this[_0x5b6b7a(0x149)][_0x5b6b7a(0x249)][_0x5b6b7a(0xc4)](_0x5c6d9f[_0x5b6b7a(0x1ea)],_0x53d553[_0x5b6b7a(0x153)]);if(this[_0x5b6b7a(0x1de)][_0x5b6b7a(0x102)](_0x455bc0['id']))throw new Error(_0x5b6b7a(0xbf));const _0x4f1df5=requireWatchSessionHash(_0x5c6d9f[_0x5b6b7a(0x16f)]),_0x1551a3=watchOwnerKey(_0x4f1df5,_0x53d553[_0x5b6b7a(0x22c)]);if(_0x53d553[_0x5b6b7a(0x263)]===_0x5b6b7a(0x13e)){const _0x4752c9=this[_0x5b6b7a(0x13c)][_0x5b6b7a(0x225)](_0x1551a3);if(_0x4752c9===undefined||!this[_0x5b6b7a(0x155)][_0x5b6b7a(0x1d4)](_0x1551a3,_0x4752c9[_0x5b6b7a(0x10d)])||_0x4752c9[_0x5b6b7a(0x19b)]!==_0x53d553[_0x5b6b7a(0x19b)]||_0x4752c9[_0x5b6b7a(0x153)]!==_0x53d553[_0x5b6b7a(0x153)]||_0x4752c9[_0x5b6b7a(0x1ea)]!==_0x5c6d9f[_0x5b6b7a(0x1ea)]||_0x4752c9[_0x5b6b7a(0x127)]<=Date[_0x5b6b7a(0x1e4)]()){this[_0x5b6b7a(0x181)](_0x1551a3);throw new Error(_0x5b6b7a(0x246));}return _0x4752c9[_0x5b6b7a(0x127)]=Date[_0x5b6b7a(0x1e4)]()+WATCH_TTL_MS,clearTimeout(_0x4752c9[_0x5b6b7a(0x22d)]),_0x4752c9[_0x5b6b7a(0x22d)]=this[_0x5b6b7a(0x10b)](_0x1551a3),this[_0x5b6b7a(0x17a)](_0x4752c9);}const _0x3198ad=runtimeModels(_0x5c6d9f[_0x5b6b7a(0x182)]),_0x35f89a=this[_0x5b6b7a(0x13c)][_0x5b6b7a(0x225)](_0x1551a3);if(_0x35f89a!==undefined&&this[_0x5b6b7a(0x155)][_0x5b6b7a(0x1d4)](_0x1551a3,_0x35f89a[_0x5b6b7a(0x10d)])&&_0x35f89a[_0x5b6b7a(0x19b)]===_0x53d553[_0x5b6b7a(0x19b)]&&_0x35f89a[_0x5b6b7a(0x153)]===_0x53d553[_0x5b6b7a(0x153)]&&_0x35f89a[_0x5b6b7a(0x1ea)]===_0x5c6d9f[_0x5b6b7a(0x1ea)]&&_0x35f89a[_0x5b6b7a(0x127)]>Date[_0x5b6b7a(0x1e4)]())return _0x35f89a[_0x5b6b7a(0x127)]=Date[_0x5b6b7a(0x1e4)]()+WATCH_TTL_MS,clearTimeout(_0x35f89a[_0x5b6b7a(0x22d)]),_0x35f89a[_0x5b6b7a(0x22d)]=this[_0x5b6b7a(0x10b)](_0x1551a3),this[_0x5b6b7a(0x17a)](_0x35f89a);this[_0x5b6b7a(0x181)](_0x1551a3);const _0x16360e=this[_0x5b6b7a(0x155)][_0x5b6b7a(0x150)](_0x1551a3,_0x5b6b7a(0x1b2),()=>this[_0x5b6b7a(0x181)](_0x1551a3)),_0x1e74d7={'ownerKey':_0x1551a3,'slotToken':_0x16360e,'sessionHash':_0x4f1df5,'workbenchConnectionId':_0x53d553[_0x5b6b7a(0x22c)],'watchId':_0x53d553[_0x5b6b7a(0x19b)],'conversationId':_0x53d553[_0x5b6b7a(0x153)],'templateId':_0x455bc0[_0x5b6b7a(0x1cd)],'userId':_0x5c6d9f[_0x5b6b7a(0x1ea)],'models':_0x3198ad,'nodeGeneration':this[_0x5b6b7a(0x149)][_0x5b6b7a(0xca)]?.()??_0x5b6b7a(0xd0),'pendingEvents':[],'expiresAt':Date[_0x5b6b7a(0x1e4)]()+WATCH_TTL_MS,'ready':![],'timer':undefined};return _0x1e74d7[_0x5b6b7a(0x22d)]=this[_0x5b6b7a(0x10b)](_0x1551a3),this[_0x5b6b7a(0x13c)][_0x5b6b7a(0xfc)](_0x1551a3,_0x1e74d7),void this[_0x5b6b7a(0x22e)](_0x1e74d7),this[_0x5b6b7a(0x17a)](_0x1e74d7);}[_0x44e8b5(0x114)](_0x10371b){const _0x2df757=_0x44e8b5,_0x442dff=hostedRequest(_0x10371b),_0x500d41=hostedConversationUnwatchInputSchema[_0x2df757(0x183)](_0x442dff[_0x2df757(0x189)]);this[_0x2df757(0x149)][_0x2df757(0x249)][_0x2df757(0xc4)](_0x442dff[_0x2df757(0x1ea)],_0x500d41[_0x2df757(0x153)]);const _0x238f22=watchOwnerKey(requireWatchSessionHash(_0x442dff[_0x2df757(0x16f)]),_0x500d41[_0x2df757(0x22c)]),_0x6247a=this[_0x2df757(0x13c)][_0x2df757(0x225)](_0x238f22);if(_0x6247a?.[_0x2df757(0x19b)]===_0x500d41[_0x2df757(0x19b)]&&_0x6247a[_0x2df757(0x153)]===_0x500d41[_0x2df757(0x153)]&&_0x6247a[_0x2df757(0x1ea)]===_0x442dff[_0x2df757(0x1ea)])this[_0x2df757(0x181)](_0x238f22);return{'unwatched':!![]};}[_0x44e8b5(0x216)](_0x4f90ea,_0x136a55){const _0x11e183=_0x44e8b5;return this[_0x11e183(0x10e)](_0x4f90ea,{'conversationId':_0x4f90ea,'kind':_0x11e183(0x1ce),'runtimeEvent':_0x136a55});}[_0x44e8b5(0xff)](_0x502b2e){const _0x134f27=_0x44e8b5;return this[_0x134f27(0x1de)][_0x134f27(0x102)](_0x502b2e)||this[_0x134f27(0x10a)][_0x134f27(0x102)](_0x502b2e)||this[_0x134f27(0x24e)][_0x134f27(0x102)](_0x502b2e)||[...this[_0x134f27(0x13c)][_0x134f27(0x1c1)]()][_0x134f27(0xc8)](_0x564094=>_0x564094[_0x134f27(0x153)]===_0x502b2e)||[...this[_0x134f27(0x1ca)][_0x134f27(0x1c1)]()][_0x134f27(0xc8)](_0x2c7ab2=>_0x2c7ab2[_0x134f27(0x153)]===_0x502b2e&&_0x2c7ab2[_0x134f27(0x152)]===_0x134f27(0x1e9))||[...this[_0x134f27(0x266)][_0x134f27(0x233)]()][_0x134f27(0xc8)](_0x1714df=>_0x1714df[_0x134f27(0x22f)](_0x502b2e+'\x00'));}[_0x44e8b5(0xbe)](_0x509471){const _0x578f46=_0x44e8b5;if(this[_0x578f46(0xff)](_0x509471))return undefined;return this[_0x578f46(0x1de)][_0x578f46(0x185)](_0x509471),()=>{const _0x54edeb=_0x578f46;this[_0x54edeb(0x1de)][_0x54edeb(0xe8)](_0x509471);};}async[_0x44e8b5(0x239)](_0x5cd74f){const _0x43a9b4=_0x44e8b5,_0x90fb97=this[_0x43a9b4(0x149)][_0x43a9b4(0x249)][_0x43a9b4(0x25c)](_0x5cd74f);await this[_0x43a9b4(0x149)][_0x43a9b4(0x1ce)][_0x43a9b4(0x1b6)]({'conversationId':_0x5cd74f['id'],'sessionId':_0x5cd74f[_0x43a9b4(0x1d1)],'homeDirectory':_0x90fb97[_0x43a9b4(0x264)]})[_0x43a9b4(0x196)](()=>undefined);}[_0x44e8b5(0xf4)](){const _0x344a57=_0x44e8b5;for(const [_0x349d3b,_0x339ede]of this[_0x344a57(0x10a)]){const _0x4205d9=runInterruptionKey(_0x349d3b,_0x339ede[_0x344a57(0xc1)]['id']);this[_0x344a57(0x25f)][_0x344a57(0x185)](_0x4205d9);if(!_0x339ede[_0x344a57(0x143)]())this[_0x344a57(0x25f)][_0x344a57(0xe8)](_0x4205d9);}for(const _0x130597 of[...this[_0x344a57(0x13c)][_0x344a57(0x233)]()])this[_0x344a57(0x181)](_0x130597);}[_0x44e8b5(0x15f)](_0x42e428){const _0x194d2d=_0x44e8b5;if(this[_0x194d2d(0x1fc)])return Promise[_0x194d2d(0xcf)](new Error(_0x194d2d(0x1e0)));const _0x1bc918=hostedRequest(_0x42e428),_0x157b46=hostedConversationMessageInputSchema[_0x194d2d(0x183)](_0x1bc918[_0x194d2d(0x189)]),_0x53ee22=_0x157b46[_0x194d2d(0x153)]+'\x00'+_0x157b46[_0x194d2d(0xbc)],_0x44a7f9=this[_0x194d2d(0x266)][_0x194d2d(0x225)](_0x53ee22);if(_0x44a7f9!==undefined)return _0x44a7f9;const _0x431688=this[_0x194d2d(0x149)][_0x194d2d(0x249)][_0x194d2d(0x1fa)](_0x1bc918[_0x194d2d(0x1ea)],_0x157b46[_0x194d2d(0x153)],_0x157b46[_0x194d2d(0xbc)]);if(_0x431688!==undefined){const _0xa3a05b=this[_0x194d2d(0x149)][_0x194d2d(0x249)][_0x194d2d(0xc4)](_0x1bc918[_0x194d2d(0x1ea)],_0x157b46[_0x194d2d(0x153)]);return Promise[_0x194d2d(0x1a6)]({'conversation':this[_0x194d2d(0x1c3)](_0xa3a05b),'run':runFromMessage(_0x431688)});}if([...this[_0x194d2d(0x266)][_0x194d2d(0x233)]()][_0x194d2d(0xc8)](_0x522846=>_0x522846[_0x194d2d(0x22f)](_0x157b46[_0x194d2d(0x153)]+'\x00')))return Promise[_0x194d2d(0xcf)](new Error(_0x194d2d(0x234)));const _0x258136=this[_0x194d2d(0x191)](_0x1bc918,_0x157b46);return this[_0x194d2d(0x266)][_0x194d2d(0xfc)](_0x53ee22,_0x258136),void _0x258136[_0x194d2d(0x19d)](()=>this[_0x194d2d(0x266)][_0x194d2d(0xe8)](_0x53ee22))[_0x194d2d(0x196)](()=>undefined),_0x258136;}async[_0x44e8b5(0x191)](_0x4fd2bc,_0x430397){const _0x2e5970=_0x44e8b5;let _0x3c3ac4=this[_0x2e5970(0x149)][_0x2e5970(0x249)][_0x2e5970(0xc4)](_0x4fd2bc[_0x2e5970(0x1ea)],_0x430397[_0x2e5970(0x153)]);if(this[_0x2e5970(0x1de)][_0x2e5970(0x102)](_0x3c3ac4['id']))throw new Error(_0x2e5970(0xbf));if(_0x3c3ac4[_0x2e5970(0x152)]!==_0x2e5970(0x15e))throw new Error(_0x2e5970(0xbf));if(this[_0x2e5970(0x10a)][_0x2e5970(0x102)](_0x3c3ac4['id']))throw new Error(_0x2e5970(0x234));const _0x173485=sessionTitleFromFirstMessage(_0x430397[_0x2e5970(0x16d)]),_0x20a337=_0x173485[_0x2e5970(0x254)]>-0x12fb*0x1+0x1*-0x21f5+0x134*0x2c&&!this[_0x2e5970(0x149)][_0x2e5970(0x249)][_0x2e5970(0x193)](_0x4fd2bc[_0x2e5970(0x1ea)],_0x3c3ac4['id']),_0x5156fe=runtimeModels(_0x4fd2bc[_0x2e5970(0x182)]),_0x3c69aa=this[_0x2e5970(0x149)][_0x2e5970(0x249)][_0x2e5970(0x222)](_0x4fd2bc[_0x2e5970(0x1ea)],_0x3c3ac4['id']);let _0x4f810a,_0x42dcdf,_0x4c58aa,_0x451649;const _0x4abc93=_0x3c3ac4[_0x2e5970(0x1c8)]?undefined:this[_0x2e5970(0xe9)](_0x3c3ac4[_0x2e5970(0x1cd)]);if(_0x4abc93!==undefined&&_0x4abc93!==_0x3c3ac4[_0x2e5970(0x23a)]){const _0x59dcb4=_0x3c3ac4[_0x2e5970(0x23a)],_0x11065b=_0x4abc93;try{_0x4f810a=await this[_0x2e5970(0x19a)](_0x11065b,_0x3c3ac4[_0x2e5970(0x1cd)]),_0x42dcdf=selectModel(_0x4f810a,_0x5156fe,_0x430397[_0x2e5970(0x111)]??_0x4f810a[_0x2e5970(0xec)][_0x2e5970(0xdd)]),_0x4c58aa=resolveMcpServers(_0x4f810a,this[_0x2e5970(0x149)][_0x2e5970(0x166)]??process.env),this[_0x2e5970(0x187)](_0x3c69aa,_0x4f810a),this[_0x2e5970(0xe4)](_0x3c69aa,_0x4f810a),_0x451649={'previousVersionId':_0x59dcb4,'targetVersionId':_0x11065b};}catch(_0x500a64){this[_0x2e5970(0x227)](_0x3c3ac4,_0x59dcb4,_0x11065b,_0x500a64);throw new Error(_0x2e5970(0x248));}}else _0x4f810a=await this[_0x2e5970(0x19a)](_0x3c3ac4[_0x2e5970(0x23a)],_0x3c3ac4[_0x2e5970(0x1cd)]),_0x42dcdf=selectModel(_0x4f810a,_0x5156fe,_0x430397[_0x2e5970(0x111)]??_0x3c3ac4[_0x2e5970(0x111)]);const _0x281be5=await Promise[_0x2e5970(0x23b)](_0x430397[_0x2e5970(0x205)][_0x2e5970(0x20e)](_0x6b788c=>this[_0x2e5970(0x1df)](_0x4fd2bc[_0x2e5970(0x1ea)],_0x3c3ac4['id'],_0x6b788c))),_0x2dd657=attachmentPrompt(_0x430397[_0x2e5970(0x16d)],_0x281be5),_0x517ec9=marAgentGeneratedImagesDirectory(_0x3c69aa[_0x2e5970(0x264)],_0x3c3ac4[_0x2e5970(0x1d1)]),_0x578426=hostedConversationGeneratedImagesDisplayDirectory(_0x3c3ac4[_0x2e5970(0x1d1)]);if(_0x517ec9===undefined||_0x578426===undefined)throw new Error(_0x2e5970(0x186));await mkdir(_0x517ec9,{'recursive':!![],'mode':0x1c0});const _0x3bd016=this[_0x2e5970(0x187)](_0x3c69aa,_0x4f810a,_0x517ec9,_0x578426),_0x50f264=join(_0x3c69aa[_0x2e5970(0x17e)],_0x2e5970(0xb9)+randomUUID());await mkdir(_0x50f264,{'mode':0x1c0}),this[_0x2e5970(0x240)](_0x4fd2bc[_0x2e5970(0x1ea)],_0x3c3ac4,_0x2e5970(0x1b3),this[_0x2e5970(0x1e4)]());const _0x425f2d=[];let _0x483760=![];const _0x294e21=await this[_0x2e5970(0x149)][_0x2e5970(0x1ce)][_0x2e5970(0x192)]({'conversationId':_0x3c3ac4['id'],'sessionId':_0x3c3ac4[_0x2e5970(0x1d1)],'clientMessageId':_0x430397[_0x2e5970(0xbc)],'userPrompt':_0x430397[_0x2e5970(0x16d)],'prompt':_0x2dd657,'attachmentIds':_0x430397[_0x2e5970(0x205)],'access':_0x2e5970(0xf6),'modelId':_0x42dcdf['id'],'models':networkModels(allowedModels(_0x4f810a,_0x5156fe),_0x4f810a[_0x2e5970(0xf3)][_0x2e5970(0x1a3)]),..._0x4fd2bc[_0x2e5970(0xe2)]===undefined?{}:{'runtimeScopeId':_0x4fd2bc[_0x2e5970(0xe2)]},'systemInstruction':systemInstruction(_0x4f810a,_0x578426),'homeDirectory':_0x3c69aa[_0x2e5970(0x264)],'workspaceDirectory':_0x4f810a[_0x2e5970(0x200)],'temporaryDirectory':_0x50f264,'pathMounts':_0x3bd016,'processExecutor':this[_0x2e5970(0xe4)](_0x3c69aa,_0x4f810a,_0x50f264,_0x517ec9,_0x578426),'mcpServers':_0x4c58aa??resolveMcpServers(_0x4f810a,this[_0x2e5970(0x149)][_0x2e5970(0x166)]??process.env),'webAccess':_0x4f810a[_0x2e5970(0xf3)][_0x2e5970(0x1a3)]!==_0x2e5970(0x195),'onEvent':_0x3caecc=>{const _0x3ec2d6=_0x2e5970;if(_0x483760)this[_0x3ec2d6(0x216)](_0x3c3ac4['id'],_0x3caecc);else _0x425f2d[_0x3ec2d6(0x1bf)](_0x3caecc);}})[_0x2e5970(0x196)](async _0x7bd3b2=>{const _0x2291bf=_0x2e5970;this[_0x2291bf(0x240)](_0x4fd2bc[_0x2291bf(0x1ea)],_0x3c3ac4,_0x2291bf(0x21b),this[_0x2291bf(0x1e4)]()),await rm(_0x50f264,{'recursive':!![],'force':!![]})[_0x2291bf(0x196)](()=>undefined);if(_0x451649!==undefined){this[_0x2291bf(0x227)](_0x3c3ac4,_0x451649[_0x2291bf(0x100)],_0x451649[_0x2291bf(0x12c)],_0x7bd3b2);throw new Error(_0x2291bf(0x248));}throw _0x7bd3b2;}),_0x208595=_0x294e21[_0x2e5970(0xc1)][_0x2e5970(0x10f)];let _0x1466ab=![],_0x560039;try{this[_0x2e5970(0x149)][_0x2e5970(0x249)][_0x2e5970(0x237)]({'conversationId':_0x3c3ac4['id'],'clientMessageId':_0x430397[_0x2e5970(0xbc)],'runId':_0x294e21[_0x2e5970(0xc1)]['id'],'userTextPresent':_0x173485[_0x2e5970(0x254)]>-0x1*0x2129+0xd76*-0x2+0x6ad*0x9,'status':_0x2e5970(0x138),'createdAt':_0x208595,'updatedAt':_0x208595}),_0x1466ab=!![];const _0x3332c7=this[_0x2e5970(0x1e4)]();_0x560039=await this[_0x2e5970(0x149)][_0x2e5970(0x249)][_0x2e5970(0x18b)]({'conversationId':_0x3c3ac4['id'],'modelId':_0x42dcdf['id'],'activityAt':_0x3332c7,..._0x451649===undefined?{}:{'templateVersion':{'expectedActiveVersionId':_0x451649[_0x2e5970(0x100)],'activeVersionId':_0x451649[_0x2e5970(0x12c)],'maxStorageBytes':_0x4f810a[_0x2e5970(0xf3)][_0x2e5970(0x11b)][_0x2e5970(0xd4)]}},..._0x20a337?{'automaticTitle':_0x173485}:{}});}catch(_0x19c161){try{_0x294e21[_0x2e5970(0x143)]();}catch{}const _0x3f21f9=await _0x294e21[_0x2e5970(0x1d0)][_0x2e5970(0x196)](()=>({'status':_0x2e5970(0x12f),'completedAt':this[_0x2e5970(0x1e4)]()}));if(_0x1466ab)try{this[_0x2e5970(0x149)][_0x2e5970(0x249)][_0x2e5970(0x20b)](_0x3c3ac4['id'],_0x430397[_0x2e5970(0xbc)],_0x3f21f9[_0x2e5970(0x152)],_0x3f21f9[_0x2e5970(0xd6)]);}catch{}await rm(_0x50f264,{'recursive':!![],'force':!![]})[_0x2e5970(0x196)](()=>undefined),this[_0x2e5970(0x240)](_0x4fd2bc[_0x2e5970(0x1ea)],_0x3c3ac4,_0x2e5970(0x21b),_0x3f21f9[_0x2e5970(0xd6)]);if(_0x451649!==undefined)this[_0x2e5970(0x227)](_0x3c3ac4,_0x451649[_0x2e5970(0x100)],_0x451649[_0x2e5970(0x12c)],_0x19c161);throw _0x19c161;}_0x3c3ac4=_0x560039[_0x2e5970(0x220)];if(_0x451649!==undefined)this[_0x2e5970(0x10e)](_0x3c3ac4['id'],{'conversationId':_0x3c3ac4['id'],'kind':_0x2e5970(0x1e5),'upgrade':{'status':_0x2e5970(0x115),'previousVersionId':_0x451649[_0x2e5970(0x100)],'targetVersionId':_0x451649[_0x2e5970(0x12c)],'activeVersionId':_0x3c3ac4[_0x2e5970(0x23a)],'conversation':this[_0x2e5970(0x1c3)](_0x3c3ac4),'error':null}});this[_0x2e5970(0x10a)][_0x2e5970(0xfc)](_0x3c3ac4['id'],_0x294e21),this[_0x2e5970(0x240)](_0x4fd2bc[_0x2e5970(0x1ea)],_0x3c3ac4,_0x2e5970(0x138),_0x294e21[_0x2e5970(0xc1)][_0x2e5970(0x10f)]);if(_0x560039[_0x2e5970(0x230)])this[_0x2e5970(0x10e)](_0x3c3ac4['id'],{'conversationId':_0x3c3ac4['id'],'kind':_0x2e5970(0x220),'conversation':this[_0x2e5970(0x1c3)](_0x3c3ac4)});this[_0x2e5970(0x10e)](_0x3c3ac4['id'],{'conversationId':_0x3c3ac4['id'],'kind':_0x2e5970(0xc1),'run':_0x294e21[_0x2e5970(0xc1)]}),_0x483760=!![];for(const _0x34551d of _0x425f2d)this[_0x2e5970(0x216)](_0x3c3ac4['id'],_0x34551d);_0x425f2d[_0x2e5970(0x254)]=-0x1c89+0x2*-0x676+0x2975;const _0xcc400=_0x294e21[_0x2e5970(0x1d0)][_0x2e5970(0x1eb)](_0x28c251=>this[_0x2e5970(0x15b)](_0x4fd2bc[_0x2e5970(0x1ea)],_0x3c3ac4['id'],_0x430397[_0x2e5970(0xbc)],_0x294e21[_0x2e5970(0xc1)],_0x28c251),()=>this[_0x2e5970(0x15b)](_0x4fd2bc[_0x2e5970(0x1ea)],_0x3c3ac4['id'],_0x430397[_0x2e5970(0xbc)],_0x294e21[_0x2e5970(0xc1)],{'status':_0x2e5970(0x12f),'completedAt':this[_0x2e5970(0x1e4)]()}))[_0x2e5970(0x196)](()=>undefined)[_0x2e5970(0x19d)](async()=>{const _0x4d3888=_0x2e5970;this[_0x4d3888(0x25f)][_0x4d3888(0xe8)](runInterruptionKey(_0x3c3ac4['id'],_0x294e21[_0x4d3888(0xc1)]['id']));if(this[_0x4d3888(0x10a)][_0x4d3888(0x225)](_0x3c3ac4['id'])===_0x294e21)this[_0x4d3888(0x10a)][_0x4d3888(0xe8)](_0x3c3ac4['id']);if(this[_0x4d3888(0x24e)][_0x4d3888(0x225)](_0x3c3ac4['id'])===_0xcc400)this[_0x4d3888(0x24e)][_0x4d3888(0xe8)](_0x3c3ac4['id']);await rm(_0x50f264,{'recursive':!![],'force':!![]})[_0x4d3888(0x196)](()=>undefined);});return this[_0x2e5970(0x24e)][_0x2e5970(0xfc)](_0x3c3ac4['id'],_0xcc400),void _0xcc400,{'conversation':this[_0x2e5970(0x1c3)](_0x3c3ac4),'run':_0x294e21[_0x2e5970(0xc1)]};}async[_0x44e8b5(0x15b)](_0x137ef3,_0x2d13f8,_0x596104,_0x5c04ff,_0x5f356e){const _0x1014e0=_0x44e8b5,_0xef08d0=runInterruptionKey(_0x2d13f8,_0x5c04ff['id']),_0x6b80a0=this[_0x1014e0(0x25f)][_0x1014e0(0x102)](_0xef08d0);let _0x68386e;try{this[_0x1014e0(0x149)][_0x1014e0(0x249)][_0x1014e0(0x20b)](_0x2d13f8,_0x596104,_0x5f356e[_0x1014e0(0x152)],_0x5f356e[_0x1014e0(0xd6)]);try{const _0x4c12e6=await this[_0x1014e0(0x149)][_0x1014e0(0x249)][_0x1014e0(0x16e)](_0x137ef3,_0x2d13f8);this[_0x1014e0(0x10e)](_0x2d13f8,{'conversationId':_0x2d13f8,'kind':_0x1014e0(0x171),'files':_0x4c12e6,'error':null});}catch(_0x2b9710){this[_0x1014e0(0x10e)](_0x2d13f8,{'conversationId':_0x2d13f8,'kind':_0x1014e0(0x171),'files':this[_0x1014e0(0x149)][_0x1014e0(0x249)][_0x1014e0(0x261)](_0x137ef3,_0x2d13f8),'error':{'code':safeErrorCode(_0x2b9710,_0x1014e0(0x162)),'message':_0x1014e0(0xc7)}});}await this[_0x1014e0(0x149)][_0x1014e0(0x249)][_0x1014e0(0x268)](_0x2d13f8,_0x5f356e[_0x1014e0(0xd6)]),this[_0x1014e0(0x10e)](_0x2d13f8,{'conversationId':_0x2d13f8,'kind':_0x1014e0(0xc1),'run':{'id':_0x5c04ff['id'],'status':_0x5f356e[_0x1014e0(0x152)],'startedAt':_0x5c04ff[_0x1014e0(0x10f)],'completedAt':_0x5f356e[_0x1014e0(0xd6)]}}),await this[_0x1014e0(0xb7)](_0x2d13f8,_0x5f356e[_0x1014e0(0x163)],_0x5f356e[_0x1014e0(0xd6)])[_0x1014e0(0x196)](()=>undefined),_0x68386e=this[_0x1014e0(0x149)][_0x1014e0(0x249)][_0x1014e0(0xc4)](_0x137ef3,_0x2d13f8);}finally{this[_0x1014e0(0x25f)][_0x1014e0(0xe8)](_0xef08d0);if(_0x68386e===undefined)try{_0x68386e=this[_0x1014e0(0x149)][_0x1014e0(0x249)][_0x1014e0(0xc4)](_0x137ef3,_0x2d13f8);}catch{}if(_0x68386e!==undefined)this[_0x1014e0(0x240)](_0x137ef3,_0x68386e,_0x1014e0(0x21b),_0x5f356e[_0x1014e0(0xd6)]);}if(_0x68386e!==undefined&&(_0x5f356e[_0x1014e0(0x152)]!==_0x1014e0(0x267)||!_0x6b80a0))this[_0x1014e0(0x1d5)](_0x137ef3,_0x68386e,_0x5c04ff['id'],_0x5f356e);}async[_0x44e8b5(0xb7)](_0x25adf7,_0x5ef5b9,_0x91713b){const _0x5174bc=_0x44e8b5,_0x29d0a8=automaticHostedConversationTitle(_0x5ef5b9);if(_0x29d0a8===undefined)return;const _0x6fe844=await this[_0x5174bc(0x149)][_0x5174bc(0x249)][_0x5174bc(0x1fe)](_0x25adf7,_0x29d0a8,_0x91713b);if(_0x6fe844===undefined)return;this[_0x5174bc(0x10e)](_0x25adf7,{'conversationId':_0x25adf7,'kind':_0x5174bc(0x220),'conversation':this[_0x5174bc(0x1c3)](_0x6fe844)});}[_0x44e8b5(0x17f)](_0x1cb516){const _0x49cd14=_0x44e8b5,_0x20cb81=hostedRequest(_0x1cb516),_0xbfbd43=hostedConversationIdInputSchema[_0x49cd14(0x183)](_0x20cb81[_0x49cd14(0x189)]),_0x1a5a78=this[_0x49cd14(0x149)][_0x49cd14(0x249)][_0x49cd14(0xc4)](_0x20cb81[_0x49cd14(0x1ea)],_0xbfbd43[_0x49cd14(0x153)]),_0x5e4195=this[_0x49cd14(0x10a)][_0x49cd14(0x225)](_0xbfbd43[_0x49cd14(0x153)]);if(_0x5e4195===undefined)return{'interrupted':![]};const _0x2d09b0=runInterruptionKey(_0x1a5a78['id'],_0x5e4195[_0x49cd14(0xc1)]['id']);this[_0x49cd14(0x25f)][_0x49cd14(0x185)](_0x2d09b0);try{const _0x54b1df=_0x5e4195[_0x49cd14(0x143)]();if(!_0x54b1df)return this[_0x49cd14(0x25f)][_0x49cd14(0xe8)](_0x2d09b0),{'interrupted':![]};return this[_0x49cd14(0x240)](_0x20cb81[_0x49cd14(0x1ea)],_0x1a5a78,_0x49cd14(0x164),this[_0x49cd14(0x1e4)]()),{'interrupted':!![]};}catch(_0x3d670c){this[_0x49cd14(0x25f)][_0x49cd14(0xe8)](_0x2d09b0);throw _0x3d670c;}}async[_0x44e8b5(0x1d9)](_0x58d16a){const _0x157f0b=_0x44e8b5,_0x22b03e=hostedRequest(_0x58d16a),_0x2e2b22=hostedConversationConfigUpdateInputSchema[_0x157f0b(0x183)](_0x22b03e[_0x157f0b(0x189)]),_0x3fb7d6=this[_0x157f0b(0x149)][_0x157f0b(0x249)][_0x157f0b(0xc4)](_0x22b03e[_0x157f0b(0x1ea)],_0x2e2b22[_0x157f0b(0x153)]);if(this[_0x157f0b(0x1de)][_0x157f0b(0x102)](_0x3fb7d6['id']))throw new Error(_0x157f0b(0xbf));const _0x3162c5=await this[_0x157f0b(0x19a)](_0x3fb7d6[_0x157f0b(0x23a)],_0x3fb7d6[_0x157f0b(0x1cd)]),_0x35d8c7=runtimeModels(_0x22b03e[_0x157f0b(0x182)]),_0x58d4a1=selectModel(_0x3162c5,_0x35d8c7,_0x2e2b22[_0x157f0b(0x111)]??_0x3fb7d6[_0x157f0b(0x111)]),_0x2ced38=this[_0x157f0b(0x1e4)](),_0x2b28f1=await this[_0x157f0b(0x149)][_0x157f0b(0x249)][_0x157f0b(0x172)](_0x3fb7d6['id'],_0x4f7088=>({..._0x4f7088,'modelId':_0x58d4a1['id'],'updatedAt':_0x2ced38,'lastActivityAt':_0x2ced38}));return this[_0x157f0b(0x10e)](_0x3fb7d6['id'],{'conversationId':_0x3fb7d6['id'],'kind':_0x157f0b(0x20f),'conversation':this[_0x157f0b(0x1c3)](_0x2b28f1)}),{'conversation':this[_0x157f0b(0x1c3)](_0x2b28f1)};}async[_0x44e8b5(0x21e)](_0x1d0342){const _0x176658=_0x44e8b5,_0x41e0a5=hostedRequest(_0x1d0342),_0x10a19e=hostedConversationMetadataUpdateInputSchema[_0x176658(0x183)](_0x41e0a5[_0x176658(0x189)]),_0x4d3980=this[_0x176658(0x149)][_0x176658(0x249)][_0x176658(0xc4)](_0x41e0a5[_0x176658(0x1ea)],_0x10a19e[_0x176658(0x153)]);if(this[_0x176658(0x1de)][_0x176658(0x102)](_0x4d3980['id']))throw new Error(_0x176658(0xbf));const _0x4344c9=this[_0x176658(0x1e4)](),_0x4eab18=await this[_0x176658(0x149)][_0x176658(0x249)][_0x176658(0x172)](_0x4d3980['id'],_0x1d8aac=>({..._0x1d8aac,'title':_0x10a19e[_0x176658(0x163)]??_0x1d8aac[_0x176658(0x163)],'titleSource':_0x10a19e[_0x176658(0x163)]===undefined?_0x1d8aac[_0x176658(0x1ee)]:_0x176658(0x208),'pinnedAt':_0x10a19e[_0x176658(0x24c)]===undefined?_0x1d8aac[_0x176658(0x229)]:_0x10a19e[_0x176658(0x24c)]?_0x4344c9:null,'updatedAt':_0x4344c9,'lastActivityAt':_0x1d8aac[_0x176658(0x137)]}));return this[_0x176658(0x10e)](_0x4d3980['id'],{'conversationId':_0x4d3980['id'],'kind':_0x176658(0x20f),'conversation':this[_0x176658(0x1c3)](_0x4eab18)}),{'conversation':this[_0x176658(0x1c3)](_0x4eab18)};}async[_0x44e8b5(0x261)](_0x280820){const _0x5af129=_0x44e8b5,_0x218977=hostedRequest(_0x280820),_0x7b8e92=hostedConversationIdInputSchema[_0x5af129(0x183)](_0x218977[_0x5af129(0x189)]);return hostedConversationFilesSchema[_0x5af129(0x183)]({'files':this[_0x5af129(0x149)][_0x5af129(0x249)][_0x5af129(0x261)](_0x218977[_0x5af129(0x1ea)],_0x7b8e92[_0x5af129(0x153)])});}async[_0x44e8b5(0x11f)](_0x108070){const _0x1e4128=_0x44e8b5,_0x29a9aa=hostedRequest(_0x108070),_0x11b293=hostedConversationImageReadInputSchema[_0x1e4128(0x183)](_0x29a9aa[_0x1e4128(0x189)]);this[_0x1e4128(0x149)][_0x1e4128(0x249)][_0x1e4128(0xc4)](_0x29a9aa[_0x1e4128(0x1ea)],_0x11b293[_0x1e4128(0x153)]);if(_0x11b293[_0x1e4128(0x123)]!==hostedConversationImageRunId(_0x11b293[_0x1e4128(0x153)]))throw new Error(_0x1e4128(0x17d));const _0x483504=await this[_0x1e4128(0x149)][_0x1e4128(0x11f)](_0x11b293[_0x1e4128(0x123)],_0x11b293[_0x1e4128(0xfa)]);if(_0x483504===undefined)throw new Error(_0x1e4128(0x211));return{'image':_0x483504};}async[_0x44e8b5(0x1a5)](_0x2be47a){const _0x463294=_0x44e8b5,_0x4c4f93=hostedRequest(_0x2be47a),_0x33209b=hostedConversationFileReadInputSchema[_0x463294(0x183)](_0x4c4f93[_0x463294(0x189)]),_0x3322ac=this[_0x463294(0x149)][_0x463294(0x249)][_0x463294(0x252)](_0x4c4f93[_0x463294(0x1ea)],_0x33209b[_0x463294(0x153)],_0x33209b[_0x463294(0x175)]),_0x442c8a=this[_0x463294(0x149)][_0x463294(0x249)][_0x463294(0x1d7)](_0x4c4f93[_0x463294(0x1ea)],_0x3322ac);await assertRegularFile(_0x442c8a,_0x3322ac[_0x463294(0x21a)]);const _0xa44f86=_0x33209b[_0x463294(0xcd)]??-0x9*-0x39b+0x474+-0x24e7;if(_0xa44f86>_0x3322ac[_0x463294(0x21a)])throw new Error(_0x463294(0x1be));const _0x533149=Math[_0x463294(0x11d)](_0x33209b[_0x463294(0x1b1)]??MAX_FILE_READ_BYTES,MAX_FILE_READ_BYTES),_0x3502c0=await open(_0x442c8a,'r');try{const _0x55b24e=Buffer[_0x463294(0xe1)](Math[_0x463294(0x11d)](_0x533149,Math[_0x463294(0xea)](-0x1d3+-0x8d2+0xaa5,_0x3322ac[_0x463294(0x21a)]-_0xa44f86))),_0x4501a2=await _0x3502c0[_0x463294(0x158)](_0x55b24e,0x1*-0x16ab+0xd*-0xc7+-0x5*-0x68e,_0x55b24e[_0x463294(0x254)],_0xa44f86),_0xd98d6d=_0xa44f86+_0x4501a2[_0x463294(0xdf)],_0x41e826=_0xd98d6d>=_0x3322ac[_0x463294(0x21a)];return hostedConversationFileReadResultSchema[_0x463294(0x183)]({'file':_0x3322ac,'encoding':_0x463294(0x22a),'content':_0x55b24e[_0x463294(0x26e)](-0x472+-0x227*0x4+0x2*0x687,_0x4501a2[_0x463294(0xdf)])[_0x463294(0x1a7)](_0x463294(0x22a)),'offset':_0xa44f86,'nextOffset':_0x41e826?null:_0xd98d6d,'eof':_0x41e826});}finally{await _0x3502c0[_0x463294(0x159)]();}}async[_0x44e8b5(0x170)](_0x3fd31f){const _0x2b4126=_0x44e8b5,_0x3d2ba3=hostedRequest(_0x3fd31f),_0x7e5751=hostedConversationFileDeleteInputSchema[_0x2b4126(0x183)](_0x3d2ba3[_0x2b4126(0x189)]);this[_0x2b4126(0x1a1)](_0x3d2ba3[_0x2b4126(0x1ea)],_0x7e5751[_0x2b4126(0x153)]);const _0x51f359=_0x7e5751[_0x2b4126(0x153)]+'\x00'+_0x7e5751[_0x2b4126(0x175)];if(this[_0x2b4126(0x259)][_0x2b4126(0x102)](_0x51f359))throw new Error(_0x2b4126(0x141));this[_0x2b4126(0x259)][_0x2b4126(0x185)](_0x51f359);try{const _0x33c484=await this[_0x2b4126(0x149)][_0x2b4126(0x249)][_0x2b4126(0x170)](_0x3d2ba3[_0x2b4126(0x1ea)],_0x7e5751[_0x2b4126(0x153)],_0x7e5751[_0x2b4126(0x175)],this[_0x2b4126(0x1e4)]()),_0x44e400=hostedConversationFileDeleteResultSchema[_0x2b4126(0x183)]({'deletedFileId':_0x7e5751[_0x2b4126(0x175)],'files':_0x33c484});return this[_0x2b4126(0x10e)](_0x7e5751[_0x2b4126(0x153)],{'conversationId':_0x7e5751[_0x2b4126(0x153)],'kind':_0x2b4126(0x171),'files':_0x44e400[_0x2b4126(0x171)],'error':null}),_0x44e400;}finally{this[_0x2b4126(0x259)][_0x2b4126(0xe8)](_0x51f359);}}async[_0x44e8b5(0x177)](_0x4778b2){const _0x113fe5=_0x44e8b5,_0x1b427f=hostedRequest(_0x4778b2),_0x34292f=hostedConversationUploadPreflightInputSchema[_0x113fe5(0x183)](_0x1b427f[_0x113fe5(0x189)]),_0x21fb41=this[_0x113fe5(0x1a1)](_0x1b427f[_0x113fe5(0x1ea)],_0x34292f[_0x113fe5(0x153)]),_0x2c50e6=await this[_0x113fe5(0x19a)](_0x21fb41[_0x113fe5(0x23a)],_0x21fb41[_0x113fe5(0x1cd)]),_0x443d2f=this[_0x113fe5(0x149)][_0x113fe5(0x249)][_0x113fe5(0x222)](_0x1b427f[_0x113fe5(0x1ea)],_0x21fb41['id']),_0x499856=await Promise[_0x113fe5(0x23b)](_0x34292f[_0x113fe5(0x171)][_0x113fe5(0x20e)](async _0xbeed2d=>({'name':_0xbeed2d[_0x113fe5(0x26c)],'status':await this[_0x113fe5(0x1c6)](_0x443d2f,_0x21fb41,_0x2c50e6[_0x113fe5(0xf3)],_0xbeed2d[_0x113fe5(0x26c)],_0xbeed2d[_0x113fe5(0x21a)])})));return hostedConversationUploadPreflightResultSchema[_0x113fe5(0x183)]({'files':_0x499856});}async[_0x44e8b5(0x14f)](_0x4d391c){const _0x4f8d32=_0x44e8b5,_0x1340f8=hostedRequest(_0x4d391c),_0x1dde3b=hostedConversationUploadCreateInputSchema[_0x4f8d32(0x183)](_0x1340f8[_0x4f8d32(0x189)]),_0x5dc893=this[_0x4f8d32(0x1a1)](_0x1340f8[_0x4f8d32(0x1ea)],_0x1dde3b[_0x4f8d32(0x153)]),_0x5b0017=_0x1340f8[_0x4f8d32(0x1ea)]+'\x00'+_0x5dc893['id']+'\x00'+_0x1dde3b[_0x4f8d32(0x1c7)],_0x472d77=this[_0x4f8d32(0x1f6)][_0x4f8d32(0x225)](_0x5b0017);if(_0x472d77!==undefined){const _0x119a53=this[_0x4f8d32(0x1ca)][_0x4f8d32(0x225)](_0x472d77);if(_0x119a53!==undefined)return{'upload':hostedConversationUploadSchema[_0x4f8d32(0x183)](uploadProjection(_0x119a53))};}const _0x261a07=await this[_0x4f8d32(0x19a)](_0x5dc893[_0x4f8d32(0x23a)],_0x5dc893[_0x4f8d32(0x1cd)]),_0x3617b7=this[_0x4f8d32(0x149)][_0x4f8d32(0x249)][_0x4f8d32(0x222)](_0x1340f8[_0x4f8d32(0x1ea)],_0x5dc893['id']),_0x83d019=await this[_0x4f8d32(0x1c6)](_0x3617b7,_0x5dc893,_0x261a07[_0x4f8d32(0xf3)],_0x1dde3b[_0x4f8d32(0x26c)],_0x1dde3b[_0x4f8d32(0x21a)]);if(_0x83d019===_0x4f8d32(0x1f3)||_0x83d019===_0x4f8d32(0x25d))throw new Error(_0x4f8d32(0x269));if(_0x83d019!==_0x4f8d32(0x11c))throw new Error(_0x4f8d32(0x202));const _0x32bc95=this['id'](),_0x22a111=join(_0x3617b7[_0x4f8d32(0x103)],'.'+_0x32bc95+_0x4f8d32(0x194)),_0x1ac4a0=join(_0x3617b7[_0x4f8d32(0x103)],_0x1dde3b[_0x4f8d32(0x26c)]),_0xb50889=await open(_0x22a111,'wx',0x37*0x4f+-0x12f1+0x378);await _0xb50889[_0x4f8d32(0x159)]();const _0x35d298={'uploadId':_0x32bc95,'conversationId':_0x5dc893['id'],'userId':_0x1340f8[_0x4f8d32(0x1ea)],'clientRequestId':_0x1dde3b[_0x4f8d32(0x1c7)],'name':_0x1dde3b[_0x4f8d32(0x26c)],'mimeType':_0x1dde3b[_0x4f8d32(0x1e3)],'size':_0x1dde3b[_0x4f8d32(0x21a)],'temporaryPath':_0x22a111,'targetPath':_0x1ac4a0,'receivedBytes':0x0,'status':_0x4f8d32(0x1e9)};return this[_0x4f8d32(0x1ca)][_0x4f8d32(0xfc)](_0x32bc95,_0x35d298),this[_0x4f8d32(0x1f6)][_0x4f8d32(0xfc)](_0x5b0017,_0x32bc95),{'upload':hostedConversationUploadSchema[_0x4f8d32(0x183)](uploadProjection(_0x35d298))};}async[_0x44e8b5(0x228)](_0x291f24){const _0x5351ad=_0x44e8b5,_0x37d221=hostedRequest(_0x291f24),_0x5c3109=hostedConversationUploadChunkInputSchema[_0x5351ad(0x183)](_0x37d221[_0x5351ad(0x189)]),_0x5cd7d9=this[_0x5351ad(0xb6)](_0x37d221[_0x5351ad(0x1ea)],_0x5c3109[_0x5351ad(0x153)],_0x5c3109[_0x5351ad(0x1a2)]);if(_0x5cd7d9[_0x5351ad(0x152)]!==_0x5351ad(0x1e9))throw new Error(_0x5351ad(0x26d));if(_0x5c3109[_0x5351ad(0xcd)]!==_0x5cd7d9[_0x5351ad(0xba)])throw new Error(_0x5351ad(0x251));const _0x53467b=Buffer[_0x5351ad(0x25a)](_0x5c3109[_0x5351ad(0x247)],_0x5351ad(0x22a));if(_0x5cd7d9[_0x5351ad(0xba)]+_0x53467b[_0x5351ad(0xd8)]>_0x5cd7d9[_0x5351ad(0x21a)])throw new Error(_0x5351ad(0x241));await assertUploadTemporaryFile(_0x5cd7d9[_0x5351ad(0x218)],_0x5cd7d9[_0x5351ad(0xba)]);const _0x3f5ca3=await open(_0x5cd7d9[_0x5351ad(0x218)],'r+');try{await _0x3f5ca3[_0x5351ad(0x1d2)](_0x53467b,-0x2659+0x11*-0x202+0x487b,_0x53467b[_0x5351ad(0xd8)],_0x5cd7d9[_0x5351ad(0xba)]);}finally{await _0x3f5ca3[_0x5351ad(0x159)]();}return _0x5cd7d9[_0x5351ad(0xba)]+=_0x53467b[_0x5351ad(0xd8)],{'upload':hostedConversationUploadSchema[_0x5351ad(0x183)](uploadProjection(_0x5cd7d9))};}[_0x44e8b5(0xf2)](_0x82af9f){const _0x21779d=_0x44e8b5,_0x1d1ba3=hostedRequest(_0x82af9f),_0x3a4119=hostedConversationUploadControlInputSchema[_0x21779d(0x183)](_0x1d1ba3[_0x21779d(0x189)]),_0x34b33e=this[_0x21779d(0xb6)](_0x1d1ba3[_0x21779d(0x1ea)],_0x3a4119[_0x21779d(0x153)],_0x3a4119[_0x21779d(0x1a2)]);return{'upload':hostedConversationUploadSchema[_0x21779d(0x183)](uploadProjection(_0x34b33e))};}async[_0x44e8b5(0x1ba)](_0x3a6c80){const _0x23482a=_0x44e8b5,_0x44b19a=hostedRequest(_0x3a6c80),_0x1baca2=hostedConversationUploadControlInputSchema[_0x23482a(0x183)](_0x44b19a[_0x23482a(0x189)]),_0x23b80f=this[_0x23482a(0xb6)](_0x44b19a[_0x23482a(0x1ea)],_0x1baca2[_0x23482a(0x153)],_0x1baca2[_0x23482a(0x1a2)]);if(_0x23b80f[_0x23482a(0x152)]===_0x23482a(0x23f))return{'upload':hostedConversationUploadSchema[_0x23482a(0x183)](uploadProjection(_0x23b80f))};if(_0x23b80f[_0x23482a(0x152)]!==_0x23482a(0x1e9)||_0x23b80f[_0x23482a(0xba)]!==_0x23b80f[_0x23482a(0x21a)])throw new Error(_0x23482a(0x14e));const _0xeb4582=this[_0x23482a(0x1a1)](_0x44b19a[_0x23482a(0x1ea)],_0x23b80f[_0x23482a(0x153)]),_0x51ead6=await this[_0x23482a(0x19a)](_0xeb4582[_0x23482a(0x23a)],_0xeb4582[_0x23482a(0x1cd)]);if(_0x23b80f[_0x23482a(0x21a)]>_0x51ead6[_0x23482a(0xf3)][_0x23482a(0x11b)][_0x23482a(0x14a)]||_0xeb4582[_0x23482a(0x242)][_0x23482a(0x112)]+_0x23b80f[_0x23482a(0x21a)]>_0xeb4582[_0x23482a(0x242)][_0x23482a(0x151)])throw new Error(_0x23482a(0x269));await assertUploadTemporaryFile(_0x23b80f[_0x23482a(0x218)],_0x23b80f[_0x23482a(0x21a)]);const _0x5c5bb5=await lstat(_0x23b80f[_0x23482a(0xdc)])[_0x23482a(0x196)](_0x5af7f0=>{const _0x3928ed=_0x23482a;if(_0x5af7f0[_0x3928ed(0xb8)]===_0x3928ed(0x209))return undefined;throw _0x5af7f0;});if(_0x5c5bb5!==undefined)throw new Error(_0x23482a(0x202));const _0x5d72a0=await open(_0x23b80f[_0x23482a(0x218)],'r+');try{await _0x5d72a0[_0x23482a(0x1a4)]();}finally{await _0x5d72a0[_0x23482a(0x159)]();}await rename(_0x23b80f[_0x23482a(0x218)],_0x23b80f[_0x23482a(0xdc)]);const _0x1fdc16=this[_0x23482a(0x1e4)]();try{await utimes(_0x23b80f[_0x23482a(0xdc)],new Date(_0x1fdc16),new Date(_0x1fdc16));const _0x2d2ce8={'id':this[_0x23482a(0x149)][_0x23482a(0x249)][_0x23482a(0x144)](_0x23b80f[_0x23482a(0x153)],_0x23482a(0x219),_0x23b80f[_0x23482a(0x26c)]),'conversationId':_0x23b80f[_0x23482a(0x153)],'category':_0x23482a(0x219),'relativePath':_0x23b80f[_0x23482a(0x26c)],'displayName':_0x23b80f[_0x23482a(0x26c)],'mimeType':_0x23b80f[_0x23482a(0x1e3)],'size':_0x23b80f[_0x23482a(0x21a)],'source':_0x23482a(0x203),'createdAt':_0x1fdc16,'updatedAt':_0x1fdc16};return _0x23b80f[_0x23482a(0x198)]=await this[_0x23482a(0x149)][_0x23482a(0x249)][_0x23482a(0x1ae)](_0x44b19a[_0x23482a(0x1ea)],_0x2d2ce8),_0x23b80f[_0x23482a(0x152)]=_0x23482a(0x23f),this[_0x23482a(0x10e)](_0x23b80f[_0x23482a(0x153)],{'conversationId':_0x23b80f[_0x23482a(0x153)],'kind':_0x23482a(0x171),'files':this[_0x23482a(0x149)][_0x23482a(0x249)][_0x23482a(0x261)](_0x44b19a[_0x23482a(0x1ea)],_0x23b80f[_0x23482a(0x153)]),'error':null}),{'upload':hostedConversationUploadSchema[_0x23482a(0x183)](uploadProjection(_0x23b80f))};}catch(_0x452828){await rename(_0x23b80f[_0x23482a(0xdc)],_0x23b80f[_0x23482a(0x218)])[_0x23482a(0x196)](()=>undefined);throw _0x452828;}}async[_0x44e8b5(0xd7)](_0x419f03){const _0x1c2051=_0x44e8b5,_0xe10262=hostedRequest(_0x419f03),_0x32d43b=hostedConversationUploadControlInputSchema[_0x1c2051(0x183)](_0xe10262[_0x1c2051(0x189)]),_0x59e28c=this[_0x1c2051(0xb6)](_0xe10262[_0x1c2051(0x1ea)],_0x32d43b[_0x1c2051(0x153)],_0x32d43b[_0x1c2051(0x1a2)]);if(_0x59e28c[_0x1c2051(0x152)]===_0x1c2051(0x23f))throw new Error(_0x1c2051(0x26d));return _0x59e28c[_0x1c2051(0x152)]=_0x1c2051(0x146),await rm(_0x59e28c[_0x1c2051(0x218)],{'force':!![]}),{'upload':hostedConversationUploadSchema[_0x1c2051(0x183)](uploadProjection(_0x59e28c))};}async[_0x44e8b5(0xe8)](_0x4f8469){const _0x4bb1e8=_0x44e8b5,_0x2ffa1f=hostedRequest(_0x4f8469),_0x363e88=hostedConversationIdInputSchema[_0x4bb1e8(0x183)](_0x2ffa1f[_0x4bb1e8(0x189)]),_0x44cbde=this[_0x4bb1e8(0x149)][_0x4bb1e8(0x249)][_0x4bb1e8(0xc4)](_0x2ffa1f[_0x4bb1e8(0x1ea)],_0x363e88[_0x4bb1e8(0x153)]);if(this[_0x4bb1e8(0x1de)][_0x4bb1e8(0x102)](_0x44cbde['id']))throw new Error(_0x4bb1e8(0xbf));this[_0x4bb1e8(0x1de)][_0x4bb1e8(0x185)](_0x44cbde['id']);try{await this[_0x4bb1e8(0x210)](_0x44cbde['id']);const _0x4fd3bf=this[_0x4bb1e8(0x10a)][_0x4bb1e8(0x225)](_0x44cbde['id']);if(_0x4fd3bf!==undefined){const _0x182144=runInterruptionKey(_0x44cbde['id'],_0x4fd3bf[_0x4bb1e8(0xc1)]['id']);this[_0x4bb1e8(0x25f)][_0x4bb1e8(0x185)](_0x182144);if(!_0x4fd3bf[_0x4bb1e8(0x143)]())this[_0x4bb1e8(0x25f)][_0x4bb1e8(0xe8)](_0x182144);}await this[_0x4bb1e8(0xfe)](_0x2ffa1f[_0x4bb1e8(0x1ea)],_0x44cbde['id']);const _0x12e224=this[_0x4bb1e8(0x149)][_0x4bb1e8(0x249)][_0x4bb1e8(0x222)](_0x2ffa1f[_0x4bb1e8(0x1ea)],_0x44cbde['id']);return await this[_0x4bb1e8(0x149)][_0x4bb1e8(0x1ce)][_0x4bb1e8(0x1b6)]({'conversationId':_0x44cbde['id'],'sessionId':_0x44cbde[_0x4bb1e8(0x1d1)],'homeDirectory':_0x12e224[_0x4bb1e8(0x264)]})[_0x4bb1e8(0x196)](()=>undefined),await this[_0x4bb1e8(0x24e)][_0x4bb1e8(0x225)](_0x44cbde['id'])?.[_0x4bb1e8(0x196)](()=>undefined),this[_0x4bb1e8(0xc6)](_0x44cbde['id']),await this[_0x4bb1e8(0x149)][_0x4bb1e8(0x249)][_0x4bb1e8(0x16b)](_0x44cbde['id']),this[_0x4bb1e8(0x145)][_0x4bb1e8(0xe8)](_0x44cbde['id']),hostedConversationDeleteResultSchema[_0x4bb1e8(0x183)]({'deletedConversationId':_0x44cbde['id']});}finally{this[_0x4bb1e8(0x1de)][_0x4bb1e8(0xe8)](_0x44cbde['id']);}}async[_0x44e8b5(0x210)](_0x5e5c0a){const _0x3e8e1b=_0x44e8b5,_0x32bfdf=_0x5e5c0a+'\x00',_0x19e0f1=[...this[_0x3e8e1b(0x266)][_0x3e8e1b(0x25e)]()][_0x3e8e1b(0x124)](([_0x5a5ec0])=>_0x5a5ec0[_0x3e8e1b(0x22f)](_0x32bfdf))[_0x3e8e1b(0x20e)](([,_0x1769df])=>_0x1769df);await Promise[_0x3e8e1b(0x265)](_0x19e0f1);}async[_0x44e8b5(0x22e)](_0xd62978){const _0x2b38b2=_0x44e8b5;try{const _0x3bf2a6=await this[_0x2b38b2(0x225)]({'conversationId':_0xd62978[_0x2b38b2(0x153)],'__requestUserId':_0xd62978[_0x2b38b2(0x1ea)],'__marAgentModels':_0xd62978[_0x2b38b2(0x182)]});if(this[_0x2b38b2(0x13c)][_0x2b38b2(0x225)](_0xd62978[_0x2b38b2(0xcb)])!==_0xd62978)return;this[_0x2b38b2(0x149)][_0x2b38b2(0x1f8)]?.({'type':_0x2b38b2(0xcc),'workbenchConnectionId':_0xd62978[_0x2b38b2(0x22c)],'watchId':_0xd62978[_0x2b38b2(0x19b)],'nodeGeneration':_0xd62978[_0x2b38b2(0xca)],'nodeId':this[_0x2b38b2(0x149)][_0x2b38b2(0x17c)](),'templateId':_0xd62978[_0x2b38b2(0x1cd)],'conversationId':_0xd62978[_0x2b38b2(0x153)],'revision':0x1,'snapshotSequence':++this[_0x2b38b2(0x215)],'expiresAt':_0xd62978[_0x2b38b2(0x127)],'payload':_0x3bf2a6}),_0xd62978[_0x2b38b2(0x140)]=!![];for(const _0xbf2663 of _0xd62978[_0x2b38b2(0xf9)])this[_0x2b38b2(0x1b9)](_0xd62978,_0xbf2663);_0xd62978[_0x2b38b2(0xf9)][_0x2b38b2(0x254)]=0xb5b+0x1841*-0x1+0xce6;}catch(_0x3cc1c9){if(this[_0x2b38b2(0x13c)][_0x2b38b2(0x225)](_0xd62978[_0x2b38b2(0xcb)])!==_0xd62978)return;this[_0x2b38b2(0x149)][_0x2b38b2(0x1f8)]?.({'type':_0x2b38b2(0xef),'workbenchConnectionId':_0xd62978[_0x2b38b2(0x22c)],'watchType':_0x2b38b2(0x1b2),'watchId':_0xd62978[_0x2b38b2(0x19b)],'nodeGeneration':_0xd62978[_0x2b38b2(0xca)],'nodeId':this[_0x2b38b2(0x149)][_0x2b38b2(0x17c)](),'templateId':_0xd62978[_0x2b38b2(0x1cd)],'conversationId':_0xd62978[_0x2b38b2(0x153)],'code':safeErrorCode(_0x3cc1c9,_0x2b38b2(0x25b)),'message':_0x2b38b2(0x260)}),this[_0x2b38b2(0x181)](_0xd62978[_0x2b38b2(0xcb)]);}}[_0x44e8b5(0x26b)](_0x42b0ed){const _0x261bdb=_0x44e8b5;return this[_0x261bdb(0x145)][_0x261bdb(0x225)](_0x42b0ed)??{'status':_0x261bdb(0x21b),'version':0x0,'updatedAt':0x0};}[_0x44e8b5(0x1c3)](_0x41ba65){const _0x37c35b=_0x44e8b5;return hostedConversationSummary(_0x41ba65,this[_0x37c35b(0x26b)](_0x41ba65['id']));}[_0x44e8b5(0x240)](_0x913da0,_0x22f3e2,_0x226503,_0x3da3a0){const _0x41c05c=_0x44e8b5,_0x18ee57=this[_0x41c05c(0x26b)](_0x22f3e2['id']),_0xfd9926={'status':_0x226503,'version':_0x18ee57[_0x41c05c(0x165)]+(0x26a3+0x1724+-0x3dc6*0x1),'updatedAt':_0x3da3a0};this[_0x41c05c(0x145)][_0x41c05c(0xfc)](_0x22f3e2['id'],_0xfd9926),this[_0x41c05c(0x13f)]({'kind':_0x41c05c(0x26b),'userId':_0x913da0,'templateId':_0x22f3e2[_0x41c05c(0x1cd)],'conversationId':_0x22f3e2['id'],'activity':_0xfd9926});}[_0x44e8b5(0x1d5)](_0x5a9e8b,_0x1f9cb,_0x13e439,_0x4442ab){const _0x138103=_0x44e8b5;this[_0x138103(0x13f)]({'kind':_0x138103(0x109),'event':{'runId':_0x13e439,'sequence':0x1,'eventType':_0x138103(0x109),'payload':{'targetType':_0x138103(0x224),'userId':_0x5a9e8b,'templateId':_0x1f9cb[_0x138103(0x1cd)],'conversationId':_0x1f9cb['id'],'conversationTitle':_0x1f9cb[_0x138103(0x163)],'runId':_0x13e439,'notificationId':_0x138103(0x12b)+this[_0x138103(0x149)][_0x138103(0x17c)]()+':'+_0x1f9cb['id']+':'+_0x13e439,'kind':_0x138103(0x173),'outcome':_0x4442ab[_0x138103(0x152)],'occurredAt':_0x4442ab[_0x138103(0xd6)]},'createdAt':_0x4442ab[_0x138103(0xd6)]}});}[_0x44e8b5(0x13f)](_0x550f94){const _0x85bb2e=_0x44e8b5,_0x33aef4=this[_0x85bb2e(0x149)][_0x85bb2e(0x23c)]?.(_0x550f94)??{'sequence':++this[_0x85bb2e(0x199)],'category':_0x85bb2e(0x1b2),'payload':_0x550f94};if(_0x33aef4!==undefined)this[_0x85bb2e(0x149)][_0x85bb2e(0xf7)]?.(_0x33aef4);}[_0x44e8b5(0x227)](_0x23dc6b,_0x3eb8f5,_0x57cbd3,_0x1faa2b){const _0x3ed2b4=_0x44e8b5;this[_0x3ed2b4(0x10e)](_0x23dc6b['id'],{'conversationId':_0x23dc6b['id'],'kind':_0x3ed2b4(0x1e5),'upgrade':{'status':_0x3ed2b4(0x12f),'previousVersionId':_0x3eb8f5,'targetVersionId':_0x57cbd3,'activeVersionId':_0x23dc6b[_0x3ed2b4(0x23a)],'conversation':this[_0x3ed2b4(0x1c3)](_0x23dc6b),'error':{'code':safeErrorCode(_0x1faa2b,_0x3ed2b4(0x248)),'message':_0x3ed2b4(0x1b5)}}});}[_0x44e8b5(0x10e)](_0x49ae4f,_0x270e43){const _0x25ab54=_0x44e8b5,_0x1619ed=[...this[_0x25ab54(0x13c)][_0x25ab54(0x1c1)]()][_0x25ab54(0x124)](_0x52f65e=>_0x52f65e[_0x25ab54(0x153)]===_0x49ae4f);if(_0x1619ed[_0x25ab54(0x254)]===-0x1256+0xd9a+0x4bc)return![];const _0x48fbc9=this[_0x25ab54(0x149)][_0x25ab54(0x23c)]?.(_0x270e43)??{'sequence':++this[_0x25ab54(0x199)],'category':_0x25ab54(0x1b2),'payload':_0x270e43};if(_0x48fbc9===undefined)return![];for(const _0xff08e0 of _0x1619ed){if(!_0xff08e0[_0x25ab54(0x140)])_0xff08e0[_0x25ab54(0xf9)][_0x25ab54(0x1bf)](_0x48fbc9);else this[_0x25ab54(0x1b9)](_0xff08e0,_0x48fbc9);}return!![];}[_0x44e8b5(0x1b9)](_0xc6d82f,_0x51e309){const _0x4b2538=_0x44e8b5;this[_0x4b2538(0x149)][_0x4b2538(0x1f8)]?.({'type':_0x4b2538(0x105),'workbenchConnectionId':_0xc6d82f[_0x4b2538(0x22c)],'watchId':_0xc6d82f[_0x4b2538(0x19b)],'nodeGeneration':_0xc6d82f[_0x4b2538(0xca)],'nodeId':this[_0x4b2538(0x149)][_0x4b2538(0x17c)](),'templateId':_0xc6d82f[_0x4b2538(0x1cd)],'conversationId':_0xc6d82f[_0x4b2538(0x153)],'expiresAt':_0xc6d82f[_0x4b2538(0x127)],'event':_0x51e309});}[_0x44e8b5(0x17a)](_0x52f10e){const _0x40a109=_0x44e8b5;return{'accepted':!![],'watchId':_0x52f10e[_0x40a109(0x19b)],'nodeGeneration':_0x52f10e[_0x40a109(0xca)],'expiresAt':_0x52f10e[_0x40a109(0x127)]};}[_0x44e8b5(0xc6)](_0x33068c){const _0x4b4613=_0x44e8b5;for(const _0x38a035 of[...this[_0x4b4613(0x13c)][_0x4b4613(0x1c1)]()])if(_0x38a035[_0x4b4613(0x153)]===_0x33068c)this[_0x4b4613(0x181)](_0x38a035[_0x4b4613(0xcb)]);}[_0x44e8b5(0x181)](_0x478d80){const _0x450b1b=_0x44e8b5,_0x55bc20=this[_0x450b1b(0x13c)][_0x450b1b(0x225)](_0x478d80);if(_0x55bc20===undefined)return;clearTimeout(_0x55bc20[_0x450b1b(0x22d)]),this[_0x450b1b(0x13c)][_0x450b1b(0xe8)](_0x478d80),this[_0x450b1b(0x155)][_0x450b1b(0x24a)](_0x478d80,_0x55bc20[_0x450b1b(0x10d)]);}[_0x44e8b5(0x10b)](_0x462f37){const _0xdca71e=_0x44e8b5,_0x5960af=setTimeout(()=>this[_0xdca71e(0x181)](_0x462f37),WATCH_TTL_MS);return _0x5960af[_0xdca71e(0xe3)](),_0x5960af;}[_0x44e8b5(0x1a1)](_0x177a13,_0x11ae5c){const _0x3024e6=_0x44e8b5,_0x2df67c=this[_0x3024e6(0x149)][_0x3024e6(0x249)][_0x3024e6(0xc4)](_0x177a13,_0x11ae5c);if(this[_0x3024e6(0x1de)][_0x3024e6(0x102)](_0x2df67c['id']))throw new Error(_0x3024e6(0xbf));if(_0x2df67c[_0x3024e6(0x152)]!==_0x3024e6(0x15e))throw new Error(_0x3024e6(0xbf));return _0x2df67c;}[_0x44e8b5(0xb6)](_0x1b908f,_0x4116e0,_0x28b2cc){const _0x5e6167=_0x44e8b5;this[_0x5e6167(0x149)][_0x5e6167(0x249)][_0x5e6167(0xc4)](_0x1b908f,_0x4116e0);const _0x8aa403=this[_0x5e6167(0x1ca)][_0x5e6167(0x225)](_0x28b2cc);if(_0x8aa403===undefined||_0x8aa403[_0x5e6167(0x1ea)]!==_0x1b908f||_0x8aa403[_0x5e6167(0x153)]!==_0x4116e0)throw new Error(_0x5e6167(0x118));return _0x8aa403;}async[_0x44e8b5(0xfe)](_0x53b63d,_0x39f3c3){const _0x8a0dde=_0x44e8b5;for(const _0xd85df2 of this[_0x8a0dde(0x1ca)][_0x8a0dde(0x1c1)]()){if(_0xd85df2[_0x8a0dde(0x1ea)]!==_0x53b63d||_0xd85df2[_0x8a0dde(0x153)]!==_0x39f3c3)continue;_0xd85df2[_0x8a0dde(0x152)]===_0x8a0dde(0x1e9)&&(_0xd85df2[_0x8a0dde(0x152)]=_0x8a0dde(0x146),await rm(_0xd85df2[_0x8a0dde(0x218)],{'force':!![]})[_0x8a0dde(0x196)](()=>undefined));}}async[_0x44e8b5(0x1df)](_0x47bc2a,_0x5401d2,_0x2f07c6){const _0x4ddc92=_0x44e8b5,_0x483989=this[_0x4ddc92(0x149)][_0x4ddc92(0x249)][_0x4ddc92(0x252)](_0x47bc2a,_0x5401d2,_0x2f07c6);if(_0x483989[_0x4ddc92(0x13b)]!==_0x4ddc92(0x219))throw new Error(_0x4ddc92(0x1e6));return await assertRegularFile(this[_0x4ddc92(0x149)][_0x4ddc92(0x249)][_0x4ddc92(0x1d7)](_0x47bc2a,_0x483989),_0x483989[_0x4ddc92(0x21a)]),_0x483989;}async[_0x44e8b5(0x1c6)](_0x1a79f2,_0x47ee03,_0x3c7f9d,_0x24e5e9,_0x5db34f){const _0x5a431a=_0x44e8b5;if(_0x5db34f>_0x3c7f9d[_0x5a431a(0x11b)][_0x5a431a(0x14a)])return _0x5a431a(0x25d);if(_0x47ee03[_0x5a431a(0x242)][_0x5a431a(0x112)]+_0x5db34f>_0x47ee03[_0x5a431a(0x242)][_0x5a431a(0x151)])return _0x5a431a(0x1f3);const _0x28c6c9=await lstat(join(_0x1a79f2[_0x5a431a(0x103)],_0x24e5e9))[_0x5a431a(0x196)](_0x3f1fb3=>{const _0x4eafcc=_0x5a431a;if(_0x3f1fb3[_0x4eafcc(0xb8)]===_0x4eafcc(0x209))return undefined;throw _0x3f1fb3;});return _0x28c6c9===undefined?_0x5a431a(0x11c):_0x5a431a(0x1d3);}[_0x44e8b5(0x187)](_0x346d7f,_0x43f37f,_0xae1251,_0x1bb891){const _0x53cd3c=_0x44e8b5,_0x5eba35=[{'logicalPath':_0x53cd3c(0x1e1),'physicalPath':_0x43f37f[_0x53cd3c(0x200)],'writable':![]},{'logicalPath':_0x53cd3c(0x179),'physicalPath':_0x346d7f[_0x53cd3c(0x103)],'writable':!![]},{'logicalPath':_0x53cd3c(0x18c),'physicalPath':_0x346d7f[_0x53cd3c(0x262)],'writable':!![]}];if(_0xae1251!==undefined&&_0x1bb891!==undefined)_0x5eba35[_0x53cd3c(0x1bf)]({'logicalPath':_0x1bb891,'physicalPath':_0xae1251,'writable':![]});if(_0x43f37f[_0x53cd3c(0x1dd)]!==undefined)_0x5eba35[_0x53cd3c(0x1bf)]({'logicalPath':_0x43f37f[_0x53cd3c(0x1dd)],'physicalPath':_0x43f37f[_0x53cd3c(0x200)],'writable':![]},{'logicalPath':join(_0x43f37f[_0x53cd3c(0x1dd)],_0x53cd3c(0x1aa)),'physicalPath':_0x346d7f[_0x53cd3c(0x103)],'writable':!![]},{'logicalPath':join(_0x43f37f[_0x53cd3c(0x1dd)],_0x53cd3c(0x11e)),'physicalPath':_0x346d7f[_0x53cd3c(0x262)],'writable':!![]});return _0x5eba35;}[_0x44e8b5(0xe4)](_0xc96a88,_0x5cc400,_0x4a97a7=_0xc96a88[_0x44e8b5(0x17e)],_0x840bee,_0x4f7164){const _0x1fba86=_0x44e8b5;return this[_0x1fba86(0x149)][_0x1fba86(0xf1)]({'policyVersion':HOST_POLICY_VERSION,'workspaceDirectory':_0x5cc400[_0x1fba86(0x200)],..._0x5cc400[_0x1fba86(0x1dd)]===undefined?{}:{'sourceWorkspacePath':_0x5cc400[_0x1fba86(0x1dd)]},'inboxDirectory':_0xc96a88[_0x1fba86(0x103)],'outputDirectory':_0xc96a88[_0x1fba86(0x262)],..._0x840bee===undefined||_0x4f7164===undefined?{}:{'generatedImagesDirectory':_0x840bee,'generatedImagesLogicalPath':_0x4f7164},'temporaryDirectory':_0x4a97a7,'networkMode':_0x5cc400[_0x1fba86(0xf3)][_0x1fba86(0x1a3)]});}[_0x44e8b5(0xe9)](_0x4967da){const _0x5858d0=_0x44e8b5,_0x2778c4=this[_0x5858d0(0x149)][_0x5858d0(0x19f)][_0x5858d0(0xfd)][_0x5858d0(0x190)](_0x5858d0(0x244))[_0x5858d0(0x225)](_0x4967da);if(_0x2778c4===undefined)return undefined;if(typeof _0x2778c4['id']!==_0x5858d0(0x116))throw new Error(_0x5858d0(0x17b));return _0x2778c4['id'];}async[_0x44e8b5(0x19a)](_0x2727ae,_0x3e2ba5){const _0x25fde7=_0x44e8b5,_0x41f9c1=this[_0x25fde7(0x149)][_0x25fde7(0x19f)][_0x25fde7(0xfd)][_0x25fde7(0x190)](_0x25fde7(0x136))[_0x25fde7(0x225)](_0x2727ae,_0x3e2ba5);if(_0x41f9c1===undefined||_0x41f9c1[_0x25fde7(0x152)]!==_0x25fde7(0x217)&&_0x41f9c1[_0x25fde7(0x152)]!==_0x25fde7(0x1ef)||_0x41f9c1[_0x25fde7(0x15d)]!==HOST_POLICY_VERSION||typeof _0x41f9c1[_0x25fde7(0xc9)]!==_0x25fde7(0x116)||typeof _0x41f9c1[_0x25fde7(0x1b0)]!==_0x25fde7(0x116)||typeof _0x41f9c1[_0x25fde7(0x213)]!==_0x25fde7(0x116)||typeof _0x41f9c1[_0x25fde7(0x131)]!==_0x25fde7(0x116)||typeof _0x41f9c1[_0x25fde7(0x235)]!==_0x25fde7(0x116))throw new Error(_0x25fde7(0x17b));const _0x4d9a8c=this[_0x25fde7(0x149)][_0x25fde7(0x249)][_0x25fde7(0xd3)](_0x41f9c1[_0x25fde7(0xc9)]),_0x4e49c2=join(_0x4d9a8c,_0x25fde7(0xfb)),_0x571898=join(_0x4d9a8c,_0x25fde7(0x188)),_0x3a4386=await lstat(_0x4e49c2)[_0x25fde7(0x196)](()=>undefined),_0x447e29=await lstat(_0x571898)[_0x25fde7(0x196)](()=>undefined);if(_0x3a4386===undefined||!_0x3a4386[_0x25fde7(0x184)]()||_0x3a4386[_0x25fde7(0x125)]()||_0x447e29===undefined||!_0x447e29[_0x25fde7(0x250)]()||_0x447e29[_0x25fde7(0x125)]()||(_0x447e29[_0x25fde7(0x263)]&0x45*0x25+0x185b+0x3*-0xac7)!==0xb*-0xad+-0x2*-0x11ea+-0x1af8)throw new Error(_0x25fde7(0x17b));let _0x3a0ce9;try{const _0x4b5466=await readFile(_0x4e49c2,_0x25fde7(0x1cb)),_0x35d7f2=_0x4b5466[_0x25fde7(0x20d)]('\x0a')?_0x4b5466[_0x25fde7(0x20a)](-0x923*-0x3+0x101*0xe+-0x2977,-(0x3*-0x69d+0x28*0x16+0x1068)):_0x4b5466;if(_0x35d7f2!==_0x41f9c1[_0x25fde7(0x1b0)]||createHash(_0x25fde7(0x1c2))[_0x25fde7(0x160)](_0x35d7f2)[_0x25fde7(0x14b)](_0x25fde7(0x21f))!==_0x41f9c1[_0x25fde7(0x131)])throw new Error(_0x25fde7(0x17b));_0x3a0ce9=JSON[_0x25fde7(0x183)](_0x35d7f2);}catch{throw new Error(_0x25fde7(0x17b));}if(!record(_0x3a0ce9))throw new Error(_0x25fde7(0x17b));const _0x2a471f=publishedTemplateSnapshot(_0x3a0ce9),_0x35bb3e=publishedTemplateDraft(_0x2a471f[_0x25fde7(0x19e)],_0x3a0ce9[_0x25fde7(0xf3)]),_0x33c91=_0x35bb3e[_0x25fde7(0xf3)],_0x3f937d=publishedMcpServers(_0x3a0ce9[_0x25fde7(0x1d8)]),_0x1d5f15=publishedTemplateContentHash(_0x2a471f[_0x25fde7(0x221)],_0x2a471f[_0x25fde7(0x25e)],_0x2a471f[_0x25fde7(0x19e)]),_0x5e7588=_0x2a471f[_0x25fde7(0x25e)][_0x25fde7(0x134)]((_0x267ef4,_0x82113c)=>_0x267ef4+_0x82113c[_0x25fde7(0x21a)],0x9b9*-0x2+-0x317+0x1689);if(_0x3a0ce9[_0x25fde7(0xd2)]!==_0x41f9c1[_0x25fde7(0x235)]||createHash(_0x25fde7(0x1c2))[_0x25fde7(0x160)](JSON[_0x25fde7(0x128)](_0x3f937d))[_0x25fde7(0x14b)](_0x25fde7(0x21f))!==_0x41f9c1[_0x25fde7(0x235)]||_0x3a0ce9[_0x25fde7(0x1b4)]!==_0x41f9c1[_0x25fde7(0x213)]||_0x1d5f15!==_0x41f9c1[_0x25fde7(0x213)]||_0x41f9c1[_0x25fde7(0x1f7)]!==_0x2a471f[_0x25fde7(0x25e)][_0x25fde7(0x254)]||_0x41f9c1[_0x25fde7(0x1e7)]!==_0x5e7588)throw new Error(_0x25fde7(0x17b));if(_0x3a0ce9[_0x25fde7(0x148)]!==_0x2727ae||_0x3a0ce9[_0x25fde7(0x1cd)]!==_0x3e2ba5||_0x3a0ce9[_0x25fde7(0x206)]!==HOST_POLICY_VERSION||_0x33c91[_0x25fde7(0x1cd)]!==_0x3e2ba5||_0x33c91[_0x25fde7(0x17c)]!==this[_0x25fde7(0x149)][_0x25fde7(0x17c)]())throw new Error(_0x25fde7(0x17b));return{'id':_0x2727ae,'templateId':_0x3e2ba5,'storageKey':_0x41f9c1[_0x25fde7(0xc9)],'templateDirectory':_0x571898,..._0x2a471f[_0x25fde7(0x1dd)]===undefined?{}:{'sourceWorkspacePath':_0x2a471f[_0x25fde7(0x1dd)]},'draft':_0x33c91,'modelPolicy':_0x35bb3e[_0x25fde7(0xec)],'mcpServers':_0x3f937d};}}function hostedRequest(_0x114f6c){const _0x1b3f5b=_0x44e8b5;if(!record(_0x114f6c))throw new Error(_0x1b3f5b(0x17d));const {__requestUserId:_0x555a0c,__template:_0x3e0956,__marAgentModel:_0x345cb1,__marAgentModels:_0x219440,__marAgentRuntimeScopeId:_0x5ee1d6,__workspaceWatchSessionHash:_0x1dd536,__templateDeleted:_0x4f83f7,..._0x4447af}=_0x114f6c;if(typeof _0x555a0c!==_0x1b3f5b(0x1af)||!Number[_0x1b3f5b(0x232)](_0x555a0c)||_0x555a0c<=-0x1e1c+0x7c2+0xb2d*0x2)throw new Error(_0x1b3f5b(0x17d));if(_0x4f83f7!==undefined&&_0x4f83f7!==!![])throw new Error(_0x1b3f5b(0x17d));if(_0x5ee1d6!==undefined&&(typeof _0x5ee1d6!==_0x1b3f5b(0x116)||_0x5ee1d6[_0x1b3f5b(0x254)]===-0xd*-0x15d+-0xdc1+0x3f8*-0x1))throw new Error(_0x1b3f5b(0x17d));return{'data':_0x4447af,'userId':_0x555a0c,..._0x3e0956===undefined?{}:{'template':_0x3e0956},..._0x345cb1===undefined?{}:{'model':_0x345cb1},..._0x219440===undefined?{}:{'models':_0x219440},..._0x5ee1d6===undefined?{}:{'runtimeScopeId':_0x5ee1d6},..._0x1dd536===undefined?{}:{'sessionHash':_0x1dd536},..._0x4f83f7===!![]?{'templateDeleted':!![]}:{}};}function requireWatchSessionHash(_0xc446eb){const _0x45528d=_0x44e8b5;if(typeof _0xc446eb!==_0x45528d(0x116)||_0xc446eb[_0x45528d(0x254)]===-0x3*0xa59+-0x3*-0xb9c+-0x3c9)throw new Error(_0x45528d(0x17d));return _0xc446eb;}function watchOwnerKey(_0x3d285a,_0x3d3415){return _0x3d285a+':'+_0x3d3415;}function runtimeModels(_0x308ef9){const _0x4d024f=_0x44e8b5;return marAgentRuntimeModelConfigurationSchema[_0x4d024f(0x15c)]()[_0x4d024f(0x183)](_0x308ef9);}function allowedModels(_0x5c5de8,_0x470442){const _0x4c59a1=_0x44e8b5,_0x366742=new Set(_0x5c5de8[_0x4c59a1(0xec)][_0x4c59a1(0x142)]);return _0x470442[_0x4c59a1(0x124)](_0x1d0436=>_0x1d0436[_0x4c59a1(0x180)]&&_0x366742[_0x4c59a1(0x102)](_0x5c5de8[_0x4c59a1(0xec)][_0x4c59a1(0x1ab)]===_0x4c59a1(0x22b)?_0x1d0436[_0x4c59a1(0x111)]:_0x1d0436['id']));}function selectModel(_0x2198d4,_0x4a8565,_0x4c1bdc){const _0x367ca8=_0x44e8b5,_0x8e633d=allowedModels(_0x2198d4,_0x4a8565),_0x417ba2=_0x8e633d[_0x367ca8(0x1d6)](_0x865c7=>_0x865c7['id']===_0x4c1bdc);if(_0x417ba2!==undefined)return _0x417ba2;const _0x3682cd=_0x8e633d[_0x367ca8(0x1d6)](_0x5b873a=>(_0x2198d4[_0x367ca8(0xec)][_0x367ca8(0x1ab)]===_0x367ca8(0x22b)?_0x5b873a[_0x367ca8(0x111)]:_0x5b873a['id'])===_0x2198d4[_0x367ca8(0xec)][_0x367ca8(0xdd)]);if(_0x3682cd!==undefined)return _0x3682cd;const _0x39ae99=_0x2198d4[_0x367ca8(0xec)][_0x367ca8(0x142)][_0x367ca8(0x20e)](_0x487fad=>_0x8e633d[_0x367ca8(0x1d6)](_0x3ce7a9=>(_0x2198d4[_0x367ca8(0xec)][_0x367ca8(0x1ab)]===_0x367ca8(0x22b)?_0x3ce7a9[_0x367ca8(0x111)]:_0x3ce7a9['id'])===_0x487fad))[_0x367ca8(0x1d6)](_0x5050b1=>_0x5050b1!==undefined);if(_0x39ae99===undefined)throw new Error(_0x367ca8(0x122));return _0x39ae99;}function publishedTemplateDraft(_0x481801,_0x5b0d8d){const _0x1578f0=_0x44e8b5,_0x5d9e7c=conversationTemplateDraftSchema[_0x1578f0(0x1c9)](_0x5b0d8d);if(_0x5d9e7c[_0x1578f0(0x207)]){const {allowedModels:_0x17509e,defaultModelId:_0x535454,..._0x34d5aa}=_0x5d9e7c[_0x1578f0(0x189)];return{'draft':_0x34d5aa,'modelPolicy':{'identity':_0x1578f0(0x22b),'allowedIds':_0x17509e[_0x1578f0(0x20e)](_0x5b54d6=>_0x5b54d6[_0x1578f0(0x111)]),'defaultId':_0x535454}};}if(_0x481801!==0x1*-0xe99+-0xa7*-0x35+-0x13f9||!record(_0x5b0d8d)||_0x1578f0(0x132)in _0x5b0d8d||!Array[_0x1578f0(0x10c)](_0x5b0d8d[_0x1578f0(0x169)]))throw new Error(_0x1578f0(0x17b));const _0x3d2413=_0x5b0d8d[_0x1578f0(0x169)],_0x16715e={..._0x5b0d8d};delete _0x16715e[_0x1578f0(0x169)];const _0x3c4962=conversationTemplateDraftSchema[_0x1578f0(0x1c9)]({..._0x16715e,'allowedModels':_0x3d2413[_0x1578f0(0x20e)](_0x568026=>({'modelId':_0x568026,'name':_0x568026}))});if(!_0x3c4962[_0x1578f0(0x207)])throw new Error(_0x1578f0(0x17b));const {allowedModels:_0x35259d,defaultModelId:_0x518658,..._0x2bcf6a}=_0x3c4962[_0x1578f0(0x189)];return{'draft':_0x2bcf6a,'modelPolicy':{'identity':_0x1578f0(0x1fd),'allowedIds':_0x35259d[_0x1578f0(0x20e)](_0x27b6e4=>_0x27b6e4[_0x1578f0(0x111)]),'defaultId':_0x518658}};}function networkModels(_0x37addb,_0x3649ea){const _0x42db84=_0x44e8b5;if(_0x3649ea!==_0x42db84(0x195))return _0x37addb;return _0x37addb[_0x42db84(0x20e)](_0x5c6967=>_0x5c6967[_0x42db84(0x113)]?{..._0x5c6967,'hostedWebSearch':![]}:_0x5c6967);}function _0xed8b(){const _0x1af476=['C3vJy2vZCW','q1vtve9n','ru5pru5u','C2XPy2u','zMLUAxnOtwvZC2fNzq','Aw5JBhvKzxm','zw5KC1DPDgG','BwfW','y29UzMLNDxjHDgLVBG','D2fPDezVCLbLBMrPBMDnzxnZywDLu3rHCNrZ','uLvox0LnquDfx05pvf9gt1vora','qvvutW','y29UDgvUDf9OyxnO','mtmYmtm1mKrTsgXqsG','C25HChnOB3rtzxf1zw5Jzq','ChvIBgLZAfj1BNrPBwvfDMvUDa','qvzbsuXbqKXf','DgvTCg9Yyxj5ugf0Aa','vvbmt0fe','C2L6zq','surmrq','igrPCMvJDg9YEs4','yM9VBgvHBG','DxbKyxrLtwv0ywrHDge','Agv4','y29UDMvYC2f0Aw9U','zgLYzwn0B3jPzxm','Cgf0AhngB3jdB252zxjZyxrPB24','yxjNCW','se9tvevex0nptLzfuLnbveLptG','z2v0','mtmXnJuXnhrLz2vota','ChvIBgLZAfvWz3jHzgvgywLSDxjL','D3jPDgvvCgXVywrdAhvUAW','CgLUBMvKqxq','yMfZzty0','vvbtvfjfqu1Ftu9eruXFsuq','D29YA2jLBMnOq29UBMvJDgLVBKLK','DgLTzxi','Aw5PDgLHBgL6zvDHDgnOtgvHC2u','C3rHCNrZv2L0Aa','DgL0BgvdAgfUz2vK','l2XPyJy0','AxntywzLsw50zwDLCG','A2v5CW','se9tvevex0nptLzfuLnbveLptL9svu5Fqunusvzf','BwnWx2nVBMzPz19OyxnO','B2jQzwn0','y3jLyxrLtwvZC2fNzq','l3bYB2m','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','ywn0AxzLvMvYC2LVBKLK','ywXS','BMv4DfDVCMTIzw5JAev2zw50','Bg9JywXLq29TCgfYzq','CMvHC29UAw5NrwzMB3j0CW','q09nueXfveve','ChvIBgLZAefJDgL2Axr5','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu0LArv9jtLzbteLe','CxvVDge','y3vYCMvUDfzLCNnPB25jza','u0vmrunuigLKiezst00Gy29UDMvYC2f0Aw9Ux3rLBxbSyxrLx3zLCNnPB25ZcIaGicaGicaGifDirvjfihrLBxbSyxrLx2LKpt8Gqu5eihn0yxr1CZ0NqvzbsuXbqKXfjWOGicaGicaGicbpuKrfuIbcwsb2zxjZAw9Ux251BwjLCIbervndlhb1yMXPC2HLzf9HDcbervndlgLKierfu0mkicaGicaGicaGteLnsvqGmq','l2XPyG','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','zgf0yujHC2u2na','se9tvevex0nptLzfuLnbveLptL9vueDsqurfx0zbsuXfra','C3rVCMu','CMvSzwfZzq','l3j1BNrPBwu','CgLUBMvK','CMvSyxrPDMvqyxrO','CNvUu2v0DgXLBwvUDhm','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGywXZBYbTB3vUDgvKihjLywqTB25SEsbHDca','AxneAxjLy3rVCNK','se9tvevex0nptLzfuLnbveLptL9vueXpqurFt0zgu0vux0LovKfmsuq','CMvXDwLYzuzPBgu','DhjPBq','BgvUz3rO','AgLZDg9YEq','mtuZnJa2qLnmDeX6','lsaVD29YA3nWywnLl2LUyM94lW','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGCM9VDcbPCYbYzwfKlw9UBhKUie9UBhKGl3DVCMTZCgfJzs9PBMjVEcbHBMqGl3DVCMTZCgfJzs9VDxrWDxqGyxjLihDYAxrHyMXLlG','zMLSzurLBgv0zxm','zNjVBq','se9tvevex0nptLzfuLnbveLptL9xqvrdsf9gquLmruq','Cgf0AhngB3jnyw5PzMvZDa','ve9px0XbuKDf','zw50CMLLCW','zxHWzwn0zwrjBNrLCNj1ChrPB25Z','sg9ZDgvKignVBNzLCNnHDgLVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','BgLZDezPBgvZ','B3v0Chv0rgLYzwn0B3j5','Bw9Kzq','Ag9TzurPCMvJDg9YEq','ywXSu2v0DgXLza','CgvUzgLUz01LC3nHz2vZ','su5urvjsvvburuq','ywr2yw5JzuXHC3rby3rPDML0Eq','se9tvevex0nptLzfuLnbveLptL9rvu9uqv9fwenfrurfra','zMLUzenVBNzLCNnHDgLVBKj5q2XPzw50uMvXDwvZDa','ywn0AxzPDhK','BMfTzq','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu1rbvevFsu5wquXjra','C3vIyxjYyxK','CMvXDwLYzvvWBg9Hza','yxbWBhLbDxrVBwf0AwnuAxrSzq','y29Kzq','CNvUlq','CMvJzwL2zwrcExrLCW','AgvHzgvYCW','y2XPzw50twvZC2fNzuLK','y29UDMvYC2f0Aw9UrgLYzwn0B3j5','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','se9tvevex0nptLzfuLnbveLptL9tvefurv9jtLzbteLe','tMv0D29YAYbHy2nLC3mGAxmGzgLZywjSzwqUieXVy2fSihbYB2nLC3nLCYWGv2vIifnLyxjJAcWGv2vIiezLDgnOlcbTB2rLBc1OB3n0zwqGD2vIlcbHBMqGCMvTB3rLieHuvfaGtunqignHBM5VDcb1C2uGDgHLig5LDhDVCMSU','CNvU','zxHLy3v0ywjSzq','DxjS','CMvXDwLYzunVBNzLCNnHDgLVBG','C3bSAxq','CMvTB3zLq29UDMvYC2f0Aw9Uv2f0y2HmzwfZzxm','sg9ZDgvKignVBNzLCNnHDgLVBIbMAwXLihbYB2PLy3rPB24GzMfPBgvKlG','C29Tzq','C3rVCMfNzv9RzxK','BM9KzuDLBMvYyxrPB24','B3DUzxjlzxK','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5ZBMfWC2HVDa','B2zMC2v0','y29TBwfUza','CMvQzwn0','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','DgvTCgXHDgvoyw1L','BwnWq29UzMLNsgfZAa','DgvTCgXHDgvwzxjZAw9UrgLYzwn0B3j5','Bwf4u3rVCMfNzuj5DgvZ','n3HJEKvvrq','y29TCgXLDgvKqxq','y2fUy2vSvxbSB2fK','yNL0zuXLBMD0Aa','mtCZmJi5m2HzuMvfAa','vgHPCYbPCYbHie5VzguTAg9ZDgvKignVBNzLCNnHDgLVBI4GvgHLieHVC3qTzgvJBgfYzwqGBw91BNrZigfYzsb0AguGy29TCgXLDguGzMLSzsbIB3vUzgfYEs4','se9tvevex0nptLzfuLnbveLptL9uru1qtefurv9vtKfwquLmqujmrq','DgfYz2v0ugf0Aa','zgvMyxvSDeLK','tK9erq','yNL0zxnszwfK','l2HVBwuVBwfY','ywXSB2m','CNvUDgLTzvnJB3bLswq','Dw5Yzwy','ChjVy2vZC0v4zwn1Dg9Y','DhjHBNnWB3j0','mtG4rKHwy1zd','uLvoveLnrq','zgvSzxrL','Bgf0zxn0qxzHAwXHyMXLvgvTCgXHDgvwzxjZAw9Uswq','Bwf4','zw52AxjVBM1LBNq','Bw9KzwXqB2XPy3K','AM9PBG','igfYzsbHBgLHC2vZig9MihrOzsbZyw1LihDYAxrHyMXLig92zxjSyxLZlG','D2f0y2GUzMfPBgvK','yxjNDw1LBNrZ','ChjVy2vZC0v4zwn1Dg9YrMfJDg9YEq','DxbSB2fKu3rHDhvZ','zhjHzNq','zgLZCg9Zzq','Aw5WDxrdyxbHyMLSAxrPzxm','zNvSBc1Hy2nLC3m','zw1PDfDVCMTIzw5JAev2zw50','CMvZCg9UC2vZuhjLDMLVDxnszxnWB25ZzuLK','CgvUzgLUz0v2zw50CW','Aw1Hz2vjBMrLEa','BwfUAwzLC3qUANnVBG','C2v0','CMf3','y2fUy2vSq29UDMvYC2f0Aw9UvxbSB2fKCW','AxndB252zxjZyxrPB25jBLvZzq','ChjLDMLVDxnwzxjZAw9Uswq','ChjLCgfYzunVBNzLCNnHDgLVBKvUDMLYB25Tzw50','AgfZ','DxbSB2fKC0rPCMvJDg9YEq','DxnLCLn0B3jHz2vlzxK','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5LDMvUDa','yxzHAwXHyMXL','DgvZDa','vu5srvnuuKLdveve','BM90AwzPy2f0Aw9U','ywn0AxzLuNvUCW','D2f0y2HmzwfZzvrPBwvY','AxnbCNjHEq','C2XVDfrVA2vU','ChvIBgLZAeHVC3rLzev2zw50','C3rHCNrLzef0','zgvZy3jPChrPB24','Bw9KzwXjza','DxnLzej5DgvZ','Ag9ZDgvKv2vIu2vHCMnO','Dw53yxrJAa','u1vdq0vfreve','C3rYAw5N','revmrvrfra','se9tvevex0nptLzfuLnbveLptL9vueXpqurFtK9ux0zpvu5e','BgLUA1rHCMDLDa','v2HLBIb0AguGDxnLCIbHC2TZihrVihbSywnLigeGChjLDMLVDxnSEsbNzw5LCMf0zwqGAw1Hz2uGAw4GB3v0Chv0lcbPBNnWzwn0ia','CxvVDgfZ','uKvbrfK','BwLU','B3v0Chv0','CMvHzeLTywDL','y3vYC29Y','igfUzcbJB3b5ihrOzsbLEgLZDgLUzYbMAwXLigzYB20G','se9tvevex0nptLzfuLnbveLptL9nt0rftf9ot1rFqvzbsuXbqKXf','CNvUswq','zMLSDgvY','AxntEw1IB2XPy0XPBMS','D2f0y2G','zxHWAxjLC0f0','C3rYAw5NAwz5','y3jLyxrLzef0','sfruua','CNvUoG','DgfYz2v0vMvYC2LVBKLK','BMXPBMS','y29UzMLNDxjHDgLVBIXKAxnWBgf5tMfTzsXPzcXVCMLNAw4SCNvUDgLTzsXZzxj2zxjoyw1LlhrYyw5ZCg9YDcX2zxjZAw9U','rKfjteve','yMfZzvvYBa','BwfUAwzLC3rFAgfZAa','ywXSB3DLze1VzgvSCW','mJjeshrlqMW','CMvKDwnL','ChjVDg9JB2W','u0vmrunuigLKlhrLBxbSyxrLx2LKlhn0yxr1CYXZDg9YywDLx2TLEsXTyw5PzMvZDcXJB250zw50x2HHC2GSBwfUAwzLC3rFAgfZAcXTy3bFy29UzMLNx2HHC2GScIaGicaGicaGicaGicaGicbMAwXLx2nVDw50lhrVDgfSx2j5DgvZlgHVC3rFCg9SAwn5x3zLCNnPB24kicaGicaGicaGrLjptsbJB252zxjZyxrPB25FDgvTCgXHDgvFDMvYC2LVBNmGv0HfuKuGAwq9pYbbtKqGDgvTCgXHDgvFAwq9pW','BgfZDefJDgL2Axr5qxq','uLvotKLorW','Bwf4t3v0Chv0vg9Rzw5Z','l3vZCG','y2f0zwDVCNK','D2f0y2HmzwfZzxm','u1LnteLosW','CMvUzxC','ChvIBgLZAfDVCMTIzw5JAev2zw50','CMvHzhK','se9tvevex0nptLzfuLnbveLptL9gsuXfx0nptKzmsunu','ywXSB3DLzeLKCW','y2fUy2vS','zMLSzvbYB2PLy3rPB25jza','ywn0AxzPDgLLCW','q0foq0vmteve','u05bufnit1q','DMvYC2LVBKLK','B3b0Aw9UCW','Bwf4vxbSB2fKqNL0zxm','zgLNzxn0','mJqWmJm3tLHYDMfu','rKLmrq','se9tvevex0nptLzfuLnbveLptL9vueXpqurFsu5dt01qtevurq','y3jLyxrLvxbSB2fK','CMvWBgfJzq','Bwf4qNL0zxm','C3rHDhvZ','y29UDMvYC2f0Aw9Uswq','y3jLyxrL','C2vZC2LVBLDHDgnOu2XVDhm','igfUzca','y3jLyxrLu2vZC2LVBG','CMvHza','y2XVC2u','C2vYDMvYtMfTzq','zMLUAxnOuNvU','yxjYyxK','Ag9ZDf9WB2XPy3LFDMvYC2LVBG','qunusvzf','BwvZC2fNzq','DxbKyxrL','B3v0Chv0q2fWywjPBgL0AwvZ','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jfq09oq0Lmrv9gquLmruq','DgL0Bgu','q0foq0vmteLorW','DMvYC2LVBG','C2vJCMv0rw52AxjVBM1LBNq','DxbKyxrLzef0','l2rLDG','ywXSB3DLze1VzgvSswrZ','igfZigeGy29TCgf0AwjPBgL0EsbHBgLHCZSGAxqGAxmGDgHLihnHBwuGAw1TDxrHyMXLihnUyxbZAg90lcbUB3qGDgHLigXPDMuGC291CMnLifDVCMTZCgfJzs4G','CgvYBwfUzw50rgvSzxrLq29UDMvYC2f0Aw9U','C2vJCMv0tMfTzq','ChjVBxb0','CMvJB25JAwXLrMLSzxm','C2vZC2LVBKHHC2G','zgvSzxrLrMLSzq','zMLSzxm','DxbKyxrLq29UDMvYC2f0Aw9U','uLvox1rfuK1jtKfm','m1rNr1L5uW','zMLSzuLK','l2jPBG','ChjLzMXPz2H0vxbSB2fK','q09ovKvsu0fusu9ox1rftvbmqvrfx01duf9jtLzbteLe','l3DVCMTZCgfJzs9PBMjVEa','ywnJzxb0zwrxyxrJAa','q09ovKvsu0fusu9ox1rftvbmqvrfx1zfuLnjt05Fq09suLvqveve','BM9KzuLK','se9tvevex0nptLzfuLnbveLptL9ot1rFqvvuse9ssvPfra','DgvTCg9Yyxj5uM9VDerPCMvJDg9YEq','Aw50zxjYDxb0','zw5HyMXLza','CMvTB3zLv2f0y2HmzwfZzq','Bw9KzwXZ','CgfYC2u','AxngAwXL','ywrK','se9tvevex0nptLzfuLnbveLptL9trvntsu9ox0LovKfmsuq','Cgf0Ae1VDw50CW','y29UDgvUDa','zgf0yq','CgvUzgLUz0nYzwf0zxm','C2f2zu1LC3nHz2vby2nLChrHBMnL','l3DVCMTZCgfJzs9VDxrWDxq','l3nIAw4','zgLZCgXHEu5HBwu','uMvHzcb1C2vYihvWBg9HzhmGzNjVBsaVD29YA3nWywnLl2LUyM94igfUzcbWBgfJzsb1C2vYlxzPC2LIBguGzgvSAxzLCMfIBgvZigLUic93B3jRC3bHy2uVB3v0Chv0lG','ChjLCgfYzq','C3rHCNrnzxnZywDL','C3rHCNrsDw4','AgfZtM9Urw1WDhLvC2vYtwvZC2fNzq','lNvWBg9Hza','tK9orq','y2f0y2G','AxrLBxm','zMLSzq','D29YA2jLBMnOu2vXDwvUy2u','Bg9HzfrLBxbSyxrLvMvYC2LVBG','D2f0y2Hjza','C29YDa','zMLUywXSEq','C2nOzw1HvMvYC2LVBG','zgf0ywjHC2u','vgHLieHVC3qGzw5MB3jJzxmGDgHPCYbMAwXLigjVDw5Kyxj5lcbHBMqGBg9JywWGChjVy2vZC2vZihj1BIbPBNnPzguGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','CMvXDwLYzvDYAxrHyMXLq29UDMvYC2f0Aw9U','DxbSB2fKswq','BMv0D29YA01Vzgu','C3LUyW','CMvHzezPBgu','CMvZB2X2zq','Dg9tDhjPBMC','BgLZDa','DgfYz2v0s2LUza','Aw5IB3G','AwrLBNrPDhK','yxnZzxj0q2fUq3jLyxrL','v09ss1nqqunf','CMvNAxn0zxjgAwXL','BNvTyMvY','BwfUAwzLC3q','BgLTAxq','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','u1rbuLrjtKC','y29UDgvUDeHHC2G','vgHLignVBNzLCNnHDgLVBIb0zw1WBgf0zsb1CgDYywrLigzHAwXLzc4','CMvSzwfZzvnLC3nPB24','zMXHDe1HCa','CMvZB2X2zwruyxjNzxq','zw1PDfDHDgnOtgvHC2vfDMvUDa','y29TCgXLDgvvCgXVywq','rvHfq1vusu9o','y29UDgv4DfDPBMrVD1rVA2vUCW','tg9JywWGChjVy2vZC2vZlcboB2rLlwXVy2fSifDLyIbgzxrJAcWGyxzHAwXHyMXLifDLyIbtzwfYy2GSig1VzgvSlwHVC3rLzcb3zwiSigfUzcbWDwjSAxnOzwqGCMvTB3rLieHuvfaGtunqig1HEsbHy2nLC3mGBMv0D29YA3mGCMvHy2HHyMXLigzYB20GDgHPCYboB2rLlG','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jbtKDfx0LovKfmsuq','ChvZAa','C25HChnOB3q','DMfSDwvZ','C2HHmJu2','C3vTBwfYEq','qxr0ywnOBwvUDhm6cG','BgLZDenVBNzLCNnHDgLVBNm','DxbSB2fKuhjLzMXPz2H0u3rHDhvZ','y2XPzw50uMvXDwvZDeLK','DgvTCgXHDgvezwXLDgvK','C2fMzvbHCNnL','DxbSB2fKCW','DxrMoa','CMv0ywLUq29UDMvYC2f0Aw9UvgvTCgXHDgu','DgvTCgXHDgvjza','CNvUDgLTzq','ntKZnwz1sKvMyW','y29TCgXLDgLVBG','C2vZC2LVBKLK','D3jPDgu','q09orKXjq1q','B3DUCW','ChvIBgLZAfrLCM1PBMfStM90AwzPy2f0Aw9U','zMLUza','zMLSzvbHDgG','BwnWu2vYDMvYCW','DxbKyxrLq29UzMLNDxjHDgLVBG','Cgf0Ahm','zw4Tvvm','u1resu8','C291CMnLv29YA3nWywnLugf0Aa','y2XLyw51CeXVy2TZ','CMvXDwLYzuf0DgfJAg1LBNq','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','l3DVCMTZCgfJzq','CMvZCg9UC2vZvhjHBNnWB3j0','BwLTzvr5Cgu','BM93','DxbNCMfKzq','se9tvevex0nptLzfuLnbveLptL9bvfrbq0Hnru5ux0LovKfmsuq','Dg90ywXFyNL0zxm','DgvTCgXHDgu','vvbmt0fesu5h','DxnLCKLK','DgHLBG','l3rTCa','B3bLCMf0Aw9UCW','DgL0BgvtB3vYy2u','uKvuquLoruq','y3jLyxrLq29UDMvYC2f0Aw9U','reLsrunut1jzaa','ihrVic93B3jRC3bHy2uVB3v0Chv0igLUC3rLywqGB2yGCMvJCMvHDgLUzYbVCIbYzwDLBMvYyxrPBMCGAxqU','uvvpvefFrvHdruveruq','l3j1BG','ChjLCgfYzuzVCKrPC2fIBgu','DxbSB2fKC0j5uMvXDwvZDa','zMLSzv9JB3vUDa','zw1PDfDHDgnOrxzLBNq','r2vUzxjHDgvKigLTywDLCYbMCM9TihrOAxmGy29UDMvYC2f0Aw9UihjLBwfPBIbHDMfPBgfIBguGywnYB3nZigv4zwn1DgLVBNmGAw4GDgHLihjLywqTB25SEsa','zMLUze1LC3nHz2u','B3jPz2LU','zgLZywjSzvbYzxbHCMvK','q09orKLhvvjbveLptL9jra','C2f2zuf1Dg9TyxrPy1rPDgXL','A2LUza','DgvTCgXHDgveAxjLy3rVCNK','ndK1mZuWshjWquvM','se9tvevex0nptLzfuLnbveLptL9gsuXfx0LovKfmsuq','vvnfuG','y29UDMvYC2f0Aw9Uu3rVCMfNzuTLEq','yxr0ywnOBwvUDeLKCW','Ag9ZDfbVBgLJEvzLCNnPB24'];_0xed8b=function(){return _0x1af476;};return _0xed8b();}function publishedMcpServers(_0x3f74d7){const _0x26d9ad=_0x44e8b5;if(!Array[_0x26d9ad(0x10c)](_0x3f74d7))throw new Error(_0x26d9ad(0x17b));return _0x3f74d7[_0x26d9ad(0x20e)](_0x4e16a5=>{const _0x1510f0=_0x26d9ad;if(!record(_0x4e16a5))throw new Error(_0x1510f0(0x17b));const _0x288b5c=Object[_0x1510f0(0x233)](_0x4e16a5)[_0x1510f0(0x19c)]()[_0x1510f0(0xed)](',');if(_0x288b5c!==_0x1510f0(0x12e))throw new Error(_0x1510f0(0x17b));const _0x17ba1c=mcpRuntimeDescriptorSchema[_0x1510f0(0x183)](_0x4e16a5[_0x1510f0(0x1ce)]),_0x3dea5a=mcpInstallationConfigurationSchema[_0x1510f0(0x183)](_0x4e16a5[_0x1510f0(0x20f)]);if(typeof _0x4e16a5['id']!==_0x1510f0(0x116)||typeof _0x4e16a5[_0x1510f0(0x15a)]!==_0x1510f0(0x116)||typeof _0x4e16a5[_0x1510f0(0x18e)]!==_0x1510f0(0x116)||typeof _0x4e16a5[_0x1510f0(0x165)]!==_0x1510f0(0x116)||_0x4e16a5[_0x1510f0(0x1fb)]!==_0x1510f0(0xde)&&_0x4e16a5[_0x1510f0(0x1fb)]!==_0x1510f0(0x1ad)||_0x4e16a5[_0x1510f0(0xe5)]!==_0x17ba1c[_0x1510f0(0xe5)])throw new Error(_0x1510f0(0x17b));return{'id':_0x4e16a5['id'],'serverName':_0x4e16a5[_0x1510f0(0x15a)],'displayName':_0x4e16a5[_0x1510f0(0x18e)],'version':_0x4e16a5[_0x1510f0(0x165)],'origin':_0x4e16a5[_0x1510f0(0x1fb)],'transport':_0x17ba1c[_0x1510f0(0xe5)],'runtime':_0x17ba1c,'configuration':_0x3dea5a};});}function publishedTemplateSnapshot(_0x54de59){const _0x68fa44=_0x44e8b5;if(_0x54de59[_0x68fa44(0x19e)]===0x4*-0x62e+-0x1a6e+-0x1e5*-0x1b){const _0x1a7136=publishedTemplateFiles(_0x54de59[_0x68fa44(0x171)]);return{'schemaVersion':0x1,'directories':legacyPublishedTemplateDirectories(_0x1a7136),'entries':_0x1a7136};}if(_0x54de59[_0x68fa44(0x19e)]!==-0x1c28+0xe9b+0xd8f||typeof _0x54de59[_0x68fa44(0x1dd)]!==_0x68fa44(0x116)||!Array[_0x68fa44(0x10c)](_0x54de59[_0x68fa44(0x221)])||!Array[_0x68fa44(0x10c)](_0x54de59[_0x68fa44(0x25e)]))throw new Error(_0x68fa44(0x17b));validatePublishedSourceWorkspacePath(_0x54de59[_0x68fa44(0x1dd)]);const _0x1f910a=_0x54de59[_0x68fa44(0x221)][_0x68fa44(0x20e)](safePublishedTemplateRelativePath);if(new Set(_0x1f910a)[_0x68fa44(0x21a)]!==_0x1f910a[_0x68fa44(0x254)]||_0x1f910a[_0x68fa44(0x20c)](_0x68fa44(0x1aa))||_0x1f910a[_0x68fa44(0x20c)](_0x68fa44(0x11e)))throw new Error(_0x68fa44(0x17b));const _0x1b888c=_0x54de59[_0x68fa44(0x25e)][_0x68fa44(0x20e)](publishedTemplateEntry);if(new Set(_0x1b888c[_0x68fa44(0x20e)](_0x1c57b2=>_0x1c57b2[_0x68fa44(0x24d)]))[_0x68fa44(0x21a)]!==_0x1b888c[_0x68fa44(0x254)])throw new Error(_0x68fa44(0x17b));return{'schemaVersion':0x2,'sourceWorkspacePath':_0x54de59[_0x68fa44(0x1dd)],'directories':_0x1f910a,'entries':_0x1b888c};}function publishedTemplateEntry(_0x2a32fd){const _0x2ba4af=_0x44e8b5;if(!record(_0x2a32fd))throw new Error(_0x2ba4af(0x17b));if(_0x2a32fd[_0x2ba4af(0x1ff)]===_0x2ba4af(0x14d))return publishedTemplateFile(_0x2a32fd,!![]);if(_0x2a32fd[_0x2ba4af(0x1ff)]!==_0x2ba4af(0x13d)||typeof _0x2a32fd[_0x2ba4af(0x119)]!==_0x2ba4af(0x116)||_0x2a32fd[_0x2ba4af(0x119)][_0x2ba4af(0x254)]===-0x13d8+0x2199+-0xdc1||_0x2a32fd[_0x2ba4af(0x119)][_0x2ba4af(0x20c)]('\x00')||_0x2a32fd[_0x2ba4af(0x1a9)]!==_0x2ba4af(0x147)&&_0x2a32fd[_0x2ba4af(0x1a9)]!==_0x2ba4af(0xe7)||typeof _0x2a32fd[_0x2ba4af(0x1b8)]!==_0x2ba4af(0x116))throw new Error(_0x2ba4af(0x17b));const _0x488785=safePublishedTemplateRelativePath(_0x2a32fd[_0x2ba4af(0x24d)]),_0xa88812=safePublishedTemplateSize(_0x2a32fd[_0x2ba4af(0x21a)]),_0x301750=_0x2a32fd[_0x2ba4af(0x119)],_0xccf311=_0x2a32fd[_0x2ba4af(0x1a9)],_0x14784b=_0x2a32fd[_0x2ba4af(0x1b8)];if(_0xa88812!==Buffer[_0x2ba4af(0xd8)](_0x301750))throw new Error(_0x2ba4af(0x17b));if(_0xccf311===_0x2ba4af(0x147))safePublishedTemplateRelativePath(_0x14784b);else{if(!isAbsolute(_0x14784b)||!RUNTIME_LINK_ROOTS[_0x2ba4af(0xc8)](_0x3e63dc=>_0x14784b===_0x3e63dc||within(_0x3e63dc,_0x14784b)))throw new Error(_0x2ba4af(0x17b));}return{'kind':_0x2ba4af(0x13d),'relativePath':_0x488785,'size':_0xa88812,'linkTarget':_0x301750,'targetKind':_0xccf311,'resolvedTarget':_0x14784b};}function publishedTemplateFiles(_0x55f431){const _0x3a1550=_0x44e8b5;if(!Array[_0x3a1550(0x10c)](_0x55f431))throw new Error(_0x3a1550(0x17b));const _0x10b99a=new Set();return _0x55f431[_0x3a1550(0x20e)](_0x3aa7a9=>{const _0x3d6569=_0x3a1550,_0x5b766e=publishedTemplateFile(_0x3aa7a9);if(_0x10b99a[_0x3d6569(0x102)](_0x5b766e[_0x3d6569(0x24d)]))throw new Error(_0x3d6569(0x17b));return _0x10b99a[_0x3d6569(0x185)](_0x5b766e[_0x3d6569(0x24d)]),_0x5b766e;});}function _0x2016(_0x574b38,_0x352024){_0x574b38=_0x574b38-(0x24cc+-0x1540+0x3*-0x4f2);const _0x44571f=_0xed8b();let _0x264192=_0x44571f[_0x574b38];if(_0x2016['vjfYUN']===undefined){var _0x27ba87=function(_0x24ecaa){const _0x202210='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x212908='',_0x18d4c0='';for(let _0x140540=-0x9d*0x25+-0x1367+0x2a18,_0x235acf,_0x3932e1,_0x337b20=-0x892*0x2+-0x11b6+0x22da;_0x3932e1=_0x24ecaa['charAt'](_0x337b20++);~_0x3932e1&&(_0x235acf=_0x140540%(-0xb*0x2bf+0x25b1*0x1+-0x778)?_0x235acf*(0x2bc+-0x1c8a+0x5*0x536)+_0x3932e1:_0x3932e1,_0x140540++%(0x3*0x2bb+-0x1*0x1481+0xc54))?_0x212908+=String['fromCharCode'](-0x23db*0x1+0x717*0x3+0x1*0xf95&_0x235acf>>(-(0x31d+0x1eee+0x2209*-0x1)*_0x140540&-0x1*-0x1035+-0x1d5f+0xd30)):-0x3c*-0x34+0xe3e+-0x1a6e){_0x3932e1=_0x202210['indexOf'](_0x3932e1);}for(let _0x52a8ab=0x1237+-0x54*0x4a+0x611,_0x46cca5=_0x212908['length'];_0x52a8ab<_0x46cca5;_0x52a8ab++){_0x18d4c0+='%'+('00'+_0x212908['charCodeAt'](_0x52a8ab)['toString'](-0x21f5+0x2*0xf35+0x47*0xd))['slice'](-(-0x1*0x2129+0xd76*-0x2+0x3c17*0x1));}return decodeURIComponent(_0x18d4c0);};_0x2016['DoIliI']=_0x27ba87,_0x2016['jODafg']={},_0x2016['vjfYUN']=!![];}const _0x100b78=_0x44571f[-0x1c89+0x2*-0x676+0x2975];_0x2016['JeGACS']!==_0x100b78&&(_0x2016['jODafg']={},_0x2016['JeGACS']=_0x100b78);const _0x2d7690=_0x2016['jODafg'][_0x574b38];return _0x2d7690===undefined?(_0x264192=_0x2016['DoIliI'](_0x264192),_0x2016['jODafg'][_0x574b38]=_0x264192):_0x264192=_0x2d7690,_0x264192;}function publishedTemplateFile(_0x2e95b3,_0x5bf6a4=![]){const _0x4eb67e=_0x44e8b5;if(!record(_0x2e95b3)||_0x5bf6a4&&_0x2e95b3[_0x4eb67e(0x1ff)]!==_0x4eb67e(0x14d)||typeof _0x2e95b3[_0x4eb67e(0xc2)]!==_0x4eb67e(0x21d)||typeof _0x2e95b3[_0x4eb67e(0x1c2)]!==_0x4eb67e(0x116)||!/^[a-f0-9]{64}$/u[_0x4eb67e(0x107)](_0x2e95b3[_0x4eb67e(0x1c2)]))throw new Error(_0x4eb67e(0x17b));return{'kind':_0x4eb67e(0x14d),'relativePath':safePublishedTemplateRelativePath(_0x2e95b3[_0x4eb67e(0x24d)]),'size':safePublishedTemplateSize(_0x2e95b3[_0x4eb67e(0x21a)]),'executable':_0x2e95b3[_0x4eb67e(0xc2)],'sha256':_0x2e95b3[_0x4eb67e(0x1c2)]};}function safePublishedTemplateRelativePath(_0x11c0c1){const _0x466afc=_0x44e8b5;if(typeof _0x11c0c1!==_0x466afc(0x116)||_0x11c0c1[_0x466afc(0x254)]===-0xad3+-0x7a*0x4e+0x2fff||_0x11c0c1[_0x466afc(0x22f)]('/')||_0x11c0c1[_0x466afc(0x20c)]('\x5c')||_0x11c0c1[_0x466afc(0xc5)]('/')[_0x466afc(0xc8)](_0x3eeea6=>_0x3eeea6[_0x466afc(0x254)]===-0x1*-0x5e4+-0x187f*-0x1+-0xa21*0x3||_0x3eeea6==='.'||_0x3eeea6==='..'))throw new Error(_0x466afc(0x17b));return _0x11c0c1;}function safePublishedTemplateSize(_0x438b90){const _0x41691e=_0x44e8b5;if(!Number[_0x41691e(0x232)](_0x438b90)||_0x438b90<-0xc13*0x1+0xf*-0x8d+-0x89*-0x26)throw new Error(_0x41691e(0x17b));return _0x438b90;}function legacyPublishedTemplateDirectories(_0x36d205){const _0x296e0b=_0x44e8b5,_0x5b885a=new Set();for(const _0x5c4c14 of _0x36d205){const _0x49b9df=_0x5c4c14[_0x296e0b(0x24d)][_0x296e0b(0xc5)]('/');for(let _0x40c27b=-0x12a5+0xd67+0x4f*0x11;_0x40c27b<_0x49b9df[_0x296e0b(0x254)];_0x40c27b+=-0x340+-0x43*0x35+0x89*0x20)_0x5b885a[_0x296e0b(0x185)](_0x49b9df[_0x296e0b(0x20a)](-0x11c2+-0x16c8+0x1*0x288a,_0x40c27b)[_0x296e0b(0xed)]('/'));}return[..._0x5b885a][_0x296e0b(0x19c)]((_0x278874,_0x2cca67)=>_0x278874[_0x296e0b(0x23d)](_0x2cca67,_0x296e0b(0x1db)));}function publishedTemplateContentHash(_0x59adeb,_0xfce112,_0x2e6f3f){const _0x5be9a1=_0x44e8b5,_0xaa11a6=_0x2e6f3f===0x2367+0x254b+0x3*-0x183b?_0xfce112[_0x5be9a1(0x20e)](_0x1c303f=>{const _0x1ba26a=_0x5be9a1;if(_0x1c303f[_0x1ba26a(0x1ff)]!==_0x1ba26a(0x14d))throw new Error(_0x1ba26a(0x17b));return _0x1c303f[_0x1ba26a(0x24d)]+'\x00'+_0x1c303f[_0x1ba26a(0x21a)]+'\x00'+_0x1c303f[_0x1ba26a(0x1c2)];})[_0x5be9a1(0xed)]('\x0a'):[..._0x59adeb[_0x5be9a1(0x20e)](_0x98cd32=>_0x5be9a1(0x1f1)+_0x98cd32),..._0xfce112[_0x5be9a1(0x20e)](_0x1aeaa3=>_0x1aeaa3[_0x5be9a1(0x1ff)]===_0x5be9a1(0x14d)?_0x1aeaa3[_0x5be9a1(0x1ff)]+'\x00'+_0x1aeaa3[_0x5be9a1(0x24d)]+'\x00'+_0x1aeaa3[_0x5be9a1(0x21a)]+'\x00'+(_0x1aeaa3[_0x5be9a1(0xc2)]?0xe43+0x1424+0x77*-0x4a:-0xc90+-0x166a+0x22fa)+'\x00'+_0x1aeaa3[_0x5be9a1(0x1c2)]:_0x1aeaa3[_0x5be9a1(0x1ff)]+'\x00'+_0x1aeaa3[_0x5be9a1(0x24d)]+'\x00'+_0x1aeaa3[_0x5be9a1(0x21a)]+'\x00'+_0x1aeaa3[_0x5be9a1(0x119)]+'\x00'+_0x1aeaa3[_0x5be9a1(0x1a9)]+'\x00'+_0x1aeaa3[_0x5be9a1(0x1b8)])][_0x5be9a1(0xed)]('\x0a');return createHash(_0x5be9a1(0x1c2))[_0x5be9a1(0x160)](_0xaa11a6)[_0x5be9a1(0x14b)](_0x5be9a1(0x21f));}function validatePublishedSourceWorkspacePath(_0x334d72){const _0x305992=_0x44e8b5;if(!isAbsolute(_0x334d72)||resolve(_0x334d72)!==_0x334d72||_0x334d72==='/'||RESERVED_SANDBOX_ROOTS[_0x305992(0xc8)](_0x5ebee2=>_0x334d72===_0x5ebee2||within(_0x5ebee2,_0x334d72)||within(_0x334d72,_0x5ebee2)))throw new Error(_0x305992(0x17b));}function within(_0x3a4b6f,_0x1b9b12){const _0x4dcd62=_0x44e8b5,_0x4d8aa9=relative(_0x3a4b6f,_0x1b9b12);return _0x4d8aa9[_0x4dcd62(0x254)]>-0x14db+0x1*0xf21+0x5ba*0x1&&_0x4d8aa9!=='..'&&!_0x4d8aa9[_0x4dcd62(0x22f)]('..'+sep);}function resolveMcpServers(_0x3d9a6c,_0x154225){const _0x5558c5=_0x44e8b5,_0x25a567=_0x139b93=>{const _0x5d868e=_0x2016,_0x1f17b0={};for(const [_0x5e63f5,_0x4d11f0]of Object[_0x5d868e(0x25e)](_0x139b93??{})){const _0xda9de4=_0x154225[_0x4d11f0[_0x5d868e(0x16c)]];if(_0xda9de4===undefined)throw new Error(_0x5d868e(0x178));_0x1f17b0[_0x5e63f5]=_0xda9de4;}return _0x1f17b0;};return _0x3d9a6c[_0x5558c5(0x1d8)][_0x5558c5(0x1b7)](_0x11bf46=>{const _0x545a2f=_0x5558c5;if(_0x11bf46[_0x545a2f(0x1ce)][_0x545a2f(0xe5)]===_0x545a2f(0x12a)){if(_0x3d9a6c[_0x545a2f(0xf3)][_0x545a2f(0x1a3)]!==_0x545a2f(0x108))return[];return[{'name':_0x11bf46[_0x545a2f(0x15a)],'lifecycle':_0x545a2f(0x1bb),'transport':_0x545a2f(0x12a),'url':_0x11bf46[_0x545a2f(0x1ce)][_0x545a2f(0xc3)],'headers':{..._0x25a567(_0x11bf46[_0x545a2f(0x1ce)][_0x545a2f(0xbb)]),..._0x25a567(_0x11bf46[_0x545a2f(0x20f)][_0x545a2f(0xbb)])}}];}return[{'name':_0x11bf46[_0x545a2f(0x15a)],'lifecycle':_0x545a2f(0x1bb),'transport':_0x545a2f(0x1dc),'command':_0x11bf46[_0x545a2f(0x1ce)][_0x545a2f(0xce)],'args':[..._0x11bf46[_0x545a2f(0x1ce)][_0x545a2f(0x223)],..._0x11bf46[_0x545a2f(0x20f)][_0x545a2f(0xf0)]??[]],'environment':{..._0x25a567(_0x11bf46[_0x545a2f(0x1ce)][_0x545a2f(0xeb)]),..._0x25a567(_0x11bf46[_0x545a2f(0x20f)][_0x545a2f(0xeb)])}}];});}function hostedConversationSummary(_0x14aac9,_0x544428){const _0x554bee=_0x44e8b5;return hostedConversationSummarySchema[_0x554bee(0x183)]({'id':_0x14aac9['id'],'nodeId':_0x14aac9[_0x554bee(0x17c)],'sessionId':_0x14aac9[_0x554bee(0x1d1)],'templateId':_0x14aac9[_0x554bee(0x1cd)],'templateName':_0x14aac9[_0x554bee(0xd1)],'activeVersionId':_0x14aac9[_0x554bee(0x23a)],'title':_0x14aac9[_0x554bee(0x163)],'pinnedAt':_0x14aac9[_0x554bee(0x229)],'status':_0x14aac9[_0x554bee(0x152)],'modelId':_0x14aac9[_0x554bee(0x111)],'createdAt':_0x14aac9[_0x554bee(0x129)],'updatedAt':_0x14aac9[_0x554bee(0x167)],'lastActivityAt':_0x14aac9[_0x554bee(0x137)],..._0x544428===undefined?{}:{'activity':_0x544428}});}function templateSummary(_0x29f9d4,_0x3ecd3d){const _0x1034dc=_0x44e8b5;return conversationTemplateSummarySchema[_0x1034dc(0x183)]({'id':_0x29f9d4[_0x1034dc(0x1cd)],'nodeId':_0x29f9d4[_0x1034dc(0x17c)],'name':_0x29f9d4[_0x1034dc(0xd1)],'description':_0x3ecd3d[_0x1034dc(0x110)],'status':_0x29f9d4[_0x1034dc(0x1c8)]?_0x1034dc(0x117):_0x1034dc(0x15e),'currentVersionId':_0x29f9d4[_0x1034dc(0x23a)],'available':!_0x29f9d4[_0x1034dc(0x1c8)],'createdAt':_0x29f9d4[_0x1034dc(0x129)],'updatedAt':_0x3ecd3d[_0x1034dc(0x167)]});}function modelSummary(_0x5c2e91,_0x3740e7){const _0x254767=_0x44e8b5;return{'id':_0x5c2e91['id'],'name':_0x5c2e91[_0x254767(0x26c)],'protocol':_0x5c2e91[_0x254767(0x135)],'baseUrl':_0x5c2e91[_0x254767(0x130)],'modelId':_0x5c2e91[_0x254767(0x111)],'contextWindowTokens':_0x5c2e91[_0x254767(0x1bc)],'maxOutputTokens':_0x5c2e91[_0x254767(0x139)],'inputCapabilities':_0x5c2e91[_0x254767(0xf5)],'outputCapabilities':_0x5c2e91[_0x254767(0x161)],'reasoningEfforts':_0x5c2e91[_0x254767(0x23e)],'hostedWebSearch':_0x5c2e91[_0x254767(0x113)],..._0x5c2e91[_0x254767(0x1e2)]===undefined?{}:{'responsesTransport':_0x5c2e91[_0x254767(0x1e2)]},'responsesPreviousResponseId':_0x5c2e91[_0x254767(0xf8)],'enabled':_0x5c2e91[_0x254767(0x180)],'sortOrder':_0x3740e7,'apiKeyConfigured':!![]};}function systemInstruction(_0x527aec,_0x119ec5){const _0x101516=_0x44e8b5,_0x3a4ae4=_0x527aec[_0x101516(0xf3)],_0x497a63=_0x3a4ae4[_0x101516(0x1a3)]===_0x101516(0x195)?_0x101516(0xc0):_0x101516(0x1bd);return[_0x101516(0xda),_0x101516(0x1a0),_0x101516(0x258),..._0x119ec5===undefined?[]:[_0x101516(0x1f9)+_0x119ec5+_0x101516(0x21c),_0x101516(0x11a)+_0x119ec5+_0x101516(0x121)+_0x119ec5+_0x101516(0x1f2)],..._0x527aec[_0x101516(0x1dd)]===undefined?[]:[_0x101516(0x24f)+_0x527aec[_0x101516(0x1dd)]+_0x101516(0x16a)+join(_0x527aec[_0x101516(0x1dd)],_0x101516(0x1aa))+_0x101516(0x156)+join(_0x527aec[_0x101516(0x1dd)],_0x101516(0x11e))+_0x101516(0xee)],_0x101516(0x18f),_0x497a63][_0x101516(0xed)]('\x0a');}function attachmentPrompt(_0x16edee,_0x260ff3){const _0x54ad6c=_0x44e8b5;if(_0x260ff3[_0x54ad6c(0x254)]===0x245+0x22d*0x3+-0x8cc)return _0x16edee;const _0x2badfb=_0x260ff3[_0x54ad6c(0x20e)](_0x27ffbc=>_0x54ad6c(0x257)+_0x27ffbc[_0x54ad6c(0x24d)])[_0x54ad6c(0xed)]('\x0a');return''+_0x16edee+(_0x16edee[_0x54ad6c(0x253)]()[_0x54ad6c(0x254)]===-0x1bd5+-0x1bb0+0x3785?'':'\x0a\x0a')+_0x54ad6c(0x1c4)+_0x2badfb;}function automaticHostedConversationTitle(_0x4f3b1a){const _0x3bdd7c=_0x44e8b5;if(_0x4f3b1a===undefined)return undefined;const _0xb5ba49=sessionTitleFromFirstMessage(_0x4f3b1a);if(_0xb5ba49[_0x3bdd7c(0x254)]===0x1d*0x143+-0x2eb+0x10d6*-0x2||/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x3bdd7c(0x107)](_0xb5ba49))return undefined;return _0xb5ba49;}function runFromMessage(_0x582bbf){const _0x4e38a1=_0x44e8b5;return{'id':_0x582bbf[_0x4e38a1(0x123)],'status':_0x582bbf[_0x4e38a1(0x152)],'startedAt':_0x582bbf[_0x4e38a1(0x129)],'completedAt':_0x582bbf[_0x4e38a1(0x152)]===_0x4e38a1(0x138)?null:_0x582bbf[_0x4e38a1(0x167)]};}function runInterruptionKey(_0x400f83,_0x496b26){return _0x400f83+'\x00'+_0x496b26;}function uploadProjection(_0x731d5f){const _0x26d2eb=_0x44e8b5;return{'uploadId':_0x731d5f[_0x26d2eb(0x1a2)],'conversationId':_0x731d5f[_0x26d2eb(0x153)],'name':_0x731d5f[_0x26d2eb(0x26c)],'mimeType':_0x731d5f[_0x26d2eb(0x1e3)],'receivedBytes':_0x731d5f[_0x26d2eb(0xba)],'size':_0x731d5f[_0x26d2eb(0x21a)],'status':_0x731d5f[_0x26d2eb(0x152)],..._0x731d5f[_0x26d2eb(0x198)]===undefined?{}:{'file':_0x731d5f[_0x26d2eb(0x198)]}};}async function assertRegularFile(_0x805337,_0x2fd8f9){const _0x5a7890=_0x44e8b5,_0x2bc6c2=await lstat(_0x805337)[_0x5a7890(0x196)](()=>{const _0x417962=_0x5a7890;throw new Error(_0x417962(0x202));});if(!_0x2bc6c2[_0x5a7890(0x184)]()||_0x2bc6c2[_0x5a7890(0x125)]()||_0x2bc6c2[_0x5a7890(0x12d)]!==0xc20+-0xb95+-0x8a||_0x2bc6c2[_0x5a7890(0x21a)]!==_0x2fd8f9)throw new Error(_0x5a7890(0x202));}async function assertUploadTemporaryFile(_0x157b04,_0x258911){const _0x1c85ca=_0x44e8b5,_0x3ec79f=await lstat(_0x157b04)[_0x1c85ca(0x196)](()=>{const _0x422ef0=_0x1c85ca;throw new Error(_0x422ef0(0x26d));});if(!_0x3ec79f[_0x1c85ca(0x184)]()||_0x3ec79f[_0x1c85ca(0x125)]()||_0x3ec79f[_0x1c85ca(0x12d)]!==-0x6*0x3d6+0xb2*0x2+-0x1*-0x15a1||_0x3ec79f[_0x1c85ca(0x21a)]!==_0x258911)throw new Error(_0x1c85ca(0x26d));}function record(_0x4bfd7a){const _0x34e907=_0x44e8b5;return typeof _0x4bfd7a===_0x34e907(0x236)&&_0x4bfd7a!==null&&!Array[_0x34e907(0x10c)](_0x4bfd7a);}
2
+ const _0x2afa9a=_0xef59;(function(_0x5028a3,_0x42b783){const _0x1563a6=_0xef59,_0x3ad65d=_0x5028a3();while(!![]){try{const _0x4bbbd7=parseInt(_0x1563a6(0x11e))/(0x11*-0xf7+-0x8e*-0x14+0x550)*(-parseInt(_0x1563a6(0x25e))/(0x1*-0x756+0x30*-0x26+0xe78))+parseInt(_0x1563a6(0xc9))/(-0x1622+-0xdb4+0x23d9)*(-parseInt(_0x1563a6(0x127))/(0x1f*0xd+0x68+-0x1f7))+parseInt(_0x1563a6(0x1f1))/(-0x93*0xb+0x9ac+-0x356)+-parseInt(_0x1563a6(0x112))/(0x13a0+-0x7*0x396+-0x580*-0x1)+-parseInt(_0x1563a6(0x1d3))/(-0x2356+-0x1*0x15fb+-0x2de*-0x14)+-parseInt(_0x1563a6(0x18c))/(-0x1d75+-0x1a86+0x1*0x3803)*(-parseInt(_0x1563a6(0x22c))/(-0xa8b+0x61f*0x1+0x475))+parseInt(_0x1563a6(0x236))/(0x2*0x9f9+0x14e7*0x1+-0x28cf)*(parseInt(_0x1563a6(0x25f))/(0x946+-0x1*-0x1d09+-0x3e*0x9e));if(_0x4bbbd7===_0x42b783)break;else _0x3ad65d['push'](_0x3ad65d['shift']());}catch(_0x217d3b){_0x3ad65d['push'](_0x3ad65d['shift']());}}}(_0x1aae,0xad021*-0x1+-0x6b60f+-0xd29d*-0x1c));import{createHash,randomUUID}from'node:crypto';import{lstat,mkdir,open,readFile,rename,rm,utimes}from'node:fs/promises';import{isAbsolute,join,relative,resolve,sep}from'node:path';import{conversationTemplateDraftSchema,conversationTemplateSummarySchema,hostedConversationConfigUpdateInputSchema,hostedConversationCreateInputSchema,hostedConversationDeleteResultSchema,hostedConversationFileDeleteInputSchema,hostedConversationFileDeleteResultSchema,hostedConversationFileReadInputSchema,hostedConversationFileReadResultSchema,hostedConversationFilesSchema,hostedConversationIdInputSchema,hostedConversationImageReadInputSchema,hostedConversationListInputSchema,hostedConversationListPageSchema,hostedConversationMessageInputSchema,hostedConversationMetadataUpdateInputSchema,hostedConversationSnapshotSchema,hostedConversationSummarySchema,hostedConversationUnwatchInputSchema,hostedConversationUploadChunkInputSchema,hostedConversationUploadControlInputSchema,hostedConversationUploadCreateInputSchema,hostedConversationUploadPreflightInputSchema,hostedConversationUploadPreflightResultSchema,hostedConversationUploadSchema,hostedConversationWatchInputSchema,marAgentRuntimeModelConfigurationSchema,mcpInstallationConfigurationSchema,mcpRuntimeDescriptorSchema}from'@myagentroam/protocol';import{hostedConversationGeneratedImagesDisplayDirectory,hostedConversationImageRunId,marAgentGeneratedImagesDirectory}from'../runner/mar-agent/generated-images.js';import{sessionTitleFromFirstMessage}from'../util/node-operation-parsers.js';import{safeErrorCode}from'../util/safe-error.js';import{SessionWatchSlotCoordinator}from'./session-watch-slot-coordinator.js';const HOST_POLICY_VERSION=0x60d*0x4+-0x28c+-0x15a7,MAX_FILE_READ_BYTES=(-0x26b0+-0x18f7+0x41a7)*(-0x3a0*-0x9+-0x5*-0x2fb+-0x2b87),WATCH_TTL_MS=0x3716+0x15f9+-0x7f*-0xc7,RUNTIME_LINK_ROOTS=[_0x2afa9a(0x1ae),_0x2afa9a(0x205),_0x2afa9a(0x231),_0x2afa9a(0x1b8),_0x2afa9a(0x275)],RESERVED_SANDBOX_ROOTS=[_0x2afa9a(0xfa),_0x2afa9a(0x162),_0x2afa9a(0xdc),_0x2afa9a(0x1ae),_0x2afa9a(0x205),_0x2afa9a(0x231),_0x2afa9a(0x1b8),_0x2afa9a(0x275),_0x2afa9a(0x131),_0x2afa9a(0xdb),_0x2afa9a(0x1b0),_0x2afa9a(0x1a6)];export class HostedConversationNodeService{[_0x2afa9a(0xda)];[_0x2afa9a(0xfb)];['id'];[_0x2afa9a(0x145)]=new Map();[_0x2afa9a(0x14c)]=new Map();[_0x2afa9a(0x10d)]=new Map();[_0x2afa9a(0x1fe)]=new Map();[_0x2afa9a(0xfc)]=new Map();[_0x2afa9a(0x21f)]=new Set();[_0x2afa9a(0x1c9)]=new Map();[_0x2afa9a(0x215)]=new Map();[_0x2afa9a(0x255)]=new Set();[_0x2afa9a(0x24b)]=new Map();[_0x2afa9a(0xcc)]=new Set();[_0x2afa9a(0x147)];[_0x2afa9a(0xf7)]=![];[_0x2afa9a(0x1d7)]=0x5d4*0x2+-0x1*0x6b7+-0x4f1;[_0x2afa9a(0x10c)]=-0x7d3+-0x1ad4+0x22a7*0x1;constructor(_0x5a869a){const _0x4271f4=_0x2afa9a;this[_0x4271f4(0xda)]=_0x5a869a,this[_0x4271f4(0xfb)]=_0x5a869a[_0x4271f4(0xfb)]??Date[_0x4271f4(0xfb)],this['id']=_0x5a869a['id']??randomUUID,this[_0x4271f4(0x147)]=_0x5a869a[_0x4271f4(0x147)]??new SessionWatchSlotCoordinator();}[_0x2afa9a(0x1e5)](){const _0x57b872=_0x2afa9a;return{'conversation.hosted.list':_0x324a3d=>this[_0x57b872(0x27c)](_0x324a3d),'conversation.hosted.create':_0x30b350=>this[_0x57b872(0x27a)](_0x30b350),'conversation.hosted.get':_0x1e2782=>this[_0x57b872(0x19e)](_0x1e2782),'conversation.hosted.watch':_0x50d1f2=>this[_0x57b872(0xe7)](_0x50d1f2),'conversation.hosted.unwatch':_0x54416a=>this[_0x57b872(0x183)](_0x54416a),'conversation.hosted.message':_0x423118=>this[_0x57b872(0x18f)](_0x423118),'conversation.hosted.interrupt':_0x4681f5=>this[_0x57b872(0x201)](_0x4681f5),'conversation.hosted.config.update':_0x2b4f2e=>this[_0x57b872(0xc2)](_0x2b4f2e),'conversation.hosted.metadata.update':_0x24695b=>this[_0x57b872(0x234)](_0x24695b),'conversation.hosted.image.read':_0x2313b9=>this[_0x57b872(0x249)](_0x2313b9),'conversation.hosted.files.list':_0x1bcb0d=>this[_0x57b872(0x186)](_0x1bcb0d),'conversation.hosted.file.read':_0x57571a=>this[_0x57b872(0x1da)](_0x57571a),'conversation.hosted.file.delete':_0x5dc303=>this[_0x57b872(0x1ce)](_0x5dc303),'conversation.hosted.files.upload.preflight':_0x136567=>this[_0x57b872(0x122)](_0x136567),'conversation.hosted.files.upload.create':_0x4f2bae=>this[_0x57b872(0x277)](_0x4f2bae),'conversation.hosted.files.upload.chunk':_0x475449=>this[_0x57b872(0x17d)](_0x475449),'conversation.hosted.files.upload.status':_0xdb06ad=>this[_0x57b872(0x15b)](_0xdb06ad),'conversation.hosted.files.upload.complete':_0x2ca5db=>this[_0x57b872(0x130)](_0x2ca5db),'conversation.hosted.files.upload.cancel':_0x4c6b25=>this[_0x57b872(0x1cb)](_0x4c6b25),'conversation.hosted.delete':_0x16ade7=>this[_0x57b872(0x1ac)](_0x16ade7)};}[_0x2afa9a(0x1ca)](){const _0x3e14ca=_0x2afa9a;if(this[_0x3e14ca(0xf7)]||this[_0x3e14ca(0x14c)][_0x3e14ca(0x111)]>0xb9*-0x1+0x81*-0x9+0x542||this[_0x3e14ca(0x10d)][_0x3e14ca(0x111)]>-0x27b*-0x5+0x1a5*0x8+-0x198f||this[_0x3e14ca(0x1fe)][_0x3e14ca(0x111)]>0x132+-0x2b*0xce+0x2168)return undefined;return this[_0x3e14ca(0xf7)]=!![],()=>{const _0x4fd893=_0x3e14ca;this[_0x4fd893(0xf7)]=![];};}[_0x2afa9a(0x27c)](_0x1c8e88){const _0x55e810=_0x2afa9a,_0x492005=hostedRequest(_0x1c8e88),_0x472c18=hostedConversationListInputSchema[_0x55e810(0x221)](_0x492005[_0x55e810(0xf8)]),_0x5b17f4=this[_0x55e810(0xda)][_0x55e810(0x20c)][_0x55e810(0x23d)]({'userId':_0x492005[_0x55e810(0x14a)],'limit':_0x472c18[_0x55e810(0x22b)],..._0x472c18[_0x55e810(0x26f)]===undefined?{}:{'cursor':_0x472c18[_0x55e810(0x26f)]}});return hostedConversationListPageSchema[_0x55e810(0x221)]({..._0x5b17f4,'items':_0x5b17f4[_0x55e810(0xd4)][_0x55e810(0x1bc)](_0x4c19de=>({..._0x4c19de,'activity':this[_0x55e810(0x120)](_0x4c19de['id'])}))});}[_0x2afa9a(0x27a)](_0x179986){const _0x425c33=_0x2afa9a;if(this[_0x425c33(0xf7)])return Promise[_0x425c33(0x1e6)](new Error(_0x425c33(0x271)));const _0x3ff94f=hostedRequest(_0x179986),_0x849b01=hostedConversationCreateInputSchema[_0x425c33(0x221)](_0x3ff94f[_0x425c33(0xf8)]),_0x17b073=conversationTemplateSummarySchema[_0x425c33(0x221)](_0x3ff94f[_0x425c33(0x118)]),_0x22a84f=runtimeModels(_0x3ff94f[_0x425c33(0x124)]);if(_0x17b073['id']!==_0x849b01[_0x425c33(0x270)]||_0x17b073[_0x425c33(0x104)]!==this[_0x425c33(0xda)][_0x425c33(0x104)]()||!_0x17b073[_0x425c33(0x153)]||_0x17b073[_0x425c33(0xc7)]!==_0x425c33(0x182)||_0x17b073[_0x425c33(0x263)]===null)throw new Error(_0x425c33(0x23e));const _0x528036=_0x3ff94f[_0x425c33(0x14a)]+'\x00'+_0x849b01[_0x425c33(0x274)],_0x1532ad=this[_0x425c33(0x145)][_0x425c33(0x19e)](_0x528036);if(_0x1532ad!==undefined)return _0x1532ad;const _0x10be23=this[_0x425c33(0xda)][_0x425c33(0x20c)][_0x425c33(0x276)](_0x3ff94f[_0x425c33(0x14a)],_0x849b01[_0x425c33(0x274)]);if(_0x10be23!==undefined)return this[_0x425c33(0x18d)](_0x3ff94f[_0x425c33(0x14a)],_0x10be23['id'],_0x22a84f);const _0x34dbb1=this[_0x425c33(0x1f5)](_0x3ff94f[_0x425c33(0x14a)],_0x849b01[_0x425c33(0x274)],_0x17b073,_0x22a84f,_0x3ff94f[_0x425c33(0x223)]);return this[_0x425c33(0x145)][_0x425c33(0x238)](_0x528036,_0x34dbb1),void _0x34dbb1[_0x425c33(0x1ee)](()=>this[_0x425c33(0x145)][_0x425c33(0x1ac)](_0x528036))[_0x425c33(0x229)](()=>undefined),_0x34dbb1;}async[_0x2afa9a(0x1f5)](_0x2fd407,_0xa7555f,_0x352c8a,_0x442657,_0x5485ae){const _0x522ea2=_0x2afa9a;await this[_0x522ea2(0xda)][_0x522ea2(0x1ba)]?.();const _0x130f36=await this[_0x522ea2(0x105)](_0x352c8a[_0x522ea2(0x263)],_0x352c8a['id']),_0x5e9e74=selectModel(_0x130f36,_0x442657,_0x130f36[_0x522ea2(0x1a5)][_0x522ea2(0x10b)]),_0x446d14=this['id'](),_0x54c841=await this[_0x522ea2(0xda)][_0x522ea2(0x20c)][_0x522ea2(0x1df)](_0x2fd407,_0x446d14),_0x24c8ef=this[_0x522ea2(0x261)](_0x54c841[_0x522ea2(0x13f)],_0x130f36),_0x123b63=this[_0x522ea2(0xf5)](_0x54c841[_0x522ea2(0x13f)],_0x130f36);let _0x3d81ca;try{const _0x1369eb=await this[_0x522ea2(0xda)][_0x522ea2(0x245)][_0x522ea2(0x1cc)]({'conversationId':_0x446d14,'homeDirectory':_0x54c841[_0x522ea2(0x13f)][_0x522ea2(0xd1)],'workspaceDirectory':_0x130f36[_0x522ea2(0x1c4)],'systemInstruction':systemInstruction(_0x130f36),'defaultModelId':_0x5e9e74['id'],'models':networkModels(allowedModels(_0x130f36,_0x442657),_0x130f36[_0x522ea2(0x11c)][_0x522ea2(0x256)]),..._0x5485ae===undefined?{}:{'runtimeScopeId':_0x5485ae},'pathMounts':_0x24c8ef,'processExecutor':_0x123b63});_0x3d81ca=_0x1369eb[_0x522ea2(0x161)];const _0x4776ab=this[_0x522ea2(0xfb)](),_0x214dbe={'id':_0x446d14,'nodeId':this[_0x522ea2(0xda)][_0x522ea2(0x104)](),'sessionId':_0x3d81ca,'templateId':_0x352c8a['id'],'templateName':_0x352c8a[_0x522ea2(0x240)],'activeVersionId':_0x130f36['id'],'title':_0x352c8a[_0x522ea2(0x240)],'titleSource':_0x522ea2(0x1d1),'pinnedAt':null,'status':_0x522ea2(0x182),'modelId':_0x5e9e74['id'],'createdAt':_0x4776ab,'updatedAt':_0x4776ab,'lastActivityAt':_0x4776ab,'userStorageKey':_0x54c841[_0x522ea2(0x125)],'conversationStorageKey':_0x54c841[_0x522ea2(0x24e)],'clientRequestId':_0xa7555f,'templateDeleted':![],'quota':{'usedBytes':0x0,'maxBytes':_0x130f36[_0x522ea2(0x11c)][_0x522ea2(0x265)][_0x522ea2(0x23c)]}},_0x35ae5c=await this[_0x522ea2(0xda)][_0x522ea2(0x20c)][_0x522ea2(0x1f5)](_0x214dbe);return _0x35ae5c['id']!==_0x446d14&&(await this[_0x522ea2(0xda)][_0x522ea2(0x245)][_0x522ea2(0x206)]({'conversationId':_0x446d14,'sessionId':_0x3d81ca,'homeDirectory':_0x54c841[_0x522ea2(0x13f)][_0x522ea2(0xd1)]})[_0x522ea2(0x229)](()=>undefined),await rm(_0x54c841[_0x522ea2(0x13f)][_0x522ea2(0x13e)],{'recursive':!![],'force':!![]})),this[_0x522ea2(0x18d)](_0x2fd407,_0x35ae5c['id'],_0x442657);}catch(_0x42e80d){if(_0x3d81ca!==undefined)await this[_0x522ea2(0xda)][_0x522ea2(0x245)][_0x522ea2(0x206)]({'conversationId':_0x446d14,'sessionId':_0x3d81ca,'homeDirectory':_0x54c841[_0x522ea2(0x13f)][_0x522ea2(0xd1)]})[_0x522ea2(0x229)](()=>undefined);await rm(_0x54c841[_0x522ea2(0x13f)][_0x522ea2(0x13e)],{'recursive':!![],'force':!![]})[_0x522ea2(0x229)](()=>undefined);throw _0x42e80d;}}async[_0x2afa9a(0x19e)](_0x19aca1){const _0x467634=_0x2afa9a,_0x118f79=hostedRequest(_0x19aca1),_0x470bd8=hostedConversationIdInputSchema[_0x467634(0x221)](_0x118f79[_0x467634(0xf8)]);return this[_0x467634(0x18d)](_0x118f79[_0x467634(0x14a)],_0x470bd8[_0x467634(0x21d)],runtimeModels(_0x118f79[_0x467634(0x124)]),_0x118f79[_0x467634(0xd6)]);}async[_0x2afa9a(0x18d)](_0x3829fb,_0x2bc879,_0x18bc0e,_0x121038=![]){const _0x1d4608=_0x2afa9a;let _0x17be9f=this[_0x1d4608(0xda)][_0x1d4608(0x20c)][_0x1d4608(0x11b)](_0x3829fb,_0x2bc879);if(_0x121038)_0x17be9f=await this[_0x1d4608(0xda)][_0x1d4608(0x20c)][_0x1d4608(0x1c0)](_0x3829fb,_0x2bc879,this[_0x1d4608(0xfb)]());const _0x1fda02=await this[_0x1d4608(0x105)](_0x17be9f[_0x1d4608(0x230)],_0x17be9f[_0x1d4608(0x270)]),_0x20d602=networkModels(allowedModels(_0x1fda02,_0x18bc0e),_0x1fda02[_0x1d4608(0x11c)][_0x1d4608(0x256)]),_0x4e3962=this[_0x1d4608(0xda)][_0x1d4608(0x20c)][_0x1d4608(0x12d)](_0x3829fb,_0x17be9f['id']),_0x313fc9=await this[_0x1d4608(0xda)][_0x1d4608(0x245)][_0x1d4608(0x27f)]({'conversationId':_0x17be9f['id'],'sessionId':_0x17be9f[_0x1d4608(0x161)],'homeDirectory':_0x4e3962[_0x1d4608(0xd1)],'modelId':_0x17be9f[_0x1d4608(0xfe)]});return hostedConversationSnapshotSchema[_0x1d4608(0x221)]({'conversation':this[_0x1d4608(0x1cd)](_0x17be9f),'template':templateSummary(_0x17be9f,_0x1fda02[_0x1d4608(0x11c)]),'run':this[_0x1d4608(0x10d)][_0x1d4608(0x19e)](_0x17be9f['id'])?.[_0x1d4608(0x1dc)]??null,'turns':_0x313fc9,'files':this[_0x1d4608(0xda)][_0x1d4608(0x20c)][_0x1d4608(0x186)](_0x3829fb,_0x17be9f['id']),'models':_0x20d602[_0x1d4608(0x1bc)](modelSummary),'error':null,'snapshotSequence':0x0});}async[_0x2afa9a(0xe7)](_0x5bef1f){const _0x9eb1eb=_0x2afa9a,_0x30750e=hostedRequest(_0x5bef1f),_0x1574fb=hostedConversationWatchInputSchema[_0x9eb1eb(0x221)](_0x30750e[_0x9eb1eb(0xf8)]),_0x48cbcc=this[_0x9eb1eb(0xda)][_0x9eb1eb(0x20c)][_0x9eb1eb(0x11b)](_0x30750e[_0x9eb1eb(0x14a)],_0x1574fb[_0x9eb1eb(0x21d)]);if(this[_0x9eb1eb(0xcc)][_0x9eb1eb(0xf3)](_0x48cbcc['id']))throw new Error(_0x9eb1eb(0x117));const _0x327e36=requireWatchSessionHash(_0x30750e[_0x9eb1eb(0x1ef)]),_0x4c8337=watchOwnerKey(_0x327e36,_0x1574fb[_0x9eb1eb(0x18b)]);if(_0x1574fb[_0x9eb1eb(0x190)]===_0x9eb1eb(0x247)){const _0x2e7992=this[_0x9eb1eb(0x24b)][_0x9eb1eb(0x19e)](_0x4c8337);if(_0x2e7992===undefined||!this[_0x9eb1eb(0x147)][_0x9eb1eb(0x253)](_0x4c8337,_0x2e7992[_0x9eb1eb(0x18a)])||_0x2e7992[_0x9eb1eb(0x235)]!==_0x1574fb[_0x9eb1eb(0x235)]||_0x2e7992[_0x9eb1eb(0x21d)]!==_0x1574fb[_0x9eb1eb(0x21d)]||_0x2e7992[_0x9eb1eb(0x14a)]!==_0x30750e[_0x9eb1eb(0x14a)]||_0x2e7992[_0x9eb1eb(0x1c7)]<=Date[_0x9eb1eb(0xfb)]()){this[_0x9eb1eb(0x262)](_0x4c8337);throw new Error(_0x9eb1eb(0x160));}return _0x2e7992[_0x9eb1eb(0x1c7)]=Date[_0x9eb1eb(0xfb)]()+WATCH_TTL_MS,clearTimeout(_0x2e7992[_0x9eb1eb(0x103)]),_0x2e7992[_0x9eb1eb(0x103)]=this[_0x9eb1eb(0x136)](_0x4c8337),this[_0x9eb1eb(0x132)](_0x2e7992);}const _0x35e9ae=runtimeModels(_0x30750e[_0x9eb1eb(0x124)]),_0x470d92=this[_0x9eb1eb(0x24b)][_0x9eb1eb(0x19e)](_0x4c8337);if(_0x470d92!==undefined&&this[_0x9eb1eb(0x147)][_0x9eb1eb(0x253)](_0x4c8337,_0x470d92[_0x9eb1eb(0x18a)])&&_0x470d92[_0x9eb1eb(0x235)]===_0x1574fb[_0x9eb1eb(0x235)]&&_0x470d92[_0x9eb1eb(0x21d)]===_0x1574fb[_0x9eb1eb(0x21d)]&&_0x470d92[_0x9eb1eb(0x14a)]===_0x30750e[_0x9eb1eb(0x14a)]&&_0x470d92[_0x9eb1eb(0x1c7)]>Date[_0x9eb1eb(0xfb)]())return _0x470d92[_0x9eb1eb(0x1c7)]=Date[_0x9eb1eb(0xfb)]()+WATCH_TTL_MS,clearTimeout(_0x470d92[_0x9eb1eb(0x103)]),_0x470d92[_0x9eb1eb(0x103)]=this[_0x9eb1eb(0x136)](_0x4c8337),this[_0x9eb1eb(0x132)](_0x470d92);this[_0x9eb1eb(0x262)](_0x4c8337);const _0x353f44=this[_0x9eb1eb(0x147)][_0x9eb1eb(0x101)](_0x4c8337,_0x9eb1eb(0x180),()=>this[_0x9eb1eb(0x262)](_0x4c8337)),_0x2cbe78={'ownerKey':_0x4c8337,'slotToken':_0x353f44,'sessionHash':_0x327e36,'workbenchConnectionId':_0x1574fb[_0x9eb1eb(0x18b)],'watchId':_0x1574fb[_0x9eb1eb(0x235)],'conversationId':_0x1574fb[_0x9eb1eb(0x21d)],'templateId':_0x48cbcc[_0x9eb1eb(0x270)],'userId':_0x30750e[_0x9eb1eb(0x14a)],'models':_0x35e9ae,'nodeGeneration':this[_0x9eb1eb(0xda)][_0x9eb1eb(0x21b)]?.()??_0x9eb1eb(0x200),'pendingEvents':[],'expiresAt':Date[_0x9eb1eb(0xfb)]()+WATCH_TTL_MS,'ready':![],'timer':undefined};return _0x2cbe78[_0x9eb1eb(0x103)]=this[_0x9eb1eb(0x136)](_0x4c8337),this[_0x9eb1eb(0x24b)][_0x9eb1eb(0x238)](_0x4c8337,_0x2cbe78),void this[_0x9eb1eb(0x21c)](_0x2cbe78),this[_0x9eb1eb(0x132)](_0x2cbe78);}[_0x2afa9a(0x183)](_0x2c53f7){const _0x1c9ad4=_0x2afa9a,_0xffb8ad=hostedRequest(_0x2c53f7),_0x8032eb=hostedConversationUnwatchInputSchema[_0x1c9ad4(0x221)](_0xffb8ad[_0x1c9ad4(0xf8)]);this[_0x1c9ad4(0xda)][_0x1c9ad4(0x20c)][_0x1c9ad4(0x11b)](_0xffb8ad[_0x1c9ad4(0x14a)],_0x8032eb[_0x1c9ad4(0x21d)]);const _0x5138ca=watchOwnerKey(requireWatchSessionHash(_0xffb8ad[_0x1c9ad4(0x1ef)]),_0x8032eb[_0x1c9ad4(0x18b)]),_0x1ca72a=this[_0x1c9ad4(0x24b)][_0x1c9ad4(0x19e)](_0x5138ca);if(_0x1ca72a?.[_0x1c9ad4(0x235)]===_0x8032eb[_0x1c9ad4(0x235)]&&_0x1ca72a[_0x1c9ad4(0x21d)]===_0x8032eb[_0x1c9ad4(0x21d)]&&_0x1ca72a[_0x1c9ad4(0x14a)]===_0xffb8ad[_0x1c9ad4(0x14a)])this[_0x1c9ad4(0x262)](_0x5138ca);return{'unwatched':!![]};}[_0x2afa9a(0xf6)](_0xbf6da4,_0x23732c){const _0x114e23=_0x2afa9a;return this[_0x114e23(0xc6)](_0xbf6da4,{'conversationId':_0xbf6da4,'kind':_0x114e23(0x245),'runtimeEvent':_0x23732c});}[_0x2afa9a(0x1d4)](_0x5bbde8){const _0x3209f3=_0x2afa9a;return this[_0x3209f3(0xcc)][_0x3209f3(0xf3)](_0x5bbde8)||this[_0x3209f3(0x10d)][_0x3209f3(0xf3)](_0x5bbde8)||this[_0x3209f3(0x1fe)][_0x3209f3(0xf3)](_0x5bbde8)||[...this[_0x3209f3(0x24b)][_0x3209f3(0x1d2)]()][_0x3209f3(0x19a)](_0x1b916a=>_0x1b916a[_0x3209f3(0x21d)]===_0x5bbde8)||[...this[_0x3209f3(0x1c9)][_0x3209f3(0x1d2)]()][_0x3209f3(0x19a)](_0x5f53d1=>_0x5f53d1[_0x3209f3(0x21d)]===_0x5bbde8&&_0x5f53d1[_0x3209f3(0xc7)]===_0x3209f3(0x268))||[...this[_0x3209f3(0x14c)][_0x3209f3(0xe0)]()][_0x3209f3(0x19a)](_0x448bbc=>_0x448bbc[_0x3209f3(0x20b)](_0x5bbde8+'\x00'));}[_0x2afa9a(0x1f9)](_0x542343){const _0xdc3f04=_0x2afa9a;if(this[_0xdc3f04(0x1d4)](_0x542343))return undefined;return this[_0xdc3f04(0xcc)][_0xdc3f04(0x278)](_0x542343),()=>{const _0x1d7aa5=_0xdc3f04;this[_0x1d7aa5(0xcc)][_0x1d7aa5(0x1ac)](_0x542343);};}async[_0x2afa9a(0x26a)](_0x54c9c9){const _0x310176=_0x2afa9a,_0x5b7b6d=this[_0x310176(0xda)][_0x310176(0x20c)][_0x310176(0x1ed)](_0x54c9c9);await this[_0x310176(0xda)][_0x310176(0x245)][_0x310176(0x206)]({'conversationId':_0x54c9c9['id'],'sessionId':_0x54c9c9[_0x310176(0x161)],'homeDirectory':_0x5b7b6d[_0x310176(0xd1)]})[_0x310176(0x229)](()=>undefined);}[_0x2afa9a(0x21a)](){const _0x5d526c=_0x2afa9a;for(const [_0x5eded7,_0x2d3a8e]of this[_0x5d526c(0x10d)]){const _0x371482=runInterruptionKey(_0x5eded7,_0x2d3a8e[_0x5d526c(0x1dc)]['id']);this[_0x5d526c(0x21f)][_0x5d526c(0x278)](_0x371482);if(!_0x2d3a8e[_0x5d526c(0x27d)]())this[_0x5d526c(0x21f)][_0x5d526c(0x1ac)](_0x371482);}for(const _0xb353a7 of[...this[_0x5d526c(0x24b)][_0x5d526c(0xe0)]()])this[_0x5d526c(0x262)](_0xb353a7);}[_0x2afa9a(0x18f)](_0x1f6578){const _0xe4ce3=_0x2afa9a;if(this[_0xe4ce3(0xf7)])return Promise[_0xe4ce3(0x1e6)](new Error(_0xe4ce3(0x271)));const _0x45904a=hostedRequest(_0x1f6578),_0x18c8b3=hostedConversationMessageInputSchema[_0xe4ce3(0x221)](_0x45904a[_0xe4ce3(0xf8)]),_0x610ad2=_0x18c8b3[_0xe4ce3(0x21d)]+'\x00'+_0x18c8b3[_0xe4ce3(0x109)],_0x439134=this[_0xe4ce3(0x14c)][_0xe4ce3(0x19e)](_0x610ad2);if(_0x439134!==undefined)return _0x439134;const _0x58f99f=this[_0xe4ce3(0xda)][_0xe4ce3(0x20c)][_0xe4ce3(0x173)](_0x45904a[_0xe4ce3(0x14a)],_0x18c8b3[_0xe4ce3(0x21d)],_0x18c8b3[_0xe4ce3(0x109)]);if(_0x58f99f!==undefined){const _0x5f4dd1=this[_0xe4ce3(0xda)][_0xe4ce3(0x20c)][_0xe4ce3(0x11b)](_0x45904a[_0xe4ce3(0x14a)],_0x18c8b3[_0xe4ce3(0x21d)]);return Promise[_0xe4ce3(0x119)]({'conversation':this[_0xe4ce3(0x1cd)](_0x5f4dd1),'run':runFromMessage(_0x58f99f)});}if([...this[_0xe4ce3(0x14c)][_0xe4ce3(0xe0)]()][_0xe4ce3(0x19a)](_0xe5ad76=>_0xe5ad76[_0xe4ce3(0x20b)](_0x18c8b3[_0xe4ce3(0x21d)]+'\x00')))return Promise[_0xe4ce3(0x1e6)](new Error(_0xe4ce3(0x195)));const _0x54b0de=this[_0xe4ce3(0x208)](_0x45904a,_0x18c8b3);return this[_0xe4ce3(0x14c)][_0xe4ce3(0x238)](_0x610ad2,_0x54b0de),void _0x54b0de[_0xe4ce3(0x1ee)](()=>this[_0xe4ce3(0x14c)][_0xe4ce3(0x1ac)](_0x610ad2))[_0xe4ce3(0x229)](()=>undefined),_0x54b0de;}async[_0x2afa9a(0x208)](_0x5483bf,_0x2a8d47){const _0x11d242=_0x2afa9a;let _0x113397=this[_0x11d242(0xda)][_0x11d242(0x20c)][_0x11d242(0x11b)](_0x5483bf[_0x11d242(0x14a)],_0x2a8d47[_0x11d242(0x21d)]);if(this[_0x11d242(0xcc)][_0x11d242(0xf3)](_0x113397['id']))throw new Error(_0x11d242(0x117));if(_0x113397[_0x11d242(0xc7)]!==_0x11d242(0x182))throw new Error(_0x11d242(0x117));if(this[_0x11d242(0x10d)][_0x11d242(0xf3)](_0x113397['id']))throw new Error(_0x11d242(0x195));const _0x12893b=sessionTitleFromFirstMessage(_0x2a8d47[_0x11d242(0xe3)]),_0xa9ef8e=_0x12893b[_0x11d242(0x12a)]>-0x15*-0xc1+-0x3e*-0x53+-0x23ef&&!this[_0x11d242(0xda)][_0x11d242(0x20c)][_0x11d242(0x16e)](_0x5483bf[_0x11d242(0x14a)],_0x113397['id']),_0x184dac=runtimeModels(_0x5483bf[_0x11d242(0x124)]),_0x112f32=this[_0x11d242(0xda)][_0x11d242(0x20c)][_0x11d242(0x12d)](_0x5483bf[_0x11d242(0x14a)],_0x113397['id']);let _0x36fbc4,_0x135b95,_0x3c1988,_0x29ac98;const _0x36b7b6=_0x113397[_0x11d242(0xd6)]?undefined:this[_0x11d242(0x250)](_0x113397[_0x11d242(0x270)]);if(_0x36b7b6!==undefined&&_0x36b7b6!==_0x113397[_0x11d242(0x230)]){const _0x4e1fd0=_0x113397[_0x11d242(0x230)],_0x49a49f=_0x36b7b6;try{_0x36fbc4=await this[_0x11d242(0x105)](_0x49a49f,_0x113397[_0x11d242(0x270)]),_0x135b95=selectModel(_0x36fbc4,_0x184dac,_0x2a8d47[_0x11d242(0xfe)]??_0x36fbc4[_0x11d242(0x1a5)][_0x11d242(0x10b)]),_0x3c1988=resolveMcpServers(_0x36fbc4,this[_0x11d242(0xda)][_0x11d242(0xcf)]??process.env),this[_0x11d242(0x261)](_0x112f32,_0x36fbc4),this[_0x11d242(0xf5)](_0x112f32,_0x36fbc4),_0x29ac98={'previousVersionId':_0x4e1fd0,'targetVersionId':_0x49a49f};}catch(_0x1076a6){this[_0x11d242(0x14f)](_0x113397,_0x4e1fd0,_0x49a49f,_0x1076a6);throw new Error(_0x11d242(0x110));}}else _0x36fbc4=await this[_0x11d242(0x105)](_0x113397[_0x11d242(0x230)],_0x113397[_0x11d242(0x270)]),_0x135b95=selectModel(_0x36fbc4,_0x184dac,_0x2a8d47[_0x11d242(0xfe)]??_0x113397[_0x11d242(0xfe)]);const _0x5aba1e=await Promise[_0x11d242(0x121)](_0x2a8d47[_0x11d242(0x232)][_0x11d242(0x1bc)](_0x2f250a=>this[_0x11d242(0x1ff)](_0x5483bf[_0x11d242(0x14a)],_0x113397['id'],_0x2f250a))),_0x4bf534=attachmentPrompt(_0x2a8d47[_0x11d242(0xe3)],_0x5aba1e),_0xd33be5=marAgentGeneratedImagesDirectory(_0x112f32[_0x11d242(0xd1)],_0x113397[_0x11d242(0x161)]),_0x370864=hostedConversationGeneratedImagesDisplayDirectory(_0x113397[_0x11d242(0x161)]);if(_0xd33be5===undefined||_0x370864===undefined)throw new Error(_0x11d242(0x1dd));await mkdir(_0xd33be5,{'recursive':!![],'mode':0x1c0});const _0x1be08b=this[_0x11d242(0x261)](_0x112f32,_0x36fbc4,_0xd33be5,_0x370864),_0x281a03=await this[_0x11d242(0xda)][_0x11d242(0x20c)][_0x11d242(0xcd)](_0x5483bf[_0x11d242(0x14a)],_0x113397['id']);this[_0x11d242(0x1b5)](_0x5483bf[_0x11d242(0x14a)],_0x113397,_0x11d242(0x1ad),this[_0x11d242(0xfb)]());const _0x5d0521=[];let _0x2037a7=![];const _0x489740=await this[_0x11d242(0xda)][_0x11d242(0x245)][_0x11d242(0x1c8)]({'conversationId':_0x113397['id'],'sessionId':_0x113397[_0x11d242(0x161)],'clientMessageId':_0x2a8d47[_0x11d242(0x109)],'userPrompt':_0x2a8d47[_0x11d242(0xe3)],'prompt':_0x4bf534,'attachmentIds':_0x2a8d47[_0x11d242(0x232)],'access':_0x11d242(0xec),'modelId':_0x135b95['id'],'models':networkModels(allowedModels(_0x36fbc4,_0x184dac),_0x36fbc4[_0x11d242(0x11c)][_0x11d242(0x256)]),..._0x5483bf[_0x11d242(0x223)]===undefined?{}:{'runtimeScopeId':_0x5483bf[_0x11d242(0x223)]},'systemInstruction':systemInstruction(_0x36fbc4,_0x370864),'homeDirectory':_0x112f32[_0x11d242(0xd1)],'workspaceDirectory':_0x36fbc4[_0x11d242(0x1c4)],'temporaryDirectory':_0x281a03,'pathMounts':_0x1be08b,'processExecutor':this[_0x11d242(0xf5)](_0x112f32,_0x36fbc4,_0x281a03,_0xd33be5,_0x370864),'mcpServers':_0x3c1988??resolveMcpServers(_0x36fbc4,this[_0x11d242(0xda)][_0x11d242(0xcf)]??process.env),'webAccess':_0x36fbc4[_0x11d242(0x11c)][_0x11d242(0x256)]!==_0x11d242(0x228),'onEvent':_0x21f96a=>{const _0x555702=_0x11d242;if(_0x2037a7)this[_0x555702(0xf6)](_0x113397['id'],_0x21f96a);else _0x5d0521[_0x555702(0x158)](_0x21f96a);}})[_0x11d242(0x229)](_0xca55d6=>{const _0x56e833=_0x11d242;this[_0x56e833(0x1b5)](_0x5483bf[_0x56e833(0x14a)],_0x113397,_0x56e833(0x25b),this[_0x56e833(0xfb)]());if(_0x29ac98!==undefined){this[_0x56e833(0x14f)](_0x113397,_0x29ac98[_0x56e833(0xd5)],_0x29ac98[_0x56e833(0x1fc)],_0xca55d6);throw new Error(_0x56e833(0x110));}throw _0xca55d6;}),_0x326952=_0x489740[_0x11d242(0x1dc)][_0x11d242(0x1b1)];let _0x5b0b41=![],_0x446739;try{this[_0x11d242(0xda)][_0x11d242(0x20c)][_0x11d242(0x21e)]({'conversationId':_0x113397['id'],'clientMessageId':_0x2a8d47[_0x11d242(0x109)],'runId':_0x489740[_0x11d242(0x1dc)]['id'],'userTextPresent':_0x12893b[_0x11d242(0x12a)]>-0xddf+0x65*-0x14+0x15c3,'status':_0x11d242(0x20d),'createdAt':_0x326952,'updatedAt':_0x326952}),_0x5b0b41=!![];const _0x3e1a77=this[_0x11d242(0xfb)]();_0x446739=await this[_0x11d242(0xda)][_0x11d242(0x20c)][_0x11d242(0x279)]({'conversationId':_0x113397['id'],'modelId':_0x135b95['id'],'activityAt':_0x3e1a77,..._0x29ac98===undefined?{}:{'templateVersion':{'expectedActiveVersionId':_0x29ac98[_0x11d242(0xd5)],'activeVersionId':_0x29ac98[_0x11d242(0x1fc)],'maxStorageBytes':_0x36fbc4[_0x11d242(0x11c)][_0x11d242(0x265)][_0x11d242(0x23c)]}},..._0xa9ef8e?{'automaticTitle':_0x12893b}:{}});}catch(_0x356ac0){try{_0x489740[_0x11d242(0x27d)]();}catch{}const _0x17ddd7=await _0x489740[_0x11d242(0x27e)][_0x11d242(0x229)](()=>({'status':_0x11d242(0x170),'completedAt':this[_0x11d242(0xfb)]()}));if(_0x5b0b41)try{this[_0x11d242(0xda)][_0x11d242(0x20c)][_0x11d242(0x259)](_0x113397['id'],_0x2a8d47[_0x11d242(0x109)],_0x17ddd7[_0x11d242(0xc7)],_0x17ddd7[_0x11d242(0x139)]);}catch{}this[_0x11d242(0x1b5)](_0x5483bf[_0x11d242(0x14a)],_0x113397,_0x11d242(0x25b),_0x17ddd7[_0x11d242(0x139)]);if(_0x29ac98!==undefined)this[_0x11d242(0x14f)](_0x113397,_0x29ac98[_0x11d242(0xd5)],_0x29ac98[_0x11d242(0x1fc)],_0x356ac0);throw _0x356ac0;}_0x113397=_0x446739[_0x11d242(0x264)];if(_0x29ac98!==undefined)this[_0x11d242(0xc6)](_0x113397['id'],{'conversationId':_0x113397['id'],'kind':_0x11d242(0x17c),'upgrade':{'status':_0x11d242(0x260),'previousVersionId':_0x29ac98[_0x11d242(0xd5)],'targetVersionId':_0x29ac98[_0x11d242(0x1fc)],'activeVersionId':_0x113397[_0x11d242(0x230)],'conversation':this[_0x11d242(0x1cd)](_0x113397),'error':null}});this[_0x11d242(0x10d)][_0x11d242(0x238)](_0x113397['id'],_0x489740),this[_0x11d242(0x1b5)](_0x5483bf[_0x11d242(0x14a)],_0x113397,_0x11d242(0x20d),_0x489740[_0x11d242(0x1dc)][_0x11d242(0x1b1)]);if(_0x446739[_0x11d242(0xf0)])this[_0x11d242(0xc6)](_0x113397['id'],{'conversationId':_0x113397['id'],'kind':_0x11d242(0x264),'conversation':this[_0x11d242(0x1cd)](_0x113397)});this[_0x11d242(0xc6)](_0x113397['id'],{'conversationId':_0x113397['id'],'kind':_0x11d242(0x1dc),'run':_0x489740[_0x11d242(0x1dc)]}),_0x2037a7=!![];for(const _0x51beb9 of _0x5d0521)this[_0x11d242(0xf6)](_0x113397['id'],_0x51beb9);_0x5d0521[_0x11d242(0x12a)]=0xfd4+0xe9f*-0x1+0x135*-0x1;const _0x20202c=_0x489740[_0x11d242(0x27e)][_0x11d242(0xeb)](_0x30f4d9=>this[_0x11d242(0xed)](_0x5483bf[_0x11d242(0x14a)],_0x113397['id'],_0x2a8d47[_0x11d242(0x109)],_0x489740[_0x11d242(0x1dc)],_0x30f4d9),()=>this[_0x11d242(0xed)](_0x5483bf[_0x11d242(0x14a)],_0x113397['id'],_0x2a8d47[_0x11d242(0x109)],_0x489740[_0x11d242(0x1dc)],{'status':_0x11d242(0x170),'completedAt':this[_0x11d242(0xfb)]()}))[_0x11d242(0x229)](()=>undefined)[_0x11d242(0x1ee)](()=>{const _0x3af45b=_0x11d242;this[_0x3af45b(0x21f)][_0x3af45b(0x1ac)](runInterruptionKey(_0x113397['id'],_0x489740[_0x3af45b(0x1dc)]['id']));if(this[_0x3af45b(0x10d)][_0x3af45b(0x19e)](_0x113397['id'])===_0x489740)this[_0x3af45b(0x10d)][_0x3af45b(0x1ac)](_0x113397['id']);if(this[_0x3af45b(0x1fe)][_0x3af45b(0x19e)](_0x113397['id'])===_0x20202c)this[_0x3af45b(0x1fe)][_0x3af45b(0x1ac)](_0x113397['id']);});return this[_0x11d242(0x1fe)][_0x11d242(0x238)](_0x113397['id'],_0x20202c),void _0x20202c,{'conversation':this[_0x11d242(0x1cd)](_0x113397),'run':_0x489740[_0x11d242(0x1dc)]};}async[_0x2afa9a(0xed)](_0x23a7be,_0x527338,_0xcbefa2,_0x120413,_0x55a187){const _0x31c149=_0x2afa9a,_0x1dd06a=runInterruptionKey(_0x527338,_0x120413['id']),_0x48d9d4=this[_0x31c149(0x21f)][_0x31c149(0xf3)](_0x1dd06a);let _0xb9bcc3;try{this[_0x31c149(0xda)][_0x31c149(0x20c)][_0x31c149(0x259)](_0x527338,_0xcbefa2,_0x55a187[_0x31c149(0xc7)],_0x55a187[_0x31c149(0x139)]);try{const _0x2669bd=await this[_0x31c149(0xda)][_0x31c149(0x20c)][_0x31c149(0x210)](_0x23a7be,_0x527338);this[_0x31c149(0xc6)](_0x527338,{'conversationId':_0x527338,'kind':_0x31c149(0x134),'files':_0x2669bd,'error':null});}catch(_0x5eb6f3){this[_0x31c149(0xc6)](_0x527338,{'conversationId':_0x527338,'kind':_0x31c149(0x134),'files':this[_0x31c149(0xda)][_0x31c149(0x20c)][_0x31c149(0x186)](_0x23a7be,_0x527338),'error':{'code':safeErrorCode(_0x5eb6f3,_0x31c149(0x203)),'message':_0x31c149(0x14e)}});}await this[_0x31c149(0xda)][_0x31c149(0x20c)][_0x31c149(0x13d)](_0x527338,_0x55a187[_0x31c149(0x139)]),this[_0x31c149(0xc6)](_0x527338,{'conversationId':_0x527338,'kind':_0x31c149(0x1dc),'run':{'id':_0x120413['id'],'status':_0x55a187[_0x31c149(0xc7)],'startedAt':_0x120413[_0x31c149(0x1b1)],'completedAt':_0x55a187[_0x31c149(0x139)]}}),await this[_0x31c149(0xfd)](_0x527338,_0x55a187[_0x31c149(0x27b)],_0x55a187[_0x31c149(0x139)])[_0x31c149(0x229)](()=>undefined),_0xb9bcc3=this[_0x31c149(0xda)][_0x31c149(0x20c)][_0x31c149(0x11b)](_0x23a7be,_0x527338);}finally{this[_0x31c149(0x21f)][_0x31c149(0x1ac)](_0x1dd06a);if(_0xb9bcc3===undefined)try{_0xb9bcc3=this[_0x31c149(0xda)][_0x31c149(0x20c)][_0x31c149(0x11b)](_0x23a7be,_0x527338);}catch{}if(_0xb9bcc3!==undefined)this[_0x31c149(0x1b5)](_0x23a7be,_0xb9bcc3,_0x31c149(0x25b),_0x55a187[_0x31c149(0x139)]);}if(_0xb9bcc3!==undefined&&(_0x55a187[_0x31c149(0xc7)]!==_0x31c149(0xe5)||!_0x48d9d4))this[_0x31c149(0xd2)](_0x23a7be,_0xb9bcc3,_0x120413['id'],_0x55a187);}async[_0x2afa9a(0xfd)](_0xeca8eb,_0xdd1430,_0x3b74be){const _0xef3a64=_0x2afa9a,_0x618d4d=automaticHostedConversationTitle(_0xdd1430);if(_0x618d4d===undefined)return;const _0x3a6408=await this[_0xef3a64(0xda)][_0xef3a64(0x20c)][_0xef3a64(0x123)](_0xeca8eb,_0x618d4d,_0x3b74be);if(_0x3a6408===undefined)return;this[_0xef3a64(0xc6)](_0xeca8eb,{'conversationId':_0xeca8eb,'kind':_0xef3a64(0x264),'conversation':this[_0xef3a64(0x1cd)](_0x3a6408)});}[_0x2afa9a(0x201)](_0x5a18a1){const _0x2726e6=_0x2afa9a,_0x1a2667=hostedRequest(_0x5a18a1),_0x14b2e8=hostedConversationIdInputSchema[_0x2726e6(0x221)](_0x1a2667[_0x2726e6(0xf8)]),_0x203382=this[_0x2726e6(0xda)][_0x2726e6(0x20c)][_0x2726e6(0x11b)](_0x1a2667[_0x2726e6(0x14a)],_0x14b2e8[_0x2726e6(0x21d)]),_0x267636=this[_0x2726e6(0x10d)][_0x2726e6(0x19e)](_0x14b2e8[_0x2726e6(0x21d)]);if(_0x267636===undefined)return{'interrupted':![]};const _0x390798=runInterruptionKey(_0x203382['id'],_0x267636[_0x2726e6(0x1dc)]['id']);this[_0x2726e6(0x21f)][_0x2726e6(0x278)](_0x390798);try{const _0x26caa9=_0x267636[_0x2726e6(0x27d)]();if(!_0x26caa9)return this[_0x2726e6(0x21f)][_0x2726e6(0x1ac)](_0x390798),{'interrupted':![]};return this[_0x2726e6(0x1b5)](_0x1a2667[_0x2726e6(0x14a)],_0x203382,_0x2726e6(0x1ea),this[_0x2726e6(0xfb)]()),{'interrupted':!![]};}catch(_0x14db5e){this[_0x2726e6(0x21f)][_0x2726e6(0x1ac)](_0x390798);throw _0x14db5e;}}async[_0x2afa9a(0xc2)](_0x22eb61){const _0x5b57ed=_0x2afa9a,_0x1863fb=hostedRequest(_0x22eb61),_0xf0ec3e=hostedConversationConfigUpdateInputSchema[_0x5b57ed(0x221)](_0x1863fb[_0x5b57ed(0xf8)]),_0x4bf891=this[_0x5b57ed(0xda)][_0x5b57ed(0x20c)][_0x5b57ed(0x11b)](_0x1863fb[_0x5b57ed(0x14a)],_0xf0ec3e[_0x5b57ed(0x21d)]);if(this[_0x5b57ed(0xcc)][_0x5b57ed(0xf3)](_0x4bf891['id']))throw new Error(_0x5b57ed(0x117));const _0xbf7d92=await this[_0x5b57ed(0x105)](_0x4bf891[_0x5b57ed(0x230)],_0x4bf891[_0x5b57ed(0x270)]),_0x3217ca=runtimeModels(_0x1863fb[_0x5b57ed(0x124)]),_0x33fbfa=selectModel(_0xbf7d92,_0x3217ca,_0xf0ec3e[_0x5b57ed(0xfe)]??_0x4bf891[_0x5b57ed(0xfe)]),_0x205a21=this[_0x5b57ed(0xfb)](),_0x4305e0=await this[_0x5b57ed(0xda)][_0x5b57ed(0x20c)][_0x5b57ed(0x199)](_0x4bf891['id'],_0xed1f19=>({..._0xed1f19,'modelId':_0x33fbfa['id'],'updatedAt':_0x205a21,'lastActivityAt':_0x205a21}));return this[_0x5b57ed(0xc6)](_0x4bf891['id'],{'conversationId':_0x4bf891['id'],'kind':_0x5b57ed(0x1a7),'conversation':this[_0x5b57ed(0x1cd)](_0x4305e0)}),{'conversation':this[_0x5b57ed(0x1cd)](_0x4305e0)};}async[_0x2afa9a(0x234)](_0xdcc1b6){const _0x2cb1b8=_0x2afa9a,_0x1f5524=hostedRequest(_0xdcc1b6),_0x52f82b=hostedConversationMetadataUpdateInputSchema[_0x2cb1b8(0x221)](_0x1f5524[_0x2cb1b8(0xf8)]),_0x15b264=this[_0x2cb1b8(0xda)][_0x2cb1b8(0x20c)][_0x2cb1b8(0x11b)](_0x1f5524[_0x2cb1b8(0x14a)],_0x52f82b[_0x2cb1b8(0x21d)]);if(this[_0x2cb1b8(0xcc)][_0x2cb1b8(0xf3)](_0x15b264['id']))throw new Error(_0x2cb1b8(0x117));const _0x390ce7=this[_0x2cb1b8(0xfb)](),_0x45ec7a=await this[_0x2cb1b8(0xda)][_0x2cb1b8(0x20c)][_0x2cb1b8(0x199)](_0x15b264['id'],_0x184e76=>({..._0x184e76,'title':_0x52f82b[_0x2cb1b8(0x27b)]??_0x184e76[_0x2cb1b8(0x27b)],'titleSource':_0x52f82b[_0x2cb1b8(0x27b)]===undefined?_0x184e76[_0x2cb1b8(0x1d6)]:_0x2cb1b8(0x280),'pinnedAt':_0x52f82b[_0x2cb1b8(0x1ec)]===undefined?_0x184e76[_0x2cb1b8(0xdd)]:_0x52f82b[_0x2cb1b8(0x1ec)]?_0x390ce7:null,'updatedAt':_0x390ce7,'lastActivityAt':_0x184e76[_0x2cb1b8(0x138)]}));return this[_0x2cb1b8(0xc6)](_0x15b264['id'],{'conversationId':_0x15b264['id'],'kind':_0x2cb1b8(0x1a7),'conversation':this[_0x2cb1b8(0x1cd)](_0x45ec7a)}),{'conversation':this[_0x2cb1b8(0x1cd)](_0x45ec7a)};}async[_0x2afa9a(0x186)](_0x2c665b){const _0x4bcac8=_0x2afa9a,_0x35d7db=hostedRequest(_0x2c665b),_0x5150c4=hostedConversationIdInputSchema[_0x4bcac8(0x221)](_0x35d7db[_0x4bcac8(0xf8)]);return hostedConversationFilesSchema[_0x4bcac8(0x221)]({'files':this[_0x4bcac8(0xda)][_0x4bcac8(0x20c)][_0x4bcac8(0x186)](_0x35d7db[_0x4bcac8(0x14a)],_0x5150c4[_0x4bcac8(0x21d)])});}async[_0x2afa9a(0x249)](_0x302804){const _0x41b39f=_0x2afa9a,_0x57372a=hostedRequest(_0x302804),_0x28f11e=hostedConversationImageReadInputSchema[_0x41b39f(0x221)](_0x57372a[_0x41b39f(0xf8)]);this[_0x41b39f(0xda)][_0x41b39f(0x20c)][_0x41b39f(0x11b)](_0x57372a[_0x41b39f(0x14a)],_0x28f11e[_0x41b39f(0x21d)]);if(_0x28f11e[_0x41b39f(0x1d0)]!==hostedConversationImageRunId(_0x28f11e[_0x41b39f(0x21d)]))throw new Error(_0x41b39f(0x192));const _0x31cce0=await this[_0x41b39f(0xda)][_0x41b39f(0x249)](_0x28f11e[_0x41b39f(0x1d0)],_0x28f11e[_0x41b39f(0x218)]);if(_0x31cce0===undefined)throw new Error(_0x41b39f(0x207));return{'image':_0x31cce0};}async[_0x2afa9a(0x1da)](_0x17eb84){const _0x570e24=_0x2afa9a,_0x29df60=hostedRequest(_0x17eb84),_0x16c094=hostedConversationFileReadInputSchema[_0x570e24(0x221)](_0x29df60[_0x570e24(0xf8)]),_0x1849b8=this[_0x570e24(0xda)][_0x570e24(0x20c)][_0x570e24(0x163)](_0x29df60[_0x570e24(0x14a)],_0x16c094[_0x570e24(0x21d)],_0x16c094[_0x570e24(0x177)]),_0x338270=this[_0x570e24(0xda)][_0x570e24(0x20c)][_0x570e24(0x115)](_0x29df60[_0x570e24(0x14a)],_0x1849b8);await assertRegularFile(_0x338270,_0x1849b8[_0x570e24(0x111)]);const _0x229385=_0x16c094[_0x570e24(0x1e0)]??0x24b0+0x21b+-0x26cb;if(_0x229385>_0x1849b8[_0x570e24(0x111)])throw new Error(_0x570e24(0x1bb));const _0x34fb27=Math[_0x570e24(0x149)](_0x16c094[_0x570e24(0x22b)]??MAX_FILE_READ_BYTES,MAX_FILE_READ_BYTES),_0x920126=await open(_0x338270,'r');try{const _0x113850=Buffer[_0x570e24(0xf9)](Math[_0x570e24(0x149)](_0x34fb27,Math[_0x570e24(0x22a)](-0x6c0+0x172f+0x106f*-0x1,_0x1849b8[_0x570e24(0x111)]-_0x229385))),_0x46351b=await _0x920126[_0x570e24(0x154)](_0x113850,0x164c+0x59d*-0x3+-0x575,_0x113850[_0x570e24(0x12a)],_0x229385),_0x1d3fb0=_0x229385+_0x46351b[_0x570e24(0x24a)],_0x418443=_0x1d3fb0>=_0x1849b8[_0x570e24(0x111)];return hostedConversationFileReadResultSchema[_0x570e24(0x221)]({'file':_0x1849b8,'encoding':_0x570e24(0x1f2),'content':_0x113850[_0x570e24(0x26e)](-0x2*0xce9+-0x9aa+0x237c,_0x46351b[_0x570e24(0x24a)])[_0x570e24(0x114)](_0x570e24(0x1f2)),'offset':_0x229385,'nextOffset':_0x418443?null:_0x1d3fb0,'eof':_0x418443});}finally{await _0x920126[_0x570e24(0xc0)]();}}async[_0x2afa9a(0x1ce)](_0x3e7eb1){const _0x18f5c5=_0x2afa9a,_0xc2193b=hostedRequest(_0x3e7eb1),_0x31f95f=hostedConversationFileDeleteInputSchema[_0x18f5c5(0x221)](_0xc2193b[_0x18f5c5(0xf8)]);this[_0x18f5c5(0x194)](_0xc2193b[_0x18f5c5(0x14a)],_0x31f95f[_0x18f5c5(0x21d)]);const _0x15b83f=_0x31f95f[_0x18f5c5(0x21d)]+'\x00'+_0x31f95f[_0x18f5c5(0x177)];if(this[_0x18f5c5(0x255)][_0x18f5c5(0xf3)](_0x15b83f))throw new Error(_0x18f5c5(0x157));this[_0x18f5c5(0x255)][_0x18f5c5(0x278)](_0x15b83f);try{const _0x5aec17=await this[_0x18f5c5(0xda)][_0x18f5c5(0x20c)][_0x18f5c5(0x1ce)](_0xc2193b[_0x18f5c5(0x14a)],_0x31f95f[_0x18f5c5(0x21d)],_0x31f95f[_0x18f5c5(0x177)],this[_0x18f5c5(0xfb)]()),_0xe89621=hostedConversationFileDeleteResultSchema[_0x18f5c5(0x221)]({'deletedFileId':_0x31f95f[_0x18f5c5(0x177)],'files':_0x5aec17});return this[_0x18f5c5(0xc6)](_0x31f95f[_0x18f5c5(0x21d)],{'conversationId':_0x31f95f[_0x18f5c5(0x21d)],'kind':_0x18f5c5(0x134),'files':_0xe89621[_0x18f5c5(0x134)],'error':null}),_0xe89621;}finally{this[_0x18f5c5(0x255)][_0x18f5c5(0x1ac)](_0x15b83f);}}async[_0x2afa9a(0x122)](_0x44003c){const _0x26a047=_0x2afa9a,_0x30e2bb=hostedRequest(_0x44003c),_0x303599=hostedConversationUploadPreflightInputSchema[_0x26a047(0x221)](_0x30e2bb[_0x26a047(0xf8)]),_0xb2ec98=this[_0x26a047(0x194)](_0x30e2bb[_0x26a047(0x14a)],_0x303599[_0x26a047(0x21d)]),_0x4ebf89=await this[_0x26a047(0x105)](_0xb2ec98[_0x26a047(0x230)],_0xb2ec98[_0x26a047(0x270)]),_0x27e231=this[_0x26a047(0xda)][_0x26a047(0x20c)][_0x26a047(0x12d)](_0x30e2bb[_0x26a047(0x14a)],_0xb2ec98['id']),_0x1f8e6a=await Promise[_0x26a047(0x121)](_0x303599[_0x26a047(0x134)][_0x26a047(0x1bc)](async _0x3cef24=>({'name':_0x3cef24[_0x26a047(0x240)],'status':await this[_0x26a047(0x269)](_0x27e231,_0xb2ec98,_0x4ebf89[_0x26a047(0x11c)],_0x3cef24[_0x26a047(0x240)],_0x3cef24[_0x26a047(0x111)])})));return hostedConversationUploadPreflightResultSchema[_0x26a047(0x221)]({'files':_0x1f8e6a});}async[_0x2afa9a(0x277)](_0x58137d){const _0x31e31b=_0x2afa9a,_0x4de3c7=hostedRequest(_0x58137d),_0x1c06ea=hostedConversationUploadCreateInputSchema[_0x31e31b(0x221)](_0x4de3c7[_0x31e31b(0xf8)]),_0x2f4263=this[_0x31e31b(0x194)](_0x4de3c7[_0x31e31b(0x14a)],_0x1c06ea[_0x31e31b(0x21d)]),_0x1ce6c4=_0x4de3c7[_0x31e31b(0x14a)]+'\x00'+_0x2f4263['id']+'\x00'+_0x1c06ea[_0x31e31b(0x274)],_0x5757c6=this[_0x31e31b(0x215)][_0x31e31b(0x19e)](_0x1ce6c4);if(_0x5757c6!==undefined){const _0x53a675=this[_0x31e31b(0x1c9)][_0x31e31b(0x19e)](_0x5757c6);if(_0x53a675!==undefined)return{'upload':hostedConversationUploadSchema[_0x31e31b(0x221)](uploadProjection(_0x53a675))};}const _0x1fab7b=await this[_0x31e31b(0x105)](_0x2f4263[_0x31e31b(0x230)],_0x2f4263[_0x31e31b(0x270)]),_0x579781=this[_0x31e31b(0xda)][_0x31e31b(0x20c)][_0x31e31b(0x12d)](_0x4de3c7[_0x31e31b(0x14a)],_0x2f4263['id']),_0x1ea102=await this[_0x31e31b(0x269)](_0x579781,_0x2f4263,_0x1fab7b[_0x31e31b(0x11c)],_0x1c06ea[_0x31e31b(0x240)],_0x1c06ea[_0x31e31b(0x111)]);if(_0x1ea102===_0x31e31b(0x13b)||_0x1ea102===_0x31e31b(0xe1))throw new Error(_0x31e31b(0x1f4));if(_0x1ea102!==_0x31e31b(0x100))throw new Error(_0x31e31b(0x241));const _0x42409b=this['id'](),_0xf5e8ee=join(_0x579781[_0x31e31b(0x1e3)],'.'+_0x42409b+_0x31e31b(0x243)),_0x33cf3f=join(_0x579781[_0x31e31b(0x1e3)],_0x1c06ea[_0x31e31b(0x240)]),_0x440cc3=await open(_0xf5e8ee,'wx',0x1c6d+-0x215*0x2+0x16c3*-0x1);await _0x440cc3[_0x31e31b(0xc0)]();const _0x309c2e={'uploadId':_0x42409b,'conversationId':_0x2f4263['id'],'userId':_0x4de3c7[_0x31e31b(0x14a)],'clientRequestId':_0x1c06ea[_0x31e31b(0x274)],'name':_0x1c06ea[_0x31e31b(0x240)],'mimeType':_0x1c06ea[_0x31e31b(0x1de)],'size':_0x1c06ea[_0x31e31b(0x111)],'temporaryPath':_0xf5e8ee,'targetPath':_0x33cf3f,'receivedBytes':0x0,'status':_0x31e31b(0x268)};return this[_0x31e31b(0x1c9)][_0x31e31b(0x238)](_0x42409b,_0x309c2e),this[_0x31e31b(0x215)][_0x31e31b(0x238)](_0x1ce6c4,_0x42409b),{'upload':hostedConversationUploadSchema[_0x31e31b(0x221)](uploadProjection(_0x309c2e))};}async[_0x2afa9a(0x17d)](_0x1067ab){const _0x6b21d2=_0x2afa9a,_0x5c16fe=hostedRequest(_0x1067ab),_0x224d30=hostedConversationUploadChunkInputSchema[_0x6b21d2(0x221)](_0x5c16fe[_0x6b21d2(0xf8)]),_0x2b8282=this[_0x6b21d2(0x258)](_0x5c16fe[_0x6b21d2(0x14a)],_0x224d30[_0x6b21d2(0x21d)],_0x224d30[_0x6b21d2(0x202)]);if(_0x2b8282[_0x6b21d2(0xc7)]!==_0x6b21d2(0x268))throw new Error(_0x6b21d2(0x1f6));if(_0x224d30[_0x6b21d2(0x1e0)]!==_0x2b8282[_0x6b21d2(0x227)])throw new Error(_0x6b21d2(0x17f));const _0x303444=Buffer[_0x6b21d2(0xc5)](_0x224d30[_0x6b21d2(0x22d)],_0x6b21d2(0x1f2));if(_0x2b8282[_0x6b21d2(0x227)]+_0x303444[_0x6b21d2(0xce)]>_0x2b8282[_0x6b21d2(0x111)])throw new Error(_0x6b21d2(0x108));await assertUploadTemporaryFile(_0x2b8282[_0x6b21d2(0x11d)],_0x2b8282[_0x6b21d2(0x227)]);const _0x1b837a=await open(_0x2b8282[_0x6b21d2(0x11d)],'r+');try{await _0x1b837a[_0x6b21d2(0x266)](_0x303444,-0x1*0x515+-0x1*-0xf45+-0xa30,_0x303444[_0x6b21d2(0xce)],_0x2b8282[_0x6b21d2(0x227)]);}finally{await _0x1b837a[_0x6b21d2(0xc0)]();}return _0x2b8282[_0x6b21d2(0x227)]+=_0x303444[_0x6b21d2(0xce)],{'upload':hostedConversationUploadSchema[_0x6b21d2(0x221)](uploadProjection(_0x2b8282))};}[_0x2afa9a(0x15b)](_0x1ec572){const _0xc5b77b=_0x2afa9a,_0x3d519a=hostedRequest(_0x1ec572),_0x114e41=hostedConversationUploadControlInputSchema[_0xc5b77b(0x221)](_0x3d519a[_0xc5b77b(0xf8)]),_0x22fd02=this[_0xc5b77b(0x258)](_0x3d519a[_0xc5b77b(0x14a)],_0x114e41[_0xc5b77b(0x21d)],_0x114e41[_0xc5b77b(0x202)]);return{'upload':hostedConversationUploadSchema[_0xc5b77b(0x221)](uploadProjection(_0x22fd02))};}async[_0x2afa9a(0x130)](_0x47fcee){const _0x2b8ce3=_0x2afa9a,_0x118ee8=hostedRequest(_0x47fcee),_0x5cb7ff=hostedConversationUploadControlInputSchema[_0x2b8ce3(0x221)](_0x118ee8[_0x2b8ce3(0xf8)]),_0x2b2044=this[_0x2b8ce3(0x258)](_0x118ee8[_0x2b8ce3(0x14a)],_0x5cb7ff[_0x2b8ce3(0x21d)],_0x5cb7ff[_0x2b8ce3(0x202)]);if(_0x2b2044[_0x2b8ce3(0xc7)]===_0x2b8ce3(0x252))return{'upload':hostedConversationUploadSchema[_0x2b8ce3(0x221)](uploadProjection(_0x2b2044))};if(_0x2b2044[_0x2b8ce3(0xc7)]!==_0x2b8ce3(0x268)||_0x2b2044[_0x2b8ce3(0x227)]!==_0x2b2044[_0x2b8ce3(0x111)])throw new Error(_0x2b8ce3(0x1e8));const _0x20257f=this[_0x2b8ce3(0x194)](_0x118ee8[_0x2b8ce3(0x14a)],_0x2b2044[_0x2b8ce3(0x21d)]),_0x585d82=await this[_0x2b8ce3(0x105)](_0x20257f[_0x2b8ce3(0x230)],_0x20257f[_0x2b8ce3(0x270)]);if(_0x2b2044[_0x2b8ce3(0x111)]>_0x585d82[_0x2b8ce3(0x11c)][_0x2b8ce3(0x265)][_0x2b8ce3(0x137)]||_0x20257f[_0x2b8ce3(0x1fd)][_0x2b8ce3(0xd9)]+_0x2b2044[_0x2b8ce3(0x111)]>_0x20257f[_0x2b8ce3(0x1fd)][_0x2b8ce3(0x1eb)])throw new Error(_0x2b8ce3(0x1f4));await assertUploadTemporaryFile(_0x2b2044[_0x2b8ce3(0x11d)],_0x2b2044[_0x2b8ce3(0x111)]);const _0x43d44f=await lstat(_0x2b2044[_0x2b8ce3(0x1b3)])[_0x2b8ce3(0x229)](_0x4323c3=>{const _0x2de18e=_0x2b8ce3;if(_0x4323c3[_0x2de18e(0x14b)]===_0x2de18e(0x13a))return undefined;throw _0x4323c3;});if(_0x43d44f!==undefined)throw new Error(_0x2b8ce3(0x241));const _0x4126dd=await open(_0x2b2044[_0x2b8ce3(0x11d)],'r+');try{await _0x4126dd[_0x2b8ce3(0x1f3)]();}finally{await _0x4126dd[_0x2b8ce3(0xc0)]();}await rename(_0x2b2044[_0x2b8ce3(0x11d)],_0x2b2044[_0x2b8ce3(0x1b3)]);const _0x825d48=this[_0x2b8ce3(0xfb)]();try{await utimes(_0x2b2044[_0x2b8ce3(0x1b3)],new Date(_0x825d48),new Date(_0x825d48));const _0x4c5396={'id':this[_0x2b8ce3(0xda)][_0x2b8ce3(0x20c)][_0x2b8ce3(0x1a2)](_0x2b2044[_0x2b8ce3(0x21d)],_0x2b8ce3(0x1e2),_0x2b2044[_0x2b8ce3(0x240)]),'conversationId':_0x2b2044[_0x2b8ce3(0x21d)],'category':_0x2b8ce3(0x1e2),'relativePath':_0x2b2044[_0x2b8ce3(0x240)],'displayName':_0x2b2044[_0x2b8ce3(0x240)],'mimeType':_0x2b2044[_0x2b8ce3(0x1de)],'size':_0x2b2044[_0x2b8ce3(0x111)],'source':_0x2b8ce3(0xcb),'createdAt':_0x825d48,'updatedAt':_0x825d48};return _0x2b2044[_0x2b8ce3(0xf4)]=await this[_0x2b8ce3(0xda)][_0x2b8ce3(0x20c)][_0x2b8ce3(0x116)](_0x118ee8[_0x2b8ce3(0x14a)],_0x4c5396),_0x2b2044[_0x2b8ce3(0xc7)]=_0x2b8ce3(0x252),this[_0x2b8ce3(0xc6)](_0x2b2044[_0x2b8ce3(0x21d)],{'conversationId':_0x2b2044[_0x2b8ce3(0x21d)],'kind':_0x2b8ce3(0x134),'files':this[_0x2b8ce3(0xda)][_0x2b8ce3(0x20c)][_0x2b8ce3(0x186)](_0x118ee8[_0x2b8ce3(0x14a)],_0x2b2044[_0x2b8ce3(0x21d)]),'error':null}),{'upload':hostedConversationUploadSchema[_0x2b8ce3(0x221)](uploadProjection(_0x2b2044))};}catch(_0x309ac5){await rename(_0x2b2044[_0x2b8ce3(0x1b3)],_0x2b2044[_0x2b8ce3(0x11d)])[_0x2b8ce3(0x229)](()=>undefined);throw _0x309ac5;}}async[_0x2afa9a(0x1cb)](_0x3a8b04){const _0x449057=_0x2afa9a,_0x3226ee=hostedRequest(_0x3a8b04),_0x5ccefe=hostedConversationUploadControlInputSchema[_0x449057(0x221)](_0x3226ee[_0x449057(0xf8)]),_0x152a27=this[_0x449057(0x258)](_0x3226ee[_0x449057(0x14a)],_0x5ccefe[_0x449057(0x21d)],_0x5ccefe[_0x449057(0x202)]);if(_0x152a27[_0x449057(0xc7)]===_0x449057(0x252))throw new Error(_0x449057(0x1f6));return _0x152a27[_0x449057(0xc7)]=_0x449057(0x187),await rm(_0x152a27[_0x449057(0x11d)],{'force':!![]}),{'upload':hostedConversationUploadSchema[_0x449057(0x221)](uploadProjection(_0x152a27))};}async[_0x2afa9a(0x1ac)](_0x3e176f){const _0x5edc65=_0x2afa9a,_0xac74f1=hostedRequest(_0x3e176f),_0x16beff=hostedConversationIdInputSchema[_0x5edc65(0x221)](_0xac74f1[_0x5edc65(0xf8)]),_0x1748af=this[_0x5edc65(0xda)][_0x5edc65(0x20c)][_0x5edc65(0x11b)](_0xac74f1[_0x5edc65(0x14a)],_0x16beff[_0x5edc65(0x21d)]);if(this[_0x5edc65(0xcc)][_0x5edc65(0xf3)](_0x1748af['id']))throw new Error(_0x5edc65(0x117));this[_0x5edc65(0xcc)][_0x5edc65(0x278)](_0x1748af['id']);try{await this[_0x5edc65(0x244)](_0x1748af['id']);const _0x55aabb=this[_0x5edc65(0x10d)][_0x5edc65(0x19e)](_0x1748af['id']);if(_0x55aabb!==undefined){const _0x5a934c=runInterruptionKey(_0x1748af['id'],_0x55aabb[_0x5edc65(0x1dc)]['id']);this[_0x5edc65(0x21f)][_0x5edc65(0x278)](_0x5a934c);if(!_0x55aabb[_0x5edc65(0x27d)]())this[_0x5edc65(0x21f)][_0x5edc65(0x1ac)](_0x5a934c);}await this[_0x5edc65(0x216)](_0xac74f1[_0x5edc65(0x14a)],_0x1748af['id']);const _0x46a18e=this[_0x5edc65(0xda)][_0x5edc65(0x20c)][_0x5edc65(0x12d)](_0xac74f1[_0x5edc65(0x14a)],_0x1748af['id']);return await this[_0x5edc65(0xda)][_0x5edc65(0x245)][_0x5edc65(0x206)]({'conversationId':_0x1748af['id'],'sessionId':_0x1748af[_0x5edc65(0x161)],'homeDirectory':_0x46a18e[_0x5edc65(0xd1)]})[_0x5edc65(0x229)](()=>undefined),await this[_0x5edc65(0x1fe)][_0x5edc65(0x19e)](_0x1748af['id'])?.[_0x5edc65(0x229)](()=>undefined),this[_0x5edc65(0x15e)](_0x1748af['id']),await this[_0x5edc65(0xda)][_0x5edc65(0x20c)][_0x5edc65(0x10e)](_0x1748af['id']),this[_0x5edc65(0xfc)][_0x5edc65(0x1ac)](_0x1748af['id']),hostedConversationDeleteResultSchema[_0x5edc65(0x221)]({'deletedConversationId':_0x1748af['id']});}finally{this[_0x5edc65(0xcc)][_0x5edc65(0x1ac)](_0x1748af['id']);}}async[_0x2afa9a(0x244)](_0x82d123){const _0x54d399=_0x2afa9a,_0x34569c=_0x82d123+'\x00',_0x2db8e6=[...this[_0x54d399(0x14c)][_0x54d399(0x12e)]()][_0x54d399(0x181)](([_0x449454])=>_0x449454[_0x54d399(0x20b)](_0x34569c))[_0x54d399(0x1bc)](([,_0x3e274e])=>_0x3e274e);await Promise[_0x54d399(0x257)](_0x2db8e6);}async[_0x2afa9a(0x21c)](_0x591c16){const _0x166f2d=_0x2afa9a;try{const _0x4fdfaa=await this[_0x166f2d(0x19e)]({'conversationId':_0x591c16[_0x166f2d(0x21d)],'__requestUserId':_0x591c16[_0x166f2d(0x14a)],'__marAgentModels':_0x591c16[_0x166f2d(0x124)]});if(this[_0x166f2d(0x24b)][_0x166f2d(0x19e)](_0x591c16[_0x166f2d(0x107)])!==_0x591c16)return;this[_0x166f2d(0xda)][_0x166f2d(0x10a)]?.({'type':_0x166f2d(0xe6),'workbenchConnectionId':_0x591c16[_0x166f2d(0x18b)],'watchId':_0x591c16[_0x166f2d(0x235)],'nodeGeneration':_0x591c16[_0x166f2d(0x21b)],'nodeId':this[_0x166f2d(0xda)][_0x166f2d(0x104)](),'templateId':_0x591c16[_0x166f2d(0x270)],'conversationId':_0x591c16[_0x166f2d(0x21d)],'revision':0x1,'snapshotSequence':++this[_0x166f2d(0x1d7)],'expiresAt':_0x591c16[_0x166f2d(0x1c7)],'payload':_0x4fdfaa}),_0x591c16[_0x166f2d(0x15c)]=!![];for(const _0x4cb9ea of _0x591c16[_0x166f2d(0x1e9)])this[_0x166f2d(0x144)](_0x591c16,_0x4cb9ea);_0x591c16[_0x166f2d(0x1e9)][_0x166f2d(0x12a)]=-0x1c5*0x13+-0xb*0x1c6+-0xcb*-0x43;}catch(_0x15511c){if(this[_0x166f2d(0x24b)][_0x166f2d(0x19e)](_0x591c16[_0x166f2d(0x107)])!==_0x591c16)return;this[_0x166f2d(0xda)][_0x166f2d(0x10a)]?.({'type':_0x166f2d(0x24d),'workbenchConnectionId':_0x591c16[_0x166f2d(0x18b)],'watchType':_0x166f2d(0x180),'watchId':_0x591c16[_0x166f2d(0x235)],'nodeGeneration':_0x591c16[_0x166f2d(0x21b)],'nodeId':this[_0x166f2d(0xda)][_0x166f2d(0x104)](),'templateId':_0x591c16[_0x166f2d(0x270)],'conversationId':_0x591c16[_0x166f2d(0x21d)],'code':safeErrorCode(_0x15511c,_0x166f2d(0x141)),'message':_0x166f2d(0x16d)}),this[_0x166f2d(0x262)](_0x591c16[_0x166f2d(0x107)]);}}[_0x2afa9a(0x120)](_0x5981cc){const _0x32d89b=_0x2afa9a;return this[_0x32d89b(0xfc)][_0x32d89b(0x19e)](_0x5981cc)??{'status':_0x32d89b(0x25b),'version':0x0,'updatedAt':0x0};}[_0x2afa9a(0x1cd)](_0x15058c){const _0x5b1461=_0x2afa9a;return hostedConversationSummary(_0x15058c,this[_0x5b1461(0x120)](_0x15058c['id']));}[_0x2afa9a(0x1b5)](_0x439bc7,_0x116685,_0x518068,_0x248081){const _0x5b0052=_0x2afa9a,_0x2f7929=this[_0x5b0052(0x120)](_0x116685['id']),_0x3e5ebd={'status':_0x518068,'version':_0x2f7929[_0x5b0052(0x15f)]+(-0xe*0x1e7+0x10e7+0x9bc),'updatedAt':_0x248081};this[_0x5b0052(0xfc)][_0x5b0052(0x238)](_0x116685['id'],_0x3e5ebd),this[_0x5b0052(0x129)]({'kind':_0x5b0052(0x120),'userId':_0x439bc7,'templateId':_0x116685[_0x5b0052(0x270)],'conversationId':_0x116685['id'],'activity':_0x3e5ebd});}[_0x2afa9a(0xd2)](_0x32ca6c,_0x105b9e,_0x4db57a,_0x35734a){const _0x341aa4=_0x2afa9a;this[_0x341aa4(0x129)]({'kind':_0x341aa4(0x25a),'event':{'runId':_0x4db57a,'sequence':0x1,'eventType':_0x341aa4(0x25a),'payload':{'targetType':_0x341aa4(0x273),'userId':_0x32ca6c,'templateId':_0x105b9e[_0x341aa4(0x270)],'conversationId':_0x105b9e['id'],'conversationTitle':_0x105b9e[_0x341aa4(0x27b)],'runId':_0x4db57a,'notificationId':_0x341aa4(0x172)+this[_0x341aa4(0xda)][_0x341aa4(0x104)]()+':'+_0x105b9e['id']+':'+_0x4db57a,'kind':_0x341aa4(0xe9),'outcome':_0x35734a[_0x341aa4(0xc7)],'occurredAt':_0x35734a[_0x341aa4(0x139)]},'createdAt':_0x35734a[_0x341aa4(0x139)]}});}[_0x2afa9a(0x129)](_0x4462f9){const _0x53c8ca=_0x2afa9a,_0x56ff9b=this[_0x53c8ca(0xda)][_0x53c8ca(0x1c5)]?.(_0x4462f9)??{'sequence':++this[_0x53c8ca(0x10c)],'category':_0x53c8ca(0x180),'payload':_0x4462f9};if(_0x56ff9b!==undefined)this[_0x53c8ca(0xda)][_0x53c8ca(0x1c1)]?.(_0x56ff9b);}[_0x2afa9a(0x14f)](_0x43bb51,_0x19d4ff,_0x41e576,_0x1a050f){const _0x4945ae=_0x2afa9a;this[_0x4945ae(0xc6)](_0x43bb51['id'],{'conversationId':_0x43bb51['id'],'kind':_0x4945ae(0x17c),'upgrade':{'status':_0x4945ae(0x170),'previousVersionId':_0x19d4ff,'targetVersionId':_0x41e576,'activeVersionId':_0x43bb51[_0x4945ae(0x230)],'conversation':this[_0x4945ae(0x1cd)](_0x43bb51),'error':{'code':safeErrorCode(_0x1a050f,_0x4945ae(0x110)),'message':_0x4945ae(0x165)}}});}[_0x2afa9a(0xc6)](_0x265bef,_0x7acb5a){const _0x45fed1=_0x2afa9a,_0x486d8f=[...this[_0x45fed1(0x24b)][_0x45fed1(0x1d2)]()][_0x45fed1(0x181)](_0x59f064=>_0x59f064[_0x45fed1(0x21d)]===_0x265bef);if(_0x486d8f[_0x45fed1(0x12a)]===-0x1066+0xa54*0x2+0x5*-0xda)return![];const _0x3bce86=this[_0x45fed1(0xda)][_0x45fed1(0x1c5)]?.(_0x7acb5a)??{'sequence':++this[_0x45fed1(0x10c)],'category':_0x45fed1(0x180),'payload':_0x7acb5a};if(_0x3bce86===undefined)return![];for(const _0x55f203 of _0x486d8f){if(!_0x55f203[_0x45fed1(0x15c)])_0x55f203[_0x45fed1(0x1e9)][_0x45fed1(0x158)](_0x3bce86);else this[_0x45fed1(0x144)](_0x55f203,_0x3bce86);}return!![];}[_0x2afa9a(0x144)](_0x42f779,_0x40a389){const _0x113fa2=_0x2afa9a;this[_0x113fa2(0xda)][_0x113fa2(0x10a)]?.({'type':_0x113fa2(0xd0),'workbenchConnectionId':_0x42f779[_0x113fa2(0x18b)],'watchId':_0x42f779[_0x113fa2(0x235)],'nodeGeneration':_0x42f779[_0x113fa2(0x21b)],'nodeId':this[_0x113fa2(0xda)][_0x113fa2(0x104)](),'templateId':_0x42f779[_0x113fa2(0x270)],'conversationId':_0x42f779[_0x113fa2(0x21d)],'expiresAt':_0x42f779[_0x113fa2(0x1c7)],'event':_0x40a389});}[_0x2afa9a(0x132)](_0x3484db){const _0x511854=_0x2afa9a;return{'accepted':!![],'watchId':_0x3484db[_0x511854(0x235)],'nodeGeneration':_0x3484db[_0x511854(0x21b)],'expiresAt':_0x3484db[_0x511854(0x1c7)]};}[_0x2afa9a(0x15e)](_0x2d1ebc){const _0x4b02a9=_0x2afa9a;for(const _0x235c9c of[...this[_0x4b02a9(0x24b)][_0x4b02a9(0x1d2)]()])if(_0x235c9c[_0x4b02a9(0x21d)]===_0x2d1ebc)this[_0x4b02a9(0x262)](_0x235c9c[_0x4b02a9(0x107)]);}[_0x2afa9a(0x262)](_0x3aee1e){const _0x2041ab=_0x2afa9a,_0xd954e3=this[_0x2041ab(0x24b)][_0x2041ab(0x19e)](_0x3aee1e);if(_0xd954e3===undefined)return;clearTimeout(_0xd954e3[_0x2041ab(0x103)]),this[_0x2041ab(0x24b)][_0x2041ab(0x1ac)](_0x3aee1e),this[_0x2041ab(0x147)][_0x2041ab(0x178)](_0x3aee1e,_0xd954e3[_0x2041ab(0x18a)]);}[_0x2afa9a(0x136)](_0x2edd69){const _0x22398f=_0x2afa9a,_0x3f4de6=setTimeout(()=>this[_0x22398f(0x262)](_0x2edd69),WATCH_TTL_MS);return _0x3f4de6[_0x22398f(0x1cf)](),_0x3f4de6;}[_0x2afa9a(0x194)](_0x568c02,_0x113dac){const _0x809326=_0x2afa9a,_0x2efb5e=this[_0x809326(0xda)][_0x809326(0x20c)][_0x809326(0x11b)](_0x568c02,_0x113dac);if(this[_0x809326(0xcc)][_0x809326(0xf3)](_0x2efb5e['id']))throw new Error(_0x809326(0x117));if(_0x2efb5e[_0x809326(0xc7)]!==_0x809326(0x182))throw new Error(_0x809326(0x117));return _0x2efb5e;}[_0x2afa9a(0x258)](_0x43ffbb,_0x3a5c7a,_0x1f62a9){const _0x7697ca=_0x2afa9a;this[_0x7697ca(0xda)][_0x7697ca(0x20c)][_0x7697ca(0x11b)](_0x43ffbb,_0x3a5c7a);const _0x5ec6b1=this[_0x7697ca(0x1c9)][_0x7697ca(0x19e)](_0x1f62a9);if(_0x5ec6b1===undefined||_0x5ec6b1[_0x7697ca(0x14a)]!==_0x43ffbb||_0x5ec6b1[_0x7697ca(0x21d)]!==_0x3a5c7a)throw new Error(_0x7697ca(0x1d8));return _0x5ec6b1;}async[_0x2afa9a(0x216)](_0x2d1ceb,_0x1e659e){const _0x258428=_0x2afa9a;for(const _0x5baaba of this[_0x258428(0x1c9)][_0x258428(0x1d2)]()){if(_0x5baaba[_0x258428(0x14a)]!==_0x2d1ceb||_0x5baaba[_0x258428(0x21d)]!==_0x1e659e)continue;_0x5baaba[_0x258428(0xc7)]===_0x258428(0x268)&&(_0x5baaba[_0x258428(0xc7)]=_0x258428(0x187),await rm(_0x5baaba[_0x258428(0x11d)],{'force':!![]})[_0x258428(0x229)](()=>undefined));}}async[_0x2afa9a(0x1ff)](_0x53114f,_0x29f432,_0x57f80d){const _0x4886bf=_0x2afa9a,_0x12de2b=this[_0x4886bf(0xda)][_0x4886bf(0x20c)][_0x4886bf(0x163)](_0x53114f,_0x29f432,_0x57f80d);if(_0x12de2b[_0x4886bf(0x1f8)]!==_0x4886bf(0x1e2))throw new Error(_0x4886bf(0x242));return await assertRegularFile(this[_0x4886bf(0xda)][_0x4886bf(0x20c)][_0x4886bf(0x115)](_0x53114f,_0x12de2b),_0x12de2b[_0x4886bf(0x111)]),_0x12de2b;}async[_0x2afa9a(0x269)](_0xeb2f6f,_0x1ff9a6,_0x3eaf22,_0x5a9b89,_0x13be31){const _0x23ac19=_0x2afa9a;if(_0x13be31>_0x3eaf22[_0x23ac19(0x265)][_0x23ac19(0x137)])return _0x23ac19(0xe1);if(_0x1ff9a6[_0x23ac19(0x1fd)][_0x23ac19(0xd9)]+_0x13be31>_0x1ff9a6[_0x23ac19(0x1fd)][_0x23ac19(0x1eb)])return _0x23ac19(0x13b);const _0x5e2380=await lstat(join(_0xeb2f6f[_0x23ac19(0x1e3)],_0x5a9b89))[_0x23ac19(0x229)](_0xbddba8=>{const _0x459189=_0x23ac19;if(_0xbddba8[_0x459189(0x14b)]===_0x459189(0x13a))return undefined;throw _0xbddba8;});return _0x5e2380===undefined?_0x23ac19(0x100):_0x23ac19(0x14d);}[_0x2afa9a(0x261)](_0x3a8e4d,_0x37e133,_0x47aaa1,_0x15c753){const _0x192fce=_0x2afa9a,_0x487b5f=[{'logicalPath':_0x192fce(0xfa),'physicalPath':_0x37e133[_0x192fce(0x1c4)],'writable':![]},{'logicalPath':_0x192fce(0x1a1),'physicalPath':_0x3a8e4d[_0x192fce(0x1e3)],'writable':!![]},{'logicalPath':_0x192fce(0x1bd),'physicalPath':_0x3a8e4d[_0x192fce(0x19b)],'writable':!![]}];if(_0x47aaa1!==undefined&&_0x15c753!==undefined)_0x487b5f[_0x192fce(0x158)]({'logicalPath':_0x15c753,'physicalPath':_0x47aaa1,'writable':![]});if(_0x37e133[_0x192fce(0x1db)]!==undefined)_0x487b5f[_0x192fce(0x158)]({'logicalPath':_0x37e133[_0x192fce(0x1db)],'physicalPath':_0x37e133[_0x192fce(0x1c4)],'writable':![]},{'logicalPath':join(_0x37e133[_0x192fce(0x1db)],_0x192fce(0x19d)),'physicalPath':_0x3a8e4d[_0x192fce(0x1e3)],'writable':!![]},{'logicalPath':join(_0x37e133[_0x192fce(0x1db)],_0x192fce(0x128)),'physicalPath':_0x3a8e4d[_0x192fce(0x19b)],'writable':!![]});return _0x487b5f;}[_0x2afa9a(0xf5)](_0x37187b,_0x4eb5d1,_0x5ca4c2=_0x37187b[_0x2afa9a(0x1b7)],_0x196e07,_0x145ca2){const _0x230416=_0x2afa9a;return this[_0x230416(0xda)][_0x230416(0x209)]({'policyVersion':HOST_POLICY_VERSION,'workspaceDirectory':_0x4eb5d1[_0x230416(0x1c4)],..._0x4eb5d1[_0x230416(0x1db)]===undefined?{}:{'sourceWorkspacePath':_0x4eb5d1[_0x230416(0x1db)]},'inboxDirectory':_0x37187b[_0x230416(0x1e3)],'outputDirectory':_0x37187b[_0x230416(0x19b)],..._0x196e07===undefined||_0x145ca2===undefined?{}:{'generatedImagesDirectory':_0x196e07,'generatedImagesLogicalPath':_0x145ca2},'temporaryDirectory':_0x5ca4c2,'networkMode':_0x4eb5d1[_0x230416(0x11c)][_0x230416(0x256)]});}[_0x2afa9a(0x250)](_0x2b0042){const _0x16654b=_0x2afa9a,_0x57feee=this[_0x16654b(0xda)][_0x16654b(0x146)][_0x16654b(0xff)][_0x16654b(0x19c)](_0x16654b(0x212))[_0x16654b(0x19e)](_0x2b0042);if(_0x57feee===undefined)return undefined;if(typeof _0x57feee['id']!==_0x16654b(0x225))throw new Error(_0x16654b(0x197));return _0x57feee['id'];}async[_0x2afa9a(0x105)](_0x440a61,_0x5a1de7){const _0x20bf5c=_0x2afa9a,_0x152c4e=this[_0x20bf5c(0xda)][_0x20bf5c(0x146)][_0x20bf5c(0xff)][_0x20bf5c(0x19c)](_0x20bf5c(0x17e))[_0x20bf5c(0x19e)](_0x440a61,_0x5a1de7);if(_0x152c4e===undefined||_0x152c4e[_0x20bf5c(0xc7)]!==_0x20bf5c(0x152)&&_0x152c4e[_0x20bf5c(0xc7)]!==_0x20bf5c(0x150)||_0x152c4e[_0x20bf5c(0x175)]!==HOST_POLICY_VERSION||typeof _0x152c4e[_0x20bf5c(0xe8)]!==_0x20bf5c(0x225)||typeof _0x152c4e[_0x20bf5c(0x22f)]!==_0x20bf5c(0x225)||typeof _0x152c4e[_0x20bf5c(0x1b2)]!==_0x20bf5c(0x225)||typeof _0x152c4e[_0x20bf5c(0xf1)]!==_0x20bf5c(0x225)||typeof _0x152c4e[_0x20bf5c(0x1e4)]!==_0x20bf5c(0x225))throw new Error(_0x20bf5c(0x197));const _0x15e9cf=this[_0x20bf5c(0xda)][_0x20bf5c(0x20c)][_0x20bf5c(0x24f)](_0x152c4e[_0x20bf5c(0xe8)]),_0x5ecda9=join(_0x15e9cf,_0x20bf5c(0x251)),_0xb5fdd7=join(_0x15e9cf,_0x20bf5c(0x191)),_0x5c10c3=await lstat(_0x5ecda9)[_0x20bf5c(0x229)](()=>undefined),_0x4d5449=await lstat(_0xb5fdd7)[_0x20bf5c(0x229)](()=>undefined);if(_0x5c10c3===undefined||!_0x5c10c3[_0x20bf5c(0x1bf)]()||_0x5c10c3[_0x20bf5c(0x12f)]()||_0x4d5449===undefined||!_0x4d5449[_0x20bf5c(0x1ab)]()||_0x4d5449[_0x20bf5c(0x12f)]()||(_0x4d5449[_0x20bf5c(0x190)]&0x1*-0x1743+0x17*0xbf+-0x2b3*-0x3)!==0xb*0x1fc+0x20d+-0xc*0x1df)throw new Error(_0x20bf5c(0x197));let _0x11981a;try{const _0x43fed2=await readFile(_0x5ecda9,_0x20bf5c(0x26c)),_0x369b2a=_0x43fed2[_0x20bf5c(0x214)]('\x0a')?_0x43fed2[_0x20bf5c(0xde)](0x2443+-0x941+-0x1b02,-(0x851*0x1+-0x1d8a+0x153a)):_0x43fed2;if(_0x369b2a!==_0x152c4e[_0x20bf5c(0x22f)]||createHash(_0x20bf5c(0x1af))[_0x20bf5c(0xe4)](_0x369b2a)[_0x20bf5c(0x188)](_0x20bf5c(0x133))!==_0x152c4e[_0x20bf5c(0xf1)])throw new Error(_0x20bf5c(0x197));_0x11981a=JSON[_0x20bf5c(0x221)](_0x369b2a);}catch{throw new Error(_0x20bf5c(0x197));}if(!record(_0x11981a))throw new Error(_0x20bf5c(0x197));const _0x36863f=publishedTemplateSnapshot(_0x11981a),_0x504160=publishedTemplateDraft(_0x36863f[_0x20bf5c(0xca)],_0x11981a[_0x20bf5c(0x11c)]),_0x34a782=_0x504160[_0x20bf5c(0x11c)],_0x5bfe1b=publishedMcpServers(_0x11981a[_0x20bf5c(0x1b4)]),_0x5ee14=publishedTemplateContentHash(_0x36863f[_0x20bf5c(0x1e1)],_0x36863f[_0x20bf5c(0x12e)],_0x36863f[_0x20bf5c(0xca)]),_0x410af9=_0x36863f[_0x20bf5c(0x12e)][_0x20bf5c(0xd3)]((_0x1fb186,_0x5c6546)=>_0x1fb186+_0x5c6546[_0x20bf5c(0x111)],0x7*-0x19c+0xd*-0x10+0xc14);if(_0x11981a[_0x20bf5c(0xd8)]!==_0x152c4e[_0x20bf5c(0x1e4)]||createHash(_0x20bf5c(0x1af))[_0x20bf5c(0xe4)](JSON[_0x20bf5c(0x16b)](_0x5bfe1b))[_0x20bf5c(0x188)](_0x20bf5c(0x133))!==_0x152c4e[_0x20bf5c(0x1e4)]||_0x11981a[_0x20bf5c(0x16a)]!==_0x152c4e[_0x20bf5c(0x1b2)]||_0x5ee14!==_0x152c4e[_0x20bf5c(0x1b2)]||_0x152c4e[_0x20bf5c(0x20e)]!==_0x36863f[_0x20bf5c(0x12e)][_0x20bf5c(0x12a)]||_0x152c4e[_0x20bf5c(0x248)]!==_0x410af9)throw new Error(_0x20bf5c(0x197));if(_0x11981a[_0x20bf5c(0x196)]!==_0x440a61||_0x11981a[_0x20bf5c(0x270)]!==_0x5a1de7||_0x11981a[_0x20bf5c(0x148)]!==HOST_POLICY_VERSION||_0x34a782[_0x20bf5c(0x270)]!==_0x5a1de7||_0x34a782[_0x20bf5c(0x104)]!==this[_0x20bf5c(0xda)][_0x20bf5c(0x104)]())throw new Error(_0x20bf5c(0x197));return{'id':_0x440a61,'templateId':_0x5a1de7,'storageKey':_0x152c4e[_0x20bf5c(0xe8)],'templateDirectory':_0xb5fdd7,..._0x36863f[_0x20bf5c(0x1db)]===undefined?{}:{'sourceWorkspacePath':_0x36863f[_0x20bf5c(0x1db)]},'draft':_0x34a782,'modelPolicy':_0x504160[_0x20bf5c(0x1a5)],'mcpServers':_0x5bfe1b};}}function hostedRequest(_0x4771ee){const _0x564720=_0x2afa9a;if(!record(_0x4771ee))throw new Error(_0x564720(0x192));const {__requestUserId:_0x1a73e6,__template:_0x22b5a6,__marAgentModel:_0x3ecfca,__marAgentModels:_0x4a83d1,__marAgentRuntimeScopeId:_0x3a9469,__workspaceWatchSessionHash:_0x4e12eb,__templateDeleted:_0x507ec4,..._0x3d4495}=_0x4771ee;if(typeof _0x1a73e6!==_0x564720(0x1aa)||!Number[_0x564720(0x16c)](_0x1a73e6)||_0x1a73e6<=0x1*0x544+0x1d*0xd0+0xcd*-0x24)throw new Error(_0x564720(0x192));if(_0x507ec4!==undefined&&_0x507ec4!==!![])throw new Error(_0x564720(0x192));if(_0x3a9469!==undefined&&(typeof _0x3a9469!==_0x564720(0x225)||_0x3a9469[_0x564720(0x12a)]===-0x1516+0x319+0x11fd))throw new Error(_0x564720(0x192));return{'data':_0x3d4495,'userId':_0x1a73e6,..._0x22b5a6===undefined?{}:{'template':_0x22b5a6},..._0x3ecfca===undefined?{}:{'model':_0x3ecfca},..._0x4a83d1===undefined?{}:{'models':_0x4a83d1},..._0x3a9469===undefined?{}:{'runtimeScopeId':_0x3a9469},..._0x4e12eb===undefined?{}:{'sessionHash':_0x4e12eb},..._0x507ec4===!![]?{'templateDeleted':!![]}:{}};}function requireWatchSessionHash(_0x2bcdec){const _0x24e35f=_0x2afa9a;if(typeof _0x2bcdec!==_0x24e35f(0x225)||_0x2bcdec[_0x24e35f(0x12a)]===0x7*-0x451+-0x1b74+0x39ab)throw new Error(_0x24e35f(0x192));return _0x2bcdec;}function watchOwnerKey(_0x5cf5f3,_0x236464){return _0x5cf5f3+':'+_0x236464;}function runtimeModels(_0x533e97){const _0xa0364e=_0x2afa9a;return marAgentRuntimeModelConfigurationSchema[_0xa0364e(0x220)]()[_0xa0364e(0x221)](_0x533e97);}function allowedModels(_0x1779ae,_0x5acc15){const _0x36430b=_0x2afa9a,_0x2cddb8=new Set(_0x1779ae[_0x36430b(0x1a5)][_0x36430b(0x1d9)]);return _0x5acc15[_0x36430b(0x181)](_0x181efd=>_0x181efd[_0x36430b(0x189)]&&_0x2cddb8[_0x36430b(0xf3)](_0x1779ae[_0x36430b(0x1a5)][_0x36430b(0x135)]===_0x36430b(0x168)?_0x181efd[_0x36430b(0xfe)]:_0x181efd['id']));}function selectModel(_0x1e40b2,_0x8a1099,_0x563def){const _0x3d3f7f=_0x2afa9a,_0x3da9a0=allowedModels(_0x1e40b2,_0x8a1099),_0x3ee86b=_0x3da9a0[_0x3d3f7f(0x106)](_0x161c30=>_0x161c30['id']===_0x563def);if(_0x3ee86b!==undefined)return _0x3ee86b;const _0x314675=_0x3da9a0[_0x3d3f7f(0x106)](_0x3a90ea=>(_0x1e40b2[_0x3d3f7f(0x1a5)][_0x3d3f7f(0x135)]===_0x3d3f7f(0x168)?_0x3a90ea[_0x3d3f7f(0xfe)]:_0x3a90ea['id'])===_0x1e40b2[_0x3d3f7f(0x1a5)][_0x3d3f7f(0x10b)]);if(_0x314675!==undefined)return _0x314675;const _0x38e3f1=_0x1e40b2[_0x3d3f7f(0x1a5)][_0x3d3f7f(0x1d9)][_0x3d3f7f(0x1bc)](_0x980068=>_0x3da9a0[_0x3d3f7f(0x106)](_0x450e87=>(_0x1e40b2[_0x3d3f7f(0x1a5)][_0x3d3f7f(0x135)]===_0x3d3f7f(0x168)?_0x450e87[_0x3d3f7f(0xfe)]:_0x450e87['id'])===_0x980068))[_0x3d3f7f(0x106)](_0x2d5c38=>_0x2d5c38!==undefined);if(_0x38e3f1===undefined)throw new Error(_0x3d3f7f(0x233));return _0x38e3f1;}function publishedTemplateDraft(_0x51da48,_0x5747c7){const _0x1a1c63=_0x2afa9a,_0x31e080=conversationTemplateDraftSchema[_0x1a1c63(0xc4)](_0x5747c7);if(_0x31e080[_0x1a1c63(0x25d)]){const {allowedModels:_0x10f47b,defaultModelId:_0xfc684d,..._0x5e59a8}=_0x31e080[_0x1a1c63(0xf8)];return{'draft':_0x5e59a8,'modelPolicy':{'identity':_0x1a1c63(0x168),'allowedIds':_0x10f47b[_0x1a1c63(0x1bc)](_0xd56160=>_0xd56160[_0x1a1c63(0xfe)]),'defaultId':_0xfc684d}};}if(_0x51da48!==0x863*0x1+-0xce4+0x482||!record(_0x5747c7)||_0x1a1c63(0x24c)in _0x5747c7||!Array[_0x1a1c63(0x1d5)](_0x5747c7[_0x1a1c63(0x23f)]))throw new Error(_0x1a1c63(0x197));const _0x22eaa9=_0x5747c7[_0x1a1c63(0x23f)],_0x1256a2={..._0x5747c7};delete _0x1256a2[_0x1a1c63(0x23f)];const _0x4615cb=conversationTemplateDraftSchema[_0x1a1c63(0xc4)]({..._0x1256a2,'allowedModels':_0x22eaa9[_0x1a1c63(0x1bc)](_0x2034f8=>({'modelId':_0x2034f8,'name':_0x2034f8}))});if(!_0x4615cb[_0x1a1c63(0x25d)])throw new Error(_0x1a1c63(0x197));const {allowedModels:_0x9fef7b,defaultModelId:_0x51c832,..._0x1ef1dd}=_0x4615cb[_0x1a1c63(0xf8)];return{'draft':_0x1ef1dd,'modelPolicy':{'identity':_0x1a1c63(0x211),'allowedIds':_0x9fef7b[_0x1a1c63(0x1bc)](_0x33cb14=>_0x33cb14[_0x1a1c63(0xfe)]),'defaultId':_0x51c832}};}function networkModels(_0x40265a,_0x471a7d){const _0x1d9cbd=_0x2afa9a;if(_0x471a7d!==_0x1d9cbd(0x228))return _0x40265a;return _0x40265a[_0x1d9cbd(0x1bc)](_0x2bdae3=>_0x2bdae3[_0x1d9cbd(0x12c)]?{..._0x2bdae3,'hostedWebSearch':![]}:_0x2bdae3);}function publishedMcpServers(_0x49dd77){const _0x6e2d04=_0x2afa9a;if(!Array[_0x6e2d04(0x1d5)](_0x49dd77))throw new Error(_0x6e2d04(0x197));return _0x49dd77[_0x6e2d04(0x1bc)](_0x27657f=>{const _0xf299f=_0x6e2d04;if(!record(_0x27657f))throw new Error(_0xf299f(0x197));const _0x583645=Object[_0xf299f(0xe0)](_0x27657f)[_0xf299f(0x25c)]()[_0xf299f(0x224)](',');if(_0x583645!==_0xf299f(0x1f7))throw new Error(_0xf299f(0x197));const _0x2735c6=mcpRuntimeDescriptorSchema[_0xf299f(0x221)](_0x27657f[_0xf299f(0x245)]),_0x33c9ef=mcpInstallationConfigurationSchema[_0xf299f(0x221)](_0x27657f[_0xf299f(0x1a7)]);if(typeof _0x27657f['id']!==_0xf299f(0x225)||typeof _0x27657f[_0xf299f(0x1a0)]!==_0xf299f(0x225)||typeof _0x27657f[_0xf299f(0x20a)]!==_0xf299f(0x225)||typeof _0x27657f[_0xf299f(0x15f)]!==_0xf299f(0x225)||_0x27657f[_0xf299f(0x20f)]!==_0xf299f(0x171)&&_0x27657f[_0xf299f(0x20f)]!==_0xf299f(0x11f)||_0x27657f[_0xf299f(0x10f)]!==_0x2735c6[_0xf299f(0x10f)])throw new Error(_0xf299f(0x197));return{'id':_0x27657f['id'],'serverName':_0x27657f[_0xf299f(0x1a0)],'displayName':_0x27657f[_0xf299f(0x20a)],'version':_0x27657f[_0xf299f(0x15f)],'origin':_0x27657f[_0xf299f(0x20f)],'transport':_0x2735c6[_0xf299f(0x10f)],'runtime':_0x2735c6,'configuration':_0x33c9ef};});}function publishedTemplateSnapshot(_0x29b546){const _0x108374=_0x2afa9a;if(_0x29b546[_0x108374(0xca)]===-0x23ab+-0x23bc+0x4768){const _0x185812=publishedTemplateFiles(_0x29b546[_0x108374(0x134)]);return{'schemaVersion':0x1,'directories':legacyPublishedTemplateDirectories(_0x185812),'entries':_0x185812};}if(_0x29b546[_0x108374(0xca)]!==0x11*0x126+0x8*-0x32e+0x5ec||typeof _0x29b546[_0x108374(0x1db)]!==_0x108374(0x225)||!Array[_0x108374(0x1d5)](_0x29b546[_0x108374(0x1e1)])||!Array[_0x108374(0x1d5)](_0x29b546[_0x108374(0x12e)]))throw new Error(_0x108374(0x197));validatePublishedSourceWorkspacePath(_0x29b546[_0x108374(0x1db)]);const _0x6ad149=_0x29b546[_0x108374(0x1e1)][_0x108374(0x1bc)](safePublishedTemplateRelativePath);if(new Set(_0x6ad149)[_0x108374(0x111)]!==_0x6ad149[_0x108374(0x12a)]||_0x6ad149[_0x108374(0x166)](_0x108374(0x19d))||_0x6ad149[_0x108374(0x166)](_0x108374(0x128)))throw new Error(_0x108374(0x197));const _0x57c5ba=_0x29b546[_0x108374(0x12e)][_0x108374(0x1bc)](publishedTemplateEntry);if(new Set(_0x57c5ba[_0x108374(0x1bc)](_0x38cbfe=>_0x38cbfe[_0x108374(0x179)]))[_0x108374(0x111)]!==_0x57c5ba[_0x108374(0x12a)])throw new Error(_0x108374(0x197));return{'schemaVersion':0x2,'sourceWorkspacePath':_0x29b546[_0x108374(0x1db)],'directories':_0x6ad149,'entries':_0x57c5ba};}function publishedTemplateEntry(_0x483a43){const _0x410d03=_0x2afa9a;if(!record(_0x483a43))throw new Error(_0x410d03(0x197));if(_0x483a43[_0x410d03(0x272)]===_0x410d03(0x1fa))return publishedTemplateFile(_0x483a43,!![]);if(_0x483a43[_0x410d03(0x272)]!==_0x410d03(0x15a)||typeof _0x483a43[_0x410d03(0x167)]!==_0x410d03(0x225)||_0x483a43[_0x410d03(0x167)][_0x410d03(0x12a)]===0x55d*0x7+0x1929+-0x3eb4||_0x483a43[_0x410d03(0x167)][_0x410d03(0x166)]('\x00')||_0x483a43[_0x410d03(0x113)]!==_0x410d03(0xc8)&&_0x483a43[_0x410d03(0x113)]!==_0x410d03(0x142)||typeof _0x483a43[_0x410d03(0x159)]!==_0x410d03(0x225))throw new Error(_0x410d03(0x197));const _0x567ff8=safePublishedTemplateRelativePath(_0x483a43[_0x410d03(0x179)]),_0xef74b9=safePublishedTemplateSize(_0x483a43[_0x410d03(0x111)]),_0x4ae38c=_0x483a43[_0x410d03(0x167)],_0x16d242=_0x483a43[_0x410d03(0x113)],_0x16eb93=_0x483a43[_0x410d03(0x159)];if(_0xef74b9!==Buffer[_0x410d03(0xce)](_0x4ae38c))throw new Error(_0x410d03(0x197));if(_0x16d242===_0x410d03(0xc8))safePublishedTemplateRelativePath(_0x16eb93);else{if(!isAbsolute(_0x16eb93)||!RUNTIME_LINK_ROOTS[_0x410d03(0x19a)](_0xe4beca=>_0x16eb93===_0xe4beca||within(_0xe4beca,_0x16eb93)))throw new Error(_0x410d03(0x197));}return{'kind':_0x410d03(0x15a),'relativePath':_0x567ff8,'size':_0xef74b9,'linkTarget':_0x4ae38c,'targetKind':_0x16d242,'resolvedTarget':_0x16eb93};}function publishedTemplateFiles(_0x4fd5f9){const _0x414760=_0x2afa9a;if(!Array[_0x414760(0x1d5)](_0x4fd5f9))throw new Error(_0x414760(0x197));const _0x5630f1=new Set();return _0x4fd5f9[_0x414760(0x1bc)](_0x1eff49=>{const _0x5da338=_0x414760,_0x5f13c0=publishedTemplateFile(_0x1eff49);if(_0x5630f1[_0x5da338(0xf3)](_0x5f13c0[_0x5da338(0x179)]))throw new Error(_0x5da338(0x197));return _0x5630f1[_0x5da338(0x278)](_0x5f13c0[_0x5da338(0x179)]),_0x5f13c0;});}function publishedTemplateFile(_0xe94f97,_0x5d6aca=![]){const _0xb186b1=_0x2afa9a;if(!record(_0xe94f97)||_0x5d6aca&&_0xe94f97[_0xb186b1(0x272)]!==_0xb186b1(0x1fa)||typeof _0xe94f97[_0xb186b1(0x17b)]!==_0xb186b1(0x1b9)||typeof _0xe94f97[_0xb186b1(0x1af)]!==_0xb186b1(0x225)||!/^[a-f0-9]{64}$/u[_0xb186b1(0x1a3)](_0xe94f97[_0xb186b1(0x1af)]))throw new Error(_0xb186b1(0x197));return{'kind':_0xb186b1(0x1fa),'relativePath':safePublishedTemplateRelativePath(_0xe94f97[_0xb186b1(0x179)]),'size':safePublishedTemplateSize(_0xe94f97[_0xb186b1(0x111)]),'executable':_0xe94f97[_0xb186b1(0x17b)],'sha256':_0xe94f97[_0xb186b1(0x1af)]};}function safePublishedTemplateRelativePath(_0x3a952d){const _0x123939=_0x2afa9a;if(typeof _0x3a952d!==_0x123939(0x225)||_0x3a952d[_0x123939(0x12a)]===-0x26a1+0x1392+0x7*0x2b9||_0x3a952d[_0x123939(0x20b)]('/')||_0x3a952d[_0x123939(0x166)]('\x5c')||_0x3a952d[_0x123939(0x26d)]('/')[_0x123939(0x19a)](_0x590624=>_0x590624[_0x123939(0x12a)]===-0x25f+0x4b*0x45+-0x2*0x8ec||_0x590624==='.'||_0x590624==='..'))throw new Error(_0x123939(0x197));return _0x3a952d;}function safePublishedTemplateSize(_0x4e4351){const _0x4825c0=_0x2afa9a;if(!Number[_0x4825c0(0x16c)](_0x4e4351)||_0x4e4351<-0x2016*0x1+-0x124f+0x3265)throw new Error(_0x4825c0(0x197));return _0x4e4351;}function legacyPublishedTemplateDirectories(_0x18766d){const _0x31e284=_0x2afa9a,_0x1ebee3=new Set();for(const _0x4b3b60 of _0x18766d){const _0x4450bf=_0x4b3b60[_0x31e284(0x179)][_0x31e284(0x26d)]('/');for(let _0x2b37ee=0x3*-0xcf0+0x1811+-0x10*-0xec;_0x2b37ee<_0x4450bf[_0x31e284(0x12a)];_0x2b37ee+=-0x19af+0x1d13+0x33*-0x11)_0x1ebee3[_0x31e284(0x278)](_0x4450bf[_0x31e284(0xde)](-0x3da+-0x163*-0x11+-0x13b9,_0x2b37ee)[_0x31e284(0x224)]('/'));}return[..._0x1ebee3][_0x31e284(0x25c)]((_0x69215d,_0x31a1ec)=>_0x69215d[_0x31e284(0x13c)](_0x31a1ec,_0x31e284(0x198)));}function publishedTemplateContentHash(_0x389b60,_0x1be887,_0xd95fb3){const _0x1fa40f=_0x2afa9a,_0x444a06=_0xd95fb3===-0x9a*0x3d+-0xc6a+0x311d?_0x1be887[_0x1fa40f(0x1bc)](_0x23f51a=>{const _0x5a7ca3=_0x1fa40f;if(_0x23f51a[_0x5a7ca3(0x272)]!==_0x5a7ca3(0x1fa))throw new Error(_0x5a7ca3(0x197));return _0x23f51a[_0x5a7ca3(0x179)]+'\x00'+_0x23f51a[_0x5a7ca3(0x111)]+'\x00'+_0x23f51a[_0x5a7ca3(0x1af)];})[_0x1fa40f(0x224)]('\x0a'):[..._0x389b60[_0x1fa40f(0x1bc)](_0x5c154b=>_0x1fa40f(0x140)+_0x5c154b),..._0x1be887[_0x1fa40f(0x1bc)](_0x4a098c=>_0x4a098c[_0x1fa40f(0x272)]===_0x1fa40f(0x1fa)?_0x4a098c[_0x1fa40f(0x272)]+'\x00'+_0x4a098c[_0x1fa40f(0x179)]+'\x00'+_0x4a098c[_0x1fa40f(0x111)]+'\x00'+(_0x4a098c[_0x1fa40f(0x17b)]?0x19*0x29+0x14c5+-0x18c5:0xb76+0xb*0x13a+-0x63d*0x4)+'\x00'+_0x4a098c[_0x1fa40f(0x1af)]:_0x4a098c[_0x1fa40f(0x272)]+'\x00'+_0x4a098c[_0x1fa40f(0x179)]+'\x00'+_0x4a098c[_0x1fa40f(0x111)]+'\x00'+_0x4a098c[_0x1fa40f(0x167)]+'\x00'+_0x4a098c[_0x1fa40f(0x113)]+'\x00'+_0x4a098c[_0x1fa40f(0x159)])][_0x1fa40f(0x224)]('\x0a');return createHash(_0x1fa40f(0x1af))[_0x1fa40f(0xe4)](_0x444a06)[_0x1fa40f(0x188)](_0x1fa40f(0x133));}function validatePublishedSourceWorkspacePath(_0x30bfd4){const _0x27dc6f=_0x2afa9a;if(!isAbsolute(_0x30bfd4)||resolve(_0x30bfd4)!==_0x30bfd4||_0x30bfd4==='/'||RESERVED_SANDBOX_ROOTS[_0x27dc6f(0x19a)](_0x3f0076=>_0x30bfd4===_0x3f0076||within(_0x3f0076,_0x30bfd4)||within(_0x30bfd4,_0x3f0076)))throw new Error(_0x27dc6f(0x197));}function within(_0x303248,_0x27fbd0){const _0x5e0e61=_0x2afa9a,_0xf68bf4=relative(_0x303248,_0x27fbd0);return _0xf68bf4[_0x5e0e61(0x12a)]>-0x5*-0x4e8+0xbc1+-0x2449&&_0xf68bf4!=='..'&&!_0xf68bf4[_0x5e0e61(0x20b)]('..'+sep);}function _0x1aae(){const _0x42f88e=['CMvSzwfZzvnLC3nPB24','uLvox0LnquDfx05pvf9gt1vora','C3rHCNrnzxnZywDL','ChjVy2vZC0v4zwn1Dg9YrMfJDg9YEq','zgLZCgXHEu5HBwu','C3rHCNrZv2L0Aa','C3rVCMu','uLvotKLorW','zMLSzv9JB3vUDa','B3jPz2LU','CMvJB25JAwXLrMLSzxm','q09orKLhvvjbveLptL9jra','u0vmrunuigLKiezst00Gy29UDMvYC2f0Aw9Ux3rLBxbSyxrLx3zLCNnPB25ZcIaGicaGicaGifDirvjfihrLBxbSyxrLx2LKpt8Gqu5eihn0yxr1CZ0NqvzbsuXbqKXfjWOGicaGicaGicbpuKrfuIbcwsb2zxjZAw9Ux251BwjLCIbervndlhb1yMXPC2HLzf9HDcbervndlgLKierfu0mkicaGicaGicaGteLnsvqGmq','rvHfq1vusu9o','zw5KC1DPDgG','DxbSB2fKC0j5uMvXDwvZDa','y2fUy2vSq29UDMvYC2f0Aw9UvxbSB2fKCW','r2vUzxjHDgvKigLTywDLCYbMCM9TihrOAxmGy29UDMvYC2f0Aw9UihjLBwfPBIbHDMfPBgfIBguGywnYB3nZigv4zwn1DgLVBNmGAw4GDgHLihjLywqTB25SEsa','Aw1Hz2vjBMrLEa','ChjVDg9JB2W','zgLZCg9Zzq','BM9KzuDLBMvYyxrPB24','Aw5PDgLHBgL6zvDHDgnOtgvHC2u','y29UDMvYC2f0Aw9Uswq','y3jLyxrLtwvZC2fNzq','zxHWzwn0zwrjBNrLCNj1ChrPB25Z','yxjYyxK','CgfYC2u','v2HLBIb0AguGDxnLCIbHC2TZihrVihbSywnLigeGChjLDMLVDxnSEsbNzw5LCMf0zwqGAw1Hz2uGAw4GB3v0Chv0lcbPBNnWzwn0ia','CNvUDgLTzvnJB3bLswq','AM9PBG','C3rYAw5N','CMvZCg9UC2vZvhjHBNnWB3j0','CMvJzwL2zwrcExrLCW','tK9orq','y2f0y2G','Bwf4','BgLTAxq','nJm2m3j4q0LkrG','zgf0yujHC2u2na','Aw5WDxrdyxbHyMLSAxrPzxm','BwfUAwzLC3q','ywn0AxzLvMvYC2LVBKLK','l3nIAw4','yxr0ywnOBwvUDeLKCW','se9tvevex0nptLzfuLnbveLptL9nt0rftf9ot1rFqvzbsuXbqKXf','DxbKyxrLtwv0ywrHDge','D2f0y2Hjza','mte5nZqZnZbxD1r2zwu','zw52AxjVBM1LBNq','C2v0','tg9JywWGChjVy2vZC2vZlcboB2rLlwXVy2fSifDLyIbgzxrJAcWGyxzHAwXHyMXLifDLyIbtzwfYy2GSig1VzgvSlwHVC3rLzcb3zwiSigfUzcbWDwjSAxnOzwqGCMvTB3rLieHuvfaGtunqig1HEsbHy2nLC3mGBMv0D29YA3mGCMvHy2HHyMXLigzYB20GDgHPCYboB2rLlG','qxr0ywnOBwvUDhm6cG','AgvHzgvYCW','Bwf4u3rVCMfNzuj5DgvZ','BgLZDenVBNzLCNnHDgLVBNm','se9tvevex0nptLzfuLnbveLptL9uru1qtefurv9vtKfwquLmqujmrq','ywXSB3DLze1VzgvSswrZ','BMfTzq','se9tvevex0nptLzfuLnbveLptL9gsuXfx0LovKfmsuq','se9tvevex0nptLzfuLnbveLptL9bvfrbq0Hnru5ux0LovKfmsuq','lNvWBg9Hza','D2fPDezVCLbLBMrPBMDnzxnZywDLu3rHCNrZ','CNvUDgLTzq','C2vJCMv0tMfTzq','CMvUzxC','Dg90ywXFyNL0zxm','CMvHzeLTywDL','yNL0zxnszwfK','D2f0y2HmzwfZzxm','ywXSB3DLze1VzgvSCW','D2f0y2GUzMfPBgvK','y29UDMvYC2f0Aw9Uu3rVCMfNzuTLEq','DgvTCgXHDgvwzxjZAw9UrgLYzwn0B3j5','Bgf0zxn0qxzHAwXHyMXLvgvTCgXHDgvwzxjZAw9Uswq','BwfUAwzLC3qUANnVBG','q09nueXfveve','B3DUCW','Bwf4t3v0Chv0vg9Rzw5Z','zMLSzurLBgv0zxm','BMv0D29YA01Vzgu','ywXSu2v0DgXLza','CMvXDwLYzvvWBg9Hza','zMLUAxnOtwvZC2fNzq','BM90AwzPy2f0Aw9U','surmrq','C29YDa','C3vJy2vZCW','mZqZoti4rNH4ueLO','mtfdt3D1Awm','u1vdq0vfreve','Cgf0Ae1VDw50CW','CMvTB3zLv2f0y2HmzwfZzq','y3vYCMvUDfzLCNnPB25jza','y29UDMvYC2f0Aw9U','CxvVDgfZ','D3jPDgu','lsaVD29YA3nWywnLl2LUyM94lW','vvbmt0fesu5h','DxbSB2fKuhjLzMXPz2H0u3rHDhvZ','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','u3rVCMuGzgLZCg9ZywjSzsbPBNrLCM1LzgLHDguGD29YAYbPBIaVDg1WlIbjDcbPCYbYzxvZzwqGywnYB3nZihj1BNmGAw4GDgHPCYbJB252zxjZyxrPB24Sigj1Dcb0AguGsg9ZDcbTyxKGy2XLyxiGAxqGywnJB3jKAw5NihrVihrOzsbZExn0zw0GDgvTCg9Yyxj5lwrPCMvJDg9YEsbSAwzLy3LJBguU','DxrMoa','C3bSAxq','C3vIyxjYyxK','y3vYC29Y','DgvTCgXHDgvjza','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','A2LUza','se9tvevex0nptLzfuLnbveLptG','y2XPzw50uMvXDwvZDeLK','l2XPyJy0','zMLUzenVBNzLCNnHDgLVBKj5q2XPzw50uMvXDwvZDa','y3jLyxrLvxbSB2fK','ywrK','C2f2zu1LC3nHz2vby2nLChrHBMnL','y3jLyxrL','DgL0Bgu','BgLZDa','y2fUy2vS','y29TCgXLDgLVBG','AgLZDg9YEq','q1vtve9n','y2XVC2u','vgHLieHVC3qGzw5MB3jJzxmGDgHPCYbMAwXLigjVDw5Kyxj5lcbHBMqGBg9JywWGChjVy2vZC2vZihj1BIbPBNnPzguGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','DxbKyxrLq29UzMLNDxjHDgLVBG','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGywXZBYbTB3vUDgvKihjLywqTB25SEsbHDca','C2fMzvbHCNnL','zNjVBq','ChvIBgLZAeHVC3rLzev2zw50','C3rHDhvZ','u05bufnit1q','mZuZn0vLCvLezq','C2nOzw1HvMvYC2LVBG','vvnfuG','y2XLyw51CeXVy2TZ','ChjLCgfYzunVBNzLCNnHDgLVBLrLBxbVCMfYEurPCMvJDg9YEq','yNL0zuXLBMD0Aa','C2vJCMv0rw52AxjVBM1LBNq','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5LDMvUDa','Ag9TzurPCMvJDg9YEq','ChvIBgLZAfrLCM1PBMfStM90AwzPy2f0Aw9U','CMvKDwnL','AxrLBxm','ChjLDMLVDxnwzxjZAw9Uswq','DgvTCgXHDgvezwXLDgvK','y29TBwfUza','BwnWq29UzMLNsgfZAa','DxnLzej5DgvZ','B3b0Aw9UCW','l2rLDG','l3j1BNrPBwu','CgLUBMvKqxq','C2XPy2u','DxbKyxrLzef0','A2v5CW','ve9px0XbuKDf','ihrVic93B3jRC3bHy2uVB3v0Chv0igLUC3rLywqGB2yGCMvJCMvHDgLUzYbVCIbYzwDLBMvYyxrPBMCGAxqU','ChjVBxb0','DxbKyxrL','su5urvjsvvburuq','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5ZBMfWC2HVDa','D2f0y2G','C3rVCMfNzv9RzxK','uLvox1rfuK1jtKfm','yxjNDw1LBNrZ','DgHLBG','zNvSBc1Hy2nLC3m','zMLUAxnOuNvU','DgvTCgXHDgvoyw1L','BMXPBMS','DgL0BgvdAgfUz2vK','BwfUAwzLC3rFAgfZAa','y29UDgv4DfDPBMrVD1rVA2vUCW','AgfZ','zMLSzq','ChjVy2vZC0v4zwn1Dg9Y','ChvIBgLZAfj1BNrPBwvfDMvUDa','zgLZywjSzvbYzxbHCMvK','zgf0yq','ywXSB2m','l3DVCMTZCgfJzq','BM93','ywn0AxzPDgLLCW','yxbWBhLbDxrVBwf0AwnuAxrSzq','Bw9KzwXjza','CMf3','uKvbrfK','CMvWBgfJzq','CMvHC29UAw5NrwzMB3j0CW','DgLTzxi','BM9KzuLK','Bg9HzfrLBxbSyxrLvMvYC2LVBG','zMLUza','B3DUzxjlzxK','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu0LArv9jtLzbteLe','y2XPzw50twvZC2fNzuLK','zw1PDfDHDgnOrxzLBNq','zgvMyxvSDeLK','D29YA2jLBMnOu2vXDwvUy2u','ywn0AxzLuNvUCW','CgvYBwfUzw50rgvSzxrLq29UDMvYC2f0Aw9U','DhjHBNnWB3j0','se9tvevex0nptLzfuLnbveLptL9vueDsqurfx0zbsuXfra','C2L6zq','mZu2ody4DhPfvxPd','DgfYz2v0s2LUza','Dg9tDhjPBMC','zMLSzvbHDgG','CMvNAxn0zxjgAwXL','se9tvevex0nptLzfuLnbveLptL9tvefurv9jtLzbteLe','DgvTCgXHDgu','CMvZB2X2zq','B3v0Chv0q2fWywjPBgL0AwvZ','CMvXDwLYzunVBNzLCNnHDgLVBG','zhjHzNq','DgvTCg9Yyxj5ugf0Aa','mNDPAwTbuq','v09ss1nqqunf','ywn0AxzPDhK','ywXS','ChjLzMXPz2H0vxbSB2fK','C2f2zuf1Dg9TyxrPy1rPDgXL','Bw9KzwXZ','DxnLCLn0B3jHz2vlzxK','vu5srvnuuKLdveve','mJmWofbiuuXJvW','B3v0Chv0','ChvIBgLZAfDVCMTIzw5JAev2zw50','BgvUz3rO','uMvHzcbPDhmGzxHPC3rPBMCGy29UDgvUDhmGzMLYC3qGyw5KihbYzxnLCNzLihvUCMvSyxrLzcbPBNn0CNvJDgLVBNmUierVig5VDcbWzxjZAxn0igeGChjLzMvYzw5JzsbTzxjLBhKGyMvJyxvZzsbPDcbHChbLyxjZigLUihrOzsbJDxjYzw50ihjLCxvLC3qGDw5SzxnZihrOzsb1C2vYigfZA3mGEw91ihrVihjLBwvTyMvYigL0lG','Ag9ZDgvKv2vIu2vHCMnO','Cgf0AhngB3jdB252zxjZyxrPB24','zw50CMLLCW','AxntEw1IB2XPy0XPBMS','y29TCgXLDgvvCgXVywq','l3bYB2m','ywnJzxb0zwrxyxrJAa','Agv4','zMLSzxm','AwrLBNrPDhK','D2f0y2HmzwfZzvrPBwvY','Bwf4vxbSB2fKqNL0zxm','BgfZDefJDgL2Axr5qxq','y29TCgXLDgvKqxq','ru5pru5u','uvvpvefFrvHdruveruq','Bg9JywXLq29TCgfYzq','ywr2yw5JzuXHC3rby3rPDML0Eq','y29UDMvYC2f0Aw9UrgLYzwn0B3j5','Cgf0Ahm','reLsrunut1jzaa','se9tvevex0nptLzfuLnbveLptL9xqvrdsf9gquLmruq','uLvoveLnrq','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGCM9VDcbPCYbYzwfKlw9UBhKUie9UBhKGl3DVCMTZCgfJzs9PBMjVEcbHBMqGl3DVCMTZCgfJzs9VDxrWDxqGyxjLihDYAxrHyMXLlG','zw1PDfDHDgnOtgvHC2vfDMvUDa','CgvUzgLUz0nYzwf0zxm','zgf0ywjHC2u','C2vZC2LVBLDHDgnOu2XVDhm','Ag9ZDfbVBgLJEvzLCNnPB24','BwLU','DxnLCKLK','y29Kzq','CgvUzgLUz01LC3nHz2vZ','q09orKXjq1q','sg9ZDgvKignVBNzLCNnHDgLVBIbMAwXLihbYB2PLy3rPB24GzMfPBgvKlG','ChvIBgLZAfvWz3jHzgvgywLSDxjL','uKvuquLoruq','y3jLyxrLzef0','qvzbsuXbqKXf','yxzHAwXHyMXL','CMvHza','zgvZy3jPChrPB24','v2HLBIb0AguGDxnLCIbLEhbSAwnPDgX5igfZA3mGEw91ihrVihjLBwvTyMvYigeGCMvXDwLYzw1LBNqSihbYzwzLCMvUy2uSignVBNzLBNrPB24SihDVCMTMBg93ihj1BguSig9Yig90AgvYigD1AwrHBMnLigzVCIbSyxrLCIb3B3jRigLUihrOAxmGy29UDMvYC2f0Aw9UlcbJCMvHDguGB3iGDxbKyxrLic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KlG','se9tvevex0nptLzfuLnbveLptL9gsuXfx0nptKzmsunu','ChvZAa','CMvZB2X2zwruyxjNzxq','u1LnteLosW','DxbSB2fKu3rHDhvZ','CMvHzhK','rg8GBM90igrLC2nYAwjLigvKAxrZihvUzgvYic93B3jRC3bHy2uVAw5IB3GGB3iGl3DVCMTZCgfJzs9VDxrWDxqGyxmGy2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguU','CMvTB3zLq29UDMvYC2f0Aw9Uv2f0y2HmzwfZzxm','DMvYC2LVBG','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','C2vZC2LVBKLK','l2HVBwuVBwfY','CMvXDwLYzuzPBgu','tMv0D29YAYbHy2nLC3mGAxmGzgLZywjSzwqUieXVy2fSihbYB2nLC3nLCYWGv2vIifnLyxjJAcWGv2vIiezLDgnOlcbTB2rLBc1OB3n0zwqGD2vIlcbHBMqGCMvTB3rLieHuvfaGtunqignHBM5VDcb1C2uGDgHLig5LDhDVCMSU','vgHLignVBNzLCNnHDgLVBIb0zw1WBgf0zsb1CgDYywrLigzHAwXLzc4','Aw5JBhvKzxm','BgLUA1rHCMDLDa','vvbtvfjfqu1Ftu9eruXFsuq','qxqGDgHLihn0yxj0ig9MigvHy2GGCNvUlcbYzwfKic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KigLMigL0igv4Axn0CY4GsxqGC3rVCMvZignVBNzLCNnHDgLVBI1ZCgvJAwzPyYbYzxf1AxjLBwvUDhmGzM9YigXHDgvYihj1BNmGyw5KigLZig5VDcbWyxj0ig9MihrOzsbWDwjSAxnOzwqGDgvTCgXHDguU','y29UDgvUDeHHC2G','C3rYAw5NAwz5','AxntywzLsw50zwDLCG','sg9ZDgvKignVBNzLCNnHDgLVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','AgfZtM9Urw1WDhLvC2vYtwvZC2fNzq','DhjPBq','rKfjteve','tK9erq','CNvUoG','zMLUze1LC3nHz2u','igfZigeGy29TCgf0AwjPBgL0EsbHBgLHCZSGAxqGAxmGDgHLihnHBwuGAw1TDxrHyMXLihnUyxbZAg90lcbUB3qGDgHLigXPDMuGC291CMnLifDVCMTZCgfJzs4G','Ag9ZDf9WB2XPy3LFDMvYC2LVBG','igfYzsbHBgLHC2vZig9MihrOzsbZyw1LihDYAxrHyMXLig92zxjSyxLZlG','zMLSzuLK','CMvSzwfZzq','CMvSyxrPDMvqyxrO','uMvHzcb1C2vYihvWBg9HzhmGzNjVBsaVD29YA3nWywnLl2LUyM94lG','zxHLy3v0ywjSzq','DxbNCMfKzq','D3jPDgvvCgXVywrdAhvUAW','u0vmrunuigLKlhrLBxbSyxrLx2LKlhn0yxr1CYXZDg9YywDLx2TLEsXTyw5PzMvZDcXJB250zw50x2HHC2GSBwfUAwzLC3rFAgfZAcXTy3bFy29UzMLNx2HHC2GScIaGicaGicaGicaGicaGicbMAwXLx2nVDw50lhrVDgfSx2j5DgvZlgHVC3rFCg9SAwn5x3zLCNnPB24kicaGicaGicaGrLjptsbJB252zxjZyxrPB25FDgvTCgXHDgvFDMvYC2LVBNmGv0HfuKuGAwq9pYbbtKqGDgvTCgXHDgvFAwq9pW','se9tvevex0nptLzfuLnbveLptL9vueXpqurFt0zgu0vux0LovKfmsuq','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','zMLSDgvY','qunusvzf','Dw53yxrJAa','igrPCMvJDg9YEs4','DxjS','BgLZDezPBgvZ','q0foq0vmteve','zgLNzxn0','zw5HyMXLza','C2XVDfrVA2vU','D29YA2jLBMnOq29UBMvJDgLVBKLK','mJC1mKjjBuPmAq','C25HChnOB3q','CMvZCg9UC2vZuhjLDMLVDxnszxnWB25ZzuLK','BwvZC2fNzq','Bw9Kzq','y29UDgvUDa','se9tvevex0nptLzfuLnbveLptL9ot1rFqvvuse9ssvPfra','u1resu8','CMvXDwLYzvDYAxrHyMXLq29UDMvYC2f0Aw9U','se9tvevex0nptLzfuLnbveLptL9svu5Fqunusvzf','DMvYC2LVBKLK','q09ovKvsu0fusu9ox1rftvbmqvrfx1zfuLnjt05Fq09suLvqveve','zw4Tvvm','DxbKyxrLq29UDMvYC2f0Aw9U','C29Tzq','B3v0Chv0rgLYzwn0B3j5','ChjLCgfYzq','Aw5IB3G','z2v0','q09ovKvsu0fusu9ox1rftvbmqvrfx01duf9jtLzbteLe','C2vYDMvYtMfTzq','l3DVCMTZCgfJzs9PBMjVEa','zMLSzvbYB2PLy3rPB25jza','DgvZDa','zMXHDe1HCa','Bw9KzwXqB2XPy3K','l3rTCa','y29UzMLNDxjHDgLVBG','ugXHy2uGzMLUywWGzgvSAxzLCMfIBgvZigLUigfWChjVChjPyxrLihbHDgHZihvUzgvYic93B3jRC3bHy2uVB3v0Chv0ihnVihrOzxKGyMvJB21LihvZzxiTDMLZAwjSzsbVDxrWDxrZlG','yMfZzvvYBa','BNvTyMvY','AxneAxjLy3rVCNK','zgvSzxrL','u1rbuLrjtKC','l3vZCG','C2HHmJu2','l3j1BG','C3rHCNrLzef0','y29UDgvUDf9OyxnO','DgfYz2v0ugf0Aa','BwnWu2vYDMvYCW','ChvIBgLZAefJDgL2Axr5','yxjNCW','DgvTCg9Yyxj5uM9VDerPCMvJDg9YEq','l2XPyG','yM9VBgvHBG','yxnZzxj0q2fUq3jLyxrL','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jbtKDfx0LovKfmsuq','BwfW','l3DVCMTZCgfJzs9VDxrWDxq','revmrvrfra','AxngAwXL','CMv0ywLUq29UDMvYC2f0Aw9UvgvTCgXHDgu','zw1PDfDVCMTIzw5JAev2zw50','B2jQzwn0','igfUzcbJB3b5ihrOzsbLEgLZDgLUzYbMAwXLigzYB20G','DgvTCgXHDgveAxjLy3rVCNK','BMv4DfDVCMTIzw5JAev2zw50','vgHPCYbPCYbHie5VzguTAg9ZDgvKignVBNzLCNnHDgLVBI4GvgHLieHVC3qTzgvJBgfYzwqGBw91BNrZigfYzsb0AguGy29TCgXLDguGzMLSzsbIB3vUzgfYEs4','zxHWAxjLC0f0','C3rHCNrsDw4','DxbSB2fKCW','ChjLCgfYzuzVCKrPC2fIBgu','y2fUy2vSvxbSB2fK','y3jLyxrLu2vZC2LVBG','C3vTBwfYEq','zgvSzxrLrMLSzq','Dw5Yzwy','CNvUswq','qvvutW','DMfSDwvZ','mtCWmtm3ogzqDw5nra','AxndB252zxjZyxrPB25jBLvZzq','AxnbCNjHEq','DgL0BgvtB3vYy2u','C25HChnOB3rtzxf1zw5Jzq','se9tvevex0nptLzfuLnbveLptL9vueXpqurFtK9ux0zpvu5e','ywXSB3DLzeLKCW','CMvHzezPBgu','C291CMnLv29YA3nWywnLugf0Aa','CNvU','se9tvevex0nptLzfuLnbveLptL9trvntsu9ox0LovKfmsuq','BwLTzvr5Cgu','ChjLCgfYzunVBNzLCNnHDgLVBKvUDMLYB25Tzw50','B2zMC2v0','zgLYzwn0B3jPzxm','vvbmt0fe','DxbSB2fKC0rPCMvJDg9YEq','BwnWx2nVBMzPz19OyxnO','B3bLCMf0Aw9UCW','CMvQzwn0','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGyw4GAw1TDxrHyMXLigfKBwLUAxn0CMf0B3iTBwfPBNrHAw5Lzcb0zw1WBgf0zsbZBMfWC2HVDc4Gq2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguGBxvZDcbIzsbTywrLigLUigL0CYbZB3vYy2uGv29YA3nWywnLigfUzcbWDwjSAxnOzwqGyxmGysbUzxCGDMvYC2LVBI4','se9tvevex0nptLzfuLnbveLptL9vueXpqurFsu5dt01qtevurq','CgvUzgLUz0v2zw50CW','q0foq0vmteLorW','Bwf4qNL0zxm','CgLUBMvK','Cgf0AhngB3jnyw5PzMvZDa','zMLUywXSEq','C2vZC2LVBKHHC2G','rM9SBg93ihnHDMvKignVBNzLCNnHDgLVBIbPBNn0CNvJDgLVBNmGC3vIAMvJDcb0BYb0AguGsg9ZDcDZihnLy3vYAxr5igjVDw5KyxjPzxmSihrOzsbWDwjSAxnOzwqGDgvTCgXHDguGAw5ZDhj1y3rPB25ZlcbHBMqGDgHLihvZzxiNCYbJDxjYzw50igv4CgXPy2L0ihjLCxvLC3qU','mtiZnJu1mgPTC3Lbta','yMfZzty0','C3LUyW','se9tvevex0nptLzfuLnbveLptL9rvu9uqv9fwenfrurfra','y3jLyxrLq29UDMvYC2f0Aw9U','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu1rbvevFsu5wquXjra','y29UzMLNDxjHDgLVBIXKAxnWBgf5tMfTzsXPzcXVCMLNAw4SCNvUDgLTzsXZzxj2zxjoyw1LlhrYyw5ZCg9YDcX2zxjZAw9U','y2f0zwDVCNK','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','rKLmrq','sfruua','DgfYz2v0vMvYC2LVBKLK','CxvVDge','CNvUu2v0DgXLBwvUDhm','CMvXDwLYzuf0DgfJAg1LBNq','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','Aw50zxjYDxb0','DxbSB2fKswq','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jfq09oq0Lmrv9gquLmruq','igfUzca','l2jPBG'];_0x1aae=function(){return _0x42f88e;};return _0x1aae();}function resolveMcpServers(_0x5d999d,_0x188989){const _0x583a6f=_0x2afa9a,_0x2dec6a=_0x4e2643=>{const _0x278840=_0xef59,_0x2293ce={};for(const [_0xc863e5,_0x81c1b8]of Object[_0x278840(0x12e)](_0x4e2643??{})){const _0x56d475=_0x188989[_0x81c1b8[_0x278840(0x246)]];if(_0x56d475===undefined)throw new Error(_0x278840(0x19f));_0x2293ce[_0xc863e5]=_0x56d475;}return _0x2293ce;};return _0x5d999d[_0x583a6f(0x1b4)][_0x583a6f(0x1a4)](_0x1692d3=>{const _0x31308=_0x583a6f;if(_0x1692d3[_0x31308(0x245)][_0x31308(0x10f)]===_0x31308(0x1fb)){if(_0x5d999d[_0x31308(0x11c)][_0x31308(0x256)]!==_0x31308(0x126))return[];return[{'name':_0x1692d3[_0x31308(0x1a0)],'lifecycle':_0x31308(0x213),'transport':_0x31308(0x1fb),'url':_0x1692d3[_0x31308(0x245)][_0x31308(0x185)],'headers':{..._0x2dec6a(_0x1692d3[_0x31308(0x245)][_0x31308(0x23b)]),..._0x2dec6a(_0x1692d3[_0x31308(0x1a7)][_0x31308(0x23b)])}}];}return[{'name':_0x1692d3[_0x31308(0x1a0)],'lifecycle':_0x31308(0x213),'transport':_0x31308(0x193),'command':_0x1692d3[_0x31308(0x245)][_0x31308(0xd7)],'args':[..._0x1692d3[_0x31308(0x245)][_0x31308(0x1b6)],..._0x1692d3[_0x31308(0x1a7)][_0x31308(0xea)]??[]],'environment':{..._0x2dec6a(_0x1692d3[_0x31308(0x245)][_0x31308(0x237)]),..._0x2dec6a(_0x1692d3[_0x31308(0x1a7)][_0x31308(0x237)])}}];});}function hostedConversationSummary(_0x377864,_0x94aea6){const _0x477cdc=_0x2afa9a;return hostedConversationSummarySchema[_0x477cdc(0x221)]({'id':_0x377864['id'],'nodeId':_0x377864[_0x477cdc(0x104)],'sessionId':_0x377864[_0x477cdc(0x161)],'templateId':_0x377864[_0x477cdc(0x270)],'templateName':_0x377864[_0x477cdc(0xee)],'activeVersionId':_0x377864[_0x477cdc(0x230)],'title':_0x377864[_0x477cdc(0x27b)],'pinnedAt':_0x377864[_0x477cdc(0xdd)],'status':_0x377864[_0x477cdc(0xc7)],'modelId':_0x377864[_0x477cdc(0xfe)],'createdAt':_0x377864[_0x477cdc(0x151)],'updatedAt':_0x377864[_0x477cdc(0xdf)],'lastActivityAt':_0x377864[_0x477cdc(0x138)],..._0x94aea6===undefined?{}:{'activity':_0x94aea6}});}function templateSummary(_0x4e9137,_0x325a59){const _0x224bb9=_0x2afa9a;return conversationTemplateSummarySchema[_0x224bb9(0x221)]({'id':_0x4e9137[_0x224bb9(0x270)],'nodeId':_0x4e9137[_0x224bb9(0x104)],'name':_0x4e9137[_0x224bb9(0xee)],'description':_0x325a59[_0x224bb9(0x155)],'status':_0x4e9137[_0x224bb9(0xd6)]?_0x224bb9(0x1be):_0x224bb9(0x182),'currentVersionId':_0x4e9137[_0x224bb9(0x230)],'available':!_0x4e9137[_0x224bb9(0xd6)],'createdAt':_0x4e9137[_0x224bb9(0x151)],'updatedAt':_0x325a59[_0x224bb9(0xdf)]});}function _0xef59(_0x2f6963,_0x183613){_0x2f6963=_0x2f6963-(-0x1104+0x21b4+-0xff0);const _0x2773cc=_0x1aae();let _0x4bfc37=_0x2773cc[_0x2f6963];if(_0xef59['ICoVLA']===undefined){var _0x252f48=function(_0x57b492){const _0x4ae796='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1b22d2='',_0x174fc0='';for(let _0x3580d5=0x3*0x20b+0x679*0x2+-0x1313,_0x4f93e4,_0x101d06,_0x102c9d=0x1399+0x1a01+-0x2d9a;_0x101d06=_0x57b492['charAt'](_0x102c9d++);~_0x101d06&&(_0x4f93e4=_0x3580d5%(-0x18f7+-0x24b3+0xa*0x62b)?_0x4f93e4*(-0x1*-0x1399+-0x2071+0x1*0xd18)+_0x101d06:_0x101d06,_0x3580d5++%(-0x2*0x88a+-0x3*0x791+0x27cb*0x1))?_0x1b22d2+=String['fromCharCode'](0xec1+-0x39c+-0xa26&_0x4f93e4>>(-(0x3eb*-0x4+-0x2ec+0x129a)*_0x3580d5&0x1d3*0x5+0x23f3+0x1f*-0x174)):0x6d*0x1d+-0x1ac0+-0xe67*-0x1){_0x101d06=_0x4ae796['indexOf'](_0x101d06);}for(let _0x23e530=-0x3ac+0x15e1+0x4f*-0x3b,_0x3deb32=_0x1b22d2['length'];_0x23e530<_0x3deb32;_0x23e530++){_0x174fc0+='%'+('00'+_0x1b22d2['charCodeAt'](_0x23e530)['toString'](-0x5e*-0x68+-0x10f0+-0x1530))['slice'](-(0x65*-0x14+-0x1b5d+-0x33*-0xb1));}return decodeURIComponent(_0x174fc0);};_0xef59['ExYAFZ']=_0x252f48,_0xef59['DQfzVY']={},_0xef59['ICoVLA']=!![];}const _0x219424=_0x2773cc[0x92*-0x3d+0xa1d*0x1+-0x1*-0x18ad];_0xef59['eKcpKf']!==_0x219424&&(_0xef59['DQfzVY']={},_0xef59['eKcpKf']=_0x219424);const _0x4b9524=_0xef59['DQfzVY'][_0x2f6963];return _0x4b9524===undefined?(_0x4bfc37=_0xef59['ExYAFZ'](_0x4bfc37),_0xef59['DQfzVY'][_0x2f6963]=_0x4bfc37):_0x4bfc37=_0x4b9524,_0x4bfc37;}function modelSummary(_0x1fe8ce,_0x6cb774){const _0x523266=_0x2afa9a;return{'id':_0x1fe8ce['id'],'name':_0x1fe8ce[_0x523266(0x240)],'protocol':_0x1fe8ce[_0x523266(0x219)],'baseUrl':_0x1fe8ce[_0x523266(0x1a9)],'modelId':_0x1fe8ce[_0x523266(0xfe)],'contextWindowTokens':_0x1fe8ce[_0x523266(0xf2)],'maxOutputTokens':_0x1fe8ce[_0x523266(0x254)],'inputCapabilities':_0x1fe8ce[_0x523266(0x22e)],'outputCapabilities':_0x1fe8ce[_0x523266(0x11a)],'reasoningEfforts':_0x1fe8ce[_0x523266(0x102)],'hostedWebSearch':_0x1fe8ce[_0x523266(0x12c)],..._0x1fe8ce[_0x523266(0x226)]===undefined?{}:{'responsesTransport':_0x1fe8ce[_0x523266(0x226)]},'responsesPreviousResponseId':_0x1fe8ce[_0x523266(0x18e)],'enabled':_0x1fe8ce[_0x523266(0x189)],'sortOrder':_0x6cb774,'apiKeyConfigured':!![]};}function systemInstruction(_0xbdb6cf,_0x236257){const _0x17aaac=_0x2afa9a,_0x125906=_0xbdb6cf[_0x17aaac(0x11c)],_0x20d53f=_0x125906[_0x17aaac(0x256)]===_0x17aaac(0x228)?_0x17aaac(0x164):_0x17aaac(0x239);return[_0x17aaac(0x1c6),_0x17aaac(0xc1),_0x17aaac(0x143),_0x17aaac(0x1e7),_0x17aaac(0x15d),_0x17aaac(0x169),_0x17aaac(0x156),_0x17aaac(0x12b),_0x17aaac(0x1f0),_0x17aaac(0x26b),_0x17aaac(0x1a8),..._0x236257===undefined?[]:[_0x17aaac(0x217)+_0x236257+_0x17aaac(0x184),_0x17aaac(0x222)+_0x236257+_0x17aaac(0x1c3)+_0x236257+_0x17aaac(0xe2)],..._0xbdb6cf[_0x17aaac(0x1db)]===undefined?[]:[_0x17aaac(0xc3)+_0xbdb6cf[_0x17aaac(0x1db)]+_0x17aaac(0x174)+join(_0xbdb6cf[_0x17aaac(0x1db)],_0x17aaac(0x19d))+_0x17aaac(0x204)+join(_0xbdb6cf[_0x17aaac(0x1db)],_0x17aaac(0x128))+_0x17aaac(0x176)],_0x17aaac(0x17a),_0x20d53f][_0x17aaac(0x224)]('\x0a');}function attachmentPrompt(_0x3c2ba5,_0xdcaff5){const _0x558543=_0x2afa9a;if(_0xdcaff5[_0x558543(0x12a)]===0x1f39+0x1e96+0x3dcf*-0x1)return _0x3c2ba5;const _0x44c88a=_0xdcaff5[_0x558543(0x1bc)](_0x98542c=>_0x558543(0x267)+_0x98542c[_0x558543(0x179)])[_0x558543(0x224)]('\x0a');return''+_0x3c2ba5+(_0x3c2ba5[_0x558543(0x16f)]()[_0x558543(0x12a)]===0x64d*0x3+-0x108b+-0x25c?'':'\x0a\x0a')+_0x558543(0x23a)+_0x44c88a;}function automaticHostedConversationTitle(_0x44a562){const _0x5e1c0f=_0x2afa9a;if(_0x44a562===undefined)return undefined;const _0x18975d=sessionTitleFromFirstMessage(_0x44a562);if(_0x18975d[_0x5e1c0f(0x12a)]===-0x1871+-0x1*-0x1b3b+-0x7*0x66||/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x5e1c0f(0x1a3)](_0x18975d))return undefined;return _0x18975d;}function runFromMessage(_0x26e81){const _0x14f8f8=_0x2afa9a;return{'id':_0x26e81[_0x14f8f8(0x1d0)],'status':_0x26e81[_0x14f8f8(0xc7)],'startedAt':_0x26e81[_0x14f8f8(0x151)],'completedAt':_0x26e81[_0x14f8f8(0xc7)]===_0x14f8f8(0x20d)?null:_0x26e81[_0x14f8f8(0xdf)]};}function runInterruptionKey(_0x30a3ca,_0x3d25d1){return _0x30a3ca+'\x00'+_0x3d25d1;}function uploadProjection(_0x267477){const _0x8ef798=_0x2afa9a;return{'uploadId':_0x267477[_0x8ef798(0x202)],'conversationId':_0x267477[_0x8ef798(0x21d)],'name':_0x267477[_0x8ef798(0x240)],'mimeType':_0x267477[_0x8ef798(0x1de)],'receivedBytes':_0x267477[_0x8ef798(0x227)],'size':_0x267477[_0x8ef798(0x111)],'status':_0x267477[_0x8ef798(0xc7)],..._0x267477[_0x8ef798(0xf4)]===undefined?{}:{'file':_0x267477[_0x8ef798(0xf4)]}};}async function assertRegularFile(_0x372fa5,_0x2378d6){const _0x24e3ca=_0x2afa9a,_0x54c94d=await lstat(_0x372fa5)[_0x24e3ca(0x229)](()=>{const _0x13a6bb=_0x24e3ca;throw new Error(_0x13a6bb(0x241));});if(!_0x54c94d[_0x24e3ca(0x1bf)]()||_0x54c94d[_0x24e3ca(0x12f)]()||_0x54c94d[_0x24e3ca(0xef)]!==-0x8*0x184+0x3ab+0x876||_0x54c94d[_0x24e3ca(0x111)]!==_0x2378d6)throw new Error(_0x24e3ca(0x241));}async function assertUploadTemporaryFile(_0x45e1f4,_0x3f5bfa){const _0x348caa=_0x2afa9a,_0x195427=await lstat(_0x45e1f4)[_0x348caa(0x229)](()=>{const _0x4a751e=_0x348caa;throw new Error(_0x4a751e(0x1f6));});if(!_0x195427[_0x348caa(0x1bf)]()||_0x195427[_0x348caa(0x12f)]()||_0x195427[_0x348caa(0xef)]!==0x1ea6*0x1+-0xc07+0x1*-0x129e||_0x195427[_0x348caa(0x111)]!==_0x3f5bfa)throw new Error(_0x348caa(0x1f6));}function record(_0x2dd7a5){const _0x2c624f=_0x2afa9a;return typeof _0x2dd7a5===_0x2c624f(0x1c2)&&_0x2dd7a5!==null&&!Array[_0x2c624f(0x1d5)](_0x2dd7a5);}