@nuvin/agent-core 0.0.0-rc.13 → 0.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-SEP4YYY3.js +1 -1
- package/dist/chunk-T7UKN6FZ.js +1 -1
- package/dist/chunk-WJMBJOVF.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.d.ts +76 -0
- package/dist/hooks/index.js +1 -0
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-BZo_Yh3I.d.ts → provider-adapters-CVC34mwR.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +5 -3
- package/dist/tools/index.js +1 -1
- package/dist/{types-DQXrm4dp.d.ts → types-CSXSwpwn.d.ts} +1 -1
- package/package.json +6 -2
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4c84ee,_0x580111){const _0x47b1fb={_0x2f88fc:0x581,_0x164e6f:0x4d7,_0x4f846b:0x64f,_0x274837:0x45e,_0x47ae18:0x652,_0x25fa9a:0x503,_0x41bb9e:0x61e,_0x10913d:0xb2,_0x1ae08d:0x17f,_0x5977eb:0xaa,_0x521927:0x5ac,_0x5e5f81:0x442,_0xb09488:0x4eb,_0x5b964f:0x517,_0x4b0b42:0x404,_0x1ba29c:0x5bb,_0x232187:0x53e,_0x252917:0x68d,_0x3b1d1a:0x562,_0x12d484:0x65e},_0x4ffc2b={_0x4a7be4:0x3ca};function _0xe5c411(_0x2660fb,_0x571ba1,_0x3f74ff,_0x5acf08){return _0x1358(_0x571ba1-0xe8,_0x2660fb);}const _0x1265dc=_0x4c84ee();function _0x550bac(_0x32d2af,_0xc233e2,_0xffc25a,_0x1e898c){return _0x1358(_0x32d2af-_0x4ffc2b._0x4a7be4,_0xffc25a);}while(!![]){try{const _0x18750c=-parseInt(_0x550bac(0x47b,0x3d8,0x473,0x43e))/0x1*(-parseInt(_0x550bac(0x5b4,0x46f,0x511,0x6a6))/0x2)+-parseInt(_0x550bac(_0x47b1fb._0x2f88fc,_0x47b1fb._0x164e6f,_0x47b1fb._0x4f846b,_0x47b1fb._0x274837))/0x3+parseInt(_0x550bac(0x508,_0x47b1fb._0x47ae18,0x3be,_0x47b1fb._0x25fa9a))/0x4*(parseInt(_0xe5c411(0x434,0x3d7,0x313,0x3ba))/0x5)+parseInt(_0x550bac(0x548,0x519,0x59e,_0x47b1fb._0x41bb9e))/0x6+-parseInt(_0xe5c411(_0x47b1fb._0x10913d,_0x47b1fb._0x1ae08d,0x22e,_0x47b1fb._0x5977eb))/0x7*(-parseInt(_0x550bac(0x515,_0x47b1fb._0x521927,_0x47b1fb._0x5e5f81,_0x47b1fb._0xb09488))/0x8)+parseInt(_0x550bac(_0x47b1fb._0x5b964f,_0x47b1fb._0x4b0b42,0x590,0x4d2))/0x9*(-parseInt(_0x550bac(0x56c,_0x47b1fb._0x1ba29c,_0x47b1fb._0x232187,_0x47b1fb._0x252917))/0xa)+-parseInt(_0x550bac(0x695,_0x47b1fb._0x3b1d1a,_0x47b1fb._0x12d484,0x7c3))/0xb*(-parseInt(_0xe5c411(0x3ca,0x2a5,0x2e2,0x385))/0xc);if(_0x18750c===_0x580111)break;else _0x1265dc['push'](_0x1265dc['shift']());}catch(_0x449ea1){_0x1265dc['push'](_0x1265dc['shift']());}}}(_0x4019,0x94122));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WJMBJOVF.js';import{getTextFromMessage}from'../chunk-SEP4YYY3.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x337454 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x357fd3(0x15d,0x1b9,0x163,0x2a3),'.tsx':_0x357fd3(0x77,0xab,0x18e,0x10d),'.js':'javascript','.jsx':_0x357fd3(0x7a,-0xbb,-0xa4,-0xba),'.mjs':_0x1343ee(-0xc2,-0x95,0x1c,0x2),'.cjs':'javascript','.mts':'typescript','.cts':_0x1343ee(0x168,0x14b,0x21f,0xb2),'.json':_0x1343ee(0x1bc,0x1b4,0xba,0xa7),'.jsonc':'jsonc'};function getLanguageId(_0x424458){const _0x147ea9={_0x5b2f31:0x540,_0x568ff:0x465},_0x9613b4={_0x1e10db:0x96,_0xe8cbdd:0x1};function _0x3646d2(_0x1ab76b,_0x487ae7,_0x24df3d,_0xfba7cf){return _0x1343ee(_0x24df3d-0x346,_0x1ab76b,_0x24df3d-_0x9613b4._0x1e10db,_0xfba7cf-_0x9613b4._0xe8cbdd);}return EXTENSION_TO_LANGUAGE[_0x337454['extname'](_0x424458)[_0x3646d2(_0x147ea9._0x5b2f31,0x461,0x45a,_0x147ea9._0x568ff)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0xe4d00){const _0x577efc={_0x41dfb1:0x36,_0x1dca27:0x52},_0x5409b6={_0x2a1f3e:0x1d4};function _0x514f7f(_0x59bc3d,_0x4f44cd,_0x2c3a48,_0x1ad2cb){return _0x357fd3(_0x59bc3d-_0x5409b6._0x2a1f3e,_0x4f44cd-0x11d,_0x1ad2cb- -0xae,_0x2c3a48);}return pathToFileURL(_0xe4d00)[_0x514f7f(-0xf8,-0x95,-_0x577efc._0x41dfb1,_0x577efc._0x1dca27)]();}function textDocumentPosition(_0x4ce09f){const _0x46a503={_0x4f538c:0x33a},_0x34ec97={_0x38d412:0x3dd,_0x2c2053:0x43};function _0x2fbf6a(_0x92a43,_0x13e304,_0xd41095,_0x553f6d){return _0x1343ee(_0xd41095-_0x34ec97._0x38d412,_0x92a43,_0xd41095-0x113,_0x553f6d-_0x34ec97._0x2c2053);}return{'textDocument':{'uri':uriForPath(_0x4ce09f[_0x2fbf6a(_0x46a503._0x4f538c,0x517,0x3cd,0x2f0)])},'position':{'line':_0x4ce09f['line'],'character':_0x4ce09f['character']}};}function normalizeLocations(_0x3b9231){const _0xbe0d89={_0x3f7fae:0x26,_0xd2fcf0:0x154},_0x17c3e1={_0x2af49e:0x1a4};if(!_0x3b9231)return[];function _0x13a4f6(_0x326542,_0x559357,_0x2817ee,_0x5ba827){return _0x1343ee(_0x2817ee- -0x23b,_0x559357,_0x2817ee-0x57,_0x5ba827-_0x17c3e1._0x2af49e);}return Array[_0x13a4f6(0x13,-_0xbe0d89._0x3f7fae,-0x13a,-_0xbe0d89._0xd2fcf0)](_0x3b9231)?_0x3b9231:[_0x3b9231];}async function createLspClient(_0x2f8a9a){const _0x304916={_0x4998d5:0x335,_0x42e3b9:0x371,_0x1594f4:0x32a,_0x449b4d:0x3ac,_0x195a85:0x3e9,_0x43d1e3:0x406,_0x1de34c:0x2df,_0x81265b:0x36b,_0x180b6b:0x6c,_0x191ec8:0x115,_0x5961c9:0x39b,_0x379cea:0x27e,_0x4c7bd5:0x94,_0x11f753:0x268,_0x28060d:0xb5,_0xd26b47:0x309,_0x25c0bc:0x282,_0xb09566:0x17b,_0x1a8ca7:0x1e,_0x1bf923:0x1b1,_0x5e0c4f:0x22,_0x501e4e:0x247,_0x1ac710:0x1ec,_0x11caff:0x332,_0x28ed2e:0x243,_0x57ec00:0x26a,_0x508345:0x67,_0x126b87:0x8b,_0x4a9cc2:0x6e,_0x13d2b1:0xd5,_0x30a0da:0xd6,_0x25732a:0x85,_0x15435f:0x1ae,_0x2b8e2f:0x19b,_0x2921e6:0x41},_0x3434ef={_0x30ea06:0x8a,_0x1a5c34:0x1a9,_0x2f7152:0x45b,_0x1ddb42:0x341,_0x3b7532:0x2d2,_0x18a805:0xf9,_0x4d0a19:0xc},_0x1f1bf0={_0xfc43fd:0x5c,_0x591fab:0x88,_0xcf199b:0xa3},_0x1c9d09={_0x53135e:0x2b4,_0xdb63b1:0x2ae,_0x40a264:0x1cb,_0x1f3377:0x3c5},_0x4651bb={_0x576d69:0x1d3},_0x372c40={_0x3d8dbb:0x19a},_0xb06469={_0x446fdd:0xc0},_0xd1affe={_0x4da30e:0xd2,_0x4243ca:0x4},_0x3113c4={_0x5596e2:0x38,_0x1e5708:0x1c},_0x1452d4={_0x59091e:0x142,_0xb209d3:0x1ba},_0x5cc922={_0x33b340:0x397,_0x30ee42:0x355,_0x20e1d5:0x4ac},_0x2eb976={_0x3aeaf3:0x529,_0x3f2c6d:0x357,_0x170b9b:0xc5,_0x55f97a:0x14c,_0x2b500d:0xd7},_0x28485d={_0x2e12f5:0x3ea,_0x38bf22:0x369,_0x1b6009:0x37a},_0x338008={_0x429b7e:0x95,_0x3d8503:0x36},_0x4925eb={_0x178ee2:0x17a,_0x5ceb3d:0x1ed,_0x50668d:0x1c2},_0x1e8abe={_0x42e6ed:0x211,_0x24a07c:0x19a,_0x5ae079:0x10b,_0x131a3c:0x1d1,_0x12964b:0x95},_0x268001={_0x4adce9:0x31a,_0x2a2071:0x225,_0x26d453:0x34e,_0x9baec7:0x264,_0x133215:0x246},_0x29b27a={_0x1a0ae7:0x57},_0x31ca72={_0x12aab8:0x1c9,_0x44971a:0xd,_0x4a70e7:0x103},_0x403302={_0x2a6882:0x129,_0x166fb5:0x1ec},_0x24c885={_0x2a5aff:0x252,_0xff4bab:0x2dd,_0x4fe042:0x22c},_0x264cf5={_0x406b7d:0x141,_0x54eb9f:0x1ae},_0x910caa={_0x21dfbd:0x11c,_0x3ba384:0x331,_0x31bc81:0x16d,_0x4761ac:0x121,_0x3349a6:0x11a,_0x2a6d4f:0x1,_0x294f39:0x90},_0x6d8dff={_0xd6e474:0x270,_0x4bbd89:0x224,_0x5e99d1:0x1d6,_0x278765:0xf7,_0x474bd0:0x3e,_0x44b8e0:0x7f,_0x5c3f61:0x58,_0x2ba0d3:0x2b,_0x2aa574:0xf1,_0x5428c3:0x203,_0x322b88:0x1f4},_0x2a94a8={_0x5dfd08:0x1bf,_0x4d4d7b:0xd8},_0x54bc81={_0xab09c0:0xf8,_0x2c046c:0xaa},_0x376dfd={_0x46aaa0:0x18d},_0x3f2237=_0x2f8a9a[_0x25cf2b(_0x304916._0x4998d5,_0x304916._0x42e3b9,0x234,_0x304916._0x1594f4)]['process'][_0x25cf2b(_0x304916._0x449b4d,_0x304916._0x195a85,_0x304916._0x43d1e3,_0x304916._0x1de34c)],_0x41133c=_0x2f8a9a[_0x25cf2b(0x31e,_0x304916._0x81265b,0x389,0x32a)]['process']['stdin'];if(!_0x3f2237||!_0x41133c)throw new Error(_0x14daad(-_0x304916._0x180b6b,-0xf,0x25,_0x304916._0x191ec8));const _0x125ec3=createMessageConnection(new StreamMessageReader(_0x3f2237),new StreamMessageWriter(_0x41133c)),_0x3b6b41=new Map();function _0x25cf2b(_0x1ee4d5,_0x586b7f,_0x459e63,_0x17ad87){return _0x357fd3(_0x1ee4d5-0x4e,_0x586b7f-0x22,_0x17ad87-_0x376dfd._0x46aaa0,_0x459e63);}const _0x58c8b2=new Map();function _0x14daad(_0x119074,_0x575783,_0x2ddc44,_0x33dc3b){return _0x357fd3(_0x119074-0x162,_0x575783-_0x54bc81._0xab09c0,_0x2ddc44-_0x54bc81._0x2c046c,_0x33dc3b);}let _0x2db6eb=![];_0x125ec3['onNotification']('textDocument/publishDiagnostics',_0x57bf36=>{const _0x1847d9={_0x2bce4c:0x139,_0x149360:0x1ef,_0xdd3beb:0x35};function _0x4302ec(_0x4f6826,_0x29895f,_0x235986,_0x28a811){return _0x25cf2b(_0x4f6826-_0x2a94a8._0x5dfd08,_0x29895f-_0x2a94a8._0x4d4d7b,_0x4f6826,_0x28a811- -0x76);}_0x3b6b41[_0x4302ec(_0x6d8dff._0xd6e474,0xe8,_0x6d8dff._0x4bbd89,0x191)](_0x57bf36[_0x35b4d5(_0x6d8dff._0x5e99d1,0xee,_0x6d8dff._0x278765,0x18e)],_0x57bf36[_0x35b4d5(-0x4c,0x63,-_0x6d8dff._0x474bd0,0x184)]);const _0x5a2a81=_0x58c8b2[_0x4302ec(-_0x6d8dff._0x44b8e0,_0x6d8dff._0x5c3f61,-_0x6d8dff._0x2ba0d3,0x79)](_0x57bf36['uri']);function _0x35b4d5(_0x4cb05e,_0x18afbe,_0x2785a9,_0x15f67b){return _0x14daad(_0x4cb05e-_0x1847d9._0x2bce4c,_0x18afbe-_0x1847d9._0x149360,_0x18afbe-_0x1847d9._0xdd3beb,_0x4cb05e);}if(!_0x5a2a81)return;_0x58c8b2[_0x35b4d5(0x193,0x220,0x233,_0x6d8dff._0x2aa574)](_0x57bf36[_0x4302ec(-0x5,_0x6d8dff._0x5428c3,_0x6d8dff._0x322b88,0x126)]);for(const _0x1e84cd of _0x5a2a81)_0x1e84cd();}),_0x125ec3[_0x25cf2b(0x158,0x351,_0x304916._0x5961c9,_0x304916._0x379cea)]();const _0x29db10=await _0x125ec3[_0x25cf2b(_0x304916._0x4c7bd5,_0x304916._0x11f753,0x1d9,0x156)](_0x14daad(_0x304916._0x28060d,0x6d,0x15b,0x165),{'processId':process[_0x25cf2b(0x2f1,0x412,0x1c9,_0x304916._0xd26b47)],'rootUri':uriForPath(_0x2f8a9a['root']),'workspaceFolders':[{'uri':uriForPath(_0x2f8a9a[_0x25cf2b(_0x304916._0x25c0bc,0x12e,0x144,_0x304916._0xb09566)]),'name':_0x2f8a9a[_0x14daad(_0x304916._0x1a8ca7,_0x304916._0x1bf923,0x137,_0x304916._0x5e0c4f)]['id']}],'initializationOptions':_0x2f8a9a[_0x14daad(0x360,0x2b2,_0x304916._0x501e4e,0x1eb)][_0x25cf2b(_0x304916._0x1ac710,_0x304916._0x11caff,_0x304916._0x28ed2e,_0x304916._0x57ec00)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x14daad(0xc8,0xba,_0x304916._0x508345,_0x304916._0x126b87),_0x14daad(_0x304916._0x4a9cc2,_0x304916._0x13d2b1,_0x304916._0x30a0da,0x134)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x125ec3[_0x14daad(-_0x304916._0x25732a,0x5e,0x44,0x8f)]('initialized',{});const _0x53d328={'serverId':_0x2f8a9a['server']['id'],'root':_0x2f8a9a[_0x25cf2b(_0x304916._0x15435f,_0x304916._0x2b8e2f,0x138,0x17b)],'connection':_0x125ec3,'diagnostics':_0x3b6b41,'capabilities':_0x29db10[_0x14daad(0x148,-0xd3,0x59,_0x304916._0x2921e6)]??{},'notify':{async 'open'({path:_0x35ee8b}){const _0x4842db={_0x377bc1:0xb4,_0x2a889b:0x1cc},_0x410246={_0x3921c8:0x147,_0x5ca659:0x123};function _0x3bc379(_0x3cb33e,_0x5e8694,_0x8334fc,_0x739797){return _0x14daad(_0x3cb33e-_0x410246._0x3921c8,_0x5e8694-_0x410246._0x5ca659,_0x8334fc- -0xd7,_0x5e8694);}function _0x36fcb5(_0x53c4f0,_0x44b4d8,_0x184aa9,_0x1ac58d){return _0x14daad(_0x53c4f0-_0x4842db._0x377bc1,_0x44b4d8-0x56,_0x1ac58d-_0x4842db._0x2a889b,_0x53c4f0);}const _0x33676f=await readFile(_0x35ee8b,'utf8');_0x125ec3[_0x36fcb5(_0x910caa._0x21dfbd,0x2bd,_0x910caa._0x3ba384,0x210)](_0x3bc379(_0x910caa._0x31bc81,0xaf,0xa3,-0x2e),{'textDocument':{'uri':uriForPath(_0x35ee8b),'languageId':getLanguageId(_0x35ee8b)??_0x3bc379(-_0x910caa._0x4761ac,_0x910caa._0x3349a6,-_0x910caa._0x2a6d4f,-_0x910caa._0x294f39),'version':0x1,'text':_0x33676f}});},async 'change'({path:_0x11c1d2,version:_0x1d03df}){function _0x37a724(_0x39e692,_0x4a3295,_0x539fa8,_0x542624){return _0x14daad(_0x39e692-_0x264cf5._0x406b7d,_0x4a3295-_0x264cf5._0x54eb9f,_0x542624-0x1e8,_0x539fa8);}const _0x4d1734=await readFile(_0x11c1d2,'utf8');_0x125ec3[_0x37a724(_0x24c885._0x2a5aff,0x2e3,_0x24c885._0xff4bab,_0x24c885._0x4fe042)]('textDocument/didChange',{'textDocument':{'uri':uriForPath(_0x11c1d2),'version':_0x1d03df},'contentChanges':[{'text':_0x4d1734}]});},async 'close'({path:_0x41d7ca}){const _0x59ae39={_0x229203:0x1};function _0xbe264c(_0x3526f5,_0x2b37a3,_0x2500f8,_0x4e2af5){return _0x14daad(_0x3526f5-0x18b,_0x2b37a3-_0x59ae39._0x229203,_0x4e2af5-0x4e,_0x3526f5);}function _0x3caf23(_0x55cd2a,_0x3f677f,_0x5e996a,_0x585b91){return _0x14daad(_0x55cd2a-_0x403302._0x2a6882,_0x3f677f-0x166,_0x585b91- -_0x403302._0x166fb5,_0x55cd2a);}_0x125ec3[_0xbe264c(0x19f,_0x31ca72._0x12aab8,-0x8d,0x92)](_0x3caf23(_0x31ca72._0x44971a,-0xba,-0x24f,-_0x31ca72._0x4a70e7),{'textDocument':{'uri':uriForPath(_0x41d7ca)}});}},'request':{async 'definition'(_0x12cd8c){const _0xe71fa4={_0x3eef36:0xe6};function _0x1c6f10(_0x4a5e94,_0x1e6e95,_0x4bbd9f,_0x4fc5c7){return _0x14daad(_0x4a5e94-0x1a6,_0x1e6e95-_0x29b27a._0x1a0ae7,_0x4fc5c7- -0x298,_0x4bbd9f);}function _0x33233e(_0x367ec1,_0x39ca3c,_0x25b88e,_0x3aee1d){return _0x25cf2b(_0x367ec1-_0xe71fa4._0x3eef36,_0x39ca3c-0x195,_0x367ec1,_0x39ca3c-0x7e);}return normalizeLocations(await _0x125ec3[_0x1c6f10(-0x136,-0x2f3,-_0x268001._0x4adce9,-_0x268001._0x2a2071)](_0x33233e(_0x268001._0x26d453,0x38e,_0x268001._0x9baec7,_0x268001._0x133215),textDocumentPosition(_0x12cd8c)));},async 'references'(_0x560be8){const _0x20f8f8={_0x3ff732:0xa7,_0xa9c59e:0xbb},_0x29b45c={_0x3af644:0x175,_0x5313f2:0x11d};function _0x28472f(_0x34a5a8,_0x469842,_0x4a2274,_0x58d61a){return _0x25cf2b(_0x34a5a8-_0x29b45c._0x3af644,_0x469842-0x93,_0x58d61a,_0x4a2274- -_0x29b45c._0x5313f2);}function _0x56e607(_0x46780f,_0x3ee620,_0x3d1cba,_0x24b533){return _0x25cf2b(_0x46780f-0x8a,_0x3ee620-_0x20f8f8._0x3ff732,_0x3ee620,_0x3d1cba-_0x20f8f8._0xa9c59e);}return normalizeLocations(await _0x125ec3[_0x56e607(0x16e,0x328,_0x1e8abe._0x42e6ed,_0x1e8abe._0x24a07c)](_0x28472f(0x15f,_0x1e8abe._0x5ae079,_0x1e8abe._0x131a3c,_0x1e8abe._0x12964b),{...textDocumentPosition(_0x560be8),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x19e26a){function _0x1efe44(_0x746d01,_0x2d0153,_0x464e17,_0x216cfc){return _0x25cf2b(_0x746d01-_0x4925eb._0x178ee2,_0x2d0153-_0x4925eb._0x5ceb3d,_0x216cfc,_0x746d01- -_0x4925eb._0x50668d);}return await _0x125ec3[_0x1efe44(-0x6c,-_0x338008._0x429b7e,0x36,-_0x338008._0x3d8503)]('textDocument/hover',textDocumentPosition(_0x19e26a))??null;},async 'documentSymbol'(_0x1c1eab){const _0x319779={_0x258bb0:0x14,_0x5d6f94:0xf3};function _0x5e4980(_0x50e28e,_0x5d41a8,_0xae793b,_0x25596c){return _0x25cf2b(_0x50e28e-_0x319779._0x258bb0,_0x5d41a8-_0x319779._0x5d6f94,_0xae793b,_0x25596c-0x150);}return await _0x125ec3['sendRequest'](_0x5e4980(_0x28485d._0x2e12f5,_0x28485d._0x38bf22,_0x28485d._0x1b6009,0x32c),{'textDocument':{'uri':uriForPath(_0x1c1eab)}})??[];},async 'workspaceSymbol'(_0x4ae23d){const _0x484d36={_0x4a399c:0xd1,_0x516ac5:0x19e},_0x3883dd={_0x364a5c:0x124,_0x904564:0x25};function _0x2ba4a1(_0x5eadb6,_0x16400f,_0x111a14,_0x4a4cc0){return _0x14daad(_0x5eadb6-_0x3883dd._0x364a5c,_0x16400f-_0x3883dd._0x904564,_0x4a4cc0- -0xc8,_0x5eadb6);}function _0x41240c(_0x22eba7,_0x361de8,_0x371002,_0x392b36){return _0x14daad(_0x22eba7-_0x484d36._0x4a399c,_0x361de8-_0x484d36._0x516ac5,_0x371002-0x3cb,_0x22eba7);}return await _0x125ec3[_0x41240c(0x496,_0x2eb976._0x3aeaf3,0x43e,_0x2eb976._0x3f2c6d)](_0x2ba4a1(-_0x2eb976._0x170b9b,-0x1b,-_0x2eb976._0x55f97a,-_0x2eb976._0x2b500d),{'query':_0x4ae23d})??[];},async 'implementation'(_0x23903d){const _0x332f45={_0x4cb228:0x129},_0x2566d7={_0x43c00f:0x241};function _0x350aa9(_0x40ee59,_0x494877,_0x339e49,_0x3b4e2f){return _0x25cf2b(_0x40ee59-0x164,_0x494877-0x199,_0x3b4e2f,_0x40ee59-_0x2566d7._0x43c00f);}function _0x1dff3f(_0x12c80f,_0xf6e5d4,_0x3a6215,_0xe41cfe){return _0x14daad(_0x12c80f-0xf,_0xf6e5d4-0x144,_0x3a6215-_0x332f45._0x4cb228,_0xf6e5d4);}return normalizeLocations(await _0x125ec3[_0x350aa9(_0x5cc922._0x33b340,0x304,_0x5cc922._0x30ee42,0x3bb)](_0x350aa9(0x410,0x540,_0x5cc922._0x20e1d5,0x3a9),textDocumentPosition(_0x23903d)));},async 'prepareCallHierarchy'(_0x3bc075){const _0x14035c={_0x1c1e12:0xbe,_0x2f1c7b:0x103};function _0x4fff6e(_0x46fde1,_0x4b32b0,_0x4bd7d0,_0x340973){return _0x25cf2b(_0x46fde1-_0x14035c._0x1c1e12,_0x4b32b0-_0x14035c._0x2f1c7b,_0x46fde1,_0x4b32b0-0x64);}return await _0x125ec3[_0x4fff6e(_0x1452d4._0x59091e,_0x1452d4._0xb209d3,0x180,0x12c)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x3bc075))??[];},async 'incomingCalls'(_0x40bb37){const _0x5af7ef={_0x3fa120:0x5c,_0x3fc17e:0x1b0};function _0x78254a(_0x34607f,_0x5b3928,_0x2072e1,_0x455af8){return _0x14daad(_0x34607f-0x180,_0x5b3928-_0x5af7ef._0x3fa120,_0x2072e1- -_0x5af7ef._0x3fc17e,_0x5b3928);}return await _0x125ec3['sendRequest'](_0x78254a(-0x12a,-0x13b,-_0x3113c4._0x5596e2,-_0x3113c4._0x1e5708),{'item':_0x40bb37})??[];},async 'outgoingCalls'(_0x318ad5){function _0x3646b4(_0x593a9b,_0x4eb2ce,_0x1bdccd,_0x4b6225){return _0x14daad(_0x593a9b-_0xd1affe._0x4da30e,_0x4eb2ce-_0xd1affe._0x4243ca,_0x1bdccd- -0x47,_0x593a9b);}function _0xe33464(_0x3c9a00,_0x164c62,_0xfd538c,_0x17e423){return _0x25cf2b(_0x3c9a00-_0xb06469._0x446fdd,_0x164c62-0x4b,_0x3c9a00,_0x17e423- -0x202);}return await _0x125ec3[_0x3646b4(-0x85,0x7d,0x2c,0x3b)](_0x3646b4(0x191,0x9d,0x1a0,_0x372c40._0x3d8dbb),{'item':_0x318ad5})??[];}},'waitForDiagnostics'({path:_0x48cb5a,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x2bff55={_0x52c8ba:0x1ed,_0x214eb6:0x1af,_0x53cf18:0x218,_0x3f2ad4:0x2a7,_0x2033ef:0x2f4,_0x43d410:0x22d,_0x22513c:0x257},_0x4ffa63={_0x28720b:0x18b},_0x1ac37c={_0xe0bf60:0x4cf,_0x532867:0x17b,_0x10e818:0x22c,_0xc791ed:0x4ad,_0x5dd32c:0x57b};function _0x3d3d75(_0xc4ee23,_0x3139eb,_0x4c3eba,_0x2761cf){return _0x14daad(_0xc4ee23-_0x4651bb._0x576d69,_0x3139eb-0x178,_0x3139eb-0x2c1,_0xc4ee23);}const _0x54c7d6=uriForPath(_0x48cb5a);if(_0x3b6b41[_0x3d3d75(_0x1c9d09._0x53135e,_0x1c9d09._0xdb63b1,_0x1c9d09._0x40a264,_0x1c9d09._0x1f3377)](_0x54c7d6))return Promise['resolve']();return new Promise(_0x10544c=>{const _0x4981c6=setTimeout(()=>{const _0x14d81d=_0x58c8b2[_0x3e7449(0x3c4,0x3e8,0x334,_0x1ac37c._0xe0bf60)](_0x54c7d6);function _0x3e7449(_0x50ae3b,_0x48bedc,_0x172837,_0x56d346){return _0x1358(_0x48bedc-0x339,_0x56d346);}function _0x38b9aa(_0x31b15d,_0x3960d5,_0x125b73,_0x248c42){return _0x1358(_0x31b15d- -0x113,_0x248c42);}_0x14d81d?.[_0x38b9aa(_0x1ac37c._0x532867,0xbb,_0x1ac37c._0x10e818,0x116)](_0x35ded8);if(_0x14d81d?.[_0x3e7449(0x4f1,0x5e4,_0x1ac37c._0xc791ed,_0x1ac37c._0x5dd32c)]===0x0)_0x58c8b2['delete'](_0x54c7d6);_0x10544c();},timeoutMs);function _0x3e454f(_0x10ee9a,_0x1c9294,_0x3f0f50,_0x11e004){return _0x3d3d75(_0x1c9294,_0x11e004- -0x219,_0x3f0f50-0x1ef,_0x11e004-0x139);}const _0x35ded8=()=>{clearTimeout(_0x4981c6),_0x10544c();};function _0x5e54b6(_0x4921e5,_0x20a07a,_0x1593db,_0x1409a9){return _0x3d3d75(_0x1593db,_0x1409a9- -0x5d7,_0x1593db-_0x4ffa63._0x28720b,_0x1409a9-0x1a9);}const _0x3a8966=_0x58c8b2[_0x3e454f(0x150,_0x2bff55._0x52c8ba,_0x2bff55._0x214eb6,0xb4)](_0x54c7d6)??new Set();_0x3a8966[_0x3e454f(_0x2bff55._0x53cf18,_0x2bff55._0x3f2ad4,_0x2bff55._0x2033ef,0x233)](_0x35ded8),_0x58c8b2[_0x3e454f(_0x2bff55._0x43d410,_0x2bff55._0x22513c,0x1c9,0x1cc)](_0x54c7d6,_0x3a8966);});},async 'shutdown'(){if(_0x2db6eb)return;_0x2db6eb=!![];function _0x2d63ff(_0x24dde3,_0x247588,_0x20ede0,_0x4fd72f){return _0x14daad(_0x24dde3-_0x1f1bf0._0xfc43fd,_0x247588-_0x1f1bf0._0x591fab,_0x24dde3- -_0x1f1bf0._0xcf199b,_0x4fd72f);}function _0x588b29(_0x4c357f,_0x403ee5,_0x15e75f,_0x3921fa){return _0x25cf2b(_0x4c357f-0x11c,_0x403ee5-0xbc,_0x3921fa,_0x15e75f-0x21a);}try{await _0x125ec3['sendRequest'](_0x2d63ff(-_0x3434ef._0x30ea06,-0xb1,-0x1a,-_0x3434ef._0x1a5c34),null),_0x125ec3[_0x588b29(_0x3434ef._0x2f7152,0x2ad,_0x3434ef._0x1ddb42,_0x3434ef._0x3b7532)]('exit');}catch{}finally{_0x125ec3[_0x2d63ff(0x13d,_0x3434ef._0x18a805,0x174,0x229)](),_0x2f8a9a['handle']['process'][_0x2d63ff(_0x3434ef._0x4d0a19,0xd2,0x76,-0x7f)]();}}};return _0x53d328;}import{spawn as _0x1b0add}from'child_process';import{access as _0x3a9a36}from'fs/promises';import _0x1573c4 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x2df844 from'os';import _0x53cfac from'path';import _0x31176f from'which';var installPromises=new Map();function sanitizePackageName(_0x5b6422){const _0x4960fe={_0x251547:0xc8,_0x334389:0x93},_0x458225={_0x36f502:0xfe,_0x4dee0c:0x15b},_0x281bf5={_0x16ddbb:0xc0,_0x4bbccd:0x1c2};function _0x1e14f6(_0x1d4888,_0x239d0b,_0x42854a,_0x5d1561){return _0x357fd3(_0x1d4888-_0x281bf5._0x16ddbb,_0x239d0b-0x18,_0x239d0b- -_0x281bf5._0x4bbccd,_0x1d4888);}function _0x4900f0(_0x1b7652,_0x46d155,_0x4c73d4,_0x4b499d){return _0x357fd3(_0x1b7652-_0x458225._0x36f502,_0x46d155-_0x458225._0x4dee0c,_0x4b499d- -0x2b,_0x4c73d4);}return _0x5b6422[_0x4900f0(0x99,-_0x4960fe._0x251547,0x34,-0x93)](/^@/,'')[_0x4900f0(-0x148,-0x16f,-0x19,-_0x4960fe._0x334389)](/[/]/g,'__');}function binaryNameForPlatform(_0xd4ce3f){const _0x555947={_0x49d602:0x101,_0x320202:0xf5,_0x28bfa2:0x139,_0x2ef085:0xbf,_0x311af3:0x64,_0x473a1d:0x100},_0x380d5={_0x2897bf:0x129},_0x104d6f={_0xd9c6b1:0xb9};function _0xd40e29(_0x4d33cc,_0x49f5c2,_0x1e31ab,_0x4d0ec9){return _0x1343ee(_0x4d33cc-0x245,_0x4d0ec9,_0x1e31ab-0x18f,_0x4d0ec9-_0x104d6f._0xd9c6b1);}function _0x147951(_0x1410bb,_0x465e96,_0x35d6cf,_0x366a55){return _0x357fd3(_0x1410bb-0x140,_0x465e96-_0x380d5._0x2897bf,_0x465e96- -0x7f,_0x35d6cf);}return process['platform']===_0x147951(_0x555947._0x49d602,_0x555947._0x320202,_0x555947._0x28bfa2,0x42)?_0xd4ce3f+_0x147951(0x16a,_0x555947._0x2ef085,_0x555947._0x311af3,_0x555947._0x473a1d):_0xd4ce3f;}async function exists(_0x21a147){try{return await access(_0x21a147),!![];}catch{return![];}}function runNpmInstall(_0x4bab6d,_0x354d6b,_0xda4682){const _0x294def={_0x3f01b0:0x1e3,_0x4067e6:0x9e,_0x4417bc:0xae,_0x378aac:0x3be,_0xd0fce7:0x5b,_0x3911fe:0x24d},_0x85ea0d={_0x12d61a:0x64};return new Promise(_0x4394b2=>{const _0xfbafff=spawn(_0x59df74(-_0x294def._0x3f01b0,0x18,-_0x294def._0x4067e6,-_0x294def._0x4417bc),['install',_0x5c2d23(0x283,_0x294def._0x378aac,0x1de,0x152),_0x4bab6d,_0x354d6b],{'env':_0xda4682,'stdio':_0x59df74(-0x60,-0x106,-0xea,_0x294def._0xd0fce7)});_0xfbafff['on']('error',()=>_0x4394b2(![]));function _0x59df74(_0x249081,_0x1b5fbe,_0x3064b2,_0x5c25f2){return _0x1358(_0x3064b2- -0x304,_0x1b5fbe);}function _0x5c2d23(_0x539240,_0x2f4919,_0x532f06,_0x1fbc05){return _0x1358(_0x539240- -_0x85ea0d._0x12d61a,_0x532f06);}_0xfbafff['on'](_0x59df74(-0x8b,-0x4a,-0x13c,-_0x294def._0x3911fe),_0x4decbb=>_0x4394b2(_0x4decbb===0x0));});}function shouldDisableLspDownload(_0x2ac054=process[_0x1343ee(0xbb,0x203,-0x7e,0x11a)]){const _0x1ce1d1={_0x3756cc:0x1a8,_0x7c4a1e:0xad,_0x4f35cf:0x76,_0x3ec141:0x516,_0x272c5e:0x604,_0x277209:0x1d7},_0x329bf3={_0x355a08:0x19},_0x6360d3={_0x5db75c:0x1ca,_0x29be38:0x142},_0x2b22b2=_0x2ac054['NUVIN_DISABLE_LSP_DOWNLOAD']?.[_0x5426a6(_0x1ce1d1._0x3756cc,0x2ac,_0x1ce1d1._0x7c4a1e,_0x1ce1d1._0x4f35cf)]();function _0x5426a6(_0x27ed3b,_0x179ee3,_0x52bacd,_0x1ab4a0){return _0x1343ee(_0x27ed3b-0x94,_0x179ee3,_0x52bacd-_0x6360d3._0x5db75c,_0x1ab4a0-_0x6360d3._0x29be38);}function _0x140d29(_0x4efde9,_0xae48f7,_0x10f1f1,_0x1a64d4){return _0x357fd3(_0x4efde9-_0x329bf3._0x355a08,_0xae48f7-0x29,_0x10f1f1-0x501,_0x1a64d4);}return _0x2b22b2===_0x140d29(0x563,_0x1ce1d1._0x3ec141,0x5bd,_0x1ce1d1._0x272c5e)||_0x2b22b2==='1'||_0x2b22b2===_0x5426a6(0x143,0x1a8,_0x1ce1d1._0x277209,0x1cd)||_0x2b22b2==='on';}function getLspPackageDir(_0x1b055d){const _0x2fe74f={_0x528d6f:0x4ac,_0x3876d0:0x630,_0x29c708:0x62b,_0x54b0de:0x6c4,_0x1e0464:0x472,_0x9485c6:0x475,_0x57373c:0x450,_0xf8b59f:0x704,_0x310cfa:0x708,_0x5f3f77:0x6ce,_0x4dbab9:0x781},_0x43b1d8={_0x27151f:0x5b,_0x24fc85:0x1b},_0x28f1e6={_0xb41c6b:0x363};function _0x4efc2b(_0x37218b,_0x49a618,_0x2cea42,_0x5c5bc2){return _0x1343ee(_0x2cea42-_0x28f1e6._0xb41c6b,_0x49a618,_0x2cea42-0xf3,_0x5c5bc2-0x3);}function _0x4f5e5e(_0x14d60b,_0x2fdb0d,_0x2b5e5a,_0x393863){return _0x1343ee(_0x2b5e5a-0x50f,_0x2fdb0d,_0x2b5e5a-_0x43b1d8._0x27151f,_0x393863-_0x43b1d8._0x24fc85);}return _0x53cfac['join'](_0x2df844[_0x4efc2b(_0x2fe74f._0x528d6f,0x474,0x41d,0x30f)](),_0x4f5e5e(_0x2fe74f._0x3876d0,0x565,_0x2fe74f._0x29c708,_0x2fe74f._0x54b0de),_0x4f5e5e(0x32d,_0x2fe74f._0x1e0464,_0x2fe74f._0x9485c6,_0x2fe74f._0x57373c),_0x4f5e5e(_0x2fe74f._0xf8b59f,_0x2fe74f._0x310cfa,_0x2fe74f._0x5f3f77,_0x2fe74f._0x4dbab9),sanitizePackageName(_0x1b055d));}function getLspBinDir(_0x5e3b82){const _0x4ed682={_0x2c1e6d:0x2cc,_0x3015c0:0x49e,_0x1a7163:0x2f4,_0x3ca4df:0x42a,_0x215263:0x327},_0x4bd5a9={_0x18ab8e:0x1dd,_0x3549d6:0xc9},_0x58d3b6={_0x4ea841:0x30b};function _0x4054de(_0x131899,_0x45da13,_0x4fa69e,_0x580906){return _0x1343ee(_0x580906-_0x58d3b6._0x4ea841,_0x4fa69e,_0x4fa69e-0xc9,_0x580906-0x85);}function _0x45f819(_0x3b7b9a,_0x553e91,_0x3648bb,_0x778c81){return _0x1343ee(_0x3648bb- -_0x4bd5a9._0x18ab8e,_0x553e91,_0x3648bb-_0x4bd5a9._0x3549d6,_0x778c81-0x18b);}return _0x53cfac[_0x4054de(_0x4ed682._0x2c1e6d,0x43e,0x2f5,0x34a)](getLspPackageDir(_0x5e3b82),_0x4054de(_0x4ed682._0x3015c0,0x350,_0x4ed682._0x1a7163,_0x4ed682._0x3ca4df),_0x4054de(0x377,0x488,_0x4ed682._0x215263,0x46f));}async function findPackageBinary(_0xde0f2f,_0xd93a12){const _0x6905ba={_0x49d6e6:0x32d,_0x1f35fe:0x468,_0x324002:0x50d,_0x5e0ee4:0x56f,_0x5896d8:0x59b,_0x13ee86:0x394},_0x3eb665={_0x553306:0x100},_0x20ddd1={_0x4b5abb:0x2fc,_0x440a4a:0x4e,_0x1235ad:0x13e};let _0x153727=_0x53cfac[_0x42b1d2(0x4cf,_0x6905ba._0x49d6e6,_0x6905ba._0x1f35fe,_0x6905ba._0x324002)](_0xd93a12);function _0x28f9d8(_0x2cf69f,_0x1dcd0b,_0x1b576c,_0x13d788){return _0x1343ee(_0x1b576c-_0x20ddd1._0x4b5abb,_0x2cf69f,_0x1b576c-_0x20ddd1._0x440a4a,_0x13d788-_0x20ddd1._0x1235ad);}function _0x42b1d2(_0x16938e,_0x3a25b2,_0x5ed524,_0x46b9b6){return _0x357fd3(_0x16938e-_0x3eb665._0x553306,_0x3a25b2-0xa6,_0x5ed524-0x405,_0x3a25b2);}const _0x9d1a99=binaryNameForPlatform(_0xde0f2f);while(!![]){const _0x22fee5=_0x53cfac['join'](_0x153727,'node_modules',_0x42b1d2(_0x6905ba._0x5e0ee4,0x5b8,0x564,_0x6905ba._0x5896d8),_0x9d1a99);if(await exists(_0x22fee5))return _0x22fee5;const _0x255c5e=_0x53cfac[_0x28f9d8(0x5e6,0x381,0x4b0,_0x6905ba._0x13ee86)](_0x153727);if(_0x255c5e===_0x153727)return void 0x0;_0x153727=_0x255c5e;}}async function findPathBinary(_0x5eba13,_0x417bc5){const _0x2b6909={_0x5c4db2:0x552,_0x577019:0x478,_0x592b3c:0x603,_0x4e56ad:0x474},_0xdce2bb={_0x3be146:0xe8},_0xa05ac0={_0x35ecdf:0x1c1},_0x56914a=getLspBinDir(_0x417bc5),_0x559439=[_0x56914a,process[_0x23e740(0x64a,_0x2b6909._0x5c4db2,_0x2b6909._0x577019,0x5c2)]['PATH']][_0x23e740(0x728,0x516,0x5e5,_0x2b6909._0x592b3c)](Boolean)['join'](_0x53cfac[_0x23e740(0x490,0x4d1,0x3a0,_0x2b6909._0x4e56ad)]);function _0x466022(_0x865abd,_0x296420,_0x34adad,_0x314427){return _0x1343ee(_0x34adad- -0x1f8,_0x296420,_0x34adad-0x18c,_0x314427-_0xa05ac0._0x35ecdf);}function _0x23e740(_0x40c6df,_0x52d8f9,_0x1ed66e,_0x13cab7){return _0x357fd3(_0x40c6df-_0xdce2bb._0x3be146,_0x52d8f9-0x14a,_0x13cab7-0x50c,_0x40c6df);}try{return await _0x31176f(_0x5eba13,{'path':_0x559439});}catch{return void 0x0;}}async function resolvePackageBinary(_0x43fa17){const _0x42e47d={_0x59c049:0xef,_0x31c7a5:0xd6,_0x2db43f:0x1bf,_0x2d7186:0x9f,_0x30a697:0xf0,_0x54bcbc:0xad,_0x1abdeb:0x3f,_0x2a74ab:0xb,_0x450293:0x272,_0xf6e630:0x229,_0x5c578b:0x159,_0x14c1f2:0x11,_0x55f90a:0x106,_0x41a556:0x12b,_0x24cdf8:0x14a,_0x1826e3:0x21f,_0x3ac230:0x149,_0x118001:0xfb,_0x3a1ca8:0x140,_0x5801c4:0x231,_0x3502be:0x16c,_0x32cc93:0x11d,_0x33cb10:0x241,_0x2ec92c:0x2ae},_0x28fe10={_0x598c08:0x138,_0x448e25:0x5b,_0x3c6cef:0x14f,_0x49d05a:0x73,_0x558be1:0x1bc},_0x40cc82={_0x2ad8ea:0x47,_0x48c928:0x114},_0x5b5090={_0x17da9d:0x9e,_0x2d0530:0x42,_0x4b1055:0x1e0},_0x1ad605={_0xba7198:0xd,_0x44198a:0x6e,_0x57edf0:0x1b9},_0x28b2f7=_0x43fa17['binaryName']??_0x43fa17['packageName'];function _0x1e7a19(_0x5b85b9,_0x7ef54b,_0x16c5ea,_0x434773){return _0x1343ee(_0x7ef54b- -_0x1ad605._0xba7198,_0x5b85b9,_0x16c5ea-_0x1ad605._0x44198a,_0x434773-_0x1ad605._0x57edf0);}const _0x227793=await findPackageBinary(_0x28b2f7,_0x43fa17[_0x1e7a19(_0x42e47d._0x59c049,0x12c,0x94,_0x42e47d._0x31c7a5)]);if(_0x227793)return _0x227793;const _0x1f045f=await findPathBinary(_0x28b2f7,_0x43fa17[_0x1e7a19(_0x42e47d._0x2db43f,_0x42e47d._0x2d7186,_0x42e47d._0x30a697,_0x42e47d._0x54bcbc)]);if(_0x1f045f)return _0x1f045f;const _0x388c34=_0x43fa17[_0x1e7a19(-_0x42e47d._0x1abdeb,0xae,0xc9,-_0x42e47d._0x2a74ab)]??process[_0x292d48(_0x42e47d._0x450293,0x1b4,_0x42e47d._0xf6e630,_0x42e47d._0x5c578b)];if(shouldDisableLspDownload(_0x388c34))return void 0x0;const _0x5dad1f=getLspPackageDir(_0x43fa17[_0x292d48(_0x42e47d._0x14c1f2,_0x42e47d._0x55f90a,_0x42e47d._0x41a556,_0x42e47d._0x24cdf8)]),_0x77d66c=_0x43fa17[_0x292d48(_0x42e47d._0x1826e3,0x8b,_0x42e47d._0x3ac230,0x14a)]+':'+_0x28b2f7;function _0x292d48(_0x5240c9,_0x3c081e,_0x972e04,_0x53d2fd){return _0x1343ee(_0x53d2fd-_0x5b5090._0x17da9d,_0x3c081e,_0x972e04-_0x5b5090._0x2d0530,_0x53d2fd-_0x5b5090._0x4b1055);}let _0x12d6a8=installPromises[_0x292d48(_0x42e47d._0x118001,-0x9e,_0x42e47d._0x3a1ca8,0x5)](_0x77d66c);!_0x12d6a8&&(_0x12d6a8=((async()=>{await mkdir(_0x5dad1f,{'recursive':!![]});function _0x42a10e(_0x34d37b,_0x539b47,_0x53d3c5,_0x488966){return _0x292d48(_0x34d37b-0x1d1,_0x539b47,_0x53d3c5-_0x40cc82._0x2ad8ea,_0x488966- -_0x40cc82._0x48c928);}const _0x5a4b75=await runNpmInstall(_0x5dad1f,_0x43fa17[_0x1aca67(0xf0,0xfd,_0x28fe10._0x598c08,0x1bc)],_0x388c34);if(!_0x5a4b75)return void 0x0;const _0x6cdeee=_0x53cfac[_0x1aca67(0x132,_0x28fe10._0x448e25,0x155,_0x28fe10._0x3c6cef)](getLspBinDir(_0x43fa17[_0x1aca67(0x2d2,0x15e,_0x28fe10._0x49d05a,_0x28fe10._0x558be1)]),binaryNameForPlatform(_0x28b2f7));function _0x1aca67(_0x2850ef,_0x256787,_0x3e68cc,_0x131942){return _0x1e7a19(_0x3e68cc,_0x131942-0x11d,_0x3e68cc-0x4a,_0x131942-0x1d4);}return await exists(_0x6cdeee)?_0x6cdeee:void 0x0;})()),installPromises[_0x292d48(_0x42e47d._0x5801c4,_0x42e47d._0x3502be,0x1fd,_0x42e47d._0x32cc93)](_0x77d66c,_0x12d6a8));try{return await _0x12d6a8;}catch{return void 0x0;}finally{installPromises[_0x292d48(0x2ea,_0x42e47d._0x33cb10,_0x42e47d._0x2ec92c,0x1e4)](_0x77d66c);}}var TYPESCRIPT_EXTENSIONS=[_0x1343ee(0xf2,0xa6,0x1d,0x1bd),_0x357fd3(-0x66,-0x10e,0x20,-0x13),'.js',_0x1343ee(0x10e,0x255,-0x32,0x168),_0x357fd3(-0x14c,0x101,-0x42,-0xa8),_0x357fd3(0xd1,-0x19,0xfb,0xf0),'.mts','.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x1343ee(-0x7f,0x74,-0x17e,-0x153),_0x357fd3(0x16b,0x15c,0xd7,-0x4c)],TYPESCRIPT_ROOT_MARKERS=[_0x1343ee(0x1d5,0x1b2,0x27d,0x30f),'bun.lockb',_0x357fd3(0x47,-0x8a,0x50,-0x37),_0x357fd3(0x15e,0x173,0x11f,0x162),_0x1343ee(0x170,0xe9,0x22c,0x1d2),_0x1343ee(0xf1,-0x35,-0x2a,0x1d3),'jsconfig.json',_0x1343ee(-0xb7,-0x7a,0x67,-0x157)],BIOME_ROOT_MARKERS=['biome.json',_0x1343ee(-0x5,-0x1e,0x9,-0x52),_0x1343ee(0x1d5,0xf2,0xf7,0xf4),'bun.lockb',_0x357fd3(0xb5,0x18e,0x50,-0xbc),_0x357fd3(0xd2,0x50,0x11f,0xf0),_0x357fd3(0x148,0x214,0x16b,0xbe),_0x1343ee(-0xb7,0x56,-0x63,-0x19a)];async function exists2(_0x121c85){try{return await _0x3a9a36(_0x121c85),!![];}catch{return![];}}async function findUp(_0x1b55ed,_0x2764ba){const _0x61aa79={_0x1a14eb:0x20f,_0x38c3d7:0x23b,_0x3de489:0xe6,_0x408554:0x226,_0x350034:0x410,_0x459569:0x242},_0x4d9a51={_0x4e4bc3:0x97},_0x318b0a={_0x3f38ae:0x15b};let _0x4ecfa8=_0x1573c4[_0x501348(-0x2e1,-0x1c3,-0x346,-0x1fd)](_0x1b55ed);function _0x53fe5a(_0x51a299,_0x541094,_0x2255ec,_0x11ac80){return _0x357fd3(_0x51a299-0x13c,_0x541094-_0x318b0a._0x3f38ae,_0x11ac80-0x197,_0x541094);}const _0x154a07=_0x1573c4['extname'](_0x4ecfa8);function _0x501348(_0x345d14,_0xbfcf9f,_0x298319,_0x253c75){return _0x357fd3(_0x345d14-_0x4d9a51._0x4e4bc3,_0xbfcf9f-0x1d9,_0x253c75- -0x260,_0xbfcf9f);}if(_0x154a07)_0x4ecfa8=_0x1573c4['dirname'](_0x4ecfa8);while(!![]){for(const _0x14452d of _0x2764ba){if(await exists2(_0x1573c4[_0x501348(-_0x61aa79._0x1a14eb,-_0x61aa79._0x38c3d7,-_0x61aa79._0x3de489,-_0x61aa79._0x408554)](_0x4ecfa8,_0x14452d)))return _0x4ecfa8;}const _0x49ee66=_0x1573c4[_0x53fe5a(0x41d,_0x61aa79._0x350034,_0x61aa79._0x459569,0x346)](_0x4ecfa8);if(_0x49ee66===_0x4ecfa8)return void 0x0;_0x4ecfa8=_0x49ee66;}}async function hasDenoRoot(_0x1639d1){const _0x49eacf={_0x2254f5:0xcd,_0x3c4853:0xbf,_0x3c9d97:0x2b,_0x2662a2:0x9,_0x177d45:0x1c8,_0xc40bf5:0x74,_0xa4812b:0x92,_0x4b411b:0x107,_0x3e4c2f:0x84,_0x570bd1:0x116},_0x3d7f73={_0x106f51:0x2c},_0xdee724={_0x473eef:0x147};function _0x41d194(_0x1b414b,_0x344a57,_0x3cd6ec,_0x474d8a){return _0x357fd3(_0x1b414b-_0xdee724._0x473eef,_0x344a57-0xde,_0x474d8a- -0xf,_0x1b414b);}function _0x55c377(_0x5b8665,_0x23409b,_0x3280c7,_0x3ca978){return _0x1343ee(_0x3ca978-0x172,_0x3280c7,_0x3280c7-0x86,_0x3ca978-_0x3d7f73._0x106f51);}return await exists2(_0x1573c4[_0x41d194(-_0x49eacf._0x2254f5,0x9a,_0x49eacf._0x3c4853,_0x49eacf._0x3c9d97)](_0x1639d1,_0x55c377(-_0x49eacf._0x2662a2,_0x49eacf._0x177d45,0x8b,0xe1)))||await exists2(_0x1573c4[_0x41d194(_0x49eacf._0xc40bf5,0x1b,_0x49eacf._0xa4812b,0x2b)](_0x1639d1,_0x55c377(_0x49eacf._0x4b411b,0x11e,_0x49eacf._0x3e4c2f,_0x49eacf._0x570bd1)));}async function resolveTsserverPath(_0x13059f){const _0x3f6cf1={_0x409877:0x274,_0x37cb97:0x3a7,_0x25e96c:0x264,_0x1292d0:0x2b1,_0x5d3af6:0x1d9,_0x142eba:0x17b,_0x4c7b9a:0x27f,_0x1f66ba:0x161,_0x404f79:0x605,_0x5d2f57:0x4b9,_0x1299c0:0x609,_0x76ad69:0x5b9,_0x4b1651:0x4f7,_0x4b1a83:0x264,_0x7e21a1:0x490,_0x5781a1:0x2fa,_0xecdd85:0x236,_0x425eeb:0x11a,_0x534609:0x4d2,_0x5bce10:0x61f,_0x50d9d7:0x6b3},_0x1f58e1={_0xad541a:0x1aa},_0xb049b0={_0x3be46d:0x78,_0x3030d6:0x456};let _0x4155e3=_0x1573c4['resolve'](_0x13059f);while(!![]){const _0x1bbae5=_0x1573c4[_0x1398fa(-0x12,0x13b,0x18f,_0x3f6cf1._0x409877)](_0x4155e3,'node_modules',_0x1398fa(_0x3f6cf1._0x37cb97,_0x3f6cf1._0x25e96c,0x378,0x265),_0x1398fa(0x226,0x17d,_0x3f6cf1._0x1292d0,_0x3f6cf1._0x5d3af6),_0x1398fa(_0x3f6cf1._0x142eba,0x28d,_0x3f6cf1._0x4c7b9a,_0x3f6cf1._0x1f66ba));if(await exists2(_0x1bbae5))return _0x1bbae5;const _0x3dac55=_0x1573c4[_0x4460a8(0x640,_0x3f6cf1._0x404f79,0x52e,_0x3f6cf1._0x5d2f57)](_0x4155e3);if(_0x3dac55===_0x4155e3)break;_0x4155e3=_0x3dac55;}const _0x466524=getLspPackageDir(_0x4460a8(_0x3f6cf1._0x1299c0,_0x3f6cf1._0x76ad69,0x57d,_0x3f6cf1._0x4b1651)),_0x4ea4c5=await resolvePackageBinary({'packageName':_0x1398fa(0x131,_0x3f6cf1._0x4b1a83,0x1e0,0x21f),'binaryName':_0x4460a8(0x63f,0x515,0x3ee,0x4be),'startDir':_0x13059f});if(!_0x4ea4c5)return void 0x0;function _0x4460a8(_0x2076ab,_0x23789c,_0x5de70d,_0x5e03da){return _0x357fd3(_0x2076ab-_0xb049b0._0x3be46d,_0x23789c-0x189,_0x23789c-_0xb049b0._0x3030d6,_0x2076ab);}const _0x4249e2=_0x1573c4[_0x4460a8(0x344,_0x3f6cf1._0x7e21a1,0x589,0x562)](_0x466524,_0x1398fa(0x358,0x21b,_0x3f6cf1._0x5781a1,_0x3f6cf1._0xecdd85),_0x1398fa(0x1ee,0x264,0x126,_0x3f6cf1._0x425eeb),_0x4460a8(0x43f,_0x3f6cf1._0x534609,0x46b,_0x3f6cf1._0x5bce10),_0x4460a8(0x691,0x5e2,_0x3f6cf1._0x50d9d7,0x4c8));function _0x1398fa(_0x2d2425,_0x590ede,_0x6b366a,_0x599e05){return _0x1343ee(_0x590ede-0xfc,_0x599e05,_0x6b366a-_0x1f58e1._0xad541a,_0x599e05-0x29);}return await exists2(_0x4249e2)?_0x4249e2:void 0x0;}var TypeScriptServer={'id':'typescript','name':_0x357fd3(0x38,0x2e,-0xd,0xc4),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x392890){const _0x59d9db=await findUp(_0x392890,TYPESCRIPT_ROOT_MARKERS);if(!_0x59d9db)return void 0x0;return await hasDenoRoot(_0x59d9db)?void 0x0:_0x59d9db;},async 'spawn'(_0x1faa24){const _0x25730d={_0x3ff22f:0x1c5,_0x23ed35:0x43d,_0x36138f:0x485,_0x1c0a45:0x22e,_0x4c9a89:0x14b,_0x3f8645:0x1},_0x369bff={_0xf4df9a:0xbb,_0x31ae4b:0x77},_0x3f2288={_0x20c677:0x14a},_0x3e9a31=await resolveTsserverPath(_0x1faa24);if(!_0x3e9a31)return void 0x0;function _0x2708f2(_0x2ebf34,_0x4edc35,_0xd7bcc9,_0x4d275f){return _0x357fd3(_0x2ebf34-_0x3f2288._0x20c677,_0x4edc35-0x1d2,_0x2ebf34-0x1e0,_0x4d275f);}function _0x24b1b0(_0x3b2dbf,_0xb8a9eb,_0xde1c8e,_0x192d29){return _0x357fd3(_0x3b2dbf-0xb5,_0xb8a9eb-_0x369bff._0xf4df9a,_0x192d29-_0x369bff._0x31ae4b,_0xde1c8e);}const _0x3723a5=await resolvePackageBinary({'packageName':_0x24b1b0(_0x25730d._0x3ff22f,0xd6,0x2d2,0x1cd),'binaryName':_0x2708f2(0x336,_0x25730d._0x23ed35,_0x25730d._0x36138f,_0x25730d._0x1c0a45),'startDir':_0x1faa24});if(!_0x3723a5)return void 0x0;return{'process':_0x1b0add(_0x3723a5,['--stdio'],{'cwd':_0x1faa24,'stdio':_0x24b1b0(-_0x25730d._0x4c9a89,-0x127,-_0x25730d._0x3f8645,0x1)}),'initialization':{'tsserver':{'path':_0x3e9a31}}};}},BiomeServer={'id':'biome','name':_0x357fd3(0xe,0x173,0x84,-0x5e),'extensions':BIOME_EXTENSIONS,async 'root'(_0x561649){return findUp(_0x561649,BIOME_ROOT_MARKERS);},async 'spawn'(_0x110b56){const _0x2395e0={_0x28fabd:0x527,_0x48331a:0x16c,_0x3ac356:0x59f,_0x4f6022:0x68d,_0x360014:0x38,_0xb36b48:0x1c9,_0x4fcb84:0x3f9,_0x50e805:0x396},_0x35c0c9={_0x1f993d:0x100,_0x3b025e:0x54},_0x362e49={_0x5484b5:0x3c8};function _0x1f527e(_0x43a153,_0xc34daa,_0x2e1a02,_0x240884){return _0x357fd3(_0x43a153-0x40,_0xc34daa-0xc6,_0x240884-_0x362e49._0x5484b5,_0xc34daa);}function _0x1ad211(_0x7104bc,_0x306534,_0x1094c3,_0x38dc94){return _0x357fd3(_0x7104bc-_0x35c0c9._0x1f993d,_0x306534-_0x35c0c9._0x3b025e,_0x38dc94-0x45,_0x306534);}const _0x236a8c=await findPackageBinary(_0x1f527e(_0x2395e0._0x28fabd,0x5a1,0x662,0x547),_0x110b56)??await resolvePackageBinary({'packageName':'@biomejs/biome','binaryName':_0x1ad211(0x18a,0x13b,_0x2395e0._0x48331a,0x1c4),'startDir':_0x110b56});if(!_0x236a8c)return void 0x0;return{'process':_0x1b0add(_0x236a8c,[_0x1f527e(_0x2395e0._0x3ac356,0x583,_0x2395e0._0x4f6022,0x58b),_0x1ad211(_0x2395e0._0x360014,0xfd,_0x2395e0._0xb36b48,0x91)],{'cwd':_0x110b56,'stdio':_0x1f527e(_0x2395e0._0x4fcb84,_0x2395e0._0x50e805,0x238,0x352)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x5a2bd8){const _0x1b9507={_0x2326f5:0x4ee,_0x1eb2de:0x573,_0x2f7907:0x4bd,_0x2153b9:0x600,_0x51863e:0x4d5,_0x25141d:0x42d,_0x2ef870:0x1cc,_0x42987d:0x3c9,_0x793350:0x27e},_0xb3a558={_0x49228f:0x1b4,_0x5ba5d7:0x187},_0x245da1={_0x19f436:0x3c1,_0x243e80:0x115};function _0x496c1e(_0x310da9,_0x248b82,_0xdf4c78,_0xfb2961){return _0x1343ee(_0x310da9-_0x245da1._0x19f436,_0xfb2961,_0xdf4c78-0x195,_0xfb2961-_0x245da1._0x243e80);}function _0x1a263f(_0x33fd94,_0x222284,_0x3ce616,_0x4fdd45){return _0x357fd3(_0x33fd94-_0xb3a558._0x49228f,_0x222284-0x112,_0x3ce616-_0xb3a558._0x5ba5d7,_0x33fd94);}const _0x343d5b=_0x1573c4[_0x496c1e(_0x1b9507._0x2326f5,_0x1b9507._0x1eb2de,_0x1b9507._0x2f7907,_0x1b9507._0x2153b9)](_0x5a2bd8)[_0x496c1e(_0x1b9507._0x51863e,0x490,_0x1b9507._0x25141d,0x504)]();return BUILTIN_LSP_SERVERS[_0x1a263f(_0x1b9507._0x2ef870,_0x1b9507._0x42987d,_0x1b9507._0x793350,0x301)](_0x1f5436=>_0x1f5436['extensions']['includes'](_0x343d5b));}function stateKey(_0x57f40f,_0x520433){return _0x520433+':'+_0x57f40f['id'];}function diagnosticsKeyToPath(_0x101f59){const _0x2078a5={_0x21479c:0x11d},_0x536ef5={_0x5600c9:0x1ef,_0x118810:0x1c1};function _0xd7bcd0(_0xf63117,_0xe7e808,_0x194961,_0x416458){return _0x1343ee(_0x416458- -_0x536ef5._0x5600c9,_0xf63117,_0x194961-0x119,_0x416458-_0x536ef5._0x118810);}if(!_0x101f59[_0xd7bcd0(-0x21d,-0x10b,-_0x2078a5._0x21479c,-0x203)]('file://'))return _0x101f59;return fileURLToPath(_0x101f59);}function nextFileVersion(_0x10c895,_0x59ea52){const _0x3d3d73={_0x34aa1d:0xa9,_0x3d4a18:0xe3,_0x2ed020:0x12d,_0x15af0b:0x300,_0x547d27:0x259,_0x3c58bd:0x357,_0x1c7398:0x13c,_0x59d619:0x24d,_0x26851a:0x141},_0x5f1c77={_0x3481f1:0x56},_0x39f858={_0x491325:0x1bd,_0x2f343d:0x10};function _0x3ed06c(_0x52df18,_0x5267d4,_0x4496d1,_0x310d3e){return _0x1343ee(_0x52df18-0x124,_0x310d3e,_0x4496d1-_0x39f858._0x491325,_0x310d3e-_0x39f858._0x2f343d);}const _0x40e698=(_0x10c895[_0x3ed06c(_0x3d3d73._0x34aa1d,_0x3d3d73._0x3d4a18,0x11c,_0x3d3d73._0x2ed020)][_0x1e2215(-_0x3d3d73._0x15af0b,-_0x3d3d73._0x547d27,-_0x3d3d73._0x3c58bd,-_0x3d3d73._0x1c7398)](_0x59ea52)??0x1)+0x1;function _0x1e2215(_0x5444c2,_0x124ca7,_0x3017ad,_0xd63169){return _0x357fd3(_0x5444c2-0x1f2,_0x124ca7-_0x5f1c77._0x3481f1,_0x124ca7- -0x1bb,_0xd63169);}return _0x10c895['fileVersions'][_0x1e2215(-_0x3d3d73._0x59d619,-_0x3d3d73._0x26851a,-0xa9,-0x154)](_0x59ea52,_0x40e698),_0x40e698;}async function collectClientResults(_0x53693c){const _0x41ae9c={_0x5cc657:0x12f,_0x2b48a4:0x77,_0x339a21:0xb5,_0x2e92b7:0x115,_0x4ad404:0xc6,_0x1ecc57:0x156},_0x4a3877={_0x4fd9f3:0xe,_0x1aba03:0x10b,_0x1e3b2a:0xc8},_0x17061d={_0x3405be:0x1f0,_0x4c4c65:0x143,_0x3b8c7b:0xba};function _0x150bd7(_0x488c04,_0x4c34eb,_0x19ffdb,_0x36ae24){return _0x357fd3(_0x488c04-_0x17061d._0x3405be,_0x4c34eb-_0x17061d._0x4c4c65,_0x4c34eb-_0x17061d._0x3b8c7b,_0x36ae24);}const _0x708c30=await Promise[_0x55ad8e(_0x41ae9c._0x5cc657,-_0x41ae9c._0x2b48a4,_0x41ae9c._0x339a21,-0x33)](_0x53693c);function _0x55ad8e(_0x59f225,_0x1f6ea5,_0x7652fc,_0x132ff8){return _0x1343ee(_0x7652fc- -_0x4a3877._0x4fd9f3,_0x1f6ea5,_0x7652fc-_0x4a3877._0x1aba03,_0x132ff8-_0x4a3877._0x1e3b2a);}return _0x708c30[_0x55ad8e(_0x41ae9c._0x2e92b7,_0x41ae9c._0x4ad404,0x7c,_0x41ae9c._0x1ecc57)](_0x2f587d=>_0x2f587d[_0x55ad8e(0x56,0x79,-0xa,-0x89)]===_0x55ad8e(0x11f,-0x3,0xcb,-0x81)?_0x2f587d[_0x150bd7(0x17a,0x7f,0x1a,0x6b)]:[]);}function createLspService(_0x512926={}){const _0x4c9ff7={_0x1454b8:0x26a},_0x1d9e47={_0x970af1:0x1f6,_0x228291:0x2e7,_0x57b926:0x27e,_0x5322d9:0x14c,_0x1f6083:0x28d,_0x31e577:0x172,_0x485e37:0x42,_0xb5a867:0x63,_0x1332ef:0x24c,_0x529df0:0x22e,_0x7a681b:0x1a1,_0x1f5881:0x27a,_0x1a3e35:0x3e,_0x3f4dc9:0xa0,_0x44d25b:0x238,_0x2e4ca2:0x13c,_0x4ee742:0x188,_0x14e0e4:0x18e,_0x7c098f:0x1ee,_0x3dc753:0x57,_0x33d541:0xca,_0x1d91bc:0xcd},_0x19c27e={_0x17f891:0x2c2,_0x3762df:0x1b6},_0x41fc23={_0x4d2c0d:0x13a,_0x5a7745:0x75},_0x10cf8a={_0x318a28:0x169},_0x2c5327={_0x5c3ca1:0x10e,_0x32c23b:0x241},_0x5026e7={_0x285134:0x74},_0x2a8e71={_0x4de443:0x260,_0x43f415:0x279,_0x4ccb10:0x1e8,_0x3d1a9a:0x1b3,_0x1f1044:0x23d},_0x63d9d2={_0x151313:0x26},_0x352a1c={_0x21bacc:0x155,_0x1ee84b:0x184},_0x2e2d05={_0x16cf22:0x1bb,_0x4dc869:0xf8},_0x2633ba={_0xc50e7b:0x2ea},_0x3f5b17={_0x29531c:0x165},_0x48ba31={_0x38d3ad:0x406,_0x35be20:0x366},_0x560588={_0x4d8eab:0x2d,_0x510551:0x5f,_0x4097bc:0x15f,_0xa65387:0x24c,_0x5e2c72:0x2af},_0x173610={_0x5037e5:0x184},_0xad07bc={_0x4ba18e:0x380},_0xb061e9={_0x34b089:0x1b6},_0x576220={_0xb0d811:0xfd,_0x66f2c:0x304,_0x6148c7:0x12d,_0x27c03d:0xc5},_0x3a6c43={_0x3585e4:0x2b,_0x2c404f:0xf2},_0x3ccf5c={_0x298b1e:0xc4,_0x14f157:0x34,_0x57731f:0x83,_0x182931:0xd,_0x45aeb5:0x58,_0x149af4:0x9d,_0x130555:0x9b,_0x2ece71:0x99},_0x56bb09={_0x37bd9e:0x19f,_0x2c44b7:0x93,_0x3cd901:0x81,_0x3e8c5c:0x246,_0x4b0d04:0x29d,_0x3de401:0x278,_0x25ed9e:0x3b9,_0x34cd3f:0x320,_0x5119d2:0x4ae,_0x3b25d8:0x160,_0x3f997c:0x24,_0x53d9f9:0x20d},_0x5eba7a={_0x26e696:0x2f3,_0x525d09:0x11a},_0x387f1c={_0x2354e9:0x76,_0xd73847:0x119};function _0x4869cc(_0x322050,_0x4c42ff,_0x4d9f1d,_0x230577){return _0x357fd3(_0x322050-0x74,_0x4c42ff-_0x387f1c._0x2354e9,_0x322050-_0x387f1c._0xd73847,_0x4c42ff);}const _0x5d27ef={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x5876e1=()=>_0x512926[_0x4869cc(0xea,0x29,-0x3a,0x12)]!==![];async function _0x3c8508(_0x50d625,_0xc7770e){const _0x34891b={_0x255682:0x14,_0x285e49:0x254,_0x5d178a:0x175,_0x2fa34e:0x4b1,_0x1ec58d:0x517,_0x5d561c:0x4c4,_0x418e6b:0x447,_0x239d4b:0x445,_0xe767bc:0x365,_0x3df74e:0x500,_0xee6311:0x4cc,_0x5f1a18:0x209,_0x5e2c45:0x269,_0x5d5f05:0x4b1,_0x119fd0:0x429,_0x416c01:0x346,_0xc4bc9a:0x4a6,_0x540dd0:0x511,_0x383639:0x3c6},_0x3ae507={_0x58c1a3:0xa2},_0x5abe8c=stateKey(_0x50d625,_0xc7770e);function _0x19ed3a(_0x26674c,_0x3e6162,_0x3fc659,_0x38f6f7){return _0x4869cc(_0x38f6f7-0x215,_0x3fc659,_0x3fc659-0x12,_0x38f6f7-0x125);}const _0x3c343a=_0x5d27ef[_0x19ed3a(_0x56bb09._0x37bd9e,0x373,0x248,0x2c3)][_0x3d6c6d(-_0x56bb09._0x2c44b7,-0x133,_0x56bb09._0x3cd901,0x13)](_0x26dd34=>_0x26dd34[_0x19ed3a(0x34c,0x458,0x27d,0x3bc)]===_0x50d625['id']&&_0x26dd34[_0x19ed3a(0x311,0x292,0x429,0x31c)]===_0xc7770e);if(_0x3c343a)return _0x3c343a;if(_0x5d27ef[_0x3d6c6d(-_0x56bb09._0x3e8c5c,-0x196,-0x36e,-_0x56bb09._0x4b0d04)]['has'](_0x5abe8c))return void 0x0;function _0x3d6c6d(_0x588531,_0x45a19e,_0xd1ea50,_0x2840ed){return _0x4869cc(_0x588531- -_0x5eba7a._0x26e696,_0x2840ed,_0xd1ea50-0x3b,_0x2840ed-_0x5eba7a._0x525d09);}const _0x38f571=_0x5d27ef['spawning'][_0x3d6c6d(-_0x56bb09._0x3de401,-_0x56bb09._0x25ed9e,-0x2c9,-_0x56bb09._0x34cd3f)](_0x5abe8c);if(_0x38f571)return _0x38f571;const _0x1096aa=((async()=>{const _0x344552={_0xbd431c:0xe2};function _0x3458dc(_0x555642,_0x3ed32b,_0x5c43aa,_0x260433){return _0x3d6c6d(_0x555642-0x36d,_0x3ed32b-_0x344552._0xbd431c,_0x5c43aa-0x1c6,_0x5c43aa);}function _0x123408(_0x45fbfd,_0x5d39c8,_0x32639c,_0x3f6328){return _0x19ed3a(_0x45fbfd-0x119,_0x5d39c8-0x1dc,_0x3f6328,_0x45fbfd-_0x3ae507._0x58c1a3);}try{const _0xd9f12e=await _0x50d625['spawn'](_0xc7770e);if(!_0xd9f12e)return _0x5d27ef[_0x3458dc(0x127,-_0x34891b._0x255682,_0x34891b._0x285e49,_0x34891b._0x5d178a)]['add'](_0x5abe8c),void 0x0;const _0x3201da=await createLspClient({'server':_0x50d625,'root':_0xc7770e,'handle':_0xd9f12e}),_0x4bb755=_0x5d27ef[_0x123408(0x365,0x30b,0x444,_0x34891b._0x2fa34e)][_0x123408(_0x34891b._0x1ec58d,_0x34891b._0x5d561c,_0x34891b._0x418e6b,_0x34891b._0x239d4b)](_0x3a4bb6=>_0x3a4bb6[_0x123408(0x45e,0x3ff,0x5a6,0x389)]===_0x50d625['id']&&_0x3a4bb6[_0x123408(0x3be,0x350,0x4bf,0x337)]===_0xc7770e);if(_0x4bb755)return await _0x3201da['shutdown'](),_0x4bb755;return _0x5d27ef[_0x123408(_0x34891b._0xe767bc,0x40b,0x42a,0x383)][_0x123408(0x42d,0x33a,_0x34891b._0x3df74e,_0x34891b._0xee6311)](_0x3201da),_0x3201da;}catch{return _0x5d27ef[_0x3458dc(0x127,0xe3,_0x34891b._0x5f1a18,_0x34891b._0x5e2c45)][_0x123408(_0x34891b._0x5d5f05,0x3d3,0x3fd,0x4fa)](_0x5abe8c),void 0x0;}finally{_0x5d27ef[_0x123408(_0x34891b._0x119fd0,_0x34891b._0x416c01,_0x34891b._0xc4bc9a,0x472)][_0x123408(_0x34891b._0x540dd0,0x467,_0x34891b._0x383639,0x572)](_0x5abe8c);}})());return _0x5d27ef[_0x19ed3a(0x400,0x240,_0x56bb09._0x5119d2,0x387)][_0x3d6c6d(-_0x56bb09._0x3b25d8,-_0x56bb09._0x3f997c,-0x169,-_0x56bb09._0x53d9f9)](_0x5abe8c,_0x1096aa),_0x1096aa;}async function _0x3b12db(_0x11400d,_0x45a210){const _0x27bd9f={_0xfd02cd:0x30f,_0x5602ed:0x2},_0x18db52={_0x3ec6f9:0xbb,_0x6b9da7:0x23};if(!_0x5876e1())return[];function _0x34137f(_0x4b3c91,_0x38209b,_0x2efe8c,_0x194ea6){return _0x4869cc(_0x4b3c91- -_0x18db52._0x3ec6f9,_0x194ea6,_0x2efe8c-0x64,_0x194ea6-_0x18db52._0x6b9da7);}function _0x2f131c(_0x232592,_0x410b20,_0x13cbaf,_0x3e8aa5){return _0x4869cc(_0x3e8aa5- -_0x27bd9f._0xfd02cd,_0x13cbaf,_0x13cbaf-0x18,_0x3e8aa5-_0x27bd9f._0x5602ed);}const _0xaaba78=[];for(const _0x519749 of getServersForFile(_0x11400d)){const _0x477f3b=await _0x519749[_0x34137f(0x4c,0x152,_0x3ccf5c._0x298b1e,0x42)](_0x11400d);if(!_0x477f3b)continue;const _0x1e378a=stateKey(_0x519749,_0x477f3b);if(_0x5d27ef[_0x34137f(-0xe,-_0x3ccf5c._0x14f157,-0x153,_0x3ccf5c._0x57731f)]['has'](_0x1e378a))continue;const _0x57b8f6=_0x5d27ef[_0x34137f(-_0x3ccf5c._0x182931,0x43,_0x3ccf5c._0x45aeb5,_0x3ccf5c._0x149af4)][_0x34137f(0x1a5,_0x3ccf5c._0x130555,_0x3ccf5c._0x2ece71,0x20b)](_0xc18ece=>_0xc18ece[_0x34137f(0xec,0xab,0x16c,0x142)]===_0x519749['id']&&_0xc18ece[_0x34137f(0x4c,-0x32,-0x74,-0xe2)]===_0x477f3b);if(_0x57b8f6){_0xaaba78['push'](_0x57b8f6);continue;}if(!_0x45a210)continue;const _0xf9d280=await _0x3c8508(_0x519749,_0x477f3b);if(_0xf9d280)_0xaaba78['push'](_0xf9d280);}return _0xaaba78;}async function _0xc4edf2(_0x558218,_0x2deb44=![]){const _0x1c9c1b={_0x4e51cd:0x198,_0x3e113a:0x1ff,_0x13cd59:0x26c,_0x2f710c:0x361,_0x46f647:0x48d,_0x217b91:0x464,_0xcc0f83:0x4e2,_0x5ba66c:0x204,_0x27395c:0x2b8,_0x2e80ba:0x15c,_0x54a3ab:0x1c1,_0x4dfc39:0xf2,_0x55ceae:0x34e,_0x2f579e:0x52e,_0xcd8a75:0x3ed,_0x206996:0x1dc,_0x25275f:0x1b2,_0x3b9460:0x521,_0x450d15:0x60a},_0x55909c={_0x12857e:0xd2},_0x5cdcc0=await _0x3b12db(_0x558218,!![]);await Promise['all'](_0x5cdcc0['map'](async _0x1380e3=>{function _0x19d7f2(_0x2da405,_0x5e4afc,_0x2653fc,_0x10ce48){return _0x1358(_0x5e4afc-0x2b2,_0x2653fc);}function _0x1fb174(_0x5e6519,_0x5385ee,_0x4c28eb,_0x42bc9a){return _0x1358(_0x5e6519- -_0x55909c._0x12857e,_0x5385ee);}!_0x5d27ef[_0x1fb174(0x204,_0x1c9c1b._0x4e51cd,_0x1c9c1b._0x3e113a,_0x1c9c1b._0x13cd59)]['has'](_0x1380e3[_0x19d7f2(_0x1c9c1b._0x2f710c,_0x1c9c1b._0x46f647,0x374,0x48e)]+':'+_0x1380e3[_0x19d7f2(_0x1c9c1b._0x217b91,0x3ed,_0x1c9c1b._0xcc0f83,0x4c6)]+':'+_0x558218)&&(await _0x1380e3['notify'][_0x19d7f2(0x50c,0x4d9,0x41f,0x45a)]({'path':_0x558218}),_0x5d27ef[_0x1fb174(_0x1c9c1b._0x5ba66c,0x30d,_0x1c9c1b._0x27395c,0x172)][_0x1fb174(_0x1c9c1b._0x2e80ba,0x17b,_0x1c9c1b._0x54a3ab,_0x1c9c1b._0x4dfc39)](_0x1380e3[_0x19d7f2(_0x1c9c1b._0x55ceae,0x48d,0x3bf,0x4f7)]+':'+_0x1380e3[_0x19d7f2(_0x1c9c1b._0x2f579e,_0x1c9c1b._0xcd8a75,0x53c,0x4ac)]+':'+_0x558218));await _0x1380e3['notify'][_0x1fb174(0xf2,_0x1c9c1b._0x206996,_0x1c9c1b._0x25275f,0x205)]({'path':_0x558218,'version':nextFileVersion(_0x5d27ef,_0x558218)});if(_0x2deb44)await _0x1380e3[_0x19d7f2(0x446,_0x1c9c1b._0x3b9460,0x44b,_0x1c9c1b._0x450d15)]({'path':_0x558218});}));}async function _0x3f68c8(_0x2b2fe6){const _0x2b9afe={_0x1370f5:0xda,_0x3545b2:0xeb};function _0x3481a8(_0x465119,_0x3a682f,_0x360297,_0x2d6bf3){return _0x4869cc(_0x2d6bf3-_0x3a6c43._0x3585e4,_0x465119,_0x360297-0x47,_0x2d6bf3-_0x3a6c43._0x2c404f);}function _0x4a6a25(_0xedda4f,_0xc92115,_0x42b390,_0x294521){return _0x4869cc(_0xc92115- -0x2c7,_0x42b390,_0x42b390-_0x2b9afe._0x1370f5,_0x294521-_0x2b9afe._0x3545b2);}return await _0xc4edf2(_0x2b2fe6[_0x4a6a25(-_0x576220._0xb0d811,-0x1c3,-_0x576220._0x66f2c,-0x10f)],![]),_0x3b12db(_0x2b2fe6[_0x4a6a25(-_0x576220._0x6148c7,-0x1c3,-_0x576220._0x27c03d,-0x1e4)],![]);}async function _0x187da7(_0x52d486){const _0x1f3683={_0x1eeee3:0x1f0},_0x1e1233={_0x1e8aa8:0x11c,_0x1cb253:0x1af};function _0x5e10fa(_0x56de89,_0x953bf8,_0x30f3f6,_0x311fef){return _0x4869cc(_0x311fef-_0x1e1233._0x1e8aa8,_0x30f3f6,_0x30f3f6-_0x1e1233._0x1cb253,_0x311fef-_0x1e1233._0x1cb253);}function _0x1fd68b(_0x32177f,_0x5dc1f8,_0x379d40,_0x44797e){return _0x4869cc(_0x32177f-0x49,_0x44797e,_0x379d40-_0x1f3683._0x1eeee3,_0x44797e-0x74);}const _0x5180c8=await _0x3f68c8(_0x52d486);return collectClientResults(_0x5180c8[_0x5e10fa(0x1fe,0x291,0x2ca,_0xb061e9._0x34b089)](_0x3c0711=>_0x3c0711[_0x1fd68b(0x1b5,0x17f,0x22e,0x2af)][_0x1fd68b(0x18f,0x23f,0x17a,0xa8)](_0x52d486)));}return{'isEnabled':_0x5876e1,async 'hasClients'(_0x2db1f7){function _0x5674d6(_0x41fcc4,_0x4d0511,_0x40e6c9,_0x444256){return _0x4869cc(_0x4d0511- -_0xad07bc._0x4ba18e,_0x444256,_0x40e6c9-0x1f0,_0x444256-0x1bc);}function _0x11e899(_0x44d045,_0x3c88a4,_0x2d3059,_0x531ee4){return _0x4869cc(_0x2d3059- -0x1fd,_0x44d045,_0x2d3059-_0x173610._0x5037e5,_0x531ee4-0x112);}return(await _0x3b12db(_0x2db1f7,![]))[_0x11e899(_0x560588._0x4d8eab,-0x136,-0xc9,-_0x560588._0x510551)]>0x0||getServersForFile(_0x2db1f7)[_0x5674d6(-_0x560588._0x4097bc,-_0x560588._0xa65387,-_0x560588._0x5e2c72,-0x391)]>0x0;},'touchFile':_0xc4edf2,async 'diagnostics'(){const _0x455fff={_0xbb120c:0x2b8,_0x55a39c:0xff};function _0x2370a(_0x263dc3,_0x3bdaea,_0x4891e9,_0x26752a){return _0x4869cc(_0x3bdaea-_0x455fff._0xbb120c,_0x4891e9,_0x4891e9-0xb0,_0x26752a-_0x455fff._0x55a39c);}const _0x34d242={};for(const _0x4fa815 of _0x5d27ef[_0x2370a(_0x48ba31._0x38d3ad,_0x48ba31._0x35be20,0x2b0,0x2b8)]){for(const [_0x226a92,_0x113c08]of _0x4fa815['diagnostics']){_0x34d242[diagnosticsKeyToPath(_0x226a92)]=_0x113c08;}}return _0x34d242;},async 'diagnosticsForFile'(_0x339907){await _0xc4edf2(_0x339907,!![]);const _0x4235b2=[];for(const _0x4e681a of await _0x3b12db(_0x339907,![])){for(const [_0x7d3406,_0x5ed54a]of _0x4e681a['diagnostics']){if(diagnosticsKeyToPath(_0x7d3406)===_0x339907)_0x4235b2[_0x28349b(0x3d5,0x424,_0x2633ba._0xc50e7b,0x3b2)](..._0x5ed54a);}}function _0x28349b(_0x4ffc89,_0x23f269,_0x20acce,_0x2a2331){return _0x4869cc(_0x23f269-0x2ae,_0x20acce,_0x20acce-0xdd,_0x2a2331-_0x3f5b17._0x29531c);}return _0x4235b2;},async 'definition'(_0x1f9b55){return collectClientResults((await _0x3f68c8(_0x1f9b55))['map'](_0x5307f4=>_0x5307f4['request']['definition'](_0x1f9b55)));},async 'references'(_0x224314){const _0x21d2b8={_0x18ac29:0x13c};function _0x1bcee5(_0x35f4ef,_0x39d6e6,_0x34fd75,_0x565f56){return _0x4869cc(_0x35f4ef-0x325,_0x34fd75,_0x34fd75-_0x21d2b8._0x18ac29,_0x565f56-0x48);}function _0x489503(_0x359716,_0xbdfe06,_0x5a3fd1,_0x2bac50){return _0x4869cc(_0xbdfe06-_0x2e2d05._0x16cf22,_0x5a3fd1,_0x5a3fd1-0x9,_0x2bac50-_0x2e2d05._0x4dc869);}return collectClientResults((await _0x3f68c8(_0x224314))[_0x489503(_0x352a1c._0x21bacc,0x255,0x37a,_0x352a1c._0x1ee84b)](_0x50f3f4=>_0x50f3f4[_0x489503(0x26f,0x327,0x261,0x365)][_0x1bcee5(0x548,0x5ac,0x690,0x546)](_0x224314)));},async 'hover'(_0x2ee21a){const _0x3aaa14={_0x3a7962:0xe8,_0x43d7a6:0x20};function _0x2606e1(_0x114fca,_0x54a865,_0x48e486,_0x5bff7c){return _0x4869cc(_0x48e486-0xa2,_0x114fca,_0x48e486-_0x3aaa14._0x3a7962,_0x5bff7c-_0x3aaa14._0x43d7a6);}function _0x570948(_0x5c745d,_0x513ec3,_0x53e89c,_0x1a6fa1){return _0x4869cc(_0x513ec3- -0x295,_0x53e89c,_0x53e89c-0x4,_0x1a6fa1-_0x63d9d2._0x151313);}const _0x994ac5=await Promise[_0x2606e1(0x382,_0x2a8e71._0x4de443,_0x2a8e71._0x43f415,0x23b)]((await _0x3f68c8(_0x2ee21a))['map'](_0x2eeea3=>_0x2eeea3['request'][_0x570948(-0x155,-0x13c,-0x141,-0xdd)](_0x2ee21a)));return _0x994ac5[_0x2606e1(_0x2a8e71._0x4ccb10,_0x2a8e71._0x3d1a9a,0x240,_0x2a8e71._0x1f1044)](_0x9d9b43=>_0x9d9b43[_0x570948(-0x255,-0x17d,-0x13e,-0x204)]==='fulfilled'&&_0x9d9b43[_0x570948(-0x1b4,-0x1b7,-0x6c,-0x147)]?[_0x9d9b43['value']]:[]);},async 'documentSymbol'(_0x3b7785){function _0x5bc830(_0x4bb17a,_0x5a6b26,_0x3b2489,_0x37a659){return _0x4869cc(_0x5a6b26- -0xe9,_0x4bb17a,_0x3b2489-0x107,_0x37a659-0xef);}function _0x19d8e4(_0x3dc239,_0x7458fb,_0x3af6b7,_0x4d96ec){return _0x4869cc(_0x3af6b7-_0x5026e7._0x285134,_0x7458fb,_0x3af6b7-0x50,_0x4d96ec-0xf8);}return await _0xc4edf2(_0x3b7785,![]),collectClientResults((await _0x3b12db(_0x3b7785,![]))[_0x19d8e4(0x5e,0x72,_0x2c5327._0x5c3ca1,_0x2c5327._0x32c23b)](_0xb006e=>_0xb006e[_0x19d8e4(0x2d3,0x2ae,0x1e0,0x158)]['documentSymbol'](_0x3b7785)));},async 'workspaceSymbol'(_0x4fe21c){const _0x383907={_0x1052f7:0x2e3,_0x526897:0x129},_0x2c4c3f={_0x5b2459:0x206,_0x12fa4c:0x31};function _0x2c035d(_0x21f709,_0xcbf7cc,_0x1f6ae8,_0x366513){return _0x4869cc(_0x1f6ae8-_0x2c4c3f._0x5b2459,_0x21f709,_0x1f6ae8-0x1bd,_0x366513-_0x2c4c3f._0x12fa4c);}function _0x39c43a(_0x2e5b80,_0x52d5c5,_0x978c64,_0xee9d7f){return _0x4869cc(_0x2e5b80-_0x383907._0x1052f7,_0x978c64,_0x978c64-0x87,_0xee9d7f-_0x383907._0x526897);}return collectClientResults(_0x5d27ef['clients'][_0x39c43a(0x37d,0x394,0x2cc,0x28b)](_0x1497e2=>_0x1497e2['request'][_0x39c43a(0x47b,0x44a,0x516,0x32e)](_0x4fe21c)));},async 'implementation'(_0x411bc3){const _0x261f99={_0xa0c8cb:0x27c,_0x53d4d9:0x14c};function _0x5cc119(_0x170732,_0x2d990c,_0x3e7be2,_0x5e1cb7){return _0x4869cc(_0x3e7be2- -0x125,_0x5e1cb7,_0x3e7be2-0x8b,_0x5e1cb7-_0x10cf8a._0x318a28);}function _0x5cf3a1(_0xf73669,_0x1172ad,_0x21c3c9,_0x57a388){return _0x4869cc(_0xf73669-_0x261f99._0xa0c8cb,_0x1172ad,_0x21c3c9-_0x261f99._0x53d4d9,_0x57a388-0x1be);}return collectClientResults((await _0x3f68c8(_0x411bc3))['map'](_0x52bcd8=>_0x52bcd8[_0x5cf3a1(0x3e8,0x393,0x50d,0x49e)][_0x5cc119(-0x135,-0x166,-0xb9,-0xa9)](_0x411bc3)));},async 'prepareCallHierarchy'(_0x510295){return _0x187da7(_0x510295);},async 'incomingCalls'(_0x220091){const _0x2a51df={_0x334b29:0x135,_0x211661:0xac},_0x2df810={_0x321f2f:0xae,_0x1ab772:0x1cb},_0x44ee6b=await _0x187da7(_0x220091);function _0x48638e(_0x19fd73,_0x296133,_0x5f414f,_0x3e324f){return _0x4869cc(_0x3e324f-_0x2df810._0x321f2f,_0x19fd73,_0x5f414f-0x7c,_0x3e324f-_0x2df810._0x1ab772);}const _0x5bdcc0=await _0x3f68c8(_0x220091);function _0x1fc2a3(_0x6d9f8a,_0x1d68c1,_0x14c6b0,_0x7628d7){return _0x4869cc(_0x14c6b0- -0x2b4,_0x7628d7,_0x14c6b0-_0x2a51df._0x334b29,_0x7628d7-_0x2a51df._0x211661);}return collectClientResults(_0x5bdcc0['flatMap'](_0x51f453=>_0x44ee6b[_0x1fc2a3(-0x14f,-0x1ca,-0x21a,-0x271)](_0x57612d=>_0x51f453[_0x48638e(0x1a6,0xee,0x26d,0x21a)][_0x48638e(-0x48,0x102,0xaa,0x107)](_0x57612d))));},async 'outgoingCalls'(_0x112080){function _0x593fab(_0x29373d,_0x956162,_0x27eb2d,_0xe9d1fd){return _0x4869cc(_0x27eb2d-0x18,_0x29373d,_0x27eb2d-_0x41fc23._0x4d2c0d,_0xe9d1fd-_0x41fc23._0x5a7745);}const _0x479cc6=await _0x187da7(_0x112080),_0x4d48f0=await _0x3f68c8(_0x112080);return collectClientResults(_0x4d48f0[_0x593fab(0x2bc,_0x19c27e._0x17f891,_0x19c27e._0x3762df,0x12d)](_0x379fda=>_0x479cc6['map'](_0x882049=>_0x379fda['request']['outgoingCalls'](_0x882049))));},async 'shutdown'(){const _0x3ab58e={_0x4047aa:0x189};if(_0x5d27ef[_0x1d6869(-0xfc,-0x314,-0x1c4,-_0x1d9e47._0x970af1)])return;function _0x1d6869(_0x5583bd,_0x5a68b8,_0x4b67ff,_0x27f35d){return _0x4869cc(_0x27f35d- -0x327,_0x4b67ff,_0x4b67ff-0x159,_0x27f35d-0x182);}function _0x40396f(_0x56c8d9,_0x43fceb,_0x50d10c,_0x44b0e5){return _0x4869cc(_0x44b0e5- -0x1d5,_0x43fceb,_0x50d10c-_0x3ab58e._0x4047aa,_0x44b0e5-0x141);}_0x5d27ef[_0x1d6869(-0x152,-0x201,-_0x1d9e47._0x228291,-0x1f6)]=!![],await Promise['allSettled'](_0x5d27ef[_0x1d6869(-0x20d,-0x12c,-0x156,-0x279)][_0x1d6869(-_0x1d9e47._0x57b926,-_0x1d9e47._0x5322d9,-0x210,-_0x1d9e47._0x1f6083)](_0x47b748=>_0x47b748['shutdown']())),_0x5d27ef['clients']=[],_0x5d27ef[_0x40396f(-_0x1d9e47._0x31e577,_0x1d9e47._0x485e37,0xb0,-_0x1d9e47._0xb5a867)][_0x1d6869(-0x34e,-0x1a9,-_0x1d9e47._0x1332ef,-_0x1d9e47._0x529df0)](),_0x5d27ef[_0x1d6869(-_0x1d9e47._0x7a681b,-0x2b6,-0x2c5,-_0x1d9e47._0x1f5881)][_0x40396f(-_0x1d9e47._0x1a3e35,-0xbf,-0x1d3,-0xdc)](),_0x5d27ef[_0x40396f(-_0x1d9e47._0x3f4dc9,-0x119,-_0x1d9e47._0x44d25b,-_0x1d9e47._0x2e4ca2)][_0x1d6869(-_0x1d9e47._0x4ee742,-_0x1d9e47._0x14e0e4,-_0x1d9e47._0x7c098f,-0x22e)](),_0x5d27ef[_0x40396f(-_0x1d9e47._0x3dc753,0x1b6,_0x1d9e47._0x33d541,_0x1d9e47._0x1d91bc)]['clear']();},'status'(){const _0x57396b={_0x48df8a:0x160,_0x3b5b84:0xf6,_0xb57de3:0x10};function _0xe8d580(_0x1ce4bb,_0x15455,_0x35eed8,_0x341fc4){return _0x4869cc(_0x35eed8-_0x57396b._0x48df8a,_0x341fc4,_0x35eed8-_0x57396b._0x3b5b84,_0x341fc4-_0x57396b._0xb57de3);}return{'connectedClients':_0x5d27ef['clients'][_0xe8d580(_0x4c9ff7._0x1454b8,0x336,0x294,0x34e)]};}};}function createQuestionId(){const _0x2af725={_0x4127fe:0x188,_0x42b465:0xab,_0x259d13:0x258,_0x17e2a1:0x160},_0x2638b6={_0x19a5aa:0x1bc,_0x3adbc7:0x81},_0xf9a66e={_0x42a95a:0x1f2};function _0x2e9a60(_0x1d033d,_0x50fbd8,_0x1d747d,_0x265faf){return _0x1343ee(_0x50fbd8-0x348,_0x265faf,_0x1d747d-_0xf9a66e._0x42a95a,_0x265faf-0x1f4);}function _0x4421ba(_0x29cbeb,_0x31b2fe,_0x5be852,_0x105812){return _0x1343ee(_0x31b2fe- -_0x2638b6._0x19a5aa,_0x29cbeb,_0x5be852-_0x2638b6._0x3adbc7,_0x105812-0x1df);}return'question-'+Date[_0x4421ba(-0x22e,-0x12b,-_0x2af725._0x4127fe,-_0x2af725._0x42b465)]()+'-'+Math[_0x4421ba(-0xb7,-0x198,-_0x2af725._0x259d13,-_0x2af725._0x17e2a1)]()['toString'](0x24)['slice'](0x2,0x9);}function validateInput(_0x3d1341){const _0x4e3740={_0x273984:0x95,_0x4694df:0x12e,_0x491d69:0x1d4,_0x165af3:0x95,_0x46f768:0x68,_0x4ef5b7:0x19f,_0x533fe0:0xb0,_0x5be29a:0x88,_0xad4b2a:0x314,_0x5753b5:0x238,_0x31bf65:0x298,_0x191ee5:0x4d5,_0x11cdfe:0x14a,_0x524ca1:0x137,_0x464fc2:0x57,_0x9d8e44:0x5b7,_0x432478:0x369,_0x368a95:0x46c,_0x40c976:0x549,_0x389917:0x17c,_0x1291fe:0x4f4,_0x5627e2:0x779,_0x16336e:0x68b,_0x2f5b80:0x69,_0x143688:0x165,_0x3383e0:0x2d4,_0x409dfd:0x1f4,_0x53d5e7:0x3fa,_0x4d4fbf:0x1c4,_0xf421c1:0x9a,_0x375e55:0x2b4,_0x100fbf:0x1ad,_0x36a588:0x748,_0x658955:0x60a,_0x235148:0x1b2,_0x3633ae:0x22e,_0x243869:0x460,_0x339643:0x5b3,_0x2c6546:0x55d,_0x36bfaf:0x227,_0x1d0144:0x2d7,_0x21d65f:0xb4,_0x1f15ae:0x58,_0x15f219:0x2d4,_0x71b84b:0x2a4,_0x5d030d:0x363,_0x2ce18b:0x602,_0x1513b5:0x66a,_0x1a06ba:0x52c,_0x2e4626:0x155,_0x3a544d:0x1e0,_0x386f74:0x1f2,_0x16c04c:0x8c,_0x569722:0x456,_0x41534d:0x58c,_0x6764af:0x253,_0x18a492:0x23e,_0x336686:0x23a,_0x24379f:0x1b9,_0xe0c8e6:0x73,_0x5f39d9:0x27c,_0x32cd77:0x799,_0x466b67:0x54f,_0x1a1fec:0x662,_0x5056fa:0x5fb,_0x1580e6:0x14a,_0x209507:0x5,_0x2dcdc0:0x1bb,_0x56a52d:0x5a7,_0x55654d:0x510,_0x5182dd:0x52c,_0x459e81:0x217,_0xe756c4:0x31f,_0x5b45e3:0x313,_0x26e7dc:0x16b,_0x24152f:0x128,_0x56a0a4:0x59e,_0x5a9fb5:0x72c,_0x273abc:0x567,_0x44adb5:0x6f5,_0x5a6c49:0x5a6,_0x4add6c:0x637,_0x3f88e3:0x42,_0x48f133:0x256,_0x587e3d:0x17d,_0x309239:0x387,_0x9e49a:0x5b6,_0x307f34:0x544,_0x1157bf:0x7b7,_0x894e21:0x630,_0x4c9800:0x664,_0x51b543:0x64f},_0x2991a6={_0x4bb095:0x12f},_0x957951={_0x17bec4:0x36};if(!Array[_0x54a846(0x22b,0x104,0x221,0x191)](_0x3d1341[_0x54a846(_0x4e3740._0x273984,_0x4e3740._0x4694df,-0x29,_0x4e3740._0x491d69)])||_0x3d1341[_0x54a846(_0x4e3740._0x165af3,-0x90,-0x49,_0x4e3740._0x46f768)][_0x54a846(0x14a,_0x4e3740._0x4ef5b7,0x63,0x194)]<0x1||_0x3d1341[_0x54a846(0x95,-_0x4e3740._0x533fe0,_0x4e3740._0x5be29a,0x1cb)]['length']>0x4)throw new ToolExecutionError(_0x54a846(0x28c,_0x4e3740._0xad4b2a,_0x4e3740._0x5753b5,_0x4e3740._0x31bf65),{'error':_0xdd7066(0x6af,0x557,_0x4e3740._0x191ee5,0x56b)});function _0xdd7066(_0x1fb3c0,_0x2ec8b6,_0x4c426e,_0x1b8c5c){return _0x357fd3(_0x1fb3c0-_0x957951._0x17bec4,_0x2ec8b6-0xbd,_0x1b8c5c-0x506,_0x2ec8b6);}function _0x54a846(_0x2f8036,_0x4a36df,_0x47f90d,_0x5e43a9){return _0x357fd3(_0x2f8036-0xee,_0x4a36df-0x1f4,_0x2f8036-_0x2991a6._0x4bb095,_0x47f90d);}for(let _0x5a385e=0x0;_0x5a385e<_0x3d1341['questions'][_0x54a846(_0x4e3740._0x11cdfe,0x268,_0x4e3740._0x524ca1,_0x4e3740._0x464fc2)];_0x5a385e+=0x1){const _0x121445=_0x3d1341[_0xdd7066(0x46c,_0x4e3740._0x9d8e44,_0x4e3740._0x432478,_0x4e3740._0x368a95)][_0x5a385e];if(!_0x121445[_0xdd7066(0x452,0x45c,0x496,_0x4e3740._0x40c976)]||typeof _0x121445[_0x54a846(0x172,0x16a,_0x4e3740._0x389917,0x270)]!==_0xdd7066(0x470,_0x4e3740._0x1291fe,0x57c,0x59b))throw new ToolExecutionError(_0xdd7066(0x67c,0x7b4,_0x4e3740._0x5627e2,_0x4e3740._0x16336e)+(_0x5a385e+0x1)+_0x54a846(0x115,_0x4e3740._0x2f5b80,_0x4e3740._0x143688,0xcd));if(!_0x121445[_0x54a846(_0x4e3740._0x3383e0,0x27e,_0x4e3740._0x409dfd,_0x4e3740._0x53d5e7)]||typeof _0x121445['header']!==_0x54a846(_0x4e3740._0x4d4fbf,0x17e,_0x4e3740._0xf421c1,0x1b1))throw new ToolExecutionError(_0x54a846(_0x4e3740._0x375e55,0x1c0,0x3e3,_0x4e3740._0x100fbf)+(_0x5a385e+0x1)+_0xdd7066(_0x4e3740._0x36a588,0x756,_0x4e3740._0x658955,0x65e));if(_0x121445[_0x54a846(0x2d4,0x3a2,_0x4e3740._0x235148,_0x4e3740._0x3633ae)][_0xdd7066(_0x4e3740._0x243869,_0x4e3740._0x339643,_0x4e3740._0x2c6546,0x521)]>0x14)throw new ToolExecutionError(_0x54a846(_0x4e3740._0x375e55,_0x4e3740._0x36bfaf,0x1ee,_0x4e3740._0x1d0144)+(_0x5a385e+0x1)+_0x54a846(0xb4,_0x4e3740._0x21d65f,0x19,_0x4e3740._0x1f15ae)+_0x121445[_0x54a846(_0x4e3740._0x15f219,_0x4e3740._0x71b84b,_0x4e3740._0x5d030d,0x1bd)]['length']);if(!Array[_0xdd7066(0x680,0x677,0x625,_0x4e3740._0x2ce18b)](_0x121445[_0xdd7066(0x660,0x57f,_0x4e3740._0x1513b5,_0x4e3740._0x1a06ba)])||_0x121445[_0x54a846(_0x4e3740._0x2e4626,_0x4e3740._0x3a544d,_0x4e3740._0x386f74,_0x4e3740._0x16c04c)][_0xdd7066(0x66c,_0x4e3740._0x569722,_0x4e3740._0x41534d,0x521)]<0x2||_0x121445[_0x54a846(0x155,_0x4e3740._0x6764af,_0x4e3740._0x18a492,_0x4e3740._0x336686)][_0x54a846(0x14a,_0x4e3740._0x24379f,_0x4e3740._0xe0c8e6,_0x4e3740._0x5f39d9)]>0x4)throw new ToolExecutionError(_0xdd7066(_0x4e3740._0x32cd77,0x64d,0x79b,0x68b)+(_0x5a385e+0x1)+_0xdd7066(_0x4e3740._0x466b67,_0x4e3740._0x1a1fec,0x539,_0x4e3740._0x5056fa));for(let _0x4e6e1c=0x0;_0x4e6e1c<_0x121445[_0x54a846(0x155,0xee,0x240,0x116)][_0x54a846(_0x4e3740._0x1580e6,_0x4e3740._0x209507,0xc0,_0x4e3740._0x2dcdc0)];_0x4e6e1c+=0x1){const _0x270230=_0x121445[_0xdd7066(0x678,_0x4e3740._0x56a52d,_0x4e3740._0x55654d,_0x4e3740._0x5182dd)][_0x4e6e1c];if(!_0x270230[_0x54a846(_0x4e3740._0x459e81,_0x4e3740._0xe756c4,_0x4e3740._0x5b45e3,_0x4e3740._0x26e7dc)]||!_0x270230[_0x54a846(_0x4e3740._0x24152f,0x65,-0xc,0x122)])throw new ToolExecutionError(_0xdd7066(0x726,_0x4e3740._0x56a0a4,_0x4e3740._0x5a9fb5,_0x4e3740._0x16336e)+(_0x5a385e+0x1)+_0xdd7066(_0x4e3740._0x273abc,_0x4e3740._0x44adb5,_0x4e3740._0x5a6c49,_0x4e3740._0x4add6c)+(_0x4e6e1c+0x1)+_0x54a846(0x92,0x79,-_0x4e3740._0x464fc2,-_0x4e3740._0x3f88e3));}if(typeof _0x121445['multiSelect']!==_0x54a846(_0x4e3740._0x48f133,0x24b,_0x4e3740._0x587e3d,_0x4e3740._0x309239))throw new ToolExecutionError(_0xdd7066(_0x4e3740._0x9e49a,_0x4e3740._0x307f34,_0x4e3740._0x1157bf,0x68b)+(_0x5a385e+0x1)+_0xdd7066(_0x4e3740._0x894e21,_0x4e3740._0x4c9800,_0x4e3740._0x894e21,_0x4e3740._0x51b543));}}function buildQuestions(_0x25d9ca){const _0x37ca7a={_0x46c4b3:0x282},_0x1a77a8={_0x43f652:0xf0};function _0xb47a54(_0x286f97,_0x56a825,_0x4fd7c9,_0x405dd9){return _0x1343ee(_0x56a825- -0x203,_0x4fd7c9,_0x4fd7c9-_0x1a77a8._0x43f652,_0x405dd9-0xbc);}function _0x36b80e(_0x1cfdad,_0x12d3aa,_0x47ce1e,_0x32a08f){return _0x1343ee(_0x1cfdad- -0x166,_0x32a08f,_0x47ce1e-0xa0,_0x32a08f-0x61);}return _0x25d9ca['questions'][_0xb47a54(-0x367,-0x27d,-0x1a1,-_0x37ca7a._0x46c4b3)]((_0x15ca9b,_0x491a7b)=>({'id':'q'+_0x491a7b,'question':_0x15ca9b[_0x36b80e(-0x11e,-0xe9,-0x197,-0x1ad)],'header':_0x15ca9b[_0x36b80e(0x44,0x101,-0x9b,0x3a)],'options':_0x15ca9b['options'],'multiSelect':_0x15ca9b[_0xb47a54(-0x34,-0xe9,-0x94,0x1f)]}));}function createResult(_0x508ef3,_0x3e62a1,_0x45d33a){const _0xecc40a={_0x2a75da:0x114,_0xb8c8e:0x1b,_0x405c67:0x1f2,_0x3bb4d3:0xe1,_0x509b9f:0x2a6},_0x144992={_0x23cee5:0xdf,_0xb49017:0x1ef},_0x5ad0ef={_0x212e47:0x167};function _0x4f0eec(_0x16deac,_0x33b058,_0x5cc2f6,_0xa392cf){return _0x1343ee(_0x5cc2f6-0x138,_0xa392cf,_0x5cc2f6-0x1c5,_0xa392cf-_0x5ad0ef._0x212e47);}function _0x316015(_0x50969c,_0x519ac2,_0x6c9204,_0x4ee3b0){return _0x1343ee(_0x50969c-_0x144992._0x23cee5,_0x519ac2,_0x6c9204-_0x144992._0xb49017,_0x4ee3b0-0x58);}const _0x1fa207={'questionId':_0x508ef3,'questionCount':_0x3e62a1,'answers':_0x45d33a};return createToolOutput(_0x316015(0x8f,_0xecc40a._0x2a75da,-0x44,-_0xecc40a._0xb8c8e)+JSON[_0x316015(_0xecc40a._0x405c67,0x20b,_0xecc40a._0x3bb4d3,_0xecc40a._0x509b9f)](_0x45d33a,null,0x2),_0x1fa207);}function createAskUserTool(){const _0x127fa8={_0x55651c:0x369,_0x355013:0x2cb,_0xb91d44:0x259,_0x113620:0x10b,_0x159855:0x1ce,_0x36887a:0x1be,_0x5d3277:0xa1,_0x2449c1:0x2d8,_0x49c6e1:0x17f,_0x4d1717:0x1b8,_0x102894:0x186,_0x2c1a7c:0x2e0,_0x49e733:0x297,_0xd5c423:0x165,_0x1cd263:0x298,_0x50b397:0x125,_0x5c23a1:0x149,_0x21e8bb:0x163,_0x101a2a:0x227,_0x3ec613:0x18e,_0x51f2d4:0xc4,_0x41f633:0x173,_0x1fdbf1:0x263,_0x93f69c:0x2e7,_0xcb850a:0x36b},_0x5ef95d={_0x44bbac:0x362,_0x2b515c:0x519,_0x3f71c4:0x56a,_0x3854ae:0x433,_0x56e7db:0x4f5,_0x4ea0bc:0x54d,_0x4542e5:0x429,_0x3a0fc2:0x411,_0x30e133:0x442,_0x44ff24:0x4de,_0x2679f9:0x416,_0x500cdc:0x507,_0x2f1831:0x155,_0x38c185:0x105,_0x145655:0x11e,_0x3048bf:0x108,_0x116942:0xae,_0x73e0a4:0x6f,_0x29ce0d:0x5a6,_0x5cdb92:0x544,_0x2310db:0x4c6,_0x3d1399:0x54e},_0x18e03b={_0x376ed0:0x6f8},_0x1a9168={_0x2415ab:0x1ae,_0x5d6391:0x10b,_0x5b1be5:0x24d},_0x2649c2={_0x24fbfc:0x172,_0x574855:0x17};function _0x10c698(_0x42265e,_0x2afbfd,_0x4e82a0,_0x24873b){return _0x1343ee(_0x24873b-_0x2649c2._0x24fbfc,_0x2afbfd,_0x4e82a0-0x1ec,_0x24873b-_0x2649c2._0x574855);}function _0x56827b(_0x108f63,_0x135987,_0x54adb2,_0x37fa4f){return _0x357fd3(_0x108f63-_0x1a9168._0x2415ab,_0x135987-_0x1a9168._0x5d6391,_0x135987- -_0x1a9168._0x5b1be5,_0x37fa4f);}return defineTool({'name':_0x10c698(0x18e,0x264,_0x127fa8._0x55651c,0x227),'description':_0x56827b(-0x1de,-_0x127fa8._0x355013,-0x26a,-0x1f2),'inputSchema':{'type':_0x10c698(0x2d0,_0x127fa8._0xb91d44,_0x127fa8._0x113620,0x1be),'properties':{'questions':{'type':'array','items':{'type':_0x10c698(_0x127fa8._0x159855,0x2ca,0x200,_0x127fa8._0x36887a),'properties':{'question':{'type':_0x56827b(-0x206,-0x1b8,-_0x127fa8._0x5d3277,-_0x127fa8._0x2449c1)},'header':{'type':_0x56827b(-_0x127fa8._0x49c6e1,-_0x127fa8._0x4d1717,-_0x127fa8._0x102894,-_0x127fa8._0x2c1a7c)},'options':{'type':'array','items':{'type':'object','properties':{'label':{'type':_0x56827b(-0x74,-0x1b8,-0x2e3,-_0x127fa8._0x49e733)},'description':{'type':'string'}},'required':[_0x56827b(-0x106,-_0x127fa8._0xd5c423,-_0x127fa8._0x1cd263,-_0x127fa8._0x50b397),'description']}},'multiSelect':{'type':'boolean'}},'required':[_0x56827b(-0x12e,-0x20a,-0x216,-_0x127fa8._0x5c23a1),_0x10c698(0x28c,0x2e5,0x38a,0x31c),_0x56827b(-_0x127fa8._0x21e8bb,-_0x127fa8._0x101a2a,-0x33a,-_0x127fa8._0x3ec613),_0x56827b(-_0x127fa8._0x51f2d4,-0x138,-_0x127fa8._0x41f633,-0x7e)]}},'answers':{'type':_0x56827b(-0x12d,-0x206,-_0x127fa8._0x1fdbf1,-0x21d),'properties':{}}},'required':[_0x56827b(-0x21d,-_0x127fa8._0x93f69c,-0x1f7,-_0x127fa8._0xcb850a)]},async *'execute'(_0x578ae6,_0x50a228){const _0x5789fe={_0x5e553a:0x2b,_0xf58795:0x1b2};function _0x12fdd4(_0x166c0a,_0x57db5c,_0x2436dd,_0x22672e){return _0x10c698(_0x166c0a-_0x5789fe._0x5e553a,_0x166c0a,_0x2436dd-0x175,_0x2436dd- -_0x5789fe._0xf58795);}const _0x1419cb=_0x578ae6;validateInput(_0x1419cb);const _0xe4d9b=_0x50a228['toolCallId']??createQuestionId();function _0x9f8f99(_0x452cdf,_0x1f56e3,_0xdf9a3f,_0x20c6fb){return _0x56827b(_0x452cdf-0x194,_0xdf9a3f-_0x18e03b._0x376ed0,_0xdf9a3f-0xa,_0x20c6fb);}if(_0x1419cb[_0x9f8f99(_0x5ef95d._0x44bbac,0x4aa,0x416,_0x5ef95d._0x2b515c)]&&Object[_0x9f8f99(_0x5ef95d._0x3f71c4,0x3a6,_0x5ef95d._0x3854ae,_0x5ef95d._0x56e7db)](_0x1419cb['answers'])['length']>0x0)return createResult(_0xe4d9b,_0x1419cb[_0x9f8f99(_0x5ef95d._0x4ea0bc,_0x5ef95d._0x4542e5,_0x5ef95d._0x3a0fc2,_0x5ef95d._0x30e133)]['length'],_0x1419cb[_0x9f8f99(0x422,_0x5ef95d._0x44ff24,_0x5ef95d._0x2679f9,_0x5ef95d._0x500cdc)]);if(!_0x50a228['askUser'])throw new ToolExecutionError(_0x12fdd4(0x10b,0x21c,_0x5ef95d._0x2f1831,_0x5ef95d._0x38c185));const _0x404789=buildQuestions(_0x1419cb),_0x176c07=await _0x50a228[_0x12fdd4(_0x5ef95d._0x145655,_0x5ef95d._0x3048bf,_0x5ef95d._0x116942,_0x5ef95d._0x73e0a4)]({'questionId':_0xe4d9b,'questions':_0x404789});yield createResult(_0xe4d9b,_0x1419cb['questions'][_0x9f8f99(_0x5ef95d._0x29ce0d,_0x5ef95d._0x5cdb92,_0x5ef95d._0x2310db,_0x5ef95d._0x3d1399)],_0x176c07);}});}import{spawn as _0x556224}from'child_process';import{statSync}from'fs';import*as _0x2a33fe from'os';import*as _0x54838e from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x34369b from'path';function _0x1358(_0x458d1f,_0x2d1c9a){_0x458d1f=_0x458d1f-0x82;const _0x4019ed=_0x4019();let _0x135831=_0x4019ed[_0x458d1f];if(_0x1358['OBAwvG']===undefined){var _0x928998=function(_0x15a7c0){const _0x23cb22='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x337454='',_0x1b0add='';for(let _0x3a9a36=0x0,_0x1573c4,_0x2df844,_0x53cfac=0x0;_0x2df844=_0x15a7c0['charAt'](_0x53cfac++);~_0x2df844&&(_0x1573c4=_0x3a9a36%0x4?_0x1573c4*0x40+_0x2df844:_0x2df844,_0x3a9a36++%0x4)?_0x337454+=String['fromCharCode'](0xff&_0x1573c4>>(-0x2*_0x3a9a36&0x6)):0x0){_0x2df844=_0x23cb22['indexOf'](_0x2df844);}for(let _0x31176f=0x0,_0x556224=_0x337454['length'];_0x31176f<_0x556224;_0x31176f++){_0x1b0add+='%'+('00'+_0x337454['charCodeAt'](_0x31176f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b0add);};_0x1358['RktPml']=_0x928998,_0x1358['vvwCsL']={},_0x1358['OBAwvG']=!![];}const _0x6bbabf=_0x4019ed[0x0],_0x29da5d=_0x458d1f+_0x6bbabf,_0x43a5f9=_0x1358['vvwCsL'][_0x29da5d];return!_0x43a5f9?(_0x135831=_0x1358['RktPml'](_0x135831),_0x1358['vvwCsL'][_0x29da5d]=_0x135831):_0x135831=_0x43a5f9,_0x135831;}function isPathInside(_0x5e1624,_0x132e81){const _0x5da788={_0x375b45:0x414,_0xb93fda:0x40f,_0x45a66d:0x3b6,_0x15e5c6:0x33b,_0x241b20:0x363,_0x2fc271:0x49c},_0x21bbdb={_0x3a9c50:0xc3,_0x1da0b2:0xe0},_0x593ec4={_0x171323:0x2d1,_0xc4d267:0xbc},_0x4a6bc0=_0x34369b['resolve'](_0x5e1624);function _0x471b53(_0x3953fc,_0x1f612d,_0x26d32a,_0x134d72){return _0x1343ee(_0x26d32a-_0x593ec4._0x171323,_0x1f612d,_0x26d32a-0x13c,_0x134d72-_0x593ec4._0xc4d267);}function _0x2061da(_0x3faa7d,_0x2c0d34,_0x41a308,_0x540b0d){return _0x1343ee(_0x2c0d34-0x34f,_0x540b0d,_0x41a308-_0x21bbdb._0x3a9c50,_0x540b0d-_0x21bbdb._0x1da0b2);}const _0x4e42bc=_0x34369b[_0x471b53(0x301,_0x5da788._0x375b45,_0x5da788._0xb93fda,_0x5da788._0x45a66d)](_0x4a6bc0,_0x132e81);return _0x4e42bc===''||!_0x4e42bc[_0x2061da(0x238,_0x5da788._0x15e5c6,_0x5da788._0x241b20,0x481)]('..')&&!_0x34369b[_0x2061da(0x457,0x4fa,0x4fe,_0x5da788._0x2fc271)](_0x4e42bc);}function resolveWorkspacePath(_0x569e57,_0x58412e){return resolveAllowedPath(_0x569e57,[],_0x58412e);}function resolveAllowedPath(_0x39167f,_0x1a6615,_0xe2ae0b){const _0x5eb6bb={_0xacb86a:0x370,_0x18e5ba:0x4bd,_0x3de533:0xb0},_0x28d9ff={_0x115a3b:0x145,_0x1f63f1:0x69,_0x227a5a:0x129},_0x3d4edd={_0x2dec03:0x15d,_0x5740ce:0x38f},_0x49444a=_0x34369b[_0xea7100(0x2f3,0x1ad,0xdf,0x1f4)](_0x39167f),_0x406a10=_0x34369b['resolve'](_0x49444a,_0xe2ae0b),_0x238b4b=[_0x49444a,..._0x1a6615['map'](_0x2621df=>_0x34369b[_0xea7100(0x177,0x1ad,0x292,0x2d9)](_0x2621df))];function _0x43eca2(_0x1200ea,_0x3d5a5d,_0x26f22b,_0xc2dc0){return _0x357fd3(_0x1200ea-0x192,_0x3d5a5d-_0x3d4edd._0x2dec03,_0x1200ea-_0x3d4edd._0x5740ce,_0x3d5a5d);}function _0xea7100(_0x2fe686,_0x20d767,_0x304384,_0x4d1cd0){return _0x1343ee(_0x20d767-_0x28d9ff._0x115a3b,_0x4d1cd0,_0x304384-_0x28d9ff._0x1f63f1,_0x4d1cd0-_0x28d9ff._0x227a5a);}if(_0x238b4b[_0x43eca2(_0x5eb6bb._0xacb86a,0x491,_0x5eb6bb._0x18e5ba,0x256)](_0x4cf931=>isPathInside(_0x4cf931,_0x406a10)))return _0x406a10;throw new ToolExecutionError(_0xea7100(0x26b,0x15b,0x127,_0x5eb6bb._0x3de533)+_0xe2ae0b,{'path':_0xe2ae0b,'rootDir':_0x49444a,'allowedDirs':_0x238b4b});}async function assertWorkspaceFile(_0x25b732){const _0x5a127d={_0x268a10:0x12c,_0x1d3f2c:0x143},_0x40dfad={_0x4cddf7:0xf1},_0x22701d={_0x10fcb0:0x11d,_0x25216a:0x1c8};function _0x3cfb05(_0x59c802,_0x5ca291,_0x50a95d,_0x2d2b12){return _0x1343ee(_0x2d2b12- -_0x22701d._0x10fcb0,_0x59c802,_0x50a95d-_0x22701d._0x25216a,_0x2d2b12-0xf7);}const _0xe07c6b=await stat(_0x25b732);function _0x3102de(_0x30fcfc,_0x23bef7,_0x4699ae,_0x7c2d0b){return _0x1343ee(_0x4699ae-0x2a4,_0x30fcfc,_0x4699ae-0x188,_0x7c2d0b-_0x40dfad._0x4cddf7);}if(!_0xe07c6b[_0x3cfb05(0x22,-0xb1,-0x174,-0x102)]())throw new ToolExecutionError(_0x3cfb05(_0x5a127d._0x268a10,-_0x5a127d._0x1d3f2c,0x27,-0x1a)+_0x25b732,{'path':_0x25b732});}function isProbablyBinary(_0x380766){const _0x5ca85e={_0x115f77:0x295,_0x4b1015:0x95};function _0x65d3c8(_0x13637f,_0x206a63,_0x5bcbfb,_0x44ad37){return _0x357fd3(_0x13637f-0x3b,_0x206a63-0x1ad,_0x44ad37-0x1eb,_0x13637f);}return _0x380766[_0x65d3c8(_0x5ca85e._0x115f77,0xdf,_0x5ca85e._0x4b1015,0x163)](0x0);}var DEFAULT_DESCRIPTION=_0x357fd3(0x214,0x1c9,0x1ca,0xe1),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x5d9163){return _0x5d9163 instanceof Error;}function shellExists(_0x587bd2){const _0x1a69c3={_0x314d41:0x34f,_0x4b23d4:0x33c,_0x2179fd:0x23c,_0x47c49f:0x405,_0x34cb20:0x376,_0x362477:0x3eb},_0x12d927={_0x198045:0x334},_0x13842e={_0x1b9331:0x2b3};function _0x50200a(_0x245443,_0x2d6df0,_0x5567f3,_0x1027e6){return _0x1343ee(_0x245443-_0x13842e._0x1b9331,_0x1027e6,_0x5567f3-0x8a,_0x1027e6-0xf5);}function _0xb89be2(_0x1dcca6,_0x456eb9,_0x15138b,_0x128e39){return _0x1343ee(_0x456eb9-_0x12d927._0x198045,_0x15138b,_0x15138b-0x125,_0x128e39-0xf9);}try{const _0x24f593=statSync(_0x587bd2);return _0x24f593[_0xb89be2(0x415,_0x1a69c3._0x314d41,_0x1a69c3._0x4b23d4,_0x1a69c3._0x2179fd)]()&&(_0x24f593[_0xb89be2(_0x1a69c3._0x47c49f,0x489,_0x1a69c3._0x34cb20,_0x1a69c3._0x362477)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x50dc73){const _0x1c8e09={_0x8d083f:0x524,_0x4698e8:0x620,_0x3b5245:0x4f8,_0x10cffd:0x4e1,_0x561d77:0x566,_0x395e77:0x664,_0x3aa466:0x5db,_0x4b91be:0x611,_0x25f055:0x5f6,_0x18c1a6:0x11b,_0x725276:0xdb,_0x222a83:0x121,_0x847798:0x83,_0x5c6bc1:0x59},_0x363322={_0x4c95aa:0x121},_0x8039f1={_0x5738d2:0x52,_0x48ef48:0xeb,_0x468a0:0x46c};if(_0x50dc73)return _0x50dc73;if(_0x2a33fe[_0x3db24a(0x608,0x605,0x63a,0x4c7)]()==='win32')return process['env'][_0x3db24a(_0x1c8e09._0x8d083f,_0x1c8e09._0x4698e8,_0x1c8e09._0x3b5245,_0x1c8e09._0x10cffd)]||_0x3db24a(_0x1c8e09._0x561d77,0x523,_0x1c8e09._0x395e77,_0x1c8e09._0x3aa466);function _0x3db24a(_0x5e3103,_0x2ac3cc,_0x3e1a61,_0xce5ff2){return _0x357fd3(_0x5e3103-_0x8039f1._0x5738d2,_0x2ac3cc-_0x8039f1._0x48ef48,_0x2ac3cc-_0x8039f1._0x468a0,_0x3e1a61);}function _0x46d110(_0x56d5e9,_0x57ba82,_0x577773,_0x424f09){return _0x1343ee(_0x424f09- -_0x363322._0x4c95aa,_0x57ba82,_0x577773-0x1ba,_0x424f09-0x12b);}const _0x5b889c=[_0x3db24a(_0x1c8e09._0x4b91be,0x58f,_0x1c8e09._0x25f055,0x521),_0x46d110(-0x5e,_0x1c8e09._0x18c1a6,-_0x1c8e09._0x725276,-0x26),_0x46d110(-0xbc,-_0x1c8e09._0x222a83,0x96,-_0x1c8e09._0x847798),'/usr/bin/sh'];for(const _0x158381 of _0x5b889c){if(shellExists(_0x158381))return _0x158381;}const _0x28cb29=process[_0x46d110(0x71,-0x109,0x68,-0x66)]['SHELL'];if(_0x28cb29&&shellExists(_0x28cb29))return _0x28cb29;return _0x46d110(0xa2,_0x1c8e09._0x5c6bc1,-0xac,0x7);}function buildShellArgs(_0x1f89ce,_0x462c2d){const _0x285e4c={_0x53be3c:0x43e,_0x27a512:0x46b,_0x4824b0:0x57,_0x22b78d:0xa7,_0x547e78:0x3be,_0x39a385:0x492},_0x36f2a5={_0x1fd0db:0x6e,_0x3291fa:0xe1};function _0x252eb0(_0x34d9ea,_0x16b56c,_0x42c721,_0x39e823){return _0x357fd3(_0x34d9ea-_0x36f2a5._0x1fd0db,_0x16b56c-0x18c,_0x16b56c- -_0x36f2a5._0x3291fa,_0x34d9ea);}function _0x56aa4b(_0x4c1dc6,_0x1835c2,_0x317d93,_0x49b051){return _0x357fd3(_0x4c1dc6-0x6a,_0x1835c2-0xeb,_0x49b051-0x2d2,_0x4c1dc6);}if(_0x2a33fe[_0x56aa4b(0x58e,_0x285e4c._0x53be3c,0x492,_0x285e4c._0x27a512)]()==='win32'){const _0x164542=/cmd(\.exe)?$/i[_0x252eb0(0xe3,_0x285e4c._0x4824b0,-_0x285e4c._0x22b78d,0xd1)](_0x462c2d);return _0x164542?['/d','/s','/c',_0x1f89ce]:[_0x56aa4b(0x40a,_0x285e4c._0x547e78,0x314,0x452),_0x56aa4b(0x5de,0x368,0x50b,_0x285e4c._0x39a385),'-Command',_0x1f89ce];}return['-c',_0x1f89ce];}function resolveCarriageReturns(_0x404eeb){const _0x7657cb={_0xa9307d:0xa8,_0x67972a:0xd8,_0x589d85:0x7,_0x147b88:0x16c,_0x31bed5:0x8d},_0x1b2f07={_0x2831fd:0x1e6,_0x17eeb0:0x497},_0x41bb67={_0x267830:0x6f0,_0x56fcee:0xc5},_0x510c08={_0x183fe4:0x199,_0x543dca:0x1e4},_0x177516={_0x446796:0xba,_0x4ec2fa:0x1cf},_0x2bee39={_0x170509:0x1d0};function _0x522626(_0x527021,_0x2ebc17,_0x51d2b3,_0xbf0940){return _0x357fd3(_0x527021-_0x2bee39._0x170509,_0x2ebc17-0x14d,_0x527021-0x132,_0x51d2b3);}function _0x32ac03(_0x1f040e,_0xb0d7f7,_0x132a4e,_0x4d3f80){return _0x357fd3(_0x1f040e-_0x177516._0x446796,_0xb0d7f7-0x1f1,_0xb0d7f7- -_0x177516._0x4ec2fa,_0x1f040e);}return _0x404eeb[_0x522626(_0x7657cb._0xa9307d,_0x7657cb._0x67972a,-_0x7657cb._0x589d85,0x3d)]('\x0a')[_0x522626(0xb3,0x175,0xbf,0x91)](_0x480289=>{if(!_0x480289[_0x196f72(0x243,0x206,0x1ed,_0x1b2f07._0x2831fd)]('\x0d'))return _0x480289;function _0x196f72(_0x4b2e13,_0xc71b6d,_0x19fdae,_0x303e23){return _0x522626(_0x4b2e13-_0x510c08._0x183fe4,_0xc71b6d-0x10a,_0xc71b6d,_0x303e23-_0x510c08._0x543dca);}function _0x341f8e(_0x7b3e7e,_0x42fb6a,_0x328ac0,_0x5b7b98){return _0x32ac03(_0x42fb6a,_0x328ac0-_0x41bb67._0x267830,_0x328ac0-_0x41bb67._0x56fcee,_0x5b7b98-0x185);}const _0x224ef6=_0x480289[_0x341f8e(0x3d7,0x5d5,_0x1b2f07._0x17eeb0,0x52d)]('\x0d');return _0x224ef6[_0x224ef6['length']-0x1]??'';})[_0x522626(_0x7657cb._0x147b88,0x174,_0x7657cb._0x31bed5,0x1e4)]('\x0a');}function resolveBackspaces(_0x88adc2){const _0x1be53c={_0x4a320e:0x30b,_0x64a472:0x429,_0x39a76b:0x434},_0x2ef6cf={_0x42a995:0x14c,_0x395825:0x72},_0x3fd9e4={_0x1e5c80:0x3c7,_0x3f1f9a:0x82,_0x3da5ac:0x1e8};function _0x1af1ef(_0x6d53a7,_0x1c3e8d,_0x1b0e34,_0x75e32a){return _0x1343ee(_0x75e32a-_0x3fd9e4._0x1e5c80,_0x6d53a7,_0x1b0e34-_0x3fd9e4._0x3f1f9a,_0x75e32a-_0x3fd9e4._0x3da5ac);}const _0x23e90a=[];for(const _0x2139bd of Array['from'](_0x88adc2)){_0x2139bd==='\x08'?_0x23e90a[_0x1af1ef(0x57b,0x493,0x543,0x46c)]():_0x23e90a[_0x1af1ef(0x4c9,0x43b,_0x1be53c._0x4a320e,_0x1be53c._0x64a472)](_0x2139bd);}function _0x126eb(_0x44d0f3,_0x55a218,_0x9dae8d,_0x48287d){return _0x357fd3(_0x44d0f3-_0x2ef6cf._0x42a995,_0x55a218-0x16c,_0x44d0f3- -_0x2ef6cf._0x395825,_0x48287d);}return _0x23e90a[_0x1af1ef(0x322,0x511,_0x1be53c._0x39a76b,0x406)]('');}function stripAnsiAndControls(_0x516cbd){const _0x3ce186={_0x5aaa82:0x3d8,_0x1212ff:0x442,_0x556f97:0x4a5,_0x2189e8:0x183,_0x1ddcb2:0x263,_0x3f8db7:0x2f2,_0x51fff3:0x213,_0x1a9ecc:0x248,_0x28c9e9:0x119,_0x379cee:0x213,_0x566914:0x1e1,_0x1088f3:0x2a3,_0xf9df26:0xc4,_0x4739ce:0x12b,_0xa22bda:0x199,_0x24feba:0x177,_0x1d3426:0x267,_0x4c2eda:0x330,_0x44948c:0x2fd,_0x59264a:0x274,_0x2a74e0:0x27e,_0x15daa8:0x207},_0x3d4eba={_0x54482b:0xf9,_0x22897f:0x19c};function _0x7d31f6(_0x715282,_0x208af4,_0x45c6d9,_0x2aa5f7){return _0x357fd3(_0x715282-_0x3d4eba._0x54482b,_0x208af4-_0x3d4eba._0x22897f,_0x208af4-0x27b,_0x2aa5f7);}function _0x2093d7(_0x42736a,_0x396349,_0x230725,_0x5f168a){return _0x357fd3(_0x42736a-0xb,_0x396349-0xd3,_0x42736a- -0x20c,_0x5f168a);}_0x516cbd=resolveCarriageReturns(_0x516cbd),_0x516cbd=resolveBackspaces(_0x516cbd),_0x516cbd=stripVTControlCharacters(_0x516cbd);const _0x36cddb='\x1b',_0x3b73cf='\x07';return _0x516cbd=_0x516cbd['replace'](new RegExp(_0x7d31f6(_0x3ce186._0x5aaa82,_0x3ce186._0x1212ff,0x3c6,_0x3ce186._0x556f97)+_0x3b73cf+_0x7d31f6(_0x3ce186._0x2189e8,0x282,_0x3ce186._0x1ddcb2,0x1a0)+_0x3b73cf,'g'),''),_0x516cbd=_0x516cbd[_0x7d31f6(_0x3ce186._0x3f8db7,_0x3ce186._0x51fff3,_0x3ce186._0x1a9ecc,_0x3ce186._0x28c9e9)](new RegExp(';[^\x5cn]*?'+_0x36cddb+'\x5c\x5c','g'),''),_0x516cbd=_0x516cbd[_0x7d31f6(0x291,_0x3ce186._0x379cee,0x232,_0x3ce186._0x566914)](new RegExp(_0x3b73cf,'g'),''),_0x516cbd=_0x516cbd[_0x7d31f6(0x2b5,_0x3ce186._0x51fff3,_0x3ce186._0x1088f3,_0x3ce186._0xf9df26)](new RegExp(_0x36cddb+'[P_^][\x5cs\x5cS]*?'+_0x36cddb+'\x5c\x5c','g'),''),_0x516cbd=_0x516cbd[_0x7d31f6(_0x3ce186._0x4739ce,_0x3ce186._0x51fff3,_0x3ce186._0xa22bda,0x117)](new RegExp(_0x36cddb+_0x7d31f6(_0x3ce186._0x24feba,_0x3ce186._0x1d3426,_0x3ce186._0x4c2eda,0x313),'g'),''),_0x516cbd=_0x516cbd['replace'](/[\u0080-\u009F]/g,''),_0x516cbd=_0x516cbd[_0x2093d7(-0x274,-0x1ed,-_0x3ce186._0x44948c,-0x29c)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x516cbd=_0x516cbd[_0x2093d7(-_0x3ce186._0x59264a,-0x2fd,-_0x3ce186._0x2a74e0,-_0x3ce186._0x15daa8)](/[\u23CE\u2424]/g,''),_0x516cbd;}function resolveWorkingDirectory(_0x59ae01,_0x58a5cc,_0x519985){const _0x9a43bd={_0x1a2a4d:0x12f},_0x3735db={_0x4c3b37:0x6b,_0x51d22f:0x93,_0x267886:0xd5},_0x3c8c04={_0x226bcf:0x11b};function _0x283589(_0x256f25,_0x135945,_0x588d84,_0x3f6eaf){return _0x357fd3(_0x256f25-0x1bd,_0x135945-_0x3c8c04._0x226bcf,_0x256f25- -0x1bb,_0x135945);}const _0x348e89=resolveAllowedPath(_0x58a5cc,_0x519985,_0x59ae01??'.');function _0x1805bc(_0x3d6085,_0x5125c8,_0x56d4a4,_0x1c731d){return _0x357fd3(_0x3d6085-_0x3735db._0x4c3b37,_0x5125c8-_0x3735db._0x51d22f,_0x5125c8-_0x3735db._0x267886,_0x3d6085);}try{const _0x38ba2c=statSync(_0x348e89);if(!_0x38ba2c['isDirectory']())throw new ToolExecutionError(_0x283589(-0x12,0x7c,-0x9a,-_0x9a43bd._0x1a2a4d)+_0x348e89,{'cwd':_0x348e89});return _0x348e89;}catch(_0x5db748){if(_0x5db748 instanceof ToolExecutionError)throw _0x5db748;throw new ToolExecutionError(_0x1805bc(0x234,0x184,0x145,0x1f2)+_0x348e89,{'cwd':_0x348e89});}}function killProcessGroup(_0x7ea4f6,_0x5be3c9,_0x418473=_0x357fd3(-0xc5,0x89,0x83,0x11b)){const _0x34c845={_0x25a1ab:0x163,_0x198ae8:0x2a,_0x49d31c:0x42,_0x474803:0xf4,_0x5e9467:0x90,_0xe51167:0xdc,_0x1e67bb:0x514,_0x2e8e30:0x6e5,_0x254909:0x5a4,_0x54d0ef:0x481,_0x3c43e8:0x102,_0x4c2f6e:0x4b},_0x42a48e={_0x88bf4b:0x49f,_0x5c83c0:0x1c7,_0x2eb51d:0xda},_0x440c30={_0x7311d8:0x31};function _0x242813(_0x128518,_0x187153,_0x42d178,_0x5b4429){return _0x1343ee(_0x42d178- -0x136,_0x5b4429,_0x42d178-_0x440c30._0x7311d8,_0x5b4429-0x105);}if(!_0x7ea4f6[_0x242813(_0x34c845._0x25a1ab,0xb9,0x4b,0x189)])return;if(_0x5be3c9)try{_0x556224(_0x242813(-0x126,_0x34c845._0x198ae8,-_0x34c845._0x49d31c,_0x34c845._0x474803),[_0x242813(-0xea,-0x1cd,-0x124,-0xae),_0x7ea4f6[_0x242813(-0xd0,_0x34c845._0x5e9467,0x4b,_0x34c845._0xe51167)][_0x38bedd(0x4fb,_0x34c845._0x1e67bb,_0x34c845._0x2e8e30,_0x34c845._0x254909)](),'/T','/F'],{'stdio':_0x38bedd(0x4ea,0x601,_0x34c845._0x54d0ef,0x571)});return;}catch{_0x7ea4f6['kill'](_0x418473);return;}function _0x38bedd(_0x54a4ab,_0x51ef61,_0x5d7765,_0x4ade86){return _0x1343ee(_0x4ade86-_0x42a48e._0x88bf4b,_0x51ef61,_0x5d7765-_0x42a48e._0x5c83c0,_0x4ade86-_0x42a48e._0x2eb51d);}try{process['kill'](-_0x7ea4f6[_0x242813(-_0x34c845._0x3c43e8,0xe1,_0x34c845._0x4c2f6e,-0x6d)],_0x418473);}catch{_0x7ea4f6['kill'](_0x418473);}}function appendChunk(_0x14fca4,_0x487d49,_0x5f05e5,_0x583721,_0xb5b484){const _0x61aa8d={_0x5a5fbe:0x4e9,_0x5e11ac:0x3e1,_0x2e38cd:0x488},_0x58311a={_0x5b6b17:0x37f};function _0x58e801(_0x595a67,_0x2ab657,_0x5642a2,_0x4ede6a){return _0x1343ee(_0x2ab657-_0x58311a._0x5b6b17,_0x5642a2,_0x5642a2-0x1d1,_0x4ede6a-0x12);}const _0x5a4c61=_0x583721?stripAnsiAndControls(_0x5f05e5):_0x5f05e5;if(_0x5a4c61['length']===0x0)return;_0x14fca4['push'](_0x5a4c61),_0x487d49[_0x58e801(_0x61aa8d._0x5a5fbe,_0x61aa8d._0x5e11ac,0x3ec,_0x61aa8d._0x2e38cd)](_0x5a4c61),_0xb5b484();}function createBashTool(_0x236887={}){const _0x4bb292={_0x4e05ed:0x2a8,_0x32316a:0x22d,_0x7275d4:0x33b,_0x521971:0x31a,_0x27178f:0x40b,_0x3180ea:0x19e,_0x40f21f:0x300,_0x36ce48:0x2ed,_0x1544fc:0x22e,_0x4052dd:0x45d,_0x704dbd:0x416,_0x92b263:0x589,_0x5bc36b:0x667,_0x15279d:0x252,_0x45dce5:0x24b,_0x70f83a:0x2ee,_0x2e8ee9:0x4fd,_0x1ab5c1:0x579,_0x574ccb:0x691,_0x1a54a5:0x2b6,_0x52d73c:0x3c6,_0xc7f363:0x380},_0x42a93d={_0x4bfe78:0x1b8,_0x638c29:0x10b,_0x213b8e:0x1b0,_0x163d30:0xfd,_0x5d4433:0x293,_0x478510:0x398,_0x495dee:0x1b6,_0x127964:0xc2,_0xaf9d87:0x43,_0x3e4279:0xd9,_0x4aaa6e:0x31,_0xd9b7a:0x216,_0x5ce989:0x301,_0x23b46a:0x311,_0x295117:0x380,_0x2d2c01:0x45e,_0x4e40dc:0x46f,_0xfcc497:0x326,_0x5cc350:0x358,_0x997533:0x5be,_0x83f114:0x321,_0x2e534d:0x482,_0x4a72e3:0x4e9,_0x2b6170:0x183,_0x150ea4:0x88,_0x5b87b6:0x9d,_0x2db2d2:0x14a,_0x5ee9b4:0x124,_0x741f0e:0x19e,_0x3a7a35:0x56,_0x172462:0x305,_0x4c9d9a:0x23a,_0x37c2aa:0x175,_0x3809e0:0x30d,_0x470daf:0x277,_0x172b47:0x241,_0x4a30ca:0x1f5,_0x26703a:0xa9,_0xf6eaa0:0x48a,_0x1e5b18:0x553,_0x30ab36:0x43d,_0x2999d4:0x3c2,_0xc21884:0x3ae,_0x58e126:0x2b6,_0x9d5245:0x49b,_0x27eb6c:0x1aa,_0x296c0f:0x1ce,_0x451a82:0x2f8,_0x39051b:0x164,_0x389789:0x223,_0x138b99:0x24f,_0x1134d2:0x2cc,_0x244ade:0x255,_0x5db6f1:0x305,_0x1502a:0x157,_0x30efb4:0x2cc,_0x3da6a2:0x2fc,_0xa96190:0x67,_0x49e903:0x28,_0x477630:0xbd,_0x17ee18:0xe,_0x5ad0f1:0x13e,_0x535026:0x2c7,_0x14327b:0x1f9,_0x58bd92:0xf5,_0x7e081e:0xf5,_0x3070d9:0x43,_0x53501b:0x1a3,_0x4a7ef0:0x19,_0x23e96c:0xee,_0x162d03:0x20c,_0x3fa751:0x3cb,_0x18798a:0x198,_0x1a8eb3:0x2f1,_0x42bc04:0x368,_0x61cfcc:0x102,_0x3842eb:0x1ab,_0x37b68a:0x104,_0x1d9601:0x3d,_0x44456b:0x12d,_0x4351bd:0x1fa,_0x42541a:0x270,_0x4b457d:0x1ce,_0x490c88:0x2bb,_0x26441a:0x1e3,_0x5aa2c5:0x2a3},_0x27bcb6={_0x5f31ed:0xf2,_0x2d1a14:0x106,_0x126885:0x48},_0x16df62={_0x22ead3:0x186,_0x7a5dad:0x2af,_0x40cae3:0xc2,_0x55a071:0x89},_0x1f0a44={_0x53cd3c:0x15e,_0xc02866:0x1c9},_0x12fbdd={_0x23705d:0x4df,_0x1aec1c:0x89,_0x154825:0x124},_0x22b3ca={_0x4048db:0x254,_0x504b29:0x177},_0x10f99a=_0x54838e[_0x11da60(_0x4bb292._0x4e05ed,_0x4bb292._0x32316a,_0x4bb292._0x7275d4,0x2bc)](_0x236887[_0x11da60(0x44a,_0x4bb292._0x521971,0x481,0x35b)]??process[_0x11da60(_0x4bb292._0x27178f,_0x4bb292._0x3180ea,_0x4bb292._0x40f21f,0x2d9)]());function _0x11da60(_0xb0cbe7,_0x6bba66,_0x3e4de4,_0x4eacf8){return _0x1343ee(_0x4eacf8-_0x22b3ca._0x4048db,_0x3e4de4,_0x3e4de4-_0x22b3ca._0x504b29,_0x4eacf8-0xe1);}const _0x14f608=(_0x236887['allowedDirs']??[])[_0x11da60(_0x4bb292._0x36ce48,0x28b,_0x4bb292._0x1544fc,0x1da)](_0x1d4291=>_0x54838e['resolve'](_0x1d4291));function _0x3cfe5e(_0x1b6833,_0x16e90d,_0x270192,_0x571a98){return _0x1343ee(_0x16e90d-_0x12fbdd._0x23705d,_0x571a98,_0x270192-_0x12fbdd._0x1aec1c,_0x571a98-_0x12fbdd._0x154825);}const _0x312415=_0x236887['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS,_0x106429=_0x236887[_0x11da60(0x29a,0x268,0x273,0x2b1)]??!![],_0x52b352=_0x236887[_0x3cfe5e(0x524,_0x4bb292._0x4052dd,_0x4bb292._0x704dbd,0x4a4)]??_0x3cfe5e(0x600,_0x4bb292._0x92b263,_0x4bb292._0x5bc36b,0x587);return defineTool({'name':_0x52b352,'description':_0x236887[_0x11da60(0x196,0x37f,0x1fe,_0x4bb292._0x15279d)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':_0x11da60(0x3a5,0x3f8,_0x4bb292._0x45dce5,_0x4bb292._0x70f83a)},'cwd':{'type':_0x3cfe5e(_0x4bb292._0x2e8ee9,_0x4bb292._0x1ab5c1,0x6a2,_0x4bb292._0x574ccb)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x11da60(_0x4bb292._0x1a54a5,_0x4bb292._0x52d73c,0x339,_0x4bb292._0xc7f363)}},'required':['command']},async *'execute'(_0x253aee,_0x10f4cf){const _0x4579a7={_0x568c47:0x43f,_0x384911:0x30f,_0x3bde26:0x1db,_0x434dc6:0x302,_0x4acebf:0x29b,_0x1e561d:0x317,_0x3c3e83:0x201},_0x383837={_0x8c27c:0x1f},_0x3d6a26={_0x4a7f4a:0xb9,_0x4a7610:0x1ce},_0x3f79de={_0xd42ef6:0xff,_0x40bc43:0xd4},_0x23d6e3={_0x21d354:0x12b,_0x21e725:0x107,_0x514ff0:0x121},_0x47d86f={_0x28ed53:0x188},_0x37f2e7={_0x37ce1a:0x83},_0xd38ca0={_0x341ca9:0x1fb},_0xe588b7={_0x211f4f:0x12c},_0xa68232=_0x253aee[_0x39133b(-0x55,0x78,0xfc,_0x42a93d._0x4bfe78)]??_0x312415;if(!Number[_0x39133b(_0x42a93d._0x638c29,0x184,_0x42a93d._0x213b8e,_0x42a93d._0x163d30)](_0xa68232)||_0xa68232<0x1)throw new ToolExecutionError(_0x390e69(_0x42a93d._0x5d4433,0x160,_0x42a93d._0x478510,_0x42a93d._0x495dee),{'command':_0x253aee[_0x39133b(_0x42a93d._0x127964,_0x42a93d._0xaf9d87,-_0x42a93d._0x3e4279,-_0x42a93d._0x4aaa6e)]});throwIfAborted(_0x10f4cf[_0x390e69(0x2af,_0x42a93d._0xd9b7a,_0x42a93d._0x5ce989,_0x42a93d._0x23b46a)]);const _0x425f62=resolveWorkingDirectory(_0x253aee[_0x390e69(0x369,0x2ce,0x493,0x351)],_0x10f99a,_0x14f608),_0x234738=_0x253aee[_0x390e69(0x43e,_0x42a93d._0x295117,0x37f,_0x42a93d._0x2d2c01)]??![],_0x34fcc3=resolveDefaultShell(_0x236887[_0x390e69(_0x42a93d._0x4e40dc,_0x42a93d._0xfcc497,_0x42a93d._0x5cc350,_0x42a93d._0x997533)]),_0x1c3b5e=buildShellArgs(_0x253aee[_0x390e69(0x25b,0x13c,_0x42a93d._0x83f114,0x25c)],_0x34fcc3),_0x4e26dc=_0x2a33fe[_0x390e69(_0x42a93d._0x2e534d,0x470,_0x42a93d._0x4a72e3,0x3d4)]()==='win32';let _0x4dd14f;try{_0x4dd14f=_0x556224(_0x34fcc3,_0x1c3b5e,{'cwd':_0x425f62,'env':{...process['env'],..._0x236887['env']??{}},'stdio':_0x234738?[_0x39133b(_0x42a93d._0x2b6170,0x19e,_0x42a93d._0x150ea4,0x1ff),_0x39133b(_0x42a93d._0x5b87b6,0x19e,0x18f,_0x42a93d._0x2db2d2),_0x39133b(_0x42a93d._0x5ee9b4,_0x42a93d._0x741f0e,0x106,_0x42a93d._0x3a7a35)]:['ignore',_0x390e69(0x273,_0x42a93d._0x172462,_0x42a93d._0x4c9d9a,_0x42a93d._0x37c2aa),_0x390e69(0x273,0x25b,_0x42a93d._0x4bfe78,0x2f1)],'shell':![],'windowsHide':!![],'detached':!_0x4e26dc});}catch(_0x3ea63e){if(isErrnoException(_0x3ea63e)&&_0x3ea63e[_0x390e69(_0x42a93d._0x3809e0,_0x42a93d._0x470daf,_0x42a93d._0x172b47,0x353)]===_0x39133b(0xcd,_0x42a93d._0x4a30ca,_0x42a93d._0x26703a,0xe3))throw new ToolExecutionError(_0x390e69(_0x42a93d._0xf6eaa0,_0x42a93d._0x1e5b18,_0x42a93d._0x30ab36,0x34f)+_0x34fcc3,{'command':_0x253aee['command'],'cwd':_0x425f62,'shellPath':_0x34fcc3});throw new ToolExecutionError(_0x3ea63e instanceof Error?_0x3ea63e['message']:String(_0x3ea63e),{'command':_0x253aee[_0x39133b(0x113,0x43,0x13d,-0x11)],'cwd':_0x425f62,'shellPath':_0x34fcc3});}const _0x187e3f=[],_0x312b0b=[],_0x45a084=new StringDecoder(_0x390e69(_0x42a93d._0x2999d4,_0x42a93d._0xc21884,_0x42a93d._0x58e126,_0x42a93d._0x9d5245)),_0x4fa4cf=new StringDecoder(_0x39133b(0x6c,_0x42a93d._0x27eb6c,_0x42a93d._0x296c0f,_0x42a93d._0x451a82));let _0x14cbc6,_0x5e3b5f=![],_0x363cae;const _0x508673=()=>{if(!_0x14cbc6)return;const _0x44f6bf=_0x14cbc6;_0x14cbc6=void 0x0,_0x44f6bf();},_0x43ced3=async()=>{const _0x57de27={_0x4a4ea3:0x2c,_0x4e7d01:0xd3,_0x465446:0x188};function _0x16b90d(_0x1b9ac7,_0x5ed1e6,_0x543c68,_0xf12568){return _0x39133b(_0x1b9ac7-_0x57de27._0x4a4ea3,_0xf12568- -_0x57de27._0x4e7d01,_0x543c68-_0x57de27._0x465446,_0x5ed1e6);}if(_0x312b0b[_0x16b90d(-0xf4,_0xe588b7._0x211f4f,0x6b,0x19)]>0x0||_0x5e3b5f)return;await new Promise(_0x1e20c6=>{_0x14cbc6=_0x1e20c6;});};function _0x390e69(_0x718f10,_0x1a3173,_0x7806fe,_0x4143a5){return _0x3cfe5e(_0x718f10-0x65,_0x718f10- -_0xd38ca0._0x341ca9,_0x7806fe-0x171,_0x7806fe);}const _0x2f3851=_0x28c916=>{const _0x30dfcb={_0x2fc0a4:0x268,_0x3ab6a4:0xe3,_0x150487:0xd2};function _0x207851(_0x2be047,_0x34aa8f,_0x194fcd,_0x5f15d5){return _0x390e69(_0x34aa8f- -_0x30dfcb._0x2fc0a4,_0x34aa8f-_0x30dfcb._0x3ab6a4,_0x194fcd,_0x5f15d5-_0x30dfcb._0x150487);}appendChunk(_0x187e3f,_0x312b0b,_0x45a084[_0x207851(_0x1f0a44._0x53cd3c,0x117,_0x1f0a44._0xc02866,0x20c)](_0x28c916),_0x106429,_0x508673);},_0x4d7a24=_0x73e2cd=>{function _0x1fa4b2(_0x27750d,_0x19140c,_0x194e9d,_0x315df){return _0x39133b(_0x27750d-0x136,_0x27750d-0x1f,_0x194e9d-_0x37f2e7._0x37ce1a,_0x315df);}appendChunk(_0x187e3f,_0x312b0b,_0x4fa4cf[_0x1fa4b2(_0x16df62._0x22ead3,_0x16df62._0x7a5dad,_0x16df62._0x40cae3,_0x16df62._0x55a071)](_0x73e2cd),_0x106429,_0x508673);};_0x4dd14f[_0x39133b(_0x42a93d._0x39051b,_0x42a93d._0x389789,0x21a,_0x42a93d._0x138b99)]?.['on'](_0x390e69(_0x42a93d._0x1134d2,0x36b,0x1d9,0x359),_0x2f3851),_0x4dd14f[_0x390e69(_0x42a93d._0x244ade,0x318,_0x42a93d._0x5db6f1,_0x42a93d._0x1502a)]?.['on'](_0x390e69(_0x42a93d._0x30efb4,0x202,_0x42a93d._0x3da6a2,0x270),_0x4d7a24);let _0x24bc3c=![],_0x152674;function _0x39133b(_0x592ff3,_0x43a900,_0x35217,_0x3617f2){return _0x11da60(_0x592ff3-0x1f2,_0x43a900-0x4b,_0x3617f2,_0x43a900- -_0x47d86f._0x28ed53);}const _0x41dbaf=addAbortListener(_0x10f4cf['signal'],()=>{function _0x5d2916(_0x1440d3,_0x31dbfb,_0xc3c4e,_0x5447bd){return _0x39133b(_0x1440d3-_0x23d6e3._0x21d354,_0xc3c4e- -_0x23d6e3._0x21e725,_0xc3c4e-_0x23d6e3._0x514ff0,_0x1440d3);}_0x363cae=toAbortError(_0x10f4cf['signal'][_0x5d2916(-_0x27bcb6._0x5f31ed,-_0x27bcb6._0x2d1a14,-0xb9,_0x27bcb6._0x126885)]),_0x5e3b5f=!![],_0x508673();try{killProcessGroup(_0x4dd14f,_0x4e26dc);}catch{}});try{const _0x2fc93b=new Promise((_0xb531ca,_0x220adf)=>{const _0x3d1f22={_0x12199a:0x3bf,_0x16f026:0x2e1},_0x4e7b9a={_0x3b62e9:0xf6,_0x22779a:0x1db},_0x1e035d=()=>{const _0x34b56={_0x13a2ac:0x229};_0x152674&&(clearTimeout(_0x152674),_0x152674=void 0x0);function _0x2fbb76(_0x59ab5d,_0x34d2e3,_0x4bf2fa,_0x2b42f3){return _0x1358(_0x2b42f3- -_0x34b56._0x13a2ac,_0x4bf2fa);}_0x4dd14f['off']('error',_0x37c875),_0x4dd14f[_0x2fbb76(-_0x3f79de._0xd42ef6,_0x3f79de._0x40bc43,0x7d,0x4d)]('close',_0x636e3e);};function _0x3d34bc(_0x93876b,_0x2ccd19,_0xe9b22e,_0x3353a8){return _0x390e69(_0xe9b22e-0xf8,_0x2ccd19-_0x4e7b9a._0x3b62e9,_0x3353a8,_0x3353a8-_0x4e7b9a._0x22779a);}const _0x37c875=_0x509eed=>{_0x5e3b5f=!![],_0x508673(),_0x1e035d(),_0x220adf(_0x363cae??_0x509eed);},_0x636e3e=(_0x44058a,_0x47f5a5)=>{_0x24bc3c=!![],appendChunk(_0x187e3f,_0x312b0b,_0x45a084['end'](),_0x106429,_0x508673),appendChunk(_0x187e3f,_0x312b0b,_0x4fa4cf[_0x23792a(0x3f8,0x335,_0x3d1f22._0x12199a,_0x3d1f22._0x16f026)](),_0x106429,_0x508673),_0x5e3b5f=!![];function _0x23792a(_0x21f4ce,_0x3ee821,_0x2d7480,_0x13a4ee){return _0x1358(_0x13a4ee-0x10c,_0x21f4ce);}_0x508673(),_0x1e035d();if(_0x363cae){_0x220adf(_0x363cae);return;}_0xb531ca({'code':_0x44058a,'signal':_0x47f5a5});};function _0x1440ca(_0x4528ab,_0x8fda0a,_0x502039,_0x3398be){return _0x390e69(_0x8fda0a- -_0x3d6a26._0x4a7f4a,_0x8fda0a-_0x3d6a26._0x4a7610,_0x3398be,_0x3398be-0x38);}_0x152674=setTimeout(()=>{const _0x3049cb={_0x10d41e:0x11b};_0x5e3b5f=!![],_0x508673(),_0x1e035d();try{killProcessGroup(_0x4dd14f,_0x4e26dc);}catch{}function _0x3128a8(_0x50daa1,_0x348c28,_0x2b02a4,_0x304a84){return _0x1358(_0x348c28- -_0x3049cb._0x10d41e,_0x304a84);}_0x220adf(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0xa68232+_0x3128a8(0x11b,_0x383837._0x8c27c,-0x115,-0x7f),{'command':_0x253aee['command'],'cwd':_0x425f62,'shellPath':_0x34fcc3,'timeoutMs':_0xa68232,'timedOut':!![]}));},_0xa68232),_0x4dd14f[_0x1440ca(_0x4579a7._0x568c47,_0x4579a7._0x384911,0x436,_0x4579a7._0x3bde26)](_0x1440ca(_0x4579a7._0x434dc6,0x3b4,_0x4579a7._0x4acebf,_0x4579a7._0x1e561d),_0x37c875),_0x4dd14f[_0x1440ca(0x372,0x30f,_0x4579a7._0x3c3e83,0x2be)]('close',_0x636e3e);});while(_0x312b0b['length']>0x0||!_0x5e3b5f){if(_0x312b0b[_0x39133b(_0x42a93d._0xa96190,0xec,0x198,_0x42a93d._0x49e903)]===0x0){await _0x43ced3();continue;}const _0x3b041b=_0x312b0b[_0x39133b(_0x42a93d._0x477630,_0x42a93d._0x17ee18,_0x42a93d._0x5ad0f1,0x15d)]();_0x3b041b!==void 0x0&&(yield _0x3b041b);}const _0x1a1f2f=await _0x2fc93b,_0x1674dd=_0x234738?_0x390e69(_0x42a93d._0x535026,0x2c9,0x36d,0x233)+(_0x1a1f2f[_0x39133b(_0x42a93d._0x14327b,_0x42a93d._0x58bd92,0xf2,0x171)]??0x0):_0x187e3f['join'](''),_0x14b99a={'command':_0x253aee['command'],'cwd':_0x425f62,'exitCode':_0x1a1f2f[_0x390e69(_0x42a93d._0x3809e0,0x245,0x404,0x3ec)]??0x0,'signal':_0x1a1f2f['signal'],'ignoreOutput':_0x234738,'shellPath':_0x34fcc3,'timeoutMs':_0xa68232};if(_0x1a1f2f[_0x39133b(0xcd,_0x42a93d._0x7e081e,0x19d,-_0x42a93d._0x3070d9)]!==0x0)throw new ToolExecutionError(_0x1674dd||_0x390e69(0x3ef,0x2d6,0x488,0x3c5)+(_0x1a1f2f[_0x390e69(_0x42a93d._0x3809e0,0x42b,0x3e6,0x2dd)]??0x0),_0x14b99a);return createToolOutput(_0x1674dd,_0x14b99a);}catch(_0x4ec585){while(_0x312b0b[_0x39133b(0xcd,0xec,-0x61,_0x42a93d._0x53501b)]>0x0){const _0x463fa5=_0x312b0b[_0x39133b(_0x42a93d._0x4a7ef0,0xe,_0x42a93d._0x23e96c,-0xdc)]();_0x463fa5!==void 0x0&&(yield _0x463fa5);}if(_0x4ec585 instanceof ToolExecutionError)throw _0x4ec585;if(_0x363cae)throw _0x363cae;if(isErrnoException(_0x4ec585)&&_0x4ec585['code']==='ENOENT')throw new ToolExecutionError(_0x39133b(0x2a2,0x272,_0x42a93d._0x162d03,0x38e)+_0x34fcc3,{'command':_0x253aee['command'],'cwd':_0x425f62,'shellPath':_0x34fcc3});throw new ToolExecutionError(_0x4ec585 instanceof Error?_0x4ec585[_0x390e69(_0x42a93d._0x3fa751,0x3b3,0x497,0x359)]:String(_0x4ec585),{'command':_0x253aee['command'],'cwd':_0x425f62,'shellPath':_0x34fcc3});}finally{_0x152674&&clearTimeout(_0x152674);_0x41dbaf(),_0x4dd14f[_0x39133b(_0x42a93d._0x18798a,0x223,_0x42a93d._0x1a8eb3,_0x42a93d._0x42bc04)]?.[_0x39133b(0x2e1,0x1fa,_0x42a93d._0x61cfcc,_0x42a93d._0x3842eb)]('data',_0x2f3851),_0x4dd14f[_0x39133b(_0x42a93d._0x37b68a,_0x42a93d._0x1d9601,0x56,0x14a)]?.[_0x39133b(_0x42a93d._0x44456b,_0x42a93d._0x4351bd,_0x42a93d._0x42541a,_0x42a93d._0x4b457d)](_0x39133b(0xe9,0xb4,0x37,0x103),_0x4d7a24);if(!_0x24bc3c&&_0x4dd14f[_0x39133b(0x314,0x24d,0x249,0x1b8)]&&!_0x4dd14f[_0x39133b(_0x42a93d._0x490c88,_0x42a93d._0x26441a,0x258,_0x42a93d._0x5aa2c5)])try{killProcessGroup(_0x4dd14f,_0x4e26dc);}catch{}}}});}function createShellExecTool(_0x910239={}){return createBashTool(_0x910239);}import{readdir,readFile as _0x2d4031}from'fs/promises';import{extname,join as _0x5c6742}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x286bc5,join,relative as _0x4fcce9,resolve as _0x5d477c}from'path';import{readdir as _0x637825,readFile as _0x41e094}from'fs/promises';import{join as _0xf74614,relative as _0x2871df,sep}from'path';import{delimiter}from'path';import{mkdir as _0x24dee0,rm,stat as _0x4c6ca6,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x188695}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x21bb7b,rename,writeFile as _0x456f1b}from'fs/promises';import{homedir as _0x32aed4}from'os';import{dirname as _0x2353b4,isAbsolute as _0x1ed128,join as _0x1234fb,resolve as _0x2245e8}from'path';import{parse as _0x276196,stringify as _0x19439f}from'yaml';import{cp,mkdir as _0x2aba26,readFile as _0x339532,rm as _0x1a02a4,writeFile as _0x8fcb15}from'fs/promises';import{homedir}from'os';import{join as _0x15ce38}from'path';import{parse as _0x5d0981,stringify as _0x4e9aac}from'yaml';import{z}from'zod';import{readdir as _0x568250,readFile as _0x2c68bd}from'fs/promises';import{join as _0x44900b}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x3850d8){const _0x3556d5={_0x40794e:0x287,_0x24add1:0x16e,_0x49b4d7:0x232,_0x1bad79:0xb0,_0x309e6e:0xad,_0x4d1c83:0x9f,_0x335dc8:0x46,_0x7c1b3d:0x147,_0x548789:0x1ab,_0x45ceff:0x98,_0x5d42ed:0x2,_0x51a163:0x123,_0x585871:0x48,_0x5ef778:0xea,_0x3638c2:0x12c,_0x10bd94:0x26b},_0x27699f={_0x351ed2:0x7d},_0x51ab35={_0x237520:0xa0},_0x415d44=[];function _0x1b9ef2(_0x2c2a53,_0x559daa,_0x157f6f,_0x1a8b89){return _0x1343ee(_0x157f6f- -0x18e,_0x559daa,_0x157f6f-0x69,_0x1a8b89-_0x51ab35._0x237520);}function _0x3ff549(_0x14b655,_0x2b857c,_0x2a53fb,_0x390a09){return _0x357fd3(_0x14b655-0xcf,_0x2b857c-0x96,_0x2b857c- -_0x27699f._0x351ed2,_0x2a53fb);}let _0x2ddbff='',_0x19c74d=0x0;while(_0x19c74d<_0x3850d8[_0x1b9ef2(-_0x3556d5._0x40794e,-0x52,-_0x3556d5._0x24add1,-_0x3556d5._0x49b4d7)]){const _0x3f37cc=_0x3850d8[_0x19c74d];if(_0x3f37cc==='\x5c'&&_0x19c74d+0x1<_0x3850d8[_0x1b9ef2(-_0x3556d5._0x1bad79,-_0x3556d5._0x309e6e,-0x16e,-_0x3556d5._0x4d1c83)])_0x2ddbff+=_0x3850d8[_0x19c74d+0x1],_0x19c74d+=0x2;else{if(_0x3f37cc==='\x22'||_0x3f37cc==='\x27'){const _0x173f4a=_0x3f37cc;_0x19c74d++;while(_0x19c74d<_0x3850d8[_0x1b9ef2(-_0x3556d5._0x335dc8,-0x123,-0x16e,-_0x3556d5._0x7c1b3d)]&&_0x3850d8[_0x19c74d]!==_0x173f4a){_0x3850d8[_0x19c74d]==='\x5c'&&_0x19c74d+0x1<_0x3850d8[_0x1b9ef2(-_0x3556d5._0x548789,-0x28a,-_0x3556d5._0x24add1,-_0x3556d5._0x45ceff)]?(_0x2ddbff+=_0x3850d8[_0x19c74d+0x1],_0x19c74d+=0x2):(_0x2ddbff+=_0x3850d8[_0x19c74d],_0x19c74d++);}_0x19c74d++;}else _0x3f37cc!==void 0x0&&/\s/[_0x3ff549(0x1c5,0xbb,-_0x3556d5._0x5d42ed,_0x3556d5._0x51a163)](_0x3f37cc)?(_0x2ddbff&&(_0x415d44[_0x3ff549(-_0x3556d5._0x585871,-0x20,-0x137,0x9f)](_0x2ddbff),_0x2ddbff=''),_0x19c74d++):(_0x2ddbff+=_0x3f37cc,_0x19c74d++);}}if(_0x2ddbff)_0x415d44[_0x1b9ef2(-_0x3556d5._0x5ef778,-0x204,-_0x3556d5._0x3638c2,-_0x3556d5._0x10bd94)](_0x2ddbff);return _0x415d44;}function renderCommandInstructions(_0x411f3e){const _0x59c652={_0x20cd4d:0x334,_0x1a6921:0x4a0,_0x28c106:0x2dd,_0x4fb8e1:0x3bd,_0x4d1888:0x340,_0x4cf416:0x2ef,_0x47c1ff:0x2e1,_0x5ed2ce:0x457,_0x4c784d:0x31e,_0x44a383:0x440,_0x52e99a:0x250,_0x22f74e:0x235,_0x19a349:0x124,_0x33d308:0x3f3,_0xf8367e:0x2ff,_0x3c5c0b:0x367},_0x426a6d={_0x3a9d3b:0x420,_0x4d9e2f:0x16d},_0x98cba7={_0x50311b:0x1b8,_0x3e03d0:0x1cc},_0x5ee757={_0x3eb5a5:0x180,_0x5d0615:0x1af},_0xa0c65c={_0x33beb3:0x298,_0x5366b4:0x16c};function _0x1a20e9(_0x3d60a0,_0x5a82ed,_0x23c758,_0x559527){return _0x1343ee(_0x559527-_0xa0c65c._0x33beb3,_0x23c758,_0x23c758-_0xa0c65c._0x5366b4,_0x559527-0x125);}let _0x467770=_0x411f3e[_0xf927df(0x2ba,0x453,0x4be,0x39c)],_0xf8b424=![];const _0x23b4df=tokenizeCommandArguments(_0x411f3e[_0xf927df(0x22a,_0x59c652._0x20cd4d,_0x59c652._0x1a6921,0x367)]);_0x467770=_0x467770['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0xc4cb52,_0x3875e6)=>{return _0xf8b424=!![],_0x23b4df[Number(_0x3875e6)]??'';}),_0x467770=_0x467770[_0xf927df(0x41c,_0x59c652._0x28c106,0x3a2,_0x59c652._0x4fb8e1)](/\$ARGUMENTS\b/g,()=>{function _0xf869ff(_0x278de2,_0x5aeb6e,_0x54e7f2,_0x1956c1){return _0xf927df(_0x278de2-_0x5ee757._0x3eb5a5,_0x5aeb6e-0x16,_0x278de2,_0x54e7f2- -_0x5ee757._0x5d0615);}return _0xf8b424=!![],_0x411f3e[_0xf869ff(0x70,0x2d7,_0x98cba7._0x50311b,_0x98cba7._0x3e03d0)];});if(_0x411f3e[_0x1a20e9(0x380,_0x59c652._0x4d1888,0x306,0x23b)]&&_0x411f3e['argumentNames'][_0x1a20e9(_0x59c652._0x4cf416,0x26a,0x37f,0x2b8)]>0x0)for(let _0x268520=0x0;_0x268520<_0x411f3e[_0xf927df(_0x59c652._0x47c1ff,0x4d6,_0x59c652._0x5ed2ce,0x3c3)][_0xf927df(0x4f1,0x4bf,_0x59c652._0x4c784d,_0x59c652._0x44a383)];_0x268520++){const _0x35750c=_0x411f3e['argumentNames'][_0x268520];if(_0x35750c){const _0x2be5d1=new RegExp('\x5c$'+_0x35750c+'\x5cb','g');_0x467770=_0x467770[_0x1a20e9(0x12b,0x31f,_0x59c652._0x52e99a,_0x59c652._0x22f74e)](_0x2be5d1,()=>{return _0xf8b424=!![],_0x23b4df[_0x268520]??'';});}}_0x467770=_0x467770[_0x1a20e9(0x247,0x180,0x266,0x235)](/\$(\d+)\b/g,(_0x9359ef,_0x391a36)=>{return _0xf8b424=!![],_0x23b4df[Number(_0x391a36)]??'';});function _0xf927df(_0x660086,_0x239785,_0x5b6e4e,_0x17210c){return _0x1343ee(_0x17210c-_0x426a6d._0x3a9d3b,_0x5b6e4e,_0x5b6e4e-0xc6,_0x17210c-_0x426a6d._0x4d9e2f);}return!_0xf8b424&&_0x411f3e['argumentsText'][_0x1a20e9(0x2a8,0x194,0x189,0x2a1)]()&&(_0x467770=_0x467770+_0x1a20e9(_0x59c652._0x19a349,0x2cb,0x21e,0x1de)+_0x411f3e[_0xf927df(0x4a5,_0x59c652._0x33d308,_0x59c652._0xf8367e,_0x59c652._0x3c5c0b)]),_0x467770;}var chatModelAuthSchemeSchema=z[_0x1343ee(-0x28,0x8c,-0x175,-0x13d)]([_0x357fd3(-0xa3,-0x32,0x54,0x109),'x-api-key']),apiKeyAuthSchema=z[_0x1343ee(0x4c,0x12f,-0xc6,-0xa8)]({'type':z[_0x357fd3(0x150,-0x1a,0xa3,0x107)](_0x1343ee(0x1ba,0x287,0x297,0x1ce)),'apiKey':z[_0x357fd3(0x7c,0x114,0x95,0x146)](),'authScheme':chatModelAuthSchemeSchema['optional']()})[_0x357fd3(0x1df,0x2c2,0x19f,0xa2)](),oauthAuthSchema=z['object']({'type':z[_0x1343ee(0xa8,0xf4,0xa0,-0x11)](_0x357fd3(0x21e,0xfa,0x14b,0x84)),'access':z[_0x357fd3(0x1ba,-0xa0,0x95,-0x39)](),'refresh':z[_0x1343ee(0x9a,0x122,0x40,-0x24)](),'expires':z['number']()[_0x357fd3(0xb2,0x1da,0xd6,-0x4)](),'authScheme':chatModelAuthSchemeSchema[_0x1343ee(0xdb,0xc4,0xe3,0x91)]()})[_0x1343ee(0x1a4,0x224,0x2e3,0x19e)](),authMethodSchema=z['union']([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x1343ee(0x4c,0x150,0x104,0x89)]({'id':z[_0x357fd3(0x73,-0x4a,0x95,-0x97)](),'name':z[_0x1343ee(0x9a,0x8d,-0x70,-0x3d)]()[_0x357fd3(0x1ad,0xef,0xd6,0xa9)]()})[_0x357fd3(0x63,0x2d3,0x19f,0x29f)](),modelConfigSchema=z[_0x357fd3(-0x135,-0x111,-0xa8,-0x67)]([z[_0x357fd3(0x138,-0x9e,0xa3,0x1a3)](![]),z[_0x1343ee(0xa8,0x17,-0x22,0x105)](!![]),z[_0x357fd3(0xd5,-0x3d,0x95,0x58)](),z[_0x1343ee(-0x5b,-0x66,-0x90,-0x4)](z[_0x1343ee(0x9a,-0x18,-0x62,-0x35)]()),z['array'](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x1343ee(-0x28,0x103,0x8,0x92)](['anthropic-messages','openai-chat-completions','openai-responses',_0x357fd3(-0xbf,0x17,0x27,-0xb)]),providerConfigSchema=z['object']({'apiKey':z[_0x357fd3(-0xb,0x18d,0x95,-0x49)]()['optional'](),'token':z[_0x1343ee(0x9a,0xa1,-0x8a,0x84)]()['optional'](),'defaultModel':z['string']()[_0x1343ee(0xdb,0x19b,0x15f,-0x31)](),'smallModel':z[_0x357fd3(0x115,0x11f,0x95,0x48)]()['optional'](),'currentAuth':z['string']()[_0x357fd3(0x2f,0x168,0xd6,0x18f)](),'auth':z['array'](authMethodSchema)[_0x357fd3(0x16d,0xa5,0xd6,0x3b)](),'surface':chatModelSurfaceSchema[_0x1343ee(0xdb,0x15c,0x20f,-0x61)](),'baseUrl':z['string']()[_0x357fd3(0x1d1,0x210,0xd6,-0x5c)](),'models':modelConfigSchema[_0x1343ee(0xdb,0x30,0x16c,0x1ba)](),'customHeaders':z[_0x357fd3(0x202,0x26,0xc6,0x81)](z['string'](),z[_0x1343ee(0x9a,0x19a,-0x2b,0x158)]())[_0x1343ee(0xdb,0xb0,0x9f,0x14a)]()})[_0x357fd3(0x25b,0x2b2,0x19f,0x23a)](),mcpServerConfigSchema=z[_0x357fd3(-0x40,-0xa8,0x47,0xb2)]({'command':z[_0x357fd3(0x113,-0x7,0x95,0x96)]()[_0x357fd3(0x116,0x6e,0xd6,-0x75)](),'args':z['array'](z[_0x357fd3(-0x2b,0x98,0x95,0x30)]())['optional'](),'env':z[_0x1343ee(0xcb,0x118,0x41,0xdc)](z['string'](),z[_0x357fd3(0xb7,0x136,0x95,0x12)]())[_0x357fd3(0xd7,0x145,0xd6,0x1e1)](),'transport':z['enum']([_0x1343ee(0x16a,0x1fe,0x188,0x21e),_0x1343ee(0x159,0x12e,0x4f,0x11b)])['optional'](),'url':z[_0x357fd3(-0x5e,0xbd,0x95,0x7)]()[_0x357fd3(0x18a,0xd5,0xd6,0x125)](),'headers':z[_0x1343ee(0xcb,0x1e,0xe7,0x55)](z['string'](),z['string']())[_0x1343ee(0xdb,0x1f3,0x205,0x133)](),'prefix':z[_0x1343ee(0x9a,0xa7,0x144,0xed)]()[_0x1343ee(0xdb,0x127,0x1d,0xc)](),'timeoutMs':z[_0x357fd3(0x1a2,0x5,0x143,0x140)]()[_0x1343ee(0xdb,0x201,0x1d9,0x204)](),'enabled':z[_0x357fd3(0x142,0x85,0x127,0x12d)]()[_0x357fd3(-0x18,0x1ce,0xd6,0x15f)](),'auth':z[_0x357fd3(0x58,-0x1b,0x47,0x1d)]({'type':z[_0x357fd3(-0x176,-0x16,-0x2d,0xbb)]([_0x357fd3(0x87,0x20a,0x176,0xb4),_0x1343ee(0x59,0xaa,0xe,0x9f),_0x1343ee(0x150,0x1f3,0xa4,0x186)]),'token':z[_0x1343ee(0x9a,0xa8,0x109,-0xb1)]()[_0x357fd3(0x1a9,0x1e5,0xd6,0x6f)](),'oauth':z['object']({'clientId':z[_0x1343ee(0x9a,0x1aa,0x176,-0x31)]()[_0x1343ee(0xdb,0x10f,0x1ad,-0x3a)](),'clientMetadataUrl':z[_0x1343ee(0x9a,-0x72,0x199,0x146)]()[_0x357fd3(0x190,-0x58,0xd6,0x7c)](),'authorizationServer':z[_0x357fd3(0x13f,0xbb,0x95,-0x33)]()[_0x357fd3(0xae,0x1d6,0xd6,0x1ac)](),'scopes':z['array'](z['string']())[_0x1343ee(0xdb,0x16d,-0x67,0x19)](),'tokenStorageKey':z[_0x1343ee(0x9a,0x124,0x1ce,0x10f)]()[_0x1343ee(0xdb,0x207,0x160,0xdc)]()})[_0x357fd3(0x11f,0x186,0x19f,0x28b)]()['optional']()})[_0x357fd3(0x254,0x25d,0x19f,0x2a0)]()[_0x357fd3(0x1c3,-0x66,0xd6,0x164)]()})[_0x1343ee(0x1a4,0x1b0,0x153,0x2eb)](),mcpSettingsSchema=z['object']({'servers':z['record'](z[_0x1343ee(0x9a,-0x29,0x141,0x175)](),mcpServerConfigSchema)[_0x1343ee(0xdb,0xe,0x1d3,0x5a)](),'allowedTools':z['record'](z[_0x1343ee(0x9a,0x1bd,0x1ba,-0x82)](),z['record'](z[_0x1343ee(0x9a,-0x1d,0x17b,0x9f)](),z[_0x357fd3(0x5d,0x16c,0x127,0x1b)]()))[_0x357fd3(0x58,0xbf,0xd6,0x3b)](),'defaultTimeoutMs':z[_0x357fd3(0x1a5,0x231,0x143,0x200)]()[_0x1343ee(0xdb,0x19f,0xd8,0x154)]()})[_0x357fd3(0x13c,0x284,0x19f,0x24f)](),skillsSettingsSchema=z['object']({'enabled':z[_0x1343ee(0x12c,0x139,0x15e,0x7)]()[_0x357fd3(0xc8,0x20,0xd6,0x1dd)](),'includeDefaults':z[_0x357fd3(0x105,0x1be,0x127,0x23b)]()['optional'](),'directories':z['array'](z[_0x357fd3(-0x16,0xf3,0x95,0x15e)]())['optional'](),'exclude':z[_0x357fd3(-0x8b,0xc5,-0x60,0x46)](z[_0x1343ee(0x9a,0x199,0x1d8,0x1dd)]())['optional']()})[_0x1343ee(0x1a4,0x8c,0x10b,0x1da)](),commandsSettingsSchema=z[_0x1343ee(0x4c,0x1d,-0x5e,0x13b)]({'enabled':z[_0x357fd3(-0xc,0x26e,0x127,0x145)]()[_0x357fd3(0x8c,0x1c7,0xd6,0x200)](),'directories':z[_0x1343ee(-0x5b,-0x7d,0xaa,-0x7a)](z[_0x1343ee(0x9a,0x71,-0x3a,0x144)]())[_0x357fd3(0xa0,0x8b,0xd6,-0xf)]()})[_0x357fd3(0x7f,0x6a,0x19f,0x1d7)](),agentsSettingsSchema=z[_0x357fd3(0xa,0x152,0x47,0x4b)]({'enabled':z['boolean']()[_0x1343ee(0xdb,0x16c,0x225,0x70)](),'includeDefaults':z[_0x1343ee(0x12c,0x3b,0x208,0x12c)]()[_0x357fd3(-0x28,0x224,0xd6,0x206)](),'directories':z[_0x1343ee(-0x5b,0x2f,-0x10e,-0x19)](z['string']())[_0x357fd3(0x34,0x41,0xd6,-0x71)]()})['passthrough'](),uiThemeSettingsSchema=z[_0x357fd3(0x176,0x18f,0x47,-0x35)]({'mode':z['enum'](['auto','dark','light'])['optional'](),'colorLevel':z[_0x357fd3(0x89,-0x16a,-0x2d,-0x12e)]([_0x357fd3(0x196,0x110,0x46,0x4d),_0x357fd3(0x113,0x173,0x176,0x1cc),_0x1343ee(0xe5,0x18c,-0x56,0x1dd),_0x357fd3(-0xb8,0xb3,0x17,-0x5a),_0x1343ee(0x41,-0xeb,0x18b,0x20)])['optional'](),'backgrounds':z[_0x357fd3(0x85,-0xb4,-0x2d,-0x10f)](['auto','on',_0x1343ee(0x12e,0x176,0x144,0x1a2)])['optional'](),'messageStyle':z[_0x1343ee(-0x28,-0x164,0x1,0x5)]([_0x1343ee(0x12f,0x4c,0x1a0,0x6b),_0x357fd3(0x71,0x211,0x178,0x5e)])[_0x357fd3(0x116,0x10c,0xd6,0x97)]()})['passthrough'](),statuslineSegmentSchema=z['enum']([_0x1343ee(0x173,0x193,0x2c,0x3d),'session','thinking',_0x357fd3(-0xd6,-0xfb,-0xb5,-0x1ed),'tokens',_0x1343ee(-0xa0,0x5b,-0x153,-0x3d),'cached',_0x1343ee(0x83,0x9b,0x132,-0x58),'tools',_0x357fd3(0x194,0xe8,0x12c,0xf8),_0x357fd3(-0x19e,-0xd0,-0x9f,-0xd7),'gitBranch',_0x1343ee(0xad,0xbb,0x153,-0x37),_0x1343ee(0xeb,0x14b,-0x11,0x50),_0x357fd3(0x75,0x7a,-0x99,0x65)]),statuslineItemSchema=z[_0x357fd3(0x89,-0x7,-0xa8,-0x9b)]([statuslineSegmentSchema,z[_0x357fd3(0x178,0xa9,0xa3,-0x27)]('|')]),statuslineRowSchema=z['array'](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z['tuple']([statuslineRowSchema,statuslineRowSchema])[_0x357fd3(0x6b,0x158,0xd6,-0x5c)]()})[_0x357fd3(0x23f,0xb2,0x19f,0x11d)](),memorySettingsSchema=z[_0x357fd3(-0x9e,-0x59,0x47,-0x7f)]({'version':z[_0x357fd3(0x7e,0x172,0xa3,0x152)](0x2)[_0x1343ee(0xdb,0x222,0xf9,0x15c)](),'retrieval':z[_0x357fd3(0xb7,0xba,0x47,0x80)]({'engine':z[_0x1343ee(0xa8,0x1a,0x170,0x7c)]('bm25')['optional'](),'candidateLimit':z[_0x1343ee(0x148,0x185,0x8c,0x263)]()[_0x357fd3(0x1f,-0xd,0xd6,0x193)](),'activeCandidateLimit':z['number']()[_0x1343ee(0xdb,0x18b,0x98,0x21e)](),'activeEnabled':z[_0x1343ee(0x12c,0x267,0xe8,0xe1)]()[_0x357fd3(0x1e2,0x3c,0xd6,-0x23)](),'maxQueriesPerTurn':z[_0x1343ee(0x148,0x26f,0x136,0x80)]()['optional'](),'coreInjectTokenBudget':z[_0x357fd3(0x17b,0x14d,0x143,0x257)]()[_0x1343ee(0xdb,0x192,0xb9,0x117)](),'injectTokenBudget':z[_0x357fd3(0xb,0xf3,0x143,0x28b)]()[_0x357fd3(0x188,0x5b,0xd6,0x18f)](),'minScore':z['number']()[_0x357fd3(0x10a,0xe0,0xd6,0x8a)](),'freshnessHalfLifeDays':z[_0x1343ee(0x148,0x57,0x161,0x145)]()[_0x1343ee(0xdb,0x193,0x93,0xbb)]()})[_0x357fd3(0x11b,0x173,0x19f,0x280)]()['optional'](),'extraction':z['object']({'enabled':z[_0x357fd3(0x119,0x1c2,0x127,0x12)]()[_0x357fd3(0x1a1,0x20a,0xd6,0x129)](),'provider':z[_0x357fd3(-0xa1,0x8e,0x95,0x170)]()['optional'](),'model':z['string']()[_0x357fd3(-0x2,-0x5e,0xd6,-0x29)](),'sensitiveFilter':z[_0x1343ee(0x12c,0x22c,0x12c,0x1a8)]()[_0x1343ee(0xdb,-0x60,0x1a3,0x128)]()})[_0x1343ee(0x1a4,0x16d,0x122,0x1d7)]()[_0x357fd3(0x1f5,-0xb,0xd6,-0x5d)](),'index':z[_0x357fd3(-0xa1,0x175,0x47,-0xd1)]({'persisted':z['boolean']()[_0x1343ee(0xdb,0x15f,0x21d,0x186)](),'flushIntervalMs':z[_0x1343ee(0x148,0x28f,0x1c,0x233)]()['optional']()})['passthrough']()[_0x1343ee(0xdb,0x7c,-0x6e,0x34)](),'enabled':z[_0x1343ee(0x12c,0xe1,0x1e4,0xb4)]()[_0x1343ee(0xdb,0xb9,-0x12,0x122)](),'saveTool':z['boolean']()['optional'](),'model':z[_0x1343ee(0x9a,0x5,0xd5,0x195)]()[_0x1343ee(0xdb,0x17a,0x173,0x80)](),'provider':z[_0x357fd3(0x15b,-0x1e,0x95,0x5d)]()[_0x1343ee(0xdb,0x15a,-0x3,-0x21)](),'maxInjectionTokens':z[_0x357fd3(0x16c,0x1e0,0x143,0x80)]()['optional'](),'backgroundExtraction':z[_0x1343ee(0x12c,0x16b,0x72,0x6b)]()[_0x357fd3(0x1d4,-0x35,0xd6,0x130)]()})[_0x1343ee(0x1a4,0x23f,0x20b,0x2cb)](),recentModelSchema=z['object']({'provider':z[_0x1343ee(0x9a,0x157,0x187,-0x73)](),'model':z[_0x1343ee(0x9a,0xdf,0x10c,-0xa6)](),'usedAt':z['number']()})[_0x357fd3(0x2ab,0x298,0x19f,0x10e)](),lspServerEntrySchema=z[_0x357fd3(-0xa5,0x1b,0x47,-0x24)]({'disabled':z[_0x357fd3(0x16f,0xf0,0x127,0x10a)]()[_0x357fd3(-0x68,0x208,0xd6,-0x68)](),'command':z['string']()[_0x1343ee(0xdb,0x1b4,0x173,0x13b)](),'args':z[_0x1343ee(-0x5b,0xbd,-0x104,-0x13)](z[_0x1343ee(0x9a,0x53,0x185,-0xd)]())[_0x1343ee(0xdb,0x181,0x53,0x1b)](),'rootMarkers':z[_0x1343ee(-0x5b,0xe3,-0xe1,0xa9)](z[_0x1343ee(0x9a,0x1df,0x125,0xd5)]())[_0x1343ee(0xdb,0x109,0x1ef,0x42)]()})[_0x1343ee(0x1a4,0x247,0x266,0x7f)](),lspConfigSchema=z[_0x357fd3(0x2e,0x84,0x47,0x16d)]({'enabled':z['boolean']()['optional'](),'servers':z['record'](z[_0x1343ee(0x9a,0xbb,0x39,0xec)](),lspServerEntrySchema)[_0x1343ee(0xdb,0x48,0x1b,0x1e8)]()})[_0x357fd3(0x172,0x1a3,0x19f,0x15c)](),cliConfigSchema=z[_0x1343ee(0x4c,0xd5,0xf5,0xdf)]({'activeProvider':z[_0x357fd3(0x18,0x16,0x95,0x1be)]()[_0x357fd3(0x219,0x24,0xd6,0x21b)](),'activeModel':z[_0x357fd3(0x150,0x1e3,0x95,0x140)]()[_0x1343ee(0xdb,0x156,0x19a,0x4)](),'apiKey':z['string']()[_0x1343ee(0xdb,0x196,0xb0,0x161)](),'providers':z['record'](z[_0x1343ee(0x9a,0x126,0x1b8,0x174)](),providerConfigSchema)[_0x357fd3(0x1a9,0x145,0xd6,0x1d0)](),'mcp':mcpSettingsSchema[_0x357fd3(0x114,0x13d,0xd6,0x12d)](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x357fd3(0x1e1,0xad,0xd6,0x8a)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x1343ee(0xcb,0x9d,0x1fa,0x9b)](z[_0x1343ee(0x9a,0xa9,0x121,-0x95)](),z[_0x357fd3(0xda,0x15f,0x127,0x13f)]())[_0x1343ee(0xdb,0xf4,-0x6a,0x21a)](),'memory':memorySettingsSchema[_0x1343ee(0xdb,0x115,0x17f,0x21b)](),'session':z[_0x1343ee(0x4c,-0xe5,-0xb0,0x4f)]({'memPersist':z['boolean']()[_0x357fd3(-0x2f,0x221,0xd6,0x193)](),'persistEventLog':z['boolean']()['optional'](),'persistHttpLog':z[_0x1343ee(0x12c,0xc7,0xae,0x9b)]()[_0x357fd3(0x14c,0x1d5,0xd6,0x172)]()})['passthrough']()[_0x1343ee(0xdb,0xb4,0x1d1,0x8)](),'requireToolApproval':z[_0x357fd3(0x13f,0x182,0x127,0x243)]()[_0x357fd3(0x95,0x189,0xd6,-0x22)](),'thinking':z[_0x357fd3(-0x15c,-0x168,-0x2d,0xec)]([_0x1343ee(0x7e,-0x61,-0x27,0x21),_0x357fd3(0x14d,0x36,0x86,-0xc3),_0x1343ee(0x1be,0x1ca,0x127,0xf9),_0x1343ee(-0x27,-0xdc,0xd1,0x93)])[_0x1343ee(0xdb,-0x5e,0x48,0x13)](),'streamingChunks':z[_0x1343ee(0x12c,0x197,0x12e,-0x8)]()[_0x357fd3(0xd0,-0x4e,0xd6,0xc7)](),'agentsEnabled':z[_0x357fd3(0x1fa,0xe9,0xc6,0x188)](z[_0x357fd3(-0xa3,0x51,0x95,-0xa5)](),z[_0x357fd3(0x122,0x139,0x127,-0x5)]())[_0x1343ee(0xdb,-0x3b,0xe3,0xd)](),'recentModels':z[_0x1343ee(-0x5b,-0x188,0x30,-0x3)](recentModelSchema)[_0x1343ee(0xdb,-0x6b,0x11f,0xad)](),'lsp':lspConfigSchema['optional'](),'ui':z[_0x357fd3(-0x64,-0x4a,0x47,0x170)]({'theme':uiThemeSettingsSchema[_0x1343ee(0xdb,0x177,-0x54,0x1a1)](),'statusline':statuslineConfigSchema['optional']()})[_0x357fd3(0x19c,0xe6,0x19f,0x155)]()[_0x357fd3(-0x29,0x86,0xd6,-0x10)](),'tools':z['record'](z[_0x1343ee(0x9a,-0x3,0x95,0x12e)](),z[_0x1343ee(-0xb3,-0x64,-0xd3,0x8d)]())[_0x357fd3(0x74,0xb1,0xd6,-0x35)]()})[_0x1343ee(0x1a4,0x1f7,0xa6,0x6c)]();function buildDescription(_0x623b0b){const _0x1dfd6d={_0x5ce353:0x66,_0xcd5b8c:0x0,_0x8c909d:0xb0,_0x1a514f:0x45,_0x44ebce:0x17,_0x17f17d:0x1bd,_0x297128:0xb9,_0x402651:0x291,_0x2093fe:0x2fa,_0x146c8d:0x210,_0x2aa687:0x46a,_0x20a795:0xd6,_0x105c88:0x38,_0x3431cc:0x2cd,_0x440716:0x456,_0x7a1532:0x6d,_0x3906d1:0xc,_0x185f23:0x75,_0xb406af:0x3c8,_0x3d3a82:0x36c,_0x46a3f6:0x3a,_0x15ebf7:0x55},_0xb072eb={_0x198659:0x1d2},_0x6c8cbe={_0x969656:0x86};function _0x4b9189(_0x44b9e4,_0x5d2cbc,_0x2ae166,_0x3dd3b9){return _0x357fd3(_0x44b9e4-0x0,_0x5d2cbc-_0x6c8cbe._0x969656,_0x3dd3b9-0x2a,_0x2ae166);}function _0x534f90(_0x408935,_0x1ce837,_0x2f77e4,_0x594230){return _0x1343ee(_0x1ce837-0x2aa,_0x594230,_0x2f77e4-0x6e,_0x594230-_0xb072eb._0x198659);}if(_0x623b0b[_0x4b9189(-_0x1dfd6d._0x5ce353,_0x1dfd6d._0xcd5b8c,-_0x1dfd6d._0x8c909d,_0x1dfd6d._0x1a514f)]===0x0)return[_0x4b9189(_0x1dfd6d._0x44ebce,-0x4e,_0x1dfd6d._0x17f17d,_0x1dfd6d._0x297128),_0x534f90(_0x1dfd6d._0x402651,_0x1dfd6d._0x2093fe,0x1c2,_0x1dfd6d._0x146c8d),_0x534f90(0x400,_0x1dfd6d._0x2aa687,0x59f,0x4fd)][_0x4b9189(_0x1dfd6d._0x20a795,-0x5,-_0x1dfd6d._0x105c88,0x64)]('\x0a');const _0x2e2bc8=[_0x534f90(_0x1dfd6d._0x3431cc,0x33e,_0x1dfd6d._0x440716,0x33d),_0x4b9189(-_0x1dfd6d._0x7a1532,_0x1dfd6d._0x3906d1,-0x2e,_0x1dfd6d._0x185f23),_0x534f90(_0x1dfd6d._0xb406af,0x2fd,_0x1dfd6d._0x3d3a82,0x22c),..._0x623b0b[_0x4b9189(_0x1dfd6d._0x46a3f6,0xaf,-0x12,-_0x1dfd6d._0x15ebf7)](_0x15f295=>_0x15f295[_0x534f90(0x5a7,0x473,0x3eb,0x34e)]?'-\x20'+_0x15f295['name']+'\x20'+_0x15f295['argumentHint']+':\x20'+_0x15f295[_0x4b9189(-0x8f,0xb4,0x6f,0x23)]:'-\x20'+_0x15f295['name']+':\x20'+_0x15f295[_0x4b9189(0x93,0x84,0x71,0x23)])];return _0x2e2bc8['join']('\x0a');}function createInvokeCommandTool(_0x28d765){const _0x4b8bb4={_0x4641f1:0x27a,_0x5bd2fa:0x350,_0x3f60c9:0x349,_0x3331c7:0x376,_0x352d27:0x4a1,_0x1a672f:0x40c,_0x4fb7bb:0x457,_0x3db00d:0x435,_0x337f66:0x307,_0x185b41:0x305,_0x2672b1:0x3a2,_0x548ab7:0x71,_0x4bd564:0x10d,_0x1414c8:0x16e,_0x5b1924:0xf,_0x458bea:0x91,_0x5c3337:0x94},_0x479e82={_0x10147f:0xac,_0x5772eb:0x139,_0x31ed9b:0x200,_0x48b8e8:0x138,_0x6bea97:0x1df,_0x202825:0x2c3,_0x20087f:0x1c9,_0x4a0803:0x36c,_0x4cc310:0x12b,_0x51756c:0x160,_0x217a55:0x31c,_0x336cc9:0x3e6,_0x1a6289:0x1cf,_0x3ceeb5:0x36,_0x62999c:0x10f,_0xd2e861:0x2d,_0x58c3eb:0x2b8,_0x2d7d1b:0x3cc,_0x5638ca:0x322,_0x49e5b2:0x3bf},_0x4c4bb6={_0x108bb3:0x84,_0x35b301:0x100,_0x1f5370:0x78},_0x5cf15e={_0x1f72e7:0x3c3,_0x1546b7:0x14f};function _0x35e2a3(_0x2cfa87,_0x19a2ad,_0x427906,_0xcaf4c4){return _0x1343ee(_0x427906-_0x5cf15e._0x1f72e7,_0xcaf4c4,_0x427906-0x1c8,_0xcaf4c4-_0x5cf15e._0x1546b7);}const _0xe1949f=new Map(_0x28d765['commands'][_0x35e2a3(_0x4b8bb4._0x4641f1,_0x4b8bb4._0x5bd2fa,_0x4b8bb4._0x3f60c9,0x41d)](_0xcc20c8=>[_0xcc20c8['id'],_0xcc20c8])),_0x268335=buildDescription(_0x28d765[_0x35e2a3(_0x4b8bb4._0x3331c7,_0x4b8bb4._0x352d27,_0x4b8bb4._0x1a672f,_0x4b8bb4._0x4fb7bb)]);function _0x3f73a6(_0xd081f2,_0x17c8fe,_0x4c60cd,_0x4b382b){return _0x357fd3(_0xd081f2-_0x4c4bb6._0x108bb3,_0x17c8fe-_0x4c4bb6._0x35b301,_0xd081f2-_0x4c4bb6._0x1f5370,_0x17c8fe);}return defineTool({'name':_0x35e2a3(0x248,_0x4b8bb4._0x3db00d,_0x4b8bb4._0x337f66,0x3db),'description':_0x268335,'inputSchema':{'type':_0x35e2a3(_0x4b8bb4._0x185b41,_0x4b8bb4._0x2672b1,0x40f,0x38e),'properties':{'name':{'type':_0x3f73a6(0x10d,_0x4b8bb4._0x548ab7,0x25c,0x97)},'args':{'type':_0x3f73a6(_0x4b8bb4._0x4bd564,_0x4b8bb4._0x1414c8,0xc5,0x4)}},'required':[_0x3f73a6(-_0x4b8bb4._0x5b1924,0xe,-_0x4b8bb4._0x458bea,-_0x4b8bb4._0x5c3337)]},async *'execute'(_0xd582c4){const _0x58decc={_0x2dfd02:0x244,_0x4fa170:0xa6},_0x318b1d={_0x4c0a1e:0x5,_0x54a8ba:0x119,_0x1f3fbe:0xfa};function _0x1f1316(_0x160749,_0x52061d,_0x13c503,_0x54be99){return _0x3f73a6(_0x13c503- -_0x318b1d._0x4c0a1e,_0x52061d,_0x13c503-_0x318b1d._0x54a8ba,_0x54be99-_0x318b1d._0x1f3fbe);}const _0x596b55=_0xe1949f['get'](_0xd582c4[_0x1f1316(0x16,0xd3,-0x14,_0x479e82._0x10147f)]);if(!_0x596b55){const _0x12d203=Array[_0x1f1316(_0x479e82._0x5772eb,_0x479e82._0x31ed9b,_0x479e82._0x48b8e8,_0x479e82._0x6bea97)](_0xe1949f['keys']())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0xd582c4['name']+'\x27\x20not\x20found.\x20Available\x20commands:\x20'+_0x12d203,{'name':_0xd582c4[_0x461f1c(0x235,_0x479e82._0x202825,_0x479e82._0x20087f,_0x479e82._0x4a0803)]});}const _0x4ca242=await _0x28d765[_0x461f1c(0x2b6,0x285,0x2dc,0x190)](_0x596b55),_0x4c629a=_0xd582c4[_0x461f1c(0x464,0x48f,0x3a5,0x53a)]??'',_0x15733e=renderCommandInstructions({'instructions':_0x4ca242[_0x461f1c(0x233,0x2de,_0x479e82._0x4cc310,_0x479e82._0x51756c)],'argumentsText':_0x4c629a,'argumentNames':_0x4ca242[_0x461f1c(_0x479e82._0x217a55,_0x479e82._0x336cc9,0x45c,_0x479e82._0x1a6289)]});function _0x461f1c(_0x170f07,_0x3e797c,_0x52d376,_0xdad4e3){return _0x3f73a6(_0x170f07-_0x58decc._0x2dfd02,_0x52d376,_0x52d376-0x11d,_0xdad4e3-_0x58decc._0x4fa170);}return yield createToolOutput(_0x15733e,{'id':_0x4ca242['id'],'name':_0x4ca242[_0x1f1316(-_0x479e82._0x3ceeb5,-_0x479e82._0x62999c,-0x14,_0x479e82._0xd2e861)],'path':_0x596b55['source'][_0x461f1c(_0x479e82._0x58c3eb,_0x479e82._0x2d7d1b,_0x479e82._0x5638ca,_0x479e82._0x49e5b2)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x2fd670,rename as _0x4139db,stat as _0x4bd0a3,writeFile as _0x303aec}from'fs/promises';import*as _0x1192c7 from'path';function _0x1343ee(_0x3c3801,_0x5d0c2b,_0x867222,_0xa597){return _0x1358(_0x3c3801- -0x148,_0x5d0c2b);}function detectEol(_0x4d763a){const _0x38408c={_0x155200:0x3bc,_0x36da51:0x1d6,_0x1e12b5:0x2d2,_0x2a4f87:0x4a,_0x33102b:0x134,_0xc6bd54:0xc8,_0x1722bb:0x2aa,_0x1a1148:0x2a2},_0x324865={_0x100133:0x128},_0x5736df={_0x4e8109:0x105};function _0x2fd3be(_0x3cbdfe,_0x4b34f9,_0x56d9fd,_0x5c4354){return _0x1343ee(_0x5c4354-0x1be,_0x4b34f9,_0x56d9fd-0x159,_0x5c4354-_0x5736df._0x4e8109);}function _0x1084a3(_0x3b909a,_0x440393,_0x2c4b96,_0x31f4d5){return _0x1343ee(_0x440393- -_0x324865._0x100133,_0x3b909a,_0x2c4b96-0x7a,_0x31f4d5-0x4b);}return/\r\n/[_0x2fd3be(_0x38408c._0x155200,_0x38408c._0x36da51,_0x38408c._0x1e12b5,0x2fb)](_0x4d763a['toString'](_0x1084a3(-0x113,-_0x38408c._0x2a4f87,-_0x38408c._0x33102b,_0x38408c._0xc6bd54)))?_0x2fd3be(_0x38408c._0x1722bb,_0x38408c._0x1a1148,0x1aa,0x1fa):'lf';}function normalizeToLf(_0x1ff12b){const _0x415531={_0x57f1b8:0x4e,_0x58aa59:0x61},_0x20113b={_0x214a37:0x1a};function _0xc398c7(_0x3c6db8,_0x17abe5,_0x264f08,_0x474be7){return _0x357fd3(_0x3c6db8-0x13b,_0x17abe5-0x1e7,_0x3c6db8-_0x20113b._0x214a37,_0x264f08);}return _0x1ff12b[_0xc398c7(-_0x415531._0x57f1b8,-0x119,-_0x415531._0x58aa59,-0xf5)](/\r\n/g,'\x0a');}function convertEol(_0x4be9c6,_0x26d384){const _0x23c588={_0x27e534:0x2b2,_0x14c5ab:0x3e,_0x3f8b91:0x18},_0x8e5f98={_0x30b508:0x35,_0x5f4849:0x330},_0x3f7aac={_0x4d73ac:0xb3};function _0x2bc54a(_0x3f2da5,_0x2105b6,_0x160d5e,_0x2ebbf0){return _0x1343ee(_0x2105b6- -_0x3f7aac._0x4d73ac,_0x3f2da5,_0x160d5e-0x110,_0x2ebbf0-0x19f);}function _0x4d8f9c(_0x44369b,_0x28bc69,_0x3374fb,_0x47255d){return _0x357fd3(_0x44369b-_0x8e5f98._0x30b508,_0x28bc69-0x182,_0x28bc69-_0x8e5f98._0x5f4849,_0x44369b);}return _0x26d384===_0x4d8f9c(0x36f,0x367,_0x23c588._0x27e534,0x321)?_0x4be9c6[_0x2bc54a(-0x3d,-0x116,-_0x23c588._0x14c5ab,_0x23c588._0x3f8b91)](/\n/g,'\x0d\x0a'):_0x4be9c6;}async function atomicWrite(_0x14ebc0,_0x264cd8){const _0x9e6748={_0x634a6c:0x16d,_0x4699bf:0x35,_0x51c5e1:0xe5,_0x442ab0:0xf7,_0x36f601:0x435,_0x2b1969:0x123,_0x44629d:0x135,_0x4bb528:0xef},_0x46b610={_0x313116:0x24},_0x16cad0={_0x25c5c3:0x5,_0x16b5ad:0x10b},_0x43e659=_0x1192c7['dirname'](_0x14ebc0),_0x58a77b=_0x1192c7[_0x35445e(-0xd1,-_0x9e6748._0x634a6c,-0xff,-0x52)](_0x43e659,'.tmp.'+_0x1192c7[_0x2ec465(0x450,0x374,0x45f,0x518)](_0x14ebc0)+'.'+Date[_0x35445e(-0x7f,-_0x9e6748._0x4699bf,-_0x9e6748._0x51c5e1,-_0x9e6748._0x442ab0)]()+'.'+Math[_0x2ec465(0x42d,0x539,0x478,_0x9e6748._0x36f601)]()[_0x35445e(-0xb,_0x9e6748._0x2b1969,0xe0,_0x9e6748._0x44629d)](0x24)[_0x35445e(0x61,-0x75,_0x9e6748._0x4bb528,0x107)](0x2));await _0x303aec(_0x58a77b,_0x264cd8);function _0x35445e(_0x24e1eb,_0x59f60a,_0x46f7be,_0x4193d1){return _0x357fd3(_0x24e1eb-0xe1,_0x59f60a-_0x16cad0._0x25c5c3,_0x24e1eb- -_0x16cad0._0x16b5ad,_0x4193d1);}function _0x2ec465(_0x4e9ebd,_0x2a5bf9,_0x5a8c10,_0xa722f0){return _0x1343ee(_0x5a8c10-0x454,_0xa722f0,_0x5a8c10-0x127,_0xa722f0-_0x46b610._0x313116);}await _0x4139db(_0x58a77b,_0x14ebc0);}function sha256(_0x5ec71d){const _0x552382={_0x44e6f4:0x52b,_0x497fa0:0x572,_0x56cced:0x244,_0x2ace89:0x3a0,_0x79b23d:0xf7,_0x5ede8d:0x15},_0x11d325={_0x445a78:0x1e4,_0x5eb139:0x388},_0x2cbbe0={_0x5772c3:0xa5};function _0x4bf512(_0xb32334,_0x14db39,_0x7b598b,_0x5c466a){return _0x357fd3(_0xb32334-0xf,_0x14db39-_0x2cbbe0._0x5772c3,_0x14db39- -0x3f,_0xb32334);}function _0xfe9efe(_0x4d7027,_0x56a718,_0x41e795,_0x1ba1ac){return _0x357fd3(_0x4d7027-_0x11d325._0x445a78,_0x56a718-0x1e7,_0x56a718-_0x11d325._0x5eb139,_0x4d7027);}return createHash(_0xfe9efe(_0x552382._0x44e6f4,0x4bb,_0x552382._0x497fa0,0x5d8))[_0xfe9efe(_0x552382._0x56cced,0x34b,0x36f,_0x552382._0x2ace89)](_0x5ec71d)['digest'](_0x4bf512(-_0x552382._0x79b23d,-0x2a,_0x552382._0x5ede8d,-0xeb));}function countLines(_0x5650f2){const _0x5c292b={_0x42b63b:0x27f,_0x5e2c4a:0x3ef,_0x4a5494:0x2cc},_0x37cb47={_0x56532d:0x356};function _0x3bb0dc(_0x16dddf,_0x3a54bb,_0x1e35ed,_0x21a2df){return _0x357fd3(_0x16dddf-0x11a,_0x3a54bb-0xe4,_0x1e35ed-0x234,_0x16dddf);}function _0x5f228e(_0x32ff9a,_0x455181,_0x171021,_0x5e0ad8){return _0x357fd3(_0x32ff9a-0x1c7,_0x455181-0x117,_0x5e0ad8-_0x37cb47._0x56532d,_0x32ff9a);}const _0x2ff48e=_0x5650f2[_0x5f228e(0x3c1,0x3a5,_0x5c292b._0x42b63b,0x2ee)](/\n$/,'');return _0x2ff48e['length']===0x0?0x0:_0x2ff48e[_0x5f228e(0x2c7,0x1f5,_0x5c292b._0x5e2c4a,_0x5c292b._0x4a5494)]('\x0a')['length'];}function calculateLineNumbers(_0x229d7e,_0x2c8491,_0x20a273,_0xc3b1a6){const _0x39d250={_0x3394d3:0x420,_0x4df4ed:0x52f,_0x2b5558:0x371},_0x1ab826={_0x16b6b5:0x1d2,_0x5bbc55:0x4c,_0x385547:0x2ce},_0x212ed9={_0x583716:0x30d,_0x117207:0x65,_0x35455f:0x161};function _0x1163d6(_0x49a4d4,_0x5f21ea,_0x312ff7,_0x297d7e){return _0x1343ee(_0x297d7e-_0x212ed9._0x583716,_0x49a4d4,_0x312ff7-_0x212ed9._0x117207,_0x297d7e-_0x212ed9._0x35455f);}const _0x5b6f6b=_0x229d7e[_0x1163d6(0x59a,_0x39d250._0x3394d3,_0x39d250._0x4df4ed,0x47e)](0x0,_0xc3b1a6)[_0x3ee8cc(_0x39d250._0x2b5558,0x2a3,0x226,0x244)]('\x0a')['length'];function _0x3ee8cc(_0x25490c,_0x4eca66,_0x31a8a9,_0x2c6cd2){return _0x357fd3(_0x25490c-_0x1ab826._0x16b6b5,_0x4eca66-_0x1ab826._0x5bbc55,_0x2c6cd2-_0x1ab826._0x385547,_0x25490c);}const _0x11725e=countLines(_0x2c8491),_0x599bc3=countLines(_0x20a273);return{'oldStartLine':_0x5b6f6b,'oldEndLine':_0x5b6f6b+_0x11725e-0x1,'newStartLine':_0x5b6f6b,'newEndLine':_0x5b6f6b+_0x599bc3-0x1,'oldLineCount':_0x11725e,'newLineCount':_0x599bc3};}function createFileEditTool(_0xca634d={}){const _0xef7af8={_0x40012a:0x36e,_0x20c328:0x183,_0x636281:0x22a,_0x2ded2c:0x339,_0x15d76c:0x17b,_0x589d9c:0x2c9,_0x20ae36:0x5a,_0x9caf3e:0xeb,_0x17caf0:0x33,_0x5936e5:0x313,_0x1d1e62:0x216,_0x860a6d:0x30f,_0x591be7:0x2db,_0xe43d93:0x337,_0x586512:0x322,_0xf7e187:0x22f,_0x326b6e:0x30e,_0x1eab74:0x211,_0x2ab20c:0x20e,_0x3a16f0:0xd6,_0x1c2bf0:0x168,_0x12527f:0x14f,_0x531351:0x2ad,_0x4e77cc:0x136,_0x1256a9:0x16c,_0x5ce487:0x14a,_0x1aeedf:0x11a,_0x4e1db5:0x101},_0x443d65={_0x5ca46f:0x3da,_0x207849:0x363,_0x4241db:0x259,_0x4dad74:0x11e,_0x9ba17a:0x258,_0x3be7b1:0x381,_0x16bca5:0x4ed,_0x5c217e:0x39e,_0x1ff60d:0x1d,_0x2e7555:0x17b,_0x557a4f:0xd8,_0x58c01e:0x1f8,_0x61c770:0x2cf,_0x19458a:0x20a,_0xbc556:0x448,_0xf5c2ec:0xd0,_0x5cb21b:0x17e,_0x4091cf:0x1b6,_0x321036:0x2cf,_0x4faabb:0x2aa,_0x40c68d:0x212,_0x18eab1:0x328,_0x4f9fb3:0x349,_0x5035b3:0x3d4,_0x3ac184:0x21b,_0x1b06e8:0x33c,_0x117db7:0x21d,_0x37cd60:0x2a2,_0x314cf0:0x3e0,_0x52f0e0:0x410,_0x4c40f3:0x532,_0x3a9b39:0x176,_0x279642:0x2d8,_0x246f20:0x21b,_0x357aaa:0x18a,_0x5222f0:0x18e,_0x3cdbbc:0x13a,_0x226c70:0xcb,_0x44f75f:0x1e5,_0x14960b:0x16d,_0x16e31a:0x1e5,_0x4aac37:0x228,_0x321024:0x2c0,_0x43d0e9:0x34f,_0x5cc0db:0x26f,_0x3a9267:0x132,_0x586eaf:0x14b,_0x37653f:0x27e,_0x1a113b:0x150},_0x50e8ff={_0x5e0bd1:0x184,_0x2a0831:0x64},_0x2cd9ce={_0x3b0711:0x9c},_0x4d861d={_0x2feab2:0x151,_0x3da771:0xcd},_0xbc707d={_0x290601:0x37},_0x4ed5b2=_0x1192c7[_0x65ed95(_0xef7af8._0x40012a,_0xef7af8._0x20c328,0x377,_0xef7af8._0x636281)](_0xca634d[_0x65ed95(_0xef7af8._0x2ded2c,_0xef7af8._0x15d76c,0x2f8,_0xef7af8._0x589d9c)]??process[_0x59bdc4(_0xef7af8._0x20ae36,-0x60,-_0xef7af8._0x9caf3e,-_0xef7af8._0x17caf0)]()),_0x1a7c5f=(_0xca634d[_0x59bdc4(-_0xef7af8._0x5936e5,-0x11e,-_0xef7af8._0x1d1e62,-0x134)]??[])[_0x59bdc4(-0x330,-_0xef7af8._0x860a6d,-0x1ea,-0x2a2)](_0x52acba=>_0x1192c7[_0x65ed95(0x147,0x310,0x1f6,0x22a)](_0x52acba)),_0xe69bd7=_0xca634d[_0x59bdc4(-_0xef7af8._0x591be7,-0xca,-0x1f2,-0x2a6)]??'FileEdit';function _0x59bdc4(_0x29c0bc,_0x2bf805,_0x4c9a55,_0x2a39b9){return _0x1343ee(_0x4c9a55- -0x170,_0x2bf805,_0x4c9a55-0x12d,_0x2a39b9-_0xbc707d._0x290601);}function _0x65ed95(_0x560dbf,_0x1cd651,_0x25f346,_0x2daec1){return _0x1343ee(_0x2daec1-0x1c2,_0x25f346,_0x25f346-_0x4d861d._0x2feab2,_0x2daec1-_0x4d861d._0x3da771);}return defineTool({'name':_0xe69bd7,'description':_0x65ed95(_0xef7af8._0xe43d93,0x124,_0xef7af8._0x586512,_0xef7af8._0xf7e187),'inputSchema':{'type':_0x65ed95(0x122,_0xef7af8._0x326b6e,_0xef7af8._0x1eab74,_0xef7af8._0x2ab20c),'properties':{'filePath':{'type':_0x59bdc4(-0x14,-0x8a,-_0xef7af8._0x3a16f0,-_0xef7af8._0x1c2bf0)},'oldText':{'type':_0x65ed95(_0xef7af8._0x12527f,0x1f3,0x1e3,0x25c)},'newText':{'type':'string'},'dryRun':{'type':_0x65ed95(0x2a6,0x430,0x2f4,0x2ee)}},'required':[_0x65ed95(_0xef7af8._0x531351,0x84,_0xef7af8._0x4e77cc,_0xef7af8._0x1256a9),_0x59bdc4(-_0xef7af8._0x5ce487,-0x155,-0x151,-0x24b),_0x59bdc4(_0xef7af8._0x1aeedf,-_0xef7af8._0x4e1db5,-0x30,-0x78)]},async *'execute'(_0x5bb20e){const _0x444a58=resolveAllowedPath(_0x4ed5b2,_0x1a7c5f,_0x5bb20e[_0xaa83a9(0x254,0x109,0x108,0x34)]);await assertWorkspaceFile(_0x444a58);const _0x28ac73=await _0x4bd0a3(_0x444a58),_0x4ffe8f=await _0x2fd670(_0x444a58),_0x135571=detectEol(_0x4ffe8f),_0x573078=normalizeToLf(_0x4ffe8f[_0x2fe395(0x3a9,_0x443d65._0x5ca46f,_0x443d65._0x207849,0x364)]('utf8')),_0x7dd6d5=normalizeToLf(_0x5bb20e[_0xaa83a9(_0x443d65._0x4241db,_0x443d65._0x4dad74,0x17d,_0x443d65._0x9ba17a)]),_0x2150c7=normalizeToLf(_0x5bb20e[_0x2fe395(_0x443d65._0x3be7b1,_0x443d65._0x16bca5,_0x443d65._0x5c217e,0x319)]);function _0x2fe395(_0x498c76,_0x54f391,_0x20ac4e,_0x10193a){return _0x65ed95(_0x498c76-0xdd,_0x54f391-0x12e,_0x10193a,_0x20ac4e-_0x2cd9ce._0x3b0711);}const _0x55e5f6=_0x573078[_0xaa83a9(_0x443d65._0x1ff60d,_0x443d65._0x2e7555,_0x443d65._0x557a4f,_0x443d65._0x58c01e)](_0x7dd6d5);if(_0x55e5f6===-0x1){const _0x14d203=_0x7dd6d5[_0xaa83a9(0x3d2,0x2c1,_0x443d65._0x61c770,0x210)](0x0,0x64)[_0x2fe395(0x244,0x2e1,0x1fb,_0x443d65._0x19458a)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x2fe395(0x407,0x2ba,0x3f5,_0x443d65._0xbc556)+_0x14d203+(_0x7dd6d5[_0xaa83a9(_0x443d65._0xf5c2ec,0x10b,_0x443d65._0x5cb21b,0x1be)]>0x64?'...':'')+'\x22',{'filePath':_0x5bb20e['filePath']});}const _0x5b7828=_0x573078[_0xaa83a9(0x1ff,_0x443d65._0x4091cf,_0x443d65._0x321036,_0x443d65._0x4091cf)](0x0,_0x55e5f6)+_0x2150c7+_0x573078[_0xaa83a9(0x212,_0x443d65._0x4faabb,0x2cf,0x339)](_0x55e5f6+_0x7dd6d5['length']),_0x128ef4=convertEol(_0x5b7828,_0x135571),_0x2f1f32=Buffer[_0x2fe395(0x40f,_0x443d65._0x40c68d,_0x443d65._0x18eab1,_0x443d65._0x4f9fb3)](_0x128ef4,_0x2fe395(_0x443d65._0x5035b3,_0x443d65._0x3ac184,_0x443d65._0x1b06e8,0x2bb)),_0x48969d=sha256(_0x4ffe8f),_0xc1d77d=sha256(_0x2f1f32),_0x1eb0fc=_0x48969d===_0xc1d77d;function _0xaa83a9(_0x11fd73,_0x6b7a2c,_0x160a98,_0x2b9d73){return _0x65ed95(_0x11fd73-0x81,_0x6b7a2c-_0x50e8ff._0x5e0bd1,_0x2b9d73,_0x160a98- -_0x50e8ff._0x2a0831);}const _0x35de80=_0x5bb20e[_0xaa83a9(_0x443d65._0x117db7,0x252,_0x443d65._0x37cd60,0x239)]??![];return!_0x35de80&&!_0x1eb0fc&&await atomicWrite(_0x444a58,_0x2f1f32),yield createToolOutput(_0x1eb0fc?_0x2fe395(0x402,_0x443d65._0x314cf0,_0x443d65._0x52f0e0,_0x443d65._0x4c40f3):_0x35de80?_0x2fe395(0x1a1,0x185,0x264,_0x443d65._0x3a9b39):_0xaa83a9(_0x443d65._0x279642,0x215,_0x443d65._0x246f20,_0x443d65._0x357aaa),{'filePath':_0x5bb20e[_0x2fe395(0x2b7,0xd2,0x208,_0x443d65._0x5222f0)],'resolvedPath':_0x444a58,'created':_0x28ac73[_0xaa83a9(_0x443d65._0x3cdbbc,_0x443d65._0x226c70,_0x443d65._0x44f75f,0x20d)]['toISOString'](),'modified':_0x28ac73[_0x2fe395(_0x443d65._0x14960b,_0x443d65._0x16e31a,0x297,_0x443d65._0x4aac37)][_0xaa83a9(_0x443d65._0x321024,_0x443d65._0x43d0e9,_0x443d65._0x5cc0db,_0x443d65._0x3a9267)](),'size':_0x28ac73[_0x2fe395(0x36c,0x2b4,0x3c1,0x346)],'eol':_0x135571,'oldTextLength':_0x7dd6d5[_0xaa83a9(0x92,_0x443d65._0x586eaf,_0x443d65._0x5cb21b,0x18f)],'newTextLength':_0x2150c7[_0x2fe395(0x2d0,0x320,_0x443d65._0x37653f,0x1db)],'bytesWritten':_0x1eb0fc||_0x35de80?0x0:_0x2f1f32[_0xaa83a9(0x272,0x24b,0x17e,_0x443d65._0x1a113b)],'beforeSha':_0x48969d,'afterSha':_0xc1d77d,'dryRun':_0x35de80,'noChange':_0x1eb0fc,'lineNumbers':calculateLineNumbers(_0x573078,_0x7dd6d5,_0x2150c7,_0x55e5f6)}),void 0x0;}});}import{mkdir as _0x2f56b0,rename as _0x84194b,stat as _0x589c7f,writeFile as _0x5d8be8}from'fs/promises';import*as _0x4e1f2e from'path';async function atomicWrite2(_0x22386e,_0x1cc145){const _0x155223={_0xf39b29:0x5f4,_0x12e29b:0x678,_0x498ac2:0x56d,_0x3da115:0x5c3,_0x400768:0x470,_0x41ef4f:0x50b,_0x1d9bee:0x44b,_0x5eab0e:0x3dc,_0x1f9786:0x3e6,_0x5899f6:0x2cd,_0x4207fa:0x3c2},_0x2c53d1={_0x1824e0:0x67,_0x30b738:0x445},_0x415537={_0x4641bc:0xe},_0x1900a2=_0x4e1f2e[_0x82aa59(0x5a9,0x64e,_0x155223._0xf39b29,_0x155223._0x12e29b)](_0x22386e);await _0x2f56b0(_0x1900a2,{'recursive':!![]});const _0x4196aa=_0x4e1f2e[_0x82aa59(_0x155223._0x498ac2,_0x155223._0x3da115,0x47f,0x589)](_0x1900a2,_0x3bf9ce(0x55f,0x43a,0x364,_0x155223._0x400768)+_0x4e1f2e[_0x82aa59(_0x155223._0x41ef4f,0x369,_0x155223._0x1d9bee,_0x155223._0x5eab0e)](_0x22386e)+'.'+Date['now']()+'.'+Math[_0x3bf9ce(0x514,_0x155223._0x1f9786,_0x155223._0x5899f6,_0x155223._0x4207fa)]()['toString'](0x24)[_0x3bf9ce(0x41b,0x533,0x40d,0x575)](0x2));await _0x5d8be8(_0x4196aa,_0x1cc145);function _0x3bf9ce(_0x2fde32,_0x28fd3b,_0x330e16,_0x39e9d3){return _0x1343ee(_0x28fd3b-0x3c2,_0x2fde32,_0x330e16-_0x415537._0x4641bc,_0x39e9d3-0x88);}function _0x82aa59(_0x373397,_0x22e904,_0x498c5a,_0x510313){return _0x357fd3(_0x373397-_0x2c53d1._0x1824e0,_0x22e904-0x1f,_0x498c5a-_0x2c53d1._0x30b738,_0x373397);}await _0x84194b(_0x4196aa,_0x22386e);}function createFileNewTool(_0x1cd24b={}){const _0x5ab836={_0x1d0c72:0xb5,_0x4fad2a:0x2c6,_0x1c4aea:0x197,_0x248ee4:0x69,_0x1234ff:0x4ce,_0x16f850:0x5c9,_0x52d250:0x5b3,_0x28644f:0x46f,_0x4c77fd:0x57b,_0x47fc06:0x465,_0x26cf71:0x95,_0x2cc401:0xa1,_0x38648c:0x34d,_0x198532:0x25f,_0x3df492:0x6b,_0x243cee:0x299,_0x383399:0x15d,_0x3e9e09:0x77,_0xb4256b:0x53,_0xc79ed7:0x386,_0xd4657f:0x2ef,_0x335154:0x7b,_0x4a1d61:0x1c9,_0x2557d4:0xd9,_0x474b6f:0x17b,_0x318488:0x349,_0x55b926:0x3dc},_0x2c4250={_0x32fd25:0x558,_0x568aeb:0x4a9,_0x45f32e:0x3a6,_0x355c93:0x6,_0x29b349:0x2d,_0x1c947b:0x13c,_0x2d3e8d:0x588,_0x5613e8:0xb6,_0x2e5a3e:0x294,_0x19446c:0xc3,_0x1282fc:0x60b,_0xb8eec6:0x4c8},_0x488ad2={_0x227da1:0x133,_0x3417e4:0x48},_0xe4ab74={_0x3f70f9:0x145,_0x428a0f:0x134},_0x855e18={_0x3250cf:0x3c7,_0x5648b5:0x67},_0x224d55=_0x4e1f2e[_0xbbf8d8(_0x5ab836._0x1d0c72,_0x5ab836._0x4fad2a,_0x5ab836._0x1c4aea,_0x5ab836._0x248ee4)](_0x1cd24b[_0x2987df(_0x5ab836._0x1234ff,_0x5ab836._0x16f850,_0x5ab836._0x52d250,_0x5ab836._0x28644f)]??process[_0x2987df(0x44c,_0x5ab836._0x4c77fd,_0x5ab836._0x47fc06,0x452)]());function _0x2987df(_0x564d01,_0xc3636f,_0x1cd5ce,_0x4bb0d1){return _0x1343ee(_0x564d01-_0x855e18._0x3250cf,_0xc3636f,_0x1cd5ce-0x183,_0x4bb0d1-_0x855e18._0x5648b5);}const _0x303feb=(_0x1cd24b[_0xbbf8d8(-_0x5ab836._0x26cf71,-0x45,0x89,_0x5ab836._0x2cc401)]??[])[_0x2987df(_0x5ab836._0x38648c,0x3a7,_0x5ab836._0x198532,0x34d)](_0x56a937=>_0x4e1f2e[_0x2987df(0x42f,0x395,0x3bc,0x4fa)](_0x56a937)),_0x293004=_0x1cd24b[_0xbbf8d8(-0x97,-_0x5ab836._0x3df492,0xad,0x78)]??_0xbbf8d8(0x269,_0x5ab836._0x243cee,_0x5ab836._0x383399,0x1b3);function _0xbbf8d8(_0x3b9cc7,_0x1ceeed,_0x4598ff,_0x1ebc10){return _0x357fd3(_0x3b9cc7-0x142,_0x1ceeed-_0xe4ab74._0x3f70f9,_0x4598ff-_0xe4ab74._0x428a0f,_0x1ceeed);}return defineTool({'name':_0x293004,'description':_0xbbf8d8(-_0x5ab836._0x3e9e09,-_0x5ab836._0xb4256b,0xc0,0xeb),'inputSchema':{'type':_0x2987df(0x413,0x43c,_0x5ab836._0xc79ed7,_0x5ab836._0xd4657f),'properties':{'filePath':{'type':'string'},'content':{'type':_0xbbf8d8(_0x5ab836._0x335154,0x1f5,_0x5ab836._0x4a1d61,0x13e)}},'required':[_0xbbf8d8(0x1cc,0x56,_0x5ab836._0x2557d4,_0x5ab836._0x474b6f),_0xbbf8d8(_0x5ab836._0x318488,0x1f6,0x300,_0x5ab836._0x55b926)]},async *'execute'(_0x3fe9be){const _0x519151={_0x58f31f:0x1ae},_0x19a010=resolveAllowedPath(_0x224d55,_0x303feb,_0x3fe9be[_0x4eede4(0x4a4,_0x2c4250._0x32fd25,0x43a,_0x2c4250._0x568aeb)]),_0x5c3cc6=await _0x589c7f(_0x19a010)[_0x2d1914(-0x266,-0x140,-0x240,-0x1b7)](()=>!![])[_0x2d1914(-0x1f8,-_0x2c4250._0x45f32e,-0x276,-0x1d7)](()=>![]),_0x222869=Buffer['from'](_0x3fe9be[_0x2d1914(-0x104,-_0x2c4250._0x355c93,-_0x2c4250._0x29b349,-_0x2c4250._0x1c947b)],'utf8');await atomicWrite2(_0x19a010,_0x222869);function _0x2d1914(_0x2b82fe,_0x3a41ff,_0x5dba07,_0xdf5093){return _0x2987df(_0x5dba07- -0x5c5,_0xdf5093,_0x5dba07-_0x519151._0x58f31f,_0xdf5093-0xf0);}function _0x4eede4(_0x5cc122,_0x422ef4,_0x377654,_0x5baa90){return _0x2987df(_0x5cc122-_0x488ad2._0x227da1,_0x5baa90,_0x377654-_0x488ad2._0x3417e4,_0x5baa90-0x45);}return yield createToolOutput('File\x20written\x20at\x20'+_0x3fe9be[_0x4eede4(0x4a4,0x588,_0x2c4250._0x2d3e8d,0x3d8)]+'.',{'filePath':_0x3fe9be['filePath'],'resolvedPath':_0x19a010,'bytes':_0x222869['length'],'lines':_0x3fe9be['content']['split'](/\r?\n/)[_0x2d1914(-_0x2c4250._0x5613e8,-_0x2c4250._0x2e5a3e,-0x1de,-_0x2c4250._0x19446c)],'created':new Date()[_0x4eede4(_0x2c4250._0x1282fc,_0x2c4250._0xb8eec6,0x4ed,0x6a8)](),'overwritten':_0x5c3cc6}),void 0x0;}});}import{readFile as _0x43cdd8,stat as _0x812dbd}from'fs/promises';import*as _0x559911 from'path';function stripUtfBom(_0x293c54){const _0x33601a={_0x2bcd51:0x3d2,_0x4ca4d5:0x1f9,_0x375321:0x2d4,_0x270f4e:0x30},_0x2c312d={_0x40d082:0x407};function _0x5aaf7d(_0x36ed14,_0x25b455,_0x1a8741,_0x49ee02){return _0x1343ee(_0x25b455-_0x2c312d._0x40d082,_0x49ee02,_0x1a8741-0xaa,_0x49ee02-0x30);}function _0x54f19d(_0xb4f294,_0x305b45,_0x65f18e,_0x445560){return _0x357fd3(_0xb4f294-0x151,_0x305b45-0x1a9,_0x305b45- -0x23a,_0x65f18e);}return _0x293c54[_0x54f19d(-_0x33601a._0x2bcd51,-0x292,-_0x33601a._0x4ca4d5,-_0x33601a._0x375321)](0x0)===0xfeff?_0x293c54[_0x54f19d(-0xf6,-0xce,_0x33601a._0x270f4e,0x67)](0x1):_0x293c54;}function clampLine(_0x25ca53,_0x1c201b){const _0x505430={_0x181cf2:0x2e4,_0x487781:0x507,_0x15ccc8:0x3fa,_0x12a5ba:0x23c,_0x24da90:0x25b,_0x2861c0:0x390,_0x43deb0:0x482,_0x38e4c7:0x349,_0x120ac1:0x2c9,_0x89e0cb:0x184},_0x1a2534={_0x15a46d:0x331,_0xf5365c:0x7b};function _0xe22f40(_0x5cce37,_0xb6e26e,_0x372e20,_0x4e981f){return _0x1343ee(_0x372e20-0x342,_0x5cce37,_0x372e20-0x105,_0x4e981f-0x53);}function _0x54023e(_0x6805f5,_0x2f5c30,_0xfa3b83,_0x5e380c){return _0x1343ee(_0x2f5c30-_0x1a2534._0x15a46d,_0x5e380c,_0xfa3b83-_0x1a2534._0xf5365c,_0x5e380c-0x89);}if(!Number[_0xe22f40(_0x505430._0x181cf2,_0x505430._0x487781,_0x505430._0x15ccc8,0x2ca)](_0x25ca53))return 0x1;return Math[_0x54023e(0x427,0x30f,_0x505430._0x12a5ba,_0x505430._0x24da90)](0x1,Math[_0xe22f40(_0x505430._0x2861c0,_0x505430._0x43deb0,_0x505430._0x38e4c7,0x3d6)](Math[_0x54023e(0x274,_0x505430._0x120ac1,_0x505430._0x89e0cb,0x318)](_0x25ca53),_0x1c201b));}function createFileReadTool(_0x3fa5cc={}){const _0x47783f={_0xdccea1:0x162,_0x53574b:0x1fe,_0x1f13cf:0x162,_0x2f29cd:0xc0,_0x426158:0xfd,_0x59e4e4:0x18,_0x25325e:0x183,_0x3c89c6:0x17e,_0x539ec9:0x66,_0x21db96:0x43,_0x526dca:0xc5,_0x3c582e:0x14a,_0xbe4c79:0x26c,_0x14f766:0xfc,_0x222e90:0xd9,_0x21c5c5:0x171,_0x2ae0be:0x352,_0x7047a0:0x225,_0x481644:0x4e,_0x2103d8:0x6e,_0x828323:0x14},_0x5a0668={_0x28c824:0xbf,_0x17a19a:0x7,_0x5a95dd:0x5e,_0x19aac5:0xe4,_0x1bfc5c:0xb8,_0xd971f4:0xde,_0x792418:0x111,_0x3b592b:0xbc,_0x332bd5:0x242,_0x17cf03:0x1ee,_0x4fb9e9:0x2fe,_0x4ac248:0x1a2,_0x349d76:0xac,_0x4b1198:0x54,_0x7b8b47:0x2d9,_0x15cbe8:0x197,_0x118f69:0xc,_0x4b67f2:0x273,_0x52e7ce:0x226,_0x500933:0x2e5,_0x53fed7:0x91,_0x2fee4f:0x9c,_0x4a685a:0x73,_0x4feb09:0x35,_0x2001f3:0x2e,_0x3392aa:0x16f,_0x460781:0x181,_0x4578ad:0x252,_0x22d100:0x258,_0xe434e9:0x339,_0x169bdb:0xab,_0x1245c7:0x117,_0x16755e:0x4f,_0xb3b7fd:0xee,_0x4df6c7:0x179,_0x22f7af:0x20,_0x4c1b56:0x1a5},_0x566d4e={_0x1e99ba:0x1eb,_0xad7322:0x191},_0x28de58={_0x1b8b48:0x151,_0x3a83f5:0x7e},_0x1f3333=_0x559911['resolve'](_0x3fa5cc['defaultCwd']??process[_0x533ca0(_0x47783f._0xdccea1,_0x47783f._0x53574b,_0x47783f._0x1f13cf,0x251)]()),_0x2dcb92=(_0x3fa5cc[_0x533ca0(-_0x47783f._0x2f29cd,_0x47783f._0x426158,0x37,-_0x47783f._0x59e4e4)]??[])[_0x533ca0(0x154,_0x47783f._0x25325e,0x63,0xd9)](_0x27eace=>_0x559911[_0x533ca0(0xa0,0x108,0x145,0x28c)](_0x27eace));function _0x533ca0(_0x1bb070,_0x1b8cd7,_0x564c73,_0x4a6541){return _0x1343ee(_0x564c73-0xdd,_0x1bb070,_0x564c73-_0x28de58._0x1b8b48,_0x4a6541-_0x28de58._0x3a83f5);}function _0x23b704(_0x1c6cbd,_0x2c2280,_0x438ab1,_0x48ffa0){return _0x357fd3(_0x1c6cbd-0xdf,_0x2c2280-_0x566d4e._0x1e99ba,_0x1c6cbd- -_0x566d4e._0xad7322,_0x438ab1);}const _0x493f1e=_0x3fa5cc[_0x533ca0(0x7,_0x47783f._0x3c89c6,0x5b,0x43)]??'FileRead';return defineTool({'name':_0x493f1e,'description':_0x23b704(-_0x47783f._0x539ec9,-0x36,-_0x47783f._0x21db96,_0x47783f._0x526dca),'inputSchema':{'type':_0x23b704(-_0x47783f._0x3c582e,-0x191,-0x57,-_0x47783f._0xbe4c79),'properties':{'path':{'type':_0x23b704(-_0x47783f._0x14f766,-_0x47783f._0x222e90,-0x12e,-0x10b)},'lineStart':{'type':_0x533ca0(_0x47783f._0x21c5c5,_0x47783f._0x2ae0be,_0x47783f._0x7047a0,0x1dd)},'lineEnd':{'type':_0x23b704(-_0x47783f._0x481644,_0x47783f._0x2103d8,0xbd,_0x47783f._0x828323)}},'required':['path']},async *'execute'(_0x4648de){const _0x58e460={_0x2b94f0:0x32},_0x4bd626=resolveAllowedPath(_0x1f3333,_0x2dcb92,_0x4648de[_0x21e085(_0x5a0668._0x28c824,-_0x5a0668._0x17a19a,-_0x5a0668._0x5a95dd,-0x54)]);await assertWorkspaceFile(_0x4bd626);const _0x4e7a48=await _0x812dbd(_0x4bd626),_0x25995=await _0x43cdd8(_0x4bd626);function _0x21e085(_0x19e709,_0x2cd8df,_0x1582cf,_0x4e6ca4){return _0x23b704(_0x4e6ca4-0x141,_0x2cd8df-0x87,_0x2cd8df,_0x4e6ca4-0x82);}if(isProbablyBinary(_0x25995))throw new ToolExecutionError(_0x21e085(-_0x5a0668._0x19aac5,-_0x5a0668._0x1bfc5c,-0x7b,0x6b)+_0x4648de[_0x5f501b(0xcd,_0x5a0668._0xd971f4,_0x5a0668._0x792418,_0x5a0668._0x3b592b)],{'path':_0x4648de['path']});function _0x5f501b(_0x5c7cd5,_0x35b063,_0x44138d,_0x4a54a2){return _0x23b704(_0x44138d-0x2a6,_0x35b063-_0x58e460._0x2b94f0,_0x4a54a2,_0x4a54a2-0x186);}let _0x1448b4=_0x25995['toString'](_0x5f501b(0x2ca,_0x5a0668._0x332bd5,_0x5a0668._0x17cf03,_0x5a0668._0x4fb9e9));const _0x55eab0=_0x1448b4[_0x21e085(0x50,-_0x5a0668._0x4ac248,-0x1d,-0xa8)](0x0)===0xfeff;_0x1448b4=stripUtfBom(_0x1448b4);const _0x5ac73c=_0x1448b4['split'](/\r?\n/),_0x2c977c={'path':_0x4648de[_0x21e085(-0x89,0xb7,-_0x5a0668._0x349d76,-_0x5a0668._0x4b1198)],'resolvedPath':_0x4bd626,'created':_0x4e7a48[_0x5f501b(_0x5a0668._0x7b8b47,0x107,_0x5a0668._0x15cbe8,0x223)]['toISOString'](),'modified':_0x4e7a48[_0x5f501b(0x268,_0x5a0668._0x118f69,0x149,0x62)]['toISOString'](),'size':_0x4e7a48[_0x5f501b(0x2c8,0x376,_0x5a0668._0x4b67f2,0x34f)],'encoding':_0x5f501b(_0x5a0668._0x52e7ce,_0x5a0668._0x500933,_0x5a0668._0x17cf03,0xf4),'bomStripped':_0x55eab0,'truncated':![],'totalLines':_0x5ac73c[_0x21e085(_0x5a0668._0x53fed7,_0x5a0668._0x2fee4f,_0x5a0668._0x4a685a,-_0x5a0668._0x4feb09)]};if(_0x4648de[_0x5f501b(_0x5a0668._0x2001f3,0x244,_0x5a0668._0x3392aa,_0x5a0668._0x460781)]!==void 0x0||_0x4648de[_0x21e085(0x1e7,_0x5a0668._0x4578ad,_0x5a0668._0x22d100,0x15b)]!==void 0x0){const _0x241b40=clampLine(_0x4648de[_0x21e085(0xf7,-_0x5a0668._0x17a19a,-0x85,0xa)]??0x1,_0x5ac73c['length']),_0x33fb1c=clampLine(_0x4648de[_0x5f501b(_0x5a0668._0xe434e9,0x1b8,0x2c0,0x197)]??_0x5ac73c['length'],_0x5ac73c['length']),_0x419ec8=Math[_0x5f501b(-0x2f,_0x5a0668._0x169bdb,_0x5a0668._0x1245c7,0x15)](_0x241b40,_0x33fb1c),_0x1804a9=Math[_0x5f501b(0x1fd,-_0x5a0668._0x16755e,_0x5a0668._0xb3b7fd,0x182)](_0x241b40,_0x33fb1c),_0x1cb5ac=_0x5ac73c[_0x5f501b(_0x5a0668._0x4df6c7,0x1d7,0x281,0x161)](_0x419ec8-0x1,_0x1804a9)['map']((_0xf38eda,_0x13b98d)=>_0x419ec8+_0x13b98d+'|'+_0xf38eda)[_0x21e085(0xc7,-_0x5a0668._0x22f7af,-0x7e,-0x16)]('\x0a');return yield createToolOutput(_0x1cb5ac,{..._0x2c977c,'lineRange':{'lineStart':_0x419ec8,'lineEnd':_0x1804a9,'linesTotal':_0x5ac73c[_0x5f501b(0x20d,_0x5a0668._0x4c1b56,0x130,0x70)]}}),void 0x0;}return yield createToolOutput(_0x1448b4,_0x2c977c),void 0x0;}});}import{stat as _0x559b94}from'fs/promises';import*as _0x1e0b4a from'path';import{execSync,spawn as _0x6da36d}from'child_process';import{existsSync}from'fs';import{stat as _0x4c6efb}from'fs/promises';import*as _0x3d4a1a from'os';import*as _0x168a63 from'path';import{rgPath as _0x48fb7f}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0xf173e={_0x31063c:0x39f,_0x330394:0x434,_0x3fbff5:0x3ad,_0x13e996:0x4ca,_0x2ee67a:0x40f,_0x4aef:0x405,_0x571fbb:0x1a1,_0x5ce1ac:0x1b,_0x28fa44:0x3f5,_0x3beca2:0x529,_0x5ee4b1:0x7c,_0x143ee0:0x112,_0x338ce8:0x241,_0x1f957a:0x37,_0x589f4f:0xb1,_0x414830:0x6f,_0x2ad324:0x103,_0x46a15e:0xbb,_0x2bc076:0x2,_0x5bf1c0:0x126,_0x5179c9:0x108,_0x32be2d:0x156,_0x4169b2:0xd7,_0x325418:0x10b,_0x561e10:0x54,_0x279a1d:0x2e0,_0x3f8080:0x1f1,_0x5169ce:0x352,_0x51c27a:0x445,_0x5d0dbe:0x331,_0x3c7680:0x367,_0x54b9e7:0x3b5,_0x2a8cbe:0xc1,_0x7429:0x3e7,_0x585f9d:0x356,_0x306f2f:0x2dd,_0x296888:0x343,_0x463d1f:0x294,_0x29c4cb:0x3e0,_0x1a6dc:0x1aa,_0x1a2d48:0x1a3,_0x71f3d2:0x225,_0x981211:0x1d2,_0x3f253d:0x19,_0x2fad81:0xff,_0x462ea4:0x29f,_0x59612f:0x26a,_0x4ce761:0x354,_0xd9e00b:0x1d9,_0x1c2545:0x25a},_0xad447a={_0x3af56a:0x29b},_0x1f8253={_0x5f1c62:0x7};function _0x203451(_0x1ec1d3,_0x5635d9,_0x15f5af,_0x2eb326){return _0x357fd3(_0x1ec1d3-_0x1f8253._0x5f1c62,_0x5635d9-0xcf,_0x1ec1d3- -0xb4,_0x15f5af);}const _0xf4834e=_0x3d4a1a[_0x2d0451(_0xf173e._0x31063c,_0xf173e._0x330394,_0xf173e._0x3fbff5,_0xf173e._0x13e996)]()===_0x2d0451(0x2ee,_0xf173e._0x2ee67a,_0xf173e._0x4aef,0x360);function _0x2d0451(_0x4957fa,_0x17655e,_0x38a6a9,_0x2394e2){return _0x357fd3(_0x4957fa-0x37,_0x17655e-0x117,_0x17655e-_0xad447a._0x3af56a,_0x4957fa);}const _0xc457c7=_0xf4834e?[_0x168a63[_0x203451(-0x7a,-_0xf173e._0x571fbb,-_0xf173e._0x5ce1ac,0x17)](process['env']['LOCALAPPDATA']||'',_0x2d0451(0x486,_0xf173e._0x28fa44,0x4b1,_0xf173e._0x3beca2),'WinGet',_0x203451(-_0xf173e._0x5ee4b1,0x2b,-0x164,-0x22)),_0x168a63['join'](process[_0x203451(0x2,0x70,_0xf173e._0x143ee0,-0x60)][_0x2d0451(_0xf173e._0x338ce8,0x1fa,0x197,0x149)]||'',_0x203451(_0xf173e._0x1f957a,-_0xf173e._0x589f4f,0x75,0xf3),_0x203451(-_0xf173e._0x414830,-_0xf173e._0x2ad324,-0x137,_0xf173e._0x46a15e)),_0x168a63['join'](process[_0x203451(_0xf173e._0x2bc076,_0xf173e._0x5bf1c0,0x16,0xa9)][_0x203451(-_0xf173e._0x5179c9,-0x1e,-_0xf173e._0x32be2d,-0x1b9)]||'',_0x203451(0x37,-_0xf173e._0x4169b2,-_0xf173e._0x325418,-_0xf173e._0x561e10),_0x2d0451(0x2cc,_0xf173e._0x279a1d,0x276,_0xf173e._0x3f8080))]:[_0x2d0451(_0xf173e._0x5169ce,_0xf173e._0x51c27a,0x301,0x547),_0x2d0451(_0xf173e._0x5d0dbe,_0xf173e._0x3c7680,0x257,_0xf173e._0x54b9e7),_0x203451(_0xf173e._0x2a8cbe,-0x68,0x146,0x111),'/bin/rg'];for(const _0x374d51 of _0xc457c7){if(existsSync(_0x374d51))return _0x374d51;}try{const _0x28b561=_0xf4834e?'where\x20rg':_0x2d0451(0x4bd,_0xf173e._0x7429,_0xf173e._0x585f9d,_0xf173e._0x306f2f),_0x53a337=execSync(_0x28b561,{'encoding':_0x2d0451(_0xf173e._0x296888,0x374,_0xf173e._0x463d1f,_0xf173e._0x29c4cb),'stdio':[_0x2d0451(0x1f6,0x225,_0xf173e._0x1a6dc,_0xf173e._0x1a2d48),_0x2d0451(0x2dd,_0xf173e._0x71f3d2,_0xf173e._0x981211,0x339),_0x203451(_0xf173e._0x3f253d,0xa5,-0xf8,_0xf173e._0x2fad81)]})[_0x2d0451(0x2ca,_0xf173e._0x462ea4,_0xf173e._0x59612f,_0xf173e._0x4ce761)]()[_0x203451(-0x13e,-_0xf173e._0xd9e00b,-_0xf173e._0x1c2545,-0x207)](/\r?\n/)[0x0];if(_0x53a337&&existsSync(_0x53a337))return _0x53a337;}catch{return null;}return null;}async function filepath(){const _0x238290={_0x30ea51:0x13f,_0x52ffc5:0x34,_0x45858f:0x7c};if(cachedRgPath)return cachedRgPath;if(_0x48fb7f&&existsSync(_0x48fb7f))return cachedRgPath=_0x48fb7f,_0x48fb7f;function _0x44a9dd(_0x123468,_0x5c9523,_0x7ba251,_0x3cc980){return _0x1343ee(_0x3cc980- -0x141,_0x5c9523,_0x7ba251-0x8b,_0x3cc980-0x12d);}const _0x1ab41e=findSystemRipgrep();if(!_0x1ab41e)throw new Error(_0x44a9dd(0x136,_0x238290._0x30ea51,-_0x238290._0x52ffc5,_0x238290._0x45858f));return cachedRgPath=_0x1ab41e,_0x1ab41e;}async function*files(_0x1079f2){const _0x35f98e={_0x557e38:0x294,_0x5053a8:0x34f,_0x1d5820:0x358,_0x5eb418:0x418,_0x419cf3:0x2cf,_0x3e640b:0x1e6,_0x542675:0x14d,_0x1fbbae:0x19e,_0x47e154:0x1d5,_0x1b1905:0x2ce,_0x33a390:0x32e,_0x549e5e:0x3ab,_0x400896:0x273,_0x4bdbe0:0x254,_0x18d572:0x334,_0x485f96:0x243,_0x5511f7:0x228,_0x380e53:0x336,_0x5f2eb2:0xe0,_0x4063d1:0x3d,_0x47cd93:0x1fd,_0x1969f6:0x35d,_0x2f499c:0x373,_0x33dd6e:0x309,_0x1b43fa:0x1ed,_0x5ed47a:0x2d0,_0x46e4e4:0x313,_0x1b6142:0x2a1,_0x5dce81:0x26c,_0x3825fd:0x1f9,_0x107e6c:0x277},_0x3aeffc={_0x133802:0x9f},_0x4c6755={_0xfedf93:0x101,_0x1d1315:0x144};function _0x34512f(_0x4ead4b,_0x3a5e95,_0x517b67,_0x3dd23c){return _0x1343ee(_0x4ead4b-0x1be,_0x517b67,_0x517b67-_0x4c6755._0xfedf93,_0x3dd23c-_0x4c6755._0x1d1315);}const _0xc66808=await filepath(),_0x144140=await _0x4c6efb(_0x1079f2[_0x34512f(0x243,_0x35f98e._0x557e38,_0x35f98e._0x5053a8,_0x35f98e._0x1d5820)])['catch'](()=>null);if(!_0x144140?.[_0x516e82(_0x35f98e._0x5eb418,0x33c,_0x35f98e._0x419cf3,0x215)]())throw Object['assign'](new Error(_0x34512f(0x271,0x147,_0x35f98e._0x3e640b,_0x35f98e._0x542675)+_0x1079f2[_0x34512f(0x243,_0x35f98e._0x1fbbae,0x1b7,_0x35f98e._0x47e154)]+'\x27'),{'code':_0x34512f(0x2e7,0x2b7,0x212,_0x35f98e._0x1b1905)});const _0x2a14c9=['--files',_0x516e82(_0x35f98e._0x33a390,0x3f4,0x3c8,_0x35f98e._0x549e5e),'--hidden','--glob=!.git/*'];for(const _0x1ec1cf of _0x1079f2[_0x516e82(_0x35f98e._0x400896,0x2c9,_0x35f98e._0x4bdbe0,0x18f)]??[]){_0x2a14c9['push'](_0x516e82(0x23c,0x295,0x303,_0x35f98e._0x18d572)+_0x1ec1cf);}function _0x516e82(_0x5e281d,_0x23bb45,_0x4f56d1,_0x1b0f80){return _0x1343ee(_0x23bb45-0x26e,_0x1b0f80,_0x4f56d1-_0x3aeffc._0x133802,_0x1b0f80-0x161);}const _0x1004ee=_0x6da36d(_0xc66808,_0x2a14c9,{'cwd':_0x1079f2[_0x34512f(_0x35f98e._0x485f96,0x17e,0x17a,_0x35f98e._0x5511f7)],'stdio':[_0x34512f(0x290,_0x35f98e._0x380e53,0x15b,0x2cc),_0x34512f(0x14d,_0x35f98e._0x5f2eb2,0x99,_0x35f98e._0x4063d1),_0x516e82(0x298,_0x35f98e._0x47cd93,0xbc,0x2a5)]});let _0x48158d='';for await(const _0x322376 of _0x1004ee[_0x34512f(0x315,0x1e4,0x345,0x349)]??[]){_0x48158d+=_0x322376[_0x516e82(_0x35f98e._0x1969f6,_0x35f98e._0x2f499c,0x471,_0x35f98e._0x33dd6e)]();const _0x36c636=_0x48158d[_0x34512f(0x139,_0x35f98e._0x1b43fa,0x1c4,0xcc)](/\r?\n/);_0x48158d=_0x36c636[_0x516e82(_0x35f98e._0x5ed47a,_0x35f98e._0x46e4e4,0x2eb,0x2d4)]()??'';for(const _0x1e12d1 of _0x36c636){if(_0x1e12d1[_0x34512f(0x1de,_0x35f98e._0x1b6142,_0x35f98e._0x5dce81,0x184)]>0x0)yield _0x1e12d1;}}_0x48158d[_0x34512f(0x1c7,0x259,0x2c7,0x17f)]()['length']>0x0&&(yield _0x48158d[_0x516e82(_0x35f98e._0x3825fd,_0x35f98e._0x107e6c,0x1d1,_0x35f98e._0x33a390)]());}function parseMatchLine(_0x5c6189,_0x4adb70){const _0x4d5c55={_0x508493:0x131,_0x37d164:0x155,_0x5320f3:0x9b,_0x4935de:0x1e,_0x44fc4b:0x1e9,_0x2948a1:0x11f,_0xbe352:0x2e7,_0x8111d1:0x408,_0xa05310:0x2d4,_0x12dc54:0x2f2,_0x169455:0x22e,_0xe3b671:0x2f0,_0x2a2c25:0x7a,_0x158b52:0x56,_0x1c7e43:0xcd,_0x3cce49:0x218,_0x1977f3:0x1d8};if(!_0x5c6189||_0x5c6189==='--')return null;const _0x2d2a3e=_0x5c6189[_0x5ba96e(-_0x4d5c55._0x508493,-_0x4d5c55._0x37d164,-_0x4d5c55._0x5320f3,-_0x4d5c55._0x4935de)]('|');function _0x10d94b(_0x24507a,_0x200f48,_0x39dbd1,_0x321321){return _0x1343ee(_0x321321-0x166,_0x24507a,_0x39dbd1-0x1b6,_0x321321-0xf8);}if(_0x4adb70&&_0x2d2a3e['length']>=0x4&&Number[_0x5ba96e(_0x4d5c55._0x44fc4b,-0x2e,0x14e,_0x4d5c55._0x2948a1)](Number[_0x10d94b(0x259,_0x4d5c55._0xbe352,_0x4d5c55._0x8111d1,_0x4d5c55._0xa05310)](_0x2d2a3e[0x2]??'',0xa))){const _0x1e3c59=Number[_0x10d94b(_0x4d5c55._0x12dc54,0x295,_0x4d5c55._0x169455,0x2d4)](_0x2d2a3e[0x1]??'',0xa);if(!Number['isFinite'](_0x1e3c59)||!_0x2d2a3e[0x0])return null;return{'filePath':_0x2d2a3e[0x0],'lineNum':_0x1e3c59,'lineText':_0x2d2a3e['slice'](0x3)[_0x10d94b(_0x4d5c55._0xe3b671,0x163,0x28d,0x1a5)]('|')};}if(_0x2d2a3e[_0x5ba96e(-_0x4d5c55._0x2a2c25,0xcd,-_0x4d5c55._0x158b52,0x87)]>=0x3){const _0x4716ad=Number['parseInt'](_0x2d2a3e[0x1]??'',0xa);if(!Number['isFinite'](_0x4716ad)||!_0x2d2a3e[0x0])return null;return{'filePath':_0x2d2a3e[0x0],'lineNum':_0x4716ad,'lineText':_0x2d2a3e[_0x5ba96e(_0x4d5c55._0x1c7e43,_0x4d5c55._0x3cce49,0x1a5,_0x4d5c55._0x1977f3)](0x2)['join']('|'),..._0x4adb70?{'isContext':!![]}:{}};}function _0x5ba96e(_0x339862,_0x4c3e7a,_0x123040,_0x461e5f){return _0x1343ee(_0x461e5f-0x67,_0x4c3e7a,_0x123040-0xf3,_0x461e5f-0x130);}return null;}async function search(_0x577398){const _0xbbc67e={_0x382e1a:0x139,_0x1be444:0xff,_0x384b7f:0x12c,_0x2644e2:0x3,_0x4618fa:0xf3,_0xd4a953:0x1fc,_0x2776b8:0xcf,_0x6c0d83:0xf6,_0x55dfac:0x1b,_0x3e7163:0xdf,_0x1ca9b0:0x89,_0x66558f:0x3e,_0x267c68:0x28,_0x201169:0x186,_0xb92bdc:0x11d,_0x1df79a:0x36,_0x5927db:0x2,_0x4429ef:0x1a7,_0x79e6bc:0x194,_0x4ad2b6:0x220,_0x73aa:0xec,_0x2a9b72:0x18a,_0x4f6e53:0xd4,_0x233d07:0x13,_0x51bdad:0xac,_0x45e8ee:0x11f,_0x186d80:0xb1,_0x157c4b:0x11,_0x481e19:0xce,_0x4b1eba:0x1d1,_0x4e1910:0x2ca,_0x1fda72:0x213,_0x4b865e:0x255,_0x3d851e:0x234,_0x2882ff:0xb2,_0x557079:0x1ad,_0x17f4d5:0xfb,_0x288389:0x149,_0x3a4834:0x1f2},_0x320e79={_0x1c7e6a:0x325,_0x4c59b9:0x21a,_0x8dcca5:0x2ff,_0x106048:0x22f,_0xaaf460:0x162,_0x59ac3d:0x2cc,_0x53fff:0x3f7,_0x31f7b6:0x394,_0x666dd6:0x441,_0x3ba358:0x17f,_0x144774:0x2e0,_0x530b28:0x288,_0x5a9403:0x35c,_0x59d028:0x173,_0xecda53:0x389,_0x3f1b6b:0x45a,_0x35521b:0x515,_0x1ec859:0x598},_0x35fb32={_0x2a1ba4:0x29},_0x64fb7a={_0x2560ed:0x1fa},_0x4b3060={_0x5cb2c4:0x10f,_0x921a4:0x73,_0x277269:0x114},_0x4ea6c2={_0x27c742:0x11f};function _0x4f1104(_0x2d9694,_0x384d92,_0x41ee37,_0x555016){return _0x357fd3(_0x2d9694-_0x4ea6c2._0x27c742,_0x384d92-0x2f,_0x2d9694- -0x109,_0x384d92);}const _0x422b69=await filepath();if(_0x577398[_0x25bf5b(0xfd,0x8e,_0xbbc67e._0x382e1a,_0xbbc67e._0x1be444)]){const _0x4a5b6d=await _0x4c6efb(_0x577398['file'])[_0x25bf5b(_0xbbc67e._0x384b7f,-_0xbbc67e._0x2644e2,-0x55,0x97)](()=>null);if(!_0x4a5b6d?.[_0x4f1104(-_0xbbc67e._0x4618fa,-_0xbbc67e._0xd4a953,-0x229,-0x9d)]())throw Object[_0x25bf5b(_0xbbc67e._0x2776b8,0x24,0x1aa,_0xbbc67e._0x6c0d83)](new Error(_0x25bf5b(0x243,0x316,0x29c,0x26b)+_0x577398['file']+'\x27'),{'code':_0x4f1104(_0xbbc67e._0x55dfac,_0xbbc67e._0x3e7163,-0x110,-0x2a)});}else{const _0x51f215=await _0x4c6efb(_0x577398[_0x4f1104(-_0xbbc67e._0x1ca9b0,-_0xbbc67e._0x66558f,-0x1d5,_0xbbc67e._0x267c68)])[_0x4f1104(-_0xbbc67e._0x201169,-0x25b,-0xec,-0xed)](()=>null);if(!_0x51f215?.[_0x4f1104(-0x40,-_0xbbc67e._0xb92bdc,0x33,-0x189)]())throw Object['assign'](new Error(_0x4f1104(-0x5b,_0xbbc67e._0x1df79a,_0xbbc67e._0x5927db,-_0xbbc67e._0x4429ef)+_0x577398[_0x25bf5b(0x15d,0x217,0xf2,_0xbbc67e._0x79e6bc)]+'\x27'),{'code':'ENOENT'});}const _0x106146=[_0x25bf5b(0x1c1,_0xbbc67e._0x4ad2b6,_0xbbc67e._0x73aa,0x1b0),_0x25bf5b(0x82,0x9e,0x100,_0xbbc67e._0x2a9b72),_0x25bf5b(0x1d5,-0x7d,0x170,0xb0),_0x4f1104(0x7f,_0xbbc67e._0x4f6e53,_0xbbc67e._0x233d07,0x1af),_0x577398[_0x4f1104(-0x1b5,-_0xbbc67e._0x51bdad,-_0xbbc67e._0x45e8ee,-0xbd)]];function _0x25bf5b(_0x435b7e,_0x326bc3,_0x721657,_0x7868c4){return _0x357fd3(_0x435b7e-_0x4b3060._0x5cb2c4,_0x326bc3-_0x4b3060._0x921a4,_0x7868c4-_0x4b3060._0x277269,_0x721657);}const _0x1a3a12=typeof _0x577398['context']===_0x4f1104(0x3a,-_0xbbc67e._0x186d80,_0xbbc67e._0x157c4b,_0xbbc67e._0x481e19)&&_0x577398[_0x4f1104(-0x1ae,-0x25f,-_0xbbc67e._0x4b1eba,-_0xbbc67e._0x4e1910)]>0x0;return _0x1a3a12&&_0x106146['push']('-C',String(_0x577398['context']),_0x25bf5b(0x326,_0xbbc67e._0x1fda72,_0xbbc67e._0x4b865e,_0xbbc67e._0x1fda72)),_0x577398[_0x25bf5b(_0xbbc67e._0x3d851e,_0xbbc67e._0x2882ff,_0xbbc67e._0x557079,0x16a)]&&!_0x577398[_0x25bf5b(0xc1,0x3,0x8d,_0xbbc67e._0x1be444)]&&_0x106146['push'](_0x4f1104(-_0xbbc67e._0x157c4b,-0x93,_0xbbc67e._0x17f4d5,-0x7c),_0x577398['glob']),_0x106146['push'](_0x577398['file']??_0x577398[_0x25bf5b(_0xbbc67e._0x288389,0x95,_0xbbc67e._0x3a4834,0x194)]),await new Promise((_0x383319,_0x32c37c)=>{const _0x3cacef={_0x52a450:0x480,_0x65c813:0x51c,_0x5725b8:0x526,_0x53327e:0x287,_0x42e773:0x491,_0x474a6b:0x5ab,_0x4220fb:0x3c4},_0x455c47={_0x5b49d7:0x178},_0x5b89ca={_0x11da79:0xe6},_0x252183={_0x54b9d5:0xce},_0x23a621={_0x1d9f9d:0x3d},_0x414294={_0x33f550:0x44b,_0x16cc86:0x195},_0x5cf687=_0x6da36d(_0x422b69,_0x106146,{'cwd':_0x577398[_0x2d6a33(_0x320e79._0x1c7e6a,0x1d9,0x45e,_0x320e79._0x4c59b9)],'stdio':[_0x2d6a33(0x372,0x4be,0x374,_0x320e79._0x8dcca5),_0x2d6a33(_0x320e79._0x106048,0x349,0xfa,_0x320e79._0xaaf460),_0xdb3f41(0x298,0x192,0x242,_0x320e79._0x59ac3d)]});let _0x541d2d='',_0x510e83='';_0x5cf687[_0x2d6a33(_0x320e79._0x53fff,_0x320e79._0x31f7b6,_0x320e79._0x666dd6,0x305)]?.['on']('data',_0x1f7d70=>{function _0x1c7b19(_0x283a33,_0x262afc,_0x211b3e,_0x58fddc){return _0xdb3f41(_0x283a33- -_0x414294._0x33f550,_0x211b3e,_0x211b3e-0x17a,_0x58fddc-_0x414294._0x16cc86);}_0x541d2d+=_0x1f7d70[_0x1c7b19(-_0x23a621._0x1d9f9d,-0x154,0x16,0x9d)]();});function _0xdb3f41(_0x34d5df,_0x19498b,_0x27a1df,_0x1c9973){return _0x25bf5b(_0x34d5df-0x18c,_0x19498b-0xeb,_0x19498b,_0x34d5df-_0x64fb7a._0x2560ed);}_0x5cf687[_0x2d6a33(0x211,_0x320e79._0x3ba358,0x32f,_0x320e79._0x144774)]?.['on'](_0x2d6a33(_0x320e79._0x530b28,_0x320e79._0x5a9403,0x293,_0x320e79._0x59d028),_0xd8e116=>{function _0x23be2c(_0x50d5a6,_0x452894,_0x513548,_0x512898){return _0x2d6a33(_0x50d5a6- -0x4cd,_0x452894-0x9c,_0x513548-_0x252183._0x54b9d5,_0x512898);}_0x510e83+=_0xd8e116[_0x23be2c(-0x128,-0x162,-_0x35fb32._0x2a1ba4,-0x245)]();});function _0x2d6a33(_0x3c2503,_0x375efb,_0x5df08a,_0xbe2313){return _0x4f1104(_0x3c2503-0x3ae,_0xbe2313,_0x5df08a-0x6,_0xbe2313-_0x5b89ca._0x11da79);}_0x5cf687['on'](_0xdb3f41(_0x320e79._0xecda53,0x292,_0x320e79._0x3f1b6b,0x378),_0x16a39c=>{const _0x43562b={_0x3c3682:0x18f,_0x42ca9d:0x179};if(_0x16a39c===0x1&&_0x541d2d===''){_0x383319([]);return;}if(_0x16a39c!==0x0&&_0x16a39c!==0x1){_0x32c37c(new Error(_0x200eef(_0x3cacef._0x52a450,_0x3cacef._0x65c813,_0x3cacef._0x5725b8,0x56a)+_0x510e83));return;}function _0x200eef(_0xfd23ca,_0x1c8e64,_0x15a82a,_0x1afc30){return _0x2d6a33(_0xfd23ca-0xd0,_0x1c8e64-0x2d,_0x15a82a-_0x455c47._0x5b49d7,_0x1c8e64);}function _0x502a17(_0x171d85,_0xcb839a,_0x2b1086,_0x537bf3){return _0x2d6a33(_0x171d85-_0x43562b._0x3c3682,_0xcb839a-0xcd,_0x2b1086-_0x43562b._0x42ca9d,_0xcb839a);}const _0x3a8ffb=_0x577398['limit']??0x64,_0x219afd=[];for(const _0x20f0bd of _0x541d2d[_0x200eef(0x2eb,_0x3cacef._0x53327e,0x2c6,0x210)](/\r?\n/)){if(_0x219afd['length']>=_0x3a8ffb)break;const _0x41fa9c=parseMatchLine(_0x20f0bd,_0x1a3a12);if(_0x41fa9c)_0x219afd[_0x502a17(_0x3cacef._0x42e773,_0x3cacef._0x474a6b,_0x3cacef._0x4220fb,0x587)](_0x41fa9c);}_0x383319(_0x219afd);}),_0x5cf687['on'](_0xdb3f41(0x492,0x3ed,_0x320e79._0x35521b,_0x320e79._0x1ec859),_0x32c37c);});}function createGlobTool(_0x108e8e={}){const _0x18b29c={_0x19f9d9:0x7e,_0x2b064d:0x170,_0x2c4a3c:0xd2,_0x200ba5:0x107,_0x1f8b55:0x74,_0x1ebbbb:0x19c,_0x1755a9:0x132,_0x2a8db8:0x247,_0x5e4d8e:0x387,_0x501673:0x231,_0x495f9c:0x194,_0x2c1430:0x24a,_0x5ca2f0:0x277,_0xb788f4:0x1bd,_0x470195:0x12c,_0x278bcd:0x228},_0x266cc8={_0x5bb553:0xb5,_0x6b3f2e:0x2c0,_0xb2ad4d:0x147,_0xae8053:0x188,_0x48b0e5:0x1af,_0x5e8b8c:0x2de,_0x419683:0x3f2,_0x41ff8a:0x342,_0x3a8864:0x3af,_0x32d0f5:0x50e,_0xa7f1a6:0x18b,_0x2da9b2:0x22d,_0x15a9c8:0x120,_0x1e43ef:0x176,_0x323ddd:0x2c8,_0x448183:0x120,_0x2dab1:0x166,_0x14508f:0x193,_0x45dd10:0x1bd,_0x410f2e:0xc2,_0xf8c101:0x145,_0x3bd81e:0x2b4,_0x28775b:0x234,_0x711ce5:0x316,_0x45fcc8:0x362,_0x343100:0x2cc,_0x14f979:0x8a,_0x1b88e1:0x29c,_0x4b0ba9:0x324,_0x59a6ba:0x389,_0x1a7987:0x268,_0x3b9468:0x285,_0x507866:0x1c0,_0x1ecb1a:0x110,_0x3ec6af:0x2f8,_0x36dbe2:0x123,_0x1aaa81:0x44c,_0x548606:0x2af,_0x58aa00:0x14d,_0x2da980:0x19d,_0x120e84:0x2d1,_0x25d6fc:0x138},_0x29eddc={_0x4103b7:0xc4,_0x179ddd:0x152},_0x2b1684={_0xbd3f83:0x143},_0x58b107={_0x5ea0bb:0x153},_0x32bc97=_0x1e0b4a['resolve'](_0x108e8e[_0x4d736c(0x291,0x31d,0x3cc,0x2eb)]??process['cwd']());function _0x4d736c(_0x59502b,_0xe8f0b9,_0x3a0dcf,_0x4d4fcd){return _0x357fd3(_0x59502b-_0x58b107._0x5ea0bb,_0xe8f0b9-0x166,_0xe8f0b9-0x21b,_0x4d4fcd);}function _0x6d3319(_0x615b75,_0x312329,_0x51742e,_0x3899b5){return _0x357fd3(_0x615b75-_0x2b1684._0xbd3f83,_0x312329-0x122,_0x615b75-0x303,_0x312329);}const _0x176b69=(_0x108e8e[_0x4d736c(_0x18b29c._0x19f9d9,_0x18b29c._0x2b064d,_0x18b29c._0x2c4a3c,_0x18b29c._0x200ba5)]??[])[_0x4d736c(_0x18b29c._0x1f8b55,_0x18b29c._0x1ebbbb,_0x18b29c._0x1755a9,_0x18b29c._0x2a8db8)](_0x45f455=>_0x1e0b4a['resolve'](_0x45f455)),_0xfd07d7=_0x108e8e[_0x6d3319(0x30c,_0x18b29c._0x5e4d8e,0x405,0x3bd)]??0x64,_0x5534d7=_0x108e8e[_0x4d736c(_0x18b29c._0x501673,_0x18b29c._0x495f9c,0xf7,_0x18b29c._0x2c1430)]??_0x6d3319(0x2b6,_0x18b29c._0x5ca2f0,_0x18b29c._0xb788f4,0x284);return defineTool({'name':_0x5534d7,'description':_0x4d736c(_0x18b29c._0x470195,0x24b,0x1c5,0x38c),'inputSchema':{'type':_0x6d3319(0x34a,0x36b,_0x18b29c._0x278bcd,0x482),'properties':{'pattern':{'type':'string'},'path':{'type':'string'},'limit':{'type':'number'}},'required':[_0x4d736c(0x234,0x16f,0x28,0x293)]},async *'execute'(_0x892ea6){const _0x46923d={_0x292da1:0x17b};if(_0x892ea6[_0x315ced(0x14e,0x124,0x51,_0x266cc8._0x5bb553)][_0x320e55(0x243,_0x266cc8._0x6b3f2e,_0x266cc8._0xb2ad4d,_0x266cc8._0xae8053)]()[_0x320e55(0x25a,_0x266cc8._0x48b0e5,_0x266cc8._0x5e8b8c,0x21e)]===0x0)throw new ToolExecutionError(_0x320e55(_0x266cc8._0x419683,_0x266cc8._0x41ff8a,_0x266cc8._0x3a8864,_0x266cc8._0x32d0f5),{});const _0x586d65=resolveAllowedPath(_0x32bc97,_0x176b69,_0x892ea6['path']??'.'),_0x3dc69b=await _0x559b94(_0x586d65)['catch'](()=>null);function _0x315ced(_0x4abe50,_0x374d7b,_0x163a5b,_0x1b3ede){return _0x6d3319(_0x4abe50- -0x109,_0x374d7b,_0x163a5b-0x2e,_0x1b3ede-_0x46923d._0x292da1);}if(!_0x3dc69b?.['isDirectory']())throw new ToolExecutionError(_0x320e55(_0x266cc8._0xa7f1a6,0xfd,_0x266cc8._0x2da9b2,_0x266cc8._0x15a9c8)+(_0x892ea6['path']??'.'),{'path':_0x892ea6[_0x320e55(0x23b,_0x266cc8._0x1e43ef,_0x266cc8._0x323ddd,_0x266cc8._0x448183)]??'.'});const _0x188514=_0x892ea6['limit']??_0xfd07d7,_0x265027=Math[_0x315ced(0x1d3,0x1c1,0x14d,_0x266cc8._0x2dab1)](0x1,Math['trunc'](_0x188514)),_0x4faab4=[];let _0x339f9f=![];for await(const _0x2d7d8e of files({'cwd':_0x586d65,'glob':[_0x892ea6[_0x320e55(_0x266cc8._0x14508f,_0x266cc8._0x45dd10,_0x266cc8._0x410f2e,_0x266cc8._0xf8c101)]]})){if(_0x4faab4[_0x315ced(0x215,0x2db,0x345,_0x266cc8._0x3bd81e)]>=_0x265027){_0x339f9f=!![];break;}const _0x455574=await _0x559b94(_0x1e0b4a[_0x315ced(_0x266cc8._0x28775b,_0x266cc8._0x711ce5,_0x266cc8._0x45fcc8,_0x266cc8._0x343100)](_0x586d65,_0x2d7d8e))[_0x320e55(0x1c2,_0x266cc8._0x14f979,0x2cd,0xde)](()=>null);_0x4faab4[_0x320e55(_0x266cc8._0x1b88e1,0x2a7,_0x266cc8._0x4b0ba9,_0x266cc8._0x59a6ba)]({'path':_0x2d7d8e,'mtime':_0x455574?.[_0x320e55(0x1b3,0x29a,_0x266cc8._0x1a7987,_0x266cc8._0x3b9468)]??0x0});}function _0x320e55(_0x42baf6,_0x9dd37c,_0x773ca5,_0xa59c30){return _0x6d3319(_0x42baf6- -_0x29eddc._0x4103b7,_0x9dd37c,_0x773ca5-_0x29eddc._0x179ddd,_0xa59c30-0x1b7);}_0x4faab4['sort']((_0xb1e4ed,_0x439331)=>_0x439331[_0x320e55(0x273,0x2f9,0x3b4,0x1b9)]-_0xb1e4ed[_0x315ced(0x22e,0x1ac,0x23a,0x223)]);const _0x3112a4=_0x4faab4[_0x320e55(_0x266cc8._0x507866,_0x266cc8._0x1ecb1a,_0x266cc8._0x3ec6af,0x2ca)](_0x15160=>_0x15160['path']),_0x47aef7=_0x3112a4[_0x315ced(0x215,_0x266cc8._0x36dbe2,0x12d,0xfa)]===0x0?_0x320e55(0x302,0x2c6,_0x266cc8._0x1aaa81,0x37a)+_0x892ea6['pattern']:''+_0x3112a4[_0x315ced(0x234,_0x266cc8._0x548606,_0x266cc8._0x58aa00,0x194)]('\x0a')+(_0x339f9f?_0x320e55(_0x266cc8._0x2da980,0x2d0,_0x266cc8._0x120e84,_0x266cc8._0x25d6fc):'');return yield createToolOutput(_0x47aef7,{'pattern':_0x892ea6['pattern'],'searchPath':_0x1e0b4a['relative'](_0x32bc97,_0x586d65)||'.','matches':_0x3112a4,'count':_0x3112a4[_0x315ced(0x215,0x177,0x1e9,0x321)],'truncated':_0x339f9f}),void 0x0;}});}import{stat as _0x261f74}from'fs/promises';import*as _0x77a6d1 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x11e8a0={}){const _0x277a3c={_0xb2a212:0x61b,_0x1aa8f4:0x3ec,_0x50027f:0x55f,_0x3e8f35:0x41c,_0x3a3b16:0x460,_0x77c720:0x53b,_0x8846ca:0x1ba,_0x1490ed:0x235,_0x354a23:0x250,_0x510e96:0x455,_0x7c9789:0x403,_0x1b8a6f:0x4a,_0x308692:0xaf,_0x2c1eb6:0x50e,_0x3d0baf:0x4bb,_0x19b35c:0x440,_0x507d98:0x24b,_0x1a04f5:0x5a,_0x41e312:0x121,_0x35ebd6:0xd8,_0x35437d:0x5f9,_0x5be6c8:0x194,_0x25daf4:0x11b,_0x27e6c5:0x6e6,_0x3d1a62:0x6d2,_0x1660c6:0x6bd,_0x2dfa69:0x252,_0xc1e94c:0x1df},_0x13de22={_0x1b6a34:0xd1,_0x84681a:0xaf,_0x5015b4:0x198,_0x39b2da:0xa,_0x286597:0x115,_0x2ef16a:0x11a,_0x41db1a:0x3df,_0xa49104:0x2f3,_0x24c01d:0x29,_0x2cc972:0x102,_0x58fbf6:0x1a,_0x264c17:0x14,_0x177bbf:0x21a,_0x52f466:0xea,_0x50f2e7:0x341,_0x26aaba:0x202,_0x4dcc4a:0x1a8,_0xb9d8b8:0x1ea,_0x97c1d3:0x5f,_0x51d6bb:0x1f3,_0x6427eb:0xc3,_0x402539:0xd3,_0x53c8e9:0xe5,_0x306a46:0x10b,_0x4c690e:0x4d,_0x1def73:0x95,_0x17885b:0x61,_0x14e458:0x135,_0x194e09:0x7c,_0x2b116d:0x83,_0x133746:0x16f,_0x410a75:0x1a1,_0x1f0c40:0x234,_0x58f4c2:0x1a2,_0x1a31ed:0xb4,_0x5cea49:0xbc,_0x1e2b60:0x2ec,_0x5c1f52:0x1ba,_0x3b90af:0xc4,_0xca6101:0x3a,_0x20a488:0xe5,_0x56149a:0x1f2,_0x39be39:0xb1,_0x5adfdc:0x10e,_0x184cd4:0xb,_0x423885:0xcb,_0x2bab84:0xa2,_0x1aaf9d:0x85,_0x423ca6:0x97,_0x2e1569:0x2ba,_0x39aa9e:0x1a5,_0x4033b1:0x180,_0x3318cf:0xa,_0x53f7ac:0xe1,_0xada720:0xaf,_0x12cb8c:0x19c,_0x50cdb4:0x1bd,_0x21ce4d:0x2ef,_0xc7fbe9:0x3ca,_0x2d6ae3:0xa,_0x56a3d8:0x2d,_0x414269:0xe9,_0x53c406:0xd4,_0x33219e:0x82,_0x418b67:0x61,_0xc2f279:0x94,_0x38149b:0x2c,_0x550e08:0x76,_0x43271e:0x1a6,_0x390837:0x30e,_0x50ea14:0x51,_0x2b61d8:0x1c5,_0x4df894:0x7b,_0x163ba6:0x28e,_0x88afeb:0x2bd,_0x457927:0xa6,_0x246600:0x4d,_0x20f036:0x206,_0x25b468:0x2b9,_0x15c014:0x3ea,_0x210f9b:0x22b,_0x2e9414:0x5c,_0x4be505:0x35,_0x2da88e:0xe,_0x9ae168:0x73,_0x5adbbd:0xf7,_0xca3586:0xbf,_0x21cbc8:0x53,_0x48f70b:0x6d,_0x4565e5:0x9e,_0x282a4d:0x72,_0x2b3012:0x114,_0x4c1766:0xad,_0x5b8eea:0x8,_0x414ac4:0xfb,_0x1582ea:0x139,_0x151024:0x18e,_0x20b79e:0x1e8,_0x2c268f:0xab,_0x3fea1e:0x80,_0xd4a286:0x2e,_0x13903c:0xdd,_0x11eff8:0x70,_0x2e502d:0x167,_0x1ef020:0x285},_0xbf890f={_0x1aa1b3:0x1aa},_0x388eb2={_0x18686f:0x1b8,_0x2194ba:0x2f6},_0x1e8874={_0x5e41f7:0x9e,_0x2be1f8:0x154},_0x32033f={_0x5174b8:0x4c7},_0x18ca5a=_0x77a6d1[_0x217a4b(0x52a,_0x277a3c._0xb2a212,_0x277a3c._0x1aa8f4,0x43e)](_0x11e8a0[_0x217a4b(0x5c9,_0x277a3c._0x50027f,0x576,0x67c)]??process[_0x217a4b(0x547,0x4c9,0x577,0x54a)]()),_0x52c6a1=(_0x11e8a0[_0x217a4b(_0x277a3c._0x3e8f35,_0x277a3c._0x3a3b16,0x4a1,_0x277a3c._0x77c720)]??[])[_0x132f4e(-_0x277a3c._0x8846ca,-0x245,-_0x277a3c._0x1490ed,-0x2ed)](_0x5cc044=>_0x77a6d1[_0x217a4b(0x52a,0x569,0x48b,0x5e1)](_0x5cc044)),_0x55d968=_0x11e8a0[_0x132f4e(-_0x277a3c._0x354a23,-0x2b1,-0x1ad,-0x29a)]??0x64;function _0x217a4b(_0x59ac83,_0x210f59,_0x7134ac,_0x42da02){return _0x357fd3(_0x59ac83-0x159,_0x210f59-0x9f,_0x59ac83-_0x32033f._0x5174b8,_0x210f59);}const _0x17c520=_0x11e8a0[_0x217a4b(0x440,_0x277a3c._0x510e96,_0x277a3c._0x7c9789,0x3de)]??_0x132f4e(_0x277a3c._0x1b8a6f,-0x15b,-_0x277a3c._0x308692,-0x188);function _0x132f4e(_0x3b87fa,_0x2ee287,_0x2c7e90,_0x2d79c3){return _0x357fd3(_0x3b87fa-_0x1e8874._0x5e41f7,_0x2ee287-_0x1e8874._0x2be1f8,_0x2c7e90- -0x1b6,_0x2ee287);}return defineTool({'name':_0x17c520,'description':'Search\x20for\x20a\x20regex\x20pattern\x20in\x20workspace\x20or\x20allowed\x20directory\x20file\x20contents.','inputSchema':{'type':_0x217a4b(_0x277a3c._0x2c1eb6,0x5cd,_0x277a3c._0x3d0baf,_0x277a3c._0x19b35c),'properties':{'pattern':{'type':_0x132f4e(-_0x277a3c._0x507d98,-_0x277a3c._0x1a04f5,-_0x277a3c._0x41e312,-_0x277a3c._0x35ebd6)},'path':{'type':_0x217a4b(0x55c,_0x277a3c._0x35437d,0x4b7,0x69e)},'include':{'type':_0x132f4e(-_0x277a3c._0x5be6c8,-0x95,-0x121,-_0x277a3c._0x25daf4)},'limit':{'type':_0x217a4b(0x60a,_0x277a3c._0x27e6c5,_0x277a3c._0x3d1a62,_0x277a3c._0x1660c6)},'context':{'type':'number'}},'required':[_0x132f4e(-_0x277a3c._0x2dfa69,-_0x277a3c._0xc1e94c,-0x262,-0x35e)]},async *'execute'(_0x14cf27){function _0x4cadb7(_0x439ab1,_0x13b644,_0x24e0a5,_0x35f611){return _0x132f4e(_0x439ab1-_0x388eb2._0x18686f,_0x35f611,_0x24e0a5-_0x388eb2._0x2194ba,_0x35f611-0x1c0);}if(_0x14cf27[_0x4145bc(-_0x13de22._0x1b6a34,-0x209,-_0x13de22._0x84681a,-_0x13de22._0x5015b4)]['trim']()[_0x4145bc(-_0x13de22._0x39b2da,-_0x13de22._0x286597,-0x99,-_0x13de22._0x2ef16a)]===0x0)throw new ToolExecutionError(_0x4cadb7(_0x13de22._0x41db1a,0x401,_0x13de22._0xa49104,0x33a),{});const _0x33f428=resolveAllowedPath(_0x18ca5a,_0x52c6a1,_0x14cf27[_0x4145bc(-_0x13de22._0x24c01d,-0x2a,_0x13de22._0x2cc972,-0xc2)]??'.'),_0x888977=await _0x261f74(_0x33f428)[_0x4145bc(-0xa2,-_0x13de22._0x58fbf6,_0x13de22._0x264c17,-0x15a)](()=>null),_0x1ae173=_0x888977?.[_0x4cadb7(_0x13de22._0x177bbf,0x1dc,0x156,_0x13de22._0x52f466)]()??![],_0x23615a=_0x888977?.[_0x4cadb7(_0x13de22._0x50f2e7,_0x13de22._0x26aaba,0x209,_0x13de22._0x4dcc4a)]()??![];if(!_0x1ae173&&!_0x23615a)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x14cf27[_0x4cadb7(-0x5,_0x13de22._0xb9d8b8,0x13c,0xb)]??'.'),{'path':_0x14cf27[_0x4cadb7(_0x13de22._0x97c1d3,0x241,0x13c,0x1ec)]??'.'});const _0x407cc0=_0x14cf27['limit']??_0x55d968,_0x2a73f7=Math['max'](0x1,Math[_0x4cadb7(_0x13de22._0x51d6bb,_0x13de22._0x6427eb,_0x13de22._0x402539,-0x1f)](_0x407cc0)),_0x174682=await search({'cwd':_0x23615a?_0x33f428:_0x77a6d1[_0x4145bc(0x18a,0x6a,_0x13de22._0x53c8e9,0x6e)](_0x33f428),'pattern':_0x14cf27[_0x4cadb7(0x17a,0x180,0x94,_0x13de22._0x306a46)],'glob':_0x23615a?_0x14cf27[_0x4145bc(-0x70,-_0x13de22._0x4c690e,-_0x13de22._0x1def73,_0x13de22._0x17885b)]:void 0x0,'limit':_0x2a73f7,'file':_0x1ae173?_0x33f428:void 0x0,'context':_0x14cf27['context']}),_0x111e88=new Map();for(const _0x214946 of _0x174682){if(!_0x111e88[_0x4cadb7(_0x13de22._0x14e458,-_0x13de22._0x194e09,_0x13de22._0x2b116d,-0x8e)](_0x214946[_0x4cadb7(_0x13de22._0x133746,_0x13de22._0x410a75,0xe5,_0x13de22._0x1f0c40)])){const _0x3feefc=await _0x261f74(_0x214946[_0x4145bc(-0x80,0xad,-_0x13de22._0x58f4c2,-_0x13de22._0x1a31ed)])[_0x4cadb7(0x13a,_0x13de22._0x5cea49,0xc3,0xca)](()=>null);_0x111e88[_0x4cadb7(_0x13de22._0x1e2b60,0xa2,_0x13de22._0x5c1f52,_0x13de22._0x3b90af)](_0x214946[_0x4cadb7(_0x13de22._0xca6101,0x29,_0x13de22._0x20a488,_0x13de22._0x56149a)],{'matches':[],'mtime':_0x3feefc?.[_0x4145bc(-_0x13de22._0x39be39,-_0x13de22._0x5adfdc,-0x1c3,_0x13de22._0x184cd4)]??0x0});}_0x111e88[_0x4cadb7(-0x59,_0x13de22._0x423885,_0x13de22._0x2bab84,_0x13de22._0x1aaf9d)](_0x214946[_0x4145bc(-0x80,-0x1b3,0x15,-_0x13de22._0x423ca6)])?.['matches'][_0x4cadb7(_0x13de22._0x2e1569,_0x13de22._0x39aa9e,0x19d,0x90)](_0x214946);}const _0x38a110=[..._0x111e88['entries']()][_0x4cadb7(-0x31,_0x13de22._0x4033b1,0xe2,0x150)]((_0x4b4801,_0x50e426)=>_0x50e426[0x1]['mtime']-_0x4b4801[0x1][_0x4cadb7(0x110,0x1ff,0x174,0xd4)]),_0x3305c4=_0x174682['filter'](_0x1808a7=>!_0x1808a7['isContext'])[_0x4145bc(-_0x13de22._0x3318cf,-_0x13de22._0x53f7ac,0xd3,_0x13de22._0xada720)],_0xbbf968=_0x174682[_0x4cadb7(_0x13de22._0x12cb8c,0x260,0x15b,0x11d)]>=_0x2a73f7,_0xde8e3a=_0x1ae173?_0x77a6d1[_0x4cadb7(_0x13de22._0x50cdb4,0x42b,_0x13de22._0x21ce4d,_0x13de22._0xc7fbe9)](_0x33f428):_0x33f428;let _0x25fa61='';function _0x4145bc(_0x2fbee7,_0x5e5fca,_0x4650f4,_0x27aebc){return _0x132f4e(_0x2fbee7-_0xbf890f._0x1aa1b3,_0x5e5fca,_0x2fbee7-0x191,_0x27aebc-0xf6);}if(_0x174682[_0x4145bc(-_0x13de22._0x2d6ae3,_0x13de22._0x56a3d8,0x134,0xa2)]===0x0)_0x25fa61=_0x4cadb7(0xb2,_0x13de22._0x414269,0xf0,_0x13de22._0x53c406)+_0x14cf27[_0x4cadb7(-_0x13de22._0x33219e,-_0x13de22._0x418b67,_0x13de22._0xc2f279,_0x13de22._0x38149b)];else{_0x25fa61='Found\x20'+_0x3305c4+_0x4cadb7(0x17d,0x3e,0xb1,0xac)+(_0x3305c4===0x1?'':'es')+'\x0a';for(const [_0x5e2f24,_0x5ba527]of _0x38a110){const _0x102b4f=_0x1ae173?_0x77a6d1[_0x4cadb7(_0x13de22._0x550e08,0xfb,0x146,0xb3)](_0x5e2f24):_0x77a6d1[_0x4cadb7(_0x13de22._0x43271e,_0x13de22._0x390837,0x279,0x26b)](_0xde8e3a,_0x5e2f24);_0x25fa61+='\x0a'+_0x102b4f+':\x0a';for(const _0x3f4114 of _0x5ba527[_0x4cadb7(-_0x13de22._0x50ea14,_0x13de22._0x2b61d8,_0x13de22._0x4df894,0x88)]){const _0x86c3bc=_0x3f4114['lineText']['length']>MAX_LINE_LENGTH?_0x3f4114[_0x4cadb7(0x194,0x36e,_0x13de22._0x163ba6,_0x13de22._0x88afeb)][_0x4145bc(0x147,_0x13de22._0x457927,0x1ed,_0x13de22._0x246600)](0x0,MAX_LINE_LENGTH)+_0x4cadb7(0x327,_0x13de22._0x20f036,_0x13de22._0x25b468,_0x13de22._0x15c014):_0x3f4114[_0x4145bc(0x129,0x23d,0xb8,_0x13de22._0x210f9b)],_0x3ac0ca=_0x3f4114[_0x4145bc(0x81,_0x13de22._0x2e9414,0x16d,_0x13de22._0x4be505)]?'\x20\x20':'>\x20';_0x25fa61+=_0x3ac0ca+_0x4145bc(0x2d,-_0x13de22._0x2da88e,-_0x13de22._0x9ae168,_0x13de22._0x5adbbd)+_0x3f4114[_0x4145bc(_0x13de22._0xca3586,_0x13de22._0x21cbc8,-_0x13de22._0x48f70b,0x12d)]+':\x20'+_0x86c3bc+'\x0a';}}_0xbbf968&&(_0x25fa61+=_0x4cadb7(0x2,0x195,_0x13de22._0x4565e5,_0x13de22._0x282a4d));}const _0x5d3890={'searchPath':_0x77a6d1[_0x4145bc(_0x13de22._0x2b3012,_0x13de22._0x4c1766,0x240,_0x13de22._0x39aa9e)](_0x18ca5a,_0x33f428)||'.','pattern':_0x14cf27[_0x4145bc(-0xd1,-_0x13de22._0x5b8eea,-_0x13de22._0x414ac4,0x49)],'matchCount':_0x3305c4,'fileCount':_0x111e88[_0x4145bc(_0x13de22._0x1582ea,0x256,_0x13de22._0x151024,_0x13de22._0x20b79e)],'truncated':_0xbbf968};return _0x23615a&&_0x14cf27[_0x4145bc(-0x70,_0x13de22._0x2c268f,-_0x13de22._0x3fea1e,-_0x13de22._0xd4a286)]!==void 0x0&&(_0x5d3890[_0x4145bc(-0x70,_0x13de22._0x13903c,-0x6b,-0xf6)]=_0x14cf27[_0x4145bc(-_0x13de22._0x11eff8,-0x1e,-0x6e,-0x106)]),yield createToolOutput(_0x25fa61[_0x4cadb7(_0x13de22._0x2e502d,_0x13de22._0x1ef020,0x144,0x6d)](),_0x5d3890),void 0x0;}});}import{readdir as _0x445d23,readFile as _0x581455,stat as _0x5d6145}from'fs/promises';import*as _0xc8103b from'path';import*as _0x43ab67 from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x2f6a23,_0x585370){const _0x4ad8e1={_0xfa870d:0x7,_0x112665:0xfd,_0x496362:0x94,_0x57a6e3:0x8c,_0x34c8ca:0x16f,_0x10099d:0x4da},_0x11a03e={_0x457e44:0x16a},_0x314d96={_0x53e78e:0x1ca,_0x284093:0xf0};if(_0x585370>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x394595(_0x3359c0,_0x24ec12,_0x5c6284,_0x3f8038){return _0x1343ee(_0x3359c0-0x4ba,_0x3f8038,_0x5c6284-_0x314d96._0x53e78e,_0x3f8038-_0x314d96._0x284093);}function _0x52baef(_0x1fd2ce,_0x39dd90,_0x571480,_0x2b9acb){return _0x1343ee(_0x2b9acb- -_0x11a03e._0x457e44,_0x39dd90,_0x571480-0x0,_0x2b9acb-0xcd);}const _0x5de663=await _0x581455(_0x2f6a23)['catch'](()=>null);if(!_0x5de663||isProbablyBinary(_0x5de663))return void 0x0;return _0x5de663['toString'](_0x52baef(-_0x4ad8e1._0xfa870d,-_0x4ad8e1._0x112665,-_0x4ad8e1._0x496362,-_0x4ad8e1._0x57a6e3))[_0x52baef(-_0x4ad8e1._0x34c8ca,-0xb1,-0x2e8,-0x1ef)](/\r?\n/)[_0x394595(_0x4ad8e1._0x10099d,0x586,0x447,0x4ab)];}function createLsTool(_0x4d14be={}){const _0x11cbb9={_0x572ed0:0x2c8,_0x43e8b8:0x50e,_0x29777b:0x3ce,_0x964f0:0x570,_0x1e6d54:0x400,_0x4ebcb7:0x384,_0x4d11b0:0x3dd,_0x70108:0x3ad,_0x4e45c0:0x418},_0x124f9f={_0x59b3a1:0x40f,_0x4c34ac:0x4a6,_0x21e3a8:0x369,_0x41af37:0x13c,_0x763599:0x2fc,_0x36abbc:0x2ea,_0x416d62:0x3fd,_0x56c798:0x4d8,_0x2750b7:0x3e4,_0x7c0c52:0x3ec,_0x53ff52:0x481,_0x3774b3:0x2a8,_0x2819fc:0x26b,_0x29dfce:0x1c6,_0x497752:0x254,_0x31695b:0x455,_0x27c23e:0x6ae,_0x47625b:0x26d,_0x385489:0x322,_0x5e6241:0x2ab,_0x2a513b:0x396,_0xa56f15:0x521,_0x225dac:0x2f3,_0x39e9eb:0x1b6,_0xdd1bb0:0x3ab,_0x2e08f3:0x5c3,_0xa96ad4:0x4a4,_0x262f68:0x501,_0x226885:0x571,_0x165b63:0x4b7,_0x2efe55:0x569,_0xcd1a99:0x387,_0x175821:0x443,_0x2285c1:0x3fe,_0x3e695b:0x2ec,_0x59f823:0x480,_0x40133d:0x114,_0x48a819:0x27c,_0x2ce353:0x24e,_0x568dd2:0x1f6,_0x4d03ed:0x3ec,_0x20a962:0x45b,_0x320525:0x341,_0x34c90a:0x26e,_0x1e297e:0x18c,_0x484c1a:0x246,_0x19335d:0x36d,_0xcc6832:0x32f,_0x19f903:0x4a3,_0x2e4382:0x45c,_0x41676e:0x3c1},_0x26ddf9={_0x1ff535:0x152},_0x6679ac={_0x5e5e66:0x88},_0x4fc258=_0xc8103b[_0x13030e(_0x11cbb9._0x572ed0,_0x11cbb9._0x43e8b8,0x3d9,_0x11cbb9._0x29777b)](_0x4d14be[_0x3bc3dd(_0x11cbb9._0x964f0,0x582,0x45f,_0x11cbb9._0x1e6d54)]??process[_0x3bc3dd(_0x11cbb9._0x4ebcb7,0x31e,0x3dd,0x3df)]()),_0x302cb5=(_0x4d14be[_0x13030e(_0x11cbb9._0x4d11b0,0x31a,0x2be,0x2c0)]??[])['map'](_0x5653b5=>_0xc8103b[_0x13030e(0x2d6,0x39f,0x44a,0x3ce)](_0x5653b5));function _0x13030e(_0x55b118,_0x4a8b0b,_0x5d19f6,_0x2a2723){return _0x357fd3(_0x55b118-0x1de,_0x4a8b0b-_0x6679ac._0x5e5e66,_0x2a2723-0x36b,_0x5d19f6);}function _0x3bc3dd(_0x45feb6,_0x19f519,_0x4843a7,_0x29aa3c){return _0x357fd3(_0x45feb6-0x54,_0x19f519-_0x26ddf9._0x1ff535,_0x4843a7-0x35d,_0x19f519);}const _0x3e2639=_0x4d14be['name']??'Ls';return defineTool({'name':_0x3e2639,'description':'List\x20files\x20and\x20directories\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x3bc3dd(_0x11cbb9._0x70108,_0x11cbb9._0x4e45c0,0x3a4,0x2de),'properties':{'path':{'type':'string'},'limit':{'type':'number'}}},async *'execute'(_0x2d6d54){const _0x451d89={_0x1b964b:0xb6},_0x174834={_0x52dfb9:0xf1,_0x403d05:0x62};function _0x20df99(_0x3cff70,_0x4db23c,_0x2e50dc,_0x473851){return _0x3bc3dd(_0x3cff70-_0x174834._0x52dfb9,_0x473851,_0x4db23c- -0x12a,_0x473851-_0x174834._0x403d05);}const _0x385028=_0x2d6d54[_0x562ee9(_0x124f9f._0x59b3a1,_0x124f9f._0x4c34ac,_0x124f9f._0x21e3a8,0x514)]??'.',_0x3b0719=resolveAllowedPath(_0x4fc258,_0x302cb5,_0x385028),_0x53bf25=await _0x5d6145(_0x3b0719)[_0x20df99(0x9a,0x1b6,_0x124f9f._0x41af37,0x198)](()=>null);if(!_0x53bf25?.[_0x20df99(0x345,_0x124f9f._0x763599,_0x124f9f._0x36abbc,_0x124f9f._0x416d62)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x385028,{'path':_0x385028});const _0x47e8e6=_0x2d6d54['limit']??0x3e8,_0x2b92db=Math[_0x562ee9(0x415,_0x124f9f._0x56c798,_0x124f9f._0x2750b7,0x4f9)](Math[_0x562ee9(_0x124f9f._0x7c0c52,_0x124f9f._0x53ff52,0x528,_0x124f9f._0x3774b3)](Math[_0x20df99(_0x124f9f._0x2819fc,_0x124f9f._0x29dfce,_0x124f9f._0x497752,0x1f1)](_0x47e8e6),0x1),0x2710),_0x318174=await _0x445d23(_0x3b0719),_0x132dd5=[];for(const _0x123ab7 of _0x318174[_0x562ee9(0x57f,_0x124f9f._0x31695b,_0x124f9f._0x27c23e,0x5bd)](0x0,_0x2b92db)){const _0x188778=_0xc8103b[_0x20df99(0x18b,_0x124f9f._0x47625b,_0x124f9f._0x385489,_0x124f9f._0x5e6241)](_0x3b0719,_0x123ab7),_0x4c532d=await _0x5d6145(_0x188778)[_0x562ee9(_0x124f9f._0x2a513b,0x31d,0x462,0x427)](()=>null);if(!_0x4c532d)continue;let _0x3b69c5='other';if(_0x4c532d['isFile']())_0x3b69c5=_0x562ee9(0x3fe,0x49d,0x3a2,_0x124f9f._0xa56f15);else{if(_0x4c532d['isDirectory']())_0x3b69c5=_0x20df99(0x28c,_0x124f9f._0x225dac,_0x124f9f._0x39e9eb,_0x124f9f._0xdd1bb0);else{if(_0x4c532d['isSymbolicLink']())_0x3b69c5=_0x562ee9(_0x124f9f._0x2e08f3,_0x124f9f._0xa96ad4,0x617,_0x124f9f._0x262f68);}}const _0x23be9b={'name':_0x123ab7,'type':_0x3b69c5,'size':_0x4c532d[_0x562ee9(_0x124f9f._0x226885,_0x124f9f._0x165b63,0x445,_0x124f9f._0x2efe55)],'mtime':_0x4c532d[_0x562ee9(_0x124f9f._0xcd1a99,0x44a,_0x124f9f._0x175821,0x45f)],'mode':_0x4c532d[_0x20df99(0x3e9,0x383,0x2d6,0x2cd)]},_0x397e41=_0x3b69c5===_0x562ee9(_0x124f9f._0x2285c1,_0x124f9f._0x3e695b,0x534,_0x124f9f._0x59f823)?await countTextLines(_0x188778,_0x4c532d['size']):void 0x0;if(_0x397e41!==void 0x0)_0x23be9b['lines']=_0x397e41;_0x132dd5['push'](_0x23be9b);}_0x132dd5[_0x20df99(_0x124f9f._0x40133d,0x1d5,_0x124f9f._0x48a819,0xa7)]((_0x216d66,_0x35ba5e)=>_0x216d66[_0x562ee9(0x38c,0x29e,0x366,0x4ca)]['localeCompare'](_0x35ba5e[_0x20df99(0x16c,0x1ac,0x279,0x251)]));function _0x562ee9(_0x49dac5,_0x2ff993,_0x5b58c7,_0x1ae4bd){return _0x3bc3dd(_0x49dac5-0x1a6,_0x1ae4bd,_0x49dac5-_0x451d89._0x1b964b,_0x1ae4bd-0x70);}const _0x59f015={'path':_0x385028,'total':_0x132dd5[_0x20df99(0x35c,_0x124f9f._0x2ce353,0x1a8,_0x124f9f._0x568dd2)],'truncated':_0x318174[_0x562ee9(0x42e,_0x124f9f._0x4d03ed,_0x124f9f._0x20a962,0x340)]>_0x2b92db,'entries':_0x132dd5};return yield createToolOutput(_0x43ab67[_0x20df99(0x235,_0x124f9f._0x320525,0x249,_0x124f9f._0x34c90a)](_0x59f015,{'indent':0x2,'lineWidth':0x0})[_0x20df99(_0x124f9f._0x1e297e,_0x124f9f._0x484c1a,_0x124f9f._0x19335d,_0x124f9f._0xcc6832)](),{'path':_0x385028,'total':_0x132dd5[_0x562ee9(0x42e,_0x124f9f._0x19f903,0x3d1,_0x124f9f._0x2e4382)],'truncated':_0x318174[_0x562ee9(0x42e,_0x124f9f._0x41676e,0x346,0x525)]>_0x2b92db,'limit':_0x2b92db,'entries':_0x132dd5}),void 0x0;}});}import{stat as _0x57be1}from'fs/promises';import _0x36c066 from'path';import{fileURLToPath as _0x44e357}from'url';function severityName(_0x1236a5){const _0x170f12={_0x370b32:0x6e,_0xf89669:0xa4,_0x523cb3:0x319,_0x4d55ac:0x3a7,_0x4c6532:0x419,_0x204e93:0x47d,_0x5b3574:0x2c7,_0x215fed:0x392};function _0x226f0f(_0xad54cc,_0x17243c,_0x3c31fe,_0x541c30){return _0x357fd3(_0xad54cc-0xba,_0x17243c-0x4e,_0x541c30-0x325,_0x17243c);}function _0x42c4da(_0xdaa361,_0x30f1a2,_0x5ef8b6,_0x3c15a8){return _0x357fd3(_0xdaa361-0x54,_0x30f1a2-0x145,_0x5ef8b6-0xa5,_0x3c15a8);}switch(_0x1236a5){case 0x1:return _0x42c4da(-_0x170f12._0x370b32,_0x170f12._0xf89669,0xad,0xe5);case 0x2:return _0x226f0f(_0x170f12._0x523cb3,_0x170f12._0x4d55ac,0x322,_0x170f12._0x4c6532);case 0x3:return'Information';case 0x4:return'Hint';default:return _0x226f0f(_0x170f12._0x204e93,_0x170f12._0x5b3574,0x27b,_0x170f12._0x215fed);}}function formatSingleHover(_0x1d4ce5){const _0x49fd7c={_0x15c53c:0xe,_0x489fa0:0x28e,_0x408fef:0x19a,_0x235c90:0x1c2,_0x58ebdb:0x2d7,_0xb0245e:0x35c,_0x4ca0dd:0x80,_0x1af2cc:0x1b1,_0x52baa3:0x16,_0x37dc98:0x10f,_0x242f04:0x1e,_0x257056:0x162,_0x25d731:0x5c,_0x236b92:0x17,_0x2cbb35:0x168,_0x48a651:0x93,_0x1dcf5c:0xa,_0x37e33f:0x143,_0xf4a629:0x60,_0x3b0c56:0xe,_0x4b9037:0x277,_0x108236:0x293,_0x16c44c:0x147,_0xa76fc3:0x32d,_0xeb8c61:0x293},_0x4e1e6a={_0x23c8d4:0x25,_0x10ec5e:0x258},_0x5e4ed7=_0x1d4ce5['contents'];function _0x316cf1(_0x1676ee,_0x5df81c,_0x275cff,_0xc589f3){return _0x1343ee(_0x275cff- -0x5d,_0x1676ee,_0x275cff-0x1e0,_0xc589f3-0x23);}if(typeof _0x5e4ed7===_0x316cf1(-_0x49fd7c._0x15c53c,0x21,0x3d,-0xb5))return _0x5e4ed7;function _0x3913cc(_0x43c398,_0x2a87e1,_0x251745,_0x435d31){return _0x357fd3(_0x43c398-0x52,_0x2a87e1-_0x4e1e6a._0x23c8d4,_0x251745- -_0x4e1e6a._0x10ec5e,_0x2a87e1);}if(Array[_0x3913cc(-_0x49fd7c._0x489fa0,-0x8b,-0x15c,-0x8d)](_0x5e4ed7))return _0x5e4ed7[_0x3913cc(-_0x49fd7c._0x408fef,-_0x49fd7c._0x235c90,-_0x49fd7c._0x58ebdb,-_0x49fd7c._0xb0245e)](_0xb4ccfd=>typeof _0xb4ccfd===_0x316cf1(0x5c,-0x4d,0x3d,0xf2)?_0xb4ccfd:_0xb4ccfd['value'])[_0x316cf1(0x7e,_0x49fd7c._0x4ca0dd,0x9f,_0x49fd7c._0x1af2cc)](Boolean)[_0x316cf1(-_0x49fd7c._0x52baa3,_0x49fd7c._0x37dc98,-_0x49fd7c._0x242f04,-_0x49fd7c._0x257056)]('\x0a\x0a');if(_0x316cf1(-_0x49fd7c._0x25d731,0x7d,-_0x49fd7c._0x236b92,0x51)in _0x5e4ed7)return _0x5e4ed7[_0x316cf1(-0x127,-_0x49fd7c._0x2cbb35,-_0x49fd7c._0x48a651,-_0x49fd7c._0x1dcf5c)];return _0x5e4ed7['language']?_0x3913cc(-_0x49fd7c._0x37e33f,-_0x49fd7c._0xf4a629,-0xc4,_0x49fd7c._0x3b0c56)+_0x5e4ed7['language']+'\x0a'+_0x5e4ed7[_0x3913cc(-0x333,-_0x49fd7c._0x4b9037,-_0x49fd7c._0x108236,-0x2a1)]+_0x3913cc(-0x14b,-0xf4,-0x11e,-0x65):_0x5e4ed7[_0x3913cc(-_0x49fd7c._0x16c44c,-_0x49fd7c._0xa76fc3,-_0x49fd7c._0xeb8c61,-0x15e)];}function formatHover(_0x11884a){const _0x3c51e0={_0x3925b6:0x259,_0x15fc0f:0x293,_0x2f4c62:0x21a,_0x3f81a6:0x27,_0x8321e3:0xca},_0x398df8={_0x43ea70:0xab,_0x460454:0x37};if(_0x11884a[_0x3354ec(0x274,_0x3c51e0._0x3925b6,0x291,0x18c)]===0x0)return _0x3354ec(0x20a,0x314,0x25c,0x15b);function _0x3354ec(_0x594e8c,_0x27de49,_0x2d97a3,_0x42548f){return _0x1343ee(_0x594e8c-0x254,_0x42548f,_0x2d97a3-0x83,_0x42548f-0x180);}function _0x3aefc3(_0xd679a,_0x972435,_0x41ffff,_0xad17fc){return _0x357fd3(_0xd679a-_0x398df8._0x43ea70,_0x972435-_0x398df8._0x460454,_0xd679a- -0x103,_0x41ffff);}return _0x11884a['map'](formatSingleHover)[_0x3354ec(_0x3c51e0._0x15fc0f,_0x3c51e0._0x2f4c62,0x2b6,0x2d9)](_0x3aefc3(-0xd4,-0xb6,-_0x3c51e0._0x3f81a6,-_0x3c51e0._0x8321e3));}function locationPath(_0x51e705){const _0x39d342={_0x5c411a:0xfa,_0x2cdc2b:0xab,_0xb8ed0f:0x240,_0x252c5c:0x93},_0xde7893={_0x5c988b:0xe6};if(!_0x51e705[_0x3973a1(-_0x39d342._0x5c411a,-_0x39d342._0x2cdc2b,-_0x39d342._0xb8ed0f,-_0x39d342._0x252c5c)]('file://'))return _0x51e705;function _0x3973a1(_0x56e193,_0x35cddb,_0x5ec714,_0x3a5215){return _0x1343ee(_0x56e193- -_0xde7893._0x5c988b,_0x35cddb,_0x5ec714-0xf8,_0x3a5215-0x126);}return _0x44e357(_0x51e705);}function formatLocations(_0x31ce60){const _0x45f8ca={_0x3a99fe:0x1bd,_0x26c144:0x2b3,_0x3f51f2:0x18a,_0x5ef58f:0x1fa,_0x42c8e1:0x33b,_0x32c7c9:0x142},_0x214392={_0x3541e6:0x32e,_0x4d23ba:0x3e3,_0xd05b12:0xf,_0x4452b2:0x131,_0x3f3e70:0x47,_0xf1441c:0x5c8,_0x50eee4:0x647,_0x2f4a2d:0x64d,_0x40dbab:0x49d,_0x3a5a7b:0x5aa},_0x55c1f8={_0x2cb9e3:0x30},_0x4023ad={_0x1da3cf:0x108,_0x276f5e:0xdf},_0x2c8b44={_0x4ce6f2:0x239};function _0x33b40b(_0xbcacb,_0x31d212,_0x5ee76b,_0x4364c9){return _0x1343ee(_0xbcacb- -_0x2c8b44._0x4ce6f2,_0x5ee76b,_0x5ee76b-0x76,_0x4364c9-0x107);}if(_0x31ce60['length']===0x0)return _0x33b40b(-0x268,-_0x45f8ca._0x3a99fe,-0x13a,-0x20d);function _0x362170(_0x5ec75d,_0x34d202,_0x50d751,_0x1371c8){return _0x1343ee(_0x1371c8-0x1ac,_0x34d202,_0x50d751-_0x4023ad._0x1da3cf,_0x1371c8-_0x4023ad._0x276f5e);}return _0x31ce60[_0x33b40b(-_0x45f8ca._0x26c144,-0x26a,-_0x45f8ca._0x3f51f2,-0x275)](_0x16be0a=>{const _0x23a253={_0x2cf9c6:0xde,_0xa2f9fd:0x256};function _0x2d3f47(_0x5a0c27,_0x173098,_0x31ee30,_0x3dbbaa){return _0x362170(_0x5a0c27-_0x23a253._0x2cf9c6,_0x5a0c27,_0x31ee30-0x7,_0x3dbbaa-_0x23a253._0xa2f9fd);}function _0xd6213c(_0x2150d8,_0x198712,_0x23bb04,_0x1249f8){return _0x33b40b(_0x23bb04-_0x55c1f8._0x2cb9e3,_0x198712-0x18a,_0x198712,_0x1249f8-0x144);}const _0x168451=_0x16be0a[_0x2d3f47(_0x214392._0x3541e6,0x4ef,0x46c,_0x214392._0x4d23ba)][_0xd6213c(-0x7b,-_0x214392._0xd05b12,-_0x214392._0x4452b2,-_0x214392._0x3f3e70)];return locationPath(_0x16be0a['uri'])+':'+(_0x168451[_0x2d3f47(0x39a,_0x214392._0xf1441c,0x506,0x4b3)]+0x1)+':'+(_0x168451[_0x2d3f47(_0x214392._0x50eee4,_0x214392._0x2f4a2d,_0x214392._0x40dbab,_0x214392._0x3a5a7b)]+0x1);})[_0x33b40b(-_0x45f8ca._0x5ef58f,-_0x45f8ca._0x42c8e1,-0x205,-_0x45f8ca._0x32c7c9)]('\x0a');}function isDocumentSymbol(_0x4b86d8){const _0x51ce27={_0x30721e:0x33b},_0x1b352a={_0x73ed6b:0xff};function _0x48c149(_0x2fcd67,_0x4104e3,_0x87909b,_0x3bb22b){return _0x357fd3(_0x2fcd67-_0x1b352a._0x73ed6b,_0x4104e3-0xe4,_0x87909b-0x2c3,_0x2fcd67);}return'range'in _0x4b86d8&&_0x48c149(0x36a,0x3a7,_0x51ce27._0x30721e,0x40d)in _0x4b86d8;}function formatSymbols(_0x474f5d){const _0x4884d4={_0x1fa71c:0x15,_0x285b17:0x2f,_0x119913:0x1e1,_0x1139ca:0x119,_0x56bff1:0x12e},_0xb0304c={_0x463cc7:0x44a,_0x3d3e3c:0x393,_0xdc3f45:0xf,_0x14a43d:0x2d6,_0x4a1bbe:0x2e6,_0x3fa13f:0xfe,_0x4ece6f:0x296,_0x5e21ad:0xa1,_0x49c58a:0x57,_0x34e049:0xe5,_0x3cf0ff:0x1ff,_0x353757:0x222,_0x11605c:0x189,_0x5ee5da:0x1ac,_0x286863:0x5b,_0xaea837:0x5,_0x540e96:0x9f,_0x36e5fb:0x150,_0x4720b4:0x77,_0x3666aa:0x16c,_0x4bcc1c:0x202,_0x46ef95:0x1dc,_0x1c7e36:0x188,_0x23038c:0x1ef,_0x3e978f:0x20,_0x21c684:0x1ca,_0x452c96:0xc1,_0x3b5745:0x1bd},_0x3fbade={_0x3ede87:0x17e},_0x42ee72={_0x1a8ea0:0x3c,_0x159bc7:0x12a,_0x28989b:0x19e},_0x174435={_0x2b78d2:0x102,_0x124e02:0x1aa};function _0x2d46b1(_0x36c227,_0x322863,_0x4dddb1,_0x5d1299){return _0x1343ee(_0x5d1299- -_0x174435._0x2b78d2,_0x36c227,_0x4dddb1-_0x174435._0x124e02,_0x5d1299-0x11);}function _0x711070(_0xdac5e8,_0x303933,_0x3975bd,_0x29405b){return _0x357fd3(_0xdac5e8-_0x42ee72._0x1a8ea0,_0x303933-_0x42ee72._0x159bc7,_0x3975bd- -_0x42ee72._0x28989b,_0x29405b);}if(_0x474f5d['length']===0x0)return _0x711070(0x129,_0x4884d4._0x1fa71c,_0x4884d4._0x285b17,0xd7);return _0x474f5d[_0x711070(-_0x4884d4._0x119913,-0x343,-0x21d,-0x268)](_0x1a87d6=>{const _0x760cfe={_0x12fffa:0x18a,_0xe3e693:0x2e};function _0x2cee9b(_0x416ba0,_0x54a742,_0x45d5b6,_0x2b4160){return _0x711070(_0x416ba0-0x44,_0x54a742-_0x3fbade._0x3ede87,_0x45d5b6-0xbc,_0x2b4160);}function _0x5d9616(_0x4440a4,_0x353268,_0x4b86e5,_0x4a3be0){return _0x2d46b1(_0x353268,_0x353268-_0x760cfe._0x12fffa,_0x4b86e5-_0x760cfe._0xe3e693,_0x4a3be0-0x310);}if(isDocumentSymbol(_0x1a87d6))return _0x1a87d6['name']+'\x20('+_0x1a87d6['kind']+_0x5d9616(_0xb0304c._0x463cc7,_0xb0304c._0x3d3e3c,0x2d0,0x3ba)+(_0x1a87d6[_0x5d9616(0x28f,0x2f3,0x20d,0x1ef)][_0x2cee9b(-0x20,0xa,-_0xb0304c._0xdc3f45,-0x7b)]['line']+0x1)+':'+(_0x1a87d6['range'][_0x5d9616(0x2b8,_0xb0304c._0x14a43d,0x226,_0xb0304c._0x4a1bbe)][_0x2cee9b(0x1f1,0x59,0xc1,0x149)]+0x1)+']';return _0x1a87d6[_0x5d9616(0x267,_0xb0304c._0x3fa13f,_0xb0304c._0x4ece6f,0x18c)]+'\x20('+_0x1a87d6[_0x2cee9b(-0xed,-0x81,-_0xb0304c._0x5e21ad,-_0xb0304c._0x49c58a)]+')\x20'+locationPath(_0x1a87d6[_0x5d9616(0x237,0x1d9,_0xb0304c._0x34e049,0x16c)][_0x5d9616(0xef,0x2f2,_0xb0304c._0x3cf0ff,_0xb0304c._0x353757)])+':'+(_0x1a87d6[_0x2cee9b(-0x1ae,-0x23e,-_0xb0304c._0x11605c,-_0xb0304c._0x5ee5da)][_0x2cee9b(-0xf4,-0x24a,-0x106,0x44)]['start'][_0x2cee9b(_0xb0304c._0x286863,-0xf6,-0x36,_0xb0304c._0xaea837)]+0x1)+':'+(_0x1a87d6[_0x5d9616(_0xb0304c._0x540e96,_0xb0304c._0x36e5fb,_0xb0304c._0x4720b4,_0xb0304c._0x3666aa)][_0x5d9616(_0xb0304c._0x4bcc1c,_0xb0304c._0x46ef95,_0xb0304c._0x1c7e36,_0xb0304c._0x23038c)]['start'][_0x2cee9b(_0xb0304c._0x3e978f,_0xb0304c._0x21c684,_0xb0304c._0x452c96,_0xb0304c._0x3b5745)]+0x1);})[_0x2d46b1(-_0x4884d4._0x1139ca,0x3e,-_0x4884d4._0x56bff1,-0xc3)]('\x0a');}function formatDiagnostics(_0x1ab6c3){const _0x28ab11={_0x568df4:0x5b,_0x3ef565:0x85,_0x1bc554:0x188,_0x3fa837:0x109,_0x4dd374:0x1c2},_0x16cb73={_0x4c53c7:0x2d6,_0x1d3329:0x270,_0x43adf0:0x1b3,_0x519572:0x28f,_0x1cde37:0x3ca,_0x67bb5e:0x2a0,_0x33dca8:0x249,_0x84030f:0x32f,_0x10e29d:0x2b4,_0x4e4e51:0x33f},_0x4a3f45={_0x3ff679:0x183,_0x3e8f6c:0x88,_0x4821d0:0x72},_0x527661={_0x33d1cb:0x1b0,_0x2b932c:0x34b};function _0x4e0643(_0x40fdba,_0x7781e0,_0x4a7420,_0x2fe3c9){return _0x357fd3(_0x40fdba-_0x527661._0x33d1cb,_0x7781e0-0x1aa,_0x40fdba-_0x527661._0x2b932c,_0x7781e0);}function _0x340056(_0x3e8a6f,_0x5bd649,_0x2fdaf1,_0x474141){return _0x1343ee(_0x5bd649-_0x4a3f45._0x3ff679,_0x474141,_0x2fdaf1-_0x4a3f45._0x3e8f6c,_0x474141-_0x4a3f45._0x4821d0);}if(_0x1ab6c3[_0x340056(_0x28ab11._0x568df4,0x1a3,0x11f,_0x28ab11._0x3ef565)]===0x0)return'No\x20diagnostics';return _0x1ab6c3[_0x340056(_0x28ab11._0x1bc554,_0x28ab11._0x3fa837,0x136,0x7d)](_0x4c1388=>{const _0x509984={_0x39c408:0x161,_0x21281c:0x1b2},_0x469ae7={_0x1cd559:0x1e};function _0x337bd0(_0x553d46,_0x198476,_0x5bb3c1,_0x62aecc){return _0x340056(_0x553d46-0x9d,_0x5bb3c1-0x15,_0x5bb3c1-_0x469ae7._0x1cd559,_0x198476);}const _0x1c4f2e=_0x4c1388['range'][_0x337bd0(0x33f,_0x16cb73._0x4c53c7,_0x16cb73._0x1d3329,0x337)];function _0x46997d(_0x496d68,_0x5d15c3,_0x59c334,_0x2e3219){return _0x4e0643(_0x5d15c3- -0x1bf,_0x2e3219,_0x59c334-_0x509984._0x39c408,_0x2e3219-_0x509984._0x21281c);}return severityName(_0x4c1388[_0x46997d(_0x16cb73._0x43adf0,_0x16cb73._0x519572,_0x16cb73._0x1cde37,0x2ec)])+'\x20['+(_0x1c4f2e[_0x337bd0(_0x16cb73._0x67bb5e,0x384,0x249,0x220)]+0x1)+':'+(_0x1c4f2e[_0x46997d(_0x16cb73._0x33dca8,_0x16cb73._0x84030f,_0x16cb73._0x10e29d,0x37d)]+0x1)+']\x20'+_0x4c1388[_0x46997d(_0x16cb73._0x4e4e51,0x26e,0x29a,0x2bb)];})[_0x340056(0x85,_0x28ab11._0x4dd374,0x83,0x22b)]('\x0a');}function formatIncomingCalls(_0xa91c9c){const _0x496eb5={_0x24ff69:0x1e9,_0x2d6b00:0x25b,_0x2272d2:0x158,_0x16a938:0xbb,_0x496990:0x29,_0x30c500:0x38,_0x1f4f84:0x35,_0x35d4c1:0x243,_0x1a45df:0x27a,_0x1a7a19:0x235,_0x5bfaaf:0x26a},_0xa0acfd={_0x4d7458:0xaf,_0x25e769:0x18f,_0x481138:0x161},_0x41bed8={_0x47b45c:0x10e};function _0x575f62(_0x354d39,_0x64a9ef,_0x12de62,_0x2c078b){return _0x357fd3(_0x354d39-_0x41bed8._0x47b45c,_0x64a9ef-0x3e,_0x64a9ef-0x240,_0x12de62);}if(_0xa91c9c[_0x575f62(_0x496eb5._0x24ff69,_0x496eb5._0x2d6b00,_0x496eb5._0x2272d2,0x154)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x3cdd22(_0x445236,_0x2d6fc1,_0xfcfc4b,_0x3b14ad){return _0x1343ee(_0x3b14ad-_0xa0acfd._0x4d7458,_0xfcfc4b,_0xfcfc4b-_0xa0acfd._0x25e769,_0x3b14ad-_0xa0acfd._0x481138);}return _0xa91c9c[_0x3cdd22(_0x496eb5._0x16a938,_0x496eb5._0x496990,_0x496eb5._0x30c500,_0x496eb5._0x1f4f84)](_0x41aa10=>_0x41aa10[_0x575f62(0x3d5,0x305,0x362,0x317)][_0x3cdd22(-0xd4,0x26,0xf4,0x2d)])[_0x575f62(_0x496eb5._0x35d4c1,_0x496eb5._0x1a45df,_0x496eb5._0x1a7a19,_0x496eb5._0x5bfaaf)]('\x0a');}function formatOutgoingCalls(_0x577552){const _0x51d25c={_0x12f7a0:0xde,_0x139a4e:0x28,_0x52534a:0x5f1,_0x16649d:0x4e1},_0x33cc12={_0x2abeee:0xf1,_0x3f7a5b:0xfd},_0x4870cc={_0x563754:0x1af};if(_0x577552[_0x2b91b1(0x118,-0x32,0xea,_0x51d25c._0x12f7a0)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x5adc00(_0x2d9c5e,_0x3990b8,_0x3c0b35,_0x1a2de3){return _0x357fd3(_0x2d9c5e-0x13b,_0x3990b8-_0x4870cc._0x563754,_0x1a2de3-0x4a7,_0x3c0b35);}function _0x2b91b1(_0x368b0d,_0x505977,_0x23cdfb,_0x11d6df){return _0x357fd3(_0x368b0d-_0x33cc12._0x2abeee,_0x505977-0x29,_0x368b0d-_0x33cc12._0x3f7a5b,_0x11d6df);}return _0x577552[_0x2b91b1(0x7e,-0x14,-_0x51d25c._0x139a4e,0x1b8)](_0x232b23=>_0x232b23['to'][_0x5adc00(0x498,0x3e3,0x53f,0x420)])[_0x5adc00(0x586,_0x51d25c._0x52534a,0x3c9,_0x51d25c._0x16649d)]('\x0a');}function toStructured(_0x596734){const _0x1991de={_0x35274e:0x5fa,_0x82eb2d:0x660,_0x598d42:0x656,_0x3d5650:0x536,_0x24242d:0x60d},_0x394753={_0x1ffd11:0x186,_0xd111d2:0x19c,_0x569c4c:0x428},_0x3870de={_0x4299ff:0x119};function _0x387891(_0x403b8f,_0x13d9dc,_0x437d45,_0x536091){return _0x1343ee(_0x437d45-0x2a6,_0x536091,_0x437d45-_0x3870de._0x4299ff,_0x536091-0xac);}function _0x399525(_0x5bca43,_0x4eb4da,_0x4e3ddb,_0x2342ac){return _0x357fd3(_0x5bca43-_0x394753._0x1ffd11,_0x4eb4da-_0x394753._0xd111d2,_0x4eb4da-_0x394753._0x569c4c,_0x4e3ddb);}return JSON[_0x399525(0x6ee,_0x1991de._0x35274e,0x60f,_0x1991de._0x82eb2d)](JSON[_0x399525(_0x1991de._0x598d42,_0x1991de._0x3d5650,0x67a,_0x1991de._0x24242d)](_0x596734));}async function assertFile(_0x36a699){const _0xe028ea={_0x18f011:0xdf,_0x69b749:0x5de,_0x29588f:0x644},_0x10d566={_0x2d4543:0x1b7,_0x1df976:0xf5},_0x4c0384={_0x18dfa3:0x44c},_0x4fbbb1=await _0x57be1(_0x36a699);function _0x39b5f7(_0x486c0f,_0x3c495d,_0x42aadd,_0x5e9791){return _0x1343ee(_0x3c495d-_0x4c0384._0x18dfa3,_0x42aadd,_0x42aadd-0x1cf,_0x5e9791-0x13f);}function _0x3acf0d(_0x10a03d,_0xe4abaf,_0x4f6384,_0x15ae85){return _0x357fd3(_0x10a03d-0x157,_0xe4abaf-_0x10d566._0x2d4543,_0xe4abaf- -_0x10d566._0x1df976,_0x10a03d);}if(!_0x4fbbb1[_0x3acf0d(-0x157,-_0xe028ea._0x18f011,-0x1e4,-0xb6)]())throw new ToolExecutionError(_0x39b5f7(_0xe028ea._0x69b749,0x54f,_0xe028ea._0x29588f,0x516)+_0x36a699,{'path':_0x36a699});}function validatePosition(_0x56ef95,_0xf4f177){const _0x4df86f={_0x1cfed4:0x54d,_0x5a363e:0x491},_0x526c86={_0x32477d:0xc2},_0x5e7d48={_0x588d5b:0x3e0,_0xaa0bec:0x13c,_0x57dfdc:0xc4};if(!Number[_0x394e0e(0x680,0x5de,0x62a,_0x4df86f._0x1cfed4)](_0x56ef95)||_0x56ef95<0x1)throw new ToolExecutionError(_0x2f5352(0x358,0x3bc,0x480,0x35d),{'line':_0x56ef95});function _0x2f5352(_0x3e3b6a,_0x11c9b0,_0x52161e,_0x45b53f){return _0x1343ee(_0x3e3b6a-_0x5e7d48._0x588d5b,_0x45b53f,_0x52161e-_0x5e7d48._0xaa0bec,_0x45b53f-_0x5e7d48._0x57dfdc);}function _0x394e0e(_0x17603b,_0x2977c1,_0x5441e9,_0x3df76b){return _0x357fd3(_0x17603b-0x1dc,_0x2977c1-_0x526c86._0x32477d,_0x3df76b-0x43a,_0x2977c1);}if(!Number[_0x394e0e(0x4f3,_0x4df86f._0x5a363e,0x521,0x54d)](_0xf4f177)||_0xf4f177<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0xf4f177});}function createLspTool(_0x4812ef={}){const _0x53dbfb={_0x57042c:0x594,_0x44dcdb:0x50e,_0x30d1b3:0x134,_0x16a13a:0x297,_0x1f5121:0x164,_0x1b393c:0x212,_0x1b8c41:0x293,_0x1316e8:0x1e6,_0x535f18:0x158,_0x18d232:0x3e6,_0x5f5667:0x467,_0x279d4b:0x45e,_0x1fb7c7:0x360,_0x267826:0x38c,_0x545aad:0x28b,_0x3ec7c2:0x384,_0x1340a8:0x3ec,_0x4b5bc6:0x343,_0x52b20f:0x262,_0x12eb9a:0x2df,_0x26ed2a:0x249,_0x584e80:0x309,_0x4d53df:0x23b,_0x5ac25a:0x185,_0x2d9682:0x244,_0x5889b4:0x296,_0x312ba4:0x36f,_0x4817ba:0x444,_0x47cce5:0x2f4,_0x4d8cc2:0x21a,_0x45e896:0x169,_0x2fe775:0x30,_0xf1b8bf:0x4c8,_0x2e2243:0x63b,_0x2d3fc6:0x128,_0x50f89b:0x1d1,_0x38ad70:0x161,_0x283012:0x31d,_0x260c27:0x331,_0x9f6d82:0x3f3,_0xf2e391:0x17a,_0x23c138:0x115,_0x8334b6:0xf1},_0x59a471={_0x2d4baa:0x736,_0x308ed8:0x5d2,_0x2c3819:0x642,_0x183f2c:0x74,_0x15ea85:0x3c,_0x5180dc:0x191,_0x4d52db:0x7c,_0x3fa6a3:0x5ae,_0x29646a:0x509,_0x3f81c2:0x60f,_0x86c242:0x55d,_0x1b716d:0x10,_0xb3891:0x5a9,_0x316112:0x4eb,_0x3acc25:0x3ee,_0xccf68b:0x58d,_0x45bf04:0x470,_0x2e295a:0x3f0,_0x47c3df:0x411,_0x55ca47:0x4ff,_0x258c43:0x5c8,_0x103ca5:0x5a5,_0x7f19b1:0x4b4,_0x49fa7e:0x562,_0x28dff7:0x54e,_0x459f6f:0x59b,_0x15fc51:0xb4,_0x5c53f6:0x83,_0x172bf6:0x111,_0x70b161:0x1a2,_0xd9bf1e:0x245,_0x34fe3d:0x8d,_0x310872:0x452,_0x321da8:0x4a8,_0xe7a044:0x4ac,_0x35fad3:0x5c7,_0x4508e2:0x488,_0x4ddc56:0x4ac,_0x376a82:0x552,_0x277098:0x6ba,_0x5deb75:0x8f,_0x28b341:0xdf,_0x569ac1:0x60,_0x1e48e4:0x69,_0x4a28f4:0x57,_0x366df6:0xd8,_0x27a4c0:0x170,_0xa83300:0x9c,_0x172b46:0x29c,_0x2c96ba:0x43f,_0x2af0b2:0x4a5,_0xc1b4a3:0x449,_0x351587:0x506,_0x5a7286:0x1b8,_0x4a65dc:0xb1,_0x235543:0x499,_0x533e82:0xed,_0xdfbf93:0x193,_0xadaa02:0x1ef},_0x5bcbeb={_0x51de1f:0x26b,_0x7c10aa:0x16c},_0x43cd76={_0x4d5e95:0xd9,_0x352e36:0x65};function _0x2d4923(_0x1583c6,_0x2444f5,_0x15e327,_0x5c1d18){return _0x357fd3(_0x1583c6-_0x43cd76._0x4d5e95,_0x2444f5-_0x43cd76._0x352e36,_0x5c1d18-0x40b,_0x15e327);}function _0x4218c8(_0x5349ee,_0x32397f,_0x118a62,_0x23c1d3){return _0x1343ee(_0x118a62- -_0x5bcbeb._0x51de1f,_0x23c1d3,_0x118a62-0x148,_0x23c1d3-_0x5bcbeb._0x7c10aa);}const _0x452475=_0x36c066[_0x2d4923(0x454,_0x53dbfb._0x57042c,_0x53dbfb._0x44dcdb,0x46e)](_0x4812ef[_0x4218c8(-_0x53dbfb._0x30d1b3,-_0x53dbfb._0x16a13a,-_0x53dbfb._0x1f5121,-_0x53dbfb._0x1b393c)]??process[_0x4218c8(-_0x53dbfb._0x1b8c41,-0x2e4,-_0x53dbfb._0x1316e8,-_0x53dbfb._0x535f18)]()),_0x3e4723=(_0x4812ef[_0x2d4923(_0x53dbfb._0x18d232,_0x53dbfb._0x5f5667,_0x53dbfb._0x279d4b,_0x53dbfb._0x1fb7c7)]??[])[_0x2d4923(0x425,0x45c,_0x53dbfb._0x267826,0x38c)](_0x468d6d=>_0x36c066[_0x2d4923(0x48e,0x43c,0x445,0x46e)](_0x468d6d)),_0x249374=_0x4812ef[_0x2d4923(_0x53dbfb._0x545aad,0x2ba,0x428,_0x53dbfb._0x3ec7c2)]??_0x2d4923(_0x53dbfb._0x1340a8,0x34a,_0x53dbfb._0x4b5bc6,0x415);return defineTool({'name':_0x249374,'description':_0x4218c8(-_0x53dbfb._0x52b20f,-0x36d,-0x2d4,-_0x53dbfb._0x12eb9a),'inputSchema':{'type':_0x4218c8(-_0x53dbfb._0x26ed2a,-_0x53dbfb._0x584e80,-0x21f,-0x1d2),'properties':{'operation':{'type':'string','enum':['goToDefinition','findReferences',_0x4218c8(-_0x53dbfb._0x4d53df,-_0x53dbfb._0x5ac25a,-0x226,-_0x53dbfb._0x2d9682),'documentSymbol',_0x4218c8(-_0x53dbfb._0x5889b4,-0x2d6,-0x1e7,-0x25f),'goToImplementation',_0x4218c8(-0x240,-_0x53dbfb._0x312ba4,-0x239,-0x13f),_0x4218c8(-0x474,-0x264,-0x326,-0x2f9),'outgoingCalls',_0x2d4923(0x274,0x2a6,_0x53dbfb._0x4817ba,0x38f)]},'filePath':{'type':_0x4218c8(-_0x53dbfb._0x47cce5,-_0x53dbfb._0x4d8cc2,-0x1d1,-_0x53dbfb._0x45e896)},'line':{'type':_0x4218c8(-0x1c5,-0x17d,-0x123,-_0x53dbfb._0x2fe775)},'character':{'type':_0x2d4923(_0x53dbfb._0xf1b8bf,_0x53dbfb._0x2e2243,0x4b6,0x54e)},'query':{'type':_0x4218c8(-0x141,-_0x53dbfb._0x2d3fc6,-_0x53dbfb._0x50f89b,-_0x53dbfb._0x38ad70)}},'required':[_0x2d4923(_0x53dbfb._0x283012,0x2e9,0x45a,0x402),_0x2d4923(_0x53dbfb._0x260c27,_0x53dbfb._0x9f6d82,0x33a,0x3b0),_0x4218c8(-_0x53dbfb._0xf2e391,-0x1e5,-0x1ba,-_0x53dbfb._0x23c138),_0x4218c8(0x47,-_0x53dbfb._0x8334b6,-0xc3,-_0x53dbfb._0x535f18)]},async *'execute'(_0x37cbd1){const _0x597f0f={_0x39642c:0x4c1},_0x4a2031=_0x4812ef[_0x502e16(0x65a,0x69d,0x602,_0x59a471._0x2d4baa)];if(!_0x4a2031)throw new ToolExecutionError('LSP\x20service\x20is\x20not\x20available');if(!_0x4a2031[_0x502e16(_0x59a471._0x308ed8,_0x59a471._0x2c3819,0x544,0x592)]())throw new ToolExecutionError(_0x5348a3(_0x59a471._0x183f2c,_0x59a471._0x15ea85,_0x59a471._0x5180dc,_0x59a471._0x4d52db));const _0x502b6b=_0x37cbd1[_0x502e16(0x5b0,_0x59a471._0x3fa6a3,0x463,0x58b)];validatePosition(_0x37cbd1['line'],_0x37cbd1[_0x502e16(_0x59a471._0x29646a,0x4f6,_0x59a471._0x3f81c2,_0x59a471._0x86c242)]);if(_0x502b6b===_0x5348a3(_0x59a471._0x1b716d,-0x13f,-0x69,-0x37)){if(!_0x37cbd1['query']?.['trim']())throw new ToolExecutionError(_0x5348a3(-0x129,0xad,-0x13a,-0x91));const _0x3cad32=await _0x4a2031[_0x502e16(0x608,_0x59a471._0xb3891,_0x59a471._0x316112,_0x59a471._0x3acc25)](_0x37cbd1['query'][_0x502e16(0x4cb,_0x59a471._0xccf68b,_0x59a471._0x45bf04,0x451)]());return yield createToolOutput(formatSymbols(_0x3cad32),{'operation':_0x502b6b,'query':_0x37cbd1['query'],'symbols':_0x3cad32}),void 0x0;}const _0x2ac78b=resolveAllowedPath(_0x452475,_0x3e4723,_0x37cbd1[_0x502e16(_0x59a471._0x2e295a,0x457,_0x59a471._0x47c3df,_0x59a471._0x55ca47)]);await assertFile(_0x2ac78b);if(!await _0x4a2031[_0x502e16(_0x59a471._0x258c43,_0x59a471._0x103ca5,_0x59a471._0x7f19b1,_0x59a471._0x49fa7e)](_0x2ac78b))throw new ToolExecutionError(_0x502e16(0x6a9,_0x59a471._0x28dff7,_0x59a471._0x459f6f,0x5a5)+_0x37cbd1[_0x5348a3(-_0x59a471._0x15fc51,-0x151,-_0x59a471._0x5c53f6,-_0x59a471._0x172bf6)],{'filePath':_0x37cbd1[_0x5348a3(-_0x59a471._0x70b161,-0xe5,-_0x59a471._0xd9bf1e,-0x111)]});function _0x5348a3(_0x323422,_0x2e34a9,_0x4396fe,_0x933771){return _0x2d4923(_0x323422-0x7f,_0x2e34a9-0x42,_0x4396fe,_0x933771- -_0x597f0f._0x39642c);}await _0x4a2031['touchFile'](_0x2ac78b,!![]);const _0x293562={'file':_0x2ac78b,'line':_0x37cbd1[_0x5348a3(_0x59a471._0x34fe3d,-0x108,0x7d,-0xa)]-0x1,'character':_0x37cbd1[_0x5348a3(0x1a0,-0x32,0x221,0xed)]-0x1};function _0x502e16(_0x3be731,_0x119a69,_0x46f808,_0x4b77c4){return _0x2d4923(_0x3be731-0x150,_0x119a69-0xff,_0x4b77c4,_0x46f808-0x61);}switch(_0x502b6b){case _0x502e16(_0x59a471._0x310872,_0x59a471._0x321da8,_0x59a471._0xe7a044,_0x59a471._0x35fad3):{const _0x1d93ef=await _0x4a2031[_0x502e16(0x5e5,_0x59a471._0x4508e2,_0x59a471._0x4ddc56,_0x59a471._0x376a82)](_0x293562);return yield createToolOutput(formatHover(_0x1d93ef),{'operation':_0x502b6b,'filePath':_0x2ac78b,'hover':_0x1d93ef}),void 0x0;}case'diagnostics':{const _0x29299d=await _0x4a2031[_0x502e16(_0x59a471._0x277098,0x65d,0x56d,0x4e3)](_0x2ac78b);return yield createToolOutput(formatDiagnostics(_0x29299d),{'operation':_0x502b6b,'filePath':_0x2ac78b,'diagnostics':_0x29299d}),void 0x0;}case _0x5348a3(-_0x59a471._0x5deb75,0x92,_0x59a471._0x28b341,_0x59a471._0x569ac1):{const _0x3aee2a=await _0x4a2031[_0x5348a3(-_0x59a471._0x1e48e4,0x13a,0x8e,_0x59a471._0x4a28f4)](_0x293562);return yield createToolOutput(formatLocations(_0x3aee2a),{'operation':_0x502b6b,'filePath':_0x2ac78b,'locations':_0x3aee2a}),void 0x0;}case _0x5348a3(0xb0,-0xd4,-0xdd,-0x81):{const _0x5d7ec3=await _0x4a2031['references'](_0x293562);return yield createToolOutput(formatLocations(_0x5d7ec3),{'operation':_0x502b6b,'filePath':_0x2ac78b,'locations':_0x5d7ec3}),void 0x0;}case _0x5348a3(-_0x59a471._0x366df6,-0x1dc,-0x1b1,-_0x59a471._0x27a4c0):{const _0x1e57de=await _0x4a2031[_0x5348a3(-0x54,-_0x59a471._0xa83300,-_0x59a471._0x172b46,-0x163)](_0x293562);return yield createToolOutput(formatLocations(_0x1e57de),{'operation':_0x502b6b,'filePath':_0x2ac78b,'locations':_0x1e57de}),void 0x0;}case _0x502e16(_0x59a471._0x2c96ba,_0x59a471._0x2af0b2,0x449,0x48d):{const _0x36ba03=await _0x4a2031[_0x502e16(0x456,0x4d1,_0x59a471._0xc1b4a3,_0x59a471._0x351587)](_0x2ac78b);return yield createToolOutput(formatSymbols(_0x36ba03),{'operation':_0x502b6b,'filePath':_0x2ac78b,'symbols':_0x36ba03}),void 0x0;}case _0x5348a3(-_0x59a471._0x5a7286,-0x94,_0x59a471._0x4a65dc,-0x89):{const _0x942c99=await _0x4a2031[_0x502e16(0x3c8,0x496,_0x59a471._0x235543,0x39a)](_0x293562);return yield createToolOutput(formatSymbols(_0x942c99),{'operation':_0x502b6b,'filePath':_0x2ac78b,'symbols':toStructured(_0x942c99)}),void 0x0;}case'incomingCalls':{const _0x3e01d7=await _0x4a2031['incomingCalls'](_0x293562);return yield createToolOutput(formatIncomingCalls(_0x3e01d7),{'operation':_0x502b6b,'filePath':_0x2ac78b,'calls':toStructured(_0x3e01d7)}),void 0x0;}case _0x5348a3(_0x59a471._0x533e82,_0x59a471._0xdfbf93,_0x59a471._0xadaa02,0xe5):{const _0x129a3a=await _0x4a2031['outgoingCalls'](_0x293562);return yield createToolOutput(formatOutgoingCalls(_0x129a3a),{'operation':_0x502b6b,'filePath':_0x2ac78b,'calls':toStructured(_0x129a3a)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x379786,readFile as _0x4d3522,writeFile as _0x168237}from'fs/promises';import{join as _0x438555}from'path';function sanitizeStorageKey(_0x1573ab){const _0x5b8fae={_0x271407:0x166,_0x28dc91:0x29,_0x1fde36:0x98},_0x11d8a2={_0x263259:0x161};function _0x1c0c9f(_0x28c8b0,_0x5a2aa9,_0x3bb118,_0x224e83){return _0x357fd3(_0x28c8b0-0x84,_0x5a2aa9-_0x11d8a2._0x263259,_0x224e83- -0xba,_0x28c8b0);}function _0x2a8317(_0x22ec21,_0x154e6e,_0x58f110,_0x3fd416){return _0x1343ee(_0x3fd416- -0x12a,_0x154e6e,_0x58f110-0x9b,_0x3fd416-0x54);}return _0x1573ab[_0x1c0c9f(0xd,-_0x5b8fae._0x271407,-0x260,-0x122)](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||_0x2a8317(-0x148,-0x12e,_0x5b8fae._0x28dc91,-_0x5b8fae._0x1fde36);}function storagePath(_0x3241bf){const _0x22eaee={_0x1e8dc9:0x1b7,_0x4576fb:0xda,_0x2f50c5:0x5b,_0x26f07b:0xbb,_0x24f0e5:0x11a},_0x29df7b={_0x260a3c:0xc5,_0x1520ca:0x1b1},_0x44c397={_0x3b8aa7:0x1ed,_0x3ce4b1:0xf0},_0x181093=sanitizeStorageKey(_0x3241bf[_0x57ce54(-_0x22eaee._0x1e8dc9,-0x209,-0x4e,-0x118)][_0x57ce54(_0x22eaee._0x4576fb,0xcd,-0x5f,_0x22eaee._0x2f50c5)]?.[_0x57ce54(-_0x22eaee._0x26f07b,-_0x22eaee._0x24f0e5,0x73,-0x95)]??_0x3241bf['serverName']);function _0x57ce54(_0x4a54cb,_0x182689,_0x1775e9,_0x49f2f1){return _0x357fd3(_0x4a54cb-_0x44c397._0x3b8aa7,_0x182689-0x125,_0x49f2f1- -_0x44c397._0x3ce4b1,_0x1775e9);}function _0x1457e5(_0x33a44c,_0x35ba08,_0x1faa61,_0x1e51fe){return _0x1343ee(_0x1faa61-_0x29df7b._0x260a3c,_0x33a44c,_0x1faa61-_0x29df7b._0x1520ca,_0x1e51fe-0xa7);}return _0x438555(_0x3241bf['storageDir'],_0x181093+'.json');}async function readStore(_0x459037){const _0x4b1880={_0x4735eb:0x2f2,_0x293047:0x20c,_0x13a213:0xc,_0x13d8eb:0x5,_0x4fb46f:0x363,_0x4ea613:0x33c,_0x1b85bf:0x2bc},_0x22fddd={_0x3ad1:0x214,_0x4f127d:0x1c4};function _0x386771(_0x29ef02,_0x593049,_0x395955,_0x2a42b7){return _0x1343ee(_0x29ef02-_0x22fddd._0x3ad1,_0x2a42b7,_0x395955-0x74,_0x2a42b7-_0x22fddd._0x4f127d);}function _0x1dd650(_0x128fe4,_0x3eaa88,_0x453bb7,_0x3aa42f){return _0x1343ee(_0x3aa42f- -0x2e,_0x128fe4,_0x453bb7-0x1a4,_0x3aa42f-0x10a);}try{return JSON['parse'](await _0x4d3522(_0x459037,_0x386771(_0x4b1880._0x4735eb,0x37e,0x272,_0x4b1880._0x293047)));}catch(_0x5efdb4){if(_0x5efdb4 instanceof Error&&_0x1dd650(_0x4b1880._0x13a213,0x1f,-0x138,-_0x4b1880._0x13d8eb)in _0x5efdb4&&_0x5efdb4['code']===_0x386771(0x33d,_0x4b1880._0x4fb46f,_0x4b1880._0x4ea613,_0x4b1880._0x1b85bf))return{};throw _0x5efdb4;}}async function writeStore(_0x337a20,_0x25a20f){const _0x10606e={_0xde1014:0x535,_0x300afd:0x3ac,_0xbfaa48:0x39a,_0x98cd36:0x472,_0x2fb72f:0x48d},_0x1f3131={_0x1e74db:0xc3},_0x208b29={_0x153b1b:0x3af,_0x345f4a:0xec};function _0x8ae5f2(_0x29290c,_0x138f64,_0x1fe1a2,_0x589c96){return _0x1343ee(_0x1fe1a2-_0x208b29._0x153b1b,_0x29290c,_0x1fe1a2-_0x208b29._0x345f4a,_0x589c96-0x168);}await _0x379786(_0x438555(_0x337a20,'..'),{'recursive':!![]});function _0x1ca237(_0x48244c,_0x103c59,_0x497f7c,_0x52b667){return _0x357fd3(_0x48244c-0x58,_0x103c59-_0x1f3131._0x1e74db,_0x497f7c-0x4,_0x52b667);}await _0x168237(_0x337a20,JSON[_0x8ae5f2(_0x10606e._0xde1014,_0x10606e._0x300afd,0x4c2,_0x10606e._0xbfaa48)](_0x25a20f,null,0x2),_0x8ae5f2(0x4e4,_0x10606e._0x98cd36,_0x10606e._0x2fb72f,0x498));}async function updateStore(_0x40cfc8,_0x2d8f8c){const _0x28a14c=await readStore(_0x40cfc8);_0x2d8f8c(_0x28a14c),await writeStore(_0x40cfc8,_0x28a14c);}function createMcpOAuthProvider(_0x166c21){const _0x4b0e1a={_0x153069:0x22b,_0x2d0c94:0x103,_0x2cec09:0x1b2,_0x1c3ebe:0x134,_0xa79134:0x219,_0x1bb542:0x184,_0x5131a0:0x12a,_0x5ee90d:0x15d,_0x466c12:0x1ba,_0x1f118d:0x2bb,_0x2c0b05:0x42,_0x2a6345:0x127,_0xd56ad1:0x10f,_0x18a84b:0x207,_0x53c4c1:0x52,_0x353ca0:0xd,_0xd4dc60:0x31,_0x479d1c:0x6f,_0x18ca92:0x94,_0x2d3bc3:0x138},_0x37cbc6={_0x4b12de:0x622,_0xbbebe4:0x72f,_0x5d4dd5:0x618,_0x1340db:0x274,_0x31985b:0x2bc,_0x4c6da5:0xe8,_0x3a1743:0x1a6,_0x17c39b:0x310,_0x14866a:0x2f0,_0x30ac67:0x1df,_0xa47591:0x4d2,_0x351575:0x567,_0x4485c7:0x5ea,_0x1604b4:0x4f7,_0x13cdc5:0x139,_0x3c3ed8:0x2ed,_0x449447:0x15e,_0x486879:0x96,_0x1cd61a:0x18c,_0x5e8833:0x2bc,_0x21eb7a:0x470,_0x3d8a0b:0x3e9,_0x100789:0x5a1,_0x56b5f1:0x45d},_0xae176a={_0x353fd6:0x2cf},_0xdaaa7c={_0x3257bb:0xd4},_0xd5f68b={_0x3c70b7:0x140,_0x5f2739:0xb1},_0x1164f9={_0x3c654d:0x108,_0x4240c1:0x9e},_0x4cbfab={_0x43a86c:0xea,_0xf160a3:0x106},_0x3ad1a5={_0x18fbe6:0x35f,_0x4b08e4:0x502,_0x2ebfe4:0x41f},_0x4810e8={_0x3a099a:0x9b,_0x2129b5:0x99,_0x261b9d:0x255,_0x540ad2:0x299,_0x45f110:0x284},_0x1761c5={_0x95c908:0x117,_0x4a0cd4:0xb9},_0x1e16c5={_0x4616e7:0x163},_0x32f79f={_0x3d8f89:0x6f},_0x1d6c82={_0x47fbfc:0x376},_0x53e620={_0xb2d596:0x1ef};function _0x33fce8(_0x147192,_0x23fe35,_0x5bc3a2,_0x1ed2cb){return _0x1343ee(_0x5bc3a2-0x145,_0x1ed2cb,_0x5bc3a2-0xdf,_0x1ed2cb-0xec);}const _0xea087f=storagePath(_0x166c21),_0x2d840d=_0x166c21['config'][_0x2e5e21(_0x4b0e1a._0x153069,_0x4b0e1a._0x2d0c94,0x20c,_0x4b0e1a._0x2cec09)]?.[_0x2e5e21(_0x4b0e1a._0x1c3ebe,-0x51,0x8c,0xbb)]?.[_0x33fce8(_0x4b0e1a._0xa79134,0x29a,_0x4b0e1a._0x1bb542,_0x4b0e1a._0x5131a0)]('\x20');function _0x2e5e21(_0x1601af,_0x221dad,_0xe45b53,_0x807d0a){return _0x1343ee(_0xe45b53-0xbc,_0x221dad,_0xe45b53-0x1de,_0x807d0a-_0x53e620._0xb2d596);}const _0x31cffc={'client_name':_0x2e5e21(_0x4b0e1a._0x5ee90d,0x208,_0x4b0e1a._0x466c12,0xbc),'redirect_uris':[_0x166c21[_0x33fce8(0x1c6,0x210,_0x4b0e1a._0x1f118d,0x1ab)]],'grant_types':[_0x2e5e21(_0x4b0e1a._0x2c0b05,_0x4b0e1a._0x2a6345,0xcc,_0x4b0e1a._0xd56ad1),_0x2e5e21(_0x4b0e1a._0x18a84b,0x4e,0xde,-_0x4b0e1a._0x53c4c1)],'response_types':[_0x2e5e21(-_0x4b0e1a._0x353ca0,0x16d,0xe5,0x98)],'token_endpoint_auth_method':_0x2e5e21(-0x77,_0x4b0e1a._0xd4dc60,0x90,-_0x4b0e1a._0x479d1c),..._0x2d840d?{'scope':_0x2d840d}:{}};return{'clientMetadataUrl':_0x166c21[_0x2e5e21(0x77,0x179,0x99,_0x4b0e1a._0x18ca92)][_0x2e5e21(_0x4b0e1a._0x2d3bc3,0x123,0x20c,0x151)]?.['clientMetadataUrl'],get 'redirectUrl'(){const _0x421d33={_0x158420:0x4d,_0x4969e6:0x34};function _0x467c7e(_0x1ac6b7,_0x145b3c,_0x5c8416,_0xb777b2){return _0x2e5e21(_0x1ac6b7-_0x421d33._0x158420,_0x1ac6b7,_0x5c8416-0x252,_0xb777b2-_0x421d33._0x4969e6);}return _0x166c21[_0x467c7e(0x4c0,0x3fe,0x484,_0x1d6c82._0x47fbfc)];},get 'clientMetadata'(){return _0x31cffc;},async 'state'(){const _0x5e8dcc=await readStore(_0xea087f);if(_0x5e8dcc[_0x2422e2(0x1be,_0x4810e8._0x3a099a,0x2f4,_0x4810e8._0x2129b5)])return _0x5e8dcc[_0x284ccd(-_0x4810e8._0x261b9d,-_0x4810e8._0x540ad2,-_0x4810e8._0x45f110,-0x189)];function _0x2422e2(_0x1308e6,_0x121bec,_0x49a7d0,_0x42ff3f){return _0x2e5e21(_0x1308e6-0x16f,_0x42ff3f,_0x1308e6-0x1bf,_0x42ff3f-_0x32f79f._0x3d8f89);}const _0x392dfe=randomUUID();function _0x284ccd(_0x1c65aa,_0x2d2a17,_0x200a23,_0x511355){return _0x2e5e21(_0x1c65aa-0x45,_0x511355,_0x200a23- -0x283,_0x511355-_0x1e16c5._0x4616e7);}return await updateStore(_0xea087f,_0x310f8e=>{const _0x803bcd={_0x2dc8bb:0x1b};function _0x23968d(_0x205a17,_0x77f07,_0x33da9d,_0x3937dd){return _0x2422e2(_0x3937dd- -0x105,_0x77f07-_0x803bcd._0x2dc8bb,_0x33da9d-0x48,_0x33da9d);}_0x310f8e[_0x23968d(_0x1761c5._0x95c908,0x21,-0x23,_0x1761c5._0x4a0cd4)]=_0x392dfe;}),_0x392dfe;},async 'clientInformation'(){const _0x92b8c1={_0x173b2:0x106};function _0x5c6a6e(_0x46665a,_0x1d3b6e,_0x2660fc,_0x1ca5a3){return _0x33fce8(_0x46665a-0x25,_0x1d3b6e-_0x92b8c1._0x173b2,_0x1ca5a3-0x345,_0x1d3b6e);}return(await readStore(_0xea087f))[_0x5c6a6e(_0x3ad1a5._0x18fbe6,_0x3ad1a5._0x4b08e4,_0x3ad1a5._0x2ebfe4,0x487)];},async 'saveClientInformation'(_0x122772){await updateStore(_0xea087f,_0x431279=>{function _0x4b27cd(_0x31b518,_0x1d574f,_0x44ae1b,_0x5c2e76){return _0x1358(_0x31b518- -0x168,_0x44ae1b);}_0x431279[_0x4b27cd(-0x23,_0x4cbfab._0x43a86c,-0x11,_0x4cbfab._0xf160a3)]=_0x122772;});},async 'tokens'(){function _0x18a68e(_0x5cca7a,_0x26f0f1,_0x9ce576,_0xb16e7){return _0x33fce8(_0x5cca7a-_0x1164f9._0x3c654d,_0x26f0f1-0x148,_0x5cca7a- -_0x1164f9._0x4240c1,_0xb16e7);}return(await readStore(_0xea087f))[_0x18a68e(0x3d,_0xd5f68b._0x3c70b7,0x127,-_0xd5f68b._0x5f2739)];},async 'saveTokens'(_0x59d2e3){await updateStore(_0xea087f,_0x43d178=>{_0x43d178['tokens']=_0x59d2e3;});},async 'redirectToAuthorization'(_0x4648ca){await _0x166c21['onRedirect'](_0x4648ca);},async 'saveCodeVerifier'(_0x2fc59b){const _0x3eb3c9={_0x400ddc:0x157,_0x15cfb3:0x1e2},_0x2dd339={_0x4fb332:0x34};await updateStore(_0xea087f,_0x4e254a=>{function _0x16db8(_0x38ee65,_0x468c8f,_0x12fc9a,_0x118fbf){return _0x1358(_0x12fc9a-_0x2dd339._0x4fb332,_0x118fbf);}_0x4e254a[_0x16db8(_0x3eb3c9._0x400ddc,_0x3eb3c9._0x15cfb3,0x10c,0x1eb)]=_0x2fc59b;});},async 'codeVerifier'(){function _0x33e3e7(_0x1dda56,_0x2a2daf,_0x254de6,_0xa846f6){return _0x33fce8(_0x1dda56-0x1,_0x2a2daf-_0xdaaa7c._0x3257bb,_0x254de6- -0x2ac,_0xa846f6);}const _0x3890d9=(await readStore(_0xea087f))['codeVerifier'];if(!_0x3890d9)throw new Error(_0x33e3e7(-_0xae176a._0x353fd6,-0xc3,-0x1ae,-0x2a1));return _0x3890d9;},async 'invalidateCredentials'(_0x2ad7b6){const _0x4192e5={_0x29dc68:0x101};await updateStore(_0xea087f,_0x41dbf0=>{(_0x2ad7b6==='all'||_0x2ad7b6===_0x2731ac(_0x37cbc6._0x4b12de,_0x37cbc6._0xbbebe4,_0x37cbc6._0x5d4dd5,0x6d8))&&(_0x41dbf0[_0x169c7c(0x17f,0x10e,_0x37cbc6._0x1340db,0x246)]=void 0x0);function _0x169c7c(_0x39eb76,_0x381fdf,_0x319138,_0x5afd42){return _0x1358(_0x5afd42-_0x4192e5._0x29dc68,_0x319138);}function _0x2731ac(_0x2b341d,_0x49210b,_0x5d6db5,_0x56442c){return _0x1358(_0x2b341d-0x317,_0x56442c);}(_0x2ad7b6===_0x169c7c(0x2a9,0x3af,0x26a,_0x37cbc6._0x31985b)||_0x2ad7b6===_0x169c7c(_0x37cbc6._0x4c6da5,_0x37cbc6._0x3a1743,0x2d0,0x1df))&&(_0x41dbf0[_0x169c7c(0x2fb,_0x37cbc6._0x17c39b,_0x37cbc6._0x14866a,_0x37cbc6._0x30ac67)]=void 0x0),(_0x2ad7b6===_0x2731ac(_0x37cbc6._0xa47591,0x5c0,_0x37cbc6._0x351575,_0x37cbc6._0x4485c7)||_0x2ad7b6===_0x2731ac(0x5aa,0x57e,0x4a4,_0x37cbc6._0x1604b4))&&(_0x41dbf0[_0x169c7c(_0x37cbc6._0x13cdc5,0xb5,_0x37cbc6._0x3c3ed8,0x1d9)]=void 0x0,_0x41dbf0[_0x169c7c(_0x37cbc6._0x449447,_0x37cbc6._0x486879,0x1d1,_0x37cbc6._0x1cd61a)]=void 0x0),(_0x2ad7b6===_0x169c7c(0x1d2,0x3bc,0x17c,_0x37cbc6._0x5e8833)||_0x2ad7b6===_0x2731ac(_0x37cbc6._0x21eb7a,_0x37cbc6._0x3d8a0b,_0x37cbc6._0x100789,_0x37cbc6._0x56b5f1))&&(_0x41dbf0['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x163ea0){const _0x3401f5={_0x2ce756:0x18b,_0x2a50c8:0x10c},_0x162e3e={_0x433e97:0x1cf};await updateStore(_0xea087f,_0x6b5c1c=>{function _0x100743(_0x237c22,_0x2acbe9,_0x562ce5,_0x46a7d4){return _0x1358(_0x562ce5- -_0x162e3e._0x433e97,_0x2acbe9);}_0x6b5c1c[_0x100743(0x6f,-_0x3401f5._0x2ce756,-0xa3,-_0x3401f5._0x2a50c8)]=_0x163ea0;});},async 'discoveryState'(){return(await readStore(_0xea087f))['discoveryState'];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x11b7c7,_0x8b5dc9){const _0x4c33dc={_0x5222df:0x15c,_0x337aa4:0x1ec,_0x43cb92:0x1e8};function _0x500d15(_0x4382fd,_0x24fc6f,_0x425cdd,_0x579445){return _0x1343ee(_0x425cdd-0xa9,_0x579445,_0x425cdd-0x1e0,_0x579445-0x12f);}const _0x4353fb=_0x213d35=>_0x213d35[_0x353368(0x43a,0x40c,0x382,0x44e)](/[^a-zA-Z0-9_]+/g,'_')[_0x353368(0x424,0x40c,0x2f9,0x465)](/^_+|_+$/g,'');function _0x353368(_0x1e9fe2,_0x11a8c9,_0x2465b6,_0x19361f){return _0x357fd3(_0x1e9fe2-0x1f1,_0x11a8c9-0x17b,_0x11a8c9-0x474,_0x19361f);}return _0x500d15(_0x4c33dc._0x5222df,_0x4c33dc._0x337aa4,0x1ee,_0x4c33dc._0x43cb92)+_0x4353fb(_0x11b7c7)+'_'+_0x4353fb(_0x8b5dc9);}function isObject(_0x486adf){const _0x338d1b={_0x20876d:0x242,_0x5a5715:0x2b},_0x27359d={_0x9029e5:0x20a,_0x103c05:0x12,_0x19c93e:0x1a1};function _0x3114bb(_0x296727,_0x1ef2a4,_0x4b8fff,_0x2b1e14){return _0x1343ee(_0x296727- -0x284,_0x4b8fff,_0x4b8fff-0xb,_0x2b1e14-0xca);}function _0x32b51c(_0x269638,_0x21768b,_0x23d612,_0x19a28){return _0x1343ee(_0x21768b- -_0x27359d._0x9029e5,_0x269638,_0x23d612-_0x27359d._0x103c05,_0x19a28-_0x27359d._0x19c93e);}return typeof _0x486adf===_0x32b51c(-0x1ec,-0x1be,-0x230,-_0x338d1b._0x20876d)&&_0x486adf!==null&&!Array[_0x32b51c(-0x3e,-0x109,-0x138,-_0x338d1b._0x5a5715)](_0x486adf);}function toSupportedSchema(_0x37f24d){const _0x12f538={_0x3d9748:0x108,_0x3da6fb:0x1b8,_0x16e455:0x294,_0x126c51:0x1cc,_0x252b00:0x2aa,_0x379b51:0x346,_0x210b71:0x234,_0xf0372e:0x35b,_0x4ed443:0x49b,_0x1e07f3:0x29e,_0x5a9f40:0x333,_0x2c96dd:0x361,_0x2400a7:0x268,_0x4d02b9:0x12b,_0x9e6165:0x31a,_0x143350:0x388,_0x3ccad0:0x19f,_0x48783b:0x25b,_0x3f047d:0x130,_0x39c256:0x13a,_0x4fbb11:0x2cf,_0x1e74a7:0x236,_0xf11cb7:0x213,_0x1eeecf:0x295,_0x5c243d:0x363,_0x1ecb79:0x311,_0x535a87:0x2c1,_0xeaa955:0xcf,_0x527dde:0x16b,_0x3a8c4f:0x157,_0x283d36:0x29e,_0x2306b9:0x306},_0x47012b={_0x1e5b5c:0x19,_0x5483ff:0x273},_0x3b9ef6={_0x111e4c:0x105,_0x2a576b:0x261};if(!isObject(_0x37f24d))return void 0x0;if(_0x37f24d[_0xf522b1(-0x2a0,-_0x12f538._0x3d9748,-_0x12f538._0x3da6fb,-0x236)]===_0xf522b1(-_0x12f538._0x16e455,-0x236,-0xce,-_0x12f538._0x126c51))return{'type':'string'};if(_0x37f24d[_0x5d2056(0x29e,_0x12f538._0x252b00,_0x12f538._0x379b51,_0x12f538._0x210b71)]===_0x5d2056(0x3b6,_0x12f538._0xf0372e,0x2da,_0x12f538._0x4ed443)||_0x37f24d[_0x5d2056(_0x12f538._0x1e07f3,0x187,_0x12f538._0x5a9f40,_0x12f538._0x2c96dd)]===_0x5d2056(_0x12f538._0x2400a7,0x226,_0x12f538._0x4d02b9,_0x12f538._0x9e6165))return{'type':'number'};function _0xf522b1(_0xbbd041,_0x29933d,_0x2e4a66,_0x57f375){return _0x357fd3(_0xbbd041-0x13,_0x29933d-_0x3b9ef6._0x111e4c,_0x57f375- -_0x3b9ef6._0x2a576b,_0x2e4a66);}if(_0x37f24d[_0x5d2056(_0x12f538._0x1e07f3,_0x12f538._0x143350,0x24e,0x3b7)]==='boolean')return{'type':_0xf522b1(-_0x12f538._0x3ccad0,-_0x12f538._0x48783b,-_0x12f538._0x3f047d,-_0x12f538._0x39c256)};function _0x5d2056(_0x2f5893,_0x34bfdd,_0x3a2beb,_0x1b390a){return _0x357fd3(_0x2f5893-0xc2,_0x34bfdd-_0x47012b._0x1e5b5c,_0x2f5893-_0x47012b._0x5483ff,_0x34bfdd);}if(_0x37f24d[_0xf522b1(-0x12c,-0x337,-_0x12f538._0x4fbb11,-_0x12f538._0x1e74a7)]===_0x5d2056(_0x12f538._0xf11cb7,0x28c,_0x12f538._0x1eeecf,0x2ed))return{'type':_0xf522b1(-0x183,-_0x12f538._0x5c243d,-_0x12f538._0x1ecb79,-_0x12f538._0x535a87),'items':toSupportedSchema(_0x37f24d[_0x5d2056(0x1c2,_0x12f538._0xeaa955,_0x12f538._0x527dde,_0x12f538._0x3a8c4f)])??{'type':_0xf522b1(-0x281,-0xd1,-0x19b,-0x1cc)}};if(_0x37f24d[_0x5d2056(_0x12f538._0x283d36,0x3d1,_0x12f538._0x2306b9,0x32d)]==='object')return toNuvinToolSchema(_0x37f24d);return void 0x0;}function toNuvinToolSchema(_0x11184d){const _0x5a50fc={_0x3b5af3:0x1e7,_0xd87340:0x126,_0x7538e9:0x135,_0xaa1d61:0x120,_0x1f27f0:0x1f0,_0x1f4467:0x2ed,_0x1d809c:0x388,_0x516ebd:0x2d0,_0x1b1b70:0x10f,_0x592302:0x31d,_0x2b3d42:0x22f},_0x266ea2={_0x34ea00:0x1c},_0xd3437e={_0x13f47e:0xef,_0xb6adbe:0x5d};if(!isObject(_0x11184d)||_0x11184d['type']!=='object')return{'type':_0x14efb9(-_0x5a50fc._0x3b5af3,-0x13c,-0x232,-0x22f),'properties':{}};const _0x37ee4b={},_0xd67c4f=isObject(_0x11184d[_0xfb2b5c(0x15d,0x15,0x1eb,_0x5a50fc._0xd87340)])?_0x11184d[_0xfb2b5c(0x40,-0x5,_0x5a50fc._0x7538e9,0x126)]:{};for(const [_0x3f30ed,_0x278ac3]of Object[_0xfb2b5c(0x26b,0x220,0x70,0x12f)](_0xd67c4f)){const _0x4b8862=toSupportedSchema(_0x278ac3);if(_0x4b8862)_0x37ee4b[_0x3f30ed]=_0x4b8862;}const _0x4429c3=Array[_0xfb2b5c(0x308,0x121,_0x5a50fc._0xaa1d61,_0x5a50fc._0x1f27f0)](_0x11184d['required'])?_0x11184d[_0x14efb9(-_0x5a50fc._0x1f4467,-0x1f9,-_0x5a50fc._0x1d809c,-_0x5a50fc._0x516ebd)][_0x14efb9(-0x1cd,-0x2b9,-0x1bd,-0x17f)](_0xa32008=>typeof _0xa32008==='string'):void 0x0;function _0xfb2b5c(_0x390a98,_0x3045cc,_0x282b06,_0x2d5d3e){return _0x1343ee(_0x2d5d3e-_0xd3437e._0x13f47e,_0x3045cc,_0x282b06-_0xd3437e._0xb6adbe,_0x2d5d3e-0x185);}function _0x14efb9(_0x3da8f6,_0xddb54b,_0x4353b3,_0x361d18){return _0x1343ee(_0x361d18- -0x27b,_0x3da8f6,_0x4353b3-_0x266ea2._0x34ea00,_0x361d18-0x9e);}return _0x4429c3?.[_0xfb2b5c(0x23b,0x241,0xdc,_0x5a50fc._0x1b1b70)]?{'type':_0x14efb9(-0x1ec,-_0x5a50fc._0x592302,-0x377,-_0x5a50fc._0x2b3d42),'properties':_0x37ee4b,'required':_0x4429c3}:{'type':'object','properties':_0x37ee4b};}function isJsonObject(_0x2684c7){const _0x54d06d={_0xfb5c56:0x5f,_0x16e2b1:0xe4,_0x502b2a:0x40f,_0x34576e:0x2da},_0x3d5acd={_0x286b64:0x1e3};function _0x48be2d(_0x9c4f03,_0x169a8c,_0x5b5da4,_0x29d021){return _0x1343ee(_0x5b5da4-0x200,_0x169a8c,_0x5b5da4-_0x3d5acd._0x286b64,_0x29d021-0xbe);}function _0x50752d(_0x107543,_0x33bf4c,_0x237c4e,_0x496981){return _0x357fd3(_0x107543-0x127,_0x33bf4c-0x11a,_0x496981- -0x12b,_0x33bf4c);}return typeof _0x2684c7===_0x50752d(0x3c,_0x54d06d._0xfb5c56,-0x8e,-_0x54d06d._0x16e2b1)&&_0x2684c7!==null&&!Array[_0x48be2d(_0x54d06d._0x502b2a,_0x54d06d._0x34576e,0x301,0x1bd)](_0x2684c7);}function formatMcpContent(_0x14b026){const _0x38beee={_0x3f3fce:0x2ec,_0x4be02b:0x292,_0x4f7535:0x1d9,_0x2d603d:0x349,_0x5793e7:0x27e,_0x205b00:0x362,_0x7118b6:0x38f,_0x439f03:0x38c,_0x2831a4:0x3ca,_0x53ff30:0x4a5,_0x73de8:0x4c3,_0x41542e:0x171,_0x43565d:0x256,_0x52996c:0x2d6},_0x1ee38b={_0x5d3c4a:0xba,_0xfba021:0x159},_0x5afc82={_0x5379f2:0x106,_0x48cd93:0x78,_0x2a4d1b:0x45f,_0x1dc1c4:0x553,_0x178618:0x45f,_0x116e9c:0x534,_0x3754b0:0x44e,_0x162672:0x3d4,_0x298392:0x478,_0x5d93af:0x2e,_0x2c60f2:0xcd,_0x530cfc:0x20c},_0x140db2=Array[_0x19604f(_0x38beee._0x3f3fce,_0x38beee._0x4be02b,_0x38beee._0x4f7535,_0x38beee._0x2d603d)](_0x14b026[_0x19604f(_0x38beee._0x5793e7,_0x38beee._0x205b00,_0x38beee._0x7118b6,0x441)])?_0x14b026[_0x19604f(_0x38beee._0x439f03,0x362,0x2fd,_0x38beee._0x2831a4)]:[],_0x5659bf=_0x140db2['map'](_0x21d65e=>{function _0x4c5ddf(_0x3d8020,_0x2d4bd7,_0x32bfb2,_0xbb455c){return _0x4fea61(_0x2d4bd7- -0x59b,_0x2d4bd7-0x10d,_0x32bfb2-0x10,_0x3d8020);}if(!isObject(_0x21d65e))return'';function _0x25248b(_0x18857f,_0x39a2e6,_0x383ce7,_0x1fb96c){return _0x19604f(_0x18857f-0xf4,_0x18857f-0x1a9,_0x383ce7-0x1bc,_0x39a2e6);}if(_0x21d65e[_0x4c5ddf(-_0x5afc82._0x5379f2,-0x1c2,-_0x5afc82._0x48cd93,-0x28d)]===_0x25248b(_0x5afc82._0x2a4d1b,0x547,_0x5afc82._0x1dc1c4,0x571)&&typeof _0x21d65e[_0x25248b(_0x5afc82._0x178618,0x572,_0x5afc82._0x116e9c,_0x5afc82._0x3754b0)]===_0x25248b(_0x5afc82._0x162672,0x51d,_0x5afc82._0x298392,0x34e))return _0x21d65e[_0x4c5ddf(_0x5afc82._0x5d93af,-_0x5afc82._0x2c60f2,-_0x5afc82._0x530cfc,-0x157)];return JSON['stringify'](_0x21d65e);})[_0x4fea61(_0x38beee._0x53ff30,_0x38beee._0x73de8,0x3c3,0x530)](_0x35dfa2=>_0x35dfa2[_0x4fea61(0x3c9,0x38e,0x355,0x486)]>0x0)['join']('\x0a');if(_0x5659bf['length']>0x0)return _0x5659bf;function _0x19604f(_0x57c227,_0x135a7d,_0x295524,_0x4f6fbd){return _0x1343ee(_0x135a7d-0x191,_0x4f6fbd,_0x295524-_0x1ee38b._0x5d3c4a,_0x4f6fbd-_0x1ee38b._0xfba021);}function _0x4fea61(_0x36664c,_0x2c8841,_0xd46e90,_0x5407c4){return _0x357fd3(_0x36664c-0x99,_0x2c8841-0x1d9,_0x36664c-0x3ae,_0x5407c4);}return JSON[_0x19604f(_0x38beee._0x41542e,0x2a4,_0x38beee._0x43565d,_0x38beee._0x52996c)](_0x14b026,null,0x2);}function createMcpTool(_0xe3ca48){const _0x16b879={_0x2e13b9:0x2bf,_0x5df02f:0x3dc,_0x42a308:0x140,_0x3b6058:0x20f,_0x3e3afa:0x1ce,_0x1a009b:0x102,_0x2baa47:0x15d,_0x4b968b:0x244,_0x1964d1:0x593,_0x2b17a0:0x458,_0x970d71:0x4fb,_0x3e6360:0x50a,_0x41a9ae:0x145,_0x5cb793:0x72,_0x5d849e:0x2c7,_0x2ab7ed:0x237,_0x3df5d3:0x373,_0xc8911a:0x1c8},_0xb30641={_0x58fc99:0x766,_0x45fbed:0xe7,_0x281b0a:0x50,_0x58a8dd:0x1f8,_0x34bf9a:0x171,_0x4b5cbe:0x289,_0x1d47fe:0x299,_0x20a26e:0x2e0,_0x1f80c4:0x55d,_0x4da758:0x452,_0x21be8a:0x449,_0x1741b:0x209,_0x2469c0:0x3a8,_0x15d6e3:0x3b7,_0x258949:0x486,_0x194110:0x434,_0x5740d4:0x474},_0x4b7fb0={_0x3dd6b4:0x32f,_0x43d2f7:0xaa},_0x4b2e1e={_0x1939aa:0x142},_0x3ffb00={_0x36076c:0x1c7,_0x1a173a:0x24};function _0x4218d7(_0x1c5b7c,_0x58859c,_0x3fa236,_0x1078b5){return _0x1343ee(_0x58859c-_0x3ffb00._0x36076c,_0x1078b5,_0x3fa236-_0x3ffb00._0x1a173a,_0x1078b5-0x184);}function _0x3bed2f(_0x2702e6,_0x5a82ba,_0x111667,_0x2d7c62){return _0x357fd3(_0x2702e6-_0x4b2e1e._0x1939aa,_0x5a82ba-0x131,_0x5a82ba-0x296,_0x2d7c62);}const _0x3d31a4=createMcpToolName(_0xe3ca48['serverName'],_0xe3ca48[_0x4218d7(_0x16b879._0x2e13b9,0x38e,0x28c,_0x16b879._0x5df02f)][_0x3bed2f(_0x16b879._0x42a308,_0x16b879._0x3b6058,_0x16b879._0x3e3afa,_0x16b879._0x1a009b)]);return defineTool({'name':_0x3d31a4,'description':_0xe3ca48['tool']['description']??_0x3bed2f(_0x16b879._0x2baa47,0x237,_0x16b879._0x4b968b,0x369)+_0xe3ca48[_0x3bed2f(_0x16b879._0x1964d1,_0x16b879._0x2b17a0,_0x16b879._0x970d71,_0x16b879._0x3e6360)][_0x4218d7(0x1ab,_0x16b879._0x41a9ae,_0x16b879._0x5cb793,0x44)]+_0x4218d7(0x116,0x165,0x41,0x54)+_0xe3ca48['serverName'],'inputSchema':toNuvinToolSchema(_0xe3ca48['tool'][_0x4218d7(_0x16b879._0x5d849e,_0x16b879._0x2ab7ed,_0x16b879._0x3df5d3,_0x16b879._0xc8911a)]),async *'execute'(_0x233fc7){const _0x5e56db={_0x4f4170:0xf5,_0x163977:0x96},_0x10c36e=await _0xe3ca48[_0x28df75(_0xb30641._0x58fc99,0x692,0x65e,0x6b9)]['callTool']({'name':_0xe3ca48[_0x28df75(0x7da,0x712,0x632,0x6bd)][_0x46ee0a(-0x3c,_0xb30641._0x45fbed,_0xb30641._0x281b0a,0xd7)],'arguments':isJsonObject(_0x233fc7)?_0x233fc7:{}});if(_0x10c36e[_0x46ee0a(_0xb30641._0x58a8dd,_0xb30641._0x34bf9a,_0xb30641._0x4b5cbe,0x15c)])throw new ToolExecutionError(formatMcpContent(_0x10c36e),{'serverName':_0xe3ca48['serverName'],'toolName':_0xe3ca48[_0x46ee0a(0x3b9,0x33c,_0xb30641._0x1d47fe,_0xb30641._0x20a26e)]['name']});function _0x46ee0a(_0x4d97b1,_0x416445,_0x485962,_0x249ba4){return _0x4218d7(_0x4d97b1-0x13f,_0x485962- -_0x5e56db._0x4f4170,_0x485962-_0x5e56db._0x163977,_0x249ba4);}function _0x28df75(_0x55f7f9,_0x6f11ea,_0x26f629,_0x2bd2b7){return _0x4218d7(_0x55f7f9-0xfd,_0x2bd2b7-_0x4b7fb0._0x3dd6b4,_0x26f629-_0x4b7fb0._0x43d2f7,_0x55f7f9);}return yield createToolOutput(formatMcpContent(_0x10c36e),{'serverName':_0xe3ca48[_0x28df75(_0xb30641._0x1f80c4,_0xb30641._0x4da758,_0xb30641._0x21be8a,0x4bb)],'toolName':_0xe3ca48[_0x46ee0a(_0xb30641._0x1741b,_0xb30641._0x2469c0,0x299,_0xb30641._0x15d6e3)][_0x28df75(0x4eb,_0xb30641._0x258949,_0xb30641._0x194110,_0xb30641._0x5740d4)],'result':_0x10c36e}),void 0x0;}});}function resolvePrefix(_0x1b332b,_0x3b81c9){const _0x5e644c={_0x41823f:0x56e},_0x58ff95={_0x3ce20a:0x14b};function _0x4a2545(_0x3a8f68,_0x3bd936,_0x1dde3d,_0x225a79){return _0x1343ee(_0x3a8f68-0x4cc,_0x225a79,_0x1dde3d-_0x58ff95._0x3ce20a,_0x225a79-0x3b);}return _0x3b81c9[_0x4a2545(0x50f,0x5d7,_0x5e644c._0x41823f,0x604)]??_0x1b332b;}function buildMcpHttpHeaders(_0x23455e){const _0x36a697={_0x2c574a:0x1aa,_0x198ff2:0x314,_0x3425e3:0xe5,_0x4a97a5:0x345,_0x28f54a:0x42b,_0x4a88fe:0x3d0,_0x105ef9:0x473,_0x10e40b:0x549,_0x4370b9:0x2dc,_0x3ad676:0x239,_0x560bc5:0x10a,_0x4321d3:0x307,_0x301724:0x188,_0x4a95d9:0x2c7,_0x414a3b:0x18e,_0x58aacd:0x407,_0x15a562:0x2e3,_0x5795a0:0x41b},_0x514463={_0x2e22a2:0xe9,_0x484e37:0xd4};function _0xd96fba(_0x31c97b,_0x4b1931,_0x5d35d4,_0x5ccbe0){return _0x1343ee(_0x5d35d4-0x3fb,_0x5ccbe0,_0x5d35d4-0x8f,_0x5ccbe0-0x3c);}const _0x17f043={..._0x23455e[_0x5d10cf(_0x36a697._0x2c574a,0x20c,_0x36a697._0x198ff2,_0x36a697._0x3425e3)]??{}};function _0x5d10cf(_0x303454,_0x43d9a0,_0x251779,_0x4c5fb2){return _0x1343ee(_0x43d9a0-0x264,_0x4c5fb2,_0x251779-_0x514463._0x2e22a2,_0x4c5fb2-_0x514463._0x484e37);}return _0x23455e['auth']?.[_0xd96fba(0x560,_0x36a697._0x4a97a5,_0x36a697._0x28f54a,0x514)]==='bearer'&&_0x23455e[_0xd96fba(0x2ce,0x371,_0x36a697._0x4a88fe,_0x36a697._0x105ef9)][_0xd96fba(0x3f7,0x40b,0x45e,0x3dc)]&&_0x17f043['Authorization']===void 0x0&&(_0x17f043['Authorization']=_0xd96fba(0x4da,_0x36a697._0x10e40b,0x548,0x606)+_0x23455e[_0x5d10cf(_0x36a697._0x4370b9,_0x36a697._0x3ad676,_0x36a697._0x560bc5,_0x36a697._0x4321d3)][_0x5d10cf(_0x36a697._0x301724,_0x36a697._0x4a95d9,_0x36a697._0x414a3b,0x414)]),Object['keys'](_0x17f043)[_0xd96fba(_0x36a697._0x58aacd,_0x36a697._0x15a562,_0x36a697._0x5795a0,0x3d8)]>0x0?_0x17f043:void 0x0;}function getErrorMessage(_0x133815){return _0x133815 instanceof Error?_0x133815['message']:String(_0x133815);}function isUnauthorizedError(_0x241069){const _0x28a514={_0x25ace0:0x16,_0x5947fb:0x50,_0xa76180:0x19f},_0x2b8f99={_0x5ca7b8:0x194,_0x2854b0:0xc9,_0x4f2645:0x77};function _0x424f50(_0x1d5cbf,_0x3b1e18,_0x138995,_0x3c2b9c){return _0x1343ee(_0x1d5cbf-_0x2b8f99._0x5ca7b8,_0x3c2b9c,_0x138995-_0x2b8f99._0x2854b0,_0x3c2b9c-_0x2b8f99._0x4f2645);}function _0x3a4572(_0x1ca33a,_0x51695b,_0x5e6d8d,_0x41771b){return _0x1343ee(_0x41771b-0xf0,_0x1ca33a,_0x5e6d8d-0x195,_0x41771b-0x156);}return _0x241069 instanceof Error&&_0x241069['constructor'][_0x3a4572(0x8e,_0x28a514._0x25ace0,-0xb7,0x6e)]===_0x3a4572(_0x28a514._0x5947fb,_0x28a514._0xa76180,0xde,0x109);}async function connectMcpServer(_0x9e2535,_0x1b71d2,_0x49f60d){const _0x17ac84={_0x17e2d7:0x25,_0x431e2c:0x12a,_0x46876c:0x35a,_0x3a893a:0x2d0,_0xba0b73:0x1e3,_0x3539b5:0x24f,_0x282c6d:0x208,_0x47ca42:0xbf,_0x5116d4:0x7f,_0x4ccb77:0x93,_0x158366:0x10,_0x74fa48:0x6d,_0x346ba6:0x19b,_0x5a95df:0x2a2,_0x49a420:0x3dd,_0x714c0:0x361,_0x5f4e46:0x2a2,_0x19a953:0x319,_0x6015ed:0x15b,_0x447253:0x176,_0x4f3791:0x11,_0x21d971:0x30e,_0x268569:0x306,_0x5b3bf7:0xf7,_0x159f12:0x68,_0x1d8c7c:0x2ce,_0x251a69:0x68,_0x518d52:0x3b,_0x39b3f5:0x330,_0x466b6d:0x2fb,_0x283443:0x1ea,_0x375f20:0x282,_0x2f2f1d:0xd8,_0xab57f2:0x164,_0x4c02d5:0x25e,_0x5b0fed:0x24d,_0x1bc52f:0x330,_0x4b7313:0x3fe,_0x444f51:0x33f,_0x334945:0x2fb,_0x5261b0:0x406,_0x4cc88b:0x330,_0x4da296:0x1b8,_0x30bdab:0x345,_0x3dfe6d:0xca,_0x138b4c:0x15f,_0xed7379:0xd2,_0x2eabc7:0x251,_0x5d63d4:0x68,_0x2e98d6:0x157,_0x44a0cb:0x1df,_0x1d87bf:0x2c9,_0x48b421:0x2d4,_0x2e48cb:0x1cd,_0x426abb:0x130,_0x59043:0x1fc},_0x177ee3={_0x1b28b4:0x520,_0x4b6f63:0x514,_0x1a47c3:0x5d9,_0x4f3072:0x563},_0x377f16={_0x35272b:0x35},_0x1b8b55={_0x1bdbc2:0x3ab,_0x1acaf2:0x3cc,_0x5e7b60:0x32b},_0x2c2d14={_0x28be3f:0x186},_0x182c8d={_0x2e931c:0x228,_0x252597:0x3c0,_0x22f103:0x4c5,_0x15cf67:0x476,_0x201261:0x2e9,_0x4765d1:0x3de,_0x2ae9f5:0x1ff,_0x16ed54:0x373},_0x58bf95={_0x2d64b1:0x11b},_0x4db7fe={_0xdec1ab:0x1e0},_0x28a18=new Client({'name':_0x4e50f9(-0x1b3,-_0x17ac84._0x17e2d7,-_0x17ac84._0x431e2c,-0x25e),'version':_0x361894(_0x17ac84._0x46876c,0x33e,0x24e,_0x17ac84._0x3a893a)});function _0x361894(_0x24268b,_0x20c4e8,_0x263b30,_0x47a561){return _0x1343ee(_0x20c4e8-_0x4db7fe._0xdec1ab,_0x47a561,_0x263b30-0x96,_0x47a561-0x192);}_0x28a18[_0x4e50f9(-0x38f,-_0x17ac84._0xba0b73,-_0x17ac84._0x3539b5,-_0x17ac84._0x282c6d)]=_0x20935b=>{function _0x4560c5(_0x89e38b,_0x1c055a,_0x14a582,_0x3dcd55){return _0x361894(_0x89e38b-0x106,_0x14a582-0x2,_0x14a582-0xe4,_0x89e38b);}function _0x39bc96(_0x10e678,_0x4495bc,_0xbbcc89,_0x49af83){return _0x4e50f9(_0x10e678-0x105,_0x4495bc-_0x58bf95._0x2d64b1,_0x10e678-0x32a,_0x4495bc);}console[_0x4560c5(_0x182c8d._0x2e931c,0x381,0x36b,0x2b5)](_0x4560c5(_0x182c8d._0x252597,_0x182c8d._0x22f103,0x387,_0x182c8d._0x15cf67)+_0x9e2535+_0x39bc96(_0x182c8d._0x201261,0x25e,_0x182c8d._0x4765d1,_0x182c8d._0x2ae9f5),_0x20935b[_0x4560c5(_0x182c8d._0x16ed54,0x3b0,0x2c9,0x40c)]);};if(_0x1b71d2[_0x4e50f9(-0x1da,0x18,-_0x17ac84._0x47ca42,-_0x17ac84._0x5116d4)]===_0x4e50f9(_0x17ac84._0x4ccb77,-_0x17ac84._0x158366,-0x32,_0x17ac84._0x74fa48)||_0x1b71d2[_0x361894(_0x17ac84._0x346ba6,_0x17ac84._0x5a95df,0x365,_0x17ac84._0x49a420)]){if(!_0x1b71d2[_0x361894(_0x17ac84._0x714c0,_0x17ac84._0x5f4e46,0x27d,_0x17ac84._0x19a953)])throw new Error(_0x361894(_0x17ac84._0x6015ed,0x15f,_0x17ac84._0x447253,_0x17ac84._0x4f3791)+_0x9e2535+_0x361894(_0x17ac84._0x21d971,_0x17ac84._0x268569,0x203,0x1c7));if(_0x1b71d2[_0x4e50f9(-_0x17ac84._0x5b3bf7,-_0x17ac84._0x159f12,-0x1b6,-_0x17ac84._0x1d8c7c)]?.['type']===_0x4e50f9(-_0x17ac84._0x251a69,0x10,-_0x17ac84._0x518d52,-0x137)&&!_0x49f60d?.[_0x361894(0x43d,_0x17ac84._0x39b3f5,_0x17ac84._0x466b6d,_0x17ac84._0x283443)])throw new Error(_0x361894(0x140,0x15f,0x6c,0xef)+_0x9e2535+'\x20requires\x20OAuth\x20connection\x20options');const _0x3d29b6=buildMcpHttpHeaders(_0x1b71d2),_0x48eae2=_0x1b71d2[_0x4e50f9(-0x150,-_0x17ac84._0x375f20,-0x1b6,-_0x17ac84._0x2f2f1d)]?.[_0x4e50f9(-_0x17ac84._0xab57f2,-0x12e,-_0x17ac84._0x6015ed,-0x26b)]==='oauth'&&_0x49f60d?.[_0x361894(0x328,_0x17ac84._0x39b3f5,_0x17ac84._0x4c02d5,_0x17ac84._0x5b0fed)]?createMcpOAuthProvider({'serverName':_0x9e2535,'callbackUrl':_0x49f60d[_0x361894(0x3da,_0x17ac84._0x1bc52f,0x23d,_0x17ac84._0x4b7313)][_0x361894(_0x17ac84._0x444f51,0x356,_0x17ac84._0x334945,_0x17ac84._0x5261b0)],'storageDir':_0x49f60d[_0x361894(0x370,_0x17ac84._0x4cc88b,0x20a,0x212)]['storageDir'],'config':_0x1b71d2['auth'],'onRedirect':_0x50efba=>_0x49f60d['oauth']?.[_0x4e50f9(0x12,-0x126,-0x17,0x110)](_0x9e2535,_0x50efba)}):void 0x0,_0x48915f=new StreamableHTTPClientTransport(new URL(_0x1b71d2[_0x361894(_0x17ac84._0x4da296,0x2a2,0x25b,_0x17ac84._0x30bdab)]),{'authProvider':_0x48eae2,'requestInit':_0x3d29b6?{'headers':_0x3d29b6}:void 0x0});await _0x28a18['connect'](_0x48915f);}else{if(!_0x1b71d2['command'])throw new Error(_0x361894(_0x17ac84._0x3dfe6d,_0x17ac84._0x138b4c,0x2a7,_0x17ac84._0xed7379)+_0x9e2535+_0x361894(_0x17ac84._0x2eabc7,0x313,0x2b8,0x453));const _0xa50187=new StdioClientTransport({'command':_0x1b71d2[_0x361894(_0x17ac84._0x5d63d4,_0x17ac84._0x2e98d6,_0x17ac84._0x44a0cb,0x13b)],'args':_0x1b71d2[_0x361894(_0x17ac84._0x1d87bf,0x38d,_0x17ac84._0x48b421,0x362)]??[],'env':_0x1b71d2[_0x361894(0x2c5,0x29b,_0x17ac84._0x2e48cb,0x326)],'stderr':_0x4e50f9(-0x1aa,-_0x17ac84._0x426abb,-_0x17ac84._0x59043,-0x1ad)});await _0x28a18[_0x361894(0x11a,0x1b7,0x135,0x74)](_0xa50187);}function _0x4e50f9(_0x3911bf,_0x565379,_0x2e9b48,_0x1f9ea8){return _0x357fd3(_0x3911bf-0x1b1,_0x565379-0xda,_0x2e9b48- -_0x2c2d14._0x28be3f,_0x1f9ea8);}return{async 'listTools'(){const _0x1142cb={_0x36888e:0x1df,_0x3ad77b:0x5f};function _0x3a23e4(_0x143c44,_0x4da709,_0x242ac3,_0x2b5fe1){return _0x361894(_0x143c44-_0x1142cb._0x36888e,_0x2b5fe1-_0x1142cb._0x3ad77b,_0x242ac3-0xaa,_0x4da709);}return await _0x28a18[_0x3a23e4(_0x1b8b55._0x1bdbc2,_0x1b8b55._0x1acaf2,0x2ad,_0x1b8b55._0x5e7b60)]();},async 'callTool'(_0x4d354c){const _0x3a1f72={_0x286da5:0xf1};function _0xa72ad1(_0x293a47,_0x5f47fb,_0xe43625,_0x5a229e){return _0x361894(_0x293a47-0x148,_0x5a229e-0x2dc,_0xe43625-_0x377f16._0x35272b,_0x293a47);}function _0x2787d8(_0x45a5e3,_0xe04b23,_0x1be7b7,_0x361973){return _0x361894(_0x45a5e3-0xde,_0xe04b23-_0x3a1f72._0x286da5,_0x1be7b7-0xbc,_0x361973);}return await _0x28a18[_0xa72ad1(_0x177ee3._0x1b28b4,0x469,0x62b,_0x177ee3._0x4b6f63)]({'method':_0xa72ad1(_0x177ee3._0x1a47c3,_0x177ee3._0x4f3072,0x524,0x533),'params':_0x4d354c},CallToolResultSchema);},async 'close'(){await _0x28a18['close']();}};}async function createMcpToolsFromServers(_0x3a8330){const _0x1c8ca8={_0xc49a05:0xe2,_0x12a664:0x472,_0x4251f6:0x4de,_0x54ef43:0x60a,_0x5c31cf:0x67b,_0x4184a5:0x55c,_0x29ecb2:0x46c,_0x45b640:0x353,_0x15823a:0x474,_0x3296e5:0x21a,_0x565d64:0x6c5,_0x4bc64f:0x556,_0x529558:0x58a,_0xb0c766:0x569,_0x2caf49:0x5e8,_0x9fab4a:0x551,_0xde2136:0x613,_0x7ee599:0x398,_0x5a9f94:0x35b,_0x3daca7:0x41c,_0xd7d0f2:0x1f8,_0x46b3cb:0x1f2,_0x28d619:0x16d,_0x3d0852:0x57,_0x5d934f:0x20f,_0x4db6f5:0x2cd,_0xdc4739:0x294},_0x4b49a9={_0x31e195:0x410,_0x102a02:0x3e3,_0x5201be:0x44f,_0x24f4c4:0x55c,_0x5307d7:0x17e},_0x515a59={_0x5961d1:0x8a,_0x2849f:0x344},_0x2df665={_0x1e308c:0x4a3},_0x318084={_0x55a7dc:0x178},_0x14f2fe=_0x3a8330[_0x43d8d1(0x21,0x12c,0x32,_0x1c8ca8._0xc49a05)]??connectMcpServer,_0x1ea02d=[];function _0x43d8d1(_0x13413b,_0x44e7db,_0x1fea7b,_0x224272){return _0x357fd3(_0x13413b-_0x318084._0x55a7dc,_0x44e7db-0x1ee,_0x224272-0x110,_0x1fea7b);}const _0x25a118={};function _0x929de1(_0x2948a3,_0x13808e,_0x3dd7ab,_0x5318f9){return _0x357fd3(_0x2948a3-0x14,_0x13808e-0x179,_0x5318f9-_0x2df665._0x1e308c,_0x2948a3);}const _0x277b02=[];for(const [_0x5a32f9,_0x1798cf]of Object[_0x929de1(_0x1c8ca8._0x12a664,0x5c5,0x590,_0x1c8ca8._0x4251f6)](_0x3a8330[_0x929de1(_0x1c8ca8._0x54ef43,0x5d7,_0x1c8ca8._0x5c31cf,_0x1c8ca8._0x4184a5)]??{})){if(_0x1798cf[_0x929de1(_0x1c8ca8._0x29ecb2,_0x1c8ca8._0x45b640,0x5c3,_0x1c8ca8._0x15823a)]===![]){_0x25a118[_0x5a32f9]={'status':_0x43d8d1(0x256,-0x5,_0x1c8ca8._0x3296e5,0x133)};continue;}try{const _0x2adb59=await _0x14f2fe(_0x5a32f9,_0x1798cf,_0x3a8330['connection']);_0x1ea02d['push'](_0x2adb59);const _0x2a503e=await _0x2adb59[_0x929de1(0x569,_0x1c8ca8._0x565d64,_0x1c8ca8._0x4bc64f,_0x1c8ca8._0x529558)]();let _0x2b3b52=0x0;for(const _0x243c1e of _0x2a503e[_0x929de1(0x572,0x5ae,0x6b4,0x565)]){const _0x33c5fe=_0x3a8330[_0x929de1(_0x1c8ca8._0xb0c766,_0x1c8ca8._0x2caf49,_0x1c8ca8._0x9fab4a,_0x1c8ca8._0xde2136)]?.[_0x5a32f9]?.[_0x243c1e[_0x929de1(_0x1c8ca8._0x7ee599,0x495,_0x1c8ca8._0x5a9f94,_0x1c8ca8._0x3daca7)]];if(_0x33c5fe===![])continue;_0x2b3b52+=0x1,_0x277b02[_0x43d8d1(_0x1c8ca8._0xd7d0f2,0x251,_0x1c8ca8._0x46b3cb,_0x1c8ca8._0x28d619)](createMcpTool({'serverName':resolvePrefix(_0x5a32f9,_0x1798cf),'tool':_0x243c1e,'client':_0x2adb59}));}_0x25a118[_0x5a32f9]={'status':'connected','toolCount':_0x2b3b52};}catch(_0x17b79f){_0x25a118[_0x5a32f9]=isUnauthorizedError(_0x17b79f)?{'status':_0x43d8d1(-0x29,_0x1c8ca8._0x3d0852,0xf2,0x59),'message':getErrorMessage(_0x17b79f)}:{'status':_0x43d8d1(_0x1c8ca8._0x5d934f,_0x1c8ca8._0x4db6f5,0x2ed,_0x1c8ca8._0xdc4739),'message':getErrorMessage(_0x17b79f)};}}return{'tools':_0x277b02,'servers':_0x25a118,async 'close'(){const _0x10d073={_0x4611ee:0x5f,_0x59d54f:0x292};function _0x3f7d00(_0x522bdc,_0x34b6e1,_0x4492d0,_0x39a961){return _0x43d8d1(_0x522bdc-_0x10d073._0x4611ee,_0x34b6e1-0x1,_0x39a961,_0x522bdc-_0x10d073._0x59d54f);}function _0x38d614(_0x4dfc8a,_0x2a3289,_0x2b1ed3,_0x331b67){return _0x929de1(_0x2b1ed3,_0x2a3289-0x8e,_0x2b1ed3-_0x515a59._0x5961d1,_0x2a3289- -_0x515a59._0x2849f);}await Promise[_0x3f7d00(_0x4b49a9._0x31e195,_0x4b49a9._0x102a02,_0x4b49a9._0x5201be,_0x4b49a9._0x24f4c4)](_0x1ea02d[_0x38d614(_0x4b49a9._0x5307d7,0xe0,-0x5,0x1cb)](_0x3fdfdf=>_0x3fdfdf[_0x38d614(0x15c,0x1da,0x24b,0xbe)]()));}};}function getCommand(_0x357c1a){const _0x24efc9={_0x1b0b70:0x24a,_0x1a994e:0x206,_0x1d49e3:0x114,_0x38c868:0x265,_0x1f3c8e:0x1ed,_0x34dc17:0x246},_0x1b7a13={_0x98b93a:0x1bb},_0x271a72={_0x35d73d:0x105,_0x566456:0xe4};function _0x4fd2f0(_0x5a1754,_0x4bd04f,_0x5b001b,_0x378400){return _0x1343ee(_0x4bd04f-_0x271a72._0x35d73d,_0x378400,_0x5b001b-0x106,_0x378400-_0x271a72._0x566456);}function _0xaafe8f(_0x50b21c,_0x2d140f,_0x4be977,_0x4e8db6){return _0x357fd3(_0x50b21c-_0x1b7a13._0x98b93a,_0x2d140f-0x29,_0x50b21c- -0x1d7,_0x4e8db6);}if(_0x357c1a&&typeof _0x357c1a==='object'&&!Array[_0x4fd2f0(_0x24efc9._0x1b0b70,_0x24efc9._0x1a994e,0x13d,_0x24efc9._0x1d49e3)](_0x357c1a)&&typeof _0x357c1a[_0xaafe8f(-_0x24efc9._0x38c868,-0x1aa,-0x301,-0x1aa)]==='string')return _0x357c1a[_0xaafe8f(-0x265,-_0x24efc9._0x1f3c8e,-0x22f,-0x314)];return _0x4fd2f0(0x1bd,_0x24efc9._0x34dc17,0x104,0x1fc);}var MOCK_WORKSPACE_LISTING=[_0x357fd3(0x135,0x134,0x17d,0x27c),_0x1343ee(-0x6d,-0x17f,0x3f,-0xa6),_0x357fd3(0x64,-0xde,-0xca,-0xb3),_0x357fd3(-0x1ad,0x30,-0xbc,0x35),_0x1343ee(0x64,0x5d,-0xb5,-0x55),_0x357fd3(-0xcc,0x1b,-0x3f,0x8a),_0x357fd3(0x13a,0x84,0xca,0x70),_0x1343ee(0x1ca,0x171,0x241,0x1b5),_0x1343ee(-0x60,-0x16f,-0x2,0xbb),_0x357fd3(0x4b,0xd,0xf2,-0x1f),_0x1343ee(-0x31,0x10c,0xd6,0xc3),_0x357fd3(0x17b,0x180,0x3d,-0xc8),_0x357fd3(0x287,0xf7,0x18f,0x285),_0x357fd3(-0x22,0x127,0xd2,0x143),_0x1343ee(0x14f,0x1b1,0xc1,0x1d8),_0x1343ee(-0xc3,-0x11,0x54,-0x101),_0x1343ee(0x13,-0x42,0x117,-0x108)][_0x357fd3(0x15,-0x7c,0x3a,0x5e)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x1343ee(0xaa,0x81,0x13d,0x30),'description':_0x357fd3(0x79,0x155,0x135,0x251),'input_schema':{'type':_0x1343ee(0x4c,0x30,0x2a,-0x40),'properties':{'command':{'type':'string'}},'required':[_0x357fd3(-0x52,-0x9e,-0x8e,-0xc4)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x5f0618){return{'output':_0x5f0618,'structured':{'value':_0x5f0618}};}function createUnknownToolResult(_0x2ccbc8){const _0x8ed022={_0x3b7d55:0x54,_0x50fc90:0x7f,_0x112d1a:0x67,_0x543f51:0x5e6,_0x463653:0x4f3},_0x5db3eb={_0x29d3ab:0x52f,_0x3720f4:0x146};function _0x6fdaf3(_0x4b5826,_0x2e4fcc,_0x1bc260,_0x18d63e){return _0x1343ee(_0x4b5826-_0x5db3eb._0x29d3ab,_0x1bc260,_0x1bc260-0x14d,_0x18d63e-_0x5db3eb._0x3720f4);}function _0x4c448e(_0x557304,_0x47af6a,_0x3e0ceb,_0x327124){return _0x1343ee(_0x327124- -0x122,_0x47af6a,_0x3e0ceb-0x1e2,_0x327124-0x33);}return{'callId':_0x2ccbc8['id'],'toolName':_0x2ccbc8['name'],'status':_0x4c448e(-_0x8ed022._0x3b7d55,-_0x8ed022._0x50fc90,-0x21,_0x8ed022._0x112d1a),'output':_0x6fdaf3(_0x8ed022._0x543f51,0x6f0,0x5c1,0x4ae)+_0x2ccbc8[_0x6fdaf3(0x4ad,0x424,_0x8ed022._0x463653,0x51b)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x13a7d2,_0x21fadd){const _0x3ed13a={_0x380ff:0x240,_0x297d52:0x26c,_0x5437d8:0x3cc,_0x25d219:0x47c,_0x4c8294:0x3cd},_0x5a160c={_0x16691f:0x160},_0x160211={_0x234038:0x4d,_0x598793:0x1e5};function _0x843c66(_0xccf8a0,_0x59438a,_0x56b7ee,_0x5b52f2){return _0x357fd3(_0xccf8a0-0x106,_0x59438a-_0x160211._0x234038,_0x56b7ee- -_0x160211._0x598793,_0xccf8a0);}function _0x5c211d(_0x5b6bc3,_0x4fae0e,_0x2b9267,_0x340457){return _0x357fd3(_0x5b6bc3-_0x5a160c._0x16691f,_0x4fae0e-0x125,_0x4fae0e-0x4e5,_0x5b6bc3);}return{'callId':_0x13a7d2['id'],'toolName':_0x13a7d2[_0x843c66(-0x1c3,-_0x3ed13a._0x380ff,-_0x3ed13a._0x297d52,-0x222)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x13a7d2[_0x5c211d(_0x3ed13a._0x5437d8,_0x3ed13a._0x25d219,_0x3ed13a._0x4c8294,0x42c)]),'exitCode':0x0},'chunks':[_0x21fadd],'meta':createMeta()};}function createMockToolRuntime(){const _0x10119d={_0x2a3203:0x28c,_0xd19607:0x22e,_0x3ef202:0x102},_0x11ca9e={_0x22f122:0x2fc},_0x416424={_0x31990f:0x77,_0xeb94d6:0xe7,_0x51869f:0x347,_0x426417:0x1fc},_0x6199f9={_0x4d00cf:0x155},_0x4d2f69=async(_0x4c0c9f,_0x4aad82)=>{const _0xf126c8={_0x61a767:0x47};if(_0x4c0c9f[_0x2d7f1d(-0x7,-_0x416424._0x31990f,0x7f,_0x416424._0xeb94d6)]!==_0x2de5a5(_0x416424._0x51869f,0x3b0,_0x416424._0x426417,0x3c8))return createUnknownToolResult(_0x4c0c9f);const _0x5e8acc=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x2d7f1d(_0x502a78,_0x6d9d0,_0x5069f2,_0x9df9c7){return _0x1358(_0x5069f2- -_0xf126c8._0x61a767,_0x502a78);}function _0x2de5a5(_0x2532e6,_0x2c4589,_0x1a39d2,_0x3cbee4){return _0x1358(_0x2532e6-_0x6199f9._0x4d00cf,_0x1a39d2);}return createSuccessToolResult(_0x4c0c9f,_0x5e8acc);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x146c28,_0xd778ea){function _0x3a72e0(_0xd3749,_0xe18cf6,_0x46c3b8,_0x114add){return _0x1358(_0x46c3b8-0x376,_0xd3749);}function _0x1fb1a9(_0x2aecde,_0x159bc0,_0x2a59c5,_0x41cb28){return _0x1358(_0x2a59c5- -_0x11ca9e._0x22f122,_0x2aecde);}return await Promise[_0x1fb1a9(-0x165,-0x8d,-0x141,-_0x10119d._0x2a3203)](_0x146c28[_0x1fb1a9(-0x16d,-0x336,-_0x10119d._0xd19607,-_0x10119d._0x3ef202)](async _0x4f3fe3=>{return await _0x4d2f69(_0x4f3fe3,_0xd778ea);}));},async 'execute'(_0x53e275,_0x4b5471){return await _0x4d2f69(_0x53e275,_0x4b5471);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x363416={_0xffb1d2:0x27a,_0x2a8c0d:0x4e,_0xdb626c:0x208},_0x2e6d7a={_0x5c6eea:0xee,_0x4208be:0x1d0};delegatedRunCounter+=0x1;function _0x16b021(_0x2d3582,_0x4dd5e9,_0x42a710,_0x54960f){return _0x357fd3(_0x2d3582-0x68,_0x4dd5e9-_0x2e6d7a._0x5c6eea,_0x4dd5e9-_0x2e6d7a._0x4208be,_0x2d3582);}return _0x16b021(_0x363416._0xffb1d2,0x186,_0x363416._0x2a8c0d,_0x363416._0xdb626c)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x52225b,_0x59e47e){const _0x64eca0={_0x57f1f0:0x1f6},_0x2802b6={_0x212845:0x19d};function _0x5107e8(_0x21e821,_0x222e47,_0x47dddd,_0x32a619){return _0x1343ee(_0x21e821-_0x2802b6._0x212845,_0x222e47,_0x47dddd-0x18f,_0x32a619-0x30);}return typeof _0x52225b===_0x5107e8(0x22c,0xe0,0x1ec,_0x64eca0._0x57f1f0)?await _0x52225b(_0x59e47e):_0x52225b;}function getDelegatedAgentDefinition(_0x87a51f,_0x490e20){const _0x4f8854={_0x189e25:0x233,_0x218658:0x12b},_0x2ab2ab={_0x135d3c:0x172,_0x432feb:0xc9};function _0x12b69c(_0x45b50e,_0x40593e,_0x1e24ff,_0x53c335){return _0x357fd3(_0x45b50e-_0x2ab2ab._0x135d3c,_0x40593e-0x110,_0x40593e-_0x2ab2ab._0x432feb,_0x53c335);}return _0x87a51f[_0x12b69c(0x1f3,_0x4f8854._0x189e25,_0x4f8854._0x218658,0x35d)]?.[_0x490e20];}function createRunSummary(_0x513cbb){const _0x5dba93={_0x1da265:0x392,_0x11eedd:0x48d,_0x145b90:0x376,_0x62c0fe:0x34f,_0x456c6b:0x3ac,_0x2e512c:0x2e5,_0x596e82:0x1bc,_0x20fb21:0x2ab,_0x6f5999:0x164,_0x3b3d6e:0xec,_0x2689c7:0x2d0,_0x3a209c:0x156,_0x539e34:0x48,_0x448f02:0x23d,_0x2c3d61:0x2f3,_0x244310:0x129,_0x364920:0x132,_0x49da86:0x2f3,_0x2c1d2d:0x192,_0x21664d:0x6e,_0x3ce670:0x110,_0x5926f0:0xb1},_0x4d81bb={_0x46aff2:0x113},_0xa5b43c={_0x1dc071:0x1ec};function _0xa80128(_0x17ced2,_0x429398,_0x124f7a,_0x287f0b){return _0x357fd3(_0x17ced2-0x37,_0x429398-_0xa5b43c._0x1dc071,_0x287f0b-0x261,_0x17ced2);}function _0x843fd0(_0x45345e,_0x4a07ba,_0x451c55,_0x57d572){return _0x357fd3(_0x45345e-0x193,_0x4a07ba-0xc0,_0x451c55-_0x4d81bb._0x46aff2,_0x57d572);}return{'runId':_0x513cbb['runId'],'agentId':_0x513cbb[_0xa80128(0x2a3,_0x5dba93._0x1da265,0x429,0x300)],'sessionId':_0x513cbb[_0xa80128(_0x5dba93._0x11eedd,0x30f,_0x5dba93._0x145b90,0x3b2)],'status':_0x513cbb[_0xa80128(_0x5dba93._0x62c0fe,0x34d,0x195,0x260)],'parentSessionId':_0x513cbb[_0xa80128(_0x5dba93._0x456c6b,_0x5dba93._0x2e512c,_0x5dba93._0x596e82,_0x5dba93._0x20fb21)],..._0x513cbb[_0x843fd0(_0x5dba93._0x6f5999,_0x5dba93._0x3b3d6e,0x190,0x2bb)]!==void 0x0?{'originToolCallId':_0x513cbb['originToolCallId']}:{},..._0x513cbb[_0xa80128(0x19b,_0x5dba93._0x2689c7,0x226,0x196)]!==void 0x0?{'errorMessage':_0x513cbb[_0x843fd0(-0xf2,_0x5dba93._0x3a209c,_0x5dba93._0x539e34,-0x76)]}:{},..._0x513cbb[_0xa80128(0x21b,_0x5dba93._0x448f02,0x248,_0x5dba93._0x2c3d61)]?.[_0x843fd0(_0x5dba93._0x244310,0xfe,0x110,_0x5dba93._0x364920)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x513cbb[_0xa80128(0x324,0x442,0x37c,_0x5dba93._0x49da86)][_0x843fd0(_0x5dba93._0x2c1d2d,_0x5dba93._0x21664d,_0x5dba93._0x3ce670,_0x5dba93._0x5926f0)])}:{}};}function createRunSummaryOutput(_0x1995c5,_0x4861e1){const _0x4ccc45=createRunSummary(_0x1995c5),_0x3746a2=_0x4ccc45['finalMessageText'];return createToolOutput(typeof _0x3746a2==='string'&&_0x3746a2['length']>0x0?_0x3746a2:_0x4861e1,_0x4ccc45);}function getRunTerminalErrorMessage(_0x5f327c){const _0x129ad8={_0x897c6c:0x181,_0x4acd09:0x362,_0xbf7697:0x25d,_0x5c2163:0x222,_0xa81ccc:0x231,_0x4eccc4:0x35d,_0x195e44:0x54a,_0x596005:0x556,_0x269867:0xe2,_0x202ab5:0x14d,_0x4b80b8:0x22d,_0x148da3:0x125,_0x150fec:0x136,_0x19000e:0x464,_0x59a2f5:0x56a},_0x5873bc={_0x72b818:0x22},_0x5978c7={_0x2ad2c7:0x1df},_0x2dca6e=_0x5f327c?.[_0x13b285(0x121,_0x129ad8._0x897c6c,_0x129ad8._0x4acd09,_0x129ad8._0xbf7697)]['toolResults']['at'](-0x1);function _0x7a8035(_0x3bb4fe,_0x1ff88c,_0x48d52b,_0x1b08fe){return _0x357fd3(_0x3bb4fe-_0x5978c7._0x2ad2c7,_0x1ff88c-0x1a8,_0x48d52b- -0x151,_0x1b08fe);}function _0x13b285(_0x5cae8b,_0x404fed,_0x43a023,_0x15610c){return _0x1343ee(_0x15610c-0x31a,_0x5cae8b,_0x43a023-_0x5873bc._0x72b818,_0x15610c-0xa3);}if(_0x2dca6e?.[_0x13b285(0x3c1,_0x129ad8._0x5c2163,_0x129ad8._0xa81ccc,0x31e)]===_0x7a8035(-0x10f,0x6c,0x33,0x51)&&_0x2dca6e[_0x13b285(_0x129ad8._0x4eccc4,_0x129ad8._0x195e44,_0x129ad8._0x596005,0x47f)][_0x7a8035(-_0x129ad8._0x269867,-0x1a1,-_0x129ad8._0x202ab5,-_0x129ad8._0x4b80b8)]()[_0x7a8035(-_0x129ad8._0x148da3,-0x165,-_0x129ad8._0x150fec,-0x214)]>0x0)return _0x2dca6e[_0x13b285(_0x129ad8._0x19000e,0x482,_0x129ad8._0x59a2f5,0x47f)];return void 0x0;}function formatAbortedRunMessage(_0x27f012,_0xefd374){const _0x3d0388={_0xd1bb50:0x156,_0x34966e:0x2e0,_0x491c49:0x293,_0x4d5c62:0x2b5,_0x3683f4:0x257,_0x2b55e3:0x191,_0x1f72fb:0x12c,_0x495571:0x233,_0x35b1d6:0x144},_0x23c529={_0x198902:0x1bf,_0x528bbc:0x83},_0x19231f=_0x3e4bcf(-_0x3d0388._0xd1bb50,-0x70,-0x85,-0xdf)+_0x27f012+'\x20was\x20aborted.';function _0x3e4bcf(_0xa04ae4,_0x3bb265,_0xfbb6ce,_0x30968f){return _0x357fd3(_0xa04ae4-0x165,_0x3bb265-0x78,_0xa04ae4- -0x272,_0x3bb265);}function _0x36485c(_0x3fc0d5,_0x6c51a5,_0x4bb6fb,_0x2d8423){return _0x1343ee(_0x6c51a5- -0xef,_0x2d8423,_0x4bb6fb-_0x23c529._0x198902,_0x2d8423-_0x23c529._0x528bbc);}if(!_0xefd374||_0xefd374[_0x3e4bcf(-0x26e,-_0x3d0388._0x34966e,-_0x3d0388._0x491c49,-_0x3d0388._0x4d5c62)]()[_0x3e4bcf(-_0x3d0388._0x3683f4,-_0x3d0388._0x2b55e3,-_0x3d0388._0x1f72fb,-0x149)]===0x0||_0xefd374===_0x19231f)return _0x19231f;return _0x19231f+_0x3e4bcf(-0x16d,-0x1bd,-_0x3d0388._0x495571,-_0x3d0388._0x35b1d6)+_0xefd374;}function createAssignTaskTool(_0x4a4f58){const _0x559a22={_0x417727:0x202,_0x538e8c:0x122,_0x24b0a8:0x206,_0x4dc278:0x396,_0x362b9b:0x24a,_0x2a7a2e:0x31a,_0x4b0c7e:0x1b7,_0xa0a241:0x383,_0x1e67d4:0x287,_0x5ba0e1:0x254,_0x51cbd4:0x129,_0x275c2a:0x1b9,_0x404c9f:0x39b,_0x3b6126:0x430,_0x9599c4:0x328},_0x3623b6={_0x157e8d:0x44,_0x3f6842:0xb1,_0x58c85c:0x68,_0x520e31:0x111,_0x4222d9:0x141,_0x148460:0x22,_0x16b779:0x26,_0x17f6ba:0xa,_0x1e43c1:0x1c9,_0x3a8ffd:0x48,_0x1e4bb3:0x217,_0x3a363b:0x242,_0x41eced:0x238,_0x5ce26f:0x1fb,_0x30fe0b:0x1b1,_0x31d589:0x22b,_0x3d1588:0x101,_0x408760:0x19e,_0x2b4c82:0x1cc,_0x4d1434:0x2f4,_0x433256:0x207,_0x3b279d:0x192,_0x5834a6:0x104,_0x29b3e6:0xb3,_0x461ecb:0xef,_0x3cfe5b:0x5,_0x55e899:0x52,_0x283e11:0x1b,_0x1711c5:0x16,_0x1835d3:0x237,_0x431c47:0x16b,_0x3a31b6:0x79,_0x8e875d:0xcc,_0x294f18:0x251,_0x145442:0x13d,_0x3bdf52:0x128,_0x54075d:0x260,_0x2c2cb8:0x1d8,_0x59e758:0x18c,_0xdbf0b6:0x189,_0x2d0bb9:0x148,_0x521ca2:0x77,_0x467c26:0x7a,_0x2ef1b9:0x1c2,_0x28e40a:0x272,_0x45e464:0x14b,_0x5564a5:0x237,_0x369d39:0x213,_0x35631a:0x2d8,_0x10af75:0x323,_0xddf292:0x2bf,_0x521281:0x382,_0x1a17ce:0x2f0,_0x3a0f99:0x2e,_0x395a8e:0x9a,_0x142a95:0x15,_0x2adf13:0x11,_0x251adb:0x28,_0x97cb6f:0x1c3,_0x504c5b:0x235,_0x5af6cc:0x31b,_0x2a3d6d:0x31a,_0x42bea4:0xde,_0x155b3f:0x1b7,_0x17f9e8:0x203,_0x510220:0x136,_0x5b9030:0x217,_0xe5241c:0x1fe,_0x42e0e2:0x1e3,_0x26ddf0:0x52,_0x7d4c53:0xa3,_0x2bf1d3:0x2,_0x48476e:0x1b,_0x190ddd:0x36,_0x428c3a:0x19,_0x4ed2fa:0x15b,_0x5aefff:0x32c,_0x22eefd:0x202},_0x2db180={_0x175f3d:0x366,_0x5675d3:0x435,_0x1d9149:0x3d0,_0x56b017:0x1ad,_0x21c777:0x21c,_0x27d3df:0x31e,_0x380dc6:0x29f},_0x7ef712={_0x378a61:0x3c2,_0x17688e:0x110},_0x238b5c={_0x5dc7de:0x132};function _0x3eb7e8(_0x354a47,_0x333e72,_0x5b4b78,_0x5b3bd6){return _0x357fd3(_0x354a47-_0x238b5c._0x5dc7de,_0x333e72-0x1da,_0x5b4b78-0x1bf,_0x333e72);}function _0x1a6c5e(_0x59aa43,_0x6fb4a7,_0x520943,_0x390644){return _0x1343ee(_0x390644-_0x7ef712._0x378a61,_0x59aa43,_0x520943-_0x7ef712._0x17688e,_0x390644-0x13f);}return defineTool({'name':'AssignTask','description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':_0x3eb7e8(_0x559a22._0x417727,_0x559a22._0x538e8c,_0x559a22._0x24b0a8,0x33f),'properties':{'agentId':{'type':_0x3eb7e8(_0x559a22._0x4dc278,_0x559a22._0x362b9b,0x254,_0x559a22._0x2a7a2e)},'description':{'type':'string'},'nickname':{'type':_0x3eb7e8(0x199,_0x559a22._0x4b0c7e,0x254,_0x559a22._0xa0a241)},'task':{'type':_0x3eb7e8(_0x559a22._0x1e67d4,0x283,_0x559a22._0x5ba0e1,0x12c)}},'required':[_0x3eb7e8(_0x559a22._0x51cbd4,0x271,0x25e,_0x559a22._0x275c2a),_0x1a6c5e(_0x559a22._0x404c9f,_0x559a22._0x3b6126,_0x559a22._0x9599c4,0x3c0),'task']},async *'execute'(_0x4893e6,_0x128667){const _0x4aedd9={_0x106824:0x1df,_0x3c5f81:0x123},_0x1decb5={_0x2bba1d:0x146,_0x1a6451:0x142},_0x30a7f2=createDelegatedRunId(),_0x5399cf={'agentId':_0x4893e6[_0x44fbcd(-0xc4,-0xa5,0x26,0x117)],'parentSessionId':_0x128667[_0x44fbcd(-_0x3623b6._0x157e8d,_0x3623b6._0x3f6842,0xd8,_0x3623b6._0x58c85c)],'runId':_0x30a7f2,..._0x128667[_0x3a6f35(0x122,_0x3623b6._0x520e31,_0x3623b6._0x4222d9,-0x2c)]!==void 0x0?{'toolCallId':_0x128667['toolCallId']}:{}},_0x5d4f61=getDelegatedAgentDefinition(_0x4a4f58,_0x4893e6[_0x44fbcd(-0x30,_0x3623b6._0x148460,_0x3623b6._0x16b779,0x9e)]);if(!_0x5d4f61)throw new ToolExecutionError(_0x44fbcd(-_0x3623b6._0x17f6ba,-_0x3623b6._0x1e43c1,-0x8a,_0x3623b6._0x3a8ffd)+_0x4893e6[_0x3a6f35(_0x3623b6._0x1e4bb3,_0x3623b6._0x3a363b,_0x3623b6._0x41eced,_0x3623b6._0x5ce26f)],{'agentId':_0x4893e6[_0x3a6f35(0x351,_0x3623b6._0x3a363b,0x122,0x38f)]});function _0x44fbcd(_0x5ca97e,_0x5c9666,_0x4d9930,_0xbf7014){return _0x3eb7e8(_0x5ca97e-_0x1decb5._0x2bba1d,_0xbf7014,_0x4d9930- -0x238,_0xbf7014-_0x1decb5._0x1a6451);}const _0x1f19aa=new Agent(await resolveDelegatedAgentOptions(_0x5d4f61,_0x5399cf));function _0x3a6f35(_0x269620,_0x2bc4bf,_0x3e054b,_0x3f5556){return _0x3eb7e8(_0x269620-_0x4aedd9._0x106824,_0x269620,_0x2bc4bf- -0x1c,_0x3f5556-_0x4aedd9._0x3c5f81);}let _0x5e709c={'runId':_0x30a7f2,'agentId':_0x4893e6[_0x3a6f35(_0x3623b6._0x30fe0b,_0x3623b6._0x3a363b,0x220,_0x3623b6._0x31d589)],'sessionId':_0x1f19aa['sessionId'],'status':_0x44fbcd(_0x3623b6._0x3d1588,_0x3623b6._0x408760,0xfe,0x5d),'parentSessionId':_0x128667[_0x3a6f35(_0x3623b6._0x2b4c82,_0x3623b6._0x4d1434,0x392,0x415)],..._0x128667[_0x44fbcd(-_0x3623b6._0x433256,-_0x3623b6._0x3b279d,-0x10b,-_0x3623b6._0x5834a6)]!==void 0x0?{'originToolCallId':_0x128667['toolCallId']}:{}};const _0x4d252c=new AbortController(),_0x1df3e6=addAbortListener(_0x128667[_0x44fbcd(-0x171,0x45,-_0x3623b6._0x29b3e6,0x7d)],()=>{const _0x3eb255={_0x176311:0x73},_0x2c5990={_0x528927:0x71,_0x2bdf4d:0x166};function _0x595677(_0x38c0cc,_0x454e42,_0x216d7c,_0x21e922){return _0x3a6f35(_0x216d7c,_0x38c0cc-0x142,_0x216d7c-_0x2c5990._0x528927,_0x21e922-_0x2c5990._0x2bdf4d);}function _0x2e01e4(_0x3ed054,_0x31fcf7,_0xcb690c,_0x22a8c2){return _0x44fbcd(_0x3ed054-_0x3eb255._0x176311,_0x31fcf7-0x189,_0x31fcf7- -0xf0,_0x3ed054);}_0x4d252c[_0x595677(_0x2db180._0x175f3d,_0x2db180._0x5675d3,0x311,_0x2db180._0x1d9149)](_0x128667[_0x595677(0x2ab,_0x2db180._0x56b017,0x342,_0x2db180._0x21c777)]?.[_0x2e01e4(-0x1a6,-0x1ec,-_0x2db180._0x27d3df,-_0x2db180._0x380dc6)]);});yield createToolOutput(_0x44fbcd(0x1,-_0x3623b6._0x461ecb,-_0x3623b6._0x3cfe5b,-0xc4)+_0x5e709c[_0x44fbcd(-0xfb,-_0x3623b6._0x55e899,_0x3623b6._0x283e11,_0x3623b6._0x1711c5)]+'.',{'runId':_0x5e709c[_0x3a6f35(0x256,_0x3623b6._0x1835d3,_0x3623b6._0x431c47,0x2af)],'agentId':_0x5e709c[_0x44fbcd(0x11d,_0x3623b6._0x3a31b6,0x26,-_0x3623b6._0x8e875d)],'sessionId':_0x5e709c['sessionId'],'status':_0x5e709c['status']});try{const _0x31df89=await _0x1f19aa[_0x44fbcd(-_0x3623b6._0x294f18,-_0x3623b6._0x145442,-_0x3623b6._0x3bdf52,-_0x3623b6._0x54075d)](_0x4893e6[_0x3a6f35(_0x3623b6._0x2c2cb8,_0x3623b6._0x59e758,0xe5,_0x3623b6._0xdbf0b6)],{'signal':_0x4d252c[_0x3a6f35(_0x3623b6._0x2d0bb9,0x169,_0x3623b6._0x521ca2,0x178)]});_0x5e709c={..._0x5e709c,'status':_0x31df89[_0x44fbcd(-0x103,0x6d,-_0x3623b6._0x467c26,0x15)],'result':_0x31df89};if(_0x31df89[_0x3a6f35(0x2b7,0x1a2,0x10e,0x267)]!==_0x3a6f35(_0x3623b6._0x2ef1b9,_0x3623b6._0x28e40a,0x138,0x1f1)){const _0x5e7fea=getRunTerminalErrorMessage(_0x31df89),_0x2170fa=formatAbortedRunMessage(_0x5e709c[_0x3a6f35(_0x3623b6._0x45e464,_0x3623b6._0x5564a5,_0x3623b6._0x369d39,_0x3623b6._0x35631a)],_0x5e7fea);throw new ToolExecutionError(_0x2170fa,{...createRunSummary(_0x5e709c),'aborted':!![],'errorMessage':_0x2170fa});}return createRunSummaryOutput(_0x5e709c,_0x3a6f35(_0x3623b6._0x10af75,_0x3623b6._0xddf292,_0x3623b6._0x521281,_0x3623b6._0x1a17ce)+_0x5e709c[_0x3a6f35(0x27e,0x237,0x1bf,0x10e)]+_0x44fbcd(0x13d,0x16,0x1e,0xb7));}catch(_0x1e2445){if(_0x1e2445 instanceof ToolExecutionError)throw _0x1e2445;if(isAbortError(_0x1e2445)||_0x4d252c[_0x44fbcd(-_0x3623b6._0x3a0f99,_0x3623b6._0x395a8e,-_0x3623b6._0x29b3e6,-_0x3623b6._0x142a95)][_0x44fbcd(-0x2a,-_0x3623b6._0x2adf13,-_0x3623b6._0x251adb,0x123)]||_0x128667[_0x3a6f35(0x1f2,0x169,_0x3623b6._0x97cb6f,0xce)]['aborted']){const _0x3fe71b=getRunTerminalErrorMessage(_0x5e709c[_0x3a6f35(0x30e,_0x3623b6._0x504c5b,_0x3623b6._0x5af6cc,0x34f)])??(_0x1e2445 instanceof Error?_0x1e2445['message']:String(_0x1e2445)),_0x56512e=formatAbortedRunMessage(_0x5e709c[_0x3a6f35(0x2f0,0x237,0x2d5,_0x3623b6._0x2a3d6d)],_0x3fe71b);_0x5e709c={..._0x5e709c,'status':_0x44fbcd(-0x8c,-0x112,-0x28,-_0x3623b6._0x42bea4),'errorMessage':_0x56512e};throw new ToolExecutionError(_0x56512e,{...createRunSummary(_0x5e709c),'aborted':!![],'errorMessage':_0x56512e});}const _0x49f2cb=getRunTerminalErrorMessage(_0x5e709c[_0x3a6f35(0x34e,0x235,_0x3623b6._0x155b3f,_0x3623b6._0x17f9e8)])??(_0x1e2445 instanceof Error?_0x1e2445[_0x3a6f35(_0x3623b6._0x510220,0x285,_0x3623b6._0x5b9030,_0x3623b6._0xe5241c)]:String(_0x1e2445))??_0x44fbcd(_0x3623b6._0x42e0e2,-_0x3623b6._0x26ddf0,_0x3623b6._0x7d4c53,0xa1)+_0x5e709c[_0x44fbcd(-0x130,-_0x3623b6._0x2bf1d3,_0x3623b6._0x48476e,_0x3623b6._0x190ddd)]+_0x44fbcd(-_0x3623b6._0x428c3a,-_0x3623b6._0x145442,-0x127,-_0x3623b6._0x4ed2fa);_0x5e709c={..._0x5e709c,'status':_0x3a6f35(_0x3623b6._0x5aefff,0x31d,0x3bf,_0x3623b6._0x22eefd),'errorMessage':_0x49f2cb};throw new ToolExecutionError(_0x49f2cb,{...createRunSummary(_0x5e709c),'errorMessage':_0x49f2cb});}finally{_0x1df3e6();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x33211c){return[createAssignTaskTool(_0x33211c)];}import*as _0x2b4434 from'path';function buildDescription2(_0x4446d1){const _0x341f93={_0x2480d7:0x2c3,_0x383928:0x2c6,_0x30cff2:0x19a,_0x5e16bb:0x285,_0x19c650:0x3df,_0x4c71b4:0x272,_0x5584d5:0x278,_0x48de44:0x242,_0x4fcd85:0x2b1,_0x3bf919:0x1dd,_0x38c034:0x226},_0x4a9ceb={_0x597c35:0x10a},_0x2616ba={_0x59901a:0x12f};function _0x4d80ab(_0xf7abca,_0x51891c,_0x66a446,_0x5aea38){return _0x1343ee(_0x66a446-0x187,_0x5aea38,_0x66a446-_0x2616ba._0x59901a,_0x5aea38-0x7f);}if(_0x4446d1[_0x4d80ab(0x1c9,_0x341f93._0x2480d7,0x1a7,_0x341f93._0x383928)]===0x0)return _0x13143a(0x7a,0x1e4,0x187,0x140);function _0x13143a(_0xa7f08b,_0x35cb14,_0x5f317d,_0x59f7d5){return _0x357fd3(_0xa7f08b-_0x4a9ceb._0x597c35,_0x35cb14-0x1bc,_0x5f317d-0x1a3,_0x59f7d5);}const _0x48b5c6=[_0x4d80ab(_0x341f93._0x30cff2,_0x341f93._0x5e16bb,0x2a9,_0x341f93._0x19c650),'Skills\x20provide\x20specialized\x20knowledge\x20and\x20step-by-step\x20guidance.','Use\x20this\x20when\x20a\x20task\x20matches\x20an\x20available\x20skill\x20description.',_0x13143a(_0x341f93._0x4c71b4,0x2b9,_0x341f93._0x5584d5,0x2f0),..._0x4446d1[_0x4d80ab(0x218,_0x341f93._0x48de44,0x10d,0x1c3)](_0x41645c=>'-\x20'+_0x41645c[_0x4d80ab(0x249,0x169,0x105,0xcd)]+':\x20'+_0x41645c[_0x4d80ab(0x215,0x70,0x185,0x1d6)])];return _0x48b5c6[_0x13143a(_0x341f93._0x4fcd85,0x20b,_0x341f93._0x3bf919,_0x341f93._0x38c034)]('\x0a');}function createLoadSkillTool(_0x222f0c){const _0x209aa6={_0x6facb4:0x30c,_0x4fa688:0x3b4,_0xe01f00:0x548,_0x2ac3ac:0x1f0},_0x1a9109={_0x3f44dc:0x27a,_0x23f8f9:0x2d8,_0x2306ae:0x4a5,_0xeb25cc:0x3a4,_0x15e5d2:0x4cc,_0xab30c5:0x3ec,_0x14b87d:0x4d5,_0x2667a7:0x3b3,_0x44cc7c:0x377,_0x43f8b2:0x4b2,_0x429ad2:0x309,_0x49e710:0x291,_0x1191d0:0x1ca,_0x3db5d8:0x491,_0x2c5b04:0x5d4,_0x3a8c9d:0x419,_0x294672:0x506,_0x1cbe68:0x4f4,_0x33ae75:0x4eb,_0xfb6be7:0x631,_0x475dc5:0x439,_0xc956de:0x506,_0x493992:0x270,_0x24e06c:0x45e,_0x238793:0x4bb,_0x9a24c6:0x269,_0x345430:0x291,_0x3a06bc:0x159,_0xd9f9bb:0x31b,_0x8ef4a0:0x2fd,_0x8a2bff:0x4f1,_0x3ae19e:0x523,_0x45dad3:0x58d,_0x4f5b4f:0x515,_0x107031:0x40d,_0x34868b:0x38e,_0x56634b:0x3a4,_0x48ac56:0x3d5,_0x3317b7:0x427,_0x1a6fd9:0x3e6,_0x4601ae:0x51e,_0x32849a:0x465,_0x3e1631:0x375,_0x3c6754:0x4b1,_0x147edb:0x364,_0x552360:0x56a,_0x14d5b9:0x427},_0x357568={_0x39a487:0x56},_0x518a78={_0x144f58:0x594},_0x566ff1={_0x3bc3bf:0x8b},_0x3857e={_0x4afd82:0x25,_0xc66aa9:0x3a8},_0x2612f5=new Map(_0x222f0c[_0x10e670(_0x209aa6._0x6facb4,0x318,0x34b,_0x209aa6._0x4fa688)]['map'](_0x1db981=>[_0x1db981['name'],_0x1db981]));function _0x10e670(_0x28b56e,_0x5f52e6,_0x29219b,_0x4ff839){return _0x357fd3(_0x28b56e-_0x3857e._0x4afd82,_0x5f52e6-0xd3,_0x5f52e6-_0x3857e._0xc66aa9,_0x28b56e);}function _0x33fe21(_0x471845,_0x3ed82a,_0x2e7924,_0x5b3915){return _0x357fd3(_0x471845-0x16d,_0x3ed82a-_0x566ff1._0x3bc3bf,_0x5b3915- -0x169,_0x471845);}const _0x5dfda5=buildDescription2(_0x222f0c['skills']);return defineTool({'name':_0x10e670(0x49e,0x565,0x447,_0x209aa6._0xe01f00),'description':_0x5dfda5,'inputSchema':{'type':'object','properties':{'name':{'type':'string'}},'required':[_0x33fe21(-0x291,-0x2eb,-0x122,-_0x209aa6._0x2ac3ac)]},async *'execute'(_0x42cb48){const _0x2347f2=_0x2612f5[_0x21bf2e(0x37d,_0x1a9109._0x3f44dc,_0x1a9109._0x23f8f9,0x3ba)](_0x42cb48[_0x2be6b3(0x39e,_0x1a9109._0x2306ae,0x344,_0x1a9109._0xeb25cc)]);function _0x2be6b3(_0x59f794,_0x1e110a,_0x53d043,_0x54d7ad){return _0x33fe21(_0x1e110a,_0x1e110a-0x1ec,_0x53d043-0xe5,_0x54d7ad-_0x518a78._0x144f58);}function _0x21bf2e(_0x5aa8c3,_0xf89b9e,_0x1de29f,_0x2b2121){return _0x33fe21(_0x2b2121,_0xf89b9e-0x193,_0x1de29f-_0x357568._0x39a487,_0xf89b9e-0x481);}if(!_0x2347f2){const _0x20e6be=Array[_0x21bf2e(_0x1a9109._0x15e5d2,0x3dd,0x4b3,0x346)](_0x2612f5[_0x2be6b3(_0x1a9109._0xab30c5,0x3a2,_0x1a9109._0x14b87d,_0x1a9109._0x2667a7)]())[_0x2be6b3(0x497,_0x1a9109._0x44cc7c,0x43f,0x465)](',\x20');throw new ToolExecutionError(_0x21bf2e(0x51c,0x3fb,_0x1a9109._0x43f8b2,0x41b)+_0x42cb48[_0x21bf2e(_0x1a9109._0x429ad2,_0x1a9109._0x49e710,0x25d,_0x1a9109._0x1191d0)]+_0x2be6b3(0x51c,0x58a,0x3d1,0x4c9)+_0x20e6be,{'name':_0x42cb48['name']});}const _0x43a37c=await _0x222f0c['loadSkill'](_0x2347f2),_0x2f0e7a=_0x2347f2[_0x2be6b3(_0x1a9109._0x3db5d8,_0x1a9109._0x2c5b04,_0x1a9109._0x3a8c9d,_0x1a9109._0x294672)][_0x2be6b3(_0x1a9109._0x1cbe68,0x5dd,0x4a0,_0x1a9109._0x33ae75)]??_0x2b4434['dirname'](_0x2347f2[_0x2be6b3(_0x1a9109._0xfb6be7,0x5b9,_0x1a9109._0x475dc5,_0x1a9109._0xc956de)][_0x21bf2e(0x214,0x314,_0x1a9109._0x493992,_0x1a9109._0xeb25cc)]),_0x29c876=[_0x21bf2e(_0x1a9109._0x24e06c,0x37c,_0x1a9109._0x238793,0x405)+_0x43a37c[_0x21bf2e(_0x1a9109._0x9a24c6,_0x1a9109._0x345430,0x351,_0x1a9109._0x3a06bc)],'',_0x43a37c['instructions'],'',_0x21bf2e(0x448,_0x1a9109._0xd9f9bb,_0x1a9109._0x8ef4a0,0x38a),_0x2be6b3(_0x1a9109._0x8a2bff,_0x1a9109._0x3ae19e,0x4f8,_0x1a9109._0x45dad3)+_0x2347f2[_0x21bf2e(_0x1a9109._0x4f5b4f,0x3f3,_0x1a9109._0x107031,_0x1a9109._0x34868b)][_0x2be6b3(_0x1a9109._0x56634b,_0x1a9109._0x48ac56,0x564,_0x1a9109._0x3317b7)],_0x2be6b3(_0x1a9109._0x429ad2,0x362,0x479,_0x1a9109._0x1a6fd9)+_0x2f0e7a][_0x2be6b3(0x35b,_0x1a9109._0x4601ae,0x44a,_0x1a9109._0x32849a)]('\x0a');return yield createToolOutput(_0x29c876,{'id':_0x43a37c['id'],'name':_0x43a37c['name'],'path':_0x2347f2[_0x21bf2e(0x48e,0x3f3,_0x1a9109._0x3e1631,_0x1a9109._0x3c6754)][_0x2be6b3(0x357,_0x1a9109._0x147edb,_0x1a9109._0x552360,_0x1a9109._0x14d5b9)],'baseDirectory':_0x2f0e7a}),void 0x0;}});}var TODO_STATUSES=new Set([_0x1343ee(0x177,0x1f9,0x199,0x4f),'in_progress',_0x357fd3(0x1ea,0x1ff,0xcf,0xda)]),TODO_PRIORITIES=new Set(['high','medium','low']);function isTodoStatus(_0xedfb8d){const _0x1ccfe5={_0x3df28f:0x64,_0x272a39:0x10f,_0x3ed9af:0x10e,_0x4b7449:0x101,_0x19d7f1:0x11f,_0x2dce28:0x80,_0xcda0ae:0xc},_0x22e34e={_0x459848:0x16a},_0x27aa7a={_0x3f6cb5:0x10e,_0x263373:0x1cd,_0x47bf8f:0xb1};function _0x46c544(_0x16a095,_0x5d3ab3,_0x212780,_0x45c32b){return _0x357fd3(_0x16a095-_0x27aa7a._0x3f6cb5,_0x5d3ab3-_0x27aa7a._0x263373,_0x45c32b-_0x27aa7a._0x47bf8f,_0x212780);}function _0x5235ff(_0x31a83d,_0x63921,_0x185f9d,_0x4d139d){return _0x357fd3(_0x31a83d-0x1b5,_0x63921-_0x22e34e._0x459848,_0x31a83d- -0x9a,_0x63921);}return typeof _0xedfb8d===_0x5235ff(-0x5,-_0x1ccfe5._0x3df28f,-_0x1ccfe5._0x272a39,-_0x1ccfe5._0x3ed9af)&&TODO_STATUSES[_0x46c544(_0x1ccfe5._0x4b7449,_0x1ccfe5._0x19d7f1,_0x1ccfe5._0x2dce28,-_0x1ccfe5._0xcda0ae)](_0xedfb8d);}function isTodoPriority(_0x364943){const _0x5322b0={_0x3eb45e:0x91,_0x5e5645:0x3e0,_0x580d4a:0x42c},_0x2d665e={_0x383fa5:0x88,_0x4a7f6c:0x56,_0x25c394:0x49d};function _0x351976(_0x1a95ef,_0x274344,_0xfe7dd2,_0x45766c){return _0x357fd3(_0x1a95ef-_0x2d665e._0x383fa5,_0x274344-_0x2d665e._0x4a7f6c,_0x274344-_0x2d665e._0x25c394,_0x45766c);}function _0x954d32(_0x2200f5,_0x3588a5,_0x57823e,_0x46716c){return _0x1343ee(_0x2200f5- -0x182,_0x46716c,_0x57823e-0x60,_0x46716c-0x50);}return typeof _0x364943===_0x954d32(-0xe8,-0x235,-_0x5322b0._0x3eb45e,-0x217)&&TODO_PRIORITIES[_0x351976(0x2f6,_0x5322b0._0x5e5645,_0x5322b0._0x580d4a,0x328)](_0x364943);}function _0x4019(){const _0x5e3318=['zw5K','BwnFzwLK','zNvUy3rPB24','Dg9VBc1VDxrWDxqTB2zMBg9Hza','BM93','C2vYDMvY','C2vYDMvYswq','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','CMvZDwX0CW','AwzYyw1L','CMvZDwX0','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','CNvUswq','C3rYAw5N','D3jPDgu','ignVBxbSzxrLzc4','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','l3vZCI9IAw4VyMfZAa','Dg9KB3ncEvnLC3nPB24','lNbUzW','lw5i','mtm3mg5Uz3jzza','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','ywDLBNrjza','Cg9W','Aw52ywXPzf90B2rVx2LK','oIbJB250zw50ihjLCxvPCMvK','BgL0zxjHBa','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','qMfZAa','AxndB250zxH0','CgfJA2fNzu5HBwu','A2v5yMLUzgLUz3m','yMfZAwm','EwvZ','rgv0ywLSoIa','BgLUzq','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','qxnRvxnLCLrVB2W','Aw5PDgLHBgL6zq','vw5RBM93BIb0B29SoIa','AxngAw5PDgu','Aw1Hz2uVANbLzW','Ag9TzwrPCG','zw52','y21KlMv4zq','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','C2vYDMvYCW','vg9KBYa','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','Dhj1zq','DxjS','ywXSu2v0DgXLza','DhnJ','zgLYzwn0B3j5','y29UDgv4DeXPBMS','Dg9VBhm','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','Aw1Hz2uVz2LM','zNjVBq','CMvJB3jK','DhjHBNnWB3j0','Ahr0CdO','AxneAxjLy3rVCNK','C3jJl2v4yw1WBgvZl2rLBw8UDhm','C2v0vg9KB3m','l3vZCI9SB2nHBc9IAw4VCMC','AwDUB3jL','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','y29TCgXLDgvK','Dgv4DerVy3vTzw50l2rPze9Wzw4','CMvJzw5JEurHExm','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','C3rHCNq','zNvSzMLSBgvK','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','B3b0Aw9UywW','lMPZB25J','AxnfBMfIBgvK','DxrMoa','B3bLBG','C291CMnL','Aw1Hz2u','Aw5PDgLHBgL6yxrPB24','ChvIBgLZAgvKqxq','B25Jzq','yw5ZAte2','ywrK','BwvZC2fNzq','u2TPBgWGjW','BgLUzu51Bq','CM91BMq','BwvTB3j5','BgLZDfrVB2XZ','BgfIzwW','yxnRvxnLCG','v0vcua','CMLWz3jLCa','DhnJB25MAwCUANnVBG','lNrZ','zgv0ywLS','DgfZA2TPBgW','AhjLzG','BgLZDgvU','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','qwXSia','v2fYBMLUzW','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','l2jPBI9ZAa','zMLSDgvY','ls1NBg9I','tNv2Aw4','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','lMnQCW','AxnbCNjHEq','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','ugf0AcbPCYbUB3qGysbMAwXLoIa','ls1JB2X1Bw4','Dg9tDhjPBMC','zgLHz25VC3rPy3ngB3jgAwXL','zgvMyxvSDen3za','C2v2zxjPDhK','DxrTx2nVBNrLBNq','ienHDxnLoIa','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','r3jLCa','Dg9vChbLCKnHC2u','lMPZEa','CMvMzxjLBMnLCW','CMLWz3jLCcbMywLSzwq6ia','Dg9ju09tDhjPBMC','zgvMAw5PDgLVBG','C3rYAw5NAwz5','Dg9mB3DLCKnHC2u','Ag9ZDa','uKLgrG','A2LSBgvK','AxnjBNrLz2vY','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','BxvSDgLtzwXLy3q','z29uB0rLzMLUAxrPB24','lM51DMLU','DxrTx2nHBxbHAwDU','BNbT','BM9Kzv9TB2r1BgvZ','DxrTx3rLCM0','qwDLBNqGCNvUia','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','rMv0y2GGDgLTzwqGB3v0','Cg5WBs1SB2nRlNLHBwW','Dgv4Da','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','D2fPDezVCKrPywDUB3n0AwnZ','l2jPBI9IyxnO','ru5pru5u','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','C3vIyxjYyxK','yM9VBgvHBG','zxH0BMfTzq','B2zM','CgXHAw4','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqP','y29ZDa','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','AhrTBfnUAxbWzxq','lcbpChrPB24G','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','C2HHmJu2','C3rHCNreAxi','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','zgLZCg9Zzq','y291BNq','DgvZDa','CMvSyxrPDMu','cMbGya','BMv3vgv4Da','BhmGlwXH','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','lMnTza','zhj5uNvU','BwnWxW','zgvSzxrL','DxrTx21LzgL1Bq','BNvTyMvY','lMPWzW','xsb0CMfUC3bVCNqGzxjYB3i6','DMvYAwzPzxi','zMLUza','qMvHCMvYia','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','B2f1DgG','D2HPy2GGCMC','yxnPzgu','BgLUzvrLEhq','zgf0zvjLC3rYAwn0','Bw9Kzq','C2vZC2LVBKLK','C3rKB3v0','DgLTzvTKyxrLDgLTzv0','Ahr0Ca','AwDUB3jLt3v0Chv0','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','tM8GC3vJAcbMAwXLoIaN','oIaIAgvHzgvYiIbMAwvSzcbPCYbYzxf1AxjLzcbHBMqGBxvZDcbIzsbHihn0CMLUzW','mc4WlJa','twLJCM9ZB2z0','zxzLCNK','v2vIrMv0y2G','txvZDcbWCM92AwrLideTncbXDwvZDgLVBNm','C2L6zq','lMjPBG','B3v0Chv0','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','tg9HzgvKigzYB206ia','DhLWzxnJCMLWDa','y2fSBeLK','C3rKAw8','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','zM9VDgvY','CxvLCNK','CgfYC2vjBNq','ywDLBNrZ','EwfYBI5SB2nR','C2XPy2u','BgfUzW','Bw9KzwW','B25szwrPCMvJDa','ywXSB3DLzfrVB2XZ','y2fSBgjHy2TvCMW','CgvUzgLUzW','z29Vz2XLlwnZzq','D2LUmZi','l3vZCI9IAw4VCMC','BM9Uzq','CNvUBMLUzW','yM94zwq','lI4U','zMfPBgvK','yxr4','CgLK','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','mtfothznDKe','yMLVBwu','lu5Vtg9NBW','ls1MB2XSB3C','Aw5qCM9NCMvZCW','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','zxjYB3i','uxvLC3rPB24G','C2HLBgXqyxrO','zw5NAw5LCW','ls1YzwDLEha','B3bLBKzPBgvZ','C2fMzq','Aw52ywXPzf90B2rVx2nVBNrLBNq','DhnZzxj2zxiUANm','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','DhLWzxnJCMLWDhjLywn0','C3jJl3nOyxjLzc90ExbLCY50CW','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','BwnFy2LK','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','CgfZC3DVCMq','ygbG','sw52ywXPzcbvuKWGCgfYyw1LDgvY','BhnWu2vYDMLJzq','lNDLyNa','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','CgXHDgzVCM0','ls1WCMvMAxG','B3v0z29PBMDdywXSCW','Aw52ywXPzf90B2rVx3n0yxr1CW','AgfUzgXL','tuLnrtOG','CgfZC3rOCM91z2G','w01duca','u2HLBgWGBM90igzVDw5KoIa','ntbmsfD4CNi','y2HHCMfJDgvY','DgL0Bgu','AgvHzgvY','AxnbyNnVBhv0zq','ksbB','yxjNCW','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','l29WDc9OB21LyNjLDY9IAw4VCMC','BgLUzuvUza','y3jLyxrLzef0','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','r0LgodDH','zgLYBMfTzq','C3LTBgLUAW','yxr0CG','AxnfCNjVCG','Cgf0DgvYBIbPCYbYzxf1AxjLza','q29Tu3bLyW','yxbPs2v5','zhvWBgLJyxrLx3rVzg9FAwrZ','ANnVBG','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','tuvesvvn','CgfJA2fNzxm','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','lMXVzW','tg9HzfnRAwXS','y2XPzw50','ie9sia','lu5VuhjVzMLSzq','CMvNAw9U','Dg9VBa','BhnWlxbYB3H5','yxjNDw1LBNriAw50','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','v2vIu2vHCMnO','o1TE','y29Uy2f0','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','y29UDgvUDa','tM8GC3LTyM9SCYbMB3vUza','Dgv4Dc9ODg1S','DxnLCM5HBwu','CgfJA2fNzs1SB2nRlMPZB24','CMvTB3zLrxzLBNrmAxn0zw5LCG','CgfYC2u','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','zxjYB3jnzxnZywDL','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','B25LCNjVCG','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','AMf2yxnJCMLWDa','igj5DgvZks4','Bwf0y2HLCW','B2C6DxbKyxrLzf90Aw1L','C2HPzNq','C3rHDgu','sw52B2TLq29TBwfUza','Aw5JB21PBMDdywXSCW','cGPbuKDvtuvovfm6ia','yxjNDw1LBNrZvgv4Da','AgfZ','CgfJA2fNzs5QC29U','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','z29uB0LTCgXLBwvUDgf0Aw9U','D29YA3nWywnLl3n5BwjVBa','Dw5RBM93BG','yxv0AfjLCxvPCMvK','n3n3weDPrW','C3vKBW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','Aw1Hz2uVD2vICa','zMvUy2vK','AxrLBxm','Bg93','C2vUza','igzHAwXLzc4','Aw1WBgvTzw50yxrPB24','Cgf0DgvYBG','ywXSB3DLzerPCNm','B2zMC2v0','AhLKCMf0zu1LDge','Dw5PB24','Bg9JyxrPB24','Aw5FChjVz3jLC3m','y29UDgv4Da','AMf2yxnJCMLWDhjLywn0','igj5DgvZicH0B3rHBdOG','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','uhjVz3jHBuzPBgvZ','Aw1Hz2vZ','BhnW','z2v0','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','ntu1y291uMHK','vw50AxrSzwq','CxvLC3rPB25Z','CNnZ','zgvSAw1PDgvY','z2v0vg9KB3m','zgvUBY5QC29U','yw5ZD2vYCW','C3rKzxjY','AgLNAa','Dg9VBenHBgXjza','C2H1DgrVD24','C2TPBgXZ','ig1HDgnO','y29TBwfUza','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','BxrPBwvnCW','Aw5KzxHpzG','C3bSAxq','Aw5ZDhj1y3rPB25Z','Aw5JBhvKzxm','BMfTzq','tunqihnLCNzLCIa','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','lMPZB24','CMvHC29U','z29Vz2XLq3nLs2v5','z2v0u3rHDhm','zMLSzvzLCNnPB25Z','BwfW','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','y2f0y2G','zgLHz25VC3rPy3m','oIaIAgvHzgvYiIbTDxn0igjLig1HEcaYmcbJAgfYywn0zxjZlcbNB3qG','zgf0zxrPBwu','C2vHCMnOrgvWDgG','A2v5CW','yNL0zuXLBMD0Aa','CgLWzq','y29KzvzLCMLMAwvY','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','C25PChbLDa','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','z2nSAwq','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','Dg9Rzw5Z','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','Dhj1BMm','yNjVA2vU','y2XPzw50CW','C2vHCMnOugfYyw1Z','Aw5WDxq','CMvWBgfJzq','igzYB20G','C2vUze5VDgLMAwnHDgLVBG','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','ywn0AxzL','yxjNDw1LBNroyw1LCW','zgvUBY5QC29UyW','yxjYyxK','tunqihrVB2WG','C29YDa','AgvHzgvYCW','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','zMLSzvbHDgG','CMvXDwLYzwq','DgLTzw91De1Z','y2HHCKnVzgvbDa','zg9TywLUCW','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','uhjVz3jHBuzPBgvZkhG4nIK','C2L0ztO','z29Vz2XLq3nLq3G','y2fWywjPBgL0AwvZ','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','tM8GAg92zxiGAw5MB3jTyxrPB24','y2XLyw51Ca','r2XVyG','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','Aw5JBhvKzq','zgvSzwDHDgvKlxj1BI0','Dg9KB3m','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','DgHLBG','Aw52ywXPzf90B2rVCW','qMfZzsbKAxjLy3rVCNK6ia','phn5C3rLBs1Yzw1PBMrLCJ4','BwfYA2rVD24','lM1QCW','zgvMyxvSDa','C2vYDMvYtMfTzq','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','C2nYAxb0','DxbKyxrL','Dg9WAwm','DMfSDwu','C2LNBMfS','Bwv0yq','CgfNzw1HCa','C2vUzfjLCxvLC3q','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','C2nVCgvZ','tM8GBg9JyxrPB25ZigzVDw5K','Dgf2AwX5','pc9ZExn0zw0TCMvTAw5Kzxi+','y2XPzw50x3nLy3jLDf9WB3n0','yxv0Aa','zw5HyMXLza','y29UBMvJDa','zw51Bq','seLhsa','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','yxbWBgLJyxrPB24VANnVBG','ygbGANnVBGO','y29UzMLN','Bwf4','Dg9VBe5HBwu','zxjYB3jZ','CMfUz2u','zg9JDw1LBNrtEw1IB2W','zxHPDcbJB2rLia','zgLZy292zxj5u3rHDgu','y2XLyxi','C29Tzq','yxnZAwDU','zgf0yq','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','Aw52ywXPzf90B2rVx2L0zw0','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','C3rHCNrZv2L0Aa','Aw5JBhvKzv9KB21HAw5Z','DgfZAW','C3rHDhvZvgv4Da','zMLSzq','wZ0+nY04kcLD','ig1Z','CM9VDa','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','mJe4mZmYv3n6A1nI','ue9tva','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','Aw50zwDLCG','yMLVBwuUANnVBMm','B3bLCMf0Aw9U','y2XPzw50sw5MB3jTyxrPB24','zgvZy3jPChrPB24','Bg9HzenVBw1HBMq','Aw1Hz2uVCg5N','Cgf0Aa','zMLUywXnzxnZywDL','mtqZmtaXnKvABLr4Cq','C3rHDhvZ','nZC0rhrKt2zo','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','BwLU','ls0T','DhjPBq','A2LSBa','yMfZzw5HBwu','xg5DkJ8','rxjYB3i','BgLTAxq','thnW','yxv0Ag9YAxPHDgLVBL9JB2rL','zgLZy292zxj5','l3bPza','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','DxjP','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','ChjPB3jPDhK','DhjPBuvUza','vw5HDxrOB3jPEMvKrxjYB3i','Agv4','AxngAwXL','yw5ZAti1nG','C2H1DgrVD25tDgfYDgvK','BgLUAW','B2XKvgv4Da','BgvUz3rO','Aw52ywXPzf90B2rVx3bYAw9YAxr5','CMvMCMvZAf90B2TLBG','yMfZzty0','CMfUzg9T','lNrZEa','yxnJAwK','ls1NBg9Ipq','zgLZywjSzwq','y29Kzq','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','B3b0Aw9UCW','B3bLBMfPlxjLC3bVBNnLCY13CW','ChjVDg9JB2W','rMLSzu5LDW','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','DhLWzq','CgXHAw50zxH0','ChjLCgfYzunHBgXiAwvYyxjJAhK','B2XSyw1H','cGOTls0kcG','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','ndKYntiWohfYCuPqBq','ChjVCgvYDgLLCW','zMLYC3q','BxrPBwu','zMLUzfjLzMvYzw5Jzxm','sfruuca','y3jSzG','ugfJA2fNzxm','lMDPzG','AM9PBG','zw50CMLLCW','Dhj1zwnVBg9Y','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','ChjLzML4','Dgv4DerVy3vTzw50l2rPzenSB3nL','Ag92zxi','A2LUza','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','CxvLC3rPB24','y29TBwfUzhm','CMCUzxHL','yxv0BW','B2jQzwn0','AgfZq2XPzw50CW','y2vPBa','CgfYzw50u2vZC2LVBKLK','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','ls1ZDgrPBW','Bwv0yxrHz3m','qxzHAwXHyMXLignVBw1HBMrZoG','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','yNvUlMXVy2S','ywjVCNrLza','tgLUzsa','CMvXDwvZDa','yMvHCMvY','mZK1mJbyr2HLC2O','z2XVyG','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','C3rYAxbbBNnP','C3bHD25PBMC','BgLUzvn0yxj0','Dg9Rzw5tDg9YywDLs2v5','BNv2Aw4','ChvZAa','Dg9Rzw4','C3jJl2fNzw50l2fNzw50lNrZ','yxjNDw1LBNrZ','Dgf2AwX5qxbPs2v5','lMPWzwC','CMvZB2X2zq','iYmGu2TPBgW6ia','Aw52ywXPzf9XDwvZDgLVBNm','Dg90ywW','zMjJBgLK','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','mZaXmZC2mxnQr3LtAG','Aw5WDxrty2HLBwe','u2L6ztOG','rgLHz25VC3rPyW','ywXS','zw5NAw5L','mZaYndG0qLHzvMvV','BMf2','Dg9VBhmVy2fSBa','lNrTCc4','u3rHCNrLzcbHz2vUDcbYDw4G','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','y2HHBMDL','C2vSzwn0Aw9UuMfUz2u','t0zg','C2v0','y2XVC2u','BgLI','B3jPz2LUvg9VBenHBgXjza','CMvXDwvZDhm','D29YA3nWywnLu3LTyM9S','y3DK','ywjVCNq','yMLYDgH0Aw1L','u0Lhs0Lmta','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','zMXHDe1HCa','te9x','vg9KB1DYAxrL'];_0x4019=function(){return _0x5e3318;};return _0x4019();}var TodoStore=class{[_0x1343ee(0x9f,0xf5,0x96,0x154)]=new Map();[_0x357fd3(-0x175,-0x39,-0x97,-0x2e)](_0x15c6f6){const _0x28222f={_0x2d3f76:0x454,_0x538509:0x576,_0x2085b8:0x46c},_0x3a9b8c={_0xd7b1c3:0x150,_0x1259c3:0x1dd};function _0x23e058(_0x44c3ae,_0x4887d6,_0x316f26,_0x564460){return _0x357fd3(_0x44c3ae-_0x3a9b8c._0xd7b1c3,_0x4887d6-_0x3a9b8c._0x1259c3,_0x44c3ae-0x4f2,_0x564460);}return this['todosBySession'][_0x23e058(_0x28222f._0x2d3f76,0x4c9,_0x28222f._0x538509,_0x28222f._0x2085b8)](_0x15c6f6)??[];}['setTodos'](_0x41c28c,_0x110d30){const _0x4b7d64={_0x3d108c:0x196},_0x5185fb={_0x12c9be:0x4b,_0x5c8788:0x197};function _0x5afbd3(_0x4037c4,_0x3d93c3,_0x5a050d,_0x1975d9){return _0x1343ee(_0x4037c4-0x32,_0x1975d9,_0x5a050d-_0x5185fb._0x12c9be,_0x1975d9-_0x5185fb._0x5c8788);}this['todosBySession'][_0x5afbd3(0xb1,0x1df,_0x4b7d64._0x3d108c,0x6c)](_0x41c28c,_0x110d30);}[_0x357fd3(-0x18d,-0xf4,-0x81,0xca)](_0x19cd8){const _0x550fab={_0x30c648:0x33f,_0x2e924f:0x33b,_0x44aacc:0x556,_0x33dbe1:0x378,_0x52cee4:0x519,_0x19ac76:0x593,_0x73814b:0x330,_0x11509a:0x520,_0x62dfc2:0x5b1,_0x217e53:0x525,_0x3827f1:0x4f3,_0x3a0ba5:0x56f,_0x23777b:0x4f6,_0x201b91:0x4a8},_0x40026b={_0x55f766:0x4a0},_0x5d652c={_0x2cba51:0xeb,_0x5c5826:0x85},_0x997660=this['getTodos'](_0x19cd8);function _0x1bc40(_0x634d5d,_0x3480d2,_0x4dfa66,_0x51c5df){return _0x357fd3(_0x634d5d-_0x5d652c._0x2cba51,_0x3480d2-_0x5d652c._0x5c5826,_0x4dfa66-0x2da,_0x3480d2);}const _0x1f9864={'total':_0x997660['length'],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x4f7481(_0xee9755,_0x15895e,_0x1cd809,_0x4cb47a){return _0x357fd3(_0xee9755-0x1b0,_0x15895e-0xde,_0x15895e-_0x40026b._0x55f766,_0x4cb47a);}for(const _0x12fbdc of _0x997660){if(_0x12fbdc['status']==='pending')_0x1f9864[_0x1bc40(_0x550fab._0x30c648,_0x550fab._0x2e924f,0x44c,_0x550fab._0x44aacc)]+=0x1;else{if(_0x12fbdc[_0x4f7481(_0x550fab._0x33dbe1,0x49f,_0x550fab._0x52cee4,_0x550fab._0x19ac76)]===_0x4f7481(0x361,0x3fa,_0x550fab._0x73814b,0x4f2))_0x1f9864[_0x4f7481(_0x550fab._0x11509a,0x622,_0x550fab._0x62dfc2,_0x550fab._0x217e53)]+=0x1;else _0x1f9864[_0x4f7481(_0x550fab._0x3827f1,_0x550fab._0x3a0ba5,_0x550fab._0x23777b,_0x550fab._0x201b91)]+=0x1;}}return _0x1f9864;}};function validateTodos(_0x4302f0){const _0x452b8b={_0x2c5435:0x37,_0x507cb1:0x1cf,_0x597dc8:0x32b,_0x59edf7:0x471,_0x4edad2:0x4fa,_0x3ccdb7:0x4d0,_0x13cda6:0x45a,_0x482732:0x1c6,_0x5c7bee:0x15d,_0x5803c7:0x19d,_0x48e017:0x7b,_0x1bc79b:0x1d1,_0x181750:0xe2,_0x5933c3:0xb1,_0xaf311b:0x2e1,_0x1cb9a8:0x1d,_0x1a6703:0xe4,_0x434fcc:0x107,_0x565567:0x11f,_0x30935f:0x8e,_0x27e711:0x1a1,_0x44455d:0x564,_0x1db426:0x206,_0x3c2c37:0x0,_0x30aee8:0x122,_0xaeb9bb:0xd4,_0x4ad689:0x31,_0x3216c8:0x30,_0x2b8799:0x4d,_0x283123:0x5f,_0x1aa908:0x198,_0x1e2973:0x4c2,_0xbc84d5:0x408,_0x3fca76:0x4ad,_0x752a53:0x550,_0x1e7b92:0x4aa,_0xc4ef98:0x77,_0x4015b2:0x11,_0x963d7d:0x4bf,_0x3769fd:0x3a5,_0x291f14:0x523,_0x25e7e1:0x62b,_0x4dc4ae:0x4a,_0x305954:0x1c0,_0x528bfe:0x180,_0x79f906:0x130,_0x5e3057:0x40a,_0x884452:0x3a4,_0x5d5441:0x4af,_0x1834ef:0x405,_0x3ee2ac:0x423,_0x19b7f4:0x52e,_0x4e082d:0x536,_0xe48b94:0x54a,_0x47b700:0x634},_0x456515={_0x520345:0x128,_0x35cce4:0x19c},_0x5e3ead={_0x174170:0xa7};function _0xf6516f(_0x6b9151,_0x50ad08,_0x2607bc,_0x29af2e){return _0x357fd3(_0x6b9151-0x17d,_0x50ad08-_0x5e3ead._0x174170,_0x50ad08-0x408,_0x6b9151);}if(!Array[_0x3033c3(-0x12a,0x97,-0xa0,-_0x452b8b._0x2c5435)](_0x4302f0['todos'])||_0x4302f0['todos']['length']===0x0)throw new ToolExecutionError(_0x3033c3(-0x11f,-0xcd,-0x1e4,-_0x452b8b._0x507cb1),{'error':_0xf6516f(_0x452b8b._0x597dc8,0x3c2,_0x452b8b._0x59edf7,_0x452b8b._0x4edad2)});for(let _0x4aa2cb=0x0;_0x4aa2cb<_0x4302f0[_0xf6516f(_0x452b8b._0x3ccdb7,0x3bf,0x354,_0x452b8b._0x13cda6)]['length'];_0x4aa2cb+=0x1){const _0x5c93ea=_0x4302f0[_0x3033c3(-_0x452b8b._0x482732,-0x156,-0x1e5,-_0x452b8b._0x5c7bee)][_0x4aa2cb];if(!_0x5c93ea||typeof _0x5c93ea!==_0x3033c3(-0x100,-_0x452b8b._0x5803c7,-0x155,-0x282))throw new ToolExecutionError(_0x3033c3(-_0x452b8b._0x48e017,-_0x452b8b._0x1bc79b,-_0x452b8b._0x181750,-0xac)+(_0x4aa2cb+0x1)+_0x3033c3(0x8,-_0x452b8b._0x5933c3,-0xef,-0x1a),{'error':_0xf6516f(0x4c6,0x3ed,0x3fd,_0x452b8b._0xaf311b)});if(typeof _0x5c93ea['id']!==_0x3033c3(_0x452b8b._0x1cb9a8,-_0x452b8b._0x1a6703,-_0x452b8b._0x434fcc,-_0x452b8b._0x565567)||_0x5c93ea['id'][_0x3033c3(-_0x452b8b._0x30935f,-_0x452b8b._0x27e711,-0x198,-0xd9)]()[_0xf6516f(0x339,0x423,0x4ca,_0x452b8b._0x44455d)]===0x0)throw new ToolExecutionError(_0x3033c3(-0x17a,-_0x452b8b._0x1db426,-0xe2,-0x222)+(_0x4aa2cb+0x1)+':\x20id\x20required',{'error':_0x3033c3(_0x452b8b._0x3c2c37,-0x19f,-0xfb,-0x125)});if(typeof _0x5c93ea[_0x3033c3(_0x452b8b._0x30aee8,_0x452b8b._0xaeb9bb,0x30,0x10d)]!==_0x3033c3(0x1b,-0x180,-0x107,_0x452b8b._0x4ad689)||_0x5c93ea[_0x3033c3(0xa,0x103,_0x452b8b._0x3216c8,_0x452b8b._0x2b8799)][_0x3033c3(-0xc1,-_0x452b8b._0x283123,-_0x452b8b._0x1aa908,-0x106)]()['length']===0x0)throw new ToolExecutionError(_0xf6516f(0x5a4,_0x452b8b._0x1e2973,_0x452b8b._0xbc84d5,_0x452b8b._0x3fca76)+(_0x4aa2cb+0x1)+_0xf6516f(_0x452b8b._0x752a53,_0x452b8b._0x1e7b92,0x54a,0x3ff),{'error':_0x3033c3(0x61,-_0x452b8b._0xc4ef98,-_0x452b8b._0x4015b2,-0x12f)});if(!isTodoStatus(_0x5c93ea[_0xf6516f(0x33c,0x407,0x35b,_0x452b8b._0x963d7d)]))throw new ToolExecutionError(_0xf6516f(0x560,_0x452b8b._0x1e2973,_0x452b8b._0x3769fd,0x50d)+(_0x4aa2cb+0x1)+':\x20invalid\x20status',{'error':_0xf6516f(_0x452b8b._0x291f14,0x5a4,_0x452b8b._0x25e7e1,0x5b0)});if(!isTodoPriority(_0x5c93ea[_0x3033c3(-0x71,-0x2c7,-0x18a,-_0x452b8b._0x4dc4ae)]))throw new ToolExecutionError('Todo\x20'+(_0x4aa2cb+0x1)+':\x20invalid\x20priority',{'error':_0x3033c3(-_0x452b8b._0x305954,-0xb3,-_0x452b8b._0x528bfe,-_0x452b8b._0x79f906)});}function _0x3033c3(_0x10f52f,_0x17dc51,_0x1bcb10,_0x2fd7e3){return _0x357fd3(_0x10f52f-_0x456515._0x520345,_0x17dc51-0x1d9,_0x1bcb10- -_0x456515._0x35cce4,_0x17dc51);}const _0x2fba30=_0x4302f0[_0xf6516f(_0x452b8b._0x5e3057,0x3bf,0x2de,_0x452b8b._0x884452)][_0xf6516f(_0x452b8b._0x5d5441,0x389,_0x452b8b._0x1834ef,0x4a8)](_0x5a3705=>_0x5a3705['id']);if(new Set(_0x2fba30)['size']!==_0x2fba30[_0xf6516f(0x426,_0x452b8b._0x3ee2ac,0x2e4,0x3cc)])throw new ToolExecutionError(_0xf6516f(_0x452b8b._0x19b7f4,0x5d1,0x4f8,0x618),{'error':_0xf6516f(_0x452b8b._0x4e082d,0x5be,_0x452b8b._0xe48b94,_0x452b8b._0x47b700)});}function createStatsProgress(_0x205c15){const _0x4b2d73={_0x2b3f6b:0x415,_0x1c0516:0x378,_0x3f1be5:0x377},_0x38cefa={_0x5bbe81:0x3d7,_0x4687d5:0x188},_0x249b72={_0x22b185:0x14,_0x3d8089:0x1ab,_0x59838f:0x1b};function _0xb47848(_0x43ebf5,_0x57946b,_0x10e429,_0x3bd818){return _0x357fd3(_0x43ebf5-_0x249b72._0x22b185,_0x57946b-_0x249b72._0x3d8089,_0x43ebf5-_0x249b72._0x59838f,_0x3bd818);}function _0x31dab6(_0x561cc2,_0x5933e5,_0x38a3b2,_0x41fa6a){return _0x1343ee(_0x561cc2-_0x38cefa._0x5bbe81,_0x41fa6a,_0x38a3b2-_0x38cefa._0x4687d5,_0x41fa6a-0x135);}return _0x205c15['total']>0x0?Math[_0x31dab6(0x4c1,_0x4b2d73._0x2b3f6b,_0x4b2d73._0x1c0516,0x3fd)](_0x205c15['completed']/_0x205c15[_0x31dab6(0x442,0x4d9,_0x4b2d73._0x3f1be5,0x38d)]*0x64)+'%':'0%';}function createReminderItems(_0x144002){const _0x21d3d1={_0x50d500:0x4a6},_0x3da7b7={_0x3fe090:0x31b,_0xc6ecb7:0x67};function _0x31fed1(_0x23c9ea,_0x29df81,_0x15f38e,_0xe71bc1){return _0x1343ee(_0x29df81-_0x3da7b7._0x3fe090,_0x23c9ea,_0x15f38e-_0x3da7b7._0xc6ecb7,_0xe71bc1-0x1d0);}function _0x51c7e8(_0x3353f2,_0x59c144,_0x43b2c0,_0x164357){return _0x1343ee(_0x3353f2-0x520,_0x43b2c0,_0x43b2c0-0x108,_0x164357-0x16d);}return _0x144002[_0x51c7e8(_0x21d3d1._0x50d500,0x4b3,0x50d,0x44f)](_0x80a8d7=>({'content':_0x80a8d7[_0x51c7e8(0x6f1,0x6ff,0x61c,0x6f8)],'status':_0x80a8d7[_0x31fed1(0x206,0x31f,0x37e,0x3dd)],'id':_0x80a8d7['id']}));}function createStructuredResult(_0x57ba74,_0x11d918,_0x84d548,_0xeda0ca){const _0x1b5630={_0x5f1382:0x1a8,_0x2215bf:0x2c,_0x361345:0x33},_0x4f58c3={_0x3ccf5e:0x1c4,_0x5e856a:0x167},_0x1e88b5={_0x13dde9:0xe9};function _0x569e09(_0x7aa8cf,_0x51dd12,_0x12790b,_0x16929e){return _0x1343ee(_0x16929e- -0x5d,_0x51dd12,_0x12790b-_0x1e88b5._0x13dde9,_0x16929e-0xd5);}function _0x12fb4f(_0x2a0d77,_0x139562,_0x691416,_0x4fafcb){return _0x1343ee(_0x139562- -0xbb,_0x691416,_0x691416-_0x4f58c3._0x3ccf5e,_0x4fafcb-_0x4f58c3._0x5e856a);}return{'allCompleted':_0xeda0ca,'items':_0x11d918[_0x569e09(-_0x1b5630._0x5f1382,-_0x1b5630._0x2215bf,-0x12c,-0xd7)](_0x374619=>({'id':_0x374619['id'],'content':_0x374619[_0x569e09(0x18c,0x1d4,0xcb,0x174)],'status':_0x374619['status'],'priority':_0x374619[_0x12fb4f(0x70,-0xa4,-0x95,-0x144)],'createdAt':_0x374619['createdAt']})),'progress':createStatsProgress(_0x84d548),'recentChanges':!![],'sessionId':_0x57ba74,'stats':_0x84d548,'todosWritten':_0x11d918[_0x12fb4f(0x3c,-0x9b,_0x1b5630._0x361345,-0x6b)]};}function _0x357fd3(_0x4ba444,_0x2d9e40,_0x34d829,_0x2c9089){return _0x1358(_0x34d829- -0x14d,_0x2c9089);}function createOutputText(_0x17c837,_0x1851d2){const _0x3888e7={_0x38f91d:0x71,_0x2cdf76:0x127,_0xa1949:0x22e,_0x18affa:0x161,_0x101f9a:0x6e,_0x4acf47:0xec,_0x373dfa:0x2cc,_0x47c20b:0x359,_0x11adf7:0x29c,_0x3890fc:0x1ac,_0x3bbbf5:0x135,_0x992903:0x161},_0x340598={_0x2719f8:0xc4},_0x5d205b={_0x176d8e:0xaa,_0x4bdd63:0x176};function _0x3201d0(_0x446b47,_0x3adca2,_0x30eb81,_0x1c7a23){return _0x357fd3(_0x446b47-_0x5d205b._0x176d8e,_0x3adca2-0x12e,_0x446b47- -_0x5d205b._0x4bdd63,_0x1c7a23);}const _0x36edd8=JSON[_0x3201d0(-0x68,-_0x3888e7._0x38f91d,-0xa3,-0x19a)](createReminderItems(_0x17c837));if(_0x1851d2)return _0x571770(_0x3888e7._0x2cdf76,0x1ce,_0x3888e7._0xa1949,0x1bc)+_0x17c837[_0x3201d0(-0x15b,-0x18e,-_0x3888e7._0x18affa,-_0x3888e7._0x101f9a)]+_0x3201d0(-0x182,-_0x3888e7._0x4acf47,-0x219,-0x25f)+_0x36edd8+'.\x0a</system-reminder>';function _0x571770(_0x434a4f,_0x1e5a1e,_0xa1a466,_0x1e538c){return _0x1343ee(_0x1e538c-_0x340598._0x2719f8,_0x434a4f,_0xa1a466-0x1ce,_0x1e538c-0x12a);}return _0x571770(0x18a,_0x3888e7._0x373dfa,_0x3888e7._0x47c20b,_0x3888e7._0x11adf7)+_0x36edd8+_0x571770(_0x3888e7._0x3890fc,_0x3888e7._0x3bbbf5,0xb5,_0x3888e7._0x992903);}function createTodoWriteTool(_0x499ac1=new TodoStore()){const _0x3dc3e6={_0x3127cd:0x3be,_0x4867c4:0x59c,_0x5a165a:0x395,_0x2c3ee6:0x327,_0x298981:0x1c3,_0x14df09:0x4f6,_0x505d7c:0x46b,_0x1ac1cd:0x587,_0xac6185:0x4b9,_0x3c096f:0x5eb,_0x2399a6:0x5be,_0x286977:0x5f0,_0x10cf70:0x4f6,_0x8622ec:0x359,_0x90b809:0x436},_0x1174a4={_0x29c047:0x361,_0x1119a2:0x37b,_0x5a44c5:0x2a7,_0x5db1e6:0x3a2,_0x1a0498:0x360,_0x4fe1ef:0x42b,_0x342f3c:0x541,_0x10c7aa:0x482,_0x38bb39:0x5ae,_0xe5d4df:0x2f4,_0x27f33c:0x203,_0x1eb05c:0x28f,_0x5bdfe0:0x308,_0x4bd2f1:0x3a3,_0x22b58e:0x4e6,_0x535bea:0x44a,_0x355d19:0x439,_0x52ef3e:0x468,_0x136d56:0x3f5,_0x310c7a:0x50e,_0x4b8e6c:0x3dd},_0x506d5a={_0x1c3a87:0x1a2},_0x527e0c={_0x103632:0x1de},_0x590b49={_0xe80567:0x1bc,_0x27e16f:0x60,_0x33cac9:0x424};function _0x171369(_0x14d25f,_0x1a7a45,_0x125dda,_0x35f163){return _0x357fd3(_0x14d25f-_0x590b49._0xe80567,_0x1a7a45-_0x590b49._0x27e16f,_0x1a7a45-_0x590b49._0x33cac9,_0x125dda);}function _0x51273d(_0x4746be,_0x2d4ba2,_0x559e9e,_0x24adf9){return _0x1343ee(_0x24adf9-0x33d,_0x4746be,_0x559e9e-0x1ec,_0x24adf9-_0x527e0c._0x103632);}return defineTool({'name':_0x171369(0x59d,0x4ab,_0x3dc3e6._0x3127cd,_0x3dc3e6._0x4867c4),'description':'Use\x20this\x20tool\x20to\x20create\x20and\x20manage\x20a\x20structured\x20task\x20list\x20for\x20your\x20current\x20coding\x20session.\x20This\x20helps\x20you\x20track\x20progress,\x20organize\x20complex\x20tasks,\x20and\x20demonstrate\x20thoroughness\x20to\x20the\x20user.\x0aIt\x20also\x20helps\x20the\x20user\x20understand\x20the\x20progress\x20of\x20the\x20task\x20and\x20overall\x20progress\x20of\x20their\x20requests.\x0a\x0a##\x20When\x20to\x20Use\x20This\x20Tool\x0aUse\x20this\x20tool\x20proactively\x20in\x20these\x20scenarios:\x0a\x0a1.\x20Complex\x20multi-step\x20tasks\x20-\x20When\x20a\x20task\x20requires\x203\x20or\x20more\x20distinct\x20steps\x20or\x20actions\x0a2.\x20Non-trivial\x20and\x20complex\x20tasks\x20-\x20Tasks\x20that\x20require\x20careful\x20planning\x20or\x20multiple\x20operations\x0a3.\x20User\x20explicitly\x20requests\x20todo\x20list\x20-\x20When\x20the\x20user\x20directly\x20asks\x20you\x20to\x20use\x20the\x20todo\x20list\x0a4.\x20User\x20provides\x20multiple\x20tasks\x20-\x20When\x20users\x20provide\x20a\x20list\x20of\x20things\x20to\x20be\x20done\x20(numbered\x20or\x20comma-separated)\x0a5.\x20After\x20receiving\x20new\x20instructions\x20-\x20Immediately\x20capture\x20user\x20requirements\x20as\x20todos\x0a6.\x20When\x20you\x20start\x20working\x20on\x20a\x20task\x20-\x20Mark\x20it\x20as\x20in_progress\x20BEFORE\x20beginning\x20work.\x20Ideally\x20you\x20should\x20only\x20have\x20one\x20todo\x20as\x20in_progress\x20at\x20a\x20time\x0a7.\x20After\x20completing\x20a\x20task\x20-\x20Mark\x20it\x20as\x20completed\x20and\x20add\x20any\x20new\x20follow-up\x20tasks\x20discovered\x20during\x20implementation\x0a\x0a##\x20When\x20NOT\x20to\x20Use\x20This\x20Tool\x0a\x0aSkip\x20using\x20this\x20tool\x20when:\x0a1.\x20There\x20is\x20only\x20a\x20single,\x20straightforward\x20task\x0a2.\x20The\x20task\x20is\x20trivial\x20and\x20tracking\x20it\x20provides\x20no\x20organizational\x20benefit\x0a3.\x20The\x20task\x20can\x20be\x20completed\x20in\x20less\x20than\x203\x20trivial\x20steps\x0a4.\x20The\x20task\x20is\x20purely\x20conversational\x20or\x20informational\x0a\x0aNOTE\x20that\x20you\x20should\x20not\x20use\x20this\x20tool\x20if\x20there\x20is\x20only\x20one\x20trivial\x20task\x20to\x20do.\x20In\x20this\x20case\x20you\x20are\x20better\x20off\x20just\x20doing\x20the\x20task\x20directly.\x0a\x0a##\x20Task\x20States\x20and\x20Management\x0a\x0a1.\x20**Task\x20States**:\x20Use\x20these\x20states\x20to\x20track\x20progress:\x0a-\x20pending:\x20Task\x20not\x20yet\x20started\x0a-\x20in_progress:\x20Currently\x20working\x20on\x20(limit\x20to\x20ONE\x20task\x20at\x20a\x20time)\x0a-\x20completed:\x20Task\x20finished\x20successfully\x0a\x0a2.\x20**Task\x20Management**:\x0a-\x20Update\x20task\x20status\x20in\x20real-time\x20as\x20you\x20work\x0a-\x20Mark\x20tasks\x20complete\x20IMMEDIATELY\x20after\x20finishing\x20(don\x27t\x20batch\x20completions)\x0a-\x20Only\x20have\x20ONE\x20task\x20in_progress\x20at\x20any\x20time\x0a-\x20Complete\x20current\x20tasks\x20before\x20starting\x20new\x20ones\x0a-\x20Remove\x20tasks\x20that\x20are\x20no\x20longer\x20relevant\x20from\x20the\x20list\x20entirely\x0a\x0a3.\x20**Task\x20Completion\x20Requirements**:\x0a-\x20ONLY\x20mark\x20a\x20task\x20as\x20completed\x20when\x20you\x20have\x20FULLY\x20accomplished\x20it\x0a-\x20If\x20you\x20encounter\x20errors,\x20blockers,\x20or\x20cannot\x20finish,\x20keep\x20the\x20task\x20as\x20in_progress\x0a-\x20When\x20blocked,\x20create\x20a\x20new\x20task\x20describing\x20what\x20needs\x20to\x20be\x20resolved\x0a-\x20Never\x20mark\x20a\x20task\x20as\x20completed\x20if:\x0a-\x20Tests\x20are\x20failing\x0a-\x20Implementation\x20is\x20partial\x0a-\x20You\x20encountered\x20unresolved\x20errors\x0a-\x20You\x20couldn\x27t\x20find\x20necessary\x20files\x20or\x20dependencies\x0a\x0a4.\x20**Task\x20Breakdown**:\x0a-\x20Create\x20specific,\x20actionable\x20items\x0a-\x20Break\x20complex\x20tasks\x20into\x20smaller,\x20manageable\x20steps\x0a-\x20Use\x20clear,\x20descriptive\x20task\x20names\x0a\x0aWhen\x20in\x20doubt,\x20use\x20this\x20tool.\x20Being\x20proactive\x20with\x20task\x20management\x20demonstrates\x20attentiveness\x20and\x20ensures\x20you\x20complete\x20all\x20requirements\x20successfully.','inputSchema':{'type':_0x171369(0x532,0x46b,_0x3dc3e6._0x5a165a,0x59c),'properties':{'todos':{'type':_0x51273d(_0x3dc3e6._0x2c3ee6,0x1f2,_0x3dc3e6._0x298981,0x2e2),'items':{'type':_0x171369(_0x3dc3e6._0x14df09,_0x3dc3e6._0x505d7c,0x3e4,_0x3dc3e6._0x1ac1cd),'properties':{'content':{'type':_0x171369(0x593,_0x3dc3e6._0xac6185,0x572,_0x3dc3e6._0x3c096f)},'status':{'type':'string'},'priority':{'type':'string'},'id':{'type':'string'},'createdAt':{'type':_0x171369(0x446,_0x3dc3e6._0xac6185,0x488,_0x3dc3e6._0x2399a6)}},'required':[_0x171369(0x5b2,_0x3dc3e6._0x286977,0x510,0x571),_0x171369(_0x3dc3e6._0x10cf70,0x423,_0x3dc3e6._0x8622ec,0x548),_0x171369(0x4b9,_0x3dc3e6._0x90b809,0x4af,0x477),'id']}}},'required':['todos']},async *'execute'(_0x42c324,_0xf82a94){const _0x4555b1=_0x42c324;function _0x4bdcb8(_0x4e6bf1,_0x674b94,_0x38ce5f,_0x2f28f2){return _0x171369(_0x4e6bf1-0x10b,_0x38ce5f- -_0x506d5a._0x1c3a87,_0x2f28f2,_0x2f28f2-0x4b);}validateTodos(_0x4555b1);const _0x549da2=_0xf82a94[_0x4bdcb8(0x330,0x477,0x3d3,0x348)]||_0x4bdcb8(_0x1174a4._0x29c047,_0x1174a4._0x1119a2,0x241,_0x1174a4._0x5a44c5),_0x4d320e=new Date()[_0x4bdcb8(_0x1174a4._0x5db1e6,_0x1174a4._0x1a0498,0x38e,0x27c)](),_0x5c41f4=_0x4555b1[_0x1b902d(_0x1174a4._0x4fe1ef,_0x1174a4._0x342f3c,_0x1174a4._0x10c7aa,_0x1174a4._0x38bb39)][_0x4bdcb8(_0x1174a4._0xe5d4df,0x1b5,_0x1174a4._0x27f33c,0x2ad)](_0x292dff=>({'id':_0x292dff['id'],'content':_0x292dff[_0x1b902d(0x5be,0x5b6,0x697,0x7c1)],'status':_0x292dff[_0x4bdcb8(0x3b4,0x362,0x281,0x34d)],'priority':_0x292dff[_0x4bdcb8(0x149,0x352,0x294,0x178)],'sessionId':_0x549da2,'createdAt':_0x292dff[_0x4bdcb8(0x3fc,0x56b,0x42e,0x36d)]||_0x4d320e,'updatedAt':_0x4d320e}));_0x499ac1[_0x4bdcb8(_0x1174a4._0x1eb05c,_0x1174a4._0x5bdfe0,0x34d,0x20b)](_0x549da2,_0x5c41f4);const _0x3f84c3=_0x499ac1[_0x1b902d(_0x1174a4._0x4bd2f1,_0x1174a4._0x22b58e,_0x1174a4._0x535bea,_0x1174a4._0x355d19)](_0x549da2);function _0x1b902d(_0x5dec4a,_0xc010f0,_0x4859d1,_0x4f39ac){return _0x51273d(_0xc010f0,_0xc010f0-0xa5,_0x4859d1-0xb,_0x4859d1-0x189);}const _0x38ca2d=_0x5c41f4[_0x1b902d(_0x1174a4._0x52ef3e,_0x1174a4._0x136d56,0x4e6,0x3b6)]>0x0&&_0x5c41f4[_0x4bdcb8(0x4a5,_0x1174a4._0x310c7a,_0x1174a4._0x4b8e6c,0x3e9)](_0x273941=>_0x273941[_0x1b902d(0x515,0x463,0x4ca,0x4ab)]===_0x1b902d(0x6d6,0x61b,0x59a,0x587));return createToolOutput(createOutputText(_0x5c41f4,_0x38ca2d),createStructuredResult(_0x549da2,_0x5c41f4,_0x3f84c3,_0x38ca2d));}});}import{mkdir as _0x4582d4,writeFile as _0x509488}from'fs/promises';import*as _0x55c39a from'path';function sanitizeFileName(_0x2eda8d){const _0x4dd6ba={_0x26bea8:0x270,_0x13fded:0x12b};function _0x2ce825(_0xfef4ce,_0x275f7f,_0x380885,_0x39d330){return _0x1343ee(_0xfef4ce- -0x20d,_0x275f7f,_0x380885-0x5c,_0x39d330-0x13f);}return _0x2eda8d[_0x2ce825(-_0x4dd6ba._0x26bea8,-_0x4dd6ba._0x13fded,-0x374,-0x260)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x9570c0,_0x3fbd2d){const _0x2fcde5={_0x4c8fbe:0x116,_0x4ed82d:0x224,_0x2c0f71:0xba,_0x1e4a57:0xc1,_0x2cc222:0x140,_0x24b4a2:0x13c,_0x30d000:0x41,_0x182899:0x95,_0x53b31c:0x8f,_0xd5ed21:0x15,_0x276875:0xa4,_0x50d0ed:0x122,_0x1ff786:0x209,_0x3198c2:0x2c,_0xdc65fd:0x9f,_0x82f0f8:0x9e,_0x480e00:0x1e5,_0x4df8ae:0xa8,_0xc9722f:0x15c,_0x32111c:0x117,_0x1a1418:0x2e,_0x486939:0x41,_0x1c06b1:0x101,_0x15b9f3:0x83,_0x3fe319:0x70,_0xc15ac8:0x11a,_0x39c74a:0xb0,_0x188a82:0x221,_0x461a19:0x172,_0x4acb6a:0x6a,_0x579574:0x4d,_0xbf1ad8:0x119,_0x4fc7c8:0xd9,_0x579d7b:0x17f,_0x1d7e49:0x213,_0x4c00a2:0xc8,_0x147f55:0x48,_0x202ced:0xbb,_0x12becc:0x156,_0x1d102a:0x25a,_0x3cd761:0x8e,_0xf1d54:0x7e,_0x5c800d:0x3a,_0x3295b4:0x15,_0x55bd82:0x1a5,_0x674b3b:0x8d,_0x56c581:0x1d,_0x2bf088:0x1f8,_0x320a46:0x23a,_0x4fc000:0x110,_0x43fc55:0x3e,_0x1972bc:0x98,_0x785da7:0x108,_0x24c51c:0x130,_0x1435f4:0xc3,_0x266a8f:0x1f,_0x1033f2:0x10,_0x5dda53:0xd,_0xbacd90:0x40,_0xfdaf1d:0x73,_0x5a363a:0xd},_0x269922={_0x165eea:0x105,_0x265209:0x1a1},_0x3bb3d5={_0x4785d5:0x4f,_0xfa4694:0x1b2},{maxBytes:_0x54236,sessionDir:_0x3c418e}=_0x3fbd2d;if(!_0x9570c0[_0x25f6be(_0x2fcde5._0x4c8fbe,_0x2fcde5._0x4ed82d,_0x2fcde5._0x2c0f71,0x18a)]||Buffer[_0x25f6be(-_0x2fcde5._0x1e4a57,-0x1de,0x17,-_0x2fcde5._0x2cc222)](_0x9570c0[_0x3d790d(_0x2fcde5._0x24b4a2,_0x2fcde5._0x30d000,0xc8,0x7a)],'utf8')<=_0x54236)return _0x9570c0;const _0x2b10e2=Buffer[_0x25f6be(-0xc1,-0x137,-_0x2fcde5._0x182899,0x40)](_0x9570c0[_0x3d790d(0x4c,-0x74,0xc8,0x49)],_0x25f6be(_0x2fcde5._0x53b31c,0xb0,_0x2fcde5._0xd5ed21,_0x2fcde5._0x276875));if(!_0x3c418e){const _0x3fbfbe=_0x9570c0['output'][_0x25f6be(_0x2fcde5._0x50d0ed,_0x2fcde5._0x1ff786,_0x2fcde5._0x3198c2,_0x2fcde5._0xdc65fd)](0x0,_0x54236);return{..._0x9570c0,'output':_0x3fbfbe+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0x54236+'\x20bytes\x20(original:\x20'+_0x2b10e2+_0x3d790d(-_0x2fcde5._0x82f0f8,-_0x2fcde5._0x480e00,-_0x2fcde5._0x4df8ae,-_0x2fcde5._0xc9722f)),'meta':{..._0x9570c0['meta'],'truncated':!![],'originalBytes':_0x2b10e2,'transforms':[..._0x9570c0[_0x25f6be(-0x83,-_0x2fcde5._0x32111c,-0xc9,-_0x2fcde5._0x1a1418)]['transforms'],_0x25f6be(_0x2fcde5._0x486939,-0xaa,-_0x2fcde5._0x1c06b1,_0x2fcde5._0x15b9f3)]}};}const _0x4b61b1=_0x9570c0[_0x25f6be(-_0x2fcde5._0x3fe319,0x99,-0xf9,0x8b)]+'_'+sanitizeFileName(_0x9570c0[_0x25f6be(_0x2fcde5._0xc15ac8,_0x2fcde5._0x39c74a,_0x2fcde5._0x188a82,0x45)])+_0x25f6be(_0x2fcde5._0x461a19,_0x2fcde5._0x4acb6a,_0x2fcde5._0x579574,0x235),_0xd03f7e=_0x55c39a[_0x25f6be(-0x10,_0x2fcde5._0xbf1ad8,0xf0,_0x2fcde5._0x4fc7c8)](_0x3c418e,_0x4b61b1);function _0x25f6be(_0x3b893a,_0x51b771,_0x37b5e2,_0x11ce5b){return _0x1343ee(_0x3b893a- -_0x3bb3d5._0x4785d5,_0x51b771,_0x37b5e2-0x1eb,_0x11ce5b-_0x3bb3d5._0xfa4694);}await _0x4582d4(_0x3c418e,{'recursive':!![]}),await _0x509488(_0xd03f7e,_0x9570c0[_0x3d790d(_0x2fcde5._0x579d7b,_0x2fcde5._0x1d7e49,_0x2fcde5._0x4c00a2,-0x71)],_0x3d790d(0x43,_0x2fcde5._0x147f55,_0x2fcde5._0x30d000,-_0x2fcde5._0x202ced));function _0x3d790d(_0x565127,_0x7e275b,_0x4c8748,_0x20d1d6){return _0x357fd3(_0x565127-_0x269922._0x165eea,_0x7e275b-_0x269922._0x265209,_0x4c8748- -0x98,_0x7e275b);}let _0x5e88ce=_0x9570c0['output'][_0x25f6be(0x122,_0x2fcde5._0x12becc,0x12,_0x2fcde5._0x1d102a)](0x0,_0x54236);const _0x26e2c8=_0x5e88ce['lastIndexOf']('\x0a');_0x26e2c8>_0x54236*0.5&&(_0x5e88ce=_0x5e88ce['slice'](0x0,_0x26e2c8));const _0x31ea12=['',_0x25f6be(-_0x2fcde5._0x3cd761,_0x2fcde5._0xf1d54,-_0x2fcde5._0x5c800d,_0x2fcde5._0x3295b4),_0x3d790d(_0x2fcde5._0x55bd82,0x1db,_0x2fcde5._0x674b3b,_0x2fcde5._0x56c581)+_0x54236+_0x3d790d(-0x91,-_0x2fcde5._0x2bf088,-0x13b,-_0x2fcde5._0x320a46)+_0x2b10e2+_0x25f6be(-_0x2fcde5._0x4fc000,-_0x2fcde5._0x43fc55,-_0x2fcde5._0x1972bc,-0x58),_0x3d790d(-0xb5,-0x24f,-_0x2fcde5._0x785da7,-_0x2fcde5._0x24c51c)+_0xd03f7e,_0x3d790d(0xd,-0x178,-_0x2fcde5._0x1435f4,-0x100),_0x3d790d(-0xb2,-0x8f,-0xca,-_0x2fcde5._0x266a8f)][_0x25f6be(-_0x2fcde5._0x1033f2,-_0x2fcde5._0x5dda53,_0x2fcde5._0x50d0ed,_0x2fcde5._0xbacd90)]('\x0a');return{..._0x9570c0,'output':_0x5e88ce+_0x31ea12,'meta':{..._0x9570c0['meta'],'truncated':!![],'originalBytes':_0x2b10e2,'transforms':[..._0x9570c0[_0x3d790d(_0x2fcde5._0xfdaf1d,-0x2e,-0xd1,-0x192)]['transforms'],_0x3d790d(0xd9,-0xbe,-_0x2fcde5._0x5a363a,-0x15a)]}};}import{readFile as _0x2cb141,stat as _0x2a4432}from'fs/promises';import*as _0x62d54c from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x357fd3(0x1,0x5a,0x46,0x132),_0x1343ee(-0x8e,0x52,-0x56,-0x166),_0x357fd3(-0x1fe,-0x8e,-0xb0,-0x16d),'original']),PNG_SIGNATURE=Buffer[_0x357fd3(0x1ff,0x1a8,0xc5,-0x6c)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x298886,_0x12486a){const _0x5087a7={_0x504995:0x1bb,_0x3384ff:0x364,_0x33676a:0x294,_0x7c5562:0x36b,_0x6024af:0x2d9,_0x25c71d:0x411,_0x1b8771:0x2ce,_0x1f7f74:0x400,_0x102572:0x145,_0xae7b5:0x169,_0x4e3374:0x385,_0x42edb7:0x413,_0x5ded3a:0x3f1,_0x55f5ad:0x455,_0x1a6142:0x407,_0x9474f9:0x16c,_0x48d957:0x26e,_0x38d050:0x1dd,_0x1b4de8:0x143,_0x4d72b1:0x24e,_0x32bed5:0x336,_0x4a5775:0x289,_0x33918f:0x22d,_0x23661b:0x3e,_0x5a52d4:0x1f4,_0x46f7df:0x3a7,_0x58cfd7:0x337,_0x1bc1ba:0x33c,_0x34e422:0x108,_0x55d6e3:0x14b,_0x4e663e:0x2f9,_0x43b647:0x2c5,_0x2dc192:0x2cf},_0x2f45ec={_0x314fe5:0xf8},_0x497929={_0x25595a:0x7a,_0x10e202:0x33c};function _0x3fb428(_0x2529e8,_0x5ef1a0,_0x28fe23,_0x2ef347){return _0x357fd3(_0x2529e8-_0x497929._0x25595a,_0x5ef1a0-0x83,_0x28fe23-_0x497929._0x10e202,_0x2ef347);}if(_0x298886[_0x58338b(-0x214,-0x152,-0x169,-0x285)](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x58338b(-_0x5087a7._0x504995,-_0x5087a7._0x3384ff,-_0x5087a7._0x33676a,-0x183);if(_0x298886[0x0]===0xff&&_0x298886[0x1]===0xd8&&_0x298886[0x2]===0xff)return'image/jpeg';const _0x54cd31=_0x298886['subarray'](0x0,0x6)['toString'](_0x58338b(-_0x5087a7._0x7c5562,-_0x5087a7._0x6024af,-0x26e,-0x2c2));if(_0x54cd31===_0x3fb428(_0x5087a7._0x25c71d,0x45f,0x4ea,0x5d1)||_0x54cd31==='GIF89a')return _0x3fb428(_0x5087a7._0x1b8771,0x41b,_0x5087a7._0x1f7f74,0x496);if(_0x298886[_0x58338b(-_0x5087a7._0x102572,-0x12a,-_0x5087a7._0xae7b5,-0xe9)](0x0,0x4)[_0x3fb428(_0x5087a7._0x4e3374,_0x5087a7._0x42edb7,0x43c,_0x5087a7._0x5ded3a)]('ascii')===_0x3fb428(_0x5087a7._0x55f5ad,0x4c7,0x44d,0x31d)&&_0x298886[_0x3fb428(_0x5087a7._0x1a6142,0x321,0x462,0x47b)](0x8,0xc)['toString'](_0x58338b(-0x3ae,-_0x5087a7._0x9474f9,-_0x5087a7._0x48d957,-_0x5087a7._0x38d050))===_0x58338b(-_0x5087a7._0x1b4de8,-0x1ac,-0x1a5,-_0x5087a7._0x4d72b1))return _0x3fb428(0x17c,_0x5087a7._0x32bed5,_0x5087a7._0x4a5775,0x2f7);function _0x58338b(_0x32a577,_0x2378b6,_0x5781cf,_0x3d6470){return _0x357fd3(_0x32a577-0x1cb,_0x2378b6-_0x2f45ec._0x314fe5,_0x5781cf- -0x28f,_0x2378b6);}const _0x4e0af6=_0x62d54c[_0x58338b(-_0x5087a7._0x33918f,-0x65,-0x167,-_0x5087a7._0x23661b)](_0x12486a)['toLowerCase']();if(_0x4e0af6===_0x58338b(-0xb3,-0x165,-_0x5087a7._0x5a52d4,-0x1da))return _0x3fb428(_0x5087a7._0x46f7df,0x271,_0x5087a7._0x58cfd7,_0x5087a7._0x1bc1ba);if(_0x4e0af6===_0x58338b(-0x196,-_0x5087a7._0x34e422,-_0x5087a7._0x55d6e3,-0x14)||_0x4e0af6===_0x3fb428(0x400,0x290,0x39e,0x3f1))return _0x58338b(-0x2fd,-_0x5087a7._0x4e663e,-0x1db,-0x19e);if(_0x4e0af6===_0x3fb428(0x395,_0x5087a7._0x43b647,0x375,_0x5087a7._0x2dc192))return'image/gif';if(_0x4e0af6==='.webp')return'image/webp';return void 0x0;}function normalizeDetail(_0x4f7920){const _0x11ed9a={_0x742b0a:0x4cb,_0x24349d:0x579,_0x16ae31:0x33b,_0x4f6adc:0x263,_0x4d3463:0x699},_0x50c806={_0x2a6f0a:0x13a},_0x5d9667={_0x41150b:0x1};function _0x3f7855(_0x35ccc1,_0x392b69,_0x477670,_0x1bb7f6){return _0x1343ee(_0x477670-0x45c,_0x35ccc1,_0x477670-0x1b7,_0x1bb7f6-_0x5d9667._0x41150b);}function _0x2083ab(_0x28425f,_0x508008,_0x136e01,_0x3c10df){return _0x357fd3(_0x28425f-0xf6,_0x508008-_0x50c806._0x2a6f0a,_0x28425f-0x3f8,_0x136e01);}if(_0x4f7920===void 0x0)return void 0x0;const _0x148ab3=_0x4f7920[_0x3f7855(_0x11ed9a._0x742b0a,_0x11ed9a._0x24349d,0x465,0x3aa)]()['toLowerCase']();if(!SUPPORTED_DETAILS[_0x2083ab(_0x11ed9a._0x16ae31,0x42e,0x310,_0x11ed9a._0x4f6adc)](_0x148ab3))throw new ToolExecutionError(_0x2083ab(0x55e,0x55d,0x613,_0x11ed9a._0x4d3463)+_0x4f7920,{'detail':_0x4f7920});return _0x148ab3;}function createViewFileTool(_0x586391={}){const _0x577229={_0x34a924:0x2d2,_0x29c67a:0x35c,_0x38c036:0x3ed,_0x2d5ef4:0x3e4,_0x3d9c16:0x337,_0x1f707c:0x393,_0x3995fa:0xee,_0x130e71:0x20a,_0x5adf96:0x205,_0x4ddbe6:0x11a,_0x2607c8:0x267,_0x45ddac:0x68,_0x96339:0x149,_0x3fea67:0xec,_0x4a07b0:0x244,_0x52006c:0x2ba,_0x6952ea:0x195,_0x9dd5e9:0x2dc,_0x5da6e2:0x2b9},_0x5733f2={_0xa25caa:0x616,_0xd7bca4:0x63a,_0x1f41a5:0x6e8,_0x3522c8:0x57a,_0x1bddc7:0x6,_0x568c40:0x110,_0x1efd07:0x5bd,_0x2c5f87:0x525,_0xb3b111:0x7f,_0x4537eb:0x10f,_0xa46114:0x2d,_0x1ed624:0x127,_0x2dbbe8:0x145,_0x5a7773:0x44a,_0x3ba097:0x6bb,_0xba52fb:0x2,_0x391058:0x4e,_0x479b51:0x43,_0x595828:0xa7,_0x12e002:0x50d,_0x2a40ff:0x771,_0x5053a7:0x22,_0x1dff32:0xc5,_0x1c17f5:0x4ca,_0x439853:0x4d3,_0x1bde2d:0x116,_0x5657e7:0x6b,_0x5c14de:0x4c6,_0x1bea48:0x622,_0x3f20e1:0x463,_0x3a0a5c:0xe8,_0x124deb:0x113,_0x3d38b0:0x103,_0x4a1d09:0x51f,_0x373353:0x34,_0x4f508e:0x5d8,_0x24f51b:0x725,_0x2e366a:0x6f8,_0x46671b:0x246,_0xd9cbae:0x1da,_0x446fe0:0x408,_0x3f806f:0x54b,_0x31988b:0x100,_0x5317a2:0x4ec,_0x2f50b9:0x60d,_0x4cda4e:0x55a,_0x5c7898:0x5af,_0x477965:0x35,_0x3821e4:0xd0,_0x14d734:0x25,_0x5bd9a2:0x3c,_0x1fc853:0x46e,_0x47e73f:0x46f},_0xf9c30={_0x529bad:0x31f},_0x486f1b={_0x5abdba:0x1b9},_0x462487={_0x322c04:0x17d,_0x7c0e06:0x50},_0x5eb096={_0x3850e0:0xe4};function _0x4ee12d(_0x2a09e6,_0x3af20e,_0x270919,_0x280a4e){return _0x357fd3(_0x2a09e6-_0x5eb096._0x3850e0,_0x3af20e-0x1dd,_0x2a09e6-0x199,_0x270919);}const _0x4f9d03=_0x62d54c['resolve'](_0x586391[_0x12bbc2(_0x577229._0x34a924,_0x577229._0x29c67a,_0x577229._0x38c036,_0x577229._0x2d5ef4)]??process[_0x12bbc2(0x250,_0x577229._0x3d9c16,_0x577229._0x1f707c,0x11b)]()),_0x15683a=(_0x586391[_0x4ee12d(_0x577229._0x3995fa,_0x577229._0x130e71,_0x577229._0x5adf96,0x136)]??[])[_0x4ee12d(_0x577229._0x4ddbe6,_0x577229._0x2607c8,_0x577229._0x45ddac,0x76)](_0x2a9805=>_0x62d54c[_0x12bbc2(0x233,0x17a,0x330,0x125)](_0x2a9805)),_0x305e1a=_0x586391['maxBytes']??DEFAULT_MAX_BYTES;function _0x12bbc2(_0x38edbf,_0x56194b,_0x32f10f,_0x2ffac1){return _0x1343ee(_0x38edbf-0x1cb,_0x2ffac1,_0x32f10f-_0x462487._0x322c04,_0x2ffac1-_0x462487._0x7c0e06);}const _0x275d54=_0x586391[_0x12bbc2(_0x577229._0x96339,0x1e5,0x1e1,0x67)]??'ViewFile';return defineTool({'name':_0x275d54,'description':_0x4ee12d(0x202,_0x577229._0x3fea67,0x14d,_0x577229._0x4a07b0),'inputSchema':{'type':'object','properties':{'path':{'type':_0x4ee12d(0x22e,_0x577229._0x52006c,0x2ce,0x2a3)},'detail':{'type':'string'}},'required':[_0x4ee12d(_0x577229._0x6952ea,_0x577229._0x9dd5e9,0x9f,_0x577229._0x5da6e2)]},async *'execute'(_0x4d841e){const _0x2a839f=resolveAllowedPath(_0x4f9d03,_0x15683a,_0x4d841e['path']);await assertWorkspaceFile(_0x2a839f);const _0x2e6215=await _0x2a4432(_0x2a839f);if(_0x2e6215[_0x2ca7a9(_0x5733f2._0xa25caa,_0x5733f2._0xd7bca4,_0x5733f2._0x1f41a5,_0x5733f2._0x3522c8)]>_0x305e1a)throw new ToolExecutionError(_0x45fb68(_0x5733f2._0x1bddc7,-0x1a,-0x1d,_0x5733f2._0x568c40)+_0x4d841e['path'],{'path':_0x4d841e[_0x2ca7a9(0x4b4,_0x5733f2._0x1efd07,0x3f0,_0x5733f2._0x2c5f87)],'maxBytes':_0x305e1a,'size':_0x2e6215[_0x45fb68(_0x5733f2._0xb3b111,_0x5733f2._0x4537eb,_0x5733f2._0xa46114,_0x5733f2._0x1ed624)]});const _0x5c3349=await _0x2cb141(_0x2a839f),_0x583dfe=detectImageMediaType(_0x5c3349,_0x2a839f);if(!_0x583dfe)throw new ToolExecutionError(_0x45fb68(-0x2f,-_0x5733f2._0x2dbbe8,-0x34,-0x12a)+_0x4d841e['path'],{'path':_0x4d841e['path'],'supported':[_0x2ca7a9(0x4f1,0x639,0x5b8,_0x5733f2._0x5a7773),'.jpeg','.jpg','.png',_0x2ca7a9(0x64f,_0x5733f2._0x3ba097,0x639,0x6c5)]});const _0x25ab04=normalizeDetail(_0x4d841e[_0x45fb68(-_0x5733f2._0xba52fb,-_0x5733f2._0x391058,-_0x5733f2._0x479b51,-_0x5733f2._0x595828)]),_0x4795e0=['Viewed\x20image\x20file:\x20'+_0x4d841e['path'],_0x2ca7a9(0x656,_0x5733f2._0x12e002,_0x5733f2._0x2a40ff,0x608)+_0x583dfe,_0x45fb68(-0x10c,-_0x5733f2._0x5053a7,-_0x5733f2._0x1dff32,-0x29)+_0x2e6215[_0x2ca7a9(0x616,0x4dc,_0x5733f2._0x1c17f5,_0x5733f2._0x439853)]+'\x20bytes'][_0x45fb68(_0x5733f2._0x1bde2d,_0x5733f2._0x5657e7,0x97,0x1c6)](_0x25ab04?[_0x45fb68(-0x102,0x37,-0x86,-0xb)+_0x25ab04]:[])[_0x2ca7a9(0x4f2,_0x5733f2._0x5c14de,0x48a,0x591)]('\x0a'),_0x27df85=[{'type':_0x2ca7a9(0x594,_0x5733f2._0x1bea48,_0x5733f2._0x3f20e1,0x6bc),'source':{'type':_0x45fb68(-_0x5733f2._0x3a0a5c,-0x113,-_0x5733f2._0x124deb,-_0x5733f2._0x3d38b0),'media_type':_0x583dfe,'data':_0x5c3349[_0x2ca7a9(0x5b8,0x650,_0x5733f2._0x4a1d09,0x5e9)](_0x45fb68(-_0x5733f2._0x373353,-0x6,-0x113,-0x75))}},{'type':_0x2ca7a9(_0x5733f2._0x4f508e,_0x5733f2._0x24f51b,0x4b2,_0x5733f2._0x2e366a),'text':_0x4795e0}];yield createToolOutput(_0x4795e0,{'path':_0x4d841e[_0x45fb68(-0x160,-_0x5733f2._0x46671b,-0x135,-_0x5733f2._0xd9cbae)],'resolvedPath':_0x2a839f,'created':_0x2e6215[_0x2ca7a9(0x53a,_0x5733f2._0x446fe0,_0x5733f2._0x3f806f,0x547)][_0x45fb68(0xc0,-0x7c,-0x25,-_0x5733f2._0x31988b)](),'modified':_0x2e6215[_0x2ca7a9(_0x5733f2._0x5317a2,_0x5733f2._0x2f50b9,_0x5733f2._0x4cda4e,_0x5733f2._0x5c7898)][_0x45fb68(-_0x5733f2._0x477965,_0x5733f2._0x3821e4,-_0x5733f2._0x14d734,-_0x5733f2._0x5bd9a2)](),'size':_0x2e6215[_0x45fb68(-0x53,-0xf8,_0x5733f2._0xa46114,0x162)],'mimeType':_0x583dfe,'encoding':_0x2ca7a9(0x4d6,_0x5733f2._0x1fc853,0x39f,_0x5733f2._0x47e73f),..._0x25ab04?{'detail':_0x25ab04}:{}},_0x27df85);function _0x45fb68(_0x73bec1,_0xf02b31,_0x376b65,_0x5c757a){return _0x12bbc2(_0x376b65- -0x301,_0xf02b31-0x63,_0x376b65-_0x486f1b._0x5abdba,_0x5c757a);}function _0x2ca7a9(_0x5df1f5,_0x1f4ddd,_0x216f15,_0x35e781){return _0x4ee12d(_0x5df1f5-_0xf9c30._0x529bad,_0x1f4ddd-0xcf,_0x1f4ddd,_0x35e781-0x175);}return void 0x0;}});}import _0x511744 from'turndown';var USER_AGENT=_0x357fd3(0x1af,0x72,0xfa,0x28),DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x36f4fc){const _0x2fe6a5={_0x512a38:0x5ea,_0x45152e:0x5c0,_0x354021:0x663,_0x5c2397:0x110,_0x556ee1:0x25b,_0x2c18f4:0x1c7,_0xb04397:0x51d,_0x5f0c47:0x42f,_0xcdb8bc:0x648,_0x378e2a:0x2ee,_0x21e6ad:0xed,_0x1995b7:0x20e,_0x4358d6:0x198,_0xd3c96f:0x87,_0x5788de:0x37,_0x32f662:0x20,_0x2b5c81:0x722,_0x5474ee:0x5b1,_0x1beddb:0x3ee,_0x330821:0x5d5},_0x54a0ff={_0x481f6b:0x2d,_0x4110b2:0x8};let _0x187257;function _0x4d0393(_0xa0bea3,_0x16b1e1,_0x282725,_0x3df038){return _0x357fd3(_0xa0bea3-0xa1,_0x16b1e1-0x129,_0x3df038- -0x1ef,_0x16b1e1);}try{_0x187257=new URL(_0x36f4fc);}catch{throw new ToolExecutionError(_0x320878(_0x2fe6a5._0x512a38,0x505,_0x2fe6a5._0x45152e,_0x2fe6a5._0x354021),{'url':_0x36f4fc});}function _0x320878(_0x62d531,_0x2aa84,_0x191797,_0x4182d2){return _0x1343ee(_0x62d531-0x450,_0x2aa84,_0x191797-_0x54a0ff._0x481f6b,_0x4182d2-_0x54a0ff._0x4110b2);}if(_0x187257[_0x4d0393(-_0x2fe6a5._0x5c2397,-_0x2fe6a5._0x556ee1,-0x147,-_0x2fe6a5._0x2c18f4)]!==_0x320878(_0x2fe6a5._0xb04397,_0x2fe6a5._0x5f0c47,0x59e,_0x2fe6a5._0xcdb8bc)&&_0x187257[_0x4d0393(-_0x2fe6a5._0x378e2a,-0xcb,-0x22b,-0x1c7)]!=='https:')throw new ToolExecutionError(_0x4d0393(-0x25d,-_0x2fe6a5._0x21e6ad,-_0x2fe6a5._0x1995b7,-_0x2fe6a5._0x4358d6),{'url':_0x36f4fc});if(_0x187257[_0x4d0393(-_0x2fe6a5._0xd3c96f,_0x2fe6a5._0x5788de,0x44,-_0x2fe6a5._0x32f662)]||_0x187257[_0x320878(0x5e8,0x5e8,_0x2fe6a5._0x2b5c81,0x68a)])throw new ToolExecutionError(_0x320878(0x465,_0x2fe6a5._0x5474ee,0x3a4,_0x2fe6a5._0x1beddb),{'url':_0x187257['protocol']+'//'+_0x187257[_0x320878(0x565,0x5e6,_0x2fe6a5._0x330821,0x5fc)]+_0x187257['pathname']});return _0x187257;}function createTimeoutSignal(_0x31171b,_0x4df3db){const _0x2ad718={_0x33f22c:0x2eb,_0x10c993:0x36f,_0x4178ce:0x186,_0x4f6ceb:0x2c1},_0x24f059={_0x3ddc96:0x4c,_0x2cd255:0x127},_0x152ec4={_0x14933d:0xc1},_0x139e36={_0x2b5f23:0x151,_0x2dcf25:0x1eb,_0x31eb0b:0x1d4},_0x478975={_0x49abfe:0x260,_0x4297be:0x158},_0x29055a=new AbortController();function _0x182870(_0x23a1b0,_0x4445b9,_0x36ca95,_0x4c294a){return _0x1343ee(_0x4c294a- -_0x478975._0x49abfe,_0x23a1b0,_0x36ca95-_0x478975._0x4297be,_0x4c294a-0x13f);}const _0x585113=setTimeout(()=>_0x29055a[_0x216454(-0x82,-0x15b,-0xcb,-0x1f7)](new Error(_0x182870(-0x11,-0xe1,-0x180,-0x13d))),_0x4df3db),_0x26321c=()=>_0x29055a[_0x216454(-0x1db,-0xdf,-0xcb,-0xdf)](_0x31171b['reason']);function _0x216454(_0x421c95,_0x8ebb64,_0x4db159,_0x395dc2){return _0x1343ee(_0x4db159- -_0x139e36._0x2b5f23,_0x421c95,_0x4db159-_0x139e36._0x2dcf25,_0x395dc2-_0x139e36._0x31eb0b);}return _0x31171b['aborted']?_0x29055a['abort'](_0x31171b[_0x182870(-0x1a3,-_0x2ad718._0x33f22c,-_0x2ad718._0x10c993,-0x2de)]):_0x31171b['addEventListener']('abort',_0x26321c,{'once':!![]}),{'signal':_0x29055a[_0x216454(-0x23d,-0x130,-_0x2ad718._0x4178ce,-_0x2ad718._0x4f6ceb)],'cleanup':()=>{const _0x17a917={_0x9e20ec:0x39};clearTimeout(_0x585113);function _0x5a550b(_0x5d0aec,_0x452564,_0x3f9cea,_0x48a868){return _0x216454(_0x3f9cea,_0x452564-_0x152ec4._0x14933d,_0x452564- -0x12a,_0x48a868-0x4d);}function _0x1979d2(_0x3b10ab,_0x25d791,_0x33ccde,_0x391cfc){return _0x182870(_0x25d791,_0x25d791-0x193,_0x33ccde-_0x17a917._0x9e20ec,_0x33ccde-0xb3);}_0x31171b[_0x1979d2(-0x90,0xb2,0x29,0x132)](_0x1979d2(-0xab,-_0x24f059._0x3ddc96,-_0x24f059._0x2cd255,-0x1ba),_0x26321c);}};}function createWebFetchTool(_0x2cb148={}){const _0xd53a88={_0x5acd45:0x136,_0xeb3967:0x1da,_0xad2efa:0x248,_0x177d95:0x2a5,_0x4f5ed1:0x165,_0x21765f:0x344,_0x39f257:0x34,_0x22300f:0x38f,_0x1ee585:0x3f6,_0x47ab1b:0x2d0,_0x5788e4:0x1e5,_0x16e373:0x2f2,_0x3ed2a0:0x2bc,_0x59911c:0x273,_0x408308:0x192,_0x402858:0x1cb,_0x5b8874:0xba,_0x37bd5e:0x2db,_0x1f3f84:0x49f,_0x47babd:0x401,_0x35aeff:0x16a,_0x2b5759:0xb3,_0x55ac89:0xc5,_0x1ef544:0x215,_0x9e7994:0x1a5,_0x2160d5:0x79,_0x11e2a7:0x113,_0x1c9e30:0x448,_0x50c75a:0x393},_0x55a415={_0x180abf:0xa8,_0x1646a8:0x105,_0x49b0f7:0x136,_0x5f4625:0x12c,_0x30271e:0x25c,_0x4d73ef:0x27f,_0x56aecb:0x1b7,_0x49f23b:0xc0,_0x21538c:0x14f,_0x309d3f:0x251,_0x1cfd88:0x127,_0x548e33:0x17e,_0x1bd367:0x133,_0x3cd4a4:0xe4,_0x75e5ae:0x61,_0x2d6a0a:0x128,_0x3ef2bb:0xbd,_0x54c073:0x1f2,_0x1b2648:0x31,_0x59de0e:0xc0,_0xced684:0x154,_0x5e0d50:0x4e,_0x537f91:0x9b,_0x49602e:0x2f,_0x22c0f0:0x198,_0x1b249f:0xb2,_0x5edae2:0x71,_0x158ce0:0x159,_0x160f4a:0x13a,_0x4eca08:0x205,_0x2d1e81:0x193,_0x5b795d:0x1d4,_0xdb5c2e:0x13b,_0x2c38d1:0x89,_0x34c440:0x157,_0x4c89f4:0x250,_0x489db5:0x1c6,_0xcb3a06:0xee,_0x12ebab:0x154,_0x112038:0x249,_0x170539:0xc0,_0x471282:0x64,_0x23f49b:0x66,_0x2c61ef:0x131,_0xf6e2d3:0xca,_0x1442e4:0x18f},_0x253fd3={_0x5aa0a4:0x35e},_0xb1c4a={_0x49cc4f:0x1b3,_0x5a4792:0x47b,_0x290e09:0xa6},_0x509f99={_0x4d24a3:0x2fe},_0x4aed9d={_0x4ea9ca:0x79,_0xd00b0e:0xe4},_0x4893e5=_0x2cb148['name']??_0x4ecabd(0x2d7,_0xd53a88._0x5acd45,_0xd53a88._0xeb3967,0xc1),_0xe34368=_0x2cb148[_0x5d6782(_0xd53a88._0xad2efa,_0xd53a88._0x177d95,0x2ab,0x161)]??DEFAULT_TIMEOUT_MS2;function _0x4ecabd(_0x3fce67,_0x3d059e,_0x31e6f5,_0x16e959){return _0x1343ee(_0x31e6f5-_0x4aed9d._0x4ea9ca,_0x3fce67,_0x31e6f5-_0x4aed9d._0xd00b0e,_0x16e959-0x16);}function _0x5d6782(_0x4531ea,_0x2c0485,_0x2e250a,_0x25d8a0){return _0x357fd3(_0x4531ea-0xb,_0x2c0485-0x8d,_0x2c0485-_0x509f99._0x4d24a3,_0x25d8a0);}const _0xcdad3b=new _0x511744({'headingStyle':_0x4ecabd(_0xd53a88._0x4f5ed1,_0xd53a88._0x21765f,0x1f9,0x127),'codeBlockStyle':_0x4ecabd(0x0,-0x10b,-_0xd53a88._0x39f257,-0xfd),'bulletListMarker':'-'});return _0xcdad3b['remove']([_0x5d6782(0x1cd,0x2c0,0x3ba,0x27b),'style','noscript',_0x5d6782(0x444,_0xd53a88._0x22300f,0x362,_0xd53a88._0x1ee585),_0x4ecabd(0x185,0x6,0xef,0x1c0),_0x4ecabd(_0xd53a88._0x47ab1b,0x297,_0xd53a88._0x5788e4,_0xd53a88._0x16e373),_0x4ecabd(_0xd53a88._0x3ed2a0,0x1ea,0x223,_0xd53a88._0x59911c),_0x4ecabd(_0xd53a88._0x408308,0x23e,_0xd53a88._0x402858,_0xd53a88._0x5b8874)]),defineTool({'name':_0x4893e5,'description':_0x5d6782(_0xd53a88._0x37bd5e,0x391,_0xd53a88._0x1f3f84,_0xd53a88._0x47babd),'inputSchema':{'type':_0x4ecabd(_0xd53a88._0x35aeff,_0xd53a88._0x2b5759,_0xd53a88._0x55ac89,_0xd53a88._0x1ef544),'properties':{'description':{'type':_0x4ecabd(_0xd53a88._0x9e7994,_0xd53a88._0x2160d5,_0xd53a88._0x11e2a7,0xd3)},'url':{'type':_0x5d6782(_0xd53a88._0x1c9e30,_0xd53a88._0x50c75a,0x444,0x3d9)}},'required':[_0x4ecabd(0x15a,0x24a,0x13b,0x22a)]},async *'execute'(_0x5c1218,_0x6e1c2d){const _0x59ee50=assertFetchableUrl(_0x5c1218['url'])['toString']();if(_0x6e1c2d[_0x40b423(-0x9a,-_0x55a415._0x180abf,-_0x55a415._0x1646a8,-0x64)][_0x3644dd(-0x245,-_0x55a415._0x49b0f7,-_0x55a415._0x5f4625,-0x1b4)])throw new ToolExecutionError('Fetch\x20aborted\x20by\x20user',{'url':_0x59ee50});const _0x219153=createTimeoutSignal(_0x6e1c2d[_0x3644dd(-_0x55a415._0x30271e,-_0x55a415._0x4d73ef,-_0x55a415._0x56aecb,-0x2e8)],_0xe34368);let _0x2bea74='',_0x552cc9=0x0,_0x58ac0f;try{const _0x1b70ff=await fetch(_0x59ee50,{'headers':{'User-Agent':USER_AGENT},'signal':_0x219153[_0x3644dd(-_0x55a415._0x49f23b,-_0x55a415._0x21538c,-0x1b7,-_0x55a415._0x309d3f)]});if(!_0x1b70ff['ok'])throw new ToolExecutionError('HTTP\x20'+_0x1b70ff[_0x3644dd(-0x4e,-_0x55a415._0x1cfd88,-_0x55a415._0x548e33,-0x1af)]+'\x20'+_0x1b70ff[_0x3644dd(-_0x55a415._0x1bd367,-0x1e0,-0x193,-_0x55a415._0x3cd4a4)],{'url':_0x59ee50,'statusCode':_0x1b70ff[_0x40b423(-_0x55a415._0x75e5ae,-0x37,0x7,-_0x55a415._0x2d6a0a)]});_0x2bea74=_0x1b70ff[_0x40b423(-_0x55a415._0x3ef2bb,-0x1ef,0x70,-0x17f)][_0x40b423(-0xfe,0x2d,-_0x55a415._0x54c073,-_0x55a415._0x1b2648)]('content-type')??'',_0x552cc9=_0x1b70ff[_0x40b423(-0x61,-0xe3,-0x7c,0xc3)],_0x58ac0f=await _0x1b70ff[_0x40b423(_0x55a415._0x59de0e,_0x55a415._0xced684,_0x55a415._0x5e0d50,_0x55a415._0x180abf)]();}catch(_0x4ee9fa){if(_0x4ee9fa instanceof ToolExecutionError)throw _0x4ee9fa;const _0x5b52cd=_0x4ee9fa instanceof Error?_0x4ee9fa[_0x3644dd(-0x11,-0x9a,-_0x55a415._0x537f91,_0x55a415._0x49602e)]:String(_0x4ee9fa);throw new ToolExecutionError(_0x5b52cd,{'url':_0x59ee50});}finally{_0x219153[_0x3644dd(-_0x55a415._0x22c0f0,-0x27d,-0x1cb,-0x2ce)]();}const _0x186eda=new Date()[_0x3644dd(_0x55a415._0x1b249f,0x64,-_0x55a415._0x5edae2,-_0x55a415._0x158ce0)]();let _0x45fba1,_0x6f9174;function _0x3644dd(_0x2ea380,_0x5a509e,_0x24eb06,_0xaaea9c){return _0x5d6782(_0x2ea380-_0xb1c4a._0x49cc4f,_0x24eb06- -_0xb1c4a._0x5a4792,_0x24eb06-_0xb1c4a._0x290e09,_0x5a509e);}if(_0x2bea74[_0x3644dd(-_0x55a415._0x160f4a,-0x2f9,-_0x55a415._0x4eca08,-0x222)](_0x3644dd(-_0x55a415._0x2d1e81,-_0x55a415._0x5b795d,-0x1a7,-_0x55a415._0xdb5c2e)))_0x45fba1=_0x40b423(-_0x55a415._0x2c38d1,-0x1af,-0x195,-0x1a5)+_0x58ac0f+'\x0a```',_0x6f9174=_0x40b423(_0x55a415._0x34c440,0x1ec,_0x55a415._0x4c89f4,0x189);else _0x2bea74[_0x3644dd(-_0x55a415._0x489db5,-_0x55a415._0xcb3a06,-_0x55a415._0x4eca08,-0x1ea)](_0x40b423(0x16e,_0x55a415._0x34c440,0xc8,_0x55a415._0x12ebab))?(_0x45fba1=_0xcdad3b['turndown'](_0x58ac0f),_0x6f9174=_0x3644dd(-0x9a,-0xe6,-0x1c0,-_0x55a415._0x112038)):(_0x45fba1=_0x58ac0f,_0x6f9174=_0x40b423(_0x55a415._0x170539,-_0x55a415._0x471282,-_0x55a415._0x23f49b,_0x55a415._0x2c61ef));yield createToolOutput(_0x45fba1,{'url':_0x59ee50,'contentType':_0x2bea74,'statusCode':_0x552cc9,'format':_0x6f9174,'size':_0x58ac0f[_0x40b423(-0x45,-_0x55a415._0xf6e2d3,-_0x55a415._0x1442e4,-0x42)],'fetchedAt':_0x186eda});function _0x40b423(_0x19f256,_0x3f0a43,_0x1f368b,_0x20b550){return _0x5d6782(_0x19f256-0x134,_0x19f256- -_0x253fd3._0x5aa0a4,_0x1f368b-0x1a,_0x3f0a43);}return void 0x0;}});}import{load}from'cheerio';var USER_AGENT2='Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20Chrome/123.0.0.0\x20Safari/537.36\x20NuvinBot/1.0';function normalizeUrl(_0x5219e5){const _0x1620d4={_0x4bccb3:0x226,_0xa03aa7:0x48f,_0x1c12fc:0x28d,_0x3c6135:0x34d,_0x3d7862:0x20e,_0x433076:0x336,_0x32aaea:0x350,_0x4a5a2c:0x330,_0x54ea94:0x3c5,_0x14790f:0x2aa,_0x487000:0x188,_0x53c67b:0x2bc,_0x5a0002:0x508,_0x2f97a9:0x472,_0x2824ae:0x487,_0x3fdd8f:0x425,_0x16488c:0x30d,_0x4e8fc5:0x2b3,_0x53ae4c:0x452,_0x42b3e7:0x332,_0x13b7c7:0x2ea},_0x461cb6={_0x4cbce2:0x1de,_0x586e7d:0x232},_0xb3fd52={_0x3b985:0x372,_0x5565f4:0x3a};function _0x14a73a(_0x3b217e,_0x4f937b,_0x124c57,_0x23985d){return _0x1343ee(_0x3b217e-_0xb3fd52._0x3b985,_0x23985d,_0x124c57-0x1b8,_0x23985d-_0xb3fd52._0x5565f4);}function _0x348a76(_0x349ee7,_0x412491,_0x30d411,_0x456897){return _0x357fd3(_0x349ee7-_0x461cb6._0x4cbce2,_0x412491-0x110,_0x412491-_0x461cb6._0x586e7d,_0x349ee7);}try{const _0x28f426=new URL(_0x5219e5);for(const _0x447aad of['utm_source',_0x348a76(_0x1620d4._0x4bccb3,0x374,0x33b,0x328),_0x14a73a(_0x1620d4._0xa03aa7,0x3a2,0x398,0x4ea),_0x348a76(_0x1620d4._0x1c12fc,_0x1620d4._0x3c6135,0x3b5,_0x1620d4._0x3d7862),_0x348a76(0x405,_0x1620d4._0x433076,0x453,0x330),_0x14a73a(0x306,_0x1620d4._0x32aaea,_0x1620d4._0x4a5a2c,_0x1620d4._0x54ea94),_0x348a76(_0x1620d4._0x14790f,0x299,_0x1620d4._0x487000,_0x1620d4._0x53c67b),_0x14a73a(_0x1620d4._0x5a0002,0x4de,_0x1620d4._0x2f97a9,0x48f),_0x14a73a(0x400,_0x1620d4._0x2824ae,0x2f4,_0x1620d4._0x3fdd8f)]){_0x28f426[_0x14a73a(_0x1620d4._0x16488c,0x1c4,_0x1620d4._0x4e8fc5,0x3e7)]['delete'](_0x447aad);}return _0x28f426[_0x348a76(_0x1620d4._0x53ae4c,_0x1620d4._0x42b3e7,_0x1620d4._0x13b7c7,0x206)]();}catch{return _0x5219e5;}}function cseDateRestrict(_0x5934eb){const _0x27d7ad={_0x30299b:0x180,_0x353bb5:0x52,_0x55120a:0x3e4};function _0x21a4f6(_0x406572,_0x3f3d57,_0x4e8c7c,_0x36d217){return _0x1343ee(_0x3f3d57- -0x30,_0x36d217,_0x4e8c7c-0x188,_0x36d217-0x50);}if(_0x5934eb<=0x0)return void 0x0;function _0x11f9c7(_0x812146,_0x5a1425,_0x18b3be,_0x1acf4c){return _0x1343ee(_0x5a1425-0x3bd,_0x812146,_0x18b3be-0x3f,_0x1acf4c-0x169);}if(_0x5934eb<=0x1e)return'd'+Math[_0x21a4f6(-_0x27d7ad._0x30299b,-_0x27d7ad._0x353bb5,-0x138,-0x56)](0x1,Math['floor'](_0x5934eb));if(_0x5934eb<=0x16d)return'm'+Math[_0x11f9c7(_0x27d7ad._0x55120a,0x40b,0x350,0x3ed)](_0x5934eb/0x1e);return'y'+Math[_0x21a4f6(-0x1d,0x1e,0x12b,0x5b)](_0x5934eb/0x16d);}function addSiteFilters(_0x11570a,_0xe1e697){const _0x3ffdff={_0x469424:0x34b,_0xdb515f:0x31b,_0x2e1e57:0x3c1,_0x216b1d:0x26d,_0x5452d8:0x27e,_0x1d20dc:0x1ea,_0x45e11c:0x238,_0x27fda0:0xd1,_0x35976c:0x2be,_0x128a95:0x608,_0x592488:0x663,_0x4b4e81:0x26d,_0x3a2d6b:0x373},_0x2c140d={_0x3072f9:0x4},_0x3e20fa={_0x466bfd:0x1b1};if(_0xe1e697[_0x503195(0x284,_0x3ffdff._0x469424,_0x3ffdff._0xdb515f,_0x3ffdff._0x2e1e57)]===0x0)return _0x11570a[_0x503195(_0x3ffdff._0x216b1d,0x25d,_0x3ffdff._0x5452d8,0x3ba)]();function _0x2f125a(_0x196e39,_0x19e671,_0x4f22fb,_0x1c1b56){return _0x357fd3(_0x196e39-0x1c5,_0x19e671-_0x3e20fa._0x466bfd,_0x4f22fb-0x406,_0x1c1b56);}function _0x503195(_0x2f402f,_0x3d598c,_0x2c2213,_0x2e2305){return _0x1343ee(_0x2f402f-0x264,_0x3d598c,_0x2c2213-_0x2c140d._0x3072f9,_0x2e2305-0x150);}return(_0x11570a+'\x20('+_0xe1e697[_0x503195(_0x3ffdff._0x1d20dc,_0x3ffdff._0x45e11c,_0x3ffdff._0x27fda0,_0x3ffdff._0x35976c)](_0xa2e045=>_0x503195(0x216,0x215,0x24b,0x191)+_0xa2e045)['join'](_0x2f125a(_0x3ffdff._0x128a95,0x5f4,0x5c5,_0x3ffdff._0x592488))+')')[_0x503195(_0x3ffdff._0x4b4e81,0x2fd,0x172,_0x3ffdff._0x3a2d6b)]();}function normalizeType(_0x49efa1){const _0x5b35ec={_0xee50ab:0xb4,_0x3f332a:0x131,_0x8068c1:0x2a9,_0x4d1965:0x1ea,_0x2e65e0:0x1a6,_0x48fd88:0x328},_0x146c4c={_0x15bc4d:0x174},_0x34fc12={_0x2e4410:0xf2,_0x1bc18f:0x1f1,_0x5ea851:0x24b};function _0x2abe77(_0x143254,_0x55091e,_0x5c2fbe,_0x6c91e3){return _0x357fd3(_0x143254-_0x34fc12._0x2e4410,_0x55091e-_0x34fc12._0x1bc18f,_0x143254-_0x34fc12._0x5ea851,_0x6c91e3);}function _0x2a6152(_0x19eb23,_0x4587ae,_0x239a73,_0x5515a9){return _0x1343ee(_0x5515a9-0x285,_0x19eb23,_0x239a73-0x13b,_0x5515a9-_0x146c4c._0x15bc4d);}return _0x49efa1===_0x2a6152(_0x5b35ec._0xee50ab,_0x5b35ec._0x3f332a,_0x5b35ec._0x8068c1,_0x5b35ec._0x4d1965)?_0x2a6152(_0x5b35ec._0x2e65e0,0x214,_0x5b35ec._0x48fd88,_0x5b35ec._0x4d1965):'web';}async function fetchJson(_0x12bfd0,_0xa9fe9d,_0x293693){const _0x19528c={_0x1455d0:0x14e,_0x5c4416:0x479,_0x288847:0x90,_0x4f8420:0xcd,_0x25094a:0x54e,_0x3792a6:0x3ed,_0x3cf125:0x54,_0x534d7d:0x5a,_0x58167e:0x553,_0x52a4bf:0x59e,_0x5535a9:0x97,_0x279ab0:0x167,_0x305d53:0x25b,_0x4c9cd2:0x10c,_0x4bcf9d:0x12,_0x3d80f0:0x16,_0x173b56:0x32,_0x35daaa:0x24f,_0x5e349a:0x186,_0x256ad5:0x143,_0x573037:0x138,_0x2e4b79:0x4,_0x35e87c:0x30b,_0x3d6372:0x352,_0x55f2b2:0x274,_0x40bc68:0x6e,_0x46bead:0x20c,_0x12e469:0x3f4,_0x1cb7c1:0x4d8,_0x5861cf:0x577},_0x810771={_0x129ff3:0x144},_0x21b66a={_0x542dbe:0x147,_0x5c3a40:0x161,_0x510ab6:0x1ea};function _0x699b01(_0x21fc45,_0x300daa,_0x2e13a0,_0x3c0ef3){return _0x1343ee(_0x21fc45- -_0x21b66a._0x542dbe,_0x300daa,_0x2e13a0-_0x21b66a._0x5c3a40,_0x3c0ef3-_0x21b66a._0x510ab6);}const _0x53d5a9=await fetch(_0x12bfd0,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x699b01(-0x16c,-_0x19528c._0x1455d0,-0x96,-0x157),..._0x293693?.['headers']},'signal':_0xa9fe9d,..._0x293693});if(!_0x53d5a9['ok']){let _0x40ba63,_0x352a88;try{_0x40ba63=await _0x53d5a9[_0x23c549(_0x19528c._0x5c4416,0x441,0x484,0x364)]();const _0x1170ac=JSON[_0x699b01(_0x19528c._0x288847,0x172,_0x19528c._0x4f8420,_0x19528c._0x4f8420)](_0x40ba63),_0x1f201e=typeof _0x1170ac[_0x23c549(_0x19528c._0x25094a,0x40f,_0x19528c._0x3792a6,0x3e6)]==='object'?_0x1170ac[_0x699b01(-_0x19528c._0x3cf125,-_0x19528c._0x534d7d,-0x148,-0xa8)]['error']:void 0x0;_0x352a88=_0x1170ac[_0x23c549(0x373,0x4a5,_0x19528c._0x58167e,_0x19528c._0x52a4bf)]?.[_0x23c549(0x3de,0x403,0x427,0x31c)]??_0x1170ac[_0x699b01(0x42,_0x19528c._0x5535a9,-0x86,-0x21)]?.[_0x699b01(-_0x19528c._0x279ab0,-0x19f,-0x1e0,-_0x19528c._0x305d53)]?.[0x0]?.['message']??_0x1f201e;}catch{}const _0x39f914=_0x352a88?_0x699b01(-_0x19528c._0x4c9cd2,-_0x19528c._0x4bcf9d,-0x22,-_0x19528c._0x3d80f0)+_0x53d5a9['status']+':\x20'+_0x352a88:_0x699b01(-0x10c,-_0x19528c._0x173b56,-_0x19528c._0x35daaa,-_0x19528c._0x5e349a)+_0x53d5a9[_0x699b01(-_0x19528c._0x256ad5,-0x27a,-_0x19528c._0x573037,-_0x19528c._0x2e4b79)]+'\x20'+_0x53d5a9[_0x23c549(0x29a,_0x19528c._0x35e87c,_0x19528c._0x3d6372,_0x19528c._0x55f2b2)];throw new ToolExecutionError(_0x39f914,{'statusCode':_0x53d5a9[_0x699b01(-0x143,-_0x19528c._0x40bc68,-0x8e,-_0x19528c._0x46bead)],..._0x40ba63?{'body':_0x40ba63}:{}});}function _0x23c549(_0x2732c7,_0xce39e4,_0xa6c469,_0x5b4980){return _0x357fd3(_0x2732c7-0x92,_0xce39e4-_0x810771._0x129ff3,_0xce39e4-0x321,_0x5b4980);}return await _0x53d5a9[_0x23c549(_0x19528c._0x12e469,_0x19528c._0x1cb7c1,0x49d,_0x19528c._0x5861cf)]();}async function hydrateResults(_0x2b628f,_0x63b2ca,_0x20dcaf){const _0x14fe8b={_0x19cb43:0xaf,_0x4cd669:0x423,_0x23c0ab:0x4f2,_0x3feccc:0x473,_0x3d11cd:0x311,_0x20c5b3:0x30d,_0x3296b9:0x2e0,_0x5754c5:0x13,_0x10a201:0x136,_0x1a7926:0x2c8,_0x3579e6:0x382,_0x5f4db4:0x34a,_0x2b9d6b:0x348},_0x4d3309={_0x14f11a:0xa7,_0x2ef993:0x307},_0x3bb127={_0x2b5cbf:0x3e9,_0x1565f2:0x2d9,_0x36dce9:0x292,_0x5383d9:0x3cd,_0x541d71:0x33b,_0x13dca4:0x10b,_0x16bf07:0x181,_0x4298b9:0x1c4,_0x461736:0x22,_0x38dd1a:0xd8,_0x244173:0x64,_0x1b429b:0x20e,_0x299975:0x485,_0x3a8583:0x2a9,_0x273ba7:0x3bf,_0x36b69f:0x256,_0x5a28fd:0x17f,_0x1ad5c5:0x29c,_0x428b74:0x14e,_0x4cc67b:0x169,_0x8783a7:0xfe,_0x2ef0b8:0xc8,_0x4fa3fd:0x285,_0xdd0e81:0x3d3,_0x1d4f0d:0xeb,_0x26bf83:0x4ff,_0x487564:0x3cc,_0x5c829a:0x76,_0x54595d:0xbe,_0x18286e:0x1c5,_0x45f7e5:0xec,_0x3af95e:0x2fc,_0xe9916d:0x356,_0x39450c:0x323,_0xd32a5e:0x4d2,_0x5b385d:0x334,_0x565f5a:0x2a4,_0x232d2a:0x3b0,_0x3ebb0e:0x29e,_0x35ea92:0x468,_0xf27917:0x1b9,_0x4ecb23:0xfe,_0x35fff2:0x2a1,_0x372b4f:0x1bf,_0x1fd960:0x1c3,_0x15681f:0x251,_0x49bda8:0x23d,_0x509494:0xe2,_0xfb07b2:0xe5,_0x1163c0:0x4,_0x39585c:0xf9,_0x2ae626:0x189},_0x209ed9={_0x7859a1:0x1e8},_0x5ed178={_0x575824:0x15e,_0x507175:0x80};function _0xf62ca9(_0x182dee,_0x55f82f,_0x524a54,_0x100ddf){return _0x1343ee(_0x182dee- -0x184,_0x100ddf,_0x524a54-0x10a,_0x100ddf-0x1ad);}const _0x39b05d=await Promise[_0xf62ca9(-0x111,-0x3,-_0x14fe8b._0x19cb43,-0x254)](_0x2b628f[_0x3256c2(_0x14fe8b._0x4cd669,0x4bd,_0x14fe8b._0x23c0ab,_0x14fe8b._0x3feccc)](0x0,0xa)[_0xf62ca9(-0x1fe,-_0x14fe8b._0x3d11cd,-_0x14fe8b._0x20c5b3,-_0x14fe8b._0x3296b9)](async _0x412906=>{function _0x501d6d(_0x1b53c8,_0x5c11a3,_0x233e94,_0x100fd9){return _0xf62ca9(_0x100fd9-0x39a,_0x5c11a3-_0x5ed178._0x575824,_0x233e94-_0x5ed178._0x507175,_0x5c11a3);}function _0x1de217(_0xf8349e,_0xff40cb,_0x15d059,_0x140973){return _0xf62ca9(_0xff40cb- -0x10a,_0xff40cb-0x79,_0x15d059-_0x209ed9._0x7859a1,_0x140973);}try{const _0x367fcd=await fetch(_0x412906[_0x501d6d(0x286,0x427,0x3ba,0x2d8)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x63b2ca,'Accept':_0x501d6d(0x4bc,0x4a1,0x38c,_0x3bb127._0x2b5cbf)},'signal':_0x20dcaf});if(!_0x367fcd['ok'])return _0x412906;const _0x1505be=await _0x367fcd[_0x501d6d(_0x3bb127._0x1565f2,_0x3bb127._0x36dce9,_0x3bb127._0x5383d9,_0x3bb127._0x541d71)](),_0x3b6c65=load(_0x1505be),_0x2a6844=_0x3b6c65(_0x1de217(-_0x3bb127._0x13dca4,-0xfc,-_0x3bb127._0x16bf07,-_0x3bb127._0x4298b9))[_0x1de217(-_0x3bb127._0x461736,-_0x3bb127._0x38dd1a,-_0x3bb127._0x244173,-_0x3bb127._0x1b429b)]('content')||_0x3b6c65(_0x501d6d(0x317,_0x3bb127._0x299975,_0x3bb127._0x3a8583,_0x3bb127._0x273ba7))[_0x1de217(-0x265,-_0x3bb127._0x36b69f,-_0x3bb127._0x5a28fd,-_0x3bb127._0x1ad5c5)]()[_0x1de217(-_0x3bb127._0x428b74,-_0x3bb127._0x4cc67b,-_0x3bb127._0x8783a7,-_0x3bb127._0x2ef0b8)]()[_0x1de217(-0x2fe,-_0x3bb127._0x4fa3fd,-_0x3bb127._0xdd0e81,-0x333)](),_0x341ed3=_0x3b6c65(_0x1de217(-0x2fd,-0x1e5,-0x23b,-_0x3bb127._0x1d4f0d))[_0x501d6d(0x507,0x44c,_0x3bb127._0x26bf83,_0x3bb127._0x487564)]('content')||_0x3b6c65(_0x1de217(-_0x3bb127._0x5c829a,-_0x3bb127._0x54595d,-_0x3bb127._0x18286e,0x4))[_0x1de217(0x4a,-0xd8,-0x130,-_0x3bb127._0x45f7e5)](_0x1de217(-0xee,-0xbd,-0xae,-0xe5))||_0x412906[_0x1de217(-0x2a9,-_0x3bb127._0x3af95e,-0x35c,-0x1f8)],_0x3b60e1=_0x3b6c65(_0x1de217(-_0x3bb127._0xe9916d,-0x25f,-_0x3bb127._0x39450c,-0x193))[_0x501d6d(0x281,0x27d,_0x3bb127._0xd32a5e,0x3cc)](_0x501d6d(_0x3bb127._0x5b385d,0x2c1,_0x3bb127._0x565f5a,0x3e7))||_0x3b6c65(_0x501d6d(_0x3bb127._0x232d2a,0x400,_0x3bb127._0x3ebb0e,0x36e))[_0x501d6d(0x3be,_0x3bb127._0x26bf83,_0x3bb127._0x35ea92,_0x3bb127._0x487564)](_0x501d6d(0x10e,_0x3bb127._0xf27917,0x158,0x1a1))||_0x412906[_0x1de217(-0x6f,-0x1ab,-_0x3bb127._0x4ecb23,-0x248)],_0x1a245a=_0x3b6c65(_0x501d6d(_0x3bb127._0x1ad5c5,_0x3bb127._0x35fff2,0x11d,_0x3bb127._0x372b4f))['attr'](_0x1de217(-_0x3bb127._0x1fd960,-0x199,-_0x3bb127._0x15681f,-_0x3bb127._0x49bda8));return{..._0x412906,'title':_0x2a6844||_0x412906[_0x1de217(-_0x3bb127._0x509494,-_0x3bb127._0xfb07b2,_0x3bb127._0x1163c0,-_0x3bb127._0x39585c)],'snippet':_0x341ed3,'url':_0x1a245a?normalizeUrl(new URL(_0x1a245a,_0x412906[_0x1de217(-0x189,-0x1cc,-0x1e4,-0xf8)])[_0x1de217(-0x9f,-_0x3bb127._0x2ae626,-0x2b9,-0x22d)]()):_0x412906[_0x1de217(-0x1e1,-0x1cc,-0x132,-0x99)],'publishedAt':_0x3b60e1};}catch{return _0x412906;}})),_0x5ed6c1=new Map(_0x2b628f[_0xf62ca9(-_0x14fe8b._0x5754c5,0x89,-0x14,_0x14fe8b._0x10a201)](0x0,0xa)[_0x3256c2(_0x14fe8b._0x1a7926,0x2ff,0x236,0x288)]((_0x1ca047,_0x5d8436)=>[_0x1ca047[_0xf62ca9(-0xc2,-0x164,-0xd1,-0x96)],_0x39b05d[_0x5d8436]]));function _0x3256c2(_0x366a2c,_0x30eef2,_0x5d12a4,_0x294021){return _0x357fd3(_0x366a2c-_0x4d3309._0x14f11a,_0x30eef2-0x6a,_0x294021-_0x4d3309._0x2ef993,_0x30eef2);}return _0x2b628f[_0x3256c2(_0x14fe8b._0x3579e6,_0x14fe8b._0x5f4db4,_0x14fe8b._0x2b9d6b,0x288)](_0x2412dc=>_0x5ed6c1[_0xf62ca9(-0x21d,-0x1ec,-0x1b9,-0x1dc)](_0x2412dc[_0x3256c2(0x3d0,0x32a,0x2e2,0x3c4)])??_0x2412dc);}function formatResults(_0x36cdce){const _0x2a8bcb={_0x235d40:0x4a4,_0x14c50a:0x137},_0x4f7cf9={_0x2eab5a:0x23c,_0x5bddc5:0x1b3,_0x40ea76:0x114,_0x276fef:0xe4,_0x3bb196:0x18a,_0x4b57c1:0x92,_0x15c1bf:0x1c,_0xaaeaa0:0xd,_0x2fb17f:0x9e,_0x377341:0x1a6,_0x1f05df:0xd2,_0x454872:0x15e,_0x25e2db:0x13d},_0x636dc7={_0x248856:0x176,_0x5953ab:0xdd},_0x258704={_0x1ea5e6:0x30};function _0x1be90f(_0x2f5d0f,_0x30a2d3,_0x14fd94,_0xa83cfe){return _0x1343ee(_0x2f5d0f-0x436,_0xa83cfe,_0x14fd94-0x1f2,_0xa83cfe-_0x258704._0x1ea5e6);}if(_0x36cdce['length']===0x0)return'No\x20results\x20found.';function _0x230168(_0x235bab,_0x3a9e01,_0x24a8c2,_0x1d71fc){return _0x1343ee(_0x3a9e01- -_0x636dc7._0x248856,_0x235bab,_0x24a8c2-_0x636dc7._0x5953ab,_0x1d71fc-0x1ef);}return _0x36cdce[_0x1be90f(0x3bc,0x506,_0x2a8bcb._0x235d40,0x453)](_0x23a522=>{const _0x4b2d50={_0x47b2cd:0x36e,_0x210098:0x50},_0x2f0aa8=[_0x23a522['source']['rank']+'.\x20'+_0x23a522[_0x173811(_0x4f7cf9._0x2eab5a,_0x4f7cf9._0x5bddc5,0x1c4,_0x4f7cf9._0x40ea76)],_0x23a522[_0x2888da(0x18e,_0x4f7cf9._0x276fef,_0x4f7cf9._0x3bb196,0x71)]];function _0x173811(_0x4d29d0,_0x5c32be,_0x5440ac,_0x236171){return _0x1be90f(_0x4d29d0- -0x3a3,_0x5c32be-0xb9,_0x5440ac-0xe3,_0x236171);}if(_0x23a522[_0x173811(0x25,_0x4f7cf9._0x4b57c1,_0x4f7cf9._0x15c1bf,-_0x4f7cf9._0xaaeaa0)])_0x2f0aa8[_0x173811(0xf5,0x21c,0xc2,0x150)](_0x23a522[_0x173811(0x25,-0xbd,-0xc3,-0x7c)]);function _0x2888da(_0x247ffb,_0x595616,_0x5ed0e6,_0x32dd1c){return _0x1be90f(_0x5ed0e6- -_0x4b2d50._0x47b2cd,_0x595616-0x1a8,_0x5ed0e6-_0x4b2d50._0x210098,_0x595616);}if(_0x23a522['publishedAt'])_0x2f0aa8[_0x173811(0xf5,-0x1c,0x157,_0x4f7cf9._0x2fb17f)]('Published:\x20'+_0x23a522[_0x2888da(_0x4f7cf9._0x377341,0x2d3,0x1ab,0x8f)]);return _0x2f0aa8[_0x173811(_0x4f7cf9._0x1f05df,0x138,_0x4f7cf9._0x454872,_0x4f7cf9._0x25e2db)]('\x0a');})[_0x230168(-0xbb,-_0x2a8bcb._0x14c50a,-0x187,-0x224)]('\x0a\x0a');}async function searchOllama(_0x12b0e1,_0x3bbda6,_0x34d333){const _0x466b98={_0xca533e:0x1a9,_0x21534e:0x120,_0xdfa58a:0x75,_0x1f6bec:0x23,_0xe0efda:0x87,_0x2207fa:0x7c,_0x5ab711:0x216,_0x18fd1d:0x63,_0x72c4e4:0x6b,_0x5ccfdc:0xe5,_0x1413b1:0xe7,_0x4f997c:0xa,_0x339373:0xcc,_0xb5bde7:0xfb,_0x2d0cf7:0x7d,_0x1fb176:0xc5,_0x4fc323:0xc5,_0x360187:0x5b,_0x474462:0xa4,_0x28cec5:0xa3},_0x608851={_0x367448:0x51e,_0x586f5b:0x55c,_0x262063:0x5e2,_0x159bd8:0x54,_0x4d5dc1:0x510},_0x1760ec={_0x154609:0x572},_0x147d73={_0x1c139c:0x259},_0x129956={_0x4a4def:0x1b0,_0x40770f:0x13d},_0x4fea86={_0x29f98b:0x1e2,_0x77478b:0x63},_0x288b83=Math[_0x131255(-0x1e8,-0x138,-0x165,-0x22e)](0x1,Math[_0x4e6266(-0xde,-_0x466b98._0xca533e,-_0x466b98._0x21534e,-0x1f7)](0xa,_0x3bbda6[_0x4e6266(-0x23,-0x74,-0xda,-_0x466b98._0xdfa58a)])),_0x1a2bdb=addSiteFilters(_0x3bbda6[_0x131255(-_0x466b98._0x1f6bec,0x57,-0x2,-_0x466b98._0xe0efda)],_0x3bbda6['domains']),_0x25503d=await fetchJson('https://ollama.com/api/web_search',_0x34d333,{'method':_0x131255(-_0x466b98._0x2207fa,-0x11f,-0x1f8,-_0x466b98._0x5ab711),'headers':{'Authorization':_0x4e6266(-0xe5,-_0x466b98._0x18fd1d,_0x466b98._0x72c4e4,-_0x466b98._0x5ccfdc)+_0x12b0e1[_0x4e6266(-_0x466b98._0x1413b1,_0x466b98._0x4f997c,0x14d,-0x48)]},'body':JSON[_0x131255(-_0x466b98._0x339373,-0x3,-0x8,-_0x466b98._0xb5bde7)]({'query':_0x1a2bdb,'max_results':_0x288b83})});function _0x131255(_0x48550c,_0x595269,_0x17b46a,_0xed75b4){return _0x1343ee(_0x595269- -0x116,_0xed75b4,_0x17b46a-_0x4fea86._0x29f98b,_0xed75b4-_0x4fea86._0x77478b);}function _0x4e6266(_0xddace5,_0x3525e5,_0x22689c,_0x29bfe8){return _0x1343ee(_0x3525e5- -_0x129956._0x4a4def,_0xddace5,_0x22689c-0x19a,_0x29bfe8-_0x129956._0x40770f);}const _0x14f933=_0x25503d['results']??[],_0xec20e5=_0x14f933[_0x131255(-0x18a,-0x190,-_0x466b98._0x2d0cf7,-_0x466b98._0x1fb176)]((_0x3e48ab,_0x4d2645)=>{const _0x2ed7ec=_0x3e48ab[_0x3b82dc(_0x608851._0x367448,_0x608851._0x586f5b,0x5df,0x63a)]||'';let _0x1be88c;function _0x1edd63(_0x5c7b8c,_0x3b639a,_0x24930c,_0x42634c){return _0x131255(_0x5c7b8c-0x13d,_0x24930c-_0x147d73._0x1c139c,_0x24930c-0x26,_0x42634c);}try{_0x1be88c=new URL(_0x2ed7ec)[_0x3b82dc(0x571,_0x608851._0x262063,0x5b6,0x4fb)];}catch{_0x1be88c=null;}function _0x3b82dc(_0x159bbe,_0x1b7564,_0x464d94,_0x3d0d0a){return _0x131255(_0x159bbe-0x12d,_0x159bbe-_0x1760ec._0x154609,_0x464d94-0x15e,_0x3d0d0a);}return{'title':_0x3e48ab['title']||_0x1edd63(-0x38,0x27,0xad,-_0x608851._0x159bd8),'url':normalizeUrl(_0x2ed7ec),'snippet':_0x3e48ab['content']??null,'displayUrl':_0x1be88c,'favicon':null,'publishedAt':null,'source':{'engine':_0x3b82dc(0x48f,0x422,_0x608851._0x4d5dc1,0x45e),'rank':_0x4d2645+0x1}};});return{'items':_0xec20e5[_0x131255(-_0x466b98._0x4fc323,_0x466b98._0x360187,0x109,_0x466b98._0x474462)](0x0,_0x288b83),'engine':_0x131255(-0x11f,-0xe3,-_0x466b98._0x28cec5,-0xe2)};}async function searchTavily(_0x4ebb25,_0x5f4eb9,_0x195d1e){const _0xa3b97c={_0x1c4bff:0x461,_0x2a776d:0x3cf,_0x351ee4:0x407,_0x3a2604:0x502,_0x46470a:0x535,_0x234e93:0x52d,_0x2dd685:0x794,_0x3e7c86:0x472,_0x5d44ca:0x361,_0x38150b:0x544,_0x4a983b:0x48d,_0x45b13b:0x421,_0xac5f53:0x494,_0x189987:0x411,_0x3163f0:0x3ca,_0x3eac5b:0x5ca,_0x40c246:0x4e7,_0x21024c:0x4da,_0x181f8c:0x3e8,_0x478c39:0x633,_0x12fd49:0x767,_0x51f86e:0x512,_0x53e021:0x3b8,_0x2e6f4f:0x381,_0x573950:0x4c3,_0x56119f:0x57b,_0x37c259:0x47f,_0x2a4132:0x50d,_0x418505:0x693,_0x495f04:0x44f,_0x47c90e:0x607,_0xff4326:0x41c},_0x523cd5={_0x10cca9:0xbf,_0x1ce13b:0x4c,_0x18be16:0xbd,_0x46f684:0x1d8,_0x540cfd:0xbb,_0x5730b6:0x33,_0x5bfe6b:0x10c,_0x5955cf:0x117,_0x3b1e1f:0x179,_0x4e4659:0x171,_0x29579b:0x86,_0x4257c5:0x30,_0x252c12:0x5d},_0x2185d5={_0x3151d0:0x5c,_0x5f27f3:0xf3},_0x3fc3de={_0x4beea3:0x55c},_0x3cb1db={_0x18b6b5:0xfb,_0x1e5652:0x4eb},_0x263180={_0x224d3b:0x1e1,_0x1e2276:0xd3,_0x97bc1b:0x3f6},_0x499f23=Math[_0x2e585c(_0xa3b97c._0x1c4bff,_0xa3b97c._0x2a776d,_0xa3b97c._0x351ee4,0x4f1)](0x1,Math[_0x24c314(0x4ed,0x611,_0xa3b97c._0x3a2604,_0xa3b97c._0x46470a)](0x14,_0x5f4eb9[_0x2e585c(0x64c,_0xa3b97c._0x234e93,0x5e3,0x46c)])),_0x374b4a={'query':_0x5f4eb9[_0x24c314(0x653,_0xa3b97c._0x2dd685,0x72c,0x5de)],'max_results':_0x499f23,'search_depth':_0x4ebb25[_0x24c314(_0xa3b97c._0x3e7c86,0x375,_0xa3b97c._0x5d44ca,0x342)]??_0x24c314(0x594,0x600,_0xa3b97c._0x38150b,_0xa3b97c._0x4a983b),'topic':_0x4ebb25[_0x24c314(0x4af,0x42c,_0xa3b97c._0x45b13b,_0xa3b97c._0xac5f53)]??'general'};if(_0x5f4eb9['domains'][_0x2e585c(0x41b,_0xa3b97c._0x189987,_0xa3b97c._0x3163f0,0x3ce)]>0x0)_0x374b4a[_0x24c314(0x4d3,0x597,_0xa3b97c._0x3eac5b,_0xa3b97c._0x40c246)]=_0x5f4eb9['domains'];function _0x2e585c(_0x84e2f3,_0x44c90f,_0x4252cb,_0x458d4c){return _0x357fd3(_0x84e2f3-_0x263180._0x224d3b,_0x44c90f-_0x263180._0x1e2276,_0x44c90f-_0x263180._0x97bc1b,_0x4252cb);}const _0x4a0844=await fetchJson('https://api.tavily.com/search',_0x195d1e,{'method':_0x2e585c(_0xa3b97c._0x21024c,_0xa3b97c._0x181f8c,0x3a2,0x389),'headers':{'Authorization':_0x24c314(_0xa3b97c._0x478c39,_0xa3b97c._0x12fd49,0x504,_0xa3b97c._0x51f86e)+_0x4ebb25[_0x2e585c(0x4ef,0x457,0x4b7,0x4f7)],'Content-Type':_0x2e585c(_0xa3b97c._0x53e021,0x3cc,_0xa3b97c._0x2e6f4f,_0xa3b97c._0x573950)},'body':JSON['stringify'](_0x374b4a)});function _0x24c314(_0x331c15,_0x33f891,_0x2ed46c,_0x5bdb42){return _0x357fd3(_0x331c15-0xdf,_0x33f891-_0x3cb1db._0x18b6b5,_0x331c15-_0x3cb1db._0x1e5652,_0x2ed46c);}const _0x396074=_0x4a0844[_0x24c314(_0xa3b97c._0x56119f,_0xa3b97c._0x37c259,0x47e,0x68a)]??[],_0x489539=_0x396074[_0x24c314(0x46c,0x47a,0x471,0x449)]((_0x1a40e0,_0x1db58f)=>{const _0x23600a=_0x1a40e0[_0x4bbc36(_0x523cd5._0x10cca9,_0x523cd5._0x1ce13b,0x8,0x137)]||'';let _0x38bf99;function _0x4bbc36(_0x55270b,_0x3c999d,_0x1e5683,_0x1840a0){return _0x24c314(_0x3c999d- -_0x3fc3de._0x4beea3,_0x3c999d-0x1aa,_0x1e5683,_0x1840a0-0x63);}function _0x323a69(_0x3b871e,_0x2ac474,_0x29a0e6,_0x34ef36){return _0x2e585c(_0x3b871e-_0x2185d5._0x3151d0,_0x2ac474- -0x449,_0x34ef36,_0x34ef36-_0x2185d5._0x5f27f3);}try{_0x38bf99=new URL(_0x23600a)[_0x323a69(0xbf,_0x523cd5._0x18be16,0x101,_0x523cd5._0x46f684)];}catch{_0x38bf99=null;}return{'title':_0x1a40e0[_0x323a69(0x257,0x151,_0x523cd5._0x540cfd,_0x523cd5._0x5730b6)]||_0x4bbc36(-0xd3,-_0x523cd5._0x5bfe6b,-_0x523cd5._0x5955cf,-0x1b),'url':normalizeUrl(_0x23600a),'snippet':_0x1a40e0[_0x323a69(0x272,_0x523cd5._0x3b1e1f,0x7e,0x1d1)]??null,'displayUrl':_0x38bf99,'favicon':null,'publishedAt':null,'source':{'engine':_0x323a69(-_0x523cd5._0x4e4659,-_0x523cd5._0x29579b,_0x523cd5._0x4257c5,-_0x523cd5._0x252c12),'rank':_0x1db58f+0x1}};});return{'items':_0x489539[_0x2e585c(_0xa3b97c._0x2a4132,0x562,0x551,_0xa3b97c._0x418505)](0x0,_0x499f23),'engine':_0x24c314(0x4b8,_0xa3b97c._0x495f04,_0xa3b97c._0x47c90e,_0xa3b97c._0xff4326)};}async function searchGoogleCse(_0x1e4850,_0x333fdd,_0x4c6e12){const _0x1bd02e={_0x2e715d:0x251,_0x346f35:0x98,_0x4bddbd:0xd9,_0x2e8124:0x581,_0x3c1bed:0x51f,_0xc9a67c:0x532,_0x2f4cae:0x16c,_0x3b1cc2:0x185,_0x57a805:0x5e2,_0x407de4:0x6be,_0x4e2262:0x681,_0x206bae:0x3a0,_0x1550d0:0x419,_0x5bb68a:0x424,_0x4b6f4f:0x51b,_0xbe68e5:0x411,_0x10a45d:0x13,_0x5dd637:0x132,_0x3c2898:0x52,_0x344f03:0xb1,_0x3d52b8:0x2bb,_0x1f6b73:0x196,_0x33ea2a:0x20d,_0x578e6b:0x145,_0x4937e8:0x1c3,_0x354399:0x49,_0x50d3be:0x61,_0x435f06:0x6,_0x57b05f:0xc4,_0xbdb303:0x15d,_0x2df4f5:0x18e,_0x297a19:0x2,_0x1b3f78:0xe7,_0x41b5ce:0xd5,_0x55ef12:0x16,_0x351edc:0x3f8,_0x56c2ac:0x466,_0x1ef4dd:0x473,_0xf0b15c:0x4c4,_0x18ab78:0x5de,_0x372f6e:0x5c9,_0x3dde9c:0x3e8,_0x5454e6:0x48c,_0xa010f5:0x61,_0x497a46:0x5c,_0x3e9691:0x13a,_0x57ae04:0x5a,_0x14006f:0x456,_0x170ae1:0x61,_0x10a266:0x4ca,_0x13e214:0x584,_0x3ee8e6:0x4f3,_0xd75e5c:0x65b,_0x574612:0x145,_0x295e1f:0x229,_0x4801c3:0x4c4,_0x578d72:0x47b,_0x2f89a2:0x6a,_0x48b4a3:0x60b,_0x5f5094:0x56c,_0x19ef14:0x68a,_0x5d6b32:0x748,_0x395690:0x3e0,_0x5e0f77:0x61,_0x52458c:0x5,_0x4226ed:0x54b,_0x5c364c:0x6c5,_0x190d55:0x552,_0x2bed35:0x416,_0x333fab:0x475,_0x4a5c10:0x4d8,_0x3804e0:0x577,_0x317636:0x65,_0x1b9062:0x79,_0x1499c5:0x74,_0x594d44:0x54a,_0x39ffa8:0x3fd,_0x59e9cf:0x20c,_0x261c30:0x15f,_0xe0b4b6:0x17b,_0x5720ec:0x6f,_0x133b1a:0x1aa,_0x35272c:0x545,_0x103c00:0x1a4,_0x53124f:0xc2,_0x1d05c5:0x1d3,_0x2a856b:0x1,_0x11ac25:0x12b,_0xe8c562:0xb,_0x3cde4d:0xaf,_0x51950e:0xff,_0x59df0d:0x6f9,_0xe23ad8:0x578,_0xdaf5f8:0x402,_0x327b65:0x516,_0xa28523:0x4e7,_0x11211e:0x176,_0x505567:0xa9,_0x2fd41e:0x244,_0x2c74e0:0x57a,_0x190d51:0x3e2,_0x3c68fd:0x491,_0x1c2052:0x328,_0x12dc7d:0x370,_0x4530aa:0x3fd,_0x2f19c7:0x4eb,_0x4a02ec:0x497,_0x436a3f:0x41e,_0x1d4f4e:0x55a,_0x44a407:0x488,_0x408afe:0x386,_0x2cfdf0:0x48d,_0x49cad7:0x2e7,_0x1fe58e:0x86,_0x273d00:0xa1,_0x46846d:0xc0,_0x33129f:0x72,_0xfc6884:0x612,_0x1a8539:0x525},_0x4a8915={_0x8584aa:0xe0},_0x4c6708={_0x246fd9:0xda,_0x48b18a:0x188,_0x3e3578:0x44a},_0xf50c60=Math[_0x1301f5(-_0x1bd02e._0x2e715d,-0x102,-0x153,-0x23)](0x1,Math[_0x1301f5(-_0x1bd02e._0x346f35,-_0x1bd02e._0x4bddbd,-0x1f5,-0x229)](0x32,_0x333fdd[_0x10c7f8(_0x1bd02e._0x2e8124,_0x1bd02e._0x3c1bed,_0x1bd02e._0xc9a67c,0x590)]));if(_0x333fdd[_0x1301f5(-_0x1bd02e._0x2f4cae,-_0x1bd02e._0x3b1cc2,-0x223,-0x68)]+_0xf50c60>0x64)throw new ToolExecutionError(_0x10c7f8(_0x1bd02e._0x57a805,_0x1bd02e._0x407de4,0x4d8,_0x1bd02e._0x4e2262),{'offset':_0x333fdd[_0x10c7f8(_0x1bd02e._0x206bae,_0x1bd02e._0x1550d0,_0x1bd02e._0x5bb68a,0x28f)],'count':_0xf50c60,'maxResults':0x64});const _0xb8f5be=cseDateRestrict(_0x333fdd[_0x10c7f8(_0x1bd02e._0x4b6f4f,0x3f1,0x53e,_0x1bd02e._0xbe68e5)]),_0x53e336=addSiteFilters(_0x333fdd[_0x1301f5(-_0x1bd02e._0x10a45d,0x8d,0x1c4,-0x8c)],_0x333fdd[_0x1301f5(-0xb0,-_0x1bd02e._0x5dd637,-0x17c,-_0x1bd02e._0x3c2898)]);let _0x631979=0x0;function _0x10c7f8(_0x67fb7e,_0x89320e,_0x1ba252,_0x2c9b00){return _0x357fd3(_0x67fb7e-_0x4c6708._0x246fd9,_0x89320e-_0x4c6708._0x48b18a,_0x67fb7e-_0x4c6708._0x3e3578,_0x2c9b00);}let _0x38c191=_0x333fdd[_0x1301f5(-_0x1bd02e._0x344f03,-_0x1bd02e._0x3b1cc2,-_0x1bd02e._0x3d52b8,-0x292)]+0x1;const _0x5480ce=[];while(_0x631979<_0xf50c60){const _0xf564b5=Math['min'](0xa,_0xf50c60-_0x631979),_0x15b742=new URL(_0x1301f5(-0xa1,-_0x1bd02e._0x1f6b73,-0xe1,-_0x1bd02e._0x33ea2a));_0x15b742[_0x1301f5(-0x75,-_0x1bd02e._0x578e6b,-_0x1bd02e._0x4937e8,-0x11)][_0x1301f5(-_0x1bd02e._0x354399,-_0x1bd02e._0x50d3be,_0x1bd02e._0x435f06,_0x1bd02e._0x57b05f)]('key',_0x1e4850[_0x1301f5(-0x14e,-_0x1bd02e._0xbdb303,-0x1d0,-_0x1bd02e._0x2df4f5)]),_0x15b742[_0x1301f5(_0x1bd02e._0x297a19,-_0x1bd02e._0x578e6b,-0x48,-_0x1bd02e._0x1b3f78)][_0x1301f5(-0x34,-0x61,-_0x1bd02e._0x41b5ce,_0x1bd02e._0x55ef12)]('cx',_0x1e4850[_0x10c7f8(_0x1bd02e._0x351edc,_0x1bd02e._0x56c2ac,0x509,_0x1bd02e._0x1ef4dd)]),_0x15b742[_0x1301f5(-0x11,-0x145,-0x1c4,-0x1ec)]['set']('q',_0x53e336),_0x15b742[_0x1301f5(-0x43,-_0x1bd02e._0x578e6b,-0x67,-0x9b)][_0x10c7f8(_0x1bd02e._0xf0b15c,0x42a,_0x1bd02e._0x18ab78,_0x1bd02e._0x372f6e)]('num',String(_0xf564b5)),_0x15b742[_0x10c7f8(0x3e0,_0x1bd02e._0x3dde9c,0x326,_0x1bd02e._0x5454e6)][_0x1301f5(-_0x1bd02e._0x1f6b73,-_0x1bd02e._0xa010f5,-_0x1bd02e._0x497a46,-_0x1bd02e._0x3e9691)](_0x1301f5(0x13,-0x8,-_0x1bd02e._0x57ae04,-0xd1),String(_0x38c191)),_0x15b742[_0x10c7f8(0x3e0,0x2d6,0x37a,_0x1bd02e._0x14006f)][_0x1301f5(-0x3,-_0x1bd02e._0x170ae1,-0x7b,-0x17e)](_0x10c7f8(0x5d4,0x64e,_0x1bd02e._0x10a266,_0x1bd02e._0x13e214),_0x333fdd['safe']?_0x1301f5(-0xac,-0x13e,-0x186,-0x94):_0x10c7f8(0x573,0x634,0x5f2,0x500));_0x333fdd[_0x10c7f8(0x5b7,_0x1bd02e._0x3ee8e6,0x69e,_0x1bd02e._0xd75e5c)]&&(_0x15b742[_0x1301f5(-0x194,-0x145,-0x165,-0x113)][_0x1301f5(0xd1,-0x61,-_0x1bd02e._0x354399,-0x73)]('hl',_0x333fdd['lang']),_0x15b742[_0x1301f5(-0xef,-_0x1bd02e._0x574612,-0x127,-_0x1bd02e._0x295e1f)][_0x10c7f8(_0x1bd02e._0x4801c3,0x47e,0x53d,_0x1bd02e._0x578d72)]('lr','lang_'+_0x333fdd[_0x1301f5(0x1d1,0x92,-_0x1bd02e._0x55ef12,_0x1bd02e._0x2f89a2)]));if(_0x333fdd[_0x10c7f8(_0x1bd02e._0x48b4a3,_0x1bd02e._0x5f5094,_0x1bd02e._0x19ef14,_0x1bd02e._0x5d6b32)])_0x15b742[_0x10c7f8(_0x1bd02e._0x395690,0x355,0x494,0x3a8)][_0x1301f5(-0x88,-_0x1bd02e._0x5e0f77,-0x145,-_0x1bd02e._0x52458c)]('gl',_0x333fdd[_0x10c7f8(_0x1bd02e._0x48b4a3,_0x1bd02e._0x4226ed,0x4ca,_0x1bd02e._0x5c364c)][_0x10c7f8(_0x1bd02e._0x190d55,_0x1bd02e._0x2bed35,0x483,0x644)]());if(_0x333fdd[_0x10c7f8(_0x1bd02e._0x333fab,_0x1bd02e._0x4a5c10,0x487,_0x1bd02e._0x3804e0)]===_0x1301f5(-_0x1bd02e._0x295e1f,-0x17b,-_0x1bd02e._0x317636,-_0x1bd02e._0x1b9062))_0x15b742['searchParams']['set']('searchType','image');if(_0xb8f5be)_0x15b742['searchParams']['set'](_0x1301f5(0x13,_0x1bd02e._0x1499c5,0x39,0x112),_0xb8f5be);const _0x550055=await fetchJson(_0x15b742[_0x10c7f8(_0x1bd02e._0x594d44,0x5d8,_0x1bd02e._0x39ffa8,0x508)](),_0x4c6e12),_0x3d71cd=_0x550055[_0x1301f5(-_0x1bd02e._0x59e9cf,-0x18c,-_0x1bd02e._0x261c30,-_0x1bd02e._0xe0b4b6)]??[];if(_0x3d71cd[_0x1301f5(_0x1bd02e._0x5720ec,-0xc0,-_0x1bd02e._0x133b1a,-0xa0)]===0x0)break;const _0x12adca=_0x631979;for(let _0x1b041a=0x0;_0x1b041a<_0x3d71cd[_0x10c7f8(0x465,0x4e1,0x4bd,_0x1bd02e._0x35272c)];_0x1b041a++){const _0x337408=_0x3d71cd[_0x1b041a];if(!_0x337408)continue;const _0x3c190a=_0x337408[_0x1301f5(-_0x1bd02e._0x103c00,-_0x1bd02e._0x53124f,-_0x1bd02e._0x1d05c5,0xd)]||_0x337408[_0x1301f5(-0x31,_0x1bd02e._0x2a856b,_0x1bd02e._0x11ac25,-_0x1bd02e._0xe8c562)]?.[_0x1301f5(_0x1bd02e._0x3cde4d,-0x1a,0x57,_0x1bd02e._0x51950e)]||'',_0x2eed40=_0x337408[_0x10c7f8(0x5ee,_0x1bd02e._0x59df0d,_0x1bd02e._0xe23ad8,0x4ea)]||_0x337408[_0x10c7f8(0x526,_0x1bd02e._0xdaf5f8,_0x1bd02e._0x327b65,_0x1bd02e._0xa28523)]?.['title']||_0x1301f5(-0x46,-_0x1bd02e._0x11211e,-_0x1bd02e._0x505567,-_0x1bd02e._0x2fd41e),_0x47787d=_0x337408['snippet']||_0x337408[_0x10c7f8(_0x1bd02e._0x2c74e0,0x5f9,0x4a2,0x507)]?.[_0x10c7f8(_0x1bd02e._0x190d51,_0x1bd02e._0x3c68fd,_0x1bd02e._0x1c2052,_0x1bd02e._0x12dc7d)](/<[^>]+>/g,''),_0x9a2a7d=_0x337408[_0x10c7f8(0x412,_0x1bd02e._0x4530aa,0x2cd,_0x1bd02e._0x2f19c7)]?.[_0x10c7f8(_0x1bd02e._0x4a02ec,_0x1bd02e._0x436a3f,0x5bf,0x4ea)]?.[0x0]??{};let _0x1259bc;try{_0x1259bc=new URL(_0x3c190a)[_0x10c7f8(_0x1bd02e._0x1d4f4e,_0x1bd02e._0x44a407,0x68c,0x575)];}catch{_0x1259bc=null;}_0x5480ce['push']({'title':_0x2eed40,'url':normalizeUrl(_0x3c190a),'snippet':_0x47787d??null,'displayUrl':_0x1259bc,'favicon':null,'publishedAt':_0x9a2a7d['article:published_time']||_0x9a2a7d[_0x10c7f8(_0x1bd02e._0x408afe,0x366,_0x1bd02e._0x2cfdf0,_0x1bd02e._0x49cad7)]||null,'source':{'engine':_0x1301f5(_0x1bd02e._0x1fe58e,0x98,0x15e,-_0x1bd02e._0x273d00),'rank':_0x12adca+_0x1b041a+0x1}});}_0x631979+=_0x3d71cd['length'],_0x38c191+=_0x3d71cd['length'];if(_0x3d71cd[_0x1301f5(-0x139,-_0x1bd02e._0x46846d,0x8f,-_0x1bd02e._0x33129f)]<_0xf564b5)break;}function _0x1301f5(_0x5e2e10,_0x44325,_0x26d2d7,_0x593707){return _0x1343ee(_0x44325- -_0x4a8915._0x8584aa,_0x593707,_0x26d2d7-0xa6,_0x593707-0x17e);}return _0x5480ce[_0x10c7f8(0x5b6,_0x1bd02e._0xfc6884,0x6a7,_0x1bd02e._0x1a8539)](0x0,_0xf50c60);}function isGoogleCseEngine(_0x1a59d4){return'googleCseKey'in _0x1a59d4;}function isOllamaEngine(_0x16d27e){const _0x44ade7={_0x349141:0x5c,_0xeaced6:0x38,_0x5e9554:0xe4},_0x3e8f6d={_0x5cec4b:0x16c,_0x5796c4:0xcb,_0xa45ec4:0x299};function _0x6f6968(_0x4f2114,_0x1aa0f8,_0x12258b,_0x563cd3){return _0x357fd3(_0x4f2114-_0x3e8f6d._0x5cec4b,_0x1aa0f8-_0x3e8f6d._0x5796c4,_0x563cd3- -_0x3e8f6d._0xa45ec4,_0x4f2114);}return _0x6f6968(-_0x44ade7._0x349141,-_0x44ade7._0xeaced6,-0xcc,-_0x44ade7._0x5e9554)in _0x16d27e;}function isTavilyEngine(_0x42355c){return'tavilyApiKey'in _0x42355c;}function createWebSearchTool(_0x3a0abe){const _0x11e4f0={_0x3dda2c:0x124,_0x31bbbd:0x23,_0x442c06:0x31d,_0x12ab83:0x3f0,_0x1a5e83:0x1e8,_0x478c06:0x251,_0x1d3737:0x1b1,_0x2b0224:0x20b,_0x6f86f6:0x1c5,_0x46f7bc:0xd9,_0x3d29dc:0x39,_0x440d3c:0x1dd,_0x2280ba:0x9e,_0x1dad33:0x1de,_0x4497ea:0x109,_0x208ce0:0x1d1,_0x351c5e:0xcf,_0x472514:0x67,_0x462841:0xa8,_0x4df773:0x74,_0x1176a1:0x2d9,_0x24e9a0:0xaa,_0x5477df:0x21,_0x321478:0xb3,_0x1d3054:0x136,_0x502d26:0x25f,_0x47d66d:0x209,_0x42b688:0xa6,_0x5a4518:0x103,_0x224105:0x1cc,_0x523cb4:0x4b,_0x450d3b:0x40,_0x10a12a:0x5b,_0x438351:0x110,_0x90edf2:0x2bd,_0xc4aa3b:0x3d4,_0x47537f:0x300,_0x51fe55:0x22b,_0x44da90:0xe3,_0x4fdc83:0x3d,_0x52199c:0x112},_0x48c130={_0x2c9b87:0x559,_0x593d09:0x4d3,_0x5f4b6b:0x3b0,_0x2a598e:0x3e7,_0x4eaa7f:0x406,_0x10c5d5:0x3f7,_0x2e7169:0x2b2,_0x5d954d:0x33e,_0x97b77d:0x1d0,_0x510bf9:0x426,_0x838d6b:0x201,_0x10a504:0x2d5,_0x3292e8:0x22e,_0x1958df:0x261,_0x176e99:0x2f7,_0x4b5764:0x22f,_0x4add30:0x368,_0x31f381:0x489,_0x2f4126:0x310,_0x222a3c:0x548,_0x59f139:0x492,_0x340a78:0x536,_0x12fde2:0x365,_0x38ff83:0x5e5,_0x513d4a:0x49a,_0x2ed3bf:0x297,_0x1a02cd:0x1bc,_0xa73d9:0x3a1,_0x38be31:0x26a,_0x82d3:0x263,_0x4778e5:0x342,_0x5ce5de:0x37a,_0x1393f8:0x38f,_0x3deb60:0x326,_0x5838d6:0x58a,_0x30eba3:0x4e0,_0xf89add:0x24e,_0x5cb773:0xe4,_0x430160:0x230,_0x25dc5e:0x1a5,_0x4d296b:0x295,_0x15b26e:0x57e,_0x355385:0x35d,_0x451dba:0x4be,_0x5d9d0c:0x3ed,_0x3cb04b:0x4c0,_0x19192c:0x1d8,_0x567392:0x16a,_0x18c901:0x25a,_0x17c623:0x282,_0x33b746:0x249,_0x1e1941:0x476,_0x33523a:0x37e,_0x40b363:0x5b3,_0x333217:0x4c1,_0x3e79f4:0x3aa,_0xea19c5:0x4d8,_0x44cf97:0x477,_0x72306c:0x3c4,_0x5c7681:0x3bb,_0x4f5ef7:0x564,_0x29e378:0x3e6,_0x24f5cf:0x32f,_0x4e8259:0x449,_0x10cb78:0x3e4,_0x259799:0x325,_0x3b3e83:0x2ef,_0x42d4ae:0x373,_0x4b3d3a:0x3ec,_0x43133e:0x398,_0x5a5d50:0x2da,_0x502f0e:0x433,_0x4db574:0x31f,_0x337755:0x3c3,_0x2e0eed:0x500,_0x2bf115:0x427,_0xe455d7:0x320},_0x51a809={_0x12172f:0x37,_0x124d84:0x52d,_0x4a2fd2:0x187},_0x104cda={_0x23e39b:0x196},_0x1a261d={_0x224ba9:0x1ac,_0x5f34ef:0xb1,_0x27d5d3:0x164};if(!_0x3a0abe[_0xc7b8a0(_0x11e4f0._0x3dda2c,0xdd,_0x11e4f0._0x31bbbd,-0x113)]||_0x3a0abe[_0x500062(_0x11e4f0._0x442c06,_0x11e4f0._0x12ab83,_0x11e4f0._0x1a5e83,_0x11e4f0._0x478c06)][_0x500062(_0x11e4f0._0x1d3737,0x22e,0x2bb,0x83)]===0x0)throw new Error(_0x500062(_0x11e4f0._0x2b0224,_0x11e4f0._0x6f86f6,0x24e,0x21c));const _0x4b65aa=_0x3a0abe['name']??_0xc7b8a0(-_0x11e4f0._0x46f7bc,_0x11e4f0._0x3d29dc,0x62,-0x61);function _0xc7b8a0(_0x49e0c8,_0x4e1531,_0x1e6d27,_0x2fd258){return _0x357fd3(_0x49e0c8-_0x1a261d._0x224ba9,_0x4e1531-_0x1a261d._0x5f34ef,_0x1e6d27- -_0x1a261d._0x27d5d3,_0x4e1531);}function _0x500062(_0x242525,_0x88a95f,_0x4469b0,_0x5cdaec){return _0x357fd3(_0x242525-0x85,_0x88a95f-0x8,_0x242525-_0x104cda._0x23e39b,_0x5cdaec);}return defineTool({'name':_0x4b65aa,'description':'Search\x20the\x20web\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':_0x500062(_0x11e4f0._0x440d3c,_0x11e4f0._0x2280ba,_0x11e4f0._0x2b0224,_0x11e4f0._0x1dad33),'properties':{'description':{'type':_0xc7b8a0(-_0x11e4f0._0x4497ea,-_0x11e4f0._0x208ce0,-_0x11e4f0._0x351c5e,_0x11e4f0._0x472514)},'query':{'type':_0xc7b8a0(-0x198,-_0x11e4f0._0x462841,-0xcf,-_0x11e4f0._0x4df773)},'count':{'type':_0x500062(_0x11e4f0._0x1176a1,0x271,0x1aa,0x280)},'offset':{'type':_0xc7b8a0(-0x89,-_0x11e4f0._0x24e9a0,-_0x11e4f0._0x5477df,_0x11e4f0._0x321478)},'domains':{'type':_0x500062(_0x11e4f0._0x1d3054,_0x11e4f0._0x502d26,_0x11e4f0._0x47d66d,_0x11e4f0._0x42b688),'items':{'type':_0xc7b8a0(-_0x11e4f0._0x5a4518,-_0x11e4f0._0x224105,-_0x11e4f0._0x351c5e,0x5e)}},'recencyDays':{'type':'number'},'lang':{'type':_0xc7b8a0(_0x11e4f0._0x523cb4,-_0x11e4f0._0x450d3b,-_0x11e4f0._0x351c5e,-0x133)},'region':{'type':_0xc7b8a0(-_0x11e4f0._0x10a12a,0x0,-0xcf,-_0x11e4f0._0x438351)},'safe':{'type':_0x500062(_0x11e4f0._0x90edf2,_0x11e4f0._0xc4aa3b,_0x11e4f0._0x47537f,0x31c)},'type':{'type':_0x500062(_0x11e4f0._0x51fe55,0x157,0x2a9,_0x11e4f0._0x44da90)},'hydrateMeta':{'type':_0xc7b8a0(0xbd,-0x34,-_0x11e4f0._0x4fdc83,-_0x11e4f0._0x52199c)}},'required':['query']},async *'execute'(_0x51d827,_0x26ff06){const _0x3c83c2={_0x1ac1eb:0x68},_0x49573d={_0x3a3ca0:0x559,_0x12dcb4:0x4e8,_0x544c53:0x112,_0x332af5:0x146,_0x496ee6:0x302,_0x204c4f:0x261},_0x546cf9={_0x361e91:0x1e5,_0x5f2b4c:0x138},_0x589dd4={_0xb0d649:0xfd,_0x46afac:0xd6},_0x4873b3=_0x51d827[_0x156f75(_0x48c130._0x2c9b87,0x57c,_0x48c130._0x593d09,0x531)]['trim']();if(!_0x4873b3)throw new ToolExecutionError(_0x1acb22(_0x48c130._0x5f4b6b,0x421,_0x48c130._0x2a598e,_0x48c130._0x4eaa7f));const _0x506219={'query':_0x4873b3,'count':Math[_0x1acb22(0x16f,0x39e,_0x48c130._0x10c5d5,_0x48c130._0x2e7169)](0x1,Math['min'](0x32,Math[_0x1acb22(_0x48c130._0x5d954d,_0x48c130._0x97b77d,0x214,0x26c)](_0x51d827['count']??0xa))),'offset':Math[_0x156f75(0x4e1,0x45f,_0x48c130._0x510bf9,0x3a2)](0x0,Math[_0x1acb22(_0x48c130._0x838d6b,_0x48c130._0x10a504,_0x48c130._0x3292e8,0x26c)](_0x51d827[_0x1acb22(_0x48c130._0x1958df,_0x48c130._0x176e99,0x217,_0x48c130._0x4b5764)]??0x0)),'domains':_0x51d827['domains']??[],'recencyDays':Math[_0x156f75(_0x48c130._0x4add30,_0x48c130._0x31f381,_0x48c130._0x2f4126,0x3a2)](0x0,Math['trunc'](_0x51d827['recencyDays']??0x0)),'lang':_0x51d827[_0x156f75(_0x48c130._0x222a3c,_0x48c130._0x59f139,0x43f,_0x48c130._0x340a78)]??'en','region':_0x51d827[_0x1acb22(0x3b3,_0x48c130._0x12fde2,_0x48c130._0x38ff83,_0x48c130._0x513d4a)]??'','safe':_0x51d827['safe']??!![],'type':normalizeType(_0x51d827['type']),'hydrateMeta':_0x51d827['hydrateMeta']??![]};let _0x4dfae5=[];function _0x156f75(_0x45c895,_0x4ccd60,_0x64f4ba,_0x1cb416){return _0xc7b8a0(_0x45c895-_0x51a809._0x12172f,_0x64f4ba,_0x1cb416-_0x51a809._0x124d84,_0x1cb416-_0x51a809._0x4a2fd2);}let _0xae761f=_0x1acb22(_0x48c130._0x2ed3bf,0x310,_0x48c130._0x1a02cd,0x221);for(const _0x1330bc of _0x3a0abe[_0x1acb22(0x4ee,0x330,_0x48c130._0xa73d9,0x460)]){try{if(isGoogleCseEngine(_0x1330bc))_0x4dfae5=await searchGoogleCse(_0x1330bc,_0x506219,_0x26ff06[_0x156f75(0x2ff,0x334,_0x48c130._0x38be31,0x38f)]),_0xae761f='google-cse';else{if(isOllamaEngine(_0x1330bc)){const _0x38093b=await searchOllama(_0x1330bc,_0x506219,_0x26ff06['signal']);_0x4dfae5=_0x38093b['items'],_0xae761f=_0x38093b[_0x1acb22(_0x48c130._0x82d3,0x43f,_0x48c130._0x4778e5,0x348)];}else{if(isTavilyEngine(_0x1330bc)){const _0x2bb2f0=await searchTavily(_0x1330bc,_0x506219,_0x26ff06[_0x156f75(0x415,0x4c9,_0x48c130._0x5ce5de,_0x48c130._0x1393f8)]);_0x4dfae5=_0x2bb2f0[_0x156f75(0x3fa,_0x48c130._0x3deb60,0x316,0x318)],_0xae761f=_0x2bb2f0['engine'];}}}if(_0x4dfae5['length']>0x0)break;}catch(_0x5cca3b){if(_0x1330bc===_0x3a0abe[_0x1acb22(_0x48c130._0x5838d6,0x514,_0x48c130._0x30eba3,0x460)][_0x3a0abe['engines']['length']-0x1])throw _0x5cca3b;}}_0x506219[_0x1acb22(_0x48c130._0xf89add,_0x48c130._0x5cb773,0x16c,_0x48c130._0x430160)]&&_0x4dfae5[_0x1acb22(_0x48c130._0x25dc5e,0x273,_0x48c130._0x4d296b,0x2f4)]>0x0&&(_0x4dfae5=await hydrateResults(_0x4dfae5,_0x506219[_0x1acb22(_0x48c130._0x15b26e,0x52c,_0x48c130._0x355385,0x446)],_0x26ff06[_0x156f75(0x2e0,0x402,_0x48c130._0x451dba,_0x48c130._0x1393f8)]));const _0xc92cb8=new Set();_0x4dfae5=_0x4dfae5[_0x156f75(0x457,0x3ee,_0x48c130._0x5d9d0c,_0x48c130._0x3cb04b)](_0x1fa341=>{const _0x55f101=_0x1fa341[_0x14bd1b(0x403,0x4ed,_0x49573d._0x3a3ca0,_0x49573d._0x12dcb4)]['toLowerCase']();if(!_0x55f101||_0xc92cb8[_0xb2e731(0x1b,_0x49573d._0x544c53,_0x49573d._0x332af5,0xbe)](_0x55f101))return![];function _0xb2e731(_0x4d1879,_0x5b102b,_0x46046a,_0x30d2fe){return _0x1acb22(_0x4d1879-0x84,_0x5b102b-_0x589dd4._0xb0d649,_0x4d1879,_0x46046a- -_0x589dd4._0x46afac);}_0xc92cb8[_0xb2e731(0x2e6,_0x49573d._0x496ee6,0x2e4,_0x49573d._0x204c4f)](_0x55f101);function _0x14bd1b(_0x1082a4,_0x380bed,_0x59be64,_0x276d87){return _0x156f75(_0x1082a4-_0x546cf9._0x361e91,_0x380bed-_0x546cf9._0x5f2b4c,_0x59be64,_0x276d87-0x62);}return!![];}),_0x4dfae5=_0x4dfae5[_0x1acb22(_0x48c130._0x19192c,0x121,_0x48c130._0x567392,_0x48c130._0x18c901)]((_0x415f58,_0x43d180)=>({..._0x415f58,'source':{..._0x415f58[_0x156f75(0x5e1,0x430,0x4fb,0x4a4)],'rank':_0x43d180+0x1}}));const _0x3a3bf7={};if(_0x506219[_0x1acb22(0x2ab,0x204,0x15c,_0x48c130._0x17c623)]['length']>0x0)_0x3a3bf7['domains']=_0x506219[_0x1acb22(_0x48c130._0x33b746,0x1d1,0x3a7,_0x48c130._0x17c623)];if(_0x506219[_0x1acb22(0x270,0x2bf,_0x48c130._0x1e1941,0x3aa)]>0x0)_0x3a3bf7[_0x156f75(_0x48c130._0x33523a,0x48f,_0x48c130._0x40b363,0x49a)]=_0x506219[_0x1acb22(0x364,_0x48c130._0x333217,0x2fa,_0x48c130._0x3e79f4)];if(_0x506219['lang']!=='en')_0x3a3bf7['lang']=_0x506219[_0x1acb22(0x3e5,_0x48c130._0xea19c5,0x587,0x446)];if(_0x506219[_0x156f75(_0x48c130._0x44cf97,0x634,0x558,_0x48c130._0x5838d6)])_0x3a3bf7[_0x1acb22(_0x48c130._0x72306c,0x3f6,0x353,0x49a)]=_0x506219[_0x1acb22(_0x48c130._0x5c7681,0x5a9,_0x48c130._0x4f5ef7,0x49a)];function _0x1acb22(_0x338ca5,_0x2b5823,_0x20d3b8,_0x1e56aa){return _0x500062(_0x1e56aa-0x143,_0x2b5823-0x122,_0x20d3b8-_0x3c83c2._0x1ac1eb,_0x20d3b8);}return yield createToolOutput(formatResults(_0x4dfae5),{'engine':_0xae761f,'count':_0x4dfae5[_0x156f75(_0x48c130._0x29e378,_0x48c130._0x24f5cf,_0x48c130._0x4e8259,_0x48c130._0x10cb78)],'items':_0x4dfae5,'query':_0x506219['query'],...Object[_0x156f75(0x3dc,_0x48c130._0x259799,_0x48c130._0x3b3e83,0x351)](_0x3a3bf7)[_0x156f75(_0x48c130._0x42d4ae,_0x48c130._0x4b3d3a,_0x48c130._0x43133e,0x3e4)]>0x0?{'appliedFilters':_0x3a3bf7}:{},'offset':_0x506219[_0x156f75(0x3c6,_0x48c130._0x5a5d50,_0x48c130._0x502f0e,_0x48c130._0x4db574)],'totalRequested':_0x506219[_0x156f75(0x417,0x3cb,_0x48c130._0x337755,_0x48c130._0x2e0eed)],'hydrated':_0x506219[_0x156f75(0x368,_0x48c130._0x2bf115,0x361,_0x48c130._0xe455d7)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|
|
1
|
+
(function(_0x4b8e96,_0xfc5d47){const _0x107afd={_0x203e8c:0x10a,_0x1b7671:0x38,_0x31ee24:0xb5,_0x3fe866:0x407,_0x3642cc:0x1cf,_0x14976a:0x2e5,_0x2964de:0x24b,_0x345c94:0x11a,_0x1fb66a:0x200,_0x2b3950:0x7a,_0x270808:0x85,_0x113600:0x9f,_0x31633c:0x175,_0x397bb6:0x299,_0x55e832:0x1ce,_0x29ad9d:0x244,_0x2a21b4:0x357,_0x5c4c80:0x196},_0x175b85={_0xfd8c6e:0x1a},_0x1b8c11=_0x4b8e96();function _0x4d3637(_0x2c151e,_0x314349,_0x58ff45,_0x22c02c){return _0xa38c(_0x314349- -0x168,_0x22c02c);}function _0x5a437a(_0x3ff697,_0x1b8ba0,_0x536294,_0xeff67){return _0xa38c(_0xeff67-_0x175b85._0xfd8c6e,_0x536294);}while(!![]){try{const _0xe2be3=parseInt(_0x4d3637(-_0x107afd._0x203e8c,_0x107afd._0x1b7671,0x1,-_0x107afd._0x31ee24))/0x1+-parseInt(_0x5a437a(0x299,0x38f,0x376,0x323))/0x2*(-parseInt(_0x5a437a(0x1c9,_0x107afd._0x3fe866,0x18d,0x2d6))/0x3)+-parseInt(_0x5a437a(0x38d,_0x107afd._0x3642cc,_0x107afd._0x14976a,_0x107afd._0x2964de))/0x4+parseInt(_0x5a437a(0xc4,0xd1,_0x107afd._0x345c94,_0x107afd._0x1fb66a))/0x5+-parseInt(_0x5a437a(_0x107afd._0x2b3950,_0x107afd._0x270808,0x1a0,0xda))/0x6*(parseInt(_0x4d3637(-0x35,0xba,0x18c,0xab))/0x7)+parseInt(_0x4d3637(-0xaf,-0xa7,-_0x107afd._0x113600,-_0x107afd._0x31633c))/0x8*(parseInt(_0x4d3637(_0x107afd._0x397bb6,_0x107afd._0x55e832,_0x107afd._0x29ad9d,0xe3))/0x9)+-parseInt(_0x5a437a(0x1af,_0x107afd._0x2a21b4,0x38f,0x2e3))/0xa*(-parseInt(_0x5a437a(0x23c,0x205,0xb6,_0x107afd._0x5c4c80))/0xb);if(_0xe2be3===_0xfc5d47)break;else _0x1b8c11['push'](_0x1b8c11['shift']());}catch(_0x146e16){_0x1b8c11['push'](_0x1b8c11['shift']());}}}(_0x491c,0xecb92));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WJMBJOVF.js';import{getTextFromMessage}from'../chunk-SEP4YYY3.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x25cd58 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x37c1da(0x4d9,0x4bf,0x6c2,0x5b3),'.tsx':_0x37c1da(0x576,0x532,0x6f1,0x5a6),'.js':'javascript','.jsx':_0x38d42b(-0xa0,-0x2d,0x82,-0x11a),'.mjs':_0x38d42b(0xf8,0xf6,-0x40,0xa8),'.cjs':'javascript','.mts':_0x38d42b(0x29,0x168,0x239,0x2ac),'.cts':_0x38d42b(0x1fd,0x168,0x228,0x2a7),'.json':_0x38d42b(-0x2e,-0x54,-0xef,-0xb5),'.jsonc':_0x37c1da(0x592,0x40a,0x3f7,0x447)};function getLanguageId(_0x466d0b){const _0x1d9ddf={_0x35a8ad:0x1dd,_0x222664:0x239,_0x5de0e0:0x274,_0x17fc1a:0x22f,_0x590dac:0x1f7},_0x395ce7={_0x31dee7:0x1db};function _0x1bc153(_0x2b07d0,_0x351b49,_0x3a1d96,_0x2cf8b9){return _0x38d42b(_0x2b07d0-0xe,_0x351b49-0xf,_0x2b07d0,_0x2cf8b9-_0x395ce7._0x31dee7);}function _0x12193b(_0x303c3a,_0x4a3b92,_0x4dd119,_0x6ada92){return _0x38d42b(_0x303c3a-0x135,_0x6ada92-0x246,_0x4a3b92,_0x6ada92-0x107);}return EXTENSION_TO_LANGUAGE[_0x25cd58[_0x1bc153(_0x1d9ddf._0x35a8ad,0x1e1,0x2f6,_0x1d9ddf._0x222664)](_0x466d0b)[_0x1bc153(_0x1d9ddf._0x5de0e0,_0x1d9ddf._0x17fc1a,_0x1d9ddf._0x590dac,0x10d)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x1a8055){const _0x274edb={_0x291161:0x127},_0x1504fa={_0x328631:0x96};function _0x118cbc(_0x39a093,_0x2f130a,_0x2195a2,_0x2a6a9b){return _0x38d42b(_0x39a093-0xf8,_0x2f130a- -_0x1504fa._0x328631,_0x39a093,_0x2a6a9b-0x8c);}return pathToFileURL(_0x1a8055)[_0x118cbc(-0x40,-0x2c,-0x2b,-_0x274edb._0x291161)]();}function textDocumentPosition(_0x5591ac){const _0x34b760={_0x3aca57:0x45b,_0x4f3ae:0x435,_0x48bd0d:0xea,_0x1e18d2:0x226,_0x3be862:0x5a2},_0x85c6d8={_0x3a0770:0x74},_0x53803b={_0x559ec1:0x1b7};function _0x57259c(_0x23634c,_0xfb5b8,_0x5619c2,_0x259e62){return _0x38d42b(_0x23634c-0x10e,_0x23634c-0x46c,_0x5619c2,_0x259e62-_0x53803b._0x559ec1);}function _0x32fc75(_0x56abe8,_0x578d3a,_0x1c2cd5,_0x272291){return _0x38d42b(_0x56abe8-0x62,_0x1c2cd5-0x275,_0x578d3a,_0x272291-_0x85c6d8._0x3a0770);}return{'textDocument':{'uri':uriForPath(_0x5591ac[_0x32fc75(_0x34b760._0x3aca57,0x398,_0x34b760._0x4f3ae,0x4ae)])},'position':{'line':_0x5591ac[_0x32fc75(_0x34b760._0x48bd0d,0x2ac,_0x34b760._0x1e18d2,0xec)],'character':_0x5591ac[_0x57259c(0x5ac,0x558,0x4a0,_0x34b760._0x3be862)]}};}function normalizeLocations(_0x54dccf){const _0x206463={_0x160765:0x13},_0x21154e={_0x36f786:0x107,_0x1e4c97:0x139};function _0x182cf4(_0x4892fb,_0x48ad41,_0x3c0501,_0x4c611e){return _0x38d42b(_0x4892fb-0x110,_0x4892fb-_0x21154e._0x36f786,_0x4c611e,_0x4c611e-_0x21154e._0x1e4c97);}if(!_0x54dccf)return[];return Array[_0x182cf4(0x128,0x1f2,-0x19,_0x206463._0x160765)](_0x54dccf)?_0x54dccf:[_0x54dccf];}function _0xa38c(_0x204890,_0x5ab341){_0x204890=_0x204890-0xb2;const _0x491cc2=_0x491c();let _0xa38c90=_0x491cc2[_0x204890];if(_0xa38c['jVMZIT']===undefined){var _0xb5b7d8=function(_0x11c826){const _0x2327d0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x25cd58='',_0x3c534a='';for(let _0x46c487=0x0,_0x57f35d,_0x15962d,_0x291b91=0x0;_0x15962d=_0x11c826['charAt'](_0x291b91++);~_0x15962d&&(_0x57f35d=_0x46c487%0x4?_0x57f35d*0x40+_0x15962d:_0x15962d,_0x46c487++%0x4)?_0x25cd58+=String['fromCharCode'](0xff&_0x57f35d>>(-0x2*_0x46c487&0x6)):0x0){_0x15962d=_0x2327d0['indexOf'](_0x15962d);}for(let _0x46d8da=0x0,_0x3b0a63=_0x25cd58['length'];_0x46d8da<_0x3b0a63;_0x46d8da++){_0x3c534a+='%'+('00'+_0x25cd58['charCodeAt'](_0x46d8da)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c534a);};_0xa38c['YNTvgF']=_0xb5b7d8,_0xa38c['oFASgR']={},_0xa38c['jVMZIT']=!![];}const _0xa0a198=_0x491cc2[0x0],_0x2141ce=_0x204890+_0xa0a198,_0x1b7529=_0xa38c['oFASgR'][_0x2141ce];return!_0x1b7529?(_0xa38c90=_0xa38c['YNTvgF'](_0xa38c90),_0xa38c['oFASgR'][_0x2141ce]=_0xa38c90):_0xa38c90=_0x1b7529,_0xa38c90;}async function createLspClient(_0x20a7be){const _0x852b61={_0xa9508e:0x4c4,_0x2b7ecc:0x5b5,_0xe4550b:0x4b5,_0x4c7272:0x10a,_0x15903e:0x132,_0x3419cf:0x17e,_0x4a8ee0:0x363,_0x3f03e7:0x27a,_0xc67ac0:0x3e7,_0x12a87:0x565,_0x3bd28d:0x3dd,_0x23f2b5:0x458,_0x2da988:0x4c3,_0x2c5156:0x42c,_0x5ef0d0:0x2e1,_0x393c50:0x241,_0x23944b:0x28a,_0x4aed06:0x469,_0x10a176:0x557,_0x296c86:0xb7,_0x2cc436:0x3ae,_0x490592:0x28e,_0x5280de:0x495,_0x37fabf:0x31e,_0x2bd97b:0x1f1,_0x473890:0x238,_0x323ece:0x33d,_0x3f9158:0x3a2,_0x3ea25b:0x3d7,_0xafa57d:0x47b,_0x2830e9:0x3e3,_0x30ae03:0x3d8,_0x314154:0x42e,_0x4e09e8:0x71,_0x3d4281:0xa1},_0x368286={_0x51ef0a:0x25,_0x3e38ab:0xbd,_0x1120cf:0x40,_0x3d5f55:0x132,_0x351159:0x103,_0x2cc5f3:0x186,_0x3bcf48:0x1a2,_0x38df9a:0x29,_0x1f5541:0x77,_0x1788ff:0x3a},_0x534da8={_0x20027b:0x147},_0x5b9f5b={_0x84a490:0xe6,_0x520e9c:0x72},_0x134e57={_0x2ae599:0x3b6,_0x58dd15:0x5af,_0x46cfd1:0x4e1},_0x249f98={_0x39165b:0x54,_0x285701:0x140,_0x53f4d1:0x120,_0x46d091:0xb},_0x5bccb9={_0xef228a:0xe9},_0x2d7150={_0x4bf941:0x121,_0x50c765:0x23,_0x2e7a99:0x14a},_0x940cfe={_0x109fad:0xb4,_0xb9c1bf:0x19a,_0x3ff78d:0x29e,_0x10a59a:0x84},_0x1ba09b={_0x3316b2:0x15e,_0x4cfad5:0x1d6},_0x583015={_0x49ee59:0x51,_0xf473e6:0x2,_0x1a15b3:0x56,_0x5ea2d9:0x27},_0x5e7888={_0x50cbc7:0x110,_0x4297a1:0x28},_0x588ee2={_0x44da53:0x8,_0x46bfc5:0x15d},_0x126ded={_0x2d7755:0x1ab,_0x9b535d:0x13f},_0x3a641f={_0xfaebc6:0x124,_0x527f78:0xcf,_0x260a28:0x1b6,_0x55b1e7:0x1f8,_0x2e0cca:0x25b,_0x216e79:0x222},_0x1a7332={_0x3f5e35:0x1f0},_0x22c066={_0xd2ee59:0x373,_0x548d61:0x2ce,_0x2b0d04:0x22f,_0x5802bd:0x3ef,_0x12a142:0x55a,_0x46b235:0x435},_0x40cb5b={_0x129d41:0x294,_0x35a064:0x33a,_0xf3af42:0x1c4,_0x129d8c:0x50a,_0x3f23e5:0x4fd,_0x4029c5:0x5ac},_0x57b00b={_0xfbff19:0x3e6,_0x3f3b31:0x5be,_0x395efb:0x3d9,_0xe58292:0x4f0},_0xd12da4={_0x1f338d:0x49,_0xef5578:0x2b5},_0x1099a4={_0x249486:0xd4,_0x205587:0x5b,_0x48f83b:0xc4,_0x68ca7e:0xa4,_0x32f3fd:0x119,_0x29764f:0x37,_0x4c406a:0xb3},_0xc06fe0={_0x569853:0x180},_0x537687={_0x225b57:0x2c8},_0x46726f={_0x54ad31:0x42,_0x59079c:0x6e,_0x3a6e79:0x6b8,_0x531ff3:0x485,_0x2a61cf:0x57f,_0x4e0f46:0x616,_0x498956:0x678,_0x4b0d77:0x587},_0x374b2f={_0x54a5a5:0xa7,_0x487ca2:0x1f4,_0x54c415:0x1bb},_0x20c653={_0x364e88:0x701,_0x58f095:0x6ad,_0x489d02:0x567,_0x2b8599:0x781,_0x3bc771:0x62b,_0x37bad4:0x5b3,_0x3ba54f:0x63c,_0x47a560:0x6c7,_0x272c4e:0x732},_0x10e133={_0x44aa8f:0x126,_0x1cbc17:0x421,_0x5e8fb0:0xf0},_0xe372e={_0x376855:0x18a},_0x13db9f={_0x276786:0x4},_0xe381ef=_0x20a7be[_0x45a573(_0x852b61._0xa9508e,_0x852b61._0x2b7ecc,0x5ee,_0x852b61._0xe4550b)][_0xc335b2(_0x852b61._0x4c7272,_0x852b61._0x15903e,_0x852b61._0x3419cf,0xce)]['stdout'],_0x24fe17=_0x20a7be['handle'][_0x45a573(_0x852b61._0x4a8ee0,_0x852b61._0x3f03e7,0x2a2,_0x852b61._0xc67ac0)]['stdin'];if(!_0xe381ef||!_0x24fe17)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x2ab7ab=createMessageConnection(new StreamMessageReader(_0xe381ef),new StreamMessageWriter(_0x24fe17));function _0xc335b2(_0xfac399,_0x354387,_0x1c579c,_0x5b7759){return _0x37c1da(_0xfac399-0xbc,_0x354387-_0x13db9f._0x276786,_0x1c579c,_0x354387- -0x3ec);}const _0x4e9a0c=new Map(),_0x34e4fa=new Map();let _0x110af9=![];_0x2ab7ab[_0x45a573(0x4b1,_0x852b61._0x12a87,_0x852b61._0x3bd28d,_0x852b61._0x23f2b5)](_0x45a573(0x483,0x4e1,_0x852b61._0x2da988,0x341),_0xd91b6e=>{_0x4e9a0c[_0x5b58dd(0x622,0x5dc,_0x20c653._0x364e88,0x667)](_0xd91b6e[_0x5b58dd(_0x20c653._0x58f095,0x6a2,_0x20c653._0x489d02,_0x20c653._0x2b8599)],_0xd91b6e[_0xc6ff2e(_0x20c653._0x3bc771,0x575,0x5ed,0x557)]);const _0x1f64f3=_0x34e4fa['get'](_0xd91b6e[_0xc6ff2e(_0x20c653._0x37bad4,0x76b,_0x20c653._0x3ba54f,_0x20c653._0x47a560)]);function _0xc6ff2e(_0x488621,_0x26eaf6,_0x3405a3,_0x398821){return _0x45a573(_0x3405a3-_0xe372e._0x376855,_0x26eaf6-0x18e,_0x398821,_0x398821-0x161);}function _0x5b58dd(_0x442bd5,_0x1f1030,_0x22c6ce,_0xe05923){return _0xc335b2(_0x442bd5-_0x10e133._0x44aa8f,_0x1f1030-_0x10e133._0x1cbc17,_0x22c6ce,_0xe05923-_0x10e133._0x5e8fb0);}if(!_0x1f64f3)return;_0x34e4fa[_0x5b58dd(0x6bd,0x658,_0x20c653._0x272c4e,0x50c)](_0xd91b6e['uri']);for(const _0x59cf6a of _0x1f64f3)_0x59cf6a();}),_0x2ab7ab[_0x45a573(0x357,_0x852b61._0x2c5156,_0x852b61._0x5ef0d0,0x20d)]();const _0x28be05=await _0x2ab7ab[_0x45a573(0x32b,0x22b,_0x852b61._0x393c50,_0x852b61._0x23944b)](_0x45a573(_0x852b61._0x4aed06,0x4c5,0x3d7,_0x852b61._0x10a176),{'processId':process['pid'],'rootUri':uriForPath(_0x20a7be[_0xc335b2(0x150,0x17d,_0x852b61._0x296c86,0x161)]),'workspaceFolders':[{'uri':uriForPath(_0x20a7be[_0x45a573(_0x852b61._0x2cc436,_0x852b61._0x490592,0x368,0x4f3)]),'name':_0x20a7be['server']['id']}],'initializationOptions':_0x20a7be['handle'][_0x45a573(0x385,0x3a6,_0x852b61._0x5280de,0x336)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x45a573(_0x852b61._0x37fabf,_0x852b61._0x2bd97b,_0x852b61._0x473890,0x36f),'plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});function _0x45a573(_0x2496e9,_0x529247,_0x1e8b2b,_0x5c3f2c){return _0x37c1da(_0x2496e9-_0x374b2f._0x54a5a5,_0x529247-_0x374b2f._0x487ca2,_0x1e8b2b,_0x2496e9- -_0x374b2f._0x54c415);}_0x2ab7ab[_0x45a573(_0x852b61._0x323ece,_0x852b61._0x3f9158,_0x852b61._0x3ea25b,_0x852b61._0xafa57d)](_0x45a573(_0x852b61._0x2830e9,0x4ae,_0x852b61._0x30ae03,_0x852b61._0x314154),{});const _0x1bdec6={'serverId':_0x20a7be['server']['id'],'root':_0x20a7be['root'],'connection':_0x2ab7ab,'diagnostics':_0x4e9a0c,'capabilities':_0x28be05[_0xc335b2(-_0x852b61._0x4e09e8,0x5d,-_0x852b61._0x3d4281,-0x27)]??{},'notify':{async 'open'({path:_0x57948c}){const _0x1c914c={_0x6413f1:0x432,_0x5db9bf:0x70,_0x4df14d:0x1c3},_0x32ea6a={_0x2c9d99:0x153};function _0x5f115c(_0x46def1,_0x2b4ca1,_0x409316,_0xef3928){return _0xc335b2(_0x46def1-0x66,_0xef3928-0x473,_0x409316,_0xef3928-_0x32ea6a._0x2c9d99);}const _0x22ebb7=await readFile(_0x57948c,_0x29a8b7(0x105,-_0x46726f._0x54ad31,_0x46726f._0x59079c,-0x1));function _0x29a8b7(_0x4b98d5,_0x3de891,_0x1f714f,_0x19ace3){return _0x45a573(_0x3de891- -_0x1c914c._0x6413f1,_0x3de891-_0x1c914c._0x5db9bf,_0x1f714f,_0x19ace3-_0x1c914c._0x4df14d);}_0x2ab7ab[_0x5f115c(0x69e,_0x46726f._0x3a6e79,_0x46726f._0x531ff3,_0x46726f._0x2a61cf)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x57948c),'languageId':getLanguageId(_0x57948c)??_0x5f115c(_0x46726f._0x4e0f46,_0x46726f._0x498956,0x5ab,_0x46726f._0x4b0d77),'version':0x1,'text':_0x22ebb7}});},async 'change'({path:_0x308f2f,version:_0x256b8a}){function _0x1b3a41(_0x31ddbb,_0x3d5d21,_0xb85cc4,_0x5e9473){return _0xc335b2(_0x31ddbb-0xb5,_0x31ddbb- -_0x537687._0x225b57,_0x5e9473,_0x5e9473-0x5a);}function _0x519962(_0xd7ffc3,_0x28c845,_0xbb6eb1,_0x5171d6){return _0xc335b2(_0xd7ffc3-_0xc06fe0._0x569853,_0xd7ffc3- -0xeb,_0xbb6eb1,_0x5171d6-0x17f);}const _0x4c4693=await readFile(_0x308f2f,_0x519962(_0x1099a4._0x249486,-_0x1099a4._0x205587,0x86,_0x1099a4._0x48f83b));_0x2ab7ab['sendNotification'](_0x519962(_0x1099a4._0x68ca7e,_0x1099a4._0x32f3fd,-_0x1099a4._0x29764f,_0x1099a4._0x4c406a),{'textDocument':{'uri':uriForPath(_0x308f2f),'version':_0x256b8a},'contentChanges':[{'text':_0x4c4693}]});},async 'close'({path:_0xcc7a4c}){const _0x5cd399={_0x3841cd:0xab};function _0x11bcbb(_0x37c2b9,_0x2005a7,_0x33ed92,_0x2d30c9){return _0xc335b2(_0x37c2b9-0x3c,_0x2d30c9-0x3f4,_0x33ed92,_0x2d30c9-_0x5cd399._0x3841cd);}function _0x3ae8df(_0x7dce82,_0xbc07ac,_0x24a175,_0x5b2648){return _0xc335b2(_0x7dce82-_0xd12da4._0x1f338d,_0x5b2648-_0xd12da4._0xef5578,_0xbc07ac,_0x5b2648-0x7c);}_0x2ab7ab[_0x11bcbb(_0x57b00b._0xfbff19,0x5a5,0x41b,0x500)](_0x3ae8df(0x47e,_0x57b00b._0x3f3b31,_0x57b00b._0x395efb,_0x57b00b._0xe58292),{'textDocument':{'uri':uriForPath(_0xcc7a4c)}});}},'request':{async 'definition'(_0x379fb5){const _0x331741={_0x4118b2:0x97,_0x1f5f28:0x15e};function _0x5d77c6(_0x15b127,_0x14dba5,_0x33ae76,_0x5679db){return _0xc335b2(_0x15b127-0x11b,_0x14dba5-0x46c,_0x5679db,_0x5679db-0x1a4);}function _0x3a8d6e(_0x2be169,_0x1f7f5b,_0x11e8da,_0x4deb01){return _0x45a573(_0x2be169- -_0x331741._0x4118b2,_0x1f7f5b-_0x331741._0x1f5f28,_0x4deb01,_0x4deb01-0x17);}return normalizeLocations(await _0x2ab7ab[_0x3a8d6e(_0x40cb5b._0x129d41,_0x40cb5b._0x35a064,_0x40cb5b._0xf3af42,0x38e)](_0x5d77c6(_0x40cb5b._0x129d8c,_0x40cb5b._0x3f23e5,0x4a1,_0x40cb5b._0x4029c5),textDocumentPosition(_0x379fb5)));},async 'references'(_0x160343){return normalizeLocations(await _0x2ab7ab['sendRequest']('textDocument/references',{...textDocumentPosition(_0x160343),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x10ec95){const _0x4e561c={_0x228e3a:0x1e1,_0x1b169d:0x56};function _0x871377(_0x2a821b,_0x2b336a,_0x173386,_0x86e6de){return _0x45a573(_0x2b336a- -0x5d,_0x2b336a-0x60,_0x86e6de,_0x86e6de-0x73);}function _0x47774(_0x228cce,_0x4334d7,_0x573804,_0x327937){return _0xc335b2(_0x228cce-_0x4e561c._0x228e3a,_0x327937-_0x4e561c._0x1b169d,_0x4334d7,_0x327937-0x1c0);}return await _0x2ab7ab[_0x871377(_0x22c066._0xd2ee59,_0x22c066._0x548d61,0x3cc,_0x22c066._0x2b0d04)](_0x871377(_0x22c066._0x5802bd,0x473,_0x22c066._0x12a142,_0x22c066._0x46b235),textDocumentPosition(_0x10ec95))??null;},async 'documentSymbol'(_0x27268a){const _0x44c384={_0x49b779:0x25c};function _0x20dc86(_0x3991b3,_0x5c3c37,_0x5daf05,_0x2e8e7b){return _0x45a573(_0x2e8e7b- -0x70,_0x5c3c37-_0x1a7332._0x3f5e35,_0x5c3c37,_0x2e8e7b-0xad);}function _0x2a6e4d(_0x27a46d,_0xd65b9,_0x33d02c,_0x31835a){return _0x45a573(_0xd65b9- -_0x44c384._0x49b779,_0xd65b9-0x160,_0x27a46d,_0x31835a-0xa4);}return await _0x2ab7ab[_0x2a6e4d(_0x3a641f._0xfaebc6,_0x3a641f._0x527f78,_0x3a641f._0x260a28,_0x3a641f._0x55b1e7)](_0x20dc86(_0x3a641f._0x2e0cca,0x138,_0x3a641f._0x216e79,0x1e5),{'textDocument':{'uri':uriForPath(_0x27268a)}})??[];},async 'workspaceSymbol'(_0x421840){function _0x44ee14(_0x34c8ab,_0x55c6c6,_0x220f06,_0xe54ca3){return _0xc335b2(_0x34c8ab-_0x126ded._0x2d7755,_0x55c6c6-0x43,_0xe54ca3,_0xe54ca3-_0x126ded._0x9b535d);}return await _0x2ab7ab['sendRequest'](_0x44ee14(_0x588ee2._0x44da53,0xbd,_0x588ee2._0x46bfc5,0x17b),{'query':_0x421840})??[];},async 'implementation'(_0x4504f6){function _0x1f1b28(_0x80fefe,_0x438353,_0x28bf4b,_0x27ada1){return _0x45a573(_0x28bf4b- -0x381,_0x438353-_0x5e7888._0x50cbc7,_0x80fefe,_0x27ada1-_0x5e7888._0x4297a1);}return normalizeLocations(await _0x2ab7ab[_0x1f1b28(-_0x583015._0x49ee59,_0x583015._0xf473e6,-_0x583015._0x1a15b3,-_0x583015._0x5ea2d9)]('textDocument/implementation',textDocumentPosition(_0x4504f6)));},async 'prepareCallHierarchy'(_0x55750c){const _0x9fd748={_0x4f12bb:0xc3};function _0x355e57(_0x4d96e1,_0x50caa0,_0x4c3229,_0x58e47e){return _0x45a573(_0x50caa0- -0x4c5,_0x50caa0-_0x9fd748._0x4f12bb,_0x4d96e1,_0x58e47e-0x1a);}function _0x5c8b39(_0x5b3678,_0x403aaa,_0x3cf216,_0x4df2a0){return _0x45a573(_0x3cf216-_0x1ba09b._0x3316b2,_0x403aaa-0xb1,_0x403aaa,_0x4df2a0-_0x1ba09b._0x4cfad5);}return await _0x2ab7ab[_0x355e57(-_0x940cfe._0x109fad,-_0x940cfe._0xb9c1bf,-_0x940cfe._0x3ff78d,-0x22c)](_0x355e57(0xac,-0x3a,_0x940cfe._0x10a59a,-0x51),textDocumentPosition(_0x55750c))??[];},async 'incomingCalls'(_0x4188d4){const _0x57a2b6={_0x45a49a:0xf8},_0x156a20={_0x1b1560:0x186};function _0x37c9da(_0x1c9f02,_0x2a634e,_0x366da6,_0xcf490b){return _0xc335b2(_0x1c9f02-_0x156a20._0x1b1560,_0x2a634e-0x2f7,_0x366da6,_0xcf490b-0xb5);}function _0x30ed21(_0x2b9ae3,_0x2452e3,_0x5c68d6,_0x2bdd98){return _0xc335b2(_0x2b9ae3-0x15e,_0x5c68d6- -_0x57a2b6._0x45a49a,_0x2b9ae3,_0x2bdd98-0x117);}return await _0x2ab7ab[_0x30ed21(0xe0,-_0x2d7150._0x4bf941,0x2,-0xf)](_0x30ed21(-0x83,_0x2d7150._0x50c765,0x18,_0x2d7150._0x2e7a99),{'item':_0x4188d4})??[];},async 'outgoingCalls'(_0x59d240){return await _0x2ab7ab['sendRequest']('callHierarchy/outgoingCalls',{'item':_0x59d240})??[];}},'waitForDiagnostics'({path:_0x5d49c0,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x1957bf={_0xa5510a:0x1c5,_0x4807eb:0x176,_0x2d24e4:0x284};function _0x54138d(_0x171b2d,_0x41b579,_0x5f5afa,_0x15a3f3){return _0x45a573(_0x15a3f3-0x14e,_0x41b579-0x14,_0x5f5afa,_0x15a3f3-_0x5bccb9._0xef228a);}const _0x26a9cc=uriForPath(_0x5d49c0);if(_0x4e9a0c['has'](_0x26a9cc))return Promise[_0x54138d(_0x134e57._0x2ae599,_0x134e57._0x58dd15,0x3d4,_0x134e57._0x46cfd1)]();return new Promise(_0x13f344=>{const _0xb3b55b={_0x284f5d:0x190,_0x5a0591:0x52f},_0x1808ff={_0x4cc726:0x19e,_0x594157:0x19a,_0x35029d:0x3f4,_0x916d20:0x40d,_0x55c036:0x45e},_0x51ce88=setTimeout(()=>{const _0x450977={_0x569738:0xc2},_0x53c593=_0x34e4fa[_0xbbea9d(-0x114,-_0x1808ff._0x4cc726,-0xf9,-_0x1808ff._0x594157)](_0x26a9cc);function _0xbbea9d(_0xe8ee1d,_0x466f82,_0x320606,_0x83b60c){return _0xa38c(_0xe8ee1d- -0x317,_0x320606);}function _0x4069a0(_0x5967ea,_0x17d744,_0x46c66c,_0x4f5355){return _0xa38c(_0x46c66c-_0x450977._0x569738,_0x17d744);}_0x53c593?.['delete'](_0x26f948);if(_0x53c593?.['size']===0x0)_0x34e4fa[_0x4069a0(_0x1808ff._0x35029d,_0x1808ff._0x916d20,0x3a0,_0x1808ff._0x55c036)](_0x26a9cc);_0x13f344();},timeoutMs);function _0x539635(_0x1d8f7d,_0x2daff0,_0x672b4a,_0x2cf77f){return _0x54138d(_0x1d8f7d-_0x1957bf._0xa5510a,_0x2daff0-_0x1957bf._0x4807eb,_0x2cf77f,_0x2daff0- -_0x1957bf._0x2d24e4);}const _0x26f948=()=>{clearTimeout(_0x51ce88),_0x13f344();},_0x253fbc=_0x34e4fa[_0x59a20d(0x4c,-0x118,0x98,-_0x249f98._0x39165b)](_0x26a9cc)??new Set();_0x253fbc[_0x59a20d(-0xac,-0xb2,-_0x249f98._0x285701,-0x9b)](_0x26f948);function _0x59a20d(_0x27c285,_0x5539c2,_0x3733ba,_0x3a847c){return _0x54138d(_0x27c285-0x1b0,_0x5539c2-_0xb3b55b._0x284f5d,_0x27c285,_0x3a847c- -_0xb3b55b._0x5a0591);}_0x34e4fa[_0x59a20d(0xe5,-0x12c,-_0x249f98._0x53f4d1,_0x249f98._0x46d091)](_0x26a9cc,_0x253fbc);});},async 'shutdown'(){function _0x5e99cd(_0x4c7e1a,_0x45e5cf,_0x2efa2a,_0x380870){return _0x45a573(_0x45e5cf-_0x5b9f5b._0x84a490,_0x45e5cf-_0x5b9f5b._0x520e9c,_0x4c7e1a,_0x380870-0xc9);}function _0x2c33ca(_0x586667,_0x40fd4b,_0x3d8579,_0x1d14dc){return _0xc335b2(_0x586667-_0x534da8._0x20027b,_0x40fd4b- -0x5,_0x586667,_0x1d14dc-0x5b);}if(_0x110af9)return;_0x110af9=!![];try{await _0x2ab7ab[_0x5e99cd(0x50c,0x411,0x32e,0x3ad)](_0x2c33ca(-0x3b,_0x368286._0x51ef0a,-_0x368286._0x3e38ab,_0x368286._0x1120cf),null),_0x2ab7ab[_0x2c33ca(0xb,0x107,_0x368286._0x3d5f55,_0x368286._0x351159)](_0x2c33ca(0x10d,_0x368286._0x2cc5f3,0x219,_0x368286._0x3bcf48));}catch{}finally{_0x2ab7ab[_0x2c33ca(-0x7,0x3f,-0xf7,-0xed)](),_0x20a7be['handle'][_0x2c33ca(_0x368286._0x38df9a,0x12d,_0x368286._0x1f5541,_0x368286._0x1788ff)]['kill']();}}};return _0x1bdec6;}import{spawn as _0x3c534a}from'child_process';import{access as _0x46c487}from'fs/promises';import _0x57f35d from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x15962d from'os';import _0x291b91 from'path';import _0x46d8da from'which';var installPromises=new Map();function sanitizePackageName(_0x17dc85){const _0xc86dd9={_0x88cfb:0xfb,_0x544a1c:0x4e,_0x36db4b:0xb,_0x317cf8:0xc3,_0x11c470:0x74},_0x687b58={_0x39e0b9:0x52,_0x279e60:0x37},_0x2ef6e6={_0x4a0be8:0x1d9};function _0x4d0f4b(_0x562169,_0x3f7075,_0xdbc32f,_0x355940){return _0x37c1da(_0x562169-_0x2ef6e6._0x4a0be8,_0x3f7075-0x15a,_0x3f7075,_0x562169- -0x328);}function _0x516f63(_0x22f5a9,_0x3fccfb,_0x1b478a,_0x40dc9d){return _0x38d42b(_0x22f5a9-0x1b4,_0x1b478a-_0x687b58._0x39e0b9,_0x3fccfb,_0x40dc9d-_0x687b58._0x279e60);}return _0x17dc85[_0x4d0f4b(_0xc86dd9._0x88cfb,_0xc86dd9._0x544a1c,0x1eb,-_0xc86dd9._0x36db4b)](/^@/,'')[_0x4d0f4b(_0xc86dd9._0x88cfb,_0xc86dd9._0x317cf8,_0xc86dd9._0x11c470,0x12c)](/[/]/g,'__');}function binaryNameForPlatform(_0x1fb9c0){const _0x26589c={_0x127a29:0x2f2,_0x1ceb39:0x1ef,_0x4fb8a5:0x325},_0x515e68={_0x53d898:0x51},_0xc823f7={_0x1c0895:0x68,_0x5e599a:0x14a,_0x19f5cb:0xec};function _0x685144(_0x1a735a,_0x5123fa,_0x13fedb,_0x222693){return _0x38d42b(_0x1a735a-_0xc823f7._0x1c0895,_0x1a735a- -_0xc823f7._0x5e599a,_0x13fedb,_0x222693-_0xc823f7._0x19f5cb);}function _0x145e4b(_0x5b648e,_0x2973fc,_0x9cb7d2,_0x3624b1){return _0x38d42b(_0x5b648e-0x1e9,_0x9cb7d2-_0x515e68._0x53d898,_0x3624b1,_0x3624b1-0x1be);}return process['platform']===_0x145e4b(_0x26589c._0x127a29,0x296,_0x26589c._0x1ceb39,_0x26589c._0x4fb8a5)?_0x1fb9c0+_0x685144(0x9b,0x34,0x1cd,0x94):_0x1fb9c0;}async function exists(_0x521baa){try{return await access(_0x521baa),!![];}catch{return![];}}function runNpmInstall(_0x52ac0d,_0x408171,_0x25c049){const _0x14f8b0={_0x2f1a5c:0x2d3,_0x3829a2:0x9b,_0x5ce232:0xec,_0x3368fe:0x4f3,_0x4b179a:0x1f1,_0x51339c:0x1ba,_0x434dcd:0x242,_0xa22c26:0x432,_0x36919d:0x1f8,_0x5b0b1e:0x185};return new Promise(_0x214a74=>{const _0x43fb1a={_0x256bd0:0x12};function _0x21ee09(_0x5eabb1,_0x4f6bcc,_0x560dcf,_0x55a8b4){return _0xa38c(_0x4f6bcc-0x79,_0x5eabb1);}function _0x32b157(_0x495d34,_0x54bcc4,_0x2275f3,_0xe1360c){return _0xa38c(_0x495d34-_0x43fb1a._0x256bd0,_0x2275f3);}const _0x2fa9a9=spawn(_0x21ee09(_0x14f8b0._0x2f1a5c,0x199,_0x14f8b0._0x3829a2,_0x14f8b0._0x5ce232),[_0x21ee09(0x288,0x3c4,0x32d,_0x14f8b0._0x3368fe),_0x32b157(_0x14f8b0._0x4b179a,_0x14f8b0._0x51339c,0x1b2,0x1b0),_0x52ac0d,_0x408171],{'env':_0x25c049,'stdio':_0x32b157(0x199,0x262,0x12d,_0x14f8b0._0x434dcd)});_0x2fa9a9['on'](_0x32b157(0x30c,0x3f2,_0x14f8b0._0xa22c26,0x31d),()=>_0x214a74(![])),_0x2fa9a9['on'](_0x21ee09(0x1d0,_0x14f8b0._0x36919d,0x29a,_0x14f8b0._0x5b0b1e),_0x1232d3=>_0x214a74(_0x1232d3===0x0));});}function _0x37c1da(_0x3f9a10,_0x2c6b7c,_0x50484c,_0x4a1c58){const _0x389cea={_0x5c7efd:0x345};return _0xa38c(_0x4a1c58-_0x389cea._0x5c7efd,_0x50484c);}function shouldDisableLspDownload(_0x85a82c=process[_0x37c1da(0x4ac,0x462,0x5c6,0x4fd)]){const _0x50e334={_0x5add93:0x189,_0x7cc4d3:0xd2,_0x15eba0:0x225,_0x24aa70:0x18e,_0x12e439:0x1c1,_0xdcb6cb:0x1d3,_0x46a2d1:0x107,_0x108696:0x655,_0x1a5266:0x469,_0x52fd27:0x570,_0x4ab98e:0x54d},_0x34756a={_0x35f5ed:0x131,_0x4262ab:0x78};function _0x4def45(_0x567aa6,_0x33768d,_0x2b57b7,_0x30a70b){return _0x38d42b(_0x567aa6-0x174,_0x30a70b-0x399,_0x33768d,_0x30a70b-0x108);}const _0x503de5=_0x85a82c[_0x137bfe(_0x50e334._0x5add93,_0x50e334._0x7cc4d3,_0x50e334._0x15eba0,_0x50e334._0x24aa70)]?.[_0x137bfe(_0x50e334._0x12e439,_0x50e334._0xdcb6cb,0x1bb,_0x50e334._0x46a2d1)]();function _0x137bfe(_0x5e9f65,_0x29685d,_0xd1db70,_0x8d2ffe){return _0x37c1da(_0x5e9f65-_0x34756a._0x35f5ed,_0x29685d-_0x34756a._0x4262ab,_0x8d2ffe,_0x5e9f65- -0x4aa);}return _0x503de5===_0x4def45(_0x50e334._0x108696,_0x50e334._0x1a5266,_0x50e334._0x52fd27,_0x50e334._0x4ab98e)||_0x503de5==='1'||_0x503de5==='yes'||_0x503de5==='on';}function getLspPackageDir(_0x2c61a7){const _0x37b9e6={_0x7f70cd:0x2d4,_0x106d4c:0x1f2,_0x4ff3d8:0x1b7,_0x312e92:0x1aa,_0x36c3b6:0x5f,_0x35042e:0x128,_0x2d7e8d:0x119},_0x19ea55={_0x88eafd:0xc4,_0x21468a:0x1c8},_0x39fa1d={_0x4fd1d7:0x138,_0x5a0fb7:0xbc};function _0xffee4b(_0x3a2d68,_0x5aff7b,_0x42168f,_0x201ca0){return _0x37c1da(_0x3a2d68-_0x39fa1d._0x4fd1d7,_0x5aff7b-_0x39fa1d._0x5a0fb7,_0x201ca0,_0x5aff7b- -0x442);}function _0xe750fd(_0x91441e,_0xdd1bdc,_0x3c2728,_0x2e8c4e){return _0x38d42b(_0x91441e-0x143,_0x2e8c4e-_0x19ea55._0x88eafd,_0x3c2728,_0x2e8c4e-_0x19ea55._0x21468a);}return _0x291b91[_0xffee4b(_0x37b9e6._0x7f70cd,_0x37b9e6._0x106d4c,_0x37b9e6._0x4ff3d8,_0x37b9e6._0x312e92)](_0x15962d['homedir'](),_0xffee4b(-_0x37b9e6._0x36c3b6,-0x16,-0x141,-0xb8),_0xffee4b(_0x37b9e6._0x35042e,_0x37b9e6._0x2d7e8d,0x1b5,0xed),'packages',sanitizePackageName(_0x2c61a7));}function getLspBinDir(_0x29c3ad){const _0x236597={_0x5ad42f:0x2f0,_0x4772d6:0x283,_0x1ba7a9:0x20f,_0x2ec404:0x3bd,_0x159b26:0x21d,_0x2d4b69:0x16f},_0x4d2737={_0x317b82:0xb1,_0xa0d7e4:0x163};function _0x31459b(_0x1fc9b0,_0x11f9f7,_0x38634c,_0x2bf5a7){return _0x37c1da(_0x1fc9b0-0xc4,_0x11f9f7-0x17a,_0x1fc9b0,_0x11f9f7- -0x2fb);}function _0x3201e7(_0x5b488e,_0xd96623,_0x50e500,_0xb00bd){return _0x38d42b(_0x5b488e-_0x4d2737._0x317b82,_0xb00bd-0xc8,_0x50e500,_0xb00bd-_0x4d2737._0xa0d7e4);}return _0x291b91['join'](getLspPackageDir(_0x29c3ad),_0x31459b(_0x236597._0x5ad42f,_0x236597._0x4772d6,_0x236597._0x1ba7a9,_0x236597._0x2ec404),_0x3201e7(0x295,_0x236597._0x159b26,_0x236597._0x2d4b69,0x152));}async function findPackageBinary(_0x2c3037,_0x5890d8){const _0x294674={_0x102e67:0x3bb,_0x4b8e0e:0x46e,_0x4e027c:0x2ad,_0x4503d3:0x1f0,_0x4d5730:0x13c,_0x373d0d:0x4f},_0x101840={_0x344001:0x38e},_0x4ede9a={_0x5e868a:0x126};function _0x249740(_0x5d67ac,_0x3f019d,_0x282c12,_0x57c2f8){return _0x37c1da(_0x5d67ac-0x106,_0x3f019d-_0x4ede9a._0x5e868a,_0x5d67ac,_0x3f019d- -0x193);}let _0x10bdf6=_0x291b91[_0x249740(_0x294674._0x102e67,0x3bb,_0x294674._0x4b8e0e,0x2dd)](_0x5890d8);function _0x415910(_0x48f2ad,_0x2ac205,_0x310e16,_0x178431){return _0x37c1da(_0x48f2ad-0x145,_0x2ac205-0xb,_0x2ac205,_0x48f2ad- -_0x101840._0x344001);}const _0x37369f=binaryNameForPlatform(_0x2c3037);while(!![]){const _0x265fb8=_0x291b91[_0x415910(0x2a6,0x3b4,_0x294674._0x4e027c,0x228)](_0x10bdf6,_0x415910(_0x294674._0x4503d3,0xdb,0x1f0,0x269),'.bin',_0x37369f);if(await exists(_0x265fb8))return _0x265fb8;const _0x1e730e=_0x291b91[_0x415910(_0x294674._0x4d5730,0xd3,0x99,_0x294674._0x373d0d)](_0x10bdf6);if(_0x1e730e===_0x10bdf6)return void 0x0;_0x10bdf6=_0x1e730e;}}async function findPathBinary(_0x17bf0f,_0x353fe2){const _0x5e890f={_0x194905:0x2a7,_0x22d064:0x311,_0x1c6cde:0x3a9,_0x1ecb49:0x3b8,_0x2d2e26:0x341,_0x47b5e1:0x322,_0x50df11:0x236},_0xeee885={_0x239d0b:0x200,_0x268e36:0x23},_0x18fc46={_0x167471:0x283},_0x524247=getLspBinDir(_0x353fe2);function _0x34a890(_0x390059,_0x59d2ba,_0x3e9505,_0x2025b8){return _0x38d42b(_0x390059-0x13,_0x390059-_0x18fc46._0x167471,_0x3e9505,_0x2025b8-0x180);}const _0x20c251=[_0x524247,process['env']['PATH']][_0x34a890(_0x5e890f._0x194905,0x2ff,_0x5e890f._0x22d064,_0x5e890f._0x1c6cde)](Boolean)[_0x34a890(0x46c,_0x5e890f._0x1ecb49,_0x5e890f._0x2d2e26,0x54d)](_0x291b91[_0x34a890(_0x5e890f._0x47b5e1,_0x5e890f._0x50df11,0x309,0x2f2)]);function _0x4a01d1(_0x580c5f,_0x4db671,_0x3c83ef,_0x16fc63){return _0x38d42b(_0x580c5f-0x194,_0x16fc63-_0xeee885._0x239d0b,_0x580c5f,_0x16fc63-_0xeee885._0x268e36);}try{return await _0x46d8da(_0x17bf0f,{'path':_0x20c251});}catch{return void 0x0;}}async function resolvePackageBinary(_0x3340a3){const _0x5a3db7={_0x58c24e:0x155,_0x260358:0xe9,_0x215b9b:0x70,_0x2a2bc6:0x23c,_0xb8975c:0x219,_0x335aa6:0x82,_0x5b2ef2:0x76,_0x5b3b3b:0x139,_0x1ae7b2:0x33},_0xdab61e={_0x1ad111:0x295,_0x48b820:0x1ef,_0x171b7b:0x140},_0x51eb47={_0x5f471f:0x1a4},_0x4e4047={_0x48d96f:0xa5,_0x38b294:0x98,_0x4595a7:0x551},_0x11516e={_0x3869ef:0xa1,_0x540e53:0x57b},_0x431a27=_0x3340a3[_0xcf032c(-0x80,-0xc2,-_0x5a3db7._0x58c24e,-_0x5a3db7._0x260358)]??_0x3340a3['packageName'],_0x406a73=await findPackageBinary(_0x431a27,_0x3340a3[_0x24ebec(0x7a,-0x79,_0x5a3db7._0x215b9b,0x173)]);if(_0x406a73)return _0x406a73;const _0x2fb9dd=await findPathBinary(_0x431a27,_0x3340a3[_0xcf032c(0x10f,_0x5a3db7._0x2a2bc6,0x34,_0x5a3db7._0xb8975c)]);if(_0x2fb9dd)return _0x2fb9dd;const _0x450250=_0x3340a3['env']??process[_0x24ebec(0xea,_0x5a3db7._0x335aa6,-0x54,-_0x5a3db7._0x5b2ef2)];if(shouldDisableLspDownload(_0x450250))return void 0x0;function _0xcf032c(_0x449d22,_0x1ab6f1,_0x4472bb,_0x5e86ea){return _0x37c1da(_0x449d22-0x60,_0x1ab6f1-_0x11516e._0x3869ef,_0x4472bb,_0x449d22- -_0x11516e._0x540e53);}function _0x24ebec(_0x5b75bf,_0x242e40,_0x7353b8,_0x236e0b){return _0x37c1da(_0x5b75bf-_0x4e4047._0x48d96f,_0x242e40-_0x4e4047._0x38b294,_0x5b75bf,_0x7353b8- -_0x4e4047._0x4595a7);}const _0x34c719=getLspPackageDir(_0x3340a3[_0x24ebec(0xf4,0xfb,_0x5a3db7._0x5b3b3b,0x44)]),_0x36aba9=_0x3340a3['packageName']+':'+_0x431a27;let _0x46c754=installPromises[_0xcf032c(-_0x5a3db7._0x1ae7b2,0xbf,-0xe9,0x1a)](_0x36aba9);!_0x46c754&&(_0x46c754=((async()=>{const _0x3b62b1={_0x34c75b:0x191,_0x7250f5:0x58d};await mkdir(_0x34c719,{'recursive':!![]});const _0x1b599b=await runNpmInstall(_0x34c719,_0x3340a3[_0x143cf6(0x17d,_0xdab61e._0x1ad111,_0xdab61e._0x48b820,0x2e8)],_0x450250);function _0x71ec26(_0x1ad050,_0x8b7c6f,_0x1003d6,_0x401010){return _0x24ebec(_0x1ad050,_0x8b7c6f-_0x3b62b1._0x34c75b,_0x401010-_0x3b62b1._0x7250f5,_0x401010-0x1bb);}if(!_0x1b599b)return void 0x0;function _0x143cf6(_0x4c1bdb,_0x348d76,_0x14a830,_0x404f90){return _0x24ebec(_0x404f90,_0x348d76-0x15,_0x14a830-0xb6,_0x404f90-_0x51eb47._0x5f471f);}const _0x4daba9=_0x291b91[_0x143cf6(0x85,_0xdab61e._0x171b7b,0x199,0xd5)](getLspBinDir(_0x3340a3[_0x71ec26(0x743,0x65c,0x5a2,0x6c6)]),binaryNameForPlatform(_0x431a27));return await exists(_0x4daba9)?_0x4daba9:void 0x0;})()),installPromises['set'](_0x36aba9,_0x46c754));try{return await _0x46c754;}catch{return void 0x0;}finally{installPromises['delete'](_0x36aba9);}}var TYPESCRIPT_EXTENSIONS=['.ts',_0x38d42b(0x165,0x42,-0x63,0x27),'.js',_0x38d42b(0x2b4,0x174,0x34,0xe0),_0x38d42b(0x19d,0x5b,-0xb,-0x69),_0x38d42b(-0xbf,0x34,-0xde,-0x107),_0x37c1da(0x3e0,0x476,0x509,0x470),_0x38d42b(0x87,0x198,0x1a7,0x14f)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x37c1da(0x313,0x55b,0x334,0x41d)],TYPESCRIPT_ROOT_MARKERS=[_0x37c1da(0x5aa,0x44d,0x64b,0x589),'bun.lockb',_0x37c1da(0x615,0x42d,0x587,0x575),'pnpm-lock.yaml',_0x37c1da(0x42e,0x3f5,0x5b1,0x4bd),_0x38d42b(0x24f,0x1a2,0xa0,0x9a),_0x38d42b(0x59,0x102,0xe5,0x191),'package.json'],BIOME_ROOT_MARKERS=[_0x37c1da(0x755,0x64f,0x63c,0x60d),_0x38d42b(0x99,-0x3e,-0x5c,-0x30),_0x37c1da(0x452,0x6c3,0x5b8,0x589),_0x38d42b(0x107,0x9c,0x64,0x16d),'bun.lock',_0x37c1da(0x511,0x656,0x53a,0x5de),_0x37c1da(0x4f9,0x3eb,0x483,0x4bd),_0x37c1da(0x50f,0x656,0x5de,0x588)];async function exists2(_0x2869dd){try{return await _0x46c487(_0x2869dd),!![];}catch{return![];}}async function findUp(_0xe56595,_0x2687c5){const _0x382345={_0x673581:0x50d,_0x2a677b:0x689,_0x59f200:0x5d1,_0x417edb:0x7a9,_0x26562e:0x630},_0x554f1d={_0x42c1e1:0x109,_0x48ad87:0x4ba},_0x5619eb={_0x42ce51:0x39,_0x2e4928:0xc};function _0x4fe15d(_0x7fec1e,_0x369049,_0x379ede,_0x46476f){return _0x37c1da(_0x7fec1e-_0x5619eb._0x42ce51,_0x369049-_0x5619eb._0x2e4928,_0x369049,_0x7fec1e-0x55);}let _0x302b22=_0x57f35d[_0x23ce7e(_0x382345._0x673581,0x627,0x5d6,0x5bd)](_0xe56595);const _0x3784fb=_0x57f35d['extname'](_0x302b22);if(_0x3784fb)_0x302b22=_0x57f35d['dirname'](_0x302b22);function _0x23ce7e(_0x213a55,_0x1ee883,_0x33f816,_0x208d9c){return _0x38d42b(_0x213a55-_0x554f1d._0x42c1e1,_0x208d9c-_0x554f1d._0x48ad87,_0x33f816,_0x208d9c-0x1c1);}while(!![]){for(const _0x16d3aa of _0x2687c5){if(await exists2(_0x57f35d[_0x4fe15d(_0x382345._0x2a677b,_0x382345._0x59f200,_0x382345._0x417edb,0x604)](_0x302b22,_0x16d3aa)))return _0x302b22;}const _0x15ecdc=_0x57f35d[_0x4fe15d(0x51f,0x56a,0x5c2,_0x382345._0x26562e)](_0x302b22);if(_0x15ecdc===_0x302b22)return void 0x0;_0x302b22=_0x15ecdc;}}async function hasDenoRoot(_0x18c410){const _0x3fb7ac={_0x4e432e:0xa0,_0x13c7e4:0x14c,_0x2349ba:0x63,_0x2b09a0:0x2d,_0x2f6e50:0x1aa,_0xa74e74:0x21f,_0x367ccd:0x125},_0xe87a9c={_0x40570f:0x53a},_0x50df2e={_0x573d07:0x154,_0x930a53:0xf1};function _0x3d84c7(_0x1feb2c,_0x1c923f,_0x3965d2,_0x496520){return _0x38d42b(_0x1feb2c-_0x50df2e._0x573d07,_0x496520- -0x249,_0x3965d2,_0x496520-_0x50df2e._0x930a53);}function _0x15e77b(_0x1c4f9f,_0x5087fa,_0x57d53b,_0x4de10c){return _0x37c1da(_0x1c4f9f-0x14b,_0x5087fa-0xc4,_0x57d53b,_0x1c4f9f- -_0xe87a9c._0x40570f);}return await exists2(_0x57f35d[_0x3d84c7(-_0x3fb7ac._0x4e432e,-0xe,-0xd,-0x60)](_0x18c410,_0x3d84c7(-_0x3fb7ac._0x13c7e4,0x40,_0x3fb7ac._0x2349ba,-_0x3fb7ac._0x2b09a0)))||await exists2(_0x57f35d[_0x3d84c7(-0x12,-0x9c,-0x1aa,-0x60)](_0x18c410,_0x3d84c7(-_0x3fb7ac._0x2f6e50,-0xe,-_0x3fb7ac._0xa74e74,-_0x3fb7ac._0x367ccd)));}async function resolveTsserverPath(_0x22db03){const _0x4e99ef={_0x1c8392:0x242,_0x130fa0:0x4fa,_0x4938bd:0x3e7,_0xdb6a7f:0x4eb,_0x25d8f1:0x58f,_0x428d92:0x444,_0x3bc715:0x4fe,_0x5beccd:0x247,_0x58c434:0x231,_0x4d114b:0x359,_0x4d9eb7:0x23e,_0x3b209b:0x4a6,_0x17372e:0x29c,_0x2b24e9:0x3b7,_0x186ce0:0x34c,_0x241bb6:0x484,_0x567670:0x2f9,_0x31998c:0x342,_0x270f5c:0x460,_0x376a47:0x237,_0x26131b:0x11f,_0x2424a4:0x294,_0x3f049e:0x24b,_0x204f44:0x2e0,_0x258387:0x372,_0x368ecd:0x28c},_0x1f4991={_0x5890b7:0x16d};function _0x195fd8(_0x19ed8e,_0x4a20eb,_0x3616f6,_0x16a89a){return _0x37c1da(_0x19ed8e-0x37,_0x4a20eb-0x92,_0x19ed8e,_0x16a89a- -0x333);}let _0x2e8d0f=_0x57f35d[_0x195fd8(0x2a6,0x180,_0x4e99ef._0x1c8392,0x21b)](_0x22db03);function _0x1b6b8f(_0x503b66,_0x331ab5,_0x5c87db,_0x1e7b17){return _0x38d42b(_0x503b66-_0x1f4991._0x5890b7,_0x331ab5-0x311,_0x1e7b17,_0x1e7b17-0x1c3);}while(!![]){const _0x2c144c=_0x57f35d[_0x1b6b8f(0x41a,_0x4e99ef._0x130fa0,_0x4e99ef._0x4938bd,_0x4e99ef._0xdb6a7f)](_0x2e8d0f,_0x1b6b8f(_0x4e99ef._0x25d8f1,_0x4e99ef._0x428d92,_0x4e99ef._0x3bc715,0x49b),_0x195fd8(0x2fa,_0x4e99ef._0x5beccd,_0x4e99ef._0x58c434,0x280),_0x1b6b8f(0x3b3,_0x4e99ef._0x4d114b,0x2ac,_0x4e99ef._0x4d9eb7),_0x1b6b8f(0x4b5,0x372,_0x4e99ef._0x3b209b,0x482));if(await exists2(_0x2c144c))return _0x2c144c;const _0x281794=_0x57f35d[_0x1b6b8f(_0x4e99ef._0x17372e,0x390,0x2cb,0x26f)](_0x2e8d0f);if(_0x281794===_0x2e8d0f)break;_0x2e8d0f=_0x281794;}const _0x438cbc=getLspPackageDir(_0x1b6b8f(0x473,0x479,0x394,_0x4e99ef._0x2b24e9)),_0x307984=await resolvePackageBinary({'packageName':_0x1b6b8f(_0x4e99ef._0x186ce0,0x479,_0x4e99ef._0x241bb6,0x4bf),'binaryName':_0x1b6b8f(_0x4e99ef._0x567670,_0x4e99ef._0x31998c,_0x4e99ef._0x270f5c,_0x4e99ef._0x376a47),'startDir':_0x22db03});if(!_0x307984)return void 0x0;const _0x443b9f=_0x57f35d['join'](_0x438cbc,_0x195fd8(_0x4e99ef._0x26131b,0x2d0,_0x4e99ef._0x2424a4,_0x4e99ef._0x3f049e),'typescript','lib',_0x1b6b8f(_0x4e99ef._0x204f44,_0x4e99ef._0x258387,0x409,_0x4e99ef._0x368ecd));return await exists2(_0x443b9f)?_0x443b9f:void 0x0;}var TypeScriptServer={'id':_0x37c1da(0x6ad,0x609,0x63c,0x5b3),'name':_0x37c1da(0x42c,0x5ac,0x491,0x560),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x39ef40){const _0x34b2d6=await findUp(_0x39ef40,TYPESCRIPT_ROOT_MARKERS);if(!_0x34b2d6)return void 0x0;return await hasDenoRoot(_0x34b2d6)?void 0x0:_0x34b2d6;},async 'spawn'(_0x198b91){const _0x26aff1={_0x1b7844:0x139,_0x1a4c71:0x55,_0x5adccb:0x1b5,_0x160828:0x3,_0xf29eb6:0xb5,_0x376657:0x68,_0x3eee02:0x141,_0x52a7ec:0x12d},_0x1aa9ec={_0x5f5be8:0x178,_0x43d8a8:0x81},_0x609e4a=await resolveTsserverPath(_0x198b91);if(!_0x609e4a)return void 0x0;function _0x393e90(_0x455ea3,_0x572c8c,_0x39db67,_0x9e65be){return _0x37c1da(_0x455ea3-0x153,_0x572c8c-0xce,_0x39db67,_0x455ea3- -0x54e);}const _0x513730=await resolvePackageBinary({'packageName':_0x1d6895(-0x19,-_0x26aff1._0x1b7844,-0x105,-_0x26aff1._0x1a4c71),'binaryName':_0x393e90(-0xc4,-_0x26aff1._0x5adccb,-0x8e,-0x2f),'startDir':_0x198b91});function _0x1d6895(_0x2f69b1,_0x354b40,_0x20f5ee,_0x3d7000){return _0x38d42b(_0x2f69b1-0x11c,_0x354b40- -_0x1aa9ec._0x5f5be8,_0x2f69b1,_0x3d7000-_0x1aa9ec._0x43d8a8);}if(!_0x513730)return void 0x0;return{'process':_0x3c534a(_0x513730,[_0x1d6895(_0x26aff1._0x160828,_0x26aff1._0xf29eb6,_0x26aff1._0x376657,0x1d7)],{'cwd':_0x198b91,'stdio':_0x393e90(0x70,_0x26aff1._0x3eee02,_0x26aff1._0x52a7ec,-0xaf)}),'initialization':{'tsserver':{'path':_0x609e4a}}};}},BiomeServer={'id':_0x37c1da(0x571,0x4f7,0x4be,0x594),'name':_0x37c1da(0x5df,0x580,0x548,0x65b),'extensions':BIOME_EXTENSIONS,async 'root'(_0x5d781b){return findUp(_0x5d781b,BIOME_ROOT_MARKERS);},async 'spawn'(_0x53190a){const _0x4204af={_0xa4501c:0x51b,_0x1075eb:0x8e,_0x344672:0x150,_0x734b88:0x189,_0x5d14fc:0x3f3,_0x162cd6:0x2d6,_0x4ad938:0x1c6,_0x1073ff:0x85},_0x50519e={_0x25f9f0:0xb3},_0x527e0b={_0x635369:0x160},_0x557de4=await findPackageBinary(_0xe5ba19(0x616,_0x4204af._0xa4501c,0x5ad,0x60a),_0x53190a)??await resolvePackageBinary({'packageName':_0x1f4423(-_0x4204af._0x1075eb,-_0x4204af._0x344672,-_0x4204af._0x734b88,-0x126),'binaryName':'biome','startDir':_0x53190a});function _0xe5ba19(_0x51c318,_0x4b6408,_0x514a78,_0x3a9b95){return _0x38d42b(_0x51c318-0x129,_0x51c318-0x4cd,_0x3a9b95,_0x3a9b95-_0x527e0b._0x635369);}function _0x1f4423(_0x1e264c,_0x48a026,_0x348806,_0x596151){return _0x37c1da(_0x1e264c-_0x50519e._0x25f9f0,_0x48a026-0x4b,_0x48a026,_0x596151- -0x6fd);}if(!_0x557de4)return void 0x0;return{'process':_0x3c534a(_0x557de4,[_0x1f4423(-0x260,-0x24f,-_0x4204af._0x5d14fc,-_0x4204af._0x162cd6),_0x1f4423(-0x1d2,-0x1b7,-_0x4204af._0x4ad938,-_0x4204af._0x1073ff)],{'cwd':_0x53190a,'stdio':_0xe5ba19(0x640,0x65c,0x72a,0x722)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x1fb4d6){const _0x136cba={_0x1183fc:0x1d,_0x9a49a8:0xdc,_0x85cbd0:0x9,_0xc651fb:0xbb},_0x3a40b9={_0x361b54:0x19e,_0x46842:0x52a};function _0x11190b(_0x2eae7b,_0x1e7e27,_0x4775a0,_0x3e8fd6){return _0x38d42b(_0x2eae7b-0x19f,_0x2eae7b- -0x88,_0x1e7e27,_0x3e8fd6-0xb2);}function _0x3bdf0f(_0xe697ee,_0x3e74a2,_0x4bbf3e,_0x421cbb){return _0x37c1da(_0xe697ee-_0x3a40b9._0x361b54,_0x3e74a2-0x71,_0xe697ee,_0x421cbb- -_0x3a40b9._0x46842);}const _0x2159fe=_0x57f35d[_0x3bdf0f(_0x136cba._0x1183fc,-0x4f,0x154,0xf3)](_0x1fb4d6)['toLowerCase']();return BUILTIN_LSP_SERVERS[_0x3bdf0f(-_0x136cba._0x9a49a8,-0xad,_0x136cba._0x85cbd0,-_0x136cba._0xc651fb)](_0xf2f08a=>_0xf2f08a[_0x11190b(-0x60,-0xc4,-0x137,-0x141)][_0x11190b(-0xd9,-0x120,-0x222,-0xb5)](_0x2159fe));}function stateKey(_0x4fc933,_0x307e83){return _0x307e83+':'+_0x4fc933['id'];}function diagnosticsKeyToPath(_0x4e8f7d){const _0x13d1d6={_0x4173f6:0x40,_0x2dcea4:0x2a2,_0x3afa45:0x2f8},_0x5c5c90={_0x55e7e6:0xa3,_0x22c773:0x82},_0xeb4540={_0x5dba84:0x11c,_0x4fc37c:0x9b,_0x3fedb4:0x11e};function _0x43a0ba(_0x3a9453,_0xb4e406,_0x502e56,_0xffad7d){return _0x38d42b(_0x3a9453-_0xeb4540._0x5dba84,_0x502e56-_0xeb4540._0x4fc37c,_0x3a9453,_0xffad7d-_0xeb4540._0x3fedb4);}function _0x3bf131(_0x17185d,_0x10a4cc,_0x3bc0b1,_0x3cdd52){return _0x38d42b(_0x17185d-_0x5c5c90._0x55e7e6,_0x10a4cc- -0x38,_0x17185d,_0x3cdd52-_0x5c5c90._0x22c773);}if(!_0x4e8f7d[_0x3bf131(-0x31,0x85,-_0x13d1d6._0x4173f6,0x170)](_0x43a0ba(0x3d2,0x26c,_0x13d1d6._0x2dcea4,_0x13d1d6._0x3afa45)))return _0x4e8f7d;return fileURLToPath(_0x4e8f7d);}function nextFileVersion(_0x279727,_0x4d7277){const _0x52338d={_0x5a8668:0x1d1},_0x4b415b=(_0x279727['fileVersions'][_0x1cff0d(-_0x52338d._0x5a8668,-0x1ac,-0x15b,-0xb2)](_0x4d7277)??0x1)+0x1;function _0x1cff0d(_0x206c83,_0x2fdda5,_0x111abc,_0x21575f){return _0x37c1da(_0x206c83-0x18,_0x2fdda5-0x5c,_0x2fdda5,_0x206c83- -0x719);}return _0x279727['fileVersions']['set'](_0x4d7277,_0x4b415b),_0x4b415b;}async function collectClientResults(_0x442bdd){const _0xb0dbbd={_0x11c6c0:0x1ba,_0x5bff27:0x1dd},_0x1f34ee={_0x472be7:0x4ab},_0xf397d4={_0x10a6a6:0x13d,_0x2da64a:0x6c3};function _0x2b44fa(_0x424469,_0x4db7f7,_0x23c04d,_0x45ea59){return _0x37c1da(_0x424469-_0xf397d4._0x10a6a6,_0x4db7f7-0x176,_0x4db7f7,_0x424469- -_0xf397d4._0x2da64a);}const _0x328a45=await Promise[_0x2b44fa(-0x21f,-0x2f6,-0x27f,-0x21b)](_0x442bdd);function _0x47997a(_0x478409,_0x4d4202,_0x3ae1e9,_0x1f0af9){return _0x37c1da(_0x478409-0xd5,_0x4d4202-0xc9,_0x3ae1e9,_0x4d4202- -_0x1f34ee._0x472be7);}return _0x328a45[_0x2b44fa(-_0xb0dbbd._0x11c6c0,-_0xb0dbbd._0x5bff27,-0x2f3,-0x2a4)](_0x3e6102=>_0x3e6102['status']==='fulfilled'?_0x3e6102[_0x47997a(0x10b,0xc,-0x84,-0xe9)]:[]);}function createLspService(_0x1bcf30={}){const _0x5d6bd0={_0xb20136:0x287,_0x417288:0x18f,_0x3632e3:0x20,_0x12ed88:0x164},_0x5b125f={_0x4648d3:0xf4,_0x1f1c51:0x117},_0x4408b3={_0x136e7b:0x162,_0x18f139:0x135,_0x4af319:0x108,_0x1365e1:0x179,_0x4c25a2:0xec,_0x126f78:0x1c0,_0x3d0bc6:0x23e,_0x1a0872:0x2e5,_0x42d5fa:0x13f,_0x249b82:0x2b,_0x1cd287:0x327,_0x417b53:0xe6,_0x167551:0x28e,_0x392882:0x225,_0x346c9c:0x225,_0x38a80e:0x2f0,_0x5046a:0x158,_0x452fab:0x1a4,_0x5b38c8:0x9f,_0x10c16d:0x1d8,_0x5387ff:0x1d2,_0x4ab65d:0x27a,_0x495297:0x1d2},_0x5f3b69={_0x548ba3:0x1f4},_0x17956a={_0x7c7b5c:0xb4},_0x3c250c={_0xba082e:0x12b,_0x449c71:0x30,_0xae4337:0xd},_0x210e68={_0x26ec3b:0x346,_0x405bc0:0x2a9},_0x445b05={_0x422a69:0xdd,_0x757dc9:0x17e,_0x436901:0x5c,_0x575c39:0xfc,_0x19cb75:0x118,_0x3fe631:0x1e3},_0x12168e={_0x172f61:0x1f2,_0x41965d:0xf0,_0x590283:0x57},_0x39a5ef={_0x24367a:0x137,_0x59e533:0x23f},_0x5730d9={_0x1e6c4e:0x1b1},_0x3bb13f={_0x2987d4:0xb5,_0x517b34:0x49},_0x534425={_0x4a212a:0x177,_0x1e971c:0x3f},_0x23b168={_0x209035:0x342,_0x11de09:0x46b,_0x50eaad:0x33d,_0x591bb5:0x1a7},_0x235a9e={_0xb27dd0:0x7b,_0x1cb05a:0x267,_0x4855e0:0x1df},_0x5d2717={_0x5de2cd:0x11,_0x1c87ff:0x134},_0x1700a2={_0x101699:0x74,_0x1eb8ba:0x1b6},_0x4092df={_0x8cfbc0:0x142},_0x36a1d4={_0x525914:0x518,_0x2499d8:0x475,_0x42ea80:0x518},_0x2ea990={_0x4f7504:0x16},_0x1fa4a9={_0x1f2056:0x3fe},_0x2aedd6={_0x14e372:0x224,_0xa4e21f:0x1e8},_0x5aad8d={_0x3bca42:0x126},_0x176c8b={_0x32a148:0x8f},_0x49225d={_0x599afc:0x27e,_0x76f5ed:0x38c,_0x2d0aec:0x226},_0xcba87f={_0x25ce16:0xb4},_0x1149f5={_0x28ec55:0x2d3,_0x10a43c:0x259,_0x572f5a:0x33c,_0x368b96:0x157,_0x60df5c:0x25b},_0x5085ca={_0x5480cc:0x103,_0x5e2b1a:0x156},_0x25d097={_0x4fed95:0x22d,_0x4626ad:0x1f4,_0x44ebba:0x17e,_0x242992:0x259,_0x3b80f6:0x2c6,_0x3fdd66:0x291,_0x3dfc35:0xa6,_0x468312:0x154,_0xa80bd4:0x149,_0x3f360a:0x82,_0x31d2d1:0x36e,_0x2d620b:0xe2,_0x532bdd:0x21a},_0x215b77={_0x92563b:0x3e,_0x2bd2d2:0xf7},_0x1d834b={_0x1b14bd:0x15b,_0x332038:0x20c,_0x42453e:0x1cd,_0x3aee05:0x83,_0x1aec06:0xb8,_0x10481e:0x16d,_0x8ee312:0x136,_0x52a921:0x179,_0x5e3330:0xb6,_0x5b7f83:0x11f,_0x55ae1f:0x5b,_0x15b8bc:0x110,_0x12756a:0x156},_0x14c50e={_0x2cfa63:0x17b,_0x3c5375:0xd7,_0x4befc9:0x207,_0xae053f:0x292,_0x1198cc:0x2db,_0xcc366a:0x191,_0x2c3559:0x283,_0x5a86d8:0x1a7,_0x57521c:0x324,_0x17c2b5:0x241,_0x33d6e8:0x93,_0x138eea:0x1a4,_0x1b30c6:0x32f,_0x7e4a7d:0x273,_0xfe62a8:0x301,_0x81b072:0x297,_0x20aeb4:0xa1,_0x1183eb:0x2b,_0x31da99:0xe2,_0x3b15fe:0xdc},_0x15b36d={_0x5edbd8:0x189,_0x53130e:0x311,_0x520d30:0x1de},_0x2148a7={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x2f150f=()=>_0x1bcf30[_0x2d9809(0xce,0xa3,0x11e,0x44)]!==![];async function _0x5e1dc2(_0x12e314,_0x44325f){const _0x4d267f={_0x3a5bda:0x6},_0x472f20={_0x44ef36:0xa8,_0x295d33:0x189},_0x38797c={_0x5b1d22:0x130,_0x3279d9:0xa9},_0x43ceef=stateKey(_0x12e314,_0x44325f);function _0x1cbaae(_0x16fb80,_0x49f9bf,_0x2fb7df,_0xcab337){return _0x2d9809(_0xcab337,_0x49f9bf-_0x15b36d._0x5edbd8,_0x49f9bf- -_0x15b36d._0x53130e,_0xcab337-_0x15b36d._0x520d30);}const _0x2546cd=_0x2148a7[_0x1cbaae(-0x27b,-_0x1d834b._0x1b14bd,-0x278,-_0x1d834b._0x332038)]['find'](_0x4ee613=>_0x4ee613[_0x1cbaae(-0x2cf,-0x253,-0x369,-0x231)]===_0x12e314['id']&&_0x4ee613[_0x1cbaae(-0x103,-0x1be,-0x28c,-0x223)]===_0x44325f);if(_0x2546cd)return _0x2546cd;if(_0x2148a7[_0x1cbaae(-0xed,-0x1b7,-_0x1d834b._0x42453e,-_0x1d834b._0x3aee05)][_0x1cbaae(-0x181,-_0x1d834b._0x1aec06,-_0x1d834b._0x10481e,-_0x1d834b._0x8ee312)](_0x43ceef))return void 0x0;const _0x53dedd=_0x2148a7[_0xd5ec28(0x69,0xc4,0xe2,_0x1d834b._0x52a921)]['get'](_0x43ceef);if(_0x53dedd)return _0x53dedd;const _0x13cf19=((async()=>{function _0x394afe(_0x4f7643,_0x4c76e9,_0x2d456d,_0x4085a0){return _0x1cbaae(_0x4f7643-_0x38797c._0x5b1d22,_0x2d456d-0x4b8,_0x2d456d-_0x38797c._0x3279d9,_0x4f7643);}function _0x563d31(_0x5c5459,_0x698af9,_0x2e27e3,_0x29b32c){return _0x1cbaae(_0x5c5459-_0x472f20._0x44ef36,_0x5c5459-_0x472f20._0x295d33,_0x2e27e3-0x13c,_0x29b32c);}try{const _0x587d7c=await _0x12e314['spawn'](_0x44325f);if(!_0x587d7c)return _0x2148a7[_0x563d31(-0x2e,-_0x14c50e._0x2cfa63,-0x9,_0x14c50e._0x3c5375)][_0x394afe(_0x14c50e._0x4befc9,0x3b7,_0x14c50e._0xae053f,_0x14c50e._0x1198cc)](_0x43ceef),void 0x0;const _0x4cbb76=await createLspClient({'server':_0x12e314,'root':_0x44325f,'handle':_0x587d7c}),_0x34593d=_0x2148a7['clients'][_0x394afe(0x215,_0x14c50e._0xcc366a,_0x14c50e._0x2c3559,0x146)](_0x4bf318=>_0x4bf318[_0x394afe(0x20b,0x284,0x265,0x34d)]===_0x12e314['id']&&_0x4bf318[_0x394afe(0x327,0x42e,0x2fa,0x212)]===_0x44325f);if(_0x34593d)return await _0x4cbb76[_0x394afe(0x205,0xd0,_0x14c50e._0x5a86d8,0x1e9)](),_0x34593d;return _0x2148a7[_0x394afe(_0x14c50e._0x57521c,_0x14c50e._0x17c2b5,0x35d,0x369)][_0x563d31(-0x1a5,-0x22c,-_0x14c50e._0x33d6e8,-_0x14c50e._0x138eea)](_0x4cbb76),_0x4cbb76;}catch{return _0x2148a7[_0x394afe(_0x14c50e._0x1b30c6,_0x14c50e._0x7e4a7d,_0x14c50e._0xfe62a8,_0x14c50e._0x81b072)][_0x563d31(-0x9d,-0x32,-_0x14c50e._0x20aeb4,-_0x14c50e._0x1183eb)](_0x43ceef),void 0x0;}finally{_0x2148a7[_0x563d31(-0x4c,_0x14c50e._0x31da99,-0xd4,_0x14c50e._0x3b15fe)]['delete'](_0x43ceef);}})());_0x2148a7[_0x1cbaae(-_0x1d834b._0x5e3330,-0x1d5,-0x2f3,-_0x1d834b._0x5b7f83)][_0x1cbaae(-_0x1d834b._0x55ae1f,-0x180,-_0x1d834b._0x15b8bc,-_0x1d834b._0x12756a)](_0x43ceef,_0x13cf19);function _0xd5ec28(_0x1e6440,_0x439027,_0x5ca8db,_0x478a16){return _0x2d9809(_0x439027,_0x439027-0x4e,_0x1e6440- -0xd3,_0x478a16-_0x4d267f._0x3a5bda);}return _0x13cf19;}async function _0x340d57(_0x52a8fb,_0x59dc74){const _0x4949b1={_0x896b75:0x156};if(!_0x2f150f())return[];const _0x4b4cfe=[];for(const _0x14cc4f of getServersForFile(_0x52a8fb)){const _0x447ca5=await _0x14cc4f[_0x37c734(-0x1ac,-_0x25d097._0x4fed95,-_0x25d097._0x4626ad,-0x1b8)](_0x52a8fb);if(!_0x447ca5)continue;const _0x3f3fa4=stateKey(_0x14cc4f,_0x447ca5);if(_0x2148a7[_0x451c89(_0x25d097._0x44ebba,_0x25d097._0x242992,_0x25d097._0x3b80f6,_0x25d097._0x3fdd66)][_0x37c734(-_0x25d097._0x3dfc35,-_0x25d097._0x468312,0x55,-_0x25d097._0x468312)](_0x3f3fa4))continue;const _0xfae04d=_0x2148a7[_0x37c734(-_0x25d097._0xa80bd4,-0x2a,-0x1ff,-_0x25d097._0x3f360a)][_0x37c734(-0x223,-0x252,-_0x25d097._0x31d2d1,-0x202)](_0x33e436=>_0x33e436[_0x451c89(0x283,0x1bd,0x152,0xe9)]===_0x14cc4f['id']&&_0x33e436[_0x451c89(0x200,0x252,0x151,0x37e)]===_0x447ca5);if(_0xfae04d){_0x4b4cfe[_0x451c89(0x203,_0x25d097._0x2d620b,_0x25d097._0x532bdd,0xb8)](_0xfae04d);continue;}if(!_0x59dc74)continue;const _0x45eeb0=await _0x5e1dc2(_0x14cc4f,_0x447ca5);if(_0x45eeb0)_0x4b4cfe[_0x451c89(0x181,0xe2,0x22b,-0x1c)](_0x45eeb0);}function _0x37c734(_0x226996,_0x4fea4f,_0x3d265b,_0x17a8a0){return _0x2d9809(_0x3d265b,_0x4fea4f-_0x215b77._0x92563b,_0x226996- -0x2ff,_0x17a8a0-_0x215b77._0x2bd2d2);}function _0x451c89(_0x3e1a71,_0x5a1b2f,_0x3a3ee8,_0x5c3d8a){return _0x2d9809(_0x5c3d8a,_0x5a1b2f-0x2,_0x5a1b2f-0xff,_0x5c3d8a-_0x4949b1._0x896b75);}return _0x4b4cfe;}function _0x2d9809(_0x35aaf9,_0x5ebd27,_0x4b47f7,_0xf36d5b){return _0x37c1da(_0x35aaf9-_0x5085ca._0x5480cc,_0x5ebd27-_0x5085ca._0x5e2b1a,_0x35aaf9,_0x4b47f7- -0x416);}async function _0x370416(_0xb56ff1,_0x5d575a=![]){const _0x3efc89={_0x4a96f6:0x24,_0x242be8:0x4d,_0x51ed68:0x17,_0x1bda9f:0x17a,_0x524285:0x4b,_0x33aab9:0x187,_0x441ff3:0x241,_0x57c887:0x214,_0x3bdf5a:0x231,_0x4cfcf1:0x107,_0x11370b:0x154,_0x31aced:0x234,_0x459f71:0xe6,_0xf4ec31:0xbc,_0x4e683d:0x171,_0x5b5b94:0xf0,_0x37530e:0x15,_0x4d0b5f:0x34},_0xe8e74c={_0x564295:0x2cf},_0x1aef97={_0x51ad1b:0xb},_0x2d8816={_0x217fa4:0xfe};function _0x21a8a5(_0x44ceaa,_0x326d0f,_0x1c0eea,_0x42e40b){return _0x2d9809(_0x42e40b,_0x326d0f-0xaf,_0x326d0f- -_0x2d8816._0x217fa4,_0x42e40b-0x179);}const _0x57695f=await _0x340d57(_0xb56ff1,!![]);function _0xa2bda8(_0x27a33,_0x4268ac,_0x260615,_0xab273c){return _0x2d9809(_0xab273c,_0x4268ac-0x17c,_0x260615- -_0x1aef97._0x51ad1b,_0xab273c-0x152);}await Promise[_0xa2bda8(_0x1149f5._0x28ec55,0x23b,_0x1149f5._0x10a43c,_0x1149f5._0x572f5a)](_0x57695f[_0xa2bda8(0x1e3,_0x1149f5._0x368b96,_0x1149f5._0x60df5c,0x2de)](async _0x521bbe=>{const _0x195088={_0x1ba56b:0x10f,_0x24add9:0x126};function _0x378bef(_0x2e3f9b,_0x3bc19a,_0x2cde40,_0x2e75de){return _0xa2bda8(_0x2e3f9b-0x180,_0x3bc19a-0x159,_0x2e75de- -_0xe8e74c._0x564295,_0x3bc19a);}!_0x2148a7[_0x5e26f6(-0x98,-_0x3efc89._0x4a96f6,-0xa0,_0x3efc89._0x242be8)][_0x5e26f6(0x142,_0x3efc89._0x51ed68,0x16e,0x9b)](_0x521bbe[_0x5e26f6(-_0x3efc89._0x1bda9f,-_0x3efc89._0x524285,-0xea,-0x100)]+':'+_0x521bbe[_0x378bef(-0x15a,-0x8c,-0x228,-_0x3efc89._0x33aab9)]+':'+_0xb56ff1)&&(await _0x521bbe[_0x378bef(-_0x3efc89._0x441ff3,-0x25b,-0xb2,-0x170)][_0x378bef(-0x376,-0x2fb,-_0x3efc89._0x57c887,-_0x3efc89._0x3bdf5a)]({'path':_0xb56ff1}),_0x2148a7[_0x5e26f6(0x7a,_0x3efc89._0x4cfcf1,-0xf0,0x4d)][_0x5e26f6(-0xe4,-0x188,-_0x3efc89._0x11370b,-0xd3)](_0x521bbe[_0x378bef(-_0x3efc89._0x31aced,-_0x3efc89._0x459f71,-0x226,-0x21c)]+':'+_0x521bbe[_0x5e26f6(-0x98,-0xcf,-0xe,-0x6b)]+':'+_0xb56ff1));function _0x5e26f6(_0x3ac471,_0x25b400,_0x580b6d,_0x5436b3){return _0xa2bda8(_0x3ac471-_0x195088._0x1ba56b,_0x25b400-_0x195088._0x24add9,_0x5436b3- -0x1b3,_0x580b6d);}await _0x521bbe[_0x5e26f6(0xd9,_0x3efc89._0xf4ec31,-_0x3efc89._0x4e683d,-0x54)]['change']({'path':_0xb56ff1,'version':nextFileVersion(_0x2148a7,_0xb56ff1)});if(_0x5d575a)await _0x521bbe[_0x5e26f6(-0xd4,_0x3efc89._0x5b5b94,-_0x3efc89._0x37530e,-_0x3efc89._0x4d0b5f)]({'path':_0xb56ff1});}));}async function _0x480833(_0xe879ec){function _0x1b22c4(_0x57e9f3,_0x117ad4,_0x34e09,_0x331780){return _0x2d9809(_0x34e09,_0x117ad4-0x117,_0x57e9f3-0x89,_0x331780-_0xcba87f._0x25ce16);}return await _0x370416(_0xe879ec['file'],![]),_0x340d57(_0xe879ec[_0x1b22c4(_0x49225d._0x599afc,_0x49225d._0x76f5ed,0x21c,_0x49225d._0x2d0aec)],![]);}async function _0x5efa9a(_0x4c3623){function _0x46402d(_0x534e8a,_0x3c75ac,_0x1bc832,_0x3f84c2){return _0x2d9809(_0x1bc832,_0x3c75ac-0x17,_0x3f84c2-_0x176c8b._0x32a148,_0x3f84c2-0x1b8);}const _0x14bc8d=await _0x480833(_0x4c3623);function _0x4a9d77(_0x35237c,_0x5dd79c,_0x1abb2a,_0x18bc67){return _0x2d9809(_0x5dd79c,_0x5dd79c-0x1e3,_0x35237c- -0x42,_0x18bc67-_0x5aad8d._0x3bca42);}return collectClientResults(_0x14bc8d[_0x4a9d77(_0x2aedd6._0x14e372,0x22c,0x27a,_0x2aedd6._0xa4e21f)](_0x13b7ec=>_0x13b7ec[_0x4a9d77(0x79,0x195,0x1f,0xec)][_0x4a9d77(0x1f1,0x11e,0xd3,0x25a)](_0x4c3623)));}return{'isEnabled':_0x2f150f,async 'hasClients'(_0x4e279f){function _0x53cdaf(_0x421a40,_0x2a9740,_0x2e9f0d,_0x359ff7){return _0x2d9809(_0x359ff7,_0x2a9740-0x165,_0x2a9740-_0x1fa4a9._0x1f2056,_0x359ff7-0xab);}function _0x5a635d(_0x12fabe,_0x163e82,_0x209f8a,_0x199a05){return _0x2d9809(_0x163e82,_0x163e82-0xfc,_0x12fabe-0x33f,_0x199a05-_0x2ea990._0x4f7504);}return(await _0x340d57(_0x4e279f,![]))[_0x53cdaf(0x3f7,_0x36a1d4._0x525914,0x63b,_0x36a1d4._0x2499d8)]>0x0||getServersForFile(_0x4e279f)[_0x53cdaf(0x51e,_0x36a1d4._0x42ea80,0x5e6,0x46f)]>0x0;},'touchFile':_0x370416,async 'diagnostics'(){const _0x1d0e75={};function _0x294a31(_0x3b36ee,_0x409a31,_0x59a5ff,_0x2b2e5b){return _0x2d9809(_0x59a5ff,_0x409a31-0x3e,_0x409a31- -_0x4092df._0x8cfbc0,_0x2b2e5b-0x1e2);}for(const _0x5ceca6 of _0x2148a7[_0x294a31(0x185,_0x1700a2._0x101699,_0x1700a2._0x1eb8ba,-0x8c)]){for(const [_0x3187b6,_0x2fbf40]of _0x5ceca6['diagnostics']){_0x1d0e75[diagnosticsKeyToPath(_0x3187b6)]=_0x2fbf40;}}return _0x1d0e75;},async 'diagnosticsForFile'(_0x2651a1){function _0x54f45b(_0x3f2f3c,_0x574bfc,_0x4b31f0,_0x331f23){return _0x2d9809(_0x3f2f3c,_0x574bfc-_0x5d2717._0x5de2cd,_0x4b31f0-0x182,_0x331f23-_0x5d2717._0x1c87ff);}function _0x22eaf7(_0x3dd721,_0x575e71,_0x2d708b,_0x9ad837){return _0x2d9809(_0x3dd721,_0x575e71-_0x235a9e._0xb27dd0,_0x9ad837-_0x235a9e._0x1cb05a,_0x9ad837-_0x235a9e._0x4855e0);}await _0x370416(_0x2651a1,!![]);const _0x1e0420=[];for(const _0x444d38 of await _0x340d57(_0x2651a1,![])){for(const [_0x1f34be,_0x5e679e]of _0x444d38[_0x22eaf7(_0x23b168._0x209035,_0x23b168._0x11de09,0x47b,0x46f)]){if(diagnosticsKeyToPath(_0x1f34be)===_0x2651a1)_0x1e0420[_0x22eaf7(_0x23b168._0x50eaad,0x1b7,_0x23b168._0x591bb5,0x24a)](..._0x5e679e);}}return _0x1e0420;},async 'definition'(_0x4edb3f){function _0xdb6f11(_0x38e357,_0x4e667b,_0x20b446,_0x594611){return _0x2d9809(_0x4e667b,_0x4e667b-0x1dc,_0x594611- -_0x534425._0x4a212a,_0x594611-_0x534425._0x1e971c);}function _0x144131(_0x550aee,_0x3222b6,_0x3dfde6,_0xa694f7){return _0x2d9809(_0x3222b6,_0x3222b6-0x5e,_0x550aee- -_0x3bb13f._0x2987d4,_0xa694f7-_0x3bb13f._0x517b34);}return collectClientResults((await _0x480833(_0x4edb3f))[_0x144131(_0x5730d9._0x1e6c4e,0x7a,0x27b,0xf0)](_0x29806c=>_0x29806c[_0x144131(0x6,-0x54,-0x18,-0xc5)][_0xdb6f11(0x54,-0x43,-0x145,-0x80)](_0x4edb3f)));},async 'references'(_0xc01376){const _0x4789e6={_0x1671b3:0xe9};function _0xc55620(_0x2c4505,_0x59a065,_0x4fd4ca,_0x2b4c38){return _0x2d9809(_0x2c4505,_0x59a065-0x1ee,_0x59a065- -0x31,_0x2b4c38-_0x4789e6._0x1671b3);}return collectClientResults((await _0x480833(_0xc01376))[_0xc55620(0x21e,0x235,_0x39a5ef._0x24367a,_0x39a5ef._0x59e533)](_0x274d0c=>_0x274d0c['request']['references'](_0xc01376)));},async 'hover'(_0x47a135){const _0x340989={_0x3ecd3f:0x1b1},_0x25a262=await Promise[_0x4da068(0xa1,_0x445b05._0x422a69,_0x445b05._0x757dc9,_0x445b05._0x436901)]((await _0x480833(_0x47a135))['map'](_0x22f557=>_0x22f557['request']['hover'](_0x47a135)));function _0x4da068(_0x22e247,_0x140b7d,_0x52c284,_0x3b79a7){return _0x2d9809(_0x3b79a7,_0x140b7d-_0x12168e._0x172f61,_0x52c284-_0x12168e._0x41965d,_0x3b79a7-_0x12168e._0x590283);}function _0x4cf71c(_0x354525,_0x5466a3,_0x3052d5,_0x1172e6){return _0x2d9809(_0x3052d5,_0x5466a3-_0x340989._0x3ecd3f,_0x5466a3- -0x2b2,_0x1172e6-0x1db);}return _0x25a262[_0x4da068(_0x445b05._0x575c39,_0x445b05._0x19cb75,_0x445b05._0x3fe631,0xbc)](_0x1c873c=>_0x1c873c[_0x4cf71c(-0x88,-0x135,-0x1db,-0x13f)]==='fulfilled'&&_0x1c873c[_0x4da068(0xb4,0xd3,0x191,0x19a)]?[_0x1c873c[_0x4cf71c(-0x1f7,-0x211,-0x118,-0x338)]]:[]);},async 'documentSymbol'(_0x1fc726){const _0x3706dc={_0x2c6078:0x14c,_0x2c31b0:0x5c},_0x51996b={_0x1f993a:0xac,_0x484cbb:0x166,_0x487905:0x126};function _0x29eb8b(_0x2b8119,_0x49d549,_0x40190a,_0x4fe300){return _0x2d9809(_0x49d549,_0x49d549-_0x51996b._0x1f993a,_0x2b8119-_0x51996b._0x484cbb,_0x4fe300-_0x51996b._0x487905);}function _0x4169db(_0x230b00,_0x57e377,_0x2656ae,_0x1cc820){return _0x2d9809(_0x1cc820,_0x57e377-0xe7,_0x57e377- -_0x3706dc._0x2c6078,_0x1cc820-_0x3706dc._0x2c31b0);}return await _0x370416(_0x1fc726,![]),collectClientResults((await _0x340d57(_0x1fc726,![]))[_0x29eb8b(0x3cc,_0x210e68._0x26ec3b,0x34b,_0x210e68._0x405bc0)](_0x258bb0=>_0x258bb0[_0x4169db(-0x124,-0x91,-0x4b,-0x123)][_0x4169db(0xae,0xde,0x187,-0x60)](_0x1fc726)));},async 'workspaceSymbol'(_0x13fe1c){const _0x2083c2={_0x499315:0xd8};function _0x48155d(_0x1d169f,_0x351817,_0x2552fe,_0x4e68f1){return _0x2d9809(_0x2552fe,_0x351817-_0x2083c2._0x499315,_0x4e68f1- -0x4a,_0x4e68f1-0x17c);}function _0xa6ebad(_0x4be130,_0xe86b4,_0x14aa95,_0x9e31ea){return _0x2d9809(_0x9e31ea,_0xe86b4-0xa5,_0xe86b4- -0x186,_0x9e31ea-0x1aa);}return collectClientResults(_0x2148a7[_0xa6ebad(_0x3c250c._0xba082e,_0x3c250c._0x449c71,_0x3c250c._0xae4337,0x125)]['map'](_0x534001=>_0x534001[_0xa6ebad(-0x112,-0xcb,-0xee,-0x1ae)]['workspaceSymbol'](_0x13fe1c)));},async 'implementation'(_0x1c2b70){return collectClientResults((await _0x480833(_0x1c2b70))['map'](_0x2ca714=>_0x2ca714['request']['implementation'](_0x1c2b70)));},async 'prepareCallHierarchy'(_0x22ae81){return _0x5efa9a(_0x22ae81);},async 'incomingCalls'(_0x1d8c7b){const _0x375108={_0x2e7026:0xee},_0x261d3e={_0x41333d:0x2a};function _0x200d0f(_0x179148,_0x466fe0,_0x5e7fd5,_0x19daf6){return _0x2d9809(_0x179148,_0x466fe0-0x1d5,_0x5e7fd5- -_0x261d3e._0x41333d,_0x19daf6-0x150);}const _0x5944e9=await _0x5efa9a(_0x1d8c7b);function _0x1d3141(_0x130683,_0x4d345f,_0x550516,_0x59edf7){return _0x2d9809(_0x4d345f,_0x4d345f-_0x375108._0x2e7026,_0x550516-0x115,_0x59edf7-0x192);}const _0xf2d1b8=await _0x480833(_0x1d8c7b);return collectClientResults(_0xf2d1b8['flatMap'](_0x3ee2b5=>_0x5944e9[_0x1d3141(0x435,0x2fa,0x37b,0x346)](_0x527c1c=>_0x3ee2b5[_0x1d3141(0xa2,0x85,0x1d0,0x19f)]['incomingCalls'](_0x527c1c))));},async 'outgoingCalls'(_0x31c6e5){const _0x222e5b={_0x5d5b4a:0x12f,_0x5691df:0xc6};function _0x347d40(_0x56ac4b,_0x153536,_0x5bd953,_0x230c67){return _0x2d9809(_0x230c67,_0x153536-_0x222e5b._0x5d5b4a,_0x56ac4b-0x45,_0x230c67-_0x222e5b._0x5691df);}const _0x457161=await _0x5efa9a(_0x31c6e5);function _0x233e5a(_0x10f544,_0x24dc49,_0x9692d5,_0x2b73a3){return _0x2d9809(_0x10f544,_0x24dc49-_0x17956a._0x7c7b5c,_0x24dc49-0x3ff,_0x2b73a3-0x184);}const _0x55d5d7=await _0x480833(_0x31c6e5);return collectClientResults(_0x55d5d7[_0x347d40(0x138,0x3e,0x27b,0x8)](_0x4dffef=>_0x457161['map'](_0xb24868=>_0x4dffef['request'][_0x233e5a(0x5e5,0x5c2,0x47f,0x50c)](_0xb24868))));},async 'shutdown'(){const _0x2dd15d={_0x37fc35:0x1e4,_0x2b018a:0x197};if(_0x2148a7[_0x18adf7(-_0x4408b3._0x136e7b,-0x235,-_0x4408b3._0x18f139,-_0x4408b3._0x4af319)])return;_0x2148a7[_0x18adf7(-_0x4408b3._0x1365e1,-_0x4408b3._0x4c25a2,-_0x4408b3._0x18f139,-0x8a)]=!![],await Promise[_0x18adf7(-_0x4408b3._0x126f78,-0x2e8,-_0x4408b3._0x3d0bc6,-_0x4408b3._0x1a0872)](_0x2148a7['clients'][_0x18adf7(-_0x4408b3._0x42d5fa,-_0x4408b3._0x249b82,-0x66,-0x1ac)](_0x4b2842=>_0x4b2842['shutdown']()));function _0x18adf7(_0x5649c4,_0x5c3a53,_0x449de2,_0x11f902){return _0x2d9809(_0x11f902,_0x5c3a53-0x127,_0x449de2- -0x2cc,_0x11f902-_0x5f3b69._0x548ba3);}_0x2148a7[_0x192c98(_0x4408b3._0x1cd287,_0x4408b3._0x417b53,_0x4408b3._0x167551,_0x4408b3._0x392882)]=[],_0x2148a7['spawning']['clear'](),_0x2148a7[_0x192c98(_0x4408b3._0x346c9c,_0x4408b3._0x38a80e,0x29c,0x1c9)][_0x192c98(_0x4408b3._0x5046a,_0x4408b3._0x452fab,0x2a1,0x1d2)]();function _0x192c98(_0x4cf4de,_0x2b2bbb,_0x1ee785,_0x59e5e2){return _0x2d9809(_0x1ee785,_0x2b2bbb-_0x2dd15d._0x37fc35,_0x59e5e2-0x6f,_0x59e5e2-_0x2dd15d._0x2b018a);}_0x2148a7['fileVersions'][_0x192c98(_0x4408b3._0x5b38c8,0x129,_0x4408b3._0x10c16d,_0x4408b3._0x5387ff)](),_0x2148a7[_0x192c98(0x273,0x391,0x38d,_0x4408b3._0x4ab65d)][_0x192c98(0x2ce,0x94,0x27b,_0x4408b3._0x495297)]();},'status'(){const _0x2a483d={_0x39431f:0xae,_0x58d537:0x4a};function _0x4fd0cc(_0x1efbcb,_0x16965e,_0x1a831e,_0x1f7795){return _0x2d9809(_0x1a831e,_0x16965e-_0x5b125f._0x4648d3,_0x1f7795-0x44c,_0x1f7795-_0x5b125f._0x1f1c51);}function _0x58a3ff(_0x326f5e,_0xb2da5b,_0x59e007,_0x3eda76){return _0x2d9809(_0x3eda76,_0xb2da5b-_0x2a483d._0x39431f,_0x59e007- -_0x2a483d._0x58d537,_0x3eda76-0x110);}return{'connectedClients':_0x2148a7[_0x58a3ff(_0x5d6bd0._0xb20136,0x208,0x16c,_0x5d6bd0._0x417288)][_0x58a3ff(0x10d,_0x5d6bd0._0x3632e3,0xd0,_0x5d6bd0._0x12ed88)]};}};}function createQuestionId(){const _0x26a29e={_0xe651b6:0x2ea,_0x481d1f:0x34a,_0xe27988:0x3d6},_0x1ad0aa={_0x540124:0x22b},_0x510515={_0x26737a:0x55,_0x233ddc:0x87};function _0x3f5c79(_0x56c1da,_0x1cca82,_0x3e8db7,_0x579a67){return _0x37c1da(_0x56c1da-_0x510515._0x26737a,_0x1cca82-_0x510515._0x233ddc,_0x56c1da,_0x1cca82- -0x52);}function _0x52d39c(_0x19b663,_0x5197d3,_0x1dcf32,_0x2016bc){return _0x37c1da(_0x19b663-0xa8,_0x5197d3-0x9,_0x2016bc,_0x19b663- -_0x1ad0aa._0x540124);}return'question-'+Date[_0x52d39c(_0x26a29e._0xe651b6,_0x26a29e._0x481d1f,0x298,0x424)]()+'-'+Math[_0x52d39c(0x3a4,0x2df,_0x26a29e._0xe27988,0x3dd)]()['toString'](0x24)['slice'](0x2,0x9);}function validateInput(_0x310cca){const _0x409079={_0x71ca0e:0x4ba,_0xa8d002:0x552,_0x18fc30:0x49b,_0x3ca63b:0x4d6,_0x44bf20:0x373,_0x461704:0x48e,_0x3635db:0x3dc,_0x3e53dd:0x48e,_0x583363:0x311,_0x2470ad:0x468,_0xe69f59:0x248,_0xc39b5c:0x307,_0x5c0422:0x54c,_0x3dc065:0x5d5,_0x820b1a:0x6f8,_0x1fcbbe:0x64b,_0xeaa4:0x345,_0x1cb1bc:0x48c,_0x4553e2:0x5a4,_0x2d2e16:0x5b0,_0x39265d:0x4ea,_0x411e2a:0x273,_0x1c1f98:0x333,_0x110b85:0x3f7,_0x57546d:0x303,_0x28583c:0x1cd,_0x289e12:0x336,_0x54c5d1:0x4c0,_0x3e696b:0x476,_0x408ccc:0x58e,_0x38c648:0x44b,_0x279172:0x5e1,_0x195ca3:0x5b4,_0x34fdac:0x4e4,_0x349a2b:0x386,_0x4cc8c8:0x38c,_0x162223:0x514,_0x3b0ad7:0x486,_0x180646:0x423,_0x2adb4c:0x28e,_0x19b9d5:0x355,_0x97c46b:0x4d3,_0x3f64e0:0x4f8,_0x4cba42:0x5f4,_0x4cd4f7:0x174,_0x331504:0x29a,_0x2737b4:0x3c5,_0x334efe:0x402,_0x1a73d9:0x5d2,_0x1b0c9c:0x49b,_0x261381:0x55e,_0x3a8a72:0x486,_0x4688d9:0x510,_0x5438b6:0x5ec,_0x474d4c:0x4ea,_0x4a998c:0x2e5,_0x30de0e:0x430,_0x2089f6:0x4f6,_0x1f0d4a:0x329,_0x4d5807:0x44b,_0x361f58:0x3c7},_0x437f39={_0x417a9e:0xf4,_0x47674e:0x95},_0x3067c7={_0x4a2eed:0x285,_0x7a3150:0x152};if(!Array['isArray'](_0x310cca[_0x4efcfa(_0x409079._0x71ca0e,_0x409079._0xa8d002,0x44e,0x48e)])||_0x310cca['questions'][_0x47d9e0(0x557,_0x409079._0x18fc30,_0x409079._0x3ca63b,0x3fa)]<0x1||_0x310cca[_0x4efcfa(_0x409079._0x44bf20,0x534,0x465,_0x409079._0x461704)][_0x4efcfa(0x390,0x3d4,0x2e7,0x36a)]>0xa)throw new ToolExecutionError('Must\x20provide\x201-10\x20questions',{'error':_0x47d9e0(0x526,0x540,0x678,0x568)});function _0x4efcfa(_0x4f9a9a,_0x2a4537,_0x412cf6,_0x569c6b){return _0x38d42b(_0x4f9a9a-0x15a,_0x569c6b-_0x3067c7._0x4a2eed,_0x2a4537,_0x569c6b-_0x3067c7._0x7a3150);}function _0x47d9e0(_0x323e2b,_0xc31224,_0x1cc189,_0x27db71){return _0x37c1da(_0x323e2b-0xc4,_0xc31224-_0x437f39._0x417a9e,_0x27db71,_0xc31224- -_0x437f39._0x47674e);}for(let _0x3c07e7=0x0;_0x3c07e7<_0x310cca[_0x4efcfa(0x4e5,_0x409079._0x3635db,0x5b2,_0x409079._0x3e53dd)]['length'];_0x3c07e7+=0x1){const _0x5f1286=_0x310cca['questions'][_0x3c07e7];if(!_0x5f1286[_0x4efcfa(0x2a2,0x1fd,0x353,_0x409079._0x583363)]||typeof _0x5f1286[_0x47d9e0(_0x409079._0x2470ad,0x442,0x3d7,0x4e5)]!==_0x4efcfa(_0x409079._0xe69f59,0x332,0x1ed,_0x409079._0xc39b5c))throw new ToolExecutionError(_0x4efcfa(0x41c,0x33f,0x4c1,0x3c7)+(_0x3c07e7+0x1)+_0x47d9e0(_0x409079._0x5c0422,_0x409079._0x3dc065,_0x409079._0x820b1a,_0x409079._0x1fcbbe));if(!_0x5f1286[_0x4efcfa(0x208,0x41d,0x300,_0x409079._0xeaa4)]||typeof _0x5f1286[_0x47d9e0(_0x409079._0x1cb1bc,0x476,0x405,_0x409079._0x4553e2)]!=='string')throw new ToolExecutionError('Question\x20'+(_0x3c07e7+0x1)+_0x47d9e0(0x59e,_0x409079._0x2d2e16,_0x409079._0x39265d,0x636));if(_0x5f1286['topic'][_0x4efcfa(_0x409079._0x411e2a,_0x409079._0x1c1f98,0x3cc,0x36a)]>0x1e)throw new ToolExecutionError(_0x4efcfa(_0x409079._0x110b85,0x3c1,_0x409079._0x57546d,0x3c7)+(_0x3c07e7+0x1)+_0x4efcfa(_0x409079._0x28583c,_0x409079._0x289e12,0x1a6,0x28b)+_0x5f1286[_0x47d9e0(_0x409079._0x54c5d1,_0x409079._0x3e696b,_0x409079._0x408ccc,_0x409079._0x38c648)][_0x47d9e0(_0x409079._0x279172,0x49b,_0x409079._0x195ca3,_0x409079._0x34fdac)]);if(!Array[_0x47d9e0(0x4dc,0x3d7,_0x409079._0x349a2b,_0x409079._0x4cc8c8)](_0x5f1286[_0x47d9e0(_0x409079._0x162223,_0x409079._0x3b0ad7,0x5a9,_0x409079._0x180646)])||_0x5f1286[_0x47d9e0(0x41a,_0x409079._0x3b0ad7,0x49d,0x531)]['length']<0x2||_0x5f1286[_0x4efcfa(0x488,_0x409079._0x2adb4c,_0x409079._0x110b85,_0x409079._0x19b9d5)]['length']>0x4)throw new ToolExecutionError(_0x47d9e0(_0x409079._0x97c46b,_0x409079._0x3f64e0,0x4be,_0x409079._0x4cba42)+(_0x3c07e7+0x1)+_0x4efcfa(_0x409079._0x4cd4f7,_0x409079._0x331504,0x164,0x27b));for(let _0x2314fb=0x0;_0x2314fb<_0x5f1286[_0x47d9e0(0x4ef,0x486,_0x409079._0x2737b4,_0x409079._0x334efe)][_0x47d9e0(_0x409079._0x1a73d9,_0x409079._0x1b0c9c,0x475,0x38a)];_0x2314fb+=0x1){const _0x565489=_0x5f1286[_0x47d9e0(_0x409079._0x261381,_0x409079._0x3a8a72,0x590,0x546)][_0x2314fb];if(!_0x565489[_0x47d9e0(0x515,_0x409079._0x4688d9,_0x409079._0x5438b6,0x5ee)]||!_0x565489['description'])throw new ToolExecutionError(_0x47d9e0(_0x409079._0x474d4c,_0x409079._0x3f64e0,0x574,0x459)+(_0x3c07e7+0x1)+',\x20Option\x20'+(_0x2314fb+0x1)+_0x47d9e0(0x2a2,0x382,_0x409079._0x4a998c,0x38a));}if(typeof _0x5f1286[_0x47d9e0(0x4b3,_0x409079._0x30de0e,0x4e8,_0x409079._0x2089f6)]!==_0x47d9e0(0x6c8,0x595,0x669,0x4f9))throw new ToolExecutionError(_0x4efcfa(_0x409079._0x1f0d4a,_0x409079._0x4d5807,0x472,_0x409079._0x361f58)+(_0x3c07e7+0x1)+':\x20\x22multiSelect\x22\x20must\x20be\x20a\x20boolean');}}function buildQuestions(_0x17b273){const _0x2e3b79={_0x35bf9b:0x48f,_0x1aaa0c:0x65b},_0xa0b7b4={_0x5a06a8:0x1ba,_0x3af2a2:0x50},_0x45d34f={_0x3652c1:0xb9,_0x181257:0x41e};function _0x4b577c(_0x584fa9,_0x162c4e,_0xcf0ba3,_0x2801d0){return _0x38d42b(_0x584fa9-_0x45d34f._0x3652c1,_0x584fa9-_0x45d34f._0x181257,_0x2801d0,_0x2801d0-0x125);}function _0x4a32a8(_0x5e5875,_0x338a3d,_0x43f6be,_0x5a2ae8){return _0x37c1da(_0x5e5875-_0xa0b7b4._0x5a06a8,_0x338a3d-_0xa0b7b4._0x3af2a2,_0x5e5875,_0x5a2ae8- -0xa4);}return _0x17b273[_0x4a32a8(0x669,_0x2e3b79._0x35bf9b,_0x2e3b79._0x1aaa0c,0x5b0)]['map']((_0x2f4367,_0x579827)=>({'id':'q'+_0x579827,'question':_0x2f4367['question'],'topic':_0x2f4367['topic'],'options':_0x2f4367[_0x4a32a8(0x3c8,0x3e3,0x474,0x477)],'multiSelect':_0x2f4367[_0x4b577c(0x498,0x4b2,0x4d7,0x470)]}));}function createResult(_0x2c0889,_0x1c2c9f,_0x25288c){const _0x558091={_0x109f9d:0x4d8,_0x439adf:0x4f3,_0xaad642:0x596,_0x20d6c2:0x4e0},_0x225478={_0x39eef0:0x15,_0x53cba4:0x3c};function _0xcdd5db(_0x2b0951,_0x43cb40,_0x5ce7ca,_0x24ad1c){return _0x37c1da(_0x2b0951-_0x225478._0x39eef0,_0x43cb40-0xdf,_0x24ad1c,_0x2b0951- -_0x225478._0x53cba4);}const _0x1c1b05={'questionId':_0x2c0889,'questionCount':_0x1c2c9f,'answers':_0x25288c};function _0x2bd00a(_0x235c98,_0x2efd77,_0x77d32e,_0x48faf7){return _0x37c1da(_0x235c98-0x172,_0x2efd77-0x168,_0x2efd77,_0x77d32e-0x5c);}return createToolOutput(_0xcdd5db(0x4c3,0x561,_0x558091._0x109f9d,0x55a)+JSON[_0xcdd5db(0x5c2,_0x558091._0x439adf,_0x558091._0xaad642,_0x558091._0x20d6c2)](_0x25288c,null,0x2),_0x1c1b05);}function createAskUserTool(){const _0x44f0b0={_0x211a7b:0xf2,_0x56253a:0x4ad,_0x23d2b1:0x5af,_0x20d530:0x280,_0x542e6f:0x2fa,_0xfedfaa:0x15e,_0x35ccdb:0x188,_0x19562a:0x205,_0x3a1ab1:0x222,_0x1308d3:0x2f4,_0x23f738:0x347,_0x38ba7b:0x356,_0x4ff595:0x382,_0x2ba547:0x262,_0x1a0ca7:0x260,_0x539a68:0x8d,_0x35d058:0x47e,_0x3a952b:0x284,_0x4fabf8:0x3db,_0x27994c:0x3a6,_0x309615:0x29a,_0x218a07:0x435,_0x26d29e:0x356,_0x59c173:0xf1,_0x1a03ff:0x163,_0x2196e9:0x17a,_0x870145:0x342,_0x59a085:0x390,_0xca434b:0x2a1,_0x34f59d:0x358,_0x3878b8:0x1e0,_0x1fd0fb:0x276,_0x30f036:0x3dd},_0xeffe10={_0x5bf18e:0xe,_0x3564aa:0x59c,_0x24cd18:0x451,_0x2e2fe0:0x53a,_0x2cab9f:0x561,_0x27582d:0x621,_0x12cbc4:0x560,_0x3ae68d:0x51d,_0x36af76:0x4b0,_0x426f8b:0x6ba,_0x3f0d4b:0x776,_0x2c72c1:0x1f,_0x1b9d84:0x3b,_0xd0c423:0x6ba,_0x3d999c:0x730,_0x553c86:0x718,_0x14ec74:0x2a1},_0x3d903a={_0x37e63f:0x181,_0x44d4b4:0x272},_0x376838={_0x1295f1:0x157,_0xef7306:0xe1};function _0x1d6956(_0x250b09,_0x5825ff,_0xa464a,_0x36d4a9){return _0x37c1da(_0x250b09-_0x376838._0x1295f1,_0x5825ff-_0x376838._0xef7306,_0x5825ff,_0xa464a- -0x3a8);}function _0x575414(_0x19a965,_0x53805b,_0x1770da,_0x327b48){return _0x38d42b(_0x19a965-_0x3d903a._0x37e63f,_0x53805b-_0x3d903a._0x44d4b4,_0x19a965,_0x327b48-0x1e5);}return defineTool({'name':_0x1d6956(0x167,_0x44f0b0._0x211a7b,0x73,0xe9),'description':_0x575414(0x57b,_0x44f0b0._0x56253a,0x47f,_0x44f0b0._0x23d2b1),'inputSchema':{'type':_0x575414(0x3ba,_0x44f0b0._0x20d530,_0x44f0b0._0x542e6f,_0x44f0b0._0xfedfaa),'properties':{'questions':{'type':_0x1d6956(0x16d,0x1b7,0x93,_0x44f0b0._0x35ccdb),'items':{'type':_0x575414(_0x44f0b0._0x19562a,0x280,_0x44f0b0._0x3a1ab1,0x181),'properties':{'question':{'type':_0x575414(0x390,_0x44f0b0._0x1308d3,0x3bf,_0x44f0b0._0x23f738)},'topic':{'type':_0x575414(_0x44f0b0._0x38ba7b,0x2f4,0x1cc,_0x44f0b0._0x4ff595)},'options':{'type':_0x575414(0x243,_0x44f0b0._0x2ba547,0x2ae,_0x44f0b0._0x1a0ca7),'items':{'type':_0x1d6956(0xec,_0x44f0b0._0x539a68,0xb1,-0x6c),'properties':{'label':{'type':'string'},'description':{'type':'string'}},'required':[_0x575414(_0x44f0b0._0x35d058,0x3cc,_0x44f0b0._0x3a952b,0x3da),_0x575414(_0x44f0b0._0x4fabf8,_0x44f0b0._0x27994c,0x300,_0x44f0b0._0x309615)]}},'multiSelect':{'type':_0x575414(0x590,0x451,0x34f,0x334)}},'required':[_0x575414(0x349,0x2fe,_0x44f0b0._0x218a07,_0x44f0b0._0x26d29e),_0x1d6956(0x19c,_0x44f0b0._0x59c173,_0x44f0b0._0x1a03ff,_0x44f0b0._0x2196e9),_0x575414(0x3fc,_0x44f0b0._0x870145,0x27c,_0x44f0b0._0x59a085),_0x575414(_0x44f0b0._0xca434b,0x2ec,_0x44f0b0._0x34f59d,0x3f7)]}},'answers':{'type':_0x575414(0x21a,0x280,0x242,_0x44f0b0._0x3878b8),'properties':{}}},'required':[_0x1d6956(_0x44f0b0._0x1fd0fb,0x3c7,0x2ac,_0x44f0b0._0x30f036)]},async *'execute'(_0x5a3feb,_0xdb2141){const _0x12b010={_0x2d2fb9:0x12d,_0x1c8db6:0x127},_0x1a38fe={_0x2754b6:0xef},_0x528dfa=_0x5a3feb;validateInput(_0x528dfa);const _0x3c25b0=_0xdb2141['toolCallId']??createQuestionId();function _0x4449d0(_0x144f19,_0x254c90,_0x5d2256,_0x1fa531){return _0x1d6956(_0x144f19-_0x1a38fe._0x2754b6,_0x1fa531,_0x144f19-0x3d9,_0x1fa531-0x11e);}function _0x2bcaaa(_0x34fded,_0x6a98af,_0x3f43dd,_0x20f694){return _0x1d6956(_0x34fded-_0x12b010._0x2d2fb9,_0x34fded,_0x20f694- -0x2fc,_0x20f694-_0x12b010._0x1c8db6);}if(_0x528dfa['answers']&&Object[_0x2bcaaa(-_0xeffe10._0x5bf18e,-0x1bb,-0x9,-0x6f)](_0x528dfa[_0x4449d0(0x560,0x638,0x42c,0x687)])[_0x4449d0(0x561,0x5d7,_0xeffe10._0x3564aa,_0xeffe10._0x24cd18)]>0x0)return createResult(_0x3c25b0,_0x528dfa[_0x4449d0(0x685,0x746,0x5aa,_0xeffe10._0x2e2fe0)][_0x4449d0(_0xeffe10._0x2cab9f,_0xeffe10._0x27582d,0x507,0x575)],_0x528dfa[_0x4449d0(_0xeffe10._0x12cbc4,0x624,_0xeffe10._0x3ae68d,_0xeffe10._0x36af76)]);if(!_0xdb2141[_0x4449d0(_0xeffe10._0x426f8b,_0xeffe10._0x3f0d4b,0x679,0x68f)])throw new ToolExecutionError(_0x2bcaaa(_0xeffe10._0x2c72c1,0x7f,0x88,-_0xeffe10._0x1b9d84));const _0xdbf21a=buildQuestions(_0x528dfa),_0x416d6e=await _0xdb2141[_0x4449d0(_0xeffe10._0xd0c423,_0xeffe10._0x3d999c,0x6e4,0x66a)]({'questionId':_0x3c25b0,'questions':_0xdbf21a});yield createResult(_0x3c25b0,_0x528dfa[_0x4449d0(0x685,0x6c4,_0xeffe10._0x553c86,0x6a8)][_0x2bcaaa(-0x24f,-0x89,-_0xeffe10._0x14ec74,-0x174)],_0x416d6e);}});}import{spawn as _0x3b0a63}from'child_process';import{statSync}from'fs';import*as _0x2bf8d7 from'os';import*as _0x4f1757 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x38b57e from'path';function isPathInside(_0x92dc51,_0x2f8148){const _0xc8abbe={_0x2151a7:0x9a,_0x23a6e7:0x59,_0x8a1bd1:0x1f,_0x98cdb8:0x1aa,_0x5afddf:0x11d,_0x3b04c8:0x19},_0x8fcb60={_0x7aab91:0x2f},_0x4e9d98=_0x38b57e[_0x3c8ad1(-_0xc8abbe._0x2151a7,-_0xc8abbe._0x23a6e7,-0xa5,_0xc8abbe._0x8a1bd1)](_0x92dc51);function _0x3c8ad1(_0x31f9b0,_0x27ebba,_0x4b61e3,_0x482f48){return _0x38d42b(_0x31f9b0-0x3a,_0x31f9b0- -0x19d,_0x4b61e3,_0x482f48-_0x8fcb60._0x7aab91);}function _0x2c1122(_0x1967ef,_0x3f2f29,_0x482fdd,_0xe07a7f){return _0x37c1da(_0x1967ef-0x108,_0x3f2f29-0x12a,_0xe07a7f,_0x1967ef- -0x681);}const _0xff45e6=_0x38b57e['relative'](_0x4e9d98,_0x2f8148);return _0xff45e6===''||!_0xff45e6[_0x2c1122(-0x179,-_0xc8abbe._0x98cdb8,-_0xc8abbe._0x5afddf,-0x22a)]('..')&&!_0x38b57e[_0x3c8ad1(-0xa3,-_0xc8abbe._0x3b04c8,-0x1de,-0x6b)](_0xff45e6);}function resolveWorkspacePath(_0x2722dc,_0x39daf0){return resolveAllowedPath(_0x2722dc,[],_0x39daf0);}function resolveAllowedPath(_0x3bae31,_0xe3e0c,_0x3ecfb3){const _0x57a208={_0x53b278:0x461,_0x537931:0x3b4,_0x42d100:0x342,_0x562f3f:0x5c2,_0x3a6771:0x6b5,_0x56e103:0x41,_0x3ca957:0x1e8},_0x5f3182={_0x2b92bc:0x56};function _0x4affe6(_0x146934,_0x4bc562,_0x4c9694,_0x1e2fb6){return _0x37c1da(_0x146934-0x14b,_0x4bc562-_0x5f3182._0x2b92bc,_0x1e2fb6,_0x146934- -0xed);}const _0x5914a8=_0x38b57e[_0x4affe6(_0x57a208._0x53b278,_0x57a208._0x537931,0x33c,_0x57a208._0x42d100)](_0x3bae31),_0x103135=_0x38b57e['resolve'](_0x5914a8,_0x3ecfb3);function _0xc1163d(_0x5d7a60,_0x4f9239,_0x23704d,_0x4d91fc){return _0x38d42b(_0x5d7a60-0x14,_0x23704d-0x10c,_0x4d91fc,_0x4d91fc-0xe5);}const _0x4331ea=[_0x5914a8,..._0xe3e0c[_0x4affe6(0x58f,0x516,_0x57a208._0x562f3f,_0x57a208._0x3a6771)](_0x4ab2bd=>_0x38b57e[_0x4affe6(0x461,0x31a,0x52a,0x40b)](_0x4ab2bd))];if(_0x4331ea['some'](_0x57cf6=>isPathInside(_0x57cf6,_0x103135)))return _0x103135;throw new ToolExecutionError(_0xc1163d(-0x45,-_0x57a208._0x56e103,0xf4,_0x57a208._0x3ca957)+_0x3ecfb3,{'path':_0x3ecfb3,'rootDir':_0x5914a8,'allowedDirs':_0x4331ea});}async function assertWorkspaceFile(_0x4db59d){const _0xcad812={_0x5ec176:0x560,_0x283c1f:0x566,_0x2318a6:0x49e},_0x4d4ae6={_0x2a6839:0xeb};function _0x4f880f(_0x4e9a60,_0x143bd2,_0x255855,_0x6a3a9c){return _0x37c1da(_0x4e9a60-_0x4d4ae6._0x2a6839,_0x143bd2-0x12f,_0x4e9a60,_0x6a3a9c-0x6c);}const _0x46e29d=await stat(_0x4db59d);if(!_0x46e29d['isFile']())throw new ToolExecutionError(_0x4f880f(_0xcad812._0x5ec176,0x45b,_0xcad812._0x283c1f,_0xcad812._0x2318a6)+_0x4db59d,{'path':_0x4db59d});}function isProbablyBinary(_0x2c7fd9){const _0x2eaf9c={_0x2dcd1b:0x169,_0x478706:0x9d,_0x303d6f:0x85,_0x35d261:0xa2},_0x3426f5={_0x17e65b:0x143};function _0x43b57c(_0xa81d92,_0x105c48,_0x3b3b4d,_0x61d419){return _0x37c1da(_0xa81d92-_0x3426f5._0x17e65b,_0x105c48-0x124,_0x3b3b4d,_0xa81d92- -0x563);}return _0x2c7fd9[_0x43b57c(-_0x2eaf9c._0x2dcd1b,-_0x2eaf9c._0x478706,-_0x2eaf9c._0x303d6f,-_0x2eaf9c._0x35d261)](0x0);}var DEFAULT_DESCRIPTION=_0x38d42b(0x16b,0x177,0x250,0x15c),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x1cd402){return _0x1cd402 instanceof Error;}function shellExists(_0x4a4e6f){const _0x141f7b={_0x8c0ac:0x11b,_0x4cf878:0x86,_0x19bfc5:0x181},_0x4f911c={_0x4cba03:0x79,_0x5c7412:0xae};function _0x3083a6(_0x2915d1,_0x158c06,_0x5349a4,_0x585b6a){return _0x37c1da(_0x2915d1-0xb6,_0x158c06-0x55,_0x158c06,_0x2915d1- -0x44f);}function _0x52112e(_0x22a505,_0x2b62d0,_0xc690c3,_0x4a01bd){return _0x37c1da(_0x22a505-0x6a,_0x2b62d0-_0x4f911c._0x4cba03,_0x22a505,_0x4a01bd- -_0x4f911c._0x5c7412);}try{const _0xa46a21=statSync(_0x4a4e6f);return _0xa46a21[_0x3083a6(0xa7,_0x141f7b._0x8c0ac,0x97,-_0x141f7b._0x4cf878)]()&&(_0xa46a21[_0x3083a6(-0x43,-0x18e,-_0x141f7b._0x19bfc5,-0x15f)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x3506f4){const _0x5bf2df={_0x1e0b4b:0x1ac,_0x4f38d3:0x171,_0x300948:0x23e,_0x34b36c:0x1b0,_0x95e8f9:0x6a6,_0x26dfa0:0x595,_0x52466a:0x67e,_0x17b376:0x6bc,_0xf51839:0x59f,_0x2d5996:0x64d,_0x55dbe2:0x355,_0xab2998:0x246,_0x32253a:0x259,_0x7e643a:0x107,_0x3eec7d:0x304,_0x527633:0x270,_0x4436f1:0x1f8,_0x1620fe:0x682,_0x112c84:0x6cf},_0x443a96={_0x55c9c3:0x1d2};function _0x5e6633(_0x3f7cda,_0x185f49,_0x3d958b,_0x34fe23){return _0x38d42b(_0x3f7cda-_0x443a96._0x55c9c3,_0x185f49-0x15e,_0x3f7cda,_0x34fe23-0xa5);}function _0x221ee2(_0x5ae09c,_0x1b5738,_0x551915,_0x5b1473){return _0x38d42b(_0x5ae09c-0x26,_0x5b1473-0x4e0,_0x1b5738,_0x5b1473-0xcb);}if(_0x3506f4)return _0x3506f4;if(_0x2bf8d7[_0x5e6633(_0x5bf2df._0x1e0b4b,_0x5bf2df._0x4f38d3,_0x5bf2df._0x300948,_0x5bf2df._0x34b36c)]()===_0x221ee2(0x6ad,_0x5bf2df._0x95e8f9,_0x5bf2df._0x26dfa0,_0x5bf2df._0x52466a))return process[_0x221ee2(_0x5bf2df._0x17b376,_0x5bf2df._0xf51839,0x47f,0x592)]['ComSpec']||_0x221ee2(_0x5bf2df._0x2d5996,0x4c6,0x5d9,0x58c);const _0x4a1e6f=['/bin/bash','/bin/sh',_0x5e6633(_0x5bf2df._0x55dbe2,_0x5bf2df._0xab2998,_0x5bf2df._0x32253a,_0x5bf2df._0x7e643a),'/usr/bin/sh'];for(const _0x13f4eb of _0x4a1e6f){if(shellExists(_0x13f4eb))return _0x13f4eb;}const _0xbf782d=process['env'][_0x5e6633(0x31e,_0x5bf2df._0x3eec7d,_0x5bf2df._0x527633,_0x5bf2df._0x4436f1)];if(_0xbf782d&&shellExists(_0xbf782d))return _0xbf782d;return _0x221ee2(_0x5bf2df._0x1620fe,0x7f1,_0x5bf2df._0x112c84,0x707);}function buildShellArgs(_0xec78b8,_0x121617){const _0x33fcc7={_0x38afe4:0x2a4,_0x41abe1:0x16a,_0x1ab818:0x12,_0x41c929:0x119},_0xbe004a={_0x4ac783:0x278},_0x21dded={_0x37d618:0x67};function _0x4e15c6(_0x1959ff,_0xfb045d,_0x6f3e9d,_0x6f9798){return _0x38d42b(_0x1959ff-_0x21dded._0x37d618,_0x6f9798- -0x2b7,_0xfb045d,_0x6f9798-0x1b2);}if(_0x2bf8d7[_0x4e15c6(-0x176,-0x30c,-0x1ab,-_0x33fcc7._0x38afe4)]()===_0x4e15c6(-0x1d5,-_0x33fcc7._0x41abe1,-_0x33fcc7._0x1ab818,-_0x33fcc7._0x41c929)){const _0x472b03=/cmd(\.exe)?$/i['test'](_0x121617);return _0x472b03?['/d','/s','/c',_0xec78b8]:['-NoLogo',_0x4e15c6(0x2b,0xa,0x77,-0xaf),'-Command',_0xec78b8];}function _0x5f2df5(_0xf0981,_0x30f75b,_0x17c97b,_0x1d47f3){return _0x37c1da(_0xf0981-0x6e,_0x30f75b-0x43,_0x30f75b,_0xf0981- -_0xbe004a._0x4ac783);}return['-c',_0xec78b8];}function resolveCarriageReturns(_0x589199){const _0xf095db={_0x2e114b:0x4c3,_0x5bdbcf:0x4b6,_0x1419a8:0x493,_0x9c43de:0x81,_0x40cf85:0x4c,_0x24140c:0x60e,_0xa827a7:0x54b},_0x55da46={_0x5aeb5c:0x177,_0x3cf0bd:0x3b6,_0x218481:0x3d8},_0x456d7f={_0x5480fc:0x7d},_0x3270ec={_0x6dd345:0xf1,_0x571474:0x630},_0x5c2af1={_0x313450:0x82,_0x2f1627:0x187};function _0x2b260b(_0x2f6604,_0x1cac79,_0x4e6ce7,_0xee3a51){return _0x37c1da(_0x2f6604-_0x5c2af1._0x313450,_0x1cac79-_0x5c2af1._0x2f1627,_0xee3a51,_0x4e6ce7- -0xe9);}function _0x2576f7(_0x70b652,_0x8b0ca3,_0x2e2aab,_0x11404d){return _0x37c1da(_0x70b652-_0x3270ec._0x6dd345,_0x8b0ca3-0x136,_0x11404d,_0x8b0ca3- -_0x3270ec._0x571474);}return _0x589199[_0x2b260b(_0xf095db._0x2e114b,_0xf095db._0x5bdbcf,_0xf095db._0x1419a8,0x3fa)]('\x0a')[_0x2576f7(_0xf095db._0x9c43de,_0xf095db._0x40cf85,0x17e,0xf9)](_0x145e57=>{const _0x4748db={_0x4d44cf:0x14f,_0x27d38b:0x157};function _0xdfb22e(_0x405545,_0x42a60f,_0x3dd37b,_0x100ed3){return _0x2576f7(_0x405545-_0x4748db._0x4d44cf,_0x42a60f-0x4b6,_0x3dd37b-_0x4748db._0x27d38b,_0x3dd37b);}if(!_0x145e57[_0xdfb22e(_0x55da46._0x5aeb5c,0x280,0x1e3,0x24d)]('\x0d'))return _0x145e57;function _0x1deba9(_0x95493f,_0x3a3f11,_0x23a674,_0x47530f){return _0x2576f7(_0x95493f-0x181,_0x95493f- -_0x456d7f._0x5480fc,_0x23a674-0x9a,_0x47530f);}const _0x227fc1=_0x145e57['split']('\x0d');return _0x227fc1[_0x227fc1[_0xdfb22e(0x357,_0x55da46._0x3cf0bd,_0x55da46._0x218481,0x294)]-0x1]??'';})[_0x2b260b(0x64c,_0xf095db._0x24140c,_0xf095db._0xa827a7,0x636)]('\x0a');}function resolveBackspaces(_0x424373){const _0x10c1fb={_0x49ac88:0x5f5,_0x6d35ff:0x449,_0x492b33:0x3ac,_0x4cbc20:0x381,_0xb02a85:0x185,_0x5a3513:0x267,_0x1dc719:0x349},_0x34f5be={_0x5a0036:0x140,_0x147c1c:0xd3},_0xbe78a0={_0x124736:0x167,_0x33c5d8:0xe6};function _0x3ae509(_0x343f9a,_0x100f74,_0x2306f6,_0x54cc1a){return _0x38d42b(_0x343f9a-_0xbe78a0._0x124736,_0x2306f6-0x2b9,_0x54cc1a,_0x54cc1a-_0xbe78a0._0x33c5d8);}const _0x595928=[];for(const _0xb1e335 of Array[_0x4cbc7c(0x71e,0x759,_0x10c1fb._0x49ac88,0x626)](_0x424373)){_0xb1e335==='\x08'?_0x595928[_0x3ae509(0x47b,_0x10c1fb._0x6d35ff,_0x10c1fb._0x492b33,_0x10c1fb._0x4cbc20)]():_0x595928[_0x3ae509(_0x10c1fb._0xb02a85,0x353,_0x10c1fb._0x5a3513,_0x10c1fb._0x1dc719)](_0xb1e335);}function _0x4cbc7c(_0x33ef85,_0xe7d0c7,_0x299838,_0x5ce525){return _0x38d42b(_0x33ef85-_0x34f5be._0x5a0036,_0x5ce525-0x46f,_0x33ef85,_0x5ce525-_0x34f5be._0x147c1c);}return _0x595928['join']('');}function stripAnsiAndControls(_0xa42900){const _0x155852={_0x495eb3:0x1fe,_0x42794c:0x165,_0x114d5a:0x1e0,_0x18731f:0x18a,_0x13f9df:0x1f2,_0x550438:0x18a,_0xdbad84:0xea,_0x32d042:0xa,_0x552ad0:0x47,_0x426485:0x24e,_0x491086:0x38d,_0x40e1ee:0x11f,_0x2a432e:0x4f,_0x545c38:0x72,_0x1421dc:0x18a},_0x17532f={_0x284163:0x1a8,_0x2f9359:0x44},_0x4f701c={_0x3123f7:0xca,_0x53d63d:0x299};function _0x4a1758(_0x2cc1f1,_0x5083ab,_0x44f2f6,_0x21a2ee){return _0x37c1da(_0x2cc1f1-0xd6,_0x5083ab-_0x4f701c._0x3123f7,_0x44f2f6,_0x21a2ee- -_0x4f701c._0x53d63d);}_0xa42900=resolveCarriageReturns(_0xa42900),_0xa42900=resolveBackspaces(_0xa42900),_0xa42900=stripVTControlCharacters(_0xa42900);const _0x2d6d31='\x1b',_0x56bfa5='\x07';_0xa42900=_0xa42900['replace'](new RegExp(_0x434931(_0x155852._0x495eb3,0x2a8,0x338,0x244)+_0x56bfa5+_0x4a1758(0x19c,0xa8,_0x155852._0x42794c,0x1ed)+_0x56bfa5,'g'),''),_0xa42900=_0xa42900[_0x4a1758(0x1aa,_0x155852._0x114d5a,0x2b5,_0x155852._0x18731f)](new RegExp(';[^\x5cn]*?'+_0x2d6d31+'\x5c\x5c','g'),''),_0xa42900=_0xa42900[_0x4a1758(0x1b2,_0x155852._0x13f9df,_0x155852._0x550438,0x18a)](new RegExp(_0x56bfa5,'g'),'');function _0x434931(_0x25270d,_0x4fdafc,_0xd70976,_0x1e1c9c){return _0x38d42b(_0x25270d-_0x17532f._0x284163,_0x1e1c9c-_0x17532f._0x2f9359,_0x4fdafc,_0x1e1c9c-0x1de);}return _0xa42900=_0xa42900['replace'](new RegExp(_0x2d6d31+_0x434931(-_0x155852._0xdbad84,-0x8d,_0x155852._0x32d042,_0x155852._0x552ad0)+_0x2d6d31+'\x5c\x5c','g'),''),_0xa42900=_0xa42900['replace'](new RegExp(_0x2d6d31+_0x4a1758(_0x155852._0x426485,0x3d3,0x44e,_0x155852._0x491086),'g'),''),_0xa42900=_0xa42900[_0x434931(-_0x155852._0x40e1ee,-0x5e,-_0x155852._0x2a432e,0x1c)](/[\u0080-\u009F]/g,''),_0xa42900=_0xa42900[_0x4a1758(0x135,0xcb,0xed,0x18a)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0xa42900=_0xa42900[_0x4a1758(0x13c,0x236,_0x155852._0x545c38,_0x155852._0x1421dc)](/[\u23CE\u2424]/g,''),_0xa42900;}function resolveWorkingDirectory(_0x3b0861,_0x35f4eb,_0x1b6b1a){const _0x529a4d={_0x4f17c6:0x410,_0xc37f4d:0x2ca,_0x117464:0x2b0,_0x8a9b7b:0x323,_0x23242a:0x30b,_0x10f2ec:0x3b5},_0x156fc0={_0x1e973c:0x2ce},_0x12fbbb={_0x346cbb:0x9e,_0x3c8fba:0x325,_0x2d16c2:0xb8};function _0x3fd782(_0x987340,_0xb1e571,_0x548bf9,_0x167097){return _0x38d42b(_0x987340-_0x12fbbb._0x346cbb,_0x167097-_0x12fbbb._0x3c8fba,_0x548bf9,_0x167097-_0x12fbbb._0x2d16c2);}const _0x2f6e70=resolveAllowedPath(_0x35f4eb,_0x1b6b1a,_0x3b0861??'.');function _0x4a037f(_0x203ad4,_0x525767,_0x261097,_0x41b513){return _0x37c1da(_0x203ad4-0xf2,_0x525767-0x29,_0x203ad4,_0x41b513- -_0x156fc0._0x1e973c);}try{const _0x310b44=statSync(_0x2f6e70);if(!_0x310b44[_0x4a037f(_0x529a4d._0x4f17c6,0x3a2,0x23a,_0x529a4d._0xc37f4d)]())throw new ToolExecutionError(_0x3fd782(_0x529a4d._0x117464,_0x529a4d._0x8a9b7b,_0x529a4d._0x23242a,_0x529a4d._0x10f2ec)+_0x2f6e70,{'cwd':_0x2f6e70});return _0x2f6e70;}catch(_0x26dedc){if(_0x26dedc instanceof ToolExecutionError)throw _0x26dedc;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x2f6e70,{'cwd':_0x2f6e70});}}function killProcessGroup(_0x5c0d42,_0x40554d,_0x48e342=_0x37c1da(0x3b5,0x42c,0x46f,0x44b)){const _0x10be3b={_0x44541b:0xf9,_0x531745:0x2a9,_0x3947de:0xc2,_0x3dc1af:0x193,_0x194207:0xb2,_0x4d7920:0xf2,_0x4b4468:0x190,_0x511df0:0x364,_0x1743d8:0x3c0,_0x2f76e7:0x1f9,_0x1476eb:0x1a8,_0x13b990:0x11a,_0x459046:0x3ed,_0x1d1fca:0x506,_0x44f29a:0x50f,_0x8b64e6:0x39d},_0x3958e4={_0x297d29:0x17e,_0x196144:0x1f0,_0x32a16c:0x41},_0x443e39={_0x170868:0x1dc};if(!_0x5c0d42['pid'])return;function _0x3808f4(_0x2e25f9,_0x5ce40a,_0x47f2a1,_0x1fba0d){return _0x38d42b(_0x2e25f9-0x1e1,_0x5ce40a- -0x249,_0x1fba0d,_0x1fba0d-_0x443e39._0x170868);}if(_0x40554d)try{_0x3b0a63('taskkill',[_0x3808f4(-0x219,-0x229,-0x28c,-_0x10be3b._0x44541b),_0x5c0d42[_0x2fbb3f(0x1f9,0x12a,0x262,_0x10be3b._0x531745)][_0x3808f4(-0x25a,-0x1df,-_0x10be3b._0x3947de,-_0x10be3b._0x3dc1af)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5c0d42[_0x3808f4(-_0x10be3b._0x194207,-0x4c,_0x10be3b._0x4d7920,-_0x10be3b._0x4b4468)](_0x48e342);return;}function _0x2fbb3f(_0x4c6fc9,_0x4263cf,_0x38c70c,_0x55c468){return _0x38d42b(_0x4c6fc9-_0x3958e4._0x297d29,_0x4c6fc9-_0x3958e4._0x196144,_0x4263cf,_0x55c468-_0x3958e4._0x32a16c);}try{process[_0x2fbb3f(0x3ed,_0x10be3b._0x511df0,0x30b,_0x10be3b._0x1743d8)](-_0x5c0d42[_0x2fbb3f(_0x10be3b._0x2f76e7,_0x10be3b._0x1476eb,_0x10be3b._0x13b990,0x207)],_0x48e342);}catch{_0x5c0d42[_0x2fbb3f(_0x10be3b._0x459046,_0x10be3b._0x1d1fca,_0x10be3b._0x44f29a,_0x10be3b._0x8b64e6)](_0x48e342);}}function appendChunk(_0x1e7613,_0xa18800,_0x27564a,_0x404f5d,_0x2e4449){const _0x108ca5={_0x425351:0x2e8,_0x47455a:0x2b7,_0xd4c035:0x263,_0x3d3231:0x21f,_0x314237:0x193},_0x185bba={_0x57b577:0x9a,_0x45f114:0xce},_0x229280={_0x1a22b3:0x33,_0x307d8e:0x658},_0x2181c5=_0x404f5d?stripAnsiAndControls(_0x27564a):_0x27564a;function _0x39bef2(_0x5713e8,_0xd2384c,_0x56b1d3,_0x4eae86){return _0x37c1da(_0x5713e8-0xee,_0xd2384c-_0x229280._0x1a22b3,_0x56b1d3,_0xd2384c- -_0x229280._0x307d8e);}if(_0x2181c5['length']===0x0)return;function _0x1e18d7(_0x59ad53,_0x186b08,_0x352f8a,_0x4fe153){return _0x38d42b(_0x59ad53-_0x185bba._0x57b577,_0x59ad53- -0x211,_0x186b08,_0x4fe153-_0x185bba._0x45f114);}_0x1e7613[_0x39bef2(-_0x108ca5._0x425351,-0x25f,-0x291,-_0x108ca5._0x47455a)](_0x2181c5),_0xa18800[_0x1e18d7(-_0x108ca5._0xd4c035,-_0x108ca5._0x3d3231,-0x2c5,-_0x108ca5._0x314237)](_0x2181c5),_0x2e4449();}function createBashTool(_0x48138f={}){const _0x42bcb8={_0x1b92a2:0x161,_0x201614:0x557,_0x4c8d34:0x509,_0xb2c0cd:0x6a0,_0xa6cad2:0x65,_0x275779:0x1bf,_0x35a692:0x392,_0x101f32:0x28f,_0x1fdda2:0x163,_0x4e6943:0x130,_0x302b37:0x1df,_0x1d6658:0x231,_0x537e5b:0x1e1,_0x780ccc:0x45d,_0x513b92:0x330,_0x2ed003:0x337,_0x4bfb99:0x29b,_0xf83fc8:0x1ed,_0x263bc9:0x3ab,_0xba1254:0x300,_0x4eb8af:0x2df,_0x1f617c:0x9f},_0x2ce309={_0x41995a:0x110,_0x1392f7:0x199,_0xf6dcb1:0x2a,_0x2d5627:0x49,_0x51c05d:0xbf,_0x572e31:0xc9,_0x505b58:0x115,_0x7e3cc6:0x121,_0x5b36cc:0x1f9,_0x558866:0x33e,_0x29a08f:0x1a0,_0x1a53e4:0xc9,_0xa45f75:0x1b8,_0x779a0d:0xa4,_0x5d1966:0x28b,_0x3f7aef:0x1da,_0x4aa3e0:0x149,_0x153499:0x349,_0x347f96:0x339,_0xb283d1:0x8a,_0x38b581:0x192,_0x4ab77d:0x194,_0x33d2eb:0x24c,_0x446490:0x168,_0x5a7eab:0xde,_0x4dba80:0x210,_0x36bc3e:0x241,_0x3213ac:0x143,_0x13eab0:0x125,_0x1b5067:0x1c2,_0x54e445:0x250,_0x475bdd:0x1b5,_0x559128:0x1a3,_0x481587:0xc,_0x2371d9:0x81,_0x5af5b1:0x28a,_0x4995d8:0x2ef,_0x441714:0x2a8,_0x568770:0x19c,_0x1f705c:0x102,_0x310250:0xcb,_0x489713:0x56,_0x430bf5:0x1c9,_0x561746:0x267,_0x3b3c0f:0x2ac,_0x9e1d58:0x181,_0x1e06c1:0xce,_0x1b3f4b:0x2ed,_0x28db6a:0x3ad,_0x57a5f6:0x69,_0x418cc7:0x26b,_0x2622ba:0x21c,_0x334b1c:0x135,_0x35b2c9:0x1dd,_0x2aa379:0x2f7,_0x4909c3:0x207,_0x3e182f:0x292,_0x3037f1:0x31,_0x43c4e7:0x1be,_0xf52d79:0x1a2,_0x77f1ea:0x4b,_0x1160c3:0x217,_0x4a0f60:0x151,_0x357a76:0x7f,_0x176805:0x285,_0x5b18d1:0x2d3,_0x1ae162:0x87,_0x299480:0x273,_0x2248b0:0x4d,_0x52bf30:0xaf,_0xe763d0:0x1c4,_0x2581b9:0x7e,_0x4a1bdd:0x1fd,_0x494482:0x81,_0x564bf0:0x5f,_0x41c31d:0x1bd,_0x896c63:0xd5,_0x1bf0c5:0x2fe,_0x429640:0x27d,_0x217c9a:0x146,_0x3b0a8c:0x233,_0x46092a:0x1ae,_0x4eaf09:0x245,_0x446c15:0x1ca,_0x25a139:0x25c,_0x4f6907:0x200,_0x4c8e22:0x229,_0x14339e:0x19c},_0x12107b={_0x88db48:0x1f6,_0x25121a:0x63,_0x1905e7:0x164,_0x4b86fc:0xb1,_0x15a65a:0x40},_0xbd2b6c={_0x2f563a:0x455},_0x6bf3cb={_0x584af3:0x1ec,_0x5b46c8:0x3ed};function _0x3c9dea(_0x152631,_0x4e4395,_0x42ea98,_0x56e2ab){return _0x38d42b(_0x152631-0x1bf,_0x152631-0x329,_0x4e4395,_0x56e2ab-0x1dc);}const _0x39f2f2=_0x4f1757[_0x592ff8(0x130,0x78,0x7f,_0x42bcb8._0x1b92a2)](_0x48138f[_0x3c9dea(_0x42bcb8._0x201614,_0x42bcb8._0x4c8d34,_0x42bcb8._0xb2c0cd,0x417)]??process[_0x592ff8(0x14d,0x202,0x133,0x1e0)]());function _0x592ff8(_0x7942e9,_0x5bffac,_0x35ac3c,_0x3f0f89){return _0x37c1da(_0x7942e9-_0x6bf3cb._0x584af3,_0x5bffac-0x4c,_0x5bffac,_0x3f0f89- -_0x6bf3cb._0x5b46c8);}const _0x2a8439=(_0x48138f[_0x592ff8(0xfc,-0x82,_0x42bcb8._0xa6cad2,0x1a)]??[])[_0x592ff8(_0x42bcb8._0x275779,0x3a8,_0x42bcb8._0x35a692,_0x42bcb8._0x101f32)](_0x5c7aeb=>_0x4f1757[_0x3c9dea(0x42c,0x3c1,0x462,0x46e)](_0x5c7aeb)),_0x4f55ad=_0x48138f['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS,_0x524af5=_0x48138f['stripAnsi']??!![],_0x481574=_0x48138f[_0x592ff8(0x4d,0x62,_0x42bcb8._0x1fdda2,0x179)]??_0x592ff8(_0x42bcb8._0x4e6943,_0x42bcb8._0x302b37,_0x42bcb8._0x1d6658,_0x42bcb8._0x537e5b);return defineTool({'name':_0x481574,'description':_0x48138f[_0x3c9dea(_0x42bcb8._0x780ccc,0x430,0x3f9,_0x42bcb8._0x513b92)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x3c9dea(_0x42bcb8._0x2ed003,0x3f1,_0x42bcb8._0x4bfb99,_0x42bcb8._0xf83fc8),'properties':{'command':{'type':_0x3c9dea(_0x42bcb8._0x263bc9,0x3fc,0x48d,0x2cd)},'cwd':{'type':_0x3c9dea(_0x42bcb8._0x263bc9,0x2e5,0x2c6,0x44b)},'timeoutMs':{'type':_0x3c9dea(_0x42bcb8._0xba1254,0x324,_0x42bcb8._0x4eb8af,0x3a5)},'ignoreOutput':{'type':'boolean'}},'required':[_0x592ff8(0x1c9,_0x42bcb8._0x1f617c,0x202,0x157)]},async *'execute'(_0x3cdbe2,_0x351888){const _0x52e9a3={_0x25ac3d:0x12,_0x26e37e:0x109,_0x46deb4:0x1fd,_0x10a988:0x346},_0x171591={_0x85ff7a:0x10c,_0x18c3e6:0x52,_0x22e59a:0x11f,_0x338840:0xcf},_0x1dc215={_0x1c839e:0x27,_0xa10aa2:0x107,_0x5d05c6:0x143},_0x567d50={_0x65ffc2:0x4d,_0x1ac0fc:0xb4},_0x1a79b1={_0x12dc91:0x5eb},_0x48172c={_0x4306e2:0x29e,_0x1def6e:0x436,_0x57fb60:0x373,_0x4d01d9:0x38d},_0x76a778={_0x17e45d:0x56a,_0x21aa93:0x11d},_0xfc4e0e={_0x541acc:0x3a,_0x11bead:0x3c};function _0xbd36b5(_0x476ab6,_0x1639d1,_0x2ffa7c,_0x3e12b4){return _0x592ff8(_0x476ab6-_0xfc4e0e._0x541acc,_0x3e12b4,_0x2ffa7c-_0xfc4e0e._0x11bead,_0x2ffa7c- -0x278);}const _0xb073b0=_0x3cdbe2[_0x2353d7(-_0x2ce309._0x41995a,-0x8b,-_0x2ce309._0x1392f7,-0x167)]??_0x4f55ad;if(!Number[_0xbd36b5(_0x2ce309._0xf6dcb1,-0x17b,-_0x2ce309._0x2d5627,_0x2ce309._0x51c05d)](_0xb073b0)||_0xb073b0<0x1)throw new ToolExecutionError(_0xbd36b5(0x42,-0xa8,-_0x2ce309._0x572e31,-_0x2ce309._0x505b58),{'command':_0x3cdbe2[_0xbd36b5(-0x224,-0x265,-_0x2ce309._0x7e3cc6,-0x213)]});throwIfAborted(_0x351888[_0x2353d7(-_0x2ce309._0x5b36cc,-_0x2ce309._0x558866,-_0x2ce309._0x29a08f,-_0x2ce309._0x1a53e4)]);const _0x37d5b9=resolveWorkingDirectory(_0x3cdbe2[_0x2353d7(-0x140,-0x1b,-_0x2ce309._0xa45f75,-_0x2ce309._0x779a0d)],_0x39f2f2,_0x2a8439),_0x5420c5=_0x3cdbe2[_0x2353d7(-0x2ce,-0x347,-0x1f8,-_0x2ce309._0x5d1966)]??![],_0x270f7e=resolveDefaultShell(_0x48138f[_0x2353d7(-0x209,-_0x2ce309._0x3f7aef,-_0x2ce309._0x4aa3e0,-_0x2ce309._0x153499)]),_0x330958=buildShellArgs(_0x3cdbe2['command'],_0x270f7e),_0x3fe3fe=_0x2bf8d7[_0xbd36b5(-0x26c,-_0x2ce309._0x347f96,-0x207,-0xcc)]()===_0xbd36b5(-_0x2ce309._0xb283d1,-_0x2ce309._0x38b581,-0x7c,-0x1c);let _0x4d8164;try{_0x4d8164=_0x3b0a63(_0x270f7e,_0x330958,{'cwd':_0x37d5b9,'env':{...process[_0xbd36b5(-_0x2ce309._0x4ab77d,-_0x2ce309._0x33d2eb,-_0x2ce309._0x446490,-_0x2ce309._0x5a7eab)],..._0x48138f[_0x2353d7(-_0x2ce309._0x4dba80,-0x328,-0xca,-0x135)]??{}},'stdio':_0x5420c5?[_0x2353d7(-_0x2ce309._0x36bc3e,-_0x2ce309._0x3213ac,-0x237,-_0x2ce309._0x13eab0),'ignore','ignore']:[_0xbd36b5(-_0x2ce309._0x1b5067,-_0x2ce309._0x54e445,-0x199,-0x97),_0xbd36b5(-_0x2ce309._0x475bdd,-_0x2ce309._0x559128,-0xa7,-_0x2ce309._0x481587),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x3fe3fe});}catch(_0x266a61){if(isErrnoException(_0x266a61)&&_0x266a61[_0xbd36b5(-0x10c,0x1d,-0x7e,-_0x2ce309._0x2371d9)]===_0x2353d7(-_0x2ce309._0x5af5b1,-_0x2ce309._0x4995d8,-_0x2ce309._0x441714,-_0x2ce309._0x568770))throw new ToolExecutionError(_0xbd36b5(-_0x2ce309._0x1f705c,-0x43,-0xb,_0x2ce309._0x310250)+_0x270f7e,{'command':_0x3cdbe2[_0xbd36b5(-0x143,-0x246,-_0x2ce309._0x7e3cc6,-0xf9)],'cwd':_0x37d5b9,'shellPath':_0x270f7e});throw new ToolExecutionError(_0x266a61 instanceof Error?_0x266a61[_0xbd36b5(-0x48,-0x13c,-0x137,-_0x2ce309._0x489713)]:String(_0x266a61),{'command':_0x3cdbe2[_0x2353d7(-_0x2ce309._0x430bf5,-_0x2ce309._0x561746,-_0x2ce309._0x3b3c0f,-_0x2ce309._0x9e1d58)],'cwd':_0x37d5b9,'shellPath':_0x270f7e});}const _0x58863e=[],_0x3862b0=[],_0x25695f=new StringDecoder(_0x2353d7(-0x162,-_0x2ce309._0x1e06c1,-0x182,-0x25f)),_0x2289a8=new StringDecoder('utf8');let _0xa41e6c,_0x59bc64=![],_0x27409f;const _0x3152fb=()=>{if(!_0xa41e6c)return;const _0x31198c=_0xa41e6c;_0xa41e6c=void 0x0,_0x31198c();},_0x1ebb29=async()=>{function _0x47f192(_0x1438a7,_0xd80155,_0x345c6b,_0x5bc646){return _0x2353d7(_0x5bc646-_0x76a778._0x17e45d,_0x1438a7,_0x345c6b-0x107,_0x5bc646-_0x76a778._0x21aa93);}if(_0x3862b0[_0x47f192(_0x48172c._0x4306e2,_0x48172c._0x1def6e,_0x48172c._0x57fb60,_0x48172c._0x4d01d9)]>0x0||_0x59bc64)return;await new Promise(_0x364983=>{_0xa41e6c=_0x364983;});},_0x3b482d=_0x4fbd72=>{function _0x4abd7a(_0x41980f,_0x5d49cb,_0x34c7f9,_0x375416){return _0x2353d7(_0x41980f-0x6a3,_0x375416,_0x34c7f9-0xa0,_0x375416-0x1ab);}appendChunk(_0x58863e,_0x3862b0,_0x25695f[_0x4abd7a(0x52b,_0xbd2b6c._0x2f563a,0x49e,0x586)](_0x4fbd72),_0x524af5,_0x3152fb);},_0x5da01d=_0x3e8118=>{appendChunk(_0x58863e,_0x3862b0,_0x2289a8['write'](_0x3e8118),_0x524af5,_0x3152fb);};_0x4d8164['stdout']?.['on']('data',_0x3b482d),_0x4d8164['stderr']?.['on'](_0x2353d7(-_0x2ce309._0x1b3f4b,-0x3c0,-_0x2ce309._0x28db6a,-0x2dd),_0x5da01d);let _0xe67c6e=![],_0x29b751;function _0x2353d7(_0x115f3a,_0x70ee00,_0x4537ee,_0x53a1c7){return _0x3c9dea(_0x115f3a- -_0x1a79b1._0x12dc91,_0x70ee00,_0x4537ee-0x1d9,_0x53a1c7-0x132);}const _0x5c1dc2=addAbortListener(_0x351888[_0xbd36b5(-_0x2ce309._0x57a5f6,-_0x2ce309._0x418cc7,-0x151,-0x262)],()=>{const _0x32c7af={_0x28179f:0x687,_0x320380:0x8e};_0x27409f=toAbortError(_0x351888[_0x3ccc4f(0x5e,0x177,-_0x1dc215._0x1c839e,0x1aa)][_0x3ccc4f(0x1cf,_0x1dc215._0xa10aa2,0x2ee,_0x1dc215._0x5d05c6)]),_0x59bc64=!![];function _0x3ccc4f(_0x3813a2,_0x31c4e6,_0xc90445,_0x38054a){return _0xbd36b5(_0x3813a2-_0x567d50._0x65ffc2,_0x31c4e6-_0x567d50._0x1ac0fc,_0x3813a2-0x1af,_0xc90445);}function _0xcc1ab0(_0x1a44d8,_0x46c344,_0x284ae4,_0x10b703){return _0x2353d7(_0x1a44d8-_0x32c7af._0x28179f,_0x46c344,_0x284ae4-0xcc,_0x10b703-_0x32c7af._0x320380);}_0x3152fb();try{killProcessGroup(_0x4d8164,_0x3fe3fe);}catch{}});try{const _0x3c6df7=new Promise((_0x3a604f,_0x30eed5)=>{const _0x3040f0={_0x102432:0x175},_0x282599={_0x51ff8a:0x2},_0x344439={_0x23f857:0x593,_0x1326c2:0x5f3,_0x5198e0:0x57b},_0x14515b={_0x1a1dc4:0xc9},_0x4b21cf={_0x5edf5e:0x11b};function _0x480cfe(_0x575cb0,_0x4a8b63,_0x353efb,_0x2de247){return _0x2353d7(_0x353efb-0x114,_0x575cb0,_0x353efb-_0x4b21cf._0x5edf5e,_0x2de247-0x1a9);}const _0x22e34a=()=>{function _0x3043db(_0x304cc7,_0xe25850,_0x20c0d7,_0x5dcd96){return _0xa38c(_0x20c0d7-0x2f9,_0xe25850);}_0x29b751&&(clearTimeout(_0x29b751),_0x29b751=void 0x0);function _0x330adf(_0x27449f,_0x6b3e5b,_0x272e9d,_0x23a438){return _0xa38c(_0x27449f- -_0x14515b._0x1a1dc4,_0x6b3e5b);}_0x4d8164[_0x3043db(_0x344439._0x23f857,0x64f,0x57b,0x546)](_0x3043db(0x620,0x560,_0x344439._0x1326c2,0x6ca),_0x5909fe),_0x4d8164[_0x3043db(0x448,0x62a,_0x344439._0x5198e0,0x635)](_0x330adf(0xb6,0x11f,0xd0,0x1c6),_0x4deeb4);},_0x5909fe=_0x255176=>{_0x59bc64=!![],_0x3152fb(),_0x22e34a(),_0x30eed5(_0x27409f??_0x255176);},_0x4deeb4=(_0x4c342a,_0x5582dd)=>{const _0x1ac319={_0x355338:0x304},_0x1c8753={_0xcb1a9b:0x38b};_0xe67c6e=!![],appendChunk(_0x58863e,_0x3862b0,_0x25695f[_0x2b9297(0x10,-_0x171591._0x85ff7a,0x36,-_0x171591._0x18c3e6)](),_0x524af5,_0x3152fb);function _0x5b9fbd(_0x3e5e47,_0x4b7908,_0x100bd6,_0x32cf34){return _0xa38c(_0x4b7908- -_0x1c8753._0xcb1a9b,_0x100bd6);}appendChunk(_0x58863e,_0x3862b0,_0x2289a8[_0x5b9fbd(-_0x171591._0x22e59a,-0x77,_0x171591._0x338840,0xd4)](),_0x524af5,_0x3152fb),_0x59bc64=!![];function _0x2b9297(_0x1db159,_0x28fc19,_0x3c0bf7,_0x4d2acf){return _0xa38c(_0x1db159- -_0x1ac319._0x355338,_0x4d2acf);}_0x3152fb(),_0x22e34a();if(_0x27409f){_0x30eed5(_0x27409f);return;}_0x3a604f({'code':_0x4c342a,'signal':_0x5582dd});};_0x29b751=setTimeout(()=>{_0x59bc64=!![];function _0x2f1a4d(_0x19f8ca,_0x18e242,_0x2fdd27,_0x1d5ce6){return _0xa38c(_0x2fdd27-0x2a,_0x19f8ca);}_0x3152fb();function _0xd14dcb(_0x13656a,_0x25faab,_0x511856,_0xe0fcac){return _0xa38c(_0x511856- -_0x282599._0x51ff8a,_0xe0fcac);}_0x22e34a();try{killProcessGroup(_0x4d8164,_0x3fe3fe);}catch{}_0x30eed5(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0xb073b0+_0xd14dcb(-0x3e,-_0x52e9a3._0x25ac3d,_0x52e9a3._0x26e37e,0x6e),{'command':_0x3cdbe2[_0xd14dcb(0x232,0x2d6,_0x52e9a3._0x46deb4,_0x52e9a3._0x10a988)],'cwd':_0x37d5b9,'shellPath':_0x270f7e,'timeoutMs':_0xb073b0,'timedOut':!![]}));},_0xb073b0);function _0xc9a140(_0x42fbcf,_0x4720f5,_0x402ce0,_0x2dc027){return _0xbd36b5(_0x42fbcf-0x1c1,_0x4720f5-0x1cd,_0x402ce0-_0x3040f0._0x102432,_0x2dc027);}_0x4d8164[_0x480cfe(-0x1eb,-_0x12107b._0x88db48,-0xc2,_0x12107b._0x25121a)]('error',_0x5909fe),_0x4d8164[_0x480cfe(-_0x12107b._0x1905e7,-_0x12107b._0x4b86fc,-0xc2,_0x12107b._0x15a65a)]('close',_0x4deeb4);});while(_0x3862b0[_0xbd36b5(-_0x2ce309._0x2622ba,-0x24b,-_0x2ce309._0x334b1c,-0xfd)]>0x0||!_0x59bc64){if(_0x3862b0[_0x2353d7(-_0x2ce309._0x35b2c9,-_0x2ce309._0x2aa379,-0x1db,-0x2fc)]===0x0){await _0x1ebb29();continue;}const _0x7c63a4=_0x3862b0[_0x2353d7(-_0x2ce309._0x4909c3,-0x1a5,-0x1bb,-_0x2ce309._0x3e182f)]();_0x7c63a4!==void 0x0&&(yield _0x7c63a4);}const _0xe976fe=await _0x3c6df7,_0x2f8bab=_0x5420c5?_0x2353d7(-0x10d,-0x54,-0xf0,-0x24b)+(_0xe976fe['code']??0x0):_0x58863e[_0xbd36b5(-0xbf,0x97,-_0x2ce309._0x3037f1,0xfa)](''),_0x307669={'command':_0x3cdbe2['command'],'cwd':_0x37d5b9,'exitCode':_0xe976fe[_0x2353d7(-0x126,-_0x2ce309._0x43c4e7,-_0x2ce309._0xf52d79,-_0x2ce309._0x77f1ea)]??0x0,'signal':_0xe976fe[_0xbd36b5(-0xf3,-_0x2ce309._0x1160c3,-_0x2ce309._0x4a0f60,-0x296)],'ignoreOutput':_0x5420c5,'shellPath':_0x270f7e,'timeoutMs':_0xb073b0};if(_0xe976fe[_0xbd36b5(-0x18d,0x8c,-0x7e,-_0x2ce309._0x357a76)]!==0x0)throw new ToolExecutionError(_0x2f8bab||_0x2353d7(-0x2d0,-0x26e,-_0x2ce309._0x176805,-_0x2ce309._0x5b18d1)+(_0xe976fe[_0x2353d7(-0x126,-0x1c1,-_0x2ce309._0x1ae162,-_0x2ce309._0x299480)]??0x0),_0x307669);return createToolOutput(_0x2f8bab,_0x307669);}catch(_0x1488f5){while(_0x3862b0[_0xbd36b5(-0x88,-0x59,-0x135,-_0x2ce309._0x2248b0)]>0x0){const _0x5ebd03=_0x3862b0['shift']();_0x5ebd03!==void 0x0&&(yield _0x5ebd03);}if(_0x1488f5 instanceof ToolExecutionError)throw _0x1488f5;if(_0x27409f)throw _0x27409f;if(isErrnoException(_0x1488f5)&&_0x1488f5[_0xbd36b5(_0x2ce309._0x52bf30,-_0x2ce309._0xe763d0,-_0x2ce309._0x2581b9,-0x11a)]===_0xbd36b5(-0x1a8,-_0x2ce309._0x4a1bdd,-0x1e2,-0x2a3))throw new ToolExecutionError(_0xbd36b5(_0x2ce309._0x494482,0xb4,-0xb,_0x2ce309._0x564bf0)+_0x270f7e,{'command':_0x3cdbe2[_0xbd36b5(-0x14c,-_0x2ce309._0x41c31d,-0x121,-_0x2ce309._0x896c63)],'cwd':_0x37d5b9,'shellPath':_0x270f7e});throw new ToolExecutionError(_0x1488f5 instanceof Error?_0x1488f5[_0x2353d7(-0x1df,-_0x2ce309._0x1bf0c5,-0x1f3,-0x300)]:String(_0x1488f5),{'command':_0x3cdbe2[_0x2353d7(-_0x2ce309._0x430bf5,-_0x2ce309._0x429640,-0x12d,-0x2a2)],'cwd':_0x37d5b9,'shellPath':_0x270f7e});}finally{_0x29b751&&clearTimeout(_0x29b751);_0x5c1dc2(),_0x4d8164['stdout']?.[_0x2353d7(-_0x2ce309._0x217c9a,-0x51,-_0x2ce309._0x3b0a8c,0x0)](_0xbd36b5(-0x31a,-_0x2ce309._0x46092a,-_0x2ce309._0x4eaf09,-_0x2ce309._0x446c15),_0x3b482d),_0x4d8164[_0x2353d7(-_0x2ce309._0x25a139,-0x218,-_0x2ce309._0x4f6907,-_0x2ce309._0x4c8e22)]?.['off'](_0xbd36b5(-0x23b,-_0x2ce309._0x3b3c0f,-_0x2ce309._0x4eaf09,-0xf9),_0x5da01d);if(!_0xe67c6e&&_0x4d8164[_0xbd36b5(-_0x2ce309._0x14339e,-0x2ae,-0x211,-_0x2ce309._0x4a0f60)]&&!_0x4d8164['killed'])try{killProcessGroup(_0x4d8164,_0x3fe3fe);}catch{}}}});}function createShellExecTool(_0x1ce1b0={}){return createBashTool(_0x1ce1b0);}import{readdir,readFile as _0xf2e019}from'fs/promises';import{extname,join as _0x55e822}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x16f190,join,relative as _0x2ef98c,resolve as _0x4ae6af}from'path';import{readdir as _0x242fe9,readFile as _0x4de07e}from'fs/promises';import{join as _0x24bcf1,relative as _0x489c65,sep}from'path';import{delimiter}from'path';function _0x38d42b(_0x5d8cc9,_0x470ef1,_0x180f05,_0x2b5f0c){const _0x3ce953={_0x632319:0x106};return _0xa38c(_0x470ef1- -_0x3ce953._0x632319,_0x180f05);}import{mkdir as _0x4e69a0,rm,stat as _0x4504f5,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x36aed2}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4f7a6b,rename,writeFile as _0x3a72a9}from'fs/promises';import{homedir as _0x4c02e6}from'os';import{dirname as _0x1e66f6,isAbsolute as _0x4dbf93,join as _0x33b93e,resolve as _0x3896b5}from'path';import{parse as _0x221ba8,stringify as _0x826243}from'yaml';import{cp,mkdir as _0x26af87,readFile as _0x428883,rm as _0x2db0df,writeFile as _0x31dbcc}from'fs/promises';import{homedir}from'os';import{join as _0x49202f}from'path';import{parse as _0x380e96,stringify as _0x50bf1c}from'yaml';import{z}from'zod';import{readdir as _0x2db8b2,readFile as _0x23a028}from'fs/promises';import{join as _0x5962e9}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x5b2306){const _0x1775d1={_0x58c46e:0x352,_0x592561:0x3ec,_0x926bb0:0x363,_0x5572c5:0x2fa,_0x254473:0x46f,_0x2351c5:0x14f,_0x30035e:0x378,_0x9d935c:0x225},_0x5dfa2e={_0x17ea41:0x1cd},_0x471fcc=[];let _0x24d0ba='';function _0x1dd2b8(_0x46c29d,_0x47afac,_0x31b6d9,_0x51d0f3){return _0x37c1da(_0x46c29d-0x1dd,_0x47afac-0xeb,_0x51d0f3,_0x46c29d- -_0x5dfa2e._0x17ea41);}let _0x2bbacd=0x0;while(_0x2bbacd<_0x5b2306[_0x1dd2b8(0x363,0x38d,_0x1775d1._0x58c46e,_0x1775d1._0x592561)]){const _0x3a0cc1=_0x5b2306[_0x2bbacd];if(_0x3a0cc1==='\x5c'&&_0x2bbacd+0x1<_0x5b2306[_0x1dd2b8(_0x1775d1._0x926bb0,0x263,0x224,0x33b)])_0x24d0ba+=_0x5b2306[_0x2bbacd+0x1],_0x2bbacd+=0x2;else{if(_0x3a0cc1==='\x22'||_0x3a0cc1==='\x27'){const _0x135eab=_0x3a0cc1;_0x2bbacd++;while(_0x2bbacd<_0x5b2306[_0x1dd2b8(0x363,0x49d,_0x1775d1._0x5572c5,_0x1775d1._0x254473)]&&_0x5b2306[_0x2bbacd]!==_0x135eab){_0x5b2306[_0x2bbacd]==='\x5c'&&_0x2bbacd+0x1<_0x5b2306['length']?(_0x24d0ba+=_0x5b2306[_0x2bbacd+0x1],_0x2bbacd+=0x2):(_0x24d0ba+=_0x5b2306[_0x2bbacd],_0x2bbacd++);}_0x2bbacd++;}else _0x3a0cc1!==void 0x0&&/\s/[_0x1dd2b8(0x275,_0x1775d1._0x2351c5,_0x1775d1._0x30035e,0x2d8)](_0x3a0cc1)?(_0x24d0ba&&(_0x471fcc[_0x4a6dc0(-0x13e,-0x80,-0x1ce,-_0x1775d1._0x9d935c)](_0x24d0ba),_0x24d0ba=''),_0x2bbacd++):(_0x24d0ba+=_0x3a0cc1,_0x2bbacd++);}}if(_0x24d0ba)_0x471fcc['push'](_0x24d0ba);function _0x4a6dc0(_0x2ee3c0,_0x1b492d,_0x2f8508,_0xa0e420){return _0x38d42b(_0x2ee3c0-0x106,_0x2ee3c0- -0xec,_0x2f8508,_0xa0e420-0x71);}return _0x471fcc;}function renderCommandInstructions(_0x19110e){const _0x32d14b={_0xdaa197:0x1d,_0x12c357:0xbe,_0xa528bd:0x88,_0x52a582:0x3da,_0x3c0acc:0x4b5,_0x1b8a4c:0x2d5,_0x5f3532:0x125,_0x3b3151:0x11e,_0xbd1b32:0x1cd,_0x5086ac:0x193,_0x343a7d:0x9c,_0x22d41c:0x4e7,_0x4fc973:0x573,_0x24399e:0x4ba,_0x3f2c08:0x3da,_0x2ce33:0x36c,_0x454e00:0x550,_0x4b9965:0x5cb,_0x419acf:0x4db},_0x1fb6c4={_0x180abc:0x2ad},_0x41e383={_0x5718c5:0x4c0,_0x12573c:0x5d2},_0x4a081b={_0x388709:0x142,_0x4e325e:0x128},_0x4b348e={_0x873546:0x15e,_0x7fcb35:0x402};let _0x5d45c0=_0x19110e[_0x41fbe6(-_0x32d14b._0xdaa197,-_0x32d14b._0x12c357,-0x1,-_0x32d14b._0xa528bd)],_0x32d2c0=![];const _0x2ce59f=tokenizeCommandArguments(_0x19110e['argumentsText']);function _0x1dfaca(_0xd65215,_0x5c2e59,_0x4ad78e,_0xaf554){return _0x38d42b(_0xd65215-_0x4b348e._0x873546,_0x5c2e59-_0x4b348e._0x7fcb35,_0xaf554,_0xaf554-0x18e);}_0x5d45c0=_0x5d45c0[_0x1dfaca(0x2fc,_0x32d14b._0x52a582,0x43b,_0x32d14b._0x3c0acc)](/\$ARGUMENTS\[(\d+)\]/g,(_0xa66cff,_0x2066cf)=>{return _0x32d2c0=!![],_0x2ce59f[Number(_0x2066cf)]??'';}),_0x5d45c0=_0x5d45c0[_0x41fbe6(-0x1f7,-_0x32d14b._0x1b8a4c,-0x402,-0x261)](/\$ARGUMENTS\b/g,()=>{function _0xf7f06a(_0x18711d,_0x25c35f,_0x1a0aab,_0x158468){return _0x41fbe6(_0x18711d-_0x4a081b._0x388709,_0x25c35f-0x721,_0x1a0aab-_0x4a081b._0x4e325e,_0x1a0aab);}return _0x32d2c0=!![],_0x19110e[_0xf7f06a(_0x41e383._0x5718c5,_0x41e383._0x12573c,0x5f1,0x6d9)];});if(_0x19110e[_0x41fbe6(-_0x32d14b._0x5f3532,-0x13b,-_0x32d14b._0x3b3151,-_0x32d14b._0xbd1b32)]&&_0x19110e['argumentNames']['length']>0x0)for(let _0xe47237=0x0;_0xe47237<_0x19110e[_0x41fbe6(-0x1d1,-0x13b,-_0x32d14b._0x5086ac,-_0x32d14b._0x343a7d)][_0x1dfaca(0x40a,_0x32d14b._0x22d41c,0x3f7,_0x32d14b._0x4fc973)];_0xe47237++){const _0x1afc44=_0x19110e[_0x1dfaca(0x690,0x574,0x5ca,0x5bd)][_0xe47237];if(_0x1afc44){const _0x30061d=new RegExp('\x5c$'+_0x1afc44+'\x5cb','g');_0x5d45c0=_0x5d45c0['replace'](_0x30061d,()=>{return _0x32d2c0=!![],_0x2ce59f[_0xe47237]??'';});}}function _0x41fbe6(_0x4c7fd3,_0x28bfc6,_0x1e665c,_0x515349){return _0x38d42b(_0x4c7fd3-0x132,_0x28bfc6- -_0x1fb6c4._0x180abc,_0x515349,_0x515349-0x145);}return _0x5d45c0=_0x5d45c0[_0x1dfaca(_0x32d14b._0x24399e,_0x32d14b._0x3f2c08,_0x32d14b._0x2ce33,0x41d)](/\$(\d+)\b/g,(_0x42e586,_0x589087)=>{return _0x32d2c0=!![],_0x2ce59f[Number(_0x589087)]??'';}),!_0x32d2c0&&_0x19110e[_0x1dfaca(0x59e,0x560,0x53c,0x5a1)]['trim']()&&(_0x5d45c0=_0x5d45c0+'\x0a\x0aARGUMENTS:\x20'+_0x19110e[_0x1dfaca(_0x32d14b._0x454e00,0x560,_0x32d14b._0x4b9965,_0x32d14b._0x419acf)]),_0x5d45c0;}var chatModelAuthSchemeSchema=z['enum']([_0x38d42b(0x100,0x67,0x43,-0xca),'x-api-key']),apiKeyAuthSchema=z[_0x38d42b(0x125,0xe,-0x95,0x35)]({'type':z['literal'](_0x37c1da(0x6b3,0x567,0x63f,0x64d)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x38d42b(0x1af,0xed,-0x33,0x9e)]()})[_0x38d42b(0x193,0xd4,0x21c,0x14c)](),oauthAuthSchema=z[_0x38d42b(0x6c,0xe,0x8f,0x22)]({'type':z[_0x37c1da(0x621,0x56f,0x589,0x5c8)](_0x38d42b(-0x82,0xb3,0x8b,0x9c)),'access':z[_0x38d42b(0xd7,0x82,-0x2e,-0x85)](),'refresh':z['string'](),'expires':z[_0x37c1da(0x3c6,0x3c1,0x547,0x422)]()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x38d42b(-0x3a,0xed,0xcc,-0xc)]()})[_0x37c1da(0x512,0x5ba,0x62d,0x51f)](),authMethodSchema=z[_0x37c1da(0x377,0x2d6,0x541,0x41a)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x38d42b(0x10b,0xe,0x9,0xbe)]({'id':z[_0x37c1da(0x45e,0x56b,0x3b1,0x4cd)](),'name':z[_0x37c1da(0x4d0,0x600,0x4c3,0x4cd)]()[_0x38d42b(0x24,0xed,0x155,-0x41)]()})['passthrough'](),modelConfigSchema=z[_0x38d42b(-0x159,-0x31,-0xc0,-0x2f)]([z[_0x38d42b(0xe2,0x17d,0xb3,0x49)](![]),z[_0x38d42b(0x24e,0x17d,0x27b,0x211)](!![]),z[_0x37c1da(0x527,0x50d,0x3e1,0x4cd)](),z[_0x38d42b(-0x103,-0x10,-0xbd,-0x2d)](z[_0x37c1da(0x478,0x5dd,0x5ef,0x4cd)]()),z[_0x37c1da(0x47f,0x33d,0x312,0x43b)](modelDefinitionSchema)]),chatModelSurfaceSchema=z['enum']([_0x38d42b(0xf2,-0x23,0x32,-0xe0),_0x38d42b(0x15b,0x118,0x234,0xb6),_0x37c1da(0x4cf,0x5f0,0x584,0x5dc),_0x37c1da(0x446,0x608,0x561,0x527)]),providerConfigSchema=z['object']({'apiKey':z['string']()[_0x37c1da(0x437,0x534,0x630,0x538)](),'token':z[_0x37c1da(0x4aa,0x4cf,0x5c6,0x4cd)]()['optional'](),'defaultModel':z['string']()['optional'](),'smallModel':z[_0x38d42b(0xd,0x82,-0x8,0x180)]()[_0x37c1da(0x422,0x643,0x664,0x538)](),'currentAuth':z['string']()[_0x37c1da(0x580,0x54c,0x624,0x538)](),'auth':z['array'](authMethodSchema)[_0x37c1da(0x609,0x659,0x4ff,0x538)](),'surface':chatModelSurfaceSchema['optional'](),'baseUrl':z[_0x37c1da(0x3ac,0x51d,0x4e1,0x4cd)]()[_0x37c1da(0x4f5,0x5f4,0x54f,0x538)](),'models':modelConfigSchema[_0x38d42b(-0x4c,0xed,0xc8,0x16d)](),'customHeaders':z[_0x38d42b(0x12b,0x1f9,0x334,0x218)](z[_0x38d42b(-0x8a,0x82,0x60,0x5e)](),z[_0x37c1da(0x575,0x388,0x4b9,0x4cd)]())[_0x38d42b(0xbe,0xed,0x11f,0x78)]()})['passthrough'](),mcpServerConfigSchema=z[_0x38d42b(0x10a,0xe,-0x11b,-0xa5)]({'command':z['string']()['optional'](),'args':z[_0x38d42b(-0x8e,-0x10,0x96,-0x14)](z[_0x37c1da(0x495,0x384,0x542,0x4cd)]())[_0x38d42b(0xad,0xed,0x44,0x22b)](),'env':z[_0x37c1da(0x5a4,0x57b,0x707,0x644)](z[_0x37c1da(0x468,0x53a,0x487,0x4cd)](),z[_0x38d42b(-0xc8,0x82,-0x9f,-0x30)]())[_0x37c1da(0x655,0x433,0x5d7,0x538)](),'transport':z[_0x37c1da(0x628,0x52c,0x597,0x532)](['stdio','http'])[_0x38d42b(0x116,0xed,0x21d,0x19f)](),'url':z['string']()[_0x37c1da(0x4dd,0x641,0x668,0x538)](),'headers':z['record'](z[_0x38d42b(-0xcb,0x82,-0x7c,0xfc)](),z[_0x37c1da(0x585,0x561,0x463,0x4cd)]())['optional'](),'prefix':z['string']()['optional'](),'timeoutMs':z[_0x38d42b(0x6f,-0x29,-0x5d,0x104)]()[_0x37c1da(0x565,0x53d,0x4ae,0x538)](),'enabled':z[_0x37c1da(0x6fc,0x661,0x5ed,0x62a)]()[_0x37c1da(0x593,0x4db,0x516,0x538)](),'auth':z[_0x37c1da(0x455,0x4a7,0x4cd,0x459)]({'type':z[_0x37c1da(0x43e,0x5c6,0x439,0x532)](['none',_0x37c1da(0x571,0x582,0x485,0x4b2),_0x38d42b(0x18b,0xb3,-0xd,0x126)]),'token':z[_0x37c1da(0x5d3,0x3c0,0x4c7,0x4cd)]()['optional'](),'oauth':z[_0x38d42b(0x109,0xe,-0x4f,0x27)]({'clientId':z['string']()[_0x37c1da(0x49d,0x62d,0x604,0x538)](),'clientMetadataUrl':z[_0x37c1da(0x5bb,0x469,0x47d,0x4cd)]()[_0x37c1da(0x5ca,0x614,0x44b,0x538)](),'authorizationServer':z['string']()['optional'](),'scopes':z['array'](z[_0x38d42b(0xda,0x82,0x13e,0x197)]())[_0x38d42b(0x1a8,0xed,0x99,0x173)](),'tokenStorageKey':z[_0x38d42b(-0x28,0x82,0x97,0x153)]()['optional']()})[_0x38d42b(0x12c,0xd4,0x1a5,-0x52)]()[_0x37c1da(0x49b,0x651,0x62d,0x538)]()})[_0x38d42b(0x25,0xd4,0x1c7,0x83)]()['optional']()})[_0x38d42b(0x107,0xd4,0x120,0x104)](),mcpSettingsSchema=z[_0x38d42b(-0x71,0xe,0x12,0xe8)]({'servers':z[_0x38d42b(0x32c,0x1f9,0x307,0xc9)](z[_0x38d42b(0xd1,0x82,0x14e,0xcf)](),mcpServerConfigSchema)[_0x37c1da(0x5ae,0x3f6,0x586,0x538)](),'allowedTools':z[_0x37c1da(0x6ee,0x516,0x60a,0x644)](z[_0x38d42b(0xb2,0x82,-0xc5,0x9c)](),z['record'](z[_0x38d42b(0x19,0x82,0x6c,0x7f)](),z[_0x37c1da(0x6aa,0x55b,0x6ef,0x62a)]()))[_0x37c1da(0x5fd,0x5fd,0x46c,0x538)](),'defaultTimeoutMs':z[_0x38d42b(0xe6,-0x29,0x2d,-0x15d)]()[_0x37c1da(0x47b,0x531,0x477,0x538)]()})['passthrough'](),skillsSettingsSchema=z[_0x37c1da(0x3de,0x464,0x33e,0x459)]({'enabled':z[_0x37c1da(0x648,0x725,0x5dc,0x62a)]()['optional'](),'includeDefaults':z['boolean']()['optional'](),'directories':z[_0x37c1da(0x4c9,0x312,0x39a,0x43b)](z['string']())[_0x37c1da(0x583,0x5ee,0x57e,0x538)](),'exclude':z[_0x38d42b(-0xe5,-0x10,-0x9e,-0x129)](z['string']())[_0x37c1da(0x533,0x65a,0x624,0x538)]()})[_0x37c1da(0x3f5,0x527,0x4a9,0x51f)](),commandsSettingsSchema=z[_0x37c1da(0x4b3,0x387,0x380,0x459)]({'enabled':z[_0x37c1da(0x4f0,0x708,0x6e4,0x62a)]()[_0x37c1da(0x662,0x617,0x57d,0x538)](),'directories':z[_0x37c1da(0x421,0x49d,0x4f8,0x43b)](z['string']())[_0x38d42b(0xdd,0xed,0x74,0x7c)]()})[_0x38d42b(0x21c,0xd4,0xf4,-0x30)](),agentsSettingsSchema=z[_0x37c1da(0x3da,0x32a,0x399,0x459)]({'enabled':z[_0x38d42b(0xa2,0x1df,0x2bf,0x24a)]()[_0x38d42b(0x4,0xed,-0x9,0xd5)](),'includeDefaults':z[_0x37c1da(0x6c2,0x720,0x5a2,0x62a)]()[_0x38d42b(0x8c,0xed,0x20f,0x2a)](),'directories':z[_0x38d42b(-0x6c,-0x10,-0xee,-0x102)](z[_0x38d42b(0x184,0x82,0x86,0x78)]())[_0x37c1da(0x408,0x461,0x55a,0x538)]()})[_0x37c1da(0x5bd,0x442,0x40c,0x51f)](),uiThemeSettingsSchema=z['object']({'mode':z[_0x37c1da(0x45e,0x5e7,0x4da,0x532)]([_0x38d42b(0x269,0x16d,0x28a,0x21b),'dark',_0x37c1da(0x533,0x4a5,0x4db,0x411)])[_0x38d42b(0x37,0xed,0x1d8,-0x43)](),'colorLevel':z[_0x37c1da(0x56f,0x618,0x44e,0x532)](['auto',_0x38d42b(0x71,-0x33,0xa2,-0x2),_0x38d42b(-0x1c,0x91,0x103,0x13f),_0x37c1da(0x412,0x3c8,0x43c,0x480),_0x38d42b(0x179,0x185,0xe6,0x288)])[_0x38d42b(0xaf,0xed,0x1de,0x3b)](),'backgrounds':z[_0x37c1da(0x61e,0x458,0x45a,0x532)](['auto','on',_0x38d42b(0x199,0x17c,0x16f,0x2b5)])[_0x38d42b(0x10f,0xed,0x22b,0x99)](),'messageStyle':z['enum']([_0x37c1da(0x4ec,0x518,0x5ab,0x471),_0x38d42b(0x8f,-0xd,0x97,-0x152)])[_0x37c1da(0x560,0x3f1,0x665,0x538)]()})[_0x38d42b(0x1d1,0xd4,0x11c,0xa7)](),statuslineSegmentSchema=z[_0x37c1da(0x409,0x4f6,0x600,0x532)]([_0x38d42b(0x24,0x29,-0xdd,0x1),'session',_0x38d42b(0x296,0x1ab,0x106,0x11e),_0x38d42b(-0xbc,0x22,0x155,0x120),_0x38d42b(0x1e7,0x10d,0x204,0x95),'context',_0x37c1da(0x40c,0x5b0,0x4bc,0x478),'requests','tools',_0x37c1da(0x572,0x5a6,0x4a6,0x48f),'lsp',_0x37c1da(0x57c,0x70d,0x6bd,0x5c3),_0x38d42b(0x11d,-0x5,-0x126,-0x58),'memory',_0x38d42b(0x2a1,0x1bf,0x254,0x233)]),statuslineItemSchema=z['union']([statuslineSegmentSchema,z[_0x38d42b(0x207,0x17d,0x20f,0x1f6)]('|')]),statuslineRowSchema=z[_0x37c1da(0x497,0x3e0,0x324,0x43b)](statuslineItemSchema),statuslineConfigSchema=z[_0x38d42b(0xd6,0xe,0xb4,-0xa)]({'rows':z[_0x37c1da(0x64b,0x743,0x75b,0x614)]([statuslineRowSchema,statuslineRowSchema])[_0x37c1da(0x46e,0x41a,0x5f7,0x538)]()})[_0x37c1da(0x5fe,0x403,0x54a,0x51f)](),memorySettingsSchema=z[_0x37c1da(0x559,0x4fb,0x50e,0x459)]({'version':z[_0x37c1da(0x563,0x695,0x566,0x5c8)](0x2)[_0x38d42b(0x1d2,0xed,0x10e,0xcc)](),'retrieval':z[_0x38d42b(-0x11b,0xe,0xb1,0x82)]({'engine':z[_0x37c1da(0x6b4,0x541,0x6ff,0x5c8)]('bm25')[_0x38d42b(0x202,0xed,0x1a6,-0x5a)](),'candidateLimit':z[_0x37c1da(0x54e,0x4d2,0x47e,0x422)]()['optional'](),'activeCandidateLimit':z['number']()['optional'](),'activeEnabled':z[_0x37c1da(0x723,0x509,0x58f,0x62a)]()[_0x37c1da(0x4f7,0x401,0x545,0x538)](),'maxQueriesPerTurn':z[_0x38d42b(0x10c,-0x29,0x37,0x60)]()[_0x38d42b(0x8,0xed,0x201,0xd1)](),'coreInjectTokenBudget':z[_0x37c1da(0x33e,0x31e,0x39e,0x422)]()[_0x38d42b(0x15b,0xed,0x81,0x238)](),'injectTokenBudget':z['number']()[_0x38d42b(0xd2,0xed,0xa3,0x114)](),'minScore':z['number']()[_0x37c1da(0x4d3,0x4b7,0x4de,0x538)](),'freshnessHalfLifeDays':z[_0x37c1da(0x560,0x342,0x539,0x422)]()[_0x38d42b(0x16,0xed,0x229,-0x47)]()})[_0x38d42b(0x155,0xd4,0x60,-0x2b)]()[_0x37c1da(0x5ff,0x46c,0x5b0,0x538)](),'extraction':z[_0x37c1da(0x422,0x344,0x32e,0x459)]({'enabled':z[_0x38d42b(0x106,0x1df,0x210,0x20a)]()[_0x37c1da(0x646,0x42b,0x4fc,0x538)](),'provider':z[_0x38d42b(-0x3b,0x82,-0x4e,0xc7)]()[_0x38d42b(0x1b3,0xed,0x1d9,0x80)](),'model':z[_0x37c1da(0x47d,0x589,0x517,0x4cd)]()[_0x38d42b(0x14b,0xed,0x1a2,0x18d)](),'sensitiveFilter':z[_0x38d42b(0x170,0x1df,0x98,0x103)]()[_0x38d42b(0x7b,0xed,-0xe,0xba)]()})[_0x38d42b(0x10b,0xd4,-0x5b,0x18)]()[_0x38d42b(0x132,0xed,-0x1c,0x1c5)](),'index':z[_0x38d42b(-0x104,0xe,0x21,-0x2d)]({'persisted':z[_0x37c1da(0x6b8,0x733,0x61d,0x62a)]()['optional'](),'flushIntervalMs':z[_0x38d42b(-0x1b,-0x29,-0xb7,-0x132)]()[_0x38d42b(-0x3e,0xed,0xaa,0x21c)]()})['passthrough']()['optional'](),'enabled':z[_0x38d42b(0x1c4,0x1df,0xf3,0x19c)]()[_0x38d42b(-0x3d,0xed,0x217,0xf9)](),'saveTool':z['boolean']()[_0x38d42b(0x200,0xed,-0x7,0x27)](),'model':z[_0x37c1da(0x4bb,0x5be,0x4b3,0x4cd)]()[_0x38d42b(-0x31,0xed,-0xc,0xac)](),'provider':z['string']()['optional'](),'maxInjectionTokens':z[_0x37c1da(0x52d,0x30c,0x3de,0x422)]()[_0x38d42b(0xa4,0xed,0x113,0x1b1)](),'backgroundExtraction':z[_0x37c1da(0x587,0x689,0x730,0x62a)]()[_0x38d42b(0x207,0xed,0x1fb,0x1c5)]()})[_0x37c1da(0x442,0x423,0x45d,0x51f)](),recentModelSchema=z[_0x38d42b(-0x9e,0xe,-0xb2,0xe5)]({'provider':z[_0x38d42b(0x55,0x82,0x11e,0x171)](),'model':z[_0x37c1da(0x3bf,0x4f9,0x3d2,0x4cd)](),'usedAt':z[_0x37c1da(0x45d,0x4ec,0x44c,0x422)]()})['passthrough'](),lspServerEntrySchema=z[_0x38d42b(0x158,0xe,0x13c,0xcc)]({'disabled':z['boolean']()[_0x37c1da(0x657,0x631,0x668,0x538)](),'command':z[_0x37c1da(0x3a6,0x53c,0x3c6,0x4cd)]()['optional'](),'args':z[_0x37c1da(0x4dc,0x56c,0x328,0x43b)](z[_0x38d42b(0xe,0x82,0x108,0x147)]())[_0x38d42b(0xd1,0xed,0x99,0x9f)](),'rootMarkers':z[_0x38d42b(0x10f,-0x10,-0x31,-0x9e)](z[_0x38d42b(0x80,0x82,0x18f,0x1a9)]())['optional']()})[_0x38d42b(0x1a4,0xd4,0x123,-0x72)](),lspConfigSchema=z['object']({'enabled':z[_0x37c1da(0x5f0,0x57c,0x5df,0x62a)]()[_0x38d42b(-0x34,0xed,0x6b,-0x5f)](),'servers':z[_0x37c1da(0x524,0x733,0x59f,0x644)](z[_0x37c1da(0x4dd,0x579,0x5ae,0x4cd)](),lspServerEntrySchema)[_0x38d42b(0x180,0xed,0x16,0x145)]()})[_0x37c1da(0x451,0x597,0x3ea,0x51f)](),commandHookConfigSchema=z[_0x38d42b(0x21,0xe,0x120,-0x37)]({'type':z[_0x37c1da(0x53e,0x62b,0x646,0x5c8)](_0x37c1da(0x408,0x4dd,0x57f,0x544)),'command':z['string'](),'timeout':z[_0x38d42b(-0xae,-0x29,-0x97,-0xed)]()[_0x37c1da(0x50b,0x550,0x428,0x538)]()}),hookMatcherGroupSchema=z[_0x37c1da(0x45b,0x3d8,0x33c,0x459)]({'matcher':z[_0x38d42b(0x141,0x82,0x40,0xcc)]()[_0x38d42b(0xf8,0xed,0x224,0x10c)](),'hooks':z[_0x37c1da(0x303,0x3a6,0x415,0x43b)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x37c1da(0x4c2,0x46e,0x3c1,0x459)]({'PreToolUse':z[_0x37c1da(0x308,0x579,0x392,0x43b)](hookMatcherGroupSchema)[_0x37c1da(0x5c6,0x5ad,0x4f6,0x538)](),'PostToolUse':z[_0x38d42b(0x12c,-0x10,-0xa3,-0xd4)](hookMatcherGroupSchema)[_0x38d42b(0x1f1,0xed,-0x42,0x85)](),'UserPromptSubmit':z[_0x38d42b(-0x96,-0x10,-0x34,0x28)](hookMatcherGroupSchema)[_0x38d42b(-0x14,0xed,-0x2,0x10f)](),'Stop':z[_0x37c1da(0x42d,0x493,0x528,0x43b)](hookMatcherGroupSchema)[_0x38d42b(0x62,0xed,0x4,0x20c)](),'Notification':z[_0x38d42b(-0xb,-0x10,0x1,0x4b)](hookMatcherGroupSchema)[_0x37c1da(0x523,0x590,0x458,0x538)](),'SessionStart':z[_0x37c1da(0x465,0x3b5,0x393,0x43b)](hookMatcherGroupSchema)[_0x38d42b(0x11c,0xed,0xa4,0x67)](),'SessionEnd':z[_0x38d42b(-0x7c,-0x10,-0x12c,-0xc0)](hookMatcherGroupSchema)[_0x38d42b(-0x5c,0xed,0x154,0x1e2)]()}),cliConfigSchema=z[_0x38d42b(0x1f,0xe,0x129,0x12b)]({'activeProvider':z[_0x38d42b(0x1cb,0x82,0xda,0x1d)]()['optional'](),'activeModel':z['string']()[_0x38d42b(0x22e,0xed,0x64,0x112)](),'apiKey':z[_0x37c1da(0x52b,0x4ac,0x5b3,0x4cd)]()[_0x37c1da(0x40e,0x635,0x55a,0x538)](),'providers':z[_0x38d42b(0x262,0x1f9,0x2ad,0x2e4)](z[_0x37c1da(0x55e,0x464,0x409,0x4cd)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x37c1da(0x515,0x547,0x3fb,0x538)](),'skills':skillsSettingsSchema[_0x38d42b(-0xf,0xed,0x13c,0x68)](),'agents':agentsSettingsSchema[_0x37c1da(0x634,0x56b,0x684,0x538)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x38d42b(0x142,0x1f9,0x31c,0x224)](z[_0x37c1da(0x577,0x54b,0x4da,0x4cd)](),z[_0x37c1da(0x772,0x6c9,0x668,0x62a)]())[_0x38d42b(0x40,0xed,0xb4,0x25)](),'memory':memorySettingsSchema[_0x38d42b(0xdd,0xed,0x17c,0x172)](),'session':z[_0x38d42b(0x4f,0xe,0xb9,0xeb)]({'memPersist':z['boolean']()[_0x38d42b(-0x53,0xed,0x24,0x6b)](),'persistEventLog':z[_0x38d42b(0x10f,0x1df,0x271,0x238)]()[_0x37c1da(0x680,0x4ca,0x572,0x538)](),'persistHttpLog':z[_0x38d42b(0x31a,0x1df,0x26f,0x1d2)]()[_0x38d42b(0x151,0xed,0x1f4,0x1cd)]()})[_0x38d42b(0x25,0xd4,0xea,0x2d)]()[_0x37c1da(0x60b,0x605,0x64b,0x538)](),'requireToolApproval':z[_0x37c1da(0x6f1,0x694,0x72c,0x62a)]()['optional'](),'thinking':z['enum']([_0x38d42b(0x1b1,0x136,0x10c,0x15d),_0x38d42b(0x190,0x1e4,0x316,0x203),_0x37c1da(0x4dd,0x460,0x437,0x3fd),'HIGH'])[_0x38d42b(0x1c,0xed,0x179,0x10c)](),'streamingChunks':z[_0x38d42b(0x311,0x1df,0x2d4,0x1f4)]()['optional'](),'agentsEnabled':z[_0x37c1da(0x765,0x553,0x715,0x644)](z['string'](),z[_0x37c1da(0x6e6,0x751,0x531,0x62a)]())[_0x37c1da(0x42d,0x4d9,0x55c,0x538)](),'recentModels':z[_0x37c1da(0x43e,0x46b,0x411,0x43b)](recentModelSchema)['optional'](),'lsp':lspConfigSchema[_0x38d42b(0x16b,0xed,0x10c,0x1d2)](),'ui':z[_0x37c1da(0x346,0x408,0x476,0x459)]({'theme':uiThemeSettingsSchema[_0x38d42b(0x229,0xed,0x12f,-0x3e)](),'statusline':statuslineConfigSchema[_0x37c1da(0x506,0x61e,0x5d2,0x538)]()})['passthrough']()['optional'](),'tools':z[_0x37c1da(0x5d3,0x6f3,0x56f,0x644)](z[_0x37c1da(0x42f,0x46e,0x50c,0x4cd)](),z[_0x37c1da(0x4e1,0x550,0x4ab,0x551)]())[_0x38d42b(0x1fa,0xed,0x1d3,0x1ff)](),'hooks':hooksConfigSchema[_0x38d42b(0x210,0xed,0x38,0x53)]()})[_0x37c1da(0x584,0x417,0x559,0x51f)]();function buildDescription(_0x16f3c0){const _0x1e33cb={_0x36d84e:0x46,_0x12303a:0x30,_0x500bd0:0x609,_0x28a81d:0x53e,_0x232b3e:0x66c,_0x4b8860:0x671,_0x1f27bc:0x88,_0x3d0029:0x161,_0x272505:0x37,_0x5bcec8:0xca},_0x16de08={_0x32169c:0x470},_0x28e314={_0x283fb4:0x56a};if(_0x16f3c0[_0x1f93e3(-_0x1e33cb._0x36d84e,_0x1e33cb._0x12303a,-0x3a,-0xf9)]===0x0)return[_0x5da45d(0x59b,_0x1e33cb._0x500bd0,0x572,_0x1e33cb._0x28a81d),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x5da45d(0x5df,_0x1e33cb._0x232b3e,0x769,_0x1e33cb._0x4b8860)]['join']('\x0a');function _0x1f93e3(_0x2a5f01,_0x2b2e23,_0x386f45,_0xa09bfd){return _0x37c1da(_0x2a5f01-0xb3,_0x2b2e23-0x143,_0xa09bfd,_0x386f45- -_0x28e314._0x283fb4);}function _0x5da45d(_0x1f8c0c,_0x442ebb,_0x272658,_0x9eee5d){return _0x38d42b(_0x1f8c0c-0x18d,_0x9eee5d-_0x16de08._0x32169c,_0x272658,_0x9eee5d-0x163);}const _0x47d0d2=[_0x1f93e3(-_0x1e33cb._0x1f27bc,0x57,-0x51,-0x192),_0x1f93e3(0x1c1,0xab,0xbb,0x32),'Available\x20commands:',..._0x16f3c0[_0x1f93e3(0x161,0x12,0x112,_0x1e33cb._0x3d0029)](_0x827fe=>_0x827fe['argumentHint']?'-\x20'+_0x827fe['name']+'\x20'+_0x827fe[_0x5da45d(0x5b5,0x497,0x509,0x545)]+':\x20'+_0x827fe[_0x5da45d(0x5c7,0x69a,0x5c0,0x5a4)]:'-\x20'+_0x827fe['name']+':\x20'+_0x827fe[_0x5da45d(0x538,0x575,0x4e5,0x5a4)])];return _0x47d0d2[_0x1f93e3(_0x1e33cb._0x272505,0x7b,_0x1e33cb._0x5bcec8,0x14)]('\x0a');}function createInvokeCommandTool(_0x3c55fe){const _0x1f7e44={_0x3d9e5e:0x1c4,_0x26d991:0x93,_0x5a580b:0x1e0,_0x458fcf:0x9e,_0x5a5bfe:0x192,_0x33c706:0x332,_0x51133f:0x270,_0x3e7522:0x321,_0x4cd0bc:0x153,_0x4c0d0a:0x226,_0x35b393:0x1a7,_0x493fb4:0x1c3,_0x5286cf:0x1a9,_0x1c83b3:0x182,_0x2bcbb1:0x75},_0x32747c={_0x584ce8:0x2e9,_0x2e3347:0x39f,_0x22838e:0x26d,_0x4cd1ef:0x28f,_0x10a634:0x1e6,_0x12786b:0x445,_0x7076b1:0x573,_0xe51924:0x51f,_0x36db98:0x48d,_0x3e6b7a:0x4eb,_0x447506:0x4f5,_0x45b61f:0x449,_0x57f195:0x46d,_0x30a0e1:0x1ba,_0x32782f:0x6d,_0x5056ec:0xbb,_0x410b2d:0x451,_0xfb759b:0x4d9,_0x50fc61:0x10f,_0xeef217:0x2db,_0x254cf6:0x404,_0x4689c4:0x451,_0x50d300:0x435,_0x7beed2:0x1eb,_0x328bee:0x29d,_0x31246d:0x1ca},_0x458503={_0x5b78da:0x133},_0x5dc4e7={_0x49c943:0x41},_0x5e19d3={_0x4ae995:0xe3},_0x2150d3=new Map(_0x3c55fe[_0x3c2cd4(-_0x1f7e44._0x3d9e5e,-0x192,-0x1cf,-0xd3)][_0x3c2cd4(-0x10f,-_0x1f7e44._0x26d991,-_0x1f7e44._0x5a580b,-_0x1f7e44._0x458fcf)](_0x1e47d2=>[_0x1e47d2['id'],_0x1e47d2]));function _0x3c2cd4(_0x48b27b,_0x3b12a6,_0xeada96,_0x3f7930){return _0x37c1da(_0x48b27b-_0x5e19d3._0x4ae995,_0x3b12a6-0x159,_0x3f7930,_0x3b12a6- -0x70f);}const _0x24cb0f=buildDescription(_0x3c55fe[_0x3c2cd4(-0x286,-_0x1f7e44._0x5a5bfe,-0xda,-0x103)]);function _0x35b587(_0x373408,_0x41dce5,_0x403822,_0x260e17){return _0x38d42b(_0x373408-0x12b,_0x403822-_0x5dc4e7._0x49c943,_0x373408,_0x260e17-0x181);}return defineTool({'name':_0x3c2cd4(-_0x1f7e44._0x33c706,-_0x1f7e44._0x51133f,-_0x1f7e44._0x3e7522,-_0x1f7e44._0x4cd0bc),'description':_0x24cb0f,'inputSchema':{'type':_0x3c2cd4(-0x23c,-0x2b6,-0x319,-0x1bc),'properties':{'name':{'type':_0x3c2cd4(-0x192,-0x242,-0x1b5,-0x2c9)},'args':{'type':_0x3c2cd4(-0x270,-0x242,-_0x1f7e44._0x4c0d0a,-_0x1f7e44._0x35b393)}},'required':[_0x3c2cd4(-_0x1f7e44._0x493fb4,-_0x1f7e44._0x5286cf,-_0x1f7e44._0x1c83b3,-_0x1f7e44._0x2bcbb1)]},async *'execute'(_0x52ddf9){const _0x3c4ece={_0x426c6b:0x2f5},_0x4739a1=_0x2150d3[_0x2b9947(_0x32747c._0x584ce8,_0x32747c._0x2e3347,_0x32747c._0x22838e,_0x32747c._0x4cd1ef)](_0x52ddf9[_0x2b9947(0x307,0x448,_0x32747c._0x10a634,_0x32747c._0x12786b)]);function _0x2b9947(_0xa3a64f,_0x263b06,_0x5b4f22,_0x3af08a){return _0x35b587(_0x5b4f22,_0x263b06-_0x458503._0x5b78da,_0xa3a64f-0x1ab,_0x3af08a-0xfd);}if(!_0x4739a1){const _0x1f70a0=Array['from'](_0x2150d3['keys']())[_0x3bc295(_0x32747c._0x7076b1,0x4b7,_0x32747c._0xe51924,_0x32747c._0x36db98)](',\x20');throw new ToolExecutionError(_0x3bc295(_0x32747c._0x3e6b7a,_0x32747c._0x447506,_0x32747c._0x45b61f,_0x32747c._0x57f195)+_0x52ddf9['name']+_0x2b9947(_0x32747c._0x30a0e1,_0x32747c._0x32782f,_0x32747c._0x5056ec,0x24e)+_0x1f70a0,{'name':_0x52ddf9[_0x3bc295(0x406,0x4d2,_0x32747c._0x410b2d,_0x32747c._0xfb759b)]});}const _0x3df185=await _0x3c55fe['loadCommand'](_0x4739a1);function _0x3bc295(_0x242150,_0x45ef19,_0x2b2e30,_0x4d3998){return _0x35b587(_0x4d3998,_0x45ef19-0x57,_0x2b2e30-_0x3c4ece._0x426c6b,_0x4d3998-0x1a6);}const _0x285b6b=_0x52ddf9[_0x2b9947(0x1fb,0x2a1,_0x32747c._0x50fc61,_0x32747c._0xeef217)]??'',_0x4f2901=renderCommandInstructions({'instructions':_0x3df185['instructions'],'argumentsText':_0x285b6b,'argumentNames':_0x3df185[_0x2b9947(_0x32747c._0x254cf6,0x36e,0x415,0x4ba)]});return yield createToolOutput(_0x4f2901,{'id':_0x3df185['id'],'name':_0x3df185[_0x3bc295(0x389,0x459,_0x32747c._0x4689c4,_0x32747c._0x50d300)],'path':_0x4739a1[_0x2b9947(_0x32747c._0x7beed2,_0x32747c._0x328bee,_0x32747c._0x31246d,0x1da)]['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x5b2b10,rename as _0x320306,stat as _0x1624eb,writeFile as _0x86037e}from'fs/promises';import*as _0x3dc510 from'path';function detectEol(_0x2714b6){const _0x38a19e={_0x259131:0x294,_0x4ed569:0x50,_0x3afaaf:0x121,_0x3766df:0x1a,_0x456833:0x2d8,_0x1035f5:0x3da},_0x6a8156={_0x22f8dc:0x137,_0x504d24:0x100,_0x368fde:0x1c7},_0x1dbdd6={_0x5a6e9d:0x191,_0x2ff5a1:0x1a4};function _0x4f437f(_0x1d5b85,_0x161a28,_0x4a9ce1,_0x2c3bd5){return _0x38d42b(_0x1d5b85-0x8e,_0x1d5b85-_0x1dbdd6._0x5a6e9d,_0x2c3bd5,_0x2c3bd5-_0x1dbdd6._0x2ff5a1);}function _0x5d4787(_0x495edf,_0x9e74b9,_0x5c346d,_0xae846e){return _0x38d42b(_0x495edf-_0x6a8156._0x22f8dc,_0x495edf- -_0x6a8156._0x504d24,_0x9e74b9,_0xae846e-_0x6a8156._0x368fde);}return/\r\n/[_0x4f437f(0x188,0x60,_0x38a19e._0x259131,_0x38a19e._0x4ed569)](_0x2714b6['toString'](_0x5d4787(0x60,_0x38a19e._0x3afaaf,-0xa,-_0x38a19e._0x3766df)))?_0x4f437f(_0x38a19e._0x456833,0x37d,0x3b1,_0x38a19e._0x1035f5):'lf';}function normalizeToLf(_0xcb0b0){const _0x263912={_0x6006c:0xa3,_0x7e5d42:0x5c,_0x55bde5:0x26,_0x1bbc3b:0x1f},_0xf85daa={_0xe731f6:0xef};function _0x4e779d(_0x16e935,_0x22a498,_0x3619c8,_0x458c68){return _0x38d42b(_0x16e935-0x17,_0x22a498-0x84,_0x3619c8,_0x458c68-_0xf85daa._0xe731f6);}return _0xcb0b0[_0x4e779d(-_0x263912._0x6006c,_0x263912._0x7e5d42,_0x263912._0x55bde5,_0x263912._0x1bbc3b)](/\r\n/g,'\x0a');}function convertEol(_0x44be18,_0x3f9a40){const _0x48dac5={_0x1b0757:0x423,_0x6058ca:0x46f},_0x132818={_0xea8561:0x1af,_0x260451:0x1e1};function _0x4c0ede(_0x215288,_0x57881b,_0x4cc6a7,_0x397028){return _0x38d42b(_0x215288-_0x132818._0xea8561,_0x397028-0x497,_0x215288,_0x397028-_0x132818._0x260451);}return _0x3f9a40==='crlf'?_0x44be18[_0x4c0ede(0x3a2,_0x48dac5._0x1b0757,0x475,_0x48dac5._0x6058ca)](/\n/g,'\x0d\x0a'):_0x44be18;}async function atomicWrite(_0x295acc,_0x1f5d53){const _0x2a1cd5={_0x56d766:0x316,_0x4a8ca6:0x126,_0x295028:0x27d,_0x40ce3e:0x253,_0xe83143:0x37a,_0x115221:0x244,_0x24ea19:0x2c3,_0x3e4d18:0x251,_0x597260:0x2aa,_0x1e9271:0x1c2,_0xf4d4b3:0x3f,_0x5f57b2:0x142,_0x77ae13:0x7a,_0x183079:0x3e,_0x27f89d:0xd3,_0x2e757e:0xb5,_0x164460:0x1b9,_0x396350:0x1ff,_0x179912:0xdd},_0x490eb3={_0x403c83:0x149,_0x128094:0x29},_0x286144={_0xba6791:0xb8},_0x3ab7ac=_0x3dc510[_0x17c8c6(-_0x2a1cd5._0x56d766,-_0x2a1cd5._0x4a8ca6,-0x251,-0x20d)](_0x295acc);function _0x17c8c6(_0x5ae14e,_0x15c778,_0x3e1e76,_0x40c327){return _0x38d42b(_0x5ae14e-0x167,_0x40c327- -0x28c,_0x15c778,_0x40c327-_0x286144._0xba6791);}const _0x15cd56=_0x3dc510[_0x2824a2(_0x2a1cd5._0x295028,0x198,_0x2a1cd5._0x40ce3e,0x1cb)](_0x3ab7ac,_0x17c8c6(-0x1ef,-_0x2a1cd5._0xe83143,-_0x2a1cd5._0x115221,-0x2bb)+_0x3dc510[_0x17c8c6(-0x290,-0x19a,-_0x2a1cd5._0x24ea19,-0x1c6)](_0x295acc)+'.'+Date[_0x17c8c6(-0x222,-_0x2a1cd5._0x3e4d18,-_0x2a1cd5._0x597260,-_0x2a1cd5._0x1e9271)]()+'.'+Math[_0x2824a2(_0x2a1cd5._0xf4d4b3,0x133,_0x2a1cd5._0x5f57b2,0x270)]()[_0x2824a2(_0x2a1cd5._0x77ae13,0x19,-_0x2a1cd5._0x183079,-_0x2a1cd5._0x27f89d)](0x24)[_0x2824a2(_0x2a1cd5._0x2e757e,_0x2a1cd5._0x164460,_0x2a1cd5._0x396350,_0x2a1cd5._0x179912)](0x2));await _0x86037e(_0x15cd56,_0x1f5d53);function _0x2824a2(_0x46e2bc,_0x876804,_0x26b792,_0x35ce42){return _0x38d42b(_0x46e2bc-_0x490eb3._0x403c83,_0x876804- -0x51,_0x46e2bc,_0x35ce42-_0x490eb3._0x128094);}await _0x320306(_0x15cd56,_0x295acc);}function sha256(_0x5f72ee){const _0x3c392d={_0x4ee4e2:0x274,_0x3f2d3a:0x1da,_0xc0df68:0x234,_0xb2ed4b:0x41c},_0x3c8a66={_0x41299b:0x95,_0x43ffbf:0x27b};function _0x2d94c3(_0x61c8cc,_0x54f862,_0x10e4d9,_0x389255){return _0x37c1da(_0x61c8cc-0xb9,_0x54f862-0x4b,_0x61c8cc,_0x389255- -0xd1);}function _0x1c31f9(_0x1f4983,_0xc4ac9a,_0x1fa436,_0x30a076){return _0x37c1da(_0x1f4983-0x90,_0xc4ac9a-_0x3c8a66._0x41299b,_0x30a076,_0xc4ac9a- -_0x3c8a66._0x43ffbf);}return createHash(_0x1c31f9(_0x3c392d._0x4ee4e2,_0x3c392d._0x3f2d3a,_0x3c392d._0xc0df68,0xe7))['update'](_0x5f72ee)[_0x2d94c3(0x564,0x446,0x49a,_0x3c392d._0xb2ed4b)]('hex');}function countLines(_0x4a634d){const _0x43548f={_0x53dc80:0xf7,_0x31c0be:0x10e,_0x4c789b:0x17a,_0x5cddb8:0x10c,_0x1cd693:0x126},_0x5cb01a={_0x23ef4a:0x3d,_0x43ddb0:0x23d},_0x4a8e8f={_0x59bc23:0xf6,_0x1dda2c:0x439},_0x56a4b9=_0x4a634d['replace'](/\n$/,'');function _0x2e6c16(_0x553a5c,_0x3b3ab1,_0x5e0ee6,_0xf32670){return _0x37c1da(_0x553a5c-0xb3,_0x3b3ab1-_0x4a8e8f._0x59bc23,_0x5e0ee6,_0x3b3ab1- -_0x4a8e8f._0x1dda2c);}function _0x21af07(_0x1ccddf,_0xab95e9,_0x355d29,_0x480444){return _0x38d42b(_0x1ccddf-_0x5cb01a._0x23ef4a,_0x1ccddf- -_0x5cb01a._0x43ddb0,_0xab95e9,_0x480444-0x6e);}return _0x56a4b9[_0x2e6c16(0x13c,_0x43548f._0x53dc80,_0x43548f._0x31c0be,_0x43548f._0x4c789b)]===0x0?0x0:_0x56a4b9[_0x21af07(-_0x43548f._0x5cddb8,-0xf6,-_0x43548f._0x1cd693,-0x150)]('\x0a')[_0x2e6c16(0x137,0xf7,-0x49,0x205)];}function calculateLineNumbers(_0x332b4d,_0x1887a1,_0xb1bb9b,_0x226dbc){const _0xf481c6={_0x3d429c:0x6c,_0x4967ac:0x91,_0xba661f:0xee,_0x5650de:0x48,_0x44f17c:0x5f},_0x49fd08={_0x4d743d:0x17d,_0x1d482e:0x5e8},_0x2796e0={_0xb26522:0xaa,_0x298aae:0x161,_0x564ef6:0x1d},_0xb2f62b=_0x332b4d['slice'](0x0,_0x226dbc)[_0x59f72a(-_0xf481c6._0x3d429c,-0x183,_0xf481c6._0x4967ac,-_0xf481c6._0xba661f)]('\x0a')[_0x59f72a(-0xb8,-_0xf481c6._0x5650de,-0x6a,_0xf481c6._0x44f17c)];function _0x3188d8(_0x39bfea,_0x7df0e9,_0x264115,_0x41b5d6){return _0x38d42b(_0x39bfea-_0x2796e0._0xb26522,_0x39bfea- -_0x2796e0._0x298aae,_0x41b5d6,_0x41b5d6-_0x2796e0._0x564ef6);}function _0x59f72a(_0xf4e7bc,_0x2f11be,_0x3e5a98,_0x2d33a3){return _0x37c1da(_0xf4e7bc-_0x49fd08._0x4d743d,_0x2f11be-0xc0,_0x3e5a98,_0xf4e7bc- -_0x49fd08._0x1d482e);}const _0x46b4ff=countLines(_0x1887a1),_0x25998a=countLines(_0xb1bb9b);return{'oldStartLine':_0xb2f62b,'oldEndLine':_0xb2f62b+_0x46b4ff-0x1,'newStartLine':_0xb2f62b,'newEndLine':_0xb2f62b+_0x25998a-0x1,'oldLineCount':_0x46b4ff,'newLineCount':_0x25998a};}function createFileEditTool(_0x44efad={}){const _0x4da462={_0x443642:0x5d4,_0xd3f258:0x5c7,_0x98ab72:0x6dc,_0x1efe57:0x6c7,_0x407c0c:0x554,_0x2570ca:0x4cc,_0x1177ab:0x21a,_0x4894ab:0x11c,_0x5cab9c:0x1cf,_0x76c772:0x456,_0x1e9785:0x431,_0x41ebb3:0x46a,_0x1f62f5:0x30f,_0x3daf52:0x381,_0x56b8fb:0x394,_0x5dba91:0x330,_0x17b5e7:0x3b4,_0x3e0c40:0x3f5,_0x51d1d1:0x309,_0x29aca7:0x490,_0x47aa47:0x2c5,_0x3e427e:0x34b,_0x7bda67:0x2a7,_0x2e0e9f:0x2fe,_0x5b50b4:0x2a7,_0x40a230:0x201,_0x4885e2:0x2a7,_0x53b8db:0x304,_0x459759:0x404,_0x51b764:0x47e,_0x13e0ab:0x439},_0x5d6e59={_0x72e661:0x53,_0x5eb70e:0x2b9,_0x480f20:0x12,_0x5a1154:0x2a,_0x3cca3f:0xb6,_0x1e4a49:0x18e,_0xed98ac:0xf6,_0x73f633:0xda,_0xefe078:0x79,_0x26ad3d:0xc9,_0x56c78a:0x1bf,_0x4be6c5:0x10b,_0x52f506:0x2f9,_0x52e34e:0x1e3,_0x443a27:0x18f,_0x42057b:0x38,_0x23c0a8:0x25,_0x1cbd5c:0x13e,_0x441821:0x25,_0x29f8a1:0xf7,_0x415c28:0xf8,_0x343017:0x5e,_0x331aee:0x1b3,_0x26fee4:0xcf,_0x3cf8cb:0x36,_0x53a668:0x10c,_0x20a897:0x322,_0x168043:0x211,_0x597f84:0x8e,_0x46f25d:0x17b,_0x4703a2:0x33e,_0x1d65a6:0x141,_0x5fbd4f:0x162,_0x1489b5:0x1fd,_0x49cef9:0x253,_0x3772f4:0x7b,_0x498f74:0x26c,_0x506c61:0x183,_0x10c44c:0x116,_0x14f557:0x18c,_0x4703bc:0x32,_0x1d0742:0x131,_0x2cfaaa:0x177,_0x4fac15:0x225,_0x1b69ed:0x131},_0x58a2ce={_0x2dac07:0xff},_0x5af2d5={_0x17409f:0x75,_0x251130:0xa5},_0x5b806a={_0x37aa2b:0x25,_0x28870d:0x225,_0x39d4ec:0x15},_0x1d6d2f=_0x3dc510['resolve'](_0x44efad[_0x219b35(_0x4da462._0x443642,_0x4da462._0xd3f258,_0x4da462._0x98ab72,_0x4da462._0x1efe57)]??process[_0x219b35(0x528,0x402,_0x4da462._0x407c0c,_0x4da462._0x2570ca)]()),_0x227504=(_0x44efad[_0x374bd3(_0x4da462._0x1177ab,_0x4da462._0x4894ab,0x1e1,_0x4da462._0x5cab9c)]??[])[_0x374bd3(0x53b,0x489,_0x4da462._0x76c772,0x356)](_0x25c131=>_0x3dc510[_0x374bd3(0x3f9,0x1fe,0x328,0x286)](_0x25c131));function _0x374bd3(_0x4175cd,_0x5e8bd8,_0x4a3565,_0x529f59){return _0x38d42b(_0x4175cd-_0x5b806a._0x37aa2b,_0x4a3565-_0x5b806a._0x28870d,_0x4175cd,_0x529f59-_0x5b806a._0x39d4ec);}const _0x8c7c8b=_0x44efad[_0x374bd3(_0x4da462._0x1e9785,_0x4da462._0x41ebb3,0x340,0x3cf)]??_0x374bd3(0x39b,_0x4da462._0x1f62f5,0x2f6,0x2aa);function _0x219b35(_0x57bfe9,_0x20ec37,_0x19e78a,_0x57aad7){return _0x37c1da(_0x57bfe9-_0x5af2d5._0x17409f,_0x20ec37-0xeb,_0x57aad7,_0x57bfe9- -_0x5af2d5._0x251130);}return defineTool({'name':_0x8c7c8b,'description':_0x219b35(_0x4da462._0x3daf52,0x3e1,_0x4da462._0x56b8fb,_0x4da462._0x5dba91),'inputSchema':{'type':_0x219b35(_0x4da462._0x17b5e7,_0x4da462._0x3e0c40,_0x4da462._0x51d1d1,_0x4da462._0x29aca7),'properties':{'filePath':{'type':_0x374bd3(_0x4da462._0x47aa47,_0x4da462._0x3e427e,_0x4da462._0x7bda67,0x2e0)},'oldText':{'type':_0x374bd3(_0x4da462._0x2e0e9f,0x2b0,_0x4da462._0x5b50b4,_0x4da462._0x40a230)},'newText':{'type':_0x374bd3(0x1e0,0x3ef,_0x4da462._0x4885e2,0x1cf)},'dryRun':{'type':_0x374bd3(0x541,_0x4da462._0x53b8db,_0x4da462._0x459759,0x4ea)}},'required':[_0x219b35(0x4ff,0x539,0x5b3,0x462),_0x219b35(_0x4da462._0x51b764,_0x4da462._0x13e0ab,0x546,0x51c),'newText']},async *'execute'(_0xca679d){function _0x3d6403(_0xbc0571,_0x479e38,_0x244b01,_0x5ac532){return _0x219b35(_0x244b01- -0x5bc,_0x479e38-0x19d,_0x244b01-_0x58a2ce._0x2dac07,_0x479e38);}const _0x50e718=resolveAllowedPath(_0x1d6d2f,_0x227504,_0xca679d[_0x547c13(0x33,-0x4b,-0xd6,-_0x5d6e59._0x72e661)]);await assertWorkspaceFile(_0x50e718);const _0x5c647c=await _0x1624eb(_0x50e718),_0x4fbb8e=await _0x5b2b10(_0x50e718),_0x317588=detectEol(_0x4fbb8e),_0x235f76=normalizeToLf(_0x4fbb8e[_0x3d6403(-0x29d,-0x249,-0x1ac,-_0x5d6e59._0x5eb70e)](_0x3d6403(-_0x5d6e59._0x480f20,-_0x5d6e59._0x5a1154,-_0x5d6e59._0x3cca3f,-0x1f5)));function _0x547c13(_0xa362e,_0x5bdbe4,_0x2676c1,_0x7b2c90){return _0x374bd3(_0x5bdbe4,_0x5bdbe4-0x181,_0x2676c1- -0x454,_0x7b2c90-0x135);}const _0xf6153c=normalizeToLf(_0xca679d[_0x547c13(-0x194,-0xe2,-0x157,-0x24e)]),_0x75f5af=normalizeToLf(_0xca679d[_0x3d6403(-0x211,-0x206,-_0x5d6e59._0x1e4a49,-0x1aa)]),_0x20855e=_0x235f76[_0x3d6403(-_0x5d6e59._0xed98ac,-0x18b,-_0x5d6e59._0x73f633,-_0x5d6e59._0xefe078)](_0xf6153c);if(_0x20855e===-0x1){const _0x54c9b2=_0xf6153c[_0x547c13(_0x5d6e59._0x26ad3d,-0x8e,-0x25,0x3a)](0x0,0x64)[_0x547c13(-0x2b8,-_0x5d6e59._0x56c78a,-0x257,-_0x5d6e59._0x4be6c5)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x547c13(-0x236,-_0x5d6e59._0x52f506,-_0x5d6e59._0x52e34e,-0xab)+_0x54c9b2+(_0xf6153c['length']>0x64?_0x3d6403(-0x1a9,-0x224,-_0x5d6e59._0x443a27,-0xf1):'')+'\x22',{'filePath':_0xca679d[_0x3d6403(-0x3,-0x70,-0xbd,-0xd1)]});}const _0x101e52=_0x235f76[_0x547c13(-_0x5d6e59._0x42057b,0x76,-_0x5d6e59._0x23c0a8,0xa3)](0x0,_0x20855e)+_0x75f5af+_0x235f76[_0x547c13(0xdf,-_0x5d6e59._0x1cbd5c,-_0x5d6e59._0x441821,-_0x5d6e59._0x29f8a1)](_0x20855e+_0xf6153c['length']),_0x37e7d5=convertEol(_0x101e52,_0x317588),_0x2b0abb=Buffer[_0x3d6403(-_0x5d6e59._0x415c28,-0x108,-0x5f,-_0x5d6e59._0x343017)](_0x37e7d5,_0x547c13(-_0x5d6e59._0x331aee,-0x6f,-_0x5d6e59._0x26fee4,-0xd9)),_0x58d48e=sha256(_0x4fbb8e),_0x4aac6e=sha256(_0x2b0abb),_0x4d0490=_0x58d48e===_0x4aac6e,_0x23a6d7=_0xca679d[_0x547c13(_0x5d6e59._0x3cf8cb,-0xde,-_0x5d6e59._0x53a668,-0x251)]??![];return!_0x23a6d7&&!_0x4d0490&&await atomicWrite(_0x50e718,_0x2b0abb),yield createToolOutput(_0x4d0490?_0x3d6403(-_0x5d6e59._0x53a668,-_0x5d6e59._0x20a897,-0x227,-_0x5d6e59._0x168043):_0x23a6d7?_0x3d6403(-_0x5d6e59._0x597f84,-_0x5d6e59._0x46f25d,-0xb1,-0x4f):_0x3d6403(-0x18b,-_0x5d6e59._0x4703a2,-0x262,-0x267),{'filePath':_0xca679d['filePath'],'resolvedPath':_0x50e718,'created':_0x5c647c[_0x547c13(-0x286,-_0x5d6e59._0x1d65a6,-_0x5d6e59._0x5fbd4f,-0x1ec)][_0x3d6403(-_0x5d6e59._0x1489b5,-0x20d,-_0x5d6e59._0x49cef9,-0x10f)](),'modified':_0x5c647c[_0x547c13(-_0x5d6e59._0x3772f4,0x32,-0x85,-0xfe)][_0x547c13(-0x2d2,-0x2e5,-_0x5d6e59._0x498f74,-_0x5d6e59._0x506c61)](),'size':_0x5c647c[_0x3d6403(-0xfb,-_0x5d6e59._0x10c44c,-0x1a9,-0x1d3)],'eol':_0x317588,'oldTextLength':_0xf6153c[_0x3d6403(-_0x5d6e59._0x14f557,-_0x5d6e59._0x4703bc,-_0x5d6e59._0x1d0742,-_0x5d6e59._0x2cfaaa)],'newTextLength':_0x75f5af['length'],'bytesWritten':_0x4d0490||_0x23a6d7?0x0:_0x2b0abb[_0x3d6403(-_0x5d6e59._0x4fac15,-0x275,-_0x5d6e59._0x1b69ed,-0x26a)],'beforeSha':_0x58d48e,'afterSha':_0x4aac6e,'dryRun':_0x23a6d7,'noChange':_0x4d0490,'lineNumbers':calculateLineNumbers(_0x235f76,_0xf6153c,_0x75f5af,_0x20855e)}),void 0x0;}});}import{mkdir as _0x557e75,rename as _0x6f699d,stat as _0xc55a22,writeFile as _0x1fbba4}from'fs/promises';import*as _0x2665dc from'path';async function atomicWrite2(_0x114ca6,_0x5c28ae){const _0x49a3cf={_0x41c31b:0x14d,_0xa0f2ea:0x1b9,_0x1eb4bb:0x214,_0x46ab8a:0x178,_0x45ab71:0x13d,_0x229000:0x143,_0x34a3a5:0x1d7},_0x196a1a={_0x315882:0x18e},_0x88fcc8={_0x3772c3:0x1b0};function _0x11c821(_0x35e474,_0x35b609,_0x24b2d3,_0x5db825){return _0x37c1da(_0x35e474-_0x88fcc8._0x3772c3,_0x35b609-0x64,_0x35e474,_0x5db825- -0x311);}const _0x4e5221=_0x2665dc[_0x11c821(0x9c,_0x49a3cf._0x41c31b,0x7b,_0x49a3cf._0xa0f2ea)](_0x114ca6);await _0x557e75(_0x4e5221,{'recursive':!![]});const _0x49cd90=_0x2665dc[_0x31e73a(_0x49a3cf._0x1eb4bb,0x1c6,0x1c3,0x260)](_0x4e5221,_0x11c821(0x219,_0x49a3cf._0x46ab8a,0xef,0x10b)+_0x2665dc[_0x31e73a(0x129,0x16f,0x256,_0x49a3cf._0x45ab71)](_0x114ca6)+'.'+Date[_0x11c821(0x219,0xff,0x34f,0x204)]()+'.'+Math[_0x31e73a(0x207,_0x49a3cf._0x229000,_0x49a3cf._0x34a3a5,0x1fb)]()['toString'](0x24)['slice'](0x2));function _0x31e73a(_0x4aeccb,_0x4d8a3c,_0x560562,_0x1dd48f){return _0x38d42b(_0x4aeccb-_0x196a1a._0x315882,_0x1dd48f-0x77,_0x4d8a3c,_0x1dd48f-0xa4);}await _0x1fbba4(_0x49cd90,_0x5c28ae),await _0x6f699d(_0x49cd90,_0x114ca6);}function createFileNewTool(_0x327561={}){const _0x5d148a={_0x5a63d6:0x446,_0x11006b:0x554,_0x52f7a7:0x4e9,_0x34a0bb:0x504,_0x253710:0x5d3,_0x52aca1:0x5d8,_0x1937d0:0x440,_0x3aab01:0x4c8,_0x26d2cf:0x5d1,_0x4f107a:0x75d,_0x46a700:0x5a5,_0x2bc4e2:0x420,_0x561978:0x52b,_0x17185:0x567,_0x35fe03:0x5ac,_0x4bed2c:0x54b,_0x16fbdf:0x5c8,_0x4f2996:0x667},_0x12ae6f={_0xa39dfa:0x498,_0x3cd4a0:0x37c,_0x37531f:0x385,_0x208868:0x4ac,_0x22c95f:0x514,_0x4ffe0d:0x4f7,_0x15a93c:0x533,_0x261404:0x542,_0xccd707:0x5b1,_0x3786ea:0x69b,_0x33360d:0x5a0,_0x447957:0x370,_0x5c0870:0x490,_0x5e406f:0x5d1,_0x54221c:0x47c,_0x8f9bad:0x52c,_0x1025c6:0x3e4},_0x1e0541={_0x5940b6:0x172,_0x516a3b:0x451,_0x266cc6:0x9f},_0x5da389={_0x2bec29:0x4e5},_0xe7a44c=_0x2665dc[_0xd9857c(_0x5d148a._0x5a63d6,0x48b,_0x5d148a._0x11006b,_0x5d148a._0x52f7a7)](_0x327561['defaultCwd']??process[_0xd9857c(_0x5d148a._0x34a0bb,0x543,_0x5d148a._0x253710,_0x5d148a._0x52aca1)]()),_0xa914bc=(_0x327561[_0x5e911d(0x51d,0x4a1,_0x5d148a._0x1937d0,0x446)]??[])['map'](_0x357725=>_0x2665dc[_0x5e911d(0x599,0x5e8,0x6c6,0x65a)](_0x357725));function _0x5e911d(_0x2c508b,_0x19093f,_0x45f4b0,_0x278911){return _0x38d42b(_0x2c508b-0xce,_0x19093f-_0x5da389._0x2bec29,_0x278911,_0x278911-0x14d);}function _0xd9857c(_0x4070aa,_0xe8560,_0x1537c8,_0x41f700){return _0x38d42b(_0x4070aa-_0x1e0541._0x5940b6,_0x1537c8-_0x1e0541._0x516a3b,_0x4070aa,_0x41f700-_0x1e0541._0x266cc6);}const _0x384f9a=_0x327561['name']??_0xd9857c(0x440,0x614,_0x5d148a._0x3aab01,_0x5d148a._0x26d2cf);return defineTool({'name':_0x384f9a,'description':_0x5e911d(0x5bc,0x6ba,0x64d,_0x5d148a._0x4f107a),'inputSchema':{'type':_0x5e911d(0x5b2,0x4f3,_0x5d148a._0x46a700,_0x5d148a._0x2bc4e2),'properties':{'filePath':{'type':_0x5e911d(_0x5d148a._0x561978,_0x5d148a._0x17185,0x4f0,0x638)},'content':{'type':_0xd9857c(0x551,0x4be,0x4d3,_0x5d148a._0x35fe03)}},'required':[_0x5e911d(_0x5d148a._0x4bed2c,0x63e,0x612,0x600),_0x5e911d(_0x5d148a._0x16fbdf,0x5dd,0x56d,_0x5d148a._0x4f2996)]},async *'execute'(_0xba4e96){const _0xa1fc8a={_0xa05252:0x1ee,_0x46738c:0x14f},_0x28a50b={_0x66222b:0x1a1,_0x2fda5a:0x2c};function _0x503e8b(_0x51ed0f,_0x441efe,_0x556ee6,_0x23d117){return _0x5e911d(_0x51ed0f-_0x28a50b._0x66222b,_0x51ed0f- -_0x28a50b._0x2fda5a,_0x556ee6-0xc9,_0x556ee6);}const _0x450211=resolveAllowedPath(_0xe7a44c,_0xa914bc,_0xba4e96['filePath']);function _0x11feef(_0x117526,_0x34ac2f,_0x4e18e3,_0x2b1d69){return _0x5e911d(_0x117526-_0xa1fc8a._0xa05252,_0x4e18e3- -0x13a,_0x4e18e3-_0xa1fc8a._0x46738c,_0x117526);}const _0x36c053=await _0xc55a22(_0x450211)[_0x11feef(0x250,_0x12ae6f._0xa39dfa,0x38a,0x3b6)](()=>!![])[_0x11feef(0x473,_0x12ae6f._0x3cd4a0,_0x12ae6f._0x37531f,0x43e)](()=>![]),_0x52e88a=Buffer['from'](_0xba4e96[_0x11feef(_0x12ae6f._0x208868,_0x12ae6f._0x22c95f,0x4a3,0x361)],'utf8');return await atomicWrite2(_0x450211,_0x52e88a),yield createToolOutput(_0x11feef(_0x12ae6f._0x4ffe0d,_0x12ae6f._0x15a93c,0x4da,_0x12ae6f._0x261404)+_0xba4e96[_0x503e8b(0x612,0x4dd,0x6bc,0x739)]+'.',{'filePath':_0xba4e96['filePath'],'resolvedPath':_0x450211,'bytes':_0x52e88a['length'],'lines':_0xba4e96[_0x503e8b(_0x12ae6f._0xccd707,0x6b0,0x48f,_0x12ae6f._0x3786ea)]['split'](/\r?\n/)[_0x11feef(_0x12ae6f._0x33360d,_0x12ae6f._0x447957,_0x12ae6f._0x5c0870,_0x12ae6f._0x5e406f)],'created':new Date()[_0x503e8b(_0x12ae6f._0x54221c,_0x12ae6f._0x8f9bad,0x38f,_0x12ae6f._0x1025c6)](),'overwritten':_0x36c053}),void 0x0;}});}import{readFile as _0x375089,stat as _0x24e1fd}from'fs/promises';import*as _0x33feaa from'path';function stripUtfBom(_0x1c51e6){const _0x50b0c9={_0x33ef0f:0x54,_0x452565:0x9d,_0x1cceb0:0x39a,_0x1eaff1:0x3e1,_0x32a324:0x40f},_0x350991={_0x5d8f4a:0x1dc,_0x6d921c:0xe};function _0x27cc64(_0xab6bff,_0x12f251,_0x52bac9,_0x42b113){return _0x38d42b(_0xab6bff-0x33,_0x12f251- -0x4d,_0x52bac9,_0x42b113-0x45);}function _0x18d4df(_0x395ed0,_0x147625,_0x3e15e1,_0x104299){return _0x38d42b(_0x395ed0-_0x350991._0x5d8f4a,_0x3e15e1-0x1d7,_0x104299,_0x104299-_0x350991._0x6d921c);}return _0x1c51e6[_0x27cc64(-_0x50b0c9._0x33ef0f,0x46,_0x50b0c9._0x452565,-0xee)](0x0)===0xfeff?_0x1c51e6[_0x18d4df(_0x50b0c9._0x1cceb0,0x3da,_0x50b0c9._0x1eaff1,_0x50b0c9._0x32a324)](0x1):_0x1c51e6;}function clampLine(_0x3b3ad2,_0x293cd5){const _0x29df2c={_0x26d20c:0x1f3,_0x298776:0x73,_0x41a680:0x188,_0x2f5d05:0x11e,_0x5219f0:0x1d,_0x12a386:0x1b9,_0x284ef2:0x106,_0x55a247:0x24c},_0x409993={_0x1f8f4b:0x22,_0x11a97f:0xc},_0x52b072={_0x3ec9ab:0x1cb,_0x44cba0:0x115};if(!Number[_0x53c491(0x27a,0xd6,0x261,_0x29df2c._0x26d20c)](_0x3b3ad2))return 0x1;function _0x5288ba(_0x56568c,_0x1eec00,_0x3d4506,_0x4851ca){return _0x38d42b(_0x56568c-0x180,_0x4851ca- -_0x52b072._0x3ec9ab,_0x3d4506,_0x4851ca-_0x52b072._0x44cba0);}function _0x53c491(_0xb07cb6,_0x852500,_0x3c855a,_0xb4fbd4){return _0x38d42b(_0xb07cb6-0x120,_0xb4fbd4-_0x409993._0x1f8f4b,_0xb07cb6,_0xb4fbd4-_0x409993._0x11a97f);}return Math[_0x53c491(0x233,0x20d,_0x29df2c._0x298776,_0x29df2c._0x41a680)](0x1,Math[_0x53c491(0x20,_0x29df2c._0x2f5d05,_0x29df2c._0x5219f0,0x49)](Math[_0x53c491(_0x29df2c._0x12a386,0x296,_0x29df2c._0x284ef2,_0x29df2c._0x55a247)](_0x3b3ad2),_0x293cd5));}function createFileReadTool(_0xca1d59={}){const _0x125f27={_0x49b29f:0x42,_0x19e958:0x21c,_0x515a77:0xe0,_0x35da6e:0x121,_0x120853:0xe9,_0x1dfd06:0x33e,_0x458d4c:0x31f,_0x1afc53:0xe3,_0x557ba8:0x207,_0x4c6fd3:0x13c,_0x2d7c90:0x1a,_0x102c56:0x74,_0x1580eb:0xb3,_0x33de16:0x15,_0x55ff14:0xbb,_0x2a7d2e:0x66,_0x5689c1:0x106,_0x26a1bf:0x80,_0x55b5fa:0x6e,_0x55db9d:0x36,_0x1ffbef:0x8,_0x31f98b:0x73,_0xf4ad85:0x154,_0x4b5a7c:0x4a},_0x2b8912={_0x3af9e4:0x2c4,_0x19e190:0x407,_0x1b232d:0x38f,_0x3b723e:0x337,_0x5f5510:0x262,_0x30bbff:0xe5,_0x5f21dd:0x59,_0x1b1576:0x90,_0x2103fa:0x9d,_0x1ceb08:0x164,_0xfeac2:0x6e,_0x6f258b:0xed,_0x3eebd3:0x152,_0x1c70a3:0x190,_0x509399:0x52,_0x33c5d5:0x56,_0x260700:0x123,_0x378f89:0x11,_0x212435:0x1a3,_0x557afa:0xf9,_0x1b5237:0x22,_0x33a373:0x6e,_0x33b569:0x127,_0x2a8cab:0x61,_0x3b1d1b:0x206,_0x417558:0x215,_0x5b6055:0xe9,_0x32efbd:0x12d,_0x585588:0x180,_0xa64a98:0x186,_0x1d6e26:0x24e,_0x1b2e22:0x147,_0x2d9446:0x115,_0x17d290:0x16e,_0x8ad5df:0x298,_0x13577a:0x2bb},_0x222b0f={_0x409a3e:0x13f},_0x39d268={_0x5763a0:0x54,_0x3efccb:0xc1,_0xf77a6e:0x1d7},_0x256b2a={_0x570e9e:0x114,_0x2f4fbe:0x42a},_0x35ce64=_0x33feaa[_0xb4912b(_0x125f27._0x49b29f,-0x71,0x3d,-0xd)](_0xca1d59[_0xb4912b(0x16d,_0x125f27._0x19e958,0x242,_0x125f27._0x515a77)]??process[_0xb4912b(0xc1,0x165,0xa6,_0x125f27._0x35da6e)]());function _0xcefb6e(_0x3f0b29,_0x16df97,_0x436006,_0x18e8e8){return _0x37c1da(_0x3f0b29-_0x256b2a._0x570e9e,_0x16df97-0x91,_0x3f0b29,_0x18e8e8- -_0x256b2a._0x2f4fbe);}const _0x29888f=(_0xca1d59[_0xcefb6e(-0x15f,-_0x125f27._0x120853,-0x132,-0x23)]??[])[_0xcefb6e(_0x125f27._0x1dfd06,_0x125f27._0x458d4c,0x22b,0x252)](_0x26d8f2=>_0x33feaa[_0xcefb6e(0xd,-0xa,0x26d,0x124)](_0x26d8f2));function _0xb4912b(_0x241844,_0x4eb161,_0x151a3e,_0x1f5212){return _0x38d42b(_0x241844-_0x39d268._0x5763a0,_0x241844- -_0x39d268._0x3efccb,_0x1f5212,_0x1f5212-_0x39d268._0xf77a6e);}const _0x3d136c=_0xca1d59[_0xcefb6e(_0x125f27._0x1afc53,_0x125f27._0x557ba8,0x221,_0x125f27._0x4c6fd3)]??'FileRead';return defineTool({'name':_0x3d136c,'description':_0xcefb6e(-0xbd,_0x125f27._0x2d7c90,0x113,_0x125f27._0x102c56),'inputSchema':{'type':_0xb4912b(-_0x125f27._0x1580eb,-_0x125f27._0x33de16,-_0x125f27._0x55ff14,-0xff),'properties':{'path':{'type':_0xcefb6e(-_0x125f27._0x2a7d2e,0x182,_0x125f27._0x5689c1,0xa3)},'lineStart':{'type':_0xcefb6e(-_0x125f27._0x26a1bf,-_0x125f27._0x55b5fa,-_0x125f27._0x55db9d,-_0x125f27._0x1ffbef),'description':_0xcefb6e(0x196,0x317,0x111,0x1e9)},'lineEnd':{'type':_0xb4912b(-0xea,-_0x125f27._0x31f98b,-0x21,-0x60),'description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':[_0xb4912b(_0x125f27._0xf4ad85,0xd8,_0x125f27._0x4b5a7c,0x12d)]},async *'execute'(_0x409c87){const _0x484967=resolveAllowedPath(_0x35ce64,_0x29888f,_0x409c87[_0x50a236(_0x2b8912._0x3af9e4,_0x2b8912._0x19e190,_0x2b8912._0x1b232d,0x29b)]);function _0x33dddf(_0x46eb3d,_0xe3073d,_0x316f58,_0x323bda){return _0xcefb6e(_0x46eb3d,_0xe3073d-_0x222b0f._0x409a3e,_0x316f58-0x1c,_0x316f58- -0xe4);}await assertWorkspaceFile(_0x484967);const _0x548c3f=await _0x24e1fd(_0x484967),_0x4a6716=await _0x375089(_0x484967);if(isProbablyBinary(_0x4a6716))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x409c87[_0x50a236(0x2c4,0x2a7,_0x2b8912._0x3b723e,0x3a1)],{'path':_0x409c87[_0x33dddf(0x1aa,_0x2b8912._0x5f5510,0x152,0x1c7)]});function _0x50a236(_0x8d4edc,_0x4b5dc3,_0x2c1f22,_0x3bf9af){return _0xcefb6e(_0x4b5dc3,_0x4b5dc3-0x3e,_0x2c1f22-0x1c4,_0x8d4edc-0x8e);}let _0x703c66=_0x4a6716[_0x33dddf(_0x2b8912._0x30bbff,0xe6,-_0x2b8912._0x5f21dd,_0x2b8912._0x1b1576)](_0x33dddf(0x1c4,0x95,_0x2b8912._0x2103fa,_0x2b8912._0x1ceb08));const _0x8b2f44=_0x703c66['charCodeAt'](0x0)===0xfeff;_0x703c66=stripUtfBom(_0x703c66);const _0x406d62=_0x703c66[_0x33dddf(0x160,0x75,_0x2b8912._0xfeac2,0x174)](/\r?\n/),_0x250b6a={'path':_0x409c87[_0x33dddf(0x24b,_0x2b8912._0x6f258b,_0x2b8912._0x3eebd3,_0x2b8912._0x1c70a3)],'resolvedPath':_0x484967,'created':_0x548c3f['birthtime']['toISOString'](),'modified':_0x548c3f['mtime']['toISOString'](),'size':_0x548c3f[_0x33dddf(-0xd1,-_0x2b8912._0x509399,-_0x2b8912._0x33c5d5,0x99)],'encoding':_0x33dddf(_0x2b8912._0x260700,-_0x2b8912._0x378f89,0x9d,_0x2b8912._0x212435),'bomStripped':_0x8b2f44,'truncated':![],'totalLines':_0x406d62[_0x33dddf(_0x2b8912._0x557afa,-0xf4,_0x2b8912._0x1b5237,_0x2b8912._0x33a373)]};if(_0x409c87['lineStart']!==void 0x0||_0x409c87[_0x33dddf(_0x2b8912._0x33b569,_0x2b8912._0x2a8cab,0x10a,-0x32)]!==void 0x0){const _0x1711d8=clampLine(_0x409c87['lineStart']??0x1,_0x406d62['length']),_0x40b200=clampLine(_0x409c87[_0x50a236(0x27c,0x184,0x22f,_0x2b8912._0x3b1d1b)]??_0x406d62['length'],_0x406d62[_0x50a236(0x194,_0x2b8912._0x417558,0x7f,_0x2b8912._0x5b6055)]),_0x45427b=Math[_0x50a236(0xd6,_0x2b8912._0x32efbd,_0x2b8912._0x585588,-0x12)](_0x1711d8,_0x40b200),_0x4b58d7=Math[_0x33dddf(0x1e3,0x88,0xa3,_0x2b8912._0xa64a98)](_0x1711d8,_0x40b200),_0x48bed8=_0x406d62[_0x33dddf(_0x2b8912._0x1d6e26,0x27,_0x2b8912._0x1b2e22,0x150)](_0x45427b-0x1,_0x4b58d7)[_0x33dddf(0x18c,_0x2b8912._0x2d9446,_0x2b8912._0x17d290,0x1b9)]((_0x3f3977,_0x187522)=>_0x45427b+_0x187522+'|'+_0x3f3977)[_0x50a236(_0x2b8912._0x8ad5df,0x269,_0x2b8912._0x13577a,0x211)]('\x0a');return yield createToolOutput(_0x48bed8,{..._0x250b6a,'lineRange':{'lineStart':_0x45427b,'lineEnd':_0x4b58d7,'linesTotal':_0x406d62['length']}}),void 0x0;}return yield createToolOutput(_0x703c66,_0x250b6a),void 0x0;}});}import{stat as _0x58f221}from'fs/promises';import*as _0x562f86 from'path';import{execSync,spawn as _0xfe313f}from'child_process';import{existsSync}from'fs';import{stat as _0x59ebd8}from'fs/promises';import*as _0x13acdc from'os';import*as _0x1554b8 from'path';import{rgPath as _0x5630ac}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x34be4f={_0x569532:0x80,_0x22fad9:0x1b5,_0x5c36d5:0x188,_0x514c32:0x389,_0x20e99a:0x59,_0x5505e5:0x90,_0xd6b84a:0x41,_0xc71eaa:0xf8,_0x20eaf3:0xfb,_0xbd2c8b:0x1f,_0x3df585:0x28,_0x4e0fe8:0x336,_0x4980d2:0x2fd,_0x27f5cd:0x2d7,_0x196dd6:0x291,_0x25f8b9:0x1ec,_0x5a2577:0x281,_0x5a8951:0x139,_0x3bd365:0x15c,_0x4a8e3d:0xa8,_0x1be037:0x2d1,_0xcc90c7:0x1bd,_0x583a36:0x20a,_0x144286:0x140,_0x27be43:0x18a,_0x348200:0x93,_0x483cce:0x239,_0x312f9f:0x213,_0x3456db:0x81,_0x10d761:0x236,_0x467c4a:0x363,_0x5f58a4:0x150,_0x48ae99:0x223,_0x2ef7e7:0x148,_0x195977:0x3e,_0x25f7e5:0xca,_0x14b03d:0x9b},_0x1774ac={_0x423946:0x46,_0x162db0:0xba};function _0x9a6f3d(_0x581f31,_0x269f40,_0xe71ecd,_0x44f100){return _0x37c1da(_0x581f31-_0x1774ac._0x423946,_0x269f40-_0x1774ac._0x162db0,_0xe71ecd,_0x44f100- -0x5be);}function _0x330756(_0x5a4139,_0x1a88ec,_0x53f42b,_0x38eabe){return _0x37c1da(_0x5a4139-0x16a,_0x1a88ec-0x1f1,_0x5a4139,_0x53f42b- -0x2a9);}const _0x5825ef=_0x13acdc[_0x330756(_0x34be4f._0x569532,0x1a1,_0x34be4f._0x22fad9,_0x34be4f._0x5c36d5)]()==='win32',_0x3cc58e=_0x5825ef?[_0x1554b8[_0x330756(0x3dd,0x3c6,0x38b,_0x34be4f._0x514c32)](process[_0x9a6f3d(-0x79,-0x51,_0x34be4f._0x20e99a,-0xc1)][_0x9a6f3d(-0xe,-_0x34be4f._0x5505e5,-_0x34be4f._0xd6b84a,-0x129)]||'',_0x9a6f3d(0x28,-_0x34be4f._0xc71eaa,-_0x34be4f._0x20eaf3,-0x6a),'WinGet',_0x9a6f3d(_0x34be4f._0xbd2c8b,0x101,_0x34be4f._0x3df585,0x22)),_0x1554b8['join'](process[_0x330756(_0x34be4f._0x4e0fe8,0x29e,0x254,0x109)]['ProgramFiles']||'','ripgrep',_0x330756(0xef,0x26b,0x1b9,_0x34be4f._0x4980d2)),_0x1554b8[_0x9a6f3d(-0xb1,-0xcd,-0x5d,0x76)](process['env'][_0x9a6f3d(-0x26,-0xa8,0x5c,0x2e)]||'',_0x330756(0x2ff,_0x34be4f._0x27f5cd,0x2c2,_0x34be4f._0x196dd6),_0x9a6f3d(-_0x34be4f._0x25f8b9,-_0x34be4f._0x5a2577,-_0x34be4f._0x5a8951,-_0x34be4f._0x3bd365))]:['/opt/homebrew/bin/rg',_0x9a6f3d(-0x2a6,-_0x34be4f._0x4a8e3d,-_0x34be4f._0x1be037,-_0x34be4f._0xcc90c7),_0x330756(0x1f3,0x1f3,_0x34be4f._0x583a36,_0x34be4f._0x144286),_0x9a6f3d(0x7b,0xf7,_0x34be4f._0x27be43,_0x34be4f._0x348200)];for(const _0x5b2846 of _0x3cc58e){if(existsSync(_0x5b2846))return _0x5b2846;}try{const _0x3a19c1=_0x5825ef?_0x330756(_0x34be4f._0x483cce,0x2f9,_0x34be4f._0x312f9f,0x21d):_0x9a6f3d(_0x34be4f._0x3456db,-0x88,0xc9,-_0x34be4f._0x3df585),_0x14fa00=execSync(_0x3a19c1,{'encoding':_0x330756(0x1c2,0x42f,0x302,_0x34be4f._0x10d761),'stdio':['pipe','pipe',_0x330756(_0x34be4f._0x467c4a,_0x34be4f._0x5f58a4,_0x34be4f._0x48ae99,_0x34be4f._0x2ef7e7)]})[_0x9a6f3d(0x115,0x8c,0x9f,_0x34be4f._0x195977)]()[_0x9a6f3d(-0x105,_0x34be4f._0x25f7e5,-_0x34be4f._0x14b03d,-0x42)](/\r?\n/)[0x0];if(_0x14fa00&&existsSync(_0x14fa00))return _0x14fa00;}catch{return null;}return null;}async function filepath(){const _0xb9d7a0={_0xa82aa:0x3cf,_0xaa1555:0x3c1},_0x43f977={_0x13b455:0x97,_0x5b66bf:0xd1,_0x3e39fd:0x9f};function _0x23bfb4(_0x1f15db,_0x44f132,_0x259fb3,_0x21128c){return _0x37c1da(_0x1f15db-_0x43f977._0x13b455,_0x44f132-_0x43f977._0x5b66bf,_0x1f15db,_0x44f132- -_0x43f977._0x3e39fd);}if(cachedRgPath)return cachedRgPath;if(_0x5630ac&&existsSync(_0x5630ac))return cachedRgPath=_0x5630ac,_0x5630ac;const _0x42ae2b=findSystemRipgrep();if(!_0x42ae2b)throw new Error(_0x23bfb4(0x3b7,0x4eb,_0xb9d7a0._0xa82aa,_0xb9d7a0._0xaa1555));return cachedRgPath=_0x42ae2b,_0x42ae2b;}async function*files(_0x306d6d){const _0x5c84d4={_0x5963c8:0x169,_0x491286:0x25e,_0x3cfbbd:0x311,_0x2d073e:0x425,_0xcf0b0c:0x2ea,_0x5a0b05:0x47,_0x3ad77b:0x10f,_0x110801:0xd7,_0x21fa92:0xae,_0x3452c1:0x189,_0x1e7596:0x51,_0x121104:0x61,_0x161ed4:0x16f,_0x43bbab:0x190,_0x252c32:0xf5,_0xbc6f08:0x282,_0x2453a3:0x44,_0x1dfd7c:0x2a9,_0x38e957:0x1d6,_0x5ab7b5:0x210,_0x354f02:0x208,_0x1f7802:0x2e2,_0x136743:0x28b,_0x358694:0x159,_0x3c50b7:0x13d,_0x2541a8:0x159,_0x14fb2e:0x385,_0x6df2da:0x1fd,_0x4dffdd:0x278,_0x4c0bb1:0x2b,_0x47d179:0x117,_0x5f4395:0x1b2,_0x316a99:0x15,_0x57dfdc:0xd9,_0x2435d4:0x274,_0x30b06d:0x18f,_0x3d8351:0x270,_0x5c6cd3:0x29f,_0x3ff55c:0x276},_0x3561b0={_0x2612c0:0x40,_0x3e5f12:0xd5},_0x3102dc={_0x2d724:0x178},_0x425f7a=await filepath(),_0x3269da=await _0x59ebd8(_0x306d6d['cwd'])[_0x14dc7b(_0x5c84d4._0x5963c8,0x4a,_0x5c84d4._0x491286,0x8b)](()=>null);function _0x14dc7b(_0x1e2d1e,_0x1b3180,_0x28a4c8,_0x17298f){return _0x37c1da(_0x1e2d1e-0x10a,_0x1b3180-_0x3102dc._0x2d724,_0x17298f,_0x1e2d1e- -0x2bc);}if(!_0x3269da?.['isDirectory']())throw Object['assign'](new Error(_0x14dc7b(0x32f,0x32d,0x205,0x217)+_0x306d6d[_0x14dc7b(_0x5c84d4._0x3cfbbd,_0x5c84d4._0x2d073e,_0x5c84d4._0xcf0b0c,0x38a)]+'\x27'),{'code':'ENOENT'});const _0x1b0fab=[_0x2fc420(-_0x5c84d4._0x5a0b05,_0x5c84d4._0x3ad77b,_0x5c84d4._0x110801,-0x4d),'--follow',_0x2fc420(0x288,_0x5c84d4._0x21fa92,_0x5c84d4._0x3452c1,_0x5c84d4._0x1e7596),_0x2fc420(-0xcf,0x87,_0x5c84d4._0x121104,_0x5c84d4._0x161ed4)];function _0x2fc420(_0x496eb4,_0x2a0507,_0x36dd6b,_0x38e0b8){return _0x37c1da(_0x496eb4-_0x3561b0._0x2612c0,_0x2a0507-_0x3561b0._0x3e5f12,_0x2a0507,_0x36dd6b- -0x465);}for(const _0x5e0202 of _0x306d6d[_0x2fc420(0x154,_0x5c84d4._0x43bbab,0x107,0x18c)]??[]){_0x1b0fab[_0x14dc7b(0x13d,_0x5c84d4._0x252c32,_0x5c84d4._0xbc6f08,_0x5c84d4._0x2453a3)](_0x2fc420(0xa0,_0x5c84d4._0x1dfd7c,0x1d7,_0x5c84d4._0x38e957)+_0x5e0202);}const _0x5e31e3=_0xfe313f(_0x425f7a,_0x1b0fab,{'cwd':_0x306d6d['cwd'],'stdio':[_0x14dc7b(_0x5c84d4._0x5ab7b5,_0x5c84d4._0x354f02,_0x5c84d4._0x1f7802,_0x5c84d4._0x136743),_0x2fc420(0x23d,0x218,_0x5c84d4._0x358694,0x190),_0x2fc420(_0x5c84d4._0x3c50b7,0x1ba,_0x5c84d4._0x2541a8,0x93)]});let _0x4e1a49='';for await(const _0x15b67c of _0x5e31e3[_0x14dc7b(_0x5c84d4._0x14fb2e,0x394,0x451,0x44c)]??[]){_0x4e1a49+=_0x15b67c[_0x14dc7b(0x1f9,0x1b2,_0x5c84d4._0x6df2da,_0x5c84d4._0x4dffdd)]();const _0xe42d1a=_0x4e1a49[_0x2fc420(0xbc,-_0x5c84d4._0x4c0bb1,_0x5c84d4._0x47d179,_0x5c84d4._0x5f4395)](/\r?\n/);_0x4e1a49=_0xe42d1a[_0x2fc420(_0x5c84d4._0x316a99,0xc3,_0x5c84d4._0x57dfdc,0x1bd)]()??'';for(const _0x557b15 of _0xe42d1a){if(_0x557b15[_0x14dc7b(_0x5c84d4._0x2435d4,0x180,0x201,0x175)]>0x0)yield _0x557b15;}}_0x4e1a49[_0x2fc420(_0x5c84d4._0x30b06d,_0x5c84d4._0x3d8351,0x197,_0x5c84d4._0x5c6cd3)]()[_0x14dc7b(_0x5c84d4._0x2435d4,0x29f,0x3bc,_0x5c84d4._0x3ff55c)]>0x0&&(yield _0x4e1a49['trim']());}function parseMatchLine(_0x56d2c1,_0x551e60){const _0x5900be={_0x2670f1:0x232,_0x147462:0x205,_0x1cd191:0x118,_0x49d629:0xec,_0x391bfc:0x1e6,_0x6c1e3c:0x239,_0x3ed9da:0x258,_0x14a81f:0x2d2,_0xc07e0d:0x2d5,_0x326d0e:0x363,_0x5793a9:0x285,_0x3865f3:0x7f8,_0x2407d4:0x7f0,_0x3c8082:0x57f,_0x33603e:0x6ad,_0x40a2b3:0x79c,_0x54e829:0x75e,_0xb04ad9:0x451,_0x1fc38c:0x3a4,_0x2247f3:0x1d4,_0x5232b6:0x620,_0x4792c5:0x6c5,_0x2b5d38:0x79a},_0x3968de={_0x4c589f:0x101,_0x395d4c:0x7c},_0x4e3a5d={_0x49002c:0x79};function _0x52f53f(_0x301448,_0x4a5359,_0x57b74b,_0x16812c){return _0x37c1da(_0x301448-0x145,_0x4a5359-0x1e7,_0x4a5359,_0x16812c-_0x4e3a5d._0x49002c);}if(!_0x56d2c1||_0x56d2c1==='--')return null;const _0x4e2ddd=_0x56d2c1[_0x4e62e6(_0x5900be._0x2670f1,_0x5900be._0x147462,_0x5900be._0x1cd191,_0x5900be._0x49d629)]('|');if(_0x551e60&&_0x4e2ddd[_0x4e62e6(_0x5900be._0x391bfc,0x109,_0x5900be._0x6c1e3c,0x233)]>=0x4&&Number[_0x4e62e6(0x2d2,0x1a6,_0x5900be._0x3ed9da,0x3d4)](Number['parseInt'](_0x4e2ddd[0x2]??'',0xa))){const _0x2e80ac=Number['parseInt'](_0x4e2ddd[0x1]??'',0xa);if(!Number[_0x4e62e6(_0x5900be._0x14a81f,_0x5900be._0xc07e0d,_0x5900be._0x326d0e,_0x5900be._0x5793a9)](_0x2e80ac)||!_0x4e2ddd[0x0])return null;return{'filePath':_0x4e2ddd[0x0],'lineNum':_0x2e80ac,'lineText':_0x4e2ddd[_0x52f53f(0x77c,_0x5900be._0x3865f3,_0x5900be._0x2407d4,0x6ce)](0x3)[_0x52f53f(0x753,0x790,_0x5900be._0x3c8082,_0x5900be._0x33603e)]('|')};}if(_0x4e2ddd['length']>=0x3){const _0x2a7732=Number['parseInt'](_0x4e2ddd[0x1]??'',0xa);if(!Number[_0x52f53f(0x671,_0x5900be._0x40a2b3,_0x5900be._0x54e829,0x695)](_0x2a7732)||!_0x4e2ddd[0x0])return null;return{'filePath':_0x4e2ddd[0x0],'lineNum':_0x2a7732,'lineText':_0x4e2ddd[_0x4e62e6(0x30b,_0x5900be._0xb04ad9,_0x5900be._0x1fc38c,_0x5900be._0x2247f3)](0x2)[_0x52f53f(_0x5900be._0x5232b6,_0x5900be._0x4792c5,_0x5900be._0x2b5d38,0x6ad)]('|'),..._0x551e60?{'isContext':!![]}:{}};}function _0x4e62e6(_0x5e452e,_0x26ab43,_0x30c931,_0x25f9cc){return _0x38d42b(_0x5e452e-0x16f,_0x5e452e-_0x3968de._0x4c589f,_0x30c931,_0x25f9cc-_0x3968de._0x395d4c);}return null;}async function search(_0x1f3f92){const _0x21e536={_0x4ac600:0x479,_0x2eec67:0x35e,_0x4a8ba2:0x594,_0x3738ee:0x38e,_0x6edad1:0x14b,_0x164798:0x33a,_0x43cf98:0x1f4,_0x288779:0x364,_0x54bbc2:0x26f,_0x126bd5:0x3b6,_0x1e1802:0x3bc,_0x53e233:0x45f,_0x5063e4:0x4fe,_0x2b7fdb:0x2f1,_0x5f4b7a:0x3cf,_0x361341:0x35c,_0x493e40:0x33d,_0x1e840b:0x39c,_0x2172ed:0x293,_0x39f592:0x1a2,_0x18e0e6:0x406,_0x190d40:0x4f9,_0x564cff:0x2ba,_0x21d2b6:0x408,_0x5bb4c1:0x3f6,_0x1e200e:0x45e,_0x3ac268:0x459,_0x594536:0x465,_0x283c98:0x3f3,_0x126901:0x46c,_0x3a9842:0x3a7,_0x50daf0:0x2d6,_0x16c0e1:0x2e0,_0x4bc2e7:0x341,_0x3dda77:0x399,_0x1a7780:0x270,_0x563b9d:0x425,_0x2ddf6d:0x335,_0x5d9aa9:0x42e,_0x512edf:0x420,_0x179b9f:0x290,_0x20b0a4:0x320,_0x11fac1:0x33c,_0x257906:0x3e8,_0x5b10f3:0x20c,_0x428a28:0x35f,_0x32c209:0x24f,_0x1d96ff:0x4df,_0x3c6729:0x3da,_0x17d861:0x395,_0x5efc36:0x50b,_0x53b489:0x127,_0xedb279:0x347,_0x4996c9:0x1b3},_0x3d7973={_0x3d73cc:0x20d,_0x57e9f2:0x11c,_0x15f030:0x215,_0x4c2d04:0xdd,_0x292f2b:0x6a,_0xdb9ec6:0xa7,_0x4754ad:0x1ac,_0x1292c5:0x284,_0x3cd197:0x22b,_0x3e09e1:0x2ec,_0x153739:0x2c3,_0x34e60a:0x2a,_0x32f6d9:0x153,_0x2157a8:0xfc},_0x3347ae={_0x24c2dc:0x310,_0x3fad67:0x5a},_0x4245d8={_0x4a84df:0x21a,_0x9f3636:0x75},_0x6b765d=await filepath();if(_0x1f3f92[_0x301845(_0x21e536._0x4ac600,_0x21e536._0x2eec67,_0x21e536._0x4a8ba2,_0x21e536._0x3738ee)]){const _0x372930=await _0x59ebd8(_0x1f3f92[_0x301845(0x479,0x42e,0x34d,0x46f)])[_0x3f4979(0x106,_0x21e536._0x6edad1,_0x21e536._0x164798,_0x21e536._0x43cf98)](()=>null);if(!_0x372930?.[_0x301845(_0x21e536._0x288779,_0x21e536._0x54bbc2,_0x21e536._0x126bd5,0x26b)]())throw Object[_0x301845(0x4fd,0x5ee,_0x21e536._0x1e1802,_0x21e536._0x53e233)](new Error(_0x301845(0x4e5,0x40f,_0x21e536._0x5063e4,0x453)+_0x1f3f92[_0x301845(_0x21e536._0x4ac600,0x54c,0x37a,0x501)]+'\x27'),{'code':_0x301845(_0x21e536._0x2b7fdb,0x314,_0x21e536._0x5f4b7a,0x1ff)});}else{const _0x1aa6d5=await _0x59ebd8(_0x1f3f92[_0x3f4979(_0x21e536._0x361341,0x49e,_0x21e536._0x493e40,_0x21e536._0x1e840b)])[_0x301845(_0x21e536._0x2172ed,0x363,0x3a6,_0x21e536._0x39f592)](()=>null);if(!_0x1aa6d5?.[_0x301845(_0x21e536._0x18e0e6,_0x21e536._0x190d40,_0x21e536._0x564cff,_0x21e536._0x21d2b6)]())throw Object[_0x3f4979(0x571,_0x21e536._0x5bb4c1,0x3ef,_0x21e536._0x1e200e)](new Error(_0x301845(_0x21e536._0x3ac268,0x582,_0x21e536._0x594536,0x574)+_0x1f3f92['cwd']+'\x27'),{'code':'ENOENT'});}const _0x4b4f20=[_0x301845(_0x21e536._0x283c98,0x435,_0x21e536._0x126901,0x2cd),_0x3f4979(0x250,_0x21e536._0x3a9842,0x3a4,_0x21e536._0x50daf0),'--field-context-separator=|',_0x3f4979(_0x21e536._0x16c0e1,_0x21e536._0x4bc2e7,_0x21e536._0x3dda77,0x2f4),_0x1f3f92[_0x3f4979(_0x21e536._0x1a7780,0x448,_0x21e536._0x563b9d,0x341)]],_0x44123f=typeof _0x1f3f92[_0x301845(_0x21e536._0x2ddf6d,0x316,_0x21e536._0x5d9aa9,_0x21e536._0x512edf)]===_0x301845(_0x21e536._0x179b9f,_0x21e536._0x20b0a4,_0x21e536._0x11fac1,0x3c8)&&_0x1f3f92[_0x301845(0x335,_0x21e536._0x257906,0x315,_0x21e536._0x5b10f3)]>0x0;_0x44123f&&_0x4b4f20[_0x301845(0x267,_0x21e536._0x428a28,0x1bf,0x38d)]('-C',String(_0x1f3f92[_0x3f4979(0x2bd,0x1fd,0x283,0x296)]),_0x3f4979(0x21c,0x347,_0x21e536._0x32c209,0x308));_0x1f3f92[_0x3f4979(0x415,0x21a,0x39f,0x33b)]&&!_0x1f3f92[_0x3f4979(0x346,_0x21e536._0x1d96ff,0x510,0x3da)]&&_0x4b4f20['push']('--glob',_0x1f3f92[_0x301845(_0x21e536._0x3c6729,_0x21e536._0x17d861,0x2db,_0x21e536._0x5efc36)]);function _0x3f4979(_0x22ab04,_0x4d71c2,_0x24d395,_0x109588){return _0x38d42b(_0x22ab04-0x10b,_0x109588-_0x4245d8._0x4a84df,_0x4d71c2,_0x109588-_0x4245d8._0x9f3636);}_0x4b4f20[_0x301845(0x267,_0x21e536._0x53b489,_0x21e536._0xedb279,_0x21e536._0x4996c9)](_0x1f3f92['file']??_0x1f3f92[_0x3f4979(0x3fb,0x3e3,0x25b,_0x21e536._0x1e840b)]);function _0x301845(_0x4f72ea,_0x574787,_0x50fc34,_0x446e1c){return _0x37c1da(_0x4f72ea-0x12e,_0x574787-0xc7,_0x574787,_0x4f72ea- -0x192);}return await new Promise((_0xfc1cf9,_0x3197ef)=>{const _0x45e698={_0x420695:0x201,_0x1d769e:0x31a,_0x384e92:0x2ce,_0x1ddeb2:0x3d7,_0x523f06:0x34a,_0x101a45:0x36d,_0x245de0:0x2c8,_0x1924b6:0x161,_0x374c3b:0x10e},_0x31127a={_0x5e09b0:0xb,_0x2289ea:0x2d},_0x2e2ea6={_0x5c3ccb:0x57a,_0x93dda9:0xba,_0x31b50c:0x12a};function _0x3d61c6(_0xd90885,_0x4c018d,_0xec3026,_0x3e1bde){return _0x301845(_0xec3026- -_0x3347ae._0x24c2dc,_0x4c018d,_0xec3026-0x67,_0x3e1bde-_0x3347ae._0x3fad67);}function _0x1ef530(_0x527214,_0x4c1359,_0x53b154,_0xc95ffc){return _0x301845(_0xc95ffc- -_0x2e2ea6._0x5c3ccb,_0x527214,_0x53b154-_0x2e2ea6._0x93dda9,_0xc95ffc-_0x2e2ea6._0x31b50c);}const _0x3774a3=_0xfe313f(_0x6b765d,_0x4b4f20,{'cwd':_0x1f3f92['cwd'],'stdio':['ignore',_0x3d61c6(0x250,_0x3d7973._0x3d73cc,_0x3d7973._0x57e9f2,_0x3d7973._0x15f030),_0x1ef530(-_0x3d7973._0x4c2d04,-_0x3d7973._0x292f2b,-_0x3d7973._0xdb9ec6,-0x14e)]});let _0x45c1e5='',_0x539c5e='';_0x3774a3[_0x1ef530(-_0x3d7973._0x4754ad,-0x84,0x6c,-0xcb)]?.['on'](_0x1ef530(-_0x3d7973._0x1292c5,-_0x3d7973._0x3cd197,-0x210,-_0x3d7973._0x3e09e1),_0x4513bd=>{const _0x2e565c={_0x21a2d7:0x2b};function _0x16adff(_0x5d0805,_0x3a0698,_0x4aecfb,_0x458b87){return _0x1ef530(_0x4aecfb,_0x3a0698-0x90,_0x4aecfb-_0x2e565c._0x21a2d7,_0x458b87-0x2fb);}_0x45c1e5+=_0x4513bd[_0x16adff(0x149,_0x31127a._0x5e09b0,-_0x31127a._0x2289ea,0xa4)]();}),_0x3774a3[_0x1ef530(-0x261,-0x230,-_0x3d7973._0x153739,-0x25b)]?.['on'](_0x3d61c6(_0x3d7973._0x34e60a,0xc,-0x82,-0x38),_0x21bd65=>{_0x539c5e+=_0x21bd65['toString']();}),_0x3774a3['on']('close',_0x5b7bd9=>{const _0x2eee21={_0x1e22cc:0x152,_0x4c22a2:0x88,_0x9c9cec:0x4aa},_0x224447={_0x522890:0x12,_0x2f4af4:0xe6};if(_0x5b7bd9===0x1&&_0x45c1e5===''){_0xfc1cf9([]);return;}function _0x261ea5(_0x4a3f89,_0x48f361,_0x579681,_0x21f803){return _0x3d61c6(_0x4a3f89-_0x224447._0x522890,_0x4a3f89,_0x48f361-0x35a,_0x21f803-_0x224447._0x2f4af4);}if(_0x5b7bd9!==0x0&&_0x5b7bd9!==0x1){_0x3197ef(new Error(_0x4e1067(0xbc,0x112,_0x45e698._0x420695,0x112)+_0x539c5e));return;}const _0x2779fa=_0x1f3f92['limit']??0x64;function _0x4e1067(_0x16fcb8,_0x48c6be,_0x3be1bf,_0x2b1bb2){return _0x1ef530(_0x16fcb8,_0x48c6be-_0x2eee21._0x1e22cc,_0x3be1bf-_0x2eee21._0x4c22a2,_0x3be1bf-_0x2eee21._0x9c9cec);}const _0x1e7c73=[];for(const _0x150486 of _0x45c1e5[_0x4e1067(0x31b,0x42a,_0x45e698._0x1d769e,_0x45e698._0x384e92)](/\r?\n/)){if(_0x1e7c73[_0x4e1067(_0x45e698._0x1ddeb2,_0x45e698._0x523f06,_0x45e698._0x384e92,_0x45e698._0x101a45)]>=_0x2779fa)break;const _0x9a7e62=parseMatchLine(_0x150486,_0x44123f);if(_0x9a7e62)_0x1e7c73[_0x4e1067(_0x45e698._0x245de0,_0x45e698._0x1924b6,0x197,_0x45e698._0x374c3b)](_0x9a7e62);}_0xfc1cf9(_0x1e7c73);}),_0x3774a3['on'](_0x1ef530(-_0x3d7973._0x32f6d9,-_0x3d7973._0x2157a8,-0xac,-0xcd),_0x3197ef);});}function createGlobTool(_0x96212c={}){const _0x396fd2={_0x5ded56:0x3f1,_0x88fa93:0x42c,_0x30fd26:0x372,_0x152ade:0x36c,_0x20e207:0x3ab,_0x4de438:0x3da,_0xd86ca3:0xa2,_0x17572d:0x3f,_0x4fbe13:0x2d6,_0x183683:0x1f8,_0x12a4b3:0xb3,_0xc3aa74:0x1d6,_0x70a405:0x13a,_0x5589b0:0x5b},_0x379116={_0x2ad7cf:0x25,_0x2b475a:0xb2,_0x25bc57:0x1d,_0x45eb05:0x56,_0x452e7f:0x17,_0x34b185:0x148,_0x46ab08:0x8,_0x235e38:0xe,_0x26b6a1:0x19f,_0x16e98d:0x87,_0x231614:0xed,_0x1de0aa:0x12d,_0x461e8f:0x51,_0x158f13:0x2c7,_0x3a328c:0x1e9,_0xe5c275:0x67,_0x34875f:0xa1,_0x44b7d8:0x129,_0x83c770:0x5f,_0x1b1ec6:0x23,_0x4994ea:0x4d,_0x4a33d3:0x5c,_0x239273:0x85,_0x12c384:0x354,_0x4b6734:0x214,_0x8874ba:0x22d,_0x1173fc:0xa5,_0x3e2601:0x44,_0x347ea6:0xa3,_0xdc5557:0xa2,_0x589a95:0x16f,_0x35b105:0x1a2,_0x54bacf:0x9e,_0x4b3174:0xf0,_0x44dc7a:0x100,_0x35daab:0x24,_0x293906:0x1b6,_0x48146b:0x9e,_0x49b80f:0xd6,_0x3cf154:0xff,_0x374881:0xe0,_0x3cf1e4:0x220,_0x2a0ba2:0xe2,_0x169a15:0xc0,_0x1095d8:0xd6},_0x11f630={_0xc7c82d:0x1e4,_0x1c7003:0x6a,_0x915ce5:0x3c7};function _0x45b48e(_0x20742c,_0x141fef,_0xb9e02c,_0x288eb9){return _0x37c1da(_0x20742c-_0x11f630._0xc7c82d,_0x141fef-_0x11f630._0x1c7003,_0x288eb9,_0x20742c- -_0x11f630._0x915ce5);}const _0x16b4d5=_0x562f86[_0x164bf3(0x2ed,_0x396fd2._0x5ded56,0x30d,_0x396fd2._0x88fa93)](_0x96212c[_0x164bf3(0x418,_0x396fd2._0x30fd26,0x535,0x45c)]??process[_0x164bf3(_0x396fd2._0x152ade,0x230,0x255,_0x396fd2._0x20e207)]()),_0x269956=(_0x96212c['allowedDirs']??[])[_0x164bf3(0x41b,0x4d3,_0x396fd2._0x4de438,0x316)](_0x81f019=>_0x562f86['resolve'](_0x81f019)),_0xd883ab=_0x96212c[_0x45b48e(_0x396fd2._0xd86ca3,_0x396fd2._0x17572d,0x134,0xbe)]??0x64;function _0x164bf3(_0x368c69,_0x19f10a,_0x4b14ec,_0x235d62){return _0x37c1da(_0x368c69-0x5,_0x19f10a-0x7e,_0x19f10a,_0x368c69- -0x261);}const _0x2630dd=_0x96212c['name']??_0x164bf3(0x1ce,0x13a,0x11a,_0x396fd2._0x4fbe13);return defineTool({'name':_0x2630dd,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x164bf3(_0x396fd2._0x183683,_0x396fd2._0x12a4b3,_0x396fd2._0xc3aa74,0x13e),'properties':{'pattern':{'type':'string'},'path':{'type':_0x164bf3(0x26c,0x3ad,0x152,_0x396fd2._0x70a405)},'limit':{'type':_0x45b48e(_0x396fd2._0x5589b0,-0x3e,0x149,-0xd5)}},'required':['pattern']},async *'execute'(_0x3b0edb){const _0x4f23d9={_0x5c19ee:0x18f},_0x3f90b9={_0x34dce8:0x28b,_0x46bba9:0x86};if(_0x3b0edb[_0x213dfd(-0x62,0x9e,0x4e,_0x379116._0x2ad7cf)][_0x77fef1(-_0x379116._0x2b475a,-_0x379116._0x25bc57,-0xe9,-_0x379116._0x45eb05)]()['length']===0x0)throw new ToolExecutionError(_0x213dfd(-0x33,0x59,_0x379116._0x452e7f,_0x379116._0x34b185),{});const _0x4a731b=resolveAllowedPath(_0x16b4d5,_0x269956,_0x3b0edb[_0x77fef1(-_0x379116._0x46ab08,-0x1b,0x104,_0x379116._0x235e38)]??'.');function _0x77fef1(_0x8b41b5,_0x258c44,_0x3fbe08,_0x41887a){return _0x45b48e(_0x41887a- -_0x3f90b9._0x34dce8,_0x258c44-0x190,_0x3fbe08-_0x3f90b9._0x46bba9,_0x258c44);}const _0x29fb23=await _0x58f221(_0x4a731b)[_0x213dfd(-_0x379116._0x26b6a1,-0xaf,-0x8f,-0x19b)](()=>null);if(!_0x29fb23?.[_0x213dfd(0x1d9,0xc4,_0x379116._0x16e98d,0x99)]())throw new ToolExecutionError(_0x213dfd(0x8a,-0x3b,-_0x379116._0x231614,0x8a)+(_0x3b0edb[_0x213dfd(0x1a0,0x18c,0x2c2,_0x379116._0x1de0aa)]??'.'),{'path':_0x3b0edb[_0x77fef1(0x65,0x149,_0x379116._0x461e8f,_0x379116._0x235e38)]??'.'});const _0x155ed7=_0x3b0edb[_0x77fef1(-0x12e,-_0x379116._0x158f13,-0x189,-_0x379116._0x3a328c)]??_0xd883ab,_0x3ae788=Math[_0x77fef1(0x3a,_0x379116._0xe5c275,-0xa1,-_0x379116._0x34875f)](0x1,Math[_0x77fef1(_0x379116._0x44b7d8,0x81,-_0x379116._0x83c770,_0x379116._0x1b1ec6)](_0x155ed7)),_0x2cb0d5=[];let _0x1decd6=![];for await(const _0x50cc6c of files({'cwd':_0x4a731b,'glob':[_0x3b0edb['pattern']]})){if(_0x2cb0d5[_0x213dfd(-_0x379116._0x4994ea,_0x379116._0x4a33d3,-0x45,_0x379116._0x239273)]>=_0x3ae788){_0x1decd6=!![];break;}const _0x513d21=await _0x58f221(_0x562f86['join'](_0x4a731b,_0x50cc6c))[_0x77fef1(-_0x379116._0x12c384,-0x149,-_0x379116._0x4b6734,-_0x379116._0x8874ba)](()=>null);_0x2cb0d5['push']({'path':_0x50cc6c,'mtime':_0x513d21?.[_0x213dfd(-_0x379116._0x1173fc,-_0x379116._0x3e2601,0x36,0x109)]??0x0});}_0x2cb0d5[_0x77fef1(-_0x379116._0x347ea6,-_0x379116._0xdc5557,-_0x379116._0x589a95,-_0x379116._0x35b105)]((_0x5c3bc7,_0x52666c)=>_0x52666c[_0x77fef1(-0xe0,-0xb3,-0x117,-0x5d)]-_0x5c3bc7[_0x213dfd(0xd3,0x121,0x233,0xfb)]);const _0x3cc0c9=_0x2cb0d5['map'](_0x10e132=>_0x10e132[_0x213dfd(0x1dd,0x18c,0xce,0x253)]),_0x333ddf=_0x3cc0c9['length']===0x0?_0x77fef1(-_0x379116._0x54bacf,_0x379116._0x4b3174,_0x379116._0x44dc7a,_0x379116._0x35daab)+_0x3b0edb[_0x213dfd(0x8b,0x9e,-0x1b,0x189)]:''+_0x3cc0c9['join']('\x0a')+(_0x1decd6?_0x77fef1(-0x16d,-0xf5,-_0x379116._0x293906,-_0x379116._0x48146b):'');function _0x213dfd(_0x236627,_0x2a6f4a,_0x5c2b75,_0x5e13ea){return _0x164bf3(_0x2a6f4a- -0x273,_0x5c2b75,_0x5c2b75-0x86,_0x5e13ea-_0x4f23d9._0x5c19ee);}return yield createToolOutput(_0x333ddf,{'pattern':_0x3b0edb[_0x77fef1(-_0x379116._0x49b80f,-_0x379116._0x3cf154,-0x3f,-_0x379116._0x374881)],'searchPath':_0x562f86[_0x213dfd(_0x379116._0x3cf1e4,_0x379116._0x2a0ba2,0xd4,0x35)](_0x16b4d5,_0x4a731b)||'.','matches':_0x3cc0c9,'count':_0x3cc0c9[_0x213dfd(-_0x379116._0x169a15,0x5c,-0xa2,_0x379116._0x1095d8)],'truncated':_0x1decd6}),void 0x0;}});}import{stat as _0x260d4c}from'fs/promises';import*as _0x1ee4f5 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x62cc11={}){const _0x20c0fc={_0x497617:0x268,_0x374622:0x336,_0xae99c8:0x53,_0x5d9b10:0x3c,_0x2c17c5:0x85,_0x3e998b:0x5e,_0x2f2356:0x2b0,_0x3647c3:0x114,_0xd06bdf:0x208,_0x53fdd8:0x1c2,_0xa6b6d3:0x5c,_0x5b0f81:0x1dc,_0x2c0e95:0x23d,_0x1c2dd9:0x13c,_0x1082f8:0x28c,_0x1c2707:0x361},_0x185bac={_0x20d109:0x6b,_0x12537f:0xaf,_0x1c728d:0x19,_0x15cd13:0x16,_0x587ebd:0x9b,_0x525be0:0xad,_0x551bfe:0xa0,_0x1401bf:0xb6,_0x4c6cf8:0x1a,_0x42d5e4:0x61,_0x49282f:0x1be,_0x1f20b1:0x10e,_0x5dd45e:0x28d,_0x2392cc:0xd4,_0x51a9ef:0x12c,_0x3a1a81:0x9c,_0x481f03:0x45,_0x310505:0xd2,_0x5da8eb:0x7d,_0x4761c3:0x178,_0x4251a6:0x130,_0x1b30bb:0x174,_0x35a33a:0x2b2,_0x1a1b0f:0x134,_0x86acd1:0x15f,_0x390baa:0x92,_0x1e5e2a:0x13,_0x239b2e:0x6b,_0x3c0aa0:0x94,_0x2d926e:0x11c,_0x277058:0x150,_0x23ea21:0x1cf,_0x949e94:0x2a,_0x2b81d5:0xf1,_0x1b8938:0x5,_0x439f5d:0xb2,_0x3c59c3:0x290,_0x11ddc3:0x1b8,_0x5e6994:0x3c,_0x34551a:0x27,_0x1a6fc4:0xc0,_0x5282e6:0xaa,_0x38e154:0x1c,_0x34e219:0x123,_0x59639d:0xac,_0x321ee0:0x5c,_0x27d24a:0x8a,_0x51b43e:0x229,_0xf7e6dc:0xe9,_0x587e5b:0x32e,_0x474902:0x53,_0x1c9a73:0x194,_0x3c5c6f:0x119,_0x4af43e:0xb3,_0x1471bd:0x101,_0x4eb0be:0x1b,_0xd9ab21:0x18c,_0x40972b:0x69,_0x569acb:0x290,_0x5825c2:0x6b,_0x129dd2:0xc4,_0x33f7cf:0x98,_0x154c9b:0x17c,_0x2db51a:0x149,_0x2e52fc:0x65,_0x487032:0x25,_0x4b0825:0x6c,_0x18ff10:0xcc,_0x268a23:0x17a,_0x338631:0x159,_0x5bbbe8:0x6e,_0x431d53:0xae,_0x48368e:0xf,_0x22df13:0x111,_0x33af55:0x109,_0x3d68d0:0x1e0,_0x29b5d2:0x74,_0x2dcc89:0x15,_0x729500:0x6,_0x433d36:0x2d,_0x3a4dd4:0x1ad,_0x5da186:0x66,_0x5b7462:0x12b,_0x5e3319:0x19,_0x1e89d7:0x18e,_0x35a690:0x1b5,_0x8256be:0x13b,_0x328e34:0x22b,_0x7043a2:0x1a0,_0x14af9a:0xf3,_0x55eaab:0x264,_0x4f4e18:0xbb,_0x4f892d:0x1f},_0x1a089e={_0x237773:0x122,_0x216bb3:0x6b},_0xdd3ee4={_0x3dfece:0x5d},_0x5f05fe={_0x1984ab:0x107},_0x3cc99d=_0x1ee4f5[_0xb9d956(0x276,_0x20c0fc._0x497617,0x302,_0x20c0fc._0x374622)](_0x62cc11[_0x3f0843(0xe8,-_0x20c0fc._0xae99c8,0x6,0x64)]??process[_0x3f0843(_0x20c0fc._0x5d9b10,-_0x20c0fc._0x2c17c5,-_0x20c0fc._0x3e998b,0x11d)]()),_0x4358dc=(_0x62cc11[_0x3f0843(-0x18a,-0x2b7,-0x2b0,-_0x20c0fc._0x2f2356)]??[])[_0xb9d956(0x34a,0x396,0x307,0x44b)](_0x1d6570=>_0x1ee4f5[_0xb9d956(0x14c,0x268,0x29f,0x1e9)](_0x1d6570));function _0x3f0843(_0x32890e,_0x3d0aa8,_0x408bcb,_0x242b17){return _0x38d42b(_0x32890e-_0x5f05fe._0x1984ab,_0x32890e- -0x146,_0x3d0aa8,_0x242b17-0x1ca);}const _0x4a1c35=_0x62cc11['limit']??0x64;function _0xb9d956(_0x1f8439,_0x4066c5,_0x3bba54,_0x3de77d){return _0x38d42b(_0x1f8439-0x11c,_0x4066c5-0x165,_0x3bba54,_0x3de77d-_0xdd3ee4._0x3dfece);}const _0x54e09e=_0x62cc11['name']??'Grep';return defineTool({'name':_0x54e09e,'description':_0xb9d956(_0x20c0fc._0x3647c3,_0x20c0fc._0xd06bdf,0x274,_0x20c0fc._0x53fdd8),'inputSchema':{'type':_0xb9d956(0x12f,0x173,0xd6,_0x20c0fc._0xa6b6d3),'properties':{'pattern':{'type':'string'},'path':{'type':'string'},'include':{'type':_0x3f0843(-0xc4,-_0x20c0fc._0x5b0f81,-0x1ab,-0xb4)},'limit':{'type':_0x3f0843(-0x16f,-0x234,-0x180,-_0x20c0fc._0x2c0e95)},'context':{'type':_0xb9d956(0x22b,_0x20c0fc._0x1c2dd9,0x1f9,0x1e5)}},'required':[_0xb9d956(0x3d0,_0x20c0fc._0x1082f8,_0x20c0fc._0x1c2707,0x312)]},async *'execute'(_0x1d9659){const _0x3b1ffd={_0x1c78e0:0x12d,_0xed7591:0x2fd,_0x22561a:0x112};if(_0x1d9659[_0x542b86(-_0x185bac._0x20d109,-_0x185bac._0x12537f,-0x6b,-0xe)][_0x54cc15(_0x185bac._0x1c728d,-0xcf,-_0x185bac._0x15cd13,_0x185bac._0x587ebd)]()[_0x542b86(-0x1a1,-0xd7,-_0x185bac._0x525be0,-_0x185bac._0x551bfe)]===0x0)throw new ToolExecutionError(_0x54cc15(-_0x185bac._0x1401bf,0x8b,-0xa2,_0x185bac._0x4c6cf8),{});function _0x54cc15(_0x50a7a6,_0x28cc73,_0x5c99b2,_0xa98ca5){return _0xb9d956(_0x50a7a6-_0x3b1ffd._0x1c78e0,_0x50a7a6- -_0x3b1ffd._0xed7591,_0x5c99b2,_0xa98ca5-_0x3b1ffd._0x22561a);}const _0x1aeb6c=resolveAllowedPath(_0x3cc99d,_0x4358dc,_0x1d9659[_0x542b86(_0x185bac._0x42d5e4,0x1ce,0x83,0x188)]??'.'),_0xbf8513=await _0x260d4c(_0x1aeb6c)[_0x54cc15(-_0x185bac._0x49282f,-_0x185bac._0x1f20b1,-_0x185bac._0x5dd45e,-_0x185bac._0x2392cc)](()=>null);function _0x542b86(_0x1bfcbd,_0x5e2ad8,_0x478ba3,_0x4d5460){return _0x3f0843(_0x478ba3- -0x4c,_0x5e2ad8,_0x478ba3-_0x1a089e._0x237773,_0x4d5460-_0x1a089e._0x216bb3);}const _0xf469ee=_0xbf8513?.['isFile']()??![],_0x5b2a10=_0xbf8513?.[_0x542b86(-_0x185bac._0x51a9ef,_0x185bac._0x3a1a81,-_0x185bac._0x481f03,_0x185bac._0x310505)]()??![];if(!_0xf469ee&&!_0x5b2a10)throw new ToolExecutionError(_0x54cc15(-0x99,0x73,-0x1bf,0x4e)+(_0x1d9659['path']??'.'),{'path':_0x1d9659[_0x54cc15(_0x185bac._0x5da8eb,_0x185bac._0x4761c3,0x7a,_0x185bac._0x4251a6)]??'.'});const _0x5ce66a=_0x1d9659[_0x542b86(-0x10e,-0x154,-_0x185bac._0x1b30bb,-_0x185bac._0x35a33a)]??_0x4a1c35,_0x263dd2=Math[_0x54cc15(-0x32,-0x140,-_0x185bac._0x1a1b0f,-_0x185bac._0x86acd1)](0x1,Math[_0x54cc15(_0x185bac._0x390baa,_0x185bac._0x1e5e2a,0x16,0xc7)](_0x5ce66a)),_0x59e6d1=await search({'cwd':_0x5b2a10?_0x1aeb6c:_0x1ee4f5['dirname'](_0x1aeb6c),'pattern':_0x1d9659[_0x542b86(-0x175,-0x3b,-_0x185bac._0x239b2e,-_0x185bac._0x3c0aa0)],'glob':_0x5b2a10?_0x1d9659['include']:void 0x0,'limit':_0x263dd2,'file':_0xf469ee?_0x1aeb6c:void 0x0,'context':_0x1d9659[_0x54cc15(-_0x185bac._0x2d926e,-_0x185bac._0x277058,-0xd8,-_0x185bac._0x23ea21)]}),_0x4620e6=new Map();for(const _0x668e6d of _0x59e6d1){if(!_0x4620e6['has'](_0x668e6d[_0x542b86(_0x185bac._0x949e94,_0x185bac._0x2b81d5,-0x39,-0x48)])){const _0x9a568b=await _0x260d4c(_0x668e6d[_0x54cc15(-0x3f,-_0x185bac._0x1b8938,_0x185bac._0x439f5d,0x14)])[_0x542b86(-_0x185bac._0x3c59c3,-0xb2,-_0x185bac._0x11ddc3,-0x13a)](()=>null);_0x4620e6[_0x54cc15(-_0x185bac._0x5e6994,_0x185bac._0x34551a,-_0x185bac._0x1a6fc4,-0x11d)](_0x668e6d['filePath'],{'matches':[],'mtime':_0x9a568b?.['mtimeMs']??0x0});}_0x4620e6[_0x54cc15(-_0x185bac._0x587ebd,-0x5b,_0x185bac._0x5282e6,_0x185bac._0x38e154)](_0x668e6d[_0x54cc15(-0x3f,-_0x185bac._0x34e219,_0x185bac._0x59639d,-_0x185bac._0x321ee0)])?.[_0x542b86(-0xbc,-0x8b,-_0x185bac._0x27d24a,-0x153)][_0x542b86(-_0x185bac._0x51b43e,-_0x185bac._0xf7e6dc,-0x1e4,-_0x185bac._0x587e5b)](_0x668e6d);}const _0x5ea348=[..._0x4620e6[_0x542b86(-0x17e,-0x1d2,-0x158,-0x15a)]()]['sort']((_0x2e29e3,_0x3af69b)=>_0x3af69b[0x1][_0x54cc15(0x12,0x87,-0xf2,-0xdb)]-_0x2e29e3[0x1][_0x542b86(-0xf1,0x32,0x18,0xa1)]),_0xba2538=_0x59e6d1[_0x54cc15(-0x174,-0x54,-_0x185bac._0x474902,-_0x185bac._0x1c9a73)](_0x22f50f=>!_0x22f50f[_0x54cc15(-0x109,-0x136,-0x65,-0x46)])['length'],_0x249473=_0x59e6d1['length']>=_0x263dd2,_0x4cc359=_0xf469ee?_0x1ee4f5[_0x54cc15(-_0x185bac._0x3c5c6f,-0x169,-0x1aa,-0x186)](_0x1aeb6c):_0x1aeb6c;let _0x4b990f='';if(_0x59e6d1[_0x54cc15(-_0x185bac._0x4af43e,-_0x185bac._0x1471bd,-0x1e,-_0x185bac._0x4eb0be)]===0x0)_0x4b990f=_0x542b86(-_0x185bac._0xd9ab21,-_0x185bac._0x40972b,-0x1b0,-_0x185bac._0x569acb)+_0x1d9659[_0x542b86(-0x72,-0x190,-_0x185bac._0x5825c2,-_0x185bac._0x129dd2)];else{_0x4b990f=_0x54cc15(-_0x185bac._0x33f7cf,-0xf8,-0xe6,0x87)+_0xba2538+_0x542b86(_0x185bac._0x154c9b,_0x185bac._0x2db51a,_0x185bac._0x2e52fc,-_0x185bac._0x487032)+(_0xba2538===0x1?'':'es')+'\x0a';for(const [_0x204844,_0x5a00f4]of _0x5ea348){const _0x5805e1=_0xf469ee?_0x1ee4f5[_0x542b86(_0x185bac._0x4b0825,0x22,-_0x185bac._0x18ff10,-_0x185bac._0x268a23)](_0x204844):_0x1ee4f5[_0x542b86(-_0x185bac._0x338631,0x68,-0x27,-_0x185bac._0x5bbbe8)](_0x4cc359,_0x204844);_0x4b990f+='\x0a'+_0x5805e1+':\x0a';for(const _0x1662b6 of _0x5a00f4[_0x54cc15(-0x90,_0x185bac._0x431d53,-0x1bd,-0x16b)]){const _0x38438e=_0x1662b6['lineText'][_0x542b86(-0x28,-_0x185bac._0x48368e,-0xad,-0x1c5)]>MAX_LINE_LENGTH?_0x1662b6[_0x54cc15(-0x7f,0xb2,-0x17e,-0x7)][_0x54cc15(0x72,0xd9,-0x96,-0x8f)](0x0,MAX_LINE_LENGTH)+_0x54cc15(-_0x185bac._0x22df13,-0x12a,-0xb5,-0x1c6):_0x1662b6['lineText'],_0xefce0=_0x1662b6[_0x54cc15(-_0x185bac._0x33af55,0x3b,-_0x185bac._0x3d68d0,-0x1e1)]?'\x20\x20':'>\x20';_0x4b990f+=_0xefce0+_0x54cc15(0x54,-_0x185bac._0x29b5d2,0xd6,-_0x185bac._0x2dcc89)+_0x1662b6[_0x54cc15(-_0x185bac._0x729500,-0x3b,-0x135,-0x117)]+':\x20'+_0x38438e+'\x0a';}}_0x249473&&(_0x4b990f+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x4ef049={'searchPath':_0x1ee4f5[_0x54cc15(-_0x185bac._0x433d36,0x72,0x9a,0x117)](_0x3cc99d,_0x1aeb6c)||'.','pattern':_0x1d9659[_0x54cc15(-0x71,-_0x185bac._0x3a4dd4,_0x185bac._0x5da186,-0xd)],'matchCount':_0xba2538,'fileCount':_0x4620e6[_0x54cc15(-_0x185bac._0x5b7462,-0xbd,-_0x185bac._0x5e3319,-_0x185bac._0x1e89d7)],'truncated':_0x249473};return _0x5b2a10&&_0x1d9659[_0x54cc15(-_0x185bac._0x35a690,-_0x185bac._0x8256be,-0x12c,-_0x185bac._0x328e34)]!==void 0x0&&(_0x4ef049[_0x54cc15(-_0x185bac._0x35a690,-0x28d,-_0x185bac._0x7043a2,-_0x185bac._0x14af9a)]=_0x1d9659[_0x54cc15(-_0x185bac._0x35a690,-0x219,-0xb2,-_0x185bac._0x55eaab)]),yield createToolOutput(_0x4b990f[_0x542b86(_0x185bac._0x4f4e18,-0x10b,_0x185bac._0x4f892d,-0x97)](),_0x4ef049),void 0x0;}});}import{readdir as _0x17ae32,readFile as _0x4509ba,stat as _0x97d866}from'fs/promises';import*as _0x129010 from'path';import*as _0x5bfe22 from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x1f9cf2,_0xe19c37){const _0x36fbff={_0x38e0b2:0x10d,_0x2280ff:0x78,_0xf6202b:0x1da,_0x5ce761:0x245,_0x3d548b:0x37e,_0x3787ac:0x158,_0x199287:0x15a,_0x4aab80:0x7d,_0x40b38a:0x1ca,_0x569bae:0x74,_0x2ac5d5:0x96},_0x3367ca={_0x45da7b:0x100},_0x29e423={_0x12f49b:0x19c};function _0x2760f4(_0x1ed12d,_0x4044cb,_0x865178,_0x1d7235){return _0x38d42b(_0x1ed12d-0x1c4,_0x4044cb- -0x2af,_0x1d7235,_0x1d7235-_0x29e423._0x12f49b);}if(_0xe19c37>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;const _0x479bbc=await _0x4509ba(_0x1f9cf2)[_0x22a1f9(-0xbf,-_0x36fbff._0x38e0b2,-_0x36fbff._0x2280ff,-0x109)](()=>null);function _0x22a1f9(_0x403b8f,_0x726107,_0x6269c0,_0x376b53){return _0x38d42b(_0x403b8f-0x50,_0x376b53- -0xe3,_0x6269c0,_0x376b53-_0x3367ca._0x45da7b);}if(!_0x479bbc||isProbablyBinary(_0x479bbc))return void 0x0;return _0x479bbc[_0x2760f4(-_0x36fbff._0xf6202b,-_0x36fbff._0x5ce761,-_0x36fbff._0x3d548b,-_0x36fbff._0x3787ac)](_0x22a1f9(0x119,_0x36fbff._0x199287,-0x45,_0x36fbff._0x4aab80))[_0x2760f4(-0xde,-0x17e,-0x18f,-_0x36fbff._0x40b38a)](/\r?\n/)[_0x22a1f9(-_0x36fbff._0x569bae,_0x36fbff._0x2ac5d5,0x5e,0x2)];}function createLsTool(_0x11b879={}){const _0x7518c2={_0x52e87a:0x508,_0x2e0457:0x54d,_0x20f5dd:0x165,_0x1517ea:0x1a4,_0x52dac1:0x43d,_0xab2819:0x585,_0x2434be:0x3ab,_0x3994ed:0x79,_0x3f73cc:0x3f5,_0x1472a7:0x16c,_0x2f552b:0xe1,_0x70553a:0x19b,_0x5d4d15:0x6c,_0x95ab9e:0x1e3,_0x408f37:0x2f6,_0x41df3b:0x3f7},_0x561f0b={_0x1a10d0:0x401,_0x434cad:0x415,_0x360465:0x35f,_0xd3d487:0x2df,_0xb76150:0x2d5,_0x18da39:0x38f,_0x4e5219:0x52d,_0x50578c:0x462,_0x4b5ec8:0x578,_0x4a6c3c:0x4a3,_0x4633d1:0x553,_0x2a18e2:0x794,_0x3daac3:0x665,_0x215375:0x722,_0x399cdf:0x645,_0x583b52:0x41e,_0x1c3828:0x28c,_0x30a576:0x320,_0x18a21f:0x501,_0xd8e07c:0x622,_0x3049a2:0x607,_0x48c685:0x4e0,_0x36752c:0x509,_0x22d51b:0x604,_0x4e9e84:0x6da,_0x1fe3e3:0x2bd,_0x1c76dc:0x518,_0x3683d0:0x381,_0x41801b:0x480,_0x596496:0x316,_0x4e3289:0x26d,_0x126f10:0x5a8,_0x5f0d45:0x5b9,_0x59bf6f:0x4a8,_0x1db332:0x44a,_0x3e45fd:0x440,_0x1ae8d9:0x2d0,_0x5d1a2d:0x376,_0x44e57e:0x47b,_0x3fa064:0x41a,_0x2089c0:0x3f6,_0x13e2ab:0x447,_0x447495:0x5ac,_0x2f959f:0x520,_0x2e6e5d:0x5fb,_0x412069:0x622,_0xc83c37:0x72a,_0xc3b4f8:0x5ee,_0x1f1007:0x42c,_0x27929a:0x3bf,_0x46a885:0x2f8,_0x337bda:0x3f6,_0x4c6781:0x36a,_0x583faf:0x3f6,_0x3080ea:0x35b,_0x390ab3:0x397},_0xfe4d0f={_0x4671b8:0x134,_0x95143a:0x17e},_0x2d3771={_0x432b30:0x64,_0x5cbbe5:0x11c},_0x1d649a={_0x13f343:0x91},_0x50844c={_0x455430:0x120,_0x46d45d:0x31f};function _0xb7f78a(_0x29bab9,_0x5ad0e1,_0x2501b2,_0x513da3){return _0x38d42b(_0x29bab9-_0x50844c._0x455430,_0x2501b2-_0x50844c._0x46d45d,_0x29bab9,_0x513da3-0x1f0);}const _0x936acd=_0x129010['resolve'](_0x11b879[_0xb7f78a(0x496,_0x7518c2._0x52e87a,_0x7518c2._0x2e0457,0x64c)]??process['cwd']()),_0x27888b=(_0x11b879[_0x22d974(-_0x7518c2._0x20f5dd,0x1e,-_0x7518c2._0x1517ea,-0x5a)]??[])[_0xb7f78a(_0x7518c2._0x52dac1,0x553,0x550,0x43b)](_0x8d1d00=>_0x129010['resolve'](_0x8d1d00)),_0x5e0dba=_0x11b879[_0xb7f78a(0x579,_0x7518c2._0xab2819,0x43a,_0x7518c2._0x2434be)]??'Ls';function _0x22d974(_0x109e85,_0x3758fc,_0x30317e,_0x5a5af8){return _0x37c1da(_0x109e85-_0x1d649a._0x13f343,_0x3758fc-0xa7,_0x109e85,_0x5a5af8- -0x461);}return defineTool({'name':_0x5e0dba,'description':_0x22d974(_0x7518c2._0x3994ed,-0x1b,-0x78,-0x38),'inputSchema':{'type':_0xb7f78a(0x279,_0x7518c2._0x3f73cc,0x32d,0x1f0),'properties':{'path':{'type':_0x22d974(_0x7518c2._0x1472a7,_0x7518c2._0x2f552b,_0x7518c2._0x70553a,_0x7518c2._0x5d4d15)},'limit':{'type':_0xb7f78a(_0x7518c2._0x95ab9e,0x290,_0x7518c2._0x408f37,_0x7518c2._0x41df3b)}}},async *'execute'(_0x1fd93d){const _0x3d2087=_0x1fd93d[_0x1157a6(0x644,0x5f7,0x6b4,0x650)]??'.',_0x549df1=resolveAllowedPath(_0x936acd,_0x27888b,_0x3d2087),_0x19dc89=await _0x97d866(_0x549df1)[_0x1157a6(_0x561f0b._0x1a10d0,0x46d,0x459,_0x561f0b._0x434cad)](()=>null);if(!_0x19dc89?.[_0x1157a6(0x64a,0x659,0x517,0x588)]())throw new ToolExecutionError(_0xa5322e(0x439,_0x561f0b._0x360465,_0x561f0b._0xd3d487,_0x561f0b._0xb76150)+_0x3d2087,{'path':_0x3d2087});function _0x1157a6(_0xe09308,_0x4188cf,_0x685aaa,_0x4fa536){return _0xb7f78a(_0x4188cf,_0x4188cf-_0x2d3771._0x432b30,_0x4fa536-_0x2d3771._0x5cbbe5,_0x4fa536-0x6c);}const _0x20cb95=_0x1fd93d['limit']??0x3e8,_0x124bfa=Math[_0x1157a6(_0x561f0b._0x18da39,_0x561f0b._0x4e5219,0x36f,_0x561f0b._0x50578c)](Math[_0x1157a6(_0x561f0b._0x4b5ec8,_0x561f0b._0x4a6c3c,_0x561f0b._0x4633d1,0x5a1)](Math[_0x1157a6(0x74b,0x694,_0x561f0b._0x2a18e2,_0x561f0b._0x3daac3)](_0x20cb95),0x1),0x2710),_0x437b29=await _0x17ae32(_0x549df1),_0x1ef03a=[];for(const _0x2c852b of _0x437b29[_0x1157a6(0x576,_0x561f0b._0x215375,0x673,_0x561f0b._0x399cdf)](0x0,_0x124bfa)){const _0x356812=_0x129010['join'](_0x549df1,_0x2c852b),_0x44e101=await _0x97d866(_0x356812)[_0xa5322e(_0x561f0b._0x583b52,0x2eb,_0x561f0b._0x1c3828,_0x561f0b._0x30a576)](()=>null);if(!_0x44e101)continue;let _0x55c916=_0x1157a6(_0x561f0b._0x18a21f,_0x561f0b._0xd8e07c,0x74a,_0x561f0b._0x3049a2);if(_0x44e101['isFile']())_0x55c916=_0xa5322e(_0x561f0b._0x48c685,0x4d1,_0x561f0b._0x36752c,_0x561f0b._0x22d51b);else{if(_0x44e101['isDirectory']())_0x55c916='directory';else{if(_0x44e101[_0x1157a6(0x64f,_0x561f0b._0x4e9e84,0x51b,0x5f6)]())_0x55c916=_0xa5322e(_0x561f0b._0x1fe3e3,0x3fc,_0x561f0b._0x1c76dc,0x40f);}}const _0x24092f={'name':_0x2c852b,'type':_0x55c916,'size':_0x44e101['size'],'mtime':_0x44e101[_0x1157a6(0x565,0x497,_0x561f0b._0x3683d0,_0x561f0b._0x41801b)],'mode':_0x44e101[_0xa5322e(0x1a9,0x2d2,_0x561f0b._0x596496,_0x561f0b._0x4e3289)]},_0x45eead=_0x55c916==='file'?await countTextLines(_0x356812,_0x44e101[_0x1157a6(_0x561f0b._0x126f10,_0x561f0b._0x5f0d45,0x530,_0x561f0b._0x59bf6f)]):void 0x0;if(_0x45eead!==void 0x0)_0x24092f['lines']=_0x45eead;_0x1ef03a[_0x1157a6(_0x561f0b._0x1db332,_0x561f0b._0x3e45fd,0x35b,0x3e9)](_0x24092f);}_0x1ef03a[_0xa5322e(_0x561f0b._0x1ae8d9,_0x561f0b._0x5d1a2d,_0x561f0b._0x44e57e,0x313)]((_0x24988d,_0x5e89cf)=>_0x24988d['name'][_0xa5322e(0x459,0x37a,0x2d4,0x2cd)](_0x5e89cf[_0x1157a6(0x54a,0x4b6,0x59e,0x556)]));const _0x17ccb4={'path':_0x3d2087,'total':_0x1ef03a[_0xa5322e(_0x561f0b._0x3fa064,_0x561f0b._0x2089c0,0x2ed,0x3b6)],'truncated':_0x437b29[_0x1157a6(_0x561f0b._0x13e2ab,_0x561f0b._0x447495,0x63b,_0x561f0b._0x2f959f)]>_0x124bfa,'entries':_0x1ef03a};yield createToolOutput(_0x5bfe22[_0x1157a6(_0x561f0b._0x2e6e5d,_0x561f0b._0x412069,_0x561f0b._0xc83c37,_0x561f0b._0xc3b4f8)](_0x17ccb4,{'indent':0x2,'lineWidth':0x0})[_0xa5322e(_0x561f0b._0x1f1007,_0x561f0b._0x27929a,0x412,0x385)](),{'path':_0x3d2087,'total':_0x1ef03a[_0xa5322e(_0x561f0b._0x46a885,_0x561f0b._0x337bda,0x41f,_0x561f0b._0x4c6781)],'truncated':_0x437b29[_0xa5322e(0x2f0,_0x561f0b._0x583faf,_0x561f0b._0x3080ea,_0x561f0b._0x390ab3)]>_0x124bfa,'limit':_0x124bfa,'entries':_0x1ef03a});function _0xa5322e(_0x8e7e3c,_0x46e147,_0x3f3d52,_0x277c7f){return _0xb7f78a(_0x3f3d52,_0x46e147-_0xfe4d0f._0x4671b8,_0x46e147- -0xe,_0x277c7f-_0xfe4d0f._0x95143a);}return void 0x0;}});}import{stat as _0x1bc7d6}from'fs/promises';import _0x8851e2 from'path';import{fileURLToPath as _0x265f22}from'url';function severityName(_0x47abec){const _0x452fdb={_0x5bac14:0xa7,_0x64f032:0x82,_0x4bf05b:0x36,_0x23316c:0x8e};function _0xa0aa2f(_0x76b53d,_0x3b4c48,_0x217f9b,_0x98d03){return _0x37c1da(_0x76b53d-0xcf,_0x3b4c48-0xc0,_0x76b53d,_0x3b4c48- -0x66f);}function _0x39665c(_0x23dade,_0xbbb6f2,_0x5a8548,_0x202604){return _0x38d42b(_0x23dade-0x7b,_0xbbb6f2- -0x130,_0x5a8548,_0x202604-0x65);}switch(_0x47abec){case 0x1:return _0x39665c(0x1ba,_0x452fdb._0x5bac14,0x18f,-_0x452fdb._0x64f032);case 0x2:return'Warning';case 0x3:return _0x39665c(-0x202,-0xc0,-0x196,-0x208);case 0x4:return'Hint';default:return _0xa0aa2f(_0x452fdb._0x4bf05b,-_0x452fdb._0x23316c,-0x78,-0x126);}}function formatSingleHover(_0x109a98){const _0x346005={_0x1b2f00:0x280,_0x54cea7:0x3c0,_0x248125:0x2c9,_0x2295a9:0x466,_0x6ef720:0x320,_0x38bc5d:0x2ab,_0x3e286d:0x457,_0x466bb1:0x588,_0x9e2b95:0x3dd,_0x5e5a13:0x3b6,_0x519a60:0x47f,_0x9846ad:0x301,_0x2c4106:0x2c2,_0x505d9a:0x499,_0x388ae6:0x37c,_0x5816b6:0x4e5,_0x58d179:0x451,_0x46af19:0x235,_0x1d66c8:0x3c6,_0x1dc912:0x2a7,_0x581870:0x1d7,_0x1d1e1c:0x2ad,_0x230503:0x4dd,_0x273965:0x29a,_0xbb3867:0x46f},_0x5067b7={_0x115922:0x1b6},_0x259e66={_0x4fa975:0x35},_0x389cf6=_0x109a98[_0x12f9d5(0x2a3,0x209,0xec,_0x346005._0x1b2f00)];function _0x12f9d5(_0x373c26,_0x8de0f6,_0x1cf70e,_0x5b417b){return _0x37c1da(_0x373c26-_0x259e66._0x4fa975,_0x8de0f6-0x1e8,_0x1cf70e,_0x8de0f6- -0x2e0);}if(typeof _0x389cf6==='string')return _0x389cf6;if(Array[_0x91925a(0x2b6,0x1fd,_0x346005._0x54cea7,_0x346005._0x248125)](_0x389cf6))return _0x389cf6[_0x12f9d5(_0x346005._0x2295a9,0x39c,_0x346005._0x6ef720,0x424)](_0x285250=>typeof _0x285250===_0x12f9d5(0x1bb,0x1ed,0xf8,0xea)?_0x285250:_0x285250[_0x91925a(0x301,0x3ad,0x29b,0x269)])[_0x12f9d5(0x180,0x18f,0x1d9,_0x346005._0x38bc5d)](Boolean)[_0x91925a(0x47e,_0x346005._0x3e286d,_0x346005._0x466bb1,_0x346005._0x9e2b95)]('\x0a\x0a');function _0x91925a(_0x2d06c1,_0x899ba,_0x2217be,_0x94cf71){return _0x37c1da(_0x2d06c1-0x85,_0x899ba-0x140,_0x2217be,_0x2d06c1- -_0x5067b7._0x115922);}if(_0x91925a(0x429,0x4fe,_0x346005._0x5e5a13,_0x346005._0x519a60)in _0x389cf6)return _0x389cf6[_0x91925a(_0x346005._0x9846ad,0x1d6,_0x346005._0x2c4106,0x27b)];return _0x389cf6[_0x91925a(_0x346005._0x505d9a,_0x346005._0x388ae6,0x3ed,_0x346005._0x5816b6)]?_0x91925a(0x373,_0x346005._0x58d179,0x265,_0x346005._0x46af19)+_0x389cf6[_0x91925a(0x499,_0x346005._0x1d66c8,0x4d2,0x407)]+'\x0a'+_0x389cf6[_0x12f9d5(_0x346005._0x1dc912,_0x346005._0x581870,0x320,_0x346005._0x1d1e1c)]+_0x91925a(0x3db,_0x346005._0x230503,_0x346005._0x273965,_0x346005._0xbb3867):_0x389cf6[_0x12f9d5(0x172,_0x346005._0x581870,0x2b8,0x138)];}function formatHover(_0x72b2b){const _0x1ab171={_0x686db9:0x1ea,_0x2ee4f2:0x8a},_0x34a416={_0x3e7047:0x14d,_0x3977b8:0x143,_0x1d8cd5:0x1c3},_0x25d75d={_0x29c74d:0x12a,_0x23cc82:0x97,_0x42b74c:0x33};if(_0x72b2b['length']===0x0)return _0xa8d736(0x2d5,0x33b,_0x1ab171._0x686db9,0x2da);function _0x19f1f2(_0x1c6315,_0xdc9cb7,_0x5e7034,_0x43a19d){return _0x38d42b(_0x1c6315-_0x25d75d._0x29c74d,_0x1c6315- -_0x25d75d._0x23cc82,_0xdc9cb7,_0x43a19d-_0x25d75d._0x42b74c);}function _0xa8d736(_0x4a75d1,_0x2af11c,_0x50391c,_0x498a88){return _0x37c1da(_0x4a75d1-_0x34a416._0x3e7047,_0x2af11c-_0x34a416._0x3977b8,_0x2af11c,_0x498a88- -_0x34a416._0x1d8cd5);}return _0x72b2b['map'](formatSingleHover)['join'](_0x19f1f2(0x59,0x14d,0x117,_0x1ab171._0x2ee4f2));}function locationPath(_0x1a0a25){const _0x122329={_0x273cef:0x2b9,_0x5942e5:0xd0,_0x2c33a4:0x26,_0xa0eb92:0x53,_0x7fdefe:0xe4},_0x245092={_0x47afea:0x6dc};function _0x1e7c59(_0x38ae72,_0x18568c,_0x22c10e,_0x4b82fa){return _0x37c1da(_0x38ae72-0x56,_0x18568c-0x18e,_0x4b82fa,_0x18568c- -_0x245092._0x47afea);}function _0x3c9703(_0x1c108f,_0x442f00,_0x59d847,_0x3099ff){return _0x37c1da(_0x1c108f-0xa9,_0x442f00-0x86,_0x442f00,_0x1c108f- -0x678);}if(!_0x1a0a25[_0x1e7c59(-_0x122329._0x273cef,-0x1d4,-0xab,-_0x122329._0x5942e5)](_0x3c9703(-_0x122329._0x2c33a4,_0x122329._0xa0eb92,_0x122329._0x7fdefe,0x94)))return _0x1a0a25;return _0x265f22(_0x1a0a25);}function formatLocations(_0x13d264){const _0x3a5754={_0x1e40d0:0xde,_0x409cb3:0x123,_0x2a8236:0x1ca,_0x1aa365:0x96,_0x4053af:0xe8,_0x281b99:0x124},_0x24e272={_0x343acf:0x2df,_0x84e371:0x2cf,_0x215a93:0x2d1,_0x5f0cba:0x26c},_0x8440bc={_0x8064e7:0x1ba,_0x2dd4fb:0x2ac},_0x5ccc29={_0x2eb24f:0x99},_0x17bde7={_0x4895dc:0x1ae},_0x588f6e={_0x6fefbf:0x5a};function _0x6a523c(_0x25bd4d,_0x541fdb,_0x2a82f8,_0xfea804){return _0x37c1da(_0x25bd4d-0x63,_0x541fdb-_0x588f6e._0x6fefbf,_0xfea804,_0x541fdb- -0x71c);}if(_0x13d264[_0x6a523c(-0x2c2,-0x1ec,-_0x3a5754._0x1e40d0,-_0x3a5754._0x409cb3)]===0x0)return _0x224b50(0x2a5,_0x3a5754._0x2a8236,0x248,0x1f7);function _0x224b50(_0x1f512c,_0x101487,_0x44477c,_0x52edf0){return _0x37c1da(_0x1f512c-_0x17bde7._0x4895dc,_0x101487-0x28,_0x1f512c,_0x52edf0- -0x2b7);}return _0x13d264['map'](_0x3fa9c1=>{function _0x54beb6(_0x41c3bf,_0x4e4558,_0x4d192d,_0x8ebc0b){return _0x6a523c(_0x41c3bf-0x9d,_0x4d192d-0x35f,_0x4d192d-_0x5ccc29._0x2eb24f,_0x4e4558);}function _0x14a08e(_0x254a71,_0x3e7f30,_0x5e9f95,_0x5e7708){return _0x224b50(_0x5e9f95,_0x3e7f30-0x1ae,_0x5e9f95-_0x8440bc._0x8064e7,_0x5e7708-_0x8440bc._0x2dd4fb);}const _0x4b59bf=_0x3fa9c1[_0x54beb6(_0x24e272._0x343acf,0x211,_0x24e272._0x84e371,0x249)][_0x54beb6(0x1c5,0x1c2,_0x24e272._0x215a93,_0x24e272._0x5f0cba)];return locationPath(_0x3fa9c1['uri'])+':'+(_0x4b59bf['line']+0x1)+':'+(_0x4b59bf[_0x54beb6(0x138,0x18f,0x1ce,0x2fa)]+0x1);})[_0x6a523c(-_0x3a5754._0x1aa365,-_0x3a5754._0x4053af,-_0x3a5754._0x281b99,-0x22f)]('\x0a');}function isDocumentSymbol(_0xf95d41){const _0x55aa10={_0x3a80ea:0x6d1,_0x5f271a:0x724,_0x207010:0x655,_0x4ff612:0x480},_0x20bd9e={_0x3c4774:0x11c},_0x50f034={_0x41b58d:0xc6,_0x18e99b:0x414,_0x1b5ee9:0x1d5};function _0x555259(_0x13f23a,_0xae6436,_0x15f9a3,_0x12deec){return _0x38d42b(_0x13f23a-_0x50f034._0x41b58d,_0x12deec-_0x50f034._0x18e99b,_0x13f23a,_0x12deec-_0x50f034._0x1b5ee9);}function _0x2ece33(_0x416eef,_0x31d700,_0x2879cb,_0x189a6e){return _0x37c1da(_0x416eef-_0x20bd9e._0x3c4774,_0x31d700-0x193,_0x2879cb,_0x416eef- -0x8c);}return _0x555259(_0x55aa10._0x3a80ea,_0x55aa10._0x5f271a,0x5f8,_0x55aa10._0x207010)in _0xf95d41&&_0x2ece33(_0x55aa10._0x4ff612,0x533,0x39c,0x568)in _0xf95d41;}function formatSymbols(_0x340b32){const _0x50877a={_0x104ec1:0x648,_0x4346f0:0x565,_0x5c2c06:0x756,_0x3456be:0x69a,_0x5aedfa:0x57a,_0x4954d4:0x5d6,_0x52d8e2:0x6ec},_0xae6ed4={_0x17aef2:0x5bc,_0x5e72c6:0x586,_0x3cc8e7:0x4f9,_0x3a6b7b:0x5b8,_0x1fb441:0x5fa,_0x55dd53:0x472,_0x292591:0x53a,_0x2749dd:0x48c,_0x44c332:0x3ca,_0x638954:0x25d,_0x1ab06c:0x2aa,_0x3edd64:0x499,_0x28ef3e:0x5c7,_0x670715:0x4d8,_0x56da0a:0x474,_0x21e2a2:0x53c,_0x1055c4:0x447,_0x5977be:0x4c4,_0x5210d9:0x40d,_0x448714:0x5c0,_0x5f1ed6:0x615,_0x1484b6:0x6b5,_0xeffe69:0x669,_0x3f645b:0x67d,_0x41cfc8:0x505,_0x553e69:0x65c,_0x49c97b:0x5f4,_0x3e4c4c:0x586,_0x4c5bcc:0x64c,_0x37cc38:0x6ae,_0x340a29:0x515,_0x5355a4:0x5a5,_0x3d7635:0x628,_0x627406:0x53a,_0xea33d7:0x4c6,_0x243f14:0x539},_0xa49aac={_0x445fef:0x165},_0x45441c={_0x509c65:0x111,_0x38f9ee:0x108};if(_0x340b32[_0x429eac(0x527,0x688,_0x50877a._0x104ec1,_0x50877a._0x4346f0)]===0x0)return'No\x20symbols\x20found';function _0x429eac(_0x5393f7,_0x3d394d,_0x27d1d2,_0x5de4a6){return _0x37c1da(_0x5393f7-_0x45441c._0x509c65,_0x3d394d-_0x45441c._0x38f9ee,_0x5393f7,_0x5de4a6-0x35);}function _0x1df8b1(_0x1f91d4,_0x551140,_0x2b3b70,_0x35905){return _0x37c1da(_0x1f91d4-_0xa49aac._0x445fef,_0x551140-0x112,_0x2b3b70,_0x1f91d4- -0x502);}return _0x340b32[_0x429eac(_0x50877a._0x5c2c06,_0x50877a._0x3456be,_0x50877a._0x5aedfa,0x6b1)](_0x55ee7f=>{const _0x487286={_0xdec6c7:0x13d,_0x149751:0x111},_0x14f21a={_0x5c0c69:0xc1,_0x8fd7c6:0x14};if(isDocumentSymbol(_0x55ee7f))return _0x55ee7f[_0x5e2733(_0xae6ed4._0x17aef2,0x4a1,_0xae6ed4._0x5e72c6,_0xae6ed4._0x3cc8e7)]+'\x20('+_0x55ee7f['kind']+_0x5e2733(0x5c2,_0xae6ed4._0x17aef2,0x523,0x4c4)+(_0x55ee7f[_0x24dd9b(_0xae6ed4._0x3a6b7b,_0xae6ed4._0x1fb441,_0xae6ed4._0x55dd53,_0xae6ed4._0x292591)][_0x24dd9b(_0xae6ed4._0x2749dd,0x51f,0x626,0x53c)][_0x24dd9b(_0xae6ed4._0x44c332,0x304,_0xae6ed4._0x638954,_0xae6ed4._0x1ab06c)]+0x1)+':'+(_0x55ee7f[_0x5e2733(_0xae6ed4._0x3edd64,_0xae6ed4._0x28ef3e,0x574,_0xae6ed4._0x670715)][_0x24dd9b(_0xae6ed4._0x56da0a,0x506,0x573,_0xae6ed4._0x21e2a2)][_0x5e2733(0x5da,0x4c6,_0xae6ed4._0x1055c4,0x3a9)]+0x1)+']';function _0x5e2733(_0x245843,_0x1ed5b4,_0x9e5c92,_0x149158){return _0x1df8b1(_0x1ed5b4-0x43d,_0x1ed5b4-_0x14f21a._0x5c0c69,_0x9e5c92,_0x149158-_0x14f21a._0x8fd7c6);}function _0x24dd9b(_0x127f9c,_0x5d9283,_0x118673,_0x248e55){return _0x1df8b1(_0x248e55-0x3b0,_0x5d9283-_0x487286._0xdec6c7,_0x127f9c,_0x248e55-_0x487286._0x149751);}return _0x55ee7f[_0x5e2733(_0xae6ed4._0x5977be,0x4a1,_0xae6ed4._0x5210d9,0x475)]+'\x20('+_0x55ee7f[_0x5e2733(_0xae6ed4._0x448714,0x51a,0x516,_0xae6ed4._0x5f1ed6)]+')\x20'+locationPath(_0x55ee7f[_0x5e2733(0x4f6,0x59f,_0xae6ed4._0x1484b6,_0xae6ed4._0xeffe69)][_0x5e2733(0x629,0x5a8,_0xae6ed4._0x3f645b,0x52d)])+':'+(_0x55ee7f[_0x5e2733(0x5bb,0x59f,_0xae6ed4._0x41cfc8,_0xae6ed4._0x553e69)][_0x5e2733(_0xae6ed4._0x49c97b,0x5c7,_0xae6ed4._0x3e4c4c,_0xae6ed4._0x4c5bcc)]['start']['line']+0x1)+':'+(_0x55ee7f[_0x5e2733(0x4b6,0x59f,_0xae6ed4._0x37cc38,_0xae6ed4._0x340a29)][_0x24dd9b(0x4f1,_0xae6ed4._0x5355a4,_0xae6ed4._0x3d7635,_0xae6ed4._0x627406)]['start'][_0x5e2733(0x42b,_0xae6ed4._0xea33d7,0x53d,_0xae6ed4._0x243f14)]+0x1);})[_0x429eac(_0x50877a._0x4954d4,_0x50877a._0x52d8e2,0x707,0x669)]('\x0a');}function formatDiagnostics(_0x52566b){const _0x4e3d0c={_0x5ad8ea:0x28f,_0x23e4ef:0x208,_0x4ebff8:0x1af,_0x580d79:0x6c5,_0x5ca565:0x2ca,_0xfcdff3:0x2b3,_0x5629ec:0x26e},_0x465fb0={_0x3cdd4b:0x1fc,_0x38632e:0x1bf,_0x496f55:0xb1,_0x471893:0x2a4,_0x35bafa:0x270,_0x1c2c34:0x333},_0x2e8ce4={_0x3fa652:0x16d,_0x569707:0x188,_0x36098a:0x49};function _0x529b0c(_0x49e8e2,_0x1f54ad,_0x3e6809,_0x494d54){return _0x37c1da(_0x49e8e2-0x119,_0x1f54ad-0xd5,_0x1f54ad,_0x3e6809- -0x381);}if(_0x52566b[_0x529b0c(_0x4e3d0c._0x5ad8ea,_0x4e3d0c._0x23e4ef,_0x4e3d0c._0x4ebff8,0x215)]===0x0)return'No\x20diagnostics';function _0x190460(_0xbae196,_0x4d6dc1,_0xe03bc8,_0xc4fff1){return _0x37c1da(_0xbae196-_0x2e8ce4._0x3fa652,_0x4d6dc1-_0x2e8ce4._0x569707,_0xc4fff1,_0xe03bc8-_0x2e8ce4._0x36098a);}return _0x52566b[_0x190460(0x800,0x5c2,_0x4e3d0c._0x580d79,0x600)](_0x18fe65=>{const _0x2f045b={_0x596262:0x112},_0x578f24={_0x452e2e:0xa4};function _0x68e7f2(_0x557525,_0xa2236d,_0x3557e3,_0x297fac){return _0x190460(_0x557525-0x165,_0xa2236d-_0x578f24._0x452e2e,_0xa2236d- -0x516,_0x3557e3);}const _0x47c6be=_0x18fe65[_0x68e7f2(_0x465fb0._0x3cdd4b,_0x465fb0._0x38632e,_0x465fb0._0x496f55,0x1cf)]['start'];function _0x25454e(_0x5a5360,_0x3f36cb,_0x3b7e0c,_0x246a4f){return _0x190460(_0x5a5360-_0x2f045b._0x596262,_0x3f36cb-0x125,_0x3f36cb- -0x252,_0x246a4f);}return severityName(_0x18fe65[_0x25454e(0x2d4,_0x465fb0._0x471893,_0x465fb0._0x35bafa,_0x465fb0._0x1c2c34)])+'\x20['+(_0x47c6be['line']+0x1)+':'+(_0x47c6be['character']+0x1)+']\x20'+_0x18fe65['message'];})[_0x529b0c(0x1e9,_0x4e3d0c._0x5ca565,_0x4e3d0c._0xfcdff3,_0x4e3d0c._0x5629ec)]('\x0a');}function formatIncomingCalls(_0x4138b0){const _0xa6354={_0x5e6bd8:0x1ce};if(_0x4138b0[_0x25d003(0x27e,0x2b3,0x2a1,0x3c9)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x408f38(_0x3bd33d,_0x55646c,_0x54a5c6,_0x370cf3){return _0x38d42b(_0x3bd33d-0x10,_0x55646c- -0x154,_0x54a5c6,_0x370cf3-0x72);}function _0x25d003(_0x3abbb1,_0x488c77,_0x1313b5,_0x6467b9){return _0x38d42b(_0x3abbb1-0x11b,_0x488c77-_0xa6354._0x5e6bd8,_0x1313b5,_0x6467b9-0x11b);}return _0x4138b0[_0x25d003(0x505,0x3ff,0x387,0x30e)](_0x506658=>_0x506658['from'][_0x25d003(0x206,0x2e9,0x414,0x2a6)])['join']('\x0a');}function formatOutgoingCalls(_0x17099a){const _0x9c7be4={_0x4dcbfc:0x4b6,_0x436c82:0x4ea,_0x990d2f:0x42b,_0x58d7c1:0x402,_0x49d563:0x369},_0x35305a={_0x2c7785:0xc5,_0x2a4dbd:0x11b},_0x4e8d57={_0x17fea9:0x85,_0x2de927:0x3d1};function _0x3c387a(_0x3360ea,_0x4114c5,_0x20a2ff,_0x13eff3){return _0x38d42b(_0x3360ea-_0x4e8d57._0x17fea9,_0x4114c5-_0x4e8d57._0x2de927,_0x13eff3,_0x13eff3-0xdc);}if(_0x17099a[_0x3c387a(0x535,_0x9c7be4._0x4dcbfc,0x49d,0x5ca)]===0x0)return _0x3c387a(_0x9c7be4._0x436c82,_0x9c7be4._0x990d2f,_0x9c7be4._0x58d7c1,_0x9c7be4._0x49d563);function _0xffc65a(_0x29bbf2,_0x522166,_0x4ba204,_0x2619a6){return _0x38d42b(_0x29bbf2-_0x35305a._0x2c7785,_0x29bbf2-_0x35305a._0x2a4dbd,_0x2619a6,_0x2619a6-0x6e);}return _0x17099a['map'](_0x546630=>_0x546630['to'][_0xffc65a(0x236,0x1bb,0x26d,0x1c9)])['join']('\x0a');}function toStructured(_0x52f805){const _0x30a595={_0x45caac:0x18e};function _0x2291c2(_0x4f47f3,_0x249972,_0x17b77c,_0x328bf9){return _0x38d42b(_0x4f47f3-0x1e8,_0x249972-0x17a,_0x328bf9,_0x328bf9-0x4c);}return JSON[_0x2291c2(_0x30a595._0x45caac,0x1ba,0xa3,0xc1)](JSON['stringify'](_0x52f805));}async function assertFile(_0x213783){const _0x1849f3={_0x439ebe:0x1e3,_0xd779b9:0x18c,_0x35a76c:0x50,_0x1546c7:0xd0},_0x59c900={_0x48eead:0x128,_0x36d0bc:0x1e9},_0x5ecd69={_0x240e49:0xce,_0xcf2b96:0x11a};function _0x41af90(_0x6f589f,_0x552b50,_0x47d0da,_0x7dbc80){return _0x38d42b(_0x6f589f-_0x5ecd69._0x240e49,_0x7dbc80-0x175,_0x552b50,_0x7dbc80-_0x5ecd69._0xcf2b96);}const _0x36c972=await _0x1bc7d6(_0x213783);function _0x360dcc(_0x1bd4ea,_0xa53e66,_0x531e63,_0x49cc6b){return _0x38d42b(_0x1bd4ea-_0x59c900._0x48eead,_0x1bd4ea- -0x37,_0xa53e66,_0x49cc6b-_0x59c900._0x36d0bc);}if(!_0x36c972[_0x41af90(_0x1849f3._0x439ebe,_0x1849f3._0xd779b9,0xec,0x220)]())throw new ToolExecutionError(_0x360dcc(-_0x1849f3._0x35a76c,-_0x1849f3._0x1546c7,0x18,-0x15d)+_0x213783,{'path':_0x213783});}function validatePosition(_0x374e0d,_0x493eaf){const _0x59e001={_0x2a2819:0x8d,_0x2ae59e:0x50,_0x25741e:0x1a,_0x276aa4:0x37,_0x51fd65:0x106},_0x249f3c={_0x188d68:0x1ac},_0x41eb0c={_0x1086b1:0x140,_0x22f1ae:0x56,_0x2dad5d:0x19d};function _0x291f2d(_0x2c8574,_0x13ed63,_0x5d39a0,_0x2b6de4){return _0x38d42b(_0x2c8574-_0x41eb0c._0x1086b1,_0x5d39a0- -_0x41eb0c._0x22f1ae,_0x2b6de4,_0x2b6de4-_0x41eb0c._0x2dad5d);}if(!Number[_0x291f2d(-_0x59e001._0x2a2819,0x10a,_0x59e001._0x2ae59e,_0x59e001._0x25741e)](_0x374e0d)||_0x374e0d<0x1)throw new ToolExecutionError('line\x20must\x20be\x20a\x20positive\x20integer',{'line':_0x374e0d});function _0x2d0ae0(_0x403ed4,_0x20e05f,_0x5e82a0,_0x587865){return _0x38d42b(_0x403ed4-0x3c,_0x587865- -_0x249f3c._0x188d68,_0x20e05f,_0x587865-0x3a);}if(!Number[_0x2d0ae0(-0x21,-0x1ed,-_0x59e001._0x276aa4,-_0x59e001._0x51fd65)](_0x493eaf)||_0x493eaf<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x493eaf});}function createLspTool(_0x3b0535={}){const _0x480e40={_0xa887df:0x11d,_0x304c4b:0x1f8,_0x11f70e:0x69a,_0x35ddc7:0x6ff,_0x175840:0x35,_0x1083bb:0x118,_0x5112e2:0x62f,_0x4caa79:0x824,_0x31a1a9:0x702,_0x28b952:0x22d,_0x27e9d5:0x370,_0x5ad7d1:0x224,_0x455495:0x247,_0xb2806f:0x197,_0x47ae7f:0x200,_0x2dd746:0x145,_0x365522:0x2c1,_0xd0ec19:0x576,_0x2cff5a:0x4df,_0x4c874e:0x276,_0x4dca52:0x1d7,_0x541cce:0x214,_0x44b34b:0x13b,_0x22a675:0x226,_0x376f46:0x2fb,_0x12414e:0x301,_0x447742:0xfa,_0x12557a:0x1f9,_0x4000a5:0x204,_0x1d40aa:0x731,_0x43239a:0x599,_0xaddf48:0x6cf,_0x5ada25:0x398,_0x11102c:0x2c8,_0xb2468e:0x5f9,_0xd5ed4d:0x649,_0x4e6d47:0x742,_0x98c117:0x6a4,_0x16a883:0x58a,_0x286e38:0x5d9,_0x2fd0c7:0x553,_0x445b4c:0x366,_0xd01b20:0x3bb,_0x15971f:0x48,_0x4bb490:0x2b5,_0x26756b:0x16a,_0x571544:0x3c7,_0x3d6ea5:0x4c4,_0x50c238:0x5c7},_0x11dc2f={_0x3fd361:0x2c0,_0x466270:0x344,_0x157acb:0x1c6,_0x4c7b00:0x309,_0x45a76f:0x399,_0x58e310:0x3d9,_0x5aa4b0:0x345,_0x22cc5e:0x1f8,_0x2734b6:0x8e,_0x1b2720:0x43,_0x33cc21:0x21d,_0x52edfe:0x1ba,_0x40c1d4:0x354,_0x531259:0x357,_0x400ea1:0x4cc,_0x3dfb21:0x3c3,_0x3d1b9e:0x3d3,_0x4a18df:0x1a1,_0x70aa65:0x7c,_0x3c94f6:0x1a4,_0x1224a5:0x1d4,_0x45d66c:0x303,_0x41c844:0x15a,_0x382013:0x361,_0x39a64f:0x3af,_0x343b6e:0x28e,_0x5b9b30:0x36b,_0x102eff:0x357,_0x20953b:0x17f,_0x268ad6:0x269,_0xbc5c11:0x177,_0x49422c:0x357,_0x43346a:0x388,_0x1cadd5:0x2f0,_0x5ce2ad:0x23d,_0x350a3e:0x230,_0x43293c:0x152,_0x774266:0x1ba,_0x123450:0x2bb,_0x1f28e1:0xf4,_0x3a74cc:0x318,_0x588318:0x37e,_0x499095:0x27e,_0x243e30:0x47e,_0xb0bf40:0x2b1,_0x2fbe8b:0x206,_0x4ac62a:0x261,_0x3cb1a6:0x2fb,_0x61cc87:0x3b8,_0x35e9a1:0x3e4,_0x222aff:0xeb,_0x3a6b8f:0x2b0,_0x1a05af:0x173,_0x483089:0x4d4,_0x3278ea:0x4e4,_0x518183:0x319,_0x6a5793:0x3c4,_0x58503b:0x453,_0x3db09b:0x26b,_0x2d7c80:0x215},_0x1244f6={_0x38b3b3:0xad,_0x5d04b2:0x86},_0x4cd4cb={_0x34e272:0x1f0};function _0x438f49(_0x5decdd,_0xdb2765,_0x3c0c4f,_0x273ee1){return _0x37c1da(_0x5decdd-_0x4cd4cb._0x34e272,_0xdb2765-0x99,_0x3c0c4f,_0xdb2765- -0x2ef);}const _0x5c586c=_0x8851e2[_0x438f49(0x1e0,0x25f,_0x480e40._0xa887df,_0x480e40._0x304c4b)](_0x3b0535[_0x1d8cde(0x775,_0x480e40._0x11f70e,0x754,_0x480e40._0x35ddc7)]??process[_0x1d8cde(0x665,0x51d,0x593,0x653)]()),_0x1ec387=(_0x3b0535[_0x438f49(_0x480e40._0x175840,_0x480e40._0x1083bb,0x118,0x161)]??[])[_0x1d8cde(_0x480e40._0x5112e2,_0x480e40._0x4caa79,0x5bd,_0x480e40._0x31a1a9)](_0x34b6bb=>_0x8851e2[_0x1d8cde(0x598,0x680,0x5c1,0x5d4)](_0x34b6bb)),_0xfe4c0a=_0x3b0535['name']??_0x438f49(_0x480e40._0x28b952,_0x480e40._0x27e9d5,_0x480e40._0x5ad7d1,_0x480e40._0x455495);function _0x1d8cde(_0x16d4d7,_0xbbecdc,_0x2a9ceb,_0x388480){return _0x37c1da(_0x16d4d7-0x6,_0xbbecdc-_0x1244f6._0x38b3b3,_0xbbecdc,_0x388480-_0x1244f6._0x5d04b2);}return defineTool({'name':_0xfe4c0a,'description':_0x438f49(_0x480e40._0xb2806f,_0x480e40._0x47ae7f,_0x480e40._0x2dd746,_0x480e40._0x365522),'inputSchema':{'type':_0x1d8cde(0x3ab,_0x480e40._0xd0ec19,0x424,_0x480e40._0x2cff5a),'properties':{'operation':{'type':'string','enum':[_0x438f49(0x18f,_0x480e40._0x4c874e,_0x480e40._0x4dca52,_0x480e40._0x541cce),_0x438f49(_0x480e40._0x44b34b,0x26a,_0x480e40._0x22a675,0x2fd),_0x438f49(0x23e,_0x480e40._0x376f46,0x1d7,0x2b9),_0x438f49(0x390,0x351,0x2be,0x3c5),_0x438f49(_0x480e40._0x12414e,0x1e7,0x141,0x145),_0x438f49(_0x480e40._0x447742,_0x480e40._0x12557a,0x24c,_0x480e40._0x4000a5),_0x1d8cde(_0x480e40._0x1d40aa,_0x480e40._0x43239a,0x7e8,_0x480e40._0xaddf48),_0x438f49(0x317,_0x480e40._0x5ada25,0x2a5,_0x480e40._0x11102c),_0x1d8cde(_0x480e40._0xb2468e,0x737,0x67a,0x65f),_0x1d8cde(_0x480e40._0xd5ed4d,0x69e,_0x480e40._0x4e6d47,_0x480e40._0x98c117)]},'filePath':{'type':_0x1d8cde(_0x480e40._0x16a883,_0x480e40._0x286e38,0x471,_0x480e40._0x2fd0c7)},'line':{'type':'number'},'character':{'type':_0x1d8cde(_0x480e40._0x445b4c,0x51a,_0x480e40._0xd01b20,0x4a8)},'query':{'type':_0x1d8cde(0x602,0x50d,0x69b,0x553)}},'required':[_0x438f49(_0x480e40._0x15971f,0x156,0xc,0x25c),_0x438f49(0x29d,_0x480e40._0x4bb490,_0x480e40._0x26756b,0x292),_0x1d8cde(_0x480e40._0x571544,_0x480e40._0x3d6ea5,_0x480e40._0x50c238,0x482),'character']},async *'execute'(_0x3a4a39){const _0x2cddff={_0x3f3a0e:0x3f4},_0x21b581={_0x199b64:0xa2},_0x96415=_0x3b0535[_0x5edcca(_0x11dc2f._0x3fd361,_0x11dc2f._0x466270,_0x11dc2f._0x157acb,_0x11dc2f._0x4c7b00)];if(!_0x96415)throw new ToolExecutionError(_0x33dc37(0x31c,0x339,0x252,0x331));function _0x33dc37(_0x29564b,_0xef55f4,_0x2c0706,_0x32f725){return _0x438f49(_0x29564b-0x171,_0xef55f4-_0x21b581._0x199b64,_0x32f725,_0x32f725-0x14b);}if(!_0x96415[_0x5edcca(0x302,_0x11dc2f._0x45a76f,0x32f,_0x11dc2f._0x58e310)]())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x469965=_0x3a4a39[_0x33dc37(_0x11dc2f._0x5aa4b0,_0x11dc2f._0x22cc5e,0x170,0x1aa)];validatePosition(_0x3a4a39[_0x5edcca(_0x11dc2f._0x2734b6,-0x6a,-0xbb,-_0x11dc2f._0x1b2720)],_0x3a4a39[_0x5edcca(_0x11dc2f._0x33cc21,_0x11dc2f._0x52edfe,0x216,_0x11dc2f._0x40c1d4)]);if(_0x469965===_0x33dc37(_0x11dc2f._0x531259,0x289,0x315,0x36d)){if(!_0x3a4a39[_0x33dc37(_0x11dc2f._0x400ea1,_0x11dc2f._0x3dfb21,_0x11dc2f._0x3d1b9e,_0x11dc2f._0x5aa4b0)]?.['trim']())throw new ToolExecutionError(_0x5edcca(_0x11dc2f._0x4a18df,_0x11dc2f._0x70aa65,_0x11dc2f._0x3c94f6,_0x11dc2f._0x1224a5));const _0x1cb0ac=await _0x96415[_0x33dc37(0x20a,0x289,_0x11dc2f._0x45d66c,_0x11dc2f._0x41c844)](_0x3a4a39[_0x33dc37(_0x11dc2f._0x382013,0x3c3,0x406,0x46f)][_0x33dc37(0x379,_0x11dc2f._0x39a64f,_0x11dc2f._0x343b6e,0x31d)]());return yield createToolOutput(formatSymbols(_0x1cb0ac),{'operation':_0x469965,'query':_0x3a4a39[_0x33dc37(0x3bf,0x3c3,0x3cd,0x2a6)],'symbols':_0x1cb0ac}),void 0x0;}const _0x3112ce=resolveAllowedPath(_0x5c586c,_0x1ec387,_0x3a4a39[_0x33dc37(_0x11dc2f._0x5b9b30,_0x11dc2f._0x102eff,_0x11dc2f._0x5aa4b0,0x268)]);await assertFile(_0x3112ce);if(!await _0x96415[_0x33dc37(0x379,0x25c,0x25c,_0x11dc2f._0x20953b)](_0x3112ce))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3a4a39[_0x5edcca(0x236,0x137,_0x11dc2f._0x268ad6,_0x11dc2f._0xbc5c11)],{'filePath':_0x3a4a39[_0x33dc37(0x38a,_0x11dc2f._0x49422c,0x211,_0x11dc2f._0x43346a)]});await _0x96415[_0x33dc37(0x30d,_0x11dc2f._0x1cadd5,_0x11dc2f._0x5ce2ad,_0x11dc2f._0x350a3e)](_0x3112ce,!![]);const _0x532108={'file':_0x3112ce,'line':_0x3a4a39[_0x5edcca(_0x11dc2f._0x2734b6,_0x11dc2f._0x43293c,0x41,_0x11dc2f._0x774266)]-0x1,'character':_0x3a4a39[_0x5edcca(0x21d,_0x11dc2f._0x123450,_0x11dc2f._0x1f28e1,0x330)]-0x1};function _0x5edcca(_0x89a9ba,_0x4ff444,_0x106826,_0x5a9394){return _0x1d8cde(_0x89a9ba-0x19,_0x5a9394,_0x106826-0x70,_0x89a9ba- -_0x2cddff._0x3f3a0e);}switch(_0x469965){case _0x5edcca(0x27c,_0x11dc2f._0x3a74cc,_0x11dc2f._0x588318,0x256):{const _0x279842=await _0x96415[_0x33dc37(_0x11dc2f._0x499095,0x39d,0x2d9,_0x11dc2f._0x243e30)](_0x532108);return yield createToolOutput(formatHover(_0x279842),{'operation':_0x469965,'filePath':_0x3112ce,'hover':_0x279842}),void 0x0;}case'diagnostics':{const _0x444caf=await _0x96415[_0x5edcca(_0x11dc2f._0xb0bf40,0x3ba,0x251,0x398)](_0x3112ce);return yield createToolOutput(formatDiagnostics(_0x444caf),{'operation':_0x469965,'filePath':_0x3112ce,'diagnostics':_0x444caf}),void 0x0;}case _0x33dc37(_0x11dc2f._0x2fbe8b,0x318,0x3b7,0x22e):{const _0x2656cc=await _0x96415[_0x5edcca(0x19f,0x2e9,0x109,_0x11dc2f._0x4ac62a)](_0x532108);return yield createToolOutput(formatLocations(_0x2656cc),{'operation':_0x469965,'filePath':_0x3112ce,'locations':_0x2656cc}),void 0x0;}case _0x5edcca(0x1eb,_0x11dc2f._0x3cb1a6,0x2b7,0x289):{const _0x4e3edd=await _0x96415[_0x33dc37(_0x11dc2f._0x43346a,_0x11dc2f._0x61cc87,0x369,_0x11dc2f._0x35e9a1)](_0x532108);return yield createToolOutput(formatLocations(_0x4e3edd),{'operation':_0x469965,'filePath':_0x3112ce,'locations':_0x4e3edd}),void 0x0;}case _0x5edcca(0x17a,_0x11dc2f._0x222aff,_0x11dc2f._0x3a6b8f,_0x11dc2f._0x1a05af):{const _0xd164be=await _0x96415['implementation'](_0x532108);return yield createToolOutput(formatLocations(_0xd164be),{'operation':_0x469965,'filePath':_0x3112ce,'locations':_0xd164be}),void 0x0;}case'documentSymbol':{const _0x4100cb=await _0x96415[_0x33dc37(0x3dd,0x3f3,_0x11dc2f._0x483089,0x475)](_0x3112ce);return yield createToolOutput(formatSymbols(_0x4100cb),{'operation':_0x469965,'filePath':_0x3112ce,'symbols':_0x4100cb}),void 0x0;}case'prepareCallHierarchy':{const _0x1a7840=await _0x96415['prepareCallHierarchy'](_0x532108);return yield createToolOutput(formatSymbols(_0x1a7840),{'operation':_0x469965,'filePath':_0x3112ce,'symbols':toStructured(_0x1a7840)}),void 0x0;}case _0x33dc37(0x4d8,0x43a,_0x11dc2f._0x3278ea,0x442):{const _0x54d5d5=await _0x96415[_0x5edcca(_0x11dc2f._0x518183,0x2e8,_0x11dc2f._0x6a5793,_0x11dc2f._0x58503b)](_0x532108);return yield createToolOutput(formatIncomingCalls(_0x54d5d5),{'operation':_0x469965,'filePath':_0x3112ce,'calls':toStructured(_0x54d5d5)}),void 0x0;}case _0x5edcca(_0x11dc2f._0x3db09b,0x165,_0x11dc2f._0x2d7c80,0x1b9):{const _0x5b1737=await _0x96415[_0x5edcca(_0x11dc2f._0x3db09b,0x34b,0x2b1,0x356)](_0x532108);return yield createToolOutput(formatOutgoingCalls(_0x5b1737),{'operation':_0x469965,'filePath':_0x3112ce,'calls':toStructured(_0x5b1737)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x3524b8,readFile as _0x1c6e14,writeFile as _0x4acdfa}from'fs/promises';import{join as _0xd5abf7}from'path';function sanitizeStorageKey(_0x5b095c){const _0x2ccb29={_0x5854fe:0x145,_0x483b23:0xb8,_0x286a9f:0x296},_0x4d4d56={_0x224587:0x43,_0x160f2c:0x49f},_0x5be64f={_0x486c88:0xd4};function _0x2789e0(_0xcfb697,_0x4bc469,_0x24a183,_0x4a8df2){return _0x38d42b(_0xcfb697-0x10b,_0x4bc469-_0x5be64f._0x486c88,_0xcfb697,_0x4a8df2-0x80);}function _0x49f0b0(_0x41ab7b,_0x2c98e0,_0x36fe76,_0x19d8bb){return _0x38d42b(_0x41ab7b-_0x4d4d56._0x224587,_0x19d8bb-_0x4d4d56._0x160f2c,_0x41ab7b,_0x19d8bb-0x130);}return _0x5b095c[_0x2789e0(0xe7,0xac,_0x2ccb29._0x5854fe,_0x2ccb29._0x483b23)](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||_0x2789e0(0x1a5,0x158,0x1aa,_0x2ccb29._0x286a9f);}function storagePath(_0x587b67){const _0x43e02c={_0x268840:0x565,_0xa4c2c8:0x3ec,_0x144071:0x49f,_0x44f9b6:0x5c1,_0x28d328:0x5cd,_0x5b181f:0x4cf,_0x2e7f4e:0x480,_0x434ffc:0x560},_0xd0c7a0={_0x2d9c3a:0x2e},_0x2be066={_0x33f61c:0x2f1};function _0x5e7da2(_0x226443,_0x1434bb,_0x34c776,_0x4742fc){return _0x38d42b(_0x226443-0x3a,_0x226443-_0x2be066._0x33f61c,_0x34c776,_0x4742fc-0x49);}function _0x3b81ac(_0x2cb553,_0x143f54,_0x241578,_0x7bfa56){return _0x38d42b(_0x2cb553-0xef,_0x143f54-0x3ec,_0x2cb553,_0x7bfa56-_0xd0c7a0._0x2d9c3a);}const _0x310dbd=sanitizeStorageKey(_0x587b67[_0x3b81ac(_0x43e02c._0x268840,0x443,_0x43e02c._0xa4c2c8,0x450)][_0x3b81ac(0x4f3,_0x43e02c._0x144071,0x3b4,0x3be)]?.[_0x5e7da2(0x3f6,0x34d,0x355,0x458)]??_0x587b67[_0x3b81ac(_0x43e02c._0x44f9b6,0x4a6,0x416,_0x43e02c._0x28d328)]);return _0xd5abf7(_0x587b67['storageDir'],_0x310dbd+_0x5e7da2(_0x43e02c._0x5b181f,_0x43e02c._0x2e7f4e,_0x43e02c._0x434ffc,0x5a5));}async function readStore(_0x55bbfc){const _0x529dd7={_0x2aa8a5:0x8b,_0x300c7a:0xe0,_0x3f6929:0x82,_0x31dfa7:0x7d,_0x2bca25:0xa7,_0x4e8b4b:0x149,_0x44dc4d:0x1f,_0x3add1e:0x667,_0x5c940d:0x6c4,_0x214a6a:0x1eb,_0x41340f:0x190},_0x59caec={_0x416904:0x165,_0x56abbd:0x4cb},_0x402e4e={_0x289c8b:0x1ad};function _0xed4a4b(_0x38c780,_0x14d24f,_0x3a0ddf,_0x335f83){return _0x38d42b(_0x38c780-_0x402e4e._0x289c8b,_0x3a0ddf- -0xc2,_0x38c780,_0x335f83-0x28);}function _0x528487(_0x54fee7,_0x2b9357,_0x4709b5,_0x2b67e0){return _0x38d42b(_0x54fee7-_0x59caec._0x416904,_0x2b9357-_0x59caec._0x56abbd,_0x4709b5,_0x2b67e0-0xa0);}try{return JSON[_0xed4a4b(_0x529dd7._0x2aa8a5,-_0x529dd7._0x300c7a,-_0x529dd7._0x3f6929,-_0x529dd7._0x31dfa7)](await _0x1c6e14(_0x55bbfc,_0xed4a4b(_0x529dd7._0x2bca25,_0x529dd7._0x4e8b4b,0x9e,-_0x529dd7._0x44dc4d)));}catch(_0x2adb30){if(_0x2adb30 instanceof Error&&_0x528487(0x5a4,_0x529dd7._0x3add1e,0x766,_0x529dd7._0x5c940d)in _0x2adb30&&_0x2adb30[_0xed4a4b(_0x529dd7._0x214a6a,_0x529dd7._0x41340f,0xda,0x186)]==='ENOENT')return{};throw _0x2adb30;}}async function writeStore(_0x14871c,_0x844a95){const _0x680b5e={_0x1b49ab:0x5aa,_0x371bdf:0x5ab,_0x217f4e:0x4eb},_0x3604bc={_0x133c1b:0x185,_0x5ce05f:0x12f};await _0x3524b8(_0xd5abf7(_0x14871c,'..'),{'recursive':!![]});function _0x2353ac(_0x35b6f5,_0x3b1c6d,_0x200bd5,_0x3d1e5f){return _0x38d42b(_0x35b6f5-_0x3604bc._0x133c1b,_0x200bd5-0x44b,_0x3b1c6d,_0x3d1e5f-_0x3604bc._0x5ce05f);}await _0x4acdfa(_0x14871c,JSON['stringify'](_0x844a95,null,0x2),_0x2353ac(0x5dc,_0x680b5e._0x1b49ab,_0x680b5e._0x371bdf,_0x680b5e._0x217f4e));}async function updateStore(_0x5afea2,_0x240c6b){const _0x5c1ffd=await readStore(_0x5afea2);_0x240c6b(_0x5c1ffd),await writeStore(_0x5afea2,_0x5c1ffd);}function createMcpOAuthProvider(_0x2145b5){const _0x544441={_0x2a964b:0x2cc,_0x547d96:0x3cb,_0x5d58d9:0x3b8,_0x32584e:0x1cd,_0x39ba54:0xde,_0x553f77:0x20a,_0x1363f0:0x2ad,_0x49e937:0x2b6,_0x4673cf:0x3f6,_0x2a3008:0x538,_0x257a5a:0x262,_0xbbcf78:0x45e,_0x233403:0x284,_0x1acd05:0x1f2,_0x4bd77c:0x3a1,_0x27d0a1:0x2f3,_0x1a1937:0x501,_0x452c5:0x46,_0x2182c2:0x23b,_0x2755de:0x324,_0x576eae:0x44e},_0xa19139={_0x4ff42d:0x24d,_0x78fa1c:0x19a,_0x5ef36d:0x29a},_0x38be0d={_0x26e32b:0x3b,_0x58b05c:0x145,_0x4617ca:0x3cf,_0x4472c6:0x310,_0x32cdb2:0x3ae,_0x242b75:0x3ee,_0x4673f7:0x3ff,_0x309111:0x320,_0x3ff869:0x272,_0x45d9d6:0xba,_0x42ab3d:0xcf,_0x34e7c4:0x7},_0x2bfcab={_0x5ab1cd:0x1b,_0x4cd56c:0x109},_0x4579ba={_0x49b96b:0x4c,_0x2a42d0:0xac,_0x914d7a:0x1c0},_0x210eb9={_0x93e3fc:0x127},_0x37e01a={_0x57b06b:0x112,_0x3f1cde:0x21},_0x5ace86={_0x2ccd7a:0x339,_0x553a7d:0x388,_0x1eccd3:0x1f6},_0x10d7a0={_0x3f01d4:0x142,_0x5d68a7:0x1cc},_0x55d43a={_0x4b2f3d:0x8e,_0x236a5c:0x232},_0x12b19c={_0x1c0f19:0x84};function _0x458633(_0x213312,_0x251b02,_0x12c285,_0x2a8b15){return _0x37c1da(_0x213312-0x104,_0x251b02-_0x12b19c._0x1c0f19,_0x12c285,_0x251b02- -0x42a);}function _0x584e27(_0x1f140f,_0x2db92d,_0x4957b0,_0x9b1549){return _0x37c1da(_0x1f140f-0x81,_0x2db92d-_0x55d43a._0x4b2f3d,_0x4957b0,_0x1f140f- -_0x55d43a._0x236a5c);}const _0x4b64a8=storagePath(_0x2145b5),_0x126a80=_0x2145b5['config'][_0x584e27(_0x544441._0x2a964b,_0x544441._0x547d96,0x204,_0x544441._0x5d58d9)]?.[_0x458633(0x7b,0x19c,0x22e,_0x544441._0x32584e)]?.[_0x458633(_0x544441._0x39ba54,_0x544441._0x553f77,0x24a,0x2d5)]('\x20'),_0x36d38c={'client_name':_0x584e27(_0x544441._0x1363f0,_0x544441._0x49e937,0x386,0x3cc),'redirect_uris':[_0x2145b5[_0x584e27(0x436,_0x544441._0x4673cf,0x469,_0x544441._0x2a3008)]],'grant_types':[_0x584e27(0x314,_0x544441._0x257a5a,0x363,_0x544441._0xbbcf78),_0x584e27(_0x544441._0x233403,0x2a5,_0x544441._0x1acd05,_0x544441._0x4bd77c)],'response_types':[_0x584e27(0x3b5,0x3f1,_0x544441._0x27d0a1,_0x544441._0x1a1937)],'token_endpoint_auth_method':'client_secret_post',..._0x126a80?{'scope':_0x126a80}:{}};return{'clientMetadataUrl':_0x2145b5[_0x458633(-_0x544441._0x452c5,0x78,0xc1,0x1e)][_0x584e27(0x2cc,_0x544441._0x2182c2,0x343,0x1b6)]?.[_0x584e27(_0x544441._0x2755de,0x2d9,0x364,_0x544441._0x576eae)],get 'redirectUrl'(){const _0x26a893={_0x3e1494:0x221};function _0x3b7547(_0x29e26b,_0x247226,_0x2849c8,_0x47973e){return _0x584e27(_0x247226- -_0x26a893._0x3e1494,_0x247226-0x140,_0x2849c8,_0x47973e-0xe);}return _0x2145b5[_0x3b7547(0x1f3,0x215,_0x10d7a0._0x3f01d4,_0x10d7a0._0x5d68a7)];},get 'clientMetadata'(){return _0x36d38c;},async 'state'(){const _0x16fc4a={_0x36bd78:0x1a4},_0x357b58=await readStore(_0x4b64a8);function _0x5c497b(_0x42ec4d,_0x419423,_0x314190,_0x1d46db){return _0x584e27(_0x1d46db- -0x41c,_0x419423-0x187,_0x419423,_0x1d46db-_0x16fc4a._0x36bd78);}if(_0x357b58[_0x5c497b(0x51,-0xe8,-_0x37e01a._0x57b06b,-_0x37e01a._0x3f1cde)])return _0x357b58['state'];const _0x300856=randomUUID();return await updateStore(_0x4b64a8,_0x4e6a41=>{function _0x9d6a85(_0x1c9c3b,_0x5e5d79,_0x4080b9,_0x22f9de){return _0x5c497b(_0x1c9c3b-0x10d,_0x5e5d79,_0x4080b9-0x1b2,_0x1c9c3b-0x2a5);}_0x4e6a41[_0x9d6a85(0x284,_0x5ace86._0x2ccd7a,_0x5ace86._0x553a7d,_0x5ace86._0x1eccd3)]=_0x300856;}),_0x300856;},async 'clientInformation'(){const _0x1179de={_0x237ad4:0x1c9,_0x28aad9:0x135,_0x156458:0x113};function _0x5102f2(_0x2c3c03,_0x5cb43f,_0x33258f,_0xfd92b){return _0x584e27(_0x5cb43f- -_0x1179de._0x237ad4,_0x5cb43f-_0x1179de._0x28aad9,_0x2c3c03,_0xfd92b-_0x1179de._0x156458);}return(await readStore(_0x4b64a8))[_0x5102f2(_0x210eb9._0x93e3fc,0x188,0xf5,0x225)];},async 'saveClientInformation'(_0x3c11f1){await updateStore(_0x4b64a8,_0x2ec0a5=>{function _0x583842(_0x9d36b8,_0x7d77f7,_0x22253b,_0x2f3a11){return _0xa38c(_0x9d36b8- -0x395,_0x2f3a11);}_0x2ec0a5[_0x583842(-0x157,-_0x4579ba._0x49b96b,-_0x4579ba._0x2a42d0,-_0x4579ba._0x914d7a)]=_0x3c11f1;});},async 'tokens'(){return(await readStore(_0x4b64a8))['tokens'];},async 'saveTokens'(_0x4fb393){const _0x17d0ec={_0x54b8e7:0x6b7,_0x30ff74:0x435},_0xdd99a={_0x9da6b4:0x366};await updateStore(_0x4b64a8,_0x1c9078=>{function _0x412590(_0x1b0bb9,_0x397502,_0x4f9668,_0x5098c4){return _0xa38c(_0x4f9668-_0xdd99a._0x9da6b4,_0x1b0bb9);}_0x1c9078[_0x412590(0x434,_0x17d0ec._0x54b8e7,0x579,_0x17d0ec._0x30ff74)]=_0x4fb393;});},async 'redirectToAuthorization'(_0x5234e2){function _0xb18205(_0x55bd9,_0x434034,_0x251ab8,_0x1f69a4){return _0x584e27(_0x251ab8-0xf2,_0x434034-0x1c6,_0x434034,_0x1f69a4-0x14c);}await _0x2145b5[_0xb18205(0x4f7,0x352,0x3d6,0x409)](_0x5234e2);},async 'saveCodeVerifier'(_0x5c42e3){await updateStore(_0x4b64a8,_0x3b4f87=>{_0x3b4f87['codeVerifier']=_0x5c42e3;});},async 'codeVerifier'(){const _0x46c620=(await readStore(_0x4b64a8))[_0x227f5a(0x0,_0x2bfcab._0x5ab1cd,_0x2bfcab._0x4cd56c,0x238)];function _0x227f5a(_0x30cf83,_0x32f02b,_0x580052,_0x186791){return _0x584e27(_0x580052- -0x30c,_0x32f02b-0xc0,_0x30cf83,_0x186791-0x62);}if(!_0x46c620)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x46c620;},async 'invalidateCredentials'(_0x468b16){await updateStore(_0x4b64a8,_0x30eab3=>{const _0xd4fc7e={_0x5a3470:0xfd};function _0x8e9de2(_0x7b1f49,_0x4162a7,_0x30a667,_0x1470aa){return _0xa38c(_0x1470aa- -0xf9,_0x4162a7);}(_0x468b16==='all'||_0x468b16==='client')&&(_0x30eab3[_0x8e9de2(_0x38be0d._0x26e32b,0x17a,0x11f,_0x38be0d._0x58b05c)]=void 0x0);(_0x468b16==='all'||_0x468b16==='tokens')&&(_0x30eab3[_0x5b020e(0x26c,_0x38be0d._0x4617ca,0x369,_0x38be0d._0x4472c6)]=void 0x0);function _0x5b020e(_0x1e3d17,_0xd7dc84,_0x2e2b2b,_0x584ab){return _0xa38c(_0x584ab-_0xd4fc7e._0x5a3470,_0xd7dc84);}(_0x468b16==='all'||_0x468b16==='verifier')&&(_0x30eab3[_0x5b020e(0x47d,_0x38be0d._0x32cdb2,_0x38be0d._0x242b75,_0x38be0d._0x4673f7)]=void 0x0,_0x30eab3[_0x8e9de2(0x266,0xeb,0x21c,0x1ef)]=void 0x0),(_0x468b16===_0x8e9de2(_0x38be0d._0x309111,0x151,_0x38be0d._0x3ff869,0x23c)||_0x468b16==='discovery')&&(_0x30eab3[_0x8e9de2(-_0x38be0d._0x45d9d6,-0x111,_0x38be0d._0x42ab3d,-_0x38be0d._0x34e7c4)]=void 0x0);});},async 'saveDiscoveryState'(_0x351fd0){const _0x1b4da5={_0x550cc1:0x6f,_0x5622d1:0xea,_0x5a370f:0x139};await updateStore(_0x4b64a8,_0x249f54=>{function _0x1b6e33(_0x261e79,_0x2be5ff,_0x56c598,_0x5c2d9c){return _0xa38c(_0x2be5ff- -0x8,_0x261e79);}_0x249f54[_0x1b6e33(_0x1b4da5._0x550cc1,_0x1b4da5._0x5622d1,_0x1b4da5._0x5a370f,0x178)]=_0x351fd0;});},async 'discoveryState'(){const _0x150d78={_0x201fa5:0x99,_0x3a8026:0x2a7,_0x4a0128:0x9f};function _0x493b6(_0x467878,_0x2f7b49,_0x26f0c5,_0x7515f0){return _0x458633(_0x467878-_0x150d78._0x201fa5,_0x7515f0- -_0x150d78._0x3a8026,_0x467878,_0x7515f0-_0x150d78._0x4a0128);}return(await readStore(_0x4b64a8))[_0x493b6(-_0xa19139._0x4ff42d,-_0xa19139._0x78fa1c,-0x181,-_0xa19139._0x5ef36d)];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x1ad550,_0x1179bb){const _0x2c3c64={_0x50cf3e:0x16},_0x2ea3fd={_0x5c0000:0x194,_0x17106f:0x80};function _0x2cc28c(_0x1636f5,_0x4f2efb,_0x4db1ac,_0xbf469e){return _0x37c1da(_0x1636f5-0x145,_0x4f2efb-_0x2ea3fd._0x5c0000,_0x4db1ac,_0xbf469e-_0x2ea3fd._0x17106f);}const _0x128c6d=_0x14e22c=>_0x14e22c[_0x4fc322(0x41b,0x303,0x34e,0x439)](/[^a-zA-Z0-9_]+/g,'_')[_0x2cc28c(0x5ed,0x45f,0x430,0x4a3)](/^_+|_+$/g,'');function _0x4fc322(_0x48460d,_0x5e81ed,_0x5d69b7,_0x137b05){return _0x37c1da(_0x48460d-0xa5,_0x5e81ed-0x113,_0x5d69b7,_0x137b05-_0x2c3c64._0x50cf3e);}return'mcp_'+_0x128c6d(_0x1ad550)+'_'+_0x128c6d(_0x1179bb);}function isObject(_0x248daf){const _0x10b51e={_0x373482:0x227,_0x13a073:0x230,_0x44d028:0x3e6},_0x26727b={_0x3f83fe:0x13d,_0x82bc7a:0x84};function _0x325340(_0x210d10,_0x5e6c45,_0x524fd2,_0x4454c0){return _0x38d42b(_0x210d10-_0x26727b._0x3f83fe,_0x524fd2-0x30e,_0x210d10,_0x4454c0-_0x26727b._0x82bc7a);}return typeof _0x248daf===_0x325340(_0x10b51e._0x373482,_0x10b51e._0x13a073,0x31c,_0x10b51e._0x44d028)&&_0x248daf!==null&&!Array['isArray'](_0x248daf);}function toSupportedSchema(_0x3802e0){const _0x53499c={_0x5144b8:0x12c,_0x3719a4:0x226,_0x1bb9ef:0x201,_0x6b5ad8:0x298,_0x97afa1:0x160,_0x1bcaa6:0x4f,_0x166da8:0x213,_0xad0db7:0x24c,_0x1775ab:0x1f7,_0x3f5b99:0x2da,_0x18436b:0x23b,_0x1163d2:0xb5,_0x2593d5:0x176,_0x3a3153:0xe,_0x5690c4:0x235,_0x5b8a63:0xa4,_0x232110:0xe1,_0x3a244d:0x6e,_0x2d8697:0x1cf,_0x197bb5:0x212,_0x3e8c87:0xce,_0x1d03bd:0x149,_0x3e4708:0x293,_0x5a46f9:0x196,_0x74cf17:0x10c,_0x559a06:0x185,_0x3bfe49:0xef},_0x27e572={_0x1484c6:0x126,_0x31c12e:0xde,_0x40eec9:0x133},_0x507712={_0x1eacc0:0x105,_0x419d09:0x283,_0x58fddf:0x7b};if(!isObject(_0x3802e0))return void 0x0;function _0x33c5c8(_0x12849c,_0xe1aacd,_0x9b6ef0,_0x32a6e2){return _0x38d42b(_0x12849c-_0x507712._0x1eacc0,_0x12849c- -_0x507712._0x419d09,_0xe1aacd,_0x32a6e2-_0x507712._0x58fddf);}if(_0x3802e0[_0x33c5c8(-_0x53499c._0x5144b8,-0x250,-0x39,-_0x53499c._0x3719a4)]===_0x33c5c8(-_0x53499c._0x1bb9ef,-0x116,-0x2d5,-_0x53499c._0x6b5ad8))return{'type':_0x4b5e5d(_0x53499c._0x97afa1,0x256,_0x53499c._0x1bcaa6,_0x53499c._0x166da8)};if(_0x3802e0[_0x4b5e5d(0x235,_0x53499c._0xad0db7,0x26b,_0x53499c._0x1775ab)]===_0x33c5c8(-0x2ac,-0x3df,-_0x53499c._0x3f5b99,-_0x53499c._0x18436b)||_0x3802e0['type']===_0x33c5c8(-0x1cb,-0x195,-0x1a7,-0x16e))return{'type':_0x4b5e5d(_0x53499c._0x1163d2,_0x53499c._0x2593d5,0x11d,-_0x53499c._0x3a3153)};if(_0x3802e0[_0x4b5e5d(_0x53499c._0x5690c4,0x2d0,0x35c,0x31d)]==='boolean')return{'type':_0x33c5c8(-_0x53499c._0x5b8a63,-_0x53499c._0x232110,-_0x53499c._0x3a244d,-_0x53499c._0x2d8697)};if(_0x3802e0[_0x4b5e5d(0x235,0x2cf,0x1c4,_0x53499c._0x197bb5)]===_0x4b5e5d(_0x53499c._0x3e8c87,_0x53499c._0x1d03bd,0x1db,0x1d1))return{'type':_0x33c5c8(-_0x53499c._0x3e4708,-0x251,-_0x53499c._0x5a46f9,-0x378),'items':toSupportedSchema(_0x3802e0['items'])??{'type':_0x33c5c8(-0x201,-0x29b,-_0x53499c._0x74cf17,-0x181)}};function _0x4b5e5d(_0x1801e3,_0x57e673,_0x52cd58,_0x12d8b4){return _0x38d42b(_0x1801e3-_0x27e572._0x1484c6,_0x1801e3-_0x27e572._0x31c12e,_0x57e673,_0x12d8b4-_0x27e572._0x40eec9);}if(_0x3802e0[_0x33c5c8(-0x12c,0x2,-_0x53499c._0x559a06,-_0x53499c._0x3bfe49)]==='object')return toNuvinToolSchema(_0x3802e0);return void 0x0;}function toNuvinToolSchema(_0x35e033){const _0x163541={_0x2f94fb:0x4d7,_0x12bd75:0x14,_0x113f69:0xe,_0x204510:0xba,_0x5c62f9:0xf5,_0x2068c3:0x16,_0x1bade4:0x20,_0x28673d:0x129,_0xed43b:0x33e,_0x416407:0x476,_0x20343f:0xc4,_0x2d4133:0x631,_0x456b7f:0x4ad,_0x50aefb:0x4e5,_0x41fec4:0x553,_0x31e614:0x2fc,_0x15e5de:0x50e,_0x18f7d0:0x375,_0x53ed89:0x45d,_0x44de3e:0x11e,_0x1daa6f:0xf7},_0x340447={_0x5b08cb:0x22,_0x410833:0x44b},_0x1d1d30={_0x5e06a2:0x56,_0x5892ce:0x383};if(!isObject(_0x35e033)||_0x35e033['type']!==_0x52e5d4(0x45a,0x391,_0x163541._0x2f94fb,0x420))return{'type':_0x33ab0d(-_0x163541._0x12bd75,_0x163541._0x113f69,-_0x163541._0x204510,_0x163541._0x5c62f9),'properties':{}};function _0x52e5d4(_0x3aebb3,_0x38b57b,_0x1dee3a,_0x2f2320){return _0x38d42b(_0x3aebb3-_0x1d1d30._0x5e06a2,_0x38b57b-_0x1d1d30._0x5892ce,_0x2f2320,_0x2f2320-0x1b);}function _0x33ab0d(_0x4e1fe4,_0x1c403e,_0x3eb8b5,_0x25962d){return _0x37c1da(_0x4e1fe4-0x1f4,_0x1c403e-_0x340447._0x5b08cb,_0x25962d,_0x1c403e- -_0x340447._0x410833);}const _0x3fe620={},_0x54ce93=isObject(_0x35e033[_0x33ab0d(-_0x163541._0x2068c3,-_0x163541._0x1bade4,-_0x163541._0x28673d,0xfe)])?_0x35e033[_0x52e5d4(0x2e8,0x363,0x351,0x3d6)]:{};for(const [_0x49f080,_0xba76b8]of Object[_0x52e5d4(0x345,0x3bd,_0x163541._0xed43b,_0x163541._0x416407)](_0x54ce93)){const _0x19fc91=toSupportedSchema(_0xba76b8);if(_0x19fc91)_0x3fe620[_0x49f080]=_0x19fc91;}const _0x3dff80=Array[_0x33ab0d(-0x94,0x21,-_0x163541._0x20343f,-0x104)](_0x35e033[_0x52e5d4(_0x163541._0x2d4133,0x5b8,0x6e1,0x63f)])?_0x35e033[_0x52e5d4(_0x163541._0x456b7f,0x5b8,_0x163541._0x50aefb,_0x163541._0x41fec4)][_0x52e5d4(_0x163541._0x31e614,0x3a7,0x338,0x30d)](_0x54ad93=>typeof _0x54ad93===_0x52e5d4(0x2f8,0x405,0x31b,0x4cd)):void 0x0;return _0x3dff80?.[_0x52e5d4(_0x163541._0x15e5de,0x468,_0x163541._0x18f7d0,_0x163541._0x53ed89)]?{'type':_0x33ab0d(_0x163541._0x44de3e,_0x163541._0x113f69,-0x57,_0x163541._0x1daa6f),'properties':_0x3fe620,'required':_0x3dff80}:{'type':'object','properties':_0x3fe620};}function isJsonObject(_0x2d5f9e){const _0x572be6={_0x1f2df7:0x264},_0x369dfd={_0x27fe95:0x6a,_0x44c12a:0x285};function _0x281181(_0x36c061,_0x58ca0f,_0x15917d,_0x40e507){return _0x38d42b(_0x36c061-_0x369dfd._0x27fe95,_0x40e507- -_0x369dfd._0x44c12a,_0x36c061,_0x40e507-0xb9);}return typeof _0x2d5f9e===_0x281181(-0x2b2,-0x25d,-_0x572be6._0x1f2df7,-0x277)&&_0x2d5f9e!==null&&!Array['isArray'](_0x2d5f9e);}function formatMcpContent(_0x7cf4ea){const _0x3e8529={_0x1a8df3:0x355,_0x1346fd:0x5f9,_0x2164a1:0x495,_0x35ad9d:0x4c6,_0x33cd7f:0x566,_0xe7dd0e:0x458,_0x3c0134:0x50b},_0x351329={_0x181f9f:0x4},_0x4d3a38={_0x16b7d4:0x13e},_0x4cd61c={_0x82267c:0x393,_0x4caa94:0x2f5,_0x31adbc:0x43e,_0x236bc2:0x523,_0x4f4f63:0x301,_0x3e461f:0x27c,_0x3031ca:0x149,_0x45581f:0x474,_0x5ed319:0x44d,_0x17d3cf:0x397,_0x244478:0x210,_0x5d0329:0x2ca},_0x590458=Array[_0x13af13(0x2f6,_0x3e8529._0x1a8df3,0x413,0x3ef)](_0x7cf4ea[_0x13af13(_0x3e8529._0x1346fd,0x583,_0x3e8529._0x2164a1,_0x3e8529._0x35ad9d)])?_0x7cf4ea['content']:[],_0x2fc4d6=_0x590458[_0x13af13(_0x3e8529._0x33cd7f,0x736,0x71e,0x5ff)](_0x3f39dd=>{const _0x3f22a6={_0x27ab82:0x1e2,_0x34bca1:0x1a7};if(!isObject(_0x3f39dd))return'';if(_0x3f39dd[_0x3e837c(0x28f,_0x4cd61c._0x82267c,0x3bf,_0x4cd61c._0x4caa94)]===_0x3cce90(_0x4cd61c._0x31adbc,_0x4cd61c._0x236bc2,0x50e,_0x4cd61c._0x4f4f63)&&typeof _0x3f39dd['text']===_0x3e837c(_0x4cd61c._0x3e461f,_0x4cd61c._0x3031ca,0x273,0x220))return _0x3f39dd[_0x3cce90(0x43e,_0x4cd61c._0x45581f,_0x4cd61c._0x5ed319,_0x4cd61c._0x17d3cf)];function _0x3e837c(_0x55513b,_0x190a05,_0x483d7b,_0xf899ac){return _0x5bf80a(_0x55513b-_0x3f22a6._0x27ab82,_0xf899ac- -0x2f1,_0x483d7b-_0x3f22a6._0x34bca1,_0x483d7b);}function _0x3cce90(_0x31d03f,_0x4e46a6,_0x3a45a7,_0x3f2b67){return _0x13af13(_0x31d03f-0x19b,_0x4e46a6-0x3d,_0x4e46a6,_0x31d03f- -0x3f);}return JSON[_0x3e837c(_0x4cd61c._0x244478,0x35d,_0x4cd61c._0x5d0329,0x351)](_0x3f39dd);})[_0x5bf80a(0x50c,0x4b3,0x547,0x378)](_0x4ee1d9=>_0x4ee1d9[_0x13af13(0x378,0x4bb,0x38d,0x4b3)]>0x0)['join']('\x0a');if(_0x2fc4d6[_0x13af13(0x3ca,0x373,0x403,0x4b3)]>0x0)return _0x2fc4d6;function _0x13af13(_0x3b39eb,_0x1912b4,_0x1b98e2,_0x5a84d5){return _0x37c1da(_0x3b39eb-0xb7,_0x1912b4-_0x4d3a38._0x16b7d4,_0x1b98e2,_0x5a84d5- -0x7d);}function _0x5bf80a(_0x5bfcd3,_0x69e1b8,_0x4df56e,_0x224f4b){return _0x37c1da(_0x5bfcd3-0x18f,_0x69e1b8-_0x351329._0x181f9f,_0x224f4b,_0x69e1b8-0x44);}return JSON[_0x13af13(0x4c7,_0x3e8529._0xe7dd0e,_0x3e8529._0x3c0134,0x581)](_0x7cf4ea,null,0x2);}function createMcpTool(_0x1c5538){const _0x14727e={_0x51c31a:0x207,_0x33c13:0x10f,_0x2bb5ea:0x33f,_0x21f9f5:0x1d1,_0x1dae35:0x2a4,_0x3293f2:0x2b1,_0x33b9be:0x380,_0x20a88b:0x13e,_0x5ed01d:0x286,_0x5b4a6c:0x1d3,_0x53392b:0xfe,_0x472a83:0x8,_0x3e3e55:0x118,_0x20a3e1:0x408,_0x599a7a:0x297,_0x239d66:0x2e8,_0x551011:0x1ba,_0x37f24e:0xc9,_0x5b0cfd:0x91,_0x109853:0x189,_0x2cd8b8:0x11f,_0x1b0bb8:0x199,_0xe7ef96:0x27e,_0x2ca532:0x39b},_0x231419={_0x4f4d61:0x3ae,_0x128d83:0x39e,_0x2b756f:0x4df,_0x3dfbe8:0x31d,_0x233ed1:0x2d4,_0x4d8b08:0x3fa,_0x7ddd32:0x48c,_0x2b2c2c:0x5b2,_0xe14213:0x50a,_0x383a75:0x567,_0x334ff0:0x338,_0x64f353:0x56b,_0x4a7d98:0x4eb,_0x1284c5:0x428,_0x2894ca:0x47c,_0x3ea339:0x55f,_0x4871a7:0x443,_0x344ca0:0x481,_0x536646:0x533},_0x111c23={_0x332297:0x85},_0x177791={_0x56d3b7:0x2ef},_0x5d5a9a=createMcpToolName(_0x1c5538[_0x4487e9(_0x14727e._0x51c31a,0x29b,_0x14727e._0x33c13,0x159)],_0x1c5538[_0x4487e9(0x393,_0x14727e._0x2bb5ea,_0x14727e._0x21f9f5,_0x14727e._0x1dae35)]['name']);function _0x4487e9(_0x54ee89,_0x49e01b,_0x8ab698,_0x3ec043){return _0x38d42b(_0x54ee89-0x1e1,_0x3ec043-0x9f,_0x8ab698,_0x3ec043-0x12a);}function _0x4d741e(_0x5dfd55,_0x259112,_0x59e92c,_0x1bfc6c){return _0x37c1da(_0x5dfd55-0x190,_0x259112-0x112,_0x259112,_0x1bfc6c- -_0x177791._0x56d3b7);}return defineTool({'name':_0x5d5a9a,'description':_0x1c5538[_0x4487e9(0x397,_0x14727e._0x3293f2,_0x14727e._0x33b9be,0x2a4)][_0x4487e9(_0x14727e._0x20a88b,_0x14727e._0x5ed01d,0xbd,_0x14727e._0x5b4a6c)]??_0x4d741e(_0x14727e._0x53392b,-_0x14727e._0x472a83,_0x14727e._0x3e3e55,0x124)+_0x1c5538[_0x4d741e(_0x14727e._0x20a3e1,0x353,0x415,0x361)][_0x4487e9(_0x14727e._0x599a7a,_0x14727e._0x239d66,0x1ae,_0x14727e._0x551011)]+_0x4487e9(0x190,_0x14727e._0x37f24e,_0x14727e._0x5b0cfd,_0x14727e._0x109853)+_0x1c5538[_0x4d741e(_0x14727e._0x2cd8b8,_0x14727e._0x1b0bb8,_0x14727e._0xe7ef96,0x216)],'inputSchema':toNuvinToolSchema(_0x1c5538['tool'][_0x4487e9(_0x14727e._0x2ca532,0x3e1,0x17f,0x2b1)]),async *'execute'(_0x530bec){const _0x5ec53d={_0x829bbe:0x2c7};function _0x1e1ca0(_0x458fea,_0x54eaf6,_0x503a57,_0x56e62e){return _0x4487e9(_0x458fea-0xd7,_0x54eaf6-0x199,_0x56e62e,_0x458fea-_0x5ec53d._0x829bbe);}const _0x54b1b6=await _0x1c5538[_0x5739a4(_0x231419._0x4f4d61,_0x231419._0x128d83,_0x231419._0x2b756f,0x37b)][_0x1e1ca0(_0x231419._0x3dfbe8,_0x231419._0x233ed1,_0x231419._0x4d8b08,0x26f)]({'name':_0x1c5538['tool'][_0x1e1ca0(0x481,_0x231419._0x7ddd32,0x3e6,_0x231419._0x2b2c2c)],'arguments':isJsonObject(_0x530bec)?_0x530bec:{}});if(_0x54b1b6[_0x1e1ca0(_0x231419._0xe14213,0x4ff,0x51f,_0x231419._0x383a75)])throw new ToolExecutionError(formatMcpContent(_0x54b1b6),{'serverName':_0x1c5538[_0x1e1ca0(0x420,_0x231419._0x334ff0,0x384,0x48b)],'toolName':_0x1c5538[_0x1e1ca0(_0x231419._0x64f353,_0x231419._0x4a7d98,0x57d,0x501)][_0x1e1ca0(0x481,_0x231419._0x1284c5,_0x231419._0x2894ca,0x589)]});function _0x5739a4(_0x53b78f,_0x37b206,_0x438730,_0x274754){return _0x4d741e(_0x53b78f-0x1e0,_0x438730,_0x438730-0x4e,_0x37b206-_0x111c23._0x332297);}return yield createToolOutput(formatMcpContent(_0x54b1b6),{'serverName':_0x1c5538[_0x1e1ca0(0x420,0x428,_0x231419._0x3ea339,_0x231419._0x4871a7)],'toolName':_0x1c5538['tool'][_0x1e1ca0(_0x231419._0x344ca0,_0x231419._0x536646,0x4c2,0x4f1)],'result':_0x54b1b6}),void 0x0;}});}function resolvePrefix(_0x3a3f62,_0x189baa){const _0x32a8cc={_0x182d1a:0x40,_0x5b652d:0x1a6},_0xf8de62={_0x517e16:0x358};function _0x3b9819(_0x261927,_0x1e1cb6,_0x16573a,_0x35c37f){return _0x37c1da(_0x261927-0x2a,_0x1e1cb6-0x183,_0x261927,_0x1e1cb6- -_0xf8de62._0x517e16);}return _0x189baa[_0x3b9819(0x1e6,0x143,_0x32a8cc._0x182d1a,_0x32a8cc._0x5b652d)]??_0x3a3f62;}function buildMcpHttpHeaders(_0x56374d){const _0x93ffb9={_0x5ce031:0x31e,_0x30b434:0x459,_0x440cd7:0x273,_0x2fa0c4:0x1e4,_0x4a697e:0x41b,_0x4883e0:0xfe,_0x26c068:0xd1,_0x11a683:0x140,_0x1e55ef:0xf0,_0x2eb053:0x11b,_0x4b71fb:0x143,_0x304f16:0x29,_0x3326d1:0xa0,_0x14b88c:0x47,_0x12c913:0xed,_0x4c1bd6:0x449,_0x38c344:0x359,_0x238e79:0x590,_0x3d5c74:0x4ee,_0x576af1:0x456,_0x3580e5:0x3e9,_0x2c6e3e:0x412},_0xe51e75={_0x1b1649:0x1c2},_0x208910={..._0x56374d[_0x5cd0b0(_0x93ffb9._0x5ce031,_0x93ffb9._0x30b434,0x30f,_0x93ffb9._0x440cd7)]??{}};_0x56374d[_0x5cd0b0(_0x93ffb9._0x2fa0c4,_0x93ffb9._0x4a697e,0x323,0x344)]?.[_0x43a9ff(0x238,_0x93ffb9._0x4883e0,0x1ea,_0x93ffb9._0x26c068)]===_0x43a9ff(0x78,0xe,_0x93ffb9._0x11a683,-0xa7)&&_0x56374d['auth'][_0x43a9ff(_0x93ffb9._0x1e55ef,0x3,_0x93ffb9._0x2eb053,_0x93ffb9._0x4b71fb)]&&_0x208910[_0x43a9ff(0x50,-_0x93ffb9._0x304f16,_0x93ffb9._0x3326d1,-0x33)]===void 0x0&&(_0x208910[_0x43a9ff(_0x93ffb9._0x14b88c,-0x29,-0x144,_0x93ffb9._0x12c913)]=_0x5cd0b0(0x519,0x5c8,0x4bd,0x3d8)+_0x56374d['auth'][_0x5cd0b0(_0x93ffb9._0x4c1bd6,0x237,0x360,_0x93ffb9._0x38c344)]);function _0x5cd0b0(_0x3267fa,_0x386151,_0x1c9056,_0x1e13ec){return _0x37c1da(_0x3267fa-0x10f,_0x386151-0xcc,_0x386151,_0x1c9056- -0x147);}function _0x43a9ff(_0x57f382,_0x32d546,_0x449868,_0x52655d){return _0x38d42b(_0x57f382-0xdb,_0x32d546- -0x59,_0x449868,_0x52655d-_0xe51e75._0x1b1649);}return Object[_0x5cd0b0(0x43b,_0x93ffb9._0x238e79,_0x93ffb9._0x3d5c74,_0x93ffb9._0x576af1)](_0x208910)[_0x5cd0b0(0x44f,0x4c9,_0x93ffb9._0x3580e5,_0x93ffb9._0x2c6e3e)]>0x0?_0x208910:void 0x0;}function getErrorMessage(_0x40246b){const _0x34efe4={_0x1f9eb3:0x419,_0xb36ddc:0x2dd},_0x320478={_0x2bdd6d:0xeb,_0x11c49e:0x1fa,_0x366b5b:0x1a7};function _0x5e13d3(_0xe4d2c3,_0x504f4e,_0x1dd1db,_0x4ba906){return _0x38d42b(_0xe4d2c3-_0x320478._0x2bdd6d,_0x4ba906-_0x320478._0x11c49e,_0x504f4e,_0x4ba906-_0x320478._0x366b5b);}return _0x40246b instanceof Error?_0x40246b[_0x5e13d3(0x2d0,_0x34efe4._0x1f9eb3,0x20e,_0x34efe4._0xb36ddc)]:String(_0x40246b);}function isUnauthorizedError(_0x5c95cc){const _0x12b3fe={_0x396ca0:0xd2,_0x3a2ca0:0x1f2,_0x3888ec:0x13e,_0x7051c6:0x576,_0x1d864c:0x5ad,_0x1e36c7:0x5a6},_0x2d1e4f={_0x15ce23:0xbc},_0x5d5fec={_0x1ccfcf:0x1bd};function _0x398973(_0x3b84e2,_0x29cc60,_0x44cba9,_0x5b7ddd){return _0x38d42b(_0x3b84e2-_0x5d5fec._0x1ccfcf,_0x44cba9- -0x21f,_0x29cc60,_0x5b7ddd-0x1e4);}function _0x5a0f12(_0x3ec593,_0x51238f,_0x18474a,_0x2ecbb3){return _0x38d42b(_0x3ec593-0xef,_0x2ecbb3-0x42d,_0x18474a,_0x2ecbb3-_0x2d1e4f._0x15ce23);}return _0x5c95cc instanceof Error&&_0x5c95cc[_0x398973(-_0x12b3fe._0x396ca0,-_0x12b3fe._0x3a2ca0,-_0x12b3fe._0x3888ec,-0xc6)]['name']===_0x5a0f12(_0x12b3fe._0x7051c6,0x576,_0x12b3fe._0x1d864c,_0x12b3fe._0x1e36c7);}async function connectMcpServer(_0x55c313,_0x59af43,_0x1fbcf6){const _0x47377a={_0x4cd433:0xf6,_0x33a5f9:0x14,_0x3a5ff9:0x3cc,_0x55a033:0x98,_0x219d5f:0x52,_0x51a5b5:0x190,_0x29ec53:0x60,_0x3c7f9b:0xd0,_0x1bfe91:0xb8,_0x364b98:0x3f,_0x3c4a6f:0x26,_0x5c9d00:0xde,_0x1c361e:0xef,_0x12b37a:0x159,_0x12edea:0x146,_0x31405b:0x1ef,_0x3a4d9a:0x17e,_0x28a044:0x10b,_0x4d8058:0x2b8,_0x567f02:0x3d9,_0x5a571f:0x144,_0x4d292a:0x1e4,_0x3f6797:0x11f,_0x3ae753:0x6c,_0x1924f7:0x20,_0x42a59c:0x163,_0x147676:0xba,_0x2441ab:0xab,_0x1d3397:0x1a6,_0x1b9343:0xb2,_0xdddbdc:0x74,_0x5c2ddc:0x60,_0x176e80:0x2b,_0x3fbcf:0x126,_0x37fb1a:0x10f,_0xec0f56:0xb1,_0x3d474a:0xe5,_0x269dcc:0x20,_0x28921b:0x2aa,_0x3697f8:0x1ac,_0x2db6f2:0x227,_0x2a0664:0x2fe,_0x1aafd4:0x395,_0x1ee0ce:0x2a5,_0x4a7541:0x71,_0x174f12:0x9a,_0x4f366f:0x72,_0x2161e0:0x6,_0x351dee:0x141,_0x414bee:0x31b},_0x2660ba={_0x26fa67:0x3ee},_0x378692={_0x20244d:0x170},_0x59ff49={_0x238244:0x226,_0x3a5cd3:0x1b3},_0x2069a4={_0x4958bc:0x33},_0xa7e41={_0x200251:0x1a2,_0x41261b:0x28e,_0x4a640b:0xcf,_0x1288a6:0xae,_0x4e6f44:0xc5,_0x2c563d:0x77,_0x4da4ad:0x140,_0x228b27:0xb5,_0x384d6d:0x91},_0x5ccf46={_0x23ce30:0x140},_0x22310d={_0x5b2f34:0x191,_0x1fdf22:0x257},_0x55290d={_0x27c323:0x524};function _0x4ea189(_0x3b3d01,_0x3d1e3e,_0x37561e,_0x3524ed){return _0x37c1da(_0x3b3d01-0xac,_0x3d1e3e-0x1dc,_0x3d1e3e,_0x3b3d01- -_0x55290d._0x27c323);}const _0x3cfa91=new Client({'name':'nuvin','version':_0x4ea189(_0x47377a._0x4cd433,0xed,-0x25,_0x47377a._0x33a5f9)});_0x3cfa91[_0x69af93(_0x47377a._0x3a5ff9,0x2a6,0x3b8,0x22d)]=_0x5e9f37=>{function _0x2ac957(_0x347de5,_0x18c57c,_0xf5cf9c,_0x4e4d1d){return _0x69af93(_0x347de5-_0x22310d._0x5b2f34,_0x4e4d1d- -_0x22310d._0x1fdf22,_0xf5cf9c-0x22,_0xf5cf9c);}function _0x21a2a8(_0x257eaa,_0x251fda,_0x2cfff6,_0x17ccf5){return _0x69af93(_0x257eaa-_0x5ccf46._0x23ce30,_0x17ccf5- -0x3b2,_0x2cfff6-0x20,_0x257eaa);}console[_0x2ac957(0x1c6,0x2ab,0x1cb,_0xa7e41._0x200251)](_0x21a2a8(-_0xa7e41._0x41261b,-_0xa7e41._0x4a640b,-_0xa7e41._0x1288a6,-0x155)+_0x55c313+_0x21a2a8(-0x1cb,-0x179,-_0xa7e41._0x4e6f44,-0xd6),_0x5e9f37[_0x2ac957(-_0xa7e41._0x2c563d,_0xa7e41._0x4da4ad,_0xa7e41._0x228b27,_0xa7e41._0x384d6d)]);};function _0x69af93(_0x1eb588,_0xab759d,_0x38a687,_0x13deb2){return _0x38d42b(_0x1eb588-0x112,_0xab759d-0x205,_0x13deb2,_0x13deb2-0x17b);}if(_0x59af43['transport']==='http'||_0x59af43[_0x4ea189(-_0x47377a._0x55a033,-0x68,0x68,-_0x47377a._0x219d5f)]){if(!_0x59af43[_0x69af93(0x165,0x246,_0x47377a._0x51a5b5,0x139)])throw new Error(_0x4ea189(0x159,0x232,0x199,_0x47377a._0x29ec53)+_0x55c313+_0x4ea189(-0xeb,-0x84,-_0x47377a._0x3c7f9b,-0xb5));if(_0x59af43[_0x69af93(0x2c3,0x224,0x2ea,0x137)]?.[_0x4ea189(0x7e,-_0x47377a._0x1bfe91,-_0x47377a._0x364b98,0x37)]==='oauth'&&!_0x1fbcf6?.[_0x4ea189(-_0x47377a._0x3c4a6f,_0x47377a._0x5c9d00,_0x47377a._0x1c361e,0x5e)])throw new Error(_0x4ea189(_0x47377a._0x12b37a,0x16d,_0x47377a._0x12edea,0x271)+_0x55c313+'\x20requires\x20OAuth\x20connection\x20options');const _0x19a1e6=buildMcpHttpHeaders(_0x59af43),_0x4a80b1=_0x59af43[_0x4ea189(-0xba,-_0x47377a._0x31405b,-_0x47377a._0x3a4d9a,-0x60)]?.['type']===_0x4ea189(-0x26,0x7d,_0x47377a._0x28a044,-0x83)&&_0x1fbcf6?.[_0x69af93(0x3f5,_0x47377a._0x4d8058,0x341,_0x47377a._0x567f02)]?createMcpOAuthProvider({'serverName':_0x55c313,'callbackUrl':_0x1fbcf6['oauth'][_0x4ea189(_0x47377a._0x5a571f,0x193,_0x47377a._0x4d292a,0x216)],'storageDir':_0x1fbcf6[_0x4ea189(-0x26,-_0x47377a._0x3f6797,_0x47377a._0x3ae753,_0x47377a._0x1924f7)][_0x4ea189(-0xad,-0x16e,-_0x47377a._0x42a59c,-0x167)],'config':_0x59af43[_0x4ea189(-_0x47377a._0x147676,-0x170,-_0x47377a._0x2441ab,-_0x47377a._0x1d3397)],'onRedirect':_0x4b249e=>_0x1fbcf6[_0x69af93(0x3da,0x2b8,0x3ce,0x3d8)]?.[_0x69af93(0x25c,0x2d0,0x239,0x195)](_0x55c313,_0x4b249e)}):void 0x0,_0x53c453=new StreamableHTTPClientTransport(new URL(_0x59af43[_0x4ea189(-0x98,_0x47377a._0x1b9343,_0x47377a._0xdddbdc,_0x47377a._0x5c2ddc)]),{'authProvider':_0x4a80b1,'requestInit':_0x19a1e6?{'headers':_0x19a1e6}:void 0x0});await _0x3cfa91[_0x4ea189(-0x96,-_0x47377a._0x176e80,-_0x47377a._0x3fbcf,0x9a)](_0x53c453);}else{if(!_0x59af43[_0x4ea189(0x20,_0x47377a._0x37fb1a,-0xd1,_0x47377a._0xec0f56)])throw new Error(_0x4ea189(0x159,_0x47377a._0x3d474a,_0x47377a._0x269dcc,0x245)+_0x55c313+_0x69af93(0x37b,_0x47377a._0x28921b,0x1c1,_0x47377a._0x3697f8));const _0x57daaf=new StdioClientTransport({'command':_0x59af43[_0x69af93(_0x47377a._0x2db6f2,_0x47377a._0x2a0664,_0x47377a._0x1aafd4,0x3a9)],'args':_0x59af43[_0x69af93(0x2fe,0x214,_0x47377a._0x1ee0ce,0x2e3)]??[],'env':_0x59af43[_0x4ea189(-0x27,-0x96,-0x16d,_0x47377a._0x4a7541)],'stderr':_0x4ea189(_0x47377a._0x174f12,-_0x47377a._0x4f366f,_0x47377a._0x2161e0,0x1dc)});await _0x3cfa91[_0x69af93(_0x47377a._0x351dee,0x248,_0x47377a._0x414bee,0x1db)](_0x57daaf);}return{async 'listTools'(){function _0x10b74c(_0x26d37d,_0x1881cb,_0x41280e,_0x383563){return _0x69af93(_0x26d37d-0x1c8,_0x1881cb- -0x154,_0x41280e-_0x2069a4._0x4958bc,_0x41280e);}return await _0x3cfa91[_0x10b74c(0x26e,_0x59ff49._0x238244,0xda,_0x59ff49._0x3a5cd3)]();},async 'callTool'(_0x9a9846){return await _0x3cfa91['request']({'method':'tools/call','params':_0x9a9846},CallToolResultSchema);},async 'close'(){function _0x6522ee(_0x182291,_0x2fa5bd,_0x3988de,_0x1bff43){return _0x69af93(_0x182291-0xa0,_0x3988de-_0x378692._0x20244d,_0x3988de-0x1f3,_0x1bff43);}await _0x3cfa91[_0x6522ee(0x373,0x2b0,_0x2660ba._0x26fa67,0x2e0)]();}};}async function createMcpToolsFromServers(_0x9eb93){const _0xd4c9ae={_0x25bd41:0xbe,_0x2f62a7:0xb4,_0x3887fd:0x7d,_0x4f5964:0x8d,_0x42b2dc:0x1a7,_0x3276b1:0xea,_0x2d9bef:0x7c,_0x58c0af:0x9c,_0x88bf8f:0x14b,_0x439f1f:0x1,_0x1d653a:0x138,_0x1e9fbe:0xb,_0x422f04:0x13,_0x56a2d7:0x7c,_0x3fde38:0x19d,_0x508ea9:0xd7,_0x597bac:0x54,_0x47bbaf:0x49,_0x1d0a1d:0xd5,_0x32cd32:0x190},_0x5157a8={_0x14f422:0xfa,_0x4b5eca:0x234,_0x74c899:0xb1,_0x3303fe:0x1ad},_0x226225={_0x1321fb:0x125},_0x4b6bd3=_0x9eb93['connect']??connectMcpServer,_0x47bebd=[];function _0x452656(_0x51032e,_0x475efc,_0x4b9f5d,_0x447f40){return _0x37c1da(_0x51032e-0x1d8,_0x475efc-0x19,_0x475efc,_0x4b9f5d- -0x475);}function _0x3e2492(_0xb820ea,_0xc4f2f9,_0x4c0de9,_0x59ce36){return _0x38d42b(_0xb820ea-_0x226225._0x1321fb,_0xb820ea- -0x1a0,_0xc4f2f9,_0x59ce36-0x58);}const _0x52abd6={},_0x44a452=[];for(const [_0x4e764a,_0x4b0433]of Object['entries'](_0x9eb93['servers']??{})){if(_0x4b0433[_0x452656(0x1b,_0xd4c9ae._0x25bd41,0xbf,-0x48)]===![]){_0x52abd6[_0x4e764a]={'status':_0x452656(-0x14b,-_0xd4c9ae._0x2f62a7,-_0xd4c9ae._0x3887fd,-0xd2)};continue;}try{const _0x4b3825=await _0x4b6bd3(_0x4e764a,_0x4b0433,_0x9eb93[_0x3e2492(-0x94,0x16,-0x159,_0xd4c9ae._0x4f5964)]);_0x47bebd[_0x452656(-_0xd4c9ae._0x42b2dc,-_0xd4c9ae._0x3276b1,-_0xd4c9ae._0x2d9bef,-_0xd4c9ae._0x58c0af)](_0x4b3825);const _0x4bd96e=await _0x4b3825[_0x452656(0x149,0x18e,_0xd4c9ae._0x88bf8f,_0xd4c9ae._0x439f1f)]();let _0x58c7d4=0x0;for(const _0x151c53 of _0x4bd96e[_0x452656(_0xd4c9ae._0x1d653a,0x29,0x13a,0x72)]){const _0x39f78a=_0x9eb93['allowedTools']?.[_0x4e764a]?.[_0x151c53[_0x452656(0xe1,0x125,0xf1,_0xd4c9ae._0x1e9fbe)]];if(_0x39f78a===![])continue;_0x58c7d4+=0x1,_0x44a452[_0x452656(-_0xd4c9ae._0x422f04,-0x85,-_0xd4c9ae._0x56a2d7,-_0xd4c9ae._0x3fde38)](createMcpTool({'serverName':resolvePrefix(_0x4e764a,_0x4b0433),'tool':_0x151c53,'client':_0x4b3825}));}_0x52abd6[_0x4e764a]={'status':_0x452656(_0xd4c9ae._0x508ea9,-_0xd4c9ae._0x597bac,_0xd4c9ae._0x47bbaf,0x126),'toolCount':_0x58c7d4};}catch(_0x2de1ba){_0x52abd6[_0x4e764a]=isUnauthorizedError(_0x2de1ba)?{'status':_0x452656(-_0xd4c9ae._0x1d0a1d,-_0xd4c9ae._0x32cd32,-0x61,0xa2),'message':getErrorMessage(_0x2de1ba)}:{'status':'error','message':getErrorMessage(_0x2de1ba)};}}return{'tools':_0x44a452,'servers':_0x52abd6,async 'close'(){const _0xa85b34={_0x4cdf5b:0x187},_0x57c47c={_0x20ab25:0x5a,_0x1b3422:0x10c};function _0x3e2ca2(_0xf4a910,_0x192a00,_0x388430,_0x534d46){return _0x452656(_0xf4a910-0x102,_0x192a00,_0x534d46- -_0x57c47c._0x20ab25,_0x534d46-_0x57c47c._0x1b3422);}function _0x16b177(_0x398d3f,_0x4c128c,_0x41a2d9,_0x2db73d){return _0x452656(_0x398d3f-_0xa85b34._0x4cdf5b,_0x2db73d,_0x398d3f-0x82,_0x2db73d-0xf5);}await Promise[_0x3e2ca2(_0x5157a8._0x14f422,0x217,_0x5157a8._0x4b5eca,0x1ab)](_0x47bebd[_0x3e2ca2(0x17d,0xc1,_0x5157a8._0x74c899,_0x5157a8._0x3303fe)](_0x6930a9=>_0x6930a9['close']()));}};}function getCommand(_0x17e82a){const _0x13e382={_0x2060bb:0x246,_0x44a2cf:0x6c,_0x445e06:0xb9,_0x40267c:0x307,_0xe4419d:0x2c5,_0x521ebd:0x36b,_0x4ea5fa:0x220,_0x3a9d57:0x146,_0x4a3429:0x2d,_0x4a775d:0x3f,_0x4686b9:0x78},_0x51c739={_0x171454:0x6,_0x4947aa:0x7e,_0x3fe6b9:0x2ad},_0x29a7c4={_0x359e04:0x85,_0x4c784e:0x5b1};if(_0x17e82a&&typeof _0x17e82a===_0x266f42(_0x13e382._0x2060bb,0x1ac,_0x13e382._0x44a2cf,0xc9)&&!Array[_0x266f42(_0x13e382._0x445e06,0x1bf,_0x13e382._0x40267c,_0x13e382._0xe4419d)](_0x17e82a)&&typeof _0x17e82a['command']===_0x266f42(_0x13e382._0x521ebd,_0x13e382._0x4ea5fa,0x333,_0x13e382._0x3a9d57))return _0x17e82a['command'];function _0x2d62a1(_0x3c3891,_0x6f99b2,_0x2d13c9,_0x2bf7ee){return _0x37c1da(_0x3c3891-0x50,_0x6f99b2-_0x29a7c4._0x359e04,_0x2bf7ee,_0x6f99b2- -_0x29a7c4._0x4c784e);}function _0x266f42(_0x5ecc6d,_0x476241,_0x458233,_0xfbf048){return _0x37c1da(_0x5ecc6d-_0x51c739._0x171454,_0x476241-_0x51c739._0x4947aa,_0xfbf048,_0x476241- -_0x51c739._0x3fe6b9);}return _0x2d62a1(-0x28,-_0x13e382._0x4a3429,-_0x13e382._0x4a775d,-_0x13e382._0x4686b9);}var MOCK_WORKSPACE_LISTING=[_0x38d42b(0xfd,0x190,0xb3,0x170),'docs/plans/2026-04-16-mock-agent-loop-implementation.md',_0x38d42b(0x2a0,0x1dd,0x2b2,0x221),'package.json',_0x37c1da(0x653,0x549,0x5fe,0x65e),'src/formats/message-format.ts',_0x38d42b(0x27a,0x1a8,0x122,0x8e),'src/agent/extension-registry.ts','src/models/mock-model.ts','src/tools/mock-tool-runtime.ts','src/formats/provider-adapters.ts',_0x37c1da(0x61d,0x4b0,0x6bd,0x5ac),_0x38d42b(0xf8,0x145,0xe1,0x23f),_0x37c1da(0x68c,0x53e,0x4c7,0x5b5),_0x37c1da(0x5ca,0x769,0x796,0x683),'src/formats/provider-adapters.test.ts','src/agent/turn-engine.test.ts'][_0x37c1da(0x4f0,0x590,0x56c,0x634)]('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':_0x37c1da(0x33a,0x53a,0x496,0x464),'input_schema':{'type':_0x37c1da(0x47f,0x4f1,0x575,0x459),'properties':{'command':{'type':_0x38d42b(0x13f,0x82,0x117,0xc)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x27c10f){return{'output':_0x27c10f,'structured':{'value':_0x27c10f}};}function createUnknownToolResult(_0x37fe85){const _0x2ed70c={_0x26a3bc:0x2f3,_0x2268d7:0x319,_0x6a7ecd:0x215,_0x58a93b:0x2d6,_0x4b6d39:0x9c,_0x1829fd:0x1bc,_0x255ba6:0x27c,_0x138775:0x3b6,_0x5a7927:0x319,_0x596437:0x44b},_0x50e003={_0x3e041d:0x3d,_0xab3f47:0x252};function _0x5b4d27(_0x5e0ea2,_0x21e8ca,_0x2e8220,_0x47f902){return _0x37c1da(_0x5e0ea2-0x27,_0x21e8ca-0x109,_0x5e0ea2,_0x21e8ca- -0x24d);}function _0x4abd34(_0x439c56,_0xf606d8,_0x13a73e,_0x409ce7){return _0x37c1da(_0x439c56-0x1c6,_0xf606d8-_0x50e003._0x3e041d,_0xf606d8,_0x13a73e- -_0x50e003._0xab3f47);}return{'callId':_0x37fe85['id'],'toolName':_0x37fe85[_0x5b4d27(_0x2ed70c._0x26a3bc,_0x2ed70c._0x2268d7,_0x2ed70c._0x6a7ecd,_0x2ed70c._0x58a93b)],'status':'error','output':_0x5b4d27(_0x2ed70c._0x4b6d39,_0x2ed70c._0x1829fd,0x1eb,_0x2ed70c._0x255ba6)+_0x37fe85[_0x5b4d27(_0x2ed70c._0x138775,_0x2ed70c._0x5a7927,0x3c7,_0x2ed70c._0x596437)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x27c93a,_0x546fd2){const _0x134aaa={_0x4abab2:0xa8,_0x18c9f6:0x13e,_0x858ff2:0x131,_0x3af756:0x18a,_0x2d7438:0x61,_0x2155b8:0xe3,_0x117a89:0x1c},_0x94a7cd={_0x5c3ce8:0x6c};function _0x2d4235(_0x285325,_0x3921fa,_0x4fb9cd,_0x2af871){return _0x38d42b(_0x285325-0x107,_0x3921fa-0x23,_0x4fb9cd,_0x2af871-_0x94a7cd._0x5c3ce8);}function _0x3f9799(_0x4f4c23,_0x51bacf,_0x4d66c1,_0x1d8940){return _0x38d42b(_0x4f4c23-0x5f,_0x4f4c23- -0x69,_0x4d66c1,_0x1d8940-0x11a);}return{'callId':_0x27c93a['id'],'toolName':_0x27c93a[_0x2d4235(_0x134aaa._0x4abab2,_0x134aaa._0x18c9f6,_0x134aaa._0x858ff2,_0x134aaa._0x3af756)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x27c93a[_0x3f9799(-_0x134aaa._0x2d7438,_0x134aaa._0x2155b8,_0x134aaa._0x117a89,0xe4)]),'exitCode':0x0},'chunks':[_0x546fd2],'meta':createMeta()};}function createMockToolRuntime(){const _0x3cabd5={_0x1fadf6:0x45a,_0x2047f5:0x4ed,_0x4c4136:0x6f3,_0x27eda6:0x6d3},_0xe6f753=async(_0x543fa2,_0x3a4ef0)=>{if(_0x543fa2['name']!=='Bash')return createUnknownToolResult(_0x543fa2);const _0x538bff=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x543fa2,_0x538bff);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x3a29fe,_0x274988){function _0x2d3692(_0x1ec5dc,_0x2b45bb,_0x2458ca,_0x346141){return _0xa38c(_0x1ec5dc-0x24d,_0x346141);}function _0x605e5e(_0x4ed280,_0x14228a,_0x2768bb,_0x19afbf){return _0xa38c(_0x19afbf-0x303,_0x4ed280);}return await Promise[_0x2d3692(0x582,0x454,_0x3cabd5._0x1fadf6,_0x3cabd5._0x2047f5)](_0x3a29fe[_0x605e5e(_0x3cabd5._0x4c4136,_0x3cabd5._0x27eda6,0x5d9,0x63a)](async _0x1b1ef4=>{return await _0xe6f753(_0x1b1ef4,_0x274988);}));},async 'execute'(_0x323543,_0x1eafca){return await _0xe6f753(_0x323543,_0x1eafca);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x37bd22={_0x1baee8:0x589,_0x39d33c:0x6ac,_0x5b8bb7:0x6cd},_0x560b98={_0x4a8160:0x9e};function _0x4a9073(_0x5984b3,_0x6c5ac2,_0x5d70c3,_0x20461c){return _0x37c1da(_0x5984b3-0x14b,_0x6c5ac2-0x102,_0x6c5ac2,_0x5984b3-_0x560b98._0x4a8160);}return delegatedRunCounter+=0x1,_0x4a9073(_0x37bd22._0x1baee8,_0x37bd22._0x39d33c,_0x37bd22._0x5b8bb7,0x501)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x9ca55f,_0x1235be){const _0x5e0726={_0x14e12a:0x19c};function _0x397e30(_0x4e43d5,_0x1f9ea8,_0x2df04d,_0x310327){return _0x37c1da(_0x4e43d5-0x1ea,_0x1f9ea8-0x4b,_0x2df04d,_0x310327- -0x22c);}return typeof _0x9ca55f===_0x397e30(0x154,0x32c,_0x5e0726._0x14e12a,0x25b)?await _0x9ca55f(_0x1235be):_0x9ca55f;}function getDelegatedAgentDefinition(_0x271c56,_0x522c4c){const _0x2117ac={_0x1c17db:0x14b},_0x2cae68={_0x141d66:0x173};function _0x301f6f(_0x38db4d,_0x3dba80,_0x3b0439,_0x4862c6){return _0x37c1da(_0x38db4d-_0x2cae68._0x141d66,_0x3dba80-0x19a,_0x4862c6,_0x3b0439- -0x5ec);}return _0x271c56[_0x301f6f(-0x11e,-0x99,-_0x2117ac._0x1c17db,-0xe3)]?.[_0x522c4c];}function createRunSummary(_0x219e77){const _0x4fca41={_0x53b52e:0x1bf,_0x59502e:0x268,_0xff6206:0x8a,_0x1b6e18:0x176,_0x1f87aa:0xf8,_0x174b01:0x2a2,_0x4ce427:0x1e7,_0x45584f:0x4cb,_0x4ee417:0x5fd,_0x20a9bc:0x3e2,_0x18148d:0x1f7,_0x57185a:0x2ad,_0x1ec72e:0x27f,_0x2fc268:0x2e4,_0x3c7b0f:0x1ed,_0x24c477:0x25a,_0x50bf98:0x244,_0x560432:0x275,_0x2be20c:0xd9,_0x5725b9:0x194,_0x35765e:0x2d4,_0x382d4f:0x272,_0x50ddc3:0x453,_0xc2aeeb:0x4f1,_0x25c2e3:0x40e},_0x4b83e3={_0x355552:0xdd},_0x29afea={_0x1925cf:0x13a,_0x227a91:0xce};function _0x3b25d4(_0x325286,_0x551090,_0x1ccad0,_0x334478){return _0x37c1da(_0x325286-0x1ca,_0x551090-_0x29afea._0x1925cf,_0x1ccad0,_0x325286- -_0x29afea._0x227a91);}function _0x48992c(_0xc5c0e3,_0x3800a0,_0x1e50fa,_0x3f5d78){return _0x38d42b(_0xc5c0e3-_0x4b83e3._0x355552,_0x3f5d78- -0x26a,_0x3800a0,_0x3f5d78-0xfb);}return{'runId':_0x219e77[_0x48992c(-0x2e1,-_0x4fca41._0x53b52e,-0x1cf,-_0x4fca41._0x59502e)],'agentId':_0x219e77[_0x48992c(-_0x4fca41._0xff6206,-0x3a,-0x86,-_0x4fca41._0x1b6e18)],'sessionId':_0x219e77[_0x48992c(-0x31d,-_0x4fca41._0x1f87aa,-_0x4fca41._0x174b01,-_0x4fca41._0x4ce427)],'status':_0x219e77[_0x3b25d4(0x4c5,_0x4fca41._0x45584f,_0x4fca41._0x4ee417,_0x4fca41._0x20a9bc)],'parentSessionId':_0x219e77[_0x48992c(-0x139,-_0x4fca41._0x18148d,-_0x4fca41._0x57185a,-0x233)],..._0x219e77['originToolCallId']!==void 0x0?{'originToolCallId':_0x219e77['originToolCallId']}:{},..._0x219e77[_0x48992c(-_0x4fca41._0x1ec72e,-0x1e0,-_0x4fca41._0x2fc268,-_0x4fca41._0x3c7b0f)]!==void 0x0?{'errorMessage':_0x219e77[_0x48992c(-_0x4fca41._0x24c477,-_0x4fca41._0x50bf98,-_0x4fca41._0x560432,-0x1ed)]}:{},..._0x219e77['result']?.[_0x48992c(-0x88,-_0x4fca41._0x2be20c,-0x146,-_0x4fca41._0x5725b9)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x219e77[_0x48992c(-0x29e,-0x33c,-_0x4fca41._0x35765e,-_0x4fca41._0x382d4f)][_0x3b25d4(_0x4fca41._0x50ddc3,_0x4fca41._0xc2aeeb,_0x4fca41._0x25c2e3,0x4f7)])}:{}};}function createRunSummaryOutput(_0x2c3804,_0xc53bc0){const _0x24edab={_0x3d0466:0x1df,_0x45fcca:0x1cc,_0x2f5a99:0x293,_0x4cfa2e:0xd2},_0x7c2c80={_0x2413f3:0x164},_0x1034e8={_0xcb6643:0x1c1},_0x197e6b=createRunSummary(_0x2c3804);function _0x8033a7(_0x6976bd,_0x3c727b,_0x1e3a6b,_0x273843){return _0x37c1da(_0x6976bd-0x1db,_0x3c727b-_0x1034e8._0xcb6643,_0x273843,_0x3c727b- -0x6ba);}const _0x9dbcfb=_0x197e6b[_0x3005c1(0x484,0x442,0x37e,0x238)];function _0x3005c1(_0x2e7c05,_0x45eb57,_0x558543,_0x27d1eb){return _0x38d42b(_0x2e7c05-0x6,_0x558543-0x2d4,_0x45eb57,_0x27d1eb-_0x7c2c80._0x2413f3);}return createToolOutput(typeof _0x9dbcfb===_0x8033a7(-_0x24edab._0x3d0466,-0x1ed,-_0x24edab._0x45fcca,-_0x24edab._0x2f5a99)&&_0x9dbcfb[_0x8033a7(-0x20f,-0x18a,-_0x24edab._0x4cfa2e,-0x17a)]>0x0?_0x9dbcfb:_0xc53bc0,_0x197e6b);}function getRunTerminalErrorMessage(_0xbfe804){const _0x2bfd5f={_0xf09e8:0x454,_0xcd72e3:0x348,_0x46419d:0x37a,_0x14d9f0:0x3aa,_0x42d1ff:0x467,_0x29bb93:0x4af,_0x15ff36:0x370,_0x5ce92d:0x4ba,_0x49635f:0x3eb,_0x21b6e2:0x44a,_0x23417e:0x381,_0x1eff58:0x4de,_0x4cf147:0x4ad,_0x3a1bd1:0x446,_0x1f1998:0x4cd},_0x59a5c4={_0x426ae4:0xa},_0x176a7f={_0x4ad970:0xf8,_0x167454:0x38};function _0x19f68e(_0x10e15f,_0x1f8258,_0x56e946,_0x103e8e){return _0x38d42b(_0x10e15f-_0x176a7f._0x4ad970,_0x103e8e-0x4cf,_0x1f8258,_0x103e8e-_0x176a7f._0x167454);}const _0x24e891=_0xbfe804?.[_0x5325f6(_0x2bfd5f._0xf09e8,_0x2bfd5f._0xcd72e3,_0x2bfd5f._0x46419d,0x485)][_0x5325f6(_0x2bfd5f._0x14d9f0,_0x2bfd5f._0x42d1ff,0x3ef,0x453)]['at'](-0x1);if(_0x24e891?.[_0x5325f6(_0x2bfd5f._0x29bb93,_0x2bfd5f._0x15ff36,_0x2bfd5f._0x5ce92d,_0x2bfd5f._0x49635f)]===_0x5325f6(0x386,_0x2bfd5f._0x21b6e2,_0x2bfd5f._0x23417e,0x497)&&_0x24e891[_0x19f68e(_0x2bfd5f._0x1eff58,_0x2bfd5f._0x4cf147,0x535,0x4f9)]['trim']()['length']>0x0)return _0x24e891[_0x19f68e(_0x2bfd5f._0x3a1bd1,_0x2bfd5f._0x1f1998,0x615,0x4f9)];function _0x5325f6(_0xc051b3,_0x16bb63,_0x55b9ad,_0x1dcb9d){return _0x37c1da(_0xc051b3-_0x59a5c4._0x426ae4,_0x16bb63-0x20,_0xc051b3,_0x1dcb9d- -0x1a8);}return void 0x0;}function formatAbortedRunMessage(_0x85f1bd,_0x2b4efe){const _0x3ed3d7={_0x17f17f:0x2c3,_0x32353c:0x4a2,_0x3858a4:0x3fb},_0x1a4bd7={_0x327f24:0x78,_0x4ebedf:0x178},_0xeda62a=_0x12b67a(-0x9,0x14e,0x1a7,0x104)+_0x85f1bd+'\x20was\x20aborted.';function _0x242cfc(_0x3dc162,_0x4a0a75,_0x411670,_0x779d47){return _0x37c1da(_0x3dc162-0x87,_0x4a0a75-_0x1a4bd7._0x327f24,_0x3dc162,_0x411670- -_0x1a4bd7._0x4ebedf);}if(!_0x2b4efe||_0x2b4efe['trim']()[_0x12b67a(0x96,0x1ca,0x2dc,0x19a)]===0x0||_0x2b4efe===_0xeda62a)return _0xeda62a;function _0x12b67a(_0x165bc8,_0xee9836,_0xe3eb07,_0x19f1d4){return _0x38d42b(_0x165bc8-0x181,_0x19f1d4-0xb5,_0xee9836,_0x19f1d4-0x25);}return _0xeda62a+_0x242cfc(_0x3ed3d7._0x17f17f,_0x3ed3d7._0x32353c,_0x3ed3d7._0x3858a4,0x3d0)+_0x2b4efe;}function createAssignTaskTool(_0x4933f4){const _0x407419={_0xd19d01:0x2b,_0x2144a8:0x70,_0x3d8d99:0x96,_0xd370b3:0x3a,_0x4b9ec1:0x2ff,_0x1af11f:0x4ab,_0x4db3e4:0x3ea,_0x2c6c80:0x535,_0x4cff50:0x567,_0x170856:0x49c,_0x44ff9c:0x58b,_0x13bc4f:0x505},_0x4cf4b1={_0x305612:0x7e,_0x44562b:0x14,_0x2ec5b8:0x86,_0x52202b:0x17,_0x3212e8:0xd2,_0x579df3:0x17,_0x34fcfa:0x265,_0x8bafcc:0x1ad,_0x231112:0x172,_0x299579:0x59,_0x1efc32:0x24e,_0x3c1e4b:0x10,_0x289f6c:0xa5,_0x1b8faa:0x1af,_0x2c0c98:0x85,_0xf37df5:0xbd,_0x45cd32:0x97,_0x46b1ae:0xc1,_0x554775:0x26,_0x3622eb:0x61,_0x127b39:0x21a,_0xf92599:0x1e1,_0x38914b:0x101,_0x5023e1:0x1c9,_0x2859e7:0x2e3,_0x47e52f:0xe8,_0x368805:0xb,_0x481b52:0x123,_0x388756:0x155,_0x4d435a:0x23b,_0x4ef35e:0x1c6,_0x4127a3:0xba,_0x37fb76:0x60,_0xdeaee7:0x40,_0x106fd8:0xc9,_0xe5376f:0x57,_0x31c1a2:0x109,_0x2a66dc:0x17d,_0x5ddd0b:0x106,_0x1562a4:0x15b,_0x16f230:0x147,_0x1a5c66:0x201,_0x185821:0xf5,_0x558296:0x12,_0x365c40:0xa4,_0x527d4e:0x1e8,_0x3bbf4d:0xa8,_0x520a6f:0xfc,_0x16f7c3:0x161,_0x152a82:0x6b,_0x63e58d:0x80,_0x37b3d1:0x15f,_0x449f74:0xcc,_0xd1c989:0x193,_0x4dd47b:0x156,_0x11f5f5:0xb9,_0x23e73b:0x1f9,_0x32e2b3:0x247,_0x58e533:0x309,_0x1989d8:0x1e5,_0x5e3471:0x1cf},_0x173385={_0x37011d:0x125},_0x4e91a7={_0xc6ee85:0x2b,_0xc969f3:0x368},_0x369da7={_0x18ac4b:0x13b,_0x9663a8:0x1f2,_0x2209bd:0x42e};function _0x4ef866(_0x106dac,_0x227be5,_0x468f39,_0x13de64){return _0x37c1da(_0x106dac-_0x369da7._0x18ac4b,_0x227be5-_0x369da7._0x9663a8,_0x13de64,_0x468f39- -_0x369da7._0x2209bd);}function _0x2dae9f(_0x40d3ce,_0x144995,_0x35c4cb,_0x4b134b){return _0x38d42b(_0x40d3ce-_0x4e91a7._0xc6ee85,_0x4b134b-_0x4e91a7._0xc969f3,_0x144995,_0x4b134b-0x28);}return defineTool({'name':'AssignTask','description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':_0x4ef866(-0x114,-0xe,_0x407419._0xd19d01,-_0x407419._0x2144a8),'properties':{'agentId':{'type':_0x4ef866(-0x2c,_0x407419._0x3d8d99,0x9f,_0x407419._0xd370b3)},'description':{'type':'string'},'nickname':{'type':_0x2dae9f(0x3ef,0x4ea,_0x407419._0x4b9ec1,0x3ea)},'task':{'type':_0x2dae9f(0x508,_0x407419._0x1af11f,0x422,_0x407419._0x4db3e4)}},'required':['agentId',_0x2dae9f(0x3e3,_0x407419._0x2c6c80,_0x407419._0x4cff50,_0x407419._0x170856),_0x2dae9f(0x624,_0x407419._0x44ff9c,0x443,_0x407419._0x13bc4f)]},async *'execute'(_0x3ffe4e,_0x4e4537){const _0x2668aa={_0x2572bb:0x349,_0x351b2d:0x414,_0xe47d97:0x462,_0x3c8106:0x3d8,_0x1f6682:0x657,_0x5f5454:0x549},_0xf7ef60={_0x57f269:0x1eb,_0x5902d1:0x4c},_0x4f0fdf={_0x15125d:0x1bc},_0x5ad54a=createDelegatedRunId(),_0x1a12d1={'agentId':_0x3ffe4e[_0x426fb8(-0x10a,0x100,-_0x4cf4b1._0x305612,-_0x4cf4b1._0x44562b)],'parentSessionId':_0x4e4537['sessionId'],'runId':_0x5ad54a,..._0x4e4537[_0x426fb8(_0x4cf4b1._0x2ec5b8,-0xe6,0xb2,_0x4cf4b1._0x52202b)]!==void 0x0?{'toolCallId':_0x4e4537[_0x426fb8(0x4f,_0x4cf4b1._0x3212e8,0x45,_0x4cf4b1._0x579df3)]}:{}};function _0x2a80a3(_0xa750f6,_0x5354ba,_0x2a8cd8,_0x4fd6a3){return _0x4ef866(_0xa750f6-0xda,_0x5354ba-_0x4f0fdf._0x15125d,_0x2a8cd8-0x61,_0xa750f6);}function _0x426fb8(_0xba9452,_0x33da30,_0x33aaf6,_0x465e16){return _0x4ef866(_0xba9452-0x135,_0x33da30-0x144,_0x465e16- -_0x173385._0x37011d,_0xba9452);}const _0x1b6095=getDelegatedAgentDefinition(_0x4933f4,_0x3ffe4e['agentId']);if(!_0x1b6095)throw new ToolExecutionError('Unknown\x20delegated\x20agent:\x20'+_0x3ffe4e[_0x2a80a3(_0x4cf4b1._0x34fcfa,_0x4cf4b1._0x8bafcc,_0x4cf4b1._0x231112,_0x4cf4b1._0x299579)],{'agentId':_0x3ffe4e[_0x2a80a3(0x84,_0x4cf4b1._0x1efc32,0x172,0x151)]});const _0x210d70=new Agent(await resolveDelegatedAgentOptions(_0x1b6095,_0x1a12d1));let _0xff308e={'runId':_0x5ad54a,'agentId':_0x3ffe4e['agentId'],'sessionId':_0x210d70['sessionId'],'status':_0x426fb8(-0x130,_0x4cf4b1._0x3c1e4b,0x119,-0x7),'parentSessionId':_0x4e4537[_0x426fb8(_0x4cf4b1._0x289f6c,0x6,-_0x4cf4b1._0x1b8faa,-_0x4cf4b1._0x2c0c98)],..._0x4e4537['toolCallId']!==void 0x0?{'originToolCallId':_0x4e4537[_0x2a80a3(_0x4cf4b1._0xf37df5,0x225,0x19d,0x13d)]}:{}};const _0x431482=new AbortController(),_0x38d3dc=addAbortListener(_0x4e4537['signal'],()=>{function _0x1a4a71(_0x4e4579,_0x3f098f,_0xa20ea2,_0x38dbe2){return _0x426fb8(_0xa20ea2,_0x3f098f-_0xf7ef60._0x57f269,_0xa20ea2-_0xf7ef60._0x5902d1,_0x38dbe2-0x63);}function _0x557bdc(_0x5e05e2,_0x382d39,_0x283d3b,_0xcb795e){return _0x426fb8(_0x382d39,_0x382d39-0xc2,_0x283d3b-0x7d,_0x283d3b-0x417);}_0x431482[_0x557bdc(0x45c,_0x2668aa._0x2572bb,0x31b,_0x2668aa._0x351b2d)](_0x4e4537[_0x557bdc(0x475,_0x2668aa._0xe47d97,_0x2668aa._0x3c8106,0x3ca)]?.[_0x557bdc(_0x2668aa._0x1f6682,0x67a,_0x2668aa._0x5f5454,0x41f)]);});yield createToolOutput(_0x426fb8(_0x4cf4b1._0x45cd32,0x56,-0x104,-0x43)+_0xff308e[_0x2a80a3(0xa6,0x9f,0x80,-_0x4cf4b1._0x46b1ae)]+'.',{'runId':_0xff308e[_0x2a80a3(-0x82,-_0x4cf4b1._0x554775,0x80,_0x4cf4b1._0x3622eb)],'agentId':_0xff308e[_0x2a80a3(0x197,_0x4cf4b1._0x127b39,_0x4cf4b1._0x231112,0x146)],'sessionId':_0xff308e[_0x2a80a3(0xb1,_0x4cf4b1._0xf92599,_0x4cf4b1._0x38914b,_0x4cf4b1._0x5023e1)],'status':_0xff308e[_0x2a80a3(0x176,0x16e,0x1c6,_0x4cf4b1._0x2859e7)]});try{const _0x1fcf5a=await _0x210d70[_0x2a80a3(-0x26,-_0x4cf4b1._0x47e52f,0x64,_0x4cf4b1._0x368805)](_0x3ffe4e[_0x426fb8(_0x4cf4b1._0x481b52,0x138,_0x4cf4b1._0x388756,0x95)],{'signal':_0x431482['signal']});_0xff308e={..._0xff308e,'status':_0x1fcf5a[_0x2a80a3(0x299,_0x4cf4b1._0x4d435a,_0x4cf4b1._0x4ef35e,0x23f)],'result':_0x1fcf5a};if(_0x1fcf5a[_0x426fb8(-_0x4cf4b1._0x4127a3,-0xd8,-_0x4cf4b1._0x37fb76,_0x4cf4b1._0xdeaee7)]!==_0x2a80a3(_0x4cf4b1._0x106fd8,_0x4cf4b1._0xe5376f,0x16d,0x2ba)){const _0x1f8256=getRunTerminalErrorMessage(_0x1fcf5a),_0x2257b1=formatAbortedRunMessage(_0xff308e['runId'],_0x1f8256);throw new ToolExecutionError(_0x2257b1,{...createRunSummary(_0xff308e),'aborted':!![],'errorMessage':_0x2257b1});}return createRunSummaryOutput(_0xff308e,'Agent\x20run\x20'+_0xff308e[_0x426fb8(-0xf0,-_0x4cf4b1._0x31c1a2,-_0x4cf4b1._0x2a66dc,-_0x4cf4b1._0x5ddd0b)]+'\x20completed.');}catch(_0x343617){if(_0x343617 instanceof ToolExecutionError)throw _0x343617;if(isAbortError(_0x343617)||_0x431482[_0x2a80a3(_0x4cf4b1._0x1562a4,0x88,_0x4cf4b1._0x16f230,_0x4cf4b1._0x1a5c66)][_0x2a80a3(_0x4cf4b1._0x185821,0x1,_0x4cf4b1._0x106fd8,_0x4cf4b1._0x558296)]||_0x4e4537[_0x426fb8(_0x4cf4b1._0x365c40,0x2c,-0x128,-0x3f)][_0x2a80a3(0x199,_0x4cf4b1._0x527d4e,_0x4cf4b1._0x106fd8,0x15)]){const _0x65e79c=getRunTerminalErrorMessage(_0xff308e[_0x426fb8(-0x135,-_0x4cf4b1._0x3bbf4d,-0x22f,-0x110)])??(_0x343617 instanceof Error?_0x343617[_0x2a80a3(0x237,_0x4cf4b1._0x520a6f,_0x4cf4b1._0x16f7c3,0x272)]:String(_0x343617)),_0x4c5317=formatAbortedRunMessage(_0xff308e[_0x2a80a3(0xf3,-_0x4cf4b1._0x152a82,_0x4cf4b1._0x63e58d,_0x4cf4b1._0x37b3d1)],_0x65e79c);_0xff308e={..._0xff308e,'status':_0x2a80a3(_0x4cf4b1._0x449f74,_0x4cf4b1._0xd1c989,_0x4cf4b1._0x106fd8,0xb3),'errorMessage':_0x4c5317};throw new ToolExecutionError(_0x4c5317,{...createRunSummary(_0xff308e),'aborted':!![],'errorMessage':_0x4c5317});}const _0x28bc90=getRunTerminalErrorMessage(_0xff308e['result'])??(_0x343617 instanceof Error?_0x343617['message']:String(_0x343617))??_0x426fb8(-_0x4cf4b1._0x4dd47b,0x3,-0x1bd,-_0x4cf4b1._0x11f5f5)+_0xff308e[_0x426fb8(-0x206,-_0x4cf4b1._0x23e73b,-0xc7,-_0x4cf4b1._0x5ddd0b)]+_0x426fb8(-_0x4cf4b1._0x32e2b3,-0x145,-0x1c5,-0x14f);_0xff308e={..._0xff308e,'status':_0x2a80a3(0x2fe,_0x4cf4b1._0x58e533,_0x4cf4b1._0x1989d8,_0x4cf4b1._0x5e3471),'errorMessage':_0x28bc90};throw new ToolExecutionError(_0x28bc90,{...createRunSummary(_0xff308e),'errorMessage':_0x28bc90});}finally{_0x38d3dc();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x2b3ddd){return[createAssignTaskTool(_0x2b3ddd)];}import*as _0x233466 from'path';function buildDescription2(_0x523fe1){const _0x2ab01c={_0x270c4e:0x14e,_0x108306:0x1e8,_0x38da9f:0x49,_0x9491d1:0x15b,_0x4c0827:0x191,_0x2867c2:0x273,_0x472c2e:0xd8,_0xd0ed45:0x2e7,_0x2ecfaa:0x309,_0x128845:0x4e,_0x246c50:0x54},_0x14e033={_0x74cee7:0x28},_0x5b88a5={_0x2bfaf5:0x5e6};if(_0x523fe1[_0x405cce(0x166,_0x2ab01c._0x270c4e,0xbd,_0x2ab01c._0x108306)]===0x0)return _0x405cce(-0x32,_0x2ab01c._0x38da9f,0x71,0x17);function _0x2a7aee(_0x5a8cec,_0x5326ca,_0x47583f,_0x180564){return _0x37c1da(_0x5a8cec-0x101,_0x5326ca-0x120,_0x5326ca,_0x5a8cec- -_0x5b88a5._0x2bfaf5);}function _0x405cce(_0x30198f,_0x2aae61,_0xb91b96,_0xb02143){return _0x38d42b(_0x30198f-0x16d,_0xb91b96- -_0x14e033._0x74cee7,_0x2aae61,_0xb02143-0x1eb);}const _0x5ed488=['Load\x20a\x20skill\x20to\x20get\x20detailed\x20instructions\x20for\x20a\x20specific\x20task.',_0x2a7aee(0x13,_0x2ab01c._0x9491d1,-0x87,-0xa0),'Use\x20this\x20when\x20a\x20task\x20matches\x20an\x20available\x20skill\x20description.',_0x405cce(_0x2ab01c._0x4c0827,_0x2ab01c._0x2867c2,0x1d0,_0x2ab01c._0x472c2e),..._0x523fe1[_0x405cce(0x2fd,_0x2ab01c._0xd0ed45,0x209,_0x2ab01c._0x2ecfaa)](_0x3d01d7=>'-\x20'+_0x3d01d7[_0x405cce(0x54,0x1a9,0xf3,0x1c2)]+':\x20'+_0x3d01d7['description'])];return _0x5ed488[_0x2a7aee(_0x2ab01c._0x128845,0x172,0xd1,_0x2ab01c._0x246c50)]('\x0a');}function createLoadSkillTool(_0x3cbfde){const _0x378cce={_0x182e9d:0x2cf,_0x7631d0:0x3e3,_0x54f6a9:0x43d,_0x22cde2:0x58d,_0x2687b9:0x41c,_0x32f37a:0x4db,_0x3ce6b2:0x28e,_0x4ffa0e:0x1cb,_0x1ecb5c:0x3cb,_0x4bfad6:0x2f3},_0x237e3b={_0x487352:0x6e0,_0x3a9174:0x6ad,_0x44dcb1:0x243,_0x5e6deb:0x1d5,_0x58bf12:0x269,_0x2fec7d:0x2df,_0x39b4e5:0x2de,_0x18ada3:0x71c,_0x5f04a2:0x1fb,_0x542730:0x96,_0x122a33:0x41,_0x388b57:0x2d5,_0x28e378:0x37a,_0x257e69:0x317,_0x41694a:0x5b4,_0x4c6390:0x67f,_0x31740e:0x50b,_0x16b6ff:0xe1,_0x53cf72:0x127,_0x468f13:0xd4,_0x48803c:0x240,_0x412287:0x642,_0x16d537:0x4e0,_0x194a58:0x515,_0x27b33e:0x49d,_0xcdc81e:0x211,_0x527ce8:0x9e,_0x2afa0f:0x1a4,_0x736a91:0x6ae,_0x11cb71:0xff,_0x1392be:0x26,_0x4c14b9:0x1c3,_0x3085fc:0x50e,_0x5816ad:0x67e,_0x29af4e:0x2b6,_0x2cde7e:0x135,_0x15af29:0x5ac,_0x429e06:0x606,_0x41181b:0x197,_0x44e746:0x218,_0x2a1b74:0x44f,_0x6e93ab:0x5a7,_0xf8c555:0x33d,_0x76018c:0x297},_0x403200={_0x1817b4:0x59,_0x3af4bd:0x7d},_0x3b3889={_0x490edd:0x2f5},_0x1ef36d=new Map(_0x3cbfde[_0xd6042e(0x3b6,0x228,_0x378cce._0x182e9d,0x30d)][_0xd6042e(0x560,_0x378cce._0x7631d0,_0x378cce._0x54f6a9,0x387)](_0x267f8c=>[_0x267f8c['name'],_0x267f8c]));function _0xd6042e(_0x2e4f2b,_0x3e98eb,_0x53ecd1,_0x194d54){return _0x38d42b(_0x2e4f2b-0x159,_0x53ecd1-0x20c,_0x194d54,_0x194d54-0x1dd);}function _0x2005ca(_0xe81a03,_0x553aea,_0x586e3a,_0x48395b){return _0x38d42b(_0xe81a03-0x87,_0x48395b-_0x3b3889._0x490edd,_0x586e3a,_0x48395b-0x158);}const _0x3d8fd8=buildDescription2(_0x3cbfde['skills']);return defineTool({'name':_0x2005ca(_0x378cce._0x22cde2,_0x378cce._0x2687b9,0x58a,_0x378cce._0x32f37a),'description':_0x3d8fd8,'inputSchema':{'type':'object','properties':{'name':{'type':_0xd6042e(0x347,0x1dc,_0x378cce._0x3ce6b2,_0x378cce._0x4ffa0e)}},'required':[_0x2005ca(_0x378cce._0x1ecb5c,_0x378cce._0x4bfad6,0x437,0x410)]},async *'execute'(_0x1b0638){const _0x2034a9={_0x65bb7c:0x18a,_0x7b4ebd:0x1a5},_0xaa0d16=_0x1ef36d[_0x38998e(0x596,0x66e,_0x237e3b._0x487352,_0x237e3b._0x3a9174)](_0x1b0638[_0x5a0c72(_0x237e3b._0x44dcb1,0xfe,_0x237e3b._0x5e6deb,_0x237e3b._0x58bf12)]);if(!_0xaa0d16){const _0x5e7561=Array[_0x5a0c72(_0x237e3b._0x2fec7d,_0x237e3b._0x39b4e5,0x2db,0x2c0)](_0x1ef36d['keys']())[_0x38998e(0x682,0x684,0x666,_0x237e3b._0x18ada3)](',\x20');throw new ToolExecutionError(_0x5a0c72(0xf2,_0x237e3b._0x5f04a2,_0x237e3b._0x542730,-_0x237e3b._0x122a33)+_0x1b0638['name']+_0x5a0c72(_0x237e3b._0x388b57,_0x237e3b._0x28e378,0x316,_0x237e3b._0x257e69)+_0x5e7561,{'name':_0x1b0638[_0x38998e(_0x237e3b._0x41694a,_0x237e3b._0x4c6390,0x5de,_0x237e3b._0x31740e)]});}const _0x3d1ff0=await _0x3cbfde[_0x5a0c72(0x115,_0x237e3b._0x16b6ff,0x221,0x153)](_0xaa0d16),_0xe877d1=_0xaa0d16[_0x5a0c72(_0x237e3b._0x53cf72,_0x237e3b._0x468f13,_0x237e3b._0x48803c,0x241)][_0x38998e(0x5b6,0x51e,_0x237e3b._0x412287,0x48f)]??_0x233466[_0x38998e(0x518,_0x237e3b._0x16d537,_0x237e3b._0x194a58,_0x237e3b._0x27b33e)](_0xaa0d16[_0x5a0c72(0x127,_0x237e3b._0xcdc81e,_0x237e3b._0x527ce8,_0x237e3b._0x2afa0f)][_0x38998e(_0x237e3b._0x736a91,0x65d,0x5d7,0x5e5)]);function _0x38998e(_0x409ff5,_0x8a171f,_0x48a05f,_0x5b879e){return _0x2005ca(_0x409ff5-_0x2034a9._0x65bb7c,_0x8a171f-_0x2034a9._0x7b4ebd,_0x8a171f,_0x409ff5-0x1a4);}const _0xaba13d=[_0x5a0c72(0x16e,_0x237e3b._0x11cb71,_0x237e3b._0x1392be,_0x237e3b._0x4c14b9)+_0x3d1ff0[_0x38998e(0x5b4,_0x237e3b._0x3085fc,0x584,_0x237e3b._0x5816ad)],'',_0x3d1ff0[_0x38998e(0x688,0x7be,0x5dd,0x777)],'',_0x5a0c72(0x23e,_0x237e3b._0x29af4e,0x35d,_0x237e3b._0x2cde7e),'Loaded\x20from:\x20'+_0xaa0d16['source'][_0x38998e(0x6ae,0x709,_0x237e3b._0x15af29,_0x237e3b._0x429e06)],_0x5a0c72(_0x237e3b._0x41181b,_0x237e3b._0x44e746,0x15c,0x230)+_0xe877d1]['join']('\x0a');function _0x5a0c72(_0x43b869,_0x59c0e8,_0xc9875,_0x10c25a){return _0x2005ca(_0x43b869-_0x403200._0x1817b4,_0x59c0e8-_0x403200._0x3af4bd,_0x59c0e8,_0x43b869- -0x1cd);}return yield createToolOutput(_0xaba13d,{'id':_0x3d1ff0['id'],'name':_0x3d1ff0['name'],'path':_0xaa0d16[_0x38998e(0x498,_0x237e3b._0x2a1b74,0x484,_0x237e3b._0x6e93ab)][_0x5a0c72(_0x237e3b._0xf8c555,0x404,_0x237e3b._0x76018c,0x22d)],'baseDirectory':_0xe877d1}),void 0x0;}});}var TODO_STATUSES=new Set([_0x38d42b(0x18f,0x1a9,0x29a,0x1c2),'in_progress',_0x37c1da(0x43b,0x5a3,0x60e,0x53a)]),TODO_PRIORITIES=new Set([_0x38d42b(0x5e,0x17f,0x167,0x263),'medium',_0x37c1da(0x504,0x452,0x68f,0x555)]);function isTodoStatus(_0x26ae57){const _0xbe4fe2={_0x498faa:0x62,_0x49f262:0x20b,_0x47330a:0x7a},_0x38a402={_0x836626:0xd4},_0x339f33={_0x2ed9db:0x10b,_0x3ce1ce:0x238};function _0x2cd5f2(_0x1f012f,_0x1f09c3,_0x55ec0d,_0x40bba3){return _0x38d42b(_0x1f012f-_0x339f33._0x2ed9db,_0x1f012f- -_0x339f33._0x3ce1ce,_0x1f09c3,_0x40bba3-0x16b);}function _0x421a98(_0x4b577d,_0x452a54,_0x29de5e,_0x39bc79){return _0x37c1da(_0x4b577d-0xbc,_0x452a54-_0x38a402._0x836626,_0x39bc79,_0x29de5e- -0x5a9);}return typeof _0x26ae57===_0x421a98(-0x2b,_0xbe4fe2._0x498faa,-0xdc,-_0xbe4fe2._0x49f262)&&TODO_STATUSES[_0x421a98(-_0xbe4fe2._0x47330a,0x133,0xc6,0x1a6)](_0x26ae57);}function isTodoPriority(_0x1531dd){const _0x1a9a91={_0x42550d:0x3bf,_0x1dca5c:0x56f,_0x54023f:0x5e3,_0x36f6be:0xd6,_0x4c2f5a:0x6,_0x5c53c8:0x71},_0x522591={_0x37c0fb:0x120},_0x18fdd1={_0x4ecc01:0x92};function _0x189b88(_0x13f0b3,_0x244f7c,_0x577da5,_0x1f8ea9){return _0x38d42b(_0x13f0b3-_0x18fdd1._0x4ecc01,_0x244f7c- -0x22a,_0x1f8ea9,_0x1f8ea9-0x27);}function _0x404812(_0x4dc74e,_0x5baf67,_0x132c88,_0x1d127f){return _0x38d42b(_0x4dc74e-_0x522591._0x37c0fb,_0x1d127f-0x46a,_0x132c88,_0x1d127f-0x146);}return typeof _0x1531dd===_0x404812(_0x1a9a91._0x42550d,_0x1a9a91._0x1dca5c,_0x1a9a91._0x54023f,0x4ec)&&TODO_PRIORITIES[_0x189b88(_0x1a9a91._0x36f6be,-_0x1a9a91._0x4c2f5a,-_0x1a9a91._0x5c53c8,0x4e)](_0x1531dd);}var TodoStore=class{['todosBySession']=new Map();[_0x37c1da(0x4bb,0x60b,0x50f,0x571)](_0x445c5e){const _0x449f21={_0x4d5a8e:0x180,_0x40a573:0x293,_0x56f989:0x16e,_0x2bd915:0x2a8,_0x4fecbd:0x2a3},_0x247b9d={_0x5388e2:0x19d,_0x3d78ac:0x191},_0x3dfb7e={_0x53107a:0xc8,_0xeb7bb1:0x6b6};function _0x595e65(_0x228856,_0x24afad,_0x3aa028,_0x315a83){return _0x37c1da(_0x228856-0x57,_0x24afad-_0x3dfb7e._0x53107a,_0x315a83,_0x24afad- -_0x3dfb7e._0xeb7bb1);}function _0x18641c(_0x2a2434,_0x327d36,_0x48c5d3,_0x55cdea){return _0x38d42b(_0x2a2434-_0x247b9d._0x5388e2,_0x55cdea- -0x1b5,_0x327d36,_0x55cdea-_0x247b9d._0x3d78ac);}return this[_0x18641c(-_0x449f21._0x4d5a8e,0xa8,-0x1d9,-0x9e)][_0x595e65(-_0x449f21._0x40a573,-_0x449f21._0x56f989,-_0x449f21._0x2bd915,-_0x449f21._0x4fecbd)](_0x445c5e)??[];}[_0x38d42b(0xb3,-0x4b,-0xc5,-0x3b)](_0x4602c7,_0x9d1d0d){const _0x50dfb1={_0x3d4f2a:0x270,_0x18df32:0x153},_0x24bc2b={_0x5de0ef:0x26a,_0x5df1a6:0x8f};function _0xacbb58(_0x1ef289,_0x182047,_0x50dc8a,_0xbbb8d8){return _0x38d42b(_0x1ef289-0x3a,_0x50dc8a- -_0x24bc2b._0x5de0ef,_0xbbb8d8,_0xbbb8d8-_0x24bc2b._0x5df1a6);}this[_0xacbb58(-_0x50dfb1._0x3d4f2a,-0x206,-_0x50dfb1._0x18df32,-0x108)]['set'](_0x4602c7,_0x9d1d0d);}['getStats'](_0x293ce7){const _0x17d184={_0x35a40c:0x578,_0xa2cfc3:0x46b,_0x104037:0x4b5,_0x1cd595:0x171,_0x35847f:0x7b,_0x60922f:0xb1,_0x6116a2:0x13c,_0x269f54:0x294,_0x36ef78:0x551,_0x42ed87:0x526,_0x2aec91:0x475,_0x5dd31f:0x4f0},_0x4c7058={_0x58df40:0xc9,_0x1a73e7:0x6f},_0x481401={_0x3488f4:0xd1};function _0x320b85(_0x5095fb,_0x5922e5,_0x573189,_0x37ee55){return _0x38d42b(_0x5095fb-_0x481401._0x3488f4,_0x5095fb- -0x1c3,_0x573189,_0x37ee55-0x154);}const _0x57de18=this[_0x320b85(-0x9d,0x1,-0x142,-0x64)](_0x293ce7),_0x15e4d8={'total':_0x57de18[_0x5a6dfd(_0x17d184._0x35a40c,_0x17d184._0xa2cfc3,0x4c1,_0x17d184._0x104037)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0x2168fa of _0x57de18){if(_0x2168fa[_0x320b85(-0x7b,-0x4,-_0x17d184._0x1cd595,0x48)]===_0x320b85(-0x1a,0x80,-0x6f,0xd5))_0x15e4d8[_0x5a6dfd(0x561,0x52f,0x5b7,0x5fd)]+=0x1;else{if(_0x2168fa[_0x320b85(-_0x17d184._0x35847f,_0x17d184._0x60922f,-_0x17d184._0x6116a2,0x91)]===_0x5a6dfd(0x2f9,0x35a,0x3b5,_0x17d184._0x269f54))_0x15e4d8[_0x5a6dfd(0x51a,_0x17d184._0x36ef78,_0x17d184._0x42ed87,0x532)]+=0x1;else _0x15e4d8[_0x5a6dfd(0x5af,_0x17d184._0x2aec91,0x4b1,_0x17d184._0x5dd31f)]+=0x1;}}function _0x5a6dfd(_0x5ef4dd,_0x67ba3e,_0x1d4904,_0x223cf6){return _0x37c1da(_0x5ef4dd-_0x4c7058._0x58df40,_0x67ba3e-_0x4c7058._0x1a73e7,_0x5ef4dd,_0x67ba3e- -0xc5);}return _0x15e4d8;}};function validateTodos(_0x2ace9c){const _0x40de81={_0x23ab94:0x5da,_0x396e09:0x507,_0x3dac5f:0x346,_0x1b2579:0x2b0,_0x130e2e:0x1f1,_0x2d3e60:0x3c6,_0x29ff9f:0x5b1,_0x2daece:0x691,_0xec440:0x3db,_0x22e41c:0x238,_0x126864:0x1db,_0x564fe1:0x69b,_0x22e7f4:0x6d6,_0x1275ad:0x767,_0x4c7eeb:0x47c,_0xdb2523:0x5be,_0x1752c8:0x60f,_0x1c5ae0:0x661,_0x13de33:0x6f3,_0x1adbba:0x52e,_0x16c146:0x156,_0x4f8c92:0xdd,_0x18c78e:0x124,_0x4ab760:0x370,_0x57194f:0x380,_0x308961:0x224,_0x16c91e:0x249,_0x44fe98:0x3e3,_0x5dc6f0:0x71f,_0x28630d:0x708,_0x22e1d4:0x601,_0x4f48ac:0x6ed,_0x100dfc:0x5de,_0x41477a:0x1a0,_0x39b540:0x1e6,_0x5bbed5:0x2de,_0x472803:0x37e,_0x37df05:0x273,_0x27fd8e:0x2bd,_0x511639:0x230,_0x396189:0x656,_0xdd4ecc:0x5cb,_0x56890f:0x62f,_0x47b42f:0x714,_0x45c61b:0x24a,_0x3b4990:0x422,_0x3b4f86:0x371,_0x3c3a6f:0x75b,_0x322b00:0x5c7,_0x6c8adc:0x35f,_0x188b1d:0x59f,_0x446666:0x439,_0x3ca95b:0x660,_0xc8e814:0x5ee,_0x13ff75:0x521,_0x5169c2:0x4fb,_0x4c96d3:0x5e1,_0x1aa7f1:0x632,_0x2850b1:0x6ec,_0x1f1e5d:0x726,_0x48733b:0x717,_0x544411:0x553,_0x56c900:0x43f,_0x1063c1:0x554,_0x5ba1a2:0x605,_0x3ac417:0x652},_0x1cb600={_0x560ec4:0x45,_0x7ab1bb:0x4e6};if(!Array[_0x40078f(_0x40de81._0x23ab94,_0x40de81._0x396e09,0x42b,0x468)](_0x2ace9c[_0x23223a(0x3cd,0x384,_0x40de81._0x3dac5f,_0x40de81._0x1b2579)])||_0x2ace9c[_0x23223a(_0x40de81._0x130e2e,_0x40de81._0x2d3e60,0x244,0x2b0)][_0x40078f(_0x40de81._0x29ff9f,0x5cb,0x567,_0x40de81._0x2daece)]===0x0)throw new ToolExecutionError('Parameter\x20\x22todos\x22\x20must\x20be\x20a\x20non-empty\x20array',{'error':'invalid_todos'});for(let _0x3906e8=0x0;_0x3906e8<_0x2ace9c[_0x23223a(_0x40de81._0xec440,_0x40de81._0x22e41c,_0x40de81._0x126864,0x2b0)]['length'];_0x3906e8+=0x1){const _0x3475f0=_0x2ace9c[_0x40078f(_0x40de81._0x564fe1,0x632,_0x40de81._0x22e7f4,_0x40de81._0x1275ad)][_0x3906e8];if(!_0x3475f0||typeof _0x3475f0!==_0x40078f(_0x40de81._0x4c7eeb,0x4f4,0x5df,0x405))throw new ToolExecutionError(_0x40078f(0x6db,0x660,_0x40de81._0xdb2523,_0x40de81._0x1752c8)+(_0x3906e8+0x1)+_0x40078f(_0x40de81._0x1c5ae0,0x63a,_0x40de81._0x13de33,_0x40de81._0x1adbba),{'error':_0x23223a(_0x40de81._0x16c146,0x26e,_0x40de81._0x4f8c92,_0x40de81._0x18c78e)});if(typeof _0x3475f0['id']!=='string'||_0x3475f0['id']['trim']()[_0x23223a(_0x40de81._0x4ab760,_0x40de81._0x57194f,0x315,0x249)]===0x0)throw new ToolExecutionError(_0x23223a(_0x40de81._0x308961,_0x40de81._0x16c91e,_0x40de81._0x44fe98,0x2de)+(_0x3906e8+0x1)+_0x40078f(0x759,_0x40de81._0x5dc6f0,_0x40de81._0x28630d,_0x40de81._0x22e1d4),{'error':'invalid_todo_id'});if(typeof _0x3475f0[_0x40078f(_0x40de81._0x4f48ac,_0x40de81._0x100dfc,0x63b,0x5dc)]!==_0x23223a(0x1b0,0x2f3,_0x40de81._0x41477a,_0x40de81._0x39b540)||_0x3475f0[_0x23223a(_0x40de81._0x5bbed5,_0x40de81._0x472803,_0x40de81._0x37df05,0x25c)][_0x23223a(_0x40de81._0x27fd8e,_0x40de81._0x511639,0x389,0x315)]()[_0x40078f(_0x40de81._0x396189,_0x40de81._0xdd4ecc,_0x40de81._0x56890f,_0x40de81._0x47b42f)]===0x0)throw new ToolExecutionError(_0x40078f(0x625,0x660,0x5dd,0x79a)+(_0x3906e8+0x1)+_0x23223a(_0x40de81._0x45c61b,0x230,_0x40de81._0x3b4990,_0x40de81._0x3b4f86),{'error':_0x40078f(0x555,0x63c,0x72b,0x6dd)});if(!isTodoStatus(_0x3475f0[_0x40078f(0x546,0x62e,_0x40de81._0x3c3a6f,_0x40de81._0x322b00)]))throw new ToolExecutionError(_0x23223a(0x285,0x41f,_0x40de81._0x6c8adc,0x2de)+(_0x3906e8+0x1)+':\x20invalid\x20status',{'error':_0x40078f(_0x40de81._0x188b1d,0x4ea,0x633,_0x40de81._0x446666)});if(!isTodoPriority(_0x3475f0['priority']))throw new ToolExecutionError(_0x40078f(0x6ec,_0x40de81._0x3ca95b,_0x40de81._0xc8e814,_0x40de81._0x13ff75)+(_0x3906e8+0x1)+_0x40078f(0x3fc,_0x40de81._0x5169c2,0x565,_0x40de81._0x4c96d3),{'error':'invalid_todo_priority'});}const _0x137c6e=_0x2ace9c[_0x40078f(0x5d4,_0x40de81._0x1aa7f1,_0x40de81._0x2850b1,0x64b)][_0x40078f(_0x40de81._0x1f1e5d,_0x40de81._0x48733b,0x62f,0x6f2)](_0x216d3a=>_0x216d3a['id']);function _0x23223a(_0x1f0d27,_0x402169,_0x2d1268,_0x34f0ac){return _0x38d42b(_0x1f0d27-0x76,_0x34f0ac-0x164,_0x2d1268,_0x34f0ac-0x2c);}function _0x40078f(_0x279992,_0x1d6770,_0x2b3b8a,_0x3b0351){return _0x38d42b(_0x279992-_0x1cb600._0x560ec4,_0x1d6770-_0x1cb600._0x7ab1bb,_0x279992,_0x3b0351-0xd);}if(new Set(_0x137c6e)[_0x40078f(0x481,_0x40de81._0x544411,_0x40de81._0x56c900,_0x40de81._0x1063c1)]!==_0x137c6e['length'])throw new ToolExecutionError(_0x40078f(_0x40de81._0x5ba1a2,_0x40de81._0x3ac417,0x75d,_0x40de81._0x1063c1),{'error':'duplicate_todo_ids'});}function createStatsProgress(_0x29a065){const _0x27e814={_0x2ac7f6:0x4aa,_0x34ace3:0x430,_0x3884b4:0x209,_0x264747:0x24b,_0x209b26:0x3f6,_0x206b92:0x305,_0x2a7b67:0x513,_0x230718:0x39e},_0x1b7a0a={_0x52b5a5:0xb0};function _0x3fd9e0(_0x200b93,_0x27fcae,_0x4d7d46,_0x3f79ab){return _0x38d42b(_0x200b93-_0x1b7a0a._0x52b5a5,_0x4d7d46-0x26f,_0x200b93,_0x3f79ab-0x106);}function _0x505f46(_0x3abb6b,_0x452b54,_0x13d9ce,_0x306875){return _0x37c1da(_0x3abb6b-0x103,_0x452b54-0x1f1,_0x452b54,_0x306875- -0x3b8);}return _0x29a065[_0x3fd9e0(0x32a,_0x27e814._0x2ac7f6,_0x27e814._0x34ace3,0x334)]>0x0?Math[_0x505f46(_0x27e814._0x3884b4,0x2a8,0x160,_0x27e814._0x264747)](_0x29a065[_0x3fd9e0(0x31a,_0x27e814._0x209b26,0x35e,_0x27e814._0x206b92)]/_0x29a065[_0x3fd9e0(_0x27e814._0x2a7b67,0x486,0x430,_0x27e814._0x230718)]*0x64)+'%':'0%';}function createReminderItems(_0x59981d){const _0x39cc54={_0x338b16:0x4a1};function _0x1ba200(_0x1a46a1,_0x5e928e,_0x44986a,_0x574a77){return _0x37c1da(_0x1a46a1-0x121,_0x5e928e-0xdd,_0x574a77,_0x5e928e- -_0x39cc54._0x338b16);}return _0x59981d['map'](_0x48af5e=>({'content':_0x48af5e[_0x1ba200(0xb8,0xa2,0x1e7,0x95)],'status':_0x48af5e['status'],'id':_0x48af5e['id']}));}function createStructuredResult(_0x2f3bab,_0x2667d0,_0x129acf,_0x5f2bf9){const _0x37e8b2={_0x3753e1:0x408,_0x4d6cec:0x421,_0x3e096f:0x220,_0x252bfb:0x19f},_0x3b7a82={_0x57eb15:0x1};function _0x1f9ee7(_0x14b911,_0x13eb51,_0x6b5313,_0x295fd1){return _0x38d42b(_0x14b911-0x95,_0x295fd1- -0x218,_0x6b5313,_0x295fd1-0x124);}function _0x3913be(_0x50d525,_0x4daa74,_0x2bac4a,_0x3ba5eb){return _0x38d42b(_0x50d525-0x179,_0x3ba5eb-0xba,_0x4daa74,_0x3ba5eb-_0x3b7a82._0x57eb15);}return{'allCompleted':_0x5f2bf9,'items':_0x2667d0[_0x3913be(0x3a4,_0x37e8b2._0x3753e1,_0x37e8b2._0x4d6cec,0x2eb)](_0x150e07=>({'id':_0x150e07['id'],'content':_0x150e07[_0x1f9ee7(-0x18c,-0xdc,-0x16b,-0x120)],'status':_0x150e07[_0x3913be(0x185,0x2a0,0x2cc,0x202)],'priority':_0x150e07[_0x3913be(0x1d7,0xd1,0x1e8,0xb3)],'createdAt':_0x150e07['createdAt']})),'progress':createStatsProgress(_0x129acf),'recentChanges':!![],'sessionId':_0x2f3bab,'stats':_0x129acf,'todosWritten':_0x2667d0[_0x3913be(_0x37e8b2._0x3e096f,0x1c4,0x130,_0x37e8b2._0x252bfb)]};}function createOutputText(_0x1fb63f,_0x1a232e){const _0x438c81={_0x53896f:0x4d,_0x310f22:0x36,_0x196bd8:0xaf,_0x3154d7:0xd7,_0x28ccdd:0x2b,_0x2226cc:0x13},_0x279f4b={_0x2d703c:0x4},_0x29cbd2={_0xbea62d:0xab,_0x37493d:0x17d};function _0x32bb5e(_0x2e4805,_0x43901b,_0x9b8955,_0x15928b){return _0x38d42b(_0x2e4805-_0x29cbd2._0xbea62d,_0x15928b- -_0x29cbd2._0x37493d,_0x2e4805,_0x15928b-0x9a);}const _0x234ca4=JSON[_0x32bb5e(0x4a,_0x438c81._0x53896f,-0x116,_0x438c81._0x310f22)](createReminderItems(_0x1fb63f));function _0x32169b(_0x4a4d40,_0x38da96,_0x1a415e,_0x4a683a){return _0x37c1da(_0x4a4d40-0x1d4,_0x38da96-_0x279f4b._0x2d703c,_0x1a415e,_0x38da96- -0x488);}if(_0x1a232e)return'All\x20'+_0x1fb63f[_0x32bb5e(-_0x438c81._0x196bd8,-0x25,-0x14a,-0x98)]+'\x20todo\x20items\x20have\x20been\x20completed\x20successfully!\x0a\x0a<system-reminder>\x0aAll\x20todo\x20items\x20are\x20now\x20completed!\x20Ask\x20about\x20next\x20steps.\x20Completed\x20list:\x0a'+_0x234ca4+_0x32bb5e(-0x1dd,-0x1e0,-0x2ab,-0x16b);return'Todos\x20have\x20been\x20modified\x20successfully.\x20Continue\x20with\x20current\x20tasks\x20if\x20applicable.\x0a\x0a<system-reminder>\x0aYour\x20todo\x20list\x20has\x20changed.\x20DO\x20NOT\x20mention\x20this\x20explicitly\x20to\x20the\x20user.\x20Latest\x20contents:\x0a'+_0x234ca4+_0x32169b(-_0x438c81._0x3154d7,-_0x438c81._0x28ccdd,-_0x438c81._0x2226cc,-0x5f);}function createTodoWriteTool(_0x260740=new TodoStore()){const _0x13d56a={_0x4317ee:0x37a,_0x1602cb:0x388,_0xb3e7c7:0x24e,_0x2bcbca:0x26f,_0x1e585c:0x30d,_0x5cc468:0x286,_0x3d0b67:0x18d,_0x54baf0:0x207,_0x397b35:0x2a5,_0x45330d:0x16a,_0x56cce6:0x20e,_0x111214:0x1be,_0x534dc5:0x26c},_0xaf188b={_0x3a4415:0x129,_0x2f56bc:0x167,_0x3e2a90:0xc2,_0x462791:0x1ea,_0x1ef32a:0x11c,_0x1e1dcf:0x13f,_0x265796:0x16c,_0x4d76ea:0x1ca,_0x5206dd:0x315,_0x3c047f:0x2e},_0x4ed73c={_0x561904:0x1d1,_0x517790:0x340},_0x5371f8={_0x2e525a:0x1b1,_0x571529:0x25c},_0x4eb413={_0x4181f6:0x166};function _0x3c9ab6(_0x470cf3,_0xade42e,_0x391f83,_0x1fc358){return _0x37c1da(_0x470cf3-_0x4eb413._0x4181f6,_0xade42e-0x15f,_0x1fc358,_0xade42e- -0x247);}function _0x4d051f(_0x272f45,_0x227b0f,_0x4c9073,_0x23a23d){return _0x38d42b(_0x272f45-_0x5371f8._0x2e525a,_0x4c9073- -_0x5371f8._0x571529,_0x23a23d,_0x23a23d-0x33);}return defineTool({'name':_0x3c9ab6(0x2d7,0x415,0x2df,_0x13d56a._0x4317ee),'description':_0x3c9ab6(0x375,0x353,0x440,_0x13d56a._0x1602cb),'inputSchema':{'type':_0x4d051f(-0x2a4,-0x26f,-_0x13d56a._0xb3e7c7,-_0x13d56a._0x2bcbca),'properties':{'todos':{'type':_0x4d051f(-0x1ba,-0x305,-0x26c,-0x1f2),'items':{'type':'object','properties':{'content':{'type':_0x3c9ab6(_0x13d56a._0x1e585c,_0x13d56a._0x5cc468,0x3b2,0x223)},'status':{'type':_0x4d051f(-0x157,-0x266,-0x1da,-_0x13d56a._0x3d0b67)},'priority':{'type':_0x4d051f(-_0x13d56a._0x54baf0,-0xfc,-0x1da,-0x16c)},'id':{'type':_0x3c9ab6(_0x13d56a._0x397b35,0x286,_0x13d56a._0x45330d,0x139)},'createdAt':{'type':_0x4d051f(-0x224,-0xed,-0x1da,-_0x13d56a._0x56cce6)}},'required':['content',_0x4d051f(-_0x13d56a._0x111214,-0xcf,-0x114,-0x55),_0x4d051f(-0x28d,-0x33d,-0x263,-_0x13d56a._0x534dc5),'id']}}},'required':['todos']},async *'execute'(_0x26ada0,_0xfdeb60){const _0x37cd74=_0x26ada0;validateTodos(_0x37cd74);const _0x15a65e=_0xfdeb60[_0x49baa8(0x2a7,_0xaf188b._0x3a4415,_0xaf188b._0x2f56bc,0x120)]||_0x2e1ae7(_0xaf188b._0x3e2a90,_0xaf188b._0x462791,0x6,_0xaf188b._0x1ef32a);function _0x49baa8(_0x430f6e,_0x500ebf,_0x43002c,_0x31ff9b){return _0x4d051f(_0x430f6e-_0x4ed73c._0x561904,_0x500ebf-0xcc,_0x43002c-_0x4ed73c._0x517790,_0x31ff9b);}const _0x455af8=new Date()['toISOString'](),_0x3b160e=_0x37cd74[_0x2e1ae7(_0xaf188b._0x1e1dcf,0x47,0x1a9,_0xaf188b._0x265796)][_0x49baa8(0x413,_0xaf188b._0x4d76ea,_0xaf188b._0x5206dd,0x3e9)](_0x448dc0=>({'id':_0x448dc0['id'],'content':_0x448dc0[_0x2e1ae7(-0x5,0x1ed,0xda,0x118)],'status':_0x448dc0[_0x2e1ae7(0x65,0x256,0x197,0x168)],'priority':_0x448dc0[_0x49baa8(0xaf,-0x9,0xdd,0x155)],'sessionId':_0x15a65e,'createdAt':_0x448dc0[_0x49baa8(0x2f0,0x232,0x307,0x252)]||_0x455af8,'updatedAt':_0x455af8}));function _0x2e1ae7(_0x3c411a,_0x53ba72,_0x5515cc,_0x25b752){return _0x4d051f(_0x3c411a-0x21,_0x53ba72-0x54,_0x25b752-0x27c,_0x5515cc);}_0x260740['setTodos'](_0x15a65e,_0x3b160e);const _0x595216=_0x260740[_0x2e1ae7(0x249,0x2e2,0x106,0x1ab)](_0x15a65e),_0x5cb195=_0x3b160e[_0x2e1ae7(0x248,0x251,0x18d,0x105)]>0x0&&_0x3b160e[_0x49baa8(_0xaf188b._0x3c047f,0x69,0x162,0x1fe)](_0x13fac4=>_0x13fac4[_0x49baa8(0x253,0xe3,0x22c,0x1dc)]===_0x2e1ae7(0x18f,0x115,-0x12,0x10f));return createToolOutput(createOutputText(_0x3b160e,_0x5cb195),createStructuredResult(_0x15a65e,_0x3b160e,_0x595216,_0x5cb195));}});}import{mkdir as _0x1d653f,writeFile as _0x9f8424}from'fs/promises';import*as _0x648fe7 from'path';function sanitizeFileName(_0x2ce3fa){const _0x1d78ee={_0x383531:0x1d6,_0x3876f1:0x1cc,_0x4e8b5d:0x2b1},_0x45da21={_0x515491:0x1d8,_0x134adf:0x1d};function _0x19319c(_0x1bbb9e,_0x1c8076,_0x20f4d6,_0x4472ae){return _0x37c1da(_0x1bbb9e-_0x45da21._0x515491,_0x1c8076-_0x45da21._0x134adf,_0x1c8076,_0x1bbb9e- -0x5f9);}return _0x2ce3fa[_0x19319c(-_0x1d78ee._0x383531,-_0x1d78ee._0x3876f1,-_0x1d78ee._0x4e8b5d,-0x145)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x49dbb7,_0x5dfc2a){const _0x81ffa4={_0xf6ebe9:0x24f,_0x108ec0:0x2b7,_0x25ccb1:0x361,_0x425a40:0x18c,_0x3d66ae:0x12f,_0x42b555:0xb7,_0xe728a7:0x163,_0x3522c5:0x2e,_0x291278:0x92,_0x1a5946:0x3b,_0x4434a1:0xe0,_0x3647bd:0x4a5,_0x44cf2e:0x464,_0x1e28b1:0x3b6,_0x29219c:0x1e6,_0x327df9:0x2fc,_0x192bb6:0x236,_0x39b664:0x3ec,_0x247f02:0x44d,_0x37daab:0x1a9,_0x2e6f11:0x13a,_0x149e24:0x1b3,_0x23ebcb:0x2fd,_0x44fb54:0x31,_0xd70469:0x1db,_0x549381:0x14c,_0x3c9ee0:0x1f0,_0x453563:0x119,_0x5dedc5:0x387,_0x42f425:0xf,_0x52c4f1:0x141,_0x470b5b:0x6f,_0x1074cf:0x1f,_0x897c4f:0x191,_0x3ee4de:0x2a,_0x35ba98:0xf2,_0xccac4c:0x177,_0x36457c:0x6f,_0x350f6b:0x2b,_0x2b3557:0x266,_0xba6948:0x19f,_0xf003c0:0x18b,_0xa066e3:0x116,_0x54bef5:0x1a,_0x20cde0:0x279,_0x52f2ff:0x37f,_0x310adb:0x24b,_0x268108:0x4be,_0x3de008:0x449,_0x412815:0x312,_0x2a84e4:0x6c,_0x3b4e60:0x469,_0xd7ef7f:0x29d,_0x4a5da9:0x377,_0x29b401:0x25,_0x4419d4:0x10b,_0x296cf8:0xc8,_0x5746be:0xc9,_0x2eeeb7:0x229,_0x344853:0x2ba,_0x3b4306:0x316,_0x45d7da:0xe1,_0x29db38:0x6d,_0x5898c6:0x15a},_0x56de5d={_0x2b61b1:0x188,_0x158d5e:0x18c},_0x3b2c04={_0x4e3053:0xca,_0xcdbfb1:0x8c},{maxBytes:_0x520711,sessionDir:_0x2d3450}=_0x5dfc2a;function _0x138538(_0x4b021a,_0x32dbee,_0x513508,_0x372dc9){return _0x38d42b(_0x4b021a-_0x3b2c04._0x4e3053,_0x372dc9-0x18e,_0x4b021a,_0x372dc9-_0x3b2c04._0xcdbfb1);}if(!_0x49dbb7[_0x36fae7(-0x19c,-0x2b5,-_0x81ffa4._0xf6ebe9,-_0x81ffa4._0x108ec0)]||Buffer['byteLength'](_0x49dbb7['output'],_0x138538(0x41b,0x3fd,_0x81ffa4._0x25ccb1,0x2ee))<=_0x520711)return _0x49dbb7;const _0xe2adfd=Buffer['byteLength'](_0x49dbb7[_0x36fae7(-_0x81ffa4._0x425a40,-0x212,-0x24f,-0x1d8)],_0x36fae7(-_0x81ffa4._0x3d66ae,-_0x81ffa4._0x42b555,-0x119,-_0x81ffa4._0xe728a7));if(!_0x2d3450){const _0x5b9605=_0x49dbb7['output'][_0x36fae7(0x43,0x5,-0x6f,-_0x81ffa4._0x3522c5)](0x0,_0x520711);return{..._0x49dbb7,'output':_0x5b9605+(_0x36fae7(-0x183,0x5c,-_0x81ffa4._0x291278,_0x81ffa4._0x1a5946)+_0x520711+_0x36fae7(-0x132,-0x35b,-0x21a,-_0x81ffa4._0x4434a1)+_0xe2adfd+_0x138538(_0x81ffa4._0x3647bd,_0x81ffa4._0x44cf2e,0x47b,_0x81ffa4._0x1e28b1)),'meta':{..._0x49dbb7[_0x138538(0x40c,0x28d,_0x81ffa4._0x29219c,_0x81ffa4._0x327df9)],'truncated':!![],'originalBytes':_0xe2adfd,'transforms':[..._0x49dbb7['meta'][_0x138538(_0x81ffa4._0x192bb6,_0x81ffa4._0x39b664,_0x81ffa4._0x247f02,0x316)],_0x36fae7(-_0x81ffa4._0x37daab,-_0x81ffa4._0x2e6f11,-0x6d,-0xac)]}};}const _0x5a6565=_0x49dbb7['toolName']+'_'+sanitizeFileName(_0x49dbb7['callId'])+_0x138538(0x269,0x36e,_0x81ffa4._0x149e24,_0x81ffa4._0x23ebcb),_0x25fb03=_0x648fe7[_0x36fae7(0xb4,0x1e,-0x90,_0x81ffa4._0x44fb54)](_0x2d3450,_0x5a6565);await _0x1d653f(_0x2d3450,{'recursive':!![]});function _0x36fae7(_0x48bd86,_0x486cba,_0x5d0f9d,_0x3bfc05){return _0x38d42b(_0x48bd86-_0x56de5d._0x2b61b1,_0x5d0f9d- -0x279,_0x486cba,_0x3bfc05-_0x56de5d._0x158d5e);}await _0x9f8424(_0x25fb03,_0x49dbb7[_0x138538(_0x81ffa4._0xd70469,0x8f,0x76,0x1b8)],_0x36fae7(-_0x81ffa4._0x549381,-_0x81ffa4._0x3c9ee0,-_0x81ffa4._0x453563,-0xfe));let _0x3dd9f4=_0x49dbb7[_0x36fae7(-0x12f,-_0x81ffa4._0x5dedc5,-_0x81ffa4._0xf6ebe9,-0x295)][_0x36fae7(-_0x81ffa4._0x42f425,-_0x81ffa4._0x52c4f1,-_0x81ffa4._0x470b5b,_0x81ffa4._0x1074cf)](0x0,_0x520711);const _0x629aca=_0x3dd9f4[_0x36fae7(-_0x81ffa4._0x897c4f,-_0x81ffa4._0x3ee4de,-_0x81ffa4._0x35ba98,-0x14c)]('\x0a');_0x629aca>_0x520711*0.5&&(_0x3dd9f4=_0x3dd9f4[_0x36fae7(-_0x81ffa4._0xccac4c,-0xb7,-_0x81ffa4._0x36457c,-_0x81ffa4._0x350f6b)](0x0,_0x629aca));const _0x38679f=['',_0x138538(0x289,_0x81ffa4._0x2b3557,0x28e,_0x81ffa4._0xba6948),_0x138538(0x4f,0x1e2,0x127,_0x81ffa4._0xf003c0)+_0x520711+_0x36fae7(-0x8,-0x52,-_0x81ffa4._0xa066e3,-_0x81ffa4._0x54bef5)+_0xe2adfd+_0x36fae7(-_0x81ffa4._0x20cde0,-_0x81ffa4._0x52f2ff,-_0x81ffa4._0x310adb,-0x1e3),_0x138538(0x336,_0x81ffa4._0x268108,_0x81ffa4._0x3de008,0x3a9)+_0x25fb03,_0x138538(0x41d,_0x81ffa4._0x412815,0x3ad,0x3cb),_0x36fae7(-_0x81ffa4._0x2a84e4,-0x11b,-0x19e,-0x1bd)][_0x138538(0x2ff,_0x81ffa4._0x3b4e60,_0x81ffa4._0xd7ef7f,_0x81ffa4._0x4a5da9)]('\x0a');return{..._0x49dbb7,'output':_0x3dd9f4+_0x38679f,'meta':{..._0x49dbb7[_0x36fae7(-_0x81ffa4._0x29b401,-0x24f,-_0x81ffa4._0x4419d4,-_0x81ffa4._0x296cf8)],'truncated':!![],'originalBytes':_0xe2adfd,'transforms':[..._0x49dbb7[_0x36fae7(-_0x81ffa4._0x5746be,-0xc3,-0x10b,-_0x81ffa4._0x2eeeb7)][_0x138538(_0x81ffa4._0x344853,0x1dc,0x38f,_0x81ffa4._0x3b4306)],_0x36fae7(-_0x81ffa4._0x45d7da,-0xdc,-_0x81ffa4._0x29db38,-_0x81ffa4._0x5898c6)]}};}import{readFile as _0xdb9c77,stat as _0x4a2aca}from'fs/promises';import*as _0x4dce53 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x37c1da(0x6a2,0x5f6,0x62f,0x5b8),_0x37c1da(0x4f5,0x5a3,0x5dd,0x5ca),_0x37c1da(0x45f,0x425,0x653,0x555),_0x37c1da(0x734,0x724,0x6aa,0x63d)]),PNG_SIGNATURE=Buffer[_0x38d42b(0x2e7,0x1b7,0x274,0x190)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x13e902,_0x65e814){const _0x2a64a9={_0x3408b4:0x55b,_0x5e6e51:0x58c,_0x2cfb4e:0x47d,_0x3581fa:0x200,_0x166475:0x49,_0x59f0b7:0xff,_0x1a39ac:0x64e,_0x4ee77d:0x16f,_0x317325:0x29d,_0x41f440:0x157,_0x3f81ca:0x22c,_0x3b1122:0x19d,_0x38d5b7:0x15a,_0x406c10:0x4e,_0xe68f4d:0x20c,_0x2e7650:0x29e,_0x4e756a:0x686,_0x457542:0x85,_0x5e31bd:0x81,_0x991975:0x697,_0x10a7fa:0x6fa,_0x485606:0x14c,_0x5c4c73:0x5ac,_0x19736f:0x4ff,_0x4c5486:0x4ca,_0x4eac93:0x78,_0x2b14e7:0xdc,_0x3b9f1e:0x164,_0x4385bf:0x1b7,_0x29aab4:0x13e,_0x5ba0c5:0x1c9,_0x27211c:0x92,_0x3597b4:0xa3,_0x294f76:0x88},_0xb6b8e7={_0xcb986c:0x16b,_0x51b504:0x63b};function _0x2ab1c9(_0x438818,_0x33acce,_0x4e623c,_0x448cc0){return _0x37c1da(_0x438818-0x94,_0x33acce-0x1f0,_0x448cc0,_0x438818-0x7a);}if(_0x13e902[_0x2ab1c9(_0x2a64a9._0x3408b4,0x646,_0x2a64a9._0x5e6e51,_0x2a64a9._0x2cfb4e)](0x0,0x8)[_0x4571fb(-0xc4,-0x1e3,-_0x2a64a9._0x3581fa,-0x2ba)](PNG_SIGNATURE))return _0x4571fb(-0xd1,-_0x2a64a9._0x166475,-_0x2a64a9._0x59f0b7,-0x192);if(_0x13e902[0x0]===0xff&&_0x13e902[0x1]===0xd8&&_0x13e902[0x2]===0xff)return _0x2ab1c9(0x5d9,0x4d1,0x70f,0x51e);const _0x145e3f=_0x13e902[_0x2ab1c9(0x55b,_0x2a64a9._0x1a39ac,0x64c,0x48a)](0x0,0x6)[_0x4571fb(-0x20c,-0x186,-_0x2a64a9._0x4ee77d,-0x1e9)](_0x4571fb(-0x32a,-0x207,-_0x2a64a9._0x317325,-0x240));if(_0x145e3f==='GIF87a'||_0x145e3f==='GIF89a')return'image/gif';if(_0x13e902[_0x4571fb(-_0x2a64a9._0x41f440,-0x15a,-_0x2a64a9._0x3f81ca,-_0x2a64a9._0x3b1122)](0x0,0x4)['toString']('ascii')==='RIFF'&&_0x13e902[_0x4571fb(-0x45,-_0x2a64a9._0x38d5b7,-0x51,-_0x2a64a9._0x406c10)](0x8,0xc)['toString'](_0x4571fb(-0xd7,-0x207,-_0x2a64a9._0xe68f4d,-_0x2a64a9._0x2e7650))===_0x2ab1c9(0x5ee,0x4a1,_0x2a64a9._0x4e756a,0x548))return _0x4571fb(-0x61,-0x72,-_0x2a64a9._0x457542,_0x2a64a9._0x5e31bd);const _0x583711=_0x4dce53[_0x2ab1c9(_0x2a64a9._0x991975,0x742,_0x2a64a9._0x10a7fa,0x6c8)](_0x65e814)[_0x4571fb(0x2d,0x30,_0x2a64a9._0x485606,-0x67)]();if(_0x583711===_0x2ab1c9(0x5bc,_0x2a64a9._0x5c4c73,_0x2a64a9._0x19736f,_0x2a64a9._0x4c5486))return _0x4571fb(_0x2a64a9._0x4eac93,-0x49,-_0x2a64a9._0x41f440,-0x106);if(_0x583711==='.jpg'||_0x583711==='.jpeg')return _0x4571fb(-0x49,-_0x2a64a9._0x2b14e7,-_0x2a64a9._0x3b9f1e,-0x8);function _0x4571fb(_0x1deacf,_0x5cdd4b,_0x54be1f,_0x358ab9){return _0x37c1da(_0x1deacf-_0xb6b8e7._0xcb986c,_0x5cdd4b-0xc,_0x1deacf,_0x5cdd4b- -_0xb6b8e7._0x51b504);}if(_0x583711==='.gif')return'image/gif';if(_0x583711===_0x4571fb(-0x73,-_0x2a64a9._0x4385bf,-_0x2a64a9._0x29aab4,-_0x2a64a9._0x5ba0c5))return _0x4571fb(-_0x2a64a9._0x27211c,-0x72,-_0x2a64a9._0x3597b4,-_0x2a64a9._0x294f76);return void 0x0;}function normalizeDetail(_0x3d52bf){const _0x492405={_0x167af2:0xcf,_0x1bebbe:0x44f,_0x255c6d:0x4fc,_0x4caf2a:0x4d7,_0x14bd0c:0x49d,_0xf0044b:0x500,_0x15d752:0x4e5,_0x3fdcdf:0xee,_0x17c6fd:0x156},_0x57d817={_0x225eea:0x26,_0x2730cb:0x50f},_0x20ccce={_0x4fa796:0x16f};if(_0x3d52bf===void 0x0)return void 0x0;const _0x433f67=_0x3d52bf[_0x1334af(0xbb,0xed,-0x49,_0x492405._0x167af2)]()[_0x5928db(_0x492405._0x1bebbe,_0x492405._0x255c6d,_0x492405._0x4caf2a,_0x492405._0x14bd0c)]();if(!SUPPORTED_DETAILS[_0x5928db(0x445,_0x492405._0xf0044b,0x586,_0x492405._0x15d752)](_0x433f67))throw new ToolExecutionError(_0x1334af(-0x19c,-_0x492405._0x3fdcdf,-_0x492405._0x17c6fd,0x2d)+_0x3d52bf,{'detail':_0x3d52bf});function _0x5928db(_0xc9c0a7,_0x471f72,_0x5ca298,_0x2852ad){return _0x37c1da(_0xc9c0a7-0x6a,_0x471f72-0x98,_0xc9c0a7,_0x471f72- -_0x20ccce._0x4fa796);}function _0x1334af(_0x206187,_0x2854b3,_0x5c5b0a,_0x136c66){return _0x37c1da(_0x206187-_0x57d817._0x225eea,_0x2854b3-0x18f,_0x136c66,_0x2854b3- -_0x57d817._0x2730cb);}return _0x433f67;}function createViewFileTool(_0x400bcb={}){const _0x10d22e={_0x2d8b20:0x192,_0x159250:0x30b,_0x1be186:0x139,_0x23252c:0x267,_0x208496:0x126},_0x31cd80={_0x10d09d:0x49,_0x151374:0x105,_0x4fcf81:0x6d,_0x255eac:0x15f,_0x524861:0xca,_0x40b5bf:0x28,_0x24a221:0x2f,_0x23dab0:0xa9,_0xa90c36:0x6f,_0x1f8be3:0x15d,_0x3c002e:0x44b,_0x58d575:0x3de,_0x255fdc:0x464,_0x4adbea:0x410,_0x31548b:0x4eb,_0x2bcdab:0x3a8,_0x41c81b:0x340,_0xa04bbf:0x350,_0x3e67c7:0x137,_0x1fe3ca:0x7f,_0x1fa444:0x5c0,_0x47eabe:0x4c6,_0x28cc88:0xbe,_0xfca39f:0x20b,_0x294abd:0x234,_0x5227a6:0x133,_0xa1e793:0xcd,_0x19936c:0xb6,_0xa49d0:0x53,_0x556636:0x39,_0x31a3d4:0x1d,_0x510bcd:0x4c,_0x57f800:0x1de,_0x1cba30:0x3d,_0x1a04a8:0x2b,_0x3a6dfc:0x1,_0x25a264:0x4be,_0x42e756:0x4c6,_0x581254:0x69,_0x5e7893:0x6c,_0x14c1f3:0x169,_0x39456d:0x1dd,_0x3ebfe6:0x78,_0x557692:0x337,_0x511288:0x238,_0x85e4f5:0x2ce},_0x1dc0c5={_0x2e24da:0xff},_0x1851a4={_0x4326f4:0x34,_0x5a4fb6:0x2e3},_0x3f4961={_0x5275ed:0x1d5,_0x5241a3:0xa4};function _0xe54394(_0x33ac2a,_0x10d1a6,_0x10f8e6,_0xdac6c7){return _0x38d42b(_0x33ac2a-_0x3f4961._0x5275ed,_0x10d1a6-_0x3f4961._0x5241a3,_0x33ac2a,_0xdac6c7-0xa2);}const _0x57d6c8=_0x4dce53['resolve'](_0x400bcb['defaultCwd']??process[_0xe54394(_0x10d22e._0x2d8b20,0x226,_0x10d22e._0x159250,_0x10d22e._0x1be186)]()),_0x533706=(_0x400bcb['allowedDirs']??[])[_0xe54394(0x35b,0x2d5,0x2f6,0x227)](_0x37e594=>_0x4dce53[_0xe54394(0x2b6,0x1a7,0xbf,0x187)](_0x37e594));function _0x4e6d68(_0x583b10,_0x310f0c,_0x4c0cfd,_0xf3b346){return _0x37c1da(_0x583b10-_0x1851a4._0x4326f4,_0x310f0c-0x151,_0x310f0c,_0xf3b346- -_0x1851a4._0x5a4fb6);}const _0x2fa0c1=_0x400bcb[_0xe54394(0x22,0x131,0x113,0x215)]??DEFAULT_MAX_BYTES,_0x299db5=_0x400bcb['name']??_0xe54394(_0x10d22e._0x23252c,0x249,0x165,0x168);return defineTool({'name':_0x299db5,'description':'View\x20an\x20image\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories\x20so\x20the\x20model\x20can\x20inspect\x20its\x20visual\x20content.\x20Supports\x20PNG,\x20JPEG,\x20WebP,\x20and\x20GIF\x20images.\x20Use\x20this\x20for\x20screenshots,\x20diagrams,\x20photos,\x20and\x20other\x20image\x20files;\x20use\x20FileRead\x20for\x20text\x20files.','inputSchema':{'type':'object','properties':{'path':{'type':_0xe54394(0x237,_0x10d22e._0x208496,-0xc,0xb9)},'detail':{'type':'string'}},'required':[_0xe54394(0x19c,0x2b9,0x18f,0x315)]},async *'execute'(_0x7eb0e8){const _0x4ff31f={_0x17ae65:0x5e},_0x4f2082=resolveAllowedPath(_0x57d6c8,_0x533706,_0x7eb0e8['path']);await assertWorkspaceFile(_0x4f2082);const _0x29ff42=await _0x4a2aca(_0x4f2082);function _0x1999ce(_0x35012e,_0x48f16a,_0x35bc60,_0x2db4c8){return _0x4e6d68(_0x35012e-_0x1dc0c5._0x2e24da,_0x2db4c8,_0x35bc60-0xa7,_0x35bc60- -0x21e);}if(_0x29ff42[_0x1999ce(-0x137,-0xb0,-_0x31cd80._0x10d09d,0xfa)]>_0x2fa0c1)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x7eb0e8['path'],{'path':_0x7eb0e8[_0x1999ce(_0x31cd80._0x151374,_0x31cd80._0x4fcf81,_0x31cd80._0x255eac,_0x31cd80._0x524861)],'maxBytes':_0x2fa0c1,'size':_0x29ff42['size']});const _0x4c31a9=await _0xdb9c77(_0x4f2082),_0x5db691=detectImageMediaType(_0x4c31a9,_0x4f2082);function _0x3207a1(_0x1013b6,_0x1dec91,_0x1e41f0,_0x38e9f7){return _0xe54394(_0x1013b6,_0x38e9f7-0x20d,_0x1e41f0-_0x4ff31f._0x17ae65,_0x38e9f7-0x4a);}if(!_0x5db691)throw new ToolExecutionError(_0x1999ce(-_0x31cd80._0x40b5bf,0xc0,-0x6d,-_0x31cd80._0x24a221)+_0x7eb0e8[_0x1999ce(0x284,0x1de,0x15f,0x8a)],{'path':_0x7eb0e8['path'],'supported':[_0x1999ce(0x4e,0x1b8,0x8d,_0x31cd80._0x23dab0),_0x1999ce(-_0x31cd80._0xa90c36,0x14a,0xd3,_0x31cd80._0x1f8be3),_0x3207a1(0x30c,0x2b4,_0x31cd80._0x3c002e,_0x31cd80._0x58d575),_0x3207a1(_0x31cd80._0x255fdc,_0x31cd80._0x4adbea,_0x31cd80._0x31548b,_0x31cd80._0x2bcdab),_0x3207a1(0x211,_0x31cd80._0x41c81b,_0x31cd80._0xa04bbf,0x2ea)]});const _0x3086a8=normalizeDetail(_0x7eb0e8[_0x1999ce(0x1ed,0x1d4,_0x31cd80._0x3e67c7,0x51)]),_0x4e54f7=[_0x1999ce(-_0x31cd80._0x1fe3ca,-0x94,-0xaf,-0xd5)+_0x7eb0e8[_0x3207a1(_0x31cd80._0x1fa444,0x43c,0x467,_0x31cd80._0x47eabe)],'MIME:\x20'+_0x5db691,'Size:\x20'+_0x29ff42['size']+'\x20bytes'][_0x1999ce(_0x31cd80._0x28cc88,_0x31cd80._0xfca39f,0x111,_0x31cd80._0x294abd)](_0x3086a8?['Detail:\x20'+_0x3086a8]:[])[_0x1999ce(0x1c1,0x64,_0x31cd80._0x5227a6,0x24a)]('\x0a'),_0xfaa946=[{'type':_0x1999ce(-0x114,-_0x31cd80._0xa1e793,0x29,-_0x31cd80._0x19936c),'source':{'type':_0x1999ce(-_0x31cd80._0xa49d0,-0x1a6,-0x99,-_0x31cd80._0x556636),'media_type':_0x5db691,'data':_0x4c31a9[_0x1999ce(_0x31cd80._0x31a3d4,-0x11a,-_0x31cd80._0x510bcd,-0xed)](_0x3207a1(0x1d9,_0x31cd80._0x57f800,0x2ee,0x2ce))}},{'type':_0x1999ce(-_0x31cd80._0x1cba30,_0x31cd80._0x1a04a8,-0x7,_0x31cd80._0x3a6dfc),'text':_0x4e54f7}];return yield createToolOutput(_0x4e54f7,{'path':_0x7eb0e8[_0x3207a1(0x503,0x3ef,_0x31cd80._0x25a264,_0x31cd80._0x42e756)],'resolvedPath':_0x4f2082,'created':_0x29ff42[_0x1999ce(-_0x31cd80._0x581254,0xf1,0x17,-_0x31cd80._0x5e7893)]['toISOString'](),'modified':_0x29ff42['mtime'][_0x1999ce(-0xfa,-_0x31cd80._0x14c1f3,-0xf3,-_0x31cd80._0x39456d)](),'size':_0x29ff42[_0x1999ce(-_0x31cd80._0x1a04a8,_0x31cd80._0x3ebfe6,-0x49,-0xfe)],'mimeType':_0x5db691,'encoding':_0x3207a1(_0x31cd80._0x557692,_0x31cd80._0x511288,0x33d,_0x31cd80._0x85e4f5),..._0x3086a8?{'detail':_0x3086a8}:{}},_0xfaa946),void 0x0;}});}import _0x194c62 from'turndown';var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_TIMEOUT_MS2=0xea60;function _0x491c(){const _0x1e6127=['zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','lMPZB24','yM9VBgvHBG','yxr0CG','zMXVB3i','C3rHDgu','BhnWu2vYDMLJzq','te9x','lMnTza','tg9HzfnRAwXS','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','AM9PBG','A2v5CW','Dgv4Dc9ODg1S','tgLUzsa','zgv0ywLS','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','Aw5ZDhj1y3rPB25Z','DxrTx2nHBxbHAwDU','ls1NBg9Ipq','B3jPz2LUywW','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','zxjYB3i','zg9JDw1LBNrtEw1IB2W','C3rKB3v0','ig1HDgnO','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','CMvJB3jK','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','y29KzvzLCMLMAwvY','A2LSBa','ChjLCgfYzunHBgXiAwvYyxjJAhK','CgfNzw1HCa','o1TE','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','yxbPs2v5','nda2mhH5BxHUCG','BgfUz3vHz2u','Dg9VBa','l2jPBI9YzW','zMLSztOVlW','lu5VuhjVzMLSzq','CxvLC3rPB25Z','C2XPy2u','zMjJBgLK','Dg9VBc1VDxrWDxqTB2zMBg9Hza','oIbJB250zw50ihjLCxvPCMvK','zw5K','u2HLBgWGBM90igzVDw5KoIa','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','vg9KB1DYAxrL','Aw5WDxrty2HLBwe','C3jJl2fNzw50l2fNzw50lNrZ','thnW','Cgf0Aa','zw5NAw5LCW','C25PChbLDa','yxjNDw1LBNrZ','Bg9JyxrPB24','DgL0Bgu','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','zgvUBY5QC29U','y2fSBgjHy2TvCMW','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','Dg9mB3DLCKnHC2u','B25oB3rPzMLJyxrPB24','DxjP','y3jLyxrLzef0','AgfZ','AxnfBMfIBgvK','CMvTB3zLrxzLBNrmAxn0zw5LCG','l2jPBI9IyxnO','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','ChjVDg9JB2W','Dhj1BMm','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','tM8GC3vJAcbMAwXLoIaN','ls1ZDgrPBW','zgvMyxvSDen3za','ywXS','mJi3otG5ohLduK1WDW','BwfW','tunqihnLCNzLCIa','y2vPBa','AgfUzgXL','CMvXDwLYzwq','ksbB','z29Vz2XLq3nLs2v5','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','oIbPzcbYzxf1AxjLza','CMvHC29U','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','Aw5JB21PBMDdywXSCW','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','yxnRvxnLCG','CgfJA2fNzu5HBwu','Dgv4DerVy3vTzw50l2HVDMvY','CMfUz2u','D2vI','C3rHCNq','yxnZAwDU','Aw5ZDgfSBa','ANnVBG','zgLZywjSzwq','ChvZAa','Aw5JBhvKzxm','Ahr0CdO','BgLUzq','tuvesvvn','DgLTzvTKyxrLDgLTzv0','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','C2v0vg9KB3m','l3vZCI9SB2nHBc9IAw4VCMC','y2fSBfrVB2W','zgf0zxrPBwu','igzHAwXLzc4','ndu4ngX2EfLvvG','mZjsDfHHzgG','ywXSB3DLzerPCNm','DxrTx3nVDxjJzq','vw5RBM93BIb0B29SoIa','C2vHCMnOvhLWzq','Aw52ywXPzf90B2rVx2L0zw0','Bw9Kzq','yMLVBwuUANnVBMm','Dg9ju09tDhjPBMC','zMLYC3q','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','BgLNAhq','uhvIBgLZAgvKoIa','tunqihrVB2WG','yxv0AfjLCxvPCMvK','u2TPBgWGjW','C2H1DgrVD24','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','BM9Uzq','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Dw5PB24','qxnRvxnLCLrVB2W','lNrTCc4','lMPZB25J','AMf2yxnJCMLWDhjLywn0','Aw5FChjVz3jLC3m','zgf0yq','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','BNvTyMvY','CMvWBgfJzq','CMvJzw5JEurHExm','y2f0y2G','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','BhnWlxbYB3H5','yw50AhjVCgLJlw1LC3nHz2vZ','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','DgHLBG','ChjVCgvYDgLLCW','lM51DMLU','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','Aw5JBhvKzq','r2XVyG','zgLZCg9Zzq','C2vUza','ugf0AcbPCYbUB3qGysbMAwXLoIa','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','yxnJAwK','yMfZAwm','BgLUAW','zgLZy292zxj5u3rHDgu','Bg9HzfnRAwXS','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','yxjYyxK','C2fMzq','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','yM94zwq','AwDUB3jLt3v0Chv0','BgfUzW','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','DgvZDa','CMvZDwX0','ChjPB3jPDhK','B3bLCMf0Aw9U','A2v5yMLUzgLUz3m','ANnVBMm','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','y2fWywjPBgL0AwvZ','C291CMnL','u0Lhs0Lmta','B2zMC2v0','CNvUswq','w1bFxL1BxhnCu10QpW','Aw52ywXPzf90B2rVx3n0yxr1CW','ig1Z','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','vMLLD2vKigLTywDLigzPBgu6ia','Aw5WDxq','CgLK','C2HHmJu2','AgvHzgvYCW','ywjVCNq','zxf1ywXZ','B2jQzwn0','yxjNCW','yxbWBgLJyxrPB24VANnVBG','phn5C3rLBs1Yzw1PBMrLCJ4','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','CgXHDgzVCM0','sfruuca','oIbPBNzHBgLKihbYAw9YAxr5','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','CMCUzxHL','CMLWz3jLCcbMywLSzwq6ia','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','BNbT','D29YA3nWywnLl3n5BwjVBa','BM9Zy3jPChq','yMfZzty0','BgLTAxq','yxv0Aa','l3bPza','AxnbCNjHEq','C3vKBW','ywrKrxzLBNrmAxn0zw5LCG','zMLSDgvY','lM10CW','CgXHAw4','BwLU','zxH0zw5ZAw9UCW','Bw9KzwW','B3v0Chv0','yxr4','C3rVCMfNzurPCG','y2fJAgvK','igj5DgvZks4','z29Vz2XLlwnZzq','qxv0Ag9YAxPHDgLVBG','DhnJ','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','lMnQCW','yw5ZAti1nG','Aw1Hz2vZ','CgfYzw50u2vZC2LVBKLK','ru5pru5u','lNDLyNa','zw50CMLLCW','xg5DkJ8','zNvUy3rPB24','AgvHzgvY','C2vHCMnOugfYyw1Z','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','CgfYC2u','DxjS','lNrZEa','y29UBMvJDa','y29ZDa','BxrPBwvnCW','iYmGu2TPBgW6ia','Dgf2AwX5qxbPs2v5','BgLI','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','te9dquXbufbeqvrb','ywjVCNrLza','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','yxnPzgu','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','qwDLBNqGCNvUia','ChjLzML4','Ahr0Chm6','tM8GAg92zxiGAw5MB3jTyxrPB24','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','sw52B2TLq29TBwfUza','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','ywDLBNrZ','y29UzMLN','w01duca','ywXSu2v0DgXLza','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','lM1QCW','Dg9Rzw4','AhrTBfnUAxbWzxq','AgfZq2XPzw50CW','igj5DgvZicHVCMLNAw5HBdOG','C2vHCMnOrgvWDgG','DhnZzxj2zxiUANm','C2v2zxjPDhK','tM8GBg9JyxrPB25ZigzVDw5K','zM9VDgvY','C29YDa','C3rKzxjY','yMvHCMvY','l3vZCI9IAw4VCMC','Bg9JywXLq29TCgfYzq','Dg9tDhjPBMC','CMvMCMvZAf90B2TLBG','DMfSDwu','C2L6zq','CMfUAW','qMfZzsbKAxjLy3rVCNK6ia','sw5MB3jTyxrPB24','D2HLCMuGCMC','EwfYBI5SB2nR','y29UBMvJDgvK','B3bLBG','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','ntq1otnnBMXIrw0','rMLSzu5LDW','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','y2XVC2u','BxvSDgLtzwXLy3q','ls1NBg9IpseUz2L0lYO','y29UDgv4Da','zxjYB3jnzxnZywDL','zxzLCNK','zgLYBMfTzq','zgf0zvjLC3rYAwn0','AwDUB3jL','C3rYAw5N','C2vZC2LVBKLK','C2vYDMvY','DhvYBMrVD24','CMvXDwvZDa','lI4U','BMv3vgv4Da','C2vYDMvYswq','lMjPBG','D29YA3nWywnLu3LTyM9S','CxvLC3rPB24','Bwf4qNL0zxm','BwfYA2rVD24','AxndB250zxH0','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','yw5ZAte2','DxnLCM5HBwu','y2HHCKnVzgvbDa','tNv2Aw4','Ag9ZDa','C3vIyxjYyxK','ue9tva','zxjYB3jZ','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','nJe0nJC5sfPTr1zP','C2vUzfjLCxvLC3q','yNvUlMXVy2TI','z29uB0LTCgXLBwvUDgf0Aw9U','y29UDgvUDhm','zgvSAw1PDgvY','zgvSzwDHDgvKlxj1BI0','B25LCNjVCG','zgLNzxn0','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','AxnjBNrLz2vY','zMLUza','C3rHDhvZvgv4Da','BgfUz18','zMLUywXnzxnZywDLvgv4Da','AxngAwXL','y21KlMv4zq','C2vUze5VDgLMAwnHDgLVBG','DhjPBuvUza','Dgv4Da','yMLUyxj5tMfTzq','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','zw52','B2f1DgG','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','CgXHAw50zxH0','ywrK','AxrLBxm','Aw50zwDLCG','C2HLBgXqyxrO','C2vYDMvYtMfTzq','C2HPzNq','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','C3rHCNrZv2L0Aa','zMXHDe1HCa','rMv0y2GGywjVCNrLzcbIEsb1C2vY','Dg9WAwm','C2vSzwn0Aw9UuMfUz2u','zgvMAw5PDgLVBG','C2TPBgXZ','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','u3rHCNrLzcbHz2vUDcbYDw4G','yMfZzw5HBwu','BgLZDgvU','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','C2LNBMfS','BM93','B25szwrPCMvJDa','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','yMLYDgH0Aw1L','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','ie9sia','B3b0Aw9UCW','rMLSzuvKAxq','v2vIrMv0y2G','ChjVy2vZCW','CgfZC3rOCM91z2G','yxjNDw1LBNriAw50','zMLUywXnzxnZywDL','xsb0CMfUC3bVCNqGzxjYB3i6','B2XKvgv4Da','ls1WCMvMAxG','ls1YzwDLEha','pc9ZExn0zw0TCMvTAw5Kzxi+','B3bLBMfPlxjLC3bVBNnLCY13CW','BwnFzwLK','ygbG','Aw1Hz2u','mtiZmde5mhbpyw5wrq','y29UC3rYDwn0B3i','Cgf0DgvYBIbPCYbYzxf1AxjLza','BwvZC2fNzq','yw5ZD2vYCW','BgvUz3rO','BNvT','zw51Bq','l3vZCI9IAw4VyMfZAa','zw5HyMXLza','igzYB20G','C3LTBgLUAW','B25Jzq','B3b0Aw9UywW','ls1JB2X1Bw4','y29TCgXLDgvK','cGOTls0kcG','ls1MAwXLCW','Dg91y2HgAwXL','Cg9W','ywDLBNrjza','Aw5PDgLHBgL6yxrPB24','AMf2yxnJCMLWDa','lNbUzW','y29UDgvUDa','y29TBwfUza','AxnbyNnVBhv0zq','yxv0Ag9YAxPHDgLVBL9JB2rL','zgvMyxvSDa','z2v0','ywn0AxzL','ugf0AcbUB3qGzM91BMq6ia','rM91BMqG','CNvUBMLUzW','ANnJB25MAwCUANnVBG','CMvZB2X2zq','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','Dg9Rzw5tDg9YywDLs2v5','Dw5RBM93BG','C3bHD25PBMC','Bwf0y2HLCW','twLJCM9ZB2z0','Bg93','y2XPzw50twv0ywrHDgfvCMW','y29UBMvJDgLVBG','Dg9Rzw5Z','zMLUzfjLzMvYzw5Jzxm','CMvTB3zL','BhnW','DxrTx21LzgL1Bq','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','q29TBwfUzcaN','Aw1Hz2uVANbLzW','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','ls0T','Dg9KB3ncEvnLC3nPB24','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','BgLUzvrLEhq','z29uB0rLzMLUAxrPB24','BMfTzq','mZqXnNLlCLLSsW','zgLYzwn0B3j5','CM9VDa','Dg9VBenHBgXjza','CMLWz3jLCa','z2XVyG','vw50AxrSzwq','zhj5uNvU','zgvUBY5QC29UyW','yNjVA2vU','z2v0vg9KB3m','Cgf0DgvYBG','ienHDxnLoIa','v0vcua','yNvUlMXVy2S','mZKYmZyYnen6s1f1wG','zxHPDa','lMPWzW','y2XLyxi','rMLSzsb3CML0DgvUigf0ia','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','C3bSAxq','y29TBwfUzhm','BM9Kzv9TB2r1BgvZ','zgvZy3jPChrPB24','BM90Awz5','t0zg','C2nYAxb0','y2XPzw50sw5MB3jTyxrPB24','BhmGlwXH','lw5i','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','Aw5KzxHpzG','CgfJA2fNzs5QC29U','CgfJA2fNzs1SB2nRlMPZB24','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','y2HHCMfJDgvY','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','uxvLC3rPB24G','lMDPzG','DxrTx2nVBNrLBNq','C3jJl3nOyxjLzc90ExbLCY50CW','cMbGya','y3jSzG','C3rHDhvZ','yMLVBwu','D3jPDgu','D2HPy2GGCMC','Dg9KB3m','AxneAxjLy3rVCNK','y291BNq','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','AhLKCMf0zu1LDge','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','AhjLzG','Aw5PDgLHBgL6zwq','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','D2fPDezVCKrPywDUB3n0AwnZ','Aw52ywXPzf90B2rVx2nVBNrLBNq','DhLWzq','CgfZC3DVCMq','zMLSzvbHDgG','BgfIzwW','DhLWzxnJCMLWDhjLywn0','C2v0','Dgf2AwX5','yxjNDw1LBNrZvgv4Da','C2L0ztO','DxrMoa','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','C2H1DgrVD25tDgfYDgvK','igj5DgvZicH0B3rHBdOG','Dg9VBhm','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','Bwf4','zMfPBgvK','DhLWzxnJCMLWDa','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','CMvSyxrPDMu','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','yxv0BW','Bwv0yq','lMXVzW','z29Vz2XLq3nLq3G','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','yxjNDw1LBNroyw1LCW','CgLWzq','lMPZEa','BgLZDfrVB2XZ','C3rHCNreAxi','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','z2L0qNjHBMnO','vw5HDxrOB3jPEMvKrxjYB3i','vg9KBYa','C2nVCgvZ','B2zM','BgL0zxjHBa','Aw1Hz2uVD2vICa','AgLNAa','BwnFy2LK','y2XPzw50CW','y3DK','qMfZAa','CMfUzg9T','Dhj1zwnVBg9Y','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','BgfZDeLUzgv4t2y','DhjHBNnMB3jTCW','lMPWzwC','Aw52ywXPzf9XDwvZDgLVBNm','z2v0u3rHDhm','qgjPB21LANmVyMLVBwu','B2XSyw1H','B3v0z29PBMDdywXSCW','B2C6DxbKyxrLzf90Aw1L','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','B3bLBMfPlxjLC3bVBNnLCW','BgLUzu51Bq','Cg5WBs1SB2nRlNLHBwW','A2LUza','ugfJA2fNzxm','rgLHz25VC3rPyW','A2v5','lMn0CW','ChvIBgLZAgvKqxq','zw5NAw5L','CMvZDwX0CW','y29Kzq','DgfZAW','D2LUmZi','Ag92zxi','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','uhjVz3jHBuzPBgvZkhG4nIK','DhnJB25MAwCUANnVBG','ls1OAwrKzw4','AxnfCNjVCG','vMLLD0zPBgu','u0HfteW','Aw1Hz2uVCg5N','C3jJl2v4yw1WBgvZl2rLBw8UDhm','CgvUzgLUzW','BxrPBwu','DgHPBMTPBMC','y29UDgvUDc10ExbL','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','AwzYyw1L','Dg9VBfjLC3vSDhm','DhjPBq','DgLTzw91De1Z','C3rYAw5NAwz5','Dhj1zq','zxHPDcbJB2rLia','mJq2veniEvrW','zNjVBq','CM91BMq','qMvHCMvYia','CMvMzxjLBMnLCW','AxntEw1IB2XPy0XPBMS','zg9TywLUCW','y2XPzw50','z2vUzxjHBa','CNnZ','zMLSzq','Dg90ywW','yMLVBwuUANnVBG','ntCWv0jzExfo','DxrTx3rLCM0','CxvLCNK','BMf2','y29Uy2f0','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','DhvWBgu','CMvNAw9U','Aw5qCM9NCMvZCW','B3rOzxi','BgLUzuvUza','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','mc4WlJa','rMv0y2GGDgLTzwqGB3v0','AxngAw5PDgu','zxH0BMfTzq','zgLHz25VC3rPy3m','zgLHz25VC3rPy3ngB3jgAwXL','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','B3bLBKzPBgvZ','rxjYB3i','zgvSzxrL','Aw5PDgLHBgL6zq','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','wZ0+nY04kcLD','Dgv4DerVy3vTzw50l2rPzenSB3nL'];_0x491c=function(){return _0x1e6127;};return _0x491c();}function assertFetchableUrl(_0x358f20){const _0x130dea={_0x586aea:0x5e3,_0x23819c:0x5cf,_0x374852:0x85,_0x1aad8c:0xf,_0x2935bf:0xc6,_0x4a1b8c:0x10d,_0x397bd5:0x13a,_0xe897e6:0x1b3,_0x3a263a:0x2dc,_0x55df59:0x4ac,_0x5e7329:0x527,_0x59cf8c:0x75,_0x4d20de:0x2,_0x544e53:0x1c,_0x39556a:0x173,_0x3933fb:0x197,_0x329fcf:0x709,_0x55c25f:0x569,_0x28ddce:0x50a},_0x3dbfb5={_0x412a20:0x1bb,_0x123812:0x76,_0x1638c3:0x157},_0x4d47a5={_0x54940a:0xbe,_0x537ae7:0xbf,_0x44d7cd:0x91};let _0x3cae92;try{_0x3cae92=new URL(_0x358f20);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x358f20});}if(_0x3cae92[_0x5c998f(0x4aa,_0x130dea._0x586aea,0x681,_0x130dea._0x23819c)]!==_0x43326d(-_0x130dea._0x374852,_0x130dea._0x1aad8c,-_0x130dea._0x2935bf,-_0x130dea._0x4a1b8c)&&_0x3cae92[_0x43326d(_0x130dea._0x397bd5,0x189,_0x130dea._0xe897e6,0x212)]!==_0x5c998f(_0x130dea._0x3a263a,0x40b,_0x130dea._0x55df59,0x443))throw new ToolExecutionError(_0x5c998f(_0x130dea._0x5e7329,0x52b,0x479,0x667),{'url':_0x358f20});function _0x5c998f(_0x1f61e7,_0x1fb57f,_0x542538,_0x557d80){return _0x37c1da(_0x1f61e7-_0x4d47a5._0x54940a,_0x1fb57f-_0x4d47a5._0x537ae7,_0x557d80,_0x1fb57f- -_0x4d47a5._0x44d7cd);}function _0x43326d(_0x40ceec,_0x392227,_0x557699,_0x131c77){return _0x38d42b(_0x40ceec-_0x3dbfb5._0x412a20,_0x557699- -_0x3dbfb5._0x123812,_0x131c77,_0x131c77-_0x3dbfb5._0x1638c3);}if(_0x3cae92[_0x43326d(-_0x130dea._0x59cf8c,-_0x130dea._0x4d20de,_0x130dea._0x544e53,0x100)]||_0x3cae92[_0x43326d(0x8e,_0x130dea._0x39556a,0xe2,_0x130dea._0x3933fb)])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x3cae92[_0x5c998f(_0x130dea._0x329fcf,0x5e3,_0x130dea._0x55c25f,0x5ca)]+'//'+_0x3cae92[_0x5c998f(_0x130dea._0x28ddce,0x44f,0x37d,0x54e)]+_0x3cae92['pathname']});return _0x3cae92;}function createTimeoutSignal(_0x2b534a,_0x3b7640){const _0x8702f1={_0x164b62:0xc6,_0x1e4095:0x4d,_0x2a37cd:0xfd,_0x9d7d07:0x98,_0x58fbde:0x7f,_0x2ea815:0x138,_0xeac11d:0xbb,_0x163160:0x36,_0x34ac68:0x13c,_0x506dfb:0x11,_0x34c4c3:0x28,_0xad0af9:0x22e},_0xe1e181={_0x3c13b5:0x12e,_0x516c8c:0x273,_0x4a5a65:0x234},_0x52ef1c={_0x20c547:0x10c,_0x45a835:0x120},_0x8f4b1e={_0x3b39e9:0x1b8,_0x24ac62:0x73};function _0x3b2d83(_0x3f1d16,_0x38a208,_0x59b8f6,_0x45de0b){return _0x38d42b(_0x3f1d16-_0x8f4b1e._0x3b39e9,_0x3f1d16-_0x8f4b1e._0x24ac62,_0x59b8f6,_0x45de0b-0x12c);}function _0x1c6a79(_0x118633,_0x35609d,_0x1a671b,_0x4eebc8){return _0x38d42b(_0x118633-_0x52ef1c._0x20c547,_0x118633- -_0x52ef1c._0x45a835,_0x4eebc8,_0x4eebc8-0x173);}const _0x496b5e=new AbortController(),_0x357149=setTimeout(()=>_0x496b5e[_0x1c6a79(-0x114,-0x204,-0x21d,-0x131)](new Error(_0x1c6a79(0xb0,0x101,0x149,0x1b8))),_0x3b7640),_0x1d9fef=()=>_0x496b5e[_0x3b2d83(0x7f,-0x77,-0x4c,0x188)](_0x2b534a[_0x1c6a79(0x11a,0x4d,0x84,0x1bf)]);return _0x2b534a[_0x3b2d83(0xbe,0x1a1,_0x8702f1._0x164b62,-_0x8702f1._0x1e4095)]?_0x496b5e['abort'](_0x2b534a[_0x3b2d83(0x2ad,0x3d3,0x289,0x270)]):_0x2b534a[_0x1c6a79(-_0x8702f1._0x2a37cd,-0x1f7,-0xee,-_0x8702f1._0x9d7d07)](_0x3b2d83(_0x8702f1._0x58fbde,_0x8702f1._0x2ea815,_0x8702f1._0xeac11d,-_0x8702f1._0x163160),_0x1d9fef,{'once':!![]}),{'signal':_0x496b5e[_0x3b2d83(_0x8702f1._0x34ac68,-_0x8702f1._0x506dfb,_0x8702f1._0x34c4c3,_0x8702f1._0xad0af9)],'cleanup':()=>{const _0x2a13dc={_0x441a6e:0x119,_0x22c090:0x169};clearTimeout(_0x357149);function _0x4ac1e7(_0x11f493,_0x50d49a,_0x53657f,_0x18c1ae){return _0x1c6a79(_0x50d49a-0x4b,_0x50d49a-_0x2a13dc._0x441a6e,_0x53657f-_0x2a13dc._0x22c090,_0x53657f);}_0x2b534a[_0x4ac1e7(_0xe1e181._0x3c13b5,0x151,_0xe1e181._0x516c8c,_0xe1e181._0x4a5a65)]('abort',_0x1d9fef);}};}function createWebFetchTool(_0x15e1a7={}){const _0x44e337={_0x3eaf4b:0x128,_0x5852f6:0x133,_0x5ec765:0x15b,_0x28d6f0:0x385,_0x5c6cb1:0x150,_0x4c8d6a:0x195,_0x54c73e:0x155,_0x5a7b9e:0x16c,_0x2a9175:0x22,_0x41b405:0x39,_0x2793db:0x268,_0x3acea4:0x251,_0x42abcd:0x147,_0x507b35:0x19c,_0x5c65e8:0x1f,_0x5c97fb:0x150,_0x57a7c2:0x27f,_0x3ea776:0x1af,_0x3bdaff:0x1c8,_0x389d52:0x14b,_0x4df42c:0xe5,_0x5a5951:0xa1,_0x789c8d:0x10b},_0x34d078={_0x4f87e3:0x147,_0x3ffcba:0x3e,_0x204c6d:0x1a8,_0x3064d5:0x38,_0x31982b:0x4a,_0x228b1a:0xef,_0x55f1a5:0xa6,_0xf7e043:0x2be,_0x2371ea:0x3ff,_0x5ceba5:0x57,_0x10d2f8:0x1d,_0x53b004:0xbf,_0x4c61f0:0x7c,_0x497a9e:0x10b,_0x214893:0x27,_0x91cd94:0x124,_0x4f4cfd:0x431,_0x182b82:0x475,_0x307c9d:0x453,_0x580a04:0x3b3,_0x3b8d19:0x10a,_0x3b5f8c:0x209,_0x2fde3a:0x152,_0x49e014:0x3a3,_0x32d5c5:0x33b,_0x591780:0x4d2,_0x281819:0x454,_0xe8bb5c:0x383,_0x3e78f1:0x470,_0xa8dcf6:0x3e5,_0x596e8f:0x3ee,_0x5ca006:0x1bb,_0x5d61c5:0x2ba,_0x1831e5:0x32c,_0xbf7e4b:0x9e,_0x3603e4:0x1be,_0x415e79:0x3f,_0x475703:0xd3,_0x595236:0x593,_0x4918d1:0x491,_0x5276ca:0x522,_0x3733c5:0x4f6,_0x316724:0x456,_0x4dbf45:0x463,_0x4fe743:0x390,_0x4bf6ac:0x4fb,_0x5bf410:0x3f8,_0x150419:0x2a5,_0x4ec515:0x51},_0x35ffb2={_0x5c7e5c:0x5d7},_0x8dd3b3={_0x5e872c:0x5d8},_0x4b4622={_0x1e1937:0xd2,_0xbbc9f6:0x717},_0x531ecf=_0x15e1a7['name']??_0x3ce34f(-0x1fa,-0x123,-_0x44e337._0x3eaf4b,-_0x44e337._0x5852f6);function _0x3ce34f(_0x4af68b,_0x120330,_0x33a471,_0x2e5b96){return _0x37c1da(_0x4af68b-_0x4b4622._0x1e1937,_0x120330-0x79,_0x33a471,_0x4af68b- -_0x4b4622._0xbbc9f6);}const _0x38a57a=_0x15e1a7[_0x383340(_0x44e337._0x5ec765,-0xc3,0x25,0x3)]??DEFAULT_TIMEOUT_MS2;function _0x383340(_0x84f45,_0x261722,_0x18cd67,_0x370f13){return _0x37c1da(_0x84f45-0x1af,_0x261722-0x1cb,_0x261722,_0x18cd67- -_0x8dd3b3._0x5e872c);}const _0xea5aae=new _0x194c62({'headingStyle':_0x3ce34f(-0x2a1,-0x1f5,-_0x44e337._0x28d6f0,-0x243),'codeBlockStyle':'fenced','bulletListMarker':'-'});return _0xea5aae[_0x3ce34f(-0x1bd,-0x24a,-0xc3,-_0x44e337._0x5c6cb1)]([_0x3ce34f(-_0x44e337._0x4c8d6a,-0x84,-_0x44e337._0x54c73e,-0x155),'style',_0x3ce34f(-0x2b0,-0x231,-0x1e9,-0x1e6),_0x383340(_0x44e337._0x5a7b9e,-0x29,_0x44e337._0x2a9175,-0x9c),_0x383340(0x167,-0x82,_0x44e337._0x41b405,0xd6),_0x3ce34f(-_0x44e337._0x2793db,-_0x44e337._0x3acea4,-_0x44e337._0x42abcd,-_0x44e337._0x507b35),_0x383340(-_0x44e337._0x5c65e8,-0x277,-_0x44e337._0x5c97fb,-0x1bc),_0x3ce34f(-_0x44e337._0x57a7c2,-0x1c6,-0x1b3,-_0x44e337._0x3ea776)]),defineTool({'name':_0x531ecf,'description':_0x3ce34f(-_0x44e337._0x3bdaff,-_0x44e337._0x389d52,-_0x44e337._0x4df42c,-0x204),'inputSchema':{'type':'object','properties':{'description':{'type':'string'},'url':{'type':_0x383340(-0x113,-_0x44e337._0x5a5951,-_0x44e337._0x789c8d,-0x1f6)}},'required':[_0x383340(-0x50,-0x80,-0x14c,-0x1a6)]},async *'execute'(_0x587477,_0x2ed086){const _0x20cd72={_0x30929e:0x3c,_0x3f2c9e:0x140},_0x5b2741=assertFetchableUrl(_0x587477[_0x11f729(-0x61,-_0x34d078._0x4f87e3,-_0x34d078._0x3ffcba,-_0x34d078._0x204c6d)])[_0x11f729(-_0x34d078._0x3064d5,_0x34d078._0x31982b,_0x34d078._0x228b1a,_0x34d078._0x55f1a5)]();if(_0x2ed086[_0x472e5b(0x3a9,_0x34d078._0xf7e043,_0x34d078._0x2371ea,0x3d4)][_0x11f729(-_0x34d078._0x5ceba5,0x70,0xa7,-0x10d)])throw new ToolExecutionError(_0x11f729(_0x34d078._0x10d2f8,_0x34d078._0x53b004,_0x34d078._0x4c61f0,_0x34d078._0x497a9e),{'url':_0x5b2741});const _0x5918d4=createTimeoutSignal(_0x2ed086[_0x11f729(_0x34d078._0x214893,-0xee,-_0x34d078._0x91cd94,0x26)],_0x38a57a);let _0x2b8f50='';function _0x11f729(_0x3686fb,_0x58309c,_0x4425a6,_0x4010fc){return _0x3ce34f(_0x3686fb-0x22a,_0x58309c-_0x20cd72._0x30929e,_0x4010fc,_0x4010fc-_0x20cd72._0x3f2c9e);}let _0xe290d4=0x0,_0x144705;try{const _0x53dece=await fetch(_0x5b2741,{'headers':{'User-Agent':USER_AGENT},'signal':_0x5918d4['signal']});if(!_0x53dece['ok'])throw new ToolExecutionError(_0x11f729(-0x8e,-0x19e,-0x15a,-0x98)+_0x53dece[_0x472e5b(_0x34d078._0x4f4cfd,0x562,_0x34d078._0x182b82,_0x34d078._0x307c9d)]+'\x20'+_0x53dece[_0x472e5b(0x3bf,0x344,0x42a,_0x34d078._0x580a04)],{'url':_0x5b2741,'statusCode':_0x53dece['status']});_0x2b8f50=_0x53dece['headers']['get'](_0x11f729(_0x34d078._0x3b8d19,_0x34d078._0x3b5f8c,0x105,_0x34d078._0x2fde3a))??'',_0xe290d4=_0x53dece[_0x472e5b(_0x34d078._0x49e014,_0x34d078._0x32d5c5,_0x34d078._0x591780,0x453)],_0x144705=await _0x53dece[_0x472e5b(_0x34d078._0x281819,0x30f,0x4ff,0x3ba)]();}catch(_0x5d1c05){if(_0x5d1c05 instanceof ToolExecutionError)throw _0x5d1c05;const _0x1532fb=_0x5d1c05 instanceof Error?_0x5d1c05[_0x472e5b(_0x34d078._0xe8bb5c,_0x34d078._0x3e78f1,_0x34d078._0xa8dcf6,_0x34d078._0x596e8f)]:String(_0x5d1c05);throw new ToolExecutionError(_0x1532fb,{'url':_0x5b2741});}finally{_0x5918d4['cleanup']();}const _0x3738e6=new Date()['toISOString']();let _0x3c6ff2,_0xd2d967;function _0x472e5b(_0x170a75,_0x45e794,_0x52cacf,_0x2aedbd){return _0x3ce34f(_0x2aedbd-_0x35ffb2._0x5c7e5c,_0x45e794-0x97,_0x45e794,_0x2aedbd-0x12d);}if(_0x2b8f50[_0x472e5b(_0x34d078._0xe8bb5c,_0x34d078._0x5ca006,0x2f0,_0x34d078._0x5d61c5)]('application/json'))_0x3c6ff2='```json\x0a'+_0x144705+_0x472e5b(_0x34d078._0x1831e5,0x58d,0x333,0x451),_0xd2d967=_0x11f729(-0xf6,-_0x34d078._0xbf7e4b,-0x73,-0x32);else _0x2b8f50[_0x11f729(-0xf3,-_0x34d078._0x3603e4,_0x34d078._0x415e79,-_0x34d078._0x475703)](_0x472e5b(_0x34d078._0x595236,_0x34d078._0x4918d1,_0x34d078._0x5276ca,_0x34d078._0x3733c5))?(_0x3c6ff2=_0xea5aae[_0x472e5b(_0x34d078._0x316724,0x2f5,_0x34d078._0x4dbf45,_0x34d078._0x4fe743)](_0x144705),_0xd2d967='markdown'):(_0x3c6ff2=_0x144705,_0xd2d967=_0x472e5b(_0x34d078._0x4bf6ac,_0x34d078._0x5bf410,_0x34d078._0x150419,0x3ba));return yield createToolOutput(_0x3c6ff2,{'url':_0x5b2741,'contentType':_0x2b8f50,'statusCode':_0xe290d4,'format':_0xd2d967,'size':_0x144705[_0x11f729(0x43,0xa8,-0x3a,_0x34d078._0x4ec515)],'fetchedAt':_0x3738e6}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2='Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20Chrome/123.0.0.0\x20Safari/537.36\x20NuvinBot/1.0';function normalizeUrl(_0x11a773){const _0x16d453={_0x3f5d9d:0x4be,_0x3d5454:0x35d,_0x1e822d:0x5e9,_0xd20ca7:0x797,_0x3b91e0:0x6c8,_0x479c25:0x69c,_0x16430b:0x754,_0x114d72:0x57c,_0x186dea:0x5af,_0x334638:0x535,_0x4553ea:0x67a,_0x124591:0x6e3,_0x3801a8:0x733,_0x1fcd3c:0x489,_0x4ec6d5:0x6bb,_0x44b1e8:0x517,_0x3803dc:0x4a6,_0x448316:0x521,_0x52cc69:0x575,_0x2febb6:0x393,_0x23a1a6:0x372,_0x2ace21:0x44b},_0xdc4c77={_0x293244:0xc8,_0x31f998:0x42};function _0x7ce55e(_0x5b78be,_0x33330a,_0x120217,_0x466d2e){return _0x38d42b(_0x5b78be-_0xdc4c77._0x293244,_0x120217-0x4d8,_0x466d2e,_0x466d2e-_0xdc4c77._0x31f998);}function _0x156e25(_0x26df24,_0x4dfc04,_0x419867,_0x181f01){return _0x38d42b(_0x26df24-0x1ca,_0x419867-0x308,_0x4dfc04,_0x181f01-0x123);}try{const _0x392e3a=new URL(_0x11a773);for(const _0x58b384 of[_0x7ce55e(0x5c1,_0x16d453._0x3f5d9d,0x495,_0x16d453._0x3d5454),_0x7ce55e(0x6e5,0x4cd,_0x16d453._0x1e822d,0x72e),_0x7ce55e(0x669,_0x16d453._0xd20ca7,_0x16d453._0x3b91e0,0x57f),_0x7ce55e(_0x16d453._0x479c25,0x650,0x69c,_0x16d453._0x16430b),_0x7ce55e(_0x16d453._0x114d72,_0x16d453._0x186dea,0x61c,_0x16d453._0x334638),'gclid',_0x7ce55e(_0x16d453._0x4553ea,0x5bd,_0x16d453._0x124591,_0x16d453._0x3801a8),_0x7ce55e(0x666,_0x16d453._0xd20ca7,0x658,0x595),_0x7ce55e(0x55d,_0x16d453._0x1fcd3c,0x5b5,_0x16d453._0x4ec6d5)]){_0x392e3a[_0x7ce55e(_0x16d453._0x44b1e8,_0x16d453._0x3803dc,0x516,0x5d7)][_0x156e25(0x5ee,_0x16d453._0x448316,0x4e0,_0x16d453._0x52cc69)](_0x58b384);}return _0x392e3a[_0x156e25(_0x16d453._0x2febb6,0x2b4,_0x16d453._0x23a1a6,_0x16d453._0x2ace21)]();}catch{return _0x11a773;}}function cseDateRestrict(_0x790eef){const _0x166e29={_0x25bd6e:0x58c,_0x51d7a9:0x59e,_0x4fbd34:0x4d4,_0x1d3f3c:0x6fb,_0x480b82:0x6d4,_0x4cc3b9:0x592,_0x565a44:0x5c8},_0x10d3db={_0x187459:0x54,_0x550e31:0x426,_0x2fdb46:0x7b};if(_0x790eef<=0x0)return void 0x0;function _0x202ca9(_0x58f1bf,_0x23668b,_0x78d84a,_0x3b2b0c){return _0x38d42b(_0x58f1bf-_0x10d3db._0x187459,_0x58f1bf-_0x10d3db._0x550e31,_0x23668b,_0x3b2b0c-_0x10d3db._0x2fdb46);}if(_0x790eef<=0x1e)return'd'+Math[_0x202ca9(_0x166e29._0x25bd6e,_0x166e29._0x51d7a9,0x446,_0x166e29._0x4fbd34)](0x1,Math[_0x202ca9(0x607,0x5a5,_0x166e29._0x1d3f3c,_0x166e29._0x480b82)](_0x790eef));if(_0x790eef<=0x16d)return'm'+Math[_0x202ca9(0x659,_0x166e29._0x4cc3b9,0x5ff,_0x166e29._0x565a44)](_0x790eef/0x1e);function _0x220f91(_0x15da27,_0x319967,_0x290ff1,_0x58be68){return _0x38d42b(_0x15da27-0xca,_0x290ff1- -0xaf,_0x319967,_0x58be68-0x1b6);}return'y'+Math['ceil'](_0x790eef/0x16d);}function addSiteFilters(_0x5725c8,_0x478450){const _0x191e45={_0x3d9ce6:0x47c,_0x26916e:0x7b2,_0x48a581:0x5c8,_0x987d7e:0x57c,_0x4ea136:0x539,_0x21b25a:0x580,_0x3c7a97:0x6c2,_0x3fd996:0x4a4,_0x1d9e8a:0x595,_0x487fc9:0x548,_0x482f34:0x4fc},_0x1e8df1={_0x1784ea:0xf5},_0x4bcb07={_0x33471b:0x18,_0xde8a74:0x4c6,_0x2cf035:0x181};if(_0x478450[_0x5994a8(_0x191e45._0x3d9ce6,0x4b2,0x4e4,0x3d4)]===0x0)return _0x5725c8[_0x5b0e0b(0x774,0x677,0x596,_0x191e45._0x26916e)]();function _0x5b0e0b(_0x1adb82,_0x2e1c99,_0x17754c,_0x2271cd){return _0x38d42b(_0x1adb82-_0x4bcb07._0x33471b,_0x2e1c99-_0x4bcb07._0xde8a74,_0x1adb82,_0x2271cd-_0x4bcb07._0x2cf035);}function _0x5994a8(_0x1c20e2,_0x168bfb,_0x246caf,_0x289c5b){return _0x38d42b(_0x1c20e2-0x118,_0x1c20e2-0x397,_0x289c5b,_0x289c5b-_0x1e8df1._0x1784ea);}return(_0x5725c8+'\x20('+_0x478450[_0x5994a8(_0x191e45._0x48a581,_0x191e45._0x987d7e,0x4fd,_0x191e45._0x4ea136)](_0x1406a7=>_0x5994a8(0x4f6,0x5b8,0x564,0x5fa)+_0x1406a7)[_0x5994a8(_0x191e45._0x21b25a,0x4e4,0x687,_0x191e45._0x3c7a97)](_0x5b0e0b(_0x191e45._0x3fd996,_0x191e45._0x1d9e8a,0x48e,0x459))+')')[_0x5994a8(_0x191e45._0x487fc9,0x56d,_0x191e45._0x482f34,0x561)]();}function normalizeType(_0x56c786){const _0x4e3f74={_0x209aa6:0x2e8,_0x4ee603:0x3dd,_0x2188be:0x2c3,_0x49ef45:0x500,_0x3b79f5:0x3ea,_0xf51530:0x4a6,_0x4d1385:0x5e9},_0x12a378={_0x28f671:0x191,_0x1e2359:0x470},_0x4fe8f2={_0x1d0482:0xfe,_0x4875d4:0xbe};function _0x291b54(_0x445fc8,_0x88159e,_0x10cc7c,_0x77510f){return _0x38d42b(_0x445fc8-_0x4fe8f2._0x1d0482,_0x88159e-0x3a7,_0x10cc7c,_0x77510f-_0x4fe8f2._0x4875d4);}function _0x205436(_0x48e4a0,_0x5974e4,_0x3ad935,_0x2525c2){return _0x38d42b(_0x48e4a0-_0x12a378._0x28f671,_0x2525c2-_0x12a378._0x1e2359,_0x3ad935,_0x2525c2-0x7b);}return _0x56c786===_0x291b54(_0x4e3f74._0x209aa6,_0x4e3f74._0x4ee603,_0x4e3f74._0x2188be,_0x4e3f74._0x49ef45)?_0x205436(0x390,0x5b2,_0x4e3f74._0x3b79f5,_0x4e3f74._0xf51530):_0x291b54(0x596,_0x4e3f74._0x4d1385,0x71a,0x69a);}async function fetchJson(_0x20d663,_0x44abac,_0x2bfad0){const _0x4c12a9={_0x26da70:0x379,_0x21c257:0x345,_0x50c866:0x3d4,_0x362e81:0x461,_0x4da1f4:0x50f,_0x27eacb:0x5da,_0x422228:0x647,_0x59f244:0x393,_0x362c3c:0x567,_0xad785d:0x476,_0x178897:0x552,_0x2600d3:0x44c,_0x2eb830:0x562,_0xa82be5:0x56e,_0x23e70b:0x4c5,_0x135c8d:0x47c,_0x3600b2:0x5ee,_0x39f268:0x68b,_0x3dba62:0x7ac,_0x3e41a7:0x59b,_0x10e6c9:0x57a,_0x183e89:0x521,_0x4c1c81:0x6f5,_0x2b9fb2:0x4f3,_0xd35bed:0x689,_0x26f16d:0x28f,_0x570d39:0x286,_0x1d7e4d:0x326,_0x54e3c1:0x267},_0x2c8fe5={_0x5674f7:0x61,_0x133e9f:0x119},_0x290e1a={_0x291b3b:0x149,_0x15455f:0x37a,_0x4fac1e:0xa5};function _0x36991d(_0x2d2068,_0x266647,_0x47fc0a,_0x3ed119){return _0x38d42b(_0x2d2068-_0x290e1a._0x291b3b,_0x2d2068-_0x290e1a._0x15455f,_0x266647,_0x3ed119-_0x290e1a._0x4fac1e);}const _0x2e374f=await fetch(_0x20d663,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x36991d(0x38a,_0x4c12a9._0x26da70,_0x4c12a9._0x21c257,_0x4c12a9._0x50c866),..._0x2bfad0?.[_0x1aeb56(_0x4c12a9._0x362e81,0x4a2,_0x4c12a9._0x4da1f4,_0x4c12a9._0x27eacb)]},'signal':_0x44abac,..._0x2bfad0});if(!_0x2e374f['ok']){let _0x13a5a4,_0xd56846;try{_0x13a5a4=await _0x2e374f[_0x1aeb56(_0x4c12a9._0x422228,0x546,0x531,0x667)]();const _0x5c42ed=JSON[_0x36991d(0x3ba,_0x4c12a9._0x59f244,0x481,0x3a3)](_0x13a5a4),_0x19ca60=typeof _0x5c42ed[_0x36991d(_0x4c12a9._0x362c3c,0x5a9,_0x4c12a9._0xad785d,0x6a5)]==='object'?_0x5c42ed[_0x36991d(0x567,_0x4c12a9._0x178897,_0x4c12a9._0x2600d3,_0x4c12a9._0x2eb830)][_0x36991d(_0x4c12a9._0xa82be5,_0x4c12a9._0x23e70b,0x501,_0x4c12a9._0x135c8d)]:void 0x0;_0xd56846=_0x5c42ed[_0x1aeb56(_0x4c12a9._0x3600b2,_0x4c12a9._0x39f268,0x691,_0x4c12a9._0x3dba62)]?.[_0x1aeb56(_0x4c12a9._0x3e41a7,_0x4c12a9._0x10e6c9,_0x4c12a9._0x183e89,0x6a8)]??_0x5c42ed[_0x1aeb56(0x758,0x68b,0x61d,_0x4c12a9._0x4c1c81)]?.[_0x36991d(0x412,0x398,_0x4c12a9._0x2b9fb2,0x521)]?.[0x0]?.['message']??_0x19ca60;}catch{}const _0x41039f=_0xd56846?'HTTP\x20'+_0x2e374f[_0x1aeb56(_0x4c12a9._0xd35bed,0x5df,0x64c,0x494)]+':\x20'+_0xd56846:_0x36991d(0x38e,_0x4c12a9._0x26f16d,_0x4c12a9._0x570d39,0x48f)+_0x2e374f['status']+'\x20'+_0x2e374f['statusText'];throw new ToolExecutionError(_0x41039f,{'statusCode':_0x2e374f['status'],..._0x13a5a4?{'body':_0x13a5a4}:{}});}function _0x1aeb56(_0x4b4d76,_0x1c42fe,_0x4a4d60,_0x10d51c){return _0x38d42b(_0x4b4d76-_0x2c8fe5._0x5674f7,_0x1c42fe-0x497,_0x4b4d76,_0x10d51c-_0x2c8fe5._0x133e9f);}return await _0x2e374f[_0x36991d(_0x4c12a9._0x1d7e4d,0x34e,_0x4c12a9._0x54e3c1,0x3dd)]();}async function hydrateResults(_0x46e2a1,_0x4f9ca8,_0x257549){const _0x342fb8={_0x2b470f:0x6d2,_0x3a6f3b:0x5dc,_0x8ce1a6:0x582,_0x2a38e2:0x567,_0x4f088a:0x45c,_0x97504c:0x566,_0x1da5e0:0x47c,_0xeec012:0x66c,_0x1c543a:0x58d,_0x131f94:0x47a},_0x21b33d={_0x1fb9db:0x35c},_0x1c50b9={_0x19e8c7:0x185},_0x42c43e={_0x25c9fc:0x6a,_0x50961a:0x7b,_0x561429:0x13c,_0x53f5cc:0x107,_0x4214a4:0x55,_0x56f0f2:0xd0,_0xa9ea93:0x1eb,_0x426430:0x16b,_0x1d45a6:0x242,_0xf939d1:0x24e,_0x2a620d:0xf1,_0x286310:0xae,_0x4b1ecd:0x267,_0x31f730:0xce,_0x10ae86:0xeb,_0x75c28e:0x2a3,_0xee2b07:0x19d,_0x518e21:0x5c,_0x3cf853:0x84,_0x4c1e4c:0xc3,_0x111eae:0x262,_0x3d9ee1:0x2d,_0x2a0176:0x49,_0x2a9af6:0x14e,_0x4bef7c:0x12e,_0x1bcc04:0x63,_0x58c76c:0x9,_0x5be20e:0x1d2,_0x2c88c8:0x182,_0x2d57e5:0x1a,_0x21571b:0x10c,_0x214192:0x49,_0x37ec95:0x15a,_0x3f92d1:0x136,_0x2c32d9:0x210,_0x4cbcf3:0x5e,_0x2b22a8:0x1ad,_0x50ae99:0x255,_0x2fba48:0x23b,_0xd501c2:0x74,_0x1837ce:0x2e,_0x476394:0x9e,_0x3ef2cd:0xb0,_0x1e6f80:0x31,_0x42c87b:0x5b,_0x568e34:0xc0,_0x3bb2f6:0x8c,_0x5eca74:0x17e,_0x4e6711:0x2fe,_0x6688b1:0x1b3},_0x17d058=await Promise[_0x1588eb(_0x342fb8._0x2b470f,_0x342fb8._0x3a6f3b,_0x342fb8._0x8ce1a6,0x5ad)](_0x46e2a1[_0x2aa521(0x566,0x545,_0x342fb8._0x2a38e2,_0x342fb8._0x4f088a)](0x0,0xa)['map'](async _0x6a21d1=>{const _0x113125={_0x1290bd:0x21},_0x146986={_0x5e5d65:0x7f};function _0x52278e(_0x15c142,_0x2be924,_0x2abc2c,_0x4ce0fb){return _0x2aa521(_0x15c142- -0x40b,_0x4ce0fb,_0x2abc2c-0xfe,_0x4ce0fb-_0x146986._0x5e5d65);}function _0x4435d4(_0x2df7e2,_0x506441,_0x412eca,_0x46000e){return _0x1588eb(_0x412eca,_0x506441- -0x5ba,_0x412eca-_0x113125._0x1290bd,_0x46000e-0x148);}try{const _0x1c5ed5=await fetch(_0x6a21d1[_0x52278e(-0x6e,_0x42c43e._0x25c9fc,-0xbf,-_0x42c43e._0x50961a)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x4f9ca8,'Accept':_0x52278e(_0x42c43e._0x561429,_0x42c43e._0x53f5cc,0x15,_0x42c43e._0x4214a4)},'signal':_0x257549});if(!_0x1c5ed5['ok'])return _0x6a21d1;const _0x22a32e=await _0x1c5ed5[_0x4435d4(-0xbd,-0x15e,-_0x42c43e._0x56f0f2,-_0x42c43e._0xa9ea93)](),_0x31151d=load(_0x22a32e),_0x4f551a=_0x31151d(_0x4435d4(-_0x42c43e._0x426430,-0x195,-_0x42c43e._0x1d45a6,-_0x42c43e._0xf939d1))[_0x4435d4(_0x42c43e._0x2a620d,-0x2d,_0x42c43e._0x286310,0xc7)]('content')||_0x31151d(_0x52278e(0x16b,0xd8,_0x42c43e._0x4b1ecd,_0x42c43e._0x31f730))[_0x52278e(-_0x42c43e._0x10ae86,-0x6d,-0x105,0x1c)]()[_0x4435d4(-_0x42c43e._0x75c28e,-0x15e,-0x1df,-0xa7)]()[_0x4435d4(-_0x42c43e._0xee2b07,-_0x42c43e._0x518e21,_0x42c43e._0x3cf853,0x7)](),_0x13fa6f=_0x31151d(_0x4435d4(-0x38,-0x141,-_0x42c43e._0x4c1e4c,-_0x42c43e._0x111eae))[_0x4435d4(0x25,-_0x42c43e._0x3d9ee1,-0xbe,-0x169)](_0x52278e(_0x42c43e._0x2a0176,_0x42c43e._0x2a620d,_0x42c43e._0x2a9af6,_0x42c43e._0x4bef7c))||_0x31151d(_0x52278e(_0x42c43e._0x1bcc04,-0x2d,0x163,-0x3b))['attr'](_0x4435d4(-_0x42c43e._0x58c76c,-0x115,-_0x42c43e._0x5be20e,-_0x42c43e._0x2c88c8))||_0x6a21d1[_0x4435d4(-0x103,0xa,0x11c,0x91)],_0x70cfc0=_0x31151d(_0x52278e(-0x99,-0x126,-0x1df,_0x42c43e._0x2d57e5))[_0x52278e(0x131,0x17d,0x185,_0x42c43e._0x21571b)](_0x52278e(_0x42c43e._0x214192,_0x42c43e._0x37ec95,_0x42c43e._0x3f92d1,0x47))||_0x31151d(_0x52278e(-0xfc,-0x22a,-_0x42c43e._0x2c32d9,-_0x42c43e._0x4cbcf3))[_0x52278e(0x131,0xf5,_0x42c43e._0x2b22a8,0x265)](_0x4435d4(-0x257,-_0x42c43e._0x50ae99,-0x2b5,-_0x42c43e._0x2fba48))||_0x6a21d1[_0x4435d4(0x64,-_0x42c43e._0xd501c2,_0x42c43e._0x1837ce,-_0x42c43e._0x476394)],_0x1adcd0=_0x31151d(_0x52278e(-0x7c,_0x42c43e._0x3ef2cd,_0x42c43e._0x1e6f80,-_0x42c43e._0x42c87b))[_0x4435d4(_0x42c43e._0x568e34,-0x2d,0xdb,-0x105)](_0x4435d4(-_0x42c43e._0x3bb2f6,-0xbb,-0x114,-0x28));return{..._0x6a21d1,'title':_0x4f551a||_0x6a21d1['title'],'snippet':_0x13fa6f,'url':_0x1adcd0?normalizeUrl(new URL(_0x1adcd0,_0x6a21d1[_0x4435d4(-_0x42c43e._0x5eca74,-0x1cc,-0x27b,-0x1e1)])['toString']()):_0x6a21d1[_0x4435d4(-_0x42c43e._0x4e6711,-0x1cc,-_0x42c43e._0x6688b1,-0x19d)],'publishedAt':_0x70cfc0};}catch{return _0x6a21d1;}}));function _0x1588eb(_0x2bfcca,_0x382f7f,_0x240d0b,_0x1b6ba2){return _0x38d42b(_0x2bfcca-0x150,_0x382f7f-0x3ad,_0x2bfcca,_0x1b6ba2-_0x1c50b9._0x19e8c7);}const _0x16f330=new Map(_0x46e2a1[_0x2aa521(_0x342fb8._0x97504c,0x5a8,_0x342fb8._0x1da5e0,_0x342fb8._0xeec012)](0x0,0xa)[_0x2aa521(_0x342fb8._0x1c543a,0x6bd,_0x342fb8._0x131f94,0x510)]((_0x5c429b,_0x43092e)=>[_0x5c429b['url'],_0x17d058[_0x43092e]]));function _0x2aa521(_0x1bf414,_0x15fd92,_0x5d6502,_0x363d43){return _0x38d42b(_0x1bf414-0x161,_0x1bf414-_0x21b33d._0x1fb9db,_0x15fd92,_0x363d43-0xb5);}return _0x46e2a1['map'](_0x4e0137=>_0x16f330[_0x1588eb(0x476,0x4aa,0x56b,0x3c1)](_0x4e0137[_0x2aa521(0x39d,0x30d,0x353,0x2e4)])??_0x4e0137);}function formatResults(_0x160ddc){const _0x5965d7={_0x114805:0x15f,_0x566f17:0x5f,_0xc0f632:0x4b,_0x609fc5:0x47,_0x1d3239:0x169},_0xd3ceb={_0x31a7f9:0x4d6,_0x3ab8a0:0x3c0,_0x1503f5:0x4fb,_0xcc6241:0x582,_0x293292:0x5f6,_0x2ae159:0x4ce,_0x1b1d79:0x3a9,_0xf9d31e:0x565,_0x1c1925:0x581,_0x423820:0x4a8,_0x46e9a4:0x398,_0x373091:0x4c7,_0x14bd05:0x656,_0x1fcd40:0x57f,_0x3fb70f:0x4cf,_0x11d330:0x626,_0x72fa30:0x507,_0x149b58:0x2c4,_0x2820d4:0x3ce,_0x2ec53a:0x32f,_0x1e0925:0x440,_0x42b228:0x5db,_0x47cfb7:0x551,_0x448183:0x61b},_0x2b6ccd={_0x24ebd7:0x102},_0x3b2a44={_0x3d43e2:0xb8,_0x280860:0x17c};function _0x4937ef(_0x5a82a8,_0x49e4d0,_0x171082,_0x3fcdcf){return _0x37c1da(_0x5a82a8-_0x3b2a44._0x3d43e2,_0x49e4d0-_0x3b2a44._0x280860,_0x49e4d0,_0x3fcdcf- -0x1ed);}if(_0x160ddc[_0x3f70c7(-_0x5965d7._0x114805,-_0x5965d7._0x566f17,-_0x5965d7._0xc0f632,-_0x5965d7._0x609fc5)]===0x0)return'No\x20results\x20found.';function _0x3f70c7(_0x2bcfaf,_0x5a3dd9,_0x193e8f,_0x17feae){return _0x38d42b(_0x2bcfaf-0x135,_0x193e8f- -0x130,_0x17feae,_0x17feae-_0x2b6ccd._0x24ebd7);}return _0x160ddc[_0x3f70c7(0xcf,-0x12,0x101,-0x4b)](_0x3b7b62=>{const _0x5849a5={_0x24f79c:0x189},_0x403ad6={_0x3b4c3c:0x180,_0x3059e0:0x14f,_0x4b3e78:0x10a};function _0x36d7a7(_0x4b6215,_0x31a81b,_0x34b709,_0x2c6411){return _0x4937ef(_0x4b6215-_0x403ad6._0x3b4c3c,_0x31a81b,_0x34b709-_0x403ad6._0x3059e0,_0x34b709-_0x403ad6._0x4b3e78);}const _0x1227a0=[_0x3b7b62[_0x18f6d0(_0xd3ceb._0x31a7f9,0x48c,0x3f3,0x5b5)][_0x18f6d0(_0xd3ceb._0x3ab8a0,_0xd3ceb._0x1503f5,0x63e,0x4ef)]+'.\x20'+_0x3b7b62[_0x36d7a7(0x550,0x480,_0xd3ceb._0xcc6241,0x69a)],_0x3b7b62[_0x18f6d0(_0xd3ceb._0x293292,_0xd3ceb._0x2ae159,_0xd3ceb._0x1b1d79,0x41e)]];function _0x18f6d0(_0x311b1d,_0x35f500,_0x1cca1f,_0x2968dc){return _0x3f70c7(_0x311b1d-0x1d5,_0x35f500-_0x5849a5._0x24f79c,_0x35f500-0x5bd,_0x311b1d);}if(_0x3b7b62[_0x36d7a7(_0xd3ceb._0xf9d31e,_0xd3ceb._0x1c1925,0x57f,_0xd3ceb._0x423820)])_0x1227a0[_0x18f6d0(_0xd3ceb._0x46e9a4,0x43b,0x4c9,_0xd3ceb._0x373091)](_0x3b7b62[_0x36d7a7(_0xd3ceb._0x14bd05,0x6c2,_0xd3ceb._0x1fcd40,_0xd3ceb._0x3fb70f)]);if(_0x3b7b62[_0x18f6d0(0x6f4,_0xd3ceb._0x11d330,_0xd3ceb._0x72fa30,0x66b)])_0x1227a0['push'](_0x36d7a7(_0xd3ceb._0x149b58,_0xd3ceb._0x2820d4,_0xd3ceb._0x2ec53a,_0xd3ceb._0x1e0925)+_0x3b7b62[_0x36d7a7(0x5f0,0x516,0x501,0x49f)]);return _0x1227a0[_0x36d7a7(0x692,_0xd3ceb._0x42b228,_0xd3ceb._0x47cfb7,_0xd3ceb._0x448183)]('\x0a');})[_0x3f70c7(_0x5965d7._0x1d3239,0x8e,0xb9,0xdc)]('\x0a\x0a');}async function searchOllama(_0x494b10,_0x5b9d3b,_0x545ecd){const _0x5f2c3c={_0x1c7e2b:0x6d,_0x546862:0x150,_0x2b8ed4:0xba,_0x415881:0x131,_0x17308c:0x218,_0x8de84:0x65a,_0x2cb027:0x5e2,_0x59a5bc:0x124,_0x4fe434:0x33,_0x3c3d87:0x138,_0x1324b9:0x1cd,_0x478bf5:0x1d7,_0x33c8ce:0x549,_0xc9926f:0x4c2},_0x2b26b0={_0x4a0167:0x27a,_0x1669da:0xff,_0x2a73d8:0x208,_0x18c5ac:0x11d,_0x187b4e:0x190,_0x163d73:0x2d2,_0x4406bf:0x3b5,_0x23d0c9:0x343,_0x2a69e8:0x350,_0x468192:0x26b,_0x20b040:0x3de,_0x5e75cd:0x2aa,_0x83d2c:0x300},_0x54d6e4={_0x21cfa0:0x7d},_0x37a389={_0x150b3c:0xaf,_0x421d69:0x3f4},_0x365398={_0x168c92:0x94,_0x1db7f6:0x81};function _0x389960(_0x332df9,_0x3b5b78,_0x1250a2,_0x394539){return _0x38d42b(_0x332df9-0x18b,_0x3b5b78- -_0x365398._0x168c92,_0x332df9,_0x394539-_0x365398._0x1db7f6);}const _0x5d7ee8=Math['max'](0x1,Math[_0x389960(_0x5f2c3c._0x1c7e2b,-_0x5f2c3c._0x1c7e2b,-0x84,-0x134)](0xa,_0x5b9d3b[_0x389960(_0x5f2c3c._0x546862,_0x5f2c3c._0x2b8ed4,-0x2,0x14)])),_0x567d1e=addSiteFilters(_0x5b9d3b[_0x389960(0xb,_0x5f2c3c._0x415881,_0x5f2c3c._0x17308c,0x20c)],_0x5b9d3b[_0x1c74e5(0x6d0,0x5b0,_0x5f2c3c._0x8de84,0x6f4)]),_0x70db83=await fetchJson(_0x1c74e5(0x602,_0x5f2c3c._0x2cb027,0x63e,0x69f),_0x545ecd,{'method':_0x389960(0x102,0x3,0xaf,-_0x5f2c3c._0x59a5bc),'headers':{'Authorization':'Bearer\x20'+_0x494b10['apiKey']},'body':JSON['stringify']({'query':_0x567d1e,'max_results':_0x5d7ee8})}),_0x1e166d=_0x70db83[_0x389960(_0x5f2c3c._0x4fe434,0x107,0x126,0xd8)]??[];function _0x1c74e5(_0x57e4ee,_0x194b0c,_0x5d8bea,_0x2867a2){return _0x38d42b(_0x57e4ee-_0x37a389._0x150b3c,_0x194b0c-_0x37a389._0x421d69,_0x5d8bea,_0x2867a2-0x5a);}const _0x771629=_0x1e166d[_0x389960(0x1f8,0x19d,0x278,_0x5f2c3c._0x3c3d87)]((_0x2023a1,_0x226bc9)=>{const _0x578c7c={_0x3350f0:0xa,_0x140341:0x3d};function _0x44e71c(_0x3203e5,_0x25dee7,_0x54bb17,_0x20c530){return _0x389960(_0x20c530,_0x54bb17-_0x578c7c._0x3350f0,_0x54bb17-0xaa,_0x20c530-_0x578c7c._0x140341);}const _0x38e381=_0x2023a1['url']||'';let _0x124717;function _0x74cc63(_0x11a886,_0x3fcbea,_0x42a5d8,_0x448830){return _0x389960(_0x3fcbea,_0x448830-0x207,_0x42a5d8-_0x54d6e4._0x21cfa0,_0x448830-0x160);}try{_0x124717=new URL(_0x38e381)[_0x74cc63(_0x2b26b0._0x4a0167,0x2b1,_0x2b26b0._0x1669da,_0x2b26b0._0x2a73d8)];}catch{_0x124717=null;}return{'title':_0x2023a1[_0x44e71c(_0x2b26b0._0x18c5ac,0x76,_0x2b26b0._0x187b4e,_0x2b26b0._0x163d73)]||_0x74cc63(_0x2b26b0._0x4406bf,0x32c,0x18c,0x295),'url':normalizeUrl(_0x38e381),'snippet':_0x2023a1[_0x74cc63(_0x2b26b0._0x23d0c9,_0x2b26b0._0x2a69e8,_0x2b26b0._0x23d0c9,_0x2b26b0._0x468192)]??null,'displayUrl':_0x124717,'favicon':null,'publishedAt':null,'source':{'engine':_0x74cc63(_0x2b26b0._0x20b040,0x3ce,_0x2b26b0._0x5e75cd,_0x2b26b0._0x83d2c),'rank':_0x226bc9+0x1}};});return{'items':_0x771629[_0x389960(_0x5f2c3c._0x59a5bc,0x176,_0x5f2c3c._0x1324b9,_0x5f2c3c._0x478bf5)](0x0,_0x5d7ee8),'engine':_0x1c74e5(_0x5f2c3c._0x33c8ce,0x581,0x666,_0x5f2c3c._0xc9926f)};}async function searchTavily(_0xce7a0b,_0x4954ea,_0x402044){const _0x5c0e78={_0x1733ed:0x526,_0x49508d:0x358,_0x49c16e:0x2ce,_0x60dc96:0x372,_0x37e4d2:0x487,_0x550aae:0x3d9,_0x28117e:0x2ef,_0xe37d81:0x300,_0x340eec:0x27e,_0x1f2a8c:0x23f,_0x403a9c:0x3d8,_0x13baff:0x38e,_0x20cb4b:0x2eb,_0x398a95:0x114,_0xe01382:0xbf,_0x490cc4:0x185,_0x32ecc1:0x2e8,_0x1550f9:0x425,_0x4b4869:0x3a0,_0x323286:0x409,_0x58f216:0x370,_0x420511:0x416,_0x2ef72a:0x42e,_0x1f7d9f:0x296,_0x51a64b:0x345,_0xda5541:0x56f,_0x54bb2f:0x3fe,_0x16c47e:0x50b,_0x5d98ed:0x463,_0x7a32df:0x4b2},_0x3bb1f0={_0x48e46d:0x135,_0x5d177d:0x1cd,_0x4c390a:0x17b,_0x376a61:0x60,_0xf84966:0x1c1,_0x465e04:0x1b0,_0x44aaeb:0x3f8,_0x51cc27:0x235,_0x3e63ca:0x122,_0x5d3a90:0x209,_0x8ccee1:0x29b,_0x565b40:0x1e,_0xd6463f:0xcf,_0x595210:0x5f},_0x3247bc={_0x225ec6:0x10f,_0x419486:0x12a,_0x419a4f:0x3b},_0x460161={_0x124914:0x2c,_0xcd6429:0x1cd,_0x51f90d:0x1c0},_0x2c88a5=Math[_0x6ba49e(_0x5c0e78._0x1733ed,0x3a5,_0x5c0e78._0x49508d,0x3f1)](0x1,Math[_0x6ba49e(_0x5c0e78._0x49c16e,_0x5c0e78._0x60dc96,0x1a4,0x2b2)](0x14,_0x4954ea[_0x6ba49e(0x4fd,0x380,_0x5c0e78._0x37e4d2,_0x5c0e78._0x550aae)]));function _0x6ba49e(_0xee932a,_0x5f20fc,_0x370046,_0x37478a){return _0x37c1da(_0xee932a-_0x460161._0x124914,_0x5f20fc-_0x460161._0xcd6429,_0x5f20fc,_0x37478a- -_0x460161._0x51f90d);}const _0xc8d76b={'query':_0x4954ea[_0xaaa604(_0x5c0e78._0x28117e,_0x5c0e78._0xe37d81,_0x5c0e78._0x340eec,_0x5c0e78._0x1f2a8c)],'max_results':_0x2c88a5,'search_depth':_0xce7a0b[_0x6ba49e(_0x5c0e78._0x403a9c,_0x5c0e78._0x13baff,0x1ed,_0x5c0e78._0x20cb4b)]??_0xaaa604(_0x5c0e78._0x398a95,_0x5c0e78._0xe01382,_0x5c0e78._0x490cc4,0x73),'topic':_0xce7a0b[_0xaaa604(0x1ea,0x104,0xf8,0x2cd)]??_0xaaa604(_0x5c0e78._0x32ecc1,_0x5c0e78._0x1550f9,0x250,_0x5c0e78._0x4b4869)};if(_0x4954ea['domains'][_0x6ba49e(_0x5c0e78._0x323286,0x346,0x4b8,_0x5c0e78._0x58f216)]>0x0)_0xc8d76b['include_domains']=_0x4954ea[_0x6ba49e(0x3a9,_0x5c0e78._0x420511,_0x5c0e78._0x2ef72a,0x447)];function _0xaaa604(_0x3994e4,_0x4f2f80,_0x1c0386,_0x1b23bc){return _0x38d42b(_0x3994e4-_0x3247bc._0x225ec6,_0x3994e4-_0x3247bc._0x419486,_0x4f2f80,_0x1b23bc-_0x3247bc._0x419a4f);}const _0x22f225=await fetchJson('https://api.tavily.com/search',_0x402044,{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0xce7a0b[_0x6ba49e(0x33c,_0x5c0e78._0x1f7d9f,_0x5c0e78._0x51a64b,0x2d2)],'Content-Type':'application/json'},'body':JSON[_0x6ba49e(0x545,_0x5c0e78._0xda5541,_0x5c0e78._0x54bb2f,0x43e)](_0xc8d76b)}),_0x5b4998=_0x22f225[_0x6ba49e(_0x5c0e78._0x16c47e,0x4c3,_0x5c0e78._0x5d98ed,0x426)]??[],_0x45a204=_0x5b4998[_0x6ba49e(_0x5c0e78._0x7a32df,0x4ad,0x435,0x4bc)]((_0xd4ad3e,_0x4563e1)=>{const _0x3ccc0f={_0x5e82af:0x16d},_0x43756e={_0x104540:0x2e6,_0x5aafa1:0x1e7};function _0x4c28cd(_0x47d48d,_0x42cb0a,_0x49bb08,_0x52b74c){return _0xaaa604(_0x49bb08- -_0x43756e._0x104540,_0x52b74c,_0x49bb08-_0x43756e._0x5aafa1,_0x52b74c-0xc7);}const _0x5066b6=_0xd4ad3e[_0x4c28cd(-_0x3bb1f0._0x48e46d,-_0x3bb1f0._0x5d177d,-_0x3bb1f0._0x4c390a,-_0x3bb1f0._0x376a61)]||'';function _0x47958b(_0x2002cc,_0x55a87f,_0x22a14d,_0x3d84a9){return _0x6ba49e(_0x2002cc-_0x3ccc0f._0x5e82af,_0x2002cc,_0x22a14d-0x184,_0x3d84a9- -0x1a4);}let _0x3b8580;try{_0x3b8580=new URL(_0x5066b6)[_0x47958b(0x25b,_0x3bb1f0._0xf84966,_0x3bb1f0._0x465e04,0x17c)];}catch{_0x3b8580=null;}return{'title':_0xd4ad3e[_0x47958b(0x399,_0x3bb1f0._0x44aaeb,_0x3bb1f0._0x51cc27,0x301)]||_0x47958b(_0x3bb1f0._0x3e63ca,0x30f,0x10b,_0x3bb1f0._0x5d3a90),'url':normalizeUrl(_0x5066b6),'snippet':_0xd4ad3e[_0x47958b(0x171,_0x3bb1f0._0x8ccee1,0x1c6,0x1df)]??null,'displayUrl':_0x3b8580,'favicon':null,'publishedAt':null,'source':{'engine':_0x4c28cd(_0x3bb1f0._0x565b40,-_0x3bb1f0._0xd6463f,-_0x3bb1f0._0x595210,-0x136),'rank':_0x4563e1+0x1}};});return{'items':_0x45a204['slice'](0x0,_0x2c88a5),'engine':'tavily'};}async function searchGoogleCse(_0x49ccc3,_0x6b323d,_0x12e47b){const _0x44f7a3={_0x4c9d1e:0x69a,_0x5b39b5:0x2ac,_0x5ab66a:0x322,_0xa3567e:0x4a7,_0xd96a16:0x2c8,_0x3286c5:0x74a,_0x21d988:0x263,_0x184eb8:0x41d,_0x111a69:0x420,_0x7fb5ab:0x2fc,_0x45edfa:0x482,_0x283680:0x497,_0x6101d:0x4bb,_0x168544:0x499,_0x566125:0x380,_0x361831:0x5ae,_0x3434df:0x5b7,_0x51568f:0x5f2,_0x2d20ab:0x55b,_0x1555b1:0x58e,_0x3385ec:0x516,_0x4ee3c6:0x561,_0x2c7cb7:0x532,_0x4d824d:0x427,_0x3cdabe:0x469,_0x317500:0x6b8,_0x298fb1:0x61f,_0x2fe95f:0x343,_0x4e0e77:0x457,_0x91fe48:0x6cc,_0x4957d6:0x4b2,_0x37dfee:0x5d4,_0x322a9a:0x711,_0x1f659c:0x35c,_0x26b28f:0x368,_0x3ddee4:0x3f7,_0x1a7c15:0x458,_0x4b85bf:0x3a8,_0x3a6c1b:0x559,_0x2423dd:0x6a0,_0x2e838a:0x54a,_0x59a1ed:0x467,_0x5cf566:0x44d,_0x1a48f9:0x490,_0x56e6a6:0x4e9,_0x1ab61f:0x583,_0x14ca7d:0x6fb,_0x55b651:0x655,_0x52f238:0x320,_0x96c394:0x292,_0x8acfed:0x22f,_0x36ac26:0x4b0,_0x2e372b:0x49b,_0x58ae4e:0x49d,_0x52229f:0x374,_0x510709:0x457,_0x2ecf75:0x455,_0x2e5981:0x598,_0x28b8d3:0x4d0,_0x44f457:0x31a,_0x754d49:0x3ad,_0x90f7d9:0x6a7,_0x5a0a24:0x4fb,_0xcf5726:0x397,_0xab4806:0x327,_0x121b5c:0x41b,_0x535a20:0x457,_0x2c2072:0x679,_0x453ebe:0x574,_0x3442fa:0x41a,_0x4255ef:0x3dc,_0x57acf7:0x344,_0xa4f1e0:0x3d0,_0x2f83d4:0x200,_0x2b6fc8:0x339,_0x4b71e2:0x4db,_0xd043bd:0x5d0,_0x30d309:0x51d,_0x545e14:0x243,_0x15d740:0x301,_0x40ac77:0x409,_0x4c81b1:0x48a,_0x5b6740:0x369,_0x4370e1:0x2b6,_0x3754ca:0x3b2,_0x57667a:0x337,_0x3d150f:0x19b,_0x5ad6ac:0x2e6,_0x423af7:0x298,_0x33212a:0x3da,_0x3cd193:0x648,_0x253051:0x5a3,_0x1f66f7:0x515,_0x3510bc:0x5e7,_0x36fa48:0x4c8,_0x3f4ef3:0x39c,_0x40d218:0x38f,_0x5a68e3:0x65a,_0x666e1f:0x5a2,_0x3143bd:0x603,_0x33e742:0x701,_0x2e914a:0x476,_0x2c92d9:0x520,_0x1b390b:0x463,_0x875597:0x2f7,_0xcd228e:0x340,_0x17e778:0x367,_0x5c5aff:0x3e0,_0x23d801:0x402,_0x431e77:0x50a,_0x2d7a3e:0x4cf,_0x130124:0x3d1,_0x5cd055:0x505},_0x1a56cf={_0x46c5dd:0x156,_0x116c55:0x45b,_0x52a9b9:0x5f},_0x145db3={_0x25e839:0x2fb,_0x4c19af:0x73},_0x2727e2=Math[_0x18f545(0x5c1,_0x44f7a3._0x4c9d1e,0x60d,0x4cf)](0x1,Math[_0x1b6c08(0x3da,0x1ec,_0x44f7a3._0x5b39b5,_0x44f7a3._0x5ab66a)](0x32,_0x6b323d[_0x1b6c08(_0x44f7a3._0xa3567e,0x320,0x325,0x449)]));if(_0x6b323d['offset']+_0x2727e2>0x64)throw new ToolExecutionError(_0x18f545(0x629,0x607,0x5be,0x655),{'offset':_0x6b323d[_0x1b6c08(0x272,_0x44f7a3._0xd96a16,0x2a0,0x2fc)],'count':_0x2727e2,'maxResults':0x64});const _0x3d5a7b=cseDateRestrict(_0x6b323d['recencyDays']),_0x13093d=addSiteFilters(_0x6b323d[_0x18f545(0x620,0x6d6,_0x44f7a3._0x3286c5,0x642)],_0x6b323d['domains']);let _0x101883=0x0,_0x495655=_0x6b323d[_0x1b6c08(_0x44f7a3._0x21d988,_0x44f7a3._0x184eb8,_0x44f7a3._0x111a69,_0x44f7a3._0x7fb5ab)]+0x1;const _0x251624=[];function _0x1b6c08(_0x688bb1,_0x21695d,_0x14bacd,_0x231b08){return _0x38d42b(_0x688bb1-0x1e0,_0x231b08-_0x145db3._0x25e839,_0x14bacd,_0x231b08-_0x145db3._0x4c19af);}function _0x18f545(_0x4745d9,_0x26be4c,_0x4b55e5,_0x2dc8ff){return _0x38d42b(_0x4745d9-_0x1a56cf._0x46c5dd,_0x4745d9-_0x1a56cf._0x116c55,_0x26be4c,_0x2dc8ff-_0x1a56cf._0x52a9b9);}while(_0x101883<_0x2727e2){const _0x50caf2=Math[_0x18f545(_0x44f7a3._0x45edfa,0x493,_0x44f7a3._0x283680,0x39c)](0xa,_0x2727e2-_0x101883),_0x5b27f3=new URL(_0x1b6c08(0x2d4,_0x44f7a3._0x6101d,0x347,0x3c3));_0x5b27f3[_0x18f545(_0x44f7a3._0x168544,_0x44f7a3._0x566125,_0x44f7a3._0x361831,0x3a5)][_0x18f545(_0x44f7a3._0x3434df,0x5bb,0x596,0x4ee)](_0x18f545(_0x44f7a3._0x51568f,_0x44f7a3._0x2d20ab,_0x44f7a3._0x1555b1,0x564),_0x49ccc3[_0x1b6c08(0x5b0,_0x44f7a3._0x3385ec,_0x44f7a3._0x4ee3c6,_0x44f7a3._0x2c7cb7)]),_0x5b27f3[_0x18f545(0x499,_0x44f7a3._0x4d824d,0x4cf,_0x44f7a3._0x3cdabe)]['set']('cx',_0x49ccc3[_0x18f545(0x5cb,0x67c,_0x44f7a3._0x317500,_0x44f7a3._0x298fb1)]),_0x5b27f3[_0x18f545(0x499,0x3fe,0x5d9,0x503)][_0x18f545(0x5b7,0x59c,0x667,0x677)]('q',_0x13093d),_0x5b27f3['searchParams'][_0x1b6c08(_0x44f7a3._0x2fe95f,0x3f2,0x58e,_0x44f7a3._0x4e0e77)](_0x1b6c08(0x52d,0x4a5,0x4f2,0x3e1),String(_0x50caf2)),_0x5b27f3[_0x18f545(0x499,0x5e6,0x42d,0x542)][_0x18f545(0x5b7,_0x44f7a3._0x91fe48,_0x44f7a3._0x4957d6,_0x44f7a3._0x37dfee)](_0x18f545(0x69e,_0x44f7a3._0x322a9a,0x571,0x772),String(_0x495655)),_0x5b27f3[_0x1b6c08(0x47d,_0x44f7a3._0x1f659c,0x21e,0x339)][_0x1b6c08(_0x44f7a3._0x26b28f,0x388,_0x44f7a3._0x3ddee4,_0x44f7a3._0x4e0e77)]('safe',_0x6b323d[_0x18f545(0x44c,0x422,_0x44f7a3._0x1a7c15,_0x44f7a3._0x4b85bf)]?_0x18f545(_0x44f7a3._0x3a6c1b,0x4a7,_0x44f7a3._0x2423dd,_0x44f7a3._0x2e838a):_0x1b6c08(0x3e9,0x3d5,_0x44f7a3._0x59a1ed,0x477));_0x6b323d[_0x18f545(0x450,_0x44f7a3._0x5cf566,_0x44f7a3._0x1a48f9,_0x44f7a3._0x56e6a6)]&&(_0x5b27f3[_0x18f545(0x499,0x493,0x433,_0x44f7a3._0x1ab61f)][_0x18f545(_0x44f7a3._0x3434df,0x6c5,_0x44f7a3._0x14ca7d,_0x44f7a3._0x55b651)]('hl',_0x6b323d[_0x1b6c08(_0x44f7a3._0x52f238,_0x44f7a3._0x96c394,_0x44f7a3._0x8acfed,0x2f0)]),_0x5b27f3[_0x18f545(0x499,_0x44f7a3._0x36ac26,0x37b,_0x44f7a3._0x2e372b)][_0x1b6c08(0x336,_0x44f7a3._0x58ae4e,_0x44f7a3._0x52229f,_0x44f7a3._0x510709)]('lr',_0x18f545(0x504,_0x44f7a3._0x2ecf75,_0x44f7a3._0x2e5981,0x588)+_0x6b323d[_0x18f545(0x450,_0x44f7a3._0x28b8d3,_0x44f7a3._0x44f457,_0x44f7a3._0x754d49)]));if(_0x6b323d[_0x18f545(0x625,_0x44f7a3._0x90f7d9,_0x44f7a3._0x5a0a24,0x760)])_0x5b27f3[_0x1b6c08(0x330,_0x44f7a3._0x3ddee4,_0x44f7a3._0xcf5726,0x339)][_0x1b6c08(0x53c,_0x44f7a3._0xab4806,_0x44f7a3._0x121b5c,_0x44f7a3._0x535a20)]('gl',_0x6b323d[_0x18f545(0x625,_0x44f7a3._0x2c2072,0x72b,0x5ea)]['toUpperCase']());if(_0x6b323d['type']==='images')_0x5b27f3['searchParams'][_0x1b6c08(0x439,0x47b,_0x44f7a3._0x453ebe,_0x44f7a3._0x535a20)](_0x18f545(_0x44f7a3._0x3442fa,_0x44f7a3._0x4255ef,0x35c,_0x44f7a3._0x57acf7),'image');if(_0x3d5a7b)_0x5b27f3[_0x1b6c08(0x37a,_0x44f7a3._0xa4f1e0,_0x44f7a3._0x2f83d4,_0x44f7a3._0x2b6fc8)]['set'](_0x18f545(_0x44f7a3._0x4b71e2,_0x44f7a3._0xd043bd,_0x44f7a3._0x30d309,0x3b4),_0x3d5a7b);const _0x4a3655=await fetchJson(_0x5b27f3[_0x1b6c08(_0x44f7a3._0x545e14,_0x44f7a3._0x15d740,_0x44f7a3._0x40ac77,0x365)](),_0x12e47b),_0x1553f3=_0x4a3655[_0x1b6c08(_0x44f7a3._0x4c81b1,_0x44f7a3._0x5b6740,_0x44f7a3._0x4370e1,_0x44f7a3._0x3754ca)]??[];if(_0x1553f3[_0x1b6c08(0x420,_0x44f7a3._0x57667a,0x37a,0x3e0)]===0x0)break;const _0xa2e56=_0x101883;for(let _0x4a94a3=0x0;_0x4a94a3<_0x1553f3['length'];_0x4a94a3++){const _0x1b525f=_0x1553f3[_0x4a94a3];if(!_0x1b525f)continue;const _0x41f5f0=_0x1b525f[_0x1b6c08(0x360,0x1f2,_0x44f7a3._0x3d150f,_0x44f7a3._0x5ad6ac)]||_0x1b525f[_0x1b6c08(0x486,_0x44f7a3._0x423af7,0x4d3,_0x44f7a3._0x33212a)]?.['contextLink']||'',_0x5f55e5=_0x1b525f[_0x1b6c08(_0x44f7a3._0x3cd193,0x492,_0x44f7a3._0x253051,_0x44f7a3._0x1f66f7)]||_0x1b525f[_0x18f545(0x53a,0x660,0x647,0x4c2)]?.[_0x18f545(0x675,0x5c6,_0x44f7a3._0x3510bc,0x68a)]||'Untitled',_0x1e48c9=_0x1b525f['snippet']||_0x1b525f[_0x18f545(0x4b8,_0x44f7a3._0x36fa48,0x4a1,_0x44f7a3._0x3f4ef3)]?.[_0x18f545(0x433,0x565,0x45e,_0x44f7a3._0x40d218)](/<[^>]+>/g,''),_0xe25214=_0x1b525f[_0x18f545(_0x44f7a3._0x5a68e3,_0x44f7a3._0x666e1f,0x631,0x57c)]?.['metatags']?.[0x0]??{};let _0x182c94;try{_0x182c94=new URL(_0x41f5f0)[_0x1b6c08(0x399,0x2bf,0x2a4,0x390)];}catch{_0x182c94=null;}_0x251624['push']({'title':_0x5f55e5,'url':normalizeUrl(_0x41f5f0),'snippet':_0x1e48c9??null,'displayUrl':_0x182c94,'favicon':null,'publishedAt':_0xe25214[_0x18f545(0x5e1,0x4f8,_0x44f7a3._0x3143bd,_0x44f7a3._0x33e742)]||_0xe25214[_0x1b6c08(_0x44f7a3._0x2e914a,_0x44f7a3._0x2c92d9,_0x44f7a3._0x1b390b,_0x44f7a3._0x4c81b1)]||null,'source':{'engine':'google-cse','rank':_0xa2e56+_0x4a94a3+0x1}});}_0x101883+=_0x1553f3[_0x1b6c08(_0x44f7a3._0x875597,_0x44f7a3._0xcd228e,_0x44f7a3._0x17e778,_0x44f7a3._0x5c5aff)],_0x495655+=_0x1553f3['length'];if(_0x1553f3[_0x18f545(0x540,_0x44f7a3._0x23d801,0x4d3,_0x44f7a3._0x431e77)]<_0x50caf2)break;}return _0x251624[_0x1b6c08(0x510,_0x44f7a3._0x2d7a3e,_0x44f7a3._0x130124,_0x44f7a3._0x5cd055)](0x0,_0x2727e2);}function isGoogleCseEngine(_0xc4961a){const _0x3ec69b={_0x4b2a2a:0x590,_0x58789a:0x4db,_0x1ca454:0x59a,_0x44444c:0x5fe},_0x3d8186={_0x3e4086:0xe0};function _0x46e14f(_0xe2170a,_0x2dcef2,_0x2ebaf9,_0x793a2b){return _0x38d42b(_0xe2170a-0x18e,_0x793a2b-0x3c7,_0x2dcef2,_0x793a2b-_0x3d8186._0x3e4086);}return _0x46e14f(_0x3ec69b._0x4b2a2a,_0x3ec69b._0x58789a,_0x3ec69b._0x1ca454,_0x3ec69b._0x44444c)in _0xc4961a;}function isOllamaEngine(_0x34601b){const _0x4d3d4e={_0x5baab7:0x131},_0x29d1ed={_0x29cf91:0x38,_0x4db0b0:0x37,_0x557a1c:0x1c7};function _0x573103(_0xe6a393,_0x4c4cf6,_0x18096c,_0x228133){return _0x38d42b(_0xe6a393-_0x29d1ed._0x29cf91,_0x4c4cf6- -_0x29d1ed._0x4db0b0,_0x18096c,_0x228133-_0x29d1ed._0x557a1c);}return _0x573103(0x13f,0x1cb,_0x4d3d4e._0x5baab7,0xed)in _0x34601b;}function isTavilyEngine(_0x3061bc){return'tavilyApiKey'in _0x3061bc;}function createWebSearchTool(_0x58e94b){const _0x398754={_0x4f3afd:0x4a,_0x1fc10e:0xa,_0xd77654:0x39,_0x1e9fac:0xa7,_0x334ff4:0x1d5,_0x3ae65e:0x274,_0x20bf5d:0xfc,_0x310b9a:0x18b,_0x14c033:0x1f3,_0x56c162:0x225,_0x354f4f:0x235,_0x18b7e:0x10a,_0x568b2c:0x2a9,_0x4f272c:0x162,_0x443965:0x295,_0x287c3e:0x25e,_0x30dbdb:0xa1,_0x4fa6c0:0x258,_0x77174d:0x2e7,_0x2bc964:0x2a1,_0x584ac0:0x39c,_0x3c424a:0x15c,_0x1d16ad:0x1f6,_0x300436:0x1f9,_0x780cd0:0x216,_0xd32a3b:0x399,_0x106260:0x2d2,_0x543917:0x17d,_0x58031d:0x6b,_0x5353f6:0xa8,_0x2000f8:0x10a,_0x5e17b8:0x3fe,_0x3d5c9a:0x3e9},_0x2a257f={_0x7ff804:0xdd,_0x506a33:0x175,_0x4b7959:0x93,_0x50d6df:0x14f,_0x264b72:0x99,_0x135c5f:0xaa,_0x538a53:0x142,_0x1af253:0x94,_0x46ceac:0x1cb,_0x32ebdb:0x2b6,_0x592fd6:0xc8,_0x2fee62:0x8b,_0x50ba88:0x68,_0x14bd91:0xf,_0x4fa03c:0x29,_0xea5379:0x11f,_0x3888b7:0x18,_0x12666b:0x43,_0x19e4e2:0x124,_0xa2fb15:0x218,_0x8d3baf:0xb8,_0x363a83:0xf9,_0x45b828:0x3f,_0x165d18:0x19b,_0x48214e:0xd6,_0x31362b:0x160,_0x193cb1:0x68,_0x380595:0x175,_0xc02466:0x134,_0x231e49:0x17a,_0x14f1d5:0x1cf,_0x3eddb6:0x28d,_0x3e0b74:0x154,_0x398de2:0x10,_0x5c7035:0xbf,_0x3471a0:0x1f,_0x13872d:0x5a,_0x2891e3:0x2,_0xa8633f:0xb2,_0x235f8f:0xcd,_0x3c6f:0x14,_0xf35c89:0xb2,_0x5831f3:0x1ba,_0x2d970d:0x9e,_0x3207f7:0x3,_0x46cb5a:0x1fc,_0x1c91b3:0x188,_0x2a0af2:0x40,_0x3125ea:0x19,_0x2e2a7c:0x113,_0x237a85:0x3,_0x24b307:0x23,_0x2b8a49:0x100,_0x1aa3cb:0x10c,_0x21cd4a:0x2f,_0x1be0c8:0x72,_0x249015:0x158,_0x17e7d5:0x380,_0x41f740:0x235,_0x3fb34a:0x1ad,_0x53ad03:0x133,_0x93868b:0x328,_0x2ee386:0x321,_0x3fc87b:0x20a,_0x5a3d08:0x2b,_0x5965d6:0x1d,_0x506d95:0xd8,_0x43ca89:0xa2,_0x19a90f:0xea,_0x440e4c:0x27,_0x115346:0x101,_0x515705:0xb0,_0x541934:0x43,_0x42bae4:0xf3,_0x20c475:0x137,_0x1ba135:0x130,_0x549362:0x87,_0x24094c:0x127,_0x368f2f:0x2c7,_0x335d6e:0x30b,_0x529480:0x162,_0x4bc3ae:0x202,_0x12e4f2:0x133,_0x5022a6:0x1b2,_0x5052c8:0x104,_0x2378ef:0x55,_0xf215ce:0xad,_0x35620b:0xbc,_0x401e65:0x83,_0x197295:0x48,_0x208f1f:0x34,_0x49c332:0xbd},_0x312329={_0x5a25db:0x15e,_0x2c19db:0x22c};function _0x4fba65(_0xdbeea5,_0x2f453c,_0x1ca916,_0x2498d2){return _0x37c1da(_0xdbeea5-0x19c,_0x2f453c-0x1c2,_0x2f453c,_0x2498d2- -0x5d7);}if(!_0x58e94b[_0x4fba65(-0x7d,_0x398754._0x4f3afd,0x71,0x8a)]||_0x58e94b[_0x4fba65(-_0x398754._0x1fc10e,0x16a,0x117,0x8a)][_0x4fba65(_0x398754._0xd77654,0x3f,-0x153,-_0x398754._0x1e9fac)]===0x0)throw new Error(_0x13c2c1(_0x398754._0x334ff4,0x3c1,_0x398754._0x3ae65e,0x331));function _0x13c2c1(_0x1f3719,_0x56adcc,_0x4656b9,_0x83c2b3){return _0x37c1da(_0x1f3719-_0x312329._0x5a25db,_0x56adcc-0x56,_0x1f3719,_0x4656b9- -_0x312329._0x2c19db);}const _0x106c68=_0x58e94b['name']??'WebSearch';return defineTool({'name':_0x106c68,'description':_0x4fba65(-_0x398754._0x20bf5d,-0x7b,-0x1af,-0x117),'inputSchema':{'type':_0x4fba65(-0x1ad,-_0x398754._0x310b9a,-_0x398754._0x14c033,-0x17e),'properties':{'description':{'type':_0x13c2c1(0x23c,0x3a0,0x2a1,_0x398754._0x56c162)},'query':{'type':_0x4fba65(-_0x398754._0x354f4f,0x1f,-0x158,-_0x398754._0x18b7e)},'count':{'type':_0x13c2c1(0x120,0xec,0x1f6,_0x398754._0x568b2c)},'offset':{'type':_0x4fba65(-_0x398754._0x4f272c,-_0x398754._0x443965,-_0x398754._0x287c3e,-0x1b5)},'domains':{'type':_0x4fba65(-_0x398754._0x30dbdb,-_0x398754._0x4fa6c0,-0x172,-0x19c),'items':{'type':_0x13c2c1(0x280,_0x398754._0x77174d,_0x398754._0x2bc964,_0x398754._0x584ac0)}},'recencyDays':{'type':_0x13c2c1(0x28d,_0x398754._0x3c424a,_0x398754._0x1d16ad,0x166)},'lang':{'type':_0x13c2c1(_0x398754._0x300436,_0x398754._0x780cd0,0x2a1,_0x398754._0xd32a3b)},'region':{'type':_0x13c2c1(_0x398754._0x106260,_0x398754._0x77174d,_0x398754._0x2bc964,_0x398754._0x543917)},'safe':{'type':_0x4fba65(_0x398754._0x58031d,0x10f,0x127,0x53)},'type':{'type':_0x4fba65(-0x25,-0x7f,-_0x398754._0x5353f6,-_0x398754._0x2000f8)},'hydrateMeta':{'type':_0x13c2c1(0x441,0x3e5,_0x398754._0x5e17b8,_0x398754._0x3d5c9a)}},'required':['query']},async *'execute'(_0x256733,_0x5738e8){const _0x5603ec={_0x11f92b:0x33c,_0x10f625:0x3c3,_0x56d6ff:0x337,_0x3a01bf:0x321},_0x3737d0={_0x1af770:0xb,_0x248580:0x19e},_0x24ee49={_0x295d12:0x5d},_0x3a2aa1={_0xda2203:0x7e},_0xcb394=_0x256733[_0x16338f(_0x2a257f._0x7ff804,_0x2a257f._0x506a33,_0x2a257f._0x4b7959,_0x2a257f._0x50d6df)]['trim']();if(!_0xcb394)throw new ToolExecutionError(_0x532344(0x2a8,0x1b6,0x1da,0x18f));function _0x532344(_0x2d8132,_0x517a8f,_0x47fbe7,_0x42d554){return _0x13c2c1(_0x517a8f,_0x517a8f-0x1d5,_0x42d554- -0x1d1,_0x42d554-_0x3a2aa1._0xda2203);}const _0x1cc910={'query':_0xcb394,'count':Math[_0x532344(0x1f1,_0x2a257f._0x264b72,_0x2a257f._0x135c5f,0x1b4)](0x1,Math['min'](0x32,Math[_0x16338f(_0x2a257f._0x538a53,_0x2a257f._0x1af253,0x235,_0x2a257f._0x46ceac)](_0x256733[_0x532344(0x20a,_0x2a257f._0x32ebdb,0x1a0,0x19c)]??0xa))),'offset':Math['max'](0x0,Math['trunc'](_0x256733[_0x16338f(-0xe7,-_0x2a257f._0x592fd6,-0x92,-_0x2a257f._0x2fee62)]??0x0)),'domains':_0x256733['domains']??[],'recencyDays':Math[_0x16338f(0x7e,_0x2a257f._0x50ba88,0x5c,_0x2a257f._0x14bd91)](0x0,Math[_0x16338f(0x142,0x1d5,_0x2a257f._0x4fa03c,_0x2a257f._0xea5379)](_0x256733['recencyDays']??0x0)),'lang':_0x256733[_0x532344(0xf2,-_0x2a257f._0x3888b7,0xcf,_0x2a257f._0x12666b)]??'en','region':_0x256733[_0x532344(0x220,0x141,_0x2a257f._0x19e4e2,_0x2a257f._0xa2fb15)]??'','safe':_0x256733[_0x532344(0x4e,-_0x2a257f._0x8d3baf,_0x2a257f._0x363a83,_0x2a257f._0x45b828)]??!![],'type':normalizeType(_0x256733[_0x16338f(0x6f,_0x2a257f._0x165d18,_0x2a257f._0x48214e,_0x2a257f._0x31362b)]),'hydrateMeta':_0x256733[_0x16338f(_0x2a257f._0x193cb1,_0x2a257f._0x380595,_0x2a257f._0xc02466,_0x2a257f._0x231e49)]??![]};let _0x86fecf=[],_0x36793e=_0x532344(_0x2a257f._0x14f1d5,0x12c,_0x2a257f._0x3eddb6,_0x2a257f._0x3e0b74);for(const _0x4227b9 of _0x58e94b['engines']){try{if(isGoogleCseEngine(_0x4227b9))_0x86fecf=await searchGoogleCse(_0x4227b9,_0x1cc910,_0x5738e8['signal']),_0x36793e=_0x532344(0x71,_0x2a257f._0x398de2,-_0x2a257f._0x5c7035,0x7d);else{if(isOllamaEngine(_0x4227b9)){const _0x2f8cc7=await searchOllama(_0x4227b9,_0x1cc910,_0x5738e8[_0x16338f(-_0x2a257f._0x3471a0,0x74,_0x2a257f._0x13872d,_0x2a257f._0x2891e3)]);_0x86fecf=_0x2f8cc7['items'],_0x36793e=_0x2f8cc7[_0x16338f(_0x2a257f._0xa8633f,0x173,-0x13,0x8d)];}else{if(isTavilyEngine(_0x4227b9)){const _0x5b1577=await searchTavily(_0x4227b9,_0x1cc910,_0x5738e8[_0x16338f(-_0x2a257f._0x3471a0,0x89,-_0x2a257f._0x235f8f,0x6c)]);_0x86fecf=_0x5b1577[_0x16338f(-0x31,0xd9,_0x2a257f._0x3c6f,-0x8e)],_0x36793e=_0x5b1577[_0x16338f(_0x2a257f._0xf35c89,0xb4,_0x2a257f._0x5831f3,_0x2a257f._0x2d970d)];}}}if(_0x86fecf[_0x16338f(-_0x2a257f._0x3207f7,-0x141,-0x5d,-0x13b)]>0x0)break;}catch(_0x183075){if(_0x4227b9===_0x58e94b['engines'][_0x58e94b[_0x16338f(0x12e,_0x2a257f._0x46cb5a,0x253,_0x2a257f._0x1c91b3)][_0x16338f(-0x3,-_0x2a257f._0x2a0af2,-_0x2a257f._0x3125ea,-_0x2a257f._0x2e2a7c)]-0x1])throw _0x183075;}}_0x1cc910['hydrateMeta']&&_0x86fecf[_0x16338f(-_0x2a257f._0x237a85,_0x2a257f._0x24b307,-0x135,-_0x2a257f._0x2b8a49)]>0x0&&(_0x86fecf=await hydrateResults(_0x86fecf,_0x1cc910[_0x16338f(-0xf3,-_0x2a257f._0x1aa3cb,_0x2a257f._0x21cd4a,-0x58)],_0x5738e8[_0x16338f(-0x1f,0x4e,_0x2a257f._0x1be0c8,-_0x2a257f._0x249015)]));const _0x401f80=new Set();_0x86fecf=_0x86fecf['filter'](_0x227747=>{function _0x1e8f25(_0x70049c,_0x46c201,_0x1083a8,_0x39b374){return _0x16338f(_0x1083a8-0x46a,_0x39b374,_0x1083a8-_0x24ee49._0x295d12,_0x39b374-0x10a);}function _0x22b7b6(_0x311f05,_0x39788d,_0x38e88f,_0xd79c3e){return _0x532344(_0x311f05-_0x3737d0._0x1af770,_0x39788d,_0x38e88f-_0x3737d0._0x248580,_0x311f05-0x21d);}const _0x1a2355=_0x227747[_0x1e8f25(0x460,_0x5603ec._0x11f92b,_0x5603ec._0x10f625,_0x5603ec._0x56d6ff)][_0x1e8f25(0x55b,0x6ed,0x5a2,0x67a)]();if(!_0x1a2355||_0x401f80['has'](_0x1a2355))return![];return _0x401f80[_0x22b7b6(_0x5603ec._0x3a01bf,0x2cd,0x22b,0x23a)](_0x1a2355),!![];}),_0x86fecf=_0x86fecf[_0x532344(0x288,_0x2a257f._0x17e7d5,0x283,0x27f)]((_0x294758,_0xc87a5c)=>({..._0x294758,'source':{..._0x294758[_0x16338f(-0xe9,0x52,-0x1b8,-0x139)],'rank':_0xc87a5c+0x1}}));const _0x24fa7b={};if(_0x1cc910['domains'][_0x532344(0xbd,_0x2a257f._0x41f740,_0x2a257f._0x3fb34a,_0x2a257f._0x53ad03)]>0x0)_0x24fa7b[_0x532344(0x2f5,_0x2a257f._0x93868b,_0x2a257f._0x2ee386,_0x2a257f._0x3fc87b)]=_0x1cc910[_0x16338f(0xd4,_0x2a257f._0x5a3d08,_0x2a257f._0x5965d6,_0x2a257f._0x506d95)];if(_0x1cc910['recencyDays']>0x0)_0x24fa7b[_0x532344(_0x2a257f._0x43ca89,_0x2a257f._0x19a90f,-0x5,_0x2a257f._0x440e4c)]=_0x1cc910[_0x532344(_0x2a257f._0x115346,-0x117,0x159,0x27)];if(_0x1cc910[_0x532344(0xe7,-_0x2a257f._0x515705,0x144,_0x2a257f._0x541934)]!=='en')_0x24fa7b[_0x16338f(-_0x2a257f._0x42bae4,-0x1b2,-_0x2a257f._0x20c475,-_0x2a257f._0x1ba135)]=_0x1cc910[_0x16338f(-_0x2a257f._0x42bae4,-0x1c9,-0x126,-_0x2a257f._0x549362)];function _0x16338f(_0x4b747c,_0x27c726,_0x456597,_0x28f624){return _0x4fba65(_0x4b747c-0x1e9,_0x27c726,_0x456597-0x6a,_0x4b747c-0xa4);}if(_0x1cc910['region'])_0x24fa7b[_0x16338f(0xe2,0x159,0x29,_0x2a257f._0x24094c)]=_0x1cc910[_0x532344(_0x2a257f._0x368f2f,0x323,_0x2a257f._0x335d6e,0x218)];return yield createToolOutput(formatResults(_0x86fecf),{'engine':_0x36793e,'count':_0x86fecf[_0x532344(_0x2a257f._0x529480,0xdc,_0x2a257f._0x4bc3ae,_0x2a257f._0x12e4f2)],'items':_0x86fecf,'query':_0x1cc910[_0x16338f(_0x2a257f._0x7ff804,_0x2a257f._0x5022a6,_0x2a257f._0x5052c8,-0x42)],...Object[_0x16338f(0x102,_0x2a257f._0x2378ef,_0x2a257f._0xf215ce,0x197)](_0x24fa7b)['length']>0x0?{'appliedFilters':_0x24fa7b}:{},'offset':_0x1cc910[_0x532344(-_0x2a257f._0x35620b,-_0x2a257f._0x401e65,0x25,0x4f)],'totalRequested':_0x1cc910[_0x16338f(0x66,-_0x2a257f._0x197295,_0x2a257f._0x208f1f,0xa5)],'hydrated':_0x1cc910[_0x532344(_0x2a257f._0x49c332,0xba,0x118,0x19e)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|