@nuvin/agent-core 0.0.0-rc.4 → 0.0.0-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x4f4391,_0x3cb703){const _0x5b17a2={_0x1d7ff3:0x608,_0x53f202:0xa0,_0x2bd241:0x1a,_0x8a4431:0x46,_0x519cba:0xed,_0x1c041a:0x109,_0x5033f6:0x85,_0x560944:0x19,_0x106baf:0x48f,_0x161020:0x508,_0xb6ff03:0x3c,_0x2e1c88:0x529,_0x398f30:0x673,_0xd6605:0x5ee,_0xa54aaf:0x539,_0x8cf6c8:0x5f2,_0x147549:0x10,_0x4bb688:0xf1,_0x281c0b:0x4ce,_0x35fea9:0x62,_0x32ccab:0x65,_0x45185f:0x9,_0x1d287b:0x10b,_0x12f92:0x4,_0x453839:0xca},_0x1f1c8f=_0x4f4391();function _0x32e5d0(_0x5c3454,_0x123679,_0x12b7dc,_0x385049){return _0x5452(_0x12b7dc-0x377,_0x123679);}function _0x4dacf8(_0x377af0,_0x34e72b,_0x136d34,_0x3d5e45){return _0x5452(_0x136d34- -0x18f,_0x3d5e45);}while(!![]){try{const _0x6fb983=parseInt(_0x32e5d0(0x5d2,0x52e,_0x5b17a2._0x1d7ff3,0x68c))/0x1*(-parseInt(_0x4dacf8(_0x5b17a2._0x53f202,-_0x5b17a2._0x2bd241,_0x5b17a2._0x8a4431,_0x5b17a2._0x519cba))/0x2)+-parseInt(_0x4dacf8(-0xbb,-_0x5b17a2._0x1c041a,-_0x5b17a2._0x5033f6,-_0x5b17a2._0x560944))/0x3*(-parseInt(_0x32e5d0(0x4f4,_0x5b17a2._0x106baf,0x4fd,_0x5b17a2._0x161020))/0x4)+parseInt(_0x4dacf8(-0x76,_0x5b17a2._0xb6ff03,-0x3e,-0x6e))/0x5+parseInt(_0x4dacf8(-0x52,0x3f,0x34,0xf5))/0x6*(-parseInt(_0x32e5d0(0x5d1,_0x5b17a2._0x2e1c88,0x5da,_0x5b17a2._0x398f30))/0x7)+-parseInt(_0x32e5d0(_0x5b17a2._0xd6605,_0x5b17a2._0xa54aaf,_0x5b17a2._0x8cf6c8,0x525))/0x8*(-parseInt(_0x4dacf8(-0x34,0x2b,_0x5b17a2._0x147549,_0x5b17a2._0x4bb688))/0x9)+parseInt(_0x32e5d0(0x592,0x63b,0x59a,_0x5b17a2._0x281c0b))/0xa*(parseInt(_0x4dacf8(-0x42,_0x5b17a2._0x35fea9,-_0x5b17a2._0x32ccab,-_0x5b17a2._0x45185f))/0xb)+-parseInt(_0x4dacf8(_0x5b17a2._0x1d287b,_0x5b17a2._0x12f92,_0x5b17a2._0x453839,0x14b))/0xc;if(_0x6fb983===_0x3cb703)break;else _0x1f1c8f['push'](_0x1f1c8f['shift']());}catch(_0x33173a){_0x1f1c8f['push'](_0x1f1c8f['shift']());}}}(_0x226c,0xa4ed9));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-VFTQW5WK.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{spawn}from'child_process';import{statSync}from'fs';import*as _0x2b14f8 from'os';import*as _0x5f11ce from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x2a0156 from'path';function isPathInside(_0x131922,_0x467eb2){const _0x2c0f85={_0x55985b:0x57f,_0x37ff95:0x5e7,_0x386c2b:0x55b,_0x4a313a:0x418,_0x4fad6b:0x465,_0x1d3386:0x36e},_0x533ba5={_0x5d920f:0x3e3},_0x51a815={_0x2abefd:0x240},_0x69815=_0x2a0156[_0x5808a1(_0x2c0f85._0x55985b,0x594,_0x2c0f85._0x37ff95,_0x2c0f85._0x386c2b)](_0x131922),_0x149947=_0x2a0156[_0x4c237b(0x452,_0x2c0f85._0x4a313a,0x37e,_0x2c0f85._0x4fad6b)](_0x69815,_0x467eb2);function _0x4c237b(_0xc94242,_0x6d5c98,_0x2e9f6c,_0x3d2f0c){return _0x5452(_0x2e9f6c-_0x51a815._0x2abefd,_0x3d2f0c);}function _0x5808a1(_0x4e4691,_0x4c3282,_0x3d09bc,_0x3a2922){return _0x5452(_0x4c3282-_0x533ba5._0x5d920f,_0x3d09bc);}return _0x149947===''||!_0x149947[_0x4c237b(0x3af,0x28b,_0x2c0f85._0x1d3386,0x393)]('..')&&!_0x2a0156['isAbsolute'](_0x149947);}function resolveWorkspacePath(_0xab724c,_0x180d46){return resolveAllowedPath(_0xab724c,[],_0x180d46);}function resolveAllowedPath(_0x53ffce,_0x10b35f,_0x1652d5){const _0x38249c={_0x467c95:0x1d1,_0x495cc2:0x1ad,_0x50294c:0x1e1},_0x31ce4c={_0xeffbb3:0x20},_0x52f1e0=_0x2a0156[_0x28a05e(_0x38249c._0x467c95,0x238,_0x38249c._0x495cc2,0x262)](_0x53ffce),_0x50f836=_0x2a0156['resolve'](_0x52f1e0,_0x1652d5),_0x1d5d6b=[_0x52f1e0,..._0x10b35f[_0x28a05e(0x15c,0xac,0x1ba,0x112)](_0x3ef127=>_0x2a0156[_0x408aaf(0x5,0xa4,-0xd3,0xd)](_0x3ef127))];function _0x408aaf(_0x46b7d4,_0x317251,_0x4779f3,_0x38d446){return _0x5452(_0x38d446- -0x1a4,_0x46b7d4);}if(_0x1d5d6b['some'](_0x16da1b=>isPathInside(_0x16da1b,_0x50f836)))return _0x50f836;function _0x28a05e(_0x57c33a,_0x5e429b,_0x235b8b,_0x51dd00){return _0x5452(_0x57c33a-_0x31ce4c._0xeffbb3,_0x5e429b);}throw new ToolExecutionError(_0x28a05e(0x11d,_0x38249c._0x50294c,0x7c,0x1a9)+_0x1652d5,{'path':_0x1652d5,'rootDir':_0x52f1e0,'allowedDirs':_0x1d5d6b});}async function assertWorkspaceFile(_0x2f863e){const _0x572eed={_0x29410d:0x31a,_0x9a0b34:0x2ae,_0x5c0412:0x3f2,_0x4e4e75:0x23d,_0x353c29:0x1bb},_0x21e43e={_0x282811:0x21f},_0x326f7c={_0x154e66:0xea};function _0x5bf648(_0x34b5a5,_0x1ae5e5,_0x311eda,_0x1805f8){return _0x5452(_0x34b5a5-_0x326f7c._0x154e66,_0x1805f8);}const _0x120bde=await stat(_0x2f863e);function _0x528d8d(_0x5e3d94,_0x350871,_0x59592a,_0x259fba){return _0x5452(_0x259fba-_0x21e43e._0x282811,_0x59592a);}if(!_0x120bde[_0x5bf648(_0x572eed._0x29410d,_0x572eed._0x9a0b34,_0x572eed._0x5c0412,0x319)]())throw new ToolExecutionError(_0x5bf648(_0x572eed._0x4e4e75,0x186,_0x572eed._0x353c29,0x2da)+_0x2f863e,{'path':_0x2f863e});}function isProbablyBinary(_0xd2ad73){return _0xd2ad73['includes'](0x0);}var DEFAULT_DESCRIPTION='Execute\x20a\x20shell\x20command\x20with\x20timeout\x20protection.\x20Captures\x20stdout\x20and\x20stderr.\x20Do\x20not\x20use\x20for\x20interactive\x20commands\x20that\x20require\x20user\x20input.',DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x2b907e){return _0x2b907e instanceof Error;}function shellExists(_0x5c576f){const _0x395e66={_0x4fbe7c:0x3b3,_0x463487:0x438,_0x2490e3:0x4c4,_0x538e98:0x439};function _0xd78ac7(_0x108ff6,_0x97066c,_0x2dc123,_0x44c70d){return _0x5452(_0x108ff6-0x154,_0x2dc123);}function _0xb7747a(_0x173788,_0x4273a3,_0x10843c,_0x5b5a7c){return _0x5452(_0x5b5a7c-0x208,_0x173788);}try{const _0x10be68=statSync(_0x5c576f);return _0x10be68[_0xb7747a(_0x395e66._0x4fbe7c,0x410,0x3ec,_0x395e66._0x463487)]()&&(_0x10be68[_0xb7747a(_0x395e66._0x2490e3,0x488,0x3be,_0x395e66._0x538e98)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x3f89f6){const _0x1b2730={_0x3aa718:0x1e7,_0x268762:0x220,_0x12db9f:0xe6,_0x22641a:0x123,_0x48f7ba:0x2b,_0xdadd7e:0x2b3,_0x1e7989:0x2c9,_0x3c3ac8:0x26b,_0xdb1ddb:0x11,_0x5737f8:0x146,_0x43072e:0x201,_0x768978:0x299,_0x2bb50d:0x3,_0x5dcf65:0x5,_0x32e106:0x280,_0xe40421:0x16f,_0x36d44a:0x1b2,_0x3738f7:0x23,_0x43876a:0x9c};if(_0x3f89f6)return _0x3f89f6;if(_0x2b14f8['platform']()===_0x59c4b3(0x127,_0x1b2730._0x3aa718,_0x1b2730._0x268762,0x1dc))return process[_0x3e6b15(0x1a1,_0x1b2730._0x12db9f,_0x1b2730._0x22641a,_0x1b2730._0x48f7ba)][_0x59c4b3(0x344,_0x1b2730._0xdadd7e,_0x1b2730._0x1e7989,_0x1b2730._0x3c3ac8)]||'cmd.exe';const _0x37caf0=[_0x3e6b15(0x11,-0x23,-_0x1b2730._0xdb1ddb,-0x5f),'/bin/sh',_0x59c4b3(_0x1b2730._0x5737f8,0x181,0x1d2,0x195),_0x59c4b3(_0x1b2730._0x43072e,0x20b,0x237,_0x1b2730._0x768978)];function _0x3e6b15(_0xaf450b,_0x16d8e4,_0x3520c2,_0x5d2b35){return _0x5452(_0x16d8e4- -0xff,_0xaf450b);}for(const _0x1208d6 of _0x37caf0){if(shellExists(_0x1208d6))return _0x1208d6;}const _0x3fb928=process[_0x3e6b15(-_0x1b2730._0x2bb50d,_0x1b2730._0x12db9f,_0x1b2730._0x5dcf65,0xd4)][_0x59c4b3(_0x1b2730._0x32e106,_0x1b2730._0xe40421,0x148,_0x1b2730._0x36d44a)];function _0x59c4b3(_0x130868,_0x5a67bd,_0x528db0,_0x273c84){return _0x5452(_0x273c84-0x9a,_0x528db0);}if(_0x3fb928&&shellExists(_0x3fb928))return _0x3fb928;return _0x3e6b15(-0xd9,-_0x1b2730._0x3738f7,_0x1b2730._0x43876a,0x10);}function buildShellArgs(_0x2174c3,_0x43c086){const _0xc13a99={_0xaf57ee:0x159,_0x43f2de:0x1ad,_0x7f19a9:0x257,_0x1f2554:0x1e2,_0x3ba412:0x2eb,_0x194d86:0x302,_0x2056a5:0x2a4};function _0x3dfe25(_0x171e99,_0x33310f,_0x1294a2,_0x5c60ee){return _0x5452(_0x171e99-0xef,_0x33310f);}if(_0x2b14f8[_0x417a95(_0xc13a99._0xaf57ee,_0xc13a99._0x43f2de,0x236,0x1f5)]()===_0x417a95(_0xc13a99._0x7f19a9,0x2bd,0x285,_0xc13a99._0x1f2554)){const _0x105f4a=/cmd(\.exe)?$/i['test'](_0x43c086);return _0x105f4a?['/d','/s','/c',_0x2174c3]:[_0x3dfe25(0x2eb,_0xc13a99._0x3ba412,0x2ea,0x388),'-NoProfile',_0x417a95(0x283,_0xc13a99._0x194d86,_0xc13a99._0x2056a5,0x235),_0x2174c3];}function _0x417a95(_0x5708c7,_0x3c6fa7,_0x3f8b26,_0x2c9f29){return _0x5452(_0x3f8b26-0x143,_0x3c6fa7);}return['-c',_0x2174c3];}function stripAnsiAndControls(_0x473d0d){const _0x195a7b={_0x397a19:0x445,_0x38b602:0x354,_0x3d330e:0x430,_0xcee8db:0x386,_0x15401f:0x341,_0x38f2f9:0x369,_0x299cd6:0x2df,_0x19b9aa:0x377,_0xed4e77:0x362,_0x5155a0:0x2ed,_0x3bb2e0:0x335,_0x166f30:0x369,_0x5a7693:0x2aa,_0x33cf75:0x395,_0x3ef64a:0x2ae,_0x2de24f:0x40d},_0x46ffd5={_0x5b93cc:0x1e5},_0x5a7e07={_0x2e1bb8:0x109};_0x473d0d=stripVTControlCharacters(_0x473d0d);const _0x1351fe='\x1b',_0x367c18='\x07';_0x473d0d=_0x473d0d[_0x3c4d12(0x4e0,_0x195a7b._0x397a19,0x4f4,0x3ee)](new RegExp(';[^'+_0x367c18+_0x4b3d8f(_0x195a7b._0x38b602,_0x195a7b._0x3d330e,0x344,_0x195a7b._0xcee8db)+_0x367c18,'g'),'');function _0x4b3d8f(_0x18e2ca,_0x49e97c,_0x2b897f,_0x358f48){return _0x5452(_0x2b897f-_0x5a7e07._0x2e1bb8,_0x358f48);}_0x473d0d=_0x473d0d['replace'](new RegExp(';[^\x5cn]*?'+_0x1351fe+'\x5c\x5c','g'),''),_0x473d0d=_0x473d0d[_0x4b3d8f(_0x195a7b._0x15401f,0x3d7,_0x195a7b._0x38f2f9,_0x195a7b._0x299cd6)](new RegExp(_0x367c18,'g'),''),_0x473d0d=_0x473d0d['replace'](new RegExp(_0x1351fe+_0x3c4d12(_0x195a7b._0x19b9aa,_0x195a7b._0xed4e77,0x287,_0x195a7b._0x5155a0)+_0x1351fe+'\x5c\x5c','g'),''),_0x473d0d=_0x473d0d[_0x4b3d8f(_0x195a7b._0x3bb2e0,0x28b,_0x195a7b._0x166f30,0x31e)](new RegExp(_0x1351fe+_0x4b3d8f(_0x195a7b._0x5a7693,_0x195a7b._0x33cf75,_0x195a7b._0x3ef64a,0x270),'g'),'');function _0x3c4d12(_0x3abf1d,_0x184b7c,_0x869fdb,_0x481989){return _0x5452(_0x184b7c-_0x46ffd5._0x5b93cc,_0x3abf1d);}return _0x473d0d=_0x473d0d[_0x3c4d12(0x398,0x445,0x4c8,0x50c)](/[\u0080-\u009F]/g,''),_0x473d0d=_0x473d0d[_0x4b3d8f(0x3af,_0x195a7b._0x2de24f,0x369,0x392)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x473d0d=_0x473d0d['replace'](/[\u23CE\u2424]/g,''),_0x473d0d;}function resolveWorkingDirectory(_0x49414e,_0x18368e,_0x3639fb){const _0x4aa96a={_0x6df2fe:0x3a0,_0x56c7c8:0x447,_0x7f2b7d:0x28c,_0x452369:0x30d,_0x3e8cc7:0x2db},_0x2e6ce3={_0x21f952:0x11b};function _0x4ec888(_0x593bb3,_0x5cd7b8,_0x55f852,_0x4efb82){return _0x5452(_0x55f852-0x27c,_0x5cd7b8);}const _0xe674b5=resolveAllowedPath(_0x18368e,_0x3639fb,_0x49414e??'.');function _0x5f3c6a(_0x512adc,_0xfe0d87,_0x255142,_0x3dd1a6){return _0x5452(_0x512adc-_0x2e6ce3._0x21f952,_0x3dd1a6);}try{const _0x25f265=statSync(_0xe674b5);if(!_0x25f265[_0x4ec888(_0x4aa96a._0x6df2fe,_0x4aa96a._0x56c7c8,0x3ca,0x3b3)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0xe674b5,{'cwd':_0xe674b5});return _0xe674b5;}catch(_0x21c925){if(_0x21c925 instanceof ToolExecutionError)throw _0x21c925;throw new ToolExecutionError(_0x5f3c6a(_0x4aa96a._0x7f2b7d,0x327,_0x4aa96a._0x452369,_0x4aa96a._0x3e8cc7)+_0xe674b5,{'cwd':_0xe674b5});}}function killProcessGroup(_0x5261b8,_0x242c50,_0x12ce7e=_0x12584b(0x479,0x45e,0x501,0x412)){const _0x3f5ac0={_0x1ffaff:0x1b0,_0x45ad4b:0x18b,_0x568539:0x108,_0x24c102:0x1c9,_0xc255f8:0x1b4,_0x2ac8fc:0x547,_0x4ed36f:0x4f5,_0x4be2c4:0x44b,_0x5e16c3:0x2fb,_0x5823b3:0x396,_0x4eb521:0x26f,_0x5966ba:0x223},_0x3f73b7={_0x551040:0x74},_0x52a783={_0xaaf1a5:0x6c4,_0xa83717:0x1bc};function _0x595bbe(_0x168873,_0x3bda93,_0x5d3eee,_0x1bfffd){return _0x12584b(_0x168873- -_0x52a783._0xaaf1a5,_0x3bda93-0x12e,_0x5d3eee-_0x52a783._0xa83717,_0x5d3eee);}if(!_0x5261b8['pid'])return;if(_0x242c50)try{spawn('taskkill',[_0x595bbe(-_0x3f5ac0._0x1ffaff,-_0x3f5ac0._0x45ad4b,-0x222,-_0x3f5ac0._0x568539),_0x5261b8[_0x595bbe(-_0x3f5ac0._0x24c102,-0x256,-0x1b5,-_0x3f5ac0._0xc255f8)][_0x563750(0x4af,_0x3f5ac0._0x2ac8fc,_0x3f5ac0._0x4ed36f,_0x3f5ac0._0x4be2c4)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5261b8[_0x595bbe(-0x2f5,-0x336,-_0x3f5ac0._0x5e16c3,-0x254)](_0x12ce7e);return;}function _0x563750(_0x40ef0d,_0x53d1c6,_0x10e40b,_0x3bdcde){return _0x12584b(_0x40ef0d-_0x3f73b7._0x551040,_0x53d1c6-0x109,_0x10e40b-0x143,_0x53d1c6);}try{process[_0x595bbe(-0x2f5,-_0x3f5ac0._0x5823b3,-0x21f,-_0x3f5ac0._0x4eb521)](-_0x5261b8[_0x595bbe(-0x1c9,-0x278,-_0x3f5ac0._0x5966ba,-0x226)],_0x12ce7e);}catch{_0x5261b8['kill'](_0x12ce7e);}}function appendChunk(_0x3ef77a,_0x5d3aad,_0x2a981e,_0x367965,_0x117d25){const _0x4ef7b8={_0x282f82:0x2e9,_0x51d9bd:0x207,_0x36265c:0x56,_0x338d9f:0x13,_0x45f6d1:0x2d9,_0x447969:0x2b5,_0x7fe417:0x277},_0x1bcc0b={_0x46a44f:0x43b,_0xa766b:0x1c},_0x1d640f={_0x19ddfe:0x1d7,_0x3fbd03:0x11a,_0x3347f0:0xaf},_0x3cc170=_0x367965?stripAnsiAndControls(_0x2a981e):_0x2a981e;if(_0x3cc170[_0x32108b(0x23f,_0x4ef7b8._0x282f82,_0x4ef7b8._0x51d9bd,0x122)]===0x0)return;function _0x32108b(_0x5bb9e7,_0x47ec67,_0x295acd,_0x263c80){return _0x12584b(_0x295acd- -_0x1d640f._0x19ddfe,_0x47ec67-_0x1d640f._0x3fbd03,_0x295acd-_0x1d640f._0x3347f0,_0x47ec67);}_0x3ef77a[_0x4d07bc(0xaa,-_0x4ef7b8._0x36265c,_0x4ef7b8._0x338d9f,-0x31)](_0x3cc170),_0x5d3aad[_0x32108b(_0x4ef7b8._0x45f6d1,_0x4ef7b8._0x447969,_0x4ef7b8._0x7fe417,0x2ca)](_0x3cc170);function _0x4d07bc(_0x186b50,_0x342a8c,_0x4ef000,_0x14c522){return _0x12584b(_0x4ef000- -_0x1bcc0b._0x46a44f,_0x342a8c-_0x1bcc0b._0xa766b,_0x4ef000-0x1d1,_0x342a8c);}_0x117d25();}function createBashTool(_0x1acebd={}){const _0x54cd9f={_0x262867:0x469,_0x20ce7a:0x3db,_0x4c6432:0x1d6,_0x505d61:0x1f5,_0xdf1f74:0x166,_0x4898d9:0x9c,_0x33a6a7:0x170,_0x31ff81:0x27,_0xfafd47:0xa7,_0x3eeb77:0x4d6,_0x2a0179:0x13c,_0x1aebca:0x149,_0x3d575f:0x49c,_0x2dea9d:0x438,_0x159720:0x9e,_0x4fefd2:0x72,_0x69c400:0x38,_0x228253:0x488,_0x443696:0x3f8,_0x5ade68:0x30e,_0x477d4d:0x4c5,_0x3bbffb:0x5af},_0x3e5913={_0x27d8c0:0x332,_0xfe6365:0x2a1,_0x2d57ed:0x233,_0x24b38b:0x284,_0x48c104:0x206,_0x2b2a9e:0x350,_0x1fa4b2:0x23c,_0x62440d:0x204,_0x1d71fc:0x1f6,_0x3a512:0x301,_0x4da60a:0x216,_0x1abc3e:0x276,_0x337cb3:0x328,_0x2ecf90:0x3a4,_0x5abaf7:0x39a,_0x20a7a3:0x320,_0x49f6af:0x251,_0x460aca:0x35e,_0x241db7:0x2a5,_0xae9c9b:0x3c5,_0x191201:0x2d9,_0x3dc28a:0x2b8,_0x251a53:0x1d0,_0x567052:0x20a,_0x2e8a6f:0x19b,_0x5b3f5c:0x26d,_0x5464a2:0x1b9,_0x406225:0x272,_0x28bb31:0x1bd,_0x36260f:0x3df,_0x3bd2b9:0x33f,_0x2b0d1e:0x321,_0x4e1b07:0x266,_0x5e7076:0x373,_0x529ff3:0x300,_0x4fd34f:0x2ce,_0x2937f2:0x290,_0x4fc0a0:0x1bc,_0x4c4e2d:0x1be,_0x83382a:0x15e,_0xf47134:0x303,_0x567a2c:0x404,_0x541423:0x1c2,_0x4974db:0x21c,_0x3ecae7:0x340,_0x1ce549:0x297,_0x294b31:0x322,_0x1b147f:0x14d,_0x248d39:0x314,_0x2a33ba:0x2d6,_0x1237c0:0x271,_0x15754a:0x308,_0x3afc69:0x2b3,_0x16d230:0x22f,_0x49fa0f:0x22f,_0x2a6a0a:0x2e2,_0x17518d:0x282,_0x5a26bd:0x22e,_0x51706a:0x29e,_0x57ff01:0x27b,_0x2995be:0x2a8,_0x5bafd5:0x337,_0xe0a89:0x240,_0x152cd3:0x31a,_0x35ee83:0x23f,_0x43e5ed:0x3c6,_0x3ced75:0x352,_0x4d8a90:0x2c9},_0x1307d5={_0x39aaee:0x1e4,_0x50d728:0x28},_0xe76a12={_0x2719ac:0xc3,_0x1934c7:0x102},_0x516f80={_0x2d0670:0x340,_0x37a938:0x1eb},_0x516aa5=_0x5f11ce[_0x52e748(0x391,0x552,_0x54cd9f._0x262867,_0x54cd9f._0x20ce7a)](_0x1acebd[_0x106d21(0x176,0x201,_0x54cd9f._0x4c6432,0x117)]??process[_0x106d21(0xc8,_0x54cd9f._0x505d61,_0x54cd9f._0xdf1f74,_0x54cd9f._0x4898d9)]());function _0x106d21(_0xe1aa4b,_0x48031d,_0x50ce95,_0x4cca18){return _0x12584b(_0x50ce95- -_0x516f80._0x2d0670,_0x48031d-0x1cc,_0x50ce95-_0x516f80._0x37a938,_0x4cca18);}const _0x5bf1aa=(_0x1acebd[_0x106d21(_0x54cd9f._0x33a6a7,-_0x54cd9f._0x31ff81,_0x54cd9f._0xfafd47,0x190)]??[])['map'](_0x523b82=>_0x5f11ce[_0x106d21(0x203,0x1b7,0x167,0x213)](_0x523b82));function _0x52e748(_0x52daac,_0x3cd5f8,_0x29f036,_0x25651){return _0x12584b(_0x29f036- -0x3e,_0x3cd5f8-_0xe76a12._0x2719ac,_0x29f036-_0xe76a12._0x1934c7,_0x3cd5f8);}const _0x37054f=_0x1acebd[_0x52e748(0x620,0x47a,0x535,_0x54cd9f._0x3eeb77)]??DEFAULT_TIMEOUT_MS,_0x199817=_0x1acebd['stripAnsi']??!![],_0x547c8c=_0x1acebd[_0x106d21(_0x54cd9f._0x2a0179,0x19a,_0x54cd9f._0x1aebca,0x78)]??_0x52e748(_0x54cd9f._0x3d575f,_0x54cd9f._0x2dea9d,0x432,0x47b);return defineTool({'name':_0x547c8c,'description':_0x1acebd[_0x106d21(0x157,0x8d,0xdf,_0x54cd9f._0x159720)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x106d21(_0x54cd9f._0x4fefd2,-_0x54cd9f._0x69c400,0xa2,0xf4),'properties':{'command':{'type':_0x52e748(_0x54cd9f._0x228253,0x3c7,_0x54cd9f._0x443696,0x338)},'cwd':{'type':_0x52e748(_0x54cd9f._0x5ade68,0x321,0x3f8,0x34c)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x52e748(0x45f,0x51a,_0x54cd9f._0x477d4d,_0x54cd9f._0x3bbffb)}},'required':['command']},async *'execute'(_0xf64ac7,_0x3eb1cb){const _0x20f9b7={_0x44e6cb:0xc8,_0x4de9ec:0x16a,_0xce7c3c:0x190,_0x3ae8b8:0x132,_0x252cda:0x17d,_0x1a86e0:0xa9},_0x55bc05={_0x108818:0x1bd,_0x672e04:0x16e,_0x435348:0x188,_0x3170bf:0x67,_0x42fc9b:0x154,_0x4d20a6:0x97,_0x4dc13a:0xf4,_0x28cdcc:0x75,_0x256d3e:0x6c},_0x597f5b={_0x143de2:0x100,_0x1cc9d8:0x63},_0x2da6a7={_0x13c292:0x19,_0x1c37fc:0x62,_0xa572d1:0x14},_0x5400e7={_0x3cf2a2:0xfd},_0x1b512f={_0x33a9b9:0x63,_0x1330f7:0x172},_0x5080aa=_0xf64ac7[_0x452337(_0x3e5913._0x27d8c0,0x35c,0x349,0x2cb)]??_0x37054f;if(!Number[_0x452337(0x216,0x373,_0x3e5913._0xfe6365,_0x3e5913._0x2d57ed)](_0x5080aa)||_0x5080aa<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0xf64ac7['command']});throwIfAborted(_0x3eb1cb['signal']);const _0x5b69ad=resolveWorkingDirectory(_0xf64ac7[_0x2b4850(0x1c9,0x19d,_0x3e5913._0x24b38b,_0x3e5913._0x48c104)],_0x516aa5,_0x5bf1aa),_0x12ca1e=_0xf64ac7['ignoreOutput']??![],_0x110c5=resolveDefaultShell(_0x1acebd[_0x2b4850(0x315,_0x3e5913._0x2b2a9e,0x2e5,_0x3e5913._0x1fa4b2)]),_0x547ae1=buildShellArgs(_0xf64ac7[_0x2b4850(0x1fa,_0x3e5913._0x62440d,0x1bd,_0x3e5913._0x1d71fc)],_0x110c5),_0x476fd3=_0x2b14f8['platform']()===_0x2b4850(_0x3e5913._0x3a512,0x261,_0x3e5913._0x4da60a,0x21b);let _0xb27366;try{_0xb27366=spawn(_0x110c5,_0x547ae1,{'cwd':_0x5b69ad,'env':{...process['env'],..._0x1acebd['env']??{}},'stdio':_0x12ca1e?[_0x2b4850(0x2ce,_0x3e5913._0x1abc3e,_0x3e5913._0x337cb3,_0x3e5913._0x2ecf90),_0x452337(0x3be,0x393,_0x3e5913._0x5abaf7,_0x3e5913._0x20a7a3),_0x2b4850(0x2de,_0x3e5913._0x49f6af,0x328,_0x3e5913._0x460aca)]:[_0x2b4850(0x28f,_0x3e5913._0x241db7,_0x3e5913._0x337cb3,_0x3e5913._0xae9c9b),_0x452337(0x25d,0x36e,0x2b3,0x26d),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x476fd3});}catch(_0x57143b){if(isErrnoException(_0x57143b)&&_0x57143b[_0x2b4850(0x368,_0x3e5913._0x191201,0x2ce,_0x3e5913._0x3dc28a)]===_0x452337(_0x3e5913._0x251a53,0x2a9,_0x3e5913._0x567052,0x2cb))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x110c5,{'command':_0xf64ac7['command'],'cwd':_0x5b69ad,'shellPath':_0x110c5});throw new ToolExecutionError(_0x57143b instanceof Error?_0x57143b[_0x2b4850(_0x3e5913._0x2e8a6f,_0x3e5913._0x5b3f5c,_0x3e5913._0x5464a2,0x1a1)]:String(_0x57143b),{'command':_0xf64ac7[_0x2b4850(_0x3e5913._0x406225,0x106,_0x3e5913._0x28bb31,0x2a5)],'cwd':_0x5b69ad,'shellPath':_0x110c5});}const _0x3fd670=[],_0x1345da=[],_0x1256f1=new StringDecoder(_0x2b4850(0x381,_0x3e5913._0x36260f,0x312,0x325)),_0x1e9e8c=new StringDecoder(_0x2b4850(0x244,0x3c6,0x312,0x378));let _0x17478e,_0x4b89bb=![],_0x156c1d;const _0x35dc4e=()=>{if(!_0x17478e)return;const _0x5aae21=_0x17478e;_0x17478e=void 0x0,_0x5aae21();},_0x3519df=async()=>{if(_0x1345da['length']>0x0||_0x4b89bb)return;await new Promise(_0x5dad82=>{_0x17478e=_0x5dad82;});},_0x3455bf=_0x7c9321=>{appendChunk(_0x3fd670,_0x1345da,_0x1256f1['write'](_0x7c9321),_0x199817,_0x35dc4e);},_0x3212b2=_0x540c06=>{appendChunk(_0x3fd670,_0x1345da,_0x1e9e8c['write'](_0x540c06),_0x199817,_0x35dc4e);};_0xb27366[_0x452337(_0x3e5913._0x3bd2b9,_0x3e5913._0x2b0d1e,_0x3e5913._0x4e1b07,0x1c1)]?.['on']('data',_0x3455bf);function _0x452337(_0x48ceca,_0x4b4812,_0x225c34,_0x17e0d0){return _0x52e748(_0x48ceca-_0x1b512f._0x33a9b9,_0x17e0d0,_0x225c34- -_0x1b512f._0x1330f7,_0x17e0d0-0xfb);}function _0x2b4850(_0x56b91c,_0x49fb1e,_0x5de17b,_0xe454ee){return _0x52e748(_0x56b91c-0x1a5,_0x56b91c,_0x5de17b- -_0x1307d5._0x39aaee,_0xe454ee-_0x1307d5._0x50d728);}_0xb27366[_0x452337(_0x3e5913._0x5e7076,_0x3e5913._0x529ff3,0x300,_0x3e5913._0x4fd34f)]?.['on'](_0x2b4850(_0x3e5913._0x2937f2,0x220,0x2a8,0x392),_0x3212b2);let _0x3eec6c=![],_0x477398;const _0x2c878a=addAbortListener(_0x3eb1cb[_0x2b4850(_0x3e5913._0x4fc0a0,0x1a8,0x1e4,0x27c)],()=>{_0x156c1d=toAbortError(_0x3eb1cb['signal'][_0x324ec3(-_0x2da6a7._0x13c292,0x12,_0x2da6a7._0x1c37fc,-_0x2da6a7._0xa572d1)]);function _0x324ec3(_0x40d242,_0x2041a,_0x21d150,_0x3e5c15){return _0x452337(_0x40d242-0x172,_0x2041a-_0x5400e7._0x3cf2a2,_0x21d150- -0x358,_0x2041a);}_0x4b89bb=!![],_0x35dc4e();try{killProcessGroup(_0xb27366,_0x476fd3);}catch{}});try{const _0x4c31eb=new Promise((_0x164d11,_0x50c89c)=>{const _0x229b21={_0xbd97f5:0x305,_0x55e96b:0x2a2,_0x47f2bf:0x2d6,_0x261e68:0x31f,_0x5dce10:0x208,_0x5f24f8:0x216,_0x325dce:0x225,_0x117a76:0x169,_0x20a128:0x11c},_0x2c89c3={_0x2ccadd:0x1c1,_0x4f3bcd:0x7e,_0x12cf59:0x16d,_0x3dfd7e:0x0},_0x217dec={_0x3a6ab7:0x8b};function _0x2bb0d7(_0x5e3481,_0x140a4d,_0x3c0922,_0x3b0998){return _0x452337(_0x5e3481-_0x217dec._0x3a6ab7,_0x140a4d-0x10a,_0x3c0922- -0x3a3,_0x3b0998);}function _0x1b0333(_0x3c7b92,_0x46d4e6,_0x575259,_0x9d6139){return _0x2b4850(_0x3c7b92,_0x46d4e6-_0x597f5b._0x143de2,_0x9d6139- -0x95,_0x9d6139-_0x597f5b._0x1cc9d8);}const _0x2909f9=()=>{const _0xccf355={_0x474f00:0x229};function _0x2d6c53(_0x34c32,_0x2aee11,_0x134405,_0x2aa528){return _0x5452(_0x134405- -0xf9,_0x2aa528);}function _0x35fff4(_0x5d9d7c,_0x2f0f2d,_0x4fe019,_0x54e5b1){return _0x5452(_0x2f0f2d- -_0xccf355._0x474f00,_0x4fe019);}_0x477398&&(clearTimeout(_0x477398),_0x477398=void 0x0),_0xb27366[_0x2d6c53(_0x55bc05._0x108818,0x221,_0x55bc05._0x672e04,_0x55bc05._0x435348)](_0x35fff4(-_0x55bc05._0x3170bf,-0x132,-0x1b8,-0x7d),_0x428c75),_0xb27366[_0x2d6c53(_0x55bc05._0x42fc9b,_0x55bc05._0x4d20a6,_0x55bc05._0x672e04,0x21e)](_0x35fff4(-_0x55bc05._0x4dc13a,-_0x55bc05._0x28cdcc,-_0x55bc05._0x256d3e,-0x5),_0x136c5b);},_0x428c75=_0x5da1c7=>{_0x4b89bb=!![],_0x35dc4e(),_0x2909f9(),_0x50c89c(_0x156c1d??_0x5da1c7);},_0x136c5b=(_0x23ed27,_0x471564)=>{_0x3eec6c=!![],appendChunk(_0x3fd670,_0x1345da,_0x1256f1[_0x3f0bab(-_0x2c89c3._0x2ccadd,-0x1e4,-0x253,-0x27d)](),_0x199817,_0x35dc4e);function _0x305ab9(_0x506617,_0xf93f99,_0x46d7ba,_0xc0b04a){return _0x5452(_0xc0b04a-0x13,_0x506617);}appendChunk(_0x3fd670,_0x1345da,_0x1e9e8c[_0x305ab9(_0x2c89c3._0x4f3bcd,_0x2c89c3._0x12cf59,_0x2c89c3._0x3dfd7e,0xdd)](),_0x199817,_0x35dc4e),_0x4b89bb=!![],_0x35dc4e(),_0x2909f9();function _0x3f0bab(_0x33d9c1,_0x5633a8,_0x464c65,_0x52ae84){return _0x5452(_0x5633a8- -0x2ae,_0x52ae84);}if(_0x156c1d){_0x50c89c(_0x156c1d);return;}_0x164d11({'code':_0x23ed27,'signal':_0x471564});};_0x477398=setTimeout(()=>{_0x4b89bb=!![],_0x35dc4e(),_0x2909f9();function _0x15a69e(_0x495adb,_0x22bad2,_0x5a9e6a,_0x3cb4e0){return _0x5452(_0x22bad2-0x8f,_0x3cb4e0);}try{killProcessGroup(_0xb27366,_0x476fd3);}catch{}function _0x149f1f(_0x2c91d9,_0x397248,_0x3ed4cf,_0x10c69e){return _0x5452(_0x3ed4cf- -0x36f,_0x397248);}_0x50c89c(new ToolExecutionError(_0x15a69e(_0x229b21._0xbd97f5,_0x229b21._0x55e96b,_0x229b21._0x47f2bf,_0x229b21._0x261e68)+_0x5080aa+_0x15a69e(_0x229b21._0x5dce10,_0x229b21._0x5f24f8,0x2c4,0x2ac),{'command':_0xf64ac7[_0x15a69e(_0x229b21._0x325dce,0x178,_0x229b21._0x117a76,_0x229b21._0x20a128)],'cwd':_0x5b69ad,'shellPath':_0x110c5,'timeoutMs':_0x5080aa,'timedOut':!![]}));},_0x5080aa),_0xb27366['once'](_0x1b0333(_0x20f9b7._0x44e6cb,0x132,0x18d,0x136),_0x428c75),_0xb27366[_0x1b0333(_0x20f9b7._0x4de9ec,0x169,_0x20f9b7._0xce7c3c,0x20f)](_0x2bb0d7(-_0x20f9b7._0x3ae8b8,-_0x20f9b7._0x252cda,-_0x20f9b7._0x1a86e0,-0x6c),_0x136c5b);});while(_0x1345da[_0x452337(_0x3e5913._0x4c4e2d,_0x3e5913._0x83382a,0x22e,0x179)]>0x0||!_0x4b89bb){if(_0x1345da['length']===0x0){await _0x3519df();continue;}const _0xa99d35=_0x1345da[_0x452337(0x1df,_0x3e5913._0xf47134,0x285,_0x3e5913._0x4c4e2d)]();_0xa99d35!==void 0x0&&(yield _0xa99d35);}const _0x3f4a74=await _0x4c31eb,_0x131dcd=_0x12ca1e?_0x452337(0x24c,0x3cb,0x337,_0x3e5913._0x567a2c)+(_0x3f4a74['code']??0x0):_0x3fd670[_0x2b4850(_0x3e5913._0x541423,0x384,0x29b,0x216)](''),_0x1bac2e={'command':_0xf64ac7['command'],'cwd':_0x5b69ad,'exitCode':_0x3f4a74['code']??0x0,'signal':_0x3f4a74[_0x452337(0x1b2,_0x3e5913._0x4974db,0x256,0x2a6)],'ignoreOutput':_0x12ca1e,'shellPath':_0x110c5,'timeoutMs':_0x5080aa};if(_0x3f4a74[_0x452337(_0x3e5913._0x2b2a9e,0x27e,_0x3e5913._0x3ecae7,_0x3e5913._0x1ce549)]!==0x0)throw new ToolExecutionError(_0x131dcd||'Command\x20exited\x20with\x20code\x20'+(_0x3f4a74[_0x452337(0x325,_0x3e5913._0x294b31,_0x3e5913._0x3ecae7,0x424)]??0x0),_0x1bac2e);return createToolOutput(_0x131dcd,_0x1bac2e);}catch(_0x17d2f7){while(_0x1345da[_0x452337(0x176,_0x3e5913._0x1b147f,0x22e,0x24a)]>0x0){const _0x531e39=_0x1345da['shift']();_0x531e39!==void 0x0&&(yield _0x531e39);}if(_0x17d2f7 instanceof ToolExecutionError)throw _0x17d2f7;if(_0x156c1d)throw _0x156c1d;if(isErrnoException(_0x17d2f7)&&_0x17d2f7[_0x452337(_0x3e5913._0x248d39,0x2d2,0x340,_0x3e5913._0x2a33ba)]==='ENOENT')throw new ToolExecutionError(_0x2b4850(_0x3e5913._0x1237c0,0x3a6,_0x3e5913._0x15754a,_0x3e5913._0x3afc69)+_0x110c5,{'command':_0xf64ac7[_0x452337(_0x3e5913._0x16d230,0x203,_0x3e5913._0x49fa0f,_0x3e5913._0x2a6a0a)],'cwd':_0x5b69ad,'shellPath':_0x110c5});throw new ToolExecutionError(_0x17d2f7 instanceof Error?_0x17d2f7[_0x2b4850(_0x3e5913._0x17518d,_0x3e5913._0x5a26bd,0x1b9,_0x3e5913._0x51706a)]:String(_0x17d2f7),{'command':_0xf64ac7[_0x452337(0x304,_0x3e5913._0x57ff01,0x22f,0x1c2)],'cwd':_0x5b69ad,'shellPath':_0x110c5});}finally{_0x477398&&clearTimeout(_0x477398);_0x2c878a(),_0xb27366[_0x2b4850(0x13e,0x10d,0x1f4,0x1a3)]?.['off'](_0x2b4850(0x36b,0x29c,_0x3e5913._0x2995be,0x1bc),_0x3455bf),_0xb27366[_0x452337(0x357,0x30f,0x300,_0x3e5913._0x5bafd5)]?.['off'](_0x452337(_0x3e5913._0xe0a89,0x292,_0x3e5913._0x152cd3,_0x3e5913._0x35ee83),_0x3212b2);if(!_0x3eec6c&&_0xb27366['pid']&&!_0xb27366[_0x452337(0x317,_0x3e5913._0x43e5ed,_0x3e5913._0x3ced75,_0x3e5913._0x4d8a90)])try{killProcessGroup(_0xb27366,_0x476fd3);}catch{}}}});}function _0x5452(_0x31cc41,_0x26e1d5){_0x31cc41=_0x31cc41-0xc1;const _0x226cd7=_0x226c();let _0x545229=_0x226cd7[_0x31cc41];if(_0x5452['PuTgVZ']===undefined){var _0x5cd835=function(_0xc57024){const _0x505005='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2b14f8='',_0x5f11ce='';for(let _0x2a0156=0x0,_0xe4974e,_0x16da14,_0x4d5086=0x0;_0x16da14=_0xc57024['charAt'](_0x4d5086++);~_0x16da14&&(_0xe4974e=_0x2a0156%0x4?_0xe4974e*0x40+_0x16da14:_0x16da14,_0x2a0156++%0x4)?_0x2b14f8+=String['fromCharCode'](0xff&_0xe4974e>>(-0x2*_0x2a0156&0x6)):0x0){_0x16da14=_0x505005['indexOf'](_0x16da14);}for(let _0x10177f=0x0,_0x3cac84=_0x2b14f8['length'];_0x10177f<_0x3cac84;_0x10177f++){_0x5f11ce+='%'+('00'+_0x2b14f8['charCodeAt'](_0x10177f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f11ce);};_0x5452['ZnPhAo']=_0x5cd835,_0x5452['ojvRap']={},_0x5452['PuTgVZ']=!![];}const _0x3b6772=_0x226cd7[0x0],_0x35657a=_0x31cc41+_0x3b6772,_0x4bbeab=_0x5452['ojvRap'][_0x35657a];return!_0x4bbeab?(_0x545229=_0x5452['ZnPhAo'](_0x545229),_0x5452['ojvRap'][_0x35657a]=_0x545229):_0x545229=_0x4bbeab,_0x545229;}function createShellExecTool(_0x382756={}){return createBashTool(_0x382756);}import{readdir,readFile}from'fs/promises';import{extname,join as _0xe4974e}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x16da14,join,relative as _0x4d5086,resolve as _0x10177f}from'path';import{readdir as _0x3cac84,readFile as _0x2b166c}from'fs/promises';import{join as _0x42c662,relative as _0x4130ca,sep}from'path';import{delimiter}from'path';import{mkdir,rm,stat as _0x5223b0,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x2dcec2}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4f6cc1,rename,writeFile as _0x216242}from'fs/promises';import{homedir}from'os';import{dirname as _0x217830,isAbsolute as _0x2bcd78,join as _0x566dac,resolve as _0x2818f4}from'path';import{parse as _0x44445b,stringify as _0x43f7a4}from'yaml';import{z}from'zod';import{cp,mkdir as _0x18af33,readFile as _0x1cb510,rm as _0x4304e8,writeFile as _0xdb7b1d}from'fs/promises';import{homedir as _0x3259a5}from'os';import{join as _0x5dc5a2}from'path';import{parse as _0x5917ed,stringify as _0x4b8246}from'yaml';import{readdir as _0x3678d8,readFile as _0x214386}from'fs/promises';import{join as _0x1c1b22}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x21f800){const _0x5d5439={_0x17eca5:0x5a2,_0x50c347:0x4b9,_0x26091c:0x3cf,_0x2a61e1:0x439,_0x2c95fb:0x465,_0x119699:0x483,_0x1534dd:0x1d6,_0x5d5b92:0x142,_0x5248e3:0x411,_0x771ad8:0x26,_0xe6bd8:0x7a,_0xe6cafe:0x7,_0x3351d5:0x4fd,_0x250ef1:0x60b},_0x4646cf={_0x2e1fb5:0xd0},_0x4f2df5=[];let _0x2a6927='',_0x3ca661=0x0;while(_0x3ca661<_0x21f800[_0x3e602c(0x4bb,_0x5d5439._0x17eca5,_0x5d5439._0x50c347,_0x5d5439._0x26091c)]){const _0x522cea=_0x21f800[_0x3ca661];if(_0x522cea==='\x5c'&&_0x3ca661+0x1<_0x21f800[_0x3e602c(_0x5d5439._0x2a61e1,_0x5d5439._0x2c95fb,0x4b9,_0x5d5439._0x119699)])_0x2a6927+=_0x21f800[_0x3ca661+0x1],_0x3ca661+=0x2;else{if(_0x522cea==='\x22'||_0x522cea==='\x27'){const _0x2c5ba0=_0x522cea;_0x3ca661++;while(_0x3ca661<_0x21f800[_0x13b545(-_0x5d5439._0x1534dd,-0x2bd,-0x28b,-_0x5d5439._0x5d5b92)]&&_0x21f800[_0x3ca661]!==_0x2c5ba0){_0x21f800[_0x3ca661]==='\x5c'&&_0x3ca661+0x1<_0x21f800[_0x3e602c(_0x5d5439._0x5248e3,0x567,0x4b9,0x3db)]?(_0x2a6927+=_0x21f800[_0x3ca661+0x1],_0x3ca661+=0x2):(_0x2a6927+=_0x21f800[_0x3ca661],_0x3ca661++);}_0x3ca661++;}else _0x522cea!==void 0x0&&/\s/[_0x13b545(-_0x5d5439._0x771ad8,_0x5d5439._0xe6bd8,-_0x5d5439._0xe6cafe,-0x65)](_0x522cea)?(_0x2a6927&&(_0x4f2df5['push'](_0x2a6927),_0x2a6927=''),_0x3ca661++):(_0x2a6927+=_0x522cea,_0x3ca661++);}}function _0x3e602c(_0x17acec,_0x51d5f9,_0x50cee7,_0x278fce){return _0x12584b(_0x50cee7-0xdb,_0x51d5f9-0xb3,_0x50cee7-_0x4646cf._0x2e1fb5,_0x278fce);}function _0x13b545(_0x370e6f,_0x33f2f4,_0x29d3d2,_0x4d287b){return _0x12584b(_0x370e6f- -0x5b4,_0x33f2f4-0x176,_0x29d3d2-0x1c0,_0x29d3d2);}if(_0x2a6927)_0x4f2df5[_0x3e602c(_0x5d5439._0x3351d5,0x57d,0x529,_0x5d5439._0x250ef1)](_0x2a6927);return _0x4f2df5;}function renderCommandInstructions(_0x547c31){const _0x94f902={_0xde471:0x254,_0x566e68:0x1f1,_0x385979:0x295,_0x9dcefa:0x54a,_0x40cadb:0x512,_0x16e9c2:0x4d5,_0x3d60ef:0x5aa,_0x2a25ec:0x14f,_0x1b4e03:0x10b,_0x37ddbe:0xdb,_0x53768c:0x12e,_0x12b09f:0x93,_0x1bf924:0x278,_0x444ef0:0x1a1,_0x9233b3:0x54a,_0x398600:0x604,_0x19c2c2:0x581,_0x47af1f:0x5b0,_0x4e976d:0x35d,_0x3708b1:0x281,_0x339d1d:0x318,_0x25c1ff:0x1ed,_0x2144e4:0x1d8},_0x7c9e41={_0x2b484f:0xc,_0x256042:0x1ef},_0x208750={_0x8ed572:0x5f};let _0xc2a38d=_0x547c31[_0x56b53f(_0x94f902._0xde471,_0x94f902._0x566e68,0x115,_0x94f902._0x385979)],_0x29e4f4=![];function _0x56b53f(_0x1fadc7,_0x3e3610,_0xa08e8d,_0x2985d3){return _0x12584b(_0x3e3610- -0x2d3,_0x3e3610-0x1ac,_0xa08e8d-_0x208750._0x8ed572,_0x2985d3);}const _0x1e3246=tokenizeCommandArguments(_0x547c31['argumentsText']);_0xc2a38d=_0xc2a38d[_0xbb6ad(_0x94f902._0x9dcefa,_0x94f902._0x40cadb,0x4a2,_0x94f902._0x16e9c2)](/\$ARGUMENTS\[(\d+)\]/g,(_0x123420,_0x11bf40)=>{return _0x29e4f4=!![],_0x1e3246[Number(_0x11bf40)]??'';}),_0xc2a38d=_0xc2a38d['replace'](/\$ARGUMENTS\b/g,()=>{return _0x29e4f4=!![],_0x547c31['argumentsText'];});function _0xbb6ad(_0x17fa58,_0x578217,_0xdaa830,_0xa8ec23){return _0x12584b(_0x17fa58- -_0x7c9e41._0x2b484f,_0x578217-0x129,_0xdaa830-_0x7c9e41._0x256042,_0xdaa830);}if(_0x547c31[_0xbb6ad(0x53f,_0x94f902._0x3d60ef,0x5d5,0x4ca)]&&_0x547c31['argumentNames'][_0x56b53f(_0x94f902._0x2a25ec,_0x94f902._0x1b4e03,_0x94f902._0x37ddbe,0x46)]>0x0)for(let _0x3d781e=0x0;_0x3d781e<_0x547c31['argumentNames'][_0x56b53f(_0x94f902._0x53768c,0x10b,_0x94f902._0x12b09f,0xdd)];_0x3d781e++){const _0x24a273=_0x547c31[_0x56b53f(0x219,_0x94f902._0x1bf924,_0x94f902._0x444ef0,0x1ee)][_0x3d781e];if(_0x24a273){const _0xdc6482=new RegExp('\x5c$'+_0x24a273+'\x5cb','g');_0xc2a38d=_0xc2a38d['replace'](_0xdc6482,()=>{return _0x29e4f4=!![],_0x1e3246[_0x3d781e]??'';});}}return _0xc2a38d=_0xc2a38d[_0xbb6ad(_0x94f902._0x9233b3,0x4f8,_0x94f902._0x398600,0x61c)](/\$(\d+)\b/g,(_0x4fdeb6,_0x55edf0)=>{return _0x29e4f4=!![],_0x1e3246[Number(_0x55edf0)]??'';}),!_0x29e4f4&&_0x547c31['argumentsText'][_0xbb6ad(_0x94f902._0x19c2c2,0x4ef,_0x94f902._0x47af1f,0x569)]()&&(_0xc2a38d=_0xc2a38d+_0x56b53f(_0x94f902._0x4e976d,_0x94f902._0x3708b1,_0x94f902._0x339d1d,_0x94f902._0x25c1ff)+_0x547c31[_0x56b53f(0x1df,_0x94f902._0x2144e4,0x21d,0x1bb)]),_0xc2a38d;}var chatModelAuthSchemeSchema=z[_0x46bf5b(0x430,0x386,0x3b5,0x46f)]([_0x12584b(0x42f,0x387,0x459,0x465),_0x46bf5b(0x42b,0x3f9,0x55d,0x4d5)]),apiKeyAuthSchema=z[_0x46bf5b(0x3c8,0x461,0x4cf,0x425)]({'type':z[_0x46bf5b(0x4d6,0x372,0x4e9,0x418)](_0x12584b(0x3f6,0x41c,0x477,0x3c9)),'apiKey':z[_0x46bf5b(0x3ef,0x4ed,0x3f8,0x479)](),'authScheme':chatModelAuthSchemeSchema[_0x12584b(0x57c,0x632,0x595,0x614)]()})[_0x12584b(0x3d0,0x3fd,0x33a,0x411)](),oauthAuthSchema=z[_0x46bf5b(0x3a5,0x4b9,0x379,0x425)]({'type':z[_0x46bf5b(0x3a0,0x4af,0x392,0x418)]('oauth'),'access':z[_0x46bf5b(0x461,0x50d,0x4f3,0x479)](),'refresh':z['string'](),'expires':z[_0x12584b(0x3ee,0x479,0x3ed,0x3ac)]()[_0x12584b(0x57c,0x652,0x4af,0x57d)](),'authScheme':chatModelAuthSchemeSchema[_0x46bf5b(0x69e,0x645,0x591,0x5bf)]()})[_0x46bf5b(0x430,0x402,0x3d5,0x413)](),authMethodSchema=z[_0x12584b(0x425,0x3dd,0x3fb,0x46e)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x46bf5b(0x491,0x464,0x43a,0x425)]({'id':z[_0x46bf5b(0x460,0x486,0x3ac,0x479)](),'name':z[_0x46bf5b(0x50f,0x3ec,0x536,0x479)]()['optional']()})['passthrough'](),modelConfigSchema=z['union']([z[_0x46bf5b(0x3c2,0x501,0x364,0x418)](![]),z[_0x46bf5b(0x375,0x424,0x391,0x418)](!![]),z[_0x12584b(0x436,0x484,0x3f7,0x476)](),z[_0x12584b(0x41b,0x4b8,0x370,0x4bc)](z[_0x46bf5b(0x426,0x4be,0x460,0x479)]()),z['array'](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x46bf5b(0x391,0x3d0,0x3b0,0x46f)]([_0x46bf5b(0x4f4,0x4f5,0x585,0x58a),'openai-chat-completions',_0x46bf5b(0x4be,0x48f,0x3ec,0x44d),_0x12584b(0x49d,0x544,0x47c,0x533)]),providerConfigSchema=z[_0x12584b(0x3e2,0x469,0x44e,0x3ed)]({'apiKey':z[_0x46bf5b(0x47b,0x524,0x3a2,0x479)]()[_0x12584b(0x57c,0x513,0x56d,0x4ef)](),'token':z[_0x12584b(0x436,0x493,0x4e0,0x455)]()[_0x46bf5b(0x58b,0x4ee,0x6a0,0x5bf)](),'defaultModel':z[_0x12584b(0x436,0x48b,0x3c0,0x488)]()['optional'](),'smallModel':z['string']()['optional'](),'currentAuth':z[_0x46bf5b(0x3d6,0x445,0x4f8,0x479)]()['optional'](),'auth':z[_0x12584b(0x41b,0x423,0x4ef,0x3dc)](authMethodSchema)[_0x12584b(0x57c,0x644,0x64d,0x541)](),'surface':chatModelSurfaceSchema[_0x46bf5b(0x58e,0x5b6,0x543,0x5bf)](),'baseUrl':z['string']()['optional'](),'models':modelConfigSchema[_0x46bf5b(0x666,0x630,0x671,0x5bf)](),'customHeaders':z[_0x46bf5b(0x400,0x4f0,0x39f,0x470)](z[_0x46bf5b(0x52a,0x4eb,0x4f1,0x479)](),z[_0x46bf5b(0x553,0x53e,0x3be,0x479)]())[_0x46bf5b(0x56c,0x4d4,0x59f,0x5bf)]()})['passthrough'](),mcpServerConfigSchema=z[_0x12584b(0x3e2,0x309,0x3b3,0x406)]({'command':z[_0x12584b(0x436,0x51c,0x498,0x40c)]()[_0x12584b(0x57c,0x54a,0x4ce,0x4b6)](),'args':z['array'](z[_0x46bf5b(0x41a,0x500,0x419,0x479)]())[_0x12584b(0x57c,0x4a1,0x4fa,0x557)](),'env':z[_0x12584b(0x42d,0x47c,0x3b7,0x46b)](z[_0x46bf5b(0x42e,0x4e5,0x440,0x479)](),z[_0x12584b(0x436,0x4e4,0x3f7,0x457)]())[_0x46bf5b(0x522,0x567,0x643,0x5bf)](),'transport':z['enum']([_0x46bf5b(0x68d,0x5d1,0x61e,0x5be),_0x12584b(0x561,0x634,0x5bc,0x581)])[_0x12584b(0x57c,0x4a9,0x50f,0x615)](),'url':z[_0x46bf5b(0x501,0x436,0x3cc,0x479)]()[_0x46bf5b(0x53a,0x56a,0x63a,0x5bf)](),'headers':z['record'](z[_0x46bf5b(0x3b6,0x401,0x533,0x479)](),z[_0x12584b(0x436,0x37f,0x42f,0x390)]())[_0x46bf5b(0x670,0x5c3,0x51c,0x5bf)](),'prefix':z[_0x46bf5b(0x496,0x488,0x3f4,0x479)]()[_0x46bf5b(0x572,0x57c,0x64f,0x5bf)](),'timeoutMs':z[_0x46bf5b(0x370,0x3c1,0x3b7,0x431)]()[_0x46bf5b(0x5f4,0x4fb,0x668,0x5bf)](),'enabled':z[_0x46bf5b(0x55c,0x490,0x5cb,0x546)]()[_0x46bf5b(0x59f,0x67f,0x619,0x5bf)](),'auth':z[_0x12584b(0x3e2,0x379,0x3f0,0x3f4)]({'type':z[_0x46bf5b(0x4ac,0x4fe,0x512,0x46f)](['none',_0x12584b(0x42f,0x4e8,0x34e,0x3af),_0x46bf5b(0x47f,0x4f0,0x3e5,0x456)]),'token':z[_0x46bf5b(0x4c0,0x44a,0x3bd,0x479)]()[_0x12584b(0x57c,0x4bb,0x542,0x5bc)](),'oauth':z[_0x12584b(0x3e2,0x322,0x316,0x430)]({'clientId':z['string']()['optional'](),'clientMetadataUrl':z[_0x46bf5b(0x4c6,0x480,0x530,0x479)]()[_0x12584b(0x57c,0x5d6,0x52d,0x5ef)](),'authorizationServer':z[_0x46bf5b(0x4e1,0x3e8,0x40c,0x479)]()[_0x46bf5b(0x633,0x565,0x5db,0x5bf)](),'scopes':z[_0x46bf5b(0x424,0x486,0x4d8,0x45e)](z['string']())['optional'](),'tokenStorageKey':z[_0x12584b(0x436,0x4c0,0x4d5,0x3c8)]()[_0x12584b(0x57c,0x549,0x529,0x510)]()})[_0x12584b(0x3d0,0x3ce,0x37f,0x4b0)]()[_0x12584b(0x57c,0x4e2,0x51d,0x5d0)]()})[_0x46bf5b(0x4f4,0x39b,0x4f9,0x413)]()['optional']()})[_0x12584b(0x3d0,0x397,0x375,0x43f)](),mcpSettingsSchema=z[_0x46bf5b(0x413,0x45f,0x367,0x425)]({'servers':z['record'](z[_0x12584b(0x436,0x508,0x478,0x4dc)](),mcpServerConfigSchema)[_0x12584b(0x57c,0x55f,0x4a4,0x4fb)](),'allowedTools':z[_0x12584b(0x42d,0x399,0x41b,0x37f)](z[_0x46bf5b(0x548,0x49e,0x51b,0x479)](),z[_0x46bf5b(0x3ac,0x543,0x430,0x470)](z[_0x12584b(0x436,0x417,0x466,0x35b)](),z[_0x46bf5b(0x597,0x489,0x5b7,0x546)]()))['optional'](),'defaultTimeoutMs':z[_0x12584b(0x3ee,0x3d7,0x42f,0x358)]()[_0x12584b(0x57c,0x511,0x4d0,0x4aa)]()})['passthrough'](),skillsSettingsSchema=z[_0x46bf5b(0x3b8,0x3fe,0x377,0x425)]({'enabled':z[_0x12584b(0x503,0x53f,0x555,0x59c)]()[_0x46bf5b(0x5f3,0x5c9,0x5af,0x5bf)](),'includeDefaults':z[_0x46bf5b(0x59a,0x486,0x507,0x546)]()[_0x46bf5b(0x61c,0x506,0x4f0,0x5bf)](),'directories':z[_0x12584b(0x41b,0x465,0x342,0x3d1)](z[_0x12584b(0x436,0x3e3,0x4e8,0x4fc)]())[_0x12584b(0x57c,0x50d,0x5b1,0x5fa)](),'exclude':z[_0x12584b(0x41b,0x463,0x494,0x37c)](z[_0x12584b(0x436,0x3c5,0x48a,0x4f8)]())[_0x46bf5b(0x679,0x5c8,0x59c,0x5bf)]()})[_0x46bf5b(0x44f,0x3d9,0x4df,0x413)](),commandsSettingsSchema=z[_0x12584b(0x3e2,0x391,0x41f,0x331)]({'enabled':z['boolean']()['optional'](),'directories':z[_0x46bf5b(0x3b5,0x498,0x37e,0x45e)](z[_0x46bf5b(0x530,0x4f2,0x4c6,0x479)]())[_0x46bf5b(0x5a5,0x5d4,0x4f0,0x5bf)]()})['passthrough'](),agentsSettingsSchema=z[_0x46bf5b(0x4d5,0x354,0x449,0x425)]({'enabled':z['boolean']()[_0x46bf5b(0x66b,0x549,0x631,0x5bf)](),'includeDefaults':z[_0x46bf5b(0x630,0x62a,0x536,0x546)]()['optional'](),'directories':z['array'](z['string']())[_0x46bf5b(0x574,0x4fc,0x5f9,0x5bf)]()})[_0x46bf5b(0x3a0,0x367,0x413,0x413)](),uiThemeSettingsSchema=z[_0x46bf5b(0x379,0x349,0x340,0x425)]({'mode':z[_0x12584b(0x42c,0x451,0x4f3,0x34c)]([_0x46bf5b(0x442,0x529,0x5e0,0x4fb),_0x12584b(0x497,0x3c1,0x4a5,0x4a6),_0x12584b(0x575,0x616,0x57c,0x53e)])[_0x12584b(0x57c,0x5fd,0x559,0x576)](),'colorLevel':z[_0x12584b(0x42c,0x358,0x44b,0x365)]([_0x46bf5b(0x4a6,0x54e,0x485,0x4fb),_0x12584b(0x4b1,0x42b,0x4b3,0x42b),_0x12584b(0x54c,0x4f0,0x483,0x521),'ansi256',_0x46bf5b(0x678,0x589,0x59d,0x5b3)])[_0x12584b(0x57c,0x4f7,0x4d7,0x5da)](),'backgrounds':z[_0x12584b(0x42c,0x340,0x4ca,0x3b6)]([_0x46bf5b(0x497,0x473,0x595,0x4fb),'on',_0x46bf5b(0x55f,0x58a,0x5df,0x5a0)])['optional'](),'messageStyle':z['enum']([_0x46bf5b(0x555,0x513,0x3c8,0x49d),_0x12584b(0x3e1,0x4af,0x340,0x3be)])[_0x46bf5b(0x509,0x64d,0x628,0x5bf)]()})[_0x12584b(0x3d0,0x31a,0x462,0x4b5)](),statuslineSegmentSchema=z[_0x12584b(0x42c,0x45a,0x428,0x427)](['model',_0x12584b(0x496,0x4a7,0x3cd,0x53d),_0x12584b(0x56f,0x539,0x4b3,0x4d6),_0x12584b(0x3cb,0x3ac,0x361,0x428),_0x12584b(0x4ba,0x3e9,0x485,0x480),_0x46bf5b(0x476,0x44d,0x430,0x480),_0x12584b(0x4e8,0x523,0x5b1,0x5d0),'requests',_0x12584b(0x589,0x516,0x59b,0x642),_0x46bf5b(0x51f,0x3fe,0x3bf,0x48f),_0x12584b(0x564,0x49f,0x5ab,0x4e1),_0x46bf5b(0x4f5,0x4f2,0x65c,0x582),_0x46bf5b(0x482,0x490,0x39b,0x47a),_0x46bf5b(0x4e9,0x575,0x61a,0x556),_0x12584b(0x48f,0x4b9,0x4cf,0x494)]),statuslineItemSchema=z[_0x46bf5b(0x46f,0x40b,0x499,0x468)]([statuslineSegmentSchema,z[_0x46bf5b(0x445,0x3f6,0x40d,0x418)]('|')]),statuslineRowSchema=z[_0x12584b(0x41b,0x3c8,0x463,0x4a0)](statuslineItemSchema),statuslineConfigSchema=z[_0x46bf5b(0x39e,0x440,0x3e7,0x425)]({'rows':z[_0x46bf5b(0x4a4,0x531,0x551,0x584)]([statuslineRowSchema,statuslineRowSchema])['optional']()})['passthrough'](),memorySettingsSchema=z[_0x46bf5b(0x46c,0x3f5,0x50a,0x425)]({'version':z['literal'](0x2)[_0x46bf5b(0x66b,0x682,0x65b,0x5bf)](),'retrieval':z[_0x46bf5b(0x4f7,0x3fc,0x40b,0x425)]({'engine':z[_0x12584b(0x3d5,0x39e,0x4a7,0x326)](_0x12584b(0x4d5,0x4c6,0x583,0x4a2))[_0x12584b(0x57c,0x53d,0x63c,0x4cf)](),'candidateLimit':z[_0x46bf5b(0x414,0x4b8,0x465,0x431)]()[_0x12584b(0x57c,0x560,0x4d5,0x51e)](),'activeCandidateLimit':z['number']()[_0x46bf5b(0x4d8,0x53f,0x64d,0x5bf)](),'activeEnabled':z[_0x12584b(0x503,0x57e,0x459,0x5ab)]()[_0x12584b(0x57c,0x569,0x61f,0x545)](),'maxQueriesPerTurn':z[_0x12584b(0x3ee,0x346,0x39e,0x38d)]()['optional'](),'coreInjectTokenBudget':z[_0x12584b(0x3ee,0x4c5,0x336,0x420)]()['optional'](),'injectTokenBudget':z[_0x12584b(0x3ee,0x434,0x47d,0x307)]()['optional'](),'minScore':z[_0x46bf5b(0x488,0x45c,0x491,0x431)]()[_0x12584b(0x57c,0x4a0,0x5b0,0x541)](),'freshnessHalfLifeDays':z[_0x12584b(0x3ee,0x31a,0x3e5,0x369)]()[_0x12584b(0x57c,0x57f,0x576,0x5b5)]()})[_0x46bf5b(0x419,0x36b,0x4d6,0x413)]()[_0x12584b(0x57c,0x49f,0x58b,0x5da)](),'extraction':z[_0x12584b(0x3e2,0x474,0x4b8,0x397)]({'enabled':z[_0x12584b(0x503,0x45d,0x420,0x53a)]()[_0x12584b(0x57c,0x5c6,0x5e0,0x505)](),'provider':z[_0x46bf5b(0x510,0x541,0x395,0x479)]()['optional'](),'model':z[_0x12584b(0x436,0x361,0x411,0x3d7)]()[_0x12584b(0x57c,0x56b,0x5a0,0x53b)](),'sensitiveFilter':z[_0x46bf5b(0x4ee,0x525,0x4d6,0x546)]()[_0x12584b(0x57c,0x507,0x4cc,0x564)]()})[_0x12584b(0x3d0,0x4b2,0x4a1,0x3dc)]()['optional'](),'index':z[_0x46bf5b(0x510,0x35e,0x42f,0x425)]({'persisted':z[_0x12584b(0x503,0x52a,0x51a,0x4aa)]()[_0x46bf5b(0x635,0x690,0x53b,0x5bf)](),'flushIntervalMs':z['number']()[_0x12584b(0x57c,0x63b,0x64b,0x564)]()})[_0x12584b(0x3d0,0x32a,0x340,0x374)]()[_0x12584b(0x57c,0x609,0x529,0x622)](),'enabled':z[_0x12584b(0x503,0x473,0x450,0x5b2)]()[_0x46bf5b(0x517,0x5c3,0x5cf,0x5bf)](),'saveTool':z[_0x46bf5b(0x563,0x4b0,0x516,0x546)]()['optional'](),'model':z[_0x46bf5b(0x4dd,0x453,0x4da,0x479)]()[_0x12584b(0x57c,0x5f6,0x5e4,0x668)](),'provider':z['string']()[_0x46bf5b(0x57c,0x5c9,0x5cd,0x5bf)](),'maxInjectionTokens':z[_0x46bf5b(0x397,0x4c2,0x36b,0x431)]()[_0x12584b(0x57c,0x4b7,0x4da,0x4db)](),'backgroundExtraction':z['boolean']()['optional']()})['passthrough'](),recentModelSchema=z[_0x46bf5b(0x4c1,0x43c,0x450,0x425)]({'provider':z[_0x46bf5b(0x540,0x428,0x412,0x479)](),'model':z[_0x12584b(0x436,0x505,0x50c,0x3a4)](),'usedAt':z[_0x12584b(0x3ee,0x357,0x319,0x353)]()})[_0x12584b(0x3d0,0x2ea,0x464,0x418)](),lspServerEntrySchema=z[_0x46bf5b(0x4d9,0x3c7,0x377,0x425)]({'disabled':z[_0x12584b(0x503,0x4a0,0x44d,0x4ca)]()[_0x46bf5b(0x67e,0x557,0x549,0x5bf)](),'command':z['string']()['optional'](),'args':z[_0x46bf5b(0x455,0x52c,0x385,0x45e)](z[_0x46bf5b(0x45c,0x45b,0x54a,0x479)]())[_0x46bf5b(0x55d,0x4dd,0x4de,0x5bf)](),'rootMarkers':z['array'](z['string']())[_0x12584b(0x57c,0x657,0x58d,0x58c)]()})[_0x12584b(0x3d0,0x3e9,0x33c,0x479)](),lspConfigSchema=z[_0x12584b(0x3e2,0x319,0x404,0x470)]({'enabled':z[_0x46bf5b(0x5c4,0x5ee,0x5db,0x546)]()[_0x12584b(0x57c,0x668,0x49c,0x56d)](),'servers':z[_0x12584b(0x42d,0x3ac,0x3ab,0x3be)](z['string'](),lspServerEntrySchema)[_0x12584b(0x57c,0x4f0,0x569,0x51b)]()})[_0x46bf5b(0x3f0,0x339,0x44c,0x413)](),cliConfigSchema=z[_0x12584b(0x3e2,0x39c,0x3b3,0x364)]({'activeProvider':z[_0x46bf5b(0x458,0x552,0x423,0x479)]()['optional'](),'activeModel':z['string']()['optional'](),'apiKey':z[_0x12584b(0x436,0x476,0x3e5,0x477)]()['optional'](),'providers':z['record'](z['string'](),providerConfigSchema)[_0x12584b(0x57c,0x619,0x4f2,0x64a)](),'mcp':mcpSettingsSchema[_0x46bf5b(0x6a3,0x4ee,0x66c,0x5bf)](),'skills':skillsSettingsSchema[_0x46bf5b(0x5e8,0x4f9,0x570,0x5bf)](),'agents':agentsSettingsSchema['optional'](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x12584b(0x42d,0x381,0x47b,0x3bc)](z[_0x46bf5b(0x508,0x48e,0x461,0x479)](),z[_0x12584b(0x503,0x5e7,0x472,0x49e)]())[_0x46bf5b(0x4f2,0x56e,0x4e4,0x5bf)](),'memory':memorySettingsSchema['optional'](),'session':z[_0x46bf5b(0x406,0x48f,0x4b0,0x425)]({'memPersist':z[_0x46bf5b(0x4d7,0x461,0x5ea,0x546)]()['optional'](),'persistEventLog':z['boolean']()[_0x12584b(0x57c,0x4ae,0x569,0x49e)](),'persistHttpLog':z[_0x12584b(0x503,0x492,0x5ba,0x50c)]()[_0x12584b(0x57c,0x50d,0x50a,0x600)]()})['passthrough']()[_0x12584b(0x57c,0x4e4,0x597,0x617)](),'requireToolApproval':z['boolean']()[_0x46bf5b(0x622,0x586,0x4f3,0x5bf)](),'thinking':z[_0x12584b(0x42c,0x489,0x480,0x4c1)]([_0x12584b(0x4be,0x3fb,0x466,0x492),_0x46bf5b(0x4b4,0x3d5,0x440,0x400),_0x12584b(0x53c,0x549,0x56a,0x503),_0x46bf5b(0x557,0x527,0x449,0x4b1)])['optional'](),'streamingChunks':z['boolean']()[_0x46bf5b(0x57c,0x52d,0x5c1,0x5bf)](),'agentsEnabled':z[_0x46bf5b(0x53a,0x44d,0x395,0x470)](z[_0x46bf5b(0x3a2,0x49d,0x517,0x479)](),z[_0x12584b(0x503,0x5ea,0x469,0x4d1)]())[_0x46bf5b(0x632,0x69c,0x67c,0x5bf)](),'recentModels':z[_0x46bf5b(0x545,0x40b,0x3ca,0x45e)](recentModelSchema)[_0x12584b(0x57c,0x522,0x631,0x5b5)](),'lsp':lspConfigSchema['optional'](),'ui':z[_0x12584b(0x3e2,0x397,0x2f8,0x32a)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x12584b(0x57c,0x5ea,0x534,0x62b)]()})[_0x12584b(0x3d0,0x37d,0x428,0x38d)]()['optional'](),'tools':z[_0x12584b(0x42d,0x4f0,0x445,0x3ef)](z[_0x46bf5b(0x526,0x4bc,0x3a2,0x479)](),z['unknown']())['optional']()})[_0x12584b(0x3d0,0x3f7,0x3ed,0x3a9)]();function buildDescription(_0x36a0ad){const _0x592594={_0x3f391f:0x65,_0xc97ebe:0x53,_0x3fcf10:0x457,_0x3c49d1:0x40e,_0x5ebc5b:0x337,_0x2e046d:0xab,_0x304d79:0x150,_0x433368:0x177,_0x4a1498:0xcb,_0x49ecc8:0xae,_0x86c4c7:0x3bb,_0x406c76:0x4b8,_0x499b54:0x88,_0x1689f6:0x151,_0x28a9f0:0x1c6,_0x581446:0x95,_0x2227d2:0x13,_0x5884b3:0x0,_0x5b5f8b:0xeb,_0x5380db:0x8},_0x3c5dc7={_0x29f08c:0x118};if(_0x36a0ad[_0x7cb4d0(-_0x592594._0x3f391f,-_0x592594._0xc97ebe,-0x54,-0x117)]===0x0)return[_0xec4d5b(_0x592594._0x3fcf10,0x43b,0x433,0x3ca),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0xec4d5b(0x3d0,_0x592594._0x3c49d1,_0x592594._0x5ebc5b,0x37b)][_0x7cb4d0(0x96,_0x592594._0x2e046d,0x8b,_0x592594._0x304d79)]('\x0a');const _0x5aa8ab=[_0x7cb4d0(0x10f,_0x592594._0x433368,_0x592594._0x4a1498,_0x592594._0x49ecc8),_0xec4d5b(0x3d2,_0x592594._0x86c4c7,_0x592594._0x406c76,0x4b8),_0x7cb4d0(_0x592594._0x499b54,0x9d,_0x592594._0x1689f6,_0x592594._0x28a9f0),..._0x36a0ad[_0x7cb4d0(-_0x592594._0x581446,_0x592594._0x2227d2,_0x592594._0x5884b3,_0x592594._0x5b5f8b)](_0x42be26=>_0x42be26[_0xec4d5b(0x436,0x4a1,0x370,0x4a6)]?'-\x20'+_0x42be26[_0xec4d5b(0x3e3,0x30a,0x35c,0x35b)]+'\x20'+_0x42be26[_0x7cb4d0(-0x32,0x1e,0xaa,0xd6)]+':\x20'+_0x42be26[_0x7cb4d0(-0xd2,-0xc9,-0x13,-0x8d)]:'-\x20'+_0x42be26['name']+':\x20'+_0x42be26['description'])];function _0x7cb4d0(_0x46859a,_0x3eca6e,_0x25d74b,_0x3eda26){return _0x46bf5b(_0x46859a-0x2c,_0x3eda26,_0x25d74b-_0x3c5dc7._0x29f08c,_0x25d74b- -0x475);}function _0xec4d5b(_0x146f21,_0x1ff1fc,_0x322e44,_0x5723dc){return _0x46bf5b(_0x146f21-0x7,_0x1ff1fc,_0x322e44-0xd8,_0x146f21- -0xe9);}return _0x5aa8ab[_0x7cb4d0(0x128,_0x592594._0x5380db,0x8b,-0x7)]('\x0a');}function createInvokeCommandTool(_0x52b87e){const _0x1829bc={_0x1efa40:0x87,_0x243e45:0x86,_0x583627:0x54,_0x98d874:0x5b,_0x4d0720:0x1a1,_0x4d3447:0x17d,_0x31d7b5:0xc2,_0x4f0434:0x100,_0x3ca1ec:0xeb,_0x1c48b4:0x1d,_0x170f0c:0x19c,_0x272eff:0xa6,_0x474e07:0xb9,_0x4c284e:0x8e,_0x30ef47:0x170},_0x4aa59f={_0x376cd0:0x9a,_0x3de14d:0x55,_0x101a33:0x54,_0x30b0f9:0x60,_0x241bce:0x1c7,_0x14a8ab:0x122,_0x448e2d:0x93,_0x2fa746:0xbf,_0x1fb3b2:0x6d,_0x23d6e9:0xd9,_0x4b9970:0xfc,_0x15bb6f:0x148,_0x1b754e:0x53,_0x38f828:0x177},_0x514381={_0x123111:0x173,_0x5e0a04:0x9e,_0x557b04:0x124},_0xcfcc03=new Map(_0x52b87e[_0x4d78e6(_0x1829bc._0x1efa40,_0x1829bc._0x243e45,_0x1829bc._0x583627,-_0x1829bc._0x98d874)][_0x23e2d7(-_0x1829bc._0x4d0720,-0xbd,-_0x1829bc._0x4d3447,-0x167)](_0x1cef14=>[_0x1cef14['id'],_0x1cef14])),_0x4e5b84=buildDescription(_0x52b87e[_0x23e2d7(0xb,-0x6f,-0x12e,-0x14d)]);function _0x23e2d7(_0x20a2da,_0xced61b,_0x5cbcd2,_0x46860e){return _0x12584b(_0xced61b- -0x4ef,_0xced61b-0xf6,_0x5cbcd2-0x41,_0x46860e);}function _0x4d78e6(_0x53b684,_0xb0183,_0x5b6fec,_0x445cf7){return _0x12584b(_0xb0183- -0x3fa,_0xb0183-0x1cb,_0x5b6fec-0x1cc,_0x5b6fec);}return defineTool({'name':_0x4d78e6(-0x23,0x11,-0xc8,_0x1829bc._0x31d7b5),'description':_0x4e5b84,'inputSchema':{'type':_0x4d78e6(-_0x1829bc._0x4f0434,-0x18,-_0x1829bc._0x3ca1ec,-0xb6),'properties':{'name':{'type':_0x23e2d7(-_0x1829bc._0x1c48b4,-0xb9,-_0x1829bc._0x170f0c,-_0x1829bc._0x272eff)},'args':{'type':_0x23e2d7(-0xb1,-_0x1829bc._0x474e07,-_0x1829bc._0x4c284e,-_0x1829bc._0x30ef47)}},'required':[_0x23e2d7(-0x11d,-0x66,-0x48,0x7c)]},async *'execute'(_0x111313){const _0x5a0107={_0x135563:0x180,_0x2754b7:0x3e};function _0x35034c(_0x3f55d5,_0x37f94e,_0x227a88,_0x3e39a3){return _0x4d78e6(_0x3f55d5-_0x514381._0x123111,_0x37f94e-_0x514381._0x5e0a04,_0x3f55d5,_0x3e39a3-_0x514381._0x557b04);}const _0x404c5e=_0xcfcc03['get'](_0x111313[_0x57187c(-_0x4aa59f._0x376cd0,0x2c,-0x6c,-_0x4aa59f._0x3de14d)]);function _0x57187c(_0x8d9723,_0x8f5378,_0x515a8e,_0x2bfa86){return _0x23e2d7(_0x8d9723-_0x5a0107._0x135563,_0x8f5378-0x92,_0x515a8e-_0x5a0107._0x2754b7,_0x2bfa86);}if(!_0x404c5e){const _0x241632=Array['from'](_0xcfcc03['keys']())[_0x57187c(_0x4aa59f._0x101a33,_0x4aa59f._0x30b0f9,0x119,-0x23)](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0x111313[_0x35034c(_0x4aa59f._0x241bce,0x12d,0x100,_0x4aa59f._0x14a8ab)]+'\x27\x20not\x20found.\x20Available\x20commands:\x20'+_0x241632,{'name':_0x111313[_0x35034c(0xa4,0x12d,0xaa,_0x4aa59f._0x448e2d)]});}const _0x544065=await _0x52b87e[_0x57187c(0x4e,_0x4aa59f._0x2fa746,_0x4aa59f._0x1fb3b2,0x1e)](_0x404c5e),_0x397779=_0x111313['args']??'',_0x5514b4=renderCommandInstructions({'instructions':_0x544065['instructions'],'argumentsText':_0x397779,'argumentNames':_0x544065['arguments']});return yield createToolOutput(_0x5514b4,{'id':_0x544065['id'],'name':_0x544065[_0x35034c(0x20b,0x12d,_0x4aa59f._0x23d6e9,_0x4aa59f._0x4b9970)],'path':_0x404c5e[_0x35034c(_0x4aa59f._0x15bb6f,0x221,0x143,0x251)][_0x57187c(_0x4aa59f._0x1b754e,0x111,0xe4,_0x4aa59f._0x38f828)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x57072e,rename as _0x5dc8ea,stat as _0x4f980d,writeFile as _0x23a299}from'fs/promises';import*as _0x42922e from'path';function detectEol(_0x3c9957){const _0x3ce11a={_0x563849:0x2d2,_0x1273ea:0x233,_0x3401fb:0x388,_0xd38fe5:0x526,_0x248809:0x44a,_0x5645e5:0x22b,_0x5c9bfb:0x2ea,_0x543b2a:0x359},_0x19785c={_0x454a0b:0xa5,_0x4ccb91:0x2ff},_0x4f7043={_0x5c91e9:0xea,_0x187c9e:0xf0,_0x166d1d:0x1b};function _0x44b194(_0x18d47a,_0x324ab9,_0x41273e,_0x2419a4){return _0x12584b(_0x41273e- -_0x4f7043._0x5c91e9,_0x324ab9-_0x4f7043._0x187c9e,_0x41273e-_0x4f7043._0x166d1d,_0x2419a4);}function _0xa602e1(_0x20f9b9,_0x12f2c1,_0x55c385,_0x525cec){return _0x46bf5b(_0x20f9b9-0xef,_0x12f2c1,_0x55c385-_0x19785c._0x454a0b,_0x20f9b9- -_0x19785c._0x4ccb91);}return/\r\n/[_0xa602e1(_0x3ce11a._0x563849,_0x3ce11a._0x1273ea,0x2cc,0x3bd)](_0x3c9957[_0x44b194(0x3f2,0x2b6,0x351,0x2f5)](_0x44b194(_0x3ce11a._0x3401fb,_0x3ce11a._0xd38fe5,_0x3ce11a._0x248809,0x4a9)))?_0xa602e1(0x288,_0x3ce11a._0x5645e5,_0x3ce11a._0x5c9bfb,_0x3ce11a._0x543b2a):'lf';}function normalizeToLf(_0xf494c6){return _0xf494c6['replace'](/\r\n/g,'\x0a');}function convertEol(_0x3a5f89,_0x10dc80){const _0x4efe9e={_0x54741b:0x4c9,_0x5f3893:0x57a},_0x5948e4={_0x1bdb98:0x18b};function _0x49c527(_0x5f3b89,_0x45d162,_0x3fa9ef,_0x23be04){return _0x46bf5b(_0x5f3b89-_0x5948e4._0x1bdb98,_0x45d162,_0x3fa9ef-0x1b9,_0x5f3b89- -0x43);}return _0x10dc80===_0x49c527(0x544,_0x4efe9e._0x54741b,0x492,_0x4efe9e._0x5f3893)?_0x3a5f89['replace'](/\n/g,'\x0d\x0a'):_0x3a5f89;}async function atomicWrite(_0x20a477,_0x3dcb0d){const _0x303c10={_0x5c7701:0x258,_0x3c8cd5:0x35d,_0x34a04d:0x2c3,_0x2f28ca:0x1b2,_0x30db64:0x4a7,_0x3915dd:0x43d,_0x4b4f35:0x10c,_0x581037:0x21f,_0x135888:0x1a3,_0x336d34:0x5b6,_0x5a9d73:0x50d,_0x33fb88:0x32d,_0x460198:0x416,_0x235415:0x42f},_0x3adc65={_0x16a9b5:0x68},_0x1dd565={_0x211b6f:0x6ee},_0x5c59ac=_0x42922e[_0x5b7eee(-_0x303c10._0x5c7701,-_0x303c10._0x3c8cd5,-0x2c7,-_0x303c10._0x34a04d)](_0x20a477);function _0x5b7eee(_0x3fa165,_0xeba6c0,_0x2852ef,_0x920bfa){return _0x46bf5b(_0x3fa165-0x38,_0xeba6c0,_0x2852ef-0x6d,_0x920bfa- -_0x1dd565._0x211b6f);}const _0x1b6880=_0x42922e['join'](_0x5c59ac,_0x5b7eee(-0x265,-_0x303c10._0x2f28ca,-0x27b,-0x196)+_0x42922e[_0xa82978(0x4a0,_0x303c10._0x30db64,0x555,_0x303c10._0x3915dd)](_0x20a477)+'.'+Date[_0x5b7eee(-0xf7,-_0x303c10._0x4b4f35,-_0x303c10._0x581037,-_0x303c10._0x135888)]()+'.'+Math[_0xa82978(_0x303c10._0x336d34,0x563,_0x303c10._0x5a9d73,0x5c9)]()[_0xa82978(_0x303c10._0x33fb88,_0x303c10._0x460198,_0x303c10._0x235415,0x468)](0x24)['slice'](0x2));function _0xa82978(_0x26c872,_0x11845c,_0x63792,_0x380a86){return _0x46bf5b(_0x26c872-0x1c7,_0x380a86,_0x63792-0x180,_0x11845c- -_0x3adc65._0x16a9b5);}await _0x23a299(_0x1b6880,_0x3dcb0d),await _0x5dc8ea(_0x1b6880,_0x20a477);}function sha256(_0x22e66a){const _0xf1ad66={_0x21700d:0x603,_0x267620:0x1b3,_0x49ae74:0x10d,_0x513ce3:0x179,_0x350e7d:0x58,_0x455daf:0x71,_0x5529d8:0x1b},_0x4e4d77={_0x4f8e7f:0x93},_0x16aca9={_0x14224d:0x176};function _0x2b4e40(_0x4142a6,_0x1f96ee,_0xa8a240,_0x2df999){return _0x46bf5b(_0x4142a6-_0x16aca9._0x14224d,_0xa8a240,_0xa8a240-0x1ab,_0x1f96ee-0xa9);}function _0x3c8e07(_0x46c207,_0x34e7ac,_0x427631,_0x45aef1){return _0x46bf5b(_0x46c207-_0x4e4d77._0x4f8e7f,_0x427631,_0x427631-0x68,_0x34e7ac- -0x495);}return createHash(_0x2b4e40(0x6a5,_0xf1ad66._0x21700d,0x516,0x5e5))[_0x3c8e07(_0xf1ad66._0x267620,_0xf1ad66._0x49ae74,_0xf1ad66._0x513ce3,0x145)](_0x22e66a)[_0x3c8e07(0x1bd,0xd2,-0x1b,_0xf1ad66._0x350e7d)](_0x3c8e07(0x87,_0xf1ad66._0x455daf,-_0xf1ad66._0x5529d8,-0x51));}function countLines(_0x5fd51b){const _0x57214c={_0x4cb019:0x1d5,_0x36ff31:0x21a,_0x5a3706:0x166,_0xa7edda:0x85,_0x2cd3e1:0xb3,_0x435eda:0x12c,_0x20f034:0xea},_0x152548={_0x3f1668:0x45d},_0x1b3c09={_0x7bf8cb:0x5b3},_0x256ab3=_0x5fd51b['replace'](/\n$/,'');function _0x503ca2(_0xc88447,_0x2ce87a,_0x4ca544,_0x55c7e4){return _0x12584b(_0x2ce87a- -_0x1b3c09._0x7bf8cb,_0x2ce87a-0x10,_0x4ca544-0x125,_0x55c7e4);}function _0x503efd(_0x22d58f,_0x49b5d3,_0x17ad25,_0x5941fd){return _0x46bf5b(_0x22d58f-0x12b,_0x17ad25,_0x17ad25-0x1dd,_0x22d58f- -_0x152548._0x3f1668);}return _0x256ab3[_0x503ca2(-0x173,-_0x57214c._0x4cb019,-_0x57214c._0x36ff31,-_0x57214c._0x5a3706)]===0x0?0x0:_0x256ab3[_0x503efd(_0x57214c._0xa7edda,_0x57214c._0x2cd3e1,_0x57214c._0x435eda,_0x57214c._0x20f034)]('\x0a')['length'];}function calculateLineNumbers(_0xabe60a,_0x145ecd,_0x11399c,_0x16a332){const _0x274ea9={_0x27349b:0x2b9,_0x2d71b6:0x26d,_0x4b308c:0x23c,_0x403ee6:0x1f8,_0x3f91f5:0x13f,_0x4aca87:0x130},_0x4f1a88={_0x17b6ab:0xef},_0x1d4234={_0x274c40:0x5b,_0x5c14cf:0x18a},_0x233f0b=_0xabe60a['slice'](0x0,_0x16a332)[_0x4cf0ad(0x21c,_0x274ea9._0x27349b,0x265,_0x274ea9._0x2d71b6)]('\x0a')[_0x4cf0ad(_0x274ea9._0x4b308c,_0x274ea9._0x403ee6,_0x274ea9._0x3f91f5,_0x274ea9._0x4aca87)],_0x14c3cc=countLines(_0x145ecd),_0x2e358a=countLines(_0x11399c);function _0x56b587(_0x1e2f28,_0x338441,_0x17722e,_0x593aba){return _0x12584b(_0x338441- -0x36a,_0x338441-_0x1d4234._0x274c40,_0x17722e-_0x1d4234._0x5c14cf,_0x593aba);}function _0x4cf0ad(_0x57f504,_0x4a9e09,_0x3e496e,_0x5051c6){return _0x12584b(_0x4a9e09- -0x1e6,_0x4a9e09-0x1a9,_0x3e496e-_0x4f1a88._0x17b6ab,_0x3e496e);}return{'oldStartLine':_0x233f0b,'oldEndLine':_0x233f0b+_0x14c3cc-0x1,'newStartLine':_0x233f0b,'newEndLine':_0x233f0b+_0x2e358a-0x1,'oldLineCount':_0x14c3cc,'newLineCount':_0x2e358a};}function createFileEditTool(_0x3a76a6={}){const _0x1564c2={_0x504d0a:0x552,_0x39aa04:0xce,_0x44d2a0:0x153,_0x388dd0:0x1e7,_0x37c675:0x282,_0x37119f:0x1d3,_0x25f848:0x546,_0x129dfb:0x561,_0x97bd40:0x44a,_0xa8a7f2:0x4c0,_0x451119:0x32d,_0x31e478:0x31d,_0x3fa2e2:0x1fe,_0x3ed6ab:0x258,_0x4e926:0x233,_0x3d2140:0x31f,_0x2d6f43:0x2ff,_0x522f30:0x313,_0x15b074:0x268,_0x302120:0x317,_0x26af56:0x1ab,_0x5e2365:0x23a,_0x3df04f:0x211,_0x4a36b9:0x194,_0x1c4af1:0x123,_0x166e0f:0x148,_0x18b477:0x1f6,_0x462e4a:0x5cc,_0x5a1072:0x543,_0x50b5a:0x5b0},_0x7d2fd7={_0x575ca6:0x423,_0x21f81b:0x469,_0x4d2e42:0x419,_0xd58e28:0x44c,_0x2ef154:0xe,_0x2c6384:0x72,_0x468ff4:0x532,_0x35dcdd:0x100,_0xca7e02:0x109,_0x193348:0x567,_0xcd0067:0x91,_0x16d164:0x34,_0x5f49da:0x13c,_0x59f0c0:0x158,_0x45a081:0xee,_0x21ba12:0x109,_0x211674:0x383,_0x3ca608:0x3ef,_0x34aafc:0x4ca,_0xc305d:0x3fc,_0x4fff86:0x5bf,_0x1b75c8:0x497,_0x56e296:0x52e,_0xbd82dd:0xe,_0x262691:0x70,_0x332df5:0x529,_0x3b5a52:0x530,_0x50f075:0x568,_0x589140:0x505,_0x54d523:0x5a1,_0x1b45d1:0x420,_0x2b712a:0x469,_0x346fcb:0x502,_0x16b188:0x51e,_0x2f27af:0x173,_0x3ba7f4:0x1a9,_0x2e3d91:0x11f,_0x3afd88:0xdf,_0x398706:0xf6,_0x2b87:0x5df,_0x227bb6:0x477},_0x351e6a={_0x47b08d:0x9a,_0x1d7880:0x100},_0x3bd281={_0x11010d:0x1a7},_0x2b9f3b={_0x410bdb:0xab,_0x415f76:0x101},_0x39b5b0={_0x50d90d:0x669,_0x469217:0x12a,_0x426e01:0x190};function _0x6957fe(_0x2c58b1,_0x36991b,_0x420e15,_0x1e8127){return _0x12584b(_0x36991b- -_0x39b5b0._0x50d90d,_0x36991b-_0x39b5b0._0x469217,_0x420e15-_0x39b5b0._0x426e01,_0x420e15);}const _0x4b1511=_0x42922e[_0x41d2be(_0x1564c2._0x504d0a,0x5ed,0x4a9,0x4fa)](_0x3a76a6[_0x6957fe(-_0x1564c2._0x39aa04,-_0x1564c2._0x44d2a0,-_0x1564c2._0x388dd0,-0x12b)]??process['cwd']()),_0x3ffd80=(_0x3a76a6[_0x6957fe(-0x30c,-_0x1564c2._0x37c675,-0x20e,-_0x1564c2._0x37119f)]??[])[_0x41d2be(0x4dd,_0x1564c2._0x25f848,0x4e8,0x437)](_0x3e176a=>_0x42922e[_0x6957fe(-0x2a2,-0x1c2,-0x287,-0x2a1)](_0x3e176a));function _0x41d2be(_0x14f7c7,_0x5fdf50,_0xffb40b,_0x1b7d59){return _0x12584b(_0x14f7c7-_0x2b9f3b._0x410bdb,_0x5fdf50-_0x2b9f3b._0x415f76,_0xffb40b-0x1b5,_0xffb40b);}const _0x3dc2e3=_0x3a76a6[_0x41d2be(0x534,_0x1564c2._0x129dfb,_0x1564c2._0x97bd40,_0x1564c2._0xa8a7f2)]??'FileEdit';return defineTool({'name':_0x3dc2e3,'description':'Edit\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace\x20or\x20allowed\x20directories\x20by\x20replacing\x20the\x20first\x20exact\x20text\x20segment.','inputSchema':{'type':_0x6957fe(-_0x1564c2._0x451119,-0x287,-_0x1564c2._0x31e478,-_0x1564c2._0x3fa2e2),'properties':{'filePath':{'type':_0x6957fe(-_0x1564c2._0x3ed6ab,-_0x1564c2._0x4e926,-_0x1564c2._0x3d2140,-0x18c)},'oldText':{'type':_0x6957fe(-_0x1564c2._0x2d6f43,-0x233,-_0x1564c2._0x522f30,-0x15f)},'newText':{'type':_0x6957fe(-0x1f0,-0x233,-_0x1564c2._0x15b074,-_0x1564c2._0x302120)},'dryRun':{'type':_0x6957fe(-0xd1,-0x166,-0xbf,-_0x1564c2._0x26af56)}},'required':[_0x6957fe(-_0x1564c2._0x5e2365,-_0x1564c2._0x3df04f,-_0x1564c2._0x4a36b9,-0x23d),_0x6957fe(-_0x1564c2._0x1c4af1,-0x10d,-_0x1564c2._0x166e0f,-_0x1564c2._0x18b477),_0x41d2be(_0x1564c2._0x462e4a,0x69c,_0x1564c2._0x5a1072,_0x1564c2._0x50b5a)]},async *'execute'(_0x28f5cc){const _0x444ff7=resolveAllowedPath(_0x4b1511,_0x3ffd80,_0x28f5cc[_0x58cca3(_0x7d2fd7._0x575ca6,_0x7d2fd7._0x21f81b,0x53b,0x4bf)]);await assertWorkspaceFile(_0x444ff7);const _0x5c1282=await _0x4f980d(_0x444ff7),_0x360ccb=await _0x57072e(_0x444ff7),_0x1adb74=detectEol(_0x360ccb),_0x702f2e=normalizeToLf(_0x360ccb[_0x58cca3(_0x7d2fd7._0x4d2e42,_0x7d2fd7._0xd58e28,0x3ea,0x3a4)](_0x56d95f(-0x11,-_0x7d2fd7._0x2ef154,-0xc,_0x7d2fd7._0x2c6384))),_0x1a8b4e=normalizeToLf(_0x28f5cc['oldText']);function _0x56d95f(_0x4e3a14,_0x466d2d,_0x1ff9b0,_0xf49917){return _0x6957fe(_0x4e3a14-0xd9,_0xf49917-_0x3bd281._0x11010d,_0x1ff9b0,_0xf49917-0x19d);}const _0x2f41c2=normalizeToLf(_0x28f5cc[_0x58cca3(0x54e,_0x7d2fd7._0x468ff4,0x4ed,0x61d)]),_0x166775=_0x702f2e[_0x56d95f(0x4f,-0xda,-0x75,-0x4e)](_0x1a8b4e);if(_0x166775===-0x1){const _0x4b96d5=_0x1a8b4e[_0x56d95f(-_0x7d2fd7._0x35dcdd,-0x3c,-0x84,-_0x7d2fd7._0xca7e02)](0x0,0x64)[_0x58cca3(0x4eb,_0x7d2fd7._0x193348,0x5b8,0x5e2)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x56d95f(0xc0,-0xb7,_0x7d2fd7._0xcd0067,_0x7d2fd7._0x16d164)+_0x4b96d5+(_0x1a8b4e[_0x56d95f(-0x9f,-_0x7d2fd7._0x5f49da,-_0x7d2fd7._0x59f0c0,-0xe4)]>0x64?'...':'')+'\x22',{'filePath':_0x28f5cc[_0x56d95f(0x6d,-0x138,-_0x7d2fd7._0x45a081,-0x6a)]});}const _0x220279=_0x702f2e[_0x56d95f(-0x83,-0x12f,-0x1ad,-_0x7d2fd7._0x21ba12)](0x0,_0x166775)+_0x2f41c2+_0x702f2e[_0x58cca3(0x337,0x3ca,0x33d,0x3ac)](_0x166775+_0x1a8b4e[_0x58cca3(_0x7d2fd7._0x211674,_0x7d2fd7._0x3ca608,0x49c,_0x7d2fd7._0x34aafc)]),_0x569fe2=convertEol(_0x220279,_0x1adb74);function _0x58cca3(_0x2b2cc8,_0x3bd49a,_0x4c2f07,_0x2aca05){return _0x41d2be(_0x3bd49a- -_0x351e6a._0x47b08d,_0x3bd49a-0x1cc,_0x2aca05,_0x2aca05-_0x351e6a._0x1d7880);}const _0xea3cb4=Buffer[_0x58cca3(0x479,0x4be,_0x7d2fd7._0xc305d,0x495)](_0x569fe2,_0x58cca3(_0x7d2fd7._0x4fff86,0x545,_0x7d2fd7._0x1b75c8,0x543)),_0x4cdd72=sha256(_0x360ccb),_0xdab7e9=sha256(_0xea3cb4),_0x3422e8=_0x4cdd72===_0xdab7e9,_0x3b5b4b=_0x28f5cc[_0x58cca3(0x53a,_0x7d2fd7._0x56e296,0x5ff,0x571)]??![];return!_0x3b5b4b&&!_0x3422e8&&await atomicWrite(_0x444ff7,_0xea3cb4),yield createToolOutput(_0x3422e8?_0x56d95f(-0x2d,0x60,_0x7d2fd7._0xbd82dd,_0x7d2fd7._0x262691):_0x3b5b4b?_0x58cca3(0x4fe,_0x7d2fd7._0x332df5,_0x7d2fd7._0x3b5a52,_0x7d2fd7._0x50f075):_0x58cca3(0x52f,_0x7d2fd7._0x589140,_0x7d2fd7._0x54d523,_0x7d2fd7._0x1b45d1),{'filePath':_0x28f5cc[_0x58cca3(0x38b,_0x7d2fd7._0x2b712a,_0x7d2fd7._0x346fcb,_0x7d2fd7._0x16b188)],'resolvedPath':_0x444ff7,'created':_0x5c1282[_0x56d95f(-_0x7d2fd7._0x2f27af,-_0x7d2fd7._0x3ba7f4,-_0x7d2fd7._0x2e3d91,-_0x7d2fd7._0x3afd88)][_0x56d95f(-_0x7d2fd7._0x398706,-0x2f,-0x1a,-0x98)](),'modified':_0x5c1282[_0x58cca3(0x47e,0x4e2,0x503,0x3fd)]['toISOString'](),'size':_0x5c1282[_0x58cca3(0x48a,0x508,_0x7d2fd7._0x2b87,_0x7d2fd7._0x227bb6)],'eol':_0x1adb74,'oldTextLength':_0x1a8b4e[_0x58cca3(0x474,0x3ef,0x3df,0x4c8)],'newTextLength':_0x2f41c2['length'],'bytesWritten':_0x3422e8||_0x3b5b4b?0x0:_0xea3cb4['length'],'beforeSha':_0x4cdd72,'afterSha':_0xdab7e9,'dryRun':_0x3b5b4b,'noChange':_0x3422e8,'lineNumbers':calculateLineNumbers(_0x702f2e,_0x1a8b4e,_0x2f41c2,_0x166775)}),void 0x0;}});}import{mkdir as _0x6947d4,rename as _0x5f2356,stat as _0x7c79e3,writeFile as _0x427f0b}from'fs/promises';import*as _0x471ae7 from'path';async function atomicWrite2(_0x2bb415,_0x54d0ca){const _0x137ba3={_0xfa38a:0x206,_0x5d231a:0x213,_0x4e83de:0x1b3,_0x886b9b:0x1e3,_0x41b55c:0x1d7,_0x275214:0x318,_0x3ec6c3:0x15c,_0x3cbfaa:0x1e9,_0x584a85:0x22d,_0x44b5ad:0x184,_0x5c3082:0x22e,_0x4e94f0:0x2f},_0x51832c={_0x1a9e01:0x14b},_0x15b6ac={_0x5a3f63:0x158,_0x1033d6:0x163,_0x3a96c1:0x218},_0x253d1d=_0x471ae7[_0x567811(0x2dc,_0x137ba3._0xfa38a,_0x137ba3._0x5d231a,0x2d7)](_0x2bb415);await _0x6947d4(_0x253d1d,{'recursive':!![]});function _0x567811(_0x32f5af,_0x37f1f0,_0xfc87d5,_0x23ceeb){return _0x46bf5b(_0x32f5af-_0x15b6ac._0x5a3f63,_0x32f5af,_0xfc87d5-_0x15b6ac._0x1033d6,_0xfc87d5- -_0x15b6ac._0x3a96c1);}const _0x2cd768=_0x471ae7[_0x5f1243(_0x137ba3._0x4e83de,_0x137ba3._0x886b9b,0x29d,_0x137ba3._0x41b55c)](_0x253d1d,_0x5f1243(_0x137ba3._0x275214,0x23b,_0x137ba3._0x3ec6c3,0x17e)+_0x471ae7[_0x5f1243(_0x137ba3._0x3cbfaa,0x1f2,0x277,_0x137ba3._0x584a85)](_0x2bb415)+'.'+Date[_0x5f1243(_0x137ba3._0x44b5ad,_0x137ba3._0x5c3082,0x151,0x1be)]()+'.'+Math['random']()['toString'](0x24)[_0x5f1243(0x9b,0xdf,0x7,_0x137ba3._0x4e94f0)](0x2));await _0x427f0b(_0x2cd768,_0x54d0ca);function _0x5f1243(_0x228bcc,_0x1d81dc,_0x354de9,_0xb18634){return _0x46bf5b(_0x228bcc-_0x51832c._0x1a9e01,_0x228bcc,_0x354de9-0x1cd,_0x1d81dc- -0x31d);}await _0x5f2356(_0x2cd768,_0x2bb415);}function createFileNewTool(_0x33fc68={}){const _0x8fd5d0={_0x234b63:0x354,_0xc1c4a:0x388,_0x151049:0x49b,_0x37d7db:0x563,_0x3457ee:0x5f0,_0x83230:0x32e,_0x61fca7:0x50d,_0xcd7e53:0x455,_0x28d097:0x530,_0x271f87:0x5ad,_0x123633:0x5a1,_0x467f58:0x584},_0x45da92={_0x119279:0x30,_0x1e409c:0x54,_0x19c0fa:0xdc,_0x57b91a:0xea,_0xaaefbd:0x56,_0x591ae2:0x37e,_0x42bb9d:0x2ca,_0x5c9d49:0x334,_0x9ee264:0x11,_0x2b1d28:0xfd,_0x267489:0x4a,_0x42eb84:0x1a8,_0xbe232d:0x1d9,_0x402530:0x1a,_0x30acdc:0xc,_0x23435a:0x225,_0x32ea80:0x230,_0x49f940:0x218,_0x81d95e:0x1bf,_0x3c1746:0x228,_0x566d7e:0x230,_0x3cad37:0x78,_0x190b9f:0x119,_0x3b6fbf:0x102,_0x3801b5:0x113,_0x54e165:0x48,_0x1f338d:0x2f,_0x2f248e:0x7b,_0x255287:0x10e,_0x108756:0x53},_0x2cf54c={_0x79495c:0xc4},_0x11950b={_0x4b8865:0x87,_0xb4d4e9:0x149},_0x180b2c=_0x471ae7['resolve'](_0x33fc68[_0x56c96d(_0x8fd5d0._0x234b63,0x380,0x2c0,0x325)]??process[_0x56c96d(0x2e4,0x35e,0x375,_0x8fd5d0._0xc1c4a)]()),_0x3bd75c=(_0x33fc68['allowedDirs']??[])[_0x2d39af(_0x8fd5d0._0x151049,_0x8fd5d0._0x37d7db,_0x8fd5d0._0x3457ee,0x51b)](_0xe66935=>_0x471ae7[_0x56c96d(0x2e5,0x39a,0x36c,0x222)](_0xe66935));function _0x2d39af(_0x3edd7a,_0x22d4dd,_0x5b8d13,_0x4cf4ac){return _0x12584b(_0x4cf4ac-0xe9,_0x22d4dd-_0x11950b._0x4b8865,_0x5b8d13-_0x11950b._0xb4d4e9,_0x22d4dd);}function _0x56c96d(_0x2b72cd,_0x36de75,_0x557204,_0x565be3){return _0x12584b(_0x2b72cd- -0x1c2,_0x36de75-0x1a9,_0x557204-_0x2cf54c._0x79495c,_0x557204);}const _0x49a689=_0x33fc68[_0x56c96d(0x2c7,_0x8fd5d0._0x83230,0x36e,0x32f)]??'FileNew';return defineTool({'name':_0x49a689,'description':_0x2d39af(0x50e,0x668,_0x8fd5d0._0x61fca7,0x5f9),'inputSchema':{'type':_0x2d39af(0x570,_0x8fd5d0._0xcd7e53,_0x8fd5d0._0x28d097,0x4cb),'properties':{'filePath':{'type':_0x2d39af(0x486,0x4ae,_0x8fd5d0._0x271f87,0x51f)},'content':{'type':_0x2d39af(_0x8fd5d0._0x123633,0x60a,_0x8fd5d0._0x467f58,0x51f)}},'required':['filePath',_0x2d39af(0x4c8,0x50d,0x5e6,0x598)]},async *'execute'(_0x17a8a8){const _0x10eb3d={_0xc82332:0x771},_0x482c24={_0x490c89:0xa2};function _0x2aa53b(_0x58a5cf,_0x44102f,_0x2e8399,_0x27f259){return _0x56c96d(_0x27f259- -0x335,_0x44102f-0xd3,_0x2e8399,_0x27f259-_0x482c24._0x490c89);}const _0x356768=resolveAllowedPath(_0x180b2c,_0x3bd75c,_0x17a8a8[_0x2aa53b(-0x84,-0x163,_0x45da92._0x119279,-0x9f)]);function _0x529c97(_0xfcc7ff,_0x5a55f9,_0x23b2df,_0x4d95bb){return _0x2d39af(_0xfcc7ff-0x19,_0xfcc7ff,_0x23b2df-0x17a,_0x23b2df- -_0x10eb3d._0xc82332);}const _0x524a6b=await _0x7c79e3(_0x356768)[_0x2aa53b(_0x45da92._0x1e409c,_0x45da92._0x19c0fa,_0x45da92._0x57b91a,_0x45da92._0xaaefbd)](()=>!![])[_0x529c97(-_0x45da92._0x591ae2,-0x30d,-_0x45da92._0x42bb9d,-_0x45da92._0x5c9d49)](()=>![]),_0x188f2e=Buffer[_0x2aa53b(-_0x45da92._0x9ee264,-0x9a,-_0x45da92._0x2b1d28,-_0x45da92._0x267489)](_0x17a8a8[_0x529c97(-0x243,-_0x45da92._0x42eb84,-_0x45da92._0xbe232d,-0xec)],_0x2aa53b(-_0x45da92._0x402530,-_0x45da92._0x30acdc,0x6c,0x3d));return await atomicWrite2(_0x356768,_0x188f2e),yield createToolOutput('File\x20written\x20at\x20'+_0x17a8a8[_0x529c97(-0x274,-_0x45da92._0x23435a,-_0x45da92._0x32ea80,-_0x45da92._0x49f940)]+'.',{'filePath':_0x17a8a8[_0x529c97(-_0x45da92._0x81d95e,-_0x45da92._0x3c1746,-_0x45da92._0x566d7e,-0x204)],'resolvedPath':_0x356768,'bytes':_0x188f2e[_0x2aa53b(-0x139,-0x14e,-_0x45da92._0x3cad37,-_0x45da92._0x190b9f)],'lines':_0x17a8a8[_0x2aa53b(-_0x45da92._0x3b6fbf,-_0x45da92._0x3801b5,-0x110,-_0x45da92._0x54e165)][_0x2aa53b(-0x20,_0x45da92._0x1f338d,_0x45da92._0x2f248e,-0x58)](/\r?\n/)[_0x2aa53b(-0x116,-_0x45da92._0x255287,-0x1cb,-0x119)],'created':new Date()[_0x2aa53b(-_0x45da92._0x108756,-0x63,-0x9e,-0xcd)](),'overwritten':_0x524a6b}),void 0x0;}});}import{readFile as _0x12bee0,stat as _0x48dfd5}from'fs/promises';import*as _0x5750d3 from'path';function stripUtfBom(_0x206b2a){const _0x55d23c={_0x1a9d34:0x41c,_0x1a5818:0x422},_0x52791e={_0x2e9452:0xd3,_0x76f3b6:0x11e};function _0x5bf6a2(_0x3b8783,_0x2eb248,_0x2d5239,_0x245626){return _0x12584b(_0x2eb248- -_0x52791e._0x2e9452,_0x2eb248-_0x52791e._0x76f3b6,_0x2d5239-0x86,_0x3b8783);}return _0x206b2a[_0x5bf6a2(_0x55d23c._0x1a9d34,0x33f,0x391,_0x55d23c._0x1a5818)](0x0)===0xfeff?_0x206b2a['slice'](0x1):_0x206b2a;}function clampLine(_0x48838c,_0x25fc21){const _0x3d784e={_0x5b8fe6:0x467,_0x458a3f:0x481,_0x34f97c:0x489,_0x393758:0x4f3,_0x466c35:0x58b,_0x8ce146:0x42a,_0x50ccbe:0x3ef},_0x20848c={_0x440c68:0x12d};if(!Number[_0x373e12(_0x3d784e._0x5b8fe6,_0x3d784e._0x458a3f,0x38f,_0x3d784e._0x34f97c)](_0x48838c))return 0x1;function _0x373e12(_0x269db4,_0x2c3131,_0x59e2ad,_0x200bd9){return _0x46bf5b(_0x269db4-0x12e,_0x59e2ad,_0x59e2ad-0x17c,_0x269db4- -0x2d);}function _0x18147d(_0x5b0440,_0x369dc2,_0x2735ff,_0x15ea6d){return _0x12584b(_0x369dc2-0x6,_0x369dc2-_0x20848c._0x440c68,_0x2735ff-0x73,_0x2735ff);}return Math[_0x373e12(0x576,_0x3d784e._0x393758,_0x3d784e._0x466c35,0x610)](0x1,Math['min'](Math[_0x373e12(0x3ec,_0x3d784e._0x8ce146,0x3cc,_0x3d784e._0x50ccbe)](_0x48838c),_0x25fc21));}function createFileReadTool(_0x2eda78={}){const _0x522954={_0x292ee4:0x5e4,_0x5b33df:0x56b,_0x5b5803:0x566,_0x5a3eae:0x1f6,_0x2d835c:0x1dd,_0x5aab2f:0x28a,_0x162d43:0x2ff,_0x4b3ce9:0x1d8,_0xbe604c:0x23d,_0x3ebbc4:0x257,_0x474bf6:0x242,_0x2c9ca6:0x458,_0x7cb55c:0x530,_0x324adc:0x48c,_0x22013d:0x457,_0x3098ae:0x473,_0x5c37ca:0x2d8,_0x35e899:0x225,_0x14b971:0x3c9,_0xe83c82:0x158,_0x4bde63:0x1db,_0xac9723:0x206},_0x1b6339={_0x2923ec:0x3d0,_0x15cfb2:0x413,_0x1c150e:0x38e,_0x5406b5:0x118,_0x4e965d:0x1c0,_0x487d1e:0x199,_0x15d43e:0x157,_0x57ae73:0x199,_0x39e375:0xcc,_0x5ec9a7:0x66,_0x28c88c:0x18,_0x2ee083:0x27,_0xdf1d06:0x7e,_0x4bc547:0x354,_0x488a99:0x28b,_0xfc29ec:0x232,_0x225559:0x1a1,_0x2f1ed6:0xf7,_0x51209f:0x199,_0x4df047:0x233,_0xf9e69b:0x29b,_0x26bc93:0x2a3,_0x2eb690:0x216,_0x208ee5:0x23c,_0x2315e9:0x2f1,_0x407c7b:0x122,_0x3cd73c:0xf9,_0x5a5bbd:0x39d,_0x246e17:0x412,_0x26d937:0x2dc,_0x4e9681:0x2ac,_0x1bcd0c:0x2d2,_0xfeba9e:0x2ad,_0x132a29:0x178,_0x14fb86:0x1ed,_0x41cc51:0x193,_0x369612:0x1b0,_0x93cb0:0x1eb,_0x4790dd:0x1fe,_0x3bc4b5:0xb8,_0x2c209f:0x29,_0x5d3ce6:0x13,_0x2b7841:0x266,_0x5e0d82:0x1c3,_0x1b0b74:0x29c,_0x915b1c:0x295,_0x44f0a4:0x29d,_0x54041c:0x198,_0x45b2f7:0x56,_0x28d5fb:0x438,_0x3579c5:0x3d3,_0x15573d:0x218,_0x370034:0x20f,_0x22f415:0x1d9,_0x728dcf:0x5d,_0x441ce2:0x2be,_0x23ea71:0x21e},_0x50e2e9={_0x124dcc:0xc4,_0x26d7b0:0x60,_0x59fcb0:0x1a0},_0x29586f={_0x5bb1bc:0x102};function _0x23c56f(_0x467705,_0x59d8d8,_0x45c2a6,_0x1e9e0a){return _0x12584b(_0x467705- -0x6c6,_0x59d8d8-_0x29586f._0x5bb1bc,_0x45c2a6-0x117,_0x1e9e0a);}function _0x5eccc0(_0x396cd1,_0x1a021d,_0xbbc63d,_0x42649b){return _0x12584b(_0x1a021d-_0x50e2e9._0x124dcc,_0x1a021d-_0x50e2e9._0x26d7b0,_0xbbc63d-_0x50e2e9._0x59fcb0,_0x396cd1);}const _0x3c82e4=_0x5750d3[_0x5eccc0(_0x522954._0x292ee4,_0x522954._0x5b33df,0x485,_0x522954._0x5b5803)](_0x2eda78['defaultCwd']??process[_0x23c56f(-0x220,-0x178,-_0x522954._0x5a3eae,-_0x522954._0x2d835c)]()),_0x88ae69=(_0x2eda78[_0x23c56f(-0x2df,-_0x522954._0x5aab2f,-0x2bd,-0x2b9)]??[])[_0x23c56f(-0x294,-0x35e,-_0x522954._0x162d43,-_0x522954._0x4b3ce9)](_0x14117a=>_0x5750d3[_0x5eccc0(0x622,0x56b,0x4b2,0x4e9)](_0x14117a)),_0x3757cd=_0x2eda78[_0x23c56f(-_0x522954._0xbe604c,-_0x522954._0x3ebbc4,-0x22f,-_0x522954._0x474bf6)]??'FileRead';return defineTool({'name':_0x3757cd,'description':_0x5eccc0(_0x522954._0x2c9ca6,_0x522954._0x7cb55c,0x5d4,_0x522954._0x324adc),'inputSchema':{'type':_0x5eccc0(_0x522954._0x22013d,0x4a6,0x42c,_0x522954._0x3098ae),'properties':{'path':{'type':_0x23c56f(-0x290,-0x1a3,-0x1cc,-0x27b)},'lineStart':{'type':_0x23c56f(-_0x522954._0x5c37ca,-_0x522954._0x35e899,-0x1eb,-0x38c)},'lineEnd':{'type':_0x5eccc0(_0x522954._0x14b971,0x4b2,0x4ea,0x51c)}},'required':[_0x23c56f(-_0x522954._0xe83c82,-_0x522954._0x4bde63,-_0x522954._0xac9723,-0x1ad)]},async *'execute'(_0x5696e5){const _0x21ed6c={_0x3a1d42:0x59},_0x2be32d=resolveAllowedPath(_0x3c82e4,_0x88ae69,_0x5696e5[_0x53e251(_0x1b6339._0x2923ec,0x3cc,_0x1b6339._0x15cfb2,_0x1b6339._0x1c150e)]);await assertWorkspaceFile(_0x2be32d);const _0x8141b9=await _0x48dfd5(_0x2be32d),_0xaa944b=await _0x12bee0(_0x2be32d);function _0x282008(_0x53da11,_0x4923e2,_0x59bdae,_0xec2272){return _0x23c56f(_0x53da11-0x2f1,_0x4923e2-0x114,_0x59bdae-0xda,_0x4923e2);}if(isProbablyBinary(_0xaa944b))throw new ToolExecutionError(_0x282008(_0x1b6339._0x5406b5,0x9b,_0x1b6339._0x4e965d,0x86)+_0x5696e5[_0x282008(_0x1b6339._0x487d1e,0xfc,0x237,_0x1b6339._0x15d43e)],{'path':_0x5696e5[_0x282008(_0x1b6339._0x57ae73,0x16e,_0x1b6339._0x39e375,0x20a)]});function _0x53e251(_0x238dcd,_0x1295d9,_0x18746e,_0xc0883a){return _0x5eccc0(_0x238dcd,_0xc0883a- -0x2a4,_0x18746e-0x71,_0xc0883a-_0x21ed6c._0x3a1d42);}let _0x3e5034=_0xaa944b[_0x282008(_0x1b6339._0x5ec9a7,_0x1b6339._0x28c88c,-_0x1b6339._0x2ee083,-_0x1b6339._0xdf1d06)](_0x53e251(0x3c5,0x373,0x323,_0x1b6339._0x4bc547));const _0x2843df=_0x3e5034[_0x53e251(0x1e0,0x2c3,_0x1b6339._0x488a99,_0x1b6339._0xfc29ec)](0x0)===0xfeff;_0x3e5034=stripUtfBom(_0x3e5034);const _0x2ee39e=_0x3e5034[_0x282008(0xca,_0x1b6339._0x225559,_0x1b6339._0x2f1ed6,0xac)](/\r?\n/),_0x1d0b7f={'path':_0x5696e5[_0x282008(_0x1b6339._0x51209f,0x21f,_0x1b6339._0x4df047,0x255)],'resolvedPath':_0x2be32d,'created':_0x8141b9['birthtime'][_0x53e251(0x2df,_0x1b6339._0xf9e69b,_0x1b6339._0x26bc93,0x24a)](),'modified':_0x8141b9[_0x53e251(_0x1b6339._0x2eb690,0x27e,_0x1b6339._0x208ee5,_0x1b6339._0x2315e9)]['toISOString'](),'size':_0x8141b9[_0x282008(_0x1b6339._0x407c7b,0x124,_0x1b6339._0x3cd73c,0x67)],'encoding':_0x53e251(_0x1b6339._0x5a5bbd,_0x1b6339._0x246e17,_0x1b6339._0x26d937,0x354),'bomStripped':_0x2843df,'truncated':![],'totalLines':_0x2ee39e[_0x53e251(0x125,_0x1b6339._0x4e9681,0x1a4,0x1fe)]};if(_0x5696e5[_0x53e251(0x258,_0x1b6339._0x1bcd0c,0x286,0x1fa)]!==void 0x0||_0x5696e5[_0x53e251(0x282,0x1c7,0x2e5,_0x1b6339._0xfeba9e)]!==void 0x0){const _0xfe6e09=clampLine(_0x5696e5[_0x53e251(0x126,_0x1b6339._0x132a29,_0x1b6339._0x14fb86,0x1fa)]??0x1,_0x2ee39e[_0x53e251(_0x1b6339._0x41cc51,_0x1b6339._0x369612,_0x1b6339._0x93cb0,_0x1b6339._0x4790dd)]),_0x3a4bc4=clampLine(_0x5696e5[_0x282008(_0x1b6339._0x3bc4b5,-_0x1b6339._0x2c209f,-_0x1b6339._0x5d3ce6,0x43)]??_0x2ee39e[_0x53e251(_0x1b6339._0x2b7841,0x168,_0x1b6339._0x5e0d82,0x1fe)],_0x2ee39e[_0x53e251(_0x1b6339._0x1b0b74,_0x1b6339._0x915b1c,_0x1b6339._0x44f0a4,0x1fe)]),_0x4d8577=Math[_0x282008(0x115,0x8e,_0x1b6339._0x54041c,_0x1b6339._0x45b2f7)](_0xfe6e09,_0x3a4bc4),_0x448cc1=Math[_0x53e251(_0x1b6339._0x28d5fb,_0x1b6339._0x3579c5,0x3ad,0x380)](_0xfe6e09,_0x3a4bc4),_0x28c147=_0x2ee39e[_0x53e251(_0x1b6339._0x15573d,0x254,_0x1b6339._0x370034,_0x1b6339._0x22f415)](_0x4d8577-0x1,_0x448cc1)[_0x282008(0x5d,0x6e,_0x1b6339._0x728dcf,0x51)]((_0x2edc2e,_0xdd3f02)=>_0x4d8577+_0xdd3f02+'|'+_0x2edc2e)['join']('\x0a');return yield createToolOutput(_0x28c147,{..._0x1d0b7f,'lineRange':{'lineStart':_0x4d8577,'lineEnd':_0x448cc1,'linesTotal':_0x2ee39e[_0x53e251(_0x1b6339._0x441ce2,_0x1b6339._0x23ea71,0x169,0x1fe)]}}),void 0x0;}return yield createToolOutput(_0x3e5034,_0x1d0b7f),void 0x0;}});}import{stat as _0x527288}from'fs/promises';import*as _0x64c88e from'path';import{execSync,spawn as _0x4be4ce}from'child_process';import{existsSync}from'fs';import{stat as _0x4d0f0e}from'fs/promises';import*as _0x42d756 from'os';import*as _0x55c93b from'path';import{rgPath as _0x4fab4a}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x1d2741={_0x2f75fb:0xb6,_0x30c90f:0x95,_0x1be3e8:0x126,_0x1c8331:0x12f,_0x251a3c:0x18e,_0x4b74a2:0x8d,_0x44464d:0x90,_0x153726:0xe7,_0xade63b:0x1d0,_0x28804b:0x65,_0x3172b4:0x10a,_0x50fbc5:0x66,_0x35a818:0x1aa,_0x18fce5:0x1ef,_0x5425e6:0x17a,_0x34e53c:0x316,_0x48c4c8:0x216,_0x45b7c0:0x121,_0x124f4c:0x10e,_0x11f29f:0xdd,_0x1d322a:0x140,_0x25a8b9:0x17f,_0x15d214:0x125,_0x24f889:0x188,_0x3b1cb9:0x28b,_0x233cb7:0xc9,_0x56d7dc:0x19c,_0x47eca3:0x1b5,_0x4725d2:0x175,_0x5b26a2:0x168,_0x33180b:0x10c,_0x57bd9a:0xaf,_0x3d762c:0x14b,_0x59ea62:0x1ea,_0x590a1d:0x127,_0x32cce0:0x18c,_0x492d58:0x1c4,_0xa2506b:0x232,_0x1e3f54:0xae,_0x430ab8:0xfb,_0x600476:0x78,_0x3a57c5:0x1dd,_0x36782e:0x24b,_0x37d65b:0xfa,_0x261a7f:0x3c},_0x441b35={_0xf9bce3:0x15b},_0x4ab076={_0x14e315:0x1cc,_0x594f14:0x378},_0x2324bb=_0x42d756['platform']()===_0x2bb2fa(0x93,_0x1d2741._0x2f75fb,_0x1d2741._0x30c90f,0x107),_0x3fe5f8=_0x2324bb?[_0x55c93b[_0x2bb2fa(0x118,_0x1d2741._0x1be3e8,_0x1d2741._0x1c8331,0x1df)](process[_0x329df8(0xfb,_0x1d2741._0x251a3c,0x185,0x1a6)][_0x2bb2fa(0x86,0x14a,_0x1d2741._0x4b74a2,_0x1d2741._0x44464d)]||'','Microsoft',_0x2bb2fa(_0x1d2741._0x153726,_0x1d2741._0xade63b,0x7b,_0x1d2741._0x28804b),_0x2bb2fa(0xb4,_0x1d2741._0x3172b4,_0x1d2741._0x50fbc5,0x85)),_0x55c93b[_0x2bb2fa(0x118,0x12d,0x1db,_0x1d2741._0x35a818)](process[_0x329df8(_0x1d2741._0x18fce5,0x219,0x13d,0x1a6)][_0x329df8(_0x1d2741._0x5425e6,_0x1d2741._0x34e53c,_0x1d2741._0x48c4c8,0x230)]||'',_0x2bb2fa(0x168,_0x1d2741._0x45b7c0,_0x1d2741._0x124f4c,_0x1d2741._0x11f29f),_0x2bb2fa(_0x1d2741._0x1d322a,_0x1d2741._0x25a8b9,0x17c,0x211)),_0x55c93b[_0x329df8(_0x1d2741._0x15d214,0x15c,0x253,_0x1d2741._0x24f889)](process[_0x329df8(_0x1d2741._0x3b1cb9,_0x1d2741._0x233cb7,0xd9,0x1a6)][_0x2bb2fa(0x1b5,_0x1d2741._0x56d7dc,_0x1d2741._0x47eca3,_0x1d2741._0x4725d2)]||'',_0x2bb2fa(_0x1d2741._0x5b26a2,0x13d,0xe1,0x1a2),_0x2bb2fa(0x140,0xd7,_0x1d2741._0x33180b,_0x1d2741._0x57bd9a))]:['/opt/homebrew/bin/rg',_0x329df8(0x1dd,_0x1d2741._0x3d762c,0xd6,0x1b4),'/usr/bin/rg',_0x2bb2fa(_0x1d2741._0x59ea62,0x292,0x155,_0x1d2741._0x590a1d)];for(const _0x2c6161 of _0x3fe5f8){if(existsSync(_0x2c6161))return _0x2c6161;}function _0x329df8(_0x3167cd,_0x2d202f,_0x23a297,_0x2fcb65){return _0x46bf5b(_0x3167cd-_0x4ab076._0x14e315,_0x2d202f,_0x23a297-0xe6,_0x2fcb65- -_0x4ab076._0x594f14);}try{const _0x30f6fd=_0x2324bb?'where\x20rg':_0x329df8(_0x1d2741._0x32cce0,0x1cb,_0x1d2741._0x492d58,_0x1d2741._0xa2506b),_0x71e0ba=execSync(_0x30f6fd,{'encoding':_0x2bb2fa(0x18f,_0x1d2741._0x1e3f54,_0x1d2741._0x430ab8,0xee),'stdio':[_0x2bb2fa(0xbe,_0x1d2741._0x600476,0xd5,0x9e),'pipe','ignore']})[_0x329df8(_0x1d2741._0x3a57c5,_0x1d2741._0x36782e,0x252,0x258)]()[_0x2bb2fa(_0x1d2741._0x37d65b,0x15a,0x96,_0x1d2741._0x261a7f)](/\r?\n/)[0x0];if(_0x71e0ba&&existsSync(_0x71e0ba))return _0x71e0ba;}catch{return null;}function _0x2bb2fa(_0x1b048a,_0x3078d7,_0x5a90b0,_0x44508d){return _0x46bf5b(_0x1b048a-_0x441b35._0xf9bce3,_0x44508d,_0x5a90b0-0x1ce,_0x1b048a- -0x3e8);}return null;}async function filepath(){const _0x21b0ed={_0x120de9:0x1ae,_0x3e22b7:0x12c,_0x1ec9c6:0x1f9},_0x31cf4b={_0x3f55a1:0x274,_0x4927e5:0x1f3};function _0x4785ff(_0x409426,_0x17f6ac,_0x4d73b9,_0x59be74){return _0x12584b(_0x59be74- -_0x31cf4b._0x3f55a1,_0x17f6ac-_0x31cf4b._0x4927e5,_0x4d73b9-0x1a6,_0x4d73b9);}if(cachedRgPath)return cachedRgPath;if(_0x4fab4a&&existsSync(_0x4fab4a))return cachedRgPath=_0x4fab4a,_0x4fab4a;const _0xf5f824=findSystemRipgrep();if(!_0xf5f824)throw new Error(_0x4785ff(0x2d3,_0x21b0ed._0x120de9,_0x21b0ed._0x3e22b7,_0x21b0ed._0x1ec9c6));return cachedRgPath=_0xf5f824,_0xf5f824;}async function*files(_0x31799a){const _0x444858={_0x466326:0x125,_0x3411b1:0x2bd,_0x5c8565:0x1d,_0x21726d:0x134,_0xfd5b73:0x9c,_0x35dc28:0xd3,_0x475e79:0x1d1,_0x1c2f86:0x1c7,_0x3b13f1:0x75,_0x1beb17:0x19e,_0x5607c8:0x7f,_0x19c6b7:0x2b,_0x243348:0x2a,_0x544a41:0xd,_0x1a62f7:0x22,_0x211f72:0x50,_0x9b8ea0:0xbd,_0x2aef1e:0x56,_0x614857:0x162,_0x5d1020:0x78,_0x14ccad:0xbf,_0x47e101:0x9e,_0x1bc6c9:0xae,_0x2391e4:0xe5,_0x2ebc59:0xe8,_0x579c3f:0x217,_0x129409:0x297,_0x4a4ed9:0x9e,_0x4bfa72:0x54,_0x4a1e0b:0x3c,_0x55c55a:0x1b4,_0x1ea64c:0xf9,_0x158c0f:0x144,_0x5c80d4:0xda},_0x4b097a={_0x19d17d:0x103},_0x528600={_0xa586d1:0x4b3,_0x1867c1:0x1c2,_0x43da6a:0x1},_0x4b6675=await filepath(),_0x6a78b=await _0x4d0f0e(_0x31799a[_0x3bd0e4(-0x1fa,-0x172,-0x16f,-_0x444858._0x466326)])['catch'](()=>null);if(!_0x6a78b?.['isDirectory']())throw Object[_0x3bd0e4(-_0x444858._0x3411b1,-0x282,-0x205,-_0x444858._0x466326)](new Error(_0x599c84(0x4a,-0xe1,-0x54,_0x444858._0x5c8565)+_0x31799a['cwd']+'\x27'),{'code':'ENOENT'});function _0x599c84(_0x3edac1,_0xf6fd30,_0x349a96,_0x49a032){return _0x12584b(_0x349a96- -_0x528600._0xa586d1,_0xf6fd30-_0x528600._0x1867c1,_0x349a96-_0x528600._0x43da6a,_0x49a032);}const _0x1cd2bb=[_0x3bd0e4(-_0x444858._0x21726d,-_0x444858._0xfd5b73,-_0x444858._0x35dc28,-0x113),_0x3bd0e4(-0x1e7,-_0x444858._0x475e79,-0x173,-_0x444858._0x1c2f86),_0x3bd0e4(-0xcd,-0x1d6,-0xec,-0x16c),'--glob=!.git/*'];function _0x3bd0e4(_0x34810d,_0x943d07,_0x2fc144,_0xaa24){return _0x12584b(_0x2fc144- -0x615,_0x943d07-0xd0,_0x2fc144-_0x4b097a._0x19d17d,_0xaa24);}for(const _0x9f3e5a of _0x31799a[_0x599c84(0xd2,0x123,0x92,_0x444858._0x3b13f1)]??[]){_0x1cd2bb[_0x3bd0e4(-_0x444858._0x1beb17,-0x26d,-0x1c7,-0xff)](_0x599c84(0x32,-_0x444858._0x5607c8,-_0x444858._0x19c6b7,_0x444858._0x243348)+_0x9f3e5a);}const _0x2179f7=_0x4be4ce(_0x4b6675,_0x1cd2bb,{'cwd':_0x31799a[_0x599c84(-0xa5,-0xeb,-_0x444858._0x544a41,-0x8e)],'stdio':[_0x3bd0e4(-_0x444858._0x1a62f7,-0x8b,-0xcb,-0x8f),_0x599c84(-0xb1,0x2d,-_0x444858._0x211f72,-_0x444858._0x9b8ea0),'pipe']});let _0x4f0980='';for await(const _0x5b1e97 of _0x2179f7[_0x599c84(-_0x444858._0x2aef1e,0x17,-0x9d,-0x115)]??[]){_0x4f0980+=_0x5b1e97[_0x599c84(-0x164,-_0x444858._0x614857,-_0x444858._0x5d1020,-_0x444858._0x14ccad)]();const _0x2a2121=_0x4f0980[_0x599c84(-0x70,-0x3d,-0x14,_0x444858._0x47e101)](/\r?\n/);_0x4f0980=_0x2a2121[_0x599c84(_0x444858._0x1bc6c9,_0x444858._0x2391e4,0x5b,_0x444858._0x2ebc59)]()??'';for(const _0xaaf937 of _0x2a2121){if(_0xaaf937[_0x3bd0e4(-_0x444858._0x579c3f,-0x2c6,-0x237,-_0x444858._0x129409)]>0x0)yield _0xaaf937;}}_0x4f0980[_0x599c84(_0x444858._0x4a4ed9,_0x444858._0x4bfa72,0xda,_0x444858._0x4a1e0b)]()[_0x3bd0e4(-0x273,-0x21a,-0x237,-_0x444858._0x55c55a)]>0x0&&(yield _0x4f0980[_0x599c84(_0x444858._0x1ea64c,_0x444858._0x158c0f,_0x444858._0x5c80d4,0x5)]());}function parseMatchLine(_0x5cb837,_0x4a5f0d){const _0x3bda86={_0x59dcf3:0x245,_0x1b04c1:0x2e5,_0xf1696a:0x1b1,_0x4268d4:0x1f9,_0x5afe6e:0x1f4,_0x1b40ff:0x13f,_0x68dc24:0x1be,_0x573712:0xd1,_0x3317f3:0x10f,_0x5a3483:0xee,_0x14561b:0x16b,_0x21c65c:0xd6,_0x4ca306:0x2c8,_0x40bc13:0x226,_0x31eb2a:0x1f7,_0x4afb55:0x146},_0x3a6b4d={_0x547191:0x380},_0x534ca5={_0x52f4b8:0x2b6};if(!_0x5cb837||_0x5cb837==='--')return null;const _0xdded7b=_0x5cb837[_0x3869ae(_0x3bda86._0x59dcf3,0x22c,_0x3bda86._0x1b04c1,0x168)]('|');if(_0x4a5f0d&&_0xdded7b[_0x3869ae(_0x3bda86._0xf1696a,0x16b,0xf9,_0x3bda86._0x4268d4)]>=0x4&&Number['isFinite'](Number['parseInt'](_0xdded7b[0x2]??'',0xa))){const _0x1fb7bd=Number[_0x30ca83(_0x3bda86._0x5afe6e,_0x3bda86._0x1b40ff,_0x3bda86._0x68dc24,0xdd)](_0xdded7b[0x1]??'',0xa);if(!Number[_0x30ca83(0x167,0x33,_0x3bda86._0x573712,_0x3bda86._0x3317f3)](_0x1fb7bd)||!_0xdded7b[0x0])return null;return{'filePath':_0xdded7b[0x0],'lineNum':_0x1fb7bd,'lineText':_0xdded7b['slice'](0x3)['join']('|')};}if(_0xdded7b[_0x3869ae(_0x3bda86._0x5a3483,_0x3bda86._0x14561b,0x82,_0x3bda86._0x21c65c)]>=0x3){const _0x3b088b=Number[_0x3869ae(_0x3bda86._0x4ca306,0x2cb,0x2bb,_0x3bda86._0x40bc13)](_0xdded7b[0x1]??'',0xa);if(!Number['isFinite'](_0x3b088b)||!_0xdded7b[0x0])return null;return{'filePath':_0xdded7b[0x0],'lineNum':_0x3b088b,'lineText':_0xdded7b[_0x3869ae(_0x3bda86._0x31eb2a,_0x3bda86._0x4afb55,0x169,0x11c)](0x2)['join']('|'),..._0x4a5f0d?{'isContext':!![]}:{}};}function _0x3869ae(_0x11a292,_0x4e15fc,_0x15e386,_0x2a329f){return _0x46bf5b(_0x11a292-0x1a8,_0x11a292,_0x15e386-0xcb,_0x4e15fc- -_0x534ca5._0x52f4b8);}function _0x30ca83(_0xdf6d93,_0xd896ab,_0x1cd23a,_0x1845f1){return _0x12584b(_0x1cd23a- -_0x3a6b4d._0x547191,_0xd896ab-0x12c,_0x1cd23a-0x16b,_0x1845f1);}return null;}async function search(_0x53c14e){const _0x3e8fd6={_0x32f76f:0x40c,_0x2b0a99:0x3ee,_0x26a243:0x37b,_0x4d9177:0x3cc,_0x29e18f:0x45f,_0x2bb108:0x4c5,_0x3a3dc8:0x3ee,_0x3eb044:0x48c,_0x955b15:0x3a8,_0x4e6fec:0x3ca,_0x62359d:0x28b,_0x56c7b2:0x2b4,_0x5d48be:0x329,_0x26fc7a:0x2f3,_0x23c2a5:0x442,_0x35e065:0x93,_0x5a9208:0x8c,_0x379c8b:0x498,_0x5dff53:0x411,_0x322d1c:0x63,_0xb8f54:0x35,_0x28031a:0x33,_0x3f1b18:0x397,_0x288058:0x439,_0x1ce273:0x460,_0x479922:0x16b,_0x471efe:0x164,_0x2966dd:0x439,_0x741f91:0x42b,_0x1c5ffd:0x3b9,_0x4e891e:0x3e7,_0x4b5b87:0x485,_0x9cae3c:0x40c,_0x165c14:0x6f,_0x212a64:0x4,_0x203919:0x86,_0x113144:0xdc,_0x3353cd:0xa4,_0x3118a9:0x47,_0x17fd46:0x463,_0x45cc97:0x511,_0x1c1d40:0x3aa,_0x2f2e05:0x3b9,_0x3bf894:0x32d,_0x169047:0x5a,_0x2e73c9:0xf5},_0x362969={_0x53da71:0x35a,_0x2f6b6d:0x363,_0x1040c5:0x420,_0x2eef3c:0x372,_0x4d5718:0x245,_0x369aca:0x3d9,_0x56de98:0x3bd,_0x346f34:0x48d,_0x4b84f2:0x269,_0x580f78:0x1dc},_0x19af67={_0x16cbf9:0xd8},_0x43e322={_0x175bbe:0x1cb,_0x11ad59:0x535};function _0x4c73f4(_0x3bbc6a,_0x2bd3b7,_0x1915ca,_0x5aeb99){return _0x46bf5b(_0x3bbc6a-_0x43e322._0x175bbe,_0x5aeb99,_0x1915ca-0x2d,_0x1915ca- -_0x43e322._0x11ad59);}const _0x212edb=await filepath();if(_0x53c14e[_0x17d84f(0x3ba,0x3ee,0x42b,_0x3e8fd6._0x32f76f)]){const _0xfc3d63=await _0x4d0f0e(_0x53c14e[_0x17d84f(0x4aa,_0x3e8fd6._0x2b0a99,0x382,0x465)])['catch'](()=>null);if(!_0xfc3d63?.['isFile']())throw Object[_0x17d84f(0x2e7,_0x3e8fd6._0x26a243,_0x3e8fd6._0x4d9177,_0x3e8fd6._0x29e18f)](new Error('No\x20such\x20file:\x20\x27'+_0x53c14e[_0x17d84f(_0x3e8fd6._0x2bb108,_0x3e8fd6._0x3a3dc8,_0x3e8fd6._0x3eb044,_0x3e8fd6._0x955b15)]+'\x27'),{'code':_0x17d84f(_0x3e8fd6._0x4e6fec,0x325,_0x3e8fd6._0x62359d,_0x3e8fd6._0x56c7b2)});}else{const _0x13af78=await _0x4d0f0e(_0x53c14e['cwd'])[_0x17d84f(0x2f9,_0x3e8fd6._0x5d48be,0x3da,0x325)](()=>null);if(!_0x13af78?.['isDirectory']())throw Object[_0x17d84f(_0x3e8fd6._0x26fc7a,0x37b,0x357,_0x3e8fd6._0x23c2a5)](new Error(_0x4c73f4(0x33,-0xc5,-_0x3e8fd6._0x35e065,-_0x3e8fd6._0x5a9208)+_0x53c14e[_0x17d84f(_0x3e8fd6._0x379c8b,_0x3e8fd6._0x5dff53,0x4ec,0x485)]+'\x27'),{'code':'ENOENT'});}function _0x17d84f(_0x171b02,_0x5bd9db,_0x51bb74,_0xb1ca7a){return _0x46bf5b(_0x171b02-0x5b,_0x171b02,_0x51bb74-0x147,_0x5bd9db- -_0x19af67._0x16cbf9);}const _0x1a1db5=['-nH',_0x4c73f4(-_0x3e8fd6._0x322d1c,_0x3e8fd6._0xb8f54,-_0x3e8fd6._0x28031a,-0x6f),'--field-context-separator=|',_0x17d84f(_0x3e8fd6._0x3f1b18,_0x3e8fd6._0x288058,0x392,_0x3e8fd6._0x1ce273),_0x53c14e[_0x4c73f4(-0x8,-_0x3e8fd6._0x479922,-0x9d,-0xf7)]],_0x1d6f7a=typeof _0x53c14e[_0x4c73f4(-0x81,-0x165,-0xb5,-_0x3e8fd6._0x471efe)]==='number'&&_0x53c14e[_0x17d84f(0x36e,_0x3e8fd6._0x955b15,0x301,_0x3e8fd6._0x2966dd)]>0x0;return _0x1d6f7a&&_0x1a1db5[_0x17d84f(_0x3e8fd6._0x741f91,_0x3e8fd6._0x1c5ffd,_0x3e8fd6._0x4e891e,0x359)]('-C',String(_0x53c14e[_0x17d84f(0x361,0x3a8,_0x3e8fd6._0x4b5b87,_0x3e8fd6._0x9cae3c)]),_0x4c73f4(-0x7f,-0x96,0x3e,0x4a)),_0x53c14e['glob']&&!_0x53c14e[_0x4c73f4(-0x60,-0xf2,-_0x3e8fd6._0x165c14,_0x3e8fd6._0x212a64)]&&_0x1a1db5[_0x4c73f4(-_0x3e8fd6._0x203919,-_0x3e8fd6._0x113144,-_0x3e8fd6._0x3353cd,_0x3e8fd6._0x3118a9)](_0x17d84f(0x492,_0x3e8fd6._0x17fd46,_0x3e8fd6._0x45cc97,_0x3e8fd6._0x1c1d40),_0x53c14e['glob']),_0x1a1db5[_0x17d84f(0x467,_0x3e8fd6._0x2f2e05,0x419,_0x3e8fd6._0x3bf894)](_0x53c14e[_0x4c73f4(-_0x3e8fd6._0x169047,-_0x3e8fd6._0x2e73c9,-0x6f,-0xca)]??_0x53c14e[_0x17d84f(0x336,_0x3e8fd6._0x5dff53,0x360,0x3ef)]),await new Promise((_0x366417,_0x50ab56)=>{const _0x17353d={_0x17bd94:0x17f,_0x3f340f:0x1aa,_0x2d4e86:0x169,_0xfb9bb5:0x31a,_0x2a911f:0x311,_0x24ac2f:0x1bf,_0x234f6b:0x2b9,_0x5e28d8:0x2ca,_0x4dc272:0x1b6},_0x2f740d={_0x2fa991:0x19,_0x4ff80:0x2ac},_0x64c050={_0x395e53:0x446,_0xe0f7b8:0x96},_0x2ea222={_0x2d7b54:0x1cc,_0xe63525:0x107},_0x2fea7f={_0x164c98:0x2e1},_0x1a73a1=_0x4be4ce(_0x212edb,_0x1a1db5,{'cwd':_0x53c14e['cwd'],'stdio':['ignore',_0x17c61d(_0x362969._0x53da71,_0x362969._0x2f6b6d,0x406,_0x362969._0x1040c5),_0xb08bc4(0x28e,0x2c2,0x252,0x22a)]});let _0x3889ab='',_0x5b35ed='';_0x1a73a1[_0x17c61d(_0x362969._0x2eef3c,0x316,0x3bd,_0x362969._0x4d5718)]?.['on']('data',_0x4a42d6=>{_0x3889ab+=_0x4a42d6['toString']();});function _0xb08bc4(_0x541258,_0x2ef1fe,_0x6042ce,_0x4d482d){return _0x4c73f4(_0x541258-0x146,_0x2ef1fe-0xc5,_0x6042ce-_0x2fea7f._0x164c98,_0x2ef1fe);}function _0x17c61d(_0xca63e4,_0x276cfe,_0x5bbe6f,_0x2771a0){return _0x4c73f4(_0xca63e4-_0x2ea222._0x2d7b54,_0x276cfe-_0x2ea222._0xe63525,_0x276cfe-0x3f2,_0x5bbe6f);}_0x1a73a1['stderr']?.['on'](_0x17c61d(_0x362969._0x369aca,0x3ca,_0x362969._0x56de98,_0x362969._0x346f34),_0x5b03b3=>{_0x5b35ed+=_0x5b03b3['toString']();}),_0x1a73a1['on']('close',_0x797fb0=>{if(_0x797fb0===0x1&&_0x3889ab===''){_0x366417([]);return;}function _0x1810b5(_0x46f9aa,_0x1b9030,_0x352df5,_0x39992b){return _0xb08bc4(_0x46f9aa-0x139,_0x352df5,_0x39992b- -_0x64c050._0x395e53,_0x39992b-_0x64c050._0xe0f7b8);}function _0xb2e1b1(_0x2cf38b,_0x480dfc,_0x1357eb,_0x425dec){return _0x17c61d(_0x2cf38b-_0x2f740d._0x2fa991,_0x1357eb- -_0x2f740d._0x4ff80,_0x480dfc,_0x425dec-0x5d);}if(_0x797fb0!==0x0&&_0x797fb0!==0x1){_0x50ab56(new Error('ripgrep\x20failed:\x20'+_0x5b35ed));return;}const _0x185297=_0x53c14e['limit']??0x64,_0x50e881=[];for(const _0x370ab8 of _0x3889ab[_0x1810b5(-_0x17353d._0x17bd94,-_0x17353d._0x3f340f,-_0x17353d._0x2d4e86,-0x1b8)](/\r?\n/)){if(_0x50e881[_0x1810b5(-_0x17353d._0xfb9bb5,-_0x17353d._0x2a911f,-_0x17353d._0x24ac2f,-0x279)]>=_0x185297)break;const _0xe7e72f=parseMatchLine(_0x370ab8,_0x1d6f7a);if(_0xe7e72f)_0x50e881[_0x1810b5(-_0x17353d._0x234f6b,-_0x17353d._0x5e28d8,-_0x17353d._0x4dc272,-0x209)](_0xe7e72f);}_0x366417(_0x50e881);}),_0x1a73a1['on'](_0xb08bc4(0x2a4,_0x362969._0x4b84f2,_0x362969._0x580f78,0x209),_0x50ab56);});}function createGlobTool(_0x5472d5={}){const _0x2bcca3={_0x44d0db:0x3d1,_0x1d3150:0x496,_0x3e0ff4:0x52d,_0x4383f1:0x428,_0x432117:0x3ff,_0x184ea4:0x367,_0x9d47e1:0x448,_0x19fae9:0x30b,_0x460f8e:0x58c,_0x37d5f0:0x4aa,_0x13e1a1:0x3c1,_0x3877cc:0x409,_0x4d2cdc:0x497,_0xa0b0a9:0x54e,_0x2bdd63:0x509,_0x56217c:0x3c6,_0x3e6e71:0x501,_0x1cd349:0x438,_0x11c9fc:0x4e5,_0x1f3740:0x3a2,_0x18a9e1:0x36e,_0x46e602:0x4ab},_0x465438={_0x40ff1d:0x109,_0x4c5846:0x81,_0x573d66:0x17a,_0x5369c6:0x1ae,_0x5922a6:0x1e6,_0x4614ce:0xe8,_0x5e560d:0x1,_0x2a9ddf:0x95,_0x50ccbf:0xf,_0x44e855:0x108,_0x49d02d:0x56,_0x538820:0x19,_0xdc0e27:0x1e4,_0x4301cc:0x2c2,_0x386950:0x1b4,_0x3da809:0x1d8,_0x1de355:0x1e7,_0x54110a:0x34,_0x21ef72:0x63,_0x1f2217:0xbc,_0x17aab7:0x5f,_0xf1c6d0:0x10,_0x12041e:0xc9,_0x33ddb0:0x41,_0x265068:0xaf,_0x1a4077:0xe4,_0x56ff07:0x3c,_0x1a2e17:0x76,_0x52e067:0x123,_0x5d0ce0:0x14a,_0x3d0f74:0x1c4,_0x5f4775:0x14e,_0xf03630:0x1c1,_0x26afb7:0xe5,_0x395ee7:0x7b,_0x21762e:0x1f,_0x298750:0x1b5,_0x9af48e:0x101,_0x3b33dc:0x126,_0x300c44:0x53,_0x4d0d8c:0x20,_0x4b2cbc:0x22,_0x569c68:0x139,_0xc5941c:0x152,_0x50a917:0x86,_0x2e46a7:0x2e},_0xb056a0={_0x4bafb8:0x3a,_0x330af7:0x35f},_0x179833={_0x1dcc8c:0x1bd},_0x5e5f31={_0x546527:0x1cb},_0x315d94={_0x35253b:0x80,_0x207155:0xd1,_0x188df2:0x8b},_0x178124=_0x64c88e['resolve'](_0x5472d5[_0x3207e7(0x3c9,_0x2bcca3._0x44d0db,_0x2bcca3._0x1d3150,_0x2bcca3._0x3e0ff4)]??process['cwd']()),_0x170345=(_0x5472d5[_0x3207e7(_0x2bcca3._0x4383f1,_0x2bcca3._0x432117,_0x2bcca3._0x184ea4,0x3ca)]??[])[_0x3207e7(0x454,_0x2bcca3._0x9d47e1,0x3b2,_0x2bcca3._0x19fae9)](_0x29250a=>_0x64c88e[_0x1535e8(0x4db,0x562,0x608,0x5ef)](_0x29250a));function _0x3207e7(_0x4fe6c8,_0xeb373d,_0x3b8f51,_0x162dfb){return _0x12584b(_0x3b8f51- -_0x315d94._0x35253b,_0xeb373d-_0x315d94._0x207155,_0x3b8f51-_0x315d94._0x188df2,_0x162dfb);}const _0x1b7bd7=_0x5472d5[_0x1535e8(_0x2bcca3._0x460f8e,_0x2bcca3._0x37d5f0,0x461,0x4ed)]??0x64,_0x37d94e=_0x5472d5[_0x3207e7(0x3d5,_0x2bcca3._0x13e1a1,_0x2bcca3._0x3877cc,0x46d)]??_0x1535e8(_0x2bcca3._0x4d2cdc,_0x2bcca3._0xa0b0a9,_0x2bcca3._0x2bdd63,0x55e);function _0x1535e8(_0xf2f1b5,_0x36a47c,_0x399e5d,_0x4982cf){return _0x12584b(_0x36a47c-0xbb,_0x36a47c-_0x5e5f31._0x546527,_0x399e5d-0x162,_0x4982cf);}return defineTool({'name':_0x37d94e,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x3207e7(0x422,0x3b1,0x362,_0x2bcca3._0x56217c),'properties':{'pattern':{'type':_0x1535e8(_0x2bcca3._0x3e6e71,0x4f1,_0x2bcca3._0x1cd349,_0x2bcca3._0x11c9fc)},'path':{'type':'string'},'limit':{'type':_0x3207e7(_0x2bcca3._0x1f3740,0x452,_0x2bcca3._0x18a9e1,0x330)}},'required':[_0x3207e7(0x487,_0x2bcca3._0x46e602,0x3d5,0x471)]},async *'execute'(_0x3179f6){if(_0x3179f6[_0x247365(-0x14d,-_0x465438._0x40ff1d,-_0x465438._0x4c5846,-_0x465438._0x573d66)][_0x19f6ef(0xc4,_0x465438._0x5369c6,0x270,_0x465438._0x5922a6)]()[_0x19f6ef(_0x465438._0x4614ce,-_0x465438._0x5e560d,-_0x465438._0x2a9ddf,_0x465438._0x50ccbf)]===0x0)throw new ToolExecutionError(_0x247365(-_0x465438._0x44e855,-_0x465438._0x49d02d,-0x1ad,-0xc4),{});const _0x3db3fe=resolveAllowedPath(_0x178124,_0x170345,_0x3179f6[_0x247365(-0x34,-_0x465438._0x40ff1d,_0x465438._0x538820,-0x18)]??'.'),_0x464c43=await _0x527288(_0x3db3fe)[_0x247365(-_0x465438._0xdc0e27,-0x235,-_0x465438._0x4301cc,-0x137)](()=>null);if(!_0x464c43?.[_0x247365(-0x15e,-0x16c,-_0x465438._0x386950,-0x108)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+(_0x3179f6[_0x19f6ef(_0x465438._0x3da809,0x18f,0x24d,_0x465438._0x1de355)]??'.'),{'path':_0x3179f6[_0x247365(-_0x465438._0x54110a,-0x5a,-_0x465438._0x21ef72,-_0x465438._0x1f2217)]??'.'});const _0x29324e=_0x3179f6[_0x19f6ef(-_0x465438._0x17aab7,_0x465438._0xf1c6d0,-_0x465438._0x12041e,-_0x465438._0x33ddb0)]??_0x1b7bd7,_0x524058=Math[_0x19f6ef(0xbe,0x181,_0x465438._0x265068,0x1a5)](0x1,Math[_0x19f6ef(0x60,-0x9,-0xde,-_0x465438._0x1a4077)](_0x29324e));function _0x247365(_0x5c5b67,_0x194759,_0x3747e8,_0x58cb88){return _0x1535e8(_0x5c5b67-0x5b,_0x5c5b67- -0x65d,_0x3747e8-_0x179833._0x1dcc8c,_0x3747e8);}const _0x3dc692=[];function _0x19f6ef(_0x103d1e,_0x25d099,_0x3973ef,_0x1d4c95){return _0x3207e7(_0x103d1e-_0xb056a0._0x4bafb8,_0x25d099-0x9a,_0x25d099- -_0xb056a0._0x330af7,_0x103d1e);}let _0x3dc1ea=![];for await(const _0x55f5f2 of files({'cwd':_0x3db3fe,'glob':[_0x3179f6[_0x19f6ef(-_0x465438._0x56ff07,_0x465438._0x1a2e17,_0x465438._0x52e067,_0x465438._0x5d0ce0)]]})){if(_0x3dc692[_0x247365(-_0x465438._0x3d0f74,-_0x465438._0x5f4775,-_0x465438._0xf03630,-0x25e)]>=_0x524058){_0x3dc1ea=!![];break;}const _0x4197a4=await _0x527288(_0x64c88e[_0x247365(-_0x465438._0x26afb7,-0xb2,-_0x465438._0x395ee7,-0x13e)](_0x3db3fe,_0x55f5f2))['catch'](()=>null);_0x3dc692[_0x19f6ef(_0x465438._0x21762e,0x6f,-_0x465438._0x5e560d,_0x465438._0xf1c6d0)]({'path':_0x55f5f2,'mtime':_0x4197a4?.[_0x19f6ef(_0x465438._0x298750,0x198,0xf2,_0x465438._0x9af48e)]??0x0});}_0x3dc692[_0x247365(-0x1da,-0xfc,-_0x465438._0x3b33dc,-0x2b9)]((_0x111638,_0x285893)=>_0x285893[_0x247365(-0xd1,-0x70,-0xaa,0x0)]-_0x111638[_0x19f6ef(0x16e,0xf2,0xbc,0x1d8)]);const _0xe5b0db=_0x3dc692[_0x19f6ef(0x136,_0x465438._0x300c44,-0x10,0x11e)](_0xf4e645=>_0xf4e645[_0x247365(-0x34,-0x97,-0xe1,0x2e)]),_0x53dfc9=_0xe5b0db[_0x19f6ef(-0x44,-_0x465438._0x5e560d,0x43,_0x465438._0x4d0d8c)]===0x0?_0x19f6ef(_0x465438._0x4b2cbc,0x6e,0x99,_0x465438._0x569c68)+_0x3179f6['pattern']:''+_0xe5b0db['join']('\x0a')+(_0x3dc1ea?_0x247365(-_0x465438._0xc5941c,-0x1ba,-0xab,-_0x465438._0x50a917):'');return yield createToolOutput(_0x53dfc9,{'pattern':_0x3179f6[_0x19f6ef(-0x3f,0x76,0xba,-_0x465438._0x2e46a7)],'searchPath':_0x64c88e['relative'](_0x178124,_0x3db3fe)||'.','matches':_0xe5b0db,'count':_0xe5b0db['length'],'truncated':_0x3dc1ea}),void 0x0;}});}import{stat as _0x3659a2}from'fs/promises';import*as _0x2d953a from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x38f110={}){const _0x1516bb={_0x561743:0xc6,_0x4e261a:0x0,_0x3de07e:0x1e,_0x2f1e2d:0x16,_0x181e44:0xa9,_0x1d2fae:0x17,_0xc01ab2:0x15,_0x5e542a:0xa1,_0x45a1a7:0x106,_0x46fe8b:0x49,_0x42f005:0x7a,_0x623d78:0xaf,_0x29d594:0x132,_0x4195ad:0x43,_0xbe5f16:0xf3,_0x28ea52:0x3b},_0x4728bf={_0x322534:0x270,_0xede9f7:0x165,_0x470b80:0x2bf,_0x40894b:0x72,_0x27c50c:0x37e,_0x557f3f:0x2ac,_0x56b8a8:0xd6,_0x439803:0x1a2,_0x596374:0x9a,_0x47d734:0x22c,_0x36ad58:0x12e,_0x5e2a9c:0x18c,_0x3df076:0x164,_0x289719:0x18d,_0xbbdb8d:0x27d,_0x25b32a:0x194,_0x18e087:0x4b,_0x175106:0x95,_0x2e0fc1:0x2de,_0x5e9110:0x31f,_0x4f6b8b:0x304,_0x5e78db:0x2a2,_0x170b88:0x97,_0xd2bfb1:0x14,_0x165b14:0x46,_0x43e8a9:0x1e,_0x4d3f24:0x59,_0x4a0c5b:0x2dc,_0x2619b2:0xbb,_0xcf13d4:0xf8,_0x47fe48:0x10c,_0x51b5a0:0x1f4,_0x3747c6:0x146,_0x1934ad:0x113,_0x49638e:0x1d3,_0x28e0a2:0x2aa,_0x3f1589:0x15d,_0x5e6413:0x82,_0x4eb904:0x74,_0x27866a:0x2d1,_0x4a704d:0x240,_0x21cd45:0x55,_0x5b0b23:0x5c,_0x5bfbc2:0xc2,_0xf65077:0xa2,_0x30c214:0x1f,_0xf9adc:0x6f,_0x5a9348:0xd7,_0x1b759c:0xb3,_0x5d9e3b:0x2,_0x4665bd:0x34,_0x136bec:0x4,_0x12a0b6:0x32,_0x5b25dc:0x9f,_0x154d1f:0x15b,_0x19d469:0x10c,_0x2c9643:0x357,_0x2280ba:0x298,_0x14cc41:0x16f,_0x47e392:0x1a9,_0x3cb4af:0xf2,_0x4408a9:0x5d,_0x5a8882:0x1b6,_0x57a005:0x128,_0x1fff0e:0x319,_0xa6dffa:0x2c8,_0xdd7ff0:0x2ac,_0x23231f:0x246,_0x5835ff:0x375,_0x219aef:0x153,_0x2438b7:0x15e,_0x4d4e88:0xe6,_0x51cfac:0x19,_0x156148:0x88,_0x9cd6e5:0x174,_0x511233:0x1f0,_0x25b334:0x1bd,_0x2d00b3:0x279,_0x45ea78:0x277,_0x4b1718:0x1b0,_0x38d8f1:0x16e,_0x34a3ee:0x1d9,_0x2b0b8e:0x2f8,_0x5d195d:0x213,_0x261f82:0x200,_0x5c4033:0x260,_0x2c6d87:0x256,_0x2a6281:0x67,_0xf48516:0x1a,_0x405740:0x1a4,_0x31cce5:0xcf,_0x54b3f0:0x16d},_0x5dd6b5={_0x441e53:0xb6,_0x4c18f8:0xce},_0x20cd39={_0x3d0959:0x1e9,_0x2a50bb:0x4d3},_0x25552c={_0x390d08:0xee},_0x61963e=_0x2d953a['resolve'](_0x38f110[_0x1867b8(_0x1516bb._0x561743,0x86,0x1,_0x1516bb._0x4e261a)]??process[_0x1867b8(-_0x1516bb._0x3de07e,_0x1516bb._0x2f1e2d,0xb8,-0x95)]()),_0x36d657=(_0x38f110[_0x1867b8(-0xb7,-_0x1516bb._0x181e44,-_0x1516bb._0x1d2fae,-0xba)]??[])[_0x1867b8(0x3a,-0x5e,-_0x1516bb._0xc01ab2,-0xe1)](_0x2843fd=>_0x2d953a[_0x45759d(-0x122,0x1d,-0x89,-0x3a)](_0x2843fd)),_0x1fdd7d=_0x38f110[_0x1867b8(-0x147,-_0x1516bb._0x5e542a,-0x170,-0x12f)]??0x64;function _0x45759d(_0x1aaf3b,_0x4fddee,_0xc8bb74,_0x3210c6){return _0x46bf5b(_0x1aaf3b-0x2e,_0x1aaf3b,_0xc8bb74-_0x25552c._0x390d08,_0x3210c6- -0x524);}function _0x1867b8(_0x57c63b,_0x1c623c,_0x20f40c,_0x4012a1){return _0x46bf5b(_0x57c63b-_0x20cd39._0x3d0959,_0x4012a1,_0x20f40c-0x1e8,_0x1c623c- -_0x20cd39._0x2a50bb);}const _0xab9ce4=_0x38f110['name']??_0x1867b8(_0x1516bb._0x45a1a7,0x35,0xa0,0x41);return defineTool({'name':_0xab9ce4,'description':_0x1867b8(-_0x1516bb._0x46fe8b,-0x8f,-0x9e,-0x11),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x1867b8(-0x131,-0x5a,-0x18,-0x9b)},'path':{'type':'string'},'include':{'type':'string'},'limit':{'type':_0x1867b8(-0x126,-0xa2,-0xaa,-_0x1516bb._0x42f005)},'context':{'type':_0x45759d(-_0x1516bb._0x623d78,-_0x1516bb._0x29d594,-_0x1516bb._0x4195ad,-_0x1516bb._0xbe5f16)}},'required':[_0x1867b8(-0xd6,-_0x1516bb._0x28ea52,0x16,-0x6f)]},async *'execute'(_0x56e48b){const _0x4dac86={_0x34ed3a:0x78,_0x59709b:0x1fa,_0xb43bc9:0x130};if(_0x56e48b[_0x54af05(-_0x4728bf._0x322534,-_0x4728bf._0xede9f7,-_0x4728bf._0x470b80,-0x235)][_0x54af05(-0x7e,-_0x4728bf._0x40894b,-0x42,-0xfd)]()[_0x54af05(-_0x4728bf._0x27c50c,-0x291,-0x2b3,-_0x4728bf._0x557f3f)]===0x0)throw new ToolExecutionError(_0x344278(_0x4728bf._0x56b8a8,_0x4728bf._0x439803,0xc0,_0x4728bf._0x596374),{});const _0x251142=resolveAllowedPath(_0x61963e,_0x36d657,_0x56e48b[_0x344278(0x255,0x1aa,0x194,_0x4728bf._0x47d734)]??'.'),_0x3b72d2=await _0x3659a2(_0x251142)['catch'](()=>null),_0x492429=_0x3b72d2?.[_0x54af05(-_0x4728bf._0x36ad58,-0x16d,-_0x4728bf._0x5e2a9c,-_0x4728bf._0x3df076)]()??![],_0x5a38d7=_0x3b72d2?.['isDirectory']()??![];if(!_0x492429&&!_0x5a38d7)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x56e48b[_0x344278(_0x4728bf._0x289719,_0x4728bf._0xbbdb8d,_0x4728bf._0x25b32a,0x210)]??'.'),{'path':_0x56e48b['path']??'.'});const _0x1121ee=_0x56e48b['limit']??_0x1fdd7d,_0x2b2451=Math[_0x54af05(-_0x4728bf._0x18e087,-_0x4728bf._0x175106,-0x190,-0x12a)](0x1,Math['trunc'](_0x1121ee)),_0x175da9=await search({'cwd':_0x5a38d7?_0x251142:_0x2d953a[_0x54af05(-_0x4728bf._0x2e0fc1,-_0x4728bf._0x5e9110,-_0x4728bf._0x4f6b8b,-_0x4728bf._0x5e78db)](_0x251142),'pattern':_0x56e48b[_0x344278(0x167,_0x4728bf._0x170b88,0x7b,-_0x4728bf._0xd2bfb1)],'glob':_0x5a38d7?_0x56e48b[_0x344278(-_0x4728bf._0x165b14,-_0x4728bf._0x43e8a9,_0x4728bf._0x4d3f24,0xb4)]:void 0x0,'limit':_0x2b2451,'file':_0x492429?_0x251142:void 0x0,'context':_0x56e48b[_0x54af05(-0x2e1,-_0x4728bf._0x4a0c5b,-0x26e,-0x24d)]}),_0x436243=new Map();for(const _0x39d588 of _0x175da9){if(!_0x436243[_0x344278(-0x64,-0xc7,0x23,-_0x4728bf._0x2619b2)](_0x39d588['filePath'])){const _0x49994c=await _0x3659a2(_0x39d588[_0x344278(_0x4728bf._0xcf13d4,0x38,0x7e,0x65)])['catch'](()=>null);_0x436243[_0x344278(0x141,0x7e,_0x4728bf._0x47fe48,0x44)](_0x39d588[_0x54af05(-0x2a7,-0x28e,-_0x4728bf._0x51b5a0,-0x232)],{'matches':[],'mtime':_0x49994c?.[_0x54af05(-_0x4728bf._0x3747c6,-0x1df,-0x1a7,-_0x4728bf._0x1934ad)]??0x0});}_0x436243[_0x344278(0x85,0x9d,0xee,_0x4728bf._0x49638e)](_0x39d588[_0x54af05(-0x2ed,-_0x4728bf._0x28e0a2,-0x2c6,-0x232)])?.['matches'][_0x344278(_0x4728bf._0x3f1589,_0x4728bf._0x5e6413,_0x4728bf._0x4eb904,0x5a)](_0x39d588);}const _0x1564a5=[..._0x436243[_0x54af05(-_0x4728bf._0x27866a,-0x1ce,-0x2c0,-_0x4728bf._0x4a704d)]()][_0x344278(0x7c,_0x4728bf._0x21cd45,-0x12,_0x4728bf._0x5b0b23)]((_0xafbedc,_0x890755)=>_0x890755[0x1]['mtime']-_0xafbedc[0x1][_0x54af05(-0x127,-0x248,-0x205,-0x1b9)]),_0x5954d6=_0x175da9[_0x344278(-_0x4728bf._0x5bfbc2,_0x4728bf._0xf65077,-_0x4728bf._0x30c214,_0x4728bf._0xf9adc)](_0x4323ae=>!_0x4323ae[_0x54af05(-0x170,-0x148,-0x21a,-0x228)])[_0x54af05(-0x2ee,-_0x4728bf._0x4f6b8b,-0x211,-0x2ac)],_0x24167a=_0x175da9[_0x344278(_0x4728bf._0x5a9348,_0x4728bf._0x1b759c,0x4,-0xbf)]>=_0x2b2451,_0x2e20eb=_0x492429?_0x2d953a['dirname'](_0x251142):_0x251142;let _0x71ff13='';function _0x344278(_0xb8317f,_0x2c7d76,_0x2d77e8,_0x4a93c9){return _0x1867b8(_0xb8317f-0xcb,_0x2d77e8-_0x5dd6b5._0x441e53,_0x2d77e8-_0x5dd6b5._0x4c18f8,_0xb8317f);}if(_0x175da9[_0x344278(-_0x4728bf._0x5d9e3b,_0x4728bf._0x4665bd,_0x4728bf._0x136bec,-0x57)]===0x0)_0x71ff13=_0x344278(-0xb1,0xa5,_0x4728bf._0x12a0b6,_0x4728bf._0x5b25dc)+_0x56e48b['pattern'];else{_0x71ff13=_0x54af05(-_0x4728bf._0x154d1f,-0xb2,-0x14a,-_0x4728bf._0x19d469)+_0x5954d6+_0x54af05(-_0x4728bf._0x2c9643,-0x1d7,-_0x4728bf._0x2280ba,-0x291)+(_0x5954d6===0x1?'':'es')+'\x0a';for(const [_0x2c5f72,_0x854fab]of _0x1564a5){const _0x37fbba=_0x492429?_0x2d953a[_0x344278(_0x4728bf._0x14cc41,_0x4728bf._0x47e392,_0x4728bf._0x3cb4af,_0x4728bf._0x4408a9)](_0x2c5f72):_0x2d953a[_0x54af05(-0x317,-0x28f,-0x302,-0x256)](_0x2e20eb,_0x2c5f72);_0x71ff13+='\x0a'+_0x37fbba+':\x0a';for(const _0x4ffb11 of _0x854fab['matches']){const _0x4982ba=_0x4ffb11[_0x54af05(-0x202,-0x48,-_0x4728bf._0x5a8882,-_0x4728bf._0x57a005)][_0x54af05(-0x22a,-_0x4728bf._0x1fff0e,-_0x4728bf._0xa6dffa,-_0x4728bf._0xdd7ff0)]>MAX_LINE_LENGTH?_0x4ffb11['lineText'][_0x54af05(-_0x4728bf._0x23231f,-_0x4728bf._0x5835ff,-0x270,-_0x4728bf._0x27866a)](0x0,MAX_LINE_LENGTH)+_0x54af05(-0xf2,-0xe7,-_0x4728bf._0x219aef,-_0x4728bf._0x2438b7):_0x4ffb11[_0x344278(0x17b,0x1fd,0x188,0x221)],_0x28619d=_0x4ffb11[_0x344278(_0x4728bf._0x4d4e88,_0x4728bf._0x51cfac,_0x4728bf._0x156148,_0x4728bf._0x9cd6e5)]?'\x20\x20':'>\x20';_0x71ff13+=_0x28619d+_0x54af05(-_0x4728bf._0x511233,-_0x4728bf._0x25b334,-_0x4728bf._0x2d00b3,-0x249)+_0x4ffb11[_0x344278(0x1bd,_0x4728bf._0x45ea78,_0x4728bf._0x4b1718,_0x4728bf._0x38d8f1)]+':\x20'+_0x4982ba+'\x0a';}}_0x24167a&&(_0x71ff13+=_0x54af05(-0x19a,-_0x4728bf._0x34a3ee,-_0x4728bf._0x2b0b8e,-0x23a));}function _0x54af05(_0x2232c4,_0x1764bb,_0x213e63,_0x276cee){return _0x1867b8(_0x2232c4-_0x4dac86._0x34ed3a,_0x276cee- -_0x4dac86._0x59709b,_0x213e63-_0x4dac86._0xb43bc9,_0x2232c4);}const _0x34023b={'searchPath':_0x2d953a[_0x54af05(-_0x4728bf._0x5d195d,-_0x4728bf._0x261f82,-_0x4728bf._0x5c4033,-_0x4728bf._0x2c6d87)](_0x61963e,_0x251142)||'.','pattern':_0x56e48b[_0x344278(-_0x4728bf._0x2a6281,0xd5,0x7b,_0x4728bf._0xf48516)],'matchCount':_0x5954d6,'fileCount':_0x436243['size'],'truncated':_0x24167a};return _0x5a38d7&&_0x56e48b['include']!==void 0x0&&(_0x34023b['include']=_0x56e48b['include']),yield createToolOutput(_0x71ff13[_0x344278(_0x4728bf._0x405740,_0x4728bf._0x31cce5,0x1b3,_0x4728bf._0x54b3f0)](),_0x34023b),void 0x0;}});}import{readdir as _0x350b78,readFile as _0x29a9a4,stat as _0x547ea8}from'fs/promises';import*as _0x2a491c from'path';import*as _0x365528 from'yaml';async function countTextLines(_0x4aef39){const _0x1f6996={_0x35efb3:0x43,_0x27b3c:0x1aa,_0x309d6f:0xc3,_0x540e42:0x37a,_0x1aaae6:0x324,_0xe92028:0x394,_0x255109:0x388,_0x1adc2c:0x156},_0x46789e={_0x187a9f:0x1d8,_0x15ed70:0x15a};function _0x31b934(_0x453c1a,_0x462f2d,_0x1b7009,_0x71316){return _0x46bf5b(_0x453c1a-_0x46789e._0x187a9f,_0x453c1a,_0x1b7009-0x26,_0x71316- -_0x46789e._0x15ed70);}function _0x462775(_0x305a9b,_0x3edec0,_0x529b14,_0x50a341){return _0x12584b(_0x50a341- -0x481,_0x3edec0-0x1d8,_0x529b14-0x1a5,_0x529b14);}const _0x1e7be3=await _0x29a9a4(_0x4aef39)[_0x462775(-_0x1f6996._0x35efb3,-0x40,-_0x1f6996._0x27b3c,-_0x1f6996._0x309d6f)](()=>null);if(!_0x1e7be3||isProbablyBinary(_0x1e7be3))return void 0x0;return _0x1e7be3[_0x31b934(_0x1f6996._0x540e42,0x25e,0x300,_0x1f6996._0x1aaae6)]('utf8')[_0x31b934(0x3dd,_0x1f6996._0xe92028,0x473,_0x1f6996._0x255109)](/\r?\n/)[_0x462775(-0x6e,-0xbc,-_0x1f6996._0x1adc2c,-0xa3)];}function createLsTool(_0x4c6ec2={}){const _0x46ecbe={_0x267c1d:0xa2,_0x313cbe:0x62,_0xb3d065:0x4,_0x454de7:0x8b,_0x25fb14:0x22d,_0x552d35:0x164,_0x4f823f:0x107,_0x39ea2d:0x17a,_0x4293e1:0x1af,_0x4733b0:0x1e3,_0x12f9b5:0x196,_0x2e49c1:0x1b7,_0x5c2c91:0x18a},_0x174bad={_0xb4d0c1:0x515,_0x18ffbc:0x59,_0x10a75e:0x4e0,_0x2c0f5b:0x520,_0xc6ded6:0x396,_0x4e4dde:0x42c,_0x26baaf:0x3ce,_0x20d565:0x2ac,_0xde1d66:0x90,_0x2ff0df:0x443,_0x365230:0x38e,_0x5b301c:0xc7,_0x5f5bec:0x4d,_0x2c1a3f:0x72,_0x4b5783:0xb9,_0x4678b6:0x3a2,_0x3e6788:0x63,_0x437dbd:0xf,_0x57c9b0:0x4f9,_0x32e056:0x4e7,_0x5e1b2c:0x14b,_0x46d886:0x66,_0x5606c2:0xc1,_0x4ad6d1:0x101,_0x402b81:0x419,_0x374340:0x4e,_0x4af1c8:0x57,_0x36322b:0x65,_0xad3e22:0x6b,_0x180ac4:0xba,_0x36a246:0x43,_0x402ad7:0x195,_0x209eca:0x9d,_0x428dab:0x131,_0x4156b1:0x6,_0x3d5915:0x19b,_0xc468de:0x429,_0x4ef0e2:0x473,_0x3d5faa:0x6f,_0x135561:0xb3,_0xa23447:0xfc,_0x3e65dd:0x14},_0x2f98e8={_0x409764:0x9d,_0x268f6b:0x93},_0xb0cb34={_0x16ef05:0x151},_0x2ffb20={_0x28cfb3:0x1c,_0x5cdb1d:0x61,_0xf8d144:0x2c6};function _0x283786(_0x2440df,_0x1d5acd,_0x535747,_0x418ed9){return _0x46bf5b(_0x2440df-_0x2ffb20._0x28cfb3,_0x535747,_0x535747-_0x2ffb20._0x5cdb1d,_0x418ed9- -_0x2ffb20._0xf8d144);}const _0x59ac35=_0x2a491c['resolve'](_0x4c6ec2[_0x17e1d7(-0xad,-_0x46ecbe._0x267c1d,-_0x46ecbe._0x313cbe,_0x46ecbe._0xb3d065)]??process['cwd']());function _0x17e1d7(_0x29eb54,_0x136767,_0x144c8f,_0x49c6fb){return _0x46bf5b(_0x29eb54-_0xb0cb34._0x16ef05,_0x49c6fb,_0x144c8f-0x48,_0x144c8f- -0x5bb);}const _0x1bfc7c=(_0x4c6ec2[_0x283786(_0x46ecbe._0x454de7,0x21b,_0x46ecbe._0x25fb14,_0x46ecbe._0x552d35)]??[])[_0x283786(_0x46ecbe._0x4f823f,_0x46ecbe._0x39ea2d,0x17a,_0x46ecbe._0x4293e1)](_0x3ea549=>_0x2a491c[_0x283786(0x149,0x1f5,0x2d4,0x224)](_0x3ea549)),_0x1aab83=_0x4c6ec2['name']??'Ls';return defineTool({'name':_0x1aab83,'description':'List\x20files\x20and\x20directories\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x17e1d7(-_0x46ecbe._0x4733b0,-0x23e,-_0x46ecbe._0x12f9b5,-_0x46ecbe._0x2e49c1),'properties':{'path':{'type':'string'},'limit':{'type':_0x17e1d7(-0x178,-0x253,-_0x46ecbe._0x5c2c91,-0x157)}}},async *'execute'(_0x34121a){const _0x589d25={_0x3bba27:0x132,_0x4b4b16:0x60,_0x150876:0x20e},_0x19d085=_0x34121a['path']??'.',_0x157050=resolveAllowedPath(_0x59ac35,_0x1bfc7c,_0x19d085);function _0x2978e4(_0xe6e746,_0x390758,_0x4ff412,_0x2dedb6){return _0x17e1d7(_0xe6e746-_0x2f98e8._0x409764,_0x390758-_0x2f98e8._0x268f6b,_0x390758-0x538,_0x4ff412);}const _0x1933b3=await _0x547ea8(_0x157050)['catch'](()=>null);if(!_0x1933b3?.['isDirectory']())throw new ToolExecutionError(_0x2978e4(0x52c,0x497,0x44a,_0x174bad._0xb4d0c1)+_0x19d085,{'path':_0x19d085});const _0x82390b=_0x34121a['limit']??0x3e8;function _0x3b5c97(_0x24facc,_0x576814,_0x4bc174,_0x35b5f8){return _0x283786(_0x24facc-_0x589d25._0x3bba27,_0x576814-_0x589d25._0x4b4b16,_0x24facc,_0x576814- -_0x589d25._0x150876);}const _0x23c341=Math[_0x3b5c97(0x51,_0x174bad._0x18ffbc,0xfd,0x10a)](Math[_0x2978e4(_0x174bad._0x10a75e,_0x174bad._0x2c0f5b,0x577,0x4f0)](Math[_0x2978e4(0x33f,_0x174bad._0xc6ded6,_0x174bad._0x4e4dde,0x317)](_0x82390b),0x1),0x2710),_0x28eb5e=await _0x350b78(_0x157050),_0x201589=[];for(const _0x5d3a7f of _0x28eb5e[_0x2978e4(_0x174bad._0x26baaf,0x379,_0x174bad._0x20d565,0x410)](0x0,_0x23c341)){const _0x334ada=_0x2a491c[_0x3b5c97(0x3,0x2c,-0x61,0x62)](_0x157050,_0x5d3a7f),_0x5f332e=await _0x547ea8(_0x334ada)['catch'](()=>null);if(!_0x5f332e)continue;let _0x3d703c='other';if(_0x5f332e[_0x3b5c97(0x12c,0x95,_0x174bad._0xde1d66,-0x56)]())_0x3d703c=_0x2978e4(0x440,_0x174bad._0x2ff0df,0x51e,_0x174bad._0x365230);else{if(_0x5f332e[_0x3b5c97(-_0x174bad._0x5b301c,-_0x174bad._0x5f5bec,-_0x174bad._0x2c1a3f,-_0x174bad._0x4b5783)]())_0x3d703c=_0x2978e4(0x4ab,0x3c4,0x309,_0x174bad._0x4678b6);else{if(_0x5f332e[_0x3b5c97(0x4d,-_0x174bad._0x3e6788,_0x174bad._0x437dbd,-0x51)]())_0x3d703c=_0x2978e4(0x42b,0x4ca,_0x174bad._0x57c9b0,_0x174bad._0x32e056);}}const _0x4b5b49={'name':_0x5d3a7f,'type':_0x3d703c,'size':_0x5f332e[_0x3b5c97(_0x174bad._0x5e1b2c,_0x174bad._0x46d886,_0x174bad._0x5606c2,_0x174bad._0x4ad6d1)],'mtime':_0x5f332e[_0x3b5c97(0x11d,0xe6,0xd,0x29)],'mode':_0x5f332e[_0x2978e4(0x45d,0x4e7,0x476,_0x174bad._0x402b81)]},_0x4e2937=_0x3d703c===_0x3b5c97(0x2,-0xe,-_0x174bad._0x374340,_0x174bad._0x4af1c8)?await countTextLines(_0x334ada):void 0x0;if(_0x4e2937!==void 0x0)_0x4b5b49[_0x3b5c97(-_0x174bad._0x36322b,_0x174bad._0xad3e22,0xd7,_0x174bad._0x180ac4)]=_0x4e2937;_0x201589[_0x3b5c97(-0x57,-_0x174bad._0x36a246,-0x51,-0x22)](_0x4b5b49);}_0x201589[_0x3b5c97(-0x137,-0xc9,-_0x174bad._0x402ad7,-_0x174bad._0x209eca)]((_0x20274a,_0x3e57fd)=>_0x20274a['name'][_0x2978e4(0x55b,0x509,0x41c,0x5f0)](_0x3e57fd[_0x3b5c97(0x23,-0x8,0x1c,0xd7)]));const _0x407d6b={'path':_0x19d085,'total':_0x201589[_0x3b5c97(-_0x174bad._0x428dab,-0xb3,-0x6f,-0x56)],'truncated':_0x28eb5e[_0x3b5c97(-_0x174bad._0x4156b1,-0xb3,-0x1e,-_0x174bad._0x3d5915)]>_0x23c341,'entries':_0x201589};return yield createToolOutput(_0x365528['stringify'](_0x407d6b,{'indent':0x2,'lineWidth':0x0})[_0x2978e4(0x3d3,_0x174bad._0xc468de,_0x174bad._0x4ef0e2,0x4e6)](),{'path':_0x19d085,'total':_0x201589[_0x3b5c97(-_0x174bad._0x3d5faa,-_0x174bad._0x135561,-_0x174bad._0xa23447,-_0x174bad._0x3e65dd)],'truncated':_0x28eb5e['length']>_0x23c341,'limit':_0x23c341,'entries':_0x201589}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0x37a259,readFile as _0x5bd194,writeFile as _0x2baaf9}from'fs/promises';import{join as _0x58d769}from'path';function sanitizeStorageKey(_0x5228a0){const _0x49a43a={_0x9062d5:0x284,_0x1ce8e4:0x2df,_0x54c67f:0x340,_0x2b6527:0x604,_0x5ed5bf:0x5f3,_0x43e16b:0x551,_0x26abbb:0x529,_0x17bb83:0x45f},_0x34f194={_0x94bf00:0xad,_0x3a3d4a:0x6b},_0x51aa03={_0x3d48ef:0x3a,_0x44e131:0xad};function _0x4e72fb(_0x3e770c,_0x25b2af,_0x31b5ea,_0x196c4e){return _0x46bf5b(_0x3e770c-_0x51aa03._0x3d48ef,_0x25b2af,_0x31b5ea-_0x51aa03._0x44e131,_0x31b5ea- -0x286);}function _0x58785d(_0x22c592,_0x2a8f2e,_0x1bbc26,_0x4b1b15){return _0x46bf5b(_0x22c592-_0x34f194._0x94bf00,_0x1bbc26,_0x1bbc26-0x12a,_0x2a8f2e-_0x34f194._0x3a3d4a);}return _0x5228a0[_0x4e72fb(_0x49a43a._0x9062d5,_0x49a43a._0x1ce8e4,0x313,_0x49a43a._0x54c67f)](/[^a-zA-Z0-9_]+/g,'_')[_0x58785d(0x6cc,_0x49a43a._0x2b6527,_0x49a43a._0x5ed5bf,_0x49a43a._0x43e16b)](/^_+|_+$/g,'')||_0x58785d(0x4ea,_0x49a43a._0x26abbb,_0x49a43a._0x17bb83,0x606);}function storagePath(_0x3e753f){const _0x227858={_0x447640:0x65,_0x4342e8:0x2c7},_0x104bc7={_0x1f843c:0x1e5,_0x4426ea:0x43e},_0x5f3aab={_0x903f8a:0x12};function _0x53070c(_0x409ab3,_0x1bc339,_0x4baffb,_0x27f546){return _0x12584b(_0x4baffb- -0x155,_0x1bc339-_0x5f3aab._0x903f8a,_0x4baffb-0x5f,_0x1bc339);}const _0x1c6e9a=sanitizeStorageKey(_0x3e753f[_0xfc8c15(_0x227858._0x447640,0x97,-0x1b,-0x1b)]['oauth']?.['tokenStorageKey']??_0x3e753f[_0x53070c(0x2da,_0x227858._0x4342e8,0x3af,0x2d8)]);function _0xfc8c15(_0x478414,_0x36edff,_0x371a33,_0x4c8f1e){return _0x46bf5b(_0x478414-_0x104bc7._0x1f843c,_0x371a33,_0x371a33-0xbd,_0x478414- -_0x104bc7._0x4426ea);}return _0x58d769(_0x3e753f['storageDir'],_0x1c6e9a+'.json');}async function readStore(_0x5d8419){const _0x200e59={_0x19946a:0x41f,_0x1f7be4:0x475,_0x32c2b8:0x405,_0x4d676d:0x42d,_0x5141f3:0x4a6},_0x10f9a6={_0x20ade6:0xf8,_0x32e24e:0x1b0},_0x972789={_0x2ffc56:0x15b,_0x243583:0x3d8};function _0x3ca873(_0x97c16f,_0x2e17db,_0x11b724,_0x5c0740){return _0x46bf5b(_0x97c16f-_0x972789._0x2ffc56,_0x11b724,_0x11b724-0xca,_0x2e17db- -_0x972789._0x243583);}function _0xebdc36(_0x1f00f5,_0xb5111c,_0x35c6e8,_0x50a8b0){return _0x12584b(_0x1f00f5- -0xbf,_0xb5111c-_0x10f9a6._0x20ade6,_0x35c6e8-_0x10f9a6._0x32e24e,_0x35c6e8);}try{return JSON[_0xebdc36(_0x200e59._0x19946a,0x434,0x379,0x4d8)](await _0x5bd194(_0x5d8419,_0xebdc36(_0x200e59._0x1f7be4,_0x200e59._0x32c2b8,_0x200e59._0x4d676d,_0x200e59._0x5141f3)));}catch(_0x28c27f){if(_0x28c27f instanceof Error&&_0x3ca873(0xe3,0x15b,0xd0,0x1dc)in _0x28c27f&&_0x28c27f['code']===_0xebdc36(0x2fb,0x31d,0x2cc,0x34f))return{};throw _0x28c27f;}}async function writeStore(_0xb2fc93,_0x1253ed){const _0x3ab6c={_0xfc0b06:0xf3};function _0x18de0a(_0x30d166,_0x36c968,_0x2aeb34,_0x2b5c95){return _0x46bf5b(_0x30d166-_0x3ab6c._0xfc0b06,_0x2aeb34,_0x2aeb34-0x34,_0x36c968- -0x1a2);}await _0x37a259(_0x58d769(_0xb2fc93,'..'),{'recursive':!![]}),await _0x2baaf9(_0xb2fc93,JSON[_0x18de0a(0x1f6,0x29c,0x277,0x227)](_0x1253ed,null,0x2),'utf8');}async function updateStore(_0x4b4e6b,_0x5c2e3c){const _0x498bcc=await readStore(_0x4b4e6b);_0x5c2e3c(_0x498bcc),await writeStore(_0x4b4e6b,_0x498bcc);}function createMcpOAuthProvider(_0x3b6e9b){const _0x59812a={_0x775792:0x33b,_0x380af4:0x2c8,_0x190182:0x287,_0x2abcb5:0x2ee,_0x20d422:0x290,_0x46e594:0x25c,_0x4c3fdf:0x220,_0x11cf44:0x266,_0x1082f3:0x1b4,_0xd9c28d:0x1df,_0x66c3b4:0x447,_0x398de2:0x3f4,_0x6d3db5:0x3e3,_0x56f178:0x3a1,_0x27fb30:0x312,_0x4c6dfa:0x42a,_0x3c1474:0x3eb,_0x2ae5ff:0x1bf,_0x23f471:0x268,_0x30e757:0x10c,_0x561f2b:0x18a,_0x30cbb5:0x1d0,_0x344cbe:0x15f,_0x1d6f48:0x182,_0x3b3b52:0x94,_0x5e717a:0x199,_0x1d3d1c:0x135},_0x5e522f={_0x102ea0:0x1a5},_0x2e972b={_0x42b57f:0x40e,_0x5b2e18:0x410,_0x313014:0x2d7,_0x412078:0x41c,_0x53a7be:0x377,_0x46a204:0x334,_0x4ca4c8:0x381,_0x4018bc:0x306,_0x10cbe8:0x3a0,_0x48afeb:0x422,_0x1a8b5e:0x3c5,_0x1f5861:0x3c7,_0x59530b:0x459,_0x537c29:0x545,_0x11050e:0x51c,_0x2a0ac6:0x4c0},_0x4c404b={_0x42a1bd:0x1a2,_0x40becd:0x2b2,_0x135bb9:0x1c8,_0x1aa19d:0x252,_0x1a6b4b:0x215},_0x8760c5={_0x22d4e0:0x556,_0x4badb7:0x161},_0x5ab77c={_0x484c2f:0x96},_0x2670b5={_0x2f4704:0x221,_0x1e594b:0x133},_0x326cdd={_0x276747:0x107,_0x1befdf:0x16d},_0x2e9060={_0x3b95f0:0xcf,_0x398729:0x98},_0x303214={_0x47a772:0x164};function _0x1a5234(_0xfffb06,_0x490c83,_0x31440b,_0x346601){return _0x46bf5b(_0xfffb06-0xbf,_0x31440b,_0x31440b-_0x303214._0x47a772,_0xfffb06- -0x168);}const _0x365ab1=storagePath(_0x3b6e9b);function _0x23b7ea(_0x270d38,_0x9ea4b7,_0x36872c,_0x50cc1f){return _0x12584b(_0x50cc1f- -0x2de,_0x9ea4b7-_0x2e9060._0x3b95f0,_0x36872c-_0x2e9060._0x398729,_0x9ea4b7);}const _0x10540f=_0x3b6e9b[_0x1a5234(_0x59812a._0x775792,_0x59812a._0x380af4,0x2e2,_0x59812a._0x190182)][_0x1a5234(_0x59812a._0x2abcb5,0x39d,_0x59812a._0x20d422,_0x59812a._0x46e594)]?.[_0x23b7ea(0x214,0x1f7,_0x59812a._0x4c3fdf,0x13b)]?.[_0x23b7ea(_0x59812a._0x11cf44,0x136,_0x59812a._0x1082f3,_0x59812a._0xd9c28d)]('\x20'),_0x4bec62={'client_name':_0x23b7ea(0x1fb,0x1e2,0x2e3,0x23d),'redirect_uris':[_0x3b6e9b[_0x1a5234(_0x59812a._0x66c3b4,_0x59812a._0x398de2,_0x59812a._0x6d3db5,0x3d6)]],'grant_types':['authorization_code',_0x1a5234(0x39b,_0x59812a._0x56f178,0x43f,0x466)],'response_types':[_0x1a5234(0x3cb,_0x59812a._0x27fb30,_0x59812a._0x4c6dfa,_0x59812a._0x3c1474)],'token_endpoint_auth_method':_0x23b7ea(_0x59812a._0x2ae5ff,_0x59812a._0x23f471,_0x59812a._0x30e757,_0x59812a._0x561f2b),..._0x10540f?{'scope':_0x10540f}:{}};return{'clientMetadataUrl':_0x3b6e9b[_0x23b7ea(_0x59812a._0x30cbb5,0x1d8,_0x59812a._0x344cbe,_0x59812a._0x1d6f48)][_0x23b7ea(_0x59812a._0x3b3b52,_0x59812a._0x5e717a,0xec,_0x59812a._0x1d3d1c)]?.['clientMetadataUrl'],get 'redirectUrl'(){const _0x2db294={_0x169546:0x7e,_0x576795:0x121};function _0x539a5d(_0x3ee004,_0x221e4d,_0x4fa035,_0x5e710e){return _0x23b7ea(_0x3ee004-0x34,_0x3ee004,_0x4fa035-_0x2db294._0x169546,_0x4fa035- -_0x2db294._0x576795);}return _0x3b6e9b[_0x539a5d(_0x326cdd._0x276747,0x137,_0x326cdd._0x1befdf,0x1ea)];},get 'clientMetadata'(){return _0x4bec62;},async 'state'(){const _0x2c0730=await readStore(_0x365ab1);if(_0x2c0730['state'])return _0x2c0730['state'];const _0x3eacec=randomUUID();return await updateStore(_0x365ab1,_0x3eec41=>{function _0x560107(_0x364f76,_0x53e952,_0x3d0bc8,_0xce6ccf){return _0x5452(_0x53e952- -0x2da,_0xce6ccf);}_0x3eec41[_0x560107(-_0x2670b5._0x2f4704,-0x172,-0xc7,-_0x2670b5._0x1e594b)]=_0x3eacec;}),_0x3eacec;},async 'clientInformation'(){return(await readStore(_0x365ab1))['clientInformation'];},async 'saveClientInformation'(_0x55ce97){const _0x367c76={_0x5a4481:0x2bf};await updateStore(_0x365ab1,_0x366c21=>{const _0x6c7168={_0x30b431:0x377};function _0x55bd07(_0x3138fb,_0x2f345c,_0x17bcfa,_0x4b5178){return _0x5452(_0x4b5178- -_0x6c7168._0x30b431,_0x3138fb);}_0x366c21[_0x55bd07(-0x27a,-_0x367c76._0x5a4481,-0x288,-0x273)]=_0x55ce97;});},async 'tokens'(){const _0x1afd9d={_0x4cbfc0:0x527,_0x529ddf:0x28,_0x136586:0x12c};function _0x2efb9d(_0x3e0bbc,_0x4c1d8f,_0x568694,_0x3f26ec){return _0x1a5234(_0x4c1d8f- -_0x1afd9d._0x4cbfc0,_0x4c1d8f-_0x1afd9d._0x529ddf,_0x3e0bbc,_0x3f26ec-_0x1afd9d._0x136586);}return(await readStore(_0x365ab1))[_0x2efb9d(-0x1df,-0x192,-0xaf,-0x167)];},async 'saveTokens'(_0x4c60f1){await updateStore(_0x365ab1,_0x2fd540=>{_0x2fd540['tokens']=_0x4c60f1;});},async 'redirectToAuthorization'(_0x991a12){await _0x3b6e9b['onRedirect'](_0x991a12);},async 'saveCodeVerifier'(_0x53eee7){const _0x513191={_0x5e1527:0x92};await updateStore(_0x365ab1,_0x45c837=>{function _0xea1d47(_0x13c198,_0xf79762,_0x144483,_0x4463e1){return _0x5452(_0x144483- -_0x513191._0x5e1527,_0x4463e1);}_0x45c837[_0xea1d47(_0x5ab77c._0x484c2f,0x92,0xa1,0xdf)]=_0x53eee7;});},async 'codeVerifier'(){const _0x406ba3={_0x31effe:0x16e,_0x1057e6:0x338};function _0x400d8a(_0x8e6a5a,_0x244b39,_0x578357,_0x272b57){return _0x23b7ea(_0x8e6a5a-0x43,_0x244b39,_0x578357-_0x406ba3._0x31effe,_0x272b57-_0x406ba3._0x1057e6);}const _0xb09992=(await readStore(_0x365ab1))[_0x50e74b(-_0x4c404b._0x42a1bd,-_0x4c404b._0x40becd,-_0x4c404b._0x135bb9,-_0x4c404b._0x1aa19d)];if(!_0xb09992)throw new Error(_0x50e74b(-0x1f3,-0x1bd,-0x257,-_0x4c404b._0x1a6b4b));function _0x50e74b(_0xea0a9f,_0x5d5062,_0x31257a,_0xace17f){return _0x1a5234(_0xace17f- -_0x8760c5._0x22d4e0,_0x5d5062-0x103,_0x5d5062,_0xace17f-_0x8760c5._0x4badb7);}return _0xb09992;},async 'invalidateCredentials'(_0x414ba9){await updateStore(_0x365ab1,_0x2a4584=>{(_0x414ba9===_0x4b17d3(0x4d0,_0x2e972b._0x42b57f,0x450,_0x2e972b._0x5b2e18)||_0x414ba9==='client')&&(_0x2a4584[_0x6d7046(_0x2e972b._0x313014,0x228,0x1eb,0x30f)]=void 0x0);(_0x414ba9===_0x4b17d3(0x4d0,0x4fc,0x507,0x439)||_0x414ba9==='tokens')&&(_0x2a4584[_0x6d7046(0x397,_0x2e972b._0x412078,0x329,_0x2e972b._0x53a7be)]=void 0x0);function _0x4b17d3(_0x49bbb0,_0x9a60dc,_0x44f36a,_0x3c2477){return _0x5452(_0x49bbb0-0x2ba,_0x3c2477);}(_0x414ba9===_0x6d7046(0x3e9,0x351,0x3d8,_0x2e972b._0x46a204)||_0x414ba9===_0x6d7046(0x3d7,0x3ee,0x35a,_0x2e972b._0x4ca4c8))&&(_0x2a4584[_0x6d7046(_0x2e972b._0x4018bc,_0x2e972b._0x10cbe8,0x317,0x30a)]=void 0x0,_0x2a4584[_0x4b17d3(_0x2e972b._0x48afeb,_0x2e972b._0x1a8b5e,_0x2e972b._0x1f5861,0x41d)]=void 0x0);function _0x6d7046(_0x46813b,_0x16feae,_0x152a18,_0x240176){return _0x5452(_0x46813b-0x1d3,_0x240176);}(_0x414ba9===_0x6d7046(0x3e9,0x3df,_0x2e972b._0x59530b,0x4b4)||_0x414ba9==='discovery')&&(_0x2a4584[_0x4b17d3(_0x2e972b._0x537c29,_0x2e972b._0x11050e,0x559,_0x2e972b._0x2a0ac6)]=void 0x0);});},async 'saveDiscoveryState'(_0x3cf41f){const _0x2ac23e={_0x6074cf:0x263,_0x2a288d:0x1d6};await updateStore(_0x365ab1,_0x4ad79f=>{function _0x462b8b(_0x46410f,_0x38ccbd,_0x6d9fcc,_0x153178){return _0x5452(_0x46410f- -0x28,_0x153178);}_0x4ad79f[_0x462b8b(_0x2ac23e._0x6074cf,0x1a9,_0x2ac23e._0x2a288d,0x2b1)]=_0x3cf41f;});},async 'discoveryState'(){const _0x4f03e2={_0x276c7c:0x2d0};function _0x4a2116(_0x32a0ec,_0x53e663,_0x539213,_0x45cdf4){return _0x1a5234(_0x45cdf4- -_0x4f03e2._0x276c7c,_0x53e663-0xf9,_0x53e663,_0x45cdf4-0x1d4);}return(await readStore(_0x365ab1))[_0x4a2116(_0x5e522f._0x102ea0,0x19c,0x221,0x18c)];}};}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(_0x155b74,_0x26fbbf){const _0x5c21d8={_0x2c7c71:0x40f,_0x5a4072:0x3aa,_0x1db69e:0x42e},_0x51e43f={_0x2f1e78:0x89},_0x8291b0=_0x4c6a98=>_0x4c6a98[_0x781ea5(0x55b,0x65f,0x5c5,0x6b0)](/[^a-zA-Z0-9_]+/g,'_')[_0xdaf563(0x505,0x428,0x41e,0x439)](/^_+|_+$/g,'');function _0xdaf563(_0x157d3a,_0x3f165c,_0x503605,_0x21bb38){return _0x46bf5b(_0x157d3a-0x1e,_0x3f165c,_0x503605-_0x51e43f._0x2f1e78,_0x503605- -0x17b);}function _0x781ea5(_0x229bf8,_0x429b29,_0x2f852e,_0x3acc7d){return _0x46bf5b(_0x229bf8-0xf3,_0x429b29,_0x2f852e-0x29,_0x2f852e-0x2c);}return _0x781ea5(_0x5c21d8._0x2c7c71,_0x5c21d8._0x5a4072,_0x5c21d8._0x1db69e,0x377)+_0x8291b0(_0x155b74)+'_'+_0x8291b0(_0x26fbbf);}function isObject(_0x42d19f){const _0x5c2430={_0x446cae:0x84,_0x43461f:0x130,_0x1873de:0x83},_0x41ba34={_0x1566a7:0x45a,_0x325797:0x12a};function _0x16d349(_0x222d48,_0xb484c8,_0x2e94,_0x21cdb0){return _0x12584b(_0x2e94- -_0x41ba34._0x1566a7,_0xb484c8-0x133,_0x2e94-_0x41ba34._0x325797,_0x222d48);}return typeof _0x42d19f==='object'&&_0x42d19f!==null&&!Array[_0x16d349(-_0x5c2430._0x446cae,-_0x5c2430._0x43461f,-_0x5c2430._0x1873de,-0x57)](_0x42d19f);}function toSupportedSchema(_0x36927b){const _0x1761d3={_0x3c96ec:0x368,_0x101431:0x403,_0xc33d41:0x3cc,_0x115a8d:0x3f8,_0x581613:0x386,_0x4b9c40:0x34c,_0x4e3058:0x39d,_0x51896c:0x32e,_0x2c8c80:0x352,_0x33de98:0x4b0,_0x2b655e:0x347,_0x873ee:0x300,_0x41685b:0x3a2,_0x212ece:0x376,_0x4d6d0d:0x3e7,_0x477c6e:0x355,_0x420818:0x371,_0x173b68:0x39b,_0x2f457a:0x4a1,_0x4619a9:0x3c4,_0x16bad6:0x47f,_0x3f8818:0x324,_0x19f6ac:0x374,_0x238b23:0x325,_0x26f0ed:0x372,_0x53ca52:0x328,_0x22696b:0x4bf,_0x4e541b:0x435,_0x235f63:0x3b2},_0x274463={_0x37bd78:0x152,_0x55f9b1:0xd9,_0x20a7bc:0xea},_0x418755={_0x37dca2:0x94};if(!isObject(_0x36927b))return void 0x0;function _0x70461(_0x537cf2,_0x2d39d9,_0x141431,_0x218ce0){return _0x46bf5b(_0x537cf2-0x1ba,_0x2d39d9,_0x141431-0xe4,_0x218ce0- -_0x418755._0x37dca2);}function _0x5c5364(_0x5801c0,_0x11fc29,_0x2b6fdf,_0xe9c1b3){return _0x46bf5b(_0x5801c0-_0x274463._0x37bd78,_0x5801c0,_0x2b6fdf-_0x274463._0x55f9b1,_0x11fc29- -_0x274463._0x20a7bc);}if(_0x36927b[_0x70461(_0x1761d3._0x3c96ec,_0x1761d3._0x101431,0x452,_0x1761d3._0xc33d41)]===_0x70461(_0x1761d3._0x115a8d,0x346,_0x1761d3._0x581613,0x3e5))return{'type':_0x5c5364(_0x1761d3._0x4b9c40,0x38f,_0x1761d3._0x4e3058,_0x1761d3._0x51896c)};if(_0x36927b[_0x70461(0x348,_0x1761d3._0x2c8c80,_0x1761d3._0x33de98,0x3cc)]===_0x5c5364(0x364,_0x1761d3._0x2b655e,_0x1761d3._0x873ee,0x3eb)||_0x36927b[_0x5c5364(_0x1761d3._0x41685b,_0x1761d3._0x212ece,0x3a3,_0x1761d3._0x4d6d0d)]===_0x70461(0x414,0x41d,0x4cf,0x45b))return{'type':_0x5c5364(_0x1761d3._0x477c6e,0x347,0x41b,0x3f2)};if(_0x36927b[_0x70461(_0x1761d3._0x420818,_0x1761d3._0x173b68,0x385,_0x1761d3._0xc33d41)]===_0x70461(_0x1761d3._0x2f457a,0x554,0x567,0x4b2))return{'type':'boolean'};if(_0x36927b[_0x70461(0x2e9,_0x1761d3._0x4619a9,_0x1761d3._0x16bad6,0x3cc)]===_0x5c5364(_0x1761d3._0x3f8818,_0x1761d3._0x19f6ac,_0x1761d3._0x238b23,_0x1761d3._0x26f0ed))return{'type':_0x5c5364(0x33b,0x374,_0x1761d3._0x53ca52,0x350),'items':toSupportedSchema(_0x36927b[_0x5c5364(_0x1761d3._0x22696b,0x491,0x53d,0x570)])??{'type':_0x70461(0x46e,_0x1761d3._0x4e541b,_0x1761d3._0x235f63,0x3e5)}};if(_0x36927b[_0x5c5364(0x359,_0x1761d3._0x212ece,0x3d2,0x2e9)]==='object')return toNuvinToolSchema(_0x36927b);return void 0x0;}function toNuvinToolSchema(_0x281396){const _0x20e811={_0x2b772c:0x4a8,_0x2152f9:0x434,_0x852f81:0x429,_0x451104:0x459,_0x4be497:0x3a3,_0x418cf1:0x3fc,_0x56c879:0x568,_0x33c10a:0x352,_0x48e0a3:0x371,_0x18f1c7:0x364,_0x137fd0:0x22d,_0x8676d7:0x219,_0x45de16:0x2b2,_0x1c3651:0x431,_0x3ed8eb:0x3f5,_0x3f8efa:0x407,_0x58686a:0x4b7},_0x354283={_0x198a75:0x82,_0x977516:0x14c};if(!isObject(_0x281396)||_0x281396[_0x518c40(0x46c,0x4a7,0x4b3,0x494)]!==_0x518c40(_0x20e811._0x2b772c,_0x20e811._0x2152f9,0x493,0x459))return{'type':_0x518c40(_0x20e811._0x852f81,0x41e,0x4ef,_0x20e811._0x451104),'properties':{}};const _0x27d2b0={},_0x493820=isObject(_0x281396[_0x35fbfa(0x378,0x40b,_0x20e811._0x4be497,_0x20e811._0x418cf1)])?_0x281396[_0x518c40(_0x20e811._0x56c879,0x5c1,0x65c,0x57c)]:{};function _0x35fbfa(_0x1a8bea,_0x462747,_0x2f2b9c,_0x54f06b){return _0x46bf5b(_0x1a8bea-0x44,_0x462747,_0x2f2b9c-_0x354283._0x198a75,_0x54f06b- -_0x354283._0x977516);}for(const [_0xe01f2,_0x3fea02]of Object['entries'](_0x493820)){const _0x1db23c=toSupportedSchema(_0x3fea02);if(_0x1db23c)_0x27d2b0[_0xe01f2]=_0x1db23c;}const _0x2430e0=Array['isArray'](_0x281396['required'])?_0x281396[_0x35fbfa(_0x20e811._0x33c10a,_0x20e811._0x48e0a3,_0x20e811._0x18f1c7,0x330)][_0x35fbfa(0x201,_0x20e811._0x137fd0,_0x20e811._0x8676d7,_0x20e811._0x45de16)](_0x296ad7=>typeof _0x296ad7==='string'):void 0x0;function _0x518c40(_0x2dd77c,_0x24515e,_0x1a0b84,_0x1b926d){return _0x12584b(_0x1b926d-0x77,_0x24515e-0xe6,_0x1a0b84-0xaf,_0x24515e);}return _0x2430e0?.[_0x518c40(0x4e6,_0x20e811._0x1c3651,_0x20e811._0x3ed8eb,0x455)]?{'type':'object','properties':_0x27d2b0,'required':_0x2430e0}:{'type':_0x518c40(_0x20e811._0x3f8efa,0x39c,_0x20e811._0x58686a,0x459),'properties':_0x27d2b0};}function isJsonObject(_0x282bd5){const _0x542db8={_0x391f18:0x30d},_0x1e014e={_0xb376f6:0xc0},_0x480eb4={_0x29736c:0x296,_0x4adfd3:0x133};function _0x18b5f8(_0x3f7fb8,_0x1abc93,_0x4787db,_0x1f9293){return _0x12584b(_0x1abc93- -_0x480eb4._0x29736c,_0x1abc93-0x16e,_0x4787db-_0x480eb4._0x4adfd3,_0x4787db);}function _0x36b6f0(_0x421594,_0x2c4fb2,_0x23f5e3,_0x7a74e9){return _0x46bf5b(_0x421594-_0x1e014e._0xb376f6,_0x7a74e9,_0x23f5e3-0x47,_0x421594- -0x1db);}return typeof _0x282bd5===_0x18b5f8(0x130,0x14c,0x79,0x1fc)&&_0x282bd5!==null&&!Array[_0x36b6f0(0x23f,0x29a,0x31e,_0x542db8._0x391f18)](_0x282bd5);}function formatMcpContent(_0x5bc737){const _0x8fabc3={_0x4bad8d:0x1e3,_0x1bc2fa:0xff,_0x50a1c8:0x221,_0x4ef592:0x18f,_0x1a0969:0x1b7,_0x3cf1ca:0x118,_0x429abe:0xd1,_0x3d954b:0x147,_0x43f1d4:0xc3,_0x782695:0x12e,_0x1af0af:0x1a9,_0x2ed42d:0x13b,_0x24cb0f:0xb3,_0x1a2bee:0x1ee,_0x30240a:0x158},_0x47a703={_0x35e3a8:0x60},_0x368455={_0x43e901:0x64,_0x7b6b:0x34,_0x197e06:0x5d,_0x1da995:0x13e,_0x46e903:0x14e,_0x4b22a2:0x55,_0x36307a:0x1de,_0x4a7ea8:0x27b,_0x32b605:0x292,_0x33d270:0x200,_0x4cd22e:0x254,_0x33d7b5:0x25a,_0x275796:0x86,_0x930339:0x2a},_0x33245c={_0x7748f5:0x271},_0x218513={_0x1e42c3:0x3b3,_0x5b4742:0x193};function _0x113499(_0x3636a2,_0x514bf3,_0x1650ee,_0x18f393){return _0x12584b(_0x514bf3- -_0x218513._0x1e42c3,_0x514bf3-0x149,_0x1650ee-_0x218513._0x5b4742,_0x3636a2);}const _0x37eda6=Array['isArray'](_0x5bc737[_0x113499(_0x8fabc3._0x4bad8d,0xfc,0x107,0xa9)])?_0x5bc737[_0x113499(0x16e,0xfc,0x1a1,0x160)]:[],_0xca9ca0=_0x37eda6[_0x5db28a(_0x8fabc3._0x1bc2fa,_0x8fabc3._0x50a1c8,_0x8fabc3._0x4ef592,0x241)](_0x1d7c3d=>{const _0x8f4bbf={_0x3190d5:0xce,_0xe1c4b1:0x1a5};if(!isObject(_0x1d7c3d))return'';function _0x323db9(_0x15e8f0,_0x3e8756,_0x25ab05,_0x36bf65){return _0x113499(_0x25ab05,_0x36bf65- -_0x33245c._0x7748f5,_0x25ab05-0x1d4,_0x36bf65-0x19e);}function _0x2344e3(_0x2433dc,_0x591d5a,_0x7b256a,_0x22deb0){return _0x113499(_0x7b256a,_0x2433dc- -_0x8f4bbf._0x3190d5,_0x7b256a-_0x8f4bbf._0xe1c4b1,_0x22deb0-0x1a6);}if(_0x1d7c3d[_0x2344e3(-_0x368455._0x43e901,-_0x368455._0x7b6b,_0x368455._0x197e06,-_0x368455._0x1da995)]===_0x2344e3(-0x8f,-0x51,-_0x368455._0x46e903,_0x368455._0x4b22a2)&&typeof _0x1d7c3d[_0x323db9(-_0x368455._0x36307a,-_0x368455._0x4a7ea8,-_0x368455._0x32b605,-0x232)]===_0x323db9(-_0x368455._0x33d270,-_0x368455._0x4cd22e,-_0x368455._0x33d7b5,-0x1ee))return _0x1d7c3d['text'];return JSON[_0x2344e3(-_0x368455._0x275796,-0x5a,-0x122,-_0x368455._0x930339)](_0x1d7c3d);})[_0x5db28a(_0x8fabc3._0x1a0969,0x1ab,_0x8fabc3._0x3cf1ca,0x1fc)](_0x1a9efe=>_0x1a9efe['length']>0x0)[_0x113499(_0x8fabc3._0x429abe,0x10a,_0x8fabc3._0x3d954b,_0x8fabc3._0x43f1d4)]('\x0a');if(_0xca9ca0[_0x5db28a(_0x8fabc3._0x782695,_0x8fabc3._0x1af0af,_0x8fabc3._0x2ed42d,_0x8fabc3._0x24cb0f)]>0x0)return _0xca9ca0;function _0x5db28a(_0x3e6cbf,_0x279cee,_0xde1894,_0x3de919){return _0x46bf5b(_0x3e6cbf-_0x47a703._0x35e3a8,_0x3e6cbf,_0xde1894-0x12d,_0xde1894- -0x2e6);}return JSON[_0x5db28a(_0x8fabc3._0x1a2bee,0xf6,_0x8fabc3._0x30240a,0x117)](_0x5bc737,null,0x2);}function createMcpTool(_0x14a74f){const _0x54e88a={_0x130b4f:0x420,_0x39dcd9:0x382,_0x3d8653:0x3c4,_0x3445b7:0x288,_0x4988ff:0x25c,_0x1aa6ca:0x31d,_0x584513:0x24b,_0x271a6f:0x3a3,_0xdef1f8:0x341,_0x1c92a0:0x306,_0x31f708:0x364,_0x3770be:0x37a,_0x2b6458:0x276,_0x343f29:0x1ee,_0xe53b84:0x280,_0x91a2cd:0x177,_0x5c542d:0x3e7,_0x1f97fe:0x325,_0x39cb2b:0x392,_0x2338d0:0x18a,_0xeb68a2:0x190,_0x5a099c:0x235,_0x2af32f:0x395,_0x7a32be:0x31c,_0x4f0d12:0x39d},_0x268fd3={_0x5c6b11:0xae,_0x3d16ee:0x78,_0x5562c9:0x65,_0x570c66:0x64,_0x4b1cb2:0x135,_0x14ab02:0xd3,_0x1089fe:0x16,_0xc533e2:0x9c,_0x5ea1d6:0x156,_0x2ce96f:0xd0,_0x56b593:0xf3,_0xa55d6:0x25b,_0x18e40d:0x19a,_0x1f56f6:0x1f,_0xea5070:0x99,_0x427e80:0x16,_0x4fd1a0:0x50},_0x1a277a={_0x1c988:0x1cc,_0x15c948:0x170,_0x66ce54:0x1d},_0x34b317={_0x4c8b1e:0xc1,_0xa13962:0xee};function _0x143c34(_0x118ffb,_0x216582,_0x4bb31b,_0x485818){return _0x12584b(_0x485818- -0x140,_0x216582-0x6c,_0x4bb31b-0xfd,_0x216582);}const _0xcff9c9=createMcpToolName(_0x14a74f[_0x143c34(_0x54e88a._0x130b4f,0x3d6,_0x54e88a._0x39dcd9,_0x54e88a._0x3d8653)],_0x14a74f[_0x143c34(0x33f,0x2e5,_0x54e88a._0x3445b7,0x31d)]['name']);function _0x3611a7(_0x462e5a,_0x19f8fe,_0x331bcb,_0x4fdb4c){return _0x12584b(_0x462e5a- -0x2d3,_0x19f8fe-_0x34b317._0x4c8b1e,_0x331bcb-_0x34b317._0xa13962,_0x331bcb);}return defineTool({'name':_0xcff9c9,'description':_0x14a74f[_0x143c34(0x23d,0x2c7,_0x54e88a._0x4988ff,_0x54e88a._0x1aa6ca)][_0x143c34(_0x54e88a._0x584513,_0x54e88a._0x271a6f,0x215,0x2df)]??_0x143c34(_0x54e88a._0xdef1f8,_0x54e88a._0x1c92a0,0x44f,_0x54e88a._0x31f708)+_0x14a74f[_0x143c34(_0x54e88a._0x3770be,0x3c2,_0x54e88a._0x2b6458,0x31d)][_0x3611a7(0x1b6,_0x54e88a._0x343f29,_0x54e88a._0xe53b84,_0x54e88a._0x91a2cd)]+_0x143c34(_0x54e88a._0x5c542d,_0x54e88a._0x1f97fe,_0x54e88a._0x39cb2b,0x3ed)+_0x14a74f['serverName'],'inputSchema':toNuvinToolSchema(_0x14a74f[_0x3611a7(_0x54e88a._0x2338d0,0x224,_0x54e88a._0xeb68a2,_0x54e88a._0x5a099c)][_0x143c34(0x308,_0x54e88a._0x2af32f,_0x54e88a._0x7a32be,_0x54e88a._0x4f0d12)]),async *'execute'(_0x3be4b2){const _0xaf7cb9={_0x4f7016:0xe5,_0x13a916:0x15e},_0x38f13=await _0x14a74f[_0x4e5303(-0xb9,-0x119,-0xa0,-_0x268fd3._0x5c6b11)]['callTool']({'name':_0x14a74f['tool']['name'],'arguments':isJsonObject(_0x3be4b2)?_0x3be4b2:{}});function _0x4e5303(_0x54e15b,_0x5343a8,_0x278430,_0x4babf1){return _0x3611a7(_0x278430- -_0x1a277a._0x1c988,_0x5343a8-_0x1a277a._0x15c948,_0x5343a8,_0x4babf1-_0x1a277a._0x66ce54);}if(_0x38f13[_0x711b5b(-0xef,-0x11a,-0x1c7,-0x1d4)])throw new ToolExecutionError(formatMcpContent(_0x38f13),{'serverName':_0x14a74f[_0x4e5303(0x5c,_0x268fd3._0x3d16ee,_0x268fd3._0x5562c9,-_0x268fd3._0x570c66)],'toolName':_0x14a74f[_0x711b5b(-0xee,-_0x268fd3._0x4b1cb2,-0x1bd,-0x19a)][_0x4e5303(-0x23,_0x268fd3._0x14ab02,-_0x268fd3._0x1089fe,_0x268fd3._0xc533e2)]});yield createToolOutput(formatMcpContent(_0x38f13),{'serverName':_0x14a74f[_0x711b5b(-0x1bb,-_0x268fd3._0x5ea1d6,-_0x268fd3._0x2ce96f,-_0x268fd3._0x56b593)],'toolName':_0x14a74f[_0x711b5b(-0x185,-_0x268fd3._0xa55d6,-0x172,-_0x268fd3._0x18e40d)][_0x4e5303(_0x268fd3._0x1f56f6,_0x268fd3._0xea5070,-_0x268fd3._0x427e80,-_0x268fd3._0x4fd1a0)],'result':_0x38f13});function _0x711b5b(_0x584fe5,_0x7fc07b,_0x33b93e,_0x2e8c9a){return _0x3611a7(_0x2e8c9a- -0x324,_0x7fc07b-_0xaf7cb9._0x4f7016,_0x584fe5,_0x2e8c9a-_0xaf7cb9._0x13a916);}return void 0x0;}});}function resolvePrefix(_0x5d665a,_0x1cd8d1){return _0x1cd8d1['prefix']??_0x5d665a;}function buildMcpHttpHeaders(_0x26c344){const _0x1d984f={_0x1a0449:0x33a,_0x3d7ac4:0x422,_0x4ee7fd:0x16e,_0x425fd9:0xad,_0x31cff3:0x4d2,_0xd8915f:0x354,_0x347440:0x3f0,_0x5c4c45:0x379,_0x29b9c7:0x383,_0x461e7d:0x402,_0x46611c:0x588,_0x7e874a:0x545,_0x21dd13:0x50a,_0x24100c:0x4b2,_0x41342b:0x4e7,_0x2e7ab5:0x50a,_0x51adaf:0x238,_0x29fc44:0x15b,_0x4f2fac:0x465,_0x99ab2:0x434,_0x4de4a7:0x355,_0x102e04:0x13d,_0x2ae52a:0xbe,_0xc3b0eb:0x79,_0x4f466a:0x217,_0x1070a1:0x3af,_0x47aad0:0x3b1},_0xf49e30={_0x1ad097:0xa3,_0x5bf915:0x70},_0x4e3121={_0x20d95e:0x17c},_0xcfc321={..._0x26c344[_0x3af36f(0x49a,_0x1d984f._0x1a0449,0x501,_0x1d984f._0x3d7ac4)]??{}};_0x26c344[_0x1ec67f(_0x1d984f._0x4ee7fd,0x1c3,0x1e0,_0x1d984f._0x425fd9)]?.[_0x3af36f(0x387,_0x1d984f._0x31cff3,_0x1d984f._0xd8915f,_0x1d984f._0x347440)]===_0x3af36f(0x31f,_0x1d984f._0x5c4c45,_0x1d984f._0x29b9c7,_0x1d984f._0x461e7d)&&_0x26c344['auth']['token']&&_0xcfc321[_0x3af36f(0x50c,_0x1d984f._0x46611c,_0x1d984f._0x7e874a,_0x1d984f._0x21dd13)]===void 0x0&&(_0xcfc321[_0x3af36f(0x5d8,_0x1d984f._0x24100c,_0x1d984f._0x41342b,_0x1d984f._0x2e7ab5)]=_0x1ec67f(_0x1d984f._0x51adaf,0x22d,_0x1d984f._0x29fc44,0x152)+_0x26c344[_0x3af36f(0x4c5,_0x1d984f._0x4f2fac,0x483,_0x1d984f._0x99ab2)][_0x3af36f(0x503,_0x1d984f._0x4de4a7,0x4b3,0x41b)]);function _0x1ec67f(_0x3991af,_0x4b3868,_0x328aef,_0x8823fe){return _0x12584b(_0x3991af- -0x2f3,_0x4b3868-_0x4e3121._0x20d95e,_0x328aef-0xcd,_0x8823fe);}function _0x3af36f(_0x3a2811,_0x51da48,_0x46b165,_0x3e73c7){return _0x46bf5b(_0x3a2811-0x1ec,_0x46b165,_0x46b165-_0xf49e30._0x1ad097,_0x3e73c7- -_0xf49e30._0x5bf915);}return Object[_0x1ec67f(_0x1d984f._0x102e04,_0x1d984f._0x2ae52a,_0x1d984f._0xc3b0eb,_0x1d984f._0x4f466a)](_0xcfc321)[_0x3af36f(_0x1d984f._0x1070a1,0x3ab,0x34c,_0x1d984f._0x47aad0)]>0x0?_0xcfc321:void 0x0;}function getErrorMessage(_0x4bd6b0){const _0x104dee={_0x1894e1:0x262},_0x45b80e={_0x581223:0xdf,_0x34fbf6:0x1d7};function _0x261704(_0x57ef00,_0x5b5ac2,_0x444836,_0x572209){return _0x12584b(_0x5b5ac2- -_0x45b80e._0x581223,_0x5b5ac2-_0x45b80e._0x34fbf6,_0x444836-0x1bd,_0x572209);}return _0x4bd6b0 instanceof Error?_0x4bd6b0[_0x261704(0x321,0x2fc,0x3cd,_0x104dee._0x1894e1)]:String(_0x4bd6b0);}function isUnauthorizedError(_0x319f0c){const _0x5d927b={_0x21c9fa:0x106,_0x387bb4:0x180,_0x8ece84:0x18a},_0x3c66c8={_0x57e46f:0x2c},_0x58a1ee={_0x2e083b:0x70};function _0x19d6ea(_0x1e9cab,_0x40b246,_0x2c7214,_0x362b86){return _0x46bf5b(_0x1e9cab-0x2c,_0x40b246,_0x2c7214-0x16d,_0x1e9cab-_0x58a1ee._0x2e083b);}function _0x104541(_0x3e2050,_0x31818d,_0x2d8e13,_0x530583){return _0x12584b(_0x3e2050- -0x419,_0x31818d-0x159,_0x2d8e13-_0x3c66c8._0x57e46f,_0x2d8e13);}return _0x319f0c instanceof Error&&_0x319f0c[_0x104541(_0x5d927b._0x21c9fa,_0x5d927b._0x387bb4,0x114,_0x5d927b._0x8ece84)]['name']===_0x19d6ea(0x5b2,0x698,0x658,0x61d);}async function connectMcpServer(_0x35c2d1,_0x162106,_0x9586b6){const _0x56b16c={_0x3a52f2:0xfd,_0x356fb4:0x6d,_0x335285:0xd1,_0x409b36:0x65,_0x4f218e:0x12,_0x1e4568:0xa0,_0x345dea:0x1e2,_0x3443c2:0x129,_0x1a923d:0x1cf,_0x590c4a:0x64,_0x4e8d52:0x97,_0x5a4c2c:0x13,_0x370708:0x76,_0x4506c7:0x49,_0x5ac289:0xd6,_0x1a9967:0x29,_0x44ffb0:0x26,_0x5a14a5:0xc4,_0x568c0e:0x25,_0xf43ae0:0x9a,_0x15ef57:0x13,_0x43fea8:0x3e,_0x2de291:0xfc,_0x2f6e7b:0x4c,_0x13aa7d:0x36,_0x9a11f8:0x61,_0x29dd10:0x4b,_0x435f2d:0x1b,_0x59c539:0xf7,_0x202828:0xca,_0x2efe15:0x95,_0x23491f:0x77,_0x5846dd:0x12a,_0xb5ec57:0x104,_0x43d98f:0x25,_0x102e86:0x16c,_0x46beb5:0x5f,_0x30756e:0x60,_0x1f7c96:0x1,_0x32aec5:0x5a,_0x43a5a5:0xeb,_0x151606:0x4d,_0x2390c7:0x3f},_0x289014={_0x49ce40:0x59b,_0x3c6fef:0x520},_0x101b1f={_0x57250b:0x34,_0x5c18ed:0x28},_0x432575={_0x3039d0:0x4b6,_0x5c0de3:0x4f7},_0x18ad9e={_0x636ac7:0x47b},_0x3c861d={_0x44521d:0x159};function _0x564761(_0x25abfc,_0x401137,_0x1cc47f,_0x27ca7b){return _0x46bf5b(_0x25abfc-_0x3c861d._0x44521d,_0x25abfc,_0x1cc47f-0x1d9,_0x401137- -0x443);}function _0x9415d(_0x3fa2be,_0x5e3e80,_0x2cb683,_0x2d534c){return _0x46bf5b(_0x3fa2be-0xaa,_0x2d534c,_0x2cb683-0xbc,_0x5e3e80- -_0x18ad9e._0x636ac7);}const _0x5cb30a=new Client({'name':_0x564761(_0x56b16c._0x3a52f2,0x53,_0x56b16c._0x356fb4,_0x56b16c._0x335285),'version':_0x9415d(-0x77,-_0x56b16c._0x409b36,-_0x56b16c._0x4f218e,-_0x56b16c._0x1e4568)});if(_0x162106[_0x564761(0xbb,0x111,_0x56b16c._0x345dea,0x1ce)]===_0x9415d(0x13a,_0x56b16c._0x3443c2,0x64,_0x56b16c._0x1a923d)||_0x162106[_0x9415d(-0x79,-0x5f,-_0x56b16c._0x590c4a,0x78)]){if(!_0x162106[_0x9415d(-_0x56b16c._0x4e8d52,-0x5f,-_0x56b16c._0x4e8d52,_0x56b16c._0x5a4c2c)])throw new Error(_0x9415d(-0x12,-_0x56b16c._0x370708,-_0x56b16c._0x4506c7,-_0x56b16c._0x5ac289)+_0x35c2d1+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x162106[_0x9415d(0xca,_0x56b16c._0x1a9967,-_0x56b16c._0x44ffb0,-0x7d)]?.[_0x9415d(_0x56b16c._0x356fb4,-0x1b,-_0x56b16c._0x5a14a5,0xa8)]===_0x564761(-0x4b,_0x56b16c._0x5a4c2c,0x6d,-0x49)&&!_0x9586b6?.[_0x9415d(-0xee,-_0x56b16c._0x568c0e,-_0x56b16c._0xf43ae0,_0x56b16c._0x15ef57)])throw new Error(_0x564761(-0x18,-_0x56b16c._0x43fea8,0x3c,-_0x56b16c._0x2de291)+_0x35c2d1+_0x9415d(0x9d,_0x56b16c._0x2f6e7b,_0x56b16c._0x356fb4,_0x56b16c._0x13aa7d));const _0x326e31=buildMcpHttpHeaders(_0x162106),_0x527c46=_0x162106[_0x564761(-0x10,_0x56b16c._0x9a11f8,_0x56b16c._0x29dd10,0x52)]?.[_0x9415d(0x4,-_0x56b16c._0x435f2d,-_0x56b16c._0x59c539,-_0x56b16c._0x202828)]===_0x9415d(_0x56b16c._0x2efe15,-_0x56b16c._0x568c0e,-0xc7,-0x2f)&&_0x9586b6?.[_0x564761(_0x56b16c._0x3a52f2,0x13,-0x28,_0x56b16c._0x23491f)]?createMcpOAuthProvider({'serverName':_0x35c2d1,'callbackUrl':_0x9586b6['oauth'][_0x9415d(_0x56b16c._0x5846dd,0x134,0x1b7,0x101)],'storageDir':_0x9586b6[_0x9415d(-_0x56b16c._0xb5ec57,-_0x56b16c._0x43d98f,-0x3e,0x62)][_0x564761(_0x56b16c._0x102e86,0x153,0x101,0x1e2)],'config':_0x162106[_0x564761(0x113,_0x56b16c._0x9a11f8,0x5,-0x6c)],'onRedirect':_0x29ba4b=>_0x9586b6[_0x9415d(-0xee,-0x25,-0x19,-0x75)]?.[_0x9415d(0x121,0xe8,0x42,0x1d5)](_0x35c2d1,_0x29ba4b)}):void 0x0,_0x2820a0=new StreamableHTTPClientTransport(new URL(_0x162106[_0x9415d(0x13,-_0x56b16c._0x46beb5,_0x56b16c._0x30756e,-_0x56b16c._0x1f7c96)]),{'authProvider':_0x527c46,'requestInit':_0x326e31?{'headers':_0x326e31}:void 0x0});await _0x5cb30a[_0x9415d(0x125,0x101,0xa1,0x3b)](_0x2820a0);}else{if(!_0x162106['command'])throw new Error(_0x564761(-_0x56b16c._0x32aec5,-_0x56b16c._0x43fea8,-_0x56b16c._0x43a5a5,_0x56b16c._0x151606)+_0x35c2d1+_0x9415d(0x12a,_0x56b16c._0x2390c7,0x124,-_0x56b16c._0x4e8d52));const _0x57ca04=new StdioClientTransport({'command':_0x162106[_0x9415d(-0x93,-0x59,-0x91,-0x2d)],'args':_0x162106['args']??[],'env':_0x162106['env']});await _0x5cb30a['connect'](_0x57ca04);}return{async 'listTools'(){const _0x1ede0a={_0x504419:0x1b4};function _0x5cad41(_0x50fa3b,_0x1c5ff7,_0x1d7d37,_0x14f6dd){return _0x9415d(_0x50fa3b-_0x1ede0a._0x504419,_0x1c5ff7-0x51e,_0x1d7d37-0x119,_0x14f6dd);}return await _0x5cb30a[_0x5cad41(_0x432575._0x3039d0,_0x432575._0x5c0de3,0x48a,0x5a4)]();},async 'callTool'(_0x575408){const _0x5c83c8={_0x5966d7:0x3a2,_0x28d47a:0x48};function _0x20bc9e(_0x5c5737,_0x5e0f44,_0x185052,_0x1b39e8){return _0x564761(_0x185052,_0x5c5737- -0x53,_0x185052-0x1cc,_0x1b39e8-0x1be);}function _0x47b80c(_0x19f304,_0x543edc,_0x5e8c24,_0xa01653){return _0x9415d(_0x19f304-0x16e,_0x543edc-_0x5c83c8._0x5966d7,_0x5e8c24-_0x5c83c8._0x28d47a,_0x19f304);}return await _0x5cb30a[_0x20bc9e(0xb8,-_0x101b1f._0x57250b,_0x101b1f._0x5c18ed,0x13e)]({'method':_0x47b80c(0x453,0x402,0x3b8,0x3f2),'params':_0x575408},CallToolResultSchema);},async 'close'(){const _0x403d12={_0x32bc2d:0x12e,_0x2c3d9d:0x5c};function _0x3da821(_0x4a9db7,_0x3f7b2f,_0xddde07,_0x125319){return _0x564761(_0x3f7b2f,_0xddde07-0x4c3,_0xddde07-_0x403d12._0x32bc2d,_0x125319-_0x403d12._0x2c3d9d);}await _0x5cb30a[_0x3da821(0x4b5,_0x289014._0x49ce40,0x56d,_0x289014._0x3c6fef)]();}};}async function createMcpToolsFromServers(_0x229c94){const _0x44e8bd={_0x2d0b3a:0x187,_0x593345:0x15a,_0x3ff011:0x183,_0x5ba9cd:0x96,_0x2ed5e1:0x2b8,_0x9202de:0x1f2,_0x59d985:0x38a,_0x1a8f0a:0x237,_0x480c10:0xde,_0x40c316:0x2af,_0x2f23ce:0x24f,_0x59763b:0x45,_0x50a9f3:0x8,_0x9ed988:0x9e,_0xa8f30b:0x237,_0x48e43f:0x2fb,_0x1a2d8b:0x2bf,_0x2bc2eb:0x1c7,_0x4f50a8:0x116,_0x310892:0x2e,_0x39b5e0:0x50,_0x189f2e:0xcc,_0x3b6225:0xe},_0x19356e={_0x17f595:0x3ec,_0x223fd8:0x483,_0x1ca6d0:0x187,_0x32ffc1:0x17e,_0x31ff11:0x14e},_0x9953f6={_0x5da220:0xa3},_0x52d837={_0x1f2ded:0x420,_0x1448cd:0x133,_0x5d04b4:0xfe},_0x4c58cd=_0x229c94[_0x58b0fd(-_0x44e8bd._0x2d0b3a,-_0x44e8bd._0x593345,-_0x44e8bd._0x3ff011,-0x1ac)]??connectMcpServer;function _0x5641af(_0x97fa7d,_0x541e59,_0x468a9f,_0x7dbbc2){return _0x12584b(_0x541e59- -_0x52d837._0x1f2ded,_0x541e59-_0x52d837._0x1448cd,_0x468a9f-_0x52d837._0x5d04b4,_0x7dbbc2);}const _0x27a4f0=[],_0x4655ca={},_0x15321e=[];for(const [_0x8a8d7b,_0x341d1d]of Object['entries'](_0x229c94[_0x5641af(0x152,_0x44e8bd._0x5ba9cd,0x9c,0xbd)]??{})){if(_0x341d1d['enabled']===![]){_0x4655ca[_0x8a8d7b]={'status':_0x58b0fd(-_0x44e8bd._0x2ed5e1,-0x291,-_0x44e8bd._0x9202de,-_0x44e8bd._0x59d985)};continue;}try{const _0x10c222=await _0x4c58cd(_0x8a8d7b,_0x341d1d,_0x229c94[_0x58b0fd(-0x235,-0x216,-0x281,-_0x44e8bd._0x1a8f0a)]);_0x27a4f0[_0x5641af(0x104,0x2e,-0x94,_0x44e8bd._0x480c10)](_0x10c222);const _0x7d01fb=await _0x10c222[_0x58b0fd(-_0x44e8bd._0x40c316,-_0x44e8bd._0x2f23ce,-0x33e,-0x1ed)]();let _0x4a5e90=0x0;for(const _0x2df2be of _0x7d01fb['tools']){const _0xa0fffa=_0x229c94[_0x5641af(_0x44e8bd._0x59763b,-_0x44e8bd._0x50a9f3,-0xf,_0x44e8bd._0x9ed988)]?.[_0x8a8d7b]?.[_0x2df2be[_0x58b0fd(-_0x44e8bd._0xa8f30b,-_0x44e8bd._0x48e43f,-_0x44e8bd._0x1a2d8b,-_0x44e8bd._0x2bc2eb)]];if(_0xa0fffa===![])continue;_0x4a5e90+=0x1,_0x15321e[_0x5641af(_0x44e8bd._0x4f50a8,_0x44e8bd._0x310892,-_0x44e8bd._0x39b5e0,_0x44e8bd._0x189f2e)](createMcpTool({'serverName':resolvePrefix(_0x8a8d7b,_0x341d1d),'tool':_0x2df2be,'client':_0x10c222}));}_0x4655ca[_0x8a8d7b]={'status':_0x5641af(-0xc1,0x11,-0xa6,-_0x44e8bd._0x3b6225),'toolCount':_0x4a5e90};}catch(_0x26f17f){_0x4655ca[_0x8a8d7b]=isUnauthorizedError(_0x26f17f)?{'status':'authRequired','message':getErrorMessage(_0x26f17f)}:{'status':'error','message':getErrorMessage(_0x26f17f)};}}function _0x58b0fd(_0x842dc1,_0x575a42,_0x3dfaa3,_0x451c62){return _0x12584b(_0x842dc1- -0x6c0,_0x575a42-_0x9953f6._0x5da220,_0x3dfaa3-0x156,_0x451c62);}return{'tools':_0x15321e,'servers':_0x4655ca,async 'close'(){const _0xe4c5df={_0x1f9f91:0x50,_0x133d98:0x155};function _0x13dbc0(_0xf0ce97,_0x30d9f3,_0x24f79c,_0x1c3f01){return _0x58b0fd(_0x1c3f01-0x3dc,_0x30d9f3-_0xe4c5df._0x1f9f91,_0x24f79c-_0xe4c5df._0x133d98,_0xf0ce97);}function _0x32f68f(_0x1de757,_0x546904,_0x3e4bb9,_0x1ebf20){return _0x58b0fd(_0x3e4bb9-0x5a0,_0x546904-0x1b4,_0x3e4bb9-0xbd,_0x1de757);}await Promise[_0x32f68f(0x44d,0x410,_0x19356e._0x17f595,_0x19356e._0x223fd8)](_0x27a4f0[_0x13dbc0(0x1b5,_0x19356e._0x1ca6d0,_0x19356e._0x32ffc1,_0x19356e._0x31ff11)](_0x177ca2=>_0x177ca2['close']()));}};}function getCommand(_0x365ca9){const _0x3105b6={_0x42698f:0xa0,_0x2760ff:0xb,_0x32a159:0x26d,_0x4d1923:0x15d,_0x5d868f:0x2a8,_0x2f393e:0x27d,_0x5d68a9:0x14a,_0x11ee5d:0x10a,_0xfdfc30:0x108,_0xe692d2:0x12a},_0x48f3d4={_0x257154:0x1a2,_0x55039e:0x4b};function _0x35af58(_0xd03f89,_0x48fb1b,_0x3c734a,_0x29fe85){return _0x46bf5b(_0xd03f89-0x19d,_0x3c734a,_0x3c734a-0x12c,_0x29fe85- -0x35a);}if(_0x365ca9&&typeof _0x365ca9===_0x35af58(_0x3105b6._0x42698f,-_0x3105b6._0x2760ff,0x6b,0xcb)&&!Array[_0x2a6fcd(0x17a,_0x3105b6._0x32a159,_0x3105b6._0x4d1923,0x235)](_0x365ca9)&&typeof _0x365ca9[_0x2a6fcd(_0x3105b6._0x5d868f,0x272,_0x3105b6._0x2f393e,0x23d)]==='string')return _0x365ca9[_0x35af58(_0x3105b6._0x5d68a9,_0x3105b6._0x11ee5d,0x61,0xc8)];function _0x2a6fcd(_0x245625,_0x447524,_0x23c042,_0x4189f5){return _0x12584b(_0x4189f5- -_0x48f3d4._0x257154,_0x447524-0x191,_0x23c042-_0x48f3d4._0x55039e,_0x245625);}return _0x35af58(0x259,_0x3105b6._0xfdfc30,_0x3105b6._0xe692d2,0x1cd);}var MOCK_WORKSPACE_LISTING=[_0x46bf5b(0x60d,0x4d1,0x603,0x561),'docs/plans/2026-04-16-mock-agent-loop-implementation.md',_0x12584b(0x3cc,0x3dd,0x36d,0x47f),_0x46bf5b(0x53a,0x5ee,0x4a3,0x515),_0x46bf5b(0x5a1,0x674,0x620,0x5ab),_0x46bf5b(0x4a4,0x44c,0x5c9,0x4ec),'src/examples/demo.ts','src/agent/extension-registry.ts',_0x46bf5b(0x57f,0x57c,0x472,0x523),_0x46bf5b(0x42a,0x521,0x3e5,0x452),_0x12584b(0x481,0x3d3,0x4a0,0x431),_0x12584b(0x494,0x46b,0x579,0x4e0),_0x46bf5b(0x469,0x57e,0x5fe,0x536),'src/agent/agent.test.ts',_0x12584b(0x49c,0x3e2,0x44c,0x521),_0x12584b(0x3e0,0x444,0x482,0x33b),_0x12584b(0x4d3,0x3f3,0x546,0x49d)][_0x46bf5b(0x4f8,0x4ac,0x5bd,0x500)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x12584b(0x470,0x4b5,0x48a,0x410),'description':_0x46bf5b(0x565,0x485,0x51d,0x519),'input_schema':{'type':_0x12584b(0x3e2,0x423,0x375,0x3f7),'properties':{'command':{'type':_0x46bf5b(0x417,0x50f,0x3cf,0x479)}},'required':[_0x12584b(0x3df,0x3f1,0x3e5,0x38e)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x3b7455){return{'output':_0x3b7455,'structured':{'value':_0x3b7455}};}function createUnknownToolResult(_0x110136){const _0x3ff4c5={_0x4bc3b4:0xb,_0x33b5a5:0xbc,_0x343a89:0x40,_0x27145f:0x9e,_0x2e17ac:0xf},_0x3b4d15={_0x35426a:0x3e2,_0x788d20:0xf6},_0x5a8ff6={_0x2f3cba:0xce,_0xecaef2:0x1d2};function _0x219ec7(_0x5f2d22,_0x533fd8,_0x499d6d,_0x348ca2){return _0x12584b(_0x5f2d22-_0x5a8ff6._0x2f3cba,_0x533fd8-_0x5a8ff6._0xecaef2,_0x499d6d-0x128,_0x348ca2);}function _0x41849d(_0x212684,_0x41e210,_0x2f3741,_0x47030f){return _0x12584b(_0x2f3741- -_0x3b4d15._0x35426a,_0x41e210-0x6a,_0x2f3741-_0x3b4d15._0x788d20,_0x212684);}return{'callId':_0x110136['id'],'toolName':_0x110136[_0x41849d(0x175,0x146,0xa7,0x33)],'status':_0x41849d(0x53,0x25,_0x3ff4c5._0x4bc3b4,_0x3ff4c5._0x33b5a5),'output':_0x41849d(_0x3ff4c5._0x343a89,-_0x3ff4c5._0x27145f,-0x18,_0x3ff4c5._0x2e17ac)+_0x110136['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function _0x46bf5b(_0x60c3d8,_0x45310c,_0x43ac65,_0x585d0f){return _0x5452(_0x585d0f-0x339,_0x45310c);}function createSuccessToolResult(_0x3c2a62,_0x264f53){const _0x2402d1={_0x2dbdc3:0x118,_0xc88699:0x134};function _0x14f059(_0x31176e,_0x53062c,_0x2085bd,_0x38c090){return _0x46bf5b(_0x31176e-0x198,_0x31176e,_0x2085bd-0xb4,_0x38c090- -0x5b6);}return{'callId':_0x3c2a62['id'],'toolName':_0x3c2a62[_0x14f059(-_0x2402d1._0x2dbdc3,-0x1ca,-_0x2402d1._0xc88699,-0xea)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x3c2a62['input']),'exitCode':0x0},'chunks':[_0x264f53],'meta':createMeta()};}function createMockToolRuntime(){const _0x1d6932={_0x4985a1:0x12f},_0x4b0ee9={_0x244d4b:0x45},_0x1a8b0e=async(_0xeade48,_0x414948)=>{if(_0xeade48[_0xf352d5(0x238,0xdb,0x14e,0x91)]!=='Bash')return createUnknownToolResult(_0xeade48);function _0xf352d5(_0x4c23cf,_0x346f06,_0x44f626,_0x30919f){return _0x5452(_0x44f626- -_0x4b0ee9._0x244d4b,_0x30919f);}const _0x37de53=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0xeade48,_0x37de53);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x53191c,_0xfe963c){function _0x4cf2d0(_0x41afeb,_0x41a949,_0x40cac9,_0x45ad03){return _0x5452(_0x41a949-0x31,_0x41afeb);}return await Promise['all'](_0x53191c[_0x4cf2d0(_0x1d6932._0x4985a1,0x16d,0xa0,0x1fe)](async _0x544e29=>{return await _0x1a8b0e(_0x544e29,_0xfe963c);}));},async 'execute'(_0x9f946a,_0x36b70f){return await _0x1a8b0e(_0x9f946a,_0x36b70f);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x5314cf={_0x5dc619:0x180,_0x217043:0x17f},_0x2d69ca={_0x1e1f71:0xad};function _0x38a4d4(_0x15e1cc,_0x28c1c3,_0x5808be,_0x548751){return _0x12584b(_0x5808be- -0x58c,_0x28c1c3-0x90,_0x5808be-_0x2d69ca._0x1e1f71,_0x15e1cc);}return delegatedRunCounter+=0x1,_0x38a4d4(-_0x5314cf._0x5dc619,-0xdc,-_0x5314cf._0x217043,-0x265)+delegatedRunCounter;}function _0x226c(){const _0x39f9e5=['u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','C2L0ztO','Dg9VBfjLC3vSDhm','zgLYzwn0B3j5','v2vIrMv0y2G','C2LNBMfS','Aw1Hz2vZ','zgLZywjSzwq','ChvIBgLZAgvKqxq','B3bLBMfPlxjLC3bVBNnLCW','sw52B2TLq29TBwfUza','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','zgvSzwDHDgvKlxj1BI0','u0HfteW','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','yxnZAwDU','BgLZDfrVB2XZ','y2HHCKnVzgvbDa','B2f1DgG','DgL0Bgu','u2TPBgWGjW','C3rKB3v0','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','ywXSB3DLzfrVB2XZ','C2nVCgvZ','zgf0zxrPBwu','yxjYyxK','uhvIBgLZAgvKoIa','DhLWzq','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','zgvZy3jPChrPB24','mZa5munAC2jRDG','r0LgodLH','Aw1Hz2u','AxnfCNjVCG','C3rHCNrZv2L0Aa','Dw5PB24','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','D2vI','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','y29KzvzLCMLMAwvY','Dg9ju09tDhjPBMC','te9dquXbufbeqvrb','zw51Bq','CMvJB3jK','AxntEw1IB2XPy0XPBMS','yMvHCMvY','A2v5CW','y29UBMvJDgvK','BwfW','Aw5JBhvKzq','CMvSyxrPDMu','C2HPzNq','C3rYAw5N','A2v5yMLUzgLUz3m','D2LUmZi','CMvXDwLYzwq','z29Vz2XLq3nLq3G','Dg9tDhjPBMC','C3rHDhvZvgv4Da','y29UDgv4Da','Dg9VBenHBgXjza','tuLnrtOG','iYmGu2TPBgW6ia','tgLUzsa','igj5DgvZ','C3r5Bgu','AxneAxjLy3rVCNK','zM9VDgvY','C2vZC2LVBKLK','mZqXotG1ExPRrxjj','Dg9Rzw4','ugf0AcbPCYbUB3qGysbMAwXLoIa','zw50CMLLCW','Dg9vChbLCKnHC2u','y29ZDa','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','ChvZAa','AgvHzgvYCW','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','AxngAw5PDgu','ywrK','BNv2Aw4','lNbUzW','Cgf0DgvYBG','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','lunVBw1HBMq','zMLSzvbHDgG','ugfJA2fNzxm','CgXHAw4','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','B3jPz2LUvg9VBenHBgXjza','Dg9VBa','C3rHDgu','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y29UzMLN','yxv0Aa','AxndB250zxH0','CgLWzq','z29Vz2XLq3nLs2v5','DxrTx3rLCM0','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','y2XPzw50x3nLy3jLDf9WB3n0','DhjPBuvUza','yNL0zuXLBMD0Aa','DgfZAW','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZlG','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','seLhsa','BgLUAW','qMfZAa','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','DgLTzvTKyxrLDgLTzv0','w1bFxL1BxhnCu10QpW','Aw5KzxHpzG','B3v0Chv0','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','u0Lhs0Lmta','rMv0y2GGDgLTzwqGB3v0','C2vYDMvY','ntaXodK1nMDqswjOuW','ig1Z','DxrTx2nHBxbHAwDU','AhjLzG','y29TBwfUzhm','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','ywDLBNrjza','zMLSzq','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','u3rHCNrLzcbHz2vUDcbYDw4G','lMPWzW','zMLYC3q','ls1NBg9Ipq','BMfTzq','rMv0y2GGywjVCNrLzcbIEsb1C2vY','y29UBMvJDgLVBG','v2LUr2v0','BgLUzuvUza','B3jPz2LUywW','CNnZ','Aw5JBhvKzxm','y29Uy2f0','Ec1HCgKTA2v5','r2XVyG','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','ow1PEMHfAa','C2vZC2LVBG','zgfYAW','Dg9VBhmVy2fSBa','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','Cgf0DgvYBIbPCYbYzxf1AxjLza','wZ0+nY04kcLD','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','B3bLBMfPlxjLC3bVBNnLCY13CW','DxrTx2nVBNrLBNq','C3bSAxq','y2fUy2vS','BgfUzW','ls1MB2XSB3C','zxf1ywXZ','tunqihrVB2WG','zgf0zvjLC3rYAwn0','y3DK','CMvZB2X2zq','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','y2XVC2u','yxjNDw1LBNrZvgv4Da','Aw50zwDLCG','zNjVBq','yMfZzty0','y29UDgvUDa','C3rKzxjY','BM9Uzq','CNvUBMLUzW','tM8GCMvZDwX0CYbMB3vUzc4','AwzYyw1L','yxnJAwK','C2vYDMvYCW','CNvUswq','yxv0BW','mJCWD3DgyNH3','Dg9Rzw5Z','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','tg9HzgvKigzYB206ia','AM9PBG','t0zg','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','CMvMCMvZAf90B2TLBG','DxnLCM5HBwu','Ahr0CdO','Agv4','Aw5ZDhj1y3rPB25Z','r3jLCa','B25Jzq','q29Tu3bLyW','z2v0','AgLNAa','zgf0yq','mZi5mZu2D3r4DgTb','yMfZzw5HBwu','CMvTB3zL','ls1YzwDLEha','ChjVDg9JB2W','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','BxrPBwu','CgfJA2fNzs5QC29U','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','ygbGANnVBGO','yM0Ynq','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','CMvJzw5JEurHExm','B2C6DxbKyxrLzf90Aw1L','ANnVBG','zw52','yxjNDw1LBNriAw50','Aw5WDxrty2HLBwe','CgfYC2u','C2TPBgXZ','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','v2vIu2vHCMnO','BwnFzwLK','zMvUy2vK','BhmGlwXH','CMCUzxHL','C2v0','zxHPDcbJB2rLia','y2fJAgvK','l3vZCI9SB2nHBc9IAw4VCMC','BwLU','tg9HzfnRAwXS','qxnZAwDUvgfZAW','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','C3rHDhvZ','zxH0BMfTzq','y29Kzq','C2vHCMnOvhLWzq','lu5Vtg9NBW','C3jJl3nOyxjLzc90ExbLCY50CW','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','l3vZCI9IAw4VC2G','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','C2L6zq','ls1NBg9I','DgLTzw91De1Z','DMvYAwzPzxi','CgLK','BgLUzxm','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','zgvSzxrL','vw5HDxrOB3jPEMvKrxjYB3i','BgfUz18','ywrKrxzLBNrmAxn0zw5LCG','A2LSBgvK','yM9VBgvHBG','C2vYDMvYtMfTzq','ChjVCgvYDgLLCW','Aw1Hz2uVD2vICa','C2HLBgXqyxrO','BM93','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','C3LTBgLUAW','CMvXDwvZDa','ywXS','CMLWz3jLCa','Cg9W','yxr4','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','DhjHBNnWB3j0','ywjVCNq','BwvTB3j5','l3bPza','lNrTCc4','zgvMyxvSDen3za','C2HHmJu2','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','ndC0ntbtBhHWD1C','vMLLD0zPBgu','tNv2Aw4','Bg9HzenVBw1HBMq','zhj5uNvU','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','y29UC3rYDwn0B3i','B25szwrPCMvJDa','BMv3vgv4Da','yxr0CG','lMPWzwC','zgLNzxn0','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','AxngAwXL','Bw9Kzq','y2vPBa','ls1OAwrKzw4','u2HLBgWGBM90igzVDw5KoIa','qMvHCMvYia','lI4U','igzYB20G','C3vIyxjYyxK','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','ls1JB2X1Bw4','xg5DkJ8','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','ywDLBNrZ','DxrMoa','zg9TywLUCW','ywn0AxzL','qxv0Ag9YAxPHDgLVBG','AxrLBxm','y29UBMvJDa','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','y29UDgvUDc1Szw5NDgG','tuvesvvn','B2zMC2v0','CgfYC2vjBNq','z2L0qNjHBMnO','AhLKCMf0zu1LDge','DhvWBgu','ls1MAwXLCW','zxjYB3jnzxnZywDL','y3jSzG','z2XVyG','yxbWBgLJyxrPB24VANnVBG','yw50AhjVCgLJlw1LC3nHz2vZ','u2L6ztOG','Bg9JywXLq29TCgfYzq','AwDUB3jL','yxjNDw1LBNroyw1LCW','yw5ZAte2','DgHLBG','y291BNq','mJCZodKWnJrmthHJrLi','zMfPBgvK','y29UDgv4DeXPBMS','vMLLD2vKigLTywDLigzPBgu6ia','C3rVCMfNzurPCG','cGPbuKDvtuvovfm6ia','Dgv4Dc9ODg1S','CMvWBgfJzq','CMvZDwX0','CxvLCNK','nZG2muXmrffNsG','uhjVz3jHBuzPBgvZkhG4nIK','y29UDgvUDc10ExbL','B2XKvgv4Da','B2zM','BwnFy2LK','DxbKyxrL','Bwf4','Ahr0Ca','BgLUzvrLEhq','z29Vz2XLlwnZzq','BhnW','uhjVz3jHBuzPBgvZ','ywjVCNrLza','D2HPy2GGCMC','C3jJl2fNzw50l2fNzw50lNrZ','C2fMzq','CMvHC29U','Bg9HzfnRAwXS','y2fSBgjHy2TvCMW','zgv0ywLS','Cgf0Aa','DgHPBMTPBMC','Dhj1zwnVBg9Y','ndeZmZu5mMj3tuPUyq','z2nSAwq','zgvMyxvSDfrPBwvVDxrnCW','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','BgLNAhq','sw52ywXPzcbvuKWGCgfYyw1LDgvY','BxrPBwvnCW','BM9Zy3jPChq','AgvHzgvY','ignVBxbSzxrLzc4','C3rKAw8','B3b0Aw9UywW','C291CMnL','rM91BMqG','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','CMvNAw9U','zgLZy292zxj5u3rHDgu','lMDPzG','qxzHAwXHyMXLignVBw1HBMrZoG','igj5DgvZigv4y2vLzhmG','DxrTx21LzgL1Bq','rgv0ywLSoIa','mxniy1DZuW','CMfUzg9T','Dg9VBhm','BgLUzu51Bq','y2XLyw51Ca','Ahr0Chm6','DhjPBq','DgvZDa','l2jPBI9YzW','AhrTBfnUAxbWzxq','Aw1Hz2uVCg5N','C2XPy2u','ru5pru5u','zMLSDgvY','Bwf4qNL0zxm','te9x','y2f0y2G','BwnWxW','zw5K','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','tunqihnLCNzLCIa','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','ienHDxnLoIa','y29TCgXLDgvK','C2vHCMnOugfYyw1Z','Dg9mB3DLCKnHC2u','C29YDa','ls0T','vw5RBM93BIb0B29SoIa','C3vKBW','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','Bwv0yxrHz3m','C25PChbLDa','A2LSBa','CgfZC3rOCM91z2G','yM9KEq','l2jPBI9IyxnO','mc4WlJa','lNDLyNa','BgL0zxjHBa','Dhj1BMm','AxnbCNjHEq','uKLgrG','DxjS','BgLUzvn0yxj0','BwvZC2fNzq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','zMLUywXnzxnZywDL','BgvUz3rO','y29TBwfUza','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','yM94zwq','B2jQzwn0','yMLYDgH0Aw1L','DxrTx3nVDxjJzq','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','ywXSB3DLzerPCNm','zgLYBMfTzq','CgXHDgzVCM0','Aw1Hz2uVANbLzW','sfruuca','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','zxjYB3i','BNvTyMvY','BgLTAxq','qwDLBNqGCNvUia','l3vZCI9IAw4VyMfZAa','Dgv4Da','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','C2vUza','v0vcua','yxbPs2v5','zMLUywXnzxnZywDLvgv4Da','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','ig1HDgnO','y2XPzw50sw5MB3jTyxrPB24','C3rYAw5NAwz5','Ag9ZDa','AgfZ','C2nYAxb0','y2XPzw50','m0vZAerpsq'];_0x226c=function(){return _0x39f9e5;};return _0x226c();}async function resolveDelegatedAgentOptions(_0x3640f5,_0x1781f4){return typeof _0x3640f5==='function'?await _0x3640f5(_0x1781f4):_0x3640f5;}function getDelegatedAgentDefinition(_0x5b4ad9,_0xfa3bc7){const _0xef42fd={_0x2e32c6:0x60,_0x32ff6f:0x103};function _0x29ca84(_0x5b1348,_0x3cc014,_0x1123e1,_0x572960){return _0x46bf5b(_0x5b1348-0x151,_0x572960,_0x1123e1-_0xef42fd._0x2e32c6,_0x3cc014- -_0xef42fd._0x32ff6f);}return _0x5b4ad9[_0x29ca84(0x38d,0x473,0x557,0x3f8)]?.[_0xfa3bc7];}function createRunSummary(_0x1609b0){const _0x44bde6={_0x1f34dc:0x42,_0xc26937:0x22,_0x1a5f33:0x7c,_0x4f1ce:0x2b,_0x5f4103:0x57,_0x758c2e:0x6f,_0x547598:0x7e,_0x1e90a8:0x15,_0x4c80af:0xb,_0x11998c:0x9f,_0x118da3:0x117,_0xf145e9:0x158,_0x4c375a:0x2bb,_0x49ea52:0x45a,_0x2c3b85:0x46c,_0x3945ed:0xba,_0x22e3e7:0x7d,_0xe00bb9:0x90,_0x16c54d:0x29b,_0x1a5c0d:0x42a,_0x4ed251:0x53f,_0x5628a3:0x566},_0x4d6f88={_0x47aa8e:0xf8,_0x3f19b8:0x84,_0x2d6664:0x51c},_0x45c1a1={_0x153280:0x155,_0x10f368:0x0,_0x46553c:0x11a};function _0xfffce8(_0x492370,_0x1ec897,_0x11c446,_0x3820e9){return _0x46bf5b(_0x492370-_0x45c1a1._0x153280,_0x1ec897,_0x11c446-_0x45c1a1._0x10f368,_0x3820e9- -_0x45c1a1._0x46553c);}function _0x46b47c(_0x56d565,_0x39e6d0,_0x5238ff,_0x37867f){return _0x46bf5b(_0x56d565-_0x4d6f88._0x47aa8e,_0x5238ff,_0x5238ff-_0x4d6f88._0x3f19b8,_0x39e6d0- -_0x4d6f88._0x2d6664);}return{'runId':_0x1609b0[_0x46b47c(-_0x44bde6._0x1f34dc,-_0x44bde6._0xc26937,0x28,_0x44bde6._0x1a5f33)],'agentId':_0x1609b0[_0x46b47c(-_0x44bde6._0x4f1ce,-_0x44bde6._0x5f4103,-_0x44bde6._0x758c2e,-_0x44bde6._0x547598)],'sessionId':_0x1609b0[_0xfffce8(0x30d,0x315,0x3c7,0x36f)],'status':_0x1609b0[_0x46b47c(0x1d,_0x44bde6._0x1e90a8,_0x44bde6._0x4c80af,_0x44bde6._0x11998c)],'parentSessionId':_0x1609b0['parentSessionId'],..._0x1609b0[_0x46b47c(-_0x44bde6._0x118da3,-0x7d,0x1,-_0x44bde6._0xf145e9)]!==void 0x0?{'originToolCallId':_0x1609b0[_0xfffce8(0x331,_0x44bde6._0x4c375a,_0x44bde6._0x49ea52,0x385)]}:{},..._0x1609b0[_0xfffce8(0x3f6,0x3ea,0x51c,_0x44bde6._0x2c3b85)]!==void 0x0?{'errorMessage':_0x1609b0[_0x46b47c(0xd7,0x6a,_0x44bde6._0x3945ed,0x149)]}:{},..._0x1609b0[_0x46b47c(_0x44bde6._0x22e3e7,0x7e,_0x44bde6._0xe00bb9,-0x2e)]?.[_0xfffce8(0x3b4,0x2f9,_0x44bde6._0x16c54d,0x306)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1609b0[_0xfffce8(_0x44bde6._0x1a5c0d,_0x44bde6._0x4ed251,_0x44bde6._0x5628a3,0x480)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x4a65d6,_0x133907){const _0x4326a7={_0x477823:0x235,_0x374229:0x228,_0x51fc5f:0x1df,_0x5cd8ed:0x2a4,_0x34844f:0x278,_0x29f4fe:0x314},_0x25d08f={_0x21cf35:0x47};function _0x1ac717(_0x19afed,_0xd6aea1,_0x1bdf9e,_0x12f5f7){return _0x46bf5b(_0x19afed-0x17f,_0xd6aea1,_0x1bdf9e-0x1e,_0x1bdf9e- -0x71e);}const _0x1a06d0=createRunSummary(_0x4a65d6);function _0xd43e9d(_0x51d7d9,_0x4a026c,_0x1c7e5e,_0x577edf){return _0x46bf5b(_0x51d7d9-0x195,_0x4a026c,_0x1c7e5e-_0x25d08f._0x21cf35,_0x1c7e5e- -0x25b);}const _0x5739f4=_0x1a06d0[_0xd43e9d(_0x4326a7._0x477823,_0x4326a7._0x374229,_0x4326a7._0x51fc5f,_0x4326a7._0x5cd8ed)];return createToolOutput(typeof _0x5739f4===_0x1ac717(-0x2ac,-_0x4326a7._0x34844f,-0x2a5,-_0x4326a7._0x29f4fe)&&_0x5739f4['length']>0x0?_0x5739f4:_0x133907,_0x1a06d0);}function getRunTerminalErrorMessage(_0x1f1fbc){const _0xd7bc16={_0x4941ee:0x107,_0x499d72:0x50,_0x31d5c4:0x27,_0x56b728:0x470},_0x207955={_0x22168b:0x27,_0xd1ee7:0x1dc};function _0x315a4e(_0x5147d5,_0x536fb7,_0x3ab2d7,_0x6406f3){return _0x12584b(_0x5147d5- -_0x207955._0x22168b,_0x536fb7-_0x207955._0xd1ee7,_0x3ab2d7-0x2b,_0x536fb7);}const _0x4383d4=_0x1f1fbc?.[_0x215058(_0xd7bc16._0x4941ee,_0xd7bc16._0x499d72,-0x86,0x4b)][_0x215058(-0xb3,-_0xd7bc16._0x31d5c4,0x9a,-0x10)]['at'](-0x1);if(_0x4383d4?.['status']===_0x215058(0x10,-0x72,-0x8c,-0x26)&&_0x4383d4[_0x315a4e(0x44e,0x492,0x3c8,_0xd7bc16._0x56b728)]['trim']()[_0x215058(-0x11d,-0x57,-0x49,-0x35)]>0x0)return _0x4383d4['output'];function _0x215058(_0x4d9f91,_0x2f6388,_0x1269e4,_0x24e4d4){return _0x46bf5b(_0x4d9f91-0xb6,_0x2f6388,_0x1269e4-0x129,_0x24e4d4- -0x456);}return void 0x0;}function formatAbortedRunMessage(_0x5e672b,_0x433b4f){const _0x204090={_0x92d8c:0x5af,_0x458124:0x608,_0x1a5f67:0x2e9,_0x58cb4f:0x249},_0x1e76a8={_0x457a26:0x191,_0x54444e:0x138},_0x39d2f3='Agent\x20run\x20'+_0x5e672b+'\x20was\x20aborted.';if(!_0x433b4f||_0x433b4f[_0x48c9fc(0x54f,_0x204090._0x92d8c,0x558,_0x204090._0x458124)]()[_0x15587d(_0x204090._0x1a5f67,_0x204090._0x58cb4f,0x28e,0x389)]===0x0||_0x433b4f===_0x39d2f3)return _0x39d2f3;function _0x48c9fc(_0x180b41,_0x48934e,_0x355158,_0x4791ea){return _0x46bf5b(_0x180b41-0xe5,_0x355158,_0x355158-0x1d,_0x48934e- -0x21);}function _0x15587d(_0x4f136f,_0x596454,_0x308be1,_0x2048d6){return _0x46bf5b(_0x4f136f-_0x1e76a8._0x457a26,_0x2048d6,_0x308be1-0x6,_0x4f136f- -_0x1e76a8._0x54444e);}return _0x39d2f3+_0x48c9fc(0x499,0x3e6,0x337,0x436)+_0x433b4f;}function createAssignTaskTool(_0x5771d9){const _0x29a116={_0x5621cf:0xb5,_0x587b94:0x88,_0x2d2136:0x71,_0x45d296:0x13c,_0x35e244:0xb3,_0x3ebd69:0x14c,_0x1096b0:0x133,_0x218028:0x13f,_0x322615:0xec,_0x4af672:0xfc,_0x11dec6:0x39,_0x580a0e:0x198,_0x507ff3:0xfc,_0x5a852e:0x1bd,_0x12a749:0x1a5,_0x1dc9ac:0xb0,_0x37a02e:0x143,_0x4fe5ac:0x3b,_0x158cc9:0x151,_0x4d1e61:0xc7,_0x319ccb:0x160,_0x22bb4c:0x36},_0x5dbf14={_0x162cd1:0x2c1,_0x5a8b9a:0x381,_0x51f86a:0x2df,_0x553137:0x381,_0x543881:0x443,_0x42f576:0x39d,_0x42b47e:0x3c5,_0x315795:0x3e5,_0x215cb5:0x33b,_0x2482fe:0x32c,_0x1d0e27:0xb1,_0x471a06:0x1b5,_0x2f2744:0xbe,_0x204cc2:0xa6,_0x3e1683:0x5,_0x22d13f:0xf5,_0x25efbb:0x4d8,_0x236e4e:0x8c,_0x16ce6b:0x25,_0x1e46ea:0x46,_0x2e752e:0x4e,_0x28dd55:0x8,_0x335436:0x3e2,_0x4f1a86:0x5d,_0x3d26ee:0x15f,_0x245135:0x36b,_0x32e8d7:0x3fa,_0x2468b2:0xbd,_0x1a41af:0x14d,_0x4e4b65:0x20d,_0x1f7dfa:0x251,_0x139756:0x2d4,_0x357081:0x426,_0x3a655c:0x3ae,_0x478e77:0x465,_0x3be1c8:0x431,_0x3f94ee:0x211,_0x12c2f7:0x22a,_0x60a9c0:0xef,_0x2fcda8:0x116,_0x509d21:0x125,_0x390f86:0xb8,_0x203009:0x6f,_0x162a81:0x432,_0xb0dec:0x586,_0x24e00f:0x42b,_0x1f2be9:0x4bd,_0x4591dd:0x145,_0x3da230:0x14b,_0x1eacca:0x3b,_0x5e5a6e:0x272,_0x3b6aff:0x121,_0x2eacea:0x2d4,_0x4204fc:0x262,_0x27e583:0x2de,_0x146be9:0x349,_0x51d734:0x18b,_0x41394d:0x38e,_0x110cce:0x447,_0x4f0a44:0x1b9,_0x385d96:0x1c5,_0x3bdf27:0x288,_0xed18f6:0x2d2,_0x2f96da:0x12a,_0x237023:0x1ee},_0x392132={_0x345a0f:0x142,_0xad5b22:0x166},_0xc3cc26={_0x50cab3:0x12a},_0x223ee5={_0x528c92:0x29,_0x3647a8:0x1f3};function _0x193104(_0x202f51,_0x1119e2,_0x56e365,_0x425780){return _0x12584b(_0x1119e2- -0x4ba,_0x1119e2-_0x223ee5._0x528c92,_0x56e365-_0x223ee5._0x3647a8,_0x56e365);}function _0x548c4b(_0x35e659,_0x5d6ca7,_0x1370a9,_0x7a11f7){return _0x46bf5b(_0x35e659-0x106,_0x1370a9,_0x1370a9-_0xc3cc26._0x50cab3,_0x5d6ca7- -0x575);}return defineTool({'name':_0x548c4b(-_0x29a116._0x5621cf,-0x46,_0x29a116._0x587b94,_0x29a116._0x2d2136),'description':_0x548c4b(-0xc4,-0xdc,-_0x29a116._0x45d296,-_0x29a116._0x35e244),'inputSchema':{'type':_0x193104(-_0x29a116._0x3ebd69,-0xd8,-_0x29a116._0x1096b0,-_0x29a116._0x218028),'properties':{'agentId':{'type':_0x548c4b(-_0x29a116._0x322615,-_0x29a116._0x4af672,-0x1a1,-_0x29a116._0x11dec6)},'task':{'type':_0x548c4b(-_0x29a116._0x580a0e,-_0x29a116._0x507ff3,-_0x29a116._0x5a852e,-_0x29a116._0x12a749)}},'required':[_0x548c4b(-0x177,-_0x29a116._0x1dc9ac,-_0x29a116._0x37a02e,-_0x29a116._0x4fe5ac),_0x548c4b(-_0x29a116._0x158cc9,-_0x29a116._0x4d1e61,-_0x29a116._0x319ccb,-_0x29a116._0x22bb4c)]},async *'execute'(_0xf8c2f8,_0x45c431){const _0x2ae824={_0x3952f4:0x311,_0x2a5320:0x265},_0x52cf36={_0x33428e:0x8a,_0x59aa29:0x1ef},_0xa78d0b=createDelegatedRunId(),_0x3b6aa2={'agentId':_0xf8c2f8['agentId'],'parentSessionId':_0x45c431['sessionId'],'runId':_0xa78d0b,..._0x45c431[_0x5470e2(0x410,0x3c2,_0x5dbf14._0x162cd1,_0x5dbf14._0x5a8b9a)]!==void 0x0?{'toolCallId':_0x45c431[_0x5470e2(0x424,0x3cb,_0x5dbf14._0x51f86a,_0x5dbf14._0x553137)]}:{}},_0x23fe87=getDelegatedAgentDefinition(_0x5771d9,_0xf8c2f8[_0x5470e2(0x420,_0x5dbf14._0x543881,_0x5dbf14._0x42f576,_0x5dbf14._0x42b47e)]);if(!_0x23fe87)throw new ToolExecutionError(_0x5470e2(0x317,0x395,_0x5dbf14._0x315795,_0x5dbf14._0x215cb5)+_0xf8c2f8[_0x5470e2(0x459,_0x5dbf14._0x2482fe,0x346,_0x5dbf14._0x42b47e)],{'agentId':_0xf8c2f8[_0x15562f(_0x5dbf14._0x1d0e27,_0x5dbf14._0x471a06,0xe1,_0x5dbf14._0x2f2744)]});const _0x2466fb=new Agent(await resolveDelegatedAgentOptions(_0x23fe87,_0x3b6aa2));function _0x5470e2(_0x296025,_0x5d57ef,_0x2cf9fb,_0x20a201){return _0x193104(_0x296025-0xb8,_0x20a201-0x3fd,_0x296025,_0x20a201-0x1c1);}function _0x15562f(_0x5047a1,_0x3cb5f6,_0x3a5f35,_0x6145d1){return _0x193104(_0x5047a1-_0x392132._0x345a0f,_0x3a5f35-0x119,_0x6145d1,_0x6145d1-_0x392132._0xad5b22);}let _0x1cfee5={'runId':_0xa78d0b,'agentId':_0xf8c2f8[_0x15562f(_0x5dbf14._0x204cc2,0x66,0xe1,_0x5dbf14._0x3e1683)],'sessionId':_0x2466fb[_0x15562f(0x107,0xaf,0xa5,_0x5dbf14._0x22d13f)],'status':_0x5470e2(_0x5dbf14._0x25efbb,0x359,0x442,0x3f5),'parentSessionId':_0x45c431[_0x15562f(_0x5dbf14._0x236e4e,0xb6,0xa5,0x7b)],..._0x45c431[_0x15562f(-_0x5dbf14._0x16ce6b,-0x4e,0x9d,-_0x5dbf14._0x1e46ea)]!==void 0x0?{'originToolCallId':_0x45c431[_0x15562f(_0x5dbf14._0x2e752e,0x151,0x9d,-_0x5dbf14._0x28dd55)]}:{}};const _0xe65611=new AbortController(),_0xceb41b=addAbortListener(_0x45c431[_0x5470e2(0x324,_0x5dbf14._0x335436,0x27a,0x349)],()=>{const _0x535b89={_0x1dc072:0x1e,_0x3ffef6:0x10d};function _0x536737(_0x13998e,_0xf0a187,_0x3ed57e,_0x42f2dd){return _0x15562f(_0x13998e-_0x535b89._0x1dc072,_0xf0a187-_0x535b89._0x3ffef6,_0x3ed57e-0x148,_0x42f2dd);}function _0x3b240e(_0x393c14,_0x533cb3,_0x507fdb,_0x2cca5e){return _0x5470e2(_0x533cb3,_0x533cb3-_0x52cf36._0x33428e,_0x507fdb-0x149,_0x393c14- -_0x52cf36._0x59aa29);}_0xe65611['abort'](_0x45c431[_0x536737(0x123,0x1f2,0x1ad,0x18d)]?.[_0x536737(0x311,0x34e,_0x2ae824._0x3952f4,_0x2ae824._0x2a5320)]);});yield createToolOutput(_0x15562f(0xe,_0x5dbf14._0x4f1a86,0xe4,_0x5dbf14._0x3d26ee)+_0x1cfee5['runId']+'.',{'runId':_0x1cfee5[_0x5470e2(0x34c,0x411,_0x5dbf14._0x245135,_0x5dbf14._0x32e8d7)],'agentId':_0x1cfee5['agentId'],'sessionId':_0x1cfee5['sessionId'],'status':_0x1cfee5[_0x15562f(0x62,_0x5dbf14._0x2468b2,_0x5dbf14._0x1a41af,_0x5dbf14._0x4e4b65)]});try{const _0x3adfd2=await _0x2466fb[_0x5470e2(0x2d3,0x2b2,_0x5dbf14._0x1f7dfa,0x337)](_0xf8c2f8[_0x5470e2(_0x5dbf14._0x139756,_0x5dbf14._0x357081,0x314,_0x5dbf14._0x3a655c)],{'signal':_0xe65611['signal']});_0x1cfee5={..._0x1cfee5,'status':_0x3adfd2[_0x5470e2(0x4bc,0x3e8,_0x5dbf14._0x478e77,_0x5dbf14._0x3be1c8)],'result':_0x3adfd2};if(_0x3adfd2[_0x15562f(_0x5dbf14._0x3f94ee,0x107,_0x5dbf14._0x1a41af,_0x5dbf14._0x12c2f7)]!==_0x5470e2(0x23e,0x2af,0x2c2,0x308)){const _0xe8d8de=getRunTerminalErrorMessage(_0x3adfd2),_0x2ca0db=formatAbortedRunMessage(_0x1cfee5[_0x15562f(_0x5dbf14._0x60a9c0,0x1ba,_0x5dbf14._0x2fcda8,_0x5dbf14._0x509d21)],_0xe8d8de);throw new ToolExecutionError(_0x2ca0db,{...createRunSummary(_0x1cfee5),'aborted':!![],'errorMessage':_0x2ca0db});}return createRunSummaryOutput(_0x1cfee5,'Agent\x20run\x20'+_0x1cfee5[_0x15562f(_0x5dbf14._0x390f86,0x16b,0x116,_0x5dbf14._0x203009)]+_0x5470e2(_0x5dbf14._0x162a81,_0x5dbf14._0xb0dec,_0x5dbf14._0x24e00f,_0x5dbf14._0x1f2be9));}catch(_0x4c4983){if(_0x4c4983 instanceof ToolExecutionError)throw _0x4c4983;if(isAbortError(_0x4c4983)||_0xe65611[_0x15562f(_0x5dbf14._0x4591dd,_0x5dbf14._0x3da230,0x65,_0x5dbf14._0x1eacca)][_0x15562f(_0x5dbf14._0x5e5a6e,_0x5dbf14._0x3b6aff,0x1c5,0x26a)]||_0x45c431[_0x5470e2(_0x5dbf14._0x2eacea,_0x5dbf14._0x4204fc,_0x5dbf14._0x27e583,_0x5dbf14._0x146be9)]['aborted']){const _0x51b6e4=getRunTerminalErrorMessage(_0x1cfee5[_0x15562f(_0x5dbf14._0x51d734,0x15f,0x1b6,0x189)])??(_0x4c4983 instanceof Error?_0x4c4983['message']:String(_0x4c4983)),_0x5ca9ef=formatAbortedRunMessage(_0x1cfee5[_0x5470e2(_0x5dbf14._0x41394d,0x471,_0x5dbf14._0x110cce,0x3fa)],_0x51b6e4);_0x1cfee5={..._0x1cfee5,'status':_0x15562f(_0x5dbf14._0x4f0a44,0x1ff,_0x5dbf14._0x385d96,_0x5dbf14._0x3bdf27),'errorMessage':_0x5ca9ef};throw new ToolExecutionError(_0x5ca9ef,{...createRunSummary(_0x1cfee5),'aborted':!![],'errorMessage':_0x5ca9ef});}const _0x51bf55=getRunTerminalErrorMessage(_0x1cfee5['result'])??(_0x4c4983 instanceof Error?_0x4c4983[_0x5470e2(0x23b,0x2fb,_0x5dbf14._0xed18f6,0x31e)]:String(_0x4c4983))??_0x15562f(-0x20,_0x5dbf14._0x2f96da,0x4f,0x11f)+_0x1cfee5[_0x15562f(_0x5dbf14._0x237023,0x1a5,0x116,0xd6)]+'\x20failed.';_0x1cfee5={..._0x1cfee5,'status':_0x5470e2(0x4ab,0x463,0x49f,0x493),'errorMessage':_0x51bf55};throw new ToolExecutionError(_0x51bf55,{...createRunSummary(_0x1cfee5),'errorMessage':_0x51bf55});}finally{_0xceb41b();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x2a60a3){return[createAssignTaskTool(_0x2a60a3)];}import*as _0x5ddc93 from'path';function _0x12584b(_0x4707bb,_0x4949e4,_0xf65bf2,_0x4ee548){return _0x5452(_0x4707bb-0x2f6,_0x4ee548);}function buildDescription2(_0x116f24){const _0x5ba7da={_0x5984bc:0x1c1,_0x29d40d:0xaa,_0x21e6c3:0x290,_0x6ea383:0x345,_0x26aa1b:0x28e,_0x59d4c8:0x266,_0x3315d0:0x377,_0x5077e9:0x99,_0x5d7ade:0xe5,_0x3e6b72:0x2a1,_0x332398:0x2b6,_0x5e008a:0x37b,_0x5b53d2:0x9,_0x18e12f:0x150,_0x49b0e2:0x9b,_0x286c41:0x218,_0x162b7b:0x141,_0x396a49:0x37,_0x534cf3:0x4},_0x31da2f={_0x3b716b:0x10e,_0x44958d:0x75},_0x237a1b={_0x55df0a:0xed};function _0x3c4418(_0x14c310,_0x3266b3,_0x496aa2,_0x49bb94){return _0x46bf5b(_0x14c310-0x90,_0x496aa2,_0x496aa2-_0x237a1b._0x55df0a,_0x14c310- -0x25d);}if(_0x116f24[_0x3d340a(-0x1cc,-_0x5ba7da._0x5984bc,-_0x5ba7da._0x29d40d,-0xe3)]===0x0)return _0x3c4418(0x30b,0x256,_0x5ba7da._0x21e6c3,_0x5ba7da._0x6ea383);const _0x5ab3b9=[_0x3c4418(_0x5ba7da._0x26aa1b,_0x5ba7da._0x59d4c8,0x2e9,_0x5ba7da._0x3315d0),_0x3d340a(-_0x5ba7da._0x5077e9,-0x1aa,-0x151,-_0x5ba7da._0x5d7ade),_0x3c4418(_0x5ba7da._0x3e6b72,_0x5ba7da._0x332398,0x32b,_0x5ba7da._0x5e008a),_0x3d340a(-0x127,-_0x5ba7da._0x5b53d2,-_0x5ba7da._0x18e12f,-_0x5ba7da._0x49b0e2),..._0x116f24[_0x3c4418(_0x5ba7da._0x286c41,0x288,_0x5ba7da._0x162b7b,0x149)](_0x10a269=>'-\x20'+_0x10a269['name']+':\x20'+_0x10a269[_0x3c4418(0x205,0x14b,0x20c,0x27d)])];function _0x3d340a(_0x4b535e,_0x2cf588,_0x4d75ae,_0x588a8c){return _0x12584b(_0x588a8c- -0x4c1,_0x2cf588-_0x31da2f._0x3b716b,_0x4d75ae-_0x31da2f._0x44958d,_0x4d75ae);}return _0x5ab3b9[_0x3d340a(0xae,0x3c,_0x5ba7da._0x396a49,-_0x5ba7da._0x534cf3)]('\x0a');}function createLoadSkillTool(_0x52f41c){const _0x55c822={_0x2c6342:0x578,_0x165c66:0x541,_0x171732:0x2c,_0x477cfc:0xc0,_0x5c8757:0x35,_0x4d4e5c:0x78,_0x1a8450:0x469,_0x2fb806:0x3d,_0x501f63:0x77,_0x521485:0x43,_0x4ab127:0x498,_0x5a063a:0x4eb},_0x3154b0={_0x5cb5e6:0x1c0,_0x5aaa5b:0x151,_0x3818a9:0x213,_0x5c2caf:0x205,_0x34476b:0x1be,_0x112a62:0xbd,_0x466b9e:0x157,_0xfd064c:0x2da,_0x3150a3:0x218,_0x17ea1d:0x154,_0x6e9d68:0x208,_0x40876:0x276,_0x3c2c46:0x5e,_0x227d04:0x307,_0x17d78b:0x2ef,_0x306131:0x172,_0x13b4bd:0x35e,_0xfd2d4b:0x27e,_0x2f5e0e:0x10,_0x39077d:0x1a5,_0x3be693:0x1ca,_0x2e461e:0x115,_0x131386:0x1ad,_0x4b9b21:0x101,_0x4c0871:0x1db,_0x28fb87:0x221,_0x546b3f:0x153,_0x6db987:0x120,_0x382ea4:0x1e9,_0x258e1d:0x5f,_0x215ff8:0x3,_0xc545b4:0x12e,_0x40042a:0x9f,_0x1b4f66:0xcd,_0x595cad:0x1a6,_0xf4058a:0x98,_0x4d32dc:0x216},_0x2d5ebf={_0x455c3d:0x16b,_0x18d027:0x180},_0x250f41={_0x24589c:0x5b,_0x3d0515:0x157},_0x313279={_0x1c2744:0x62};function _0x4d6665(_0x11bd2d,_0x446c0b,_0x38d77f,_0x10f8ac){return _0x46bf5b(_0x11bd2d-_0x313279._0x1c2744,_0x38d77f,_0x38d77f-0x6e,_0x446c0b-0x1f);}const _0x2ee12c=new Map(_0x52f41c[_0x4d6665(_0x55c822._0x2c6342,_0x55c822._0x165c66,0x5e6,0x5ee)]['map'](_0x2548b0=>[_0x2548b0[_0x4ec020(-0x17,0x6a,0x149,0x101)],_0x2548b0])),_0x26c813=buildDescription2(_0x52f41c[_0x4ec020(-_0x55c822._0x171732,_0x55c822._0x477cfc,_0x55c822._0x5c8757,_0x55c822._0x4d4e5c)]);function _0x4ec020(_0x3d016b,_0x39ad27,_0x20e7ed,_0x456437){return _0x12584b(_0x39ad27- -0x41f,_0x39ad27-_0x250f41._0x24589c,_0x20e7ed-_0x250f41._0x3d0515,_0x3d016b);}return defineTool({'name':_0x4d6665(0x575,0x54d,0x4fe,_0x55c822._0x1a8450),'description':_0x26c813,'inputSchema':{'type':_0x4ec020(0x4d,-_0x55c822._0x2fb806,-_0x55c822._0x501f63,_0x55c822._0x521485),'properties':{'name':{'type':_0x4d6665(0x3be,_0x55c822._0x4ab127,0x3df,0x513)}},'required':[_0x4d6665(_0x55c822._0x165c66,_0x55c822._0x5a063a,0x4b6,0x541)]},async *'execute'(_0x7f6418){const _0x339538={_0x19c811:0x19b,_0x31c404:0x2d8,_0x4a8b6e:0x46},_0x4e9ba4=_0x2ee12c[_0x3929a4(0x208,0x252,_0x3154b0._0x5cb5e6,0x2b8)](_0x7f6418[_0x3929a4(_0x3154b0._0x5aaa5b,_0x3154b0._0x3818a9,_0x3154b0._0x5c2caf,_0x3154b0._0x34476b)]);if(!_0x4e9ba4){const _0x56de4e=Array['from'](_0x2ee12c[_0x5481c8(-_0x3154b0._0x112a62,-0xfc,-_0x3154b0._0x466b9e,-0x15a)]())[_0x3929a4(_0x3154b0._0xfd064c,0x247,_0x3154b0._0x3150a3,0x298)](',\x20');throw new ToolExecutionError(_0x3929a4(_0x3154b0._0x17ea1d,0x19f,_0x3154b0._0x6e9d68,_0x3154b0._0x40876)+_0x7f6418['name']+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x56de4e,{'name':_0x7f6418['name']});}const _0x180fdb=await _0x52f41c[_0x5481c8(_0x3154b0._0x3c2c46,-0xb3,0xf,-0x1f)](_0x4e9ba4),_0x1acbb5=_0x4e9ba4[_0x3929a4(0x25c,_0x3154b0._0x227d04,_0x3154b0._0x17d78b,0x28c)]['directory']??_0x5ddc93[_0x3929a4(0x19b,_0x3154b0._0x306131,0x1fc,0x22b)](_0x4e9ba4[_0x3929a4(_0x3154b0._0x13b4bd,0x307,0x379,_0x3154b0._0xfd2d4b)][_0x5481c8(0x21,0x3e,-_0x3154b0._0x2f5e0e,-0x1c)]),_0x41407e=[_0x3929a4(_0x3154b0._0x39077d,_0x3154b0._0x3be693,0x248,0x168)+_0x180fdb[_0x5481c8(-0xfb,-_0x3154b0._0x2e461e,-_0x3154b0._0x131386,-_0x3154b0._0x4b9b21)],'',_0x180fdb[_0x3929a4(0x2f4,0x24e,_0x3154b0._0x4c0871,0x286)],'',_0x3929a4(_0x3154b0._0x28fb87,_0x3154b0._0x546b3f,0x223,_0x3154b0._0x6db987),_0x3929a4(0x320,0x246,0x211,_0x3154b0._0x382ea4)+_0x4e9ba4['source'][_0x5481c8(-_0x3154b0._0x258e1d,0xbb,_0x3154b0._0x215ff8,-0x1c)],'Base\x20directory:\x20'+_0x1acbb5][_0x5481c8(0x20,-_0x3154b0._0xc545b4,-_0x3154b0._0x40042a,-_0x3154b0._0x1b4f66)]('\x0a');function _0x5481c8(_0x421d0b,_0xc1e087,_0x39afc,_0x83d895){return _0x4ec020(_0x421d0b,_0x83d895- -_0x2d5ebf._0x455c3d,_0x39afc-_0x2d5ebf._0x18d027,_0x83d895-0x1e2);}yield createToolOutput(_0x41407e,{'id':_0x180fdb['id'],'name':_0x180fdb[_0x5481c8(-0xfb,-_0x3154b0._0x595cad,-_0x3154b0._0xf4058a,-0x101)],'path':_0x4e9ba4['source'][_0x3929a4(_0x3154b0._0x4d32dc,0x2f8,0x2ba,0x3ad)],'baseDirectory':_0x1acbb5});function _0x3929a4(_0x5dc7f7,_0x121f5d,_0x250e93,_0x9a0b9c){return _0x4d6665(_0x5dc7f7-_0x339538._0x19c811,_0x121f5d- -_0x339538._0x31c404,_0x5dc7f7,_0x9a0b9c-_0x339538._0x4a8b6e);}return void 0x0;}});}import{readFile as _0x58d080,stat as _0x553619}from'fs/promises';import*as _0x21138c from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x46bf5b(0x443,0x532,0x57d,0x4fb),_0x46bf5b(0x547,0x568,0x570,0x50c),'low',_0x12584b(0x48e,0x435,0x419,0x4ab)]),PNG_SIGNATURE=Buffer[_0x12584b(0x4ad,0x4d2,0x555,0x497)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x324956,_0x3e9ef9){const _0x105005={_0x36f218:0x2e,_0x212262:0x554,_0x27bec6:0x3db,_0x1ea0a0:0x4a2,_0x380b67:0x58f,_0x474aa6:0x94,_0x7edcec:0x6eb,_0x14f230:0x6c9,_0x1f542a:0x618,_0x6cedaf:0x61,_0x1a304c:0x5f,_0x26f587:0x53,_0x2c5c56:0x6e8,_0x1b9eef:0x664,_0x10aa9e:0x3f,_0x5361d8:0x75,_0x138b79:0x87,_0x412f8d:0x3e5,_0x1680c6:0x50,_0x4f7ca5:0x11f,_0x489a9a:0x5f0,_0x4635e3:0x5ac,_0x459aaf:0x5d9,_0x5b81a5:0x14d,_0x545830:0x147,_0x98c52f:0x5cc,_0x1f18fb:0xf6,_0x31537d:0xcf,_0x4bc867:0x122,_0x5784db:0x29,_0xc6e71d:0x1c,_0x4c585d:0x6b4,_0x5342ab:0x60d,_0x1b1fba:0x68a,_0x5fcd43:0x58d},_0x1e0d0f={_0x3f4775:0x514,_0x2e7c03:0x148},_0x3107be={_0x52eab0:0xea};function _0x2836d2(_0x2b1195,_0x3b8672,_0x34928e,_0x4491bc){return _0x12584b(_0x34928e-_0x3107be._0x52eab0,_0x3b8672-0x1c2,_0x34928e-0xc6,_0x3b8672);}if(_0x324956[_0x1fe9a8(0x1a,-_0x105005._0x36f218,0x64,-0xa6)](0x0,0x8)[_0x2836d2(0x4ca,0x5bf,0x58d,_0x105005._0x212262)](PNG_SIGNATURE))return _0x2836d2(_0x105005._0x27bec6,0x409,_0x105005._0x1ea0a0,_0x105005._0x380b67);if(_0x324956[0x0]===0xff&&_0x324956[0x1]===0xd8&&_0x324956[0x2]===0xff)return _0x1fe9a8(-0x12a,-0x18a,-0x188,-_0x105005._0x474aa6);const _0x1948dc=_0x324956[_0x2836d2(_0x105005._0x7edcec,_0x105005._0x14f230,_0x105005._0x1f542a,0x6f4)](0x0,0x6)[_0x1fe9a8(-0xd9,-0x5a,-_0x105005._0x6cedaf,-0x67)](_0x2836d2(0x4e3,0x51a,0x59f,0x683));if(_0x1948dc==='GIF87a'||_0x1948dc===_0x1fe9a8(-0xf3,-_0x105005._0x1a304c,-_0x105005._0x26f587,-0x76))return'image/gif';if(_0x324956[_0x2836d2(_0x105005._0x2c5c56,0x594,0x618,_0x105005._0x1b9eef)](0x0,0x4)['toString'](_0x1fe9a8(-0x5f,_0x105005._0x10aa9e,_0x105005._0x5361d8,_0x105005._0x138b79))===_0x2836d2(0x40a,_0x105005._0x412f8d,0x4c2,0x4c0)&&_0x324956[_0x1fe9a8(0x1a,-_0x105005._0x1680c6,0x102,-0x18)](0x8,0xc)['toString']('ascii')===_0x1fe9a8(-_0x105005._0x4f7ca5,-0x44,-0xf4,-0x195))return _0x2836d2(0x681,0x64e,_0x105005._0x489a9a,_0x105005._0x4635e3);const _0x365fc6=_0x21138c[_0x2836d2(0x69c,0x5f3,_0x105005._0x459aaf,0x617)](_0x3e9ef9)[_0x1fe9a8(-_0x105005._0x5b81a5,-_0x105005._0x545830,-0x178,-0xe8)]();if(_0x365fc6===_0x2836d2(_0x105005._0x98c52f,0x619,0x53e,0x616))return _0x1fe9a8(-0x15c,-_0x105005._0x1f18fb,-_0x105005._0x31537d,-_0x105005._0x4bc867);if(_0x365fc6===_0x1fe9a8(-0x8e,-0x54,-_0x105005._0x5784db,-_0x105005._0xc6e71d)||_0x365fc6===_0x2836d2(0x5a2,_0x105005._0x4c585d,_0x105005._0x5342ab,_0x105005._0x1b1fba))return'image/jpeg';function _0x1fe9a8(_0x33ea03,_0x58dab3,_0x30068b,_0x32cc6a){return _0x12584b(_0x33ea03- -_0x1e0d0f._0x3f4775,_0x58dab3-_0x1e0d0f._0x2e7c03,_0x30068b-0x4b,_0x32cc6a);}if(_0x365fc6==='.gif')return'image/gif';if(_0x365fc6==='.webp')return _0x2836d2(0x5e8,0x609,_0x105005._0x489a9a,_0x105005._0x5fcd43);return void 0x0;}function normalizeDetail(_0x2dea33){const _0x4ddb8f={_0x2ef446:0xc8,_0x31d2e8:0x14d,_0x188f1b:0x18a,_0x233970:0x11e,_0x51aee9:0x2d,_0x5f4179:0xf7,_0x443b85:0x65,_0x195083:0x111},_0x9dec19={_0x4abe0a:0x1dd},_0x1a6fd5={_0x5c5e05:0xb8};if(_0x2dea33===void 0x0)return void 0x0;const _0xd508e1=_0x2dea33[_0x1057b3(0x109,_0x4ddb8f._0x2ef446,0x81,_0x4ddb8f._0x31d2e8)]()[_0x393e51(_0x4ddb8f._0x188f1b,0xc1,0x71,_0x4ddb8f._0x233970)]();function _0x1057b3(_0x48b5b4,_0x361edb,_0x5d120b,_0x1462ef){return _0x46bf5b(_0x48b5b4-_0x1a6fd5._0x5c5e05,_0x1462ef,_0x5d120b-0x2f,_0x361edb- -0x508);}if(!SUPPORTED_DETAILS[_0x393e51(_0x4ddb8f._0x51aee9,_0x4ddb8f._0x5f4179,0x15e,_0x4ddb8f._0x443b85)](_0xd508e1))throw new ToolExecutionError(_0x393e51(0x197,_0x4ddb8f._0x195083,0x191,0x12d)+_0x2dea33,{'detail':_0x2dea33});function _0x393e51(_0x3058f4,_0x355425,_0x28bb24,_0x2dd448){return _0x12584b(_0x355425- -0x306,_0x355425-_0x9dec19._0x4abe0a,_0x28bb24-0xe2,_0x2dd448);}return _0xd508e1;}function createViewFileTool(_0x296f0f={}){const _0x3b1009={_0x541196:0x455,_0x13257b:0x14c,_0x425ec0:0x5a7,_0x5a99c1:0x478,_0x13bfb0:0x49e,_0x10818e:0x452,_0x2e2354:0x396,_0x3920e8:0x3e4,_0x5e8f94:0x549,_0x331694:0x4b1,_0x2e1281:0x46f,_0x34f7a9:0x53a,_0x23ab10:0x5d7,_0x8f6146:0x542,_0x2e9161:0x1ab,_0x16c6d2:0x169,_0x2ee836:0x23b,_0x25a48a:0x1db,_0x423168:0x238,_0x36ade9:0x2c5,_0x50a4df:0x500,_0x38982d:0x45e,_0x562555:0x1f0,_0x1d4cee:0x271,_0x14c561:0x203},_0x4933a8={_0x52bfc4:0x4c,_0x48fd8c:0x102,_0x4d37da:0xd8,_0x4f8c4e:0x12d,_0x26787c:0x396,_0x9ac8d1:0x424,_0x776b95:0x38f,_0x5338ac:0x4d6,_0x5125ba:0x458,_0x3bdeda:0x76,_0x60b45f:0x14,_0x42d6dc:0x47a,_0x7f070c:0x427,_0x4f9031:0x50a,_0x2446d9:0x20,_0x641856:0x17,_0x9a39b1:0x4,_0x427897:0x370,_0xa8eff1:0x3f2,_0x819af5:0x2a2,_0xcfab7f:0x33e,_0x463e88:0x16f,_0xeb3e22:0x240,_0x29f474:0x2a,_0x5e788d:0x37,_0x45df51:0xed,_0x20ba21:0x47f,_0x36a0c6:0x37f,_0x43331f:0x458,_0xe1ec72:0x379,_0x3272c1:0x306,_0x5f4f87:0xb0,_0x1b7afe:0x384,_0x3408e4:0x3ba,_0x46c69e:0x3fd,_0x362149:0x3e1,_0x550029:0x249,_0x2e010f:0x32c,_0xf9e1cd:0x371,_0x566dad:0x438,_0x227c7f:0x4eb,_0x403802:0x495,_0x2b8536:0x302,_0x2bd080:0x379,_0x891b2d:0x3cc,_0x3b3f7e:0x314,_0x35a92f:0x29b,_0x15a75e:0x30c,_0x4d9052:0x359,_0x6142fd:0x325,_0x1f3616:0x398,_0x11171b:0x2c5,_0x14075e:0x238,_0x42f933:0x2dc,_0x500d06:0x38e,_0x14c938:0x458,_0x45b6f9:0x3ba,_0x403759:0x72,_0x151430:0xbc,_0xef9eab:0x15f,_0x5eea7b:0x239,_0x577f0f:0x435,_0x4c2480:0x95,_0x26dcb1:0x66},_0x216070={_0x2a9cb7:0x157,_0x43c563:0x164},_0xeacb13={_0x5869a3:0x8b,_0x57011b:0x180,_0x19eb63:0x1b},_0x54f702=_0x21138c[_0x46312e(0x406,0x4ea,_0x3b1009._0x541196,0x4cf)](_0x296f0f[_0x1f80d5(-_0x3b1009._0x13257b,-0x16d,-0x242,-0x191)]??process[_0x46312e(_0x3b1009._0x425ec0,_0x3b1009._0x5a99c1,_0x3b1009._0x13bfb0,0x4ce)]()),_0x1f2fa8=(_0x296f0f[_0x1f80d5(-0x30c,-0x255,-0x211,-0x2c0)]??[])['map'](_0x3bd5b7=>_0x21138c[_0x46312e(0x581,0x50d,0x4ba,0x4cf)](_0x3bd5b7)),_0x3dfed3=_0x296f0f[_0x46312e(_0x3b1009._0x10818e,_0x3b1009._0x2e2354,0x426,_0x3b1009._0x3920e8)]??DEFAULT_MAX_BYTES;function _0x1f80d5(_0x39ca8b,_0x50432e,_0x2abc2d,_0xeee53a){return _0x46bf5b(_0x39ca8b-0xe9,_0x2abc2d,_0x2abc2d-0xb2,_0xeee53a- -0x6ea);}function _0x46312e(_0x3bdb5d,_0x2b33de,_0x3de47e,_0xeb937f){return _0x46bf5b(_0x3bdb5d-_0xeacb13._0x5869a3,_0x3bdb5d,_0x3de47e-_0xeacb13._0x57011b,_0xeb937f- -_0xeacb13._0x19eb63);}const _0x7f528e=_0x296f0f[_0x46312e(0x474,0x418,_0x3b1009._0x5e8f94,_0x3b1009._0x331694)]??_0x46312e(_0x3b1009._0x2e1281,_0x3b1009._0x34f7a9,_0x3b1009._0x23ab10,_0x3b1009._0x8f6146);return defineTool({'name':_0x7f528e,'description':_0x1f80d5(-_0x3b1009._0x2e9161,-_0x3b1009._0x16c6d2,-0x302,-0x24c),'inputSchema':{'type':_0x1f80d5(-_0x3b1009._0x2ee836,-_0x3b1009._0x25a48a,-_0x3b1009._0x423168,-_0x3b1009._0x36ade9),'properties':{'path':{'type':_0x46312e(0x545,0x4ea,_0x3b1009._0x50a4df,_0x3b1009._0x38982d)},'detail':{'type':_0x1f80d5(-_0x3b1009._0x562555,-0x1be,-0x250,-_0x3b1009._0x1d4cee)}},'required':[_0x1f80d5(-0x63,-0x52,-_0x3b1009._0x14c561,-0x139)]},async *'execute'(_0x612a30){const _0x154bd6={_0x35b31a:0x591},_0x1f1bbc=resolveAllowedPath(_0x54f702,_0x1f2fa8,_0x612a30['path']);await assertWorkspaceFile(_0x1f1bbc);const _0x33695e=await _0x553619(_0x1f1bbc);if(_0x33695e[_0x553071(-_0x4933a8._0x52bfc4,-_0x4933a8._0x48fd8c,-_0x4933a8._0x4d37da,-_0x4933a8._0x4f8c4e)]>_0x3dfed3)throw new ToolExecutionError(_0x3adec0(0x4b9,_0x4933a8._0x26787c,0x4e1,_0x4933a8._0x9ac8d1)+_0x612a30[_0x3adec0(_0x4933a8._0x776b95,0x454,0x45d,0x458)],{'path':_0x612a30[_0x3adec0(0x3ab,0x36c,_0x4933a8._0x5338ac,_0x4933a8._0x5125ba)],'maxBytes':_0x3dfed3,'size':_0x33695e['size']});const _0x7dc22=await _0x58d080(_0x1f1bbc),_0xbc5c81=detectImageMediaType(_0x7dc22,_0x1f1bbc);function _0x553071(_0x58488c,_0x56c9ed,_0x3dd429,_0x231934){return _0x1f80d5(_0x58488c-0x1,_0x56c9ed-_0x216070._0x2a9cb7,_0x56c9ed,_0x58488c-_0x216070._0x43c563);}function _0x3adec0(_0x41a52c,_0x46c6d6,_0x49d94a,_0x18e59a){return _0x1f80d5(_0x41a52c-0x1a6,_0x46c6d6-0x23,_0x46c6d6,_0x18e59a-_0x154bd6._0x35b31a);}if(!_0xbc5c81)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x612a30[_0x553071(0x2b,-_0x4933a8._0x3bdeda,_0x4933a8._0x60b45f,0x73)],{'path':_0x612a30['path'],'supported':[_0x3adec0(_0x4933a8._0x42d6dc,_0x4933a8._0x7f070c,_0x4933a8._0x4f9031,0x46c),_0x553071(-_0x4933a8._0x2446d9,-0xcb,_0x4933a8._0x641856,-_0x4933a8._0x9a39b1),_0x3adec0(0x323,0x44f,0x313,_0x4933a8._0x427897),_0x3adec0(_0x4933a8._0xa8eff1,0x291,_0x4933a8._0x819af5,_0x4933a8._0xcfab7f),_0x553071(-_0x4933a8._0x463e88,-0x10f,-0x1fe,-_0x4933a8._0xeb3e22)]});const _0x3e9a12=normalizeDetail(_0x612a30[_0x553071(_0x4933a8._0x29f474,0xd6,_0x4933a8._0x5e788d,-0x57)]),_0x51222e=[_0x553071(0xf,_0x4933a8._0x45df51,0xa3,0xf6)+_0x612a30[_0x3adec0(0x39a,_0x4933a8._0x20ba21,_0x4933a8._0x36a0c6,_0x4933a8._0x43331f)],_0x3adec0(0x2eb,_0x4933a8._0xe1ec72,_0x4933a8._0x3272c1,0x329)+_0xbc5c81,_0x553071(0x5,0xe2,-0x77,-_0x4933a8._0x5f4f87)+_0x33695e[_0x3adec0(_0x4933a8._0x1b7afe,_0x4933a8._0x3408e4,_0x4933a8._0x46c69e,_0x4933a8._0x362149)]+_0x3adec0(0x382,0x355,_0x4933a8._0x550029,_0x4933a8._0x2e010f)][_0x3adec0(0x2de,_0x4933a8._0xf9e1cd,0x373,0x37b)](_0x3e9a12?[_0x3adec0(_0x4933a8._0x566dad,_0x4933a8._0x227c7f,_0x4933a8._0x403802,0x470)+_0x3e9a12]:[])[_0x3adec0(_0x4933a8._0x2b8536,_0x4933a8._0x2bd080,_0x4933a8._0x891b2d,0x3a7)]('\x0a'),_0x136334=[{'type':_0x3adec0(0x288,_0x4933a8._0x3b3f7e,_0x4933a8._0x35a92f,_0x4933a8._0x15a75e),'source':{'type':'base64','media_type':_0xbc5c81,'data':_0x7dc22[_0x3adec0(0x24b,0x2a2,_0x4933a8._0x4d9052,_0x4933a8._0x6142fd)](_0x3adec0(0x2c5,0x3df,0x392,_0x4933a8._0x1f3616))}},{'type':_0x3adec0(_0x4933a8._0x11171b,_0x4933a8._0x14075e,0x290,_0x4933a8._0x42f933),'text':_0x51222e}];return yield createToolOutput(_0x51222e,{'path':_0x612a30[_0x3adec0(0x4dd,0x428,_0x4933a8._0x500d06,_0x4933a8._0x14c938)],'resolvedPath':_0x1f1bbc,'created':_0x33695e['birthtime'][_0x3adec0(0x2d4,0x320,_0x4933a8._0x45b6f9,0x314)](),'modified':_0x33695e[_0x553071(-_0x4933a8._0x403759,-_0x4933a8._0x151430,-0x11e,-_0x4933a8._0xef9eab)][_0x3adec0(_0x4933a8._0x5eea7b,0x3ea,0x391,_0x4933a8._0x3b3f7e)](),'size':_0x33695e[_0x3adec0(_0x4933a8._0x577f0f,0x45d,0x305,0x3e1)],'mimeType':_0xbc5c81,'encoding':_0x553071(-_0x4933a8._0x4c2480,0x4b,0x56,-_0x4933a8._0x26dcb1),..._0x3e9a12?{'detail':_0x3e9a12}:{}},_0x136334),void 0x0;}});}import _0x1d21eb from'turndown';var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x10cae3){const _0x244fda={_0x426d1e:0x5f1,_0x44bb29:0x56f,_0x35e5bf:0xfb,_0x3f8988:0x11e,_0x225948:0x1ae,_0x4e96f7:0x5ea,_0x30b976:0x36e},_0x592d49={_0x1d5279:0x91,_0x2b5321:0x6ed},_0xb06f99={_0x5b590e:0x68};let _0x41e9ff;function _0x347210(_0x530463,_0x41da0d,_0x3d1600,_0x2b1f03){return _0x12584b(_0x2b1f03- -_0xb06f99._0x5b590e,_0x41da0d-0x178,_0x3d1600-0x1e3,_0x41da0d);}try{_0x41e9ff=new URL(_0x10cae3);}catch{throw new ToolExecutionError(_0x347210(_0x244fda._0x426d1e,_0x244fda._0x44bb29,0x526,0x50e),{'url':_0x10cae3});}if(_0x41e9ff[_0x593209(-0x29b,-0x1db,-0x291,-0x26c)]!==_0x347210(0x46b,0x429,0x446,0x45a)&&_0x41e9ff['protocol']!==_0x593209(-_0x244fda._0x35e5bf,-_0x244fda._0x3f8988,-_0x244fda._0x225948,-0x1e9))throw new ToolExecutionError(_0x347210(0x506,0x43e,_0x244fda._0x4e96f7,0x50c),{'url':_0x10cae3});if(_0x41e9ff[_0x593209(-0x21f,-0x1e9,-0x138,-0x188)]||_0x41e9ff['password'])throw new ToolExecutionError(_0x347210(_0x244fda._0x30b976,0x3f3,0x34e,0x431),{'url':_0x41e9ff['protocol']+'//'+_0x41e9ff[_0x347210(0x2b4,0x449,0x2f9,0x394)]+_0x41e9ff['pathname']});function _0x593209(_0x475c75,_0x36b3b4,_0x116294,_0x470e30){return _0x46bf5b(_0x475c75-0x150,_0x116294,_0x116294-_0x592d49._0x1d5279,_0x36b3b4- -_0x592d49._0x2b5321);}return _0x41e9ff;}function parseContentLength(_0x3215f1){const _0xa970bd={_0x2a455b:0x20,_0x2d44fb:0x77},_0x443f54={_0x9cbe64:0x431,_0x332f2c:0x64};if(!_0x3215f1)return void 0x0;function _0x505a36(_0x1fda24,_0x5485e8,_0x2236b3,_0xc5fda8){return _0x12584b(_0x1fda24- -_0x443f54._0x9cbe64,_0x5485e8-0x1a5,_0x2236b3-_0x443f54._0x332f2c,_0x5485e8);}const _0x515d7b=Number(_0x3215f1);return Number[_0x505a36(_0xa970bd._0x2a455b,-0xa4,0x8e,_0xa970bd._0x2d44fb)](_0x515d7b)&&_0x515d7b>=0x0?_0x515d7b:void 0x0;}function createTimeoutSignal(_0x195d82,_0x1363bc){const _0x27e09c={_0x25e881:0x391,_0x3d6f4c:0x35b,_0x4f19fc:0x343,_0x88158a:0x58e,_0x2cf380:0x4e5,_0x5e16f7:0x32e,_0x113743:0x31d,_0x1a7b59:0x5af,_0x210e4b:0x3bd},_0x3cad85={_0x1c1037:0x110,_0x5bc4dc:0x1c9},_0x5ec5bb={_0x28bd89:0x181,_0x4cc925:0x5a},_0x8052b3={_0x50f217:0x1a9,_0x5be5b0:0x13b},_0x4b2e6d=new AbortController();function _0x3034b8(_0x3cffa0,_0x361195,_0x2e6855,_0x12990e){return _0x46bf5b(_0x3cffa0-_0x8052b3._0x50f217,_0x12990e,_0x2e6855-_0x8052b3._0x5be5b0,_0x361195- -0x216);}const _0x31576f=setTimeout(()=>_0x4b2e6d['abort'](new Error(_0x5ec152(0x521,0x533,0x460,0x517))),_0x1363bc);function _0x5ec152(_0x5c89cb,_0x397735,_0x4cd46d,_0x2bcd7d){return _0x46bf5b(_0x5c89cb-0x177,_0x4cd46d,_0x4cd46d-_0x5ec5bb._0x28bd89,_0x2bcd7d-_0x5ec5bb._0x4cc925);}const _0x34d19c=()=>_0x4b2e6d['abort'](_0x195d82['reason']);return _0x195d82[_0x3034b8(_0x27e09c._0x25e881,0x393,_0x27e09c._0x3d6f4c,_0x27e09c._0x4f19fc)]?_0x4b2e6d[_0x5ec152(_0x27e09c._0x88158a,_0x27e09c._0x2cf380,0x614,0x5af)](_0x195d82['reason']):_0x195d82[_0x3034b8(0x367,_0x27e09c._0x5e16f7,_0x27e09c._0x113743,0x30f)](_0x5ec152(0x674,0x4f9,0x5ab,_0x27e09c._0x1a7b59),_0x34d19c,{'once':!![]}),{'signal':_0x4b2e6d[_0x5ec152(0x56e,_0x27e09c._0x210e4b,0x473,0x4a3)],'cleanup':()=>{const _0x46c26f={_0x5246f7:0x71};function _0x30c3aa(_0x43feca,_0x1cc9f6,_0x23f000,_0x455dec){return _0x3034b8(_0x43feca-_0x46c26f._0x5246f7,_0x1cc9f6- -0x44f,_0x23f000-0xa1,_0x455dec);}clearTimeout(_0x31576f),_0x195d82['removeEventListener'](_0x30c3aa(-0x6c,-_0x3cad85._0x1c1037,-_0x3cad85._0x5bc4dc,-0x107),_0x34d19c);}};}function createWebFetchTool(_0xbc9ac0={}){const _0x4b1901={_0x5158e7:0x3b4,_0x32ca3a:0x1e9,_0x1cffd8:0x2af,_0x59631b:0x35d,_0x298394:0x504,_0x4d683f:0x175,_0x1f0493:0x19c,_0x5dcef1:0x188,_0x4f917b:0x19e,_0x3e26e7:0x285,_0x43e585:0x376,_0x59fd05:0x35a,_0xdf18e8:0x39f,_0x4a44ec:0x28d,_0x29e595:0x179,_0xbee356:0x14e,_0x4f6234:0x50a,_0x845a76:0xd4,_0x11d138:0x167,_0x4ab7bc:0x226,_0x2b5efe:0x18b,_0x37b1dd:0x521,_0x14832f:0x4d5,_0x59fc47:0x579,_0x2f4793:0x342,_0x594f4a:0x3c0,_0x4f3bcb:0x2dd,_0x2a76b7:0x35f,_0x1857a6:0x37d,_0x30c6b7:0x392,_0x52d0ae:0x3db,_0x380bcc:0x2aa,_0x1f238f:0x41d,_0x2974b3:0x3fd},_0x3ad794={_0x41a1b2:0x1fe,_0x463d1a:0xb3,_0x457095:0x15f,_0x593cfe:0x176,_0x5580a8:0x4c,_0x139c22:0x200,_0x28ed05:0x92,_0x1d0e30:0xf2,_0x335699:0x19d,_0x3db9a5:0x14d,_0x1e6d7c:0xe3,_0x16cd15:0xec,_0xc1fe06:0x9,_0x692473:0x7a,_0x1e6899:0x143,_0x45a24b:0x1af,_0x2cde49:0xa7,_0x4a2199:0x9a,_0x52ca51:0x72,_0x66c5d0:0xa1,_0x5f1be3:0xe1,_0x9fe8e:0x12c,_0x4fb7fe:0x271,_0x22fae3:0x228,_0x4b1c28:0x14b,_0x92dadf:0x205,_0x3c4a57:0xf5,_0x30f202:0x23,_0x532453:0xbb,_0x19f6e2:0x48,_0x58ddb6:0x3a,_0x39e459:0x340,_0x2dfd4d:0x363,_0x2e086d:0x31,_0x5e94b2:0x8f,_0x5df0dc:0x53,_0x103611:0x196,_0x2d01c6:0x8f,_0x15d2ed:0xa2,_0x512c8b:0x4,_0x3e7cad:0x21,_0x293ea9:0x235,_0x4092d4:0x10e,_0x22c10e:0x40,_0x591365:0x1ef,_0x2a12d8:0x131,_0x1ef263:0xc2,_0x51b20e:0x1db,_0x3c76d6:0x91,_0xac11e6:0x5e,_0x24e04e:0x3c,_0x647855:0xc4,_0x4af74c:0xa8,_0x33a3e3:0x158,_0x398bcb:0x122,_0x39cd5f:0x2b6,_0x528b9f:0x113,_0x3e5e53:0x15a,_0x58eafc:0x198},_0x16d6c7={_0x204dfd:0x12b,_0x1d446c:0x44},_0x168838={_0x462839:0xc0,_0x3e4774:0x6ae},_0x22e234=_0xbc9ac0[_0x4cb797(0x3dd,0x3e5,0x3cf,0x4cb)]??_0x4cb797(0x2af,0x361,_0x4b1901._0x5158e7,0x369),_0x1e00e3=_0xbc9ac0[_0x2335a2(-0x346,-_0x4b1901._0x32ca3a,-_0x4b1901._0x1cffd8,-_0x4b1901._0x59631b)]??DEFAULT_MAX_BYTES2;function _0x2335a2(_0x59bfda,_0x55469e,_0x266e91,_0x48c2c7){return _0x46bf5b(_0x59bfda-_0x168838._0x462839,_0x59bfda,_0x266e91-0xb2,_0x266e91- -_0x168838._0x3e4774);}const _0x18647a=_0xbc9ac0['timeoutMs']??DEFAULT_TIMEOUT_MS2,_0x4346d1=new _0x1d21eb({'headingStyle':_0x4cb797(0x46d,0x46b,0x507,_0x4b1901._0x298394),'codeBlockStyle':_0x2335a2(-_0x4b1901._0x4d683f,-_0x4b1901._0x1f0493,-_0x4b1901._0x5dcef1,-0xc0),'bulletListMarker':'-'});_0x4346d1[_0x2335a2(-0x259,-0x1f3,-_0x4b1901._0x4f917b,-_0x4b1901._0x3e26e7)]([_0x4cb797(_0x4b1901._0x43e585,_0x4b1901._0x59fd05,_0x4b1901._0xdf18e8,_0x4b1901._0x4a44ec),_0x2335a2(-_0x4b1901._0x29e595,-_0x4b1901._0xbee356,-0x228,-0x2bf),_0x4cb797(0x447,0x4d4,0x412,_0x4b1901._0x4f6234),_0x2335a2(-0x281,-_0x4b1901._0x845a76,-0x1b7,-0xd7),'nav',_0x2335a2(-0x2c7,-_0x4b1901._0x11d138,-_0x4b1901._0x4ab7bc,-_0x4b1901._0x2b5efe),_0x4cb797(_0x4b1901._0x37b1dd,_0x4b1901._0x14832f,_0x4b1901._0x59fc47,0x422),'aside']);function _0x4cb797(_0x87db57,_0x5b49b3,_0x29198d,_0x4a2a0a){return _0x46bf5b(_0x87db57-_0x16d6c7._0x204dfd,_0x87db57,_0x29198d-_0x16d6c7._0x1d446c,_0x5b49b3- -0xe7);}return defineTool({'name':_0x22e234,'description':_0x4cb797(0x320,_0x4b1901._0x2f4793,_0x4b1901._0x594f4a,0x328),'inputSchema':{'type':_0x2335a2(-0x21d,-_0x4b1901._0x4f3bcb,-0x289,-_0x4b1901._0x2a76b7),'properties':{'description':{'type':_0x4cb797(_0x4b1901._0x1857a6,_0x4b1901._0x30c6b7,_0x4b1901._0x52d0ae,_0x4b1901._0x380bcc)},'url':{'type':_0x4cb797(_0x4b1901._0x1f238f,0x392,_0x4b1901._0x2974b3,0x2ee)}},'required':[_0x4cb797(0x2ee,0x335,0x24c,0x3f0)]},async *'execute'(_0x9e48bb,_0x31d19c){const _0x25c61d={_0x5e77fd:0xb5,_0x16378c:0x1a7},_0x15919f=assertFetchableUrl(_0x9e48bb[_0x1f02aa(-_0x3ad794._0x41a1b2,-_0x3ad794._0x463d1a,-_0x3ad794._0x457095,-_0x3ad794._0x593cfe)])['toString']();if(_0x31d19c[_0x1f02aa(-_0x3ad794._0x5580a8,-_0x3ad794._0x139c22,-0x132,-0xfa)][_0x1f02aa(-0x5f,-0x32,0x2e,_0x3ad794._0x28ed05)])throw new ToolExecutionError(_0x1f02aa(-0xa9,-0x11c,-0xae,-0x44),{'url':_0x15919f});const _0xd96758=createTimeoutSignal(_0x31d19c[_0x1f02aa(-0x105,-0xdf,-0x132,-_0x3ad794._0x1d0e30)],_0x18647a);let _0x378084='',_0x4dea9f=0x0,_0x29b0f3;try{const _0xe1c02b=await fetch(_0x15919f,{'headers':{'User-Agent':USER_AGENT},'signal':_0xd96758['signal']});if(!_0xe1c02b['ok'])throw new ToolExecutionError(_0x1f02aa(-_0x3ad794._0x335699,-0x139,-_0x3ad794._0x3db9a5,-_0x3ad794._0x1e6d7c)+_0xe1c02b['status']+'\x20'+_0xe1c02b[_0x1f02aa(-0x13,-_0x3ad794._0x16cd15,-0xfc,-0x19f)],{'url':_0x15919f,'statusCode':_0xe1c02b[_0x1f02aa(_0x3ad794._0xc1fe06,0x9b,-0x4a,-_0x3ad794._0x692473)]});const _0x3436e9=parseContentLength(_0xe1c02b[_0x17aa84(-_0x3ad794._0x1e6899,-0x228,-0x249,-0x21c)][_0x17aa84(-0x1d0,-_0x3ad794._0x45a24b,-0xe4,-0x117)](_0x1f02aa(-_0x3ad794._0x2cde49,_0x3ad794._0x4a2199,0x3,_0x3ad794._0x52ca51)));if(_0x3436e9!==void 0x0&&_0x3436e9>_0x1e00e3)throw new ToolExecutionError('Response\x20too\x20large:\x20'+_0x3436e9+_0x1f02aa(_0x3ad794._0x66c5d0,_0x3ad794._0x5f1be3,0x4c,_0x3ad794._0x9fe8e)+_0x1e00e3+'\x20bytes',{'url':_0x15919f,'statusCode':_0xe1c02b['status'],'contentLength':_0x3436e9,'maxBytes':_0x1e00e3});_0x378084=_0xe1c02b[_0x17aa84(-_0x3ad794._0x4fb7fe,-_0x3ad794._0x22fae3,-0x30e,-0x1cd)][_0x17aa84(-0xf7,-_0x3ad794._0x45a24b,-_0x3ad794._0x4b1c28,-_0x3ad794._0x92dadf)](_0x1f02aa(_0x3ad794._0x3c4a57,0x6e,_0x3ad794._0x30f202,_0x3ad794._0x532453))??'',_0x4dea9f=_0xe1c02b[_0x1f02aa(-0x126,_0x3ad794._0x19f6e2,-0x4a,_0x3ad794._0x58ddb6)],_0x29b0f3=await _0xe1c02b[_0x17aa84(-_0x3ad794._0x39e459,-0x285,-0x1d0,-0x1ee)]();}catch(_0x5439a3){if(_0x5439a3 instanceof ToolExecutionError)throw _0x5439a3;const _0x200eef=_0x5439a3 instanceof Error?_0x5439a3[_0x17aa84(-_0x3ad794._0x2dfd4d,-0x29c,-0x270,-0x239)]:String(_0x5439a3);throw new ToolExecutionError(_0x200eef,{'url':_0x15919f});}finally{_0xd96758[_0x1f02aa(_0x3ad794._0x2e086d,_0x3ad794._0x5e94b2,_0x3ad794._0x5df0dc,0x1f)]();}if(Buffer[_0x17aa84(-0x1c7,-0x20d,-0x1f8,-_0x3ad794._0x103611)](_0x29b0f3,_0x1f02aa(-_0x3ad794._0x2d01c6,_0x3ad794._0x15d2ed,-_0x3ad794._0x512c8b,_0x3ad794._0x3e7cad))>_0x1e00e3)throw new ToolExecutionError('Response\x20too\x20large:\x20exceeds\x20'+_0x1e00e3+_0x17aa84(-0x171,-_0x3ad794._0x293ea9,-0x1f1,-0x19f),{'url':_0x15919f,'statusCode':_0x4dea9f,'maxBytes':_0x1e00e3});const _0x1f5c99=new Date()[_0x1f02aa(-0x1f7,-0x13b,-_0x3ad794._0x4092d4,-_0x3ad794._0x22c10e)]();let _0x1399b6,_0x50b35f;function _0x1f02aa(_0x5f3652,_0x9fed49,_0x1b099d,_0x2f5c9f){return _0x2335a2(_0x5f3652,_0x9fed49-_0x25c61d._0x5e77fd,_0x1b099d-0x133,_0x2f5c9f-_0x25c61d._0x16378c);}if(_0x378084[_0x17aa84(-0x1f8,-0x1e7,-0x19c,-0x1b2)](_0x17aa84(-_0x3ad794._0x591365,-_0x3ad794._0x2a12d8,-0x19b,-0x158)))_0x1399b6=_0x17aa84(-_0x3ad794._0x1ef263,-0x1a3,-0x103,-_0x3ad794._0x51b20e)+_0x29b0f3+'\x0a```',_0x50b35f=_0x1f02aa(-_0x3ad794._0x3c76d6,-0x3b,-_0x3ad794._0xac11e6,-0x12a);else _0x378084[_0x1f02aa(_0x3ad794._0x24e04e,-_0x3ad794._0x647855,-_0x3ad794._0x4af74c,-0x117)](_0x17aa84(-_0x3ad794._0x33a3e3,-_0x3ad794._0x398bcb,-0x1f9,-0xa1))?(_0x1399b6=_0x4346d1['turndown'](_0x29b0f3),_0x50b35f='markdown'):(_0x1399b6=_0x29b0f3,_0x50b35f=_0x17aa84(-0x351,-0x285,-0x209,-_0x3ad794._0x39cd5f));function _0x17aa84(_0x45287c,_0xc79713,_0x472e76,_0x489809){return _0x2335a2(_0x489809,_0xc79713-0x30,_0xc79713- -0xc,_0x489809-0x1db);}return yield createToolOutput(_0x1399b6,{'url':_0x15919f,'contentType':_0x378084,'statusCode':_0x4dea9f,'format':_0x50b35f,'size':_0x29b0f3[_0x1f02aa(-0x1d3,-_0x3ad794._0x528b9f,-_0x3ad794._0x3e5e53,-_0x3ad794._0x58eafc)],'fetchedAt':_0x1f5c99}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x12584b(0x4d0,0x51a,0x4c9,0x51c);function normalizeUrl(_0x4b5379){const _0x1012e0={_0x591895:0x6f,_0x40fa67:0xab,_0x4a620b:0x132,_0x542f24:0x15e,_0x7ba1a5:0x146,_0x13d586:0xb6,_0x391a44:0x2e,_0xfa9f7a:0x5,_0x27f81c:0x13c,_0x15e958:0x161,_0x24d0a7:0x2e,_0x34ab53:0xa8,_0x4f5ee4:0x18,_0x9ffd2a:0x106,_0xe5911f:0x151,_0x491b92:0xea,_0x315a95:0x82,_0x12fedf:0xcd,_0x4c74e4:0x77},_0x3f8b7c={_0x5353bb:0x20,_0x4d5262:0x1d9},_0x2f97d6={_0x2d062b:0x21};function _0x4d8000(_0x2acad0,_0x3bde4e,_0x489b95,_0x49f7b8){return _0x46bf5b(_0x2acad0-0xba,_0x49f7b8,_0x489b95-_0x2f97d6._0x2d062b,_0x3bde4e- -0x496);}function _0x2d0eb1(_0x282447,_0x51e5bf,_0x421f6c,_0x2d5cbc){return _0x46bf5b(_0x282447-_0x3f8b7c._0x5353bb,_0x51e5bf,_0x421f6c-_0x3f8b7c._0x4d5262,_0x2d5cbc- -0x454);}try{const _0x3addd5=new URL(_0x4b5379);for(const _0x56ea28 of[_0x4d8000(-0xf5,-_0x1012e0._0x591895,0x4,-_0x1012e0._0x40fa67),_0x4d8000(0x54,_0x1012e0._0x4a620b,_0x1012e0._0x542f24,_0x1012e0._0x7ba1a5),_0x4d8000(-0x54,0x2b,0xaf,-0x84),_0x2d0eb1(0xb2,0xfb,_0x1012e0._0x13d586,0x54),_0x4d8000(_0x1012e0._0x391a44,0x4b,0x79,-_0x1012e0._0xfa9f7a),_0x2d0eb1(_0x1012e0._0x27f81c,0x1f6,0xf7,_0x1012e0._0x15e958),'fbclid',_0x4d8000(_0x1012e0._0x24d0a7,0x10b,0xa3,0x1bb),_0x2d0eb1(_0x1012e0._0x34ab53,0xcb,-_0x1012e0._0x4f5ee4,0xd1)]){_0x3addd5[_0x2d0eb1(0x27,-_0x1012e0._0x9ffd2a,0x46,-0x4b)][_0x2d0eb1(_0x1012e0._0xe5911f,_0x1012e0._0x491b92,0x156,0xed)](_0x56ea28);}return _0x3addd5[_0x4d8000(_0x1012e0._0x315a95,-0x18,_0x1012e0._0x12fedf,-_0x1012e0._0x4c74e4)]();}catch{return _0x4b5379;}}function cseDateRestrict(_0x5dc908){const _0x7375fa={_0x13f003:0x19f,_0x405f35:0x1b6,_0x1e5b99:0x3c1},_0x224f02={_0x3cdd31:0x19},_0xc21065={_0x397828:0x39,_0x1d9f5b:0x1d2};if(_0x5dc908<=0x0)return void 0x0;if(_0x5dc908<=0x1e)return'd'+Math[_0x4822d2(-0x17b,-_0x7375fa._0x13f003,-_0x7375fa._0x405f35,-0x130)](0x1,Math['floor'](_0x5dc908));function _0x1085e5(_0x26eb8f,_0x560936,_0x410040,_0xd132f5){return _0x46bf5b(_0x26eb8f-0x1ab,_0x26eb8f,_0x410040-_0xc21065._0x397828,_0x410040- -_0xc21065._0x1d9f5b);}if(_0x5dc908<=0x16d)return'm'+Math[_0x1085e5(_0x7375fa._0x1e5b99,0x2eb,0x399,0x46d)](_0x5dc908/0x1e);function _0x4822d2(_0x33681f,_0x5ebe06,_0x1f1db5,_0x18d366){return _0x46bf5b(_0x33681f-0x6c,_0x1f1db5,_0x1f1db5-_0x224f02._0x3cdd31,_0x33681f- -0x71e);}return'y'+Math['ceil'](_0x5dc908/0x16d);}function addSiteFilters(_0x1de8c7,_0x31775e){const _0x1f281d={_0x19d87f:0x2d2,_0x39f2e4:0x12c,_0x793ef6:0x11e,_0x50ee63:0x71,_0x3aad89:0x1f3},_0x3511fc={_0x204fc6:0x6a},_0x45e9d6={_0x3e2ca9:0xa1};function _0x119e52(_0x13e1a0,_0x2b5995,_0x4d9c5e,_0x3c41d3){return _0x12584b(_0x13e1a0- -0x39e,_0x2b5995-0x156,_0x4d9c5e-_0x45e9d6._0x3e2ca9,_0x3c41d3);}function _0x43713a(_0x3ca32c,_0x119394,_0x4f9e1a,_0x49b4b2){return _0x46bf5b(_0x3ca32c-_0x3511fc._0x204fc6,_0x3ca32c,_0x4f9e1a-0x5a,_0x119394- -0x6f3);}if(_0x31775e[_0x43713a(-0x1f7,-_0x1f281d._0x19d87f,-0x227,-0x2d3)]===0x0)return _0x1de8c7[_0x43713a(-0x6a,-0x123,-_0x1f281d._0x39f2e4,-0x197)]();return(_0x1de8c7+'\x20('+_0x31775e[_0x119e52(0x94,_0x1f281d._0x793ef6,_0x1f281d._0x50ee63,0x17e)](_0x3b19d4=>_0x119e52(0x64,0xa2,0x120,0xc8)+_0x3b19d4)[_0x43713a(-0x2ae,-_0x1f281d._0x3aad89,-0x2db,-0x118)]('\x20OR\x20')+')')['trim']();}function normalizeType(_0x12d7a0){const _0x1f946c={_0x679193:0x17e,_0x9c9807:0x1c8,_0x2b1bcf:0xf4,_0xe671c2:0x109,_0x28b204:0x19e,_0x36e7bc:0x20e,_0x4fdc7b:0x14d},_0x2fbd75={_0x5869bb:0xb5},_0x2021f5={_0x30783f:0x1a0};function _0x5b93a1(_0x25a27d,_0x16eb46,_0x877ea4,_0x381858){return _0x12584b(_0x25a27d- -0x289,_0x16eb46-_0x2021f5._0x30783f,_0x877ea4-0x2c,_0x877ea4);}function _0x59377e(_0x20c300,_0x1a8c0a,_0x2be332,_0x175228){return _0x12584b(_0x175228- -0x4b7,_0x1a8c0a-_0x2fbd75._0x5869bb,_0x2be332-0x1c2,_0x1a8c0a);}return _0x12d7a0===_0x5b93a1(_0x1f946c._0x679193,_0x1f946c._0x9c9807,_0x1f946c._0x2b1bcf,0x265)?_0x59377e(-_0x1f946c._0xe671c2,-0xcd,-0x50,-0xb0):_0x5b93a1(_0x1f946c._0x28b204,_0x1f946c._0x36e7bc,0x159,_0x1f946c._0x4fdc7b);}async function fetchJson(_0x139652,_0x53a9c3){const _0x46b69c={_0x39a9b5:0xd7,_0x4e86ca:0x12c,_0x12b6c8:0x47,_0x285d80:0xdd,_0x4b94fc:0x99,_0x182beb:0x22,_0x503580:0xa0,_0x246180:0x4c},_0x32298={_0x3a2d38:0x50f};function _0x3a19f7(_0x41206a,_0x3a7737,_0x256cf8,_0xe33613){return _0x46bf5b(_0x41206a-0x1cb,_0x256cf8,_0x256cf8-0x1d0,_0x41206a- -0x52d);}const _0x137c9d=await fetch(_0x139652,{'headers':{'User-Agent':USER_AGENT2,'Accept':'application/json'},'signal':_0x53a9c3});if(!_0x137c9d['ok']){await _0x137c9d[_0x359534(-0xe7,-_0x46b69c._0x39a9b5,-0xfb,-_0x46b69c._0x4e86ca)]?.[_0x359534(_0x46b69c._0x12b6c8,-0xe5,-0x2c,-_0x46b69c._0x285d80)]()['catch'](()=>void 0x0);throw new ToolExecutionError('HTTP\x20'+_0x137c9d[_0x359534(-_0x46b69c._0x4b94fc,0x26,_0x46b69c._0x182beb,0x24)]+'\x20'+_0x137c9d[_0x3a19f7(-0xae,-0xa7,-0xe6,0x28)],{'statusCode':_0x137c9d[_0x359534(-0x21,-_0x46b69c._0x503580,0x22,-0x4)]});}function _0x359534(_0x1d3e28,_0x1c76de,_0x159475,_0x4ab4e8){return _0x46bf5b(_0x1d3e28-0xd9,_0x1c76de,_0x159475-0x3a,_0x159475- -_0x32298._0x3a2d38);}return await _0x137c9d[_0x3a19f7(-0x10,_0x46b69c._0x246180,0x97,0x85)]();}async function hydrateResults(_0x4df9b7,_0x42bba3,_0x39efe0){const _0x187c4f={_0x41fb58:0x3c9,_0x2586da:0x4a2,_0x36cbcd:0x41c,_0x44aa0e:0x89,_0x52b1e3:0x156,_0x36807b:0x1eb,_0x4ba9ad:0x7f,_0x2fe73c:0x224,_0x561134:0x156},_0x474228={_0x909efd:0x1bb,_0x783657:0x118,_0x213909:0x1fc,_0x319ae4:0x27c,_0x34cb99:0xbb,_0x1c9184:0xc9,_0x30f97b:0x6f,_0x5d604d:0x10d,_0x1d48aa:0x176,_0x400e03:0x23c,_0x3bc784:0xa7,_0x4c3193:0x180,_0x49790f:0xc9,_0x50e8bb:0x22d,_0x436661:0x1ac,_0x35b758:0x166,_0x38379f:0x1a0,_0x3b8707:0x13f,_0x2a3d05:0xe2,_0x2d9cdc:0xb0,_0x628eda:0x40,_0x4ab741:0x110,_0x6ab4c7:0xf3,_0x1cb2bc:0xa1,_0x18326b:0xd7,_0x599a86:0xe2,_0x33db93:0x2ea,_0x94bf1e:0x1b6,_0x538c8c:0x282,_0x4dac58:0x297,_0x874cd7:0x1b3,_0x392a4c:0x1b8,_0x3fdaab:0x4f,_0x2bba96:0x78,_0x4c4476:0x1e0,_0x192ad9:0x290,_0x5ef395:0x53,_0x1d1626:0x1c9,_0x4b5e2c:0x30,_0x648d4b:0xb9,_0x2df129:0x16e,_0x4051e0:0x189,_0xcdd495:0x17d,_0x5190c8:0x1ee,_0x5819f1:0x1b8,_0x24a896:0xc8,_0x33b252:0x90,_0x15a7b6:0xc},_0x5be261={_0x7f2202:0xa8};function _0x534f0d(_0x4bffb0,_0x3cfb7b,_0x25bd7f,_0x1f0ee0){return _0x46bf5b(_0x4bffb0-0x1c7,_0x3cfb7b,_0x25bd7f-0xfc,_0x25bd7f- -_0x5be261._0x7f2202);}function _0x5ae220(_0xacc667,_0x1f8605,_0x26e31f,_0x48e160){return _0x12584b(_0x48e160- -0x588,_0x1f8605-0xd3,_0x26e31f-0x140,_0xacc667);}const _0x47e320=await Promise[_0x534f0d(_0x187c4f._0x41fb58,0x432,0x4a7,_0x187c4f._0x2586da)](_0x4df9b7[_0x534f0d(0x31f,_0x187c4f._0x36cbcd,0x354,0x31b)](0x0,0xa)[_0x5ae220(-0x16c,-_0x187c4f._0x44aa0e,-0xce,-_0x187c4f._0x52b1e3)](async _0x4edd3c=>{const _0x766e38={_0x22381a:0x1b9},_0x3e8868={_0x3c69ce:0x1e5};function _0x2f2edd(_0x3dcd1b,_0x3dd9aa,_0x4d1c46,_0xaf6f8a){return _0x534f0d(_0x3dcd1b-_0x3e8868._0x3c69ce,_0x3dd9aa,_0xaf6f8a- -0x52c,_0xaf6f8a-0xc3);}function _0xf471cf(_0x1c4428,_0x1eeb72,_0x5cc0d8,_0x453666){return _0x534f0d(_0x1c4428-_0x766e38._0x22381a,_0x1eeb72,_0x1c4428- -0x2ac,_0x453666-0x74);}try{const _0x5334e7=await fetch(_0x4edd3c[_0x2f2edd(-0x159,-_0x474228._0x909efd,-0x29b,-0x1b8)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x42bba3,'Accept':_0x2f2edd(-0xf8,-_0x474228._0x783657,-0xbe,-0x3c)},'signal':_0x39efe0});if(!_0x5334e7['ok'])return _0x4edd3c;const _0x413f3a=await _0x5334e7[_0x2f2edd(-0x227,-_0x474228._0x213909,-_0x474228._0x319ae4,-0x19f)](),_0x5b9bf4=load(_0x413f3a),_0x5add4f=_0x5b9bf4('meta[property=\x27og:title\x27]')[_0x2f2edd(0x63,-_0x474228._0x34cb99,-_0x474228._0x1c9184,-_0x474228._0x30f97b)](_0x2f2edd(-_0x474228._0x5d604d,-0x58,-0xcb,-0xe2))||_0x5b9bf4(_0xf471cf(0x103,0xf7,0x123,0x19c))[_0xf471cf(_0x474228._0x1d48aa,0xc2,_0x474228._0x400e03,0x18b)]()[_0x2f2edd(-0x162,-0x156,-0x14e,-0x19f)]()[_0x2f2edd(0xc0,-0xd1,-_0x474228._0x3bc784,-0x4)](),_0x3e22f2=_0x5b9bf4(_0x2f2edd(-_0x474228._0x4c3193,-_0x474228._0x49790f,-_0x474228._0x50e8bb,-_0x474228._0x436661))[_0xf471cf(0x211,0x285,0x181,_0x474228._0x35b758)](_0x2f2edd(-_0x474228._0x38379f,-0x1cb,-_0x474228._0x3b8707,-_0x474228._0x2a3d05))||_0x5b9bf4(_0xf471cf(_0x474228._0x2d9cdc,_0x474228._0x3bc784,0x129,_0x474228._0x628eda))[_0x2f2edd(-0x4a,-_0x474228._0x4ab741,-_0x474228._0x6ab4c7,-_0x474228._0x30f97b)](_0x2f2edd(-0x119,-_0x474228._0x1cb2bc,-_0x474228._0x18326b,-_0x474228._0x599a86))||_0x4edd3c['snippet'],_0x505e34=_0x5b9bf4(_0xf471cf(0x21e,_0x474228._0x33db93,0x2a5,_0x474228._0x94bf1e))[_0xf471cf(0x211,_0x474228._0x538c8c,_0x474228._0x4dac58,0x24b)](_0xf471cf(0x19e,_0x474228._0x874cd7,0x11e,_0x474228._0x392a4c))||_0x5b9bf4(_0x2f2edd(-_0x474228._0x3fdaab,-_0x474228._0x2bba96,-0x158,-0x11f))[_0xf471cf(0x211,_0x474228._0x4c4476,0x14e,_0x474228._0x192ad9)](_0xf471cf(0x109,0x9d,_0x474228._0x5ef395,0x1d4))||_0x4edd3c[_0xf471cf(0xf8,_0x474228._0x1d1626,_0x474228._0x4b5e2c,0x89)],_0x443a50=_0x5b9bf4(_0xf471cf(0xb2,0xc6,_0x474228._0x648d4b,0x176))['attr'](_0xf471cf(_0x474228._0x2df129,_0x474228._0x4051e0,0x124,0x248));return{..._0x4edd3c,'title':_0x5add4f||_0x4edd3c[_0x2f2edd(-0x128,-0xc6,-0x124,-_0x474228._0xcdd495)],'snippet':_0x3e22f2,'url':_0x443a50?normalizeUrl(new URL(_0x443a50,_0x4edd3c[_0x2f2edd(-_0x474228._0x5190c8,-0x170,-0x11a,-_0x474228._0x5819f1)])['toString']()):_0x4edd3c[_0xf471cf(_0x474228._0x24a896,_0x474228._0x33b252,-_0x474228._0x15a7b6,0x11f)],'publishedAt':_0x505e34};}catch{return _0x4edd3c;}})),_0x2098db=new Map(_0x4df9b7['slice'](0x0,0xa)[_0x5ae220(-0x156,-_0x187c4f._0x36807b,-0xd6,-_0x187c4f._0x52b1e3)]((_0x32f249,_0x31f379)=>[_0x32f249['url'],_0x47e320[_0x31f379]]));return _0x4df9b7[_0x5ae220(-_0x187c4f._0x4ba9ad,-_0x187c4f._0x2fe73c,-0x216,-_0x187c4f._0x561134)](_0x241260=>_0x2098db[_0x5ae220(-0xbd,-0x39,-0x75,-0xc0)](_0x241260[_0x534f0d(0x324,0x385,0x374,0x449)])??_0x241260);}function formatResults(_0x541ab3){const _0x2c9a52={_0x3881a0:0x171,_0x1c8184:0x50d,_0x1463c2:0x234,_0x4b7d9a:0x1eb,_0x133045:0x25f},_0x3c3dec={_0x453418:0x1cb,_0x3cebd1:0x342,_0x498c71:0x107,_0xa69022:0x164,_0x3507e7:0xd0,_0x3b6e80:0xee,_0x54ba74:0x13,_0x380798:0x247,_0x3e3173:0x12e,_0x682be7:0xb1,_0x21ee4a:0xf,_0x582f37:0x1a9,_0x12c990:0xdf,_0x5cc08a:0x94,_0x39ff4a:0xf1,_0x95e7d6:0x114,_0x319115:0x7f,_0x3ad682:0x94,_0x16d455:0x80,_0x13d247:0x1f1};function _0x314507(_0x271fba,_0x5cd64e,_0x4e725c,_0x58e084){return _0x46bf5b(_0x271fba-0x14c,_0x58e084,_0x4e725c-0x1cb,_0x271fba- -0x2cc);}if(_0x541ab3['length']===0x0)return _0x314507(0x22a,0x180,_0x2c9a52._0x3881a0,0x27e);function _0x6cd74b(_0x56e024,_0x477ede,_0x2e96d5,_0x37f08d){return _0x46bf5b(_0x56e024-0x19a,_0x477ede,_0x2e96d5-0x194,_0x56e024-0xab);}return _0x541ab3[_0x6cd74b(0x520,0x50d,_0x2c9a52._0x1c8184,0x439)](_0x1e074e=>{const _0x2b1dcd={_0x396286:0x131,_0x410c0d:0xe1},_0x7b2b60={_0xdff14c:0x57},_0x20bc66=[_0x1e074e[_0x3b1365(0x26a,_0x3c3dec._0x453418,0x29d,_0x3c3dec._0x3cebd1)]['rank']+'.\x20'+_0x1e074e['title'],_0x1e074e[_0x4b7f99(0x6a,_0x3c3dec._0x498c71,_0x3c3dec._0xa69022,0x9f)]];function _0x3b1365(_0xaeb6ac,_0xa1f304,_0xc6bf97,_0xc46068){return _0x314507(_0xc6bf97- -_0x7b2b60._0xdff14c,_0xa1f304-0xc2,_0xc6bf97-0xd1,_0xa1f304);}if(_0x1e074e[_0x3b1365(_0x3c3dec._0x3507e7,0xb6,_0x3c3dec._0x3b6e80,_0x3c3dec._0x54ba74)])_0x20bc66[_0x3b1365(_0x3c3dec._0x380798,0x165,0x16e,0xda)](_0x1e074e[_0x3b1365(_0x3c3dec._0x3e3173,0x8f,0xee,_0x3c3dec._0x682be7)]);function _0x4b7f99(_0x57c788,_0x267827,_0xda8fc5,_0x50e090){return _0x6cd74b(_0x50e090- -0x428,_0xda8fc5,_0xda8fc5-_0x2b1dcd._0x396286,_0x50e090-_0x2b1dcd._0x410c0d);}if(_0x1e074e[_0x4b7f99(-_0x3c3dec._0x21ee4a,_0x3c3dec._0x582f37,_0x3c3dec._0x12c990,0xcf)])_0x20bc66[_0x4b7f99(_0x3c3dec._0x5cc08a,0x196,_0x3c3dec._0x39ff4a,_0x3c3dec._0x95e7d6)](_0x4b7f99(_0x3c3dec._0x319115,_0x3c3dec._0x3ad682,0x15f,0xe2)+_0x1e074e[_0x3b1365(0x10c,_0x3c3dec._0x16d455,0x129,_0x3c3dec._0x13d247)]);return _0x20bc66['join']('\x0a');})[_0x314507(_0x2c9a52._0x1463c2,_0x2c9a52._0x4b7d9a,_0x2c9a52._0x133045,0x2e6)]('\x0a\x0a');}async function searchGoogleCse(_0x86c7bd,_0xe00fd,_0x5b1e2c){const _0x4482be={_0x41052a:0x12d,_0x3ab475:0xc9,_0xc7a73b:0x1d4,_0x2171b0:0x109,_0x1743d4:0x6b,_0x2c302e:0x336,_0x2545b3:0x10e,_0x14cdda:0x1ff,_0x2720bf:0x178,_0x5ad7bd:0xa4,_0x2265d8:0x149,_0x13d93b:0x180,_0x375a10:0x155,_0x1e986d:0x1ee,_0x383dda:0x1c5,_0x1d4316:0x9,_0x287dd7:0x9d,_0x27995e:0x69,_0x33eac5:0x129,_0x47102c:0x1e7,_0x336719:0x214,_0x8b313a:0x250,_0x597390:0x194,_0x253f39:0x1d5,_0x22c621:0x296,_0x19fee4:0x31d,_0x5c7d55:0x32c,_0x1f24f2:0x1e2,_0x41c34b:0x2ae,_0x45a4d5:0x8f,_0x18ba82:0x117,_0x5e6ae8:0x1fc,_0x47d395:0x16f,_0x4794a7:0x9,_0x2777c0:0xd8,_0x182ba9:0x4,_0x116676:0x1b9,_0x3e07e4:0x176,_0x344b85:0xcd,_0x4fc739:0xc4,_0x30c14a:0x254,_0x1a659f:0x1ac,_0xc2c2b4:0x23b,_0x191c5a:0x2e6,_0x185d27:0x282,_0x5319e7:0x2b2,_0x3bd56c:0x2a0,_0x1373f3:0x1be,_0x2459e3:0x146,_0x3800dd:0x1e4,_0x345947:0x251,_0x2f26f6:0x2d0,_0x16bc8f:0x2a1,_0x25ce83:0xeb,_0x1f6741:0x94,_0x36d9e5:0xfd,_0x208f60:0x30f,_0xae5b58:0x2b9,_0x462a7d:0x55,_0xc6a41b:0x315,_0x4e546a:0x2c4,_0x4fb717:0x330,_0x1c010d:0x25b,_0x334766:0x30e,_0x9a744b:0x124,_0x516668:0x1cd,_0x3b26df:0x202,_0x26bb80:0x27a,_0x5cff10:0x134,_0x2710ad:0x1df,_0x5ecc1b:0xb0,_0x1784e3:0xdb,_0x20131d:0x227,_0x4ba450:0x2c6,_0x3b8688:0x1fd,_0x510f3d:0x255,_0x24eaf4:0x1a4,_0x500366:0x19f,_0x3c25f6:0x2e8,_0x341037:0x21a,_0x498654:0x327,_0x2a2a02:0x21,_0x35c66b:0x105,_0x15d07c:0x21,_0x46a29a:0xb2,_0x3bb89a:0x56,_0x224afe:0x207,_0x143581:0xe4,_0x547ee7:0xe1,_0x12c088:0x49,_0x41e7b3:0x274,_0x234ed9:0xda,_0x28d733:0x40,_0x4cbd14:0x44,_0x5badc9:0xb0,_0x5cdcba:0xc,_0x174a1c:0x43,_0x4a4c4e:0x7a,_0x96883f:0x91,_0x295ae1:0x66,_0x5cd912:0x24e,_0x5c9a70:0x313,_0x59a79e:0x363,_0x88ae30:0x27d,_0x301e4a:0x21,_0x2478b8:0x4b,_0x17ec4f:0xc7,_0x5e2617:0xa8,_0x2b3f05:0x21,_0x3a74d7:0xde,_0x571479:0x167,_0x52e830:0x1d3,_0x60a333:0x104,_0x306851:0x1cb,_0x99ab46:0x113},_0xca8142={_0x1100c4:0x293},_0x302b96={_0x324379:0xd5},_0x281ec1=Math['max'](0x1,Math[_0x2a2008(_0x4482be._0x41052a,0x184,_0x4482be._0x3ab475,0x179)](0x32,_0xe00fd['count']));function _0x2a2008(_0x3afe06,_0x10921e,_0x35f083,_0x382397){return _0x46bf5b(_0x3afe06-_0x302b96._0x324379,_0x35f083,_0x35f083-0x1b3,_0x3afe06- -0x400);}if(_0xe00fd[_0x2a2008(0x180,_0x4482be._0xc7a73b,_0x4482be._0x2171b0,0x192)]+_0x281ec1>0x64)throw new ToolExecutionError(_0x2a2008(_0x4482be._0x1743d4,0x3a,-0x3c,-0x68),{'offset':_0xe00fd[_0x3244d6(0x2ed,_0x4482be._0x2c302e,0x28d,0x2be)],'count':_0x281ec1,'maxResults':0x64});const _0x36dbe8=cseDateRestrict(_0xe00fd['recencyDays']),_0x291442=addSiteFilters(_0xe00fd[_0x2a2008(0x19b,_0x4482be._0x2545b3,0xf6,_0x4482be._0x14cdda)],_0xe00fd[_0x2a2008(_0x4482be._0x2720bf,_0x4482be._0x5ad7bd,0x103,_0x4482be._0x2265d8)]);let _0x5dcdf1=0x0,_0x2fd772=_0xe00fd[_0x2a2008(_0x4482be._0x13d93b,0x184,0x25a,0x1d8)]+0x1;const _0x1d77f8=[];function _0x3244d6(_0x45232e,_0x43db18,_0x7a9585,_0x52ddf2){return _0x46bf5b(_0x45232e-0x29,_0x52ddf2,_0x7a9585-0x68,_0x45232e- -_0xca8142._0x1100c4);}while(_0x5dcdf1<_0x281ec1){const _0x3d68a4=Math['min'](0xa,_0x281ec1-_0x5dcdf1),_0x19f82f=new URL(_0x3244d6(0x221,_0x4482be._0x375a10,_0x4482be._0x1e986d,_0x4482be._0x383dda));_0x19f82f[_0x2a2008(_0x4482be._0x1d4316,-0xc6,-_0x4482be._0x287dd7,_0x4482be._0x27995e)][_0x2a2008(_0x4482be._0x33eac5,_0x4482be._0x47102c,0x1fd,0xbb)]('key',_0x86c7bd[_0x3244d6(_0x4482be._0x336719,0x130,_0x4482be._0x8b313a,_0x4482be._0x597390)]),_0x19f82f[_0x3244d6(0x176,_0x4482be._0x253f39,0x137,0xde)][_0x3244d6(_0x4482be._0x22c621,_0x4482be._0x19fee4,_0x4482be._0x5c7d55,_0x4482be._0x1f24f2)]('cx',_0x86c7bd[_0x3244d6(0x1ea,0x146,0x256,_0x4482be._0x41c34b)]),_0x19f82f['searchParams'][_0x2a2008(0x129,_0x4482be._0x45a4d5,_0x4482be._0x18ba82,0x97)]('q',_0x291442),_0x19f82f['searchParams'][_0x2a2008(0x129,_0x4482be._0x5e6ae8,_0x4482be._0x47d395,_0x4482be._0x27995e)]('num',String(_0x3d68a4)),_0x19f82f[_0x2a2008(_0x4482be._0x4794a7,0xb4,-_0x4482be._0x2777c0,_0x4482be._0x182ba9)][_0x3244d6(0x296,0x2d9,0x37f,_0x4482be._0x116676)]('start',String(_0x2fd772)),_0x19f82f[_0x3244d6(_0x4482be._0x3e07e4,_0x4482be._0x344b85,_0x4482be._0x4fc739,_0x4482be._0x30c14a)]['set']('safe',_0xe00fd[_0x2a2008(_0x4482be._0x1a659f,0x195,_0x4482be._0xc2c2b4,0x222)]?_0x3244d6(_0x4482be._0x191c5a,_0x4482be._0x185d27,0x2a4,0x2e6):_0x3244d6(0x30d,0x26b,_0x4482be._0x5319e7,0x3eb));_0xe00fd[_0x3244d6(0x251,_0x4482be._0x3bd56c,_0x4482be._0x1373f3,0x22e)]&&(_0x19f82f['searchParams'][_0x2a2008(0x129,_0x4482be._0x2459e3,0xf3,_0x4482be._0x3800dd)]('hl',_0xe00fd[_0x3244d6(_0x4482be._0x345947,_0x4482be._0x2f26f6,_0x4482be._0x16bc8f,0x333)]),_0x19f82f['searchParams'][_0x2a2008(0x129,_0x4482be._0x25ce83,0x44,_0x4482be._0x1f6741)]('lr',_0x2a2008(0x143,_0x4482be._0x36d9e5,0x8e,0xeb)+_0xe00fd[_0x3244d6(_0x4482be._0x345947,_0x4482be._0x208f60,_0x4482be._0x191c5a,_0x4482be._0xae5b58)]));if(_0xe00fd['region'])_0x19f82f[_0x2a2008(0x9,0x83,-_0x4482be._0x462a7d,-0x93)][_0x3244d6(0x296,0x1e9,_0x4482be._0xc6a41b,_0x4482be._0x4e546a)]('gl',_0xe00fd[_0x3244d6(_0x4482be._0x4fb717,_0x4482be._0x1c010d,_0x4482be._0x334766,0x252)][_0x3244d6(0x1fb,0x195,_0x4482be._0x9a744b,0x202)]());if(_0xe00fd[_0x3244d6(_0x4482be._0x516668,0x144,0x12c,0x17d)]==='images')_0x19f82f['searchParams'][_0x3244d6(0x296,_0x4482be._0x3b26df,0x22d,_0x4482be._0x26bb80)](_0x2a2008(_0x4482be._0x5cff10,0x107,_0x4482be._0x2710ad,_0x4482be._0x5ecc1b),'image');if(_0x36dbe8)_0x19f82f[_0x3244d6(0x176,0x154,_0x4482be._0x1784e3,0x21b)][_0x3244d6(0x296,_0x4482be._0x20131d,_0x4482be._0x4ba450,_0x4482be._0x3b8688)](_0x3244d6(_0x4482be._0x510f3d,0x2cb,0x197,0x217),_0x36dbe8);const _0x2234ee=await fetchJson(_0x19f82f[_0x3244d6(0x1eb,_0x4482be._0x24eaf4,_0x4482be._0x500366,0x19b)](),_0x5b1e2c),_0x27ecf5=_0x2234ee[_0x3244d6(_0x4482be._0x3c25f6,_0x4482be._0x341037,_0x4482be._0x498654,0x2a4)]??[];if(_0x27ecf5[_0x2a2008(_0x4482be._0x2a2a02,0xa,_0x4482be._0x35c66b,_0x4482be._0x15d07c)]===0x0)break;const _0x235d77=_0x5dcdf1;for(let _0x22e54c=0x0;_0x22e54c<_0x27ecf5['length'];_0x22e54c++){const _0x388a3a=_0x27ecf5[_0x22e54c];if(!_0x388a3a)continue;const _0x53d9a3=_0x388a3a[_0x2a2008(_0x4482be._0x46a29a,0x163,_0x4482be._0x3bb89a,0x64)]||_0x388a3a['image']?.[_0x2a2008(_0x4482be._0x597390,_0x4482be._0x224afe,_0x4482be._0x143581,0x27d)]||'',_0x2172ec=_0x388a3a[_0x2a2008(0x57,_0x4482be._0x27995e,_0x4482be._0x547ee7,_0x4482be._0x12c088)]||_0x388a3a['image']?.[_0x3244d6(0x1c4,0x175,0x28f,_0x4482be._0x41e7b3)]||'Untitled',_0x172b35=_0x388a3a['snippet']||_0x388a3a[_0x2a2008(-0x6,_0x4482be._0x234ed9,_0x4482be._0x28d733,-_0x4482be._0x4cbd14)]?.['replace'](/<[^>]+>/g,''),_0x96c333=_0x388a3a['pagemap']?.[_0x2a2008(0x10,0x57,_0x4482be._0x5badc9,-_0x4482be._0x5cdcba)]?.[0x0]??{};let _0x3da69f;try{_0x3da69f=new URL(_0x53d9a3)[_0x2a2008(0x3f,0x29,_0x4482be._0x174a1c,-_0x4482be._0x4a4c4e)];}catch{_0x3da69f=null;}_0x1d77f8[_0x2a2008(_0x4482be._0x96883f,0x14a,_0x4482be._0x295ae1,0x14a)]({'title':_0x2172ec,'url':normalizeUrl(_0x53d9a3),'snippet':_0x172b35??null,'displayUrl':_0x3da69f,'favicon':null,'publishedAt':_0x96c333['article:published_time']||_0x96c333[_0x3244d6(0x289,0x1dd,0x2a7,_0x4482be._0x5cd912)]||null,'source':{'engine':_0x3244d6(_0x4482be._0x5c9a70,_0x4482be._0x59a79e,_0x4482be._0x88ae30,0x3f5),'rank':_0x235d77+_0x22e54c+0x1}});}_0x5dcdf1+=_0x27ecf5[_0x2a2008(_0x4482be._0x301e4a,_0x4482be._0x2478b8,_0x4482be._0x17ec4f,-_0x4482be._0x5e2617)],_0x2fd772+=_0x27ecf5[_0x2a2008(_0x4482be._0x2b3f05,0x103,_0x4482be._0x462a7d,_0x4482be._0x3a74d7)];if(_0x27ecf5[_0x3244d6(0x18e,_0x4482be._0x571479,_0x4482be._0x52e830,_0x4482be._0x60a333)]<_0x3d68a4)break;}return _0x1d77f8[_0x3244d6(0x169,_0x4482be._0x306851,_0x4482be._0x99ab46,0x1a6)](0x0,_0x281ec1);}function createWebSearchTool(_0x48c36f){const _0x4c5757={_0x24b60f:0x61,_0x3d6d03:0xc4,_0x526e7a:0x19e,_0x2fef17:0x211,_0x44b354:0x2dd,_0x470b2e:0x21f,_0x2d46f5:0x18b,_0x6670f0:0x177,_0x4e2429:0x109,_0x377ded:0x81,_0x3f3151:0x8c,_0x57709b:0x166,_0xe37b64:0x18d,_0x239b5b:0x236,_0x40acfd:0x192,_0x40602b:0x10a,_0x5b09ba:0x107,_0x1c38ce:0x9d,_0xe82b4e:0x10d,_0x1952bc:0x1d3,_0xc709f9:0x114,_0x57dc26:0x17,_0xb9c58:0xf2,_0xa56407:0x80,_0x5987be:0x182,_0x306dc3:0xf2,_0x11b17c:0x286,_0xc920c9:0x40,_0x224ff6:0xd9},_0x52ceca={_0x3cf8a4:0x486,_0x3daf01:0x400,_0x1d4dc0:0x138,_0xaa6e1f:0x187,_0x138d9e:0x52,_0xd492bc:0x392,_0x9540d9:0xf9,_0x3a1fc2:0x17e,_0x7d3ecd:0x4d9,_0x52709a:0x408,_0x4bd531:0x9c,_0x9b4c61:0x3f6,_0xe3c972:0x455,_0x48cafd:0xe0,_0x51baec:0xa9,_0x1ec85e:0x10b,_0x3f9af2:0x1aa,_0x61790f:0xee,_0x3e2a1c:0x383,_0x4ab4a2:0x114,_0x408173:0x2ed,_0xdce2a3:0x2c5,_0x5d60c7:0xeb,_0x5325e7:0xa4,_0x4a4880:0x12a,_0x290086:0x21f,_0x5ae7ae:0x9f,_0x4d9d:0x94,_0x33fa7d:0x17b,_0x7e9c76:0x13a,_0x4ef390:0x206,_0x3029d1:0x121,_0x2c742f:0x135,_0x1d2d56:0x25,_0x5922bc:0x1f9,_0x3c7c94:0x322,_0x13c4a8:0x32c,_0x4b5443:0x32a,_0x576d7b:0x3be,_0x267e22:0x83,_0x3a56de:0xc2,_0x11bd02:0x42,_0x1a913e:0x45e,_0x8531c4:0x33e,_0x4ce26c:0x380,_0x10a553:0x12b,_0x4c84ef:0xba,_0x35103b:0x1ef,_0x1d2f2c:0x12b,_0x1c1753:0x1ed,_0x11595e:0x18d,_0x2dc02a:0xd9,_0xf97d9d:0x210,_0x21a822:0x1c4,_0x293aa2:0x72,_0x3444ca:0x43e,_0x1abb30:0x38b,_0x5e0c10:0x40b,_0x413325:0x287,_0x3684d0:0x235,_0x5de709:0x286,_0x32b796:0x103,_0x1b0a0b:0xc7,_0x25dc27:0xa0,_0x3b1806:0xb1,_0x3d973b:0x35,_0x54b6a2:0x123,_0x26e152:0xab,_0x5a29ec:0x1cf},_0x5cea79={_0x18085a:0x126},_0x44307e={_0x37d027:0xc4},_0x498591={_0x3d4bb0:0x194},_0xd1b5e8={_0x23df08:0x152};if(!_0x48c36f[_0x5819d6(-_0x4c5757._0x24b60f,-0x158,-_0x4c5757._0x3d6d03,-_0x4c5757._0x526e7a)])throw new Error(_0x43103b(_0x4c5757._0x2fef17,0x20c,_0x4c5757._0x44b354,_0x4c5757._0x470b2e));function _0x43103b(_0x5caec8,_0x106dc2,_0x23e12b,_0x55ddd2){return _0x46bf5b(_0x5caec8-0x150,_0x23e12b,_0x23e12b-_0xd1b5e8._0x23df08,_0x55ddd2- -0x3a3);}if(!_0x48c36f[_0x43103b(0x1b,_0x4c5757._0x2d46f5,_0x4c5757._0x6670f0,0xda)])throw new Error(_0x43103b(_0x4c5757._0x4e2429,_0x4c5757._0x377ded,0xc1,_0x4c5757._0x3f3151));function _0x5819d6(_0x52ea94,_0x25a343,_0x3160d4,_0x4e8ff8){return _0x46bf5b(_0x52ea94-_0x498591._0x3d4bb0,_0x4e8ff8,_0x3160d4-0x2c,_0x3160d4- -0x56b);}const _0x2e18aa=_0x48c36f[_0x43103b(_0x4c5757._0x57709b,0x1e4,_0x4c5757._0xe37b64,0x129)]??_0x43103b(0x1ad,0x14c,_0x4c5757._0x239b5b,0x181);return defineTool({'name':_0x2e18aa,'description':_0x5819d6(-_0x4c5757._0x40acfd,-0x30,-_0x4c5757._0x40602b,-0x1b7),'inputSchema':{'type':_0x43103b(_0x4c5757._0x5b09ba,0xa8,0xbc,0x82),'properties':{'description':{'type':'string'},'query':{'type':_0x5819d6(-0xb5,-0x44,-0xf2,-0x192)},'count':{'type':'number'},'offset':{'type':'number'},'domains':{'type':_0x5819d6(-0x9f,-_0x4c5757._0x1c38ce,-_0x4c5757._0xe82b4e,-_0x4c5757._0x1952bc),'items':{'type':_0x5819d6(-_0x4c5757._0xc709f9,-_0x4c5757._0x57dc26,-_0x4c5757._0xb9c58,-_0x4c5757._0xa56407)}},'recencyDays':{'type':'number'},'lang':{'type':_0x5819d6(-_0x4c5757._0x5987be,-0xe7,-_0x4c5757._0x306dc3,-0x1a7)},'region':{'type':'string'},'safe':{'type':'boolean'},'type':{'type':'string'},'hydrateMeta':{'type':_0x43103b(_0x4c5757._0x11b17c,0x1d0,0xda,0x1a3)}},'required':[_0x5819d6(-_0x4c5757._0xc920c9,-0xab,0x30,_0x4c5757._0x224ff6)]},async *'execute'(_0x4a19fe,_0x395965){const _0x16639f={_0x371861:0x3a1,_0x589bfc:0x470,_0x3e1fc0:0x38f,_0x587e23:0x368,_0x1fce9c:0x3ff,_0x92413c:0x42e,_0x5911ed:0x48d},_0x5bbee6={_0x45582b:0x1a5},_0x5f1c58=_0x4a19fe[_0xa84cd2(_0x52ceca._0x3cf8a4,0x3af,0x45f,_0x52ceca._0x3daf01)][_0x16b805(_0x52ceca._0x1d4dc0,0x164,_0x52ceca._0xaa6e1f,_0x52ceca._0x138d9e)]();function _0x16b805(_0x595f40,_0x1d220c,_0x4a8bac,_0x42d3e8){return _0x43103b(_0x595f40-_0x44307e._0x37d027,_0x1d220c-0x12c,_0x42d3e8,_0x595f40- -0xf5);}if(!_0x5f1c58)throw new ToolExecutionError('Missing\x20required\x20parameter:\x20query');const _0x367437={'query':_0x5f1c58,'count':Math['max'](0x1,Math[_0xa84cd2(0x44f,0x2fc,0x3d0,_0x52ceca._0xd492bc)](0x32,Math['trunc'](_0x4a19fe[_0x16b805(_0x52ceca._0x9540d9,0x53,0x1b5,_0x52ceca._0x3a1fc2)]??0xa))),'offset':Math[_0xa84cd2(0x4a1,0x3e2,_0x52ceca._0x7d3ecd,_0x52ceca._0x52709a)](0x0,Math[_0x16b805(-0x7f,-0x40,-0x64,-_0x52ceca._0x4bd531)](_0x4a19fe[_0xa84cd2(_0x52ceca._0x9b4c61,_0x52ceca._0xe3c972,0x31f,0x3e5)]??0x0)),'domains':_0x4a19fe[_0x16b805(_0x52ceca._0x48cafd,0x154,_0x52ceca._0x51baec,-0xb)]??[],'recencyDays':Math[_0x16b805(_0x52ceca._0x1ec85e,0x19f,_0x52ceca._0x3f9af2,_0x52ceca._0x61790f)](0x0,Math['trunc'](_0x4a19fe['recencyDays']??0x0)),'lang':_0x4a19fe['lang']??'en','region':_0x4a19fe[_0xa84cd2(0x47e,0x440,_0x52ceca._0x3e2a1c,0x428)]??'','safe':_0x4a19fe[_0x16b805(_0x52ceca._0x4ab4a2,0x1cf,0x1c2,0x188)]??!![],'type':normalizeType(_0x4a19fe[_0xa84cd2(0x2fb,_0x52ceca._0x408173,0x21e,_0x52ceca._0xdce2a3)]),'hydrateMeta':_0x4a19fe[_0xa84cd2(0x3a8,0x374,0x44e,0x3e8)]??![]};let _0x11c36d=await searchGoogleCse(_0x48c36f,_0x367437,_0x395965['signal']);_0x367437[_0x16b805(_0x52ceca._0x5d60c7,_0x52ceca._0x5325e7,0xe7,_0x52ceca._0x4a4880)]&&_0x11c36d[_0xa84cd2(_0x52ceca._0x290086,0x28a,0x21c,0x286)]>0x0&&(_0x11c36d=await hydrateResults(_0x11c36d,_0x367437[_0x16b805(0x4c,0x43,_0x52ceca._0x5ae7ae,-0x67)],_0x395965[_0x16b805(-0x4f,0xd,_0x52ceca._0x4d9d,0x8b)]));const _0x5231be=new Set();_0x11c36d=_0x11c36d[_0x16b805(-0x9a,-0x81,-_0x52ceca._0x33fa7d,-_0x52ceca._0x7e9c76)](_0x46ed6f=>{const _0x59dd89={_0x15533b:0x14b,_0x1b8173:0x111},_0x23ce80=_0x46ed6f[_0x1b6f37(_0x16639f._0x371861,_0x16639f._0x589bfc,0x43a,0x2ce)][_0x1b6f37(_0x16639f._0x3e1fc0,_0x16639f._0x587e23,_0x16639f._0x1fce9c,0x406)]();function _0x117e27(_0x310775,_0xaf1d34,_0x4334b1,_0x3d3875){return _0xa84cd2(_0x310775-_0x59dd89._0x15533b,_0x3d3875,_0x4334b1-_0x59dd89._0x1b8173,_0xaf1d34- -0xf2);}if(!_0x23ce80||_0x5231be[_0x1b6f37(0x3c5,_0x16639f._0x92413c,0x48b,_0x16639f._0x5911ed)](_0x23ce80))return![];_0x5231be[_0x1b6f37(0x41a,0x3b5,0x4e4,0x399)](_0x23ce80);function _0x1b6f37(_0x370c5a,_0x2d0b00,_0x4a9f7e,_0xe64d95){return _0xa84cd2(_0x370c5a-0xb9,_0x2d0b00,_0x4a9f7e-_0x5bbee6._0x45582b,_0x370c5a-0x120);}return!![];}),_0x11c36d=_0x11c36d[_0xa84cd2(0x2a4,0x314,_0x52ceca._0x4ef390,0x2da)]((_0x3a17ea,_0x5b5389)=>({..._0x3a17ea,'source':{..._0x3a17ea[_0xa84cd2(0x35f,0x3d5,0x43f,0x425)],'rank':_0x5b5389+0x1}}));const _0x52a0ec={};if(_0x367437[_0x16b805(0xe0,_0x52ceca._0x3029d1,_0x52ceca._0x2c742f,_0x52ceca._0x1d2d56)][_0xa84cd2(_0x52ceca._0x5922bc,_0x52ceca._0x3c7c94,_0x52ceca._0x13c4a8,0x286)]>0x0)_0x52a0ec[_0xa84cd2(_0x52ceca._0x4b5443,0x325,_0x52ceca._0x576d7b,0x3dd)]=_0x367437[_0x16b805(0xe0,0x176,0xe1,0x122)];if(_0x367437[_0x16b805(_0x52ceca._0x267e22,_0x52ceca._0x3a56de,0xee,-_0x52ceca._0x11bd02)]>0x0)_0x52a0ec[_0xa84cd2(0x3ef,_0x52ceca._0x1a913e,_0x52ceca._0x8531c4,_0x52ceca._0x4ce26c)]=_0x367437['recencyDays'];function _0xa84cd2(_0x4c1190,_0x3c250a,_0x1fdeac,_0x4a7080){return _0x43103b(_0x4c1190-_0x5cea79._0x18085a,_0x3c250a-0x133,_0x3c250a,_0x4a7080-0x208);}if(_0x367437['lang']!=='en')_0x52a0ec[_0xa84cd2(0x2fd,0x42d,0x397,0x349)]=_0x367437['lang'];if(_0x367437[_0x16b805(_0x52ceca._0x10a553,_0x52ceca._0x4c84ef,0x4a,_0x52ceca._0x35103b)])_0x52a0ec[_0x16b805(_0x52ceca._0x1d2f2c,_0x52ceca._0x1c1753,_0x52ceca._0x11595e,_0x52ceca._0x2dc02a)]=_0x367437[_0x16b805(0x12b,_0x52ceca._0xf97d9d,_0x52ceca._0x21a822,_0x52ceca._0x293aa2)];return yield createToolOutput(formatResults(_0x11c36d),{'engine':_0xa84cd2(_0x52ceca._0x3444ca,0x3e7,_0x52ceca._0x1abb30,_0x52ceca._0x5e0c10),'count':_0x11c36d[_0xa84cd2(0x237,_0x52ceca._0x413325,_0x52ceca._0x3684d0,_0x52ceca._0x5de709)],'items':_0x11c36d,'query':_0x367437[_0x16b805(_0x52ceca._0x32b796,0x1bb,0x18f,_0x52ceca._0x1b0a0b)],...Object[_0x16b805(-0x25,0xa1,_0x52ceca._0x25dc27,_0x52ceca._0x3b1806)](_0x52a0ec)[_0x16b805(-0x77,-0xff,-_0x52ceca._0x3d973b,-_0x52ceca._0x54b6a2)]>0x0?{'appliedFilters':_0x52a0ec}:{},'offset':_0x367437['offset'],'totalRequested':_0x367437[_0x16b805(0xf9,_0x52ceca._0x26e152,_0x52ceca._0x5a29ec,0x73)],'hydrated':_0x367437['hydrateMeta']}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
1
+ (function(_0x3267ac,_0x275629){const _0x227054={_0x28cabe:0x383,_0x3cfad7:0x3c9,_0x30f723:0x151,_0x3e9574:0x6,_0x37c13a:0x3e,_0x3d572d:0xa4,_0x1c1712:0x13,_0x27cfc7:0x165,_0x2d6cf0:0x70,_0x232f75:0x11b,_0x5f0981:0x451,_0x3bfb42:0x4e4,_0xfa51ad:0x4eb,_0x5cb5f4:0x3a2,_0xf95cdc:0x9d,_0xc35520:0x15a,_0x4d9aef:0xf9,_0x20b9b7:0x1e8,_0x4a5256:0x37d,_0x164bc3:0x45e,_0xf8784a:0x438,_0x211c7b:0x421,_0x4351b0:0x2c5,_0x5564d9:0x152,_0x395ca5:0x2f5},_0x1480c3={_0x5ad77f:0x37},_0x53a93f=_0x3267ac();function _0x36e85b(_0x5a4673,_0x56a794,_0x1b4aa0,_0x57b95c){return _0x4100(_0x56a794-_0x1480c3._0x5ad77f,_0x57b95c);}function _0x343be8(_0x5e5fa0,_0x4881ab,_0x36c6b7,_0x2349d1){return _0x4100(_0x36c6b7- -0x37d,_0x5e5fa0);}while(!![]){try{const _0x1e984e=parseInt(_0x36e85b(_0x227054._0x28cabe,_0x227054._0x3cfad7,0x2b4,0x4f5))/0x1+-parseInt(_0x343be8(-0x138,-_0x227054._0x30f723,-0x132,-0x1c5))/0x2*(-parseInt(_0x343be8(-_0x227054._0x3e9574,0x161,_0x227054._0x37c13a,0x13e))/0x3)+-parseInt(_0x343be8(-_0x227054._0x3d572d,-_0x227054._0x1c1712,-0x92,-_0x227054._0x27cfc7))/0x4*(-parseInt(_0x343be8(-_0x227054._0x2d6cf0,0x80,0x1,_0x227054._0x232f75))/0x5)+-parseInt(_0x36e85b(_0x227054._0x5f0981,0x400,_0x227054._0x3bfb42,_0x227054._0xfa51ad))/0x6*(parseInt(_0x36e85b(0x2c5,_0x227054._0x5cb5f4,0x2e9,0x342))/0x7)+-parseInt(_0x343be8(-_0x227054._0xf95cdc,-_0x227054._0xc35520,-_0x227054._0x4d9aef,-_0x227054._0x20b9b7))/0x8*(parseInt(_0x36e85b(_0x227054._0x4a5256,_0x227054._0x164bc3,_0x227054._0xf8784a,0x4b1))/0x9)+-parseInt(_0x36e85b(_0x227054._0x211c7b,0x37e,0x2e5,_0x227054._0x4351b0))/0xa+parseInt(_0x36e85b(0x317,0x267,_0x227054._0x5564d9,_0x227054._0x395ca5))/0xb;if(_0x1e984e===_0x275629)break;else _0x53a93f['push'](_0x53a93f['shift']());}catch(_0x31fefc){_0x53a93f['push'](_0x53a93f['shift']());}}}(_0x2b52,0xc990d));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-P54V754C.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.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 _0x2946e8 from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':_0x255f51(0x657,0x731,0x6ab,0x67a),'.js':_0x173565(0x1dc,0x8f,0x4d,0xc6),'.jsx':_0x173565(-0xf1,0x6e,-0x71,-0x18),'.mjs':_0x255f51(0x632,0x687,0x54b,0x54c),'.cjs':'javascript','.mts':_0x255f51(0x693,0x616,0x6fe,0x702),'.cts':'typescript','.json':_0x255f51(0x6c2,0x641,0x7a0,0x640),'.jsonc':_0x255f51(0x628,0x6f3,0x640,0x595)};function getLanguageId(_0x3f8d9d){const _0x24cfca={_0x3fa516:0x167,_0xef11b3:0x55,_0x11071f:0x74,_0x69fc3b:0x6},_0x324b46={_0x101d92:0x2a0,_0x172674:0x1e7},_0x25b761={_0xfe3aff:0x5e};function _0x11ac81(_0x345ce0,_0x44558f,_0x45318b,_0x508e8f){return _0x173565(_0x345ce0-0x1d5,_0x44558f-0x1ef,_0x45318b,_0x44558f- -_0x25b761._0xfe3aff);}function _0x1751aa(_0x31d9f4,_0x4a2a9f,_0x2277a7,_0x17cd46){return _0x255f51(_0x2277a7- -_0x324b46._0x101d92,_0x4a2a9f-_0x324b46._0x172674,_0x31d9f4,_0x17cd46-0xb3);}return EXTENSION_TO_LANGUAGE[_0x2946e8[_0x11ac81(0x15c,_0x24cfca._0x3fa516,0xb2,0x5d)](_0x3f8d9d)[_0x11ac81(_0x24cfca._0xef11b3,_0x24cfca._0x11071f,-_0x24cfca._0x69fc3b,0xf9)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x99f4bb){const _0x528595={_0x41df9c:0xec,_0x16495b:0x1c7},_0x3a787e={_0x2879e3:0x505,_0x12bbfa:0x21};function _0xd2f703(_0x473c3d,_0x263268,_0x5bec59,_0x4b12b8){return _0x255f51(_0x473c3d- -_0x3a787e._0x2879e3,_0x263268-_0x3a787e._0x12bbfa,_0x263268,_0x4b12b8-0x1d7);}return pathToFileURL(_0x99f4bb)[_0xd2f703(0xae,_0x528595._0x41df9c,_0x528595._0x16495b,0xd6)]();}function textDocumentPosition(_0x59e8d8){const _0x588f18={_0x4dc719:0x560,_0x2d8fe7:0x574,_0x129136:0x626},_0x5208d0={_0x4386e0:0x58,_0x3f7cb9:0x326},_0x45f915={_0x4bb0dd:0x1dc,_0x2b43de:0x4c9};function _0x770a42(_0x47fe9c,_0x4a7cec,_0x4ca821,_0x32e37f){return _0x173565(_0x47fe9c-_0x45f915._0x4bb0dd,_0x4a7cec-0x1e9,_0x4ca821,_0x32e37f-_0x45f915._0x2b43de);}function _0x3ef6b0(_0x2a17e0,_0x29818d,_0x264296,_0x46fb0f){return _0x173565(_0x2a17e0-_0x5208d0._0x4386e0,_0x29818d-0x1e,_0x29818d,_0x264296-_0x5208d0._0x3f7cb9);}return{'textDocument':{'uri':uriForPath(_0x59e8d8[_0x3ef6b0(_0x588f18._0x4dc719,_0x588f18._0x2d8fe7,0x538,0x4d6)])},'position':{'line':_0x59e8d8[_0x3ef6b0(0x2ff,0x355,0x3c0,0x2ab)],'character':_0x59e8d8[_0x770a42(0x4fc,_0x588f18._0x129136,0x56f,0x5a0)]}};}function normalizeLocations(_0x4f6fa8){if(!_0x4f6fa8)return[];return Array['isArray'](_0x4f6fa8)?_0x4f6fa8:[_0x4f6fa8];}async function createLspClient(_0x5b9213){const _0x238bfe={_0x23aa8e:0x49e,_0x408f03:0x5c1,_0x1b2c44:0x5de,_0x18adde:0x593,_0x41d33b:0x535,_0x55f9d4:0x5b4,_0x38bb34:0x464,_0x313a26:0x572,_0x1aec62:0x5fb,_0x364d82:0x573,_0x3183e7:0x651,_0x34730b:0x56f,_0x3fde93:0x738,_0x52c58e:0x63d,_0x29253e:0x178,_0x558207:0xc3,_0x44068c:0xac,_0x30b15c:0x550,_0x2241e3:0x4ed,_0x2ccca3:0x612,_0x2a5dbc:0x45e,_0x5d18b3:0x59c,_0x249ddc:0x586,_0x116eca:0x515,_0x295c82:0x63,_0x306706:0xf1,_0x75f3ae:0xf,_0x4dc6a2:0x10a,_0x4965ca:0x4f3,_0x372577:0x61a,_0x245697:0x71,_0x4a4533:0x8c,_0x4ac451:0x85,_0x239835:0xad,_0xceaf81:0x10e,_0x24fc41:0xb1,_0x4acdbf:0x3c,_0x4bd08d:0x9,_0x50d38b:0xe7,_0x289400:0xf1,_0x21ecb9:0x13,_0x28872c:0xe0,_0xfc22ac:0x48},_0x40d5ec={_0x5626d9:0x19d,_0x518bf0:0x104,_0x28e545:0xb3,_0x5b1719:0x1a9,_0x118ea2:0x115,_0x27c0a1:0x5f8,_0x310976:0x49e,_0x1016eb:0x53a,_0x3d8b4d:0x593,_0x1cc187:0x448,_0x332efd:0x2b,_0x4e1c95:0x403,_0x1f4b03:0x440,_0x4a38e1:0x3a0},_0x6b5a2b={_0x113c1c:0x1d7,_0x598525:0x1b7},_0x5b1859={_0x508d07:0x335,_0x394fda:0x30a,_0x407532:0x3e7,_0x5328eb:0x499,_0x4c8e19:0x568},_0x487690={_0x28e277:0xd,_0x36fd7a:0x65,_0x43e4a9:0x138,_0xf29b6a:0x24,_0x14bd7f:0x14,_0x1dd9ba:0xbc},_0x4b4407={_0x285bde:0x1e8,_0x31b382:0x208,_0x1761ce:0x1bf},_0x200e69={_0x5b154d:0x578,_0x37629b:0x520,_0x19e07d:0x41f,_0x37b79:0x2db,_0x22c0cb:0x336},_0x329dd4={_0x4470ec:0xc5,_0x361116:0x1b3},_0x45ab8a={_0xe18071:0x1bc,_0x34283e:0x62a,_0x2a52b5:0x1b},_0x1ac207={_0x149229:0x261,_0x3d31c6:0x3fd},_0x1c2d32={_0x1a5353:0x71b,_0x5867cf:0x682,_0x28925b:0x710},_0x285469={_0x1b4701:0x193},_0x56a994={_0x44dd34:0x53,_0x57814d:0x1be},_0x36cd0d={_0xd34d9e:0x348,_0x514e32:0x52b},_0x27241c={_0x27c5ea:0x139,_0x442867:0x95,_0x23a9db:0x143,_0x495294:0x58},_0xeba4d7={_0x196577:0x243,_0x57689c:0xcd},_0x3dd08b={_0x2ccbbc:0xe1,_0x1df1ea:0x7a,_0x34c1bd:0x139,_0x15f2e8:0x3b,_0x129506:0xeb},_0x50b1a3={_0x40c482:0x321,_0x39b82d:0x44a},_0x3d32d8={_0x40f082:0xe1,_0x23b04b:0xde,_0x27934e:0x1c9,_0x517e7f:0x1d1,_0x576936:0x1b1},_0xfe5c59={_0x259391:0x1ca,_0x5e709f:0x424,_0x35c4df:0xf3},_0x1b0441={_0x53e744:0x496},_0x1e563b={_0x22e822:0x524,_0x578bd6:0x741,_0x4a16dd:0x57a,_0x33e811:0x66c},_0x199a4d={_0x50d978:0x1d5,_0x2a572b:0x65},_0x5e8786={_0x530d92:0x723,_0x4f755a:0x596,_0x6af9a6:0x6a7,_0x2886cf:0x6c2},_0x141262={_0x579c74:0x5a,_0x4049ae:0x186,_0x1e6585:0x15a},_0x3d7bce={_0x4981c9:0x1d5,_0x438b95:0x305,_0x17f159:0x247,_0x17394c:0x1fb,_0x403db5:0x320,_0x2e1e04:0xd3,_0x1bd324:0x333,_0x42281e:0x2cd,_0x4e7db6:0x3de},_0x38a3c7={_0x3d5078:0x21,_0x171999:0x40f},_0x4f2116={_0x45330d:0x1c1};function _0x388125(_0x14deff,_0x36c402,_0x48cfcf,_0x13876b){return _0x173565(_0x14deff-_0x4f2116._0x45330d,_0x36c402-0x128,_0x36c402,_0x48cfcf- -0x10d);}const _0xdb0d7d=_0x5b9213[_0x311372(_0x238bfe._0x23aa8e,0x498,_0x238bfe._0x408f03,0x572)][_0x311372(_0x238bfe._0x1b2c44,_0x238bfe._0x18adde,0x581,0x5a0)][_0x311372(_0x238bfe._0x41d33b,0x4f6,_0x238bfe._0x55f9d4,0x558)],_0x40c3bc=_0x5b9213[_0x311372(0x4f4,_0x238bfe._0x38bb34,0x694,_0x238bfe._0x313a26)][_0x311372(_0x238bfe._0x1aec62,0x4d6,_0x238bfe._0x364d82,0x5a0)][_0x311372(_0x238bfe._0x3183e7,0x5ab,0x4af,0x57e)];if(!_0xdb0d7d||!_0x40c3bc)throw new Error(_0x311372(0x652,_0x238bfe._0x34730b,_0x238bfe._0x3fde93,_0x238bfe._0x52c58e));const _0x454624=createMessageConnection(new StreamMessageReader(_0xdb0d7d),new StreamMessageWriter(_0x40c3bc)),_0x2aa8ce=new Map(),_0x5d9661=new Map();let _0x15c109=![];_0x454624[_0x388125(-_0x238bfe._0x29253e,-_0x238bfe._0x558207,-0x123,-_0x238bfe._0x44068c)](_0x311372(0x5d1,_0x238bfe._0x30b15c,_0x238bfe._0x2241e3,_0x238bfe._0x2ccca3),_0x7dd1bf=>{const _0x483438={_0x257702:0x1a9};_0x2aa8ce[_0x3e73d8(_0x3d7bce._0x4981c9,0x264,_0x3d7bce._0x438b95,0x225)](_0x7dd1bf[_0x3e73d8(0x393,0x333,0x2cb,0x26d)],_0x7dd1bf[_0x3e73d8(_0x3d7bce._0x17f159,_0x3d7bce._0x17394c,0x156,_0x3d7bce._0x403db5)]);const _0x412673=_0x5d9661[_0x3e73d8(_0x3d7bce._0x2e1e04,0x146,0x242,0x1dd)](_0x7dd1bf[_0x3e73d8(0x237,_0x3d7bce._0x1bd324,_0x3d7bce._0x42281e,0x401)]);if(!_0x412673)return;_0x5d9661['delete'](_0x7dd1bf[_0x3e73d8(_0x3d7bce._0x4e7db6,_0x3d7bce._0x1bd324,0x390,0x217)]);function _0x3e73d8(_0x5afed8,_0x5b78dc,_0x5aa2b4,_0xd92fff){return _0x311372(_0x5afed8-_0x38a3c7._0x3d5078,_0xd92fff,_0x5aa2b4-0xc5,_0x5b78dc- -_0x38a3c7._0x171999);}function _0x333710(_0x2e9761,_0x1c8402,_0x2141d8,_0x430364){return _0x311372(_0x2e9761-0x40,_0x430364,_0x2141d8-_0x483438._0x257702,_0x2e9761- -0x241);}for(const _0x236fec of _0x412673)_0x236fec();}),_0x454624[_0x311372(_0x238bfe._0x2a5dbc,0x519,_0x238bfe._0x5d18b3,_0x238bfe._0x249ddc)]();const _0x26a47e=await _0x454624[_0x311372(0x5d8,0x400,0x57e,_0x238bfe._0x116eca)](_0x388125(_0x238bfe._0x295c82,-0xe,0x4c,-0x1c),{'processId':process['pid'],'rootUri':uriForPath(_0x5b9213[_0x311372(0x73d,0x649,0x700,0x710)]),'workspaceFolders':[{'uri':uriForPath(_0x5b9213[_0x388125(0x214,0x2d,_0x238bfe._0x306706,_0x238bfe._0x75f3ae)]),'name':_0x5b9213[_0x388125(0xe4,0x64,0x56,_0x238bfe._0x4dc6a2)]['id']}],'initializationOptions':_0x5b9213[_0x311372(_0x238bfe._0x4965ca,_0x238bfe._0x372577,0x541,0x572)][_0x388125(-0x195,_0x238bfe._0x245697,-_0x238bfe._0x4a4533,_0x238bfe._0x4ac451)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x388125(-0x75,_0x238bfe._0x239835,-0x27,-_0x238bfe._0xceaf81),'plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});function _0x311372(_0x1c01e1,_0x24dd3a,_0x16343d,_0x19d022){return _0x255f51(_0x19d022- -_0x141262._0x579c74,_0x24dd3a-_0x141262._0x4049ae,_0x24dd3a,_0x19d022-_0x141262._0x1e6585);}_0x454624[_0x388125(_0x238bfe._0x24fc41,-0x12d,-_0x238bfe._0x4acdbf,0xa)](_0x388125(0x24,-0x59,_0x238bfe._0x4bd08d,0xf8),{});const _0x2e3acf={'serverId':_0x5b9213['server']['id'],'root':_0x5b9213[_0x388125(_0x238bfe._0x50d38b,0x52,_0x238bfe._0x289400,0x196)],'connection':_0x454624,'diagnostics':_0x2aa8ce,'capabilities':_0x26a47e[_0x388125(_0x238bfe._0x21ecb9,-0x13b,-_0x238bfe._0x28872c,-_0x238bfe._0xfc22ac)]??{},'notify':{async 'open'({path:_0x5d771f}){const _0xa6cb0d={_0x3faaa3:0x16d,_0x32ccdb:0xac,_0x16bb57:0x45};function _0x67b71d(_0x1e1482,_0xbf4972,_0x52ca0a,_0x1b3c0e){return _0x311372(_0x1e1482-_0xa6cb0d._0x3faaa3,_0x52ca0a,_0x52ca0a-_0xa6cb0d._0x32ccdb,_0xbf4972- -_0xa6cb0d._0x16bb57);}const _0x299cf1=await readFile(_0x5d771f,'utf8');function _0x48579a(_0x3f505a,_0x296354,_0x964060,_0x44df9a){return _0x388125(_0x3f505a-0x13b,_0x3f505a,_0x296354-0x64b,_0x44df9a-0x3b);}_0x454624[_0x48579a(_0x5e8786._0x530d92,0x60f,_0x5e8786._0x4f755a,_0x5e8786._0x6af9a6)](_0x48579a(0x76e,0x673,0x798,0x6a4),{'textDocument':{'uri':uriForPath(_0x5d771f),'languageId':getLanguageId(_0x5d771f)??_0x48579a(0x7d9,_0x5e8786._0x2886cf,0x5f6,0x6da),'version':0x1,'text':_0x299cf1}});},async 'change'({path:_0x300abc,version:_0x2b021b}){const _0x4d7c9f={_0x30e978:0x24};function _0x1a75d0(_0x3a5045,_0x2c8a4a,_0x35b477,_0x3d060a){return _0x311372(_0x3a5045-_0x199a4d._0x50d978,_0x3a5045,_0x35b477-0x18,_0x35b477-_0x199a4d._0x2a572b);}const _0x2e2069=await readFile(_0x300abc,'utf8');function _0x4f0297(_0x52da39,_0x1385e7,_0x5b4e93,_0x52282c){return _0x388125(_0x52da39-_0x4d7c9f._0x30e978,_0x5b4e93,_0x52da39-0xde,_0x52282c-0xa);}_0x454624[_0x1a75d0(_0x1e563b._0x22e822,_0x1e563b._0x578bd6,0x648,_0x1e563b._0x4a16dd)](_0x1a75d0(0x79a,0x737,_0x1e563b._0x33e811,0x605),{'textDocument':{'uri':uriForPath(_0x300abc),'version':_0x2b021b},'contentChanges':[{'text':_0x2e2069}]});},async 'close'({path:_0x1683b2}){const _0x7d7874={_0xe4a11:0x48b};function _0x26fecb(_0x10d26b,_0x34bb4d,_0x55fe1a,_0x20712b){return _0x388125(_0x10d26b-0xd9,_0x20712b,_0x34bb4d-_0x7d7874._0xe4a11,_0x20712b-0x10d);}_0x454624[_0x26fecb(_0x1b0441._0x53e744,0x44f,0x375,0x43a)]('textDocument/didClose',{'textDocument':{'uri':uriForPath(_0x1683b2)}});}},'request':{async 'definition'(_0x5d1c13){const _0x3cbbaf={_0x2e6b7d:0x1d4};function _0x531c3c(_0x530d39,_0x187ae1,_0x2fa178,_0x4d18f9){return _0x388125(_0x530d39-_0xfe5c59._0x259391,_0x530d39,_0x4d18f9-_0xfe5c59._0x5e709f,_0x4d18f9-_0xfe5c59._0x35c4df);}function _0x2c0d36(_0x5ed4c3,_0x534b48,_0x48b605,_0x2246b5){return _0x311372(_0x5ed4c3-0x11c,_0x2246b5,_0x48b605-_0x3cbbaf._0x2e6b7d,_0x48b605- -0x437);}return normalizeLocations(await _0x454624[_0x2c0d36(_0x3d32d8._0x40f082,0x102,_0x3d32d8._0x23b04b,_0x3d32d8._0x27934e)](_0x2c0d36(_0x3d32d8._0x517e7f,_0x3d32d8._0x576936,0x129,0xbb),textDocumentPosition(_0x5d1c13)));},async 'references'(_0x1e8984){function _0x454b98(_0x211c30,_0x5bd454,_0x431bea,_0xce03dd){return _0x388125(_0x211c30-0x33,_0x5bd454,_0x431bea-0x42b,_0xce03dd-0x134);}return normalizeLocations(await _0x454624[_0x454b98(0x433,0x314,_0x50b1a3._0x40c482,_0x50b1a3._0x39b82d)]('textDocument/references',{...textDocumentPosition(_0x1e8984),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x319134){const _0x52ef91={_0xc20208:0x72,_0x1453e0:0x76},_0x28f95c={_0x214cfc:0x10e};function _0x288003(_0x57ca8b,_0x17fe21,_0x2ee649,_0x532a15){return _0x388125(_0x57ca8b-0x1f2,_0x57ca8b,_0x17fe21-0x1eb,_0x532a15-_0x28f95c._0x214cfc);}function _0x53b06e(_0x9104fe,_0x1f9e1a,_0x2aece7,_0x52b8bb){return _0x388125(_0x9104fe-_0x52ef91._0xc20208,_0x1f9e1a,_0x52b8bb- -0xbf,_0x52b8bb-_0x52ef91._0x1453e0);}return await _0x454624[_0x288003(0x36,_0x3dd08b._0x2ccbbc,_0x3dd08b._0x1df1ea,0x1d6)](_0x288003(0x1ad,_0x3dd08b._0x34c1bd,_0x3dd08b._0x15f2e8,_0x3dd08b._0x129506),textDocumentPosition(_0x319134))??null;},async 'documentSymbol'(_0x30fd96){const _0x595516={_0x215ffe:0xe5};function _0x401eb3(_0x319aa1,_0x2498ea,_0x38574b,_0x443851){return _0x388125(_0x319aa1-_0x595516._0x215ffe,_0x319aa1,_0x38574b-0xcf,_0x443851-0x165);}function _0x59cd4d(_0x5b09f1,_0x1d7060,_0x219815,_0x3fcb64){return _0x388125(_0x5b09f1-0x7f,_0x1d7060,_0x5b09f1-_0xeba4d7._0x196577,_0x3fcb64-_0xeba4d7._0x57689c);}return await _0x454624[_0x59cd4d(_0x27241c._0x27c5ea,_0x27241c._0x442867,0x1a0,0xef)](_0x401eb3(0x247,0x241,_0x27241c._0x23a9db,_0x27241c._0x495294),{'textDocument':{'uri':uriForPath(_0x30fd96)}})??[];},async 'workspaceSymbol'(_0x122861){const _0x1557a3={_0x3e98cd:0x124,_0x50f03b:0x57f};function _0x5ceca0(_0x180f4a,_0x3e2eb0,_0x4c7e64,_0x77438f){return _0x388125(_0x180f4a-_0x1557a3._0x3e98cd,_0x77438f,_0x180f4a-_0x1557a3._0x50f03b,_0x77438f-0x7a);}return await _0x454624[_0x5ceca0(0x475,0x37e,_0x36cd0d._0xd34d9e,_0x36cd0d._0x514e32)]('workspace/symbol',{'query':_0x122861})??[];},async 'implementation'(_0x793fc2){function _0x294d78(_0x12be69,_0x5f3bf4,_0x36db4b,_0xd7b6be){return _0x388125(_0x12be69-_0x56a994._0x44dd34,_0x12be69,_0x5f3bf4-0x6b3,_0xd7b6be-_0x56a994._0x57814d);}function _0x4296cc(_0x3f989f,_0x38d67e,_0x4d725d,_0x5bed10){return _0x388125(_0x3f989f-_0x285469._0x1b4701,_0x5bed10,_0x38d67e-0x57c,_0x5bed10-0x187);}return normalizeLocations(await _0x454624[_0x294d78(0x509,0x5a9,0x63c,0x4f1)](_0x294d78(_0x1c2d32._0x1a5353,_0x1c2d32._0x5867cf,0x6e9,_0x1c2d32._0x28925b),textDocumentPosition(_0x793fc2)));},async 'prepareCallHierarchy'(_0x3f24eb){const _0x488869={_0x40a4bb:0x15a,_0xa9e738:0x444,_0x1b9227:0x86};function _0x4ba8d1(_0x4d7fe2,_0x3b2c4f,_0x385a1e,_0x13cc42){return _0x388125(_0x4d7fe2-_0x488869._0x40a4bb,_0x13cc42,_0x4d7fe2-_0x488869._0xa9e738,_0x13cc42-_0x488869._0x1b9227);}return await _0x454624[_0x4ba8d1(0x33a,_0x1ac207._0x149229,0x2b4,_0x1ac207._0x3d31c6)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x3f24eb))??[];},async 'incomingCalls'(_0x363fa3){function _0x3a119e(_0x89c4fc,_0x6aab84,_0x321943,_0x31a404){return _0x388125(_0x89c4fc-_0x45ab8a._0xe18071,_0x6aab84,_0x321943-_0x45ab8a._0x34283e,_0x31a404-_0x45ab8a._0x2a52b5);}function _0x5cb703(_0x272a22,_0x486ebf,_0xe80f6c,_0x213a73){return _0x388125(_0x272a22-_0x329dd4._0x4470ec,_0xe80f6c,_0x486ebf-0x31b,_0x213a73-_0x329dd4._0x361116);}return await _0x454624[_0x3a119e(0x470,_0x200e69._0x5b154d,_0x200e69._0x37629b,_0x200e69._0x19e07d)](_0x5cb703(0x3a0,_0x200e69._0x37b79,_0x200e69._0x22c0cb,0x3a6),{'item':_0x363fa3})??[];},async 'outgoingCalls'(_0x1714bd){const _0x8ecc98={_0x292803:0x12f,_0x5ea3f4:0x4b5};function _0x94f8b4(_0x5453a5,_0x515723,_0x5d8c00,_0x4febba){return _0x311372(_0x5453a5-0x118,_0x5453a5,_0x5d8c00-_0x8ecc98._0x292803,_0x515723- -_0x8ecc98._0x5ea3f4);}return await _0x454624['sendRequest'](_0x94f8b4(_0x4b4407._0x285bde,_0x4b4407._0x31b382,_0x4b4407._0x1761ce,0x12f),{'item':_0x1714bd})??[];}},'waitForDiagnostics'({path:_0x1db329,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x32d3e3={_0x2bf7ff:0xce,_0x3a1be4:0x5ed},_0x523f79={_0xa22a35:0x38e,_0x49df3a:0x2bd,_0x519de4:0x384,_0xb4e683:0x125,_0x464c0d:0x2b,_0x488806:0x60},_0x2a6671={_0x285015:0x3a},_0x4a63cd=uriForPath(_0x1db329);function _0x4221f0(_0x5ea08f,_0x360153,_0x2f58c3,_0x5a27b2){return _0x311372(_0x5ea08f-0x16e,_0x5a27b2,_0x2f58c3-_0x2a6671._0x285015,_0x2f58c3- -0x270);}if(_0x2aa8ce[_0x4221f0(_0x5b1859._0x508d07,_0x5b1859._0x394fda,_0x5b1859._0x407532,_0x5b1859._0x5328eb)](_0x4a63cd))return Promise[_0x12ecc1(0x51f,0x515,_0x5b1859._0x4c8e19,0x5d1)]();function _0x12ecc1(_0x3725d1,_0xc29ede,_0x8cc260,_0x4a2a5a){return _0x311372(_0x3725d1-0x172,_0x3725d1,_0x8cc260-0x1d0,_0x4a2a5a-0xa2);}return new Promise(_0x9203e4=>{const _0x2fae61={_0x316b6c:0x102,_0x50c3df:0x630},_0xab365e={_0x1b904f:0x28c},_0x46cc7f=setTimeout(()=>{const _0x355674=_0x5d9661['get'](_0x4a63cd);function _0xd63709(_0x3235ee,_0xbd26b5,_0x41a0cf,_0x42b102){return _0x4100(_0xbd26b5- -0xa2,_0x42b102);}_0x355674?.[_0xd63709(_0x523f79._0xa22a35,_0x523f79._0x49df3a,_0x523f79._0x519de4,0x36d)](_0x59583f);function _0x116211(_0xe0fcfa,_0x40ba35,_0x1a0594,_0x582f73){return _0x4100(_0x40ba35- -_0xab365e._0x1b904f,_0xe0fcfa);}if(_0x355674?.[_0x116211(_0x523f79._0xb4e683,0x87,_0x523f79._0x464c0d,_0x523f79._0x488806)]===0x0)_0x5d9661['delete'](_0x4a63cd);_0x9203e4();},timeoutMs),_0x59583f=()=>{clearTimeout(_0x46cc7f),_0x9203e4();};function _0x546b1c(_0x2bdeff,_0x5ed56d,_0x34bb1e,_0x3467fa){return _0x12ecc1(_0x34bb1e,_0x5ed56d-0x17f,_0x34bb1e-_0x32d3e3._0x2bf7ff,_0x2bdeff- -_0x32d3e3._0x3a1be4);}const _0x5541e9=_0x5d9661[_0x546b1c(0xa,_0x487690._0x28e277,_0x487690._0x36fd7a,_0x487690._0x43e4a9)](_0x4a63cd)??new Set();_0x5541e9[_0x546b1c(-0x3,-_0x487690._0xf29b6a,-_0x487690._0x14bd7f,_0x487690._0x1dd9ba)](_0x59583f);function _0x5e635e(_0x595bbc,_0x3eb603,_0x1b6ce8,_0x1af9b6){return _0x12ecc1(_0x1af9b6,_0x3eb603-_0x2fae61._0x316b6c,_0x1b6ce8-0x1a9,_0x595bbc- -_0x2fae61._0x50c3df);}_0x5d9661['set'](_0x4a63cd,_0x5541e9);});},async 'shutdown'(){const _0x4422e7={_0x5bb4db:0x93,_0x481265:0xc0};function _0x535d8f(_0x27bb38,_0x46bc6c,_0x450e22,_0x49322e){return _0x311372(_0x27bb38-_0x6b5a2b._0x113c1c,_0x27bb38,_0x450e22-_0x6b5a2b._0x598525,_0x450e22- -0x200);}function _0x53601a(_0x3858fd,_0x10c5bc,_0x2eab65,_0x227dc7){return _0x388125(_0x3858fd-0xa9,_0x10c5bc,_0x3858fd- -_0x4422e7._0x5bb4db,_0x227dc7-_0x4422e7._0x481265);}if(_0x15c109)return;_0x15c109=!![];try{await _0x454624[_0x53601a(-_0x40d5ec._0x5626d9,-0x1eb,-0x1fd,-_0x40d5ec._0x518bf0)](_0x53601a(-0x18b,-_0x40d5ec._0x28e545,-0x93,-_0x40d5ec._0x5b1719),null),_0x454624[_0x53601a(-0xcf,-_0x40d5ec._0x118ea2,-0x184,-0x16d)](_0x535d8f(_0x40d5ec._0x27c0a1,_0x40d5ec._0x310976,_0x40d5ec._0x1016eb,_0x40d5ec._0x3d8b4d));}catch{}finally{_0x454624[_0x535d8f(0x521,0x434,_0x40d5ec._0x1cc187,0x368)](),_0x5b9213[_0x53601a(-0x140,-_0x40d5ec._0x332efd,-0x100,-0xdc)][_0x535d8f(_0x40d5ec._0x4e1c95,_0x40d5ec._0x1f4b03,_0x40d5ec._0x4a38e1,0x40f)]['kill']();}}};return _0x2e3acf;}import{spawn as _0x383c01}from'child_process';import{access as _0x56e75c}from'fs/promises';import _0x1833a3 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x8b2779 from'os';import _0x3ae68c from'path';import _0x1cd4e7 from'which';var installPromises=new Map();function sanitizePackageName(_0x288154){const _0x215fad={_0x48a98b:0x2e2},_0x2491ff={_0xe83f54:0x168,_0x542702:0x13f};function _0x3e12d1(_0x6297f0,_0x42d304,_0x54ec8f,_0x5a529d){return _0x255f51(_0x6297f0- -0x3e0,_0x42d304-_0x2491ff._0xe83f54,_0x42d304,_0x5a529d-_0x2491ff._0x542702);}return _0x288154[_0x3e12d1(0x26e,0x346,_0x215fad._0x48a98b,0x32d)](/^@/,'')['replace'](/[/]/g,'__');}function binaryNameForPlatform(_0xfb7eda){const _0x4e4dd8={_0x5ad881:0x37a},_0x422c31={_0x2823c5:0xc6,_0x2c9f75:0x13a};function _0x25a85f(_0x37378a,_0x120daf,_0xde68bf,_0xa7caca){return _0x255f51(_0xa7caca- -0x500,_0x120daf-_0x422c31._0x2823c5,_0xde68bf,_0xa7caca-_0x422c31._0x2c9f75);}return process[_0x25a85f(_0x4e4dd8._0x5ad881,0x2e5,0x381,0x26b)]==='win32'?_0xfb7eda+'.cmd':_0xfb7eda;}async function exists(_0x1bd7ae){try{return await access(_0x1bd7ae),!![];}catch{return![];}}function runNpmInstall(_0x4a4bb7,_0x4582f0,_0x3a2320){const _0x5117fe={_0x2ae102:0x5f,_0x489cfe:0x12f,_0x4df0ec:0x216,_0x259df3:0xeb,_0x50e138:0xfd,_0x28e1dc:0x15b,_0x5d50be:0x29,_0x10533d:0x9e,_0x3e797c:0xc,_0x37f6e5:0x6e,_0x167b2b:0xb4,_0x1626ac:0x1a},_0x3e217c={_0x507e60:0x1a9},_0x50a63b={_0x34342a:0x2a5};return new Promise(_0x553054=>{const _0x339a7e=spawn('npm',[_0x426ff7(_0x5117fe._0x2ae102,0x78,0x13b,_0x5117fe._0x489cfe),_0x426ff7(_0x5117fe._0x4df0ec,_0x5117fe._0x259df3,_0x5117fe._0x50e138,0x14b),_0x4a4bb7,_0x4582f0],{'env':_0x3a2320,'stdio':_0x426ff7(0xcd,_0x5117fe._0x28e1dc,_0x5117fe._0x5d50be,_0x5117fe._0x10533d)});_0x339a7e['on'](_0x4b370e(-0x9f,-_0x5117fe._0x3e797c,-_0x5117fe._0x37f6e5,_0x5117fe._0x167b2b),()=>_0x553054(![]));function _0x4b370e(_0x31e5b3,_0x5a8ab0,_0x29cea8,_0x362405){return _0x4100(_0x5a8ab0- -_0x50a63b._0x34342a,_0x31e5b3);}function _0x426ff7(_0x6c9d59,_0x5bba07,_0x36cfc5,_0x2989a2){return _0x4100(_0x6c9d59- -_0x3e217c._0x507e60,_0x36cfc5);}_0x339a7e['on'](_0x4b370e(0xd0,0x10b,0x7,_0x5117fe._0x1626ac),_0x4d9589=>_0x553054(_0x4d9589===0x0));});}function shouldDisableLspDownload(_0x2af2fc=process[_0x173565(0x57,0x44,0x12f,0x9b)]){const _0x4fa86c={_0x533cb0:0x32,_0x31b8e5:0x8f,_0xefdf1a:0x4c,_0x25e071:0x3,_0x488599:0xa1},_0x2ac133={_0x28ec2a:0x110};function _0x2d1aca(_0x16f919,_0x3f228c,_0x2d7fed,_0x2f73a3){return _0x173565(_0x16f919-_0x2ac133._0x28ec2a,_0x3f228c-0x19b,_0x3f228c,_0x2f73a3-0x33a);}const _0x2dcd08=_0x2af2fc[_0x3af1b7(0x4b,_0x4fa86c._0x533cb0,_0x4fa86c._0x31b8e5,0x134)]?.[_0x3af1b7(-0xd0,_0x4fa86c._0xefdf1a,_0x4fa86c._0x25e071,-0x44)]();function _0x3af1b7(_0x328c61,_0x5c1727,_0x5badd1,_0x43938a){return _0x255f51(_0x328c61- -0x70e,_0x5c1727-0x197,_0x5badd1,_0x43938a-0x1c6);}return _0x2dcd08==='true'||_0x2dcd08==='1'||_0x2dcd08===_0x3af1b7(-0x5b,-_0x4fa86c._0x488599,0x3,-0x12b)||_0x2dcd08==='on';}function getLspPackageDir(_0x2640e9){const _0x3cfb19={_0x46e690:0x465,_0x14e3da:0x4fb,_0x50fcc4:0x561,_0x56283c:0x62b,_0x47cc30:0x5f2,_0x31fa15:0x599},_0x2b9c4e={_0x3c98d0:0x17e,_0x36356b:0xa6,_0x3cd72a:0x410},_0x3b699f={_0x142406:0x51,_0x2b3dc9:0x1b7};function _0x38497e(_0x4dfee5,_0x163ec9,_0x3b2d61,_0x5a4ede){return _0x255f51(_0x3b2d61- -_0x3b699f._0x142406,_0x163ec9-_0x3b699f._0x2b3dc9,_0x4dfee5,_0x5a4ede-0x1d0);}function _0x1453e9(_0x29005,_0x21e3f1,_0x59f468,_0x344505){return _0x173565(_0x29005-_0x2b9c4e._0x3c98d0,_0x21e3f1-_0x2b9c4e._0x36356b,_0x21e3f1,_0x29005-_0x2b9c4e._0x3cd72a);}return _0x3ae68c[_0x1453e9(0x494,_0x3cfb19._0x46e690,0x515,_0x3cfb19._0x14e3da)](_0x8b2779[_0x1453e9(_0x3cfb19._0x50fcc4,0x515,0x5c6,0x4a1)](),_0x1453e9(0x62c,0x646,_0x3cfb19._0x56283c,0x6f2),'lsp',_0x1453e9(_0x3cfb19._0x47cc30,0x643,0x644,_0x3cfb19._0x31fa15),sanitizePackageName(_0x2640e9));}function getLspBinDir(_0x10ce9d){function _0x308f32(_0x112864,_0x51af69,_0x3a7d1b,_0x37939e){return _0x255f51(_0x51af69- -0x694,_0x51af69-0x78,_0x3a7d1b,_0x37939e-0xcf);}return _0x3ae68c[_0x308f32(-0xd8,-0xa4,-0x1b2,-0xc3)](getLspPackageDir(_0x10ce9d),'node_modules','.bin');}async function findPackageBinary(_0x5c1224,_0x373e64){const _0x418616={_0x268f45:0x45f,_0x5cfd02:0x47c,_0x5dd08b:0x163,_0x54fcb8:0x138,_0x498b92:0x18d,_0x2a65f:0x10b,_0x5bb06f:0x4a2,_0x1a0ed0:0x4fd},_0xbccd48={_0x420f72:0xfe};function _0x2350d2(_0x5d8cb6,_0x513853,_0x344b48,_0x513d55){return _0x173565(_0x5d8cb6-0x26,_0x513853-0x1d1,_0x513d55,_0x513853- -_0xbccd48._0x420f72);}function _0x5a3235(_0x442499,_0x5de3c0,_0x1be37e,_0x334804){return _0x173565(_0x442499-0x1a,_0x5de3c0-0x1a,_0x5de3c0,_0x1be37e-0x55f);}let _0x9c4c42=_0x3ae68c[_0x5a3235(0x5c2,_0x418616._0x268f45,0x57c,_0x418616._0x5cfd02)](_0x373e64);const _0xd86510=binaryNameForPlatform(_0x5c1224);while(!![]){const _0x33d094=_0x3ae68c['join'](_0x9c4c42,_0x2350d2(_0x418616._0x5dd08b,_0x418616._0x54fcb8,_0x418616._0x498b92,0x15d),_0x2350d2(_0x418616._0x2a65f,0x107,0x33,0x1de),_0xd86510);if(await exists(_0x33d094))return _0x33d094;const _0xebde91=_0x3ae68c[_0x5a3235(0x512,_0x418616._0x5bb06f,0x5a3,_0x418616._0x1a0ed0)](_0x9c4c42);if(_0xebde91===_0x9c4c42)return void 0x0;_0x9c4c42=_0xebde91;}}async function findPathBinary(_0x177738,_0xbbb833){const _0x7ec652={_0x28dca8:0x1d5,_0x2e1a7e:0x1c,_0x5091d0:0x134,_0xd129db:0x67,_0x3c70fd:0x10b,_0x9f92ca:0x47d,_0x21e3db:0xdf,_0x49785b:0x1f5},_0x2568f7={_0x445fd8:0x750,_0x5006f8:0x8e},_0x5f210d={_0x49c087:0x2a5};function _0x3d718(_0x3dcc18,_0x1fc1e7,_0x317b61,_0x1bdb5b){return _0x173565(_0x3dcc18-0x6b,_0x1fc1e7-0x162,_0x1fc1e7,_0x317b61-_0x5f210d._0x49c087);}const _0x103e38=getLspBinDir(_0xbbb833),_0x303ab8=[_0x103e38,process[_0x334ef5(-_0x7ec652._0x28dca8,-_0x7ec652._0x2e1a7e,-0x228,-0x149)][_0x334ef5(-_0x7ec652._0x5091d0,-_0x7ec652._0xd129db,-0x16,-_0x7ec652._0x3c70fd)]][_0x3d718(0x3dc,0x3ec,_0x7ec652._0x9f92ca,0x59d)](Boolean)['join'](_0x3ae68c[_0x334ef5(-0x2ed,-_0x7ec652._0x21e3db,-_0x7ec652._0x49785b,-0x1f8)]);function _0x334ef5(_0x3d35f6,_0x5445b0,_0x1fb755,_0x2b61aa){return _0x255f51(_0x2b61aa- -_0x2568f7._0x445fd8,_0x5445b0-0x1c7,_0x1fb755,_0x2b61aa-_0x2568f7._0x5006f8);}try{return await _0x1cd4e7(_0x177738,{'path':_0x303ab8});}catch{return void 0x0;}}async function resolvePackageBinary(_0x2ab957){const _0x27e670={_0x1074ee:0x5c6,_0x42332c:0x56a,_0x27d8a5:0x6c6,_0x39de26:0x78f,_0x11c268:0x63e,_0x130f7a:0x4f6,_0x398d24:0x563,_0x12e1ef:0x5b0,_0x24963d:0x3fe,_0x520a00:0x3f4,_0x5b4952:0x490,_0x5478c0:0x4c6,_0x447c47:0x6b5,_0x2aa458:0x6b7,_0x14bfa6:0x7d6,_0x5a6bc0:0x6f8,_0x2ce68c:0x73d},_0x3c4a5d={_0xbf8d0e:0x414,_0x131e8a:0x301,_0xbdc2cf:0x31e,_0x3df82d:0x26f,_0x8d1119:0x1d6,_0x364cfa:0x356},_0x3b43d2={_0x3a456d:0xe0},_0x27bf01={_0x12042f:0x1e3,_0x5092ca:0x3f5},_0x5ef432={_0x272e76:0xf6,_0x5e03f7:0x558},_0x51ad94=_0x2ab957[_0x176ab7(_0x27e670._0x1074ee,0x612,_0x27e670._0x42332c,0x6e9)]??_0x2ab957[_0x176ab7(_0x27e670._0x27d8a5,_0x27e670._0x39de26,0x664,0x744)];function _0x176ab7(_0x5e69eb,_0x16ad48,_0x3ba284,_0xdb019e){return _0x173565(_0x5e69eb-0x91,_0x16ad48-_0x5ef432._0x272e76,_0xdb019e,_0x5e69eb-_0x5ef432._0x5e03f7);}const _0x4cf49f=await findPackageBinary(_0x51ad94,_0x2ab957[_0x523e30(_0x27e670._0x11c268,0x57e,0x44f,0x527)]);if(_0x4cf49f)return _0x4cf49f;const _0x3c6746=await findPathBinary(_0x51ad94,_0x2ab957[_0x523e30(0x672,0x534,_0x27e670._0x130f7a,_0x27e670._0x398d24)]);if(_0x3c6746)return _0x3c6746;const _0x27e6cb=_0x2ab957[_0x523e30(_0x27e670._0x12e1ef,_0x27e670._0x24963d,_0x27e670._0x520a00,_0x27e670._0x5b4952)]??process[_0x176ab7(0x5f3,_0x27e670._0x5478c0,_0x27e670._0x447c47,0x4f2)];function _0x523e30(_0x2a199c,_0x42af45,_0x17db62,_0x4da679){return _0x173565(_0x2a199c-0x1e4,_0x42af45-_0x27bf01._0x12042f,_0x17db62,_0x4da679-_0x27bf01._0x5092ca);}if(shouldDisableLspDownload(_0x27e6cb))return void 0x0;const _0x4d5750=getLspPackageDir(_0x2ab957[_0x523e30(0x581,0x51e,0x52b,_0x27e670._0x398d24)]),_0x2499e5=_0x2ab957['packageName']+':'+_0x51ad94;let _0xb2f62f=installPromises[_0x176ab7(0x59b,_0x27e670._0x2aa458,0x55a,0x520)](_0x2499e5);!_0xb2f62f&&(_0xb2f62f=((async()=>{function _0x1eb63b(_0x1b3cc8,_0x528da7,_0x1a7714,_0x2a7059){return _0x523e30(_0x1b3cc8-0xbc,_0x528da7-0x41,_0x1a7714,_0x1b3cc8- -_0x3b43d2._0x3a456d);}await mkdir(_0x4d5750,{'recursive':!![]});const _0x3497b7=await runNpmInstall(_0x4d5750,_0x2ab957[_0x24cc5f(0x3eb,0x2d8,_0x3c4a5d._0xbf8d0e,0x44a)],_0x27e6cb);if(!_0x3497b7)return void 0x0;function _0x24cc5f(_0x97d3c7,_0x47c30a,_0x4a425d,_0x4b44af){return _0x523e30(_0x97d3c7-0x41,_0x47c30a-0x2f,_0x47c30a,_0x97d3c7- -0x178);}const _0x3a0f23=_0x3ae68c[_0x24cc5f(_0x3c4a5d._0x131e8a,_0x3c4a5d._0xbdc2cf,_0x3c4a5d._0x3df82d,_0x3c4a5d._0x8d1119)](getLspBinDir(_0x2ab957[_0x1eb63b(0x483,_0x3c4a5d._0x364cfa,0x575,0x41d)]),binaryNameForPlatform(_0x51ad94));return await exists(_0x3a0f23)?_0x3a0f23:void 0x0;})()),installPromises[_0x176ab7(0x6b9,_0x27e670._0x14bfa6,_0x27e670._0x5a6bc0,_0x27e670._0x2ce68c)](_0x2499e5,_0xb2f62f));try{return await _0xb2f62f;}catch{return void 0x0;}finally{installPromises['delete'](_0x2499e5);}}var TYPESCRIPT_EXTENSIONS=['.ts','.tsx',_0x173565(0x1f2,-0x15,0x67,0xda),_0x173565(-0x43,0x114,-0xcf,0xb),'.mjs',_0x173565(0x1cb,0x1b4,-0x31,0xe5),'.mts','.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x255f51(0x680,0x660,0x55e,0x65e),_0x173565(0x9f,0x182,0x1f7,0x13f)],TYPESCRIPT_ROOT_MARKERS=[_0x255f51(0x666,0x6af,0x75b,0x710),_0x173565(0x2cc,0x2ae,0x149,0x1eb),_0x173565(0x128,0x30f,0x179,0x211),_0x173565(0x1f9,0x1e4,0x1dc,0x182),'yarn.lock',_0x173565(0x183,0x1a8,0x2ca,0x1a2),'jsconfig.json',_0x173565(0xfc,-0x87,-0xa5,0x41)],BIOME_ROOT_MARKERS=['biome.json','biome.jsonc',_0x255f51(0x666,0x6a5,0x53e,0x6df),_0x173565(0x30d,0x309,0x144,0x1eb),_0x255f51(0x77d,0x820,0x6f9,0x868),_0x173565(0x1c9,0x95,0x20f,0x182),'yarn.lock',_0x255f51(0x5ad,0x4f8,0x6a6,0x4cb)];async function exists2(_0x18bd4a){try{return await _0x56e75c(_0x18bd4a),!![];}catch{return![];}}async function findUp(_0x12d967,_0x2ec3c9){const _0x57868a={_0x43ef06:0x63,_0x4c47c6:0x5b,_0x4b9303:0x5e1,_0x346967:0x6e3,_0x28b351:0x5a1,_0xaca144:0x6a4};function _0x550816(_0x39c233,_0x231a07,_0x4e32dd,_0x29b01a){return _0x173565(_0x39c233-0x189,_0x231a07-0x17d,_0x4e32dd,_0x39c233-0x55d);}let _0x3ab2d5=_0x1833a3[_0x5185b0(-0x60,0x8a,_0x57868a._0x43ef06,_0x57868a._0x4c47c6)](_0x12d967);const _0x311174=_0x1833a3['extname'](_0x3ab2d5);function _0x5185b0(_0x235189,_0x49878e,_0x370f17,_0x2800f4){return _0x255f51(_0x49878e- -0x4ff,_0x49878e-0x121,_0x370f17,_0x2800f4-0xc1);}if(_0x311174)_0x3ab2d5=_0x1833a3['dirname'](_0x3ab2d5);while(!![]){for(const _0x1f27dc of _0x2ec3c9){if(await exists2(_0x1833a3[_0x550816(_0x57868a._0x4b9303,0x682,0x6e9,_0x57868a._0x346967)](_0x3ab2d5,_0x1f27dc)))return _0x3ab2d5;}const _0x82bef=_0x1833a3[_0x550816(_0x57868a._0x28b351,0x56b,0x4c6,_0x57868a._0xaca144)](_0x3ab2d5);if(_0x82bef===_0x3ab2d5)return void 0x0;_0x3ab2d5=_0x82bef;}}async function hasDenoRoot(_0x51da54){const _0x2affe2={_0x12ffe8:0x10f,_0x29118a:0x5c,_0x588f52:0xd3,_0x422574:0xa3,_0x26d958:0x12c},_0x1c3375={_0x2cc747:0x54f,_0x43c136:0x167},_0x56181d={_0x4ce337:0x6a8,_0x1b34ec:0xca};function _0x16c600(_0x528d6a,_0xbcba32,_0x5143a8,_0x105fb1){return _0x255f51(_0x5143a8- -_0x56181d._0x4ce337,_0xbcba32-0x15c,_0xbcba32,_0x105fb1-_0x56181d._0x1b34ec);}function _0x5bc326(_0x5169fa,_0x39d33c,_0x3dd65d,_0x532070){return _0x255f51(_0x5169fa- -_0x1c3375._0x2cc747,_0x39d33c-_0x1c3375._0x43c136,_0x3dd65d,_0x532070-0x77);}return await exists2(_0x1833a3[_0x16c600(-0x7,-_0x2affe2._0x12ffe8,-0xb8,-_0x2affe2._0x29118a)](_0x51da54,_0x5bc326(_0x2affe2._0x588f52,_0x2affe2._0x422574,_0x2affe2._0x26d958,0x17f)))||await exists2(_0x1833a3['join'](_0x51da54,'deno.jsonc'));}async function resolveTsserverPath(_0x46c724){const _0x5d0c04={_0x560828:0x1f1,_0x547a1d:0x230,_0x896b81:0x2cf,_0x29bc6f:0x216,_0x1833ac:0x10e,_0x360c9d:0x120,_0x362d83:0x1b3,_0x33a0bb:0x203,_0x359f07:0x6e,_0x57359f:0xb1,_0x40b955:0xc3,_0x3263a4:0x24a,_0x4d6f8f:0x111,_0x1cba62:0x1f0,_0x2d5418:0x19a,_0x284c13:0x10e,_0x362e0f:0x19b},_0x5efe44={_0x1dbdcc:0x79,_0x4e99c8:0xdc},_0x8f9f82={_0x20e5d4:0x13d,_0x50b5cb:0x16};function _0x54ad57(_0x527f8f,_0x44a216,_0x22c9eb,_0x9fa2b9){return _0x173565(_0x527f8f-0x77,_0x44a216-_0x8f9f82._0x20e5d4,_0x22c9eb,_0x527f8f- -_0x8f9f82._0x50b5cb);}let _0x5d9d67=_0x1833a3['resolve'](_0x46c724);while(!![]){const _0x28fe3b=_0x1833a3[_0x54ad57(0x6e,0x54,-0xa6,0xb6)](_0x5d9d67,'node_modules','typescript',_0x54ad57(_0x5d0c04._0x560828,_0x5d0c04._0x547a1d,_0x5d0c04._0x896b81,_0x5d0c04._0x29bc6f),_0x54ad57(_0x5d0c04._0x1833ac,0x180,0x4,-0xb));if(await exists2(_0x28fe3b))return _0x28fe3b;const _0x1b576f=_0x1833a3[_0x3b30ac(_0x5d0c04._0x360c9d,0x94,_0x5d0c04._0x362d83,0x160)](_0x5d9d67);if(_0x1b576f===_0x5d9d67)break;_0x5d9d67=_0x1b576f;}const _0x13b762=getLspPackageDir(_0x3b30ac(_0x5d0c04._0x33a0bb,0x284,0x2f6,0x22b)),_0x49fb49=await resolvePackageBinary({'packageName':'typescript','binaryName':'tsc','startDir':_0x46c724});if(!_0x49fb49)return void 0x0;function _0x3b30ac(_0x34a0be,_0x1715db,_0x2fed4f,_0x338369){return _0x173565(_0x34a0be-0x142,_0x1715db-_0x5efe44._0x1dbdcc,_0x1715db,_0x34a0be-_0x5efe44._0x4e99c8);}const _0x1cc2f8=_0x1833a3[_0x54ad57(_0x5d0c04._0x359f07,0x8b,-_0x5d0c04._0x57359f,_0x5d0c04._0x40b955)](_0x13b762,_0x54ad57(0x220,0x2d1,0x318,_0x5d0c04._0x3263a4),_0x54ad57(_0x5d0c04._0x4d6f8f,0x6c,0x68,0x168),_0x54ad57(0x1f1,_0x5d0c04._0x1cba62,_0x5d0c04._0x2d5418,0x2d5),_0x54ad57(_0x5d0c04._0x284c13,0xb2,0x187,_0x5d0c04._0x362e0f));return await exists2(_0x1cc2f8)?_0x1cc2f8:void 0x0;}var TypeScriptServer={'id':_0x173565(0x1b7,0x23c,0x152,0x127),'name':_0x173565(-0x48,0x35,-0x8e,-0x19),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x184d7f){const _0x2b3c8f=await findUp(_0x184d7f,TYPESCRIPT_ROOT_MARKERS);if(!_0x2b3c8f)return void 0x0;return await hasDenoRoot(_0x2b3c8f)?void 0x0:_0x2b3c8f;},async 'spawn'(_0x36e4ca){const _0x5ab28e={_0x10ef80:0x3bb,_0xf9d24c:0x37d,_0x45c016:0x2fe,_0x44c058:0x258,_0x42807c:0x5ee,_0x540841:0x7be,_0x20cb02:0x75b,_0xa127fd:0x356},_0x4fd688={_0x4e9838:0x5a8},_0x13623e={_0x2e1e7e:0x186,_0xd99fa2:0x8d,_0x29be74:0x2c5},_0x1afff0=await resolveTsserverPath(_0x36e4ca);if(!_0x1afff0)return void 0x0;function _0x40e6ed(_0x1239a3,_0x420021,_0x5c4df3,_0xf5a720){return _0x173565(_0x1239a3-_0x13623e._0x2e1e7e,_0x420021-_0x13623e._0xd99fa2,_0x5c4df3,_0xf5a720-_0x13623e._0x29be74);}const _0x7f2116=await resolvePackageBinary({'packageName':_0x40e6ed(0x375,0x2a9,_0x5ab28e._0x10ef80,_0x5ab28e._0xf9d24c),'binaryName':_0x40e6ed(_0x5ab28e._0x45c016,0x272,_0x5ab28e._0x44c058,0x37d),'startDir':_0x36e4ca});function _0x31f058(_0x21b801,_0x158b0d,_0x39fc56,_0x4595c6){return _0x173565(_0x21b801-0x2a,_0x158b0d-0xcd,_0x21b801,_0x39fc56-_0x4fd688._0x4e9838);}if(!_0x7f2116)return void 0x0;return{'process':_0x383c01(_0x7f2116,[_0x31f058(_0x5ab28e._0x42807c,_0x5ab28e._0x540841,0x714,_0x5ab28e._0x20cb02)],{'cwd':_0x36e4ca,'stdio':_0x40e6ed(0x46c,0x31e,_0x5ab28e._0x45c016,_0x5ab28e._0xa127fd)}),'initialization':{'tsserver':{'path':_0x1afff0}}};}},BiomeServer={'id':_0x173565(0x15c,-0xb,0x39,0xce),'name':'Biome\x20Language\x20Server','extensions':BIOME_EXTENSIONS,async 'root'(_0x428f9f){return findUp(_0x428f9f,BIOME_ROOT_MARKERS);},async 'spawn'(_0x4d89c4){const _0x48c1aa={_0x38268e:0x50c,_0x4bd4d7:0x637,_0x3d6aef:0x575,_0x111204:0x203,_0x2aa756:0xa1,_0x4e0960:0x9d,_0x500fd9:0x1ca,_0x3cc3cd:0x12,_0x5a5c5f:0x0,_0x708527:0x105,_0x558ef6:0x5aa,_0x55384e:0x5d4,_0x393875:0x5c0},_0xe8f7a4={_0x346c32:0x110},_0x5f50fc=await findPackageBinary(_0x56d268(_0x48c1aa._0x38268e,_0x48c1aa._0x4bd4d7,0x475,_0x48c1aa._0x3d6aef),_0x4d89c4)??await resolvePackageBinary({'packageName':_0x476353(-_0x48c1aa._0x111204,-_0x48c1aa._0x2aa756,-_0x48c1aa._0x4e0960,-_0x48c1aa._0x500fd9),'binaryName':_0x476353(-0x7a,_0x48c1aa._0x3cc3cd,_0x48c1aa._0x5a5c5f,-_0x48c1aa._0x708527),'startDir':_0x4d89c4});function _0x476353(_0x2b7839,_0x5f3acf,_0x202a70,_0xec9f64){return _0x255f51(_0xec9f64- -0x73f,_0x5f3acf-0x1be,_0x2b7839,_0xec9f64-_0xe8f7a4._0x346c32);}if(!_0x5f50fc)return void 0x0;function _0x56d268(_0x196702,_0x286584,_0x25eac9,_0x30c400){return _0x173565(_0x196702-0x143,_0x286584-0x63,_0x286584,_0x196702-0x43e);}return{'process':_0x383c01(_0x5f50fc,['lsp-proxy',_0x56d268(_0x48c1aa._0x558ef6,_0x48c1aa._0x55384e,_0x48c1aa._0x393875,0x57e)],{'cwd':_0x4d89c4,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x32cd17){const _0x5f2a86={_0x293d75:0x776,_0x2db1ed:0x845,_0x4bb639:0x751,_0x403bc:0x731,_0x566b2:0x542},_0x5d51d1={_0x27cd18:0xb9},_0x413658={_0xb894aa:0x146};function _0x5f214f(_0x5c8d75,_0x3e10d6,_0x442118,_0x3da95d){return _0x255f51(_0x3da95d-0x0,_0x3e10d6-0x1bb,_0x5c8d75,_0x3da95d-_0x413658._0xb894aa);}const _0x2a9644=_0x1833a3[_0x5f214f(_0x5f2a86._0x293d75,_0x5f2a86._0x2db1ed,_0x5f2a86._0x4bb639,_0x5f2a86._0x403bc)](_0x32cd17)[_0x5f214f(0x6c9,0x669,_0x5f2a86._0x566b2,0x63e)]();function _0x4d6a2c(_0x4db0f3,_0x363048,_0xef6f26,_0x22b47b){return _0x255f51(_0x22b47b- -0x3be,_0x363048-_0x5d51d1._0x27cd18,_0xef6f26,_0x22b47b-0xc6);}return BUILTIN_LSP_SERVERS[_0x4d6a2c(0x385,0x37d,0x3cc,0x386)](_0x392402=>_0x392402['extensions'][_0x5f214f(0x60c,0x776,0x648,0x6c1)](_0x2a9644));}function stateKey(_0x2f7380,_0x5dd9ac){return _0x5dd9ac+':'+_0x2f7380['id'];}function diagnosticsKeyToPath(_0xc1575f){const _0x37b151={_0x9c5c18:0x17b,_0x142d84:0x21f},_0xcefd95={_0x5d24cf:0x3c};if(!_0xc1575f['startsWith'](_0x1b1b52(-0x1c1,-_0x37b151._0x9c5c18,-0x293,-_0x37b151._0x142d84)))return _0xc1575f;function _0x1b1b52(_0x441a9a,_0x6b860c,_0xf40e56,_0x1d9424){return _0x255f51(_0x6b860c- -0x721,_0x6b860c-_0xcefd95._0x5d24cf,_0xf40e56,_0x1d9424-0x5b);}return fileURLToPath(_0xc1575f);}function nextFileVersion(_0x40e646,_0x38a489){const _0x58e494={_0x11018f:0x369,_0x57b8cb:0x461,_0x40ce46:0x434,_0x3d8f71:0x335,_0x52ed75:0x135,_0x11cbf4:0x303},_0x317e5f={_0x332052:0x4ab,_0x5a867e:0xdb,_0x1afdec:0xb0},_0x5cac02=(_0x40e646[_0x293a57(_0x58e494._0x11018f,_0x58e494._0x57b8cb,_0x58e494._0x40ce46,_0x58e494._0x3d8f71)][_0x293a57(0x178,0x1f3,_0x58e494._0x52ed75,0x136)](_0x38a489)??0x1)+0x1;_0x40e646[_0xa7c2f3(0x26a,0x340,_0x58e494._0x11cbf4,0x1dc)]['set'](_0x38a489,_0x5cac02);function _0xa7c2f3(_0x2ac83e,_0x16278d,_0x3c00ce,_0x61a85e){return _0x255f51(_0x3c00ce- -_0x317e5f._0x332052,_0x16278d-_0x317e5f._0x5a867e,_0x61a85e,_0x61a85e-_0x317e5f._0x1afdec);}function _0x293a57(_0xbfbc35,_0x5b3ebc,_0x5848c1,_0x372fd1){return _0x173565(_0xbfbc35-0x1c,_0x5b3ebc-0xe3,_0xbfbc35,_0x372fd1-0xf3);}return _0x5cac02;}async function collectClientResults(_0x233297){const _0x33b26b={_0x30cbc6:0x6ba,_0x7a94ab:0x663,_0x313ed4:0x769,_0xb81c2c:0x57d,_0x5c69b:0x738},_0x12069b={_0x46640d:0x1c,_0x10a8dd:0x1e6},_0x34b8c1={_0x5384ee:0x182};function _0x467e00(_0x14462e,_0x2bd746,_0x3f802b,_0x3aa32d){return _0x255f51(_0x2bd746- -0x45a,_0x2bd746-0xa9,_0x3aa32d,_0x3aa32d-_0x34b8c1._0x5384ee);}const _0x55a8a0=await Promise[_0x4f4e19(_0x33b26b._0x30cbc6,0x68f,_0x33b26b._0x7a94ab,_0x33b26b._0x313ed4)](_0x233297);function _0x4f4e19(_0x135ce2,_0x1be0cd,_0x25a3d2,_0x3ef509){return _0x255f51(_0x1be0cd-_0x12069b._0x46640d,_0x1be0cd-_0x12069b._0x10a8dd,_0x135ce2,_0x3ef509-0x1);}return _0x55a8a0[_0x4f4e19(_0x33b26b._0xb81c2c,0x690,_0x33b26b._0x5c69b,0x56a)](_0x372efe=>_0x372efe['status']===_0x467e00(0x19e,0x1e5,0x152,0x242)?_0x372efe[_0x467e00(0x188,0x21f,0x246,0x2a5)]:[]);}function createLspService(_0x431313={}){const _0xeb5e8b={_0x58129c:0x21,_0x4c371d:0x38,_0x1cc1ea:0xf6,_0x30f2fe:0x4a},_0x357da4={_0x182291:0x412},_0x4f4166={_0x53a01d:0x298,_0x8b7f95:0x430,_0x22a3b5:0x467,_0x170d90:0x5b5,_0x2de186:0x4f7,_0x3ef027:0x48f,_0x4419fc:0x4bc,_0x10839c:0x330,_0x41cb58:0x3ca,_0x19f4d8:0x607,_0x43ca98:0x387,_0xf04c22:0x4b5,_0x36e911:0x403,_0x3fa47c:0x29e,_0x1c647e:0x458,_0x2c5382:0x429},_0x2d5a07={_0x125d37:0xf},_0x39d24f={_0x118a33:0xe7,_0x3e6b72:0x68},_0xfa3a14={_0x29dc23:0x667,_0x250edf:0x6e6},_0xa981af={_0x117d07:0x241},_0x15c826={_0x1ac312:0x1d2,_0x17edc3:0x363,_0x47fc75:0x25a},_0x351d65={_0x2d4161:0x33,_0x2401c0:0x99},_0x1662c0={_0x16c0d7:0x5f8,_0x3ea656:0x376},_0x26b477={_0x278e5e:0xd9,_0x2a6298:0x171},_0x55003a={_0x1a471e:0x62},_0x522ff4={_0xa0f3d6:0x25,_0x4baf0f:0x17b,_0x10364b:0xe9},_0x111a0f={_0x430d0e:0x5e0,_0x2eb360:0x55a,_0x2dfc73:0x58,_0x56cf78:0x16},_0xe95033={_0x23d75c:0x16b},_0x342031={_0xf7557b:0x59},_0x571580={_0x1627cd:0x14d,_0x1802fd:0xe4},_0x40cc82={_0x470f82:0xd0,_0x2c1f60:0x62,_0xd236e5:0x67,_0x2fc8c0:0x14},_0x293075={_0x87019:0x3af,_0x43fd30:0xbc,_0xca988:0xa9},_0x530f34={_0x1a7599:0x395},_0x1ab393={_0x1b8cd7:0x537,_0xa74c11:0x4b3},_0x10daa8={_0x406e9e:0x4d,_0x455da6:0x9e},_0x3e9e6c={_0x37df5:0x3f8,_0x58e153:0x29f},_0x95177f={_0x39a36e:0x100,_0x54911d:0x155,_0x4a2643:0x3c1,_0x2aa321:0x33c},_0x59d865={_0x1642a2:0x26,_0x529faa:0x92,_0x59835:0x59,_0x27627a:0x6,_0x14d9ca:0xb5,_0x326a6a:0xb3,_0x21c70f:0x9,_0x3614c0:0xe7,_0x4163c9:0x32,_0x173167:0x339,_0x4d1bbb:0x37e,_0x12a01d:0x237,_0x334ee0:0x306,_0x230278:0x1bf,_0xb236d2:0xd7,_0x549335:0x0,_0x456b37:0xc9,_0x3bed51:0x5a,_0x46fa83:0x179,_0x2b053b:0x6c,_0x7f8c53:0x2d,_0x7a3fa0:0xa2,_0x1e1355:0x25,_0x334dae:0xf1,_0x305920:0x3e5,_0x285d55:0x429},_0x12af76={_0x18eab6:0x3ae,_0xfe5008:0x419,_0x48422e:0x72e,_0x2993af:0x717,_0x57677f:0x723,_0x50ecdd:0x796,_0x122717:0x83d,_0x55260b:0x680,_0x106dea:0x535,_0xbd1241:0x5af,_0x42d04b:0x260,_0x5a57d3:0x2f4,_0x12616b:0x272,_0x409c24:0x2ce,_0x6a5a6f:0x2f4,_0x4db9ce:0x2bc},_0x4f020a={_0xbdc84c:0x603,_0x542f35:0x62c,_0x33f990:0x5ff,_0x76d5d3:0x631,_0x54be19:0x618,_0x179c08:0x50f,_0x248017:0x5fe,_0x40801c:0x5e0,_0x1baa43:0x692,_0x30dffd:0x625,_0x11489b:0x546,_0x524c96:0x4df,_0x1033fe:0x59a},_0x123ec5={_0x3a0338:0x19a,_0x317259:0x13a},_0x1f1dee={_0x569a05:0x321,_0x84ff83:0xa6};function _0x33ba66(_0x48c9da,_0x542abb,_0x39e429,_0x8a55d6){return _0x255f51(_0x48c9da- -_0x1f1dee._0x569a05,_0x542abb-_0x1f1dee._0x84ff83,_0x542abb,_0x8a55d6-0x1b9);}const _0x691357={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x279d81=()=>_0x431313[_0x33ba66(0x370,0x42e,0x27c,0x294)]!==![];async function _0x775b4e(_0x163644,_0x3d5ba8){const _0x5d9fa5={_0x1c093c:0x5d1,_0x210448:0x5e0,_0x377ffb:0x678,_0x34abe5:0x48c,_0x2afe49:0x6a9,_0x248b76:0x5a7,_0x3ebee6:0x5c7,_0x7a2486:0x567,_0x45f268:0x547,_0x5ec192:0x71e,_0x19823f:0x732,_0x25d5f4:0x582,_0x926425:0x6af,_0x58f9ba:0x7ea,_0xd7e97c:0x76c},_0x4df27b={_0x19b1db:0x1b6},_0x9764ce={_0x56673e:0x258},_0x4a6e81={_0x473f58:0x17f,_0x388bc5:0x1f2},_0x4c7392=stateKey(_0x163644,_0x3d5ba8),_0x1b846b=_0x691357[_0x598c3e(_0x4f020a._0xbdc84c,0x595,_0x4f020a._0x542f35,0x496)][_0x3027c0(0x4e4,_0x4f020a._0x33f990,0x4e4,0x611)](_0x595ab2=>_0x595ab2[_0x3027c0(0x448,0x37d,0x4c1,0x44e)]===_0x163644['id']&&_0x595ab2[_0x598c3e(0x4e0,0x5c8,0x677,0x4c8)]===_0x3d5ba8);if(_0x1b846b)return _0x1b846b;if(_0x691357[_0x3027c0(0x50b,_0x4f020a._0x76d5d3,_0x4f020a._0x54be19,0x5f4)][_0x598c3e(0x4d6,_0x4f020a._0x179c08,0x58c,_0x4f020a._0x248017)](_0x4c7392))return void 0x0;function _0x598c3e(_0x66139d,_0xf8f81c,_0x43e24b,_0x561703){return _0x33ba66(_0xf8f81c-_0x4a6e81._0x473f58,_0x66139d,_0x43e24b-0x15c,_0x561703-_0x4a6e81._0x388bc5);}const _0x12e57e=_0x691357[_0x3027c0(_0x4f020a._0x40801c,_0x4f020a._0x1baa43,_0x4f020a._0x30dffd,0x5d8)]['get'](_0x4c7392);if(_0x12e57e)return _0x12e57e;function _0x3027c0(_0x10b643,_0x409dd4,_0x13d3a5,_0x4b0479){return _0x33ba66(_0x10b643-_0x123ec5._0x3a0338,_0x13d3a5,_0x13d3a5-0x116,_0x4b0479-_0x123ec5._0x317259);}const _0x61ee20=((async()=>{function _0x1d5a93(_0x4ae443,_0x39188a,_0x5e5128,_0x57f815){return _0x3027c0(_0x39188a- -_0x9764ce._0x56673e,_0x39188a-0x133,_0x4ae443,_0x57f815-0xcb);}function _0x3aa0f2(_0x5cda3c,_0x4784fd,_0x45d870,_0x4a8cb4){return _0x598c3e(_0x45d870,_0x4784fd-0x188,_0x45d870-_0x4df27b._0x19b1db,_0x4a8cb4-0x79);}try{const _0x3d7a47=await _0x163644[_0x3aa0f2(0x53e,_0x5d9fa5._0x1c093c,0x4b3,_0x5d9fa5._0x210448)](_0x3d5ba8);if(!_0x3d7a47)return _0x691357[_0x3aa0f2(0x5cd,_0x5d9fa5._0x377ffb,0x5bb,0x732)][_0x3aa0f2(_0x5d9fa5._0x34abe5,0x588,0x4e9,0x580)](_0x4c7392),void 0x0;const _0x3affe4=await createLspClient({'server':_0x163644,'root':_0x3d5ba8,'handle':_0x3d7a47}),_0x53341a=_0x691357[_0x3aa0f2(_0x5d9fa5._0x2afe49,0x71d,0x680,0x837)][_0x3aa0f2(_0x5d9fa5._0x248b76,0x651,0x665,0x60f)](_0x258e08=>_0x258e08[_0x1d5a93(0x103,0x1f0,0x1b6,0x21f)]===_0x163644['id']&&_0x258e08[_0x1d5a93(0x460,0x38b,0x2be,0x2c3)]===_0x3d5ba8);if(_0x53341a)return await _0x3affe4[_0x3aa0f2(_0x5d9fa5._0x3ebee6,_0x5d9fa5._0x7a2486,_0x5d9fa5._0x34abe5,_0x5d9fa5._0x45f268)](),_0x53341a;return _0x691357['clients'][_0x3aa0f2(0x6f8,0x696,_0x5d9fa5._0x5ec192,0x768)](_0x3affe4),_0x3affe4;}catch{return _0x691357[_0x3aa0f2(0x6b2,0x678,_0x5d9fa5._0x19823f,0x79e)][_0x3aa0f2(_0x5d9fa5._0x25d5f4,0x588,_0x5d9fa5._0x926425,0x5f5)](_0x4c7392),void 0x0;}finally{_0x691357[_0x3aa0f2(0x663,0x74d,0x636,_0x5d9fa5._0x58f9ba)][_0x3aa0f2(0x664,0x6b9,_0x5d9fa5._0xd7e97c,0x7de)](_0x4c7392);}})());return _0x691357['spawning'][_0x3027c0(_0x4f020a._0x11489b,_0x4f020a._0x524c96,0x66d,_0x4f020a._0x1033fe)](_0x4c7392,_0x61ee20),_0x61ee20;}async function _0xffd93(_0xfa1ac8,_0x30ae58){const _0x31ff51={_0x2efcf3:0x9b,_0x597642:0x36};if(!_0x279d81())return[];function _0x2944f6(_0x518936,_0x3adfdf,_0x2986bc,_0xce656a){return _0x33ba66(_0x3adfdf- -_0x31ff51._0x2efcf3,_0x2986bc,_0x2986bc-_0x31ff51._0x597642,_0xce656a-0x15c);}function _0x351330(_0x278642,_0xfdef71,_0x9b4041,_0x94c69){return _0x33ba66(_0x9b4041-0x312,_0xfdef71,_0x9b4041-0x6,_0x94c69-0x101);}const _0x301f16=[];for(const _0xea7510 of getServersForFile(_0xfa1ac8)){const _0x504374=await _0xea7510[_0x2944f6(0x3b2,_0x12af76._0x18eab6,_0x12af76._0xfe5008,0x3b9)](_0xfa1ac8);if(!_0x504374)continue;const _0x2e48ba=stateKey(_0xea7510,_0x504374);if(_0x691357[_0x351330(0x6e0,_0x12af76._0x48422e,0x683,0x7a5)][_0x351330(_0x12af76._0x2993af,0x694,0x6a2,_0x12af76._0x57677f)](_0x2e48ba))continue;const _0x39cb58=_0x691357[_0x351330(_0x12af76._0x50ecdd,_0x12af76._0x122717,0x728,0x612)][_0x351330(_0x12af76._0x55260b,_0x12af76._0x106dea,0x65c,_0x12af76._0xbd1241)](_0xeecb4e=>_0xeecb4e[_0x351330(0x5ac,0x54e,0x5c0,0x4b5)]===_0xea7510['id']&&_0xeecb4e[_0x351330(0x698,0x712,0x75b,0x66e)]===_0x504374);if(_0x39cb58){_0x301f16[_0x2944f6(_0x12af76._0x42d04b,_0x12af76._0x5a57d3,_0x12af76._0x12616b,_0x12af76._0x409c24)](_0x39cb58);continue;}if(!_0x30ae58)continue;const _0x47f547=await _0x775b4e(_0xea7510,_0x504374);if(_0x47f547)_0x301f16[_0x2944f6(0x221,_0x12af76._0x6a5a6f,_0x12af76._0x4db9ce,0x3e8)](_0x47f547);}return _0x301f16;}async function _0x344bf8(_0x36e9c4,_0x1afe50=![]){const _0x20bcc6={_0x572369:0x81},_0x414cc6={_0x3d5239:0xd1,_0x4fee75:0x1bf},_0x29de55={_0x48b39a:0x80},_0x125c01={_0x3a0f42:0xaf},_0xa44cc8=await _0xffd93(_0x36e9c4,!![]);function _0x5a9090(_0x1ad9a1,_0x147197,_0x38508a,_0x3b0640){return _0x33ba66(_0x147197-_0x125c01._0x3a0f42,_0x3b0640,_0x38508a-0x140,_0x3b0640-0xdd);}function _0x237645(_0x491238,_0x86252f,_0x4a1de6,_0x5db0d3){return _0x33ba66(_0x5db0d3- -0x131,_0x491238,_0x4a1de6-_0x29de55._0x48b39a,_0x5db0d3-0x4c);}await Promise[_0x237645(0xb6,0x6f,_0x95177f._0x39a36e,_0x95177f._0x54911d)](_0xa44cc8[_0x5a9090(_0x95177f._0x4a2643,_0x95177f._0x2aa321,0x3ee,0x412)](async _0x2c26ad=>{function _0x25c435(_0x1c0815,_0x3fed5e,_0x4e503e,_0x203437){return _0x5a9090(_0x1c0815-_0x414cc6._0x3d5239,_0x1c0815- -_0x414cc6._0x4fee75,_0x4e503e-0x12b,_0x4e503e);}!_0x691357[_0x2c05ec(_0x59d865._0x1642a2,-0x40,-_0x59d865._0x529faa,-_0x59d865._0x59835)][_0x2c05ec(-_0x59d865._0x27627a,_0x59d865._0x14d9ca,_0x59d865._0x326a6a,-_0x59d865._0x21c70f)](_0x2c26ad[_0x2c05ec(-0x8a,-0x2d,_0x59d865._0x3614c0,-_0x59d865._0x4163c9)]+':'+_0x2c26ad[_0x25c435(_0x59d865._0x173167,0x2ed,_0x59d865._0x4d1bbb,0x2c3)]+':'+_0x36e9c4)&&(await _0x2c26ad[_0x25c435(0x218,_0x59d865._0x12a01d,0x25c,_0x59d865._0x334ee0)][_0x2c05ec(_0x59d865._0x230278,0xc4,_0x59d865._0xb236d2,_0x59d865._0x549335)]({'path':_0x36e9c4}),_0x691357[_0x25c435(0x18b,0x258,0xec,0xdd)][_0x2c05ec(-_0x59d865._0x456b37,-_0x59d865._0x3bed51,-_0x59d865._0x46fa83,-0xca)](_0x2c26ad[_0x2c05ec(-_0x59d865._0x2b053b,-_0x59d865._0x7f8c53,-0xb1,_0x59d865._0x7a3fa0)]+':'+_0x2c26ad['root']+':'+_0x36e9c4));await _0x2c26ad['notify'][_0x2c05ec(0x4d,_0x59d865._0x1e1355,_0x59d865._0x334dae,-0x9a)]({'path':_0x36e9c4,'version':nextFileVersion(_0x691357,_0x36e9c4)});function _0x2c05ec(_0x5b3bb3,_0x150978,_0x31b1b8,_0x30a9e5){return _0x5a9090(_0x5b3bb3-_0x20bcc6._0x572369,_0x150978- -0x38a,_0x31b1b8-0xf,_0x30a9e5);}if(_0x1afe50)await _0x2c26ad[_0x25c435(0x31a,_0x59d865._0x305920,_0x59d865._0x285d55,0x352)]({'path':_0x36e9c4});}));}async function _0x119369(_0x28bb16){const _0x43c19b={_0x1ddc07:0x16a,_0x2ba719:0x2f},_0x3738c0={_0x157085:0x1e9,_0x2049c1:0xc9};function _0x3c6816(_0x518aea,_0xe5c8c,_0x4f2ebe,_0x189abe){return _0x33ba66(_0xe5c8c-0x351,_0x189abe,_0x4f2ebe-_0x3738c0._0x157085,_0x189abe-_0x3738c0._0x2049c1);}function _0x40bd9d(_0x34dc66,_0xd72359,_0x2c48d2,_0x336f6b){return _0x33ba66(_0x34dc66- -_0x43c19b._0x1ddc07,_0x336f6b,_0x2c48d2-_0x43c19b._0x2ba719,_0x336f6b-0x168);}return await _0x344bf8(_0x28bb16[_0x40bd9d(0x2f3,0x337,0x41f,_0x3e9e6c._0x37df5)],![]),_0xffd93(_0x28bb16[_0x40bd9d(0x2f3,0x2b2,_0x3e9e6c._0x58e153,0x3da)],![]);}async function _0x41516e(_0x2ff635){const _0x29b4d0={_0x18cb7c:0x1d6,_0x3cf3e4:0xf1};function _0x3938f7(_0x4eefda,_0x31ad9d,_0x704200,_0x1bd62e){return _0x33ba66(_0x704200- -0x392,_0x31ad9d,_0x704200-_0x10daa8._0x406e9e,_0x1bd62e-_0x10daa8._0x455da6);}function _0x209076(_0x47b17c,_0x33313e,_0x4519c6,_0xeceba4){return _0x33ba66(_0x4519c6-_0x29b4d0._0x18cb7c,_0x33313e,_0x4519c6-_0x29b4d0._0x3cf3e4,_0xeceba4-0x51);}const _0x31c9f3=await _0x119369(_0x2ff635);return collectClientResults(_0x31c9f3[_0x209076(_0x1ab393._0x1b8cd7,_0x1ab393._0xa74c11,0x463,0x367)](_0x2bfb5e=>_0x2bfb5e[_0x209076(0x486,0x49b,0x55e,0x4b9)][_0x3938f7(-0x36,-0x99,0x6b,-0x46)](_0x2ff635)));}return{'isEnabled':_0x279d81,async 'hasClients'(_0x1d1ad5){function _0x1688dd(_0x30584a,_0x5b35af,_0x94a85e,_0x4e24d8){return _0x33ba66(_0x94a85e-0x3d,_0x30584a,_0x94a85e-0x160,_0x4e24d8-0xab);}return(await _0xffd93(_0x1d1ad5,![]))['length']>0x0||getServersForFile(_0x1d1ad5)[_0x1688dd(_0x530f34._0x1a7599,0x383,0x3d0,0x42d)]>0x0;},'touchFile':_0x344bf8,async 'diagnostics'(){const _0x5381a1={_0x51a7a1:0x109,_0x4d257c:0x175};function _0x4426ea(_0xc9235e,_0x2ef47e,_0xa09ac3,_0x2d567a){return _0x33ba66(_0x2d567a- -_0x293075._0x87019,_0xa09ac3,_0xa09ac3-_0x293075._0x43fd30,_0x2d567a-_0x293075._0xca988);}const _0x30a59e={};function _0x14b7e4(_0x10f77b,_0x4f8a7e,_0x5821d8,_0x375834){return _0x33ba66(_0x4f8a7e- -0x33a,_0x10f77b,_0x5821d8-_0x5381a1._0x51a7a1,_0x375834-_0x5381a1._0x4d257c);}for(const _0x4b01e1 of _0x691357[_0x4426ea(_0x40cc82._0x470f82,-0x3c,_0x40cc82._0x2c1f60,_0x40cc82._0xd236e5)]){for(const [_0x244b8d,_0x2a4720]of _0x4b01e1[_0x4426ea(-0x191,-0xa0,_0x40cc82._0x2fc8c0,-0x6c)]){_0x30a59e[diagnosticsKeyToPath(_0x244b8d)]=_0x2a4720;}}return _0x30a59e;},async 'diagnosticsForFile'(_0xbf6c1f){await _0x344bf8(_0xbf6c1f,!![]);const _0x1959df=[];for(const _0x2f5d00 of await _0xffd93(_0xbf6c1f,![])){for(const [_0x223f4f,_0x5276a9]of _0x2f5d00['diagnostics']){if(diagnosticsKeyToPath(_0x223f4f)===_0xbf6c1f)_0x1959df['push'](..._0x5276a9);}}return _0x1959df;},async 'definition'(_0x13e67c){function _0x39332d(_0x481b9c,_0x10e6cc,_0x4ab155,_0x12ae42){return _0x33ba66(_0x481b9c- -0x12,_0x4ab155,_0x4ab155-_0x571580._0x1627cd,_0x12ae42-_0x571580._0x1802fd);}function _0x48757f(_0x2b517c,_0x267ddd,_0x29c952,_0x49cf71){return _0x33ba66(_0x49cf71- -0x11c,_0x267ddd,_0x29c952-0xd1,_0x49cf71-0x184);}return collectClientResults((await _0x119369(_0x13e67c))['map'](_0x20fa32=>_0x20fa32[_0x39332d(0x376,0x2aa,0x25e,0x34e)][_0x39332d(0x476,0x541,0x4f3,0x44e)](_0x13e67c)));},async 'references'(_0x134aaa){const _0xa06fe9={_0x44387c:0x1c9,_0x327763:0x1dc};function _0x4b6f9e(_0x30cec9,_0x35dd38,_0x5eb97c,_0x151963){return _0x33ba66(_0x5eb97c- -0x1c3,_0x151963,_0x5eb97c-_0xa06fe9._0x44387c,_0x151963-_0xa06fe9._0x327763);}function _0x3d2b84(_0x4d4d5d,_0x18e8e3,_0x4c4ad0,_0x493249){return _0x33ba66(_0x4c4ad0- -0xdc,_0x18e8e3,_0x4c4ad0-0xbb,_0x493249-_0x342031._0xf7557b);}return collectClientResults((await _0x119369(_0x134aaa))[_0x3d2b84(0xa8,_0xe95033._0x23d75c,0x1b1,0x1c7)](_0x3abb17=>_0x3abb17[_0x4b6f9e(0x17d,0x2e3,0x1c5,0x227)][_0x3d2b84(0x1dc,0x182,0x232,0x221)](_0x134aaa)));},async 'hover'(_0x31ab9c){const _0x1a9c08={_0x3983fa:0x31f,_0x1daa1b:0x6b},_0x161c52={_0x28ab98:0x353,_0x583b3b:0x40,_0x1b678e:0xf3};function _0x339f81(_0x28a877,_0x3bd7e4,_0x157c96,_0x5b1b94){return _0x33ba66(_0x28a877-_0x161c52._0x28ab98,_0x3bd7e4,_0x157c96-_0x161c52._0x583b3b,_0x5b1b94-_0x161c52._0x1b678e);}function _0x38f6d0(_0x2b7d59,_0x521228,_0xb50fca,_0xfc0aca){return _0x33ba66(_0x521228- -_0x1a9c08._0x3983fa,_0xfc0aca,_0xb50fca-0x147,_0xfc0aca-_0x1a9c08._0x1daa1b);}const _0x2f4285=await Promise['allSettled']((await _0x119369(_0x31ab9c))[_0x339f81(_0x111a0f._0x430d0e,_0x111a0f._0x2eb360,0x554,0x4d2)](_0x22dee7=>_0x22dee7[_0x38f6d0(0x6c,0x69,0x177,-0x1)][_0x339f81(0x7cc,0x888,0x6c7,0x69c)](_0x31ab9c)));return _0x2f4285[_0x38f6d0(-_0x111a0f._0x2dfc73,0x34,_0x111a0f._0x56cf78,0xb0)](_0x46708f=>_0x46708f[_0x38f6d0(0x170,0x66,-0xb6,-0x42)]===_0x38f6d0(0xb9,-0x1,-0x9,0x6f)&&_0x46708f[_0x38f6d0(0x3c,0x39,0x137,0x9c)]?[_0x46708f[_0x339f81(0x6ab,0x5f4,0x767,0x789)]]:[]);},async 'documentSymbol'(_0x1d7b78){const _0x40e3f8={_0x31c388:0x142},_0x301cbf={_0x468df3:0x34f};function _0x3803a2(_0x14fbf2,_0x4f3fda,_0x3a1f8c,_0x3e039f){return _0x33ba66(_0x14fbf2- -_0x301cbf._0x468df3,_0x3e039f,_0x3a1f8c-0x12b,_0x3e039f-0x11f);}function _0x100caa(_0x27ac94,_0x531c3d,_0x2a9971,_0x3060fd){return _0x33ba66(_0x27ac94- -0x207,_0x3060fd,_0x2a9971-0x102,_0x3060fd-_0x40e3f8._0x31c388);}return await _0x344bf8(_0x1d7b78,![]),collectClientResults((await _0xffd93(_0x1d7b78,![]))[_0x100caa(0x86,_0x522ff4._0xa0f3d6,_0x522ff4._0x4baf0f,_0x522ff4._0x10364b)](_0x3b09fe=>_0x3b09fe[_0x3803a2(0x39,-0xd6,-0x8a,0xd0)]['documentSymbol'](_0x1d7b78)));},async 'workspaceSymbol'(_0x2aa137){function _0x2c3a76(_0x3d7291,_0x34e207,_0x424372,_0x2268df){return _0x33ba66(_0x424372- -0x5,_0x2268df,_0x424372-_0x55003a._0x1a471e,_0x2268df-0x19c);}function _0x45bf40(_0x4fbcc0,_0x3f8a35,_0x5c7250,_0x3b79a0){return _0x33ba66(_0x3b79a0-0x22e,_0x4fbcc0,_0x5c7250-_0x26b477._0x278e5e,_0x3b79a0-_0x26b477._0x2a6298);}return collectClientResults(_0x691357[_0x45bf40(0x643,0x765,_0x1662c0._0x16c0d7,0x644)][_0x2c3a76(0x1d9,0x3a4,0x288,_0x1662c0._0x3ea656)](_0x21ddce=>_0x21ddce[_0x2c3a76(0x338,0x492,0x383,0x3de)][_0x2c3a76(0x4cc,0x409,0x3dc,0x3f2)](_0x2aa137)));},async 'implementation'(_0x6245a0){function _0x2a2842(_0x4ce618,_0x4897cb,_0x4abb19,_0x42590c){return _0x33ba66(_0x42590c- -_0x351d65._0x2d4161,_0x4ce618,_0x4abb19-_0x351d65._0x2401c0,_0x42590c-0x1b8);}function _0x79b68c(_0x1d561d,_0x12b3e8,_0x30e6b4,_0x4fd9cd){return _0x33ba66(_0x12b3e8- -0x33b,_0x30e6b4,_0x30e6b4-0x105,_0x4fd9cd-0xf);}return collectClientResults((await _0x119369(_0x6245a0))[_0x2a2842(_0x15c826._0x1ac312,0x2bd,_0x15c826._0x17edc3,_0x15c826._0x47fc75)](_0x500200=>_0x500200[_0x79b68c(-0x48,0x4d,0xef,0x3e)][_0x2a2842(0x39b,0x3c1,0x3e9,0x32b)](_0x6245a0)));},async 'prepareCallHierarchy'(_0x492ffb){return _0x41516e(_0x492ffb);},async 'incomingCalls'(_0x548463){const _0x401e99={_0x16e7cc:0xdd,_0x3fdf13:0x14c},_0x31e062=await _0x41516e(_0x548463);function _0x39b320(_0x4be5a3,_0x1f985b,_0xf73afe,_0x410bd2){return _0x33ba66(_0x4be5a3- -_0xa981af._0x117d07,_0x410bd2,_0xf73afe-0x140,_0x410bd2-0x17c);}const _0x597490=await _0x119369(_0x548463);function _0x49a8c6(_0xe2a0f1,_0x54dbdf,_0x30448e,_0xc262b0){return _0x33ba66(_0xe2a0f1-0x314,_0xc262b0,_0x30448e-_0x401e99._0x16e7cc,_0xc262b0-_0x401e99._0x3fdf13);}return collectClientResults(_0x597490[_0x49a8c6(_0xfa3a14._0x29dc23,0x5b0,_0xfa3a14._0x250edf,0x5c4)](_0x5e0e4d=>_0x31e062[_0x39b320(0x4c,0x99,0xf9,0x12a)](_0xd35554=>_0x5e0e4d['request'][_0x49a8c6(0x784,0x85c,0x6b2,0x702)](_0xd35554))));},async 'outgoingCalls'(_0x2378f4){const _0x52ab82={_0x4f439c:0x93,_0x2a1371:0x4e,_0x2ba891:0x3d},_0x5915b0=await _0x41516e(_0x2378f4),_0x36d6e3=await _0x119369(_0x2378f4);function _0x2c4315(_0x209057,_0x5e7c1b,_0x4f1d6a,_0x40821b){return _0x33ba66(_0x209057-_0x52ab82._0x4f439c,_0x4f1d6a,_0x4f1d6a-_0x52ab82._0x2a1371,_0x40821b-_0x52ab82._0x2ba891);}function _0x5b6fe4(_0x3eef3b,_0x71119b,_0x524199,_0x35ec5e){return _0x33ba66(_0x3eef3b- -0x2ab,_0x35ec5e,_0x524199-_0x39d24f._0x118a33,_0x35ec5e-_0x39d24f._0x3e6b72);}return collectClientResults(_0x36d6e3[_0x5b6fe4(0xa8,-0x68,0x111,-_0x2d5a07._0x125d37)](_0x259b0e=>_0x5915b0[_0x5b6fe4(-0x1e,0xfb,-0xf5,0xe4)](_0x5c4f69=>_0x259b0e[_0x2c4315(0x41b,0x329,0x4cd,0x4bf)][_0x2c4315(0x372,0x39b,0x274,0x25b)](_0x5c4f69))));},async 'shutdown'(){const _0x117021={_0x578bc3:0x13d,_0x4a908d:0x165},_0x5791ab={_0x4de150:0x70,_0x55363e:0x121,_0x399ea7:0xea};if(_0x691357['shutdownStarted'])return;function _0x4da748(_0x482830,_0x11d73c,_0x5b2879,_0x599cce){return _0x33ba66(_0x11d73c-_0x5791ab._0x4de150,_0x599cce,_0x5b2879-_0x5791ab._0x55363e,_0x599cce-_0x5791ab._0x399ea7);}_0x691357[_0x4da748(_0x4f4166._0x53a01d,0x3a8,0x33b,_0x4f4166._0x8b7f95)]=!![],await Promise[_0xff5283(_0x4f4166._0x22a3b5,_0x4f4166._0x170d90,_0x4f4166._0x2de186,_0x4f4166._0x3ef027)](_0x691357['clients'][_0xff5283(_0x4f4166._0x4419fc,0x353,_0x4f4166._0x10839c,_0x4f4166._0x41cb58)](_0x348521=>_0x348521[_0xff5283(0x3e6,0x2e4,0x437,0x39d)]())),_0x691357['clients']=[],_0x691357[_0xff5283(_0x4f4166._0x19f4d8,0x61a,0x55f,0x583)]['clear'](),_0x691357['broken'][_0x4da748(_0x4f4166._0x43ca98,0x2c2,0x247,0x3cf)](),_0x691357[_0x4da748(_0x4f4166._0xf04c22,0x4fd,0x5f5,_0x4f4166._0x36e911)][_0xff5283(_0x4f4166._0x3fa47c,_0x4f4166._0x1c647e,_0x4f4166._0x2c5382,0x38f)]();function _0xff5283(_0x1e5ed5,_0x64dce6,_0x15c409,_0x4f0b8b){return _0x33ba66(_0x4f0b8b-_0x117021._0x578bc3,_0x1e5ed5,_0x15c409-0x8f,_0x4f0b8b-_0x117021._0x4a908d);}_0x691357[_0xff5283(0x2bd,0x4fd,0x498,0x3d8)]['clear']();},'status'(){const _0x53530b={_0x3cb1c1:0x10b,_0x59d685:0x16c};function _0x26b960(_0x5159bd,_0x37b095,_0x2c4c68,_0x4dcfc1){return _0x33ba66(_0x37b095- -0x319,_0x5159bd,_0x2c4c68-_0x53530b._0x3cb1c1,_0x4dcfc1-_0x53530b._0x59d685);}function _0x2344ea(_0x56c758,_0x41b6b1,_0x25acbc,_0x581bbf){return _0x33ba66(_0x41b6b1- -_0x357da4._0x182291,_0x56c758,_0x25acbc-0x145,_0x581bbf-0x108);}return{'connectedClients':_0x691357[_0x26b960(0x215,0xfd,_0xeb5e8b._0x58129c,0x15c)][_0x2344ea(-_0xeb5e8b._0x4c371d,-0x7f,-_0xeb5e8b._0x1cc1ea,_0xeb5e8b._0x30f2fe)]};}};}import{spawn as _0x45a0d8}from'child_process';import{statSync}from'fs';import*as _0x500cef from'os';import*as _0x552678 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x23ef80 from'path';function isPathInside(_0x34f2e3,_0x253a53){const _0x6b466a={_0x4756e2:0x23,_0x34a875:0x73,_0xf5d4:0x2,_0xe5191c:0x1bf,_0x11ee4e:0x168,_0x265f08:0x184,_0x1ebaa3:0x2b3},_0x286de1={_0x22795b:0x587,_0xb13887:0x53},_0x50c9a9={_0xa15f95:0x15d},_0x4a745e=_0x23ef80[_0x4a3ff3(_0x6b466a._0x4756e2,-_0x6b466a._0x34a875,_0x6b466a._0xf5d4,-0x12e)](_0x34f2e3);function _0x233525(_0x150af4,_0x260142,_0x337ee2,_0x5f0d95){return _0x255f51(_0x5f0d95- -_0x50c9a9._0xa15f95,_0x260142-0x11a,_0x260142,_0x5f0d95-0x9c);}const _0x3ea64f=_0x23ef80[_0x4a3ff3(0x91,0xdb,0x61,0x105)](_0x4a745e,_0x253a53);function _0x4a3ff3(_0x250d8e,_0x1df668,_0x252906,_0x34ba82){return _0x255f51(_0x252906- -_0x286de1._0x22795b,_0x1df668-_0x286de1._0xb13887,_0x250d8e,_0x34ba82-0x14b);}return _0x3ea64f===''||!_0x3ea64f[_0x4a3ff3(_0x6b466a._0xe5191c,_0x6b466a._0x11ee4e,_0x6b466a._0x265f08,_0x6b466a._0x1ebaa3)]('..')&&!_0x23ef80[_0x233525(0x546,0x388,0x4c9,0x431)](_0x3ea64f);}function _0x173565(_0x11378a,_0x323658,_0x99fa73,_0x31320d){const _0x10f4a7={_0x277fbf:0x1f8};return _0x4100(_0x31320d- -_0x10f4a7._0x277fbf,_0x99fa73);}function resolveWorkspacePath(_0x44edc0,_0x15eb87){return resolveAllowedPath(_0x44edc0,[],_0x15eb87);}function resolveAllowedPath(_0x50aeb6,_0x206389,_0x1c5734){const _0x1f888e={_0x19fea4:0x19a,_0x2624b5:0x1d4,_0x5cfbbb:0x278,_0x21af83:0x1e,_0x233289:0xe4,_0x441808:0x14c},_0x1bd2e4={_0x358884:0x2c8,_0x4a7764:0x1e4},_0x5dcbdf={_0x367948:0x1be},_0x23c3f2=_0x23ef80['resolve'](_0x50aeb6),_0x24e17c=_0x23ef80[_0x32991c(-_0x1f888e._0x19fea4,-_0x1f888e._0x2624b5,-0xb6,-0x80)](_0x23c3f2,_0x1c5734),_0x323cbf=[_0x23c3f2,..._0x206389[_0x4d15ee(0x2a0,0x2e6,_0x1f888e._0x5cfbbb,0x385)](_0x5bb3c9=>_0x23ef80[_0x32991c(-0x19a,-0x141,-0x20f,-0xdf)](_0x5bb3c9))];if(_0x323cbf['some'](_0x19c2cf=>isPathInside(_0x19c2cf,_0x24e17c)))return _0x24e17c;function _0x32991c(_0x13f85a,_0x500bda,_0x510a15,_0x1eb48d){return _0x255f51(_0x13f85a- -0x723,_0x500bda-0x191,_0x500bda,_0x1eb48d-_0x5dcbdf._0x367948);}function _0x4d15ee(_0x2cdd82,_0x44c4d1,_0xe65940,_0x320f69){return _0x255f51(_0x44c4d1- -_0x1bd2e4._0x358884,_0x44c4d1-0x154,_0x320f69,_0x320f69-_0x1bd2e4._0x4a7764);}throw new ToolExecutionError(_0x32991c(-_0x1f888e._0x21af83,_0x1f888e._0x233289,-_0x1f888e._0x441808,-0x100)+_0x1c5734,{'path':_0x1c5734,'rootDir':_0x23c3f2,'allowedDirs':_0x323cbf});}async function assertWorkspaceFile(_0x438dd8){const _0x368b34={_0x3fdc41:0x362,_0xf79669:0x2db,_0x51d34f:0xaa,_0x283362:0xd5,_0xa5f3ed:0x1a5},_0x16a108={_0x3bee18:0x125},_0x5eece2={_0x16b5c2:0xd,_0x99a480:0x1bb};function _0x54565b(_0x30da67,_0xed0632,_0x57f4d0,_0x1247fe){return _0x173565(_0x30da67-_0x5eece2._0x16b5c2,_0xed0632-_0x5eece2._0x99a480,_0x30da67,_0x57f4d0- -0x4b);}const _0x208f27=await stat(_0x438dd8);function _0x489213(_0xfc5008,_0x1ca61f,_0xbbf6d,_0x4961e8){return _0x255f51(_0xbbf6d- -0x406,_0x1ca61f-_0x16a108._0x3bee18,_0x4961e8,_0x4961e8-0x1ea);}if(!_0x208f27[_0x489213(0x3da,0x37e,_0x368b34._0x3fdc41,_0x368b34._0xf79669)]())throw new ToolExecutionError(_0x54565b(0x1d4,_0x368b34._0x51d34f,_0x368b34._0x283362,_0x368b34._0xa5f3ed)+_0x438dd8,{'path':_0x438dd8});}function isProbablyBinary(_0x256012){return _0x256012['includes'](0x0);}var DEFAULT_DESCRIPTION=_0x173565(0x9a,0xe7,0x12c,0x11d),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x486eee){return _0x486eee instanceof Error;}function shellExists(_0x186263){const _0x3e96d3={_0x54c02c:0x1db,_0x202e69:0x1be,_0x122d40:0x157};function _0x4ef218(_0x364a4e,_0x8d8ba8,_0x1c68d7,_0x2531b6){return _0x255f51(_0x8d8ba8- -0x521,_0x8d8ba8-0x175,_0x364a4e,_0x2531b6-0x171);}try{const _0x5465f4=statSync(_0x186263);return _0x5465f4['isFile']()&&(_0x5465f4[_0x4ef218(0x307,_0x3e96d3._0x54c02c,_0x3e96d3._0x202e69,_0x3e96d3._0x122d40)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x15424a){const _0x30f23b={_0x202486:0x339,_0x5c2832:0x101,_0x207189:0xac,_0x5e1cfe:0xd6,_0x31c5c5:0xdb,_0x5de7de:0x1fe,_0x1471c4:0x2f6,_0x13a3ba:0x3a4,_0x4115a5:0x4ba,_0x2ba716:0x2f8,_0x2c302a:0x1d0,_0x28ee04:0x37a,_0x442f37:0x1af,_0x40d779:0xbf,_0x33f663:0x1f6,_0x7e19ea:0x1d8,_0x551c6f:0x2ac,_0x5c8cae:0x47,_0x31cf3e:0x295,_0x386292:0x14c,_0xcfe64c:0x174,_0x2f0d12:0x1fa,_0x6ed9b3:0x283},_0x133b86={_0x5d0cf2:0x1b9},_0x47729a={_0x2679ba:0x156};if(_0x15424a)return _0x15424a;if(_0x500cef[_0x4076eb(0x1f5,0x27f,_0x30f23b._0x202486,0x2d8)]()===_0x4076eb(_0x30f23b._0x5c2832,-0x5a,_0x30f23b._0x207189,_0x30f23b._0x5e1cfe))return process[_0x116d41(0x286,_0x30f23b._0x31c5c5,_0x30f23b._0x5de7de,0x109)][_0x116d41(_0x30f23b._0x1471c4,0x284,_0x30f23b._0x13a3ba,_0x30f23b._0x4115a5)]||_0x116d41(_0x30f23b._0x2ba716,_0x30f23b._0x2c302a,0x27b,_0x30f23b._0x28ee04);const _0x2909d1=['/bin/bash','/bin/sh',_0x116d41(0xa9,0x2b8,_0x30f23b._0x442f37,_0x30f23b._0x40d779),_0x116d41(0x267,_0x30f23b._0x33f663,_0x30f23b._0x7e19ea,_0x30f23b._0x551c6f)];for(const _0x4afe02 of _0x2909d1){if(shellExists(_0x4afe02))return _0x4afe02;}const _0x507a62=process[_0x4076eb(_0x30f23b._0x5c8cae,_0x30f23b._0x31cf3e,_0x30f23b._0x386292,_0x30f23b._0xcfe64c)][_0x4076eb(0x296,0x148,_0x30f23b._0x2f0d12,0x1cd)];function _0x4076eb(_0x5afb16,_0x119ead,_0xf81cc7,_0x21a218){return _0x173565(_0x5afb16-0x156,_0x119ead-_0x47729a._0x2679ba,_0xf81cc7,_0x21a218-0xd9);}if(_0x507a62&&shellExists(_0x507a62))return _0x507a62;function _0x116d41(_0x500ccc,_0x5b0d4f,_0x4dfb6b,_0x37af75){return _0x255f51(_0x4dfb6b- -0x409,_0x5b0d4f-0x13d,_0x5b0d4f,_0x37af75-_0x133b86._0x5d0cf2);}return _0x4076eb(0x25f,0x1ab,0x1b8,_0x30f23b._0x6ed9b3);}function buildShellArgs(_0x463c1f,_0x3b4e14){const _0x4ec4b1={_0x3eab40:0x3d8,_0x469ac3:0x320,_0x2eccf2:0x3f1,_0x570301:0x271,_0x492323:0x1ea,_0x2adf31:0xe5,_0x45676c:0xdd,_0x26d792:0x83,_0x2bbb44:0x66,_0x5ab0b2:0x407,_0x371cac:0x113,_0x104f4c:0x193,_0x8118c3:0x1ce,_0x347bad:0x2c5},_0x5a9620={_0x15abdf:0x75,_0xd6e5fd:0x121},_0x5e8cbd={_0x2d2a37:0x753,_0x2f9d86:0xd1};function _0x22d62d(_0x38504d,_0x2651fb,_0x3bcc13,_0x38fca6){return _0x255f51(_0x3bcc13- -_0x5e8cbd._0x2d2a37,_0x2651fb-_0x5e8cbd._0x2f9d86,_0x2651fb,_0x38fca6-0x27);}if(_0x500cef[_0xbb16aa(_0x4ec4b1._0x3eab40,0x357,_0x4ec4b1._0x469ac3,_0x4ec4b1._0x2eccf2)]()===_0x22d62d(-_0x4ec4b1._0x570301,-0x1e1,-_0x4ec4b1._0x492323,-_0x4ec4b1._0x2adf31)){const _0x141ce1=/cmd(\.exe)?$/i[_0x22d62d(-_0x4ec4b1._0x45676c,-0x78,-_0x4ec4b1._0x26d792,_0x4ec4b1._0x2bbb44)](_0x3b4e14);return _0x141ce1?['/d','/s','/c',_0x463c1f]:[_0xbb16aa(_0x4ec4b1._0x5ab0b2,0x294,0x309,0x27f),_0xbb16aa(_0x4ec4b1._0x371cac,_0x4ec4b1._0x104f4c,_0x4ec4b1._0x8118c3,_0x4ec4b1._0x347bad),'-Command',_0x463c1f];}function _0xbb16aa(_0x3f8e80,_0x2724f3,_0x25efcf,_0x40d34c){return _0x173565(_0x3f8e80-0x89,_0x2724f3-_0x5a9620._0x15abdf,_0x40d34c,_0x25efcf-_0x5a9620._0xd6e5fd);}return['-c',_0x463c1f];}function stripAnsiAndControls(_0xb28361){const _0x4af47f={_0x159d42:0x26f,_0x5e52bb:0x266,_0x45bb37:0x114,_0x4c60b2:0x6f,_0x2a7151:0x1f4,_0x2897ec:0x309,_0x5ed30:0x19d,_0x21865b:0x27a,_0x533ed7:0x27f,_0x526906:0xf8,_0x403fee:0x186,_0x9f6e24:0xe3,_0x4ee6ea:0x148,_0x43c56c:0x174,_0x426a8b:0x5f,_0x2a2635:0x24,_0x1e4643:0x102,_0xd9232a:0x178,_0x75661d:0x105,_0x27f4e7:0x186},_0x34ecb2={_0x3029fa:0x15b},_0x7107e0={_0xa8ef1:0x574,_0x4865af:0x1c};_0xb28361=stripVTControlCharacters(_0xb28361);const _0x1e7d9e='\x1b',_0x2c1cc8='\x07';_0xb28361=_0xb28361[_0x224cd9(0x90,_0x4af47f._0x159d42,_0x4af47f._0x5e52bb,0x186)](new RegExp(_0x3a7a4a(_0x4af47f._0x45bb37,-_0x4af47f._0x4c60b2,0xca,-0x12)+_0x2c1cc8+_0x3a7a4a(-0x6,_0x4af47f._0x2a7151,0x1d6,0x102)+_0x2c1cc8,'g'),''),_0xb28361=_0xb28361['replace'](new RegExp(_0x224cd9(0x21e,_0x4af47f._0x2897ec,_0x4af47f._0x5ed30,_0x4af47f._0x21865b)+_0x1e7d9e+'\x5c\x5c','g'),''),_0xb28361=_0xb28361[_0x224cd9(_0x4af47f._0x533ed7,_0x4af47f._0x526906,0x281,_0x4af47f._0x403fee)](new RegExp(_0x2c1cc8,'g'),''),_0xb28361=_0xb28361['replace'](new RegExp(_0x1e7d9e+'[P_^][\x5cs\x5cS]*?'+_0x1e7d9e+'\x5c\x5c','g'),''),_0xb28361=_0xb28361['replace'](new RegExp(_0x1e7d9e+_0x224cd9(0x45,_0x4af47f._0x9f6e24,_0x4af47f._0x4ee6ea,_0x4af47f._0x43c56c),'g'),''),_0xb28361=_0xb28361[_0x3a7a4a(_0x4af47f._0x426a8b,_0x4af47f._0x2a2635,_0x4af47f._0x1e4643,0xda)](/[\u0080-\u009F]/g,''),_0xb28361=_0xb28361['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x3a7a4a(_0x64008b,_0x4803a8,_0x14f259,_0x13122b){return _0x255f51(_0x13122b- -_0x7107e0._0xa8ef1,_0x4803a8-_0x7107e0._0x4865af,_0x4803a8,_0x13122b-0x8b);}function _0x224cd9(_0x264aa7,_0x24c1e3,_0xb3ff38,_0x40081e){return _0x255f51(_0x40081e- -0x4c8,_0x24c1e3-_0x34ecb2._0x3029fa,_0xb3ff38,_0x40081e-0x19a);}return _0xb28361=_0xb28361[_0x224cd9(0x25a,_0x4af47f._0xd9232a,_0x4af47f._0x75661d,_0x4af47f._0x27f4e7)](/[\u23CE\u2424]/g,''),_0xb28361;}function resolveWorkingDirectory(_0x2cdb52,_0x475f1c,_0x3df959){const _0x3a1d2a={_0x378855:0x450,_0x3e383b:0x1b1,_0xc3a97:0x11e},_0x45df88={_0x64587a:0xf7,_0x9a1e80:0xc9},_0x4dd451={_0x25f73f:0xf1,_0x132081:0x3c8};function _0x469120(_0x1ecb2e,_0x28a6d4,_0x26b86f,_0x30c772){return _0x173565(_0x1ecb2e-_0x4dd451._0x25f73f,_0x28a6d4-0x99,_0x30c772,_0x1ecb2e-_0x4dd451._0x132081);}const _0x318411=resolveAllowedPath(_0x475f1c,_0x3df959,_0x2cdb52??'.');function _0x28df8b(_0x4211d5,_0x24816,_0x2676e3,_0x2b37bf){return _0x173565(_0x4211d5-0x19c,_0x24816-_0x45df88._0x64587a,_0x4211d5,_0x2b37bf-_0x45df88._0x9a1e80);}try{const _0x4c4f2b=statSync(_0x318411);if(!_0x4c4f2b[_0x28df8b(0x29c,0x3fa,0x430,0x307)]())throw new ToolExecutionError(_0x469120(0x57e,_0x3a1d2a._0x378855,0x5a0,0x6a9)+_0x318411,{'cwd':_0x318411});return _0x318411;}catch(_0x53475b){if(_0x53475b instanceof ToolExecutionError)throw _0x53475b;throw new ToolExecutionError(_0x28df8b(_0x3a1d2a._0x3e383b,_0x3a1d2a._0xc3a97,0x19a,0x1cc)+_0x318411,{'cwd':_0x318411});}}function killProcessGroup(_0x26ae6e,_0x499345,_0x3aa317=_0x255f51(0x611,0x5f9,0x5b6,0x5b5)){const _0x57d822={_0x1d8063:0xf0,_0x11c83b:0x250,_0x5131fa:0x255,_0x58454a:0x12c,_0xad9c36:0x5cd,_0x459604:0x5fa,_0x2f63f8:0x423,_0x4cc7fc:0x3cf,_0x830edd:0x547,_0x4210f9:0x4d7,_0x22ef2b:0x3b,_0x302824:0xb3,_0x29d59f:0x28,_0x47da25:0xdc,_0x209c3a:0xb3,_0x5e23a2:0x580,_0x54e52f:0x662,_0x48c5d2:0x63e,_0x2618fd:0x12e,_0x4b60a3:0x6e},_0x57c3ce={_0x4f9b01:0xe2},_0x328696={_0x1f988f:0x1b5};function _0x5422db(_0x177657,_0x4127f5,_0xb7718d,_0x523d33){return _0x173565(_0x177657-_0x328696._0x1f988f,_0x4127f5-0xe6,_0x177657,_0x523d33-0x459);}function _0x2de97d(_0x3f7262,_0x36af7e,_0x2237b4,_0x1dd97c){return _0x173565(_0x3f7262-_0x57c3ce._0x4f9b01,_0x36af7e-0xde,_0x3f7262,_0x1dd97c- -0xb8);}if(!_0x26ae6e[_0x2de97d(_0x57d822._0x1d8063,0x1bb,0x1ea,0x12d)])return;if(_0x499345)try{_0x45a0d8(_0x2de97d(_0x57d822._0x11c83b,0x167,_0x57d822._0x5131fa,_0x57d822._0x58454a),[_0x5422db(0x64a,_0x57d822._0xad9c36,0x566,_0x57d822._0x459604),_0x26ae6e['pid']['toString'](),'/T','/F'],{'stdio':_0x5422db(_0x57d822._0x2f63f8,_0x57d822._0x4cc7fc,_0x57d822._0x830edd,_0x57d822._0x4210f9)});return;}catch{_0x26ae6e[_0x2de97d(0x17b,_0x57d822._0x22ef2b,0x7a,_0x57d822._0x302824)](_0x3aa317);return;}try{process[_0x2de97d(-_0x57d822._0x29d59f,_0x57d822._0x47da25,0x1d2,_0x57d822._0x209c3a)](-_0x26ae6e[_0x5422db(_0x57d822._0x5e23a2,0x70f,_0x57d822._0x54e52f,_0x57d822._0x48c5d2)],_0x3aa317);}catch{_0x26ae6e[_0x2de97d(_0x57d822._0x2618fd,0x127,-_0x57d822._0x4b60a3,_0x57d822._0x302824)](_0x3aa317);}}function appendChunk(_0x9cf6fe,_0x56f38a,_0x362897,_0x15e15b,_0x3a85e4){const _0x570e12={_0x3117d8:0x203,_0x11ca31:0x24d,_0x508334:0x320,_0x46a813:0x5c1,_0x5f1a94:0x63e,_0x47f404:0x53a,_0x276132:0x535},_0x4265c6={_0x1d2360:0x4b1,_0x1589f5:0x4e},_0x5e4fcd={_0x28932f:0x6e},_0x307620=_0x15e15b?stripAnsiAndControls(_0x362897):_0x362897;if(_0x307620[_0x2e878e(0x1e5,0x179,_0x570e12._0x3117d8,0x15a)]===0x0)return;_0x9cf6fe[_0x2e878e(_0x570e12._0x11ca31,_0x570e12._0x508334,0x1ff,0x1f1)](_0x307620);function _0x205045(_0x3c3eab,_0x40b4f9,_0x359cc5,_0x1cb25f){return _0x255f51(_0x40b4f9- -0x72,_0x40b4f9-0xc7,_0x359cc5,_0x1cb25f-_0x5e4fcd._0x28932f);}_0x56f38a[_0x205045(_0x570e12._0x46a813,_0x570e12._0x5f1a94,_0x570e12._0x47f404,_0x570e12._0x276132)](_0x307620);function _0x2e878e(_0x4d20c2,_0x436ad5,_0x18f659,_0x2bb91f){return _0x255f51(_0x18f659- -_0x4265c6._0x1d2360,_0x436ad5-_0x4265c6._0x1589f5,_0x2bb91f,_0x2bb91f-0x177);}_0x3a85e4();}function createBashTool(_0x1463fb={}){const _0x73af50={_0x57289e:0x20c,_0x4dc6d6:0xfd,_0x372cab:0xb3,_0x1b2be2:0x19b,_0x8e272d:0x96,_0x5d96b2:0x6ef,_0xd9ffb5:0x726,_0x23c739:0x6a9,_0x447aea:0x556,_0x453443:0x683,_0x3a2005:0x5d3,_0x2fadfc:0x59f,_0x47f0a4:0x639,_0x3a37f5:0x736,_0x200e46:0x1e,_0xbbfba2:0xcd,_0x3a7d22:0xe0,_0x47f34a:0x9a,_0xf3b9bd:0x7a,_0x39b3d6:0x31,_0x498552:0x48,_0x11e890:0x6f,_0x32ed5b:0x7fd,_0x3ffd41:0x649,_0x1673df:0x82,_0x4c90fb:0x65c,_0x5378bb:0xd0,_0x2dd9ec:0x8d,_0x533e49:0x23,_0x27f419:0x52,_0x4f4ed1:0x5f7},_0x4ab724={_0x18172d:0x6e4,_0x2ff0cc:0x38f,_0x3c81f5:0x3c3,_0x4e435e:0x7cd,_0x5e15d2:0x7e5,_0x30ef80:0x6fa,_0x1ccf16:0x7ee,_0x15bfb1:0x71c,_0x1121ff:0x37,_0x5e3276:0x78e,_0x48a736:0x8c6,_0x4ed86f:0x1f,_0x494abe:0x45,_0x194420:0xcf,_0x4cf6c4:0x28e,_0x3cf1a5:0x105,_0x2d355f:0x16d,_0x3a7c41:0x65e,_0x524f29:0x65c,_0x40cbb4:0x5c,_0x292a56:0x17d,_0x500fec:0x20f,_0x15f40e:0x150,_0x110c01:0x74d,_0x3d0e9c:0x73c,_0x2d9dd8:0x66f,_0x3fa36e:0x66e,_0x2754f7:0x6da,_0x2a43c6:0x6c1,_0x472fd2:0x858,_0x371e93:0x2e6,_0x2a9da5:0x238,_0x105293:0x4f,_0x975041:0x26,_0x54ca2c:0x12b,_0x110f4f:0x118,_0x419858:0x616,_0x240811:0x79f,_0x5953de:0x549,_0xc68f11:0x63f,_0x2e8880:0x20d,_0x53b1fd:0x73b,_0x48834f:0x6d8,_0x113463:0x726,_0x112188:0x872,_0x77229a:0x873,_0x5acd44:0x761,_0x37b28c:0x6a3,_0x15978a:0x87f,_0x5bed1e:0x603,_0x16a495:0x662,_0x547465:0x811,_0x5819cb:0x3f5,_0x2b870a:0x714,_0x411536:0x885,_0x31c501:0x1d6,_0xe866fa:0x21a,_0x6cc0d8:0x165,_0x287bd9:0x154,_0xdf6950:0x17f,_0x9cb278:0x2dd,_0x3c43a3:0x25e,_0x3c09ac:0x1ab,_0x292039:0x2c1,_0x2fb8fa:0x7f2,_0x2722ef:0x6b0,_0x4bb9b8:0x838,_0x41304d:0x655,_0x3a03d7:0x70e,_0x73f4e9:0x66a,_0x580e7b:0x6f3,_0x59b593:0x67b,_0x3b2f35:0x5ad,_0x398aff:0xfe,_0x506246:0x5c4,_0x935583:0x6fc,_0x31affd:0x734,_0x1e3027:0x63f,_0x13c5d5:0x647,_0x582252:0x764,_0x5e36a3:0x688,_0x283e89:0x758,_0x1298e:0x6e9,_0x5e2117:0x5fe,_0x1b6f86:0x64b},_0xcf247={_0x5a21d7:0x41c,_0x5c5d22:0x4ba},_0x19d9b7={_0x2ec917:0x10c,_0x15f9f2:0x751},_0x1c303d={_0xc9b908:0x1a0},_0x248ec7={_0x29ec81:0x12,_0x3878c4:0x509};function _0x1b8bd4(_0x2c1934,_0x1dbffa,_0x2326b9,_0xdc71d0){return _0x173565(_0x2c1934-0x4a,_0x1dbffa-_0x248ec7._0x29ec81,_0x2326b9,_0xdc71d0-_0x248ec7._0x3878c4);}const _0xe3f087=_0x552678[_0x270b6a(-_0x73af50._0x57289e,-_0x73af50._0x4dc6d6,-0x156,-_0x73af50._0x372cab)](_0x1463fb[_0x270b6a(-_0x73af50._0x1b2be2,_0x73af50._0x8e272d,-0x95,-0x5b)]??process[_0x1b8bd4(0x7e0,_0x73af50._0x5d96b2,0x645,_0x73af50._0xd9ffb5)]()),_0x138dae=(_0x1463fb[_0x1b8bd4(_0x73af50._0x23c739,0x63e,_0x73af50._0x447aea,_0x73af50._0x453443)]??[])[_0x1b8bd4(_0x73af50._0x3a2005,_0x73af50._0x2fadfc,0x525,0x54b)](_0x9c61f2=>_0x552678[_0x270b6a(-0x1f1,-0x148,-0x156,-0x220)](_0x9c61f2));function _0x270b6a(_0x590e9e,_0x3612eb,_0x3a9fea,_0x2bb20f){return _0x255f51(_0x3a9fea- -0x6df,_0x3612eb-_0x1c303d._0xc9b908,_0x3612eb,_0x2bb20f-0xeb);}const _0x5831c9=_0x1463fb[_0x1b8bd4(_0x73af50._0x47f0a4,_0x73af50._0x3a37f5,0x775,0x73d)]??DEFAULT_TIMEOUT_MS,_0x40136b=_0x1463fb[_0x270b6a(_0x73af50._0x200e46,-_0x73af50._0xbbfba2,-_0x73af50._0x3a7d22,-_0x73af50._0x47f34a)]??!![],_0x2dcf59=_0x1463fb[_0x270b6a(-_0x73af50._0xf3b9bd,_0x73af50._0x39b3d6,0x33,_0x73af50._0x498552)]??_0x270b6a(-0xd6,0x16b,0x42,-_0x73af50._0x11e890);return defineTool({'name':_0x2dcf59,'description':_0x1463fb[_0x1b8bd4(0x636,_0x73af50._0x32ed5b,_0x73af50._0x3ffd41,0x6ec)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x270b6a(-0x88,-0x123,-_0x73af50._0x1673df,0x8f),'properties':{'command':{'type':'string'},'cwd':{'type':_0x1b8bd4(0x53c,0x63b,0x574,_0x73af50._0x4c90fb)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x270b6a(_0x73af50._0x5378bb,-_0x73af50._0x2dd9ec,-_0x73af50._0x533e49,_0x73af50._0x27f419)}},'required':[_0x1b8bd4(0x636,0x762,_0x73af50._0x4f4ed1,0x639)]},async *'execute'(_0x34f44f,_0x399e8b){const _0x187c64={_0x116ce5:0x2e8,_0x4513fc:0x46b,_0x38eef5:0x27d,_0x4a2571:0x3a7,_0x3a0fa9:0x362,_0x470f20:0x2cb},_0x1f037a={_0xf3adf8:0xdf,_0x4ecf3c:0x121,_0x56662f:0x6a,_0x5a7d25:0x14c,_0x3da735:0x4c,_0x5efa90:0x146,_0x366147:0x1ac,_0x26e070:0x57,_0x18a5be:0x16},_0x11cf8b={_0x46a550:0x3e},_0x25f95f={_0x3c7d1c:0x39},_0x28ac9e={_0xb00127:0x8f,_0x6fbd4e:0x49,_0x2653d0:0x5c,_0x25bfcb:0x6a6,_0x1317cc:0x68a},_0x2d203c={_0x33dc5b:0x2fa,_0x34e33f:0x3d2,_0x81f6f6:0x1ca},_0x2a79eb={_0x124fc5:0x4f4},_0x33d020={_0x480663:0x3a,_0x3b8172:0x152},_0x581fe5={_0x48f061:0x32e,_0x4b195b:0x2bd,_0x1789f4:0x3ed},_0x308196={_0x1756be:0x13c},_0x4d092b={_0x3dce5b:0x245},_0x50fb6c=_0x34f44f[_0x4a08e0(0x734,_0x4ab724._0x18172d,0x6ca,0x62f)]??_0x5831c9;function _0x4c0979(_0x19cf77,_0x153bcd,_0x5cd9ce,_0xf4f48b){return _0x270b6a(_0x19cf77-0x12f,_0x153bcd,_0xf4f48b-_0x4d092b._0x3dce5b,_0xf4f48b-0x9a);}if(!Number[_0x4c0979(_0x4ab724._0x2ff0cc,0x27a,_0x4ab724._0x3c81f5,0x2f3)](_0x50fb6c)||_0x50fb6c<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x34f44f['command']});throwIfAborted(_0x399e8b[_0x4a08e0(_0x4ab724._0x4e435e,_0x4ab724._0x5e15d2,_0x4ab724._0x30ef80,_0x4ab724._0x1ccf16)]);const _0x4b6af8=resolveWorkingDirectory(_0x34f44f[_0x4a08e0(0x7de,_0x4ab724._0x15bfb1,0x921,0x7fb)],_0xe3f087,_0x138dae),_0x900c2f=_0x34f44f[_0x4c0979(-0x2f,_0x4ab724._0x1121ff,0x83,0xf7)]??![],_0x151863=resolveDefaultShell(_0x1463fb[_0x4a08e0(0x6bf,0x884,0x6df,_0x4ab724._0x5e3276)]),_0x11642e=buildShellArgs(_0x34f44f[_0x4a08e0(0x6fb,0x646,0x82b,0x70e)],_0x151863),_0x10dae0=_0x500cef[_0x4a08e0(_0x4ab724._0x48a736,0x798,0x8ff,0x7dd)]()===_0x4c0979(-_0x4ab724._0x4ed86f,0x59,_0x4ab724._0x494abe,_0x4ab724._0x194420);let _0x260c89;try{_0x260c89=_0x45a0d8(_0x151863,_0x11642e,{'cwd':_0x4b6af8,'env':{...process[_0x4c0979(0xa2,_0x4ab724._0x4cf6c4,_0x4ab724._0x3cf1a5,_0x4ab724._0x2d355f)],..._0x1463fb['env']??{}},'stdio':_0x900c2f?[_0x4a08e0(0x5ed,_0x4ab724._0x3a7c41,0x6c3,_0x4ab724._0x524f29),_0x4c0979(0xdc,0x19e,_0x4ab724._0x40cbb4,0x150),_0x4c0979(_0x4ab724._0x292a56,0x251,_0x4ab724._0x500fec,_0x4ab724._0x15f40e)]:[_0x4c0979(0x211,0x173,0x25c,_0x4ab724._0x15f40e),_0x4a08e0(0x6cb,_0x4ab724._0x110c01,_0x4ab724._0x3d0e9c,_0x4ab724._0x2d9dd8),_0x4a08e0(0x551,_0x4ab724._0x3fa36e,0x69e,0x66f)],'shell':![],'windowsHide':!![],'detached':!_0x10dae0});}catch(_0x4b558d){if(isErrnoException(_0x4b558d)&&_0x4b558d[_0x4a08e0(0x720,0x832,0x774,0x76a)]===_0x4a08e0(_0x4ab724._0x2754f7,0x7b3,0x785,_0x4ab724._0x4e435e))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x151863,{'command':_0x34f44f[_0x4a08e0(_0x4ab724._0x2a43c6,0x6c4,0x72a,0x70e)],'cwd':_0x4b6af8,'shellPath':_0x151863});throw new ToolExecutionError(_0x4b558d instanceof Error?_0x4b558d['message']:String(_0x4b558d),{'command':_0x34f44f['command'],'cwd':_0x4b6af8,'shellPath':_0x151863});}const _0x4044a4=[];function _0x4a08e0(_0x5ed5e5,_0x1d5016,_0x34ea64,_0x16f707){return _0x270b6a(_0x5ed5e5-_0x19d9b7._0x2ec917,_0x34ea64,_0x16f707-_0x19d9b7._0x15f9f2,_0x16f707-0x13d);}const _0xd562ba=[],_0x5e32e3=new StringDecoder(_0x4a08e0(0x660,_0x4ab724._0x472fd2,0x6e5,0x744)),_0x40fde7=new StringDecoder(_0x4c0979(0x1ee,_0x4ab724._0x371e93,0x337,_0x4ab724._0x2a9da5));let _0xb31111,_0x30660b=![],_0x255ed3;const _0x474e59=()=>{if(!_0xb31111)return;const _0x1b0e51=_0xb31111;_0xb31111=void 0x0,_0x1b0e51();},_0x42274b=async()=>{const _0x3fbea8={_0x5c7ffa:0x16,_0x35bb2f:0x45};if(_0xd562ba[_0x2ac16d(0x560,_0xcf247._0x5a21d7,0x4f2,_0xcf247._0x5c5d22)]>0x0||_0x30660b)return;function _0x2ac16d(_0x5357d2,_0x3bd3aa,_0x2e0dcc,_0x40915c){return _0x4a08e0(_0x5357d2-_0x3fbea8._0x5c7ffa,_0x3bd3aa-_0x3fbea8._0x35bb2f,_0x2e0dcc,_0x40915c- -0x26c);}await new Promise(_0x504ea8=>{_0xb31111=_0x504ea8;});},_0x53c7c2=_0x2f2d5c=>{function _0x4035b4(_0x3b734b,_0x56f447,_0xd6b9bb,_0x545485){return _0x4c0979(_0x3b734b-_0x308196._0x1756be,_0x56f447,_0xd6b9bb-0x8a,_0x545485-0x1a2);}appendChunk(_0x4044a4,_0xd562ba,_0x5e32e3[_0x4035b4(0x3bd,_0x581fe5._0x48f061,_0x581fe5._0x4b195b,_0x581fe5._0x1789f4)](_0x2f2d5c),_0x40136b,_0x474e59);},_0x534c52=_0x547212=>{function _0x4416a8(_0x4bb6ea,_0xd0cb76,_0x305b87,_0x59ff51){return _0x4a08e0(_0x4bb6ea-0x96,_0xd0cb76-0xf2,_0x4bb6ea,_0xd0cb76- -0x6e7);}appendChunk(_0x4044a4,_0xd562ba,_0x40fde7[_0x4416a8(-_0x33d020._0x480663,0x70,0x75,_0x33d020._0x3b8172)](_0x547212),_0x40136b,_0x474e59);};_0x260c89[_0x4c0979(_0x4ab724._0x105293,_0x4ab724._0x975041,_0x4ab724._0x54ca2c,_0x4ab724._0x110f4f)]?.['on'](_0x4a08e0(_0x4ab724._0x419858,0x7c1,_0x4ab724._0x240811,0x719),_0x53c7c2),_0x260c89[_0x4a08e0(_0x4ab724._0x5953de,0x658,_0x4ab724._0x3d0e9c,_0x4ab724._0xc68f11)]?.['on'](_0x4c0979(0xf8,0x287,0x130,_0x4ab724._0x2e8880),_0x534c52);let _0xa076d8=![],_0x4b7811;const _0x220fee=addAbortListener(_0x399e8b['signal'],()=>{const _0x41ddc8={_0x31799c:0xde};_0x255ed3=toAbortError(_0x399e8b[_0xfbab6(0x22e,_0x2d203c._0x33dc5b,_0x2d203c._0x34e33f,0x2e3)][_0xfbab6(_0x2d203c._0x81f6f6,0x2f8,0x2a2,0x3c8)]);function _0x91502c(_0x5cfdfc,_0x54dc71,_0x3f03d2,_0x262700){return _0x4a08e0(_0x5cfdfc-_0x41ddc8._0x31799c,_0x54dc71-0x2e,_0x5cfdfc,_0x262700- -0x742);}_0x30660b=!![],_0x474e59();function _0xfbab6(_0x26244b,_0x2b2dfc,_0x37e6a8,_0x2f2b1a){return _0x4a08e0(_0x26244b-0xbe,_0x2b2dfc-0x50,_0x2f2b1a,_0x2b2dfc- -_0x2a79eb._0x124fc5);}try{killProcessGroup(_0x260c89,_0x10dae0);}catch{}});try{const _0x4a277a=new Promise((_0x349210,_0x1b0f5c)=>{const _0x4a4394={_0x5e674f:0x1f9},_0x3af132={_0x1fb2a2:0x56,_0x553bac:0xf2,_0x544c47:0xa9,_0x53f833:0x161},_0x2d6c9a={_0x51a044:0x2da},_0x41b559=()=>{function _0x142fc7(_0x485215,_0x15e970,_0xc43f58,_0x2274a5){return _0x4100(_0x485215- -0x1f3,_0x2274a5);}function _0x24d1d0(_0x123abe,_0x5f2df8,_0x53a3e8,_0x2ac054){return _0x4100(_0x53a3e8-_0x2d6c9a._0x51a044,_0x123abe);}_0x4b7811&&(clearTimeout(_0x4b7811),_0x4b7811=void 0x0),_0x260c89[_0x142fc7(_0x28ac9e._0xb00127,-_0x28ac9e._0x6fbd4e,0x4b,-_0x28ac9e._0x2653d0)]('error',_0x2b4d62),_0x260c89['off'](_0x24d1d0(_0x28ac9e._0x25bfcb,0x6ee,_0x28ac9e._0x1317cc,0x58c),_0x50c140);};function _0x30da90(_0x182060,_0x21c431,_0x52087d,_0x3e0bdc){return _0x4a08e0(_0x182060-0x111,_0x21c431-_0x25f95f._0x3c7d1c,_0x182060,_0x52087d- -0x2d8);}function _0x377bdc(_0x25ffa5,_0x247a2c,_0x1ce85f,_0x453e3a){return _0x4c0979(_0x25ffa5-0xf,_0x453e3a,_0x1ce85f-_0x11cf8b._0x46a550,_0x25ffa5-0x1e1);}const _0x2b4d62=_0x15ce54=>{_0x30660b=!![],_0x474e59(),_0x41b559(),_0x1b0f5c(_0x255ed3??_0x15ce54);},_0x50c140=(_0x18826f,_0x1b8e36)=>{_0xa076d8=!![],appendChunk(_0x4044a4,_0xd562ba,_0x5e32e3[_0x2fbab0(_0x3af132._0x1fb2a2,_0x3af132._0x553bac,0x161,0x175)](),_0x40136b,_0x474e59),appendChunk(_0x4044a4,_0xd562ba,_0x40fde7[_0x2fbab0(0x45,_0x3af132._0x544c47,_0x3af132._0x53f833,0x81)](),_0x40136b,_0x474e59),_0x30660b=!![];function _0x2b28dd(_0x145f42,_0x1c75a8,_0x5db657,_0x2608a1){return _0x4100(_0x145f42-0xd6,_0x2608a1);}_0x474e59(),_0x41b559();function _0x2fbab0(_0x128e48,_0x19fd42,_0x56d27b,_0xdbfb0){return _0x4100(_0x56d27b- -0x190,_0x19fd42);}if(_0x255ed3){_0x1b0f5c(_0x255ed3);return;}_0x349210({'code':_0x18826f,'signal':_0x1b8e36});};_0x4b7811=setTimeout(()=>{_0x30660b=!![],_0x474e59();function _0x5f25ba(_0x2f1489,_0x2e17f2,_0x567493,_0x36cd72){return _0x4100(_0x567493- -_0x4a4394._0x5e674f,_0x2f1489);}function _0x3fecfa(_0x59750b,_0x224fd6,_0x3ac40e,_0x4bccfb){return _0x4100(_0x59750b- -0x275,_0x3ac40e);}_0x41b559();try{killProcessGroup(_0x260c89,_0x10dae0);}catch{}_0x1b0f5c(new ToolExecutionError(_0x3fecfa(_0x1f037a._0xf3adf8,0x1d4,_0x1f037a._0x4ecf3c,0x1f1)+_0x50fb6c+_0x3fecfa(_0x1f037a._0x56662f,_0x1f037a._0x5a7d25,_0x1f037a._0x3da735,_0x1f037a._0x5efa90),{'command':_0x34f44f[_0x3fecfa(0xb3,_0x1f037a._0x366147,_0x1f037a._0x26e070,_0x1f037a._0x18a5be)],'cwd':_0x4b6af8,'shellPath':_0x151863,'timeoutMs':_0x50fb6c,'timedOut':!![]}));},_0x50fb6c),_0x260c89[_0x377bdc(0x362,_0x187c64._0x116ce5,_0x187c64._0x4513fc,_0x187c64._0x38eef5)](_0x30da90(0x4c5,0x4b3,_0x187c64._0x4a2571,0x303),_0x2b4d62),_0x260c89[_0x377bdc(_0x187c64._0x3a0fa9,0x353,_0x187c64._0x470f20,0x355)](_0x30da90(0x448,0x583,0x4be,0x49a),_0x50c140);});while(_0xd562ba[_0x4a08e0(_0x4ab724._0x53b1fd,_0x4ab724._0x48834f,0x732,_0x4ab724._0x113463)]>0x0||!_0x30660b){if(_0xd562ba['length']===0x0){await _0x42274b();continue;}const _0x3c3c89=_0xd562ba['shift']();_0x3c3c89!==void 0x0&&(yield _0x3c3c89);}const _0x2cdc74=await _0x4a277a,_0x11a96e=_0x900c2f?_0x4a08e0(_0x4ab724._0x112188,_0x4ab724._0x77229a,0x752,_0x4ab724._0x5acd44)+(_0x2cdc74[_0x4a08e0(_0x4ab724._0x37b28c,0x753,_0x4ab724._0x15978a,0x76a)]??0x0):_0x4044a4[_0x4a08e0(_0x4ab724._0x5bed1e,0x588,0x73a,_0x4ab724._0x16a495)](''),_0x101c3f={'command':_0x34f44f['command'],'cwd':_0x4b6af8,'exitCode':_0x2cdc74[_0x4a08e0(_0x4ab724._0x547465,0x816,0x64a,0x76a)]??0x0,'signal':_0x2cdc74[_0x4c0979(_0x4ab724._0x5819cb,0x366,0x249,0x2e2)],'ignoreOutput':_0x900c2f,'shellPath':_0x151863,'timeoutMs':_0x50fb6c};if(_0x2cdc74[_0x4a08e0(_0x4ab724._0x2b870a,0x879,0x6f5,0x76a)]!==0x0)throw new ToolExecutionError(_0x11a96e||'Command\x20exited\x20with\x20code\x20'+(_0x2cdc74[_0x4a08e0(_0x4ab724._0x411536,0x677,0x831,0x76a)]??0x0),_0x101c3f);return createToolOutput(_0x11a96e,_0x101c3f);}catch(_0x59c6f0){while(_0xd562ba[_0x4c0979(0x229,_0x4ab724._0x31c501,0x1aa,_0x4ab724._0xe866fa)]>0x0){const _0x4b01a7=_0xd562ba[_0x4c0979(0x1bc,0x272,_0x4ab724._0x6cc0d8,_0x4ab724._0x287bd9)]();_0x4b01a7!==void 0x0&&(yield _0x4b01a7);}if(_0x59c6f0 instanceof ToolExecutionError)throw _0x59c6f0;if(_0x255ed3)throw _0x255ed3;if(isErrnoException(_0x59c6f0)&&_0x59c6f0[_0x4c0979(_0x4ab724._0xdf6950,0x333,_0x4ab724._0x9cb278,_0x4ab724._0x3c43a3)]===_0x4c0979(0x2cc,0x331,_0x4ab724._0x3c09ac,_0x4ab724._0x292039))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x151863,{'command':_0x34f44f[_0x4a08e0(0x752,_0x4ab724._0x2fb8fa,0x5de,0x70e)],'cwd':_0x4b6af8,'shellPath':_0x151863});throw new ToolExecutionError(_0x59c6f0 instanceof Error?_0x59c6f0[_0x4a08e0(_0x4ab724._0x2722ef,0x6ca,_0x4ab724._0x4bb9b8,0x771)]:String(_0x59c6f0),{'command':_0x34f44f[_0x4a08e0(_0x4ab724._0x41304d,_0x4ab724._0x3a03d7,_0x4ab724._0x73f4e9,_0x4ab724._0x3a03d7)],'cwd':_0x4b6af8,'shellPath':_0x151863});}finally{_0x4b7811&&clearTimeout(_0x4b7811);_0x220fee(),_0x260c89[_0x4a08e0(0x6bc,_0x4ab724._0x580e7b,0x699,0x624)]?.[_0x4a08e0(_0x4ab724._0x59b593,0x6dc,_0x4ab724._0x3b2f35,0x668)](_0x4c0979(0x1e8,0x134,_0x4ab724._0x398aff,0x20d),_0x53c7c2),_0x260c89[_0x4a08e0(_0x4ab724._0x506246,_0x4ab724._0x935583,_0x4ab724._0x31affd,_0x4ab724._0x1e3027)]?.[_0x4a08e0(0x5b0,_0x4ab724._0x13c5d5,_0x4ab724._0x582252,0x668)](_0x4a08e0(0x65a,_0x4ab724._0x5e36a3,0x7cf,0x719),_0x534c52);if(!_0xa076d8&&_0x260c89['pid']&&!_0x260c89[_0x4a08e0(_0x4ab724._0x283e89,_0x4ab724._0x1298e,_0x4ab724._0x5e2117,_0x4ab724._0x1b6f86)])try{killProcessGroup(_0x260c89,_0x10dae0);}catch{}}}});}function createShellExecTool(_0x3d8eed={}){return createBashTool(_0x3d8eed);}import{readdir,readFile as _0x3fbef9}from'fs/promises';import{extname,join as _0x31e552}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0xa7559e,join,relative as _0x4cdf8b,resolve as _0x76845d}from'path';function _0x2b52(){const _0x7731c6=['zw52','lMPWzwC','BNvTyMvY','BM9Zy3jPChq','qxnZAwDUvgfZAW','Ec1HCgKTA2v5','zxjYB3i','B3bLBMfPlxjLC3bVBNnLCW','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','C3vIyxjYyxK','u0Lhs0Lmta','ywrKrxzLBNrmAxn0zw5LCG','y2HHCKnVzgvbDa','yM0Ynq','ls0T','Dg9vChbLCKnHC2u','lNDLyNa','C29YDa','lu5VuhjVzMLSzq','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','B25Jzq','Dg9VBa','B2zMC2v0','q29TBwfUzcaN','y29UDgv4Da','AxrLBxm','y2HHBMDL','zgvUBY5QC29U','BgLUAW','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','Bg9HzfnRAwXS','BwvTB3j5','ANnVBMm','te9x','uKLgrG','yxbPs2v5','DhLWzq','Bg9JywXLq29TCgfYzq','Cgf0Ag5HBwu','CMvMzxjLBMnLCW','BgLNAhq','y29UDgvUDa','AMf2yxnJCMLWDa','sfruuca','C3vKBW','v2LUr2v0','BxrPBwvnCW','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','y29UC3rYDwn0B3i','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','yMLVBwu','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','wZ0+nY04kcLD','C2vUze5VDgLMAwnHDgLVBG','Dg9mB3DLCKnHC2u','zNvSzMLSBgvK','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','C2vZC2LVBKLK','C3LTBgLUAW','y2HHCMfJDgvY','Bwf0y2HLCW','uefusa','lMPZ','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','BM90Awz5','zgvMyxvSDen3za','BwnFzwLK','D2HLCMuGCMC','CMvMCMvZAf90B2TLBG','CMvWBgfJzq','BgLUzvrLEhq','AgvHzgvYCW','lMnQCW','BwfYA2rVD24','ig1Z','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','AgvHzgvY','uhjVz3jHBuzPBgvZkhG4nIK','DhLWzxnJCMLWDhjLywn0','zgvSzwDHDgvKlxj1BI0','C2H1DgrVD25tDgfYDgvK','yxjNCW','B3b0Aw9UywW','z29uB0rLzMLUAxrPB24','B2jQzwn0','BM93','ndm2ntu0oejmr3b3DW','u0HfteW','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','DxnLCM5HBwu','DxrTx3nVDxjJzq','zgLHz25VC3rPy3m','zw5K','CgfJA2fNzs1SB2nRlMPZB24','tM8GC3LTyM9SCYbMB3vUza','yMfZzty0','CMvZDwX0','C2fMzq','zMLUza','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','lI4U','y2fSBgjHy2TvCMW','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','zMjJBgLK','y29UBMvJDgLVBG','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','ywXSu2v0DgXLza','zMXHDe1HCa','zg9JDw1LBNrtEw1IB2W','xg5DkJ8','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','B3rOzxi','DMfSDwu','ugf0AcbUB3qGzM91BMq6ia','rgLHz25VC3rPyW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','B3bLBMfPlxjLC3bVBNnLCY13CW','Aw1WBgvTzw50yxrPB24','lMPZB24','Dgv4Dc9ODg1S','Aw5PDgLHBgL6zwq','B3jPz2LUvg9VBenHBgXjza','y21KlMv4zq','z29Vz2XLq3nLq3G','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','C2L6zq','r0LgodLH','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','zMLUzfjLzMvYzw5Jzxm','ugf0AcbPCYbUB3qGysbMAwXLoIa','CMvTB3zL','ignVBxbSzxrLzc4','C3jJl2fNzw50l2fNzw50lNrZ','DhnZzxj2zxiUANm','zw5HyMXLza','yNjVA2vU','DhLWzxnJCMLWDa','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','twLJCM9ZB2z0','Dgv4Da','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','u3rHCNrLzcbHz2vUDcbYDw4G','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','tunqihrVB2WG','C2vYDMvYCW','y29TBwfUza','D2HPy2GGCMC','C3rHCNreAxi','Dw5PB24','rMLSzu5LDW','Dgv4DerVy3vTzw50l2rPze9Wzw4','zgLZCg9Zzq','l3vZCI9IAw4VCMC','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','C3rHDhvZ','zgf0yq','C2TPBgXZ','CMvXDwvZDa','zgLHz25VC3rPy3ngB3jgAwXL','lMPZB25J','tgLUzsa','C2L0ztO','qxzHAwXHyMXLignVBw1HBMrZoG','C2HHmJu2','ChvZAa','AgfZ','DhvWBgu','EwvZ','BgvUz3rO','yxv0AfjLCxvPCMvK','CMvJzw5JEurHExm','DgL0Bgu','BhnWu2vYDMLJzq','qMvHCMvYia','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','mtqYmJa4mtbNqwf6tuy','yM9VBgvHBG','Ag9TzwrPCG','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','C3rYAw5N','B3bLBG','Aw5JBhvKzxm','ANnVBG','CgfYzw50u2vZC2LVBKLK','Ahr0Ca','Aw5PDgLHBgL6zq','te9dquXbufbeqvrb','uhjVz3jHBuzPBgvZ','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','Dg9Rzw5Z','B3v0Chv0','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','z2L0qNjHBMnO','C2v0','AxnfBMfIBgvK','C2vYDMvY','DgvZDa','igj5DgvZigv4y2vLzhmG','DxrMoa','zgvSzxrL','C2vHCMnOugfYyw1Z','ksbB','lMPWzW','A2LSBa','ls1ZDgrPBW','C2vHCMnOvhLWzq','CgfJA2fNzu5HBwu','BgLUzvn0yxj0','z29Vz2XLlwnZzq','y29KzvzLCMLMAwvY','AxntEw1IB2XPy0XPBMS','mZG3mxvcBfDIrW','C2XPy2u','rMLSzuvKAxq','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','BgfUzW','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','D3jPDgu','ywXSB3DLzerPCNm','zMLYC3q','v2vIrMv0y2G','DMvYAwzPzxi','A2v5','zgLZy292zxj5','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','Cg5WBs1SB2nRlNLHBwW','zxHPDcbJB2rLia','CgXHAw50zxH0','r2XVyG','nu5tzhjhDW','rM91BMqG','CgfYC2vjBNq','AxnjBNrLz2vY','CMfUz2u','zMLSzvbHDgG','y29Kzq','r3jLCa','DxjS','Bg93','Bw9Kzq','BgLUzu51Bq','cGOTls0kcG','BwvZC2fNzq','y29Uy2f0','tM8GAg92zxiGAw5MB3jTyxrPB24','D29YA3nWywnLu3LTyM9S','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','mJi5mtu4sgvYA0XK','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','yxv0Ag9YAxPHDgLVBL9JB2rL','zhj5uNvU','tNv2Aw4','C3rHCNrZv2L0Aa','yxjYyxK','l3bPza','DhnJB25MAwCUANnVBG','BwLU','ugfJA2fNzxm','ihDHCYbHyM9YDgvKlG','BMfTzq','Dg91y2HgAwXL','yxjNDw1LBNrZvgv4Da','ls1JB2X1Bw4','l2jPBI9IyxnO','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','Dg9Rzw5tDg9YywDLs2v5','CMfUAW','yxnZAwDU','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','C2HLBgXqyxrO','yxbWBgLJyxrPB24VANnVBG','ChjLCgfYzunHBgXiAwvYyxjJAhK','y2XPzw50','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','qMfZAa','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','y2XVC2u','Bwv0yxrHz3m','z2nSAwq','DgfZAW','BgfUz3vHz2u','ls1NBg9I','y3jSzG','y2vPBa','yMvHCMvY','CxvLCNK','yxr4','odrABuPZvuK','yxjNDw1LBNroyw1LCW','zxH0BMfTzq','ywn0AxzL','ls1WCMvMAxG','tuLnrtOG','Dg9ju09tDhjPBMC','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','y2XPzw50CW','CMvNAw9U','seLhsa','C3rHCNq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','mJC2uuzTzxzL','zgf0zvjLC3rYAwn0','qMfZzsbKAxjLy3rVCNK6ia','rgv0ywLSoIa','Ahr0CdO','o1TExg5DkJ8','Dg9VBhmVy2fSBa','zMLSDgvY','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','y29UzMLN','zgLZy292zxj5u3rHDgu','Aw5JBhvKzq','yw50AhjVCgLJlw1LC3nHz2vZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','D2fPDezVCKrPywDUB3n0AwnZ','DxrTx21LzgL1Bq','cMbGya','CgfJA2fNzxm','zgvZy3jPChrPB24','DgfZA2TPBgW','CgLK','l29WDc9OB21LyNjLDY9IAw4VCMC','yxv0BW','lu5Vtg9NBW','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','D2vI','yNvUlMXVy2TI','Dw5RBM93BG','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','C2vUza','ru5pru5u','C3rHDgu','C3rYAw5NAwz5','vMLLD2vKigLTywDLigzPBgu6ia','tM8GC3vJAcbMAwXLoIaN','BNv2Aw4','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','Aw5ZDhj1y3rPB25Z','vw5HDxrOB3jPEMvKrxjYB3i','y29UDgvUDc1Szw5NDgG','Dg9VBenHBgXjza','C2vYDMvYtMfTzq','C3bHD25PBMC','AxngAwXL','l3vZCI9SB2nHBc9IAw4VCMC','CM9VDa','CgXHDgzVCM0','BgLZDfrVB2XZ','C25PChbLDa','y29ZDa','ywjVCNrLza','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','lMjPBG','yxnPzgu','BgLI','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','zw50CMLLCW','y291BNq','t0zg','lMDPzG','B25szwrPCMvJDa','CMvHC29U','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','C2LNBMfS','yNvUlMXVy2S','zMLSzq','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','z29Vz2XLq3nLs2v5','yMfZzw5HBwu','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','yM94zwq','yM9KEq','igzYB20G','ie9sia','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','lM51DMLU','y3DK','qxv0Ag9YAxPHDgLVBG','Aw50zwDLCG','CMvXDwLYzwq','AxngAw5PDgu','sw5MB3jTyxrPB24','ig1HDgnO','qwDLBNqGCNvUia','Aw5JB21PBMDdywXSCW','BMv3vgv4Da','cGPbuKDvtuvovfm6ia','zxHPDa','ywXSB3DLzfrVB2XZ','z2XVyG','Dg9Rzw4','DxrTx2nHBxbHAwDU','C291CMnL','Ag92zxi','mZaXnZDpzhjyAKi','DxjP','B3bLCMf0Aw9U','y2XPzw50sw5MB3jTyxrPB24','sw52ywXPzcbvuKWGCgfYyw1LDgvY','zgvMyxvSDfrPBwvVDxrnCW','CMCUzxHL','BM9Kzv9TB2r1BgvZ','zM9VDgvY','igzHAwXLzc4','CMfUzg9T','CMvJB3jK','BgLUzuvUza','lNrTCc4','zgvMAw5PDgLVBG','AxneAxjLy3rVCNK','CMLWz3jLCcbMywLSzwq6ia','AxnfCNjVCG','q29Tu3bLyW','zMLSzvzLCNnPB25Z','CNnZ','Bwf4qNL0zxm','DhjPBq','CMLWz3jLCa','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','AMf2yxnJCMLWDhjLywn0','Ag9ZDa','B25oB3rPzMLJyxrPB24','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','zgvSAw1PDgvY','yMLYDgH0Aw1L','tunqihnLCNzLCIa','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','rMv0y2GGywjVCNrLzcbIEsb1C2vY','AxnbCNjHEq','A2v5CW','y29UBMvJDa','C2nYAxb0','Aw5WDxq','o1TE','zgf0zxrPBwu','BwnWxW','Aw1Hz2uVANbLzW','rMLSzsb3CML0DgvUigf0ia','AhrTBfnUAxbWzxq','y29UDgvUDhm','D2LUmZi','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C3r5Bgu','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','B2f1DgG','tg9HzfnRAwXS','C2vUzfjLCxvLC3q','lw5i','CMvXDwvZDhm','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','y2XLyxi','y2fUy2vS','qgjPB21LANmVyMLVBwu','BhnW','lMPZEa','AgfZq2XPzw50CW','DxbKyxrL','Aw1Hz2vZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','Aw5ZDgfSBa','Cgf0DgvYBIbPCYbYzxf1AxjLza','DxrTx2nVBNrLBNq','y2fSBfrVB2W','lNbUzW','C2H1DgrVD24','BxrPBwu','ywDLBNrjza','Bw9KzwW','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','zxjYB3jnzxnZywDL','BNvT','C3rKAw8','CMvZB2X2zq','BgLUzxm','y2XPzw50x3nLy3jLDf9WB3n0','zg9TywLUCW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','AxnbyNnVBhv0zq','BgLTAxq','Dhj1BMm','AwDUB3jLt3v0Chv0','y2XLyw51Ca','l2jPBI9YzW','Aw5KzxHpzG','yxv0Aa','C3jJl2v4yw1WBgvZl2rLBw8UDhm','CgfZC3rOCM91z2G','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','y2fWywjPBgL0AwvZ','v0vcua','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZlG','y29UDgv4DeXPBMS','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','C3bSAxq','ChjLzML4','z29uB0LTCgXLBwvUDgf0Aw9U','ywrK','Bwf4','nty4odKWm2zTtNrLAa','rxjYB3i','zMLSztOVlW','ywXS','ChjVDg9JB2W','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','mc4WlJa','yxjNDw1LBNriAw50','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','CgfJA2fNzs5QC29U','BwfW','z2v0','zgLYBMfTzq','Cg9W','C3rKB3v0','Dg9tDhjPBMC','AhLKCMf0zu1LDge','Agv4','CgfZC3DVCMq','Aw1Hz2u','l3vZCI9IAw4VyMfZAa','ChjVCgvYDgLLCW','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','DhjPBuvUza','B3bLBKzPBgvZ','DgLTzw91De1Z','v2vIu2vHCMnO','nte2otHpuKfnzha','vw5RBM93BIb0B29SoIa','v2fYBMLUzW','C3rVCMfNzurPCG','DxrTx3rLCM0','ygbGANnVBGO','Dg9VBfjLC3vSDhm','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Dgv4DerVy3vTzw50l2HVDMvY','ywjVCNq','zxf1ywXZ','BgL0zxjHBa','ienHDxnLoIa','AgfUzgXL','C3rKzxjY','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','C2vYDMvYswq','A2v5yMLUzgLUz3m','yxjNDw1LBNrZ','Aw1Hz2uVCg5N','tM8GBg9JyxrPB25ZigzVDw5K','ChvIBgLZAgvKqxq','uhvIBgLZAgvKoIa','zw51Bq','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','C3rKAw4','A2LSBgvK','yMLUyxj5tMfTzq','yxr0CG','y29TCgXLDgvK','zNjVBq','CNvUswq','y29TBwfUzhm','BgLZDgvU','l3vZCI9IAw4VC2G','BwnFy2LK','DgLTzvTKyxrLDgLTzv0','AhjLzG','Cgf0Aa','zMLUywXnzxnZywDLvgv4Da','Cgf0DgvYBG','CMvSyxrPDMu','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','AwDUB3jL','C3bHD24','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','Aw5PDgLHBgL6yxrPB24','C2HPzNq','C2v2zxjPDhK','AM9PBG','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','CgXHAw4','y2f0y2G','CgfYC2u','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','B2zM','yNL0zuXLBMD0Aa','nJG4t1jMDvr5','igj5DgvZ','ChjVy2vZCW','y29UBMvJDgvK','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','CgLWzq','A2LUza','C3rYAxbbBNnP','B3v0z29PBMDdywXSCW','yxnJAwK','C2nVCgvZ','B2XKvgv4Da','zgv0ywLS','Bg9JyxrPB24','BgLUzq'];_0x2b52=function(){return _0x7731c6;};return _0x2b52();}import{readdir as _0x5bfac4,readFile as _0x1eb218}from'fs/promises';import{join as _0x2eebe0,relative as _0xba1cbe,sep}from'path';import{delimiter}from'path';import{mkdir as _0x27d392,rm,stat as _0x2adb74,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x40ce6a}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x49edbb,rename,writeFile as _0x2f7625}from'fs/promises';import{homedir}from'os';import{dirname as _0x127e07,isAbsolute as _0x37dd8d,join as _0x1c5e10,resolve as _0x5b6cea}from'path';import{parse as _0xb5eb3b,stringify as _0x59169c}from'yaml';import{z}from'zod';import{cp,mkdir as _0x3f096e,readFile as _0x5a4791,rm as _0xa9b62a,writeFile as _0x573f37}from'fs/promises';import{homedir as _0x270127}from'os';import{join as _0x1f1df7}from'path';import{parse as _0x3193c7,stringify as _0x146fbc}from'yaml';import{readdir as _0x1007aa,readFile as _0x4f74fb}from'fs/promises';import{join as _0x45100c}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x1cf7e9){const _0x26c93f={_0x2ab5ae:0x6f0,_0x1b5703:0x63f,_0x5c1c41:0x64f,_0x35d7be:0x656,_0x394902:0x3bd,_0x20e1c6:0x26b,_0x777c6c:0x753,_0x5ccf69:0x59b,_0xe1628e:0x63f,_0x25b1fb:0x6d7,_0x799e8e:0x65b,_0x36b4c2:0x712,_0x4a7324:0x63b,_0x11d78e:0x52d,_0x46d766:0x2a6},_0x37890a={_0x3bb9bf:0x4f7},_0x5860de={_0x5882c4:0x9a,_0x339710:0x217};function _0xb41550(_0x148254,_0x30585a,_0x3d989f,_0x13d02a){return _0x173565(_0x148254-0x187,_0x30585a-_0x5860de._0x5882c4,_0x30585a,_0x148254-_0x5860de._0x339710);}const _0xe07018=[];function _0x4b407e(_0x38686a,_0x4bf733,_0x4bc7d7,_0x307bdf){return _0x173565(_0x38686a-0x1be,_0x4bf733-0x11b,_0x307bdf,_0x4bf733-_0x37890a._0x3bb9bf);}let _0x591dc5='',_0x5c9609=0x0;while(_0x5c9609<_0x1cf7e9[_0x4b407e(_0x26c93f._0x2ab5ae,_0x26c93f._0x1b5703,_0x26c93f._0x5c1c41,_0x26c93f._0x35d7be)]){const _0x4a31b4=_0x1cf7e9[_0x5c9609];if(_0x4a31b4==='\x5c'&&_0x5c9609+0x1<_0x1cf7e9[_0xb41550(0x35f,0x2f1,_0x26c93f._0x394902,_0x26c93f._0x20e1c6)])_0x591dc5+=_0x1cf7e9[_0x5c9609+0x1],_0x5c9609+=0x2;else{if(_0x4a31b4==='\x22'||_0x4a31b4==='\x27'){const _0x580922=_0x4a31b4;_0x5c9609++;while(_0x5c9609<_0x1cf7e9[_0x4b407e(_0x26c93f._0x777c6c,_0x26c93f._0x1b5703,0x56d,0x646)]&&_0x1cf7e9[_0x5c9609]!==_0x580922){_0x1cf7e9[_0x5c9609]==='\x5c'&&_0x5c9609+0x1<_0x1cf7e9[_0x4b407e(_0x26c93f._0x5ccf69,_0x26c93f._0xe1628e,0x62c,0x67f)]?(_0x591dc5+=_0x1cf7e9[_0x5c9609+0x1],_0x5c9609+=0x2):(_0x591dc5+=_0x1cf7e9[_0x5c9609],_0x5c9609++);}_0x5c9609++;}else _0x4a31b4!==void 0x0&&/\s/[_0x4b407e(_0x26c93f._0x25b1fb,_0x26c93f._0x799e8e,0x670,_0x26c93f._0x36b4c2)](_0x4a31b4)?(_0x591dc5&&(_0xe07018[_0x4b407e(0x5a6,_0x26c93f._0x4a7324,0x73d,_0x26c93f._0x11d78e)](_0x591dc5),_0x591dc5=''),_0x5c9609++):(_0x591dc5+=_0x4a31b4,_0x5c9609++);}}if(_0x591dc5)_0xe07018[_0xb41550(0x35b,_0x26c93f._0x46d766,0x305,0x435)](_0x591dc5);return _0xe07018;}function renderCommandInstructions(_0x385de2){const _0x4ebccf={_0x39110d:0x1e5,_0x4d7f5e:0xb3,_0x1ee820:0x4ef,_0x3106e2:0x52a,_0x95d601:0x5df,_0x5a2b6e:0x14b,_0x2d6fdc:0x2a3,_0x49731f:0x57b,_0x5f29b8:0x5a9,_0x2455ae:0x207,_0xf8c46b:0x1f8,_0x3f56a4:0x46c,_0x2ed4d3:0x4f4,_0xbe2dfc:0x43d,_0x2f9da8:0x283,_0x548534:0x197,_0x54aa7a:0x34c,_0x35dcb4:0x216,_0x2c541f:0x255,_0x51f678:0x229,_0x5c8b32:0x2c4,_0x8051bc:0x1cf},_0x52ac04={_0x4851eb:0x34},_0x1ef9c7={_0x1c48b4:0x160,_0x260f84:0x127},_0x54cb07={_0x39c327:0x10b};let _0x2c198b=_0x385de2[_0x328db7(0x15d,0x1b4,_0x4ebccf._0x39110d,0xe9)],_0x52f141=![];const _0x10b224=tokenizeCommandArguments(_0x385de2[_0x328db7(0x269,_0x4ebccf._0x4d7f5e,0x197,0x19e)]);function _0x5c8c94(_0x2ecb16,_0x439606,_0x297b67,_0x31dd0f){return _0x255f51(_0x31dd0f- -_0x54cb07._0x39c327,_0x439606-0x5,_0x297b67,_0x31dd0f-0x99);}_0x2c198b=_0x2c198b['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x6f7576,_0x2fd586)=>{return _0x52f141=!![],_0x10b224[Number(_0x2fd586)]??'';}),_0x2c198b=_0x2c198b[_0x328db7(0x1a7,0x22,0xd1,0x1ed)](/\$ARGUMENTS\b/g,()=>{const _0x462d90={_0x2b32ba:0x37,_0x380c19:0x1b};_0x52f141=!![];function _0x4e5469(_0x22b44a,_0x5e51af,_0x30bf61,_0x1210a2){return _0x328db7(_0x5e51af,_0x5e51af-0xe8,_0x30bf61- -_0x462d90._0x2b32ba,_0x1210a2-_0x462d90._0x380c19);}return _0x385de2[_0x4e5469(0x1b0,0x173,_0x1ef9c7._0x1c48b4,_0x1ef9c7._0x260f84)];});function _0x328db7(_0xbf56d,_0x2e10c0,_0xcf54f9,_0x31c967){return _0x255f51(_0xcf54f9- -0x57d,_0x2e10c0-_0x52ac04._0x4851eb,_0xbf56d,_0x31c967-0x8c);}if(_0x385de2['argumentNames']&&_0x385de2['argumentNames'][_0x5c8c94(_0x4ebccf._0x1ee820,_0x4ebccf._0x3106e2,_0x4ebccf._0x95d601,0x5a9)]>0x0)for(let _0x1de3a3=0x0;_0x1de3a3<_0x385de2[_0x328db7(_0x4ebccf._0x5a2b6e,_0x4ebccf._0x2d6fdc,0x1b3,0xc2)][_0x5c8c94(0x591,_0x4ebccf._0x49731f,0x4e7,_0x4ebccf._0x5f29b8)];_0x1de3a3++){const _0x4d4933=_0x385de2[_0x328db7(_0x4ebccf._0x2455ae,0x1ee,0x1b3,_0x4ebccf._0xf8c46b)][_0x1de3a3];if(_0x4d4933){const _0x41d73f=new RegExp('\x5c$'+_0x4d4933+'\x5cb','g');_0x2c198b=_0x2c198b[_0x5c8c94(0x462,_0x4ebccf._0x3f56a4,_0x4ebccf._0x2ed4d3,0x543)](_0x41d73f,()=>{return _0x52f141=!![],_0x10b224[_0x1de3a3]??'';});}}return _0x2c198b=_0x2c198b[_0x5c8c94(0x5e3,_0x4ebccf._0xbe2dfc,0x44b,0x543)](/\$(\d+)\b/g,(_0x491f9b,_0x3d6bb6)=>{return _0x52f141=!![],_0x10b224[Number(_0x3d6bb6)]??'';}),!_0x52f141&&_0x385de2[_0x328db7(0x294,_0x4ebccf._0x2f9da8,_0x4ebccf._0x548534,0x18c)][_0x5c8c94(0x438,0x359,_0x4ebccf._0x54aa7a,0x446)]()&&(_0x2c198b=_0x2c198b+_0x328db7(0x226,0x190,_0x4ebccf._0x35dcb4,_0x4ebccf._0x2c541f)+_0x385de2[_0x328db7(_0x4ebccf._0x51f678,_0x4ebccf._0x5c8b32,_0x4ebccf._0x548534,_0x4ebccf._0x8051bc)]),_0x2c198b;}var chatModelAuthSchemeSchema=z[_0x173565(0xa2,-0x1e,-0xba,0x6a)]([_0x173565(0x1e2,0x97,0x2bd,0x1c0),_0x255f51(0x60c,0x6bf,0x5bc,0x4f2)]),apiKeyAuthSchema=z[_0x173565(0x1f3,0x1a1,0x125,0xf1)]({'type':z[_0x255f51(0x5ca,0x6ee,0x69c,0x4c8)](_0x255f51(0x62b,0x6eb,0x6e1,0x668)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x173565(0x1a8,0xbc,0x5,0xef)]()})[_0x255f51(0x597,0x6ad,0x576,0x52f)](),oauthAuthSchema=z[_0x173565(-0x19,-0x17,0xeb,0xf1)]({'type':z['literal']('oauth'),'access':z[_0x255f51(0x6bf,0x798,0x7bf,0x606)](),'refresh':z['string'](),'expires':z['number']()[_0x255f51(0x65b,0x5c4,0x668,0x5ea)](),'authScheme':chatModelAuthSchemeSchema[_0x255f51(0x65b,0x586,0x6c4,0x5ac)]()})[_0x173565(0x78,0xe1,-0xc4,0x2b)](),authMethodSchema=z[_0x255f51(0x69f,0x57c,0x685,0x5eb)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x173565(-0x18,0xe8,-0x17,0xf1)]({'id':z[_0x173565(0x2d,0x221,0x20e,0x153)](),'name':z['string']()[_0x173565(0x85,0x210,0x1a7,0xef)]()})['passthrough'](),modelConfigSchema=z[_0x173565(0x234,0x1fb,0xbb,0x133)]([z[_0x255f51(0x5ca,0x4c9,0x6b1,0x667)](![]),z[_0x255f51(0x5ca,0x64e,0x603,0x57b)](!![]),z[_0x255f51(0x6bf,0x70a,0x6f2,0x59d)](),z[_0x255f51(0x70c,0x7c1,0x7e0,0x752)](z[_0x255f51(0x6bf,0x7ac,0x70a,0x5da)]()),z[_0x255f51(0x70c,0x5dd,0x666,0x6e8)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x173565(0x119,-0x24,0x6d,0x6a)]([_0x255f51(0x749,0x6ff,0x7a3,0x7fe),_0x173565(-0x104,0x105,-0xad,-0x2),_0x173565(0x5c,-0x53,-0x1e,0xa2),_0x255f51(0x67e,0x583,0x77d,0x6cf)]),providerConfigSchema=z[_0x255f51(0x65d,0x634,0x57c,0x741)]({'apiKey':z[_0x173565(0x121,0x218,0x1ac,0x153)]()[_0x173565(0x91,0xe2,0x1fe,0xef)](),'token':z[_0x173565(0x27f,0x1ee,0x25c,0x153)]()[_0x255f51(0x65b,0x744,0x532,0x6cf)](),'defaultModel':z['string']()[_0x173565(0x41,0x162,0x125,0xef)](),'smallModel':z[_0x173565(0x245,0x2a,0x7a,0x153)]()[_0x255f51(0x65b,0x553,0x746,0x57f)](),'currentAuth':z['string']()[_0x255f51(0x65b,0x72f,0x59f,0x603)](),'auth':z[_0x255f51(0x70c,0x829,0x608,0x81a)](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x173565(0x6e,-0x16,0x8b,0xef)](),'baseUrl':z[_0x255f51(0x6bf,0x608,0x6a4,0x7be)]()[_0x255f51(0x65b,0x599,0x647,0x5e3)](),'models':modelConfigSchema[_0x173565(0x211,0x96,-0x32,0xef)](),'customHeaders':z[_0x173565(0x18b,0x142,0x32a,0x23a)](z[_0x173565(0x282,0x17a,0x23d,0x153)](),z[_0x173565(0x250,0x192,0xf9,0x153)]())['optional']()})[_0x255f51(0x597,0x5e5,0x5b4,0x6bd)](),mcpServerConfigSchema=z['object']({'command':z[_0x255f51(0x6bf,0x5b1,0x74f,0x5a4)]()[_0x173565(0x21f,0xd0,0x197,0xef)](),'args':z[_0x173565(0x103,0x138,0xd2,0x1a0)](z[_0x255f51(0x6bf,0x76e,0x662,0x5bb)]())['optional'](),'env':z[_0x255f51(0x7a6,0x738,0x828,0x686)](z[_0x255f51(0x6bf,0x657,0x5b3,0x735)](),z[_0x255f51(0x6bf,0x7c2,0x713,0x6d7)]())[_0x173565(0x81,0x140,0x176,0xef)](),'transport':z[_0x173565(-0xbe,-0x54,0x11d,0x6a)]([_0x173565(-0x66,0xaf,-0x3b,0x1c),_0x255f51(0x6c4,0x7b3,0x6a7,0x5aa)])[_0x173565(0x1b1,0xe6,0x155,0xef)](),'url':z[_0x255f51(0x6bf,0x638,0x738,0x6a3)]()['optional'](),'headers':z[_0x173565(0x1fe,0x237,0x21b,0x23a)](z[_0x255f51(0x6bf,0x719,0x5ad,0x7c2)](),z[_0x173565(0x278,0x25d,0x276,0x153)]())[_0x255f51(0x65b,0x55e,0x733,0x5b6)](),'prefix':z[_0x173565(0xf8,0x62,0x12d,0x153)]()[_0x255f51(0x65b,0x68d,0x5c8,0x5f4)](),'timeoutMs':z[_0x173565(-0x57,0x112,0x8,0x9d)]()['optional'](),'enabled':z[_0x255f51(0x6bc,0x7c3,0x66b,0x5a0)]()[_0x255f51(0x65b,0x590,0x6ab,0x5e1)](),'auth':z[_0x173565(0x1bc,0x172,0x138,0xf1)]({'type':z[_0x255f51(0x5d6,0x6f2,0x6b7,0x6c6)](['none',_0x255f51(0x72c,0x7fa,0x60e,0x717),_0x255f51(0x56d,0x4d9,0x467,0x4e1)]),'token':z['string']()[_0x173565(0x2c,0x1e0,0x1e2,0xef)](),'oauth':z[_0x173565(0x1e8,0x8,0x114,0xf1)]({'clientId':z[_0x173565(0x1d7,0x198,0x27e,0x153)]()['optional'](),'clientMetadataUrl':z[_0x255f51(0x6bf,0x5b9,0x5b1,0x747)]()['optional'](),'authorizationServer':z[_0x255f51(0x6bf,0x714,0x7e6,0x6f2)]()[_0x255f51(0x65b,0x5a0,0x6c7,0x651)](),'scopes':z['array'](z[_0x173565(0x113,0x18e,0xad,0x153)]())[_0x173565(-0x1d,0x135,0x219,0xef)](),'tokenStorageKey':z[_0x255f51(0x6bf,0x7ab,0x5c1,0x6fa)]()[_0x255f51(0x65b,0x771,0x691,0x610)]()})[_0x255f51(0x597,0x597,0x5fd,0x66f)]()[_0x255f51(0x65b,0x613,0x56b,0x779)]()})[_0x255f51(0x597,0x498,0x51d,0x56b)]()[_0x255f51(0x65b,0x723,0x56b,0x78a)]()})[_0x255f51(0x597,0x4b9,0x67b,0x60a)](),mcpSettingsSchema=z['object']({'servers':z['record'](z[_0x255f51(0x6bf,0x7cb,0x731,0x64d)](),mcpServerConfigSchema)[_0x173565(0x173,0xb9,0x3,0xef)](),'allowedTools':z[_0x255f51(0x7a6,0x792,0x788,0x6b2)](z[_0x255f51(0x6bf,0x6b6,0x758,0x7c6)](),z[_0x255f51(0x7a6,0x6e4,0x827,0x754)](z[_0x173565(0x18c,0x6a,0x5f,0x153)](),z[_0x173565(0x9f,0x4b,0x256,0x150)]()))[_0x255f51(0x65b,0x6d8,0x59c,0x52e)](),'defaultTimeoutMs':z['number']()[_0x173565(0x1b5,0x1a9,0x93,0xef)]()})[_0x173565(-0x6b,0x14c,0x38,0x2b)](),skillsSettingsSchema=z[_0x255f51(0x65d,0x64e,0x6b8,0x5c3)]({'enabled':z[_0x173565(0xf3,0x22e,0x87,0x150)]()['optional'](),'includeDefaults':z[_0x173565(0x91,0x109,0x33,0x150)]()[_0x255f51(0x65b,0x71f,0x5fc,0x73b)](),'directories':z['array'](z['string']())[_0x173565(0x190,-0x38,0x1c8,0xef)](),'exclude':z[_0x255f51(0x70c,0x6cc,0x6a9,0x78e)](z[_0x255f51(0x6bf,0x6a2,0x7d0,0x722)]())['optional']()})[_0x173565(-0x21,0xef,0x63,0x2b)](),commandsSettingsSchema=z['object']({'enabled':z['boolean']()[_0x173565(0xe6,0xf,-0x4,0xef)](),'directories':z[_0x255f51(0x70c,0x608,0x7e5,0x7b6)](z[_0x255f51(0x6bf,0x5e5,0x681,0x637)]())[_0x255f51(0x65b,0x63d,0x67a,0x56f)]()})[_0x255f51(0x597,0x549,0x49c,0x5c4)](),agentsSettingsSchema=z[_0x255f51(0x65d,0x670,0x5a2,0x70a)]({'enabled':z[_0x173565(0xb2,0x1ec,0xb5,0x150)]()[_0x173565(0x1e5,0x1ac,0x1b8,0xef)](),'includeDefaults':z[_0x173565(0x261,0x98,0x3a,0x150)]()[_0x173565(0x145,0x1ac,0x1f7,0xef)](),'directories':z[_0x255f51(0x70c,0x692,0x617,0x815)](z['string']())[_0x255f51(0x65b,0x69d,0x738,0x53c)]()})[_0x255f51(0x597,0x4de,0x65d,0x641)](),uiThemeSettingsSchema=z['object']({'mode':z[_0x173565(-0x2f,-0x44,0xdc,0x6a)]([_0x255f51(0x753,0x625,0x6c2,0x820),'dark',_0x173565(0xa1,0x8a,0x8e,0xc4)])['optional'](),'colorLevel':z[_0x173565(0xdf,0x17,-0x5a,0x6a)](['auto','none','ansi16','ansi256','truecolor'])[_0x173565(0xa6,0xd5,0xbd,0xef)](),'backgrounds':z[_0x255f51(0x5d6,0x4f6,0x6da,0x579)]([_0x173565(0x25e,0x315,0x2e6,0x1e7),'on','off'])[_0x173565(-0x30,0x110,0x13c,0xef)](),'messageStyle':z[_0x173565(0x2b,0x8a,-0x1a,0x6a)]([_0x255f51(0x5f2,0x508,0x5c6,0x6dd),_0x173565(0x173,0x2b6,0x24f,0x217)])[_0x173565(0x21,0xb2,0x2b,0xef)]()})['passthrough'](),statuslineSegmentSchema=z[_0x173565(-0xa3,0x6b,-0xa2,0x6a)]([_0x255f51(0x584,0x679,0x5c9,0x482),'session','thinking',_0x173565(0x1ba,0x8c,-0x2d,0xc8),_0x173565(0x15f,0x26f,0x8d,0x15d),_0x255f51(0x61f,0x61f,0x55f,0x68d),'cached',_0x255f51(0x571,0x4ad,0x59e,0x54f),'tools',_0x255f51(0x76e,0x741,0x809,0x68b),_0x255f51(0x576,0x4e8,0x620,0x5d1),_0x173565(0x242,0xf1,0x22e,0x160),_0x173565(0xbf,0x122,0x65,0x64),_0x173565(0x179,-0x6,0x16b,0xbb),_0x255f51(0x7af,0x6ef,0x82d,0x845)]),statuslineItemSchema=z['union']([statuslineSegmentSchema,z[_0x173565(0x18,0xed,0x123,0x5e)]('|')]),statuslineRowSchema=z[_0x255f51(0x70c,0x74b,0x703,0x6aa)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x255f51(0x6b2,0x75e,0x64c,0x60e)]([statuslineRowSchema,statuslineRowSchema])[_0x173565(0xa7,0x9c,0x198,0xef)]()})[_0x255f51(0x597,0x6ba,0x5da,0x58d)](),memorySettingsSchema=z[_0x255f51(0x65d,0x5f1,0x628,0x5ce)]({'version':z[_0x255f51(0x5ca,0x683,0x6a2,0x4f9)](0x2)[_0x255f51(0x65b,0x628,0x5ea,0x596)](),'retrieval':z[_0x255f51(0x65d,0x530,0x74d,0x66b)]({'engine':z[_0x255f51(0x5ca,0x6f1,0x698,0x50d)](_0x255f51(0x614,0x666,0x52c,0x73d))[_0x255f51(0x65b,0x646,0x748,0x622)](),'candidateLimit':z['number']()[_0x173565(0xf6,0x43,-0x3d,0xef)](),'activeCandidateLimit':z[_0x173565(0x40,-0x51,0x70,0x9d)]()[_0x255f51(0x65b,0x533,0x53a,0x5a3)](),'activeEnabled':z[_0x255f51(0x6bc,0x7e3,0x640,0x5d1)]()[_0x255f51(0x65b,0x636,0x646,0x5b8)](),'maxQueriesPerTurn':z[_0x173565(0x120,-0x4d,0x15f,0x9d)]()['optional'](),'coreInjectTokenBudget':z[_0x255f51(0x609,0x592,0x5e1,0x586)]()[_0x173565(-0x31,0x2b,0x1b1,0xef)](),'injectTokenBudget':z['number']()[_0x173565(0x5e,0x215,0x197,0xef)](),'minScore':z[_0x255f51(0x609,0x673,0x589,0x6dc)]()['optional'](),'freshnessHalfLifeDays':z[_0x255f51(0x609,0x66e,0x667,0x587)]()[_0x255f51(0x65b,0x552,0x6b4,0x604)]()})[_0x173565(0x5,0x2f,-0xf,0x2b)]()[_0x255f51(0x65b,0x76f,0x54b,0x780)](),'extraction':z[_0x173565(0x39,0x21e,0x50,0xf1)]({'enabled':z['boolean']()[_0x255f51(0x65b,0x651,0x580,0x573)](),'provider':z['string']()[_0x173565(0x1d7,0x190,0x206,0xef)](),'model':z[_0x173565(0x205,0x1ad,0x194,0x153)]()['optional'](),'sensitiveFilter':z['boolean']()[_0x255f51(0x65b,0x6d0,0x632,0x71a)]()})[_0x173565(0x118,-0x1e,-0xd4,0x2b)]()['optional'](),'index':z[_0x255f51(0x65d,0x5b7,0x6f1,0x718)]({'persisted':z[_0x173565(0x214,0x256,0x85,0x150)]()[_0x255f51(0x65b,0x775,0x657,0x55e)](),'flushIntervalMs':z[_0x255f51(0x609,0x5a1,0x6cc,0x6f9)]()['optional']()})[_0x255f51(0x597,0x606,0x49a,0x512)]()[_0x173565(0x1cd,0x104,0x1e1,0xef)](),'enabled':z[_0x255f51(0x6bc,0x5e2,0x700,0x61a)]()['optional'](),'saveTool':z[_0x255f51(0x6bc,0x72c,0x748,0x5a1)]()[_0x255f51(0x65b,0x779,0x773,0x769)](),'model':z[_0x255f51(0x6bf,0x7d2,0x5bc,0x65b)]()['optional'](),'provider':z[_0x255f51(0x6bf,0x5e3,0x677,0x7b4)]()[_0x255f51(0x65b,0x692,0x5a2,0x657)](),'maxInjectionTokens':z[_0x255f51(0x609,0x659,0x714,0x5f0)]()['optional'](),'backgroundExtraction':z[_0x255f51(0x6bc,0x689,0x59c,0x5fe)]()[_0x255f51(0x65b,0x643,0x559,0x6f7)]()})['passthrough'](),recentModelSchema=z[_0x173565(0xa9,0x15c,0xa9,0xf1)]({'provider':z[_0x173565(0x265,0x131,0xbe,0x153)](),'model':z[_0x173565(0xf1,0x240,0x17c,0x153)](),'usedAt':z[_0x173565(0x193,0x11,0x18c,0x9d)]()})[_0x255f51(0x597,0x632,0x55b,0x54e)](),lspServerEntrySchema=z[_0x173565(0x9c,0x11d,0xaf,0xf1)]({'disabled':z[_0x255f51(0x6bc,0x747,0x5ec,0x5de)]()[_0x255f51(0x65b,0x719,0x566,0x5f2)](),'command':z[_0x255f51(0x6bf,0x7b2,0x670,0x70e)]()['optional'](),'args':z[_0x255f51(0x70c,0x770,0x691,0x64e)](z[_0x255f51(0x6bf,0x6a5,0x6d7,0x5d0)]())['optional'](),'rootMarkers':z[_0x173565(0x22a,0x251,0x1a1,0x1a0)](z[_0x173565(0x276,0x1de,0x50,0x153)]())[_0x173565(0x148,0x5f,0x1e6,0xef)]()})[_0x255f51(0x597,0x4ca,0x5cf,0x6ad)](),lspConfigSchema=z['object']({'enabled':z[_0x255f51(0x6bc,0x6c0,0x696,0x5e7)]()[_0x255f51(0x65b,0x5d0,0x5d7,0x565)](),'servers':z[_0x173565(0x1f8,0x359,0x369,0x23a)](z[_0x173565(0x112,0x276,0x229,0x153)](),lspServerEntrySchema)[_0x255f51(0x65b,0x59d,0x66c,0x6e2)]()})['passthrough'](),cliConfigSchema=z['object']({'activeProvider':z[_0x173565(0x146,0x201,0x181,0x153)]()[_0x173565(0xeb,0x1a6,0x5f,0xef)](),'activeModel':z[_0x255f51(0x6bf,0x66b,0x689,0x70e)]()[_0x173565(0x16a,0x10d,0xf6,0xef)](),'apiKey':z[_0x173565(0x17e,0x78,0x169,0x153)]()[_0x255f51(0x65b,0x6b0,0x73e,0x5bc)](),'providers':z[_0x255f51(0x7a6,0x704,0x821,0x88c)](z[_0x255f51(0x6bf,0x75c,0x7a9,0x792)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x255f51(0x65b,0x741,0x632,0x641)](),'agents':agentsSettingsSchema[_0x173565(-0x30,0xd0,0x180,0xef)](),'commands':commandsSettingsSchema[_0x255f51(0x65b,0x5d3,0x76e,0x5eb)](),'skillsEnabled':z[_0x255f51(0x7a6,0x800,0x6a0,0x754)](z[_0x255f51(0x6bf,0x70b,0x5be,0x663)](),z['boolean']())[_0x173565(0x1de,0xa8,0xff,0xef)](),'memory':memorySettingsSchema[_0x173565(0x46,0x1fe,0x90,0xef)](),'session':z[_0x255f51(0x65d,0x59d,0x716,0x6f9)]({'memPersist':z['boolean']()[_0x255f51(0x65b,0x779,0x69c,0x65c)](),'persistEventLog':z[_0x173565(0xd9,0x1e5,0x15f,0x150)]()[_0x173565(0x150,0x11c,0x1f2,0xef)](),'persistHttpLog':z[_0x255f51(0x6bc,0x7c3,0x6a9,0x66b)]()[_0x173565(0x184,0x199,0x11a,0xef)]()})['passthrough']()[_0x173565(0x1de,0xe4,-0x11,0xef)](),'requireToolApproval':z['boolean']()[_0x255f51(0x65b,0x6e9,0x77b,0x56c)](),'thinking':z[_0x255f51(0x5d6,0x601,0x555,0x597)]([_0x173565(0x1bb,0x28f,0x24e,0x20b),_0x173565(0x16,0x194,0x40,0xbd),'MEDIUM',_0x255f51(0x739,0x6d3,0x791,0x799)])['optional'](),'streamingChunks':z[_0x255f51(0x6bc,0x7c9,0x5e6,0x6c7)]()[_0x255f51(0x65b,0x5d2,0x6ee,0x78a)](),'agentsEnabled':z[_0x173565(0x35f,0x209,0x2a5,0x23a)](z['string'](),z[_0x173565(0x1b4,0x240,0x77,0x150)]())[_0x173565(0x15e,0x1c2,0x158,0xef)](),'recentModels':z[_0x255f51(0x70c,0x76f,0x61a,0x78e)](recentModelSchema)[_0x255f51(0x65b,0x5e3,0x78a,0x632)](),'lsp':lspConfigSchema[_0x255f51(0x65b,0x6fe,0x6c2,0x69e)](),'ui':z[_0x255f51(0x65d,0x6d2,0x77b,0x63f)]({'theme':uiThemeSettingsSchema[_0x255f51(0x65b,0x6e0,0x6b1,0x624)](),'statusline':statuslineConfigSchema[_0x255f51(0x65b,0x5bb,0x620,0x73e)]()})[_0x255f51(0x597,0x66e,0x5f9,0x6a1)]()[_0x255f51(0x65b,0x70a,0x5e5,0x777)](),'tools':z[_0x173565(0x35f,0x11e,0x15f,0x23a)](z[_0x173565(0x239,0x17b,0x217,0x153)](),z[_0x173565(0x306,0x1c8,0x11f,0x1ec)]())['optional']()})[_0x255f51(0x597,0x4b5,0x5f2,0x4c7)]();function buildDescription(_0x4f1995){const _0x35f3c4={_0x4bb35e:0x153,_0xb0d5fe:0x2da,_0x200339:0x36,_0x56ce6b:0x82,_0x4d8fe7:0xaa,_0x26e82c:0x4b,_0x25abf1:0xe2,_0x3a3e34:0x1a9,_0x2e991f:0x49,_0x19560c:0xcd,_0x10cde8:0xe0,_0x2bfb42:0x4b,_0x575c57:0x182,_0x3b8bb3:0xd5,_0x1013e5:0x220,_0x4af3c0:0x122},_0x48393b={_0x8e3d91:0x4d9},_0x428e4d={_0x192950:0xf7};if(_0x4f1995[_0x40c007(_0x35f3c4._0x4bb35e,_0x35f3c4._0xb0d5fe,0x1db,0x26d)]===0x0)return['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0x23bd81(_0x35f3c4._0x200339,_0x35f3c4._0x56ce6b,_0x35f3c4._0x4d8fe7,_0x35f3c4._0x26e82c),_0x23bd81(0x195,_0x35f3c4._0x25abf1,_0x35f3c4._0x3a3e34,0x1f3)]['join']('\x0a');function _0x23bd81(_0x1a661c,_0x3b739a,_0x22a218,_0x51054d){return _0x173565(_0x1a661c-0x14d,_0x3b739a-_0x428e4d._0x192950,_0x22a218,_0x51054d-0x5c);}const _0x480b7f=[_0x23bd81(0x99,_0x35f3c4._0x2e991f,0x1fa,0x127),_0x23bd81(-_0x35f3c4._0x19560c,-0xbf,_0x35f3c4._0x10cde8,_0x35f3c4._0x2bfb42),_0x23bd81(0x25d,_0x35f3c4._0x575c57,0x92,0x19e),..._0x4f1995[_0x40c007(0x127,0x55,_0x35f3c4._0x3b8bb3,-0x18)](_0x1c04a2=>_0x1c04a2[_0x23bd81(0x45,0xb3,0xc1,0x9b)]?'-\x20'+_0x1c04a2[_0x23bd81(0x2e5,0x2bd,0x112,0x202)]+'\x20'+_0x1c04a2[_0x23bd81(0x1b2,0xdd,-0x8f,0x9b)]+':\x20'+_0x1c04a2[_0x23bd81(0x184,0x297,0x33d,0x23f)]:'-\x20'+_0x1c04a2[_0x23bd81(0xda,0x2bb,0x178,0x202)]+':\x20'+_0x1c04a2[_0x40c007(0x360,0x2ab,0x276,0x252)])];function _0x40c007(_0x5e2d58,_0x45ffc5,_0x45a4fa,_0x278cc8){return _0x255f51(_0x45a4fa- -_0x48393b._0x8e3d91,_0x45ffc5-0x51,_0x5e2d58,_0x278cc8-0x146);}return _0x480b7f[_0x40c007(_0x35f3c4._0x1013e5,0x1e6,0x117,_0x35f3c4._0x4af3c0)]('\x0a');}function createInvokeCommandTool(_0x551514){const _0x22800a={_0x2d81f3:0x521,_0x362872:0x44b,_0xe947ad:0x500,_0x3f62a4:0x3c8,_0x1c5205:0x300,_0x23fdf7:0x5b1,_0x36d5f0:0x3f2,_0x2060bf:0x452},_0x494b0b={_0x48b5ec:0x65d,_0x5f398e:0x6e,_0x3f8648:0x5b,_0x2f9489:0x83,_0x20ca57:0x64,_0x432193:0x519,_0xb126ca:0x652,_0x240db4:0x83d,_0x22429d:0x777,_0x6d6c8f:0x812,_0xc72c5e:0x77a,_0x26f8ed:0x1f,_0x403556:0x7b,_0x57fc57:0xf2,_0x383d1e:0x76e,_0x2a0842:0x8a0,_0x1058ec:0x7ca,_0x153d9b:0x55c,_0x38730e:0x639,_0x36dd75:0x99,_0x2d6774:0x3a,_0x2a3e5c:0x1c5},_0x46b2d1={_0x236c58:0x84},_0x4cb957={_0x152c0d:0xfd,_0x2fb11f:0x409};function _0x51baef(_0x191d75,_0x429d7b,_0x1ce10a,_0x352494){return _0x173565(_0x191d75-_0x4cb957._0x152c0d,_0x429d7b-0xc4,_0x352494,_0x429d7b-_0x4cb957._0x2fb11f);}function _0x162547(_0x2cdbd5,_0x17b7a0,_0x4d89fd,_0x3a1398){return _0x255f51(_0x17b7a0- -0x35d,_0x17b7a0-0xab,_0x3a1398,_0x3a1398-0x12d);}const _0x391cdd=new Map(_0x551514['commands'][_0x51baef(_0x22800a._0x2d81f3,_0x22800a._0x362872,_0x22800a._0xe947ad,0x4a6)](_0x27ccaf=>[_0x27ccaf['id'],_0x27ccaf])),_0x4252be=buildDescription(_0x551514[_0x51baef(0x434,0x47c,0x4b2,0x371)]);return defineTool({'name':'InvokeCommand','description':_0x4252be,'inputSchema':{'type':_0x162547(_0x22800a._0x3f62a4,_0x22800a._0x1c5205,0x280,0x259),'properties':{'name':{'type':'string'},'args':{'type':_0x51baef(_0x22800a._0x23fdf7,0x55c,0x46b,0x5c6)}},'required':[_0x162547(_0x22800a._0x36d5f0,0x3b5,_0x22800a._0x2060bf,0x2c7)]},async *'execute'(_0x423857){const _0x23b544={_0x332c38:0x516,_0x5afa41:0x3a},_0xc74f09=_0x391cdd['get'](_0x423857[_0x349b8b(0x81c,0x66d,_0x494b0b._0x48b5ec,0x77a)]);if(!_0xc74f09){const _0x3ee1a1=Array['from'](_0x391cdd['keys']())[_0x2e42fa(-0x89,0x12,-_0x494b0b._0x5f398e,-0x81)](',\x20');throw new ToolExecutionError(_0x2e42fa(-_0x494b0b._0x3f8648,-0x154,_0x494b0b._0x2f9489,_0x494b0b._0x20ca57)+_0x423857[_0x349b8b(0x804,0x6b7,0x88e,0x77a)]+_0x349b8b(_0x494b0b._0x432193,_0x494b0b._0xb126ca,0x5a0,0x62e)+_0x3ee1a1,{'name':_0x423857[_0x349b8b(_0x494b0b._0x240db4,_0x494b0b._0x22429d,_0x494b0b._0x6d6c8f,_0x494b0b._0xc72c5e)]});}const _0x5bd588=await _0x551514['loadCommand'](_0xc74f09);function _0x349b8b(_0x243ac9,_0x5f19d8,_0x1e1c84,_0x1e76c){return _0x51baef(_0x243ac9-_0x46b2d1._0x236c58,_0x1e76c-0x1cb,_0x1e1c84-0x112,_0x1e1c84);}const _0x11828e=_0x423857[_0x2e42fa(-_0x494b0b._0x26f8ed,-_0x494b0b._0x403556,-_0x494b0b._0x57fc57,0x21)]??'';function _0x2e42fa(_0x4aa203,_0x5bffd1,_0x51f26e,_0xd7cb74){return _0x51baef(_0x4aa203-0x15b,_0x4aa203- -_0x23b544._0x332c38,_0x51f26e-_0x23b544._0x5afa41,_0x51f26e);}const _0xaf45c1=renderCommandInstructions({'instructions':_0x5bd588[_0x349b8b(_0x494b0b._0x383d1e,0x7c2,_0x494b0b._0x2a0842,_0x494b0b._0x1058ec)],'argumentsText':_0x11828e,'argumentNames':_0x5bd588[_0x349b8b(_0x494b0b._0x153d9b,0x567,0x730,_0x494b0b._0x38730e)]});return yield createToolOutput(_0xaf45c1,{'id':_0x5bd588['id'],'name':_0x5bd588[_0x2e42fa(_0x494b0b._0x36dd75,_0x494b0b._0x2d6774,0xf9,_0x494b0b._0x2a3e5c)],'path':_0xc74f09['source'][_0x349b8b(0x598,0x6ab,0x688,0x64d)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x549d7c,rename as _0x6833dd,stat as _0xf55b11,writeFile as _0x283ee6}from'fs/promises';import*as _0x51375b from'path';function detectEol(_0x4edc76){const _0x336c6e={_0x9e2e13:0x274,_0x16b24d:0x4a6,_0x4d6d1e:0x37b,_0xc5e7d4:0x3a3},_0x70d1e6={_0x398877:0x1f7,_0x8816b0:0x1e},_0x591885={_0x4bfbf4:0x3ac,_0x23a9ff:0x1a6};function _0x42104d(_0x160a24,_0x1e5234,_0x5265e5,_0x1feed9){return _0x255f51(_0x1e5234- -_0x591885._0x4bfbf4,_0x1e5234-0x176,_0x5265e5,_0x1feed9-_0x591885._0x23a9ff);}function _0x30634d(_0x501b8b,_0xa4b708,_0x400e98,_0x23e8da){return _0x255f51(_0xa4b708- -_0x70d1e6._0x398877,_0xa4b708-0x19d,_0x501b8b,_0x23e8da-_0x70d1e6._0x8816b0);}return/\r\n/[_0x42104d(_0x336c6e._0x9e2e13,0x324,0x35e,0x275)](_0x4edc76[_0x30634d(_0x336c6e._0x16b24d,0x3bc,_0x336c6e._0x4d6d1e,_0x336c6e._0xc5e7d4)]('utf8'))?'crlf':'lf';}function normalizeToLf(_0x58f38d){const _0x4deba6={_0xef437e:0x20d,_0x397770:0x271},_0x11141d={_0x151349:0x441,_0x145be3:0x133};function _0x26de92(_0x4322d1,_0x440149,_0x209a68,_0x12f816){return _0x255f51(_0x209a68- -_0x11141d._0x151349,_0x440149-0xe6,_0x4322d1,_0x12f816-_0x11141d._0x145be3);}return _0x58f38d[_0x26de92(0x320,0x227,_0x4deba6._0xef437e,_0x4deba6._0x397770)](/\r\n/g,'\x0a');}function convertEol(_0x14af41,_0xcc1e21){const _0x34c541={_0x20fd6b:0xd,_0x148abc:0x66,_0x4bc1a9:0x11a,_0x382b75:0x30,_0x35b329:0x37c,_0x27c0f4:0x41c,_0x1bc10d:0x3a2},_0x4d0aa2={_0x10774e:0xd4,_0x55ffa1:0x1cb};function _0x178696(_0x3c8fad,_0x11c6c5,_0x27164e,_0x3344dd){return _0x173565(_0x3c8fad-_0x4d0aa2._0x10774e,_0x11c6c5-0x1e6,_0x27164e,_0x3c8fad- -_0x4d0aa2._0x55ffa1);}function _0xdd4445(_0x389730,_0x18c3f7,_0x35f8d8,_0x33e1d2){return _0x255f51(_0x18c3f7- -0x2d2,_0x18c3f7-0xf5,_0x33e1d2,_0x33e1d2-0x1e5);}return _0xcc1e21===_0x178696(-_0x34c541._0x20fd6b,_0x34c541._0x148abc,-_0x34c541._0x4bc1a9,-_0x34c541._0x382b75)?_0x14af41[_0xdd4445(0x2d8,_0x34c541._0x35b329,_0x34c541._0x27c0f4,_0x34c541._0x1bc10d)](/\n/g,'\x0d\x0a'):_0x14af41;}async function atomicWrite(_0x462313,_0xcec7f1){const _0xf22d0b={_0x3257ac:0x58a,_0x23685f:0x643,_0xabeec5:0x393,_0x1953b5:0x46d,_0x17bc5a:0x435,_0x22bb42:0x6c5,_0x3eaa9f:0x4c4,_0x509b61:0x3f8,_0x415bf2:0x2d2,_0x3003f1:0x27b},_0x1f6a6e={_0x164d6e:0x172,_0x416b27:0xe6},_0x33b6e3={_0x1d8ac3:0xc8};function _0x4d44ff(_0x3df75a,_0x2cf1ed,_0x9d45,_0x4c1a52){return _0x173565(_0x3df75a-_0x33b6e3._0x1d8ac3,_0x2cf1ed-0x1d,_0x4c1a52,_0x3df75a-0x28b);}const _0x26d788=_0x51375b[_0x42fbae(0x5e7,0x6d0,_0xf22d0b._0x3257ac,_0xf22d0b._0x23685f)](_0x462313),_0x3edf81=_0x51375b[_0x4d44ff(0x30f,_0xf22d0b._0xabeec5,0x364,0x3a8)](_0x26d788,_0x4d44ff(0x4c7,_0xf22d0b._0x1953b5,0x5ec,_0xf22d0b._0x17bc5a)+_0x51375b['basename'](_0x462313)+'.'+Date[_0x42fbae(0x695,0x67b,0x625,_0xf22d0b._0x22bb42)]()+'.'+Math[_0x4d44ff(_0xf22d0b._0x3eaa9f,0x53a,0x404,_0xf22d0b._0x509b61)]()[_0x4d44ff(_0xf22d0b._0x415bf2,0x388,_0xf22d0b._0x3003f1,0x203)](0x24)['slice'](0x2));function _0x42fbae(_0x5df7e7,_0x5e33ba,_0x4e1382,_0xa0f1ea){return _0x173565(_0x5df7e7-_0x1f6a6e._0x164d6e,_0x5e33ba-_0x1f6a6e._0x416b27,_0x5e33ba,_0x5df7e7-0x5a3);}await _0x283ee6(_0x3edf81,_0xcec7f1),await _0x6833dd(_0x3edf81,_0x462313);}function sha256(_0xd68fd0){const _0x1598c6={_0x50105b:0x267,_0x4d12e5:0x41a,_0x37a260:0x1e1,_0x5d6d0c:0x113,_0x33e8bb:0x194,_0x572bd4:0x125},_0x5dc467={_0x170ed0:0x176};function _0x1534d3(_0x26c7c4,_0x31fae2,_0x48b7d1,_0x4aca7f){return _0x255f51(_0x48b7d1- -0x15f,_0x31fae2-0x5a,_0x4aca7f,_0x4aca7f-_0x5dc467._0x170ed0);}function _0x28e7ce(_0x21347b,_0x429ffe,_0x383fd5,_0x33efd9){return _0x173565(_0x21347b-0x57,_0x429ffe-0x188,_0x383fd5,_0x33efd9-0xdc);}return createHash(_0x28e7ce(0x26e,0x156,_0x1598c6._0x50105b,0x21f))[_0x1534d3(0x4d0,0x467,_0x1598c6._0x4d12e5,0x460)](_0xd68fd0)['digest'](_0x28e7ce(_0x1598c6._0x37a260,_0x1598c6._0x5d6d0c,_0x1598c6._0x33e8bb,_0x1598c6._0x572bd4));}function countLines(_0x4d086a){const _0x55b0be={_0x272212:0x491,_0x2bbb91:0x426},_0x269507={_0x3cb859:0x73},_0x5e67f7={_0x3f77f0:0x1ce,_0x1a2061:0x168},_0x2163c4=_0x4d086a[_0x303c3a(0x480,0x598,0x3ba,0x4a7)](/\n$/,'');function _0x303c3a(_0x3287ee,_0x1aed39,_0x3db29b,_0x4877c8){return _0x255f51(_0x3287ee- -_0x5e67f7._0x3f77f0,_0x1aed39-0xa2,_0x1aed39,_0x4877c8-_0x5e67f7._0x1a2061);}function _0x449c14(_0x23bd90,_0x3aea6e,_0x30a9c8,_0x56cbf3){return _0x173565(_0x23bd90-_0x269507._0x3cb859,_0x3aea6e-0x131,_0x3aea6e,_0x30a9c8-0x33f);}return _0x2163c4[_0x303c3a(0x4e6,0x54e,0x47c,_0x55b0be._0x272212)]===0x0?0x0:_0x2163c4[_0x449c14(0x383,0x2d1,0x372,_0x55b0be._0x2bbb91)]('\x0a')['length'];}function calculateLineNumbers(_0xa61945,_0x59b307,_0x451a2e,_0x1fa1d2){const _0x3975a8={_0x2b733:0x4d4,_0x173bf2:0x5bf,_0x1f1fc5:0x564,_0x1adcbe:0x635,_0x4921dc:0x62d,_0x36baa0:0x543},_0x1ff429={_0x119042:0x1cf},_0x52644e={_0x1483ae:0xcb},_0x4a3dfb=_0xa61945['slice'](0x0,_0x1fa1d2)[_0x59c74a(_0x3975a8._0x2b733,0x51a,_0x3975a8._0x173bf2,_0x3975a8._0x1f1fc5)]('\x0a')[_0x59c74a(0x5e9,_0x3975a8._0x1adcbe,_0x3975a8._0x4921dc,_0x3975a8._0x36baa0)];function _0x59c74a(_0xa5d5cc,_0x13ac90,_0x5d0799,_0x58fa19){return _0x255f51(_0xa5d5cc- -_0x52644e._0x1483ae,_0x13ac90-0xd9,_0x13ac90,_0x58fa19-0x23);}const _0x48e13a=countLines(_0x59b307);function _0x37d4aa(_0x4e7d83,_0x1c0c58,_0x37543e,_0x3e528a){return _0x173565(_0x4e7d83-0x1e1,_0x1c0c58-_0x1ff429._0x119042,_0x37543e,_0x3e528a-0x3f8);}const _0x39876a=countLines(_0x451a2e);return{'oldStartLine':_0x4a3dfb,'oldEndLine':_0x4a3dfb+_0x48e13a-0x1,'newStartLine':_0x4a3dfb,'newEndLine':_0x4a3dfb+_0x39876a-0x1,'oldLineCount':_0x48e13a,'newLineCount':_0x39876a};}function createFileEditTool(_0x4b646b={}){const _0x14fb44={_0x7fe6ba:0x2b9,_0x41de2d:0x20f,_0x15c6e2:0x365,_0x5ea718:0x377,_0x557153:0x28a,_0xc9eb9f:0x559,_0x58a0bc:0x4b6,_0x38bef2:0x4ae,_0x1cf4a4:0x3c5,_0x333474:0x1de,_0x4a2577:0x2ef,_0x6f30a:0x2e8,_0x1e32c9:0x394,_0x5a865d:0x30b,_0x5c0f1b:0x37d,_0x2faa24:0x3d3,_0x5b1962:0x372,_0x354cfe:0x509,_0x378785:0x341,_0x5aa8a4:0x3b4,_0x564712:0x29c,_0x4db06e:0x2c6,_0x4b4f9e:0x3ad,_0x122ca5:0x204,_0x3d1ff2:0x3dd,_0x465aea:0x3e9,_0x5f56c3:0x3f8,_0x3f5fcf:0x1dd,_0x4dbde0:0x5ec,_0x483ce8:0x40a,_0x4b0367:0x4bf},_0xd69261={_0x4a79dc:0x408,_0x4a2871:0x2e9,_0x3b6dbe:0x275,_0x459f70:0x165,_0x1e5dc8:0x4f,_0x4186a6:0x1,_0x5f0a8f:0x12c,_0x1fdbfa:0x1e5,_0x392efc:0x6e,_0x173deb:0x163,_0x21d6b8:0x6c,_0xf005a3:0xb2,_0x2918e3:0x25f,_0x22d70:0x382,_0x28bd6a:0x2a8,_0x3b5eff:0x2d2,_0x474878:0x3dd,_0xc1b9ff:0x12a,_0x3f984d:0x273,_0x265757:0x12e,_0x45bf7c:0x21a,_0x34758b:0x7a,_0x5a874d:0x139,_0x196e44:0x2a6,_0x3837aa:0x272,_0x3a37fa:0x366,_0x1f2ba5:0x3d7,_0x49dde8:0x137,_0x5d61a8:0x221,_0x317625:0xe,_0xd91692:0xa9,_0x5d04c5:0x173,_0x232cd7:0x190,_0x34b3c1:0x133,_0x5eb015:0x3e,_0x28ccbc:0x109,_0x19e880:0x233,_0x59100c:0x1e1,_0x513ff4:0x2a6},_0x51dbe0={_0x513a46:0x190},_0x46fee0={_0x226243:0x299},_0x9d7ba7={_0x373999:0x116},_0x459aa0=_0x51375b[_0x42e9c6(0x2ea,_0x14fb44._0x7fe6ba,0x2b6,_0x14fb44._0x41de2d)](_0x4b646b[_0x42e9c6(0x2cb,_0x14fb44._0x15c6e2,_0x14fb44._0x5ea718,_0x14fb44._0x557153)]??process[_0x42e9c6(0x4e8,_0x14fb44._0xc9eb9f,_0x14fb44._0x58a0bc,0x573)]());function _0x48b600(_0x4d1878,_0xc0ed3d,_0x59245f,_0x2dfa78){return _0x255f51(_0x59245f- -0x3f9,_0xc0ed3d-0x14a,_0x4d1878,_0x2dfa78-_0x9d7ba7._0x373999);}const _0x1aa15a=(_0x4b646b[_0x42e9c6(_0x14fb44._0x38bef2,_0x14fb44._0x1cf4a4,0x413,0x31a)]??[])[_0x48b600(0x1af,0x129,0x1b5,0xd8)](_0x53fad2=>_0x51375b[_0x48b600(0x23d,0x1eb,0x190,0xe2)](_0x53fad2));function _0x42e9c6(_0x52f21c,_0xed178d,_0x1b3b08,_0x5f456d){return _0x173565(_0x52f21c-0x30,_0xed178d-0x1e1,_0xed178d,_0x1b3b08-_0x46fee0._0x226243);}const _0x610d9c=_0x4b646b['name']??_0x48b600(_0x14fb44._0x333474,_0x14fb44._0x4a2577,_0x14fb44._0x6f30a,0x3b8);return defineTool({'name':_0x610d9c,'description':_0x48b600(0x259,_0x14fb44._0x1e32c9,_0x14fb44._0x5a865d,_0x14fb44._0x5c0f1b),'inputSchema':{'type':_0x42e9c6(0x27f,_0x14fb44._0x2faa24,0x38a,_0x14fb44._0x5b1962),'properties':{'filePath':{'type':_0x42e9c6(_0x14fb44._0x354cfe,_0x14fb44._0x378785,0x3ec,0x480)},'oldText':{'type':_0x48b600(_0x14fb44._0x5aa8a4,_0x14fb44._0x564712,_0x14fb44._0x4db06e,0x391)},'newText':{'type':_0x48b600(_0x14fb44._0x4b4f9e,0x2c0,0x2c6,_0x14fb44._0x122ca5)},'dryRun':{'type':_0x42e9c6(_0x14fb44._0x3d1ff2,0x2e9,_0x14fb44._0x465aea,0x362)}},'required':[_0x42e9c6(0x48e,_0x14fb44._0x5f56c3,0x424,0x4ff),_0x48b600(0xfa,0x215,0x20a,_0x14fb44._0x3f5fcf),_0x42e9c6(_0x14fb44._0x4dbde0,_0x14fb44._0x483ce8,_0x14fb44._0x4b0367,0x3ee)]},async *'execute'(_0x547d80){const _0x5e6610={_0xedeb94:0xcf};function _0x5bf412(_0x210b00,_0xe9618d,_0x45b52f,_0x2f65c5){return _0x42e9c6(_0x210b00-0x1a3,_0x210b00,_0x45b52f- -0x13b,_0x2f65c5-_0x5e6610._0xedeb94);}function _0x4179c7(_0x109b76,_0x83b5f5,_0x1a524d,_0x1975bd){return _0x48b600(_0x83b5f5,_0x83b5f5-0xc0,_0x1a524d- -0x209,_0x1975bd-_0x51dbe0._0x513a46);}const _0xd5578d=resolveAllowedPath(_0x459aa0,_0x1aa15a,_0x547d80[_0x5bf412(0x2ba,_0xd69261._0x4a79dc,_0xd69261._0x4a2871,_0xd69261._0x3b6dbe)]);await assertWorkspaceFile(_0xd5578d);const _0x3673dd=await _0xf55b11(_0xd5578d),_0x3dd705=await _0x549d7c(_0xd5578d),_0x3eb238=detectEol(_0x3dd705),_0x3a3948=normalizeToLf(_0x3dd705[_0x4179c7(-_0xd69261._0x459f70,0x94,-_0xd69261._0x1e5dc8,-0x8)]('utf8')),_0x90a57=normalizeToLf(_0x547d80[_0x4179c7(-0x6d,0xe8,_0xd69261._0x4186a6,_0xd69261._0x5f0a8f)]),_0x5077aa=normalizeToLf(_0x547d80[_0x4179c7(0x252,0xc2,0x190,_0xd69261._0x1fdbfa)]),_0x1f063f=_0x3a3948[_0x4179c7(0xa4,-0x106,-_0xd69261._0x392efc,0x4b)](_0x90a57);if(_0x1f063f===-0x1){const _0x571eb9=_0x90a57['slice'](0x0,0x64)[_0x4179c7(0x1f,_0xd69261._0x173deb,0x4c,-0x49)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x571eb9+(_0x90a57[_0x4179c7(0x146,-_0xd69261._0x21d6b8,_0xd69261._0xf005a3,0x91)]>0x64?_0x5bf412(0x351,0x332,_0xd69261._0x2918e3,0x29b):'')+'\x22',{'filePath':_0x547d80['filePath']});}const _0x391731=_0x3a3948[_0x5bf412(_0xd69261._0x22d70,_0xd69261._0x28bd6a,_0xd69261._0x3b5eff,0x388)](0x0,_0x1f063f)+_0x5077aa+_0x3a3948[_0x5bf412(0x3fa,_0xd69261._0x474878,_0xd69261._0x3b5eff,0x315)](_0x1f063f+_0x90a57[_0x4179c7(_0xd69261._0xc1b9ff,0x60,0xb2,0x147)]),_0x582cd1=convertEol(_0x391731,_0x3eb238),_0x5f269b=Buffer['from'](_0x582cd1,_0x5bf412(_0xd69261._0x3f984d,0x303,0x2c4,0x2f4)),_0x10877d=sha256(_0x3dd705),_0x1abf17=sha256(_0x5f269b),_0x59d39f=_0x10877d===_0x1abf17,_0x293b7e=_0x547d80[_0x4179c7(0x170,_0xd69261._0x265757,0x107,_0xd69261._0x45bf7c)]??![];return!_0x293b7e&&!_0x59d39f&&await atomicWrite(_0xd5578d,_0x5f269b),yield createToolOutput(_0x59d39f?_0x4179c7(_0xd69261._0x34758b,0x179,_0xd69261._0x5a874d,0x169):_0x293b7e?_0x5bf412(0x1c7,0x297,0x1db,_0xd69261._0x196e44):_0x5bf412(_0xd69261._0x3837aa,0x26e,_0xd69261._0x3a37fa,_0xd69261._0x1f2ba5),{'filePath':_0x547d80[_0x4179c7(_0xd69261._0x49dde8,_0xd69261._0x5d61a8,0xf5,0x50)],'resolvedPath':_0xd5578d,'created':_0x3673dd[_0x4179c7(-0xf3,_0xd69261._0x317625,-_0xd69261._0xd91692,-_0xd69261._0x5d04c5)]['toISOString'](),'modified':_0x3673dd[_0x4179c7(-_0xd69261._0x232cd7,-0xeb,-0x80,-0x173)][_0x4179c7(0xc2,0x242,_0xd69261._0x34b3c1,_0xd69261._0x5eb015)](),'size':_0x3673dd['size'],'eol':_0x3eb238,'oldTextLength':_0x90a57[_0x4179c7(_0xd69261._0x28ccbc,0x73,_0xd69261._0xf005a3,0x9f)],'newTextLength':_0x5077aa[_0x5bf412(_0xd69261._0x19e880,_0xd69261._0x59100c,_0xd69261._0x513ff4,0x1f2)],'bytesWritten':_0x59d39f||_0x293b7e?0x0:_0x5f269b['length'],'beforeSha':_0x10877d,'afterSha':_0x1abf17,'dryRun':_0x293b7e,'noChange':_0x59d39f,'lineNumbers':calculateLineNumbers(_0x3a3948,_0x90a57,_0x5077aa,_0x1f063f)}),void 0x0;}});}import{mkdir as _0x5d01dc,rename as _0x62ba6d,stat as _0x4e4b8d,writeFile as _0x2b2170}from'fs/promises';import*as _0x1a68a4 from'path';async function atomicWrite2(_0x5fd540,_0x3013cf){const _0x9c4cbf={_0x1780ca:0x2a8,_0x1984e6:0x3d8,_0x54ab62:0x49b,_0x552bca:0x6d2,_0x59f66d:0x64e,_0x36096f:0x606,_0x3e99cf:0x2ce,_0x13cd4d:0x48b,_0x3de3b8:0x3a8,_0x411241:0x43e,_0x159117:0x2ce,_0x260568:0x1b6,_0x209c64:0x626},_0x56918d={_0x52436e:0x96},_0x3b4c9b={_0x25428f:0x58,_0x11cbda:0x19},_0x54b062=_0x1a68a4['dirname'](_0x5fd540);await _0x5d01dc(_0x54b062,{'recursive':!![]});function _0x3b65e7(_0x2e154f,_0x39386b,_0x200254,_0x2bf0cc){return _0x255f51(_0x2bf0cc- -_0x3b4c9b._0x25428f,_0x39386b-0x18e,_0x39386b,_0x2bf0cc-_0x3b4c9b._0x11cbda);}function _0x35e460(_0x2b656e,_0x51381b,_0x275ac1,_0x52d2ac){return _0x255f51(_0x275ac1- -0x3fd,_0x51381b-_0x56918d._0x52436e,_0x51381b,_0x52d2ac-0x137);}const _0x19fd1a=_0x1a68a4['join'](_0x54b062,'.tmp.'+_0x1a68a4[_0x35e460(_0x9c4cbf._0x1780ca,_0x9c4cbf._0x1984e6,0x384,_0x9c4cbf._0x54ab62)](_0x5fd540)+'.'+Date[_0x3b65e7(_0x9c4cbf._0x552bca,0x57e,_0x9c4cbf._0x59f66d,_0x9c4cbf._0x36096f)]()+'.'+Math[_0x35e460(_0x9c4cbf._0x3e99cf,_0x9c4cbf._0x13cd4d,_0x9c4cbf._0x3de3b8,_0x9c4cbf._0x411241)]()[_0x35e460(0x126,_0x9c4cbf._0x159117,_0x9c4cbf._0x260568,0x298)](0x24)[_0x3b65e7(_0x9c4cbf._0x209c64,0x619,0x6ed,0x688)](0x2));await _0x2b2170(_0x19fd1a,_0x3013cf),await _0x62ba6d(_0x19fd1a,_0x5fd540);}function createFileNewTool(_0x26acd4={}){const _0xc75ec2={_0x115812:0x55b,_0x11bebb:0x59a,_0x13efca:0xd,_0xd7d618:0x77,_0x3dc67f:0x13f,_0x5edcba:0x43,_0x53f111:0x635,_0x32c06d:0x9c,_0x5d6d1e:0x85,_0x5f215d:0x163,_0x3a50fe:0x6ce,_0x12eff6:0x52b,_0x3f6d02:0xa1,_0x32bb74:0x49,_0x5a5d73:0x60e,_0x3dd0a0:0x6ee,_0x478796:0x58d,_0x131640:0x646,_0x4efd3d:0x5a9},_0x4023be={_0x128fa2:0x192,_0x2ce0f0:0x243,_0xbf378:0x69,_0x3332ae:0x3a,_0x6845bc:0x1c,_0x1538c4:0x29,_0x149b18:0x212,_0x1ced77:0xf5,_0x28001b:0xbd,_0x3c0d7b:0x15c,_0x36c73c:0x14f},_0x489f35={_0x204549:0x4c3,_0x2e3084:0x61},_0x55c619={_0x12fced:0xb1,_0x140cba:0xf7};function _0xa6de12(_0x48019c,_0x374e80,_0x273b42,_0x11e798){return _0x255f51(_0x374e80- -_0x55c619._0x12fced,_0x374e80-0xa,_0x48019c,_0x11e798-_0x55c619._0x140cba);}const _0x253d1c=_0x1a68a4[_0xa6de12(_0xc75ec2._0x115812,0x4d8,_0xc75ec2._0x11bebb,0x478)](_0x26acd4[_0x159994(0xdd,0x0,-_0xc75ec2._0x13efca,_0xc75ec2._0xd7d618)]??process[_0x159994(0x78,_0xc75ec2._0x3dc67f,_0xc75ec2._0x5edcba,0xcb)]()),_0x1cf984=(_0x26acd4[_0xa6de12(0x5a0,_0xc75ec2._0x53f111,0x514,0x6f6)]??[])[_0x159994(-0xa6,-_0xc75ec2._0x32c06d,-_0xc75ec2._0x5d6d1e,-_0xc75ec2._0x5f215d)](_0x49271b=>_0x1a68a4[_0xa6de12(0x3d5,0x4d8,0x416,0x469)](_0x49271b));function _0x159994(_0x345316,_0x526fcf,_0x2282af,_0x21c68d){return _0x255f51(_0x526fcf- -0x64a,_0x526fcf-0x30,_0x2282af,_0x21c68d-0xc9);}const _0x755fa5=_0x26acd4['name']??_0xa6de12(0x626,0x5ef,_0xc75ec2._0x3a50fe,_0xc75ec2._0x12eff6);return defineTool({'name':_0x755fa5,'description':_0x159994(-0x12,-_0xc75ec2._0x3f6d02,_0xc75ec2._0x32bb74,-0xe1),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0xa6de12(0x5f6,_0xc75ec2._0x5a5d73,0x622,_0xc75ec2._0x3dd0a0)},'content':{'type':_0xa6de12(_0xc75ec2._0x478796,0x60e,0x511,0x531)}},'required':[_0xa6de12(0x678,_0xc75ec2._0x131640,_0xc75ec2._0x4efd3d,0x703),'content']},async *'execute'(_0x575ccd){const _0x194939={_0x50c3a2:0xc1},_0x2441a4=resolveAllowedPath(_0x253d1c,_0x1cf984,_0x575ccd[_0x217093(0x235,_0x4023be._0x128fa2,0x217,_0x4023be._0x2ce0f0)]);function _0x217093(_0x40f641,_0x2c06df,_0x5cd7e8,_0x59cb7){return _0xa6de12(_0x5cd7e8,_0x2c06df- -0x4b4,_0x5cd7e8-_0x194939._0x50c3a2,_0x59cb7-0xf5);}function _0x376e92(_0x39bc46,_0x34bcab,_0x236c4c,_0x10908d){return _0xa6de12(_0x10908d,_0x39bc46- -_0x489f35._0x204549,_0x236c4c-_0x489f35._0x2e3084,_0x10908d-0xc0);}const _0x40bd46=await _0x4e4b8d(_0x2441a4)['then'](()=>!![])['catch'](()=>![]),_0x533753=Buffer[_0x376e92(_0x4023be._0xbf378,0xff,_0x4023be._0x3332ae,0xbf)](_0x575ccd[_0x376e92(0xbd,0x18d,0xa5,0x10f)],'utf8');return await atomicWrite2(_0x2441a4,_0x533753),yield createToolOutput(_0x217093(-_0x4023be._0x6845bc,0x1,-0x7e,-_0x4023be._0x1538c4)+_0x575ccd['filePath']+'.',{'filePath':_0x575ccd['filePath'],'resolvedPath':_0x2441a4,'bytes':_0x533753[_0x376e92(0x140,0x1d1,_0x4023be._0x149b18,0x37)],'lines':_0x575ccd['content'][_0x376e92(0x2b,-_0x4023be._0x1ced77,-_0x4023be._0x28001b,0xa9)](/\r?\n/)[_0x217093(_0x4023be._0x3c0d7b,_0x4023be._0x36c73c,0x1de,0x1d7)],'created':new Date()['toISOString'](),'overwritten':_0x40bd46}),void 0x0;}});}import{readFile as _0x3b5935,stat as _0x43ae04}from'fs/promises';import*as _0x4aca11 from'path';function stripUtfBom(_0xfd1b98){const _0x572317={_0x3f275c:0x692};function _0x5e1599(_0x18a5a0,_0x2bec4b,_0x5586f8,_0x166f89){return _0x255f51(_0x166f89- -0x4e,_0x2bec4b-0x194,_0x18a5a0,_0x166f89-0x1f4);}return _0xfd1b98['charCodeAt'](0x0)===0xfeff?_0xfd1b98[_0x5e1599(0x66e,0x762,0x6bc,_0x572317._0x3f275c)](0x1):_0xfd1b98;}function clampLine(_0x20a213,_0x104de5){const _0x1ae88f={_0x593d53:0x1d1,_0x44575c:0x1b3,_0x16cd0d:0x1a0,_0x3f7c11:0x40,_0x3400fb:0x33,_0x2c3dd0:0x34},_0x4cfd36={_0xecc49d:0x131},_0x244688={_0x29aad3:0x743};if(!Number['isFinite'](_0x20a213))return 0x1;function _0x4b3285(_0x22adc5,_0x55a5b9,_0x1a8e1c,_0x3271b2){return _0x255f51(_0x3271b2- -_0x244688._0x29aad3,_0x55a5b9-0x6e,_0x22adc5,_0x3271b2-0x9f);}function _0x19b751(_0x3fc5dd,_0x3a109f,_0x416deb,_0x5d4cf0){return _0x255f51(_0x416deb- -0x696,_0x3a109f-0x3b,_0x3a109f,_0x5d4cf0-_0x4cfd36._0xecc49d);}return Math[_0x4b3285(-_0x1ae88f._0x593d53,-_0x1ae88f._0x44575c,-0xfd,-_0x1ae88f._0x16cd0d)](0x1,Math[_0x4b3285(-0x9c,_0x1ae88f._0x3f7c11,-_0x1ae88f._0x3400fb,-_0x1ae88f._0x2c3dd0)](Math['trunc'](_0x20a213),_0x104de5));}function createFileReadTool(_0x3222bd={}){const _0x43dbe9={_0x2caa68:0x161,_0x7b99aa:0x2f,_0x263c00:0x119,_0x73198d:0x647,_0x14eb5d:0x75c,_0x34377e:0x610,_0x5c1557:0x6c1,_0x422286:0x25,_0x2fc919:0x577,_0x4c80f4:0x60d,_0x476eae:0x666,_0x2dfd17:0x5c0},_0x8fa181={_0x20efab:0x4e0,_0x19344f:0x36e,_0x539d4f:0x94,_0x2c5db0:0x4d,_0x1085cc:0x75,_0x505f96:0x41,_0x3487ad:0x4b,_0x4fa52f:0x26c,_0x5677a8:0x256,_0x1a3006:0x339,_0x145b33:0x228,_0x1dfba3:0x16c,_0x329c25:0x21,_0x1152f9:0x4e,_0x38d51f:0xdb,_0xe2ec3e:0x26c,_0x53a486:0x74,_0x4cb889:0x1f6,_0x3b7009:0x313,_0x2e6531:0xf0,_0x1ef2cd:0x14b,_0x557bc1:0x16e,_0x365523:0x1cc,_0x5f5ab1:0xed,_0x39b907:0x131,_0x4b9fd0:0x403,_0x43e789:0x3c7,_0x3780be:0x352,_0x12c194:0x20d,_0x58ec94:0x169,_0x558a8d:0x11a,_0x58b382:0x4a,_0x2f6312:0x34,_0x1b958e:0x10b,_0x582df4:0x146,_0x16a7e7:0x1b,_0x441071:0x225,_0x1767ea:0x17e,_0x1a1a13:0xc3,_0x21f449:0x249,_0x1839cf:0x384,_0xcbd5de:0x3c5},_0x2aac6e={_0x5e6505:0x25,_0x28e9a7:0x145},_0x491272={_0x472b40:0x5ee,_0x23b728:0xdd,_0x1005dd:0x17d},_0x552bd3=_0x4aca11[_0x1de988(0x9c,-0xa2,0x2c,-0x65)](_0x3222bd[_0x1de988(_0x43dbe9._0x2caa68,_0x43dbe9._0x7b99aa,_0x43dbe9._0x263c00,0x5c)]??process[_0x555769(0x83a,_0x43dbe9._0x73198d,_0x43dbe9._0x14eb5d,0x764)]()),_0x3814f3=(_0x3222bd[_0x555769(_0x43dbe9._0x34377e,0x7ef,0x6bd,_0x43dbe9._0x5c1557)]??[])[_0x1de988(-0x63,_0x43dbe9._0x422286,-0x114,-0x40)](_0xab087b=>_0x4aca11[_0x1de988(-0x25,0x3f,0xb,-0x65)](_0xab087b));function _0x1de988(_0xd243c8,_0x12e622,_0x35f4ac,_0x33c141){return _0x255f51(_0x33c141- -_0x491272._0x472b40,_0x12e622-_0x491272._0x23b728,_0x12e622,_0x33c141-_0x491272._0x1005dd);}function _0x555769(_0x2fd7bc,_0x200fc7,_0xf5b691,_0x20116a){return _0x255f51(_0x20116a- -_0x2aac6e._0x5e6505,_0x200fc7-0xfc,_0x200fc7,_0x20116a-_0x2aac6e._0x28e9a7);}const _0x4e8b76=_0x3222bd['name']??'FileRead';return defineTool({'name':_0x4e8b76,'description':_0x555769(0x629,0x4c7,0x4b1,_0x43dbe9._0x2fc919),'inputSchema':{'type':'object','properties':{'path':{'type':'string'},'lineStart':{'type':_0x555769(0x503,_0x43dbe9._0x4c80f4,0x6dc,0x5e4)},'lineEnd':{'type':'number'}},'required':[_0x555769(0x516,0x575,_0x43dbe9._0x476eae,_0x43dbe9._0x2dfd17)]},async *'execute'(_0x1d7355){const _0x1c7174=resolveAllowedPath(_0x552bd3,_0x3814f3,_0x1d7355['path']);await assertWorkspaceFile(_0x1c7174);function _0x33126e(_0x64f9bf,_0x33c3f9,_0x9e4eb8,_0x4ee979){return _0x555769(_0x64f9bf-0x96,_0x33c3f9,_0x9e4eb8-0x193,_0x64f9bf- -0x364);}const _0x7d53f7=await _0x43ae04(_0x1c7174);function _0xc9fc58(_0x53c1c4,_0x763e95,_0x5aa31e,_0x212734){return _0x1de988(_0x53c1c4-0xa3,_0x763e95,_0x5aa31e-0x11c,_0x5aa31e-0x54);}const _0x597a60=await _0x3b5935(_0x1c7174);if(isProbablyBinary(_0x597a60))throw new ToolExecutionError(_0x33126e(0x3fe,_0x8fa181._0x20efab,0x4d5,_0x8fa181._0x19344f)+_0x1d7355[_0xc9fc58(_0x8fa181._0x539d4f,_0x8fa181._0x2c5db0,0x4b,-_0x8fa181._0x1085cc)],{'path':_0x1d7355[_0xc9fc58(-0xb7,-_0x8fa181._0x505f96,_0x8fa181._0x3487ad,-0x9e)]});let _0x56c8b6=_0x597a60[_0x33126e(0x22a,0x35a,_0x8fa181._0x4fa52f,_0x8fa181._0x5677a8)](_0x33126e(0x349,_0x8fa181._0x1a3006,0x28e,_0x8fa181._0x145b33));const _0x253ffc=_0x56c8b6[_0x33126e(0x28a,_0x8fa181._0x1dfba3,0x397,0x357)](0x0)===0xfeff;_0x56c8b6=stripUtfBom(_0x56c8b6);const _0x6e4ddb=_0x56c8b6[_0xc9fc58(_0x8fa181._0x329c25,0x5,0x5,_0x8fa181._0x1152f9)](/\r?\n/),_0x1df463={'path':_0x1d7355['path'],'resolvedPath':_0x1c7174,'created':_0x7d53f7[_0x33126e(0x1d0,0x24a,0xc3,_0x8fa181._0x38d51f)][_0xc9fc58(_0x8fa181._0xe2ec3e,0x146,0x19b,_0x8fa181._0x53a486)](),'modified':_0x7d53f7[_0x33126e(0x1f9,_0x8fa181._0x4cb889,0x281,_0x8fa181._0x3b7009)][_0xc9fc58(0x2ba,_0x8fa181._0x2e6531,0x19b,_0x8fa181._0x1ef2cd)](),'size':_0x7d53f7[_0xc9fc58(_0x8fa181._0x557bc1,_0x8fa181._0x365523,_0x8fa181._0x5f5ab1,_0x8fa181._0x39b907)],'encoding':_0x33126e(0x349,_0x8fa181._0x4b9fd0,_0x8fa181._0x43e789,0x39e),'bomStripped':_0x253ffc,'truncated':![],'totalLines':_0x6e4ddb['length']};if(_0x1d7355[_0x33126e(_0x8fa181._0x3780be,0x269,0x256,0x2bf)]!==void 0x0||_0x1d7355['lineEnd']!==void 0x0){const _0x3a5231=clampLine(_0x1d7355[_0xc9fc58(0x1b5,0x135,0x141,0x26c)]??0x1,_0x6e4ddb[_0xc9fc58(0x241,0x41,0x11a,0x14d)]),_0x5a659a=clampLine(_0x1d7355[_0xc9fc58(0x1e2,0x150,_0x8fa181._0x12c194,0x185)]??_0x6e4ddb['length'],_0x6e4ddb[_0xc9fc58(_0x8fa181._0x58ec94,0x135,_0x8fa181._0x558a8d,0x220)]),_0x4f0e0a=Math['min'](_0x3a5231,_0x5a659a),_0x2cd2fa=Math[_0xc9fc58(-0x109,-_0x8fa181._0x58b382,0x9,-_0x8fa181._0x2f6312)](_0x3a5231,_0x5a659a),_0x337440=_0x6e4ddb[_0xc9fc58(_0x8fa181._0x1b958e,0x1d9,_0x8fa181._0x582df4,_0x8fa181._0x16a7e7)](_0x4f0e0a-0x1,_0x2cd2fa)[_0x33126e(_0x8fa181._0x441071,0x12e,_0x8fa181._0x1767ea,0x203)]((_0x54a7d4,_0x4c64c7)=>_0x4f0e0a+_0x4c64c7+'|'+_0x54a7d4)[_0xc9fc58(0x19,_0x8fa181._0x1a1a13,0x56,-0x69)]('\x0a');return yield createToolOutput(_0x337440,{..._0x1df463,'lineRange':{'lineStart':_0x4f0e0a,'lineEnd':_0x2cd2fa,'linesTotal':_0x6e4ddb[_0x33126e(0x32b,_0x8fa181._0x21f449,_0x8fa181._0x1839cf,_0x8fa181._0xcbd5de)]}}),void 0x0;}return yield createToolOutput(_0x56c8b6,_0x1df463),void 0x0;}});}import{stat as _0x222d03}from'fs/promises';import*as _0x1196ea from'path';import{execSync,spawn as _0x1c433c}from'child_process';import{existsSync}from'fs';import{stat as _0x5c8fb8}from'fs/promises';import*as _0x1863cf from'os';import*as _0x2654ae from'path';import{rgPath as _0x6281a1}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x3640eb={_0x113ab8:0x651,_0x4a1d83:0x7a2,_0x4ea2d0:0x772,_0x299673:0x472,_0x186513:0x1f1,_0x26569f:0x57c,_0x35902d:0x5cf,_0x32aa43:0x60e,_0x519154:0x2c7,_0xf86db9:0x738,_0x1dc7c4:0x69c,_0x1433bc:0x5fd,_0x498f1c:0x311,_0x91d219:0x43f,_0x1e3237:0x4ff,_0x53989a:0x5f7,_0x2d40dd:0x6dd,_0x3cf872:0x5c3,_0x1e4571:0x30d,_0x4ae205:0x3f3,_0x5dd3ae:0x222,_0x4f964e:0x218,_0x125b32:0x6c8,_0x5a2cea:0x6e6,_0x54a988:0x7a8,_0x401f32:0x21f,_0xcb4f63:0x153,_0x5c9066:0x56d,_0x572f18:0x257,_0x187f45:0x15d,_0x4f3a80:0x47d,_0x474fde:0x397,_0xeee7a3:0x477,_0x5df959:0x481,_0x597a80:0x654,_0x521c13:0x709,_0x3708f7:0x7ec,_0x52343a:0x2a4,_0x2c5204:0x3b4,_0x12c995:0x38d,_0x400f26:0x24e,_0xd3616:0x194,_0x5ab275:0x6f,_0x54779f:0x612,_0x308485:0x668,_0x357f41:0x653,_0x3bb87f:0x682,_0x391b09:0x59b,_0x3afaaf:0x2d3,_0x4286ff:0x243,_0x54f748:0x3f2,_0x376718:0x1fe,_0x1a499a:0x252,_0x267025:0x132,_0x6ba70e:0x16b,_0x6da5d1:0x1eb,_0x1e4e41:0x187,_0x461582:0x152,_0x4aa2cb:0x255,_0x54fb91:0x1f2},_0x1bab9a={_0x430e25:0x3ff,_0x6480c9:0x1d4},_0x268d30={_0x249fa5:0x6f,_0x35d0a2:0x18c},_0xfb41d2=_0x1863cf[_0x41782e(_0x3640eb._0x113ab8,_0x3640eb._0x4a1d83,0x759,_0x3640eb._0x4ea2d0)]()===_0x41782e(_0x3640eb._0x299673,0x59e,0x68e,0x570);function _0x41782e(_0x455018,_0x32df9f,_0x5aa7cb,_0x5d672e){return _0x173565(_0x455018-_0x268d30._0x249fa5,_0x32df9f-_0x268d30._0x35d0a2,_0x32df9f,_0x5d672e-0x573);}const _0x36eace=_0xfb41d2?[_0x2654ae[_0x28e317(_0x3640eb._0x186513,0x2c6,0x182,0x26d)](process[_0x41782e(_0x3640eb._0x26569f,0x61d,_0x3640eb._0x35902d,_0x3640eb._0x32aa43)][_0x28e317(_0x3640eb._0x519154,0x232,0x399,0x1dc)]||'',_0x41782e(_0x3640eb._0xf86db9,0x633,0x588,_0x3640eb._0x1dc7c4),_0x41782e(_0x3640eb._0x1433bc,0x616,0x514,0x63c),_0x28e317(_0x3640eb._0x498f1c,0x24a,_0x3640eb._0x91d219,0x428)),_0x2654ae[_0x41782e(0x561,_0x3640eb._0x1e3237,0x612,_0x3640eb._0x53989a)](process[_0x41782e(0x5d2,_0x3640eb._0x2d40dd,_0x3640eb._0x3cf872,0x60e)][_0x28e317(0x2c8,0x255,_0x3640eb._0x1e4571,_0x3640eb._0x4ae205)]||'',_0x28e317(0x153,0x184,_0x3640eb._0x5dd3ae,_0x3640eb._0x4f964e),_0x41782e(_0x3640eb._0x125b32,0x829,_0x3640eb._0x5a2cea,_0x3640eb._0x54a988)),_0x2654ae[_0x28e317(_0x3640eb._0x186513,0x272,_0x3640eb._0x401f32,_0x3640eb._0xcb4f63)](process[_0x41782e(0x6e4,0x671,_0x3640eb._0x5c9066,0x60e)][_0x28e317(_0x3640eb._0x572f18,_0x3640eb._0x187f45,0x2cc,0x25a)]||'','ripgrep',_0x28e317(0x3a2,_0x3640eb._0x4f3a80,_0x3640eb._0x474fde,0x3b1))]:[_0x28e317(0x353,_0x3640eb._0xeee7a3,0x34e,_0x3640eb._0x5df959),_0x41782e(_0x3640eb._0x597a80,_0x3640eb._0x521c13,_0x3640eb._0x3708f7,0x770),_0x28e317(_0x3640eb._0x52343a,_0x3640eb._0x2c5204,_0x3640eb._0x12c995,_0x3640eb._0x400f26),_0x28e317(_0x3640eb._0xd3616,_0x3640eb._0x5ab275,0x64,0x82)];for(const _0x40c62e of _0x36eace){if(existsSync(_0x40c62e))return _0x40c62e;}try{const _0x14fddf=_0xfb41d2?_0x41782e(_0x3640eb._0x54779f,_0x3640eb._0x308485,0x650,_0x3640eb._0x357f41):_0x41782e(_0x3640eb._0x3bb87f,_0x3640eb._0x391b09,0x67f,0x6a4),_0x4f57e1=execSync(_0x14fddf,{'encoding':_0x28e317(_0x3640eb._0x3afaaf,0x320,_0x3640eb._0x4286ff,_0x3640eb._0x54f748),'stdio':[_0x28e317(_0x3640eb._0x376718,_0x3640eb._0x1a499a,_0x3640eb._0x267025,_0x3640eb._0x6ba70e),_0x28e317(0x1fe,0xf7,0x273,0x1ad),_0x28e317(_0x3640eb._0x6da5d1,0x23e,_0x3640eb._0x1e4e41,0xf7)]})[_0x28e317(_0x3640eb._0x461582,_0x3640eb._0x4aa2cb,_0x3640eb._0x54fb91,0x251)]()['split'](/\r?\n/)[0x0];if(_0x4f57e1&&existsSync(_0x4f57e1))return _0x4f57e1;}catch{return null;}function _0x28e317(_0x25ec71,_0x187d91,_0x1a741e,_0x341c69){return _0x255f51(_0x25ec71- -_0x1bab9a._0x430e25,_0x187d91-0x18f,_0x187d91,_0x341c69-_0x1bab9a._0x6480c9);}return null;}async function filepath(){const _0x5359cb={_0x75942f:0x7},_0x52013f={_0x5c4855:0x9c};if(cachedRgPath)return cachedRgPath;if(_0x6281a1&&existsSync(_0x6281a1))return cachedRgPath=_0x6281a1,_0x6281a1;const _0x3e997a=findSystemRipgrep();function _0x1877a3(_0x137caf,_0x24f064,_0x573102,_0x13b154){return _0x255f51(_0x13b154- -0x677,_0x24f064-0x1aa,_0x24f064,_0x13b154-_0x52013f._0x5c4855);}if(!_0x3e997a)throw new Error(_0x1877a3(-_0x5359cb._0x75942f,-0x158,0x66,-0x7b));return cachedRgPath=_0x3e997a,_0x3e997a;}async function*files(_0x2a26fb){const _0x3de905={_0x190cd7:0x6e9,_0x3ad14c:0x806,_0x4d0df7:0x763,_0x1bb611:0x389,_0x22b7ba:0x32a,_0x1c17a7:0x2af,_0x167b5e:0x41b,_0x36642e:0x70e,_0x1e365a:0x36d,_0xb43c49:0x810,_0x5c1038:0x74f,_0x3bb5ea:0x43c,_0x25170e:0x363,_0x450c4d:0x839,_0x40ae72:0x674,_0x15fa3d:0x48a,_0x3814a2:0x4ab,_0x14b28f:0x5b4,_0x4bb760:0x5a3,_0x4ff699:0x5b6,_0x457bf0:0x26c,_0x57896a:0x215,_0x5c09c2:0x2c6,_0x1a529c:0x518,_0x2e407e:0x56b,_0x1f7163:0x104,_0x14a5c0:0x20a,_0x54d07e:0x337,_0xfd0954:0x4f9,_0x4a97a5:0x5fe,_0x3c0663:0x56a,_0x38590a:0x1c0,_0x1884db:0x1e1},_0x411983={_0x3778f9:0x525},_0x4c76e7={_0x4fed7e:0x391,_0x551431:0x135},_0x377655=await filepath(),_0x4ee208=await _0x5c8fb8(_0x2a26fb['cwd'])['catch'](()=>null);if(!_0x4ee208?.[_0x56ba11(0x6b0,_0x3de905._0x190cd7,_0x3de905._0x3ad14c,_0x3de905._0x4d0df7)]())throw Object[_0x3ca922(_0x3de905._0x1bb611,_0x3de905._0x22b7ba,_0x3de905._0x1c17a7,_0x3de905._0x167b5e)](new Error(_0x56ba11(0x741,0x67d,0x623,_0x3de905._0x36642e)+_0x2a26fb[_0x3ca922(0x3f8,0x351,0x31f,0x2e4)]+'\x27'),{'code':_0x3ca922(0x3ca,0x2d0,_0x3de905._0x1e365a,0x2cc)});const _0x3c8b85=['--files','--follow','--hidden','--glob=!.git/*'];for(const _0x379875 of _0x2a26fb[_0x56ba11(_0x3de905._0xb43c49,0x76a,0x77e,_0x3de905._0x5c1038)]??[]){_0x3c8b85[_0x3ca922(0x31f,0x2f6,_0x3de905._0x3bb5ea,_0x3de905._0x25170e)]('--glob='+_0x379875);}function _0x3ca922(_0x22440f,_0x33877c,_0x4d5fea,_0x571eb3){return _0x255f51(_0x22440f- -_0x4c76e7._0x4fed7e,_0x33877c-_0x4c76e7._0x551431,_0x33877c,_0x571eb3-0x5e);}function _0x56ba11(_0x2ec70f,_0x20b1db,_0x3e1a50,_0x5ba9c6){return _0x173565(_0x2ec70f-0x169,_0x20b1db-0x15b,_0x20b1db,_0x5ba9c6-_0x411983._0x3778f9);}const _0x56a357=_0x1c433c(_0x377655,_0x3c8b85,{'cwd':_0x2a26fb[_0x56ba11(0x682,_0x3de905._0x450c4d,_0x3de905._0x40ae72,0x742)],'stdio':[_0x56ba11(_0x3de905._0x15fa3d,_0x3de905._0x3814a2,_0x3de905._0x14b28f,_0x3de905._0x4bb760),_0x56ba11(0x6ce,0x6e6,0x6d7,_0x3de905._0x4ff699),_0x3ca922(_0x3de905._0x457bf0,_0x3de905._0x57896a,_0x3de905._0x5c09c2,0x303)]});let _0x1cd3a9='';for await(const _0x3989b4 of _0x56a357[_0x56ba11(0x67c,_0x3de905._0x1a529c,0x4b5,_0x3de905._0x2e407e)]??[]){_0x1cd3a9+=_0x3989b4[_0x3ca922(0x222,_0x3de905._0x1f7163,_0x3de905._0x14a5c0,_0x3de905._0x54d07e)]();const _0x194f56=_0x1cd3a9['split'](/\r?\n/);_0x1cd3a9=_0x194f56[_0x56ba11(0x65c,_0x3de905._0xfd0954,_0x3de905._0x4a97a5,_0x3de905._0x3c0663)]()??'';for(const _0x566edf of _0x194f56){if(_0x566edf['length']>0x0)yield _0x566edf;}}_0x1cd3a9[_0x3ca922(_0x3de905._0x38590a,0xef,0x1a6,_0x3de905._0x1884db)]()[_0x3ca922(0x323,0x365,0x2c3,0x261)]>0x0&&(yield _0x1cd3a9['trim']());}function parseMatchLine(_0x5420d9,_0x322957){const _0x3e95b3={_0x40409c:0x181,_0x3c5862:0xbd,_0x56c2c8:0x10c,_0x416f13:0x28,_0x1df492:0xa0,_0x38dfdb:0x38,_0x52cd59:0x13a,_0x2f59ed:0x34,_0x4a4af5:0xe5,_0x20a6af:0xc7,_0x44d3f9:0x7,_0x291c45:0x30,_0x3ed212:0x73,_0x27b686:0x89,_0x485aeb:0xd,_0x3ae2ba:0x1a,_0x4239fb:0xcc,_0x52a095:0x58,_0x16baf8:0x68,_0x372cc7:0x25b,_0x1f22d1:0x18e,_0x5d3c44:0x131,_0x2c5894:0x1cb,_0x4658ea:0xbd,_0x52f9b0:0x6c},_0x31fda7={_0x39121c:0xea};function _0xcf2485(_0x2e9775,_0x33039f,_0x924353,_0x3d4294){return _0x173565(_0x2e9775-0x23,_0x33039f-0x186,_0x33039f,_0x924353- -0xf0);}if(!_0x5420d9||_0x5420d9==='--')return null;const _0x4c53d4=_0x5420d9[_0xcf2485(-_0x3e95b3._0x40409c,-0x131,-_0x3e95b3._0x3c5862,-0x135)]('|');if(_0x322957&&_0x4c53d4[_0xcf2485(_0x3e95b3._0x56c2c8,-0xcd,0x58,0x24)]>=0x4&&Number[_0x321107(_0x3e95b3._0x416f13,_0x3e95b3._0x1df492,-_0x3e95b3._0x38dfdb,_0x3e95b3._0x52cd59)](Number[_0x321107(_0x3e95b3._0x2f59ed,0x7,0x23,-_0x3e95b3._0x4a4af5)](_0x4c53d4[0x2]??'',0xa))){const _0x494da5=Number[_0x321107(_0x3e95b3._0x20a6af,_0x3e95b3._0x44d3f9,_0x3e95b3._0x291c45,_0x3e95b3._0x3ed212)](_0x4c53d4[0x1]??'',0xa);if(!Number[_0x321107(0x78,_0x3e95b3._0x1df492,_0x3e95b3._0x27b686,0x1a9)](_0x494da5)||!_0x4c53d4[0x0])return null;return{'filePath':_0x4c53d4[0x0],'lineNum':_0x494da5,'lineText':_0x4c53d4[_0x321107(-0xc9,-_0x3e95b3._0x485aeb,_0x3e95b3._0x3ae2ba,0x98)](0x3)['join']('|')};}if(_0x4c53d4[_0xcf2485(_0x3e95b3._0x4239fb,0x106,_0x3e95b3._0x52a095,-_0x3e95b3._0x16baf8)]>=0x3){const _0x3f15db=Number['parseInt'](_0x4c53d4[0x1]??'',0xa);if(!Number[_0xcf2485(_0x3e95b3._0x372cc7,_0x3e95b3._0x1f22d1,_0x3e95b3._0x5d3c44,_0x3e95b3._0x2c5894)](_0x3f15db)||!_0x4c53d4[0x0])return null;return{'filePath':_0x4c53d4[0x0],'lineNum':_0x3f15db,'lineText':_0x4c53d4['slice'](0x2)[_0xcf2485(_0x3e95b3._0x4658ea,-0x174,-_0x3e95b3._0x52f9b0,-0x87)]('|'),..._0x322957?{'isContext':!![]}:{}};}function _0x321107(_0x390e99,_0x5bffbb,_0x35e002,_0x92f7e){return _0x173565(_0x390e99-_0x31fda7._0x39121c,_0x5bffbb-0xb5,_0x35e002,_0x5bffbb- -0x181);}return null;}async function search(_0x2f3bd2){const _0x2a75a3={_0x42c851:0x795,_0x2b6381:0x800,_0x4d7fdf:0x58f,_0x4fcc84:0x553,_0x5d77ef:0x67a,_0x33e8dd:0x594,_0x4bd751:0x69a,_0x9101dd:0x5ee,_0x442e73:0x559,_0x58f31d:0x50a,_0x3ad5da:0x529,_0x14e655:0x59a,_0x3c3e91:0x6c1,_0x199372:0x3d2,_0x5f24e6:0x65c,_0x20107e:0x5e9,_0x5c4ccb:0x6ee,_0x2434b6:0x7e7,_0x2af364:0x600,_0x1f4839:0x4b4,_0x38265a:0x4b7,_0x383f04:0x479,_0x5123b2:0x3af,_0x54626e:0x31a,_0x485fbb:0x2dd,_0x43936e:0x459,_0x45900d:0x6c7,_0x264565:0x675,_0x429f71:0x6f9,_0x87479b:0x50d,_0x224cb7:0x45e,_0x57c14a:0x522,_0x1ce277:0x487,_0x36821a:0x743,_0x1c253d:0x4eb,_0x299de3:0x551,_0x712301:0x5da,_0x2a3e27:0x3d0,_0x4bbf29:0x509,_0x12aa22:0x67e,_0x5504b4:0x757,_0x35ecb2:0x78d,_0x4c2477:0x76e,_0x2b7091:0x7c4,_0x2f1bcf:0x81b,_0x5af2e7:0x79e,_0x4c13f8:0x7ac,_0x592176:0x80d,_0x2a14b1:0x77b},_0x5c0d5b={_0x5023ca:0x3a6,_0x50b796:0x371,_0x148976:0x346,_0x111655:0x3f9,_0x57aaa3:0x28,_0x10b9a2:0x97,_0x19ef17:0x136,_0x22d390:0x141,_0x6b3361:0x10e,_0x274df7:0x186,_0x236f07:0x1a7,_0x2a8ca2:0x23d,_0x4d67f3:0x152,_0x5cf31d:0x25b,_0x1c431d:0x1be,_0xa87316:0x5f,_0x4759e2:0xa7,_0x2a3459:0x3e},_0x340f79={_0x4b14d1:0x1fb,_0x4af5d0:0x248,_0x25eb8f:0x2cb},_0x124bf0={_0x16fac7:0x1c1,_0x377f20:0x14e},_0x1ace61={_0x2d8725:0x59a},_0x1e266b=await filepath();function _0x544ab3(_0x1d443a,_0x257fc8,_0x494418,_0x33cdd4){return _0x173565(_0x1d443a-0x15f,_0x257fc8-0x1c7,_0x257fc8,_0x494418-_0x1ace61._0x2d8725);}if(_0x2f3bd2[_0x544ab3(_0x2a75a3._0x42c851,0x715,0x7ac,_0x2a75a3._0x2b6381)]){const _0x31b61f=await _0x5c8fb8(_0x2f3bd2['file'])[_0x544ab3(_0x2a75a3._0x4d7fdf,_0x2a75a3._0x4fcc84,0x621,_0x2a75a3._0x5d77ef)](()=>null);if(!_0x31b61f?.[_0x34c6f0(_0x2a75a3._0x33e8dd,0x49b,0x5a7,_0x2a75a3._0x4bd751)]())throw Object[_0x34c6f0(0x577,_0x2a75a3._0x9101dd,_0x2a75a3._0x442e73,0x5ad)](new Error(_0x34c6f0(0x49b,0x5b7,0x59e,_0x2a75a3._0x58f31d)+_0x2f3bd2['file']+'\x27'),{'code':_0x34c6f0(0x65a,_0x2a75a3._0x3ad5da,_0x2a75a3._0x14e655,_0x2a75a3._0x3c3e91)});}else{const _0x235573=await _0x5c8fb8(_0x2f3bd2[_0x34c6f0(0x6ba,0x6f1,0x5c8,0x68c)])[_0x34c6f0(0x536,0x53f,0x432,_0x2a75a3._0x199372)](()=>null);if(!_0x235573?.[_0x34c6f0(_0x2a75a3._0x5f24e6,0x540,_0x2a75a3._0x20107e,0x617)]())throw Object[_0x544ab3(0x7b9,_0x2a75a3._0x5c4ccb,0x748,_0x2a75a3._0x2434b6)](new Error(_0x34c6f0(0x4d0,0x6be,0x594,0x46b)+_0x2f3bd2[_0x34c6f0(_0x2a75a3._0x2af364,_0x2a75a3._0x1f4839,0x5c8,_0x2a75a3._0x38265a)]+'\x27'),{'code':'ENOENT'});}const _0x7c0148=[_0x34c6f0(_0x2a75a3._0x383f04,0x3c2,_0x2a75a3._0x5123b2,0x390),_0x34c6f0(_0x2a75a3._0x54626e,_0x2a75a3._0x485fbb,0x396,_0x2a75a3._0x43936e),_0x544ab3(_0x2a75a3._0x9101dd,0x70f,_0x2a75a3._0x45900d,0x7ca),'--regexp',_0x2f3bd2[_0x544ab3(0x4f5,_0x2a75a3._0x264565,0x615,_0x2a75a3._0x429f71)]],_0x11525b=typeof _0x2f3bd2[_0x34c6f0(_0x2a75a3._0x87479b,0x417,_0x2a75a3._0x224cb7,_0x2a75a3._0x57c14a)]==='number'&&_0x2f3bd2[_0x34c6f0(0x36d,0x537,0x45e,_0x2a75a3._0x1ce277)]>0x0;_0x11525b&&_0x7c0148[_0x544ab3(0x6ee,0x67f,0x6de,0x60f)]('-C',String(_0x2f3bd2[_0x544ab3(0x730,0x656,0x64d,_0x2a75a3._0x36821a)]),_0x34c6f0(0x4cc,0x592,0x554,0x44f));function _0x34c6f0(_0x2165f2,_0x1e8af8,_0x4119bf,_0x5f149c){return _0x255f51(_0x4119bf- -_0x124bf0._0x16fac7,_0x1e8af8-_0x124bf0._0x377f20,_0x1e8af8,_0x5f149c-0x54);}return _0x2f3bd2[_0x544ab3(0x79f,0x895,0x7c4,0x7ed)]&&!_0x2f3bd2[_0x34c6f0(_0x2a75a3._0x1c253d,_0x2a75a3._0x299de3,0x5bd,0x4a3)]&&_0x7c0148[_0x34c6f0(_0x2a75a3._0x712301,_0x2a75a3._0x2a3e27,0x4ef,_0x2a75a3._0x4bbf29)](_0x544ab3(_0x2a75a3._0x12aa22,0x717,_0x2a75a3._0x5504b4,_0x2a75a3._0x35ecb2),_0x2f3bd2[_0x544ab3(_0x2a75a3._0x4c2477,0x8cd,_0x2a75a3._0x2b7091,_0x2a75a3._0x2f1bcf)]),_0x7c0148[_0x544ab3(0x719,0x61e,0x6de,0x6b8)](_0x2f3bd2[_0x544ab3(_0x2a75a3._0x5af2e7,0x884,_0x2a75a3._0x4c13f8,_0x2a75a3._0x592176)]??_0x2f3bd2[_0x544ab3(0x840,_0x2a75a3._0x2a14b1,0x7b7,0x86b)]),await new Promise((_0x27c82b,_0x11f34b)=>{const _0x19fabb={_0x32d705:0x5d2,_0x15057c:0x599,_0x2c5c59:0x5b0,_0x2af6ff:0x54e,_0x27df49:0x5d5,_0x274390:0x5c1},_0x2a6c3f={_0x3cb094:0x91},_0x4a5ebe={_0x9f16f5:0x1ae,_0x202704:0x15a},_0x157ac8={_0x19fa49:0x594,_0x9c809a:0xa9},_0x1bbbd5={_0x4a2400:0x3be},_0x4196fa=_0x1c433c(_0x1e266b,_0x7c0148,{'cwd':_0x2f3bd2[_0xe7b26f(_0x5c0d5b._0x5023ca,_0x5c0d5b._0x50b796,_0x5c0d5b._0x148976,_0x5c0d5b._0x111655)],'stdio':[_0x19af9b(0x112,0x84,0xa,_0x5c0d5b._0x57aaa3),_0x19af9b(0x182,_0x5c0d5b._0x10b9a2,_0x5c0d5b._0x19ef17,0x14d),'pipe']});function _0xe7b26f(_0x404ead,_0x7e5aff,_0x205262,_0x27cb85){return _0x544ab3(_0x404ead-0x19e,_0x205262,_0x27cb85- -_0x1bbbd5._0x4a2400,_0x27cb85-0x1a2);}let _0xc4aead='';function _0x19af9b(_0x437aa6,_0x5b9e55,_0x2d9674,_0x4d66ee){return _0x544ab3(_0x437aa6-0x53,_0x437aa6,_0x5b9e55- -_0x157ac8._0x19fa49,_0x4d66ee-_0x157ac8._0x9c809a);}let _0x364700='';_0x4196fa['stdout']?.['on'](_0x19af9b(0xde,_0x5c0d5b._0x22d390,0xa9,_0x5c0d5b._0x6b3361),_0x397c41=>{function _0x21e738(_0x5cf450,_0x59eba8,_0x432945,_0x599e8d){return _0x19af9b(_0x599e8d,_0x5cf450-_0x4a5ebe._0x9f16f5,_0x432945-0x16b,_0x599e8d-_0x4a5ebe._0x202704);}_0xc4aead+=_0x397c41[_0x21e738(_0x340f79._0x4b14d1,0x142,_0x340f79._0x4af5d0,_0x340f79._0x25eb8f)]();}),_0x4196fa[_0xe7b26f(_0x5c0d5b._0x274df7,0x1a6,_0x5c0d5b._0x236f07,_0x5c0d5b._0x2a8ca2)]?.['on'](_0x19af9b(0x174,0x141,_0x5c0d5b._0x4d67f3,_0x5c0d5b._0x5cf31d),_0x11feea=>{const _0x529f05={_0x538cbc:0x15f,_0x17d5e5:0x1bb};function _0x5f4b27(_0xeb86fd,_0x36e6b9,_0x72ef36,_0x174b74){return _0xe7b26f(_0xeb86fd-_0x529f05._0x538cbc,_0x36e6b9-_0x529f05._0x17d5e5,_0x174b74,_0x36e6b9- -0x145);}_0x364700+=_0x11feea[_0x5f4b27(0x1ad,0xde,_0x2a6c3f._0x3cb094,0x30)]();}),_0x4196fa['on'](_0x19af9b(0x14e,_0x5c0d5b._0x1c431d,0x250,0x104),_0xa3124a=>{const _0x29046f={_0x413dc8:0x36b},_0x2da7ce={_0x2928ee:0x3a8};function _0xb5647c(_0x1b9596,_0x2702ed,_0x4345e4,_0x34f7c4){return _0x19af9b(_0x1b9596,_0x2702ed-_0x2da7ce._0x2928ee,_0x4345e4-0x1ca,_0x34f7c4-0x1e3);}if(_0xa3124a===0x1&&_0xc4aead===''){_0x27c82b([]);return;}if(_0xa3124a!==0x0&&_0xa3124a!==0x1){_0x11f34b(new Error(_0x5696e9(_0x19fabb._0x32d705,_0x19fabb._0x15057c,_0x19fabb._0x2c5c59,_0x19fabb._0x2af6ff)+_0x364700));return;}function _0x5696e9(_0x1dbc42,_0x5915d1,_0x5df2e1,_0x2f41d2){return _0x19af9b(_0x2f41d2,_0x5df2e1-_0x29046f._0x413dc8,_0x5df2e1-0x14e,_0x2f41d2-0x16f);}const _0x5d2daf=_0x2f3bd2['limit']??0x64,_0x23e0df=[];for(const _0x221991 of _0xc4aead['split'](/\r?\n/)){if(_0x23e0df[_0x5696e9(_0x19fabb._0x27df49,0x3f2,0x4b9,_0x19fabb._0x274390)]>=_0x5d2daf)break;const _0x1b04b8=parseMatchLine(_0x221991,_0x11525b);if(_0x1b04b8)_0x23e0df['push'](_0x1b04b8);}_0x27c82b(_0x23e0df);}),_0x4196fa['on'](_0x19af9b(_0x5c0d5b._0xa87316,_0x5c0d5b._0x4759e2,_0x5c0d5b._0x2a3459,-0xb),_0x11f34b);});}function createGlobTool(_0x4a93e2={}){const _0x107b10={_0x97cd69:0x1c2,_0x5cce0e:0x201,_0x2611ce:0x16a,_0x1b3147:0x1a7,_0x1e8139:0x141,_0x7c27b4:0x14a,_0x529618:0x1f6,_0x4f78cc:0x243,_0x3084a5:0x118,_0xca0c9c:0x85,_0x112ad6:0xce,_0x20d99a:0x1cb,_0x1e915c:0x24e,_0x51e2fc:0xb6,_0x430a9e:0x1f7,_0x253a2d:0x179,_0x40169e:0x1b3,_0x478f95:0x21c,_0x52e732:0x211,_0xa06312:0x151,_0x1b3118:0x1c4,_0x21cf5c:0x47},_0x255fed={_0x157247:0x3d7,_0xa958f2:0x4f3,_0x2fc9e6:0x550,_0x10a235:0x33c,_0x1827f7:0x429,_0x6d1f81:0x4a6,_0x50af9a:0x6e0,_0x3877af:0x686,_0x38359a:0x46c,_0x1369e3:0x3c4,_0x562b70:0x595,_0x37c228:0x4c1,_0xa1af93:0x521,_0x59de41:0x3e7,_0x10ade1:0x4f7,_0x175f00:0x51b,_0xec80db:0x47f,_0x328a31:0x42b,_0x1ec6b1:0x323,_0x144ab1:0x42a,_0x452257:0x4f8,_0x3f643a:0x572,_0x5d85d4:0x5c8,_0xb276b9:0x42f,_0x46e281:0x512,_0x504dd7:0x574,_0x1869a4:0x4f8,_0x376f6a:0x55e,_0x4332bb:0x50f,_0x38cfa1:0x469,_0xff41a7:0x4c3,_0x300f6b:0x3d0,_0x43341e:0x48b,_0x30cfd6:0x3b3},_0x24e3a0={_0x26b9b5:0x496,_0x49080e:0x1a5},_0x52969e={_0x261348:0x158,_0x5e0baa:0x1ee},_0x182210=_0x1196ea[_0x2a3ecd(0xf3,_0x107b10._0x97cd69,_0x107b10._0x5cce0e,0x12a)](_0x4a93e2[_0x1b82b4(0x1d7,0x198,_0x107b10._0x2611ce,_0x107b10._0x1b3147)]??process[_0x2a3ecd(0x2f3,0x2d1,0x1c3,0x333)]());function _0x1b82b4(_0x58bb4b,_0x38afe0,_0x537215,_0x31ecdf){return _0x255f51(_0x31ecdf- -0x4a3,_0x38afe0-_0x52969e._0x261348,_0x537215,_0x31ecdf-_0x52969e._0x5e0baa);}const _0x12f616=(_0x4a93e2[_0x1b82b4(_0x107b10._0x1e8139,_0x107b10._0x7c27b4,_0x107b10._0x529618,_0x107b10._0x4f78cc)]??[])[_0x2a3ecd(_0x107b10._0x3084a5,0x127,0x206,_0x107b10._0xca0c9c)](_0x30b28f=>_0x1196ea[_0x2a3ecd(0xf3,0x210,0x45,0x9d)](_0x30b28f));function _0x2a3ecd(_0x327268,_0x19afad,_0x269920,_0x3559b5){return _0x255f51(_0x327268- -_0x24e3a0._0x26b9b5,_0x19afad-_0x24e3a0._0x49080e,_0x19afad,_0x3559b5-0x4a);}const _0x431e7d=_0x4a93e2[_0x2a3ecd(0xf9,0x4d,0x1a6,_0x107b10._0x112ad6)]??0x64,_0x14aa0f=_0x4a93e2[_0x2a3ecd(0x27c,0x306,0x159,0x31a)]??_0x1b82b4(0x1cb,0x2dc,_0x107b10._0x20d99a,_0x107b10._0x1e915c);return defineTool({'name':_0x14aa0f,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x1b82b4(0x19a,_0x107b10._0x51e2fc,0xf3,0x1ba),'properties':{'pattern':{'type':'string'},'path':{'type':_0x1b82b4(_0x107b10._0x430a9e,_0x107b10._0x253a2d,_0x107b10._0x40169e,_0x107b10._0x478f95)},'limit':{'type':_0x2a3ecd(0x173,0x119,_0x107b10._0x52e732,0x187)}},'required':[_0x2a3ecd(_0x107b10._0xa06312,_0x107b10._0x1b3118,_0x107b10._0x21cf5c,0x244)]},async *'execute'(_0x36d9f0){const _0x573c62={_0xd274fd:0x92,_0x3a6372:0x147,_0x3c3bac:0x37f},_0x4ce873={_0x3bffb3:0xf7};if(_0x36d9f0['pattern'][_0x4a1325(_0x255fed._0x157247,_0x255fed._0xa958f2,0x42d,0x3ec)]()['length']===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x4d327c=resolveAllowedPath(_0x182210,_0x12f616,_0x36d9f0[_0x211a65(_0x255fed._0x2fc9e6,_0x255fed._0x10a235,_0x255fed._0x1827f7,_0x255fed._0x6d1f81)]??'.'),_0x812a83=await _0x222d03(_0x4d327c)['catch'](()=>null);if(!_0x812a83?.[_0x4a1325(_0x255fed._0x50af9a,0x7a7,_0x255fed._0x3877af,0x5bd)]())throw new ToolExecutionError(_0x211a65(0x4ac,_0x255fed._0x38359a,0x4c0,_0x255fed._0x1369e3)+(_0x36d9f0[_0x4a1325(_0x255fed._0x562b70,0x3bc,_0x255fed._0x37c228,0x43b)]??'.'),{'path':_0x36d9f0[_0x211a65(0x479,0x527,0x429,0x53a)]??'.'});const _0x3170d3=_0x36d9f0[_0x4a1325(0x3e0,_0x255fed._0xa1af93,0x46b,0x44c)]??_0x431e7d;function _0x211a65(_0x4f95a9,_0x27f608,_0x5b2e6d,_0x1de675){return _0x2a3ecd(_0x5b2e6d-0x2da,_0x1de675,_0x5b2e6d-0x17e,_0x1de675-_0x4ce873._0x3bffb3);}const _0x2280fc=Math[_0x211a65(0x48a,0x2fa,_0x255fed._0x59de41,0x2e5)](0x1,Math[_0x4a1325(_0x255fed._0x10ade1,_0x255fed._0x175f00,_0x255fed._0x38359a,0x4dc)](_0x3170d3)),_0x38e20d=[];let _0x277aa1=![];for await(const _0x3e4710 of files({'cwd':_0x4d327c,'glob':[_0x36d9f0[_0x211a65(0x558,_0x255fed._0xec80db,_0x255fed._0x328a31,_0x255fed._0x1ec6b1)]]})){if(_0x38e20d[_0x211a65(0x4d9,_0x255fed._0x144ab1,_0x255fed._0x452257,_0x255fed._0x3f643a)]>=_0x2280fc){_0x277aa1=!![];break;}const _0x19faa3=await _0x222d03(_0x1196ea['join'](_0x4d327c,_0x3e4710))['catch'](()=>null);_0x38e20d[_0x4a1325(_0x255fed._0x5d85d4,0x5e2,0x58c,0x5d0)]({'path':_0x3e4710,'mtime':_0x19faa3?.[_0x4a1325(0x45d,_0x255fed._0xb276b9,_0x255fed._0x46e281,0x444)]??0x0});}_0x38e20d['sort']((_0x3b07d7,_0x192694)=>_0x192694[_0x211a65(0x44c,0x2ba,0x3c6,0x4b4)]-_0x3b07d7[_0x4a1325(0x41b,0x33c,0x45e,0x379)]);function _0x4a1325(_0x3a992f,_0x1d20c4,_0x32dd77,_0x427329){return _0x1b82b4(_0x3a992f-_0x573c62._0xd274fd,_0x1d20c4-_0x573c62._0x3a6372,_0x427329,_0x32dd77-_0x573c62._0x3c3bac);}const _0x278e82=_0x38e20d['map'](_0x512a26=>_0x512a26['path']),_0x1b8fc1=_0x278e82[_0x211a65(_0x255fed._0x504dd7,0x555,_0x255fed._0x1869a4,0x4a3)]===0x0?_0x211a65(_0x255fed._0x376f6a,0x611,_0x255fed._0x4332bb,0x52a)+_0x36d9f0[_0x4a1325(0x5a3,_0x255fed._0x38cfa1,_0x255fed._0xff41a7,0x58c)]:''+_0x278e82[_0x4a1325(0x4ac,_0x255fed._0x300f6b,0x4cc,0x3f7)]('\x0a')+(_0x277aa1?_0x211a65(_0x255fed._0x43341e,0x40d,0x530,0x40b):'');return yield createToolOutput(_0x1b8fc1,{'pattern':_0x36d9f0[_0x4a1325(_0x255fed._0x30cfd6,0x500,_0x255fed._0xff41a7,0x54f)],'searchPath':_0x1196ea['relative'](_0x182210,_0x4d327c)||'.','matches':_0x278e82,'count':_0x278e82['length'],'truncated':_0x277aa1}),void 0x0;}});}import{stat as _0x27f255}from'fs/promises';import*as _0x35e43d from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x359411={}){const _0x464daf={_0xeadcb9:0x4e0,_0x42ebb3:0x467,_0x1aceed:0x48c,_0x30f979:0x403,_0x5b082e:0x2ab,_0x2c5df5:0x302,_0x1fe372:0x239,_0x3f1cb4:0x13c,_0x1d9e68:0x25f,_0x23876d:0x127,_0x3d5ff5:0x46,_0x2c7fdd:0x28b,_0x28873d:0x534,_0x5894f3:0x540,_0x5d19e7:0x540,_0x543d9f:0x699,_0x392c4e:0x5b2,_0x13c858:0x51f,_0x28f623:0x54e,_0xb7ee08:0x535,_0x5c3a53:0x5b3,_0x3e7a62:0x597,_0x153930:0x47f,_0x161a53:0x663,_0x36b9bf:0x597,_0x26e264:0x47a,_0x1759a4:0x6bd,_0x5ee2fb:0x474,_0x451cd6:0x3cc,_0x2142b9:0x57f,_0x164984:0x48e,_0x51502c:0x4bf},_0x380733={_0x4bed44:0xa1,_0x5e7cdd:0x110,_0x447825:0x16,_0x500dfe:0x43b,_0x3d2608:0x4b3,_0x45bd72:0x5b5,_0x45537b:0x603,_0x112853:0x51b,_0x378519:0x42b,_0x35aaf7:0x19c,_0x110cae:0x237,_0x7a7dad:0x2ae,_0x2bdd0f:0x41,_0x20848c:0xb8,_0x4730b6:0x3f7,_0x38b13a:0x5cc,_0x439068:0x10,_0x4406de:0x481,_0x111db0:0x108,_0x512483:0x5e,_0x319d29:0x1f,_0x2fe29a:0x1d,_0x3ef192:0x7e,_0x3fa48e:0x5c1,_0x5acdac:0x4e6,_0x2745c4:0x5ce,_0x21480e:0xda,_0x4ee495:0x118,_0x3e5fd1:0x129,_0x56c0b7:0x6de,_0x26488c:0x658,_0x4a100c:0x5e7,_0x167a33:0x6fb,_0x3babb3:0xf6,_0x23233e:0x6bb,_0x2e30bd:0x688,_0x4b8d31:0x473,_0x4c21f5:0x93,_0x36af1d:0x135,_0x3b30ca:0x9a,_0x931d02:0x55,_0x9ba5f9:0x624,_0x51b63c:0x607,_0x33b439:0xeb,_0x7f013a:0x2a6,_0x1b0496:0x680,_0x2862ef:0x1a,_0x388c73:0x177,_0x17d66f:0x1fe,_0x48d66c:0x6a6,_0x183489:0xc0,_0x4306fd:0x1b1,_0x27cece:0x164,_0xa0dc16:0x182,_0x1dc4aa:0x131,_0x3cd1d1:0x5ac,_0x207f95:0x183,_0x4870f0:0x2ee,_0x43ed8d:0x1bf,_0x52d11b:0x520,_0x5a7849:0x584,_0x3c82ea:0x47f,_0x14e36f:0x585,_0x22d385:0x62c,_0x366ad3:0x66a,_0x3c0849:0x633,_0x320fea:0x65c,_0x5672ef:0x9e,_0x46fd29:0x26,_0x30e17a:0x4b2,_0x4c320f:0x4e8,_0x1d5774:0x51d,_0x5b137d:0x559,_0x37a4cb:0x5ed,_0x4ba541:0x687,_0x1036c6:0xc1,_0x4787cf:0x16b,_0xc7f9dc:0x186,_0x39b916:0x213,_0x5599d3:0x26e,_0x2c9fb6:0xdd,_0x336088:0x186,_0xbd42e1:0x457},_0x54ece1={_0x2b4913:0x49a},_0x44fef8={_0x3a5c58:0x172};function _0x4b0b1c(_0x95dc49,_0x1ffedc,_0x2ca650,_0x4a4ecb){return _0x173565(_0x95dc49-0x190,_0x1ffedc-0xe7,_0x4a4ecb,_0x2ca650-0xe5);}const _0x5d1143=_0x35e43d[_0x3fada7(0x350,_0x464daf._0xeadcb9,0x4ca,0x461)](_0x359411[_0x3fada7(_0x464daf._0x42ebb3,_0x464daf._0x1aceed,_0x464daf._0x30f979,0x522)]??process[_0x4b0b1c(0x310,_0x464daf._0x5b082e,_0x464daf._0x2c5df5,_0x464daf._0x1fe372)]()),_0xad0160=(_0x359411[_0x4b0b1c(0x27a,_0x464daf._0x3f1cb4,_0x464daf._0x1d9e68,0x2b2)]??[])[_0x4b0b1c(0x8d,0x1ef,_0x464daf._0x23876d,_0x464daf._0x3d5ff5)](_0x3aa326=>_0x35e43d[_0x3fada7(0x47a,0x371,0x3fc,0x461)](_0x3aa326));function _0x3fada7(_0x32241e,_0x47075e,_0x432d5e,_0x1b7323){return _0x173565(_0x32241e-0xed,_0x47075e-_0x44fef8._0x3a5c58,_0x47075e,_0x1b7323-0x444);}const _0x229b09=_0x359411['limit']??0x64,_0x3c249a=_0x359411[_0x4b0b1c(0x3b6,0x2c6,_0x464daf._0x2c7fdd,0x2f5)]??_0x3fada7(_0x464daf._0x28873d,_0x464daf._0x5894f3,0x5c9,0x5d1);return defineTool({'name':_0x3c249a,'description':_0x3fada7(0x5a9,_0x464daf._0x5d19e7,_0x464daf._0x543d9f,0x592),'inputSchema':{'type':_0x3fada7(_0x464daf._0x392c4e,_0x464daf._0x13c858,_0x464daf._0x28f623,_0x464daf._0xb7ee08),'properties':{'pattern':{'type':_0x3fada7(_0x464daf._0x5c3a53,0x56c,0x6a0,_0x464daf._0x3e7a62)},'path':{'type':_0x3fada7(_0x464daf._0x153930,0x58d,_0x464daf._0x161a53,_0x464daf._0x36b9bf)},'include':{'type':_0x3fada7(_0x464daf._0x26e264,0x4a1,_0x464daf._0x1759a4,0x597)},'limit':{'type':_0x3fada7(0x53e,_0x464daf._0x5ee2fb,_0x464daf._0x451cd6,0x4e1)},'context':{'type':'number'}},'required':[_0x3fada7(_0x464daf._0x2142b9,_0x464daf._0x164984,0x566,_0x464daf._0x51502c)]},async *'execute'(_0x332ac6){const _0x444a5c={_0x274d52:0x6d};if(_0x332ac6[_0x2747b8(-0x49,_0x380733._0x4bed44,_0x380733._0x5e7cdd,0x25)][_0x2747b8(-0xe8,0x2f,_0x380733._0x447825,-0x71)]()['length']===0x0)throw new ToolExecutionError(_0x2f0b3a(_0x380733._0x500dfe,0x4e5,_0x380733._0x3d2608,_0x380733._0x45bd72),{});function _0x2f0b3a(_0x195154,_0x50a4e2,_0x2c8e72,_0x5cfdcb){return _0x3fada7(_0x195154-_0x444a5c._0x274d52,_0x5cfdcb,_0x2c8e72-0x187,_0x2c8e72-0x5e);}const _0x8c2324=resolveAllowedPath(_0x5d1143,_0xad0160,_0x332ac6[_0x2f0b3a(0x442,_0x380733._0x45537b,_0x380733._0x112853,_0x380733._0x378519)]??'.'),_0x4b8d2e=await _0x27f255(_0x8c2324)['catch'](()=>null),_0x150f4e=_0x4b8d2e?.['isFile']()??![],_0x500872=_0x4b8d2e?.[_0x2747b8(_0x380733._0x35aaf7,_0x380733._0x110cae,_0x380733._0x7a7dad,0x1e8)]()??![];if(!_0x150f4e&&!_0x500872)throw new ToolExecutionError(_0x2747b8(0x2d,-_0x380733._0x2bdd0f,0x4b,_0x380733._0x20848c)+(_0x332ac6[_0x2f0b3a(0x56c,_0x380733._0x4730b6,_0x380733._0x112853,_0x380733._0x38b13a)]??'.'),{'path':_0x332ac6[_0x2747b8(-_0x380733._0x439068,0x36,-0x82,0x23)]??'.'});const _0x18f144=_0x332ac6[_0x2f0b3a(0x39d,0x3eb,0x4c5,_0x380733._0x4406de)]??_0x229b09,_0x51f864=Math[_0x2747b8(-_0x380733._0x111db0,-_0x380733._0x512483,-0x107,-_0x380733._0x319d29)](0x1,Math[_0x2747b8(-0xe0,-_0x380733._0x2fe29a,_0x380733._0x3ef192,-0x32)](_0x18f144));function _0x2747b8(_0x4d7fc5,_0x309067,_0x461772,_0x58051e){return _0x3fada7(_0x4d7fc5-0x155,_0x309067,_0x461772-0x23,_0x58051e- -_0x54ece1._0x2b4913);}const _0x274383=await search({'cwd':_0x500872?_0x8c2324:_0x35e43d[_0x2f0b3a(0x448,_0x380733._0x3fa48e,_0x380733._0x5acdac,_0x380733._0x2745c4)](_0x8c2324),'pattern':_0x332ac6[_0x2747b8(-_0x380733._0x21480e,_0x380733._0x4ee495,_0x380733._0x3e5fd1,0x25)],'glob':_0x500872?_0x332ac6['include']:void 0x0,'limit':_0x51f864,'file':_0x150f4e?_0x8c2324:void 0x0,'context':_0x332ac6[_0x2f0b3a(0x58b,0x5da,0x555,0x629)]}),_0x3a06df=new Map();for(const _0xd1c9b1 of _0x274383){if(!_0x3a06df[_0x2f0b3a(_0x380733._0x56c0b7,_0x380733._0x26488c,_0x380733._0x4a100c,_0x380733._0x167a33)](_0xd1c9b1[_0x2747b8(_0x380733._0x3babb3,_0x380733._0x5e7cdd,0x188,0x135)])){const _0x56961b=await _0x27f255(_0xd1c9b1[_0x2f0b3a(0x6b5,_0x380733._0x23233e,0x62d,_0x380733._0x2e30bd)])[_0x2f0b3a(0x54d,0x457,0x529,_0x380733._0x4b8d31)](()=>null);_0x3a06df['set'](_0xd1c9b1[_0x2747b8(_0x380733._0x4c21f5,0x1b7,0x205,_0x380733._0x36af1d)],{'matches':[],'mtime':_0x56961b?.['mtimeMs']??0x0});}_0x3a06df['get'](_0xd1c9b1[_0x2747b8(0x21e,_0x380733._0x3b30ca,_0x380733._0x931d02,0x135)])?.['matches'][_0x2747b8(0x10e,0x197,0x1ac,0xee)](_0xd1c9b1);}const _0x402787=[..._0x3a06df['entries']()][_0x2f0b3a(_0x380733._0x9ba5f9,0x42a,0x54e,_0x380733._0x51b63c)]((_0xb2450f,_0x20f81d)=>_0x20f81d[0x1][_0x2747b8(0x61,0x6a,0x59,-0x40)]-_0xb2450f[0x1][_0x2747b8(-0x55,-0x76,0x65,-0x40)]),_0x3c3d44=_0x274383[_0x2747b8(0xe4,_0x380733._0x33b439,_0x380733._0x7f013a,0x182)](_0x5b4590=>!_0x5b4590['isContext'])[_0x2f0b3a(0x510,0x4de,0x5ea,_0x380733._0x1b0496)],_0x32cf1f=_0x274383[_0x2747b8(0x55,0x12f,-_0x380733._0x2862ef,0xf2)]>=_0x51f864,_0x4ed898=_0x150f4e?_0x35e43d['dirname'](_0x8c2324):_0x8c2324;let _0x148232='';if(_0x274383[_0x2747b8(_0x380733._0x388c73,0x1c4,_0x380733._0x17d66f,0xf2)]===0x0)_0x148232=_0x2f0b3a(0x5d5,0x6e1,_0x380733._0x48d66c,0x5bb)+_0x332ac6[_0x2747b8(-0xd6,-0x9f,_0x380733._0x183489,0x25)];else{_0x148232=_0x2747b8(_0x380733._0x4306fd,_0x380733._0x27cece,_0x380733._0xa0dc16,_0x380733._0x1dc4aa)+_0x3c3d44+_0x2f0b3a(_0x380733._0x3cd1d1,0x5b4,0x6c5,0x757)+(_0x3c3d44===0x1?'':'es')+'\x0a';for(const [_0x2984fb,_0x1b5699]of _0x402787){const _0x571b6f=_0x150f4e?_0x35e43d[_0x2747b8(_0x380733._0x207f95,_0x380733._0x4870f0,0x2bc,_0x380733._0x43ed8d)](_0x2984fb):_0x35e43d['relative'](_0x4ed898,_0x2984fb);_0x148232+='\x0a'+_0x571b6f+':\x0a';for(const _0x5666c7 of _0x1b5699[_0x2f0b3a(0x668,0x692,0x57a,_0x380733._0x52d11b)]){const _0x12dc42=_0x5666c7['lineText']['length']>MAX_LINE_LENGTH?_0x5666c7[_0x2f0b3a(_0x380733._0x5a7849,_0x380733._0x3c82ea,_0x380733._0x14e36f,0x67c)]['slice'](0x0,MAX_LINE_LENGTH)+_0x2747b8(0x1b0,0x142,-0x6f,0xab):_0x5666c7['lineText'],_0x68e94f=_0x5666c7['isContext']?'\x20\x20':'>\x20';_0x148232+=_0x68e94f+_0x2f0b3a(_0x380733._0x22d385,0x5f3,0x5e2,_0x380733._0x366ad3)+_0x5666c7[_0x2f0b3a(0x5fa,0x6df,_0x380733._0x3c0849,_0x380733._0x320fea)]+':\x20'+_0x12dc42+'\x0a';}}_0x32cf1f&&(_0x148232+=_0x2747b8(_0x380733._0x5672ef,0x68,0x126,0x12a));}const _0x2a5fc2={'searchPath':_0x35e43d[_0x2747b8(0x12,0x101,0xde,_0x380733._0x46fd29)](_0x5d1143,_0x8c2324)||'.','pattern':_0x332ac6[_0x2f0b3a(_0x380733._0x30e17a,_0x380733._0x4c320f,_0x380733._0x1d5774,_0x380733._0x5b137d)],'matchCount':_0x3c3d44,'fileCount':_0x3a06df[_0x2f0b3a(0x576,_0x380733._0x37a4cb,0x5bd,0x4cd)],'truncated':_0x32cf1f};return _0x500872&&_0x332ac6[_0x2f0b3a(0x6e0,0x67c,0x67e,_0x380733._0x4ba541)]!==void 0x0&&(_0x2a5fc2[_0x2747b8(0x208,_0x380733._0x1036c6,_0x380733._0x4787cf,_0x380733._0xc7f9dc)]=_0x332ac6[_0x2747b8(_0x380733._0x39b916,_0x380733._0x5599d3,_0x380733._0x2c9fb6,_0x380733._0x336088)]),yield createToolOutput(_0x148232[_0x2f0b3a(0x380,_0x380733._0xbd42e1,0x487,0x3bb)](),_0x2a5fc2),void 0x0;}});}import{readdir as _0x8d28af,readFile as _0x5bf814,stat as _0x18baa5}from'fs/promises';import*as _0x569313 from'path';import*as _0x1332c9 from'yaml';async function countTextLines(_0x51b00b){const _0x3356f3={_0x3b906c:0x4bb,_0x3c063d:0x5e2,_0x217b37:0x555,_0x54dc68:0x2c7,_0x18e690:0x340,_0x36780f:0x530,_0x44781e:0x4eb,_0x1e73e5:0x38d,_0x51613a:0x519,_0x47bb32:0x3a7,_0x156ac4:0x492,_0x3f1831:0x5aa},_0x43d7dc={_0x46f770:0xa0},_0x238142={_0x34d987:0x134},_0xf7c21=await _0x5bf814(_0x51b00b)[_0x1678b2(_0x3356f3._0x3b906c,_0x3356f3._0x3c063d,_0x3356f3._0x217b37,0x3eb)](()=>null);if(!_0xf7c21||isProbablyBinary(_0xf7c21))return void 0x0;function _0x1678b2(_0x30cfcf,_0x235a98,_0x15c47e,_0x5c2c4b){return _0x255f51(_0x30cfcf- -0x138,_0x235a98-_0x238142._0x34d987,_0x235a98,_0x5c2c4b-0x182);}function _0x2ad576(_0x33c7da,_0x1c1ee3,_0x1be18b,_0xb2bbd6){return _0x255f51(_0xb2bbd6- -0x273,_0x1c1ee3-_0x43d7dc._0x46f770,_0x1c1ee3,_0xb2bbd6-0x1bd);}return _0xf7c21[_0x2ad576(0x3fa,_0x3356f3._0x54dc68,0x281,_0x3356f3._0x18e690)](_0x1678b2(0x59a,_0x3356f3._0x36780f,0x62f,_0x3356f3._0x44781e))[_0x1678b2(0x467,_0x3356f3._0x1e73e5,_0x3356f3._0x51613a,_0x3356f3._0x47bb32)](/\r?\n/)[_0x1678b2(0x57c,_0x3356f3._0x156ac4,0x4fd,_0x3356f3._0x3f1831)];}function createLsTool(_0x19e1d3={}){const _0x28b123={_0x4ab213:0x13,_0x503965:0xbc,_0x26c5b1:0x40d,_0x2f3199:0x3e7,_0x1f406c:0x328,_0x5717f9:0x2bc,_0x25e49b:0x1f3,_0x4c2ecb:0x4a9,_0xa06619:0x447,_0x10b9e3:0x476,_0x522714:0xe1,_0x2819f6:0xe6,_0x323bdb:0x99,_0x2eed4c:0x245,_0x2052fe:0x175,_0x3f4442:0x149,_0x5ef271:0x26f,_0x3cbe15:0x230,_0x4d8495:0x2af,_0x34c587:0x158,_0x9183ad:0x460,_0x353959:0x559},_0x580ef4={_0x14994d:0x1c1,_0x5d78f6:0x81,_0x1a7b6f:0x5c8,_0x2c4406:0x562,_0x5817f6:0x3a4,_0xb227b9:0x475,_0x22cbb1:0x50a,_0x3cd55b:0x99,_0x12223a:0xb2,_0x5f2b26:0xf5,_0x685abd:0xcb,_0x4cf3b9:0x5c,_0x49f5d7:0x100,_0x18cd4a:0x25,_0x540cb7:0x633,_0x105abd:0x55e,_0x291814:0x20c,_0x4cb504:0x166,_0x4d667f:0x1b,_0x7ecc3d:0x134,_0x1a019b:0x3c,_0x21c9ec:0x61f,_0x28a56e:0x632,_0x528aa5:0x4f5,_0x19b0cb:0x56d,_0x8c2a3e:0x52d,_0x3a93f2:0x2f,_0x5401d6:0x1a,_0x56df57:0xe7,_0x1b76c1:0xcf,_0x59bd16:0x169,_0xa7d8b1:0x11,_0xbdaac5:0x7f,_0x21bd80:0x19,_0x5d645e:0x62,_0x45dd87:0x9b,_0x185e2e:0x600,_0x10f6d0:0x62a,_0x53b679:0x573,_0x18b9b8:0x148,_0x4ee851:0x4a1,_0x5dee10:0x564,_0x15cdbe:0x182,_0x110da9:0x9f,_0x375288:0x69a,_0x2307a8:0x59a},_0x51da93={_0xbd1d39:0x4cd},_0x1254e6=_0x569313[_0x39c121(_0x28b123._0x4ab213,_0x28b123._0x503965,0x134,0xa8)](_0x19e1d3[_0x21109e(_0x28b123._0x26c5b1,0x4bc,_0x28b123._0x2f3199,_0x28b123._0x1f406c)]??process[_0x39c121(0x2df,_0x28b123._0x5717f9,_0x28b123._0x25e49b,0x296)]());function _0x39c121(_0x3f7972,_0x4a0eb7,_0x2cb014,_0x5d3ae9){return _0x255f51(_0x4a0eb7- -_0x51da93._0xbd1d39,_0x4a0eb7-0xc8,_0x5d3ae9,_0x5d3ae9-0x2);}const _0x3e9475=(_0x19e1d3[_0x21109e(_0x28b123._0x4c2ecb,_0x28b123._0xa06619,_0x28b123._0x10b9e3,0x3ec)]??[])[_0x39c121(0x175,_0x28b123._0x522714,_0x28b123._0x2819f6,_0x28b123._0x323bdb)](_0x66ac32=>_0x569313[_0x39c121(0x17f,0xbc,0xd6,-0x6f)](_0x66ac32)),_0x122298=_0x19e1d3[_0x39c121(0x2bf,_0x28b123._0x2eed4c,0x294,_0x28b123._0x2052fe)]??'Ls';function _0x21109e(_0x2913e2,_0x43cf90,_0x41cc4a,_0x592fa7){return _0x173565(_0x2913e2-0xd,_0x43cf90-0xf5,_0x592fa7,_0x2913e2-0x32f);}return defineTool({'name':_0x122298,'description':_0x39c121(_0x28b123._0x3f4442,_0x28b123._0x5ef271,0x181,_0x28b123._0x3cbe15),'inputSchema':{'type':_0x39c121(_0x28b123._0x4d8495,0x190,_0x28b123._0x34c587,0x111),'properties':{'path':{'type':_0x21109e(0x482,_0x28b123._0x9183ad,_0x28b123._0x353959,0x3ae)},'limit':{'type':'number'}}},async *'execute'(_0x1613e9){const _0x48e924={_0x165398:0x1c4},_0x2c0099={_0x5146c9:0x123,_0x1d8d10:0xda,_0x5dd688:0x74},_0x5171bb=_0x1613e9['path']??'.';function _0x529589(_0x45d67f,_0x32415d,_0x445c77,_0x498309){return _0x21109e(_0x445c77-_0x2c0099._0x5146c9,_0x32415d-_0x2c0099._0x1d8d10,_0x445c77-_0x2c0099._0x5dd688,_0x45d67f);}function _0x10ca49(_0xd86560,_0x55a7ee,_0x41f290,_0x5858f7){return _0x21109e(_0x5858f7- -0x3d8,_0x55a7ee-0xfb,_0x41f290-_0x48e924._0x165398,_0x55a7ee);}const _0xf2e66b=resolveAllowedPath(_0x1254e6,_0x3e9475,_0x5171bb),_0x5a4c16=await _0x18baa5(_0xf2e66b)['catch'](()=>null);if(!_0x5a4c16?.[_0x10ca49(0xb6,_0x580ef4._0x14994d,_0x580ef4._0x5d78f6,0x195)]())throw new ToolExecutionError(_0x529589(_0x580ef4._0x1a7b6f,0x592,_0x580ef4._0x2c4406,0x5ed)+_0x5171bb,{'path':_0x5171bb});const _0x92d4b2=_0x1613e9[_0x529589(0x44c,_0x580ef4._0x5817f6,_0x580ef4._0xb227b9,_0x580ef4._0x22cbb1)]??0x3e8,_0x5f00f9=Math['min'](Math[_0x10ca49(-_0x580ef4._0x3cd55b,-_0x580ef4._0x12223a,-_0x580ef4._0x5f2b26,-0x72)](Math['trunc'](_0x92d4b2),0x1),0x2710),_0x45ce08=await _0x8d28af(_0xf2e66b),_0x3a07a7=[];for(const _0x23ca06 of _0x45ce08[_0x10ca49(0x16c,0xdb,0x150,_0x580ef4._0x685abd)](0x0,_0x5f00f9)){const _0x5cb756=_0x569313[_0x10ca49(-_0x580ef4._0x4cf3b9,-_0x580ef4._0x49f5d7,0x66,-_0x580ef4._0x18cd4a)](_0xf2e66b,_0x23ca06),_0x427873=await _0x18baa5(_0x5cb756)[_0x529589(0x4d9,0x3e9,0x4d9,0x494)](()=>null);if(!_0x427873)continue;let _0x5f1d6b=_0x529589(0x43b,_0x580ef4._0x540cb7,_0x580ef4._0x105abd,0x48a);if(_0x427873[_0x10ca49(0x78,_0x580ef4._0x291814,_0x580ef4._0x4cb504,0x153)]())_0x5f1d6b='file';else{if(_0x427873['isDirectory']())_0x5f1d6b='directory';else{if(_0x427873[_0x10ca49(_0x580ef4._0x4d667f,_0x580ef4._0x7ecc3d,_0x580ef4._0x1a019b,0xc9)]())_0x5f1d6b=_0x529589(0x407,_0x580ef4._0x21c9ec,0x528,_0x580ef4._0x28a56e);}}const _0x45651d={'name':_0x23ca06,'type':_0x5f1d6b,'size':_0x427873[_0x529589(_0x580ef4._0x528aa5,0x47a,_0x580ef4._0x19b0cb,_0x580ef4._0x8c2a3e)],'mtime':_0x427873[_0x10ca49(-0x22,-0x2d,-_0x580ef4._0x3a93f2,0x21)],'mode':_0x427873[_0x10ca49(0x31,0x8a,-_0x580ef4._0x5401d6,_0x580ef4._0x56df57)]},_0x51c900=_0x5f1d6b===_0x10ca49(0x139,_0x580ef4._0x1b76c1,_0x580ef4._0x5f2b26,_0x580ef4._0x59bd16)?await countTextLines(_0x5cb756):void 0x0;if(_0x51c900!==void 0x0)_0x45651d[_0x10ca49(-_0x580ef4._0xa7d8b1,_0x580ef4._0xbdaac5,_0x580ef4._0x21bd80,-0x8b)]=_0x51c900;_0x3a07a7[_0x10ca49(0x19d,-0x93,_0x580ef4._0x5d645e,_0x580ef4._0x45dd87)](_0x45651d);}_0x3a07a7['sort']((_0x431ba8,_0x8d019f)=>_0x431ba8['name'][_0x529589(0x54d,0x511,0x513,0x5f6)](_0x8d019f[_0x10ca49(0x1d1,0xd,0x37,0xfd)]));const _0xa5e18d={'path':_0x5171bb,'total':_0x3a07a7[_0x529589(_0x580ef4._0x185e2e,_0x580ef4._0x10f6d0,0x59a,_0x580ef4._0x53b679)],'truncated':_0x45ce08['length']>_0x5f00f9,'entries':_0x3a07a7};return yield createToolOutput(_0x1332c9[_0x10ca49(0x136,0x239,0x119,_0x580ef4._0x18b9b8)](_0xa5e18d,{'indent':0x2,'lineWidth':0x0})[_0x529589(0x549,0x39d,_0x580ef4._0x4ee851,_0x580ef4._0x5dee10)](),{'path':_0x5171bb,'total':_0x3a07a7[_0x10ca49(_0x580ef4._0x15cdbe,-0x5a,0x118,_0x580ef4._0x110da9)],'truncated':_0x45ce08[_0x529589(_0x580ef4._0x375288,0x4ad,_0x580ef4._0x2307a8,0x50a)]>_0x5f00f9,'limit':_0x5f00f9,'entries':_0x3a07a7}),void 0x0;}});}import{stat as _0x54ba6d}from'fs/promises';import _0xf4016c from'path';import{fileURLToPath as _0xaed60}from'url';function severityName(_0x1d8947){const _0x3c38a4={_0x510ae8:0x163,_0x3fe215:0x173,_0x6332b6:0x156,_0x4befb6:0x521,_0x4c8a8b:0x3de,_0x420b0c:0x22d,_0x12d114:0x21d},_0x476d6e={_0x4b36b3:0x19b,_0x1e4c9:0xa5,_0x1de116:0x20c},_0x2ce8b0={_0x1eb0e6:0x11e};function _0x564af3(_0x3d796c,_0x49c67a,_0x14cc83,_0x1dfe4b){return _0x173565(_0x3d796c-0x1d6,_0x49c67a-0x166,_0x14cc83,_0x49c67a-_0x2ce8b0._0x1eb0e6);}function _0x25183e(_0x55db78,_0x2880e4,_0x17ea22,_0x794c33){return _0x173565(_0x55db78-_0x476d6e._0x4b36b3,_0x2880e4-_0x476d6e._0x1e4c9,_0x2880e4,_0x17ea22-_0x476d6e._0x1de116);}switch(_0x1d8947){case 0x1:return _0x25183e(_0x3c38a4._0x510ae8,0x1af,0x245,0x27f);case 0x2:return _0x564af3(0x19f,_0x3c38a4._0x3fe215,0x11e,_0x3c38a4._0x6332b6);case 0x3:return _0x25183e(0x34d,_0x3c38a4._0x4befb6,0x42e,_0x3c38a4._0x4c8a8b);case 0x4:return'Hint';default:return _0x564af3(0x16f,_0x3c38a4._0x420b0c,_0x3c38a4._0x12d114,0x2f5);}}function formatSingleHover(_0x2f2519){const _0x4b5a49={_0x48f1e6:0x14d,_0x3a1e24:0x7e,_0x51167f:0x43,_0x2b925e:0x6,_0x12c564:0xb6,_0x1d8f81:0x168,_0x4953bf:0x1f6,_0x17bae5:0xb2,_0x37a363:0x7f,_0x231d77:0x7,_0x525d0e:0xef,_0x3f3b60:0x137,_0x279bdb:0x1fd,_0x177e06:0x25e,_0x3c90a6:0x33c,_0x5bbc95:0x2b7,_0x34daf6:0x2d7,_0x302043:0x2fa,_0x20a1df:0x26c,_0x39da92:0x133},_0x20c475={_0x189473:0xf5,_0x1e75e9:0x1e7},_0x3f5fce=_0x2f2519[_0x24349a(_0x4b5a49._0x48f1e6,0xf5,_0x4b5a49._0x3a1e24,0x176)];function _0x4ad834(_0x5c20e5,_0x4c8dc4,_0x79cc46,_0x19847d){return _0x173565(_0x5c20e5-0x9d,_0x4c8dc4-0xb7,_0x79cc46,_0x4c8dc4- -0x159);}if(typeof _0x3f5fce===_0x4ad834(-_0x4b5a49._0x51167f,-_0x4b5a49._0x2b925e,_0x4b5a49._0x12c564,-0x18))return _0x3f5fce;if(Array[_0x4ad834(-0x297,-_0x4b5a49._0x1d8f81,-_0x4b5a49._0x4953bf,-_0x4b5a49._0x17bae5)](_0x3f5fce))return _0x3f5fce['map'](_0x40feeb=>typeof _0x40feeb==='string'?_0x40feeb:_0x40feeb[_0x4ad834(-0x113,-0x4c,-0x159,0x62)])[_0x4ad834(0xc4,_0x4b5a49._0x37a363,_0x4b5a49._0x231d77,_0x4b5a49._0x525d0e)](Boolean)[_0x4ad834(-_0x4b5a49._0x3f3b60,-0xd5,-_0x4b5a49._0x279bdb,0x43)]('\x0a\x0a');if('kind'in _0x3f5fce)return _0x3f5fce[_0x24349a(_0x4b5a49._0x177e06,0x198,_0x4b5a49._0x3c90a6,_0x4b5a49._0x5bbc95)];function _0x24349a(_0x307237,_0x425a11,_0x970528,_0x34a561){return _0x255f51(_0x307237- -0x41b,_0x425a11-_0x20c475._0x189473,_0x425a11,_0x34a561-_0x20c475._0x1e75e9);}return _0x3f5fce[_0x24349a(0x30d,_0x4b5a49._0x34daf6,_0x4b5a49._0x302043,_0x4b5a49._0x20a1df)]?'```'+_0x3f5fce['language']+'\x0a'+_0x3f5fce[_0x24349a(0x25e,_0x4b5a49._0x39da92,0x2c1,0x24a)]+'\x0a```':_0x3f5fce['value'];}function formatHover(_0x4f59bf){const _0x315a15={_0xdc0874:0x133,_0x5cfbcf:0x1ef,_0x2f6300:0x136,_0x1a7dae:0x9c,_0x478134:0x68c,_0x5ef459:0x653,_0x30e4a1:0x1ec},_0x15e9e3={_0x4b3395:0xa4},_0x70d7db={_0x40effd:0x512,_0xcd2681:0x16};function _0x2bb1a2(_0x19c809,_0x30e7d7,_0x1621b0,_0x5b699e){return _0x255f51(_0x30e7d7- -_0x70d7db._0x40effd,_0x30e7d7-0x108,_0x1621b0,_0x5b699e-_0x70d7db._0xcd2681);}function _0x3dc052(_0xdcc808,_0x16141b,_0x1f0db8,_0x525346){return _0x173565(_0xdcc808-_0x15e9e3._0x4b3395,_0x16141b-0xfb,_0xdcc808,_0x1f0db8-0x4ea);}if(_0x4f59bf[_0x2bb1a2(_0x315a15._0xdc0874,0x1a2,0x252,_0x315a15._0x5cfbcf)]===0x0)return _0x2bb1a2(_0x315a15._0x2f6300,0x1ef,0x1d8,0x144);return _0x4f59bf[_0x2bb1a2(0xb7,_0x315a15._0x1a7dae,0x1a1,-0x10)](formatSingleHover)[_0x3dc052(0x5fe,_0x315a15._0x478134,0x56e,_0x315a15._0x5ef459)](_0x2bb1a2(0x1b1,_0x315a15._0x30e4a1,0xf7,0x2b2));}function locationPath(_0x52343e){const _0x2a9e7b={_0x24552e:0x3fd,_0x5b8b6a:0x23f,_0x201a43:0xa3},_0x270627={_0x370360:0x27,_0x9132bc:0x108};if(!_0x52343e[_0x434d72(0x32b,0x22a,0x376,_0x2a9e7b._0x24552e)](_0x434d72(0x1c6,_0x2a9e7b._0x5b8b6a,_0x2a9e7b._0x201a43,0xf1)))return _0x52343e;function _0x2925b5(_0x4e8d5e,_0x6d6cae,_0x17118e,_0x27343a){return _0x173565(_0x4e8d5e-0x1f0,_0x6d6cae-0xa1,_0x6d6cae,_0x27343a- -0x1a8);}function _0x434d72(_0x59cbb1,_0x1d50c9,_0x16679d,_0x503790){return _0x255f51(_0x59cbb1- -0x3e0,_0x1d50c9-_0x270627._0x370360,_0x1d50c9,_0x503790-_0x270627._0x9132bc);}return _0xaed60(_0x52343e);}function formatLocations(_0x10ed81){const _0x6579d4={_0x173879:0x577,_0x1c6537:0x504,_0x1ac3ad:0x45f,_0x5ebf1d:0x4a7,_0x32b3a4:0x590},_0x478abe={_0x3579f2:0x1c3,_0x519c25:0x95,_0x3ad6be:0x3d,_0x751e74:0x11b,_0x2f9eb0:0xd},_0x6e11e0={_0x1f11e1:0x490},_0x3481a1={_0x2e97f2:0xb1,_0x5653c6:0x37},_0x3d3221={_0x244700:0x149,_0x5cda27:0xe4,_0x3c5330:0x174};function _0x220743(_0x3bb79e,_0x11f40b,_0x4fff25,_0x1b41c0){return _0x255f51(_0x11f40b- -_0x3d3221._0x244700,_0x11f40b-_0x3d3221._0x5cda27,_0x1b41c0,_0x1b41c0-_0x3d3221._0x3c5330);}if(_0x10ed81['length']===0x0)return _0x220743(_0x6579d4._0x173879,0x48a,0x46c,_0x6579d4._0x1c6537);function _0x38eacd(_0x21e364,_0xc4384e,_0x3e7b71,_0x4a3484){return _0x173565(_0x21e364-_0x3481a1._0x2e97f2,_0xc4384e-_0x3481a1._0x5653c6,_0x4a3484,_0xc4384e-0x3a6);}return _0x10ed81['map'](_0x2d78ad=>{const _0x107c32={_0x33fee2:0x161,_0x3dfd80:0x6e};function _0x11893a(_0xff3215,_0xb06a2d,_0x35e121,_0x591d40){return _0x220743(_0xff3215-0x12f,_0xff3215- -_0x6e11e0._0x1f11e1,_0x35e121-0xc0,_0x591d40);}function _0x52cbdf(_0x27b55f,_0x2ff541,_0x33ea57,_0x447497){return _0x220743(_0x27b55f-_0x107c32._0x33fee2,_0x33ea57- -_0x107c32._0x3dfd80,_0x33ea57-0x118,_0x2ff541);}const _0x1faace=_0x2d78ad[_0x11893a(0x11d,0x81,0x58,0x230)]['start'];return locationPath(_0x2d78ad[_0x11893a(_0x478abe._0x3579f2,0x111,0x1a3,_0x478abe._0x519c25)])+':'+(_0x1faace[_0x11893a(0x2d,_0x478abe._0x3ad6be,-0x93,0xe4)]+0x1)+':'+(_0x1faace[_0x11893a(0x6a,_0x478abe._0x751e74,_0x478abe._0x2f9eb0,0x21)]+0x1);})[_0x220743(_0x6579d4._0x1ac3ad,_0x6579d4._0x5ebf1d,0x5cf,_0x6579d4._0x32b3a4)]('\x0a');}function isDocumentSymbol(_0x381d8b){const _0x519f14={_0x4d93da:0x5e9,_0x55bc79:0x3cc},_0xf8d4e4={_0x523c05:0x150};function _0x299521(_0x244f7e,_0x4b87b5,_0x5f2d8b,_0x2d027d){return _0x173565(_0x244f7e-_0xf8d4e4._0x523c05,_0x4b87b5-0x118,_0x244f7e,_0x5f2d8b-0x35c);}return _0x299521(0x4e1,_0x519f14._0x4d93da,0x4e6,_0x519f14._0x55bc79)in _0x381d8b&&'selectionRange'in _0x381d8b;}function formatSymbols(_0x2b00a8){const _0x393fc6={_0x326b8d:0x8b,_0x581f1b:0x9b,_0x45008c:0x5b6,_0x427282:0x52b,_0x27405a:0x498},_0x1d18c={_0x522f93:0x195,_0x269827:0x83,_0x5809d8:0xe5,_0x2b24d0:0xc,_0x53f24e:0xbb,_0x35a64a:0x121,_0x3c381f:0x29,_0x58d22e:0x46,_0x1c00d4:0x50,_0x5c55d4:0x18c,_0x30c4dc:0x5d,_0x7772c3:0x84,_0x18f401:0x149,_0x2f4328:0x168,_0x103775:0xb0,_0x1bc333:0x1b5,_0xa34141:0x63,_0x163222:0xf1,_0x4a146b:0x6b,_0x4fdafc:0xca,_0xb3d566:0x14,_0xea5c04:0x16,_0x3890ef:0x136,_0x35741c:0x8a,_0x1dfb35:0x7f,_0x35e718:0x121,_0x1c4d41:0x40,_0x19c3cd:0xd,_0x234f68:0x1b3,_0x55320f:0x22,_0x36aef0:0x4c,_0x263ebf:0x73},_0x37d1be={_0x2f9518:0x159},_0x3e6796={_0x4fcf68:0xc4,_0x36b192:0x100,_0x219864:0x145};if(_0x2b00a8['length']===0x0)return _0x5bea52(-0x4a,-_0x393fc6._0x326b8d,_0x393fc6._0x581f1b,0xaf);function _0x5bea52(_0x1b8335,_0x1ac0b2,_0x3d6f1c,_0x24c7ee){return _0x173565(_0x1b8335-_0x3e6796._0x4fcf68,_0x1ac0b2-_0x3e6796._0x36b192,_0x3d6f1c,_0x1b8335- -_0x3e6796._0x219864);}function _0x2d0a7f(_0x4135bc,_0x5e9f28,_0x22c194,_0x4fd265){return _0x173565(_0x4135bc-0x16b,_0x5e9f28-_0x37d1be._0x2f9518,_0x5e9f28,_0x22c194-0x414);}return _0x2b00a8['map'](_0x32bf28=>{const _0x1ced13={_0x58492e:0x1bd},_0xd8a86c={_0x53a011:0x108};function _0x51b604(_0x559e69,_0xfab134,_0x19d671,_0x7db777){return _0x5bea52(_0x7db777- -0x5,_0xfab134-0x46,_0xfab134,_0x7db777-_0xd8a86c._0x53a011);}if(isDocumentSymbol(_0x32bf28))return _0x32bf28[_0x3da865(0x15c,_0x1d18c._0x522f93,_0x1d18c._0x269827,_0x1d18c._0x5809d8)]+'\x20('+_0x32bf28[_0x51b604(_0x1d18c._0x2b24d0,-_0x1d18c._0x53f24e,-_0x1d18c._0x35a64a,-0xb8)]+_0x3da865(-_0x1d18c._0x3c381f,0x104,_0x1d18c._0x58d22e,0x59)+(_0x32bf28['range'][_0x51b604(_0x1d18c._0x1c00d4,_0x1d18c._0x5c55d4,-_0x1d18c._0x30c4dc,_0x1d18c._0x7772c3)][_0x51b604(-_0x1d18c._0x18f401,-_0x1d18c._0x2f4328,-0x36,-_0x1d18c._0x103775)]+0x1)+':'+(_0x32bf28[_0x3da865(0x18c,-0x16,0x67,0x1c)][_0x3da865(_0x1d18c._0x1bc333,0x17b,0xab,_0x1d18c._0xa34141)]['character']+0x1)+']';function _0x3da865(_0x196981,_0x1b5c25,_0x2c1775,_0x26e7bf){return _0x5bea52(_0x2c1775-0x22,_0x1b5c25-_0x1ced13._0x58492e,_0x1b5c25,_0x26e7bf-0xde);}return _0x32bf28[_0x51b604(-0x4d,-0x15,-0x3e,0x5c)]+'\x20('+_0x32bf28[_0x51b604(-_0x1d18c._0x163222,-0x12f,-_0x1d18c._0x4a146b,-0xb8)]+')\x20'+locationPath(_0x32bf28[_0x3da865(-0x191,-0xe5,-0x8a,-0x121)][_0x3da865(_0x1d18c._0x4fdafc,-_0x1d18c._0xb3d566,0x10d,-_0x1d18c._0xea5c04)])+':'+(_0x32bf28[_0x3da865(-_0x1d18c._0x3890ef,-0x5d,-_0x1d18c._0x35741c,-_0x1d18c._0x1dfb35)][_0x51b604(0x8a,-0x7f,_0x1d18c._0x35e718,_0x1d18c._0x1c4d41)]['start']['line']+0x1)+':'+(_0x32bf28['location'][_0x51b604(_0x1d18c._0x19c3cd,0x12a,0x12d,0x40)][_0x51b604(0x97,0x1a7,_0x1d18c._0x234f68,_0x1d18c._0x7772c3)][_0x51b604(-_0x1d18c._0x55320f,-0xf6,_0x1d18c._0x36aef0,-_0x1d18c._0x263ebf)]+0x1);})[_0x2d0a7f(_0x393fc6._0x45008c,_0x393fc6._0x427282,_0x393fc6._0x27405a,0x56b)]('\x0a');}function formatDiagnostics(_0xbb44af){const _0x3a62d4={_0x4f9b64:0x125,_0xf70a80:0xce,_0x560395:0xb5,_0x8a3f6d:0x1f,_0x1a8dc5:0x116,_0x5e33fa:0x58,_0x3ae30f:0x28},_0x3a03cf={_0x3950e7:0x59c,_0x2bd8cb:0x48d,_0x5d6d45:0x15a,_0x4b86ef:0x3a7,_0x366064:0x45b,_0x5bb734:0x340,_0x6ada64:0x34d},_0x1d0536={_0x369b51:0x58f,_0x8ff377:0xf0,_0x1b4f3a:0xd3};function _0x4f8930(_0x5d010a,_0x56ca94,_0xf7e5fa,_0x42f131){return _0x255f51(_0x5d010a- -_0x1d0536._0x369b51,_0x56ca94-_0x1d0536._0x8ff377,_0xf7e5fa,_0x42f131-_0x1d0536._0x1b4f3a);}if(_0xbb44af[_0x4f8930(_0x3a62d4._0x4f9b64,_0x3a62d4._0xf70a80,_0x3a62d4._0x560395,0x60)]===0x0)return'No\x20diagnostics';function _0x3916f1(_0x123ad6,_0x538232,_0x35f4da,_0x2801d6){return _0x255f51(_0x2801d6- -0x6f6,_0x538232-0x3a,_0x35f4da,_0x2801d6-0x98);}return _0xbb44af[_0x4f8930(_0x3a62d4._0x8a3f6d,0x21,-0xca,_0x3a62d4._0x1a8dc5)](_0x49c578=>{const _0x3601f5={_0x45c522:0xd6,_0x1d64ad:0x16c};function _0x2a6311(_0x4584db,_0x350f64,_0x370df4,_0x3c3c5c){return _0x3916f1(_0x4584db-_0x3601f5._0x45c522,_0x350f64-_0x3601f5._0x1d64ad,_0x4584db,_0x350f64-0x452);}function _0x5c5ac5(_0x559e2d,_0x3c1e07,_0x80c786,_0x11913d){return _0x4f8930(_0x3c1e07- -0x196,_0x3c1e07-0x96,_0x559e2d,_0x11913d-0x95);}const _0x575945=_0x49c578['range'][_0x2a6311(_0x3a03cf._0x3950e7,0x496,0x4fa,_0x3a03cf._0x2bd8cb)];return severityName(_0x49c578[_0x5c5ac5(-0x73,-0x136,-0x1fc,-_0x3a03cf._0x5d6d45)])+'\x20['+(_0x575945[_0x2a6311(0x2e8,0x362,0x355,0x485)]+0x1)+':'+(_0x575945['character']+0x1)+']\x20'+_0x49c578[_0x2a6311(_0x3a03cf._0x4b86ef,_0x3a03cf._0x366064,_0x3a03cf._0x5bb734,_0x3a03cf._0x6ada64)];})[_0x4f8930(0x61,-_0x3a62d4._0x5e33fa,0xa4,-_0x3a62d4._0x3ae30f)]('\x0a');}function formatIncomingCalls(_0x384d24){const _0x246153={_0x202858:0x2bc,_0x4ee3e2:0x3d9,_0x94ae59:0x38e,_0x2d8f33:0x375,_0x11bec5:0x31b,_0x3e5e84:0x319,_0x35a771:0x1eb},_0x3ad71a={_0xe82bd9:0x338,_0x117a88:0x150},_0x8f2007={_0x230339:0xe8,_0x35b89f:0x22f};function _0x2e64fc(_0x27dbd5,_0x31af4e,_0x520f63,_0x46ec22){return _0x173565(_0x27dbd5-_0x8f2007._0x230339,_0x31af4e-0x186,_0x46ec22,_0x520f63-_0x8f2007._0x35b89f);}function _0xa7fed4(_0x488e5d,_0x14a211,_0x22cb92,_0x533011){return _0x255f51(_0x14a211- -_0x3ad71a._0xe82bd9,_0x14a211-0x15d,_0x533011,_0x533011-_0x3ad71a._0x117a88);}if(_0x384d24[_0x2e64fc(0x440,_0x246153._0x202858,0x377,_0x246153._0x4ee3e2)]===0x0)return _0xa7fed4(_0x246153._0x94ae59,0x3ac,_0x246153._0x2d8f33,0x4b4);return _0x384d24[_0xa7fed4(_0x246153._0x11bec5,0x276,_0x246153._0x3e5e84,0x169)](_0xf6842e=>_0xf6842e['from'][_0xa7fed4(0x3b7,0x3da,0x2d3,0x2b5)])[_0x2e64fc(0x2da,0x1bb,0x2b3,_0x246153._0x35a771)]('\x0a');}function formatOutgoingCalls(_0x1946cb){const _0x1cbdbe={_0x512f1f:0x37b,_0x222ab1:0x446,_0x4e843d:0x329,_0x43b1ba:0x15d,_0xb04d6b:0x1d4},_0x54fbbc={_0x104267:0x41c};function _0x276e65(_0x3e88ef,_0x1c16cb,_0x299ec1,_0x29a09b){return _0x255f51(_0x29a09b- -0x3bb,_0x1c16cb-0xbc,_0x3e88ef,_0x29a09b-0x16c);}if(_0x1946cb[_0x405063(0x2f8,0x228,_0x1cbdbe._0x512f1f,0x298)]===0x0)return _0x276e65(0x403,0x296,_0x1cbdbe._0x222ab1,_0x1cbdbe._0x4e843d);function _0x405063(_0x51cf8c,_0x44694b,_0x367f66,_0x4537aa){return _0x255f51(_0x4537aa- -_0x54fbbc._0x104267,_0x44694b-0x150,_0x51cf8c,_0x4537aa-0x11d);}return _0x1946cb[_0x276e65(0x2c7,0xe2,0x288,0x1f3)](_0x4e901a=>_0x4e901a['to'][_0x276e65(0x2c0,0x2bc,0x3a6,0x357)])[_0x405063(0x124,_0x1cbdbe._0x43b1ba,0xd4,_0x1cbdbe._0xb04d6b)]('\x0a');}function toStructured(_0x524d4c){const _0x27d8c0={_0x3c0b03:0xae,_0x34c9b7:0x1a0,_0x3bea5d:0xf,_0x1dee62:0x491,_0x3b25f6:0x34e,_0x3160a7:0x3e1},_0x4b1f74={_0x29b8db:0x37c},_0x5e9f20={_0x40f2b9:0x1bc,_0x3c2383:0x164};function _0x3f8d43(_0x1bf77b,_0x302fb1,_0x35763e,_0x282965){return _0x173565(_0x1bf77b-0x1a7,_0x302fb1-_0x5e9f20._0x40f2b9,_0x35763e,_0x1bf77b- -_0x5e9f20._0x3c2383);}function _0x2935d7(_0x2b19c9,_0x23ac1f,_0x2abed8,_0x5b4f41){return _0x255f51(_0x5b4f41- -_0x4b1f74._0x29b8db,_0x23ac1f-0x16c,_0x23ac1f,_0x5b4f41-0x66);}return JSON[_0x3f8d43(-0xdc,-_0x27d8c0._0x3c0b03,-_0x27d8c0._0x34c9b7,_0x27d8c0._0x3bea5d)](JSON[_0x2935d7(_0x27d8c0._0x1dee62,_0x27d8c0._0x3b25f6,0x321,_0x27d8c0._0x3160a7)](_0x524d4c));}async function assertFile(_0x211366){const _0x437373={_0x4de280:0x7d5,_0x1da9bf:0x6b5},_0x1e5bf={_0x44d6d7:0x518},_0x26017b=await _0x54ba6d(_0x211366);function _0x201d14(_0x14d716,_0x32099d,_0x1a4fc2,_0xc2b8d1){return _0x173565(_0x14d716-0xc4,_0x32099d-0x156,_0xc2b8d1,_0x32099d-_0x1e5bf._0x44d6d7);}if(!_0x26017b[_0x201d14(_0x437373._0x4de280,0x714,0x7f3,_0x437373._0x1da9bf)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x211366,{'path':_0x211366});}function validatePosition(_0x31851e,_0x48db87){const _0x2821ea={_0x1201d7:0x4e7,_0x2afbd6:0x5cb},_0x4983a7={_0x198829:0x135},_0x3392a0={_0x56ff19:0x17b};if(!Number['isInteger'](_0x31851e)||_0x31851e<0x1)throw new ToolExecutionError(_0x2bdc8f(0x630,0x5a9,0x6be,_0x2821ea._0x1201d7),{'line':_0x31851e});function _0x882876(_0x4f7b77,_0x305600,_0x23ac66,_0x4128bc){return _0x255f51(_0x23ac66- -0x21d,_0x305600-0x163,_0x4128bc,_0x4128bc-_0x3392a0._0x56ff19);}function _0x2bdc8f(_0x5bf8d8,_0x1ee00a,_0x37a1ba,_0x567ac1){return _0x173565(_0x5bf8d8-_0x4983a7._0x198829,_0x1ee00a-0x1d3,_0x567ac1,_0x1ee00a-0x520);}if(!Number[_0x882876(0x443,_0x2821ea._0x2afbd6,0x4d8,0x52b)](_0x48db87)||_0x48db87<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x48db87});}function createLspTool(_0x208594={}){const _0x5178d5={_0x16106d:0x20d,_0x20f3a9:0x281,_0x41dea6:0x1cf,_0x4a03b0:0x211,_0x33801b:0x40d,_0x4a9271:0x3d9,_0x47e48c:0x460,_0x37f3ce:0x2ed,_0x26c0d4:0x45f,_0x272fd7:0x195,_0x40e04a:0x11e,_0x1b7066:0x578,_0x254686:0x5fd,_0x19d13b:0x36b,_0x159c54:0x2ea,_0x4dceb1:0x5ed,_0x5f323f:0x510,_0x453b13:0x548,_0x37ae2e:0x547,_0x5f1a16:0x2f0,_0x54712b:0x391,_0xac90e:0x50d,_0x3584a7:0x560,_0x7d88ca:0x43e,_0x46b6da:0x23a,_0x8d8898:0x24a,_0x45364c:0x4dd,_0x2eeda9:0x433,_0x2ca1f4:0x450,_0x15c908:0x4de,_0x476663:0x5ef,_0x199beb:0x62b,_0x1482ad:0x54f,_0x2364fe:0x418,_0x23dde9:0x290,_0xebd0cb:0x2b3,_0x1087a3:0x612,_0x13cbe1:0x5aa,_0x17781f:0x421,_0x4b1b3b:0x3a7,_0x5342ec:0x367,_0x39f31c:0x37b,_0x16c3f8:0x3e6,_0x45216a:0x318,_0x54663a:0x457,_0xcbbb9c:0x52e},_0x226f76={_0x9054f7:0x3f3,_0x36accf:0x46f,_0x82a5ae:0x445,_0x3cbfb8:0x349,_0x15fd5b:0x1cf,_0x279130:0x497,_0x504af3:0x51f,_0x1eeb65:0x3f0,_0xbe3e26:0x83,_0x475cf6:0x4d,_0x3f95df:0xa1,_0x5219e8:0x11,_0xa629c2:0x2cb,_0x140c9b:0x2ad,_0x9eac60:0x16d,_0x62c3b6:0x3aa,_0x19c610:0x97,_0x55bdb:0x20a,_0x2f6703:0xee,_0x29b021:0x137,_0x1b684:0x2a,_0x17da3a:0x3a1,_0x10f0da:0x3e0,_0x8243cb:0xc2,_0x59dcd6:0x10,_0x33df3a:0x153,_0x23bb70:0x334,_0xaeabd8:0x33a,_0x49e787:0x480,_0x4a592f:0x37d,_0x281b4a:0xaf,_0x43983b:0x196,_0x2bf679:0x4f6,_0x2a8175:0x1da,_0x47879d:0x2c9,_0x4dc4de:0x49c,_0x55adc4:0x3fe,_0x1bdb1f:0x440,_0x1173d8:0x3db,_0x2ce350:0xea,_0x5e84a6:0x179,_0x3ad909:0x1b9,_0x8bf7e8:0x9c,_0x8cbb78:0x17c,_0x4daf5c:0x60,_0x330cc6:0x216,_0x5e9bba:0x404,_0x1a4571:0x2fc,_0x572960:0x3a6,_0x4a6f2a:0x1f,_0x4e5df1:0x99,_0x493286:0x8a,_0x3ffc31:0x3da,_0xbc0734:0x4a3,_0x7a429:0x3f6,_0x48e9d8:0x3fd,_0x129222:0x3eb,_0x31fdb8:0x3ec,_0x127bec:0x15e,_0x19f12a:0xbe,_0x3b029d:0x4a2,_0x1ccc02:0x407,_0x25f7c0:0x5a7,_0x43d04a:0x508,_0x42f294:0x423,_0x5e35b8:0x46d,_0x2ae7f9:0x62f,_0x8c1900:0x508,_0x8778f2:0x293,_0xc1dbe9:0x33f},_0x5c44e7={_0x2c922:0x1a,_0x24d5b4:0x190},_0x35fed3={_0x572785:0xfa,_0x5e3b25:0x2c,_0x4e3b78:0x174},_0x18b1ba={_0x525d5f:0x15b,_0x366fbf:0x177},_0xad386a={_0x3e9df7:0x115,_0x1bef78:0x5e},_0x1f05b1=_0xf4016c[_0x237c1f(_0x5178d5._0x16106d,0x312,_0x5178d5._0x20f3a9,_0x5178d5._0x41dea6)](_0x208594[_0x237c1f(0x2ce,0x2df,0x323,_0x5178d5._0x4a03b0)]??process[_0x237c1f(_0x5178d5._0x33801b,_0x5178d5._0x4a9271,_0x5178d5._0x47e48c,0x4f2)]());function _0x179eba(_0x53047a,_0x27cc77,_0x57af8a,_0x4f7ee1){return _0x255f51(_0x4f7ee1- -_0xad386a._0x3e9df7,_0x27cc77-_0xad386a._0x1bef78,_0x27cc77,_0x4f7ee1-0x166);}const _0x196666=(_0x208594[_0x237c1f(0x36a,0x23e,_0x5178d5._0x37f3ce,_0x5178d5._0x26c0d4)]??[])[_0x237c1f(0x232,0x226,_0x5178d5._0x272fd7,_0x5178d5._0x40e04a)](_0x2a48a6=>_0xf4016c['resolve'](_0x2a48a6)),_0x283015=_0x208594[_0x179eba(0x506,0x591,_0x5178d5._0x1b7066,_0x5178d5._0x254686)]??_0x179eba(_0x5178d5._0x19d13b,0x4cb,0x589,0x461);function _0x237c1f(_0x3d8ef2,_0x305b36,_0x259dd6,_0x878289){return _0x255f51(_0x3d8ef2- -0x37c,_0x305b36-_0x18b1ba._0x525d5f,_0x878289,_0x878289-_0x18b1ba._0x366fbf);}return defineTool({'name':_0x283015,'description':_0x237c1f(0x3ba,0x2ed,_0x5178d5._0x159c54,0x3ca),'inputSchema':{'type':_0x179eba(_0x5178d5._0x4dceb1,_0x5178d5._0x5f323f,0x57e,_0x5178d5._0x453b13),'properties':{'operation':{'type':'string','enum':[_0x179eba(0x5e5,0x572,0x592,_0x5178d5._0x37ae2e),_0x237c1f(0x30f,0x2de,_0x5178d5._0x5f1a16,0x3b8),_0x237c1f(0x41e,_0x5178d5._0x54712b,0x3c2,_0x5178d5._0xac90e),_0x179eba(0x54f,0x66c,0x4c1,_0x5178d5._0x3584a7),_0x237c1f(0x386,0x2cd,_0x5178d5._0x7d88ca,0x29b),_0x237c1f(0x225,_0x5178d5._0x46b6da,_0x5178d5._0x8d8898,0x233),'prepareCallHierarchy',_0x237c1f(0x415,0x4fb,_0x5178d5._0x45364c,_0x5178d5._0x2eeda9),_0x179eba(_0x5178d5._0x2ca1f4,_0x5178d5._0x15c908,0x4f2,0x4eb),_0x179eba(_0x5178d5._0x476663,_0x5178d5._0x199beb,0x4eb,_0x5178d5._0x1482ad)]},'filePath':{'type':_0x237c1f(0x343,0x246,_0x5178d5._0x2364fe,0x3cc)},'line':{'type':'number'},'character':{'type':_0x237c1f(0x28d,_0x5178d5._0x23dde9,_0x5178d5._0xebd0cb,0x25c)},'query':{'type':_0x179eba(0x5a6,0x661,_0x5178d5._0x1087a3,_0x5178d5._0x13cbe1)}},'required':[_0x237c1f(_0x5178d5._0x17781f,_0x5178d5._0x4b1b3b,0x470,_0x5178d5._0x5342ec),_0x237c1f(_0x5178d5._0x39f31c,_0x5178d5._0x16c3f8,0x468,_0x5178d5._0x45216a),'line',_0x179eba(0x49e,0x55b,_0x5178d5._0x54663a,_0x5178d5._0xcbbb9c)]},async *'execute'(_0x477515){const _0x130740=_0x208594[_0x2e622d(0x3ec,0x4bc,_0x226f76._0x9054f7,0x42f)];if(!_0x130740)throw new ToolExecutionError(_0x2e622d(0x61b,0x584,0x4fd,0x4f9));if(!_0x130740[_0x2e622d(0x321,0x4ff,_0x226f76._0x36accf,_0x226f76._0x82a5ae)]())throw new ToolExecutionError(_0x2e622d(_0x226f76._0x3cbfb8,_0x226f76._0x15fd5b,0x397,0x2fc));const _0x3636fb=_0x477515[_0x2e622d(_0x226f76._0x279130,0x48a,_0x226f76._0x504af3,0x514)];validatePosition(_0x477515[_0x2e622d(0x303,_0x226f76._0x1eeb65,0x2d2,0x37d)],_0x477515[_0x45fe6e(_0x226f76._0xbe3e26,-_0x226f76._0x475cf6,-_0x226f76._0x3f95df,_0x226f76._0x5219e8)]);if(_0x3636fb==='workspaceSymbol'){if(!_0x477515['query']?.['trim']())throw new ToolExecutionError(_0x2e622d(_0x226f76._0xa629c2,0x306,_0x226f76._0x140c9b,0x30f));const _0x46a51a=await _0x130740[_0x45fe6e(0x142,0x1b6,0xf9,0xfb)](_0x477515[_0x45fe6e(_0x226f76._0x9eac60,0x214,0x1c6,0x212)][_0x2e622d(0x2c7,0x370,_0x226f76._0x62c3b6,0x2c8)]());return yield createToolOutput(formatSymbols(_0x46a51a),{'operation':_0x3636fb,'query':_0x477515[_0x45fe6e(0x16d,_0x226f76._0x19c610,_0x226f76._0x55bdb,_0x226f76._0x2f6703)],'symbols':_0x46a51a}),void 0x0;}function _0x2e622d(_0x2b8f2c,_0x2d15ce,_0x2cbfe6,_0x9f90b1){return _0x179eba(_0x2b8f2c-_0x35fed3._0x572785,_0x2d15ce,_0x2cbfe6-_0x35fed3._0x5e3b25,_0x9f90b1- -_0x35fed3._0x4e3b78);}const _0x25c225=resolveAllowedPath(_0x1f05b1,_0x196666,_0x477515[_0x45fe6e(_0x226f76._0x29b021,0x11f,0x171,_0x226f76._0x1b684)]);await assertFile(_0x25c225);if(!await _0x130740[_0x2e622d(_0x226f76._0x17da3a,_0x226f76._0x10f0da,0x329,0x2ef)](_0x25c225))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x477515[_0x45fe6e(_0x226f76._0x29b021,0x235,_0x226f76._0x8243cb,_0x226f76._0x59dcd6)],{'filePath':_0x477515['filePath']});await _0x130740[_0x45fe6e(_0x226f76._0x33df3a,0x9b,0xb5,0x88)](_0x25c225,!![]);function _0x45fe6e(_0xb90931,_0x15f113,_0x588625,_0x3630ec){return _0x237c1f(_0xb90931- -0x244,_0x15f113-_0x5c44e7._0x2c922,_0x588625-_0x5c44e7._0x24d5b4,_0x588625);}const _0x38ed33={'file':_0x25c225,'line':_0x477515[_0x2e622d(_0x226f76._0x23bb70,_0x226f76._0xaeabd8,_0x226f76._0x49e787,_0x226f76._0x4a592f)]-0x1,'character':_0x477515[_0x45fe6e(0x83,_0x226f76._0x281b4a,0x193,_0x226f76._0x43983b)]-0x1};switch(_0x3636fb){case _0x2e622d(0x628,_0x226f76._0x2bf679,0x612,0x511):{const _0x483e74=await _0x130740[_0x45fe6e(_0x226f76._0x2a8175,0x246,0x106,_0x226f76._0x47879d)](_0x38ed33);return yield createToolOutput(formatHover(_0x483e74),{'operation':_0x3636fb,'filePath':_0x25c225,'hover':_0x483e74}),void 0x0;}case _0x2e622d(_0x226f76._0x4dc4de,_0x226f76._0x55adc4,_0x226f76._0x1bdb1f,_0x226f76._0x1173d8):{const _0x5e0b23=await _0x130740[_0x45fe6e(_0x226f76._0x2ce350,_0x226f76._0x5e84a6,-0x19,_0x226f76._0x3ad909)](_0x25c225);return yield createToolOutput(formatDiagnostics(_0x5e0b23),{'operation':_0x3636fb,'filePath':_0x25c225,'diagnostics':_0x5e0b23}),void 0x0;}case _0x45fe6e(_0x226f76._0x8bf7e8,_0x226f76._0x8cbb78,0x183,-_0x226f76._0x4daf5c):{const _0x47ab69=await _0x130740[_0x45fe6e(0x1e9,0x1f5,_0x226f76._0x330cc6,0x2b6)](_0x38ed33);return yield createToolOutput(formatLocations(_0x47ab69),{'operation':_0x3636fb,'filePath':_0x25c225,'locations':_0x47ab69}),void 0x0;}case _0x45fe6e(0xcb,0x1b8,0x15a,0x5d):{const _0x39c7c8=await _0x130740[_0x2e622d(_0x226f76._0x5e9bba,_0x226f76._0x1a4571,0x356,_0x226f76._0x572960)](_0x38ed33);return yield createToolOutput(formatLocations(_0x39c7c8),{'operation':_0x3636fb,'filePath':_0x25c225,'locations':_0x39c7c8}),void 0x0;}case _0x45fe6e(-_0x226f76._0x4a6f2a,0x12,_0x226f76._0x4e5df1,_0x226f76._0x493286):{const _0x37c44=await _0x130740[_0x2e622d(0x3b7,_0x226f76._0x3ffc31,_0x226f76._0xbc0734,_0x226f76._0x7a429)](_0x38ed33);return yield createToolOutput(formatLocations(_0x37c44),{'operation':_0x3636fb,'filePath':_0x25c225,'locations':_0x37c44}),void 0x0;}case _0x2e622d(0x3d8,0x45a,0x49e,0x3ec):{const _0x2a1347=await _0x130740[_0x2e622d(_0x226f76._0x48e9d8,0x2cb,_0x226f76._0x129222,_0x226f76._0x31fdb8)](_0x25c225);return yield createToolOutput(formatSymbols(_0x2a1347),{'operation':_0x3636fb,'filePath':_0x25c225,'symbols':_0x2a1347}),void 0x0;}case _0x45fe6e(_0x226f76._0x127bec,_0x226f76._0x19f12a,0x222,0xf8):{const _0x576eb6=await _0x130740[_0x2e622d(0x5ac,_0x226f76._0x3b029d,0x3d9,0x495)](_0x38ed33);return yield createToolOutput(formatSymbols(_0x576eb6),{'operation':_0x3636fb,'filePath':_0x25c225,'symbols':toStructured(_0x576eb6)}),void 0x0;}case _0x2e622d(0x3f5,_0x226f76._0x1ccc02,_0x226f76._0x25f7c0,_0x226f76._0x43d04a):{const _0xd4ad9d=await _0x130740[_0x2e622d(_0x226f76._0x42f294,_0x226f76._0x5e35b8,_0x226f76._0x2ae7f9,_0x226f76._0x8c1900)](_0x38ed33);return yield createToolOutput(formatIncomingCalls(_0xd4ad9d),{'operation':_0x3636fb,'filePath':_0x25c225,'calls':toStructured(_0xd4ad9d)}),void 0x0;}case _0x2e622d(0x304,0x43c,0x321,0x377):{const _0xa425c6=await _0x130740[_0x2e622d(_0x226f76._0x8778f2,0x2a0,_0x226f76._0xc1dbe9,0x377)](_0x38ed33);return yield createToolOutput(formatOutgoingCalls(_0xa425c6),{'operation':_0x3636fb,'filePath':_0x25c225,'calls':toStructured(_0xa425c6)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x2991da,readFile as _0x48d106,writeFile as _0x40f8cd}from'fs/promises';import{join as _0x4f8ee}from'path';function sanitizeStorageKey(_0x4bd454){const _0x3fe424={_0x5c7c66:0x5f1,_0x46321c:0x4bd,_0x36f5d7:0x4fb,_0x2f1f06:0x47e,_0x13c99d:0x5b6,_0x579c0f:0x4c0},_0x357376={_0x2f60af:0x316},_0x32d8fb={_0x5effce:0x153,_0x482c43:0x31};function _0x5090d3(_0x3bc90f,_0x2ce38b,_0x265053,_0x439aa9){return _0x255f51(_0x439aa9- -_0x32d8fb._0x5effce,_0x2ce38b-_0x32d8fb._0x482c43,_0x265053,_0x439aa9-0x1a9);}function _0x416cdb(_0x4ed077,_0x49c449,_0x4804f9,_0x5e95b5){return _0x173565(_0x4ed077-0x3f,_0x49c449-0x1eb,_0x4804f9,_0x5e95b5-_0x357376._0x2f60af);}return _0x4bd454[_0x5090d3(_0x3fe424._0x5c7c66,0x60b,_0x3fe424._0x46321c,_0x3fe424._0x36f5d7)](/[^a-zA-Z0-9_]+/g,'_')[_0x416cdb(_0x3fe424._0x2f1f06,0x36f,0x2ef,0x3f8)](/^_+|_+$/g,'')||_0x5090d3(_0x3fe424._0x13c99d,0x4a4,_0x3fe424._0x579c0f,0x57c);}function storagePath(_0x26290d){const _0x11449d={_0x29fa0f:0x6e0,_0xa257df:0x62c,_0x1b6685:0x7c6,_0x31ae5b:0x761,_0x28d3c3:0x7cd,_0x3ddbe3:0x700,_0x3b899e:0x53e,_0x1d2dbb:0x5ec,_0x230000:0x718,_0x2b9b22:0x5f8},_0x29e211={_0x411342:0x66,_0x8b6342:0x8d,_0x10b176:0xa4};function _0x280f35(_0x3959c1,_0x581907,_0x4f8c57,_0x2b5a3c){return _0x255f51(_0x581907- -_0x29e211._0x411342,_0x581907-_0x29e211._0x8b6342,_0x4f8c57,_0x2b5a3c-_0x29e211._0x10b176);}function _0x161e1a(_0x42e05c,_0x2ab690,_0xd0cfc8,_0x316084){return _0x173565(_0x42e05c-0x1f1,_0x2ab690-0x16f,_0x42e05c,_0x2ab690-0x5b5);}const _0x39b6be=sanitizeStorageKey(_0x26290d[_0x280f35(0x75e,_0x11449d._0x29fa0f,_0x11449d._0xa257df,_0x11449d._0x1b6685)]['oauth']?.[_0x161e1a(0x853,_0x11449d._0x31ae5b,0x6e2,0x63c)]??_0x26290d[_0x280f35(_0x11449d._0x28d3c3,_0x11449d._0x3ddbe3,0x816,0x6f5)]);return _0x4f8ee(_0x26290d[_0x161e1a(_0x11449d._0x3b899e,0x60b,_0x11449d._0x1d2dbb,_0x11449d._0x230000)],_0x39b6be+_0x161e1a(0x749,0x6c9,0x681,_0x11449d._0x2b9b22));}async function readStore(_0x267bfa){const _0x56a08e={_0x169bb9:0x18d,_0x1d7b98:0xf7,_0x441d80:0x1d5,_0xd0c3b9:0x2e8,_0x477b73:0x10a,_0xf37e11:0x2c0,_0xc7653e:0x35d,_0x4edf9e:0x388,_0x124da3:0x3cd,_0x12250f:0x34f,_0x16a596:0x1d1},_0x590337={_0x17d1aa:0x4fd},_0x13ed09={_0x2c8e08:0x439,_0x1da066:0x83};function _0x403bb9(_0x4493ad,_0x53b15f,_0xfd9d42,_0x567bd2){return _0x255f51(_0xfd9d42- -_0x13ed09._0x2c8e08,_0x53b15f-_0x13ed09._0x1da066,_0x567bd2,_0x567bd2-0x1ca);}function _0x26448c(_0x47ffd6,_0x31b3c4,_0x3928db,_0x878198){return _0x255f51(_0x31b3c4- -_0x590337._0x17d1aa,_0x31b3c4-0x16,_0x3928db,_0x878198-0x101);}try{return JSON[_0x26448c(_0x56a08e._0x169bb9,_0x56a08e._0x1d7b98,0x18b,0x14e)](await _0x48d106(_0x267bfa,_0x26448c(0x2fb,_0x56a08e._0x441d80,_0x56a08e._0xd0c3b9,0x10e)));}catch(_0x454b38){if(_0x454b38 instanceof Error&&_0x26448c(0x16b,0x1fb,_0x56a08e._0x477b73,_0x56a08e._0xf37e11)in _0x454b38&&_0x454b38[_0x403bb9(_0x56a08e._0xc7653e,_0x56a08e._0x4edf9e,0x2bf,_0x56a08e._0x124da3)]===_0x26448c(_0x56a08e._0x12250f,0x25e,_0x56a08e._0x16a596,0x141))return{};throw _0x454b38;}}async function writeStore(_0x599463,_0x3c6cbe){const _0xb8a8b5={_0x250924:0x1fb,_0x2224d4:0x2ee,_0x208def:0xab,_0x5d2435:0x170,_0x312734:0x1cb},_0x1bfe47={_0x696ee4:0xf1,_0x33093d:0x52d};function _0x1c2225(_0xb1644,_0x3eda85,_0x33fc36,_0x4ab7fa){return _0x173565(_0xb1644-_0x1bfe47._0x696ee4,_0x3eda85-0x71,_0x33fc36,_0x3eda85-_0x1bfe47._0x33093d);}await _0x2991da(_0x4f8ee(_0x599463,'..'),{'recursive':!![]});function _0x133437(_0x259e86,_0x121939,_0x521c6e,_0x1d3233){return _0x255f51(_0x521c6e- -0x562,_0x121939-0x5c,_0x1d3233,_0x1d3233-0x1d6);}await _0x40f8cd(_0x599463,JSON[_0x133437(0xf5,0x125,_0xb8a8b5._0x250924,_0xb8a8b5._0x2224d4)](_0x3c6cbe,null,0x2),_0x133437(0x254,_0xb8a8b5._0x208def,_0xb8a8b5._0x5d2435,_0xb8a8b5._0x312734));}async function updateStore(_0x28cc72,_0x7bb314){const _0x152cc4=await readStore(_0x28cc72);_0x7bb314(_0x152cc4),await writeStore(_0x28cc72,_0x152cc4);}function createMcpOAuthProvider(_0x5776e8){const _0x5a065a={_0x3d4226:0x1c,_0x1eada3:0x119,_0x39d34c:0x23b,_0x3c5e78:0x1ae,_0x196911:0x19c,_0x3b17e7:0x288,_0x20cbe9:0x2b6,_0x54b875:0x37a,_0x1d7a7d:0x41d,_0x95fa70:0x32e,_0x1747d6:0x389,_0x2261da:0x214,_0x43697c:0x220,_0x1d830a:0x2df,_0x375a9:0x1d0,_0x52c84c:0x1f9,_0x477d83:0x85,_0x4cb7b2:0x258},_0x1fb963={_0x2f69ee:0x6d5},_0x3b3a9b={_0x36f27d:0x3e2},_0x2015ff={_0x341fbd:0x617,_0x240930:0x517,_0x24e4ac:0x542},_0x4d04bb={_0x3befed:0x1,_0x42b8be:0x12},_0x39aa15={_0x855075:0x290,_0x519acb:0x33f},_0x5e12fa={_0x45c2bc:0x5df,_0xc48fba:0x5c0,_0x512a87:0x795,_0x5d54d6:0x572},_0x2936f7={_0x380b30:0xf9,_0x33f509:0x2ba},_0x4d7f65={_0x575183:0x301,_0x3ed70d:0x199},_0x1c5715={_0x55a320:0x1c5,_0x1c04aa:0x16b,_0x1306cb:0x2a},_0xf79928={_0x1532de:0xb0},_0x1363a8={_0x13e6e7:0x10d};function _0x246ee0(_0x38bec3,_0x3c4953,_0x31b559,_0x4334a6){return _0x255f51(_0x3c4953- -0x3da,_0x3c4953-0xcd,_0x38bec3,_0x4334a6-_0x1363a8._0x13e6e7);}function _0x2fc3c3(_0x3acba0,_0x4b85d0,_0x23a1ae,_0x5d71be){return _0x255f51(_0x23a1ae- -0x454,_0x4b85d0-0x7d,_0x4b85d0,_0x5d71be-0x1c3);}const _0x5aded6=storagePath(_0x5776e8),_0x505b1a=_0x5776e8[_0x246ee0(0x36a,0x36c,0x3da,0x47a)][_0x2fc3c3(_0x5a065a._0x3d4226,0x6b,_0x5a065a._0x1eada3,0x1fd)]?.[_0x2fc3c3(0x17f,_0x5a065a._0x39d34c,_0x5a065a._0x3c5e78,0x29e)]?.[_0x2fc3c3(0x1e2,0xef,_0x5a065a._0x196911,_0x5a065a._0x3b17e7)]('\x20'),_0x4d28fd={'client_name':_0x2fc3c3(0x352,0x2cf,_0x5a065a._0x20cbe9,_0x5a065a._0x54b875),'redirect_uris':[_0x5776e8['callbackUrl']],'grant_types':[_0x246ee0(_0x5a065a._0x1d7a7d,_0x5a065a._0x95fa70,_0x5a065a._0x1747d6,0x2e0),_0x246ee0(0x203,0x273,0x38c,0x194)],'response_types':[_0x2fc3c3(_0x5a065a._0x2261da,_0x5a065a._0x43697c,0x2a4,_0x5a065a._0x1d830a)],'token_endpoint_auth_method':_0x246ee0(_0x5a065a._0x375a9,0x1b1,_0x5a065a._0x52c84c,_0x5a065a._0x477d83),..._0x505b1a?{'scope':_0x505b1a}:{}};return{'clientMetadataUrl':_0x5776e8[_0x2fc3c3(_0x5a065a._0x4cb7b2,0x38a,0x2f2,0x37a)]['oauth']?.['clientMetadataUrl'],get 'redirectUrl'(){const _0x492701={_0x257306:0x266};function _0x937097(_0x286aa0,_0x437824,_0xe7a173,_0x3d83cf){return _0x246ee0(_0x286aa0,_0x3d83cf- -_0x492701._0x257306,_0xe7a173-0x104,_0x3d83cf-0x107);}return _0x5776e8[_0x937097(0x151,-_0xf79928._0x1532de,-0xa4,0x2e)];},get 'clientMetadata'(){return _0x4d28fd;},async 'state'(){function _0x3cb7d9(_0x5caa06,_0x569c45,_0x131dc3,_0x280366){return _0x246ee0(_0x569c45,_0x131dc3-_0x1c5715._0x55a320,_0x131dc3-_0x1c5715._0x1c04aa,_0x280366-_0x1c5715._0x1306cb);}const _0x581f44=await readStore(_0x5aded6);if(_0x581f44[_0x174dcb(_0x5e12fa._0x45c2bc,0x683,0x554,_0x5e12fa._0xc48fba)])return _0x581f44[_0x174dcb(0x5a4,0x683,_0x5e12fa._0x512a87,_0x5e12fa._0x5d54d6)];function _0x174dcb(_0x1be116,_0x286c1f,_0x1cbe09,_0x53e7c6){return _0x246ee0(_0x1cbe09,_0x286c1f-_0x4d7f65._0x575183,_0x1cbe09-0x9e,_0x53e7c6-_0x4d7f65._0x3ed70d);}const _0x148e55=randomUUID();return await updateStore(_0x5aded6,_0x42ae4e=>{const _0x4abee2={_0xc47374:0x159};function _0x310b3a(_0x52a22c,_0x1a5442,_0x18d33a,_0x18d9d3){return _0x3cb7d9(_0x52a22c-_0x4abee2._0xc47374,_0x52a22c,_0x1a5442- -0x350,_0x18d9d3-0x14);}_0x42ae4e[_0x310b3a(0x245,0x1f7,_0x2936f7._0x380b30,_0x2936f7._0x33f509)]=_0x148e55;}),_0x148e55;},async 'clientInformation'(){return(await readStore(_0x5aded6))['clientInformation'];},async 'saveClientInformation'(_0x4542b9){const _0x2a4d26={_0x18a18a:0xff,_0x39875a:0x15d},_0x4978f7={_0x319c5a:0x2cd};await updateStore(_0x5aded6,_0x5c73cd=>{function _0x1dd87c(_0x41ca37,_0x356885,_0x3fd35a,_0x295def){return _0x4100(_0x295def- -_0x4978f7._0x319c5a,_0x356885);}_0x5c73cd[_0x1dd87c(_0x2a4d26._0x18a18a,0x99,0x5a,_0x2a4d26._0x39875a)]=_0x4542b9;});},async 'tokens'(){function _0x3f4d7a(_0x1156ec,_0x3190cd,_0x231f44,_0x23f916){return _0x2fc3c3(_0x1156ec-0x79,_0x23f916,_0x231f44-0xca,_0x23f916-0xd8);}return(await readStore(_0x5aded6))[_0x3f4d7a(_0x39aa15._0x855075,0x414,_0x39aa15._0x519acb,0x26b)];},async 'saveTokens'(_0x588146){await updateStore(_0x5aded6,_0x5dbb3e=>{_0x5dbb3e['tokens']=_0x588146;});},async 'redirectToAuthorization'(_0xdfc70d){await _0x5776e8['onRedirect'](_0xdfc70d);},async 'saveCodeVerifier'(_0x4d1dc3){const _0x4f75eb={_0x540f8c:0x1b};await updateStore(_0x5aded6,_0x37899b=>{function _0x115ad5(_0x149114,_0x425ded,_0x557a67,_0x373eea){return _0x4100(_0x373eea- -0x384,_0x557a67);}_0x37899b[_0x115ad5(0x38,-0x7c,-0x126,-_0x4f75eb._0x540f8c)]=_0x4d1dc3;});},async 'codeVerifier'(){const _0x3ef21d=(await readStore(_0x5aded6))[_0x19f41d(_0x2015ff._0x341fbd,_0x2015ff._0x240930,_0x2015ff._0x24e4ac,0x71a)];function _0x19f41d(_0x2c74df,_0x166bb4,_0x212a60,_0xf90b12){return _0x246ee0(_0xf90b12,_0x2c74df-0x314,_0x212a60-_0x4d04bb._0x3befed,_0xf90b12-_0x4d04bb._0x42b8be);}if(!_0x3ef21d)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x3ef21d;},async 'invalidateCredentials'(_0x410e1a){const _0xe0431b={_0x2d3b62:0xf8,_0x10fb21:0x111,_0xf64720:0x767,_0x1b5d1f:0x692,_0x508598:0x751,_0x5c4f86:0x41b,_0xf934d4:0x51a,_0x48bc80:0x186,_0x22ccb2:0x6d,_0x3ab898:0x40,_0x38e7fe:0x6e,_0x587948:0x191,_0xf6905:0x8d,_0x42f660:0x63a,_0x5bceda:0x6c,_0x3da521:0x4,_0x59ba25:0x6ba};await updateStore(_0x5aded6,_0x2e6cf4=>{const _0x35df27={_0x16165b:0x2e7};(_0x410e1a===_0x9fcc9d(-_0xe0431b._0x2d3b62,-_0xe0431b._0x10fb21,0x3b,-0xb5)||_0x410e1a===_0x4dc1c4(_0xe0431b._0xf64720,0x6f9,_0xe0431b._0x1b5d1f,_0xe0431b._0x508598))&&(_0x2e6cf4['clientInformation']=void 0x0);function _0x4dc1c4(_0x12a2b8,_0x295a89,_0x5a3d23,_0x3bc590){return _0x4100(_0x5a3d23-_0x35df27._0x16165b,_0x295a89);}(_0x410e1a===_0x4dc1c4(0x43b,_0xe0431b._0x5c4f86,_0xe0431b._0xf934d4,0x4fa)||_0x410e1a==='tokens')&&(_0x2e6cf4[_0x9fcc9d(0x119,0x161,_0xe0431b._0x48bc80,_0xe0431b._0x22ccb2)]=void 0x0);function _0x9fcc9d(_0x448838,_0x29be23,_0x12161f,_0x451473){return _0x4100(_0x451473- -0x2e8,_0x29be23);}(_0x410e1a===_0x9fcc9d(-_0xe0431b._0x3ab898,-0x171,-_0xe0431b._0x38e7fe,-0xb5)||_0x410e1a===_0x9fcc9d(_0xe0431b._0x587948,-0x65,0xb,_0xe0431b._0xf6905))&&(_0x2e6cf4[_0x4dc1c4(0x590,0x602,0x650,_0xe0431b._0x42f660)]=void 0x0,_0x2e6cf4['state']=void 0x0),(_0x410e1a==='all'||_0x410e1a===_0x9fcc9d(_0xe0431b._0x5bceda,_0xe0431b._0x3da521,-_0xe0431b._0x38e7fe,0x8f))&&(_0x2e6cf4[_0x4dc1c4(0x5d3,0x7b9,_0xe0431b._0x59ba25,0x764)]=void 0x0);});},async 'saveDiscoveryState'(_0x5b2d54){await updateStore(_0x5aded6,_0x50546f=>{_0x50546f['discoveryState']=_0x5b2d54;});},async 'discoveryState'(){function _0x421a0d(_0x3950cf,_0x47d337,_0x8ce2ef,_0x2650f0){return _0x2fc3c3(_0x3950cf-0x1e2,_0x8ce2ef,_0x2650f0-_0x3b3a9b._0x36f27d,_0x2650f0-0x11);}return(await readStore(_0x5aded6))[_0x421a0d(0x760,0x606,0x6b7,_0x1fb963._0x2f69ee)];}};}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 _0x4100(_0x2b2165,_0x1d98a5){_0x2b2165=_0x2b2165-0x1dc;const _0x2b521f=_0x2b52();let _0x410083=_0x2b521f[_0x2b2165];if(_0x4100['VuwAxa']===undefined){var _0x3996b3=function(_0x3ddef6){const _0x104126='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2946e8='',_0x383c01='';for(let _0x56e75c=0x0,_0x1833a3,_0x8b2779,_0x3ae68c=0x0;_0x8b2779=_0x3ddef6['charAt'](_0x3ae68c++);~_0x8b2779&&(_0x1833a3=_0x56e75c%0x4?_0x1833a3*0x40+_0x8b2779:_0x8b2779,_0x56e75c++%0x4)?_0x2946e8+=String['fromCharCode'](0xff&_0x1833a3>>(-0x2*_0x56e75c&0x6)):0x0){_0x8b2779=_0x104126['indexOf'](_0x8b2779);}for(let _0x1cd4e7=0x0,_0x45a0d8=_0x2946e8['length'];_0x1cd4e7<_0x45a0d8;_0x1cd4e7++){_0x383c01+='%'+('00'+_0x2946e8['charCodeAt'](_0x1cd4e7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x383c01);};_0x4100['PGxjFU']=_0x3996b3,_0x4100['GscpaN']={},_0x4100['VuwAxa']=!![];}const _0x1ff2a8=_0x2b521f[0x0],_0x1b8ebf=_0x2b2165+_0x1ff2a8,_0x57051f=_0x4100['GscpaN'][_0x1b8ebf];return!_0x57051f?(_0x410083=_0x4100['PGxjFU'](_0x410083),_0x4100['GscpaN'][_0x1b8ebf]=_0x410083):_0x410083=_0x57051f,_0x410083;}function createMcpToolName(_0x3521d1,_0x52538d){const _0x3f545c={_0xf231b7:0x4e2,_0x5ea1ca:0x60b},_0x4eb059={_0x1ed1cd:0x8b,_0x55261a:0x151},_0x2c810c=_0x36bc3b=>_0x36bc3b['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'');function _0x15f727(_0x45ade8,_0x58b825,_0x31142d,_0x2edde2){return _0x173565(_0x45ade8-_0x4eb059._0x1ed1cd,_0x58b825-_0x4eb059._0x55261a,_0x2edde2,_0x58b825-0x4ea);}return _0x15f727(0x49a,_0x3f545c._0xf231b7,0x60d,_0x3f545c._0x5ea1ca)+_0x2c810c(_0x3521d1)+'_'+_0x2c810c(_0x52538d);}function isObject(_0x2ae45d){const _0x1615f1={_0x21d189:0x53c,_0x41740f:0x426,_0x3a7c3f:0x414},_0x2c733c={_0x5a6f56:0x7d,_0x359dc6:0x87},_0x10a70e={_0x29e82a:0x40f,_0x5bd6cd:0x191,_0x1ab333:0x2};function _0x20ec57(_0x200697,_0x262784,_0x2f7d69,_0x43180f){return _0x255f51(_0x262784- -_0x10a70e._0x29e82a,_0x262784-_0x10a70e._0x5bd6cd,_0x200697,_0x43180f-_0x10a70e._0x1ab333);}function _0x100d8f(_0x1e5188,_0x475a63,_0x347d47,_0x499aa5){return _0x255f51(_0x499aa5- -0xd4,_0x475a63-_0x2c733c._0x5a6f56,_0x347d47,_0x499aa5-_0x2c733c._0x359dc6);}return typeof _0x2ae45d===_0x100d8f(0x660,0x592,_0x1615f1._0x21d189,0x589)&&_0x2ae45d!==null&&!Array[_0x100d8f(_0x1615f1._0x41740f,0x475,_0x1615f1._0x3a7c3f,0x489)](_0x2ae45d);}function toSupportedSchema(_0x4666ef){const _0x142b54={_0x154dd7:0x15f,_0x5c496b:0x1f6,_0x444c7:0x275,_0x45ad4a:0x144,_0x55bfa4:0x20a,_0x15c749:0x2de,_0x30e5f:0x4b5,_0xf1e793:0x510,_0x953160:0x527,_0x304cce:0x38e,_0x168cd1:0x2ac,_0x1489af:0x2d5,_0x174507:0x3b1,_0x366bf5:0x2cc,_0x410e8e:0x381,_0x336291:0x41a,_0x17418e:0x3eb,_0xd93da3:0x37f,_0x3d11f4:0x2bd,_0x25455c:0x390,_0x8e048d:0x3a8,_0x6bec66:0x310,_0x2ce733:0x30d,_0x26174d:0x3ee,_0x3dc8b9:0x217,_0x54bfff:0x2ef,_0x6ed67f:0x2fd,_0x230787:0x13f,_0x1cb87a:0x284},_0x18240c={_0x2ce3ef:0x1b0},_0x4e7b2b={_0x3eebcc:0x3ff};if(!isObject(_0x4666ef))return void 0x0;if(_0x4666ef['type']==='string')return{'type':'string'};function _0x416272(_0x2f836b,_0x114de2,_0x158a58,_0x17ed6b){return _0x255f51(_0x17ed6b- -_0x4e7b2b._0x3eebcc,_0x114de2-0x140,_0x2f836b,_0x17ed6b-0x1ca);}if(_0x4666ef[_0x416272(_0x142b54._0x154dd7,_0x142b54._0x5c496b,_0x142b54._0x444c7,0x22d)]===_0x416272(_0x142b54._0x45ad4a,0x2cf,0x161,_0x142b54._0x55bfa4)||_0x4666ef[_0x4160dd(0x3b1,_0x142b54._0x15c749,0x3c0,_0x142b54._0x30e5f)]===_0x4160dd(_0x142b54._0xf1e793,0x412,_0x142b54._0x953160,0x42b))return{'type':_0x4160dd(_0x142b54._0x304cce,_0x142b54._0x168cd1,_0x142b54._0x1489af,0x463)};if(_0x4666ef[_0x4160dd(_0x142b54._0x174507,0x2fb,_0x142b54._0x366bf5,0x442)]===_0x4160dd(0x441,_0x142b54._0x410e8e,0x32f,_0x142b54._0x336291))return{'type':_0x416272(0x389,_0x142b54._0x17418e,_0x142b54._0xd93da3,_0x142b54._0x3d11f4)};if(_0x4666ef[_0x4160dd(0x3b1,0x3f5,_0x142b54._0x25455c,_0x142b54._0x8e048d)]==='array')return{'type':_0x416272(0x3aa,0x428,_0x142b54._0x6bec66,_0x142b54._0x2ce733),'items':toSupportedSchema(_0x4666ef[_0x4160dd(0x3a5,0x2be,_0x142b54._0x26174d,0x2c7)])??{'type':'string'}};if(_0x4666ef[_0x416272(_0x142b54._0x3dc8b9,_0x142b54._0x54bfff,0x329,0x22d)]===_0x416272(_0x142b54._0x6ed67f,_0x142b54._0x230787,_0x142b54._0x1cb87a,0x25e))return toNuvinToolSchema(_0x4666ef);function _0x4160dd(_0x30daac,_0x1fafea,_0x20fcab,_0x293779){return _0x173565(_0x30daac-0x1bd,_0x1fafea-_0x18240c._0x2ce3ef,_0x1fafea,_0x30daac-0x2f1);}return void 0x0;}function toNuvinToolSchema(_0x675708){const _0x581e0e={_0x47cbb1:0x230,_0x4db595:0x311,_0x47602e:0x322,_0x3c4e61:0x319,_0x3bac4d:0x1a9,_0x16eab4:0x24c,_0x5b8ef0:0x273,_0x3979c1:0x440,_0x1a4f2f:0x3f0,_0x10ca0d:0x576,_0x1cbf4b:0x476,_0x3b0d94:0x28f,_0x4d2363:0x53f,_0x83d093:0x58e,_0x31da14:0x4ec,_0x5a0e56:0x334,_0x432774:0x260,_0x3cf299:0x240,_0x58b8fa:0x3bb,_0x3bb66d:0x358,_0x108321:0x362,_0x2aa601:0x24d},_0x109ed5={_0x9356d:0x3a},_0x4e4188={_0x2717f4:0x410,_0x2ee8f0:0x1dd,_0x3b0a96:0xc0};if(!isObject(_0x675708)||_0x675708[_0x3b4f45(0x118,0x21c,_0x581e0e._0x47cbb1,0x13c)]!==_0x2ecee0(0x3cb,0x406,0x3bd,_0x581e0e._0x4db595))return{'type':_0x2ecee0(0x376,0x4ca,0x3bd,_0x581e0e._0x47602e),'properties':{}};const _0x5376b0={};function _0x3b4f45(_0x323c77,_0x85d903,_0x34ed9f,_0x36439c){return _0x255f51(_0x85d903- -_0x4e4188._0x2717f4,_0x85d903-_0x4e4188._0x2ee8f0,_0x36439c,_0x36439c-_0x4e4188._0x3b0a96);}const _0x2e693d=isObject(_0x675708[_0x2ecee0(0x41e,0x1eb,_0x581e0e._0x3c4e61,0x3cf)])?_0x675708[_0x3b4f45(0x195,_0x581e0e._0x3bac4d,_0x581e0e._0x16eab4,_0x581e0e._0x5b8ef0)]:{};function _0x2ecee0(_0x532774,_0x2fcc98,_0x3a6181,_0x3be552){return _0x173565(_0x532774-_0x109ed5._0x9356d,_0x2fcc98-0x6d,_0x3be552,_0x3a6181-0x2cc);}for(const [_0x42a78b,_0x3de7eb]of Object[_0x2ecee0(_0x581e0e._0x3979c1,_0x581e0e._0x1a4f2f,0x4d5,_0x581e0e._0x10ca0d)](_0x2e693d)){const _0x54e5c1=toSupportedSchema(_0x3de7eb);if(_0x54e5c1)_0x5376b0[_0x42a78b]=_0x54e5c1;}const _0x2dd242=Array['isArray'](_0x675708[_0x3b4f45(_0x581e0e._0x1cbf4b,0x37c,0x387,_0x581e0e._0x3b0d94)])?_0x675708[_0x2ecee0(_0x581e0e._0x4d2363,_0x581e0e._0x83d093,_0x581e0e._0x31da14,0x40e)][_0x3b4f45(0x2d9,_0x581e0e._0x5a0e56,0x33a,_0x581e0e._0x432774)](_0x54065d=>typeof _0x54065d===_0x2ecee0(0x455,0x407,0x41f,0x3fb)):void 0x0;return _0x2dd242?.[_0x3b4f45(_0x581e0e._0x3cf299,0x2a4,_0x581e0e._0x58b8fa,_0x581e0e._0x3bb66d)]?{'type':_0x3b4f45(_0x581e0e._0x108321,_0x581e0e._0x2aa601,0x1ee,0x22f),'properties':_0x5376b0,'required':_0x2dd242}:{'type':_0x3b4f45(0x29c,0x24d,0x369,0x347),'properties':_0x5376b0};}function isJsonObject(_0x1f7750){return typeof _0x1f7750==='object'&&_0x1f7750!==null&&!Array['isArray'](_0x1f7750);}function _0x255f51(_0x1052c4,_0x14a6b0,_0x5ffb55,_0x1ab3fc){const _0x50d681={_0x40ff3a:0x374};return _0x4100(_0x1052c4-_0x50d681._0x40ff3a,_0x5ffb55);}function formatMcpContent(_0x51196a){const _0x3c3bfd={_0x1079ba:0x4f,_0x1b6d16:0x17e,_0x4b0377:0x121,_0x13ca08:0xeb,_0x34e727:0x10d,_0x51418e:0x179,_0x19703e:0x152,_0xc205de:0x3a,_0x3ecb6a:0x730,_0x3763e1:0x69a,_0x3890b4:0x745},_0x54e2d4={_0x3d9493:0x5cc,_0x259c1a:0x802,_0x242d02:0x628,_0x18bd83:0x4fd,_0x113646:0x7f7,_0x47cb61:0x70f,_0x2c3c56:0x79d,_0x201bdf:0x6a3,_0xe86dc9:0x7c1,_0x1cbfee:0x696},_0x216698={_0x1d0afb:0xc3},_0x3f27b8=Array[_0x41015e(-_0x3c3bfd._0x1079ba,-_0x3c3bfd._0x1b6d16,-0x274,-0x50)](_0x51196a['content'])?_0x51196a[_0x12c2cb(0x491,0x5b8,0x56e,0x4be)]:[];function _0x12c2cb(_0x3eb243,_0x3da049,_0x2eaa66,_0x16ff25){return _0x255f51(_0x2eaa66- -_0x216698._0x1d0afb,_0x3da049-0xdc,_0x3da049,_0x16ff25-0x12b);}const _0x3cb6a4=_0x3f27b8['map'](_0x55992e=>{const _0x45d355={_0x1d5afe:0x9f},_0x125876={_0x14079b:0x68};if(!isObject(_0x55992e))return'';if(_0x55992e['type']===_0x9e60f4(_0x54e2d4._0x3d9493,0x6e6,0x640,_0x54e2d4._0x259c1a)&&typeof _0x55992e[_0x2df105(_0x54e2d4._0x242d02,0x5dc,0x606,_0x54e2d4._0x18bd83)]===_0x9e60f4(_0x54e2d4._0x113646,_0x54e2d4._0x47cb61,0x6c6,0x5f1))return _0x55992e['text'];function _0x2df105(_0x3a0c36,_0x3cbcd5,_0xc4ac28,_0x308879){return _0x41015e(_0x3a0c36-0x1e8,_0x3cbcd5-0x621,_0xc4ac28,_0x308879-_0x125876._0x14079b);}function _0x9e60f4(_0x5759e0,_0x3b0f22,_0x6026f4,_0x40824e){return _0x12c2cb(_0x5759e0-_0x45d355._0x1d5afe,_0x40824e,_0x3b0f22-0x113,_0x40824e-0x12f);}return JSON[_0x2df105(_0x54e2d4._0x2c3c56,_0x54e2d4._0x201bdf,_0x54e2d4._0xe86dc9,_0x54e2d4._0x1cbfee)](_0x55992e);})['filter'](_0x31efe7=>_0x31efe7['length']>0x0)[_0x41015e(-_0x3c3bfd._0x4b0377,-_0x3c3bfd._0x13ca08,-_0x3c3bfd._0x34e727,-_0x3c3bfd._0x51418e)]('\x0a');if(_0x3cb6a4[_0x41015e(0xdf,-0x27,-_0x3c3bfd._0x19703e,-_0x3c3bfd._0xc205de)]>0x0)return _0x3cb6a4;function _0x41015e(_0x240564,_0x3845f4,_0x576354,_0x4f54a1){return _0x173565(_0x240564-0x94,_0x3845f4-0x153,_0x576354,_0x3845f4- -0x16f);}return JSON[_0x12c2cb(_0x3c3bfd._0x3ecb6a,0x60f,_0x3c3bfd._0x3763e1,_0x3c3bfd._0x3890b4)](_0x51196a,null,0x2);}function createMcpTool(_0x15d53d){const _0x25956b={_0xdbaabd:0x69c,_0x183952:0x424,_0x3eddff:0x290,_0x1eb52b:0x35a,_0x528932:0x5ce,_0x241929:0x7a6,_0x112135:0x5df,_0x17824b:0x60d,_0x5a57df:0x5bc,_0x1c40f0:0x6e2,_0x3e0eb2:0x435,_0x169b25:0x43e,_0x1c1780:0x5d6,_0x39fbda:0x612,_0x70f032:0x6d7,_0xbfa4f0:0x637,_0x3d6b89:0x4dc},_0x500b34={_0x979f4a:0x310,_0xdda07b:0x34f,_0x8ba70b:0x30a,_0x410f92:0x1ee,_0x5bff4f:0x18e,_0x277b2c:0x318,_0x493882:0x2cf,_0x4ca3f7:0x29d,_0x400987:0x41b,_0x42d6e7:0x487,_0x410458:0x3f2,_0x25f970:0x353,_0x53c556:0x2c2,_0x31f9d3:0x351,_0xf8be80:0x35c,_0x4e82cb:0x4c2,_0x407000:0x2ac,_0x2e5ce5:0x21f,_0x276651:0x28b,_0x537089:0x179,_0x56c6c1:0x23a,_0x35760a:0x2ea},_0x4deafe={_0x4ea096:0x153,_0xc72387:0xcf},_0x34ae64={_0x14da38:0x11a,_0x430864:0x367},_0x12544c={_0x100c6d:0x69,_0xd2f993:0x1a7},_0x3e3663={_0x413050:0x173,_0x7262a9:0x2aa};function _0xa3a087(_0x2609d5,_0x2d30ec,_0x222660,_0x17b3b3){return _0x173565(_0x2609d5-0xd5,_0x2d30ec-_0x3e3663._0x413050,_0x2609d5,_0x17b3b3-_0x3e3663._0x7262a9);}function _0x3bdb70(_0x1e55f8,_0x2d0fb1,_0x4e92d4,_0x164b28){return _0x255f51(_0x2d0fb1- -_0x12544c._0x100c6d,_0x2d0fb1-_0x12544c._0xd2f993,_0x4e92d4,_0x164b28-0x106);}const _0x3cfbba=createMcpToolName(_0x15d53d[_0x3bdb70(0x6ec,0x6fd,0x800,_0x25956b._0xdbaabd)],_0x15d53d[_0xa3a087(0x449,_0x25956b._0x183952,_0x25956b._0x3eddff,_0x25956b._0x1eb52b)]['name']);return defineTool({'name':_0x3cfbba,'description':_0x15d53d['tool'][_0x3bdb70(_0x25956b._0x528932,0x6e6,_0x25956b._0x241929,_0x25956b._0x112135)]??_0xa3a087(0x321,0x4c1,0x31e,0x3d8)+_0x15d53d[_0x3bdb70(_0x25956b._0x17824b,0x5b3,_0x25956b._0x5a57df,_0x25956b._0x1c40f0)]['name']+_0xa3a087(0x401,_0x25956b._0x3e0eb2,_0x25956b._0x169b25,0x4c3)+_0x15d53d[_0x3bdb70(_0x25956b._0x1c1780,0x6fd,_0x25956b._0x39fbda,_0x25956b._0x70f032)],'inputSchema':toNuvinToolSchema(_0x15d53d[_0x3bdb70(_0x25956b._0xbfa4f0,0x5b3,0x54b,_0x25956b._0x3d6b89)]['inputSchema']),async *'execute'(_0x4c355f){const _0x2e0693=await _0x15d53d[_0x3691bb(_0x500b34._0x979f4a,_0x500b34._0xdda07b,0x243,_0x500b34._0x8ba70b)][_0x178bce(0x113,0x28a,_0x500b34._0x410f92,_0x500b34._0x5bff4f)]({'name':_0x15d53d[_0x178bce(_0x500b34._0x277b2c,_0x500b34._0x493882,0x28b,_0x500b34._0x4ca3f7)]['name'],'arguments':isJsonObject(_0x4c355f)?_0x4c355f:{}});function _0x3691bb(_0xb5a8ee,_0x18b929,_0x49f124,_0x4cb13e){return _0x3bdb70(_0xb5a8ee-_0x34ae64._0x14da38,_0x18b929- -_0x34ae64._0x430864,_0x4cb13e,_0x4cb13e-0x180);}if(_0x2e0693[_0x178bce(0x50b,0x3bb,_0x500b34._0x400987,0x2ec)])throw new ToolExecutionError(formatMcpContent(_0x2e0693),{'serverName':_0x15d53d[_0x3691bb(_0x500b34._0x42d6e7,0x396,_0x500b34._0x410458,0x27e)],'toolName':_0x15d53d[_0x3691bb(_0x500b34._0x25f970,0x24c,_0x500b34._0x53c556,_0x500b34._0x31f9d3)][_0x3691bb(0x265,0x342,0x314,0x432)]});yield createToolOutput(formatMcpContent(_0x2e0693),{'serverName':_0x15d53d[_0x178bce(_0x500b34._0xf8be80,0x428,0x3d5,_0x500b34._0x4e82cb)],'toolName':_0x15d53d[_0x178bce(_0x500b34._0x407000,_0x500b34._0x2e5ce5,_0x500b34._0x276651,_0x500b34._0x537089)][_0x3691bb(_0x500b34._0x56c6c1,0x342,_0x500b34._0x35760a,0x3b2)],'result':_0x2e0693});function _0x178bce(_0x49d425,_0x2d04fc,_0x1e990e,_0xb091fb){return _0xa3a087(_0x2d04fc,_0x2d04fc-_0x4deafe._0x4ea096,_0x1e990e-0x1c9,_0x1e990e- -_0x4deafe._0xc72387);}return void 0x0;}});}function resolvePrefix(_0x5d35ce,_0x13bac7){const _0x5096c2={_0xb7e2b8:0x167,_0x48305e:0x202,_0x446dac:0x2c8};function _0x26c074(_0x110aa3,_0x98fbe8,_0x1edb2d,_0x2140c6){return _0x255f51(_0x1edb2d- -0x74d,_0x98fbe8-0x17f,_0x2140c6,_0x2140c6-0x13c);}return _0x13bac7[_0x26c074(-_0x5096c2._0xb7e2b8,-_0x5096c2._0x48305e,-0x1ad,-_0x5096c2._0x446dac)]??_0x5d35ce;}function buildMcpHttpHeaders(_0x28d583){const _0x47ff2d={_0x436bc3:0x12b,_0x5ecbfc:0x2da,_0x121fae:0x39c,_0x5cb6c5:0x3ca,_0x1f7fb5:0x3a4,_0x58f1ce:0x371,_0x96da70:0x319,_0x49cdab:0x471,_0x2efdc4:0x548,_0x139c89:0x547,_0x10d68d:0x1d6,_0x29fc44:0x104,_0x19b370:0x129,_0x1b6e9:0x3fe,_0x30037b:0x4cf,_0x26e920:0x419,_0x5b5656:0x378},_0x9f12e7={_0x69b45b:0x145};function _0x2b3c31(_0x3a849f,_0x374ed2,_0x2c1a84,_0xd30e1){return _0x255f51(_0x374ed2- -0x5b4,_0x374ed2-0xaa,_0x2c1a84,_0xd30e1-0xd4);}const _0x2dcf2c={..._0x28d583[_0x2b3c31(_0x47ff2d._0x436bc3,0x9c,-0x66,-0x4e)]??{}};function _0x2fab3a(_0x15fda3,_0x172593,_0x567722,_0x3a3d89){return _0x255f51(_0x172593- -0x2bb,_0x172593-_0x9f12e7._0x69b45b,_0x15fda3,_0x3a3d89-0x1);}return _0x28d583[_0x2fab3a(0x3fd,_0x47ff2d._0x5ecbfc,_0x47ff2d._0x121fae,_0x47ff2d._0x5cb6c5)]?.[_0x2fab3a(_0x47ff2d._0x1f7fb5,_0x47ff2d._0x58f1ce,0x48d,_0x47ff2d._0x96da70)]===_0x2fab3a(0x352,_0x47ff2d._0x49cdab,_0x47ff2d._0x2efdc4,_0x47ff2d._0x139c89)&&_0x28d583['auth'][_0x2b3c31(0x229,0x1e3,_0x47ff2d._0x10d68d,0x1bb)]&&_0x2dcf2c[_0x2b3c31(_0x47ff2d._0x29fc44,_0x47ff2d._0x10d68d,_0x47ff2d._0x19b370,0x1ed)]===void 0x0&&(_0x2dcf2c['Authorization']=_0x2fab3a(0x2f6,_0x47ff2d._0x1b6e9,0x4c7,_0x47ff2d._0x30037b)+_0x28d583['auth']['token']),Object['keys'](_0x2dcf2c)[_0x2fab3a(_0x47ff2d._0x26e920,0x3f9,_0x47ff2d._0x5b5656,0x3c5)]>0x0?_0x2dcf2c:void 0x0;}function getErrorMessage(_0xe9a639){const _0x1df3d7={_0x2cc510:0xc0,_0x44f129:0x189},_0xd86a0a={_0x4f6afd:0x1c3};function _0x43f5b1(_0x457fe9,_0xefd2f3,_0xb09c39,_0x31c420){return _0x255f51(_0x457fe9- -0x5c3,_0xefd2f3-_0xd86a0a._0x4f6afd,_0xefd2f3,_0x31c420-0x18d);}return _0xe9a639 instanceof Error?_0xe9a639[_0x43f5b1(0x13c,_0x1df3d7._0x2cc510,_0x1df3d7._0x44f129,0x1f2)]:String(_0xe9a639);}function isUnauthorizedError(_0x2ad5de){const _0x4b07e4={_0x2acda:0x663,_0x4b62a9:0x4ee,_0x34a246:0x6b5,_0x96e9f3:0x6bc,_0x41b155:0x5ce},_0x3588bb={_0x54bb9e:0xae,_0x3d8dfd:0x10d},_0x4fea9b={_0x1ad94b:0x48f,_0x826f7e:0x3,_0x3f3478:0x82};function _0xa21a1f(_0x180414,_0x45910a,_0x1afe19,_0x4f2a6f){return _0x255f51(_0x1afe19- -_0x4fea9b._0x1ad94b,_0x45910a-_0x4fea9b._0x826f7e,_0x4f2a6f,_0x4f2a6f-_0x4fea9b._0x3f3478);}function _0x64e932(_0x14ab27,_0x2b8907,_0x2ed45d,_0x948edf){return _0x255f51(_0x2b8907- -_0x3588bb._0x54bb9e,_0x2b8907-_0x3588bb._0x3d8dfd,_0x2ed45d,_0x948edf-0x71);}return _0x2ad5de instanceof Error&&_0x2ad5de[_0x64e932(_0x4b07e4._0x2acda,0x58a,0x4f4,_0x4b07e4._0x4b62a9)]['name']===_0x64e932(0x5ec,_0x4b07e4._0x34a246,_0x4b07e4._0x96e9f3,_0x4b07e4._0x41b155);}async function connectMcpServer(_0x51f0a8,_0x3b1ef7,_0x315bd3){const _0x451a9b={_0x287255:0xb6,_0x113777:0x2d,_0x52bd6a:0x15f,_0x431337:0x7b,_0x4b53f0:0x210,_0x19849b:0x2a9,_0x8382ec:0x21e,_0x45772a:0x282,_0x2c8d07:0x149,_0x260fd9:0x113,_0x17a1cb:0x186,_0x802da1:0xaa,_0x2961e4:0x7f,_0x348e0:0x8f,_0x34729e:0x124,_0x247a74:0x1da,_0x59f082:0x33,_0x2eb07b:0x12d,_0x268b4b:0x18b,_0xf18825:0x22f,_0x4209f8:0x1a3,_0x10ba6b:0x5,_0xb87140:0x19e,_0x3f2192:0x13f,_0x4a8e44:0xf2,_0x6146:0x102,_0x5472ba:0x1cb,_0x2bd44d:0x1bb,_0xfd4a7b:0x269,_0x55368b:0x176,_0x2876a2:0xcf,_0x277cf0:0x94,_0x451ce8:0x5b,_0x3d606c:0x1d,_0x321964:0x8b,_0xf03d86:0x119,_0x55978b:0x172,_0x34e744:0x1c4,_0x31ed63:0xe9,_0xe65a2b:0x92,_0x5d396e:0xe2,_0x143666:0x15e,_0x675e73:0x193,_0x1a0b66:0xa,_0x1b8c41:0x61,_0x2d859c:0xde,_0x37b879:0x99,_0x236da0:0x5b,_0x32990d:0x1b,_0x25ba76:0x8a,_0x3b26f2:0x11c,_0x260782:0x8d,_0x24eb21:0xad},_0x39b029={_0x390ade:0x387},_0x90fe49={_0x512a07:0x23f,_0x381490:0x351},_0x5f266b={_0x229947:0x115,_0x2d97cc:0x1be},_0x55e4ca={_0x1c6d66:0x6be,_0x34f839:0x611},_0x2f3e3c={_0x184902:0x156},_0x137f69={_0x31b675:0xe2,_0x1d8329:0x1cc};function _0x4ec184(_0x4b4787,_0x2d36c0,_0xb33087,_0x1f02b9){return _0x173565(_0x4b4787-0x12e,_0x2d36c0-_0x137f69._0x31b675,_0x2d36c0,_0xb33087- -_0x137f69._0x1d8329);}const _0x4a7c7f=new Client({'name':_0x4ec184(-_0x451a9b._0x287255,-0x57,0x28,-_0x451a9b._0x113777),'version':_0x1dcb67(-0xb3,-_0x451a9b._0x52bd6a,-0x42,-0x47)});function _0x1dcb67(_0x1a199d,_0x598074,_0x36724b,_0x267463){return _0x173565(_0x1a199d-0xa9,_0x598074-_0x2f3e3c._0x184902,_0x267463,_0x36724b- -0x80);}if(_0x3b1ef7['transport']===_0x4ec184(_0x451a9b._0x431337,-0xdc,-0x74,0xb1)||_0x3b1ef7[_0x1dcb67(0x21d,0x4f,0x10e,_0x451a9b._0x4b53f0)]){if(!_0x3b1ef7['url'])throw new Error(_0x4ec184(-_0x451a9b._0x19849b,-_0x451a9b._0x8382ec,-0x1de,-_0x451a9b._0x45772a)+_0x51f0a8+_0x1dcb67(0x4d,0x113,0x68,0x6f));if(_0x3b1ef7[_0x1dcb67(-0x183,-_0x451a9b._0x2c8d07,-0x57,0x4c)]?.[_0x4ec184(-_0x451a9b._0x260fd9,-0x127,-0x10c,-0x224)]===_0x1dcb67(-_0x451a9b._0x17a1cb,-_0x451a9b._0x802da1,-_0x451a9b._0x2961e4,-0xdc)&&!_0x315bd3?.[_0x1dcb67(-_0x451a9b._0x348e0,-_0x451a9b._0x34729e,-0x7f,-0x6c)])throw new Error(_0x4ec184(-0x30d,-0x1ca,-0x1de,-_0x451a9b._0x247a74)+_0x51f0a8+_0x1dcb67(0x12c,-_0x451a9b._0x59f082,0x9a,_0x451a9b._0x2eb07b));const _0x18e4f6=buildMcpHttpHeaders(_0x3b1ef7),_0x1121cf=_0x3b1ef7[_0x4ec184(-_0x451a9b._0x268b4b,-_0x451a9b._0xf18825,-_0x451a9b._0x4209f8,-0x100)]?.[_0x4ec184(-0xa6,-_0x451a9b._0x10ba6b,-0x10c,-_0x451a9b._0xb87140)]===_0x1dcb67(0x8c,-_0x451a9b._0x3f2192,-0x7f,-0xd5)&&_0x315bd3?.['oauth']?createMcpOAuthProvider({'serverName':_0x51f0a8,'callbackUrl':_0x315bd3[_0x1dcb67(-_0x451a9b._0x4a8e44,-0x110,-0x7f,0x9d)]['callbackUrl'],'storageDir':_0x315bd3[_0x4ec184(-0x2cd,-_0x451a9b._0x6146,-_0x451a9b._0x5472ba,-_0x451a9b._0x2bd44d)][_0x4ec184(-_0x451a9b._0xfd4a7b,-0x51,-_0x451a9b._0x55368b,-_0x451a9b._0x2876a2)],'config':_0x3b1ef7[_0x1dcb67(_0x451a9b._0x277cf0,-_0x451a9b._0x451ce8,-0x57,_0x451a9b._0x3d606c)],'onRedirect':_0x2f3075=>_0x315bd3[_0x1dcb67(-0x55,0x75,-0x7f,0xad)]?.[_0x4ec184(0x58,0x15,0x41,0xd3)](_0x51f0a8,_0x2f3075)}):void 0x0,_0x3ae707=new StreamableHTTPClientTransport(new URL(_0x3b1ef7['url']),{'authProvider':_0x1121cf,'requestInit':_0x18e4f6?{'headers':_0x18e4f6}:void 0x0});await _0x4a7c7f[_0x1dcb67(-_0x451a9b._0x321964,-_0x451a9b._0xf03d86,-0x8d,-0x18e)](_0x3ae707);}else{if(!_0x3b1ef7[_0x1dcb67(_0x451a9b._0x55978b,-0x3a,0xb0,_0x451a9b._0x34e744)])throw new Error(_0x1dcb67(-0x18,-_0x451a9b._0x31ed63,-_0x451a9b._0xe65a2b,-0x171)+_0x51f0a8+_0x1dcb67(_0x451a9b._0x5d396e,_0x451a9b._0x143666,_0x451a9b._0x675e73,0x28d));const _0xf1e163=new StdioClientTransport({'command':_0x3b1ef7[_0x4ec184(-0x7b,0x7,-0x9c,_0x451a9b._0x1a0b66)],'args':_0x3b1ef7[_0x4ec184(-_0x451a9b._0x1b8c41,-0xc3,-_0x451a9b._0x2d859c,-_0x451a9b._0x37b879)]??[],'env':_0x3b1ef7[_0x1dcb67(-_0x451a9b._0x236da0,0x9f,_0x451a9b._0x32990d,-_0x451a9b._0x25ba76)]});await _0x4a7c7f[_0x1dcb67(-0x97,-_0x451a9b._0x3b26f2,-_0x451a9b._0x260782,-_0x451a9b._0x24eb21)](_0xf1e163);}return{async 'listTools'(){const _0x31fe85={_0x270a46:0x68a,_0x198831:0x1bc};function _0x47828c(_0x56d1a1,_0x454f19,_0x264a6b,_0x53ef97){return _0x4ec184(_0x56d1a1-0x1d9,_0x53ef97,_0x454f19-_0x31fe85._0x270a46,_0x53ef97-_0x31fe85._0x198831);}return await _0x4a7c7f[_0x47828c(0x7ac,_0x55e4ca._0x1c6d66,0x5c4,_0x55e4ca._0x34f839)]();},async 'callTool'(_0x1a5077){const _0x578485={_0x5b00b9:0x1ad,_0xc4b881:0x46f};function _0x4b3593(_0x51fb2d,_0x5e926a,_0x416c06,_0x5a51e5){return _0x1dcb67(_0x51fb2d-_0x578485._0x5b00b9,_0x5e926a-0x18c,_0x51fb2d-_0x578485._0xc4b881,_0x416c06);}function _0x44de63(_0x309656,_0xca90a2,_0x33c28e,_0x214be1){return _0x1dcb67(_0x309656-_0x5f266b._0x229947,_0xca90a2-_0x5f266b._0x2d97cc,_0x33c28e-0x1d6,_0x309656);}return await _0x4a7c7f[_0x4b3593(0x52c,0x5ba,0x483,0x586)]({'method':_0x44de63(_0x90fe49._0x512a07,0x409,0x32d,_0x90fe49._0x381490),'params':_0x1a5077},CallToolResultSchema);},async 'close'(){function _0x15e93c(_0x5a0365,_0x2db814,_0x4e7922,_0x55bbbb){return _0x4ec184(_0x5a0365-0x1e3,_0x2db814,_0x4e7922-0x39b,_0x55bbbb-0x1b5);}await _0x4a7c7f[_0x15e93c(0x388,0x30d,_0x39b029._0x390ade,0x3c7)]();}};}async function createMcpToolsFromServers(_0x1bb532){const _0x15a626={_0x446c1e:0x66,_0x569df4:0x62,_0x35320b:0x1f,_0x1c32a9:0x84,_0x2e82d9:0x262,_0x47fb61:0x249,_0x53f726:0x2d4,_0x42e5bf:0x384,_0xa61fd0:0x2e7,_0x2891f3:0x255,_0x1f2807:0x3d5,_0x559edf:0x379,_0x3cb65b:0x367,_0x1d73e3:0x329,_0x31aff0:0x3ae,_0x42eaf8:0x102,_0x440ca8:0x299,_0xf1401f:0x2e9},_0x50a6ec={_0x41c4c8:0x726,_0x2fae05:0x60a,_0xd06230:0x5fe},_0x330558=_0x1bb532[_0x4e5a1f(_0x15a626._0x446c1e,_0x15a626._0x569df4,_0x15a626._0x35320b,_0x15a626._0x1c32a9)]??connectMcpServer,_0xa94939=[],_0x10161f={};function _0x28028c(_0x213f8f,_0x43e501,_0x593509,_0x305aed){return _0x173565(_0x213f8f-0x9b,_0x43e501-0xd2,_0x305aed,_0x43e501-0x150);}const _0x1c9c55=[];for(const [_0x4e24bf,_0x47265f]of Object[_0x28028c(0x287,0x359,0x38b,_0x15a626._0x2e82d9)](_0x1bb532[_0x28028c(_0x15a626._0x47fb61,0x27f,0x2d8,0x320)]??{})){if(_0x47265f[_0x28028c(_0x15a626._0x53f726,0x275,0x3a4,_0x15a626._0x42e5bf)]===![]){_0x10161f[_0x4e24bf]={'status':'disabled'};continue;}try{const _0x509913=await _0x330558(_0x4e24bf,_0x47265f,_0x1bb532[_0x28028c(_0x15a626._0xa61fd0,_0x15a626._0x2891f3,0x183,0x30a)]);_0xa94939['push'](_0x509913);const _0x416f41=await _0x509913['listTools']();let _0x4f4483=0x0;for(const _0x391861 of _0x416f41['tools']){const _0x29cd1a=_0x1bb532[_0x28028c(_0x15a626._0x1f2807,_0x15a626._0x559edf,_0x15a626._0x3cb65b,_0x15a626._0x1d73e3)]?.[_0x4e24bf]?.[_0x391861['name']];if(_0x29cd1a===![])continue;_0x4f4483+=0x1,_0x1c9c55[_0x28028c(0x30f,0x294,0x359,_0x15a626._0x31aff0)](createMcpTool({'serverName':resolvePrefix(_0x4e24bf,_0x47265f),'tool':_0x391861,'client':_0x509913}));}_0x10161f[_0x4e24bf]={'status':_0x4e5a1f(_0x15a626._0x42eaf8,0x21,0x1e5,0x122),'toolCount':_0x4f4483};}catch(_0x13e29a){_0x10161f[_0x4e24bf]=isUnauthorizedError(_0x13e29a)?{'status':_0x28028c(0x368,_0x15a626._0x440ca8,0x3ab,_0x15a626._0xf1401f),'message':getErrorMessage(_0x13e29a)}:{'status':_0x4e5a1f(0x114,0x187,0x2a,0x1f4),'message':getErrorMessage(_0x13e29a)};}}function _0x4e5a1f(_0x355e24,_0x389594,_0xd4f53f,_0x41dd9e){return _0x173565(_0x355e24-0x120,_0x389594-0x7a,_0x41dd9e,_0x355e24-0x73);}return{'tools':_0x1c9c55,'servers':_0x10161f,async 'close'(){const _0x2a00c6={_0x43e247:0x41e,_0x12f077:0x9,_0x3e39bb:0x1b3},_0x2f9643={_0x4222d0:0x47f};function _0x521fa8(_0x27cf90,_0x5e2802,_0x511c50,_0x28d878){return _0x28028c(_0x27cf90-0x114,_0x511c50-_0x2f9643._0x4222d0,_0x511c50-0x1be,_0x27cf90);}function _0x417640(_0x142f00,_0xd9c431,_0x39e551,_0x5dcda1){return _0x4e5a1f(_0xd9c431-_0x2a00c6._0x43e247,_0xd9c431-_0x2a00c6._0x12f077,_0x39e551-_0x2a00c6._0x3e39bb,_0x39e551);}await Promise[_0x521fa8(_0x50a6ec._0x41c4c8,0x52a,_0x50a6ec._0x2fae05,_0x50a6ec._0xd06230)](_0xa94939['map'](_0x162b39=>_0x162b39[_0x417640(0x6fe,0x649,0x66b,0x6fd)]()));}};}function getCommand(_0x12723d){const _0x8ef413={_0x3e6521:0x107,_0x83518c:0x3b7,_0x2b7919:0x66,_0x31c96a:0x6b},_0x2a5f68={_0x404a6d:0x12b},_0x2f9c1e={_0x24156a:0x757,_0x193f5f:0x1d5};function _0x4df951(_0x455849,_0x3a6a7d,_0x74eeac,_0x3ab8dd){return _0x255f51(_0x455849- -_0x2f9c1e._0x24156a,_0x3a6a7d-0x1b8,_0x3a6a7d,_0x3ab8dd-_0x2f9c1e._0x193f5f);}function _0x227d85(_0x298fb4,_0x266f3e,_0x3780d9,_0x3fa3eb){return _0x255f51(_0x298fb4- -0x26f,_0x266f3e-0x5f,_0x266f3e,_0x3fa3eb-_0x2a5f68._0x404a6d);}if(_0x12723d&&typeof _0x12723d===_0x4df951(-0xfa,-0x149,-0x19e,-_0x8ef413._0x3e6521)&&!Array['isArray'](_0x12723d)&&typeof _0x12723d[_0x227d85(0x42d,0x420,0x47a,_0x8ef413._0x83518c)]==='string')return _0x12723d[_0x4df951(-0xbb,-0x1d0,_0x8ef413._0x2b7919,_0x8ef413._0x31c96a)];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x255f51(0x59b,0x4f6,0x54f,0x5ae),_0x255f51(0x57b,0x4e8,0x4f7,0x540),_0x255f51(0x74a,0x7eb,0x785,0x753),_0x255f51(0x5ad,0x525,0x691,0x6bc),_0x173565(0xb1,0x12e,0x1e6,0x123),'src/formats/message-format.ts',_0x173565(-0xdb,0xec,0x23,0x2a),_0x173565(0x2b6,0x251,0x293,0x1d9),_0x173565(0x1fb,0x246,0x1ba,0x138),_0x255f51(0x720,0x6b8,0x6d8,0x80d),'src/formats/provider-adapters.ts',_0x255f51(0x60f,0x6aa,0x73f,0x680),'src/shared/types.ts','src/agent/agent.test.ts',_0x173565(0xef,0xf5,-0x10d,0x0),_0x173565(0x75,-0x92,0x2e,0x21),_0x255f51(0x5f1,0x55b,0x5d8,0x620)][_0x255f51(0x5f0,0x527,0x568,0x540)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x255f51(0x721,0x668,0x79e,0x7fa),'description':_0x173565(-0xa8,0x14,0x4b,0x80),'input_schema':{'type':_0x173565(-0x13,0x15f,0x2c,0xf1),'properties':{'command':{'type':_0x255f51(0x6bf,0x6d2,0x640,0x651)}},'required':[_0x173565(0x28,0x39,0x18c,0x130)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x40dcad){return{'output':_0x40dcad,'structured':{'value':_0x40dcad}};}function createUnknownToolResult(_0x9cd58f){const _0x269c9a={_0x442875:0x1ba},_0x31fd8e={_0x44fdac:0x8a,_0x590e3f:0xe2};function _0x1f80d3(_0x29f290,_0x23140a,_0x283c07,_0x2a88dc){return _0x173565(_0x29f290-_0x31fd8e._0x44fdac,_0x23140a-0x101,_0x2a88dc,_0x23140a- -_0x31fd8e._0x590e3f);}return{'callId':_0x9cd58f['id'],'toolName':_0x9cd58f['name'],'status':'error','output':_0x1f80d3(-0x4c,-0x8e,-_0x269c9a._0x442875,-0xd9)+_0x9cd58f['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x3f7122,_0x1264f1){const _0x4fd6ec={_0x694648:0x30c,_0x55c985:0x193},_0x1553b5={_0x56c7cf:0x128};function _0x34eca8(_0x41b343,_0x4ae215,_0x763518,_0x43c96a){return _0x173565(_0x41b343-_0x1553b5._0x56c7cf,_0x4ae215-0x1d8,_0x41b343,_0x763518- -0x159);}function _0x1bf958(_0x1e4df9,_0x7e4e4c,_0x5be588,_0x3dbf2a){return _0x173565(_0x1e4df9-0x130,_0x7e4e4c-0x46,_0x5be588,_0x1e4df9-0xd0);}return{'callId':_0x3f7122['id'],'toolName':_0x3f7122[_0x1bf958(0x276,_0x4fd6ec._0x694648,0x1e4,_0x4fd6ec._0x55c985)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x3f7122[_0x34eca8(-0x23f,-0xf1,-0x164,-0x8d)]),'exitCode':0x0},'chunks':[_0x1264f1],'meta':createMeta()};}function createMockToolRuntime(){const _0x4987cf={_0x4bc775:0x163,_0x4d609b:0x263,_0x2df92e:0x23f,_0x219010:0x2f,_0x2d0236:0x58,_0x2bb21d:0x133},_0x20a9fa={_0x41a1f9:0x50c,_0x3d1dc3:0x492,_0x1dcc0c:0x4f1,_0x3a86c2:0x3e1,_0x3b6115:0x5f2},_0x1d6aaf=async(_0x9cd0e7,_0x28b6a1)=>{function _0x2212c3(_0x444ead,_0x2050b0,_0x1b0d88,_0x1069c9){return _0x4100(_0x1069c9-0x153,_0x444ead);}function _0x5a779a(_0xdf1289,_0x1501c8,_0x53f3fc,_0x4a1322){return _0x4100(_0x4a1322-0x3a2,_0x1501c8);}if(_0x9cd0e7[_0x2212c3(_0x20a9fa._0x41a1f9,0x3c3,_0x20a9fa._0x3d1dc3,_0x20a9fa._0x1dcc0c)]!==_0x2212c3(_0x20a9fa._0x3a86c2,_0x20a9fa._0x3b6115,0x5ed,0x500))return createUnknownToolResult(_0x9cd0e7);const _0x4ef84a=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x9cd0e7,_0x4ef84a);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0xf87abe,_0x43e4f2){const _0x535563={_0x24987e:0xd0};function _0x1c6890(_0x398c1e,_0x1cae4a,_0x2a72fb,_0x10ff8d){return _0x4100(_0x1cae4a- -0x292,_0x398c1e);}function _0x4740b0(_0xdba1bd,_0x48133a,_0x58540b,_0x426af6){return _0x4100(_0xdba1bd- -_0x535563._0x24987e,_0x58540b);}return await Promise[_0x4740b0(_0x4987cf._0x4bc775,_0x4987cf._0x4d609b,_0x4987cf._0x2df92e,0x52)](_0xf87abe[_0x1c6890(-_0x4987cf._0x219010,-_0x4987cf._0x2d0236,-_0x4987cf._0x2bb21d,-0xaf)](async _0x54398a=>{return await _0x1d6aaf(_0x54398a,_0x43e4f2);}));},async 'execute'(_0x31ef74,_0x301391){return await _0x1d6aaf(_0x31ef74,_0x301391);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x1283ab={_0x299fbb:0x131,_0x294458:0x1c8,_0x305da9:0x175};delegatedRunCounter+=0x1;function _0x476119(_0x625c37,_0x18899f,_0x4d6242,_0x672790){return _0x173565(_0x625c37-0x1c3,_0x18899f-0x66,_0x18899f,_0x4d6242-0x89);}return _0x476119(_0x1283ab._0x299fbb,_0x1283ab._0x294458,_0x1283ab._0x305da9,0xbf)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0xa03dad,_0x4084a6){return typeof _0xa03dad==='function'?await _0xa03dad(_0x4084a6):_0xa03dad;}function getDelegatedAgentDefinition(_0xf684cc,_0xf7de){return _0xf684cc['agents']?.[_0xf7de];}function createRunSummary(_0x160928){const _0x5c8adb={_0x4ca539:0x37c,_0x3846cd:0x3a7,_0x168d14:0x2e9,_0x2a51db:0x35a,_0x52a4f7:0x401,_0xfc49f:0x391,_0x1df1e4:0x36c,_0x3c200b:0x2ee,_0x597cba:0x1fc,_0x2a6a48:0x238,_0x23aa07:0x1f8,_0x557ced:0x18a,_0x3e7202:0x26f,_0x28d238:0x2fe,_0x9f958f:0x352,_0x5ed6f1:0x37c,_0x394189:0x255,_0x1fca81:0x345,_0x36214a:0x22e},_0x256b9a={_0x5e86a4:0x23},_0x3cf154={_0x128ea9:0x139};function _0x280fc6(_0x8f50ae,_0x57d0d6,_0x32b236,_0x379da2){return _0x255f51(_0x379da2- -0x38e,_0x57d0d6-_0x3cf154._0x128ea9,_0x32b236,_0x379da2-0x1e);}function _0x330235(_0x3244d7,_0x3e9a29,_0x2c1f16,_0xc729e0){return _0x255f51(_0x2c1f16- -0x317,_0x3e9a29-_0x256b9a._0x5e86a4,_0xc729e0,_0xc729e0-0x60);}return{'runId':_0x160928[_0x280fc6(0x1d9,0x333,0x161,0x250)],'agentId':_0x160928['agentId'],'sessionId':_0x160928[_0x280fc6(_0x5c8adb._0x4ca539,_0x5c8adb._0x3846cd,_0x5c8adb._0x168d14,0x2b3)],'status':_0x160928['status'],'parentSessionId':_0x160928[_0x330235(_0x5c8adb._0x2a51db,0x3df,0x3ac,_0x5c8adb._0x52a4f7)],..._0x160928[_0x330235(0x26a,_0x5c8adb._0xfc49f,_0x5c8adb._0x1df1e4,_0x5c8adb._0x3c200b)]!==void 0x0?{'originToolCallId':_0x160928['originToolCallId']}:{},..._0x160928[_0x280fc6(_0x5c8adb._0x597cba,_0x5c8adb._0x2a6a48,0x252,_0x5c8adb._0x23aa07)]!==void 0x0?{'errorMessage':_0x160928[_0x330235(_0x5c8adb._0x557ced,0x14f,_0x5c8adb._0x3e7202,0x175)]}:{},..._0x160928[_0x330235(0x474,_0x5c8adb._0x28d238,_0x5c8adb._0x9f958f,_0x5c8adb._0x5ed6f1)]?.['finalMessage']!==void 0x0?{'finalMessageText':getTextFromMessage(_0x160928[_0x280fc6(_0x5c8adb._0x394189,_0x5c8adb._0x1fca81,_0x5c8adb._0x36214a,0x2db)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x343174,_0xb91f85){const _0x3849d0={_0x3271e2:0x13b,_0x7cb7a6:0x142,_0x835465:0x91,_0x2432ab:0x199,_0x5a0039:0x214,_0x2903b2:0x321,_0x1de0ff:0x209,_0x1fcc39:0x201,_0x2ab2e5:0xfe},_0x5e2201={_0x2b715d:0x127,_0x1a46b1:0xc1},_0x45d7a7={_0x1dcebb:0x1bf,_0x369991:0xe7},_0x2e7ab4=createRunSummary(_0x343174),_0x49c96b=_0x2e7ab4[_0x3e8cf0(0x235,_0x3849d0._0x3271e2,_0x3849d0._0x7cb7a6,_0x3849d0._0x835465)];function _0xda2cb4(_0x42e887,_0x4e7246,_0x183244,_0x106924){return _0x255f51(_0x106924- -0xfe,_0x4e7246-_0x45d7a7._0x1dcebb,_0x183244,_0x106924-_0x45d7a7._0x369991);}function _0x3e8cf0(_0x3e555a,_0x1ec71e,_0x53e850,_0x51b8e1){return _0x173565(_0x3e555a-0x1a4,_0x1ec71e-_0x5e2201._0x2b715d,_0x53e850,_0x1ec71e-_0x5e2201._0x1a46b1);}return createToolOutput(typeof _0x49c96b===_0x3e8cf0(_0x3849d0._0x2432ab,_0x3849d0._0x5a0039,0x2b7,_0x3849d0._0x2903b2)&&_0x49c96b[_0x3e8cf0(0x2d9,_0x3849d0._0x1de0ff,_0x3849d0._0x1fcc39,_0x3849d0._0x2ab2e5)]>0x0?_0x49c96b:_0xb91f85,_0x2e7ab4);}function getRunTerminalErrorMessage(_0x14cc79){const _0x231c01={_0x3a9914:0x67b,_0x1ff2a4:0x744,_0x5e1fbe:0x494,_0x1363f5:0x44b,_0x5b69f7:0x627,_0x575546:0x577,_0x4cda98:0x4ce,_0x36216c:0x5ac,_0x272f93:0x4dc,_0x4febc7:0x3d4,_0x3a5f74:0x4e1,_0x124e45:0x51a,_0x471e0f:0x675,_0x55e63f:0x5f4,_0x286a35:0x599},_0x480101={_0x58b55b:0x131,_0x1772ba:0x3d},_0x15a0b2={_0x3dc367:0xe3,_0xde32be:0x4fc};function _0x1ce449(_0x5b79e7,_0x542d4d,_0x454793,_0xdbfe7d){return _0x173565(_0x5b79e7-_0x15a0b2._0x3dc367,_0x542d4d-0xdf,_0x542d4d,_0x454793-_0x15a0b2._0xde32be);}const _0x153936=_0x14cc79?.[_0x44339f(0x74c,_0x231c01._0x3a9914,_0x231c01._0x1ff2a4,0x62b)][_0x44339f(0x44f,0x3f8,0x4a0,_0x231c01._0x5e1fbe)]['at'](-0x1);if(_0x153936?.[_0x44339f(_0x231c01._0x1363f5,_0x231c01._0x5b69f7,_0x231c01._0x575546,0x575)]===_0x44339f(0x58c,_0x231c01._0x4cda98,_0x231c01._0x36216c,_0x231c01._0x272f93)&&_0x153936['output'][_0x1ce449(0x571,_0x231c01._0x4febc7,_0x231c01._0x3a5f74,_0x231c01._0x124e45)]()[_0x1ce449(0x76c,0x6c8,0x644,_0x231c01._0x471e0f)]>0x0)return _0x153936[_0x44339f(0x496,0x484,_0x231c01._0x55e63f,_0x231c01._0x286a35)];function _0x44339f(_0x477352,_0x38512e,_0x3cb644,_0x5cb313){return _0x255f51(_0x5cb313- -_0x480101._0x58b55b,_0x38512e-_0x480101._0x1772ba,_0x3cb644,_0x5cb313-0x1a6);}return void 0x0;}function formatAbortedRunMessage(_0x511ac5,_0x143f85){const _0x4fea2b={_0x52c607:0x7d9,_0x4a9cb2:0x7ad,_0x421e65:0x832,_0x370d8b:0x812,_0xec9b03:0x55d,_0x3c2b87:0x50e,_0x2e0403:0x56e,_0xed7b96:0x487,_0x980436:0x38c,_0x1c54fa:0x458,_0x5c9de7:0x1fd,_0x4d4259:0x2a3,_0x1eb6f5:0x1e0},_0x50e185={_0x4cd04d:0x16b,_0x269f17:0xa6},_0x578b29={_0x543fad:0x328,_0x154bbf:0xc3};function _0x585716(_0x45a0a5,_0x1acdb6,_0x421c14,_0x29c58d){return _0x255f51(_0x421c14- -_0x578b29._0x543fad,_0x1acdb6-0x102,_0x1acdb6,_0x29c58d-_0x578b29._0x154bbf);}const _0x2fd2da=_0x5bffe9(_0x4fea2b._0x52c607,0x835,_0x4fea2b._0x4a9cb2,_0x4fea2b._0x421e65)+_0x511ac5+_0x5bffe9(_0x4fea2b._0x370d8b,0x84a,0x72e,0x7e6);function _0x5bffe9(_0x2ed9d0,_0x47555f,_0x38cc4e,_0x578504){return _0x255f51(_0x38cc4e-0x1d,_0x47555f-_0x50e185._0x4cd04d,_0x47555f,_0x578504-_0x50e185._0x269f17);}if(!_0x143f85||_0x143f85[_0x5bffe9(_0x4fea2b._0xec9b03,_0x4fea2b._0x3c2b87,_0x4fea2b._0x2e0403,_0x4fea2b._0xed7b96)]()[_0x585716(0x349,0x327,_0x4fea2b._0x980436,_0x4fea2b._0x1c54fa)]===0x0||_0x143f85===_0x2fd2da)return _0x2fd2da;return _0x2fd2da+_0x585716(_0x4fea2b._0x5c9de7,0x266,_0x4fea2b._0x4d4259,_0x4fea2b._0x1eb6f5)+_0x143f85;}function createAssignTaskTool(_0x3f04a8){const _0x16d83b={_0xb3e32e:0x17b,_0x387424:0x1fd,_0x595117:0xf9,_0x28805b:0x19c,_0x45ee32:0x24f,_0x30988d:0x12a,_0x3d75df:0x2b1,_0x4ba350:0x484,_0x3179a6:0x480,_0x5a02c9:0x395,_0x3e8a52:0x491,_0x40e060:0x2ba},_0x5634f1={_0x4657be:0x137,_0x53ff3a:0x64,_0x11eebd:0x75,_0x42f0f5:0x199,_0x5369f7:0x90,_0x1d4c55:0x173,_0x221e2f:0x17,_0x2e68dc:0x122,_0x224c1b:0x1a6,_0x19e1a8:0xcc,_0x3ca041:0x24,_0x128385:0x9e,_0x2a9ac8:0x170,_0x2a6380:0x27,_0x50b7b6:0x49,_0x1e525a:0x6f,_0xa7c2cd:0x166,_0x45d386:0x162,_0xdc584:0x83,_0x48974c:0x171,_0x4bcacf:0x17f,_0x137ade:0xf3,_0x1a5639:0xa6,_0x3ace90:0x5a,_0xd31a2b:0x14,_0x919bba:0x94,_0x2ea5a9:0xfe,_0x24d676:0x49,_0x43eed9:0x5e,_0x5749e0:0x1a8,_0x35ee2e:0x270,_0x47b10d:0x253,_0x5ce133:0x145,_0x4c51ae:0x1fe,_0x1544ac:0xda,_0x46e946:0x35,_0xd10ec:0xee,_0x1b1d03:0x9c,_0x584a8b:0x271,_0x10dc62:0x1b0,_0x37a5d0:0x82,_0x3a714b:0x22f,_0x389cd9:0x28d,_0x1f69cf:0x161,_0x1b5cb5:0x9d,_0x24d524:0x220,_0x4c212d:0x77,_0x1a3f42:0xd9,_0xc4b71c:0x69,_0x251136:0x57,_0x4e43ee:0x113,_0x28cf25:0x9d,_0x6f10dc:0x81,_0x352b7b:0x19e,_0x3b4c90:0xe0,_0x165abf:0xbb,_0x5601b8:0x1dc,_0x1a0933:0x115,_0x204933:0x1b2},_0x3e2a97={_0x3ebd4f:0x4d8,_0x107118:0x477,_0x15063e:0x43a,_0xa9e4b1:0x4bd,_0x5a678c:0x42,_0x40d19f:0x1e,_0x1ea806:0x82},_0x251796={_0x7e5192:0xcd,_0x44c250:0x15e};function _0x20e0b0(_0x1e8670,_0x5631f1,_0x3f6a6a,_0x27b513){return _0x255f51(_0x1e8670- -0x1ee,_0x5631f1-0x3d,_0x27b513,_0x27b513-0x25);}function _0x2e4819(_0x1877ac,_0x5acfe3,_0x3283a8,_0x3bb9db){return _0x173565(_0x1877ac-_0x251796._0x7e5192,_0x5acfe3-0x88,_0x3bb9db,_0x3283a8-_0x251796._0x44c250);}return defineTool({'name':_0x2e4819(0x163,_0x16d83b._0xb3e32e,_0x16d83b._0x387424,_0x16d83b._0x595117),'description':_0x20e0b0(0x44d,0x400,0x483,0x563),'inputSchema':{'type':_0x2e4819(_0x16d83b._0x28805b,0x2d5,_0x16d83b._0x45ee32,_0x16d83b._0x30988d),'properties':{'agentId':{'type':_0x2e4819(0x294,0x204,_0x16d83b._0x3d75df,0x229)},'task':{'type':_0x20e0b0(0x4d1,0x5e8,_0x16d83b._0x4ba350,_0x16d83b._0x3179a6)}},'required':[_0x20e0b0(_0x16d83b._0x5a02c9,0x3bc,_0x16d83b._0x3e8a52,0x3e2),_0x2e4819(_0x16d83b._0x40e060,0x409,0x319,0x337)]},async *'execute'(_0x7d2e2f,_0x34bbad){const _0x154fb8={_0x3238:0x404},_0x6b60d5={_0x4324e6:0xee,_0x1860d4:0x19b},_0x10df9d=createDelegatedRunId(),_0x35f8a4={'agentId':_0x7d2e2f[_0x1ed297(0x8a,-0x49,-_0x5634f1._0x4657be,-0x49)],'parentSessionId':_0x34bbad[_0x1ed297(-_0x5634f1._0x53ff3a,0xa8,-0x92,_0x5634f1._0x11eebd)],'runId':_0x10df9d,..._0x34bbad[_0x1ed297(0x1f5,0x1eb,0x262,_0x5634f1._0x42f0f5)]!==void 0x0?{'toolCallId':_0x34bbad[_0x93d4a9(0x218,0xef,_0x5634f1._0x5369f7,_0x5634f1._0x1d4c55)]}:{}};function _0x1ed297(_0x33792f,_0x46d9d8,_0x9bd62,_0x43d37a){return _0x20e0b0(_0x43d37a- -0x3de,_0x46d9d8-_0x6b60d5._0x4324e6,_0x9bd62-_0x6b60d5._0x1860d4,_0x46d9d8);}const _0x22bd4a=getDelegatedAgentDefinition(_0x3f04a8,_0x7d2e2f[_0x1ed297(-_0x5634f1._0x221e2f,-_0x5634f1._0x2e68dc,-0xff,-0x49)]);if(!_0x22bd4a)throw new ToolExecutionError(_0x93d4a9(0x55,0x190,_0x5634f1._0x224c1b,_0x5634f1._0x19e1a8)+_0x7d2e2f[_0x93d4a9(_0x5634f1._0x3ca041,_0x5634f1._0x128385,-_0x5634f1._0x2a9ac8,-0x6f)],{'agentId':_0x7d2e2f[_0x1ed297(-0x26,0x27,_0x5634f1._0x2a6380,-_0x5634f1._0x50b7b6)]});function _0x93d4a9(_0x37cf89,_0x4d4e5b,_0x1dc982,_0x45c1c5){return _0x20e0b0(_0x45c1c5- -_0x154fb8._0x3238,_0x4d4e5b-0x1e8,_0x1dc982-0x103,_0x1dc982);}const _0x466c6f=new Agent(await resolveDelegatedAgentOptions(_0x22bd4a,_0x35f8a4));let _0x4972f1={'runId':_0x10df9d,'agentId':_0x7d2e2f[_0x93d4a9(0xb7,-0x106,-0x44,-_0x5634f1._0x1e525a)],'sessionId':_0x466c6f[_0x1ed297(_0x5634f1._0xa7c2cd,_0x5634f1._0x45d386,-0x14,0x75)],'status':'running','parentSessionId':_0x34bbad['sessionId'],..._0x34bbad[_0x1ed297(_0x5634f1._0xdc584,0x77,0x203,0x199)]!==void 0x0?{'originToolCallId':_0x34bbad[_0x1ed297(0x6e,_0x5634f1._0x48974c,_0x5634f1._0x4bcacf,0x199)]}:{}};const _0x1edba3=new AbortController(),_0x56fd99=addAbortListener(_0x34bbad['signal'],()=>{const _0x4cfe1d={_0x15f979:0x62},_0x3c711b={_0x5c6aa5:0xa9,_0x3fabed:0xb7};function _0x3a02c5(_0x514d1d,_0x207b30,_0x182a99,_0x44f072){return _0x1ed297(_0x514d1d-_0x3c711b._0x5c6aa5,_0x207b30,_0x182a99-_0x3c711b._0x3fabed,_0x514d1d-0x4dc);}function _0x40dbeb(_0x1fe464,_0x5f4b80,_0x208467,_0x142b95){return _0x1ed297(_0x1fe464-_0x4cfe1d._0x15f979,_0x208467,_0x208467-0x1aa,_0x1fe464- -0x16e);}_0x1edba3[_0x3a02c5(_0x3e2a97._0x3ebd4f,_0x3e2a97._0x107118,_0x3e2a97._0x15063e,_0x3e2a97._0xa9e4b1)](_0x34bbad[_0x40dbeb(_0x3e2a97._0x5a678c,-_0x3e2a97._0x40d19f,-0xe9,-_0x3e2a97._0x1ea806)]?.['reason']);});yield createToolOutput(_0x93d4a9(0x141,_0x5634f1._0x137ade,0x147,_0x5634f1._0x1a5639)+_0x4972f1[_0x93d4a9(-0x92,-_0x5634f1._0x3ace90,-0xa1,-_0x5634f1._0xd31a2b)]+'.',{'runId':_0x4972f1['runId'],'agentId':_0x4972f1[_0x1ed297(_0x5634f1._0x919bba,-0xf6,-_0x5634f1._0x2ea5a9,-_0x5634f1._0x24d676)],'sessionId':_0x4972f1[_0x1ed297(0x99,-_0x5634f1._0x43eed9,0x79,0x75)],'status':_0x4972f1[_0x1ed297(_0x5634f1._0x5749e0,0x114,0x10b,0xda)]});try{const _0x258c23=await _0x466c6f[_0x1ed297(0x68,_0x5634f1._0x35ee2e,0x24d,0x18e)](_0x7d2e2f['task'],{'signal':_0x1edba3[_0x1ed297(_0x5634f1._0x47b10d,_0x5634f1._0x5ce133,0x210,0x1b0)]});_0x4972f1={..._0x4972f1,'status':_0x258c23[_0x1ed297(_0x5634f1._0x4c51ae,0x1ad,0x6e,_0x5634f1._0x1544ac)],'result':_0x258c23};if(_0x258c23['status']!==_0x1ed297(-_0x5634f1._0x46e946,0x8b,0x1b,0x10)){const _0x52d60a=getRunTerminalErrorMessage(_0x258c23),_0x2025c3=formatAbortedRunMessage(_0x4972f1['runId'],_0x52d60a);throw new ToolExecutionError(_0x2025c3,{...createRunSummary(_0x4972f1),'aborted':!![],'errorMessage':_0x2025c3});}return createRunSummaryOutput(_0x4972f1,'Agent\x20run\x20'+_0x4972f1['runId']+_0x93d4a9(-0x84,_0x5634f1._0xd10ec,-0x14,_0x5634f1._0x1b1d03));}catch(_0xef592c){if(_0xef592c instanceof ToolExecutionError)throw _0xef592c;if(isAbortError(_0xef592c)||_0x1edba3[_0x1ed297(0x126,0x1e6,_0x5634f1._0x584a8b,_0x5634f1._0x10dc62)][_0x93d4a9(_0x5634f1._0x37a5d0,_0x5634f1._0x3a714b,0xef,0x17d)]||_0x34bbad[_0x1ed297(_0x5634f1._0x389cd9,0x9c,0x12e,_0x5634f1._0x10dc62)][_0x1ed297(_0x5634f1._0x1f69cf,_0x5634f1._0x1b5cb5,_0x5634f1._0x24d524,0x1a3)]){const _0x111904=getRunTerminalErrorMessage(_0x4972f1[_0x93d4a9(-0x45,-0x6e,-0xb1,_0x5634f1._0x4c212d)])??(_0xef592c instanceof Error?_0xef592c['message']:String(_0xef592c)),_0x331c4e=formatAbortedRunMessage(_0x4972f1[_0x1ed297(0xd1,_0x5634f1._0x1a3f42,_0x5634f1._0xc4b71c,0x12)],_0x111904);_0x4972f1={..._0x4972f1,'status':'aborted','errorMessage':_0x331c4e};throw new ToolExecutionError(_0x331c4e,{...createRunSummary(_0x4972f1),'aborted':!![],'errorMessage':_0x331c4e});}const _0x1a6554=getRunTerminalErrorMessage(_0x4972f1[_0x1ed297(_0x5634f1._0x251136,_0x5634f1._0x4bcacf,_0x5634f1._0x4e43ee,_0x5634f1._0x28cf25)])??(_0xef592c instanceof Error?_0xef592c[_0x1ed297(0x6c,0xb,_0x5634f1._0x6f10dc,0x133)]:String(_0xef592c))??_0x93d4a9(0xed,0x7c,0x1c9,_0x5634f1._0x352b7b)+_0x4972f1[_0x93d4a9(-_0x5634f1._0x3b4c90,-_0x5634f1._0x165abf,0x77,-0x14)]+_0x93d4a9(0x257,_0x5634f1._0x5601b8,_0x5634f1._0x1a0933,_0x5634f1._0x204933);_0x4972f1={..._0x4972f1,'status':'failed','errorMessage':_0x1a6554};throw new ToolExecutionError(_0x1a6554,{...createRunSummary(_0x4972f1),'errorMessage':_0x1a6554});}finally{_0x56fd99();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x3ef55b){return[createAssignTaskTool(_0x3ef55b)];}import*as _0x206810 from'path';function buildDescription2(_0x2169b3){const _0x511fcf={_0x593f18:0x680,_0x16aca4:0x49f,_0x1b8f7b:0x43c,_0x27841f:0x521,_0x2d45a5:0x611,_0x3356e9:0x5dd,_0x200da7:0x4fb,_0x1d1679:0x4d5,_0xa8bb46:0x4b3,_0x3f9647:0x3c1,_0x2953d9:0x45e,_0x3a080b:0x348,_0x560bd0:0x4cd,_0x2684b2:0x4fd},_0x4992ac={_0x2fe342:0x150,_0x208bb0:0xa,_0x188091:0x17};function _0x348d95(_0x183fad,_0x352878,_0x3aac2a,_0x3e3b09){return _0x255f51(_0x3aac2a- -_0x4992ac._0x2fe342,_0x352878-_0x4992ac._0x208bb0,_0x183fad,_0x3e3b09-_0x4992ac._0x188091);}function _0x3d617b(_0x4783cf,_0x3b549f,_0x597718,_0x1f111f){return _0x173565(_0x4783cf-0x15d,_0x3b549f-0x116,_0x4783cf,_0x3b549f-0x449);}if(_0x2169b3[_0x348d95(0x673,_0x511fcf._0x593f18,0x564,0x53a)]===0x0)return _0x348d95(_0x511fcf._0x16aca4,_0x511fcf._0x1b8f7b,0x47e,0x5a0);const _0x457b19=[_0x3d617b(0x62b,0x5e4,0x69b,0x6c9),_0x348d95(0x6b3,_0x511fcf._0x27841f,_0x511fcf._0x2d45a5,_0x511fcf._0x3356e9),_0x348d95(_0x511fcf._0x200da7,0x570,_0x511fcf._0x1d1679,_0x511fcf._0xa8bb46),_0x348d95(0x464,0x519,0x527,0x41b),..._0x2169b3[_0x348d95(_0x511fcf._0x3f9647,0x501,_0x511fcf._0x2953d9,_0x511fcf._0x3a080b)](_0x4b248f=>'-\x20'+_0x4b248f['name']+':\x20'+_0x4b248f['description'])];return _0x457b19[_0x3d617b(0x5ae,_0x511fcf._0x560bd0,_0x511fcf._0x2684b2,0x44f)]('\x0a');}function createLoadSkillTool(_0x25d3d5){const _0x55084e={_0x33cf32:0xdc,_0x3b4895:0x119,_0x2e1556:0x4e,_0x3e2b92:0xbe,_0x2cfb8c:0x68b,_0xc9f94d:0x6a3,_0x5a0b84:0xe8,_0x5982f5:0xe,_0x37fcde:0x9b,_0xb5d8f5:0x10b,_0x15c775:0x196},_0x49be25={_0xfd6b75:0x442,_0x39c2c7:0x502,_0x1ff5c8:0x5b6,_0x54cf97:0x626,_0x520a8c:0x554,_0x4c0a20:0x5b8,_0x269330:0x69d,_0x4fa5ee:0x573,_0x33ce62:0x7be,_0x41a857:0x6e3,_0x4a3377:0x5c9,_0x1ca1c0:0x759,_0x1c31c9:0x595,_0x519dee:0x786,_0x531467:0x6af,_0x550bb7:0x544,_0x4cacc3:0x516,_0x4c54bb:0x498,_0x1c81ee:0x5c3,_0x8b48e6:0x757,_0x458859:0x581,_0x481f84:0x616,_0x4aece4:0x6c4,_0x1ac624:0x535,_0x3a3c58:0x687,_0x5b262e:0x71f,_0x22dcc3:0x74e,_0x2f1738:0x612,_0x48aa86:0x66a,_0x3910d0:0x5df,_0x5b6c9f:0x64d,_0x5745f3:0x6dc,_0x3cb4b8:0x6e0,_0x4e1b65:0x5b6},_0x555dd2={_0x29c278:0x187,_0x2dc32e:0x90},_0x1628c1={_0x5278ed:0x15a,_0x423b52:0x4a},_0x42c97d=new Map(_0x25d3d5['skills'][_0x283910(-_0x55084e._0x33cf32,_0x55084e._0x3b4895,_0x55084e._0x2e1556,_0x55084e._0x3e2b92)](_0x2bf534=>[_0x2bf534[_0x5bdc7e(0x680,0x690,0x70d,0x7a5)],_0x2bf534]));function _0x5bdc7e(_0x4c6e91,_0x3aea98,_0x437d7d,_0x5581cc){return _0x255f51(_0x437d7d- -0x5,_0x3aea98-_0x1628c1._0x5278ed,_0x5581cc,_0x5581cc-_0x1628c1._0x423b52);}const _0x270bdc=buildDescription2(_0x25d3d5[_0x5bdc7e(0x5a2,_0x55084e._0x2cfb8c,_0x55084e._0xc9f94d,0x6e6)]);function _0x283910(_0x136497,_0x1a544b,_0x36a238,_0x5170a0){return _0x255f51(_0x36a238- -0x560,_0x1a544b-_0x555dd2._0x29c278,_0x5170a0,_0x5170a0-_0x555dd2._0x2dc32e);}return defineTool({'name':_0x283910(0x49,-_0x55084e._0x5a0b84,_0x55084e._0x5982f5,-_0x55084e._0x37fcde),'description':_0x270bdc,'inputSchema':{'type':_0x5bdc7e(0x5dd,0x5b5,0x658,0x576),'properties':{'name':{'type':_0x283910(_0x55084e._0xb5d8f5,0xbf,0x15f,0x118)}},'required':[_0x283910(0xc7,0x1d3,0x1b2,_0x55084e._0x15c775)]},async *'execute'(_0x472187){const _0x28296c={_0x229cd6:0x75},_0x54443a=_0x42c97d[_0xb7198b(_0x49be25._0xfd6b75,0x604,_0x49be25._0x39c2c7,0x54c)](_0x472187[_0x156484(0x79c,0x6e3,_0x49be25._0x1ff5c8,_0x49be25._0x54cf97)]);function _0xb7198b(_0xfa6367,_0x3a4045,_0x110841,_0x20d3be){return _0x5bdc7e(_0xfa6367-0x5,_0x3a4045-_0x28296c._0x229cd6,_0x20d3be- -0x5e,_0xfa6367);}if(!_0x54443a){const _0x8cd238=Array[_0xb7198b(0x618,_0x49be25._0x520a8c,_0x49be25._0x4c0a20,0x57a)](_0x42c97d[_0x156484(0x5bb,0x52f,0x53e,0x41b)]())[_0x156484(_0x49be25._0x269330,0x5c1,0x517,_0x49be25._0x4fa5ee)](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x472187[_0x156484(_0x49be25._0x33ce62,_0x49be25._0x41a857,_0x49be25._0x4a3377,_0x49be25._0x1ca1c0)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x8cd238,{'name':_0x472187[_0xb7198b(_0x49be25._0x1c31c9,0x6f3,_0x49be25._0x519dee,_0x49be25._0x531467)]});}const _0x4a64c6=await _0x25d3d5[_0xb7198b(_0x49be25._0x550bb7,_0x49be25._0x4cacc3,_0x49be25._0x4c54bb,_0x49be25._0x1c81ee)](_0x54443a),_0x42b26c=_0x54443a[_0xb7198b(0x77a,_0x49be25._0x8b48e6,0x7c0,0x736)]['directory']??_0x206810[_0x156484(0x51a,_0x49be25._0x458859,_0x49be25._0x481f84,0x4c5)](_0x54443a['source'][_0x156484(_0x49be25._0x4aece4,0x5b6,_0x49be25._0x1ac624,0x572)]),_0x4e1eed=['##\x20Skill:\x20'+_0x4a64c6[_0xb7198b(0x63b,_0x49be25._0x3a3c58,_0x49be25._0x5b262e,_0x49be25._0x531467)],'',_0x4a64c6[_0x156484(_0x49be25._0x22dcc3,0x733,0x69e,0x67d)],'',_0x156484(_0x49be25._0x2f1738,0x5e6,0x6ee,_0x49be25._0x48aa86),'Loaded\x20from:\x20'+_0x54443a[_0x156484(0x7d6,0x76a,0x7f7,0x6bf)]['path'],_0xb7198b(_0x49be25._0x3910d0,_0x49be25._0x5b6c9f,0x7c2,_0x49be25._0x5745f3)+_0x42b26c]['join']('\x0a');function _0x156484(_0x41649a,_0x543833,_0x3254eb,_0x2fb78e){return _0x5bdc7e(_0x41649a-0xf8,_0x543833-0x15c,_0x543833- -0x2a,_0x41649a);}return yield createToolOutput(_0x4e1eed,{'id':_0x4a64c6['id'],'name':_0x4a64c6['name'],'path':_0x54443a['source'][_0x156484(_0x49be25._0x3cb4b8,_0x49be25._0x4e1b65,0x664,0x4c0)],'baseDirectory':_0x42b26c}),void 0x0;}});}import{readFile as _0x37d168,stat as _0x43436c}from'fs/promises';import*as _0xf2b270 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto','high',_0x255f51(0x6fb,0x60c,0x646,0x707),'original']),PNG_SIGNATURE=Buffer[_0x255f51(0x5dd,0x4ec,0x5bb,0x4fc)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x278c09,_0x1fa110){const _0x469cfd={_0x315a8e:0x1ac,_0x7f3aff:0x251,_0x280e80:0x284,_0x8dbab8:0x10a,_0x5b0d7b:0x119,_0x571490:0xe6,_0x4d33af:0x2f0,_0x319fce:0x262,_0x4b1e78:0x1b9,_0x2da768:0x2ed,_0x566ff7:0x105,_0x350858:0x94,_0x3ef483:0x8e,_0x55b7f4:0x10e,_0x15a633:0x18d,_0x1fc90a:0x1be,_0x4dd276:0x1db,_0x38236d:0x104,_0x49bcc4:0x10a,_0x31a1e5:0x1ba,_0x59e60b:0xe1,_0x775b65:0x116,_0x4309ee:0x142,_0x25ace1:0xcc,_0x47e8a6:0x174,_0x3e3a72:0x1df,_0x2c2d4c:0x8c,_0x12bda3:0x106,_0x4ce789:0x14e,_0x2e9203:0x218,_0x57aaab:0x27a,_0xee4114:0x153,_0x47b812:0x15e,_0x52acba:0xd6,_0x44afa1:0x234,_0x45526a:0x1b5,_0x6ae811:0x27b,_0x21a15f:0xf8,_0x354d0b:0x352,_0x442f21:0x296,_0x567fee:0x23f,_0x4ff644:0x294},_0x64d243={_0x29804d:0xf2,_0x175e96:0x1ae},_0x2daf1b={_0x587f96:0x146};function _0x5ae289(_0x59a078,_0x114f52,_0x43cf2,_0x3a40a3){return _0x173565(_0x59a078-0x19f,_0x114f52-0x3,_0x59a078,_0x114f52-_0x2daf1b._0x587f96);}if(_0x278c09['subarray'](0x0,0x8)[_0x5ae289(0x14b,0x1a3,0x1ed,0x21a)](PNG_SIGNATURE))return _0x5ae289(0x226,_0x469cfd._0x315a8e,_0x469cfd._0x7f3aff,_0x469cfd._0x280e80);function _0x409eb3(_0x227363,_0x561b49,_0x1b06b5,_0x1ff5fb){return _0x173565(_0x227363-0x51,_0x561b49-_0x64d243._0x29804d,_0x561b49,_0x227363- -_0x64d243._0x175e96);}if(_0x278c09[0x0]===0xff&&_0x278c09[0x1]===0xd8&&_0x278c09[0x2]===0xff)return'image/jpeg';const _0x2bc348=_0x278c09[_0x409eb3(-_0x469cfd._0x8dbab8,-0x10,-0x164,-0x35)](0x0,0x6)[_0x409eb3(-0x167,-0x166,-0x244,-0x1d3)](_0x409eb3(-_0x469cfd._0x5b0d7b,-0x20d,-0x215,-_0x469cfd._0x571490));if(_0x2bc348==='GIF87a'||_0x2bc348===_0x5ae289(_0x469cfd._0x4d33af,_0x469cfd._0x319fce,_0x469cfd._0x4b1e78,_0x469cfd._0x2da768))return'image/gif';if(_0x278c09[_0x409eb3(-0x10a,-_0x469cfd._0x566ff7,-_0x469cfd._0x350858,-_0x469cfd._0x3ef483)](0x0,0x4)[_0x5ae289(_0x469cfd._0x55b7f4,_0x469cfd._0x15a633,0x74,_0x469cfd._0x1fc90a)](_0x5ae289(0x2e9,_0x469cfd._0x4dd276,0x2d2,0x121))===_0x409eb3(-0xf0,-0x214,-_0x469cfd._0x38236d,-0x196)&&_0x278c09[_0x409eb3(-_0x469cfd._0x49bcc4,-_0x469cfd._0x31a1e5,-0x1f2,-0xfc)](0x8,0xc)[_0x409eb3(-0x167,-_0x469cfd._0x59e60b,-_0x469cfd._0x775b65,-0x273)](_0x409eb3(-0x119,-_0x469cfd._0x4309ee,-_0x469cfd._0x25ace1,-0x249))===_0x5ae289(0x8b,_0x469cfd._0x47e8a6,0x194,_0x469cfd._0x3e3a72))return'image/webp';const _0x515b3b=_0xf2b270[_0x409eb3(0x17,_0x469cfd._0x2c2d4c,-0x9c,-_0x469cfd._0x12bda3)](_0x1fa110)[_0x5ae289(_0x469cfd._0x4ce789,_0x469cfd._0x2e9203,_0x469cfd._0x57aaab,_0x469cfd._0xee4114)]();if(_0x515b3b==='.png')return _0x5ae289(_0x469cfd._0x47b812,0x1ac,_0x469cfd._0x52acba,_0x469cfd._0x44afa1);if(_0x515b3b==='.jpg'||_0x515b3b==='.jpeg')return _0x409eb3(-_0x469cfd._0x45526a,-_0x469cfd._0x6ae811,-_0x469cfd._0x52acba,-_0x469cfd._0x21a15f);if(_0x515b3b===_0x5ae289(0x3a6,_0x469cfd._0x354d0b,_0x469cfd._0x442f21,_0x469cfd._0x567fee))return'image/gif';if(_0x515b3b===_0x5ae289(_0x469cfd._0x4ff644,0x1f1,0x256,0x2e3))return'image/webp';return void 0x0;}function normalizeDetail(_0x57dbb0){const _0x499a22={_0x897ecb:0x3e5,_0x4d57d1:0x456},_0x477136={_0x34cd3d:0x113},_0x29e9de={_0x694b16:0x99};if(_0x57dbb0===void 0x0)return void 0x0;function _0x1d9820(_0x538f79,_0x548076,_0xbc125b,_0x445267){return _0x173565(_0x538f79-0x71,_0x548076-_0x29e9de._0x694b16,_0x538f79,_0x548076-0x236);}const _0x7c3221=_0x57dbb0[_0x1d9820(0x1f9,0x21b,0x2e3,0x236)]()[_0x2b531f(0x2c6,0x372,_0x499a22._0x897ecb,_0x499a22._0x4d57d1)]();function _0x2b531f(_0x2de576,_0xfb5232,_0x37a707,_0x21624f){return _0x173565(_0x2de576-_0x477136._0x34cd3d,_0xfb5232-0x1b,_0xfb5232,_0x37a707-0x313);}if(!SUPPORTED_DETAILS['has'](_0x7c3221))throw new ToolExecutionError('Unsupported\x20image\x20detail\x20level:\x20'+_0x57dbb0,{'detail':_0x57dbb0});return _0x7c3221;}function createViewFileTool(_0x6d4a43={}){const _0x369653={_0x1a0875:0x8f,_0x142fe4:0x24b,_0x4c500b:0x359,_0x4d530d:0x3ca,_0x51c61e:0x3cc,_0x5935f4:0x2e2,_0x49e493:0x35a,_0x51e016:0x288,_0x54cc01:0x28b,_0x314f69:0x1ea,_0x1b614e:0x2a4,_0xc915a0:0x2e7,_0x2e6421:0x214,_0x4caaca:0x30a},_0x25efd5={_0x1ac4ce:0x318,_0x1edafd:0x39b,_0x350487:0x4ab,_0x2b9e3a:0x469,_0x5682ca:0x472,_0xce9c84:0x4ac,_0x49db4a:0x168,_0x14b778:0x16d,_0x346f45:0x53c,_0x5e9391:0x54f,_0x29b793:0x86,_0x399a4c:0x272,_0x4ca167:0x3ca,_0x399bb5:0x3c8,_0x923f84:0x38d,_0x99aa16:0x2e1,_0x777cfe:0x3dc,_0x41270e:0x151,_0x555fd7:0x168,_0x47e3a7:0xa0,_0xb2d96a:0x38e,_0x546425:0x2b7,_0x2c344d:0x35c,_0x1855be:0x1b2,_0x8417c:0x20a,_0x4efdfd:0x259,_0x1d2b47:0x153,_0x2dc9e5:0x283,_0x184f38:0x154,_0x277836:0x504,_0x25b909:0x5dd,_0x519cc0:0x5d6,_0x53a5e6:0x1ef,_0x2ade45:0x173,_0x387a4c:0x1b4,_0x3c9bb1:0x13a,_0x14a5d6:0x174,_0xd8e2be:0x220,_0xe486b5:0x3bf,_0x167760:0x493,_0x236d8a:0x13f,_0x53f536:0x136,_0x235618:0x29,_0x5628ad:0x1e1,_0x4fa1ea:0x257,_0xa61791:0x2fb,_0x5cc75a:0x4d7,_0x2602b5:0xdc,_0x5aecc9:0x110,_0x5a2356:0x408,_0x40701e:0x181,_0x4e69e1:0x231,_0x2f48da:0x1ba,_0x29ebf3:0x2b8,_0x239168:0x368,_0x11593f:0x208,_0xfbcecd:0x26d,_0x5993c7:0x1ec,_0x27428b:0x306},_0xb417c6={_0x45b9bc:0x4d,_0x4b6479:0x160,_0xbf23a4:0x127},_0x13096b={_0x5232df:0x126,_0x316338:0xc1},_0x177ff4={_0xb13f97:0x107,_0x12233b:0x181},_0x7c2192=_0xf2b270[_0x4d613f(0x159,0x259,_0x369653._0x1a0875,0xe6)](_0x6d4a43[_0x29c3a6(0x295,0x319,_0x369653._0x142fe4,0x2a4)]??process[_0x4d613f(_0x369653._0x4c500b,_0x369653._0x4d530d,_0x369653._0x51c61e,0x405)]()),_0x2027ce=(_0x6d4a43['allowedDirs']??[])['map'](_0x5f521b=>_0xf2b270['resolve'](_0x5f521b)),_0x1f56fb=_0x6d4a43['maxBytes']??DEFAULT_MAX_BYTES,_0x6f0111=_0x6d4a43[_0x4d613f(_0x369653._0x5935f4,_0x369653._0x49e493,_0x369653._0x51e016,0x323)]??'ViewFile';function _0x29c3a6(_0x3825eb,_0xbdf098,_0x4b9407,_0x5e9981){return _0x255f51(_0x3825eb- -0x3b5,_0xbdf098-_0x177ff4._0xb13f97,_0x4b9407,_0x5e9981-_0x177ff4._0x12233b);}function _0x4d613f(_0x363f09,_0x359f38,_0x520cf6,_0x564086){return _0x173565(_0x363f09-_0x13096b._0x5232df,_0x359f38-_0x13096b._0x316338,_0x359f38,_0x363f09-0x13c);}return defineTool({'name':_0x6f0111,'description':_0x29c3a6(0x2c8,0x289,_0x369653._0x54cc01,_0x369653._0x314f69),'inputSchema':{'type':_0x29c3a6(0x2a8,_0x369653._0x1b614e,0x218,0x2fe),'properties':{'path':{'type':_0x29c3a6(0x30a,_0x369653._0xc915a0,_0x369653._0x2e6421,0x329)},'detail':{'type':_0x29c3a6(_0x369653._0x4caaca,0x211,0x338,0x221)}},'required':['path']},async *'execute'(_0x1ee611){const _0x56f73b={_0x7ae3da:0x1f4,_0x50b474:0x18e,_0x51d24d:0x163},_0x2bc8e6=resolveAllowedPath(_0x7c2192,_0x2027ce,_0x1ee611[_0x36318c(0x3a9,_0x25efd5._0x1ac4ce,0x44b,0x32b)]);function _0x2f8aa9(_0x24fc0c,_0x4baadf,_0x2d0b25,_0x43bf85){return _0x4d613f(_0x4baadf- -_0xb417c6._0x45b9bc,_0x24fc0c,_0x2d0b25-_0xb417c6._0x4b6479,_0x43bf85-_0xb417c6._0xbf23a4);}await assertWorkspaceFile(_0x2bc8e6);const _0x1eadbc=await _0x43436c(_0x2bc8e6);if(_0x1eadbc['size']>_0x1f56fb)throw new ToolExecutionError(_0x36318c(_0x25efd5._0x1edafd,0x35e,0x325,0x455)+_0x1ee611[_0x36318c(0x3a9,0x415,_0x25efd5._0x350487,0x3e0)],{'path':_0x1ee611['path'],'maxBytes':_0x1f56fb,'size':_0x1eadbc[_0x36318c(0x44b,0x356,0x3e1,0x3ce)]});const _0x363399=await _0x37d168(_0x2bc8e6);function _0x36318c(_0x4c04e9,_0x365517,_0x1e1862,_0x5d4244){return _0x4d613f(_0x4c04e9-_0x56f73b._0x7ae3da,_0x1e1862,_0x1e1862-_0x56f73b._0x50b474,_0x5d4244-_0x56f73b._0x51d24d);}const _0x2aea38=detectImageMediaType(_0x363399,_0x2bc8e6);if(!_0x2aea38)throw new ToolExecutionError(_0x36318c(_0x25efd5._0x2b9e3a,0x4a6,_0x25efd5._0x5682ca,_0x25efd5._0xce9c84)+_0x1ee611[_0x2f8aa9(0x60,_0x25efd5._0x49db4a,0x19c,0x18c)],{'path':_0x1ee611[_0x2f8aa9(_0x25efd5._0x14b778,0x168,0x213,0x250)],'supported':[_0x36318c(_0x25efd5._0x346f45,0x4b9,_0x25efd5._0x5e9391,0x579),_0x2f8aa9(_0x25efd5._0x29b793,0x18b,0x1de,0x1a8),_0x36318c(0x49a,0x3a8,0x461,0x473),_0x36318c(0x344,_0x25efd5._0x399a4c,_0x25efd5._0x4ca167,0x24e),_0x36318c(0x3db,0x362,0x493,0x39b)]});const _0x15a957=normalizeDetail(_0x1ee611[_0x36318c(_0x25efd5._0x399bb5,0x3de,_0x25efd5._0x923f84,0x3d7)]),_0x25b779=[_0x2f8aa9(0x206,_0x25efd5._0x99aa16,0x356,_0x25efd5._0x777cfe)+_0x1ee611[_0x2f8aa9(_0x25efd5._0x41270e,_0x25efd5._0x555fd7,_0x25efd5._0x47e3a7,0x186)],_0x2f8aa9(_0x25efd5._0xb2d96a,_0x25efd5._0x546425,_0x25efd5._0x2c344d,0x2cb)+_0x2aea38,'Size:\x20'+_0x1eadbc[_0x2f8aa9(_0x25efd5._0x1855be,_0x25efd5._0x8417c,0x15a,0x1e2)]+_0x2f8aa9(0x187,0x17c,_0x25efd5._0x4efdfd,0x153)][_0x2f8aa9(_0x25efd5._0x1d2b47,_0x25efd5._0x2dc9e5,_0x25efd5._0x184f38,0x2a2)](_0x15a957?[_0x36318c(_0x25efd5._0x277836,_0x25efd5._0x25b909,0x54d,_0x25efd5._0x519cc0)+_0x15a957]:[])[_0x2f8aa9(_0x25efd5._0x53a5e6,_0x25efd5._0x2ade45,0x1c3,0x1bf)]('\x0a'),_0x453136=[{'type':_0x2f8aa9(_0x25efd5._0x387a4c,_0x25efd5._0x3c9bb1,_0x25efd5._0x14a5d6,_0x25efd5._0xd8e2be),'source':{'type':_0x36318c(0x42c,_0x25efd5._0xe486b5,_0x25efd5._0x167760,0x549),'media_type':_0x2aea38,'data':_0x363399[_0x2f8aa9(_0x25efd5._0x236d8a,_0x25efd5._0x53f536,0x1f8,_0x25efd5._0x235618)](_0x2f8aa9(_0x25efd5._0x5628ad,0x1eb,_0x25efd5._0x4fa1ea,0x1ba))}},{'type':_0x2f8aa9(0x225,0x219,0x2f8,0x275),'text':_0x25b779}];return yield createToolOutput(_0x25b779,{'path':_0x1ee611[_0x36318c(0x3a9,_0x25efd5._0xa61791,_0x25efd5._0x5cc75a,0x4af)],'resolvedPath':_0x2bc8e6,'created':_0x1eadbc[_0x2f8aa9(0x7c,_0x25efd5._0x2602b5,0x13,_0x25efd5._0x5aecc9)][_0x36318c(0x4f9,0x5b1,_0x25efd5._0x5a2356,0x582)](),'modified':_0x1eadbc[_0x2f8aa9(_0x25efd5._0x40701e,0x105,0x162,_0x25efd5._0x4e69e1)][_0x2f8aa9(_0x25efd5._0x2f48da,_0x25efd5._0x29ebf3,0x1fe,_0x25efd5._0x239168)](),'size':_0x1eadbc[_0x2f8aa9(0x2c2,_0x25efd5._0x8417c,_0x25efd5._0x11593f,_0x25efd5._0xfbcecd)],'mimeType':_0x2aea38,'encoding':_0x2f8aa9(_0x25efd5._0x5993c7,0x1eb,_0x25efd5._0x27428b,0x144),..._0x15a957?{'detail':_0x15a957}:{}},_0x453136),void 0x0;}});}import _0x559a8d from'turndown';var USER_AGENT=_0x173565(0x151,0x1ae,0x72,0x128),DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x54d009){const _0x25f4dd={_0x4d30ff:0x7d1,_0x5c36ed:0x793,_0x19d2c6:0x759,_0xf8588c:0x1ba,_0x3957d7:0x25a,_0x352466:0x353,_0x3db2b3:0x43e,_0x5e0720:0x60c,_0x1a35a5:0x476,_0x3094c5:0x606,_0x27e61d:0x562,_0x5c3d56:0x2fc,_0x700970:0x333,_0x249727:0x61c,_0x1cf75c:0xbd,_0x14cb6e:0xb3,_0x12a544:0x740,_0x2698af:0x540,_0x18f3ee:0x614,_0xa23f15:0x644,_0x5a0e8c:0x4f5,_0x4b88f7:0x678,_0xe22f20:0x4e1,_0x2c5920:0x5e8},_0x226832={_0xfb900e:0x101,_0x32c499:0xe2,_0xccbd7e:0x17e};let _0x3d6263;try{_0x3d6263=new URL(_0x54d009);}catch{throw new ToolExecutionError(_0x58d573(_0x25f4dd._0x4d30ff,_0x25f4dd._0x5c36ed,0x84c,_0x25f4dd._0x19d2c6),{'url':_0x54d009});}if(_0x3d6263[_0x38487d(_0x25f4dd._0xf8588c,0x23d,_0x25f4dd._0x3957d7,0x1ef)]!==_0x38487d(_0x25f4dd._0x352466,0x28c,_0x25f4dd._0x3db2b3,0x45b)&&_0x3d6263[_0x58d573(_0x25f4dd._0x5e0720,_0x25f4dd._0x1a35a5,_0x25f4dd._0x3094c5,_0x25f4dd._0x27e61d)]!=='https:')throw new ToolExecutionError(_0x38487d(0x284,_0x25f4dd._0x5c3d56,_0x25f4dd._0x700970,0x229),{'url':_0x54d009});if(_0x3d6263[_0x58d573(0x4f5,0x57c,0x63c,_0x25f4dd._0x249727)]||_0x3d6263[_0x38487d(0x1c8,0x16e,_0x25f4dd._0x1cf75c,_0x25f4dd._0x14cb6e)])throw new ToolExecutionError(_0x58d573(_0x25f4dd._0x12a544,_0x25f4dd._0x2698af,_0x25f4dd._0x18f3ee,_0x25f4dd._0xa23f15),{'url':_0x3d6263[_0x58d573(0x4d5,0x4c8,_0x25f4dd._0x5a0e8c,0x562)]+'//'+_0x3d6263['host']+_0x3d6263[_0x58d573(_0x25f4dd._0x4b88f7,0x4bf,_0x25f4dd._0xe22f20,_0x25f4dd._0x2c5920)]});function _0x58d573(_0x1ff770,_0xa97ce6,_0x39a5d9,_0x5e5b9a){return _0x173565(_0x1ff770-0x2,_0xa97ce6-0x63,_0x39a5d9,_0x5e5b9a-0x526);}function _0x38487d(_0x23fd1d,_0x32e85d,_0x318c29,_0x3cf767){return _0x173565(_0x23fd1d-_0x226832._0xfb900e,_0x32e85d-_0x226832._0x32c499,_0x32e85d,_0x23fd1d-_0x226832._0xccbd7e);}return _0x3d6263;}function parseContentLength(_0x2870b1){if(!_0x2870b1)return void 0x0;const _0x533d47=Number(_0x2870b1);return Number['isFinite'](_0x533d47)&&_0x533d47>=0x0?_0x533d47:void 0x0;}function createTimeoutSignal(_0x20453b,_0x1a0690){const _0x1758b={_0x3f3b3c:0x78,_0x213e48:0x159,_0x1a600c:0x1a6,_0x2ef085:0x211},_0x5620a4={_0x4b0458:0x103},_0x180b81={_0x22b452:0xa1,_0xa91671:0x14e,_0x2838bc:0x56},_0x2c344f=new AbortController();function _0x210d86(_0x379bc8,_0x3151a3,_0x4bbb9f,_0x15560a){return _0x173565(_0x379bc8-_0x180b81._0x22b452,_0x3151a3-_0x180b81._0xa91671,_0x3151a3,_0x15560a-_0x180b81._0x2838bc);}const _0x44125d=setTimeout(()=>_0x2c344f['abort'](new Error('Fetch\x20timed\x20out')),_0x1a0690),_0x213fd2=()=>_0x2c344f[_0x7b2075(-0x87,0x5d,0x14b,-0x89)](_0x20453b[_0x7b2075(0x1ec,0x20f,0x2f3,0x189)]);function _0x7b2075(_0x292ef9,_0x42b70d,_0x53d318,_0xf0802){return _0x173565(_0x292ef9-_0x5620a4._0x4b0458,_0x42b70d-0x66,_0x292ef9,_0x42b70d-0x1);}return _0x20453b['aborted']?_0x2c344f['abort'](_0x20453b['reason']):_0x20453b[_0x7b2075(-_0x1758b._0x3f3b3c,0xa7,_0x1758b._0x213e48,_0x1758b._0x1a600c)]('abort',_0x213fd2,{'once':!![]}),{'signal':_0x2c344f[_0x7b2075(0x1bc,_0x1758b._0x2ef085,0x27d,0x22b)],'cleanup':()=>{clearTimeout(_0x44125d),_0x20453b['removeEventListener']('abort',_0x213fd2);}};}function createWebFetchTool(_0x3e713e={}){const _0x2af23a={_0x5aa2f2:0x261,_0x203904:0x2c9,_0x300f96:0x3dc,_0x612e:0x57a,_0x7076de:0x1f5,_0x50372d:0x43,_0x382fd2:0xc1,_0x3c4cb2:0x2dc,_0x3e646f:0x269,_0x1d7bfa:0x2b1,_0x3ce496:0x276,_0x445cb2:0xf6,_0x2ac294:0x117,_0x20c92d:0x324,_0x3ab67f:0x2a9,_0x203201:0x3c3,_0x2a6dff:0x4dc,_0x14161e:0x47d,_0x4f1435:0x46e,_0x224c0c:0x4af,_0x4d2393:0x40e,_0x4bfb26:0x35c,_0x2fe1e2:0x279,_0x21441f:0x406,_0x54b6ad:0x329,_0x5c7aee:0x21a,_0x45c8a2:0x538,_0xc51a2b:0x416,_0x12a8fd:0x52f,_0x57ce1c:0x4b3},_0x4b3c62={_0x44ec66:0x4e9,_0x2a26d6:0x4e7,_0x53dbe6:0x436,_0x23e1cb:0x366,_0xaa6043:0x2f5,_0x502bfc:0x52e,_0x2f069f:0x592,_0x7f0b78:0x575,_0x41fdce:0x543,_0x485387:0x585,_0x5be5a7:0x30f,_0x2b202f:0x5c0,_0x314a48:0x3f0,_0x3621ac:0x3e0,_0x4252b3:0x3ed,_0x12f048:0x2f0,_0x13115c:0x4a2,_0xdfc227:0x3ce,_0x6d382e:0x547,_0x3d51b6:0x53f,_0x39ca5b:0x39d,_0x28f77e:0x4bc,_0x18540a:0x328,_0x34a9bc:0x3bc,_0x1d6cfe:0x33a,_0x223450:0x309,_0x583288:0x4c7,_0x10b427:0x485,_0x21745f:0x373,_0xdfe939:0x2e0,_0x33e300:0x3ac,_0x237ed5:0x34f,_0x31bd44:0x474,_0x5e6ec7:0x362,_0x4f3ed8:0x4be,_0x519134:0x429,_0xa0dae8:0x5bd,_0x561665:0x59f,_0x39a068:0x4bf,_0x57d1e2:0x4dd,_0x4b97cd:0x511,_0x31dfa4:0x486,_0x5ea75f:0x3a2,_0x3dcaf3:0x3ce},_0x255a85={_0x210c9c:0x1c8,_0x4d9fa1:0x25f},_0x10b006={_0x47fcea:0xc0,_0x75eaea:0x325},_0xda664={_0x26df7b:0x96,_0x1e5f42:0x3f};function _0x45c1c9(_0x3b8022,_0x2d75dd,_0x13c13a,_0x189635){return _0x173565(_0x3b8022-_0xda664._0x26df7b,_0x2d75dd-_0xda664._0x1e5f42,_0x2d75dd,_0x13c13a-0x123);}function _0x86491f(_0x42bbb9,_0x1998dd,_0x531b2e,_0x51b04c){return _0x173565(_0x42bbb9-0x16a,_0x1998dd-_0x10b006._0x47fcea,_0x42bbb9,_0x531b2e-_0x10b006._0x75eaea);}const _0x564648=_0x3e713e[_0x45c1c9(_0x2af23a._0x5aa2f2,0x3c0,_0x2af23a._0x203904,_0x2af23a._0x300f96)]??_0x86491f(0x5b4,_0x2af23a._0x612e,0x4a1,0x527),_0x268b40=_0x3e713e[_0x45c1c9(_0x2af23a._0x7076de,_0x2af23a._0x50372d,0x107,_0x2af23a._0x382fd2)]??DEFAULT_MAX_BYTES2,_0x2455ee=_0x3e713e[_0x86491f(_0x2af23a._0x3c4cb2,0x3dd,0x376,0x36a)]??DEFAULT_TIMEOUT_MS2,_0x12f98b=new _0x559a8d({'headingStyle':_0x45c1c9(0x1c9,_0x2af23a._0x3e646f,0x2e5,0x3d6),'codeBlockStyle':'fenced','bulletListMarker':'-'});return _0x12f98b[_0x45c1c9(0x32d,_0x2af23a._0x1d7bfa,0x244,_0x2af23a._0x3ce496)]([_0x45c1c9(_0x2af23a._0x445cb2,0x129,_0x2af23a._0x2ac294,0x1e7),_0x86491f(0x310,0x316,_0x2af23a._0x20c92d,0x352),_0x86491f(_0x2af23a._0x3ab67f,0x477,_0x2af23a._0x203201,_0x2af23a._0x2a6dff),'iframe','nav',_0x45c1c9(_0x2af23a._0x14161e,0x24f,0x35a,0x471),_0x86491f(_0x2af23a._0x4f1435,_0x2af23a._0x224c0c,_0x2af23a._0x4d2393,_0x2af23a._0x4bfb26),_0x45c1c9(_0x2af23a._0x2fe1e2,_0x2af23a._0x21441f,_0x2af23a._0x54b6ad,_0x2af23a._0x5c7aee)]),defineTool({'name':_0x564648,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x86491f(0x4f2,_0x2af23a._0x45c8a2,_0x2af23a._0xc51a2b,0x427),'properties':{'description':{'type':'string'},'url':{'type':'string'}},'required':[_0x86491f(_0x2af23a._0x12a8fd,0x5af,_0x2af23a._0x57ce1c,0x5cf)]},async *'execute'(_0x27b66a,_0x1960c5){const _0x3bca20={_0x13a65a:0x1fc},_0x85c941=assertFetchableUrl(_0x27b66a[_0x50e7e0(_0x4b3c62._0x44ec66,_0x4b3c62._0x2a26d6,0x4ad,0x4d9)])[_0x50e7e0(_0x4b3c62._0x53dbe6,0x313,_0x4b3c62._0x23e1cb,_0x4b3c62._0xaa6043)]();if(_0x1960c5[_0x1de016(0x5b4,_0x4b3c62._0x502bfc,0x533,_0x4b3c62._0x2f069f)][_0x1de016(0x4ab,_0x4b3c62._0x7f0b78,_0x4b3c62._0x41fdce,_0x4b3c62._0x485387)])throw new ToolExecutionError(_0x50e7e0(0x2cd,0x268,_0x4b3c62._0x5be5a7,0x232),{'url':_0x85c941});const _0xee6853=createTimeoutSignal(_0x1960c5['signal'],_0x2455ee);let _0x59e286='',_0x27e40a=0x0,_0x232ae2;try{const _0x1ab55d=await fetch(_0x85c941,{'headers':{'User-Agent':USER_AGENT},'signal':_0xee6853['signal']});if(!_0x1ab55d['ok'])throw new ToolExecutionError('HTTP\x20'+_0x1ab55d[_0x1de016(0x4fc,_0x4b3c62._0x2b202f,_0x4b3c62._0x314a48,0x4bc)]+'\x20'+_0x1ab55d['statusText'],{'url':_0x85c941,'statusCode':_0x1ab55d[_0x1de016(_0x4b3c62._0x3621ac,0x5ac,_0x4b3c62._0x4252b3,0x4bc)]});const _0xb95af5=parseContentLength(_0x1ab55d['headers'][_0x50e7e0(0x40e,0x249,0x362,_0x4b3c62._0x12f048)](_0x50e7e0(0x572,_0x4b3c62._0x13115c,0x517,0x413)));if(_0xb95af5!==void 0x0&&_0xb95af5>_0x268b40)throw new ToolExecutionError('Response\x20too\x20large:\x20'+_0xb95af5+_0x1de016(0x5e3,_0x4b3c62._0xdfc227,0x491,0x4e7)+_0x268b40+_0x50e7e0(0x315,0x45f,0x3ac,0x29c),{'url':_0x85c941,'statusCode':_0x1ab55d[_0x1de016(_0x4b3c62._0x6d382e,_0x4b3c62._0x3d51b6,_0x4b3c62._0x39ca5b,_0x4b3c62._0x28f77e)],'contentLength':_0xb95af5,'maxBytes':_0x268b40});_0x59e286=_0x1ab55d['headers'][_0x1de016(_0x4b3c62._0x18540a,_0x4b3c62._0x34a9bc,_0x4b3c62._0x1d6cfe,0x3c5)]('content-type')??'',_0x27e40a=_0x1ab55d['status'],_0x232ae2=await _0x1ab55d['text']();}catch(_0x23a390){if(_0x23a390 instanceof ToolExecutionError)throw _0x23a390;const _0x573725=_0x23a390 instanceof Error?_0x23a390['message']:String(_0x23a390);throw new ToolExecutionError(_0x573725,{'url':_0x85c941});}finally{_0xee6853[_0x1de016(0x478,0x3c9,0x3d0,0x3a8)]();}function _0x50e7e0(_0x55ca12,_0x1125e1,_0x2486b2,_0x36e39b){return _0x45c1c9(_0x55ca12-0x75,_0x36e39b,_0x2486b2-_0x3bca20._0x13a65a,_0x36e39b-0x1d4);}if(Buffer[_0x1de016(_0x4b3c62._0x223450,0x441,0x379,0x40d)](_0x232ae2,_0x50e7e0(_0x4b3c62._0x583288,0x4a1,_0x4b3c62._0x10b427,0x447))>_0x268b40)throw new ToolExecutionError('Response\x20too\x20large:\x20exceeds\x20'+_0x268b40+_0x50e7e0(_0x4b3c62._0x21745f,_0x4b3c62._0xdfe939,_0x4b3c62._0x33e300,_0x4b3c62._0x237ed5),{'url':_0x85c941,'statusCode':_0x27e40a,'maxBytes':_0x268b40});function _0x1de016(_0x2d0baf,_0x565614,_0x34334d,_0x3d8af0){return _0x45c1c9(_0x2d0baf-_0x255a85._0x210c9c,_0x2d0baf,_0x3d8af0-_0x255a85._0x4d9fa1,_0x3d8af0-0x15f);}const _0x399455=new Date()['toISOString']();let _0x1e52ea,_0x1d1bdf;if(_0x59e286['includes']('application/json'))_0x1e52ea=_0x1de016(_0x4b3c62._0x31bd44,_0x4b3c62._0x5e6ec7,_0x4b3c62._0x4f3ed8,0x3da)+_0x232ae2+_0x50e7e0(0x591,_0x4b3c62._0x519134,0x500,0x434),_0x1d1bdf=_0x1de016(_0x4b3c62._0xa0dae8,_0x4b3c62._0x561665,_0x4b3c62._0x39a068,0x4d8);else _0x59e286[_0x1de016(_0x4b3c62._0x57d1e2,0x429,0x594,0x4d7)](_0x50e7e0(0x556,_0x4b3c62._0x4b97cd,0x434,0x361))?(_0x1e52ea=_0x12f98b['turndown'](_0x232ae2),_0x1d1bdf='markdown'):(_0x1e52ea=_0x232ae2,_0x1d1bdf=_0x50e7e0(0x3d8,0x395,0x449,_0x4b3c62._0x31dfa4));return yield createToolOutput(_0x1e52ea,{'url':_0x85c941,'contentType':_0x59e286,'statusCode':_0x27e40a,'format':_0x1d1bdf,'size':_0x232ae2[_0x1de016(0x3ab,_0x4b3c62._0x5ea75f,_0x4b3c62._0x3dcaf3,0x4ca)],'fetchedAt':_0x399455}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x173565(0x13b,0x24b,0x210,0x1af);function normalizeUrl(_0x354dc2){const _0x253fe1={_0x4d0ab6:0x5f2,_0x35e2cb:0x5a6,_0x3adaf6:0x595,_0x24d9f3:0x68f,_0x26a6d9:0x7a0,_0x430949:0x495,_0xcefa1a:0x3be,_0x306cb4:0x4c1,_0x110cc1:0x34c,_0xdb040a:0x29e,_0x1dc0af:0x54d,_0x122a43:0x525,_0x3fb5a6:0x40d,_0x224b0f:0x69b,_0x3298c4:0x33d,_0x462ac3:0x25c,_0x39b3ef:0x302},_0x47166d={_0x43ad5c:0x94},_0x2d9127={_0x538692:0xbd};function _0x4a10a4(_0x5b0ee2,_0x2cb0c9,_0x27071e,_0x3d5c0c){return _0x255f51(_0x27071e- -_0x2d9127._0x538692,_0x2cb0c9-0x30,_0x5b0ee2,_0x3d5c0c-0xd8);}function _0x3882be(_0x1e7aa0,_0xf7c6ff,_0x3c6f5d,_0x27f85b){return _0x173565(_0x1e7aa0-_0x47166d._0x43ad5c,_0xf7c6ff-0x44,_0xf7c6ff,_0x27f85b-0x192);}try{const _0x122777=new URL(_0x354dc2);for(const _0x57068a of[_0x4a10a4(0x515,_0x253fe1._0x4d0ab6,_0x253fe1._0x35e2cb,_0x253fe1._0x3adaf6),_0x4a10a4(0x5d5,0x77e,_0x253fe1._0x24d9f3,_0x253fe1._0x26a6d9),_0x3882be(0x2c1,0x398,_0x253fe1._0x430949,_0x253fe1._0xcefa1a),_0x4a10a4(0x587,0x5e4,0x506,0x561),_0x4a10a4(0x490,0x482,_0x253fe1._0x306cb4,0x4fa),_0x3882be(0x39f,0x358,0x45b,_0x253fe1._0x110cc1),_0x3882be(_0x253fe1._0xdb040a,0x1e9,0x24e,0x296),_0x4a10a4(0x528,_0x253fe1._0x1dc0af,_0x253fe1._0x122a43,_0x253fe1._0x3fb5a6),_0x3882be(0x354,0x166,0x260,0x271)]){_0x122777[_0x4a10a4(_0x253fe1._0x224b0f,0x6a5,0x617,0x742)][_0x3882be(_0x253fe1._0x3298c4,_0x253fe1._0x462ac3,_0x253fe1._0x39b3ef,0x2f9)](_0x57068a);}return _0x122777['toString']();}catch{return _0x354dc2;}}function cseDateRestrict(_0x2c1039){const _0x2609f0={_0xd9e12d:0x2e8,_0x55f6ea:0x4db,_0x14233a:0x4b8},_0x14d138={_0x1b6b8c:0x1b6},_0x4077ab={_0x9841a9:0x71};function _0x371f9b(_0x1c5dea,_0x374a24,_0x2a3b76,_0x46d800){return _0x255f51(_0x2a3b76- -0x250,_0x374a24-_0x4077ab._0x9841a9,_0x374a24,_0x46d800-0x1b6);}function _0x1f49b1(_0x44267b,_0x45c3dd,_0x46ae69,_0x4ac7ad){return _0x255f51(_0x44267b- -0x376,_0x45c3dd-0x149,_0x4ac7ad,_0x4ac7ad-_0x14d138._0x1b6b8c);}if(_0x2c1039<=0x0)return void 0x0;if(_0x2c1039<=0x1e)return'd'+Math[_0x1f49b1(0x22d,0x128,_0x2609f0._0xd9e12d,0x164)](0x1,Math['floor'](_0x2c1039));if(_0x2c1039<=0x16d)return'm'+Math[_0x371f9b(0x3b3,0x52b,_0x2609f0._0x55f6ea,0x474)](_0x2c1039/0x1e);return'y'+Math[_0x371f9b(0x575,0x541,_0x2609f0._0x55f6ea,_0x2609f0._0x14233a)](_0x2c1039/0x16d);}function addSiteFilters(_0x3123cc,_0x395bba){const _0x515e69={_0x12f636:0x4de,_0x38bc56:0x48c,_0x5c3a5e:0x2d6,_0x1191bb:0x3df,_0x2d6533:0x21a,_0x19268f:0x2c5},_0x42491f={_0x40ac4f:0x17f};if(_0x395bba[_0x451f0e(0x416,_0x515e69._0x12f636,0x542,_0x515e69._0x38bc56)]===0x0)return _0x3123cc[_0x451f0e(_0x515e69._0x5c3a5e,0x4cb,_0x515e69._0x1191bb,0x465)]();function _0x451f0e(_0x1fd177,_0x41e0cc,_0x2cb27d,_0x206ffa){return _0x255f51(_0x2cb27d- -0x172,_0x41e0cc-0xac,_0x1fd177,_0x206ffa-_0x42491f._0x40ac4f);}function _0x3a9e28(_0x44abd1,_0x37c8fd,_0x880549,_0x13533d){return _0x173565(_0x44abd1-0xbd,_0x37c8fd-0xbb,_0x880549,_0x44abd1-0x196);}return(_0x3123cc+'\x20('+_0x395bba['map'](_0x2cbc37=>_0x3a9e28(0x2d7,0x2ba,0x355,0x3a5)+_0x2cbc37)[_0x3a9e28(_0x515e69._0x2d6533,_0x515e69._0x19268f,0x2a3,0x1c6)](_0x3a9e28(0x3b0,0x370,0x48c,0x4a9))+')')['trim']();}function normalizeType(_0x89400f){const _0x1ffd98={_0x5a2e40:0x275,_0x255a54:0x191,_0x33df00:0x6d,_0x2dd064:0x424,_0x11f9cd:0x556,_0x1cac99:0x69a},_0x58f6a1={_0x299095:0xd2,_0x56dafc:0x142,_0x48ba71:0x416},_0xf3def1={_0x185b4e:0x5f};function _0x260e6d(_0x1d2214,_0x2e9a85,_0x5426d5,_0x552a5e){return _0x255f51(_0x2e9a85- -0x70b,_0x2e9a85-0x1e6,_0x552a5e,_0x552a5e-_0xf3def1._0x185b4e);}function _0x269ad8(_0x4fcdd8,_0x1969b1,_0x2143b7,_0x3b0357){return _0x173565(_0x4fcdd8-_0x58f6a1._0x299095,_0x1969b1-_0x58f6a1._0x56dafc,_0x3b0357,_0x1969b1-_0x58f6a1._0x48ba71);}return _0x89400f===_0x260e6d(-_0x1ffd98._0x5a2e40,-_0x1ffd98._0x255a54,-0x1c9,-_0x1ffd98._0x33df00)?_0x269ad8(0x514,_0x1ffd98._0x2dd064,0x418,0x45d):_0x269ad8(0x703,0x600,_0x1ffd98._0x11f9cd,_0x1ffd98._0x1cac99);}async function fetchJson(_0x35f481,_0x517c9e){const _0x165062={_0x5c328f:0x243,_0x3eae2e:0x415,_0x45dc63:0x233,_0x53f260:0x2be,_0x21ade9:0x386,_0xdb55fd:0xfd,_0x129a31:0x176,_0x17c182:0x140,_0x548151:0x235,_0x3c2882:0x419,_0x471c00:0x2f9,_0x30904b:0x3fe},_0x46dff3={_0x84eba6:0x3ad,_0x459766:0x113,_0x504005:0x28},_0x16701f={_0x1eda83:0x3fe,_0x4b003d:0xcc,_0x48db89:0xc7},_0x190122=await fetch(_0x35f481,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x52c603(_0x165062._0x5c328f,_0x165062._0x3eae2e,0x31f,_0x165062._0x45dc63)},'signal':_0x517c9e});function _0x52c603(_0x8ed890,_0x58579b,_0x2be915,_0x509125){return _0x255f51(_0x2be915- -_0x16701f._0x1eda83,_0x58579b-_0x16701f._0x4b003d,_0x8ed890,_0x509125-_0x16701f._0x48db89);}if(!_0x190122['ok']){await _0x190122[_0x52c603(0x4a4,_0x165062._0x53f260,_0x165062._0x21ade9,0x329)]?.[_0x52c603(_0x165062._0xdb55fd,0x280,_0x165062._0x129a31,0x1ba)]()['catch'](()=>void 0x0);throw new ToolExecutionError(_0x52c603(_0x165062._0x17c182,0x1f7,_0x165062._0x548151,0x2f7)+_0x190122[_0x1a62af(_0x165062._0x3c2882,0x2e3,0x3f5,_0x165062._0x471c00)]+'\x20'+_0x190122['statusText'],{'statusCode':_0x190122[_0x1a62af(_0x165062._0x30904b,0x364,0x24a,_0x165062._0x471c00)]});}function _0x1a62af(_0x480540,_0x591574,_0x2adca2,_0x46ce88){return _0x255f51(_0x46ce88- -_0x46dff3._0x84eba6,_0x591574-_0x46dff3._0x459766,_0x480540,_0x46ce88-_0x46dff3._0x504005);}return await _0x190122['json']();}async function hydrateResults(_0x35a6d4,_0xc98cad,_0x5ba93b){const _0xf99236={_0x354a0a:0x8f,_0x334868:0x29c,_0x2fe7f0:0x326,_0xb9047:0x2a1,_0x3ba99d:0x19e,_0x5bc9d7:0x287,_0x35ae44:0x208,_0x49e75f:0x1f4},_0x33ceeb={_0x51a3b4:0x21,_0x22e50d:0xba,_0x19a4f1:0x1b2},_0x69445a={_0x39261e:0x636,_0x1ab558:0x145,_0x2ea89e:0x6c},_0x1270b7={_0x168bb9:0x472,_0x579c5e:0x3a1,_0x910244:0x47e,_0x28af88:0x39a,_0x5b24d2:0x558,_0x3d42d7:0x4c4,_0x216b51:0x36b,_0x47eb68:0x46b,_0xbdb2e7:0x473,_0x5b7a48:0x4a1,_0x3cdb9f:0x48e,_0x40fb3d:0x532,_0x5c2973:0x4d6,_0x1f5da8:0x51a,_0x55333d:0x4f9,_0x5b23a9:0x4c9,_0x93581e:0x4b5,_0x191687:0x328,_0x168742:0x374,_0x4a0f41:0x41c,_0xc112a6:0x4fa,_0x5146a3:0x50f,_0x480ad3:0x427,_0x4ed03b:0x43f,_0xdf9bcd:0x5f2,_0x36aa0a:0x5a0,_0x19e50f:0x35d,_0xe8b5ce:0x40e,_0x34a01d:0x4f6,_0x4bcf72:0x416,_0x5801bb:0x3b2,_0x4cb0f3:0x443,_0x1e79fa:0x2c4,_0x32369d:0x33a,_0x2260bb:0x3df,_0x27ad81:0x44f,_0x5c6df0:0x31e,_0x482791:0x3ab,_0x3401bd:0x367,_0xc7faa2:0x29e,_0x3360ec:0x400,_0x18d7f9:0x47d,_0x3d3c8f:0x444,_0x45f29b:0x3bb,_0x41a8ef:0x492,_0x2ccd1b:0x4e8,_0x17beb8:0x4ea,_0x178133:0x38a,_0x15c80d:0x42b},_0x4bec1a={_0x1f3671:0x143},_0x43a8bc=await Promise[_0x2dc99c(-_0xf99236._0x354a0a,-0x1bb,-0xaf,-0x83)](_0x35a6d4[_0x2dc99c(0xaa,-0x6,-0x49,0xe9)](0x0,0xa)['map'](async _0xa7e844=>{function _0x56f751(_0x3a5170,_0x4c9b83,_0x25f421,_0xe564f7){return _0x236975(_0x25f421,_0x4c9b83-0x69,_0x25f421-0x1f1,_0x4c9b83-0x1ed);}function _0x2a173c(_0x116e55,_0x56fff1,_0xd9a211,_0x37d8be){return _0x236975(_0x37d8be,_0x56fff1-_0x4bec1a._0x1f3671,_0xd9a211-0x1b0,_0x116e55-0x191);}try{const _0x2881c1=await fetch(_0xa7e844[_0x56f751(0x476,0x52d,0x447,_0x1270b7._0x168bb9)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0xc98cad,'Accept':_0x56f751(_0x1270b7._0x579c5e,0x4b4,0x4f1,_0x1270b7._0x910244)},'signal':_0x5ba93b});if(!_0x2881c1['ok'])return _0xa7e844;const _0x3aa5b9=await _0x2881c1[_0x2a173c(0x46d,_0x1270b7._0x28af88,0x47d,_0x1270b7._0x5b24d2)](),_0x1626a5=load(_0x3aa5b9),_0x1fd01b=_0x1626a5('meta[property=\x27og:title\x27]')[_0x2a173c(0x3b2,0x483,_0x1270b7._0x3d42d7,_0x1270b7._0x216b51)](_0x2a173c(0x408,_0x1270b7._0x47eb68,_0x1270b7._0xbdb2e7,_0x1270b7._0x5b7a48))||_0x1626a5(_0x2a173c(_0x1270b7._0x3cdb9f,0x58a,0x452,_0x1270b7._0x40fb3d))[_0x56f751(_0x1270b7._0x5c2973,_0x1270b7._0x1f5da8,_0x1270b7._0x55333d,0x5fd)]()[_0x56f751(0x5c8,_0x1270b7._0x5b23a9,0x3f7,_0x1270b7._0x93581e)]()[_0x2a173c(_0x1270b7._0x191687,_0x1270b7._0x168742,0x2a3,_0x1270b7._0x4a0f41)](),_0xbf42ac=_0x1626a5(_0x2a173c(_0x1270b7._0xc112a6,0x57a,_0x1270b7._0x5146a3,_0x1270b7._0x480ad3))['attr']('content')||_0x1626a5(_0x56f751(0x470,0x515,0x5e5,_0x1270b7._0x4ed03b))['attr']('content')||_0xa7e844[_0x56f751(_0x1270b7._0xdf9bcd,_0x1270b7._0x36aa0a,0x4aa,0x57e)],_0x33411f=_0x1626a5(_0x56f751(0x4f0,0x3df,0x3c4,_0x1270b7._0x19e50f))[_0x56f751(0x517,_0x1270b7._0xe8b5ce,0x2fb,0x39e)](_0x2a173c(0x408,_0x1270b7._0x34a01d,0x2fc,0x335))||_0x1626a5(_0x56f751(0x368,_0x1270b7._0x4bcf72,0x463,0x472))[_0x2a173c(_0x1270b7._0x5801bb,_0x1270b7._0x4cb0f3,0x41d,_0x1270b7._0x1e79fa)](_0x2a173c(_0x1270b7._0x32369d,_0x1270b7._0x2260bb,_0x1270b7._0x27ad81,_0x1270b7._0x5c6df0))||_0xa7e844[_0x2a173c(_0x1270b7._0x482791,0x3b8,_0x1270b7._0x3401bd,_0x1270b7._0xc7faa2)],_0x8bdd74=_0x1626a5(_0x56f751(_0x1270b7._0x3360ec,0x3d1,_0x1270b7._0x18d7f9,_0x1270b7._0x3d3c8f))['attr'](_0x2a173c(_0x1270b7._0x45f29b,0x321,0x33e,_0x1270b7._0x41a8ef));return{..._0xa7e844,'title':_0x1fd01b||_0xa7e844[_0x56f751(_0x1270b7._0x2ccd1b,_0x1270b7._0x17beb8,0x4e1,0x574)],'snippet':_0xbf42ac,'url':_0x8bdd74?normalizeUrl(new URL(_0x8bdd74,_0xa7e844['url'])[_0x2a173c(_0x1270b7._0x178133,0x2ee,0x30e,_0x1270b7._0x15c80d)]()):_0xa7e844['url'],'publishedAt':_0x33411f};}catch{return _0xa7e844;}}));function _0x2dc99c(_0x20403e,_0x144277,_0x31e714,_0x4e69bd){return _0x255f51(_0x20403e- -_0x69445a._0x39261e,_0x144277-_0x69445a._0x1ab558,_0x31e714,_0x4e69bd-_0x69445a._0x2ea89e);}function _0x236975(_0x596c70,_0xc78ef1,_0x5927e7,_0x150451){return _0x173565(_0x596c70-_0x33ceeb._0x51a3b4,_0xc78ef1-_0x33ceeb._0x22e50d,_0x596c70,_0x150451-_0x33ceeb._0x19a4f1);}const _0x498389=new Map(_0x35a6d4[_0x236975(0x363,_0xf99236._0x334868,0x2ae,_0xf99236._0x2fe7f0)](0x0,0xa)[_0x236975(_0xf99236._0xb9047,_0xf99236._0x3ba99d,_0xf99236._0x5bc9d7,0x1f4)]((_0xfbf553,_0xc0b0c1)=>[_0xfbf553[_0x236975(0x264,0x2b3,0x32c,0x340)],_0x43a8bc[_0xc0b0c1]]));return _0x35a6d4[_0x236975(0xf1,_0xf99236._0x35ae44,0xdf,_0xf99236._0x49e75f)](_0x11e249=>_0x498389[_0x2dc99c(-0x87,-0x129,-0x18b,-0x158)](_0x11e249[_0x2dc99c(0xc4,0x12e,0x159,0x6a)])??_0x11e249);}function formatResults(_0xe8c831){const _0x2dd065={_0x10689d:0x6d3},_0xe7db78={_0x5316d4:0x174,_0x215e35:0x91,_0xead088:0x41,_0x352c43:0x75,_0x486bf6:0x11c,_0x3423c5:0x3f,_0x345739:0xd1,_0x283e6f:0x5b9,_0x117a38:0x6d1,_0x10b074:0xa8,_0x5ab455:0x95,_0xf11376:0x1a1,_0x4faecd:0x71,_0x20b616:0xc5,_0x13a3db:0x122,_0xa0802d:0xdd,_0x32fdf1:0x65,_0x10b361:0x87,_0x5944af:0x8e,_0x2bd571:0x228,_0x480e6a:0x103,_0x696a8:0x198},_0x46635b={_0x481657:0xc6},_0x4ad1fc={_0x4d1595:0x749,_0x43515b:0xaf,_0x55d9f9:0x1ea},_0x252c1d={_0x5173ef:0x15e};if(_0xe8c831[_0x631fde(0x725,_0x2dd065._0x10689d,0x7ef,0x678)]===0x0)return'No\x20results\x20found.';function _0x631fde(_0x2bcdc2,_0x4352af,_0x753f10,_0x56abff){return _0x173565(_0x2bcdc2-_0x252c1d._0x5173ef,_0x4352af-0x5a,_0x4352af,_0x2bcdc2-0x5dd);}return _0xe8c831['map'](_0x587924=>{const _0x138b4f=[_0x587924[_0x10e2bc(0x165,0xc1,_0xe7db78._0x5316d4,0x4d)][_0x10e2bc(-_0xe7db78._0x215e35,_0xe7db78._0xead088,_0xe7db78._0x352c43,_0xe7db78._0x486bf6)]+'.\x20'+_0x587924[_0x10e2bc(-_0xe7db78._0x3423c5,-0x21,_0xe7db78._0x345739,-0xc0)],_0x587924[_0x462640(_0xe7db78._0x283e6f,0x789,_0xe7db78._0x117a38,0x5d8)]];function _0x10e2bc(_0x2cdf00,_0x5e1009,_0x54fa1b,_0x30047c){return _0x631fde(_0x5e1009- -_0x4ad1fc._0x4d1595,_0x2cdf00,_0x54fa1b-_0x4ad1fc._0x43515b,_0x30047c-_0x4ad1fc._0x55d9f9);}function _0x462640(_0xc5ad89,_0x2560f6,_0x25d65d,_0x58e7ba){return _0x631fde(_0x25d65d- -0x9a,_0x58e7ba,_0x25d65d-_0x46635b._0x481657,_0x58e7ba-0x13c);}if(_0x587924[_0x10e2bc(_0xe7db78._0x10b074,_0xe7db78._0x5ab455,_0xe7db78._0xf11376,0x119)])_0x138b4f[_0x10e2bc(-_0xe7db78._0x4faecd,-0x28,-0x156,_0xe7db78._0x20b616)](_0x587924['snippet']);if(_0x587924[_0x10e2bc(-0x22,-0x104,-_0xe7db78._0x13a3db,-_0xe7db78._0xa0802d)])_0x138b4f[_0x10e2bc(_0xe7db78._0x32fdf1,-0x28,_0xe7db78._0x10b361,-_0xe7db78._0x5944af)](_0x10e2bc(-_0xe7db78._0x2bd571,-_0xe7db78._0x480e6a,-_0xe7db78._0x696a8,-0x1ee)+_0x587924['publishedAt']);return _0x138b4f[_0x10e2bc(0x22,-0xe8,-0x1e7,-0xf7)]('\x0a');})['join']('\x0a\x0a');}async function searchGoogleCse(_0x5a2d28,_0x4820d0,_0x348e8e){const _0x358f4e={_0x36b455:0x4b7,_0x599c77:0x3db,_0x1a60f7:0x479,_0xba114f:0xff,_0x558efb:0x1fd,_0x1e4fff:0x1,_0x1f7097:0x360,_0x5181bd:0x455,_0x22d6ba:0x5d,_0x45f34d:0x55c,_0x54b628:0x3ef,_0x15eab1:0x4ee,_0x26ed8b:0x5e9,_0x1c8667:0x4bc,_0x45653a:0x22a,_0x439446:0x1c2,_0x546a73:0x27a,_0x5b339f:0x3aa,_0x1e1b11:0x63a,_0x33864d:0x50c,_0x574f0d:0x52f,_0x474ccb:0xa9,_0x3f09ec:0xbd,_0x3015ce:0xf0,_0x345a1b:0xaa,_0x2a56a4:0x42f,_0x15c1ab:0x5cb,_0x38608a:0x52b,_0x1c5026:0x3e1,_0x29d7ea:0x35,_0x4ff641:0x493,_0x21bff5:0x505,_0x1a053a:0x4c4,_0x41abd3:0x572,_0x5715ff:0xd6,_0x38ee0f:0x8e,_0x3cfe75:0x46,_0x55b206:0x1c,_0xf2b4ce:0x120,_0x35f1ac:0x58c,_0x7d2b67:0x491,_0x5edf7b:0x44,_0x9e6e58:0x5c,_0x67588c:0x17,_0x40ac37:0x58d,_0x29a6c3:0x50c,_0x449011:0x5d9,_0x3bf640:0x597,_0x524a85:0x5d2,_0x59868f:0x505,_0x1756f7:0x59,_0x5b439c:0xc4,_0xf1d648:0x14b,_0x2118f1:0xfd,_0x4a99a0:0xc4,_0x3050a0:0x1d,_0x3797b0:0x16d,_0x386590:0x2d,_0x3d0292:0xc9,_0x40020b:0x144,_0x2fedc5:0x54,_0x1ec3be:0x3ef,_0x33f4b9:0x2f9,_0x38b8a9:0x4d8,_0x1ffa29:0x5d5,_0x511e1d:0x610,_0x36aa60:0x68e,_0x5cbe37:0x576,_0x5c7e2e:0x47,_0x203257:0x4f,_0x41c5cc:0xcd,_0x552429:0x10,_0x2dec9d:0xae,_0x2a76a3:0x4a,_0x5352d1:0x5f0,_0x97af8e:0x445,_0x5d8002:0x45b,_0x43ded8:0x417,_0x28903f:0x16e,_0x51d367:0x170,_0x411650:0x2e9,_0x2379ce:0x437,_0x94d035:0xa7,_0x5b9494:0x4a5,_0x1f2697:0x4f9,_0x1a6f49:0x547,_0x5f3f80:0x199,_0x4c3318:0x1a8,_0xab8d9:0x30b,_0x5a3250:0x39f,_0x4ee2ea:0x38d,_0x2e9181:0x4fc,_0x28fc74:0x3ba,_0x110b97:0x13e,_0x2a15e8:0x102,_0x1b28fa:0x2e,_0x39412b:0x11b,_0x4ee8c5:0xc0,_0x4030b6:0x23},_0x51936e={_0xdadeaf:0x10f,_0x2b2905:0x29,_0x27f894:0xa4},_0x41d65c={_0x30d45a:0x1c8,_0x385633:0x1c5},_0x233e7f=Math[_0x3502f9(0x37a,_0x358f4e._0x36b455,_0x358f4e._0x599c77,_0x358f4e._0x1a60f7)](0x1,Math[_0x89a379(_0x358f4e._0xba114f,0xc6,_0x358f4e._0x558efb,-_0x358f4e._0x1e4fff)](0x32,_0x4820d0['count']));function _0x3502f9(_0x4380b2,_0x296e55,_0x3e8ca3,_0x134d73){return _0x255f51(_0x3e8ca3- -_0x41d65c._0x30d45a,_0x296e55-_0x41d65c._0x385633,_0x134d73,_0x134d73-0x1c2);}function _0x89a379(_0x2a0f79,_0x1ebd85,_0x55eb50,_0x462c89){return _0x173565(_0x2a0f79-_0x51936e._0xdadeaf,_0x1ebd85-_0x51936e._0x2b2905,_0x462c89,_0x2a0f79- -_0x51936e._0x27f894);}if(_0x4820d0[_0x3502f9(0x3f9,_0x358f4e._0x1f7097,_0x358f4e._0x5181bd,0x46e)]+_0x233e7f>0x64)throw new ToolExecutionError(_0x89a379(0x37,-_0x358f4e._0x22d6ba,0x13,0xf0),{'offset':_0x4820d0['offset'],'count':_0x233e7f,'maxResults':0x64});const _0x4d09d0=cseDateRestrict(_0x4820d0[_0x3502f9(_0x358f4e._0x45f34d,_0x358f4e._0x54b628,_0x358f4e._0x15eab1,_0x358f4e._0x26ed8b)]),_0x227c74=addSiteFilters(_0x4820d0['query'],_0x4820d0['domains']);let _0x35d56a=0x0,_0x37a645=_0x4820d0[_0x3502f9(0x524,0x46a,0x455,_0x358f4e._0x1c8667)]+0x1;const _0x29b481=[];while(_0x35d56a<_0x233e7f){const _0x365e66=Math[_0x89a379(0xff,_0x358f4e._0x45653a,_0x358f4e._0x439446,0x176)](0xa,_0x233e7f-_0x35d56a),_0x4aee91=new URL(_0x3502f9(_0x358f4e._0x546a73,0x48a,_0x358f4e._0x5b339f,0x43c));_0x4aee91[_0x3502f9(0x415,_0x358f4e._0x1e1b11,_0x358f4e._0x33864d,0x400)]['set'](_0x3502f9(_0x358f4e._0x574f0d,0x487,0x522,0x469),_0x5a2d28[_0x89a379(0x170,_0x358f4e._0x474ccb,0x109,0x10e)]),_0x4aee91['searchParams'][_0x89a379(_0x358f4e._0x3f09ec,0x18,_0x358f4e._0x3015ce,_0x358f4e._0x345a1b)]('cx',_0x5a2d28['googleCseCx']),_0x4aee91[_0x89a379(0xc4,0x11f,0x173,0x1ca)][_0x3502f9(_0x358f4e._0x2a56a4,_0x358f4e._0x15c1ab,0x505,_0x358f4e._0x38608a)]('q',_0x227c74),_0x4aee91['searchParams']['set'](_0x3502f9(0x48a,_0x358f4e._0x1c5026,0x3bf,0x3ef),String(_0x365e66)),_0x4aee91[_0x89a379(0xc4,0x1e0,0x1ac,_0x358f4e._0x29d7ea)][_0x3502f9(_0x358f4e._0x4ff641,0x5e2,_0x358f4e._0x21bff5,0x542)](_0x3502f9(0x56e,_0x358f4e._0x1a053a,_0x358f4e._0x41abd3,0x5aa),String(_0x37a645)),_0x4aee91['searchParams'][_0x89a379(0xbd,_0x358f4e._0x5715ff,_0x358f4e._0x38ee0f,-_0x358f4e._0x3cfe75)](_0x89a379(0x5a,-_0x358f4e._0x55b206,0x187,_0x358f4e._0xf2b4ce),_0x4820d0[_0x3502f9(0x3f4,_0x358f4e._0x35f1ac,0x4a2,0x3e0)]?_0x3502f9(0x5f9,_0x358f4e._0x7d2b67,0x56a,0x453):'off');_0x4820d0[_0x89a379(0xd3,_0x358f4e._0x5edf7b,-_0x358f4e._0x9e6e58,_0x358f4e._0x67588c)]&&(_0x4aee91[_0x3502f9(_0x358f4e._0x40ac37,0x522,_0x358f4e._0x29a6c3,0x5b9)]['set']('hl',_0x4820d0[_0x3502f9(0x5d5,0x56f,0x51b,_0x358f4e._0x449011)]),_0x4aee91[_0x3502f9(0x553,0x495,_0x358f4e._0x33864d,0x5e6)][_0x3502f9(_0x358f4e._0x3bf640,_0x358f4e._0x524a85,_0x358f4e._0x59868f,0x616)]('lr','lang_'+_0x4820d0[_0x89a379(0xd3,0x126,0x19e,_0x358f4e._0x1756f7)]));if(_0x4820d0['region'])_0x4aee91[_0x89a379(_0x358f4e._0x5b439c,0x1bf,0xb5,_0x358f4e._0xf1d648)]['set']('gl',_0x4820d0['region'][_0x3502f9(0x400,0x3d9,0x44e,0x52f)]());if(_0x4820d0[_0x89a379(0x1c,_0x358f4e._0x2118f1,0xb5,0x127)]==='images')_0x4aee91[_0x89a379(_0x358f4e._0x4a99a0,_0x358f4e._0x3050a0,0x14f,0x7d)][_0x89a379(_0x358f4e._0x3f09ec,_0x358f4e._0x3797b0,_0x358f4e._0x386590,-0x2a)](_0x89a379(_0x358f4e._0x3d0292,_0x358f4e._0x40020b,-_0x358f4e._0x2fedc5,0x26),_0x3502f9(0x339,0x3a0,_0x358f4e._0x1ec3be,_0x358f4e._0x33f4b9));if(_0x4d09d0)_0x4aee91['searchParams'][_0x3502f9(_0x358f4e._0x38b8a9,_0x358f4e._0x1ffa29,0x505,_0x358f4e._0x511e1d)](_0x3502f9(0x657,_0x358f4e._0x36aa60,_0x358f4e._0x5cbe37,0x4b9),_0x4d09d0);const _0x2bb5d9=await fetchJson(_0x4aee91[_0x89a379(-_0x358f4e._0x22d6ba,_0x358f4e._0x5c7e2e,-_0x358f4e._0x203257,-_0x358f4e._0x41c5cc)](),_0x348e8e),_0x218ec9=_0x2bb5d9[_0x89a379(_0x358f4e._0x552429,_0x358f4e._0x2dec9d,-_0x358f4e._0x2a76a3,-0x114)]??[];if(_0x218ec9[_0x3502f9(0x493,0x56e,0x4ec,_0x358f4e._0x5352d1)]===0x0)break;const _0x22167f=_0x35d56a;for(let _0x3fc153=0x0;_0x3fc153<_0x218ec9['length'];_0x3fc153++){const _0x40379e=_0x218ec9[_0x3fc153];if(!_0x40379e)continue;const _0x49325a=_0x40379e[_0x3502f9(0x578,_0x358f4e._0x97af8e,_0x358f4e._0x5d8002,_0x358f4e._0x43ded8)]||_0x40379e[_0x89a379(-0x59,-_0x358f4e._0x28903f,-_0x358f4e._0x51d367,-0xc6)]?.[_0x3502f9(_0x358f4e._0x411650,_0x358f4e._0x2379ce,0x3d5,0x2d8)]||'',_0x2780cf=_0x40379e[_0x89a379(_0x358f4e._0x94d035,0x76,-0x4a,-0x2f)]||_0x40379e[_0x3502f9(0x4f2,_0x358f4e._0x5b9494,0x3ef,_0x358f4e._0x1f2697)]?.[_0x3502f9(0x587,0x5a8,0x4ef,_0x358f4e._0x1a6f49)]||'Untitled',_0x13ea82=_0x40379e[_0x89a379(0x15d,_0x358f4e._0x5f3f80,0x1ad,_0x358f4e._0x4c3318)]||_0x40379e[_0x3502f9(_0x358f4e._0xab8d9,0x4ce,_0x358f4e._0x5a3250,0x37e)]?.['replace'](/<[^>]+>/g,''),_0x52c301=_0x40379e['pagemap']?.[_0x3502f9(0x4d6,0x531,0x55d,0x4aa)]?.[0x0]??{};let _0x4b2011;try{_0x4b2011=new URL(_0x49325a)[_0x3502f9(0x46e,0x41a,_0x358f4e._0x4ee2ea,0x48e)];}catch{_0x4b2011=null;}_0x29b481[_0x3502f9(0x5e7,_0x358f4e._0x2e9181,0x4e8,_0x358f4e._0x28fc74)]({'title':_0x2780cf,'url':normalizeUrl(_0x49325a),'snippet':_0x13ea82??null,'displayUrl':_0x4b2011,'favicon':null,'publishedAt':_0x52c301['article:published_time']||_0x52c301['og:updated_time']||null,'source':{'engine':'google-cse','rank':_0x22167f+_0x3fc153+0x1}});}_0x35d56a+=_0x218ec9[_0x89a379(0xa4,_0x358f4e._0x110b97,_0x358f4e._0x2a15e8,-_0x358f4e._0x1b28fa)],_0x37a645+=_0x218ec9[_0x89a379(0xa4,_0x358f4e._0x39412b,_0x358f4e._0x4ee8c5,_0x358f4e._0x4030b6)];if(_0x218ec9['length']<_0x365e66)break;}return _0x29b481['slice'](0x0,_0x233e7f);}function createWebSearchTool(_0x5c047a){const _0x7efc8f={_0x4eaed6:0x77d,_0x2adeff:0x748,_0x1ac2ed:0x684,_0x3ea3fb:0x5d0,_0x40f963:0x57e,_0x20c2a8:0x619,_0x1e9e2d:0x485,_0x20b04d:0x459,_0x444328:0x331,_0x371acf:0x375,_0x50f1e0:0x3b3,_0x2e092b:0x493,_0x27db24:0x6c3,_0x1c8b40:0x713,_0x35b205:0x6be,_0x5dc3fa:0x37c,_0x37a80d:0x314,_0x1b8970:0x2fc,_0x153e00:0x334,_0x5b8ca1:0x31e,_0x3084ac:0x428,_0xe3611e:0x543,_0x3358bb:0x550,_0x540aba:0x608,_0x1a115f:0x668,_0x4f7f83:0x785,_0x4eafe7:0x77b,_0x1b7f27:0x31b,_0x4e2a3f:0x4eb,_0x6994e5:0x42f,_0x415dfe:0x3a8,_0x5dc47c:0x4a0,_0x33f91f:0x4e1},_0x55f34a={_0xb9c605:0x2cf,_0x2541d7:0x21c,_0x492bd0:0x3f3,_0x4c42a6:0x114,_0x51d81a:0xca,_0x4cf84c:0x4c,_0x42c5b9:0xb6,_0x5aab72:0xf1,_0x5ca081:0x107,_0x402d05:0x251,_0x468661:0x4f,_0xf4a073:0x167,_0x4c7382:0x64,_0x38fac4:0x12a,_0x4ae9e4:0x1dd,_0x2dced6:0x16b,_0x5ef552:0x8f,_0x1c5cdd:0x245,_0x204811:0x154,_0x708506:0x4f,_0x53ba9a:0xc7,_0x218300:0x279,_0x5b4ae3:0x2c6,_0x3ea087:0x1d8,_0x14bf1f:0x5f,_0x85d527:0x171,_0x39a67b:0x8d,_0x39194f:0x90,_0x5eb2e5:0x143,_0x32ecdb:0x125,_0x574f07:0x85,_0x34e7ed:0x177,_0x38f1f1:0x268,_0x46457a:0x112,_0x3e3210:0x277,_0x1fb8f6:0x154,_0x8d45f2:0x2d7,_0x272a13:0x102,_0x1f5c88:0x14,_0x291ffb:0x13,_0x31c81a:0x23e,_0x20d6e5:0x4d,_0x29b805:0x51,_0x457d88:0x277,_0x469a98:0x1e1,_0x321bfd:0x1ab,_0x5da372:0x16a,_0x1f9b7d:0x79,_0x5b17af:0xee,_0x23d9ee:0xe0,_0x3073e8:0xa6,_0x40476c:0x151,_0x2b123d:0x26e,_0x3bd198:0x20e,_0x4068a1:0x2a6,_0x92816e:0x11a,_0xba400:0xba,_0x34370a:0x2bd,_0x1ab89c:0x429,_0x2fd572:0xd6,_0x5cca4:0x84,_0x4db3b5:0x3c,_0x2eba5a:0x7e,_0x4790d1:0x96,_0x2034e8:0x1e0,_0x3d50e6:0x17e,_0x53260f:0x299,_0x51b07b:0x2e9,_0x4e49c4:0x57,_0x524997:0x98,_0x1b1c54:0xe1,_0x4e569a:0x37},_0x5432f7={_0x1dcf2d:0x109},_0x4c6ec3={_0x363f76:0x51};function _0x10e62f(_0x156ace,_0x100309,_0x5e0b49,_0x4a5893){return _0x255f51(_0x156ace- -0x28d,_0x100309-0x1da,_0x4a5893,_0x4a5893-_0x4c6ec3._0x363f76);}function _0x52ff2b(_0x194227,_0x4d6643,_0x2cd31f,_0x17c1e7){return _0x255f51(_0x17c1e7- -0x1,_0x4d6643-_0x5432f7._0x1dcf2d,_0x194227,_0x17c1e7-0x20);}if(!_0x5c047a[_0x52ff2b(0x700,_0x7efc8f._0x4eaed6,0x66d,0x77f)])throw new Error('WebSearch\x20requires\x20GOOGLE_CSE_KEY');if(!_0x5c047a[_0x52ff2b(0x656,0x5c4,_0x7efc8f._0x2adeff,_0x7efc8f._0x1ac2ed)])throw new Error(_0x52ff2b(_0x7efc8f._0x3ea3fb,0x70c,_0x7efc8f._0x40f963,_0x7efc8f._0x20c2a8));const _0x5f1617=_0x5c047a[_0x10e62f(_0x7efc8f._0x1e9e2d,_0x7efc8f._0x20b04d,0x595,0x580)]??_0x10e62f(_0x7efc8f._0x444328,0x395,_0x7efc8f._0x371acf,0x38b);return defineTool({'name':_0x5f1617,'description':_0x10e62f(_0x7efc8f._0x50f1e0,_0x7efc8f._0x2e092b,0x2f7,0x2dd),'inputSchema':{'type':_0x10e62f(0x3d0,0x48e,0x4d7,0x392),'properties':{'description':{'type':_0x52ff2b(0x7b5,_0x7efc8f._0x27db24,_0x7efc8f._0x1c8b40,_0x7efc8f._0x35b205)},'query':{'type':'string'},'count':{'type':_0x10e62f(_0x7efc8f._0x5dc3fa,_0x7efc8f._0x37a80d,_0x7efc8f._0x1b8970,0x2be)},'offset':{'type':_0x10e62f(0x37c,_0x7efc8f._0x153e00,_0x7efc8f._0x5b8ca1,0x34d)},'domains':{'type':_0x10e62f(0x47f,_0x7efc8f._0x3084ac,_0x7efc8f._0xe3611e,0x56b),'items':{'type':'string'}},'recencyDays':{'type':_0x52ff2b(0x6b5,_0x7efc8f._0x3358bb,0x5ae,_0x7efc8f._0x540aba)},'lang':{'type':'string'},'region':{'type':_0x52ff2b(0x767,_0x7efc8f._0x1a115f,_0x7efc8f._0x4f7f83,_0x7efc8f._0x35b205)},'safe':{'type':_0x52ff2b(0x5e7,_0x7efc8f._0x4eafe7,0x5cd,0x6bb)},'type':{'type':_0x10e62f(0x432,0x43b,_0x7efc8f._0x1b7f27,_0x7efc8f._0x4e2a3f)},'hydrateMeta':{'type':_0x10e62f(_0x7efc8f._0x6994e5,_0x7efc8f._0x415dfe,0x319,0x42e)}},'required':[_0x10e62f(_0x7efc8f._0x5dc47c,0x54e,0x55b,_0x7efc8f._0x33f91f)]},async *'execute'(_0x114d69,_0x349228){const _0x2fa025={_0x266841:0x14,_0x5f5466:0x96,_0x15e66f:0x4b,_0x224afc:0xc3,_0x1c6330:0xbf,_0x2f5a79:0x21,_0x3e59a7:0xe7,_0x3b4d20:0xc8},_0x6ffb14={_0xe7a331:0xbf,_0x241d02:0x16b},_0x28cdcf={_0x488164:0x91},_0x2a232a=_0x114d69[_0x208bdf(0x2f0,_0x55f34a._0xb9c605,_0x55f34a._0x2541d7,_0x55f34a._0x492bd0)][_0x208bdf(_0x55f34a._0x4c42a6,0x1e8,_0x55f34a._0x51d81a,0x1de)]();if(!_0x2a232a)throw new ToolExecutionError(_0x347704(0x8f,0x48,0xbb,0x84));function _0x347704(_0x5ee6c3,_0x36e7ae,_0x1c47d8,_0x5b1f5b){return _0x10e62f(_0x5b1f5b- -0x46a,_0x36e7ae-0x198,_0x1c47d8-_0x28cdcf._0x488164,_0x36e7ae);}function _0x208bdf(_0x8b31dd,_0x37a57e,_0x3e268d,_0x2184c9){return _0x52ff2b(_0x2184c9,_0x37a57e-_0x6ffb14._0xe7a331,_0x3e268d-_0x6ffb14._0x241d02,_0x8b31dd- -0x43c);}const _0x289907={'query':_0x2a232a,'count':Math['max'](0x1,Math[_0x347704(0x10f,-_0x55f34a._0x4cf84c,0x57,0x18)](0x32,Math[_0x208bdf(0x153,0x19b,0xb3,0x205)](_0x114d69[_0x347704(0x12a,-0x21,_0x55f34a._0x42c5b9,0x7f)]??0xa))),'offset':Math[_0x347704(-_0x55f34a._0x5aab72,-_0x55f34a._0x5ca081,-_0x55f34a._0x402d05,-0x154)](0x0,Math[_0x347704(-0x93,-0x75,-_0x55f34a._0x468661,-_0x55f34a._0xf4a073)](_0x114d69[_0x208bdf(0x1e0,0x1b9,0x276,0x11b)]??0x0)),'domains':_0x114d69[_0x347704(-_0x55f34a._0x4c7382,-_0x55f34a._0x38fac4,-_0x55f34a._0x4ae9e4,-_0x55f34a._0x2dced6)]??[],'recencyDays':Math[_0x347704(-0x1c4,-_0x55f34a._0x5ef552,-_0x55f34a._0x1c5cdd,-_0x55f34a._0x204811)](0x0,Math[_0x347704(-_0x55f34a._0x708506,-0x251,-_0x55f34a._0x53ba9a,-0x167)](_0x114d69[_0x208bdf(_0x55f34a._0x218300,_0x55f34a._0x5b4ae3,_0x55f34a._0x3ea087,0x160)]??0x0)),'lang':_0x114d69[_0x347704(-0xa5,0xbb,-_0x55f34a._0x14bf1f,-0x14)]??'en','region':_0x114d69['region']??'','safe':_0x114d69[_0x347704(-0xc0,-_0x55f34a._0x85d527,-0xe8,-_0x55f34a._0x39a67b)]??!![],'type':normalizeType(_0x114d69['type']),'hydrateMeta':_0x114d69[_0x347704(-0x144,-0xf3,-_0x55f34a._0x39194f,-_0x55f34a._0x5eb2e5)]??![]};let _0x41a9b0=await searchGoogleCse(_0x5c047a,_0x289907,_0x349228[_0x347704(_0x55f34a._0x32ecdb,-0x87,0x15e,_0x55f34a._0x574f07)]);_0x289907[_0x208bdf(_0x55f34a._0x34e7ed,_0x55f34a._0x38f1f1,_0x55f34a._0x46457a,0x1b4)]&&_0x41a9b0[_0x208bdf(_0x55f34a._0x3e3210,0x1f1,_0x55f34a._0x1fb8f6,_0x55f34a._0x8d45f2)]>0x0&&(_0x41a9b0=await hydrateResults(_0x41a9b0,_0x289907[_0x347704(0x35,0x32,-_0x55f34a._0x272a13,-_0x55f34a._0x1f5c88)],_0x349228[_0x347704(0xe1,-_0x55f34a._0x291ffb,-0x68,0x85)]));const _0x4604a1=new Set();_0x41a9b0=_0x41a9b0['filter'](_0x6b842=>{const _0x1cede8={_0x3d79f8:0xcb},_0x40940c=_0x6b842[_0x54348b(0x3c,0x71,_0x2fa025._0x266841,-_0x2fa025._0x5f5466)][_0x54348b(0xa9,-_0x2fa025._0x15e66f,-_0x2fa025._0x224afc,-0xe3)]();function _0x54348b(_0x1ca9f2,_0x4ca610,_0x6452d4,_0x293d74){return _0x347704(_0x1ca9f2-0x13f,_0x1ca9f2,_0x6452d4-_0x1cede8._0x3d79f8,_0x4ca610-0x6e);}if(!_0x40940c||_0x4604a1[_0x54348b(-0xc9,0x28,_0x2fa025._0x1c6330,-_0x2fa025._0x2f5a79)](_0x40940c))return![];function _0x586ae6(_0x287b4d,_0x342d64,_0x5cddb8,_0x55f3c1){return _0x208bdf(_0x55f3c1-0x2f3,_0x342d64-0x9d,_0x5cddb8-0xf5,_0x342d64);}return _0x4604a1[_0x54348b(-0x184,-_0x2fa025._0x3e59a7,-_0x2fa025._0x3b4d20,0x2e)](_0x40940c),!![];}),_0x41a9b0=_0x41a9b0[_0x208bdf(_0x55f34a._0x85d527,_0x55f34a._0x31c81a,_0x55f34a._0x20d6e5,0x231)]((_0x4ba926,_0x167465)=>({..._0x4ba926,'source':{..._0x4ba926['source'],'rank':_0x167465+0x1}}));const _0x1c7668={};if(_0x289907[_0x208bdf(0x14f,_0x55f34a._0x29b805,0xba,0x1d7)][_0x208bdf(_0x55f34a._0x457d88,_0x55f34a._0x469a98,0x1bd,_0x55f34a._0x321bfd)]>0x0)_0x1c7668[_0x347704(-0xe6,-0x96,-_0x55f34a._0x5da372,-_0x55f34a._0x2dced6)]=_0x289907['domains'];if(_0x289907[_0x347704(-0x37,_0x55f34a._0x1f9b7d,-_0x55f34a._0x5b17af,-0x41)]>0x0)_0x1c7668[_0x347704(-_0x55f34a._0x23d9ee,-_0x55f34a._0x3073e8,0xd6,-0x41)]=_0x289907[_0x347704(-0x55,-_0x55f34a._0x40476c,0x57,-0x41)];if(_0x289907[_0x208bdf(0x2a6,_0x55f34a._0x2b123d,0x3cc,_0x55f34a._0x3bd198)]!=='en')_0x1c7668[_0x208bdf(_0x55f34a._0x4068a1,0x35e,0x2a6,0x3a9)]=_0x289907[_0x347704(-_0x55f34a._0x92816e,-_0x55f34a._0xba400,_0x55f34a._0x39194f,-_0x55f34a._0x1f5c88)];if(_0x289907[_0x208bdf(0x2fb,0x219,0x200,0x3ad)])_0x1c7668[_0x208bdf(0x2fb,_0x55f34a._0x34370a,_0x55f34a._0x1ab89c,0x21a)]=_0x289907['region'];return yield createToolOutput(formatResults(_0x41a9b0),{'engine':_0x347704(-_0x55f34a._0x2fd572,-_0x55f34a._0x5cca4,_0x55f34a._0x4db3b5,-0x1b),'count':_0x41a9b0['length'],'items':_0x41a9b0,'query':_0x289907['query'],...Object[_0x208bdf(0x121,0xa5,0x21a,0x151)](_0x1c7668)[_0x347704(_0x55f34a._0x2eba5a,-0xd7,_0x55f34a._0x4790d1,-0x43)]>0x0?{'appliedFilters':_0x1c7668}:{},'offset':_0x289907[_0x208bdf(_0x55f34a._0x2034e8,_0x55f34a._0x3d50e6,_0x55f34a._0x53260f,_0x55f34a._0x51b07b)],'totalRequested':_0x289907[_0x347704(-_0x55f34a._0x4e49c4,-_0x55f34a._0x524997,0x128,0x7f)],'hydrated':_0x289907[_0x347704(-_0x55f34a._0x1b1c54,-0x17f,-_0x55f34a._0x4e569a,-_0x55f34a._0x5eb2e5)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};